/** * peaks audit * CLI surface — Slice L2.1 + L2.3 P2-a. * * Registers the new `peaks audit` top-level command with the * `red-lines` (L2.1) and `static` (L2.3 P2-a) subcommands. * Per `peaks-cli-when-adding-a-new-subcommand-check-for-existing-top-level-first.md` * we verified that no `peaks audit` top-level exists; this is the only * file that owns the registration. */ import { Command } from 'commander'; import { type AgentShieldState } from '../../services/audit/static-service.js'; import { type ProgramIO } from '../cli-helpers.js'; import type { RedLineAudit } from '../../services/audit/types.js'; import type { AuditDecisionRecord } from '../../services/audit/decision-writer.js'; export interface AuditGoalData { readonly status: 'scaffold-only'; readonly serviceWired: true; readonly providerBinding: 'pending-follow-up-slice'; readonly need: string; readonly projectRoot: string; } export interface StaticAuditData { readonly audit: RedLineAudit; readonly agentShield: AgentShieldState; /** Populated only when `--record` is passed. Persisted decision record path. */ readonly decision?: AuditDecisionRecord; } export declare function registerAuditCommands(program: Command, io: ProgramIO): void;