UNPKG

@code-yeongyu/senpi

Version:

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

44 lines • 2.16 kB
import type { CatalogFamily } from "./compact-catalog-registry.ts"; import type { BoundedId, ContentDigest, ContentRef } from "./compact-recovery-ids.ts"; import type { RecoveryRouteKind } from "./compact-recovery-types.ts"; /** A manifest string: inline when it is a bounded protocol id, otherwise a ref to its exact stored value. */ export type ManifestText = { readonly id: BoundedId; } | { readonly ref: ContentRef; readonly length: number; readonly digest: ContentDigest; }; /** * The compact-v1 manifest (R4.B1): bounded scalar identity of one frozen checkpoint and the root of its catalog; * never the checkpoint or a list of its components. Every id is generated and bounded; a session id or transcript * id a user chose becomes a ref (RULING-57 Q2 (2)) and reads back exactly through the catalog. */ export interface RecoveryManifest { readonly format: "senpi-recovery-manifest"; readonly version: 1; readonly socketEpoch: ManifestText; readonly admissionId: ManifestText; readonly routeKind: RecoveryRouteKind; readonly session: ManifestText; readonly sessionEpoch: ManifestText; readonly generation: number; readonly sequence: number; readonly historyVersion: number; readonly token: ManifestText; readonly leaf: ManifestText | null; readonly activeMessage: ManifestText | null; readonly turn: ManifestText | null; readonly checkpointDigest: ContentDigest; readonly catalogRoot: ContentRef; readonly catalogRootLength: number; /** * The catalog families this cut's root requires (RULING-128): its complete families only, sorted, each once. It is * the `requiredKinds` of the cut's `families/families` registry, so `checkpointDigest` covers it; a client opens * exactly these and never falls back to a built-in family list. */ readonly requiredKinds: readonly CatalogFamily[]; } export declare const TEXT_FIELDS: readonly ["socketEpoch", "admissionId", "session", "sessionEpoch", "token", "leaf", "activeMessage", "turn"]; export type TextField = (typeof TEXT_FIELDS)[number]; //# sourceMappingURL=compact-recovery-manifest-shape.d.ts.map