From 2907be34e630d1f9c7a2b97325b61dc4ab928472 Mon Sep 17 00:00:00 2001 From: pratikwayase Date: Wed, 29 Jul 2026 14:24:57 +0530 Subject: [PATCH] docs: update hooks.md event name list and count to include sessionEnd and userPromptSubmitted --- docs/contributing/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contributing/hooks.md b/docs/contributing/hooks.md index 69f51129e..d4d918151 100644 --- a/docs/contributing/hooks.md +++ b/docs/contributing/hooks.md @@ -83,7 +83,7 @@ Telemetry follows this model with a no-op gate and structured JSONL append behav ## Manifest Schema and Validation -Manifests are validated against `scripts/linting/schemas/hook-manifest.schema.json`, the authoritative contract. The schema enforces the allowed top-level keys (`version`, `description`, `hooks`), the eight CLI-lowercase event names (`sessionStart`, `userPromptSubmit`, `preToolUse`, `postToolUse`, `preCompact`, `subagentStart`, `subagentStop`, `stop`), and the permitted command properties. +Manifests are validated against `scripts/linting/schemas/hook-manifest.schema.json`, the authoritative contract. The schema enforces the allowed top-level keys (`version`, `description`, `hooks`), the ten CLI-lowercase event names (`sessionStart`, `sessionEnd`, `userPromptSubmit`, `userPromptSubmitted`, `preToolUse`, `postToolUse`, `preCompact`, `subagentStart`, `subagentStop`, `stop`), and the permitted command properties. Run `npm run lint:hooks` to validate every collection-scoped manifest. On failure, the validator prints each error and the schema path so you can reconcile the manifest against the contract.