UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

21 lines • 1.5 kB
import { type PersistedBase } from "../../core/session-transcript-journal.ts"; import type { TranscriptRoot } from "./accepted-transcript.ts"; import { type FrozenBytes } from "./compact-recovery-bytes.ts"; import { type BaseRef, type ContentRef } from "./compact-recovery-ids.ts"; /** The FrozenBytes of the base, with the bound its row table keeps (RULING-71 (2)). */ export interface BaseBytes extends FrozenBytes { readonly rowsPerAnchor: number; readonly tableBytes: number; /** The most rows one range re-derived; a test instrument for the bounded reparse between anchors. */ readonly peakRangeRows: number; } /** The base this cut's reserved ref names; another cut's ref, an unavailable transcript or no base is `range`. */ export declare function baseStream(transcript: TranscriptRoot, catalogRoot: ContentRef, ref: BaseRef): PersistedBase; /** * Opens the base's stamped rows after one verifying scan of the file: `count` entries must be there and fingerprint * as the cut captured, else a typed `PersistedBaseError` and no source exists. The row table is bounded by `budget` * (RULING-71 (2)). The scan belongs to the request that asked for it (RULING-69 (2)): once `signal` aborts no further * read happens and the open is `aborted`; `valid` runs after every read of the file. */ export declare function openBaseBytes(base: PersistedBase, valid: () => void, signal?: AbortSignal, budget?: number): Promise<BaseBytes>; //# sourceMappingURL=compact-recovery-base.d.ts.map