@ashlr/hub 3.12.0 → 3.13.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 +83 -0
- package/README.md +29 -16
- package/dist/authority-surface.json +89 -43
- package/dist/build-identity.json +2 -2
- package/dist/cli/authority.d.ts +145 -33
- package/dist/cli/authority.js +1196 -313
- 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/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/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 +919 -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/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/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 +10 -0
- package/dist/core/fleet/fleet-merge-state.js.map +1 -1
- package/dist/core/fleet/host-merge.d.ts +5 -0
- package/dist/core/fleet/host-merge.js +11 -0
- package/dist/core/fleet/host-merge.js.map +1 -1
- package/dist/core/fleet/merge-gates.d.ts +8 -0
- package/dist/core/fleet/merge-gates.js +25 -5
- package/dist/core/fleet/merge-gates.js.map +1 -1
- package/dist/core/fleet/standing-merge-pass.js +30 -0
- package/dist/core/fleet/standing-merge-pass.js.map +1 -1
- package/dist/core/fleet/tick-hooks-live.d.ts +9 -0
- package/dist/core/fleet/tick-hooks-live.js +44 -5
- 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/routing/budget-api.d.ts +11 -0
- package/dist/core/routing/budget-api.js +64 -8
- 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/verse/account-health.js +9 -3
- package/dist/core/verse/account-health.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/authority-api.d.ts +9 -1
- package/dist/core/verse/authority-api.js +82 -2
- package/dist/core/verse/authority-api.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/verse-api.d.ts +3 -1
- package/dist/core/verse/verse-api.js +6 -0
- package/dist/core/verse/verse-api.js.map +1 -1
- package/dist/core/web/public/next/assets/{ActionMenu-B4-39f2S.js → ActionMenu-Dwjk6rUQ.js} +2 -2
- package/dist/core/web/public/next/assets/{ActionMenu-B4-39f2S.js.map → ActionMenu-Dwjk6rUQ.js.map} +1 -1
- package/dist/core/web/public/next/assets/Advanced-cVYTAsfB.js +2 -0
- package/dist/core/web/public/next/assets/{Advanced-B-LqYXvd.js.map → Advanced-cVYTAsfB.js.map} +1 -1
- package/dist/core/web/public/next/assets/App-IsaWDsdF.js +7 -0
- package/dist/core/web/public/next/assets/{App-E2zCDRxm.js.map → App-IsaWDsdF.js.map} +1 -1
- package/dist/core/web/public/next/assets/AppsSection-DDqeSrty.js +2 -0
- package/dist/core/web/public/next/assets/{AppsSection-8wXPPhZb.js.map → AppsSection-DDqeSrty.js.map} +1 -1
- package/dist/core/web/public/next/assets/{AreaTrend-BFimExYn.js → AreaTrend-C32rUaxm.js} +2 -2
- package/dist/core/web/public/next/assets/{AreaTrend-BFimExYn.js.map → AreaTrend-C32rUaxm.js.map} +1 -1
- package/dist/core/web/public/next/assets/AutonomyOffState-CmSSTHVe.css +1 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-CpFYS3tQ.js +3 -0
- package/dist/core/web/public/next/assets/AutonomyOffState-CpFYS3tQ.js.map +1 -0
- package/dist/core/web/public/next/assets/AutonomySection-Dwn8UtOy.js +2 -0
- package/dist/core/web/public/next/assets/{AutonomySection-B46igJKR.js.map → AutonomySection-Dwn8UtOy.js.map} +1 -1
- package/dist/core/web/public/next/assets/{BranchBar-BRkrEQGs.js → BranchBar-ISZ7xUCj.js} +2 -2
- package/dist/core/web/public/next/assets/{BranchBar-BRkrEQGs.js.map → BranchBar-ISZ7xUCj.js.map} +1 -1
- package/dist/core/web/public/next/assets/BudgetControl-BARVp-En.js +2 -0
- package/dist/core/web/public/next/assets/BudgetControl-BARVp-En.js.map +1 -0
- package/dist/core/web/public/next/assets/{Button-BhO-WKPp.js → Button-DtE0rlWD.js} +2 -2
- package/dist/core/web/public/next/assets/{Button-BhO-WKPp.js.map → Button-DtE0rlWD.js.map} +1 -1
- package/dist/core/web/public/next/assets/{CapacityStrip-CkFz5vq2.js → CapacityStrip-DKbKA_Aa.js} +2 -2
- package/dist/core/web/public/next/assets/{CapacityStrip-CkFz5vq2.js.map → CapacityStrip-DKbKA_Aa.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ChartFrame-SygZ7B3x.js → ChartFrame-DK_BDXCt.js} +2 -2
- package/dist/core/web/public/next/assets/{ChartFrame-SygZ7B3x.js.map → ChartFrame-DK_BDXCt.js.map} +1 -1
- package/dist/core/web/public/next/assets/ChatSection-C9myY4ei.js +3 -0
- package/dist/core/web/public/next/assets/ChatSection-C9myY4ei.js.map +1 -0
- package/dist/core/web/public/next/assets/{CloudBudgetForm-Bd91iStN.js → CloudBudgetForm-CvjK4Oh6.js} +2 -2
- package/dist/core/web/public/next/assets/{CloudBudgetForm-Bd91iStN.js.map → CloudBudgetForm-CvjK4Oh6.js.map} +1 -1
- package/dist/core/web/public/next/assets/{CommandPalette-B6SgDJH-.js → CommandPalette-DzPsth0u.js} +2 -2
- package/dist/core/web/public/next/assets/{CommandPalette-B6SgDJH-.js.map → CommandPalette-DzPsth0u.js.map} +1 -1
- package/dist/core/web/public/next/assets/CommandSection-Brp73iox.js +3 -0
- package/dist/core/web/public/next/assets/CommandSection-Brp73iox.js.map +1 -0
- package/dist/core/web/public/next/assets/{ConfirmDialog-Bv4hdK2T.js → ConfirmDialog-CLUhzaBj.js} +2 -2
- package/dist/core/web/public/next/assets/{ConfirmDialog-Bv4hdK2T.js.map → ConfirmDialog-CLUhzaBj.js.map} +1 -1
- package/dist/core/web/public/next/assets/{DeleteChatDialog-CH1Ix8Eh.js → DeleteChatDialog-C_eDhV8b.js} +2 -2
- package/dist/core/web/public/next/assets/{DeleteChatDialog-CH1Ix8Eh.js.map → DeleteChatDialog-C_eDhV8b.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Dialog-BSsIFNqD.js → Dialog-BRd_B9OE.js} +2 -2
- package/dist/core/web/public/next/assets/{Dialog-BSsIFNqD.js.map → Dialog-BRd_B9OE.js.map} +1 -1
- package/dist/core/web/public/next/assets/{DiffPane-BpNuJmth.js → DiffPane-Cpr9soB2.js} +2 -2
- package/dist/core/web/public/next/assets/{DiffPane-BpNuJmth.js.map → DiffPane-Cpr9soB2.js.map} +1 -1
- package/dist/core/web/public/next/assets/{DiffViewer-CJarUvs0.js → DiffViewer-CNwd0W3Q.js} +2 -2
- package/dist/core/web/public/next/assets/{DiffViewer-CJarUvs0.js.map → DiffViewer-CNwd0W3Q.js.map} +1 -1
- package/dist/core/web/public/next/assets/DockHost-BcEq2qaS.js +2 -0
- package/dist/core/web/public/next/assets/{DockHost-DW9q0NdR.js.map → DockHost-BcEq2qaS.js.map} +1 -1
- package/dist/core/web/public/next/assets/{EmptyState-DPrd2aak.js → EmptyState-DsN1H6MC.js} +2 -2
- package/dist/core/web/public/next/assets/{EmptyState-DPrd2aak.js.map → EmptyState-DsN1H6MC.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Epistemic-D7MxSmED.js → Epistemic-fycQTBRO.js} +2 -2
- package/dist/core/web/public/next/assets/{Epistemic-D7MxSmED.js.map → Epistemic-fycQTBRO.js.map} +1 -1
- package/dist/core/web/public/next/assets/EvidenceTimeline-PBDAiSuG.css +1 -0
- package/dist/core/web/public/next/assets/EvidenceTimeline-sCCAdnBK.js +2 -0
- package/dist/core/web/public/next/assets/EvidenceTimeline-sCCAdnBK.js.map +1 -0
- package/dist/core/web/public/next/assets/{FleetSection-BdZN6rGS.js → FleetSection-BG8iGraG.js} +3 -3
- package/dist/core/web/public/next/assets/{FleetSection-BdZN6rGS.js.map → FleetSection-BG8iGraG.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Funnel-BeNQZWv2.js → Funnel-B88_wpA4.js} +2 -2
- package/dist/core/web/public/next/assets/{Funnel-BeNQZWv2.js.map → Funnel-B88_wpA4.js.map} +1 -1
- package/dist/core/web/public/next/assets/{GearTray-CIPtzeIx.js → GearTray-CpDt0xwj.js} +2 -2
- package/dist/core/web/public/next/assets/{GearTray-CIPtzeIx.js.map → GearTray-CpDt0xwj.js.map} +1 -1
- package/dist/core/web/public/next/assets/{GrowthSection-iiQg6wvK.js → GrowthSection-BvZezOsX.js} +2 -2
- package/dist/core/web/public/next/assets/{GrowthSection-iiQg6wvK.js.map → GrowthSection-BvZezOsX.js.map} +1 -1
- package/dist/core/web/public/next/assets/{HandoffDialog-DrQ6ofuy.js → HandoffDialog-B1G6gQyk.js} +2 -2
- package/dist/core/web/public/next/assets/{HandoffDialog-DrQ6ofuy.js.map → HandoffDialog-B1G6gQyk.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Input-C0MQxEM6.js → Input-CI0yBHmn.js} +2 -2
- package/dist/core/web/public/next/assets/{Input-C0MQxEM6.js.map → Input-CI0yBHmn.js.map} +1 -1
- package/dist/core/web/public/next/assets/{LeaderCard-BRr3_yE-.js → LeaderCard-BxxiEg4e.js} +2 -2
- package/dist/core/web/public/next/assets/{LeaderCard-BRr3_yE-.js.map → LeaderCard-BxxiEg4e.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MatrixHeatmap-DZvZeWXL.js → MatrixHeatmap-iPFEU2Tv.js} +2 -2
- package/dist/core/web/public/next/assets/{MatrixHeatmap-DZvZeWXL.js.map → MatrixHeatmap-iPFEU2Tv.js.map} +1 -1
- package/dist/core/web/public/next/assets/McpSection-nuXer4K-.js +2 -0
- package/dist/core/web/public/next/assets/{McpSection-BRuCcTjT.js.map → McpSection-nuXer4K-.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MessageMarkdown-bRvD5nSc.js → MessageMarkdown-BCe4TsXk.js} +3 -3
- package/dist/core/web/public/next/assets/{MessageMarkdown-bRvD5nSc.js.map → MessageMarkdown-BCe4TsXk.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MessageMarkdownRenderer-FjjkPKA2.js → MessageMarkdownRenderer-DL3LU5kL.js} +2 -2
- package/dist/core/web/public/next/assets/{MessageMarkdownRenderer-FjjkPKA2.js.map → MessageMarkdownRenderer-DL3LU5kL.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Meter-CFNLpwA-.js → Meter-b69LM0mU.js} +2 -2
- package/dist/core/web/public/next/assets/{Meter-CFNLpwA-.js.map → Meter-b69LM0mU.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MindSection-BTIiQS8P.js → MindSection-Dc5v5rH3.js} +2 -2
- package/dist/core/web/public/next/assets/{MindSection-BTIiQS8P.js.map → MindSection-Dc5v5rH3.js.map} +1 -1
- package/dist/core/web/public/next/assets/{MutationTokenDialog-T7gv3a9r.js → MutationTokenDialog-Bm34BNVV.js} +2 -2
- package/dist/core/web/public/next/assets/{MutationTokenDialog-T7gv3a9r.js.map → MutationTokenDialog-Bm34BNVV.js.map} +1 -1
- package/dist/core/web/public/next/assets/NeedsYouDrawer-N1cWJjpz.js +3 -0
- package/dist/core/web/public/next/assets/NeedsYouDrawer-N1cWJjpz.js.map +1 -0
- package/dist/core/web/public/next/assets/NeedsYouList-CH6Mq-E_.css +1 -0
- package/dist/core/web/public/next/assets/NeedsYouList-D5Kk549g.js +2 -0
- package/dist/core/web/public/next/assets/{NeedsYouList-BgH8ezqf.js.map → NeedsYouList-D5Kk549g.js.map} +1 -1
- package/dist/core/web/public/next/assets/{NewChatDialog-Db5Xjrk8.js → NewChatDialog-BqFTWgHU.js} +2 -2
- package/dist/core/web/public/next/assets/{NewChatDialog-Db5Xjrk8.js.map → NewChatDialog-BqFTWgHU.js.map} +1 -1
- package/dist/core/web/public/next/assets/OnboardingFlow-DcDsguAM.js +3 -0
- package/dist/core/web/public/next/assets/OnboardingFlow-DcDsguAM.js.map +1 -0
- package/dist/core/web/public/next/assets/OnboardingGate-BZafM1Vf.js +3 -0
- package/dist/core/web/public/next/assets/{OnboardingGate-C4VXn7BJ.js.map → OnboardingGate-BZafM1Vf.js.map} +1 -1
- package/dist/core/web/public/next/assets/{PreviewPane-BPBbcROb.js → PreviewPane-zT3gK9TD.js} +2 -2
- package/dist/core/web/public/next/assets/{PreviewPane-BPBbcROb.js.map → PreviewPane-zT3gK9TD.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ProviderLogo-CT2cSfkg.js → ProviderLogo-AwHn2sKm.js} +2 -2
- package/dist/core/web/public/next/assets/{ProviderLogo-CT2cSfkg.js.map → ProviderLogo-AwHn2sKm.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RailStatus-Vgl0GYtd.js → RailStatus-xHrovWvI.js} +2 -2
- package/dist/core/web/public/next/assets/{RailStatus-Vgl0GYtd.js.map → RailStatus-xHrovWvI.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RefreshIndicator-CSyqpY_q.js → RefreshIndicator-SEFZlMB2.js} +2 -2
- package/dist/core/web/public/next/assets/{RefreshIndicator-CSyqpY_q.js.map → RefreshIndicator-SEFZlMB2.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ResourcePoolConsoleApp-BX2nkdmZ.js → ResourcePoolConsoleApp-CAxPQ4sZ.js} +3 -3
- package/dist/core/web/public/next/assets/{ResourcePoolConsoleApp-BX2nkdmZ.js.map → ResourcePoolConsoleApp-CAxPQ4sZ.js.map} +1 -1
- package/dist/core/web/public/next/assets/ResourcesChrome-BnhnEdJe.js +3 -0
- package/dist/core/web/public/next/assets/{ResourcesChrome-B2U2lO1H.js.map → ResourcesChrome-BnhnEdJe.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ResourcesDrawer-DlUKOjl9.js → ResourcesDrawer-BAFGodny.js} +2 -2
- package/dist/core/web/public/next/assets/{ResourcesDrawer-DlUKOjl9.js.map → ResourcesDrawer-BAFGodny.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RouteErrorBoundary-BaC7YVzR.js → RouteErrorBoundary-C8WGiixc.js} +2 -2
- package/dist/core/web/public/next/assets/{RouteErrorBoundary-BaC7YVzR.js.map → RouteErrorBoundary-C8WGiixc.js.map} +1 -1
- package/dist/core/web/public/next/assets/{RunInCloudAction-D5PDHJPE.js → RunInCloudAction-1-IPLYhf.js} +2 -2
- package/dist/core/web/public/next/assets/{RunInCloudAction-D5PDHJPE.js.map → RunInCloudAction-1-IPLYhf.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SeatSelector-Cg75LInq.js → SeatSelector-DpwNiX8F.js} +2 -2
- package/dist/core/web/public/next/assets/{SeatSelector-Cg75LInq.js.map → SeatSelector-DpwNiX8F.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Segmented-CametjLt.js → Segmented-Wt1ATod9.js} +2 -2
- package/dist/core/web/public/next/assets/{Segmented-CametjLt.js.map → Segmented-Wt1ATod9.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Select-De52fghU.js → Select-By-V9lMc.js} +2 -2
- package/dist/core/web/public/next/assets/{Select-De52fghU.js.map → Select-By-V9lMc.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SessionGate-CzlcNq3O.js → SessionGate-WROS02tK.js} +2 -2
- package/dist/core/web/public/next/assets/{SessionGate-CzlcNq3O.js.map → SessionGate-WROS02tK.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SessionInsightChip-Bk_Owa7u.js → SessionInsightChip-DNUcruwp.js} +2 -2
- package/dist/core/web/public/next/assets/{SessionInsightChip-Bk_Owa7u.js.map → SessionInsightChip-DNUcruwp.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SessionSearch-C6C8DHN8.js → SessionSearch-UHtt7a8f.js} +2 -2
- package/dist/core/web/public/next/assets/{SessionSearch-C6C8DHN8.js.map → SessionSearch-UHtt7a8f.js.map} +1 -1
- package/dist/core/web/public/next/assets/{SettingsSection-mI9wQYZg.js → SettingsSection-Bf74l0Gj.js} +2 -2
- package/dist/core/web/public/next/assets/{SettingsSection-mI9wQYZg.js.map → SettingsSection-Bf74l0Gj.js.map} +1 -1
- package/dist/core/web/public/next/assets/SetupChecklist-BhZpFLsj.css +1 -0
- package/dist/core/web/public/next/assets/SetupChecklist-CzpEcfOl.js +2 -0
- package/dist/core/web/public/next/assets/SetupChecklist-CzpEcfOl.js.map +1 -0
- package/dist/core/web/public/next/assets/{Sheet-CJhK9Dqv.js → Sheet-HkBOBMTT.js} +2 -2
- package/dist/core/web/public/next/assets/{Sheet-CJhK9Dqv.js.map → Sheet-HkBOBMTT.js.map} +1 -1
- package/dist/core/web/public/next/assets/{ShortcutsOverlay-DDW-i9Fc.js → ShortcutsOverlay-DiigiT8H.js} +2 -2
- package/dist/core/web/public/next/assets/{ShortcutsOverlay-DDW-i9Fc.js.map → ShortcutsOverlay-DiigiT8H.js.map} +1 -1
- package/dist/core/web/public/next/assets/Sidebar-C9YtBYVZ.js +3 -0
- package/dist/core/web/public/next/assets/Sidebar-C9YtBYVZ.js.map +1 -0
- package/dist/core/web/public/next/assets/{Slider-Bwd9HfXl.js → Slider-DaEDws-b.js} +2 -2
- package/dist/core/web/public/next/assets/{Slider-Bwd9HfXl.js.map → Slider-DaEDws-b.js.map} +1 -1
- package/dist/core/web/public/next/assets/{StatTile-DPZ5yyaU.js → StatTile-CTX41O6y.js} +2 -2
- package/dist/core/web/public/next/assets/{StatTile-DPZ5yyaU.js.map → StatTile-CTX41O6y.js.map} +1 -1
- package/dist/core/web/public/next/assets/{StatusBadge-DHKRtttH.js → StatusBadge-CXG3iNL4.js} +2 -2
- package/dist/core/web/public/next/assets/{StatusBadge-DHKRtttH.js.map → StatusBadge-CXG3iNL4.js.map} +1 -1
- package/dist/core/web/public/next/assets/{StepBand-DQykLkk_.js → StepBand-jJTqYIdX.js} +2 -2
- package/dist/core/web/public/next/assets/{StepBand-DQykLkk_.js.map → StepBand-jJTqYIdX.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Surface-D--LXgQm.js → Surface-5bNA08tK.js} +2 -2
- package/dist/core/web/public/next/assets/{Surface-D--LXgQm.js.map → Surface-5bNA08tK.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Swimlane-BzH6OCee.js → Swimlane-LrslsGxw.js} +2 -2
- package/dist/core/web/public/next/assets/{Swimlane-BzH6OCee.js.map → Swimlane-LrslsGxw.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Switch-PMixU6b0.js → Switch-BmCzfFnu.js} +2 -2
- package/dist/core/web/public/next/assets/{Switch-PMixU6b0.js.map → Switch-BmCzfFnu.js.map} +1 -1
- package/dist/core/web/public/next/assets/{Tag-fordBsrJ.js → Tag-WSUIaMVy.js} +2 -2
- package/dist/core/web/public/next/assets/{Tag-fordBsrJ.js.map → Tag-WSUIaMVy.js.map} +1 -1
- package/dist/core/web/public/next/assets/{TerminalPane-BSnGdUuF.js → TerminalPane-BVFgYX6K.js} +5 -5
- package/dist/core/web/public/next/assets/{TerminalPane-BSnGdUuF.js.map → TerminalPane-BVFgYX6K.js.map} +1 -1
- package/dist/core/web/public/next/assets/{UniverseConsoleApp-DtXFhAhw.js → UniverseConsoleApp-BpphLqoz.js} +2 -2
- package/dist/core/web/public/next/assets/{UniverseConsoleApp-DtXFhAhw.js.map → UniverseConsoleApp-BpphLqoz.js.map} +1 -1
- package/dist/core/web/public/next/assets/{UniverseView-sWm3pnTW.js → UniverseView-DbpbSMwO.js} +4 -4
- package/dist/core/web/public/next/assets/{UniverseView-sWm3pnTW.js.map → UniverseView-DbpbSMwO.js.map} +1 -1
- package/dist/core/web/public/next/assets/{UsageSection-CiD1DbuF.js → UsageSection-CUlaKtws.js} +3 -3
- package/dist/core/web/public/next/assets/{UsageSection-CiD1DbuF.js.map → UsageSection-CUlaKtws.js.map} +1 -1
- package/dist/core/web/public/next/assets/VerseConsoleApp-DXDv1aOi.js +3 -0
- package/dist/core/web/public/next/assets/VerseConsoleApp-DXDv1aOi.js.map +1 -0
- package/dist/core/web/public/next/assets/{Workspace-BQSZFSeO.js → Workspace-RXy0pqp6.js} +5 -5
- package/dist/core/web/public/next/assets/{Workspace-BQSZFSeO.js.map → Workspace-RXy0pqp6.js.map} +1 -1
- package/dist/core/web/public/next/assets/{actions-Ci6I4C0l.js → actions-BZTidCXZ.js} +2 -2
- package/dist/core/web/public/next/assets/{actions-Ci6I4C0l.js.map → actions-BZTidCXZ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{apps-model-DlwnfqwJ.js → apps-model-CHO133qt.js} +2 -2
- package/dist/core/web/public/next/assets/{apps-model-DlwnfqwJ.js.map → apps-model-CHO133qt.js.map} +1 -1
- package/dist/core/web/public/next/assets/{authority-model-BFuPezSo.js → authority-model-8NeAEwAF.js} +2 -2
- package/dist/core/web/public/next/assets/{authority-model-BFuPezSo.js.map → authority-model-8NeAEwAF.js.map} +1 -1
- package/dist/core/web/public/next/assets/{budget-queries-DsAjH8ac.js → budget-queries-DFF-3ICg.js} +2 -2
- package/dist/core/web/public/next/assets/{budget-queries-DsAjH8ac.js.map → budget-queries-DFF-3ICg.js.map} +1 -1
- package/dist/core/web/public/next/assets/{capacity-strip-model-Dn1cNOhz.js → capacity-strip-model-5ViUgUlP.js} +2 -2
- package/dist/core/web/public/next/assets/{capacity-strip-model-Dn1cNOhz.js.map → capacity-strip-model-5ViUgUlP.js.map} +1 -1
- package/dist/core/web/public/next/assets/{charts-C_xJbJiw.js → charts-CzxWrZn7.js} +2 -2
- package/dist/core/web/public/next/assets/{charts-C_xJbJiw.js.map → charts-CzxWrZn7.js.map} +1 -1
- package/dist/core/web/public/next/assets/cloud-model-CfRydq8N.js +2 -0
- package/dist/core/web/public/next/assets/{cloud-model-CX407gPY.js.map → cloud-model-CfRydq8N.js.map} +1 -1
- package/dist/core/web/public/next/assets/{cloud-queries-QAhpExlz.js → cloud-queries-DmptbjS8.js} +2 -2
- package/dist/core/web/public/next/assets/{cloud-queries-QAhpExlz.js.map → cloud-queries-DmptbjS8.js.map} +1 -1
- package/dist/core/web/public/next/assets/{command-catalog-CF0cQQac.js → command-catalog-ffCAijVY.js} +2 -2
- package/dist/core/web/public/next/assets/{command-catalog-CF0cQQac.js.map → command-catalog-ffCAijVY.js.map} +1 -1
- package/dist/core/web/public/next/assets/{context-model-DV1zCfAm.js → context-model-Bb15chFt.js} +2 -2
- package/dist/core/web/public/next/assets/{context-model-DV1zCfAm.js.map → context-model-Bb15chFt.js.map} +1 -1
- package/dist/core/web/public/next/assets/{context-model-Co4wh3SM.js → context-model-CDeyP0cA.js} +2 -2
- package/dist/core/web/public/next/assets/{context-model-Co4wh3SM.js.map → context-model-CDeyP0cA.js.map} +1 -1
- package/dist/core/web/public/next/assets/{context-queries-CktFQqSS.js → context-queries-_9bFWb9v.js} +2 -2
- package/dist/core/web/public/next/assets/{context-queries-CktFQqSS.js.map → context-queries-_9bFWb9v.js.map} +1 -1
- package/dist/core/web/public/next/assets/{control-queries-DAvlh_YM.js → control-queries-CXtmZZH6.js} +2 -2
- package/dist/core/web/public/next/assets/{control-queries-DAvlh_YM.js.map → control-queries-CXtmZZH6.js.map} +1 -1
- package/dist/core/web/public/next/assets/copy-setup-BIp0iaiZ.js +2 -0
- package/dist/core/web/public/next/assets/copy-setup-BIp0iaiZ.js.map +1 -0
- package/dist/core/web/public/next/assets/{dock-icons-BFuBbqJl.js → dock-icons-Cc43W7r4.js} +2 -2
- package/dist/core/web/public/next/assets/{dock-icons-BFuBbqJl.js.map → dock-icons-Cc43W7r4.js.map} +1 -1
- package/dist/core/web/public/next/assets/{fleet-model-Dfd5JyLR.js → fleet-model-DOK8ZtEt.js} +2 -2
- package/dist/core/web/public/next/assets/{fleet-model-Dfd5JyLR.js.map → fleet-model-DOK8ZtEt.js.map} +1 -1
- package/dist/core/web/public/next/assets/{fleet-queries-RtMTd5rR.js → fleet-queries-BeEAqD6y.js} +2 -2
- package/dist/core/web/public/next/assets/{fleet-queries-RtMTd5rR.js.map → fleet-queries-BeEAqD6y.js.map} +1 -1
- package/dist/core/web/public/next/assets/{focus-trap-BdrbWfC4.js → focus-trap-ChZ5EFfM.js} +2 -2
- package/dist/core/web/public/next/assets/{focus-trap-BdrbWfC4.js.map → focus-trap-ChZ5EFfM.js.map} +1 -1
- package/dist/core/web/public/next/assets/format-BmH2yWL6.js +2 -0
- package/dist/core/web/public/next/assets/format-BmH2yWL6.js.map +1 -0
- package/dist/core/web/public/next/assets/{git-model-_BnI_Ogh.js → git-model-BFwAVbxF.js} +2 -2
- package/dist/core/web/public/next/assets/{git-model-_BnI_Ogh.js.map → git-model-BFwAVbxF.js.map} +1 -1
- package/dist/core/web/public/next/assets/global-y_exIyAP.js +2 -0
- package/dist/core/web/public/next/assets/{global-CNNGMril.js.map → global-y_exIyAP.js.map} +1 -1
- package/dist/core/web/public/next/assets/{guarded-runners-DPh2d32e.js → guarded-runners-Cd4POBtI.js} +2 -2
- package/dist/core/web/public/next/assets/{guarded-runners-DPh2d32e.js.map → guarded-runners-Cd4POBtI.js.map} +1 -1
- package/dist/core/web/public/next/assets/{icons-0haWy6nh.js → icons-CygCEFWs.js} +2 -2
- package/dist/core/web/public/next/assets/{icons-0haWy6nh.js.map → icons-CygCEFWs.js.map} +1 -1
- package/dist/core/web/public/next/assets/{index-QesfXBsb.js → index-CyK31YRm.js} +3 -3
- package/dist/core/web/public/next/assets/{index-QesfXBsb.js.map → index-CyK31YRm.js.map} +1 -1
- package/dist/core/web/public/next/assets/{live-model-De-q0ZFK.js → live-model-D7hilYFk.js} +2 -2
- package/dist/core/web/public/next/assets/live-model-D7hilYFk.js.map +1 -0
- package/dist/core/web/public/next/assets/{mind.module-BrK2nFOL.js → mind.module-B15k0Y9q.js} +2 -2
- package/dist/core/web/public/next/assets/{mind.module-BrK2nFOL.js.map → mind.module-B15k0Y9q.js.map} +1 -1
- package/dist/core/web/public/next/assets/mutations-CWlxEMEm.js +2 -0
- package/dist/core/web/public/next/assets/{mutations-DTCtKCn_.js.map → mutations-CWlxEMEm.js.map} +1 -1
- package/dist/core/web/public/next/assets/{nav-KmGX0CVz.js → nav-mimleI0R.js} +2 -2
- package/dist/core/web/public/next/assets/{nav-KmGX0CVz.js.map → nav-mimleI0R.js.map} +1 -1
- package/dist/core/web/public/next/assets/{overnight-queries-mlO0xzsr.js → overnight-queries-DJ4mZKSj.js} +2 -2
- package/dist/core/web/public/next/assets/{overnight-queries-mlO0xzsr.js.map → overnight-queries-DJ4mZKSj.js.map} +1 -1
- package/dist/core/web/public/next/assets/primitives-DMijqcu0.js +1 -0
- package/dist/core/web/public/next/assets/{queries-CyBE8nsW.js → queries-Bw1McHTj.js} +2 -2
- package/dist/core/web/public/next/assets/{queries-CyBE8nsW.js.map → queries-Bw1McHTj.js.map} +1 -1
- package/dist/core/web/public/next/assets/{reasoning-pref-CaoA4_Vl.js → reasoning-pref-KkhI_5-j.js} +2 -2
- package/dist/core/web/public/next/assets/{reasoning-pref-CaoA4_Vl.js.map → reasoning-pref-KkhI_5-j.js.map} +1 -1
- package/dist/core/web/public/next/assets/{reveal-anchor-BP1VqnPU.js → reveal-anchor-CCCx_kfT.js} +2 -2
- package/dist/core/web/public/next/assets/{reveal-anchor-BP1VqnPU.js.map → reveal-anchor-CCCx_kfT.js.map} +1 -1
- package/dist/core/web/public/next/assets/{seat-subscription-C5Tvr0WQ.js → seat-subscription-BhUUz7VL.js} +2 -2
- package/dist/core/web/public/next/assets/{seat-subscription-C5Tvr0WQ.js.map → seat-subscription-BhUUz7VL.js.map} +1 -1
- package/dist/core/web/public/next/assets/{sidebar-model-B5Qk95k_.js → sidebar-model-Dcd437cf.js} +2 -2
- package/dist/core/web/public/next/assets/{sidebar-model-B5Qk95k_.js.map → sidebar-model-Dcd437cf.js.map} +1 -1
- package/dist/core/web/public/next/assets/{slots-DHKQDoE6.js → slots-BL_J5mmV.js} +3 -3
- package/dist/core/web/public/next/assets/{slots-DHKQDoE6.js.map → slots-BL_J5mmV.js.map} +1 -1
- package/dist/core/web/public/next/assets/{surface-data-CchClvHo.js → surface-data-C3UAQ4QX.js} +2 -2
- package/dist/core/web/public/next/assets/{surface-data-CchClvHo.js.map → surface-data-C3UAQ4QX.js.map} +1 -1
- package/dist/core/web/public/next/assets/surface-prefetch-BXKjPsV5.js +2 -0
- package/dist/core/web/public/next/assets/{surface-prefetch-BWr0LBQn.js.map → surface-prefetch-BXKjPsV5.js.map} +1 -1
- package/dist/core/web/public/next/assets/{tasks-model-D6WFVULI.js → tasks-model-CzHvclVm.js} +2 -2
- package/dist/core/web/public/next/assets/{tasks-model-D6WFVULI.js.map → tasks-model-CzHvclVm.js.map} +1 -1
- package/dist/core/web/public/next/assets/{terminal-icons-BvCvuXk2.js → terminal-icons-BwgQTQP0.js} +2 -2
- package/dist/core/web/public/next/assets/{terminal-icons-BvCvuXk2.js.map → terminal-icons-BwgQTQP0.js.map} +1 -1
- 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-pXxvy54x.js} +2 -2
- package/dist/core/web/public/next/assets/{usage-queries-D1SU1t7r.js.map → usage-queries-pXxvy54x.js.map} +1 -1
- package/dist/core/web/public/next/assets/{use-guarded-action-BZmBv7CJ.js → use-guarded-action-EgVWjM5c.js} +2 -2
- package/dist/core/web/public/next/assets/{use-guarded-action-BZmBv7CJ.js.map → use-guarded-action-EgVWjM5c.js.map} +1 -1
- package/dist/core/web/public/next/assets/{use-ticker-CkJ4-0wU.js → use-ticker-BoqFxRFG.js} +2 -2
- package/dist/core/web/public/next/assets/{use-ticker-CkJ4-0wU.js.map → use-ticker-BoqFxRFG.js.map} +1 -1
- package/dist/core/web/public/next/assets/{use-token-gate-CYcfk_GS.js → use-token-gate-DSNIIpI6.js} +2 -2
- package/dist/core/web/public/next/assets/{use-token-gate-CYcfk_GS.js.map → use-token-gate-DSNIIpI6.js.map} +1 -1
- package/dist/core/web/public/next/assets/{useOnboarding-CujRS6PK.js → useOnboarding-Bk0VnkxQ.js} +2 -2
- package/dist/core/web/public/next/assets/{useOnboarding-CujRS6PK.js.map → useOnboarding-Bk0VnkxQ.js.map} +1 -1
- package/dist/core/web/public/next/assets/{useSeatsRefresh-BEaQdkZs.js → useSeatsRefresh-q7Id9RcW.js} +2 -2
- package/dist/core/web/public/next/assets/{useSeatsRefresh-BEaQdkZs.js.map → useSeatsRefresh-q7Id9RcW.js.map} +1 -1
- package/dist/core/web/public/next/assets/{useVerseTranscript-BQ0J6Xhx.js → useVerseTranscript-CqH51rt9.js} +2 -2
- package/dist/core/web/public/next/assets/{useVerseTranscript-BQ0J6Xhx.js.map → useVerseTranscript-CqH51rt9.js.map} +1 -1
- package/dist/core/web/public/next/assets/{verse-icons-DndgEgKS.js → verse-icons-DsG1dOQx.js} +2 -2
- package/dist/core/web/public/next/assets/{verse-icons-DndgEgKS.js.map → verse-icons-DsG1dOQx.js.map} +1 -1
- package/dist/core/web/public/next/assets/{verse-model-MMySehjj.js → verse-model-JTuvRBVK.js} +2 -2
- package/dist/core/web/public/next/assets/{verse-model-MMySehjj.js.map → verse-model-JTuvRBVK.js.map} +1 -1
- package/dist/core/web/public/next/assets/{warmup-CNEH_-be.js → warmup-Bv1RumVq.js} +3 -3
- package/dist/core/web/public/next/assets/{warmup-CNEH_-be.js.map → warmup-Bv1RumVq.js.map} +1 -1
- package/dist/core/web/public/next/assets/why-seat-model-Cau8qG6O.js +2 -0
- package/dist/core/web/public/next/assets/why-seat-model-Cau8qG6O.js.map +1 -0
- package/dist/core/web/public/next/assets/{workspace-model-Dukb2wwv.js → workspace-model-D-SLfads.js} +2 -2
- package/dist/core/web/public/next/assets/{workspace-model-Dukb2wwv.js.map → workspace-model-D-SLfads.js.map} +1 -1
- package/dist/core/web/public/next/index.html +1 -1
- package/dist/release-dependency-inventory.json +1 -1
- package/docs/AUTONOMY-GAP.md +1 -1
- package/package.json +1 -1
- 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/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/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/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/McpSection-BRuCcTjT.js +0 -2
- 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/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/ResourcesChrome-B2U2lO1H.js +0 -3
- 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/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/cloud-model-CX407gPY.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/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/surface-prefetch-BWr0LBQn.js +0 -2
- 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/why-seat-model-jlDTwYSc.js +0 -2
- package/dist/core/web/public/next/assets/why-seat-model-jlDTwYSc.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";snFAmDM,GAAuF,CAC3F,yBAA0B,CAAE,MAAO,qBAAsB,KAAM,SAAU,EACzE,6BAA8B,CAAE,MAAO,yBAA0B,KAAM,SAAU,EACjF,eAAgB,CAAE,MAAO,SAAU,KAAM,SAAU,EACnD,cAAe,CAAE,MAAO,QAAS,KAAM,SAAU,EACjD,gBAAiB,CAAE,MAAO,UAAW,KAAM,QAAS,EACpD,6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B,EANrB,UAQG,EAAO,MACP,GAAM,SAAC,MAAD,CAAK,UAAW,EAAO,UAAW,cAAY,OAAQ,UAAS,GAAI,IACpE,CATD,IAAO,IASN,CAEZ,CAAC,CACE,IACH,EAAqG,MAAnF,SAAC,IAAD,CAAG,UAAW,EAAO,OAAQ,0DAAkD,GAClG,GAAgB,GACf,SAAC,WAAD,CAAU,SAAU,KAClB,mBAAC,GAAD,CAAkB,OAAQ,EAAa,MAAO,EAAK,MAAO,QAAK,YAAe,EAAgB,EAAK,EAAQ,KAAM,EACzG,GACR,IACG,GAEb","names":[],"ignoreList":[],"sources":["../../../../../../src/web-ui/routes/verse/approvals/ApprovalDetail.tsx","../../../../../../src/web-ui/routes/verse/shell/needs-you-actions.ts","../../../../../../src/web-ui/routes/verse/shell/cloud-triage.ts","../../../../../../src/web-ui/routes/verse/shell/NeedsYouDrawer.tsx"],"sourcesContent":["/**\n * routes/verse/approvals/ApprovalDetail.tsx — everything a human needs before\n * deciding, and an approve path that cannot fire on one click.\n *\n * Reuses the inbox review machinery verbatim (`DiffViewer` + `diff-parser.ts`\n * + `highlight.ts`, and `ConfirmDialog`) rather than growing a second diff\n * renderer, per docs/VERSE-CONTRACT-V2.md.\n *\n * Two rules enforced here:\n * - **Judge evidence is epistemic.** A `judge-parse-failure` /\n * `judge-network-failure` is an infra failure, never a considered verdict,\n * and a degraded decisions-ledger read renders \"unknown\" via <Epistemic/>\n * instead of letting an empty array read as \"never judged\".\n * - **Nothing signed is ever printed.** Provenance shows WHETHER a proposal\n * carries a producer attestation, never the HMAC itself — the same rule\n * that keeps launcher commands and tokens off every Verse payload.\n */\nimport { useState } from 'react';\nimport { MutationTokenDialog } from '../../../components/auth/MutationTokenDialog.js';\nimport { Epistemic } from '../../../components/primitives/Epistemic.js';\nimport { RefreshIndicator } from '../../../components/primitives/RefreshIndicator.js';\nimport { SkeletonLine } from '../../../components/primitives/Skeleton.js';\nimport { StatusBadge, type Tone } from '../../../components/primitives/StatusBadge.js';\nimport type { DecisionEntry, JudgeDecisionReasonCode } from '../../../data/api-types.js';\nimport { hasMutationHold } from '../../../data/auth-store.js';\nimport { DispatchDisabledError } from '../../../data/client.js';\nimport { useQuery } from '../../../data/hooks.js';\nimport { approveProposal, rejectProposal } from '../../../data/mutations.js';\nimport { proposalDetailQuery } from '../../../data/queries.js';\nimport { ConfirmDialog } from '../../inbox/ConfirmDialog.js';\nimport { DiffViewer } from '../../inbox/DiffViewer.js';\n// Shell helpers, not autonomy/'s: 3.10 moves the Autonomy panels under Fleet\n// (C7), and the drawer that hosts this view must not break when they move.\nimport { describeActionError as describeControlError } from '../shell/guarded-action.js';\n// A pure text helper (no panel code): ISO instants → local time, \".;\" → \";\".\nimport { tidyProse } from '../autonomy/format.js';\nimport {\n describeApproveConsequence,\n describeDiffStats,\n engineOf,\n formatDiffStats,\n kindLabel,\n localStamp,\n longAgo,\n parseRunSummary,\n reachesRemote,\n readableTitle,\n repoName,\n} from './approvals-model.js';\nimport styles from './approvals.module.css';\n\nconst JUDGE_REASON_DISPLAY: Record<JudgeDecisionReasonCode, { label: string; tone: Tone }> = {\n 'judge-ship-would-merge': { label: 'Ship (would merge)', tone: 'success' },\n 'judge-ship-review-required': { label: 'Ship (review required)', tone: 'success' },\n 'judge-review': { label: 'Review', tone: 'warning' },\n 'judge-noise': { label: 'Noise', tone: 'neutral' },\n 'judge-harmful': { label: 'Harmful', tone: 'danger' },\n 'judge-verdict-unrecognized': { label: 'Unrecognized verdict', tone: 'unknown' },\n 'judge-parse-failure': { label: 'Judge parse failure — not a review', tone: 'unknown' },\n 'judge-network-failure': { label: 'Judge network failure — not a review', tone: 'unknown' },\n};\n\nfunction latestJudged(decisions: DecisionEntry[]): DecisionEntry | null {\n const judged = decisions.filter((d) => d.action === 'judged' && d.judgeReasonCode);\n if (judged.length === 0) return null;\n return judged.reduce((a, b) => (Date.parse(b.ts) > Date.parse(a.ts) ? b : a));\n}\n\ntype PendingAction = 'approve' | 'reject' | null;\n\nexport interface ApprovalDetailProps {\n id: string;\n dispatchEnabled: boolean;\n onDispatchDisabled: () => void;\n onDecided: () => void;\n}\n\nexport function ApprovalDetail({ id, dispatchEnabled, onDispatchDisabled, onDecided }: ApprovalDetailProps) {\n const query = useQuery(proposalDetailQuery(id));\n const [pendingAction, setPendingAction] = useState<PendingAction>(null);\n const [tokenPrompt, setTokenPrompt] = useState(false);\n const [confirmOpen, setConfirmOpen] = useState(false);\n const [busy, setBusy] = useState(false);\n const [actionError, setActionError] = useState<string | null>(null);\n\n // Confirmation FIRST, then the token (SPEC-310C §1; the same order as the\n // Needs-you drawer's A / R keys — shell/guarded-action.tsx). An operator who\n // pressed Approve by mistake backs out at a prompt that says what is about\n // to happen, not at one asking for a secret.\n function requestAction(action: 'approve' | 'reject') {\n setActionError(null);\n setPendingAction(action);\n setConfirmOpen(true);\n }\n\n function closeTokenPrompt() {\n setTokenPrompt(false);\n // Live read — MutationTokenDialog closes synchronously after setToken().\n if (hasMutationHold()) {\n setConfirmOpen(true);\n void execute();\n } else {\n setPendingAction(null);\n }\n }\n\n function confirmAction() {\n if (!pendingAction) return;\n if (!hasMutationHold()) {\n setConfirmOpen(false);\n setTokenPrompt(true);\n return;\n }\n void execute();\n }\n\n async function execute() {\n if (!pendingAction) return;\n setBusy(true);\n setActionError(null);\n try {\n if (pendingAction === 'approve') await approveProposal(id);\n else await rejectProposal(id);\n setConfirmOpen(false);\n setPendingAction(null);\n onDecided();\n } catch (err) {\n if (err instanceof DispatchDisabledError) {\n setConfirmOpen(false);\n setPendingAction(null);\n onDispatchDisabled();\n } else {\n setActionError(describeControlError(err));\n }\n } finally {\n setBusy(false);\n }\n }\n\n if (query.status === 'loading') {\n return (\n <div className={styles.detail}>\n <SkeletonLine width=\"55%\" />\n <SkeletonLine width=\"30%\" />\n <SkeletonLine width=\"88%\" />\n </div>\n );\n }\n\n if (query.status === 'error' || !query.data) {\n return (\n <p className={styles.error} role=\"alert\">\n {query.error?.message ?? 'Could not load this proposal.'}\n </p>\n );\n }\n\n const p = query.data;\n const evidence = p.decisionEvidence;\n const judged = latestJudged(evidence?.decisions ?? []);\n const judgeDisplay = judged?.judgeReasonCode ? JUDGE_REASON_DISPLAY[judged.judgeReasonCode] : null;\n const canDecide = p.status === 'pending' && dispatchEnabled;\n const engine = engineOf(p);\n const consequence = describeApproveConsequence(p.kind, p.repo);\n const title = readableTitle(p.title);\n const project = repoName(p.repo);\n const facts = parseRunSummary(p.summary);\n // The run facts are shown as stats; only what the summary says beyond them stays a sentence.\n const summaryText = facts ? facts.rest : p.summary ? tidyProse(p.summary) : null;\n\n return (\n <div className={styles.detail}>\n <header className={styles.detailHead}>\n <p className={styles.eyebrow}>\n {kindLabel(p.kind)}\n {title.eyebrow ? ` \\u00b7 ${title.eyebrow}` : ''}\n </p>\n {/* Two lines at most; the whole title (as the server sent it) is the tooltip. */}\n <h3 className={styles.detailTitle} title={p.title}>{title.text}</h3>\n <div className={styles.detailMeta}>\n <StatusBadge status={p.status} />\n {project ? (\n <span className={styles.project} title={p.repo ?? undefined}>{project}</span>\n ) : (\n <span>no repository</span>\n )}\n <span>{p.riskClass ? `${p.riskClass} risk` : 'risk unstated'}</span>\n {engine ? <code title=\"The model that produced this change\">{engine}</code> : null}\n <span title={localStamp(p.createdAt)}>created {longAgo(p.createdAt)}</span>\n {p.decidedAt ? <span title={localStamp(p.decidedAt)}>decided {longAgo(p.decidedAt)}</span> : null}\n {query.status === 'refreshing' ? <RefreshIndicator /> : null}\n </div>\n {facts ? (\n <p className={styles.runFacts}>\n {/* aria-label on a plain span is ignored (a generic role cannot be\n named), so the glyphs are hidden and the sentence is real,\n visually-hidden text — NeedsYouRunFacts' pattern. */}\n <span className={styles.diffStats} aria-hidden=\"true\">\n {formatDiffStats(facts)}\n </span>\n <span className=\"visually-hidden\">{describeDiffStats(facts)}</span>\n <span aria-hidden=\"true\">·</span>\n <span className={styles.runSource} title={facts.sourceHint ?? undefined}>\n {facts.partial ? 'Partial \\u00b7 ' : ''}{facts.sourceLabel}\n </span>\n {engine === null ? (\n <>\n <span aria-hidden=\"true\">·</span>\n <code title=\"The model that produced this change\">{facts.model}</code>\n </>\n ) : null}\n </p>\n ) : null}\n {summaryText ? <p className={styles.summary}>{summaryText}</p> : null}\n </header>\n\n <section className={styles.block} aria-label=\"Evidence\">\n <h4 className={styles.blockTitle}>Evidence</h4>\n <dl className={styles.defs}>\n <dt>Judge verdict</dt>\n <dd>\n <Epistemic quality={evidence?.sourceQuality} label=\"judge verdict\">\n {judgeDisplay && judged?.judgeReasonCode ? (\n <StatusBadge status={judged.judgeReasonCode} tone={judgeDisplay.tone}>\n {judgeDisplay.label}\n </StatusBadge>\n ) : (\n <span className={styles.muted}>not yet judged</span>\n )}\n </Epistemic>\n </dd>\n\n <dt>Verification</dt>\n <dd>\n {p.verifyResult ? (\n <>\n <StatusBadge status={p.verifyResult.passed ? 'success' : 'failed'}>\n {p.verifyResult.passed ? 'passed' : 'failed'}\n </StatusBadge>\n {p.verifyResult.ran && p.verifyResult.ran.length > 0 ? (\n <span className={styles.muted}> · ran {p.verifyResult.ran.map((r) => r.kind).join(', ')}</span>\n ) : null}\n {!p.verifyResult.passed && p.verifyResult.failureCategory && p.verifyResult.failureCategory !== 'code' ? (\n <span className={styles.muted}> · {p.verifyResult.failureCategory} failure — the verifier itself, not the diff</span>\n ) : null}\n {p.verifyResult.failed && p.verifyResult.failed.length > 0 ? (\n <p className={styles.failedChecks}>failed: {p.verifyResult.failed.join(', ')}</p>\n ) : null}\n </>\n ) : (\n <span className={styles.muted}>not verified</span>\n )}\n </dd>\n\n {p.decisionReason ? (\n <>\n <dt>Decision reason</dt>\n <dd>{tidyProse(p.decisionReason)}</dd>\n </>\n ) : null}\n\n {p.evidenceOutcome ? (\n <>\n <dt>Gates</dt>\n <dd className={styles.muted}>\n {p.evidenceOutcome.gateCount ?? 0} gate{p.evidenceOutcome.gateCount === 1 ? '' : 's'}\n {p.evidenceOutcome.policyAction ? ` · policy ${p.evidenceOutcome.policyAction}` : ''}\n {p.evidenceOutcome.trustBasis ? ` · trust ${p.evidenceOutcome.trustBasis}` : ''}\n </dd>\n </>\n ) : null}\n\n {p.result ? (\n <>\n <dt>Result</dt>\n <dd>{tidyProse(p.result)}</dd>\n </>\n ) : null}\n </dl>\n </section>\n\n <section className={styles.block} aria-label=\"Provenance\">\n <h4 className={styles.blockTitle}>Provenance</h4>\n <dl className={styles.defs}>\n <dt>Produced by</dt>\n <dd>{engine ? <code>{engine}</code> : <span className={styles.muted}>unknown engine</span>}</dd>\n <dt>Origin</dt>\n <dd>{p.origin}</dd>\n {facts ? (\n <>\n <dt>How it was made</dt>\n <dd>\n <span title={facts.sourceHint ?? undefined}>{facts.sourceLabel}</span>\n {facts.sourceHint ? <p className={styles.hint}>{facts.sourceHint}</p> : null}\n </dd>\n </>\n ) : null}\n {p.repo ? (\n <>\n <dt>Repository</dt>\n <dd><code>{p.repo}</code></dd>\n </>\n ) : null}\n {p.workItemId ? (\n <>\n <dt>Work item</dt>\n <dd>\n <code>{p.workItemId}</code>\n </dd>\n </>\n ) : null}\n {p.runId ? (\n <>\n <dt>Run</dt>\n <dd>\n <code>{p.runId}</code>\n </dd>\n </>\n ) : null}\n <dt>Attestation</dt>\n <dd className={styles.muted}>\n {/* The signature itself is never rendered — only whether one exists. */}\n {p.producerProvenanceSig\n ? `signed by the sandboxed producer (v${p.producerProvenanceVersion ?? 2})`\n : p.provenanceSig\n ? 'legacy signature present'\n : 'unsigned — earns no positive routing credit'}\n {p.diffHash ? ' · diff hashed at signing time' : ''}\n </dd>\n </dl>\n </section>\n\n <section className={styles.block} aria-label=\"Diff\">\n <h4 className={styles.blockTitle}>Diff</h4>\n <DiffViewer diff={p.diff} proposalKind={p.kind} />\n </section>\n\n {p.status === 'pending' ? (\n <footer className={styles.actions}>\n <p className={styles.actionNote}>\n {dispatchEnabled ? consequence : 'Read-only session — approve and reject are unavailable without dispatch.'}\n </p>\n {actionError && !confirmOpen ? (\n <p className={styles.error} role=\"alert\">\n {actionError}\n </p>\n ) : null}\n <button type=\"button\" className={styles.reject} disabled={!canDecide || busy} onClick={() => requestAction('reject')}>\n Reject\n </button>\n <button type=\"button\" className={styles.approve} disabled={!canDecide || busy} onClick={() => requestAction('approve')}>\n Approve…\n </button>\n </footer>\n ) : (\n <footer className={styles.decided}>\n This proposal is already <strong>{p.status}</strong> — no further action is available.\n </footer>\n )}\n\n <MutationTokenDialog\n open={tokenPrompt}\n onClose={closeTokenPrompt}\n reason={\n pendingAction === 'approve'\n ? 'Approving a proposal writes to a real repository and requires the dispatch token.'\n : 'Rejecting a proposal requires the dispatch token.'\n }\n tokenHelp=\"the mutation token ashlr verse printed\"\n />\n\n <ConfirmDialog\n open={confirmOpen}\n onClose={() => {\n setConfirmOpen(false);\n setPendingAction(null);\n setActionError(null);\n }}\n title={\n pendingAction === 'approve'\n ? `Approve this ${p.kind} against ${project ?? 'the repository'}?`\n : 'Reject this proposal?'\n }\n body={\n pendingAction === 'approve' ? (\n <>\n <strong>{title.text}</strong>\n <br />\n {kindLabel(p.kind)} · <strong>{project ?? 'unknown repository'}</strong>\n {p.repo ? (\n <>\n <br />\n {/* The exact checkout the write lands in — the one place the full path belongs. */}\n <code>{p.repo}</code>\n </>\n ) : null}\n <br />\n <br />\n {consequence}\n {reachesRemote(p.kind) ? (\n <>\n <br />\n <br />\n This one leaves your machine.\n </>\n ) : null}\n </>\n ) : (\n <>\n This rejects <strong>{title.text}</strong> and discards it. It stays in history as rejected and is never\n applied.\n </>\n )\n }\n confirmLabel={pendingAction === 'approve' ? `Approve and ${reachesRemote(p.kind) ? 'open the pull request' : 'apply'}` : 'Reject'}\n // Approve is the irreversible one — a `pr` pushes a branch and opens a\n // real PR other people can see, a `patch` writes to disk now. Reject\n // only discards a proposal that stays in history. Putting the danger\n // styling on Reject trained the reflex that the red button is the safe\n // one; VERSE-CONTRACT-V2 calls Approve destructive explicitly.\n destructive={pendingAction === 'approve'}\n busy={busy}\n error={actionError}\n onConfirm={confirmAction}\n />\n </div>\n );\n}\n","/**\n * routes/verse/shell/needs-you-actions.ts — doing what a Needs-you item asks\n * (unit C1). One path for a drawer key (A / R / V / E), a drawer button and\n * the palette:\n *\n * 1. the action's route must be a same-origin `/api/` route\n * (isSafeApiRoute — checked again here, not only at the server's\n * producer boundary, because this is where the mutation token is sent);\n * 2. approve / reject / veto always confirm (the item's own copy, else a\n * generic one); other kinds only when the item carries copy;\n * 3. then the token, then the POST (guarded-action.tsx owns 2–3's order);\n * 4. on success the item is hidden at once (optimistic) and activity is\n * re-polled; it stays hidden until a poll no longer lists it, or 60 s.\n *\n * An action with no route (it needs Touch ID or a terminal) opens the item's\n * target instead — that is where the flow lives.\n */\nimport { useSyncExternalStore } from 'react';\nimport { isSafeApiRoute, type NeedsYouAction, type NeedsYouItem } from '../../../../core/verse/workbench-types.js';\nimport { getMutationToken, touchMutationHold } from '../../../data/auth-store.js';\nimport { invalidate, invalidatePrefix } from '../../../data/cache.js';\nimport { ApiError, apiPost } from '../../../data/client.js';\nimport { requestGuarded } from './guarded-action.js';\nimport { ALWAYS_CONFIRM, confirmCopy, readableItemTitle } from './needs-you-model.js';\nimport { refreshActivity } from './useActivity.js';\n\n/** How long an acted-on item stays hidden while the server catches up. */\nexport const RESOLVED_HIDE_MS = 60_000;\n\nlet resolved = new Map<string, number>();\nconst listeners = new Set<() => void>();\n\nfunction emit(): void {\n for (const l of [...listeners]) l();\n}\n\nexport function markResolved(id: string, at: number = Date.now()): void {\n resolved = new Map(resolved).set(id, at);\n emit();\n}\n\n/** Drop marks the server has caught up with (the id is gone) or that are too old. */\nexport function pruneResolved(liveIds: ReadonlySet<string>, now: number = Date.now()): void {\n let changed = false;\n const next = new Map(resolved);\n for (const [id, at] of next) {\n if (!liveIds.has(id) || now - at > RESOLVED_HIDE_MS) {\n next.delete(id);\n changed = true;\n }\n }\n if (changed) {\n resolved = next;\n emit();\n }\n}\n\nexport function useResolvedIds(): ReadonlyMap<string, number> {\n return useSyncExternalStore(\n (l) => {\n listeners.add(l);\n return () => listeners.delete(l);\n },\n () => resolved,\n () => resolved,\n );\n}\n\nexport function resetResolvedForTest(): void {\n resolved = new Map();\n emit();\n}\n\nexport interface ActionContext {\n /** Open the item's target (for an action with no route). */\n openTarget: (item: NeedsYouItem) => void;\n toast: (message: string, tone?: 'neutral' | 'success' | 'danger') => void;\n}\n\nfunction afterSuccess(item: NeedsYouItem): void {\n markResolved(item.id);\n if (item.source === 'approvals') {\n // The approvals list, the inbox badge and the proposal detail all read\n // these keys (data/mutations.ts approveProposal does the same).\n invalidate('inbox');\n invalidate('dashboard-snapshot');\n invalidatePrefix('inbox-list:');\n if (item.target.kind === 'approval') invalidate(`proposal-detail-${item.target.proposalId}`);\n }\n void refreshActivity();\n}\n\n/** Run `action` on `item` through confirm → token → POST. */\nexport function runNeedsYouAction(item: NeedsYouItem, action: NeedsYouAction, ctx: ActionContext): void {\n const request = action.request;\n if (!request) {\n ctx.openTarget(item);\n return;\n }\n if (!isSafeApiRoute(request.path)) {\n ctx.toast('That action points outside this app and was not sent.', 'danger');\n return;\n }\n const copy = confirmCopy(item, action);\n // The operator-facing title (\"fix the flaky snapshot test\"), not the raw\n // producer string (\"PR: fix the flaky snapshot test\") — same text the row shows.\n const title = readableItemTitle(item).text;\n const run = async () => {\n const token = getMutationToken();\n if (!token) throw new ApiError('Mutation token was rejected.', 401, request.path);\n await apiPost<unknown>(request.path, request.body, token);\n touchMutationHold();\n };\n const mustConfirm = ALWAYS_CONFIRM.has(action.kind) || copy !== null;\n requestGuarded({\n title: copy?.title ?? action.label,\n body: copy?.body ?? title,\n confirmLabel: copy?.confirmLabel ?? action.label,\n destructive: action.destructive,\n token: true,\n tokenReason: `${action.label} changes state on this machine and requires the dispatch token.`,\n skipConfirm: !mustConfirm,\n run,\n onDone: () => {\n afterSuccess(item);\n ctx.toast(`${action.label}: ${title}`, 'success');\n },\n onError: mustConfirm ? undefined : (message) => ctx.toast(message, 'danger'),\n });\n}\n","/**\n * routes/verse/shell/cloud-triage.ts — the Needs-you drawer's cloud PR\n * triage (3.13): each cloud PR's gate preview (GET /api/verse/cloud/previews,\n * core/cloud/pr-preview.ts), the chip a row shows for it, and running one\n * action kind over several items at once (\"Land all clean\", or A / R / E on a\n * multi-selection).\n *\n * The actions themselves are the items' own (cloud-api.ts triageActions maps\n * Land / Close / Update branch onto approve / reject / fix), so nothing here\n * builds a route: a batch POSTs each item's own request, pinned by the server\n * to the head SHA its preview judged.\n *\n * Loads with the drawer (VerseApp imports the drawer with import()), never\n * at first paint; pr-preview.ts is imported for its TYPES only — its value\n * graph is the server's merge gates.\n */\nimport type { CloudPrCheck, CloudPrPreview, CloudPrPreviewsResponse } from '../../../../core/cloud/pr-preview.js';\nimport { VERSE_CLOUD_PATH } from '../../../../core/cloud/types.js';\nimport { isSafeApiRoute, type NeedsYouActionKind, type NeedsYouItem } from '../../../../core/verse/workbench-types.js';\nimport { getMutationToken, touchMutationHold } from '../../../data/auth-store.js';\nimport { ApiError, apiGet, apiPost } from '../../../data/client.js';\nimport type { QueryDef } from '../../../data/queries.js';\nimport { requestGuarded, describeActionError } from './guarded-action.js';\nimport { markResolved } from './needs-you-actions.js';\nimport { actionOf, readableItemTitle } from './needs-you-model.js';\nimport { refreshActivity } from './useActivity.js';\n\nexport const CLOUD_PREVIEWS_KEY = 'verse-cloud-previews';\nconst PREVIEWS_PATH = `${VERSE_CLOUD_PATH}/previews`;\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n value !== null && typeof value === 'object' && !Array.isArray(value);\n\nfunction isCheck(value: unknown): value is CloudPrCheck {\n return isRecord(value) && typeof value['id'] === 'string' && typeof value['ok'] === 'boolean' && typeof value['text'] === 'string';\n}\n\nfunction isPreview(value: unknown): value is CloudPrPreview {\n return isRecord(value)\n && typeof value['itemId'] === 'string'\n && typeof value['headSha'] === 'string'\n && typeof value['wouldAutoLand'] === 'boolean'\n && typeof value['reason'] === 'string'\n && Array.isArray(value['checks']) && value['checks'].every(isCheck);\n}\n\n/** Previews by Needs-you item id. A malformed entry is dropped, never guessed at. */\nexport function narrowPreviews(raw: unknown): ReadonlyMap<string, CloudPrPreview> {\n const out = new Map<string, CloudPrPreview>();\n const list = isRecord(raw) ? (raw as Partial<CloudPrPreviewsResponse>).previews : undefined;\n if (!Array.isArray(list)) return out;\n for (const entry of list) if (isPreview(entry)) out.set(entry.itemId, entry);\n return out;\n}\n\nconst NONE: ReadonlyMap<string, CloudPrPreview> = new Map();\n\n/**\n * Optional read: a server without the route (404) or a failed read shows no\n * chips — the items and their own actions still work. 401 propagates (the\n * whole app's read session expired).\n */\nexport const cloudPreviewsQuery: QueryDef<ReadonlyMap<string, CloudPrPreview>> = {\n key: CLOUD_PREVIEWS_KEY,\n fetch: async (signal) => {\n try {\n return narrowPreviews(await apiGet<unknown>(PREVIEWS_PATH, signal));\n } catch (err) {\n if (err instanceof ApiError && err.status === 401) throw err;\n if (err instanceof DOMException && err.name === 'AbortError') throw err;\n return NONE;\n }\n },\n};\n\n// ---------------------------------------------------------------------------\n// What a row shows\n// ---------------------------------------------------------------------------\n\nexport interface TriageChip {\n tone: 'clean' | 'held';\n /** \"Clean\" / \"Held\". */\n label: string;\n /** The first failing check, in its own words (\"2 commits behind\"); null when clean. */\n why: string | null;\n /** The whole verdict sentence, for a tooltip. */\n title: string;\n}\n\n/** The chip for an item's preview, when the preview is for the head its actions are pinned to. */\nexport function triageChip(item: NeedsYouItem, preview: CloudPrPreview | undefined): TriageChip | null {\n if (!preview || !previewMatchesItem(item, preview)) return null;\n if (preview.wouldAutoLand) return { tone: 'clean', label: 'Clean', why: null, title: preview.reason };\n const failing = preview.checks.find((c) => !c.ok);\n return { tone: 'held', label: 'Held', why: failing?.text ?? null, title: preview.reason };\n}\n\n/**\n * A preview only speaks for an item whose actions are pinned to the same\n * head. Between a push and the next rebuild the two can disagree; the chip\n * then waits rather than vouch for a commit the Land button will not merge.\n */\nexport function previewMatchesItem(item: NeedsYouItem, preview: CloudPrPreview): boolean {\n const pinned = item.actions.find((a) => a.request !== null && typeof a.request.body['headSha'] === 'string');\n return pinned ? pinned.request!.body['headSha'] === preview.headSha : false;\n}\n\n/** Items \"Land all clean\" would land: previewed clean, pinned to that head, and carrying a Land action. */\nexport function cleanLandable(items: readonly NeedsYouItem[], previews: ReadonlyMap<string, CloudPrPreview>): NeedsYouItem[] {\n return items.filter((item) => {\n const preview = previews.get(item.id);\n return preview !== undefined && preview.wouldAutoLand && previewMatchesItem(item, preview) && actionOf(item, 'approve') !== null;\n });\n}\n\n// ---------------------------------------------------------------------------\n// Batches\n// ---------------------------------------------------------------------------\n\nexport interface BatchContext {\n toast: (message: string, tone?: 'neutral' | 'success' | 'danger') => void;\n /** Called with the ids that succeeded (the drawer clears them from its selection). */\n onSettled?: (succeeded: readonly string[]) => void;\n}\n\n/** The verb a batch dialog uses for `kind` over `n` items (\"Land 3 pull requests?\"). */\nfunction batchCopy(kind: NeedsYouActionKind, items: readonly NeedsYouItem[]): { title: string; confirmLabel: string; verb: string } {\n const label = actionOf(items[0]!, kind)?.label ?? kind;\n const n = items.length;\n const noun = items.every((i) => i.subject.pr !== null) ? (n === 1 ? 'pull request' : 'pull requests') : n === 1 ? 'item' : 'items';\n return { title: `${label} ${n} ${noun}?`, confirmLabel: `${label} ${n}`, verb: label };\n}\n\n/**\n * One confirmation, one token, then each item's own `kind` request in turn\n * (sequential: GitHub merges into one base branch, and a second merge must\n * see the first). A refusal does not stop the rest; the toast names what\n * landed and why anything did not. Items without that action are skipped.\n */\nexport function runBatch(items: readonly NeedsYouItem[], kind: NeedsYouActionKind, ctx: BatchContext): boolean {\n const eligible = items.filter((item) => {\n const action = actionOf(item, kind);\n return action?.request != null && isSafeApiRoute(action.request.path);\n });\n if (eligible.length === 0) {\n ctx.toast('None of the selected items can do that.', 'neutral');\n return false;\n }\n const copy = batchCopy(kind, eligible);\n const named = eligible.slice(0, 3).map((item) => (item.subject.pr ? `#${item.subject.pr}` : `“${readableItemTitle(item).text}”`));\n const list = eligible.length > 3 ? `${named.join(', ')} and ${eligible.length - 3} more` : named.join(', ');\n const destructive = eligible.some((item) => actionOf(item, kind)?.destructive === true);\n const succeeded = new Set<string>();\n let failures: string[] = [];\n return requestGuarded({\n title: copy.title,\n body: `${list}. Each runs on the exact commit it was checked on; one that moved since is refused, not changed.`,\n confirmLabel: copy.confirmLabel,\n destructive,\n token: true,\n tokenReason: `${copy.verb} changes pull requests on GitHub and requires the dispatch token.`,\n run: async () => {\n const token = getMutationToken();\n if (!token) throw new ApiError('Mutation token was rejected.', 401, PREVIEWS_PATH);\n // A retry from the dialog re-runs only what has not gone through yet.\n failures = [];\n for (const item of eligible) {\n if (succeeded.has(item.id)) continue;\n const request = actionOf(item, kind)!.request!;\n try {\n await apiPost<unknown>(request.path, request.body, token);\n succeeded.add(item.id);\n markResolved(item.id);\n } catch (err) {\n // A rejected token stops the batch: every later POST would fail the same way.\n if (err instanceof ApiError && err.status === 401) throw err;\n failures.push(`${item.subject.pr ? `#${item.subject.pr}` : readableItemTitle(item).text}: ${describeActionError(err)}`);\n }\n }\n touchMutationHold();\n if (succeeded.size === 0) throw new Error(failures.length === 1 ? failures[0]! : `None went through. ${failures[0]!}`);\n },\n onDone: () => {\n void refreshActivity();\n ctx.onSettled?.([...succeeded]);\n const done = `${copy.verb}: ${succeeded.size} of ${eligible.length} done.`;\n ctx.toast(\n failures.length === 0 ? done : `${done} ${failures[0]}${failures.length > 1 ? ` (+${failures.length - 1} more)` : ''}`,\n failures.length === 0 ? 'success' : 'neutral',\n );\n },\n });\n}\n","/**\n * routes/verse/shell/NeedsYouDrawer.tsx — ⌘J, the one inbox for everything\n * waiting on the operator (unit C1; SPEC-310C §1 \"Needs-you drawer\").\n *\n * splits All · Approvals · Fleet · Chats · Accounts (H / L)\n * list J / K move · ↩ open · A approve · R reject · V veto · E done\n * X (or Shift-click) picks rows; A / R / E then act on every pick\n * detail an approval reuses ApprovalDetail (diff, evidence, provenance);\n * anything else shows its argument, its deadline and its actions\n * cloud a cloud PR shows its gate verdict (Clean / Held · why) and, in\n * its detail, every check; \"Land all clean\" lands every Clean one\n * after one confirmation (cloud-triage.ts)\n *\n * Every A / R / V goes through confirmation and then the mutation token\n * (needs-you-actions.ts → guarded-action.tsx) — keyboard triage is fast, but\n * never one keystroke from a real pull request.\n *\n * \"All clear\" is a claim, so it is only made for a split whose every producer\n * answered (needs-you-model splitCoverage). Otherwise the empty state names\n * who is not reporting — an empty list from a silent source is not good news.\n *\n * A right-hand sheet on a desktop window; a full-screen sheet below 480px.\n */\nimport { lazy, Suspense, useCallback, useEffect, useId, useMemo, useRef, useState, type KeyboardEvent as ReactKeyboardEvent } from 'react';\nimport { createPortal } from 'react-dom';\nimport { Button, IconButton } from '../../../components/primitives/Button.js';\nimport { useFocusTrap } from '../../../components/primitives/focus-trap.js';\nimport { IconExternalLink, IconX } from '../../../components/primitives/icons.js';\nimport { SkeletonRow } from '../../../components/primitives/Skeleton.js';\nimport { useToast } from '../../../components/primitives/Toast.js';\nimport type { VerseSeat } from '../../../data/api-types.js';\nimport type { CloudPrPreview } from '../../../../core/cloud/pr-preview.js';\nimport { useQuery, useRefetch } from '../../../data/hooks.js';\nimport {\n NEEDS_YOU_ACTION_KEYS,\n type NeedsYouActionKind,\n type NeedsYouItem,\n} from '../../../../core/verse/workbench-types.js';\nimport { ApprovalDetail } from '../approvals/ApprovalDetail.js';\nimport { useVerseUi } from '../useVerseUi.js';\nimport { ReturnKeyIcon } from '../verse-icons.js';\nimport { verseBootstrapQuery } from '../verse-queries.js';\nimport {\n closeVerseOverlay,\n NEEDS_YOU_SPLITS,\n openVerseSession,\n sectionEntry,\n setVerseNeedsYouSplit,\n setVerseSection,\n type NeedsYouSplit,\n} from '../verse-ui-store.js';\nimport { matchCommand } from './command-catalog.js';\nimport { isGuardOpen } from './guarded-action.js';\nimport { markResolved, pruneResolved, runNeedsYouAction, useResolvedIds } from './needs-you-actions.js';\nimport { cleanLandable, cloudPreviewsQuery, runBatch, triageChip, type TriageChip } from './cloud-triage.js';\nimport {\n actionOf,\n describeSilence,\n itemsForSplit,\n needsYouRowView,\n runModelDisplayName,\n seatDisplayName,\n SPLIT_LABEL,\n splitCounts,\n splitCoverage,\n until,\n} from './needs-you-model.js';\nimport { NeedsYouList, NeedsYouRunFacts, TriageChipView } from './NeedsYouList.js';\nimport { refreshActivity, useActivity } from './useActivity.js';\nimport { useViewport } from './viewport.js';\nimport styles from './NeedsYouDrawer.module.css';\n\n/** A section anchor for the surface an item points into (the shell reveals it: shell/reveal-anchor.ts). */\nexport { VERSE_ANCHOR_EVENT } from '../verse-ui-store.js';\n\n/** Cloud PR items (cloud-api.ts cloudNeedsYouItems) — the only rows with a gate preview. */\nconst CLOUD_PR_ITEM_PREFIX = 'fleet:owner-lane-pr:cloud-';\n/** Any cloud task's item (its PR, or its failed launch) → the task id, for its evidence. */\nconst CLOUD_ITEM_RE = /^(?:fleet:owner-lane-pr|chats:chat-failed):cloud-(ct_\\d{8}T\\d{4}_[a-z0-9]{6})$/;\n\n/** The task's evidence sheet (cloud/EvidenceTimeline.tsx): its own chunk, fetched the first time it opens. */\nconst EvidenceTimeline = lazy(() => import('../cloud/EvidenceTimeline.js'));\n\nconst DRAWER_ACTION: Readonly<Record<string, NeedsYouActionKind>> = {\n 'drawer.approve': 'approve',\n 'drawer.reject': 'reject',\n 'drawer.veto': 'veto',\n 'drawer.done': 'done',\n};\n\nfunction isTextTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) return false;\n return target.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(target.tagName);\n}\n\nexport function NeedsYouDrawer() {\n const ui = useVerseUi();\n const activity = useActivity();\n const toast = useToast();\n const bootstrap = useQuery(verseBootstrapQuery);\n const { compact } = useViewport();\n const resolved = useResolvedIds();\n const titleId = useId();\n const panelRef = useRef<HTMLDivElement>(null);\n const listRef = useRef<HTMLDivElement>(null);\n const detailRef = useRef<HTMLDivElement>(null);\n const [selectedId, setSelectedId] = useState<string | null>(null);\n const [detailId, setDetailId] = useState<string | null>(null);\n const [dispatchDenied, setDispatchDenied] = useState(false);\n const [now, setNow] = useState(() => Date.now());\n const [picked, setPicked] = useState<ReadonlySet<string>>(() => new Set());\n\n // Countdowns (\"closes in 24m\") tick while the drawer is open; nothing else re-renders.\n useEffect(() => {\n const id = setInterval(() => setNow(Date.now()), 15_000);\n return () => clearInterval(id);\n }, []);\n\n const data = activity.data;\n const liveItems = data?.needsYou;\n useEffect(() => {\n if (liveItems) pruneResolved(new Set(liveItems.map((i) => i.id)));\n }, [liveItems]);\n\n const all = useMemo(() => (liveItems ?? []).filter((i) => !resolved.has(i.id)), [liveItems, resolved]);\n const split = ui.needsYouSplit;\n const items = useMemo(() => itemsForSplit(all, split), [all, split]);\n const counts = useMemo(() => splitCounts(all), [all]);\n const coverage = splitCoverage(data?.sources ?? null, split);\n const dispatchEnabled = (bootstrap.data?.dispatchEnabled ?? true) && !dispatchDenied;\n\n // Cloud PR verdicts: re-read whenever a cloud item's text changes (the\n // server rewrites its detail when a new preview lands).\n const previewsQuery = useQuery(cloudPreviewsQuery, { freshMs: 15_000 });\n const refetchPreviews = useRefetch(cloudPreviewsQuery);\n const cloudSignature = useMemo(\n () => all.filter((i) => i.id.startsWith(CLOUD_PR_ITEM_PREFIX)).map((i) => `${i.id}\\u0000${i.detail ?? ''}`).join('\\u0001'),\n [all],\n );\n const firstSignature = useRef(true);\n useEffect(() => {\n // The mount already fetched; only a CHANGE re-reads.\n if (firstSignature.current) {\n firstSignature.current = false;\n return;\n }\n if (cloudSignature) refetchPreviews();\n }, [cloudSignature, refetchPreviews]);\n const previews = previewsQuery.data ?? NO_PREVIEWS;\n const chips = useMemo(() => {\n const out = new Map<string, TriageChip>();\n for (const item of all) {\n const chip = triageChip(item, previews.get(item.id));\n if (chip) out.set(item.id, chip);\n }\n return out;\n }, [all, previews]);\n const landAll = useMemo(() => cleanLandable(items, previews), [items, previews]);\n\n // Picks only ever name rows this split shows.\n useEffect(() => {\n setPicked((prev) => {\n if (prev.size === 0) return prev;\n const next = new Set([...prev].filter((id) => items.some((i) => i.id === id)));\n return next.size === prev.size ? prev : next;\n });\n }, [items]);\n const togglePick = useCallback((id: string) => {\n setPicked((prev) => {\n const next = new Set(prev);\n if (!next.delete(id)) next.add(id);\n return next;\n });\n }, []);\n const clearPicks = useCallback(() => setPicked(new Set()), []);\n\n // Open on the item the palette / a notification asked for.\n const focusId = ui.needsYouFocus;\n useEffect(() => {\n if (!focusId) return;\n const item = all.find((i) => i.id === focusId);\n if (!item) return;\n setSelectedId(item.id);\n setDetailId(item.id);\n }, [focusId, all]);\n\n // Keep the selection on a real row as items come and go.\n useEffect(() => {\n if (items.length === 0) {\n if (selectedId !== null) setSelectedId(null);\n return;\n }\n if (!selectedId || !items.some((i) => i.id === selectedId)) setSelectedId(items[0]!.id);\n }, [items, selectedId]);\n\n const detailItem = detailId ? all.find((i) => i.id === detailId) ?? null : null;\n useEffect(() => {\n // The item was resolved (here or elsewhere) while open: back to the list.\n if (detailId && !detailItem) setDetailId(null);\n }, [detailId, detailItem]);\n\n const closeDetail = useCallback(() => setDetailId(null), []);\n\n const trapClose = useCallback(() => {\n // Esc in a dialog opened FROM the drawer (a confirmation, the token\n // prompt) belongs to that dialog: every trap hears Escape, and this one\n // registered first.\n if (isGuardOpen() || document.querySelector('[aria-modal=\"true\"]:not([data-verse-overlay])')) return;\n if (detailId) closeDetail();\n else closeVerseOverlay();\n }, [detailId, closeDetail]);\n useFocusTrap({ open: true, containerRef: panelRef, onClose: trapClose, initialFocusRef: listRef });\n\n // Focus follows the view: into the detail when it opens, back to the list\n // when it closes (not on first mount — the focus trap places that).\n const detailWasOpen = useRef(false);\n useEffect(() => {\n if (detailId) {\n detailWasOpen.current = true;\n detailRef.current?.focus({ preventScroll: true });\n } else if (detailWasOpen.current) {\n detailWasOpen.current = false;\n listRef.current?.focus({ preventScroll: true });\n }\n }, [detailId]);\n\n // The list usually arrives AFTER the drawer opened (the first poll): the\n // trap focused the placeholder, which is then removed and focus falls to\n // <body>. Hand it to the list — unless the operator has moved it anywhere\n // real (a dialog opened from the drawer lives outside this panel).\n const hasItems = items.length > 0;\n useEffect(() => {\n if (!hasItems || detailId) return;\n const active = document.activeElement;\n if (active === null || active === document.body || active === panelRef.current) listRef.current?.focus({ preventScroll: true });\n }, [hasItems, detailId]);\n\n const openTarget = useCallback((item: NeedsYouItem) => {\n const target = item.target;\n switch (target.kind) {\n case 'approval':\n setSelectedId(item.id);\n setDetailId(item.id);\n return;\n case 'session':\n closeVerseOverlay();\n openVerseSession(target.sessionId);\n return;\n case 'section':\n closeVerseOverlay();\n setVerseSection(target.section, target.anchor);\n return;\n case 'seat':\n closeVerseOverlay();\n setVerseSection('apps', `seat:${target.seatId}`);\n return;\n case 'url':\n // https only (isNeedsYouItem), a new browsing context with no opener.\n window.open(target.url, '_blank', 'noopener,noreferrer');\n return;\n default:\n return;\n }\n }, []);\n\n const act = useCallback((item: NeedsYouItem, kind: NeedsYouActionKind) => {\n const action = actionOf(item, kind);\n if (!action) {\n toast.show(`Nothing to ${kind} on this item.`, 'neutral');\n return;\n }\n if (!dispatchEnabled && action.request) {\n toast.show('This server was started without dispatch — run `ashlr verse` to act.', 'neutral');\n return;\n }\n runNeedsYouAction(item, action, { openTarget, toast: toast.show });\n }, [dispatchEnabled, openTarget, toast]);\n\n const actOnMany = useCallback((targets: readonly NeedsYouItem[], kind: NeedsYouActionKind) => {\n if (!dispatchEnabled) {\n toast.show('This server was started without dispatch — run `ashlr verse` to act.', 'neutral');\n return;\n }\n runBatch(targets, kind, {\n toast: toast.show,\n onSettled: (done) => setPicked((prev) => new Set([...prev].filter((id) => !done.includes(id)))),\n });\n }, [dispatchEnabled, toast]);\n\n function move(delta: 1 | -1) {\n if (items.length === 0) return;\n const at = Math.max(0, items.findIndex((i) => i.id === selectedId));\n const next = items[(at + delta + items.length) % items.length]!;\n setSelectedId(next.id);\n if (detailId) setDetailId(next.id);\n }\n\n function stepSplit(delta: 1 | -1) {\n const at = NEEDS_YOU_SPLITS.indexOf(split);\n const next = NEEDS_YOU_SPLITS[(at + delta + NEEDS_YOU_SPLITS.length) % NEEDS_YOU_SPLITS.length]!;\n setVerseNeedsYouSplit(next);\n setDetailId(null);\n clearPicks();\n }\n\n function onKeyDown(event: ReactKeyboardEvent<HTMLDivElement>) {\n if (event.defaultPrevented || isTextTarget(event.target)) return;\n // React bubbles through portals: a key typed in a dialog ApprovalDetail\n // opened (rendered outside this panel's DOM) is not a triage key.\n if (!(event.target instanceof Node) || !panelRef.current?.contains(event.target)) return;\n const command = matchCommand(event.nativeEvent, ['drawer']);\n if (!command) return;\n // A button inside the detail answers Enter itself; the drawer's Enter is\n // for the list.\n if (command.id === 'drawer.open' && event.target instanceof HTMLButtonElement) return;\n event.preventDefault();\n event.stopPropagation();\n const current = items.find((i) => i.id === (detailId ?? selectedId)) ?? null;\n switch (command.id) {\n case 'drawer.next':\n move(1);\n return;\n case 'drawer.prev':\n move(-1);\n return;\n case 'drawer.split-next':\n stepSplit(1);\n return;\n case 'drawer.split-prev':\n stepSplit(-1);\n return;\n case 'drawer.open':\n if (current) setDetailId(current.id);\n return;\n case 'drawer.select':\n if (current && !detailId) togglePick(current.id);\n return;\n default: {\n const kind = DRAWER_ACTION[command.id];\n if (!kind) return;\n // With rows picked (and the list showing), the key acts on every pick.\n const many = !detailId && picked.size > 0 ? items.filter((i) => picked.has(i.id)) : [];\n if (many.length > 0) actOnMany(many, kind);\n else if (current) act(current, kind);\n }\n }\n }\n\n const loading = !data && (activity.status === 'loading' || activity.status === 'idle');\n const unavailable = !data && activity.status === 'unavailable';\n\n return createPortal(\n <div className={styles.backdrop} onMouseDown={(e) => e.target === e.currentTarget && closeVerseOverlay()}>\n <div\n ref={panelRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={titleId}\n className={styles.panel}\n data-presentation={compact ? 'full' : 'side'}\n data-verse-overlay=\"needs-you\"\n data-scope=\"drawer\"\n tabIndex={-1}\n onKeyDown={onKeyDown}\n >\n <header className={styles.head}>\n <h2 id={titleId} className={styles.title}>\n Needs you\n {data ? <span className={styles.titleCount}>{counts.all}</span> : null}\n </h2>\n <IconButton variant=\"ghost\" size=\"sm\" icon={<IconX />} aria-label=\"Close Needs you\" onClick={closeVerseOverlay} />\n </header>\n\n <div\n role=\"tablist\"\n aria-label=\"Splits\"\n className={styles.splits}\n onKeyDown={(e) => {\n if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return;\n e.preventDefault();\n stepSplit(e.key === 'ArrowRight' ? 1 : -1);\n }}\n >\n {NEEDS_YOU_SPLITS.map((s: NeedsYouSplit) => (\n <button\n key={s}\n type=\"button\"\n role=\"tab\"\n aria-selected={s === split}\n tabIndex={s === split ? 0 : -1}\n className={styles.split}\n onClick={() => {\n setVerseNeedsYouSplit(s);\n setDetailId(null);\n }}\n >\n {SPLIT_LABEL[s]}\n <span className={styles.splitCount} aria-label={`${counts[s]} items`}>{counts[s]}</span>\n </button>\n ))}\n </div>\n\n {!detailItem && (picked.size > 0 || landAll.length > 0) ? (\n <BatchBar\n pickedItems={items.filter((i) => picked.has(i.id))}\n landAll={landAll}\n dispatchEnabled={dispatchEnabled}\n onRun={actOnMany}\n onClear={clearPicks}\n />\n ) : null}\n\n <div className={styles.body}>\n {detailItem ? (\n <div ref={detailRef} className={styles.detail} tabIndex={-1} aria-label=\"Item detail\">\n <button type=\"button\" className={styles.back} onClick={closeDetail}>\n ‹ All {SPLIT_LABEL[split].toLowerCase()}\n </button>\n {detailItem.target.kind === 'approval' ? (\n <div className={styles.approval}>\n <ApprovalDetail\n key={detailItem.target.proposalId}\n id={detailItem.target.proposalId}\n dispatchEnabled={dispatchEnabled}\n onDispatchDisabled={() => setDispatchDenied(true)}\n onDecided={() => {\n markResolved(detailItem.id);\n void refreshActivity();\n closeDetail();\n }}\n />\n </div>\n ) : (\n <ItemDetail\n item={detailItem}\n now={now}\n seats={bootstrap.data?.seats ?? NO_SEATS}\n onAct={act}\n onOpenTarget={openTarget}\n dispatchEnabled={dispatchEnabled}\n chip={chips.get(detailItem.id) ?? null}\n preview={chips.has(detailItem.id) ? previews.get(detailItem.id) ?? null : null}\n />\n )}\n </div>\n ) : loading ? (\n <div className={styles.loading} role=\"status\" aria-label=\"Loading\">\n <SkeletonRow />\n <SkeletonRow />\n <SkeletonRow />\n </div>\n ) : unavailable ? (\n <div className={styles.empty}>\n <p className={styles.emptyTitle}>Needs you isn't available on this server</p>\n <p className={styles.emptyBody}>This build does not report activity yet, so nothing here can be vouched for. Approvals still work from the inbox.</p>\n </div>\n ) : items.length === 0 ? (\n <EmptySplit coverageText={describeSilence(coverage)} vouched={coverage.vouched} autonomyLabel={data?.autonomy?.label ?? null} split={split} />\n ) : (\n <NeedsYouList\n ref={listRef}\n items={items}\n selectedId={selectedId}\n onSelect={setSelectedId}\n // A click (or a tap — a phone has no J / K) opens the item;\n // the keyboard moves the selection without opening.\n onOpen={(id) => {\n setSelectedId(id);\n setDetailId(id);\n }}\n now={now}\n label={`${SPLIT_LABEL[split]} needing you`}\n picked={picked}\n onTogglePick={togglePick}\n chips={chips}\n />\n )}\n {/* The list holds the initial focus; with no list, the panel does. */}\n {items.length === 0 && !detailItem ? <div ref={listRef} tabIndex={-1} className={styles.focusSink} aria-hidden=\"true\" /> : null}\n </div>\n\n {!compact ? (\n <footer className={styles.foot} aria-hidden=\"true\">\n <span><kbd className={styles.key}>J</kbd><kbd className={styles.key}>K</kbd> move</span>\n <span><kbd className={styles.key}><ReturnKeyIcon /></kbd> open</span>\n <span><kbd className={styles.key}>A</kbd> approve</span>\n <span><kbd className={styles.key}>R</kbd> reject</span>\n <span><kbd className={styles.key}>V</kbd> veto</span>\n <span><kbd className={styles.key}>E</kbd> done</span>\n <span><kbd className={styles.key}>X</kbd> pick</span>\n <span><kbd className={styles.key}>H</kbd><kbd className={styles.key}>L</kbd> splits</span>\n </footer>\n ) : null}\n {!coverage.vouched && items.length > 0 ? (\n <p className={styles.caveat} role=\"note\">{describeSilence(coverage)} — this list may be incomplete.</p>\n ) : null}\n </div>\n </div>,\n document.body,\n );\n}\n\nfunction EmptySplit({ vouched, coverageText, autonomyLabel, split }: { vouched: boolean; coverageText: string; autonomyLabel: string | null; split: NeedsYouSplit }) {\n if (vouched) {\n return (\n <div className={styles.empty} data-state=\"clear\">\n <span className={styles.clearMark} aria-hidden=\"true\" />\n <p className={styles.emptyTitle}>All clear</p>\n <p className={styles.emptyBody}>{autonomyLabel ? `Fleet: ${autonomyLabel}.` : 'Nothing is waiting on you.'}</p>\n </div>\n );\n }\n return (\n <div className={styles.empty} data-state=\"unknown\">\n <p className={styles.emptyTitle}>Nothing to show{split === 'all' ? '' : ` in ${SPLIT_LABEL[split]}`} — but it isn't an all-clear</p>\n <p className={styles.emptyBody}>{coverageText}.</p>\n </div>\n );\n}\n\nconst TARGET_LABEL = (item: NeedsYouItem): string | null => {\n switch (item.target.kind) {\n case 'session':\n return 'Open chat';\n case 'section':\n return `Open ${sectionEntry(item.target.section).label}`;\n case 'seat':\n return 'Open Apps & Accounts';\n case 'url':\n return 'Open on GitHub';\n default:\n return null;\n }\n};\n\nconst NO_SEATS: readonly VerseSeat[] = [];\nconst NO_PREVIEWS: ReadonlyMap<string, CloudPrPreview> = new Map();\n\n/** Which actions the picks can run: every kind at least one pick has, with how many have it. */\nfunction sharedActions(pickedItems: readonly NeedsYouItem[]): Array<{ kind: NeedsYouActionKind; label: string; destructive: boolean; count: number }> {\n const byKind = new Map<NeedsYouActionKind, { label: string; destructive: boolean; count: number }>();\n for (const item of pickedItems) {\n for (const action of item.actions) {\n if (!action.request) continue;\n const entry = byKind.get(action.kind);\n if (entry) entry.count += 1;\n else byKind.set(action.kind, { label: action.label, destructive: action.destructive, count: 1 });\n }\n }\n // Land first, Dismiss last.\n const order: NeedsYouActionKind[] = ['approve', 'fix', 'reject', 'veto', 'resume', 'renew', 'done'];\n return order.flatMap((kind) => {\n const entry = byKind.get(kind);\n return entry ? [{ kind, ...entry }] : [];\n });\n}\n\n/**\n * The strip over the list: what the picks can do (each button runs on the\n * picks that have that action), or — with nothing picked — \"Land all clean\".\n */\nfunction BatchBar({\n pickedItems,\n landAll,\n dispatchEnabled,\n onRun,\n onClear,\n}: {\n pickedItems: readonly NeedsYouItem[];\n landAll: readonly NeedsYouItem[];\n dispatchEnabled: boolean;\n onRun: (targets: readonly NeedsYouItem[], kind: NeedsYouActionKind) => void;\n onClear: () => void;\n}) {\n if (pickedItems.length === 0) {\n return (\n <div className={styles.batch} role=\"toolbar\" aria-label=\"Cloud pull requests\">\n <span className={styles.batchCount}>\n {landAll.length} clean cloud {landAll.length === 1 ? 'PR' : 'PRs'}\n </span>\n <Button size=\"sm\" variant=\"primary\" disabled={!dispatchEnabled} onClick={() => onRun(landAll, 'approve')}>\n Land all clean\n </Button>\n </div>\n );\n }\n const actions = sharedActions(pickedItems);\n return (\n <div className={styles.batch} role=\"toolbar\" aria-label=\"Picked items\">\n <span className={styles.batchCount}>{pickedItems.length} picked</span>\n {actions.map((a) => {\n const key = NEEDS_YOU_ACTION_KEYS[a.kind];\n const partial = a.count < pickedItems.length;\n return (\n <Button\n key={a.kind}\n size=\"sm\"\n variant={a.destructive ? 'danger' : a.kind === 'approve' ? 'primary' : 'subtle'}\n disabled={!dispatchEnabled}\n onClick={() => onRun(pickedItems, a.kind)}\n aria-keyshortcuts={key}\n title={partial ? `${a.count} of ${pickedItems.length} picked can do this` : undefined}\n >\n {a.label}{partial ? ` ${a.count}` : ''}\n {key ? <kbd className={styles.inlineKey} aria-hidden=\"true\">{key}</kbd> : null}\n </Button>\n );\n })}\n <Button size=\"sm\" variant=\"ghost\" onClick={onClear}>Clear</Button>\n </div>\n );\n}\n\nfunction ItemDetail({\n item,\n now,\n seats,\n onAct,\n onOpenTarget,\n dispatchEnabled,\n chip,\n preview,\n}: {\n item: NeedsYouItem;\n now: number;\n /** The roster (bootstrap), for naming the item's seat and its run's model. */\n seats: readonly VerseSeat[];\n onAct: (item: NeedsYouItem, kind: NeedsYouActionKind) => void;\n onOpenTarget: (item: NeedsYouItem) => void;\n dispatchEnabled: boolean;\n /** A cloud PR's verdict and the checks behind it; null for everything else. */\n chip: TriageChip | null;\n preview: CloudPrPreview | null;\n}) {\n const targetLabel = TARGET_LABEL(item);\n const cloudTaskId = CLOUD_ITEM_RE.exec(item.id)?.[1] ?? null;\n const [evidenceOpen, setEvidenceOpen] = useState(false);\n // The same readable text as the row (needs-you-model needsYouRowView), with room for the whole title.\n const view = needsYouRowView(item, now);\n // \"Claude Max\" and \"Fable 5.1\", never `claude-a` / `claude:claude-fable-5-1`\n // — the ids ride in tooltips (monospace only when the id is all we have).\n const seat = item.subject.seatId ? seatDisplayName(seats, item.subject.seatId) : null;\n const model = view.run ? runModelDisplayName(seats, view.run.model, item.subject.seatId) : null;\n return (\n <article className={styles.item}>\n <header className={styles.itemHead}>\n {view.kindLabel ? <p className={styles.rowKind}>{view.kindLabel}</p> : null}\n <h3 className={styles.itemTitle} title={view.fullTitle}>{view.title}</h3>\n {view.run ? <NeedsYouRunFacts run={view.run} /> : null}\n </header>\n {view.detail ? <p className={styles.itemDetail}>{view.detail}</p> : null}\n {chip && preview ? (\n <section className={styles.verdict} aria-label=\"Gate preview\">\n <p className={styles.verdictHead}>\n <TriageChipView chip={{ ...chip, why: null }} />\n <span className={styles.mono} title={preview.headSha}>{preview.headSha.slice(0, 7)}</span>\n </p>\n <ul className={styles.checks}>\n {preview.checks.map((check) => (\n <li key={check.id} data-ok={check.ok ? 'true' : 'false'}>\n <span className={styles.checkMark} aria-hidden=\"true\">{check.ok ? '✓' : '×'}</span>\n <span className=\"visually-hidden\">{check.ok ? 'Passes: ' : 'Fails: '}</span>\n {check.text}\n </li>\n ))}\n </ul>\n </section>\n ) : null}\n <dl className={styles.defs}>\n {view.repo ? (<><dt>Repo</dt><dd className={styles.repo} title={view.repoFull}>{view.repo}</dd></>) : null}\n {item.subject.pr ? (<><dt>Pull request</dt><dd>#{item.subject.pr}</dd></>) : null}\n {seat ? (<><dt>Seat</dt><dd className={seat.raw ? undefined : styles.mono} title={seat.raw}>{seat.text}</dd></>) : null}\n {model ? (<><dt>Model</dt><dd className={model.raw ? undefined : styles.mono} title={model.raw}>{model.text}</dd></>) : null}\n <dt>Raised</dt>\n <dd title={view.ageStamp}>{view.age}</dd>\n {item.expiresAt ? (<><dt>Closes</dt><dd className={styles.deadline}>{until(item.expiresAt, now)}</dd></>) : null}\n </dl>\n <div className={styles.itemActions}>\n {targetLabel ? (\n <Button variant=\"subtle\" size=\"sm\" onClick={() => onOpenTarget(item)} trailingIcon={item.target.kind === 'url' ? <IconExternalLink /> : undefined}>\n {targetLabel}\n </Button>\n ) : null}\n {cloudTaskId ? (\n <Button variant=\"subtle\" size=\"sm\" aria-haspopup=\"dialog\" onClick={() => setEvidenceOpen(true)}>\n Evidence\n </Button>\n ) : null}\n {item.actions.map((action) => {\n const key = NEEDS_YOU_ACTION_KEYS[action.kind];\n const needsDispatch = action.request !== null;\n return (\n <Button\n key={action.kind}\n size=\"sm\"\n variant={action.destructive ? 'danger' : action.kind === 'approve' ? 'primary' : 'subtle'}\n disabled={needsDispatch && !dispatchEnabled}\n onClick={() => onAct(item, action.kind)}\n aria-keyshortcuts={key}\n >\n {action.label}\n {key ? <kbd className={styles.inlineKey} aria-hidden=\"true\">{key}</kbd> : null}\n </Button>\n );\n })}\n </div>\n {!dispatchEnabled ? <p className={styles.caveat}>Read-only session — actions need `ashlr verse`.</p> : null}\n {evidenceOpen && cloudTaskId ? (\n <Suspense fallback={null}>\n <EvidenceTimeline taskId={cloudTaskId} title={view.title} open onClose={() => setEvidenceOpen(false)} now={now} />\n </Suspense>\n ) : null}\n </article>\n );\n}\n"],"file":"NeedsYouDrawer-N1cWJjpz.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._backdrop_1d2dw_4{z-index:var(--z-dialog);background:var(--bg-overlay);animation:_fade_1d2dw_1 var(--duration-fast) var(--ease-standard);justify-content:flex-end;display:flex;position:fixed;inset:0}._panel_1d2dw_14{width:min(480px, calc(100vw - var(--space-8)));background:var(--bg-surface);border-left:1px solid var(--border-default);height:100%;box-shadow:var(--shadow-dialog);animation:_slide_1d2dw_1 var(--duration-base) var(--ease-decelerate);outline:none;flex-direction:column;display:flex}._panel_1d2dw_14[data-presentation=full]{border-left:0;width:100%;animation-name:_rise_1d2dw_1}._head_1d2dw_33{justify-content:space-between;align-items:center;gap:var(--space-3);min-height:var(--strip-height);padding:var(--space-2) var(--space-3) var(--space-2) var(--space-4);border-bottom:1px solid var(--border-subtle);display:flex}._title_1d2dw_43{align-items:baseline;gap:var(--space-2);font-family:var(--font-display);font-size:var(--text-md-size);line-height:var(--text-md-line);font-weight:var(--font-weight-semibold);letter-spacing:var(--tracking-display);display:flex}._titleCount_1d2dw_54{font-family:var(--font-ui);font-size:var(--text-sm-size);font-weight:var(--font-weight-regular);font-variant-numeric:tabular-nums;color:var(--text-tertiary)}._splits_1d2dw_62{gap:var(--space-1);padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border-subtle);scrollbar-width:none;display:flex;overflow-x:auto}._split_1d2dw_62{align-items:center;gap:var(--space-1);min-height:var(--control-h-sm);padding:0 var(--space-2);border-radius:var(--radius-sm);color:var(--text-secondary);font-size:var(--text-sm-size);line-height:var(--text-sm-line);flex:none;display:inline-flex}._split_1d2dw_62:hover{background:var(--bg-hover);color:var(--text-primary)}._split_1d2dw_62[aria-selected=true]{background:var(--bg-selected);color:var(--text-primary);font-weight:var(--font-weight-medium)}._splitCount_1d2dw_86{border-radius:var(--radius-full);background:var(--bg-hover);min-width:18px;font-size:var(--text-2xs-size);text-align:center;font-variant-numeric:tabular-nums;color:var(--text-secondary);padding:0 4px;line-height:18px}._body_1d2dw_98{overscroll-behavior:contain;flex:1;min-height:0;position:relative;overflow-y:auto}._rows_1d2dw_106{outline:none}._rows_1d2dw_106:focus-visible{box-shadow:none}._rows_1d2dw_106:focus-visible ._row_1d2dw_106[aria-selected=true]{box-shadow:inset 0 0 0 2px var(--border-focus)}._row_1d2dw_106{column-gap:var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border-subtle);cursor:pointer;grid-template-columns:2px minmax(0,1fr) auto;align-items:center;display:grid}._row_1d2dw_106:hover{background:var(--bg-hover)}._row_1d2dw_106[aria-selected=true]{background:var(--bg-selected)}._rule_1d2dw_125{border-radius:var(--radius-full);background:var(--border-strong);align-self:stretch}._row_1d2dw_106[data-severity=high] ._rule_1d2dw_125{background:var(--status-danger-solid)}._row_1d2dw_106[data-severity=warn] ._rule_1d2dw_125{background:var(--status-warning-solid)}._rowMain_1d2dw_133{flex-direction:column;gap:2px;min-width:0;display:flex}._rowKind_1d2dw_138{font-family:var(--font-display);font-size:var(--text-2xs-size);line-height:var(--text-2xs-line);letter-spacing:var(--tracking-label);text-transform:uppercase;color:var(--text-secondary);margin:0}._rowTitle_1d2dw_151{-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word;font-size:var(--text-sm-size);line-height:var(--text-sm-line);color:var(--text-primary);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}._runFacts_1d2dw_164{align-items:baseline;gap:0 var(--space-2);font-size:var(--text-xs-size);line-height:var(--text-xs-line);color:var(--text-secondary);flex-wrap:wrap;display:flex}._diffStats_1d2dw_173{font-family:var(--font-display);font-variant-numeric:tabular-nums;color:var(--text-primary)}._runSource_1d2dw_174[title]{text-underline-offset:3px;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._repo_1d2dw_176{font-weight:var(--font-weight-medium)}._rowMeta_1d2dw_178{gap:0 var(--space-2);font-size:var(--text-xs-size);line-height:var(--text-xs-line);color:var(--text-secondary);flex-wrap:wrap;display:flex}._severity_1d2dw_187{font-family:var(--font-display);font-size:var(--text-2xs-size);letter-spacing:var(--tracking-label);text-transform:uppercase}._severity_1d2dw_187[data-severity=high]{color:var(--status-danger-fg)}._severity_1d2dw_187[data-severity=warn]{color:var(--status-warning-fg)}._mono_1d2dw_196{font-family:var(--font-mono);font-size:var(--text-xs-size)}._deadline_1d2dw_197{color:var(--status-warning-fg);font-variant-numeric:tabular-nums}._rowKeys_1d2dw_199{gap:2px;display:flex}._key_1d2dw_201,._inlineKey_1d2dw_202{border:1px solid var(--border-subtle);border-radius:var(--radius-xs);background:var(--bg-surface);min-width:18px;height:18px;font-family:var(--font-mono);font-size:var(--text-2xs-size);color:var(--text-secondary);justify-content:center;align-items:center;padding:0 4px;display:inline-flex}._inlineKey_1d2dw_202{margin-left:var(--space-2);background:0 0}._loading_1d2dw_218{gap:var(--space-2);padding:var(--space-4);flex-direction:column;display:flex}._empty_1d2dw_220{align-items:center;gap:var(--space-2);padding:var(--space-16) var(--space-6);text-align:center;flex-direction:column;display:flex}._emptyTitle_1d2dw_228{font-family:var(--font-display);font-size:var(--text-md-size);line-height:var(--text-md-line);font-weight:var(--font-weight-semibold);color:var(--text-primary)}._emptyBody_1d2dw_235{max-width:44ch;font-size:var(--text-sm-size);line-height:var(--text-sm-line);color:var(--text-secondary)}._clearMark_1d2dw_243{width:40px;height:40px;margin-bottom:var(--space-2);border-radius:var(--radius-full);background:var(--status-success-bg);position:relative}._clearMark_1d2dw_243:after{content:"";border:solid var(--status-success-solid);border-width:0 2px 2px 0;width:10px;height:16px;position:absolute;top:10px;left:14px;transform:rotate(45deg)}._focusSink_1d2dw_263{outline:none;width:1px;height:1px;position:absolute;overflow:hidden}._detail_1d2dw_265{outline:none}._back_1d2dw_4{margin:var(--space-2) var(--space-3) 0;padding:var(--space-1) var(--space-2);border-radius:var(--radius-sm);font-size:var(--text-xs-size);color:var(--text-secondary);align-items:center;display:inline-flex}._back_1d2dw_4:hover{background:var(--bg-hover);color:var(--text-primary)}._approval_1d2dw_279>div{padding:var(--space-3) var(--space-4) var(--space-12)}._item_1d2dw_281{gap:var(--space-4);padding:var(--space-3) var(--space-4) var(--space-8);flex-direction:column;display:flex}._itemHead_1d2dw_282{gap:var(--space-1);flex-direction:column;display:flex}._itemTitle_1d2dw_284{font-family:var(--font-display);font-size:var(--text-lg-size);line-height:var(--text-lg-line);font-weight:var(--font-weight-semibold);letter-spacing:var(--tracking-display)}._itemDetail_1d2dw_292{font-size:var(--text-sm-size);line-height:var(--text-sm-line-relaxed);color:var(--text-secondary);overflow-wrap:anywhere}._defs_1d2dw_299{gap:var(--space-2) var(--space-4);font-size:var(--text-sm-size);line-height:var(--text-sm-line);grid-template-columns:max-content minmax(0,1fr);margin:0;display:grid}._defs_1d2dw_299 dt{color:var(--text-tertiary)}._defs_1d2dw_299 dd{overflow-wrap:anywhere;min-width:0;margin:0}._itemActions_1d2dw_310{gap:var(--space-2);flex-wrap:wrap;display:flex}._foot_1d2dw_312{gap:var(--space-1) var(--space-4);padding:var(--space-2) var(--space-4);border-top:1px solid var(--border-subtle);font-size:var(--text-2xs-size);line-height:var(--text-2xs-line);color:var(--text-tertiary);flex-wrap:wrap;display:flex}._foot_1d2dw_312 span{align-items:center;gap:2px;display:inline-flex}._caveat_1d2dw_324{padding:var(--space-2) var(--space-4);border-top:1px solid var(--border-subtle);font-size:var(--text-xs-size);line-height:var(--text-xs-line);color:var(--status-warning-fg);background:var(--status-warning-bg);margin:0}@keyframes _fade_1d2dw_1{0%{opacity:0}}@keyframes _slide_1d2dw_1{0%{opacity:0;transform:translate(4px)}}@keyframes _rise_1d2dw_1{0%{opacity:0;transform:translateY(4px)}}@media (prefers-reduced-motion:reduce){:root:not([data-motion=full]) ._backdrop_1d2dw_4,:root:not([data-motion=full]) ._panel_1d2dw_14{animation:none}}:root[data-motion=reduce] ._backdrop_1d2dw_4,:root[data-motion=reduce] ._panel_1d2dw_14{animation:none}._chip_1d2dw_348{max-width:100%;padding:0 var(--space-1);border-radius:var(--radius-xs);font-family:var(--font-display);font-size:var(--text-2xs-size);line-height:var(--text-xs-line);letter-spacing:var(--tracking-label);white-space:nowrap;text-overflow:ellipsis;align-items:baseline;display:inline-flex;overflow:hidden}._chip_1d2dw_348[data-tone=clean]{background:var(--status-success-bg);color:var(--status-success-fg)}._chip_1d2dw_348[data-tone=held]{background:var(--status-warning-bg);color:var(--status-warning-fg)}._chipWhy_1d2dw_364{font-family:var(--font-ui);letter-spacing:normal}._row_1d2dw_106[data-picked=true]{background:var(--bg-selected)}._row_1d2dw_106[data-picked=true] ._rule_1d2dw_125{background:var(--border-focus)}._pickMark_1d2dw_368{border-radius:var(--radius-xs);background:var(--border-focus);width:18px;height:18px;color:var(--accent-contrast);font-size:var(--text-2xs-size);justify-content:center;align-items:center;display:inline-flex}._batch_1d2dw_380{align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-4);border-bottom:1px solid var(--border-subtle);background:var(--bg-surface);flex-wrap:wrap;display:flex}._batchCount_1d2dw_389{font-size:var(--text-xs-size);line-height:var(--text-xs-line);color:var(--text-secondary);font-variant-numeric:tabular-nums;margin-right:auto}._verdict_1d2dw_397{gap:var(--space-2);padding:var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-sm);flex-direction:column;display:flex}._verdictHead_1d2dw_405{justify-content:space-between;align-items:center;gap:var(--space-2);margin:0;display:flex}._checks_1d2dw_406{gap:var(--space-1) var(--space-3);font-size:var(--text-xs-size);line-height:var(--text-xs-line);color:var(--text-secondary);grid-template-columns:repeat(auto-fill,minmax(180px,1fr));margin:0;padding:0;list-style:none;display:grid}._checks_1d2dw_406 li{gap:var(--space-1);overflow-wrap:anywhere;min-width:0;display:flex}._checks_1d2dw_406 li[data-ok=false]{color:var(--text-primary)}._checkMark_1d2dw_419{text-align:center;flex:none;width:1em}._checks_1d2dw_406 li[data-ok=true] ._checkMark_1d2dw_419{color:var(--status-success-fg)}._checks_1d2dw_406 li[data-ok=false] ._checkMark_1d2dw_419{color:var(--status-warning-fg)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e,c as t,n}from"./index-CyK31YRm.js";import{Ut as r,Wt as i}from"./VerseConsoleApp-DXDv1aOi.js";import{h as a,n as o,p as s,v as c}from"./verse-model-JTuvRBVK.js";var l=t(e(),1);function u(e,t){let n=p(t)??`the target repository`;switch(e){case`pr`:return`Pushes a branch to ${n}'s remote and opens a real pull request. Other people can see it immediately, and this dialog cannot undo it.`;case`patch`:return`Writes the diff to ${n} on disk now. Nothing is pushed, but the working tree changes.`;default:return`Applies this ${String(e)} proposal to ${n} now.`}}function d(e){return e===`pr`}function f(e){return e.engineModel?e.engineModel:e.engineTier?e.engineTier:null}function p(e){if(typeof e!=`string`)return null;let t=e.trim().replace(/\/+$/,``);if(t.length===0)return null;let n=t.slice(t.lastIndexOf(`/`)+1);return n.length>0?n:t}var m={patch:`Patch`,pr:`Pull request`,deploy:`Deploy`,note:`Note`,"desktop-action":`Desktop action`,"browser-action":`Browser action`};function h(e){return m[e]??String(e)}function g(e){return e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1)}function _(e){let t=e.toLowerCase();return Object.prototype.hasOwnProperty.call(o,t)?o[t]:g(t)}function v(e){let t=e;return(t.match(/"/g)??[]).length%2==1&&(t+=`"`),(t.match(/\u201c/g)??[]).length>(t.match(/\u201d/g)??[]).length&&(t+=`”`),t}function y(e){let t=e.replace(/(?:\u2026|\.\.\.)$/,``),n=t.lastIndexOf(` `);return`${(n>0?t.slice(0,n):t).replace(/[\s,;:\-\u2013\u2014]+$/,``)}\u2026`}function b(e){let t=typeof e==`string`?e.trim():``,n=/^(\[partial\]\s*)?(claude|codex|grok|local|ollama|gemini|api[\w-]*) run:\s*(.*)$/is.exec(t),r=n?`${n[1]?`Partial `:``}${_(n[2])} run`:null,i=n?n[3]:t,a=/[\p{L}\p{N}](?:\u2026|\.\.\.)$/u.test(i),o=n!==null&&i.length>=80&&!/[.!?)"'\u201d\u2026]$/.test(i),s=a||o;return s&&(i=y(i)),i=v(i),{eyebrow:r,text:i.length>0?i:t,truncated:s}}var x=/^(Partial )?(.+?) (\S+) run produced (\d+) file\(s\) \(\+(\d+)\/-(\d+)\)\.?\s*([\s\S]*)$/,S=`TITRR — Test, Iterate, Test, Refine, Repeat: after its change the run re-ran the repository’s tests and repaired the change until they passed or it ran out of attempts.`;function C(e){if(/\bTITRR\b/.test(e)){let t=e.replace(/\bTITRR\b\s*/,``).trim();return{label:`Test-and-repair loop${t===`api-model`?` (API model)`:t===`api-model required-diff`?` (API model, retried for a missing diff)`:t===`api-model failed producer`?` (API model, producer failed)`:t.length>0?` (${t})`:``}`,hint:S}}return/^best-of-n/i.test(e)?{label:e,hint:`Several models attempted this change in parallel; a judge compared them.`}:e===`api-model`?{label:`API model run`,hint:null}:e===`Sandboxed`?{label:`Sandboxed run`,hint:`Produced in an isolated sandbox checkout; nothing touched your working tree.`}:{label:e,hint:null}}function w(e){if(typeof e!=`string`)return null;let t=x.exec(e.trim());if(!t)return null;let{label:n,hint:r}=C(t[2]),i=t[7].trim();return{partial:t[1]!==void 0,source:t[2],sourceLabel:n,sourceHint:r,model:t[3],files:Number(t[4]),insertions:Number(t[5]),deletions:Number(t[6]),rest:i.length>0?i:null}}function T(e){let t=e=>e.toLocaleString(`en-US`);return`${t(e.files)} ${e.files===1?`file`:`files`} \u00b7 +${t(e.insertions)} \u2212${t(e.deletions)}`}function E(e){let t=e=>e.toLocaleString(`en-US`);return`${t(e.files)} ${e.files===1?`file`:`files`} changed, ${t(e.insertions)} ${e.insertions===1?`line`:`lines`} added, ${t(e.deletions)} removed`}function D(e,t=Date.now()){if(typeof e!=`string`)return`at an unknown time`;let n=Date.parse(e);if(!Number.isFinite(n))return`at an unknown time`;let r=Math.max(0,Math.round((t-n)/1e3));if(r<45)return`just now`;let i=new Intl.RelativeTimeFormat(`en`,{numeric:`auto`}),a=Math.round(r/60);if(a<60)return i.format(-a,`minute`);let o=Math.round(a/60);if(o<24)return i.format(-o,`hour`);let s=Math.round(o/24);return s<=60?i.format(-s,`day`):`on ${new Date(n).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`})}`}function O(e){if(typeof e!=`string`)return;let t=Date.parse(e);if(Number.isFinite(t))return new Date(t).toLocaleString([],{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`})}var k={all:`All`,approvals:`Approvals`,fleet:`Fleet`,chats:`Chats`,accounts:`Accounts`},A={all:[`approvals`,`authority`,`fleet`,`leader`,`chats`,`accounts`],approvals:[`approvals`,`fleet`,`leader`],fleet:[`authority`,`fleet`,`leader`],chats:[`chats`],accounts:[`accounts`]},ee={approvals:`the approvals inbox`,authority:`the autonomy grant`,fleet:`the fleet`,leader:`the Leader`,chats:`chats`,accounts:`account health`};function j(e,t){return t===`all`?[...e]:e.filter(e=>i[e.kind]===t)}function M(e){let t={all:e.length,approvals:0,fleet:0,chats:0,accounts:0};for(let n of e)t[i[n.kind]]+=1;return t}function N(e,t){let n=[];for(let r of A[t]){let t=e?.[r]??`unavailable`;t!==`ok`&&n.push({source:r,name:ee[r],state:t})}return{vouched:n.length===0,silent:n}}function P(e){let t=e.silent.map(e=>e.state===`error`?`${e.name} failed to answer`:`${e.name} isn't reporting in this build`);return t.length===0?``:t.length===1?F(t[0]):F(`${t.slice(0,-1).join(`, `)} and ${t[t.length-1]}`)}function F(e){return e.charAt(0).toUpperCase()+e.slice(1)}var I=new Set([`approve`,`reject`,`veto`]);function L(e,t){return e.actions.find(e=>e.kind===t)??null}var R={approve:{title:`Approve this?`,confirmLabel:`Approve`},reject:{title:`Reject this?`,confirmLabel:`Reject`},veto:{title:`Veto this action?`,confirmLabel:`Veto`}};function z(e,t){if(t.confirm)return t.confirm;if(t.kind===`approve`||t.kind===`reject`||t.kind===`veto`){let n=R[t.kind];return{title:n.title,body:V(e).text,confirmLabel:n.confirmLabel}}return null}var B=/^(PR|[a-z][a-z-]*):\s+([\s\S]+)$/;function V(e){let t=null,n=e.title;if(e.kind===`approval`){let r=B.exec(e.title.trim());r&&(t=r[1]===`PR`?`pr`:r[1],n=r[2])}let r=b(n),i=[t===null?null:h(t),r.eyebrow].filter(e=>e!==null);return{kindLabel:i.length>0?i.join(` · `):null,text:r.text}}function H(e,t=Date.now()){let n=V(e),r=w(e.detail),i=p(e.subject.repo);return{kindLabel:n.kindLabel,title:n.text,fullTitle:e.title,run:r?{stats:T(r),statsSpoken:E(r),source:r.sourceLabel,sourceHint:r.sourceHint,partial:r.partial,model:r.model}:null,detail:r?r.rest:e.detail,repo:i,repoFull:i!==null&&e.subject.repo!==null&&e.subject.repo!==i?e.subject.repo:void 0,age:D(e.since,t),ageStamp:O(e.since)}}function U(e,t=Date.now()){let n=Date.parse(e);if(!Number.isFinite(n))return`—`;let r=Math.round((n-t)/1e3);if(r<=0)return`expired`;if(r<90)return`in ${r}s`;let i=Math.round(r/60);if(i<90)return`in ${i}m`;let a=Math.round(i/60);return a<48?`in ${a}h`:`in ${Math.round(a/24)}d`}function W(e,t){let n=c(e,t)?.label;return n&&n!==t?{text:n,raw:t}:{text:t,raw:void 0}}function G(e,t,n){let r=t.indexOf(`:`),i=r>0?t.slice(0,r):``,o=s(i)?i:null,c=o?t.slice(r+1):t,l=[...n?[n]:[],...e.filter(e=>e.id!==n&&(o===null||e.engine===o)).map(e=>e.id)];for(let n of l){let r=a(e,{seatId:n,model:c})?.label;if(r&&r!==t)return{text:r,raw:t}}return{text:t,raw:void 0}}var K={backdrop:`_backdrop_1d2dw_4`,fade:`_fade_1d2dw_1`,panel:`_panel_1d2dw_14`,slide:`_slide_1d2dw_1`,rise:`_rise_1d2dw_1`,head:`_head_1d2dw_33`,title:`_title_1d2dw_43`,titleCount:`_titleCount_1d2dw_54`,splits:`_splits_1d2dw_62`,split:`_split_1d2dw_62`,splitCount:`_splitCount_1d2dw_86`,body:`_body_1d2dw_98`,rows:`_rows_1d2dw_106`,row:`_row_1d2dw_106`,rule:`_rule_1d2dw_125`,rowMain:`_rowMain_1d2dw_133`,rowKind:`_rowKind_1d2dw_138`,rowTitle:`_rowTitle_1d2dw_151`,runFacts:`_runFacts_1d2dw_164`,diffStats:`_diffStats_1d2dw_173`,runSource:`_runSource_1d2dw_174`,repo:`_repo_1d2dw_176`,rowMeta:`_rowMeta_1d2dw_178`,severity:`_severity_1d2dw_187`,mono:`_mono_1d2dw_196`,deadline:`_deadline_1d2dw_197`,rowKeys:`_rowKeys_1d2dw_199`,key:`_key_1d2dw_201`,inlineKey:`_inlineKey_1d2dw_202`,loading:`_loading_1d2dw_218`,empty:`_empty_1d2dw_220`,emptyTitle:`_emptyTitle_1d2dw_228`,emptyBody:`_emptyBody_1d2dw_235`,clearMark:`_clearMark_1d2dw_243`,focusSink:`_focusSink_1d2dw_263`,detail:`_detail_1d2dw_265`,back:`_back_1d2dw_4`,approval:`_approval_1d2dw_279`,item:`_item_1d2dw_281`,itemHead:`_itemHead_1d2dw_282`,itemTitle:`_itemTitle_1d2dw_284`,itemDetail:`_itemDetail_1d2dw_292`,defs:`_defs_1d2dw_299`,itemActions:`_itemActions_1d2dw_310`,foot:`_foot_1d2dw_312`,caveat:`_caveat_1d2dw_324`,chip:`_chip_1d2dw_348`,chipWhy:`_chipWhy_1d2dw_364`,pickMark:`_pickMark_1d2dw_368`,batch:`_batch_1d2dw_380`,batchCount:`_batchCount_1d2dw_389`,verdict:`_verdict_1d2dw_397`,verdictHead:`_verdictHead_1d2dw_405`,checks:`_checks_1d2dw_406`,checkMark:`_checkMark_1d2dw_419`},q=n();function J({run:e}){return(0,q.jsxs)(`span`,{className:K.runFacts,children:[(0,q.jsx)(`span`,{className:K.diffStats,"aria-hidden":`true`,children:e.stats}),(0,q.jsx)(`span`,{className:`visually-hidden`,children:e.statsSpoken}),(0,q.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,q.jsxs)(`span`,{className:K.runSource,title:e.sourceHint??void 0,children:[e.partial?`Partial · `:``,e.source]})]})}var Y={high:`Urgent`,warn:`Soon`,info:`When you can`},X={approvals:`Approval`,authority:`Autonomy`,fleet:`Fleet`,leader:`Leader`,chats:`Chat`,accounts:`Account`},Z=new Set,Q=new Map;function $({chip:e}){return(0,q.jsxs)(`span`,{className:K.chip,"data-tone":e.tone,title:e.title,children:[e.label,e.why?(0,q.jsxs)(`span`,{className:K.chipWhy,children:[` · `,e.why]}):null]})}var te=(0,l.forwardRef)(function({items:e,selectedId:t,onSelect:n,onOpen:i,now:a,label:o,picked:s=Z,onTogglePick:c,chips:u=Q},d){let f=`verse-needs-you-list`,p=(0,l.useRef)(null);return(0,l.useEffect)(()=>{t&&[...p.current?.querySelectorAll(`[data-item-id]`)??[]].find(e=>e.dataset.itemId===t)?.scrollIntoView?.({block:`nearest`})},[t]),(0,q.jsx)(`div`,{ref:e=>{p.current=e,typeof d==`function`?d(e):d&&(d.current=e)},id:f,role:`listbox`,"aria-label":s.size>0?`${o}, ${s.size} picked`:o,tabIndex:0,"aria-activedescendant":t?`${f}-${e.findIndex(e=>e.id===t)}`:void 0,className:K.rows,children:e.map((e,o)=>{let l=e.actions.map(e=>r[e.kind]).filter(e=>e!==void 0),d=H(e,a),p=s.has(e.id),m=u.get(e.id);return(0,q.jsxs)(`div`,{id:`${f}-${o}`,"data-item-id":e.id,role:`option`,"aria-selected":e.id===t,"data-picked":p?`true`:void 0,className:K.row,"data-severity":e.severity,onClick:t=>{if(t.shiftKey&&c){t.preventDefault(),c(e.id);return}i(e.id)},onMouseMove:()=>e.id!==t&&n(e.id),children:[(0,q.jsx)(`span`,{className:K.rule,"aria-hidden":`true`}),(0,q.jsxs)(`span`,{className:K.rowMain,children:[d.kindLabel?(0,q.jsx)(`span`,{className:K.rowKind,children:d.kindLabel}):null,(0,q.jsx)(`span`,{className:K.rowTitle,title:d.fullTitle,children:d.title}),d.run?(0,q.jsx)(J,{run:d.run}):null,(0,q.jsxs)(`span`,{className:K.rowMeta,children:[p?(0,q.jsx)(`span`,{className:`visually-hidden`,children:`Picked. `}):null,m?(0,q.jsx)($,{chip:m}):null,(0,q.jsx)(`span`,{className:K.severity,"data-severity":e.severity,children:Y[e.severity]}),(0,q.jsx)(`span`,{children:X[e.source]}),d.repo?(0,q.jsx)(`span`,{className:K.repo,title:d.repoFull,children:d.repo}):null,e.subject.pr?(0,q.jsxs)(`span`,{children:[`#`,e.subject.pr]}):null,(0,q.jsx)(`span`,{title:d.ageStamp,children:d.age}),e.expiresAt?(0,q.jsxs)(`span`,{className:K.deadline,children:[`closes `,U(e.expiresAt,a)]}):null]})]}),p?(0,q.jsx)(`span`,{className:K.pickMark,"aria-hidden":`true`,children:`✓`}):e.id===t&&l.length>0?(0,q.jsx)(`span`,{className:K.rowKeys,"aria-hidden":`true`,children:l.map(e=>(0,q.jsx)(`kbd`,{className:K.key,children:e},e))}):null]},e.id)})})});export{O as C,b as D,d as E,p as O,h as S,w as T,U as _,I as a,f as b,z as c,H as d,V as f,N as g,M as h,K as i,P as l,W as m,J as n,k as o,G as p,$ as r,L as s,te as t,j as u,u as v,D as w,T as x,E as y};
|
|
2
|
+
//# sourceMappingURL=NeedsYouList-D5Kk549g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NeedsYouList-BgH8ezqf.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/approvals/approvals-model.ts","../../../../../../src/web-ui/routes/verse/shell/needs-you-model.ts","../../../../../../src/web-ui/routes/verse/shell/NeedsYouDrawer.module.css","../../../../../../src/web-ui/routes/verse/shell/NeedsYouList.tsx"],"sourcesContent":["/**\n * routes/verse/approvals/approvals-model.ts — the pure decisions behind the\n * approvals queue: what order rows come in, and exactly what a human is\n * agreeing to when they press Approve.\n *\n * Kept framework-free and unit-tested because both are easy to get subtly\n * wrong: \"pending first\" must survive a status filter that also returns\n * decided rows, and the approve consequence sentence is the last thing\n * standing between a click and a real pull request against a real remote.\n */\nimport type { Proposal, ProposalKind } from '../../../data/api-types.js';\nimport { ENGINE_LABEL } from '../verse-model.js';\n\n/** Pending first, then newest first within each group. Stable and total. */\nexport function orderProposals(rows: readonly Proposal[]): Proposal[] {\n return [...rows].sort((a, b) => {\n const pendingA = a.status === 'pending' ? 0 : 1;\n const pendingB = b.status === 'pending' ? 0 : 1;\n if (pendingA !== pendingB) return pendingA - pendingB;\n const tsA = Date.parse(a.createdAt);\n const tsB = Date.parse(b.createdAt);\n const safeA = Number.isNaN(tsA) ? 0 : tsA;\n const safeB = Number.isNaN(tsB) ? 0 : tsB;\n if (safeA !== safeB) return safeB - safeA;\n return a.id.localeCompare(b.id);\n });\n}\n\nexport type RiskClass = NonNullable<Proposal['riskClass']>;\n\n/** high → medium → low → unstated. Used for the risk column's sort affordance. */\nexport function riskRank(risk: Proposal['riskClass']): number {\n switch (risk) {\n case 'high':\n return 0;\n case 'medium':\n return 1;\n case 'low':\n return 2;\n default:\n return 3;\n }\n}\n\n/** Client-side narrowing over whatever page the server returned. */\nexport function filterProposals(rows: readonly Proposal[], search: string, repo: string): Proposal[] {\n const s = search.trim().toLowerCase();\n const r = repo.trim().toLowerCase();\n if (!s && !r) return [...rows];\n return rows.filter((p) => {\n if (s && !p.title.toLowerCase().includes(s) && !(p.summary ?? '').toLowerCase().includes(s)) return false;\n if (r && !(p.repo ?? '').toLowerCase().includes(r)) return false;\n return true;\n });\n}\n\n/**\n * What approving this proposal actually does, in one sentence, naming the\n * repo. `pr` is the dangerous one: it pushes a branch to the remote and opens\n * a real pull request, which is visible to other people and cannot be undone\n * from the dialog. The confirm step MUST show this before the click.\n */\nexport function describeApproveConsequence(kind: ProposalKind | string, repo: string | null): string {\n // The project's NAME, not its absolute path: a sandbox checkout under\n // /private/tmp/claude-501/… is unreadable in a sentence. The confirm dialog\n // still prints the full path once, as the exact place the write lands.\n const where = repoName(repo) ?? 'the target repository';\n switch (kind) {\n case 'pr':\n return `Pushes a branch to ${where}'s remote and opens a real pull request. Other people can see it immediately, and this dialog cannot undo it.`;\n case 'patch':\n return `Writes the diff to ${where} on disk now. Nothing is pushed, but the working tree changes.`;\n default:\n return `Applies this ${String(kind)} proposal to ${where} now.`;\n }\n}\n\n/** True when approving reaches a remote — the loudest confirm wording. */\nexport function reachesRemote(kind: ProposalKind | string): boolean {\n return kind === 'pr';\n}\n\n/** The engine that produced the diff, as a short display string. */\nexport function engineOf(proposal: Pick<Proposal, 'engineModel' | 'engineTier'>): string | null {\n if (proposal.engineModel) return proposal.engineModel;\n if (proposal.engineTier) return proposal.engineTier;\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// Readable detail\n// ---------------------------------------------------------------------------\n\n/** \"/Users/m/repos/binshield/\" → \"binshield\"; null for no repo. */\nexport function repoName(repo: string | null | undefined): string | null {\n if (typeof repo !== 'string') return null;\n const trimmed = repo.trim().replace(/\\/+$/, '');\n if (trimmed.length === 0) return null;\n const last = trimmed.slice(trimmed.lastIndexOf('/') + 1);\n return last.length > 0 ? last : trimmed;\n}\n\nconst KIND_LABEL: Record<string, string> = {\n patch: 'Patch',\n pr: 'Pull request',\n deploy: 'Deploy',\n note: 'Note',\n 'desktop-action': 'Desktop action',\n 'browser-action': 'Browser action',\n};\n\n/** \"patch\" → \"Patch\", \"pr\" → \"Pull request\"; an unknown kind is shown as sent. */\nexport function kindLabel(kind: ProposalKind | string): string {\n return KIND_LABEL[kind] ?? String(kind);\n}\n\n/**\n * The server builds a run proposal's title as `${engine} run: ${goal.slice(0, 80)}`\n * — cut at 80 characters, mid-word, sometimes mid-quote. This is the one\n * place that cut is made readable.\n */\nexport const RUN_TITLE_GOAL_CAP = 80;\n\nexport interface ReadableTitle {\n /** \"Claude run\" when the title carried an `engine run:` prefix; null otherwise. */\n eyebrow: string | null;\n /** The title to print: never ends mid-word; a cut one ends in \"…\". */\n text: string;\n /** True when the server's title was cut short (the full text we have rides in a tooltip). */\n truncated: boolean;\n}\n\nfunction capitalize(word: string): string {\n return word.length === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1);\n}\n\n/** The app's own display name for an engine (\"Claude\", \"Codex\"); any other engine capitalized (\"Ollama\"). */\nfunction engineDisplayName(engine: string): string {\n const key = engine.toLowerCase();\n return Object.prototype.hasOwnProperty.call(ENGINE_LABEL, key)\n ? ENGINE_LABEL[key as keyof typeof ENGINE_LABEL]\n : capitalize(key);\n}\n\n/** Close a quote the cut left open, so the title does not read as a stray mark. */\nfunction closeQuotes(text: string): string {\n let out = text;\n if ((out.match(/\"/g) ?? []).length % 2 === 1) out += '\"';\n if ((out.match(/\\u201c/g) ?? []).length > (out.match(/\\u201d/g) ?? []).length) out += '\\u201d';\n return out;\n}\n\n/** Drop a trailing partial word and end on \"…\". */\nfunction cutAtWord(text: string): string {\n const body = text.replace(/(?:\\u2026|\\.\\.\\.)$/, '');\n const space = body.lastIndexOf(' ');\n const whole = space > 0 ? body.slice(0, space) : body;\n return `${whole.replace(/[\\s,;:\\-\\u2013\\u2014]+$/, '')}\\u2026`;\n}\n\nexport function readableTitle(title: string): ReadableTitle {\n const raw = typeof title === 'string' ? title.trim() : '';\n // Only the engines the sandboxed runner names — \"Dry run: …\" is a title, not an engine.\n const run = /^(\\[partial\\]\\s*)?(claude|codex|grok|local|ollama|gemini|api[\\w-]*) run:\\s*(.*)$/is.exec(raw);\n // \"Partial Claude run\", never \"Partial claude run\": the engine is a name either way.\n const eyebrow = run ? `${run[1] ? 'Partial ' : ''}${engineDisplayName(run[2]!)} run` : null;\n let text = run ? run[3]! : raw;\n // A title that already ends in an ellipsis right after a letter was cut mid-word upstream.\n const cutMidWord = /[\\p{L}\\p{N}](?:\\u2026|\\.\\.\\.)$/u.test(text);\n // A run goal at exactly the server's cap that does not end on a sentence boundary was sliced.\n const sliced = run !== null && text.length >= RUN_TITLE_GOAL_CAP && !/[.!?)\"'\\u201d\\u2026]$/.test(text);\n const truncated = cutMidWord || sliced;\n if (truncated) text = cutAtWord(text);\n text = closeQuotes(text);\n return { eyebrow, text: text.length > 0 ? text : raw, truncated };\n}\n\n/**\n * What a sandboxed run's summary line says, taken apart. The server writes\n * `[Partial ]<source> <engine:model> run produced N file(s) (+A/-D). <rest>`\n * (core/run/sandboxed-engine.ts); anything else parses to null and is shown\n * verbatim.\n */\nexport interface RunFacts {\n partial: boolean;\n /** The server's source label, verbatim (\"TITRR\", \"Best-of-N winner\"). */\n source: string;\n /** The source in plain words (\"Test-and-repair loop\"). */\n sourceLabel: string;\n /** What the source means, for a tooltip; null when the label says it already. */\n sourceHint: string | null;\n /** \"claude:claude-fable-5\". */\n model: string;\n files: number;\n insertions: number;\n deletions: number;\n /** Whatever the summary says after the run facts (\"Review before applying.\"), or null. */\n rest: string | null;\n}\n\nconst RUN_SUMMARY = /^(Partial )?(.+?) (\\S+) run produced (\\d+) file\\(s\\) \\(\\+(\\d+)\\/-(\\d+)\\)\\.?\\s*([\\s\\S]*)$/;\n\n/**\n * TITRR is internal shorthand (core/run/orchestrator.ts M78: Test → Iterate →\n * Test → Refine → Repeat). The operator sees the plain name; the acronym and\n * what it did ride in the tooltip.\n */\nconst TITRR_HINT =\n 'TITRR — Test, Iterate, Test, Refine, Repeat: after its change the run re-ran the repository\\u2019s tests and repaired the change until they passed or it ran out of attempts.';\n\nfunction describeSource(source: string): { label: string; hint: string | null } {\n if (/\\bTITRR\\b/.test(source)) {\n const rest = source.replace(/\\bTITRR\\b\\s*/, '').trim();\n const qualifier = rest === 'api-model' ? ' (API model)'\n : rest === 'api-model required-diff' ? ' (API model, retried for a missing diff)'\n : rest === 'api-model failed producer' ? ' (API model, producer failed)'\n : rest.length > 0 ? ` (${rest})` : '';\n return { label: `Test-and-repair loop${qualifier}`, hint: TITRR_HINT };\n }\n if (/^best-of-n/i.test(source)) {\n return { label: source, hint: 'Several models attempted this change in parallel; a judge compared them.' };\n }\n if (source === 'api-model') return { label: 'API model run', hint: null };\n if (source === 'Sandboxed') return { label: 'Sandboxed run', hint: 'Produced in an isolated sandbox checkout; nothing touched your working tree.' };\n return { label: source, hint: null };\n}\n\nexport function parseRunSummary(summary: string | null | undefined): RunFacts | null {\n if (typeof summary !== 'string') return null;\n const m = RUN_SUMMARY.exec(summary.trim());\n if (!m) return null;\n const { label, hint } = describeSource(m[2]!);\n const rest = m[7]!.trim();\n return {\n partial: m[1] !== undefined,\n source: m[2]!,\n sourceLabel: label,\n sourceHint: hint,\n model: m[3]!,\n files: Number(m[4]),\n insertions: Number(m[5]),\n deletions: Number(m[6]),\n rest: rest.length > 0 ? rest : null,\n };\n}\n\n/** \"2 files · +384 −0\" (a real minus sign, grouped thousands). */\nexport function formatDiffStats(facts: Pick<RunFacts, 'files' | 'insertions' | 'deletions'>): string {\n const n = (v: number) => v.toLocaleString('en-US');\n return `${n(facts.files)} ${facts.files === 1 ? 'file' : 'files'} \\u00b7 +${n(facts.insertions)} \\u2212${n(facts.deletions)}`;\n}\n\n/** The same stats as a sentence for assistive tech: \"2 files changed, 384 lines added, 0 removed\". */\nexport function describeDiffStats(facts: Pick<RunFacts, 'files' | 'insertions' | 'deletions'>): string {\n const n = (v: number) => v.toLocaleString('en-US');\n return `${n(facts.files)} ${facts.files === 1 ? 'file' : 'files'} changed, ${n(facts.insertions)} ${facts.insertions === 1 ? 'line' : 'lines'} added, ${n(facts.deletions)} removed`;\n}\n\n/**\n * \"just now\", \"5 minutes ago\", \"yesterday\", \"38 days ago\", then \"on Aug 17\"\n * past two months. Written out in full: the detail view has the room, and\n * \"38d\" is a sidebar abbreviation.\n */\nexport function longAgo(iso: string | null | undefined, now: number = Date.now()): string {\n if (typeof iso !== 'string') return 'at an unknown time';\n const then = Date.parse(iso);\n if (!Number.isFinite(then)) return 'at an unknown time';\n const seconds = Math.max(0, Math.round((now - then) / 1000));\n if (seconds < 45) return 'just now';\n const rtf = new Intl.RelativeTimeFormat('en', { numeric: 'auto' });\n const minutes = Math.round(seconds / 60);\n if (minutes < 60) return rtf.format(-minutes, 'minute');\n const hours = Math.round(minutes / 60);\n if (hours < 24) return rtf.format(-hours, 'hour');\n const days = Math.round(hours / 24);\n if (days <= 60) return rtf.format(-days, 'day');\n return `on ${new Date(then).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })}`;\n}\n\n/** A local date and time for a tooltip: \"Mon, Aug 17, 3:12 PM\". */\nexport function localStamp(iso: string | null | undefined): string | undefined {\n if (typeof iso !== 'string') return undefined;\n const t = Date.parse(iso);\n if (!Number.isFinite(t)) return undefined;\n return new Date(t).toLocaleString([], { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: '2-digit' });\n}\n","/**\n * routes/verse/shell/needs-you-model.ts — the Needs-you drawer as data (unit\n * C1): which items a split shows, how many each split has, whether the drawer\n * may say \"All clear\", and what a key press does to an item.\n *\n * Pure. The items come from GET /api/verse/activity (C1's own producers plus\n * Track B's, R1); each carries its own actions, so nothing here knows what a\n * grant or an owner-lane PR is.\n *\n * How a row READS (needsYouRowView) borrows the approvals detail view's text\n * helpers rather than growing a second copy: an approval item's title and\n * detail are the same proposal title and run summary that view already\n * untangles.\n */\nimport {\n NEEDS_YOU_KIND_CATEGORY,\n type NeedsYouAction,\n type NeedsYouActionKind,\n type NeedsYouItem,\n type NeedsYouSource,\n type VerseActivitySources,\n} from '../../../../core/verse/workbench-types.js';\nimport {\n describeDiffStats,\n formatDiffStats,\n kindLabel,\n localStamp,\n longAgo,\n parseRunSummary,\n readableTitle,\n repoName,\n} from '../approvals/approvals-model.js';\nimport type { VerseSeat } from '../../../data/api-types.js';\nimport { isVerseEngine, modelOptionFor, seatById } from '../verse-model.js';\nimport type { NeedsYouSplit } from '../verse-ui-store.js';\n\nexport const SPLIT_LABEL: Readonly<Record<NeedsYouSplit, string>> = {\n all: 'All',\n approvals: 'Approvals',\n fleet: 'Fleet',\n chats: 'Chats',\n accounts: 'Accounts',\n};\n\n/**\n * Which producers can put an item in each split. \"All clear\" is only\n * claimed for a split whose every producer answered: an owner-lane PR is in\n * Approvals but comes from the FLEET producer, so Approvals is only vouched\n * for when the fleet source answered too.\n */\nexport const SPLIT_SOURCES: Readonly<Record<NeedsYouSplit, readonly NeedsYouSource[]>> = {\n all: ['approvals', 'authority', 'fleet', 'leader', 'chats', 'accounts'],\n approvals: ['approvals', 'fleet', 'leader'],\n fleet: ['authority', 'fleet', 'leader'],\n chats: ['chats'],\n accounts: ['accounts'],\n};\n\nconst SOURCE_NAME: Readonly<Record<NeedsYouSource, string>> = {\n approvals: 'the approvals inbox',\n authority: 'the autonomy grant',\n fleet: 'the fleet',\n leader: 'the Leader',\n chats: 'chats',\n accounts: 'account health',\n};\n\nexport function itemsForSplit(items: readonly NeedsYouItem[], split: NeedsYouSplit): NeedsYouItem[] {\n if (split === 'all') return [...items];\n return items.filter((item) => NEEDS_YOU_KIND_CATEGORY[item.kind] === split);\n}\n\nexport function splitCounts(items: readonly NeedsYouItem[]): Record<NeedsYouSplit, number> {\n const counts: Record<NeedsYouSplit, number> = { all: items.length, approvals: 0, fleet: 0, chats: 0, accounts: 0 };\n for (const item of items) counts[NEEDS_YOU_KIND_CATEGORY[item.kind]] += 1;\n return counts;\n}\n\nexport interface SplitCoverage {\n /** Every producer feeding this split answered. */\n vouched: boolean;\n /** Operator-language names of the ones that did not, with why. */\n silent: Array<{ source: NeedsYouSource; name: string; state: 'unavailable' | 'error' }>;\n}\n\n/** Null sources (activity itself unavailable) vouch for nothing. */\nexport function splitCoverage(sources: VerseActivitySources | null, split: NeedsYouSplit): SplitCoverage {\n const silent: SplitCoverage['silent'] = [];\n for (const source of SPLIT_SOURCES[split]) {\n const state = sources?.[source] ?? 'unavailable';\n if (state !== 'ok') silent.push({ source, name: SOURCE_NAME[source], state });\n }\n return { vouched: silent.length === 0, silent };\n}\n\n/** \"the fleet isn't reporting yet and the Leader failed to answer\" — for the empty state. */\nexport function describeSilence(coverage: SplitCoverage): string {\n const phrases = coverage.silent.map((s) => (s.state === 'error' ? `${s.name} failed to answer` : `${s.name} isn't reporting in this build`));\n if (phrases.length === 0) return '';\n if (phrases.length === 1) return capitalise(phrases[0]!);\n return capitalise(`${phrases.slice(0, -1).join(', ')} and ${phrases[phrases.length - 1]}`);\n}\n\nfunction capitalise(text: string): string {\n return text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n/** Approve / reject / veto ALWAYS confirm (SPEC-310C §1); other kinds only when the item says so. */\nexport const ALWAYS_CONFIRM: ReadonlySet<NeedsYouActionKind> = new Set(['approve', 'reject', 'veto']);\n\nexport function actionOf(item: NeedsYouItem, kind: NeedsYouActionKind): NeedsYouAction | null {\n return item.actions.find((a) => a.kind === kind) ?? null;\n}\n\nconst GENERIC_CONFIRM: Readonly<Record<'approve' | 'reject' | 'veto', { title: string; confirmLabel: string }>> = {\n approve: { title: 'Approve this?', confirmLabel: 'Approve' },\n reject: { title: 'Reject this?', confirmLabel: 'Reject' },\n veto: { title: 'Veto this action?', confirmLabel: 'Veto' },\n};\n\nexport interface ConfirmCopy {\n title: string;\n body: string;\n confirmLabel: string;\n}\n\n/** The dialog for `action` on `item`; null when the action runs without one. */\nexport function confirmCopy(item: NeedsYouItem, action: NeedsYouAction): ConfirmCopy | null {\n if (action.confirm) return action.confirm;\n if (action.kind === 'approve' || action.kind === 'reject' || action.kind === 'veto') {\n const generic = GENERIC_CONFIRM[action.kind];\n return { title: generic.title, body: readableItemTitle(item).text, confirmLabel: generic.confirmLabel };\n }\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// How a row reads\n// ---------------------------------------------------------------------------\n\n/**\n * The approvals producer titles an item `${kind === 'pr' ? 'PR' : kind}: ${proposal.title}`\n * (core/verse/activity.ts approvalItem). Only an `approval` item is taken\n * apart this way — \"Failed: Migrate the store\" is a chat title, not a kind.\n */\nconst APPROVAL_KIND_PREFIX = /^(PR|[a-z][a-z-]*):\\s+([\\s\\S]+)$/;\n\nexport interface ReadableItemTitle {\n /** \"Patch · Claude run\": the proposal kind and the engine the title led with; null when neither. */\n kindLabel: string | null;\n /** The title to print. Never ends mid-word — a cut one ends in \"…\". */\n text: string;\n}\n\nexport function readableItemTitle(item: Pick<NeedsYouItem, 'kind' | 'title'>): ReadableItemTitle {\n let proposalKind: string | null = null;\n let rest = item.title;\n if (item.kind === 'approval') {\n const m = APPROVAL_KIND_PREFIX.exec(item.title.trim());\n if (m) {\n proposalKind = m[1] === 'PR' ? 'pr' : m[1]!;\n rest = m[2]!;\n }\n }\n const title = readableTitle(rest);\n const parts = [proposalKind === null ? null : kindLabel(proposalKind), title.eyebrow].filter((p): p is string => p !== null);\n return { kindLabel: parts.length > 0 ? parts.join(' · ') : null, text: title.text };\n}\n\n/** A sandboxed run's facts, lifted out of the item's detail line. */\nexport interface NeedsYouRunView {\n /** \"2 files · +384 −0\". */\n stats: string;\n /** \"2 files changed, 384 lines added, 0 removed\" — what a screen reader says instead. */\n statsSpoken: string;\n /** \"Test-and-repair loop\", never \"TITRR\". */\n source: string;\n /** What the source means, for a tooltip. */\n sourceHint: string | null;\n partial: boolean;\n /** \"claude:claude-fable-5\". */\n model: string;\n}\n\n/** Everything a Needs-you row prints, in operator language. The raw server text survives only in tooltips. */\nexport interface NeedsYouRowView {\n kindLabel: string | null;\n title: string;\n /** The title exactly as the server sent it — the row's tooltip. */\n fullTitle: string;\n run: NeedsYouRunView | null;\n /** What the detail says beyond the run facts (\"Review before applying.\"), or the detail verbatim; null when nothing. */\n detail: string | null;\n /** \"binshield\", never a path. */\n repo: string | null;\n /** The repo as sent, as a tooltip, when it was more than the name. */\n repoFull: string | undefined;\n /** \"38 days ago\". */\n age: string;\n /** The exact local time, for a tooltip. */\n ageStamp: string | undefined;\n}\n\nexport function needsYouRowView(item: NeedsYouItem, now: number = Date.now()): NeedsYouRowView {\n const title = readableItemTitle(item);\n const facts = parseRunSummary(item.detail);\n const repo = repoName(item.subject.repo);\n return {\n kindLabel: title.kindLabel,\n title: title.text,\n fullTitle: item.title,\n run: facts\n ? {\n stats: formatDiffStats(facts),\n statsSpoken: describeDiffStats(facts),\n source: facts.sourceLabel,\n sourceHint: facts.sourceHint,\n partial: facts.partial,\n model: facts.model,\n }\n : null,\n detail: facts ? facts.rest : item.detail,\n repo,\n repoFull: repo !== null && item.subject.repo !== null && item.subject.repo !== repo ? item.subject.repo : undefined,\n age: longAgo(item.since, now),\n ageStamp: localStamp(item.since),\n };\n}\n\n/** \"closes in 24m\" / \"expired\" — for veto windows and grants. */\nexport function until(iso: string, now: number = Date.now()): string {\n const t = Date.parse(iso);\n if (!Number.isFinite(t)) return '—';\n const s = Math.round((t - now) / 1000);\n if (s <= 0) return 'expired';\n if (s < 90) return `in ${s}s`;\n const m = Math.round(s / 60);\n if (m < 90) return `in ${m}m`;\n const h = Math.round(m / 60);\n if (h < 48) return `in ${h}h`;\n return `in ${Math.round(h / 24)}d`;\n}\n\n// ---------------------------------------------------------------------------\n// Seats and models, by name\n// ---------------------------------------------------------------------------\n\n/** A seat or model as the operator knows it; `raw` is the id as sent, for a tooltip, when the text differs. */\nexport interface DisplayName {\n text: string;\n raw: string | undefined;\n}\n\n/**\n * \"Claude Max\" for `claude-a`: the roster's label (bootstrap seats — the name\n * the seat picker and Apps & Accounts use). An id the roster does not know is\n * shown as sent: it is all there is.\n */\nexport function seatDisplayName(seats: readonly VerseSeat[], seatId: string): DisplayName {\n const label = seatById(seats, seatId)?.label;\n return label && label !== seatId ? { text: label, raw: seatId } : { text: seatId, raw: undefined };\n}\n\n/**\n * \"Fable 5.1\" for a run's `claude:claude-fable-5-1`: the catalog label (the\n * model picker's) on the item's own seat first, then on any seat of the run's\n * engine — exact id, then canonical (verse-model `modelOptionFor`, so a\n * pre-alias `claude-opus-5.5` still finds `claude-opus-5-5`). A model no\n * catalog lists is shown as sent.\n */\nexport function runModelDisplayName(seats: readonly VerseSeat[], model: string, seatId: string | null): DisplayName {\n const colon = model.indexOf(':');\n const prefix = colon > 0 ? model.slice(0, colon) : '';\n const engine = isVerseEngine(prefix) ? prefix : null;\n // `local:qwen3.8:27b` keeps its tag: only a known engine prefix is split off.\n const id = engine ? model.slice(colon + 1) : model;\n const order = [\n ...(seatId ? [seatId] : []),\n ...seats.filter((seat) => seat.id !== seatId && (engine === null || seat.engine === engine)).map((seat) => seat.id),\n ];\n for (const candidate of order) {\n const label = modelOptionFor(seats, { seatId: candidate, model: id })?.label;\n if (label && label !== model) return { text: label, raw: model };\n }\n return { text: model, raw: undefined };\n}\n","/* ⌘J — a right-hand sheet over the workbench; full screen on a phone.\n Hairlines, no cards. Severity is a word plus a 2px rule, never colour alone. */\n\n.backdrop {\n position: fixed;\n inset: 0;\n z-index: var(--z-dialog);\n display: flex;\n justify-content: flex-end;\n background: var(--bg-overlay);\n animation: fade var(--duration-fast) var(--ease-standard);\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n width: min(480px, calc(100vw - var(--space-8)));\n height: 100%;\n background: var(--bg-surface);\n border-left: 1px solid var(--border-default);\n box-shadow: var(--shadow-dialog);\n outline: none;\n animation: slide var(--duration-base) var(--ease-decelerate);\n}\n\n/* Phone: the whole screen, sliding up. */\n.panel[data-presentation='full'] {\n width: 100%;\n border-left: 0;\n animation-name: rise;\n}\n\n.head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-3);\n min-height: var(--strip-height);\n padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);\n border-bottom: 1px solid var(--border-subtle);\n}\n\n.title {\n display: flex;\n align-items: baseline;\n gap: var(--space-2);\n font-family: var(--font-display);\n font-size: var(--text-md-size);\n line-height: var(--text-md-line);\n font-weight: var(--font-weight-semibold);\n letter-spacing: var(--tracking-display);\n}\n\n.titleCount {\n font-family: var(--font-ui);\n font-size: var(--text-sm-size);\n font-weight: var(--font-weight-regular);\n font-variant-numeric: tabular-nums;\n color: var(--text-tertiary);\n}\n\n.splits {\n display: flex;\n gap: var(--space-1);\n padding: var(--space-2) var(--space-3);\n border-bottom: 1px solid var(--border-subtle);\n overflow-x: auto;\n scrollbar-width: none;\n}\n\n.split {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n flex: none;\n min-height: var(--control-h-sm);\n padding: 0 var(--space-2);\n border-radius: var(--radius-sm);\n color: var(--text-secondary);\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n}\n.split:hover { background: var(--bg-hover); color: var(--text-primary); }\n.split[aria-selected='true'] { background: var(--bg-selected); color: var(--text-primary); font-weight: var(--font-weight-medium); }\n\n.splitCount {\n min-width: 18px;\n padding: 0 4px;\n border-radius: var(--radius-full);\n background: var(--bg-hover);\n font-size: var(--text-2xs-size);\n line-height: 18px;\n text-align: center;\n font-variant-numeric: tabular-nums;\n color: var(--text-secondary);\n}\n\n.body {\n position: relative;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n.rows { outline: none; }\n.rows:focus-visible { box-shadow: none; }\n/* The list holds focus (aria-activedescendant), so the focus ring is drawn on\n the ROW it points at — a ring around the whole list says nothing about\n which item A / R / V will act on. */\n.rows:focus-visible .row[aria-selected='true'] { box-shadow: inset 0 0 0 2px var(--border-focus); }\n\n.row {\n display: grid;\n grid-template-columns: 2px minmax(0, 1fr) auto;\n column-gap: var(--space-3);\n align-items: center;\n padding: var(--space-3) var(--space-4);\n border-bottom: 1px solid var(--border-subtle);\n cursor: pointer;\n}\n.row:hover { background: var(--bg-hover); }\n.row[aria-selected='true'] { background: var(--bg-selected); }\n\n.rule {\n align-self: stretch;\n border-radius: var(--radius-full);\n background: var(--border-strong);\n}\n.row[data-severity='high'] .rule { background: var(--status-danger-solid); }\n.row[data-severity='warn'] .rule { background: var(--status-warning-solid); }\n\n.rowMain { display: flex; flex-direction: column; min-width: 0; gap: 2px; }\n\n/* \"Patch · Claude run\" — the kind, above the title it no longer clutters.\n Secondary, not tertiary: tertiary falls under 4.5:1 on --bg-selected\n (approvals.module.css has the measurements). */\n.rowKind {\n margin: 0;\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n line-height: var(--text-2xs-line);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n color: var(--text-secondary);\n}\n\n/* Two lines at most, wrapped at word boundaries. The text itself already\n ends on a whole word (approvals-model readableTitle); the full server\n title rides in `title`. */\n.rowTitle {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n overflow: hidden;\n overflow-wrap: break-word;\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n color: var(--text-primary);\n}\n\n/* \"2 files · +384 −0 · Test-and-repair loop\". */\n.runFacts {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 0 var(--space-2);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--text-secondary);\n}\n.diffStats { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-primary); }\n.runSource[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }\n\n.repo { font-weight: var(--font-weight-medium); }\n\n.rowMeta {\n display: flex;\n flex-wrap: wrap;\n gap: 0 var(--space-2);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--text-secondary);\n}\n\n.severity {\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n}\n.severity[data-severity='high'] { color: var(--status-danger-fg); }\n.severity[data-severity='warn'] { color: var(--status-warning-fg); }\n\n.mono { font-family: var(--font-mono); font-size: var(--text-xs-size); }\n.deadline { color: var(--status-warning-fg); font-variant-numeric: tabular-nums; }\n\n.rowKeys { display: flex; gap: 2px; }\n\n.key,\n.inlineKey {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0 4px;\n border: 1px solid var(--border-subtle);\n border-radius: var(--radius-xs);\n background: var(--bg-surface);\n font-family: var(--font-mono);\n font-size: var(--text-2xs-size);\n color: var(--text-secondary);\n}\n.inlineKey { margin-left: var(--space-2); background: transparent; }\n\n.loading { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }\n\n.empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--space-2);\n padding: var(--space-16) var(--space-6);\n text-align: center;\n}\n.emptyTitle {\n font-family: var(--font-display);\n font-size: var(--text-md-size);\n line-height: var(--text-md-line);\n font-weight: var(--font-weight-semibold);\n color: var(--text-primary);\n}\n.emptyBody {\n max-width: 44ch;\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n color: var(--text-secondary);\n}\n\n/* The reward for an empty inbox: a quiet check, not a confetti cannon. */\n.clearMark {\n position: relative;\n width: 40px;\n height: 40px;\n margin-bottom: var(--space-2);\n border-radius: var(--radius-full);\n background: var(--status-success-bg);\n}\n.clearMark::after {\n content: '';\n position: absolute;\n left: 14px;\n top: 10px;\n width: 10px;\n height: 16px;\n border: solid var(--status-success-solid);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.focusSink { position: absolute; width: 1px; height: 1px; overflow: hidden; outline: none; }\n\n.detail { outline: none; }\n\n.back {\n display: inline-flex;\n align-items: center;\n margin: var(--space-2) var(--space-3) 0;\n padding: var(--space-1) var(--space-2);\n border-radius: var(--radius-sm);\n font-size: var(--text-xs-size);\n color: var(--text-secondary);\n}\n.back:hover { background: var(--bg-hover); color: var(--text-primary); }\n\n/* ApprovalDetail was drawn for a wide pane: tighten its gutters in the sheet. */\n.approval > div { padding: var(--space-3) var(--space-4) var(--space-12); }\n\n.item { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-3) var(--space-4) var(--space-8); }\n.itemHead { display: flex; flex-direction: column; gap: var(--space-1); }\n\n.itemTitle {\n font-family: var(--font-display);\n font-size: var(--text-lg-size);\n line-height: var(--text-lg-line);\n font-weight: var(--font-weight-semibold);\n letter-spacing: var(--tracking-display);\n}\n\n.itemDetail {\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line-relaxed);\n color: var(--text-secondary);\n overflow-wrap: anywhere;\n}\n\n.defs {\n display: grid;\n grid-template-columns: max-content minmax(0, 1fr);\n gap: var(--space-2) var(--space-4);\n margin: 0;\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n}\n.defs dt { color: var(--text-tertiary); }\n.defs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }\n\n.itemActions { display: flex; flex-wrap: wrap; gap: var(--space-2); }\n\n.foot {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-1) var(--space-4);\n padding: var(--space-2) var(--space-4);\n border-top: 1px solid var(--border-subtle);\n font-size: var(--text-2xs-size);\n line-height: var(--text-2xs-line);\n color: var(--text-tertiary);\n}\n.foot span { display: inline-flex; align-items: center; gap: 2px; }\n\n.caveat {\n margin: 0;\n padding: var(--space-2) var(--space-4);\n border-top: 1px solid var(--border-subtle);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--status-warning-fg);\n background: var(--status-warning-bg);\n}\n\n@keyframes fade { from { opacity: 0; } }\n@keyframes slide { from { opacity: 0; transform: translateX(4px); } }\n@keyframes rise { from { opacity: 0; transform: translateY(4px); } }\n\n@media (prefers-reduced-motion: reduce) {\n :root:not([data-motion='full']) .backdrop,\n :root:not([data-motion='full']) .panel { animation: none; }\n}\n:root[data-motion='reduce'] .backdrop,\n:root[data-motion='reduce'] .panel { animation: none; }\n","/**\n * routes/verse/shell/NeedsYouList.tsx — the rows of the Needs-you drawer\n * (unit C1). A listbox with ONE tab stop and aria-activedescendant, so J / K\n * move the selection without moving focus (and without the page scrolling\n * under the drawer). Presentational: selection and keys belong to the drawer.\n *\n * Each row says what, where, and how urgent — severity is a word AND a colour\n * (never colour alone), and an item with a deadline shows it counting down.\n *\n * Rows print needsYouRowView, not the wire text: \"patch: claude run: Advance\n * goal \"… so a deg\" becomes a \"Patch · Claude run\" label over a title that\n * ends on a whole word (two lines at most; the server's text is the tooltip),\n * a run summary becomes \"2 files · +384 −0 · Test-and-repair loop\", and an age\n * is \"38 days ago\" with the exact local time on hover.\n */\nimport { forwardRef, useEffect, useRef } from 'react';\nimport type { NeedsYouItem } from '../../../../core/verse/workbench-types.js';\nimport { NEEDS_YOU_ACTION_KEYS } from '../../../../core/verse/workbench-types.js';\nimport { needsYouRowView, until, type NeedsYouRunView } from './needs-you-model.js';\nimport styles from './NeedsYouDrawer.module.css';\n\n/**\n * \"2 files · +384 −0 · Test-and-repair loop\". The stats are drawn for the eye\n * and spoken as a sentence; the source's meaning (what TITRR did) is its\n * tooltip. Shared with the drawer's item detail.\n */\nexport function NeedsYouRunFacts({ run }: { run: NeedsYouRunView }) {\n return (\n <span className={styles.runFacts}>\n <span className={styles.diffStats} aria-hidden=\"true\">{run.stats}</span>\n <span className=\"visually-hidden\">{run.statsSpoken}</span>\n <span aria-hidden=\"true\">·</span>\n <span className={styles.runSource} title={run.sourceHint ?? undefined}>\n {run.partial ? 'Partial · ' : ''}{run.source}\n </span>\n </span>\n );\n}\n\nconst SEVERITY_WORD: Readonly<Record<NeedsYouItem['severity'], string>> = { high: 'Urgent', warn: 'Soon', info: 'When you can' };\n\nconst SOURCE_WORD: Readonly<Record<NeedsYouItem['source'], string>> = {\n approvals: 'Approval',\n authority: 'Autonomy',\n fleet: 'Fleet',\n leader: 'Leader',\n chats: 'Chat',\n accounts: 'Account',\n};\n\nexport interface NeedsYouListProps {\n items: readonly NeedsYouItem[];\n selectedId: string | null;\n onSelect: (id: string) => void;\n onOpen: (id: string) => void;\n now: number;\n label: string;\n}\n\nexport const NeedsYouList = forwardRef<HTMLDivElement, NeedsYouListProps>(function NeedsYouList(\n { items, selectedId, onSelect, onOpen, now, label },\n ref,\n) {\n const listId = 'verse-needs-you-list';\n const rowsRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!selectedId) return;\n // Matched by dataset, not a selector: ids come from other units' producers.\n const rows = rowsRef.current?.querySelectorAll<HTMLElement>('[data-item-id]') ?? [];\n const row = [...rows].find((el) => el.dataset['itemId'] === selectedId);\n row?.scrollIntoView?.({ block: 'nearest' });\n }, [selectedId]);\n\n return (\n <div\n ref={(node) => {\n rowsRef.current = node;\n if (typeof ref === 'function') ref(node);\n else if (ref) ref.current = node;\n }}\n id={listId}\n role=\"listbox\"\n aria-label={label}\n tabIndex={0}\n aria-activedescendant={selectedId ? `${listId}-${items.findIndex((i) => i.id === selectedId)}` : undefined}\n className={styles.rows}\n >\n {items.map((item, index) => {\n const keyed = item.actions\n .map((a) => NEEDS_YOU_ACTION_KEYS[a.kind])\n .filter((k): k is 'A' | 'R' | 'V' | 'E' => k !== undefined);\n const view = needsYouRowView(item, now);\n return (\n <div\n key={item.id}\n id={`${listId}-${index}`}\n data-item-id={item.id}\n role=\"option\"\n aria-selected={item.id === selectedId}\n className={styles.row}\n data-severity={item.severity}\n onClick={() => onOpen(item.id)}\n onMouseMove={() => item.id !== selectedId && onSelect(item.id)}\n >\n <span className={styles.rule} aria-hidden=\"true\" />\n <span className={styles.rowMain}>\n {view.kindLabel ? <span className={styles.rowKind}>{view.kindLabel}</span> : null}\n {/* Two lines at most, ending on a whole word; the server's title is the tooltip. */}\n <span className={styles.rowTitle} title={view.fullTitle}>{view.title}</span>\n {view.run ? <NeedsYouRunFacts run={view.run} /> : null}\n <span className={styles.rowMeta}>\n <span className={styles.severity} data-severity={item.severity}>{SEVERITY_WORD[item.severity]}</span>\n <span>{SOURCE_WORD[item.source]}</span>\n {view.repo ? <span className={styles.repo} title={view.repoFull}>{view.repo}</span> : null}\n {item.subject.pr ? <span>#{item.subject.pr}</span> : null}\n <span title={view.ageStamp}>{view.age}</span>\n {item.expiresAt ? <span className={styles.deadline}>closes {until(item.expiresAt, now)}</span> : null}\n </span>\n </span>\n {item.id === selectedId && keyed.length > 0 ? (\n <span className={styles.rowKeys} aria-hidden=\"true\">\n {keyed.map((k) => (\n <kbd key={k} className={styles.key}>{k}</kbd>\n ))}\n </span>\n ) : null}\n </div>\n );\n })}\n </div>\n );\n});\n"],"mappings":"8LA8DA,SAAgB,EAA2B,EAA6B,EAA6B,CAInG,IAAM,EAAQ,EAAS,CAAI,GAAK,wBAChC,OAAQ,EAAR,CACE,IAAK,KACH,MAAO,sBAAsB,EAAM,+GACrC,IAAK,QACH,MAAO,sBAAsB,EAAM,gEACrC,QACE,MAAO,gBAAgB,OAAO,CAAI,EAAE,eAAe,EAAM,MAC7D,CACF,CAGA,SAAgB,EAAc,EAAsC,CAClE,OAAO,IAAS,IAClB,CAGA,SAAgB,EAAS,EAAuE,CAG9F,OAFI,EAAS,YAAoB,EAAS,YACtC,EAAS,WAAmB,EAAS,WAClC,IACT,CAOA,SAAgB,EAAS,EAAgD,CACvE,GAAI,OAAO,GAAS,SAAU,OAAO,KACrC,IAAM,EAAU,EAAK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E,EAAK,QAAQ,EAAS,CAAA,CAAA,EAAI,MACrD,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,MAAO,EAAK,SAAW,SAAA,EAAK,GAAU,CAAA,EAC3C,EAAK,WAAY,EAAA,EAAA,KAAA,CAAC,OAAD,CAAM,UAAW,EAAO,SAAxB,SAAA,CAAkC,UAAQ,EAAM,EAAK,UAAW,CAAG,CAAQ,CAAI,CAAA,EAAA,IAC7F,GACF,IACL,EAAK,KAAO,GAAc,EAAM,OAAS,GACxC,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,UAAW,EAAO,QAAS,cAAY,OAC1C,SAAA,EAAM,IAAK,IACV,EAAA,EAAA,IAAA,CAAC,MAAD,CAAa,UAAW,EAAO,IAAM,SAAA,CAAO,EAAlC,CAAkC,CAC7C,CACG,CAAA,EACJ,IACD,CAhCE,EAAA,EAAK,EAgCP,CAET,CAAC,CACE,CAAA,CAET,CAAC"}
|
|
1
|
+
{"version":3,"file":"NeedsYouList-D5Kk549g.js","names":[],"sources":["../../../../../../src/web-ui/routes/verse/approvals/approvals-model.ts","../../../../../../src/web-ui/routes/verse/shell/needs-you-model.ts","../../../../../../src/web-ui/routes/verse/shell/NeedsYouDrawer.module.css","../../../../../../src/web-ui/routes/verse/shell/NeedsYouList.tsx"],"sourcesContent":["/**\n * routes/verse/approvals/approvals-model.ts — the pure decisions behind the\n * approvals queue: what order rows come in, and exactly what a human is\n * agreeing to when they press Approve.\n *\n * Kept framework-free and unit-tested because both are easy to get subtly\n * wrong: \"pending first\" must survive a status filter that also returns\n * decided rows, and the approve consequence sentence is the last thing\n * standing between a click and a real pull request against a real remote.\n */\nimport type { Proposal, ProposalKind } from '../../../data/api-types.js';\nimport { ENGINE_LABEL } from '../verse-model.js';\n\n/** Pending first, then newest first within each group. Stable and total. */\nexport function orderProposals(rows: readonly Proposal[]): Proposal[] {\n return [...rows].sort((a, b) => {\n const pendingA = a.status === 'pending' ? 0 : 1;\n const pendingB = b.status === 'pending' ? 0 : 1;\n if (pendingA !== pendingB) return pendingA - pendingB;\n const tsA = Date.parse(a.createdAt);\n const tsB = Date.parse(b.createdAt);\n const safeA = Number.isNaN(tsA) ? 0 : tsA;\n const safeB = Number.isNaN(tsB) ? 0 : tsB;\n if (safeA !== safeB) return safeB - safeA;\n return a.id.localeCompare(b.id);\n });\n}\n\nexport type RiskClass = NonNullable<Proposal['riskClass']>;\n\n/** high → medium → low → unstated. Used for the risk column's sort affordance. */\nexport function riskRank(risk: Proposal['riskClass']): number {\n switch (risk) {\n case 'high':\n return 0;\n case 'medium':\n return 1;\n case 'low':\n return 2;\n default:\n return 3;\n }\n}\n\n/** Client-side narrowing over whatever page the server returned. */\nexport function filterProposals(rows: readonly Proposal[], search: string, repo: string): Proposal[] {\n const s = search.trim().toLowerCase();\n const r = repo.trim().toLowerCase();\n if (!s && !r) return [...rows];\n return rows.filter((p) => {\n if (s && !p.title.toLowerCase().includes(s) && !(p.summary ?? '').toLowerCase().includes(s)) return false;\n if (r && !(p.repo ?? '').toLowerCase().includes(r)) return false;\n return true;\n });\n}\n\n/**\n * What approving this proposal actually does, in one sentence, naming the\n * repo. `pr` is the dangerous one: it pushes a branch to the remote and opens\n * a real pull request, which is visible to other people and cannot be undone\n * from the dialog. The confirm step MUST show this before the click.\n */\nexport function describeApproveConsequence(kind: ProposalKind | string, repo: string | null): string {\n // The project's NAME, not its absolute path: a sandbox checkout under\n // /private/tmp/claude-501/… is unreadable in a sentence. The confirm dialog\n // still prints the full path once, as the exact place the write lands.\n const where = repoName(repo) ?? 'the target repository';\n switch (kind) {\n case 'pr':\n return `Pushes a branch to ${where}'s remote and opens a real pull request. Other people can see it immediately, and this dialog cannot undo it.`;\n case 'patch':\n return `Writes the diff to ${where} on disk now. Nothing is pushed, but the working tree changes.`;\n default:\n return `Applies this ${String(kind)} proposal to ${where} now.`;\n }\n}\n\n/** True when approving reaches a remote — the loudest confirm wording. */\nexport function reachesRemote(kind: ProposalKind | string): boolean {\n return kind === 'pr';\n}\n\n/** The engine that produced the diff, as a short display string. */\nexport function engineOf(proposal: Pick<Proposal, 'engineModel' | 'engineTier'>): string | null {\n if (proposal.engineModel) return proposal.engineModel;\n if (proposal.engineTier) return proposal.engineTier;\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// Readable detail\n// ---------------------------------------------------------------------------\n\n/** \"/Users/m/repos/binshield/\" → \"binshield\"; null for no repo. */\nexport function repoName(repo: string | null | undefined): string | null {\n if (typeof repo !== 'string') return null;\n const trimmed = repo.trim().replace(/\\/+$/, '');\n if (trimmed.length === 0) return null;\n const last = trimmed.slice(trimmed.lastIndexOf('/') + 1);\n return last.length > 0 ? last : trimmed;\n}\n\nconst KIND_LABEL: Record<string, string> = {\n patch: 'Patch',\n pr: 'Pull request',\n deploy: 'Deploy',\n note: 'Note',\n 'desktop-action': 'Desktop action',\n 'browser-action': 'Browser action',\n};\n\n/** \"patch\" → \"Patch\", \"pr\" → \"Pull request\"; an unknown kind is shown as sent. */\nexport function kindLabel(kind: ProposalKind | string): string {\n return KIND_LABEL[kind] ?? String(kind);\n}\n\n/**\n * The server builds a run proposal's title as `${engine} run: ${goal.slice(0, 80)}`\n * — cut at 80 characters, mid-word, sometimes mid-quote. This is the one\n * place that cut is made readable.\n */\nexport const RUN_TITLE_GOAL_CAP = 80;\n\nexport interface ReadableTitle {\n /** \"Claude run\" when the title carried an `engine run:` prefix; null otherwise. */\n eyebrow: string | null;\n /** The title to print: never ends mid-word; a cut one ends in \"…\". */\n text: string;\n /** True when the server's title was cut short (the full text we have rides in a tooltip). */\n truncated: boolean;\n}\n\nfunction capitalize(word: string): string {\n return word.length === 0 ? word : word.charAt(0).toUpperCase() + word.slice(1);\n}\n\n/** The app's own display name for an engine (\"Claude\", \"Codex\"); any other engine capitalized (\"Ollama\"). */\nfunction engineDisplayName(engine: string): string {\n const key = engine.toLowerCase();\n return Object.prototype.hasOwnProperty.call(ENGINE_LABEL, key)\n ? ENGINE_LABEL[key as keyof typeof ENGINE_LABEL]\n : capitalize(key);\n}\n\n/** Close a quote the cut left open, so the title does not read as a stray mark. */\nfunction closeQuotes(text: string): string {\n let out = text;\n if ((out.match(/\"/g) ?? []).length % 2 === 1) out += '\"';\n if ((out.match(/\\u201c/g) ?? []).length > (out.match(/\\u201d/g) ?? []).length) out += '\\u201d';\n return out;\n}\n\n/** Drop a trailing partial word and end on \"…\". */\nfunction cutAtWord(text: string): string {\n const body = text.replace(/(?:\\u2026|\\.\\.\\.)$/, '');\n const space = body.lastIndexOf(' ');\n const whole = space > 0 ? body.slice(0, space) : body;\n return `${whole.replace(/[\\s,;:\\-\\u2013\\u2014]+$/, '')}\\u2026`;\n}\n\nexport function readableTitle(title: string): ReadableTitle {\n const raw = typeof title === 'string' ? title.trim() : '';\n // Only the engines the sandboxed runner names — \"Dry run: …\" is a title, not an engine.\n const run = /^(\\[partial\\]\\s*)?(claude|codex|grok|local|ollama|gemini|api[\\w-]*) run:\\s*(.*)$/is.exec(raw);\n // \"Partial Claude run\", never \"Partial claude run\": the engine is a name either way.\n const eyebrow = run ? `${run[1] ? 'Partial ' : ''}${engineDisplayName(run[2]!)} run` : null;\n let text = run ? run[3]! : raw;\n // A title that already ends in an ellipsis right after a letter was cut mid-word upstream.\n const cutMidWord = /[\\p{L}\\p{N}](?:\\u2026|\\.\\.\\.)$/u.test(text);\n // A run goal at exactly the server's cap that does not end on a sentence boundary was sliced.\n const sliced = run !== null && text.length >= RUN_TITLE_GOAL_CAP && !/[.!?)\"'\\u201d\\u2026]$/.test(text);\n const truncated = cutMidWord || sliced;\n if (truncated) text = cutAtWord(text);\n text = closeQuotes(text);\n return { eyebrow, text: text.length > 0 ? text : raw, truncated };\n}\n\n/**\n * What a sandboxed run's summary line says, taken apart. The server writes\n * `[Partial ]<source> <engine:model> run produced N file(s) (+A/-D). <rest>`\n * (core/run/sandboxed-engine.ts); anything else parses to null and is shown\n * verbatim.\n */\nexport interface RunFacts {\n partial: boolean;\n /** The server's source label, verbatim (\"TITRR\", \"Best-of-N winner\"). */\n source: string;\n /** The source in plain words (\"Test-and-repair loop\"). */\n sourceLabel: string;\n /** What the source means, for a tooltip; null when the label says it already. */\n sourceHint: string | null;\n /** \"claude:claude-fable-5\". */\n model: string;\n files: number;\n insertions: number;\n deletions: number;\n /** Whatever the summary says after the run facts (\"Review before applying.\"), or null. */\n rest: string | null;\n}\n\nconst RUN_SUMMARY = /^(Partial )?(.+?) (\\S+) run produced (\\d+) file\\(s\\) \\(\\+(\\d+)\\/-(\\d+)\\)\\.?\\s*([\\s\\S]*)$/;\n\n/**\n * TITRR is internal shorthand (core/run/orchestrator.ts M78: Test → Iterate →\n * Test → Refine → Repeat). The operator sees the plain name; the acronym and\n * what it did ride in the tooltip.\n */\nconst TITRR_HINT =\n 'TITRR — Test, Iterate, Test, Refine, Repeat: after its change the run re-ran the repository\\u2019s tests and repaired the change until they passed or it ran out of attempts.';\n\nfunction describeSource(source: string): { label: string; hint: string | null } {\n if (/\\bTITRR\\b/.test(source)) {\n const rest = source.replace(/\\bTITRR\\b\\s*/, '').trim();\n const qualifier = rest === 'api-model' ? ' (API model)'\n : rest === 'api-model required-diff' ? ' (API model, retried for a missing diff)'\n : rest === 'api-model failed producer' ? ' (API model, producer failed)'\n : rest.length > 0 ? ` (${rest})` : '';\n return { label: `Test-and-repair loop${qualifier}`, hint: TITRR_HINT };\n }\n if (/^best-of-n/i.test(source)) {\n return { label: source, hint: 'Several models attempted this change in parallel; a judge compared them.' };\n }\n if (source === 'api-model') return { label: 'API model run', hint: null };\n if (source === 'Sandboxed') return { label: 'Sandboxed run', hint: 'Produced in an isolated sandbox checkout; nothing touched your working tree.' };\n return { label: source, hint: null };\n}\n\nexport function parseRunSummary(summary: string | null | undefined): RunFacts | null {\n if (typeof summary !== 'string') return null;\n const m = RUN_SUMMARY.exec(summary.trim());\n if (!m) return null;\n const { label, hint } = describeSource(m[2]!);\n const rest = m[7]!.trim();\n return {\n partial: m[1] !== undefined,\n source: m[2]!,\n sourceLabel: label,\n sourceHint: hint,\n model: m[3]!,\n files: Number(m[4]),\n insertions: Number(m[5]),\n deletions: Number(m[6]),\n rest: rest.length > 0 ? rest : null,\n };\n}\n\n/** \"2 files · +384 −0\" (a real minus sign, grouped thousands). */\nexport function formatDiffStats(facts: Pick<RunFacts, 'files' | 'insertions' | 'deletions'>): string {\n const n = (v: number) => v.toLocaleString('en-US');\n return `${n(facts.files)} ${facts.files === 1 ? 'file' : 'files'} \\u00b7 +${n(facts.insertions)} \\u2212${n(facts.deletions)}`;\n}\n\n/** The same stats as a sentence for assistive tech: \"2 files changed, 384 lines added, 0 removed\". */\nexport function describeDiffStats(facts: Pick<RunFacts, 'files' | 'insertions' | 'deletions'>): string {\n const n = (v: number) => v.toLocaleString('en-US');\n return `${n(facts.files)} ${facts.files === 1 ? 'file' : 'files'} changed, ${n(facts.insertions)} ${facts.insertions === 1 ? 'line' : 'lines'} added, ${n(facts.deletions)} removed`;\n}\n\n/**\n * \"just now\", \"5 minutes ago\", \"yesterday\", \"38 days ago\", then \"on Aug 17\"\n * past two months. Written out in full: the detail view has the room, and\n * \"38d\" is a sidebar abbreviation.\n */\nexport function longAgo(iso: string | null | undefined, now: number = Date.now()): string {\n if (typeof iso !== 'string') return 'at an unknown time';\n const then = Date.parse(iso);\n if (!Number.isFinite(then)) return 'at an unknown time';\n const seconds = Math.max(0, Math.round((now - then) / 1000));\n if (seconds < 45) return 'just now';\n const rtf = new Intl.RelativeTimeFormat('en', { numeric: 'auto' });\n const minutes = Math.round(seconds / 60);\n if (minutes < 60) return rtf.format(-minutes, 'minute');\n const hours = Math.round(minutes / 60);\n if (hours < 24) return rtf.format(-hours, 'hour');\n const days = Math.round(hours / 24);\n if (days <= 60) return rtf.format(-days, 'day');\n return `on ${new Date(then).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' })}`;\n}\n\n/** A local date and time for a tooltip: \"Mon, Aug 17, 3:12 PM\". */\nexport function localStamp(iso: string | null | undefined): string | undefined {\n if (typeof iso !== 'string') return undefined;\n const t = Date.parse(iso);\n if (!Number.isFinite(t)) return undefined;\n return new Date(t).toLocaleString([], { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: '2-digit' });\n}\n","/**\n * routes/verse/shell/needs-you-model.ts — the Needs-you drawer as data (unit\n * C1): which items a split shows, how many each split has, whether the drawer\n * may say \"All clear\", and what a key press does to an item.\n *\n * Pure. The items come from GET /api/verse/activity (C1's own producers plus\n * Track B's, R1); each carries its own actions, so nothing here knows what a\n * grant or an owner-lane PR is.\n *\n * How a row READS (needsYouRowView) borrows the approvals detail view's text\n * helpers rather than growing a second copy: an approval item's title and\n * detail are the same proposal title and run summary that view already\n * untangles.\n */\nimport {\n NEEDS_YOU_KIND_CATEGORY,\n type NeedsYouAction,\n type NeedsYouActionKind,\n type NeedsYouItem,\n type NeedsYouSource,\n type VerseActivitySources,\n} from '../../../../core/verse/workbench-types.js';\nimport {\n describeDiffStats,\n formatDiffStats,\n kindLabel,\n localStamp,\n longAgo,\n parseRunSummary,\n readableTitle,\n repoName,\n} from '../approvals/approvals-model.js';\nimport type { VerseSeat } from '../../../data/api-types.js';\nimport { isVerseEngine, modelOptionFor, seatById } from '../verse-model.js';\nimport type { NeedsYouSplit } from '../verse-ui-store.js';\n\nexport const SPLIT_LABEL: Readonly<Record<NeedsYouSplit, string>> = {\n all: 'All',\n approvals: 'Approvals',\n fleet: 'Fleet',\n chats: 'Chats',\n accounts: 'Accounts',\n};\n\n/**\n * Which producers can put an item in each split. \"All clear\" is only\n * claimed for a split whose every producer answered: an owner-lane PR is in\n * Approvals but comes from the FLEET producer, so Approvals is only vouched\n * for when the fleet source answered too.\n */\nexport const SPLIT_SOURCES: Readonly<Record<NeedsYouSplit, readonly NeedsYouSource[]>> = {\n all: ['approvals', 'authority', 'fleet', 'leader', 'chats', 'accounts'],\n approvals: ['approvals', 'fleet', 'leader'],\n fleet: ['authority', 'fleet', 'leader'],\n chats: ['chats'],\n accounts: ['accounts'],\n};\n\nconst SOURCE_NAME: Readonly<Record<NeedsYouSource, string>> = {\n approvals: 'the approvals inbox',\n authority: 'the autonomy grant',\n fleet: 'the fleet',\n leader: 'the Leader',\n chats: 'chats',\n accounts: 'account health',\n};\n\nexport function itemsForSplit(items: readonly NeedsYouItem[], split: NeedsYouSplit): NeedsYouItem[] {\n if (split === 'all') return [...items];\n return items.filter((item) => NEEDS_YOU_KIND_CATEGORY[item.kind] === split);\n}\n\nexport function splitCounts(items: readonly NeedsYouItem[]): Record<NeedsYouSplit, number> {\n const counts: Record<NeedsYouSplit, number> = { all: items.length, approvals: 0, fleet: 0, chats: 0, accounts: 0 };\n for (const item of items) counts[NEEDS_YOU_KIND_CATEGORY[item.kind]] += 1;\n return counts;\n}\n\nexport interface SplitCoverage {\n /** Every producer feeding this split answered. */\n vouched: boolean;\n /** Operator-language names of the ones that did not, with why. */\n silent: Array<{ source: NeedsYouSource; name: string; state: 'unavailable' | 'error' }>;\n}\n\n/** Null sources (activity itself unavailable) vouch for nothing. */\nexport function splitCoverage(sources: VerseActivitySources | null, split: NeedsYouSplit): SplitCoverage {\n const silent: SplitCoverage['silent'] = [];\n for (const source of SPLIT_SOURCES[split]) {\n const state = sources?.[source] ?? 'unavailable';\n if (state !== 'ok') silent.push({ source, name: SOURCE_NAME[source], state });\n }\n return { vouched: silent.length === 0, silent };\n}\n\n/** \"the fleet isn't reporting yet and the Leader failed to answer\" — for the empty state. */\nexport function describeSilence(coverage: SplitCoverage): string {\n const phrases = coverage.silent.map((s) => (s.state === 'error' ? `${s.name} failed to answer` : `${s.name} isn't reporting in this build`));\n if (phrases.length === 0) return '';\n if (phrases.length === 1) return capitalise(phrases[0]!);\n return capitalise(`${phrases.slice(0, -1).join(', ')} and ${phrases[phrases.length - 1]}`);\n}\n\nfunction capitalise(text: string): string {\n return text.charAt(0).toUpperCase() + text.slice(1);\n}\n\n/** Approve / reject / veto ALWAYS confirm (SPEC-310C §1); other kinds only when the item says so. */\nexport const ALWAYS_CONFIRM: ReadonlySet<NeedsYouActionKind> = new Set(['approve', 'reject', 'veto']);\n\nexport function actionOf(item: NeedsYouItem, kind: NeedsYouActionKind): NeedsYouAction | null {\n return item.actions.find((a) => a.kind === kind) ?? null;\n}\n\nconst GENERIC_CONFIRM: Readonly<Record<'approve' | 'reject' | 'veto', { title: string; confirmLabel: string }>> = {\n approve: { title: 'Approve this?', confirmLabel: 'Approve' },\n reject: { title: 'Reject this?', confirmLabel: 'Reject' },\n veto: { title: 'Veto this action?', confirmLabel: 'Veto' },\n};\n\nexport interface ConfirmCopy {\n title: string;\n body: string;\n confirmLabel: string;\n}\n\n/** The dialog for `action` on `item`; null when the action runs without one. */\nexport function confirmCopy(item: NeedsYouItem, action: NeedsYouAction): ConfirmCopy | null {\n if (action.confirm) return action.confirm;\n if (action.kind === 'approve' || action.kind === 'reject' || action.kind === 'veto') {\n const generic = GENERIC_CONFIRM[action.kind];\n return { title: generic.title, body: readableItemTitle(item).text, confirmLabel: generic.confirmLabel };\n }\n return null;\n}\n\n// ---------------------------------------------------------------------------\n// How a row reads\n// ---------------------------------------------------------------------------\n\n/**\n * The approvals producer titles an item `${kind === 'pr' ? 'PR' : kind}: ${proposal.title}`\n * (core/verse/activity.ts approvalItem). Only an `approval` item is taken\n * apart this way — \"Failed: Migrate the store\" is a chat title, not a kind.\n */\nconst APPROVAL_KIND_PREFIX = /^(PR|[a-z][a-z-]*):\\s+([\\s\\S]+)$/;\n\nexport interface ReadableItemTitle {\n /** \"Patch · Claude run\": the proposal kind and the engine the title led with; null when neither. */\n kindLabel: string | null;\n /** The title to print. Never ends mid-word — a cut one ends in \"…\". */\n text: string;\n}\n\nexport function readableItemTitle(item: Pick<NeedsYouItem, 'kind' | 'title'>): ReadableItemTitle {\n let proposalKind: string | null = null;\n let rest = item.title;\n if (item.kind === 'approval') {\n const m = APPROVAL_KIND_PREFIX.exec(item.title.trim());\n if (m) {\n proposalKind = m[1] === 'PR' ? 'pr' : m[1]!;\n rest = m[2]!;\n }\n }\n const title = readableTitle(rest);\n const parts = [proposalKind === null ? null : kindLabel(proposalKind), title.eyebrow].filter((p): p is string => p !== null);\n return { kindLabel: parts.length > 0 ? parts.join(' · ') : null, text: title.text };\n}\n\n/** A sandboxed run's facts, lifted out of the item's detail line. */\nexport interface NeedsYouRunView {\n /** \"2 files · +384 −0\". */\n stats: string;\n /** \"2 files changed, 384 lines added, 0 removed\" — what a screen reader says instead. */\n statsSpoken: string;\n /** \"Test-and-repair loop\", never \"TITRR\". */\n source: string;\n /** What the source means, for a tooltip. */\n sourceHint: string | null;\n partial: boolean;\n /** \"claude:claude-fable-5\". */\n model: string;\n}\n\n/** Everything a Needs-you row prints, in operator language. The raw server text survives only in tooltips. */\nexport interface NeedsYouRowView {\n kindLabel: string | null;\n title: string;\n /** The title exactly as the server sent it — the row's tooltip. */\n fullTitle: string;\n run: NeedsYouRunView | null;\n /** What the detail says beyond the run facts (\"Review before applying.\"), or the detail verbatim; null when nothing. */\n detail: string | null;\n /** \"binshield\", never a path. */\n repo: string | null;\n /** The repo as sent, as a tooltip, when it was more than the name. */\n repoFull: string | undefined;\n /** \"38 days ago\". */\n age: string;\n /** The exact local time, for a tooltip. */\n ageStamp: string | undefined;\n}\n\nexport function needsYouRowView(item: NeedsYouItem, now: number = Date.now()): NeedsYouRowView {\n const title = readableItemTitle(item);\n const facts = parseRunSummary(item.detail);\n const repo = repoName(item.subject.repo);\n return {\n kindLabel: title.kindLabel,\n title: title.text,\n fullTitle: item.title,\n run: facts\n ? {\n stats: formatDiffStats(facts),\n statsSpoken: describeDiffStats(facts),\n source: facts.sourceLabel,\n sourceHint: facts.sourceHint,\n partial: facts.partial,\n model: facts.model,\n }\n : null,\n detail: facts ? facts.rest : item.detail,\n repo,\n repoFull: repo !== null && item.subject.repo !== null && item.subject.repo !== repo ? item.subject.repo : undefined,\n age: longAgo(item.since, now),\n ageStamp: localStamp(item.since),\n };\n}\n\n/** \"closes in 24m\" / \"expired\" — for veto windows and grants. */\nexport function until(iso: string, now: number = Date.now()): string {\n const t = Date.parse(iso);\n if (!Number.isFinite(t)) return '—';\n const s = Math.round((t - now) / 1000);\n if (s <= 0) return 'expired';\n if (s < 90) return `in ${s}s`;\n const m = Math.round(s / 60);\n if (m < 90) return `in ${m}m`;\n const h = Math.round(m / 60);\n if (h < 48) return `in ${h}h`;\n return `in ${Math.round(h / 24)}d`;\n}\n\n// ---------------------------------------------------------------------------\n// Seats and models, by name\n// ---------------------------------------------------------------------------\n\n/** A seat or model as the operator knows it; `raw` is the id as sent, for a tooltip, when the text differs. */\nexport interface DisplayName {\n text: string;\n raw: string | undefined;\n}\n\n/**\n * \"Claude Max\" for `claude-a`: the roster's label (bootstrap seats — the name\n * the seat picker and Apps & Accounts use). An id the roster does not know is\n * shown as sent: it is all there is.\n */\nexport function seatDisplayName(seats: readonly VerseSeat[], seatId: string): DisplayName {\n const label = seatById(seats, seatId)?.label;\n return label && label !== seatId ? { text: label, raw: seatId } : { text: seatId, raw: undefined };\n}\n\n/**\n * \"Fable 5.1\" for a run's `claude:claude-fable-5-1`: the catalog label (the\n * model picker's) on the item's own seat first, then on any seat of the run's\n * engine — exact id, then canonical (verse-model `modelOptionFor`, so a\n * pre-alias `claude-opus-5.5` still finds `claude-opus-5-5`). A model no\n * catalog lists is shown as sent.\n */\nexport function runModelDisplayName(seats: readonly VerseSeat[], model: string, seatId: string | null): DisplayName {\n const colon = model.indexOf(':');\n const prefix = colon > 0 ? model.slice(0, colon) : '';\n const engine = isVerseEngine(prefix) ? prefix : null;\n // `local:qwen3.8:27b` keeps its tag: only a known engine prefix is split off.\n const id = engine ? model.slice(colon + 1) : model;\n const order = [\n ...(seatId ? [seatId] : []),\n ...seats.filter((seat) => seat.id !== seatId && (engine === null || seat.engine === engine)).map((seat) => seat.id),\n ];\n for (const candidate of order) {\n const label = modelOptionFor(seats, { seatId: candidate, model: id })?.label;\n if (label && label !== model) return { text: label, raw: model };\n }\n return { text: model, raw: undefined };\n}\n","/* ⌘J — a right-hand sheet over the workbench; full screen on a phone.\n Hairlines, no cards. Severity is a word plus a 2px rule, never colour alone. */\n\n.backdrop {\n position: fixed;\n inset: 0;\n z-index: var(--z-dialog);\n display: flex;\n justify-content: flex-end;\n background: var(--bg-overlay);\n animation: fade var(--duration-fast) var(--ease-standard);\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n width: min(480px, calc(100vw - var(--space-8)));\n height: 100%;\n background: var(--bg-surface);\n border-left: 1px solid var(--border-default);\n box-shadow: var(--shadow-dialog);\n outline: none;\n animation: slide var(--duration-base) var(--ease-decelerate);\n}\n\n/* Phone: the whole screen, sliding up. */\n.panel[data-presentation='full'] {\n width: 100%;\n border-left: 0;\n animation-name: rise;\n}\n\n.head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-3);\n min-height: var(--strip-height);\n padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);\n border-bottom: 1px solid var(--border-subtle);\n}\n\n.title {\n display: flex;\n align-items: baseline;\n gap: var(--space-2);\n font-family: var(--font-display);\n font-size: var(--text-md-size);\n line-height: var(--text-md-line);\n font-weight: var(--font-weight-semibold);\n letter-spacing: var(--tracking-display);\n}\n\n.titleCount {\n font-family: var(--font-ui);\n font-size: var(--text-sm-size);\n font-weight: var(--font-weight-regular);\n font-variant-numeric: tabular-nums;\n color: var(--text-tertiary);\n}\n\n.splits {\n display: flex;\n gap: var(--space-1);\n padding: var(--space-2) var(--space-3);\n border-bottom: 1px solid var(--border-subtle);\n overflow-x: auto;\n scrollbar-width: none;\n}\n\n.split {\n display: inline-flex;\n align-items: center;\n gap: var(--space-1);\n flex: none;\n min-height: var(--control-h-sm);\n padding: 0 var(--space-2);\n border-radius: var(--radius-sm);\n color: var(--text-secondary);\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n}\n.split:hover { background: var(--bg-hover); color: var(--text-primary); }\n.split[aria-selected='true'] { background: var(--bg-selected); color: var(--text-primary); font-weight: var(--font-weight-medium); }\n\n.splitCount {\n min-width: 18px;\n padding: 0 4px;\n border-radius: var(--radius-full);\n background: var(--bg-hover);\n font-size: var(--text-2xs-size);\n line-height: 18px;\n text-align: center;\n font-variant-numeric: tabular-nums;\n color: var(--text-secondary);\n}\n\n.body {\n position: relative;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n.rows { outline: none; }\n.rows:focus-visible { box-shadow: none; }\n/* The list holds focus (aria-activedescendant), so the focus ring is drawn on\n the ROW it points at — a ring around the whole list says nothing about\n which item A / R / V will act on. */\n.rows:focus-visible .row[aria-selected='true'] { box-shadow: inset 0 0 0 2px var(--border-focus); }\n\n.row {\n display: grid;\n grid-template-columns: 2px minmax(0, 1fr) auto;\n column-gap: var(--space-3);\n align-items: center;\n padding: var(--space-3) var(--space-4);\n border-bottom: 1px solid var(--border-subtle);\n cursor: pointer;\n}\n.row:hover { background: var(--bg-hover); }\n.row[aria-selected='true'] { background: var(--bg-selected); }\n\n.rule {\n align-self: stretch;\n border-radius: var(--radius-full);\n background: var(--border-strong);\n}\n.row[data-severity='high'] .rule { background: var(--status-danger-solid); }\n.row[data-severity='warn'] .rule { background: var(--status-warning-solid); }\n\n.rowMain { display: flex; flex-direction: column; min-width: 0; gap: 2px; }\n\n/* \"Patch · Claude run\" — the kind, above the title it no longer clutters.\n Secondary, not tertiary: tertiary falls under 4.5:1 on --bg-selected\n (approvals.module.css has the measurements). */\n.rowKind {\n margin: 0;\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n line-height: var(--text-2xs-line);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n color: var(--text-secondary);\n}\n\n/* Two lines at most, wrapped at word boundaries. The text itself already\n ends on a whole word (approvals-model readableTitle); the full server\n title rides in `title`. */\n.rowTitle {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n line-clamp: 2;\n overflow: hidden;\n overflow-wrap: break-word;\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n color: var(--text-primary);\n}\n\n/* \"2 files · +384 −0 · Test-and-repair loop\". */\n.runFacts {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 0 var(--space-2);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--text-secondary);\n}\n.diffStats { font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-primary); }\n.runSource[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }\n\n.repo { font-weight: var(--font-weight-medium); }\n\n.rowMeta {\n display: flex;\n flex-wrap: wrap;\n gap: 0 var(--space-2);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--text-secondary);\n}\n\n.severity {\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n letter-spacing: var(--tracking-label);\n text-transform: uppercase;\n}\n.severity[data-severity='high'] { color: var(--status-danger-fg); }\n.severity[data-severity='warn'] { color: var(--status-warning-fg); }\n\n.mono { font-family: var(--font-mono); font-size: var(--text-xs-size); }\n.deadline { color: var(--status-warning-fg); font-variant-numeric: tabular-nums; }\n\n.rowKeys { display: flex; gap: 2px; }\n\n.key,\n.inlineKey {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 18px;\n height: 18px;\n padding: 0 4px;\n border: 1px solid var(--border-subtle);\n border-radius: var(--radius-xs);\n background: var(--bg-surface);\n font-family: var(--font-mono);\n font-size: var(--text-2xs-size);\n color: var(--text-secondary);\n}\n.inlineKey { margin-left: var(--space-2); background: transparent; }\n\n.loading { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }\n\n.empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--space-2);\n padding: var(--space-16) var(--space-6);\n text-align: center;\n}\n.emptyTitle {\n font-family: var(--font-display);\n font-size: var(--text-md-size);\n line-height: var(--text-md-line);\n font-weight: var(--font-weight-semibold);\n color: var(--text-primary);\n}\n.emptyBody {\n max-width: 44ch;\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n color: var(--text-secondary);\n}\n\n/* The reward for an empty inbox: a quiet check, not a confetti cannon. */\n.clearMark {\n position: relative;\n width: 40px;\n height: 40px;\n margin-bottom: var(--space-2);\n border-radius: var(--radius-full);\n background: var(--status-success-bg);\n}\n.clearMark::after {\n content: '';\n position: absolute;\n left: 14px;\n top: 10px;\n width: 10px;\n height: 16px;\n border: solid var(--status-success-solid);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.focusSink { position: absolute; width: 1px; height: 1px; overflow: hidden; outline: none; }\n\n.detail { outline: none; }\n\n.back {\n display: inline-flex;\n align-items: center;\n margin: var(--space-2) var(--space-3) 0;\n padding: var(--space-1) var(--space-2);\n border-radius: var(--radius-sm);\n font-size: var(--text-xs-size);\n color: var(--text-secondary);\n}\n.back:hover { background: var(--bg-hover); color: var(--text-primary); }\n\n/* ApprovalDetail was drawn for a wide pane: tighten its gutters in the sheet. */\n.approval > div { padding: var(--space-3) var(--space-4) var(--space-12); }\n\n.item { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-3) var(--space-4) var(--space-8); }\n.itemHead { display: flex; flex-direction: column; gap: var(--space-1); }\n\n.itemTitle {\n font-family: var(--font-display);\n font-size: var(--text-lg-size);\n line-height: var(--text-lg-line);\n font-weight: var(--font-weight-semibold);\n letter-spacing: var(--tracking-display);\n}\n\n.itemDetail {\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line-relaxed);\n color: var(--text-secondary);\n overflow-wrap: anywhere;\n}\n\n.defs {\n display: grid;\n grid-template-columns: max-content minmax(0, 1fr);\n gap: var(--space-2) var(--space-4);\n margin: 0;\n font-size: var(--text-sm-size);\n line-height: var(--text-sm-line);\n}\n.defs dt { color: var(--text-tertiary); }\n.defs dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }\n\n.itemActions { display: flex; flex-wrap: wrap; gap: var(--space-2); }\n\n.foot {\n display: flex;\n flex-wrap: wrap;\n gap: var(--space-1) var(--space-4);\n padding: var(--space-2) var(--space-4);\n border-top: 1px solid var(--border-subtle);\n font-size: var(--text-2xs-size);\n line-height: var(--text-2xs-line);\n color: var(--text-tertiary);\n}\n.foot span { display: inline-flex; align-items: center; gap: 2px; }\n\n.caveat {\n margin: 0;\n padding: var(--space-2) var(--space-4);\n border-top: 1px solid var(--border-subtle);\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--status-warning-fg);\n background: var(--status-warning-bg);\n}\n\n@keyframes fade { from { opacity: 0; } }\n@keyframes slide { from { opacity: 0; transform: translateX(4px); } }\n@keyframes rise { from { opacity: 0; transform: translateY(4px); } }\n\n@media (prefers-reduced-motion: reduce) {\n :root:not([data-motion='full']) .backdrop,\n :root:not([data-motion='full']) .panel { animation: none; }\n}\n:root[data-motion='reduce'] .backdrop,\n:root[data-motion='reduce'] .panel { animation: none; }\n\n/* ---- Cloud PR triage (3.13) ------------------------------------------------\n A verdict chip on the row (word + colour, never colour alone), picks for a\n batch, and the strip that acts on them. */\n.chip {\n display: inline-flex;\n align-items: baseline;\n max-width: 100%;\n padding: 0 var(--space-1);\n border-radius: var(--radius-xs);\n font-family: var(--font-display);\n font-size: var(--text-2xs-size);\n line-height: var(--text-xs-line);\n letter-spacing: var(--tracking-label);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.chip[data-tone='clean'] { background: var(--status-success-bg); color: var(--status-success-fg); }\n.chip[data-tone='held'] { background: var(--status-warning-bg); color: var(--status-warning-fg); }\n.chipWhy { font-family: var(--font-ui); letter-spacing: normal; }\n\n.row[data-picked='true'] { background: var(--bg-selected); }\n.row[data-picked='true'] .rule { background: var(--border-focus); }\n.pickMark {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: var(--radius-xs);\n background: var(--border-focus);\n color: var(--accent-contrast);\n font-size: var(--text-2xs-size);\n}\n\n.batch {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--space-2);\n padding: var(--space-2) var(--space-4);\n border-bottom: 1px solid var(--border-subtle);\n background: var(--bg-surface);\n}\n.batchCount {\n margin-right: auto;\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--text-secondary);\n font-variant-numeric: tabular-nums;\n}\n\n.verdict {\n display: flex;\n flex-direction: column;\n gap: var(--space-2);\n padding: var(--space-3);\n border: 1px solid var(--border-subtle);\n border-radius: var(--radius-sm);\n}\n.verdictHead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: 0; }\n.checks {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));\n gap: var(--space-1) var(--space-3);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--text-xs-size);\n line-height: var(--text-xs-line);\n color: var(--text-secondary);\n}\n.checks li { display: flex; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }\n.checks li[data-ok='false'] { color: var(--text-primary); }\n.checkMark { flex: none; width: 1em; text-align: center; }\n.checks li[data-ok='true'] .checkMark { color: var(--status-success-fg); }\n.checks li[data-ok='false'] .checkMark { color: var(--status-warning-fg); }\n","/**\n * routes/verse/shell/NeedsYouList.tsx — the rows of the Needs-you drawer\n * (unit C1). A listbox with ONE tab stop and aria-activedescendant, so J / K\n * move the selection without moving focus (and without the page scrolling\n * under the drawer). Presentational: selection and keys belong to the drawer.\n *\n * Each row says what, where, and how urgent — severity is a word AND a colour\n * (never colour alone), and an item with a deadline shows it counting down.\n *\n * Rows print needsYouRowView, not the wire text: \"patch: claude run: Advance\n * goal \"… so a deg\" becomes a \"Patch · Claude run\" label over a title that\n * ends on a whole word (two lines at most; the server's text is the tooltip),\n * a run summary becomes \"2 files · +384 −0 · Test-and-repair loop\", and an age\n * is \"38 days ago\" with the exact local time on hover.\n *\n * Triage (3.13): a cloud PR's row carries its gate verdict as a chip (\"Clean\",\n * or \"Held · 2 commits behind\"), and rows can be picked for a batch — X on\n * the selected row or Shift-click — which the drawer then acts on with\n * A / R / E. Picking never moves the cursor and never opens the item.\n */\nimport { forwardRef, useEffect, useRef } from 'react';\nimport type { NeedsYouItem } from '../../../../core/verse/workbench-types.js';\nimport { NEEDS_YOU_ACTION_KEYS } from '../../../../core/verse/workbench-types.js';\nimport type { TriageChip } from './cloud-triage.js';\nimport { needsYouRowView, until, type NeedsYouRunView } from './needs-you-model.js';\nimport styles from './NeedsYouDrawer.module.css';\n\n/**\n * \"2 files · +384 −0 · Test-and-repair loop\". The stats are drawn for the eye\n * and spoken as a sentence; the source's meaning (what TITRR did) is its\n * tooltip. Shared with the drawer's item detail.\n */\nexport function NeedsYouRunFacts({ run }: { run: NeedsYouRunView }) {\n return (\n <span className={styles.runFacts}>\n <span className={styles.diffStats} aria-hidden=\"true\">{run.stats}</span>\n <span className=\"visually-hidden\">{run.statsSpoken}</span>\n <span aria-hidden=\"true\">·</span>\n <span className={styles.runSource} title={run.sourceHint ?? undefined}>\n {run.partial ? 'Partial · ' : ''}{run.source}\n </span>\n </span>\n );\n}\n\nconst SEVERITY_WORD: Readonly<Record<NeedsYouItem['severity'], string>> = { high: 'Urgent', warn: 'Soon', info: 'When you can' };\n\nconst SOURCE_WORD: Readonly<Record<NeedsYouItem['source'], string>> = {\n approvals: 'Approval',\n authority: 'Autonomy',\n fleet: 'Fleet',\n leader: 'Leader',\n chats: 'Chat',\n accounts: 'Account',\n};\n\nexport interface NeedsYouListProps {\n items: readonly NeedsYouItem[];\n selectedId: string | null;\n onSelect: (id: string) => void;\n onOpen: (id: string) => void;\n now: number;\n label: string;\n /** Rows picked for a batch action. */\n picked?: ReadonlySet<string>;\n /** Shift-click: pick or unpick a row. */\n onTogglePick?: (id: string) => void;\n /** Cloud PR verdicts by item id. */\n chips?: ReadonlyMap<string, TriageChip>;\n}\n\nconst NO_PICKS: ReadonlySet<string> = new Set();\nconst NO_CHIPS: ReadonlyMap<string, TriageChip> = new Map();\n\n/** \"Clean\" / \"Held · 2 commits behind\" — tone is a word as well as a colour. */\nexport function TriageChipView({ chip }: { chip: TriageChip }) {\n return (\n <span className={styles.chip} data-tone={chip.tone} title={chip.title}>\n {chip.label}\n {chip.why ? <span className={styles.chipWhy}> · {chip.why}</span> : null}\n </span>\n );\n}\n\nexport const NeedsYouList = forwardRef<HTMLDivElement, NeedsYouListProps>(function NeedsYouList(\n { items, selectedId, onSelect, onOpen, now, label, picked = NO_PICKS, onTogglePick, chips = NO_CHIPS },\n ref,\n) {\n const listId = 'verse-needs-you-list';\n const rowsRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!selectedId) return;\n // Matched by dataset, not a selector: ids come from other units' producers.\n const rows = rowsRef.current?.querySelectorAll<HTMLElement>('[data-item-id]') ?? [];\n const row = [...rows].find((el) => el.dataset['itemId'] === selectedId);\n row?.scrollIntoView?.({ block: 'nearest' });\n }, [selectedId]);\n\n return (\n <div\n ref={(node) => {\n rowsRef.current = node;\n if (typeof ref === 'function') ref(node);\n else if (ref) ref.current = node;\n }}\n id={listId}\n role=\"listbox\"\n aria-label={picked.size > 0 ? `${label}, ${picked.size} picked` : label}\n tabIndex={0}\n aria-activedescendant={selectedId ? `${listId}-${items.findIndex((i) => i.id === selectedId)}` : undefined}\n className={styles.rows}\n >\n {items.map((item, index) => {\n const keyed = item.actions\n .map((a) => NEEDS_YOU_ACTION_KEYS[a.kind])\n .filter((k): k is 'A' | 'R' | 'V' | 'E' => k !== undefined);\n const view = needsYouRowView(item, now);\n const isPicked = picked.has(item.id);\n const chip = chips.get(item.id);\n return (\n <div\n key={item.id}\n id={`${listId}-${index}`}\n data-item-id={item.id}\n role=\"option\"\n aria-selected={item.id === selectedId}\n data-picked={isPicked ? 'true' : undefined}\n className={styles.row}\n data-severity={item.severity}\n onClick={(event) => {\n if (event.shiftKey && onTogglePick) {\n event.preventDefault();\n onTogglePick(item.id);\n return;\n }\n onOpen(item.id);\n }}\n onMouseMove={() => item.id !== selectedId && onSelect(item.id)}\n >\n <span className={styles.rule} aria-hidden=\"true\" />\n <span className={styles.rowMain}>\n {view.kindLabel ? <span className={styles.rowKind}>{view.kindLabel}</span> : null}\n {/* Two lines at most, ending on a whole word; the server's title is the tooltip. */}\n <span className={styles.rowTitle} title={view.fullTitle}>{view.title}</span>\n {view.run ? <NeedsYouRunFacts run={view.run} /> : null}\n <span className={styles.rowMeta}>\n {isPicked ? <span className=\"visually-hidden\">Picked. </span> : null}\n {chip ? <TriageChipView chip={chip} /> : null}\n <span className={styles.severity} data-severity={item.severity}>{SEVERITY_WORD[item.severity]}</span>\n <span>{SOURCE_WORD[item.source]}</span>\n {view.repo ? <span className={styles.repo} title={view.repoFull}>{view.repo}</span> : null}\n {item.subject.pr ? <span>#{item.subject.pr}</span> : null}\n <span title={view.ageStamp}>{view.age}</span>\n {item.expiresAt ? <span className={styles.deadline}>closes {until(item.expiresAt, now)}</span> : null}\n </span>\n </span>\n {isPicked ? <span className={styles.pickMark} aria-hidden=\"true\">✓</span> : item.id === selectedId && keyed.length > 0 ? (\n <span className={styles.rowKeys} aria-hidden=\"true\">\n {keyed.map((k) => (\n <kbd key={k} className={styles.key}>{k}</kbd>\n ))}\n </span>\n ) : null}\n </div>\n );\n })}\n </div>\n );\n});\n"],"mappings":"8LA8DA,SAAgB,EAA2B,EAA6B,EAA6B,CAInG,IAAM,EAAQ,EAAS,CAAI,GAAK,wBAChC,OAAQ,EAAR,CACE,IAAK,KACH,MAAO,sBAAsB,EAAM,+GACrC,IAAK,QACH,MAAO,sBAAsB,EAAM,gEACrC,QACE,MAAO,gBAAgB,OAAO,CAAI,EAAE,eAAe,EAAM,MAC7D,CACF,CAGA,SAAgB,EAAc,EAAsC,CAClE,OAAO,IAAS,IAClB,CAGA,SAAgB,EAAS,EAAuE,CAG9F,OAFI,EAAS,YAAoB,EAAS,YACtC,EAAS,WAAmB,EAAS,WAClC,IACT,CAOA,SAAgB,EAAS,EAAgD,CACvE,GAAI,OAAO,GAAS,SAAU,OAAO,KACrC,IAAM,EAAU,EAAK,KAAK,CAAC,CAAC,QAAQ,OAAQ,EAAE,EAC9C,GAAI,EAAQ,SAAW,EAAG,O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