@claudeye/linux-arm64 1.0.2 → 1.0.3-beta.2

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 (110) hide show
  1. package/assets/dist/app.d.ts +3 -1
  2. package/assets/dist/app.js +1 -1
  3. package/assets/dist/cache-invalidation-registry.d.ts +9 -0
  4. package/assets/dist/cache-invalidation-registry.js +1 -0
  5. package/assets/dist/index.d.ts +2 -1
  6. package/assets/dist/index.js +1 -1
  7. package/assets/dist/types.d.ts +24 -0
  8. package/assets/standalone/.next/BUILD_ID +1 -1
  9. package/assets/standalone/.next/build-manifest.json +2 -2
  10. package/assets/standalone/.next/prerender-manifest.json +3 -3
  11. package/assets/standalone/.next/server/app/_global-error.html +2 -2
  12. package/assets/standalone/.next/server/app/_global-error.rsc +1 -1
  13. package/assets/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  14. package/assets/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  15. package/assets/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/assets/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/assets/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/assets/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  19. package/assets/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  20. package/assets/standalone/.next/server/app/_not-found.html +2 -2
  21. package/assets/standalone/.next/server/app/_not-found.rsc +5 -5
  22. package/assets/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +5 -5
  23. package/assets/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  24. package/assets/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  25. package/assets/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  26. package/assets/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  27. package/assets/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  28. package/assets/standalone/.next/server/app/api/completed-history/route.js +1 -1
  29. package/assets/standalone/.next/server/app/api/queue-item/route.js +1 -1
  30. package/assets/standalone/.next/server/app/api/queue-status/route.js +1 -1
  31. package/assets/standalone/.next/server/app/dashboard/[viewName]/page/server-reference-manifest.json +4 -4
  32. package/assets/standalone/.next/server/app/dashboard/[viewName]/page.js +1 -1
  33. package/assets/standalone/.next/server/app/dashboard/[viewName]/page_client-reference-manifest.js +1 -1
  34. package/assets/standalone/.next/server/app/dashboard/page/server-reference-manifest.json +4 -4
  35. package/assets/standalone/.next/server/app/dashboard/page.js +1 -1
  36. package/assets/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
  37. package/assets/standalone/.next/server/app/login/page/server-reference-manifest.json +2 -2
  38. package/assets/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  39. package/assets/standalone/.next/server/app/login.html +2 -2
  40. package/assets/standalone/.next/server/app/login.rsc +6 -6
  41. package/assets/standalone/.next/server/app/login.segments/_full.segment.rsc +6 -6
  42. package/assets/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  43. package/assets/standalone/.next/server/app/login.segments/_index.segment.rsc +5 -5
  44. package/assets/standalone/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  45. package/assets/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  46. package/assets/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  47. package/assets/standalone/.next/server/app/page/server-reference-manifest.json +1 -1
  48. package/assets/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  49. package/assets/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +1 -1
  50. package/assets/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
  51. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +1 -1
  52. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +8 -8
  53. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page.js +1 -1
  54. package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  55. package/assets/standalone/.next/server/app/queue/page/server-reference-manifest.json +3 -3
  56. package/assets/standalone/.next/server/app/queue/page.js +1 -1
  57. package/assets/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
  58. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__b18c2f99._.js → [root-of-the-server]__016f28bf._.js} +3 -3
  59. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__57118d1a._.js → [root-of-the-server]__12f1df7a._.js} +2 -2
  60. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__2074634c._.js → [root-of-the-server]__30210a51._.js} +2 -2
  61. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__a0230ba0._.js → [root-of-the-server]__4b3a0135._.js} +2 -2
  62. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__a53c6c2f._.js → [root-of-the-server]__c61bf87c._.js} +2 -2
  63. package/assets/standalone/.next/server/chunks/{[root-of-the-server]__8af5473b._.js → [root-of-the-server]__d4438063._.js} +2 -2
  64. package/assets/standalone/.next/server/chunks/_5ab69e50._.js +1 -1
  65. package/assets/standalone/.next/server/chunks/_6a9d92e6._.js +2 -2
  66. package/assets/standalone/.next/server/chunks/_7cb7a702._.js +2 -2
  67. package/assets/standalone/.next/server/chunks/_d3c87a9f._.js +2 -2
  68. package/assets/standalone/.next/server/chunks/_fb07f1d4._.js +1 -1
  69. package/assets/standalone/.next/server/chunks/lib_6cff0ca5._.js +1 -1
  70. package/assets/standalone/.next/server/chunks/lib_74f62736._.js +1 -1
  71. package/assets/standalone/.next/server/chunks/lib_eval-queue_ts_32d171f8._.js +1 -1
  72. package/assets/standalone/.next/server/chunks/lib_eval-queue_ts_642b3543._.js +1 -1
  73. package/assets/standalone/.next/server/chunks/lib_evals_cache-invalidation-registry_ts_35ae1046._.js +3 -0
  74. package/assets/standalone/.next/server/chunks/lib_evals_cache-invalidation-registry_ts_fbef0128._.js +3 -0
  75. package/assets/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_7a66d362.js +1 -1
  76. package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__0530a7f6._.js +1 -1
  77. package/assets/standalone/.next/server/chunks/ssr/_1d335924._.js +1 -1
  78. package/assets/standalone/.next/server/chunks/ssr/{_d982b289._.js → _2c739158._.js} +3 -3
  79. package/assets/standalone/.next/server/chunks/ssr/_34abf048._.js +2 -2
  80. package/assets/standalone/.next/server/chunks/ssr/_40b9779b._.js +2 -2
  81. package/assets/standalone/.next/server/chunks/ssr/{_cce5033e._.js → _42bdbcd7._.js} +3 -3
  82. package/assets/standalone/.next/server/chunks/ssr/{_3e6c3cad._.js → _46cafe74._.js} +3 -3
  83. package/assets/standalone/.next/server/chunks/ssr/_76ab933f._.js +1 -1
  84. package/assets/standalone/.next/server/chunks/ssr/_87e025a1._.js +1 -1
  85. package/assets/standalone/.next/server/chunks/ssr/{_472a5ae2._.js → _bd414f26._.js} +3 -3
  86. package/assets/standalone/.next/server/chunks/ssr/_d7141734._.js +2 -2
  87. package/assets/standalone/.next/server/chunks/ssr/_f7ec0663._.js +2 -2
  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/components_navbar_tsx_e9e361f1._.js +1 -1
  92. package/assets/standalone/.next/server/chunks/ssr/lib_cache_index_ts_35dfbe77._.js +1 -1
  93. package/assets/standalone/.next/server/chunks/ssr/lib_eval-queue_ts_e2258485._.js +1 -1
  94. package/assets/standalone/.next/server/chunks/ssr/lib_evals_cache-invalidation-registry_ts_2ee53a56._.js +3 -0
  95. package/assets/standalone/.next/server/pages/404.html +2 -2
  96. package/assets/standalone/.next/server/pages/500.html +2 -2
  97. package/assets/standalone/.next/server/server-reference-manifest.js +1 -1
  98. package/assets/standalone/.next/server/server-reference-manifest.json +15 -15
  99. package/assets/standalone/.next/static/chunks/{c57ac507f1258fce.js → 3d4abbeaf74eb8a8.js} +1 -1
  100. package/assets/standalone/.next/static/chunks/{c2fa2cfce8e11b9d.js → 5c62513045b76a62.js} +1 -1
  101. package/assets/standalone/.next/static/chunks/{8883ab06827ab0d9.js → 623db2646a37b883.js} +1 -1
  102. package/assets/standalone/.next/static/chunks/{dc10cd6f331687bf.js → a333b2fa8ea4a2e0.js} +1 -1
  103. package/assets/standalone/.next/static/chunks/{fd5a690994e3024b.js → b15ffd46656f916b.js} +1 -1
  104. package/assets/standalone/.next/static/chunks/{4645a259d2851cb5.js → bc1e933f71baccdb.js} +1 -1
  105. package/assets/standalone/README.md +32 -0
  106. package/assets/standalone/package.json +1 -1
  107. package/package.json +1 -1
  108. /package/assets/standalone/.next/static/{3yebs_EtZBOBswNyCSBo1 → DPyFeGP3kvOdJnOczXWOv}/_buildManifest.js +0 -0
  109. /package/assets/standalone/.next/static/{3yebs_EtZBOBswNyCSBo1 → DPyFeGP3kvOdJnOczXWOv}/_clientMiddlewareManifest.json +0 -0
  110. /package/assets/standalone/.next/static/{3yebs_EtZBOBswNyCSBo1 → DPyFeGP3kvOdJnOczXWOv}/_ssgManifest.js +0 -0
