failproofai 1.0.4-beta.7 → 1.0.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.
Files changed (221) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/build-manifest.json +5 -5
  3. package/.next/standalone/.next/prerender-manifest.json +4 -4
  4. package/.next/standalone/.next/required-server-files.json +1 -1
  5. package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
  6. package/.next/standalone/.next/server/app/_global-error/page/server-reference-manifest.json +1 -1
  7. package/.next/standalone/.next/server/app/_global-error/page.js +2 -2
  8. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.html +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.rsc +7 -7
  12. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +6 -6
  13. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
  14. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
  16. package/.next/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  17. package/.next/standalone/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  21. package/.next/standalone/.next/server/app/_not-found.rsc +14 -14
  22. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
  23. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +13 -13
  24. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  25. package/.next/standalone/.next/server/app/api/audit/invite/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/audit/run/route.js +4 -4
  27. package/.next/standalone/.next/server/app/api/audit/run/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/audit/status/route.js.nft.json +1 -1
  29. package/.next/standalone/.next/server/app/api/auth/login-request/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/auth/login-verify/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/download/[project]/[session]/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/audit/page/build-manifest.json +2 -2
  35. package/.next/standalone/.next/server/app/audit/page/server-reference-manifest.json +4 -37
  36. package/.next/standalone/.next/server/app/audit/page.js +2 -2
  37. package/.next/standalone/.next/server/app/audit/page.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/audit/page_client-reference-manifest.js +1 -1
  39. package/.next/standalone/.next/server/app/index.html +1 -1
  40. package/.next/standalone/.next/server/app/index.rsc +14 -14
  41. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +13 -13
  42. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +14 -14
  43. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  44. package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
  45. package/.next/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
  46. package/.next/standalone/.next/server/app/page.js +2 -2
  47. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  49. package/.next/standalone/.next/server/app/policies/page/build-manifest.json +2 -2
  50. package/.next/standalone/.next/server/app/policies/page/server-reference-manifest.json +14 -14
  51. package/.next/standalone/.next/server/app/policies/page.js +4 -4
  52. package/.next/standalone/.next/server/app/policies/page.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/policies/page_client-reference-manifest.js +1 -1
  54. package/.next/standalone/.next/server/app/project/[name]/page/build-manifest.json +2 -2
  55. package/.next/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
  56. package/.next/standalone/.next/server/app/project/[name]/page.js +3 -3
  57. package/.next/standalone/.next/server/app/project/[name]/page.js.nft.json +1 -1
  58. package/.next/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
  59. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/build-manifest.json +2 -2
  60. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +2 -2
  61. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +2 -2
  62. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +4 -4
  63. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js.nft.json +1 -1
  64. package/.next/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  65. package/.next/standalone/.next/server/app/projects/page/build-manifest.json +2 -2
  66. package/.next/standalone/.next/server/app/projects/page/server-reference-manifest.json +1 -1
  67. package/.next/standalone/.next/server/app/projects/page.js +3 -3
  68. package/.next/standalone/.next/server/app/projects/page.js.nft.json +1 -1
  69. package/.next/standalone/.next/server/app/projects/page_client-reference-manifest.js +1 -1
  70. package/.next/standalone/.next/server/app/settings/page/build-manifest.json +2 -2
  71. package/.next/standalone/.next/server/app/settings/page/server-reference-manifest.json +4 -15
  72. package/.next/standalone/.next/server/app/settings/page.js +4 -4
  73. package/.next/standalone/.next/server/app/settings/page.js.nft.json +1 -1
  74. package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  75. package/.next/standalone/.next/server/chunks/{[externals]__0v1hz15._.js → [externals]__0-9ti7z._.js} +1 -1
  76. package/.next/standalone/.next/server/chunks/{[externals]__1nb206a._.js → [externals]__0u3wrvq._.js} +1 -1
  77. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0o07qi9._.js +1 -1
  78. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0rv7m0k._.js +1 -1
  79. package/.next/standalone/.next/server/chunks/[root-of-the-server]__17g9wh7._.js +1 -1
  80. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1legmza._.js +1 -1
  81. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1p-qi2t._.js +1 -1
  82. package/.next/standalone/.next/server/chunks/_0tovk6q._.js +1 -1
  83. package/.next/standalone/.next/server/chunks/_0trp3yc._.js +1 -1
  84. package/.next/standalone/.next/server/chunks/{_0otft92._.js → _1-akg6w._.js} +2 -2
  85. package/.next/standalone/.next/server/chunks/_1ek68ln._.js +10 -10
  86. package/.next/standalone/.next/server/chunks/_1vslkoe._.js +1 -1
  87. package/.next/standalone/.next/server/chunks/lib_telemetry_ts_0dctyyw._.js +1 -1
  88. package/.next/standalone/.next/server/chunks/package_json_[json]_cjs_1nxcc4v._.js +1 -1
  89. package/.next/standalone/.next/server/chunks/src_hooks_fp-home_ts_09kv0bn._.js +1 -1
  90. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1fvfw59._.js → [root-of-the-server]__00-s7h8._.js} +1 -1
  91. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__013jr2b._.js +4 -0
  92. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__01wy8d-._.js +4 -0
  93. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__02npjtd._.js +4 -0
  94. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__12hbpha._.js → [root-of-the-server]__09flfsx._.js} +2 -2
  95. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0da85px._.js +4 -0
  96. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ftmoxc._.js +4 -0
  97. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0kokc8z._.js → [root-of-the-server]__0n_lxhg._.js} +1 -1
  98. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0oa1lav._.js +1 -1
  99. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0p-5p8u._.js +4 -0
  100. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0s740oi._.js +6 -0
  101. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0dxf928._.js → [root-of-the-server]__190won8._.js} +1 -1
  102. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__0n2txhk._.js → [root-of-the-server]__1ctpynv._.js} +1 -1
  103. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1p2otjt._.js +4 -0
  104. package/.next/standalone/.next/server/chunks/ssr/_02yoeej._.js +3 -0
  105. package/.next/standalone/.next/server/chunks/ssr/{_0a0zlpr._.js → _04rbnaq._.js} +2 -2
  106. package/.next/standalone/.next/server/chunks/ssr/_08x1r5t._.js +1 -1
  107. package/.next/standalone/.next/server/chunks/ssr/{_0s-77v5._.js → _0h_douw._.js} +1 -1
  108. package/.next/standalone/.next/server/chunks/ssr/_1_ozgif._.js +1 -1
  109. package/.next/standalone/.next/server/chunks/ssr/_1ddpc5g._.js +1 -1
  110. package/.next/standalone/.next/server/chunks/ssr/_1es2j7i._.js +14 -51
  111. package/.next/standalone/.next/server/chunks/ssr/{_07t3jol._.js → _1u8-lu2._.js} +2 -2
  112. package/.next/standalone/.next/server/chunks/ssr/_1ylae7o._.js +3 -0
  113. package/.next/standalone/.next/server/chunks/ssr/_1zopuov._.js +3 -0
  114. package/.next/standalone/.next/server/chunks/ssr/_next-internal_server_app_policies_page_actions_1sp2-yo.js +2 -2
  115. package/.next/standalone/.next/server/chunks/ssr/app_audit__components_audit-dashboard_tsx_0p9ud47._.js +69 -1
  116. package/.next/standalone/.next/server/chunks/ssr/app_global-error_tsx_1kp6l3x._.js +1 -1
  117. package/.next/standalone/.next/server/chunks/ssr/app_policies_hooks-client_tsx_19dqvpc._.js +1 -1
  118. package/.next/standalone/.next/server/chunks/ssr/app_settings_settings-client_tsx_20lq-mq._.js +1 -1
  119. package/.next/standalone/.next/server/chunks/ssr/node_modules_13n822a._.js +1 -1
  120. package/.next/standalone/.next/server/chunks/ssr/node_modules_html-to-image_es_index_1ao30b1.js +3 -0
  121. package/.next/standalone/.next/server/chunks/ssr/src_hooks_builtin-policies_ts_09j2ndl._.js +1 -1
  122. package/.next/standalone/.next/server/chunks/ssr/src_hooks_fp-config_ts_04t589g._.js +1 -1
  123. package/.next/standalone/.next/server/chunks/ssr/src_hooks_fp-home_ts_0je3xkv._.js +1 -1
  124. package/.next/standalone/.next/server/middleware-build-manifest.js +5 -5
  125. package/.next/standalone/.next/server/pages/404.html +1 -1
  126. package/.next/standalone/.next/server/pages/500.html +1 -1
  127. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  128. package/.next/standalone/.next/server/server-reference-manifest.json +21 -65
  129. package/.next/standalone/.next/static/chunks/{0f1pznnc7zlub.js → 0-tyrpwuc3lla.js} +1 -1
  130. package/.next/standalone/.next/static/chunks/0ca7octhod0g2.js +69 -0
  131. package/.next/standalone/.next/static/chunks/0u64yey446k4f.css +1 -0
  132. package/.next/standalone/.next/static/chunks/{1csubx9gwhsf6.js → 1j6o9min_6qa9.js} +1 -1
  133. package/.next/standalone/.next/static/chunks/27cl8h-c2w7cd.js +1 -0
  134. package/.next/standalone/.next/static/chunks/{0jpd8dv2vk930.css → 29-iqnp9v_axt.css} +1 -1
  135. package/.next/standalone/.next/static/chunks/{3uyhmm01g64k4.css → 2k9f4tyv04809.css} +0 -1
  136. package/.next/standalone/.next/static/chunks/{0t6ea7d3bkmdv.js → 2lwipmv5etc8m.js} +1 -1
  137. package/.next/standalone/.next/static/chunks/2pd16tn5qmx13.js +1 -0
  138. package/.next/standalone/.next/static/chunks/{0ntdfr2552x-h.js → 2u8vh73tpw28_.js} +1 -1
  139. package/.next/standalone/.next/static/chunks/{15uon66hpwbgg.js → 31u94yukw9fz-.js} +1 -1
  140. package/.next/standalone/.next/static/chunks/{2pwfrn6_mw-1u.js → 3p9_8x5ezce-9.js} +1 -1
  141. package/.next/standalone/.next/static/chunks/3qfoeqhy5l10x.js +1 -0
  142. package/.next/standalone/.next/static/chunks/{083fk73jtv9a0.js → 3tjji451hrgc0.js} +1 -1
  143. package/.next/standalone/.next/static/chunks/3zkg2s2vzxc3d.js +1 -0
  144. package/.next/standalone/.next/static/chunks/{turbopack-3s3c-u_u_l0u9.js → turbopack-3p73obe0xmrxm.js} +1 -1
  145. package/.next/standalone/.opencode/plugins/failproofai.mjs +27 -51
  146. package/.next/standalone/app/actions/get-scheduled-audit.ts +0 -5
  147. package/.next/standalone/app/actions/update-scheduled-audit.ts +57 -18
  148. package/.next/standalone/app/api/auth/status/route.ts +2 -3
  149. package/.next/standalone/app/audit/_components/audit-dashboard.tsx +34 -140
  150. package/.next/standalone/app/audit/_components/audit-poster.tsx +10 -29
  151. package/.next/standalone/app/audit/_components/come-back-better-section.tsx +1 -6
  152. package/.next/standalone/app/audit/_components/empty-state.tsx +1 -4
  153. package/.next/standalone/app/audit/_components/how-to-improve-section.tsx +5 -19
  154. package/.next/standalone/app/audit/_components/share-templates.ts +44 -110
  155. package/.next/standalone/app/audit/audit-styles.css +1 -132
  156. package/.next/standalone/app/settings/page.tsx +1 -1
  157. package/.next/standalone/app/settings/settings-client.tsx +45 -50
  158. package/.next/standalone/lib/auth/api-server-client.ts +5 -33
  159. package/.next/standalone/lib/claude-sessions.ts +27 -101
  160. package/.next/standalone/lib/codex-sessions.ts +4 -20
  161. package/.next/standalone/lib/copilot-sessions.ts +1 -32
  162. package/.next/standalone/lib/cursor-sessions.ts +5 -62
  163. package/.next/standalone/lib/sqlite-reader.ts +1 -78
  164. package/.next/standalone/package.json +9 -9
  165. package/.next/standalone/server.js +1 -1
  166. package/bin/failproofai.mjs +1 -1
  167. package/dist/cli.mjs +500 -1762
  168. package/dist/worker.mjs +16 -138
  169. package/lib/auth/api-server-client.ts +5 -33
  170. package/lib/claude-sessions.ts +27 -101
  171. package/lib/codex-sessions.ts +4 -20
  172. package/lib/copilot-sessions.ts +1 -32
  173. package/lib/cursor-sessions.ts +5 -62
  174. package/lib/sqlite-reader.ts +1 -78
  175. package/package.json +9 -9
  176. package/pi-extension/index.ts +5 -50
  177. package/src/audit/cache.ts +0 -6
  178. package/src/audit/cli-adapters/claude.ts +0 -13
  179. package/src/audit/cli-login.ts +1 -4
  180. package/src/audit/cli.ts +7 -157
  181. package/src/audit/harm-report.ts +4 -111
  182. package/src/audit/index.ts +15 -286
  183. package/src/audit/machine-store.ts +9 -8
  184. package/src/audit/redact-example.ts +15 -324
  185. package/src/audit/report-harm.ts +37 -33
  186. package/src/audit/report.ts +3 -6
  187. package/src/audit/schedule-cli.ts +33 -54
  188. package/src/audit/scoring.ts +0 -49
  189. package/src/audit/types.ts +0 -52
  190. package/src/hooks/builtin-policies.ts +2 -67
  191. package/src/hooks/configure-wizard.ts +0 -55
  192. package/src/hooks/fp-config.ts +48 -83
  193. package/src/hooks/fp-home.ts +0 -27
  194. package/src/hooks/integrations.ts +14 -51
  195. package/src/hooks/uninstall-cli.ts +2 -17
  196. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0-4ja6q._.js +0 -4
  197. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__00cr3xu._.js +0 -4
  198. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__04px77e._.js +0 -4
  199. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0egr5s1._.js +0 -6
  200. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0i0l1di._.js +0 -4
  201. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0r3c1_0._.js +0 -4
  202. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__17xnxlx._.js +0 -4
  203. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1ckpmkk._.js +0 -4
  204. package/.next/standalone/.next/server/chunks/ssr/_04ng_6x._.js +0 -3
  205. package/.next/standalone/.next/server/chunks/ssr/_0l2hi_d._.js +0 -3
  206. package/.next/standalone/.next/server/chunks/ssr/app_audit__components_rerun-button_tsx_0blihgw._.js +0 -3
  207. package/.next/standalone/.next/static/chunks/0divvxng208xo.js +0 -1
  208. package/.next/standalone/.next/static/chunks/27du9n7ssja7l.js +0 -1
  209. package/.next/standalone/.next/static/chunks/2h_pcb1y8_jde.js +0 -1
  210. package/.next/standalone/app/actions/get-leaks.ts +0 -104
  211. package/.next/standalone/app/audit/_components/leak-section.tsx +0 -192
  212. package/src/audit/desktop-notify.ts +0 -420
  213. package/src/audit/leak-fingerprint.ts +0 -198
  214. package/src/audit/leak-record.ts +0 -248
  215. package/src/audit/leak-scan.ts +0 -268
  216. package/src/audit/leak-store.ts +0 -220
  217. package/src/audit/macos-notifier.ts +0 -298
  218. package/src/hooks/notice.ts +0 -24
  219. /package/.next/standalone/.next/static/{YiPsVpjrc-pEQoN7XvhZ0 → dg8VQ7Ejlo0Qsh_x92oIt}/_buildManifest.js +0 -0
  220. /package/.next/standalone/.next/static/{YiPsVpjrc-pEQoN7XvhZ0 → dg8VQ7Ejlo0Qsh_x92oIt}/_clientMiddlewareManifest.js +0 -0
  221. /package/.next/standalone/.next/static/{YiPsVpjrc-pEQoN7XvhZ0 → dg8VQ7Ejlo0Qsh_x92oIt}/_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/0divvxng208xo.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/0divvxng208xo.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/0divvxng208xo.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/0divvxng208xo.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/0divvxng208xo.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/0divvxng208xo.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/0divvxng208xo.js"],"async":false},"[project]/contexts/PostHogContext.tsx":{"id":12344,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/0divvxng208xo.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/0divvxng208xo.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/0divvxng208xo.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/0divvxng208xo.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/0divvxng208xo.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/0divvxng208xo.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/0divvxng208xo.js","/_next/static/chunks/0f1pznnc7zlub.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/0divvxng208xo.js","/_next/static/chunks/27du9n7ssja7l.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/_0a0zlpr._.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/0divvxng208xo.js"],"[project]/app/error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/0divvxng208xo.js","static/chunks/3xpjn3cdgm-7m.js"],"[project]/app/global-error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/0divvxng208xo.js","static/chunks/0f1pznnc7zlub.js"],"[project]/app/settings/page":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/0divvxng208xo.js","static/chunks/27du9n7ssja7l.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/2pd16tn5qmx13.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/2pd16tn5qmx13.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/2pd16tn5qmx13.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/2pd16tn5qmx13.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/2pd16tn5qmx13.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/2pd16tn5qmx13.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/2pd16tn5qmx13.js"],"async":false},"[project]/contexts/PostHogContext.tsx":{"id":12344,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/2pd16tn5qmx13.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/2pd16tn5qmx13.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/2pd16tn5qmx13.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/2pd16tn5qmx13.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/2pd16tn5qmx13.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/1eyl7fzkmnkf_.js","/_next/static/chunks/2lvr2pt70qn14.js","/_next/static/chunks/2pd16tn5qmx13.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/2pd16tn5qmx13.js","/_next/static/chunks/0-tyrpwuc3lla.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/2pd16tn5qmx13.js","/_next/static/chunks/27cl8h-c2w7cd.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_04rbnaq._.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/_1ylae7o._.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/0u64yey446k4f.css","inlined":false},{"path":"static/chunks/2k9f4tyv04809.css","inlined":false}]},"entryJSFiles":{"[project]/app/layout":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/2pd16tn5qmx13.js"],"[project]/app/error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/2pd16tn5qmx13.js","static/chunks/3xpjn3cdgm-7m.js"],"[project]/app/global-error":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/2pd16tn5qmx13.js","static/chunks/0-tyrpwuc3lla.js"],"[project]/app/settings/page":["static/chunks/1eyl7fzkmnkf_.js","static/chunks/2lvr2pt70qn14.js","static/chunks/2pd16tn5qmx13.js","static/chunks/27cl8h-c2w7cd.js"]}};
