UNPKG

@phren/cli

Version:

Knowledge layer for AI agents - CLI, MCP server, and data layer

25 lines (24 loc) • 1.24 kB
import { z } from "zod"; import { type Json, type Target } from "./protocol.js"; export declare function checkpointActivityArrived(target: Target): void; declare const rowSchema: z.ZodObject<{ id: z.ZodString; turn: z.ZodNumber; boundary: z.ZodEnum<{ prompt: "prompt"; recovery: "recovery"; stop: "stop"; }>; at: z.ZodString; prompt: z.ZodString; filesChanged: z.ZodNumber; promptEntryId: z.ZodOptional<z.ZodString>; }, z.core.$strip>; export type CheckpointRow = z.infer<typeof rowSchema>; /** Record immutable boundary facts before returning; Git runs off the callback path. * The snapshot contains the files when the queued capture runs, not historical * bytes from the callback instant. A route joins this queue before reading them. */ export declare function checkpointBoundary(cwd: string, target: Target, event: string, turn: number, prompt?: string, promptEntryId?: string, at?: string): void; /** Only the pane's own checkout and conversation; child/worktree selectors are deliberately excluded. */ export declare function checkpointRoute(cwd: string, target: Target, action: string, data: Record<string, unknown>, readPane: () => Promise<Json>): Promise<unknown>; export {};