/** * peaks code-review * CLI surface — soft-optional ocr integration * for peaks-rd Gate B3. * * Per the "skill-first / CLI-auxiliary" tenet, peaks-rd SKILL.md * is the primary surface; this CLI returns structured JSON the * skill consumes to produce a second-opinion code review. * * Subcommands: * - `peaks code-review detect-ocr` — JSON envelope describing the * current ocr install + config state (5 reasons: ready / * package-missing / binary-missing / config-missing / * detection-failed). Source of truth for the LLM endpoint * config is `peaksConfig.ocr.llm` in the user's peaks-cli * config (NOT `~/.opencodereview/config.json`). * - `peaks code-review run-ocr [--from --to --commit]` — invokes * `ocr review --format json` and wraps the result in a peaks * ResultEnvelope. Soft-fails when ocr isn't ready so peaks-rd * can continue without the second-opinion review. Injects the * LLM endpoint config as env vars (OCR_LLM_URL / OCR_LLM_TOKEN * / OCR_LLM_MODEL / OCR_USE_ANTHROPIC / OCR_LLM_AUTH_HEADER) * so the ocr subprocess never has to read from a file the * user did not set up themselves. * - `peaks code-review config-template` — prints the JSON snippet * the user should paste into their peaks-cli config.json. It * does NOT write anything. The user is in control of their * LLM token / URL / model. No `peaks ocr config set`; the user * either edits the JSON directly or uses `peaks config set * --key ocr.llm.url --value '...'` (a peaks-cli command, not * an ocr command). */ import { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export declare function registerCodeReviewCommands(program: Command, io: ProgramIO): void;