mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
- AGENTS.md: sync skills count to 65+ - tests/run-all.js: glob-based test discovery for *.test.js - scripts/ci/validate-hooks.js: validate hooks.json with ajv + schemas/hooks.schema.json - schemas/hooks.schema.json: hookItem.type enum command|notification - scripts/ci/catalog.js: catalog agents, commands, skills (--json | --md) - docs/COMMAND-AGENT-MAP.md: command → agent/skill map - docs/ARCHITECTURE-IMPROVEMENTS.md: improvement recommendations - package.json: ajv, c8 devDeps; npm run coverage - CONTRIBUTING.md: Cross-Harness and Translations section - .gitignore: coverage/ Made-with: Cursor
92 lines
2.0 KiB
JSON
92 lines
2.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Claude Code Hooks Configuration",
|
|
"description": "Configuration for Claude Code hooks. Event types are validated at runtime and must be one of: PreToolUse, PostToolUse, PreCompact, SessionStart, SessionEnd, Stop, Notification, SubagentStop",
|
|
"$defs": {
|
|
"hookItem": {
|
|
"type": "object",
|
|
"required": [
|
|
"type",
|
|
"command"
|
|
],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["command", "notification"],
|
|
"description": "Hook action type (command or notification)"
|
|
},
|
|
"command": {
|
|
"oneOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"async": {
|
|
"type": "boolean",
|
|
"description": "Run hook asynchronously in background without blocking"
|
|
},
|
|
"timeout": {
|
|
"type": "number",
|
|
"minimum": 0,
|
|
"description": "Timeout in seconds for async hooks"
|
|
}
|
|
}
|
|
},
|
|
"matcherEntry": {
|
|
"type": "object",
|
|
"required": [
|
|
"matcher",
|
|
"hooks"
|
|
],
|
|
"properties": {
|
|
"matcher": {
|
|
"type": "string"
|
|
},
|
|
"hooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/$defs/hookItem"
|
|
}
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"oneOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"$schema": {
|
|
"type": "string"
|
|
},
|
|
"hooks": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/$defs/matcherEntry"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"hooks"
|
|
]
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/$defs/matcherEntry"
|
|
}
|
|
}
|
|
]
|
|
} |