refactor: trim agent helper type exports

This commit is contained in:
Peter Steinberger
2026-05-02 01:03:04 +01:00
parent 056c8eb488
commit bcd0583991
3 changed files with 8 additions and 8 deletions

View File

@@ -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;
};

View File

@@ -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<string>;
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<Extract<AgentMessage, { role: "toolResult" }>>;
droppedDuplicateCount: number;

View File

@@ -19,7 +19,7 @@ export type SpawnedToolContext = {
workspaceDir?: string;
};
export type NormalizedSpawnedRunMetadata = {
type NormalizedSpawnedRunMetadata = {
spawnedBy?: string;
groupId?: string;
groupChannel?: string;