UNPKG

@code-yeongyu/senpi

Version:

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

29 lines • 1.29 kB
import { z } from "zod"; declare const storedBindingSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; sessionPath: z.ZodString; sessionId: z.ZodString; markerEntryId: z.ZodString; sdkSessionId: z.ZodString; sentCount: z.ZodNumber; sentPrefixHash: z.ZodString; assistantContentHash: z.ZodString; lastAssistantUuid: z.ZodNullable<z.ZodString>; accountName: z.ZodString; modelId: z.ZodString; systemPromptHash: z.ZodString; toolsetHash: z.ZodString; }, z.core.$strict>; export type StoredBinding = Readonly<z.infer<typeof storedBindingSchema>>; export declare function bindingSidecarPath(sessionFile: string): string; /** * Records are keyed by the canonical session path so a symlinked directory or a * different spelling of the same file resolves to one sidecar instead of * silently losing the binding. */ export declare function canonicalSessionPath(sessionFile: string): string; export declare function readStoredBinding(sessionFile: string): Promise<StoredBinding | undefined>; export declare function writeStoredBinding(sessionFile: string, record: StoredBinding): Promise<void>; export declare function deleteStoredBinding(sessionFile: string): Promise<void>; export {}; //# sourceMappingURL=session-binding-store.d.ts.map