@invictus-group-ai/hooks 0.5.0
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/LICENSE +21 -0
- package/README.md +130 -0
- package/dist/bin.d.ts +11 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +37 -0
- package/dist/bin.js.map +1 -0
- package/dist/engine.d.ts +53 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +182 -0
- package/dist/engine.js.map +1 -0
- package/dist/git/post-commit.d.ts +43 -0
- package/dist/git/post-commit.d.ts.map +1 -0
- package/dist/git/post-commit.js +166 -0
- package/dist/git/post-commit.js.map +1 -0
- package/dist/git/pre-push.d.ts +43 -0
- package/dist/git/pre-push.d.ts.map +1 -0
- package/dist/git/pre-push.js +102 -0
- package/dist/git/pre-push.js.map +1 -0
- package/dist/git/prepare-commit-msg.d.ts +97 -0
- package/dist/git/prepare-commit-msg.d.ts.map +1 -0
- package/dist/git/prepare-commit-msg.js +623 -0
- package/dist/git/prepare-commit-msg.js.map +1 -0
- package/dist/git-activate.d.ts +25 -0
- package/dist/git-activate.d.ts.map +1 -0
- package/dist/git-activate.js +75 -0
- package/dist/git-activate.js.map +1 -0
- package/dist/hooks/db-guard.d.ts +31 -0
- package/dist/hooks/db-guard.d.ts.map +1 -0
- package/dist/hooks/db-guard.js +290 -0
- package/dist/hooks/db-guard.js.map +1 -0
- package/dist/hooks/index.d.ts +16 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +24 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/journal-nudge.d.ts +14 -0
- package/dist/hooks/journal-nudge.d.ts.map +1 -0
- package/dist/hooks/journal-nudge.js +60 -0
- package/dist/hooks/journal-nudge.js.map +1 -0
- package/dist/hooks/loc-recorder.d.ts +79 -0
- package/dist/hooks/loc-recorder.d.ts.map +1 -0
- package/dist/hooks/loc-recorder.js +183 -0
- package/dist/hooks/loc-recorder.js.map +1 -0
- package/dist/hooks/metrics-capture.d.ts +34 -0
- package/dist/hooks/metrics-capture.d.ts.map +1 -0
- package/dist/hooks/metrics-capture.js +275 -0
- package/dist/hooks/metrics-capture.js.map +1 -0
- package/dist/hooks/secret-guard.d.ts +19 -0
- package/dist/hooks/secret-guard.d.ts.map +1 -0
- package/dist/hooks/secret-guard.js +163 -0
- package/dist/hooks/secret-guard.js.map +1 -0
- package/dist/hooks/session-boot.d.ts +17 -0
- package/dist/hooks/session-boot.d.ts.map +1 -0
- package/dist/hooks/session-boot.js +123 -0
- package/dist/hooks/session-boot.js.map +1 -0
- package/dist/hooks/stop-gate.d.ts +17 -0
- package/dist/hooks/stop-gate.d.ts.map +1 -0
- package/dist/hooks/stop-gate.js +97 -0
- package/dist/hooks/stop-gate.js.map +1 -0
- package/dist/hooks/typecheck-on-edit.d.ts +18 -0
- package/dist/hooks/typecheck-on-edit.d.ts.map +1 -0
- package/dist/hooks/typecheck-on-edit.js +110 -0
- package/dist/hooks/typecheck-on-edit.js.map +1 -0
- package/dist/i18n/en.d.ts +45 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +53 -0
- package/dist/i18n/en.js.map +1 -0
- package/dist/i18n/index.d.ts +35 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +56 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/pt-BR.d.ts +12 -0
- package/dist/i18n/pt-BR.d.ts.map +1 -0
- package/dist/i18n/pt-BR.js +50 -0
- package/dist/i18n/pt-BR.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/kit-cli.d.ts +36 -0
- package/dist/kit-cli.d.ts.map +1 -0
- package/dist/kit-cli.js +68 -0
- package/dist/kit-cli.js.map +1 -0
- package/dist/metrics-schema.d.ts +215 -0
- package/dist/metrics-schema.d.ts.map +1 -0
- package/dist/metrics-schema.js +83 -0
- package/dist/metrics-schema.js.map +1 -0
- package/dist/shared.d.ts +81 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +276 -0
- package/dist/shared.js.map +1 -0
- package/githooks/prepare-commit-msg +30 -0
- package/githooks/prepare-commit-msg.cmd +16 -0
- package/package.json +71 -0
- package/settings-template.json +97 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PreToolUse": [
|
|
4
|
+
{
|
|
5
|
+
"matcher": "Bash|Write|Edit|MultiEdit",
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" secret-guard",
|
|
10
|
+
"timeout": 15
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"matcher": "Bash",
|
|
16
|
+
"hooks": [
|
|
17
|
+
{
|
|
18
|
+
"type": "command",
|
|
19
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" db-guard",
|
|
20
|
+
"timeout": 10
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "command",
|
|
24
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" metrics-capture",
|
|
25
|
+
"timeout": 30
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"PostToolUse": [
|
|
31
|
+
{
|
|
32
|
+
"matcher": "Write|Edit|MultiEdit|NotebookEdit",
|
|
33
|
+
"hooks": [
|
|
34
|
+
{
|
|
35
|
+
"type": "command",
|
|
36
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" typecheck-on-edit loc-recorder",
|
|
37
|
+
"timeout": 120
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"matcher": "Bash",
|
|
43
|
+
"hooks": [
|
|
44
|
+
{
|
|
45
|
+
"type": "command",
|
|
46
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" journal-nudge",
|
|
47
|
+
"timeout": 10
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"SessionStart": [
|
|
53
|
+
{
|
|
54
|
+
"hooks": [
|
|
55
|
+
{
|
|
56
|
+
"type": "command",
|
|
57
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" session-boot",
|
|
58
|
+
"timeout": 15
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"SessionEnd": [
|
|
64
|
+
{
|
|
65
|
+
"hooks": [
|
|
66
|
+
{
|
|
67
|
+
"type": "command",
|
|
68
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" metrics-capture",
|
|
69
|
+
"timeout": 60
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"SubagentStop": [
|
|
75
|
+
{
|
|
76
|
+
"hooks": [
|
|
77
|
+
{
|
|
78
|
+
"type": "command",
|
|
79
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" metrics-capture",
|
|
80
|
+
"timeout": 60
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"Stop": [
|
|
86
|
+
{
|
|
87
|
+
"hooks": [
|
|
88
|
+
{
|
|
89
|
+
"type": "command",
|
|
90
|
+
"command": "node \"$CLAUDE_PROJECT_DIR/node_modules/@invictus-group-ai/hooks/dist/bin.js\" stop-gate",
|
|
91
|
+
"timeout": 15
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|