@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
27 lines • 1.31 kB
TypeScript
import type { CallCounters, OutstandingCall } from "./compact-call-model.ts";
import type { CompactComponentRoots } from "./compact-component-roots.ts";
import type { CompactContentStore } from "./compact-content-store.ts";
import type { CompactSessionCalls } from "./compact-session-calls.ts";
import type { FrozenCompactState, MessageRoot } from "./compact-state-view.ts";
import { type FrozenBlock } from "./compact-text-view.ts";
export interface CallView extends Omit<OutstandingCall, "raw" | "hook" | "progress" | "result"> {
readonly raw: string | null;
readonly hook: unknown;
readonly progress: unknown;
readonly result: unknown;
}
export interface CallsView {
readonly sequence: number;
readonly calls: readonly CallView[];
readonly counters: CallCounters;
}
interface Owner {
readonly calls: CompactSessionCalls;
readonly store: CompactContentStore;
readonly blockRoots: CompactComponentRoots<FrozenBlock>;
readonly messageRoots: CompactComponentRoots<MessageRoot>;
}
/** Whole-view assembly of the calls at a cut; a streaming call's raw prefix is read through the active message. */
export declare function readCalls(frozen: FrozenCompactState, owner: Owner, valid: () => void): Promise<CallsView>;
export {};
//# sourceMappingURL=compact-call-view.d.ts.map