@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
22 lines • 1.19 kB
TypeScript
/** One tool card's rendered-lines cache and render revision, counted in the process-wide totals. */
export declare class ToolExecutionRenderCache {
#private;
constructor();
/** Changes with every invalidation, so a finished card can skip rendering an unchanged frame. */
get revision(): number;
read(width: number, signature: string): string[] | undefined;
store(width: number, signature: string, lines: readonly string[]): void;
invalidate(): void;
/** Image parts the card's current result holds. */
setImages(count: number): void;
/**
* The card finished; \`bytes\` is the serialized size of its retained \`result\`, computed once by the
* component at finalize. A streaming card never calls this, so its \`resultBytes\` stays the last
* finalized figure - never a partial render's. Calling again replaces the earlier figure.
*/
finalizeResult(bytes: number): void;
dispose(): void;
}
/** Serialized size of a card's retained result: the JSON of its content parts plus the details payload. */
export declare function serializedToolResultBytes(result: unknown): number;
//# sourceMappingURL=tool-execution-cache.d.ts.map