refactor(agents): hide attempt policy types · openclaw/openclaw@c1ac18e
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
File tree
src/agents/embedded-agent-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import type { CreateAgentSessionOptions } from "../../sessions/index.js";
|
6 | 6 | /** |
7 | 7 | * Session construction bridge for embedded-attempt runs. |
8 | 8 | */ |
9 | | -export type EmbeddedAgentSessionOptions = { |
| 9 | +type EmbeddedAgentSessionOptions = { |
10 | 10 | cwd: string; |
11 | 11 | agentDir: string; |
12 | 12 | authStorage: unknown; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,13 +6,13 @@ import {
|
6 | 6 | type AcceptedSessionSpawn, |
7 | 7 | } from "../../accepted-session-spawn.js"; |
8 | 8 | |
9 | | -export type AttemptTrajectoryTerminalStatus = "success" | "error" | "interrupted"; |
| 9 | +type AttemptTrajectoryTerminalStatus = "success" | "error" | "interrupted"; |
10 | 10 | |
11 | 11 | /** Terminal error marker for runs that produced no user-visible delivery or durable progress. */ |
12 | 12 | export const NON_DELIVERABLE_TERMINAL_TURN_REASON = "non_deliverable_terminal_turn"; |
13 | 13 | |
14 | 14 | /** Normalized terminal status recorded for an embedded run attempt trajectory. */ |
15 | | -export type AttemptTrajectoryTerminal = { |
| 15 | +type AttemptTrajectoryTerminal = { |
16 | 16 | status: AttemptTrajectoryTerminalStatus; |
17 | 17 | terminalError?: typeof NON_DELIVERABLE_TERMINAL_TURN_REASON; |
18 | 18 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ export const TOOL_SEARCH_CONTROL_ALLOWLIST_NAMES = [
|
24 | 24 | type CollectAllowedToolNamesParams = Parameters<typeof collectAllowedToolNames>[0]; |
25 | 25 | |
26 | 26 | /** Derived tool allowlists used for visible prompt tools, replay tools, and empty-allowlist checks. */ |
27 | | -export type ToolSearchRunPlan = { |
| 27 | +type ToolSearchRunPlan = { |
28 | 28 | visibleAllowedToolNames: Set<string>; |
29 | 29 | replayAllowedToolNames: Set<string>; |
30 | 30 | liveAllowedToolNames: Set<string>; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,7 @@ import type { ProviderRuntimeModel } from "../../../plugins/provider-runtime-mod
|
6 | 6 | import type { AgentRuntimePlan } from "../../runtime-plan/types.js"; |
7 | 7 | import { resolveTranscriptPolicy, type TranscriptPolicy } from "../../transcript-policy.js"; |
8 | 8 | |
9 | | -export type AttemptRuntimeModelContext = NonNullable< |
| 9 | +type AttemptRuntimeModelContext = NonNullable< |
10 | 10 | Parameters<AgentRuntimePlan["transcript"]["resolvePolicy"]>[0] |
11 | 11 | >; |
12 | 12 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。