UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

23 lines • 834 B
import { type ReadFolder } from "@earendil-works/pi-agent-core/read-folders"; import type { TextContent } from "@earendil-works/pi-ai"; import { type TruncationResult } from "./truncate.ts"; export interface ReadToolDetails { truncation?: TruncationResult; } /** * What the model sees for a text file: the selected lines, folded or truncated, with a continuation notice for the * model alone. Undefined when the read was aborted meanwhile. */ export declare function shapeTextRead(input: { path: string; absolutePath: string; textContent: string; offset: number | undefined; limit: number | undefined; folder: ReadFolder | undefined; isAborted: () => boolean; }): Promise<{ content: TextContent[]; details: ReadToolDetails | undefined; } | undefined>; //# sourceMappingURL=read-text.d.ts.map