/** * `aidlc hook` — lifecycle hooks for agent harnesses. * * Two subcommands run inside a harness hook and two install them: * * - `session-start` prints the claimed instance, its phase and its next step, * for a `SessionStart` hook to add to the agent's context after startup, * resume, `/clear` or compaction. * - `guard` answers a Claude Code `PreToolUse` call with `ask` while the claimed * instance is being planned, and with silence otherwise. * - `install` / `remove` write those into `.claude/settings.json`, and the * session-start hook into `.codex/hooks.json` only when asked by name. * * The two hook-mode subcommands exit 0 on every path and print nothing when they * have nothing to say: a hook that fails must never stop a session starting or a * file being edited (hooks-carry-lifecycle-state/AC-7, AC-12, AC-13). * * Design: design.md C5 * * @module */ import { Command } from 'commander'; /** * Hook mode. stdin is never read (AC-8): the output does not depend on why the * session started, so the payload cannot steer it and a manual run cannot hang. */ export declare function runSessionStart(from?: string): void; export declare function runGuard(from?: string): Promise; interface InstallOpts { platform?: string; guard?: boolean; } export declare function runInstall(opts: InstallOpts): void; export declare function runRemove(opts: InstallOpts): void; export declare function registerHook(program: Command): void; export {}; //# sourceMappingURL=hook.d.ts.map