diff --git a/src/agents/tool-loop-detection.ts b/src/agents/tool-loop-detection.ts index 972f5bb8d43..82fc64067ad 100644 --- a/src/agents/tool-loop-detection.ts +++ b/src/agents/tool-loop-detection.ts @@ -6,14 +6,14 @@ import { isPlainObject } from "../utils.js"; const log = createSubsystemLogger("agents/loop-detection"); -export type LoopDetectorKind = +type LoopDetectorKind = | "generic_repeat" | "unknown_tool_repeat" | "known_poll_no_progress" | "global_circuit_breaker" | "ping_pong"; -export type LoopDetectionResult = +type LoopDetectionResult = | { stuck: false } | { stuck: true; @@ -58,7 +58,7 @@ type ResolvedLoopDetectionConfig = { }; }; -export type ToolLoopDetectionScope = { +type ToolLoopDetectionScope = { runId?: string; }; diff --git a/src/agents/tool-mutation.ts b/src/agents/tool-mutation.ts index 65ee228856e..d913446125f 100644 --- a/src/agents/tool-mutation.ts +++ b/src/agents/tool-mutation.ts @@ -52,12 +52,12 @@ const MESSAGE_MUTATING_ACTIONS = new Set([ "unpin", ]); -export type ToolMutationState = { +type ToolMutationState = { mutatingAction: boolean; actionFingerprint?: string; }; -export type ToolActionRef = { +type ToolActionRef = { toolName: string; meta?: string; actionFingerprint?: string; diff --git a/src/agents/transport-stream-shared.ts b/src/agents/transport-stream-shared.ts index 9133f6ba572..b961dec7079 100644 --- a/src/agents/transport-stream-shared.ts +++ b/src/agents/transport-stream-shared.ts @@ -1,6 +1,6 @@ import { createAssistantMessageEventStream } from "@mariozechner/pi-ai"; -export type TransportUsage = { +type TransportUsage = { input: number; output: number; cacheRead: number;