hooks

package
v0.199.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
var ClaudeSettings []byte

ClaudeSettings is the hooks fragment merged into .claude/settings.json (hooks.* arrays + env.CLAUDE_CODE_STOP_HOOK_BLOCK_CAP).

View Source
var CodexHooks []byte

CodexHooks is the hooks fragment merged into .codex/hooks.json.

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL