failproofai 0.0.6-beta.1 → 0.0.6-beta.3
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/.failproofai/policies/review-policies.mjs +4 -3
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- 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/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 +2 -2
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- 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 +2 -2
- package/.next/standalone/.next/server/app/_not-found.rsc +15 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +10 -10
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +15 -15
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +10 -10
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- 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/server-reference-manifest.json +8 -8
- 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/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/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/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/chunks/[root-of-the-server]__0g72weg._.js +1 -1
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_0z7w.hh._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__092s1ta._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0~kmh8w._.js → [root-of-the-server]__096k.db._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09icjsf._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0g.lg8b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h..k-e._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0rh.18_._.js → [root-of-the-server]__0kyh86x._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0okos0k._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0w6l33k._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__11pa2ra._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__12t-wym._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_10lm7or._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_0xerkr6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_0q-m0y-._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/pages/404.html +2 -2
- 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 +9 -9
- package/.next/standalone/.next/static/chunks/{0gbf4cphy8ksq.js → 0-dm_9a6nsc2l.js} +1 -1
- package/.next/standalone/.next/static/chunks/{12~yi9oj8av8p.js → 01pmw1-asbek~.js} +2 -2
- package/.next/standalone/.next/static/chunks/{0v.yd0kg_ld3r.js → 051m32nx~n5yr.js} +1 -1
- package/.next/standalone/.next/static/chunks/{09_k80d~cq2wg.js → 0a-yctdwn368y.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0bvhsa6zva2o..js → 0ksdlt_1hucdm.js} +1 -1
- package/.next/standalone/.next/static/chunks/{01b~z8f1ws0rk.js → 0l-mu4okl-cj1.js} +1 -1
- package/.next/standalone/.next/static/chunks/{08t08igdql9yt.js → 0mazj-p-~2kc6.js} +1 -1
- package/.next/standalone/.next/static/chunks/0qakntsrpc~1j.js +6 -0
- package/.next/standalone/.next/static/chunks/{03rz6ykw-a2xi.js → 156zca6aewyr-.js} +1 -1
- package/.next/standalone/CHANGELOG.md +18 -0
- package/.next/standalone/bin/failproofai.mjs +91 -4
- package/.next/standalone/dist/cli.mjs +1156 -55
- package/.next/standalone/docs/ar/built-in-policies.mdx +140 -103
- package/.next/standalone/docs/ar/custom-policies.mdx +72 -72
- package/.next/standalone/docs/ar/examples.mdx +86 -33
- package/.next/standalone/docs/ar/getting-started.mdx +82 -29
- package/.next/standalone/docs/built-in-policies.mdx +3 -3
- package/.next/standalone/docs/de/built-in-policies.mdx +97 -60
- package/.next/standalone/docs/de/custom-policies.mdx +56 -56
- package/.next/standalone/docs/de/examples.mdx +72 -18
- package/.next/standalone/docs/de/getting-started.mdx +72 -20
- package/.next/standalone/docs/es/built-in-policies.mdx +91 -54
- package/.next/standalone/docs/es/custom-policies.mdx +55 -55
- package/.next/standalone/docs/es/examples.mdx +73 -19
- package/.next/standalone/docs/es/getting-started.mdx +72 -20
- package/.next/standalone/docs/fr/built-in-policies.mdx +99 -62
- package/.next/standalone/docs/fr/custom-policies.mdx +51 -51
- package/.next/standalone/docs/fr/examples.mdx +78 -24
- package/.next/standalone/docs/fr/getting-started.mdx +65 -13
- package/.next/standalone/docs/he/built-in-policies.mdx +139 -99
- package/.next/standalone/docs/he/custom-policies.mdx +75 -75
- package/.next/standalone/docs/he/examples.mdx +87 -33
- package/.next/standalone/docs/he/getting-started.mdx +84 -33
- package/.next/standalone/docs/hi/built-in-policies.mdx +203 -166
- package/.next/standalone/docs/hi/custom-policies.mdx +71 -70
- package/.next/standalone/docs/hi/examples.mdx +90 -36
- package/.next/standalone/docs/hi/getting-started.mdx +80 -27
- package/.next/standalone/docs/i18n/README.ar.md +69 -69
- package/.next/standalone/docs/i18n/README.de.md +46 -46
- package/.next/standalone/docs/i18n/README.es.md +42 -42
- package/.next/standalone/docs/i18n/README.fr.md +39 -39
- package/.next/standalone/docs/i18n/README.he.md +83 -83
- package/.next/standalone/docs/i18n/README.hi.md +69 -69
- package/.next/standalone/docs/i18n/README.it.md +72 -72
- package/.next/standalone/docs/i18n/README.ja.md +71 -71
- package/.next/standalone/docs/i18n/README.ko.md +52 -52
- package/.next/standalone/docs/i18n/README.pt-br.md +44 -44
- package/.next/standalone/docs/i18n/README.ru.md +66 -66
- package/.next/standalone/docs/i18n/README.tr.md +82 -83
- package/.next/standalone/docs/i18n/README.vi.md +70 -71
- package/.next/standalone/docs/i18n/README.zh.md +51 -51
- package/.next/standalone/docs/it/built-in-policies.mdx +115 -78
- package/.next/standalone/docs/it/custom-policies.mdx +69 -69
- package/.next/standalone/docs/it/examples.mdx +93 -39
- package/.next/standalone/docs/it/getting-started.mdx +73 -21
- package/.next/standalone/docs/ja/built-in-policies.mdx +155 -118
- package/.next/standalone/docs/ja/custom-policies.mdx +71 -71
- package/.next/standalone/docs/ja/examples.mdx +76 -22
- package/.next/standalone/docs/ja/getting-started.mdx +65 -13
- package/.next/standalone/docs/ko/built-in-policies.mdx +103 -66
- package/.next/standalone/docs/ko/custom-policies.mdx +67 -67
- package/.next/standalone/docs/ko/examples.mdx +87 -33
- package/.next/standalone/docs/ko/getting-started.mdx +61 -9
- package/.next/standalone/docs/pt-br/built-in-policies.mdx +72 -35
- package/.next/standalone/docs/pt-br/custom-policies.mdx +56 -56
- package/.next/standalone/docs/pt-br/examples.mdx +78 -24
- package/.next/standalone/docs/pt-br/getting-started.mdx +64 -12
- package/.next/standalone/docs/ru/built-in-policies.mdx +135 -98
- package/.next/standalone/docs/ru/custom-policies.mdx +82 -81
- package/.next/standalone/docs/ru/examples.mdx +77 -22
- package/.next/standalone/docs/ru/getting-started.mdx +74 -22
- package/.next/standalone/docs/tr/built-in-policies.mdx +126 -89
- package/.next/standalone/docs/tr/custom-policies.mdx +59 -60
- package/.next/standalone/docs/tr/examples.mdx +97 -42
- package/.next/standalone/docs/tr/getting-started.mdx +75 -23
- package/.next/standalone/docs/vi/built-in-policies.mdx +116 -81
- package/.next/standalone/docs/vi/custom-policies.mdx +68 -68
- package/.next/standalone/docs/vi/examples.mdx +93 -38
- package/.next/standalone/docs/vi/getting-started.mdx +74 -22
- package/.next/standalone/docs/zh/built-in-policies.mdx +117 -82
- package/.next/standalone/docs/zh/custom-policies.mdx +49 -49
- package/.next/standalone/docs/zh/examples.mdx +90 -36
- package/.next/standalone/docs/zh/getting-started.mdx +73 -21
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/src/auth/login.ts +104 -0
- package/.next/standalone/src/auth/logout.ts +50 -0
- package/.next/standalone/src/auth/token-store.ts +64 -0
- package/.next/standalone/src/hooks/builtin-policies.ts +27 -21
- package/.next/standalone/src/hooks/handler.ts +35 -15
- package/.next/standalone/src/relay/daemon.ts +362 -0
- package/.next/standalone/src/relay/pid.ts +76 -0
- package/.next/standalone/src/relay/queue.ts +225 -0
- package/bin/failproofai.mjs +91 -4
- package/dist/cli.mjs +1156 -55
- package/package.json +1 -1
- package/src/auth/login.ts +104 -0
- package/src/auth/logout.ts +50 -0
- package/src/auth/token-store.ts +64 -0
- package/src/hooks/builtin-policies.ts +27 -21
- package/src/hooks/handler.ts +35 -15
- package/src/relay/daemon.ts +362 -0
- package/src/relay/pid.ts +76 -0
- package/src/relay/queue.ts +225 -0
- package/.next/standalone/.next/static/chunks/0wlyoif4_kj_t.js +0 -6
- /package/.next/standalone/.next/static/{CkmOT-ZvDN-sVULinGVKT → r-wX0MuAfCjbhJm3phQc8}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{CkmOT-ZvDN-sVULinGVKT → r-wX0MuAfCjbhJm3phQc8}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{CkmOT-ZvDN-sVULinGVKT → r-wX0MuAfCjbhJm3phQc8}/_ssgManifest.js +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
+
---
|
|
2
3
|
title: מדיניות מובנות
|
|
3
|
-
description: "כל 30
|
|
4
|
+
description: "כל 30 המדיניות המובנות המתפסות מצבי כשל נפוצים של סוכנים"
|
|
4
5
|
icon: shield
|
|
5
6
|
---
|
|
6
7
|
|
|
7
|
-
failproofai מגיע עם 30 מדיניות מובנות
|
|
8
|
+
failproofai מגיע עם 30 מדיניות מובנות המתפסות מצבי כשל נפוצים של סוכנים. כל מדיניות מופעלת על סוג אירוע hook ספציפי ושם כלי. תשע מדיניות מקבלות פרמטרים המאפשרים לך לכוונן את התנהגותם ללא כתיבת קוד. ארבע מדיניות זרימת עבודה אוכפות צינור commit → push → PR → CI לפני שClaude עוצר.
|
|
8
9
|
|
|
9
10
|
---
|
|
10
11
|
|
|
@@ -15,45 +16,46 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
15
16
|
| קטגוריה | מדיניות | סוג Hook |
|
|
16
17
|
|----------|----------|-----------|
|
|
17
18
|
| [פקודות מסוכנות](#dangerous-commands) | block-sudo, block-rm-rf, block-curl-pipe-sh, block-failproofai-commands | PreToolUse |
|
|
18
|
-
| [סודות (
|
|
19
|
+
| [סודות (מטהרים)](#secrets-sanitizers) | sanitize-jwt, sanitize-api-keys, sanitize-connection-strings, sanitize-private-key-content, sanitize-bearer-tokens | PostToolUse |
|
|
19
20
|
| [סביבה](#environment) | block-env-files, protect-env-vars | PreToolUse |
|
|
20
21
|
| [גישת קבצים](#file-access) | block-read-outside-cwd, block-secrets-write | PreToolUse |
|
|
21
22
|
| [Git](#git) | block-push-master, block-work-on-main, block-force-push, warn-git-amend, warn-git-stash-drop, warn-all-files-staged | PreToolUse |
|
|
22
23
|
| [בסיס נתונים](#database) | warn-destructive-sql, warn-schema-alteration | PreToolUse |
|
|
23
24
|
| [אזהרות](#warnings) | warn-large-file-write, warn-package-publish, warn-background-process, warn-global-package-install | PreToolUse |
|
|
24
|
-
| [
|
|
25
|
+
| [מנהלי חבילות](#package-managers) | prefer-package-manager | PreToolUse |
|
|
26
|
+
| [זרימת עבודה](#workflow) | require-commit-before-stop, require-push-before-stop, require-pr-before-stop, require-ci-green-before-stop | Stop |
|
|
25
27
|
|
|
26
|
-
- **`block-`** — עצור את הסוכן
|
|
27
|
-
- **`warn-`** — תן לסוכן הקשר נוסף כדי שיוכל
|
|
28
|
-
- **`sanitize-`** — נקה נתונים רגישים מפלט הכלי לפני
|
|
29
|
-
- **`require-`** — חסום את
|
|
28
|
+
- **`block-`** — עצור את הסוכן מלהמשיך הלאה.
|
|
29
|
+
- **`warn-`** — תן לסוכן הקשר נוסף כדי שיוכל לתקן בעצמו.
|
|
30
|
+
- **`sanitize-`** — נקה נתונים רגישים מפלט הכלי לפני שהסוכן רואה זאת.
|
|
31
|
+
- **`require-`** — חסום את אירוע העצירה עד למתן תנאים.
|
|
30
32
|
|
|
31
33
|
---
|
|
32
34
|
|
|
33
35
|
<Tip>
|
|
34
|
-
כל מדיניות תומכת בשדה `hint` אופציונלי ב-`policyParams`. ה-hint
|
|
36
|
+
כל מדיניות תומכת בשדה `hint` אופציונלי ב-`policyParams`. ה-hint מתווסף להודעת deny או instruct שClaude רואה, המספקת הנחיה מעשית ללא שינוי קוד מדיניות. עובד עם מדיניות מובנות, מותאמות ולפי כללים. ראה [Configuration → hint](/he/configuration#hint-cross-cutting) לפרטים.
|
|
35
37
|
</Tip>
|
|
36
38
|
|
|
37
39
|
---
|
|
38
40
|
|
|
39
41
|
## פקודות מסוכנות
|
|
40
42
|
|
|
41
|
-
מנע
|
|
43
|
+
מנע מסוכנים הרצה של פעולות שקשה להשלים בהן או שעלולות לפגוע במערכת המארח.
|
|
42
44
|
|
|
43
45
|
### `block-sudo`
|
|
44
46
|
|
|
45
47
|
**Event:** PreToolUse (Bash)
|
|
46
|
-
|
|
48
|
+
**Default:** דוחה כל פקודת `sudo`.
|
|
47
49
|
|
|
48
|
-
חוסם
|
|
50
|
+
חוסם הפעלות המכילות את המילה השמורה `sudo`. התאמת דפוס מבוצעת על אסימוני פקודה מפורסרים, לא על המחרוזת הגולמית, כדי למנוע עקיפה דרך הזרקה של סוכן shell.
|
|
49
51
|
|
|
50
|
-
|
|
52
|
+
**Parameters:**
|
|
51
53
|
|
|
52
|
-
| Param | Type |
|
|
54
|
+
| Param | Type | Default | Description |
|
|
53
55
|
|-------|------|---------|-------------|
|
|
54
|
-
| `allowPatterns` | `string[]` | `[]` | קידומות פקודה מדויקות
|
|
56
|
+
| `allowPatterns` | `string[]` | `[]` | קידומות פקודה מדויקות המורשות. כל ערך מתואם נגד אסימוני argv מפורסרים. |
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
**Example:**
|
|
57
59
|
|
|
58
60
|
```json
|
|
59
61
|
{
|
|
@@ -65,10 +67,10 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
65
67
|
}
|
|
66
68
|
```
|
|
67
69
|
|
|
68
|
-
עם תצורה זו, `sudo systemctl status nginx`
|
|
70
|
+
עם תצורה זו, `sudo systemctl status nginx` מורשה, אך `sudo rm /etc/hosts` דחוי.
|
|
69
71
|
|
|
70
72
|
<Note>
|
|
71
|
-
דפוסים מתואמים
|
|
73
|
+
דפוסים מתואמים נגד אסימונים מפורסרים, לא מחרוזת הפקודה הגולמית. זה מונע עקיפה דרך מפעילים מצורפים (למשל `sudo systemctl status x; rm -rf /` אינו תואם `sudo systemctl status *`).
|
|
72
74
|
</Note>
|
|
73
75
|
|
|
74
76
|
---
|
|
@@ -76,15 +78,15 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
76
78
|
### `block-rm-rf`
|
|
77
79
|
|
|
78
80
|
**Event:** PreToolUse (Bash)
|
|
79
|
-
|
|
81
|
+
**Default:** דוחה `rm -rf`, `rm -fr`, וצורות מחיקה רקורסיביות דומות.
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
**Parameters:**
|
|
82
84
|
|
|
83
|
-
| Param | Type |
|
|
85
|
+
| Param | Type | Default | Description |
|
|
84
86
|
|-------|------|---------|-------------|
|
|
85
|
-
| `allowPaths` | `string[]` | `[]` | נתיבים
|
|
87
|
+
| `allowPaths` | `string[]` | `[]` | נתיבים שבטוח למחוק באופן רקורסיבי (למשל `/tmp`). |
|
|
86
88
|
|
|
87
|
-
|
|
89
|
+
**Example:**
|
|
88
90
|
|
|
89
91
|
```json
|
|
90
92
|
{
|
|
@@ -101,7 +103,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
101
103
|
### `block-curl-pipe-sh`
|
|
102
104
|
|
|
103
105
|
**Event:** PreToolUse (Bash)
|
|
104
|
-
|
|
106
|
+
**Default:** דוחה `curl <url> | bash`, `curl <url> | sh`, `wget <url> | bash`, ודפוסים דומים.
|
|
105
107
|
|
|
106
108
|
אין פרמטרים.
|
|
107
109
|
|
|
@@ -110,20 +112,20 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
110
112
|
### `block-failproofai-commands`
|
|
111
113
|
|
|
112
114
|
**Event:** PreToolUse (Bash)
|
|
113
|
-
|
|
115
|
+
**Default:** דוחה פקודות שיסירו או תשביתו את failproofai עצמו (למשל `npm uninstall failproofai`, `failproofai policies --uninstall`).
|
|
114
116
|
|
|
115
117
|
אין פרמטרים.
|
|
116
118
|
|
|
117
119
|
---
|
|
118
120
|
|
|
119
|
-
## סודות (
|
|
121
|
+
## סודות (מטהרים)
|
|
120
122
|
|
|
121
|
-
|
|
123
|
+
עצור סוכנים מלהדליף אישורים להקשר שלהם או לפלט שלהם. מדיניות מטהרים מופעלות על אירועי **PostToolUse**. כאשר Claude מריץ פקודת Bash, קורא קובץ, או קורא לכל כלי, מדיניות אלו בוחנות את הפלט לפני שהוא מוחזר ל-Claude. אם דפוס סוד מתגלה, המדיניות מחזירה החלטת deny המונעת את הפלט מלהיות מועבר חזרה.
|
|
122
124
|
|
|
123
125
|
### `sanitize-jwt`
|
|
124
126
|
|
|
125
127
|
**Event:** PostToolUse (כל הכלים)
|
|
126
|
-
|
|
128
|
+
**Default:** מסרבל אסימוני JWT (שלוש קטעי base64url מופרדים ב-`.`).
|
|
127
129
|
|
|
128
130
|
אין פרמטרים.
|
|
129
131
|
|
|
@@ -132,15 +134,15 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
132
134
|
### `sanitize-api-keys`
|
|
133
135
|
|
|
134
136
|
**Event:** PostToolUse (כל הכלים)
|
|
135
|
-
|
|
137
|
+
**Default:** מסרבל פורמטי מפתח API נפוצים: Anthropic (`sk-ant-`), OpenAI (`sk-`), GitHub PATs (`ghp_`), מפתחות גישה AWS (`AKIA`), מפתחות Stripe (`sk_live_`, `sk_test_`), ומפתחות Google API (`AIza`).
|
|
136
138
|
|
|
137
|
-
|
|
139
|
+
**Parameters:**
|
|
138
140
|
|
|
139
|
-
| Param | Type |
|
|
141
|
+
| Param | Type | Default | Description |
|
|
140
142
|
|-------|------|---------|-------------|
|
|
141
|
-
| `additionalPatterns` | `{ regex: string; label: string }[]` | `[]` | דפוסי regex נוספים
|
|
143
|
+
| `additionalPatterns` | `{ regex: string; label: string }[]` | `[]` | דפוסי regex נוספים לטיפול כסודות. |
|
|
142
144
|
|
|
143
|
-
|
|
145
|
+
**Example:**
|
|
144
146
|
|
|
145
147
|
```json
|
|
146
148
|
{
|
|
@@ -160,7 +162,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
160
162
|
### `sanitize-connection-strings`
|
|
161
163
|
|
|
162
164
|
**Event:** PostToolUse (כל הכלים)
|
|
163
|
-
|
|
165
|
+
**Default:** מסרבל מחרוזות חיבור בסיס נתונים המכילות אישורים משובצים (למשל `postgresql://user:password@host/db`).
|
|
164
166
|
|
|
165
167
|
אין פרמטרים.
|
|
166
168
|
|
|
@@ -169,7 +171,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
169
171
|
### `sanitize-private-key-content`
|
|
170
172
|
|
|
171
173
|
**Event:** PostToolUse (כל הכלים)
|
|
172
|
-
|
|
174
|
+
**Default:** מסרבל בלוקי PEM (`-----BEGIN PRIVATE KEY-----`, `-----BEGIN RSA PRIVATE KEY-----`, וכו').
|
|
173
175
|
|
|
174
176
|
אין פרמטרים.
|
|
175
177
|
|
|
@@ -178,7 +180,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
178
180
|
### `sanitize-bearer-tokens`
|
|
179
181
|
|
|
180
182
|
**Event:** PostToolUse (כל הכלים)
|
|
181
|
-
|
|
183
|
+
**Default:** מסרבל כותרי `Authorization: Bearer <token>` שבהם הטוקן הוא 20 תווים או יותר.
|
|
182
184
|
|
|
183
185
|
אין פרמטרים.
|
|
184
186
|
|
|
@@ -186,14 +188,14 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
186
188
|
|
|
187
189
|
## סביבה
|
|
188
190
|
|
|
189
|
-
הגן על תצורת סביבה רגישה
|
|
191
|
+
הגן על תצורת סביבה רגישה מלהיות קראה או חשופה על ידי סוכנים.
|
|
190
192
|
|
|
191
193
|
### `block-env-files`
|
|
192
194
|
|
|
193
195
|
**Event:** PreToolUse (Bash, Read)
|
|
194
|
-
|
|
196
|
+
**Default:** דוחה קריאת קבצי `.env` דרך `cat .env`, קריאות `Read` tool עם `.env` כנתיב הקובץ, וכו'.
|
|
195
197
|
|
|
196
|
-
לא חוסם `.envrc` או קבצים
|
|
198
|
+
לא חוסם `.envrc` או קבצים אחרים הקשורים לסביבה - רק קבצים בשם בדיוק `.env`.
|
|
197
199
|
|
|
198
200
|
אין פרמטרים.
|
|
199
201
|
|
|
@@ -202,7 +204,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
202
204
|
### `protect-env-vars`
|
|
203
205
|
|
|
204
206
|
**Event:** PreToolUse (Bash)
|
|
205
|
-
|
|
207
|
+
**Default:** דוחה פקודות המדפיסות משתני סביבה: `printenv`, `env`, `echo $VAR`.
|
|
206
208
|
|
|
207
209
|
אין פרמטרים.
|
|
208
210
|
|
|
@@ -210,20 +212,20 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
210
212
|
|
|
211
213
|
## גישת קבצים
|
|
212
214
|
|
|
213
|
-
שמור סוכנים
|
|
215
|
+
שמור על סוכנים העובדים בגבולות הפרויקט ורחוקים מקבצים רגישים.
|
|
214
216
|
|
|
215
217
|
### `block-read-outside-cwd`
|
|
216
218
|
|
|
217
219
|
**Event:** PreToolUse (Read, Bash)
|
|
218
|
-
|
|
220
|
+
**Default:** דוחה קריאת קבצים מחוץ לספריית העבודה הנוכחית (שורש הפרויקט).
|
|
219
221
|
|
|
220
|
-
|
|
222
|
+
**Parameters:**
|
|
221
223
|
|
|
222
|
-
| Param | Type |
|
|
224
|
+
| Param | Type | Default | Description |
|
|
223
225
|
|-------|------|---------|-------------|
|
|
224
|
-
| `allowPaths` | `string[]` | `[]` | קידומות נתיב מוחלט
|
|
226
|
+
| `allowPaths` | `string[]` | `[]` | קידומות נתיב מוחלט המורשות גם אם מחוץ cwd. |
|
|
225
227
|
|
|
226
|
-
|
|
228
|
+
**Example:**
|
|
227
229
|
|
|
228
230
|
```json
|
|
229
231
|
{
|
|
@@ -240,15 +242,15 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
240
242
|
### `block-secrets-write`
|
|
241
243
|
|
|
242
244
|
**Event:** PreToolUse (Write, Edit)
|
|
243
|
-
|
|
245
|
+
**Default:** דוחה כתיבה לקבצים המשמשים בדרך כלל למפתחות פרטיים ותעודות: `id_rsa`, `id_ed25519`, `*.key`, `*.pem`, `*.p12`, `*.pfx`.
|
|
244
246
|
|
|
245
|
-
|
|
247
|
+
**Parameters:**
|
|
246
248
|
|
|
247
|
-
| Param | Type |
|
|
249
|
+
| Param | Type | Default | Description |
|
|
248
250
|
|-------|------|---------|-------------|
|
|
249
|
-
| `additionalPatterns` | `string[]` | `[]` | דפוסי שם קובץ נוספים (glob
|
|
251
|
+
| `additionalPatterns` | `string[]` | `[]` | דפוסי שם קובץ נוספים (בסגנון glob) לחסימה. |
|
|
250
252
|
|
|
251
|
-
|
|
253
|
+
**Example:**
|
|
252
254
|
|
|
253
255
|
```json
|
|
254
256
|
{
|
|
@@ -264,20 +266,20 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
264
266
|
|
|
265
267
|
## Git
|
|
266
268
|
|
|
267
|
-
מנע
|
|
269
|
+
מנע push, force-push, וטעויות בענף מקרי שקשה להשלים בהן.
|
|
268
270
|
|
|
269
271
|
### `block-push-master`
|
|
270
272
|
|
|
271
273
|
**Event:** PreToolUse (Bash)
|
|
272
|
-
|
|
274
|
+
**Default:** דוחה `git push origin main` ו-`git push origin master`.
|
|
273
275
|
|
|
274
|
-
|
|
276
|
+
**Parameters:**
|
|
275
277
|
|
|
276
|
-
| Param | Type |
|
|
278
|
+
| Param | Type | Default | Description |
|
|
277
279
|
|-------|------|---------|-------------|
|
|
278
|
-
| `protectedBranches` | `string[]` | `["main", "master"]` | שמות
|
|
280
|
+
| `protectedBranches` | `string[]` | `["main", "master"]` | שמות ענפים שלא ניתן לדחוף אליהם ישירות. |
|
|
279
281
|
|
|
280
|
-
|
|
282
|
+
**Example:**
|
|
281
283
|
|
|
282
284
|
```json
|
|
283
285
|
{
|
|
@@ -290,7 +292,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
290
292
|
```
|
|
291
293
|
|
|
292
294
|
<Tip>
|
|
293
|
-
כדי
|
|
295
|
+
כדי לאפשר דחיפה לכל הענפים (שביעטול אפקטיבי של מדיניות זו ללא הסרה מ-`enabledPolicies`), קבע `protectedBranches: []`.
|
|
294
296
|
</Tip>
|
|
295
297
|
|
|
296
298
|
---
|
|
@@ -298,22 +300,22 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
298
300
|
### `block-work-on-main`
|
|
299
301
|
|
|
300
302
|
**Event:** PreToolUse (Bash)
|
|
301
|
-
|
|
303
|
+
**Default:** דוחה checkout של ענפי `main` או `master` ישירות.
|
|
302
304
|
|
|
303
|
-
|
|
305
|
+
**Parameters:**
|
|
304
306
|
|
|
305
|
-
| Param | Type |
|
|
307
|
+
| Param | Type | Default | Description |
|
|
306
308
|
|-------|------|---------|-------------|
|
|
307
|
-
| `protectedBranches` | `string[]` | `["main", "master"]` | שמות
|
|
309
|
+
| `protectedBranches` | `string[]` | `["main", "master"]` | שמות ענפים שלא ניתן לבצע checkout אليהם ישירות. |
|
|
308
310
|
|
|
309
311
|
---
|
|
310
312
|
|
|
311
313
|
### `block-force-push`
|
|
312
314
|
|
|
313
315
|
**Event:** PreToolUse (Bash)
|
|
314
|
-
|
|
316
|
+
**Default:** דוחה `git push --force` ו-`git push -f`.
|
|
315
317
|
|
|
316
|
-
אין פרמטרים ספציפיים למדיניות. השתמש
|
|
318
|
+
אין פרמטרים ספציפיים למדיניות. השתמש בחוצה תחומים [`hint`](/he/configuration#hint-cross-cutting) להצעת חלופות:
|
|
317
319
|
|
|
318
320
|
```json
|
|
319
321
|
{
|
|
@@ -330,7 +332,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
330
332
|
### `warn-git-amend`
|
|
331
333
|
|
|
332
334
|
**Event:** PreToolUse (Bash)
|
|
333
|
-
|
|
335
|
+
**Default:** מדריך את Claude להמשיך בזהירות בעת הרצה של `git commit --amend`. לא חוסם את הפקודה.
|
|
334
336
|
|
|
335
337
|
אין פרמטרים.
|
|
336
338
|
|
|
@@ -339,7 +341,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
339
341
|
### `warn-git-stash-drop`
|
|
340
342
|
|
|
341
343
|
**Event:** PreToolUse (Bash)
|
|
342
|
-
|
|
344
|
+
**Default:** מדריך את Claude לאשר לפני הרצה של `git stash drop`. לא חוסם את הפקודה.
|
|
343
345
|
|
|
344
346
|
אין פרמטרים.
|
|
345
347
|
|
|
@@ -348,7 +350,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
348
350
|
### `warn-all-files-staged`
|
|
349
351
|
|
|
350
352
|
**Event:** PreToolUse (Bash)
|
|
351
|
-
|
|
353
|
+
**Default:** מדריך את Claude לבדוק מה הוא משדר כאשר הוא מריץ `git add -A` או `git add .`. לא חוסם את הפקודה.
|
|
352
354
|
|
|
353
355
|
אין פרמטרים.
|
|
354
356
|
|
|
@@ -356,12 +358,12 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
356
358
|
|
|
357
359
|
## בסיס נתונים
|
|
358
360
|
|
|
359
|
-
תפוס פעולות SQL הרסניות לפני שהן מבוצעות
|
|
361
|
+
תפוס פעולות SQL הרסניות לפני שהן מבוצעות בבסיס הנתונים שלך.
|
|
360
362
|
|
|
361
363
|
### `warn-destructive-sql`
|
|
362
364
|
|
|
363
365
|
**Event:** PreToolUse (Bash)
|
|
364
|
-
|
|
366
|
+
**Default:** מדריך את Claude לאשר לפני הרצה של SQL המכיל `DROP TABLE`, `DROP DATABASE`, או `DELETE` ללא סעיף `WHERE`.
|
|
365
367
|
|
|
366
368
|
אין פרמטרים.
|
|
367
369
|
|
|
@@ -370,7 +372,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
370
372
|
### `warn-schema-alteration`
|
|
371
373
|
|
|
372
374
|
**Event:** PreToolUse (Bash)
|
|
373
|
-
|
|
375
|
+
**Default:** מדריך את Claude לאשר לפני הרצה של הצהרות `ALTER TABLE`.
|
|
374
376
|
|
|
375
377
|
אין פרמטרים.
|
|
376
378
|
|
|
@@ -383,15 +385,15 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
383
385
|
### `warn-large-file-write`
|
|
384
386
|
|
|
385
387
|
**Event:** PreToolUse (Write)
|
|
386
|
-
|
|
388
|
+
**Default:** מדריך את Claude לאשר לפני כתיבת קבצים גדולים מ-1024 KB.
|
|
387
389
|
|
|
388
|
-
|
|
390
|
+
**Parameters:**
|
|
389
391
|
|
|
390
|
-
| Param | Type |
|
|
392
|
+
| Param | Type | Default | Description |
|
|
391
393
|
|-------|------|---------|-------------|
|
|
392
|
-
| `thresholdKb` | `number` | `1024` | סף גודל קובץ
|
|
394
|
+
| `thresholdKb` | `number` | `1024` | סף גודל קובץ בקילוביטים שמעליו מנופקת אזהרה. |
|
|
393
395
|
|
|
394
|
-
|
|
396
|
+
**Example:**
|
|
395
397
|
|
|
396
398
|
```json
|
|
397
399
|
{
|
|
@@ -404,7 +406,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
404
406
|
```
|
|
405
407
|
|
|
406
408
|
<Note>
|
|
407
|
-
ה-hook
|
|
409
|
+
מטפל ה-hook אוכף מגבלת stdin של 1 MB על payload. כדי לבדוק מדיניות זו עם תוכן קטן, קבע `thresholdKb` לערך הרבה להלן 1024.
|
|
408
410
|
</Note>
|
|
409
411
|
|
|
410
412
|
---
|
|
@@ -412,7 +414,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
412
414
|
### `warn-package-publish`
|
|
413
415
|
|
|
414
416
|
**Event:** PreToolUse (Bash)
|
|
415
|
-
|
|
417
|
+
**Default:** מדריך את Claude לאשר לפני הרצה של `npm publish`.
|
|
416
418
|
|
|
417
419
|
אין פרמטרים.
|
|
418
420
|
|
|
@@ -421,7 +423,7 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
421
423
|
### `warn-background-process`
|
|
422
424
|
|
|
423
425
|
**Event:** PreToolUse (Bash)
|
|
424
|
-
|
|
426
|
+
**Default:** מדריך את Claude להיות זהיר בעת הפעלה של תהליכים בחלק האחורי דרך `nohup`, `&`, `disown`, או `screen`.
|
|
425
427
|
|
|
426
428
|
אין פרמטרים.
|
|
427
429
|
|
|
@@ -430,35 +432,71 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
430
432
|
### `warn-global-package-install`
|
|
431
433
|
|
|
432
434
|
**Event:** PreToolUse (Bash)
|
|
433
|
-
|
|
435
|
+
**Default:** מדריך את Claude לאשר לפני הרצה של `npm install -g`, `yarn global add`, או `pip install` ללא סביבה וירטואלית.
|
|
434
436
|
|
|
435
437
|
אין פרמטרים.
|
|
436
438
|
|
|
437
439
|
---
|
|
438
440
|
|
|
441
|
+
## מנהלי חבילות
|
|
442
|
+
|
|
443
|
+
אכוף אילו מנהלי חבילות מורשים לסוכן.
|
|
444
|
+
|
|
445
|
+
### `prefer-package-manager`
|
|
446
|
+
|
|
447
|
+
**Event:** PreToolUse (Bash)
|
|
448
|
+
**Default:** מושבת. כשמופעל, חוסם כל פקודת מנהל חבילות שלא ברשימת `allowed` ומדריך את Claude לשכתב את הפקודה באמצעות מנהל מורשה.
|
|
449
|
+
|
|
450
|
+
מגלה: pip, pip3, python -m pip, npm, npx, yarn, pnpm, pnpx, bun, bunx, uv, poetry, pipenv, conda, cargo.
|
|
451
|
+
|
|
452
|
+
| Parameter | Type | Default | Description |
|
|
453
|
+
|-----------|------|---------|-------------|
|
|
454
|
+
| `allowed` | string[] | `[]` | שמות מנהלי חבילות מורשים. כל מנהל מגולה שלא ברשימה זו דחוי. כשריק, המדיניות היא לא פעולה. |
|
|
455
|
+
| `blocked` | string[] | `[]` | שמות מנהלים נוספים לחסימה מעבר לרשימה המובנית (למשל `['pdm', 'pipx']`). |
|
|
456
|
+
|
|
457
|
+
רשימת החסימה המובנית מכסה: pip, pip3, npm, npx, yarn, pnpm, pnpx, bun, bunx, uv, poetry, pipenv, conda, cargo. השתמש ב-`blocked` להוספת מנהלים שלא ברשימה זו.
|
|
458
|
+
|
|
459
|
+
**Example configuration:**
|
|
460
|
+
|
|
461
|
+
```json
|
|
462
|
+
{
|
|
463
|
+
"enabledPolicies": ["prefer-package-manager"],
|
|
464
|
+
"policyParams": {
|
|
465
|
+
"prefer-package-manager": {
|
|
466
|
+
"allowed": ["uv", "bun"],
|
|
467
|
+
"blocked": ["pdm", "pipx"]
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
עם תצורה זו, `pip install flask` ו-`pdm install flask` שניהם דחויים עם הודעה המדריכה את Claude להשתמש ב-`uv` או `bun` במקום זאת. פקודות כמו `uv pip install flask` מורשות מכיוון ש-`uv` ברשימת ההרשאות ובדק ראשון.
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
439
477
|
## התנהגות AI
|
|
440
478
|
|
|
441
|
-
|
|
479
|
+
גלה כאשר סוכנים תקועים או מתנהגים בצורה בלתי צפויה.
|
|
442
480
|
|
|
443
481
|
### `warn-repeated-tool-calls`
|
|
444
482
|
|
|
445
483
|
**Event:** PreToolUse (כל הכלים)
|
|
446
|
-
|
|
484
|
+
**Default:** מדריך את Claude לשקול מחדש כאשר אותו כלי נקרא 3+ פעמים עם פרמטרים זהים - סימן נפוץ שהסוכן תקוע בלולאה.
|
|
447
485
|
|
|
448
486
|
אין פרמטרים.
|
|
449
487
|
|
|
450
488
|
---
|
|
451
489
|
|
|
452
|
-
##
|
|
490
|
+
## זרימת עבודה
|
|
453
491
|
|
|
454
|
-
אכוף
|
|
492
|
+
אכוף זרימת עבודה משמעותית בסוף ההפעלה. מדיניות אלה מופעלות על אירוע **Stop** ודוחות את Claude מלעצור עד למתן כל תנאי. הן עוקבות אחר שרשרת תלות טבעית: commit → push → PR → CI. אם מדיניות דוחה, מדיניות מאוחרות בשרשרת מדלג (deny short-circuits).
|
|
455
493
|
|
|
456
|
-
כל מדיניות
|
|
494
|
+
כל מדיניות זרימת עבודה היא **fail-open**: אם הכלי הנדרש אינו זמין (למשל `gh` אינו מותקן, אין git remote), המדיניות מאפשרת עם הודעה מידע המסבירה מדוע בדיקה דולקה.
|
|
457
495
|
|
|
458
496
|
### `require-commit-before-stop`
|
|
459
497
|
|
|
460
498
|
**Event:** Stop
|
|
461
|
-
|
|
499
|
+
**Default:** דוחה עצירה כשיש שינויים לא מעומדים (קבצים שונויים, משודרים, או לא מעקובים). מחזיר הודעת מידע כאשר ספריית העבודה נקייה.
|
|
462
500
|
|
|
463
501
|
אין פרמטרים.
|
|
464
502
|
|
|
@@ -467,15 +505,15 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
467
505
|
### `require-push-before-stop`
|
|
468
506
|
|
|
469
507
|
**Event:** Stop
|
|
470
|
-
|
|
508
|
+
**Default:** דוחה עצירה כשיש commits לא דחופים או כאשר לענף הנוכחי אין ענף tracking מרוחק. מציע `git push -u` ליצירת ענף tracking אם צריך. נכשל open אם אין remote מוגדר.
|
|
471
509
|
|
|
472
|
-
|
|
510
|
+
**Parameters:**
|
|
473
511
|
|
|
474
|
-
| Param | Type |
|
|
512
|
+
| Param | Type | Default | Description |
|
|
475
513
|
|-------|------|---------|-------------|
|
|
476
|
-
| `remote` | `string` | `"origin"` | שם remote
|
|
514
|
+
| `remote` | `string` | `"origin"` | שם ה-remote לדחוף אליו. |
|
|
477
515
|
|
|
478
|
-
|
|
516
|
+
**Example:**
|
|
479
517
|
|
|
480
518
|
```json
|
|
481
519
|
{
|
|
@@ -492,13 +530,14 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
492
530
|
### `require-pr-before-stop`
|
|
493
531
|
|
|
494
532
|
**Event:** Stop
|
|
495
|
-
|
|
533
|
+
**Default:** דוחה עצירה כאשר לא קיים pull request לענף הנוכחי, או כאשר ה-PR הקיים סגור/merged. מדריך את Claude ליצור PR עם `gh pr create`.
|
|
496
534
|
|
|
497
535
|
אין פרמטרים.
|
|
498
536
|
|
|
499
537
|
<Note>
|
|
500
|
-
מדיניות זו דורשת [GitHub CLI](https://cli.github.com/) (`gh`)
|
|
501
|
-
|
|
538
|
+
מדיניות זו דורשת [GitHub CLI](https://cli.github.com/) (`gh`) להיות מותקן ומאומת.
|
|
539
|
+
הריץ `gh auth login` עם טוקן גישה אישי שיש לו `repo` scope לגישת קריאה ל-
|
|
540
|
+
pull requests. אם `gh` אינו מותקן או אינו מאומת, המדיניות נכשלת open ודווח הסיבה ל-Claude.
|
|
502
541
|
</Note>
|
|
503
542
|
|
|
504
543
|
---
|
|
@@ -506,22 +545,23 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
506
545
|
### `require-ci-green-before-stop`
|
|
507
546
|
|
|
508
547
|
**Event:** Stop
|
|
509
|
-
|
|
548
|
+
**Default:** דוחה עצירה כאשר בדיקות CI נכשלות או עדיין פועלות בענף הנוכחי. בודק גם ריצות סדר עבודה של GitHub Actions וביקורות בוט צד שלישי (למשל CodeRabbit, SonarCloud, Codecov). מטפל בתוצאות `skipped` ו-`cancelled` כהצלחה. מחזיר הודעת מידע כאשר כל הבדיקות עוברות.
|
|
510
549
|
|
|
511
550
|
אין פרמטרים.
|
|
512
551
|
|
|
513
552
|
<Note>
|
|
514
|
-
מדיניות זו דורשת [GitHub CLI](https://cli.github.com/) (`gh`)
|
|
515
|
-
|
|
553
|
+
מדיניות זו דורשת [GitHub CLI](https://cli.github.com/) (`gh`) להיות מותקן ומאומת.
|
|
554
|
+
הריץ `gh auth login` עם טוקן גישה אישי שיש לו `repo` scope לגישת קריאה ל-
|
|
555
|
+
ריצות סדר עבודה של Actions ו-Checks API. אם `gh` אינו מותקן או אינו מאומת, המדיניות נכשלת open ודווח הסיבה ל-Claude.
|
|
516
556
|
</Note>
|
|
517
557
|
|
|
518
558
|
---
|
|
519
559
|
|
|
520
560
|
---
|
|
521
561
|
|
|
522
|
-
##
|
|
562
|
+
## השבתה של מדיניות בודדות
|
|
523
563
|
|
|
524
|
-
הסר מדיניות ספציפית מ-`enabledPolicies` בתצורה שלך, או
|
|
564
|
+
הסר מדיניות ספציפית מ-`enabledPolicies` בתצורה שלך, או החלף אותה בלשונית Policies של לוח המחוונים.
|
|
525
565
|
|
|
526
566
|
```json
|
|
527
567
|
{
|
|
@@ -532,4 +572,4 @@ failproofai מגיע עם 30 מדיניות מובנות שתופסות מצבי
|
|
|
532
572
|
}
|
|
533
573
|
```
|
|
534
574
|
|
|
535
|
-
מדיניות
|
|
575
|
+
מדיניות שאינן רשומות ב-`enabledPolicies` אינן פועלות, גם אם ערכי `policyParams` קיימים עבורן.
|