import type { RunState } from '../../domains/engine/types.js'; import { type StateDocument } from '../../domains/engine/state.js'; export declare const CLASSIC_PROFILES: readonly ["full", "hotfix", "tweak"]; export declare const CLASSIC_MIGRATION_VERSION = 1; declare const PHASES: readonly ["open", "design", "build", "verify", "archive"]; declare const ARTIFACT_LANGUAGES: readonly ["en", "zh-CN"]; declare const CONTEXT_COMPRESSION: readonly ["off", "beta"]; declare const BUILD_MODES: readonly ["subagent-driven-development", "executing-plans", "direct"]; declare const BUILD_PAUSES: readonly ["plan-ready"]; declare const SUBAGENT_DISPATCH: readonly ["confirmed"]; declare const TDD_MODES: readonly ["tdd", "direct"]; declare const REVIEW_MODES: readonly ["off", "standard", "thorough"]; declare const ISOLATIONS: readonly ["current", "branch", "worktree"]; declare const VERIFY_MODES: readonly ["light", "full"]; declare const VERIFY_RESULTS: readonly ["pending", "pass", "fail"]; declare const BRANCH_STATUSES: readonly ["pending", "handled"]; declare const ARCHIVE_CONFIRMATIONS: readonly ["pending", "confirmed"]; export type ClassicProfile = (typeof CLASSIC_PROFILES)[number]; export type ClassicPhase = (typeof PHASES)[number]; export type ClassicArtifactLanguage = (typeof ARTIFACT_LANGUAGES)[number]; export interface ClassicState { workflow: ClassicProfile; language: ClassicArtifactLanguage | null; phase: ClassicPhase; contextCompression: (typeof CONTEXT_COMPRESSION)[number] | null; buildMode: (typeof BUILD_MODES)[number] | null; buildPause: (typeof BUILD_PAUSES)[number] | null; subagentDispatch: (typeof SUBAGENT_DISPATCH)[number] | null; tddMode: (typeof TDD_MODES)[number] | null; reviewMode: (typeof REVIEW_MODES)[number] | null; isolation: (typeof ISOLATIONS)[number] | null; boundBranch: string | null; verifyMode: (typeof VERIFY_MODES)[number] | null; autoTransition: boolean | null; baseRef: string | null; designDoc: string | null; plan: string | null; verifyResult: (typeof VERIFY_RESULTS)[number]; verifyFailures: number; verificationReport: string | null; branchStatus: (typeof BRANCH_STATUSES)[number] | null; createdAt: string | null; verifiedAt: string | null; archiveConfirmation: (typeof ARCHIVE_CONFIRMATIONS)[number] | null; archived: boolean; directOverride: boolean | null; handoffContext: string | null; handoffHash: string | null; classicProfile: ClassicProfile | null; classicMigration: number | null; } export interface ClassicStateProjection { classic: ClassicState | null; run: RunState | null; unknownKeys: string[]; } export declare const CLASSIC_WIRE_KEYS: readonly ["workflow", "language", "phase", "context_compression", "build_mode", "build_pause", "subagent_dispatch", "tdd_mode", "review_mode", "isolation", "bound_branch", "verify_mode", "auto_transition", "base_ref", "design_doc", "plan", "verify_result", "verify_failures", "verification_report", "branch_status", "created_at", "verified_at", "archive_confirmation", "archived", "direct_override", "handoff_context", "handoff_hash", "classic_profile", "classic_migration"]; /** Fields that appear in .comet.yaml to link to the Run state. */ export declare const RUN_WIRE_KEYS: readonly ["run_id"]; export declare function parseClassicStateDocument(doc: StateDocument, run?: RunState | null): ClassicStateProjection; export interface LegacyStateSummary { workflow: ClassicProfile | null; phase: ClassicPhase | null; archived: boolean; designDoc: string | null; unknownKeys: string[]; } export declare function readLegacyStateSummary(doc: StateDocument): LegacyStateSummary; export declare function classicStateToDocument(state: ClassicState): StateDocument; export {}; //# sourceMappingURL=classic-state.d.ts.map