/** * `peaks contract` CLI commands — 2.7.0 slice-dag-dispatcher MVP * (slice 1.2.c — LLM-side contract writer). * * Round-2 fix #5 (upgrade placeholder prompt) tells the LLM-side * runner to execute `peaks contract write --project ...` to * persist its slice's public surface so the orchestrator can splice * the contract into downstream dispatch prompts via * `formatContractInjection`. This file is the actual implementation * of that command — without it, the round-2 prompt would direct the * LLM to a CLI that doesn't exist (the round-5 audit caught this). * * The command is a thin wrapper over `writeContract` from * `src/services/dispatch/contract-store.ts`; it accepts the same * shape, splits the comma-separated `--exports` / `--types` / * `--signatures` flag values into arrays, and surfaces the result * via the standard `ok` / `fail` envelope used across peaks-cli. * * Skill-first / CLI-auxiliary red line: users do not invoke this * directly. The peaks-solo / peaks-rd LLM-side runner (the * IDE-resident sub-agent that finished a slice) calls this command * after the slice completes. */ import { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export declare function registerContractCommands(program: Command, io: ProgramIO): void;