@ev-ai/agent-hook 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COLLECTED-DATA.md +2 -0
- package/dist/cli.mjs +41 -70
- package/dist/hook.mjs +36 -64
- package/dist/managed-hooks-snippet.cjs +1131 -8090
- package/dist/managed-hooks-snippet.mjs +1129 -8095
- package/dist/plugin-hooks.mjs +1 -8275
- package/package.json +1 -1
package/COLLECTED-DATA.md
CHANGED
|
@@ -65,6 +65,8 @@ Install wires Claude `SessionStart` / `UserPromptExpansion` / `UserPromptSubmit`
|
|
|
65
65
|
|
|
66
66
|
When Cursor loads Claude (or Codex) file hooks as third-party configs alongside `.cursor/hooks.json`, the binary drops the foreign `--runner` twin so `platform` stays `cursor` and events are not duplicated. Claude Code and Codex hosts are unaffected. Stacked same-runner configs (user + project hooks, or plugin + file wiring) collapse to one POST via a short-lived claim lock (`EVENT_CLAIM_DEDUP_ENABLED=false` disables).
|
|
67
67
|
|
|
68
|
+
> **Currently disabled.** Policy detection is turned off in this build: envelopes send `policy_version: null` and `policy_capabilities: []`, the collector therefore returns no rule table, `install` sends no policy fetch, and nothing is written to or read from the local policy cache described below. The rest of this section describes the behaviour when the feature is enabled.
|
|
69
|
+
|
|
68
70
|
Every envelope also carries `policy_version` (the integer in the local cache, or `0` when none) and `policy_capabilities` (selectors this hook build can evaluate). The collector may reply with a rule table when that version is stale. `install` POSTs a lightweight `session_start` (`run_meta.trigger: policy_install_fetch`) so the first table is on disk before a session starts.
|
|
69
71
|
|
|
70
72
|
## Local policy cache (inbound)
|