Files
claude-seo/hooks/hooks.json
DanielandClaude Opus 4.7 49df04045b fix(portability): make hooks and drift fetch cross-platform
Use Claude Code exec-form hook args with a Node launcher that probes CLAUDE_SEO_PYTHON, py -3, python3, then python while preserving blocking exit code 2.

Replace drift /dev/stdout and stdin handoff with a temporary HTML file, explicit UTF-8 replacement subprocess decoding, deterministic fetch_page byte decoding, and Windows installer Python probing that rejects Store stubs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-12 16:39:50 +03:00

21 lines
416 B
JSON

{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "node",
"args": [
"${CLAUDE_PLUGIN_ROOT}/hooks/run-python-hook.js",
"${CLAUDE_PLUGIN_ROOT}/hooks/validate-schema.py",
"${tool_input.file_path}"
]
}
]
}
]
}
}