summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMohamed Hegazy <mhegazy@anthropic.com>2026-10-15 16:31:46 +0000
committerClaude <noreply@anthropic.com>2026-10-15 16:31:46 +0000
commitced6733eee6aa246e2af55ce0c71e38c01a50141 (patch)
tree1c7abeca25d5625d06934d3ea1141cf554edcd92 /plugins/code-modernization/scripts/baseline_diff.py
parentd876712c3801b10bb1258da9b8f71fa7b41320e4 (diff)
security-guidance: print one JSON document from the SessionStart hook on other hostsmhegazy/sg-portable-session-start
On a host other than Claude Code the SessionStart hook printed an async declaration line and then a metrics line. A host that reads hook output as one JSON document with a closed schema rejects that. In portable mode the hook now skips the async line and prints one object with only the standard fields. The portable-mode helpers move to _base.py so both hook scripts share them, and the mode is decided once at start-up. Output under Claude Code is unchanged.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions