failproofai 0.0.6-beta.1 → 0.0.6-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/.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]__0~kmh8w._.js → [root-of-the-server]__05akje6._.js} +2 -2
- 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]__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]__0i5kvry._.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/{08t08igdql9yt.js → 00j0rr7rh8ef8.js} +1 -1
- package/.next/standalone/.next/static/chunks/{12~yi9oj8av8p.js → 05j1px0r8yzh6.js} +2 -2
- package/.next/standalone/.next/static/chunks/{09_k80d~cq2wg.js → 0badv41uxa56..js} +1 -1
- package/.next/standalone/.next/static/chunks/{0wlyoif4_kj_t.js → 0ijk_kek9_wyx.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0bvhsa6zva2o..js → 0ksdlt_1hucdm.js} +1 -1
- package/.next/standalone/.next/static/chunks/{03rz6ykw-a2xi.js → 0npb~873.wvg3.js} +1 -1
- package/.next/standalone/.next/static/chunks/{01b~z8f1ws0rk.js → 0xpl.oscrakvx.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0gbf4cphy8ksq.js → 1052sguyd-.ka.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0v.yd0kg_ld3r.js → 14cl9poem30dq.js} +1 -1
- package/.next/standalone/CHANGELOG.md +11 -0
- package/.next/standalone/dist/cli.mjs +3 -3
- package/.next/standalone/docs/ar/built-in-policies.mdx +124 -87
- 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 +1 -1
- package/.next/standalone/docs/de/built-in-policies.mdx +93 -56
- 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 +115 -78
- 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 +83 -46
- 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 +156 -117
- 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 +101 -60
- 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 +118 -81
- 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 +98 -61
- 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 +137 -100
- 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 +94 -57
- 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 +142 -105
- 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 +104 -67
- 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 +110 -72
- 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 +132 -95
- 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/hooks/builtin-policies.ts +5 -1
- package/dist/cli.mjs +3 -3
- package/package.json +1 -1
- package/src/hooks/builtin-policies.ts +5 -1
- /package/.next/standalone/.next/static/{CkmOT-ZvDN-sVULinGVKT → A9pNTZdoYJTVyPAYwQMx5}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{CkmOT-ZvDN-sVULinGVKT → A9pNTZdoYJTVyPAYwQMx5}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{CkmOT-ZvDN-sVULinGVKT → A9pNTZdoYJTVyPAYwQMx5}/_ssgManifest.js +0 -0
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
|
|
24
24
|
**अनुवाद**: [简体中文](docs/i18n/README.zh.md) | [日本語](docs/i18n/README.ja.md) | [한국어](docs/i18n/README.ko.md) | [Español](docs/i18n/README.es.md) | [Português](docs/i18n/README.pt-br.md) | [Deutsch](docs/i18n/README.de.md) | [Français](docs/i18n/README.fr.md) | [Русский](docs/i18n/README.ru.md) | [हिन्दी](docs/i18n/README.hi.md) | [Türkçe](docs/i18n/README.tr.md) | [Tiếng Việt](docs/i18n/README.vi.md) | [Italiano](docs/i18n/README.it.md) | [العربية](docs/i18n/README.ar.md) | [עברית](docs/i18n/README.he.md)
|
|
25
25
|
|
|
26
|
-
आपके AI
|
|
26
|
+
आपके AI एजेंट्स को विश्वसनीय, केंद्रित और स्वायत्त रूप से चलाने वाली नीतियों को प्रबंधित करने का सबसे आसान तरीका - **Claude Code** और **Agents SDK** के लिए।
|
|
27
27
|
|
|
28
|
-
- **30
|
|
29
|
-
- **कस्टम
|
|
30
|
-
- **आसान कॉन्फ़िगरेशन** - कोड लिखे बिना किसी भी
|
|
31
|
-
- **एजेंट मॉनिटर** - देखें कि आपके एजेंट्स
|
|
28
|
+
- **30 अंतर्निर्मित नीतियां** - आउट ऑफ द बॉक्स से सामान्य एजेंट विफलता मोड को पकड़ें। विनाशकारी आदेशों को ब्लॉक करें, गोपनीय लीकेज को रोकें, एजेंट्स को प्रोजेक्ट सीमाओं के भीतर रखें, लूप्स का पता लगाएं, और बहुत कुछ।
|
|
29
|
+
- **कस्टम नीतियां** - JavaScript में अपने स्वयं की विश्वसनीयता नियम लिखें। सम्मेलनों को लागू करने, बहाव को रोकने, संचालन को गेट करने या बाहरी प्रणालियों के साथ एकीकृत करने के लिए `allow`/`deny`/`instruct` API का उपयोग करें।
|
|
30
|
+
- **आसान कॉन्फ़िगरेशन** - कोड लिखे बिना किसी भी नीति को ट्यून करें। allowlists, सुरक्षित शाखाएं, प्रति-प्रोजेक्ट या वैश्विक रूप से थ्रेसहोल्ड सेट करें। तीन-स्कोप कॉन्फ़िग स्वचालित रूप से विलय करता है।
|
|
31
|
+
- **एजेंट मॉनिटर** - देखें कि आपके एजेंट्स आपकी अनुपस्थिति में क्या करते थे। सेशन ब्राउज़ करें, प्रत्येक टूल कॉल का निरीक्षण करें, और बिल्कुल देखें कि नीतियां कहां लागू हुईं।
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
सबकुछ स्थानीय रूप से चलता है - कोई डेटा आपकी मशीन से बाहर नहीं जाता।
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
37
37
|
## आवश्यकताएं
|
|
38
38
|
|
|
39
39
|
- Node.js >= 20.9.0
|
|
40
|
-
- Bun >= 1.3.0 (वैकल्पिक - केवल
|
|
40
|
+
- Bun >= 1.3.0 (वैकल्पिक - केवल विकास/स्रोत से निर्माण के लिए आवश्यक)
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -53,13 +53,13 @@ bun add -g failproofai
|
|
|
53
53
|
|
|
54
54
|
## त्वरित शुरुआत
|
|
55
55
|
|
|
56
|
-
### 1.
|
|
56
|
+
### 1. नीतियों को वैश्विक रूप से सक्षम करें
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
failproofai policies --install
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
`~/.claude/settings.json` में हुक
|
|
62
|
+
`~/.claude/settings.json` में हुक प्रविष्टियां लिखता है। Claude Code अब प्रत्येक टूल कॉल से पहले और बाद में failproofai को आमंत्रित करेगा।
|
|
63
63
|
|
|
64
64
|
### 2. डैशबोर्ड लॉन्च करें
|
|
65
65
|
|
|
@@ -67,9 +67,9 @@ failproofai policies --install
|
|
|
67
67
|
failproofai
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
`http://localhost:8020` खोलता है - सेशन ब्राउज़ करें, लॉग का निरीक्षण करें,
|
|
70
|
+
`http://localhost:8020` खोलता है - सेशन ब्राउज़ करें, लॉग का निरीक्षण करें, नीतियों को प्रबंधित करें।
|
|
71
71
|
|
|
72
|
-
### 3.
|
|
72
|
+
### 3. सक्रिय क्या है इसे जांचें
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
75
|
failproofai policies
|
|
@@ -77,27 +77,27 @@ failproofai policies
|
|
|
77
77
|
|
|
78
78
|
---
|
|
79
79
|
|
|
80
|
-
##
|
|
80
|
+
## नीति स्थापना
|
|
81
81
|
|
|
82
82
|
### स्कोप्स
|
|
83
83
|
|
|
84
|
-
| स्कोप | कमांड |
|
|
84
|
+
| स्कोप | कमांड | कहां लिखता है |
|
|
85
85
|
|-------|---------|-----------------|
|
|
86
|
-
|
|
|
86
|
+
| वैश्विक (डिफ़ॉल्ट) | `failproofai policies --install` | `~/.claude/settings.json` |
|
|
87
87
|
| प्रोजेक्ट | `failproofai policies --install --scope project` | `.claude/settings.json` |
|
|
88
88
|
| स्थानीय | `failproofai policies --install --scope local` | `.claude/settings.local.json` |
|
|
89
89
|
|
|
90
|
-
### विशिष्ट
|
|
90
|
+
### विशिष्ट नीतियां स्थापित करें
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
failproofai policies --install block-sudo block-rm-rf sanitize-api-keys
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
###
|
|
96
|
+
### नीतियों को हटाएं
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
99
|
failproofai policies --uninstall
|
|
100
|
-
# या
|
|
100
|
+
# या एक विशिष्ट स्कोप के लिए:
|
|
101
101
|
failproofai policies --uninstall --scope project
|
|
102
102
|
```
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ failproofai policies --uninstall --scope project
|
|
|
105
105
|
|
|
106
106
|
## कॉन्फ़िगरेशन
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
नीति कॉन्फ़िगरेशन `~/.failproofai/policies-config.json` (वैश्विक) में रहता है या आपके प्रोजेक्ट में `.failproofai/policies-config.json` (प्रति-प्रोजेक्ट)।
|
|
109
109
|
|
|
110
110
|
```json
|
|
111
111
|
{
|
|
@@ -124,7 +124,7 @@ failproofai policies --uninstall --scope project
|
|
|
124
124
|
},
|
|
125
125
|
"block-push-master": {
|
|
126
126
|
"protectedBranches": ["main", "release", "prod"],
|
|
127
|
-
"hint": "इसके बजाय एक
|
|
127
|
+
"hint": "इसके बजाय एक नई शाखा बनाने का प्रयास करें।"
|
|
128
128
|
},
|
|
129
129
|
"sanitize-api-keys": {
|
|
130
130
|
"additionalPatterns": [
|
|
@@ -138,66 +138,66 @@ failproofai policies --uninstall --scope project
|
|
|
138
138
|
}
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
**तीन कॉन्फ़िग स्कोप्स** स्वचालित रूप से
|
|
141
|
+
**तीन कॉन्फ़िग स्कोप्स** स्वचालित रूप से विलय किए जाते हैं (प्रोजेक्ट → स्थानीय → वैश्विक)। पूर्ण विलय नियमों के लिए [docs/configuration.mdx](docs/configuration.mdx) देखें।
|
|
142
142
|
|
|
143
143
|
---
|
|
144
144
|
|
|
145
|
-
##
|
|
145
|
+
## अंतर्निर्मित नीतियां
|
|
146
146
|
|
|
147
|
-
|
|
|
147
|
+
| नीति | विवरण | कॉन्फ़िगरेबल |
|
|
148
148
|
|--------|-------------|:---:|
|
|
149
149
|
| `block-sudo` | एजेंट्स को विशेषाधिकार प्राप्त सिस्टम कमांड चलाने से रोकें | `allowPatterns` |
|
|
150
|
-
| `block-rm-rf` | आकस्मिक पुनरावर्ती फ़ाइल
|
|
151
|
-
| `block-curl-pipe-sh` | एजेंट्स को
|
|
152
|
-
| `block-failproofai-commands` |
|
|
153
|
-
| `sanitize-jwt` | JWT टोकन को एजेंट
|
|
154
|
-
| `sanitize-api-keys` | API
|
|
155
|
-
| `sanitize-connection-strings` | डेटाबेस क्रेडेंशियल को एजेंट
|
|
150
|
+
| `block-rm-rf` | आकस्मिक पुनरावर्ती फ़ाइल विलोपन को रोकें | `allowPaths` |
|
|
151
|
+
| `block-curl-pipe-sh` | एजेंट्स को अविश्वास्य स्क्रिप्ट को शेल में पाइप करने से रोकें | |
|
|
152
|
+
| `block-failproofai-commands` | स्व-विस्थापना को रोकें | |
|
|
153
|
+
| `sanitize-jwt` | JWT टोकन को एजेंट कॉन्टेक्स्ट में लीक होने से रोकें | |
|
|
154
|
+
| `sanitize-api-keys` | API कुंजियों को एजेंट कॉन्टेक्स्ट में लीक होने से रोकें | `additionalPatterns` |
|
|
155
|
+
| `sanitize-connection-strings` | डेटाबेस क्रेडेंशियल को एजेंट कॉन्टेक्स्ट में लीक होने से रोकें | |
|
|
156
156
|
| `sanitize-private-key-content` | आउटपुट से PEM निजी कुंजी ब्लॉक को संपादित करें | |
|
|
157
157
|
| `sanitize-bearer-tokens` | आउटपुट से Authorization Bearer टोकन को संपादित करें | |
|
|
158
|
-
| `block-env-files` | एजेंट्स को .env
|
|
158
|
+
| `block-env-files` | एजेंट्स को .env फाइलें पढ़ने से रोकें | |
|
|
159
159
|
| `protect-env-vars` | एजेंट्स को पर्यावरण चर प्रिंट करने से रोकें | |
|
|
160
|
-
| `block-read-outside-cwd` | एजेंट्स को प्रोजेक्ट सीमाओं के
|
|
161
|
-
| `block-secrets-write` | निजी कुंजी और प्रमाणपत्र
|
|
162
|
-
| `block-push-master` | मुख्य/मास्टर
|
|
160
|
+
| `block-read-outside-cwd` | एजेंट्स को प्रोजेक्ट सीमाओं के भीतर रखें | `allowPaths` |
|
|
161
|
+
| `block-secrets-write` | निजी कुंजी और प्रमाणपत्र फाइलों में लिखने को रोकें | `additionalPatterns` |
|
|
162
|
+
| `block-push-master` | मुख्य/मास्टर में आकस्मिक पुश को रोकें | `protectedBranches` |
|
|
163
163
|
| `block-work-on-main` | एजेंट्स को सुरक्षित शाखाओं से दूर रखें | `protectedBranches` |
|
|
164
164
|
| `block-force-push` | `git push --force` को रोकें | |
|
|
165
|
-
| `warn-git-amend` | कमिट संशोधित करने से पहले एजेंट्स को याद दिलाएं | |
|
|
166
|
-
| `warn-git-stash-drop` | स्टैश
|
|
165
|
+
| `warn-git-amend` | कमिट को संशोधित करने से पहले एजेंट्स को याद दिलाएं | |
|
|
166
|
+
| `warn-git-stash-drop` | स्टैश को छोड़ने से पहले एजेंट्स को याद दिलाएं | |
|
|
167
167
|
| `warn-all-files-staged` | आकस्मिक `git add -A` को पकड़ें | |
|
|
168
168
|
| `warn-destructive-sql` | DROP/DELETE SQL को निष्पादन से पहले पकड़ें | |
|
|
169
169
|
| `warn-schema-alteration` | ALTER TABLE को निष्पादन से पहले पकड़ें | |
|
|
170
170
|
| `warn-large-file-write` | अप्रत्याशित रूप से बड़ी फ़ाइल लिखने को पकड़ें | `thresholdKb` |
|
|
171
171
|
| `warn-package-publish` | आकस्मिक `npm publish` को पकड़ें | |
|
|
172
|
-
| `warn-background-process` |
|
|
173
|
-
| `warn-global-package-install` |
|
|
172
|
+
| `warn-background-process` | अनिच्छुक बैकग्राउंड प्रक्रिया लॉन्च को पकड़ें | |
|
|
173
|
+
| `warn-global-package-install` | अनिच्छुक वैश्विक पैकेज इंस्टॉल को पकड़ें | |
|
|
174
174
|
| …और अधिक | | |
|
|
175
175
|
|
|
176
|
-
पूर्ण
|
|
176
|
+
पूर्ण नीति विवरण और पैरामीटर संदर्भ: [docs/built-in-policies.mdx](docs/built-in-policies.mdx)
|
|
177
177
|
|
|
178
178
|
---
|
|
179
179
|
|
|
180
|
-
## कस्टम
|
|
180
|
+
## कस्टम नीतियां
|
|
181
181
|
|
|
182
|
-
एजेंट्स को विश्वसनीय और
|
|
182
|
+
एजेंट्स को विश्वसनीय और केंद्रित रखने के लिए अपनी स्वयं की नीतियां लिखें:
|
|
183
183
|
|
|
184
184
|
```js
|
|
185
185
|
import { customPolicies, allow, deny, instruct } from "failproofai";
|
|
186
186
|
|
|
187
187
|
customPolicies.add({
|
|
188
188
|
name: "no-production-writes",
|
|
189
|
-
description: "
|
|
189
|
+
description: "'production' युक्त पथों में लिखने को ब्लॉक करें",
|
|
190
190
|
match: { events: ["PreToolUse"] },
|
|
191
191
|
fn: async (ctx) => {
|
|
192
192
|
if (!["Write", "Edit"].includes(ctx.toolName ?? "")) return allow();
|
|
193
193
|
const path = ctx.toolInput?.file_path ?? "";
|
|
194
|
-
if (path.includes("production")) return deny("
|
|
194
|
+
if (path.includes("production")) return deny("Production पथों में लिखना ब्लॉक है");
|
|
195
195
|
return allow();
|
|
196
196
|
},
|
|
197
197
|
});
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
इंस्टॉल करें:
|
|
201
201
|
|
|
202
202
|
```bash
|
|
203
203
|
failproofai policies --install --custom ./my-policies.js
|
|
@@ -207,45 +207,45 @@ failproofai policies --install --custom ./my-policies.js
|
|
|
207
207
|
|
|
208
208
|
| फ़ंक्शन | प्रभाव |
|
|
209
209
|
|----------|--------|
|
|
210
|
-
| `allow()` | संचालन
|
|
211
|
-
| `allow(message)` | अनुमति दें और Claude को सूचनात्मक
|
|
212
|
-
| `deny(message)` | संचालन को ब्लॉक करें; Claude को दिखाया
|
|
213
|
-
| `instruct(message)` | Claude के प्रॉम्प्ट में
|
|
210
|
+
| `allow()` | संचालन की अनुमति दें |
|
|
211
|
+
| `allow(message)` | अनुमति दें और Claude को सूचनात्मक कॉन्टेक्स्ट भेजें |
|
|
212
|
+
| `deny(message)` | संचालन को ब्लॉक करें; संदेश Claude को दिखाया जाता है |
|
|
213
|
+
| `instruct(message)` | Claude के प्रॉम्प्ट में कॉन्टेक्स्ट जोड़ें; ब्लॉक नहीं करता है |
|
|
214
214
|
|
|
215
|
-
###
|
|
215
|
+
### कॉन्टेक्स्ट ऑब्जेक्ट (`ctx`)
|
|
216
216
|
|
|
217
|
-
|
|
|
217
|
+
| फील्ड | प्रकार | विवरण |
|
|
218
218
|
|-------|------|-------------|
|
|
219
219
|
| `eventType` | `string` | `"PreToolUse"`, `"PostToolUse"`, `"Notification"`, `"Stop"` |
|
|
220
|
-
| `toolName` | `string` |
|
|
220
|
+
| `toolName` | `string` | कॉल किया जा रहा टूल (`"Bash"`, `"Write"`, `"Read"`, …) |
|
|
221
221
|
| `toolInput` | `object` | टूल के इनपुट पैरामीटर |
|
|
222
|
-
| `payload` | `object` | पूर्ण कच्ची
|
|
222
|
+
| `payload` | `object` | पूर्ण कच्ची इवेंट पेलोड |
|
|
223
223
|
| `session.cwd` | `string` | Claude Code सेशन की कार्यशील निर्देशिका |
|
|
224
224
|
| `session.sessionId` | `string` | सेशन पहचानकर्ता |
|
|
225
225
|
| `session.transcriptPath` | `string` | सेशन ट्रांसक्रिप्ट फ़ाइल का पथ |
|
|
226
226
|
|
|
227
|
-
कस्टम
|
|
227
|
+
कस्टम हुक्स transitive स्थानीय इंपोर्ट, async/await, और `process.env` तक पहुंच का समर्थन करते हैं। त्रुटियां fail-open हैं (लॉग `~/.failproofai/hook.log` में, अंतर्निर्मित नीतियां जारी रहती हैं)। पूर्ण गाइड के लिए [docs/custom-hooks.mdx](docs/custom-hooks.mdx) देखें।
|
|
228
228
|
|
|
229
|
-
### सम्मेलन-आधारित
|
|
229
|
+
### सम्मेलन-आधारित नीतियां
|
|
230
230
|
|
|
231
|
-
`*policies.{js,mjs,ts}`
|
|
231
|
+
`.failproofai/policies/` में `*policies.{js,mjs,ts}` फाइलें ड्रॉप करें और वे स्वचालित रूप से लोड होती हैं — कोई फ्लैग या कॉन्फ़िग परिवर्तन की आवश्यकता नहीं। निर्देशिका को git में कमिट करें और हर टीम सदस्य को स्वचालित रूप से समान गुणवत्ता मानक मिलता है।
|
|
232
232
|
|
|
233
233
|
```text
|
|
234
|
-
# प्रोजेक्ट स्तर — git में
|
|
234
|
+
# प्रोजेक्ट स्तर — git में कमिट किया गया, टीम के साथ साझा किया गया
|
|
235
235
|
.failproofai/policies/security-policies.mjs
|
|
236
236
|
.failproofai/policies/workflow-policies.mjs
|
|
237
237
|
|
|
238
|
-
# उपयोगकर्ता स्तर — व्यक्तिगत, सभी
|
|
238
|
+
# उपयोगकर्ता स्तर — व्यक्तिगत, सभी प्रोजेक्ट्स पर लागू
|
|
239
239
|
~/.failproofai/policies/my-policies.mjs
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
दोनों स्तर लोड होते हैं (यूनियन)।
|
|
242
|
+
दोनों स्तर लोड होते हैं (यूनियन)। फाइलें प्रत्येक निर्देशिका के भीतर वर्णक्रम में लोड होती हैं। क्रम को नियंत्रित करने के लिए `01-`, `02-`, आदि से शुरुआत करें। जैसे-जैसे आपकी टीम नई विफलता मोड की खोज करती है, एक नीति जोड़ें और पुश करें — हर कोई अपने अगले pull पर अपडेट प्राप्त करता है। तैयार-उपयोग उदाहरणों के लिए [examples/convention-policies/](examples/convention-policies/) देखें।
|
|
243
243
|
|
|
244
244
|
---
|
|
245
245
|
|
|
246
246
|
## टेलीमेट्री
|
|
247
247
|
|
|
248
|
-
Failproof AI
|
|
248
|
+
Failproof AI PostHog के माध्यम से गुमनाम उपयोग टेलीमेट्री एकत्र करता है ताकि फीचर उपयोग को समझा जा सके। कोई सेशन कंटेंट, फ़ाइल नाम, टूल इनपुट, या व्यक्तिगत जानकारी कभी नहीं भेजी जाती है।
|
|
249
249
|
|
|
250
250
|
इसे अक्षम करें:
|
|
251
251
|
|
|
@@ -259,22 +259,22 @@ FAILPROOFAI_TELEMETRY_DISABLED=1 failproofai
|
|
|
259
259
|
|
|
260
260
|
| गाइड | विवरण |
|
|
261
261
|
|-------|-------------|
|
|
262
|
-
| [
|
|
263
|
-
| [
|
|
264
|
-
| [
|
|
265
|
-
| [
|
|
266
|
-
| [
|
|
267
|
-
| [
|
|
268
|
-
| [
|
|
262
|
+
| [शुरुआत करें](docs/getting-started.mdx) | इंस्टॉलेशन और पहले कदम |
|
|
263
|
+
| [अंतर्निर्मित नीतियां](docs/built-in-policies.mdx) | पैरामीटर के साथ सभी 30 अंतर्निर्मित नीतियां |
|
|
264
|
+
| [कस्टम नीतियां](docs/custom-policies.mdx) | अपनी स्वयं की नीतियां लिखें |
|
|
265
|
+
| [कॉन्फ़िगरेशन](docs/configuration.mdx) | कॉन्फ़िग फ़ाइल प्रारूप और स्कोप विलय |
|
|
266
|
+
| [डैशबोर्ड](docs/dashboard.mdx) | सेशन की निगरानी करें और नीति गतिविधि की समीक्षा करें |
|
|
267
|
+
| [आर्किटेक्चर](docs/architecture.mdx) | हुक सिस्टम कैसे काम करता है |
|
|
268
|
+
| [परीक्षण](docs/testing.mdx) | परीक्षण चलाएं और नए परीक्षण लिखें |
|
|
269
269
|
|
|
270
|
-
### दस्तावेज़ स्थानीय रूप से चलाएं
|
|
270
|
+
### दस्तावेज़ को स्थानीय रूप से चलाएं
|
|
271
271
|
|
|
272
272
|
```bash
|
|
273
273
|
docker build -f Dockerfile.docs -t failproofai-docs .
|
|
274
274
|
docker run --rm -p 3000:3000 failproofai-docs
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
`http://localhost:3000` पर Mintlify दस्तावेज़ साइट खोलता है। यदि आप दस्तावेज़ निर्देशिका
|
|
277
|
+
`http://localhost:3000` पर Mintlify दस्तावेज़ साइट खोलता है। यदि आप दस्तावेज़ निर्देशिका माउंट करते हैं तो कंटेनर परिवर्तनों को देखता है:
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
280
|
docker run --rm -p 3000:3000 -v $(pwd)/docs:/app/docs failproofai-docs
|
|
@@ -284,9 +284,9 @@ docker run --rm -p 3000:3000 -v $(pwd)/docs:/app/docs failproofai-docs
|
|
|
284
284
|
|
|
285
285
|
## failproofai योगदानकर्ताओं के लिए नोट
|
|
286
286
|
|
|
287
|
-
इस
|
|
287
|
+
इस रिपो का `.claude/settings.json` मानक `npx -y failproofai` कमांड के बजाय `bun ./bin/failproofai.mjs --hook <EventType>` का उपयोग करता है। ऐसा इसलिए है क्योंकि failproofai प्रोजेक्ट के भीतर `npx -y failproofai` चलाने से एक स्व-संदर्भित संघर्ष बनता है।
|
|
288
288
|
|
|
289
|
-
अन्य सभी
|
|
289
|
+
अन्य सभी रिपो के लिए, अनुशंसित दृष्टिकोण है `npx -y failproofai`, जो के माध्यम से स्थापित किया जाता है:
|
|
290
290
|
|
|
291
291
|
```bash
|
|
292
292
|
failproofai policies --install --scope project
|
|
@@ -304,4 +304,4 @@ failproofai policies --install --scope project
|
|
|
304
304
|
|
|
305
305
|
---
|
|
306
306
|
|
|
307
|
-
**ExosphereHost
|
|
307
|
+
**ExosphereHost द्वारा निर्मित और बनाए रखा: आपके एजेंट्स के लिए विश्वसनीयता अनुसंधान प्रयोगशाला**। हम उद्यमों और स्टार्टअप्स को अपने एजेंट्स, सॉफ़्टवेयर और विशेषज्ञता के माध्यम से अपने AI एजेंट्स की विश्वसनीयता में सुधार करने में मदद करते हैं। [exosphere.host](https://exosphere.host) पर और जानें।
|