/** * Resolve the workspace root. Prefers the SUPERPROJECT: when aiws runs inside * a submodule working tree, `git rev-parse --show-toplevel` returns the * submodule root, but `.aiws` belongs to the superproject — writing it into a * submodule pollutes the submodule (PROB-SUBMODULE-AIWS). */ export declare function gitRoot(): string; /** All AIWS-managed directories live under this subdirectory */ export declare const AIWS_DIR = ".aiws"; /** Changes directory: .aiws/changes/ */ export declare function changesDir(root: string): string; /** Single change directory: .aiws/changes/{changeId}/ */ export declare function changeDir(root: string, changeId: string): string; /** Changes archive: .aiws/changes/archive/ */ export declare function changesArchiveDir(root: string): string; /** Changes templates: .aiws/changes/templates/ */ export declare function changesTemplatesDir(root: string): string; /** Batches directory: .aiws/batches/ */ export declare function batchesDir(root: string): string; /** Single batch directory: .aiws/batches/{batchId}/ */ export declare function batchDir(root: string, batchId: string): string; /** Project-level config file: .aiws/config.json (non-secret settings) */ export declare function projectConfigPath(root: string): string; /** Tools directory: .aiws/tools/ */ export declare function toolsDir(root: string): string; /** Tmp directory: .aiws/tmp/ */ export declare function tmpDir(root: string): string; /** Plan directory: .aiws/plan/ */ export declare function planDir(root: string): string; /** Requirements directory: .aiws/requirements/ */ export declare function requirementsDir(root: string): string; /** Issues directory: .aiws/issues/ */ export declare function issuesDir(root: string): string; /** Memory-bank directory: .aiws/memory-bank/ */ export declare function memoryBankDir(root: string): string; /** Secrets directory: .aiws/secrets/ */ export declare function secretsDir(root: string): string; export declare const CHANGES_REL = ".aiws/changes"; export declare const TOOLS_REL = ".aiws/tools"; export declare const TMP_REL = ".aiws/tmp"; export declare const PLAN_REL = ".aiws/plan"; export declare const REQUIREMENTS_REL = ".aiws/requirements"; export declare const ISSUES_REL = ".aiws/issues"; export declare const MEMORY_BANK_REL = ".aiws/memory-bank"; export declare const SECRETS_REL = ".aiws/secrets"; export declare function validateStampDir(root: string): string; export declare function changeSyncStampDir(root: string): string; export declare function changeArchiveStampDir(root: string): string; export declare function tmpReviewDir(root: string): string; export declare function changeJournalDir(root: string, changeId: string): string; export declare function changeEvidenceDir(root: string, changeId: string): string; export declare function changeReviewDir(root: string, changeId: string): string; export declare function changeAnalysisDir(root: string, changeId: string): string; export declare function changeRelPrefix(changeId: string): string; export declare function changeEvidenceRelPrefix(changeId: string): string; export declare function changeReviewRelPrefix(changeId: string): string; export declare const REQUIRED_WRITE_ALLOW_PATHS: string[]; export declare const REQUIRED_DENY_PATHS: string[]; export declare const WORKSPACE_SIGNAL_REL: string[]; export declare const DIR_MIGRATION_MAP: Record; export declare const FILE_MIGRATION_MAP: Record;