From bcd058399163db4e03bca79920bf7838388fd52e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 01:03:04 +0100 Subject: [PATCH] refactor: trim agent helper type exports --- src/agents/apply-patch.ts | 4 ++-- src/agents/session-transcript-repair.ts | 10 +++++----- src/agents/spawned-context.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/agents/apply-patch.ts b/src/agents/apply-patch.ts index 1c03906b483..a16a987590b 100644 --- a/src/agents/apply-patch.ts +++ b/src/agents/apply-patch.ts @@ -58,12 +58,12 @@ export type ApplyPatchSummary = { deleted: string[]; }; -export type ApplyPatchResult = { +type ApplyPatchResult = { summary: ApplyPatchSummary; text: string; }; -export type ApplyPatchToolDetails = { +type ApplyPatchToolDetails = { summary: ApplyPatchSummary; }; diff --git a/src/agents/session-transcript-repair.ts b/src/agents/session-transcript-repair.ts index dd75c281959..79e2ea0a71d 100644 --- a/src/agents/session-transcript-repair.ts +++ b/src/agents/session-transcript-repair.ts @@ -245,20 +245,20 @@ function normalizeToolResultName( export { makeMissingToolResult }; -export type ToolCallInputRepairReport = { +type ToolCallInputRepairReport = { messages: AgentMessage[]; droppedToolCalls: number; droppedAssistantMessages: number; }; -export type ToolCallInputRepairOptions = { +type ToolCallInputRepairOptions = { allowedToolNames?: Iterable; allowProviderOwnedThinkingReplay?: boolean; }; -export type ErroredAssistantResultPolicy = "preserve" | "drop"; +type ErroredAssistantResultPolicy = "preserve" | "drop"; -export type ToolUseResultPairingOptions = { +type ToolUseResultPairingOptions = { erroredAssistantResultPolicy?: ErroredAssistantResultPolicy; missingToolResultText?: string; }; @@ -430,7 +430,7 @@ export function sanitizeToolUseResultPairing( return repairToolUseResultPairing(messages, options).messages; } -export type ToolUseRepairReport = { +type ToolUseRepairReport = { messages: AgentMessage[]; added: Array>; droppedDuplicateCount: number; diff --git a/src/agents/spawned-context.ts b/src/agents/spawned-context.ts index 2add9abefd3..de2c34ab4a4 100644 --- a/src/agents/spawned-context.ts +++ b/src/agents/spawned-context.ts @@ -19,7 +19,7 @@ export type SpawnedToolContext = { workspaceDir?: string; }; -export type NormalizedSpawnedRunMetadata = { +type NormalizedSpawnedRunMetadata = { spawnedBy?: string; groupId?: string; groupChannel?: string;