failproofai 0.0.5 → 0.0.6-beta.1
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 +112 -0
- package/.next/standalone/.failproofai/policies/workflow-policies.mjs +2 -1
- 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 +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/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 +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/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 +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/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/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]__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]__0okos0k._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0a~g15g._.js → [root-of-the-server]__0rh.18_._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0w6l33k._.js +6 -6
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0qn95h3._.js → [root-of-the-server]__0~kmh8w._.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 +5 -5
- 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/{0sme4lkv.tgn-.js → 01b~z8f1ws0rk.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0lgbwkfqmnsmc.js → 03rz6ykw-a2xi.js} +1 -1
- package/.next/standalone/.next/static/chunks/{17manv47o-~wp.js → 08t08igdql9yt.js} +1 -1
- package/.next/standalone/.next/static/chunks/09_k80d~cq2wg.js +4 -0
- package/.next/standalone/.next/static/chunks/{0ksdlt_1hucdm.js → 0bvhsa6zva2o..js} +1 -1
- package/.next/standalone/.next/static/chunks/{09ikntpt2-o9b.js → 0gbf4cphy8ksq.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0yumumfzx_f27.js → 0v.yd0kg_ld3r.js} +1 -1
- package/.next/standalone/.next/static/chunks/{13juklu.vksks.js → 0wlyoif4_kj_t.js} +1 -1
- package/.next/standalone/.next/static/chunks/{09e7drilkf1sn.js → 12simlrcfk3g2.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0em7tspi4kylh.js → 12~yi9oj8av8p.js} +2 -2
- package/.next/standalone/.next/static/chunks/{turbopack-0r26pc8h0y_-e.js → turbopack-0o7k.hakttp4k.js} +1 -1
- package/.next/standalone/CHANGELOG.md +13 -0
- package/.next/standalone/README.md +2 -2
- package/.next/standalone/bun.lock +43 -85
- package/.next/standalone/dist/cli.mjs +107 -3
- package/.next/standalone/docs/ar/architecture.mdx +65 -64
- package/.next/standalone/docs/ar/configuration.mdx +42 -42
- package/.next/standalone/docs/ar/custom-policies.mdx +62 -64
- package/.next/standalone/docs/built-in-policies.mdx +37 -0
- package/.next/standalone/docs/custom-policies.mdx +1 -1
- package/.next/standalone/docs/de/architecture.mdx +92 -92
- package/.next/standalone/docs/de/configuration.mdx +34 -34
- package/.next/standalone/docs/de/custom-policies.mdx +49 -50
- package/.next/standalone/docs/es/architecture.mdx +72 -72
- package/.next/standalone/docs/es/configuration.mdx +25 -25
- package/.next/standalone/docs/es/custom-policies.mdx +48 -49
- package/.next/standalone/docs/examples.mdx +54 -0
- package/.next/standalone/docs/fr/architecture.mdx +53 -53
- package/.next/standalone/docs/fr/configuration.mdx +25 -25
- package/.next/standalone/docs/fr/custom-policies.mdx +42 -43
- package/.next/standalone/docs/getting-started.mdx +52 -0
- package/.next/standalone/docs/he/architecture.mdx +66 -66
- package/.next/standalone/docs/he/configuration.mdx +53 -52
- package/.next/standalone/docs/he/custom-policies.mdx +72 -73
- package/.next/standalone/docs/hi/architecture.mdx +106 -106
- package/.next/standalone/docs/hi/configuration.mdx +39 -39
- package/.next/standalone/docs/hi/custom-policies.mdx +75 -76
- package/.next/standalone/docs/i18n/README.ar.md +66 -66
- package/.next/standalone/docs/i18n/README.de.md +38 -38
- package/.next/standalone/docs/i18n/README.es.md +38 -38
- package/.next/standalone/docs/i18n/README.fr.md +42 -42
- package/.next/standalone/docs/i18n/README.he.md +67 -67
- package/.next/standalone/docs/i18n/README.hi.md +70 -70
- package/.next/standalone/docs/i18n/README.it.md +62 -62
- package/.next/standalone/docs/i18n/README.ja.md +54 -54
- package/.next/standalone/docs/i18n/README.ko.md +58 -58
- package/.next/standalone/docs/i18n/README.pt-br.md +43 -43
- package/.next/standalone/docs/i18n/README.ru.md +69 -69
- package/.next/standalone/docs/i18n/README.tr.md +76 -76
- package/.next/standalone/docs/i18n/README.vi.md +70 -70
- package/.next/standalone/docs/i18n/README.zh.md +52 -52
- package/.next/standalone/docs/it/architecture.mdx +54 -53
- package/.next/standalone/docs/it/configuration.mdx +44 -45
- package/.next/standalone/docs/it/custom-policies.mdx +76 -78
- package/.next/standalone/docs/ja/architecture.mdx +93 -93
- package/.next/standalone/docs/ja/configuration.mdx +47 -47
- package/.next/standalone/docs/ja/custom-policies.mdx +62 -63
- package/.next/standalone/docs/ko/architecture.mdx +66 -66
- package/.next/standalone/docs/ko/configuration.mdx +35 -35
- package/.next/standalone/docs/ko/custom-policies.mdx +71 -72
- package/.next/standalone/docs/pt-br/architecture.mdx +55 -55
- package/.next/standalone/docs/pt-br/configuration.mdx +35 -35
- package/.next/standalone/docs/pt-br/custom-policies.mdx +60 -61
- package/.next/standalone/docs/ru/architecture.mdx +59 -60
- package/.next/standalone/docs/ru/configuration.mdx +52 -53
- package/.next/standalone/docs/ru/custom-policies.mdx +68 -69
- package/.next/standalone/docs/tr/architecture.mdx +124 -124
- package/.next/standalone/docs/tr/configuration.mdx +45 -46
- package/.next/standalone/docs/tr/custom-policies.mdx +75 -75
- package/.next/standalone/docs/vi/architecture.mdx +65 -64
- package/.next/standalone/docs/vi/configuration.mdx +41 -41
- package/.next/standalone/docs/vi/custom-policies.mdx +68 -69
- package/.next/standalone/docs/zh/architecture.mdx +67 -67
- package/.next/standalone/docs/zh/configuration.mdx +34 -34
- package/.next/standalone/docs/zh/custom-policies.mdx +53 -54
- package/.next/standalone/node_modules/@next/env/package.json +1 -1
- package/.next/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/.next/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +7 -7
- package/.next/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/.next/standalone/node_modules/next/dist/server/config-schema.js +10 -2
- package/.next/standalone/node_modules/next/dist/server/config.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
- package/.next/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/.next/standalone/node_modules/next/dist/server/render.js +27 -20
- package/.next/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/.next/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/.next/standalone/node_modules/next/package.json +15 -15
- package/.next/standalone/package.json +2 -2
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/src/hooks/builtin-policies.ts +131 -0
- package/README.md +2 -2
- package/dist/cli.mjs +107 -3
- package/package.json +2 -2
- package/src/hooks/builtin-policies.ts +131 -0
- package/.next/standalone/.next/static/chunks/0_yayar~bpphd.js +0 -4
- /package/.next/standalone/.next/static/{hYQM6iCWnF1W5XDpsIRhV → CkmOT-ZvDN-sVULinGVKT}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{hYQM6iCWnF1W5XDpsIRhV → CkmOT-ZvDN-sVULinGVKT}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{hYQM6iCWnF1W5XDpsIRhV → CkmOT-ZvDN-sVULinGVKT}/_ssgManifest.js +0 -0
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
|
|
24
24
|
**Çeviriler**: [简体中文](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 aracılarınızı güvenilir, odaklanmış ve özerk olarak çalıştırmanızı sağlayan politikaları yönetmenin en kolay yolu - **Claude Code** ve **Agents SDK** için.
|
|
27
27
|
|
|
28
|
-
- **30
|
|
29
|
-
- **Özel Politikalar** - JavaScript'te kendi güvenilirlik kurallarınızı yazın. Kuralları
|
|
30
|
-
- **Kolay Yapılandırma** - Herhangi bir politikayı kod yazmadan ayarlayın. İzin
|
|
31
|
-
- **Ajan İzleyici** -
|
|
28
|
+
- **30 Hazır Politika** - Hemen kullanıma hazır yaygın ajan başarısızlık durumlarını yakalayın. Zararlı komutları engelleyin, gizli sızıntılarını önleyin, ajanları proje sınırları içinde tutun, döngüleri algılayın ve daha fazlası.
|
|
29
|
+
- **Özel Politikalar** - JavaScript'te kendi güvenilirlik kurallarınızı yazın. Kuralları uygulamak, değişimi önlemek, işlemleri kontrol etmek veya harici sistemlerle entegre olmak için `allow`/`deny`/`instruct` API'sini kullanın.
|
|
30
|
+
- **Kolay Yapılandırma** - Herhangi bir politikayı kod yazmadan ayarlayın. İzin listeleri, korunan dallar, eşikler projeye veya global olarak ayarlayın. Üç kapsam yapılandırması otomatik olarak birleşir.
|
|
31
|
+
- **Ajan İzleyici** - Aracılarınız yokken ne yaptığını görün. Oturumları tarayın, her araç çağrısını inceleyin ve politikaların tam olarak nerede etkinleştiğini gözden geçirin.
|
|
32
32
|
|
|
33
|
-
Her şey yerel olarak çalışır - hiçbir veri
|
|
33
|
+
Her şey yerel olarak çalışır - hiçbir veri makinenizden çıkmaz.
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
37
37
|
## Gereksinimler
|
|
38
38
|
|
|
39
39
|
- Node.js >= 20.9.0
|
|
40
|
-
- Bun >= 1.3.0 (isteğe bağlı - yalnızca geliştirme /
|
|
40
|
+
- Bun >= 1.3.0 (isteğe bağlı - yalnızca geliştirme / kaynak koddan derleme için gerekli)
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
##
|
|
44
|
+
## Yükle
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
47
|
npm install -g failproofai
|
|
@@ -53,23 +53,23 @@ bun add -g failproofai
|
|
|
53
53
|
|
|
54
54
|
## Hızlı başlangıç
|
|
55
55
|
|
|
56
|
-
### 1. Politikaları
|
|
56
|
+
### 1. Politikaları global olarak etkinleştir
|
|
57
57
|
|
|
58
58
|
```bash
|
|
59
59
|
failproofai policies --install
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
`~/.claude/settings.json` dosyasına
|
|
62
|
+
`~/.claude/settings.json` dosyasına kancaya girişler yazar. Claude Code artık her araç çağrısından önce ve sonra failproofai'ı çağıracaktır.
|
|
63
63
|
|
|
64
|
-
### 2.
|
|
64
|
+
### 2. Panoyu başlat
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
67
|
failproofai
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
`http://localhost:8020` açılır - oturumları
|
|
70
|
+
`http://localhost:8020` açılır - oturumları tarayın, günlükleri inceleyin, politikaları yönetin.
|
|
71
71
|
|
|
72
|
-
### 3.
|
|
72
|
+
### 3. Aktif olanları kontrol et
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
75
|
failproofai policies
|
|
@@ -82,18 +82,18 @@ failproofai policies
|
|
|
82
82
|
### Kapsamlar
|
|
83
83
|
|
|
84
84
|
| Kapsam | Komut | Nereye yazar |
|
|
85
|
-
|
|
86
|
-
|
|
|
85
|
+
|--------|-------|--------------|
|
|
86
|
+
| Global (varsayılan) | `failproofai policies --install` | `~/.claude/settings.json` |
|
|
87
87
|
| Proje | `failproofai policies --install --scope project` | `.claude/settings.json` |
|
|
88
88
|
| Yerel | `failproofai policies --install --scope local` | `.claude/settings.local.json` |
|
|
89
89
|
|
|
90
|
-
### Belirli politikaları
|
|
90
|
+
### Belirli politikaları kur
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
failproofai policies --install block-sudo block-rm-rf sanitize-api-keys
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
### Politikaları
|
|
96
|
+
### Politikaları kaldır
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
99
|
failproofai policies --uninstall
|
|
@@ -105,7 +105,7 @@ failproofai policies --uninstall --scope project
|
|
|
105
105
|
|
|
106
106
|
## Yapılandırma
|
|
107
107
|
|
|
108
|
-
Politika yapılandırması `~/.failproofai/policies-config.json`
|
|
108
|
+
Politika yapılandırması `~/.failproofai/policies-config.json` (global) veya projenizdeki `.failproofai/policies-config.json` (proje başına) içinde bulunur.
|
|
109
109
|
|
|
110
110
|
```json
|
|
111
111
|
{
|
|
@@ -120,7 +120,7 @@ Politika yapılandırması `~/.failproofai/policies-config.json` dosyasında (k
|
|
|
120
120
|
"policyParams": {
|
|
121
121
|
"block-sudo": {
|
|
122
122
|
"allowPatterns": ["sudo systemctl status", "sudo journalctl"],
|
|
123
|
-
"hint": "
|
|
123
|
+
"hint": "Sudo olmadan apt-get'i doğrudan kullanın."
|
|
124
124
|
},
|
|
125
125
|
"block-push-master": {
|
|
126
126
|
"protectedBranches": ["main", "release", "prod"],
|
|
@@ -128,7 +128,7 @@ Politika yapılandırması `~/.failproofai/policies-config.json` dosyasında (k
|
|
|
128
128
|
},
|
|
129
129
|
"sanitize-api-keys": {
|
|
130
130
|
"additionalPatterns": [
|
|
131
|
-
{ "regex": "myco_[A-Za-z0-9]{32}", "label": "MyCo API
|
|
131
|
+
{ "regex": "myco_[A-Za-z0-9]{32}", "label": "MyCo API key" }
|
|
132
132
|
]
|
|
133
133
|
},
|
|
134
134
|
"warn-large-file-write": {
|
|
@@ -138,39 +138,39 @@ Politika yapılandırması `~/.failproofai/policies-config.json` dosyasında (k
|
|
|
138
138
|
}
|
|
139
139
|
```
|
|
140
140
|
|
|
141
|
-
**Üç
|
|
141
|
+
**Üç yapılandırma kapsamı** otomatik olarak birleştirilir (proje → yerel → global). Tam birleştirme kuralları için [docs/configuration.mdx](docs/configuration.mdx) bölümüne bakın.
|
|
142
142
|
|
|
143
143
|
---
|
|
144
144
|
|
|
145
|
-
##
|
|
145
|
+
## Hazır politikalar
|
|
146
146
|
|
|
147
147
|
| Politika | Açıklama | Yapılandırılabilir |
|
|
148
148
|
|----------|----------|:---:|
|
|
149
|
-
| `block-sudo` | Ajanları ayrıcalıklı sistem komutlarını çalıştırmaktan
|
|
150
|
-
| `block-rm-rf` |
|
|
151
|
-
| `block-curl-pipe-sh` | Ajanları
|
|
152
|
-
| `block-failproofai-commands` | Kendi
|
|
153
|
-
| `sanitize-jwt` | JWT
|
|
149
|
+
| `block-sudo` | Ajanları ayrıcalıklı sistem komutlarını çalıştırmaktan önle | `allowPatterns` |
|
|
150
|
+
| `block-rm-rf` | Tesadüfi özyinelemeli dosya silmeyi önle | `allowPaths` |
|
|
151
|
+
| `block-curl-pipe-sh` | Ajanları güvenilmez betikleri shell'e yönlendirmekten önle | |
|
|
152
|
+
| `block-failproofai-commands` | Kendi kendine kaldırılmayı önle | |
|
|
153
|
+
| `sanitize-jwt` | JWT jetonlarının ajan bağlamına sızmasını durdur | |
|
|
154
154
|
| `sanitize-api-keys` | API anahtarlarının ajan bağlamına sızmasını durdur | `additionalPatterns` |
|
|
155
155
|
| `sanitize-connection-strings` | Veritabanı kimlik bilgilerinin ajan bağlamına sızmasını durdur | |
|
|
156
|
-
| `sanitize-private-key-content` |
|
|
157
|
-
| `sanitize-bearer-tokens` | Authorization Bearer
|
|
158
|
-
| `block-env-files` | Ajanları .env dosyalarını okumaktan
|
|
159
|
-
| `protect-env-vars` | Ajanları ortam değişkenlerini yazdırmaktan
|
|
160
|
-
| `block-read-outside-cwd` | Ajanları proje sınırları içinde
|
|
161
|
-
| `block-secrets-write` | Özel anahtar ve sertifika dosyalarına
|
|
162
|
-
| `block-push-master` |
|
|
163
|
-
| `block-work-on-main` | Ajanları
|
|
164
|
-
| `block-force-push` | `git push --force`
|
|
165
|
-
| `warn-git-amend` | Ajanları commit
|
|
166
|
-
| `warn-git-stash-drop` | Ajanları stash
|
|
167
|
-
| `warn-all-files-staged` |
|
|
168
|
-
| `warn-destructive-sql` | DROP/DELETE SQL'
|
|
169
|
-
| `warn-schema-alteration` | ALTER TABLE'ı
|
|
170
|
-
| `warn-large-file-write` | Beklenmedik
|
|
171
|
-
| `warn-package-publish` |
|
|
172
|
-
| `warn-background-process` | Istenmeyen arka plan
|
|
173
|
-
| `warn-global-package-install` | Istenmeyen
|
|
156
|
+
| `sanitize-private-key-content` | PEM özel anahtar bloklarını çıktıdan gizle | |
|
|
157
|
+
| `sanitize-bearer-tokens` | Çıktıdan Authorization Bearer jetonlarını gizle | |
|
|
158
|
+
| `block-env-files` | Ajanları .env dosyalarını okumaktan tutun | |
|
|
159
|
+
| `protect-env-vars` | Ajanları ortam değişkenlerini yazdırmaktan önle | |
|
|
160
|
+
| `block-read-outside-cwd` | Ajanları proje sınırları içinde tutun | `allowPaths` |
|
|
161
|
+
| `block-secrets-write` | Özel anahtar ve sertifika dosyalarına yazıları önle | `additionalPatterns` |
|
|
162
|
+
| `block-push-master` | Main/master'a tesadüfi itmeleri önle | `protectedBranches` |
|
|
163
|
+
| `block-work-on-main` | Ajanları korunan dallardan uzak tutun | `protectedBranches` |
|
|
164
|
+
| `block-force-push` | `git push --force`'u önle | |
|
|
165
|
+
| `warn-git-amend` | Ajanları commit değiştirmeden önce uyar | |
|
|
166
|
+
| `warn-git-stash-drop` | Ajanları stash bırakmadan önce uyar | |
|
|
167
|
+
| `warn-all-files-staged` | Tesadüfi `git add -A`'yı yakala | |
|
|
168
|
+
| `warn-destructive-sql` | DROP/DELETE SQL'ini yürütmeden önce yakala | |
|
|
169
|
+
| `warn-schema-alteration` | ALTER TABLE'ı yürütmeden önce yakala | |
|
|
170
|
+
| `warn-large-file-write` | Beklenmedik boyutta dosya yazılarını yakala | `thresholdKb` |
|
|
171
|
+
| `warn-package-publish` | Tesadüfi `npm publish`'i yakala | |
|
|
172
|
+
| `warn-background-process` | Istenmeyen arka plan işlem başlatmalarını yakala | |
|
|
173
|
+
| `warn-global-package-install` | Istenmeyen global paket kurulumlarını yakala | |
|
|
174
174
|
| …ve daha fazlası | | |
|
|
175
175
|
|
|
176
176
|
Tam politika ayrıntıları ve parametre referansı: [docs/built-in-policies.mdx](docs/built-in-policies.mdx)
|
|
@@ -179,25 +179,25 @@ Tam politika ayrıntıları ve parametre referansı: [docs/built-in-policies.mdx
|
|
|
179
179
|
|
|
180
180
|
## Özel politikalar
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
Ajanları güvenilir ve odaklanmış tutmak için kendi politikalarınızı yazın:
|
|
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: "Block writes to paths containing '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("Writes to production paths are blocked");
|
|
195
195
|
return allow();
|
|
196
196
|
},
|
|
197
197
|
});
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
Bunu kurarak yükleyin:
|
|
201
201
|
|
|
202
202
|
```bash
|
|
203
203
|
failproofai policies --install --custom ./my-policies.js
|
|
@@ -208,46 +208,46 @@ failproofai policies --install --custom ./my-policies.js
|
|
|
208
208
|
| İşlev | Etki |
|
|
209
209
|
|-------|------|
|
|
210
210
|
| `allow()` | İşleme izin ver |
|
|
211
|
-
| `allow(message)` | İzin ver ve
|
|
211
|
+
| `allow(message)` | İzin ver ve Claude'a bilgisel bağlam gönder |
|
|
212
212
|
| `deny(message)` | İşlemi engelle; ileti Claude'a gösterilir |
|
|
213
|
-
| `instruct(message)` | Claude'un istemine bağlam ekle; engelleme
|
|
213
|
+
| `instruct(message)` | Claude'un istemine bağlam ekle; engelleme |
|
|
214
214
|
|
|
215
215
|
### Bağlam nesnesi (`ctx`)
|
|
216
216
|
|
|
217
217
|
| Alan | Tür | Açıklama |
|
|
218
|
-
|
|
218
|
+
|------|-----|----------|
|
|
219
219
|
| `eventType` | `string` | `"PreToolUse"`, `"PostToolUse"`, `"Notification"`, `"Stop"` |
|
|
220
220
|
| `toolName` | `string` | Çağrılan araç (`"Bash"`, `"Write"`, `"Read"`, …) |
|
|
221
221
|
| `toolInput` | `object` | Aracın giriş parametreleri |
|
|
222
|
-
| `payload` | `object` | Tam ham
|
|
222
|
+
| `payload` | `object` | Tam ham etkinlik yükü |
|
|
223
223
|
| `session.cwd` | `string` | Claude Code oturumunun çalışma dizini |
|
|
224
224
|
| `session.sessionId` | `string` | Oturum tanımlayıcısı |
|
|
225
|
-
| `session.transcriptPath` | `string` | Oturum
|
|
225
|
+
| `session.transcriptPath` | `string` | Oturum transkrip dosyasının yolu |
|
|
226
226
|
|
|
227
|
-
Özel
|
|
227
|
+
Özel kancalar geçişli yerel içe aktarmaları, async/await ve `process.env` erişimini destekler. Hatalar başarısız-açık şekilde işlenir (günlükleri `~/.failproofai/hook.log`'a kaydedilir, hazır politikalar devam eder). Tam rehber için [docs/custom-hooks.mdx](docs/custom-hooks.mdx) bölümüne bakın.
|
|
228
228
|
|
|
229
|
-
###
|
|
229
|
+
### Kurala dayalı politikalar
|
|
230
230
|
|
|
231
|
-
`*policies.{js,mjs,ts}` dosyalarını `.failproofai/policies/`
|
|
231
|
+
`*policies.{js,mjs,ts}` dosyalarını `.failproofai/policies/` içine bırakın ve otomatik olarak yüklenir — `--custom` bayrağına veya yapılandırma değişikliklerine ihtiyaç yok. Git kancaları gibi çalışır: dosya bırak, işte oldu.
|
|
232
232
|
|
|
233
233
|
```text
|
|
234
|
-
# Proje seviyesi — git'e
|
|
234
|
+
# Proje seviyesi — git'e işlenir, takımla paylaşılır
|
|
235
235
|
.failproofai/policies/security-policies.mjs
|
|
236
236
|
.failproofai/policies/workflow-policies.mjs
|
|
237
237
|
|
|
238
|
-
# Kullanıcı seviyesi — kişisel, tüm
|
|
238
|
+
# Kullanıcı seviyesi — kişisel, tüm projeler için geçerli
|
|
239
239
|
~/.failproofai/policies/my-policies.mjs
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
Her iki seviye de yüklenir (birleşim). Dosyalar her dizin içinde alfabetik olarak yüklenir. Sırayı kontrol etmek için `01-`, `02
|
|
242
|
+
Her iki seviye de yüklenir (birleşim). Dosyalar her dizin içinde alfabetik olarak yüklenir. Sırayı kontrol etmek için `01-`, `02-` vb. ile ön ek yapın. Kullanıma hazır örnekler için [examples/convention-policies/](examples/convention-policies/) bölümüne bakın.
|
|
243
243
|
|
|
244
244
|
---
|
|
245
245
|
|
|
246
246
|
## Telemetri
|
|
247
247
|
|
|
248
|
-
Failproof AI, özellik kullanımını anlamak için PostHog aracılığıyla anonim kullanım telemetrisi toplar. Oturum içeriği, dosya adları, araç
|
|
248
|
+
Failproof AI, özellik kullanımını anlamak için PostHog aracılığıyla anonim kullanım telemetrisi toplar. Oturum içeriği, dosya adları, araç girişleri veya kişisel bilgiler asla gönderilmez.
|
|
249
249
|
|
|
250
|
-
Devre dışı
|
|
250
|
+
Devre dışı bırak:
|
|
251
251
|
|
|
252
252
|
```bash
|
|
253
253
|
FAILPROOFAI_TELEMETRY_DISABLED=1 failproofai
|
|
@@ -259,22 +259,22 @@ FAILPROOFAI_TELEMETRY_DISABLED=1 failproofai
|
|
|
259
259
|
|
|
260
260
|
| Rehber | Açıklama |
|
|
261
261
|
|--------|----------|
|
|
262
|
-
| [
|
|
263
|
-
| [
|
|
264
|
-
| [Özel Politikalar](docs/custom-policies.mdx) | Kendi
|
|
265
|
-
| [Yapılandırma](docs/configuration.mdx) |
|
|
266
|
-
| [
|
|
267
|
-
| [Mimari](docs/architecture.mdx) |
|
|
268
|
-
| [Test Etme](docs/testing.mdx) | Testleri
|
|
262
|
+
| [Başlarken](docs/getting-started.mdx) | Kurulum ve ilk adımlar |
|
|
263
|
+
| [Hazır Politikalar](docs/built-in-policies.mdx) | Tüm 30 hazır politika ve parametreleri |
|
|
264
|
+
| [Özel Politikalar](docs/custom-policies.mdx) | Kendi politikalarını yaz |
|
|
265
|
+
| [Yapılandırma](docs/configuration.mdx) | Yapılandırma dosya biçimi ve kapsam birleştirme |
|
|
266
|
+
| [Panel](docs/dashboard.mdx) | Oturumları izle ve politika aktivitesini gözden geçir |
|
|
267
|
+
| [Mimari](docs/architecture.mdx) | Kanva sisteminin nasıl çalıştığı |
|
|
268
|
+
| [Test Etme](docs/testing.mdx) | Testleri çalıştırma ve yenilerini yazma |
|
|
269
269
|
|
|
270
|
-
### Belgeleri yerel olarak
|
|
270
|
+
### Belgeleri yerel olarak çalıştır
|
|
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
|
-
Mintlify belgeler sitesini `http://localhost:3000` adresinde açar. Belgeler dizinini bağlarsanız
|
|
277
|
+
Mintlify belgeler sitesini `http://localhost:3000` adresinde açar. Belgeler dizinini bağlarsanız konteyner değişiklikleri izler:
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
280
|
docker run --rm -p 3000:3000 -v $(pwd)/docs:/app/docs failproofai-docs
|
|
@@ -282,17 +282,17 @@ docker run --rm -p 3000:3000 -v $(pwd)/docs:/app/docs failproofai-docs
|
|
|
282
282
|
|
|
283
283
|
---
|
|
284
284
|
|
|
285
|
-
## failproofai
|
|
285
|
+
## failproofai katılımcıları için not
|
|
286
286
|
|
|
287
|
-
Bu deponun `.claude/settings.json` dosyası standart `npx -y failproofai`
|
|
287
|
+
Bu deponun `.claude/settings.json` dosyası standart `npx -y failproofai` komutunun yerine `bun ./bin/failproofai.mjs --hook <EventType>` kullanır. Bunun nedeni failproofai projesi içinde `npx -y failproofai`'ı çalıştırmanın kendi kendine referanslı bir çatışma oluşturmasıdır.
|
|
288
288
|
|
|
289
|
-
Diğer tüm depolar için önerilen yaklaşım `npx -y failproofai`
|
|
289
|
+
Diğer tüm depolar için önerilen yaklaşım `npx -y failproofai`'dır ve şu şekilde kurulur:
|
|
290
290
|
|
|
291
291
|
```bash
|
|
292
292
|
failproofai policies --install --scope project
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
-
## Katkıda
|
|
295
|
+
## Katkıda bulun
|
|
296
296
|
|
|
297
297
|
Bkz. [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
298
298
|
|
|
@@ -304,5 +304,5 @@ Bkz. [LICENSE](LICENSE).
|
|
|
304
304
|
|
|
305
305
|
---
|
|
306
306
|
|
|
307
|
-
**ExosphereHost:
|
|
307
|
+
**ExosphereHost: Agents için Güvenilirlik Araştırma Laboratuvarı** tarafından inşa edilmiş ve yönetilmektedir. İşletmelerin ve startupların AI ajanlarının güvenilirliğini kendi ajanları, yazılımı ve uzmanlığı aracılığıyla geliştirmelerine yardımcı oluyoruz. [exosphere.host](https://exosphere.host) adresinde daha fazla bilgi edinin.
|
|
308
308
|
```
|