diff --git a/src/agents/sessions/tools/output-accumulator.ts b/src/agents/sessions/tools/output-accumulator.ts index bfc18d03e36b..a6b432a08900 100644 --- a/src/agents/sessions/tools/output-accumulator.ts +++ b/src/agents/sessions/tools/output-accumulator.ts @@ -12,13 +12,13 @@ import { truncateTail, } from "./truncate.js"; -export interface OutputAccumulatorOptions { +interface OutputAccumulatorOptions { maxLines?: number; maxBytes?: number; tempFilePrefix?: string; } -export interface OutputSnapshot { +interface OutputSnapshot { content: string; truncation: TruncationResult; fullOutputPath?: string; diff --git a/src/agents/sessions/tools/render-utils.ts b/src/agents/sessions/tools/render-utils.ts index 933c3f04deac..d6cb06c86220 100644 --- a/src/agents/sessions/tools/render-utils.ts +++ b/src/agents/sessions/tools/render-utils.ts @@ -5,7 +5,6 @@ */ import * as os from "node:os"; import { getCapabilities, getImageDimensions, imageFallback } from "@earendil-works/pi-tui"; -import type { ImageContent, TextContent } from "../../../llm/types.js"; import type { Theme } from "../../modes/interactive/theme/theme.js"; import { sanitizeBinaryOutput } from "../../shell-utils.js"; import { stripAnsi } from "../../utils/ansi.js"; @@ -80,12 +79,6 @@ export function getTextOutput( return output; } -/** Minimal shape shared by renderers that carry typed tool details. */ -export type ToolRenderResultLike = { - content: (TextContent | ImageContent)[]; - details: TDetails; -}; - /** Formats the invalid-argument marker with the active theme. */ export function invalidArgText(theme: Pick): string { return theme.fg("error", "[invalid arg]");