/** * `peaks sub-agent share | shared-read | await | finalize` — the registrar layer. * * These commands share the G8.4 dispatcher-mediated cross-sub-agent signal * channel: * - `share` writes a `.` entry (≤ 1KB soft warn, ≥ 64KB reject). * - `shared-read` returns sibling entries (filtered by `--since` / `--key` glob). * - `await` joins a batch barrier (slice 2.7.0 MVP, claude-code only). * - `finalize` (D21) signals that a dispatched sub-agent has finished. * * Not peer-to-peer — pseudo-swarm property 3 preserved. * * The action bodies, error-code hints, record-path scans and the finalize * selection contract live in the sibling `share-*.ts` / `finalize-*.ts` modules; * this file keeps the command shape (names, descriptions, options) and the one * lazily-resolved IDE registry consumer below. */ import type { Command } from 'commander'; import { type ProgramIO } from '../cli-helpers.js'; export { FINALIZE_SELECTION_RULE, describeFinalizeRejection, selectFinalizeTarget, type FinalizeCandidate, type FinalizeSelection } from './finalize-selection.js'; export type { FinalizeOptions } from './finalize-selection.js'; export declare function registerShareCommand(parent: Command, io: ProgramIO): void; export declare function registerSharedReadCommand(parent: Command, io: ProgramIO): void; export declare function registerAwaitCommand(parent: Command, io: ProgramIO): void; /** Contract: LLM MUST call once per dispatched Task, in post-completion branch. */ export declare function registerFinalizeCommand(parent: Command, io: ProgramIO): void;