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
|
@@ -24,6 +24,7 @@ export function UsageChart({
|
|
|
24
24
|
seriesKey,
|
|
25
25
|
windowMs,
|
|
26
26
|
colorVar,
|
|
27
|
+
predictedSeries,
|
|
27
28
|
onExpand,
|
|
28
29
|
}: {
|
|
29
30
|
snapshots: UsageSnapshot[];
|
|
@@ -31,6 +32,10 @@ export function UsageChart({
|
|
|
31
32
|
windowMs: number;
|
|
32
33
|
/** CSS variable for this window's color (e.g. 'var(--af-success)') */
|
|
33
34
|
colorVar: string;
|
|
35
|
+
/** Optional JSONL-derived utilization estimates, drawn as a dashed overlay
|
|
36
|
+
* for cold-start validation. Omitted on charts where we don't predict
|
|
37
|
+
* (e.g. seven_day_sonnet). */
|
|
38
|
+
predictedSeries?: { capturedAt: number; util: number }[];
|
|
34
39
|
/** If provided, render a fullscreen-expand button that calls this handler. */
|
|
35
40
|
onExpand?: () => void;
|
|
36
41
|
}) {
|
|
@@ -63,15 +68,27 @@ export function UsageChart({
|
|
|
63
68
|
.filter((x) => x.capturedAt >= windowStart && x.capturedAt <= resetsAt)
|
|
64
69
|
.map((x) => [x.capturedAt, 100 - (x.window.utilization ?? 0)] as const);
|
|
65
70
|
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
// Predicted series: clip to window, clamp util to [0, 100] (model is
|
|
72
|
+
// unbounded but utilization can't physically exceed the cap), then
|
|
73
|
+
// convert to remaining-budget. Sorted ascending for path drawing.
|
|
74
|
+
const predicted = (predictedSeries ?? [])
|
|
75
|
+
.filter((p) => p.capturedAt >= windowStart && p.capturedAt <= resetsAt)
|
|
76
|
+
.map((p) => [p.capturedAt, 100 - Math.max(0, Math.min(100, p.util))] as const)
|
|
77
|
+
.sort((a, b) => a[0] - b[0]);
|
|
78
|
+
|
|
79
|
+
return { points, predicted, windowStart, windowEnd: resetsAt, now, currentRemaining, latest };
|
|
80
|
+
}, [snapshots, seriesKey, windowMs, predictedSeries]);
|
|
68
81
|
|
|
69
82
|
const plotW = width - padding.left - padding.right;
|
|
70
83
|
const plotH = height - padding.top - padding.bottom;
|
|
71
84
|
|
|
72
|
-
const [hover, setHover] = useState<{
|
|
73
|
-
|
|
74
|
-
|
|
85
|
+
const [hover, setHover] = useState<{
|
|
86
|
+
x: number;
|
|
87
|
+
t: number;
|
|
88
|
+
actual: number;
|
|
89
|
+
ideal: number;
|
|
90
|
+
predicted: number | null;
|
|
91
|
+
} | null>(null);
|
|
75
92
|
|
|
76
93
|
if (!computed) {
|
|
77
94
|
return (
|
|
@@ -89,7 +106,7 @@ export function UsageChart({
|
|
|
89
106
|
);
|
|
90
107
|
}
|
|
91
108
|
|
|
92
|
-
const { points, windowStart, windowEnd, now, currentRemaining, latest } = computed;
|
|
109
|
+
const { points, predicted, windowStart, windowEnd, now, currentRemaining, latest } = computed;
|
|
93
110
|
|
|
94
111
|
const xScale = (t: number): number =>
|
|
95
112
|
padding.left + ((t - windowStart) / (windowEnd - windowStart)) * plotW;
|
|
@@ -120,6 +137,13 @@ export function UsageChart({
|
|
|
120
137
|
.join(" ")
|
|
121
138
|
: "";
|
|
122
139
|
|
|
140
|
+
const predictedPath =
|
|
141
|
+
predicted.length > 1
|
|
142
|
+
? predicted
|
|
143
|
+
.map(([t, v], i) => `${i === 0 ? "M" : "L"} ${xScale(t).toFixed(1)} ${yScale(v).toFixed(1)}`)
|
|
144
|
+
.join(" ")
|
|
145
|
+
: "";
|
|
146
|
+
|
|
123
147
|
const areaPath =
|
|
124
148
|
points.length > 0
|
|
125
149
|
? `${linePath} L ${xScale(points[points.length - 1]![0]).toFixed(1)} ${yScale(0).toFixed(1)} L ${xScale(points[0]![0]).toFixed(1)} ${yScale(0).toFixed(1)} Z`
|
|
@@ -143,7 +167,29 @@ export function UsageChart({
|
|
|
143
167
|
nearestDist = d;
|
|
144
168
|
}
|
|
145
169
|
}
|
|
146
|
-
|
|
170
|
+
// Find nearest predicted point so the tooltip can display both at the
|
|
171
|
+
// same hovered x — predicted snapshots are independent of real ones,
|
|
172
|
+
// pick the closest one in time.
|
|
173
|
+
let predictedAt: number | null = null;
|
|
174
|
+
if (predicted.length > 0) {
|
|
175
|
+
let bestPred = predicted[0]!;
|
|
176
|
+
let bestPredDist = Math.abs(bestPred[0] - nearest[0]);
|
|
177
|
+
for (const p of predicted) {
|
|
178
|
+
const d = Math.abs(p[0] - nearest[0]);
|
|
179
|
+
if (d < bestPredDist) {
|
|
180
|
+
bestPred = p;
|
|
181
|
+
bestPredDist = d;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
predictedAt = bestPred[1];
|
|
185
|
+
}
|
|
186
|
+
setHover({
|
|
187
|
+
x: xScale(nearest[0]),
|
|
188
|
+
t: nearest[0],
|
|
189
|
+
actual: nearest[1],
|
|
190
|
+
ideal: idealAt(nearest[0]),
|
|
191
|
+
predicted: predictedAt,
|
|
192
|
+
});
|
|
147
193
|
};
|
|
148
194
|
|
|
149
195
|
return (
|
|
@@ -365,6 +411,22 @@ export function UsageChart({
|
|
|
365
411
|
<circle key={i} cx={xScale(t)} cy={yScale(v)} r="3" fill={colorVar} />
|
|
366
412
|
))}
|
|
367
413
|
|
|
414
|
+
{/* Predicted line drawn AFTER the actual line so it's visually on top.
|
|
415
|
+
* Same shape as before — kept here as an overlay to avoid being
|
|
416
|
+
* masked by the actual line + dots. */}
|
|
417
|
+
{predictedPath && (
|
|
418
|
+
<path
|
|
419
|
+
d={predictedPath}
|
|
420
|
+
fill="none"
|
|
421
|
+
stroke="#ff7a00"
|
|
422
|
+
strokeOpacity="0.9"
|
|
423
|
+
strokeWidth="2"
|
|
424
|
+
strokeLinecap="round"
|
|
425
|
+
strokeLinejoin="round"
|
|
426
|
+
strokeDasharray="5 4"
|
|
427
|
+
/>
|
|
428
|
+
)}
|
|
429
|
+
|
|
368
430
|
{/* Hover crosshair + highlight dot */}
|
|
369
431
|
{hover && (
|
|
370
432
|
<g>
|
|
@@ -429,10 +491,30 @@ export function UsageChart({
|
|
|
429
491
|
{hover.ideal.toFixed(1)}%
|
|
430
492
|
</span>
|
|
431
493
|
</div>
|
|
494
|
+
{hover.predicted !== null && (
|
|
495
|
+
<div>
|
|
496
|
+
<span style={{ color: "var(--af-text-tertiary)" }}>Estimated</span>{" "}
|
|
497
|
+
<span
|
|
498
|
+
style={{
|
|
499
|
+
fontWeight: 600,
|
|
500
|
+
fontVariantNumeric: "tabular-nums",
|
|
501
|
+
color: "#b58400",
|
|
502
|
+
}}
|
|
503
|
+
>
|
|
504
|
+
{hover.predicted.toFixed(1)}%
|
|
505
|
+
</span>
|
|
506
|
+
</div>
|
|
507
|
+
)}
|
|
432
508
|
</div>
|
|
433
509
|
<div style={{ marginTop: 2, color: "var(--af-text-tertiary)" }}>
|
|
434
510
|
Δ {hover.actual - hover.ideal >= 0 ? "+" : ""}
|
|
435
511
|
{(hover.actual - hover.ideal).toFixed(1)}%
|
|
512
|
+
{hover.predicted !== null && (
|
|
513
|
+
<span style={{ marginLeft: 8 }}>
|
|
514
|
+
· estimate {hover.predicted >= hover.actual ? "+" : ""}
|
|
515
|
+
{(hover.predicted - hover.actual).toFixed(1)}pp vs actual
|
|
516
|
+
</span>
|
|
517
|
+
)}
|
|
436
518
|
</div>
|
|
437
519
|
</div>
|
|
438
520
|
)}
|
|
@@ -451,6 +533,11 @@ export function UsageChart({
|
|
|
451
533
|
>
|
|
452
534
|
{points.length} snapshot{points.length === 1 ? "" : "s"} · last{" "}
|
|
453
535
|
{formatRelative(new Date(latest.capturedAt).toISOString())}
|
|
536
|
+
{predicted.length > 0 && (
|
|
537
|
+
<span style={{ marginLeft: 8, color: "#ff7a00" }}>
|
|
538
|
+
· {predicted.length} estimate{predicted.length === 1 ? "" : "s"} overlaid
|
|
539
|
+
</span>
|
|
540
|
+
)}
|
|
454
541
|
</div>
|
|
455
542
|
</div>
|
|
456
543
|
);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { useEffect, useMemo, useState } from "react";
|
|
4
4
|
import { X } from "lucide-react";
|
|
5
5
|
import type { UsageSnapshot } from "@/lib/usage-data";
|
|
6
|
+
import type { PredictedSeriesByKey } from "@/lib/calibration-data";
|
|
6
7
|
import { UsageChart } from "@/components/usage-chart";
|
|
7
8
|
import { UsageChartRange } from "@/components/usage-chart-range";
|
|
8
9
|
import { OptionalChart } from "@/components/optional-chart";
|
|
@@ -44,8 +45,20 @@ const SONNET_WINDOW: WindowConfig = {
|
|
|
44
45
|
* component receives them as a prop and handles purely the interaction
|
|
45
46
|
* layer (2-col grid, expand-to-modal).
|
|
46
47
|
*/
|
|
47
|
-
export function UsageChartsDashboard({
|
|
48
|
+
export function UsageChartsDashboard({
|
|
49
|
+
snapshots,
|
|
50
|
+
predicted,
|
|
51
|
+
}: {
|
|
52
|
+
snapshots: UsageSnapshot[];
|
|
53
|
+
predicted?: PredictedSeriesByKey;
|
|
54
|
+
}) {
|
|
48
55
|
const [expanded, setExpanded] = useState<WindowConfig | null>(null);
|
|
56
|
+
const emptyPredicted: PredictedSeriesByKey = {
|
|
57
|
+
five_hour: [],
|
|
58
|
+
seven_day: [],
|
|
59
|
+
seven_day_sonnet: [],
|
|
60
|
+
};
|
|
61
|
+
const pred = predicted ?? emptyPredicted;
|
|
49
62
|
|
|
50
63
|
// Close on Escape.
|
|
51
64
|
useEffect(() => {
|
|
@@ -80,6 +93,7 @@ export function UsageChartsDashboard({ snapshots }: { snapshots: UsageSnapshot[]
|
|
|
80
93
|
seriesKey={w.key}
|
|
81
94
|
windowMs={w.windowMs}
|
|
82
95
|
colorVar={w.colorVar}
|
|
96
|
+
predictedSeries={pred[w.key]}
|
|
83
97
|
onExpand={() => setExpanded(w)}
|
|
84
98
|
/>
|
|
85
99
|
</section>
|
|
@@ -93,6 +107,7 @@ export function UsageChartsDashboard({ snapshots }: { snapshots: UsageSnapshot[]
|
|
|
93
107
|
seriesKey={SONNET_WINDOW.key}
|
|
94
108
|
windowMs={SONNET_WINDOW.windowMs}
|
|
95
109
|
colorVar={SONNET_WINDOW.colorVar}
|
|
110
|
+
predictedSeries={pred[SONNET_WINDOW.key]}
|
|
96
111
|
onExpand={() => setExpanded(SONNET_WINDOW)}
|
|
97
112
|
/>
|
|
98
113
|
</section>
|
|
@@ -102,6 +117,7 @@ export function UsageChartsDashboard({ snapshots }: { snapshots: UsageSnapshot[]
|
|
|
102
117
|
<ExpandedModal
|
|
103
118
|
config={expanded}
|
|
104
119
|
snapshots={snapshots}
|
|
120
|
+
predictedSeries={pred[expanded.key]}
|
|
105
121
|
onClose={() => setExpanded(null)}
|
|
106
122
|
/>
|
|
107
123
|
)}
|
|
@@ -112,10 +128,12 @@ export function UsageChartsDashboard({ snapshots }: { snapshots: UsageSnapshot[]
|
|
|
112
128
|
function ExpandedModal({
|
|
113
129
|
config,
|
|
114
130
|
snapshots,
|
|
131
|
+
predictedSeries,
|
|
115
132
|
onClose,
|
|
116
133
|
}: {
|
|
117
134
|
config: WindowConfig;
|
|
118
135
|
snapshots: UsageSnapshot[];
|
|
136
|
+
predictedSeries?: { capturedAt: number; util: number }[];
|
|
119
137
|
onClose: () => void;
|
|
120
138
|
}) {
|
|
121
139
|
const [range, setRange] = useState<DateRange>({ preset: "current" });
|
|
@@ -236,6 +254,7 @@ function ExpandedModal({
|
|
|
236
254
|
endMs={resolved.endMs}
|
|
237
255
|
windowMs={config.windowMs}
|
|
238
256
|
colorVar={config.colorVar}
|
|
257
|
+
predictedSeries={predictedSeries}
|
|
239
258
|
/>
|
|
240
259
|
) : (
|
|
241
260
|
<div
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useCallback, useEffect, useRef, type ReactNode } from "react";
|
|
3
|
+
import { WeekDigest as WeekDigestRender } from "./week-digest";
|
|
4
|
+
import type { WeekDigest as WeekDigestType } from "@claude-lens/entries";
|
|
5
|
+
|
|
6
|
+
type Status = "idle" | "streaming" | "done" | "error";
|
|
7
|
+
|
|
8
|
+
export function WeekDigestView({
|
|
9
|
+
initial, monday, aiEnabled, autoFire = false, prior,
|
|
10
|
+
}: {
|
|
11
|
+
initial: WeekDigestType | null;
|
|
12
|
+
monday: string;
|
|
13
|
+
aiEnabled: boolean;
|
|
14
|
+
autoFire?: boolean;
|
|
15
|
+
prior?: WeekDigestType | null;
|
|
16
|
+
}) {
|
|
17
|
+
const [digest, setDigest] = useState<WeekDigestType | null>(initial);
|
|
18
|
+
const [status, setStatus] = useState<Status>("idle");
|
|
19
|
+
const [progress, setProgress] = useState<string>("");
|
|
20
|
+
const firedRef = useRef(false);
|
|
21
|
+
|
|
22
|
+
const generate = useCallback(async (force = false) => {
|
|
23
|
+
setStatus("streaming");
|
|
24
|
+
setProgress("Starting...");
|
|
25
|
+
const url = `/api/digest/week/${monday}${force ? "?force=1" : ""}`;
|
|
26
|
+
const res = await fetch(url, { method: "POST" });
|
|
27
|
+
if (!res.ok || !res.body) {
|
|
28
|
+
setStatus("error");
|
|
29
|
+
setProgress(`Error ${res.status}`);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const reader = res.body.getReader();
|
|
33
|
+
const decoder = new TextDecoder();
|
|
34
|
+
let buf = "";
|
|
35
|
+
while (true) {
|
|
36
|
+
const { done, value } = await reader.read();
|
|
37
|
+
if (done) break;
|
|
38
|
+
buf += decoder.decode(value, { stream: true });
|
|
39
|
+
const frames = buf.split("\n\n");
|
|
40
|
+
buf = frames.pop() ?? "";
|
|
41
|
+
for (const frame of frames) {
|
|
42
|
+
const dataLine = frame.split("\n").find(l => l.startsWith("data: "));
|
|
43
|
+
if (!dataLine) continue;
|
|
44
|
+
try {
|
|
45
|
+
const ev = JSON.parse(dataLine.slice(6));
|
|
46
|
+
if (ev.type === "status") setProgress(ev.text);
|
|
47
|
+
else if (ev.type === "dependency") {
|
|
48
|
+
setProgress(`${ev.kind === "day" ? "Day" : "Week"} ${ev.key} ${ev.status}`);
|
|
49
|
+
}
|
|
50
|
+
else if (ev.type === "entry") setProgress(`Enriching ${ev.index}/${ev.total}...`);
|
|
51
|
+
else if (ev.type === "progress") {
|
|
52
|
+
const sec = Math.round(ev.elapsed_ms / 1000);
|
|
53
|
+
setProgress(`Claude composing… ${ev.bytes.toLocaleString()} chars (${sec}s)`);
|
|
54
|
+
}
|
|
55
|
+
else if (ev.type === "digest") {
|
|
56
|
+
if (ev.digest && ev.digest.scope === "week") {
|
|
57
|
+
setDigest(ev.digest as WeekDigestType);
|
|
58
|
+
}
|
|
59
|
+
setProgress("Rendering...");
|
|
60
|
+
}
|
|
61
|
+
else if (ev.type === "saved") setProgress("Saved.");
|
|
62
|
+
else if (ev.type === "error") { setStatus("error"); setProgress(ev.message); return; }
|
|
63
|
+
} catch { /* skip */ }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
setStatus("done");
|
|
67
|
+
setProgress("");
|
|
68
|
+
}, [monday]);
|
|
69
|
+
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (autoFire && !firedRef.current && status === "idle") {
|
|
72
|
+
firedRef.current = true;
|
|
73
|
+
void generate(false);
|
|
74
|
+
}
|
|
75
|
+
}, [autoFire, status, generate]);
|
|
76
|
+
|
|
77
|
+
const isStreaming = status === "streaming";
|
|
78
|
+
const narrativeFresh = !!digest?.headline;
|
|
79
|
+
|
|
80
|
+
let actions: ReactNode = null;
|
|
81
|
+
if (!narrativeFresh && aiEnabled) {
|
|
82
|
+
actions = (
|
|
83
|
+
<button
|
|
84
|
+
onClick={() => generate(false)}
|
|
85
|
+
disabled={isStreaming}
|
|
86
|
+
style={btnPrimary(isStreaming)}
|
|
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
|
+
title="Re-roll the narrative for this week"
|
|
99
|
+
style={btnSecondary(isStreaming)}
|
|
100
|
+
>
|
|
101
|
+
{isStreaming ? "..." : "Re-roll"}
|
|
102
|
+
</button>
|
|
103
|
+
</span>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
if (progress) {
|
|
107
|
+
actions = (
|
|
108
|
+
<>
|
|
109
|
+
{actions}
|
|
110
|
+
<span style={{ fontSize: 10, color: "var(--af-text-tertiary)" }}>{progress}</span>
|
|
111
|
+
</>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (digest) {
|
|
116
|
+
return <WeekDigestRender digest={digest} aiEnabled={aiEnabled} actions={actions} priorDigest={prior ?? null} />;
|
|
117
|
+
}
|
|
118
|
+
return (
|
|
119
|
+
<EmptyWeekState
|
|
120
|
+
monday={monday}
|
|
121
|
+
isStreaming={isStreaming}
|
|
122
|
+
aiEnabled={aiEnabled}
|
|
123
|
+
progress={progress}
|
|
124
|
+
onGenerate={() => generate(false)}
|
|
125
|
+
/>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function EmptyWeekState({ monday, isStreaming, aiEnabled, progress, onGenerate }: {
|
|
130
|
+
monday: string;
|
|
131
|
+
isStreaming: boolean;
|
|
132
|
+
aiEnabled: boolean;
|
|
133
|
+
progress: string | null;
|
|
134
|
+
onGenerate: () => void;
|
|
135
|
+
}) {
|
|
136
|
+
const start = new Date(`${monday}T12:00:00`);
|
|
137
|
+
const end = new Date(start);
|
|
138
|
+
end.setDate(start.getDate() + 6);
|
|
139
|
+
const fmt = (d: Date) => d.toLocaleDateString("en-US", { month: "short", day: "numeric" });
|
|
140
|
+
const range = `${fmt(start)} — ${fmt(end)}`;
|
|
141
|
+
return (
|
|
142
|
+
<div style={{ maxWidth: 980, margin: "0 auto", padding: "60px 40px" }}>
|
|
143
|
+
<div style={{
|
|
144
|
+
margin: "0 auto", maxWidth: 480,
|
|
145
|
+
padding: "32px 28px",
|
|
146
|
+
borderRadius: 14,
|
|
147
|
+
background: "var(--af-surface)",
|
|
148
|
+
border: "1px dashed var(--af-border-subtle)",
|
|
149
|
+
textAlign: "center",
|
|
150
|
+
}}>
|
|
151
|
+
<div style={{
|
|
152
|
+
width: 44, height: 44, borderRadius: 12, margin: "0 auto 16px",
|
|
153
|
+
background: "var(--af-accent-subtle)",
|
|
154
|
+
display: "flex", alignItems: "center", justifyContent: "center",
|
|
155
|
+
color: "var(--af-accent)", fontSize: 20,
|
|
156
|
+
}}>✦</div>
|
|
157
|
+
<h2 style={{
|
|
158
|
+
fontSize: 16, fontWeight: 600, margin: "0 0 6px",
|
|
159
|
+
color: "var(--af-text)", letterSpacing: "-0.01em",
|
|
160
|
+
}}>
|
|
161
|
+
{isStreaming ? "Generating digest…" : "No digest yet for this week"}
|
|
162
|
+
</h2>
|
|
163
|
+
<p style={{
|
|
164
|
+
fontSize: 12.5, lineHeight: 1.55, margin: "0 0 18px",
|
|
165
|
+
color: "var(--af-text-secondary)",
|
|
166
|
+
}}>
|
|
167
|
+
{isStreaming
|
|
168
|
+
? `Synthesizing ${range} from this week's day digests. This usually takes 5–10 minutes.`
|
|
169
|
+
: aiEnabled
|
|
170
|
+
? `Once generated, this view shows top sessions, trajectory, findings, and project areas for ${range}.`
|
|
171
|
+
: `Enable AI features in Settings to synthesize a weekly narrative for ${range}. Deterministic stats are still available below in the live digest as soon as data lands.`}
|
|
172
|
+
</p>
|
|
173
|
+
{aiEnabled && (
|
|
174
|
+
<button
|
|
175
|
+
onClick={onGenerate}
|
|
176
|
+
disabled={isStreaming}
|
|
177
|
+
style={{
|
|
178
|
+
padding: "9px 18px", borderRadius: 8,
|
|
179
|
+
background: isStreaming ? "var(--af-border-subtle)" : "var(--af-accent)",
|
|
180
|
+
color: isStreaming ? "var(--af-text-tertiary)" : "white",
|
|
181
|
+
border: "none", cursor: isStreaming ? "default" : "pointer",
|
|
182
|
+
fontSize: 13, fontWeight: 600, letterSpacing: "-0.005em",
|
|
183
|
+
}}
|
|
184
|
+
>
|
|
185
|
+
{isStreaming ? "Generating…" : "Generate digest"}
|
|
186
|
+
</button>
|
|
187
|
+
)}
|
|
188
|
+
{progress && (
|
|
189
|
+
<div style={{
|
|
190
|
+
marginTop: 12, fontSize: 10.5, color: "var(--af-text-tertiary)",
|
|
191
|
+
fontFamily: "var(--font-mono)",
|
|
192
|
+
}}>
|
|
193
|
+
{progress}
|
|
194
|
+
</div>
|
|
195
|
+
)}
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function btnPrimary(disabled: boolean): React.CSSProperties {
|
|
202
|
+
return {
|
|
203
|
+
padding: "4px 10px",
|
|
204
|
+
background: "var(--af-accent)",
|
|
205
|
+
color: "white",
|
|
206
|
+
border: "none",
|
|
207
|
+
borderRadius: 5,
|
|
208
|
+
cursor: disabled ? "default" : "pointer",
|
|
209
|
+
fontSize: 11,
|
|
210
|
+
fontWeight: 600,
|
|
211
|
+
opacity: disabled ? 0.6 : 1,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
function btnSecondary(disabled: boolean): React.CSSProperties {
|
|
216
|
+
return {
|
|
217
|
+
padding: "2px 7px",
|
|
218
|
+
background: "transparent",
|
|
219
|
+
border: "1px solid var(--af-border-subtle)",
|
|
220
|
+
borderRadius: 4,
|
|
221
|
+
fontSize: 10,
|
|
222
|
+
color: "var(--af-text-secondary)",
|
|
223
|
+
cursor: disabled ? "default" : "pointer",
|
|
224
|
+
opacity: disabled ? 0.6 : 1,
|
|
225
|
+
};
|
|
226
|
+
}
|