failproofai 0.0.6-beta.2 → 0.0.6-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +7 -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 +17 -17
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +17 -17
- 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 +11 -11
- 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 +2 -2
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +16 -16
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +16 -16
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +11 -11
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +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/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]__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]__0i5kvry._.js → [root-of-the-server]__0om-5pe._.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]__05akje6._.js → [root-of-the-server]__111.vxi._.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/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_0mebn66._.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/{05j1px0r8yzh6.js → 02dqjyv6_9mhq.js} +2 -2
- package/.next/standalone/.next/static/chunks/{14cl9poem30dq.js → 070orfsl6.xal.js} +1 -1
- package/.next/standalone/.next/static/chunks/0mir9jdxn35~s.css +1 -0
- package/.next/standalone/.next/static/chunks/{00j0rr7rh8ef8.js → 0o547jv-k_k35.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0ijk_kek9_wyx.js → 0pk2h2.mjxy.m.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0xpl.oscrakvx.js → 0rcwkbh24w38b.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1052sguyd-.ka.js → 140xx_tfr~lm_.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0npb~873.wvg3.js → 169_e4dq~1~b6.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0badv41uxa56..js → 17ne4p.1sw1jy.js} +1 -1
- package/.next/standalone/next.config.ts +6 -0
- package/.next/standalone/package.json +2 -2
- package/.next/standalone/server.js +1 -1
- package/bin/failproofai.mjs +91 -4
- package/dist/cli.mjs +1155 -54
- package/package.json +2 -2
- package/scripts/prune-standalone.mjs +128 -0
- 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 +22 -20
- 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/.claude/settings.json +0 -316
- package/.next/standalone/.failproofai/policies/review-policies.mjs +0 -113
- package/.next/standalone/.failproofai/policies/workflow-policies.mjs +0 -63
- package/.next/standalone/.failproofai/policies-config.json +0 -39
- package/.next/standalone/.next/static/chunks/0gu_a.a80ritd.css +0 -1
- package/.next/standalone/AGENTS.md +0 -80
- package/.next/standalone/CHANGELOG.md +0 -151
- package/.next/standalone/CLAUDE.md +0 -165
- package/.next/standalone/CONTRIBUTING.md +0 -76
- package/.next/standalone/Dockerfile.docs +0 -12
- package/.next/standalone/LICENSE +0 -42
- package/.next/standalone/README.md +0 -301
- package/.next/standalone/bin/failproofai.mjs +0 -352
- package/.next/standalone/bun.lock +0 -1119
- package/.next/standalone/components.json +0 -23
- package/.next/standalone/dist/cli.mjs +0 -3595
- package/.next/standalone/dist/index.js +0 -80
- package/.next/standalone/docs/ar/architecture.mdx +0 -334
- package/.next/standalone/docs/ar/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/ar/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/ar/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/ar/cli/hook.mdx +0 -31
- package/.next/standalone/docs/ar/cli/install-policies.mdx +0 -48
- package/.next/standalone/docs/ar/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/ar/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/ar/cli/version.mdx +0 -13
- package/.next/standalone/docs/ar/configuration.mdx +0 -223
- package/.next/standalone/docs/ar/custom-policies.mdx +0 -354
- package/.next/standalone/docs/ar/dashboard.mdx +0 -142
- package/.next/standalone/docs/ar/examples.mdx +0 -307
- package/.next/standalone/docs/ar/for-agents.mdx +0 -39
- package/.next/standalone/docs/ar/getting-started.mdx +0 -187
- package/.next/standalone/docs/ar/introduction.mdx +0 -58
- package/.next/standalone/docs/ar/package-aliases.mdx +0 -82
- package/.next/standalone/docs/ar/testing.mdx +0 -261
- package/.next/standalone/docs/architecture.mdx +0 -332
- package/.next/standalone/docs/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/cli/hook.mdx +0 -30
- package/.next/standalone/docs/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/cli/version.mdx +0 -12
- package/.next/standalone/docs/configuration.mdx +0 -222
- package/.next/standalone/docs/custom-policies.mdx +0 -353
- package/.next/standalone/docs/dashboard.mdx +0 -142
- package/.next/standalone/docs/de/architecture.mdx +0 -332
- package/.next/standalone/docs/de/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/de/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/de/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/de/cli/hook.mdx +0 -30
- package/.next/standalone/docs/de/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/de/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/de/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/de/cli/version.mdx +0 -12
- package/.next/standalone/docs/de/configuration.mdx +0 -222
- package/.next/standalone/docs/de/custom-policies.mdx +0 -353
- package/.next/standalone/docs/de/dashboard.mdx +0 -142
- package/.next/standalone/docs/de/examples.mdx +0 -307
- package/.next/standalone/docs/de/for-agents.mdx +0 -38
- package/.next/standalone/docs/de/getting-started.mdx +0 -186
- package/.next/standalone/docs/de/introduction.mdx +0 -57
- package/.next/standalone/docs/de/package-aliases.mdx +0 -82
- package/.next/standalone/docs/de/testing.mdx +0 -260
- package/.next/standalone/docs/docs.json +0 -1002
- package/.next/standalone/docs/es/architecture.mdx +0 -332
- package/.next/standalone/docs/es/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/es/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/es/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/es/cli/hook.mdx +0 -30
- package/.next/standalone/docs/es/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/es/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/es/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/es/cli/version.mdx +0 -12
- package/.next/standalone/docs/es/configuration.mdx +0 -222
- package/.next/standalone/docs/es/custom-policies.mdx +0 -353
- package/.next/standalone/docs/es/dashboard.mdx +0 -142
- package/.next/standalone/docs/es/examples.mdx +0 -307
- package/.next/standalone/docs/es/for-agents.mdx +0 -38
- package/.next/standalone/docs/es/getting-started.mdx +0 -186
- package/.next/standalone/docs/es/introduction.mdx +0 -57
- package/.next/standalone/docs/es/package-aliases.mdx +0 -82
- package/.next/standalone/docs/es/testing.mdx +0 -260
- package/.next/standalone/docs/examples.mdx +0 -307
- package/.next/standalone/docs/favicon.ico +0 -0
- package/.next/standalone/docs/for-agents.mdx +0 -38
- package/.next/standalone/docs/fr/architecture.mdx +0 -332
- package/.next/standalone/docs/fr/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/fr/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/fr/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/fr/cli/hook.mdx +0 -30
- package/.next/standalone/docs/fr/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/fr/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/fr/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/fr/cli/version.mdx +0 -12
- package/.next/standalone/docs/fr/configuration.mdx +0 -222
- package/.next/standalone/docs/fr/custom-policies.mdx +0 -353
- package/.next/standalone/docs/fr/dashboard.mdx +0 -142
- package/.next/standalone/docs/fr/examples.mdx +0 -307
- package/.next/standalone/docs/fr/for-agents.mdx +0 -38
- package/.next/standalone/docs/fr/getting-started.mdx +0 -186
- package/.next/standalone/docs/fr/introduction.mdx +0 -57
- package/.next/standalone/docs/fr/package-aliases.mdx +0 -82
- package/.next/standalone/docs/fr/testing.mdx +0 -260
- package/.next/standalone/docs/getting-started.mdx +0 -186
- package/.next/standalone/docs/he/architecture.mdx +0 -333
- package/.next/standalone/docs/he/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/he/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/he/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/he/cli/hook.mdx +0 -30
- package/.next/standalone/docs/he/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/he/cli/list-policies.mdx +0 -32
- package/.next/standalone/docs/he/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/he/cli/version.mdx +0 -12
- package/.next/standalone/docs/he/configuration.mdx +0 -223
- package/.next/standalone/docs/he/custom-policies.mdx +0 -353
- package/.next/standalone/docs/he/dashboard.mdx +0 -142
- package/.next/standalone/docs/he/examples.mdx +0 -307
- package/.next/standalone/docs/he/for-agents.mdx +0 -38
- package/.next/standalone/docs/he/getting-started.mdx +0 -186
- package/.next/standalone/docs/he/introduction.mdx +0 -57
- package/.next/standalone/docs/he/package-aliases.mdx +0 -82
- package/.next/standalone/docs/he/testing.mdx +0 -260
- package/.next/standalone/docs/hi/architecture.mdx +0 -334
- package/.next/standalone/docs/hi/built-in-policies.mdx +0 -576
- package/.next/standalone/docs/hi/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/hi/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/hi/cli/hook.mdx +0 -30
- package/.next/standalone/docs/hi/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/hi/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/hi/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/hi/cli/version.mdx +0 -12
- package/.next/standalone/docs/hi/configuration.mdx +0 -222
- package/.next/standalone/docs/hi/custom-policies.mdx +0 -354
- package/.next/standalone/docs/hi/dashboard.mdx +0 -142
- package/.next/standalone/docs/hi/examples.mdx +0 -309
- package/.next/standalone/docs/hi/for-agents.mdx +0 -38
- package/.next/standalone/docs/hi/getting-started.mdx +0 -187
- package/.next/standalone/docs/hi/introduction.mdx +0 -57
- package/.next/standalone/docs/hi/package-aliases.mdx +0 -82
- package/.next/standalone/docs/hi/testing.mdx +0 -260
- package/.next/standalone/docs/i18n/README.ar.md +0 -312
- package/.next/standalone/docs/i18n/README.de.md +0 -307
- package/.next/standalone/docs/i18n/README.es.md +0 -307
- package/.next/standalone/docs/i18n/README.fr.md +0 -307
- package/.next/standalone/docs/i18n/README.he.md +0 -312
- package/.next/standalone/docs/i18n/README.hi.md +0 -307
- package/.next/standalone/docs/i18n/README.it.md +0 -307
- package/.next/standalone/docs/i18n/README.ja.md +0 -307
- package/.next/standalone/docs/i18n/README.ko.md +0 -307
- package/.next/standalone/docs/i18n/README.pt-br.md +0 -307
- package/.next/standalone/docs/i18n/README.ru.md +0 -308
- package/.next/standalone/docs/i18n/README.tr.md +0 -307
- package/.next/standalone/docs/i18n/README.vi.md +0 -307
- package/.next/standalone/docs/i18n/README.zh.md +0 -307
- package/.next/standalone/docs/introduction.mdx +0 -57
- package/.next/standalone/docs/it/architecture.mdx +0 -334
- package/.next/standalone/docs/it/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/it/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/it/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/it/cli/hook.mdx +0 -30
- package/.next/standalone/docs/it/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/it/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/it/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/it/cli/version.mdx +0 -12
- package/.next/standalone/docs/it/configuration.mdx +0 -222
- package/.next/standalone/docs/it/custom-policies.mdx +0 -353
- package/.next/standalone/docs/it/dashboard.mdx +0 -142
- package/.next/standalone/docs/it/examples.mdx +0 -307
- package/.next/standalone/docs/it/for-agents.mdx +0 -38
- package/.next/standalone/docs/it/getting-started.mdx +0 -186
- package/.next/standalone/docs/it/introduction.mdx +0 -57
- package/.next/standalone/docs/it/package-aliases.mdx +0 -82
- package/.next/standalone/docs/it/testing.mdx +0 -260
- package/.next/standalone/docs/ja/architecture.mdx +0 -332
- package/.next/standalone/docs/ja/built-in-policies.mdx +0 -572
- package/.next/standalone/docs/ja/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/ja/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/ja/cli/hook.mdx +0 -30
- package/.next/standalone/docs/ja/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/ja/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/ja/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/ja/cli/version.mdx +0 -12
- package/.next/standalone/docs/ja/configuration.mdx +0 -222
- package/.next/standalone/docs/ja/custom-policies.mdx +0 -353
- package/.next/standalone/docs/ja/dashboard.mdx +0 -142
- package/.next/standalone/docs/ja/examples.mdx +0 -307
- package/.next/standalone/docs/ja/for-agents.mdx +0 -38
- package/.next/standalone/docs/ja/getting-started.mdx +0 -186
- package/.next/standalone/docs/ja/introduction.mdx +0 -57
- package/.next/standalone/docs/ja/package-aliases.mdx +0 -82
- package/.next/standalone/docs/ja/testing.mdx +0 -260
- package/.next/standalone/docs/ko/architecture.mdx +0 -332
- package/.next/standalone/docs/ko/built-in-policies.mdx +0 -572
- package/.next/standalone/docs/ko/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/ko/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/ko/cli/hook.mdx +0 -30
- package/.next/standalone/docs/ko/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/ko/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/ko/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/ko/cli/version.mdx +0 -12
- package/.next/standalone/docs/ko/configuration.mdx +0 -222
- package/.next/standalone/docs/ko/custom-policies.mdx +0 -353
- package/.next/standalone/docs/ko/dashboard.mdx +0 -142
- package/.next/standalone/docs/ko/examples.mdx +0 -307
- package/.next/standalone/docs/ko/for-agents.mdx +0 -38
- package/.next/standalone/docs/ko/getting-started.mdx +0 -186
- package/.next/standalone/docs/ko/introduction.mdx +0 -57
- package/.next/standalone/docs/ko/package-aliases.mdx +0 -82
- package/.next/standalone/docs/ko/testing.mdx +0 -260
- package/.next/standalone/docs/logo/dark.svg +0 -21
- package/.next/standalone/docs/logo/exosphere-dark.png +0 -0
- package/.next/standalone/docs/logo/exosphere-light.png +0 -0
- package/.next/standalone/docs/logo/light.svg +0 -21
- package/.next/standalone/docs/package-aliases.mdx +0 -82
- package/.next/standalone/docs/pt-br/architecture.mdx +0 -332
- package/.next/standalone/docs/pt-br/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/pt-br/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/pt-br/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/pt-br/cli/hook.mdx +0 -30
- package/.next/standalone/docs/pt-br/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/pt-br/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/pt-br/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/pt-br/cli/version.mdx +0 -12
- package/.next/standalone/docs/pt-br/configuration.mdx +0 -222
- package/.next/standalone/docs/pt-br/custom-policies.mdx +0 -353
- package/.next/standalone/docs/pt-br/dashboard.mdx +0 -142
- package/.next/standalone/docs/pt-br/examples.mdx +0 -307
- package/.next/standalone/docs/pt-br/for-agents.mdx +0 -38
- package/.next/standalone/docs/pt-br/getting-started.mdx +0 -186
- package/.next/standalone/docs/pt-br/introduction.mdx +0 -57
- package/.next/standalone/docs/pt-br/package-aliases.mdx +0 -82
- package/.next/standalone/docs/pt-br/testing.mdx +0 -260
- package/.next/standalone/docs/ru/architecture.mdx +0 -333
- package/.next/standalone/docs/ru/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/ru/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/ru/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/ru/cli/hook.mdx +0 -30
- package/.next/standalone/docs/ru/cli/install-policies.mdx +0 -48
- package/.next/standalone/docs/ru/cli/list-policies.mdx +0 -32
- package/.next/standalone/docs/ru/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/ru/cli/version.mdx +0 -12
- package/.next/standalone/docs/ru/configuration.mdx +0 -222
- package/.next/standalone/docs/ru/custom-policies.mdx +0 -354
- package/.next/standalone/docs/ru/dashboard.mdx +0 -142
- package/.next/standalone/docs/ru/examples.mdx +0 -309
- package/.next/standalone/docs/ru/for-agents.mdx +0 -38
- package/.next/standalone/docs/ru/getting-started.mdx +0 -186
- package/.next/standalone/docs/ru/introduction.mdx +0 -57
- package/.next/standalone/docs/ru/package-aliases.mdx +0 -82
- package/.next/standalone/docs/ru/testing.mdx +0 -260
- package/.next/standalone/docs/testing.mdx +0 -260
- package/.next/standalone/docs/tr/architecture.mdx +0 -333
- package/.next/standalone/docs/tr/built-in-policies.mdx +0 -574
- package/.next/standalone/docs/tr/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/tr/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/tr/cli/hook.mdx +0 -30
- package/.next/standalone/docs/tr/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/tr/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/tr/cli/remove-policies.mdx +0 -44
- package/.next/standalone/docs/tr/cli/version.mdx +0 -12
- package/.next/standalone/docs/tr/configuration.mdx +0 -222
- package/.next/standalone/docs/tr/custom-policies.mdx +0 -353
- package/.next/standalone/docs/tr/dashboard.mdx +0 -142
- package/.next/standalone/docs/tr/examples.mdx +0 -308
- package/.next/standalone/docs/tr/for-agents.mdx +0 -38
- package/.next/standalone/docs/tr/getting-started.mdx +0 -186
- package/.next/standalone/docs/tr/introduction.mdx +0 -57
- package/.next/standalone/docs/tr/package-aliases.mdx +0 -82
- package/.next/standalone/docs/tr/testing.mdx +0 -260
- package/.next/standalone/docs/vi/architecture.mdx +0 -334
- package/.next/standalone/docs/vi/built-in-policies.mdx +0 -575
- package/.next/standalone/docs/vi/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/vi/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/vi/cli/hook.mdx +0 -30
- package/.next/standalone/docs/vi/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/vi/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/vi/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/vi/cli/version.mdx +0 -13
- package/.next/standalone/docs/vi/configuration.mdx +0 -222
- package/.next/standalone/docs/vi/custom-policies.mdx +0 -353
- package/.next/standalone/docs/vi/dashboard.mdx +0 -142
- package/.next/standalone/docs/vi/examples.mdx +0 -308
- package/.next/standalone/docs/vi/for-agents.mdx +0 -38
- package/.next/standalone/docs/vi/getting-started.mdx +0 -186
- package/.next/standalone/docs/vi/introduction.mdx +0 -57
- package/.next/standalone/docs/vi/package-aliases.mdx +0 -82
- package/.next/standalone/docs/vi/testing.mdx +0 -260
- package/.next/standalone/docs/zh/architecture.mdx +0 -332
- package/.next/standalone/docs/zh/built-in-policies.mdx +0 -572
- package/.next/standalone/docs/zh/cli/dashboard.mdx +0 -28
- package/.next/standalone/docs/zh/cli/environment-variables.mdx +0 -34
- package/.next/standalone/docs/zh/cli/hook.mdx +0 -30
- package/.next/standalone/docs/zh/cli/install-policies.mdx +0 -47
- package/.next/standalone/docs/zh/cli/list-policies.mdx +0 -31
- package/.next/standalone/docs/zh/cli/remove-policies.mdx +0 -43
- package/.next/standalone/docs/zh/cli/version.mdx +0 -12
- package/.next/standalone/docs/zh/configuration.mdx +0 -222
- package/.next/standalone/docs/zh/custom-policies.mdx +0 -353
- package/.next/standalone/docs/zh/dashboard.mdx +0 -142
- package/.next/standalone/docs/zh/examples.mdx +0 -307
- package/.next/standalone/docs/zh/for-agents.mdx +0 -38
- package/.next/standalone/docs/zh/getting-started.mdx +0 -186
- package/.next/standalone/docs/zh/introduction.mdx +0 -57
- package/.next/standalone/docs/zh/package-aliases.mdx +0 -82
- package/.next/standalone/docs/zh/testing.mdx +0 -260
- package/.next/standalone/eslint.config.mjs +0 -15
- package/.next/standalone/examples/convention-policies/security-policies.mjs +0 -40
- package/.next/standalone/examples/convention-policies/workflow-policies.mjs +0 -41
- package/.next/standalone/examples/policies-advanced/index.js +0 -103
- package/.next/standalone/examples/policies-advanced/utils.js +0 -35
- package/.next/standalone/examples/policies-basic.js +0 -77
- package/.next/standalone/examples/policies-notification.js +0 -104
- package/.next/standalone/node_modules/@img/colour/color.cjs +0 -1594
- package/.next/standalone/node_modules/@img/colour/index.cjs +0 -1
- package/.next/standalone/node_modules/@img/colour/package.json +0 -45
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +0 -42
- package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/versions.json +0 -30
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -221
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
- package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linux-x64/package.json +0 -46
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
- package/.next/standalone/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/.next/standalone/node_modules/detect-libc/lib/elf.js +0 -39
- package/.next/standalone/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/.next/standalone/node_modules/detect-libc/lib/process.js +0 -24
- package/.next/standalone/node_modules/detect-libc/package.json +0 -44
- package/.next/standalone/node_modules/sharp/lib/channel.js +0 -177
- package/.next/standalone/node_modules/sharp/lib/colour.js +0 -195
- package/.next/standalone/node_modules/sharp/lib/composite.js +0 -212
- package/.next/standalone/node_modules/sharp/lib/constructor.js +0 -499
- package/.next/standalone/node_modules/sharp/lib/index.js +0 -16
- package/.next/standalone/node_modules/sharp/lib/input.js +0 -809
- package/.next/standalone/node_modules/sharp/lib/is.js +0 -143
- package/.next/standalone/node_modules/sharp/lib/libvips.js +0 -207
- package/.next/standalone/node_modules/sharp/lib/operation.js +0 -1016
- package/.next/standalone/node_modules/sharp/lib/output.js +0 -1666
- package/.next/standalone/node_modules/sharp/lib/resize.js +0 -595
- package/.next/standalone/node_modules/sharp/lib/sharp.js +0 -121
- package/.next/standalone/node_modules/sharp/lib/utility.js +0 -291
- package/.next/standalone/node_modules/sharp/node_modules/semver/classes/comparator.js +0 -143
- package/.next/standalone/node_modules/sharp/node_modules/semver/classes/range.js +0 -557
- package/.next/standalone/node_modules/sharp/node_modules/semver/classes/semver.js +0 -333
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/cmp.js +0 -54
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/coerce.js +0 -62
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/compare.js +0 -7
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/eq.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/gt.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/gte.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/lt.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/lte.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/neq.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/parse.js +0 -18
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/satisfies.js +0 -12
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/constants.js +0 -37
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/debug.js +0 -11
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/identifiers.js +0 -29
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/lrucache.js +0 -42
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/parse-options.js +0 -17
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/re.js +0 -223
- package/.next/standalone/node_modules/sharp/node_modules/semver/package.json +0 -78
- package/.next/standalone/node_modules/sharp/package.json +0 -202
- package/.next/standalone/scripts/alias-proxy.js +0 -18
- package/.next/standalone/scripts/dev.ts +0 -3
- package/.next/standalone/scripts/install-telemetry.mjs +0 -108
- package/.next/standalone/scripts/launch.ts +0 -83
- package/.next/standalone/scripts/parse-script-args.ts +0 -87
- package/.next/standalone/scripts/postinstall.mjs +0 -121
- package/.next/standalone/scripts/preuninstall.mjs +0 -131
- package/.next/standalone/scripts/publish-aliases.mjs +0 -87
- package/.next/standalone/scripts/start.ts +0 -3
- package/.next/standalone/scripts/sync-hook-events-prompt.md +0 -60
- package/.next/standalone/scripts/translate-docs/cache.ts +0 -62
- package/.next/standalone/scripts/translate-docs/cli.ts +0 -357
- package/.next/standalone/scripts/translate-docs/config.ts +0 -248
- package/.next/standalone/scripts/translate-docs/mdx-translator.ts +0 -153
- package/.next/standalone/scripts/translate-docs/mintlify-nav.ts +0 -107
- package/.next/standalone/scripts/translate-docs/readme-translator.ts +0 -154
- package/.next/standalone/scripts/translate-docs/translator.ts +0 -68
- package/.next/standalone/scripts/translate-docs/types.ts +0 -43
- package/.next/standalone/src/cli-error.ts +0 -18
- package/.next/standalone/src/hooks/builtin-policies.ts +0 -1613
- package/.next/standalone/src/hooks/custom-hooks-loader.ts +0 -205
- package/.next/standalone/src/hooks/custom-hooks-registry.ts +0 -30
- package/.next/standalone/src/hooks/handler.ts +0 -202
- package/.next/standalone/src/hooks/hook-activity-store.ts +0 -349
- package/.next/standalone/src/hooks/hook-logger.ts +0 -133
- package/.next/standalone/src/hooks/hook-telemetry.ts +0 -43
- package/.next/standalone/src/hooks/hooks-config.ts +0 -166
- package/.next/standalone/src/hooks/install-prompt.ts +0 -357
- package/.next/standalone/src/hooks/llm-client.ts +0 -90
- package/.next/standalone/src/hooks/loader-utils.ts +0 -178
- package/.next/standalone/src/hooks/manager.ts +0 -692
- package/.next/standalone/src/hooks/policy-evaluator.ts +0 -224
- package/.next/standalone/src/hooks/policy-helpers.ts +0 -16
- package/.next/standalone/src/hooks/policy-registry.ts +0 -90
- package/.next/standalone/src/hooks/policy-types.ts +0 -77
- package/.next/standalone/src/hooks/types.ts +0 -63
- package/.next/standalone/src/index.ts +0 -19
- package/.next/standalone/src/posthog-key.ts +0 -5
- package/.next/standalone/tailwind.config.ts +0 -11
- package/.next/standalone/tsconfig.json +0 -42
- package/.next/standalone/vitest.config.e2e.mts +0 -24
- package/.next/standalone/vitest.config.mts +0 -23
- /package/.next/standalone/.next/static/{A9pNTZdoYJTVyPAYwQMx5 → wOkJXoch1UmRAmyIuKZWc}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{A9pNTZdoYJTVyPAYwQMx5 → wOkJXoch1UmRAmyIuKZWc}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{A9pNTZdoYJTVyPAYwQMx5 → wOkJXoch1UmRAmyIuKZWc}/_ssgManifest.js +0 -0
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
> **⚠️** This is an auto-generated translation. For the latest version, see the [English README](../../README.md). Community corrections welcome!
|
|
2
|
-
|
|
3
|
-
[🇺🇸 English](../../README.md) | [🇨🇳 简体中文](README.zh.md) | [🇯🇵 日本語](README.ja.md) | [🇰🇷 한국어](README.ko.md) | [🇪🇸 Español](README.es.md) | [🇧🇷 Português](README.pt-br.md) | [🇩🇪 Deutsch](README.de.md) | [🇫🇷 Français](README.fr.md) | [🇷🇺 Русский](README.ru.md) | [🇮🇳 हिन्दी](README.hi.md) | **🇹🇷 Türkçe** | [🇻🇳 Tiếng Việt](README.vi.md) | [🇮🇹 Italiano](README.it.md) | [🇸🇦 العربية](README.ar.md) | [🇮🇱 עברית](README.he.md)
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
______ _ __ ____ ___ ____
|
|
9
|
-
/ ____/___ _(_) /___ _________ ____ / __/ / | / _/
|
|
10
|
-
/ /_ / __ `/ / / __ \/ ___/ __ \/ __ \/ /_ / /| | / /
|
|
11
|
-
/ __/ / /_/ / / / /_/ / / / /_/ / /_/ / __/ / ___ |_/ /
|
|
12
|
-
/_/ \__,_/_/_/ .___/_/ \____/\____/_/ /_/ |_/___/
|
|
13
|
-
/_/
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
# Failproof AI
|
|
17
|
-
|
|
18
|
-
[](https://befailproof.ai)
|
|
19
|
-
[](https://www.npmjs.com/package/failproofai)
|
|
20
|
-
[](LICENSE)
|
|
21
|
-
[](https://github.com/exospherehost/failproofai/actions)
|
|
22
|
-
[](https://join.slack.com/t/failproofai/shared_invite/zt-3v63b7k5e-O3NBHmj8X6n9gZSGDx6ggQ)
|
|
23
|
-
|
|
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
|
-
|
|
26
|
-
AI aracılarınızı güvenilir, görevlerine odaklanmış ve özerk olarak çalışır durumda tutmak için politikaları yönetmenin en kolay yolu - **Claude Code** ve **Agents SDK** için.
|
|
27
|
-
|
|
28
|
-
- **30 Yerleşik Politika** - Ortak ajan başarısızlık modlarını kutudan çıkar çıkmaz yakalayın. Yıkıcı 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ını yapın.
|
|
29
|
-
- **Özel Politikalar** - JavaScript'te kendi güvenilirlik kurallarınızı yazın. `allow`/`deny`/`instruct` API'sini kullanarak kuralları zorunlu kılın, sapmaları önleyin, işlemleri sınırlandırın veya harici sistemlerle entegre olun.
|
|
30
|
-
- **Kolay Yapılandırma** - Herhangi bir politikayı kod yazmadan ayarlayın. İzin listeleri, korumalı dallar, eşikleri proje başına veya genel olarak belirleyin. Üç kapsamlı yapılandırma otomatik olarak birleşir.
|
|
31
|
-
- **Ajan Monitörü** - Aracılarınızın yokken neler yaptığını görün. Oturumları inceleyin, her araç çağrısını denetleyin ve politikaların tam olarak nerede çalıştığını gözden geçirin.
|
|
32
|
-
|
|
33
|
-
Her şey yerel olarak çalışır - veriler makinenizi terk etmez.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Gereksinimler
|
|
38
|
-
|
|
39
|
-
- Node.js >= 20.9.0
|
|
40
|
-
- Bun >= 1.3.0 (isteğe bağlı - yalnızca geliştirme / kaynaktan derleme için gerekli)
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## Yükleme
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm install -g failproofai
|
|
48
|
-
# veya
|
|
49
|
-
bun add -g failproofai
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## Hızlı başlangıç
|
|
55
|
-
|
|
56
|
-
### 1. Politikaları genel olarak etkinleştirin
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
failproofai policies --install
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Hook girdilerini `~/.claude/settings.json` dosyasına yazar. Claude Code artık her araç çağrısından önce ve sonra failproofai'yi çağıracaktır.
|
|
63
|
-
|
|
64
|
-
### 2. Panoyu başlatın
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
failproofai
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
`http://localhost:8020` adresini açar - oturumları inceleyin, günlükleri denetleyin, politikaları yönetin.
|
|
71
|
-
|
|
72
|
-
### 3. Nelerin etkin olduğunu kontrol edin
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
failproofai policies
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Politika yüklemesi
|
|
81
|
-
|
|
82
|
-
### Kapsamlar
|
|
83
|
-
|
|
84
|
-
| Kapsam | Komut | Nereye yazıyor |
|
|
85
|
-
|--------|-------|---|
|
|
86
|
-
| Genel (varsayılan) | `failproofai policies --install` | `~/.claude/settings.json` |
|
|
87
|
-
| Proje | `failproofai policies --install --scope project` | `.claude/settings.json` |
|
|
88
|
-
| Yerel | `failproofai policies --install --scope local` | `.claude/settings.local.json` |
|
|
89
|
-
|
|
90
|
-
### Belirli politikaları yükleyin
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
failproofai policies --install block-sudo block-rm-rf sanitize-api-keys
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Politikaları kaldırın
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
failproofai policies --uninstall
|
|
100
|
-
# veya belirli bir kapsam için:
|
|
101
|
-
failproofai policies --uninstall --scope project
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Yapılandırma
|
|
107
|
-
|
|
108
|
-
Politika yapılandırması `~/.failproofai/policies-config.json` (genel) veya projenizde `.failproofai/policies-config.json` (proje başına) dosyasında bulunur.
|
|
109
|
-
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"enabledPolicies": [
|
|
113
|
-
"block-sudo",
|
|
114
|
-
"block-rm-rf",
|
|
115
|
-
"sanitize-api-keys",
|
|
116
|
-
"block-push-master",
|
|
117
|
-
"block-env-files",
|
|
118
|
-
"block-read-outside-cwd"
|
|
119
|
-
],
|
|
120
|
-
"policyParams": {
|
|
121
|
-
"block-sudo": {
|
|
122
|
-
"allowPatterns": ["sudo systemctl status", "sudo journalctl"],
|
|
123
|
-
"hint": "sudo olmadan apt-get'i doğrudan kullanın."
|
|
124
|
-
},
|
|
125
|
-
"block-push-master": {
|
|
126
|
-
"protectedBranches": ["main", "release", "prod"],
|
|
127
|
-
"hint": "Bunun yerine yeni bir dal oluşturmayı deneyin."
|
|
128
|
-
},
|
|
129
|
-
"sanitize-api-keys": {
|
|
130
|
-
"additionalPatterns": [
|
|
131
|
-
{ "regex": "myco_[A-Za-z0-9]{32}", "label": "MyCo API anahtarı" }
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"warn-large-file-write": {
|
|
135
|
-
"thresholdKb": 512
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
**Üç yapılandırma kapsamı** otomatik olarak birleştirilir (proje → yerel → genel). Tam birleştirme kuralları için [docs/configuration.mdx](docs/configuration.mdx) bölümüne bakın.
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## Yerleşik politikalar
|
|
146
|
-
|
|
147
|
-
| Politika | Açıklama | Yapılandırılabilir |
|
|
148
|
-
|----------|----------|:---:|
|
|
149
|
-
| `block-sudo` | Ajanların ayrıcalıklı sistem komutlarını çalıştırmasını önleyin | `allowPatterns` |
|
|
150
|
-
| `block-rm-rf` | Yanlışlıkla özyinelemeli dosya silmeyi önleyin | `allowPaths` |
|
|
151
|
-
| `block-curl-pipe-sh` | Ajanların güvenilmeyen betikleri shell'e aktarmasını önleyin | |
|
|
152
|
-
| `block-failproofai-commands` | Kendi kendine kaldırmayı önleyin | |
|
|
153
|
-
| `sanitize-jwt` | JWT belirteçlerinin ajan bağlamında sızmasını durdurun | |
|
|
154
|
-
| `sanitize-api-keys` | API anahtarlarının ajan bağlamında sızmasını durdurun | `additionalPatterns` |
|
|
155
|
-
| `sanitize-connection-strings` | Veritabanı kimlik bilgilerinin ajan bağlamında sızmasını durdurun | |
|
|
156
|
-
| `sanitize-private-key-content` | PEM özel anahtar bloklarını çıktıdan kaldırın | |
|
|
157
|
-
| `sanitize-bearer-tokens` | Authorization Bearer belirteçlerini çıktıdan kaldırın | |
|
|
158
|
-
| `block-env-files` | Ajanları .env dosyalarını okumasından tutun | |
|
|
159
|
-
| `protect-env-vars` | Ajanların ortam değişkenlerini yazdırmasını önleyin | |
|
|
160
|
-
| `block-read-outside-cwd` | Ajanları proje sınırları içinde tutun | `allowPaths` |
|
|
161
|
-
| `block-secrets-write` | Özel anahtar ve sertifika dosyalarına yazmaları önleyin | `additionalPatterns` |
|
|
162
|
-
| `block-push-master` | Ana/master'a yanlışlıkla itmeyi önleyin | `protectedBranches` |
|
|
163
|
-
| `block-work-on-main` | Ajanları korumalı dallardan uzak tutun | `protectedBranches` |
|
|
164
|
-
| `block-force-push` | `git push --force` komutunu önleyin | |
|
|
165
|
-
| `warn-git-amend` | Ajanları commit'leri değiştirmeden önce uyarın | |
|
|
166
|
-
| `warn-git-stash-drop` | Ajanları stash'leri bırakmadan önce uyarın | |
|
|
167
|
-
| `warn-all-files-staged` | Yanlışlıkla `git add -A` komutunu yakalayın | |
|
|
168
|
-
| `warn-destructive-sql` | DROP/DELETE SQL komutlarını yürütmeden önce yakalayın | |
|
|
169
|
-
| `warn-schema-alteration` | ALTER TABLE komutlarını yürütmeden önce yakalayın | |
|
|
170
|
-
| `warn-large-file-write` | Beklenmedik şekilde büyük dosya yazımlarını yakalayın | `thresholdKb` |
|
|
171
|
-
| `warn-package-publish` | Yanlışlıkla `npm publish` komutunu yakalayın | |
|
|
172
|
-
| `warn-background-process` | İstenmeyen arka plan işlemi başlatmalarını yakalayın | |
|
|
173
|
-
| `warn-global-package-install` | İstenmeyen genel paket kurulumlarını yakalayın | |
|
|
174
|
-
| …ve daha fazlası | | |
|
|
175
|
-
|
|
176
|
-
Tam politika ayrıntıları ve parametre referansı: [docs/built-in-policies.mdx](docs/built-in-policies.mdx)
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## Özel politikalar
|
|
181
|
-
|
|
182
|
-
Ajanlarınızı güvenilir ve görevlerine odaklanmış tutmak için kendi politikalarınızı yazın:
|
|
183
|
-
|
|
184
|
-
```js
|
|
185
|
-
import { customPolicies, allow, deny, instruct } from "failproofai";
|
|
186
|
-
|
|
187
|
-
customPolicies.add({
|
|
188
|
-
name: "no-production-writes",
|
|
189
|
-
description: "'production' içeren yollara yazmaları engelleyin",
|
|
190
|
-
match: { events: ["PreToolUse"] },
|
|
191
|
-
fn: async (ctx) => {
|
|
192
|
-
if (!["Write", "Edit"].includes(ctx.toolName ?? "")) return allow();
|
|
193
|
-
const path = ctx.toolInput?.file_path ?? "";
|
|
194
|
-
if (path.includes("production")) return deny("Production yollarına yazma işlemleri engellendi");
|
|
195
|
-
return allow();
|
|
196
|
-
},
|
|
197
|
-
});
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
Şu komutuyla yükleyin:
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
failproofai policies --install --custom ./my-policies.js
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Karar yardımcıları
|
|
207
|
-
|
|
208
|
-
| İşlev | Etki |
|
|
209
|
-
|-------|------|
|
|
210
|
-
| `allow()` | İşleme izin verin |
|
|
211
|
-
| `allow(message)` | İzin verin ve Claude'a bilgilendirici bağlam gönderin |
|
|
212
|
-
| `deny(message)` | İşlemi engelleyin; ileti Claude'a gösterilir |
|
|
213
|
-
| `instruct(message)` | Claude'un istemine bağlam ekleyin; engellemez |
|
|
214
|
-
|
|
215
|
-
### Bağlam nesnesi (`ctx`)
|
|
216
|
-
|
|
217
|
-
| Alan | Tür | Açıklama |
|
|
218
|
-
|------|-----|---------|
|
|
219
|
-
| `eventType` | `string` | `"PreToolUse"`, `"PostToolUse"`, `"Notification"`, `"Stop"` |
|
|
220
|
-
| `toolName` | `string` | Çağrılan araç (`"Bash"`, `"Write"`, `"Read"`, …) |
|
|
221
|
-
| `toolInput` | `object` | Aracın giriş parametreleri |
|
|
222
|
-
| `payload` | `object` | Tam ham olay yükü |
|
|
223
|
-
| `session.cwd` | `string` | Claude Code oturumunun çalışma dizini |
|
|
224
|
-
| `session.sessionId` | `string` | Oturum tanımlayıcısı |
|
|
225
|
-
| `session.transcriptPath` | `string` | Oturum döküm dosyasının yolu |
|
|
226
|
-
|
|
227
|
-
Özel hook'lar geçişli yerel içe aktarmaları, async/await ve `process.env` erişimini destekler. Hatalar açık başarısız olur (hatalara `~/.failproofai/hook.log` dosyasında kaydedilir, yerleşik politikalar devam eder). Tam rehber için [docs/custom-hooks.mdx](docs/custom-hooks.mdx) bölümüne bakın.
|
|
228
|
-
|
|
229
|
-
### Kural tabanlı politikalar
|
|
230
|
-
|
|
231
|
-
`*policies.{js,mjs,ts}` dosyalarını `.failproofai/policies/` dizinine bırakın ve otomatik olarak yüklenir - bayrak veya yapılandırma değişikliği yapılmaz. Dizini git'e commit edin ve her takım üyesi aynı kalite standartlarını otomatik olarak alır.
|
|
232
|
-
|
|
233
|
-
```text
|
|
234
|
-
# Proje seviyesi — git'e commit edilmiş, takım ile paylaşılan
|
|
235
|
-
.failproofai/policies/security-policies.mjs
|
|
236
|
-
.failproofai/policies/workflow-policies.mjs
|
|
237
|
-
|
|
238
|
-
# Kullanıcı seviyesi — kişisel, tüm projelere uygulanır
|
|
239
|
-
~/.failproofai/policies/my-policies.mjs
|
|
240
|
-
```
|
|
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-` vb. ön ekle ekleyin. Takımınız yeni başarısızlık modlarını keşfettikçe, bir politika ekleyin ve gönderin — herkes kendi sonraki pull'larında güncellemeyi alır. Kullanıma hazır örnekler için [examples/convention-policies/](examples/convention-policies/) bölümüne bakın.
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## Telemetri
|
|
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ç girdileri veya kişisel bilgiler asla gönderilmez.
|
|
249
|
-
|
|
250
|
-
Devre dışı bırakmak için:
|
|
251
|
-
|
|
252
|
-
```bash
|
|
253
|
-
FAILPROOFAI_TELEMETRY_DISABLED=1 failproofai
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## Belgeler
|
|
259
|
-
|
|
260
|
-
| Rehber | Açıklama |
|
|
261
|
-
|--------|----------|
|
|
262
|
-
| [Başlangıç Kılavuzu](docs/getting-started.mdx) | Kurulum ve ilk adımlar |
|
|
263
|
-
| [Yerleşik Politikalar](docs/built-in-policies.mdx) | 30 yerleşik politika ve parametreleri |
|
|
264
|
-
| [Özel Politikalar](docs/custom-policies.mdx) | Kendi politikalarınızı yazın |
|
|
265
|
-
| [Yapılandırma](docs/configuration.mdx) | Yapılandırma dosyası biçimi ve kapsam birleştirme |
|
|
266
|
-
| [Pano](docs/dashboard.mdx) | Oturumları izleyin ve politika etkinliğini gözden geçirin |
|
|
267
|
-
| [Mimari](docs/architecture.mdx) | Hook sistemi nasıl çalışır |
|
|
268
|
-
| [Test](docs/testing.mdx) | Testleri çalıştırın ve yenilerini yazın |
|
|
269
|
-
|
|
270
|
-
### Belgeleri yerel olarak çalıştırın
|
|
271
|
-
|
|
272
|
-
```bash
|
|
273
|
-
docker build -f Dockerfile.docs -t failproofai-docs .
|
|
274
|
-
docker run --rm -p 3000:3000 failproofai-docs
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
Mintlify belgeleri sitesini `http://localhost:3000` adresinde açar. Belge dizinini bağlarsanız, konteyner değişiklikleri izler:
|
|
278
|
-
|
|
279
|
-
```bash
|
|
280
|
-
docker run --rm -p 3000:3000 -v $(pwd)/docs:/app/docs failproofai-docs
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
---
|
|
284
|
-
|
|
285
|
-
## failproofai katılımcıları için not
|
|
286
|
-
|
|
287
|
-
Bu depo'nun `.claude/settings.json` dosyası, standart `npx -y failproofai` komutu yerine `bun ./bin/failproofai.mjs --hook <EventType>` komutunu kullanır. Bunun nedeni, `npx -y failproofai` komutunu failproofai projesi içinde çalıştırmanın kendine referans bir çatışma oluşturmasıdır.
|
|
288
|
-
|
|
289
|
-
Diğer tüm repolar için önerilen yaklaşım `npx -y failproofai` olup, şu komutla kurulur:
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
failproofai policies --install --scope project
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
## Katkıda bulunma
|
|
296
|
-
|
|
297
|
-
[CONTRIBUTING.md](CONTRIBUTING.md) bölümüne bakın.
|
|
298
|
-
|
|
299
|
-
---
|
|
300
|
-
|
|
301
|
-
## Lisans
|
|
302
|
-
|
|
303
|
-
[LICENSE](LICENSE) bölümüne bakın.
|
|
304
|
-
|
|
305
|
-
---
|
|
306
|
-
|
|
307
|
-
**ExosphereHost tarafından inşa edilmiş ve bakımı yapılmaktadır: Aracılarınız için Güvenilirlik Araştırma Laboratuvarı**. Kuruluşların ve girişimlerin kendi aracıları, yazılımları ve uzmanlıkları aracılığıyla AI aracılarının güvenilirliğini iyileştirmelerine yardımcı oluruz. Daha fazla bilgi için [exosphere.host](https://exosphere.host) adresini ziyaret edin.
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
> **⚠️** This is an auto-generated translation. For the latest version, see the [English README](../../README.md). Community corrections welcome!
|
|
2
|
-
|
|
3
|
-
[🇺🇸 English](../../README.md) | [🇨🇳 简体中文](README.zh.md) | [🇯🇵 日本語](README.ja.md) | [🇰🇷 한국어](README.ko.md) | [🇪🇸 Español](README.es.md) | [🇧🇷 Português](README.pt-br.md) | [🇩🇪 Deutsch](README.de.md) | [🇫🇷 Français](README.fr.md) | [🇷🇺 Русский](README.ru.md) | [🇮🇳 हिन्दी](README.hi.md) | [🇹🇷 Türkçe](README.tr.md) | **🇻🇳 Tiếng Việt** | [🇮🇹 Italiano](README.it.md) | [🇸🇦 العربية](README.ar.md) | [🇮🇱 עברית](README.he.md)
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
______ _ __ ____ ___ ____
|
|
9
|
-
/ ____/___ _(_) /___ _________ ____ / __/ / | / _/
|
|
10
|
-
/ /_ / __ `/ / / __ \/ ___/ __ \/ __ \/ /_ / /| | / /
|
|
11
|
-
/ __/ / /_/ / / / /_/ / / / /_/ / /_/ / __/ / ___ |_/ /
|
|
12
|
-
/_/ \__,_/_/_/ .___/_/ \____/\____/_/ /_/ |_/___/
|
|
13
|
-
/_/
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
# Failproof AI
|
|
17
|
-
|
|
18
|
-
[](https://befailproof.ai)
|
|
19
|
-
[](https://www.npmjs.com/package/failproofai)
|
|
20
|
-
[](LICENSE)
|
|
21
|
-
[](https://github.com/exospherehost/failproofai/actions)
|
|
22
|
-
[](https://join.slack.com/t/failproofai/shared_invite/zt-3v63b7k5e-O3NBHmj8X6n9gZSGDx6ggQ)
|
|
23
|
-
|
|
24
|
-
**Translations**: [简体中文](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
|
-
|
|
26
|
-
Cách dễ nhất để quản lý các chính sách giữ cho các AI agent của bạn đáng tin cậy, tập trung vào mục tiêu và chạy tự động - cho **Claude Code** & **Agents SDK**.
|
|
27
|
-
|
|
28
|
-
- **30 Chính sách tích hợp** - Bắt các chế độ lỗi phổ biến của agent ngay lập tức. Chặn các lệnh phá hoại, ngăn chặn rò rỉ bí mật, giữ các agent trong ranh giới dự án, phát hiện vòng lặp, v.v.
|
|
29
|
-
- **Chính sách tùy chỉnh** - Viết các quy tắc độ tin cậy của riêng bạn bằng JavaScript. Sử dụng API `allow`/`deny`/`instruct` để thực thi các quy ước, ngăn chặn sai lệch, gating các hoạt động hoặc tích hợp với các hệ thống bên ngoài.
|
|
30
|
-
- **Cấu hình dễ dàng** - Điều chỉnh bất kỳ chính sách nào mà không cần viết mã. Đặt danh sách cho phép, các nhánh được bảo vệ, ngưỡng cho mỗi dự án hoặc toàn cầu. Ba cấu hình phạm vi hợp nhất tự động.
|
|
31
|
-
- **Agent Monitor** - Xem những gì các agent của bạn đã làm khi bạn vắng mặt. Duyệt qua các phiên, kiểm tra từng lệnh gọi công cụ, và xem lại chính xác nơi các chính sách đã kích hoạt.
|
|
32
|
-
|
|
33
|
-
Mọi thứ chạy cục bộ - không có dữ liệu nào rời khỏi máy của bạn.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Yêu cầu
|
|
38
|
-
|
|
39
|
-
- Node.js >= 20.9.0
|
|
40
|
-
- Bun >= 1.3.0 (tùy chọn - chỉ cần thiết cho phát triển / xây dựng từ nguồn)
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## Cài đặt
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm install -g failproofai
|
|
48
|
-
# hoặc
|
|
49
|
-
bun add -g failproofai
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## Bắt đầu nhanh
|
|
55
|
-
|
|
56
|
-
### 1. Bật chính sách toàn cầu
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
failproofai policies --install
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Ghi các mục hook vào `~/.claude/settings.json`. Claude Code sẽ bây giờ gọi failproofai trước và sau mỗi lệnh gọi công cụ.
|
|
63
|
-
|
|
64
|
-
### 2. Khởi chạy bảng điều khiển
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
failproofai
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Mở `http://localhost:8020` - duyệt qua các phiên, kiểm tra nhật ký, quản lý chính sách.
|
|
71
|
-
|
|
72
|
-
### 3. Kiểm tra cái gì đang hoạt động
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
failproofai policies
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Cài đặt chính sách
|
|
81
|
-
|
|
82
|
-
### Phạm vi
|
|
83
|
-
|
|
84
|
-
| Phạm vi | Lệnh | Nơi ghi |
|
|
85
|
-
|--------|------|---------|
|
|
86
|
-
| Toàn cầu (mặc định) | `failproofai policies --install` | `~/.claude/settings.json` |
|
|
87
|
-
| Dự án | `failproofai policies --install --scope project` | `.claude/settings.json` |
|
|
88
|
-
| Cục bộ | `failproofai policies --install --scope local` | `.claude/settings.local.json` |
|
|
89
|
-
|
|
90
|
-
### Cài đặt các chính sách cụ thể
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
failproofai policies --install block-sudo block-rm-rf sanitize-api-keys
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Xóa chính sách
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
failproofai policies --uninstall
|
|
100
|
-
# hoặc cho một phạm vi cụ thể:
|
|
101
|
-
failproofai policies --uninstall --scope project
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Cấu hình
|
|
107
|
-
|
|
108
|
-
Cấu hình chính sách nằm trong `~/.failproofai/policies-config.json` (toàn cầu) hoặc `.failproofai/policies-config.json` trong dự án của bạn (cho mỗi dự án).
|
|
109
|
-
|
|
110
|
-
```json
|
|
111
|
-
{
|
|
112
|
-
"enabledPolicies": [
|
|
113
|
-
"block-sudo",
|
|
114
|
-
"block-rm-rf",
|
|
115
|
-
"sanitize-api-keys",
|
|
116
|
-
"block-push-master",
|
|
117
|
-
"block-env-files",
|
|
118
|
-
"block-read-outside-cwd"
|
|
119
|
-
],
|
|
120
|
-
"policyParams": {
|
|
121
|
-
"block-sudo": {
|
|
122
|
-
"allowPatterns": ["sudo systemctl status", "sudo journalctl"],
|
|
123
|
-
"hint": "Sử dụng apt-get trực tiếp mà không cần sudo."
|
|
124
|
-
},
|
|
125
|
-
"block-push-master": {
|
|
126
|
-
"protectedBranches": ["main", "release", "prod"],
|
|
127
|
-
"hint": "Hãy thử tạo một nhánh mới thay thế."
|
|
128
|
-
},
|
|
129
|
-
"sanitize-api-keys": {
|
|
130
|
-
"additionalPatterns": [
|
|
131
|
-
{ "regex": "myco_[A-Za-z0-9]{32}", "label": "MyCo API key" }
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"warn-large-file-write": {
|
|
135
|
-
"thresholdKb": 512
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
**Ba phạm vi cấu hình** được hợp nhất tự động (project → local → global). Xem [docs/configuration.mdx](docs/configuration.mdx) để biết các quy tắc hợp nhất đầy đủ.
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## Chính sách tích hợp
|
|
146
|
-
|
|
147
|
-
| Chính sách | Mô tả | Có thể cấu hình |
|
|
148
|
-
|-----------|-------|:---:|
|
|
149
|
-
| `block-sudo` | Ngăn chặn các agent chạy các lệnh hệ thống có đặc quyền | `allowPatterns` |
|
|
150
|
-
| `block-rm-rf` | Ngăn chặn việc xóa tệp đệ quy ngẫu nhiên | `allowPaths` |
|
|
151
|
-
| `block-curl-pipe-sh` | Ngăn chặn các agent từ piping các tập lệnh không tin cậy vào shell | |
|
|
152
|
-
| `block-failproofai-commands` | Ngăn chặn tự gỡ cài đặt | |
|
|
153
|
-
| `sanitize-jwt` | Dừng các mã thông báo JWT rò rỉ vào bối cảnh agent | |
|
|
154
|
-
| `sanitize-api-keys` | Dừng các khóa API rò rỉ vào bối cảnh agent | `additionalPatterns` |
|
|
155
|
-
| `sanitize-connection-strings` | Dừng thông tin xác thực cơ sở dữ liệu rò rỉ vào bối cảnh agent | |
|
|
156
|
-
| `sanitize-private-key-content` | Che đi các khối khóa riêng PEM khỏi đầu ra | |
|
|
157
|
-
| `sanitize-bearer-tokens` | Che đi các mã thông báo Authorization Bearer khỏi đầu ra | |
|
|
158
|
-
| `block-env-files` | Giữ các agent khỏi đọc các tệp .env | |
|
|
159
|
-
| `protect-env-vars` | Ngăn chặn các agent từ in các biến môi trường | |
|
|
160
|
-
| `block-read-outside-cwd` | Giữ các agent bên trong ranh giới dự án | `allowPaths` |
|
|
161
|
-
| `block-secrets-write` | Ngăn chặn ghi vào các tệp khóa riêng và chứng chỉ | `additionalPatterns` |
|
|
162
|
-
| `block-push-master` | Ngăn chặn các push ngẫu nhiên vào main/master | `protectedBranches` |
|
|
163
|
-
| `block-work-on-main` | Giữ các agent khỏi các nhánh được bảo vệ | `protectedBranches` |
|
|
164
|
-
| `block-force-push` | Ngăn chặn `git push --force` | |
|
|
165
|
-
| `warn-git-amend` | Nhắc nhở các agent trước khi sửa đổi commit | |
|
|
166
|
-
| `warn-git-stash-drop` | Nhắc nhở các agent trước khi bỏ stash | |
|
|
167
|
-
| `warn-all-files-staged` | Bắt `git add -A` ngẫu nhiên | |
|
|
168
|
-
| `warn-destructive-sql` | Bắt DROP/DELETE SQL trước khi thực thi | |
|
|
169
|
-
| `warn-schema-alteration` | Bắt ALTER TABLE trước khi thực thi | |
|
|
170
|
-
| `warn-large-file-write` | Bắt ghi tệp lớn ngoài dự kiến | `thresholdKb` |
|
|
171
|
-
| `warn-package-publish` | Bắt `npm publish` ngẫu nhiên | |
|
|
172
|
-
| `warn-background-process` | Bắt các khởi chạy quy trình nền không dự định | |
|
|
173
|
-
| `warn-global-package-install` | Bắt các cài đặt gói toàn cầu không dự định | |
|
|
174
|
-
| …và hơn nữa | | |
|
|
175
|
-
|
|
176
|
-
Chi tiết chính sách đầy đủ và tham chiếu tham số: [docs/built-in-policies.mdx](docs/built-in-policies.mdx)
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## Chính sách tùy chỉnh
|
|
181
|
-
|
|
182
|
-
Viết các chính sách của riêng bạn để giữ cho các agent đáng tin cậy và tập trung vào mục tiêu:
|
|
183
|
-
|
|
184
|
-
```js
|
|
185
|
-
import { customPolicies, allow, deny, instruct } from "failproofai";
|
|
186
|
-
|
|
187
|
-
customPolicies.add({
|
|
188
|
-
name: "no-production-writes",
|
|
189
|
-
description: "Chặn ghi vào các đường dẫn chứa 'production'",
|
|
190
|
-
match: { events: ["PreToolUse"] },
|
|
191
|
-
fn: async (ctx) => {
|
|
192
|
-
if (!["Write", "Edit"].includes(ctx.toolName ?? "")) return allow();
|
|
193
|
-
const path = ctx.toolInput?.file_path ?? "";
|
|
194
|
-
if (path.includes("production")) return deny("Ghi vào các đường dẫn production bị chặn");
|
|
195
|
-
return allow();
|
|
196
|
-
},
|
|
197
|
-
});
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
Cài đặt bằng:
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
failproofai policies --install --custom ./my-policies.js
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Trợ giúp quyết định
|
|
207
|
-
|
|
208
|
-
| Hàm | Hiệu ứng |
|
|
209
|
-
|-----|---------|
|
|
210
|
-
| `allow()` | Cho phép hoạt động |
|
|
211
|
-
| `allow(message)` | Cho phép và gửi bối cảnh thông tin tới Claude |
|
|
212
|
-
| `deny(message)` | Chặn hoạt động; tin nhắn được hiển thị cho Claude |
|
|
213
|
-
| `instruct(message)` | Thêm bối cảnh vào lời nhắc của Claude; không chặn |
|
|
214
|
-
|
|
215
|
-
### Đối tượng bối cảnh (`ctx`)
|
|
216
|
-
|
|
217
|
-
| Trường | Loại | Mô tả |
|
|
218
|
-
|-------|------|-------|
|
|
219
|
-
| `eventType` | `string` | `"PreToolUse"`, `"PostToolUse"`, `"Notification"`, `"Stop"` |
|
|
220
|
-
| `toolName` | `string` | Công cụ được gọi (`"Bash"`, `"Write"`, `"Read"`, …) |
|
|
221
|
-
| `toolInput` | `object` | Các tham số đầu vào của công cụ |
|
|
222
|
-
| `payload` | `object` | Toàn bộ tải trọng sự kiện thô |
|
|
223
|
-
| `session.cwd` | `string` | Thư mục làm việc của phiên Claude Code |
|
|
224
|
-
| `session.sessionId` | `string` | Định danh phiên |
|
|
225
|
-
| `session.transcriptPath` | `string` | Đường dẫn tới tệp bảng lưu ý phiên |
|
|
226
|
-
|
|
227
|
-
Các hook tùy chỉnh hỗ trợ nhập cục bộ chuyên chở, async/await, và truy cập vào `process.env`. Các lỗi được mở rộng (ghi vào `~/.failproofai/hook.log`, các chính sách tích hợp tiếp tục). Xem [docs/custom-hooks.mdx](docs/custom-hooks.mdx) để biết hướng dẫn đầy đủ.
|
|
228
|
-
|
|
229
|
-
### Chính sách dựa trên quy ước
|
|
230
|
-
|
|
231
|
-
Thả các tệp `*policies.{js,mjs,ts}` vào `.failproofai/policies/` và chúng sẽ được tự động tải - không cần cờ hoặc thay đổi cấu hình. Cam kết thư mục vào git và mọi thành viên trong nhóm sẽ tự động có được cùng tiêu chuẩn chất lượng.
|
|
232
|
-
|
|
233
|
-
```text
|
|
234
|
-
# Cấp độ dự án — cam kết vào git, chia sẻ với nhóm
|
|
235
|
-
.failproofai/policies/security-policies.mjs
|
|
236
|
-
.failproofai/policies/workflow-policies.mjs
|
|
237
|
-
|
|
238
|
-
# Cấp độ người dùng — cá nhân, áp dụng cho tất cả dự án
|
|
239
|
-
~/.failproofai/policies/my-policies.mjs
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
Cả hai cấp độ tải (hợp nhất). Các tệp được tải theo thứ tự bảng chữ cái trong mỗi thư mục. Tiền tố với `01-`, `02-`, v.v. để kiểm soát thứ tự. Khi nhóm của bạn khám phá ra các chế độ lỗi mới, hãy thêm một chính sách và đẩy - mọi người sẽ nhận được cập nhật trên pull tiếp theo của họ. Xem [examples/convention-policies/](examples/convention-policies/) để biết các ví dụ sẵn sàng sử dụng.
|
|
243
|
-
|
|
244
|
-
---
|
|
245
|
-
|
|
246
|
-
## Viễn thông
|
|
247
|
-
|
|
248
|
-
Failproof AI thu thập telemetry sử dụng ẩn danh qua PostHog để hiểu cách sử dụng tính năng. Không bao giờ gửi nội dung phiên, tên tệp, đầu vào công cụ hoặc thông tin cá nhân.
|
|
249
|
-
|
|
250
|
-
Vô hiệu hóa nó:
|
|
251
|
-
|
|
252
|
-
```bash
|
|
253
|
-
FAILPROOFAI_TELEMETRY_DISABLED=1 failproofai
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
## Tài liệu
|
|
259
|
-
|
|
260
|
-
| Hướng dẫn | Mô tả |
|
|
261
|
-
|---------|-------|
|
|
262
|
-
| [Getting Started](docs/getting-started.mdx) | Cài đặt và các bước đầu tiên |
|
|
263
|
-
| [Built-in Policies](docs/built-in-policies.mdx) | Tất cả 30 chính sách tích hợp với các tham số |
|
|
264
|
-
| [Custom Policies](docs/custom-policies.mdx) | Viết các chính sách của riêng bạn |
|
|
265
|
-
| [Configuration](docs/configuration.mdx) | Định dạng tệp cấu hình và hợp nhất phạm vi |
|
|
266
|
-
| [Dashboard](docs/dashboard.mdx) | Giám sát phiên và xem lại hoạt động chính sách |
|
|
267
|
-
| [Architecture](docs/architecture.mdx) | Cách hệ thống hook hoạt động |
|
|
268
|
-
| [Testing](docs/testing.mdx) | Chạy các bài kiểm tra và viết các bài kiểm tra mới |
|
|
269
|
-
|
|
270
|
-
### Chạy tài liệu cục bộ
|
|
271
|
-
|
|
272
|
-
```bash
|
|
273
|
-
docker build -f Dockerfile.docs -t failproofai-docs .
|
|
274
|
-
docker run --rm -p 3000:3000 failproofai-docs
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
Mở trang web Mintlify docs tại `http://localhost:3000`. Container sẽ theo dõi các thay đổi nếu bạn gắn thư mục docs:
|
|
278
|
-
|
|
279
|
-
```bash
|
|
280
|
-
docker run --rm -p 3000:3000 -v $(pwd)/docs:/app/docs failproofai-docs
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
---
|
|
284
|
-
|
|
285
|
-
## Ghi chú cho những người đóng góp failproofai
|
|
286
|
-
|
|
287
|
-
`.claude/settings.json` của repo này sử dụng `bun ./bin/failproofai.mjs --hook <EventType>` thay vì lệnh `npx -y failproofai` tiêu chuẩn. Điều này là vì chạy `npx -y failproofai` bên trong chính dự án failproofai tạo ra một xung đột tự tham chiếu.
|
|
288
|
-
|
|
289
|
-
Đối với tất cả các repo khác, cách tiếp cận được khuyến nghị là `npx -y failproofai`, được cài đặt qua:
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
failproofai policies --install --scope project
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
## Đóng góp
|
|
296
|
-
|
|
297
|
-
Xem [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
298
|
-
|
|
299
|
-
---
|
|
300
|
-
|
|
301
|
-
## Giấy phép
|
|
302
|
-
|
|
303
|
-
Xem [LICENSE](LICENSE).
|
|
304
|
-
|
|
305
|
-
---
|
|
306
|
-
|
|
307
|
-
Được xây dựng và Bảo trì bởi **ExosphereHost: Reliability Research Lab cho các Agent của bạn**. Chúng tôi giúp các doanh nghiệp và startups cải thiện độ tin cậy của các AI agent của họ thông qua các agent, phần mềm và chuyên môn của riêng chúng tôi. Tìm hiểu thêm tại [exosphere.host](https://exosphere.host).
|