failproofai 1.0.4-beta.2 → 1.0.4-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 +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- 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 +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
- 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 +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 +5 -5
- 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 +14 -14
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
- 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 +4 -4
- 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/{[externals]__1lh7m5d._.js → [externals]__0v1hz15._.js} +1 -1
- package/.next/standalone/.next/server/chunks/{[externals]__1rqkg_y._.js → [externals]__1nb206a._.js} +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0--lkk6._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0q0qzx1._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1le9jqc._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1p-qi2t._.js +1 -1
- package/.next/standalone/.next/server/chunks/{_08w6xzm._.js → _0otft92._.js} +2 -2
- package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
- package/.next/standalone/.next/server/chunks/_1ek68ln._.js +3 -3
- package/.next/standalone/.next/server/chunks/_1vslkoe._.js +1 -1
- package/.next/standalone/.next/server/chunks/lib_factory-projects_ts_1eo_bk-._.js +1 -1
- package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0yl9wb5._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0guxnh-._.js +23 -0
- package/.next/standalone/.next/server/chunks/ssr/_0oq1dh6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1_ozgif._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_1es2j7i._.js +13 -0
- package/.next/standalone/.next/server/chunks/ssr/_1u8-lu2._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo.js +2 -2
- package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.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/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +22 -22
- package/.next/standalone/.next/static/chunks/{04r6ch8uf_n8m.js → 04o5zfl7p5lhx.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0o-hh5_turzlz.css → 0jpd8dv2vk930.css} +1 -1
- package/.next/standalone/.next/static/chunks/{2ej3b8gk5ittu.js → 0po8n4tyotjf2.js} +1 -1
- package/.next/standalone/.next/static/chunks/0qx7gav1c2_vu.js +1 -0
- package/.next/standalone/.next/static/chunks/{2aquitk72k2op.js → 17tfki9x5rd_7.js} +1 -1
- package/.next/standalone/.next/static/chunks/{010bv1w6j171t.js → 1i-i0pxg9q_8y.js} +1 -1
- package/.next/standalone/.next/static/chunks/{32spub4wqjem-.js → 2bxr2_2h4kaqq.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0wz8yftk18ts2.js → 323cyb3a2s06y.js} +1 -1
- package/.next/standalone/.next/static/chunks/{1pb1oztsbwcss.js → 364cqbpeg1y5i.js} +1 -1
- package/.next/standalone/.next/static/chunks/{3m4upvybtrexd.js → 38dqur43qthrl.js} +1 -1
- package/.next/standalone/.next/static/chunks/{2bi_1y0a_smt7.js → 42gwu2bsz4ske.js} +2 -2
- package/.next/standalone/app/actions/get-leaks.ts +10 -1
- package/.next/standalone/app/audit/_components/audit-dashboard.tsx +29 -2
- package/.next/standalone/app/audit/_components/leak-section.tsx +15 -2
- package/.next/standalone/app/audit/audit-styles.css +18 -0
- package/.next/standalone/lib/sqlite-reader.ts +78 -1
- package/.next/standalone/package.json +10 -10
- package/.next/standalone/server.js +1 -1
- package/bin/failproofai.mjs +1 -1
- package/dist/cli.mjs +397 -225
- package/dist/worker.mjs +81 -35
- package/lib/sqlite-reader.ts +78 -1
- package/package.json +10 -10
- package/pi-extension/index.ts +19 -4
- package/src/audit/cache.ts +6 -0
- package/src/audit/cli-adapters/claude.ts +13 -0
- package/src/audit/cli-login.ts +4 -1
- package/src/audit/cli.ts +84 -59
- package/src/audit/index.ts +149 -8
- package/src/audit/leak-notice.ts +99 -1
- package/src/audit/leak-scan.ts +20 -44
- package/src/audit/leak-store.ts +49 -1
- package/src/audit/redact-example.ts +60 -5
- package/src/audit/types.ts +6 -0
- package/src/hooks/handler.ts +30 -10
- package/src/hooks/integrations.ts +14 -0
- package/src/hooks/notice.ts +45 -9
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0rgu2r3._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0-oij9d._.js +0 -23
- package/.next/standalone/.next/static/chunks/0zebh1n9jkfbt.js +0 -1
- /package/.next/standalone/.next/static/{aKNv4Kmv98Xpwns0Xa-C- → P6icI2V2PvVuePJrqjHCr}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{aKNv4Kmv98Xpwns0Xa-C- → P6icI2V2PvVuePJrqjHCr}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{aKNv4Kmv98Xpwns0Xa-C- → P6icI2V2PvVuePJrqjHCr}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/settings/page"] = {"moduleLoading":{"prefix":""},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/contexts/PostHogContext.tsx":{"id":12344,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/app/components/global-error-listeners.tsx":{"id":97917,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/app/components/toast.tsx":{"id":55574,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js","/_next/static/chunks/3xpjn3cdgm-7m.js"],"async":false},"[project]/app/global-error.tsx":{"id":53348,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js","/_next/static/chunks/3m4upvybtrexd.js"],"async":false},"[project]/app/settings/settings-client.tsx":{"id":93237,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/010bv1w6j171t.js","/_next/static/chunks/04r6ch8uf_n8m.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"12344":{"*":{"id":10765,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"97917":{"*":{"id":45550,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"85881":{"*":{"id":6236,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"63780":{"*":{"id":10815,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"55574":{"*":{"id":18952,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"8821":{"*":{"id":78141,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js","server/chunks/ssr/app_209u41o._.js"],"async":false}},"53348":{"*":{"id":3171,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js","server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js"],"async":false}},"93237":{"*":{"id":41857,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0-oij9d._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js","server/chunks/ssr/_0l2hi_d._.js","server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"12344":{"*":{"id":92036,"name":"*","chunks":[],"async":false}},"97917":{"*":{"id":16336,"name":"*","chunks":[],"async":false}},"85881":{"*":{"id":54950,"name":"*","chunks":[],"async":false}},"63780":{"*":{"id":42976,"name":"*","chunks":[],"async":false}},"55574":{"*":{"id":33711,"name":"*","chunks":[],"async":false}},"8821":{"*":{"id":50757,"name":"*","chunks":[],"async":false}},"53348":{"*":{"id":53128,"name":"*","chunks":[],"async":false}},"93237":{"*":{"id":30575,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false}],"[project]/app/error":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false}],"[project]/app/global-error":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false}],"[project]/app/settings/page":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false},{"path":"static/chunks/3uyhmm01g64k4.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/010bv1w6j171t.js"],"[project]/app/error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/010bv1w6j171t.js","static/chunks/3xpjn3cdgm-7m.js"],"[project]/app/global-error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/010bv1w6j171t.js","static/chunks/3m4upvybtrexd.js"],"[project]/app/settings/page":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/010bv1w6j171t.js","static/chunks/04r6ch8uf_n8m.js"]}};
|
|
2
|
+
globalThis.__RSC_MANIFEST["/settings/page"] = {"moduleLoading":{"prefix":""},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/contexts/PostHogContext.tsx":{"id":12344,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/app/components/global-error-listeners.tsx":{"id":97917,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/app/components/toast.tsx":{"id":55574,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js","/_next/static/chunks/3xpjn3cdgm-7m.js"],"async":false},"[project]/app/global-error.tsx":{"id":53348,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js","/_next/static/chunks/38dqur43qthrl.js"],"async":false},"[project]/app/settings/settings-client.tsx":{"id":93237,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/1i-i0pxg9q_8y.js","/_next/static/chunks/04o5zfl7p5lhx.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"12344":{"*":{"id":10765,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"97917":{"*":{"id":45550,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"85881":{"*":{"id":6236,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"63780":{"*":{"id":10815,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"55574":{"*":{"id":18952,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js"],"async":false}},"8821":{"*":{"id":78141,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js","server/chunks/ssr/app_209u41o._.js"],"async":false}},"53348":{"*":{"id":3171,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js","server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js"],"async":false}},"93237":{"*":{"id":41857,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0sjzdjg._.js","server/chunks/ssr/lib_utils_ts_0az0sfq._.js","server/chunks/ssr/_0guxnh-._.js","server/chunks/ssr/node_modules_next_dist_1v8aef8._.js","server/chunks/ssr/node_modules_13n822a._.js","server/chunks/ssr/node_modules_next_0aiy-os._.js","server/chunks/ssr/_08x1r5t._.js","server/chunks/ssr/_0l2hi_d._.js","server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":17910,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"12344":{"*":{"id":92036,"name":"*","chunks":[],"async":false}},"97917":{"*":{"id":16336,"name":"*","chunks":[],"async":false}},"85881":{"*":{"id":54950,"name":"*","chunks":[],"async":false}},"63780":{"*":{"id":42976,"name":"*","chunks":[],"async":false}},"55574":{"*":{"id":33711,"name":"*","chunks":[],"async":false}},"8821":{"*":{"id":50757,"name":"*","chunks":[],"async":false}},"53348":{"*":{"id":53128,"name":"*","chunks":[],"async":false}},"93237":{"*":{"id":30575,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/layout":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false}],"[project]/app/error":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false}],"[project]/app/global-error":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false}],"[project]/app/settings/page":[{"path":"static/chunks/0qmsunv04x4na.css","inlined":false},{"path":"static/chunks/3uyhmm01g64k4.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/1i-i0pxg9q_8y.js"],"[project]/app/error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/1i-i0pxg9q_8y.js","static/chunks/3xpjn3cdgm-7m.js"],"[project]/app/global-error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/1i-i0pxg9q_8y.js","static/chunks/38dqur43qthrl.js"],"[project]/app/settings/page":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/1i-i0pxg9q_8y.js","static/chunks/04o5zfl7p5lhx.js"]}};
|
|
3
3
|
|
package/.next/standalone/.next/server/chunks/{[externals]__1lh7m5d._.js → [externals]__0v1hz15._.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[874,(e,r,o)=>{r.exports=e.x("buffer",()=>require("buffer"))},54799,(e,r,o)=>{r.exports=e.x("crypto",()=>require("crypto"))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},1457,(e,r,o)=>{r.exports=e.x("node:readline",()=>require("node:readline"))},57764,(e,r,o)=>{r.exports=e.x("node:url",()=>require("node:url"))},5365,(e,r,o)=>{r.exports=e.x("process",()=>require("process"))},92509,(e,r,o)=>{r.exports=e.x("url",()=>require("url"))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Bexternals%
|
|
3
|
+
//# sourceMappingURL=%5Bexternals%5D__0v1hz15._.js.map
|
package/.next/standalone/.next/server/chunks/{[externals]__1rqkg_y._.js → [externals]__1nb206a._.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports=[54799,(r,e,o)=>{e.exports=r.x("crypto",()=>require("crypto"))},60815,r=>{r.v(r=>Promise.resolve().then(()=>r(24868)))},57764,(r,e,o)=>{e.exports=r.x("node:url",()=>require("node:url"))},92509,(r,e,o)=>{e.exports=r.x("url",()=>require("url"))}];
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=%5Bexternals%
|
|
3
|
+
//# sourceMappingURL=%5Bexternals%5D__1nb206a._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[2157,(t,e,n)=>{e.exports=t.x("node:fs",()=>require("node:fs"))},60526,(t,e,n)=>{e.exports=t.x("node:os",()=>require("node:os"))},
|
|
1
|
+
module.exports=[2157,(t,e,n)=>{e.exports=t.x("node:fs",()=>require("node:fs"))},60526,(t,e,n)=>{e.exports=t.x("node:os",()=>require("node:os"))},22250,t=>{"use strict";var e=t.i(12714),n=t.i(2157),i=t.i(60526),s=t.i(50227),r=t.i(81580),o=t.i(83534),a=t.i(54214),u=t.i(67405);let l=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;function f(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}function p(t){return"string"==typeof t?t:Array.isArray(t)?t.map(t=>f(t)&&"string"==typeof t.text?t.text:"").filter(Boolean).join("\n"):""}function m(t,e="session"){let n=[],i=new Map,s=new Map,r=Date.now();for(let o=0;o<t.length;o++){let l=t[o];if(!f(l)||"message"!==l.type)continue;let m=f(l.message)?l.message:void 0;if(!m)continue;let c="string"==typeof m.role?m.role:"system",y=function(t,e){if("number"==typeof t&&Number.isFinite(t)){if(t>1e12)return new Date(t);if(t>1e9)return new Date(1e3*t)}if("string"==typeof t){let e=Date.parse(t);if(!Number.isNaN(e))return new Date(e)}return new Date(e)}(l.timestamp??m.timestamp,r+o),d=y.toISOString(),g={uuid:null!=l.id?String(l.id):`factory-${o}`,parentUuid:null!=l.parentId?String(l.parentId):null},h=(0,a.baseEntry)(g,d,y,e),w=m.content;if("assistant"===c){let t=[];if(Array.isArray(w)){for(let e of w)if(f(e)){if("text"===e.type&&"string"==typeof e.text)t.push({type:"text",text:e.text});else if("tool_use"===e.type){let n="string"==typeof e.id?e.id:`${String(e.name??"tool")}-${t.length}`,r={type:"tool_use",id:n,name:"string"==typeof e.name?e.name:"tool",input:f(e.input)?e.input:{}};t.push(r),i.set(n,r),s.set(n,y.getTime())}}}else{let e=p(w);e&&t.push({type:"text",text:e})}if(0===t.length)continue;n.push({type:"assistant",...h,message:{role:"assistant",content:t,model:"string"==typeof m.model?m.model:void 0}});continue}if(Array.isArray(w)){let t=!1,e=[];for(let n of w)if(f(n)){if("tool_result"===n.type){let e="string"==typeof n.tool_use_id?n.tool_use_id:"string"==typeof n.toolUseId?n.toolUseId:void 0,r=e?i.get(e):void 0;if(r){let i=e&&s.get(e)||y.getTime(),o=Math.max(0,y.getTime()-i);r.result={timestamp:d,timestampFormatted:(0,a.formatTimestamp)(y),content:p(n.content),durationMs:o,durationFormatted:(0,u.formatDuration)(o)},t=!0;continue}}"text"===n.type&&"string"==typeof n.text&&e.push(n.text)}e.length>0?n.push({type:"user",...h,message:{role:"user",content:e.join("\n")}}):t||n.push({type:"system",...h,raw:g});continue}if("user"===c){n.push({type:"user",...h,message:{role:"user",content:p(w)}});continue}n.push({type:"system",...h,raw:g})}return n.sort((t,e)=>t.timestampMs-e.timestampMs),n}function c(){let t,e=(0,s.join)(process.env.FACTORY_HOME||(0,s.join)((0,i.homedir)(),".factory"),"sessions"),o=[];try{t=(0,n.readdirSync)(e,{withFileTypes:!0}).filter(t=>t.isDirectory())}catch{return o}for(let i of t){let t,a=i.name,u=(0,r.decodeFolderName)(a),f=(0,s.join)(e,a);try{t=(0,n.readdirSync)(f)}catch{continue}for(let e of t){if(!e.endsWith(".jsonl"))continue;let t=e.slice(0,-6);if(!l.test(t))continue;let i=(0,s.join)(f,e);try{let e=(0,n.statSync)(i);o.push({projectName:a,cwd:u,sessionId:t,transcriptPath:i,mtimeMs:e.mtimeMs,sizeBytes:e.size})}catch{}}}return o}function y(t){if(!l.test(t))return null;for(let e of c())if(e.sessionId===t)return e.transcriptPath;return null}async function d(t){let n,i,s=y(t);if(!s)return null;try{n=await (0,e.readFile)(s,"utf-8")}catch{return null}let r=(0,a.parseRawLines)(n,"session"),o=m(r,"session");for(let t of r)if(f(t)&&"session_start"===t.type&&"string"==typeof t.cwd&&t.cwd.length>0){i=t.cwd;break}return{entries:o,rawLines:r,cwd:i,filePath:s}}(0,o.runtimeCache)(t=>d(t),60,{maxSize:50}),t.s(["factoryLinesToLogEntries",0,m,"findFactoryTranscript",0,y,"getFactorySessionLog",0,d,"listFactoryTranscripts",0,c])},54214,67405,t=>{"use strict";var e=t.i(24868),n=t.i(14747),i=t.i(81580),s=t.i(56936);async function r(t,i,s,r){let o=`agent-${r}.jsonl`;for(let r of[(0,n.join)(t,i,o),(0,n.join)(t,i,s,o),(0,n.join)(t,i,s,"subagents",o)])if(!(0,n.relative)(t,r).startsWith(".."))try{return await (0,e.access)(r),r}catch(t){if("ENOENT"===t.code)continue;break}return null}var o=t.i(83534),a=t.i(71809),u=t.i(28557);function l(t){if(t<1e3)return`${t}ms`;let e=Math.round(t/100);if(e<600)return`${(e/10).toFixed(1)}s`;let n=Math.round(t/1e3);if(n<3600){let t=Math.floor(n/60);return`${t}m ${n%60}s`}let i=Math.round(t/6e4),s=Math.floor(i/60);return`${s}h ${i%60}m`}function f(t){let e=(0,u.formatDate)(t),n=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${n}`}function p(t,e,n,i){return{_source:i,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:n.getTime(),timestampFormatted:f(n)}}async function m(t,e){let n=t.split("\n").filter(t=>""!==t.trim()),i=new Map,s=[],r=[],o=new Set,a=!1;for(let t=0;t<n.length;t++){let u;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let l=n[t];try{u=JSON.parse(l)}catch{continue}let f={...u,_source:e};r.push(f);let m=u.type,c=u.timestamp;if(!c)continue;let y=new Date(c),d=y.getTime();if("user"===m){let t=u.message;if(Array.isArray(t?.content)){let e=t.content;if(e.some(t=>"tool_result"===t.type)){let t=u.toolUseResult,n="string"==typeof t?.agentId?t.agentId:void 0;for(let t of(n&&/^[a-f0-9]+$/.test(n)&&o.add(n),e)){if("tool_result"!==t.type)continue;let e=t.tool_use_id;if(!e)continue;let{text:s,images:r}=function(t){let e=t.content;if("string"==typeof e)return{text:e};if(Array.isArray(e)){let t=e.filter(t=>"text"===t.type).map(t=>t.text),n=e.filter(t=>"image"===t.type).map(t=>{let e=t.source;return{base64:e.data,mediaType:e.media_type}}).filter(t=>t.base64&&t.mediaType);return{text:t.length>0?t.join("\n"):void 0,images:n.length>0?n:void 0}}return{}}(t);i.set(e,{timestamp:c,timestampMs:d,content:s,images:r,agentId:n})}continue}}let n="string"==typeof t?.content?t.content:"";s.push({type:"user",...p(u,c,y,e),message:{role:"user",content:n}});continue}if("assistant"===m){let t=u.message,n=[];if(Array.isArray(t?.content)&&(n=t.content.filter(t=>["text","tool_use","thinking"].includes(t.type)).map(t=>{if("text"===t.type)return{type:"text",text:t.text};if("tool_use"===t.type){let e=t.input;return{type:"tool_use",id:t.id,name:t.name,input:t.input??{},..."Task"===t.name&&e?{subagentType:e.subagent_type,subagentDescription:e.description}:{}}}return{type:"thinking",thinking:t.thinking,signature:t.signature}})),0===n.length)continue;s.push({type:"assistant",...p(u,c,y,e),message:{role:"assistant",content:n,model:t?.model}});continue}if("file-history-snapshot"===m||"progress"===m||"system"===m){s.push({type:m,...p(u,c,y,e),raw:{...u}});continue}if("queue-operation"===m){let t=a?"Session Resumed":"Session Started";a=!0,s.push({type:"queue-operation",...p(u,c,y,e),label:t});continue}}let u=0;for(let t of s)if("assistant"===t.type)for(let e of(++u%200==0&&await new Promise(t=>setImmediate(t)),t.message.content)){if("tool_use"!==e.type)continue;let n=i.get(e.id);if(!n)continue;let s=new Date(n.timestamp),r=Math.max(0,n.timestampMs-t.timestampMs);e.result={timestamp:n.timestamp,timestampFormatted:f(s),content:n.content,images:n.images,durationMs:r,durationFormatted:l(r)},n.agentId&&(e.subagentId=n.agentId)}return s.length>500&&await new Promise(t=>setImmediate(t)),s.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:s,rawLines:r,subagentIds:Array.from(o)}}async function c(t,e="session"){return(await m(t,e)).entries}async function y(t,o){let u=(0,s.resolveProjectPath)(t),l=(0,i.getClaudeProjectsPath)(),f=(0,n.join)(u,`${o}.jsonl`),p=await (0,e.readFile)(f,"utf-8"),{entries:c,rawLines:y,subagentIds:d}=await m(p,"session");if(0===d.length)return{entries:c,rawLines:y,subagentIds:[]};let g=await (0,a.batchAll)(d.map(n=>async()=>{let i=`agent-${n}`,s=await r(l,t,o,n);if(!s)return null;let a=await (0,e.readFile)(s,"utf-8"),{entries:u,rawLines:f}=await m(a,i);return{entries:u,rawLines:f}}),4),h=[...c],w=[...y];for(let t of g)"fulfilled"===t.status&&t.value&&(h.push(...t.value.entries),w.push(...t.value.rawLines));return h.length>500&&await new Promise(t=>setImmediate(t)),h.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:h,rawLines:w,subagentIds:d}}t.s(["formatDuration",0,l],67405),(0,o.runtimeCache)((t,e)=>y(t,e),60,{maxSize:50}),t.s(["baseEntry",0,p,"formatTimestamp",0,f,"parseLogContent",0,c,"parseRawLines",0,function(t,e){return t.split("\n").filter(t=>""!==t.trim()).flatMap(t=>{try{let n=JSON.parse(t);return void 0!==e&&(n._source=e),[n]}catch{return[]}})}],54214)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0--lkk6._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[74533,(e,i,t)=>{i.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,i,t)=>{i.exports=e.x("node:crypto",()=>require("node:crypto"))},2157,(e,i,t)=>{i.exports=e.x("node:fs",()=>require("node:fs"))},60526,(e,i,t)=>{i.exports=e.x("node:os",()=>require("node:os"))},50227,(e,i,t)=>{i.exports=e.x("node:path",()=>require("node:path"))},37581,e=>{e.v(i=>Promise.all(["server/chunks/[externals]__157pf8j._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js"].map(i=>e.l(i))).then(()=>i(28864)))},93133,(e,i,t)=>{i.exports={name:"failproofai",version:"1.0.4-beta.
|
|
1
|
+
module.exports=[74533,(e,i,t)=>{i.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,i,t)=>{i.exports=e.x("node:crypto",()=>require("node:crypto"))},2157,(e,i,t)=>{i.exports=e.x("node:fs",()=>require("node:fs"))},60526,(e,i,t)=>{i.exports=e.x("node:os",()=>require("node:os"))},50227,(e,i,t)=>{i.exports=e.x("node:path",()=>require("node:path"))},37581,e=>{e.v(i=>Promise.all(["server/chunks/[externals]__157pf8j._.js","server/chunks/node_modules_posthog-node_dist_entrypoints_index_node_mjs_09z9-p7._.js"].map(i=>e.l(i))).then(()=>i(28864)))},93133,(e,i,t)=>{i.exports={name:"failproofai",version:"1.0.4-beta.4",description:"Observability and enforcement for AI agent harnesses. 39 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.",bin:{failproofai:"./dist/cli.mjs",failproofaid:"./bin/failproofaid-shim.mjs"},files:["bin/","src/","scripts/","lib/","pi-extension/","openclaw-plugin/",".next/standalone/","dist/","README.md"],engines:{node:">=20.9.0",bun:">=1.3.0"},scripts:{predev:"bun run build:cli && bun link",dev:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/dev.ts --port 8020","build:cli":"bun build --target=node --format=esm --outfile=dist/cli.mjs bin/failproofai.mjs --external posthog-node --external sql.js && node -e \"const fs=require('fs');const c=fs.readFileSync('dist/cli.mjs','utf8');fs.writeFileSync('dist/cli.mjs',c.replace('#!/usr/bin/env bun','#!/usr/bin/env node').replace('// @bun\\n',''))\"","build:worker":"bun build --target=node --format=esm --outfile=dist/worker.mjs bin/failproofai-worker.mjs --external posthog-node --external sql.js",build:"bun build --target=node --format=cjs --outfile=dist/index.js src/index.ts && bun run build:cli && bun run build:worker && bun --bun next build && node -e \"const {cpSync}=require('fs');cpSync('.next/static','.next/standalone/.next/static',{recursive:true});\" && node scripts/prune-standalone.mjs",prestart:"bun run build:cli && bun link",start:"FAILPROOFAI_TELEMETRY_DISABLED=1 bun scripts/start.ts",test:"vitest","test:run":"vitest run",lint:"eslint . --config eslint.config.mjs",prepare:"bun run build","test:e2e":"vitest run --config vitest.config.e2e.mts","test:e2e:watch":"vitest --config vitest.config.e2e.mts",translate:"bun scripts/translate-docs/cli.ts","translate:readme":"bun scripts/translate-docs/cli.ts --readme-only","translate:docs":"bun scripts/translate-docs/cli.ts --docs-only","translate:dry-run":"bun scripts/translate-docs/cli.ts --dry-run","translate:validate":"bun scripts/translate-docs/cli.ts --validate","validate:mdx":"bun scripts/validate-mdx.ts","docs:audit":"bun scripts/docs-audit.ts","build:pack":"bun scripts/build-policy-pack.mjs"},keywords:["agent-observability","llm-observability","agent-tracing","agent-monitoring","agent-harness","guardrails","enforcement","policies","evals","ai-agent","autonomous-agent","agent-reliability","failure-prevention","claude-code","codex","hermes","openclaw","cli","local-first","hooks"],author:"ExosphereHost Inc. <failproofai@exosphere.host>",license:"SEE LICENSE IN LICENSE",homepage:"https://github.com/FailproofAI/failproofai",repository:{type:"git",url:"https://github.com/FailproofAI/failproofai.git"},bugs:{url:"https://github.com/FailproofAI/failproofai/issues"},publishConfig:{access:"public"},devDependencies:{"@anthropic-ai/sdk":"^0.123.0","@mdx-js/mdx":"^3.1.1","@tailwindcss/postcss":"^4.3.1","@tanstack/react-virtual":"^3.14.10","@testing-library/jest-dom":"^7.0.0","@testing-library/react":"^16.3.2","@testing-library/user-event":"^14.6.5","@types/node":"26.4.1","@types/react":"19.2.18","@types/react-dom":"^19.2.3","@vitejs/plugin-react":"^6.1.0",clsx:"^2.1.1",eslint:"^10.9.0","eslint-config-next":"^16.3.2",jsdom:"^30.0.1","lucide-react":"^1.33.0",next:"^16.3.2",react:"^19.2.4","react-dom":"^19.2.4","tailwind-merge":"^3.4.0",tailwindcss:"^4.3.1",typescript:"6.0.3",vitest:"^5.0.0"},dependencies:{"html-to-image":"^1.11.13","posthog-node":"^5.50.0","sql.js":"^1.14.1",yaml:"^2.9.0"},overrides:{nanoid:"3.3.18",postcss:"8.5.26","eslint-plugin-react-hooks":"7.0.1",vite:"8.0.16",undici:"7.29.0","brace-expansion":"5.0.9",sharp:"0.35.4",browserslist:"4.28.8"},optionalDependencies:{"@failproofai/failproofaid-linux-x64":"1.0.4-beta.4","@failproofai/failproofaid-linux-arm64":"1.0.4-beta.4","@failproofai/failproofaid-darwin-x64":"1.0.4-beta.4","@failproofai/failproofaid-darwin-arm64":"1.0.4-beta.4"},failproofaidBinaries:{"linux-x64":"4487790ed9b881da2914b5985a23b5adca1f20e226d71c635d8170064e6b2340","linux-arm64":"c903c5e201198213ccd8295fdab741c7d08d22c8dd5c276e52aa766595bedcc2","darwin-x64":"f0933584abbf0f9ff95cd153f8c6c704e467af1d6ffc8f42f9c426bd44b1142a","darwin-arm64":"387a3acbf13f667a557c8ac632fe67dee350cda078e3266e71edfcfacb9ecae6"}}}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0o07qi9._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[2157,(t,e,n)=>{e.exports=t.x("node:fs",()=>require("node:fs"))},60526,(t,e,n)=>{e.exports=t.x("node:os",()=>require("node:os"))},69391,t=>{"use strict";var e=t.i(81580),n=t.i(
|
|
1
|
+
module.exports=[2157,(t,e,n)=>{e.exports=t.x("node:fs",()=>require("node:fs"))},60526,(t,e,n)=>{e.exports=t.x("node:os",()=>require("node:os"))},69391,t=>{"use strict";var e=t.i(81580),n=t.i(22250),i=t.i(83534),s=t.i(28557),r=t.i(40911);async function a(){let t;try{t=(0,n.listFactoryTranscripts)()}catch(t){return(0,r.logWarn)("Failed to scan Factory sessions:",t),[]}let e=new Map;for(let n of t){let t=e.get(n.projectName);(!t||n.mtimeMs>t.latest)&&e.set(n.projectName,{latest:n.mtimeMs,cwd:n.cwd,name:n.projectName})}let i=[];for(let{name:t,cwd:n,latest:r}of e.values()){let e=new Date(r);i.push({name:t,path:n,isDirectory:!0,lastModified:e,lastModifiedFormatted:(0,s.formatDate)(e),cli:["factory"]})}return i.sort((t,e)=>e.lastModified.getTime()-t.lastModified.getTime()),i}async function o(t){let i;try{i=(0,n.listFactoryTranscripts)().filter(e=>e.projectName===t)}catch(t){return(0,r.logWarn)("Failed to scan Factory sessions:",t),{cwd:null,sessions:[]}}if(0===i.length)return{cwd:null,sessions:[]};let a=[...i].sort((t,e)=>e.mtimeMs-t.mtimeMs),o=null;try{let t=await (0,n.getFactorySessionLog)(a[0].sessionId);o=t?.cwd??null}catch{}return o||(o=(0,e.decodeFolderName)(t)),{cwd:o,sessions:a.map(t=>{let e=new Date(t.mtimeMs);return{name:t.sessionId,path:t.transcriptPath,lastModified:e,lastModifiedFormatted:(0,s.formatDate)(e),sessionId:t.sessionId,cli:"factory"}})}}let l=(0,i.runtimeCache)(a,30),u=(0,i.runtimeCache)(t=>o(t),30,{maxSize:50});t.s(["getCachedFactoryProjects",0,l,"getCachedFactorySessionsByEncodedName",0,u,"getFactoryProjects",0,a,"getFactorySessionsByEncodedName",0,o])},22250,t=>{"use strict";var e=t.i(12714),n=t.i(2157),i=t.i(60526),s=t.i(50227),r=t.i(81580),a=t.i(83534),o=t.i(54214),l=t.i(67405);let u=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;function c(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}function m(t){return"string"==typeof t?t:Array.isArray(t)?t.map(t=>c(t)&&"string"==typeof t.text?t.text:"").filter(Boolean).join("\n"):""}function f(t,e="session"){let n=[],i=new Map,s=new Map,r=Date.now();for(let a=0;a<t.length;a++){let u=t[a];if(!c(u)||"message"!==u.type)continue;let f=c(u.message)?u.message:void 0;if(!f)continue;let p="string"==typeof f.role?f.role:"system",d=function(t,e){if("number"==typeof t&&Number.isFinite(t)){if(t>1e12)return new Date(t);if(t>1e9)return new Date(1e3*t)}if("string"==typeof t){let e=Date.parse(t);if(!Number.isNaN(e))return new Date(e)}return new Date(e)}(u.timestamp??f.timestamp,r+a),y=d.toISOString(),g={uuid:null!=u.id?String(u.id):`factory-${a}`,parentUuid:null!=u.parentId?String(u.parentId):null},h=(0,o.baseEntry)(g,y,d,e),w=f.content;if("assistant"===p){let t=[];if(Array.isArray(w)){for(let e of w)if(c(e)){if("text"===e.type&&"string"==typeof e.text)t.push({type:"text",text:e.text});else if("tool_use"===e.type){let n="string"==typeof e.id?e.id:`${String(e.name??"tool")}-${t.length}`,r={type:"tool_use",id:n,name:"string"==typeof e.name?e.name:"tool",input:c(e.input)?e.input:{}};t.push(r),i.set(n,r),s.set(n,d.getTime())}}}else{let e=m(w);e&&t.push({type:"text",text:e})}if(0===t.length)continue;n.push({type:"assistant",...h,message:{role:"assistant",content:t,model:"string"==typeof f.model?f.model:void 0}});continue}if(Array.isArray(w)){let t=!1,e=[];for(let n of w)if(c(n)){if("tool_result"===n.type){let e="string"==typeof n.tool_use_id?n.tool_use_id:"string"==typeof n.toolUseId?n.toolUseId:void 0,r=e?i.get(e):void 0;if(r){let i=e&&s.get(e)||d.getTime(),a=Math.max(0,d.getTime()-i);r.result={timestamp:y,timestampFormatted:(0,o.formatTimestamp)(d),content:m(n.content),durationMs:a,durationFormatted:(0,l.formatDuration)(a)},t=!0;continue}}"text"===n.type&&"string"==typeof n.text&&e.push(n.text)}e.length>0?n.push({type:"user",...h,message:{role:"user",content:e.join("\n")}}):t||n.push({type:"system",...h,raw:g});continue}if("user"===p){n.push({type:"user",...h,message:{role:"user",content:m(w)}});continue}n.push({type:"system",...h,raw:g})}return n.sort((t,e)=>t.timestampMs-e.timestampMs),n}function p(){let t,e=(0,s.join)(process.env.FACTORY_HOME||(0,s.join)((0,i.homedir)(),".factory"),"sessions"),a=[];try{t=(0,n.readdirSync)(e,{withFileTypes:!0}).filter(t=>t.isDirectory())}catch{return a}for(let i of t){let t,o=i.name,l=(0,r.decodeFolderName)(o),c=(0,s.join)(e,o);try{t=(0,n.readdirSync)(c)}catch{continue}for(let e of t){if(!e.endsWith(".jsonl"))continue;let t=e.slice(0,-6);if(!u.test(t))continue;let i=(0,s.join)(c,e);try{let e=(0,n.statSync)(i);a.push({projectName:o,cwd:l,sessionId:t,transcriptPath:i,mtimeMs:e.mtimeMs,sizeBytes:e.size})}catch{}}}return a}function d(t){if(!u.test(t))return null;for(let e of p())if(e.sessionId===t)return e.transcriptPath;return null}async function y(t){let n,i,s=d(t);if(!s)return null;try{n=await (0,e.readFile)(s,"utf-8")}catch{return null}let r=(0,o.parseRawLines)(n,"session"),a=f(r,"session");for(let t of r)if(c(t)&&"session_start"===t.type&&"string"==typeof t.cwd&&t.cwd.length>0){i=t.cwd;break}return{entries:a,rawLines:r,cwd:i,filePath:s}}(0,a.runtimeCache)(t=>y(t),60,{maxSize:50}),t.s(["factoryLinesToLogEntries",0,f,"findFactoryTranscript",0,d,"getFactorySessionLog",0,y,"listFactoryTranscripts",0,p])},54214,67405,t=>{"use strict";var e=t.i(24868),n=t.i(14747),i=t.i(81580),s=t.i(56936);async function r(t,i,s,r){let a=`agent-${r}.jsonl`;for(let r of[(0,n.join)(t,i,a),(0,n.join)(t,i,s,a),(0,n.join)(t,i,s,"subagents",a)])if(!(0,n.relative)(t,r).startsWith(".."))try{return await (0,e.access)(r),r}catch(t){if("ENOENT"===t.code)continue;break}return null}var a=t.i(83534),o=t.i(71809),l=t.i(28557);function u(t){if(t<1e3)return`${t}ms`;let e=Math.round(t/100);if(e<600)return`${(e/10).toFixed(1)}s`;let n=Math.round(t/1e3);if(n<3600){let t=Math.floor(n/60);return`${t}m ${n%60}s`}let i=Math.round(t/6e4),s=Math.floor(i/60);return`${s}h ${i%60}m`}function c(t){let e=(0,l.formatDate)(t),n=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${n}`}function m(t,e,n,i){return{_source:i,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:n.getTime(),timestampFormatted:c(n)}}async function f(t,e){let n=t.split("\n").filter(t=>""!==t.trim()),i=new Map,s=[],r=[],a=new Set,o=!1;for(let t=0;t<n.length;t++){let l;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let u=n[t];try{l=JSON.parse(u)}catch{continue}let c={...l,_source:e};r.push(c);let f=l.type,p=l.timestamp;if(!p)continue;let d=new Date(p),y=d.getTime();if("user"===f){let t=l.message;if(Array.isArray(t?.content)){let e=t.content;if(e.some(t=>"tool_result"===t.type)){let t=l.toolUseResult,n="string"==typeof t?.agentId?t.agentId:void 0;for(let t of(n&&/^[a-f0-9]+$/.test(n)&&a.add(n),e)){if("tool_result"!==t.type)continue;let e=t.tool_use_id;if(!e)continue;let{text:s,images:r}=function(t){let e=t.content;if("string"==typeof e)return{text:e};if(Array.isArray(e)){let t=e.filter(t=>"text"===t.type).map(t=>t.text),n=e.filter(t=>"image"===t.type).map(t=>{let e=t.source;return{base64:e.data,mediaType:e.media_type}}).filter(t=>t.base64&&t.mediaType);return{text:t.length>0?t.join("\n"):void 0,images:n.length>0?n:void 0}}return{}}(t);i.set(e,{timestamp:p,timestampMs:y,content:s,images:r,agentId:n})}continue}}let n="string"==typeof t?.content?t.content:"";s.push({type:"user",...m(l,p,d,e),message:{role:"user",content:n}});continue}if("assistant"===f){let t=l.message,n=[];if(Array.isArray(t?.content)&&(n=t.content.filter(t=>["text","tool_use","thinking"].includes(t.type)).map(t=>{if("text"===t.type)return{type:"text",text:t.text};if("tool_use"===t.type){let e=t.input;return{type:"tool_use",id:t.id,name:t.name,input:t.input??{},..."Task"===t.name&&e?{subagentType:e.subagent_type,subagentDescription:e.description}:{}}}return{type:"thinking",thinking:t.thinking,signature:t.signature}})),0===n.length)continue;s.push({type:"assistant",...m(l,p,d,e),message:{role:"assistant",content:n,model:t?.model}});continue}if("file-history-snapshot"===f||"progress"===f||"system"===f){s.push({type:f,...m(l,p,d,e),raw:{...l}});continue}if("queue-operation"===f){let t=o?"Session Resumed":"Session Started";o=!0,s.push({type:"queue-operation",...m(l,p,d,e),label:t});continue}}let l=0;for(let t of s)if("assistant"===t.type)for(let e of(++l%200==0&&await new Promise(t=>setImmediate(t)),t.message.content)){if("tool_use"!==e.type)continue;let n=i.get(e.id);if(!n)continue;let s=new Date(n.timestamp),r=Math.max(0,n.timestampMs-t.timestampMs);e.result={timestamp:n.timestamp,timestampFormatted:c(s),content:n.content,images:n.images,durationMs:r,durationFormatted:u(r)},n.agentId&&(e.subagentId=n.agentId)}return s.length>500&&await new Promise(t=>setImmediate(t)),s.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:s,rawLines:r,subagentIds:Array.from(a)}}async function p(t,e="session"){return(await f(t,e)).entries}async function d(t,a){let l=(0,s.resolveProjectPath)(t),u=(0,i.getClaudeProjectsPath)(),c=(0,n.join)(l,`${a}.jsonl`),m=await (0,e.readFile)(c,"utf-8"),{entries:p,rawLines:d,subagentIds:y}=await f(m,"session");if(0===y.length)return{entries:p,rawLines:d,subagentIds:[]};let g=await (0,o.batchAll)(y.map(n=>async()=>{let i=`agent-${n}`,s=await r(u,t,a,n);if(!s)return null;let o=await (0,e.readFile)(s,"utf-8"),{entries:l,rawLines:c}=await f(o,i);return{entries:l,rawLines:c}}),4),h=[...p],w=[...d];for(let t of g)"fulfilled"===t.status&&t.value&&(h.push(...t.value.entries),w.push(...t.value.rawLines));return h.length>500&&await new Promise(t=>setImmediate(t)),h.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:h,rawLines:w,subagentIds:y}}t.s(["formatDuration",0,u],67405),(0,a.runtimeCache)((t,e)=>d(t,e),60,{maxSize:50}),t.s(["baseEntry",0,m,"formatTimestamp",0,c,"parseLogContent",0,p,"parseRawLines",0,function(t,e){return t.split("\n").filter(t=>""!==t.trim()).flatMap(t=>{try{let n=JSON.parse(t);return void 0!==e&&(n._source=e),[n]}catch{return[]}})}],54214)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__0q0qzx1._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[22734,(e,r,t)=>{r.exports=e.x("fs",()=>require("fs"))},24868,(e,r,t)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},18622,(e,r,t)=>{r.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},56704,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(e,r,t)=>{r.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},93695,(e,r,t)=>{r.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},12714,(e,r,t)=>{r.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},50227,(e,r,t)=>{r.exports=e.x("node:path",()=>require("node:path"))},81111,(e,r,t)=>{r.exports=e.x("node:stream",()=>require("node:stream"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},91301,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1qb590j._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(30441)))},16341,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1shcqgr._.js"].map(r=>e.l(r))).then(()=>r(93114)))},37352,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jm9fw6._.js"].map(r=>e.l(r))).then(()=>r(36203)))},18944,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__17g9wh7._.js","server/chunks/src_hooks_fp-home_ts_09kv0bn._.js"].map(r=>e.l(r))).then(()=>r(57232)))},71809,e=>{"use strict";async function r(e,r){let t=Array(e.length),s=0;async function o(){for(;s<e.length;){let r=s++;try{t[r]={status:"fulfilled",value:await e[r]()}}catch(e){t[r]={status:"rejected",reason:e}}}}let a=Array.from({length:Math.min(r,e.length)},()=>o());return await Promise.all(a),t}e.s(["batchAll",0,r])},5807,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1w9zl9-._.js"].map(r=>e.l(r))).then(()=>r(55851)))},21476,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1legmza._.js"].map(r=>e.l(r))).then(()=>r(78166)))},97452,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1ou2ehh._.js"].map(r=>e.l(r))).then(()=>r(46413)))},23414,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0rv7m0k._.js"].map(r=>e.l(r))).then(()=>r(72094)))},52400,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0g6bbuw._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(79364)))},53229,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1ffkmds._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(40375)))},62998,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0q0qzx1._.js"].map(r=>e.l(r))).then(()=>r(69391)))},95231,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0--lkk6._.js"].map(r=>e.l(r))).then(()=>r(28246)))},28557,e=>{"use strict";e.s(["formatDate",0,function(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}])},31854,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__08w4wmd._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(69164)))},49081,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1xuedea._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(36618)))},67347,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1anxb5k._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(64828)))},32359,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0zlqo2t._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(3605)))},40911,e=>{"use strict";let r={info:0,warn:1,error:2};function t(e){return r[e]>=r.warn}function s(e){return`[failproofai${new Date().toISOString()}] ${e}`}e.s(["logActivity",0,function(e,r,o){if(!t("info"))return;let a=[`user=${e}`,`action=${r}`];o&&a.push(o),console.log(s("ACTIVITY"),a.join(" "))},"logError",0,function(e,r){void 0!==r?console.error(s("ERROR"),e,r):console.error(s("ERROR"),e)},"logWarn",0,function(e,r){t("warn")&&(void 0!==r?console.warn(s("WARN"),e,r):console.warn(s("WARN"),e))}])},38978,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__04_h-a5._.js"].map(r=>e.l(r))).then(()=>r(90624)))},26435,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0-219ec._.js"].map(r=>e.l(r))).then(()=>r(64199)))},82978,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03r-lqq._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(35435)))},82859,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__12021ot._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(99440)))},81580,e=>{"use strict";var r=e.i(46786),t=e.i(14747);e.s(["decodeFolderName",0,function(e){return/^[A-Za-z]--/.test(e)?e[0]+":/"+e.slice(3).replace(/-/g,"/"):e.replace(/-/g,"/")},"encodeFolderName",0,function(e){let r=/^([A-Za-z]):[\\/](.*)$/.exec(e);return r?r[1]+"--"+r[2].replace(/[\\/]/g,"-"):e.replace(/[\\/]/g,"-")},"getClaudeProjectsPath",0,function(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,t.join)((0,r.homedir)(),".claude","projects")}])},45093,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0f7mikp._.js"].map(r=>e.l(r))).then(()=>r(19791)))},41330,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0q-v9z2._.js"].map(r=>e.l(r))).then(()=>r(85116)))},56936,e=>{"use strict";var r=e.i(12714),t=e.i(50227),s=e.i(81580),o=e.i(83534),a=e.i(71809),n=e.i(40911),i=e.i(28557);let l=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;async function c(e,t){try{return(await (0,r.stat)(e)).mtime}catch(e){return(0,n.logWarn)(`Failed to stat ${t}:`,e),new Date(0)}}async function u(e){try{if(!(await (0,r.stat)(e)).isDirectory())return null;return await (0,r.readdir)(e,{withFileTypes:!0})}catch{return null}}async function h(){try{let e=(0,s.getClaudeProjectsPath)(),r=await u(e);if(!r)return[];let o=(await (0,a.batchAll)(r.filter(e=>e.isDirectory()).map(r=>async()=>{let s=(0,t.join)(e,r.name),o=await c(s,r.name);return{name:r.name,path:s,isDirectory:!0,lastModified:o,lastModifiedFormatted:(0,i.formatDate)(o),cli:["claude"]}}),16)).filter(e=>"fulfilled"===e.status).map(e=>e.value);return o.sort((e,r)=>r.lastModified.getTime()-e.lastModified.getTime()),o}catch(e){return(0,n.logError)("Error reading Claude project folders:",e),[]}}async function d(){let[{getCodexProjects:r},{getCopilotProjects:t},{getCursorProjects:s},{getOpenCodeProjects:o},{getPiProjects:a},{getHermesProjects:i},{getOpenClawProjects:l},{getFactoryProjects:c},{getDevinProjects:u},{getAntigravityProjects:d},{getGooseProjects:m}]=await Promise.all([e.A(37352),e.A(5807),e.A(97452),e.A(82978),e.A(45093),e.A(67347),e.A(38978),e.A(62998),e.A(52400),e.A(91301),e.A(31854)]),[f,p,v,_,j,g,x,k,w,y,P,E]=await Promise.all([h(),r().catch(e=>((0,n.logError)("Error reading Codex projects:",e),[])),t().catch(e=>((0,n.logError)("Error reading Copilot projects:",e),[])),s().catch(e=>((0,n.logError)("Error reading Cursor projects:",e),[])),o().catch(e=>((0,n.logError)("Error reading OpenCode projects:",e),[])),a().catch(e=>((0,n.logError)("Error reading Pi projects:",e),[])),i().catch(e=>((0,n.logError)("Error reading Hermes projects:",e),[])),l().catch(e=>((0,n.logError)("Error reading OpenClaw projects:",e),[])),c().catch(e=>((0,n.logError)("Error reading Factory projects:",e),[])),u().catch(e=>((0,n.logError)("Error reading Devin projects:",e),[])),d().catch(e=>((0,n.logError)("Error reading Antigravity projects:",e),[])),m().catch(e=>((0,n.logError)("Error reading Goose projects:",e),[]))]);return function(...e){let r=new Map;for(let t of e)for(let e of t){let t=r.get(e.name);if(!t){r.set(e.name,{...e,cli:[...e.cli]});continue}let s=[...t.cli];for(let r of e.cli)s.includes(r)||s.push(r);let o=e.lastModified.getTime()>t.lastModified.getTime()?e:t;r.set(e.name,{...t,cli:s,lastModified:o.lastModified,lastModifiedFormatted:o.lastModifiedFormatted,sessionCount:void 0===t.sessionCount&&void 0===e.sessionCount?void 0:(t.sessionCount??0)+(e.sessionCount??0)})}let t=Array.from(r.values());return t.sort((e,r)=>r.lastModified.getTime()-e.lastModified.getTime()),t}(f,p,v,_,j,g,x,k,w,y,P,E)}function m(e){if(!e)throw RangeError("Empty project name");if(/^[/\\]/.test(e))throw RangeError("Absolute project name");let r=(0,t.resolve)((0,s.getClaudeProjectsPath)()),o=(0,t.resolve)((0,t.join)(r,e));if(!o.startsWith(r+t.sep))throw RangeError("Project path escapes root");return o}function f(e){let r=e.match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i);return r?r[0]:void 0}async function p(e){try{let r=await u(e);if(!r)return[];let s=r.filter(e=>e.isFile()&&e.name.endsWith(".jsonl")&&f(e.name)),o=(await (0,a.batchAll)(s.map(r=>async()=>{let s=(0,t.join)(e,r.name),o=await c(s,r.name);return{name:r.name,path:s,lastModified:o,lastModifiedFormatted:(0,i.formatDate)(o),sessionId:f(r.name),cli:"claude"}}),16)).filter(e=>"fulfilled"===e.status).map(e=>e.value);return o.sort((e,r)=>r.lastModified.getTime()-e.lastModified.getTime()),o}catch(e){return(0,n.logError)("Error reading session files:",e),[]}}(0,o.runtimeCache)(d,30),(0,o.runtimeCache)(e=>p(e),30),e.s(["UUID_RE",0,l,"resolveProjectPath",0,m,"resolveSessionFilePath",0,function(e,r){if(!l.test(r))throw RangeError("Invalid session ID");let s=m(e);return(0,t.join)(s,`${r}.jsonl`)}])},83534,e=>{"use strict";e.s(["runtimeCache",0,function(e,r,t){let s=new Map,o=new Map,a=t?.maxSize;return async(...t)=>{let n=JSON.stringify(t),i=s.get(n);if(i&&Date.now()<i.expiry)return i.data;let l=o.get(n);if(l)return l;let c=e(...t).then(e=>{if(o.delete(n),a&&s.size>=a){let e=s.keys().next().value;s.delete(e)}return s.set(n,{data:e,expiry:Date.now()+1e3*r}),e},e=>{throw o.delete(n),e});return o.set(n,c),c}}])}];
|
|
1
|
+
module.exports=[22734,(e,r,t)=>{r.exports=e.x("fs",()=>require("fs"))},24868,(e,r,t)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},18622,(e,r,t)=>{r.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},56704,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(e,r,t)=>{r.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},93695,(e,r,t)=>{r.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},12714,(e,r,t)=>{r.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},50227,(e,r,t)=>{r.exports=e.x("node:path",()=>require("node:path"))},81111,(e,r,t)=>{r.exports=e.x("node:stream",()=>require("node:stream"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},91301,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1qb590j._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(30441)))},16341,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1shcqgr._.js"].map(r=>e.l(r))).then(()=>r(93114)))},37352,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1jm9fw6._.js"].map(r=>e.l(r))).then(()=>r(36203)))},18944,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__17g9wh7._.js","server/chunks/src_hooks_fp-home_ts_09kv0bn._.js"].map(r=>e.l(r))).then(()=>r(57232)))},71809,e=>{"use strict";async function r(e,r){let t=Array(e.length),s=0;async function o(){for(;s<e.length;){let r=s++;try{t[r]={status:"fulfilled",value:await e[r]()}}catch(e){t[r]={status:"rejected",reason:e}}}}let a=Array.from({length:Math.min(r,e.length)},()=>o());return await Promise.all(a),t}e.s(["batchAll",0,r])},5807,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1w9zl9-._.js"].map(r=>e.l(r))).then(()=>r(55851)))},21476,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1legmza._.js"].map(r=>e.l(r))).then(()=>r(78166)))},97452,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1ou2ehh._.js"].map(r=>e.l(r))).then(()=>r(46413)))},23414,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0rv7m0k._.js"].map(r=>e.l(r))).then(()=>r(72094)))},52400,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0g6bbuw._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(79364)))},53229,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1ffkmds._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(40375)))},62998,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0q0qzx1._.js"].map(r=>e.l(r))).then(()=>r(69391)))},95231,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0--lkk6._.js"].map(r=>e.l(r))).then(()=>r(22250)))},28557,e=>{"use strict";e.s(["formatDate",0,function(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}])},31854,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__08w4wmd._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(69164)))},49081,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1xuedea._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(36618)))},67347,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__1anxb5k._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(64828)))},32359,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0zlqo2t._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(3605)))},40911,e=>{"use strict";let r={info:0,warn:1,error:2};function t(e){return r[e]>=r.warn}function s(e){return`[failproofai${new Date().toISOString()}] ${e}`}e.s(["logActivity",0,function(e,r,o){if(!t("info"))return;let a=[`user=${e}`,`action=${r}`];o&&a.push(o),console.log(s("ACTIVITY"),a.join(" "))},"logError",0,function(e,r){void 0!==r?console.error(s("ERROR"),e,r):console.error(s("ERROR"),e)},"logWarn",0,function(e,r){t("warn")&&(void 0!==r?console.warn(s("WARN"),e,r):console.warn(s("WARN"),e))}])},38978,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__04_h-a5._.js"].map(r=>e.l(r))).then(()=>r(90624)))},26435,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0-219ec._.js"].map(r=>e.l(r))).then(()=>r(64199)))},82978,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__03r-lqq._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(35435)))},82859,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__12021ot._.js","server/chunks/_1vslkoe._.js"].map(r=>e.l(r))).then(()=>r(99440)))},81580,e=>{"use strict";var r=e.i(46786),t=e.i(14747);e.s(["decodeFolderName",0,function(e){return/^[A-Za-z]--/.test(e)?e[0]+":/"+e.slice(3).replace(/-/g,"/"):e.replace(/-/g,"/")},"encodeFolderName",0,function(e){let r=/^([A-Za-z]):[\\/](.*)$/.exec(e);return r?r[1]+"--"+r[2].replace(/[\\/]/g,"-"):e.replace(/[\\/]/g,"-")},"getClaudeProjectsPath",0,function(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,t.join)((0,r.homedir)(),".claude","projects")}])},45093,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0f7mikp._.js"].map(r=>e.l(r))).then(()=>r(19791)))},41330,e=>{e.v(r=>Promise.all(["server/chunks/[root-of-the-server]__0q-v9z2._.js"].map(r=>e.l(r))).then(()=>r(85116)))},56936,e=>{"use strict";var r=e.i(12714),t=e.i(50227),s=e.i(81580),o=e.i(83534),a=e.i(71809),n=e.i(40911),i=e.i(28557);let l=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;async function c(e,t){try{return(await (0,r.stat)(e)).mtime}catch(e){return(0,n.logWarn)(`Failed to stat ${t}:`,e),new Date(0)}}async function u(e){try{if(!(await (0,r.stat)(e)).isDirectory())return null;return await (0,r.readdir)(e,{withFileTypes:!0})}catch{return null}}async function h(){try{let e=(0,s.getClaudeProjectsPath)(),r=await u(e);if(!r)return[];let o=(await (0,a.batchAll)(r.filter(e=>e.isDirectory()).map(r=>async()=>{let s=(0,t.join)(e,r.name),o=await c(s,r.name);return{name:r.name,path:s,isDirectory:!0,lastModified:o,lastModifiedFormatted:(0,i.formatDate)(o),cli:["claude"]}}),16)).filter(e=>"fulfilled"===e.status).map(e=>e.value);return o.sort((e,r)=>r.lastModified.getTime()-e.lastModified.getTime()),o}catch(e){return(0,n.logError)("Error reading Claude project folders:",e),[]}}async function d(){let[{getCodexProjects:r},{getCopilotProjects:t},{getCursorProjects:s},{getOpenCodeProjects:o},{getPiProjects:a},{getHermesProjects:i},{getOpenClawProjects:l},{getFactoryProjects:c},{getDevinProjects:u},{getAntigravityProjects:d},{getGooseProjects:m}]=await Promise.all([e.A(37352),e.A(5807),e.A(97452),e.A(82978),e.A(45093),e.A(67347),e.A(38978),e.A(62998),e.A(52400),e.A(91301),e.A(31854)]),[f,p,v,_,j,g,x,k,w,y,P,E]=await Promise.all([h(),r().catch(e=>((0,n.logError)("Error reading Codex projects:",e),[])),t().catch(e=>((0,n.logError)("Error reading Copilot projects:",e),[])),s().catch(e=>((0,n.logError)("Error reading Cursor projects:",e),[])),o().catch(e=>((0,n.logError)("Error reading OpenCode projects:",e),[])),a().catch(e=>((0,n.logError)("Error reading Pi projects:",e),[])),i().catch(e=>((0,n.logError)("Error reading Hermes projects:",e),[])),l().catch(e=>((0,n.logError)("Error reading OpenClaw projects:",e),[])),c().catch(e=>((0,n.logError)("Error reading Factory projects:",e),[])),u().catch(e=>((0,n.logError)("Error reading Devin projects:",e),[])),d().catch(e=>((0,n.logError)("Error reading Antigravity projects:",e),[])),m().catch(e=>((0,n.logError)("Error reading Goose projects:",e),[]))]);return function(...e){let r=new Map;for(let t of e)for(let e of t){let t=r.get(e.name);if(!t){r.set(e.name,{...e,cli:[...e.cli]});continue}let s=[...t.cli];for(let r of e.cli)s.includes(r)||s.push(r);let o=e.lastModified.getTime()>t.lastModified.getTime()?e:t;r.set(e.name,{...t,cli:s,lastModified:o.lastModified,lastModifiedFormatted:o.lastModifiedFormatted,sessionCount:void 0===t.sessionCount&&void 0===e.sessionCount?void 0:(t.sessionCount??0)+(e.sessionCount??0)})}let t=Array.from(r.values());return t.sort((e,r)=>r.lastModified.getTime()-e.lastModified.getTime()),t}(f,p,v,_,j,g,x,k,w,y,P,E)}function m(e){if(!e)throw RangeError("Empty project name");if(/^[/\\]/.test(e))throw RangeError("Absolute project name");let r=(0,t.resolve)((0,s.getClaudeProjectsPath)()),o=(0,t.resolve)((0,t.join)(r,e));if(!o.startsWith(r+t.sep))throw RangeError("Project path escapes root");return o}function f(e){let r=e.match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i);return r?r[0]:void 0}async function p(e){try{let r=await u(e);if(!r)return[];let s=r.filter(e=>e.isFile()&&e.name.endsWith(".jsonl")&&f(e.name)),o=(await (0,a.batchAll)(s.map(r=>async()=>{let s=(0,t.join)(e,r.name),o=await c(s,r.name);return{name:r.name,path:s,lastModified:o,lastModifiedFormatted:(0,i.formatDate)(o),sessionId:f(r.name),cli:"claude"}}),16)).filter(e=>"fulfilled"===e.status).map(e=>e.value);return o.sort((e,r)=>r.lastModified.getTime()-e.lastModified.getTime()),o}catch(e){return(0,n.logError)("Error reading session files:",e),[]}}(0,o.runtimeCache)(d,30),(0,o.runtimeCache)(e=>p(e),30),e.s(["UUID_RE",0,l,"resolveProjectPath",0,m,"resolveSessionFilePath",0,function(e,r){if(!l.test(r))throw RangeError("Invalid session ID");let s=m(e);return(0,t.join)(s,`${r}.jsonl`)}])},83534,e=>{"use strict";e.s(["runtimeCache",0,function(e,r,t){let s=new Map,o=new Map,a=t?.maxSize;return async(...t)=>{let n=JSON.stringify(t),i=s.get(n);if(i&&Date.now()<i.expiry)return i.data;let l=o.get(n);if(l)return l;let c=e(...t).then(e=>{if(o.delete(n),a&&s.size>=a){let e=s.keys().next().value;s.delete(e)}return s.set(n,{data:e,expiry:Date.now()+1e3*r}),e},e=>{throw o.delete(n),e});return o.set(n,c),c}}])}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__1le9jqc._.js.map
|