UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

24 lines 808 B
/** * Checkpoint Module * * Extracted from engine.ts per DESIGN.md §8.1. * Handles checkpoint creation, listing, and auto-checkpoint logic. */ import type { VcsOp } from './types.js'; import type { EngineContext } from './engine-context.js'; export type CheckpointTrigger = 'manual' | 'op-count' | 'interval' | 'green-build'; export interface CheckpointInfo { id: string; createdAt?: string; trigger?: string; atOpHash?: string; } /** * Create a checkpoint at the current position in the causal stream. */ export declare function createCheckpoint(ctx: EngineContext, trigger?: CheckpointTrigger): Promise<VcsOp>; /** * List all checkpoints from the EAV store. */ export declare function listCheckpoints(ctx: EngineContext): CheckpointInfo[]; //# sourceMappingURL=checkpoint.d.ts.map