Structs§
- Hook
Gate - Combined verdict across all responding hooks for one event.
- Hook
Response - One enabled hook’s parsed response to a hook event. Most hooks print
nothing and exit 0 — that’s an
HookDecision::Allowwith no extras, so pre-contract hooks keep working unchanged. - Plugin
Capability Preview - A summary of what a plugin declares it will do, shown before install/enable.
These are advisory disclosures for informed consent, not an enforced sandbox
(see
PluginManifest::capabilities). - Plugin
Manifest
Enums§
- Hook
Decision - Allow-or-deny verdict parsed from a hook’s stdout / exit status.
Functions§
- aggregate_
hook_ responses - Aggregate hook responses: first deny wins, last
updated_inputwins, contexts concatenate in order. - install_
plugin_ from_ path - plugin_
capability_ preview - run_
plugin_ hooks - Run every enabled plugin’s hooks for
event, returning their parsed responses (empty when no plugin responds — most events, most hooks). Callers that gate on the result aggregate viaaggregate_hook_responses; fire-and-forget callers keep ignoring the return value. - validate_
plugin_ manifest - write_
plugin_ lockfile