refactor: trim node host exports · openclaw/openclaw@076fa5e
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ export type NodeHostGatewayConfig = {
|
11 | 11 | tlsFingerprint?: string; |
12 | 12 | }; |
13 | 13 | |
14 | | -export type NodeHostConfig = { |
| 14 | +type NodeHostConfig = { |
15 | 15 | version: 1; |
16 | 16 | nodeId: string; |
17 | 17 | token?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { requiresExecApproval, type ExecAsk, type ExecSecurity } from "../infra/exec-approvals.js"; |
2 | 2 | |
3 | | -export type ExecApprovalDecision = "allow-once" | "allow-always" | null; |
| 3 | +type ExecApprovalDecision = "allow-once" | "allow-always" | null; |
4 | 4 | |
5 | | -export type SystemRunPolicyDecision = { |
| 5 | +type SystemRunPolicyDecision = { |
6 | 6 | analysisOk: boolean; |
7 | 7 | allowlistSatisfied: boolean; |
8 | 8 | shellWrapperBlocked: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -12,7 +12,7 @@ import {
|
12 | 12 | import { resolveExecSafeBinRuntimePolicy } from "../infra/exec-safe-bin-runtime-policy.js"; |
13 | 13 | import type { RunResult } from "./invoke-types.js"; |
14 | 14 | |
15 | | -export type SystemRunAllowlistAnalysis = { |
| 15 | +type SystemRunAllowlistAnalysis = { |
16 | 16 | analysisOk: boolean; |
17 | 17 | allowlistMatches: ExecAllowlistEntry[]; |
18 | 18 | allowlistSatisfied: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -60,7 +60,7 @@ type ExecApprovalsSnapshot = {
|
60 | 60 | file: ExecApprovalsFile; |
61 | 61 | }; |
62 | 62 | |
63 | | -export type NodeInvokeRequestPayload = { |
| 63 | +type NodeInvokeRequestPayload = { |
64 | 64 | id: string; |
65 | 65 | nodeId: string; |
66 | 66 | command: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ export function shouldExitNodeHostOnReconnectPaused(detailCode: string | null):
|
57 | 57 | return detailCode !== null && NODE_HOST_EXIT_ON_RECONNECT_PAUSE_CODES.has(detailCode); |
58 | 58 | } |
59 | 59 | |
60 | | -export function formatNodeHostReconnectPausedMessage( |
| 60 | +function formatNodeHostReconnectPausedMessage( |
61 | 61 | info: GatewayReconnectPausedInfo, |
62 | 62 | params?: { exiting?: boolean }, |
63 | 63 | ): string { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。