UNPKG

@blundergoat/goat-flow

Version:

AI coding agent harness and local dashboard for Claude Code, OpenAI Codex, Google Antigravity, and GitHub Copilot - setup audits, guardrails, structured skills, deny hooks, and persistent learning loops.

19 lines 1.25 kB
/** * Implements the `hooks` command family (list / sync / enable / disable) for the CLI. * It is a thin presentation+validation layer over the server-side hook registrar: it lazy-imports * the registrar so the heavy module only loads when a hooks command actually runs, picks JSON vs * the compact text table from `--format`, and translates the registrar's typed errors into * CLIErrors with the right exit code (404 -> usage error 2, everything else -> failure 1). */ import type { ParsedCLI } from "./cli-types.js"; /** * Handle the hooks command, dispatching list/sync/enable/disable to the lazily-imported registrar. * Reports registrar failures as CLIErrors: a HookRegistrarError 404 (unknown hook) throws exit 2, * any other registrar error throws exit 1, and non-registrar errors are rethrown unchanged. An * unrecognised subcommand that reaches the end throws a usage CLIError (exit 2) with the syntax. * * @param options - parsed CLI options; reads `hookSubcommand`, `hookId`, `projectPath`, and `format` * @returns a promise that resolves once output is written; rejects (throws) on the error paths above */ export declare function handleHooksCommand(options: ParsedCLI): Promise<void>; //# sourceMappingURL=hooks-command.d.ts.map