@claudeye/linux-arm64 1.0.3-beta.5 → 1.0.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/assets/standalone/.next/BUILD_ID +1 -1
  2. package/assets/standalone/.next/build-manifest.json +2 -2
  3. package/assets/standalone/.next/prerender-manifest.json +3 -3
  4. package/assets/standalone/.next/server/app/_global-error.html +2 -2
  5. package/assets/standalone/.next/server/app/_global-error.rsc +1 -1
  6. package/assets/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/assets/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/assets/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/assets/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/assets/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/assets/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  12. package/assets/standalone/.next/server/app/_not-found/page.js +2 -2
  13. package/assets/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/assets/standalone/.next/server/app/_not-found.html +2 -2
  15. package/assets/standalone/.next/server/app/_not-found.rsc +21 -20
  16. package/assets/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +21 -20
  17. package/assets/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  18. package/assets/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +12 -11
  19. package/assets/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  20. package/assets/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  21. package/assets/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/assets/standalone/.next/server/app/api/completed-history/route.js +1 -1
  23. package/assets/standalone/.next/server/app/api/queue-item/route.js +3 -3
  24. package/assets/standalone/.next/server/app/api/queue-status/route.js +1 -1
  25. package/assets/standalone/.next/server/app/dashboard/[viewName]/page/server-reference-manifest.json +4 -4
  26. package/assets/standalone/.next/server/app/dashboard/[viewName]/page.js +3 -3
  27. package/assets/standalone/.next/server/app/dashboard/[viewName]/page_client-reference-manifest.js +1 -1
  28. package/assets/standalone/.next/server/app/dashboard/page/server-reference-manifest.json +4 -4
  29. package/assets/standalone/.next/server/app/dashboard/page.js +3 -3
  30. package/assets/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
  31. package/assets/standalone/.next/server/app/login/page/server-reference-manifest.json +2 -2
  32. package/assets/standalone/.next/server/app/login/page.js +2 -2
  33. package/assets/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  34. package/assets/standalone/.next/server/app/login.html +2 -2
  35. package/assets/standalone/.next/server/app/login.rsc +21 -19
  36. package/assets/standalone/.next/server/app/login.segments/_full.segment.rsc +21 -19
  37. package/assets/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  38. package/assets/standalone/.next/server/app/login.segments/_index.segment.rsc +12 -11
  39. package/assets/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  40. package/assets/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  41. package/assets/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  42. package/assets/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
  43. package/assets/standalone/.next/server/app/page.js +2 -2
  44. package/assets/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  45. package/assets/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
  46. package/assets/standalone/.next/server/app/project/[name]/page.js +2 -2
  47. package/assets/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
  48. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +1 -1
  49. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +8 -8
  50. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +4 -4
  51. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  52. package/assets/standalone/.next/server/app/queue/page/server-reference-manifest.json +3 -3
  53. package/assets/standalone/.next/server/app/queue/page.js +4 -4
  54. package/assets/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
  55. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__d4438063._.js → [root-of-the-server]__05f07ba2._.js} +2 -2
  56. package/assets/standalone/.next/server/chunks/[root-of-the-server]__18cae1da._.js +4 -0
  57. package/assets/standalone/.next/server/chunks/[root-of-the-server]__49f23eb6._.js +3 -0
  58. package/assets/standalone/.next/server/chunks/[root-of-the-server]__4c863ef8._.js +3 -0
  59. package/assets/standalone/.next/server/chunks/[root-of-the-server]__5c05256a._.js +3 -0
  60. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__4b3a0135._.js → [root-of-the-server]__b87517c1._.js} +2 -2
  61. package/assets/standalone/.next/server/chunks/[root-of-the-server]__d2d53e39._.js +3 -0
  62. package/assets/standalone/.next/server/chunks/[root-of-the-server]__f9952ff1._.js +3 -0
  63. package/assets/standalone/.next/server/chunks/_3f3c09bf._.js +4 -0
  64. package/assets/standalone/.next/server/chunks/_5ab69e50._.js +1 -1
  65. package/assets/standalone/.next/server/chunks/_7e07bbd9._.js +4 -0
  66. package/assets/standalone/.next/server/chunks/_8f856fad._.js +4 -0
  67. package/assets/standalone/.next/server/chunks/_b8adaa37._.js +4 -0
  68. package/assets/standalone/.next/server/chunks/lib_6cff0ca5._.js +2 -2
  69. package/assets/standalone/.next/server/chunks/lib_74f62736._.js +2 -2
  70. package/assets/standalone/.next/server/chunks/lib_eval-queue_ts_32d171f8._.js +1 -1
  71. package/assets/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_7a66d362.js +1 -1
  72. package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__6b650af8._.js +3 -0
  73. package/assets/standalone/.next/server/chunks/ssr/_14858238._.js +3 -0
  74. package/assets/standalone/.next/server/chunks/ssr/{_40b9779b._.js → _19a3e694._.js} +3 -3
  75. package/assets/standalone/.next/server/chunks/ssr/_1d335924._.js +1 -1
  76. package/assets/standalone/.next/server/chunks/ssr/{components_navbar_tsx_e9e361f1._.js → _3dacef09._.js} +2 -2
  77. package/assets/standalone/.next/server/chunks/ssr/{_27192124._.js → _57cf4668._.js} +3 -3
  78. package/assets/standalone/.next/server/chunks/ssr/_617143fc._.js +8 -0
  79. package/assets/standalone/.next/server/chunks/ssr/_76ab933f._.js +1 -1
  80. package/assets/standalone/.next/server/chunks/ssr/{_34abf048._.js → _7ae321cd._.js} +3 -3
  81. package/assets/standalone/.next/server/chunks/ssr/_87e025a1._.js +1 -1
  82. package/assets/standalone/.next/server/chunks/ssr/_986c0cdb._.js +8 -0
  83. package/assets/standalone/.next/server/chunks/ssr/_aa498e4a._.js +8 -0
  84. package/assets/standalone/.next/server/chunks/ssr/{_f7ec0663._.js → _c9400c33._.js} +3 -3
  85. package/assets/standalone/.next/server/chunks/ssr/_d7159840._.js +3 -0
  86. package/assets/standalone/.next/server/chunks/ssr/{_d7141734._.js → _fa9c2bed._.js} +3 -3
  87. package/assets/standalone/.next/server/chunks/ssr/_fca518aa._.js +8 -0
  88. package/assets/standalone/.next/server/chunks/ssr/app_actions_compute-dashboard_ts_fc151dbb._.js +1 -1
  89. package/assets/standalone/.next/server/chunks/ssr/app_login_page_tsx_ccc0019b._.js +1 -1
  90. package/assets/standalone/.next/server/chunks/ssr/app_queue_queue-client_tsx_45f040f7._.js +1 -1
  91. package/assets/standalone/.next/server/chunks/ssr/lib_eval-queue_ts_e2258485._.js +1 -1
  92. package/assets/standalone/.next/server/pages/404.html +2 -2
  93. package/assets/standalone/.next/server/pages/500.html +2 -2
  94. package/assets/standalone/.next/server/server-reference-manifest.js +1 -1
  95. package/assets/standalone/.next/server/server-reference-manifest.json +15 -15
  96. package/assets/standalone/.next/static/chunks/11394126217c190c.js +4 -0
  97. package/assets/standalone/.next/static/chunks/{24d8ee5df6499d4f.js → 17ab7009dbe74649.js} +1 -1
  98. package/assets/standalone/.next/static/chunks/{4845bb705e91fe3e.js → 386b191cb182c385.js} +1 -1
  99. package/assets/standalone/.next/static/chunks/{cbf3abc7b119bbcc.js → 95a1eab2b0a3fe06.js} +3 -3
  100. package/assets/standalone/.next/static/chunks/98ef6309c816722d.css +1 -0
  101. package/assets/standalone/.next/static/chunks/{cca96b2abe7c3c69.js → 9f273c6df6390f71.js} +1 -1
  102. package/assets/standalone/.next/static/chunks/{5cfbc0e8415355bb.js → bb214e98e0c9e4e5.js} +1 -1
  103. package/assets/standalone/package.json +1 -1
  104. package/package.json +1 -1
  105. package/assets/standalone/.next/server/chunks/[root-of-the-server]__016f28bf._.js +0 -4
  106. package/assets/standalone/.next/server/chunks/[root-of-the-server]__12f1df7a._.js +0 -3
  107. package/assets/standalone/.next/server/chunks/[root-of-the-server]__30210a51._.js +0 -3
  108. package/assets/standalone/.next/server/chunks/[root-of-the-server]__c61bf87c._.js +0 -3
  109. package/assets/standalone/.next/server/chunks/_d3c87a9f._.js +0 -4
  110. package/assets/standalone/.next/server/chunks/_fb07f1d4._.js +0 -4
  111. package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__0530a7f6._.js +0 -7
  112. package/assets/standalone/.next/server/chunks/ssr/_2c739158._.js +0 -4
  113. package/assets/standalone/.next/server/chunks/ssr/_42bdbcd7._.js +0 -4
  114. package/assets/standalone/.next/server/chunks/ssr/_46cafe74._.js +0 -4
  115. package/assets/standalone/.next/server/chunks/ssr/_bd414f26._.js +0 -4
  116. package/assets/standalone/.next/static/chunks/5c5603c0a88432f6.js +0 -4
  117. package/assets/standalone/.next/static/chunks/e62e0e2c8b367c21.css +0 -1
  118. /package/assets/standalone/.next/static/{rFYcbhf5T7-ycT7hZJBZ4 → ccot-zGP2vbRELjP3CnAm}/_buildManifest.js +0 -0
  119. /package/assets/standalone/.next/static/{rFYcbhf5T7-ycT7hZJBZ4 → ccot-zGP2vbRELjP3CnAm}/_clientMiddlewareManifest.json +0 -0
  120. /package/assets/standalone/.next/static/{rFYcbhf5T7-ycT7hZJBZ4 → ccot-zGP2vbRELjP3CnAm}/_ssgManifest.js +0 -0
@@ -8,16 +8,16 @@ R.c("server/chunks/ssr/[root-of-the-server]__1690ee0d._.js")
8
8
  R.c("server/chunks/ssr/node_modules_next_dist_2df23979._.js")
9
9
  R.c("server/chunks/ssr/app_e744e06a._.js")
10
10
  R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_ece394eb.js")
11
- R.c("server/chunks/ssr/_27192124._.js")
11
+ R.c("server/chunks/ssr/_57cf4668._.js")
12
12
  R.c("server/chunks/ssr/app_error_tsx_5275429f._.js")
13
13
  R.c("server/chunks/ssr/app_loading_tsx_b05711b0._.js")
14
14
  R.c("server/chunks/ssr/node_modules_next_dist_client_components_9774470f._.js")
15
15
  R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_45780354.js")
16
16
  R.c("server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_15817684.js")
17
- R.c("server/chunks/ssr/_2c739158._.js")
18
- R.c("server/chunks/ssr/lib_eval-queue_ts_e2258485._.js")
17
+ R.c("server/chunks/ssr/_aa498e4a._.js")
18
+ R.c("server/chunks/ssr/[root-of-the-server]__6b650af8._.js")
19
19
  R.c("server/chunks/ssr/node_modules_next_99977b66._.js")
20
20
  R.c("server/chunks/ssr/node_modules_next_dist_981dc6eb._.js")
21
- R.c("server/chunks/ssr/[root-of-the-server]__0530a7f6._.js")
21
+ R.c("server/chunks/ssr/lib_eval-queue_ts_e2258485._.js")
22
22
  R.m(60686)
23
23
  module.exports=R.m(60686).exports
@@ -1,2 +1,2 @@
1
1
  globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
