/** * Status Command Utilities * * Helper functions for pause/resume/abandon/status commands * Used by slash commands and CLI * Part of increment 0007: Smart Status Management */ import { IncrementType } from '../types/increment-metadata.js'; /** * Expand a bare 4-digit id (`0001`) to the folder name (`0001-add-login`). * * The design says the bare id is accepted wherever an increment id is taken * (`specweave complete ` spells it out); `pause`/`resume`/`abandon` used * to hand the short form straight to MetadataManager and die with * "Invalid increment ID format". Unknown / ambiguous ids are returned * unchanged so the caller still produces its own error. */ export declare function expandIncrementId(incrementId: string, projectRoot?: string): string; export interface PauseOptions { incrementId: string; reason?: string; force?: boolean; } export interface ResumeOptions { incrementId: string; } export interface AbandonOptions { incrementId: string; reason?: string; force?: boolean; } export interface StatusOptions { verbose?: boolean; type?: IncrementType; } /** * Pause an active increment */ export declare function pauseIncrement(options: PauseOptions): Promise; /** * Resume a paused or abandoned increment */ export declare function resumeIncrement(options: ResumeOptions): Promise; /** * Start an increment: `planned`/`backlog`/`paused` → `active`. * * The 2.0 loop resolves the single ACTIVE increment for `task`, `verify` and * `handoff`. `create-increment` already creates in `active`; this is the * explicit CLI transition for `--planned` (backlog) increments, for imported * ones, and for 1.x increments still carrying `planning`. Idempotent. */ export declare function startIncrement(options: ResumeOptions): Promise; /** * Abandon an increment */ export declare function abandonIncrement(options: AbandonOptions): Promise; export interface CompleteOptions { incrementId: string; silent?: boolean; skipValidation?: boolean; /** Close despite a missing/failing reports/verify.json (stored as metadata.closeReason). */ reason?: string; } /** * Complete an active increment * * This transitions the increment to "completed" status and then runs the * post-completion hooks (LifecycleHookDispatcher.onIncrementDone), which only * touch an external tracker when the project explicitly configured closure. * * Quality gates (unless skipValidation=true): * - All tasks must be marked complete * - All ACs must be checked * - External tool drift check (warns if >24h, blocks if >7d) * * @since v4.0 - Auto mode stop hook integration */ export declare function completeIncrement(options: CompleteOptions): Promise; /** * Show status of all increments */ export declare function showStatus(options?: StatusOptions): Promise; //# sourceMappingURL=status-commands.d.ts.map