fleetlens 0.4.0 → 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 +569 -21
- 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 +1758 -713
- package/dist/index.js +11308 -1888
- 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/03g5dw5eskotd.js +0 -6
- package/app/apps/web/.next/static/chunks/063oimt30jeo9.js +0 -10
- 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/0vekjjj4pidlz.css +0 -1
- package/app/apps/web/.next/static/chunks/137uw2-qbro07.js +0 -31
- 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/{G_4ofKI9v9ARC_lb9JILZ → 8tTWPvUhtatZEoocIhamh}/_buildManifest.js +0 -0
- /package/app/apps/web/.next/static/{G_4ofKI9v9ARC_lb9JILZ → 8tTWPvUhtatZEoocIhamh}/_clientMiddlewareManifest.js +0 -0
- /package/app/apps/web/.next/static/{G_4ofKI9v9ARC_lb9JILZ → 8tTWPvUhtatZEoocIhamh}/_ssgManifest.js +0 -0
|
@@ -9,14 +9,29 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { Activity } from "lucide-react";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
readUsageSnapshots,
|
|
14
|
+
latestUsageSnapshot,
|
|
15
|
+
readCachedPlanTier,
|
|
16
|
+
PLAN_TIER_LABELS,
|
|
17
|
+
} from "@/lib/usage-data";
|
|
18
|
+
import {
|
|
19
|
+
readCalibrationDump,
|
|
20
|
+
predictedSeriesFor,
|
|
21
|
+
previousCyclesTrend,
|
|
22
|
+
} from "@/lib/calibration-data";
|
|
13
23
|
import { UsageChartsDashboard } from "@/components/usage-charts-dashboard";
|
|
24
|
+
import { PreviousCyclesTrend } from "@/components/previous-cycles-trend";
|
|
14
25
|
|
|
15
26
|
export const dynamic = "force-dynamic";
|
|
16
27
|
|
|
17
|
-
export default function UsagePage() {
|
|
28
|
+
export default async function UsagePage() {
|
|
18
29
|
const snapshots = readUsageSnapshots();
|
|
19
30
|
const latest = latestUsageSnapshot();
|
|
31
|
+
const tier = readCachedPlanTier();
|
|
32
|
+
const calibration = await readCalibrationDump();
|
|
33
|
+
const predicted = predictedSeriesFor(calibration);
|
|
34
|
+
const cycles7d = previousCyclesTrend(calibration, "7d");
|
|
20
35
|
|
|
21
36
|
return (
|
|
22
37
|
<div
|
|
@@ -49,13 +64,40 @@ export default function UsagePage() {
|
|
|
49
64
|
<span style={{ fontSize: 11, color: "var(--af-text-tertiary)" }}>
|
|
50
65
|
historical plan utilization · current usage in sidebar
|
|
51
66
|
</span>
|
|
67
|
+
{tier && (
|
|
68
|
+
<span
|
|
69
|
+
style={{
|
|
70
|
+
marginLeft: "auto",
|
|
71
|
+
display: "inline-flex",
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
gap: 8,
|
|
74
|
+
fontSize: 12,
|
|
75
|
+
padding: "4px 10px",
|
|
76
|
+
border: "1px solid var(--af-border-subtle)",
|
|
77
|
+
borderRadius: 999,
|
|
78
|
+
fontFamily: "var(--font-mono)",
|
|
79
|
+
}}
|
|
80
|
+
title={tier.rateLimitTier ? `Anthropic rate_limit_tier: ${tier.rateLimitTier}` : undefined}
|
|
81
|
+
>
|
|
82
|
+
<span style={{ color: "var(--af-text-tertiary)" }}>plan</span>
|
|
83
|
+
<span style={{ color: "var(--af-text)", fontWeight: 600 }}>
|
|
84
|
+
{PLAN_TIER_LABELS[tier.planTier].label}
|
|
85
|
+
</span>
|
|
86
|
+
{PLAN_TIER_LABELS[tier.planTier].monthlyPriceUsd > 0 && (
|
|
87
|
+
<span style={{ color: "var(--af-text-tertiary)" }}>
|
|
88
|
+
· ${PLAN_TIER_LABELS[tier.planTier].monthlyPriceUsd}/mo
|
|
89
|
+
</span>
|
|
90
|
+
)}
|
|
91
|
+
</span>
|
|
92
|
+
)}
|
|
52
93
|
</header>
|
|
53
94
|
|
|
54
95
|
{!latest ? (
|
|
55
96
|
<EmptyState />
|
|
56
97
|
) : (
|
|
57
98
|
<>
|
|
58
|
-
<
|
|
99
|
+
<PreviousCyclesTrend windowLabel="7d" cycles={cycles7d} />
|
|
100
|
+
<UsageChartsDashboard snapshots={snapshots} predicted={predicted} />
|
|
59
101
|
<div
|
|
60
102
|
style={{
|
|
61
103
|
fontSize: 11,
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Client-only companion that auto-triggers yesterday's digest the first
|
|
7
|
+
* time the home page is loaded on a given local-day. localStorage-gated
|
|
8
|
+
* to one attempt per day so revisits don't re-fire (the user can still
|
|
9
|
+
* manually click Regenerate on the digest page to redo).
|
|
10
|
+
*/
|
|
11
|
+
export function AutoGenerateYesterday({
|
|
12
|
+
yesterdayDate,
|
|
13
|
+
missing,
|
|
14
|
+
onDone,
|
|
15
|
+
}: {
|
|
16
|
+
yesterdayDate: string;
|
|
17
|
+
missing: boolean;
|
|
18
|
+
onDone?: () => void;
|
|
19
|
+
}) {
|
|
20
|
+
const [state, setState] = useState<"idle" | "running" | "done" | "error">("idle");
|
|
21
|
+
const [progress, setProgress] = useState<string>("");
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (!missing) return;
|
|
25
|
+
const key = `cclens:autogen-yesterday:${yesterdayDate}`;
|
|
26
|
+
if (typeof window === "undefined") return;
|
|
27
|
+
if (window.localStorage.getItem(key)) return; // already attempted today
|
|
28
|
+
window.localStorage.setItem(key, "1");
|
|
29
|
+
|
|
30
|
+
let cancelled = false;
|
|
31
|
+
(async () => {
|
|
32
|
+
setState("running");
|
|
33
|
+
setProgress("Starting...");
|
|
34
|
+
try {
|
|
35
|
+
const res = await fetch(`/api/digest/day/${yesterdayDate}`, { method: "POST" });
|
|
36
|
+
if (!res.ok || !res.body) { setState("error"); setProgress(`HTTP ${res.status}`); return; }
|
|
37
|
+
const reader = res.body.getReader();
|
|
38
|
+
const decoder = new TextDecoder();
|
|
39
|
+
let buf = "";
|
|
40
|
+
while (!cancelled) {
|
|
41
|
+
const { done, value } = await reader.read();
|
|
42
|
+
if (done) break;
|
|
43
|
+
buf += decoder.decode(value, { stream: true });
|
|
44
|
+
const frames = buf.split("\n\n");
|
|
45
|
+
buf = frames.pop() ?? "";
|
|
46
|
+
for (const frame of frames) {
|
|
47
|
+
const dataLine = frame.split("\n").find(l => l.startsWith("data: "));
|
|
48
|
+
if (!dataLine) continue;
|
|
49
|
+
try {
|
|
50
|
+
const ev = JSON.parse(dataLine.slice(6));
|
|
51
|
+
if (ev.type === "status") setProgress(ev.text);
|
|
52
|
+
else if (ev.type === "entry") setProgress(`Enriching ${ev.index}/${ev.total}…`);
|
|
53
|
+
else if (ev.type === "progress") {
|
|
54
|
+
const sec = Math.round(ev.elapsed_ms / 1000);
|
|
55
|
+
setProgress(`Claude composing… ${ev.bytes.toLocaleString()} chars (${sec}s)`);
|
|
56
|
+
}
|
|
57
|
+
else if (ev.type === "digest") setProgress("Almost done…");
|
|
58
|
+
else if (ev.type === "saved") setProgress("Saved.");
|
|
59
|
+
else if (ev.type === "error") { setState("error"); setProgress(ev.message); return; }
|
|
60
|
+
} catch { /* skip */ }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
setState("done");
|
|
64
|
+
setProgress("");
|
|
65
|
+
if (onDone) onDone();
|
|
66
|
+
// Full reload so the hero picks up the persisted digest without a separate fetch.
|
|
67
|
+
if (typeof window !== "undefined") window.location.reload();
|
|
68
|
+
} catch (e) {
|
|
69
|
+
setState("error");
|
|
70
|
+
setProgress((e as Error).message);
|
|
71
|
+
}
|
|
72
|
+
})();
|
|
73
|
+
|
|
74
|
+
return () => { cancelled = true; };
|
|
75
|
+
}, [missing, yesterdayDate, onDone]);
|
|
76
|
+
|
|
77
|
+
if (!missing || state === "idle") return null;
|
|
78
|
+
const color = state === "error" ? "#f56565" : state === "done" ? "#48bb78" : "var(--af-accent)";
|
|
79
|
+
return (
|
|
80
|
+
<div style={{
|
|
81
|
+
display: "inline-flex", alignItems: "center", gap: 8, padding: "4px 10px",
|
|
82
|
+
borderRadius: 99, fontSize: 11, fontWeight: 500,
|
|
83
|
+
background: "var(--af-accent-subtle)", color,
|
|
84
|
+
}}>
|
|
85
|
+
<span style={{
|
|
86
|
+
display: "inline-block", width: 6, height: 6, borderRadius: "50%",
|
|
87
|
+
background: color, animation: state === "running" ? "cclensPulse 1.2s ease-in-out infinite" : undefined,
|
|
88
|
+
}} />
|
|
89
|
+
<span>{state === "running" ? "Generating yesterday's digest" : state === "done" ? "Done" : "Error"}</span>
|
|
90
|
+
{progress && <span style={{ color: "var(--af-text-tertiary)", fontSize: 10 }}>· {progress}</span>}
|
|
91
|
+
<style>{`
|
|
92
|
+
@keyframes cclensPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
|
|
93
|
+
`}</style>
|
|
94
|
+
</div>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
|
|
5
|
+
export type BackfillRow = {
|
|
6
|
+
date: string;
|
|
7
|
+
day_label: string;
|
|
8
|
+
entry_count: number;
|
|
9
|
+
pr_count: number;
|
|
10
|
+
status: "generated" | "pending" | "empty";
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Side drawer that lets the user select multiple days and enqueue
|
|
15
|
+
* digest generation. Heavy lifting is delegated to the central job
|
|
16
|
+
* queue: the drawer just kicks off POSTs to /api/digest/day/[date]
|
|
17
|
+
* (which registers a job in the queue) and can be safely closed —
|
|
18
|
+
* progress is visible in the JobQueueWidget.
|
|
19
|
+
*/
|
|
20
|
+
export function BackfillDrawer({
|
|
21
|
+
open,
|
|
22
|
+
onClose,
|
|
23
|
+
rows,
|
|
24
|
+
aiEnabled,
|
|
25
|
+
}: {
|
|
26
|
+
open: boolean;
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
rows: BackfillRow[];
|
|
29
|
+
aiEnabled: boolean;
|
|
30
|
+
}) {
|
|
31
|
+
const [selected, setSelected] = useState<Set<string>>(new Set());
|
|
32
|
+
const [busy, setBusy] = useState(false);
|
|
33
|
+
const [forceMode, setForceMode] = useState(false);
|
|
34
|
+
|
|
35
|
+
// Close on ESC.
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (!open) return;
|
|
38
|
+
const onKey = (e: KeyboardEvent) => { if (e.key === "Escape") onClose(); };
|
|
39
|
+
window.addEventListener("keydown", onKey);
|
|
40
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
41
|
+
}, [open, onClose]);
|
|
42
|
+
|
|
43
|
+
const toggle = (d: string) => {
|
|
44
|
+
setSelected(prev => {
|
|
45
|
+
const next = new Set(prev);
|
|
46
|
+
if (next.has(d)) next.delete(d); else next.add(d);
|
|
47
|
+
return next;
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
const selectPending = () =>
|
|
51
|
+
setSelected(new Set(rows.filter(r => r.status === "pending").map(r => r.date)));
|
|
52
|
+
const selectMissing = () =>
|
|
53
|
+
setSelected(new Set(rows.filter(r => r.status !== "empty").map(r => r.date)));
|
|
54
|
+
const clear = () => setSelected(new Set());
|
|
55
|
+
|
|
56
|
+
const enqueue = async () => {
|
|
57
|
+
if (selected.size === 0) return;
|
|
58
|
+
setBusy(true);
|
|
59
|
+
// Fire all POSTs sequentially. The server registers a job for each
|
|
60
|
+
// and the queue widget shows progress; the drawer doesn't need to
|
|
61
|
+
// track per-day state itself.
|
|
62
|
+
const dates = Array.from(selected).sort().reverse();
|
|
63
|
+
try {
|
|
64
|
+
for (const d of dates) {
|
|
65
|
+
const url = `/api/digest/day/${d}${forceMode ? "?force=1" : ""}`;
|
|
66
|
+
// Fire-and-stream: we read the SSE stream to drain the response,
|
|
67
|
+
// but don't need to parse anything — the queue widget polls
|
|
68
|
+
// /api/jobs and displays everything.
|
|
69
|
+
const res = await fetch(url, { method: "POST" });
|
|
70
|
+
if (res.body) {
|
|
71
|
+
const reader = res.body.getReader();
|
|
72
|
+
while (true) {
|
|
73
|
+
const r = await reader.read();
|
|
74
|
+
if (r.done) break;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
} finally {
|
|
79
|
+
setBusy(false);
|
|
80
|
+
setSelected(new Set());
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
if (!open) return null;
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<div
|
|
88
|
+
style={{
|
|
89
|
+
position: "fixed",
|
|
90
|
+
inset: 0,
|
|
91
|
+
background: "rgba(0,0,0,0.4)",
|
|
92
|
+
zIndex: 200,
|
|
93
|
+
display: "flex",
|
|
94
|
+
justifyContent: "flex-end",
|
|
95
|
+
}}
|
|
96
|
+
onClick={onClose}
|
|
97
|
+
>
|
|
98
|
+
<div
|
|
99
|
+
onClick={(e) => e.stopPropagation()}
|
|
100
|
+
style={{
|
|
101
|
+
width: "min(440px, 100%)",
|
|
102
|
+
height: "100%",
|
|
103
|
+
background: "var(--af-surface-elevated)",
|
|
104
|
+
borderLeft: "1px solid var(--af-border-subtle)",
|
|
105
|
+
display: "flex",
|
|
106
|
+
flexDirection: "column",
|
|
107
|
+
boxShadow: "-12px 0 32px rgba(0,0,0,0.25)",
|
|
108
|
+
}}
|
|
109
|
+
>
|
|
110
|
+
<header
|
|
111
|
+
style={{
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
114
|
+
justifyContent: "space-between",
|
|
115
|
+
padding: "14px 18px",
|
|
116
|
+
borderBottom: "1px solid var(--af-border-subtle)",
|
|
117
|
+
}}
|
|
118
|
+
>
|
|
119
|
+
<div>
|
|
120
|
+
<h2 style={{ fontSize: 15, fontWeight: 700, margin: 0 }}>Backfill digests</h2>
|
|
121
|
+
<p
|
|
122
|
+
style={{
|
|
123
|
+
fontSize: 11,
|
|
124
|
+
color: "var(--af-text-tertiary)",
|
|
125
|
+
margin: "2px 0 0",
|
|
126
|
+
}}
|
|
127
|
+
>
|
|
128
|
+
Each selected day enqueues a job. You can close this drawer.
|
|
129
|
+
</p>
|
|
130
|
+
</div>
|
|
131
|
+
<button
|
|
132
|
+
type="button"
|
|
133
|
+
onClick={onClose}
|
|
134
|
+
aria-label="Close"
|
|
135
|
+
style={{
|
|
136
|
+
background: "transparent",
|
|
137
|
+
border: "none",
|
|
138
|
+
color: "var(--af-text-tertiary)",
|
|
139
|
+
fontSize: 22,
|
|
140
|
+
cursor: "pointer",
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
143
|
+
×
|
|
144
|
+
</button>
|
|
145
|
+
</header>
|
|
146
|
+
|
|
147
|
+
{!aiEnabled && (
|
|
148
|
+
<div
|
|
149
|
+
style={{
|
|
150
|
+
padding: 12,
|
|
151
|
+
margin: 18,
|
|
152
|
+
background: "rgba(237,137,54,0.1)",
|
|
153
|
+
borderRadius: 6,
|
|
154
|
+
fontSize: 12,
|
|
155
|
+
color: "var(--af-text)",
|
|
156
|
+
}}
|
|
157
|
+
>
|
|
158
|
+
AI features are off — only deterministic digests will be written. Enable AI in Settings to generate narratives.
|
|
159
|
+
</div>
|
|
160
|
+
)}
|
|
161
|
+
|
|
162
|
+
<div
|
|
163
|
+
style={{
|
|
164
|
+
display: "flex",
|
|
165
|
+
gap: 6,
|
|
166
|
+
padding: "10px 18px",
|
|
167
|
+
borderBottom: "1px solid var(--af-border-subtle)",
|
|
168
|
+
flexWrap: "wrap",
|
|
169
|
+
fontSize: 11,
|
|
170
|
+
}}
|
|
171
|
+
>
|
|
172
|
+
<ActionBtn onClick={selectPending}>Select pending</ActionBtn>
|
|
173
|
+
<ActionBtn onClick={selectMissing}>Select all with entries</ActionBtn>
|
|
174
|
+
<ActionBtn onClick={clear}>Clear</ActionBtn>
|
|
175
|
+
<label
|
|
176
|
+
style={{
|
|
177
|
+
marginLeft: "auto",
|
|
178
|
+
display: "inline-flex",
|
|
179
|
+
alignItems: "center",
|
|
180
|
+
gap: 4,
|
|
181
|
+
fontSize: 11,
|
|
182
|
+
color: "var(--af-text-secondary)",
|
|
183
|
+
cursor: "pointer",
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
<input
|
|
187
|
+
type="checkbox"
|
|
188
|
+
checked={forceMode}
|
|
189
|
+
onChange={(e) => setForceMode(e.target.checked)}
|
|
190
|
+
/>
|
|
191
|
+
force regen
|
|
192
|
+
</label>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
<div style={{ flex: 1, overflowY: "auto" }}>
|
|
196
|
+
{rows.map((r) => (
|
|
197
|
+
<label
|
|
198
|
+
key={r.date}
|
|
199
|
+
style={{
|
|
200
|
+
display: "grid",
|
|
201
|
+
gridTemplateColumns: "auto 110px 80px 1fr",
|
|
202
|
+
gap: 10,
|
|
203
|
+
alignItems: "center",
|
|
204
|
+
padding: "8px 18px",
|
|
205
|
+
borderBottom: "1px solid var(--af-border-subtle)",
|
|
206
|
+
fontSize: 12,
|
|
207
|
+
cursor: r.status === "empty" ? "default" : "pointer",
|
|
208
|
+
opacity: r.status === "empty" ? 0.5 : 1,
|
|
209
|
+
}}
|
|
210
|
+
>
|
|
211
|
+
<input
|
|
212
|
+
type="checkbox"
|
|
213
|
+
disabled={r.status === "empty"}
|
|
214
|
+
checked={selected.has(r.date)}
|
|
215
|
+
onChange={() => toggle(r.date)}
|
|
216
|
+
/>
|
|
217
|
+
<span>{r.day_label}</span>
|
|
218
|
+
<span
|
|
219
|
+
style={{
|
|
220
|
+
fontSize: 10,
|
|
221
|
+
color: r.status === "generated" ? "#48bb78" : r.status === "pending" ? "#ed8936" : "var(--af-text-tertiary)",
|
|
222
|
+
}}
|
|
223
|
+
>
|
|
224
|
+
{r.status === "generated" ? "✓ ready" : r.status === "pending" ? "• pending" : "—"}
|
|
225
|
+
</span>
|
|
226
|
+
<span
|
|
227
|
+
style={{
|
|
228
|
+
fontFamily: "var(--font-mono)",
|
|
229
|
+
fontSize: 10,
|
|
230
|
+
color: "var(--af-text-tertiary)",
|
|
231
|
+
textAlign: "right",
|
|
232
|
+
}}
|
|
233
|
+
>
|
|
234
|
+
{r.entry_count > 0 ? `${r.entry_count} sess` : ""}
|
|
235
|
+
{r.pr_count > 0 ? ` · ${r.pr_count} PR` : ""}
|
|
236
|
+
</span>
|
|
237
|
+
</label>
|
|
238
|
+
))}
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
<footer
|
|
242
|
+
style={{
|
|
243
|
+
padding: "12px 18px",
|
|
244
|
+
borderTop: "1px solid var(--af-border-subtle)",
|
|
245
|
+
display: "flex",
|
|
246
|
+
gap: 10,
|
|
247
|
+
alignItems: "center",
|
|
248
|
+
}}
|
|
249
|
+
>
|
|
250
|
+
<span style={{ fontSize: 12, color: "var(--af-text-secondary)", flex: 1 }}>
|
|
251
|
+
{selected.size} day{selected.size === 1 ? "" : "s"} selected
|
|
252
|
+
</span>
|
|
253
|
+
<button
|
|
254
|
+
type="button"
|
|
255
|
+
onClick={onClose}
|
|
256
|
+
style={{
|
|
257
|
+
padding: "6px 12px",
|
|
258
|
+
background: "transparent",
|
|
259
|
+
border: "1px solid var(--af-border-subtle)",
|
|
260
|
+
borderRadius: 6,
|
|
261
|
+
fontSize: 12,
|
|
262
|
+
cursor: "pointer",
|
|
263
|
+
}}
|
|
264
|
+
>
|
|
265
|
+
Cancel
|
|
266
|
+
</button>
|
|
267
|
+
<button
|
|
268
|
+
type="button"
|
|
269
|
+
onClick={enqueue}
|
|
270
|
+
disabled={busy || selected.size === 0}
|
|
271
|
+
style={{
|
|
272
|
+
padding: "6px 14px",
|
|
273
|
+
background: "var(--af-accent)",
|
|
274
|
+
color: "white",
|
|
275
|
+
border: "none",
|
|
276
|
+
borderRadius: 6,
|
|
277
|
+
fontSize: 12,
|
|
278
|
+
fontWeight: 600,
|
|
279
|
+
cursor: busy || selected.size === 0 ? "default" : "pointer",
|
|
280
|
+
opacity: busy || selected.size === 0 ? 0.6 : 1,
|
|
281
|
+
}}
|
|
282
|
+
>
|
|
283
|
+
{busy ? `Enqueueing… (${selected.size})` : `Generate ${selected.size}`}
|
|
284
|
+
</button>
|
|
285
|
+
</footer>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function ActionBtn({ onClick, children }: { onClick: () => void; children: React.ReactNode }) {
|
|
292
|
+
return (
|
|
293
|
+
<button
|
|
294
|
+
type="button"
|
|
295
|
+
onClick={onClick}
|
|
296
|
+
style={{
|
|
297
|
+
padding: "3px 10px",
|
|
298
|
+
background: "transparent",
|
|
299
|
+
border: "1px solid var(--af-border-subtle)",
|
|
300
|
+
borderRadius: 5,
|
|
301
|
+
fontSize: 11,
|
|
302
|
+
color: "var(--af-text-secondary)",
|
|
303
|
+
cursor: "pointer",
|
|
304
|
+
}}
|
|
305
|
+
>
|
|
306
|
+
{children}
|
|
307
|
+
</button>
|
|
308
|
+
);
|
|
309
|
+
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
summarizeBursts,
|
|
7
7
|
highLevelMetrics,
|
|
8
8
|
} from "@claude-lens/parser";
|
|
9
|
-
import { Heatmap } from "@/components/heatmap";
|
|
9
|
+
import { Heatmap, type DaySummary } from "@/components/heatmap";
|
|
10
10
|
import { ActivityChart } from "@/components/activity-chart";
|
|
11
11
|
import { MetricCard } from "@/components/metric-card";
|
|
12
12
|
import { formatDuration, formatTokens, formatCost, estimateCostMulti } from "@/lib/format";
|
|
@@ -29,12 +29,14 @@ import { ListTree, Clock, Zap, DollarSign } from "lucide-react";
|
|
|
29
29
|
export function DashboardView({
|
|
30
30
|
sessions,
|
|
31
31
|
override,
|
|
32
|
+
daySummaries,
|
|
32
33
|
}: {
|
|
33
34
|
sessions: SessionMeta[];
|
|
34
35
|
override?: {
|
|
35
36
|
activeTimeMs?: number;
|
|
36
37
|
extraCards?: ReactNode;
|
|
37
38
|
};
|
|
39
|
+
daySummaries?: Map<string, DaySummary>;
|
|
38
40
|
}) {
|
|
39
41
|
const metrics = highLevelMetrics(sessions);
|
|
40
42
|
const buckets = dailyActivity(sessions);
|
|
@@ -182,7 +184,7 @@ export function DashboardView({
|
|
|
182
184
|
justifyContent: "center",
|
|
183
185
|
}}
|
|
184
186
|
>
|
|
185
|
-
<Heatmap buckets={buckets} valueKey="sessions" />
|
|
187
|
+
<Heatmap buckets={buckets} valueKey="sessions" daySummaries={daySummaries} />
|
|
186
188
|
</div>
|
|
187
189
|
</div>
|
|
188
190
|
|