Documentation
¶
Overview ¶
Package hookedge is the CLI wire edge: decode/encode provider hooks via agenthooks and forward Invoke to the local daemon.
Owns: provider wire decode/encode, single gRPC Invoke forward, policy.offline when the daemon is unreachable. Must not: full Decide / guards / route compile (daemon dispatch + targets/builtin).
Invariants:
- Never log to stdout on the hook path.
- Preserve Event.Raw verbatim.
- Unreachable daemon → config.OfflineFor; fail_open encodes Neutral / exit 0.
Entry: Run, Notify, Serve. See DESIGN.md §1.5 (invoke_sync).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Notify ¶
Notify handles Codex notify-style hooks (argv JSON). Always async semantics on the daemon. Prints no provider decision wire; exit 0 on success.
func ResolveCWD ¶
ResolveCWD picks cwd from hook JSON: cwd, then workspace_roots[0], then os.Getwd().
Types ¶
Click to show internal directories.
Click to hide internal directories.