failproofai 1.0.2-beta.0 → 1.0.2-beta.2
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +5 -5
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +4 -4
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__07gm3zl._.js +14 -14
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__090sxxw._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0wb8osu._.js +23 -0
- package/.next/standalone/.next/server/chunks/ssr/{_12l4a_k._.js → _1oggjel._.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1u8-lu2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1zopuov._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +19 -19
- package/.next/standalone/.next/static/chunks/{3y54nw0i7dsjl.js → 0nnbtp0w4sxrr.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0sa9v5mhc8861.js → 0ykd_go4oahan.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0eqky-7n7dgdm.js → 140ip21rqmelt.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2i2yt3hzjredm.js → 1da5a_a-3btas.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1oml7c7env4-g.js → 1fac8krph-zgp.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2hs7ycvsav7v2.js → 1nzy5jc_vf9e0.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1sl2xmn9inx3y.js → 1yw71gn8vqco1.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1nuqytbta44af.js → 29eh4k77otcw6.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2aawsjld9ied_.js → 2axi5ehjbld9h.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2gn7ut4svofm2.js → 2fzxl7n717pbc.js} +1 -1
- package/.next/standalone/.next/static/chunks/{35xg6retpe6rp.js → 3jjmdqqzem21x.js} +1 -1
- package/.next/standalone/.next/static/chunks/{turbopack-3kjgdgwci4tqf.js → turbopack-2vqpa-dts1gy4.js} +1 -1
- package/.next/standalone/app/actions/pack-actions.ts +21 -11
- package/.next/standalone/app/policies/hooks-client.tsx +3 -4
- package/.next/standalone/fp-cloud-cli/fp_cli/_version.py +1 -1
- package/.next/standalone/package.json +10 -11
- package/.next/standalone/sdk/python/failproofai_sdk/_version.py +1 -1
- package/.next/standalone/server.js +1 -1
- package/bin/failproofai.mjs +455 -316
- package/dist/cli.mjs +2374 -1873
- package/dist/worker.mjs +3 -13
- package/package.json +10 -11
- package/src/hooks/configure-wizard.ts +67 -444
- package/src/hooks/fp-reset.ts +10 -19
- package/src/hooks/handler.ts +2 -2
- package/src/hooks/manager.ts +58 -24
- package/src/hooks/pack-cli.ts +488 -43
- package/src/hooks/pack-failclosed.ts +1 -1
- package/src/hooks/pack-manifest.ts +14 -6
- package/src/hooks/pack-store.ts +89 -128
- package/src/hooks/tui.ts +150 -48
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0zig5sv._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_00e9tnf._.js +0 -23
- package/policy-pack/SHA256SUMS +0 -2
- package/policy-pack/failproofai-pack.json +0 -732
- package/policy-pack/failproofai-pack.mjs +0 -2017
- package/src/hooks/policy-presets.ts +0 -137
- /package/.next/standalone/.next/static/{nwbyWT06Ud0XdXOrVJyvS → A7czO1PZdTcNzLGa_H1sm}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{nwbyWT06Ud0XdXOrVJyvS → A7czO1PZdTcNzLGa_H1sm}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{nwbyWT06Ud0XdXOrVJyvS → A7czO1PZdTcNzLGa_H1sm}/_ssgManifest.js +0 -0
|
@@ -1,732 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "failproofai/core",
|
|
3
|
-
"version": "1.0.2-beta.0",
|
|
4
|
-
"effect": "enforce",
|
|
5
|
-
"policies": [
|
|
6
|
-
{
|
|
7
|
-
"name": "sanitize-jwt",
|
|
8
|
-
"description": "Stop Claude from reading JWTs in tool responses",
|
|
9
|
-
"displayTitle": "Redacted JWT tokens from tool output",
|
|
10
|
-
"impact": "Stops the agent from echoing auth tokens it saw in command output.",
|
|
11
|
-
"match": {
|
|
12
|
-
"events": [
|
|
13
|
-
"PostToolUse"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"defaultEnabled": true,
|
|
17
|
-
"category": "Sanitize"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "sanitize-api-keys",
|
|
21
|
-
"description": "Stop Claude from reading API keys (OpenAI, Anthropic, GitHub, AWS, Stripe, Google) in tool responses",
|
|
22
|
-
"displayTitle": "Redacted API keys from tool output",
|
|
23
|
-
"impact": "Catches OpenAI / Anthropic / GitHub / AWS / Stripe / Google keys before the model sees them.",
|
|
24
|
-
"match": {
|
|
25
|
-
"events": [
|
|
26
|
-
"PostToolUse"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"defaultEnabled": true,
|
|
30
|
-
"category": "Sanitize",
|
|
31
|
-
"params": {
|
|
32
|
-
"additionalPatterns": {
|
|
33
|
-
"type": "pattern[]",
|
|
34
|
-
"description": "Additional API key patterns to scrub, each with { regex, label }",
|
|
35
|
-
"default": []
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "sanitize-connection-strings",
|
|
41
|
-
"description": "Stop Claude from reading database connection strings with embedded credentials in tool responses",
|
|
42
|
-
"displayTitle": "Redacted database connection strings from tool output",
|
|
43
|
-
"impact": "Strips embedded DB credentials before they reach the model context.",
|
|
44
|
-
"match": {
|
|
45
|
-
"events": [
|
|
46
|
-
"PostToolUse"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"defaultEnabled": true,
|
|
50
|
-
"category": "Sanitize"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"name": "sanitize-private-key-content",
|
|
54
|
-
"description": "Stop Claude from reading PEM private key content in tool responses",
|
|
55
|
-
"displayTitle": "Redacted PEM private keys from tool output",
|
|
56
|
-
"impact": "Prevents private key bodies from being echoed into chat context.",
|
|
57
|
-
"match": {
|
|
58
|
-
"events": [
|
|
59
|
-
"PostToolUse"
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
"defaultEnabled": true,
|
|
63
|
-
"category": "Sanitize"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"name": "sanitize-bearer-tokens",
|
|
67
|
-
"displayTitle": "Redacted bearer tokens from tool output",
|
|
68
|
-
"impact": "Strips Authorization: Bearer values before they hit the model.",
|
|
69
|
-
"description": "Stop Claude from reading Authorization Bearer tokens in tool responses",
|
|
70
|
-
"match": {
|
|
71
|
-
"events": [
|
|
72
|
-
"PostToolUse"
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
"defaultEnabled": true,
|
|
76
|
-
"category": "Sanitize"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "protect-env-vars",
|
|
80
|
-
"displayTitle": "Tried to dump environment variables to chat",
|
|
81
|
-
"impact": "Env vars often contain secrets; blocking `env` / `printenv` keeps them out of the model context.",
|
|
82
|
-
"description": "Prevent commands that read environment variables",
|
|
83
|
-
"match": {
|
|
84
|
-
"events": [
|
|
85
|
-
"PreToolUse"
|
|
86
|
-
],
|
|
87
|
-
"toolNames": [
|
|
88
|
-
"Bash"
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
"defaultEnabled": true,
|
|
92
|
-
"category": "Environment"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "block-env-files",
|
|
96
|
-
"displayTitle": "Tried to read or write a .env file",
|
|
97
|
-
"impact": "`.env` files routinely contain API keys and DB credentials.",
|
|
98
|
-
"description": "Block reading/writing .env files",
|
|
99
|
-
"match": {
|
|
100
|
-
"events": [
|
|
101
|
-
"PreToolUse"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"defaultEnabled": true,
|
|
105
|
-
"category": "Environment"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "block-read-outside-cwd",
|
|
109
|
-
"displayTitle": "Tried to read files outside your project directory",
|
|
110
|
-
"impact": "Stops the agent from peeking at neighboring repos or your home directory.",
|
|
111
|
-
"description": "Block file reads outside the session working directory",
|
|
112
|
-
"match": {
|
|
113
|
-
"events": [
|
|
114
|
-
"PreToolUse"
|
|
115
|
-
],
|
|
116
|
-
"toolNames": [
|
|
117
|
-
"Read",
|
|
118
|
-
"Glob",
|
|
119
|
-
"Grep",
|
|
120
|
-
"Bash"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
"defaultEnabled": false,
|
|
124
|
-
"category": "Environment",
|
|
125
|
-
"params": {
|
|
126
|
-
"allowPaths": {
|
|
127
|
-
"type": "string[]",
|
|
128
|
-
"description": "Absolute paths outside cwd that are allowed to be read",
|
|
129
|
-
"default": []
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"name": "block-sudo",
|
|
135
|
-
"displayTitle": "Tried to run a command with sudo",
|
|
136
|
-
"impact": "Sudo gives the agent root — blocked unless explicitly allow-listed.",
|
|
137
|
-
"description": "Block sudo commands",
|
|
138
|
-
"match": {
|
|
139
|
-
"events": [
|
|
140
|
-
"PreToolUse",
|
|
141
|
-
"PermissionRequest"
|
|
142
|
-
],
|
|
143
|
-
"toolNames": [
|
|
144
|
-
"Bash"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
"defaultEnabled": true,
|
|
148
|
-
"category": "Dangerous Commands",
|
|
149
|
-
"params": {
|
|
150
|
-
"allowPatterns": {
|
|
151
|
-
"type": "string[]",
|
|
152
|
-
"description": "Sudo command patterns to allow, matched token-by-token (e.g. 'sudo systemctl status')",
|
|
153
|
-
"default": []
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"name": "block-curl-pipe-sh",
|
|
159
|
-
"displayTitle": "Tried to pipe a downloaded script straight to a shell",
|
|
160
|
-
"impact": "`curl ... | sh` runs unverified remote code on your machine.",
|
|
161
|
-
"description": "Block piping downloads to shell",
|
|
162
|
-
"match": {
|
|
163
|
-
"events": [
|
|
164
|
-
"PreToolUse"
|
|
165
|
-
],
|
|
166
|
-
"toolNames": [
|
|
167
|
-
"Bash"
|
|
168
|
-
]
|
|
169
|
-
},
|
|
170
|
-
"defaultEnabled": true,
|
|
171
|
-
"category": "Dangerous Commands"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "block-rm-rf",
|
|
175
|
-
"displayTitle": "Tried to recursively delete a system path",
|
|
176
|
-
"impact": "Catches catastrophic `rm -rf /` and Windows equivalents.",
|
|
177
|
-
"description": "Prevent catastrophic deletions",
|
|
178
|
-
"match": {
|
|
179
|
-
"events": [
|
|
180
|
-
"PreToolUse"
|
|
181
|
-
],
|
|
182
|
-
"toolNames": [
|
|
183
|
-
"Bash"
|
|
184
|
-
]
|
|
185
|
-
},
|
|
186
|
-
"defaultEnabled": false,
|
|
187
|
-
"category": "Dangerous Commands",
|
|
188
|
-
"params": {
|
|
189
|
-
"allowPaths": {
|
|
190
|
-
"type": "string[]",
|
|
191
|
-
"description": "Paths that are allowed to be recursively deleted",
|
|
192
|
-
"default": []
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "block-kubectl",
|
|
198
|
-
"displayTitle": "Tried to run a Kubernetes command",
|
|
199
|
-
"impact": "kubectl can change live cluster state — gated unless allow-listed.",
|
|
200
|
-
"description": "Block kubectl commands (Kubernetes cluster mutations)",
|
|
201
|
-
"match": {
|
|
202
|
-
"events": [
|
|
203
|
-
"PreToolUse"
|
|
204
|
-
],
|
|
205
|
-
"toolNames": [
|
|
206
|
-
"Bash"
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
"defaultEnabled": false,
|
|
210
|
-
"category": "Infra Commands",
|
|
211
|
-
"params": {
|
|
212
|
-
"allowPatterns": {
|
|
213
|
-
"type": "string[]",
|
|
214
|
-
"description": "kubectl command patterns to allow, matched token-by-token (e.g. 'kubectl get *', 'kubectl describe *')",
|
|
215
|
-
"default": []
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"name": "block-terraform",
|
|
221
|
-
"displayTitle": "Tried to run a Terraform/OpenTofu command",
|
|
222
|
-
"impact": "Terraform mutates real infrastructure — gated unless allow-listed.",
|
|
223
|
-
"description": "Block terraform and tofu (OpenTofu) commands",
|
|
224
|
-
"match": {
|
|
225
|
-
"events": [
|
|
226
|
-
"PreToolUse"
|
|
227
|
-
],
|
|
228
|
-
"toolNames": [
|
|
229
|
-
"Bash"
|
|
230
|
-
]
|
|
231
|
-
},
|
|
232
|
-
"defaultEnabled": false,
|
|
233
|
-
"category": "Infra Commands",
|
|
234
|
-
"params": {
|
|
235
|
-
"allowPatterns": {
|
|
236
|
-
"type": "string[]",
|
|
237
|
-
"description": "terraform/tofu command patterns to allow (e.g. 'terraform plan', 'terraform validate')",
|
|
238
|
-
"default": []
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"name": "block-aws-cli",
|
|
244
|
-
"displayTitle": "Tried to run an AWS CLI command",
|
|
245
|
-
"impact": "AWS CLI can spend money or break prod — gated.",
|
|
246
|
-
"description": "Block aws CLI commands",
|
|
247
|
-
"match": {
|
|
248
|
-
"events": [
|
|
249
|
-
"PreToolUse"
|
|
250
|
-
],
|
|
251
|
-
"toolNames": [
|
|
252
|
-
"Bash"
|
|
253
|
-
]
|
|
254
|
-
},
|
|
255
|
-
"defaultEnabled": false,
|
|
256
|
-
"category": "Infra Commands",
|
|
257
|
-
"params": {
|
|
258
|
-
"allowPatterns": {
|
|
259
|
-
"type": "string[]",
|
|
260
|
-
"description": "aws CLI command patterns to allow (e.g. 'aws s3 ls *', 'aws sts get-caller-identity')",
|
|
261
|
-
"default": []
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"name": "block-gcloud",
|
|
267
|
-
"displayTitle": "Tried to run a Google Cloud command",
|
|
268
|
-
"impact": "gcloud can spend money or break prod — gated.",
|
|
269
|
-
"description": "Block gcloud (Google Cloud) CLI commands",
|
|
270
|
-
"match": {
|
|
271
|
-
"events": [
|
|
272
|
-
"PreToolUse"
|
|
273
|
-
],
|
|
274
|
-
"toolNames": [
|
|
275
|
-
"Bash"
|
|
276
|
-
]
|
|
277
|
-
},
|
|
278
|
-
"defaultEnabled": false,
|
|
279
|
-
"category": "Infra Commands",
|
|
280
|
-
"params": {
|
|
281
|
-
"allowPatterns": {
|
|
282
|
-
"type": "string[]",
|
|
283
|
-
"description": "gcloud command patterns to allow (e.g. 'gcloud auth list', 'gcloud config list')",
|
|
284
|
-
"default": []
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"name": "block-az-cli",
|
|
290
|
-
"displayTitle": "Tried to run an Azure CLI command",
|
|
291
|
-
"impact": "az can spend money or break prod — gated.",
|
|
292
|
-
"description": "Block az (Azure) CLI commands",
|
|
293
|
-
"match": {
|
|
294
|
-
"events": [
|
|
295
|
-
"PreToolUse"
|
|
296
|
-
],
|
|
297
|
-
"toolNames": [
|
|
298
|
-
"Bash"
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
"defaultEnabled": false,
|
|
302
|
-
"category": "Infra Commands",
|
|
303
|
-
"params": {
|
|
304
|
-
"allowPatterns": {
|
|
305
|
-
"type": "string[]",
|
|
306
|
-
"description": "az CLI command patterns to allow (e.g. 'az account show', 'az group list')",
|
|
307
|
-
"default": []
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "block-helm",
|
|
313
|
-
"displayTitle": "Tried to run a Helm command",
|
|
314
|
-
"impact": "Helm releases mutate cluster state — gated.",
|
|
315
|
-
"description": "Block helm commands",
|
|
316
|
-
"match": {
|
|
317
|
-
"events": [
|
|
318
|
-
"PreToolUse"
|
|
319
|
-
],
|
|
320
|
-
"toolNames": [
|
|
321
|
-
"Bash"
|
|
322
|
-
]
|
|
323
|
-
},
|
|
324
|
-
"defaultEnabled": false,
|
|
325
|
-
"category": "Infra Commands",
|
|
326
|
-
"params": {
|
|
327
|
-
"allowPatterns": {
|
|
328
|
-
"type": "string[]",
|
|
329
|
-
"description": "helm command patterns to allow (e.g. 'helm list', 'helm status *')",
|
|
330
|
-
"default": []
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"name": "block-gh-pipeline",
|
|
336
|
-
"displayTitle": "Tried to run a privileged GitHub CLI pipeline command",
|
|
337
|
-
"impact": "Catches `gh workflow run`, `gh pr merge`, `gh secret set`, etc.",
|
|
338
|
-
"description": "Block gh CLI pipeline-trigger subcommands (workflow run, run rerun/cancel, pr merge, release create/delete, cache delete, secret set/delete)",
|
|
339
|
-
"match": {
|
|
340
|
-
"events": [
|
|
341
|
-
"PreToolUse"
|
|
342
|
-
],
|
|
343
|
-
"toolNames": [
|
|
344
|
-
"Bash"
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
"defaultEnabled": false,
|
|
348
|
-
"category": "Infra Commands",
|
|
349
|
-
"params": {
|
|
350
|
-
"allowPatterns": {
|
|
351
|
-
"type": "string[]",
|
|
352
|
-
"description": "gh pipeline command patterns to allow (e.g. specific scripted invocations); read-only gh subcommands like 'gh pr view' and 'gh run list' are not matched by this policy",
|
|
353
|
-
"default": []
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"name": "block-secrets-write",
|
|
359
|
-
"displayTitle": "Tried to write a secret-key file",
|
|
360
|
-
"impact": "Stops the agent from creating `.pem`, `id_rsa`, `credentials.json`, etc.",
|
|
361
|
-
"description": "Block writing secret key files",
|
|
362
|
-
"match": {
|
|
363
|
-
"events": [
|
|
364
|
-
"PreToolUse"
|
|
365
|
-
],
|
|
366
|
-
"toolNames": [
|
|
367
|
-
"Write"
|
|
368
|
-
]
|
|
369
|
-
},
|
|
370
|
-
"defaultEnabled": false,
|
|
371
|
-
"category": "Dangerous Commands",
|
|
372
|
-
"params": {
|
|
373
|
-
"additionalPatterns": {
|
|
374
|
-
"type": "string[]",
|
|
375
|
-
"description": "Additional filename patterns (substrings) to block",
|
|
376
|
-
"default": []
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
"name": "block-push-master",
|
|
382
|
-
"displayTitle": "Tried to push directly to main/master",
|
|
383
|
-
"impact": "Direct pushes to a protected branch bypass review.",
|
|
384
|
-
"description": "Block pushing to main/master",
|
|
385
|
-
"match": {
|
|
386
|
-
"events": [
|
|
387
|
-
"PreToolUse"
|
|
388
|
-
],
|
|
389
|
-
"toolNames": [
|
|
390
|
-
"Bash"
|
|
391
|
-
]
|
|
392
|
-
},
|
|
393
|
-
"defaultEnabled": true,
|
|
394
|
-
"category": "Git",
|
|
395
|
-
"params": {
|
|
396
|
-
"protectedBranches": {
|
|
397
|
-
"type": "string[]",
|
|
398
|
-
"description": "Branch names to protect from direct pushes",
|
|
399
|
-
"default": [
|
|
400
|
-
"main",
|
|
401
|
-
"master"
|
|
402
|
-
]
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"name": "block-force-push",
|
|
408
|
-
"displayTitle": "Tried to force-push",
|
|
409
|
-
"impact": "Force-pushes rewrite history and can clobber teammates' work.",
|
|
410
|
-
"description": "Prevent force-pushing to any branch",
|
|
411
|
-
"match": {
|
|
412
|
-
"events": [
|
|
413
|
-
"PreToolUse"
|
|
414
|
-
],
|
|
415
|
-
"toolNames": [
|
|
416
|
-
"Bash"
|
|
417
|
-
]
|
|
418
|
-
},
|
|
419
|
-
"defaultEnabled": false,
|
|
420
|
-
"category": "Git"
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"name": "block-work-on-main",
|
|
424
|
-
"displayTitle": "Tried to commit or merge on main/master",
|
|
425
|
-
"impact": "Work should land via PR — direct commits skip review.",
|
|
426
|
-
"description": "Block git commits and merges on main/master branch",
|
|
427
|
-
"match": {
|
|
428
|
-
"events": [
|
|
429
|
-
"PreToolUse"
|
|
430
|
-
],
|
|
431
|
-
"toolNames": [
|
|
432
|
-
"Bash"
|
|
433
|
-
]
|
|
434
|
-
},
|
|
435
|
-
"defaultEnabled": false,
|
|
436
|
-
"category": "Git",
|
|
437
|
-
"params": {
|
|
438
|
-
"protectedBranches": {
|
|
439
|
-
"type": "string[]",
|
|
440
|
-
"description": "Branch names where commits/merges are blocked",
|
|
441
|
-
"default": [
|
|
442
|
-
"main",
|
|
443
|
-
"master"
|
|
444
|
-
]
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "warn-git-amend",
|
|
450
|
-
"displayTitle": "Used git commit --amend",
|
|
451
|
-
"impact": "Amending after a push rewrites history that others may have pulled.",
|
|
452
|
-
"description": "Warns before amending git commits, which rewrites history",
|
|
453
|
-
"match": {
|
|
454
|
-
"events": [
|
|
455
|
-
"PreToolUse"
|
|
456
|
-
],
|
|
457
|
-
"toolNames": [
|
|
458
|
-
"Bash"
|
|
459
|
-
]
|
|
460
|
-
},
|
|
461
|
-
"defaultEnabled": false,
|
|
462
|
-
"category": "Git"
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"name": "warn-git-stash-drop",
|
|
466
|
-
"displayTitle": "Tried to drop or clear git stash",
|
|
467
|
-
"impact": "Stash deletions are permanent and silent.",
|
|
468
|
-
"description": "Warns before permanently deleting stashed changes",
|
|
469
|
-
"match": {
|
|
470
|
-
"events": [
|
|
471
|
-
"PreToolUse"
|
|
472
|
-
],
|
|
473
|
-
"toolNames": [
|
|
474
|
-
"Bash"
|
|
475
|
-
]
|
|
476
|
-
},
|
|
477
|
-
"defaultEnabled": false,
|
|
478
|
-
"category": "Git"
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
"name": "warn-all-files-staged",
|
|
482
|
-
"displayTitle": "Staged all files with git add -A / .",
|
|
483
|
-
"impact": "Wide stages routinely catch generated files or secrets you didn't intend to commit.",
|
|
484
|
-
"description": "Warns before staging all working tree files with git add -A / . / --all",
|
|
485
|
-
"match": {
|
|
486
|
-
"events": [
|
|
487
|
-
"PreToolUse"
|
|
488
|
-
],
|
|
489
|
-
"toolNames": [
|
|
490
|
-
"Bash"
|
|
491
|
-
]
|
|
492
|
-
},
|
|
493
|
-
"defaultEnabled": false,
|
|
494
|
-
"category": "Git"
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"name": "warn-destructive-sql",
|
|
498
|
-
"displayTitle": "Ran destructive SQL (DROP / TRUNCATE / DELETE without WHERE)",
|
|
499
|
-
"impact": "Easy way to wipe a table by accident.",
|
|
500
|
-
"description": "Warn before executing destructive SQL (DROP/TRUNCATE/DELETE without WHERE) via database clients",
|
|
501
|
-
"match": {
|
|
502
|
-
"events": [
|
|
503
|
-
"PreToolUse"
|
|
504
|
-
],
|
|
505
|
-
"toolNames": [
|
|
506
|
-
"Bash"
|
|
507
|
-
]
|
|
508
|
-
},
|
|
509
|
-
"defaultEnabled": false,
|
|
510
|
-
"category": "Database"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"name": "warn-schema-alteration",
|
|
514
|
-
"displayTitle": "Altered a database schema column",
|
|
515
|
-
"impact": "ALTER TABLE operations can lock tables and break readers.",
|
|
516
|
-
"description": "Warns before SQL schema changes (ALTER TABLE with column or rename operations)",
|
|
517
|
-
"match": {
|
|
518
|
-
"events": [
|
|
519
|
-
"PreToolUse"
|
|
520
|
-
],
|
|
521
|
-
"toolNames": [
|
|
522
|
-
"Bash"
|
|
523
|
-
]
|
|
524
|
-
},
|
|
525
|
-
"defaultEnabled": false,
|
|
526
|
-
"category": "Database"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"name": "warn-package-publish",
|
|
530
|
-
"displayTitle": "Tried to publish a package",
|
|
531
|
-
"impact": "Publishes are irreversible — `npm publish` / `cargo publish` shouldn't happen without intent.",
|
|
532
|
-
"description": "Warn before publishing packages to public registries (npm, PyPI, crates.io, RubyGems, etc.)",
|
|
533
|
-
"match": {
|
|
534
|
-
"events": [
|
|
535
|
-
"PreToolUse"
|
|
536
|
-
],
|
|
537
|
-
"toolNames": [
|
|
538
|
-
"Bash"
|
|
539
|
-
]
|
|
540
|
-
},
|
|
541
|
-
"defaultEnabled": false,
|
|
542
|
-
"category": "Packages & System"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "warn-global-package-install",
|
|
546
|
-
"displayTitle": "Installed a package globally",
|
|
547
|
-
"impact": "`npm i -g`, `cargo install`, `pip --user` pollute your machine outside the project.",
|
|
548
|
-
"description": "Warns before installing packages globally (npm -g, cargo install, etc.)",
|
|
549
|
-
"match": {
|
|
550
|
-
"events": [
|
|
551
|
-
"PreToolUse"
|
|
552
|
-
],
|
|
553
|
-
"toolNames": [
|
|
554
|
-
"Bash"
|
|
555
|
-
]
|
|
556
|
-
},
|
|
557
|
-
"defaultEnabled": false,
|
|
558
|
-
"category": "Packages & System"
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
"name": "prefer-package-manager",
|
|
562
|
-
"displayTitle": "Used a non-preferred package manager",
|
|
563
|
-
"impact": "Mixing package managers creates lockfile churn for your team.",
|
|
564
|
-
"description": "Blocks non-preferred package managers and tells Claude to use an allowed one (e.g., uv instead of pip)",
|
|
565
|
-
"match": {
|
|
566
|
-
"events": [
|
|
567
|
-
"PreToolUse"
|
|
568
|
-
],
|
|
569
|
-
"toolNames": [
|
|
570
|
-
"Bash"
|
|
571
|
-
]
|
|
572
|
-
},
|
|
573
|
-
"defaultEnabled": false,
|
|
574
|
-
"category": "Packages & System",
|
|
575
|
-
"params": {
|
|
576
|
-
"allowed": {
|
|
577
|
-
"type": "string[]",
|
|
578
|
-
"description": "Allowed package manager names (e.g. ['uv', 'bun']). Any detected manager not in this list is blocked.",
|
|
579
|
-
"default": []
|
|
580
|
-
},
|
|
581
|
-
"blocked": {
|
|
582
|
-
"type": "string[]",
|
|
583
|
-
"description": "Additional manager names to block beyond the built-in list (e.g. ['pdm', 'pipx']).",
|
|
584
|
-
"default": []
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"name": "warn-large-file-write",
|
|
590
|
-
"displayTitle": "Wrote a file larger than the configured threshold",
|
|
591
|
-
"impact": "Catches accidentally large file writes (logs, binaries, model dumps).",
|
|
592
|
-
"description": "Warn before writing files larger than 1MB (configurable via thresholdKb param)",
|
|
593
|
-
"match": {
|
|
594
|
-
"events": [
|
|
595
|
-
"PreToolUse"
|
|
596
|
-
],
|
|
597
|
-
"toolNames": [
|
|
598
|
-
"Write"
|
|
599
|
-
]
|
|
600
|
-
},
|
|
601
|
-
"defaultEnabled": false,
|
|
602
|
-
"category": "Packages & System",
|
|
603
|
-
"params": {
|
|
604
|
-
"thresholdKb": {
|
|
605
|
-
"type": "number",
|
|
606
|
-
"description": "File size threshold in KB above which a warning is issued",
|
|
607
|
-
"default": 1024
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"name": "warn-background-process",
|
|
613
|
-
"displayTitle": "Started a long-lived background process",
|
|
614
|
-
"impact": "Catches `nohup` / `&` / `screen` / `tmux` / `disown` patterns that the agent often forgets to clean up.",
|
|
615
|
-
"description": "Warns before starting detached or background processes",
|
|
616
|
-
"match": {
|
|
617
|
-
"events": [
|
|
618
|
-
"PreToolUse"
|
|
619
|
-
],
|
|
620
|
-
"toolNames": [
|
|
621
|
-
"Bash"
|
|
622
|
-
]
|
|
623
|
-
},
|
|
624
|
-
"defaultEnabled": false,
|
|
625
|
-
"category": "Packages & System"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"name": "warn-repeated-tool-calls",
|
|
629
|
-
"displayTitle": "Called the same tool 3+ times with identical arguments",
|
|
630
|
-
"impact": "Usually a sign of a stuck loop burning tokens.",
|
|
631
|
-
"description": "Warn when the same tool is called 3+ times with identical parameters",
|
|
632
|
-
"match": {
|
|
633
|
-
"events": [
|
|
634
|
-
"PreToolUse"
|
|
635
|
-
]
|
|
636
|
-
},
|
|
637
|
-
"defaultEnabled": false,
|
|
638
|
-
"category": "AI Behavior"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
"name": "require-commit-before-stop",
|
|
642
|
-
"displayTitle": "Stopped with uncommitted changes",
|
|
643
|
-
"impact": "Work not in a commit is invisible to teammates and easy to lose.",
|
|
644
|
-
"description": "Require all changes to be committed before Claude stops",
|
|
645
|
-
"match": {
|
|
646
|
-
"events": [
|
|
647
|
-
"Stop"
|
|
648
|
-
]
|
|
649
|
-
},
|
|
650
|
-
"defaultEnabled": false,
|
|
651
|
-
"category": "Workflow"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"name": "require-push-before-stop",
|
|
655
|
-
"displayTitle": "Stopped with unpushed commits",
|
|
656
|
-
"impact": "Local-only commits won't trigger CI or be reviewable.",
|
|
657
|
-
"description": "Require all commits to be pushed to remote before Claude stops",
|
|
658
|
-
"match": {
|
|
659
|
-
"events": [
|
|
660
|
-
"Stop"
|
|
661
|
-
]
|
|
662
|
-
},
|
|
663
|
-
"defaultEnabled": false,
|
|
664
|
-
"category": "Workflow",
|
|
665
|
-
"params": {
|
|
666
|
-
"remote": {
|
|
667
|
-
"type": "string",
|
|
668
|
-
"description": "Remote name to push to (default: origin)",
|
|
669
|
-
"default": "origin"
|
|
670
|
-
},
|
|
671
|
-
"baseBranch": {
|
|
672
|
-
"type": "string",
|
|
673
|
-
"description": "Base branch to compare against (default: main)",
|
|
674
|
-
"default": "main"
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"name": "require-pr-before-stop",
|
|
680
|
-
"displayTitle": "Stopped without a PR for the branch",
|
|
681
|
-
"impact": "Branches without PRs don't get reviewed.",
|
|
682
|
-
"description": "Require a pull request to exist for the current branch before Claude stops",
|
|
683
|
-
"match": {
|
|
684
|
-
"events": [
|
|
685
|
-
"Stop"
|
|
686
|
-
]
|
|
687
|
-
},
|
|
688
|
-
"defaultEnabled": false,
|
|
689
|
-
"category": "Workflow",
|
|
690
|
-
"params": {
|
|
691
|
-
"baseBranch": {
|
|
692
|
-
"type": "string",
|
|
693
|
-
"description": "Base branch to compare against (default: main)",
|
|
694
|
-
"default": "main"
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"name": "require-no-conflicts-before-stop",
|
|
700
|
-
"displayTitle": "Stopped with a branch that conflicts with main",
|
|
701
|
-
"impact": "Conflicting branches can't merge — surface them early.",
|
|
702
|
-
"description": "Require the current branch to merge cleanly with the base branch before Claude stops",
|
|
703
|
-
"match": {
|
|
704
|
-
"events": [
|
|
705
|
-
"Stop"
|
|
706
|
-
]
|
|
707
|
-
},
|
|
708
|
-
"defaultEnabled": false,
|
|
709
|
-
"category": "Workflow",
|
|
710
|
-
"params": {
|
|
711
|
-
"baseBranch": {
|
|
712
|
-
"type": "string",
|
|
713
|
-
"description": "Base branch to check for conflicts against (default: main)",
|
|
714
|
-
"default": "main"
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"name": "require-ci-green-before-stop",
|
|
720
|
-
"displayTitle": "Stopped with failing CI",
|
|
721
|
-
"impact": "Failing CI blocks deploy.",
|
|
722
|
-
"description": "Require CI checks to pass on the current HEAD commit before Claude stops (ignores stale runs on prior commits)",
|
|
723
|
-
"match": {
|
|
724
|
-
"events": [
|
|
725
|
-
"Stop"
|
|
726
|
-
]
|
|
727
|
-
},
|
|
728
|
-
"defaultEnabled": false,
|
|
729
|
-
"category": "Workflow"
|
|
730
|
-
}
|
|
731
|
-
]
|
|
732
|
-
}
|