trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
30 lines • 895 B
TypeScript
/**
* Milestone Module
*
* Extracted from engine.ts per DESIGN.md §8.1.
* Handles milestone creation, listing, and op-range computation.
*/
import type { VcsOp } from './types.js';
import type { EngineContext } from './engine-context.js';
export interface MilestoneInfo {
id: string;
message?: string;
createdAt?: string;
createdBy?: string;
fromOpHash?: string;
toOpHash?: string;
affectedFiles: string[];
}
/**
* Create a milestone spanning a range of ops.
* If no fromOpHash is specified, spans from the last milestone (or start).
*/
export declare function createMilestone(ctx: EngineContext, message: string, opts?: {
fromOpHash?: string;
toOpHash?: string;
}): Promise<VcsOp>;
/**
* List all milestones from the EAV store.
*/
export declare function listMilestones(ctx: EngineContext): MilestoneInfo[];
//# sourceMappingURL=milestone.d.ts.map