/** * `peaks code should-pause` — v2.11.0 D5 mode-gate CLI seam. * * Extracted VERBATIM from `code-mode-gate-commands.ts` (job * strict-remediation-abc, slice c1-eslint-family-sweep, leaf c4w1-cli-b) so * the registration file clears the 300-line cap and the * `max-lines-per-function` / `complexity` findings that sat on the giant * commander action arrow fall with it. * * The order of the four validation rejects (mode → step → hard-floor → * commit-boundary-action), each `process.exitCode = 1`, the stale-presence * override on `step-1-mode-select` (which prints an `ok(...)` envelope with * `shouldPause: true` and reason `stale-presence — re-ask Step 1 (...)`), the * outer try/catch that answers with SHOULD_PAUSE_FAILED + * `process.exitCode = 1` — every one of those is the code that was already * there. The envelope builders themselves live in * `code-mode-gate-should-pause-envelope.ts`; `readActiveSidForModeGate` was * kept in the registration file (a callback parameter here) so its * catch-return-null grace frame keeps counting under the same path. */ import type { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; import { type ReadActiveSid } from './code-mode-gate-should-pause-envelope.js'; export declare function registerCodeModeShouldPause(code: Command, io: ProgramIO, readActiveSid: ReadActiveSid): void;