@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
30 lines • 1.59 kB
TypeScript
import { Container, type TuiMouseEvent } from "@earendil-works/pi-tui";
import { type ProgressiveTranscriptOptions } from "./progressive-transcript-container.ts";
/**
* Original children remain the lifecycle/ID/anchor model. A non-owning projection groups their
* presentation before progressive hydration, so compact frames never render hidden tool results.
* Re-projecting also handles partial args, late text, and visibility changes without moving cards.
*/
export declare class ExplorationTranscriptContainer extends Container {
private readonly display;
private groups;
/** A card's exploration call is a function of its state, so it is recomputed only after the card changes. */
private calls;
/** Last projection, reused while the same children exist and no revisioned component has changed. */
private projection;
constructor(options: ProgressiveTranscriptOptions);
render(width: number): string[];
/**
* Grouping reads card state (exploration call, detail text, rules). Every such change moves the
* render revision clock, so an unmoved clock over the same children proves the grouping is unchanged.
*/
private project;
handleMouse(event: TuiMouseEvent): import("@earendil-works/pi-tui").TuiMouseDispatchResult | undefined;
private explorationCallOf;
/** Theme and capability changes reach the original children; the painted projection's cache must drop too. */
invalidate(): void;
clear(): void;
detachAll(): void;
dispose(): void;
}
//# sourceMappingURL=exploration-transcript-container.d.ts.map