export declare const GOAL_WORKFLOWS_DIR = ".omx/goals"; export declare const GOAL_WORKFLOW_STATUS = "status.json"; export declare const GOAL_WORKFLOW_LEDGER = "ledger.jsonl"; export type GoalWorkflowStatus = 'pending' | 'in_progress' | 'validation_passed' | 'blocked' | 'failed' | 'complete'; export type GoalWorkflowLedgerEvent = 'workflow_created' | 'goal_started' | 'validation_passed' | 'validation_failed' | 'goal_handoff_emitted' | 'goal_completed' | 'goal_failed'; export interface GoalWorkflowRun { version: 1; workflow: string; slug: string; objective: string; status: GoalWorkflowStatus; createdAt: string; updatedAt: string; artifactDir: string; statusPath: string; ledgerPath: string; metadata?: Record; validation?: GoalWorkflowValidationSummary; evidence?: string; } export interface GoalWorkflowValidationSummary { status: Extract; summary: string; artifactPath?: string; checkedAt: string; } export interface GoalWorkflowLedgerEntry { ts: string; event: GoalWorkflowLedgerEvent; status?: GoalWorkflowStatus; message?: string; evidence?: string; validation?: GoalWorkflowValidationSummary; metadata?: Record; } export interface CreateGoalWorkflowRunOptions { workflow: string; slug?: string; objective: string; metadata?: Record; now?: Date; force?: boolean; } export interface TransitionGoalWorkflowOptions { status: Exclude; message?: string; evidence?: string; validation?: GoalWorkflowValidationSummary; metadata?: Record; now?: Date; } export declare class GoalWorkflowError extends Error { } export declare function normalizeGoalWorkflowSegment(value: string, fallback?: string): string; export declare function goalWorkflowDir(cwd: string, workflow: string, slug: string): string; export declare function goalWorkflowStatusPath(cwd: string, workflow: string, slug: string): string; export declare function goalWorkflowLedgerPath(cwd: string, workflow: string, slug: string): string; export declare function appendGoalWorkflowLedger(cwd: string, run: GoalWorkflowRun, entry: GoalWorkflowLedgerEntry): Promise; export declare function createGoalWorkflowRun(cwd: string, options: CreateGoalWorkflowRunOptions): Promise; export declare function readGoalWorkflowRun(cwd: string, workflow: string, slug: string): Promise; export declare function transitionGoalWorkflowRun(cwd: string, workflow: string, slug: string, options: TransitionGoalWorkflowOptions): Promise; //# sourceMappingURL=artifacts.d.ts.map