@@ -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,n,s="session",o){let i={name:e,fn:a,scope:s};n&&(i.condition=n),o&&(i.subagentType=o),t.register(i)}let a=t.getAll,n=t.getSessionScoped,s=t.getSubagentScoped,o=t.hasSubagent,i=t.has,l=t.clear;e.s(["clearEnrichers",0,l,"getRegisteredEnrichers",0,a,"getSessionScopedEnrichers",0,n,"getSubagentScopedEnrichers",0,s,"hasEnrichers",0,i,"hasSubagentEnrichers",0,o,"registerEnricher",()=>r])},77879,e=>{"use strict";let t=(0,e.i(44967).createScopedRegistry)("__CLAUDEYE_EVAL_REGISTRY__");function r(e,a,n,s="session",o){let i={name:e,fn:a,scope:s};n&&(i.condition=n),o&&(i.subagentType=o),t.register(i)}let a=t.getAll,n=t.getSessionScoped,s=t.getSubagentScoped,o=t.hasSubagent,i=t.has,l=t.clear;e.s(["clearEvals",0,l,"getRegisteredEvals",0,a,"getSessionScopedEvals",0,n,"getSubagentScopedEvals",0,s,"hasEvals",0,i,"hasSubagentEvals",0,o,"registerEval",()=>r])},99836,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=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),E=e.i(89171),m=e.i(8265);async function f(e){let t=Math.max(1,parseInt(new URL(e.url).searchParams.get("page")??"1",10)||1);return E.NextResponse.json(await (0,m.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,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/completed-history/route";E=E.replace(/\/index$/,"")||"/";let m=await _.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:y,nextConfig:S,parsedUrl:w,isDraftMode:b,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:k,clientReferenceManifest:q,serverActionsManifest:N}=m,j=(0,i.normalizeAppPath)(E),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,o.setManifestsSingleton)({page:E,clientReferenceManifest:q,serverActionsManifest:N});let M=e.method||"GET",L=(0,s.getTracer)(),$=L.getActiveScopeSpan(),F={params:y,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!S.experimental.authInterrupts},cacheComponents:!!S.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:S.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>_.onRequestError(e,t,a,n,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 o=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} ${E}`)}),i=!!(0,n.getRequestMeta)(e,"minimalMode"),l=async n=>{var s,l;let d=async({previousCacheEntry:r})=>{try{if(!i&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);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,s,F.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.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:s.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:E,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:i});if(!O)return null;if((null==u||null==(s=u.value)?void 0:s.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});i||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 i&&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} ${E}`,kind:s.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)))},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),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)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__a0230ba0._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__4b3a0135._.js.map
@@ -1,3 +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"))},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 c(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 l(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 f(){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",()=>f,"initLogger",()=>n,"logActivity",()=>l,"logError",()=>u,"logInfo",()=>i,"logWarn",()=>c])},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])},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,c=r.clear;e.s(["clearEnrichers",0,c,"getRegisteredEnrichers",0,n,"getSessionScopedEnrichers",0,s,"getSubagentScopedEnrichers",0,o,"hasEnrichers",0,i,"hasSubagentEnrichers",0,a,"registerEnricher",()=>t])},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)},41671,e=>{"use strict";var r=e.i(63407),t=e.i(58065),n=e.i(73889);async function s(e,r,s,o,a,i){let c=a??(0,t.getRegisteredEnrichers)(),u={entries:e,stats:r,projectName:s,sessionId:o,source:"session",...i};return(0,n.runAll)(c,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}}})}var o=e.i(43955),a=e.i(34741);e.i(99893);var i=e.i(637),c=e.i(37573);async function u(e,n,l,f=!1){try{await (0,r.ensureEvalsLoaded)();let u=(0,t.getSessionScopedEnrichers)().find(e=>e.name===l);if(!u)return{ok:!1,error:`Enricher "${l}" not found`};let h=await (0,i.hashSessionFile)(e,n);if(!f&&h){let r=(0,i.hashItemCode)(u.fn),t=await (0,c.getPerItemCache)("enrichments",e,n,u.name,r,h);if(t)return{ok:!0,result:t.value}}let{entries:g,rawLines:p}=await (0,o.getCachedSessionLog)(e,n),d=(0,a.calculateLogStats)(g),m=(await s(p,d,e,n,[u],{source:"session"})).results[0];if(!m)return{ok:!1,error:"No result returned from enricher"};if(h){let r=(0,i.hashItemCode)(u.fn);await (0,c.setPerItemCache)("enrichments",e,n,u.name,r,m,h)}return{ok:!0,result:m}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}e.s(["processSessionEnrichment",()=>u],41671)},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)))},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)))}];
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"))},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 c(e,r){void 0!==r?console.error(a("ERROR"),e,r):console.error(a("ERROR"),e)}function u(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",()=>u,"logError",()=>c,"logInfo",()=>i,"logWarn",()=>l])},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])},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])},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)},41671,e=>{"use strict";var r=e.i(63407),t=e.i(58065),n=e.i(73889);async function s(e,r,s,o,a,i){let l=a??(0,t.getRegisteredEnrichers)(),c={entries:e,stats:r,projectName:s,sessionId:o,source:"session",...i};return(0,n.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}}})}var o=e.i(43955),a=e.i(34741);e.i(99893);var i=e.i(637),l=e.i(37573);async function c(e,n,u,h=!1){try{await (0,r.ensureEvalsLoaded)();let c=(0,t.getSessionScopedEnrichers)().find(e=>e.name===u);if(!c)return{ok:!1,error:`Enricher "${u}" not found`};let f=await (0,i.hashSessionFile)(e,n);if(!h&&f){let r=(0,i.hashItemCode)(c.fn),t=await (0,l.getPerItemCacheWithHook)("enrichments",e,n,c.name,r,f);if(t)return{ok:!0,result:t.value}}let{entries:g,rawLines:p}=await (0,o.getCachedSessionLog)(e,n),d=(0,a.calculateLogStats)(g),m=(await s(p,d,e,n,[c],{source:"session"})).results[0];if(!m)return{ok:!1,error:"No result returned from enricher"};if(f){let r=(0,i.hashItemCode)(c.fn);await (0,l.setPerItemCache)("enrichments",e,n,c.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",()=>c],41671)},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
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__a53c6c2f._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__c61bf87c._.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])},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),x=e.i(26937),g=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 S=e.i(49424);let _=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:S}),{workAsyncStorage:y,workUnitAsyncStorage:w,serverHooks:b}=_;function C(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:w})}async function A(e,t,a){_.isDev&&(0,s.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let E="/api/queue-status/route";E=E.replace(/\/index$/,"")||"/";let m=await _.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:S,nextConfig:y,parsedUrl:w,isDraftMode:b,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:q,revalidateOnlyGenerated:P,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,w,!1):t.end("This page could not be found"),null);if(O&&!b){let e=!!C.routes[T],t=C.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await H();throw new v.NoFallbackError}}let I=null;!O||_.isDev||b||(I="/index"===(I=T)?"/":I);let U=!0===_.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:S,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:U,incrementalCache:(0,s.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.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}},L=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),B=u.NextRequestAdapter.fromNodeNextRequest(L,(0,u.signalFromNodeResponse)(t));try{let i=async e=>_.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&&q&&P&&!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 _.onRequestError(e,t,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:q})},!1,A),t}},d=await _.handleResponse({req:e,nextConfig:y,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:q,revalidateOnlyGenerated:P,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",q?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&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(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||v.get("Cache-Control")||v.set("Cache-Control",(0,x.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 _.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:q})},!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",()=>_,"serverHooks",()=>b,"workAsyncStorage",()=>y,"workUnitAsyncStorage",()=>w],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)))},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),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)))}];
2
2
 
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__8af5473b._.js.map
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__d4438063._.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]__57118d1a._.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: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)))}];
2
2
 
3
3
  //# sourceMappingURL=_5ab69e50._.js.map
