@ashlr/hub 3.12.0 → 3.14.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/CHANGELOG.md +157 -0
- package/README.md +29 -16
- package/dist/authority-surface.json +274 -148
- package/dist/build-identity.json +2 -2
- package/dist/cli/authority.d.ts +145 -33
- package/dist/cli/authority.js +1292 -315
- package/dist/cli/authority.js.map +1 -1
- package/dist/cli/cloud.js +12 -3
- package/dist/cli/cloud.js.map +1 -1
- package/dist/cli/comms.d.ts +33 -19
- package/dist/cli/comms.js +128 -151
- package/dist/cli/comms.js.map +1 -1
- package/dist/cli/completions.js +1 -1
- package/dist/cli/completions.js.map +1 -1
- package/dist/cli/daemon.js +29 -0
- package/dist/cli/daemon.js.map +1 -1
- package/dist/cli/director.d.ts +8 -12
- package/dist/cli/director.js +17 -52
- package/dist/cli/director.js.map +1 -1
- package/dist/cli/fleet.js +4 -1
- package/dist/cli/fleet.js.map +1 -1
- package/dist/cli/help.js +1 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/leader.d.ts +27 -3
- package/dist/cli/leader.js +253 -4
- package/dist/cli/leader.js.map +1 -1
- package/dist/core/authority/protected-paths.js +11 -0
- package/dist/core/authority/protected-paths.js.map +1 -1
- package/dist/core/authority/resident.d.ts +101 -0
- package/dist/core/authority/resident.js +246 -0
- package/dist/core/authority/resident.js.map +1 -0
- package/dist/core/authority/server-enforcement.d.ts +110 -0
- package/dist/core/authority/server-enforcement.js +260 -0
- package/dist/core/authority/server-enforcement.js.map +1 -0
- package/dist/core/authority/standing-grant.d.ts +24 -4
- package/dist/core/authority/standing-grant.js +19 -3
- package/dist/core/authority/standing-grant.js.map +1 -1
- package/dist/core/authority/types.d.ts +43 -0
- package/dist/core/authority/types.js +6 -0
- package/dist/core/authority/types.js.map +1 -1
- package/dist/core/cloud/budget.js +11 -1
- package/dist/core/cloud/budget.js.map +1 -1
- package/dist/core/cloud/cloud-api.d.ts +25 -2
- package/dist/core/cloud/cloud-api.js +139 -5
- package/dist/core/cloud/cloud-api.js.map +1 -1
- package/dist/core/cloud/pr-actions.d.ts +93 -0
- package/dist/core/cloud/pr-actions.js +436 -0
- package/dist/core/cloud/pr-actions.js.map +1 -0
- package/dist/core/cloud/pr-preview.d.ts +128 -0
- package/dist/core/cloud/pr-preview.js +228 -0
- package/dist/core/cloud/pr-preview.js.map +1 -0
- package/dist/core/cloud/store.d.ts +2 -0
- package/dist/core/cloud/store.js +28 -0
- package/dist/core/cloud/store.js.map +1 -1
- package/dist/core/cloud/timeline-api.d.ts +24 -0
- package/dist/core/cloud/timeline-api.js +46 -0
- package/dist/core/cloud/timeline-api.js.map +1 -0
- package/dist/core/cloud/timeline-types.d.ts +62 -0
- package/dist/core/cloud/timeline-types.js +36 -0
- package/dist/core/cloud/timeline-types.js.map +1 -0
- package/dist/core/cloud/timeline.d.ts +102 -0
- package/dist/core/cloud/timeline.js +925 -0
- package/dist/core/cloud/timeline.js.map +1 -0
- package/dist/core/cloud/tracker.js +67 -0
- package/dist/core/cloud/tracker.js.map +1 -1
- package/dist/core/cloud/types.d.ts +38 -0
- package/dist/core/cloud/types.js +1 -1
- package/dist/core/cloud/types.js.map +1 -1
- package/dist/core/comms/change-digest.d.ts +130 -0
- package/dist/core/comms/change-digest.js +451 -0
- package/dist/core/comms/change-digest.js.map +1 -0
- package/dist/core/comms/director-prompt.d.ts +4 -5
- package/dist/core/comms/director-prompt.js +4 -71
- package/dist/core/comms/director-prompt.js.map +1 -1
- package/dist/core/comms/director.d.ts +24 -61
- package/dist/core/comms/director.js +29 -382
- package/dist/core/comms/director.js.map +1 -1
- package/dist/core/comms/dispatch.d.ts +37 -12
- package/dist/core/comms/dispatch.js +244 -177
- package/dist/core/comms/dispatch.js.map +1 -1
- package/dist/core/comms/elon-dialogue.d.ts +23 -15
- package/dist/core/comms/elon-dialogue.js +36 -307
- package/dist/core/comms/elon-dialogue.js.map +1 -1
- package/dist/core/comms/fleet-pulse.js +4 -7
- package/dist/core/comms/fleet-pulse.js.map +1 -1
- package/dist/core/comms/handlers.d.ts +10 -6
- package/dist/core/comms/handlers.js +14 -48
- package/dist/core/comms/handlers.js.map +1 -1
- package/dist/core/comms/migrations.d.ts +47 -0
- package/dist/core/comms/migrations.js +125 -0
- package/dist/core/comms/migrations.js.map +1 -0
- package/dist/core/comms/requests.d.ts +32 -5
- package/dist/core/comms/requests.js +101 -5
- package/dist/core/comms/requests.js.map +1 -1
- package/dist/core/comms/telegram-channel.d.ts +104 -0
- package/dist/core/comms/telegram-channel.js +622 -0
- package/dist/core/comms/telegram-channel.js.map +1 -0
- package/dist/core/comms/telegram-thread-map.d.ts +56 -0
- package/dist/core/comms/telegram-thread-map.js +144 -0
- package/dist/core/comms/telegram-thread-map.js.map +1 -0
- package/dist/core/daemon/capacity-publisher.d.ts +8 -1
- package/dist/core/daemon/capacity-publisher.js +40 -2
- package/dist/core/daemon/capacity-publisher.js.map +1 -1
- package/dist/core/daemon/loop.js +18 -4
- package/dist/core/daemon/loop.js.map +1 -1
- package/dist/core/daemon/service-install-authority.d.ts +10 -2
- package/dist/core/daemon/service-install-authority.js +14 -5
- package/dist/core/daemon/service-install-authority.js.map +1 -1
- package/dist/core/daemon/service.d.ts +15 -0
- package/dist/core/daemon/service.js +26 -0
- package/dist/core/daemon/service.js.map +1 -1
- package/dist/core/daemon/tick-deadline.d.ts +44 -0
- package/dist/core/daemon/tick-deadline.js +83 -0
- package/dist/core/daemon/tick-deadline.js.map +1 -0
- package/dist/core/daemon/tick-hooks.d.ts +7 -0
- package/dist/core/daemon/tick-hooks.js.map +1 -1
- package/dist/core/daemon/tick-progress.d.ts +39 -0
- package/dist/core/daemon/tick-progress.js +194 -0
- package/dist/core/daemon/tick-progress.js.map +1 -0
- package/dist/core/dashboard.js +3 -1
- package/dist/core/dashboard.js.map +1 -1
- package/dist/core/fleet/cloud-intake.d.ts +95 -0
- package/dist/core/fleet/cloud-intake.js +557 -0
- package/dist/core/fleet/cloud-intake.js.map +1 -0
- package/dist/core/fleet/dispatch-router.d.ts +13 -0
- package/dist/core/fleet/dispatch-router.js +32 -8
- package/dist/core/fleet/dispatch-router.js.map +1 -1
- package/dist/core/fleet/fleet-merge-state.d.ts +16 -0
- package/dist/core/fleet/fleet-merge-state.js.map +1 -1
- package/dist/core/fleet/host-merge.d.ts +14 -0
- package/dist/core/fleet/host-merge.js +24 -2
- package/dist/core/fleet/host-merge.js.map +1 -1
- package/dist/core/fleet/merge-gates.d.ts +21 -0
- package/dist/core/fleet/merge-gates.js +39 -5
- package/dist/core/fleet/merge-gates.js.map +1 -1
- package/dist/core/fleet/mirrors.d.ts +162 -6
- package/dist/core/fleet/mirrors.js +1051 -49
- package/dist/core/fleet/mirrors.js.map +1 -1
- package/dist/core/fleet/standing-merge-pass.d.ts +8 -0
- package/dist/core/fleet/standing-merge-pass.js +102 -1
- package/dist/core/fleet/standing-merge-pass.js.map +1 -1
- package/dist/core/fleet/status.d.ts +17 -0
- package/dist/core/fleet/status.js +22 -0
- package/dist/core/fleet/status.js.map +1 -1
- package/dist/core/fleet/tick-hooks-live.d.ts +10 -1
- package/dist/core/fleet/tick-hooks-live.js +57 -8
- package/dist/core/fleet/tick-hooks-live.js.map +1 -1
- package/dist/core/fleet/verify-check-run.d.ts +90 -0
- package/dist/core/fleet/verify-check-run.js +274 -0
- package/dist/core/fleet/verify-check-run.js.map +1 -0
- package/dist/core/git.d.ts +17 -0
- package/dist/core/git.js +124 -25
- package/dist/core/git.js.map +1 -1
- package/dist/core/goals/open-goals.d.ts +47 -0
- package/dist/core/goals/open-goals.js +33 -0
- package/dist/core/goals/open-goals.js.map +1 -0
- package/dist/core/inbox/merge.d.ts +5 -0
- package/dist/core/inbox/merge.js +58 -2
- package/dist/core/inbox/merge.js.map +1 -1
- package/dist/core/integrations/locus.d.ts +28 -0
- package/dist/core/integrations/locus.js +155 -30
- package/dist/core/integrations/locus.js.map +1 -1
- package/dist/core/integrations/telegram-format.d.ts +40 -0
- package/dist/core/integrations/telegram-format.js +123 -0
- package/dist/core/integrations/telegram-format.js.map +1 -0
- package/dist/core/integrations/telegram.d.ts +60 -4
- package/dist/core/integrations/telegram.js +161 -28
- package/dist/core/integrations/telegram.js.map +1 -1
- package/dist/core/mcp-registry.d.ts +12 -0
- package/dist/core/mcp-registry.js +70 -0
- package/dist/core/mcp-registry.js.map +1 -1
- package/dist/core/observability/rollup.d.ts +12 -10
- package/dist/core/observability/rollup.js +44 -17
- package/dist/core/observability/rollup.js.map +1 -1
- package/dist/core/resources/connection-monitor.d.ts +9 -0
- package/dist/core/resources/connection-monitor.js +19 -9
- package/dist/core/resources/connection-monitor.js.map +1 -1
- package/dist/core/resources/quota-refresh-lease.d.ts +17 -0
- package/dist/core/resources/quota-refresh-lease.js +34 -1
- package/dist/core/resources/quota-refresh-lease.js.map +1 -1
- package/dist/core/routing/budget-api.d.ts +18 -1
- package/dist/core/routing/budget-api.js +120 -10
- package/dist/core/routing/budget-api.js.map +1 -1
- package/dist/core/routing/budget-store.d.ts +22 -1
- package/dist/core/routing/budget-store.js +22 -8
- package/dist/core/routing/budget-store.js.map +1 -1
- package/dist/core/routing/readiness-types.d.ts +82 -0
- package/dist/core/routing/readiness-types.js +23 -0
- package/dist/core/routing/readiness-types.js.map +1 -0
- package/dist/core/routing/readiness.d.ts +103 -0
- package/dist/core/routing/readiness.js +480 -0
- package/dist/core/routing/readiness.js.map +1 -0
- package/dist/core/sandbox/confine.js +22 -1
- package/dist/core/sandbox/confine.js.map +1 -1
- package/dist/core/sandbox/policy.d.ts +23 -0
- package/dist/core/sandbox/policy.js +100 -0
- package/dist/core/sandbox/policy.js.map +1 -1
- package/dist/core/types.d.ts +13 -0
- package/dist/core/types.js.map +1 -1
- package/dist/core/universe/builtins/preparation/manifest.json +1 -1
- package/dist/core/universe/builtins/preparation/preparation-bridge.mjs +1204 -939
- package/dist/core/universe/builtins/preparation/preparation-verification-fixtures.mjs +1319 -1054
- package/dist/core/usage/frontier-usage.d.ts +20 -2
- package/dist/core/usage/frontier-usage.js +75 -17
- package/dist/core/usage/frontier-usage.js.map +1 -1
- package/dist/core/verse/account-health.js +9 -3
- package/dist/core/verse/account-health.js.map +1 -1
- package/dist/core/verse/accounts.d.ts +45 -0
- package/dist/core/verse/accounts.js +246 -17
- package/dist/core/verse/accounts.js.map +1 -1
- package/dist/core/verse/activity-api.d.ts +5 -1
- package/dist/core/verse/activity-api.js +62 -14
- package/dist/core/verse/activity-api.js.map +1 -1
- package/dist/core/verse/apps-api.js +23 -11
- package/dist/core/verse/apps-api.js.map +1 -1
- package/dist/core/verse/apps.d.ts +11 -9
- package/dist/core/verse/apps.js +2 -2
- package/dist/core/verse/apps.js.map +1 -1
- package/dist/core/verse/authority-api.d.ts +17 -3
- package/dist/core/verse/authority-api.js +122 -7
- package/dist/core/verse/authority-api.js.map +1 -1
- package/dist/core/verse/autonomy-ladder.d.ts +172 -0
- package/dist/core/verse/autonomy-ladder.js +251 -0
- package/dist/core/verse/autonomy-ladder.js.map +1 -0
- package/dist/core/verse/context-fit.js +7 -5
- package/dist/core/verse/context-fit.js.map +1 -1
- package/dist/core/verse/control-api.d.ts +23 -1
- package/dist/core/verse/control-api.js +117 -10
- package/dist/core/verse/control-api.js.map +1 -1
- package/dist/core/verse/fleet-live-api.js +13 -5
- package/dist/core/verse/fleet-live-api.js.map +1 -1
- package/dist/core/verse/folder-io.d.ts +50 -0
- package/dist/core/verse/folder-io.js +142 -0
- package/dist/core/verse/folder-io.js.map +1 -0
- package/dist/core/verse/git-api.js +5 -4
- package/dist/core/verse/git-api.js.map +1 -1
- package/dist/core/verse/git-ops.d.ts +10 -1
- package/dist/core/verse/git-ops.js +18 -2
- package/dist/core/verse/git-ops.js.map +1 -1
- package/dist/core/verse/github-api.d.ts +1 -1
- package/dist/core/verse/github-api.js +5 -4
- package/dist/core/verse/github-api.js.map +1 -1
- package/dist/core/verse/github-repo.js +118 -14
- package/dist/core/verse/github-repo.js.map +1 -1
- package/dist/core/verse/leader-api.d.ts +5 -4
- package/dist/core/verse/leader-api.js +237 -10
- package/dist/core/verse/leader-api.js.map +1 -1
- package/dist/core/verse/local-models.d.ts +10 -0
- package/dist/core/verse/local-models.js +10 -1
- package/dist/core/verse/local-models.js.map +1 -1
- package/dist/core/verse/login-path.d.ts +73 -0
- package/dist/core/verse/login-path.js +123 -14
- package/dist/core/verse/login-path.js.map +1 -1
- package/dist/core/verse/mcp-control-api.js +4 -4
- package/dist/core/verse/mcp-control-api.js.map +1 -1
- package/dist/core/verse/mcp-scope.d.ts +22 -0
- package/dist/core/verse/mcp-scope.js +41 -1
- package/dist/core/verse/mcp-scope.js.map +1 -1
- package/dist/core/verse/mcp-seat-view.d.ts +10 -0
- package/dist/core/verse/mcp-seat-view.js +30 -4
- package/dist/core/verse/mcp-seat-view.js.map +1 -1
- package/dist/core/verse/overnight-api.js +20 -2
- package/dist/core/verse/overnight-api.js.map +1 -1
- package/dist/core/verse/path-guard.d.ts +24 -0
- package/dist/core/verse/path-guard.js +91 -22
- package/dist/core/verse/path-guard.js.map +1 -1
- package/dist/core/verse/preview-api.js +22 -0
- package/dist/core/verse/preview-api.js.map +1 -1
- package/dist/core/verse/projects.d.ts +21 -0
- package/dist/core/verse/projects.js +82 -0
- package/dist/core/verse/projects.js.map +1 -1
- package/dist/core/verse/seat-readiness.d.ts +25 -0
- package/dist/core/verse/seat-readiness.js +43 -6
- package/dist/core/verse/seat-readiness.js.map +1 -1
- package/dist/core/verse/session-controls-api.js +5 -3
- package/dist/core/verse/session-controls-api.js.map +1 -1
- package/dist/core/verse/session-handoff.d.ts +26 -0
- package/dist/core/verse/session-handoff.js +90 -12
- package/dist/core/verse/session-handoff.js.map +1 -1
- package/dist/core/verse/terminal-api.js +7 -4
- package/dist/core/verse/terminal-api.js.map +1 -1
- package/dist/core/verse/terminal.js +9 -5
- package/dist/core/verse/terminal.js.map +1 -1
- package/dist/core/verse/verse-api.d.ts +3 -1
- package/dist/core/verse/verse-api.js +87 -27
- package/dist/core/verse/verse-api.js.map +1 -1
- package/dist/core/verse/workspaces.d.ts +51 -0
- package/dist/core/verse/workspaces.js +177 -47
- package/dist/core/verse/workspaces.js.map +1 -1
- package/dist/core/vision/leader-apply.d.ts +40 -0
- package/dist/core/vision/leader-apply.js +101 -30
- package/dist/core/vision/leader-apply.js.map +1 -1
- package/dist/core/vision/leader-cadence.d.ts +114 -0
- package/dist/core/vision/leader-cadence.js +127 -0
- package/dist/core/vision/leader-cadence.js.map +1 -0
- package/dist/core/vision/leader-goal-evidence.d.ts +25 -0
- package/dist/core/vision/leader-goal-evidence.js +36 -0
- package/dist/core/vision/leader-goal-evidence.js.map +1 -0
- package/dist/core/vision/leader-health.d.ts +53 -0
- package/dist/core/vision/leader-health.js +92 -0
- package/dist/core/vision/leader-health.js.map +1 -0
- package/dist/core/vision/leader-operator.d.ts +176 -0
- package/dist/core/vision/leader-operator.js +355 -0
- package/dist/core/vision/leader-operator.js.map +1 -0
- package/dist/core/vision/leader-run-chain.d.ts +41 -0
- package/dist/core/vision/leader-run-chain.js +54 -0
- package/dist/core/vision/leader-run-chain.js.map +1 -0
- package/dist/core/vision/leader-seat-plan.d.ts +68 -0
- package/dist/core/vision/leader-seat-plan.js +93 -0
- package/dist/core/vision/leader-seat-plan.js.map +1 -0
- package/dist/core/vision/leader-seat.d.ts +71 -5
- package/dist/core/vision/leader-seat.js +235 -33
- package/dist/core/vision/leader-seat.js.map +1 -1
- package/dist/core/vision/leader-thread-types.d.ts +104 -0
- package/dist/core/vision/leader-thread-types.js +9 -0
- package/dist/core/vision/leader-thread-types.js.map +1 -0
- package/dist/core/vision/leader-thread.d.ts +138 -0
- package/dist/core/vision/leader-thread.js +926 -0
- package/dist/core/vision/leader-thread.js.map +1 -0
- package/dist/core/vision/leader-types.d.ts +75 -1
- package/dist/core/vision/leader.d.ts +88 -18
- package/dist/core/vision/leader.js +269 -69
- package/dist/core/vision/leader.js.map +1 -1
- package/dist/core/web/public/next/assets/{ActionMenu-B4-39f2S.js → ActionMenu-CIiX2X8w.js} +2 -2
- package/dist/core/web/public/next/assets/{ActionMenu-B4-39f2S.js.map → ActionMenu-CIiX2X8w.js.map} +1 -1
- package/dist/core/web/public/next/assets/Advanced-DHsysoIL.js +2 -0
- package/dist/core/web/public/next/assets/{Advanced-B-LqYXvd.js.map → Advanced-DHsysoIL.js.map} +1 -1
- package/dist/core/web/public/next/assets/App-CMeAocmW.js +7 -0
- package/dist/core/web/public/next/assets/{App-E2zCDRxm.js.map → App-CMeAocmW.js.map} +1 -1
- package/dist/core/web/public/next/assets/AppsSection-DISYnMnc.js +2 -0
- package/dist/core/web/public/next/assets/{AppsSection-8wXPPhZb.js.map → AppsSection-DISYnMnc.js.map} +1 -1
- package/dist/core/web/public/next/assets/AreaTrend-DK2Y2TbZ.js +2 -0
- package/dist/core/web/public/next/assets/AreaTrend-DK2Y2TbZ.js.map +1 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-CEPSZToP.js +3 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-CEPSZToP.js.map +1 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-CmSSTHVe.css +1 -0
- package/dist/core/web/public/next/assets/AutonomySection-DWc3ciAD.js +2 -0
- package/dist/core/web/public/next/assets/{AutonomySection-B46igJKR.js.map → AutonomySection-DWc3ciAD.js.map} +1 -1
- package/dist/core/web/public/next/assets/AutonomyStatus-CYaHjJ9U.js +2 -0
- package/dist/core/web/public/next/assets/AutonomyStatus-CYaHjJ9U.js.map +1 -0
- package/dist/core/web/public/next/assets/{BranchBar-BRkrEQGs.js → BranchBar-BxhdiIpx.js} +2 -2
- package/dist/core/web/public/next/assets/{BranchBar-BRkrEQGs.js.map → BranchBar-BxhdiIpx.js.map} +1 -1
- package/dist/core/web/public/next/assets/BudgetControl-C-0KhjRS.js +2 -0
- package/dist/core/web/public/next/assets/BudgetControl-C-0KhjRS.js.map +1 -0
- package/dist/core/web/public/next/assets/{Button-BhO-WKPp.js → Button-D90dzI_o.js} +2 -2
- package/dist/core/web/public/next/assets/{Button-BhO-WKPp.js.map → Button-D90dzI_o.js.map} +1 -1
- package/dist/core/web/public/next/assets/{CapacityStrip-CkFz5vq2.js → CapacityStrip-qKDBC65C.js} +2 -2
- package/dist/core/web/public/next/assets/{CapacityStrip-CkFz5vq2.js.map → CapacityStrip-qKDBC65C.js.map} +1 -1
- package/dist/core/web/public/next/assets/ChartFrame-DY-GVUb3.js +2 -0
- package/dist/core/web/public/next/assets/ChartFrame-DY-GVUb3.js.map +1 -0
- package/dist/core/web/public/next/assets/ChartFrame-DyjmyV8N.css +1 -0
- package/dist/core/web/public/next/assets/ChatSection-DlT4QU6a.js +3 -0
- package/dist/core/web/public/next/assets/ChatSection-DlT4QU6a.js.map +1 -0
- package/dist/core/web/public/next/assets/{CloudBudgetForm-Bd91iStN.js → CloudBudgetForm-BrNun_Yu.js} +2 -2
- package/dist/core/web/public/next/assets/{CloudBudgetForm-Bd91iStN.js.map → CloudBudgetForm-BrNun_Yu.js.map} +1 -1
- package/dist/core/web/public/next/assets/CommandPalette-C5lDDKN0.js +2 -0
- package/dist/core/web/public/next/assets/CommandPalette-C5lDDKN0.js.map +1 -0
- package/dist/core/web/public/next/assets/CommandSection-B0xuU-yZ.css +1 -0
- package/dist/core/web/public/next/assets/CommandSection-DXFvPgKp.js +3 -0
- package/dist/core/web/public/next/assets/CommandSection-DXFvPgKp.js.map +1 -0
- package/dist/core/web/public/next/assets/{ConfirmDialog-Bv4hdK2T.js → ConfirmDialog-BR4nZQ2D.js} +2 -2
- package/dist/core/web/public/next/assets/{ConfirmDialog-Bv4hdK2T.js.map → ConfirmDialog-BR4nZQ2D.js.map} +1 -1
- package/dist/core/web/public/next/assets/{DeleteChatDialog-CH1Ix8Eh.js → DeleteChatDialog-BCfP12GH.js} +2 -2
- package/dist/core/web/public/next/assets/{DeleteChatDialog-CH1Ix8Eh.js.map → DeleteChatDialog-BCfP12GH.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Dialog-BSsIFNqD.js → Dialog-D3msQlCj.js} +2 -2
- package/dist/core/web/public/next/assets/{Dialog-BSsIFNqD.js.map → Dialog-D3msQlCj.js.map} +1 -1
- package/dist/core/web/public/next/assets/{DiffPane-BpNuJmth.js → DiffPane-Ix6hvXlY.js} +2 -2
- package/dist/core/web/public/next/assets/{DiffPane-BpNuJmth.js.map → DiffPane-Ix6hvXlY.js.map} +1 -1
- package/dist/core/web/public/next/assets/{DiffViewer-CJarUvs0.js → DiffViewer-C4WKsCIe.js} +2 -2
- package/dist/core/web/public/next/assets/{DiffViewer-CJarUvs0.js.map → DiffViewer-C4WKsCIe.js.map} +1 -1
- package/dist/core/web/public/next/assets/DockHost-aWP7liri.js +2 -0
- package/dist/core/web/public/next/assets/{DockHost-DW9q0NdR.js.map → DockHost-aWP7liri.js.map} +1 -1
- package/dist/core/web/public/next/assets/{EmptyState-DPrd2aak.js → EmptyState-D2IRy3Cg.js} +2 -2
- package/dist/core/web/public/next/assets/{EmptyState-DPrd2aak.js.map → EmptyState-D2IRy3Cg.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Epistemic-D7MxSmED.js → Epistemic-DMr18muX.js} +2 -2
- package/dist/core/web/public/next/assets/{Epistemic-D7MxSmED.js.map → Epistemic-DMr18muX.js.map} +1 -1
- package/dist/core/web/public/next/assets/EvidenceTimeline-DXmmz6Fi.js +2 -0
- package/dist/core/web/public/next/assets/EvidenceTimeline-DXmmz6Fi.js.map +1 -0
- package/dist/core/web/public/next/assets/EvidenceTimeline-PBDAiSuG.css +1 -0
- package/dist/core/web/public/next/assets/FleetSection-BfplcwFU.js +3 -0
- package/dist/core/web/public/next/assets/FleetSection-BfplcwFU.js.map +1 -0
- package/dist/core/web/public/next/assets/Funnel-Dh2yVHws.js +2 -0
- package/dist/core/web/public/next/assets/Funnel-Dh2yVHws.js.map +1 -0
- package/dist/core/web/public/next/assets/{GearTray-CIPtzeIx.js → GearTray-Dt-ee32-.js} +2 -2
- package/dist/core/web/public/next/assets/{GearTray-CIPtzeIx.js.map → GearTray-Dt-ee32-.js.map} +1 -1
- package/dist/core/web/public/next/assets/GrowthSection-P9EUfGeA.js +2 -0
- package/dist/core/web/public/next/assets/{GrowthSection-iiQg6wvK.js.map → GrowthSection-P9EUfGeA.js.map} +1 -1
- package/dist/core/web/public/next/assets/{HandoffDialog-DrQ6ofuy.js → HandoffDialog-CLJQLe7M.js} +2 -2
- package/dist/core/web/public/next/assets/{HandoffDialog-DrQ6ofuy.js.map → HandoffDialog-CLJQLe7M.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Input-C0MQxEM6.js → Input-D_KRJA9V.js} +2 -2
- package/dist/core/web/public/next/assets/{Input-C0MQxEM6.js.map → Input-D_KRJA9V.js.map} +1 -1
- package/dist/core/web/public/next/assets/LeaderCard-D-7DlJuR.js +2 -0
- package/dist/core/web/public/next/assets/LeaderCard-D-7DlJuR.js.map +1 -0
- package/dist/core/web/public/next/assets/LeaderCard-DNsbLwY3.css +1 -0
- package/dist/core/web/public/next/assets/LeaderConversation-DGZjWI-E.js +2 -0
- package/dist/core/web/public/next/assets/LeaderConversation-DGZjWI-E.js.map +1 -0
- package/dist/core/web/public/next/assets/LeaderConversation-DPHUTq6W.css +1 -0
- package/dist/core/web/public/next/assets/MatrixHeatmap-C7BCG2d7.js +2 -0
- package/dist/core/web/public/next/assets/MatrixHeatmap-C7BCG2d7.js.map +1 -0
- package/dist/core/web/public/next/assets/McpSection-DGbRcyv8.js +2 -0
- package/dist/core/web/public/next/assets/{McpSection-BRuCcTjT.js.map → McpSection-DGbRcyv8.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MessageMarkdown-bRvD5nSc.js → MessageMarkdown-DFvk06qG.js} +3 -3
- package/dist/core/web/public/next/assets/{MessageMarkdown-bRvD5nSc.js.map → MessageMarkdown-DFvk06qG.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MessageMarkdownRenderer-FjjkPKA2.js → MessageMarkdownRenderer-BAv4oEUf.js} +2 -2
- package/dist/core/web/public/next/assets/{MessageMarkdownRenderer-FjjkPKA2.js.map → MessageMarkdownRenderer-BAv4oEUf.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Meter-CFNLpwA-.js → Meter-CMj-VafN.js} +2 -2
- package/dist/core/web/public/next/assets/{Meter-CFNLpwA-.js.map → Meter-CMj-VafN.js.map} +1 -1
- package/dist/core/web/public/next/assets/MindSection-C6kLPIjt.js +3 -0
- package/dist/core/web/public/next/assets/MindSection-C6kLPIjt.js.map +1 -0
- package/dist/core/web/public/next/assets/{MutationTokenDialog-T7gv3a9r.js → MutationTokenDialog-DbnO8aYi.js} +2 -2
- package/dist/core/web/public/next/assets/{MutationTokenDialog-T7gv3a9r.js.map → MutationTokenDialog-DbnO8aYi.js.map} +1 -1
- package/dist/core/web/public/next/assets/NeedsYouDrawer-crsiX-Nc.js +3 -0
- package/dist/core/web/public/next/assets/NeedsYouDrawer-crsiX-Nc.js.map +1 -0
- package/dist/core/web/public/next/assets/NeedsYouList-CCsijdWt.js +2 -0
- package/dist/core/web/public/next/assets/{NeedsYouList-BgH8ezqf.js.map → NeedsYouList-CCsijdWt.js.map} +1 -1
- package/dist/core/web/public/next/assets/NeedsYouList-CH6Mq-E_.css +1 -0
- package/dist/core/web/public/next/assets/NewChatDialog-BlCHtOIr.js +3 -0
- package/dist/core/web/public/next/assets/{NewChatDialog-Db5Xjrk8.js.map → NewChatDialog-BlCHtOIr.js.map} +1 -1
- package/dist/core/web/public/next/assets/OnboardingFlow-Cy9BA9eR.js +3 -0
- package/dist/core/web/public/next/assets/OnboardingFlow-Cy9BA9eR.js.map +1 -0
- package/dist/core/web/public/next/assets/OnboardingGate-BXpNFoLt.js +3 -0
- package/dist/core/web/public/next/assets/{OnboardingGate-C4VXn7BJ.js.map → OnboardingGate-BXpNFoLt.js.map} +1 -1
- package/dist/core/web/public/next/assets/PreviewPane-COid5A0f.js +2 -0
- package/dist/core/web/public/next/assets/{PreviewPane-BPBbcROb.js.map → PreviewPane-COid5A0f.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ProviderLogo-CT2cSfkg.js → ProviderLogo-Cq-CYIwT.js} +2 -2
- package/dist/core/web/public/next/assets/{ProviderLogo-CT2cSfkg.js.map → ProviderLogo-Cq-CYIwT.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RailStatus-Vgl0GYtd.js → RailStatus-Co5UB6We.js} +2 -2
- package/dist/core/web/public/next/assets/{RailStatus-Vgl0GYtd.js.map → RailStatus-Co5UB6We.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RefreshIndicator-CSyqpY_q.js → RefreshIndicator-DO9ibnSq.js} +2 -2
- package/dist/core/web/public/next/assets/{RefreshIndicator-CSyqpY_q.js.map → RefreshIndicator-DO9ibnSq.js.map} +1 -1
- package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-Dr2WRgkq.js +7 -0
- package/dist/core/web/public/next/assets/{ResourcePoolConsoleApp-BX2nkdmZ.js.map → ResourcePoolConsoleApp-Dr2WRgkq.js.map} +1 -1
- package/dist/core/web/public/next/assets/ResourcesChrome-CwMnbqI1.js +3 -0
- package/dist/core/web/public/next/assets/ResourcesChrome-CwMnbqI1.js.map +1 -0
- package/dist/core/web/public/next/assets/ResourcesDrawer-B_Xp_JNc.js +2 -0
- package/dist/core/web/public/next/assets/ResourcesDrawer-B_Xp_JNc.js.map +1 -0
- package/dist/core/web/public/next/assets/ResourcesDrawer-DrGoO8KG.css +1 -0
- package/dist/core/web/public/next/assets/{RouteErrorBoundary-BaC7YVzR.js → RouteErrorBoundary-SkNhhUbt.js} +2 -2
- package/dist/core/web/public/next/assets/{RouteErrorBoundary-BaC7YVzR.js.map → RouteErrorBoundary-SkNhhUbt.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RunInCloudAction-D5PDHJPE.js → RunInCloudAction-BXPlZwJQ.js} +2 -2
- package/dist/core/web/public/next/assets/{RunInCloudAction-D5PDHJPE.js.map → RunInCloudAction-BXPlZwJQ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SeatSelector-Cg75LInq.js → SeatSelector-J5R3zDkB.js} +3 -3
- package/dist/core/web/public/next/assets/{SeatSelector-Cg75LInq.js.map → SeatSelector-J5R3zDkB.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Segmented-CametjLt.js → Segmented-CGh_-tBb.js} +2 -2
- package/dist/core/web/public/next/assets/{Segmented-CametjLt.js.map → Segmented-CGh_-tBb.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Select-De52fghU.js → Select-CWnmUzs3.js} +2 -2
- package/dist/core/web/public/next/assets/{Select-De52fghU.js.map → Select-CWnmUzs3.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SessionGate-CzlcNq3O.js → SessionGate-sp4KsnUo.js} +2 -2
- package/dist/core/web/public/next/assets/{SessionGate-CzlcNq3O.js.map → SessionGate-sp4KsnUo.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SessionInsightChip-Bk_Owa7u.js → SessionInsightChip-DLFAzdbi.js} +2 -2
- package/dist/core/web/public/next/assets/{SessionInsightChip-Bk_Owa7u.js.map → SessionInsightChip-DLFAzdbi.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SessionSearch-C6C8DHN8.js → SessionSearch-DbFjwR1h.js} +2 -2
- package/dist/core/web/public/next/assets/{SessionSearch-C6C8DHN8.js.map → SessionSearch-DbFjwR1h.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SettingsSection-mI9wQYZg.js → SettingsSection-Ch23msJ5.js} +2 -2
- package/dist/core/web/public/next/assets/SettingsSection-Ch23msJ5.js.map +1 -0
- package/dist/core/web/public/next/assets/SetupChecklist-Bd76MBAR.js +2 -0
- package/dist/core/web/public/next/assets/SetupChecklist-Bd76MBAR.js.map +1 -0
- package/dist/core/web/public/next/assets/SetupChecklist-BhZpFLsj.css +1 -0
- package/dist/core/web/public/next/assets/ShadowDecisions-C5RAY91f.js +3 -0
- package/dist/core/web/public/next/assets/ShadowDecisions-C5RAY91f.js.map +1 -0
- package/dist/core/web/public/next/assets/{Sheet-CJhK9Dqv.js → Sheet-BZ2AG4Eo.js} +2 -2
- package/dist/core/web/public/next/assets/{Sheet-CJhK9Dqv.js.map → Sheet-BZ2AG4Eo.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ShortcutsOverlay-DDW-i9Fc.js → ShortcutsOverlay-C8n8y3zf.js} +2 -2
- package/dist/core/web/public/next/assets/{ShortcutsOverlay-DDW-i9Fc.js.map → ShortcutsOverlay-C8n8y3zf.js.map} +1 -1
- package/dist/core/web/public/next/assets/Sidebar-DN--cPYN.js +3 -0
- package/dist/core/web/public/next/assets/Sidebar-DN--cPYN.js.map +1 -0
- package/dist/core/web/public/next/assets/{Slider-Bwd9HfXl.js → Slider-KVoJLDD6.js} +2 -2
- package/dist/core/web/public/next/assets/{Slider-Bwd9HfXl.js.map → Slider-KVoJLDD6.js.map} +1 -1
- package/dist/core/web/public/next/assets/StatTile-C4KgjltA.js +2 -0
- package/dist/core/web/public/next/assets/StatTile-C4KgjltA.js.map +1 -0
- package/dist/core/web/public/next/assets/StatTile-CNCqDoPO.css +1 -0
- package/dist/core/web/public/next/assets/{StatusBadge-DHKRtttH.js → StatusBadge-CXsYqmdU.js} +2 -2
- package/dist/core/web/public/next/assets/{StatusBadge-DHKRtttH.js.map → StatusBadge-CXsYqmdU.js.map} +1 -1
- package/dist/core/web/public/next/assets/StepBand-BMtVOFpK.js +2 -0
- package/dist/core/web/public/next/assets/StepBand-BMtVOFpK.js.map +1 -0
- package/dist/core/web/public/next/assets/{Surface-D--LXgQm.js → Surface-BfDmQcKe.js} +2 -2
- package/dist/core/web/public/next/assets/{Surface-D--LXgQm.js.map → Surface-BfDmQcKe.js.map} +1 -1
- package/dist/core/web/public/next/assets/Swimlane-B9Exxekk.js +2 -0
- package/dist/core/web/public/next/assets/Swimlane-B9Exxekk.js.map +1 -0
- package/dist/core/web/public/next/assets/Swimlane-Bf4Rjoy9.css +1 -0
- package/dist/core/web/public/next/assets/{Switch-PMixU6b0.js → Switch-9NtO_6Lj.js} +2 -2
- package/dist/core/web/public/next/assets/{Switch-PMixU6b0.js.map → Switch-9NtO_6Lj.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Tag-fordBsrJ.js → Tag-DscCRFcN.js} +2 -2
- package/dist/core/web/public/next/assets/{Tag-fordBsrJ.js.map → Tag-DscCRFcN.js.map} +1 -1
- package/dist/core/web/public/next/assets/{TerminalPane-BSnGdUuF.js → TerminalPane-B668-DJW.js} +5 -5
- package/dist/core/web/public/next/assets/{TerminalPane-BSnGdUuF.js.map → TerminalPane-B668-DJW.js.map} +1 -1
- package/dist/core/web/public/next/assets/UniverseConsoleApp-BUV_brY7.js +2 -0
- package/dist/core/web/public/next/assets/{UniverseConsoleApp-DtXFhAhw.js.map → UniverseConsoleApp-BUV_brY7.js.map} +1 -1
- package/dist/core/web/public/next/assets/{UniverseView-sWm3pnTW.js → UniverseView-DG70zH0W.js} +4 -4
- package/dist/core/web/public/next/assets/{UniverseView-sWm3pnTW.js.map → UniverseView-DG70zH0W.js.map} +1 -1
- package/dist/core/web/public/next/assets/UsageSection-DY7uOTm1.js +3 -0
- package/dist/core/web/public/next/assets/UsageSection-DY7uOTm1.js.map +1 -0
- package/dist/core/web/public/next/assets/VerseConsoleApp-CWU6R3By.js +3 -0
- package/dist/core/web/public/next/assets/VerseConsoleApp-CWU6R3By.js.map +1 -0
- package/dist/core/web/public/next/assets/Workspace-D1nP9BhD.js +10 -0
- package/dist/core/web/public/next/assets/{Workspace-BQSZFSeO.js.map → Workspace-D1nP9BhD.js.map} +1 -1
- package/dist/core/web/public/next/assets/actions-CY-PjpGc.js +2 -0
- package/dist/core/web/public/next/assets/{actions-Ci6I4C0l.js.map → actions-CY-PjpGc.js.map} +1 -1
- package/dist/core/web/public/next/assets/actions-DkWhhWIg.css +1 -0
- package/dist/core/web/public/next/assets/{apps-model-DlwnfqwJ.js → apps-model-Du02KhAf.js} +2 -2
- package/dist/core/web/public/next/assets/{apps-model-DlwnfqwJ.js.map → apps-model-Du02KhAf.js.map} +1 -1
- package/dist/core/web/public/next/assets/{authority-model-BFuPezSo.js → authority-model-79SeuKlJ.js} +2 -2
- package/dist/core/web/public/next/assets/{authority-model-BFuPezSo.js.map → authority-model-79SeuKlJ.js.map} +1 -1
- package/dist/core/web/public/next/assets/autonomy-ladder-BGWmZzP7.css +1 -0
- package/dist/core/web/public/next/assets/autonomy-ladder.module-ArDv4bkr.js +2 -0
- package/dist/core/web/public/next/assets/autonomy-ladder.module-ArDv4bkr.js.map +1 -0
- package/dist/core/web/public/next/assets/budget-queries-D8QV5XtH.js +2 -0
- package/dist/core/web/public/next/assets/{budget-queries-DsAjH8ac.js.map → budget-queries-D8QV5XtH.js.map} +1 -1
- package/dist/core/web/public/next/assets/{capacity-strip-model-Dn1cNOhz.js → capacity-strip-model-BwZ1ZbkU.js} +2 -2
- package/dist/core/web/public/next/assets/{capacity-strip-model-Dn1cNOhz.js.map → capacity-strip-model-BwZ1ZbkU.js.map} +1 -1
- package/dist/core/web/public/next/assets/charts-BZ50mZD_.js +2 -0
- package/dist/core/web/public/next/assets/charts-BZ50mZD_.js.map +1 -0
- package/dist/core/web/public/next/assets/charts-ClCB18la.css +1 -0
- package/dist/core/web/public/next/assets/cloud-model-BDivRMqv.js +2 -0
- package/dist/core/web/public/next/assets/{cloud-model-CX407gPY.js.map → cloud-model-BDivRMqv.js.map} +1 -1
- package/dist/core/web/public/next/assets/{cloud-queries-QAhpExlz.js → cloud-queries-BPQQ5_pJ.js} +2 -2
- package/dist/core/web/public/next/assets/{cloud-queries-QAhpExlz.js.map → cloud-queries-BPQQ5_pJ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{colors-BZ3a9wFf.js → colors-DvK0wMHH.js} +2 -2
- package/dist/core/web/public/next/assets/{colors-BZ3a9wFf.js.map → colors-DvK0wMHH.js.map} +1 -1
- package/dist/core/web/public/next/assets/{command-catalog-CF0cQQac.js → command-catalog-BIntSa9l.js} +2 -2
- package/dist/core/web/public/next/assets/command-catalog-BIntSa9l.js.map +1 -0
- package/dist/core/web/public/next/assets/{context-model-Co4wh3SM.js → context-model-Br8t9jgG.js} +2 -2
- package/dist/core/web/public/next/assets/{context-model-Co4wh3SM.js.map → context-model-Br8t9jgG.js.map} +1 -1
- package/dist/core/web/public/next/assets/{context-model-DV1zCfAm.js → context-model-CokrgEUq.js} +3 -3
- package/dist/core/web/public/next/assets/{context-model-DV1zCfAm.js.map → context-model-CokrgEUq.js.map} +1 -1
- package/dist/core/web/public/next/assets/context-queries-eL3caKVG.js +2 -0
- package/dist/core/web/public/next/assets/{context-queries-CktFQqSS.js.map → context-queries-eL3caKVG.js.map} +1 -1
- package/dist/core/web/public/next/assets/{control-queries-DAvlh_YM.js → control-queries-B9K-wmcB.js} +2 -2
- package/dist/core/web/public/next/assets/{control-queries-DAvlh_YM.js.map → control-queries-B9K-wmcB.js.map} +1 -1
- package/dist/core/web/public/next/assets/copy-setup-XMgCC5f8.js +2 -0
- package/dist/core/web/public/next/assets/copy-setup-XMgCC5f8.js.map +1 -0
- package/dist/core/web/public/next/assets/{dock-icons-BFuBbqJl.js → dock-icons-BJ6ZqB2t.js} +2 -2
- package/dist/core/web/public/next/assets/{dock-icons-BFuBbqJl.js.map → dock-icons-BJ6ZqB2t.js.map} +1 -1
- package/dist/core/web/public/next/assets/{fleet-model-Dfd5JyLR.js → fleet-model-BvDR3gjp.js} +2 -2
- package/dist/core/web/public/next/assets/{fleet-model-Dfd5JyLR.js.map → fleet-model-BvDR3gjp.js.map} +1 -1
- package/dist/core/web/public/next/assets/{fleet-queries-RtMTd5rR.js → fleet-queries-W2UFVMZJ.js} +2 -2
- package/dist/core/web/public/next/assets/{fleet-queries-RtMTd5rR.js.map → fleet-queries-W2UFVMZJ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{focus-trap-BdrbWfC4.js → focus-trap-CtI1SlMX.js} +2 -2
- package/dist/core/web/public/next/assets/{focus-trap-BdrbWfC4.js.map → focus-trap-CtI1SlMX.js.map} +1 -1
- package/dist/core/web/public/next/assets/format-CH4g_sl1.js +2 -0
- package/dist/core/web/public/next/assets/format-CH4g_sl1.js.map +1 -0
- package/dist/core/web/public/next/assets/{format-DKrNjdwD.js → format-D7nBg2bn.js} +2 -2
- package/dist/core/web/public/next/assets/{format-DKrNjdwD.js.map → format-D7nBg2bn.js.map} +1 -1
- package/dist/core/web/public/next/assets/{git-model-_BnI_Ogh.js → git-model-Dnkd1TnK.js} +2 -2
- package/dist/core/web/public/next/assets/{git-model-_BnI_Ogh.js.map → git-model-Dnkd1TnK.js.map} +1 -1
- package/dist/core/web/public/next/assets/global-CMNW_dqn.js +2 -0
- package/dist/core/web/public/next/assets/{global-CNNGMril.js.map → global-CMNW_dqn.js.map} +1 -1
- package/dist/core/web/public/next/assets/guarded-runners-YeAc9wLQ.js +2 -0
- package/dist/core/web/public/next/assets/{guarded-runners-DPh2d32e.js.map → guarded-runners-YeAc9wLQ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{icons-0haWy6nh.js → icons-D1sYbCTQ.js} +2 -2
- package/dist/core/web/public/next/assets/{icons-0haWy6nh.js.map → icons-D1sYbCTQ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{index-QesfXBsb.js → index-DZ-UQ7v8.js} +3 -3
- package/dist/core/web/public/next/assets/{index-QesfXBsb.js.map → index-DZ-UQ7v8.js.map} +1 -1
- package/dist/core/web/public/next/assets/leader-focus-BjeJv7CW.js +2 -0
- package/dist/core/web/public/next/assets/leader-focus-BjeJv7CW.js.map +1 -0
- package/dist/core/web/public/next/assets/leader-thread-types-CDb-VPPO.js +2 -0
- package/dist/core/web/public/next/assets/leader-thread-types-CDb-VPPO.js.map +1 -0
- package/dist/core/web/public/next/assets/{live-model-De-q0ZFK.js → live-model-D_32RAOR.js} +2 -2
- package/dist/core/web/public/next/assets/live-model-D_32RAOR.js.map +1 -0
- package/dist/core/web/public/next/assets/{mind.module-BrK2nFOL.js → mind.module-7hA92hRg.js} +2 -2
- package/dist/core/web/public/next/assets/{mind.module-BrK2nFOL.js.map → mind.module-7hA92hRg.js.map} +1 -1
- package/dist/core/web/public/next/assets/mutations-DQPbFdRJ.js +2 -0
- package/dist/core/web/public/next/assets/{mutations-DTCtKCn_.js.map → mutations-DQPbFdRJ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{nav-KmGX0CVz.js → nav-0dOYe2rJ.js} +2 -2
- package/dist/core/web/public/next/assets/{nav-KmGX0CVz.js.map → nav-0dOYe2rJ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{overnight-queries-mlO0xzsr.js → overnight-queries-C4wOnFtE.js} +2 -2
- package/dist/core/web/public/next/assets/{overnight-queries-mlO0xzsr.js.map → overnight-queries-C4wOnFtE.js.map} +1 -1
- package/dist/core/web/public/next/assets/primitives-2A5Eq8FQ.js +1 -0
- package/dist/core/web/public/next/assets/{queries-CyBE8nsW.js → queries-BTXWdZzU.js} +2 -2
- package/dist/core/web/public/next/assets/{queries-CyBE8nsW.js.map → queries-BTXWdZzU.js.map} +1 -1
- package/dist/core/web/public/next/assets/{reasoning-pref-CaoA4_Vl.js → reasoning-pref-Ca6lN6x_.js} +2 -2
- package/dist/core/web/public/next/assets/{reasoning-pref-CaoA4_Vl.js.map → reasoning-pref-Ca6lN6x_.js.map} +1 -1
- package/dist/core/web/public/next/assets/{reveal-anchor-BP1VqnPU.js → reveal-anchor-DfNLgK_I.js} +2 -2
- package/dist/core/web/public/next/assets/{reveal-anchor-BP1VqnPU.js.map → reveal-anchor-DfNLgK_I.js.map} +1 -1
- package/dist/core/web/public/next/assets/seat-subscription-C5uPHBsN.js +2 -0
- package/dist/core/web/public/next/assets/{seat-subscription-C5Tvr0WQ.js.map → seat-subscription-C5uPHBsN.js.map} +1 -1
- package/dist/core/web/public/next/assets/{sidebar-model-B5Qk95k_.js → sidebar-model-CLCdqwkR.js} +2 -2
- package/dist/core/web/public/next/assets/{sidebar-model-B5Qk95k_.js.map → sidebar-model-CLCdqwkR.js.map} +1 -1
- package/dist/core/web/public/next/assets/{slots-DHKQDoE6.js → slots-C-qBeu-8.js} +3 -3
- package/dist/core/web/public/next/assets/{slots-DHKQDoE6.js.map → slots-C-qBeu-8.js.map} +1 -1
- package/dist/core/web/public/next/assets/{surface-data-CchClvHo.js → surface-data-Dj71tdD-.js} +2 -2
- package/dist/core/web/public/next/assets/{surface-data-CchClvHo.js.map → surface-data-Dj71tdD-.js.map} +1 -1
- package/dist/core/web/public/next/assets/surface-prefetch-B0WdJOJG.js +2 -0
- package/dist/core/web/public/next/assets/surface-prefetch-B0WdJOJG.js.map +1 -0
- package/dist/core/web/public/next/assets/{tasks-model-D6WFVULI.js → tasks-model-O8yR5YXp.js} +2 -2
- package/dist/core/web/public/next/assets/{tasks-model-D6WFVULI.js.map → tasks-model-O8yR5YXp.js.map} +1 -1
- package/dist/core/web/public/next/assets/{terminal-icons-BvCvuXk2.js → terminal-icons-CoRZq9iO.js} +2 -2
- package/dist/core/web/public/next/assets/{terminal-icons-BvCvuXk2.js.map → terminal-icons-CoRZq9iO.js.map} +1 -1
- package/dist/core/web/public/next/assets/thread-data-DQB_g66d.js +2 -0
- package/dist/core/web/public/next/assets/thread-data-DQB_g66d.js.map +1 -0
- package/dist/core/web/public/next/assets/types-IYKrYLku.js +2 -0
- package/dist/core/web/public/next/assets/types-IYKrYLku.js.map +1 -0
- package/dist/core/web/public/next/assets/{usage-queries-D1SU1t7r.js → usage-queries-AdjEyEtn.js} +2 -2
- package/dist/core/web/public/next/assets/{usage-queries-D1SU1t7r.js.map → usage-queries-AdjEyEtn.js.map} +1 -1
- package/dist/core/web/public/next/assets/{use-guarded-action-BZmBv7CJ.js → use-guarded-action-CuuMHeDX.js} +2 -2
- package/dist/core/web/public/next/assets/{use-guarded-action-BZmBv7CJ.js.map → use-guarded-action-CuuMHeDX.js.map} +1 -1
- package/dist/core/web/public/next/assets/{use-ticker-CkJ4-0wU.js → use-ticker-BBcp02SZ.js} +2 -2
- package/dist/core/web/public/next/assets/{use-ticker-CkJ4-0wU.js.map → use-ticker-BBcp02SZ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{use-token-gate-CYcfk_GS.js → use-token-gate-CbXVYQYI.js} +2 -2
- package/dist/core/web/public/next/assets/{use-token-gate-CYcfk_GS.js.map → use-token-gate-CbXVYQYI.js.map} +1 -1
- package/dist/core/web/public/next/assets/{useOnboarding-CujRS6PK.js → useOnboarding-C_Fpe_sH.js} +2 -2
- package/dist/core/web/public/next/assets/{useOnboarding-CujRS6PK.js.map → useOnboarding-C_Fpe_sH.js.map} +1 -1
- package/dist/core/web/public/next/assets/{useSeatsRefresh-BEaQdkZs.js → useSeatsRefresh-Co1CnxLc.js} +2 -2
- package/dist/core/web/public/next/assets/{useSeatsRefresh-BEaQdkZs.js.map → useSeatsRefresh-Co1CnxLc.js.map} +1 -1
- package/dist/core/web/public/next/assets/{useVerseTranscript-BQ0J6Xhx.js → useVerseTranscript-DgbigUlV.js} +2 -2
- package/dist/core/web/public/next/assets/{useVerseTranscript-BQ0J6Xhx.js.map → useVerseTranscript-DgbigUlV.js.map} +1 -1
- package/dist/core/web/public/next/assets/{verse-icons-DndgEgKS.js → verse-icons-S56hIiXS.js} +2 -2
- package/dist/core/web/public/next/assets/{verse-icons-DndgEgKS.js.map → verse-icons-S56hIiXS.js.map} +1 -1
- package/dist/core/web/public/next/assets/verse-model-DAVevkNe.js +2 -0
- package/dist/core/web/public/next/assets/{verse-model-MMySehjj.js.map → verse-model-DAVevkNe.js.map} +1 -1
- package/dist/core/web/public/next/assets/{warmup-CNEH_-be.js → warmup-B_RAtNZ_.js} +3 -3
- package/dist/core/web/public/next/assets/{warmup-CNEH_-be.js.map → warmup-B_RAtNZ_.js.map} +1 -1
- package/dist/core/web/public/next/assets/why-seat-model-M_r0wX3b.js +2 -0
- package/dist/core/web/public/next/assets/why-seat-model-M_r0wX3b.js.map +1 -0
- package/dist/core/web/public/next/assets/{workspace-model-Dukb2wwv.js → workspace-model-dji5-Al3.js} +2 -2
- package/dist/core/web/public/next/assets/{workspace-model-Dukb2wwv.js.map → workspace-model-dji5-Al3.js.map} +1 -1
- package/dist/core/web/public/next/index.html +1 -1
- package/dist/core/web/read-projection-worker.js +2 -1
- package/dist/core/web/read-projection-worker.js.map +1 -1
- package/dist/core/web/read-projections.d.ts +3 -0
- package/dist/core/web/read-projections.js +2 -2
- package/dist/core/web/read-projections.js.map +1 -1
- package/dist/core/web/visibility.js +3 -4
- package/dist/core/web/visibility.js.map +1 -1
- package/dist/release-dependency-inventory.json +1 -1
- package/docs/AUTONOMY-GAP.md +1 -1
- package/package.json +3 -2
- package/dist/core/web/public/next/assets/Advanced-B-LqYXvd.js +0 -2
- package/dist/core/web/public/next/assets/App-E2zCDRxm.js +0 -7
- package/dist/core/web/public/next/assets/AppsSection-8wXPPhZb.js +0 -2
- package/dist/core/web/public/next/assets/AreaTrend-BFimExYn.js +0 -2
- package/dist/core/web/public/next/assets/AreaTrend-BFimExYn.js.map +0 -1
- package/dist/core/web/public/next/assets/AutonomyOffState-B5eEkmiz.js +0 -2
- package/dist/core/web/public/next/assets/AutonomyOffState-B5eEkmiz.js.map +0 -1
- package/dist/core/web/public/next/assets/AutonomyOffState-DmbE71vI.css +0 -1
- package/dist/core/web/public/next/assets/AutonomySection-B46igJKR.js +0 -2
- package/dist/core/web/public/next/assets/BudgetControl-T_RjPrw9.js +0 -2
- package/dist/core/web/public/next/assets/BudgetControl-T_RjPrw9.js.map +0 -1
- package/dist/core/web/public/next/assets/ChartFrame-BVuBe6RP.css +0 -1
- package/dist/core/web/public/next/assets/ChartFrame-SygZ7B3x.js +0 -2
- package/dist/core/web/public/next/assets/ChartFrame-SygZ7B3x.js.map +0 -1
- package/dist/core/web/public/next/assets/ChatSection-D6WybBpB.js +0 -3
- package/dist/core/web/public/next/assets/ChatSection-D6WybBpB.js.map +0 -1
- package/dist/core/web/public/next/assets/CommandPalette-B6SgDJH-.js +0 -2
- package/dist/core/web/public/next/assets/CommandPalette-B6SgDJH-.js.map +0 -1
- package/dist/core/web/public/next/assets/CommandSection-CvAVd1w4.css +0 -1
- package/dist/core/web/public/next/assets/CommandSection-DgMGoepd.js +0 -2
- package/dist/core/web/public/next/assets/CommandSection-DgMGoepd.js.map +0 -1
- package/dist/core/web/public/next/assets/DockHost-DW9q0NdR.js +0 -2
- package/dist/core/web/public/next/assets/FleetSection-BdZN6rGS.js +0 -3
- package/dist/core/web/public/next/assets/FleetSection-BdZN6rGS.js.map +0 -1
- package/dist/core/web/public/next/assets/Funnel-BeNQZWv2.js +0 -2
- package/dist/core/web/public/next/assets/Funnel-BeNQZWv2.js.map +0 -1
- package/dist/core/web/public/next/assets/GrowthSection-iiQg6wvK.js +0 -2
- package/dist/core/web/public/next/assets/LeaderCard-BRr3_yE-.js +0 -2
- package/dist/core/web/public/next/assets/LeaderCard-BRr3_yE-.js.map +0 -1
- package/dist/core/web/public/next/assets/MatrixHeatmap-DZvZeWXL.js +0 -2
- package/dist/core/web/public/next/assets/MatrixHeatmap-DZvZeWXL.js.map +0 -1
- package/dist/core/web/public/next/assets/McpSection-BRuCcTjT.js +0 -2
- package/dist/core/web/public/next/assets/MindSection-BTIiQS8P.js +0 -2
- package/dist/core/web/public/next/assets/MindSection-BTIiQS8P.js.map +0 -1
- package/dist/core/web/public/next/assets/NeedsYouDrawer-lYN4G_aM.js +0 -2
- package/dist/core/web/public/next/assets/NeedsYouDrawer-lYN4G_aM.js.map +0 -1
- package/dist/core/web/public/next/assets/NeedsYouList-BgH8ezqf.js +0 -2
- package/dist/core/web/public/next/assets/NeedsYouList-CruOt4JT.css +0 -1
- package/dist/core/web/public/next/assets/NewChatDialog-Db5Xjrk8.js +0 -3
- package/dist/core/web/public/next/assets/OnboardingFlow-LoY-zuSe.js +0 -2
- package/dist/core/web/public/next/assets/OnboardingFlow-LoY-zuSe.js.map +0 -1
- package/dist/core/web/public/next/assets/OnboardingGate-C4VXn7BJ.js +0 -3
- package/dist/core/web/public/next/assets/PreviewPane-BPBbcROb.js +0 -2
- package/dist/core/web/public/next/assets/ResourcePoolConsoleApp-BX2nkdmZ.js +0 -7
- package/dist/core/web/public/next/assets/ResourcesChrome-B2U2lO1H.js +0 -3
- package/dist/core/web/public/next/assets/ResourcesChrome-B2U2lO1H.js.map +0 -1
- package/dist/core/web/public/next/assets/ResourcesDrawer-BCFJ2Uq8.css +0 -1
- package/dist/core/web/public/next/assets/ResourcesDrawer-DlUKOjl9.js +0 -2
- package/dist/core/web/public/next/assets/ResourcesDrawer-DlUKOjl9.js.map +0 -1
- package/dist/core/web/public/next/assets/SettingsSection-mI9wQYZg.js.map +0 -1
- package/dist/core/web/public/next/assets/Sidebar-DT7ykaqS.js +0 -3
- package/dist/core/web/public/next/assets/Sidebar-DT7ykaqS.js.map +0 -1
- package/dist/core/web/public/next/assets/StatTile-BuLMsJMx.css +0 -1
- package/dist/core/web/public/next/assets/StatTile-DPZ5yyaU.js +0 -2
- package/dist/core/web/public/next/assets/StatTile-DPZ5yyaU.js.map +0 -1
- package/dist/core/web/public/next/assets/StepBand-DQykLkk_.js +0 -2
- package/dist/core/web/public/next/assets/StepBand-DQykLkk_.js.map +0 -1
- package/dist/core/web/public/next/assets/Swimlane-BzH6OCee.js +0 -2
- package/dist/core/web/public/next/assets/Swimlane-BzH6OCee.js.map +0 -1
- package/dist/core/web/public/next/assets/Swimlane-o6_Zsrnr.css +0 -1
- package/dist/core/web/public/next/assets/UniverseConsoleApp-DtXFhAhw.js +0 -2
- package/dist/core/web/public/next/assets/UsageSection-CiD1DbuF.js +0 -3
- package/dist/core/web/public/next/assets/UsageSection-CiD1DbuF.js.map +0 -1
- package/dist/core/web/public/next/assets/VerseConsoleApp-BCY5uSok.js +0 -3
- package/dist/core/web/public/next/assets/VerseConsoleApp-BCY5uSok.js.map +0 -1
- package/dist/core/web/public/next/assets/Workspace-BQSZFSeO.js +0 -10
- package/dist/core/web/public/next/assets/actions-BmIf9avl.css +0 -1
- package/dist/core/web/public/next/assets/actions-Ci6I4C0l.js +0 -2
- package/dist/core/web/public/next/assets/budget-queries-DsAjH8ac.js +0 -2
- package/dist/core/web/public/next/assets/charts-C_xJbJiw.js +0 -2
- package/dist/core/web/public/next/assets/charts-C_xJbJiw.js.map +0 -1
- package/dist/core/web/public/next/assets/charts-DhKTrQLw.css +0 -1
- package/dist/core/web/public/next/assets/cloud-model-CX407gPY.js +0 -2
- package/dist/core/web/public/next/assets/command-catalog-CF0cQQac.js.map +0 -1
- package/dist/core/web/public/next/assets/context-queries-CktFQqSS.js +0 -2
- package/dist/core/web/public/next/assets/copy-setup-CqRSfELB.js +0 -2
- package/dist/core/web/public/next/assets/copy-setup-CqRSfELB.js.map +0 -1
- package/dist/core/web/public/next/assets/format-Dk4Fmxax.js +0 -2
- package/dist/core/web/public/next/assets/format-Dk4Fmxax.js.map +0 -1
- package/dist/core/web/public/next/assets/global-CNNGMril.js +0 -2
- package/dist/core/web/public/next/assets/guarded-runners-DPh2d32e.js +0 -2
- package/dist/core/web/public/next/assets/live-model-De-q0ZFK.js.map +0 -1
- package/dist/core/web/public/next/assets/mutations-DTCtKCn_.js +0 -2
- package/dist/core/web/public/next/assets/primitives-D0Fb3TtS.js +0 -1
- package/dist/core/web/public/next/assets/seat-subscription-C5Tvr0WQ.js +0 -2
- package/dist/core/web/public/next/assets/surface-prefetch-BWr0LBQn.js +0 -2
- package/dist/core/web/public/next/assets/surface-prefetch-BWr0LBQn.js.map +0 -1
- package/dist/core/web/public/next/assets/types-D5XOdyw8.js +0 -2
- package/dist/core/web/public/next/assets/types-D5XOdyw8.js.map +0 -1
- package/dist/core/web/public/next/assets/verse-model-MMySehjj.js +0 -2
- package/dist/core/web/public/next/assets/why-seat-model-jlDTwYSc.js +0 -2
- package/dist/core/web/public/next/assets/why-seat-model-jlDTwYSc.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StepBand-DQykLkk_.js","names":[],"sources":["../../../../../../src/web-ui/components/charts/CalendarHeatmap.tsx","../../../../../../src/web-ui/components/charts/ForestPlot.module.css","../../../../../../src/web-ui/components/charts/ForestPlot.tsx","../../../../../../src/web-ui/components/charts/StepBand.tsx"],"sourcesContent":["/**\n * components/charts/CalendarHeatmap.tsx — one value per day on a weeks ×\n * weekdays grid (activity by day across months). Sequential: ONE hue, four\n * steps light → dark mixed from the theme's own tokens, with a Less → More\n * key. A TRUE ZERO is the faint step-0 cell; UNKNOWN (null, or a day missing\n * from the data) is the 45° unknown hatch with an outline (V3.10) and its own\n * \"no data\" key entry — the two are never the same colour, and texture keeps\n * them apart under colour-blindness too.\n *\n * Width: the cell size adapts (8–16 px). When even 8 px cells cannot fit the\n * whole span at 375 px, the grid shows the most recent weeks that fit and says\n * how many are hidden; the Table view always has every day.\n *\n * Keyboard: the grid is one tab stop; ← → move a week, ↑ ↓ move a day (rows\n * are weekdays), Home/End jump to the ends; the focused day is announced.\n */\nimport { useId, useMemo, useRef, useState, type KeyboardEvent } from 'react';\nimport { hatchPatternId, heatColor } from './colors.js';\nimport { ChartFrame, type ChartStatus } from './ChartFrame.js';\nimport { ChartTooltip, HatchPattern, clampTooltipLeft } from './ChartParts.js';\nimport { TableView, type TableColumn } from './TableView.js';\nimport { calendarGrid, heatBucket, type CalendarCell } from './chart-math.js';\nimport { formatCompact, formatDayLabel } from './format.js';\nimport { useChartWidth } from './useChartWidth.js';\nimport plot from './plot.module.css';\n\nexport interface CalendarDatum {\n day: string;\n value: number | null;\n}\n\nexport interface CalendarHeatmapProps {\n title: string;\n description?: string;\n caveat?: string;\n status?: ChartStatus;\n days: CalendarDatum[];\n /** 1 = Monday (ISO, default), 0 = Sunday. */\n weekStart?: 0 | 1;\n width?: number;\n formatValue?: (v: number) => string;\n /** Unit for the spoken/tooltip text, e.g. \"runs\". */\n unit?: string;\n ariaLabel?: string;\n}\n\nconst MIN_CELL = 8;\nconst MAX_CELL = 16;\nconst GAP = 2;\nconst DAY_LABEL_W = 28;\nconst MONTH_H = 16;\nconst STEPS = 4;\nconst WEEKDAYS_MON = ['Mon', '', 'Wed', '', 'Fri', '', ''];\nconst WEEKDAYS_SUN = ['', 'Mon', '', 'Wed', '', 'Fri', ''];\n\nexport function CalendarHeatmap({\n title,\n description,\n caveat,\n status,\n days,\n weekStart = 1,\n width: fixedWidth,\n formatValue = formatCompact,\n unit = '',\n ariaLabel,\n}: CalendarHeatmapProps) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const width = useChartWidth(wrapRef, fixedWidth);\n const liveId = useId();\n const hatchId = hatchPatternId(useId());\n const grid = useMemo(() => calendarGrid(days, weekStart), [days, weekStart]);\n const [focus, setFocus] = useState<number | null>(null);\n\n const max = Math.max(0, ...days.map((d) => d.value ?? 0));\n const anyKnown = days.some((d) => d.value !== null);\n const resolvedStatus: ChartStatus = status ?? (days.length === 0 ? { kind: 'empty' } : anyKnown ? { kind: 'ready' } : { kind: 'unknown' });\n\n const avail = width - DAY_LABEL_W;\n const fitWeeks = Math.max(1, Math.floor((avail + GAP) / (MIN_CELL + GAP)));\n const shownWeeks = Math.min(grid.weeks, fitWeeks);\n const hiddenWeeks = grid.weeks - shownWeeks;\n const cell = Math.max(MIN_CELL, Math.min(MAX_CELL, Math.floor((avail + GAP) / Math.max(1, shownWeeks)) - GAP));\n const firstWeek = hiddenWeeks;\n const visible = grid.cells.filter((c) => c.week >= firstWeek);\n const svgW = DAY_LABEL_W + shownWeeks * (cell + GAP);\n const svgH = MONTH_H + 7 * (cell + GAP);\n const xOf = (c: CalendarCell) => DAY_LABEL_W + (c.week - firstWeek) * (cell + GAP);\n const yOf = (c: CalendarCell) => MONTH_H + c.weekday * (cell + GAP);\n const unitText = unit ? ` ${unit}` : '';\n const describe = (c: CalendarCell) => `${formatDayLabel(c.day)}: ${c.value === null ? 'no data' : `${formatValue(c.value)}${unitText}`}`;\n\n const monthLabels: { week: number; label: string }[] = [];\n for (const m of grid.months) {\n if (m.week < firstWeek) continue;\n const prev = monthLabels[monthLabels.length - 1];\n if (prev && m.week - prev.week < 3) continue;\n monthLabels.push(m);\n }\n\n const inside = visible.filter((c) => !c.outside);\n const focusCell = focus !== null ? inside[focus] : undefined;\n\n function onKey(e: KeyboardEvent<HTMLDivElement>): void {\n if (inside.length === 0) return;\n const cur = focus ?? inside.length - 1;\n const delta = e.key === 'ArrowLeft' ? -7 : e.key === 'ArrowRight' ? 7 : e.key === 'ArrowUp' ? -1 : e.key === 'ArrowDown' ? 1 : null;\n let next: number | null = null;\n if (delta !== null) next = cur + delta;\n else if (e.key === 'Home') next = 0;\n else if (e.key === 'End') next = inside.length - 1;\n if (next === null) return;\n e.preventDefault();\n setFocus(Math.max(0, Math.min(inside.length - 1, next)));\n }\n\n const knownDays = days.filter((d) => d.value !== null);\n const total = knownDays.reduce((s, d) => s + (d.value ?? 0), 0);\n const busiest = knownDays.reduce<CalendarDatum | null>((b, d) => (!b || (d.value ?? 0) > (b.value ?? 0) ? d : b), null);\n const summary = ariaLabel ?? `${title}: ${days.length} days, ${formatValue(total)}${unitText} in total` +\n (busiest && (busiest.value ?? 0) > 0 ? `, busiest ${formatDayLabel(busiest.day)} with ${formatValue(busiest.value!)}` : '') +\n (days.length - knownDays.length > 0 ? `, ${days.length - knownDays.length} days without data` : '') + '.';\n\n const columns: TableColumn<CalendarDatum>[] = [\n { key: 'day', label: 'Day', render: (d) => formatDayLabel(d.day) },\n { key: 'value', label: unit ? unit[0]!.toUpperCase() + unit.slice(1) : 'Value', numeric: true, render: (d) => (d.value === null ? '—' : formatValue(d.value)) },\n ];\n\n const legend = (\n <div className={plot.legend} aria-hidden=\"true\">\n <span className={plot.legendItem}>Less</span>\n {Array.from({ length: STEPS + 1 }, (_, i) => (\n <span key={i} className={plot.swatch} style={{ background: heatColor(i) }} />\n ))}\n <span className={plot.legendItem}>More</span>\n <span className={plot.legendItem}>\n <span className={plot.swatchHatch} />\n no data\n </span>\n </div>\n );\n\n return (\n <ChartFrame\n title={title}\n description={description}\n caveat={caveat}\n status={resolvedStatus}\n table={<TableView caption={title} columns={columns} rows={[...days].sort((a, b) => a.day.localeCompare(b.day))} rowKey={(d) => d.day} />}\n footer={\n <>\n {legend}\n {hiddenWeeks > 0 ? (\n <p className={plot.note}>Showing the latest {shownWeeks} weeks; {hiddenWeeks} earlier weeks are in the table.</p>\n ) : null}\n </>\n }\n >\n <div\n ref={wrapRef}\n className={`${plot.plotWrap} ${plot.focusable}`}\n tabIndex={0}\n role=\"group\"\n aria-label={`${title}. Use the arrow keys to move between days.`}\n aria-describedby={liveId}\n onFocus={() => setFocus((f) => f ?? (inside.length ? inside.length - 1 : null))}\n onBlur={() => setFocus(null)}\n onKeyDown={onKey}\n >\n <svg className={plot.svg} width={svgW} height={svgH} viewBox={`0 0 ${svgW} ${svgH}`} role=\"img\" aria-label={summary}>\n <defs>\n <HatchPattern id={hatchId} />\n </defs>\n {monthLabels.map((m) => (\n <text key={`${m.week}${m.label}`} className={plot.tick} x={DAY_LABEL_W + (m.week - firstWeek) * (cell + GAP)} y={11}>\n {m.label}\n </text>\n ))}\n {(weekStart === 1 ? WEEKDAYS_MON : WEEKDAYS_SUN).map((label, i) =>\n label && cell >= 10 ? (\n <text key={i} className={plot.tick} x={0} y={MONTH_H + i * (cell + GAP) + cell / 2} dy=\"0.32em\">{label}</text>\n ) : null,\n )}\n {visible.map((c) => {\n if (c.outside) return null;\n const bucket = heatBucket(c.value, max, STEPS);\n const isFocus = focusCell?.day === c.day;\n return (\n <rect\n key={c.day}\n data-day={c.day}\n data-bucket={bucket === null ? 'unknown' : bucket}\n x={xOf(c)}\n y={yOf(c)}\n width={cell}\n height={cell}\n rx={2}\n className={bucket === null ? plot.unknownMark : undefined}\n fill={bucket === null ? `url(#${hatchId})` : heatColor(bucket)}\n style={isFocus ? { stroke: 'var(--border-focus)', strokeWidth: 2, strokeDasharray: 'none' } : undefined}\n onPointerEnter={() => setFocus(inside.indexOf(c))}\n onPointerLeave={() => setFocus(null)}\n />\n );\n })}\n </svg>\n <span id={liveId} className={plot.srOnly} aria-live=\"polite\">{focusCell ? describe(focusCell) : ''}</span>\n {focusCell ? (\n <ChartTooltip\n left={clampTooltipLeft(xOf(focusCell) + cell / 2, svgW, 60)}\n top={yOf(focusCell)}\n title={formatDayLabel(focusCell.day)}\n rows={[{ key: 'v', label: unit || 'Value', value: focusCell.value === null ? null : formatValue(focusCell.value) }]}\n />\n ) : null}\n </div>\n </ChartFrame>\n );\n}\n","/* ForestPlot — row banding and the keyboard focus ring. Colours are chart\n tokens only (style-scan-310 bans raw hex and px font sizes here). */\n.band {\n fill: var(--chart-grid);\n opacity: 0.35;\n}\n\n.focusRing {\n fill: none;\n stroke: var(--border-focus);\n stroke-width: 1.5;\n pointer-events: none;\n}\n","/**\n * components/charts/ForestPlot.tsx — one row per experiment: the point\n * estimate with its 95% confidence interval as a whisker, against a zero line\n * (V3.10, SPEC-310C §5 Growth; r5/visual.md §2 \"ForestPlot\").\n *\n * The question it answers is \"which changes REALLY helped?\", so the encoding\n * is about the interval, not the dot:\n * - interval entirely above zero → the positive diverging pole (azure),\n * - entirely below zero → the negative pole (danger),\n * - straddling zero → neutral ink (\"no detectable effect\"),\n * and the verdict is also written in words in every row's spoken label and\n * in the table — colour is never the only carrier.\n *\n * Honesty: a row whose estimate is still null (fewer pairs than the gate\n * needs) draws the unknown hatch across the plot with \"not enough pairs yet\",\n * never a dot at zero. An optional `gate` draws the adoption threshold as a\n * labelled dashed reference (the gate is \"CI low > gate\", SPEC-310B §5).\n *\n * Keyboard: the plot is one tab stop; ↑/↓ (Home/End) walk the rows and the\n * focused row is announced. Works at 375 px: the numeric column folds away\n * (it is in the table) and labels truncate with the full text spoken.\n */\nimport { useId, useRef, useState, type KeyboardEvent } from 'react';\nimport { CHART_DIVERGING_MID, CHART_DIVERGING_NEG, CHART_DIVERGING_POS, hatchPatternId } from './colors.js';\nimport { ChartFrame, type ChartStatus } from './ChartFrame.js';\nimport { ChartLegend, HatchPattern } from './ChartParts.js';\nimport { TableView, type TableColumn } from './TableView.js';\nimport { allIntegers, axisTicks, linearScale } from './chart-math.js';\nimport { useChartWidth } from './useChartWidth.js';\nimport plot from './plot.module.css';\nimport styles from './ForestPlot.module.css';\n\nexport interface ForestRow {\n id: string;\n label: string;\n /** Point estimate (e.g. lift in percentage points); null = not estimable yet. */\n estimate: number | null;\n /** 95% CI bounds; null when the estimate is null. */\n low: number | null;\n high: number | null;\n /** Sample size behind the row (pairs); null = unknown. */\n n?: number | null;\n /** One short qualifier for the table (\"adopted\", \"running\", \"rejected\"). */\n detail?: string;\n}\n\nexport interface ForestPlotProps {\n title: string;\n description?: string;\n caveat?: string;\n status?: ChartStatus;\n rows: ForestRow[];\n /** Unit word after numbers in words and the table (\"pts\"). */\n unit?: string;\n /** A labelled reference the CI low must clear, e.g. { value: 0, label: 'Adoption gate' }. Drawn only when ≠ 0. */\n gate?: { value: number; label: string };\n formatValue?: (v: number) => string;\n /** What an unknown row says (default \"not enough pairs yet\"). */\n unknownText?: string;\n width?: number;\n ariaLabel?: string;\n}\n\nexport type ForestVerdict = 'positive' | 'negative' | 'none' | 'unknown';\n\n/** Where a row's interval sits relative to zero. */\nexport function forestVerdict(row: Pick<ForestRow, 'estimate' | 'low' | 'high'>): ForestVerdict {\n if (row.estimate === null || row.low === null || row.high === null) return 'unknown';\n if (row.low > 0) return 'positive';\n if (row.high < 0) return 'negative';\n return 'none';\n}\n\nconst VERDICT_WORDS: Record<ForestVerdict, string> = {\n positive: 'helped (interval above zero)',\n negative: 'hurt (interval below zero)',\n none: 'no clear effect (interval crosses zero)',\n unknown: 'unknown',\n};\n\nfunction verdictColor(verdict: ForestVerdict): string {\n if (verdict === 'positive') return CHART_DIVERGING_POS;\n if (verdict === 'negative') return CHART_DIVERGING_NEG;\n return 'var(--text-secondary)';\n}\n\nfunction signed(v: number, fmt: (v: number) => string): string {\n return v > 0 ? `+${fmt(v)}` : fmt(v);\n}\n\nconst defaultFormatValue = (v: number): string => (Math.abs(v) >= 10 ? v.toFixed(0) : v.toFixed(1));\n\nconst ROW_H = 28;\nconst AXIS_H = 22;\nconst PAD_R = 12;\nconst NARROW = 480;\n\nexport function ForestPlot({\n title,\n description,\n caveat,\n status,\n rows,\n unit = '',\n gate,\n formatValue: formatValueProp,\n unknownText = 'not enough pairs yet',\n width: fixedWidth,\n ariaLabel,\n}: ForestPlotProps) {\n const formatValue = formatValueProp ?? defaultFormatValue;\n const wrapRef = useRef<HTMLDivElement>(null);\n const width = useChartWidth(wrapRef, fixedWidth);\n const [active, setActive] = useState<number | null>(null);\n const liveId = useId();\n const hatchId = hatchPatternId(useId());\n const unitText = unit ? ` ${unit}` : '';\n\n const known = rows.filter((r) => forestVerdict(r) !== 'unknown');\n const resolvedStatus: ChartStatus = status ?? (rows.length === 0 ? { kind: 'empty', message: 'No experiments have run yet.' } : { kind: 'ready' });\n\n const narrow = width < NARROW;\n const labelW = Math.max(84, Math.min(180, Math.round(width * (narrow ? 0.3 : 0.26))));\n const valueW = narrow ? 0 : 118;\n const plotX0 = labelW + 8;\n const plotX1 = Math.max(plotX0 + 40, width - valueW - PAD_R);\n const bounds = known.flatMap((r) => [r.low!, r.high!]);\n const lo = Math.min(0, gate?.value ?? 0, ...bounds);\n const hi = Math.max(0, gate?.value ?? 0, ...bounds);\n // Tick labels at the step's own precision (a lift axis of 0.25 steps\n // printed at one decimal read \"+0.3 / +0.8\"); a caller's formatter is\n // held to printing every tick faithfully.\n const xAxis = axisTicks(lo, hi === lo ? lo + 1 : hi, {\n count: narrow ? 3 : 5,\n integer: allIntegers([...bounds, gate?.value ?? 0]),\n format: formatValueProp ? (t) => (t === 0 ? '0' : signed(t, formatValueProp)) : undefined,\n });\n const ticks = xAxis.ticks;\n const tickLabels = formatValueProp ? xAxis.labels : xAxis.labels.map((l, i) => (ticks[i]! > 0 ? `+${l}` : l));\n const xs = linearScale(ticks[0]!, ticks[ticks.length - 1]!, plotX0, plotX1);\n const bodyH = rows.length * ROW_H;\n const svgH = bodyH + AXIS_H;\n\n const spoken = (r: ForestRow): string => {\n const v = forestVerdict(r);\n if (v === 'unknown') return `${r.label}: ${unknownText}`;\n return `${r.label}: ${signed(r.estimate!, formatValue)}${unitText}, 95% interval ${signed(r.low!, formatValue)} to ${signed(r.high!, formatValue)}; ${VERDICT_WORDS[v]}`;\n };\n\n const positive = known.filter((r) => forestVerdict(r) === 'positive').length;\n const summary = ariaLabel ?? `${title}: ${rows.length} experiment${rows.length === 1 ? '' : 's'}, ${positive} with an interval above zero.`;\n\n function onKey(e: KeyboardEvent<HTMLDivElement>): void {\n if (rows.length === 0) return;\n const cur = active ?? 0;\n const next = e.key === 'ArrowDown' ? cur + 1 : e.key === 'ArrowUp' ? cur - 1 : e.key === 'Home' ? 0 : e.key === 'End' ? rows.length - 1 : null;\n if (next === null) return;\n e.preventDefault();\n setActive(Math.max(0, Math.min(rows.length - 1, next)));\n }\n\n const columns: TableColumn<ForestRow>[] = [\n { key: 'label', label: 'Experiment', render: (r) => r.label },\n { key: 'est', label: `Estimate${unitText}`, numeric: true, render: (r) => (r.estimate === null ? '—' : signed(r.estimate, formatValue)) },\n {\n key: 'ci',\n label: '95% interval',\n numeric: true,\n render: (r) => (r.low === null || r.high === null ? '—' : `${signed(r.low, formatValue)} to ${signed(r.high, formatValue)}`),\n },\n { key: 'n', label: 'Pairs', numeric: true, render: (r) => (r.n === null || r.n === undefined ? '—' : String(r.n)) },\n { key: 'verdict', label: 'Reading', render: (r) => (forestVerdict(r) === 'unknown' ? unknownText : VERDICT_WORDS[forestVerdict(r)]) },\n ...(rows.some((r) => r.detail) ? [{ key: 'detail', label: 'Status', render: (r: ForestRow) => r.detail ?? '' }] : []),\n ];\n\n const activeRow = active !== null ? rows[active] : undefined;\n const labelChars = Math.floor(labelW / 7);\n\n return (\n <ChartFrame\n title={title}\n description={description}\n caveat={caveat}\n status={resolvedStatus}\n table={<TableView caption={title} columns={columns} rows={rows} rowKey={(r) => r.id} />}\n footer={\n <ChartLegend\n min={1}\n items={[\n { label: 'Helped', color: CHART_DIVERGING_POS },\n { label: 'Hurt', color: CHART_DIVERGING_NEG },\n { label: 'No clear effect', color: 'var(--text-secondary)' },\n ...(rows.length > known.length ? [{ label: unknownText, kind: 'hatch' as const }] : []),\n ]}\n />\n }\n >\n <div\n ref={wrapRef}\n className={`${plot.plotWrap} ${plot.focusable}`}\n tabIndex={0}\n role=\"group\"\n aria-label={`${title}. Use the up and down arrow keys to read each experiment.`}\n aria-describedby={liveId}\n onFocus={() => setActive((a) => a ?? (rows.length ? 0 : null))}\n onBlur={() => setActive(null)}\n onKeyDown={onKey}\n >\n <svg className={plot.svg} width={width} height={svgH} viewBox={`0 0 ${width} ${svgH}`} role=\"img\" aria-label={summary}>\n <defs>\n <HatchPattern id={hatchId} />\n </defs>\n {ticks.map((t, i) => (\n <g key={t}>\n <line className={plot.grid} x1={xs(t)} x2={xs(t)} y1={0} y2={bodyH} />\n <text className={plot.tick} x={xs(t)} y={svgH - 6} textAnchor=\"middle\">\n {tickLabels[i]}\n </text>\n </g>\n ))}\n <line data-role=\"zero\" x1={xs(0)} x2={xs(0)} y1={0} y2={bodyH} stroke={CHART_DIVERGING_MID} strokeWidth={1.5} />\n {gate && gate.value !== 0 ? (\n <g data-role=\"gate\">\n <line className={plot.reference} x1={xs(gate.value)} x2={xs(gate.value)} y1={0} y2={bodyH} />\n </g>\n ) : null}\n {rows.map((r, i) => {\n const y = i * ROW_H + ROW_H / 2;\n const v = forestVerdict(r);\n const color = verdictColor(v);\n const isActive = active === i;\n return (\n <g key={r.id} data-row={r.id} data-verdict={v} opacity={active !== null && !isActive ? 0.55 : 1}>\n {i % 2 === 1 ? <rect className={styles.band} x={0} y={i * ROW_H} width={width} height={ROW_H} /> : null}\n <text className={plot.label} x={labelW} y={y} dy=\"0.32em\" textAnchor=\"end\">\n {r.label.length > labelChars ? `${r.label.slice(0, labelChars - 1)}…` : r.label}\n </text>\n {v === 'unknown' ? (\n <g data-role=\"unknown\">\n <rect\n className={plot.unknownMark}\n fill={`url(#${hatchId})`}\n x={plotX0 + 0.5}\n y={y - 5}\n width={Math.max(1, plotX1 - plotX0 - 1)}\n height={10}\n rx={2}\n />\n {!narrow ? (\n <text className={plot.tick} x={width - PAD_R} y={y} dy=\"0.32em\" textAnchor=\"end\">{unknownText}</text>\n ) : null}\n </g>\n ) : (\n <g>\n <line data-role=\"ci\" x1={xs(r.low!)} x2={xs(r.high!)} y1={y} y2={y} stroke={color} strokeWidth={2} strokeLinecap=\"round\" />\n <line x1={xs(r.low!)} x2={xs(r.low!)} y1={y - 5} y2={y + 5} stroke={color} strokeWidth={1.5} />\n <line x1={xs(r.high!)} x2={xs(r.high!)} y1={y - 5} y2={y + 5} stroke={color} strokeWidth={1.5} />\n <rect\n data-role=\"estimate\"\n className={plot.marker}\n x={xs(r.estimate!) - 5}\n y={y - 5}\n width={10}\n height={10}\n rx={2}\n fill={color}\n />\n {!narrow ? (\n <text className={plot.tick} x={width - PAD_R} y={y} dy=\"0.32em\" textAnchor=\"end\">\n {signed(r.estimate!, formatValue)} [{signed(r.low!, formatValue)}, {signed(r.high!, formatValue)}]\n </text>\n ) : null}\n </g>\n )}\n {isActive ? <rect className={styles.focusRing} x={1} y={i * ROW_H + 1} width={width - 2} height={ROW_H - 2} rx={3} /> : null}\n </g>\n );\n })}\n </svg>\n <span id={liveId} className={plot.srOnly} aria-live=\"polite\">\n {activeRow ? spoken(activeRow) : ''}\n </span>\n </div>\n </ChartFrame>\n );\n}\n","/**\n * components/charts/StepBand.tsx — a value that changes in discrete steps,\n * with an uncertainty band around each step and markers for events (V3.10,\n * SPEC-310C §5 Growth: \"Harness StepBand with CI band and ▼ rollbacks\").\n *\n * The harness does not drift continuously — a version is adopted, holds,\n * and is replaced or rolled back — so a smoothed line would lie about WHEN\n * things changed. Each step holds its value flat from its own time until the\n * next step (the last one holds to `now`); the band is that step's 95%\n * interval, drawn as a soft wash of the quantity ramp; an event marker (▼ for\n * a rollback, ▲ for an adoption) sits on the top edge at its time, danger for\n * rollbacks, and every marker is also a row in the table.\n *\n * Honesty: a step whose value is null (a version with no measured lift yet)\n * is a GAP in the line with the unknown hatch across its span — never a\n * carried-over value. The baseline reference (usually 0 = \"the compiled\n * defaults\") is a labelled dashed line.\n *\n * Keyboard: one tab stop; ←/→ (Home/End) walk the steps, each announced\n * with its interval and span.\n */\nimport { useId, useRef, useState, type KeyboardEvent } from 'react';\nimport { CHART_DIVERGING_NEG, CHART_SEQUENTIAL, CHART_SEQUENTIAL_SOFT, hatchPatternId } from './colors.js';\nimport { ChartFrame, type ChartStatus } from './ChartFrame.js';\nimport { ChartLegend, ChartTooltip, HatchPattern, clampTooltipLeft } from './ChartParts.js';\nimport { TableView, type TableColumn } from './TableView.js';\nimport { MIN_TIME_SPAN_MS, allIntegers, axisTicks, ensureSpan, isPlausibleTime, labelCharPx, layoutAxisLabels, linearScale, tickGutter } from './chart-math.js';\nimport { formatTimeLabel, timeLabelLadder } from './format.js';\nimport { useChartWidth } from './useChartWidth.js';\nimport { useTextScale } from './useTextScale.js';\nimport plot from './plot.module.css';\n\nexport interface StepPoint {\n id: string;\n /** Epoch ms the step took effect. */\n at: number;\n /** The level from `at` until the next step; null = not measured. */\n value: number | null;\n /** 95% interval for this step; null / absent = no band. */\n low?: number | null;\n high?: number | null;\n /** Short name (\"h-0007\"). */\n label: string;\n /** One qualifier for the table and tooltip (\"adopted\", \"canary\"). */\n detail?: string;\n}\n\nexport interface StepMarker {\n id: string;\n at: number;\n kind: 'rollback' | 'adopt';\n label: string;\n}\n\nexport interface StepBandProps {\n title: string;\n description?: string;\n caveat?: string;\n status?: ChartStatus;\n steps: StepPoint[];\n markers?: StepMarker[];\n /** Right edge of the last step (default: now). */\n now?: number;\n /** Left edge (default: the first step). */\n from?: number;\n baseline?: { value: number; label: string };\n /** Unit word (\"pts\"). */\n unit?: string;\n formatValue?: (v: number) => string;\n formatTime?: (ms: number) => string;\n height?: number;\n width?: number;\n ariaLabel?: string;\n}\n\nexport interface StepSpan extends StepPoint {\n /** Where this step's flat segment ends (the next step's `at`, or `now`). */\n until: number;\n}\n\n/** Sort steps by time and give each the span it holds for. Pure. */\nexport function stepSpans(steps: ReadonlyArray<StepPoint>, now: number): StepSpan[] {\n const sorted = [...steps].filter((s) => Number.isFinite(s.at)).sort((a, b) => a.at - b.at);\n return sorted.map((s, i) => ({ ...s, until: Math.max(s.at, i + 1 < sorted.length ? sorted[i + 1]!.at : now) }));\n}\n\nconst PAD_T = 18;\nconst PAD_B = 26;\nconst PAD_R = 14;\n/** With no plausible time at all, the window shown ends now and spans a day. */\nconst FALLBACK_SPAN_MS = 86_400_000;\nconst defaultFormatValue = (v: number): string => (Math.abs(v) >= 10 ? v.toFixed(0) : v.toFixed(1));\n\nfunction signed(v: number, fmt: (v: number) => string): string {\n return v > 0 ? `+${fmt(v)}` : fmt(v);\n}\n\nexport function StepBand({\n title,\n description,\n caveat,\n status,\n steps,\n markers: markersProp = [],\n now: nowProp,\n from: fromProp,\n baseline,\n unit = '',\n formatValue: formatValueProp,\n formatTime: formatTimeProp,\n height = 200,\n width: fixedWidth,\n ariaLabel,\n}: StepBandProps) {\n const formatValue = formatValueProp ?? defaultFormatValue;\n // A 0 / pre-2000 time is a null timestamp that leaked through (a baseline\n // \"created\" at epoch 0): it is spoken and tabled as \"—\", never \"Dec 31\".\n const formatTime = (ms: number): string => (isPlausibleTime(ms) ? (formatTimeProp ?? formatTimeLabel)(ms) : '—');\n const wrapRef = useRef<HTMLDivElement>(null);\n const width = useChartWidth(wrapRef, fixedWidth);\n const textScale = useTextScale();\n const [active, setActive] = useState<number | null>(null);\n const liveId = useId();\n const hatchId = hatchPatternId(useId());\n const unitText = unit ? ` ${unit}` : '';\n const now = nowProp ?? Date.now();\n const spans = stepSpans(steps, now);\n // A marker at an implausible time has nowhere honest to sit on the axis.\n const markers = markersProp.filter((m) => isPlausibleTime(m.at));\n const known = spans.filter((s) => s.value !== null);\n const resolvedStatus: ChartStatus = status ?? (spans.length === 0\n ? { kind: 'empty', message: 'No versions yet — the compiled defaults are in force.' }\n : known.length === 0 ? { kind: 'unknown', reason: 'no version has a measured value yet.' } : { kind: 'ready' });\n\n // The domain comes from plausible times only; a step stamped at epoch 0\n // still draws — held from the left edge — but no longer drags the axis to\n // 1970. A degenerate span widens to MIN_TIME_SPAN_MS, ending at `now`.\n const starts = [...spans.map((s) => s.at), ...markers.map((m) => m.at)].filter(isPlausibleTime);\n const right = Math.max(isPlausibleTime(now) ? now : 0, ...starts, ...spans.map((s) => s.until).filter(isPlausibleTime));\n const left = fromProp !== undefined && isPlausibleTime(fromProp) ? fromProp : starts.length ? Math.min(...starts) : right - FALLBACK_SPAN_MS;\n const [x0, x1] = ensureSpan(left, right, MIN_TIME_SPAN_MS, 'end');\n const ys0 = known.flatMap((s) => [s.value!, s.low ?? s.value!, s.high ?? s.value!]);\n const lo = Math.min(baseline?.value ?? 0, ...ys0);\n const hi = Math.max(baseline?.value ?? 0, ...ys0);\n const yAxis = axisTicks(lo, hi === lo ? lo + 1 : hi, {\n count: 4,\n integer: allIntegers([...ys0, baseline?.value ?? 0]),\n format: formatValueProp ? (t) => (t === 0 ? '0' : signed(t, formatValueProp)) : undefined,\n });\n const ticks = yAxis.ticks;\n // Kit labels take their precision from the step; a lift above zero wears \"+\".\n const tickLabels = formatValueProp ? yAxis.labels : yAxis.labels.map((l, i) => (ticks[i]! > 0 ? `+${l}` : l));\n const padL = tickGutter(tickLabels, 30, 56, textScale);\n const plotW = Math.max(40, width - padL - PAD_R);\n const plotH = height - PAD_T - PAD_B;\n const xs = linearScale(x0, x1, padL, padL + plotW);\n const ys = linearScale(ticks[0]!, ticks[ticks.length - 1]!, PAD_T + plotH, PAD_T);\n const cx = (t: number) => Math.min(padL + plotW, Math.max(padL, xs(t)));\n\n // Start / end labels, collision-free at the operator's Display size: the\n // end (now) outranks the start.\n const ladder = timeLabelLadder(x0, x1, formatTimeProp, [x0, x1]);\n const xLabels = layoutAxisLabels(\n [\n { key: 'start', x: padL, anchor: 'start', priority: 2, variants: ladder.map((f) => f(x0)) },\n { key: 'end', x: padL + plotW, anchor: 'end', priority: 3, variants: ladder.map((f) => f(x1)) },\n ],\n { min: padL, max: padL + plotW, charPx: labelCharPx(textScale) },\n );\n\n // One path per run of known steps; a null step breaks the line.\n const runs: string[] = [];\n let current: string[] = [];\n let prevY: number | null = null;\n for (const s of spans) {\n if (s.value === null) {\n if (current.length) runs.push(current.join(' '));\n current = [];\n prevY = null;\n continue;\n }\n const y = ys(s.value);\n const a = cx(s.at);\n const b = cx(s.until);\n current.push(prevY === null ? `M${a.toFixed(1)},${y.toFixed(1)}` : `L${a.toFixed(1)},${y.toFixed(1)}`);\n current.push(`L${b.toFixed(1)},${y.toFixed(1)}`);\n prevY = y;\n }\n if (current.length) runs.push(current.join(' '));\n\n const spoken = (s: StepSpan): string =>\n `${s.label}${s.detail ? ` (${s.detail})` : ''}, ${formatTime(s.at)} to ${formatTime(s.until)}: ` +\n (s.value === null\n ? 'not measured'\n : `${signed(s.value, formatValue)}${unitText}` +\n (s.low !== null && s.low !== undefined && s.high !== null && s.high !== undefined\n ? `, 95% interval ${signed(s.low, formatValue)} to ${signed(s.high, formatValue)}`\n : ''));\n\n const last = known[known.length - 1];\n const rollbacks = markers.filter((m) => m.kind === 'rollback').length;\n const summary = ariaLabel ?? `${title}: ${spans.length} step${spans.length === 1 ? '' : 's'}` +\n (last ? `, now ${signed(last.value!, formatValue)}${unitText}` : '') +\n (rollbacks ? `, ${rollbacks} rollback${rollbacks === 1 ? '' : 's'}` : '') + '.';\n\n function onKey(e: KeyboardEvent<HTMLDivElement>): void {\n if (spans.length === 0) return;\n const cur = active ?? spans.length - 1;\n const next = e.key === 'ArrowLeft' ? cur - 1 : e.key === 'ArrowRight' ? cur + 1 : e.key === 'Home' ? 0 : e.key === 'End' ? spans.length - 1 : null;\n if (next === null) return;\n e.preventDefault();\n setActive(Math.max(0, Math.min(spans.length - 1, next)));\n }\n\n interface Row { id: string; when: number; what: string; value: string; interval: string }\n const tableRows: Row[] = [\n ...spans.map((s) => ({\n id: `s:${s.id}`,\n when: s.at,\n what: `${s.label}${s.detail ? ` · ${s.detail}` : ''}`,\n value: s.value === null ? '—' : signed(s.value, formatValue),\n interval: s.low === null || s.low === undefined || s.high === null || s.high === undefined ? '—' : `${signed(s.low, formatValue)} to ${signed(s.high, formatValue)}`,\n })),\n ...markers.map((m) => ({ id: `m:${m.id}`, when: m.at, what: `${m.kind === 'rollback' ? '▼ Rolled back' : '▲ Adopted'}: ${m.label}`, value: '', interval: '' })),\n ].sort((a, b) => a.when - b.when);\n const columns: TableColumn<Row>[] = [\n { key: 'when', label: 'When', render: (r) => formatTime(r.when) },\n { key: 'what', label: 'Step', render: (r) => r.what },\n { key: 'value', label: `Level${unitText}`, numeric: true, render: (r) => r.value },\n { key: 'ci', label: '95% interval', numeric: true, render: (r) => r.interval },\n ];\n\n const activeSpan = active !== null ? spans[active] : undefined;\n\n return (\n <ChartFrame\n title={title}\n description={description}\n caveat={caveat}\n status={resolvedStatus}\n table={<TableView caption={title} columns={columns} rows={tableRows} rowKey={(r) => r.id} />}\n footer={\n <ChartLegend\n items={[\n { label: 'Level', color: CHART_SEQUENTIAL, kind: 'line' },\n { label: '95% interval', color: CHART_SEQUENTIAL_SOFT },\n ...(rollbacks ? [{ label: '▼ rollback', color: CHART_DIVERGING_NEG }] : []),\n ...(spans.some((s) => s.value === null) ? [{ label: 'not measured', kind: 'hatch' as const }] : []),\n ]}\n />\n }\n >\n <div\n ref={wrapRef}\n className={`${plot.plotWrap} ${plot.focusable}`}\n tabIndex={0}\n role=\"group\"\n aria-label={`${title}. Use the left and right arrow keys to read each step.`}\n aria-describedby={liveId}\n onFocus={() => setActive((a) => a ?? (spans.length ? spans.length - 1 : null))}\n onBlur={() => setActive(null)}\n onKeyDown={onKey}\n >\n <svg className={plot.svg} width={width} height={height} viewBox={`0 0 ${width} ${height}`} role=\"img\" aria-label={summary}>\n <defs>\n <HatchPattern id={hatchId} />\n </defs>\n {ticks.map((t, i) => (\n <g key={t}>\n <line className={plot.grid} x1={padL} x2={padL + plotW} y1={ys(t)} y2={ys(t)} />\n <text className={plot.tick} x={padL - 6} y={ys(t)} dy=\"0.32em\" textAnchor=\"end\">{tickLabels[i]}</text>\n </g>\n ))}\n {xLabels.map((l) => (\n <text key={l.key} data-axis-label={l.key} className={plot.tick} x={l.x} y={height - 8} textAnchor={l.anchor}>{l.text}</text>\n ))}\n {baseline ? (\n <g data-role=\"baseline\">\n <line className={plot.reference} x1={padL} x2={padL + plotW} y1={ys(baseline.value)} y2={ys(baseline.value)} />\n <text className={`${plot.tick} ${plot.halo}`} x={padL + 4} y={ys(baseline.value) - 5}>{baseline.label}</text>\n </g>\n ) : null}\n {spans.map((s, i) => {\n const a = cx(s.at);\n const b = Math.max(a + 1, cx(s.until));\n if (s.value === null) {\n return (\n <rect key={s.id} data-step={s.id} data-unknown=\"true\" className={plot.unknownMark} fill={`url(#${hatchId})`} x={a} y={PAD_T} width={b - a} height={plotH} opacity={0.6} />\n );\n }\n const hasBand = s.low !== null && s.low !== undefined && s.high !== null && s.high !== undefined;\n return (\n <g key={s.id} data-step={s.id} opacity={active !== null && active !== i ? 0.6 : 1}>\n {hasBand ? (\n <rect data-role=\"band\" x={a} y={ys(s.high!)} width={b - a} height={Math.max(1, ys(s.low!) - ys(s.high!))} fill={CHART_SEQUENTIAL_SOFT} opacity={0.35} />\n ) : null}\n </g>\n );\n })}\n {runs.map((d, i) => (\n <path key={i} data-role=\"level\" className={plot.line} stroke={CHART_SEQUENTIAL} d={d} />\n ))}\n {spans.map((s) =>\n s.value === null ? null : <circle key={`p${s.id}`} className={plot.marker} cx={cx(s.at)} cy={ys(s.value)} r={3.5} fill={CHART_SEQUENTIAL} />,\n )}\n {markers.map((m) => {\n const x = cx(m.at);\n const y = PAD_T - 2;\n const d = m.kind === 'rollback' ? `M${x - 5},${y - 8} L${x + 5},${y - 8} L${x},${y} Z` : `M${x - 5},${y} L${x + 5},${y} L${x},${y - 8} Z`;\n return (\n <path key={m.id} data-marker={m.kind} d={d} fill={m.kind === 'rollback' ? CHART_DIVERGING_NEG : CHART_SEQUENTIAL}>\n <title>{`${m.kind === 'rollback' ? 'Rolled back' : 'Adopted'}: ${m.label} · ${formatTime(m.at)}`}</title>\n </path>\n );\n })}\n </svg>\n <span id={liveId} className={plot.srOnly} aria-live=\"polite\">{activeSpan ? spoken(activeSpan) : ''}</span>\n {activeSpan ? (\n <ChartTooltip\n left={clampTooltipLeft((cx(activeSpan.at) + cx(activeSpan.until)) / 2, width)}\n top={activeSpan.value === null ? PAD_T + plotH / 2 : ys(activeSpan.high ?? activeSpan.value)}\n title={`${activeSpan.label}${activeSpan.detail ? ` · ${activeSpan.detail}` : ''}`}\n rows={[\n { key: 'v', label: 'Level', value: activeSpan.value === null ? null : `${signed(activeSpan.value, formatValue)}${unitText}` },\n {\n key: 'ci',\n label: '95% interval',\n value: activeSpan.low === null || activeSpan.low === undefined || activeSpan.high === null || activeSpan.high === undefined\n ? null\n : `${signed(activeSpan.low, formatValue)} to ${signed(activeSpan.high, formatValue)}`,\n },\n { key: 't', label: 'From', value: formatTime(activeSpan.at) },\n ]}\n />\n ) : null}\n </div>\n </ChartFrame>\n );\n}\n"],"mappings":"wZA8CM,EAAW,EACX,EAAW,GACX,EAAM,EACN,EAAc,GACd,EAAU,GACV,EAAQ,EACR,EAAe,CAAC,MAAO,GAAI,MAAO,GAAI,MAAO,GAAI,EAAE,EACnD,EAAe,CAAC,GAAI,MAAO,GAAI,MAAO,GAAI,MAAO,EAAE,EAEzD,SAAgB,EAAgB,CAC9B,QACA,cACA,SACA,SACA,OACA,YAAY,EACZ,MAAO,GACP,cAAc,GACd,OAAO,GACP,cACuB,CACvB,IAAM,IAAA,EAAU,EAAA,OAAA,CAAuB,IAAI,EACrC,GAAQ,GAAc,GAAS,EAAU,EACzC,IAAA,EAAS,EAAA,MAAA,CAAM,EACf,EAAU,IAAA,EAAe,EAAA,MAAA,CAAM,CAAC,EAChC,GAAA,EAAO,EAAA,QAAA,KAAc,EAAa,EAAM,CAAS,EAAG,CAAC,EAAM,CAAS,CAAC,EACrE,CAAC,EAAO,IAAA,EAAY,EAAA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AA,EACC,IACD,GACK,CAAA,CAEhB"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,n}from"./index-QesfXBsb.js";import{D as r,S as i,T as a,_ as o,a as s,c,d as l,i as u,l as d,n as f,o as p,r as m,s as h,t as g,u as ee,w as te}from"./ChartFrame-SygZ7B3x.js";import{p as ne,s as re,v as _}from"./colors-BZ3a9wFf.js";var v={sparkline:`_sparkline_kr10w_1`,line:`_line_kr10w_6`,dot:`_dot_kr10w_14`,area:`_area_kr10w_18`,flat:`_flat_kr10w_25`},y=n();function b(e,t){let n=e.filter(e=>e!==null&&Number.isFinite(e));if(n.length===0)return`no data`;let r=n[0],i=n[n.length-1],a=e.length-n.length;return`from ${t(r)} to ${t(i)}, range ${t(Math.min(...n))} to ${t(Math.max(...n))}`+(a>0?`, ${a} point${a===1?``:`s`} without data`:``)}function x({points:e,width:t=72,height:n=24,ariaLabel:r,area:i=!1,describe:a}){let o=a?`${r}: ${b(e,a)}`:r,s=e.filter(e=>e!==null);if(s.length<2)return(0,y.jsx)(`svg`,{className:v.sparkline,width:t,height:n,viewBox:`0 0 ${t} ${n}`,role:`img`,"aria-label":o,children:(0,y.jsx)(`line`,{className:v.flat,x1:1,x2:t-1,y1:n-1.5,y2:n-1.5})});let c=Math.min(...s,0),l=Math.max(...s,0)-c||1,u=t/Math.max(1,e.length-1),d=e=>n-(e-c)/l*(n-2)-1,f=[],p=[];e.forEach((e,t)=>{if(e===null){p.length&&f.push(p),p=[];return}p.push({x:t*u,y:d(e)})}),p.length&&f.push(p);let m=e.map(e=>e!==null).lastIndexOf(!0),h=m>=0?{x:m*u,y:d(e[m])}:null,g=d(Math.max(c,0));return(0,y.jsxs)(`svg`,{className:v.sparkline,width:t,height:n,viewBox:`0 0 ${t} ${n}`,role:`img`,"aria-label":o,children:[i?f.map((e,t)=>e.length>1?(0,y.jsx)(`path`,{className:v.area,d:`${e.map((e,t)=>`${t===0?`M`:`L`}${e.x.toFixed(1)},${e.y.toFixed(1)}`).join(` `)} L${e[e.length-1].x.toFixed(1)},${g.toFixed(1)} L${e[0].x.toFixed(1)},${g.toFixed(1)} Z`},`a${t}`):null):null,f.map((e,t)=>(0,y.jsx)(`path`,{className:v.line,d:e.map((e,t)=>`${t===0?`M`:`L`}${e.x.toFixed(1)},${e.y.toFixed(1)}`).join(` `)},t)),h?(0,y.jsx)(`circle`,{className:v.dot,cx:h.x,cy:h.y,r:2}):null]})}var S=t(e(),1),C={scroller:`_scroller_1b51y_1`,band:`_band_1b51y_7`,bar:`_bar_1b51y_12`,stale:`_stale_1b51y_18`,open:`_open_1b51y_22`,now:`_now_1b51y_27`,laneStops:`_laneStops_1b51y_33`,laneStop:`_laneStop_1b51y_33`,outline:`_outline_1b51y_51`},w=new Set([`queued`,`parked`,`waiting`]);function T(e){return e.outline??w.has(e.status.toLowerCase())}var ie=14,ae=6,E=22,D=3,O={done:`success`,success:`success`,merged:`success`,failed:`danger`,error:`danger`,aborted:`neutral`,cancelled:`neutral`,running:`running`,queued:`neutral`,parked:`neutral`};function oe(e){return O[e.toLowerCase()]??`unknown`}function se(e){let t=new Date(e);return Number.isNaN(t.getTime())?``:t.toLocaleString(`en-US`,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}function ce(e,t){let n=t-e>1296e5;return e=>{let t=new Date(e);return Number.isNaN(t.getTime())?``:n?t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`}):t.toLocaleTimeString(`en-US`,{hour:`numeric`,minute:`2-digit`})}}function le(e,t){return e.length>t?`${e.slice(0,Math.max(1,t-1))}…`:e}function k(e){if(!Number.isFinite(e)||e<0)return`—`;let t=Math.round(e/6e4);if(t<1)return`<1m`;if(t<60)return`${t}m`;let n=Math.floor(t/60);return n<48?`${n}h ${t%60}m`:`${Math.round(n/24)}d`}function ue({title:e,description:t,caveat:n,status:v,lanes:b,from:x,to:w,now:O,width:ue,toneOf:A=oe,formatTime:j=se,formatTick:de,ariaLabel:fe}){let M=b.flatMap(e=>e.items.flatMap(e=>[e.start,e.end??NaN])).filter(i),pe=i(w)?w:O!==void 0&&i(O)?O:M.length?Math.max(...M):Date.now(),me=i(x)?x:M.length?Math.min(...M):pe-864e5,[N,P]=o(me,pe,l,`end`),he=de??ce(N,P),F=(0,S.useRef)(null),I=ee(F,ue),L=d(),[R,ge]=(0,S.useState)(0),[z,B]=(0,S.useState)(null),V=(0,S.useId)(),H=ne((0,S.useId)()),U=O??P,W=b.reduce((e,t)=>e+t.items.length,0),_e=v??(W===0?{kind:`empty`,message:`No runs in this window.`}:{kind:`ready`}),ve=b.some(e=>e.engine!==void 0)?18:0,G=Math.max(72,Math.min(160,Math.round(I*.24)))+ve,ye=Math.floor((G-ve)/(7*L)),K=Math.max(40,I-G-8),q=r(N,Math.max(P,N+1),G,G+K),J=b.length>50,Y=J?Math.max(0,Math.floor(R/24)-ae):0,X=J?Math.min(b.length,Math.ceil(R/24)+ie+ae):b.length,Z=b.length*24,be=(0,S.useMemo)(()=>{let e=new Map;for(let t of b)for(let n of t.items){let t=A(n.status),r=T(n)?`outline`:t===`unknown`?`hatch`:t,i=r===`outline`?{kind:`empty`}:r===`hatch`?{kind:`hatch`}:{color:_(t)};e.has(r)||e.set(r,{item:i,names:new Set}),e.get(r).names.add(n.status.toLowerCase())}return[...e.values()].map(({item:e,names:t})=>({...e,label:[...t].sort().join(` / `)}))},[b,A]),xe=b.some(e=>e.engine!==void 0),Q=(0,S.useMemo)(()=>{let e=Math.max(2,Math.floor(K/90)),t=(P-N)/Math.max(1,e);return Array.from({length:e+1},(e,n)=>N+t*n)},[N,P,K]),Se=(0,S.useMemo)(()=>b.flatMap(e=>e.items.map(t=>({...t,lane:e.label,engine:e.engine}))),[b]);function Ce(e){let t=new Map;for(let n of e.items)t.set(n.status,(t.get(n.status)??0)+1);let n=[...t.entries()].sort((e,t)=>t[1]-e[1]).map(([e,t])=>`${t} ${e}`),r=e.engine?` (${e.engine})`:``;return`${e.label}${r}: ${e.items.length} run${e.items.length===1?``:`s`}${n.length?` (${n.join(`, `)})`:``}`}let we=fe??`${e}: ${W} runs across ${b.length} lanes from ${j(N)} to ${j(P)}.`,Te=[{key:`lane`,label:`Lane`,render:e=>e.lane},...xe?[{key:`engine`,label:`Engine`,render:e=>e.engine??`—`}]:[],{key:`status`,label:`Status`,render:e=>`${e.status}${e.stale?` (stale)`:``}`},{key:`start`,label:`Started`,render:e=>j(e.start)},{key:`dur`,label:`Duration`,numeric:!0,render:e=>e.end===null?`${k(U-e.start)}+`:k(e.end-e.start)},{key:`detail`,label:`Detail`,render:e=>e.detail??``}],$=z?b[z.lane]?.items[z.item]:void 0;function Ee(e,t){let n=t*24;return(0,y.jsxs)(`g`,{"data-lane":e.id,children:[t%2==1?(0,y.jsx)(`rect`,{className:C.band,x:0,y:n,width:I,height:24}):null,e.engine?(0,y.jsx)(u,{engine:e.engine,x:2,y:n+5,height:14}):null,(0,y.jsx)(`text`,{className:h.label,x:G-8,y:n+12,dy:`0.32em`,textAnchor:`end`,children:le(e.label,ye)}),e.items.map((e,r)=>{let i=Math.max(N,e.start),a=Math.min(P,e.end??U);if(a<N||i>P)return null;let o=q(i),s=Math.max(D,q(Math.max(a,i))-o),c=A(e.status),l=T(e),u=!l&&c===`unknown`;return(0,y.jsx)(`rect`,{"data-item":e.id,"data-status":e.status,"data-open":e.end===null?`true`:void 0,"data-style":l?`outline`:u?`hatch`:`fill`,className:`${C.bar} ${e.stale?C.stale:``} ${e.end===null?C.open:``} ${l?C.outline:``} ${u?h.unknownMark:``}`,x:l?o+.5:o,y:l?n+5.5:n+5,width:l?Math.max(D,s-1):s,height:l?13:14,rx:3,fill:l?`none`:u?`url(#${H})`:_(c),stroke:l?re:void 0,onPointerEnter:()=>B({lane:t,item:r}),onPointerLeave:()=>B(e=>e&&e.lane===t&&e.item===r?null:e)},e.id)})]},e.id)}let De=a(Q.map((e,t)=>({key:String(t),x:q(e),anchor:t===0?`start`:t===Q.length-1?`end`:`middle`,priority:t===Q.length-1?3:t===0?2:1,required:t===0||t===Q.length-1,variants:[he(e)]})),{min:G,max:G+K,charPx:te(L)}),Oe=(0,y.jsxs)(`svg`,{className:h.svg,width:I,height:E,viewBox:`0 0 ${I} ${E}`,"aria-hidden":`true`,children:[(0,y.jsx)(`line`,{className:h.axis,x1:G,x2:G+K,y1:21,y2:21}),De.map(e=>(0,y.jsx)(`text`,{"data-axis-label":e.key,className:h.tick,x:e.x,y:15,textAnchor:e.anchor,children:e.text},e.key))]});return(0,y.jsx)(g,{title:e,description:t,caveat:n,status:_e,table:(0,y.jsx)(c,{caption:e,columns:Te,rows:Se,rowKey:e=>e.id}),footer:(0,y.jsx)(f,{min:1,items:be}),children:(0,y.jsxs)(`div`,{ref:F,className:h.plotWrap,children:[Oe,(0,y.jsxs)(`div`,{className:J?C.scroller:void 0,style:J?{height:336}:void 0,onScroll:J?e=>ge(e.currentTarget.scrollTop):void 0,"data-virtualized":J?`true`:void 0,children:[(0,y.jsxs)(`svg`,{className:h.svg,width:I,height:Z,viewBox:`0 0 ${I} ${Z}`,role:`img`,"aria-label":we,children:[(0,y.jsx)(`defs`,{children:(0,y.jsx)(s,{id:H})}),Q.map(e=>(0,y.jsx)(`line`,{className:h.grid,x1:q(e),x2:q(e),y1:0,y2:Z},e)),U>=N&&U<=P?(0,y.jsx)(`line`,{className:C.now,x1:q(U),x2:q(U),y1:0,y2:Z}):null,b.slice(Y,X).map((e,t)=>Ee(e,Y+t))]}),(0,y.jsx)(`ul`,{className:C.laneStops,style:{height:Z},"aria-label":`${e} lanes`,"aria-describedby":V,children:b.slice(Y,X).map((e,t)=>(0,y.jsx)(`li`,{tabIndex:0,className:`${C.laneStop} ${h.focusable}`,style:{top:(Y+t)*24,height:24},"aria-label":Ce(e),onFocus:()=>B(e.items.length?{lane:Y+t,item:e.items.length-1}:null),onBlur:()=>B(null)},e.id))})]}),(0,y.jsx)(`span`,{id:V,className:h.srOnly,children:`Each lane lists its runs by status; open the Table view for every run.`}),z&&$?(0,y.jsx)(m,{left:p(q(Math.max(N,$.start)),I),top:E+z.lane*24-(J?R:0),title:b[z.lane].label,rows:[{key:`s`,label:`Status`,value:`${$.status}${$.stale?` (stale)`:``}`,...T($)||A($.status)===`unknown`?{}:{color:_(A($.status))}},{key:`t`,label:`Started`,value:j($.start)},{key:`d`,label:`Duration`,value:$.end===null?`${k(U-$.start)} so far`:k($.end-$.start)},...$.detail?[{key:`x`,label:`Detail`,value:$.detail}]:[]]}):null]})})}export{x as n,ue as t};
|
|
2
|
-
//# sourceMappingURL=Swimlane-BzH6OCee.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Swimlane-BzH6OCee.js","names":[],"sources":["../../../../../../src/web-ui/components/charts/Sparkline.module.css","../../../../../../src/web-ui/components/charts/Sparkline.tsx","../../../../../../src/web-ui/components/charts/Swimlane.module.css","../../../../../../src/web-ui/components/charts/Swimlane.tsx"],"sourcesContent":[".sparkline {\n display: block;\n overflow: visible;\n}\n\n.line {\n fill: none;\n stroke: var(--text-tertiary);\n stroke-width: 1.5;\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n\n.dot {\n fill: var(--chart-sequential);\n}\n\n.area {\n fill: var(--chart-sequential);\n opacity: 0.1;\n stroke: none;\n}\n\n/* Fewer than two known points: a quiet dashed baseline, not an empty box. */\n.flat {\n stroke: var(--chart-grid);\n stroke-width: 1;\n stroke-dasharray: 2 2;\n}\n","/**\n * components/charts/Sparkline.tsx — the 12-ish-point inline trend for a\n * stat tile (marks-and-anatomy.md \"Figures\" stat-tile contract). No axes,\n * no legend, no tooltip — it is a glance, not a chart; the real numbers\n * live in the stat tile's value and in the full chart elsewhere on the\n * view. Gaps (`null`) break the line rather than reading as a dip to zero.\n *\n * V3.10: optional `area` wash, an optional `describe` formatter that appends a\n * spoken summary (first → latest, min–max) to the aria-label so the glance is\n * not image-only for a screen reader, and a designed flat/unknown state (a\n * dashed baseline) instead of an empty box when fewer than two points are known.\n */\nimport './chart-tokens.css';\nimport styles from './Sparkline.module.css';\n\nexport function sparklineSummary(points: (number | null)[], format: (v: number) => string): string {\n const known = points.filter((p): p is number => p !== null && Number.isFinite(p));\n if (known.length === 0) return 'no data';\n const first = known[0]!;\n const latest = known[known.length - 1]!;\n const gaps = points.length - known.length;\n return `from ${format(first)} to ${format(latest)}, range ${format(Math.min(...known))} to ${format(Math.max(...known))}` +\n (gaps > 0 ? `, ${gaps} point${gaps === 1 ? '' : 's'} without data` : '');\n}\n\nexport function Sparkline({\n points,\n width = 72,\n height = 24,\n ariaLabel,\n area = false,\n describe,\n}: {\n points: (number | null)[];\n width?: number;\n height?: number;\n ariaLabel: string;\n /** Soft 10% wash under the line. */\n area?: boolean;\n /** When given, a spoken summary is appended to `ariaLabel`. */\n describe?: (v: number) => string;\n}) {\n const label = describe ? `${ariaLabel}: ${sparklineSummary(points, describe)}` : ariaLabel;\n const known = points.filter((p): p is number => p !== null);\n if (known.length < 2) {\n return (\n <svg className={styles.sparkline} width={width} height={height} viewBox={`0 0 ${width} ${height}`} role=\"img\" aria-label={label}>\n <line className={styles.flat} x1={1} x2={width - 1} y1={height - 1.5} y2={height - 1.5} />\n </svg>\n );\n }\n const min = Math.min(...known, 0);\n const max = Math.max(...known, 0);\n const range = max - min || 1;\n const stepX = width / Math.max(1, points.length - 1);\n const yOf = (v: number) => height - ((v - min) / range) * (height - 2) - 1;\n\n // Split into contiguous runs so a null renders as a real gap, not a dip.\n const runs: { x: number; y: number }[][] = [];\n let current: { x: number; y: number }[] = [];\n points.forEach((v, i) => {\n if (v === null) {\n if (current.length) runs.push(current);\n current = [];\n return;\n }\n current.push({ x: i * stepX, y: yOf(v) });\n });\n if (current.length) runs.push(current);\n\n const lastKnownIndex = points.map((v) => v !== null).lastIndexOf(true);\n const lastPoint =\n lastKnownIndex >= 0 ? { x: lastKnownIndex * stepX, y: yOf(points[lastKnownIndex] as number) } : null;\n const baseY = yOf(Math.max(min, 0));\n\n return (\n <svg className={styles.sparkline} width={width} height={height} viewBox={`0 0 ${width} ${height}`} role=\"img\" aria-label={label}>\n {area\n ? runs.map((run, i) =>\n run.length > 1 ? (\n <path\n key={`a${i}`}\n className={styles.area}\n d={`${run.map((p, j) => `${j === 0 ? 'M' : 'L'}${p.x.toFixed(1)},${p.y.toFixed(1)}`).join(' ')} L${run[run.length - 1]!.x.toFixed(1)},${baseY.toFixed(1)} L${run[0]!.x.toFixed(1)},${baseY.toFixed(1)} Z`}\n />\n ) : null,\n )\n : null}\n {runs.map((run, i) => (\n <path\n key={i}\n className={styles.line}\n d={run.map((p, j) => `${j === 0 ? 'M' : 'L'}${p.x.toFixed(1)},${p.y.toFixed(1)}`).join(' ')}\n />\n ))}\n {lastPoint ? <circle className={styles.dot} cx={lastPoint.x} cy={lastPoint.y} r={2} /> : null}\n </svg>\n );\n}\n",".scroller {\n position: relative;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n.band {\n fill: var(--chart-grid);\n opacity: 0.35;\n}\n\n.bar {\n cursor: default;\n}\n\n/* Running on disk but silent for a long time: faded, and said in words in\n the tooltip and table — the fade is never the only signal. */\n.stale {\n opacity: 0.4;\n}\n\n.open {\n /* Square corners on open-ended work: a rounded end reads as \"finished\". */\n rx: 0;\n}\n\n.now {\n stroke: var(--text-tertiary);\n stroke-width: 1;\n stroke-dasharray: 2 3;\n}\n\n.laneStops {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n pointer-events: none;\n}\n\n.laneStop {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n/* Queued / parked: a neutral outline, no fill — holding a place, not running. */\n.outline {\n stroke-width: 1.5;\n}\n","/**\n * components/charts/Swimlane.tsx — who ran what, when: one row (lane) per repo\n * or agent, one bar per run from its start to its end, coloured by STATUS\n * (the StatusBadge tones — state, not identity — always with a text legend).\n *\n * Open-ended work: a bar with `end: null` extends to `now` and gets an open\n * right edge; a `stale` one (running on disk, silent for a long time) is drawn\n * faded and says so in its tooltip and the table.\n *\n * V3.10: a lane may carry its ENGINE — drawn as the 2px identity tick and\n * the C/X/G/L monogram beside the label (never a vendor logo, and never the\n * bar fill: bars keep STATUS colour). Queued and parked work draws as a\n * neutral OUTLINE with no fill (\"not running yet\" must not look like a\n * status), and an unknown status draws as the 45° unknown hatch.\n *\n * Scale: past VIRTUALIZE_AFTER lanes the body becomes a fixed-height scroller\n * that renders only the rows in view (plus overscan), so a 500-lane history\n * costs the same DOM as a 20-lane one. Each lane is a keyboard stop with a\n * spoken summary; every run is in the Table view.\n */\nimport { useId, useMemo, useRef, useState, type UIEvent } from 'react';\nimport { CHART_QUEUED_OUTLINE, hatchPatternId, toneColor, type ChartEngine, type ChartTone } from './colors.js';\nimport { ChartFrame, type ChartStatus } from './ChartFrame.js';\nimport { ChartLegend, ChartTooltip, EngineTick, HatchPattern, clampTooltipLeft, type ChartLegendItem } from './ChartParts.js';\nimport { TableView, type TableColumn } from './TableView.js';\nimport { MIN_TIME_SPAN_MS, ensureSpan, isPlausibleTime, labelCharPx, layoutAxisLabels, linearScale } from './chart-math.js';\nimport { useChartWidth } from './useChartWidth.js';\nimport { useTextScale } from './useTextScale.js';\nimport plot from './plot.module.css';\nimport styles from './Swimlane.module.css';\n\nexport interface SwimlaneItem {\n id: string;\n /** Epoch ms. */\n start: number;\n /** Epoch ms; null while still running. */\n end: number | null;\n /** Free-form status string (done / failed / aborted / running …). */\n status: string;\n /** Optional short text for tooltip and table (e.g. the engine). */\n detail?: string;\n stale?: boolean;\n /**\n * Draw as an outline with no fill — queued / parked work that holds a place\n * in line but is not running. Defaults to true for the statuses in\n * OUTLINE_STATUSES.\n */\n outline?: boolean;\n}\n\nexport interface SwimlaneLane {\n id: string;\n label: string;\n items: SwimlaneItem[];\n /** The lane's engine: a 2px identity tick + monogram beside the label. */\n engine?: ChartEngine;\n}\n\n/** Statuses that draw as an outline by default (they hold a place; nothing runs). */\nexport const OUTLINE_STATUSES: ReadonlySet<string> = new Set(['queued', 'parked', 'waiting']);\n\nfunction isOutline(item: SwimlaneItem): boolean {\n return item.outline ?? OUTLINE_STATUSES.has(item.status.toLowerCase());\n}\n\nexport interface SwimlaneProps {\n title: string;\n description?: string;\n caveat?: string;\n status?: ChartStatus;\n lanes: SwimlaneLane[];\n /** Visible time window, epoch ms. */\n from: number;\n to: number;\n /** \"Now\" for open-ended bars (defaults to `to`). */\n now?: number;\n width?: number;\n /** Map a status string to a tone. Defaults to the StatusBadge vocabulary subset below. */\n toneOf?: (status: string) => ChartTone;\n /** Full timestamp for tooltip and table. */\n formatTime?: (ms: number) => string;\n /** Axis tick label. Defaults to a span-aware short form (dates past 36 h, clock times below). */\n formatTick?: (ms: number) => string;\n ariaLabel?: string;\n}\n\nexport const ROW_H = 24;\nexport const VIRTUALIZE_AFTER = 50;\nconst VIEWPORT_ROWS = 14;\nconst OVERSCAN = 6;\nconst AXIS_H = 22;\nconst MIN_BAR_W = 3;\n\nconst DEFAULT_TONES: Record<string, ChartTone> = {\n done: 'success',\n success: 'success',\n merged: 'success',\n failed: 'danger',\n error: 'danger',\n aborted: 'neutral',\n cancelled: 'neutral',\n running: 'running',\n queued: 'neutral',\n parked: 'neutral',\n};\n\nfunction defaultToneOf(status: string): ChartTone {\n return DEFAULT_TONES[status.toLowerCase()] ?? 'unknown';\n}\n\nfunction defaultFormatTime(ms: number): string {\n const d = new Date(ms);\n return Number.isNaN(d.getTime())\n ? ''\n : d.toLocaleString('en-US', { month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' });\n}\n\n/** Short axis labels: long windows get dates, short ones get clock times — full timestamps collide. */\nexport function spanTickFormatter(from: number, to: number): (ms: number) => string {\n const long = to - from > 36 * 3_600_000;\n return (ms) => {\n const d = new Date(ms);\n if (Number.isNaN(d.getTime())) return '';\n return long\n ? d.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })\n : d.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit' });\n };\n}\n\nfunction truncateLabel(label: string, chars: number): string {\n return label.length > chars ? `${label.slice(0, Math.max(1, chars - 1))}…` : label;\n}\n\nfunction formatDuration(ms: number): string {\n if (!Number.isFinite(ms) || ms < 0) return '—';\n const m = Math.round(ms / 60_000);\n if (m < 1) return '<1m';\n if (m < 60) return `${m}m`;\n const h = Math.floor(m / 60);\n return h < 48 ? `${h}h ${m % 60}m` : `${Math.round(h / 24)}d`;\n}\n\ninterface FlatItem extends SwimlaneItem {\n lane: string;\n engine: ChartEngine | undefined;\n}\n\nexport function Swimlane({\n title,\n description,\n caveat,\n status,\n lanes,\n from: fromProp,\n to: toProp,\n now,\n width: fixedWidth,\n toneOf = defaultToneOf,\n formatTime = defaultFormatTime,\n formatTick,\n ariaLabel,\n}: SwimlaneProps) {\n // A window bound of 0 / NaN / pre-2000 is a null timestamp that leaked\n // through; fall back to the runs themselves (then to a day ending now), and\n // widen a degenerate window so its ticks are distinct times.\n const itemTimes = lanes.flatMap((l) => l.items.flatMap((i) => [i.start, i.end ?? Number.NaN])).filter(isPlausibleTime);\n const toBound = isPlausibleTime(toProp)\n ? toProp\n : now !== undefined && isPlausibleTime(now) ? now : itemTimes.length ? Math.max(...itemTimes) : Date.now();\n const fromBound = isPlausibleTime(fromProp) ? fromProp : itemTimes.length ? Math.min(...itemTimes) : toBound - 86_400_000;\n const [from, to] = ensureSpan(fromBound, toBound, MIN_TIME_SPAN_MS, 'end');\n const tickLabel = formatTick ?? spanTickFormatter(from, to);\n const wrapRef = useRef<HTMLDivElement>(null);\n const width = useChartWidth(wrapRef, fixedWidth);\n const textScale = useTextScale();\n const [scrollTop, setScrollTop] = useState(0);\n const [hover, setHover] = useState<{ lane: number; item: number } | null>(null);\n const liveId = useId();\n const hatchId = hatchPatternId(useId());\n const nowMs = now ?? to;\n\n const itemCount = lanes.reduce((n, l) => n + l.items.length, 0);\n const resolvedStatus: ChartStatus = status ?? (itemCount === 0 ? { kind: 'empty', message: 'No runs in this window.' } : { kind: 'ready' });\n\n // Narrow screens give the labels less room, never less than a readable 72 px\n // (plus room for the engine tick and monogram when lanes carry one).\n const tickW = lanes.some((l) => l.engine !== undefined) ? 18 : 0;\n const labelW = Math.max(72, Math.min(160, Math.round(width * 0.24))) + tickW;\n // 7 px a character at 12 px text, scaled to the Display size.\n const labelChars = Math.floor((labelW - tickW) / (7 * textScale));\n const plotW = Math.max(40, width - labelW - 8);\n const xs = linearScale(from, Math.max(to, from + 1), labelW, labelW + plotW);\n const virtual = lanes.length > VIRTUALIZE_AFTER;\n const first = virtual ? Math.max(0, Math.floor(scrollTop / ROW_H) - OVERSCAN) : 0;\n const last = virtual ? Math.min(lanes.length, Math.ceil(scrollTop / ROW_H) + VIEWPORT_ROWS + OVERSCAN) : lanes.length;\n const bodyH = lanes.length * ROW_H;\n\n // Legend: one entry per drawn style — a status tone, the outline (queued /\n // parked) or the unknown hatch — each named by the statuses it stands for.\n const legendItems = useMemo((): ChartLegendItem[] => {\n const seen = new Map<string, { item: Omit<ChartLegendItem, 'label'>; names: Set<string> }>();\n for (const lane of lanes) for (const item of lane.items) {\n const tone = toneOf(item.status);\n const key = isOutline(item) ? 'outline' : tone === 'unknown' ? 'hatch' : tone;\n const style: Omit<ChartLegendItem, 'label'> = key === 'outline' ? { kind: 'empty' } : key === 'hatch' ? { kind: 'hatch' } : { color: toneColor(tone) };\n if (!seen.has(key)) seen.set(key, { item: style, names: new Set() });\n seen.get(key)!.names.add(item.status.toLowerCase());\n }\n return [...seen.values()].map(({ item, names }) => ({ ...item, label: [...names].sort().join(' / ') }));\n }, [lanes, toneOf]);\n const anyEngine = lanes.some((l) => l.engine !== undefined);\n\n const ticks = useMemo(() => {\n const count = Math.max(2, Math.floor(plotW / 90));\n const step = (to - from) / Math.max(1, count);\n return Array.from({ length: count + 1 }, (_, i) => from + step * i);\n }, [from, to, plotW]);\n\n const flat: FlatItem[] = useMemo(\n () => lanes.flatMap((lane) => lane.items.map((item) => ({ ...item, lane: lane.label, engine: lane.engine }))),\n [lanes],\n );\n\n function laneSummary(lane: SwimlaneLane): string {\n const counts = new Map<string, number>();\n for (const item of lane.items) counts.set(item.status, (counts.get(item.status) ?? 0) + 1);\n const parts = [...counts.entries()].sort((a, b) => b[1] - a[1]).map(([s, n]) => `${n} ${s}`);\n const engine = lane.engine ? ` (${lane.engine})` : '';\n return `${lane.label}${engine}: ${lane.items.length} run${lane.items.length === 1 ? '' : 's'}${parts.length ? ` (${parts.join(', ')})` : ''}`;\n }\n\n const summary = ariaLabel ?? `${title}: ${itemCount} runs across ${lanes.length} lanes from ${formatTime(from)} to ${formatTime(to)}.`;\n\n const columns: TableColumn<FlatItem>[] = [\n { key: 'lane', label: 'Lane', render: (r) => r.lane },\n ...(anyEngine ? [{ key: 'engine', label: 'Engine', render: (r: FlatItem) => r.engine ?? '—' }] : []),\n { key: 'status', label: 'Status', render: (r) => `${r.status}${r.stale ? ' (stale)' : ''}` },\n { key: 'start', label: 'Started', render: (r) => formatTime(r.start) },\n { key: 'dur', label: 'Duration', numeric: true, render: (r) => (r.end === null ? `${formatDuration(nowMs - r.start)}+` : formatDuration(r.end - r.start)) },\n { key: 'detail', label: 'Detail', render: (r) => r.detail ?? '' },\n ];\n\n const hovered = hover ? lanes[hover.lane]?.items[hover.item] : undefined;\n\n function renderLane(lane: SwimlaneLane, index: number) {\n const y = index * ROW_H;\n return (\n <g key={lane.id} data-lane={lane.id}>\n {index % 2 === 1 ? <rect className={styles.band} x={0} y={y} width={width} height={ROW_H} /> : null}\n {lane.engine ? <EngineTick engine={lane.engine} x={2} y={y + 5} height={ROW_H - 10} /> : null}\n <text className={plot.label} x={labelW - 8} y={y + ROW_H / 2} dy=\"0.32em\" textAnchor=\"end\">\n {truncateLabel(lane.label, labelChars)}\n </text>\n {lane.items.map((item, itemIndex) => {\n const start = Math.max(from, item.start);\n const endMs = Math.min(to, item.end ?? nowMs);\n if (endMs < from || start > to) return null;\n const x0 = xs(start);\n const w = Math.max(MIN_BAR_W, xs(Math.max(endMs, start)) - x0);\n const tone = toneOf(item.status);\n const outline = isOutline(item);\n const unknown = !outline && tone === 'unknown';\n return (\n <rect\n key={item.id}\n data-item={item.id}\n data-status={item.status}\n data-open={item.end === null ? 'true' : undefined}\n data-style={outline ? 'outline' : unknown ? 'hatch' : 'fill'}\n className={`${styles.bar} ${item.stale ? styles.stale : ''} ${item.end === null ? styles.open : ''} ${outline ? styles.outline : ''} ${unknown ? plot.unknownMark : ''}`}\n x={outline ? x0 + 0.5 : x0}\n y={outline ? y + 5.5 : y + 5}\n width={outline ? Math.max(MIN_BAR_W, w - 1) : w}\n height={outline ? ROW_H - 11 : ROW_H - 10}\n rx={3}\n fill={outline ? 'none' : unknown ? `url(#${hatchId})` : toneColor(tone)}\n stroke={outline ? CHART_QUEUED_OUTLINE : undefined}\n onPointerEnter={() => setHover({ lane: index, item: itemIndex })}\n onPointerLeave={() => setHover((h) => (h && h.lane === index && h.item === itemIndex ? null : h))}\n />\n );\n })}\n </g>\n );\n }\n\n // Tick labels never overprint: the window's end outranks its start, and an\n // interior tick whose label would touch a neighbour is dropped (its\n // gridline stays).\n const tickLabels = layoutAxisLabels(\n ticks.map((t, i) => ({\n key: String(i),\n x: xs(t),\n anchor: i === 0 ? 'start' as const : i === ticks.length - 1 ? 'end' as const : 'middle' as const,\n priority: i === ticks.length - 1 ? 3 : i === 0 ? 2 : 1,\n required: i === 0 || i === ticks.length - 1,\n variants: [tickLabel(t)],\n })),\n { min: labelW, max: labelW + plotW, charPx: labelCharPx(textScale) },\n );\n\n const axis = (\n <svg className={plot.svg} width={width} height={AXIS_H} viewBox={`0 0 ${width} ${AXIS_H}`} aria-hidden=\"true\">\n <line className={plot.axis} x1={labelW} x2={labelW + plotW} y1={AXIS_H - 1} y2={AXIS_H - 1} />\n {tickLabels.map((l) => (\n <text key={l.key} data-axis-label={l.key} className={plot.tick} x={l.x} y={AXIS_H - 7} textAnchor={l.anchor}>\n {l.text}\n </text>\n ))}\n </svg>\n );\n\n return (\n <ChartFrame\n title={title}\n description={description}\n caveat={caveat}\n status={resolvedStatus}\n table={<TableView caption={title} columns={columns} rows={flat} rowKey={(r) => r.id} />}\n footer={<ChartLegend min={1} items={legendItems} />}\n >\n <div ref={wrapRef} className={plot.plotWrap}>\n {axis}\n <div\n className={virtual ? styles.scroller : undefined}\n style={virtual ? { height: VIEWPORT_ROWS * ROW_H } : undefined}\n onScroll={virtual ? (e: UIEvent<HTMLDivElement>) => setScrollTop(e.currentTarget.scrollTop) : undefined}\n data-virtualized={virtual ? 'true' : undefined}\n >\n <svg className={plot.svg} width={width} height={bodyH} viewBox={`0 0 ${width} ${bodyH}`} role=\"img\" aria-label={summary}>\n <defs>\n <HatchPattern id={hatchId} />\n </defs>\n {ticks.map((t) => (\n <line key={t} className={plot.grid} x1={xs(t)} x2={xs(t)} y1={0} y2={bodyH} />\n ))}\n {nowMs >= from && nowMs <= to ? (\n <line className={styles.now} x1={xs(nowMs)} x2={xs(nowMs)} y1={0} y2={bodyH} />\n ) : null}\n {lanes.slice(first, last).map((lane, i) => renderLane(lane, first + i))}\n </svg>\n {/* Keyboard + screen-reader lane list, overlaid on the rows it describes. */}\n <ul className={styles.laneStops} style={{ height: bodyH }} aria-label={`${title} lanes`} aria-describedby={liveId}>\n {lanes.slice(first, last).map((lane, i) => (\n <li\n key={lane.id}\n tabIndex={0}\n className={`${styles.laneStop} ${plot.focusable}`}\n style={{ top: (first + i) * ROW_H, height: ROW_H }}\n aria-label={laneSummary(lane)}\n onFocus={() => setHover(lane.items.length ? { lane: first + i, item: lane.items.length - 1 } : null)}\n onBlur={() => setHover(null)}\n />\n ))}\n </ul>\n </div>\n <span id={liveId} className={plot.srOnly}>Each lane lists its runs by status; open the Table view for every run.</span>\n {hover && hovered ? (\n <ChartTooltip\n left={clampTooltipLeft(xs(Math.max(from, hovered.start)), width)}\n top={AXIS_H + hover.lane * ROW_H - (virtual ? scrollTop : 0)}\n title={lanes[hover.lane]!.label}\n rows={[\n {\n key: 's',\n label: 'Status',\n value: `${hovered.status}${hovered.stale ? ' (stale)' : ''}`,\n ...(isOutline(hovered) || toneOf(hovered.status) === 'unknown' ? {} : { color: toneColor(toneOf(hovered.status)) }),\n },\n { key: 't', label: 'Started', value: formatTime(hovered.start) },\n {\n key: 'd',\n label: 'Duration',\n value: hovered.end === null ? `${formatDuration(nowMs - hovered.start)} so far` : formatDuration(hovered.end - hovered.start),\n },\n ...(hovered.detail ? [{ key: 'x', label: 'Detail', value: hovered.detail }] : []),\n ]}\n />\n ) : null}\n </div>\n </ChartFrame>\n );\n}\n"],"mappings":"+XCeA,SAAgB,EAAiB,EAA2B,EAAuC,CACjG,IAAM,EAAQ,EAAO,OAAQ,GAAmB,IAAM,MAAQ,OAAO,SAAS,CAAC,CAAC,EAChF,GAAI,EAAM,SAAW,EAAG,MAAO,UAC/B,IAAM,EAAQ,EAAM,GACd,EAAS,EAAM,EAAM,OAAS,GAC9B,EAAO,EAAO,OAAS,EAAM,OACnC,MAAO,QAAQ,EAAO,CAAK,EAAE,MAAM,EAAO,CAAM,EAAE,UAAU,EAAO,KAAK,IAAI,GAAG,CAAK,CAAC,EAAE,MAAM,EAAO,KAAK,IAAI,GAAG,CAAK,CAAC,KACnH,EAAO,EAAI,KAAK,EAAK,QAAQ,IAAS,EAAI,GAAK,IAAI,eAAiB,GACzE,CAEA,SAAgB,EAAU,CACxB,SACA,QAAQ,GACR,SAAS,GACT,YACA,OAAO,GACP,YAUC,CACD,IAAM,EAAQ,EAAW,GAAG,EAAU,IAAI,EAAiB,EAAQ,CAAQ,IAAM,EAC3E,EAAQ,EAAO,OAAQ,GAAmB,IAAM,IAAI,EAC1D,GAAI,EAAM,OAAS,EACjB,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,UAAW,EAAO,UAAkB,QAAe,SAAQ,QAAS,OAAO,EAAM,GAAG,IAAU,KAAK,MAAM,aAAY,EACxH,UAAA,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,KAAM,GAAI,EAAG,GAAI,EAAQ,EAAG,GAAI,EAAS,IAAK,GAAI,EAAS,GAAM,CAAA,CACtF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,IAAM,EAAQ,KAAK,CAC9H,EACA,GAAI,EAAQ,OAAS,CAAC,CAAE,IAAK,IAAK,MAAO,SAAU,MAAO,EAAQ,MAAO,CAAC,EAAI,CAAC,CACjF,CACD,CAAA,EACC,IACD,GACK,CAAA,CAEhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._sparkline_kr10w_1{display:block;overflow:visible}._line_kr10w_6{fill:none;stroke:var(--text-tertiary);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}._dot_kr10w_14{fill:var(--chart-sequential)}._area_kr10w_18{fill:var(--chart-sequential);opacity:.1;stroke:none}._flat_kr10w_25{stroke:var(--chart-grid);stroke-width:1px;stroke-dasharray:2 2}._scroller_1b51y_1{overscroll-behavior:contain;position:relative;overflow-y:auto}._band_1b51y_7{fill:var(--chart-grid);opacity:.35}._bar_1b51y_12{cursor:default}._stale_1b51y_18{opacity:.4}._open_1b51y_22{rx:0}._now_1b51y_27{stroke:var(--text-tertiary);stroke-width:1px;stroke-dasharray:2 3}._laneStops_1b51y_33{pointer-events:none;margin:0;padding:0;list-style:none;position:absolute;top:0;left:0;right:0}._laneStop_1b51y_33{position:absolute;left:0;right:0}._outline_1b51y_51{stroke-width:1.5px}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,n}from"./index-QesfXBsb.js";import{C as r,K as i,V as a,c as o,d as s,g as c,k as l,m as u,p as d,t as f}from"./global-CNNGMril.js";import{n as p,t as m}from"./UniverseView-sWm3pnTW.js";import{SessionGate as h}from"./SessionGate-CzlcNq3O.js";var g=t(e(),1),_=Object.freeze({"campaign-execution":Object.freeze([`campaign-call-threw`]),"campaign-verification":Object.freeze([`campaign-evidence-changed`]),"delivery-execution":Object.freeze([`delivery-call-threw`]),"delivery-verification":Object.freeze([`delivery-evidence-changed`,`delivery-receipt-unverified`]),"settlement-publication":Object.freeze([`settlement-write-failed`])});function v(e){return typeof e==`string`&&/^[a-z0-9][a-z0-9_-]{0,63}$/.test(e)}function y(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function b(e){return typeof e==`string`&&/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z$/.test(e)&&Number.isFinite(Date.parse(e))&&new Date(e).toISOString()===(e.length===20?e.replace(`Z`,`.000Z`):e)}function x(e){return typeof e==`string`&&/^[a-z0-9][a-z0-9_:-]{0,191}$/.test(e)}function S(e,t){let n=()=>Error(`Controller evidence could not be validated.`);if(!v(t)||!y(e)||e.schemaVersion!==1||e.controllerId!==t||typeof e.sourceState!=`string`||![`healthy`,`missing`,`degraded`].includes(e.sourceState)||typeof e.status!=`string`||![`completed`,`incomplete`,`cancelled`,`timed-out`,`unavailable`,`draining`,`drained`].includes(e.status)||!(e.createdAt===null||b(e.createdAt))||!(e.deadlineAt===null||b(e.deadlineAt))||!b(e.observedAt)||!Array.isArray(e.reasons)||e.reasons.length>128||!e.reasons.every(x)||!Array.isArray(e.outcomes)||e.outcomes.length>64)throw n();let r=new Set,i=e.outcomes.map(e=>{if(!y(e)||typeof e.campaignId!=`string`||!v(e.campaignId)||r.has(e.campaignId)||typeof e.state!=`string`||![`pending`,`in-flight`,`completed`,`held`].includes(e.state)||typeof e.attempted!=`boolean`||!x(e.reasonCode))throw n();return r.add(e.campaignId),{campaignId:e.campaignId,state:e.state,attempted:e.attempted,reasonCode:e.reasonCode}}),a;if(e.topology!==void 0){if(!Array.isArray(e.topology)||e.topology.length>64||e.topology.length!==i.length)throw n();let t=new Set;a=e.topology.map(e=>{if(!y(e)||!v(e.campaignId)||!r.has(e.campaignId)||t.has(e.campaignId))throw n();t.add(e.campaignId);let i=t=>{if(!Array.isArray(t)||t.length>63||!t.every(t=>v(t)&&r.has(t)&&t!==e.campaignId)||new Set(t).size!==t.length)throw n();return[...t]},a=i(e.dependsOn),o=i(e.prerequisites);if(a.some(e=>!o.includes(e)))throw n();return{campaignId:e.campaignId,dependsOn:a,prerequisites:o}});let o=new Map(a.map(e=>[e.campaignId,e])),s=new Set;for(;s.size<a.length;){let e=a.find(e=>!s.has(e.campaignId)&&e.prerequisites.every(e=>s.has(e)));if(!e)throw n();s.add(e.campaignId)}for(let e of a){let t=new Set,r=[...e.dependsOn];for(;r.length;){let e=r.pop();t.has(e)||(t.add(e),r.push(...o.get(e).dependsOn))}if(e.prerequisites.some(e=>!t.has(e)))throw n()}}let o,s;if(e.diagnostics!==void 0){if(!Array.isArray(e.diagnostics)||e.diagnostics.length>i.length)throw n();let t=new Set;s=e.diagnostics.map(e=>{if(!y(e)||!v(e.campaignId)||!r.has(e.campaignId)||t.has(e.campaignId)||i.find(t=>t.campaignId===e.campaignId)?.state===`pending`||typeof e.phase!=`string`||!Object.hasOwn(_,e.phase)||typeof e.code!=`string`||!b(e.at))throw n();let a=e.phase;if(!_[a].includes(e.code))throw n();return t.add(e.campaignId),{campaignId:e.campaignId,phase:a,code:e.code,at:e.at}})}if(e.control!==void 0){let t=e.control;if(!y(t)||typeof t.mode!=`string`||![`open`,`drain`].includes(t.mode)||!Number.isInteger(t.sequence)||t.sequence<1||t.sequence>511||!b(t.requestedAt)||!(t.acknowledgedAt===null||b(t.acknowledgedAt)))throw n();o={mode:t.mode,sequence:t.sequence,requestedAt:t.requestedAt,acknowledgedAt:t.acknowledgedAt}}if(o?.mode===`open`&&o.acknowledgedAt!==null||e.status===`draining`&&(o?.mode!==`drain`||o.acknowledgedAt!==null)||e.status===`drained`&&(o?.mode!==`drain`||o.acknowledgedAt===null))throw n();return{schemaVersion:1,controllerId:t,sourceState:e.sourceState,status:e.status,createdAt:e.createdAt,deadlineAt:e.deadlineAt,observedAt:e.observedAt,reasons:[...e.reasons],outcomes:i,...a?{topology:a}:{},...o?{control:o}:{},...s?{diagnostics:s}:{}}}async function C(e,t){if(!v(e))throw Error(`Enter a valid controller ID.`);return S(await o(`/api/universe/controller-status?controllerId=${encodeURIComponent(e)}`,t),e)}function w(e,t,n){let r=t.trim().toLowerCase();return e.filter(e=>(n===`all`||e.state===n)&&(e.campaignId.toLowerCase().includes(r)||e.reasonCode.toLowerCase().includes(r)))}function T(e,t,n){let r=Number.isFinite(n)?Math.max(0,Math.floor(n)):0;if(t===null)return e.slice(0,r);let i=[],a=[];for(let n of e)(n.from===t||n.to===t?i:a).push(n);return[...i,...a].slice(0,r)}var E={topology:`_topology_1rqbo_1`,header:`_header_1rqbo_2`,snapshot:`_snapshot_1rqbo_5`,counts:`_counts_1rqbo_6`,finder:`_finder_1rqbo_10`,finderControls:`_finderControls_1rqbo_11`,searchLabel:`_searchLabel_1rqbo_13`,utilityButton:`_utilityButton_1rqbo_16`,finderMeta:`_finderMeta_1rqbo_19`,results:`_results_1rqbo_22`,result:`_result_1rqbo_22`,resultName:`_resultName_1rqbo_27`,resultState:`_resultState_1rqbo_28`,resultReason:`_resultReason_1rqbo_32`,pagination:`_pagination_1rqbo_33`,noResults:`_noResults_1rqbo_35`,selectionNote:`_selectionNote_1rqbo_36`,workspace:`_workspace_1rqbo_37`,board:`_board_1rqbo_38`,canvas:`_canvas_1rqbo_39`,edges:`_edges_1rqbo_40`,edge:`_edge_1rqbo_40`,selectedEdge:`_selectedEdge_1rqbo_41`,column:`_column_1rqbo_43`,node:`_node_1rqbo_44`,nodeName:`_nodeName_1rqbo_47`,nodeState:`_nodeState_1rqbo_48`,detail:`_detail_1rqbo_52`,detailState:`_detailState_1rqbo_55`,facts:`_facts_1rqbo_59`,relationships:`_relationships_1rqbo_63`,note:`_note_1rqbo_67`,legend:`_legend_1rqbo_67`,empty:`_empty_1rqbo_67`,notice:`_notice_1rqbo_69`,srOnly:`_srOnly_1rqbo_73`},D=n(),O=64,k=256,A=8,j={pending:`Pending`,"in-flight":`Unresolved intent`,completed:`Completed`,held:`Held`},M={pending:`No settled outcome is recorded. Pending does not mean ready to run.`,"in-flight":`A durable dispatch intent remains unresolved. This is not proof of a live worker.`,completed:`The controller recorded completion, including any required local delivery. This is not a production deployment claim.`,held:`Work remains held for the recorded reason. This view does not retry or release it.`};function N(e){let t=e.outcomes.slice(0,O),n=new Map(e.topology?.map(e=>[e.campaignId,e])),r=new Set(t.map(e=>e.campaignId)),i=new Map;if(e.topology)for(let e=0;e<t.length;e++)for(let e of t){let t=n.get(e.campaignId);i.has(e.campaignId)||!t||t.dependsOn.some(e=>!i.has(e))||i.set(e.campaignId,t.dependsOn.length?Math.max(...t.dependsOn.map(e=>i.get(e)))+1:0)}let a=[...new Set(i.values())].sort((e,t)=>e-t).map(e=>({label:`Dependency layer ${e+1}`,nodes:t.filter(t=>i.get(t.campaignId)===e)})),o=t.filter(e=>!i.has(e.campaignId));o.length&&a.push({label:e.topology?`Layer unavailable`:`Recorded campaigns`,nodes:o});let s=new Map;return a.forEach((e,t)=>e.nodes.forEach((e,n)=>s.set(e.campaignId,{x:24+t*244,y:56+n*108}))),{nodes:t,topology:n,columns:a,positions:s,edges:t.flatMap(e=>(n.get(e.campaignId)?.dependsOn??[]).filter(e=>r.has(e)).map(t=>({from:t,to:e.campaignId}))),width:Math.max(256,a.length*244+8),height:64+Math.max(1,...a.map(e=>e.nodes.length))*108}}function P({data:e}){let t=(0,g.useMemo)(()=>N(e),[e]),[n,r]=(0,g.useState)(t.nodes[0]?.campaignId??null),[i,a]=(0,g.useState)(``),[o,s]=(0,g.useState)(`all`),[c,l]=(0,g.useState)(0),u=(0,g.useRef)(null),d=(0,g.useRef)(new Map),f=t.nodes.find(e=>e.campaignId===n),p=(0,g.useMemo)(()=>w(t.nodes,i,o),[t.nodes,i,o]),m=i.trim().length>0||o!==`all`,h=Math.max(1,Math.ceil(p.length/A)),_=Math.min(c,h-1),v=p.slice(_*A,(_+1)*A),y=f&&m&&!p.some(e=>e.campaignId===f.campaignId),b=(0,g.useMemo)(()=>T(t.edges,f?.campaignId??null,k),[t.edges,f?.campaignId]),x=(0,g.useId)(),S=`${x}-detail`,C=f?t.topology.get(f.campaignId):void 0,P=C?.prerequisites.filter(e=>!C.dependsOn.includes(e))??[],F=new Map(e.outcomes.map(e=>[e.campaignId,e])),I=t=>e.outcomes.filter(e=>e.state===t).length;function L(e,n=!1){let r=u.current,i=t.positions.get(e);if(!r||!i)return;let a=Math.max(0,i.x+96-r.clientWidth/2),o=Math.max(0,i.y+40-r.clientHeight/2);typeof r.scrollTo==`function`?r.scrollTo({left:a,top:o,behavior:`auto`}):(r.scrollLeft=a,r.scrollTop=o),n&&d.current.get(e)?.focus({preventScroll:!0})}function R(e){r(e),L(e)}function z(e,n){return e.length?(0,D.jsx)(`ul`,{className:E.relationships,children:e.map(e=>(0,D.jsxs)(`li`,{children:[t.positions.has(e)?(0,D.jsx)(`button`,{type:`button`,onClick:()=>R(e),children:e}):(0,D.jsx)(`span`,{children:e}),(0,D.jsx)(`span`,{children:F.has(e)?j[F.get(e).state]:`Outcome unavailable`})]},e))}):(0,D.jsx)(`p`,{className:E.note,children:n})}return(0,D.jsxs)(`section`,{className:E.topology,"aria-label":`Controller mission topology`,children:[(0,D.jsxs)(`header`,{className:E.header,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h3`,{children:`Mission topology`}),(0,D.jsx)(`p`,{children:`Follow the declared work graph. Select a campaign to inspect its recorded state and prerequisites.`})]}),(0,D.jsx)(`span`,{className:E.snapshot,children:`Recorded snapshot`})]}),(0,D.jsxs)(`dl`,{className:E.counts,"aria-label":`Recorded campaign counts`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Campaigns`}),(0,D.jsx)(`dd`,{children:e.outcomes.length})]}),[`completed`,`in-flight`,`held`,`pending`].map(e=>(0,D.jsxs)(`div`,{"data-state":e,children:[(0,D.jsx)(`dt`,{children:j[e]}),(0,D.jsx)(`dd`,{children:I(e)})]},e))]}),e.topology?null:(0,D.jsx)(`p`,{className:E.notice,children:`Dependency information is unavailable in this observation. Campaign placement does not imply independence or readiness.`}),e.outcomes.length>O?(0,D.jsxs)(`p`,{className:E.notice,children:[`Showing the first `,O,` of `,e.outcomes.length,` campaigns. Counts include all recorded outcomes; relationships outside this diagram remain in the selected campaign detail.`]}):null,t.nodes.length?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`section`,{className:E.finder,"aria-label":`Campaign navigator`,children:[(0,D.jsxs)(`div`,{className:E.finderControls,children:[(0,D.jsxs)(`label`,{className:E.searchLabel,htmlFor:`${x}-search`,children:[`Search campaigns`,(0,D.jsx)(`input`,{id:`${x}-search`,type:`search`,value:i,maxLength:192,placeholder:`Campaign ID or recorded reason`,"aria-describedby":`${x}-finder-hint`,onChange:e=>{a(e.target.value),l(0)}})]}),(0,D.jsxs)(`label`,{htmlFor:`${x}-state`,children:[`Recorded state`,(0,D.jsxs)(`select`,{id:`${x}-state`,value:o,onChange:e=>{s(e.target.value),l(0)},children:[(0,D.jsx)(`option`,{value:`all`,children:`All recorded states`}),[`pending`,`in-flight`,`completed`,`held`].map(e=>(0,D.jsx)(`option`,{value:e,children:j[e]},e))]})]}),(0,D.jsx)(`button`,{type:`button`,className:E.utilityButton,disabled:!f,onClick:()=>{f&&L(f.campaignId,!0)},children:`Locate selected`}),m?(0,D.jsx)(`button`,{type:`button`,className:E.utilityButton,onClick:()=>{a(``),s(`all`),l(0)},children:`Reset filters`}):null]}),(0,D.jsxs)(`div`,{className:E.finderMeta,children:[(0,D.jsxs)(`p`,{id:`${x}-finder-hint`,children:[`Search covers the `,t.nodes.length,` diagram campaigns. Filters narrow this index, not the graph or its dependency layers.`]}),(0,D.jsx)(`span`,{"aria-live":`polite`,"aria-atomic":`true`,children:m?`${p.length} matching campaign${p.length===1?``:`s`}`:`${t.nodes.length} campaigns in diagram`})]}),m?(0,D.jsxs)(D.Fragment,{children:[p.length?(0,D.jsx)(`ul`,{className:E.results,"aria-label":`Matching campaigns`,children:v.map(e=>(0,D.jsx)(`li`,{children:(0,D.jsxs)(`button`,{type:`button`,className:E.result,"aria-label":`Select campaign ${e.campaignId}`,"aria-describedby":`${x}-result-state-${e.campaignId} ${x}-result-reason-${e.campaignId}`,"aria-pressed":f?.campaignId===e.campaignId,"aria-controls":S,onClick:()=>R(e.campaignId),children:[(0,D.jsx)(`span`,{className:E.resultName,children:e.campaignId}),(0,D.jsx)(`span`,{id:`${x}-result-state-${e.campaignId}`,className:E.resultState,"data-state":e.state,children:j[e.state]}),(0,D.jsx)(`span`,{id:`${x}-result-reason-${e.campaignId}`,className:E.resultReason,children:e.reasonCode})]})},e.campaignId))}):(0,D.jsx)(`p`,{className:E.noResults,children:`No diagram campaigns match. Try another campaign ID or recorded reason, or reset filters.`}),h>1?(0,D.jsxs)(`nav`,{className:E.pagination,"aria-label":`Campaign result pages`,children:[(0,D.jsxs)(`span`,{children:[`Page `,_+1,` of `,h]}),(0,D.jsx)(`button`,{type:`button`,className:E.utilityButton,disabled:_===0,onClick:()=>l(_-1),children:`Previous results`}),(0,D.jsx)(`button`,{type:`button`,className:E.utilityButton,disabled:_+1===h,onClick:()=>l(_+1),children:`Next results`})]}):null]}):null]}),(0,D.jsxs)(`div`,{className:E.workspace,children:[(0,D.jsx)(`div`,{ref:u,className:E.board,role:`region`,"aria-label":`Campaign dependency diagram`,tabIndex:0,children:(0,D.jsxs)(`div`,{className:E.canvas,style:{width:t.width,height:t.height},children:[(0,D.jsx)(`svg`,{width:t.width,height:t.height,className:E.edges,"aria-hidden":`true`,children:b.map(e=>{let n=t.positions.get(e.from),r=t.positions.get(e.to),i=n.x+192,a=r.x,o=(i+a)/2;return(0,D.jsx)(`path`,{className:f&&(e.from===f.campaignId||e.to===f.campaignId)?E.selectedEdge:E.edge,d:`M ${i} ${n.y+40} C ${o} ${n.y+40}, ${o} ${r.y+40}, ${a} ${r.y+40}`},`${e.from}-${e.to}`)})}),t.columns.map((e,t)=>(0,D.jsx)(`span`,{className:E.column,style:{left:24+t*244},children:e.label},e.label)),t.nodes.map((e,n)=>{let r=t.positions.get(e.campaignId),i=t.topology.get(e.campaignId);return(0,D.jsxs)(`div`,{children:[(0,D.jsxs)(`button`,{type:`button`,className:E.node,"data-state":e.state,style:{left:r.x,top:r.y},ref:t=>{t?d.current.set(e.campaignId,t):d.current.delete(e.campaignId)},"aria-label":`Inspect campaign ${e.campaignId}: ${j[e.state]}`,"aria-pressed":f?.campaignId===e.campaignId,"aria-controls":S,"aria-describedby":`${x}-relations-${n}`,onClick:()=>R(e.campaignId),children:[(0,D.jsx)(`span`,{className:E.nodeName,children:e.campaignId}),(0,D.jsx)(`span`,{className:E.nodeState,children:j[e.state]})]}),(0,D.jsx)(`span`,{id:`${x}-relations-${n}`,className:E.srOnly,children:i?`Direct dependencies: ${i.dependsOn.join(`, `)||`none declared`}. Additional inherited delivery prerequisites: ${i.prerequisites.filter(e=>!i.dependsOn.includes(e)).join(`, `)||`none recorded`}.`:`Dependency information unavailable.`})]},e.campaignId)})]})}),(0,D.jsx)(`section`,{id:S,className:E.detail,"aria-label":`Selected campaign detail`,children:f?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(`span`,{className:E.detailState,"data-state":f.state,children:j[f.state]}),(0,D.jsx)(`h4`,{children:f.campaignId}),y?(0,D.jsx)(`p`,{className:E.selectionNote,children:`The selected campaign is outside the current filters. Its recorded detail remains available.`}):null,(0,D.jsx)(`p`,{children:M[f.state]}),(0,D.jsxs)(`dl`,{className:E.facts,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Recorded reason`}),(0,D.jsx)(`dd`,{children:f.reasonCode})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Campaign-call intent`}),(0,D.jsx)(`dd`,{children:f.attempted?`Recorded`:`Not recorded`})]})]}),(0,D.jsx)(`p`,{className:E.note,children:`A call intent is not proof of worker execution, model requests or successful evaluation.`}),(0,D.jsx)(`h5`,{children:`Direct dependencies`}),C?z(C.dependsOn,`None declared for this campaign.`):(0,D.jsx)(`p`,{className:E.note,children:`Dependency information unavailable.`}),(0,D.jsx)(`h5`,{children:`Additional inherited delivery prerequisites`}),C?z(P,`None recorded beyond the direct dependencies.`):(0,D.jsx)(`p`,{className:E.note,children:`Delivery prerequisite information unavailable.`}),(0,D.jsx)(`p`,{className:E.note,children:`Inherited prerequisites are ancestor delivery gates, not additional declared dependency edges. A state badge alone does not verify the delivery receipt.`})]}):(0,D.jsx)(`p`,{className:E.note,children:n?`Selected campaign ${n} is no longer present in this diagram. No substitute has been selected. Choose another campaign to inspect its evidence.`:`Select a campaign to inspect its recorded evidence.`})})]}),(0,D.jsx)(`p`,{className:E.legend,children:`Lines show declared dependencies, from earlier to later layers. Layer placement does not change declared priority or establish execution readiness.`}),t.edges.length>k?(0,D.jsxs)(`p`,{className:E.note,children:[`Showing `,k,` of `,t.edges.length,` visible dependency lines. Every campaign’s complete relationships remain available in its detail and accessible description.`]}):null]}):(0,D.jsx)(`p`,{className:E.empty,children:`No campaign outcomes are available in this observation. Inspect a registered controller with recorded campaigns to see its mission topology.`})]})}function F({data:e}){return(0,D.jsx)(P,{data:e},e.controllerId)}var I=e=>e==null?`Not recorded`:String(e),L=e=>[...new Set(e)].sort().join(`, `)||`None recorded`,R={pending:`Pending`,held:`Held`,completed:`Completed`,"in-flight":`Unresolved intent`};function z(e,t){let n={clockWarning:!1,changes:[],changedCampaigns:0};if(!e)return{...n,kind:`baseline`,notice:`First accepted observation. Refresh this controller explicitly to compare recorded evidence.`};if(e.controllerId!==t.controllerId||e.createdAt!==t.createdAt)return{...n,kind:`incomparable`,notice:`Controller identity or registration timestamp changed. Registration continuity is not established; these observations are not compared.`};let r=[],i=(e,t,n,i,a)=>{n!==i&&r.push({key:e,label:t,before:n,after:i,...a?{campaignId:a}:{}})},a=[];(e.sourceState!==`healthy`||t.sourceState!==`healthy`)&&a.push(`One or both observations contain missing or degraded evidence. Absence from an observation does not establish deletion, completion or execution.`),t.createdAt===null&&a.push(`The registration timestamp is not recorded. Registration continuity is not established.`),e.deadlineAt!==t.deadlineAt&&a.push(`The recorded deadline changed. This difference does not establish registration continuity or renew execution authority.`),i(`controller:status`,`Recorded controller status`,e.status,t.status),i(`controller:health`,`Evidence health`,e.sourceState,t.sourceState),i(`controller:deadline`,`Recorded deadline`,I(e.deadlineAt),I(t.deadlineAt)),i(`controller:reasons`,`Evidence reasons`,L(e.reasons),L(t.reasons));for(let[n,r]of[[`mode`,`Admission mode`],[`sequence`,`Admission sequence`],[`requestedAt`,`Admission requested at`],[`acknowledgedAt`,`Admission acknowledged at`]])i(`control:${n}`,r,I(e.control?.[n]),I(t.control?.[n]));let o=new Map(e.outcomes.map(e=>[e.campaignId,e])),s=new Map(t.outcomes.map(e=>[e.campaignId,e])),c=[...s.keys(),...[...o.keys()].filter(e=>!s.has(e))];for(let e of c){let t=o.get(e),n=s.get(e);if(!t||!n){i(`campaign:${e}:presence`,`Campaign presence`,t?`Present`:`Not observed`,n?`Present`:`Not observed`,e);continue}i(`campaign:${e}:state`,`Recorded state`,R[t.state],R[n.state],e),i(`campaign:${e}:reason`,`Recorded reason`,t.reasonCode,n.reasonCode,e),i(`campaign:${e}:attempted`,`Campaign-call intent`,t.attempted?`Recorded`:`Not recorded`,n.attempted?`Recorded`:`Not recorded`,e)}if(i(`controller:campaign-order`,`Recorded campaign order`,e.outcomes.map(e=>e.campaignId).join(`, `)||`None recorded`,t.outcomes.map(e=>e.campaignId).join(`, `)||`None recorded`),i(`controller:topology`,`Dependency evidence`,e.topology?`Available`:`Unavailable`,t.topology?`Available`:`Unavailable`),e.topology&&t.topology){let n=new Map(e.topology.map(e=>[e.campaignId,e]));for(let e of t.topology){let t=n.get(e.campaignId);t&&(i(`campaign:${e.campaignId}:dependencies`,`Direct dependencies`,L(t.dependsOn),L(e.dependsOn),e.campaignId),i(`campaign:${e.campaignId}:prerequisites`,`Effective prerequisites`,L(t.prerequisites),L(e.prerequisites),e.campaignId))}}return{kind:`compared`,notice:a.join(` `)||null,clockWarning:Date.parse(t.observedAt)<=Date.parse(e.observedAt),changes:r,changedCampaigns:new Set(r.flatMap(e=>e.campaignId?[e.campaignId]:[])).size}}var B={changes:`_changes_qcw1f_1`,header:`_header_qcw1f_2`,labels:`_labels_qcw1f_4`,historical:`_historical_qcw1f_6`,description:`_description_qcw1f_7`,note:`_note_qcw1f_7`,footnote:`_footnote_qcw1f_7`,times:`_times_qcw1f_9`,warning:`_warning_qcw1f_12`,baseline:`_baseline_qcw1f_13`,counts:`_counts_qcw1f_14`,disclosure:`_disclosure_qcw1f_18`,rows:`_rows_qcw1f_22`,row:`_row_qcw1f_22`,field:`_field_qcw1f_24`,values:`_values_qcw1f_27`};function V({previous:e,current:t,historical:n,loading:r}){let i=(0,g.useMemo)(()=>z(e,t),[e,t]);return(0,D.jsxs)(`section`,{className:B.changes,"aria-label":`Changes between observations`,children:[(0,D.jsxs)(`header`,{className:B.header,children:[(0,D.jsx)(`h3`,{children:`Changes between observations`}),(0,D.jsxs)(`div`,{className:B.labels,children:[r?(0,D.jsx)(`span`,{children:`Refresh in progress`}):null,n?(0,D.jsx)(`span`,{className:B.historical,children:`Historical observations`}):null]})]}),(0,D.jsx)(`p`,{className:B.description,children:`Compare the last two accepted responses in this session. This is not an event log or a live activity view.`}),(0,D.jsxs)(`dl`,{className:B.times,"aria-label":`Compared observation times`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Previous observation`}),(0,D.jsx)(`dd`,{children:e?(0,D.jsx)(`time`,{dateTime:e.observedAt,children:e.observedAt}):`Not yet observed`})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Displayed observation`}),(0,D.jsx)(`dd`,{children:(0,D.jsx)(`time`,{dateTime:t.observedAt,children:t.observedAt})})]})]}),r?(0,D.jsx)(`p`,{className:B.note,children:`The accepted observations below remain unchanged while the refresh is pending.`}):null,n?(0,D.jsx)(`p`,{className:B.warning,children:`The latest refresh failed. This comparison uses retained observations, not current evidence.`}):null,i.notice?(0,D.jsx)(`p`,{className:i.kind===`baseline`?B.note:B.warning,children:i.notice}):null,i.clockWarning?(0,D.jsx)(`p`,{className:B.warning,children:`Observation timestamps are equal or move backward. Before and after follow response order, not a verified event timeline.`}):null,i.kind===`baseline`?(0,D.jsx)(`p`,{className:B.baseline,children:`Refresh this controller to compare two observations.`}):i.kind===`incomparable`?(0,D.jsx)(`p`,{className:B.baseline,children:`These observations cannot be compared as one controller registration.`}):i.changes.length===0?(0,D.jsx)(`p`,{className:B.baseline,children:`No compared evidence fields changed. Observation times are excluded; this does not prove that no work occurred.`}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`dl`,{className:B.counts,"aria-label":`Observation change counts`,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Changed fields`}),(0,D.jsx)(`dd`,{children:i.changes.length})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Campaigns with displayed changes`}),(0,D.jsx)(`dd`,{children:i.changedCampaigns})]})]}),(0,D.jsxs)(`details`,{className:B.disclosure,children:[(0,D.jsxs)(`summary`,{children:[`Review `,i.changes.length,` changed field`,i.changes.length===1?``:`s`]}),(0,D.jsx)(`ul`,{className:B.rows,"aria-label":`Changed observation fields`,children:i.changes.map(e=>(0,D.jsxs)(`li`,{className:B.row,children:[(0,D.jsxs)(`div`,{className:B.field,children:[(0,D.jsx)(`h4`,{children:e.label}),e.campaignId?(0,D.jsx)(`span`,{children:e.campaignId}):null]}),(0,D.jsxs)(`dl`,{className:B.values,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Before`}),(0,D.jsx)(`dd`,{children:e.before})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`After`}),(0,D.jsx)(`dd`,{children:e.after})]})]})]},e.key))})]})]}),(0,D.jsx)(`p`,{className:B.footnote,children:`Differences describe returned evidence only. They do not establish worker execution, delivery verification or a production deployment.`})]})}var H={inspector:`_inspector_123iu_1`,header:`_header_123iu_2`,note:`_note_123iu_4`,empty:`_empty_123iu_4`,field:`_field_123iu_4`,control:`_control_123iu_4`,readOnly:`_readOnly_123iu_5`,form:`_form_123iu_6`,identity:`_identity_123iu_15`,warning:`_warning_123iu_18`,facts:`_facts_123iu_19`,sequence:`_sequence_123iu_24`,tableWrap:`_tableWrap_123iu_27`,reasons:`_reasons_123iu_32`};function U({value:e}){return e?(0,D.jsx)(`time`,{dateTime:e,children:e.replace(`T`,` `).replace(`Z`,` UTC`)}):(0,D.jsx)(D.Fragment,{children:`Not recorded`})}var W={"campaign-execution":`Campaign execution`,"campaign-verification":`Campaign verification`,"delivery-execution":`Local branch delivery`,"delivery-verification":`Delivery confirmation`,"settlement-publication":`Controller acknowledgement`};function G(){let[e,t]=(0,g.useState)(``),[n,r]=(0,g.useState)(null),[i,a]=(0,g.useState)({current:null,previous:null}),o=i.current,[s,c]=(0,g.useState)(!1),[l,u]=(0,g.useState)(null),[d,f]=(0,g.useState)(!1),p=(0,g.useRef)({sequence:0,abort:null});(0,g.useEffect)(()=>()=>{p.current.sequence+=1,p.current.abort?.abort()},[]);async function m(e){if(!v(e)){f(!0);return}f(!1),p.current.abort?.abort();let t=++p.current.sequence,n=new AbortController;p.current.abort=n,r(e),a(t=>t.current?.controllerId===e?t:{current:null,previous:null}),c(!0),u(null);try{let r=await C(e,n.signal);t===p.current.sequence&&a(t=>({current:r,previous:t.current?.controllerId===e?t.current:null}))}catch{t===p.current.sequence&&u(`Observation failed or returned invalid evidence. Check your connection and refresh this controller.`)}finally{t===p.current.sequence&&c(!1)}}return(0,D.jsxs)(`section`,{className:H.inspector,"aria-labelledby":`controller-inspector-title`,children:[(0,D.jsxs)(`header`,{className:H.header,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`h2`,{id:`controller-inspector-title`,children:`Controller inspector`}),(0,D.jsx)(`p`,{children:`Read the recorded progress of a named portfolio controller.`})]}),(0,D.jsx)(`span`,{className:H.readOnly,children:`Read-only`})]}),(0,D.jsxs)(`form`,{className:H.form,onSubmit:t=>{t.preventDefault(),m(e)},children:[(0,D.jsxs)(`div`,{className:H.field,children:[(0,D.jsx)(`label`,{htmlFor:`controller-id`,children:`Controller ID`}),(0,D.jsx)(`input`,{id:`controller-id`,value:e,onChange:e=>{t(e.target.value),f(!1)},maxLength:64,autoComplete:`off`,autoCapitalize:`none`,spellCheck:!1,"aria-invalid":d,"aria-describedby":`controller-id-help`}),(0,D.jsx)(`p`,{id:`controller-id-help`,children:`Use the ID from your controller manifest: lowercase letters, numbers, hyphens or underscores.`})]}),(0,D.jsx)(`button`,{type:`submit`,children:`Inspect controller`}),n?(0,D.jsx)(`button`,{type:`button`,disabled:s,onClick:()=>{m(n)},children:`Refresh controller`}):null]}),d?(0,D.jsx)(`p`,{role:`alert`,className:H.warning,children:`Enter 1–64 characters, starting with a lowercase letter or number.`}):null,n?(0,D.jsxs)(`div`,{"aria-busy":s,children:[(0,D.jsxs)(`h3`,{className:H.identity,children:[`Evidence for `,(0,D.jsx)(`code`,{children:n})]}),e===n?null:(0,D.jsxs)(`p`,{className:H.note,children:[`The form has changed. Evidence below still belongs to `,n,`; submit to inspect another ID.`]}),(0,D.jsx)(`p`,{role:`status`,className:H.note,children:s?`Reading ${n}…${o?` Previous observation remains below.`:``}`:l&&o?`Historical observation — refresh failed. This is not current evidence.`:o?`Recorded snapshot. Refresh explicitly to check for changes; this is not a live process view.`:`No verified observation is available.`}),l?(0,D.jsx)(`p`,{role:`alert`,className:H.warning,children:l}):null,o?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(`dl`,{className:H.facts,children:[(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Evidence health`}),(0,D.jsx)(`dd`,{children:o.sourceState})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Recorded status`}),(0,D.jsx)(`dd`,{children:o.status})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Observed at`}),(0,D.jsx)(`dd`,{children:(0,D.jsx)(U,{value:o.observedAt})})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Created at`}),(0,D.jsx)(`dd`,{children:(0,D.jsx)(U,{value:o.createdAt})})]}),(0,D.jsxs)(`div`,{children:[(0,D.jsx)(`dt`,{children:`Original deadline`}),(0,D.jsx)(`dd`,{children:(0,D.jsx)(U,{value:o.deadlineAt})})]})]}),(0,D.jsx)(V,{previous:i.previous,current:o,historical:!!l,loading:s}),o.sourceState===`missing`?(0,D.jsx)(`p`,{className:H.warning,children:`No controller registration was found in this store. Check the ID and selected Universe store.`}):null,o.sourceState===`degraded`?(0,D.jsx)(`p`,{className:H.warning,children:`Evidence could not be fully verified. This observation does not repair locks, reconcile work or prove a controller is running.`}):null,o.control?(0,D.jsxs)(`section`,{className:H.control,"aria-label":`Recorded admission control`,children:[(0,D.jsx)(`h4`,{children:o.control.mode===`open`?`Admission reopened`:o.control.acknowledgedAt?`Drain acknowledged`:`Drain awaiting acknowledgement`}),(0,D.jsxs)(`ol`,{className:H.sequence,children:[(0,D.jsxs)(`li`,{children:[(0,D.jsx)(`strong`,{children:o.control.mode===`open`?`Resume recorded`:`Drain recorded`}),(0,D.jsxs)(`span`,{children:[`Sequence `,o.control.sequence]}),(0,D.jsx)(U,{value:o.control.requestedAt})]}),(0,D.jsxs)(`li`,{children:[(0,D.jsx)(`strong`,{children:o.control.mode===`open`?`Resume did not start work`:o.control.acknowledgedAt?`Acknowledgement recorded`:`Acknowledgement not recorded`}),o.control.mode===`drain`?(0,D.jsx)(U,{value:o.control.acknowledgedAt}):(0,D.jsx)(`span`,{children:`Resume does not start work.`})]})]}),(0,D.jsx)(`p`,{children:o.control.mode===`drain`?`Drain blocks new dispatch intents; already-admitted work can continue. An unresolved intent prevents acknowledgement; absence of a visible worker proves neither completion nor failure.`:`Execution requires a separate run invocation. Admission state does not renew the original deadline or establish a running controller.`})]}):(0,D.jsx)(`p`,{className:H.note,children:`No admission-control record. This does not establish process liveness.`}),(0,D.jsx)(F,{data:o},o.controllerId),o.outcomes.length?(0,D.jsx)(`div`,{className:H.tableWrap,role:`region`,"aria-label":`Recorded campaign outcomes`,tabIndex:0,children:(0,D.jsxs)(`table`,{children:[(0,D.jsx)(`caption`,{children:`Recorded campaign outcomes`}),(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`th`,{scope:`col`,children:`Campaign`}),(0,D.jsx)(`th`,{scope:`col`,children:`State`}),(0,D.jsx)(`th`,{scope:`col`,children:`Campaign attempted`}),(0,D.jsx)(`th`,{scope:`col`,children:`Reason`})]})}),(0,D.jsx)(`tbody`,{children:o.outcomes.map(e=>(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`th`,{scope:`row`,children:e.campaignId}),(0,D.jsx)(`td`,{children:e.state}),(0,D.jsx)(`td`,{children:e.attempted?`Yes`:`No`}),(0,D.jsx)(`td`,{children:e.reasonCode})]},e.campaignId))})]})}):(0,D.jsx)(`p`,{className:H.note,children:`No campaign outcomes available in this observation.`}),(0,D.jsx)(`p`,{className:H.note,children:`“In-flight” means an unresolved durable intent, not proof of a live worker. Campaign attempted records a call intent, not proof of worker execution or successful evaluation. A dispatch-not-started outcome remains held and does not authorize a retry.`}),o.diagnostics?.length?(0,D.jsxs)(`section`,{"aria-label":`Recorded handoff diagnostics`,children:[(0,D.jsx)(`h4`,{children:`Recorded handoff diagnostics`}),(0,D.jsx)(`p`,{className:H.note,children:`These are historical failure records, not live errors. Check the campaign outcome above for its current recorded state. A diagnostic never authorizes retrying a worker or publishing a branch.`}),(0,D.jsx)(`div`,{className:H.tableWrap,role:`region`,"aria-label":`Handoff diagnostic details`,tabIndex:0,children:(0,D.jsxs)(`table`,{children:[(0,D.jsx)(`caption`,{children:`Where the handoff stopped`}),(0,D.jsx)(`thead`,{children:(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`th`,{scope:`col`,children:`Campaign`}),(0,D.jsx)(`th`,{scope:`col`,children:`Stage`}),(0,D.jsx)(`th`,{scope:`col`,children:`Failure code`}),(0,D.jsx)(`th`,{scope:`col`,children:`Recorded at`})]})}),(0,D.jsx)(`tbody`,{children:o.diagnostics.map(e=>(0,D.jsxs)(`tr`,{children:[(0,D.jsx)(`th`,{scope:`row`,children:e.campaignId}),(0,D.jsx)(`td`,{children:W[e.phase]}),(0,D.jsx)(`td`,{children:e.code}),(0,D.jsx)(`td`,{children:(0,D.jsx)(U,{value:e.at})})]},e.campaignId))})]})}),(0,D.jsx)(`p`,{className:H.note,children:`Inspect the pinned campaign and delivery receipts before recovery. Completed outcomes can retain an earlier diagnostic; raw error text and private intent digests are omitted here.`})]}):null,o.reasons.length?(0,D.jsxs)(`details`,{className:H.reasons,children:[(0,D.jsxs)(`summary`,{children:[`Evidence reasons (`,o.reasons.length,`)`]}),(0,D.jsx)(`ul`,{children:o.reasons.map((e,t)=>(0,D.jsx)(`li`,{children:e},`${e}-${t}`))})]}):null]}):null]}):(0,D.jsx)(`p`,{className:H.empty,children:`Enter an ID to inspect this store. Nothing is queried until you submit.`})]})}var K={shell:`_shell_1077u_1`,scopeBar:`_scopeBar_1077u_2`,scope:`_scope_1077u_2`,brand:`_brand_1077u_4`,brandMark:`_brandMark_1077u_6`,workspace:`_workspace_1077u_7`,badge:`_badge_1077u_8`,store:`_store_1077u_9`,root:`_root_1077u_12`,actions:`_actions_1077u_13`,notice:`_notice_1077u_14`,main:`_main_1077u_16`,explanation:`_explanation_1077u_17`,checking:`_checking_1077u_20`},q={key:`universe-console-scope`,async fetch(){let e=await o(`/api/universe/console`);if(e?.schemaVersion!==1||e.mode!==`universe`||e.readOnly!==!0||typeof e.root!=`string`||!/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/.test(e.root)||[...e.root].some(e=>e.charCodeAt(0)<32||e.charCodeAt(0)>=127&&e.charCodeAt(0)<=159))throw Error(`The server did not establish an explicit read-only Universe scope.`);return e}};function J(){let e=d(q),t=u(q),n=c();return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(f,{}),(0,D.jsxs)(`div`,{className:K.shell,children:[(0,D.jsxs)(`header`,{className:K.scopeBar,children:[(0,D.jsxs)(`div`,{className:K.scope,children:[(0,D.jsxs)(`div`,{className:K.brand,children:[(0,D.jsxs)(`svg`,{className:K.brandMark,viewBox:`54 67 146 124`,"aria-hidden":`true`,focusable:`false`,children:[(0,D.jsx)(`path`,{fill:`currentColor`,d:`M106 76H123V115H100L113 154L99 179H72L59 156Z M130 76H147L194 156L181 179H154L140 154L153 115H130Z`}),(0,D.jsx)(`path`,{fill:`#2563EB`,d:`M110 121H143L133 152H120Z`})]}),(0,D.jsx)(`strong`,{children:`Ashlrverse`}),(0,D.jsx)(`span`,{className:K.workspace,children:`Experiments`})]}),(0,D.jsx)(`span`,{className:K.badge,children:`Read-only observation`}),e.data?(0,D.jsxs)(`details`,{className:K.store,children:[(0,D.jsx)(`summary`,{children:`Universe store`}),(0,D.jsx)(`code`,{"aria-label":`Universe store`,className:K.root,children:e.data.root})]}):null]}),(0,D.jsxs)(`div`,{className:K.actions,children:[(0,D.jsxs)(`button`,{type:`button`,onClick:n.cycle,children:[`Theme: `,n.theme]}),(0,D.jsx)(`button`,{type:`button`,onClick:()=>{r()},children:`Disconnect`})]})]}),(0,D.jsx)(`main`,{id:`main-content`,tabIndex:-1,className:K.main,children:e.status===`error`?(0,D.jsxs)(`section`,{role:`alert`,className:K.notice,children:[(0,D.jsx)(`h1`,{children:`Console scope unavailable`}),(0,D.jsxs)(`p`,{children:[e.error?.message,` No project data is shown until the scope can be checked.`]}),(0,D.jsx)(`button`,{type:`button`,onClick:t,children:`Retry scope check`})]}):e.data?(0,D.jsxs)(p.Provider,{value:e.data.root,children:[(0,D.jsx)(`p`,{className:K.explanation,children:`This console observes the selected Universe store. Run campaigns from your terminal; opening this page does not start work.`}),(0,D.jsx)(G,{},e.data.root),(0,D.jsx)(m,{})]}):(0,D.jsx)(`p`,{role:`status`,children:`Checking the selected Universe store…`})})]})]})}function Y(){let e=s();return(0,g.useEffect)(()=>{if(e!==`checking`)return;let t=!1;return i(q.key,q.fetch).then(()=>{t||l(a(q.key).status===`success`)}),()=>{t=!0}},[e]),e===`checking`?(0,D.jsx)(`p`,{className:K.checking,role:`status`,children:`Checking for an existing console session…`}):e===`unauthenticated`?(0,D.jsx)(h,{heading:`Connect to Ashlrverse`,command:`ashlr universe console --root /absolute/universe-store`}):(0,D.jsx)(J,{})}export{Y as UniverseConsoleApp};
|
|
2
|
-
//# sourceMappingURL=UniverseConsoleApp-DtXFhAhw.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,n}from"./index-QesfXBsb.js";import{V as r,h as i,i as a,m as o,o as s,p as c,q as l,r as u}from"./global-CNNGMril.js";import{t as d}from"./Epistemic-D7MxSmED.js";import{n as f}from"./StatusBadge-DHKRtttH.js";import{r as p}from"./queries-CyBE8nsW.js";import{D as m,E as h,L as g,O as _,P as ee,c as v,l as te,p as ne,s as y,t as re,u as ie}from"./ChartFrame-SygZ7B3x.js";import{a as b,i as x,n as S,r as C,t as w}from"./charts-C_xJbJiw.js";import{_ as T,c as E}from"./colors-BZ3a9wFf.js";import{n as D,o as O,r as ae,s as k,t as A}from"./format-DKrNjdwD.js";import{t as j}from"./StatTile-DPZ5yyaU.js";import{t as M}from"./calendar-day-BxBYHfX1.js";import{L as oe,S as se,kt as ce}from"./VerseConsoleApp-BCY5uSok.js";import{D as N,n as P,o as F}from"./verse-model-MMySehjj.js";import{_ as I,b as le,h as ue,m as de,n as fe,p as pe,t as me,y as he}from"./format-Dk4Fmxax.js";import{S as ge,d as _e}from"./context-model-Co4wh3SM.js";import{t as ve}from"./Tag-fordBsrJ.js";import{i as ye,n as be}from"./CapacityStrip-CkFz5vq2.js";import{h as xe,m as L,p as Se}from"./capacity-strip-model-Dn1cNOhz.js";import{v as Ce}from"./context-model-DV1zCfAm.js";import{c as we}from"./icons-0haWy6nh.js";import{t as Te}from"./Meter-CFNLpwA-.js";import{t as Ee}from"./types-D5XOdyw8.js";import{a as De,b as Oe,f as ke,h as Ae,r as je,u as Me,v as Ne}from"./cloud-model-CX407gPY.js";import{c as Pe,n as Fe,r as Ie}from"./cloud-queries-QAhpExlz.js";import{t as R}from"./cloud.module-DOP-N4Ch.js";import{t as Le}from"./use-ticker-CkJ4-0wU.js";import{d as Re}from"./fleet-model-Dfd5JyLR.js";import{f as ze}from"./surface-data-CchClvHo.js";import{a as Be,c as Ve,i as He,n as Ue,o as We,r as Ge,s as Ke,t as qe}from"./usage-queries-D1SU1t7r.js";import{a as Je,i as Ye,n as Xe,r as z,t as Ze}from"./local-model-C9xNi9fN.js";import{n as Qe,r as B,t as $e}from"./actions-Ci6I4C0l.js";import{n as et}from"./Surface-D--LXgQm.js";import{d as tt,i as nt,l as rt,n as it,s as at,t as ot,u as st}from"./CloudBudgetForm-Bd91iStN.js";import"./why-seat-model-jlDTwYSc.js";var V=t(e(),1),ct={claude:`var(--engine-claude, #c96442)`,codex:`var(--engine-codex, #10a37f)`,grok:`var(--engine-grok, #6b7280)`,local:`var(--engine-local, #7c5cff)`},lt={claude:`Claude publishes no local utilization signal, so there is no window percentage to read. Ashlr deliberately never throttles this seat on a guess.`,grok:`Grok is absent from the per-engine usage snapshot, so this fallback roster has no window data for it. Its real state comes from the per-account probe.`},ut=`Only a dispatch-ledger figure against a configured cap is available — see Dispatch limits.`,dt=`Local models have no subscription and no quota window — only whether the runtime is up.`,ft={"account-observation":`from this account’s observed windows`,"subscription-tracker":`from the subscription tracker`};function H(e){return{sourceState:`unknown`,complete:!1,reason:e}}function U(e){return e>=90?`danger`:e>=80?`warn`:`ok`}function W(e){return Number.isFinite(e)?Math.max(0,Math.min(100,e)):0}function pt(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function mt(e,t,n){return{kind:`measured`,source:e,scope:t,windows:n}}function ht(e){return{kind:`unknown`,reason:lt[e]??`No subscription window reading is reported for this engine.`}}function gt(e){let{engine:t,seat:n,subscription:r,frontier:i,engineSeatCount:a=1}=e;if(t===`local`)return{kind:`not-applicable`,reason:dt};let o=(n?.health.windows??[]).filter(e=>typeof e.usedPercent==`number`&&Number.isFinite(e.usedPercent));if(o.length>0)return mt(`account-observation`,`account`,o.map(e=>{let t=W(e.usedPercent),n=e.resetsAt?Date.parse(e.resetsAt):NaN;return{id:e.id,label:e.id,usedPct:t,resetsAt:Number.isNaN(n)?null:Math.round(n/1e3),tone:U(t)}}));if(r&&r.hasData&&r.windows.length>0)return mt(`subscription-tracker`,a>1?`engine`:`account`,r.windows.map((e,t)=>{let n=W(e.usedPercent);return{id:`${e.label}-${t}`,label:e.label,usedPct:n,resetsAt:pt(e.resetsAt),tone:U(n)}}));if(r&&!r.hasData)return ht(t);if(i&&i.subscriptionWindow.state!==`unknown`){if(i.limit===void 0){let e=W(i.subscriptionWindow.usedPct);return mt(`subscription-tracker`,a>1?`engine`:`account`,[{id:i.subscriptionWindow.windowLabel??`window`,label:i.subscriptionWindow.windowLabel??`window`,usedPct:e,resetsAt:pt(i.subscriptionWindow.resetsAt),tone:U(e)}])}return{kind:`unknown`,reason:ut}}return ht(t)}function _t(e){if(!e)return null;let t=(e.byProvider??[]).map(e=>({provider:e.provider,tier:e.tier,tokens:e.tokens,costUsd:e.costUsd,sharePct:e.sharePct})),n=(e,n)=>t.filter(t=>t.tier===e).reduce((e,t)=>e+(t[n]||0),0);return{window:e.window,totalTokens:e.totalTokens,totalCostUsd:e.totalCostUsd,localSavingsUsd:e.localSavingsUsd,localTokens:n(`local`,`tokens`),cloudTokens:n(`cloud`,`tokens`),localCostUsd:n(`local`,`costUsd`),cloudCostUsd:n(`cloud`,`costUsd`),byProvider:[...t].sort((e,t)=>t.tokens-e.tokens),empty:t.length===0&&e.totalTokens===0}}function vt(e,t){let n=[],r=new Set;for(let t of e??[]){let e=`${t.backend}:${t.window}`;r.add(e);let i=t.max>0?W(t.used/t.max*100):null;n.push({id:e,backend:t.backend,window:t.window,max:t.max,used:t.used,standing:t.standing,usedPct:i,configuredOnly:!1})}for(let e of t??[]){let t=`${e.engine}:${e.window}`;r.has(t)||(r.add(t),n.push({id:t,backend:e.engine,window:e.window,max:e.max,used:null,standing:`unknown`,usedPct:null,configuredOnly:!0}))}return n.sort((e,t)=>e.backend.localeCompare(t.backend)||e.window.localeCompare(t.window))}var yt=`No per-day series — these sources report aggregate spend only.`;function bt(e){if(!e)return{available:!1,reason:yt};if(e.sourceQuality?.sourceState!==`healthy`)return{available:!1,reason:`No per-day series: the daemon ledger is ${e.sourceQuality?.sourceState??`unavailable`}${e.sourceQuality?.reason?` (${e.sourceQuality.reason})`:``}.`};let t=e.ticks;if(!t||t.length===0)return{available:!1,reason:yt};let n=new Map;for(let e of t){let t=Date.parse(e.ts);if(Number.isNaN(t))continue;let r=ue(new Date(t));n.set(r,(n.get(r)??0)+(Number.isFinite(e.spentUsd)?e.spentUsd:0))}if(n.size<2)return{available:!1,reason:`No per-day series: only ${n.size} day${n.size===1?``:`s`} of daemon ticks is retained, which is not a trend.`};let r=[...n.keys()].sort(),i=r[0],a=r[r.length-1],o=[],s=M(a);for(let e=new Date(M(i));e.getTime()<=s;e=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)){let t=ue(e);o.push({day:t,usd:n.has(t)?n.get(t):null})}return{available:!0,days:o,tickCount:t.length,caveat:`Last ${t.length} daemon ticks · autonomous work only, chats excluded.`}}var xt={available:!1,reason:null,dailyBudgetUsd:null,subscriptionMaxPercent:null,todaySpentUsd:null,todaySpentDate:null,foundryLimits:[]};function G(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function K(e,t){if(!e)return null;for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t))return t}return null}function St(e,t=null){let n=G(e);if(!n)return{...xt,reason:t};let r=G(n.caps)??n,i=G(n.daemon),a=G(n.spend),o=[],s=r.foundryLimits;if(Array.isArray(s))for(let e of s){let t=G(e);if(!t)continue;let n=typeof t.engine==`string`?t.engine:null,r=K(t,[`max`]);n!==null&&r!==null&&o.push({engine:n,window:typeof t.window==`string`?t.window:`1d`,max:r})}return{available:!0,reason:t,dailyBudgetUsd:K(r,[`dailyBudgetUsd`]),subscriptionMaxPercent:K(r,[`subscriptionMaxPercent`]),todaySpentUsd:a?K(a,[`todayUsd`]):K(n,[`todaySpentUsd`,`todaySpendUsd`,`spendTodayUsd`])??K(i,[`todaySpentUsd`]),todaySpentDate:a&&typeof a.todayDate==`string`?a.todayDate:null,foundryLimits:o}}function Ct(e){return{...xt,reason:e}}var q={section:`_section_trwms_11`,header:`_header_trwms_20`,headerTitle:`_headerTitle_trwms_33`,headerMeta:`_headerMeta_trwms_41`,ghostButton:`_ghostButton_trwms_50`,scroll:`_scroll_trwms_67`,panel:`_panel_trwms_75`,panelHead:`_panelHead_trwms_83`,panelTitle:`_panelTitle_trwms_95`,panelNote:`_panelNote_trwms_104`,muted:`_muted_trwms_111`,noteList:`_noteList_trwms_124`,num:`_num_trwms_135`,tiles:`_tiles_trwms_142`,cards:`_cards_trwms_150`,card:`_card_trwms_150`,cardHead:`_cardHead_trwms_177`,cardLabel:`_cardLabel_trwms_187`,cardMeta:`_cardMeta_trwms_198`,cardFigures:`_cardFigures_trwms_208`,figure:`_figure_trwms_217`,figureLabel:`_figureLabel_trwms_224`,figureValue:`_figureValue_trwms_232`,windows:`_windows_trwms_241`,windowHead:`_windowHead_trwms_248`,windowPct:`_windowPct_trwms_258`,windowReset:`_windowReset_trwms_264`,track:`_track_trwms_277`,fill:`_fill_trwms_285`,unknownRule:`_unknownRule_trwms_313`,signalRow:`_signalRow_trwms_320`,reason:`_reason_trwms_327`,sourceLine:`_sourceLine_trwms_335`,split:`_split_trwms_350`,splitRow:`_splitRow_trwms_357`,splitBar:`_splitBar_trwms_366`,splitFill:`_splitFill_trwms_373`,limitList:`_limitList_trwms_379`,limitRow:`_limitRow_trwms_384`,limitName:`_limitName_trwms_397`,limitWindow:`_limitWindow_trwms_406`,limitValue:`_limitValue_trwms_411`,verdictDetail:`_verdictDetail_trwms_427`,bindingLabel:`_bindingLabel_trwms_435`,windowBlock:`_windowBlock_trwms_445`,windowBlockLead:`_windowBlockLead_trwms_454`,windowFlag:`_windowFlag_trwms_467`,creditsRow:`_creditsRow_trwms_475`,actionBlock:`_actionBlock_trwms_490`,command:`_command_trwms_496`,commandInline:`_commandInline_trwms_497`,negative:`_negative_trwms_512`,segmented:`_segmented_trwms_518`,segment:`_segment_trwms_518`,charts:`_charts_trwms_560`,tableScroll:`_tableScroll_trwms_572`,stateBlock:`_stateBlock_trwms_580`,stateTitle:`_stateTitle_trwms_588`,stateBody:`_stateBody_trwms_597`,stateActions:`_stateActions_trwms_603`,skeletonGrid:`_skeletonGrid_trwms_607`,capacity:`_capacity_trwms_662`,capacityHeadline:`_capacityHeadline_trwms_667`,chips:`_chips_trwms_682`,chip:`_chip_trwms_682`,chipLabel:`_chipLabel_trwms_729`,chipState:`_chipState_trwms_739`,chipPct:`_chipPct_trwms_759`,capacityFacts:`_capacityFacts_trwms_765`,capacityFact:`_capacityFact_trwms_765`,capacityMuted:`_capacityMuted_trwms_779`,proseResets:`_proseResets_trwms_785`,visuallyHidden:`_visuallyHidden_trwms_789`,cardTrigger:`_cardTrigger_trwms_809`,cardChevron:`_cardChevron_trwms_825`,detail:`_detail_trwms_850`,detailHead:`_detailHead_trwms_858`,detailTitle:`_detailTitle_trwms_865`,detailGrid:`_detailGrid_trwms_873`,detailColumn:`_detailColumn_trwms_880`,evidenceList:`_evidenceList_trwms_884`,evidenceRow:`_evidenceRow_trwms_891`,evidenceValue:`_evidenceValue_trwms_898`,figureTile:`_figureTile_trwms_909`,figureBig:`_figureBig_trwms_920`,figureCaption:`_figureCaption_trwms_928`,panelActions:`_panelActions_trwms_936`,placement:`_placement_trwms_949`,placementBar:`_placementBar_trwms_956`,placementGpu:`_placementGpu_trwms_966`,placementCpu:`_placementCpu_trwms_967`,placementText:`_placementText_trwms_973`,staleNotice:`_staleNotice_trwms_986`,staleFlag:`_staleFlag_trwms_1000`},J=n();function wt({view:e,ariaPrefix:t,prominent:n=!1,historical:r=!1}){let i=`${t} ${e.label}`;if(e.limitReached)return(0,J.jsxs)(`div`,{className:n?q.windowBlockLead:q.windowBlock,children:[(0,J.jsxs)(`div`,{className:q.windowHead,children:[(0,J.jsx)(`span`,{children:e.label}),(0,J.jsx)(`span`,{className:q.windowFlag,children:r?`limit reached · prior reading`:`limit reached`})]}),(0,J.jsx)(`div`,{className:q.track,"data-tone":`danger`,role:`img`,"aria-label":`${i}: ${r?`prior reading; `:``}the provider flagged this window as rate-limited, so no percentage is shown${r?`; current access unconfirmed`:``}`,children:(0,J.jsx)(`div`,{className:q.fill,style:{width:`100%`}})}),e.resetText?(0,J.jsxs)(`p`,{className:q.windowReset,children:[r?`Prior report: `:null,e.resetText]}):null]});if(e.usedPct===null)return(0,J.jsxs)(`div`,{className:n?q.windowBlockLead:q.windowBlock,children:[(0,J.jsxs)(`div`,{className:q.windowHead,children:[(0,J.jsx)(`span`,{children:e.label}),(0,J.jsx)(d,{quality:H(r?`No percentage was reported for this prior window reading.`:`No percentage was reported for this window.`),label:r?`${i} prior reading`:i,children:null})]}),(0,J.jsx)(`hr`,{className:q.unknownRule,"aria-hidden":`true`})]});let a=Math.round(e.usedPct);return(0,J.jsxs)(`div`,{className:n?q.windowBlockLead:q.windowBlock,children:[(0,J.jsxs)(`div`,{className:q.windowHead,children:[(0,J.jsx)(`span`,{children:e.label}),(0,J.jsxs)(`span`,{className:q.windowPct,children:[I(e.usedPct),r?` · prior`:null]})]}),(0,J.jsx)(`div`,{className:q.track,"data-tone":e.tone,role:`meter`,"aria-label":`${i} ${r?`prior reading used`:`used`}`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a,"aria-valuetext":`${r?`Prior reading: `:``}${I(e.usedPct)} used${e.resetText?`, ${r?`prior report: `:``}${e.resetText}`:``}${r?`; current access unconfirmed`:``}`,children:(0,J.jsx)(`div`,{className:q.fill,style:{width:`${a}%`}})}),e.resetText?(0,J.jsxs)(`p`,{className:q.windowReset,children:[r?`Prior report: `:null,e.resetText]}):null]})}var Tt={available:`success`,credits:`success`,tight:`warning`,exhausted:`danger`,"signed-out":`warning`,"probe-unsupported":`warning`,unknown:`unknown`};function Et({credits:e,historical:t}){if(!e)return null;let n=e.unlimited?`unlimited`:e.balance===null?null:e.balanceValue===null?e.balance:e.balanceValue.toLocaleString(`en-US`,{maximumFractionDigits:2});return(0,J.jsxs)(`div`,{className:q.creditsRow,children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:t?`Last reported credits`:`Credits`}),(0,J.jsx)(`span`,{className:q.num,title:e.balance??void 0,children:n??`not reported`}),(0,J.jsx)(`p`,{className:q.reason,children:t?`Prior balance for context only; current access and spendability are unconfirmed.`:`Separate from the window above — spendable even when the window is full.`})]})}function Dt({card:e,onOpen:t,expanded:n=!1,triggerId:r,detailId:i}){let a={"--engine-color":e.color},o=e.verdict.state===`signed-out`,s=t!==void 0&&e.hasDetail,c=e.evidence.state!==`observed`,l=(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.cardLabel,children:e.label}),(0,J.jsx)(f,{status:e.verdict.state,tone:Tt[e.verdict.state],children:e.verdict.headline})]});return(0,J.jsxs)(`article`,{className:q.card,style:a,"aria-label":`${e.label} usage`,"data-selected":n?`true`:void 0,children:[s?(0,J.jsxs)(`button`,{type:`button`,id:r,className:`${q.cardHead} ${q.cardTrigger}`,"aria-expanded":n,...i?{"aria-controls":i}:{},onClick:()=>t(e.id),children:[l,(0,J.jsx)(`span`,{className:q.cardChevron,"aria-hidden":`true`,children:n?`−`:`+`})]}):(0,J.jsx)(`div`,{className:q.cardHead,children:l}),(0,J.jsxs)(`div`,{className:q.cardMeta,children:[(0,J.jsx)(`span`,{children:P[e.engine]}),(0,J.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,J.jsx)(`span`,{children:e.plan?`${e.plan} plan`:`plan not reported`})]}),(0,J.jsx)(`p`,{className:q.verdictDetail,children:e.verdict.detail}),e.verdict.code?(0,J.jsxs)(`p`,{className:q.sourceLine,children:[`Probe reason `,(0,J.jsx)(`code`,{className:q.commandInline,children:e.verdict.code})]}):null,e.binding?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.bindingLabel,children:c?`Last reported window`:`Binding constraint`}),(0,J.jsx)(wt,{view:e.binding,ariaPrefix:e.label,prominent:!0,historical:c})]}):null,e.others.length>0?(0,J.jsx)(`div`,{className:q.windows,children:e.others.map(t=>(0,J.jsx)(wt,{view:t,ariaPrefix:e.label,historical:c},t.id))}):null,(0,J.jsx)(Et,{credits:e.credits,historical:c}),o?(0,J.jsx)(`div`,{className:q.actionBlock,children:e.reconnectCommand?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:`Reconnect`}),(0,J.jsx)(`code`,{className:q.command,children:e.reconnectCommand})]}):(0,J.jsxs)(`p`,{className:q.reason,children:[`Sign this account back in through its own provider CLI under its pinned profile. Ashlr does not print that invocation here, because the pinned-profile launcher path is never allowed onto a surface. `,(0,J.jsx)(`code`,{className:q.commandInline,children:`ashlr resources`}),` `,`shows the connection state once it is back.`]})}):null,e.sourceNote?(0,J.jsx)(`p`,{className:q.sourceLine,children:e.sourceNote}):null]})}var Ot={available:`success`,credits:`success`,tight:`warning`,exhausted:`danger`,"signed-out":`warning`,"probe-unsupported":`warning`,unknown:`unknown`},kt=`No per-account history is retained by any source this view reads: the accounts route is a point-in-time snapshot and the usage series carries no per-account breakdown. A trend is not drawn from one reading.`;function At(e,t){return e===null?`The source behind this card reports no health verdict at all.`:e===`unknown`?t===`claude`?`Health reads unknown, which is how this provider always reads — the probe has no health channel for it. It is not a fault.`:`Health reads unknown: the monitor took no verdict on this account.`:`Monitor health: ${e}.`}function Y({label:e,children:t}){return(0,J.jsxs)(`div`,{className:q.evidenceRow,children:[(0,J.jsx)(`dt`,{className:q.figureLabel,children:e}),(0,J.jsx)(`dd`,{className:q.evidenceValue,children:t})]})}function jt({card:e,onClose:t,headingId:n}){let{evidence:r}=e,i=e.credits,a=r.state!==`observed`,o=(0,V.useRef)(null);return(0,V.useEffect)(()=>{o.current?.focus()},[e.id]),(0,J.jsxs)(`section`,{className:q.detail,"aria-labelledby":n,children:[(0,J.jsxs)(`div`,{className:q.detailHead,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`h4`,{id:n,ref:o,tabIndex:-1,className:q.detailTitle,children:e.label}),(0,J.jsxs)(`div`,{className:q.cardMeta,children:[(0,J.jsx)(`span`,{children:P[e.engine]}),(0,J.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,J.jsx)(`span`,{children:e.plan?`${e.plan} plan`:`plan not reported`}),(0,J.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,J.jsx)(f,{status:e.verdict.state,tone:Ot[e.verdict.state],children:e.verdict.headline})]})]}),(0,J.jsx)(`button`,{type:`button`,className:q.ghostButton,onClick:t,children:`Close`})]}),(0,J.jsx)(`p`,{className:q.verdictDetail,children:e.verdict.detail}),(0,J.jsxs)(`div`,{className:q.detailGrid,children:[(0,J.jsxs)(`div`,{className:q.detailColumn,children:[(0,J.jsxs)(`span`,{className:q.figureLabel,children:[a&&e.allWindows.length>0?`Last reported windows`:`All windows`,` (`,e.allWindows.length,`)`]}),e.allWindows.length===0?(0,J.jsx)(`p`,{className:q.reason,children:`No windows reported.`}):(0,J.jsx)(`div`,{className:q.windows,children:e.allWindows.map((t,n)=>(0,J.jsx)(wt,{view:t,ariaPrefix:e.label,prominent:n===0,historical:a},t.id))}),e.allWindows.some(e=>!e.measured)?(0,J.jsx)(`p`,{className:q.reason,children:`Flagged windows show no percentage — the provider sent only a limit flag.`}):null]}),(0,J.jsxs)(`div`,{className:q.detailColumn,children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:`Probe evidence`}),(0,J.jsxs)(`dl`,{className:q.evidenceList,children:[(0,J.jsx)(Y,{label:`Connection`,children:r.state}),(0,J.jsx)(Y,{label:`Authentication`,children:r.authentication}),(0,J.jsx)(Y,{label:`Health`,children:At(r.health,e.engine)}),(0,J.jsx)(Y,{label:`Observed`,children:r.observedAt===null?(0,J.jsx)(`span`,{className:q.capacityMuted,children:`no observation timestamp was reported`}):(0,J.jsx)(`span`,{className:q.num,title:new Date(r.observedAt).toLocaleString(),children:Ce(r.observedAt)??new Date(r.observedAt).toLocaleString()})}),(0,J.jsx)(Y,{label:`Probe reason`,children:r.reasonCode===null?(0,J.jsx)(`span`,{className:q.capacityMuted,children:`none reported`}):(0,J.jsx)(`code`,{className:q.commandInline,children:r.reasonCode})}),r.unsupported?(0,J.jsxs)(Y,{label:`Version pin`,children:[(0,J.jsx)(`code`,{className:q.commandInline,children:r.unsupported.code}),r.unsupported.pinnedVersion?(0,J.jsxs)(J.Fragment,{children:[` `,`pinned to `,(0,J.jsx)(`span`,{className:q.num,children:r.unsupported.pinnedVersion}),`. A one-line constant bump, not an outage.`]}):null]}):null]}),i?(0,J.jsxs)(`div`,{className:q.creditsRow,children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:a?`Last reported credits`:`Credits`}),(0,J.jsx)(`span`,{className:q.num,title:i.balance??void 0,children:i.unlimited?`unlimited`:i.balanceValue===null?i.balance??`not reported`:i.balanceValue.toLocaleString(`en-US`,{maximumFractionDigits:2})}),(0,J.jsx)(`p`,{className:q.reason,children:a?`Prior balance for context only; current access and spendability are unconfirmed.`:`Separate from the windows above; shown as the provider reports it.`})]}):null,r.notes.length>0?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:`Provider notes`}),(0,J.jsx)(`ul`,{className:q.noteList,children:r.notes.map(e=>(0,J.jsx)(`li`,{className:q.capacityMuted,children:e},e))})]}):null]})]}),(0,J.jsx)(`p`,{className:q.sourceLine,children:kt})]})}function Mt(e,t=3e4){let[n,r]=(0,V.useState)(()=>Date.now());return(0,V.useEffect)(()=>{if(!e)return;let n=setInterval(()=>r(Date.now()),t);return()=>clearInterval(n)},[e,t]),n}function Nt({overview:e}){let t=Mt(e.resets.length>0),n=(0,V.useMemo)(()=>xe(e.resets,t),[e.resets,t]),r=n===null?0:n.atMs-t,i=r<=0,a=e.local;return(0,J.jsxs)(`section`,{className:q.capacity,"aria-label":`Resets and local headroom`,children:[(0,J.jsxs)(`dl`,{className:q.capacityFacts,children:[(0,J.jsxs)(`div`,{className:q.capacityFact,children:[(0,J.jsx)(`dt`,{className:q.figureLabel,children:`Nearest reset`}),(0,J.jsx)(`dd`,{children:n===null?(0,J.jsx)(`span`,{className:q.capacityMuted,children:`No seat reported a reset time.`}):i?(0,J.jsxs)(`span`,{className:q.capacityMuted,children:[(0,J.jsx)(`span`,{className:q.num,children:n.seatLabel}),` · `,n.windowLabel,` was due to reset `,le(new Date(n.atMs).toISOString(),t),` — this reading predates the rollover.`]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.num,children:L(r)}),` `,(0,J.jsxs)(`span`,{className:q.capacityMuted,children:[`· `,n.seatLabel,` `,n.windowLabel,`, resets`,` `,le(new Date(n.atMs).toISOString(),t)]})]})})]}),(0,J.jsxs)(`div`,{className:q.capacityFact,children:[(0,J.jsx)(`dt`,{className:q.figureLabel,children:`Local headroom`}),(0,J.jsx)(`dd`,{children:a===null?(0,J.jsx)(`span`,{className:q.capacityMuted,children:`No local source answered.`}):a.reachable?a.headroomBytes===null?(0,J.jsx)(`span`,{className:q.capacityMuted,children:`Either the resident total or the machine budget was not reported, so headroom cannot be computed.`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.num,children:z(a.headroomBytes)}),` `,(0,J.jsxs)(`span`,{className:q.capacityMuted,children:[`free of `,z(a.memoryBudgetBytes),` · `,a.residentCount,` resident,`,` `,a.installedCount,` installed`]})]}):(0,J.jsx)(`span`,{className:q.capacityMuted,children:`The local runtime did not answer this probe, so headroom is unknown — not zero, and not full.`})})]}),(0,J.jsxs)(`div`,{className:q.capacityFact,children:[(0,J.jsx)(`dt`,{className:q.figureLabel,children:`Agentic locally`}),(0,J.jsx)(`dd`,{children:a===null||!a.reachable?(0,J.jsx)(`span`,{className:q.capacityMuted,children:`unknown`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{className:q.num,children:a.agenticCount}),` `,(0,J.jsxs)(`span`,{className:q.capacityMuted,children:[`of `,a.installedCount,` installed models can drive a session`,a.unknownToolCount>0?`; ${a.unknownToolCount} did not report a capability list`:``]})]})})]})]}),e.proseResets.length>0?(0,J.jsxs)(`div`,{className:q.proseResets,children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:`Resets reported as text`}),(0,J.jsx)(`ul`,{className:q.noteList,children:e.proseResets.map(e=>(0,J.jsxs)(`li`,{className:q.capacityMuted,children:[e.seatLabel,` · `,e.windowLabel,` — `,e.text]},`${e.seatLabel}-${e.windowLabel}-${e.text}`))}),(0,J.jsx)(`p`,{className:q.capacityMuted,children:`Shown as the provider wrote it — no countdown.`})]}):null]})}function Pt(e){let t=e.fullest;if(t===null)return`—`;let n=`${t.exact?``:`≤`}${N(t.tokens)}`;if(t.window===null)return n;let r=t.tokens/t.window*100;return`${n} / ${F(t.window)} · ${r<=100?I(r):ae(r/100)}`}var Ft=[{key:`seat`,label:`Seat`,render:e=>(0,J.jsxs)(J.Fragment,{children:[e.label,(0,J.jsxs)(`span`,{className:q.limitWindow,children:[` · ${P[e.engine]}`,e.retired?` · no longer connected`:``]})]})},{key:`chats`,label:`Chats`,numeric:!0,render:e=>A(e.sessions)},{key:`turns`,label:`Turns`,numeric:!0,render:e=>A(e.turns)},{key:`prompt`,label:`Prompt tokens`,numeric:!0,render:e=>N(e.promptTokens)},{key:`hit`,label:`Cache hit`,numeric:!0,render:e=>e.cacheHitRatio===null?e.promptTokens>0?`none reported`:`—`:_e(e.cacheHitRatio)},{key:`compactions`,label:`Compactions`,numeric:!0,render:e=>A(e.compactions)},{key:`expansive`,label:`Expansive chats`,numeric:!0,render:e=>A(e.expansiveSessions)},{key:`fullest`,label:`Fullest context`,numeric:!0,render:e=>Pt(e)}];function It({rows:e,unavailableReason:t}){return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-efficiency`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-efficiency`,className:q.panelTitle,children:`Context efficiency`}),(0,J.jsx)(`p`,{className:q.panelNote,children:`Per seat, across every chat on this machine. Cache hit is the share of prompt tokens served from the provider's cache.`})]}),t===null?e.length===0?(0,J.jsx)(`p`,{className:q.muted,children:`No chats yet.`}):(0,J.jsx)(`div`,{className:q.tableScroll,children:(0,J.jsx)(v,{caption:`Context efficiency per seat: chats, turns, prompt tokens, cache-hit ratio, compactions, expansive chats and the fullest context`,columns:Ft,rows:[...e],rowKey:e=>e.seatId})}):(0,J.jsx)(`p`,{className:q.muted,children:t}),(0,J.jsx)(`p`,{className:q.sourceLine,children:`Computed in this browser from each chat's recorded totals — no extra request, no spend. “None reported” means the provider reported no cache activity, not a 0% hit rate; a figure marked ≤ is an upper bound. Compactions are counted from Verse 3.9 on; earlier ones were not recorded.`})]})}function Lt(e){switch(e){case`ok`:return`success`;case`warn`:return`warning`;case`over`:return`danger`;case`unlimited`:return`neutral`;default:return`unknown`}}function Rt({rows:e,capsNote:t}){return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-limits`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-limits`,className:q.panelTitle,children:`Dispatch limits`}),(0,J.jsx)(`p`,{className:q.panelNote,children:`Calls recorded in the dispatch ledger against each configured foundry cap. This is not subscription utilization.`})]}),t?(0,J.jsx)(`p`,{className:q.muted,children:t}):null,e.length===0?(0,J.jsx)(`p`,{className:q.muted,children:`No foundry limits are configured, so dispatches are uncapped on this machine. Nothing here is being throttled.`}):(0,J.jsx)(`div`,{className:q.limitList,children:e.map(e=>(0,J.jsxs)(`div`,{className:q.limitRow,children:[(0,J.jsxs)(`span`,{className:q.limitName,children:[e.backend,(0,J.jsxs)(`span`,{className:q.limitWindow,children:[`per `,e.window]}),(0,J.jsx)(f,{status:e.standing,tone:Lt(e.standing),children:e.standing===`unknown`?`no reading`:e.standing})]}),e.usedPct===null?(0,J.jsx)(`hr`,{className:q.unknownRule,"aria-hidden":`true`}):(0,J.jsx)(`div`,{className:q.track,"data-tone":e.usedPct>=100?`danger`:e.usedPct>=80?`warn`:`ok`,role:`meter`,"aria-label":`${e.backend} dispatches against its ${e.window} cap`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(e.usedPct),children:(0,J.jsx)(`div`,{className:q.fill,style:{width:`${Math.round(e.usedPct)}%`}})}),(0,J.jsx)(`span`,{className:q.limitValue,children:e.used===null?`configured ${A(e.max)}`:`${A(e.used)} / ${A(e.max)}`})]},e.id))})]})}var zt=`Cost is ESTIMATED from a static price table in this repo, not billed. It will not match a provider invoice.`,Bt=`Codex reports cacheRead and cacheWrite as a hardcoded 0 upstream, so any window containing Codex traffic understates cache activity — its cache economics are not comparable to Claude’s.`,Vt=`A flat heuristic of $3 per 1M local tokens, not a quote and not a measured price.`,Ht=`Fewer than two days in this window carry a rollup row, which is not a trend.`,Ut=`The daily rollup carries no per-engine or local/cloud columns, and the only tier split available is a single aggregate with no dates on it. Apportioning the daily totals by that aggregate’s ratio would invent a shape nobody measured, so no per-day split is drawn — the aggregate below is the real figure.`;function Wt(e,t){return e.reduce((e,n)=>e+(t(n)===null?0:1),0)}function X(e,t){return e.map(e=>({x:M(e.day),y:t(e)}))}function Gt(e){return e.reduce((e,t)=>({tokensIn:e.tokensIn+t.tokensIn,tokensOut:e.tokensOut+t.tokensOut,estCostUsd:e.estCostUsd+t.estCostUsd,sessions:e.sessions+t.sessions,dayCount:e.dayCount+1}),{tokensIn:0,tokensOut:0,estCostUsd:0,sessions:0,dayCount:0})}function Kt(e){return e?e.days.length<2?{available:!1,reason:Ht}:{available:!0,days:e.days,series:[{id:`tokensIn`,label:`Tokens in`,points:X(e.days,e=>e.tokensIn)},{id:`tokensOut`,label:`Tokens out`,points:X(e.days,e=>e.tokensOut)}]}:{available:!1,reason:`No usage series has been loaded.`}}function qt(e){return e?e.days.length<2?{available:!1,reason:Ht}:{available:!0,days:e.days,series:[{id:`estCostUsd`,label:`Estimated spend`,points:X(e.days,e=>e.estCostUsd)}]}:{available:!1,reason:`No usage series has been loaded.`}}function Jt(e){if(!e)return{available:!1,reason:`No usage series has been loaded.`};let t=Wt(e.days,e=>e.cacheHitRate);return t===0?{available:!1,reason:`No cache data in this window.`}:t<2?{available:!1,reason:`Only ${t} day in this window reported a cache hit rate, which is not a trend.`}:{available:!0,days:e.days,series:[{id:`cacheHitRate`,label:`Cache hit rate`,points:X(e.days,e=>e.cacheHitRate)}]}}function Yt(e){return e?Wt(e.days,e=>e.cacheRead)+Wt(e.days,e=>e.cacheWrite)===0?{available:!1,reason:`No cache data in this window.`}:e.days.length<2?{available:!1,reason:Ht}:{available:!0,days:e.days,series:[{id:`cacheRead`,label:`Cache read`,points:X(e.days,e=>e.cacheRead)},{id:`cacheWrite`,label:`Cache write`,points:X(e.days,e=>e.cacheWrite)}]}:{available:!1,reason:`No usage series has been loaded.`}}function Xt(e){if(e.length===0)return{tokensInPerDay:null,tokensOutPerDay:null,estCostUsdPerDay:null,peakCostDay:null};let t=Gt(e),n=e.reduce((e,t)=>t.estCostUsd>e.estCostUsd?t:e);return{tokensInPerDay:t.tokensIn/e.length,tokensOutPerDay:t.tokensOut/e.length,estCostUsdPerDay:t.estCostUsd/e.length,peakCostDay:{day:n.day,usd:n.estCostUsd}}}function Zt(e,t){if(!(!e||e.days.length<2))return e.days.map(t)}var Z={"7d":`Last 7 days`,"30d":`Last 30 days`},Qt=T(0),$t=T(1),en=[{key:`provider`,label:`Provider`,render:e=>e.provider},{key:`tier`,label:`Tier`,render:e=>e.tier},{key:`tokens`,label:`Tokens`,numeric:!0,render:e=>A(e.tokens)},{key:`cost`,label:`Cost`,numeric:!0,render:e=>k(e.costUsd)},{key:`share`,label:`Share`,numeric:!0,render:e=>I(e.sharePct)}];function tn({label:e,tokens:t,total:n,color:r}){let i=n>0?t/n*100:0,a=Math.round(i);return(0,J.jsxs)(`div`,{className:q.splitRow,children:[(0,J.jsx)(`span`,{children:e}),(0,J.jsx)(`div`,{className:q.splitBar,role:`meter`,"aria-label":`${e} share of tokens`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a,children:(0,J.jsx)(`div`,{className:q.splitFill,style:{width:`${a}%`,"--split-color":r}})}),(0,J.jsxs)(`span`,{className:q.num,children:[A(t),` · `,I(i)]})]})}function nn({split:e,savingsNote:t}){let n=e.localTokens+e.cloudTokens,r=e.byProvider.map(e=>({label:e.provider,value:e.tokens}));return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-split`,children:[(0,J.jsx)(`div`,{className:q.panelHead,children:(0,J.jsxs)(`h3`,{id:`verse-usage-split`,className:q.panelTitle,children:[`Local vs cloud · `,e.window]})}),(0,J.jsxs)(`div`,{className:q.tiles,children:[(0,J.jsx)(j,{label:`Not spent (ran locally)`,value:(0,J.jsx)(`span`,{className:q.num,children:k(e.localSavingsUsd)}),caption:`Estimated cloud list price of the ${e.window} local tokens. ${t??`A heuristic, not a quote.`}`}),(0,J.jsx)(j,{label:`Estimated cloud spend · ${e.window}`,value:(0,J.jsx)(`span`,{className:q.num,children:k(e.cloudCostUsd)}),caption:zt}),(0,J.jsx)(j,{label:`Tokens · ${e.window}`,value:(0,J.jsx)(`span`,{className:q.num,children:A(e.totalTokens)}),caption:`Local and cloud combined`})]}),e.empty?(0,J.jsx)(`p`,{className:q.muted,style:{marginTop:`var(--space-4)`},children:`No provider activity recorded in this window. Choose a longer window, or run a chat turn and it appears here.`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:q.split,style:{marginTop:`var(--space-4)`},children:[(0,J.jsx)(tn,{label:`Local`,tokens:e.localTokens,total:n,color:Qt}),(0,J.jsx)(tn,{label:`Cloud`,tokens:e.cloudTokens,total:n,color:$t})]}),(0,J.jsx)(x,{items:[{label:`Local`,color:Qt,kind:`swatch`},{label:`Cloud`,color:$t,kind:`swatch`}]}),(0,J.jsx)(b,{title:`Tokens by provider`,description:`Share of the ${e.window} window`,empty:r.length===0,emptyMessage:`No provider rows in this window.`,table:(0,J.jsx)(v,{caption:`Tokens and cost by provider`,columns:en,rows:e.byProvider,rowKey:e=>e.provider}),children:(0,J.jsx)(S,{data:r,orientation:`horizontal`,height:Math.max(120,r.length*34),formatValue:e=>A(e),ariaLabel:`Tokens by provider over the ${e.window} window`})})]})]})}var rn={available:`success`,credits:`success`,tight:`warning`,exhausted:`danger`,"signed-out":`warning`,"probe-unsupported":`warning`,unknown:`unknown`},an=T(0),on=T(5);function sn(e,t=5e3){let[n,r]=(0,V.useState)(()=>Date.now());return(0,V.useEffect)(()=>{if(!e)return;let n=setInterval(()=>r(Date.now()),t);return()=>clearInterval(n)},[e,t]),n}function cn({row:e}){let t=e.resident?e.expiresAtMs:null,n=sn(t!==null);return t===null?`—`:Ye(t-n)}function ln({row:e}){return e.tools===`unknown`?(0,J.jsx)(d,{quality:H(`The runtime did not report a capability list for this model.`),label:`${e.displayName} tool support`,children:null}):e.tools===`supported`?(0,J.jsx)(f,{status:`agentic`,tone:`success`,children:`tools`}):(0,J.jsx)(f,{status:`no-tools`,tone:`danger`,children:`no tools`})}function un({row:e}){if(e.sizeBytes===null)return(0,J.jsx)(`span`,{children:`—`});let t=e.resident?`Resident size reported by the runtime.`:`On-disk size; not in memory.`;return(0,J.jsxs)(`span`,{title:t,children:[z(e.sizeBytes),e.resident&&e.memoryPct!==null?` · ${I(e.memoryPct)} of machine`:``]})}function dn({row:e}){if(!e.resident)return(0,J.jsx)(`span`,{className:q.capacityMuted,children:`not resident`});if(e.gpuPct===null)return(0,J.jsx)(d,{quality:H(`The runtime reported no VRAM split for this resident model.`),label:`${e.displayName} placement`,children:null});let t=Math.round(e.gpuPct);return(0,J.jsxs)(`span`,{className:q.placement,children:[(0,J.jsxs)(`span`,{className:q.placementBar,role:`img`,"aria-label":`${e.displayName}: ${I(e.gpuPct)} of resident bytes on GPU, ${I(100-e.gpuPct)} on CPU`,children:[(0,J.jsx)(`span`,{className:q.placementGpu,style:{width:`${t}%`,"--split-color":an}}),(0,J.jsx)(`span`,{className:q.placementCpu,style:{width:`${100-t}%`,"--split-color":on}})]}),(0,J.jsx)(`span`,{className:q.placementText,children:e.placement===`unknown`?`${I(e.gpuPct)} GPU`:`${e.placement} · ${I(e.gpuPct)} GPU`})]})}function fn({row:e}){return e.nativeContext===null&&e.configuredContext===null?(0,J.jsx)(`span`,{children:`—`}):e.contextTruncated?(0,J.jsx)(`span`,{title:`Native context is ${F(e.nativeContext)}; Ashlr runs this seat at ${F(e.configuredContext)}.`,children:`${F(e.configuredContext)} of ${F(e.nativeContext)}`}):(0,J.jsx)(`span`,{children:F(e.nativeContext??e.configuredContext)})}function pn({row:e}){return(0,J.jsxs)(`span`,{title:e.name,children:[e.displayName,e.nameDetail?(0,J.jsxs)(`span`,{className:q.muted,children:[` `,e.nameDetail]}):null]})}var mn=[{key:`name`,label:`Model`,render:e=>(0,J.jsx)(pn,{row:e})},{key:`state`,label:`State`,render:e=>e.resident?(0,J.jsx)(f,{status:`resident`,tone:`success`,children:`resident`}):(0,J.jsx)(f,{status:`installed`,tone:`neutral`,children:`installed`})},{key:`tools`,label:`Agentic`,render:e=>(0,J.jsx)(ln,{row:e})},{key:`size`,label:`Size`,numeric:!0,render:e=>(0,J.jsx)(un,{row:e})},{key:`placement`,label:`Placement`,render:e=>(0,J.jsx)(dn,{row:e})},{key:`params`,label:`Params`,numeric:!0,render:e=>e.parameterSize??`—`},{key:`quant`,label:`Quant`,render:e=>e.quantization??`—`},{key:`context`,label:`Context`,numeric:!0,render:e=>(0,J.jsx)(fn,{row:e})},{key:`keepalive`,label:`Keep-alive`,numeric:!0,render:e=>(0,J.jsx)(cn,{row:e})}];function hn({staleness:e}){return e.stale?(0,J.jsxs)(`p`,{className:q.staleNotice,role:`status`,children:[(0,J.jsx)(`span`,{className:q.staleFlag,children:`last known-good`}),` Local figures are from`,` `,Xe(e.staleForMs),` ago`,e.runtimes.length>0?` (${e.runtimes.join(`, `)})`:``,` — the runtime didn't answer in time.`]}):null}function gn({card:e,staleness:t}){let n={"--engine-color":e.color},r=e.usedPct===null?null:Math.round(e.usedPct),i=e.usedPct===null?null:I(e.usedPct);return(0,J.jsxs)(`article`,{className:q.card,style:n,"aria-label":`Local usage`,children:[(0,J.jsxs)(`div`,{className:q.cardHead,children:[(0,J.jsx)(`span`,{className:q.cardLabel,children:`Local`}),(0,J.jsx)(f,{status:e.verdict.state,tone:rn[e.verdict.state],children:e.verdict.headline})]}),(0,J.jsxs)(`div`,{className:q.cardMeta,children:[(0,J.jsx)(`span`,{children:`Ollama`}),(0,J.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,J.jsx)(`span`,{children:`no subscription, no quota, no bill`})]}),t?.stale?(0,J.jsx)(hn,{staleness:t}):null,(0,J.jsx)(`p`,{className:q.verdictDetail,children:e.verdict.detail}),e.verdict.code?(0,J.jsxs)(`p`,{className:q.sourceLine,children:[`Probe reason `,(0,J.jsx)(`code`,{className:q.commandInline,children:e.verdict.code})]}):null,(0,J.jsx)(`span`,{className:q.bindingLabel,children:`Memory budget`}),r===null?(0,J.jsxs)(`div`,{className:q.windowBlockLead,children:[(0,J.jsxs)(`div`,{className:q.windowHead,children:[(0,J.jsx)(`span`,{children:`Resident against machine memory`}),(0,J.jsx)(d,{quality:H(`Resident size or machine memory not reported.`),label:`local memory budget`,children:null})]}),(0,J.jsx)(`hr`,{className:q.unknownRule,"aria-hidden":`true`})]}):(0,J.jsxs)(`div`,{className:q.windowBlockLead,children:[(0,J.jsxs)(`div`,{className:q.windowHead,children:[(0,J.jsx)(`span`,{children:`Resident against machine memory`}),(0,J.jsx)(`span`,{className:q.windowPct,children:i})]}),(0,J.jsx)(`div`,{className:q.track,"data-tone":e.tone,role:`meter`,"aria-label":`Local resident models against machine memory budget`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,"aria-valuetext":`${z(e.residentBytes)} of ${z(e.memoryBudgetBytes)} resident`,children:(0,J.jsx)(`div`,{className:q.fill,style:{width:`${r}%`}})}),(0,J.jsxs)(`p`,{className:q.windowReset,children:[z(e.residentBytes),` of `,z(e.memoryBudgetBytes)]})]}),(0,J.jsxs)(`p`,{className:q.sourceLine,children:[e.residentCount,` resident · `,e.installedCount,` installed`]})]})}function _n({serving:e}){if(e===void 0)return(0,J.jsx)(`p`,{className:q.sourceLine,children:`How many local agents can run at once is set by the serving runtime — see Autonomy.`});let t=Re(e);return(0,J.jsxs)(`p`,{className:q.sourceLine,children:[(0,J.jsxs)(`strong`,{children:[t.headline,`.`]}),` `,t.detail]})}function vn({view:e,serving:t}){let[n,r]=(0,V.useState)(!1),i=(0,V.useMemo)(()=>Je(e?.runtimes??[]),[e]),a=(0,V.useMemo)(()=>n?(e?.rows??[]).filter(e=>e.tools!==`unsupported`):e?.rows??[],[e,n]),o=(0,V.useMemo)(()=>a.filter(e=>e.resident&&e.sizeBytes!==null),[a]);return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-local`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-local`,className:q.panelTitle,children:`Local availability`}),(0,J.jsx)(`p`,{className:q.panelNote,children:`Resident models answer immediately. Models without tool support can't drive a session.`})]}),(0,J.jsx)(_n,{serving:t}),(0,J.jsx)(hn,{staleness:i}),e===null?(0,J.jsxs)(`p`,{className:q.muted,children:[`No local runtime answered. Start Ollama (`,(0,J.jsx)(`code`,{className:q.commandInline,children:`ollama serve`}),`) or llama-server.`]}):e.reachable?e.rows.length===0?(0,J.jsx)(`p`,{className:q.muted,children:`No models installed. Pull one to give Ashlr a local seat.`}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:q.tiles,children:[(0,J.jsx)(yn,{label:`Resident now`,value:String(e.rows.filter(e=>e.resident).length),caption:e.residentBytes===null?`total unknown — a model reported no size`:`${z(e.residentBytes)} in memory`}),(0,J.jsx)(yn,{label:`Installed`,value:String(e.rows.length),caption:`On disk; the first turn on one of these pays a load`}),(0,J.jsx)(yn,{label:`Can drive a session`,value:String(e.agenticCount),caption:e.unknownToolCount>0?`${e.nonAgenticCount} cannot; ${e.unknownToolCount} did not report a capability list`:`${e.nonAgenticCount} cannot drive one`}),(0,J.jsx)(yn,{label:`Machine memory`,value:e.memoryBudgetBytes===null?`unknown`:z(e.memoryBudgetBytes),caption:e.freeMemoryBytes===null?`free memory not reported`:`${z(e.freeMemoryBytes)} reported free by the OS`})]}),(0,J.jsxs)(`div`,{className:q.panelActions,children:[(0,J.jsx)(`button`,{type:`button`,className:q.segment,"aria-pressed":n,onClick:()=>r(e=>!e),children:`Hide models that cannot drive a session`}),e.nonAgenticCount>0?(0,J.jsxs)(`span`,{className:q.capacityMuted,children:[e.nonAgenticCount,` of `,e.rows.length,` installed models cannot drive an agentic session.`]}):null]}),(0,J.jsx)(`div`,{className:q.tableScroll,children:(0,J.jsx)(v,{caption:`Local models: residency, tool support, size, placement, parameters, quantization, context and keep-alive`,columns:mn,rows:a,rowKey:e=>`${e.runtime??`runtime`}:${e.name}`})}),(0,J.jsx)(`div`,{className:q.charts,children:(0,J.jsx)(b,{title:`Resident memory by model`,description:`What is actually in memory right now`,caveat:`Resident models with a reported size.`,empty:o.length===0,emptyMessage:`No models in memory.`,table:(0,J.jsx)(v,{caption:`Resident size per model`,columns:[{key:`name`,label:`Model`,render:e=>(0,J.jsx)(pn,{row:e})},{key:`size`,label:`Resident`,numeric:!0,render:e=>z(e.sizeBytes)}],rows:o,rowKey:e=>e.name}),children:(0,J.jsx)(S,{data:o.map(e=>({label:e.displayName,value:e.sizeBytes})),orientation:`horizontal`,height:Math.max(120,o.length*34),formatValue:e=>z(e),ariaLabel:`Resident memory by local model`})})}),e.runtimes.length>0?(0,J.jsx)(`ul`,{className:q.noteList,children:e.runtimes.map(e=>(0,J.jsxs)(`li`,{className:q.capacityMuted,children:[e.runtime,`:`,` `,e.reachable?`${e.modelCount} model${e.modelCount===1?``:`s`} reported`:`did not answer`,e.stale?` · retained reading, ${Xe(e.staleForMs)} old`:``,e.reason?` · `:``,e.reason?(0,J.jsx)(`code`,{className:q.commandInline,children:e.reason}):null]},e.runtime))}):null,(0,J.jsxs)(`p`,{className:q.sourceLine,title:[...e.notes,`Sizes and GPU share come from the runtime’s own report.`].join(`
|
|
2
|
-
`),children:[A(e.rows.length),` models installed · sizes from the runtime`]})]}):(0,J.jsxs)(`p`,{className:q.muted,children:[`No local runtime answered. Start Ollama (`,(0,J.jsx)(`code`,{className:q.commandInline,children:`ollama serve`}),`) or llama-server.`,e.reason?(0,J.jsxs)(J.Fragment,{children:[` `,`Probe reason `,(0,J.jsx)(`code`,{className:q.commandInline,children:e.reason}),`.`]}):null]})]})}function yn({label:e,value:t,caption:n}){return(0,J.jsxs)(`div`,{className:q.figureTile,children:[(0,J.jsx)(`span`,{className:q.figureLabel,children:e}),(0,J.jsx)(`span`,{className:q.figureBig,children:t}),(0,J.jsx)(`span`,{className:q.figureCaption,children:n})]})}var bn=[`7d`,`30d`],xn=[{key:`day`,label:`Day`,render:e=>D(e.day)},{key:`in`,label:`Tokens in`,numeric:!0,render:e=>A(e.tokensIn)},{key:`out`,label:`Tokens out`,numeric:!0,render:e=>A(e.tokensOut)},{key:`sessions`,label:`Sessions`,numeric:!0,render:e=>A(e.sessions)}],Sn=[{key:`day`,label:`Day`,render:e=>D(e.day)},{key:`cost`,label:`Estimated spend`,numeric:!0,render:e=>k(e.estCostUsd)}],Cn=[{key:`day`,label:`Day`,render:e=>D(e.day)},{key:`read`,label:`Cache read`,numeric:!0,render:e=>e.cacheRead===null?`not reported`:A(e.cacheRead)},{key:`write`,label:`Cache write`,numeric:!0,render:e=>e.cacheWrite===null?`not reported`:A(e.cacheWrite)}],wn=[{key:`day`,label:`Day`,render:e=>D(e.day)},{key:`rate`,label:`Cache hit rate`,numeric:!0,render:e=>e.cacheHitRate===null?`not reported`:pe(e.cacheHitRate)},{key:`read`,label:`Cache read`,numeric:!0,render:e=>e.cacheRead===null?`not reported`:A(e.cacheRead)}];function Tn({series:e,window:t,onWindowChange:n,unavailableReason:r,loading:i}){let a=e?Gt(e.days):null,o=e?Xt(e.days):null,s=Kt(e),c=qt(e),l=Jt(e),u=Yt(e);return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-series`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-series`,className:q.panelTitle,children:`Token output and spend`}),(0,J.jsx)(`div`,{className:q.segmented,role:`group`,"aria-label":`Series window`,children:bn.map(e=>(0,J.jsx)(`button`,{type:`button`,className:q.segment,"aria-pressed":e===t,onClick:()=>n(e),children:e},e))})]}),r?(0,J.jsxs)(`p`,{className:q.muted,children:[r,` No token or spend series can be drawn, and none is invented in its place.`]}):i&&e===null?(0,J.jsxs)(`p`,{className:q.muted,"aria-busy":`true`,children:[`Loading the `,Z[t].toLowerCase(),` rollup…`]}):e===null||e.days.length===0?(0,J.jsxs)(`p`,{className:q.muted,children:[`No days in the `,Z[t].toLowerCase(),` rollup.`]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:q.tiles,children:[(0,J.jsx)(j,{label:`Tokens in · ${t}`,value:(0,J.jsx)(`span`,{className:q.num,children:A(a?.tokensIn??0)}),caption:`Across ${a?.dayCount??0} recorded days`,trend:Zt(e,e=>e.tokensIn),trendLabel:`Tokens in per day`}),(0,J.jsx)(j,{label:`Tokens out · ${t}`,value:(0,J.jsx)(`span`,{className:q.num,children:A(a?.tokensOut??0)}),caption:`What the models actually produced`,trend:Zt(e,e=>e.tokensOut),trendLabel:`Tokens out per day`}),(0,J.jsx)(j,{label:`Estimated spend · ${t}`,value:(0,J.jsx)(`span`,{className:q.num,children:k(a?.estCostUsd??0)}),caption:`Estimated from a static price table — not billed`,trend:Zt(e,e=>e.estCostUsd),trendLabel:`Estimated spend per day`}),(0,J.jsx)(j,{label:`Sessions · ${t}`,value:(0,J.jsx)(`span`,{className:q.num,children:A(a?.sessions??0)}),caption:`Rollup rows, not billed calls`,trend:Zt(e,e=>e.sessions),trendLabel:`Sessions per day`}),(0,J.jsx)(j,{label:`Estimated spend per active day`,value:(0,J.jsx)(`span`,{className:q.num,children:o?.estCostUsdPerDay===null||o===null?`unknown`:k(o.estCostUsdPerDay)}),caption:`Across the ${a?.dayCount??0} days that carry a rollup row — not the ${t} calendar span`}),(0,J.jsx)(j,{label:`Heaviest day`,value:(0,J.jsx)(`span`,{className:q.num,children:o?.peakCostDay?k(o.peakCostDay.usd):`unknown`}),caption:o?.peakCostDay?`${D(o.peakCostDay.day)} — estimated, not billed`:`No day in this window carries a cost row.`})]}),(0,J.jsxs)(`div`,{className:q.charts,children:[(0,J.jsx)(b,{title:`Tokens per day`,description:Z[t],empty:!s.available,emptyMessage:s.available?``:s.reason,table:(0,J.jsx)(v,{caption:`Tokens in and out per day`,columns:xn,rows:e.days,rowKey:e=>e.day}),children:s.available?(0,J.jsx)(C,{series:s.series,formatX:e=>O(e),formatY:e=>A(e),ariaLabel:`Tokens in and out per day over ${Z[t].toLowerCase()}`}):null}),(0,J.jsx)(b,{title:`Estimated spend per day`,description:Z[t],caveat:zt,empty:!c.available,emptyMessage:c.available?``:c.reason,table:(0,J.jsx)(v,{caption:`Estimated spend per day`,columns:Sn,rows:e.days,rowKey:e=>e.day}),children:c.available?(0,J.jsx)(C,{series:c.series,area:!0,formatX:e=>O(e),formatY:e=>k(e),ariaLabel:`Estimated spend per day over ${Z[t].toLowerCase()}`}):null}),(0,J.jsx)(b,{title:`Cache hit rate`,description:Z[t],caveat:Bt,empty:!l.available,emptyMessage:l.available?``:l.reason,table:l.available?(0,J.jsx)(v,{caption:`Cache hit rate per day`,columns:wn,rows:e.days,rowKey:e=>e.day}):void 0,children:l.available?(0,J.jsx)(C,{series:l.series,formatX:e=>O(e),formatY:e=>ae(e),ariaLabel:`Cache hit rate per day over ${Z[t].toLowerCase()}`}):null}),(0,J.jsx)(b,{title:`Cache read and write tokens`,description:Z[t],caveat:Bt,empty:!u.available,emptyMessage:u.available?``:u.reason,table:u.available?(0,J.jsx)(v,{caption:`Cache read and write tokens per day`,columns:Cn,rows:e.days,rowKey:e=>e.day}):void 0,children:u.available?(0,J.jsx)(C,{series:u.series,formatX:e=>O(e),formatY:e=>A(e),ariaLabel:`Cache read and write tokens per day over ${Z[t].toLowerCase()}`}):null}),(0,J.jsx)(b,{title:`Local vs cloud per day`,description:Z[t],empty:!0,emptyMessage:Ut,children:null})]}),e.caveats.length>0?(0,J.jsx)(`ul`,{className:q.noteList,children:e.caveats.map(e=>(0,J.jsx)(`li`,{className:q.capacityMuted,children:e},e))}):null]})]})}var En=[{key:`day`,label:`Day`,render:e=>D(e.day)},{key:`usd`,label:`Spend`,numeric:!0,render:e=>e.usd===null?`no tick retained`:k(e.usd)}];function Dn({series:e,todaySpentUsd:t,todaySpentDate:n,dailyBudgetUsd:r,showSeries:i=!0}){let a=n!==null&&!de(n),o=a?null:t,s=a?`Nothing recorded today — the last ledger day is ${D(n)}`:r===null?`Configured daily budget unavailable`:r===0?`Daily budget is 0 — the loop is stopped`:`of a ${k(r)} daily budget`;return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-spend`,children:[(0,J.jsx)(`div`,{className:q.panelHead,children:(0,J.jsx)(`h3`,{id:`verse-usage-spend`,className:q.panelTitle,children:`Spend`})}),(0,J.jsx)(`div`,{className:q.tiles,children:(0,J.jsx)(j,{label:`Spend today`,value:(0,J.jsx)(`span`,{className:q.num,children:o===null?`unknown`:k(o)}),caption:s})}),i?(0,J.jsx)(`div`,{style:{marginTop:`var(--space-4)`},children:e.available?(0,J.jsx)(b,{title:`Spend per day`,description:`Autonomous loop, from the daemon tick ledger`,caveat:e.caveat,table:(0,J.jsx)(v,{caption:`Spend per day from the daemon tick ledger`,columns:En,rows:e.days,rowKey:e=>e.day}),children:(0,J.jsx)(C,{series:[{id:`spend`,label:`Spend`,points:e.days.map(e=>({x:M(e.day),y:e.usd}))}],area:!0,formatX:e=>O(e),formatY:e=>k(e),ariaLabel:`Autonomous loop spend per day`})}):(0,J.jsx)(b,{title:`Spend per day`,empty:!0,emptyMessage:e.reason,children:null})}):(0,J.jsx)(`p`,{className:q.sourceLine,children:`Per-day spend is charted above from the full usage rollup. The daemon tick ledger is not drawn again here.`})]})}function On({now:e=Date.now()}){let t=c(Ie,{freshMs:15e3}),n=o(Ie);oe(n,Fe);let r=Qe();if(!t.data||!t.data.available)return null;let i=t.data.value,a=i?.budget??null,s=a?Me(a):null,l=i?Ne(i.seat):null,u=a?ke(a.canLaunch,`The cloud budget does not allow another launch right now.`):null;return(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-cloud-credits`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-cloud-credits`,className:q.panelTitle,children:`Cloud credits`}),(0,J.jsx)(`p`,{className:q.panelNote,children:`What Claude Code cloud sessions launched by Verse have cost, as an estimate, and the limits Verse keeps them inside.`})]}),!a||!s?(0,J.jsx)(`p`,{className:R.muted,children:t.data.reason??`The cloud lane did not answer.`}):(0,J.jsxs)(`div`,{className:R.body,children:[(0,J.jsx)($e,{actions:r}),l?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`p`,{className:R.standing,title:Ae(a.estimatedRemainingUsd),children:[(0,J.jsx)(f,{status:`not-set-up`,tone:`warning`,children:je}),(0,J.jsxs)(`span`,{className:R.muted,children:[De(a.estimatedRemainingUsd),` · estimate`]})]}),(0,J.jsx)(`p`,{className:R.notice,"data-tone":`warning`,role:`note`,children:l})]}):(0,J.jsx)(Te,{value:s.value,max:s.max,label:`Credits remaining`,valueText:s.text,tone:s.tone,"aria-label":`Estimated cloud credits remaining: ${s.text}, ${s.usedText}`}),(0,J.jsxs)(`p`,{className:R.estimateNote,children:[he(a.estimateNote,e),` `,(0,J.jsxs)(`a`,{className:R.link,href:Ee,target:`_blank`,rel:`noreferrer noopener`,"aria-label":`Check the real balance on claude.ai`,children:[`Check usage on claude.ai `,(0,J.jsx)(we,{width:12,height:12,"aria-hidden":`true`})]})]}),s.warning&&!l?(0,J.jsx)(`p`,{className:R.notice,"data-tone":`warning`,role:`note`,children:s.warning}):null,(0,J.jsx)(`p`,{className:R.facts,children:Oe(a,e)}),u?(0,J.jsxs)(`p`,{className:R.notice,"data-tone":`warning`,role:`note`,children:[`New launches are paused: `,u]}):null,(0,J.jsx)(ot,{idPrefix:`usage-cloud-budget`,budget:a.budget,busy:r.busy,disabled:r.readOnly,onSave:e=>r.act(()=>Pe(e),`Change the cloud budget.`)})]}),r.dialogs]})}var kn=3e5,An={};function jn(e){let t=c(ze,{freshMs:6e4}),n=o(ze);oe(n,kn);let i=(0,V.useSyncExternalStore)((0,V.useCallback)(e=>l(`verse-bootstrap`,e),[]),()=>r(`verse-bootstrap`),()=>r(`verse-bootstrap`)).data?.seats??null,[a,s]=(0,V.useState)(An);(0,V.useEffect)(()=>{e&&(An=rt(An,e),s(An))},[e]);let u=t.data?.value??null,d=(0,V.useMemo)(()=>at(a,u),[a,u]);return(0,V.useMemo)(()=>tt(e,d.readings,i,d.recorded),[e,d,i])}var Mn={session:`5-hour`,weekly:`weekly`};function Nn(){return(0,J.jsx)(`svg`,{width:`1.6em`,height:`0.8em`,viewBox:`0 0 24 12`,fill:`none`,stroke:`currentColor`,strokeWidth:1.6,strokeLinecap:`round`,focusable:`false`,"aria-hidden":`true`,children:(0,J.jsx)(`path`,{d:`M6 2.5a3.5 3.5 0 1 0 0 7c2.5 0 3.5-2 6-3.5s3.5-3.5 6-3.5a3.5 3.5 0 1 1 0 7c-2.5 0-3.5-2-6-3.5S8.5 2.5 6 2.5Z`})})}var Pn=16,Fn=14,In=160,Q=e=>`${Math.round(e)}%`,Ln=_(0,100,4),Rn=.05,zn=`Lines without recorded history start when Verse opened.`;function Bn(e,t,n){if(e.recorded&&t!==null)return`No readings before ${n(t)}.`}function Vn({title:e,description:t,caveat:n,points:r,from:i,to:a,line:o,width:s,formatTime:c,ariaLabel:l}){let u=(0,V.useRef)(null),d=ie(u,s),f=r.filter(e=>e.t>=i&&e.t<=a).sort((e,t)=>e.t-t.t),p=te(),_=g(Ln.map(e=>Q(e)),28,56,p),b=Math.max(40,d-_-Fn),x=m(i,a,_,_+b),S=m(0,100,134,Pn),C=e=>S(Math.min(100,Math.max(0,e))),w=ee(f.map(e=>({x:e.t,y:e.remaining}))).map(e=>e.map(e=>({x:x(e.x),y:C(e.y)}))),T=[...f].reverse().find(e=>e.remaining!==null)??null;return(0,J.jsx)(re,{title:e,description:t,caveat:n,status:T?{kind:`ready`}:{kind:`empty`,message:`No reading inside this window.`},table:(0,J.jsx)(v,{caption:e,columns:[{key:`t`,label:`When`,render:e=>c(e.t)},{key:`r`,label:`Remaining`,numeric:!0,render:e=>e.remaining===null?`—`:Q(e.remaining)}],rows:f,rowKey:e=>String(e.t)}),children:(0,J.jsx)(`div`,{ref:u,className:y.plotWrap,children:(0,J.jsxs)(`svg`,{className:y.svg,width:d,height:In,viewBox:`0 0 ${d} ${In}`,role:`img`,"aria-label":l,children:[Ln.map(e=>(0,J.jsxs)(`g`,{children:[(0,J.jsx)(`line`,{className:y.grid,x1:_,x2:_+b,y1:S(e),y2:S(e)}),(0,J.jsx)(`text`,{className:y.tick,x:_-6,y:S(e),dy:`0.32em`,textAnchor:`end`,children:Q(e)})]},e)),(0,J.jsx)(`line`,{className:y.axis,x1:_,x2:_+b,y1:S(0),y2:S(0)}),(0,J.jsx)(`text`,{className:y.tick,x:_,y:152,textAnchor:`start`,children:c(i)}),(0,J.jsx)(`text`,{className:y.tick,x:_+b,y:152,textAnchor:`end`,children:`Now`}),o?(0,J.jsxs)(`g`,{"data-role":`reserve`,children:[(0,J.jsx)(`line`,{className:y.reference,x1:_,x2:_+b,y1:S(o.value),y2:S(o.value)}),(0,J.jsxs)(`text`,{"data-role":`reserve-label`,className:`${y.tick} ${y.halo}`,x:_+4,y:S(o.value)-5,textAnchor:`start`,children:[o.label,` · `,Q(o.value)]})]}):null,w.map((e,t)=>(0,J.jsxs)(`g`,{"data-role":`remaining`,children:[(0,J.jsx)(`path`,{className:y.wash,fill:E,d:ne(e,e.map(e=>({x:e.x,y:S(0)})))}),(0,J.jsx)(`path`,{className:y.line,stroke:E,d:h(e)})]},t)),T&&T.remaining!==null?(0,J.jsx)(`circle`,{className:y.marker,cx:x(T.t),cy:C(T.remaining),r:4,fill:E}):null]})})})}function Hn({burn:e,now:t,width:n}){if(e.free)return(0,J.jsxs)(`section`,{className:B.freeSeat,"aria-label":`${e.label}: free local seat`,children:[(0,J.jsxs)(`span`,{className:B.freeHead,children:[(0,J.jsx)(ve,{engine:e.engine}),(0,J.jsx)(`span`,{className:B.freeTitle,children:e.label})]}),(0,J.jsx)(`span`,{className:B.freeValue,children:(0,J.jsx)(Nn,{})}),(0,J.jsxs)(`span`,{className:B.freeBody,children:[`Local — free, no provider window.`,!e.eligible&&e.reason?` ${e.reason}`:``]})]});let r=`${e.label}${e.window?` · ${Mn[e.window]}`:``}`,i=me(e.enabled?e.eligible?`Autonomy may use it now`:e.reason??`Held back from autonomy`:`Not used by autonomy`),a=[...e.points].reverse().find(e=>e.remaining!==null)?.remaining??null,o=(0,J.jsxs)(`section`,{className:B.freeSeat,"aria-label":r,children:[(0,J.jsxs)(`span`,{className:B.freeHead,children:[(0,J.jsx)(ve,{engine:e.engine}),(0,J.jsx)(`span`,{className:B.freeTitle,children:e.label})]}),(0,J.jsx)(et,{tone:`unknown`,children:`No usage reading yet.`})]});if(e.window===null)return o;let s=it[e.window],c=nt(e.window),l=e.resetText?st(e.resetText):null,u=e.points.filter(e=>e.remaining!==null),d=u.length?Math.min(...u.map(e=>e.t)):null,f=e=>u.length<2||d===null||d-e>Rn*s;if(e.resetAt===null||e.start===null){if(a===null)return o;let p=Math.max(...u.map(e=>e.t)),m=Math.max(t,p),h=m-s,g=l??`reset time not reported`,_=l?`Reset words couldn't be placed on a clock`:`No reset time reported`;return(0,J.jsx)(Vn,{title:r,description:`${Q(a)} left · ${g} · ${i}`,caveat:[`${_}, so no projection.`,f(h)?Bn(e,d,c):void 0].filter(Boolean).join(` `),points:e.points,from:h,to:m,line:e.line,width:n,formatTime:c,ariaLabel:`${r}: ${Q(a)} left, ${g}. ${fe(i)}`})}let p=e.resetFrom===`words`&&l!==null?`${a===null?``:`${Q(a)} left · `}${l} · ${i}`:i;return(0,J.jsx)(w,{title:r,description:p,caveat:f(e.start)?Bn(e,d,c):void 0,status:e.points.length===0?{kind:`empty`,message:`No reading yet in this window.`}:void 0,points:e.points,capacity:100,start:e.start,resetAt:e.resetAt,now:t,reserve:e.line??void 0,height:In,width:n,formatValue:Q,formatTime:c})}function Un({burns:e,now:t,compact:n}){return e.length===0?(0,J.jsx)(et,{tone:`unknown`,children:`Seat capacity unavailable.`}):(0,J.jsx)(`div`,{className:n?B.burnStrip:B.burnGrid,role:`group`,"aria-label":`Seat windows`,title:e.some(e=>e.window!==null&&!e.recorded)?zn:void 0,children:e.map(e=>(0,J.jsx)(`div`,{className:B.burnItem,children:(0,J.jsx)(Hn,{burn:e,now:t})},e.seatId))})}function Wn({budget:e}){let t=jn(e),{compact:n}=ce(),r=Le(3e4);return(0,J.jsx)(Un,{burns:t,now:r,compact:n})}var Gn={five_hour:`Session · rolling 5h`,seven_day:`Week · all models`,seven_day_sonnet:`Week · Sonnet`,seven_day_opus:`Week · Opus`,seven_day_fable:`Week · Fable`,codex:`Week · Codex`,primary:`Primary window`,secondary:`Secondary window`};function Kn(e){if(e.label)return e.label;let t=Gn[e.id];if(t)return t;let n=/^seven_day_(.+)$/.exec(e.id);return n?`Week · ${n[1]}`:e.id}function qn(e,t){let n=le(e,t);return n===null?null:`resets ${n}`}function Jn(e,t=Date.now()){let n=e.resetDescription??qn(e.resetsAt,t);return{id:e.id,label:Kn(e),usedPct:e.limitReached?null:e.usedPercent,tone:e.limitReached?`danger`:e.usedPercent===null?`ok`:U(e.usedPercent),resetText:n,resetsAt:e.resetsAt,limitReached:e.limitReached,measured:e.measured}}function Yn(e){let t=e.windows,n=t.find(e=>e.limitReached);if(n)return n;let r=t.filter(e=>e.usedPercent!==null),i=r.length===0?null:r.reduce((e,t)=>(t.usedPercent??0)>(e.usedPercent??0)?t:e),a=e.binding;if(a){let e=t.find(e=>e.id===a.id)??null;if(e&&(a.limitReached||e.limitReached||i===null||(a.usedPercent??-1)>=(i.usedPercent??-1)))return e}return i}var Xn={"connection-monitor-stopped":"Native polling stopped after a metadata sample could not confirm its process cleanup, so these readings are frozen and no new ones are being taken. Restarting `ashlr verse` begins a new collection generation.","collector-unavailable":`This server is not collecting native metadata — no live readings.`,"collector-not-running":`No account collector is running in this server, so these cards fall back to whatever shared evidence exists.`,"collector-owned":"Another collector (`ashlr resource-console`) holds the metadata lease; Verse reads its shared evidence.","collector-start-failed":`The metadata collectors could not be started in this server, so no probe has run.`,"connection-polling-paused":`Native polling is paused because no client has asked for account data recently; it resumes on the next request.`,"connection-not-checked":`No probe has run for this account yet in this server.`,"connection-reading-expired":`The last verified window expired before another check succeeded, so no current usage reading is available.`,"baseline-historical":`Only an operator-seeded historical baseline exists for this account; it cannot establish current usage or access.`,"native-account-unavailable":`The collection owner marked this account unavailable for use. Its retained window is shown for context and cannot authorize work.`,"connection-probe-unavailable":`The probe for this account did not return a usable result, so there is no measurement to show.`,"accounts-pool-unavailable":`This accounts root has no readable pool or bindings, so there is nothing to probe.`,"accounts-collection-not-configured":`Native account collection is not configured for this accounts root.`,"usage-version-unsupported":`The usage probe is pinned to a different provider build than the one installed, so it did not run.`,"usage-account-changed":`The account behind this profile changed between reads; the reading was discarded.`,"probe-account-unavailable":`The pinned profile answered but carries no usable account identity — it is not authenticated.`,"probe-account-unsupported":`The pinned profile is authenticated by a method this probe does not accept, so no reading was taken.`,"probe-account-changed":`The account behind this pinned profile changed mid-probe, so the reading was discarded.`,"probe-account-hint-mismatch":`The pinned profile is signed in as a different account than this seat expects.`,"probe-native-unavailable":`The provider CLI for this pinned profile could not be run, so no reading was taken.`,"probe-native-exit-failed":`The provider CLI for this pinned profile exited without a usable result.`,"probe-provider-error":`The provider CLI returned an error instead of account metadata.`,"probe-protocol-unsupported":`The installed provider CLI does not speak the metadata protocol this probe requires.`,"probe-quota-invalid":`The provider returned a quota shape this probe does not recognise; no reading taken.`,"probe-timed-out":`The metadata probe for this account timed out before it returned anything.`};function Zn(e,t){return e===null?t:Xn[e]??t}var Qn={available:0,credits:1,tight:2,exhausted:3,"signed-out":4,"probe-unsupported":5,unknown:6},$n=80,er=100;function tr(e){return e?e.unlimited?!0:e.hasCredits?e.balanceValue!==null&&e.balanceValue>0:!1:!1}function nr(e){return e.unlimited?`credits are unlimited on this plan`:`a credit balance of ${e.balance??`an unreported amount`} is still spendable`}function rr(e,t){if(e.authentication===`signed-out`||e.state===`signed-out`)return{state:`signed-out`,headline:`Signed out`,detail:Zn(e.reason,`The probe reached this account’s pinned profile but it is not authenticated, so there is nothing to measure.`),code:e.reason};if(e.unsupported)return{state:`probe-unsupported`,headline:`Probe version-pinned`,detail:`The usage probe failed closed with ${e.unsupported.code}${e.unsupported.pinnedVersion?`; it is pinned to ${e.unsupported.pinnedVersion}`:``}. No window can be read until the pin is bumped.`,code:e.unsupported.code};if(e.state!==`observed`)return{state:`unknown`,headline:t===null?`No current reading`:`Last reading`,detail:t===null?`${Zn(e.reason,`The latest account check did not succeed.`)} Current access and headroom are unconfirmed.`:`${Zn(e.reason,`The latest account check did not succeed.`)} The window shown is a prior verified reading for context only; current access and headroom are unconfirmed.`,code:e.reason};let n=tr(e.credits);if(t===null||t.usedPercent===null&&!t.limitReached)return n&&e.credits?{state:`credits`,headline:`Usable on credits`,detail:`No window reading reached this surface, but ${nr(e.credits)}.`,code:e.reason}:{state:`unknown`,headline:`No reading`,detail:Zn(e.reason,`No usage reading yet.`),code:e.reason};let r=t.usedPercent,i=t.limitReached||r!==null&&r>=er,a=Kn(t);return i?n&&e.credits?{state:`credits`,headline:`Usable on credits`,detail:`${a} is ${t.limitReached?`reported as limit reached`:`fully used`}, but ${nr(e.credits)} — credits are independent of the window, so this account is not blocked.`,code:null}:{state:`exhausted`,headline:t.limitReached?`Limit reached`:`Window exhausted`,detail:t.limitReached?`The provider flagged ${a} as rate-limited; no percentage was reported.`:`${a} is at ${I(r)} — it is the binding constraint on this account.`,code:null}:r>=$n?{state:`tight`,headline:`Running tight`,detail:`${a} is the binding constraint at ${I(r)}.`,code:null}:{state:`available`,headline:`Usable now`,detail:`${a} is the binding constraint at ${I(r)}.`,code:null}}function ir(e,t=null){let n=Yn(e),r=rr(e,n),i=e.provider,a=e.windows.filter(e=>e.id!==n?.id).map(e=>Jn(e)),o=n?Jn(n):null,s={state:e.state,authentication:e.authentication,health:e.health,reasonCode:e.reason,observedAt:e.observedAt,notes:e.notes,unsupported:e.unsupported};return{id:e.id,label:e.label,engine:i,color:ct[i],plan:e.planType,verdict:r,allWindows:o?[o,...a]:a,evidence:s,hasDetail:e.windows.length>0||e.notes.length>0||e.credits!==null||e.reason!==null,binding:o,others:a,credits:e.credits,reconnectCommand:e.reconnectCommand,observedAt:e.observedAt,rank:Qn[r.state],sourceNote:t}}function ar(e){if(!e)return[];let t=new Set;for(let n of e.accounts)for(let e of n.notes)t.add(e);return[...t]}function or(e){return e?e.accounts.map(e=>ir(e)).sort((e,t)=>e.rank-t.rank||e.label.localeCompare(t.label)):[]}function sr(e){if(!e)return null;let t=e.models.filter(e=>e.loaded),n=e.reachable?t.length===0?0:t.some(e=>e.sizeBytes===null)?null:t.reduce((e,t)=>e+(t.sizeBytes??0),0):null,r=e.memoryBudgetBytes,i=n!==null&&r!==null&&r>0?Math.max(0,Math.min(100,n/r*100)):null,a=e.reachable?t.length>0?{state:`available`,headline:`Resident now`,detail:`${t.length} model${t.length===1?``:`s`} already in memory — no load delay, no quota, no bill.`,code:null}:e.models.length>0?{state:`tight`,headline:`Installed, not loaded`,detail:`${e.models.length} model${e.models.length===1?` is`:`s are`} installed but nothing is resident, so the first turn pays a load.`,code:null}:{state:`unknown`,headline:`No models installed`,detail:`The runtime is reachable but reports no installed models.`,code:null}:{state:`unknown`,headline:`Runtime unreachable`,detail:`No local runtime answered. Start Ollama or LM Studio.`,code:e.reason};return{residentCount:t.length,installedCount:e.models.length,residentBytes:n,memoryBudgetBytes:r,usedPct:i,tone:i===null?`ok`:U(i),verdict:a,color:ct.local,rank:Qn[a.state]}}var cr=`Per-account probes are unavailable on this server, so these cards are derived from the seat roster and the per-engine snapshots.`;function lr(e){let{seat:t,control:n,frontier:r,engineSeatCount:i}=e;if(t.engine===`local`)return null;let a=n?.subscriptionUsage?.find(e=>String(e.engine)===t.engine),o=r?.engines.find(e=>String(e.engine)===t.engine),s=gt({engine:t.engine,seat:t,subscription:a,frontier:o,engineSeatCount:i}),c=s.kind===`measured`?s.windows.map(e=>({id:e.id,label:e.label,usedPercent:e.usedPct,resetsAt:e.resetsAt===null?null:new Date(e.resetsAt*1e3).toISOString(),resetDescription:null,limitReached:!1,measured:!0})):[];return{account:{id:t.id,label:t.label,provider:t.engine,state:s.kind===`measured`?`observed`:`unavailable`,authentication:`unknown`,health:null,planType:a?.plan??null,observedAt:t.health.observedAt,windows:c,binding:null,credits:null,reason:s.kind===`measured`?null:s.reason,unsupported:null,reconnectCommand:null,notes:[]},sourceNote:s.kind===`measured`?`${ft[s.source]}${s.scope===`engine`?` · engine-wide, shared by every account on this engine`:``}`:null}}function ur(e){let t=e.bootstrap?.seats??[],n=new Map;for(let e of t)n.set(e.engine,(n.get(e.engine)??0)+1);return t.map(t=>lr({seat:t,control:e.control,frontier:e.frontier,engineSeatCount:n.get(t.engine)??1})).filter(e=>e!==null).map(e=>ir(e.account,e.sourceNote)).sort((e,t)=>e.rank-t.rank||e.label.localeCompare(t.label))}function $(e){return e instanceof s&&e.status===401}function dr({title:e,body:t,detail:n,action:r}){return(0,J.jsxs)(`div`,{className:q.stateBlock,role:`status`,children:[(0,J.jsx)(`p`,{className:q.stateTitle,children:e}),(0,J.jsx)(`p`,{className:q.stateBody,children:t}),n?(0,J.jsxs)(`details`,{className:q.stateBody,children:[(0,J.jsx)(`summary`,{children:`Details`}),(0,J.jsx)(`code`,{className:q.commandInline,children:n})]}):null,r?(0,J.jsx)(`div`,{className:q.stateActions,children:r}):null]})}var fr=3e4,pr={gridColumn:`1 / -1`};function mr(e,t){(0,V.useEffect)(()=>{let n=null,r=()=>{n!==null&&clearInterval(n),n=null},i=()=>{let i=typeof document>`u`||document.visibilityState===`visible`;i&&n===null?n=setInterval(e,t):i||r()};return i(),document.addEventListener(`visibilitychange`,i),()=>{document.removeEventListener(`visibilitychange`,i),r()}},[e,t])}function hr(){let[e,t]=(0,V.useState)(`7d`),[n,r]=(0,V.useState)(null),s=c(Ge),l=c(Be),d=c(Ue(e)),f=c(qe),m=c(p),h=c(He),g=c(se),_=i(Ge),ee=i(Be),v=i(Ue(e)),te=i(qe),ne=i(p),y=i(He),re=i(se),ie=o(Ge),b=o(Be);mr(ie,fr),mr(b,fr);let x=()=>{_(),ee(),v(),te(),ne(),y(),re()},S=(0,V.useMemo)(()=>s.data?.available?We(s.data.raw):null,[s.data]),C=(0,V.useMemo)(()=>l.data?.available?Ke(l.data.raw):null,[l.data]),w=(0,V.useMemo)(()=>d.data?.available?Ve(d.data.raw,e):null,[d.data,e]),T=(0,V.useMemo)(()=>h.data?h.data.available?St(h.data.raw,h.data.reason):Ct(h.data.reason??`Configured caps unavailable.`):Ct(`Configured caps not loaded yet.`),[h.data]),E=S===null,D=(0,V.useMemo)(()=>S?or(S):ur({bootstrap:g.data,control:m.data,frontier:f.data}),[S,g.data,m.data,f.data]),O=(0,V.useMemo)(()=>Ze(C),[C]),k=(0,V.useMemo)(()=>sr(C),[C]),A=(0,V.useMemo)(()=>ar(S),[S]),M=(0,V.useMemo)(()=>{let e=D.map(e=>({key:e.id,rank:e.rank,label:e.label,kind:`account`,card:e}));return k&&e.push({key:`local`,rank:k.rank,label:`Local`,kind:`local`,card:k}),e.sort((e,t)=>e.rank-t.rank||e.label.localeCompare(t.label))},[D,k]),oe=(0,V.useMemo)(()=>Se({cards:D,localCard:k,localView:O}),[D,k,O]),ce=(0,V.useMemo)(()=>Je(O?.runtimes??[]),[O]),N=ye(),P=(0,V.useMemo)(()=>new Set(D.map(e=>e.id)),[D]),F=(0,V.useMemo)(()=>new Map(N.seats.map(e=>[e.id,e.accountId])),[N.seats]),I=(0,V.useMemo)(()=>{if(n===null)return null;for(let[e,t]of F)if(t===n)return e;return null},[F,n]),le=(0,V.useCallback)(e=>{let t=F.get(e)??e;P.has(t)&&r(e=>e===t?null:t)},[F,P]),ue=e=>{r(t=>t===e?null:e)},de=(0,V.useCallback)(()=>{let e=n;r(null),e!==null&&typeof document<`u`&&document.getElementById(`verse-account-trigger-${e}`)?.focus()},[n]),fe=(0,V.useMemo)(()=>ge(g.data?.sessions??[],g.data?.seats??[]),[g.data]),pe=g.data?null:g.status===`error`?`The chat list could not be read${g.error?.message?` (${g.error.message})`:``}, so efficiency cannot be computed.`:`Reading the chat list…`,me=(0,V.useMemo)(()=>_t(m.data?.usage),[m.data]),he=(0,V.useMemo)(()=>vt(m.data?.limits,T.foundryLimits),[m.data,T.foundryLimits]),_e=(0,V.useMemo)(()=>bt(m.data?.daemonObservation),[m.data]),ve=T.available?T.todaySpentUsd:m.data?.daemon.todaySpentUsd??null,xe=T.available?T.todaySpentDate:null,L=$(s.error)||$(l.error)||$(d.error)||$(f.error)||$(m.error)||$(g.error),Ce=!L&&f.status===`error`&&m.status===`error`&&f.data===void 0&&m.data===void 0,we=!L&&!Ce&&s.data===void 0&&f.data===void 0&&m.data===void 0&&(s.status===`loading`||s.status===`idle`||f.status===`loading`||m.status===`loading`||f.status===`idle`||m.status===`idle`),Te=s.status===`refreshing`||f.status===`refreshing`||m.status===`refreshing`,Ee=S?.sampledAt??f.data?.generatedAt??m.data?.ts??null;return(0,J.jsxs)(`section`,{className:q.section,"aria-label":`Usage`,children:[(0,J.jsxs)(`header`,{className:q.header,"data-app-region":`drag`,children:[(0,J.jsx)(`h2`,{className:q.headerTitle,children:`Usage`}),(0,J.jsxs)(`div`,{className:q.headerMeta,children:[Ee?(0,J.jsxs)(`span`,{children:[Te?`refreshing · `:``,`as of `,new Date(Ee).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})]}):null,(0,J.jsx)(`button`,{type:`button`,className:q.ghostButton,onClick:x,children:`Refresh`})]})]}),(0,J.jsx)(`div`,{className:q.scroll,children:L?(0,J.jsx)(dr,{title:`Read session expired`,body:`Usage data needs an authenticated read session. Unlock the console with the read token ashlr verse printed, then refresh.`,action:(0,J.jsx)(`button`,{type:`button`,className:q.ghostButton,onClick:x,children:`Try again`})}):Ce?(0,J.jsx)(dr,{title:`Usage sources unreachable`,body:`Usage data unavailable — this server may be older than the app.`,detail:[f.error?.message,m.error?.message].filter(Boolean).join(` `)||void 0,action:(0,J.jsx)(`button`,{type:`button`,className:q.ghostButton,onClick:x,children:`Retry`})}):we?(0,J.jsxs)(`div`,{"aria-busy":`true`,children:[(0,J.jsx)(a,{width:`30%`}),(0,J.jsx)(`div`,{className:q.skeletonGrid,style:{marginTop:`var(--space-4)`},children:(0,J.jsx)(u,{count:5})})]}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(be,{seats:N.seats,health:N.health,budget:N.budget,selectedSeatId:I,onSelectSeat:le}),(0,J.jsx)(Nt,{overview:oe}),(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-accounts`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-accounts`,className:q.panelTitle,children:`Accounts`}),(0,J.jsx)(`p`,{className:q.panelNote,children:`Ordered by what you can use right now. Each card leads with its binding constraint — the window with the highest used percent, because that is what blocks work.`})]}),E&&s.data&&!s.data.available?(0,J.jsxs)(`p`,{className:q.muted,children:[s.data.reason,` `,cr]}):null,S?.collectorNote?(0,J.jsx)(`p`,{className:q.muted,children:S.collectorNote}):null,A.length>0?(0,J.jsx)(`ul`,{className:q.noteList,children:A.map(e=>(0,J.jsx)(`li`,{className:q.muted,children:e},e))}):null,D.length===0&&k===null?(0,J.jsx)(`p`,{className:q.muted,children:`No accounts or local runtime found. Connect an account or start Ollama, then refresh.`}):(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(`div`,{className:q.cards,children:M.map(e=>{if(e.kind!==`account`)return(0,J.jsx)(gn,{card:e.card,staleness:ce},e.key);let t=n===e.key;return(0,J.jsxs)(V.Fragment,{children:[(0,J.jsx)(Dt,{card:e.card,onOpen:ue,expanded:t,triggerId:`verse-account-trigger-${e.key}`,detailId:`verse-account-detail-${e.key}`}),t?(0,J.jsx)(`div`,{id:`verse-account-detail-${e.key}`,style:pr,children:(0,J.jsx)(jt,{card:e.card,headingId:`verse-account-heading-${e.key}`,onClose:de})}):null]},e.key)})})})]}),(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-burndowns`,children:[(0,J.jsxs)(`div`,{className:q.panelHead,children:[(0,J.jsx)(`h3`,{id:`verse-usage-burndowns`,className:q.panelTitle,children:`Seat windows`}),(0,J.jsx)(`p`,{className:q.panelNote,children:`What is left of each seat's binding window, the line autonomy stops at, and the reset.`})]}),(0,J.jsx)(Wn,{budget:N.budget})]}),(0,J.jsx)(vn,{view:O}),(0,J.jsx)(Tn,{series:w,window:e,onWindowChange:t,unavailableReason:d.data&&!d.data.available?d.data.reason:null,loading:d.status===`loading`||d.status===`idle`}),(0,J.jsx)(It,{rows:fe,unavailableReason:pe}),me?(0,J.jsx)(nn,{split:me,savingsNote:Vt}):(0,J.jsxs)(`section`,{className:q.panel,"aria-labelledby":`verse-usage-split-missing`,children:[(0,J.jsx)(`div`,{className:q.panelHead,children:(0,J.jsx)(`h3`,{id:`verse-usage-split-missing`,className:q.panelTitle,children:`Local vs cloud`})}),(0,J.jsx)(`div`,{className:q.tiles,children:(0,J.jsx)(j,{label:`Not spent (ran locally)`,value:(0,J.jsx)(`span`,{className:q.num,children:`unknown`}),caption:`/api/control did not answer, so the split is unavailable`})})]}),(0,J.jsx)(On,{}),(0,J.jsx)(Rt,{rows:he,capsNote:T.available?null:T.reason}),(0,J.jsx)(Dn,{series:_e,todaySpentUsd:ve,todaySpentDate:xe,dailyBudgetUsd:T.dailyBudgetUsd,showSeries:w===null}),T.available&&T.subscriptionMaxPercent!==null?(0,J.jsxs)(`p`,{className:q.muted,children:[`Subscription throttle threshold is`,` `,(0,J.jsx)(`span`,{className:q.num,children:ae(T.subscriptionMaxPercent/100)}),`. It only applies to engines that publish a real window reading — no seat is ever throttled on a guess.`]}):null]})})]})}export{hr as UsageSection};
|
|
3
|
-
//# sourceMappingURL=UsageSection-CiD1DbuF.js.map
|