/** * Task CRUD storage for ARCS projects. * * Provides create, list, get, update, delete operations for tasks, * with a flat JSON index and markdown render for human-readable output. */ export type { FileRef, TaskPriority, TaskStatus } from "./storage-utils.js"; export { TASK_PRIORITIES, TASK_STATUSES } from "./storage-utils.js"; export type TaskWorkMode = "bounded" | "inspect"; export interface TaskMeta { id: string; normalizedId: string; title: string; status: import("./storage-utils.js").TaskStatus; priority: import("./storage-utils.js").TaskPriority; planId?: string; dependsOn?: string[]; sourceFiles?: import("./storage-utils.js").FileRef[]; /** Per-node `%% scope:` metadata for plan diagrams (paths/dirs in scope). */ scope?: string; /** Per-node `%% acceptance:` metadata: human-readable acceptance criterion. */ acceptance?: string; /** Per-node `%% verify:` metadata: shell command to verify task completion. */ verify?: string; /** Per-node `%% skill:` metadata: which skill to load when executing the task. */ skill?: string; /** Per-node `%% work-mode:` metadata for implementation task routing. */ workMode?: TaskWorkMode; createdAt: string; updatedAt: string; } interface TaskIndex { tasks: TaskMeta[]; } export interface CreateTaskInput { title: string; status?: import("./storage-utils.js").TaskStatus; priority?: import("./storage-utils.js").TaskPriority; planId?: string; dependsOn?: string[]; sourceFiles?: import("./storage-utils.js").FileRef[]; scope?: string; acceptance?: string; verify?: string; skill?: string; workMode?: TaskWorkMode; now?: string; } export interface UpdateTaskInput { id: string; title?: string; status?: import("./storage-utils.js").TaskStatus; priority?: import("./storage-utils.js").TaskPriority; planId?: string | null; dependsOn?: string[] | null; sourceFiles?: import("./storage-utils.js").FileRef[]; /** Pass `null` to clear; pass string to set. */ scope?: string | null; /** Pass `null` to clear; pass string to set. */ acceptance?: string | null; /** Pass `null` to clear; pass string to set. */ verify?: string | null; /** Pass `null` to clear; pass string to set. */ skill?: string | null; /** Pass `null` to clear; pass a work mode to set. */ workMode?: TaskWorkMode | null; now?: string; } export declare function normalizeTaskWorkMetadata(task: TaskMeta): TaskMeta; export declare function renderTasksMd(projectDir: string, index: TaskIndex): Promise; export declare function createTask(projectDir: string, input: CreateTaskInput): Promise; export declare function listTasks(projectDir: string, filters?: { status?: import("./storage-utils.js").TaskStatus; priority?: import("./storage-utils.js").TaskPriority; }): Promise; export declare function getTask(projectDir: string, taskId: string): Promise; export declare function updateTask(projectDir: string, input: UpdateTaskInput): Promise; export declare function deleteTask(projectDir: string, taskId: string): Promise; //# sourceMappingURL=task-store.d.ts.map