@@ -1,7 +1,7 @@
1
- module.exports=[44967,e=>{"use strict";function t(e){function t(){let t=globalThis;return t[e]||(t[e]=[]),t[e]}return{register(e){let n=t(),a=n.findIndex(t=>t.name===e.name);a>=0?n[a]=e:n.push(e)},getAll:()=>t(),getSessionScoped:()=>t().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>t().filter(t=>("subagent"===t.scope||"both"===t.scope)&&(!t.subagentType||!e||t.subagentType===e)),hasSubagent:()=>t().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>t().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>t])},42315,(e,t,n)=>{"use strict";t.exports=e.r(18622)},40911,e=>{"use strict";let t={info:0,warn:1,error:2};function n(e){return t[e]>=t.warn}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function s(e,t){n("warn")&&(void 0!==t?console.warn(a("WARN"),e,t):console.warn(a("WARN"),e))}function r(e,t){void 0!==t?console.error(a("ERROR"),e,t):console.error(a("ERROR"),e)}function i(e,t,s){if(!n("info"))return;let r=[`user=${e}`,`action=${t}`];s&&r.push(s),console.log(a("ACTIVITY"),r.join(" "))}async function o(){try{let{cookies:t}=await e.A(6878),n=await t(),a=n.get("claudeye_session")?.value;if(!a)return"anonymous";let s=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:r}=await e.A(26404);return await r(a,s)??"anonymous"}catch{return"anonymous"}}e.s(["getRequestUsername",()=>o,"logActivity",()=>i,"logError",()=>r,"logWarn",()=>s])},81580,e=>{"use strict";var t=e.i(46786),n=e.i(14747);function a(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,n.join)((0,t.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>a])},54214,83534,41444,67405,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(81580);async function s(e,a,s,r){let i=`agent-${r}.jsonl`;for(let r of[(0,n.join)(e,a,i),(0,n.join)(e,a,s,i),(0,n.join)(e,a,s,"subagents",i)])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,s=new Map,r=n?.maxSize;return async(...n)=>{let i=JSON.stringify(n),o=a.get(i);if(o&&Date.now()<o.expiry)return r&&(a.delete(i),a.set(i,o)),o.data;let l=s.get(i);if(l)return l;let u=e(...n).then(e=>{if(s.delete(i),r&&a.size>=r){let e=a.keys().next().value;a.delete(e)}return a.set(i,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw s.delete(i),e});return s.set(i,u),u}}function i(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function o(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 l(e){let t=i(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:l(n)}}async function c(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),a=new Map,s=[],r=[],i=new Set,c=!1;for(let e=0;e<n.length;e++){let o;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let l=n[e];try{o=JSON.parse(l)}catch{continue}let f={...o,_source:t};r.push(f);let m=o.type,h=o.timestamp;if(!h)continue;let p=new Date(h),d=p.getTime();if("user"===m){let e=o.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=o.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&i.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:s,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:h,timestampMs:d,content:s,images:r,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";s.push({type:"user",...u(o,h,p,t),message:{role:"user",content:n}});continue}if("assistant"===m){let e=o.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;s.push({type:"assistant",...u(o,h,p,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===m||"progress"===m||"system"===m){s.push({type:m,...u(o,h,p,t),raw:{...o}});continue}if("queue-operation"===m){let e=c?"Session Resumed":"Session Started";c=!0,s.push({type:"queue-operation",...u(o,h,p,t),label:e});continue}}let f=0;for(let e of s)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 s=new Date(n.timestamp),r=n.timestampMs-e.timestampMs;t.result={timestamp:n.timestamp,timestampFormatted:l(s),content:n.content,images:n.images,durationMs:r,durationFormatted:o(r)},n.agentId&&(t.subagentId=n.agentId)}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:r,subagentIds:Array.from(i)}}async function f(e,r){let i=(0,a.getClaudeProjectsPath)(),o=(0,n.join)(i,e,`${r}.jsonl`),l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f,subagentIds:m}=await c(l,"session");if(0===m.length)return{entries:u,rawLines:f,subagentIds:[]};let h=await Promise.allSettled(m.map(async n=>{let a=`agent-${n}`,o=await s(i,e,r,n);if(!o)return null;let l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f}=await c(l,a);return{entries:u,rawLines:f}})),p=[...u],d=[...f];for(let e of h)"fulfilled"===e.status&&e.value&&(p.push(...e.value.entries),d.push(...e.value.rawLines));return p.length>500&&await new Promise(e=>setImmediate(e)),p.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:p,rawLines:d,subagentIds:m}}e.s(["runtimeCache",()=>r],83534),e.s(["formatDate",()=>i],41444),e.s(["formatDuration",()=>o],67405);let m=r((e,t)=>f(e,t),60,{maxSize:50});e.s(["getCachedSessionLog",0,m],54214)},28753,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(92509);let s="__CLAUDEYE_LOADING_EVALS__",r=!1;async function i(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function o(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,n.resolve)(e,"index.js");if(await i(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 i(e))return e;return null}let l=/(?: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 i(e))return e;return null}async function m(e,n){let s=e+".__claudeye_esm_shim__.mjs",r=`import _cjs from '${n}';
1
+ module.exports=[44967,e=>{"use strict";function t(e){function t(){let t=globalThis;return t[e]||(t[e]=[]),t[e]}return{register(e){let n=t(),a=n.findIndex(t=>t.name===e.name);a>=0?n[a]=e:n.push(e)},getAll:()=>t(),getSessionScoped:()=>t().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>t().filter(t=>("subagent"===t.scope||"both"===t.scope)&&(!t.subagentType||!e||t.subagentType===e)),hasSubagent:()=>t().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>t().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>t])},42315,(e,t,n)=>{"use strict";t.exports=e.r(18622)},40911,e=>{"use strict";let t={info:0,warn:1,error:2};function n(e){return t[e]>=t.warn}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function s(e,t){n("warn")&&(void 0!==t?console.warn(a("WARN"),e,t):console.warn(a("WARN"),e))}function i(e,t){void 0!==t?console.error(a("ERROR"),e,t):console.error(a("ERROR"),e)}function r(e,t,s){if(!n("info"))return;let i=[`user=${e}`,`action=${t}`];s&&i.push(s),console.log(a("ACTIVITY"),i.join(" "))}async function o(){try{let{cookies:t}=await e.A(6878),n=await t(),a=n.get("claudeye_session")?.value;if(!a)return"anonymous";let s=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:i}=await e.A(26404);return await i(a,s)??"anonymous"}catch{return"anonymous"}}e.s(["getRequestUsername",()=>o,"logActivity",()=>r,"logError",()=>i,"logWarn",()=>s])},81580,e=>{"use strict";var t=e.i(46786),n=e.i(14747);function a(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,n.join)((0,t.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>a])},54214,83534,41444,67405,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(81580);async function s(e,a,s,i){let r=`agent-${i}.jsonl`;for(let i of[(0,n.join)(e,a,r),(0,n.join)(e,a,s,r),(0,n.join)(e,a,s,"subagents",r)])if(!(0,n.relative)(e,i).startsWith(".."))try{return await (0,t.access)(i),i}catch(e){if("ENOENT"!==e.code)continue}return null}function i(e,t,n){let a=new Map,s=new Map,i=n?.maxSize;return async(...n)=>{let r=JSON.stringify(n),o=a.get(r);if(o&&Date.now()<o.expiry)return i&&(a.delete(r),a.set(r,o)),o.data;let l=s.get(r);if(l)return l;let u=e(...n).then(e=>{if(s.delete(r),i&&a.size>=i){let e=a.keys().next().value;a.delete(e)}return a.set(r,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw s.delete(r),e});return s.set(r,u),u}}function r(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function o(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 l(e){let t=r(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:l(n)}}async function c(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),a=new Map,s=[],i=[],r=new Set,c=!1;for(let e=0;e<n.length;e++){let o;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let l=n[e];try{o=JSON.parse(l)}catch{continue}let f={...o,_source:t};i.push(f);let h=o.type,m=o.timestamp;if(!m)continue;let d=new Date(m),p=d.getTime();if("user"===h){let e=o.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=o.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&r.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:s,images:i}=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:s,images:i,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";s.push({type:"user",...u(o,m,d,t),message:{role:"user",content:n}});continue}if("assistant"===h){let e=o.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;s.push({type:"assistant",...u(o,m,d,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===h||"progress"===h||"system"===h){s.push({type:h,...u(o,m,d,t),raw:{...o}});continue}if("queue-operation"===h){let e=c?"Session Resumed":"Session Started";c=!0,s.push({type:"queue-operation",...u(o,m,d,t),label:e});continue}}let f=0;for(let e of s)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 s=new Date(n.timestamp),i=n.timestampMs-e.timestampMs;t.result={timestamp:n.timestamp,timestampFormatted:l(s),content:n.content,images:n.images,durationMs:i,durationFormatted:o(i)},n.agentId&&(t.subagentId=n.agentId)}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:i,subagentIds:Array.from(r)}}async function f(e,i){let r=(0,a.getClaudeProjectsPath)(),o=(0,n.join)(r,e,`${i}.jsonl`),l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f,subagentIds:h}=await c(l,"session");if(0===h.length)return{entries:u,rawLines:f,subagentIds:[]};let m=await Promise.allSettled(h.map(async n=>{let a=`agent-${n}`,o=await s(r,e,i,n);if(!o)return null;let l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f}=await c(l,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",()=>i],83534),e.s(["formatDate",()=>r],41444),e.s(["formatDuration",()=>o],67405);let h=i((e,t)=>f(e,t),60,{maxSize:50});e.s(["getCachedSessionLog",0,h],54214)},28753,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(92509);let s="__CLAUDEYE_LOADING_EVALS__",i=!1;async function r(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function o(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,n.resolve)(e,"index.js");if(await r(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 r(e))return e;return null}let l=/(?: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 r(e))return e;return null}async function h(e,n){let s=e+".__claudeye_esm_shim__.mjs",i=`import _cjs from '${n}';
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)(s,r,"utf-8"),{shimPath:s,shimUrl:(0,a.pathToFileURL)(s).href}}async function h(e,a,s){let r=[e],i=new Set,o=[],h=null;if(s&&a){let e=await m(s,a);o.push(e.shimPath),h=e.shimUrl}for(;r.length>0;){let e=r.shift();if(i.has(e))continue;i.add(e);let a=await (0,t.readFile)(e,"utf-8");h&&(a=a.replace(/from\s+(['"])claudeye\1/g,`from '${h}'`)),s&&(a=a.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${s.replace(/\\/g,"\\\\")}')`));let m=(0,n.dirname)(e),p=new Map;for(let e of[l,u]){let t,s=new RegExp(e.source,e.flags);for(;null!==(t=s.exec(a));){let e=t[2];if(p.has(e))continue;let a=await f(m,e);if(!a)continue;i.has(a)||r.includes(a)||r.push(a);let s=(0,n.relative)(m,a+c).split("\\").join("/");s.startsWith(".")||(s="./"+s),p.set(e,s)}}for(let e of[...p.keys()].sort((e,t)=>t.length-e.length)){let t=p.get(e),n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=(a=a.replace(RegExp(`'${n}'`,"g"),`'${t}'`)).replace(RegExp(`"${n}"`,"g"),`"${t}"`)}let d=e+c;await (0,t.writeFile)(d,a,"utf-8"),o.push(d)}return o}async function p(){if(r)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){r=!0;return}let n=globalThis;n[s]=!0;let i=[];try{let t=await o(),n=t?(0,a.pathToFileURL)(t).href:null;i=await h(e,n,t);let s=(0,a.pathToFileURL)(e+c).href;await import(s)}finally{for(let e of(n[s]=!1,i))try{await (0,t.unlink)(e)}catch{}}r=!0}e.s(["ensureEvalsLoaded",()=>p])},14214,88107,71809,39864,e=>{"use strict";var t=e.i(54799),n=e.i(24868),a=e.i(14747),s=e.i(81580);let r=null;function i(){if(r)return r;let e=(0,a.resolve)((0,s.getClaudeProjectsPath)());return r=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let o=new Map;async function l(e,r){let i=(0,s.getClaudeProjectsPath)(),l=(0,a.join)(i,e,`${r}.jsonl`),u=Date.now(),c=o.get(l);if(c&&c.expiresAt>u)return c.hash;let f=await (0,n.stat)(l),m=`${f.mtimeMs}:${f.size}`,h=(0,t.createHash)("sha256").update(m).digest("hex");return o.set(l,{hash:h,expiresAt:u+5e3}),h}async function u(e,r,i){let o=(0,s.getClaudeProjectsPath)(),l=`agent-${i}.jsonl`,u=[(0,a.join)(o,e,l),(0,a.join)(o,e,r,l),(0,a.join)(o,e,r,"subagents",l)];for(let e of(await Promise.allSettled(u.map(e=>(0,n.stat)(e)))))if("fulfilled"===e.status){let n=e.value,a=`${n.mtimeMs}:${n.size}`;return(0,t.createHash)("sha256").update(a).digest("hex")}return""}let c=new WeakMap;function f(e){let n=c.get(e);return n||(n=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),c.set(e,n)),n}e.s(["hashItemCode",()=>f,"hashProjectsPath",()=>i,"hashSessionFile",()=>l,"hashSubagentFile",()=>u],88107);var m=e.i(46786);async function h(e,t){let n=Array(e.length),a=0;async function s(){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)},()=>s());return await Promise.all(r),n}e.s(["batchAll",()=>h],71809);var p=e.i(40911);let d=(0,a.join)((0,m.homedir)(),".claudeye","cache");class g{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,s){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:s}),"utf-8")}catch(t){(0,p.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("/"),s=t.pop()||"",r=(0,a.join)(this.basePath,...t),i=(await (0,n.readdir)(r)).filter(e=>e.endsWith(".json")&&e.startsWith(s));await h(i.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 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,n,a){let s=i();return`${s}/${e}/${t}/${n}/item/${a}`}async function $(e,t,n,a,s,r){let i=w();try{let o=await i.get(_(e,t,n,a));if(!o)return null;let u=o.meta,c=r??await l(t,n);if(u.contentHash!==c||u.itemCodeHash!==s)return null;return{value:o.value,meta:u,cached:!0}}catch{return null}}async function j(e,t,n,a,s,r,i){let o=w();try{let u=i??await l(t,n);await o.set(_(e,t,n,a),r,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:s})}catch(s){(0,p.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${n}/${a}:`,s instanceof Error?s.message:s)}}e.s(["getPerItemCache",()=>$,"setPerItemCache",()=>j],39864),e.s([],14214)},26287,e=>{"use strict";var t=e.i(67405);function n(e){let n=0,a=0,s=0,r=0,i=0,o=new Set;for(let t of e)if("user"===t.type&&n++,"queue-operation"===t.type&&i++,"assistant"===t.type){for(let e of(a++,t.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?r++:s++);t.message.model&&o.add(t.message.model)}let l="";if(e.length>=2){let n=e[e.length-1].timestampMs-e[0].timestampMs;l=(0,t.formatDuration)(n)}return{turnCount:i,userCount:n,assistantCount:a,toolCallCount:s,subagentCount:r,duration:l,models:Array.from(o)}}e.s(["calculateLogStats",()=>n])}];
5
+ export default _cjs;`;return await (0,t.writeFile)(s,i,"utf-8"),{shimPath:s,shimUrl:(0,a.pathToFileURL)(s).href}}async function m(e,a,s){let i=[e],r=new Set,o=[],m=null;if(s&&a){let e=await h(s,a);o.push(e.shimPath),m=e.shimUrl}for(;i.length>0;){let e=i.shift();if(r.has(e))continue;r.add(e);let a=await (0,t.readFile)(e,"utf-8");m&&(a=a.replace(/from\s+(['"])claudeye\1/g,`from '${m}'`)),s&&(a=a.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${s.replace(/\\/g,"\\\\")}')`));let h=(0,n.dirname)(e),d=new Map;for(let e of[l,u]){let t,s=new RegExp(e.source,e.flags);for(;null!==(t=s.exec(a));){let e=t[2];if(d.has(e))continue;let a=await f(h,e);if(!a)continue;r.has(a)||i.includes(a)||i.push(a);let s=(0,n.relative)(h,a+c).split("\\").join("/");s.startsWith(".")||(s="./"+s),d.set(e,s)}}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"),o.push(p)}return o}async function d(){if(i)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){i=!0;return}let n=globalThis;n[s]=!0;let r=[];try{let t=await o(),n=t?(0,a.pathToFileURL)(t).href:null;r=await m(e,n,t);let s=(0,a.pathToFileURL)(e+c).href;await import(s)}finally{for(let e of(n[s]=!1,r))try{await (0,t.unlink)(e)}catch{}}i=!0}e.s(["ensureEvalsLoaded",()=>d])},14214,88107,71809,39864,e=>{"use strict";var t=e.i(54799),n=e.i(24868),a=e.i(14747),s=e.i(81580);let i=null;function r(){if(i)return i;let e=(0,a.resolve)((0,s.getClaudeProjectsPath)());return i=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let o=new Map;async function l(e,i){let r=(0,s.getClaudeProjectsPath)(),l=(0,a.join)(r,e,`${i}.jsonl`),u=Date.now(),c=o.get(l);if(c&&c.expiresAt>u)return c.hash;let f=await (0,n.stat)(l),h=`${f.mtimeMs}:${f.size}`,m=(0,t.createHash)("sha256").update(h).digest("hex");return o.set(l,{hash:m,expiresAt:u+5e3}),m}async function u(e,i,r){let o=(0,s.getClaudeProjectsPath)(),l=`agent-${r}.jsonl`,u=[(0,a.join)(o,e,l),(0,a.join)(o,e,i,l),(0,a.join)(o,e,i,"subagents",l)];for(let e of(await Promise.allSettled(u.map(e=>(0,n.stat)(e)))))if("fulfilled"===e.status){let n=e.value,a=`${n.mtimeMs}:${n.size}`;return(0,t.createHash)("sha256").update(a).digest("hex")}return""}let c=new WeakMap;function f(e){let n=c.get(e);return n||(n=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),c.set(e,n)),n}e.s(["hashItemCode",()=>f,"hashProjectsPath",()=>r,"hashSessionFile",()=>l,"hashSubagentFile",()=>u],88107);var h=e.i(46786);async function m(e,t){let n=Array(e.length),a=0;async function s(){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 i=Array.from({length:Math.min(t,e.length)},()=>s());return await Promise.all(i),n}e.s(["batchAll",()=>m],71809);var d=e.i(40911);let p=(0,a.join)((0,h.homedir)(),".claudeye","cache");class g{basePath;constructor(e){this.basePath=e||p}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,s){try{let i=this.keyToPath(e);await (0,n.mkdir)((0,a.dirname)(i),{recursive:!0}),await (0,n.writeFile)(i,JSON.stringify({value:t,meta:s}),"utf-8")}catch(t){(0,d.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("/"),s=t.pop()||"",i=(0,a.join)(this.basePath,...t),r=(await (0,n.readdir)(i)).filter(e=>e.endsWith(".json")&&e.startsWith(s));await m(r.map(e=>()=>(0,n.unlink)((0,a.join)(i,e)).catch(()=>{})),50)}catch{}}async close(){}async clearAll(){try{await (0,n.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,n,a){let s=r();return`${s}/${e}/${t}/${n}/item/${a}`}async function $(e,t,n,a,s,i){let r=w();try{let o=await r.get(_(e,t,n,a));if(!o)return null;let u=o.meta,c=i??await l(t,n);if(u.contentHash!==c||u.itemCodeHash!==s)return null;return{value:o.value,meta:u,cached:!0}}catch{return null}}async function v(e,t,n,a,s,i,r){let o=w();try{let u=r??await l(t,n);await o.set(_(e,t,n,a),i,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:s})}catch(s){(0,d.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${n}/${a}:`,s instanceof Error?s.message:s)}}async function A(t,n,a,s,i,r){let o=await $(t,n,a,s,i,r);if(!o)return null;if("evals"!==t&&"enrichments"!==t)return o;let{getCacheInvalidationHook:l}=await e.A(49590),u=l();if(!u)return o;let c={itemName:s,itemKind:t,cachedAt:o.meta.cachedAt,contentHash:o.meta.contentHash,itemCodeHash:o.meta.itemCodeHash,projectName:n,sessionId:a,cachedValue:o.value};try{if(await u(c))return await j(t,n,a,s),null}catch{}return o}async function j(e,t,n,a){let s=w();try{await s.invalidate(_(e,t,n,a))}catch{}}e.s(["getPerItemCacheWithHook",()=>A,"setPerItemCache",()=>v],39864),e.s([],14214)},26287,e=>{"use strict";var t=e.i(67405);function n(e){let n=0,a=0,s=0,i=0,r=0,o=new Set;for(let t of e)if("user"===t.type&&n++,"queue-operation"===t.type&&r++,"assistant"===t.type){for(let e of(a++,t.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?i++:s++);t.message.model&&o.add(t.message.model)}let l="";if(e.length>=2){let n=e[e.length-1].timestampMs-e[0].timestampMs;l=(0,t.formatDuration)(n)}return{turnCount:r,userCount:n,assistantCount:a,toolCallCount:s,subagentCount:i,duration:l,models:Array.from(o)}}e.s(["calculateLogStats",()=>n])}];
6
6
 
7
7
  //# sourceMappingURL=_6a9d92e6._.js.map
@@ -1,7 +1,7 @@
1
- module.exports=[44967,e=>{"use strict";function t(e){function t(){let t=globalThis;return t[e]||(t[e]=[]),t[e]}return{register(e){let n=t(),a=n.findIndex(t=>t.name===e.name);a>=0?n[a]=e:n.push(e)},getAll:()=>t(),getSessionScoped:()=>t().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>t().filter(t=>("subagent"===t.scope||"both"===t.scope)&&(!t.subagentType||!e||t.subagentType===e)),hasSubagent:()=>t().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>t().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>t])},42315,(e,t,n)=>{"use strict";t.exports=e.r(18622)},81580,e=>{"use strict";var t=e.i(46786),n=e.i(14747);function a(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,n.join)((0,t.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>a])},40911,e=>{"use strict";let t={info:0,warn:1,error:2};function n(e){return t[e]>=t.warn}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function s(e,t){n("warn")&&(void 0!==t?console.warn(a("WARN"),e,t):console.warn(a("WARN"),e))}function r(e,t){void 0!==t?console.error(a("ERROR"),e,t):console.error(a("ERROR"),e)}function i(e,t,s){if(!n("info"))return;let r=[`user=${e}`,`action=${t}`];s&&r.push(s),console.log(a("ACTIVITY"),r.join(" "))}async function o(){try{let{cookies:t}=await e.A(6878),n=await t(),a=n.get("claudeye_session")?.value;if(!a)return"anonymous";let s=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:r}=await e.A(26404);return await r(a,s)??"anonymous"}catch{return"anonymous"}}e.s(["getRequestUsername",()=>o,"logActivity",()=>i,"logError",()=>r,"logWarn",()=>s])},54214,83534,41444,67405,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(81580);async function s(e,a,s,r){let i=`agent-${r}.jsonl`;for(let r of[(0,n.join)(e,a,i),(0,n.join)(e,a,s,i),(0,n.join)(e,a,s,"subagents",i)])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,s=new Map,r=n?.maxSize;return async(...n)=>{let i=JSON.stringify(n),o=a.get(i);if(o&&Date.now()<o.expiry)return r&&(a.delete(i),a.set(i,o)),o.data;let l=s.get(i);if(l)return l;let u=e(...n).then(e=>{if(s.delete(i),r&&a.size>=r){let e=a.keys().next().value;a.delete(e)}return a.set(i,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw s.delete(i),e});return s.set(i,u),u}}function i(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function o(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 l(e){let t=i(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:l(n)}}async function c(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),a=new Map,s=[],r=[],i=new Set,c=!1;for(let e=0;e<n.length;e++){let o;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let l=n[e];try{o=JSON.parse(l)}catch{continue}let f={...o,_source:t};r.push(f);let m=o.type,h=o.timestamp;if(!h)continue;let p=new Date(h),d=p.getTime();if("user"===m){let e=o.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=o.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&i.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:s,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:h,timestampMs:d,content:s,images:r,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";s.push({type:"user",...u(o,h,p,t),message:{role:"user",content:n}});continue}if("assistant"===m){let e=o.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;s.push({type:"assistant",...u(o,h,p,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===m||"progress"===m||"system"===m){s.push({type:m,...u(o,h,p,t),raw:{...o}});continue}if("queue-operation"===m){let e=c?"Session Resumed":"Session Started";c=!0,s.push({type:"queue-operation",...u(o,h,p,t),label:e});continue}}let f=0;for(let e of s)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 s=new Date(n.timestamp),r=n.timestampMs-e.timestampMs;t.result={timestamp:n.timestamp,timestampFormatted:l(s),content:n.content,images:n.images,durationMs:r,durationFormatted:o(r)},n.agentId&&(t.subagentId=n.agentId)}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:r,subagentIds:Array.from(i)}}async function f(e,r){let i=(0,a.getClaudeProjectsPath)(),o=(0,n.join)(i,e,`${r}.jsonl`),l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f,subagentIds:m}=await c(l,"session");if(0===m.length)return{entries:u,rawLines:f,subagentIds:[]};let h=await Promise.allSettled(m.map(async n=>{let a=`agent-${n}`,o=await s(i,e,r,n);if(!o)return null;let l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f}=await c(l,a);return{entries:u,rawLines:f}})),p=[...u],d=[...f];for(let e of h)"fulfilled"===e.status&&e.value&&(p.push(...e.value.entries),d.push(...e.value.rawLines));return p.length>500&&await new Promise(e=>setImmediate(e)),p.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:p,rawLines:d,subagentIds:m}}e.s(["runtimeCache",()=>r],83534),e.s(["formatDate",()=>i],41444),e.s(["formatDuration",()=>o],67405);let m=r((e,t)=>f(e,t),60,{maxSize:50});e.s(["getCachedSessionLog",0,m],54214)},28753,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(92509);let s="__CLAUDEYE_LOADING_EVALS__",r=!1;async function i(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function o(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,n.resolve)(e,"index.js");if(await i(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 i(e))return e;return null}let l=/(?: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 i(e))return e;return null}async function m(e,n){let s=e+".__claudeye_esm_shim__.mjs",r=`import _cjs from '${n}';
1
+ module.exports=[44967,e=>{"use strict";function t(e){function t(){let t=globalThis;return t[e]||(t[e]=[]),t[e]}return{register(e){let n=t(),a=n.findIndex(t=>t.name===e.name);a>=0?n[a]=e:n.push(e)},getAll:()=>t(),getSessionScoped:()=>t().filter(e=>"session"===e.scope||"both"===e.scope),getSubagentScoped:e=>t().filter(t=>("subagent"===t.scope||"both"===t.scope)&&(!t.subagentType||!e||t.subagentType===e)),hasSubagent:()=>t().some(e=>"subagent"===e.scope||"both"===e.scope),has:()=>t().length>0,clear(){globalThis[e]=[]}}}e.s(["createScopedRegistry",()=>t])},42315,(e,t,n)=>{"use strict";t.exports=e.r(18622)},81580,e=>{"use strict";var t=e.i(46786),n=e.i(14747);function a(){let e=process.env.CLAUDE_PROJECTS_PATH;return e||(0,n.join)((0,t.homedir)(),".claude","projects")}e.s(["getClaudeProjectsPath",()=>a])},40911,e=>{"use strict";let t={info:0,warn:1,error:2};function n(e){return t[e]>=t.warn}function a(e){return`[claudeye ${new Date().toISOString()}] ${e}`}function s(e,t){n("warn")&&(void 0!==t?console.warn(a("WARN"),e,t):console.warn(a("WARN"),e))}function i(e,t){void 0!==t?console.error(a("ERROR"),e,t):console.error(a("ERROR"),e)}function r(e,t,s){if(!n("info"))return;let i=[`user=${e}`,`action=${t}`];s&&i.push(s),console.log(a("ACTIVITY"),i.join(" "))}async function o(){try{let{cookies:t}=await e.A(6878),n=await t(),a=n.get("claudeye_session")?.value;if(!a)return"anonymous";let s=process.env.CLAUDEYE_AUTH_SECRET??"",{verifySessionCookie:i}=await e.A(26404);return await i(a,s)??"anonymous"}catch{return"anonymous"}}e.s(["getRequestUsername",()=>o,"logActivity",()=>r,"logError",()=>i,"logWarn",()=>s])},54214,83534,41444,67405,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(81580);async function s(e,a,s,i){let r=`agent-${i}.jsonl`;for(let i of[(0,n.join)(e,a,r),(0,n.join)(e,a,s,r),(0,n.join)(e,a,s,"subagents",r)])if(!(0,n.relative)(e,i).startsWith(".."))try{return await (0,t.access)(i),i}catch(e){if("ENOENT"!==e.code)continue}return null}function i(e,t,n){let a=new Map,s=new Map,i=n?.maxSize;return async(...n)=>{let r=JSON.stringify(n),o=a.get(r);if(o&&Date.now()<o.expiry)return i&&(a.delete(r),a.set(r,o)),o.data;let l=s.get(r);if(l)return l;let u=e(...n).then(e=>{if(s.delete(r),i&&a.size>=i){let e=a.keys().next().value;a.delete(e)}return a.set(r,{data:e,expiry:Date.now()+1e3*t}),e},e=>{throw s.delete(r),e});return s.set(r,u),u}}function r(e){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)}function o(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 l(e){let t=r(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:l(n)}}async function c(e,t){let n=e.split("\n").filter(e=>""!==e.trim()),a=new Map,s=[],i=[],r=new Set,c=!1;for(let e=0;e<n.length;e++){let o;e>0&&e%200==0&&await new Promise(e=>setImmediate(e));let l=n[e];try{o=JSON.parse(l)}catch{continue}let f={...o,_source:t};i.push(f);let h=o.type,m=o.timestamp;if(!m)continue;let d=new Date(m),p=d.getTime();if("user"===h){let e=o.message;if(Array.isArray(e?.content)){let t=e.content;if(t.some(e=>"tool_result"===e.type)){let e=o.toolUseResult,n="string"==typeof e?.agentId?e.agentId:void 0;for(let e of(n&&/^[a-f0-9]+$/.test(n)&&r.add(n),t)){if("tool_result"!==e.type)continue;let t=e.tool_use_id;if(!t)continue;let{text:s,images:i}=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:s,images:i,agentId:n})}continue}}let n="string"==typeof e?.content?e.content:"";s.push({type:"user",...u(o,m,d,t),message:{role:"user",content:n}});continue}if("assistant"===h){let e=o.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;s.push({type:"assistant",...u(o,m,d,t),message:{role:"assistant",content:n,model:e?.model}});continue}if("file-history-snapshot"===h||"progress"===h||"system"===h){s.push({type:h,...u(o,m,d,t),raw:{...o}});continue}if("queue-operation"===h){let e=c?"Session Resumed":"Session Started";c=!0,s.push({type:"queue-operation",...u(o,m,d,t),label:e});continue}}let f=0;for(let e of s)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 s=new Date(n.timestamp),i=n.timestampMs-e.timestampMs;t.result={timestamp:n.timestamp,timestampFormatted:l(s),content:n.content,images:n.images,durationMs:i,durationFormatted:o(i)},n.agentId&&(t.subagentId=n.agentId)}return s.length>500&&await new Promise(e=>setImmediate(e)),s.sort((e,t)=>e.timestampMs-t.timestampMs),{entries:s,rawLines:i,subagentIds:Array.from(r)}}async function f(e,i){let r=(0,a.getClaudeProjectsPath)(),o=(0,n.join)(r,e,`${i}.jsonl`),l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f,subagentIds:h}=await c(l,"session");if(0===h.length)return{entries:u,rawLines:f,subagentIds:[]};let m=await Promise.allSettled(h.map(async n=>{let a=`agent-${n}`,o=await s(r,e,i,n);if(!o)return null;let l=await (0,t.readFile)(o,"utf-8"),{entries:u,rawLines:f}=await c(l,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",()=>i],83534),e.s(["formatDate",()=>r],41444),e.s(["formatDuration",()=>o],67405);let h=i((e,t)=>f(e,t),60,{maxSize:50});e.s(["getCachedSessionLog",0,h],54214)},28753,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(92509);let s="__CLAUDEYE_LOADING_EVALS__",i=!1;async function r(e){try{return await (0,t.access)(e),!0}catch{return!1}}async function o(){let e=process.env.CLAUDEYE_DIST_PATH;if(e){let t=(0,n.resolve)(e,"index.js");if(await r(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 r(e))return e;return null}let l=/(?: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 r(e))return e;return null}async function h(e,n){let s=e+".__claudeye_esm_shim__.mjs",i=`import _cjs from '${n}';
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)(s,r,"utf-8"),{shimPath:s,shimUrl:(0,a.pathToFileURL)(s).href}}async function h(e,a,s){let r=[e],i=new Set,o=[],h=null;if(s&&a){let e=await m(s,a);o.push(e.shimPath),h=e.shimUrl}for(;r.length>0;){let e=r.shift();if(i.has(e))continue;i.add(e);let a=await (0,t.readFile)(e,"utf-8");h&&(a=a.replace(/from\s+(['"])claudeye\1/g,`from '${h}'`)),s&&(a=a.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${s.replace(/\\/g,"\\\\")}')`));let m=(0,n.dirname)(e),p=new Map;for(let e of[l,u]){let t,s=new RegExp(e.source,e.flags);for(;null!==(t=s.exec(a));){let e=t[2];if(p.has(e))continue;let a=await f(m,e);if(!a)continue;i.has(a)||r.includes(a)||r.push(a);let s=(0,n.relative)(m,a+c).split("\\").join("/");s.startsWith(".")||(s="./"+s),p.set(e,s)}}for(let e of[...p.keys()].sort((e,t)=>t.length-e.length)){let t=p.get(e),n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");a=(a=a.replace(RegExp(`'${n}'`,"g"),`'${t}'`)).replace(RegExp(`"${n}"`,"g"),`"${t}"`)}let d=e+c;await (0,t.writeFile)(d,a,"utf-8"),o.push(d)}return o}async function p(){if(r)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){r=!0;return}let n=globalThis;n[s]=!0;let i=[];try{let t=await o(),n=t?(0,a.pathToFileURL)(t).href:null;i=await h(e,n,t);let s=(0,a.pathToFileURL)(e+c).href;await import(s)}finally{for(let e of(n[s]=!1,i))try{await (0,t.unlink)(e)}catch{}}r=!0}e.s(["ensureEvalsLoaded",()=>p])},14214,88107,71809,39864,e=>{"use strict";var t=e.i(54799),n=e.i(24868),a=e.i(14747),s=e.i(81580);let r=null;function i(){if(r)return r;let e=(0,a.resolve)((0,s.getClaudeProjectsPath)());return r=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let o=new Map;async function l(e,r){let i=(0,s.getClaudeProjectsPath)(),l=(0,a.join)(i,e,`${r}.jsonl`),u=Date.now(),c=o.get(l);if(c&&c.expiresAt>u)return c.hash;let f=await (0,n.stat)(l),m=`${f.mtimeMs}:${f.size}`,h=(0,t.createHash)("sha256").update(m).digest("hex");return o.set(l,{hash:h,expiresAt:u+5e3}),h}async function u(e,r,i){let o=(0,s.getClaudeProjectsPath)(),l=`agent-${i}.jsonl`,u=[(0,a.join)(o,e,l),(0,a.join)(o,e,r,l),(0,a.join)(o,e,r,"subagents",l)];for(let e of(await Promise.allSettled(u.map(e=>(0,n.stat)(e)))))if("fulfilled"===e.status){let n=e.value,a=`${n.mtimeMs}:${n.size}`;return(0,t.createHash)("sha256").update(a).digest("hex")}return""}let c=new WeakMap;function f(e){let n=c.get(e);return n||(n=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),c.set(e,n)),n}e.s(["hashItemCode",()=>f,"hashProjectsPath",()=>i,"hashSessionFile",()=>l,"hashSubagentFile",()=>u],88107);var m=e.i(46786);async function h(e,t){let n=Array(e.length),a=0;async function s(){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)},()=>s());return await Promise.all(r),n}e.s(["batchAll",()=>h],71809);var p=e.i(40911);let d=(0,a.join)((0,m.homedir)(),".claudeye","cache");class g{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,s){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:s}),"utf-8")}catch(t){(0,p.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("/"),s=t.pop()||"",r=(0,a.join)(this.basePath,...t),i=(await (0,n.readdir)(r)).filter(e=>e.endsWith(".json")&&e.startsWith(s));await h(i.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 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,n,a){let s=i();return`${s}/${e}/${t}/${n}/item/${a}`}async function $(e,t,n,a,s,r){let i=w();try{let o=await i.get(_(e,t,n,a));if(!o)return null;let u=o.meta,c=r??await l(t,n);if(u.contentHash!==c||u.itemCodeHash!==s)return null;return{value:o.value,meta:u,cached:!0}}catch{return null}}async function j(e,t,n,a,s,r,i){let o=w();try{let u=i??await l(t,n);await o.set(_(e,t,n,a),r,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:s})}catch(s){(0,p.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${n}/${a}:`,s instanceof Error?s.message:s)}}e.s(["getPerItemCache",()=>$,"setPerItemCache",()=>j],39864),e.s([],14214)},26287,e=>{"use strict";var t=e.i(67405);function n(e){let n=0,a=0,s=0,r=0,i=0,o=new Set;for(let t of e)if("user"===t.type&&n++,"queue-operation"===t.type&&i++,"assistant"===t.type){for(let e of(a++,t.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?r++:s++);t.message.model&&o.add(t.message.model)}let l="";if(e.length>=2){let n=e[e.length-1].timestampMs-e[0].timestampMs;l=(0,t.formatDuration)(n)}return{turnCount:i,userCount:n,assistantCount:a,toolCallCount:s,subagentCount:r,duration:l,models:Array.from(o)}}e.s(["calculateLogStats",()=>n])}];
5
+ export default _cjs;`;return await (0,t.writeFile)(s,i,"utf-8"),{shimPath:s,shimUrl:(0,a.pathToFileURL)(s).href}}async function m(e,a,s){let i=[e],r=new Set,o=[],m=null;if(s&&a){let e=await h(s,a);o.push(e.shimPath),m=e.shimUrl}for(;i.length>0;){let e=i.shift();if(r.has(e))continue;r.add(e);let a=await (0,t.readFile)(e,"utf-8");m&&(a=a.replace(/from\s+(['"])claudeye\1/g,`from '${m}'`)),s&&(a=a.replace(/require\s*\(\s*(['"])claudeye\1\s*\)/g,`require('${s.replace(/\\/g,"\\\\")}')`));let h=(0,n.dirname)(e),d=new Map;for(let e of[l,u]){let t,s=new RegExp(e.source,e.flags);for(;null!==(t=s.exec(a));){let e=t[2];if(d.has(e))continue;let a=await f(h,e);if(!a)continue;r.has(a)||i.includes(a)||i.push(a);let s=(0,n.relative)(h,a+c).split("\\").join("/");s.startsWith(".")||(s="./"+s),d.set(e,s)}}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"),o.push(p)}return o}async function d(){if(i)return;let e=process.env.CLAUDEYE_EVALS_MODULE;if(!e){i=!0;return}let n=globalThis;n[s]=!0;let r=[];try{let t=await o(),n=t?(0,a.pathToFileURL)(t).href:null;r=await m(e,n,t);let s=(0,a.pathToFileURL)(e+c).href;await import(s)}finally{for(let e of(n[s]=!1,r))try{await (0,t.unlink)(e)}catch{}}i=!0}e.s(["ensureEvalsLoaded",()=>d])},14214,88107,71809,39864,e=>{"use strict";var t=e.i(54799),n=e.i(24868),a=e.i(14747),s=e.i(81580);let i=null;function r(){if(i)return i;let e=(0,a.resolve)((0,s.getClaudeProjectsPath)());return i=(0,t.createHash)("sha256").update(e).digest("hex").slice(0,8)}let o=new Map;async function l(e,i){let r=(0,s.getClaudeProjectsPath)(),l=(0,a.join)(r,e,`${i}.jsonl`),u=Date.now(),c=o.get(l);if(c&&c.expiresAt>u)return c.hash;let f=await (0,n.stat)(l),h=`${f.mtimeMs}:${f.size}`,m=(0,t.createHash)("sha256").update(h).digest("hex");return o.set(l,{hash:m,expiresAt:u+5e3}),m}async function u(e,i,r){let o=(0,s.getClaudeProjectsPath)(),l=`agent-${r}.jsonl`,u=[(0,a.join)(o,e,l),(0,a.join)(o,e,i,l),(0,a.join)(o,e,i,"subagents",l)];for(let e of(await Promise.allSettled(u.map(e=>(0,n.stat)(e)))))if("fulfilled"===e.status){let n=e.value,a=`${n.mtimeMs}:${n.size}`;return(0,t.createHash)("sha256").update(a).digest("hex")}return""}let c=new WeakMap;function f(e){let n=c.get(e);return n||(n=(0,t.createHash)("sha256").update(e.toString()).digest("hex"),c.set(e,n)),n}e.s(["hashItemCode",()=>f,"hashProjectsPath",()=>r,"hashSessionFile",()=>l,"hashSubagentFile",()=>u],88107);var h=e.i(46786);async function m(e,t){let n=Array(e.length),a=0;async function s(){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 i=Array.from({length:Math.min(t,e.length)},()=>s());return await Promise.all(i),n}e.s(["batchAll",()=>m],71809);var d=e.i(40911);let p=(0,a.join)((0,h.homedir)(),".claudeye","cache");class g{basePath;constructor(e){this.basePath=e||p}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,s){try{let i=this.keyToPath(e);await (0,n.mkdir)((0,a.dirname)(i),{recursive:!0}),await (0,n.writeFile)(i,JSON.stringify({value:t,meta:s}),"utf-8")}catch(t){(0,d.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("/"),s=t.pop()||"",i=(0,a.join)(this.basePath,...t),r=(await (0,n.readdir)(i)).filter(e=>e.endsWith(".json")&&e.startsWith(s));await m(r.map(e=>()=>(0,n.unlink)((0,a.join)(i,e)).catch(()=>{})),50)}catch{}}async close(){}async clearAll(){try{await (0,n.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,n,a){let s=r();return`${s}/${e}/${t}/${n}/item/${a}`}async function $(e,t,n,a,s,i){let r=w();try{let o=await r.get(_(e,t,n,a));if(!o)return null;let u=o.meta,c=i??await l(t,n);if(u.contentHash!==c||u.itemCodeHash!==s)return null;return{value:o.value,meta:u,cached:!0}}catch{return null}}async function v(e,t,n,a,s,i,r){let o=w();try{let u=r??await l(t,n);await o.set(_(e,t,n,a),i,{cachedAt:new Date().toISOString(),contentHash:u,itemCodeHash:s})}catch(s){(0,d.logWarn)(`[cache] setPerItemCache failed for ${e}/${t}/${n}/${a}:`,s instanceof Error?s.message:s)}}async function A(t,n,a,s,i,r){let o=await $(t,n,a,s,i,r);if(!o)return null;if("evals"!==t&&"enrichments"!==t)return o;let{getCacheInvalidationHook:l}=await e.A(49590),u=l();if(!u)return o;let c={itemName:s,itemKind:t,cachedAt:o.meta.cachedAt,contentHash:o.meta.contentHash,itemCodeHash:o.meta.itemCodeHash,projectName:n,sessionId:a,cachedValue:o.value};try{if(await u(c))return await j(t,n,a,s),null}catch{}return o}async function j(e,t,n,a){let s=w();try{await s.invalidate(_(e,t,n,a))}catch{}}e.s(["getPerItemCacheWithHook",()=>A,"setPerItemCache",()=>v],39864),e.s([],14214)},26287,e=>{"use strict";var t=e.i(67405);function n(e){let n=0,a=0,s=0,i=0,r=0,o=new Set;for(let t of e)if("user"===t.type&&n++,"queue-operation"===t.type&&r++,"assistant"===t.type){for(let e of(a++,t.message.content))"tool_use"===e.type&&("Task"===e.name&&(e.subagentType||e.subagentId)?i++:s++);t.message.model&&o.add(t.message.model)}let l="";if(e.length>=2){let n=e[e.length-1].timestampMs-e[0].timestampMs;l=(0,t.formatDuration)(n)}return{turnCount:r,userCount:n,assistantCount:a,toolCallCount:s,subagentCount:i,duration:l,models:Array.from(o)}}e.s(["calculateLogStats",()=>n])}];
6
6
 
7
7
  //# sourceMappingURL=_7cb7a702._.js.map
@@ -1,4 +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}})},91560,7420,e=>{"use strict";var r=e.i(45015),t=e.i(28753),n=e.i(84234),s=e.i(14543);async function a(e,r,t,a,o,i){let u=o??(0,n.getRegisteredEnrichers)(),c={entries:e,stats:r,projectName:t,sessionId:a,source:"session",...i};return(0,s.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",()=>a],7420);var o=e.i(54214),i=e.i(26287);e.i(14214);var u=e.i(88107),c=e.i(39864);async function l(e,r,s,f=!1){try{await (0,t.ensureEvalsLoaded)();let l=(0,n.getSessionScopedEnrichers)().find(e=>e.name===s);if(!l)return{ok:!1,error:`Enricher "${s}" not found`};let d=await (0,u.hashSessionFile)(e,r);if(!f&&d){let t=(0,u.hashItemCode)(l.fn),n=await (0,c.getPerItemCache)("enrichments",e,r,l.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 a(p,h,e,r,[l],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from enricher"};if(d){let t=(0,u.hashItemCode)(l.fn);await (0,c.setPerItemCache)("enrichments",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,"78fc6fa409ebb479ca1901235e6a122d86d3b86806",null),e.s(["processSessionEnrichment",()=>l],91560)}];
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,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],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}})},91560,7420,e=>{"use strict";var r=e.i(45015),t=e.i(28753),n=e.i(84234),s=e.i(14543);async function o(e,r,t,o,a,i){let u=a??(0,n.getRegisteredEnrichers)(),c={entries:e,stats:r,projectName:t,sessionId:o,source:"session",...i};return(0,s.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",()=>o],7420);var a=e.i(54214),i=e.i(26287);e.i(14214);var u=e.i(88107),c=e.i(39864);async function l(e,r,s,f=!1){try{await (0,t.ensureEvalsLoaded)();let l=(0,n.getSessionScopedEnrichers)().find(e=>e.name===s);if(!l)return{ok:!1,error:`Enricher "${s}" not found`};let d=await (0,u.hashSessionFile)(e,r);if(!f&&d){let t=(0,u.hashItemCode)(l.fn),n=await (0,c.getPerItemCacheWithHook)("enrichments",e,r,l.name,t,d);if(n)return{ok:!0,result:n.value}}let{entries:m,rawLines:p}=await (0,a.getCachedSessionLog)(e,r),h=(0,i.calculateLogStats)(m),g=(await o(p,h,e,r,[l],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from enricher"};if(d){let t=(0,u.hashItemCode)(l.fn);await (0,c.setPerItemCache)("enrichments",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,"781f06613c8492095119eb9069a98a494e980d6811",null),e.s(["processSessionEnrichment",()=>l],91560)}];
3
3
 
4
4
  //# sourceMappingURL=_d3c87a9f._.js.map
@@ -1,4 +1,4 @@
1
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}})},81929,22308,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(77879),n=e.i(14543);async function a(e,r,t,a,o,i){let u=o??(0,s.getRegisteredEvals)(),l={entries:e,stats:r,projectName:t,sessionId:a,source:"session",...i};return(0,n.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",()=>a],22308);var o=e.i(54214),i=e.i(26287);e.i(14214);var u=e.i(88107),l=e.i(39864);async function c(e,r,n,f=!1){try{await (0,t.ensureEvalsLoaded)();let c=(0,s.getSessionScopedEvals)().find(e=>e.name===n);if(!c)return{ok:!1,error:`Eval "${n}" not found`};let d=await (0,u.hashSessionFile)(e,r);if(!f&&d){let t=(0,u.hashItemCode)(c.fn),s=await (0,l.getPerItemCache)("evals",e,r,c.name,t,d);if(s)return{ok:!0,result:s.value}}let{entries:m,rawLines:p}=await (0,o.getCachedSessionLog)(e,r),v=(0,i.calculateLogStats)(m),g=(await a(p,v,e,r,[c],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from eval"};if(d){let t=(0,u.hashItemCode)(c.fn);await (0,l.setPerItemCache)("evals",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,"780926eadee20bc11b06cafee5544acf8c7f81047f",null),e.s(["processSessionEval",()=>c],81929)}];
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}})},81929,22308,e=>{"use strict";var r=e.i(45015),t=e.i(28753),s=e.i(77879),n=e.i(14543);async function a(e,r,t,a,o,i){let u=o??(0,s.getRegisteredEvals)(),l={entries:e,stats:r,projectName:t,sessionId:a,source:"session",...i};return(0,n.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",()=>a],22308);var o=e.i(54214),i=e.i(26287);e.i(14214);var u=e.i(88107),l=e.i(39864);async function c(e,r,n,f=!1){try{await (0,t.ensureEvalsLoaded)();let c=(0,s.getSessionScopedEvals)().find(e=>e.name===n);if(!c)return{ok:!1,error:`Eval "${n}" not found`};let d=await (0,u.hashSessionFile)(e,r);if(!f&&d){let t=(0,u.hashItemCode)(c.fn),s=await (0,l.getPerItemCacheWithHook)("evals",e,r,c.name,t,d);if(s)return{ok:!0,result:s.value}}let{entries:m,rawLines:p}=await (0,o.getCachedSessionLog)(e,r),v=(0,i.calculateLogStats)(m),g=(await a(p,v,e,r,[c],{source:"session"})).results[0];if(!g)return{ok:!1,error:"No result returned from eval"};if(d){let t=(0,u.hashItemCode)(c.fn);await (0,l.setPerItemCache)("evals",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,"785bcd1ac71200d35d1edeb065424754b4bc27ce7c",null),e.s(["processSessionEval",()=>c],81929)}];
3
3
 
4
4
  //# sourceMappingURL=_fb07f1d4._.js.map
@@ -2,6 +2,6 @@ module.exports=[63407,4152,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(
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 j(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 C(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 x(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",()=>C,"getPerItemCache",()=>_,"getPerItemCacheMeta",()=>j,"setConditionCache",()=>x,"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,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)}];
6
6
 
7
7
  //# sourceMappingURL=lib_6cff0ca5._.js.map
@@ -2,6 +2,6 @@ module.exports=[63407,4152,e=>{"use strict";var t=e.i(24868),n=e.i(14747),a=e.i(
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 j(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 C(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 x(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",()=>C,"getPerItemCache",()=>_,"getPerItemCacheMeta",()=>j,"setConditionCache",()=>x,"setPerItemCache",()=>$],37573),e.s([],99893)}];
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)}];
6
6
 
7
7
  //# sourceMappingURL=lib_74f62736._.js.map