@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
18 lines • 690 B
TypeScript
import type { AgentAbortSource } from "../../core/agent-abort-provenance.ts";
import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcSnapshot } from "./snapshot-types.ts";
type SnapshotRequest = {
readonly tail?: unknown;
readonly maxBytes?: unknown;
};
/** Capture and mark on the source loop, before any response-writing await. */
export declare function getSnapshot(session: AgentSession, request: SnapshotRequest, cursor: {
readonly enqueue: (markerId: string) => void;
readonly lastAbortSource?: AgentAbortSource;
}): {
readonly data: RpcSnapshot;
} | {
readonly error: string;
};
export {};
//# sourceMappingURL=get-snapshot.d.ts.map