3
3
 
@@ -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%5D__0v1hz15._.js.map
3
+ //# sourceMappingURL=%5Bexternals%5D__0-9ti7z._.js.map
@@ -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%5D__1nb206a._.js.map
3
+ //# sourceMappingURL=%5Bexternals%5D__0u3wrvq._.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.7",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.7","@failproofai/failproofaid-linux-arm64":"1.0.4-beta.7","@failproofai/failproofaid-darwin-x64":"1.0.4-beta.7","@failproofai/failproofaid-darwin-arm64":"1.0.4-beta.7"},failproofaidBinaries:{"linux-x64":"e59735a8f94cd8ac697b2bd67aafdd8d76a8394d53db229876980cc13a18f07e","linux-arm64":"b9ce50dd2f79b55f4f7112add265a776a4a6d002c2a56f971e666fbb796f3906","darwin-x64":"b46efc8ec33945a5cc26b7bb288fb87cea65b5983bd83094b5e607d53b8eda4c","darwin-arm64":"a8cc6112cee5ca8a7d517900e9ce32118855135980f22979fa0ff7aa6f68d954"}}}];
1
+ module.exports=[74533,(e,i,s)=>{i.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,i,s)=>{i.exports=e.x("node:crypto",()=>require("node:crypto"))},2157,(e,i,s)=>{i.exports=e.x("node:fs",()=>require("node:fs"))},60526,(e,i,s)=>{i.exports=e.x("node:os",()=>require("node:os"))},50227,(e,i,s)=>{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,s)=>{i.exports={name:"failproofai",version:"1.0.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","@failproofai/failproofaid-linux-arm64":"1.0.4","@failproofai/failproofaid-darwin-x64":"1.0.4","@failproofai/failproofaid-darwin-arm64":"1.0.4"},failproofaidBinaries:{"linux-x64":"cca1d41ff951784ba084bf2d72cfad0fe8d988f8226e0e7a4538b1fb8d76a5bd","linux-arm64":"55e9c1e2864cbf6057fd0c27e4bc573ca8fba2cd35d480a3db3a55d398e7bec0","darwin-x64":"2a46ec77d2cac14a036f35e832f92f16895239814a5f10f02121f3c313e70574","darwin-arm64":"a0e7ccc6fe24e1017592637192ba8a26c9d05ca839c98bc72a983094c863b39b"}}}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0o07qi9._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[2157,(t,e,s)=>{e.exports=t.x("node:fs",()=>require("node:fs"))},60526,(t,e,s)=>{e.exports=t.x("node:os",()=>require("node:os"))},72094,t=>{"use strict";var e=t.i(2157),s=t.i(12714),n=t.i(50227),i=t.i(60526),o=t.i(83534),r=t.i(54214),a=t.i(67405);let u=["agent-sessions","conversations","sessions"],l=["events.jsonl","transcript.jsonl","messages.jsonl"],m="agent-transcripts";function p(t){let s=function(t){if(!t)return null;let s=(0,n.resolve)(process.env.CURSOR_HOME||(0,n.join)((0,i.homedir)(),".cursor")),o=(0,n.resolve)(s,"projects"),r=[];try{r=(0,e.readdirSync)(o,{withFileTypes:!0})}catch{}for(let s of r){if(!s.isDirectory())continue;let i=(0,n.resolve)(o,s.name,m,t),r=(0,n.resolve)(o,s.name,m);if(i!==r&&i.startsWith(`${r}${n.sep}`)&&(0,e.existsSync)(i))return i}for(let i of u){let o=(0,n.resolve)(s,i),r=(0,n.resolve)(o,t);if(r!==o&&r.startsWith(`${o}${n.sep}`)&&(0,e.existsSync)(r))return r}return null}(t);if(!s)return null;let o=(0,n.join)(s,`${(0,n.basename)(s)}.jsonl`);if((0,e.existsSync)(o))return o;for(let t of l){let i=(0,n.join)(s,t);if((0,e.existsSync)(i))return i}return null}async function c(t,e="session"){let s,n=t.split("\n").filter(t=>""!==t.trim()),i=[],o=[],u=new Map,l=new Map,m=!1,p=Date.now();for(let t=0;t<n.length;t++){let c;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let f=n[t];try{c=JSON.parse(f)}catch{continue}let y={...c,_source:e};if(o.push(y),!c.type&&c.role&&c.message?.content){let s=new Date(p+t),n=s.toISOString(),o=c.message.content,m=o.filter(t=>t?.type==="text"&&"string"==typeof t.text).map(t=>t.text).join("");if("user"===c.role){let t=!1;for(let e of o){if(e?.type!=="tool_result")continue;let i="string"==typeof e.tool_use_id?e.tool_use_id:void 0,o=i?u.get(i):void 0;if(!o)continue;let m=Math.max(0,s.getTime()-(l.get(i)??s.getTime()));o.result={timestamp:n,timestampFormatted:(0,r.formatTimestamp)(s),content:"string"==typeof e.content?e.content:null==e.content?"":JSON.stringify(e.content),durationMs:m,durationFormatted:(0,a.formatDuration)(m)},t=!0}let p=/<user_query>\s*([\s\S]*?)\s*<\/user_query>/.exec(m),c=p?p[1]:m;c?i.push({type:"user",...(0,r.baseEntry)(y,n,s,e),message:{role:"user",content:c}}):t||i.push({type:"system",...(0,r.baseEntry)(y,n,s,e),raw:y});continue}if("assistant"===c.role){let a=[];m&&a.push({type:"text",text:m});for(let e=0;e<o.length;e++){let n=o[e];if(n?.type!=="tool_use")continue;let i="string"==typeof n.name?n.name:"tool",r="string"==typeof n.id&&n.id?n.id:`cursor-${t}-${i}-${e}`,m={type:"tool_use",id:r,name:i,input:n.input&&"object"==typeof n.input?n.input:{}};a.push(m),u.set(r,m),l.set(r,s.getTime())}0===a.length?i.push({type:"system",...(0,r.baseEntry)(y,n,s,e),raw:y}):i.push({type:"assistant",...(0,r.baseEntry)(y,n,s,e),message:{role:"assistant",content:a}});continue}i.push({type:"system",...(0,r.baseEntry)(y,n,s,e),raw:y});continue}let g=c.timestamp;if(!g)continue;let d=new Date(g);if(Number.isNaN(d.getTime()))continue;let h=d.toISOString(),w=c.type,x=c.data??{};if("session.start"===w||"sessionStart"===w||"session_start"===w){let t=x.context??x,n=t.cwd;"string"!=typeof n||s||(s=n),!s&&Array.isArray(t.workspace_roots)&&"string"==typeof t.workspace_roots[0]&&(s=t.workspace_roots[0]);let o=m?"Session Resumed":"Session Started";m=!0,i.push({type:"queue-operation",...(0,r.baseEntry)(y,h,d,e),label:o});continue}if("user.message"===w||"userMessage"===w){let t="string"==typeof x.content?x.content:"string"==typeof x.text?x.text:"";if(!t)continue;i.push({type:"user",...(0,r.baseEntry)(y,h,d,e),message:{role:"user",content:t}});continue}if("system.message"===w||"systemMessage"===w){i.push({type:"system",...(0,r.baseEntry)(y,h,d,e),raw:y});continue}if("assistant.message"===w||"assistantMessage"===w){let t="string"==typeof x.content?x.content:"string"==typeof x.text?x.text:"";if(!t){i.push({type:"system",...(0,r.baseEntry)(y,h,d,e),raw:y});continue}let s=[{type:"text",text:t}];i.push({type:"assistant",...(0,r.baseEntry)(y,h,d,e),message:{role:"assistant",content:s}});continue}if("tool.execution_start"===w||"tool.executionStart"===w||"preToolUse"===w){let t=x.toolCallId??x.tool_use_id,s=x.toolName??x.tool_name??"tool",n=x.arguments??x.tool_input??{},o={type:"tool_use",id:t??`${d.getTime()}-${s}`,name:s,input:n},a={type:"assistant",...(0,r.baseEntry)(y,h,d,e),message:{role:"assistant",content:[o]}};i.push(a),t&&(u.set(t,o),l.set(t,d.getTime()));continue}if("tool.execution_complete"===w||"tool.executionComplete"===w||"postToolUse"===w){let t=x.toolCallId??x.tool_use_id,s=t?u.get(t):void 0;if(s){let e=l.get(t)??d.getTime(),n=x.result??{},i=x.duration,o="number"==typeof i&&i>=0?i:Math.max(0,d.getTime()-e),u=n.detailedContent??n.content??x.tool_output??"";s.result={timestamp:h,timestampFormatted:(0,r.formatTimestamp)(d),content:"string"==typeof u?u:JSON.stringify(u),durationMs:o,durationFormatted:(0,a.formatDuration)(o)};continue}i.push({type:"system",...(0,r.baseEntry)(y,h,d,e),raw:y});continue}i.push({type:"system",...(0,r.baseEntry)(y,h,d,e),raw:y})}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:o,cwd:s}}async function f(t){let e,n=p(t);if(!n)return null;try{e=await (0,s.readFile)(n,"utf-8")}catch{return null}let{entries:i,rawLines:o,cwd:r}=await c(e,"session");return{entries:i,rawLines:o,cwd:r,filePath:n}}(0,o.runtimeCache)(t=>f(t),60,{maxSize:50}),t.s(["findCursorTranscript",0,p,"getCursorSessionLog",0,f])},54214,67405,t=>{"use strict";var e=t.i(24868),s=t.i(14747),n=t.i(81580),i=t.i(56936);async function o(t,n,i,o){let r=`agent-${o}.jsonl`;for(let o of[(0,s.join)(t,n,r),(0,s.join)(t,n,i,r),(0,s.join)(t,n,i,"subagents",r)])if(!(0,s.relative)(t,o).startsWith(".."))try{return await (0,e.access)(o),o}catch(t){if("ENOENT"===t.code)continue;break}return null}var r=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 s=Math.round(t/1e3);if(s<3600){let t=Math.floor(s/60);return`${t}m ${s%60}s`}let n=Math.round(t/6e4),i=Math.floor(n/60);return`${i}h ${n%60}m`}function m(t){let e=(0,u.formatDate)(t),s=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${s}`}function p(t,e,s,n){return{_source:n,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:s.getTime(),timestampFormatted:m(s)}}async function c(t,e){let s=t.split("\n").filter(t=>""!==t.trim()),n=new Map,i=[],o=[],r=new Set,a=!1;for(let t=0;t<s.length;t++){let u;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let l=s[t];try{u=JSON.parse(l)}catch{continue}let m={...u,_source:e};o.push(m);let c=u.type,f=u.timestamp;if(!f)continue;let y=new Date(f),g=y.getTime();if("user"===c){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,s="string"==typeof t?.agentId?t.agentId:void 0;for(let t of(s&&/^[a-f0-9]+$/.test(s)&&r.add(s),e)){if("tool_result"!==t.type)continue;let e=t.tool_use_id;if(!e)continue;let{text:i,images:o}=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),s=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:s.length>0?s:void 0}}return{}}(t);n.set(e,{timestamp:f,timestampMs:g,content:i,images:o,agentId:s})}continue}}let s="string"==typeof t?.content?t.content:"";i.push({type:"user",...p(u,f,y,e),message:{role:"user",content:s}});continue}if("assistant"===c){let t=u.message,s=[];if(Array.isArray(t?.content)&&(s=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===s.length)continue;i.push({type:"assistant",...p(u,f,y,e),message:{role:"assistant",content:s,model:t?.model}});continue}if("file-history-snapshot"===c||"progress"===c||"system"===c){i.push({type:c,...p(u,f,y,e),raw:{...u}});continue}if("queue-operation"===c){let t=a?"Session Resumed":"Session Started";a=!0,i.push({type:"queue-operation",...p(u,f,y,e),label:t});continue}}let u=0;for(let t of i)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 s=n.get(e.id);if(!s)continue;let i=new Date(s.timestamp),o=Math.max(0,s.timestampMs-t.timestampMs);e.result={timestamp:s.timestamp,timestampFormatted:m(i),content:s.content,images:s.images,durationMs:o,durationFormatted:l(o)},s.agentId&&(e.subagentId=s.agentId)}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:o,subagentIds:Array.from(r)}}async function f(t,e="session"){return(await c(t,e)).entries}async function y(t,r){let u=(0,i.resolveProjectPath)(t),l=(0,n.getClaudeProjectsPath)(),m=(0,s.join)(u,`${r}.jsonl`),p=await (0,e.readFile)(m,"utf-8"),{entries:f,rawLines:y,subagentIds:g}=await c(p,"session");if(0===g.length)return{entries:f,rawLines:y,subagentIds:[]};let d=await (0,a.batchAll)(g.map(s=>async()=>{let n=`agent-${s}`,i=await o(l,t,r,s);if(!i)return null;let a=await (0,e.readFile)(i,"utf-8"),{entries:u,rawLines:m}=await c(a,n);return{entries:u,rawLines:m}}),4),h=[...f],w=[...y];for(let t of d)"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:g}}t.s(["formatDuration",0,l],67405),(0,r.runtimeCache)((t,e)=>y(t,e),60,{maxSize:50}),t.s(["baseEntry",0,p,"formatTimestamp",0,m,"parseLogContent",0,f,"parseRawLines",0,function(t,e){return t.split("\n").filter(t=>""!==t.trim()).flatMap(t=>{try{let s=JSON.parse(t);return void 0!==e&&(s._source=e),[s]}catch{return[]}})}],54214)}];
1
+ module.exports=[2157,(t,e,s)=>{e.exports=t.x("node:fs",()=>require("node:fs"))},60526,(t,e,s)=>{e.exports=t.x("node:os",()=>require("node:os"))},72094,t=>{"use strict";var e=t.i(2157),s=t.i(12714),n=t.i(50227),i=t.i(60526),r=t.i(83534),o=t.i(54214),a=t.i(67405);let u=["agent-sessions","conversations","sessions"],l=["events.jsonl","transcript.jsonl","messages.jsonl"],m="agent-transcripts";function p(t){let s=function(t){if(!t)return null;let s=(0,n.resolve)(process.env.CURSOR_HOME||(0,n.join)((0,i.homedir)(),".cursor")),r=(0,n.resolve)(s,"projects"),o=[];try{o=(0,e.readdirSync)(r,{withFileTypes:!0})}catch{}for(let s of o){if(!s.isDirectory())continue;let i=(0,n.resolve)(r,s.name,m,t),o=(0,n.resolve)(r,s.name,m);if(i!==o&&i.startsWith(`${o}${n.sep}`)&&(0,e.existsSync)(i))return i}for(let i of u){let r=(0,n.resolve)(s,i),o=(0,n.resolve)(r,t);if(o!==r&&o.startsWith(`${r}${n.sep}`)&&(0,e.existsSync)(o))return o}return null}(t);if(!s)return null;let r=(0,n.join)(s,`${(0,n.basename)(s)}.jsonl`);if((0,e.existsSync)(r))return r;for(let t of l){let i=(0,n.join)(s,t);if((0,e.existsSync)(i))return i}return null}async function c(t,e="session"){let s,n=t.split("\n").filter(t=>""!==t.trim()),i=[],r=[],u=new Map,l=new Map,m=!1,p=Date.now();for(let t=0;t<n.length;t++){let c;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let f=n[t];try{c=JSON.parse(f)}catch{continue}let y={...c,_source:e};if(r.push(y),!c.type&&c.role&&c.message?.content){let s=new Date(p+t),n=s.toISOString(),r=c.message.content.filter(t=>t?.type==="text"&&"string"==typeof t.text).map(t=>t.text).join("");if("user"===c.role){let t=/<user_query>\s*([\s\S]*?)\s*<\/user_query>/.exec(r),a=t?t[1]:r;a&&i.push({type:"user",...(0,o.baseEntry)(y,n,s,e),message:{role:"user",content:a}});continue}if("assistant"===c.role){let t=r?[{type:"text",text:r}]:[];0===t.length?i.push({type:"system",...(0,o.baseEntry)(y,n,s,e),raw:y}):i.push({type:"assistant",...(0,o.baseEntry)(y,n,s,e),message:{role:"assistant",content:t}});continue}i.push({type:"system",...(0,o.baseEntry)(y,n,s,e),raw:y});continue}let g=c.timestamp;if(!g)continue;let d=new Date(g);if(Number.isNaN(d.getTime()))continue;let h=d.toISOString(),w=c.type,x=c.data??{};if("session.start"===w||"sessionStart"===w||"session_start"===w){let t=x.context??x,n=t.cwd;"string"!=typeof n||s||(s=n),!s&&Array.isArray(t.workspace_roots)&&"string"==typeof t.workspace_roots[0]&&(s=t.workspace_roots[0]);let r=m?"Session Resumed":"Session Started";m=!0,i.push({type:"queue-operation",...(0,o.baseEntry)(y,h,d,e),label:r});continue}if("user.message"===w||"userMessage"===w){let t="string"==typeof x.content?x.content:"string"==typeof x.text?x.text:"";if(!t)continue;i.push({type:"user",...(0,o.baseEntry)(y,h,d,e),message:{role:"user",content:t}});continue}if("system.message"===w||"systemMessage"===w){i.push({type:"system",...(0,o.baseEntry)(y,h,d,e),raw:y});continue}if("assistant.message"===w||"assistantMessage"===w){let t="string"==typeof x.content?x.content:"string"==typeof x.text?x.text:"";if(!t){i.push({type:"system",...(0,o.baseEntry)(y,h,d,e),raw:y});continue}let s=[{type:"text",text:t}];i.push({type:"assistant",...(0,o.baseEntry)(y,h,d,e),message:{role:"assistant",content:s}});continue}if("tool.execution_start"===w||"tool.executionStart"===w||"preToolUse"===w){let t=x.toolCallId??x.tool_use_id,s=x.toolName??x.tool_name??"tool",n=x.arguments??x.tool_input??{},r={type:"tool_use",id:t??`${d.getTime()}-${s}`,name:s,input:n},a={type:"assistant",...(0,o.baseEntry)(y,h,d,e),message:{role:"assistant",content:[r]}};i.push(a),t&&(u.set(t,r),l.set(t,d.getTime()));continue}if("tool.execution_complete"===w||"tool.executionComplete"===w||"postToolUse"===w){let t=x.toolCallId??x.tool_use_id,s=t?u.get(t):void 0;if(s){let e=l.get(t)??d.getTime(),n=x.result??{},i=x.duration,r="number"==typeof i&&i>=0?i:Math.max(0,d.getTime()-e),u=n.detailedContent??n.content??x.tool_output??"";s.result={timestamp:h,timestampFormatted:(0,o.formatTimestamp)(d),content:"string"==typeof u?u:JSON.stringify(u),durationMs:r,durationFormatted:(0,a.formatDuration)(r)};continue}i.push({type:"system",...(0,o.baseEntry)(y,h,d,e),raw:y});continue}i.push({type:"system",...(0,o.baseEntry)(y,h,d,e),raw:y})}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:r,cwd:s}}async function f(t){let e,n=p(t);if(!n)return null;try{e=await (0,s.readFile)(n,"utf-8")}catch{return null}let{entries:i,rawLines:r,cwd:o}=await c(e,"session");return{entries:i,rawLines:r,cwd:o,filePath:n}}(0,r.runtimeCache)(t=>f(t),60,{maxSize:50}),t.s(["findCursorTranscript",0,p,"getCursorSessionLog",0,f])},54214,67405,t=>{"use strict";var e=t.i(24868),s=t.i(14747),n=t.i(81580),i=t.i(56936);async function r(t,n,i,r){let o=`agent-${r}.jsonl`;for(let r of[(0,s.join)(t,n,o),(0,s.join)(t,n,i,o),(0,s.join)(t,n,i,"subagents",o)])if(!(0,s.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 s=Math.round(t/1e3);if(s<3600){let t=Math.floor(s/60);return`${t}m ${s%60}s`}let n=Math.round(t/6e4),i=Math.floor(n/60);return`${i}h ${n%60}m`}function m(t){let e=(0,u.formatDate)(t),s=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${s}`}function p(t,e,s,n){return{_source:n,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:s.getTime(),timestampFormatted:m(s)}}async function c(t,e){let s=t.split("\n").filter(t=>""!==t.trim()),n=new Map,i=[],r=[],o=new Set,a=!1;for(let t=0;t<s.length;t++){let u;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let l=s[t];try{u=JSON.parse(l)}catch{continue}let m={...u,_source:e};r.push(m);let c=u.type,f=u.timestamp;if(!f)continue;let y=new Date(f),g=y.getTime();if("user"===c){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,s="string"==typeof t?.agentId?t.agentId:void 0;for(let t of(s&&/^[a-f0-9]+$/.test(s)&&o.add(s),e)){if("tool_result"!==t.type)continue;let e=t.tool_use_id;if(!e)continue;let{text:i,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),s=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:s.length>0?s:void 0}}return{}}(t);n.set(e,{timestamp:f,timestampMs:g,content:i,images:r,agentId:s})}continue}}let s="string"==typeof t?.content?t.content:"";i.push({type:"user",...p(u,f,y,e),message:{role:"user",content:s}});continue}if("assistant"===c){let t=u.message,s=[];if(Array.isArray(t?.content)&&(s=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===s.length)continue;i.push({type:"assistant",...p(u,f,y,e),message:{role:"assistant",content:s,model:t?.model}});continue}if("file-history-snapshot"===c||"progress"===c||"system"===c){i.push({type:c,...p(u,f,y,e),raw:{...u}});continue}if("queue-operation"===c){let t=a?"Session Resumed":"Session Started";a=!0,i.push({type:"queue-operation",...p(u,f,y,e),label:t});continue}}let u=0;for(let t of i)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 s=n.get(e.id);if(!s)continue;let i=new Date(s.timestamp),r=Math.max(0,s.timestampMs-t.timestampMs);e.result={timestamp:s.timestamp,timestampFormatted:m(i),content:s.content,images:s.images,durationMs:r,durationFormatted:l(r)},s.agentId&&(e.subagentId=s.agentId)}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:r,subagentIds:Array.from(o)}}async function f(t,e="session"){return(await c(t,e)).entries}async function y(t,o){let u=(0,i.resolveProjectPath)(t),l=(0,n.getClaudeProjectsPath)(),m=(0,s.join)(u,`${o}.jsonl`),p=await (0,e.readFile)(m,"utf-8"),{entries:f,rawLines:y,subagentIds:g}=await c(p,"session");if(0===g.length)return{entries:f,rawLines:y,subagentIds:[]};let d=await (0,a.batchAll)(g.map(s=>async()=>{let n=`agent-${s}`,i=await r(l,t,o,s);if(!i)return null;let a=await (0,e.readFile)(i,"utf-8"),{entries:u,rawLines:m}=await c(a,n);return{entries:u,rawLines:m}}),4),h=[...f],w=[...y];for(let t of d)"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:g}}t.s(["formatDuration",0,l],67405),(0,o.runtimeCache)((t,e)=>y(t,e),60,{maxSize:50}),t.s(["baseEntry",0,p,"formatTimestamp",0,m,"parseLogContent",0,f,"parseRawLines",0,function(t,e){return t.split("\n").filter(t=>""!==t.trim()).flatMap(t=>{try{let s=JSON.parse(t);return void 0!==e&&(s._source=e),[s]}catch{return[]}})}],54214)}];
2
2
 
3
3
  //# sourceMappingURL=%5Broot-of-the-server%5D__0rv7m0k._.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"))},57232,t=>{"use strict";var e=t.i(2157),n=t.i(12714),i=t.i(50227),s=t.i(60526),r=t.i(83534),a=t.i(54214),o=t.i(67405);let u=(0,t.i(79857).codexSessionPathsFile)();function l(){try{if(!(0,e.existsSync)(u))return{};return JSON.parse((0,e.readFileSync)(u,"utf-8"))}catch{return{}}}function m(t,n){try{(0,e.mkdirSync)((0,i.dirname)(u),{recursive:!0});let s=l();s[t]=n,(0,e.writeFileSync)(u,JSON.stringify(s),"utf-8")}catch{}}function c(t,n){try{for(let s of(0,e.readdirSync)(t,{withFileTypes:!0}))if(s.isFile()&&s.name.includes(n)&&s.name.endsWith(".jsonl"))return(0,i.join)(t,s.name)}catch{}return null}function p(t){let n=l()[t];if(n&&(0,e.existsSync)(n))return n;let r=(0,i.join)((0,s.homedir)(),".codex","sessions"),a=new Date,o=new Date(a.getTime()-864e5);for(let e of[a,o].map(t=>{let e=String(t.getUTCFullYear()),n=String(t.getUTCMonth()+1).padStart(2,"0"),s=String(t.getUTCDate()).padStart(2,"0");return(0,i.join)(r,e,n,s)})){let n=c(e,t);if(n)return m(t,n),n}try{for(let n of(0,e.readdirSync)(r,{withFileTypes:!0}))if(n.isDirectory()){for(let s of(0,e.readdirSync)((0,i.join)(r,n.name),{withFileTypes:!0}))if(s.isDirectory())for(let a of(0,e.readdirSync)((0,i.join)(r,n.name,s.name),{withFileTypes:!0})){if(!a.isDirectory())continue;let e=c((0,i.join)(r,n.name,s.name,a.name),t);if(e)return m(t,e),e}}}catch{}return null}function f(t,e){return Array.isArray(t)?t.filter(t=>t?.type===e&&"string"==typeof t.text).map(t=>t.text).join("\n"):""}async function y(t,e="session"){let n,i=t.split("\n").filter(t=>""!==t.trim()),s=[],r=[],u=new Map,l=new Map,m=!1;for(let t=0;t<i.length;t++){let p;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let y=i[t];try{p=JSON.parse(y)}catch{continue}let d={...p,_source:e};r.push(d);let g=p.timestamp;if(!g)continue;let h=new Date(g);if(Number.isNaN(h.getTime()))continue;let w=p.type,_=p.payload??{};if("session_meta"===w){let t=_.cwd;"string"!=typeof t||n||(n=t),s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d});continue}if("response_item"===w){let t=_.type;if("message"===t){let t=_.role,n=_.content;if("user"===t||"developer"===t){let i=f(n,"input_text");if(!i)continue;let r="developer"===t?`[developer] ${i}`:i;s.push({type:"user",...(0,a.baseEntry)(d,g,h,e),message:{role:"user",content:r}});continue}if("assistant"===t){let t=f(n,"output_text");if(!t)continue;let i=[{type:"text",text:t}];s.push({type:"assistant",...(0,a.baseEntry)(d,g,h,e),message:{role:"assistant",content:i}});continue}s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d});continue}if("function_call"===t||"custom_tool_call"===t){let t=_.call_id,n=_.name??"function_call",i={type:"tool_use",id:t??`${g}-${n}`,name:n,input:function(t){if(!t)return{};try{return JSON.parse(t)}catch{return{}}}(_.arguments??_.input)},r={type:"assistant",...(0,a.baseEntry)(d,g,h,e),message:{role:"assistant",content:[i]}};s.push(r),t&&(u.set(t,i),l.set(t,h.getTime()));continue}if("function_call_output"===t||"custom_tool_call_output"===t){let t=_.call_id,n=t?u.get(t):void 0;if(n){var c;let e=l.get(t)??h.getTime(),i=Math.max(0,h.getTime()-e);n.result={timestamp:g,timestampFormatted:(0,a.formatTimestamp)(h),content:"string"==typeof(c=_.output)?c:Array.isArray(c)?c.filter(t=>!!t&&"object"==typeof t).map(t=>"string"==typeof t.text?t.text:"").filter(Boolean).join("\n"):void 0===c?"":JSON.stringify(c),durationMs:i,durationFormatted:(0,o.formatDuration)(i)};continue}s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d});continue}s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d});continue}if("event_msg"===w){let t=_.type;if("task_started"===t){let t=m?"Session Resumed":"Session Started";m=!0,s.push({type:"queue-operation",...(0,a.baseEntry)(d,g,h,e),label:t});continue}if("exec_command_end"===t){let t=_.call_id,n=t?u.get(t):void 0;if(n){let e=_.duration,i=e?(e.secs??0)*1e3+Math.round((e.nanos??0)/1e6):Math.max(0,h.getTime()-(l.get(t)??h.getTime())),s=_.aggregated_output;n.result={timestamp:g,timestampFormatted:(0,a.formatTimestamp)(h),content:"string"==typeof s?s:JSON.stringify(s),durationMs:i,durationFormatted:(0,o.formatDuration)(i)};continue}s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d});continue}if("user_message"===t||"agent_message"===t)continue;s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d});continue}s.push({type:"system",...(0,a.baseEntry)(d,g,h,e),raw:d})}return s.length>500&&await new Promise(t=>setImmediate(t)),s.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:s,rawLines:r,cwd:n}}async function d(t){let e=p(t);if(!e)return null;let i=await (0,n.readFile)(e,"utf-8"),{entries:s,rawLines:r,cwd:a}=await y(i,"session");return{entries:s,rawLines:r,cwd:a,filePath:e}}(0,r.runtimeCache)(t=>d(t),60,{maxSize:50}),t.s(["findCodexTranscript",0,p,"getCodexSessionLog",0,d])},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),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 m(t){let e=(0,u.formatDate)(t),n=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${n}`}function c(t,e,n,i){return{_source:i,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:n.getTime(),timestampFormatted:m(n)}}async function p(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 u;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let l=n[t];try{u=JSON.parse(l)}catch{continue}let m={...u,_source:e};r.push(m);let p=u.type,f=u.timestamp;if(!f)continue;let y=new Date(f),d=y.getTime();if("user"===p){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)&&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:f,timestampMs:d,content:s,images:r,agentId:n})}continue}}let n="string"==typeof t?.content?t.content:"";s.push({type:"user",...c(u,f,y,e),message:{role:"user",content:n}});continue}if("assistant"===p){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",...c(u,f,y,e),message:{role:"assistant",content:n,model:t?.model}});continue}if("file-history-snapshot"===p||"progress"===p||"system"===p){s.push({type:p,...c(u,f,y,e),raw:{...u}});continue}if("queue-operation"===p){let t=o?"Session Resumed":"Session Started";o=!0,s.push({type:"queue-operation",...c(u,f,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:m(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(a)}}async function f(t,e="session"){return(await p(t,e)).entries}async function y(t,a){let u=(0,s.resolveProjectPath)(t),l=(0,i.getClaudeProjectsPath)(),m=(0,n.join)(u,`${a}.jsonl`),c=await (0,e.readFile)(m,"utf-8"),{entries:f,rawLines:y,subagentIds:d}=await p(c,"session");if(0===d.length)return{entries:f,rawLines:y,subagentIds:[]};let g=await (0,o.batchAll)(d.map(n=>async()=>{let i=`agent-${n}`,s=await r(l,t,a,n);if(!s)return null;let o=await (0,e.readFile)(s,"utf-8"),{entries:u,rawLines:m}=await p(o,i);return{entries:u,rawLines:m}}),4),h=[...f],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,a.runtimeCache)((t,e)=>y(t,e),60,{maxSize:50}),t.s(["baseEntry",0,c,"formatTimestamp",0,m,"parseLogContent",0,f,"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)}];
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"))},57232,t=>{"use strict";var e=t.i(2157),n=t.i(12714),i=t.i(50227),s=t.i(60526),r=t.i(83534),a=t.i(54214),o=t.i(67405);let u=(0,t.i(79857).codexSessionPathsFile)();function l(){try{if(!(0,e.existsSync)(u))return{};return JSON.parse((0,e.readFileSync)(u,"utf-8"))}catch{return{}}}function m(t,n){try{(0,e.mkdirSync)((0,i.dirname)(u),{recursive:!0});let s=l();s[t]=n,(0,e.writeFileSync)(u,JSON.stringify(s),"utf-8")}catch{}}function p(t,n){try{for(let s of(0,e.readdirSync)(t,{withFileTypes:!0}))if(s.isFile()&&s.name.includes(n)&&s.name.endsWith(".jsonl"))return(0,i.join)(t,s.name)}catch{}return null}function c(t){let n=l()[t];if(n&&(0,e.existsSync)(n))return n;let r=(0,i.join)((0,s.homedir)(),".codex","sessions"),a=new Date,o=new Date(a.getTime()-864e5);for(let e of[a,o].map(t=>{let e=String(t.getUTCFullYear()),n=String(t.getUTCMonth()+1).padStart(2,"0"),s=String(t.getUTCDate()).padStart(2,"0");return(0,i.join)(r,e,n,s)})){let n=p(e,t);if(n)return m(t,n),n}try{for(let n of(0,e.readdirSync)(r,{withFileTypes:!0}))if(n.isDirectory()){for(let s of(0,e.readdirSync)((0,i.join)(r,n.name),{withFileTypes:!0}))if(s.isDirectory())for(let a of(0,e.readdirSync)((0,i.join)(r,n.name,s.name),{withFileTypes:!0})){if(!a.isDirectory())continue;let e=p((0,i.join)(r,n.name,s.name,a.name),t);if(e)return m(t,e),e}}}catch{}return null}function f(t,e){return Array.isArray(t)?t.filter(t=>t?.type===e&&"string"==typeof t.text).map(t=>t.text).join("\n"):""}async function y(t,e="session"){let n,i=t.split("\n").filter(t=>""!==t.trim()),s=[],r=[],u=new Map,l=new Map,m=!1;for(let t=0;t<i.length;t++){let p;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let c=i[t];try{p=JSON.parse(c)}catch{continue}let y={...p,_source:e};r.push(y);let d=p.timestamp;if(!d)continue;let g=new Date(d);if(Number.isNaN(g.getTime()))continue;let h=p.type,w=p.payload??{};if("session_meta"===h){let t=w.cwd;"string"!=typeof t||n||(n=t),s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y});continue}if("response_item"===h){let t=w.type;if("message"===t){let t=w.role,n=w.content;if("user"===t||"developer"===t){let i=f(n,"input_text");if(!i)continue;let r="developer"===t?`[developer] ${i}`:i;s.push({type:"user",...(0,a.baseEntry)(y,d,g,e),message:{role:"user",content:r}});continue}if("assistant"===t){let t=f(n,"output_text");if(!t)continue;let i=[{type:"text",text:t}];s.push({type:"assistant",...(0,a.baseEntry)(y,d,g,e),message:{role:"assistant",content:i}});continue}s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y});continue}if("function_call"===t){let t=w.call_id,n=w.name??"function_call",i={type:"tool_use",id:t??`${d}-${n}`,name:n,input:function(t){if(!t)return{};try{return JSON.parse(t)}catch{return{}}}(w.arguments)},r={type:"assistant",...(0,a.baseEntry)(y,d,g,e),message:{role:"assistant",content:[i]}};s.push(r),t&&(u.set(t,i),l.set(t,g.getTime()));continue}if("function_call_output"===t){let t=w.call_id,n=t?u.get(t):void 0;if(n){let e=l.get(t)??g.getTime(),i=Math.max(0,g.getTime()-e);n.result={timestamp:d,timestampFormatted:(0,a.formatTimestamp)(g),content:"string"==typeof w.output?w.output:JSON.stringify(w.output),durationMs:i,durationFormatted:(0,o.formatDuration)(i)};continue}s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y});continue}s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y});continue}if("event_msg"===h){let t=w.type;if("task_started"===t){let t=m?"Session Resumed":"Session Started";m=!0,s.push({type:"queue-operation",...(0,a.baseEntry)(y,d,g,e),label:t});continue}if("exec_command_end"===t){let t=w.call_id,n=t?u.get(t):void 0;if(n){let e=w.duration,i=e?(e.secs??0)*1e3+Math.round((e.nanos??0)/1e6):Math.max(0,g.getTime()-(l.get(t)??g.getTime())),s=w.aggregated_output;n.result={timestamp:d,timestampFormatted:(0,a.formatTimestamp)(g),content:"string"==typeof s?s:JSON.stringify(s),durationMs:i,durationFormatted:(0,o.formatDuration)(i)};continue}s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y});continue}if("user_message"===t||"agent_message"===t)continue;s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y});continue}s.push({type:"system",...(0,a.baseEntry)(y,d,g,e),raw:y})}return s.length>500&&await new Promise(t=>setImmediate(t)),s.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:s,rawLines:r,cwd:n}}async function d(t){let e=c(t);if(!e)return null;let i=await (0,n.readFile)(e,"utf-8"),{entries:s,rawLines:r,cwd:a}=await y(i,"session");return{entries:s,rawLines:r,cwd:a,filePath:e}}(0,r.runtimeCache)(t=>d(t),60,{maxSize:50}),t.s(["findCodexTranscript",0,c,"getCodexSessionLog",0,d])},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),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 m(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:m(n)}}async function c(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 u;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let l=n[t];try{u=JSON.parse(l)}catch{continue}let m={...u,_source:e};r.push(m);let c=u.type,f=u.timestamp;if(!f)continue;let y=new Date(f),d=y.getTime();if("user"===c){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)&&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:f,timestampMs:d,content:s,images:r,agentId:n})}continue}}let n="string"==typeof t?.content?t.content:"";s.push({type:"user",...p(u,f,y,e),message:{role:"user",content:n}});continue}if("assistant"===c){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,f,y,e),message:{role:"assistant",content:n,model:t?.model}});continue}if("file-history-snapshot"===c||"progress"===c||"system"===c){s.push({type:c,...p(u,f,y,e),raw:{...u}});continue}if("queue-operation"===c){let t=o?"Session Resumed":"Session Started";o=!0,s.push({type:"queue-operation",...p(u,f,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:m(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(a)}}async function f(t,e="session"){return(await c(t,e)).entries}async function y(t,a){let u=(0,s.resolveProjectPath)(t),l=(0,i.getClaudeProjectsPath)(),m=(0,n.join)(u,`${a}.jsonl`),p=await (0,e.readFile)(m,"utf-8"),{entries:f,rawLines:y,subagentIds:d}=await c(p,"session");if(0===d.length)return{entries:f,rawLines:y,subagentIds:[]};let g=await (0,o.batchAll)(d.map(n=>async()=>{let i=`agent-${n}`,s=await r(l,t,a,n);if(!s)return null;let o=await (0,e.readFile)(s,"utf-8"),{entries:u,rawLines:m}=await c(o,i);return{entries:u,rawLines:m}}),4),h=[...f],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,a.runtimeCache)((t,e)=>y(t,e),60,{maxSize:50}),t.s(["baseEntry",0,p,"formatTimestamp",0,m,"parseLogContent",0,f,"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__17g9wh7._.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"))},78166,t=>{"use strict";var e=t.i(2157),n=t.i(12714),s=t.i(50227),i=t.i(60526),a=t.i(83534),r=t.i(54214),o=t.i(67405);function u(t,e){let n=function(t){if(!t)return null;let e=(0,s.resolve)((0,s.join)(process.env.COPILOT_HOME||(0,s.join)((0,i.homedir)(),".copilot"),"session-state")),n=(0,s.resolve)(e,t);return n!==e&&n.startsWith(`${e}${s.sep}`)?n:null}(t);return n?(0,s.join)(n,e):null}function l(t){let n=u(t,"events.jsonl");return n&&(0,e.existsSync)(n)?n:null}async function m(t,e="session"){let n,s,i=t.split("\n").filter(t=>""!==t.trim()),a=[],u=[],l=new Map,p=new Map,c=0,f=!1;for(let t=0;t<i.length;t++){let m;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let d=i[t];try{m=JSON.parse(d)}catch{continue}let y={...m,_source:e};u.push(y);let g=m.timestamp;if(!g)continue;let h=new Date(g);if(Number.isNaN(h.getTime()))continue;let w=h.toISOString(),x=m.type,M=m.data??{};if("session.start"===x){let t=M.context,n=t?.cwd;"string"!=typeof n||s||(s=n);let i=f?"Session Resumed":"Session Started";f=!0,a.push({type:"queue-operation",...(0,r.baseEntry)(y,w,h,e),label:i});continue}if("user.message"===x){let t=M.content??"";if(!t)continue;a.push({type:"user",...(0,r.baseEntry)(y,w,h,e),message:{role:"user",content:t}});continue}if("system.message"===x){a.push({type:"system",...(0,r.baseEntry)(y,w,h,e),raw:y});continue}if("assistant.message"===x){let t=M.content??"";if(!t){a.push({type:"system",...(0,r.baseEntry)(y,w,h,e),raw:y});continue}let n=[{type:"text",text:t}];a.push({type:"assistant",...(0,r.baseEntry)(y,w,h,e),message:{role:"assistant",content:n}});continue}if("tool.execution_start"===x){let t=M.toolCallId,s=M.toolName??"tool",i=M.arguments??{},o={type:"tool_use",id:t??`${h.getTime()}-${s}`,name:s,input:i},u={type:"assistant",...(0,r.baseEntry)(y,w,h,e),message:{role:"assistant",content:[o]}};a.push(u),t&&(l.set(t,o),p.set(t,h.getTime())),n=o,c=h.getTime();continue}if("hook.start"===x&&"postToolUse"===M.hookType&&n){let t=(M.input??{}).toolResult??{},e=t.textResultForLlm??t.sessionLog;"string"==typeof e&&e.length>0&&(n.result={timestamp:w,timestampFormatted:(0,r.formatTimestamp)(h),content:e,durationMs:Math.max(0,h.getTime()-c),durationFormatted:(0,o.formatDuration)(Math.max(0,h.getTime()-c))})}if("tool.execution_complete"===x){let t=M.toolCallId,n=t?l.get(t):void 0;if(n){let e=p.get(t)??h.getTime(),s=M.result??{},i=M.toolTelemetry??{},a=i.metrics?.commandTimeMs??i.metrics?.durationMs??null,u="number"==typeof a&&a>=0?a:Math.max(0,h.getTime()-e),l=s.detailedContent??s.content??"",m=n.result?.content||l;n.result={timestamp:w,timestampFormatted:(0,r.formatTimestamp)(h),content:"string"==typeof m?m:JSON.stringify(m),durationMs:u,durationFormatted:(0,o.formatDuration)(u)};continue}a.push({type:"system",...(0,r.baseEntry)(y,w,h,e),raw:y});continue}a.push({type:"system",...(0,r.baseEntry)(y,w,h,e),raw:y})}return a.length>500&&await new Promise(t=>setImmediate(t)),a.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:a,rawLines:u,cwd:s}}async function p(t){let s,i=l(t);if(!i)return null;try{s=await (0,n.readFile)(i,"utf-8")}catch{return null}let{entries:a,rawLines:r,cwd:o}=await m(s,"session");return{entries:a,rawLines:r,cwd:o??function(t){let n,s=(n=u(t,"workspace.yaml"))&&(0,e.existsSync)(n)?n:null;if(s)try{let t=(0,e.readFileSync)(s,"utf-8"),n=RegExp("^cwd\\s*:\\s*(.+?)\\s*$","m"),i=t.match(n);if(!i)return;return i[1].replace(/^['"]|['"]$/g,"")}catch{return}}(t),filePath:i}}(0,a.runtimeCache)(t=>p(t),60,{maxSize:50}),t.s(["findCopilotTranscript",0,l,"getCopilotSessionLog",0,p])},54214,67405,t=>{"use strict";var e=t.i(24868),n=t.i(14747),s=t.i(81580),i=t.i(56936);async function a(t,s,i,a){let r=`agent-${a}.jsonl`;for(let a of[(0,n.join)(t,s,r),(0,n.join)(t,s,i,r),(0,n.join)(t,s,i,"subagents",r)])if(!(0,n.relative)(t,a).startsWith(".."))try{return await (0,e.access)(a),a}catch(t){if("ENOENT"===t.code)continue;break}return null}var r=t.i(83534),o=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 s=Math.round(t/6e4),i=Math.floor(s/60);return`${i}h ${s%60}m`}function m(t){let e=(0,u.formatDate)(t),n=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${n}`}function p(t,e,n,s){return{_source:s,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:n.getTime(),timestampFormatted:m(n)}}async function c(t,e){let n=t.split("\n").filter(t=>""!==t.trim()),s=new Map,i=[],a=[],r=new Set,o=!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 m={...u,_source:e};a.push(m);let c=u.type,f=u.timestamp;if(!f)continue;let d=new Date(f),y=d.getTime();if("user"===c){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)&&r.add(n),e)){if("tool_result"!==t.type)continue;let e=t.tool_use_id;if(!e)continue;let{text:i,images:a}=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);s.set(e,{timestamp:f,timestampMs:y,content:i,images:a,agentId:n})}continue}}let n="string"==typeof t?.content?t.content:"";i.push({type:"user",...p(u,f,d,e),message:{role:"user",content:n}});continue}if("assistant"===c){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;i.push({type:"assistant",...p(u,f,d,e),message:{role:"assistant",content:n,model:t?.model}});continue}if("file-history-snapshot"===c||"progress"===c||"system"===c){i.push({type:c,...p(u,f,d,e),raw:{...u}});continue}if("queue-operation"===c){let t=o?"Session Resumed":"Session Started";o=!0,i.push({type:"queue-operation",...p(u,f,d,e),label:t});continue}}let u=0;for(let t of i)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=s.get(e.id);if(!n)continue;let i=new Date(n.timestamp),a=Math.max(0,n.timestampMs-t.timestampMs);e.result={timestamp:n.timestamp,timestampFormatted:m(i),content:n.content,images:n.images,durationMs:a,durationFormatted:l(a)},n.agentId&&(e.subagentId=n.agentId)}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:a,subagentIds:Array.from(r)}}async function f(t,e="session"){return(await c(t,e)).entries}async function d(t,r){let u=(0,i.resolveProjectPath)(t),l=(0,s.getClaudeProjectsPath)(),m=(0,n.join)(u,`${r}.jsonl`),p=await (0,e.readFile)(m,"utf-8"),{entries:f,rawLines:d,subagentIds:y}=await c(p,"session");if(0===y.length)return{entries:f,rawLines:d,subagentIds:[]};let g=await (0,o.batchAll)(y.map(n=>async()=>{let s=`agent-${n}`,i=await a(l,t,r,n);if(!i)return null;let o=await (0,e.readFile)(i,"utf-8"),{entries:u,rawLines:m}=await c(o,s);return{entries:u,rawLines:m}}),4),h=[...f],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,l],67405),(0,r.runtimeCache)((t,e)=>d(t,e),60,{maxSize:50}),t.s(["baseEntry",0,p,"formatTimestamp",0,m,"parseLogContent",0,f,"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)}];
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"))},78166,t=>{"use strict";var e=t.i(2157),n=t.i(12714),s=t.i(50227),i=t.i(60526),a=t.i(83534),r=t.i(54214),o=t.i(67405);function u(t,e){let n=function(t){if(!t)return null;let e=(0,s.resolve)((0,s.join)(process.env.COPILOT_HOME||(0,s.join)((0,i.homedir)(),".copilot"),"session-state")),n=(0,s.resolve)(e,t);return n!==e&&n.startsWith(`${e}${s.sep}`)?n:null}(t);return n?(0,s.join)(n,e):null}function l(t){let n=u(t,"events.jsonl");return n&&(0,e.existsSync)(n)?n:null}async function m(t,e="session"){let n,s=t.split("\n").filter(t=>""!==t.trim()),i=[],a=[],u=new Map,l=new Map,p=!1;for(let t=0;t<s.length;t++){let m;t>0&&t%200==0&&await new Promise(t=>setImmediate(t));let c=s[t];try{m=JSON.parse(c)}catch{continue}let f={...m,_source:e};a.push(f);let y=m.timestamp;if(!y)continue;let d=new Date(y);if(Number.isNaN(d.getTime()))continue;let g=d.toISOString(),h=m.type,w=m.data??{};if("session.start"===h){let t=w.context,s=t?.cwd;"string"!=typeof s||n||(n=s);let a=p?"Session Resumed":"Session Started";p=!0,i.push({type:"queue-operation",...(0,r.baseEntry)(f,g,d,e),label:a});continue}if("user.message"===h){let t=w.content??"";if(!t)continue;i.push({type:"user",...(0,r.baseEntry)(f,g,d,e),message:{role:"user",content:t}});continue}if("system.message"===h){i.push({type:"system",...(0,r.baseEntry)(f,g,d,e),raw:f});continue}if("assistant.message"===h){let t=w.content??"";if(!t){i.push({type:"system",...(0,r.baseEntry)(f,g,d,e),raw:f});continue}let n=[{type:"text",text:t}];i.push({type:"assistant",...(0,r.baseEntry)(f,g,d,e),message:{role:"assistant",content:n}});continue}if("tool.execution_start"===h){let t=w.toolCallId,n=w.toolName??"tool",s=w.arguments??{},a={type:"tool_use",id:t??`${d.getTime()}-${n}`,name:n,input:s},o={type:"assistant",...(0,r.baseEntry)(f,g,d,e),message:{role:"assistant",content:[a]}};i.push(o),t&&(u.set(t,a),l.set(t,d.getTime()));continue}if("tool.execution_complete"===h){let t=w.toolCallId,n=t?u.get(t):void 0;if(n){let e=l.get(t)??d.getTime(),s=w.result??{},i=w.toolTelemetry??{},a=i.metrics?.commandTimeMs??i.metrics?.durationMs??null,u="number"==typeof a&&a>=0?a:Math.max(0,d.getTime()-e),m=s.detailedContent??s.content??"";n.result={timestamp:g,timestampFormatted:(0,r.formatTimestamp)(d),content:"string"==typeof m?m:JSON.stringify(m),durationMs:u,durationFormatted:(0,o.formatDuration)(u)};continue}i.push({type:"system",...(0,r.baseEntry)(f,g,d,e),raw:f});continue}i.push({type:"system",...(0,r.baseEntry)(f,g,d,e),raw:f})}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:a,cwd:n}}async function p(t){let s,i=l(t);if(!i)return null;try{s=await (0,n.readFile)(i,"utf-8")}catch{return null}let{entries:a,rawLines:r,cwd:o}=await m(s,"session");return{entries:a,rawLines:r,cwd:o??function(t){let n,s=(n=u(t,"workspace.yaml"))&&(0,e.existsSync)(n)?n:null;if(s)try{let t=(0,e.readFileSync)(s,"utf-8"),n=RegExp("^cwd\\s*:\\s*(.+?)\\s*$","m"),i=t.match(n);if(!i)return;return i[1].replace(/^['"]|['"]$/g,"")}catch{return}}(t),filePath:i}}(0,a.runtimeCache)(t=>p(t),60,{maxSize:50}),t.s(["findCopilotTranscript",0,l,"getCopilotSessionLog",0,p])},54214,67405,t=>{"use strict";var e=t.i(24868),n=t.i(14747),s=t.i(81580),i=t.i(56936);async function a(t,s,i,a){let r=`agent-${a}.jsonl`;for(let a of[(0,n.join)(t,s,r),(0,n.join)(t,s,i,r),(0,n.join)(t,s,i,"subagents",r)])if(!(0,n.relative)(t,a).startsWith(".."))try{return await (0,e.access)(a),a}catch(t){if("ENOENT"===t.code)continue;break}return null}var r=t.i(83534),o=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 s=Math.round(t/6e4),i=Math.floor(s/60);return`${i}h ${s%60}m`}function m(t){let e=(0,u.formatDate)(t),n=t.getMilliseconds().toString().padStart(3,"0");return`${e}.${n}`}function p(t,e,n,s){return{_source:s,uuid:t.uuid||"",parentUuid:t.parentUuid??null,timestamp:e,timestampMs:n.getTime(),timestampFormatted:m(n)}}async function c(t,e){let n=t.split("\n").filter(t=>""!==t.trim()),s=new Map,i=[],a=[],r=new Set,o=!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 m={...u,_source:e};a.push(m);let c=u.type,f=u.timestamp;if(!f)continue;let y=new Date(f),d=y.getTime();if("user"===c){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)&&r.add(n),e)){if("tool_result"!==t.type)continue;let e=t.tool_use_id;if(!e)continue;let{text:i,images:a}=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);s.set(e,{timestamp:f,timestampMs:d,content:i,images:a,agentId:n})}continue}}let n="string"==typeof t?.content?t.content:"";i.push({type:"user",...p(u,f,y,e),message:{role:"user",content:n}});continue}if("assistant"===c){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;i.push({type:"assistant",...p(u,f,y,e),message:{role:"assistant",content:n,model:t?.model}});continue}if("file-history-snapshot"===c||"progress"===c||"system"===c){i.push({type:c,...p(u,f,y,e),raw:{...u}});continue}if("queue-operation"===c){let t=o?"Session Resumed":"Session Started";o=!0,i.push({type:"queue-operation",...p(u,f,y,e),label:t});continue}}let u=0;for(let t of i)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=s.get(e.id);if(!n)continue;let i=new Date(n.timestamp),a=Math.max(0,n.timestampMs-t.timestampMs);e.result={timestamp:n.timestamp,timestampFormatted:m(i),content:n.content,images:n.images,durationMs:a,durationFormatted:l(a)},n.agentId&&(e.subagentId=n.agentId)}return i.length>500&&await new Promise(t=>setImmediate(t)),i.sort((t,e)=>t.timestampMs-e.timestampMs),{entries:i,rawLines:a,subagentIds:Array.from(r)}}async function f(t,e="session"){return(await c(t,e)).entries}async function y(t,r){let u=(0,i.resolveProjectPath)(t),l=(0,s.getClaudeProjectsPath)(),m=(0,n.join)(u,`${r}.jsonl`),p=await (0,e.readFile)(m,"utf-8"),{entries:f,rawLines:y,subagentIds:d}=await c(p,"session");if(0===d.length)return{entries:f,rawLines:y,subagentIds:[]};let g=await (0,o.batchAll)(d.map(n=>async()=>{let s=`agent-${n}`,i=await a(l,t,r,n);if(!i)return null;let o=await (0,e.readFile)(i,"utf-8"),{entries:u,rawLines:m}=await c(o,s);return{entries:u,rawLines:m}}),4),h=[...f],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,r.runtimeCache)((t,e)=>y(t,e),60,{maxSize:50}),t.s(["baseEntry",0,p,"formatTimestamp",0,m,"parseLogContent",0,f,"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__1legmza._.js.map