feat: add internal hooks system

This commit is contained in:
Peter Steinberger
2026-01-17 01:31:39 +00:00
parent a76cbc43bb
commit faba508fe0
39 changed files with 4241 additions and 28 deletions

View File

@@ -20,6 +20,7 @@ import {
import { defaultRuntime } from "../runtime.js";
import { formatDocsLink } from "../terminal/links.js";
import { theme } from "../terminal/theme.js";
import { registerInternalHooksSubcommands } from "./hooks-internal-cli.js";
export function registerHooksCli(program: Command) {
const hooks = program
@@ -31,6 +32,9 @@ export function registerHooksCli(program: Command) {
`\n${theme.muted("Docs:")} ${formatDocsLink("/cli/hooks", "docs.clawd.bot/cli/hooks")}\n`,
);
// Register internal hooks management subcommands
registerInternalHooksSubcommands(hooks);
const gmail = hooks.command("gmail").description("Gmail Pub/Sub hooks (via gogcli)");
gmail