diff --git a/src/agents/subagent-list.ts b/src/agents/subagent-list.ts index 36c0f14aaa0..6ded31eb2a6 100644 --- a/src/agents/subagent-list.ts +++ b/src/agents/subagent-list.ts @@ -47,14 +47,14 @@ export type SubagentListItem = { endedAt?: number; }; -export type BuiltSubagentList = { +type BuiltSubagentList = { total: number; active: SubagentListItem[]; recent: SubagentListItem[]; text: string; }; -export type SessionEntryResolution = { +type SessionEntryResolution = { storePath: string; entry: SessionEntry | undefined; }; diff --git a/src/agents/subagent-recovery-state.ts b/src/agents/subagent-recovery-state.ts index 9ba208bc921..779053bd899 100644 --- a/src/agents/subagent-recovery-state.ts +++ b/src/agents/subagent-recovery-state.ts @@ -3,7 +3,7 @@ import type { SessionEntry } from "../config/sessions.js"; const SUBAGENT_RECOVERY_MAX_AUTOMATIC_ATTEMPTS = 2; const SUBAGENT_RECOVERY_REWEDGE_WINDOW_MS = 2 * 60_000; -export type SubagentRecoveryGate = +type SubagentRecoveryGate = | { allowed: true; nextAttempt: number; diff --git a/src/agents/subagent-registry-cleanup.ts b/src/agents/subagent-registry-cleanup.ts index 9bcc6c37b3b..f892a3686d9 100644 --- a/src/agents/subagent-registry-cleanup.ts +++ b/src/agents/subagent-registry-cleanup.ts @@ -4,7 +4,7 @@ import { } from "./subagent-lifecycle-events.js"; import type { SubagentRunRecord } from "./subagent-registry.types.js"; -export type DeferredCleanupDecision = +type DeferredCleanupDecision = | { kind: "defer-descendants"; delayMs: number; diff --git a/src/agents/subagent-registry-helpers.ts b/src/agents/subagent-registry-helpers.ts index 0ee340bd4ef..d4b384140e4 100644 --- a/src/agents/subagent-registry-helpers.ts +++ b/src/agents/subagent-registry-helpers.ts @@ -36,10 +36,7 @@ export const ANNOUNCE_COMPLETION_HARD_EXPIRY_MS = 30 * 60_000; const FROZEN_RESULT_TEXT_MAX_BYTES = 100 * 1024; -export type SubagentRunOrphanReason = - | "missing-session-entry" - | "missing-session-id" - | "stale-unended-run"; +type SubagentRunOrphanReason = "missing-session-entry" | "missing-session-id" | "stale-unended-run"; export function capFrozenResultText(resultText: string): string { const trimmed = resultText.trim(); diff --git a/src/agents/subagent-registry-steer-runtime.ts b/src/agents/subagent-registry-steer-runtime.ts index fdf82e86dbd..ceb0284320d 100644 --- a/src/agents/subagent-registry-steer-runtime.ts +++ b/src/agents/subagent-registry-steer-runtime.ts @@ -1,6 +1,6 @@ import type { SubagentRunRecord } from "./subagent-registry.types.js"; -export type ReplaceSubagentRunAfterSteerParams = { +type ReplaceSubagentRunAfterSteerParams = { previousRunId: string; nextRunId: string; fallback?: SubagentRunRecord; diff --git a/src/agents/subagent-target-policy.ts b/src/agents/subagent-target-policy.ts index 2a5e0255fd6..b243ce1fcd7 100644 --- a/src/agents/subagent-target-policy.ts +++ b/src/agents/subagent-target-policy.ts @@ -1,8 +1,6 @@ import { normalizeAgentId } from "../routing/session-key.js"; -export type SubagentTargetPolicyResult = - | { ok: true } - | { ok: false; allowedText: string; error: string }; +type SubagentTargetPolicyResult = { ok: true } | { ok: false; allowedText: string; error: string }; function normalizeAllowAgents(allowAgents: readonly string[] | undefined): { configured: boolean; diff --git a/src/agents/system-prompt-params.ts b/src/agents/system-prompt-params.ts index fc8a63e4292..ec5c90b60f0 100644 --- a/src/agents/system-prompt-params.ts +++ b/src/agents/system-prompt-params.ts @@ -11,7 +11,7 @@ import { type ResolvedTimeFormat, } from "./date-time.js"; -export type RuntimeInfoInput = { +type RuntimeInfoInput = { agentId?: string; host: string; os: string; @@ -28,7 +28,7 @@ export type RuntimeInfoInput = { canvasRootDir?: string; }; -export type SystemPromptRuntimeParams = { +type SystemPromptRuntimeParams = { runtimeInfo: RuntimeInfoInput; userTimezone: string; userTime?: string;