/** * `aidlc review` command — invoke adversarial review on an artifact. * * Behavior: * - `aidlc review ` — create or show findings for an artifact. * - Writes structured findings to * `.aidlc/state//.md.review.md`, via * `findingsFilename` — never from the argument as typed. * - In non-orchestrator mode: creates a placeholder findings file and prints * instructions for manual review (the skill `80-review.md` guides AI agents). * - With `--json`: output findings structure as JSON. * - Integrates with review gate: `evaluateTransition` already checks for `*.review.md` * files and parses findings from them. * * ## The filename used to come from the argument as typed * * It no longer does. `` `${artifactArg}.review.md` `` meant that typing * `requirements` — the phase name, and what the review skill's prose calls the * artifact — produced `requirements.review.md`, which the gate could not see * because it looks artifacts up by the template's name, `requirements.md`. The * review ran, parsed, counted and summarised correctly, and the transition failed * saying the findings file was absent. 11 files across 6 completed instances are * still on disk under that spelling. `review/findings-naming.ts` now owns the * mapping for both this writer and the reader in `transition.ts`. * * Requirements: 24.1, 24.2, 24.4, AC-1, AC-2, AC-3, AC-7 * * @module */ import { Command } from 'commander'; import type { Finding } from '../core/types.js'; /** Parsed findings file metadata (YAML frontmatter). */ export interface FindingsFileMeta { artifact: string; reviewed_at: string; reviewer: string; } /** Structured findings output for --json mode. */ export interface FindingsOutput { artifact: string; reviewed_at: string; reviewer: string; findings: Finding[]; } export { isPlaceholderFinding, normalizeSeverity, normalizeStatus, } from "../review/findings-parser.js"; /** * Parse a review findings markdown file into structured data. * * Expected format: * ``` * --- * artifact: * reviewed_at: * reviewer: * --- * * ## Finding 1 * - **Severity:** critical | major | minor | info * - **Section:** * - **Issue:** * - **Suggestion:** * - **Status:** open | resolved | accepted-risk | rejected * ``` */ export declare function parseFindingsFile(content: string): FindingsOutput; /** * Generate a placeholder findings file for manual review. */ export declare function generatePlaceholderFindings(artifactName: string, reviewer: string): string; /** * Register the `aidlc review` command on the given commander program. */ export declare function registerReview(program: Command): void; //# sourceMappingURL=review.d.ts.map