II.
InteractionPrimitive overview
Reference · liveinteraction-primitive:adapters-cli-hooks-add
adapters hooks <agent> add overview
Register a hook entry (project or global) for an agent. Source: packages/adapters/cli/src/commands/hooks.ts:131-162.
Attributes
displayName
adapters hooks <agent> add
kind
cli-subcommand
surface
cli
parentBin
adapters
subcommandVerb
hooks add
flags
- --handler:1:builtin|command|script (default builtin)
- --target:1:hook target (default log)
- --id:1:explicit hook id
- --priority:1:sort order (lower = earlier; default 100)
- --global:0:write to global scope (default project)
subcommandExitCodes
- 0:success:hook added
- 2:usage-error:missing hookType
description
Register a hook entry (project or global) for an agent. Source:
packages/adapters/cli/src/commands/hooks.ts:131-162.
Outgoing edges
None.
Incoming edges
exposes_subcommand1
- package:a5c-ai-adapters-cli·PackageSurfaceAdapters CLI
supports_interaction_primitive1
- agent-ui-impl:adapters.ui@current·AgentUIImpladapters UI (current) — multi-surface