refactor(agents): hide session tool helper types

This commit is contained in:
Vincent Koc
2026-06-17 13:00:14 +08:00
parent 0baaa63def
commit 3d3d8a5bef
2 changed files with 2 additions and 9 deletions

View File

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

View File

@@ -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<TDetails> = {
content: (TextContent | ImageContent)[];
details: TDetails;
};
/** Formats the invalid-argument marker with the active theme. */
export function invalidArgText(theme: Pick<Theme, "fg">): string {
return theme.fg("error", "[invalid arg]");