UNPKG

@code-yeongyu/senpi

Version:

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

35 lines • 2.31 kB
import { type RecoveryPage } from "./compact-recovery-bytes.ts"; import { type CatalogRead } from "./compact-recovery-catalog.ts"; import { type RecoveryManifest } from "./compact-recovery-manifest-shape.ts"; import type { CheckpointToken } from "./compact-recovery-types.ts"; import type { FrozenAcceptedRoot, SessionAcceptanceLane } from "./session-acceptance-lane.ts"; /** * One manifest and catalog per token, built once from the pinned root and released with the token. A component is * verified once per frozen root (RULING-69 (2)): every later page or re-open on that root reuses the verified source, * and the root's entries are dropped with the lease of the one token that pins it (`VerifiedComponents`). A source * holds leaf positions, never bytes; S11b owns the current-page retry cache. */ export declare class RecoveryManifests { private readonly catalogs; private readonly building; private readonly ready; private readonly verified; private counter; manifest(token: CheckpointToken, lane: SessionAcceptanceLane, root: FrozenAcceptedRoot, valid: () => void): Promise<RecoveryManifest>; /** A raw ref is validated before any use; without a built catalog no ref can name anything. */ read(tokenId: string, lane: SessionAcceptanceLane, root: FrozenAcceptedRoot, ref: string): Promise<CatalogRead>; get verifiedComponents(): number; /** `tokenId` pins `root` for the cache; a root another live token pins is a `FrozenRootPinnedError`. */ pin(tokenId: string, root: FrozenAcceptedRoot): void; /** * One page of a component's bytes at a raw byte offset, or of the cut's loaded base under its reserved ref (S11c, * `compact-recovery-base.ts`); a ref that names a node or nothing is `range`. A first open verifies the source * inside this request under its `signal`; it is cached only while the token still holds it. */ page(token: CheckpointToken, lane: SessionAcceptanceLane, root: FrozenAcceptedRoot, ref: string, offset: number, signal?: AbortSignal): Promise<RecoveryPage>; release(tokenId: string): void; private build; /** Owns `built` from here: a failure anywhere below releases the tree, so no owner outlives a refused build. */ private assemble; } //# sourceMappingURL=compact-recovery-manifest.d.ts.map