diff options
Diffstat (limited to '.claude')
| -rw-r--r-- | .claude/settings.json | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/.claude/settings.json b/.claude/settings.json index fb6efa5..40c1320 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,3 +1,20 @@ { - "permissions": {} + "permissions": {}, + "hooks": { + "PostToolUse": [ + { + "matcher": "Write|Edit", + "hooks": [ + { + "type": "command", + "command": "f=$(jq -r '.tool_input.file_path'); if echo \"$f\" | grep -q 'cnn_v3/' && ! echo \"$f\" | grep -q 'cnn_v3/docs/HOWTO.md'; then echo '{\"systemMessage\": \"Reminder: update cnn_v3/docs/HOWTO.md if this change affects the pipeline.\"}'; fi" + }, + { + "type": "command", + "command": "f=$(jq -r '.tool_input.file_path'); if echo \"$f\" | grep -qE '\\.(cc|h)$' && grep -qE 'str_view\\([a-zA-Z_]+_wgsl\\b' \"$f\" 2>/dev/null; then echo '{\"systemMessage\": \"Direct .wgsl asset usage detected — wrap with ShaderComposer::Get().Compose() before passing to str_view().\"}'; fi" + } + ] + } + ] + } } |
