@claudeye/linux-x64 1.0.6-beta.0 → 1.0.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/standalone/.next/BUILD_ID +1 -1
- package/assets/standalone/.next/build-manifest.json +2 -2
- package/assets/standalone/.next/prerender-manifest.json +3 -3
- package/assets/standalone/.next/server/app/_global-error.html +2 -2
- package/assets/standalone/.next/server/app/_global-error.rsc +1 -1
- package/assets/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_not-found/page/server-reference-manifest.json +2 -2
- package/assets/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/_not-found.html +2 -2
- package/assets/standalone/.next/server/app/_not-found.rsc +7 -7
- package/assets/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +7 -7
- package/assets/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
- package/assets/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page/server-reference-manifest.json +5 -5
- package/assets/standalone/.next/server/app/dashboard/[viewName]/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/dashboard/page/server-reference-manifest.json +5 -5
- package/assets/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/hooks/page/server-reference-manifest.json +4 -4
- package/assets/standalone/.next/server/app/hooks/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/login/page/server-reference-manifest.json +3 -3
- package/assets/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/login.html +2 -2
- package/assets/standalone/.next/server/app/login.rsc +8 -8
- package/assets/standalone/.next/server/app/login.segments/_full.segment.rsc +8 -8
- package/assets/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/login.segments/_index.segment.rsc +7 -7
- package/assets/standalone/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/assets/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
- package/assets/standalone/.next/server/app/page/server-reference-manifest.json +2 -2
- package/assets/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/project/[name]/page/server-reference-manifest.json +2 -2
- package/assets/standalone/.next/server/app/project/[name]/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/react-loadable-manifest.json +1 -1
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page/server-reference-manifest.json +9 -9
- package/assets/standalone/.next/server/app/project/[name]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/app/queue/page/server-reference-manifest.json +4 -4
- package/assets/standalone/.next/server/app/queue/page_client-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__75048a35._.js +2 -2
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__dd558eee._.js +1 -1
- package/assets/standalone/.next/server/chunks/[root-of-the-server]__f44213d4._.js +1 -1
- package/assets/standalone/.next/server/chunks/_3f3c09bf._.js +2 -2
- package/assets/standalone/.next/server/chunks/_7e07bbd9._.js +1 -1
- package/assets/standalone/.next/server/chunks/_8f856fad._.js +1 -1
- package/assets/standalone/.next/server/chunks/_b8adaa37._.js +2 -2
- package/assets/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_7a66d362.js +1 -1
- package/assets/standalone/.next/server/chunks/package_json_4b1b4d6f._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__637abc80._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__6ec938e4._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__82c381fd._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__99f0c371._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__b9492585._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__cb5a5725._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__d015fef5._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__d4e6c42a._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/[root-of-the-server]__fd646815._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/_14858238._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/_1d335924._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/_76ab933f._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/_87e025a1._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/_b14cf8e4._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/_d7159840._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/app_actions_compute-dashboard_ts_fc151dbb._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/app_hooks_hooks-client_tsx_8b8d68a3._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/app_login_page_tsx_ccc0019b._.js +1 -1
- package/assets/standalone/.next/server/chunks/ssr/app_queue_queue-client_tsx_45f040f7._.js +1 -1
- package/assets/standalone/.next/server/pages/404.html +2 -2
- package/assets/standalone/.next/server/pages/500.html +2 -2
- package/assets/standalone/.next/server/server-reference-manifest.js +1 -1
- package/assets/standalone/.next/server/server-reference-manifest.json +18 -18
- package/assets/standalone/.next/static/chunks/{a5d65bf781dfb2f0.js → 82585682a3e107f3.js} +1 -1
- package/assets/standalone/.next/static/chunks/{a4735a0304ebaca0.js → 82b2a76d2d9cccea.js} +1 -1
- package/assets/standalone/.next/static/chunks/{a8595cb50f9cb3ac.js → a19253bbafc9e81a.js} +1 -1
- package/assets/standalone/.next/static/chunks/{7975c380f829a2b2.js → a5713d3f5e3c1925.js} +1 -1
- package/assets/standalone/.next/static/chunks/{9cfed2ee36dcb1ab.js → af270a82966c6ea0.js} +1 -1
- package/assets/standalone/.next/static/chunks/{f41dc462580bd41c.js → d61bdb51420a3d93.js} +1 -1
- package/assets/standalone/.next/static/chunks/{031494e77da6f4a2.js → ec0a67cad615622d.js} +2 -2
- package/assets/standalone/README.md +19 -6
- package/assets/standalone/package.json +1 -1
- package/bin/claudeye +0 -0
- package/package.json +1 -1
- /package/assets/standalone/.next/static/{yHwkX5eNzdj4Qd7oC82Jw → teCSQMMMN5Os0rBrYjOW0}/_buildManifest.js +0 -0
- /package/assets/standalone/.next/static/{yHwkX5eNzdj4Qd7oC82Jw → teCSQMMMN5Os0rBrYjOW0}/_clientMiddlewareManifest.json +0 -0
- /package/assets/standalone/.next/static/{yHwkX5eNzdj4Qd7oC82Jw → teCSQMMMN5Os0rBrYjOW0}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"00ea388367f31da83fbf502d5f7d5735bd0342bcf7\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 92941,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/login/page\": {\n \"moduleId\": 32581,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/page\": {\n \"moduleId\": 77461,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/project/[name]/page\": {\n \"moduleId\": 12132,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n }\n },\n \"layer\": {\n \"app/_not-found/page\": \"action-browser\",\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\",\n \"app/hooks/page\": \"action-browser\",\n \"app/login/page\": \"action-browser\",\n \"app/page\": \"action-browser\",\n \"app/project/[name]/page\": \"action-browser\",\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\",\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-telemetry-config.ts\",\n \"exportedName\": \"getTelemetryConfig\"\n },\n \"008e47cae8966b5f60d55c9d42d92ed8de3bf66ff6\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 92941,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/login/page\": {\n \"moduleId\": 32581,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/page\": {\n \"moduleId\": 77461,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/project/[name]/page\": {\n \"moduleId\": 12132,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n }\n },\n \"layer\": {\n \"app/_not-found/page\": \"action-browser\",\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\",\n \"app/hooks/page\": \"action-browser\",\n \"app/login/page\": \"action-browser\",\n \"app/page\": \"action-browser\",\n \"app/project/[name]/page\": \"action-browser\",\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\",\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/auth.ts\",\n \"exportedName\": \"logout\"\n },\n \"003f214fea7175669046ecd3077bffd940ccbacb3f\": {\n \"workers\": {\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"listDashboardViews\",\n \"filename\": \"app/actions/list-dashboard-views.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"listDashboardViews\",\n \"filename\": \"app/actions/list-dashboard-views.ts\"\n }\n },\n \"layer\": {\n \"app/dashboard/[viewName]/page\": \"rsc\",\n \"app/dashboard/page\": \"rsc\"\n },\n \"filename\": \"app/actions/list-dashboard-views.ts\",\n \"exportedName\": \"listDashboardViews\"\n },\n \"60652a0bdc3b2a1a24229bb9e1c3ffca85ef7184ba\": {\n \"workers\": {\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"computeDashboard\",\n \"filename\": \"app/actions/compute-dashboard.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"computeDashboard\",\n \"filename\": \"app/actions/compute-dashboard.ts\"\n }\n },\n \"layer\": {\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/compute-dashboard.ts\",\n \"exportedName\": \"computeDashboard\"\n },\n \"40a883899247ccf814d532597aec681937f04a5b48\": {\n \"workers\": {\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"computeAggregates\",\n \"filename\": \"app/actions/compute-aggregates.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"computeAggregates\",\n \"filename\": \"app/actions/compute-aggregates.ts\"\n }\n },\n \"layer\": {\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/compute-aggregates.ts\",\n \"exportedName\": \"computeAggregates\"\n },\n \"40e87c81d95c5d252392da647533ff7d92fc1a5282\": {\n \"workers\": {\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"getHookActivityAction\",\n \"filename\": \"app/actions/get-hook-activity.ts\"\n }\n },\n \"layer\": {\n \"app/hooks/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-hook-activity.ts\",\n \"exportedName\": \"getHookActivityAction\"\n },\n \"608e8bf08e8be168029e53262e1534ce1d7f188bbc\": {\n \"workers\": {\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"searchHookActivityAction\",\n \"filename\": \"app/actions/get-hook-activity.ts\"\n }\n },\n \"layer\": {\n \"app/hooks/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-hook-activity.ts\",\n \"exportedName\": \"searchHookActivityAction\"\n },\n \"40386beab48853f66e230490146dba0ee269bf4c5e\": {\n \"workers\": {\n \"app/login/page\": {\n \"moduleId\": 32581,\n \"async\": false,\n \"exportedName\": \"login\",\n \"filename\": \"app/actions/auth.ts\"\n }\n },\n \"layer\": {\n \"app/login/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/auth.ts\",\n \"exportedName\": \"login\"\n },\n \"785d9699ab41c222c0b92ad5bbb9349eed89d7370c\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"checkEvalCacheAndList\",\n \"filename\": \"app/actions/check-eval-cache.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/check-eval-cache.ts\",\n \"exportedName\": \"checkEvalCacheAndList\"\n },\n \"607eb35595068b95132050f015666275793bdf5807\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"clearAlertMarker\",\n \"filename\": \"app/actions/clear-alert-marker.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/clear-alert-marker.ts\",\n \"exportedName\": \"clearAlertMarker\"\n },\n \"7849fda4c71689f7e2ce7471ae0119ff8fc3e321f2\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"invalidateSessionItemCaches\",\n \"filename\": \"app/actions/invalidate-session-caches.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/invalidate-session-caches.ts\",\n \"exportedName\": \"invalidateSessionItemCaches\"\n },\n \"78414b2c67729616b6881d1798bf6786138fdfd87e\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"checkEnrichmentCacheAndList\",\n \"filename\": \"app/actions/check-enrichment-cache.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/check-enrichment-cache.ts\",\n \"exportedName\": \"checkEnrichmentCacheAndList\"\n },\n \"781cec937f6788ff41cd28b472c45a9781e32bce50\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"checkActionCacheAndList\",\n \"filename\": \"app/actions/check-action-cache.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/check-action-cache.ts\",\n \"exportedName\": \"checkActionCacheAndList\"\n },\n \"7caca7ce098391160f360f96a0ec6089ac459ce9ed\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"invalidateSessionItemCache\",\n \"filename\": \"app/actions/invalidate-session-caches.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/invalidate-session-caches.ts\",\n \"exportedName\": \"invalidateSessionItemCache\"\n },\n \"00c8284c8c865df1127d4bee26e3c280c9107ef7be\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"getQueueStatusAction\",\n \"filename\": \"app/actions/get-queue-status.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-queue-status.ts\",\n \"exportedName\": \"getQueueStatusAction\"\n },\n \"40e99e994c9c95aa79066a1d6757d501e063437d44\": {\n \"workers\": {\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"getCompletedHistoryAction\",\n \"filename\": \"app/actions/get-completed-history.ts\"\n }\n },\n \"layer\": {\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-completed-history.ts\",\n \"exportedName\": \"getCompletedHistoryAction\"\n },\n \"6078659c53034096f479f06f53b48c882308730e14\": {\n \"workers\": {\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"searchCompletedHistoryAction\",\n \"filename\": \"app/actions/get-completed-history.ts\"\n }\n },\n \"layer\": {\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-completed-history.ts\",\n \"exportedName\": \"searchCompletedHistoryAction\"\n }\n },\n \"edge\": {},\n \"encryptionKey\": \"ETw1xTMub3KoJpK3WZIxPrMdP48y3zC0CqZaqGhmwEo=\"\n}"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"006dea2c9f9d0079f35638573b6ae0afb860f65ee9\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 92941,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/login/page\": {\n \"moduleId\": 32581,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/page\": {\n \"moduleId\": 77461,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/project/[name]/page\": {\n \"moduleId\": 12132,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n },\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"getTelemetryConfig\",\n \"filename\": \"app/actions/get-telemetry-config.ts\"\n }\n },\n \"layer\": {\n \"app/_not-found/page\": \"action-browser\",\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\",\n \"app/hooks/page\": \"action-browser\",\n \"app/login/page\": \"action-browser\",\n \"app/page\": \"action-browser\",\n \"app/project/[name]/page\": \"action-browser\",\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\",\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-telemetry-config.ts\",\n \"exportedName\": \"getTelemetryConfig\"\n },\n \"007ad4a6093d862b3344037703d4d32a52b660b876\": {\n \"workers\": {\n \"app/_not-found/page\": {\n \"moduleId\": 92941,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/login/page\": {\n \"moduleId\": 32581,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/page\": {\n \"moduleId\": 77461,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/project/[name]/page\": {\n \"moduleId\": 12132,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n },\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"logout\",\n \"filename\": \"app/actions/auth.ts\"\n }\n },\n \"layer\": {\n \"app/_not-found/page\": \"action-browser\",\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\",\n \"app/hooks/page\": \"action-browser\",\n \"app/login/page\": \"action-browser\",\n \"app/page\": \"action-browser\",\n \"app/project/[name]/page\": \"action-browser\",\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\",\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/auth.ts\",\n \"exportedName\": \"logout\"\n },\n \"00df5656247712fdd9b9b3629c4340169ae6a5efe2\": {\n \"workers\": {\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"listDashboardViews\",\n \"filename\": \"app/actions/list-dashboard-views.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"listDashboardViews\",\n \"filename\": \"app/actions/list-dashboard-views.ts\"\n }\n },\n \"layer\": {\n \"app/dashboard/[viewName]/page\": \"rsc\",\n \"app/dashboard/page\": \"rsc\"\n },\n \"filename\": \"app/actions/list-dashboard-views.ts\",\n \"exportedName\": \"listDashboardViews\"\n },\n \"6069c8a7d8c1dff505d45d7f765e7cc3cf4ae45176\": {\n \"workers\": {\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"computeDashboard\",\n \"filename\": \"app/actions/compute-dashboard.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"computeDashboard\",\n \"filename\": \"app/actions/compute-dashboard.ts\"\n }\n },\n \"layer\": {\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/compute-dashboard.ts\",\n \"exportedName\": \"computeDashboard\"\n },\n \"40fd48451a4b45b0e76ac4a0a8b64ed0775a76212d\": {\n \"workers\": {\n \"app/dashboard/[viewName]/page\": {\n \"moduleId\": 45252,\n \"async\": false,\n \"exportedName\": \"computeAggregates\",\n \"filename\": \"app/actions/compute-aggregates.ts\"\n },\n \"app/dashboard/page\": {\n \"moduleId\": 45646,\n \"async\": false,\n \"exportedName\": \"computeAggregates\",\n \"filename\": \"app/actions/compute-aggregates.ts\"\n }\n },\n \"layer\": {\n \"app/dashboard/[viewName]/page\": \"action-browser\",\n \"app/dashboard/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/compute-aggregates.ts\",\n \"exportedName\": \"computeAggregates\"\n },\n \"40d9408fa60df4be60078385db6a48604abebfec2c\": {\n \"workers\": {\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"getHookActivityAction\",\n \"filename\": \"app/actions/get-hook-activity.ts\"\n }\n },\n \"layer\": {\n \"app/hooks/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-hook-activity.ts\",\n \"exportedName\": \"getHookActivityAction\"\n },\n \"60644e1f6f817da6d6e6120aa77c5a97df8867cce5\": {\n \"workers\": {\n \"app/hooks/page\": {\n \"moduleId\": 97574,\n \"async\": false,\n \"exportedName\": \"searchHookActivityAction\",\n \"filename\": \"app/actions/get-hook-activity.ts\"\n }\n },\n \"layer\": {\n \"app/hooks/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-hook-activity.ts\",\n \"exportedName\": \"searchHookActivityAction\"\n },\n \"40056b498eb6631e2f66074c98107fb7f714f19982\": {\n \"workers\": {\n \"app/login/page\": {\n \"moduleId\": 32581,\n \"async\": false,\n \"exportedName\": \"login\",\n \"filename\": \"app/actions/auth.ts\"\n }\n },\n \"layer\": {\n \"app/login/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/auth.ts\",\n \"exportedName\": \"login\"\n },\n \"78bb1eb53bec5ec74040940b6fe914fa3deca14b32\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"checkEvalCacheAndList\",\n \"filename\": \"app/actions/check-eval-cache.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/check-eval-cache.ts\",\n \"exportedName\": \"checkEvalCacheAndList\"\n },\n \"60422f234aa85cce91ee76bd24e1740ed92c02a097\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"clearAlertMarker\",\n \"filename\": \"app/actions/clear-alert-marker.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/clear-alert-marker.ts\",\n \"exportedName\": \"clearAlertMarker\"\n },\n \"787b49cfb54ecef3715d762bbf5dfb3831ddf17eb7\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"invalidateSessionItemCaches\",\n \"filename\": \"app/actions/invalidate-session-caches.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/invalidate-session-caches.ts\",\n \"exportedName\": \"invalidateSessionItemCaches\"\n },\n \"7840005ff5b5b5d64450b75a3e2458f6cb3e030d9b\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"checkEnrichmentCacheAndList\",\n \"filename\": \"app/actions/check-enrichment-cache.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/check-enrichment-cache.ts\",\n \"exportedName\": \"checkEnrichmentCacheAndList\"\n },\n \"78a7f0e8d8f113672f5765cbde099bae7acd7d2fc7\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"checkActionCacheAndList\",\n \"filename\": \"app/actions/check-action-cache.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/check-action-cache.ts\",\n \"exportedName\": \"checkActionCacheAndList\"\n },\n \"7ca6a01e914566da8e6e8451464a0eeadcbe5c4e96\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"invalidateSessionItemCache\",\n \"filename\": \"app/actions/invalidate-session-caches.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/invalidate-session-caches.ts\",\n \"exportedName\": \"invalidateSessionItemCache\"\n },\n \"0032d33c4243194f2b3bfbf1adddac929e08a1a691\": {\n \"workers\": {\n \"app/project/[name]/session/[sessionId]/page\": {\n \"moduleId\": 41853,\n \"async\": false,\n \"exportedName\": \"getQueueStatusAction\",\n \"filename\": \"app/actions/get-queue-status.ts\"\n }\n },\n \"layer\": {\n \"app/project/[name]/session/[sessionId]/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-queue-status.ts\",\n \"exportedName\": \"getQueueStatusAction\"\n },\n \"40cf7e431d5ae3f9dc3f5f52a0b6eaba9f0127c161\": {\n \"workers\": {\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"getCompletedHistoryAction\",\n \"filename\": \"app/actions/get-completed-history.ts\"\n }\n },\n \"layer\": {\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-completed-history.ts\",\n \"exportedName\": \"getCompletedHistoryAction\"\n },\n \"6062c9732cb5367b9c737dc7b809451d4ff5d87bc0\": {\n \"workers\": {\n \"app/queue/page\": {\n \"moduleId\": 73119,\n \"async\": false,\n \"exportedName\": \"searchCompletedHistoryAction\",\n \"filename\": \"app/actions/get-completed-history.ts\"\n }\n },\n \"layer\": {\n \"app/queue/page\": \"action-browser\"\n },\n \"filename\": \"app/actions/get-completed-history.ts\",\n \"exportedName\": \"searchCompletedHistoryAction\"\n }\n },\n \"edge\": {},\n \"encryptionKey\": \"orQPLW9c6acnT/q62vyCGfb/n9MoyuCJHN6+q0dyqhs=\"\n}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": {
|
|
3
|
-
"
|
|
3
|
+
"006dea2c9f9d0079f35638573b6ae0afb860f65ee9": {
|
|
4
4
|
"workers": {
|
|
5
5
|
"app/_not-found/page": {
|
|
6
6
|
"moduleId": 92941,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"filename": "app/actions/get-telemetry-config.ts",
|
|
72
72
|
"exportedName": "getTelemetryConfig"
|
|
73
73
|
},
|
|
74
|
-
"
|
|
74
|
+
"007ad4a6093d862b3344037703d4d32a52b660b876": {
|
|
75
75
|
"workers": {
|
|
76
76
|
"app/_not-found/page": {
|
|
77
77
|
"moduleId": 92941,
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"filename": "app/actions/auth.ts",
|
|
143
143
|
"exportedName": "logout"
|
|
144
144
|
},
|
|
145
|
-
"
|
|
145
|
+
"00df5656247712fdd9b9b3629c4340169ae6a5efe2": {
|
|
146
146
|
"workers": {
|
|
147
147
|
"app/dashboard/[viewName]/page": {
|
|
148
148
|
"moduleId": 45252,
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"filename": "app/actions/list-dashboard-views.ts",
|
|
165
165
|
"exportedName": "listDashboardViews"
|
|
166
166
|
},
|
|
167
|
-
"
|
|
167
|
+
"6069c8a7d8c1dff505d45d7f765e7cc3cf4ae45176": {
|
|
168
168
|
"workers": {
|
|
169
169
|
"app/dashboard/[viewName]/page": {
|
|
170
170
|
"moduleId": 45252,
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"filename": "app/actions/compute-dashboard.ts",
|
|
187
187
|
"exportedName": "computeDashboard"
|
|
188
188
|
},
|
|
189
|
-
"
|
|
189
|
+
"40fd48451a4b45b0e76ac4a0a8b64ed0775a76212d": {
|
|
190
190
|
"workers": {
|
|
191
191
|
"app/dashboard/[viewName]/page": {
|
|
192
192
|
"moduleId": 45252,
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"filename": "app/actions/compute-aggregates.ts",
|
|
209
209
|
"exportedName": "computeAggregates"
|
|
210
210
|
},
|
|
211
|
-
"
|
|
211
|
+
"40d9408fa60df4be60078385db6a48604abebfec2c": {
|
|
212
212
|
"workers": {
|
|
213
213
|
"app/hooks/page": {
|
|
214
214
|
"moduleId": 97574,
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
"filename": "app/actions/get-hook-activity.ts",
|
|
224
224
|
"exportedName": "getHookActivityAction"
|
|
225
225
|
},
|
|
226
|
-
"
|
|
226
|
+
"60644e1f6f817da6d6e6120aa77c5a97df8867cce5": {
|
|
227
227
|
"workers": {
|
|
228
228
|
"app/hooks/page": {
|
|
229
229
|
"moduleId": 97574,
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
"filename": "app/actions/get-hook-activity.ts",
|
|
239
239
|
"exportedName": "searchHookActivityAction"
|
|
240
240
|
},
|
|
241
|
-
"
|
|
241
|
+
"40056b498eb6631e2f66074c98107fb7f714f19982": {
|
|
242
242
|
"workers": {
|
|
243
243
|
"app/login/page": {
|
|
244
244
|
"moduleId": 32581,
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"filename": "app/actions/auth.ts",
|
|
254
254
|
"exportedName": "login"
|
|
255
255
|
},
|
|
256
|
-
"
|
|
256
|
+
"78bb1eb53bec5ec74040940b6fe914fa3deca14b32": {
|
|
257
257
|
"workers": {
|
|
258
258
|
"app/project/[name]/session/[sessionId]/page": {
|
|
259
259
|
"moduleId": 41853,
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
"filename": "app/actions/check-eval-cache.ts",
|
|
269
269
|
"exportedName": "checkEvalCacheAndList"
|
|
270
270
|
},
|
|
271
|
-
"
|
|
271
|
+
"60422f234aa85cce91ee76bd24e1740ed92c02a097": {
|
|
272
272
|
"workers": {
|
|
273
273
|
"app/project/[name]/session/[sessionId]/page": {
|
|
274
274
|
"moduleId": 41853,
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
"filename": "app/actions/clear-alert-marker.ts",
|
|
284
284
|
"exportedName": "clearAlertMarker"
|
|
285
285
|
},
|
|
286
|
-
"
|
|
286
|
+
"787b49cfb54ecef3715d762bbf5dfb3831ddf17eb7": {
|
|
287
287
|
"workers": {
|
|
288
288
|
"app/project/[name]/session/[sessionId]/page": {
|
|
289
289
|
"moduleId": 41853,
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"filename": "app/actions/invalidate-session-caches.ts",
|
|
299
299
|
"exportedName": "invalidateSessionItemCaches"
|
|
300
300
|
},
|
|
301
|
-
"
|
|
301
|
+
"7840005ff5b5b5d64450b75a3e2458f6cb3e030d9b": {
|
|
302
302
|
"workers": {
|
|
303
303
|
"app/project/[name]/session/[sessionId]/page": {
|
|
304
304
|
"moduleId": 41853,
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"filename": "app/actions/check-enrichment-cache.ts",
|
|
314
314
|
"exportedName": "checkEnrichmentCacheAndList"
|
|
315
315
|
},
|
|
316
|
-
"
|
|
316
|
+
"78a7f0e8d8f113672f5765cbde099bae7acd7d2fc7": {
|
|
317
317
|
"workers": {
|
|
318
318
|
"app/project/[name]/session/[sessionId]/page": {
|
|
319
319
|
"moduleId": 41853,
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
"filename": "app/actions/check-action-cache.ts",
|
|
329
329
|
"exportedName": "checkActionCacheAndList"
|
|
330
330
|
},
|
|
331
|
-
"
|
|
331
|
+
"7ca6a01e914566da8e6e8451464a0eeadcbe5c4e96": {
|
|
332
332
|
"workers": {
|
|
333
333
|
"app/project/[name]/session/[sessionId]/page": {
|
|
334
334
|
"moduleId": 41853,
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
"filename": "app/actions/invalidate-session-caches.ts",
|
|
344
344
|
"exportedName": "invalidateSessionItemCache"
|
|
345
345
|
},
|
|
346
|
-
"
|
|
346
|
+
"0032d33c4243194f2b3bfbf1adddac929e08a1a691": {
|
|
347
347
|
"workers": {
|
|
348
348
|
"app/project/[name]/session/[sessionId]/page": {
|
|
349
349
|
"moduleId": 41853,
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"filename": "app/actions/get-queue-status.ts",
|
|
359
359
|
"exportedName": "getQueueStatusAction"
|
|
360
360
|
},
|
|
361
|
-
"
|
|
361
|
+
"40cf7e431d5ae3f9dc3f5f52a0b6eaba9f0127c161": {
|
|
362
362
|
"workers": {
|
|
363
363
|
"app/queue/page": {
|
|
364
364
|
"moduleId": 73119,
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
"filename": "app/actions/get-completed-history.ts",
|
|
374
374
|
"exportedName": "getCompletedHistoryAction"
|
|
375
375
|
},
|
|
376
|
-
"
|
|
376
|
+
"6062c9732cb5367b9c737dc7b809451d4ff5d87bc0": {
|
|
377
377
|
"workers": {
|
|
378
378
|
"app/queue/page": {
|
|
379
379
|
"moduleId": 73119,
|
|
@@ -390,5 +390,5 @@
|
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
392
|
"edge": {},
|
|
393
|
-
"encryptionKey": "
|
|
393
|
+
"encryptionKey": "orQPLW9c6acnT/q62vyCGfb/n9MoyuCJHN6+q0dyqhs="
|
|
394
394
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},80060,2711,e=>{"use strict";var t=e.i(18566),r=e.i(71645);function a(){let e=(0,t.useSearchParams)(),a=(0,t.useRouter)(),n=(0,t.usePathname)(),s=(0,r.useRef)(null),l=(0,r.useCallback)(t=>e.get(t),[e]),o=(0,r.useCallback)(()=>new URLSearchParams(e.toString()),[e]),i=(0,r.useCallback)(t=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{let r=new URLSearchParams(e.toString());for(let[e,a]of Object.entries(t))void 0===a||""===a?r.delete(e):r.set(e,a);let s=r.toString(),l=s?`${n}?${s}`:n;a.replace(l,{scroll:!1})},150)},[e,n,a]);return(0,r.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]),{get:l,getAll:o,setAll:i}}function n(e){return"all"===e?void 0:e}function s(e){return e&&["all","last-hour","today","last-7-days","last-30-days","custom"].includes(e)?e:"all"}function l(e){let t={};return e.from&&(t.from=p(e.from)),e.to&&(t.to=p(e.to)),t}function o(e,t){return{from:f(e),to:f(t)}}function i(e){if(0!==e.length)return e.map(e=>encodeURIComponent(e)).join(",")}function m(e){return e?e.split(",").map(e=>decodeURIComponent(e.trim())).filter(e=>e.length>0):[]}function u(e){return e<=1?void 0:String(e)}function d(e){if(!e)return 1;let t=parseInt(e,10);return Number.isFinite(t)&&t>=1?t:1}function c(e,t){switch(e.type){case"boolean":return"all"===t?void 0:t;case"number":if(t.min===e.min&&t.max===e.max)return;return`${t.min}~${t.max}`;case"string":if(t.size===e.values.length)return;return Array.from(t).map(e=>encodeURIComponent(e)).join(",");case"date":if(!t.from&&!t.to)return;return`${t.from??""},${t.to??""}`}}function x(e,t){if(null===t||""===t)return null;switch(e.type){case"boolean":if("true"===t||"false"===t)return t;return null;case"number":{let e=t.split("~");if(2!==e.length)return null;let r=parseFloat(e[0]),a=parseFloat(e[1]);if(!Number.isFinite(r)||!Number.isFinite(a))return null;return{min:r,max:a}}case"string":{let r=t.split(",").map(e=>decodeURIComponent(e.trim())).filter(t=>e.values.includes(t));if(0===r.length)return null;return new Set(r)}case"date":{let e=t.split(",");if(2!==e.length)return null;let r=e[0]||null,a=e[1]||null;if(!r&&!a||r&&!b(r)||a&&!b(a))return null;return{from:r,to:a}}}}function p(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${a}`}function f(e){if(!e||!b(e))return null;let[t,r,a]=e.split("-").map(Number);return new Date(t,r-1,a,12,0,0)}function b(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)&&!isNaN(Date.parse(e))}e.s(["useUrlParams",()=>a],80060),e.s(["activeFilterToParam",()=>c,"dateRangeToParams",()=>l,"keywordsToParam",()=>i,"pageToParam",()=>u,"paramToActiveFilter",()=>x,"paramToKeywords",()=>m,"paramToPage",()=>d,"paramToPreset",()=>s,"paramsToDateRange",()=>o,"presetToParam",()=>n],2711)},73520,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var a=e.i(63059);function n({currentPage:e,totalPages:n,onPageChange:s}){if(n<=1)return null;let l=e=>`px-3 py-2 text-sm rounded-md transition-colors flex items-center gap-1 bg-muted text-muted-foreground ${e?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`;return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-4",children:[(0,t.jsxs)("button",{onClick:()=>s(e-1),disabled:1===e,className:l(1===e),"aria-label":"Previous page",children:[(0,t.jsx)(r,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Previous"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(()=>{if(n<=7)return Array.from({length:n},(e,t)=>t+1);let t=[1],r=Math.max(2,e-1),a=Math.min(n-1,e+1);e<=3&&(a=Math.min(5,n-1)),e>=n-2&&(r=Math.max(2,n-4)),r>2&&t.push("ellipsis-start");for(let e=r;e<=a;e++)t.push(e);return a<n-1&&t.push("ellipsis-end"),t.push(n),t})().map(r=>"string"==typeof r?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},r):(0,t.jsx)("button",{onClick:()=>s(r),className:`min-w-[2.5rem] px-3 py-2 text-sm rounded-md transition-colors ${e===r?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"aria-label":`Page ${r}`,"aria-current":e===r?"page":void 0,children:r},r))}),(0,t.jsxs)("button",{onClick:()=>s(e+1),disabled:e===n,className:l(e===n),"aria-label":"Next page",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:"Next"}),(0,t.jsx)(a.ChevronRight,{className:"w-4 h-4"})]})]})}e.s(["default",()=>n],73520)},85898,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);function a({id:e,value:a,stringValue:n,onChange:s,"aria-label":l}){let o=null!=n?n:a?a.toISOString().split("T")[0]:"";return(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("input",{type:"date",id:e,value:o,onChange:e=>s(e.target.value),"aria-label":l,className:"date-input px-3 py-2 pr-8 text-sm bg-input border border-border rounded-md text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-all hover:border-primary/50 w-[200px]"}),(0,t.jsx)("label",{htmlFor:e,className:"absolute right-2.5 top-1/2 -translate-y-1/2 cursor-pointer pointer-events-auto z-10 p-1 rounded hover:bg-muted/50 transition-colors",onClick:t=>{t.preventDefault();let r=document.getElementById(e);r&&"function"==typeof r.showPicker?r.showPicker():r?.click()},children:(0,t.jsx)(r,{className:"w-4 h-4 text-primary group-hover:text-primary/80 transition-colors"})})]})}e.s(["default",()=>a],85898)},94008,e=>{"use strict";let t=(0,e.i(75254).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",()=>t],94008)},31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},69263,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(95187);let n=(0,a.createServerReference)("60652a0bdc3b2a1a24229bb9e1c3ffca85ef7184ba",a.callServer,void 0,a.findSourceMapURL,"computeDashboard");var s=e.i(80060),l=e.i(2711);let o=["all","true","false"];function i({meta:e,value:r,onChange:a}){return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:e.label}),(0,t.jsx)("div",{className:"flex gap-1",children:o.map(e=>(0,t.jsx)("button",{onClick:()=>a(e),className:`flex-1 px-3 py-1.5 text-sm rounded-md transition-colors ${r===e?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:"all"===e?"All":"true"===e?"Yes":"No"},e))})]})}function m({meta:e,value:a,onChange:n}){let s=e.max-e.min,l=!Number.isInteger(e.min)||!Number.isInteger(e.max),o=s<=1?.01:l&&s<=10?.1:l||s<=10?1:s<=100?5:10,i=(0,r.useCallback)(e=>{let t=Number(e.target.value);isNaN(t)||n({...a,min:Math.min(t,a.max)})},[a,n]),m=(0,r.useCallback)(e=>{let t=Number(e.target.value);isNaN(t)||n({...a,max:Math.max(t,a.min)})},[a,n]),u=(0,r.useCallback)(e=>{let t=Number(e.target.value);n({...a,min:Math.min(t,a.max)})},[a,n]),d=(0,r.useCallback)(e=>{let t=Number(e.target.value);n({...a,max:Math.max(t,a.min)})},[a,n]);return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:e.label}),(0,t.jsxs)("div",{className:"relative mb-3",children:[(0,t.jsx)("input",{type:"range",min:e.min,max:e.max,step:o,value:a.min,onChange:u,className:"absolute w-full pointer-events-none appearance-none bg-transparent [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:cursor-pointer [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:cursor-pointer","aria-label":`${e.label} minimum`}),(0,t.jsx)("input",{type:"range",min:e.min,max:e.max,step:o,value:a.max,onChange:d,className:"absolute w-full pointer-events-none appearance-none bg-transparent [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:cursor-pointer [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:cursor-pointer","aria-label":`${e.label} maximum`}),(0,t.jsx)("div",{className:"h-1 bg-muted rounded w-full mt-2"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"number",min:e.min,max:e.max,step:o,value:a.min,onChange:i,className:"w-20 px-2 py-1 text-sm bg-input border border-border rounded-md text-foreground focus:outline-none focus:ring-2 focus:ring-ring","aria-label":`${e.label} minimum value`}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"to"}),(0,t.jsx)("input",{type:"number",min:e.min,max:e.max,step:o,value:a.max,onChange:m,className:"w-20 px-2 py-1 text-sm bg-input border border-border rounded-md text-foreground focus:outline-none focus:ring-2 focus:ring-ring","aria-label":`${e.label} maximum value`})]})]})}var u=e.i(64659);function d({meta:e,value:a,onChange:n}){let[s,l]=(0,r.useState)(!1),o=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!s)return;let e=e=>{o.current&&!o.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[s]);let i=(0,r.useCallback)(e=>{let t=new Set(a);t.has(e)?t.delete(e):t.add(e),n(t)},[a,n]),m=(0,r.useCallback)(()=>{n(new Set(e.values))},[e.values,n]),d=(0,r.useCallback)(()=>{n(new Set)},[n]),c=a.size,x=e.values.length,p=0===c?"None selected":c===x?"All selected":`${c} of ${x} selected`;return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",ref:o,children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:e.label}),(0,t.jsxs)("button",{onClick:()=>l(!s),className:"w-full flex items-center justify-between px-3 py-2 text-sm bg-input border border-border rounded-md text-foreground hover:border-primary/50 transition-colors","aria-expanded":s,children:[(0,t.jsx)("span",{className:"truncate",children:p}),(0,t.jsx)(u.ChevronDown,{className:`w-4 h-4 text-muted-foreground transition-transform ${s?"rotate-180":""}`})]}),s&&(0,t.jsxs)("div",{className:"mt-2 border border-border rounded-md bg-popover shadow-md max-h-60 overflow-y-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border",children:[(0,t.jsx)("button",{onClick:m,className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Select All"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:"|"}),(0,t.jsx)("button",{onClick:d,className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Clear"})]}),e.values.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1.5 hover:bg-muted/50 cursor-pointer transition-colors",children:[(0,t.jsx)("input",{type:"checkbox",checked:a.has(e),onChange:()=>i(e),className:"rounded border-border text-primary focus:ring-ring"}),(0,t.jsx)("span",{className:"text-sm text-foreground truncate",children:e})]},e)),0===e.values.length&&(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No values available"})]})]})}var c=e.i(85898);function x({meta:e,value:r,onChange:a}){let n=null!==r.from||null!==r.to;return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground",children:e.label}),n&&(0,t.jsx)("button",{onClick:()=>a({from:null,to:null}),className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Clear"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.default,{id:`filter-date-${e.name}-from`,value:null,stringValue:r.from,onChange:e=>a({...r,from:e||null}),"aria-label":`${e.label} from date`}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"to"}),(0,t.jsx)(c.default,{id:`filter-date-${e.name}-to`,value:null,stringValue:r.to,onChange:e=>a({...r,to:e||null}),"aria-label":`${e.label} to date`})]})]})}var p=e.i(22016),f=e.i(94008),b=e.i(73520);function h({sessions:e,filterMeta:r,totalCount:a,matchingCount:n,page:s,pageSize:l,onPageChange:o}){let i=Math.ceil(n/l),m=(s-1)*l,u=Math.min(m+e.length,n);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:0===n?"No sessions match the current filters.":(0,t.jsxs)(t.Fragment,{children:["Showing ",m+1,"-",u," of ",n," sessions",n!==a&&(0,t.jsxs)("span",{className:"ml-1",children:["(filtered from ",a," total)"]})]})}),(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:[(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-border bg-muted/50",children:[(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground w-12",children:(0,t.jsx)("span",{className:"sr-only",children:"Icon"})}),(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:"Project"}),(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:"Session ID"}),(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:"Modified"}),r.filter(e=>"date"!==e.type).map(e=>(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:e.label},e.name))]})}),(0,t.jsx)("tbody",{children:0===e.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:4+r.filter(e=>"date"!==e.type).length,className:"px-4 py-8 text-center text-muted-foreground",children:"No sessions found matching the filters."})}):e.map(e=>(0,t.jsxs)("tr",{className:"border-b border-border hover:bg-muted/50 transition-colors",children:[(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)(f.File,{className:"w-5 h-5 text-primary"})}),(0,t.jsx)("td",{className:"px-4 py-3 text-sm text-foreground",children:(0,t.jsx)(p.default,{href:`/project/${encodeURIComponent(e.projectName)}`,className:"hover:text-primary transition-colors",children:e.projectName})}),(0,t.jsx)("td",{className:"px-4 py-3 text-sm max-w-xs",children:(0,t.jsx)(p.default,{href:`/project/${encodeURIComponent(e.projectName)}/session/${encodeURIComponent(e.sessionId)}`,className:"font-semibold text-foreground hover:text-primary transition-colors break-words break-all",children:e.sessionId})}),(0,t.jsx)("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:e.lastModifiedFormatted}),r.filter(e=>"date"!==e.type).map(r=>{var a;return(0,t.jsx)("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:void 0===(a=e.filterValues[r.name])?"-":"boolean"==typeof a?a?"Yes":"No":String(a)},r.name)})]},`${e.projectName}/${e.sessionId}`))})]})}),n>0&&i>1&&(0,t.jsx)(b.default,{currentPage:s,totalPages:i,onPageChange:o})]})]})}var g=e.i(31278);function v(e,t){let r={};for(let a of t){let t=e[a.name];if(t)switch(a.type){case"boolean":r[a.name]={type:"boolean",value:t};break;case"number":r[a.name]={type:"number",min:t.min,max:t.max};break;case"string":r[a.name]={type:"string",selected:Array.from(t)};break;case"date":r[a.name]={type:"date",from:t.from,to:t.to}}}return r}function y(e,t){for(let r of t){let t=e[r.name];if(t)switch(r.type){case"boolean":if("all"!==t)return!0;break;case"number":if(t.min!==r.min||t.max!==r.max)return!0;break;case"string":if(t.size!==r.values.length)return!0;break;case"date":if(null!==t.from||null!==t.to)return!0}}return!1}function j({viewName:e}){let a=(0,s.useUrlParams)(),o=(0,r.useRef)(null);null===o.current&&(o.current=a.getAll());let u=(0,r.useRef)(!1),[c,p]=(0,r.useState)(null),[f,b]=(0,r.useState)([]),[j,N]=(0,r.useState)(!0),[w,k]=(0,r.useState)(null),[C,S]=(0,r.useState)(!1),[P,$]=(0,r.useState)({}),[M,R]=(0,r.useState)(()=>(0,l.paramToPage)(a.get("page"))),T=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);let z=(0,r.useCallback)(async(t,r)=>{N(!0),k(null);try{let a=await n(e,{filters:t,page:r??1,pageSize:25});a.ok?a.hasFilters?(p(a.payload),a.payload.filterMeta.length>0&&b(a.payload.filterMeta)):S(!0):k(a.error)}catch(e){k(e instanceof Error?e.message:String(e))}finally{N(!1)}},[e]);(0,r.useEffect)(()=>{z().then(()=>{})},[z]),(0,r.useEffect)(()=>{if(f.length>0&&0===Object.keys(P).length){let e=function(e){let t={};for(let r of e)switch(r.type){case"boolean":t[r.name]="all";break;case"number":t[r.name]={min:r.min,max:r.max};break;case"string":t[r.name]=new Set(r.values);break;case"date":t[r.name]={from:null,to:null}}return t}(f),t=o.current,r=!1;if(t)for(let a of f){let n=t.get(a.name),s=(0,l.paramToActiveFilter)(a,n);null!==s&&(e[a.name]=s,r=!0)}if($(e),u.current=!0,r||t&&(0,l.paramToPage)(t.get("page"))>1){let r=t?(0,l.paramToPage)(t.get("page")):1,a=y(e,f)?v(e,f):void 0;R(r),z(a,r)}}},[f]);let F=(0,r.useCallback)((e,t)=>{if(!u.current)return;let r={page:(0,l.pageToParam)(t)};for(let t of f)r[t.name]=(0,l.activeFilterToParam)(t,e[t.name]);a.setAll(r)},[f,a]),I=(0,r.useCallback)((e,t)=>{$(r=>{let a={...r,[e]:t};return T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{let e=y(a,f)?v(a,f):void 0;R(1),z(e,1),F(a,1)},300),a})},[f,z,F]),A=(0,r.useCallback)(e=>{R(e),z(y(P,f)?v(P,f):void 0,e),F(P,e)},[P,f,z,F]);if(C)return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[(0,t.jsx)("p",{className:"text-muted-foreground mb-2",children:"No filters are registered for this view."}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Use ",(0,t.jsx)("code",{className:"text-foreground bg-muted px-1 py-0.5 rounded",children:"app.dashboard.view()"})," or"," ",(0,t.jsx)("code",{className:"text-foreground bg-muted px-1 py-0.5 rounded",children:"app.dashboard.filter()"})," in your evals file to register filters."]})]});if(j&&!c)return(0,t.jsxs)("div",{className:"flex items-center justify-center py-16",children:[(0,t.jsx)(g.Loader2,{className:"w-6 h-6 text-primary animate-spin mr-2"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Computing dashboard filters..."})]});if(w&&!c)return(0,t.jsxs)("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4",children:[(0,t.jsx)("p",{className:"text-sm text-destructive font-medium",children:"Failed to load dashboard"}),(0,t.jsx)("p",{className:"text-sm text-destructive/80 mt-1",children:w}),(0,t.jsx)("button",{onClick:()=>z(),className:"mt-3 px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Retry"})]});if(!c)return null;let U=f.length>0?f:c.filterMeta;return(0,t.jsxs)("div",{className:"space-y-6",children:[U.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:U.map(e=>{switch(e.type){case"boolean":return(0,t.jsx)(i,{meta:e,value:P[e.name]??"all",onChange:t=>I(e.name,t)},e.name);case"number":return(0,t.jsx)(m,{meta:e,value:P[e.name]??{min:e.min,max:e.max},onChange:t=>I(e.name,t)},e.name);case"string":return(0,t.jsx)(d,{meta:e,value:P[e.name]??new Set(e.values),onChange:t=>I(e.name,t)},e.name);case"date":return(0,t.jsx)(x,{meta:e,value:P[e.name]??{from:null,to:null},onChange:t=>I(e.name,t)},e.name)}})}),(0,t.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Computed in ",c.totalDurationMs,"ms",j&&" (updating...)"]}),(0,t.jsx)(h,{sessions:c.sessions,filterMeta:U,totalCount:c.totalCount,matchingCount:c.matchingCount,page:c.page,pageSize:c.pageSize,onPageChange:A})]})}e.s(["default",()=>j],69263)},6225,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(95187);let n=(0,a.createServerReference)("40a883899247ccf814d532597aec681937f04a5b48",a.callServer,void 0,a.findSourceMapURL,"computeAggregates"),s=(0,e.i(75254).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);function l({rows:e,columns:a}){let[n,l]=(0,r.useState)(null),[o,i]=(0,r.useState)("asc");if(0===e.length)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No data returned from reduce function."});let m=n?[...e].sort((e,t)=>{let r="asc"===o?1:-1,a=e[n],s=t[n];return void 0===a&&void 0===s?0:void 0===a?1:void 0===s?-1:"string"==typeof a&&"string"==typeof s?a.localeCompare(s)*r:"boolean"==typeof a&&"boolean"==typeof s?(Number(a)-Number(s))*r:"number"==typeof a&&"number"==typeof s?(a-s)*r:String(a).localeCompare(String(s))*r}):e;return(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"border-b border-border",children:a.map(e=>(0,t.jsx)("th",{className:"px-3 py-2 text-left text-xs font-medium text-muted-foreground cursor-pointer hover:text-foreground select-none",onClick:()=>{n===e?i(e=>"asc"===e?"desc":"asc"):(l(e),i("desc"))},children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[e,(0,t.jsx)(s,{className:"w-3 h-3"})]})},e))})}),(0,t.jsx)("tbody",{children:m.map((e,r)=>(0,t.jsx)("tr",{className:"border-b border-border/50 hover:bg-muted/50",children:a.map(r=>{var a;return(0,t.jsx)("td",{className:"px-3 py-2 text-foreground",children:null==(a=e[r])?"—":"boolean"==typeof a?a?"Yes":"No":"number"==typeof a?Number.isInteger(a)?a.toLocaleString():a.toFixed(4):String(a)},r)})},r))})]})})}function o({aggregate:e}){return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("h4",{className:"text-sm font-medium text-foreground mb-3",children:e.label}),(0,t.jsx)(l,{rows:e.rows,columns:e.columns})]})}var i=e.i(31278);function m({viewName:e}){let[a,s]=(0,r.useState)(null),[l,m]=(0,r.useState)(!0),[u,d]=(0,r.useState)(null),c=(0,r.useCallback)(async()=>{m(!0),d(null);try{let t=await n(e);t.ok?t.hasAggregates&&s(t.payload):d(t.error)}catch(e){d(e instanceof Error?e.message:String(e))}finally{m(!1)}},[e]);return((0,r.useEffect)(()=>{c()},[c]),l&&!a)?(0,t.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,t.jsx)(i.Loader2,{className:"w-5 h-5 text-primary animate-spin mr-2"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Computing aggregates..."})]}):u&&!a?(0,t.jsxs)("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4",children:[(0,t.jsx)("p",{className:"text-sm text-destructive font-medium",children:"Failed to compute aggregates"}),(0,t.jsx)("p",{className:"text-sm text-destructive/80 mt-1",children:u}),(0,t.jsx)("button",{onClick:()=>c(),className:"mt-3 px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Retry"})]}):a&&0!==a.aggregates.length?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-medium text-foreground",children:"Aggregates"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.totalSessions," sessions, ",a.totalDurationMs,"ms",l&&" (updating...)"]})]}),a.aggregates.map(e=>(0,t.jsx)(o,{aggregate:e},e.name))]}):null}e.s(["default",()=>m],6225)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},80060,2711,e=>{"use strict";var t=e.i(18566),r=e.i(71645);function a(){let e=(0,t.useSearchParams)(),a=(0,t.useRouter)(),n=(0,t.usePathname)(),s=(0,r.useRef)(null),l=(0,r.useCallback)(t=>e.get(t),[e]),o=(0,r.useCallback)(()=>new URLSearchParams(e.toString()),[e]),i=(0,r.useCallback)(t=>{s.current&&clearTimeout(s.current),s.current=setTimeout(()=>{let r=new URLSearchParams(e.toString());for(let[e,a]of Object.entries(t))void 0===a||""===a?r.delete(e):r.set(e,a);let s=r.toString(),l=s?`${n}?${s}`:n;a.replace(l,{scroll:!1})},150)},[e,n,a]);return(0,r.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]),{get:l,getAll:o,setAll:i}}function n(e){return"all"===e?void 0:e}function s(e){return e&&["all","last-hour","today","last-7-days","last-30-days","custom"].includes(e)?e:"all"}function l(e){let t={};return e.from&&(t.from=p(e.from)),e.to&&(t.to=p(e.to)),t}function o(e,t){return{from:f(e),to:f(t)}}function i(e){if(0!==e.length)return e.map(e=>encodeURIComponent(e)).join(",")}function m(e){return e?e.split(",").map(e=>decodeURIComponent(e.trim())).filter(e=>e.length>0):[]}function u(e){return e<=1?void 0:String(e)}function d(e){if(!e)return 1;let t=parseInt(e,10);return Number.isFinite(t)&&t>=1?t:1}function c(e,t){switch(e.type){case"boolean":return"all"===t?void 0:t;case"number":if(t.min===e.min&&t.max===e.max)return;return`${t.min}~${t.max}`;case"string":if(t.size===e.values.length)return;return Array.from(t).map(e=>encodeURIComponent(e)).join(",");case"date":if(!t.from&&!t.to)return;return`${t.from??""},${t.to??""}`}}function x(e,t){if(null===t||""===t)return null;switch(e.type){case"boolean":if("true"===t||"false"===t)return t;return null;case"number":{let e=t.split("~");if(2!==e.length)return null;let r=parseFloat(e[0]),a=parseFloat(e[1]);if(!Number.isFinite(r)||!Number.isFinite(a))return null;return{min:r,max:a}}case"string":{let r=t.split(",").map(e=>decodeURIComponent(e.trim())).filter(t=>e.values.includes(t));if(0===r.length)return null;return new Set(r)}case"date":{let e=t.split(",");if(2!==e.length)return null;let r=e[0]||null,a=e[1]||null;if(!r&&!a||r&&!b(r)||a&&!b(a))return null;return{from:r,to:a}}}}function p(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${a}`}function f(e){if(!e||!b(e))return null;let[t,r,a]=e.split("-").map(Number);return new Date(t,r-1,a,12,0,0)}function b(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)&&!isNaN(Date.parse(e))}e.s(["useUrlParams",()=>a],80060),e.s(["activeFilterToParam",()=>c,"dateRangeToParams",()=>l,"keywordsToParam",()=>i,"pageToParam",()=>u,"paramToActiveFilter",()=>x,"paramToKeywords",()=>m,"paramToPage",()=>d,"paramToPreset",()=>s,"paramsToDateRange",()=>o,"presetToParam",()=>n],2711)},73520,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var a=e.i(63059);function n({currentPage:e,totalPages:n,onPageChange:s}){if(n<=1)return null;let l=e=>`px-3 py-2 text-sm rounded-md transition-colors flex items-center gap-1 bg-muted text-muted-foreground ${e?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`;return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-4",children:[(0,t.jsxs)("button",{onClick:()=>s(e-1),disabled:1===e,className:l(1===e),"aria-label":"Previous page",children:[(0,t.jsx)(r,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Previous"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(()=>{if(n<=7)return Array.from({length:n},(e,t)=>t+1);let t=[1],r=Math.max(2,e-1),a=Math.min(n-1,e+1);e<=3&&(a=Math.min(5,n-1)),e>=n-2&&(r=Math.max(2,n-4)),r>2&&t.push("ellipsis-start");for(let e=r;e<=a;e++)t.push(e);return a<n-1&&t.push("ellipsis-end"),t.push(n),t})().map(r=>"string"==typeof r?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},r):(0,t.jsx)("button",{onClick:()=>s(r),className:`min-w-[2.5rem] px-3 py-2 text-sm rounded-md transition-colors ${e===r?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"aria-label":`Page ${r}`,"aria-current":e===r?"page":void 0,children:r},r))}),(0,t.jsxs)("button",{onClick:()=>s(e+1),disabled:e===n,className:l(e===n),"aria-label":"Next page",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:"Next"}),(0,t.jsx)(a.ChevronRight,{className:"w-4 h-4"})]})]})}e.s(["default",()=>n],73520)},85898,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);function a({id:e,value:a,stringValue:n,onChange:s,"aria-label":l}){let o=null!=n?n:a?a.toISOString().split("T")[0]:"";return(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("input",{type:"date",id:e,value:o,onChange:e=>s(e.target.value),"aria-label":l,className:"date-input px-3 py-2 pr-8 text-sm bg-input border border-border rounded-md text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent transition-all hover:border-primary/50 w-[200px]"}),(0,t.jsx)("label",{htmlFor:e,className:"absolute right-2.5 top-1/2 -translate-y-1/2 cursor-pointer pointer-events-auto z-10 p-1 rounded hover:bg-muted/50 transition-colors",onClick:t=>{t.preventDefault();let r=document.getElementById(e);r&&"function"==typeof r.showPicker?r.showPicker():r?.click()},children:(0,t.jsx)(r,{className:"w-4 h-4 text-primary group-hover:text-primary/80 transition-colors"})})]})}e.s(["default",()=>a],85898)},94008,e=>{"use strict";let t=(0,e.i(75254).default)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["File",()=>t],94008)},31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},69263,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(95187);let n=(0,a.createServerReference)("6069c8a7d8c1dff505d45d7f765e7cc3cf4ae45176",a.callServer,void 0,a.findSourceMapURL,"computeDashboard");var s=e.i(80060),l=e.i(2711);let o=["all","true","false"];function i({meta:e,value:r,onChange:a}){return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:e.label}),(0,t.jsx)("div",{className:"flex gap-1",children:o.map(e=>(0,t.jsx)("button",{onClick:()=>a(e),className:`flex-1 px-3 py-1.5 text-sm rounded-md transition-colors ${r===e?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,children:"all"===e?"All":"true"===e?"Yes":"No"},e))})]})}function m({meta:e,value:a,onChange:n}){let s=e.max-e.min,l=!Number.isInteger(e.min)||!Number.isInteger(e.max),o=s<=1?.01:l&&s<=10?.1:l||s<=10?1:s<=100?5:10,i=(0,r.useCallback)(e=>{let t=Number(e.target.value);isNaN(t)||n({...a,min:Math.min(t,a.max)})},[a,n]),m=(0,r.useCallback)(e=>{let t=Number(e.target.value);isNaN(t)||n({...a,max:Math.max(t,a.min)})},[a,n]),u=(0,r.useCallback)(e=>{let t=Number(e.target.value);n({...a,min:Math.min(t,a.max)})},[a,n]),d=(0,r.useCallback)(e=>{let t=Number(e.target.value);n({...a,max:Math.max(t,a.min)})},[a,n]);return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:e.label}),(0,t.jsxs)("div",{className:"relative mb-3",children:[(0,t.jsx)("input",{type:"range",min:e.min,max:e.max,step:o,value:a.min,onChange:u,className:"absolute w-full pointer-events-none appearance-none bg-transparent [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:cursor-pointer [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:cursor-pointer","aria-label":`${e.label} minimum`}),(0,t.jsx)("input",{type:"range",min:e.min,max:e.max,step:o,value:a.max,onChange:d,className:"absolute w-full pointer-events-none appearance-none bg-transparent [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:cursor-pointer [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:cursor-pointer","aria-label":`${e.label} maximum`}),(0,t.jsx)("div",{className:"h-1 bg-muted rounded w-full mt-2"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"number",min:e.min,max:e.max,step:o,value:a.min,onChange:i,className:"w-20 px-2 py-1 text-sm bg-input border border-border rounded-md text-foreground focus:outline-none focus:ring-2 focus:ring-ring","aria-label":`${e.label} minimum value`}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:"to"}),(0,t.jsx)("input",{type:"number",min:e.min,max:e.max,step:o,value:a.max,onChange:m,className:"w-20 px-2 py-1 text-sm bg-input border border-border rounded-md text-foreground focus:outline-none focus:ring-2 focus:ring-ring","aria-label":`${e.label} maximum value`})]})]})}var u=e.i(64659);function d({meta:e,value:a,onChange:n}){let[s,l]=(0,r.useState)(!1),o=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!s)return;let e=e=>{o.current&&!o.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[s]);let i=(0,r.useCallback)(e=>{let t=new Set(a);t.has(e)?t.delete(e):t.add(e),n(t)},[a,n]),m=(0,r.useCallback)(()=>{n(new Set(e.values))},[e.values,n]),d=(0,r.useCallback)(()=>{n(new Set)},[n]),c=a.size,x=e.values.length,p=0===c?"None selected":c===x?"All selected":`${c} of ${x} selected`;return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",ref:o,children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:e.label}),(0,t.jsxs)("button",{onClick:()=>l(!s),className:"w-full flex items-center justify-between px-3 py-2 text-sm bg-input border border-border rounded-md text-foreground hover:border-primary/50 transition-colors","aria-expanded":s,children:[(0,t.jsx)("span",{className:"truncate",children:p}),(0,t.jsx)(u.ChevronDown,{className:`w-4 h-4 text-muted-foreground transition-transform ${s?"rotate-180":""}`})]}),s&&(0,t.jsxs)("div",{className:"mt-2 border border-border rounded-md bg-popover shadow-md max-h-60 overflow-y-auto",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border",children:[(0,t.jsx)("button",{onClick:m,className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Select All"}),(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:"|"}),(0,t.jsx)("button",{onClick:d,className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Clear"})]}),e.values.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 px-3 py-1.5 hover:bg-muted/50 cursor-pointer transition-colors",children:[(0,t.jsx)("input",{type:"checkbox",checked:a.has(e),onChange:()=>i(e),className:"rounded border-border text-primary focus:ring-ring"}),(0,t.jsx)("span",{className:"text-sm text-foreground truncate",children:e})]},e)),0===e.values.length&&(0,t.jsx)("div",{className:"px-3 py-2 text-sm text-muted-foreground",children:"No values available"})]})]})}var c=e.i(85898);function x({meta:e,value:r,onChange:a}){let n=null!==r.from||null!==r.to;return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-foreground",children:e.label}),n&&(0,t.jsx)("button",{onClick:()=>a({from:null,to:null}),className:"text-xs text-primary hover:text-primary/80 transition-colors",children:"Clear"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(c.default,{id:`filter-date-${e.name}-from`,value:null,stringValue:r.from,onChange:e=>a({...r,from:e||null}),"aria-label":`${e.label} from date`}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"to"}),(0,t.jsx)(c.default,{id:`filter-date-${e.name}-to`,value:null,stringValue:r.to,onChange:e=>a({...r,to:e||null}),"aria-label":`${e.label} to date`})]})]})}var p=e.i(22016),f=e.i(94008),b=e.i(73520);function h({sessions:e,filterMeta:r,totalCount:a,matchingCount:n,page:s,pageSize:l,onPageChange:o}){let i=Math.ceil(n/l),m=(s-1)*l,u=Math.min(m+e.length,n);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:0===n?"No sessions match the current filters.":(0,t.jsxs)(t.Fragment,{children:["Showing ",m+1,"-",u," of ",n," sessions",n!==a&&(0,t.jsxs)("span",{className:"ml-1",children:["(filtered from ",a," total)"]})]})}),(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:[(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"border-b border-border bg-muted/50",children:[(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground w-12",children:(0,t.jsx)("span",{className:"sr-only",children:"Icon"})}),(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:"Project"}),(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:"Session ID"}),(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:"Modified"}),r.filter(e=>"date"!==e.type).map(e=>(0,t.jsx)("th",{scope:"col",className:"px-4 py-3 text-left text-sm font-semibold text-foreground",children:e.label},e.name))]})}),(0,t.jsx)("tbody",{children:0===e.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:4+r.filter(e=>"date"!==e.type).length,className:"px-4 py-8 text-center text-muted-foreground",children:"No sessions found matching the filters."})}):e.map(e=>(0,t.jsxs)("tr",{className:"border-b border-border hover:bg-muted/50 transition-colors",children:[(0,t.jsx)("td",{className:"px-4 py-3",children:(0,t.jsx)(f.File,{className:"w-5 h-5 text-primary"})}),(0,t.jsx)("td",{className:"px-4 py-3 text-sm text-foreground",children:(0,t.jsx)(p.default,{href:`/project/${encodeURIComponent(e.projectName)}`,className:"hover:text-primary transition-colors",children:e.projectName})}),(0,t.jsx)("td",{className:"px-4 py-3 text-sm max-w-xs",children:(0,t.jsx)(p.default,{href:`/project/${encodeURIComponent(e.projectName)}/session/${encodeURIComponent(e.sessionId)}`,className:"font-semibold text-foreground hover:text-primary transition-colors break-words break-all",children:e.sessionId})}),(0,t.jsx)("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:e.lastModifiedFormatted}),r.filter(e=>"date"!==e.type).map(r=>{var a;return(0,t.jsx)("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:void 0===(a=e.filterValues[r.name])?"-":"boolean"==typeof a?a?"Yes":"No":String(a)},r.name)})]},`${e.projectName}/${e.sessionId}`))})]})}),n>0&&i>1&&(0,t.jsx)(b.default,{currentPage:s,totalPages:i,onPageChange:o})]})]})}var g=e.i(31278);function v(e,t){let r={};for(let a of t){let t=e[a.name];if(t)switch(a.type){case"boolean":r[a.name]={type:"boolean",value:t};break;case"number":r[a.name]={type:"number",min:t.min,max:t.max};break;case"string":r[a.name]={type:"string",selected:Array.from(t)};break;case"date":r[a.name]={type:"date",from:t.from,to:t.to}}}return r}function y(e,t){for(let r of t){let t=e[r.name];if(t)switch(r.type){case"boolean":if("all"!==t)return!0;break;case"number":if(t.min!==r.min||t.max!==r.max)return!0;break;case"string":if(t.size!==r.values.length)return!0;break;case"date":if(null!==t.from||null!==t.to)return!0}}return!1}function j({viewName:e}){let a=(0,s.useUrlParams)(),o=(0,r.useRef)(null);null===o.current&&(o.current=a.getAll());let u=(0,r.useRef)(!1),[c,p]=(0,r.useState)(null),[f,b]=(0,r.useState)([]),[j,N]=(0,r.useState)(!0),[w,k]=(0,r.useState)(null),[C,S]=(0,r.useState)(!1),[P,$]=(0,r.useState)({}),[M,R]=(0,r.useState)(()=>(0,l.paramToPage)(a.get("page"))),T=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);let z=(0,r.useCallback)(async(t,r)=>{N(!0),k(null);try{let a=await n(e,{filters:t,page:r??1,pageSize:25});a.ok?a.hasFilters?(p(a.payload),a.payload.filterMeta.length>0&&b(a.payload.filterMeta)):S(!0):k(a.error)}catch(e){k(e instanceof Error?e.message:String(e))}finally{N(!1)}},[e]);(0,r.useEffect)(()=>{z().then(()=>{})},[z]),(0,r.useEffect)(()=>{if(f.length>0&&0===Object.keys(P).length){let e=function(e){let t={};for(let r of e)switch(r.type){case"boolean":t[r.name]="all";break;case"number":t[r.name]={min:r.min,max:r.max};break;case"string":t[r.name]=new Set(r.values);break;case"date":t[r.name]={from:null,to:null}}return t}(f),t=o.current,r=!1;if(t)for(let a of f){let n=t.get(a.name),s=(0,l.paramToActiveFilter)(a,n);null!==s&&(e[a.name]=s,r=!0)}if($(e),u.current=!0,r||t&&(0,l.paramToPage)(t.get("page"))>1){let r=t?(0,l.paramToPage)(t.get("page")):1,a=y(e,f)?v(e,f):void 0;R(r),z(a,r)}}},[f]);let F=(0,r.useCallback)((e,t)=>{if(!u.current)return;let r={page:(0,l.pageToParam)(t)};for(let t of f)r[t.name]=(0,l.activeFilterToParam)(t,e[t.name]);a.setAll(r)},[f,a]),I=(0,r.useCallback)((e,t)=>{$(r=>{let a={...r,[e]:t};return T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{let e=y(a,f)?v(a,f):void 0;R(1),z(e,1),F(a,1)},300),a})},[f,z,F]),A=(0,r.useCallback)(e=>{R(e),z(y(P,f)?v(P,f):void 0,e),F(P,e)},[P,f,z,F]);if(C)return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-6 text-center",children:[(0,t.jsx)("p",{className:"text-muted-foreground mb-2",children:"No filters are registered for this view."}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Use ",(0,t.jsx)("code",{className:"text-foreground bg-muted px-1 py-0.5 rounded",children:"app.dashboard.view()"})," or"," ",(0,t.jsx)("code",{className:"text-foreground bg-muted px-1 py-0.5 rounded",children:"app.dashboard.filter()"})," in your evals file to register filters."]})]});if(j&&!c)return(0,t.jsxs)("div",{className:"flex items-center justify-center py-16",children:[(0,t.jsx)(g.Loader2,{className:"w-6 h-6 text-primary animate-spin mr-2"}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"Computing dashboard filters..."})]});if(w&&!c)return(0,t.jsxs)("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4",children:[(0,t.jsx)("p",{className:"text-sm text-destructive font-medium",children:"Failed to load dashboard"}),(0,t.jsx)("p",{className:"text-sm text-destructive/80 mt-1",children:w}),(0,t.jsx)("button",{onClick:()=>z(),className:"mt-3 px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Retry"})]});if(!c)return null;let U=f.length>0?f:c.filterMeta;return(0,t.jsxs)("div",{className:"space-y-6",children:[U.length>0&&(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:U.map(e=>{switch(e.type){case"boolean":return(0,t.jsx)(i,{meta:e,value:P[e.name]??"all",onChange:t=>I(e.name,t)},e.name);case"number":return(0,t.jsx)(m,{meta:e,value:P[e.name]??{min:e.min,max:e.max},onChange:t=>I(e.name,t)},e.name);case"string":return(0,t.jsx)(d,{meta:e,value:P[e.name]??new Set(e.values),onChange:t=>I(e.name,t)},e.name);case"date":return(0,t.jsx)(x,{meta:e,value:P[e.name]??{from:null,to:null},onChange:t=>I(e.name,t)},e.name)}})}),(0,t.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Computed in ",c.totalDurationMs,"ms",j&&" (updating...)"]}),(0,t.jsx)(h,{sessions:c.sessions,filterMeta:U,totalCount:c.totalCount,matchingCount:c.matchingCount,page:c.page,pageSize:c.pageSize,onPageChange:A})]})}e.s(["default",()=>j],69263)},6225,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(95187);let n=(0,a.createServerReference)("40fd48451a4b45b0e76ac4a0a8b64ed0775a76212d",a.callServer,void 0,a.findSourceMapURL,"computeAggregates"),s=(0,e.i(75254).default)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);function l({rows:e,columns:a}){let[n,l]=(0,r.useState)(null),[o,i]=(0,r.useState)("asc");if(0===e.length)return(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No data returned from reduce function."});let m=n?[...e].sort((e,t)=>{let r="asc"===o?1:-1,a=e[n],s=t[n];return void 0===a&&void 0===s?0:void 0===a?1:void 0===s?-1:"string"==typeof a&&"string"==typeof s?a.localeCompare(s)*r:"boolean"==typeof a&&"boolean"==typeof s?(Number(a)-Number(s))*r:"number"==typeof a&&"number"==typeof s?(a-s)*r:String(a).localeCompare(String(s))*r}):e;return(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-sm",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"border-b border-border",children:a.map(e=>(0,t.jsx)("th",{className:"px-3 py-2 text-left text-xs font-medium text-muted-foreground cursor-pointer hover:text-foreground select-none",onClick:()=>{n===e?i(e=>"asc"===e?"desc":"asc"):(l(e),i("desc"))},children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[e,(0,t.jsx)(s,{className:"w-3 h-3"})]})},e))})}),(0,t.jsx)("tbody",{children:m.map((e,r)=>(0,t.jsx)("tr",{className:"border-b border-border/50 hover:bg-muted/50",children:a.map(r=>{var a;return(0,t.jsx)("td",{className:"px-3 py-2 text-foreground",children:null==(a=e[r])?"—":"boolean"==typeof a?a?"Yes":"No":"number"==typeof a?Number.isInteger(a)?a.toLocaleString():a.toFixed(4):String(a)},r)})},r))})]})})}function o({aggregate:e}){return(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsx)("h4",{className:"text-sm font-medium text-foreground mb-3",children:e.label}),(0,t.jsx)(l,{rows:e.rows,columns:e.columns})]})}var i=e.i(31278);function m({viewName:e}){let[a,s]=(0,r.useState)(null),[l,m]=(0,r.useState)(!0),[u,d]=(0,r.useState)(null),c=(0,r.useCallback)(async()=>{m(!0),d(null);try{let t=await n(e);t.ok?t.hasAggregates&&s(t.payload):d(t.error)}catch(e){d(e instanceof Error?e.message:String(e))}finally{m(!1)}},[e]);return((0,r.useEffect)(()=>{c()},[c]),l&&!a)?(0,t.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,t.jsx)(i.Loader2,{className:"w-5 h-5 text-primary animate-spin mr-2"}),(0,t.jsx)("span",{className:"text-sm text-muted-foreground",children:"Computing aggregates..."})]}):u&&!a?(0,t.jsxs)("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4",children:[(0,t.jsx)("p",{className:"text-sm text-destructive font-medium",children:"Failed to compute aggregates"}),(0,t.jsx)("p",{className:"text-sm text-destructive/80 mt-1",children:u}),(0,t.jsx)("button",{onClick:()=>c(),className:"mt-3 px-3 py-1.5 text-sm bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Retry"})]}):a&&0!==a.aggregates.length?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-medium text-foreground",children:"Aggregates"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.totalSessions," sessions, ",a.totalDurationMs,"ms",l&&" (updating...)"]})]}),a.aggregates.map(e=>(0,t.jsx)(o,{aggregate:e},e.name))]}):null}e.s(["default",()=>m],6225)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},73520,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var s=e.i(63059);function a({currentPage:e,totalPages:a,onPageChange:n}){if(a<=1)return null;let l=e=>`px-3 py-2 text-sm rounded-md transition-colors flex items-center gap-1 bg-muted text-muted-foreground ${e?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`;return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-4",children:[(0,t.jsxs)("button",{onClick:()=>n(e-1),disabled:1===e,className:l(1===e),"aria-label":"Previous page",children:[(0,t.jsx)(r,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Previous"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(()=>{if(a<=7)return Array.from({length:a},(e,t)=>t+1);let t=[1],r=Math.max(2,e-1),s=Math.min(a-1,e+1);e<=3&&(s=Math.min(5,a-1)),e>=a-2&&(r=Math.max(2,a-4)),r>2&&t.push("ellipsis-start");for(let e=r;e<=s;e++)t.push(e);return s<a-1&&t.push("ellipsis-end"),t.push(a),t})().map(r=>"string"==typeof r?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},r):(0,t.jsx)("button",{onClick:()=>n(r),className:`min-w-[2.5rem] px-3 py-2 text-sm rounded-md transition-colors ${e===r?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"aria-label":`Page ${r}`,"aria-current":e===r?"page":void 0,children:r},r))}),(0,t.jsxs)("button",{onClick:()=>n(e+1),disabled:e===a,className:l(e===a),"aria-label":"Next page",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:"Next"}),(0,t.jsx)(s.ChevronRight,{className:"w-4 h-4"})]})]})}e.s(["default",()=>a],73520)},80060,2711,e=>{"use strict";var t=e.i(18566),r=e.i(71645);function s(){let e=(0,t.useSearchParams)(),s=(0,t.useRouter)(),a=(0,t.usePathname)(),n=(0,r.useRef)(null),l=(0,r.useCallback)(t=>e.get(t),[e]),o=(0,r.useCallback)(()=>new URLSearchParams(e.toString()),[e]),i=(0,r.useCallback)(t=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{let r=new URLSearchParams(e.toString());for(let[e,s]of Object.entries(t))void 0===s||""===s?r.delete(e):r.set(e,s);let n=r.toString(),l=n?`${a}?${n}`:a;s.replace(l,{scroll:!1})},150)},[e,a,s]);return(0,r.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{get:l,getAll:o,setAll:i}}function a(e){return"all"===e?void 0:e}function n(e){return e&&["all","last-hour","today","last-7-days","last-30-days","custom"].includes(e)?e:"all"}function l(e){let t={};return e.from&&(t.from=p(e.from)),e.to&&(t.to=p(e.to)),t}function o(e,t){return{from:h(e),to:h(t)}}function i(e){if(0!==e.length)return e.map(e=>encodeURIComponent(e)).join(",")}function d(e){return e?e.split(",").map(e=>decodeURIComponent(e.trim())).filter(e=>e.length>0):[]}function c(e){return e<=1?void 0:String(e)}function u(e){if(!e)return 1;let t=parseInt(e,10);return Number.isFinite(t)&&t>=1?t:1}function m(e,t){switch(e.type){case"boolean":return"all"===t?void 0:t;case"number":if(t.min===e.min&&t.max===e.max)return;return`${t.min}~${t.max}`;case"string":if(t.size===e.values.length)return;return Array.from(t).map(e=>encodeURIComponent(e)).join(",");case"date":if(!t.from&&!t.to)return;return`${t.from??""},${t.to??""}`}}function x(e,t){if(null===t||""===t)return null;switch(e.type){case"boolean":if("true"===t||"false"===t)return t;return null;case"number":{let e=t.split("~");if(2!==e.length)return null;let r=parseFloat(e[0]),s=parseFloat(e[1]);if(!Number.isFinite(r)||!Number.isFinite(s))return null;return{min:r,max:s}}case"string":{let r=t.split(",").map(e=>decodeURIComponent(e.trim())).filter(t=>e.values.includes(t));if(0===r.length)return null;return new Set(r)}case"date":{let e=t.split(",");if(2!==e.length)return null;let r=e[0]||null,s=e[1]||null;if(!r&&!s||r&&!f(r)||s&&!f(s))return null;return{from:r,to:s}}}}function p(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${s}`}function h(e){if(!e||!f(e))return null;let[t,r,s]=e.split("-").map(Number);return new Date(t,r-1,s,12,0,0)}function f(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)&&!isNaN(Date.parse(e))}e.s(["useUrlParams",()=>s],80060),e.s(["activeFilterToParam",()=>m,"dateRangeToParams",()=>l,"keywordsToParam",()=>i,"pageToParam",()=>c,"paramToActiveFilter",()=>x,"paramToKeywords",()=>d,"paramToPage",()=>u,"paramToPreset",()=>n,"paramsToDateRange",()=>o,"presetToParam",()=>a],2711)},1742,e=>{"use strict";let t=(0,e.i(75254).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",()=>t],1742)},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],71689)},64439,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),a=e.i(71689);let n=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var l=e.i(1742),o=e.i(16715),i=e.i(73520),d=e.i(95187);let c=(0,d.createServerReference)("40e99e994c9c95aa79066a1d6757d501e063437d44",d.callServer,void 0,d.findSourceMapURL,"getCompletedHistoryAction"),u=(0,d.createServerReference)("6078659c53034096f479f06f53b48c882308730e14",d.callServer,void 0,d.findSourceMapURL,"searchCompletedHistoryAction");var m=e.i(85881),x=e.i(80060),p=e.i(2711);function h(e){let t=Math.floor((Date.now()-e)/1e3);if(t<60)return`${t}s ago`;let r=Math.floor(t/60);if(r<60)return`${r}m ago`;let s=Math.floor(r/60);return`${s}h ago`}function f({type:e}){let r="eval"===e?"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400":"action"===e?"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400":"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400";return(0,t.jsx)("span",{className:`inline-flex items-center rounded px-1.5 py-0.5 text-[0.6rem] font-medium ${r}`,children:e.toUpperCase()})}function g({priority:e}){let r=e<=0;return(0,t.jsx)("span",{className:`text-[0.6rem] font-medium px-1.5 py-0.5 rounded ${r?"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400":"bg-muted text-muted-foreground"}`,children:r?"HIGH":"LOW"})}function b({projectName:e,sessionId:r}){return(0,t.jsx)(s.default,{href:`/project/${encodeURIComponent(e)}/session/${encodeURIComponent(r)}`,className:"text-blue-600 dark:text-blue-400 hover:underline truncate block max-w-[200px]",children:r})}function y(){let e,d,{intervalSec:y}=(0,m.useAutoRefresh)(),j=(0,x.useUrlParams)(),N=(0,r.useRef)(!1),[v,k]=(0,r.useState)(null),[w,S]=(0,r.useState)(null),[C,$]=(0,r.useState)(()=>{let e=j.get("tab");return"pending"===e||"processing"===e||"completed"===e?e:"processing"}),[P,R]=(0,r.useState)(()=>(0,p.paramToPage)(j.get("page"))),[T,I]=(0,r.useState)(null),A=(0,r.useRef)(C),[U,E]=(0,r.useState)(()=>{let e=j.get("type");return"eval"===e||"enrichment"===e||"action"===e?e:""}),[F,M]=(0,r.useState)(()=>j.get("item")??""),[L,D]=(0,r.useState)(()=>j.get("session")??""),z=(0,r.useRef)(null),H=(0,r.useRef)({filterType:U,filterItem:F,filterSession:L});H.current={filterType:U,filterItem:F,filterSession:L},(0,r.useEffect)(()=>{if(!N.current){N.current=!0;return}j.setAll({tab:"processing"===C?void 0:C,type:U||void 0,item:F||void 0,session:L||void 0,page:"completed"===C?(0,p.pageToParam)(P):void 0})},[C,U,F,L,P]);let q=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/queue-status",{cache:"no-store"});if(e.ok){let t=await e.json();k(t),S(null)}else S(`Failed to fetch: ${e.status}`)}catch{S("Network error")}},[]),O=(0,r.useCallback)(async e=>{try{let t,{filterType:r,filterItem:s,filterSession:a}=H.current;t=""!==r||""!==s||""!==a?await u({type:r||void 0,itemName:s||void 0,sessionId:a||void 0},e):await c(e),I(t)}catch{}},[]);(0,r.useEffect)(()=>{q();let e=setInterval(q,y>0?1e3*y:5e3);return()=>clearInterval(e)},[q,y]),(0,r.useEffect)(()=>{"completed"===C&&"completed"!==A.current&&(R(1),O(1)),A.current=C},[C,O]),(0,r.useEffect)(()=>{if("completed"===C)return z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{R(1),O(1)},300),()=>{z.current&&clearTimeout(z.current)}},[U,F,L]),(0,r.useEffect)(()=>{if("completed"!==C)return;O(P);let e=setInterval(()=>O(P),y>0?1e3*y:5e3);return()=>clearInterval(e)},[P,C,O,y]),(0,r.useEffect)(()=>{"completed"===C&&y>0&&1===P&&T&&0===T.entries.length&&T.totalPages>1&&R(2)},[C,y,P,T]);let B=[{key:"pending",label:"In Queue",count:v?.pending.length??0},{key:"processing",label:"Processing",count:v?.processing.length??0},{key:"completed",label:"Processed"}];return(0,t.jsxs)("div",{className:"min-h-screen bg-background p-6 max-w-4xl mx-auto",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)(s.default,{href:"/",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)(a.ArrowLeft,{className:"h-4 w-4"}),"Back"]}),(0,t.jsx)("h1",{className:"text-2xl font-bold text-foreground mt-2",children:"Queue Details"})]}),w&&!v&&(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-destructive mb-2",children:w}),(0,t.jsx)("button",{onClick:q,className:"text-xs text-primary hover:underline",children:"Retry"})]}),!v&&!w&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading..."}),v&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"flex gap-1 border-b border-border",children:B.map(e=>(0,t.jsxs)("button",{onClick:()=>$(e.key),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${C===e.key?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[e.label,null!=e.count&&(0,t.jsxs)("span",{className:"ml-1.5 text-xs text-muted-foreground",children:["(",e.count,")"]})]},e.key))}),(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:["pending"===C&&(0===v.pending.length?(0,t.jsx)("p",{className:"px-4 py-8 text-xs text-muted-foreground text-center",children:"No items in queue."}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-muted-foreground border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Item"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Session"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Priority"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium text-right",children:"Queued"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:v.pending.map(e=>(0,t.jsxs)("tr",{className:"hover:bg-muted/20",children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(f,{type:e.type})}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-foreground",children:e.itemName}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(b,{projectName:e.projectName,sessionId:e.sessionId})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(g,{priority:e.priority})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-muted-foreground",children:h(e.addedAt)})]},e.key))})]})})),"processing"===C&&(0===v.processing.length?(0,t.jsx)("p",{className:"px-4 py-8 text-xs text-muted-foreground text-center",children:"No items currently processing."}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-muted-foreground border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Item"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Session"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Priority"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium text-right",children:"Started"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:v.processing.map(e=>(0,t.jsxs)("tr",{className:"hover:bg-muted/20",children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(f,{type:e.type})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(o.RefreshCw,{className:"w-3 h-3 text-blue-500 animate-spin flex-shrink-0"}),(0,t.jsx)("span",{className:"font-mono text-foreground",children:e.itemName})]})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(b,{projectName:e.projectName,sessionId:e.sessionId})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(g,{priority:e.priority})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-muted-foreground",children:h(e.startedAt)})]},e.key))})]})})),"completed"===C&&(e=T?.entries??v.completed,d=T?.totalPages??1,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border bg-muted/30",children:[(0,t.jsxs)("select",{value:U,onChange:e=>E(e.target.value),className:"h-7 rounded border border-border bg-background px-2 text-xs text-foreground",children:[(0,t.jsx)("option",{value:"",children:"All Types"}),(0,t.jsx)("option",{value:"eval",children:"Eval"}),(0,t.jsx)("option",{value:"enrichment",children:"Enrichment"}),(0,t.jsx)("option",{value:"action",children:"Action"})]}),(0,t.jsx)("input",{type:"text",value:F,onChange:e=>M(e.target.value),placeholder:"Filter by item...",className:"h-7 rounded border border-border bg-background px-2 text-xs text-foreground placeholder:text-muted-foreground w-40"}),(0,t.jsx)("input",{type:"text",value:L,onChange:e=>D(e.target.value),placeholder:"Filter by session...",className:"h-7 rounded border border-border bg-background px-2 text-xs text-foreground placeholder:text-muted-foreground w-40"})]}),0===e.length?(0,t.jsx)("p",{className:"px-4 py-8 text-xs text-muted-foreground text-center",children:"No completed items."}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-muted-foreground border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Item"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Session"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Duration"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium text-right",children:"Completed"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,r)=>(0,t.jsxs)("tr",{className:"hover:bg-muted/20",children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(f,{type:e.type})}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-foreground",children:e.itemName}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(b,{projectName:e.projectName,sessionId:e.sessionId})}),(0,t.jsx)("td",{className:"px-3 py-2 text-muted-foreground",children:function(e){if(e<1e3)return`${e}ms`;let t=(e/1e3).toFixed(1);return`${t}s`}(e.durationMs)}),(0,t.jsx)("td",{className:"px-3 py-2",children:e.success?(0,t.jsx)(n,{className:"h-3.5 w-3.5 text-green-600 dark:text-green-400"}):(0,t.jsx)(l.XCircle,{className:"h-3.5 w-3.5 text-red-600 dark:text-red-400"})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-muted-foreground",children:new Date(e.completedAt).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})})]},`${e.key}-${e.completedAt}-${r}`))})]})}),(0,t.jsx)(i.default,{currentPage:P,totalPages:d,onPageChange:R})]}))]}),v.recentErrors.length>0&&(0,t.jsxs)("section",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("h2",{className:"text-sm font-semibold text-foreground mb-2",children:["Recent Errors",(0,t.jsxs)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:["(",v.recentErrors.length,")"]})]}),(0,t.jsx)("div",{className:"space-y-1",children:v.recentErrors.map((e,r)=>(0,t.jsxs)("div",{className:"text-xs bg-muted/30 rounded px-2 py-1 flex items-start gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-muted-foreground shrink-0",children:e.key}),(0,t.jsx)("span",{className:"text-red-500 break-all",children:e.error}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0 ml-auto",children:h(e.at)})]},`${e.key}-${e.at}-${r}`))})]})]})]})}e.s(["default",()=>y],64439)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},73520,e=>{"use strict";var t=e.i(43476);let r=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var s=e.i(63059);function a({currentPage:e,totalPages:a,onPageChange:n}){if(a<=1)return null;let l=e=>`px-3 py-2 text-sm rounded-md transition-colors flex items-center gap-1 bg-muted text-muted-foreground ${e?"opacity-50 cursor-not-allowed":"hover:bg-muted/80"}`;return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 py-4",children:[(0,t.jsxs)("button",{onClick:()=>n(e-1),disabled:1===e,className:l(1===e),"aria-label":"Previous page",children:[(0,t.jsx)(r,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Previous"})]}),(0,t.jsx)("div",{className:"flex items-center gap-1",children:(()=>{if(a<=7)return Array.from({length:a},(e,t)=>t+1);let t=[1],r=Math.max(2,e-1),s=Math.min(a-1,e+1);e<=3&&(s=Math.min(5,a-1)),e>=a-2&&(r=Math.max(2,a-4)),r>2&&t.push("ellipsis-start");for(let e=r;e<=s;e++)t.push(e);return s<a-1&&t.push("ellipsis-end"),t.push(a),t})().map(r=>"string"==typeof r?(0,t.jsx)("span",{className:"px-2 text-muted-foreground",children:"..."},r):(0,t.jsx)("button",{onClick:()=>n(r),className:`min-w-[2.5rem] px-3 py-2 text-sm rounded-md transition-colors ${e===r?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"aria-label":`Page ${r}`,"aria-current":e===r?"page":void 0,children:r},r))}),(0,t.jsxs)("button",{onClick:()=>n(e+1),disabled:e===a,className:l(e===a),"aria-label":"Next page",children:[(0,t.jsx)("span",{className:"hidden sm:inline",children:"Next"}),(0,t.jsx)(s.ChevronRight,{className:"w-4 h-4"})]})]})}e.s(["default",()=>a],73520)},80060,2711,e=>{"use strict";var t=e.i(18566),r=e.i(71645);function s(){let e=(0,t.useSearchParams)(),s=(0,t.useRouter)(),a=(0,t.usePathname)(),n=(0,r.useRef)(null),l=(0,r.useCallback)(t=>e.get(t),[e]),o=(0,r.useCallback)(()=>new URLSearchParams(e.toString()),[e]),i=(0,r.useCallback)(t=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{let r=new URLSearchParams(e.toString());for(let[e,s]of Object.entries(t))void 0===s||""===s?r.delete(e):r.set(e,s);let n=r.toString(),l=n?`${a}?${n}`:a;s.replace(l,{scroll:!1})},150)},[e,a,s]);return(0,r.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{get:l,getAll:o,setAll:i}}function a(e){return"all"===e?void 0:e}function n(e){return e&&["all","last-hour","today","last-7-days","last-30-days","custom"].includes(e)?e:"all"}function l(e){let t={};return e.from&&(t.from=p(e.from)),e.to&&(t.to=p(e.to)),t}function o(e,t){return{from:h(e),to:h(t)}}function i(e){if(0!==e.length)return e.map(e=>encodeURIComponent(e)).join(",")}function d(e){return e?e.split(",").map(e=>decodeURIComponent(e.trim())).filter(e=>e.length>0):[]}function c(e){return e<=1?void 0:String(e)}function u(e){if(!e)return 1;let t=parseInt(e,10);return Number.isFinite(t)&&t>=1?t:1}function m(e,t){switch(e.type){case"boolean":return"all"===t?void 0:t;case"number":if(t.min===e.min&&t.max===e.max)return;return`${t.min}~${t.max}`;case"string":if(t.size===e.values.length)return;return Array.from(t).map(e=>encodeURIComponent(e)).join(",");case"date":if(!t.from&&!t.to)return;return`${t.from??""},${t.to??""}`}}function x(e,t){if(null===t||""===t)return null;switch(e.type){case"boolean":if("true"===t||"false"===t)return t;return null;case"number":{let e=t.split("~");if(2!==e.length)return null;let r=parseFloat(e[0]),s=parseFloat(e[1]);if(!Number.isFinite(r)||!Number.isFinite(s))return null;return{min:r,max:s}}case"string":{let r=t.split(",").map(e=>decodeURIComponent(e.trim())).filter(t=>e.values.includes(t));if(0===r.length)return null;return new Set(r)}case"date":{let e=t.split(",");if(2!==e.length)return null;let r=e[0]||null,s=e[1]||null;if(!r&&!s||r&&!f(r)||s&&!f(s))return null;return{from:r,to:s}}}}function p(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${s}`}function h(e){if(!e||!f(e))return null;let[t,r,s]=e.split("-").map(Number);return new Date(t,r-1,s,12,0,0)}function f(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)&&!isNaN(Date.parse(e))}e.s(["useUrlParams",()=>s],80060),e.s(["activeFilterToParam",()=>m,"dateRangeToParams",()=>l,"keywordsToParam",()=>i,"pageToParam",()=>c,"paramToActiveFilter",()=>x,"paramToKeywords",()=>d,"paramToPage",()=>u,"paramToPreset",()=>n,"paramsToDateRange",()=>o,"presetToParam",()=>a],2711)},1742,e=>{"use strict";let t=(0,e.i(75254).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",()=>t],1742)},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],71689)},64439,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),a=e.i(71689);let n=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var l=e.i(1742),o=e.i(16715),i=e.i(73520),d=e.i(95187);let c=(0,d.createServerReference)("40cf7e431d5ae3f9dc3f5f52a0b6eaba9f0127c161",d.callServer,void 0,d.findSourceMapURL,"getCompletedHistoryAction"),u=(0,d.createServerReference)("6062c9732cb5367b9c737dc7b809451d4ff5d87bc0",d.callServer,void 0,d.findSourceMapURL,"searchCompletedHistoryAction");var m=e.i(85881),x=e.i(80060),p=e.i(2711);function h(e){let t=Math.floor((Date.now()-e)/1e3);if(t<60)return`${t}s ago`;let r=Math.floor(t/60);if(r<60)return`${r}m ago`;let s=Math.floor(r/60);return`${s}h ago`}function f({type:e}){let r="eval"===e?"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400":"action"===e?"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400":"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400";return(0,t.jsx)("span",{className:`inline-flex items-center rounded px-1.5 py-0.5 text-[0.6rem] font-medium ${r}`,children:e.toUpperCase()})}function g({priority:e}){let r=e<=0;return(0,t.jsx)("span",{className:`text-[0.6rem] font-medium px-1.5 py-0.5 rounded ${r?"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400":"bg-muted text-muted-foreground"}`,children:r?"HIGH":"LOW"})}function b({projectName:e,sessionId:r}){return(0,t.jsx)(s.default,{href:`/project/${encodeURIComponent(e)}/session/${encodeURIComponent(r)}`,className:"text-blue-600 dark:text-blue-400 hover:underline truncate block max-w-[200px]",children:r})}function y(){let e,d,{intervalSec:y}=(0,m.useAutoRefresh)(),j=(0,x.useUrlParams)(),N=(0,r.useRef)(!1),[v,k]=(0,r.useState)(null),[w,S]=(0,r.useState)(null),[C,$]=(0,r.useState)(()=>{let e=j.get("tab");return"pending"===e||"processing"===e||"completed"===e?e:"processing"}),[P,R]=(0,r.useState)(()=>(0,p.paramToPage)(j.get("page"))),[T,I]=(0,r.useState)(null),A=(0,r.useRef)(C),[U,E]=(0,r.useState)(()=>{let e=j.get("type");return"eval"===e||"enrichment"===e||"action"===e?e:""}),[F,M]=(0,r.useState)(()=>j.get("item")??""),[L,D]=(0,r.useState)(()=>j.get("session")??""),z=(0,r.useRef)(null),H=(0,r.useRef)({filterType:U,filterItem:F,filterSession:L});H.current={filterType:U,filterItem:F,filterSession:L},(0,r.useEffect)(()=>{if(!N.current){N.current=!0;return}j.setAll({tab:"processing"===C?void 0:C,type:U||void 0,item:F||void 0,session:L||void 0,page:"completed"===C?(0,p.pageToParam)(P):void 0})},[C,U,F,L,P]);let q=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/queue-status",{cache:"no-store"});if(e.ok){let t=await e.json();k(t),S(null)}else S(`Failed to fetch: ${e.status}`)}catch{S("Network error")}},[]),O=(0,r.useCallback)(async e=>{try{let t,{filterType:r,filterItem:s,filterSession:a}=H.current;t=""!==r||""!==s||""!==a?await u({type:r||void 0,itemName:s||void 0,sessionId:a||void 0},e):await c(e),I(t)}catch{}},[]);(0,r.useEffect)(()=>{q();let e=setInterval(q,y>0?1e3*y:5e3);return()=>clearInterval(e)},[q,y]),(0,r.useEffect)(()=>{"completed"===C&&"completed"!==A.current&&(R(1),O(1)),A.current=C},[C,O]),(0,r.useEffect)(()=>{if("completed"===C)return z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{R(1),O(1)},300),()=>{z.current&&clearTimeout(z.current)}},[U,F,L]),(0,r.useEffect)(()=>{if("completed"!==C)return;O(P);let e=setInterval(()=>O(P),y>0?1e3*y:5e3);return()=>clearInterval(e)},[P,C,O,y]),(0,r.useEffect)(()=>{"completed"===C&&y>0&&1===P&&T&&0===T.entries.length&&T.totalPages>1&&R(2)},[C,y,P,T]);let B=[{key:"pending",label:"In Queue",count:v?.pending.length??0},{key:"processing",label:"Processing",count:v?.processing.length??0},{key:"completed",label:"Processed"}];return(0,t.jsxs)("div",{className:"min-h-screen bg-background p-6 max-w-4xl mx-auto",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)(s.default,{href:"/",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)(a.ArrowLeft,{className:"h-4 w-4"}),"Back"]}),(0,t.jsx)("h1",{className:"text-2xl font-bold text-foreground mt-2",children:"Queue Details"})]}),w&&!v&&(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg p-4 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-destructive mb-2",children:w}),(0,t.jsx)("button",{onClick:q,className:"text-xs text-primary hover:underline",children:"Retry"})]}),!v&&!w&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading..."}),v&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"flex gap-1 border-b border-border",children:B.map(e=>(0,t.jsxs)("button",{onClick:()=>$(e.key),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${C===e.key?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[e.label,null!=e.count&&(0,t.jsxs)("span",{className:"ml-1.5 text-xs text-muted-foreground",children:["(",e.count,")"]})]},e.key))}),(0,t.jsxs)("div",{className:"bg-card border border-border rounded-lg overflow-hidden",children:["pending"===C&&(0===v.pending.length?(0,t.jsx)("p",{className:"px-4 py-8 text-xs text-muted-foreground text-center",children:"No items in queue."}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-muted-foreground border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Item"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Session"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Priority"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium text-right",children:"Queued"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:v.pending.map(e=>(0,t.jsxs)("tr",{className:"hover:bg-muted/20",children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(f,{type:e.type})}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-foreground",children:e.itemName}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(b,{projectName:e.projectName,sessionId:e.sessionId})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(g,{priority:e.priority})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-muted-foreground",children:h(e.addedAt)})]},e.key))})]})})),"processing"===C&&(0===v.processing.length?(0,t.jsx)("p",{className:"px-4 py-8 text-xs text-muted-foreground text-center",children:"No items currently processing."}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-muted-foreground border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Item"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Session"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Priority"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium text-right",children:"Started"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:v.processing.map(e=>(0,t.jsxs)("tr",{className:"hover:bg-muted/20",children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(f,{type:e.type})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(o.RefreshCw,{className:"w-3 h-3 text-blue-500 animate-spin flex-shrink-0"}),(0,t.jsx)("span",{className:"font-mono text-foreground",children:e.itemName})]})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(b,{projectName:e.projectName,sessionId:e.sessionId})}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(g,{priority:e.priority})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-muted-foreground",children:h(e.startedAt)})]},e.key))})]})})),"completed"===C&&(e=T?.entries??v.completed,d=T?.totalPages??1,(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border bg-muted/30",children:[(0,t.jsxs)("select",{value:U,onChange:e=>E(e.target.value),className:"h-7 rounded border border-border bg-background px-2 text-xs text-foreground",children:[(0,t.jsx)("option",{value:"",children:"All Types"}),(0,t.jsx)("option",{value:"eval",children:"Eval"}),(0,t.jsx)("option",{value:"enrichment",children:"Enrichment"}),(0,t.jsx)("option",{value:"action",children:"Action"})]}),(0,t.jsx)("input",{type:"text",value:F,onChange:e=>M(e.target.value),placeholder:"Filter by item...",className:"h-7 rounded border border-border bg-background px-2 text-xs text-foreground placeholder:text-muted-foreground w-40"}),(0,t.jsx)("input",{type:"text",value:L,onChange:e=>D(e.target.value),placeholder:"Filter by session...",className:"h-7 rounded border border-border bg-background px-2 text-xs text-foreground placeholder:text-muted-foreground w-40"})]}),0===e.length?(0,t.jsx)("p",{className:"px-4 py-8 text-xs text-muted-foreground text-center",children:"No completed items."}):(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-xs",children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{className:"text-left text-muted-foreground border-b border-border bg-muted/30",children:[(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Type"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Item"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Session"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Duration"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,t.jsx)("th",{className:"px-3 py-2 font-medium text-right",children:"Completed"})]})}),(0,t.jsx)("tbody",{className:"divide-y divide-border/50",children:e.map((e,r)=>(0,t.jsxs)("tr",{className:"hover:bg-muted/20",children:[(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(f,{type:e.type})}),(0,t.jsx)("td",{className:"px-3 py-2 font-mono text-foreground",children:e.itemName}),(0,t.jsx)("td",{className:"px-3 py-2",children:(0,t.jsx)(b,{projectName:e.projectName,sessionId:e.sessionId})}),(0,t.jsx)("td",{className:"px-3 py-2 text-muted-foreground",children:function(e){if(e<1e3)return`${e}ms`;let t=(e/1e3).toFixed(1);return`${t}s`}(e.durationMs)}),(0,t.jsx)("td",{className:"px-3 py-2",children:e.success?(0,t.jsx)(n,{className:"h-3.5 w-3.5 text-green-600 dark:text-green-400"}):(0,t.jsx)(l.XCircle,{className:"h-3.5 w-3.5 text-red-600 dark:text-red-400"})}),(0,t.jsx)("td",{className:"px-3 py-2 text-right text-muted-foreground",children:new Date(e.completedAt).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})})]},`${e.key}-${e.completedAt}-${r}`))})]})}),(0,t.jsx)(i.default,{currentPage:P,totalPages:d,onPageChange:R})]}))]}),v.recentErrors.length>0&&(0,t.jsxs)("section",{className:"bg-card border border-border rounded-lg p-4",children:[(0,t.jsxs)("h2",{className:"text-sm font-semibold text-foreground mb-2",children:["Recent Errors",(0,t.jsxs)("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:["(",v.recentErrors.length,")"]})]}),(0,t.jsx)("div",{className:"space-y-1",children:v.recentErrors.map((e,r)=>(0,t.jsxs)("div",{className:"text-xs bg-muted/30 rounded px-2 py-1 flex items-start gap-2",children:[(0,t.jsx)("span",{className:"font-mono text-muted-foreground shrink-0",children:e.key}),(0,t.jsx)("span",{className:"text-red-500 break-all",children:e.error}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0 ml-auto",children:h(e.at)})]},`${e.key}-${e.at}-${r}`))})]})]})]})}e.s(["default",()=>y],64439)}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89954,e=>{"use strict";var r=e.i(43476),o=e.i(71645),t=e.i(18566),s=e.i(95187);let d=(0,s.createServerReference)("
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89954,e=>{"use strict";var r=e.i(43476),o=e.i(71645),t=e.i(18566),s=e.i(95187);let d=(0,s.createServerReference)("40056b498eb6631e2f66074c98107fb7f714f19982",s.callServer,void 0,s.findSourceMapURL,"login");var n=e.i(15127),a=e.i(22016);function i(){let e=(0,t.useSearchParams)(),s=(0,t.useRouter)(),i=e.get("from")??"/",[l,u]=(0,o.useState)(null),[c,m]=(0,o.useState)(!1);async function x(e){e.preventDefault(),u(null),m(!0);let r=new FormData(e.currentTarget);r.set("redirectTo",i);let o=await d(r);o?.error?(u(o.error),m(!1)):o?.redirectTo&&s.push(o.redirectTo)}return(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:(0,r.jsxs)("div",{className:"w-full max-w-sm rounded-lg border border-border bg-card p-8 shadow-lg",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-2 mb-6",children:[(0,r.jsx)(a.default,{href:"/",children:(0,r.jsx)(n.Logo,{width:36,height:36})}),(0,r.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:"Sign in to Claudeye"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"Enter your credentials to continue"})]}),(0,r.jsxs)("form",{onSubmit:x,className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("label",{htmlFor:"username",className:"text-sm font-medium text-foreground",children:"Username"}),(0,r.jsx)("input",{id:"username",name:"username",type:"text",required:!0,autoComplete:"username",autoFocus:!0,className:"rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary",placeholder:"admin"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("label",{htmlFor:"password",className:"text-sm font-medium text-foreground",children:"Password"}),(0,r.jsx)("input",{id:"password",name:"password",type:"password",required:!0,autoComplete:"current-password",className:"rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary"})]}),l&&(0,r.jsx)("p",{className:"text-sm text-red-500 bg-red-500/10 rounded-md px-3 py-2",children:l}),(0,r.jsx)("button",{type:"submit",disabled:c,className:"mt-1 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-primary/50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:c?"Signing in...":"Sign in"})]})]})})}e.s(["default",()=>i],89954)}]);
|