UNPKG

@code-yeongyu/senpi

Version:

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

30 lines • 1.26 kB
import { type Stats } from "node:fs"; import { z } from "zod"; export declare const ROOT_MARKER = ".compact-spool-owner"; declare const Owner: z.ZodObject<{ bootNonce: z.ZodString; pid: z.ZodNumber; startTime: z.ZodString; }, z.core.$strip>; declare const Marker: z.ZodObject<{ kind: z.ZodEnum<{ live: "live"; scratch: "scratch"; }>; token: z.ZodString; owner: z.ZodNullable<z.ZodObject<{ bootNonce: z.ZodString; pid: z.ZodNumber; startTime: z.ZodString; }, z.core.$strip>>; }, z.core.$strip>; export type RootOwner = Readonly<z.infer<typeof Owner>>; export type RootMarker = Readonly<z.infer<typeof Marker>>; export declare function currentRootOwner(): Promise<RootOwner | null>; /** Only these three proofs permit reclaim. A probe failure never becomes evidence of death. */ export declare function rootOwnerState(owner: RootOwner | null): Promise<"dead" | "alive" | "unknown">; export declare function privateRootStat(stat: Stats): boolean; /** The file is opened no-follow, bounded, then parsed once; an old or unreadable marker is UNKNOWN. */ export declare function readRootMarker(dir: string): Promise<RootMarker | undefined>; export {}; //# sourceMappingURL=compact-root-owner.d.ts.map