fleetlens 0.4.1 → 0.6.0
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/app/apps/web/.next/BUILD_ID +1 -1
- package/app/apps/web/.next/app-path-routes-manifest.json +16 -7
- package/app/apps/web/.next/build-manifest.json +7 -7
- package/app/apps/web/.next/prerender-manifest.json +3 -3
- package/app/apps/web/.next/required-server-files.json +2 -1
- package/app/apps/web/.next/routes-manifest.json +86 -24
- package/app/apps/web/.next/server/app/_global-error/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/_global-error/page.js +1 -1
- package/app/apps/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/_global-error.html +1 -1
- package/app/apps/web/.next/server/app/_global-error.rsc +7 -7
- package/app/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/app/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/app/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/app/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/app/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/apps/web/.next/server/app/_not-found/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/_not-found/page.js +5 -4
- package/app/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/api/digest/day/[date]/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/digest/day/[date]/route.js +9 -0
- package/app/apps/web/.next/server/app/api/{insights/saved/[key] → digest/day/[date]}/route.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/api/digest/day/[date]/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/digest/month/[yearMonth]/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/digest/month/[yearMonth]/route.js +9 -0
- package/app/apps/web/.next/server/app/api/digest/month/[yearMonth]/route.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/api/digest/month/[yearMonth]/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/digest/month-index/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/digest/month-index/route.js +7 -0
- package/app/apps/web/.next/server/app/api/{insights/months-index → digest/month-index}/route.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/api/{insights/pdf/[key] → digest/month-index}/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/api/digest/week/[startDate]/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/digest/week/[startDate]/route.js +9 -0
- package/app/apps/web/.next/server/app/api/digest/week/[startDate]/route.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/api/digest/week/[startDate]/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/digest/week-index/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/digest/week-index/route.js +7 -0
- package/app/apps/web/.next/server/app/api/{insights/weeks-index → digest/week-index}/route.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/api/digest/week-index/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/jobs/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/jobs/route.js +6 -0
- package/app/apps/web/.next/server/app/api/jobs/route.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/api/jobs/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/route/build-manifest.json +9 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/route.js +6 -0
- package/app/apps/web/.next/server/app/api/{insights/saved → runs/[runId]}/route.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/api/runs/[runId]/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/stream/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/stream/route/build-manifest.json +9 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/stream/route/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/stream/route.js +6 -0
- package/app/apps/web/.next/server/app/api/runs/[runId]/stream/route.js.map +5 -0
- package/app/apps/web/.next/server/app/api/{insights/pdf/[key] → runs/[runId]/stream}/route.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/api/runs/[runId]/stream/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/runs/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/runs/route/build-manifest.json +9 -0
- package/app/apps/web/.next/server/app/api/runs/route/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/api/runs/route.js +6 -0
- package/app/apps/web/.next/server/app/api/runs/route.js.map +5 -0
- package/app/apps/web/.next/server/app/api/{insights → runs}/route.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/api/runs/route_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/api/settings/route/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/api/settings/route/build-manifest.json +9 -0
- package/app/apps/web/.next/server/app/api/settings/route/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/api/settings/route.js +10 -0
- package/app/apps/web/.next/server/app/api/settings/route.js.map +5 -0
- package/app/apps/web/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/api/{insights → settings}/route_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/day/[date]/page/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/{insights/print/[key] → day/[date]}/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/day/[date]/page/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/day/[date]/page.js +18 -0
- package/app/apps/web/.next/server/app/day/[date]/page.js.map +5 -0
- package/app/apps/web/.next/server/app/day/[date]/page.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/day/[date]/page_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/day/page/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/day/page/build-manifest.json +17 -0
- package/app/apps/web/.next/server/app/day/page/next-font-manifest.json +6 -0
- package/app/apps/web/.next/server/app/day/page/react-loadable-manifest.json +1 -0
- package/app/apps/web/.next/server/app/day/page/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/{insights/print/[key] → day}/page.js +11 -10
- package/app/apps/web/.next/server/app/day/page.js.map +5 -0
- package/app/apps/web/.next/server/app/day/page.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/day/page_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/digest/[date]/page/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/digest/[date]/page/build-manifest.json +17 -0
- package/app/apps/web/.next/server/app/digest/[date]/page/next-font-manifest.json +6 -0
- package/app/apps/web/.next/server/app/digest/[date]/page/react-loadable-manifest.json +1 -0
- package/app/apps/web/.next/server/app/digest/[date]/page/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/digest/[date]/page.js +17 -0
- package/app/apps/web/.next/server/app/digest/[date]/page.js.map +5 -0
- package/app/apps/web/.next/server/app/digest/[date]/page.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/digest/[date]/page_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/digest/page/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/digest/page/build-manifest.json +17 -0
- package/app/apps/web/.next/server/app/digest/page/next-font-manifest.json +6 -0
- package/app/apps/web/.next/server/app/digest/page/react-loadable-manifest.json +1 -0
- package/app/apps/web/.next/server/app/digest/page/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/digest/page.js +17 -0
- package/app/apps/web/.next/server/app/digest/page.js.map +5 -0
- package/app/apps/web/.next/server/app/digest/page.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/digest/page_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/insights/[key]/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/insights/[key]/page.js +7 -5
- package/app/apps/web/.next/server/app/insights/[key]/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/insights/[key]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/insights/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/insights/page.js +7 -5
- package/app/apps/web/.next/server/app/insights/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/insights/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/page.js +7 -6
- package/app/apps/web/.next/server/app/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/parallelism/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/parallelism/page.js +6 -5
- package/app/apps/web/.next/server/app/parallelism/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/parallelism/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/projects/[slug]/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/projects/[slug]/page.js +6 -5
- package/app/apps/web/.next/server/app/projects/[slug]/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/projects/[slug]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/projects/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/projects/page.js +5 -4
- package/app/apps/web/.next/server/app/projects/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/projects/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/runs/page/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/runs/page/build-manifest.json +17 -0
- package/app/apps/web/.next/server/app/runs/page/next-font-manifest.json +6 -0
- package/app/apps/web/.next/server/app/runs/page/react-loadable-manifest.json +1 -0
- package/app/apps/web/.next/server/app/runs/page/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/runs/page.js +17 -0
- package/app/apps/web/.next/server/app/runs/page.js.map +5 -0
- package/app/apps/web/.next/server/app/runs/page.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/runs/page_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/sessions/[id]/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/sessions/[id]/page.js +5 -4
- package/app/apps/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/sessions/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/sessions/page.js +5 -4
- package/app/apps/web/.next/server/app/sessions/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app/settings/page/app-paths-manifest.json +3 -0
- package/app/apps/web/.next/server/app/settings/page/build-manifest.json +17 -0
- package/app/apps/web/.next/server/app/settings/page/next-font-manifest.json +6 -0
- package/app/apps/web/.next/server/app/settings/page/react-loadable-manifest.json +1 -0
- package/app/apps/web/.next/server/app/settings/page/server-reference-manifest.json +4 -0
- package/app/apps/web/.next/server/app/settings/page.js +18 -0
- package/app/apps/web/.next/server/app/settings/page.js.map +5 -0
- package/app/apps/web/.next/server/app/settings/page.js.nft.json +1 -0
- package/app/apps/web/.next/server/app/settings/page_client-reference-manifest.js +3 -0
- package/app/apps/web/.next/server/app/usage/page/build-manifest.json +4 -4
- package/app/apps/web/.next/server/app/usage/page.js +6 -5
- package/app/apps/web/.next/server/app/usage/page.js.nft.json +1 -1
- package/app/apps/web/.next/server/app/usage/page_client-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/app-paths-manifest.json +16 -7
- package/app/apps/web/.next/server/chunks/02dz_web__next-internal_server_app_api_digest_week_[startDate]_route_actions_0klqqsh.js +3 -0
- package/app/apps/web/.next/server/chunks/09og__next-internal_server_app_api_digest_month_[yearMonth]_route_actions_0i4ielu.js +3 -0
- package/app/apps/web/.next/server/chunks/[externals]__0o43ejh._.js +3 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0-vgrh1._.js +3 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__00n3f9y._.js +3 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__02zukjw._.js +3 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__067~im1._.js +6 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__06b4cj-._.js +3 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0_8zh-i._.js +9 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0e8n_x4._.js +3 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0ej_p3s._.js +9 -0
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0jprdks._.js +9 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_digest_day_[date]_route_actions_09sxie5.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_digest_month-index_route_actions_0wldpbu.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_digest_week-index_route_actions_12c2wj2.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_jobs_route_actions_08kx~8-.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_runs_[runId]_route_actions_0dfcghc.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_runs_[runId]_stream_route_actions_0.8e8-k.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_runs_route_actions_0xyx82f.js +3 -0
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_settings_route_actions_0.xv7sx.js +3 -0
- package/app/apps/web/.next/server/chunks/node_modules_next_036my~r._.js +49 -0
- package/app/apps/web/.next/server/chunks/packages_0e7q9u_._.js +3 -0
- package/app/apps/web/.next/server/chunks/packages_0n6p2ot._.js +3 -0
- package/app/apps/web/.next/server/chunks/packages_entries_dist_node_0bckr7-.js +379 -0
- package/app/apps/web/.next/server/chunks/packages_parser_dist_fs_0bc7ptm.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0-1_njm._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0-94ji~._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__13xpdx0._.js → [root-of-the-server]__03uoeiw._.js} +2 -2
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0_6.inc._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0d~2~le._.js +8 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0gio_ck._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__08.d5ia._.js → [root-of-the-server]__0jdyefm._.js} +10 -10
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ln9jsw._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__0z45d0g._.js → [root-of-the-server]__0lz4a~g._.js} +2 -48
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0o1_g.~._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0r4tks8._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0rvzdnx._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__0euu8sa._.js → [root-of-the-server]__0u39afl._.js} +2 -2
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0u5d7de._.js +12 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0w52fbc._.js +3 -3
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0wwa6gh._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0xy1qim._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0~_8vff._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10srpu0._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__11v.eqw._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/_02s1n-x._.js +8 -0
- package/app/apps/web/.next/server/chunks/ssr/_0fjbf--._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/_0jw2sm7._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/_0wj750k._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/_0woap-3._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/{_0xies90._.js → _0xu2pvc._.js} +2 -2
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_day_[date]_page_actions_0u2kxb..js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_day_page_actions_1042maj.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_digest_[date]_page_actions_0olu967.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_digest_page_actions_0bl.eil.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_runs_page_actions_0485qy7.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_settings_page_actions_0f6epye.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_app_day_[date]_day-view_tsx_0wjoe1u._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_app_settings_ai-features-form_tsx_01p699p._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_0b-4-4j._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_0ly1xes._.js +6 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_0txtsv5._.js +16 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_0xs658s._.js +10 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_runs-live-board_tsx_0r6dkdq._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_usage-charts-dashboard_tsx_0bgr_uv._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/apps_web_lib_usage-data_ts_0xtv99n._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/node_modules_0i2xw~e._.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_0e1izl_._.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d3d4wn.js +4 -0
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0edz1ko.js +4 -0
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0eq.n-n.js +4 -0
- package/app/apps/web/.next/server/chunks/ssr/{node_modules_next_dist_esm_build_templates_app-page_0vz7_px.js → node_modules_next_dist_esm_build_templates_app-page_0hcvt-s.js} +3 -3
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nd5zu0.js +4 -0
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_11j1qy0.js +4 -0
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_12n1lw_.js +1 -1
- package/app/apps/web/.next/server/chunks/ssr/packages_entries_dist_node_0_271yr.js +3 -0
- package/app/apps/web/.next/server/chunks/ssr/packages_parser_dist_0-jvt~a._.js +1 -1
- package/app/apps/web/.next/server/functions-config-manifest.json +11 -6
- package/app/apps/web/.next/server/middleware-build-manifest.js +7 -7
- package/app/apps/web/.next/server/pages/500.html +1 -1
- package/app/apps/web/.next/server/server-reference-manifest.js +1 -1
- package/app/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/app/apps/web/.next/static/chunks/0-yc2_pjxwwuq.js +1 -0
- package/app/apps/web/.next/static/chunks/0257pdz1-imal.js +2 -0
- package/app/apps/web/.next/static/chunks/05m.oz3kmf1p7.js +1 -0
- package/app/apps/web/.next/static/chunks/{0pqt~8bl3ukh4.js → 073081qv4uyn8.js} +1 -1
- package/app/apps/web/.next/static/chunks/{0018dy-m-kusj.js → 07lbm-sdh9c2j.js} +1 -1
- package/app/apps/web/.next/static/chunks/0858bgw2i4vob.js +1 -0
- package/app/apps/web/.next/static/chunks/0_7303jr0sf0w.js +10 -0
- package/app/apps/web/.next/static/chunks/0byz8fqw.exef.js +1 -0
- package/app/apps/web/.next/static/chunks/0coa1800xqgfj.js +1 -0
- package/app/apps/web/.next/static/chunks/0fs3gxea5h0s3.css +1 -0
- package/app/apps/web/.next/static/chunks/0k1psab.bybh9.js +14 -0
- package/app/apps/web/.next/static/chunks/0k9pksi_i.odf.js +1 -0
- package/app/apps/web/.next/static/chunks/0m62vx92~0_0d.js +1 -0
- package/app/apps/web/.next/static/chunks/0mc8aa8z.0-5l.js +8 -0
- package/app/apps/web/.next/static/chunks/0mykrrv810ra-.js +31 -0
- package/app/apps/web/.next/static/chunks/0o9ayt8sknubd.js +1 -0
- package/app/apps/web/.next/static/chunks/0osdgl2.9cl1q.js +6 -0
- package/app/apps/web/.next/static/chunks/0xfu09fn_358k.js +4 -0
- package/app/apps/web/.next/static/chunks/171za22fv684..js +6 -0
- package/app/apps/web/.next/static/chunks/17u2ww8ya5dv1.js +6 -0
- package/app/apps/web/.next/static/chunks/{turbopack-169w-1._23ra_.js → turbopack-0_p36yduv.waj.js} +1 -1
- package/app/apps/web/app/api/digest/day/[date]/route.ts +152 -0
- package/app/apps/web/app/api/digest/month/[yearMonth]/route.ts +147 -0
- package/app/apps/web/app/api/digest/month-index/route.ts +103 -0
- package/app/apps/web/app/api/digest/week/[startDate]/route.ts +149 -0
- package/app/apps/web/app/api/{insights/weeks-index → digest/week-index}/route.ts +45 -33
- package/app/apps/web/app/api/jobs/route.ts +8 -0
- package/app/apps/web/app/api/runs/[runId]/route.ts +64 -0
- package/app/apps/web/app/api/runs/[runId]/stream/route.ts +154 -0
- package/app/apps/web/app/api/runs/route.ts +266 -0
- package/app/apps/web/app/api/settings/route.ts +35 -0
- package/app/apps/web/app/day/[date]/day-view.tsx +193 -0
- package/app/apps/web/app/day/[date]/page.tsx +175 -0
- package/app/apps/web/app/day/page.tsx +8 -0
- package/app/apps/web/app/digest/[date]/page.tsx +15 -0
- package/app/apps/web/app/digest/page.tsx +7 -0
- package/app/apps/web/app/insights/[key]/page.tsx +106 -48
- package/app/apps/web/app/insights/page.tsx +133 -3
- package/app/apps/web/app/layout.tsx +23 -3
- package/app/apps/web/app/page.tsx +33 -4
- package/app/apps/web/app/parallelism/gantt-chart.tsx +67 -1
- package/app/apps/web/app/parallelism/page.tsx +8 -278
- package/app/apps/web/app/projects/[slug]/page.tsx +153 -0
- package/app/apps/web/app/projects/page.tsx +49 -4
- package/app/apps/web/app/projects/projects-view.tsx +79 -68
- package/app/apps/web/app/runs/page.tsx +21 -0
- package/app/apps/web/app/sessions/[id]/page.tsx +12 -1
- package/app/apps/web/app/sessions/[id]/session-view.tsx +119 -0
- package/app/apps/web/app/sessions/page.tsx +19 -3
- package/app/apps/web/app/sessions/sessions-grid.tsx +172 -131
- package/app/apps/web/app/settings/ai-features-form.tsx +45 -0
- package/app/apps/web/app/settings/page.tsx +20 -0
- package/app/apps/web/app/usage/page.tsx +45 -3
- package/app/apps/web/components/auto-generate-yesterday.tsx +96 -0
- package/app/apps/web/components/backfill-drawer.tsx +309 -0
- package/app/apps/web/components/dashboard-view.tsx +4 -2
- package/app/apps/web/components/date-nav.tsx +385 -0
- package/app/apps/web/components/day-digest-view.tsx +180 -0
- package/app/apps/web/components/day-digest.tsx +489 -0
- package/app/apps/web/components/flag-chip.tsx +54 -0
- package/app/apps/web/components/goal-bar.tsx +63 -0
- package/app/apps/web/components/heatmap.tsx +78 -1
- package/app/apps/web/components/helpfulness-sparkline.tsx +82 -0
- package/app/apps/web/components/insights-history.tsx +211 -0
- package/app/apps/web/components/insights-top-bar.tsx +216 -0
- package/app/apps/web/components/job-queue-widget.tsx +274 -0
- package/app/apps/web/components/live-sessions-widget.tsx +38 -3
- package/app/apps/web/components/month-digest-view.tsx +138 -0
- package/app/apps/web/components/month-digest.tsx +216 -0
- package/app/apps/web/components/outcome-mix-row.tsx +37 -0
- package/app/apps/web/components/outcome-pill.tsx +101 -0
- package/app/apps/web/components/previous-cycles-trend.tsx +155 -0
- package/app/apps/web/components/recent-days-panel.tsx +83 -0
- package/app/apps/web/components/runs-live-board.tsx +513 -0
- package/app/apps/web/components/sidebar.tsx +38 -4
- package/app/apps/web/components/usage-chart-range.tsx +58 -6
- package/app/apps/web/components/usage-chart.tsx +94 -7
- package/app/apps/web/components/usage-charts-dashboard.tsx +20 -1
- package/app/apps/web/components/week-digest-view.tsx +226 -0
- package/app/apps/web/components/week-digest.tsx +2128 -0
- package/app/apps/web/components/yesterday-hero.tsx +110 -0
- package/app/apps/web/lib/auto-week-fire.ts +37 -0
- package/app/apps/web/lib/calibration-data.ts +171 -0
- package/app/apps/web/lib/entries-index.ts +174 -0
- package/app/apps/web/lib/entries.ts +72 -0
- package/app/apps/web/lib/inflight-coalesce.test.ts +43 -0
- package/app/apps/web/lib/inflight-coalesce.ts +19 -0
- package/app/apps/web/lib/jobs.ts +170 -0
- package/app/apps/web/lib/usage-data.ts +37 -0
- package/app/apps/web/lib/validate-settings.test.ts +25 -0
- package/app/apps/web/lib/validate-settings.ts +9 -0
- package/app/apps/web/next.config.ts +1 -1
- package/app/apps/web/package.json +4 -2
- package/app/apps/web/server.js +1 -1
- package/app/apps/web/tsconfig.tsbuildinfo +1 -1
- package/app/apps/web/vitest.config.ts +9 -0
- package/dist/daemon-worker.js +1937 -979
- package/dist/index.js +11210 -1877
- package/package.json +4 -1
- package/app/apps/web/.next/server/app/api/insights/months-index/route/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/api/insights/months-index/route.js +0 -7
- package/app/apps/web/.next/server/app/api/insights/months-index/route_client-reference-manifest.js +0 -3
- package/app/apps/web/.next/server/app/api/insights/pdf/[key]/route/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/api/insights/pdf/[key]/route.js +0 -6
- package/app/apps/web/.next/server/app/api/insights/route/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/api/insights/route.js +0 -8
- package/app/apps/web/.next/server/app/api/insights/saved/[key]/route/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/api/insights/saved/[key]/route.js +0 -6
- package/app/apps/web/.next/server/app/api/insights/saved/[key]/route_client-reference-manifest.js +0 -3
- package/app/apps/web/.next/server/app/api/insights/saved/route/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/api/insights/saved/route.js +0 -6
- package/app/apps/web/.next/server/app/api/insights/saved/route_client-reference-manifest.js +0 -3
- package/app/apps/web/.next/server/app/api/insights/weeks-index/route/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/api/insights/weeks-index/route.js +0 -7
- package/app/apps/web/.next/server/app/api/insights/weeks-index/route_client-reference-manifest.js +0 -3
- package/app/apps/web/.next/server/app/insights/print/[key]/page/app-paths-manifest.json +0 -3
- package/app/apps/web/.next/server/app/insights/print/[key]/page.js.nft.json +0 -1
- package/app/apps/web/.next/server/app/insights/print/[key]/page_client-reference-manifest.js +0 -3
- package/app/apps/web/.next/server/chunks/02dz_web__next-internal_server_app_api_insights_months-index_route_actions_0~h~zci.js +0 -3
- package/app/apps/web/.next/server/chunks/02dz_web__next-internal_server_app_api_insights_saved_[key]_route_actions_0a5j9yw.js +0 -3
- package/app/apps/web/.next/server/chunks/02dz_web__next-internal_server_app_api_insights_weeks-index_route_actions_0hh-1c7.js +0 -3
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0.hmj0z._.js +0 -3
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__01h_g-p._.js +0 -3
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0nh-z10._.js +0 -3
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0ri7q~r._.js +0 -3
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0rr1~~x._.js +0 -3
- package/app/apps/web/.next/server/chunks/[root-of-the-server]__0s0gv.0._.js +0 -3
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_insights_pdf_[key]_route_actions_0lu-lnx.js +0 -3
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_insights_route_actions_0h8l5lz.js +0 -3
- package/app/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_insights_saved_route_actions_13rlblw.js +0 -3
- package/app/apps/web/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_00t2xj6.js +0 -68
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0.tsxpj._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__00z7zlm._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__08pen0k._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0b323~k._.js +0 -8
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0gx-4qa._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0wv27wt._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/[root-of-the-server]__13itnvx._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/_09n75_5._.js +0 -8
- package/app/apps/web/.next/server/chunks/ssr/_0r~__0v._.js +0 -12
- package/app/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_insights_print_[key]_page_actions_0a853fw.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/apps_web_app_parallelism_08vub.0._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_06j3c.0._.js +0 -8
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_0bbo_pd._.js +0 -8
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_insight-report_tsx_13q2a-c._.js +0 -12
- package/app/apps/web/.next/server/chunks/ssr/apps_web_components_insights-view_tsx_11730ta._.js +0 -6
- package/app/apps/web/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0nqz8dw._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/node_modules_next_dist_0t-hj0x._.js +0 -3
- package/app/apps/web/.next/server/chunks/ssr/packages_parser_dist_analytics_0k4dgst.js +0 -3
- package/app/apps/web/.next/static/chunks/028_pmk40b69_.js +0 -6
- package/app/apps/web/.next/static/chunks/03.mv4y4.w-vb.js +0 -6
- package/app/apps/web/.next/static/chunks/03_7xtpi9sv4g.js +0 -4
- package/app/apps/web/.next/static/chunks/08c1pcrocqq5s.js +0 -6
- package/app/apps/web/.next/static/chunks/0e-wrhqh4h3r5.js +0 -2
- package/app/apps/web/.next/static/chunks/0fc6dk2qtokwh.js +0 -1
- package/app/apps/web/.next/static/chunks/0i7er7_bfab36.js +0 -10
- package/app/apps/web/.next/static/chunks/0ipytyi01h0ta.js +0 -1
- package/app/apps/web/.next/static/chunks/0lsznd4_avzhv.js +0 -6
- package/app/apps/web/.next/static/chunks/0lty3v_i9mde7.js +0 -1
- package/app/apps/web/.next/static/chunks/0u-n8fz-ms.ee.js +0 -6
- package/app/apps/web/.next/static/chunks/0vekjjj4pidlz.css +0 -1
- package/app/apps/web/.next/static/chunks/137uw2-qbro07.js +0 -31
- package/app/apps/web/.next/static/chunks/15w5_bct86ut6.js +0 -10
- package/app/apps/web/app/api/insights/months-index/route.ts +0 -80
- package/app/apps/web/app/api/insights/pdf/[key]/route.ts +0 -45
- package/app/apps/web/app/api/insights/route.ts +0 -508
- package/app/apps/web/app/api/insights/saved/[key]/route.ts +0 -11
- package/app/apps/web/app/api/insights/saved/route.ts +0 -9
- package/app/apps/web/app/insights/print/[key]/page.tsx +0 -73
- package/app/apps/web/components/insight-report.tsx +0 -1031
- package/app/apps/web/components/insights-view.tsx +0 -647
- package/app/apps/web/lib/ai/insights-prompt.ts +0 -71
- package/app/apps/web/lib/ai/saved-reports.ts +0 -83
- /package/app/apps/web/.next/server/app/api/{insights/months-index → digest/day/[date]}/route/build-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/months-index → digest/day/[date]}/route/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/months-index → digest/day/[date]}/route.js.map +0 -0
- /package/app/apps/web/.next/server/app/api/{insights → digest/month/[yearMonth]}/route/build-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights → digest/month/[yearMonth]}/route/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights → digest/month/[yearMonth]}/route.js.map +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/pdf/[key] → digest/month-index}/route/build-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/pdf/[key] → digest/month-index}/route/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/pdf/[key] → digest/month-index}/route.js.map +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/saved → digest/week/[startDate]}/route/build-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/saved → digest/week/[startDate]}/route/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/saved → digest/week/[startDate]}/route.js.map +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/saved/[key] → digest/week-index}/route/build-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/saved/[key] → digest/week-index}/route/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/saved/[key] → digest/week-index}/route.js.map +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/weeks-index → jobs}/route/build-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/weeks-index → jobs}/route/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/api/{insights/weeks-index → jobs}/route.js.map +0 -0
- /package/app/apps/web/.next/server/app/{insights/print/[key]/page → api/runs/[runId]/route}/server-reference-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/{insights/print/[key]/page.js.map → api/runs/[runId]/route.js.map} +0 -0
- /package/app/apps/web/.next/server/app/{insights/print/[key] → day/[date]}/page/next-font-manifest.json +0 -0
- /package/app/apps/web/.next/server/app/{insights/print/[key] → day/[date]}/page/react-loadable-manifest.json +0 -0
- /package/app/apps/web/.next/static/{95-RytHk7ZQtfpZj5BLST → 8tTWPvUhtatZEoocIhamh}/_buildManifest.js +0 -0
- /package/app/apps/web/.next/static/{95-RytHk7ZQtfpZj5BLST → 8tTWPvUhtatZEoocIhamh}/_clientMiddlewareManifest.js +0 -0
- /package/app/apps/web/.next/static/{95-RytHk7ZQtfpZj5BLST → 8tTWPvUhtatZEoocIhamh}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import { Check, AlertCircle, Loader2, Clock } from "lucide-react";
|
|
5
|
+
import Link from "next/link";
|
|
6
|
+
|
|
7
|
+
type Job = {
|
|
8
|
+
id: string;
|
|
9
|
+
kind: string;
|
|
10
|
+
label: string;
|
|
11
|
+
target: string;
|
|
12
|
+
status: "queued" | "running" | "done" | "error" | "cancelled";
|
|
13
|
+
startedAt: string;
|
|
14
|
+
completedAt: string | null;
|
|
15
|
+
progress: { phase: string; index?: number; total?: number; bytes?: number; text?: string } | null;
|
|
16
|
+
resultUrl: string | null;
|
|
17
|
+
error: string | null;
|
|
18
|
+
caller: "auto" | "user" | "cli";
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const STORAGE_KEY = "cclens-jobs-widget-expanded";
|
|
22
|
+
|
|
23
|
+
export function JobQueueWidget() {
|
|
24
|
+
const [jobs, setJobs] = useState<Job[]>([]);
|
|
25
|
+
const [expanded, setExpanded] = useState(false);
|
|
26
|
+
|
|
27
|
+
// Persist expansion state.
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
try {
|
|
30
|
+
const saved = localStorage.getItem(STORAGE_KEY);
|
|
31
|
+
if (saved !== null) setExpanded(saved === "true");
|
|
32
|
+
} catch { /* ignore */ }
|
|
33
|
+
}, []);
|
|
34
|
+
|
|
35
|
+
const setExpandedPersist = (v: boolean | ((prev: boolean) => boolean)) => {
|
|
36
|
+
setExpanded((prev) => {
|
|
37
|
+
const next = typeof v === "function" ? v(prev) : v;
|
|
38
|
+
try { localStorage.setItem(STORAGE_KEY, String(next)); } catch { /* ignore */ }
|
|
39
|
+
return next;
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// Poll /api/jobs. Faster cadence when there's anything active.
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
let mounted = true;
|
|
46
|
+
let timeoutId: ReturnType<typeof setTimeout> | null = null;
|
|
47
|
+
|
|
48
|
+
const tick = async () => {
|
|
49
|
+
try {
|
|
50
|
+
const res = await fetch("/api/jobs", { cache: "no-store" });
|
|
51
|
+
if (!res.ok) return;
|
|
52
|
+
const data = await res.json() as { jobs: Job[] };
|
|
53
|
+
if (mounted) setJobs(data.jobs);
|
|
54
|
+
} catch { /* ignore */ }
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const schedule = () => {
|
|
58
|
+
if (!mounted) return;
|
|
59
|
+
const hasActive = jobs.some(j => j.status === "running" || j.status === "queued");
|
|
60
|
+
const delay = hasActive ? 1500 : 6000;
|
|
61
|
+
timeoutId = setTimeout(async () => { await tick(); schedule(); }, delay);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
void tick();
|
|
65
|
+
schedule();
|
|
66
|
+
return () => {
|
|
67
|
+
mounted = false;
|
|
68
|
+
if (timeoutId) clearTimeout(timeoutId);
|
|
69
|
+
};
|
|
70
|
+
}, [jobs]);
|
|
71
|
+
|
|
72
|
+
const active = jobs.filter(j => j.status === "running" || j.status === "queued");
|
|
73
|
+
const recent = jobs.filter(j => j.status === "done" || j.status === "error" || j.status === "cancelled").slice(0, 8);
|
|
74
|
+
|
|
75
|
+
// Hide entirely when nothing is active. Recent jobs are still accessible
|
|
76
|
+
// by re-triggering an action; we don't want a permanent footer chip.
|
|
77
|
+
if (active.length === 0) return null;
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<div
|
|
81
|
+
style={{
|
|
82
|
+
position: "fixed",
|
|
83
|
+
// Sit to the LEFT of the live-sessions widget pill (~110px).
|
|
84
|
+
// Anchored to the same bottom baseline so the two read as a row.
|
|
85
|
+
right: 140,
|
|
86
|
+
bottom: 20,
|
|
87
|
+
zIndex: 99,
|
|
88
|
+
display: "flex",
|
|
89
|
+
flexDirection: "column-reverse",
|
|
90
|
+
gap: 6,
|
|
91
|
+
maxWidth: 320,
|
|
92
|
+
alignItems: "flex-end",
|
|
93
|
+
}}
|
|
94
|
+
>
|
|
95
|
+
{/* Pill — always visible (we early-returned if no active). */}
|
|
96
|
+
<button
|
|
97
|
+
type="button"
|
|
98
|
+
onClick={() => setExpandedPersist(v => !v)}
|
|
99
|
+
title={`${active.length} job${active.length === 1 ? "" : "s"} running — click to ${expanded ? "collapse" : "expand"}`}
|
|
100
|
+
style={{
|
|
101
|
+
display: "inline-flex",
|
|
102
|
+
alignItems: "center",
|
|
103
|
+
gap: 6,
|
|
104
|
+
padding: "5px 11px 5px 9px",
|
|
105
|
+
background: "rgba(66, 153, 225, 0.14)",
|
|
106
|
+
border: "1px solid rgba(66, 153, 225, 0.4)",
|
|
107
|
+
borderRadius: 100,
|
|
108
|
+
fontSize: 10,
|
|
109
|
+
fontWeight: 700,
|
|
110
|
+
color: "#4299e1",
|
|
111
|
+
letterSpacing: "0.06em",
|
|
112
|
+
textTransform: "uppercase",
|
|
113
|
+
cursor: "pointer",
|
|
114
|
+
userSelect: "none",
|
|
115
|
+
backdropFilter: "blur(8px)",
|
|
116
|
+
WebkitBackdropFilter: "blur(8px)",
|
|
117
|
+
boxShadow: "0 2px 10px rgba(66, 153, 225, 0.15)",
|
|
118
|
+
alignSelf: "flex-end",
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
<Loader2
|
|
122
|
+
size={11}
|
|
123
|
+
className="cs-job-spin"
|
|
124
|
+
style={{ flexShrink: 0 }}
|
|
125
|
+
/>
|
|
126
|
+
Jobs · {active.length}
|
|
127
|
+
</button>
|
|
128
|
+
|
|
129
|
+
{expanded && (
|
|
130
|
+
<div
|
|
131
|
+
style={{
|
|
132
|
+
width: 320,
|
|
133
|
+
maxHeight: 360,
|
|
134
|
+
overflowY: "auto",
|
|
135
|
+
background: "var(--af-surface-elevated)",
|
|
136
|
+
border: "1px solid var(--af-border-subtle)",
|
|
137
|
+
borderRadius: 10,
|
|
138
|
+
boxShadow: "0 8px 24px rgba(0,0,0,0.18)",
|
|
139
|
+
backdropFilter: "blur(8px)",
|
|
140
|
+
WebkitBackdropFilter: "blur(8px)",
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
143
|
+
{active.length > 0 && (
|
|
144
|
+
<div>
|
|
145
|
+
<SectionLabel>Running</SectionLabel>
|
|
146
|
+
{active.map(j => <JobRow key={j.id} job={j} />)}
|
|
147
|
+
</div>
|
|
148
|
+
)}
|
|
149
|
+
{recent.length > 0 && (
|
|
150
|
+
<div>
|
|
151
|
+
<SectionLabel>Recent</SectionLabel>
|
|
152
|
+
{recent.map(j => <JobRow key={j.id} job={j} />)}
|
|
153
|
+
</div>
|
|
154
|
+
)}
|
|
155
|
+
</div>
|
|
156
|
+
)}
|
|
157
|
+
|
|
158
|
+
<style>{`
|
|
159
|
+
@keyframes cs-job-spin {
|
|
160
|
+
from { transform: rotate(0deg); }
|
|
161
|
+
to { transform: rotate(360deg); }
|
|
162
|
+
}
|
|
163
|
+
.cs-job-spin {
|
|
164
|
+
animation: cs-job-spin 1s linear infinite;
|
|
165
|
+
}
|
|
166
|
+
`}</style>
|
|
167
|
+
</div>
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function SectionLabel({ children }: { children: React.ReactNode }) {
|
|
172
|
+
return (
|
|
173
|
+
<div style={{
|
|
174
|
+
padding: "6px 14px",
|
|
175
|
+
fontSize: 9,
|
|
176
|
+
color: "var(--af-text-tertiary)",
|
|
177
|
+
textTransform: "uppercase",
|
|
178
|
+
letterSpacing: "0.08em",
|
|
179
|
+
fontWeight: 700,
|
|
180
|
+
background: "var(--af-surface)",
|
|
181
|
+
}}>
|
|
182
|
+
{children}
|
|
183
|
+
</div>
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function JobRow({ job }: { job: Job }) {
|
|
188
|
+
const Icon =
|
|
189
|
+
job.status === "running" ? Loader2 :
|
|
190
|
+
job.status === "queued" ? Clock :
|
|
191
|
+
job.status === "error" ? AlertCircle :
|
|
192
|
+
Check;
|
|
193
|
+
const iconColor =
|
|
194
|
+
job.status === "running" ? "#4299e1" :
|
|
195
|
+
job.status === "queued" ? "var(--af-text-tertiary)" :
|
|
196
|
+
job.status === "error" ? "#f56565" :
|
|
197
|
+
"#48bb78";
|
|
198
|
+
const isLink = job.resultUrl && (job.status === "done" || job.status === "running");
|
|
199
|
+
const Container: any = isLink ? Link : "div";
|
|
200
|
+
const containerProps = isLink ? { href: job.resultUrl! } : {};
|
|
201
|
+
|
|
202
|
+
return (
|
|
203
|
+
<Container
|
|
204
|
+
{...containerProps}
|
|
205
|
+
style={{
|
|
206
|
+
display: "flex",
|
|
207
|
+
alignItems: "flex-start",
|
|
208
|
+
gap: 10,
|
|
209
|
+
padding: "10px 14px",
|
|
210
|
+
borderBottom: "1px solid var(--af-border-subtle)",
|
|
211
|
+
textDecoration: "none",
|
|
212
|
+
color: "var(--af-text)",
|
|
213
|
+
fontSize: 11.5,
|
|
214
|
+
cursor: isLink ? "pointer" : "default",
|
|
215
|
+
}}
|
|
216
|
+
>
|
|
217
|
+
<Icon
|
|
218
|
+
size={13}
|
|
219
|
+
className={job.status === "running" ? "cs-job-spin" : ""}
|
|
220
|
+
style={{ color: iconColor, marginTop: 2, flexShrink: 0 }}
|
|
221
|
+
/>
|
|
222
|
+
<div style={{ flex: 1, minWidth: 0 }}>
|
|
223
|
+
<div style={{
|
|
224
|
+
fontWeight: 500,
|
|
225
|
+
overflow: "hidden",
|
|
226
|
+
textOverflow: "ellipsis",
|
|
227
|
+
whiteSpace: "nowrap",
|
|
228
|
+
}}>
|
|
229
|
+
{job.label}
|
|
230
|
+
</div>
|
|
231
|
+
{job.progress && (
|
|
232
|
+
<div style={{
|
|
233
|
+
fontSize: 10,
|
|
234
|
+
color: "var(--af-text-tertiary)",
|
|
235
|
+
marginTop: 2,
|
|
236
|
+
fontFamily: "var(--font-mono)",
|
|
237
|
+
}}>
|
|
238
|
+
{progressDescription(job.progress)}
|
|
239
|
+
</div>
|
|
240
|
+
)}
|
|
241
|
+
{job.status === "error" && job.error && (
|
|
242
|
+
<div style={{
|
|
243
|
+
fontSize: 10,
|
|
244
|
+
color: "#f56565",
|
|
245
|
+
marginTop: 2,
|
|
246
|
+
}}>
|
|
247
|
+
{job.error.length > 60 ? job.error.slice(0, 60) + "…" : job.error}
|
|
248
|
+
</div>
|
|
249
|
+
)}
|
|
250
|
+
{job.status === "done" && job.resultUrl && (
|
|
251
|
+
<div style={{
|
|
252
|
+
fontSize: 10,
|
|
253
|
+
color: "var(--af-accent)",
|
|
254
|
+
marginTop: 2,
|
|
255
|
+
}}>
|
|
256
|
+
View →
|
|
257
|
+
</div>
|
|
258
|
+
)}
|
|
259
|
+
</div>
|
|
260
|
+
</Container>
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function progressDescription(p: { phase: string; index?: number; total?: number; bytes?: number; text?: string }): string {
|
|
265
|
+
if (p.index !== undefined && p.total !== undefined) {
|
|
266
|
+
return `${p.phase} ${p.index}/${p.total}`;
|
|
267
|
+
}
|
|
268
|
+
if (p.bytes !== undefined) {
|
|
269
|
+
const kb = (p.bytes / 1024).toFixed(1);
|
|
270
|
+
return `${p.phase} · ${kb}k`;
|
|
271
|
+
}
|
|
272
|
+
if (p.text) return `${p.phase} · ${p.text}`;
|
|
273
|
+
return p.phase;
|
|
274
|
+
}
|
|
@@ -17,6 +17,8 @@ import { usePathname } from "next/navigation";
|
|
|
17
17
|
import Link from "next/link";
|
|
18
18
|
import { prettyProjectName } from "@/lib/format";
|
|
19
19
|
import { TeamBadge } from "@/components/team-badge";
|
|
20
|
+
import { OutcomePill } from "@/components/outcome-pill";
|
|
21
|
+
import type { DayOutcome, EntryEnrichmentStatus } from "@claude-lens/entries";
|
|
20
22
|
|
|
21
23
|
const LIVE_WINDOW_MS = 45_000;
|
|
22
24
|
const MAX_VISIBLE = 5;
|
|
@@ -34,7 +36,19 @@ export type LiveSessionPick = {
|
|
|
34
36
|
agentName?: string;
|
|
35
37
|
};
|
|
36
38
|
|
|
37
|
-
export
|
|
39
|
+
export type LiveEntrySummary = {
|
|
40
|
+
outcome: DayOutcome | null;
|
|
41
|
+
enrichmentStatus: EntryEnrichmentStatus;
|
|
42
|
+
localDay: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export function LiveSessionsWidget({
|
|
46
|
+
sessions,
|
|
47
|
+
entrySummaries = {},
|
|
48
|
+
}: {
|
|
49
|
+
sessions: LiveSessionPick[];
|
|
50
|
+
entrySummaries?: Record<string, LiveEntrySummary>;
|
|
51
|
+
}) {
|
|
38
52
|
const pathname = usePathname();
|
|
39
53
|
const [now, setNow] = useState(() => Date.now());
|
|
40
54
|
// Collapsed by default on first render so users who previously
|
|
@@ -166,7 +180,9 @@ export function LiveSessionsWidget({ sessions }: { sessions: LiveSessionPick[] }
|
|
|
166
180
|
)}
|
|
167
181
|
|
|
168
182
|
{/* Session cards — reverse order so newest is nearest the pill. */}
|
|
169
|
-
{visible.map((s) =>
|
|
183
|
+
{visible.map((s) => {
|
|
184
|
+
const sum = entrySummaries[s.id];
|
|
185
|
+
return (
|
|
170
186
|
<Link
|
|
171
187
|
key={s.id}
|
|
172
188
|
href={`/sessions/${s.id}`}
|
|
@@ -190,6 +206,24 @@ export function LiveSessionsWidget({ sessions }: { sessions: LiveSessionPick[] }
|
|
|
190
206
|
prettyProjectName(s.projectName)
|
|
191
207
|
}
|
|
192
208
|
>
|
|
209
|
+
{sum && (
|
|
210
|
+
<div
|
|
211
|
+
onClick={(e) => e.stopPropagation()}
|
|
212
|
+
style={{ marginBottom: 4 }}
|
|
213
|
+
>
|
|
214
|
+
{sum.outcome ? (
|
|
215
|
+
<OutcomePill outcome={sum.outcome} size="sm" label="text" />
|
|
216
|
+
) : sum.enrichmentStatus !== "skipped_trivial" ? (
|
|
217
|
+
<OutcomePill
|
|
218
|
+
outcome={null}
|
|
219
|
+
pending
|
|
220
|
+
sessionId={s.id}
|
|
221
|
+
localDay={sum.localDay}
|
|
222
|
+
size="sm"
|
|
223
|
+
/>
|
|
224
|
+
) : null}
|
|
225
|
+
</div>
|
|
226
|
+
)}
|
|
193
227
|
{/* Title: most recent user message — "what am I working on now". */}
|
|
194
228
|
<div
|
|
195
229
|
style={{
|
|
@@ -248,7 +282,8 @@ export function LiveSessionsWidget({ sessions }: { sessions: LiveSessionPick[] }
|
|
|
248
282
|
{prettyProjectName(s.projectName)}
|
|
249
283
|
</div>
|
|
250
284
|
</Link>
|
|
251
|
-
|
|
285
|
+
);
|
|
286
|
+
})}
|
|
252
287
|
|
|
253
288
|
<style>{`
|
|
254
289
|
@keyframes cs-live-pulse {
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useCallback, type ReactNode } from "react";
|
|
3
|
+
import { MonthDigest as MonthDigestRender } from "./month-digest";
|
|
4
|
+
import type { MonthDigest as MonthDigestType } from "@claude-lens/entries";
|
|
5
|
+
|
|
6
|
+
type Status = "idle" | "streaming" | "done" | "error";
|
|
7
|
+
|
|
8
|
+
export function MonthDigestView({
|
|
9
|
+
initial, yearMonth, aiEnabled,
|
|
10
|
+
}: {
|
|
11
|
+
initial: MonthDigestType | null;
|
|
12
|
+
yearMonth: string;
|
|
13
|
+
aiEnabled: boolean;
|
|
14
|
+
}) {
|
|
15
|
+
const [digest, setDigest] = useState<MonthDigestType | null>(initial);
|
|
16
|
+
const [status, setStatus] = useState<Status>("idle");
|
|
17
|
+
const [progress, setProgress] = useState<string>("");
|
|
18
|
+
|
|
19
|
+
const generate = useCallback(async (force = false) => {
|
|
20
|
+
setStatus("streaming");
|
|
21
|
+
setProgress("Starting...");
|
|
22
|
+
const url = `/api/digest/month/${yearMonth}${force ? "?force=1" : ""}`;
|
|
23
|
+
const res = await fetch(url, { method: "POST" });
|
|
24
|
+
if (!res.ok || !res.body) {
|
|
25
|
+
setStatus("error");
|
|
26
|
+
setProgress(`Error ${res.status}`);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const reader = res.body.getReader();
|
|
30
|
+
const decoder = new TextDecoder();
|
|
31
|
+
let buf = "";
|
|
32
|
+
while (true) {
|
|
33
|
+
const { done, value } = await reader.read();
|
|
34
|
+
if (done) break;
|
|
35
|
+
buf += decoder.decode(value, { stream: true });
|
|
36
|
+
const frames = buf.split("\n\n");
|
|
37
|
+
buf = frames.pop() ?? "";
|
|
38
|
+
for (const frame of frames) {
|
|
39
|
+
const dataLine = frame.split("\n").find(l => l.startsWith("data: "));
|
|
40
|
+
if (!dataLine) continue;
|
|
41
|
+
try {
|
|
42
|
+
const ev = JSON.parse(dataLine.slice(6));
|
|
43
|
+
if (ev.type === "status") setProgress(ev.text);
|
|
44
|
+
else if (ev.type === "dependency") {
|
|
45
|
+
setProgress(`${ev.kind === "day" ? "Day" : "Week"} ${ev.key} ${ev.status}`);
|
|
46
|
+
}
|
|
47
|
+
else if (ev.type === "entry") setProgress(`Enriching ${ev.index}/${ev.total}...`);
|
|
48
|
+
else if (ev.type === "progress") {
|
|
49
|
+
const sec = Math.round(ev.elapsed_ms / 1000);
|
|
50
|
+
setProgress(`Claude composing… ${ev.bytes.toLocaleString()} chars (${sec}s)`);
|
|
51
|
+
}
|
|
52
|
+
else if (ev.type === "digest") {
|
|
53
|
+
if (ev.digest && ev.digest.scope === "month") {
|
|
54
|
+
setDigest(ev.digest as MonthDigestType);
|
|
55
|
+
}
|
|
56
|
+
setProgress("Rendering...");
|
|
57
|
+
}
|
|
58
|
+
else if (ev.type === "saved") setProgress("Saved.");
|
|
59
|
+
else if (ev.type === "error") { setStatus("error"); setProgress(ev.message); return; }
|
|
60
|
+
} catch { /* skip */ }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
setStatus("done");
|
|
64
|
+
setProgress("");
|
|
65
|
+
}, [yearMonth]);
|
|
66
|
+
|
|
67
|
+
const isStreaming = status === "streaming";
|
|
68
|
+
const narrativeFresh = !!digest?.headline;
|
|
69
|
+
|
|
70
|
+
let actions: ReactNode = null;
|
|
71
|
+
if (!narrativeFresh && aiEnabled) {
|
|
72
|
+
actions = (
|
|
73
|
+
<button
|
|
74
|
+
onClick={() => generate(false)}
|
|
75
|
+
disabled={isStreaming}
|
|
76
|
+
style={{
|
|
77
|
+
padding: "4px 10px",
|
|
78
|
+
background: "var(--af-accent)",
|
|
79
|
+
color: "white",
|
|
80
|
+
border: "none",
|
|
81
|
+
borderRadius: 5,
|
|
82
|
+
cursor: isStreaming ? "default" : "pointer",
|
|
83
|
+
fontSize: 11,
|
|
84
|
+
fontWeight: 600,
|
|
85
|
+
opacity: isStreaming ? 0.6 : 1,
|
|
86
|
+
}}
|
|
87
|
+
>
|
|
88
|
+
{isStreaming ? "Generating..." : digest ? "Generate" : "Generate digest"}
|
|
89
|
+
</button>
|
|
90
|
+
);
|
|
91
|
+
} else if (aiEnabled) {
|
|
92
|
+
actions = (
|
|
93
|
+
<span style={{ fontSize: 10, color: "var(--af-text-tertiary)", display: "inline-flex", gap: 6, alignItems: "center" }}>
|
|
94
|
+
✓ Up to date
|
|
95
|
+
<button
|
|
96
|
+
onClick={() => generate(true)}
|
|
97
|
+
disabled={isStreaming}
|
|
98
|
+
style={{
|
|
99
|
+
padding: "2px 7px",
|
|
100
|
+
background: "transparent",
|
|
101
|
+
border: "1px solid var(--af-border-subtle)",
|
|
102
|
+
borderRadius: 4,
|
|
103
|
+
fontSize: 10,
|
|
104
|
+
color: "var(--af-text-secondary)",
|
|
105
|
+
cursor: isStreaming ? "default" : "pointer",
|
|
106
|
+
opacity: isStreaming ? 0.6 : 1,
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
{isStreaming ? "..." : "Re-roll"}
|
|
110
|
+
</button>
|
|
111
|
+
</span>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
if (progress) {
|
|
115
|
+
actions = (
|
|
116
|
+
<>
|
|
117
|
+
{actions}
|
|
118
|
+
<span style={{ fontSize: 10, color: "var(--af-text-tertiary)" }}>{progress}</span>
|
|
119
|
+
</>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (digest) {
|
|
124
|
+
return <MonthDigestRender digest={digest} aiEnabled={aiEnabled} actions={actions} />;
|
|
125
|
+
}
|
|
126
|
+
return (
|
|
127
|
+
<>
|
|
128
|
+
{actions && (
|
|
129
|
+
<div style={{ display: "flex", gap: 10, padding: "14px 40px 0", alignItems: "center", flexWrap: "wrap" }}>
|
|
130
|
+
{actions}
|
|
131
|
+
</div>
|
|
132
|
+
)}
|
|
133
|
+
<div style={{ padding: 28, textAlign: "center", color: "var(--af-text-secondary)", fontSize: 13 }}>
|
|
134
|
+
{isStreaming ? "Loading month digest…" : "No digest yet — click Generate above."}
|
|
135
|
+
</div>
|
|
136
|
+
</>
|
|
137
|
+
);
|
|
138
|
+
}
|