fix(copilot): mirror transactional Node hooks

This commit is contained in:
ZacharyZhang-NY committed 2026-07-20 12:09:24 -04:00
1 parent d0185887fa
commit af8d227b45
17 files changed
+1738 -651

No files matched your search

+12 -2
View File
@@ -163,8 +163,18 @@
"~/.copilot/hooks/*.json",
".github/hooks/*.json"
],
"events": { "before_tool": "preToolUse", "after_tool": "postToolUse" },
"event_fields": { "name": "toolName", "input": "toolArgs", "session": "sessionId" },
"events": {
"before_tool": "preToolUse",
"after_tool": "postToolUse",
"after_tool_failure": "postToolUseFailure"
},
"event_fields": {
"name": "toolName",
"input": "toolArgs",
"session": "sessionId",
"output": "toolResult",
"error": "error"
},
"blocking": {
"mechanism": "any_nonzero_exit",
"failure_mode": "fail_closed",