refactor(agents): trim exec helper exports · openclaw/openclaw@4ea1b4f
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,7 @@ const EXEC_APPROVAL_FOLLOWUP_IDEMPOTENCY_NONCE_MARKER = ":nonce:";
|
16 | 16 | const EXEC_APPROVAL_FOLLOWUP_RUNTIME_HANDOFF_TTL_MS = 5 * 60 * 1000; |
17 | 17 | |
18 | 18 | /** Single-use capability payload consumed by a follow-up agent turn. */ |
19 | | -export type ExecApprovalFollowupRuntimeHandoff = { |
| 19 | +type ExecApprovalFollowupRuntimeHandoff = { |
20 | 20 | kind: "exec-approval-followup"; |
21 | 21 | approvalId: string; |
22 | 22 | sessionKey: string; |
@@ -25,7 +25,7 @@ export type ExecApprovalFollowupRuntimeHandoff = {
|
25 | 25 | }; |
26 | 26 | |
27 | 27 | /** Registration handle returned to the gateway approval callback. */ |
28 | | -export type ExecApprovalFollowupRuntimeHandoffRegistration = { |
| 28 | +type ExecApprovalFollowupRuntimeHandoffRegistration = { |
29 | 29 | handoffId: string; |
30 | 30 | idempotencyKey: string; |
31 | 31 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,7 +42,7 @@ function loadExecApprovalCommandSpansRuntime(): Promise<ExecApprovalCommandSpans
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** Gateway payload fields used to register or wait for an exec approval decision. */ |
45 | | -export type RequestExecApprovalDecisionParams = { |
| 45 | +type RequestExecApprovalDecisionParams = { |
46 | 46 | id: string; |
47 | 47 | command?: string; |
48 | 48 | commandArgv?: string[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,7 @@ import type {
|
62 | 62 | import type { AgentToolResult } from "./runtime/index.js"; |
63 | 63 | |
64 | 64 | /** Full input bundle for gateway-host allowlist and approval processing. */ |
65 | | -export type ProcessGatewayAllowlistParams = { |
| 65 | +type ProcessGatewayAllowlistParams = { |
66 | 66 | command: string; |
67 | 67 | workdir: string; |
68 | 68 | env: Record<string, string>; |
@@ -104,7 +104,7 @@ export type ProcessGatewayAllowlistParams = {
|
104 | 104 | }; |
105 | 105 | |
106 | 106 | /** Gateway allowlist outcome before command execution continues. */ |
107 | | -export type ProcessGatewayAllowlistResult = { |
| 107 | +type ProcessGatewayAllowlistResult = { |
108 | 108 | execCommandOverride?: string; |
109 | 109 | allowWithoutEnforcedCommand?: boolean; |
110 | 110 | pendingResult?: AgentToolResult<ExecToolDetails>; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -37,8 +37,6 @@ import type { ExecToolDetails } from "./bash-tools.exec-types.js";
|
37 | 37 | import type { AgentToolResult } from "./runtime/index.js"; |
38 | 38 | import { callGatewayTool } from "./tools/gateway.js"; |
39 | 39 | |
40 | | -export type { ExecuteNodeHostCommandParams } from "./bash-tools.exec-host-node.types.js"; |
41 | | - |
42 | 40 | const APPROVED_NODE_INVOKE_SCOPES = [WRITE_SCOPE, APPROVALS_SCOPE]; |
43 | 41 | |
44 | 42 | function resolveNodeAutoReviewReason(params: { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。