UNPKG

@code-yeongyu/senpi

Version:

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

32 lines • 1.22 kB
import { z } from "zod"; /** * Per socket epoch (RULING-113): 16 live producers; terminal rows in an LRU of 128 rows / 16 MiB reserved disk * bytes; an evicted ID keeps only its digest in a 4,096-entry ring that answers admission_retired. */ export declare const ADMISSION_LIMITS: { readonly entries: 128; readonly bytes: number; readonly hot: 16; readonly row: 131584; readonly retired: 4096; }; declare const rowSchema: z.ZodObject<{ fingerprint: z.ZodString; state: z.ZodEnum<{ cancelled: "cancelled"; complete: "complete"; failed: "failed"; pending: "pending"; }>; failure: z.ZodOptional<z.ZodLiteral<"storage_unavailable">>; answer: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type AdmissionRow = z.infer<typeof rowSchema>; type Directory = { readonly directory: Promise<string>; readonly failures?: ReadonlyMap<string, AdmissionRow>; }; export declare function readAdmissionRow(epoch: Directory, key: string): Promise<AdmissionRow | undefined>; export declare function writeAdmissionRow(epoch: Directory, key: string, row: AdmissionRow): Promise<void>; export {}; //# sourceMappingURL=compact-admission-storage.d.ts.map