Documentation
¶
Overview ¶
Package codexhooks reads Codex's hooks/list, the app-server's account of each hook and whether the person trusted it (measured on 0.170.0), which a Codex chat and a Codex terminal session both read.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LichTrust ¶
LichTrust is the trust of a lich-plugin PreToolUse hook Codex is not running because its content changed or was never trusted, "" when every one is trusted or none is installed. Codex runs such a hook not at all and says nothing (docs/hooks/subagent-cards.md, Known ceilings), so its subagents stay native.
func TrustLich ¶
TrustLich trusts every lich-plugin hook Codex holds as untrusted or modified (LichTrust's states), through cmd, a `codex app-server` not yet started: the same hooks.state write a Codex chat's /hooks makes, for lich's own hooks alone, so a session runs them with no /hooks step. It reports how many it trusted.
Types ¶
type Hook ¶
type Hook struct {
Key string `json:"key"`
Event string `json:"eventName"`
Type string `json:"handlerType"`
Matcher string `json:"matcher"`
Command string `json:"command"`
Timeout int `json:"timeoutSec"`
Status string `json:"statusMessage"`
Source string `json:"source"`
Plugin string `json:"pluginId"`
Enabled bool `json:"enabled"`
IsManaged bool `json:"isManaged"`
Hash string `json:"currentHash"`
Trust string `json:"trustStatus"`
}
Hook is one hooks/list entry.