2
- globalThis.__RSC_MANIFEST["/queue/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/contexts/ThemeContext.tsx <module evaluation>":{"id":47613,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js"],"async":false},"[project]/contexts/ThemeContext.tsx":{"id":47613,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx <module evaluation>":{"id":85881,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js"],"async":false},"[project]/components/navbar.tsx <module evaluation>":{"id":63780,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js"],"async":false},"[project]/app/error.tsx <module evaluation>":{"id":8821,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js","/_next/static/chunks/e4aca2c4ff14a715.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js","/_next/static/chunks/e4aca2c4ff14a715.js"],"async":false},"[project]/app/queue/queue-client.tsx <module evaluation>":{"id":64439,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js","/_next/static/chunks/cca96b2abe7c3c69.js"],"async":false},"[project]/app/queue/queue-client.tsx":{"id":64439,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/cbf3abc7b119bbcc.js","/_next/static/chunks/cca96b2abe7c3c69.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"47613":{"*":{"id":18200,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/components_navbar_tsx_e9e361f1._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/_a13bff7c._.js"],"async":false}},"85881":{"*":{"id":6236,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/components_navbar_tsx_e9e361f1._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/_a13bff7c._.js"],"async":false}},"63780":{"*":{"id":10815,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/components_navbar_tsx_e9e361f1._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/_a13bff7c._.js"],"async":false}},"8821":{"*":{"id":78141,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/components_navbar_tsx_e9e361f1._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/app_fc7a5b13._.js"],"async":false}},"64439":{"*":{"id":57730,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/components_navbar_tsx_e9e361f1._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_1e78350c._.js","server/chunks/ssr/app_queue_queue-client_tsx_45f040f7._.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}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"47613":{"*":{"id":86124,"name":"*","chunks":[],"async":false}},"85881":{"*":{"id":54950,"name":"*","chunks":[],"async":false}},"63780":{"*":{"id":42976,"name":"*","chunks":[],"async":false}},"8821":{"*":{"id":50757,"name":"*","chunks":[],"async":false}},"64439":{"*":{"id":11268,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/icon.png":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/app/layout":[{"path":"static/chunks/e62e0e2c8b367c21.css","inlined":false}],"[project]/app/error":[{"path":"static/chunks/e62e0e2c8b367c21.css","inlined":false}],"[project]/app/queue/page":[{"path":"static/chunks/e62e0e2c8b367c21.css","inlined":false}]},"entryJSFiles":{"[project]/app/icon.png":["static/chunks/ff1a16fafef87110.js","static/chunks/d2be314c3ece3fbe.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/app/layout":["static/chunks/dbd7b157081058a6.js","static/chunks/cbf3abc7b119bbcc.js"],"[project]/app/error":["static/chunks/dbd7b157081058a6.js","static/chunks/cbf3abc7b119bbcc.js","static/chunks/e4aca2c4ff14a715.js"],"[project]/app/queue/page":["static/chunks/dbd7b157081058a6.js","static/chunks/cbf3abc7b119bbcc.js","static/chunks/cca96b2abe7c3c69.js"]}}
2
+ globalThis.__RSC_MANIFEST["/queue/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/ff1a16fafef87110.js","/_next/static/chunks/d2be314c3ece3fbe.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":[],"async":false},"[project]/contexts/ThemeContext.tsx <module evaluation>":{"id":47613,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/contexts/ThemeContext.tsx":{"id":47613,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx <module evaluation>":{"id":85881,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/contexts/AutoRefreshContext.tsx":{"id":85881,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/components/navbar.tsx <module evaluation>":{"id":63780,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/components/navbar.tsx":{"id":63780,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/app/components/toast.tsx <module evaluation>":{"id":55574,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/app/components/toast.tsx":{"id":55574,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js"],"async":false},"[project]/app/error.tsx <module evaluation>":{"id":8821,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js","/_next/static/chunks/e4aca2c4ff14a715.js"],"async":false},"[project]/app/error.tsx":{"id":8821,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js","/_next/static/chunks/e4aca2c4ff14a715.js"],"async":false},"[project]/app/queue/queue-client.tsx <module evaluation>":{"id":64439,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js","/_next/static/chunks/9f273c6df6390f71.js"],"async":false},"[project]/app/queue/queue-client.tsx":{"id":64439,"name":"*","chunks":["/_next/static/chunks/dbd7b157081058a6.js","/_next/static/chunks/95a1eab2b0a3fe06.js","/_next/static/chunks/9f273c6df6390f71.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__3bc7ad0a._.js","server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js"],"async":false}},"68027":{"*":{"id":40622,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__a457c799._.js"],"async":false}},"47613":{"*":{"id":18200,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_3dacef09._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/node_modules_154d37b3._.js"],"async":false}},"85881":{"*":{"id":6236,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_3dacef09._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/node_modules_154d37b3._.js"],"async":false}},"63780":{"*":{"id":10815,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_3dacef09._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/node_modules_154d37b3._.js"],"async":false}},"55574":{"*":{"id":18952,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_3dacef09._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/node_modules_154d37b3._.js"],"async":false}},"8821":{"*":{"id":78141,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_3dacef09._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/app_fc7a5b13._.js"],"async":false}},"64439":{"*":{"id":57730,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0b4b7267._.js","server/chunks/ssr/_a13bff7c._.js","server/chunks/ssr/_3dacef09._.js","server/chunks/ssr/lib_utils_ts_2428e286._.js","server/chunks/ssr/node_modules_next_f2865b38._.js","server/chunks/ssr/node_modules_154d37b3._.js","server/chunks/ssr/_1e78350c._.js","server/chunks/ssr/app_queue_queue-client_tsx_45f040f7._.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}},"27201":{"*":{"id":40771,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"47613":{"*":{"id":86124,"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}},"64439":{"*":{"id":11268,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/app/icon.png":[],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/app/layout":[{"path":"static/chunks/98ef6309c816722d.css","inlined":false}],"[project]/app/error":[{"path":"static/chunks/98ef6309c816722d.css","inlined":false}],"[project]/app/queue/page":[{"path":"static/chunks/98ef6309c816722d.css","inlined":false}]},"entryJSFiles":{"[project]/app/icon.png":["static/chunks/ff1a16fafef87110.js","static/chunks/d2be314c3ece3fbe.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":[],"[project]/app/layout":["static/chunks/dbd7b157081058a6.js","static/chunks/95a1eab2b0a3fe06.js"],"[project]/app/error":["static/chunks/dbd7b157081058a6.js","static/chunks/95a1eab2b0a3fe06.js","static/chunks/e4aca2c4ff14a715.js"],"[project]/app/queue/page":["static/chunks/dbd7b157081058a6.js","static/chunks/95a1eab2b0a3fe06.js","static/chunks/9f273c6df6390f71.js"]}}
@@ -1,3 +1,3 @@
1
- module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},92509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},84234,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,a,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,n,"hasEnrichers",0,o,"hasSubagentEnrichers",0,i,"registerEnricher",()=>r])},77879,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,a,"getSessionScopedEvals",0,s,"getSubagentScopedEvals",0,n,"hasEvals",0,o,"hasSubagentEvals",0,i,"registerEval",()=>r])},13236,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),s=e.i(59756),n=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),g=e.i(26937),x=e.i(10372),v=e.i(93695);e.i(52474);var R=e.i(220),E=e.i(89171),m=e.i(8265);async function f(){return E.NextResponse.json((0,m.getQueueStatus)())}e.s(["GET",()=>f,"dynamic",0,"force-dynamic"],49424);var _=e.i(49424);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/queue-status/route",pathname:"/api/queue-status",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/queue-status/route.ts",nextConfigOutput:"standalone",userland:_}),{workAsyncStorage:S,workUnitAsyncStorage:b,serverHooks:w}=y;function C(){return(0,a.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:b})}async function A(e,t,a){y.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/queue-status/route";E=E.replace(/\/index$/,"")||"/";let m=await y.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:f,params:_,nextConfig:S,parsedUrl:b,isDraftMode:w,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:P,revalidateOnlyGenerated:q,resolvedPathname:T,clientReferenceManifest:k,serverActionsManifest:N}=m,j=(0,o.normalizeAppPath)(E),O=!!(C.dynamicRoutes[j]||C.routes[T]),H=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!w){let e=!!C.routes[T],t=C.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(S.experimental.adapterPath)return await H();throw new v.NoFallbackError}}let I=null;!O||y.isDev||w||(I="/index"===(I=T)?"/":I);let U=!0===y.isDev||!O,D=O&&!U;N&&k&&(0,i.setManifestsSingleton)({page:E,clientReferenceManifest:k,serverActionsManifest:N});let M=e.method||"GET",$=(0,n.getTracer)(),F=$.getActiveScopeSpan(),K={params:_,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:S.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>y.onRequestError(e,t,a,s,A)},sharedContext:{buildId:f}},L=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let i=async e=>y.handle(B,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${E}`)}),o=!!(0,s.getRequestMeta)(e,"minimalMode"),l=async s=>{var n,l;let u=async({previousCacheEntry:r})=>{try{if(!o&&P&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(s);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=K.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(L,G,n,K.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[x.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),t}},d=await y.handleResponse({req:e,nextConfig:S,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:q,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:o});if(!O)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),w&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return o&&O||v.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,g.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(L,G,new Response(d.value.body,{headers:v,status:d.value.status||200})),null};F?await l(F):await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${E}`,kind:n.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),O)throw t;return await (0,c.sendResponse)(L,G,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>C,"routeModule",()=>y,"serverHooks",()=>w,"workAsyncStorage",()=>S,"workUnitAsyncStorage",()=>b],13236)},6878,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_next_f5199d09._.js"].map(t=>e.l(t))).then(()=>t(93458)))},26404,e=>{e.v(t=>Promise.all(["server/chunks/lib_auth_ts_22c348a0._.js"].map(t=>e.l(t))).then(()=>t(68105)))},49590,e=>{e.v(t=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_35ae1046._.js"].map(t=>e.l(t))).then(()=>t(3539)))},16865,e=>{e.v(e=>Promise.resolve().then(()=>e(77879)))},10772,e=>{e.v(e=>Promise.resolve().then(()=>e(84234)))},31966,e=>{e.v(t=>Promise.all(["server/chunks/_fb07f1d4._.js"].map(t=>e.l(t))).then(()=>t(81929)))},66834,e=>{e.v(t=>Promise.all(["server/chunks/_d3c87a9f._.js"].map(t=>e.l(t))).then(()=>t(91560)))}];
1
+ module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},92509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},84234,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,a,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,n,"hasEnrichers",0,o,"hasSubagentEnrichers",0,i,"registerEnricher",()=>r])},77879,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,a,"getSessionScopedEvals",0,s,"getSubagentScopedEvals",0,n,"hasEvals",0,o,"hasSubagentEvals",0,i,"registerEval",()=>r])},13236,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),s=e.i(59756),n=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),v=e.i(26937),g=e.i(10372),x=e.i(93695);e.i(52474);var R=e.i(220),E=e.i(89171),m=e.i(8265);async function f(){return E.NextResponse.json((0,m.getQueueStatus)())}e.s(["GET",()=>f,"dynamic",0,"force-dynamic"],49424);var _=e.i(49424);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/queue-status/route",pathname:"/api/queue-status",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/queue-status/route.ts",nextConfigOutput:"standalone",userland:_}),{workAsyncStorage:S,workUnitAsyncStorage:b,serverHooks:w}=y;function C(){return(0,a.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:b})}async function A(e,t,a){y.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/queue-status/route";E=E.replace(/\/index$/,"")||"/";let m=await y.prepare(e,t,{srcPage:E,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:f,params:_,nextConfig:S,parsedUrl:b,isDraftMode:w,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:P,revalidateOnlyGenerated:q,resolvedPathname:T,clientReferenceManifest:k,serverActionsManifest:j}=m,N=(0,o.normalizeAppPath)(E),O=!!(C.dynamicRoutes[N]||C.routes[T]),H=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!w){let e=!!C.routes[T],t=C.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(S.experimental.adapterPath)return await H();throw new x.NoFallbackError}}let I=null;!O||y.isDev||w||(I="/index"===(I=T)?"/":I);let U=!0===y.isDev||!O,D=O&&!U;j&&k&&(0,i.setManifestsSingleton)({page:E,clientReferenceManifest:k,serverActionsManifest:j});let M=e.method||"GET",$=(0,n.getTracer)(),F=$.getActiveScopeSpan(),K={params:_,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:S.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>y.onRequestError(e,t,a,s,A)},sharedContext:{buildId:f}},L=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let i=async e=>y.handle(B,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${E}`)}),o=!!(0,s.getRequestMeta)(e,"minimalMode"),l=async s=>{var n,l;let u=async({previousCacheEntry:r})=>{try{if(!o&&P&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(s);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=K.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(L,G,n,K.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),t}},d=await y.handleResponse({req:e,nextConfig:S,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:q,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:o});if(!O)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),w&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return o&&O||x.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,v.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(L,G,new Response(d.value.body,{headers:x,status:d.value.status||200})),null};F?await l(F):await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${M} ${E}`,kind:n.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),O)throw t;return await (0,c.sendResponse)(L,G,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>C,"routeModule",()=>y,"serverHooks",()=>w,"workAsyncStorage",()=>S,"workUnitAsyncStorage",()=>b],13236)},6878,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_next_f5199d09._.js"].map(t=>e.l(t))).then(()=>t(93458)))},26404,e=>{e.v(t=>Promise.all(["server/chunks/lib_auth_ts_22c348a0._.js"].map(t=>e.l(t))).then(()=>t(68105)))},49590,e=>{e.v(t=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_35ae1046._.js"].map(t=>e.l(t))).then(()=>t(3539)))},16865,e=>{e.v(e=>Promise.resolve().then(()=>e(77879)))},10772,e=>{e.v(e=>Promise.resolve().then(()=>e(84234)))},31966,e=>{e.v(t=>Promise.all(["server/chunks/_7e07bbd9._.js"].map(t=>e.l(t))).then(()=>t(81929)))},66834,e=>{e.v(t=>Promise.all(["server/chunks/_8f856fad._.js"].map(t=>e.l(t))).then(()=>t(91560)))},4122,e=>{e.v(t=>Promise.all(["server/chunks/_3f3c09bf._.js"].map(t=>e.l(t))).then(()=>t(25396)))},15086,e=>{e.v(t=>Promise.all(["server/chunks/_b8adaa37._.js"].map(t=>e.l(t))).then(()=>t(28488)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__d4438063._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__05f07ba2._.js.map
@@ -0,0 +1,4 @@
1
+ module.exports=[18622,(e,r,t)=>{r.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},92509,(e,r,t)=>{r.exports=e.x("url",()=>require("url"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},24868,(e,r,t)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},54799,(e,r,t)=>{r.exports=e.x("crypto",()=>require("crypto"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,r,t)=>{r.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},25396,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(77879),a=e.i(22308),n=e.i(54214),i=e.i(26287);e.i(14214);var o=e.i(88107),l=e.i(39864);async function u(e,r,c,d,f=!1,p,h){try{await (0,t.ensureEvalsLoaded)();let u=(0,s.getSubagentScopedEvals)(p).find(e=>e.name===d);if(!u)return{ok:!1,error:`Eval "${d}" not found for subagent type "${p??"any"}"`};let m=`${r}/agent-${c}`,g=await (0,o.hashSubagentFile)(e,r,c);if(!f&&g){let r=(0,o.hashItemCode)(u.fn),t=await (0,l.getPerItemCacheWithHook)("evals",e,m,u.name,r,g);if(t)return{ok:!0,result:t.value}}let{entries:v,rawLines:S}=await (0,n.getCachedSessionLog)(e,r),E=(0,i.calculateLogStats)(v),x=(await (0,a.runAllEvals)(S,E,e,r,[u],{source:`agent-${c}`,subagentType:p,subagentDescription:h,parentSessionId:r})).results[0];if(!x)return{ok:!1,error:"No result returned from eval"};if(g){let r=(0,o.hashItemCode)(u.fn);await (0,l.setPerItemCache)("evals",e,m,u.name,r,x,g)}return{ok:!0,result:x}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([u]),(0,r.registerServerReference)(u,"7f68064a4c22a20ff95c88ef7a2d10574a69e433af",null),e.s(["processSubagentEval",()=>u])},28488,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(84234),a=e.i(7420),n=e.i(54214),i=e.i(26287);e.i(14214);var o=e.i(88107),l=e.i(39864);async function u(e,r,c,d,f=!1,p,h){try{await (0,t.ensureEvalsLoaded)();let u=(0,s.getSubagentScopedEnrichers)(p).find(e=>e.name===d);if(!u)return{ok:!1,error:`Enricher "${d}" not found for subagent type "${p??"any"}"`};let m=`${r}/agent-${c}`,g=await (0,o.hashSubagentFile)(e,r,c);if(!f&&g){let r=(0,o.hashItemCode)(u.fn),t=await (0,l.getPerItemCacheWithHook)("enrichments",e,m,u.name,r,g);if(t)return{ok:!0,result:t.value}}let{entries:v,rawLines:S}=await (0,n.getCachedSessionLog)(e,r),E=(0,i.calculateLogStats)(v),x=(await (0,a.runAllEnrichers)(S,E,e,r,[u],{source:`agent-${c}`,subagentType:p,subagentDescription:h,parentSessionId:r})).results[0];if(!x)return{ok:!1,error:"No result returned from enricher"};if(g){let r=(0,o.hashItemCode)(u.fn);await (0,l.setPerItemCache)("enrichments",e,m,u.name,r,x,g)}return{ok:!0,result:x}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([u]),(0,r.registerServerReference)(u,"7f21ed919c57166092d70619cdbc93ff1c2c0a6296",null),e.s(["processSubagentEnrichment",()=>u])},77879,e=>{"use strict";let r=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function t(e,s,a,n="session",i){let o={name:e,fn:s,scope:n};a&&(o.condition=a),i&&(o.subagentType=i),r.register(o)}let s=r.getAll,a=r.getSessionScoped,n=r.getSubagentScoped,i=r.hasSubagent,o=r.has,l=r.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,s,"getSessionScopedEvals",0,a,"getSubagentScopedEvals",0,n,"hasEvals",0,o,"hasSubagentEvals",0,i,"registerEval",()=>t])},22308,e=>{"use strict";var r=e.i(77879),t=e.i(14543);async function s(e,s,a,n,i,o){let l=i??(0,r.getRegisteredEvals)(),u={entries:e,stats:s,projectName:a,sessionId:n,source:"session",...o};return(0,t.runAll)(l,u,{skipResult:e=>({name:e.name,pass:!1,score:0,durationMs:0,skipped:!0}),successResult:(e,r,t)=>{var s;return{name:e.name,pass:r.pass,score:null==(s=r.score)?1:Math.max(0,Math.min(1,s)),message:r.message,metadata:r.metadata,durationMs:t}},errorResult:(e,r,t)=>({name:e.name,pass:!1,score:0,durationMs:t,error:r}),unexpectedResult:()=>({name:"?",pass:!1,score:0,durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,s=0,a=0,n=0;for(let r of e)r.skipped?n++:r.error?a++:r.pass?t++:s++;return{results:e,totalDurationMs:r,passCount:t,failCount:s,errorCount:a,skippedCount:n}}})}e.s(["runAllEvals",()=>s])},81929,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(77879),a=e.i(22308),n=e.i(54214),i=e.i(26287);e.i(14214);var o=e.i(88107),l=e.i(39864);async function u(e,r,c,d=!1){try{await (0,t.ensureEvalsLoaded)();let u=(0,s.getSessionScopedEvals)().find(e=>e.name===c);if(!u)return{ok:!1,error:`Eval "${c}" not found`};let f=await (0,o.hashSessionFile)(e,r);if(!d&&f){let t=(0,o.hashItemCode)(u.fn),s=await (0,l.getPerItemCacheWithHook)("evals",e,r,u.name,t,f);if(s)return{ok:!0,result:s.value}}let{entries:p,rawLines:h}=await (0,n.getCachedSessionLog)(e,r),m=(0,i.calculateLogStats)(p),g=(await (0,a.runAllEvals)(h,m,e,r,[u],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from eval"};if(f){let t=(0,o.hashItemCode)(u.fn);await (0,l.setPerItemCache)("evals",e,r,u.name,t,g,f)}return{ok:!0,result:g}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([u]),(0,r.registerServerReference)(u,"78c691fcaeb16c3493b6522cc94a6b6ba746723e53",null),e.s(["processSessionEval",()=>u])},84234,e=>{"use strict";let r=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function t(e,s,a,n="session",i){let o={name:e,fn:s,scope:n};a&&(o.condition=a),i&&(o.subagentType=i),r.register(o)}let s=r.getAll,a=r.getSessionScoped,n=r.getSubagentScoped,i=r.hasSubagent,o=r.has,l=r.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,s,"getSessionScopedEnrichers",0,a,"getSubagentScopedEnrichers",0,n,"hasEnrichers",0,o,"hasSubagentEnrichers",0,i,"registerEnricher",()=>t])},97953,(e,r,t)=>{"use strict";r.exports=e.r(42315).vendored["react-rsc"].ReactServerDOMTurbopackServer},45015,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerServerReference",{enumerable:!0,get:function(){return s.registerServerReference}});let s=e.r(97953)},14543,e=>{"use strict";async function r(e,r,t){let s=[],a=performance.now(),n=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,i=!1;if(n)try{await n(r)||(i=!0)}catch{i=!0}if(i)for(let r of e)s.push(t.skipResult(r));else{let a=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let s=performance.now();try{let a=await e.fn(r),n=Math.round(performance.now()-s);return t.successResult(e,a,n)}catch(a){let r=Math.round(performance.now()-s);return t.errorResult(e,a instanceof Error?a.message:String(a),r)}});for(let e of(await Promise.allSettled(a)))s.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let o=Math.round(performance.now()-a);return t.buildSummary(s,o)}e.s(["runAll",()=>r],14543)},95975,(e,r,t)=>{"use strict";function s(e){for(let r=0;r<e.length;r++){let t=e[r];if("function"!=typeof t)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof t}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureServerEntryExports",{enumerable:!0,get:function(){return s}})},7420,e=>{"use strict";var r=e.i(84234),t=e.i(14543);async function s(e,s,a,n,i,o){let l=i??(0,r.getRegisteredEnrichers)(),u={entries:e,stats:s,projectName:a,sessionId:n,source:"session",...o};return(0,t.runAll)(l,u,{skipResult:e=>({name:e.name,data:{},durationMs:0,skipped:!0}),successResult:(e,r,t)=>({name:e.name,data:r,durationMs:t}),errorResult:(e,r,t)=>({name:e.name,data:{},durationMs:t,error:r}),unexpectedResult:()=>({name:"?",data:{},durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,s=0;for(let r of e)r.skipped?s++:r.error&&t++;return{results:e,totalDurationMs:r,errorCount:t,skippedCount:s}}})}e.s(["runAllEnrichers",()=>s])},91560,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(84234),a=e.i(7420),n=e.i(54214),i=e.i(26287);e.i(14214);var o=e.i(88107),l=e.i(39864);async function u(e,r,c,d=!1){try{await (0,t.ensureEvalsLoaded)();let u=(0,s.getSessionScopedEnrichers)().find(e=>e.name===c);if(!u)return{ok:!1,error:`Enricher "${c}" not found`};let f=await (0,o.hashSessionFile)(e,r);if(!d&&f){let t=(0,o.hashItemCode)(u.fn),s=await (0,l.getPerItemCacheWithHook)("enrichments",e,r,u.name,t,f);if(s)return{ok:!0,result:s.value}}let{entries:p,rawLines:h}=await (0,n.getCachedSessionLog)(e,r),m=(0,i.calculateLogStats)(p),g=(await (0,a.runAllEnrichers)(h,m,e,r,[u],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from enricher"};if(f){let t=(0,o.hashItemCode)(u.fn);await (0,l.setPerItemCache)("enrichments",e,r,u.name,t,g,f)}return{ok:!0,result:g}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([u]),(0,r.registerServerReference)(u,"78780c9fe886ef2c486f1d1290698fc259323a87d6",null),e.s(["processSessionEnrichment",()=>u])},6878,e=>{e.v(r=>Promise.all(["server/chunks/node_modules_next_f5199d09._.js"].map(r=>e.l(r))).then(()=>r(93458)))},26404,e=>{e.v(r=>Promise.all(["server/chunks/lib_auth_ts_22c348a0._.js"].map(r=>e.l(r))).then(()=>r(68105)))},49590,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_35ae1046._.js"].map(r=>e.l(r))).then(()=>r(3539)))},16865,e=>{e.v(e=>Promise.resolve().then(()=>e(77879)))},10772,e=>{e.v(e=>Promise.resolve().then(()=>e(84234)))},31966,e=>{e.v(e=>Promise.resolve().then(()=>e(81929)))},66834,e=>{e.v(e=>Promise.resolve().then(()=>e(91560)))},4122,e=>{e.v(e=>Promise.resolve().then(()=>e(25396)))},15086,e=>{e.v(e=>Promise.resolve().then(()=>e(28488)))}];
3
+
4
+ //# sourceMappingURL=%5Broot-of-the-server%5D__18cae1da._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[92509,(e,r,t)=>{r.exports=e.x("url",()=>require("url"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},24868,(e,r,t)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},54799,(e,r,t)=>{r.exports=e.x("crypto",()=>require("crypto"))},58065,e=>{"use strict";let r=(0,e.i(99491).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function t(e,n,s,o="session",a){let i={name:e,fn:n,scope:o};s&&(i.condition=s),a&&(i.subagentType=a),r.register(i)}let n=r.getAll,s=r.getSessionScoped,o=r.getSubagentScoped,a=r.hasSubagent,i=r.has,l=r.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,n,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,o,"hasEnrichers",0,i,"hasSubagentEnrichers",0,a,"registerEnricher",()=>t])},99491,e=>{"use strict";function r(e){function r(){let r=globalThis;return r[e]||(r[e]=[]),r[e]}return{register(e){let t=r(),n=t.findIndex(r=>r.name===e.name);n>=0?t[n]=e:t.push(e)},getAll:()=>r(),getSessionScoped:()=>r().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>r().filter(r=>("subagent"===r.scope||"both"===r.scope)&&(!r.subagentType||!e||r.subagentType===e)),hasSubagent:()=>r().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>r().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>r])},38281,e=>{"use strict";let r={info:0,warn:1,error:2},t="warn";function n(){let e=(process.env.CLAUDEYE_LOG_LEVEL??"").toLowerCase();t="info"===e||"warn"===e||"error"===e?e:"warn"}function s(){return t}function o(e){return r[e]>=r[t]}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function i(e,r){o("info")&&(void 0!==r?console.log(a("INFO"),e,r):console.log(a("INFO"),e))}function l(e,r){o("warn")&&(void 0!==r?console.warn(a("WARN"),e,r):console.warn(a("WARN"),e))}function u(e,r){void 0!==r?console.error(a("ERROR"),e,r):console.error(a("ERROR"),e)}function c(e,r,t){if(!o("info"))return;let n=[`user=${e}`,`action=${r}`];t&&n.push(t),console.log(a("ACTIVITY"),n.join(" "))}async function h(){try{let{cookies:r}=await e.A(62916),t=await r(),n=t.get("claudeye_session")?.value;if(!n)return"anonymous";let s=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:o}=await e.A(16866);return await o(n,s)??"anonymous"}catch{return"anonymous"}}e.s(["getLogLevel",()=>s,"getRequestUsername",()=>h,"initLogger",()=>n,"logActivity",()=>c,"logError",()=>u,"logInfo",()=>i,"logWarn",()=>l])},73889,e=>{"use strict";async function r(e,r,t){let n=[],s=performance.now(),o=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,a=!1;if(o)try{await o(r)||(a=!0)}catch{a=!0}if(a)for(let r of e)n.push(t.skipResult(r));else{let s=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let n=performance.now();try{let s=await e.fn(r),o=Math.round(performance.now()-n);return t.successResult(e,s,o)}catch(s){let r=Math.round(performance.now()-n);return t.errorResult(e,s instanceof Error?s.message:String(s),r)}});for(let e of(await Promise.allSettled(s)))n.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let i=Math.round(performance.now()-s);return t.buildSummary(n,i)}e.s(["runAll",()=>r],73889)},14815,e=>{"use strict";var r=e.i(58065),t=e.i(73889);async function n(e,n,s,o,a,i){let l=a??(0,r.getRegisteredEnrichers)(),u={entries:e,stats:n,projectName:s,sessionId:o,source:"session",...i};return(0,t.runAll)(l,u,{skipResult:e=>({name:e.name,data:{},durationMs:0,skipped:!0}),successResult:(e,r,t)=>({name:e.name,data:r,durationMs:t}),errorResult:(e,r,t)=>({name:e.name,data:{},durationMs:t,error:r}),unexpectedResult:()=>({name:"?",data:{},durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,n=0;for(let r of e)r.skipped?n++:r.error&&t++;return{results:e,totalDurationMs:r,errorCount:t,skippedCount:n}}})}e.s(["runAllEnrichers",()=>n])},95587,e=>{"use strict";var r=e.i(63407),t=e.i(58065),n=e.i(14815),s=e.i(43955),o=e.i(34741);e.i(99893);var a=e.i(637),i=e.i(37573);async function l(e,u,c,h,f=!1,g,p){try{await (0,r.ensureEvalsLoaded)();let l=(0,t.getSubagentScopedEnrichers)(g).find(e=>e.name===h);if(!l)return{ok:!1,error:`Enricher "${h}" not found for subagent type "${g??"any"}"`};let d=`${u}/agent-${c}`,m=await (0,a.hashSubagentFile)(e,u,c);if(!f&&m){let r=(0,a.hashItemCode)(l.fn),t=await (0,i.getPerItemCacheWithHook)("enrichments",e,d,l.name,r,m);if(t)return{ok:!0,result:t.value}}let{entries:_,rawLines:E}=await (0,s.getCachedSessionLog)(e,u),S=(0,o.calculateLogStats)(_),R=(await (0,n.runAllEnrichers)(E,S,e,u,[l],{source:`agent-${c}`,subagentType:g,subagentDescription:p,parentSessionId:u})).results[0];if(!R)return{ok:!1,error:"No result returned from enricher"};if(m){let r=(0,a.hashItemCode)(l.fn);await (0,i.setPerItemCache)("enrichments",e,d,l.name,r,R,m)}return{ok:!0,result:R}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}e.s(["processSubagentEnrichment",()=>l])},62916,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_next_dist_86eb7852._.js","server/chunks/node_modules_next_286d3fa3._.js"].map(r=>e.l(r))).then(()=>r(37294)))},16866,e=>{e.v(r=>Promise.all(["server/chunks/lib_auth_ts_cfe39263._.js"].map(r=>e.l(r))).then(()=>r(70760)))},76590,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_fbef0128._.js"].map(r=>e.l(r))).then(()=>r(28794)))},39966,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_33da2596._.js"].map(r=>e.l(r))).then(()=>r(85835)))},92495,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_8f3357ca._.js"].map(r=>e.l(r))).then(()=>r(58065)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__49f23eb6._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[92509,(e,r,s)=>{r.exports=e.x("url",()=>require("url"))},14747,(e,r,s)=>{r.exports=e.x("path",()=>require("path"))},24868,(e,r,s)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,r,s)=>{r.exports=e.x("os",()=>require("os"))},54799,(e,r,s)=>{r.exports=e.x("crypto",()=>require("crypto"))},85835,e=>{"use strict";let r=(0,e.i(99491).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function s(e,t,n,o="session",a){let i={name:e,fn:t,scope:o};n&&(i.condition=n),a&&(i.subagentType=a),r.register(i)}let t=r.getAll,n=r.getSessionScoped,o=r.getSubagentScoped,a=r.hasSubagent,i=r.has,l=r.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,t,"getSessionScopedEvals",0,n,"getSubagentScopedEvals",0,o,"hasEvals",0,i,"hasSubagentEvals",0,a,"registerEval",()=>s])},99491,e=>{"use strict";function r(e){function r(){let r=globalThis;return r[e]||(r[e]=[]),r[e]}return{register(e){let s=r(),t=s.findIndex(r=>r.name===e.name);t>=0?s[t]=e:s.push(e)},getAll:()=>r(),getSessionScoped:()=>r().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>r().filter(r=>("subagent"===r.scope||"both"===r.scope)&&(!r.subagentType||!e||r.subagentType===e)),hasSubagent:()=>r().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>r().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>r])},38281,e=>{"use strict";let r={info:0,warn:1,error:2},s="warn";function t(){let e=(process.env.CLAUDEYE_LOG_LEVEL??"").toLowerCase();s="info"===e||"warn"===e||"error"===e?e:"warn"}function n(){return s}function o(e){return r[e]>=r[s]}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function i(e,r){o("info")&&(void 0!==r?console.log(a("INFO"),e,r):console.log(a("INFO"),e))}function l(e,r){o("warn")&&(void 0!==r?console.warn(a("WARN"),e,r):console.warn(a("WARN"),e))}function u(e,r){void 0!==r?console.error(a("ERROR"),e,r):console.error(a("ERROR"),e)}function c(e,r,s){if(!o("info"))return;let t=[`user=${e}`,`action=${r}`];s&&t.push(s),console.log(a("ACTIVITY"),t.join(" "))}async function p(){try{let{cookies:r}=await e.A(62916),s=await r(),t=s.get("claudeye_session")?.value;if(!t)return"anonymous";let n=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:o}=await e.A(16866);return await o(t,n)??"anonymous"}catch{return"anonymous"}}e.s(["getLogLevel",()=>n,"getRequestUsername",()=>p,"initLogger",()=>t,"logActivity",()=>c,"logError",()=>u,"logInfo",()=>i,"logWarn",()=>l])},73889,e=>{"use strict";async function r(e,r,s){let t=[],n=performance.now(),o=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,a=!1;if(o)try{await o(r)||(a=!0)}catch{a=!0}if(a)for(let r of e)t.push(s.skipResult(r));else{let n=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return s.skipResult(e)}catch(r){return s.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let t=performance.now();try{let n=await e.fn(r),o=Math.round(performance.now()-t);return s.successResult(e,n,o)}catch(n){let r=Math.round(performance.now()-t);return s.errorResult(e,n instanceof Error?n.message:String(n),r)}});for(let e of(await Promise.allSettled(n)))t.push("fulfilled"===e.status?e.value:s.unexpectedResult())}let i=Math.round(performance.now()-n);return s.buildSummary(t,i)}e.s(["runAll",()=>r],73889)},17807,e=>{"use strict";var r=e.i(85835),s=e.i(73889);async function t(e,t,n,o,a,i){let l=a??(0,r.getRegisteredEvals)(),u={entries:e,stats:t,projectName:n,sessionId:o,source:"session",...i};return(0,s.runAll)(l,u,{skipResult:e=>({name:e.name,pass:!1,score:0,durationMs:0,skipped:!0}),successResult:(e,r,s)=>{var t;return{name:e.name,pass:r.pass,score:null==(t=r.score)?1:Math.max(0,Math.min(1,t)),message:r.message,metadata:r.metadata,durationMs:s}},errorResult:(e,r,s)=>({name:e.name,pass:!1,score:0,durationMs:s,error:r}),unexpectedResult:()=>({name:"?",pass:!1,score:0,durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let s=0,t=0,n=0,o=0;for(let r of e)r.skipped?o++:r.error?n++:r.pass?s++:t++;return{results:e,totalDurationMs:r,passCount:s,failCount:t,errorCount:n,skippedCount:o}}})}e.s(["runAllEvals",()=>t])},21129,e=>{"use strict";var r=e.i(63407),s=e.i(85835),t=e.i(17807),n=e.i(43955),o=e.i(34741);e.i(99893);var a=e.i(637),i=e.i(37573);async function l(e,u,c,p=!1){try{await (0,r.ensureEvalsLoaded)();let l=(0,s.getSessionScopedEvals)().find(e=>e.name===c);if(!l)return{ok:!1,error:`Eval "${c}" not found`};let f=await (0,a.hashSessionFile)(e,u);if(!p&&f){let r=(0,a.hashItemCode)(l.fn),s=await (0,i.getPerItemCacheWithHook)("evals",e,u,l.name,r,f);if(s)return{ok:!0,result:s.value}}let{entries:g,rawLines:m}=await (0,n.getCachedSessionLog)(e,u),d=(0,o.calculateLogStats)(g),h=(await (0,t.runAllEvals)(m,d,e,u,[l],{source:"session"})).results[0];if(!h)return{ok:!1,error:"No result returned from eval"};if(f){let r=(0,a.hashItemCode)(l.fn);await (0,i.setPerItemCache)("evals",e,u,l.name,r,h,f)}return{ok:!0,result:h}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}e.s(["processSessionEval",()=>l])},62916,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_next_dist_86eb7852._.js","server/chunks/node_modules_next_286d3fa3._.js"].map(r=>e.l(r))).then(()=>r(37294)))},16866,e=>{e.v(r=>Promise.all(["server/chunks/lib_auth_ts_cfe39263._.js"].map(r=>e.l(r))).then(()=>r(70760)))},76590,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_fbef0128._.js"].map(r=>e.l(r))).then(()=>r(28794)))},39966,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_33da2596._.js"].map(r=>e.l(r))).then(()=>r(85835)))},92495,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_8f3357ca._.js"].map(r=>e.l(r))).then(()=>r(58065)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__4c863ef8._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[92509,(e,r,t)=>{r.exports=e.x("url",()=>require("url"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},24868,(e,r,t)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},54799,(e,r,t)=>{r.exports=e.x("crypto",()=>require("crypto"))},85835,e=>{"use strict";let r=(0,e.i(99491).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function t(e,s,n,a="session",o){let i={name:e,fn:s,scope:a};n&&(i.condition=n),o&&(i.subagentType=o),r.register(i)}let s=r.getAll,n=r.getSessionScoped,a=r.getSubagentScoped,o=r.hasSubagent,i=r.has,l=r.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,s,"getSessionScopedEvals",0,n,"getSubagentScopedEvals",0,a,"hasEvals",0,i,"hasSubagentEvals",0,o,"registerEval",()=>t])},99491,e=>{"use strict";function r(e){function r(){let r=globalThis;return r[e]||(r[e]=[]),r[e]}return{register(e){let t=r(),s=t.findIndex(r=>r.name===e.name);s>=0?t[s]=e:t.push(e)},getAll:()=>r(),getSessionScoped:()=>r().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>r().filter(r=>("subagent"===r.scope||"both"===r.scope)&&(!r.subagentType||!e||r.subagentType===e)),hasSubagent:()=>r().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>r().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>r])},38281,e=>{"use strict";let r={info:0,warn:1,error:2},t="warn";function s(){let e=(process.env.CLAUDEYE_LOG_LEVEL??"").toLowerCase();t="info"===e||"warn"===e||"error"===e?e:"warn"}function n(){return t}function a(e){return r[e]>=r[t]}function o(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function i(e,r){a("info")&&(void 0!==r?console.log(o("INFO"),e,r):console.log(o("INFO"),e))}function l(e,r){a("warn")&&(void 0!==r?console.warn(o("WARN"),e,r):console.warn(o("WARN"),e))}function u(e,r){void 0!==r?console.error(o("ERROR"),e,r):console.error(o("ERROR"),e)}function c(e,r,t){if(!a("info"))return;let s=[`user=${e}`,`action=${r}`];t&&s.push(t),console.log(o("ACTIVITY"),s.join(" "))}async function g(){try{let{cookies:r}=await e.A(62916),t=await r(),s=t.get("claudeye_session")?.value;if(!s)return"anonymous";let n=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:a}=await e.A(16866);return await a(s,n)??"anonymous"}catch{return"anonymous"}}e.s(["getLogLevel",()=>n,"getRequestUsername",()=>g,"initLogger",()=>s,"logActivity",()=>c,"logError",()=>u,"logInfo",()=>i,"logWarn",()=>l])},73889,e=>{"use strict";async function r(e,r,t){let s=[],n=performance.now(),a=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,o=!1;if(a)try{await a(r)||(o=!0)}catch{o=!0}if(o)for(let r of e)s.push(t.skipResult(r));else{let n=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let s=performance.now();try{let n=await e.fn(r),a=Math.round(performance.now()-s);return t.successResult(e,n,a)}catch(n){let r=Math.round(performance.now()-s);return t.errorResult(e,n instanceof Error?n.message:String(n),r)}});for(let e of(await Promise.allSettled(n)))s.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let i=Math.round(performance.now()-n);return t.buildSummary(s,i)}e.s(["runAll",()=>r],73889)},17807,e=>{"use strict";var r=e.i(85835),t=e.i(73889);async function s(e,s,n,a,o,i){let l=o??(0,r.getRegisteredEvals)(),u={entries:e,stats:s,projectName:n,sessionId:a,source:"session",...i};return(0,t.runAll)(l,u,{skipResult:e=>({name:e.name,pass:!1,score:0,durationMs:0,skipped:!0}),successResult:(e,r,t)=>{var s;return{name:e.name,pass:r.pass,score:null==(s=r.score)?1:Math.max(0,Math.min(1,s)),message:r.message,metadata:r.metadata,durationMs:t}},errorResult:(e,r,t)=>({name:e.name,pass:!1,score:0,durationMs:t,error:r}),unexpectedResult:()=>({name:"?",pass:!1,score:0,durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,s=0,n=0,a=0;for(let r of e)r.skipped?a++:r.error?n++:r.pass?t++:s++;return{results:e,totalDurationMs:r,passCount:t,failCount:s,errorCount:n,skippedCount:a}}})}e.s(["runAllEvals",()=>s])},55473,e=>{"use strict";var r=e.i(63407),t=e.i(85835),s=e.i(17807),n=e.i(43955),a=e.i(34741);e.i(99893);var o=e.i(637),i=e.i(37573);async function l(e,u,c,g,p=!1,f,m){try{await (0,r.ensureEvalsLoaded)();let l=(0,t.getSubagentScopedEvals)(f).find(e=>e.name===g);if(!l)return{ok:!1,error:`Eval "${g}" not found for subagent type "${f??"any"}"`};let d=`${u}/agent-${c}`,h=await (0,o.hashSubagentFile)(e,u,c);if(!p&&h){let r=(0,o.hashItemCode)(l.fn),t=await (0,i.getPerItemCacheWithHook)("evals",e,d,l.name,r,h);if(t)return{ok:!0,result:t.value}}let{entries:v,rawLines:_}=await (0,n.getCachedSessionLog)(e,u),E=(0,a.calculateLogStats)(v),S=(await (0,s.runAllEvals)(_,E,e,u,[l],{source:`agent-${c}`,subagentType:f,subagentDescription:m,parentSessionId:u})).results[0];if(!S)return{ok:!1,error:"No result returned from eval"};if(h){let r=(0,o.hashItemCode)(l.fn);await (0,i.setPerItemCache)("evals",e,d,l.name,r,S,h)}return{ok:!0,result:S}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}e.s(["processSubagentEval",()=>l])},62916,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_next_dist_86eb7852._.js","server/chunks/node_modules_next_286d3fa3._.js"].map(r=>e.l(r))).then(()=>r(37294)))},16866,e=>{e.v(r=>Promise.all(["server/chunks/lib_auth_ts_cfe39263._.js"].map(r=>e.l(r))).then(()=>r(70760)))},76590,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_fbef0128._.js"].map(r=>e.l(r))).then(()=>r(28794)))},39966,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_33da2596._.js"].map(r=>e.l(r))).then(()=>r(85835)))},92495,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_8f3357ca._.js"].map(r=>e.l(r))).then(()=>r(58065)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__5c05256a._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},92509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},84234,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,a,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,n,"hasEnrichers",0,o,"hasSubagentEnrichers",0,i,"registerEnricher",()=>r])},77879,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,a,"getSessionScopedEvals",0,s,"getSubagentScopedEvals",0,n,"hasEvals",0,o,"hasSubagentEvals",0,i,"registerEval",()=>r])},99836,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),s=e.i(59756),n=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),g=e.i(26937),x=e.i(10372),v=e.i(93695);e.i(52474);var R=e.i(220),m=e.i(89171),E=e.i(8265);async function f(e){let t=Math.max(1,parseInt(new URL(e.url).searchParams.get("page")??"1",10)||1);return m.NextResponse.json(await (0,E.getCompletedHistory)(t))}e.s(["GET",()=>f,"dynamic",0,"force-dynamic"],61410);var y=e.i(61410);let _=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/completed-history/route",pathname:"/api/completed-history",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/completed-history/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:S,workUnitAsyncStorage:w,serverHooks:b}=_;function C(){return(0,a.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:w})}async function A(e,t,a){_.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/completed-history/route";m=m.replace(/\/index$/,"")||"/";let E=await _.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:f,params:y,nextConfig:S,parsedUrl:w,isDraftMode:b,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:k,clientReferenceManifest:q,serverActionsManifest:N}=E,j=(0,o.normalizeAppPath)(m),O=!!(C.dynamicRoutes[j]||C.routes[k]),H=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,w,!1):t.end("This page could not be found"),null);if(O&&!b){let e=!!C.routes[k],t=C.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(S.experimental.adapterPath)return await H();throw new v.NoFallbackError}}let I=null;!O||_.isDev||b||(I="/index"===(I=k)?"/":I);let U=!0===_.isDev||!O,D=O&&!U;N&&q&&(0,i.setManifestsSingleton)({page:m,clientReferenceManifest:q,serverActionsManifest:N});let M=e.method||"GET",L=(0,n.getTracer)(),$=L.getActiveScopeSpan(),F={params:y,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:S.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>_.onRequestError(e,t,a,s,A)},sharedContext:{buildId:f}},K=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=d.NextRequestAdapter.fromNodeNextRequest(K,(0,d.signalFromNodeResponse)(t));try{let i=async e=>_.handle(B,F).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${m}`)}),o=!!(0,s.getRequestMeta)(e,"minimalMode"),l=async s=>{var n,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(s);e.fetchMetrics=F.renderOpts.fetchMetrics;let l=F.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=F.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(K,G,n,F.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);d&&(t[x.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==F.renderOpts.collectedRevalidate&&!(F.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&F.renderOpts.collectedRevalidate,a=void 0===F.renderOpts.collectedExpire||F.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:F.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await _.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),t}},u=await _.handleResponse({req:e,nextConfig:S,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:o});if(!O)return null;if((null==u||null==(n=u.value)?void 0:n.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let v=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&O||v.delete(x.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,g.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(K,G,new Response(u.value.body,{headers:v,status:u.value.status||200})),null};$?await l($):await L.withPropagatedContext(e.headers,()=>L.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${m}`,kind:n.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof v.NoFallbackError||await _.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),O)throw t;return await (0,c.sendResponse)(K,G,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>C,"routeModule",()=>_,"serverHooks",()=>b,"workAsyncStorage",()=>S,"workUnitAsyncStorage",()=>w],99836)},6878,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_next_f5199d09._.js"].map(t=>e.l(t))).then(()=>t(93458)))},26404,e=>{e.v(t=>Promise.all(["server/chunks/lib_auth_ts_22c348a0._.js"].map(t=>e.l(t))).then(()=>t(68105)))},49590,e=>{e.v(t=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_35ae1046._.js"].map(t=>e.l(t))).then(()=>t(3539)))},16865,e=>{e.v(e=>Promise.resolve().then(()=>e(77879)))},10772,e=>{e.v(e=>Promise.resolve().then(()=>e(84234)))},31966,e=>{e.v(t=>Promise.all(["server/chunks/_fb07f1d4._.js"].map(t=>e.l(t))).then(()=>t(81929)))},66834,e=>{e.v(t=>Promise.all(["server/chunks/_d3c87a9f._.js"].map(t=>e.l(t))).then(()=>t(91560)))}];
1
+ module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},92509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},24868,(e,t,r)=>{t.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,t,r)=>{t.exports=e.x("os",()=>require("os"))},54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},84234,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,a,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,n,"hasEnrichers",0,o,"hasSubagentEnrichers",0,i,"registerEnricher",()=>r])},77879,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function r(e,a,s,n="session",i){let o={name:e,fn:a,scope:n};s&&(o.condition=s),i&&(o.subagentType=i),t.register(o)}let a=t.getAll,s=t.getSessionScoped,n=t.getSubagentScoped,i=t.hasSubagent,o=t.has,l=t.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,a,"getSessionScopedEvals",0,s,"getSubagentScopedEvals",0,n,"hasEvals",0,o,"hasSubagentEvals",0,i,"registerEval",()=>r])},99836,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),s=e.i(59756),n=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),v=e.i(26937),g=e.i(10372),x=e.i(93695);e.i(52474);var m=e.i(220),R=e.i(89171),E=e.i(8265);async function f(e){let t=Math.max(1,parseInt(new URL(e.url).searchParams.get("page")??"1",10)||1);return R.NextResponse.json(await (0,E.getCompletedHistory)(t))}e.s(["GET",()=>f,"dynamic",0,"force-dynamic"],61410);var _=e.i(61410);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/completed-history/route",pathname:"/api/completed-history",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/completed-history/route.ts",nextConfigOutput:"standalone",userland:_}),{workAsyncStorage:b,workUnitAsyncStorage:S,serverHooks:w}=y;function C(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:S})}async function A(e,t,a){y.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/completed-history/route";R=R.replace(/\/index$/,"")||"/";let E=await y.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:f,params:_,nextConfig:b,parsedUrl:S,isDraftMode:w,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:k,clientReferenceManifest:j,serverActionsManifest:q}=E,N=(0,o.normalizeAppPath)(R),O=!!(C.dynamicRoutes[N]||C.routes[k]),H=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,S,!1):t.end("This page could not be found"),null);if(O&&!w){let e=!!C.routes[k],t=C.dynamicRoutes[N];if(t&&!1===t.fallback&&!e){if(b.experimental.adapterPath)return await H();throw new x.NoFallbackError}}let I=null;!O||y.isDev||w||(I="/index"===(I=k)?"/":I);let U=!0===y.isDev||!O,D=O&&!U;q&&j&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:j,serverActionsManifest:q});let M=e.method||"GET",L=(0,n.getTracer)(),$=L.getActiveScopeSpan(),F={params:_,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:b.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,s)=>y.onRequestError(e,t,a,s,A)},sharedContext:{buildId:f}},K=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=d.NextRequestAdapter.fromNodeNextRequest(K,(0,d.signalFromNodeResponse)(t));try{let i=async e=>y.handle(B,F).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${M} ${R}`)}),o=!!(0,s.getRequestMeta)(e,"minimalMode"),l=async s=>{var n,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await i(s);e.fetchMetrics=F.renderOpts.fetchMetrics;let l=F.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=F.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(K,G,n,F.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);d&&(t[g.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==F.renderOpts.collectedRevalidate&&!(F.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&F.renderOpts.collectedRevalidate,a=void 0===F.renderOpts.collectedExpire||F.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:F.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),t}},u=await y.handleResponse({req:e,nextConfig:b,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:o});if(!O)return null;if((null==u||null==(n=u.value)?void 0:n.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",P?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),w&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&O||x.delete(g.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,v.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(K,G,new Response(u.value.body,{headers:x,status:u.value.status||200})),null};$?await l($):await L.withPropagatedContext(e.headers,()=>L.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${R}`,kind:n.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,A),O)throw t;return await (0,c.sendResponse)(K,G,new Response(null,{status:500})),null}}e.s(["handler",()=>A,"patchFetch",()=>C,"routeModule",()=>y,"serverHooks",()=>w,"workAsyncStorage",()=>b,"workUnitAsyncStorage",()=>S],99836)},6878,e=>{e.v(t=>Promise.all(["server/chunks/node_modules_next_f5199d09._.js"].map(t=>e.l(t))).then(()=>t(93458)))},26404,e=>{e.v(t=>Promise.all(["server/chunks/lib_auth_ts_22c348a0._.js"].map(t=>e.l(t))).then(()=>t(68105)))},49590,e=>{e.v(t=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_35ae1046._.js"].map(t=>e.l(t))).then(()=>t(3539)))},16865,e=>{e.v(e=>Promise.resolve().then(()=>e(77879)))},10772,e=>{e.v(e=>Promise.resolve().then(()=>e(84234)))},31966,e=>{e.v(t=>Promise.all(["server/chunks/_7e07bbd9._.js"].map(t=>e.l(t))).then(()=>t(81929)))},66834,e=>{e.v(t=>Promise.all(["server/chunks/_8f856fad._.js"].map(t=>e.l(t))).then(()=>t(91560)))},4122,e=>{e.v(t=>Promise.all(["server/chunks/_3f3c09bf._.js"].map(t=>e.l(t))).then(()=>t(25396)))},15086,e=>{e.v(t=>Promise.all(["server/chunks/_b8adaa37._.js"].map(t=>e.l(t))).then(()=>t(28488)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__4b3a0135._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__b87517c1._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[92509,(e,s,r)=>{s.exports=e.x("url",()=>require("url"))},14747,(e,s,r)=>{s.exports=e.x("path",()=>require("path"))},24868,(e,s,r)=>{s.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,s,r)=>{s.exports=e.x("os",()=>require("os"))},54799,(e,s,r)=>{s.exports=e.x("crypto",()=>require("crypto"))},99491,e=>{"use strict";function s(e){function s(){let s=globalThis;return s[e]||(s[e]=[]),s[e]}return{register(e){let r=s(),t=r.findIndex(s=>s.name===e.name);t>=0?r[t]=e:r.push(e)},getAll:()=>s(),getSessionScoped:()=>s().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>s().filter(s=>("subagent"===s.scope||"both"===s.scope)&&(!s.subagentType||!e||s.subagentType===e)),hasSubagent:()=>s().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>s().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>s])},38281,e=>{"use strict";let s={info:0,warn:1,error:2},r="warn";function t(){let e=(process.env.CLAUDEYE_LOG_LEVEL??"").toLowerCase();r="info"===e||"warn"===e||"error"===e?e:"warn"}function n(){return r}function o(e){return s[e]>=s[r]}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function i(e,s){o("info")&&(void 0!==s?console.log(a("INFO"),e,s):console.log(a("INFO"),e))}function l(e,s){o("warn")&&(void 0!==s?console.warn(a("WARN"),e,s):console.warn(a("WARN"),e))}function c(e,s){void 0!==s?console.error(a("ERROR"),e,s):console.error(a("ERROR"),e)}function u(e,s,r){if(!o("info"))return;let t=[`user=${e}`,`action=${s}`];r&&t.push(r),console.log(a("ACTIVITY"),t.join(" "))}async function _(){try{let{cookies:s}=await e.A(62916),r=await s(),t=r.get("claudeye_session")?.value;if(!t)return"anonymous";let n=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:o}=await e.A(16866);return await o(t,n)??"anonymous"}catch{return"anonymous"}}e.s(["getLogLevel",()=>n,"getRequestUsername",()=>_,"initLogger",()=>t,"logActivity",()=>u,"logError",()=>c,"logInfo",()=>i,"logWarn",()=>l])},58065,e=>{"use strict";let s=(0,e.i(99491).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function r(e,t,n,o="session",a){let i={name:e,fn:t,scope:o};n&&(i.condition=n),a&&(i.subagentType=a),s.register(i)}let t=s.getAll,n=s.getSessionScoped,o=s.getSubagentScoped,a=s.hasSubagent,i=s.has,l=s.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,t,"getSessionScopedEnrichers",0,n,"getSubagentScopedEnrichers",0,o,"hasEnrichers",0,i,"hasSubagentEnrichers",0,a,"registerEnricher",()=>r])},85835,e=>{"use strict";let s=(0,e.i(99491).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function r(e,t,n,o="session",a){let i={name:e,fn:t,scope:o};n&&(i.condition=n),a&&(i.subagentType=a),s.register(i)}let t=s.getAll,n=s.getSessionScoped,o=s.getSubagentScoped,a=s.hasSubagent,i=s.has,l=s.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,t,"getSessionScopedEvals",0,n,"getSubagentScopedEvals",0,o,"hasEvals",0,i,"hasSubagentEvals",0,a,"registerEval",()=>r])},62916,e=>{e.v(s=>Promise.all(["server/chunks/[externals]_next_dist_86eb7852._.js","server/chunks/node_modules_next_286d3fa3._.js"].map(s=>e.l(s))).then(()=>s(37294)))},16866,e=>{e.v(s=>Promise.all(["server/chunks/lib_auth_ts_cfe39263._.js"].map(s=>e.l(s))).then(()=>s(70760)))},76590,e=>{e.v(s=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_fbef0128._.js"].map(s=>e.l(s))).then(()=>s(28794)))},39966,e=>{e.v(s=>Promise.all(["server/chunks/lib_evals_33da2596._.js"].map(s=>e.l(s))).then(()=>s(85835)))},92495,e=>{e.v(s=>Promise.all(["server/chunks/lib_evals_8f3357ca._.js"].map(s=>e.l(s))).then(()=>s(58065)))},90454,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__4c863ef8._.js","server/chunks/lib_74f62736._.js"].map(s=>e.l(s))).then(()=>s(21129)))},16692,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__f9952ff1._.js","server/chunks/lib_74f62736._.js"].map(s=>e.l(s))).then(()=>s(41671)))},82400,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__5c05256a._.js","server/chunks/lib_74f62736._.js"].map(s=>e.l(s))).then(()=>s(55473)))},82937,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__49f23eb6._.js","server/chunks/lib_74f62736._.js"].map(s=>e.l(s))).then(()=>s(95587)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__d2d53e39._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[92509,(e,r,t)=>{r.exports=e.x("url",()=>require("url"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))},24868,(e,r,t)=>{r.exports=e.x("fs/promises",()=>require("fs/promises"))},46786,(e,r,t)=>{r.exports=e.x("os",()=>require("os"))},54799,(e,r,t)=>{r.exports=e.x("crypto",()=>require("crypto"))},58065,e=>{"use strict";let r=(0,e.i(99491).createScopedRegistry)("__CLAUDEYE_ENRICHER_REGISTRY__");function t(e,n,s,o="session",i){let a={name:e,fn:n,scope:o};s&&(a.condition=s),i&&(a.subagentType=i),r.register(a)}let n=r.getAll,s=r.getSessionScoped,o=r.getSubagentScoped,i=r.hasSubagent,a=r.has,l=r.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,n,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,o,"hasEnrichers",0,a,"hasSubagentEnrichers",0,i,"registerEnricher",()=>t])},99491,e=>{"use strict";function r(e){function r(){let r=globalThis;return r[e]||(r[e]=[]),r[e]}return{register(e){let t=r(),n=t.findIndex(r=>r.name===e.name);n>=0?t[n]=e:t.push(e)},getAll:()=>r(),getSessionScoped:()=>r().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>r().filter(r=>("subagent"===r.scope||"both"===r.scope)&&(!r.subagentType||!e||r.subagentType===e)),hasSubagent:()=>r().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>r().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>r])},38281,e=>{"use strict";let r={info:0,warn:1,error:2},t="warn";function n(){let e=(process.env.CLAUDEYE_LOG_LEVEL??"").toLowerCase();t="info"===e||"warn"===e||"error"===e?e:"warn"}function s(){return t}function o(e){return r[e]>=r[t]}function i(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function a(e,r){o("info")&&(void 0!==r?console.log(i("INFO"),e,r):console.log(i("INFO"),e))}function l(e,r){o("warn")&&(void 0!==r?console.warn(i("WARN"),e,r):console.warn(i("WARN"),e))}function c(e,r){void 0!==r?console.error(i("ERROR"),e,r):console.error(i("ERROR"),e)}function u(e,r,t){if(!o("info"))return;let n=[`user=${e}`,`action=${r}`];t&&n.push(t),console.log(i("ACTIVITY"),n.join(" "))}async function h(){try{let{cookies:r}=await e.A(62916),t=await r(),n=t.get("claudeye_session")?.value;if(!n)return"anonymous";let s=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:o}=await e.A(16866);return await o(n,s)??"anonymous"}catch{return"anonymous"}}e.s(["getLogLevel",()=>s,"getRequestUsername",()=>h,"initLogger",()=>n,"logActivity",()=>u,"logError",()=>c,"logInfo",()=>a,"logWarn",()=>l])},73889,e=>{"use strict";async function r(e,r,t){let n=[],s=performance.now(),o=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,i=!1;if(o)try{await o(r)||(i=!0)}catch{i=!0}if(i)for(let r of e)n.push(t.skipResult(r));else{let s=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let n=performance.now();try{let s=await e.fn(r),o=Math.round(performance.now()-n);return t.successResult(e,s,o)}catch(s){let r=Math.round(performance.now()-n);return t.errorResult(e,s instanceof Error?s.message:String(s),r)}});for(let e of(await Promise.allSettled(s)))n.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let a=Math.round(performance.now()-s);return t.buildSummary(n,a)}e.s(["runAll",()=>r],73889)},14815,e=>{"use strict";var r=e.i(58065),t=e.i(73889);async function n(e,n,s,o,i,a){let l=i??(0,r.getRegisteredEnrichers)(),c={entries:e,stats:n,projectName:s,sessionId:o,source:"session",...a};return(0,t.runAll)(l,c,{skipResult:e=>({name:e.name,data:{},durationMs:0,skipped:!0}),successResult:(e,r,t)=>({name:e.name,data:r,durationMs:t}),errorResult:(e,r,t)=>({name:e.name,data:{},durationMs:t,error:r}),unexpectedResult:()=>({name:"?",data:{},durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,n=0;for(let r of e)r.skipped?n++:r.error&&t++;return{results:e,totalDurationMs:r,errorCount:t,skippedCount:n}}})}e.s(["runAllEnrichers",()=>n])},41671,e=>{"use strict";var r=e.i(63407),t=e.i(58065),n=e.i(14815),s=e.i(43955),o=e.i(34741);e.i(99893);var i=e.i(637),a=e.i(37573);async function l(e,c,u,h=!1){try{await (0,r.ensureEvalsLoaded)();let l=(0,t.getSessionScopedEnrichers)().find(e=>e.name===u);if(!l)return{ok:!1,error:`Enricher "${u}" not found`};let f=await (0,i.hashSessionFile)(e,c);if(!h&&f){let r=(0,i.hashItemCode)(l.fn),t=await (0,a.getPerItemCacheWithHook)("enrichments",e,c,l.name,r,f);if(t)return{ok:!0,result:t.value}}let{entries:g,rawLines:p}=await (0,s.getCachedSessionLog)(e,c),d=(0,o.calculateLogStats)(g),m=(await (0,n.runAllEnrichers)(p,d,e,c,[l],{source:"session"})).results[0];if(!m)return{ok:!1,error:"No result returned from enricher"};if(f){let r=(0,i.hashItemCode)(l.fn);await (0,a.setPerItemCache)("enrichments",e,c,l.name,r,m,f)}return{ok:!0,result:m}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}e.s(["processSessionEnrichment",()=>l])},62916,e=>{e.v(r=>Promise.all(["server/chunks/[externals]_next_dist_86eb7852._.js","server/chunks/node_modules_next_286d3fa3._.js"].map(r=>e.l(r))).then(()=>r(37294)))},16866,e=>{e.v(r=>Promise.all(["server/chunks/lib_auth_ts_cfe39263._.js"].map(r=>e.l(r))).then(()=>r(70760)))},76590,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_cache-invalidation-registry_ts_fbef0128._.js"].map(r=>e.l(r))).then(()=>r(28794)))},39966,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_33da2596._.js"].map(r=>e.l(r))).then(()=>r(85835)))},92495,e=>{e.v(r=>Promise.all(["server/chunks/lib_evals_8f3357ca._.js"].map(r=>e.l(r))).then(()=>r(58065)))}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__f9952ff1._.js.map
@@ -0,0 +1,4 @@
1
+ module.exports=[97953,(e,r,t)=>{"use strict";r.exports=e.r(42315).vendored["react-rsc"].ReactServerDOMTurbopackServer},45015,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerServerReference",{enumerable:!0,get:function(){return s.registerServerReference}});let s=e.r(97953)},14543,e=>{"use strict";async function r(e,r,t){let s=[],a=performance.now(),n=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,o=!1;if(n)try{await n(r)||(o=!0)}catch{o=!0}if(o)for(let r of e)s.push(t.skipResult(r));else{let a=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let s=performance.now();try{let a=await e.fn(r),n=Math.round(performance.now()-s);return t.successResult(e,a,n)}catch(a){let r=Math.round(performance.now()-s);return t.errorResult(e,a instanceof Error?a.message:String(a),r)}});for(let e of(await Promise.allSettled(a)))s.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let u=Math.round(performance.now()-a);return t.buildSummary(s,u)}e.s(["runAll",()=>r],14543)},95975,(e,r,t)=>{"use strict";function s(e){for(let r=0;r<e.length;r++){let t=e[r];if("function"!=typeof t)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof t}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureServerEntryExports",{enumerable:!0,get:function(){return s}})},22308,e=>{"use strict";var r=e.i(77879),t=e.i(14543);async function s(e,s,a,n,o,u){let i=o??(0,r.getRegisteredEvals)(),l={entries:e,stats:s,projectName:a,sessionId:n,source:"session",...u};return(0,t.runAll)(i,l,{skipResult:e=>({name:e.name,pass:!1,score:0,durationMs:0,skipped:!0}),successResult:(e,r,t)=>{var s;return{name:e.name,pass:r.pass,score:null==(s=r.score)?1:Math.max(0,Math.min(1,s)),message:r.message,metadata:r.metadata,durationMs:t}},errorResult:(e,r,t)=>({name:e.name,pass:!1,score:0,durationMs:t,error:r}),unexpectedResult:()=>({name:"?",pass:!1,score:0,durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,s=0,a=0,n=0;for(let r of e)r.skipped?n++:r.error?a++:r.pass?t++:s++;return{results:e,totalDurationMs:r,passCount:t,failCount:s,errorCount:a,skippedCount:n}}})}e.s(["runAllEvals",()=>s])},25396,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(77879),a=e.i(22308),n=e.i(54214),o=e.i(26287);e.i(14214);var u=e.i(88107),i=e.i(39864);async function l(e,r,c,f,d=!1,p,m){try{await (0,t.ensureEvalsLoaded)();let l=(0,s.getSubagentScopedEvals)(p).find(e=>e.name===f);if(!l)return{ok:!1,error:`Eval "${f}" not found for subagent type "${p??"any"}"`};let g=`${r}/agent-${c}`,v=await (0,u.hashSubagentFile)(e,r,c);if(!d&&v){let r=(0,u.hashItemCode)(l.fn),t=await (0,i.getPerItemCacheWithHook)("evals",e,g,l.name,r,v);if(t)return{ok:!0,result:t.value}}let{entries:h,rawLines:y}=await (0,n.getCachedSessionLog)(e,r),E=(0,o.calculateLogStats)(h),R=(await (0,a.runAllEvals)(y,E,e,r,[l],{source:`agent-${c}`,subagentType:p,subagentDescription:m,parentSessionId:r})).results[0];if(!R)return{ok:!1,error:"No result returned from eval"};if(v){let r=(0,u.hashItemCode)(l.fn);await (0,i.setPerItemCache)("evals",e,g,l.name,r,R,v)}return{ok:!0,result:R}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([l]),(0,r.registerServerReference)(l,"7f68064a4c22a20ff95c88ef7a2d10574a69e433af",null),e.s(["processSubagentEval",()=>l])}];
3
+
4
+ //# sourceMappingURL=_3f3c09bf._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[69449,e=>{"use strict";async function s(){let{initLogger:s}=await e.A(15568);s();let r=process.env.CLAUDEYE_QUEUE_INTERVAL;if(!r)return;let t=parseInt(r,10);if(isNaN(t)||t<=0)return;let{startBackgroundProcessor:a}=await e.A(48351);a(t)}e.s(["register",()=>s])},15568,e=>{e.v(s=>Promise.all(["server/chunks/_63727770._.js"].map(s=>e.l(s))).then(()=>s(38281)))},48351,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__12f1df7a._.js","server/chunks/lib_eval-queue_ts_32d171f8._.js","server/chunks/lib_6cff0ca5._.js"].map(s=>e.l(s))).then(()=>s(67)))}];
1
+ module.exports=[69449,e=>{"use strict";async function s(){let{initLogger:s}=await e.A(15568);s();let r=process.env.CLAUDEYE_QUEUE_INTERVAL;if(!r)return;let t=parseInt(r,10);if(isNaN(t)||t<=0)return;let{startBackgroundProcessor:l}=await e.A(48351);l(t)}e.s(["register",()=>s])},15568,e=>{e.v(s=>Promise.all(["server/chunks/_63727770._.js"].map(s=>e.l(s))).then(()=>s(38281)))},48351,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__d2d53e39._.js","server/chunks/lib_6cff0ca5._.js","server/chunks/lib_eval-queue_ts_32d171f8._.js"].map(s=>e.l(s))).then(()=>s(67)))}];
2
2
 
3
3
  //# sourceMappingURL=_5ab69e50._.js.map
@@ -0,0 +1,4 @@
1
+ module.exports=[97953,(e,r,t)=>{"use strict";r.exports=e.r(42315).vendored["react-rsc"].ReactServerDOMTurbopackServer},45015,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerServerReference",{enumerable:!0,get:function(){return s.registerServerReference}});let s=e.r(97953)},14543,e=>{"use strict";async function r(e,r,t){let s=[],n=performance.now(),a=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,o=!1;if(a)try{await a(r)||(o=!0)}catch{o=!0}if(o)for(let r of e)s.push(t.skipResult(r));else{let n=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let s=performance.now();try{let n=await e.fn(r),a=Math.round(performance.now()-s);return t.successResult(e,n,a)}catch(n){let r=Math.round(performance.now()-s);return t.errorResult(e,n instanceof Error?n.message:String(n),r)}});for(let e of(await Promise.allSettled(n)))s.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let i=Math.round(performance.now()-n);return t.buildSummary(s,i)}e.s(["runAll",()=>r],14543)},95975,(e,r,t)=>{"use strict";function s(e){for(let r=0;r<e.length;r++){let t=e[r];if("function"!=typeof t)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof t}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureServerEntryExports",{enumerable:!0,get:function(){return s}})},22308,e=>{"use strict";var r=e.i(77879),t=e.i(14543);async function s(e,s,n,a,o,i){let u=o??(0,r.getRegisteredEvals)(),l={entries:e,stats:s,projectName:n,sessionId:a,source:"session",...i};return(0,t.runAll)(u,l,{skipResult:e=>({name:e.name,pass:!1,score:0,durationMs:0,skipped:!0}),successResult:(e,r,t)=>{var s;return{name:e.name,pass:r.pass,score:null==(s=r.score)?1:Math.max(0,Math.min(1,s)),message:r.message,metadata:r.metadata,durationMs:t}},errorResult:(e,r,t)=>({name:e.name,pass:!1,score:0,durationMs:t,error:r}),unexpectedResult:()=>({name:"?",pass:!1,score:0,durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,s=0,n=0,a=0;for(let r of e)r.skipped?a++:r.error?n++:r.pass?t++:s++;return{results:e,totalDurationMs:r,passCount:t,failCount:s,errorCount:n,skippedCount:a}}})}e.s(["runAllEvals",()=>s])},81929,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(77879),n=e.i(22308),a=e.i(54214),o=e.i(26287);e.i(14214);var i=e.i(88107),u=e.i(39864);async function l(e,r,c,f=!1){try{await (0,t.ensureEvalsLoaded)();let l=(0,s.getSessionScopedEvals)().find(e=>e.name===c);if(!l)return{ok:!1,error:`Eval "${c}" not found`};let d=await (0,i.hashSessionFile)(e,r);if(!f&&d){let t=(0,i.hashItemCode)(l.fn),s=await (0,u.getPerItemCacheWithHook)("evals",e,r,l.name,t,d);if(s)return{ok:!0,result:s.value}}let{entries:m,rawLines:p}=await (0,a.getCachedSessionLog)(e,r),v=(0,o.calculateLogStats)(m),g=(await (0,n.runAllEvals)(p,v,e,r,[l],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from eval"};if(d){let t=(0,i.hashItemCode)(l.fn);await (0,u.setPerItemCache)("evals",e,r,l.name,t,g,d)}return{ok:!0,result:g}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([l]),(0,r.registerServerReference)(l,"78c691fcaeb16c3493b6522cc94a6b6ba746723e53",null),e.s(["processSessionEval",()=>l])}];
3
+
4
+ //# sourceMappingURL=_7e07bbd9._.js.map
@@ -0,0 +1,4 @@
1
+ module.exports=[97953,(e,r,t)=>{"use strict";r.exports=e.r(42315).vendored["react-rsc"].ReactServerDOMTurbopackServer},45015,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerServerReference",{enumerable:!0,get:function(){return n.registerServerReference}});let n=e.r(97953)},14543,e=>{"use strict";async function r(e,r,t){let n=[],s=performance.now(),o=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,i=!1;if(o)try{await o(r)||(i=!0)}catch{i=!0}if(i)for(let r of e)n.push(t.skipResult(r));else{let s=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let n=performance.now();try{let s=await e.fn(r),o=Math.round(performance.now()-n);return t.successResult(e,s,o)}catch(s){let r=Math.round(performance.now()-n);return t.errorResult(e,s instanceof Error?s.message:String(s),r)}});for(let e of(await Promise.allSettled(s)))n.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let a=Math.round(performance.now()-s);return t.buildSummary(n,a)}e.s(["runAll",()=>r],14543)},95975,(e,r,t)=>{"use strict";function n(e){for(let r=0;r<e.length;r++){let t=e[r];if("function"!=typeof t)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof t}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureServerEntryExports",{enumerable:!0,get:function(){return n}})},7420,e=>{"use strict";var r=e.i(84234),t=e.i(14543);async function n(e,n,s,o,i,a){let u=i??(0,r.getRegisteredEnrichers)(),c={entries:e,stats:n,projectName:s,sessionId:o,source:"session",...a};return(0,t.runAll)(u,c,{skipResult:e=>({name:e.name,data:{},durationMs:0,skipped:!0}),successResult:(e,r,t)=>({name:e.name,data:r,durationMs:t}),errorResult:(e,r,t)=>({name:e.name,data:{},durationMs:t,error:r}),unexpectedResult:()=>({name:"?",data:{},durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,n=0;for(let r of e)r.skipped?n++:r.error&&t++;return{results:e,totalDurationMs:r,errorCount:t,skippedCount:n}}})}e.s(["runAllEnrichers",()=>n])},91560,e=>{"use strict";var r=e.i(45015),t=e.i(28753),n=e.i(84234),s=e.i(7420),o=e.i(54214),i=e.i(26287);e.i(14214);var a=e.i(88107),u=e.i(39864);async function c(e,r,l,f=!1){try{await (0,t.ensureEvalsLoaded)();let c=(0,n.getSessionScopedEnrichers)().find(e=>e.name===l);if(!c)return{ok:!1,error:`Enricher "${l}" not found`};let d=await (0,a.hashSessionFile)(e,r);if(!f&&d){let t=(0,a.hashItemCode)(c.fn),n=await (0,u.getPerItemCacheWithHook)("enrichments",e,r,c.name,t,d);if(n)return{ok:!0,result:n.value}}let{entries:m,rawLines:p}=await (0,o.getCachedSessionLog)(e,r),h=(0,i.calculateLogStats)(m),g=(await (0,s.runAllEnrichers)(p,h,e,r,[c],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from enricher"};if(d){let t=(0,a.hashItemCode)(c.fn);await (0,u.setPerItemCache)("enrichments",e,r,c.name,t,g,d)}return{ok:!0,result:g}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([c]),(0,r.registerServerReference)(c,"78780c9fe886ef2c486f1d1290698fc259323a87d6",null),e.s(["processSessionEnrichment",()=>c])}];
3
+
4
+ //# sourceMappingURL=_8f856fad._.js.map
@@ -0,0 +1,4 @@
1
+ module.exports=[97953,(e,r,t)=>{"use strict";r.exports=e.r(42315).vendored["react-rsc"].ReactServerDOMTurbopackServer},45015,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"registerServerReference",{enumerable:!0,get:function(){return n.registerServerReference}});let n=e.r(97953)},14543,e=>{"use strict";async function r(e,r,t){let n=[],s=performance.now(),a=globalThis.__CLAUDEYE_CONDITION_REGISTRY__??null,o=!1;if(a)try{await a(r)||(o=!0)}catch{o=!0}if(o)for(let r of e)n.push(t.skipResult(r));else{let s=e.map(async e=>{if(e.condition)try{if(!await e.condition(r))return t.skipResult(e)}catch(r){return t.errorResult(e,`Condition error: ${r instanceof Error?r.message:String(r)}`,0)}let n=performance.now();try{let s=await e.fn(r),a=Math.round(performance.now()-n);return t.successResult(e,s,a)}catch(s){let r=Math.round(performance.now()-n);return t.errorResult(e,s instanceof Error?s.message:String(s),r)}});for(let e of(await Promise.allSettled(s)))n.push("fulfilled"===e.status?e.value:t.unexpectedResult())}let i=Math.round(performance.now()-s);return t.buildSummary(n,i)}e.s(["runAll",()=>r],14543)},95975,(e,r,t)=>{"use strict";function n(e){for(let r=0;r<e.length;r++){let t=e[r];if("function"!=typeof t)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof t}.
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureServerEntryExports",{enumerable:!0,get:function(){return n}})},7420,e=>{"use strict";var r=e.i(84234),t=e.i(14543);async function n(e,n,s,a,o,i){let u=o??(0,r.getRegisteredEnrichers)(),c={entries:e,stats:n,projectName:s,sessionId:a,source:"session",...i};return(0,t.runAll)(u,c,{skipResult:e=>({name:e.name,data:{},durationMs:0,skipped:!0}),successResult:(e,r,t)=>({name:e.name,data:r,durationMs:t}),errorResult:(e,r,t)=>({name:e.name,data:{},durationMs:t,error:r}),unexpectedResult:()=>({name:"?",data:{},durationMs:0,error:"Unexpected rejection"}),buildSummary:(e,r)=>{let t=0,n=0;for(let r of e)r.skipped?n++:r.error&&t++;return{results:e,totalDurationMs:r,errorCount:t,skippedCount:n}}})}e.s(["runAllEnrichers",()=>n])},28488,e=>{"use strict";var r=e.i(45015),t=e.i(28753),n=e.i(84234),s=e.i(7420),a=e.i(54214),o=e.i(26287);e.i(14214);var i=e.i(88107),u=e.i(39864);async function c(e,r,l,f,d=!1,m,p){try{await (0,t.ensureEvalsLoaded)();let c=(0,n.getSubagentScopedEnrichers)(m).find(e=>e.name===f);if(!c)return{ok:!1,error:`Enricher "${f}" not found for subagent type "${m??"any"}"`};let h=`${r}/agent-${l}`,g=await (0,i.hashSubagentFile)(e,r,l);if(!d&&g){let r=(0,i.hashItemCode)(c.fn),t=await (0,u.getPerItemCacheWithHook)("enrichments",e,h,c.name,r,g);if(t)return{ok:!0,result:t.value}}let{entries:y,rawLines:E}=await (0,a.getCachedSessionLog)(e,r),v=(0,o.calculateLogStats)(y),R=(await (0,s.runAllEnrichers)(E,v,e,r,[c],{source:`agent-${l}`,subagentType:m,subagentDescription:p,parentSessionId:r})).results[0];if(!R)return{ok:!1,error:"No result returned from enricher"};if(g){let r=(0,i.hashItemCode)(c.fn);await (0,u.setPerItemCache)("enrichments",e,h,c.name,r,R,g)}return{ok:!0,result:R}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}(0,e.i(95975).ensureServerEntryExports)([c]),(0,r.registerServerReference)(c,"7f21ed919c57166092d70619cdbc93ff1c2c0a6296",null),e.s(["processSubagentEnrichment",()=>c])}];
3
+
4
+ //# sourceMappingURL=_b8adaa37._.js.map
@@ -1,7 +1,7 @@
1
- module.exports=[63407,4152,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(92509);let i="__CLAUDEYE_LOADING_EVALS__",r=!1;async function s(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function l(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,n.resolve)(e,"index.js");if(await s(t))return t}for(let e of[(0,n.resolve)(process.cwd(),"dist","index.js"),(0,n.resolve)(process.cwd(),"node_modules","claudeye","dist","index.js")])if(await s(e))return e;return null}let o=/(?:import\s+(?:[\s\S]*?\s+from\s+)?|export\s+(?:[\s\S]*?\s+from\s+))(['"])(\.\.?\/[^'"]+)\1/g,u=/require\s*\(\s*(['"])(\.\.?\/[^'"]+)\1\s*\)/g,c=".__claudeye_tmp__.mjs";async function f(e,t){let a=(0,n.resolve)(e,t);for(let e of[a,`${a}.js`,`${a}.mjs`,`${a}.ts`,(0,n.resolve)(a,"index.js")])if(await s(e))return e;return null}async function h(e,n){let i=e+".__claudeye_esm_shim__.mjs",r=`import _cjs from '${n}';
1
+ module.exports=[63407,4152,e=>{"use strict";var t=e.i(24868),a=e.i(14747),n=e.i(92509);let i="__CLAUDEYE_LOADING_EVALS__",r=!1;async function s(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function l(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,a.resolve)(e,"index.js");if(await s(t))return t}for(let e of[(0,a.resolve)(process.cwd(),"dist","index.js"),(0,a.resolve)(process.cwd(),"node_modules","claudeye","dist","index.js")])if(await s(e))return e;return null}let o=/(?:import\s+(?:[\s\S]*?\s+from\s+)?|export\s+(?:[\s\S]*?\s+from\s+))(['"])(\.\.?\/[^'"]+)\1/g,u=/require\s*\(\s*(['"])(\.\.?\/[^'"]+)\1\s*\)/g,c=".__claudeye_tmp__.mjs";async function f(e,t){let n=(0,a.resolve)(e,t);for(let e of[n,`${n}.js`,`${n}.mjs`,`${n}.ts`,(0,a.resolve)(n,"index.js")])if(await s(e))return e;return null}async function h(e,a){let i=e+".__claudeye_esm_shim__.mjs",r=`import _cjs from '${a}';
2
2
  export const createApp = _cjs.createApp;
3
3
  export const getQueueCondition = _cjs.getQueueCondition;
4
4
  export const clearQueueCondition = _cjs.clearQueueCondition;
5
- export default _cjs;`;return await (0,t.writeFile)(i,r,"utf-8"),{shimPath:i,shimUrl:(0,a.pathToFileURL)(i).href}}async function m(e,a,i){let r=[e],s=new Set,l=[],m=null;if(i&&a){let e=await h(i,a);l.push(e.shimPath),m=e.shimUrl}for(;r.length>0;){let e=r.shift();if(s.has(e))continue;s.add(e);let a=await (0,t.readFile)(e,"utf-8");m&&(a=a.replace(/from\s+(['"])claudeye\1/g,`from '${m}'`)),i&&(a=a.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${i.replace(/\\/g,"\\\\")}')`));let h=(0,n.dirname)(e),d=new Map;for(let e of[o,u]){let t,i=new RegExp(e.source,e.flags);for(;null!==(t=i.exec(a));){let e=t[2];if(d.has(e))continue;let a=await f(h,e);if(!a)continue;s.has(a)||r.includes(a)||r.push(a);let i=(0,n.relative)(h,a+c).split("\\").join("/");i.startsWith(".")||(i="./"+i),d.set(e,i)}}for(let e of[...d.keys()].sort((e,t)=>t.length-e.length)){let t=d.get(e),n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=(a=a.replace(RegExp(`'${n}'`,"g"),`'${t}'`)).replace(RegExp(`"${n}"`,"g"),`"${t}"`)}let p=e+c;await (0,t.writeFile)(p,a,"utf-8"),l.push(p)}return l}async function d(){if(r)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){r=!0;return}let n=globalThis;n[i]=!0;let s=[];try{let t=await l(),n=t?(0,a.pathToFileURL)(t).href:null;s=await m(e,n,t);let i=(0,a.pathToFileURL)(e+c).href;await import(i)}finally{for(let e of(n[i]=!1,s))try{await (0,t.unlink)(e)}catch{}}r=!0}e.s(["ensureEvalsLoaded",()=>d],63407);var p=e.i(46786);function g(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,n.join)((0,p.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>g],4152)},99893,637,82754,37573,e=>{"use strict";var t=e.i(54799),n=e.i(24868),a=e.i(14747),i=e.i(4152);let r=null;function s(){if(r)return r;let e=(0,a.resolve)((0,i.getClaudeProjectsPath)());return r=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let l=new Map;async function o(e,r){let s=(0,i.getClaudeProjectsPath)(),o=(0,a.join)(s,e,`${r}.jsonl`),u=Date.now(),c=l.get(o);if(c&&c.expiresAt>u)return c.hash;let f=await (0,n.stat)(o),h=`${f.mtimeMs}:${f.size}`,m=(0,t.createHash)("sha256").update(h).digest("hex");return l.set(o,{hash:m,expiresAt:u+5e3}),m}let u=new WeakMap;function c(e){let n=u.get(e);return n||(n=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),u.set(e,n)),n}e.s(["hashItemCode",()=>c,"hashProjectsPath",()=>s,"hashSessionFile",()=>o],637);var f=e.i(46786);async function h(e,t){let n=Array(e.length),a=0;async function i(){for(;a<e.length;){let t=a++;try{n[t]={status:"fulfilled",value:await e[t]()}}catch(e){n[t]={status:"rejected",reason:e}}}}let r=Array.from({length:Math.min(t,e.length)},()=>i());return await Promise.all(r),n}e.s(["batchAll",()=>h],82754);var m=e.i(38281);let d=(0,a.join)((0,f.homedir)(),".claudeye","cache");class p{basePath;constructor(e){this.basePath=e||d}keyToPath(e){return(0,a.join)(this.basePath,`${e}.json`)}async get(e){try{let t=this.keyToPath(e),a=await (0,n.readFile)(t,"utf-8");return JSON.parse(a)}catch{return null}}async set(e,t,i){try{let r=this.keyToPath(e);await (0,n.mkdir)((0,a.dirname)(r),{recursive:!0}),await (0,n.writeFile)(r,JSON.stringify({value:t,meta:i}),"utf-8")}catch(t){(0,m.logWarn)(`[cache] Write failed for ${e}:`,t instanceof Error?t.message:t)}}async invalidate(e){try{await (0,n.unlink)(this.keyToPath(e))}catch{}}async invalidateByPrefix(e){try{let t=e.split("/"),i=t.pop()||"",r=(0,a.join)(this.basePath,...t),s=(await (0,n.readdir)(r)).filter(e=>e.endsWith(".json")&&e.startsWith(i));await h(s.map(e=>()=>(0,n.unlink)((0,a.join)(r,e)).catch(()=>{})),50)}catch{}}async close(){}async clearAll(){try{await (0,n.rm)(this.basePath,{recursive:!0,force:!0})}catch{}}}let g="__CLAUDEYE_CACHE_BACKEND__";function y(){let e=globalThis;if(e[g])return e[g];let t=new p(process.env.CLAUDEYE_CACHE_PATH||void 0);return e[g]=t,t}function w(e,t,n,a){let i=s();return`${i}/${e}/${t}/${n}/item/${a}`}async function _(e,t,n,a,i,r){let s=y();try{let l=await s.get(w(e,t,n,a));if(!l)return null;let u=l.meta,c=r??await o(t,n);if(u.contentHash!==c||u.itemCodeHash!==i)return null;return{value:l.value,meta:u,cached:!0}}catch{return null}}async function $(e,t,n,a,i,r,s){let l=y();try{let u=s??await o(t,n);await l.set(w(e,t,n,a),r,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:i})}catch(i){(0,m.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${n}/${a}:`,i instanceof Error?i.message:i)}}async function C(t,n,a,i,r,s){let l=await _(t,n,a,i,r,s);if(!l)return null;if("evals"!==t&&"enrichments"!==t)return l;let{getCacheInvalidationHook:o}=await e.A(76590),u=o();if(!u)return l;let c={itemName:i,itemKind:t,cachedAt:l.meta.cachedAt,contentHash:l.meta.contentHash,itemCodeHash:l.meta.itemCodeHash,projectName:n,sessionId:a,cachedValue:l.value};try{if(await u(c))return await j(t,n,a,i),null}catch{}return l}async function v(e,t,n,a){let i=y();try{let r=await i.get(w(e,t,n,a));if(!r)return null;return r.meta}catch{return null}}async function j(e,t,n,a){let i=y();try{await i.invalidate(w(e,t,n,a))}catch{}}async function x(e,t,n,a){let i=y();try{let r=w("conditions",e,t,"__queueCondition__"),s=await i.get(r);if(!s)return null;let l=s.meta;if(l.contentHash!==a||l.conditionCodeHash!==n)return null;return{result:s.value.result,cached:!0}}catch{return null}}async function A(e,t,n,a,i){let r=y();try{let s=w("conditions",e,t,"__queueCondition__");await r.set(s,{result:a},{cachedAt:new Date().toISOString(),contentHash:i,conditionCodeHash:n})}catch(n){(0,m.logWarn)(`[cache] setConditionCache failed for ${e}/${t}:`,n instanceof Error?n.message:n)}}e.s(["getConditionCache",()=>x,"getPerItemCacheMeta",()=>v,"getPerItemCacheWithHook",()=>C,"setConditionCache",()=>A,"setPerItemCache",()=>$],37573),e.s([],99893)},43955,83620,64774,34741,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(4152);async function i(e,a,i,r){let s=`agent-${r}.jsonl`;for(let r of[(0,n.join)(e,a,s),(0,n.join)(e,a,i,s),(0,n.join)(e,a,i,"subagents",s)])if(!(0,n.relative)(e,r).startsWith(".."))try{return await (0,t.access)(r),r}catch(e){if("ENOENT"!==e.code)continue}return null}function r(e,t,n){let a=new Map,i=new Map,r=n?.maxSize;return async(...n)=>{let s=JSON.stringify(n),l=a.get(s);if(l&&Date.now()<l.expiry)return r&&(a.delete(s),a.set(s,l)),l.data;let o=i.get(s);if(o)return o;let u=e(...n).then(e=>{if(i.delete(s),r&&a.size>=r){let e=a.keys().next().value;a.delete(e)}return a.set(s,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw i.delete(s),e});return i.set(s,u),u}}function s(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function l(e){if(e<1e3)return`${e}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;let n=Math.floor(t/60);if(n>=60){let e=Math.floor(n/60);return`${e}h ${n%60}m`}let a=(t%60).toFixed(0);return`${n}m ${a}s`}function o(e){let t=s(e),n=e.getMilliseconds().toString().padStart(3,"0");return`${t}.${n}`}function u(e,t,n,a){return{_source:a,uuid:e.uuid||"",parentUuid:e.parentUuid??null,timestamp:t,timestampMs:n.getTime(),timestampFormatted:o(n)}}async function c(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),a=new Map,i=[],r=[],s=new Set,c=!1;for(let e=0;e<n.length;e++){let l;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let o=n[e];try{l=JSON.parse(o)}catch{continue}let f={...l,_source:t};r.push(f);let h=l.type,m=l.timestamp;if(!m)continue;let d=new Date(m),p=d.getTime();if("user"===h){let e=l.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=l.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&s.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:i,images:r}=function(e){let t=e.content;if("string"==typeof t)return{text:t};if(Array.isArray(t)){let e=t.filter(e=>"text"===e.type).map(e=>e.text),n=t.filter(e=>"image"===e.type).map(e=>{let t=e.source;return{base64:t.data,mediaType:t.media_type}}).filter(e=>e.base64&&e.mediaType);return{text:e.length>0?e.join("\n"):void 0,images:n.length>0?n:void 0}}return{}}(e);a.set(t,{timestamp:m,timestampMs:p,content:i,images:r,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";i.push({type:"user",...u(l,m,d,t),message:{role:"user",content:n}});continue}if("assistant"===h){let e=l.message,n=[];if(Array.isArray(e?.content)&&(n=e.content.filter(e=>["text","tool_use","thinking"].includes(e.type)).map(e=>{if("text"===e.type)return{type:"text",text:e.text};if("tool_use"===e.type){let t=e.input;return{type:"tool_use",id:e.id,name:e.name,input:e.input??{},..."Task"===e.name&&t?{subagentType:t.subagent_type,subagentDescription:t.description}:{}}}return{type:"thinking",thinking:e.thinking,signature:e.signature}})),0===n.length)continue;i.push({type:"assistant",...u(l,m,d,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===h||"progress"===h||"system"===h){i.push({type:h,...u(l,m,d,t),raw:{...l}});continue}if("queue-operation"===h){let e=c?"Session Resumed":"Session Started";c=!0,i.push({type:"queue-operation",...u(l,m,d,t),label:e});continue}}let f=0;for(let e of i)if("assistant"===e.type)for(let t of(++f%200==0&&await new Promise(e=>setImmediate(e)),e.message.content)){if("tool_use"!==t.type)continue;let n=a.get(t.id);if(!n)continue;let i=new Date(n.timestamp),r=n.timestampMs-e.timestampMs;t.result={timestamp:n.timestamp,timestampFormatted:o(i),content:n.content,images:n.images,durationMs:r,durationFormatted:l(r)},n.agentId&&(t.subagentId=n.agentId)}return i.length>500&&await new Promise(e=>setImmediate(e)),i.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:i,rawLines:r,subagentIds:Array.from(s)}}async function f(e,r){let s=(0,a.getClaudeProjectsPath)(),l=(0,n.join)(s,e,`${r}.jsonl`),o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f,subagentIds:h}=await c(o,"session");if(0===h.length)return{entries:u,rawLines:f,subagentIds:[]};let m=await Promise.allSettled(h.map(async n=>{let a=`agent-${n}`,l=await i(s,e,r,n);if(!l)return null;let o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f}=await c(o,a);return{entries:u,rawLines:f}})),d=[...u],p=[...f];for(let e of m)"fulfilled"===e.status&&e.value&&(d.push(...e.value.entries),p.push(...e.value.rawLines));return d.length>500&&await new Promise(e=>setImmediate(e)),d.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:d,rawLines:p,subagentIds:h}}e.s(["runtimeCache",()=>r],83620),e.s(["formatDate",()=>s],64774);let h=r((e,t)=>f(e,t),60,{maxSize:50});function m(e){let t=0,n=0,a=0,i=0,r=0,s=new Set;for(let l of e)if("user"===l.type&&t++,"queue-operation"===l.type&&r++,"assistant"===l.type){for(let e of(n++,l.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?i++:a++);l.message.model&&s.add(l.message.model)}let o="";return e.length>=2&&(o=l(e[e.length-1].timestampMs-e[0].timestampMs)),{turnCount:r,userCount:t,assistantCount:n,toolCallCount:a,subagentCount:i,duration:o,models:Array.from(s)}}e.s(["getCachedSessionLog",0,h],43955),e.s(["calculateLogStats",()=>m],34741)}];
5
+ export default _cjs;`;return await (0,t.writeFile)(i,r,"utf-8"),{shimPath:i,shimUrl:(0,n.pathToFileURL)(i).href}}async function m(e,n,i){let r=[e],s=new Set,l=[],m=null;if(i&&n){let e=await h(i,n);l.push(e.shimPath),m=e.shimUrl}for(;r.length>0;){let e=r.shift();if(s.has(e))continue;s.add(e);let n=await (0,t.readFile)(e,"utf-8");m&&(n=n.replace(/from\s+(['"])claudeye\1/g,`from '${m}'`)),i&&(n=n.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${i.replace(/\\/g,"\\\\")}')`));let h=(0,a.dirname)(e),d=new Map;for(let e of[o,u]){let t,i=new RegExp(e.source,e.flags);for(;null!==(t=i.exec(n));){let e=t[2];if(d.has(e))continue;let n=await f(h,e);if(!n)continue;s.has(n)||r.includes(n)||r.push(n);let i=(0,a.relative)(h,n+c).split("\\").join("/");i.startsWith(".")||(i="./"+i),d.set(e,i)}}for(let e of[...d.keys()].sort((e,t)=>t.length-e.length)){let t=d.get(e),a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=(n=n.replace(RegExp(`'${a}'`,"g"),`'${t}'`)).replace(RegExp(`"${a}"`,"g"),`"${t}"`)}let p=e+c;await (0,t.writeFile)(p,n,"utf-8"),l.push(p)}return l}async function d(){if(r)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){r=!0;return}let a=globalThis;a[i]=!0;let s=[];try{let t=await l(),a=t?(0,n.pathToFileURL)(t).href:null;s=await m(e,a,t);let i=(0,n.pathToFileURL)(e+c).href;await import(i)}finally{for(let e of(a[i]=!1,s))try{await (0,t.unlink)(e)}catch{}}r=!0}e.s(["ensureEvalsLoaded",()=>d],63407);var p=e.i(46786);function g(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,a.join)((0,p.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>g],4152)},99893,637,82754,37573,e=>{"use strict";var t=e.i(54799),a=e.i(24868),n=e.i(14747),i=e.i(4152);let r=null;function s(){if(r)return r;let e=(0,n.resolve)((0,i.getClaudeProjectsPath)());return r=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let l=new Map;async function o(e,r){let s=(0,i.getClaudeProjectsPath)(),o=(0,n.join)(s,e,`${r}.jsonl`),u=Date.now(),c=l.get(o);if(c&&c.expiresAt>u)return c.hash;let f=await (0,a.stat)(o),h=`${f.mtimeMs}:${f.size}`,m=(0,t.createHash)("sha256").update(h).digest("hex");return l.set(o,{hash:m,expiresAt:u+5e3}),m}async function u(e,r,s){let l=(0,i.getClaudeProjectsPath)(),o=`agent-${s}.jsonl`,u=[(0,n.join)(l,e,o),(0,n.join)(l,e,r,o),(0,n.join)(l,e,r,"subagents",o)];for(let e of(await Promise.allSettled(u.map(e=>(0,a.stat)(e)))))if("fulfilled"===e.status){let a=e.value,n=`${a.mtimeMs}:${a.size}`;return(0,t.createHash)("sha256").update(n).digest("hex")}return""}let c=new WeakMap;function f(e){let a=c.get(e);return a||(a=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),c.set(e,a)),a}e.s(["hashItemCode",()=>f,"hashProjectsPath",()=>s,"hashSessionFile",()=>o,"hashSubagentFile",()=>u],637);var h=e.i(46786);async function m(e,t){let a=Array(e.length),n=0;async function i(){for(;n<e.length;){let t=n++;try{a[t]={status:"fulfilled",value:await e[t]()}}catch(e){a[t]={status:"rejected",reason:e}}}}let r=Array.from({length:Math.min(t,e.length)},()=>i());return await Promise.all(r),a}e.s(["batchAll",()=>m],82754);var d=e.i(38281);let p=(0,n.join)((0,h.homedir)(),".claudeye","cache");class g{basePath;constructor(e){this.basePath=e||p}keyToPath(e){return(0,n.join)(this.basePath,`${e}.json`)}async get(e){try{let t=this.keyToPath(e),n=await (0,a.readFile)(t,"utf-8");return JSON.parse(n)}catch{return null}}async set(e,t,i){try{let r=this.keyToPath(e);await (0,a.mkdir)((0,n.dirname)(r),{recursive:!0}),await (0,a.writeFile)(r,JSON.stringify({value:t,meta:i}),"utf-8")}catch(t){(0,d.logWarn)(`[cache] Write failed for ${e}:`,t instanceof Error?t.message:t)}}async invalidate(e){try{await (0,a.unlink)(this.keyToPath(e))}catch{}}async invalidateByPrefix(e){try{let t=e.split("/"),i=t.pop()||"",r=(0,n.join)(this.basePath,...t),s=(await (0,a.readdir)(r)).filter(e=>e.endsWith(".json")&&e.startsWith(i));await m(s.map(e=>()=>(0,a.unlink)((0,n.join)(r,e)).catch(()=>{})),50)}catch{}}async close(){}async clearAll(){try{await (0,a.rm)(this.basePath,{recursive:!0,force:!0})}catch{}}}let y="__CLAUDEYE_CACHE_BACKEND__";function w(){let e=globalThis;if(e[y])return e[y];let t=new g(process.env.CLAUDEYE_CACHE_PATH||void 0);return e[y]=t,t}function _(e,t,a,n){let i=s();return`${i}/${e}/${t}/${a}/item/${n}`}async function $(e,t,a,n,i,r){let s=w();try{let l=await s.get(_(e,t,a,n));if(!l)return null;let u=l.meta,c=r??await o(t,a);if(u.contentHash!==c||u.itemCodeHash!==i)return null;return{value:l.value,meta:u,cached:!0}}catch{return null}}async function j(e,t,a,n,i,r,s){let l=w();try{let u=s??await o(t,a);await l.set(_(e,t,a,n),r,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:i})}catch(i){(0,d.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${a}/${n}:`,i instanceof Error?i.message:i)}}async function C(t,a,n,i,r,s){let l=await $(t,a,n,i,r,s);if(!l)return null;if("evals"!==t&&"enrichments"!==t)return l;let{getCacheInvalidationHook:o}=await e.A(76590),u=o();if(!u)return l;let c={itemName:i,itemKind:t,cachedAt:l.meta.cachedAt,contentHash:l.meta.contentHash,itemCodeHash:l.meta.itemCodeHash,projectName:a,sessionId:n,cachedValue:l.value};try{if(await u(c))return await P(t,a,n,i),null}catch{}return l}async function v(e,t,a,n){let i=w();try{let r=await i.get(_(e,t,a,n));if(!r)return null;return r.meta}catch{return null}}async function P(e,t,a,n){let i=w();try{await i.invalidate(_(e,t,a,n))}catch{}}async function x(e,t,a,n){let i=w();try{let r=_("conditions",e,t,"__queueCondition__"),s=await i.get(r);if(!s)return null;let l=s.meta;if(l.contentHash!==n||l.conditionCodeHash!==a)return null;return{result:s.value.result,cached:!0}}catch{return null}}async function A(e,t,a,n,i){let r=w();try{let s=_("conditions",e,t,"__queueCondition__");await r.set(s,{result:n},{cachedAt:new Date().toISOString(),contentHash:i,conditionCodeHash:a})}catch(a){(0,d.logWarn)(`[cache] setConditionCache failed for ${e}/${t}:`,a instanceof Error?a.message:a)}}e.s(["getConditionCache",()=>x,"getPerItemCacheMeta",()=>v,"getPerItemCacheWithHook",()=>C,"setConditionCache",()=>A,"setPerItemCache",()=>j],37573),e.s([],99893)},43955,83620,64774,34741,e=>{"use strict";var t=e.i(24868),a=e.i(14747),n=e.i(4152);async function i(e,n,i,r){let s=`agent-${r}.jsonl`;for(let r of[(0,a.join)(e,n,s),(0,a.join)(e,n,i,s),(0,a.join)(e,n,i,"subagents",s)])if(!(0,a.relative)(e,r).startsWith(".."))try{return await (0,t.access)(r),r}catch(e){if("ENOENT"!==e.code)continue}return null}function r(e,t,a){let n=new Map,i=new Map,r=a?.maxSize;return async(...a)=>{let s=JSON.stringify(a),l=n.get(s);if(l&&Date.now()<l.expiry)return r&&(n.delete(s),n.set(s,l)),l.data;let o=i.get(s);if(o)return o;let u=e(...a).then(e=>{if(i.delete(s),r&&n.size>=r){let e=n.keys().next().value;n.delete(e)}return n.set(s,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw i.delete(s),e});return i.set(s,u),u}}function s(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function l(e){if(e<1e3)return`${e}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;let a=Math.floor(t/60);if(a>=60){let e=Math.floor(a/60);return`${e}h ${a%60}m`}let n=(t%60).toFixed(0);return`${a}m ${n}s`}function o(e){let t=s(e),a=e.getMilliseconds().toString().padStart(3,"0");return`${t}.${a}`}function u(e,t,a,n){return{_source:n,uuid:e.uuid||"",parentUuid:e.parentUuid??null,timestamp:t,timestampMs:a.getTime(),timestampFormatted:o(a)}}async function c(e,t){let a=e.split("\n").filter(e=>""!==e.trim()),n=new Map,i=[],r=[],s=new Set,c=!1;for(let e=0;e<a.length;e++){let l;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let o=a[e];try{l=JSON.parse(o)}catch{continue}let f={...l,_source:t};r.push(f);let h=l.type,m=l.timestamp;if(!m)continue;let d=new Date(m),p=d.getTime();if("user"===h){let e=l.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=l.toolUseResult,a="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(a&&/^[a-f0-9]+$/.test(a)&&s.add(a),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:i,images:r}=function(e){let t=e.content;if("string"==typeof t)return{text:t};if(Array.isArray(t)){let e=t.filter(e=>"text"===e.type).map(e=>e.text),a=t.filter(e=>"image"===e.type).map(e=>{let t=e.source;return{base64:t.data,mediaType:t.media_type}}).filter(e=>e.base64&&e.mediaType);return{text:e.length>0?e.join("\n"):void 0,images:a.length>0?a:void 0}}return{}}(e);n.set(t,{timestamp:m,timestampMs:p,content:i,images:r,agentId:a})}continue}}let a="string"==typeof e?.content?e.content:"";i.push({type:"user",...u(l,m,d,t),message:{role:"user",content:a}});continue}if("assistant"===h){let e=l.message,a=[];if(Array.isArray(e?.content)&&(a=e.content.filter(e=>["text","tool_use","thinking"].includes(e.type)).map(e=>{if("text"===e.type)return{type:"text",text:e.text};if("tool_use"===e.type){let t=e.input;return{type:"tool_use",id:e.id,name:e.name,input:e.input??{},..."Task"===e.name&&t?{subagentType:t.subagent_type,subagentDescription:t.description}:{}}}return{type:"thinking",thinking:e.thinking,signature:e.signature}})),0===a.length)continue;i.push({type:"assistant",...u(l,m,d,t),message:{role:"assistant",content:a,model:e?.model}});continue}if("file-history-snapshot"===h||"progress"===h||"system"===h){i.push({type:h,...u(l,m,d,t),raw:{...l}});continue}if("queue-operation"===h){let e=c?"Session Resumed":"Session Started";c=!0,i.push({type:"queue-operation",...u(l,m,d,t),label:e});continue}}let f=0;for(let e of i)if("assistant"===e.type)for(let t of(++f%200==0&&await new Promise(e=>setImmediate(e)),e.message.content)){if("tool_use"!==t.type)continue;let a=n.get(t.id);if(!a)continue;let i=new Date(a.timestamp),r=a.timestampMs-e.timestampMs;t.result={timestamp:a.timestamp,timestampFormatted:o(i),content:a.content,images:a.images,durationMs:r,durationFormatted:l(r)},a.agentId&&(t.subagentId=a.agentId)}return i.length>500&&await new Promise(e=>setImmediate(e)),i.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:i,rawLines:r,subagentIds:Array.from(s)}}async function f(e,r){let s=(0,n.getClaudeProjectsPath)(),l=(0,a.join)(s,e,`${r}.jsonl`),o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f,subagentIds:h}=await c(o,"session");if(0===h.length)return{entries:u,rawLines:f,subagentIds:[]};let m=await Promise.allSettled(h.map(async a=>{let n=`agent-${a}`,l=await i(s,e,r,a);if(!l)return null;let o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f}=await c(o,n);return{entries:u,rawLines:f}})),d=[...u],p=[...f];for(let e of m)"fulfilled"===e.status&&e.value&&(d.push(...e.value.entries),p.push(...e.value.rawLines));return d.length>500&&await new Promise(e=>setImmediate(e)),d.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:d,rawLines:p,subagentIds:h}}e.s(["runtimeCache",()=>r],83620),e.s(["formatDate",()=>s],64774);let h=r((e,t)=>f(e,t),60,{maxSize:50});function m(e){let t=0,a=0,n=0,i=0,r=0,s=new Set;for(let l of e)if("user"===l.type&&t++,"queue-operation"===l.type&&r++,"assistant"===l.type){for(let e of(a++,l.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?i++:n++);l.message.model&&s.add(l.message.model)}let o="";return e.length>=2&&(o=l(e[e.length-1].timestampMs-e[0].timestampMs)),{turnCount:r,userCount:t,assistantCount:a,toolCallCount:n,subagentCount:i,duration:o,models:Array.from(s)}}e.s(["getCachedSessionLog",0,h],43955),e.s(["calculateLogStats",()=>m],34741)}];
6
6
 
7
7
  //# sourceMappingURL=lib_6cff0ca5._.js.map
@@ -1,7 +1,7 @@
1
- module.exports=[63407,4152,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(92509);let i="__CLAUDEYE_LOADING_EVALS__",r=!1;async function s(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function l(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,n.resolve)(e,"index.js");if(await s(t))return t}for(let e of[(0,n.resolve)(process.cwd(),"dist","index.js"),(0,n.resolve)(process.cwd(),"node_modules","claudeye","dist","index.js")])if(await s(e))return e;return null}let o=/(?:import\s+(?:[\s\S]*?\s+from\s+)?|export\s+(?:[\s\S]*?\s+from\s+))(['"])(\.\.?\/[^'"]+)\1/g,u=/require\s*\(\s*(['"])(\.\.?\/[^'"]+)\1\s*\)/g,c=".__claudeye_tmp__.mjs";async function f(e,t){let a=(0,n.resolve)(e,t);for(let e of[a,`${a}.js`,`${a}.mjs`,`${a}.ts`,(0,n.resolve)(a,"index.js")])if(await s(e))return e;return null}async function h(e,n){let i=e+".__claudeye_esm_shim__.mjs",r=`import _cjs from '${n}';
1
+ module.exports=[63407,4152,e=>{"use strict";var t=e.i(24868),a=e.i(14747),n=e.i(92509);let i="__CLAUDEYE_LOADING_EVALS__",r=!1;async function s(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function l(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,a.resolve)(e,"index.js");if(await s(t))return t}for(let e of[(0,a.resolve)(process.cwd(),"dist","index.js"),(0,a.resolve)(process.cwd(),"node_modules","claudeye","dist","index.js")])if(await s(e))return e;return null}let o=/(?:import\s+(?:[\s\S]*?\s+from\s+)?|export\s+(?:[\s\S]*?\s+from\s+))(['"])(\.\.?\/[^'"]+)\1/g,u=/require\s*\(\s*(['"])(\.\.?\/[^'"]+)\1\s*\)/g,c=".__claudeye_tmp__.mjs";async function f(e,t){let n=(0,a.resolve)(e,t);for(let e of[n,`${n}.js`,`${n}.mjs`,`${n}.ts`,(0,a.resolve)(n,"index.js")])if(await s(e))return e;return null}async function h(e,a){let i=e+".__claudeye_esm_shim__.mjs",r=`import _cjs from '${a}';
2
2
  export const createApp = _cjs.createApp;
3
3
  export const getQueueCondition = _cjs.getQueueCondition;
4
4
  export const clearQueueCondition = _cjs.clearQueueCondition;
5
- export default _cjs;`;return await (0,t.writeFile)(i,r,"utf-8"),{shimPath:i,shimUrl:(0,a.pathToFileURL)(i).href}}async function m(e,a,i){let r=[e],s=new Set,l=[],m=null;if(i&&a){let e=await h(i,a);l.push(e.shimPath),m=e.shimUrl}for(;r.length>0;){let e=r.shift();if(s.has(e))continue;s.add(e);let a=await (0,t.readFile)(e,"utf-8");m&&(a=a.replace(/from\s+(['"])claudeye\1/g,`from '${m}'`)),i&&(a=a.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${i.replace(/\\/g,"\\\\")}')`));let h=(0,n.dirname)(e),d=new Map;for(let e of[o,u]){let t,i=new RegExp(e.source,e.flags);for(;null!==(t=i.exec(a));){let e=t[2];if(d.has(e))continue;let a=await f(h,e);if(!a)continue;s.has(a)||r.includes(a)||r.push(a);let i=(0,n.relative)(h,a+c).split("\\").join("/");i.startsWith(".")||(i="./"+i),d.set(e,i)}}for(let e of[...d.keys()].sort((e,t)=>t.length-e.length)){let t=d.get(e),n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=(a=a.replace(RegExp(`'${n}'`,"g"),`'${t}'`)).replace(RegExp(`"${n}"`,"g"),`"${t}"`)}let p=e+c;await (0,t.writeFile)(p,a,"utf-8"),l.push(p)}return l}async function d(){if(r)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){r=!0;return}let n=globalThis;n[i]=!0;let s=[];try{let t=await l(),n=t?(0,a.pathToFileURL)(t).href:null;s=await m(e,n,t);let i=(0,a.pathToFileURL)(e+c).href;await import(i)}finally{for(let e of(n[i]=!1,s))try{await (0,t.unlink)(e)}catch{}}r=!0}e.s(["ensureEvalsLoaded",()=>d],63407);var p=e.i(46786);function g(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,n.join)((0,p.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>g],4152)},43955,83620,64774,34741,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(4152);async function i(e,a,i,r){let s=`agent-${r}.jsonl`;for(let r of[(0,n.join)(e,a,s),(0,n.join)(e,a,i,s),(0,n.join)(e,a,i,"subagents",s)])if(!(0,n.relative)(e,r).startsWith(".."))try{return await (0,t.access)(r),r}catch(e){if("ENOENT"!==e.code)continue}return null}function r(e,t,n){let a=new Map,i=new Map,r=n?.maxSize;return async(...n)=>{let s=JSON.stringify(n),l=a.get(s);if(l&&Date.now()<l.expiry)return r&&(a.delete(s),a.set(s,l)),l.data;let o=i.get(s);if(o)return o;let u=e(...n).then(e=>{if(i.delete(s),r&&a.size>=r){let e=a.keys().next().value;a.delete(e)}return a.set(s,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw i.delete(s),e});return i.set(s,u),u}}function s(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function l(e){if(e<1e3)return`${e}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;let n=Math.floor(t/60);if(n>=60){let e=Math.floor(n/60);return`${e}h ${n%60}m`}let a=(t%60).toFixed(0);return`${n}m ${a}s`}function o(e){let t=s(e),n=e.getMilliseconds().toString().padStart(3,"0");return`${t}.${n}`}function u(e,t,n,a){return{_source:a,uuid:e.uuid||"",parentUuid:e.parentUuid??null,timestamp:t,timestampMs:n.getTime(),timestampFormatted:o(n)}}async function c(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),a=new Map,i=[],r=[],s=new Set,c=!1;for(let e=0;e<n.length;e++){let l;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let o=n[e];try{l=JSON.parse(o)}catch{continue}let f={...l,_source:t};r.push(f);let h=l.type,m=l.timestamp;if(!m)continue;let d=new Date(m),p=d.getTime();if("user"===h){let e=l.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=l.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&s.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:i,images:r}=function(e){let t=e.content;if("string"==typeof t)return{text:t};if(Array.isArray(t)){let e=t.filter(e=>"text"===e.type).map(e=>e.text),n=t.filter(e=>"image"===e.type).map(e=>{let t=e.source;return{base64:t.data,mediaType:t.media_type}}).filter(e=>e.base64&&e.mediaType);return{text:e.length>0?e.join("\n"):void 0,images:n.length>0?n:void 0}}return{}}(e);a.set(t,{timestamp:m,timestampMs:p,content:i,images:r,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";i.push({type:"user",...u(l,m,d,t),message:{role:"user",content:n}});continue}if("assistant"===h){let e=l.message,n=[];if(Array.isArray(e?.content)&&(n=e.content.filter(e=>["text","tool_use","thinking"].includes(e.type)).map(e=>{if("text"===e.type)return{type:"text",text:e.text};if("tool_use"===e.type){let t=e.input;return{type:"tool_use",id:e.id,name:e.name,input:e.input??{},..."Task"===e.name&&t?{subagentType:t.subagent_type,subagentDescription:t.description}:{}}}return{type:"thinking",thinking:e.thinking,signature:e.signature}})),0===n.length)continue;i.push({type:"assistant",...u(l,m,d,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===h||"progress"===h||"system"===h){i.push({type:h,...u(l,m,d,t),raw:{...l}});continue}if("queue-operation"===h){let e=c?"Session Resumed":"Session Started";c=!0,i.push({type:"queue-operation",...u(l,m,d,t),label:e});continue}}let f=0;for(let e of i)if("assistant"===e.type)for(let t of(++f%200==0&&await new Promise(e=>setImmediate(e)),e.message.content)){if("tool_use"!==t.type)continue;let n=a.get(t.id);if(!n)continue;let i=new Date(n.timestamp),r=n.timestampMs-e.timestampMs;t.result={timestamp:n.timestamp,timestampFormatted:o(i),content:n.content,images:n.images,durationMs:r,durationFormatted:l(r)},n.agentId&&(t.subagentId=n.agentId)}return i.length>500&&await new Promise(e=>setImmediate(e)),i.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:i,rawLines:r,subagentIds:Array.from(s)}}async function f(e,r){let s=(0,a.getClaudeProjectsPath)(),l=(0,n.join)(s,e,`${r}.jsonl`),o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f,subagentIds:h}=await c(o,"session");if(0===h.length)return{entries:u,rawLines:f,subagentIds:[]};let m=await Promise.allSettled(h.map(async n=>{let a=`agent-${n}`,l=await i(s,e,r,n);if(!l)return null;let o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f}=await c(o,a);return{entries:u,rawLines:f}})),d=[...u],p=[...f];for(let e of m)"fulfilled"===e.status&&e.value&&(d.push(...e.value.entries),p.push(...e.value.rawLines));return d.length>500&&await new Promise(e=>setImmediate(e)),d.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:d,rawLines:p,subagentIds:h}}e.s(["runtimeCache",()=>r],83620),e.s(["formatDate",()=>s],64774);let h=r((e,t)=>f(e,t),60,{maxSize:50});function m(e){let t=0,n=0,a=0,i=0,r=0,s=new Set;for(let l of e)if("user"===l.type&&t++,"queue-operation"===l.type&&r++,"assistant"===l.type){for(let e of(n++,l.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?i++:a++);l.message.model&&s.add(l.message.model)}let o="";return e.length>=2&&(o=l(e[e.length-1].timestampMs-e[0].timestampMs)),{turnCount:r,userCount:t,assistantCount:n,toolCallCount:a,subagentCount:i,duration:o,models:Array.from(s)}}e.s(["getCachedSessionLog",0,h],43955),e.s(["calculateLogStats",()=>m],34741)},99893,637,82754,37573,e=>{"use strict";var t=e.i(54799),n=e.i(24868),a=e.i(14747),i=e.i(4152);let r=null;function s(){if(r)return r;let e=(0,a.resolve)((0,i.getClaudeProjectsPath)());return r=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let l=new Map;async function o(e,r){let s=(0,i.getClaudeProjectsPath)(),o=(0,a.join)(s,e,`${r}.jsonl`),u=Date.now(),c=l.get(o);if(c&&c.expiresAt>u)return c.hash;let f=await (0,n.stat)(o),h=`${f.mtimeMs}:${f.size}`,m=(0,t.createHash)("sha256").update(h).digest("hex");return l.set(o,{hash:m,expiresAt:u+5e3}),m}let u=new WeakMap;function c(e){let n=u.get(e);return n||(n=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),u.set(e,n)),n}e.s(["hashItemCode",()=>c,"hashProjectsPath",()=>s,"hashSessionFile",()=>o],637);var f=e.i(46786);async function h(e,t){let n=Array(e.length),a=0;async function i(){for(;a<e.length;){let t=a++;try{n[t]={status:"fulfilled",value:await e[t]()}}catch(e){n[t]={status:"rejected",reason:e}}}}let r=Array.from({length:Math.min(t,e.length)},()=>i());return await Promise.all(r),n}e.s(["batchAll",()=>h],82754);var m=e.i(38281);let d=(0,a.join)((0,f.homedir)(),".claudeye","cache");class p{basePath;constructor(e){this.basePath=e||d}keyToPath(e){return(0,a.join)(this.basePath,`${e}.json`)}async get(e){try{let t=this.keyToPath(e),a=await (0,n.readFile)(t,"utf-8");return JSON.parse(a)}catch{return null}}async set(e,t,i){try{let r=this.keyToPath(e);await (0,n.mkdir)((0,a.dirname)(r),{recursive:!0}),await (0,n.writeFile)(r,JSON.stringify({value:t,meta:i}),"utf-8")}catch(t){(0,m.logWarn)(`[cache] Write failed for ${e}:`,t instanceof Error?t.message:t)}}async invalidate(e){try{await (0,n.unlink)(this.keyToPath(e))}catch{}}async invalidateByPrefix(e){try{let t=e.split("/"),i=t.pop()||"",r=(0,a.join)(this.basePath,...t),s=(await (0,n.readdir)(r)).filter(e=>e.endsWith(".json")&&e.startsWith(i));await h(s.map(e=>()=>(0,n.unlink)((0,a.join)(r,e)).catch(()=>{})),50)}catch{}}async close(){}async clearAll(){try{await (0,n.rm)(this.basePath,{recursive:!0,force:!0})}catch{}}}let g="__CLAUDEYE_CACHE_BACKEND__";function y(){let e=globalThis;if(e[g])return e[g];let t=new p(process.env.CLAUDEYE_CACHE_PATH||void 0);return e[g]=t,t}function w(e,t,n,a){let i=s();return`${i}/${e}/${t}/${n}/item/${a}`}async function _(e,t,n,a,i,r){let s=y();try{let l=await s.get(w(e,t,n,a));if(!l)return null;let u=l.meta,c=r??await o(t,n);if(u.contentHash!==c||u.itemCodeHash!==i)return null;return{value:l.value,meta:u,cached:!0}}catch{return null}}async function $(e,t,n,a,i,r,s){let l=y();try{let u=s??await o(t,n);await l.set(w(e,t,n,a),r,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:i})}catch(i){(0,m.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${n}/${a}:`,i instanceof Error?i.message:i)}}async function C(t,n,a,i,r,s){let l=await _(t,n,a,i,r,s);if(!l)return null;if("evals"!==t&&"enrichments"!==t)return l;let{getCacheInvalidationHook:o}=await e.A(76590),u=o();if(!u)return l;let c={itemName:i,itemKind:t,cachedAt:l.meta.cachedAt,contentHash:l.meta.contentHash,itemCodeHash:l.meta.itemCodeHash,projectName:n,sessionId:a,cachedValue:l.value};try{if(await u(c))return await j(t,n,a,i),null}catch{}return l}async function v(e,t,n,a){let i=y();try{let r=await i.get(w(e,t,n,a));if(!r)return null;return r.meta}catch{return null}}async function j(e,t,n,a){let i=y();try{await i.invalidate(w(e,t,n,a))}catch{}}async function x(e,t,n,a){let i=y();try{let r=w("conditions",e,t,"__queueCondition__"),s=await i.get(r);if(!s)return null;let l=s.meta;if(l.contentHash!==a||l.conditionCodeHash!==n)return null;return{result:s.value.result,cached:!0}}catch{return null}}async function A(e,t,n,a,i){let r=y();try{let s=w("conditions",e,t,"__queueCondition__");await r.set(s,{result:a},{cachedAt:new Date().toISOString(),contentHash:i,conditionCodeHash:n})}catch(n){(0,m.logWarn)(`[cache] setConditionCache failed for ${e}/${t}:`,n instanceof Error?n.message:n)}}e.s(["getConditionCache",()=>x,"getPerItemCacheMeta",()=>v,"getPerItemCacheWithHook",()=>C,"setConditionCache",()=>A,"setPerItemCache",()=>$],37573),e.s([],99893)}];
5
+ export default _cjs;`;return await (0,t.writeFile)(i,r,"utf-8"),{shimPath:i,shimUrl:(0,n.pathToFileURL)(i).href}}async function m(e,n,i){let r=[e],s=new Set,l=[],m=null;if(i&&n){let e=await h(i,n);l.push(e.shimPath),m=e.shimUrl}for(;r.length>0;){let e=r.shift();if(s.has(e))continue;s.add(e);let n=await (0,t.readFile)(e,"utf-8");m&&(n=n.replace(/from\s+(['"])claudeye\1/g,`from '${m}'`)),i&&(n=n.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${i.replace(/\\/g,"\\\\")}')`));let h=(0,a.dirname)(e),d=new Map;for(let e of[o,u]){let t,i=new RegExp(e.source,e.flags);for(;null!==(t=i.exec(n));){let e=t[2];if(d.has(e))continue;let n=await f(h,e);if(!n)continue;s.has(n)||r.includes(n)||r.push(n);let i=(0,a.relative)(h,n+c).split("\\").join("/");i.startsWith(".")||(i="./"+i),d.set(e,i)}}for(let e of[...d.keys()].sort((e,t)=>t.length-e.length)){let t=d.get(e),a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=(n=n.replace(RegExp(`'${a}'`,"g"),`'${t}'`)).replace(RegExp(`"${a}"`,"g"),`"${t}"`)}let p=e+c;await (0,t.writeFile)(p,n,"utf-8"),l.push(p)}return l}async function d(){if(r)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){r=!0;return}let a=globalThis;a[i]=!0;let s=[];try{let t=await l(),a=t?(0,n.pathToFileURL)(t).href:null;s=await m(e,a,t);let i=(0,n.pathToFileURL)(e+c).href;await import(i)}finally{for(let e of(a[i]=!1,s))try{await (0,t.unlink)(e)}catch{}}r=!0}e.s(["ensureEvalsLoaded",()=>d],63407);var p=e.i(46786);function g(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,a.join)((0,p.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>g],4152)},43955,83620,64774,34741,e=>{"use strict";var t=e.i(24868),a=e.i(14747),n=e.i(4152);async function i(e,n,i,r){let s=`agent-${r}.jsonl`;for(let r of[(0,a.join)(e,n,s),(0,a.join)(e,n,i,s),(0,a.join)(e,n,i,"subagents",s)])if(!(0,a.relative)(e,r).startsWith(".."))try{return await (0,t.access)(r),r}catch(e){if("ENOENT"!==e.code)continue}return null}function r(e,t,a){let n=new Map,i=new Map,r=a?.maxSize;return async(...a)=>{let s=JSON.stringify(a),l=n.get(s);if(l&&Date.now()<l.expiry)return r&&(n.delete(s),n.set(s,l)),l.data;let o=i.get(s);if(o)return o;let u=e(...a).then(e=>{if(i.delete(s),r&&n.size>=r){let e=n.keys().next().value;n.delete(e)}return n.set(s,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw i.delete(s),e});return i.set(s,u),u}}function s(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function l(e){if(e<1e3)return`${e}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;let a=Math.floor(t/60);if(a>=60){let e=Math.floor(a/60);return`${e}h ${a%60}m`}let n=(t%60).toFixed(0);return`${a}m ${n}s`}function o(e){let t=s(e),a=e.getMilliseconds().toString().padStart(3,"0");return`${t}.${a}`}function u(e,t,a,n){return{_source:n,uuid:e.uuid||"",parentUuid:e.parentUuid??null,timestamp:t,timestampMs:a.getTime(),timestampFormatted:o(a)}}async function c(e,t){let a=e.split("\n").filter(e=>""!==e.trim()),n=new Map,i=[],r=[],s=new Set,c=!1;for(let e=0;e<a.length;e++){let l;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let o=a[e];try{l=JSON.parse(o)}catch{continue}let f={...l,_source:t};r.push(f);let h=l.type,m=l.timestamp;if(!m)continue;let d=new Date(m),p=d.getTime();if("user"===h){let e=l.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=l.toolUseResult,a="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(a&&/^[a-f0-9]+$/.test(a)&&s.add(a),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:i,images:r}=function(e){let t=e.content;if("string"==typeof t)return{text:t};if(Array.isArray(t)){let e=t.filter(e=>"text"===e.type).map(e=>e.text),a=t.filter(e=>"image"===e.type).map(e=>{let t=e.source;return{base64:t.data,mediaType:t.media_type}}).filter(e=>e.base64&&e.mediaType);return{text:e.length>0?e.join("\n"):void 0,images:a.length>0?a:void 0}}return{}}(e);n.set(t,{timestamp:m,timestampMs:p,content:i,images:r,agentId:a})}continue}}let a="string"==typeof e?.content?e.content:"";i.push({type:"user",...u(l,m,d,t),message:{role:"user",content:a}});continue}if("assistant"===h){let e=l.message,a=[];if(Array.isArray(e?.content)&&(a=e.content.filter(e=>["text","tool_use","thinking"].includes(e.type)).map(e=>{if("text"===e.type)return{type:"text",text:e.text};if("tool_use"===e.type){let t=e.input;return{type:"tool_use",id:e.id,name:e.name,input:e.input??{},..."Task"===e.name&&t?{subagentType:t.subagent_type,subagentDescription:t.description}:{}}}return{type:"thinking",thinking:e.thinking,signature:e.signature}})),0===a.length)continue;i.push({type:"assistant",...u(l,m,d,t),message:{role:"assistant",content:a,model:e?.model}});continue}if("file-history-snapshot"===h||"progress"===h||"system"===h){i.push({type:h,...u(l,m,d,t),raw:{...l}});continue}if("queue-operation"===h){let e=c?"Session Resumed":"Session Started";c=!0,i.push({type:"queue-operation",...u(l,m,d,t),label:e});continue}}let f=0;for(let e of i)if("assistant"===e.type)for(let t of(++f%200==0&&await new Promise(e=>setImmediate(e)),e.message.content)){if("tool_use"!==t.type)continue;let a=n.get(t.id);if(!a)continue;let i=new Date(a.timestamp),r=a.timestampMs-e.timestampMs;t.result={timestamp:a.timestamp,timestampFormatted:o(i),content:a.content,images:a.images,durationMs:r,durationFormatted:l(r)},a.agentId&&(t.subagentId=a.agentId)}return i.length>500&&await new Promise(e=>setImmediate(e)),i.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:i,rawLines:r,subagentIds:Array.from(s)}}async function f(e,r){let s=(0,n.getClaudeProjectsPath)(),l=(0,a.join)(s,e,`${r}.jsonl`),o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f,subagentIds:h}=await c(o,"session");if(0===h.length)return{entries:u,rawLines:f,subagentIds:[]};let m=await Promise.allSettled(h.map(async a=>{let n=`agent-${a}`,l=await i(s,e,r,a);if(!l)return null;let o=await (0,t.readFile)(l,"utf-8"),{entries:u,rawLines:f}=await c(o,n);return{entries:u,rawLines:f}})),d=[...u],p=[...f];for(let e of m)"fulfilled"===e.status&&e.value&&(d.push(...e.value.entries),p.push(...e.value.rawLines));return d.length>500&&await new Promise(e=>setImmediate(e)),d.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:d,rawLines:p,subagentIds:h}}e.s(["runtimeCache",()=>r],83620),e.s(["formatDate",()=>s],64774);let h=r((e,t)=>f(e,t),60,{maxSize:50});function m(e){let t=0,a=0,n=0,i=0,r=0,s=new Set;for(let l of e)if("user"===l.type&&t++,"queue-operation"===l.type&&r++,"assistant"===l.type){for(let e of(a++,l.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?i++:n++);l.message.model&&s.add(l.message.model)}let o="";return e.length>=2&&(o=l(e[e.length-1].timestampMs-e[0].timestampMs)),{turnCount:r,userCount:t,assistantCount:a,toolCallCount:n,subagentCount:i,duration:o,models:Array.from(s)}}e.s(["getCachedSessionLog",0,h],43955),e.s(["calculateLogStats",()=>m],34741)},99893,637,82754,37573,e=>{"use strict";var t=e.i(54799),a=e.i(24868),n=e.i(14747),i=e.i(4152);let r=null;function s(){if(r)return r;let e=(0,n.resolve)((0,i.getClaudeProjectsPath)());return r=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let l=new Map;async function o(e,r){let s=(0,i.getClaudeProjectsPath)(),o=(0,n.join)(s,e,`${r}.jsonl`),u=Date.now(),c=l.get(o);if(c&&c.expiresAt>u)return c.hash;let f=await (0,a.stat)(o),h=`${f.mtimeMs}:${f.size}`,m=(0,t.createHash)("sha256").update(h).digest("hex");return l.set(o,{hash:m,expiresAt:u+5e3}),m}async function u(e,r,s){let l=(0,i.getClaudeProjectsPath)(),o=`agent-${s}.jsonl`,u=[(0,n.join)(l,e,o),(0,n.join)(l,e,r,o),(0,n.join)(l,e,r,"subagents",o)];for(let e of(await Promise.allSettled(u.map(e=>(0,a.stat)(e)))))if("fulfilled"===e.status){let a=e.value,n=`${a.mtimeMs}:${a.size}`;return(0,t.createHash)("sha256").update(n).digest("hex")}return""}let c=new WeakMap;function f(e){let a=c.get(e);return a||(a=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),c.set(e,a)),a}e.s(["hashItemCode",()=>f,"hashProjectsPath",()=>s,"hashSessionFile",()=>o,"hashSubagentFile",()=>u],637);var h=e.i(46786);async function m(e,t){let a=Array(e.length),n=0;async function i(){for(;n<e.length;){let t=n++;try{a[t]={status:"fulfilled",value:await e[t]()}}catch(e){a[t]={status:"rejected",reason:e}}}}let r=Array.from({length:Math.min(t,e.length)},()=>i());return await Promise.all(r),a}e.s(["batchAll",()=>m],82754);var d=e.i(38281);let p=(0,n.join)((0,h.homedir)(),".claudeye","cache");class g{basePath;constructor(e){this.basePath=e||p}keyToPath(e){return(0,n.join)(this.basePath,`${e}.json`)}async get(e){try{let t=this.keyToPath(e),n=await (0,a.readFile)(t,"utf-8");return JSON.parse(n)}catch{return null}}async set(e,t,i){try{let r=this.keyToPath(e);await (0,a.mkdir)((0,n.dirname)(r),{recursive:!0}),await (0,a.writeFile)(r,JSON.stringify({value:t,meta:i}),"utf-8")}catch(t){(0,d.logWarn)(`[cache] Write failed for ${e}:`,t instanceof Error?t.message:t)}}async invalidate(e){try{await (0,a.unlink)(this.keyToPath(e))}catch{}}async invalidateByPrefix(e){try{let t=e.split("/"),i=t.pop()||"",r=(0,n.join)(this.basePath,...t),s=(await (0,a.readdir)(r)).filter(e=>e.endsWith(".json")&&e.startsWith(i));await m(s.map(e=>()=>(0,a.unlink)((0,n.join)(r,e)).catch(()=>{})),50)}catch{}}async close(){}async clearAll(){try{await (0,a.rm)(this.basePath,{recursive:!0,force:!0})}catch{}}}let y="__CLAUDEYE_CACHE_BACKEND__";function w(){let e=globalThis;if(e[y])return e[y];let t=new g(process.env.CLAUDEYE_CACHE_PATH||void 0);return e[y]=t,t}function _(e,t,a,n){let i=s();return`${i}/${e}/${t}/${a}/item/${n}`}async function $(e,t,a,n,i,r){let s=w();try{let l=await s.get(_(e,t,a,n));if(!l)return null;let u=l.meta,c=r??await o(t,a);if(u.contentHash!==c||u.itemCodeHash!==i)return null;return{value:l.value,meta:u,cached:!0}}catch{return null}}async function j(e,t,a,n,i,r,s){let l=w();try{let u=s??await o(t,a);await l.set(_(e,t,a,n),r,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:i})}catch(i){(0,d.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${a}/${n}:`,i instanceof Error?i.message:i)}}async function C(t,a,n,i,r,s){let l=await $(t,a,n,i,r,s);if(!l)return null;if("evals"!==t&&"enrichments"!==t)return l;let{getCacheInvalidationHook:o}=await e.A(76590),u=o();if(!u)return l;let c={itemName:i,itemKind:t,cachedAt:l.meta.cachedAt,contentHash:l.meta.contentHash,itemCodeHash:l.meta.itemCodeHash,projectName:a,sessionId:n,cachedValue:l.value};try{if(await u(c))return await P(t,a,n,i),null}catch{}return l}async function v(e,t,a,n){let i=w();try{let r=await i.get(_(e,t,a,n));if(!r)return null;return r.meta}catch{return null}}async function P(e,t,a,n){let i=w();try{await i.invalidate(_(e,t,a,n))}catch{}}async function x(e,t,a,n){let i=w();try{let r=_("conditions",e,t,"__queueCondition__"),s=await i.get(r);if(!s)return null;let l=s.meta;if(l.contentHash!==n||l.conditionCodeHash!==a)return null;return{result:s.value.result,cached:!0}}catch{return null}}async function A(e,t,a,n,i){let r=w();try{let s=_("conditions",e,t,"__queueCondition__");await r.set(s,{result:n},{cachedAt:new Date().toISOString(),contentHash:i,conditionCodeHash:a})}catch(a){(0,d.logWarn)(`[cache] setConditionCache failed for ${e}/${t}:`,a instanceof Error?a.message:a)}}e.s(["getConditionCache",()=>x,"getPerItemCacheMeta",()=>v,"getPerItemCacheWithHook",()=>C,"setConditionCache",()=>A,"setPerItemCache",()=>j],37573),e.s([],99893)}];
6
6
 
7
7
  //# sourceMappingURL=lib_74f62736._.js.map