failproofai 1.0.13-beta.2 → 1.0.13
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 +4 -4
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +2 -2
- 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 +2 -2
- 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 +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- 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/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +2 -2
- package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
- package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/project/[name]/page/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/app/settings/page/server-reference-manifest.json +8 -8
- package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/_0tovk6q0miud6._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3ycqv17cl._.js +1 -1
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4vkpxxu7._.js +1 -1
- package/.next/standalone/.next/server/chunks/src_hooks_0_em82s16zfym._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__08ch3staq3ejw._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bigvy9xmv2ka._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0h86bl2qf0k_o._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0pia5h3p8re4c._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1-ey9fgesfbc0._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__15usvs-ms-0hf._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__16gb3_92zvk5x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1avi2kypusyb_._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__19nvo1qfswchs._.js → [root-of-the-server]__1jq2bh84rafc7._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1r7drlqli-ado._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0eoura3_9gjb-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0ouu886szh6yj._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0pedwblqdoh58._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{_1nvqg4si0splb._.js → _100nvr7rei3us._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_1djqs9i27e4kg._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo5_vm5f.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_actions_get-scheduled-audit_ts_0ei9snixb5fd-._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47q0xq5w._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x33jqb6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpcz0uxur._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_settings_02tf1h47jmhhd._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_html-to-image_es_index_1gk40bvx2bftt.js → node_modules_html-to-image_es_index_1cmkmhnty0-x7.js} +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_posthog-node_dist_entrypoints_index_node_mjs_11bnuznb72p7z._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/package_json_[json]_cjs_013tntikdft59._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_0agdmptetetdt._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_hooks_0mdwgjisv4fub._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/preview-props.json +3 -3
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +23 -23
- package/.next/standalone/.next/static/chunks/{1mkf3bas1g5ka.js → 0mm-e5t9denbu.js} +1 -1
- package/.next/standalone/.next/static/chunks/{3lgxb73wehfv2.js → 0rucj5pu307i4.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2q-6h4rclnu98.js → 1-0se0uwja_ny.js} +1 -1
- package/.next/standalone/.next/static/chunks/{061bksch79zq2.js → 173vw1xs-5m5g.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1l9lji2he-mbw.js → 20cme7d6wv6md.js} +1 -1
- package/.next/standalone/.next/static/chunks/2mz-k_jt_76xt.js +1 -0
- package/.next/standalone/.next/static/chunks/{2f9-xdgd1o3r5.js → 2u1m0f-wnhz44.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2x-77r0k0xm3b.js → 2ytnb83xmjn3u.js} +1 -1
- package/.next/standalone/.next/static/chunks/{44rukkkzacqkl.js → 40g_e46c1-j4k.js} +2 -2
- package/.next/standalone/.next/static/chunks/44yz8zx53euy1.js +1 -0
- package/.next/standalone/hermes-plugin/plugin.yaml +1 -1
- package/.next/standalone/package.json +11 -10
- package/.next/standalone/sdk/python/uv.lock +6 -6
- package/.next/standalone/sdk/typescript/package-lock.json +31 -61
- package/.next/standalone/sdk/typescript/package.json +3 -0
- package/.next/standalone/server.js +1 -1
- package/dist/cli.mjs +84 -43
- package/dist/worker.mjs +34 -5
- package/hermes-plugin/plugin.yaml +1 -1
- package/openclaw-plugin/daemon-client.js +254 -0
- package/openclaw-plugin/hooks.js +187 -0
- package/openclaw-plugin/index.js +17 -211
- package/package.json +11 -10
- package/src/hooks/antigravity-path-guard.ts +73 -0
- package/src/hooks/daemon-service.ts +26 -21
- package/src/hooks/enforcement-capability.ts +1 -1
- package/src/hooks/handler.ts +24 -0
- package/src/hooks/integrations.ts +5 -2
- package/src/hooks/shell-quote.ts +9 -0
- package/src/hooks/types.ts +20 -17
- package/src/hooks/uninstall-cli.ts +28 -9
- package/.next/standalone/.next/static/chunks/22gs9785ug-vp.js +0 -1
- package/.next/standalone/.next/static/chunks/2xox4fr0q-ftn.js +0 -1
- /package/.next/standalone/.next/static/{TdOlUedz_AHC-0Ops67a_ → 4MgI0mZP1iVhhocpUivMm}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{TdOlUedz_AHC-0Ops67a_ → 4MgI0mZP1iVhhocpUivMm}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{TdOlUedz_AHC-0Ops67a_ → 4MgI0mZP1iVhhocpUivMm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33437,e=>{var t=e.i(95187);let a=(0,t.createServerReference)("6073b07b93d2e7139bd8084b7b31b19f0f2c0350ef",t.callServer,void 0,t.findSourceMapURL,"searchHookActivityAction");e.s(["f",0,a])},73520,e=>{var t=e.i(43476),a=e.i(24071),r=e.i(67927);e.s(["f",0,function({currentPage:e,totalPages:s,onPageChange:n}){if(s<=1)return null;let l=e=>`px-3 py-2 text-sm rounded-md transition-colors flex items-center gap-1 bg-muted text-muted-foreground ${e?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`;return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-4",children:[(0,t.jsxs)("button",{onClick:()=>n(e-1),disabled:1===e,className:l(1===e),"aria-label":"Previous page",children:[(0,t.jsx)(a.f,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Previous"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(()=>{if(s<=7)return Array.from({length:s},(e,t)=>t+1);let t=[1],a=Math.max(2,e-1),r=Math.min(s-1,e+1);e<=3&&(r=Math.min(5,s-1)),e>=s-2&&(a=Math.max(2,s-4)),a>2&&t.push("ellipsis-start");for(let e=a;e<=r;e++)t.push(e);return r<s-1&&t.push("ellipsis-end"),t.push(s),t})().map(a=>"string"==typeof a?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},a):(0,t.jsx)("button",{onClick:()=>n(a),className:`min-w-[2.5rem] px-3 py-2 text-sm rounded-md transition-colors ${e===a?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"aria-label":`Page ${a}`,"aria-current":e===a?"page":void 0,children:a},a))}),(0,t.jsxs)("button",{onClick:()=>n(e+1),disabled:e===s,className:l(e===s),"aria-label":"Next page",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:"Next"}),(0,t.jsx)(r.f,{className:"w-4 h-4"})]})]})}])},34713,e=>{e.s(["M",0,function(e){if(e<1e3)return`${e}ms`;let t=Math.round(e/100);if(t<600)return`${(t/10).toFixed(1)}s`;let a=Math.round(e/1e3);if(a<3600){let e=Math.floor(a/60);return`${e}m ${a%60}s`}let r=Math.round(e/6e4),s=Math.floor(r/60);return`${s}h ${r%60}m`},"g",0,function(e){let t=Date.now()-e;return t<6e4?`${Math.max(1,Math.floor(t/1e3))}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:`${Math.floor(t/864e5)}d ago`}])},24071,e=>{var t=e.i(56420);let a={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],24071)},67927,e=>{var t=e.i(56420);let a={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],67927)},16306,e=>{var t=e.i(56420);let a={name:"shield-alert",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],16306)},84026,29407,e=>{var t=e.i(56420);let a={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],84026);let s={name:"shield-x",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],aliases:["shield-close"]};s.node;let n=(0,t.f)(s);e.s(["f",0,n],29407)},82954,e=>{var t=e.i(56420);let a={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};a.node;let r=(0,t.f)(a);e.s(["f",0,r],82954)}])})();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "failproofai",
|
|
3
|
-
"version": "1.0.13
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Observability and enforcement for AI agent harnesses. 40 built-in policies hooked into 12 of them — Claude Code, Codex, Cursor, Hermes, OpenClaw and more — blocking the tool call before it runs. Local dashboard included, no account needed.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"failproofai": "./dist/cli.mjs",
|
|
@@ -123,18 +123,19 @@
|
|
|
123
123
|
"brace-expansion": "5.0.12",
|
|
124
124
|
"sharp": "0.35.5",
|
|
125
125
|
"source-map-js": "1.2.2",
|
|
126
|
-
"browserslist": "4.28.8"
|
|
126
|
+
"browserslist": "4.28.8",
|
|
127
|
+
"minimatch": "11.0.3"
|
|
127
128
|
},
|
|
128
129
|
"optionalDependencies": {
|
|
129
|
-
"@failproofai/failproofaid-linux-x64": "1.0.13
|
|
130
|
-
"@failproofai/failproofaid-linux-arm64": "1.0.13
|
|
131
|
-
"@failproofai/failproofaid-darwin-x64": "1.0.13
|
|
132
|
-
"@failproofai/failproofaid-darwin-arm64": "1.0.13
|
|
130
|
+
"@failproofai/failproofaid-linux-x64": "1.0.13",
|
|
131
|
+
"@failproofai/failproofaid-linux-arm64": "1.0.13",
|
|
132
|
+
"@failproofai/failproofaid-darwin-x64": "1.0.13",
|
|
133
|
+
"@failproofai/failproofaid-darwin-arm64": "1.0.13"
|
|
133
134
|
},
|
|
134
135
|
"failproofaidBinaries": {
|
|
135
|
-
"linux-x64": "
|
|
136
|
-
"linux-arm64": "
|
|
137
|
-
"darwin-x64": "
|
|
138
|
-
"darwin-arm64": "
|
|
136
|
+
"linux-x64": "f4e4047ea3b1fc005f2b2d825ab76b02f83a322d946f3f25d09f33e9e913f79d",
|
|
137
|
+
"linux-arm64": "5bd5468230f345cedef952293dbd085d68fead2029c88c51d04aefaff629f99b",
|
|
138
|
+
"darwin-x64": "897c2e00e392ee7bd429cd4c65132fd2b1a5cd7c8c66aa8a87d4a9cfdd6117c9",
|
|
139
|
+
"darwin-arm64": "a63bf038330f2a804d659a16d81d0bca265c08a9b37677d0e252106659848366"
|
|
139
140
|
}
|
|
140
141
|
}
|
|
@@ -2,12 +2,12 @@ version = 1
|
|
|
2
2
|
revision = 5
|
|
3
3
|
requires-python = ">=3.11"
|
|
4
4
|
resolution-markers = [
|
|
5
|
-
"python_full_version == '3.13.*'",
|
|
6
5
|
"python_full_version >= '3.14' and sys_platform == 'win32'",
|
|
7
6
|
"python_full_version >= '3.14' and sys_platform != 'win32'",
|
|
7
|
+
"python_full_version == '3.13.*'",
|
|
8
8
|
"python_full_version == '3.12.*' and sys_platform == 'win32'",
|
|
9
|
-
"python_full_version < '3.12' and sys_platform == 'win32'",
|
|
10
9
|
"python_full_version == '3.12.*' and sys_platform != 'win32'",
|
|
10
|
+
"python_full_version < '3.12' and sys_platform == 'win32'",
|
|
11
11
|
"python_full_version < '3.12' and sys_platform != 'win32'",
|
|
12
12
|
]
|
|
13
13
|
|
|
@@ -2534,7 +2534,7 @@ wheels = [
|
|
|
2534
2534
|
|
|
2535
2535
|
[[package]]
|
|
2536
2536
|
name = "nltk"
|
|
2537
|
-
version = "3.10.
|
|
2537
|
+
version = "3.10.4"
|
|
2538
2538
|
source = { registry = "https://pypi.org/simple" }
|
|
2539
2539
|
dependencies = [
|
|
2540
2540
|
{ name = "click" },
|
|
@@ -2543,9 +2543,9 @@ dependencies = [
|
|
|
2543
2543
|
{ name = "regex" },
|
|
2544
2544
|
{ name = "tqdm" },
|
|
2545
2545
|
]
|
|
2546
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
2546
|
+
sdist = { url = "https://files.pythonhosted.org/packages/3a/cb/bbaa9be58e95d21729c6b9194376610230e0755f6de0bf38b6acc0dce079/nltk-3.10.4.tar.gz", hash = "sha256:44679f4e9220abfd496d2c8cdb22f8425ccbe557604f9aa5cacb1c44003dabc1", size = 4300570, upload-time = "2026-10-21T11:34:35.851Z" }
|
|
2547
2547
|
wheels = [
|
|
2548
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
2548
|
+
{ url = "https://files.pythonhosted.org/packages/a2/04/e7816813e409ca874ba2fcc35455db0e4130b79eb277e1f9edd270ca3c69/nltk-3.10.4-py3-none-any.whl", hash = "sha256:769ba5413f265b7d3e87cd163cc28efa01e29eeef8bb6080bc907949d9fcfb51", size = 1722994, upload-time = "2026-10-21T11:34:27.975Z" },
|
|
2549
2549
|
]
|
|
2550
2550
|
|
|
2551
2551
|
[[package]]
|
|
@@ -2636,9 +2636,9 @@ name = "numpy"
|
|
|
2636
2636
|
version = "2.5.2"
|
|
2637
2637
|
source = { registry = "https://pypi.org/simple" }
|
|
2638
2638
|
resolution-markers = [
|
|
2639
|
-
"python_full_version == '3.13.*'",
|
|
2640
2639
|
"python_full_version >= '3.14' and sys_platform == 'win32'",
|
|
2641
2640
|
"python_full_version >= '3.14' and sys_platform != 'win32'",
|
|
2641
|
+
"python_full_version == '3.13.*'",
|
|
2642
2642
|
"python_full_version == '3.12.*' and sys_platform == 'win32'",
|
|
2643
2643
|
"python_full_version == '3.12.*' and sys_platform != 'win32'",
|
|
2644
2644
|
]
|
|
@@ -255,6 +255,13 @@
|
|
|
255
255
|
"url": "https://github.com/sponsors/nzakas"
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
|
+
"node_modules/@isaacs/nonrecursive-glob-match": {
|
|
259
|
+
"version": "1.0.3",
|
|
260
|
+
"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.0.3.tgz",
|
|
261
|
+
"integrity": "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==",
|
|
262
|
+
"dev": true,
|
|
263
|
+
"license": "BlueOak-1.0.0"
|
|
264
|
+
},
|
|
258
265
|
"node_modules/@jridgewell/resolve-uri": {
|
|
259
266
|
"version": "3.1.2",
|
|
260
267
|
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
|
@@ -904,45 +911,6 @@
|
|
|
904
911
|
"typescript": ">=4.8.4 <6.1.0"
|
|
905
912
|
}
|
|
906
913
|
},
|
|
907
|
-
"node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
|
|
908
|
-
"version": "4.0.4",
|
|
909
|
-
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
|
910
|
-
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
911
|
-
"dev": true,
|
|
912
|
-
"license": "MIT",
|
|
913
|
-
"engines": {
|
|
914
|
-
"node": "18 || 20 || >=22"
|
|
915
|
-
}
|
|
916
|
-
},
|
|
917
|
-
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
|
918
|
-
"version": "5.0.12",
|
|
919
|
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
|
920
|
-
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
|
921
|
-
"dev": true,
|
|
922
|
-
"license": "MIT",
|
|
923
|
-
"dependencies": {
|
|
924
|
-
"balanced-match": "^4.0.2"
|
|
925
|
-
},
|
|
926
|
-
"engines": {
|
|
927
|
-
"node": "20 || >=22"
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
|
931
|
-
"version": "10.2.6",
|
|
932
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
|
|
933
|
-
"integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
|
|
934
|
-
"dev": true,
|
|
935
|
-
"license": "BlueOak-1.0.0",
|
|
936
|
-
"dependencies": {
|
|
937
|
-
"brace-expansion": "^5.0.8"
|
|
938
|
-
},
|
|
939
|
-
"engines": {
|
|
940
|
-
"node": "18 || 20 || >=22"
|
|
941
|
-
},
|
|
942
|
-
"funding": {
|
|
943
|
-
"url": "https://github.com/sponsors/isaacs"
|
|
944
|
-
}
|
|
945
|
-
},
|
|
946
914
|
"node_modules/@typescript-eslint/utils": {
|
|
947
915
|
"version": "8.70.1",
|
|
948
916
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.70.1.tgz",
|
|
@@ -1110,21 +1078,26 @@
|
|
|
1110
1078
|
}
|
|
1111
1079
|
},
|
|
1112
1080
|
"node_modules/balanced-match": {
|
|
1113
|
-
"version": "
|
|
1114
|
-
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-
|
|
1115
|
-
"integrity": "sha512-
|
|
1081
|
+
"version": "4.0.4",
|
|
1082
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
|
1083
|
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
1116
1084
|
"dev": true,
|
|
1117
|
-
"license": "MIT"
|
|
1085
|
+
"license": "MIT",
|
|
1086
|
+
"engines": {
|
|
1087
|
+
"node": "18 || 20 || >=22"
|
|
1088
|
+
}
|
|
1118
1089
|
},
|
|
1119
1090
|
"node_modules/brace-expansion": {
|
|
1120
|
-
"version": "
|
|
1121
|
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-
|
|
1122
|
-
"integrity": "sha512-
|
|
1091
|
+
"version": "5.0.12",
|
|
1092
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
|
1093
|
+
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
|
1123
1094
|
"dev": true,
|
|
1124
1095
|
"license": "MIT",
|
|
1125
1096
|
"dependencies": {
|
|
1126
|
-
"balanced-match": "^
|
|
1127
|
-
|
|
1097
|
+
"balanced-match": "^4.0.2"
|
|
1098
|
+
},
|
|
1099
|
+
"engines": {
|
|
1100
|
+
"node": "20 || >=22"
|
|
1128
1101
|
}
|
|
1129
1102
|
},
|
|
1130
1103
|
"node_modules/callsites": {
|
|
@@ -1184,13 +1157,6 @@
|
|
|
1184
1157
|
"dev": true,
|
|
1185
1158
|
"license": "MIT"
|
|
1186
1159
|
},
|
|
1187
|
-
"node_modules/concat-map": {
|
|
1188
|
-
"version": "0.0.1",
|
|
1189
|
-
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
1190
|
-
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
|
1191
|
-
"dev": true,
|
|
1192
|
-
"license": "MIT"
|
|
1193
|
-
},
|
|
1194
1160
|
"node_modules/cross-spawn": {
|
|
1195
1161
|
"version": "7.0.6",
|
|
1196
1162
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
|
@@ -2033,16 +1999,20 @@
|
|
|
2033
1999
|
}
|
|
2034
2000
|
},
|
|
2035
2001
|
"node_modules/minimatch": {
|
|
2036
|
-
"version": "
|
|
2037
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-
|
|
2038
|
-
"integrity": "sha512-
|
|
2002
|
+
"version": "11.0.3",
|
|
2003
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.3.tgz",
|
|
2004
|
+
"integrity": "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==",
|
|
2039
2005
|
"dev": true,
|
|
2040
|
-
"license": "
|
|
2006
|
+
"license": "BlueOak-1.0.0",
|
|
2041
2007
|
"dependencies": {
|
|
2042
|
-
"
|
|
2008
|
+
"@isaacs/nonrecursive-glob-match": "^1.0.3",
|
|
2009
|
+
"brace-expansion": "^5.0.12"
|
|
2043
2010
|
},
|
|
2044
2011
|
"engines": {
|
|
2045
|
-
"node": "
|
|
2012
|
+
"node": "18 || 20 || >=22"
|
|
2013
|
+
},
|
|
2014
|
+
"funding": {
|
|
2015
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
2046
2016
|
}
|
|
2047
2017
|
},
|
|
2048
2018
|
"node_modules/ms": {
|
|
@@ -9,7 +9,7 @@ const currentPort = parseInt(process.env.PORT, 10) || 3000
|
|
|
9
9
|
const hostname = process.env.HOSTNAME || '0.0.0.0'
|
|
10
10
|
|
|
11
11
|
let keepAliveTimeout = parseInt(process.env.KEEP_ALIVE_TIMEOUT, 10)
|
|
12
|
-
const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"1.0.13
|
|
12
|
+
const nextConfig = {"env":{"NEXT_PUBLIC_APP_VERSION":"1.0.13"},"typescript":{"ignoreBuildErrors":false},"typedRoutes":false,"distDir":"./.next","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.ts","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"instrumentationClientInject":[],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":14400,"formats":["image/webp"],"maximumRedirects":3,"maximumResponseBody":50000000,"dangerouslyAllowLocalIP":false,"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","localPatterns":[{"pathname":"**","search":""}],"remotePatterns":[],"qualities":[75],"unoptimized":true,"customCacheHandler":false},"devIndicators":{"position":"bottom-left"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"reactProductionProfiling":false,"reactStrictMode":null,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{"serverFunctions":true,"browserToTerminal":"warn"},"compiler":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"output":"standalone","modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/home/runner/work/failproofai/failproofai","enablePrerenderSourceMaps":true,"cacheComponents":false,"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":30,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":31536000}},"cacheHandlers":{},"deprecated":{},"experimental":{"agentUpgrade":"security","agentFeedback":false,"coldCacheBadge":false,"collapseAdapterRoutes":true,"devValidationWorker":true,"useSkewCookie":false,"cssChunking":true,"multiZoneDraftMode":false,"appNavFailHandling":false,"parallelRouteMetadata":false,"prerenderEarlyExit":true,"serverMinification":true,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"cachedNavigations":false,"dynamicOnHover":false,"reactBrowserBailout":true,"useOffline":false,"varyParams":true,"optimisticRouting":true,"concurrentRouterQueue":false,"instrumentationClientRouterTransitionEvents":false,"prefetchInlining":{"maxSize":2048,"maxBundleSize":10240},"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","proxyPrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":3,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptOperationCache":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"imgOptMozjpeg":true,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"devMemoryThresholdRestart":true,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"requestInsights":false,"largePageDataBytes":128000,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"authInterrupts":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"strictRouteTypes":false,"useTypeScriptCli":true,"removeUncaughtErrorAndRejectionListeners":false,"validateRSCRequestHeaders":true,"staleTimes":{"dynamic":0,"static":300},"reactDebugChannel":true,"serverComponentsHmrCache":true,"serverComponentsHmrCancellation":false,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"transitionIndicator":false,"gestureTransition":false,"inlineCss":false,"useCache":false,"useCacheStaticRootParamTracking":false,"globalNotFound":false,"explicitParallelRouteChildren":true,"strictRouteMatching":true,"browserDebugInfoInTerminal":"warn","lockDistDir":true,"disableResumeDataCacheCompression":false,"proxyClientMaxBodySize":10485760,"hideLogsAfterAbort":false,"mcpServer":true,"exposeRuntimeErrorsToHMR":false,"turbopackFileSystemCacheForDev":true,"turbopackFileSystemCacheForBuild":true,"turbopackStaleOutputMaxAge":604800000,"turbopackInferModuleSideEffects":true,"turbopackPluginRuntimeStrategy":"childProcesses","turbopackSharedRuntime":true,"turbopackMemoryEvictionMode":"auto","optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-sqlite-node","@effect/sql-sqlite-bun","@effect/sql-sqlite-wasm","@effect/sql-sqlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"useCacheTimeout":54,"instantInsights":{"validationLevel":"warning"},"trustHostHeader":false,"isExperimentalCompile":false},"htmlLimitedBots":"[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight","bundlePagesRouterDependencies":false,"configFileName":"next.config.ts","outputFileTracingExcludes":{"*":["node_modules/@img/**","node_modules/sharp/**"]},"turbopack":{"root":"/home/runner/work/failproofai/failproofai"},"repoRoot":"/home/runner/work/failproofai/failproofai","distDirRoot":".next"}
|
|
13
13
|
|
|
14
14
|
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG = JSON.stringify(nextConfig)
|
|
15
15
|
|
package/dist/cli.mjs
CHANGED
|
@@ -29,7 +29,7 @@ var __esm = (fn, res, err) => () => {
|
|
|
29
29
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
30
30
|
|
|
31
31
|
// package.json
|
|
32
|
-
var version2 = "1.0.13
|
|
32
|
+
var version2 = "1.0.13", package_default;
|
|
33
33
|
var init_package = __esm(() => {
|
|
34
34
|
package_default = {
|
|
35
35
|
name: "failproofai",
|
|
@@ -156,19 +156,20 @@ var init_package = __esm(() => {
|
|
|
156
156
|
"brace-expansion": "5.0.12",
|
|
157
157
|
sharp: "0.35.5",
|
|
158
158
|
"source-map-js": "1.2.2",
|
|
159
|
-
browserslist: "4.28.8"
|
|
159
|
+
browserslist: "4.28.8",
|
|
160
|
+
minimatch: "11.0.3"
|
|
160
161
|
},
|
|
161
162
|
optionalDependencies: {
|
|
162
|
-
"@failproofai/failproofaid-linux-x64": "1.0.13
|
|
163
|
-
"@failproofai/failproofaid-linux-arm64": "1.0.13
|
|
164
|
-
"@failproofai/failproofaid-darwin-x64": "1.0.13
|
|
165
|
-
"@failproofai/failproofaid-darwin-arm64": "1.0.13
|
|
163
|
+
"@failproofai/failproofaid-linux-x64": "1.0.13",
|
|
164
|
+
"@failproofai/failproofaid-linux-arm64": "1.0.13",
|
|
165
|
+
"@failproofai/failproofaid-darwin-x64": "1.0.13",
|
|
166
|
+
"@failproofai/failproofaid-darwin-arm64": "1.0.13"
|
|
166
167
|
},
|
|
167
168
|
failproofaidBinaries: {
|
|
168
|
-
"linux-x64": "
|
|
169
|
-
"linux-arm64": "
|
|
170
|
-
"darwin-x64": "
|
|
171
|
-
"darwin-arm64": "
|
|
169
|
+
"linux-x64": "f4e4047ea3b1fc005f2b2d825ab76b02f83a322d946f3f25d09f33e9e913f79d",
|
|
170
|
+
"linux-arm64": "5bd5468230f345cedef952293dbd085d68fead2029c88c51d04aefaff629f99b",
|
|
171
|
+
"darwin-x64": "897c2e00e392ee7bd429cd4c65132fd2b1a5cd7c8c66aa8a87d4a9cfdd6117c9",
|
|
172
|
+
"darwin-arm64": "a63bf038330f2a804d659a16d81d0bca265c08a9b37677d0e252106659848366"
|
|
172
173
|
}
|
|
173
174
|
};
|
|
174
175
|
});
|
|
@@ -1550,6 +1551,7 @@ var init_types = __esm(() => {
|
|
|
1550
1551
|
ANTIGRAVITY_TOOL_MAP = {
|
|
1551
1552
|
run_command: "Bash",
|
|
1552
1553
|
write_to_file: "Write",
|
|
1554
|
+
write_file: "Write",
|
|
1553
1555
|
read_file: "Read",
|
|
1554
1556
|
view_file: "Read",
|
|
1555
1557
|
edit_file: "Edit",
|
|
@@ -1562,9 +1564,9 @@ var init_types = __esm(() => {
|
|
|
1562
1564
|
};
|
|
1563
1565
|
ANTIGRAVITY_TOOL_INPUT_MAP = {
|
|
1564
1566
|
Bash: { CommandLine: "command", Cwd: "cwd" },
|
|
1565
|
-
Write: { TargetFile: "file_path", CodeContent: "content" },
|
|
1566
|
-
Edit: { TargetFile: "file_path" },
|
|
1567
|
-
Read: { TargetFile: "file_path", AbsolutePath: "file_path", File: "file_path" }
|
|
1567
|
+
Write: { Path: "file_path", Content: "content", TargetFile: "file_path", CodeContent: "content" },
|
|
1568
|
+
Edit: { Path: "file_path", Target: "old_string", Replacement: "new_string", TargetFile: "file_path" },
|
|
1569
|
+
Read: { Path: "file_path", TargetFile: "file_path", AbsolutePath: "file_path", File: "file_path" }
|
|
1568
1570
|
};
|
|
1569
1571
|
GOOSE_HOOK_SCOPES = ["user", "project"];
|
|
1570
1572
|
GOOSE_HOOK_EVENT_TYPES = [
|
|
@@ -6039,6 +6041,31 @@ var init_builtin_policies = __esm(() => {
|
|
|
6039
6041
|
}));
|
|
6040
6042
|
});
|
|
6041
6043
|
|
|
6044
|
+
// src/hooks/antigravity-path-guard.ts
|
|
6045
|
+
function antigravityPathGuardActive(paused, cloudPolicies) {
|
|
6046
|
+
return !paused || cloudPolicies.some((p) => p.effect !== "observe");
|
|
6047
|
+
}
|
|
6048
|
+
function antigravityCallLacksPath(eventType, toolName, toolInput) {
|
|
6049
|
+
if (eventType !== "PreToolUse")
|
|
6050
|
+
return false;
|
|
6051
|
+
if (!toolName || !ANTIGRAVITY_PATH_GUARD_MATCH.toolNames?.includes(toolName))
|
|
6052
|
+
return false;
|
|
6053
|
+
const path = toolInput?.file_path;
|
|
6054
|
+
return typeof path !== "string" || path.trim() === "";
|
|
6055
|
+
}
|
|
6056
|
+
function antigravityPathGuard(ctx) {
|
|
6057
|
+
if (!antigravityCallLacksPath(ctx.eventType, ctx.toolName, ctx.toolInput))
|
|
6058
|
+
return allow();
|
|
6059
|
+
return deny(`failproofai could not find a file path in this ${ctx.toolName ?? "file"} call, so it cannot check it against your policies. ` + "Your Antigravity version may have changed its tool arguments: update failproofai.");
|
|
6060
|
+
}
|
|
6061
|
+
var ANTIGRAVITY_PATH_GUARD_NAME = "failproofai/antigravity-file-path-required", ANTIGRAVITY_PATH_GUARD_DESCRIPTION = "Refuse an Antigravity file tool call with no file path failproofai can check.", ANTIGRAVITY_PATH_GUARD_MATCH;
|
|
6062
|
+
var init_antigravity_path_guard = __esm(() => {
|
|
6063
|
+
ANTIGRAVITY_PATH_GUARD_MATCH = {
|
|
6064
|
+
events: ["PreToolUse"],
|
|
6065
|
+
toolNames: ["Read", "Write", "Edit"]
|
|
6066
|
+
};
|
|
6067
|
+
});
|
|
6068
|
+
|
|
6042
6069
|
// node_modules/yaml/dist/nodes/identity.js
|
|
6043
6070
|
var require_identity = __commonJS(function(exports) {
|
|
6044
6071
|
var ALIAS = Symbol.for("yaml.alias");
|
|
@@ -13318,6 +13345,11 @@ var init_daemon_download = __esm(() => {
|
|
|
13318
13345
|
init_fp_home();
|
|
13319
13346
|
});
|
|
13320
13347
|
|
|
13348
|
+
// src/hooks/shell-quote.ts
|
|
13349
|
+
function shellQuote(value) {
|
|
13350
|
+
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
13351
|
+
}
|
|
13352
|
+
|
|
13321
13353
|
// src/hooks/daemon-client.ts
|
|
13322
13354
|
import { createConnection as createConnection2 } from "node:net";
|
|
13323
13355
|
import { existsSync as existsSync10 } from "node:fs";
|
|
@@ -13575,9 +13607,6 @@ function resolveCliCommand() {
|
|
|
13575
13607
|
return null;
|
|
13576
13608
|
return `${shellQuote(process.execPath)} ${shellQuote(cliScript)}`;
|
|
13577
13609
|
}
|
|
13578
|
-
function shellQuote(value) {
|
|
13579
|
-
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
13580
|
-
}
|
|
13581
13610
|
function workerScriptPath() {
|
|
13582
13611
|
if (process.env.FAILPROOFAI_WORKER_CMD)
|
|
13583
13612
|
return null;
|
|
@@ -13853,9 +13882,9 @@ function daemonInstallCommands(binaryPath, workerCmd, cliCmd) {
|
|
|
13853
13882
|
const target = systemBinaryTarget(binaryPath);
|
|
13854
13883
|
const dir = systemBinaryDir();
|
|
13855
13884
|
const stage = target ? [
|
|
13856
|
-
`sudo install -d -m 0755 ${dir}`,
|
|
13857
|
-
`sudo install -m 0755 ${binaryPath} ${target}`,
|
|
13858
|
-
`{ sudo restorecon -R ${systemBinaryRoot()} 2>/dev/null || true; }`
|
|
13885
|
+
`sudo install -d -m 0755 ${shellQuote(dir)}`,
|
|
13886
|
+
`sudo install -m 0755 ${shellQuote(binaryPath)} ${shellQuote(target)}`,
|
|
13887
|
+
`{ sudo restorecon -R ${shellQuote(systemBinaryRoot())} 2>/dev/null || true; }`
|
|
13859
13888
|
] : [];
|
|
13860
13889
|
return [
|
|
13861
13890
|
...stage,
|
|
@@ -14141,15 +14170,15 @@ async function uninstallDaemonService() {
|
|
|
14141
14170
|
try {
|
|
14142
14171
|
if (process.platform === "linux") {
|
|
14143
14172
|
const unitPath = systemdUnitPath();
|
|
14144
|
-
if (
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
}
|
|
14173
|
+
if (existsSync11(unitPath)) {
|
|
14174
|
+
try {
|
|
14175
|
+
runPrivileged("systemctl", ["disable", "--now", systemdUnitName()]);
|
|
14176
|
+
} catch {}
|
|
14177
|
+
runPrivileged("rm", ["-f", unitPath]);
|
|
14178
|
+
try {
|
|
14179
|
+
runPrivileged("systemctl", ["daemon-reload"]);
|
|
14180
|
+
} catch {}
|
|
14181
|
+
}
|
|
14153
14182
|
const binRoot = systemBinaryRoot();
|
|
14154
14183
|
if (existsSync11(binRoot)) {
|
|
14155
14184
|
runPrivileged("rm", ["-rf", binRoot]);
|
|
@@ -16414,6 +16443,7 @@ var init_integrations = __esm(() => {
|
|
|
16414
16443
|
openclaw = {
|
|
16415
16444
|
id: "openclaw",
|
|
16416
16445
|
displayName: "OpenClaw",
|
|
16446
|
+
requiresHealthyDaemon: true,
|
|
16417
16447
|
scopes: OPENCLAW_HOOK_SCOPES,
|
|
16418
16448
|
eventTypes: OPENCLAW_HOOK_EVENT_TYPES,
|
|
16419
16449
|
getSettingsPath() {
|
|
@@ -33426,6 +33456,9 @@ async function evaluateHookEvent(eventType, cli = "claude", stdinPayload, opts)
|
|
|
33426
33456
|
cli
|
|
33427
33457
|
});
|
|
33428
33458
|
}
|
|
33459
|
+
if (cli === "antigravity" && antigravityPathGuardActive(Boolean(activePause), cloudManagedPolicies) && antigravityCallLacksPath(canonicalEventType, parsed.tool_name, parsed.tool_input)) {
|
|
33460
|
+
registerPolicy(ANTIGRAVITY_PATH_GUARD_NAME, ANTIGRAVITY_PATH_GUARD_DESCRIPTION, antigravityPathGuard, ANTIGRAVITY_PATH_GUARD_MATCH);
|
|
33461
|
+
}
|
|
33429
33462
|
cloudDeployment = cloudManagedPolicies[0]?.deployment ?? readCloudJevState().deployment ?? undefined;
|
|
33430
33463
|
let installedPacks = [];
|
|
33431
33464
|
try {
|
|
@@ -33737,6 +33770,7 @@ var init_handler = __esm(() => {
|
|
|
33737
33770
|
init_tool_name_canonicalize();
|
|
33738
33771
|
init_hooks_config();
|
|
33739
33772
|
init_builtin_policies();
|
|
33773
|
+
init_antigravity_path_guard();
|
|
33740
33774
|
init_policy_evaluator();
|
|
33741
33775
|
init_policy_registry();
|
|
33742
33776
|
init_custom_hooks_loader();
|
|
@@ -47078,7 +47112,7 @@ function resolveWorkerCommand2() {
|
|
|
47078
47112
|
const workerScript = resolve39(packageRoot, "dist", "worker.mjs");
|
|
47079
47113
|
if (!existsSync56(workerScript))
|
|
47080
47114
|
return null;
|
|
47081
|
-
return `${
|
|
47115
|
+
return `${shellQuote(process.execPath)} ${shellQuote(workerScript)}`;
|
|
47082
47116
|
}
|
|
47083
47117
|
function resolveCliCommand2() {
|
|
47084
47118
|
if (process.env.FAILPROOFAI_CLI_CMD)
|
|
@@ -47089,10 +47123,7 @@ function resolveCliCommand2() {
|
|
|
47089
47123
|
const cliScript = resolve39(packageRoot, "dist", "cli.mjs");
|
|
47090
47124
|
if (!existsSync56(cliScript))
|
|
47091
47125
|
return null;
|
|
47092
|
-
return `${
|
|
47093
|
-
}
|
|
47094
|
-
function shellQuote2(value) {
|
|
47095
|
-
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
47126
|
+
return `${shellQuote(process.execPath)} ${shellQuote(cliScript)}`;
|
|
47096
47127
|
}
|
|
47097
47128
|
function workerScriptPath2() {
|
|
47098
47129
|
if (process.env.FAILPROOFAI_WORKER_CMD)
|
|
@@ -47358,9 +47389,9 @@ function daemonInstallCommands2(binaryPath, workerCmd, cliCmd) {
|
|
|
47358
47389
|
const target = systemBinaryTarget2(binaryPath);
|
|
47359
47390
|
const dir = systemBinaryDir2();
|
|
47360
47391
|
const stage = target ? [
|
|
47361
|
-
`sudo install -d -m 0755 ${dir}`,
|
|
47362
|
-
`sudo install -m 0755 ${binaryPath} ${target}`,
|
|
47363
|
-
`{ sudo restorecon -R ${systemBinaryRoot2()} 2>/dev/null || true; }`
|
|
47392
|
+
`sudo install -d -m 0755 ${shellQuote(dir)}`,
|
|
47393
|
+
`sudo install -m 0755 ${shellQuote(binaryPath)} ${shellQuote(target)}`,
|
|
47394
|
+
`{ sudo restorecon -R ${shellQuote(systemBinaryRoot2())} 2>/dev/null || true; }`
|
|
47364
47395
|
] : [];
|
|
47365
47396
|
return [
|
|
47366
47397
|
...stage,
|
|
@@ -47660,12 +47691,14 @@ function survey(cwd) {
|
|
|
47660
47691
|
daemonConfigured = readConfig().daemon.configured;
|
|
47661
47692
|
} catch {}
|
|
47662
47693
|
const servicePath = isDaemonSupportedPlatform() ? daemonServiceFilePath() : null;
|
|
47694
|
+
const stagedBinaryDir = isDaemonSupportedPlatform() ? daemonSystemBinaryDir() : null;
|
|
47663
47695
|
return {
|
|
47664
47696
|
clis,
|
|
47665
47697
|
skillDirs: installedAgentSkillDirs(),
|
|
47666
47698
|
codexSystemPath: codexSystemHooksPresent() ? codexSystemConfigPath() : null,
|
|
47667
47699
|
servicePath,
|
|
47668
47700
|
serviceInstalled: !!servicePath && existsSync57(servicePath),
|
|
47701
|
+
stagedBinaryDir: stagedBinaryDir && existsSync57(stagedBinaryDir) ? stagedBinaryDir : null,
|
|
47669
47702
|
daemonConfigured,
|
|
47670
47703
|
homeExists: existsSync57(failproofaiHome())
|
|
47671
47704
|
};
|
|
@@ -47677,7 +47710,7 @@ async function runUninstallCommand(opts = {}) {
|
|
|
47677
47710
|
const many = (n, one) => `${n} ${one}${n === 1 ? "" : "s"}`;
|
|
47678
47711
|
const errText = (err) => err instanceof Error ? err.message : String(err);
|
|
47679
47712
|
const lines = [];
|
|
47680
|
-
const nothingToDo = found.clis.length === 0 && found.skillDirs.length === 0 && !found.serviceInstalled && !found.daemonConfigured && !(opts.purge && found.homeExists);
|
|
47713
|
+
const nothingToDo = found.clis.length === 0 && found.skillDirs.length === 0 && !found.serviceInstalled && !found.stagedBinaryDir && !found.daemonConfigured && !(opts.purge && found.homeExists);
|
|
47681
47714
|
if (nothingToDo) {
|
|
47682
47715
|
return {
|
|
47683
47716
|
exitCode: 0,
|
|
@@ -47695,6 +47728,8 @@ ${home} still holds settings and history. Delete it with \`failproofai uninstal
|
|
|
47695
47728
|
removals.push(`the failproofai skill from ${many(found.skillDirs.length, "agent folder")}`);
|
|
47696
47729
|
if (found.serviceInstalled)
|
|
47697
47730
|
removals.push("the failproofaid service (needs sudo)");
|
|
47731
|
+
else if (found.stagedBinaryDir)
|
|
47732
|
+
removals.push(`the failproofaid binary in ${found.stagedBinaryDir} (needs sudo)`);
|
|
47698
47733
|
if (purging)
|
|
47699
47734
|
removals.push(home);
|
|
47700
47735
|
const releasesDaemon = found.daemonConfigured && !found.serviceInstalled;
|
|
@@ -47788,7 +47823,7 @@ ${home} still holds settings and history. Delete it with \`failproofai uninstal
|
|
|
47788
47823
|
${installedAgentSkillDirs().join(`
|
|
47789
47824
|
`)}`);
|
|
47790
47825
|
}
|
|
47791
|
-
if (found.serviceInstalled) {
|
|
47826
|
+
if (found.serviceInstalled || found.stagedBinaryDir) {
|
|
47792
47827
|
elevateOnce();
|
|
47793
47828
|
const byHand = (servicePath) => `
|
|
47794
47829
|
Remove it as root:
|
|
@@ -47799,8 +47834,14 @@ Check it with \`${daemonStatusCommand()}\`` : "");
|
|
|
47799
47834
|
await uninstallDaemonService();
|
|
47800
47835
|
if (found.servicePath && existsSync57(found.servicePath)) {
|
|
47801
47836
|
failures.push("The failproofaid service is still there, most often because sudo was not available." + byHand(found.servicePath));
|
|
47802
|
-
} else {
|
|
47837
|
+
} else if (found.stagedBinaryDir && existsSync57(found.stagedBinaryDir)) {
|
|
47838
|
+
failures.push(`The failproofaid binary in ${found.stagedBinaryDir} is still there, most often because sudo was not available.` + `
|
|
47839
|
+
Remove it as root:
|
|
47840
|
+
\`sudo rm -rf ${shellQuote(found.stagedBinaryDir)}\``);
|
|
47841
|
+
} else if (found.serviceInstalled) {
|
|
47803
47842
|
lines.push(kit.ok("Stopped and removed the failproofaid service."));
|
|
47843
|
+
} else {
|
|
47844
|
+
lines.push(kit.ok(`Removed the failproofaid binary from ${found.stagedBinaryDir}.`));
|
|
47804
47845
|
}
|
|
47805
47846
|
} catch (err) {
|
|
47806
47847
|
failures.push(`Could not remove the failproofaid service: ${errText(err)}` + (found.servicePath && existsSync57(found.servicePath) ? byHand(found.servicePath) : ""));
|
|
@@ -47828,15 +47869,15 @@ ${home} was kept. Delete it with \`failproofai uninstall --purge\`` : "")));
|
|
|
47828
47869
|
}
|
|
47829
47870
|
function manualServiceRemoval(servicePath) {
|
|
47830
47871
|
if (process.platform === "darwin") {
|
|
47831
|
-
return [`sudo launchctl unload -w ${servicePath}`, `sudo rm -f ${servicePath}`];
|
|
47872
|
+
return [`sudo launchctl unload -w ${shellQuote(servicePath)}`, `sudo rm -f ${shellQuote(servicePath)}`];
|
|
47832
47873
|
}
|
|
47833
47874
|
const unit = servicePath.split("/").pop() ?? servicePath;
|
|
47834
47875
|
const binDir = daemonSystemBinaryDir();
|
|
47835
47876
|
return [
|
|
47836
47877
|
`sudo systemctl disable --now ${unit}`,
|
|
47837
|
-
`sudo rm -f ${servicePath}`,
|
|
47878
|
+
`sudo rm -f ${shellQuote(servicePath)}`,
|
|
47838
47879
|
`sudo systemctl daemon-reload`,
|
|
47839
|
-
...binDir ? [`sudo rm -rf ${binDir}`] : []
|
|
47880
|
+
...binDir ? [`sudo rm -rf ${shellQuote(binDir)}`] : []
|
|
47840
47881
|
];
|
|
47841
47882
|
}
|
|
47842
47883
|
var init_uninstall_cli = __esm(() => {
|
|
@@ -53222,7 +53263,7 @@ import { realpathSync as realpathSync9 } from "fs";
|
|
|
53222
53263
|
import { dirname as dirname36, resolve as resolve47 } from "path";
|
|
53223
53264
|
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
53224
53265
|
// package.json
|
|
53225
|
-
var version = "1.0.13
|
|
53266
|
+
var version = "1.0.13";
|
|
53226
53267
|
|
|
53227
53268
|
// bin/failproofai.mjs
|
|
53228
53269
|
if (!process.env.FAILPROOFAI_PACKAGE_ROOT) {
|