refactor: trim agent helper type exports · openclaw/openclaw@bcd0583
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,12 +58,12 @@ export type ApplyPatchSummary = {
|
58 | 58 | deleted: string[]; |
59 | 59 | }; |
60 | 60 | |
61 | | -export type ApplyPatchResult = { |
| 61 | +type ApplyPatchResult = { |
62 | 62 | summary: ApplyPatchSummary; |
63 | 63 | text: string; |
64 | 64 | }; |
65 | 65 | |
66 | | -export type ApplyPatchToolDetails = { |
| 66 | +type ApplyPatchToolDetails = { |
67 | 67 | summary: ApplyPatchSummary; |
68 | 68 | }; |
69 | 69 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -245,20 +245,20 @@ function normalizeToolResultName(
|
245 | 245 | |
246 | 246 | export { makeMissingToolResult }; |
247 | 247 | |
248 | | -export type ToolCallInputRepairReport = { |
| 248 | +type ToolCallInputRepairReport = { |
249 | 249 | messages: AgentMessage[]; |
250 | 250 | droppedToolCalls: number; |
251 | 251 | droppedAssistantMessages: number; |
252 | 252 | }; |
253 | 253 | |
254 | | -export type ToolCallInputRepairOptions = { |
| 254 | +type ToolCallInputRepairOptions = { |
255 | 255 | allowedToolNames?: Iterable<string>; |
256 | 256 | allowProviderOwnedThinkingReplay?: boolean; |
257 | 257 | }; |
258 | 258 | |
259 | | -export type ErroredAssistantResultPolicy = "preserve" | "drop"; |
| 259 | +type ErroredAssistantResultPolicy = "preserve" | "drop"; |
260 | 260 | |
261 | | -export type ToolUseResultPairingOptions = { |
| 261 | +type ToolUseResultPairingOptions = { |
262 | 262 | erroredAssistantResultPolicy?: ErroredAssistantResultPolicy; |
263 | 263 | missingToolResultText?: string; |
264 | 264 | }; |
@@ -430,7 +430,7 @@ export function sanitizeToolUseResultPairing(
|
430 | 430 | return repairToolUseResultPairing(messages, options).messages; |
431 | 431 | } |
432 | 432 | |
433 | | -export type ToolUseRepairReport = { |
| 433 | +type ToolUseRepairReport = { |
434 | 434 | messages: AgentMessage[]; |
435 | 435 | added: Array<Extract<AgentMessage, { role: "toolResult" }>>; |
436 | 436 | droppedDuplicateCount: number; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ export type SpawnedToolContext = {
|
19 | 19 | workspaceDir?: string; |
20 | 20 | }; |
21 | 21 | |
22 | | -export type NormalizedSpawnedRunMetadata = { |
| 22 | +type NormalizedSpawnedRunMetadata = { |
23 | 23 | spawnedBy?: string; |
24 | 24 | groupId?: string; |
25 | 25 | groupChannel?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。