summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-12 18:49:01 +0000
committerClaude <noreply@anthropic.com>2026-10-14 12:12:19 +0000
commit26eea79bd04d30a6b38f3a4c89f4596c44a91128 (patch)
tree691710ebe207c7119f6c3b41e5777ee52f8bc546 /plugins/code-modernization/scripts/baseline_diff.py
parentf359d43b406057f1a8cdbc4ea93b827642c162e6 (diff)
security-guidance: leave Claude Code only fields out of hook output on other hosts
The hooks print metrics and rewakeSummary in their JSON output. A host that validates hook output against a closed schema rejects the whole line, so every Stop and PostToolUse shows a hook error there. When the host passes PLUGIN_ROOT and does not identify itself as Claude Code, print only the standard fields. Blocking findings and guidance are kept. SECURITY_GUIDANCE_PORTABLE_OUTPUT=1/0 forces it either way. Output under Claude Code is unchanged.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions