aisnitch 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.cjs +3 -12
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +3 -12
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -756,7 +756,6 @@ var ANSI_RESET = "\x1B[0m";
|
|
|
756
756
|
var ANSI_RED = "\x1B[31m";
|
|
757
757
|
var ANSI_GREEN = "\x1B[32m";
|
|
758
758
|
var ANSI_CYAN = "\x1B[36m";
|
|
759
|
-
var CLAUDE_FILE_CHANGED_MATCHER = ".*";
|
|
760
759
|
var CLAUDE_CODE_HOOK_EVENTS = [
|
|
761
760
|
"SessionStart",
|
|
762
761
|
"UserPromptSubmit",
|
|
@@ -767,15 +766,12 @@ var CLAUDE_CODE_HOOK_EVENTS = [
|
|
|
767
766
|
"Notification",
|
|
768
767
|
"SubagentStart",
|
|
769
768
|
"SubagentStop",
|
|
770
|
-
"TaskCreated",
|
|
771
769
|
"TaskCompleted",
|
|
772
770
|
"Stop",
|
|
773
771
|
"StopFailure",
|
|
774
772
|
"TeammateIdle",
|
|
775
773
|
"InstructionsLoaded",
|
|
776
774
|
"ConfigChange",
|
|
777
|
-
"CwdChanged",
|
|
778
|
-
"FileChanged",
|
|
779
775
|
"WorktreeCreate",
|
|
780
776
|
"WorktreeRemove",
|
|
781
777
|
"PreCompact",
|
|
@@ -1766,8 +1762,7 @@ function ensureClaudeAISnitchHook(groups, hookEventName, hookUrl, scriptPath) {
|
|
|
1766
1762
|
...group,
|
|
1767
1763
|
hooks: group.hooks.map((handler) => ({ ...handler }))
|
|
1768
1764
|
}));
|
|
1769
|
-
const
|
|
1770
|
-
const matchingGroup = clonedGroups.find((group) => group.matcher === matcher);
|
|
1765
|
+
const matchingGroup = clonedGroups.find((group) => group.matcher === void 0);
|
|
1771
1766
|
if (matchingGroup) {
|
|
1772
1767
|
matchingGroup.hooks = matchingGroup.hooks.filter(
|
|
1773
1768
|
(handler) => !isLegacyClaudeAISnitchHttpHook(handler, hookUrl)
|
|
@@ -1786,13 +1781,9 @@ function ensureClaudeAISnitchHook(groups, hookEventName, hookUrl, scriptPath) {
|
|
|
1786
1781
|
);
|
|
1787
1782
|
return clonedGroups;
|
|
1788
1783
|
}
|
|
1789
|
-
|
|
1790
|
-
hooks: [createClaudeAISnitchHook(hookEventName, hookUrl, scriptPath)]
|
|
1791
|
-
} : {
|
|
1792
|
-
matcher,
|
|
1784
|
+
clonedGroups.push({
|
|
1793
1785
|
hooks: [createClaudeAISnitchHook(hookEventName, hookUrl, scriptPath)]
|
|
1794
|
-
};
|
|
1795
|
-
clonedGroups.push(nextGroup);
|
|
1786
|
+
});
|
|
1796
1787
|
return clonedGroups;
|
|
1797
1788
|
}
|
|
1798
1789
|
function createClaudeAISnitchHook(hookEventName, hookUrl, scriptPath) {
|