/** * H5 multi-dimension state-detection logic per v0.6 Step 3.3 (Q3.0.3 * + Q3.0.7 locks at v0.6 Step 3.0; Q3.3.1-Q3.3.8 locks at v0.6 Step * 3.3 surface review). * * Detects 6 substrate dimensions independently (per Q3.3.1 single- * file lock + Q3.0.3 independent-detection lock): * 1. ADRs — pattern-match `^\d{4}-.*\.md$` in resolved ADR dir * (config-driven OR canonical `docs/adr/` fallback per Q3.3.2) * 2. code — source files matching language extensions; binary * present + substantive ≥5 advisory per Q3.3.3 * 3. README — file existence + word count ≥300 per Q3.3.4 + * Q3.0.7 placeholder * 4. DESIGN.md — file existence + word count ≥500 per Q3.3.4 + * Q3.0.7 placeholder * 5. language — configured from `.contextatlas.yml` OR auto-detect * via file-extension scan per Q3.3.5 * 6. git — atlas committed + extracted_at_sha matches HEAD per * Q3.3.6 (reuses A4 atlas-only-mode helpers from * src/queries/atlas-only-mode.ts) * * Detection layer is independent per Travis observation lock at Step * 3.0 (H5 = detection layer; A6 doctor = consumer for verbose-mode * UX; cohort recruitment infrastructure = consumer for participant * selection criteria). Each consumer references H5 detection output * for its own purpose without coupling H5 implementation to consumer * concerns. */ import type { LanguageCode } from "../../types.js"; import type { CheckContext, DoctorCheck } from "../types.js"; /** * Run all 6 dimension detectors and aggregate results into DoctorCheck * array. Per H5 detection-layer-separation observation lock at v0.6 * Step 3.0: H5 produces state-detection checks; doctor consumes for * verbose-mode UX; cohort recruitment consumes for participant * selection criteria. */ /** * Returns ContextAtlasConfig-supported languages detected in the * filesystem (typescript / python / go / ruby / csharp subset per * LanguageCode union; filters out javascript/rust/java from * LANGUAGE_EXTENSIONS map). Pure helper — no config required; * avoids chicken-and-egg with config setup at runner Step 4.3 * sequence per Q4.3.3 + Q4.3.4 locks. * * Used by `runInitSubcommand` at Step 4.3 detect-then-scaffold * reorder per Q4.3.4 lock + Q4.2.4 Q11-style refinement (replaces * STEP_4_2_LANGUAGES_PLACEHOLDER with H5-detected languages list). */ export declare function detectLanguagesFromFilesystem(repoRoot: string): readonly LanguageCode[]; export declare function stateDetectionChecks(ctx: CheckContext): Promise; //# sourceMappingURL=state-detection.d.ts.map