mirror of
https://github.com/AgriciDaniel/claude-seo.git
synced 2026-11-25 07:30:08 +01:00
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>
21 lines
416 B
JSON
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}"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|