@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
29 lines • 1.43 kB
TypeScript
import { type Component, Container, type TuiMouseEvent } from "@earendil-works/pi-tui";
import type { ExplorationCall } from "./exploration-call.ts";
import type { ToolExecutionComponent } from "./tool-execution.ts";
/**
* Codex-style exploring cell over the original tool cards. It is a non-owning view: the transcript
* owns and disposes the cards, and result routing keeps addressing them by tool call id.
*/
export declare class ExplorationGroup extends Container {
calls: {
readonly component: ToolExecutionComponent;
readonly call: ExplorationCall;
}[];
/** Rule paths injected into this group's calls; repeated paths count once. */
private rules;
/** What the collapsed body shows; a change makes the group's previous output stale. */
private bodyKey;
private memberSnapshot;
private get expanded();
render(width: number): string[];
handleMouse(event: TuiMouseEvent): ReturnType<Container["handleMouse"]>;
/** References are replaced on each projection, never disposed by this view. */
setMembers(members: Component[], calls: ExplorationGroup["calls"], rules?: readonly string[]): void;
/**
* Settled groups render from their calls, rules and member cards; a pending group animates its
* spinner from the clock, so it renders every frame.
*/
getRenderRevision(): number | undefined;
}
//# sourceMappingURL=exploration-group.d.ts.map