chore: include pre-built dist for github install
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Boulder State Constants
|
||||
*/
|
||||
export declare const BOULDER_DIR = ".sisyphus";
|
||||
export declare const BOULDER_FILE = "boulder.json";
|
||||
export declare const BOULDER_STATE_PATH = ".sisyphus/boulder.json";
|
||||
export declare const NOTEPAD_DIR = "notepads";
|
||||
export declare const NOTEPAD_BASE_PATH = ".sisyphus/notepads";
|
||||
/** Prometheus plan directory pattern */
|
||||
export declare const PROMETHEUS_PLANS_DIR = ".sisyphus/plans";
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export * from "./types";
|
||||
export * from "./constants";
|
||||
export * from "./storage";
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Boulder State Storage
|
||||
*
|
||||
* Handles reading/writing boulder.json for active plan tracking.
|
||||
*/
|
||||
import type { BoulderState, PlanProgress } from "./types";
|
||||
export declare function getBoulderFilePath(directory: string): string;
|
||||
export declare function readBoulderState(directory: string): BoulderState | null;
|
||||
export declare function writeBoulderState(directory: string, state: BoulderState): boolean;
|
||||
export declare function appendSessionId(directory: string, sessionId: string): BoulderState | null;
|
||||
export declare function clearBoulderState(directory: string): boolean;
|
||||
/**
|
||||
* Find Prometheus plan files for this project.
|
||||
* Prometheus stores plans at: {project}/.sisyphus/plans/{name}.md
|
||||
*/
|
||||
export declare function findPrometheusPlans(directory: string): string[];
|
||||
/**
|
||||
* Parse a plan file and count checkbox progress.
|
||||
*/
|
||||
export declare function getPlanProgress(planPath: string): PlanProgress;
|
||||
/**
|
||||
* Extract plan name from file path.
|
||||
*/
|
||||
export declare function getPlanName(planPath: string): string;
|
||||
/**
|
||||
* Create a new boulder state for a plan.
|
||||
*/
|
||||
export declare function createBoulderState(planPath: string, sessionId: string, agent?: string, worktreePath?: string): BoulderState;
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Boulder State Types
|
||||
*
|
||||
* Manages the active work plan state for Sisyphus orchestrator.
|
||||
* Named after Sisyphus's boulder - the eternal task that must be rolled.
|
||||
*/
|
||||
export interface BoulderState {
|
||||
/** Absolute path to the active plan file */
|
||||
active_plan: string;
|
||||
/** ISO timestamp when work started */
|
||||
started_at: string;
|
||||
/** Session IDs that have worked on this plan */
|
||||
session_ids: string[];
|
||||
/** Plan name derived from filename */
|
||||
plan_name: string;
|
||||
/** Agent type to use when resuming (e.g., 'atlas') */
|
||||
agent?: string;
|
||||
/** Absolute path to the git worktree root where work happens */
|
||||
worktree_path?: string;
|
||||
}
|
||||
export interface PlanProgress {
|
||||
/** Total number of checkboxes */
|
||||
total: number;
|
||||
/** Number of completed checkboxes */
|
||||
completed: number;
|
||||
/** Whether all tasks are done */
|
||||
isComplete: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user