Documentation
¶
Overview ¶
Package hooks embeds the agent-CLI hook templates `gofer init hooks` merges into a project's (or the user's) Claude Code / Codex hook configuration — one source of truth, no drift between the tracked hooks/ tree and what init writes out (same rationale as skills/embed.go). Every hook entry runs the gofer binary itself (`gofer hook <agent>`), so there is no script to ship.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ClaudeSettings []byte
ClaudeSettings is the hooks fragment merged into .claude/settings.json (hooks.* arrays + env.CLAUDE_CODE_STOP_HOOK_BLOCK_CAP).
var CodexHooks []byte
CodexHooks is the hooks fragment merged into .codex/hooks.json.
var OmpExtension []byte
OmpExtension is the TypeScript shim written to omp's extensions directory (omp has no command hooks; the shim forwards its events to `gofer hook omp`).
Functions ¶
This section is empty.
Types ¶
This section is empty.