/** * `peaks prepare-final-review ` CLI wrapper (W5 Fix M2; real provider * binding added by the S3 defect-remediation slice). * * Exposes the `prepareFinalReview()` service (W2 T9 on * `feature/slice-topology-multipass`) via the CLI surface. The service * depends on an injected `LlmRunner`; the binding lives in * `final-review-prepare-command.ts`: * - `--llm-provider stub` (default) returns a structured "scaffold ready" * envelope WITHOUT calling the service, so CI can verify the route * offline. It performs no review, and says so in every hint it emits. * - `--llm-provider anthropic` binds the real Messages-API runner * (`resolveAnthropicConfig()` + `createAnthropicRunner()`) and runs the * service for real, carrying the 4-dim result back in the envelope. * An absent credential or model raises `LlmBindingError`, reported under * its own error code — never degraded into a scaffold a caller could * mistake for a review. * Unknown provider names still fail loudly with * `LLM_PROVIDER_NOT_IMPLEMENTED` rather than silently falling back to stub. * * Per the dev-preference "Default-no on new CLI commands" rule and the * W4 T14 spec, this is a NEW top-level command (`prepare-final-review`), * not a subcommand of `audit`. The two primitives are distinct: * - `peaks audit goal` — propose a 6-dim goal from a human need * - `peaks prepare-final-review` — produce a 4-dim review evidence * pack for human acceptance * * This file is the registration module only; the run body it dispatches to * lives in `final-review-prepare-command.ts` and the envelope vocabulary in * `final-review-command-shared.ts`. */ import type { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export declare function registerFinalReviewCommands(program: Command, io: ProgramIO): void; export { emptyFinalReviewData, isSupportedLlmProvider, type FinalReviewData, type FinalReviewProviderBinding, type FinalReviewStatus, type PrepareFinalReviewOptions } from './final-review-command-shared.js';