dorkos 0.125.1 → 0.125.2
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/dist/bin/cli.js +15 -13
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-DNNSr3b2.js → AboutPage-BqGlH1pd.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-CXDzOpkQ.js → ActivityErrorState-C4hqCedX.js} +1 -1
- package/dist/client/assets/{ActivityPage-BXp-o5SB.js → ActivityPage-frpyizcK.js} +1 -1
- package/dist/client/assets/{ActivityRow-DDhj9QxV.js → ActivityRow-DB9c3g1G.js} +1 -1
- package/dist/client/assets/{AdapterIcon-CXXdDfkv.js → AdapterIcon-CEHkdca8.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-BLljbUjj.js → AdapterSetupWizard-DLJMkb-u.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-BcNFNeXa.js → AgentOptionRow-D-QjHi5k.js} +1 -1
- package/dist/client/assets/{AgentPicker-D4o66W3h.js → AgentPicker-DoGucmqI.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-C6aBR2TD.js → AgentRequestCard--9GA9ymH.js} +1 -1
- package/dist/client/assets/{AppearancePage-BbXPYAzg.js → AppearancePage-NHNiZrtY.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-DG2dhgC7.js → ApplyToOverridesDialog-Clo55n6V.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-DQpV3YrI.js → AttentionSignalRow-BOpClaCD.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-BZReuFC7.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-D9Tm8ual.js} +1 -1
- package/dist/client/assets/{BindingDialog-dKfunEtT.js → BindingDialog-DZcTXLE8.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-D4mpLc0Z.js → BlintzCanvas-DzjdPTlx.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-DgUpsa5s.js → CanvasCsvContent-xYUrbFeA.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-CfHHO1iy.js → CanvasFileContent-D6fTvMea.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-BZBPeTnP.js → CanvasModel3dContent-DEassnBV.js} +2 -2
- package/dist/client/assets/{ChannelComposer-Fmb-x_zK.js → ChannelComposer-CutghXOq.js} +3 -3
- package/dist/client/assets/{ChatAppsOff-B8Afyn-8.js → ChatAppsOff-C00Nl_w6.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-046sCUyi.js → CodeMirrorDiff-JYxkSqFi.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-gqpifORb.js → CodeMirrorEditor-CVXZ9B5S.js} +1 -1
- package/dist/client/assets/{CommitmentList-DIO5Qd5w.js → CommitmentList-CcCSwcZ8.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-DDYSjVdN.js → CommitmentsPage-BrDbzpyR.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-nLfGu6HH.js → ComputerResourceView-BlLvMt1I.js} +1 -1
- package/dist/client/assets/{ComputerViewer-Cmw-5KwO.js → ComputerViewer-B8SWICbj.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-DNjf06tk.js → ConnectionAccessLists-Bsb-t24W.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-Cshv0nqL.js → ConnectionsPage-RAhWxuWU.js} +1 -1
- package/dist/client/assets/{ConventionPage-CWpUQZsc.js → ConventionPage-CNij_BXA.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-D4d8hWqD.js → ExtensionPageRoute-BsGqTcyI.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-D8MtiBS3.js → FloatingTanStackRouterDevtools-CqogiFob-eQVA1bL6.js} +1 -1
- package/dist/client/assets/HandlePage-XG5mP_e9.js +1 -0
- package/dist/client/assets/{HeartbeatPage-DcQd3crO.js → HeartbeatPage-D0tKoR6G.js} +1 -1
- package/dist/client/assets/{KeyEntry-B1M6Cb_W.js → KeyEntry-CSmznLcG.js} +1 -1
- package/dist/client/assets/{LexicalField-DglxKbVV.js → LexicalField-gYKPjFfN.js} +1 -1
- package/dist/client/assets/{ManagesPage-CHnWwBcn.js → ManagesPage-BF6MFrsv.js} +1 -1
- package/dist/client/assets/{Marketplace-nlAKYRdC.js → Marketplace-BWDlXgwH.js} +1 -1
- package/dist/client/assets/{MarketplaceSourcesView-Co53MiW9.js → MarketplaceSourcesView-BhKzgkiO.js} +1 -1
- package/dist/client/assets/{McpAppFrame-L2zafUSH.js → McpAppFrame-BotrzoHd.js} +1 -1
- package/dist/client/assets/{McpSigninBody-DRxPP8Zc.js → McpSigninBody-CdeX_lYs.js} +1 -1
- package/dist/client/assets/{Model3dViewer-Bjxhkabj.js → Model3dViewer-KHktOpbD.js} +1 -1
- package/dist/client/assets/NamePage-Cdd9-mZg.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-BjCp-d3D.js → NewDirectMessageMenu-CuvKJEDY.js} +1 -1
- package/dist/client/assets/{NotificationsPage-DwkL4gtE.js → NotificationsPage-DWcgfZJD.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-BLE-N5Jb.js → OpenMeshSwitch-DdJ7g4yD.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-Bl5rL-MI.js → OperatorIdentityForm-7FUOEWw_.js} +1 -1
- package/dist/client/assets/{PermissionHistory-T4I64dJP.js → PermissionHistory-CgQhZrvg.js} +1 -1
- package/dist/client/assets/{PermissionsPage-CU2ztV8O.js → PermissionsPage-CK34y1VF.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-A50oTbpT.js → PersonalityPopover-3BA36sB0.js} +1 -1
- package/dist/client/assets/PhotoPage-DFic-gDH.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-B6hvUBqt.js → PreviewRefusedNotice-CnqAE9sr.js} +1 -1
- package/dist/client/assets/{ProfileFields-BIDZHo11.js → ProfileFields-CIbISW83.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-IHMOmga2.js → ProfilePanelContainer-DPDHtTbI.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-Bg_Tf8eF.js → ProfileRolePicker-83GFtm2P.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-BItU6w6K.js → PromptSuggestionChips-B9chKG4w.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-CohliF94.js → ReportsToPopover-DUv03JZP.js} +1 -1
- package/dist/client/assets/{RoomSurface-CAbD4wVy.js → RoomSurface-Bq6Slne3.js} +1 -1
- package/dist/client/assets/{RoomsPage-D8kdi2T4.js → RoomsPage-BKxzz-nN.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-BCCxm2Mk.js → RunsOnPopover-BIdmMhs9.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-CXAcX8bE.js → RuntimeConnectFlow-IaRVgmqH.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-Cof6tku2.js → RuntimeSetupDialog-Er-lzjmK.js} +1 -1
- package/dist/client/assets/{SeenDevices-DVjFyFfQ.js → SeenDevices-9quCcdUW.js} +1 -1
- package/dist/client/assets/{SessionsPage-DkThEA16.js → SessionsPage-CGic5VaN.js} +1 -1
- package/dist/client/assets/{SettingsDialog-DqaBWDI4.js → SettingsDialog-BZ58IaK1.js} +1 -1
- package/dist/client/assets/{SkillsPage-D8eM04tW.js → SkillsPage-VRYwez5T.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-b6z6wcEV.js → TaskDialogWrapper-C9LMV8oe.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-D4XWi20k.js → TasksEmptyState-CagC0LAa.js} +1 -1
- package/dist/client/assets/{TasksPage-TK0pCu-r.js → TasksPage-3gkHB1Pv.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-BxNRBuRo.js → TeamComputerEntry-BD89Y5e6.js} +1 -1
- package/dist/client/assets/{ToolsPage-DpcUQDHa.js → ToolsPage-Ds6LwY79.js} +1 -1
- package/dist/client/assets/{TopologyGraph-CFdwWKhT.js → TopologyGraph-CiZ2ACcQ.js} +1 -1
- package/dist/client/assets/{TourHost-CViLk6JM.js → TourHost-BISNaEzZ.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-CHiFjqy9.js → UnlinkDialog-DTuXHNsi.js} +1 -1
- package/dist/client/assets/{UnreadDivider-CNjRFpAY.js → UnreadDivider-l_VZ7ECn.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-D9LKAbNg.js → WidgetErrorCard-I8WiJv2g.js} +1 -1
- package/dist/client/assets/{WorkView-CDLKDo74.js → WorkView-_wehEEl-.js} +3 -3
- package/dist/client/assets/{_shell-x_WZg6D7.js → _shell-BLcPeb8K.js} +5 -5
- package/dist/client/assets/{_shell._home-eVhoIWNB.js → _shell._home-CcRH-M-A.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-Btyz_JXC.js → _shell._home.activity-cR24Vr9Q.js} +1 -1
- package/dist/client/assets/{_shell._home.index-mdspCjhm.js → _shell._home.index-agU2ItcI.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-C1zBEy4f.js → _shell._home.tasks-BDR9JTj3.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-B7eLLMZo.js → _shell._home.workspaces-B4nlcACK.js} +1 -1
- package/dist/client/assets/{_shell.channels-KC-oi383.js → _shell.channels-B7lTxkqM.js} +1 -1
- package/dist/client/assets/{_shell.connections-FwwnIiVq.js → _shell.connections-CWQYcH58.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-BiagdWVc.js → _shell.feedback-requests-BkgHtyZr.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BMqwT9qX.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-pXGa7Cqb.js +1 -0
- package/dist/client/assets/_shell.session-CmoE1W38.js +1 -0
- package/dist/client/assets/{_shell.team-B3A__-1w.js → _shell.team-CTIVEpZQ.js} +3 -3
- package/dist/client/assets/{_shell.threads-C-eFVUo7.js → _shell.threads-ClWYrnld.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-BiXilrSW.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-BiXilrSW.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-RjxMmLSp.js → abnfDiagram-WEYOIA3C-0-Mx5lSG.js} +1 -1
- package/dist/client/assets/{access-copy-robDo1S-.js → access-copy-Cj31J6PU.js} +1 -1
- package/dist/client/assets/{arc-De3porJy.js → arc-DVmpcNHP.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-U4UN3Fwb.js → architectureDiagram-ZHVYKT53-BZhMXbuC.js} +1 -1
- package/dist/client/assets/{banner-Bb9qmJFV.js → banner-Ctq7kvQ0.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CckMUzCn.js → blockDiagram-RJAE7QA3-Ctmof3-7.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-4IXkmK3u.js → c4Diagram-XDPPPE54-BPglmQhG.js} +1 -1
- package/dist/client/assets/{card-CHG8Y8EA.js → card-DI7YtQh3.js} +1 -1
- package/dist/client/assets/channel-A2WD4smw.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-DtPOfWfp.js → chunk-2E7WHVMD-DIK6CHka.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-Dk44yc47.js → chunk-2Q5K7J3B-C3uATYd9.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-K_Oa4h2U.js → chunk-4EMNKR2T-Dl3iYXVl.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-CBCR5VUz.js → chunk-55XCU76K-BJF-Hcs9.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-o7pQ4Ip8.js → chunk-5VM5RSS4-Cju3BnqQ.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-DnjGyJd7.js → chunk-JWPE2WC7-v1omZzgE.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-C2_U7FnB.js → chunk-VQ5W62QI-2HqA3jPL.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-BEWhI2hh.js → chunk-XXDRQBXY-RDXwFs9Z.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-B4HhT1sq.js → chunk-ZCHMQSOR-DhQsY-OT.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DhCJ3JPo.js → classDiagram-v2-4MYWR3UA-DC5N-GDk.js} +1 -1
- package/dist/client/assets/{command-BiVO_CS1.js → command-DpK0GpDM.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-xZpEDSd4.js → cose-bilkent-JH36ORCC-BriFsb6c.js} +1 -1
- package/dist/client/assets/{cpu-DDZTaXtb.js → cpu-DzCUBK-1.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-Cgz_Z2on.js → cynefin-EF2NZ3EQ-cj34OpiI.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-BJFrcql_.js → cynefinDiagram-WF24UDRP-DvAggKpl.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-BYAx5Cie.js → dagre-NK4GIZVX-BskSpt7C.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-DZ9R9gqz.js → diagram-CBK3MWTC-C6BZljcO.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D--bivdwUI.js → diagram-I5XIIV2D--4FPRmBZ.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-9hvkubLT.js → diagram-ODIL2UCW-kZxp81Fr.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-hVLmub11.js → diagram-PFBEJUXE-BSXBAffS.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-BB5ttZ9z.js → diagram-RJA3I4VV-DLDPF6FG.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-B_FkQUUF.js → diagram-TYUNFSNR-CoU2knZy.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-TS7ZNoLc.js → ebnfDiagram-V4P3TTPT-C77T1UPB.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-BRCKNiM7.js → elk-QONTBCTQ-UFXrlbAn.js} +1 -1
- package/dist/client/assets/{empty-state-BO-UXPQj.js → empty-state-aNwJA6H8.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-DycIeIib.js → erDiagram-KYQIGQAA-CyLB8fKu.js} +1 -1
- package/dist/client/assets/{execution-config-DEYWqx9f.js → execution-config-D7JzMYC2.js} +1 -1
- package/dist/client/assets/{file-DQJ4ncBH.js → file-bSD5jgk_.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-3K4for51.js → file-exclamation-point-BcCIL-rE.js} +1 -1
- package/dist/client/assets/{file-text-3tteNtIM.js → file-text-DTvj1wzM.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-C2e-pGhG.js → find-latest-widget-fence-D01ENK2h.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-4-MVKKj-.js → flowDiagram-IUGLLWBU-qmnUF-Ak.js} +1 -1
- package/dist/client/assets/{form-DJvcnZrN.js → form-C_yPntkz.js} +1 -1
- package/dist/client/assets/{format-cron-B6RtTy4x.js → format-cron-DUPWkOrW.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-DXZ9M_09.js → ganttDiagram-R7GPNTJY-CBzoqGuU.js} +1 -1
- package/dist/client/assets/{git-branch-B5MdRp1u.js → git-branch-ClXAt1_G.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-CXZBvZz1.js → gitGraphDiagram-PDYL7XHY-DMh_n1S2.js} +1 -1
- package/dist/client/assets/{graph-Ok4GTm1i.js → graph-BgkuepqW.js} +1 -1
- package/dist/client/assets/{heart-WdIkTWht.js → heart-BrjEmIsl.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-BnvI3qHd.js → highlighted-body-KPVGNVTW-DlHNVEaV.js} +1 -1
- package/dist/client/assets/{image-lightbox-DSFIEDOy.js → image-lightbox-BtzkRztd.js} +1 -1
- package/dist/client/assets/{image-off-SpOmtTU2.js → image-off-4yaoLh32.js} +1 -1
- package/dist/client/assets/{index-DZ9FOOp-.js → index-6yT0Qr0s.js} +1 -1
- package/dist/client/assets/{index-BPEGncOX.js → index-A_qzw4D8.js} +1 -1
- package/dist/client/assets/{index-mYbSzZYJ.js → index-Adjbt_HC.js} +1 -1
- package/dist/client/assets/{index-CA3lyhQr.js → index-B-X82FND.js} +1 -1
- package/dist/client/assets/{index-C_mZH9d1.js → index-BMCDckcY.js} +1 -1
- package/dist/client/assets/index-BOuCpkRb.js +1 -0
- package/dist/client/assets/{index-CS1S0apl.js → index-BUkUamu4.js} +1 -1
- package/dist/client/assets/index-BVq1p60h.js +1 -0
- package/dist/client/assets/{index-CjNQaSIo.js → index-BXtagrMY.js} +1 -1
- package/dist/client/assets/{index-Cjqqoh6c.js → index-BeVLPg9t.js} +1 -1
- package/dist/client/assets/{index-8N601Ptt.js → index-Bgg4cW4L.js} +1 -1
- package/dist/client/assets/{index-BwZrircO.js → index-BqHUbNdh.js} +1 -1
- package/dist/client/assets/{index-CO8DgOi_.js → index-BtG4vr8c.js} +1 -1
- package/dist/client/assets/{index-CzUbn74z.js → index-C0LPB1iH.js} +1 -1
- package/dist/client/assets/{index-Z7RWysQU.js → index-CJhmUsIv.js} +1 -1
- package/dist/client/assets/{index-BFyPYiSk.js → index-CMLDdOez.js} +1 -1
- package/dist/client/assets/{index-B5tjSdoa.js → index-CNV11SW6.js} +1 -1
- package/dist/client/assets/{index-CebrNsDE.js → index-CNiC7KUz.js} +1 -1
- package/dist/client/assets/{index-Beqi9bTa.js → index-CSyZb1X9.js} +1 -1
- package/dist/client/assets/{index-elechdSH.js → index-CThGpHO2.js} +1 -1
- package/dist/client/assets/{index-BAAZ_Afo.js → index-C_H6ZIel.js} +1 -1
- package/dist/client/assets/{index-PXtYLHfj.js → index-C_xSr5lb.js} +1 -1
- package/dist/client/assets/{index-VsLUphXS.js → index-Cefoks17.js} +1 -1
- package/dist/client/assets/{index-BDJuvXMG.js → index-CjUfPyOM.js} +152 -152
- package/dist/client/assets/{index-Uuq_anEw.js → index-Ckut3u-d.js} +1 -1
- package/dist/client/assets/{index-F1p3rnVP.js → index-CrQWuUpr.js} +1 -1
- package/dist/client/assets/{index-BUlGEVe6.js → index-CyfSPJ1D.js} +1 -1
- package/dist/client/assets/{index-BHnCpgC9.js → index-D0yajRDv.js} +1 -1
- package/dist/client/assets/{index-D6y63gKa.js → index-DB2t3GUm.js} +3 -3
- package/dist/client/assets/{index-DYc5kmwr.js → index-DFWrO42z.js} +1 -1
- package/dist/client/assets/{index-DlJvYygP.js → index-DGdKO24t.js} +1 -1
- package/dist/client/assets/{index-D8KycDT8.js → index-DQ9ppIWv.js} +1 -1
- package/dist/client/assets/{index-Dy7lfs5H.js → index-DX546SK5.js} +2 -2
- package/dist/client/assets/{index-CejscP7D.js → index-DXalAOXT.js} +1 -1
- package/dist/client/assets/{index-DncDh-DQ.js → index-DZ1BC5JW.js} +1 -1
- package/dist/client/assets/{index-DaAe-kkp.js → index-DgxXSEmR.js} +1 -1
- package/dist/client/assets/{index-CGvU4pGg.js → index-Dj4I8KcL.js} +3 -3
- package/dist/client/assets/{index-BAP0wpId.js → index-DrnHzrt4.js} +1 -1
- package/dist/client/assets/{index-0TLaDwd7.js → index-FhmSwVD0.js} +1 -1
- package/dist/client/assets/{index-BBfQSvDI.js → index-WkQdt6Zo.js} +1 -1
- package/dist/client/assets/{index-DG-QaLdS.js → index-WxG6nG96.js} +1 -1
- package/dist/client/assets/{index-qqbs2gqN.js → index-f1W4Bd4W.js} +1 -1
- package/dist/client/assets/{index-C1t_dxLe.js → index-qdygDruh.js} +1 -1
- package/dist/client/assets/{index-CXyeZWZE.js → index-t-NyR7HD.js} +1 -1
- package/dist/client/assets/{index.esm-Cl_dMJjM.js → index.esm-Bb3LMu5X.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-BLyKorfr.js → infoDiagram-MVDRKAX5-DbU4eDjZ.js} +1 -1
- package/dist/client/assets/{inline-code-hmEz0OM4.js → inline-code-DwFNff3_.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BrnGHajs.js → ishikawaDiagram-HPEHV2GE-DmHmF-HT.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-BQft6X3_.js → journeyDiagram-BOSHW7O7-DsjOeP3J.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-l4Lwd6a7.js → kanban-definition-FNSA4HC5-ByQ1WGy2.js} +1 -1
- package/dist/client/assets/{layers-DHQ_aTAp.js → layers-DFZUUHM5.js} +1 -1
- package/dist/client/assets/{lightbulb-qcE7kdo5.js → lightbulb-Bbgsejp1.js} +1 -1
- package/dist/client/assets/{link-2-DBDnK6MQ.js → link-2-xieOmwOK.js} +1 -1
- package/dist/client/assets/{list-runtime-types-CaJn2_14.js → list-runtime-types-B0CSonAi.js} +1 -1
- package/dist/client/assets/{markdown-content-NzXgwE2G.js → markdown-content-ysBIqFAg.js} +1 -1
- package/dist/client/assets/{mention-pill-CumFsu3I.js → mention-pill-Daeu1X92.js} +1 -1
- package/dist/client/assets/{mermaid.core-DP7EozpQ.js → mermaid.core-B1mQMOXd.js} +4 -4
- package/dist/client/assets/{message-square-off-Zgzm0pcy.js → message-square-off-D9hm8WNH.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-DXfFlXJZ.js → mindmap-definition-6OY57UG3-CoP-DGm1.js} +1 -1
- package/dist/client/assets/{more-details-XSn-_PbH.js → more-details-DHCpYDi7.js} +1 -1
- package/dist/client/assets/{owner-notice-C0ArQJdp.js → owner-notice-Crxco7HN.js} +1 -1
- package/dist/client/assets/{package-DAjaMh-O.js → package-CD8xq7hk.js} +1 -1
- package/dist/client/assets/{page-container-CGXX9atD.js → page-container-B9sDc2wq.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-DAB3TvrY.js → pane-resize-handle-DOchpdJ6.js} +1 -1
- package/dist/client/assets/{paperclip-C6yKmauj.js → paperclip-CzhXW5qi.js} +1 -1
- package/dist/client/assets/{path-input-mDIpl2-x.js → path-input-Z2p922fj.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-PjvGQ3d5.js → pegDiagram-ECIUJNBX-TEsMAO1a.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-BRtspcrq.js → pieDiagram-GNMPY74T-CMIDIiMP.js} +1 -1
- package/dist/client/assets/{plug-BEjxxorV.js → plug-BEp9Ly3k.js} +1 -1
- package/dist/client/assets/{primer-trigger-BiiSNY7s.js → primer-trigger-4qUY83SX.js} +1 -1
- package/dist/client/assets/{profile-errors-XchEnatB.js → profile-errors-CezsKqhA.js} +1 -1
- package/dist/client/assets/{progress-BF25Vgvc.js → progress-eQl1UvNz.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3--heUvlvX.js → quadrantDiagram-D57K4MC3-DXjohzOz.js} +1 -1
- package/dist/client/assets/{query-error-state-C2EyJ_cl.js → query-error-state-COuKRlU0.js} +1 -1
- package/dist/client/assets/{radio-BTlBepzs.js → radio-Cdnkcg1w.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-DI8BFDIm.js → railroadDiagram-Y72NRBL7-BojgH6Hw.js} +1 -1
- package/dist/client/assets/registry-BSucT23N.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-V7JmDMFe.js → relay-trace-schemas-XcVQg5Fa.js} +1 -1
- package/dist/client/assets/{repeat-Dl9Z6gcw.js → repeat-wB31CP7I.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-BocwQwBX.js → requirementDiagram-EQYSW5RA-Gojbrcvg.js} +1 -1
- package/dist/client/assets/{room-files-source-4I4JJamw.js → room-files-source-DXKpm43a.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-Cvx7qMiL.js → rotate-ccw-clock-LSKKAcnR.js} +1 -1
- package/dist/client/assets/{rotate-cw-BS2tU5V-.js → rotate-cw-scTEKxeZ.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-ezcikI89.js → sankeyDiagram-SY24JHO5-QS71aycL.js} +1 -1
- package/dist/client/assets/{scroll-area-CkX9hs5p.js → scroll-area-BNFXgTKM.js} +1 -1
- package/dist/client/assets/{search-x-BqiSsIfJ.js → search-x-Cjf0n9z7.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-CoGhkN3M.js → sequenceDiagram-BLEHNHQU-Beg7mj69.js} +1 -1
- package/dist/client/assets/{shield-x-DxL97yUb.js → shield-x-Dr4BZfo_.js} +1 -1
- package/dist/client/assets/{signed-in-BPaLzWUS.js → signed-in-L9MLqTuc.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-CqWfeZMY.js → sizeCapture-INFHLROL-3Oo1KjRp.js} +1 -1
- package/dist/client/assets/{soul-file-BgdRcA9b.js → soul-file-CxpOawh5.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-FWPmI7hi.js → stateDiagram-v2-A6IESKWZ-DFYIDQ6C.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-BmnK0GaI.js → swimlanes-B3ENRKFQ-BUgKOOrv.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Bqjv1MSj.js +8 -0
- package/dist/client/assets/{table-C5zpnw52.js → table-B0LsKsEv.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-BJRYVT6z.js → timeline-definition-JXYKGLGB-BsPZ0P_8.js} +1 -1
- package/dist/client/assets/{trust-posture-DxR7JKit.js → trust-posture-Cm7OhCEx.js} +1 -1
- package/dist/client/assets/{unplug-Cbp9pPvY.js → unplug-DLA7Ib_s.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-v-qMrtTV.js → unverified-catalog-notice-CxBO_pta.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-B3wTq44G.js → use-adapter-catalog-C333Z2Q6.js} +1 -1
- package/dist/client/assets/{use-bindings-BAKvriCK.js → use-bindings-Bu4yLLR5.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-BLOdXw95.js → use-composer-prefs-BnjCX9pM.js} +1 -1
- package/dist/client/assets/{use-connector-management-CApx-e1Z.js → use-connector-management-Bo6wOJQS.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DjC3PUqZ.js → use-deep-link-scroll-D867V6rs.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DIu3LTuB.js → use-delete-binding-DKObM-zT.js} +1 -1
- package/dist/client/assets/{use-dev-links-D5AXy-P_.js → use-dev-links-C0Zc30aj.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-CzUy0Vi1.js → use-direct-message-panel-DNWtQq4B.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-CzMLWn_7.js → use-external-adapter-catalog-Bv5rDkX4.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-Ce5XvGGR.js → use-full-activity-feed-CFUj0qCS.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-BUS7OPGv.js +1 -0
- package/dist/client/assets/use-is-hub-CFhvDMHt.js +1 -0
- package/dist/client/assets/{use-local-browser-Bw7S_z6h.js → use-local-browser-BeZjn0gA.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-42Fa1F-V.js → use-mesh-topology-DurMpvjU.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-NbCy8N-y.js → use-mounted-ref-CBSuPNPv.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-DAokZCgt.js → use-notification-prefs-b8iKvzB4.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-Dbjj1FO5.js → use-panel-tab-placements-BcKEux1G.js} +1 -1
- package/dist/client/assets/use-pending-read-BBBAnUYu.js +1 -0
- package/dist/client/assets/{use-personality-commit-mY_GJ7u5.js → use-personality-commit-u3kQ6h3H.js} +1 -1
- package/dist/client/assets/{use-promo-activation-CzAU3S9F.js → use-promo-activation-C8_cGmEW.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-gDFH0Uhg.js → use-promo-dismissals-B3VuaQCf.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-C6m4sn2E.js → use-pulse-freshness-CSWQ0TZS.js} +1 -1
- package/dist/client/assets/{use-relay-config-COZDw_jc.js → use-relay-config-BA6c0FMB.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-CTPdEUnW.js → use-room-follow-claim-BV-MtDQ5.js} +1 -1
- package/dist/client/assets/{use-room-sessions-DiysSClf.js → use-room-sessions-W62Zl72O.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-PltEsGcU.js → use-roving-tab-list-CMITzUHu.js} +1 -1
- package/dist/client/assets/{use-session-canvas-pL8waI_Q.js → use-session-canvas-u63m2mYH.js} +3 -3
- package/dist/client/assets/{use-status-budget-D-MyG_Pd.js → use-status-budget-CbmPFvpQ.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats-BrLVSVmS.js → use-unclaimed-chats-D7SEUfiO.js} +1 -1
- package/dist/client/assets/use-update-config-Dfd7KMde.js +1 -0
- package/dist/client/assets/{useMutationState-BwG8hXiA.js → useMutationState-rOg4bnKv.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-57NgEVRV.js → usecaseDiagram-WPOLBNNX-C-w0e-nv.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-CRKzxbya.js → vennDiagram-Q3Y3IDCW-BNm2WXT5.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-wRMWM1mn.js → wardleyDiagram-IVAIDKWA-BFyFLiir.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-Bm6K2W58.js → xychartDiagram-4URNHDU4-BKxZlnEx.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +181 -76
- package/dist/server/index.js.map +2 -2
- package/package.json +4 -4
- package/dist/client/assets/HandlePage-BFp054RW.js +0 -1
- package/dist/client/assets/NamePage-CaA8-GZa.js +0 -1
- package/dist/client/assets/PhotoPage-B-aM0VI7.js +0 -1
- package/dist/client/assets/_shell.marketplace-D5vPAK8b.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-DKXolkMK.js +0 -1
- package/dist/client/assets/_shell.session-CRLQUxCR.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-Cy2JYMPv.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-Cy2JYMPv.js +0 -1
- package/dist/client/assets/channel-DT-ECQUE.js +0 -1
- package/dist/client/assets/index-5kYaIjI6.js +0 -1
- package/dist/client/assets/index-DN4ppujx.js +0 -1
- package/dist/client/assets/registry-ZygbjV-M.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-CPB9ed5R.js +0 -8
- package/dist/client/assets/use-is-below-desktop-OolRlRyZ.js +0 -1
- package/dist/client/assets/use-is-hub-CCn7X2nA.js +0 -1
- package/dist/client/assets/use-pending-read-BBA4gaxj.js +0 -1
- package/dist/client/assets/use-update-config-Cjq60G6n.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o,c_ as t}from"./index-
|
|
1
|
+
import{j as o,c_ as t}from"./index-CjUfPyOM.js";function e(){return o.jsx("div",{className:"h-full min-h-0 overflow-hidden",children:o.jsx(t,{})})}const s=e;export{s as component};
|
package/dist/client/assets/{_shell._home.activity-Btyz_JXC.js → _shell._home.activity-cR24Vr9Q.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cj as R,c$ as M,r as l,iK as C,iL as V,j as e,by as G,ar as g,B as D,X as Y,G as f,A as j,gi as K,gj as k,_ as W,e as v,x as q,a1 as z,a2 as U,iM as X,ge as Q,iN as J,eb as Z}from"./index-BDJuvXMG.js";import{P as ee}from"./page-container-CGXX9atD.js";import{g as te,A as se,a as ne,b as ie}from"./ActivityErrorState-CXDzOpkQ.js";import{u as ae}from"./use-full-activity-feed-Ce5XvGGR.js";import{C as A,A as re}from"./ActivityRow-DDhj9QxV.js";import{T as P,a as L,b as oe,c as p}from"./table-C5zpnw52.js";import{E as b}from"./empty-state-BO-UXPQj.js";const S=["categories","actorType","actorId","since"];function w(){const s=R(),n=M({strict:!1}),t={categories:n.categories,actorType:n.actorType,actorId:n.actorId,since:n.since},i=S.some(c=>n[c]!==void 0),a={};t.categories&&(a.categories=t.categories),t.actorType&&(a.actorType=t.actorType),t.actorId&&(a.actorId=t.actorId),t.since&&(a.since=t.since);const r=l.useCallback(c=>{s({search:c})},[s]),o=l.useCallback(c=>{r(x=>{const y=x.categories?x.categories.split(","):[],N=y.includes(c)?y.filter(O=>O!==c):[...y,c];return{...x,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(x=>({...x,actorType:c}))},[r]),m=l.useCallback(c=>{r(x=>({...x,actorId:c}))},[r]),u=l.useCallback(c=>{r(x=>({...x,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const x={...c};for(const y of S)delete x[y];return x})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function ce(){const s=R(),t=M({strict:!1}).view==="all"?"all":"activity",i=l.useCallback(a=>{s({search:(r=>({...r,view:a==="all"?"all":void 0}))})},[s]);return{view:t,setView:i}}function le(){const[s]=l.useState(()=>C.getState().lastSeenAt);return l.useEffect(()=>{const{markSeen:n,setViewing:t}=C.getState();return n(),t(!0),()=>{n(),t(!1)}},[]),s}function ue(s){const n=l.useRef(null),t=l.useCallback(i=>{var d,m,u;const a=n.current;if(!a)return;const r=a.querySelectorAll("[data-activity-row]"),o=Array.from(r).findIndex(h=>h===document.activeElement||h.contains(document.activeElement));switch(i.key){case"ArrowDown":{i.preventDefault();const h=Math.min(o+1,r.length-1);(d=r[h])==null||d.focus();break}case"ArrowUp":{i.preventDefault();const h=Math.max(o-1,0);(m=r[h])==null||m.focus();break}case"Escape":{(u=document.activeElement)==null||u.blur();break}}},[s]);return{containerRef:n,handleKeyDown:t}}const de=["tasks","relay","agent","config","system","permissions"],_="group inline-flex min-h-11 shrink-0 items-center outline-none md:min-h-0",$="inline-flex h-6 items-center rounded-full px-2.5 text-xs font-medium transition-colors group-focus-visible:ring-ring group-focus-visible:ring-2 group-focus-visible:ring-offset-1";function me({category:s,isActive:n,onToggle:t}){const i=A[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,n?f(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function he({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function fe({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=w(),r=l.useRef(null),o=V(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:f("relative",s),children:[e.jsxs("div",{ref:r,onScroll:o.onScroll,"data-slot":"activity-filter-bar",className:"flex items-center gap-1 overflow-x-auto",children:[e.jsx(he,{isActive:!t,onClick:m}),de.map(u=>e.jsx(me,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(G,{children:t&&e.jsx(g.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},children:e.jsxs(D,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(Y,{"aria-hidden":!0}),"Clear"]})},"clear-filters")})]}),o.start&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-start",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r to-transparent"}),o.end&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-end",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l to-transparent"})]})}function xe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=w();return n==="all"?e.jsx(b,{className:t,icon:j,headline:"No actions yet",description:"Every action a person or agent takes shows up here."}):s?e.jsx(b,{className:t,icon:j,headline:`No ${ge(i.categories)} activity found`,description:"Try other filters.",action:{label:"Clear filters",onClick:a,variant:"outline"}}):e.jsx(b,{className:t,icon:j,headline:"No activity yet",description:"Your agents’ work shows up here."})}function ge(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=A[r])==null?void 0:o.label)??r});if(t.length===1)return t[0];const i=t[t.length-1];return`${t.slice(0,-1).join(", ")} or ${i}`}function ye({view:s,onViewChange:n,className:t}){return e.jsxs(K,{"aria-label":"Which list to show",className:f("w-fit shrink-0",t),value:s,onValueChange:i=>n(i),children:[e.jsx(k,{value:"activity",children:"Activity"}),e.jsx(k,{value:"all",children:"All actions"})]})}function pe(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/36e5);return t<1?"recently":t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function ve(s,n){const t=new Date(n),i={};for(const a of s)new Date(a.occurredAt)>t&&(i[a.category]=(i[a.category]??0)+1);return i}function je(s){const n={tasks:"scheduled run",relay:"message",agent:"agent update",config:"settings change",system:"system event",permissions:"permission change"};return Object.entries(s).filter(([,t])=>t>0).map(([t,i])=>{const a=n[t];return`${i} ${i===1?a:`${a}s`}`}).join(" · ")}function be({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=ve(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=pe(s),o=je(i);return e.jsxs(g.div,{"data-slot":"activity-since-last-visit",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:f("rounded-lg border px-4 py-3","bg-card border-border",t),children:[e.jsxs("p",{className:"text-muted-foreground text-xs",children:[e.jsx("span",{className:"text-foreground font-medium",children:"Since your last visit"})," ",e.jsxs("span",{children:["(",r,")"]})]}),e.jsx("p",{className:"text-foreground/80 mt-0.5 text-sm",children:o}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Object.keys(i).map(d=>{const m=i[d];if(!m)return null;const u=A[d];return e.jsxs(W,{shape:"pill",className:f("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ae={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function we(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(oe,{children:[e.jsx(p,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx(v,{className:"h-3 w-20"})}),e.jsx(p,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(v,{className:"h-5 w-20 rounded-full"})}),e.jsx(p,{className:"py-1.5 max-sm:pl-2",children:e.jsx(v,{className:"h-3 rounded",style:{width:n}})}),e.jsx(p,{className:"w-16 py-1.5 max-sm:w-10"})]})}function Ne(){return e.jsxs("div",{"data-slot":"activity-timeline-skeleton",className:"space-y-1",children:[e.jsx("div",{className:"py-2",children:e.jsx(v,{className:"h-3 w-16 rounded"})}),e.jsx(P,{children:e.jsx(L,{children:Array.from({length:5}).map((s,n)=>e.jsx(we,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>te(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=ue(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(Ne,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(se,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(xe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:f(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ne,{label:h.label}),e.jsx(g.div,{variants:Ae,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(L,{children:h.items.map(c=>e.jsx(re,{item:c},c.id))})})})]},h.label))})}function B({onLoadMore:s,isFetching:n,hasNextPage:t,className:i}){return t?e.jsx(g.div,{"data-slot":"activity-load-more",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:.1},className:f("flex justify-center py-4",i),children:e.jsxs(D,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(q,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Ce(){var t;const s=z(),{data:n}=U({queryKey:X.dailyCounts(T),queryFn:()=>s.getSessionDailyCounts(T),staleTime:6e4});return!n||n.dailyCounts.length===0?null:{dailyCounts:n.dailyCounts,degraded:(((t=n.warnings)==null?void 0:t.length)??0)>0}}function ke(s,n){const t=s.reduce((a,r)=>a+r,0),i=t===1?"session":"sessions";return n?t===0?"This week’s count is incomplete":`Your agents started at least ${t} ${i} this week`:t===0?"Your agents started no chats this week":`Your agents started ${t} ${i} this week`}const I=10,Se=4,E=30,F=1;function Te({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:f("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Se)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Ie(){const s=Ce();return s===null?null:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:ke(s.dailyCounts,s.degraded)}),e.jsx(Te,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function Ee(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(i=>J(i.id)&&(!i.visibleWhen||i.visibleWhen())),[n]);return t.length===0?null:e.jsxs("section",{className:"space-y-3","aria-labelledby":s,children:[e.jsx("h2",{id:s,className:"text-muted-foreground text-xs font-medium tracking-widest uppercase",children:"From your extensions"}),e.jsx("div",{className:"space-y-4",children:t.map(i=>e.jsx(i.component,{},i.id))})]})}function Fe(){const{view:s,setView:n}=ce();return e.jsxs(e.Fragment,{children:[e.jsx(Z,{children:"Activity"}),e.jsxs(ee,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(ye,{view:s,onViewChange:n}),s==="activity"&&e.jsx(fe,{className:"min-w-0 flex-1"})]}),e.jsx(Ie,{}),e.jsx(Ee,{}),s==="all"?e.jsx(Me,{}):e.jsx(Re,{})]})]})}function Re(){const{queryFilters:s,isFiltered:n}=w(),t=le(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=ae(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(be,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(B,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function Me(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ie();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(B,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Oe=Fe;export{Oe as component};
|
|
1
|
+
import{cj as R,c$ as M,r as l,iK as C,iL as V,j as e,by as G,ar as g,B as D,X as Y,G as f,A as j,gi as K,gj as k,_ as W,e as v,x as q,a1 as z,a2 as U,iM as X,ge as Q,iN as J,eb as Z}from"./index-CjUfPyOM.js";import{P as ee}from"./page-container-B9sDc2wq.js";import{g as te,A as se,a as ne,b as ie}from"./ActivityErrorState-C4hqCedX.js";import{u as ae}from"./use-full-activity-feed-CFUj0qCS.js";import{C as A,A as re}from"./ActivityRow-DB9c3g1G.js";import{T as P,a as L,b as oe,c as p}from"./table-B0LsKsEv.js";import{E as b}from"./empty-state-aNwJA6H8.js";const S=["categories","actorType","actorId","since"];function w(){const s=R(),n=M({strict:!1}),t={categories:n.categories,actorType:n.actorType,actorId:n.actorId,since:n.since},i=S.some(c=>n[c]!==void 0),a={};t.categories&&(a.categories=t.categories),t.actorType&&(a.actorType=t.actorType),t.actorId&&(a.actorId=t.actorId),t.since&&(a.since=t.since);const r=l.useCallback(c=>{s({search:c})},[s]),o=l.useCallback(c=>{r(x=>{const y=x.categories?x.categories.split(","):[],N=y.includes(c)?y.filter(O=>O!==c):[...y,c];return{...x,categories:N.length>0?N.join(","):void 0}})},[r]),d=l.useCallback(c=>{r(x=>({...x,actorType:c}))},[r]),m=l.useCallback(c=>{r(x=>({...x,actorId:c}))},[r]),u=l.useCallback(c=>{r(x=>({...x,since:c}))},[r]),h=l.useCallback(()=>{r(c=>{const x={...c};for(const y of S)delete x[y];return x})},[r]);return{filters:t,queryFilters:a,isFiltered:i,toggleCategory:o,setActorType:d,setActorId:m,setSince:u,clearAll:h}}function ce(){const s=R(),t=M({strict:!1}).view==="all"?"all":"activity",i=l.useCallback(a=>{s({search:(r=>({...r,view:a==="all"?"all":void 0}))})},[s]);return{view:t,setView:i}}function le(){const[s]=l.useState(()=>C.getState().lastSeenAt);return l.useEffect(()=>{const{markSeen:n,setViewing:t}=C.getState();return n(),t(!0),()=>{n(),t(!1)}},[]),s}function ue(s){const n=l.useRef(null),t=l.useCallback(i=>{var d,m,u;const a=n.current;if(!a)return;const r=a.querySelectorAll("[data-activity-row]"),o=Array.from(r).findIndex(h=>h===document.activeElement||h.contains(document.activeElement));switch(i.key){case"ArrowDown":{i.preventDefault();const h=Math.min(o+1,r.length-1);(d=r[h])==null||d.focus();break}case"ArrowUp":{i.preventDefault();const h=Math.max(o-1,0);(m=r[h])==null||m.focus();break}case"Escape":{(u=document.activeElement)==null||u.blur();break}}},[s]);return{containerRef:n,handleKeyDown:t}}const de=["tasks","relay","agent","config","system","permissions"],_="group inline-flex min-h-11 shrink-0 items-center outline-none md:min-h-0",$="inline-flex h-6 items-center rounded-full px-2.5 text-xs font-medium transition-colors group-focus-visible:ring-ring group-focus-visible:ring-2 group-focus-visible:ring-offset-1";function me({category:s,isActive:n,onToggle:t}){const i=A[s];return e.jsx(g.button,{type:"button",layout:!0,onClick:t,"aria-pressed":n,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,n?f(i.bg,i.text):"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:i.label})})}function he({isActive:s,onClick:n}){return e.jsx(g.button,{type:"button",layout:!0,onClick:n,"aria-pressed":s,transition:{duration:.15},className:_,children:e.jsx("span",{className:f($,s?"bg-foreground text-background":"text-muted-foreground group-hover:bg-muted group-hover:text-foreground"),children:"All"})})}function fe({className:s}){const{filters:n,isFiltered:t,toggleCategory:i,clearAll:a}=w(),r=l.useRef(null),o=V(r,"horizontal"),d=new Set(n.categories?n.categories.split(","):[]),m=()=>{t&&a()};return e.jsxs("div",{className:f("relative",s),children:[e.jsxs("div",{ref:r,onScroll:o.onScroll,"data-slot":"activity-filter-bar",className:"flex items-center gap-1 overflow-x-auto",children:[e.jsx(he,{isActive:!t,onClick:m}),de.map(u=>e.jsx(me,{category:u,isActive:d.has(u),onToggle:()=>i(u)},u)),e.jsx(G,{children:t&&e.jsx(g.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},children:e.jsxs(D,{variant:"ghost",size:"xs",className:"ml-1",onClick:a,children:[e.jsx(Y,{"aria-hidden":!0}),"Clear"]})},"clear-filters")})]}),o.start&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-start",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 left-0 w-8 bg-gradient-to-r to-transparent"}),o.end&&e.jsx("div",{"aria-hidden":!0,"data-testid":"activity-filter-bar-fade-end",className:"from-background via-background/70 pointer-events-none absolute inset-y-0 right-0 w-8 bg-gradient-to-l to-transparent"})]})}function xe({isFiltered:s=!1,view:n="activity",className:t}){const{filters:i,clearAll:a}=w();return n==="all"?e.jsx(b,{className:t,icon:j,headline:"No actions yet",description:"Every action a person or agent takes shows up here."}):s?e.jsx(b,{className:t,icon:j,headline:`No ${ge(i.categories)} activity found`,description:"Try other filters.",action:{label:"Clear filters",onClick:a,variant:"outline"}}):e.jsx(b,{className:t,icon:j,headline:"No activity yet",description:"Your agents’ work shows up here."})}function ge(s){if(!s)return"matching";const t=s.split(",").map(r=>{var o;return((o=A[r])==null?void 0:o.label)??r});if(t.length===1)return t[0];const i=t[t.length-1];return`${t.slice(0,-1).join(", ")} or ${i}`}function ye({view:s,onViewChange:n,className:t}){return e.jsxs(K,{"aria-label":"Which list to show",className:f("w-fit shrink-0",t),value:s,onValueChange:i=>n(i),children:[e.jsx(k,{value:"activity",children:"Activity"}),e.jsx(k,{value:"all",children:"All actions"})]})}function pe(s){const n=Date.now()-new Date(s).getTime(),t=Math.floor(n/36e5);return t<1?"recently":t<24?`${t}h ago`:`${Math.floor(t/24)}d ago`}function ve(s,n){const t=new Date(n),i={};for(const a of s)new Date(a.occurredAt)>t&&(i[a.category]=(i[a.category]??0)+1);return i}function je(s){const n={tasks:"scheduled run",relay:"message",agent:"agent update",config:"settings change",system:"system event",permissions:"permission change"};return Object.entries(s).filter(([,t])=>t>0).map(([t,i])=>{const a=n[t];return`${i} ${i===1?a:`${a}s`}`}).join(" · ")}function be({lastVisitedAt:s,items:n,className:t}){if(!s)return null;const i=ve(n,s);if(Object.values(i).reduce((d,m)=>d+(m??0),0)===0)return null;const r=pe(s),o=je(i);return e.jsxs(g.div,{"data-slot":"activity-since-last-visit",initial:{opacity:0,y:-6},animate:{opacity:1,y:0},transition:{duration:.2,ease:"easeOut"},className:f("rounded-lg border px-4 py-3","bg-card border-border",t),children:[e.jsxs("p",{className:"text-muted-foreground text-xs",children:[e.jsx("span",{className:"text-foreground font-medium",children:"Since your last visit"})," ",e.jsxs("span",{children:["(",r,")"]})]}),e.jsx("p",{className:"text-foreground/80 mt-0.5 text-sm",children:o}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:Object.keys(i).map(d=>{const m=i[d];if(!m)return null;const u=A[d];return e.jsxs(W,{shape:"pill",className:f("border-transparent",u.bg,u.text),children:[m," ",u.label]},d)})})]})}const Ae={initial:{opacity:0,y:6},animate:{opacity:1,y:0,transition:{duration:.2,ease:"easeOut"}}};function we(){const s=l.useId(),n=l.useMemo(()=>`${s.split("").reduce((i,a)=>i+a.charCodeAt(0),0)%40+50}%`,[s]);return e.jsxs(oe,{children:[e.jsx(p,{className:"w-28 py-1.5 pr-0 pl-2 max-sm:hidden",children:e.jsx(v,{className:"h-3 w-20"})}),e.jsx(p,{className:"w-24 py-1.5 pr-0 max-sm:hidden",children:e.jsx(v,{className:"h-5 w-20 rounded-full"})}),e.jsx(p,{className:"py-1.5 max-sm:pl-2",children:e.jsx(v,{className:"h-3 rounded",style:{width:n}})}),e.jsx(p,{className:"w-16 py-1.5 max-sm:w-10"})]})}function Ne(){return e.jsxs("div",{"data-slot":"activity-timeline-skeleton",className:"space-y-1",children:[e.jsx("div",{className:"py-2",children:e.jsx(v,{className:"h-3 w-16 rounded"})}),e.jsx(P,{children:e.jsx(L,{children:Array.from({length:5}).map((s,n)=>e.jsx(we,{},n))})})]})}function H({items:s,isLoading:n,isError:t,onRetry:i,isFiltered:a,view:r="activity",className:o}){const d=l.useMemo(()=>te(s,new Date),[s]),{containerRef:m,handleKeyDown:u}=ue(s.length);return n&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(Ne,{})}):t&&s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(se,{onRetry:i})}):s.length===0?e.jsx("div",{"data-slot":"activity-timeline",className:f(o),children:e.jsx(xe,{isFiltered:a,view:r})}):e.jsx("div",{ref:m,onKeyDown:u,"data-slot":"activity-timeline",className:f(o),children:d.map(h=>e.jsxs("section",{children:[e.jsx(ne,{label:h.label}),e.jsx(g.div,{variants:Ae,initial:"initial",animate:"animate",children:e.jsx(P,{children:e.jsx(L,{children:h.items.map(c=>e.jsx(re,{item:c},c.id))})})})]},h.label))})}function B({onLoadMore:s,isFetching:n,hasNextPage:t,className:i}){return t?e.jsx(g.div,{"data-slot":"activity-load-more",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,delay:.1},className:f("flex justify-center py-4",i),children:e.jsxs(D,{variant:"outline",size:"sm",onClick:s,disabled:n,className:"gap-2",children:[n&&e.jsx(q,{size:"xs"}),"Load 50 more events"]})}):null}const T=7;function Ce(){var t;const s=z(),{data:n}=U({queryKey:X.dailyCounts(T),queryFn:()=>s.getSessionDailyCounts(T),staleTime:6e4});return!n||n.dailyCounts.length===0?null:{dailyCounts:n.dailyCounts,degraded:(((t=n.warnings)==null?void 0:t.length)??0)>0}}function ke(s,n){const t=s.reduce((a,r)=>a+r,0),i=t===1?"session":"sessions";return n?t===0?"This week’s count is incomplete":`Your agents started at least ${t} ${i} this week`:t===0?"Your agents started no chats this week":`Your agents started ${t} ${i} this week`}const I=10,Se=4,E=30,F=1;function Te({data:s,className:n}){const t=Math.max(...s,1);return e.jsx("svg",{viewBox:"0 0 100 30",className:f("text-muted-foreground",n),"aria-hidden":"true",children:s.map((i,a)=>{const r=i/t*E;return e.jsx("rect",{x:a*(I+Se)+1,y:E-Math.max(r,F),width:I,height:Math.max(r,F),rx:2,fill:"currentColor",opacity:.6},a)})})}function Ie(){const s=Ce();return s===null?null:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("p",{className:"text-muted-foreground text-sm",children:ke(s.dailyCounts,s.degraded)}),e.jsx(Te,{data:s.dailyCounts,className:"h-6 w-24 shrink-0"})]})}function Ee(){const s=l.useId(),n=Q("dashboard.sections"),t=l.useMemo(()=>n.filter(i=>J(i.id)&&(!i.visibleWhen||i.visibleWhen())),[n]);return t.length===0?null:e.jsxs("section",{className:"space-y-3","aria-labelledby":s,children:[e.jsx("h2",{id:s,className:"text-muted-foreground text-xs font-medium tracking-widest uppercase",children:"From your extensions"}),e.jsx("div",{className:"space-y-4",children:t.map(i=>e.jsx(i.component,{},i.id))})]})}function Fe(){const{view:s,setView:n}=ce();return e.jsxs(e.Fragment,{children:[e.jsx(Z,{children:"Activity"}),e.jsxs(ee,{width:"wide",className:"space-y-4",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[e.jsx(ye,{view:s,onViewChange:n}),s==="activity"&&e.jsx(fe,{className:"min-w-0 flex-1"})]}),e.jsx(Ie,{}),e.jsx(Ee,{}),s==="all"?e.jsx(Me,{}):e.jsx(Re,{})]})]})}function Re(){const{queryFilters:s,isFiltered:n}=w(),t=le(),{data:i,isLoading:a,isError:r,refetch:o,isFetchingNextPage:d,hasNextPage:m,fetchNextPage:u}=ae(s),h=l.useMemo(()=>(i==null?void 0:i.pages.flatMap(c=>c.items))??[],[i]);return e.jsxs(e.Fragment,{children:[e.jsx(be,{lastVisitedAt:t,items:h}),e.jsx(H,{items:h,isLoading:a,isError:r,onRetry:()=>void o(),isFiltered:n}),e.jsx(B,{onLoadMore:()=>void u(),isFetching:d,hasNextPage:!!m})]})}function Me(){const{data:s,isLoading:n,isError:t,refetch:i,isFetchingNextPage:a,hasNextPage:r,fetchNextPage:o}=ie();return e.jsxs(e.Fragment,{children:[e.jsx(H,{items:s??[],isLoading:n,isError:t,onRetry:()=>void i(),isFiltered:!1,view:"all"}),e.jsx(B,{onLoadMore:()=>void o(),isFetching:a,hasNextPage:!!r})]})}const Oe=Fe;export{Oe as component};
|
package/dist/client/assets/{_shell._home.index-mdspCjhm.js → _shell._home.index-agU2ItcI.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{lf as be,lg as ye,j as t,hV as $,hW as F,hX as L,hY as B,hZ as q,_ as I,ay as A,O as Se,Q as Ne,C as ke,U as we,lh as z,B as b,li as Re,lj as Ce,cj as W,e as C,G as y,s as H,r as m,J as Ie,lk as Ae,aj as Pe,ak as De,dV as Oe,aY as Me,X as oe,ll as Te,lm as Ee,aQ as $e,dW as ie,iL as Fe,by as G,ar as R,T as Le,ln as Be,i_ as qe,lo as ze,eG as We,eH as He,iY as _e,j3 as Ue,lp as Ve,lq as Ge,eA as ae,eC as Ke,lr as Ye,c$ as re,ad as Qe,eD as Xe,iZ as Je,l as le,ls as de,lt as ce,gX as Ze,lu as _,eB as et,bf as tt,a$ as st,hI as nt,gB as ot,lv as it,as as at,gY as ue,g as rt,gk as me,lw as K,ai as Y,c7 as lt,lx as dt,ly as ct,lz as ut,a1 as mt,lA as ht,cf as gt,bP as ft,jl as pt,aP as xt,i6 as jt,eM as M,k7 as vt,q as Q,eb as bt,g$ as yt,lB as St,n as Nt}from"./index-BDJuvXMG.js";import{I as kt,p as wt}from"./ChannelComposer-Fmb-x_zK.js";import{c as Rt}from"./index-CGvU4pGg.js";import{a as Ct}from"./RoomSurface-CAbD4wVy.js";import{P as he}from"./PromptSuggestionChips-BItU6w6K.js";import{S as U}from"./scroll-area-CkX9hs5p.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-42Fa1F-V.js";import{A as Pt}from"./AttentionSignalRow-DQpV3YrI.js";import{u as ge}from"./use-promo-dismissals-gDFH0Uhg.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-CzAU3S9F.js";import"./repeat-Dl9Z6gcw.js";import"./use-room-sessions-DiysSClf.js";import"./WidgetErrorCard-D9LKAbNg.js";import"./index-BHnCpgC9.js";import"./card-CHG8Y8EA.js";import"./progress-BF25Vgvc.js";import"./markdown-content-NzXgwE2G.js";import"./table-C5zpnw52.js";import"./package-DAjaMh-O.js";import"./heart-WdIkTWht.js";import"./git-branch-B5MdRp1u.js";import"./file-text-3tteNtIM.js";import"./file-DQJ4ncBH.js";import"./find-latest-widget-fence-C2e-pGhG.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-Cof6tku2.js";import"./inline-code-hmEz0OM4.js";import"./list-runtime-types-CaJn2_14.js";import"./RuntimeConnectFlow-CXAcX8bE.js";import"./useMutationState-BwG8hXiA.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-CumFsu3I.js";import"./rotate-ccw-clock-Cvx7qMiL.js";import"./unplug-Cbp9pPvY.js";import"./message-square-off-Zgzm0pcy.js";import"./registry-ZygbjV-M.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-C6yKmauj.js";import"./index-DZ9FOOp-.js";import"./pane-resize-handle-DAB3TvrY.js";import"./UnreadDivider-CNjRFpAY.js";import"./use-room-follow-claim-CTPdEUnW.js";import"./use-connector-management-CApx-e1Z.js";import"./AgentRequestCard-C6aBR2TD.js";import"./access-copy-robDo1S-.js";import"./query-error-state-C2EyJ_cl.js";import"./empty-state-BO-UXPQj.js";import"./use-bindings-BAKvriCK.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-B1M6Cb_W.js";import"./use-update-config-Cjq60G6n.js";import"./use-relay-config-COZDw_jc.js";function Et({open:e,itemId:n,onClose:o}){const{data:s}=be(),i=ye(),a=(n==null?void 0:n.indexOf("::"))??-1,r=a>=0?n.slice(0,a):void 0,l=a>=0?n.slice(a+2):void 0,d=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),c=()=>{!r||!l||i.mutate({source:r,reason:l},{onSuccess:o})};return t.jsx($,{open:e,onOpenChange:h=>!h&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Messages that never arrived"}),t.jsx(q,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:d?t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"These never reached an agent. Clearing them doesn’t send them."}),t.jsxs("p",{className:"text-foreground text-sm",children:[d.count," message",d.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(d.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(d.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(d.lastSeen)," ago"]})]}),d.sample!=null&&t.jsxs(Se,{children:[t.jsxs(Ne,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(ke,{className:"size-3 transition-transform group-data-[state=open]:rotate-90"}),"What one of them looked like"]}),t.jsx(we,{children:t.jsx("pre",{className:"bg-muted mt-1 overflow-x-auto rounded-md p-3 font-mono text-xs",children:JSON.stringify(d.sample,null,2)})})]})]}):t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"These are cleared already."})}),t.jsxs(z,{children:[d&&t.jsx(b,{variant:"destructive",onClick:c,disabled:i.isPending,children:i.isPending?"Clearing…":"Clear these"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function $t(e){const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const o=Math.floor(n/60),s=n%60;if(o<60)return`${o}m ${s}s`;const i=Math.floor(o/60),a=o%60;return`${i}h ${a}m`}function Ft(e){switch(e){case"blocked":return{label:"Blocked",badge:"outline",tone:"warning",heading:"What it needed",title:"Run that couldn’t use its tools"};case"failed":return{label:"Didn’t finish",badge:"destructive",tone:"error",heading:"Error",title:"Run that didn’t finish"};case"cancelled":return{label:"Cancelled",badge:"secondary",tone:"neutral",heading:"Stopped",title:"Run that was stopped"};case"skipped":return{label:"Skipped",badge:"secondary",tone:"neutral",heading:"Why",title:"Run that never started"};case"running":return{label:"Running",badge:"secondary",tone:"neutral",heading:"Latest",title:"Run that is still going"};default:return{label:"Completed",badge:"secondary",tone:"neutral",heading:"Note",title:"Run that finished"}}}const Lt={error:{box:"bg-destructive/10 border-destructive/20",heading:"text-destructive",body:"text-destructive"},warning:{box:"bg-status-warning-bg border-status-warning-border",heading:"text-status-warning-fg",body:"text-status-warning-fg"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function Bt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),d=()=>{s!=null&&s.sessionId&&l(H({session:s.sessionId}))},c=()=>{s&&r.mutate(s.id)},h=s?Ft(s.status):null,g=h?Lt[h.tone]:null;return t.jsx($,{open:e,onOpenChange:f=>!f&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(q,{children:n?n.slice(0,8):"Unknown"})]}),t.jsxs(U,{className:"flex-1 px-4",children:[i&&t.jsxs("div",{className:"space-y-4",children:[t.jsx(C,{className:"h-6 w-24"}),t.jsx(C,{className:"h-4 w-48"}),t.jsx(C,{className:"h-20 w-full"})]}),a&&t.jsx("p",{className:"text-destructive py-8 text-center text-sm",children:"Couldn’t load this run."}),!i&&!a&&!s&&t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"Already resolved."}),s&&t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsx(I,{variant:h.badge,children:h.label}),t.jsx(I,{variant:"secondary",children:s.trigger==="scheduled"?"Scheduled":"Manual"})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[s.startedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Started: ",A(s.startedAt)," ago"]}),s.finishedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Finished: ",A(s.finishedAt)," ago"]}),s.durationMs!=null&&t.jsxs("p",{className:"text-muted-foreground",children:["Duration: ",$t(s.durationMs)]})]}),s.error&&t.jsxs("div",{className:y("rounded-md border p-3",g.box),children:[t.jsx("p",{className:y("text-sm font-medium",g.heading),children:h.heading}),t.jsx("p",{className:y("mt-1 text-sm",g.body),children:s.error})]}),s.outputSummary&&t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Output"}),t.jsx("pre",{className:"bg-muted max-h-48 overflow-auto rounded-md p-3 font-mono text-xs",children:s.outputSummary})]})]})]}),t.jsxs(z,{children:[(s==null?void 0:s.sessionId)&&t.jsx(b,{variant:"default",onClick:d,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:c,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function qt({agent:e}){const n=Ae(e,e.projectPath??"");return t.jsxs("div",{className:"flex items-center gap-3 py-2",children:[t.jsx(Pe,{color:n.color,emoji:n.emoji,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground truncate text-sm font-medium",children:De(e)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{variant:"destructive",children:"Unreachable"}),e.runtime&&t.jsx(I,{variant:"secondary",children:Oe(e.runtime).label})]})]}),e.lastSeenAt&&t.jsxs("span",{className:"text-muted-foreground shrink-0 text-xs",children:[A(e.lastSeenAt)," ago"]})]})}function zt({open:e,onClose:n}){const{data:o}=At(void 0,e),s=m.useMemo(()=>o?o.namespaces.flatMap(i=>i.agents).filter(i=>i.healthStatus==="unreachable"):[],[o]);return t.jsx($,{open:e,onOpenChange:i=>!i&&n(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Agents that aren’t answering"}),t.jsxs(q,{children:["DorkOS can’t reach ",s.length," agent",s.length===1?"":"s"," right now"]})]}),t.jsx(U,{className:"flex-1 px-4",children:s.length>0?t.jsx("div",{className:"divide-y",children:s.map(i=>t.jsx(qt,{agent:i},i.id))}):t.jsxs("div",{className:"flex flex-col items-center gap-2 py-8",children:[t.jsx(Ie,{className:"text-status-success size-6"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"All agents are online"})]})}),t.jsx(z,{children:t.jsx(b,{variant:"outline",onClick:n,children:"Close"})})]})})}function Wt(e){return e.content.suggestion!==void 0}function Ht(){const e=Dt(),{dismissedIds:n}=ge(),o=Me(s=>s.promoEnabled);return m.useMemo(()=>{if(!o)return null;const[s]=Ot(Mt.filter(Wt),e,n,1);return s??null},[e,n,o])}function _t({suggestion:e,promoTitle:n,onAccept:o,onDismiss:s}){return t.jsxs("p",{"data-slot":"quiet-suggestion",className:"text-muted-foreground/70 text-2xs mt-1",children:[e.question," ",t.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm font-medium underline-offset-4 transition-colors hover:underline focus-visible:underline",children:e.action}),t.jsx("button",{type:"button","aria-label":`Dismiss suggestion: ${n}`,onClick:s,className:"text-muted-foreground/60 hover:text-foreground focus-ring -my-1.5 ml-0.5 inline-flex translate-y-[3px] items-center justify-center rounded-sm p-1.5 align-baseline transition-colors",children:t.jsx(oe,{className:"size-3"})})]})}function Ut({promo:e}){const{dismissPromo:n}=ge(),{activate:o,dialog:s}=Tt(e);return t.jsxs(t.Fragment,{children:[t.jsx(_t,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Vt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Gt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Gt,unread:!0});return m.useMemo(()=>e[0],[e])}function Kt({questions:e,requests:n,schedules:o,approvalsUnavailable:s,attention:i}){const a=[],r=[],l=e+n+o;return l>0?(a.push(`${Ee(e,n,o)} ${l===1?"is":"are"} waiting on you.`),r.push(`${l} waiting`)):s&&(a.push("Couldn’t read approvals."),r.push("Couldn’t read approvals")),i===1?(a.push("1 thing needs attention."),r.push("1 needs attention")):i>1&&(a.push(`${i} things need attention.`),r.push(`${i} need attention`)),{spoken:a.join(" "),compact:r.join(" · ")}}function Yt({notification:e,onDismiss:n}){return t.jsxs("div",{"data-slot":"shift-report-card",className:"border-border/60 bg-background/60 relative rounded-lg border p-3 pr-8",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx($e,{"aria-hidden":!0,className:"text-muted-foreground mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground text-xs font-medium",children:e.title}),e.body!==void 0&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:e.body})]})]}),t.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground focus-ring absolute top-2 right-2 rounded-md p-1 transition-colors",children:t.jsx(oe,{className:"size-3.5"})})]})}const Qt="max-h-[40svh] sm:max-h-[50svh]",Xt={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}};function T({title:e,tone:n="waiting",children:o}){const s=m.useId();return t.jsxs("section",{"aria-labelledby":s,className:"min-w-0",children:[t.jsx("h2",{id:s,className:y("mb-2 text-xs font-medium",n==="waiting"?"text-status-warning-fg":"text-muted-foreground"),children:e}),o]})}function X({edge:e}){return t.jsx("div",{"aria-hidden":"true","data-slot":`pinned-triage-fade-${e}`,className:y("from-background/95 via-background/65 pointer-events-none absolute inset-x-0 h-6 to-transparent",e==="bottom"?"bottom-0 bg-gradient-to-t":"top-0 bg-gradient-to-b")})}const J={animate:{transition:{staggerChildren:.04}}};function Jt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:d,activityItems:c,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),N=Fe(v),k=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=k||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Kt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:d.length+c.length}),ve=j===!0&&O.compact!=="";return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:O.spoken}),t.jsxs(G,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Jt(p===!0)},className:y("bg-background/95 border-border/60 shrink-0 border-b backdrop-blur-sm",u),children:t.jsxs("button",{type:"button",onClick:x,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full min-w-0 items-center gap-2 px-[var(--msg-padding-x)] text-left text-xs",children:[t.jsx("span",{className:"bg-status-warning-dot size-1.5 shrink-0 rounded-full","aria-hidden":!0}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.compact}),t.jsx(Le,{className:"size-3.5 shrink-0","aria-hidden":!0})]})},"triage-summary"),je&&j!==!0&&t.jsxs(R.div,{"data-slot":"pinned-triage-header",...Xt,transition:{duration:p?0:.25,ease:[0,0,.2,1]},className:y("bg-background/95 border-border/60 relative shrink-0 overflow-hidden border-b backdrop-blur-sm",u),children:[t.jsxs("div",{ref:v,onScroll:N.onScroll,"data-slot":"pinned-triage-scroller",className:y("flex w-full min-w-0 scroll-py-6 flex-col gap-3 overflow-y-auto overscroll-contain px-[var(--msg-padding-x)] py-3",Qt),children:[k&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(Be,{asks:n,agentNames:s,onOpenSession:i,emptyState:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing needs you"})}),e.length>0&&t.jsx(qe,{approvals:e}),e.length===0&&a&&t.jsx(ze,{onRetry:r}),t.jsx(G,{initial:!1,children:l.map(S=>t.jsx(We,{task:S,className:"mt-2"},S.id))})]}),P&&t.jsx(T,{title:"Needs attention",children:t.jsx("div",{className:"border-status-warning-border/40 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Yt,{notification:g.notification,onDismiss:g.onDismiss}),w&&t.jsx(T,{title:"Recent activity",tone:"neutral",children:t.jsx("div",{className:"border-border/60 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(He,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),N.start&&t.jsx(X,{edge:"top"}),N.end&&t.jsx(X,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=_e(),{interactions:l}=Ue(),d=Ve(),c=Ge(l),{schedules:h,errors:g,activity:f}=ae(),j=Ke(),x=fe(),{mutate:u}=Ye(),p=re({strict:!1}),v=W(),N=Qe(),k=Xe(h),P=Je(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:d,askAgentNames:c,onOpenSession:V=>{v(H({session:V}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:k,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:N&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(Bt,{open:p.detail==="failed-run",itemId:p.itemId,onClose:w}),t.jsx(zt,{open:p.detail==="offline-agent",onClose:w})]})}const ts=["What can you help with?","Make my first agent","What’s in this project?","Set up a daily run"];function ss({roomId:e}){const n=m.useCallback(o=>{de.getState().set(e,o),ce.getState().requestFocus(e)},[e]);return t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1",children:t.jsx(he,{suggestions:ts,onChipClick:n,ariaLabel:"Ways to start",size:"comfortable"})})}function ns(e){var a;const{data:n}=Ze(e),o=((a=n==null?void 0:n.members.find(r=>r.author.id===n.viewerAuthorId))==null?void 0:a.lastReadSeq)??null,[s,i]=m.useState({roomId:null,seq:null});return s.roomId===e?s.seq:o===null?null:(i({roomId:e,seq:o}),o)}function os(e,n){if(e===void 0)return null;let o=null,s=1/0;for(const i of e){if(!i.enabled||i.status!=="active")continue;const a=i.nextRun;if(a==null)continue;const r=Date.parse(a);Number.isNaN(r)||r<=n||r>=s||(s=r,o={name:i.displayName??i.name,at:a})}return o}function is(e,n){const o=new Date(e),s=o.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),i=as(new Date(n),o);return i===0?`today at ${s}`:i===1?`tomorrow at ${s}`:`on ${o.toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"})} at ${s}`}function as(e,n){const o=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return Math.round((o(n)-o(e))/864e5)}function rs(e,n){return e===null?null:`Next up: ${e.name} runs ${is(e.at,n)}.`}function ls({forwardLook:e,suggestion:n}){return t.jsx(R.div,{"data-slot":"home-quiet-state",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"border-border/60 shrink-0 border-b",children:t.jsxs("div",{className:"w-full px-[var(--msg-padding-x)] py-2",children:[t.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.jsx("span",{className:"text-foreground/80 font-medium",children:"All quiet."}),e!==null&&t.jsxs(t.Fragment,{children:[" ",e]})]}),n]})})}function ds({roomId:e,presenceOccupied:n}){const o=_(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),d=fe(),c=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(k=>k.seq<=s),g=i.length>0||a||r||l>0||d!==void 0||n,f=c&&h&&!g,[j,x]=m.useState("waiting");f&&j==="waiting"?x("shown"):!f&&j==="shown"&&x("retired");const u=f&&j!=="retired",p=tt(),{data:v}=st(p&&u),N=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,N),N),suggestion:t.jsx(Vt,{})}):null}const pe="dorkos:home-opened-on";function Z(){const e=new Date,n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${n}-${o}`}function cs(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>cs()!==Z());return m.useEffect(()=>{e&&us(Z())},[e]),e}function hs({children:e}){const n=ms(),o=ie(),s=n&&o!==!0;return t.jsx(R.div,{className:"h-full",initial:s?{opacity:0}:!1,animate:{opacity:1},transition:{duration:.45,ease:[0,0,.2,1]},children:e})}const ee="@dorkbot",gs="Build me a tracker for my customers",fs="Make a daily plan board",xe="Something else",ps=[gs,fs,xe];function xs({roomId:e,mode:n}){const o=Rt(),s=ot(),i=m.useCallback(a=>{if(a===xe){de.getState().set(e,`${ee} `),ce.getState().requestFocus(e);return}o.mutate({roomId:e,text:`${ee} ${a}`,clientId:it()})},[e,o]);return n==="starters"?t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-chips",children:t.jsx(he,{suggestions:ps,onChipClick:i,ariaLabel:"First jobs for DorkBot",size:"comfortable"})}):t.jsxs("div",{className:"flex w-full flex-wrap gap-2 px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-connect-chips",children:[t.jsx(b,{size:"sm",onClick:()=>s.open("account"),children:"Continue with DorkOS"}),t.jsx(b,{size:"sm",variant:"outline",onClick:()=>s.open("runtimes"),children:"Use my own AI"})]})}function js(e){var r,l;const{data:n}=at(),o=_(e),s=ue(e,null),i=((r=n==null?void 0:n.onboarding)==null?void 0:r.welcomeEntryId)??null;if(e===null||i===null||!o||s.length>0)return null;const a=o.reduce((d,c)=>d===void 0||c.seq>d.seq?c:d,void 0);return(a==null?void 0:a.id)!==i?null:((l=n==null?void 0:n.onboarding)==null?void 0:l.firstRunPath)==="none"?"connect":"starters"}const vs=5,bs="relative after:absolute after:-inset-x-1 after:-inset-y-2.5 md:after:hidden";function ys(e,n){return e===null||n===null?null:Math.max(0,n-Date.parse(e))}function Ss({row:e,onFollow:n,onViewProfile:o}){const[s,i]=m.useState(null),a=ys(e.since,s),r=e.profileMemberId,l=o===void 0||r===null?void 0:()=>o(r);return t.jsx(kt,{onViewProfile:l,identity:{kind:e.face.kind,displayName:e.name,...e.handle!==null?{handle:e.handle}:{},color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},...e.face.kind==="agent"?{agent:{...e.runtime!==null?{runtime:e.runtime}:{},...a!==null?{working:{...e.roomTitle!==null?{room:e.roomTitle}:{},forMs:a}}:{}}}:{}},children:t.jsxs("button",{type:"button","aria-label":e.detail===null?`Watch ${e.name}`:`Watch ${e.name}: ${e.detail}`,onClick:()=>n(e.follow),onPointerEnter:()=>i(Date.now()),onPointerLeave:()=>i(null),onFocus:()=>i(Date.now()),onBlur:()=>i(null),className:y("focus-ring group/identity hover:bg-muted/60 flex min-w-0 items-center gap-1.5 rounded-full py-1 pr-2.5 pl-1 text-xs transition-colors",bs),children:[t.jsx(rt,{size:"xs",kind:e.face.kind,color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},fallback:e.face.fallback,status:"working"}),t.jsx("span",{className:"text-foreground shrink-0 font-medium",children:e.name}),e.detail!==null&&t.jsxs("span",{"aria-hidden":!0,className:"text-muted-foreground truncate",children:["· ",e.detail]})]})})}function Ns({rows:e,onFollow:n,onViewProfile:o,className:s}){if(e.length===0)return null;const i=e.slice(0,vs),a=e.length-i.length;return t.jsxs("ul",{"data-testid":"presence-strip","aria-label":"Working right now",className:y("flex items-center gap-x-2 overflow-hidden",s),children:[i.map(r=>t.jsx("li",{className:"min-w-0",children:t.jsx(Ss,{row:r,onFollow:n,onViewProfile:o})},r.id)),a>0&&t.jsx("li",{"aria-label":a===1?"1 more agent is working":`${a} more agents are working`,className:"text-muted-foreground shrink-0 text-xs",children:t.jsxs("span",{"aria-hidden":!0,children:["+",a," more"]})})]})}function ks(e){return`replying in ${e}`}const ws="working in a chat";function Rs(e,n){var i;const o=n.rosters[e];if(o!==void 0)return o.members.map(a=>({author:a.author,origin:a.origin}));const s=(i=n.rooms[e])==null?void 0:i.participants;return s==null?[]:s.map(a=>({author:a}))}function Cs(e){const n=new Map;for(const[o,s]of Object.entries(e))s!==null&&n.set(lt(o),{path:o,manifest:s});return n}function te(e){return{...e,line:ct(e.name,e.binding,e.state),detail:dt(e.binding,e.state)}}function Is(e){const n=Cs(e.agents),o=new Set(e.excludeRoomIds??[]),s=[],i=new Set;for(const l of e.claims){const d=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(d===void 0)continue;const c=d.author.agentRef===void 0?void 0:n.get(d.author.agentRef);if(c!==void 0&&i.add(c.path),o.has(l.roomId))continue;const h=e.rooms[l.roomId],g=h===void 0?null:me(h);s.push(te({id:`room:${l.roomId}:${l.authorId}`,name:d.author.displayName,handle:d.author.handle,face:K({record:d.author,override:c===void 0?null:Y(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:ks(g),state:l.state,since:l.since,roomTitle:g,runtime:(c==null?void 0:c.manifest.runtime)??null,profileMemberId:c===void 0?null:e.meshIdByPath[c.path]??null,follow:{kind:"room",roomId:l.roomId}}))}const a=new Set(i),r=[];for(const l of e.sessions){if(a.has(l.cwd))continue;const d=e.agents[l.cwd];if(d==null)continue;a.add(l.cwd);const c=d.displayName??d.name;r.push(te({id:`session:${l.sessionId}`,name:c,handle:null,face:K({record:{id:d.id,kind:"agent",displayName:c},override:Y(d)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:d.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,d)=>l.name.localeCompare(d.name)||l.id.localeCompare(d.id)),[...s,...r]}function As(e,n,o){var a;const s=new Set(ut(Object.keys(n),Object.values(o))),i=[];for(const[r,l]of Object.entries(n))((a=e[r])==null?void 0:a.lifecycle)==="streaming"&&s.has(r)&&i.push({sessionId:r,cwd:l});return i}const se=[],Ps=[],ne="\0",D="";function Ds(){const e=M(m.useCallback(i=>i.statuses,[])),n=M(m.useCallback(i=>i.statusCwds,[])),o=M(m.useCallback(i=>i.sessions,[])),s=m.useMemo(()=>As(e,n,o).map(i=>`${i.sessionId}${ne}${i.cwd}`).sort().join(D),[e,n,o]);return m.useMemo(()=>s.length===0?Ps:s.split(D).map(i=>{const[a,r]=i.split(ne);return{sessionId:a,cwd:r}}),[s])}function Os(e=[]){const n=mt(),o=ht(),s=Ds(),{data:i}=gt(),{data:a}=ft(),r=m.useMemo(()=>[...new Set(o.map(u=>u.roomId))].sort().join(`
|
|
1
|
+
import{lf as be,lg as ye,j as t,hV as $,hW as F,hX as L,hY as B,hZ as q,_ as I,ay as A,O as Se,Q as Ne,C as ke,U as we,lh as z,B as b,li as Re,lj as Ce,cj as W,e as C,G as y,s as H,r as m,J as Ie,lk as Ae,aj as Pe,ak as De,dV as Oe,aY as Me,X as oe,ll as Te,lm as Ee,aQ as $e,dW as ie,iL as Fe,by as G,ar as R,T as Le,ln as Be,i_ as qe,lo as ze,eG as We,eH as He,iY as _e,j3 as Ue,lp as Ve,lq as Ge,eA as ae,eC as Ke,lr as Ye,c$ as re,ad as Qe,eD as Xe,iZ as Je,l as le,ls as de,lt as ce,gX as Ze,lu as _,eB as et,bf as tt,a$ as st,hI as nt,gB as ot,lv as it,as as at,gY as ue,g as rt,gk as me,lw as K,ai as Y,c7 as lt,lx as dt,ly as ct,lz as ut,a1 as mt,lA as ht,cf as gt,bP as ft,jl as pt,aP as xt,i6 as jt,eM as M,k7 as vt,q as Q,eb as bt,g$ as yt,lB as St,n as Nt}from"./index-CjUfPyOM.js";import{I as kt,p as wt}from"./ChannelComposer-CutghXOq.js";import{c as Rt}from"./index-Dj4I8KcL.js";import{a as Ct}from"./RoomSurface-Bq6Slne3.js";import{P as he}from"./PromptSuggestionChips-B9chKG4w.js";import{S as U}from"./scroll-area-BNFXgTKM.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-DurMpvjU.js";import{A as Pt}from"./AttentionSignalRow-BOpClaCD.js";import{u as ge}from"./use-promo-dismissals-B3VuaQCf.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-C8_cGmEW.js";import"./repeat-wB31CP7I.js";import"./use-room-sessions-W62Zl72O.js";import"./WidgetErrorCard-I8WiJv2g.js";import"./index-D0yajRDv.js";import"./card-DI7YtQh3.js";import"./progress-eQl1UvNz.js";import"./markdown-content-ysBIqFAg.js";import"./table-B0LsKsEv.js";import"./package-CD8xq7hk.js";import"./heart-BrjEmIsl.js";import"./git-branch-ClXAt1_G.js";import"./file-text-DTvj1wzM.js";import"./file-bSD5jgk_.js";import"./find-latest-widget-fence-D01ENK2h.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-Er-lzjmK.js";import"./inline-code-DwFNff3_.js";import"./list-runtime-types-B0CSonAi.js";import"./RuntimeConnectFlow-IaRVgmqH.js";import"./useMutationState-rOg4bnKv.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-Daeu1X92.js";import"./rotate-ccw-clock-LSKKAcnR.js";import"./unplug-DLA7Ib_s.js";import"./message-square-off-D9hm8WNH.js";import"./registry-BSucT23N.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-CzhXW5qi.js";import"./index-6yT0Qr0s.js";import"./pane-resize-handle-DOchpdJ6.js";import"./UnreadDivider-l_VZ7ECn.js";import"./use-room-follow-claim-BV-MtDQ5.js";import"./use-connector-management-Bo6wOJQS.js";import"./AgentRequestCard--9GA9ymH.js";import"./access-copy-Cj31J6PU.js";import"./query-error-state-COuKRlU0.js";import"./empty-state-aNwJA6H8.js";import"./use-bindings-Bu4yLLR5.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-CSmznLcG.js";import"./use-update-config-Dfd7KMde.js";import"./use-relay-config-BA6c0FMB.js";function Et({open:e,itemId:n,onClose:o}){const{data:s}=be(),i=ye(),a=(n==null?void 0:n.indexOf("::"))??-1,r=a>=0?n.slice(0,a):void 0,l=a>=0?n.slice(a+2):void 0,d=s==null?void 0:s.find(h=>h.source===r&&h.reason===l),c=()=>{!r||!l||i.mutate({source:r,reason:l},{onSuccess:o})};return t.jsx($,{open:e,onOpenChange:h=>!h&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Messages that never arrived"}),t.jsx(q,{children:r??"Source unknown"})]}),t.jsx(U,{className:"flex-1 px-4",children:d?t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{className:"text-muted-foreground text-sm",children:"These never reached an agent. Clearing them doesn’t send them."}),t.jsxs("p",{className:"text-foreground text-sm",children:[d.count," message",d.count===1?"":"s"," couldn’t be delivered"]}),t.jsx(I,{variant:"secondary",children:It(d.reason)})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[t.jsxs("p",{className:"text-muted-foreground",children:["First happened ",A(d.firstSeen)," ago"]}),t.jsxs("p",{className:"text-muted-foreground",children:["Last happened ",A(d.lastSeen)," ago"]})]}),d.sample!=null&&t.jsxs(Se,{children:[t.jsxs(Ne,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(ke,{className:"size-3 transition-transform group-data-[state=open]:rotate-90"}),"What one of them looked like"]}),t.jsx(we,{children:t.jsx("pre",{className:"bg-muted mt-1 overflow-x-auto rounded-md p-3 font-mono text-xs",children:JSON.stringify(d.sample,null,2)})})]})]}):t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"These are cleared already."})}),t.jsxs(z,{children:[d&&t.jsx(b,{variant:"destructive",onClick:c,disabled:i.isPending,children:i.isPending?"Clearing…":"Clear these"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function $t(e){const n=Math.floor(e/1e3);if(n<60)return`${n}s`;const o=Math.floor(n/60),s=n%60;if(o<60)return`${o}m ${s}s`;const i=Math.floor(o/60),a=o%60;return`${i}h ${a}m`}function Ft(e){switch(e){case"blocked":return{label:"Blocked",badge:"outline",tone:"warning",heading:"What it needed",title:"Run that couldn’t use its tools"};case"failed":return{label:"Didn’t finish",badge:"destructive",tone:"error",heading:"Error",title:"Run that didn’t finish"};case"cancelled":return{label:"Cancelled",badge:"secondary",tone:"neutral",heading:"Stopped",title:"Run that was stopped"};case"skipped":return{label:"Skipped",badge:"secondary",tone:"neutral",heading:"Why",title:"Run that never started"};case"running":return{label:"Running",badge:"secondary",tone:"neutral",heading:"Latest",title:"Run that is still going"};default:return{label:"Completed",badge:"secondary",tone:"neutral",heading:"Note",title:"Run that finished"}}}const Lt={error:{box:"bg-destructive/10 border-destructive/20",heading:"text-destructive",body:"text-destructive"},warning:{box:"bg-status-warning-bg border-status-warning-border",heading:"text-status-warning-fg",body:"text-status-warning-fg"},neutral:{box:"bg-muted border-border",heading:"text-foreground",body:"text-foreground/80"}};function Bt({open:e,itemId:n,onClose:o}){const{data:s,isLoading:i,isError:a}=Re(e?n??null:null),r=Ce(),l=W(),d=()=>{s!=null&&s.sessionId&&l(H({session:s.sessionId}))},c=()=>{s&&r.mutate(s.id)},h=s?Ft(s.status):null,g=h?Lt[h.tone]:null;return t.jsx($,{open:e,onOpenChange:f=>!f&&o(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:(h==null?void 0:h.title)??"Run that needs a look"}),t.jsx(q,{children:n?n.slice(0,8):"Unknown"})]}),t.jsxs(U,{className:"flex-1 px-4",children:[i&&t.jsxs("div",{className:"space-y-4",children:[t.jsx(C,{className:"h-6 w-24"}),t.jsx(C,{className:"h-4 w-48"}),t.jsx(C,{className:"h-20 w-full"})]}),a&&t.jsx("p",{className:"text-destructive py-8 text-center text-sm",children:"Couldn’t load this run."}),!i&&!a&&!s&&t.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:"Already resolved."}),s&&t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex gap-2",children:[t.jsx(I,{variant:h.badge,children:h.label}),t.jsx(I,{variant:"secondary",children:s.trigger==="scheduled"?"Scheduled":"Manual"})]}),t.jsxs("div",{className:"space-y-1 text-sm",children:[s.startedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Started: ",A(s.startedAt)," ago"]}),s.finishedAt&&t.jsxs("p",{className:"text-muted-foreground",children:["Finished: ",A(s.finishedAt)," ago"]}),s.durationMs!=null&&t.jsxs("p",{className:"text-muted-foreground",children:["Duration: ",$t(s.durationMs)]})]}),s.error&&t.jsxs("div",{className:y("rounded-md border p-3",g.box),children:[t.jsx("p",{className:y("text-sm font-medium",g.heading),children:h.heading}),t.jsx("p",{className:y("mt-1 text-sm",g.body),children:s.error})]}),s.outputSummary&&t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-muted-foreground text-xs font-medium",children:"Output"}),t.jsx("pre",{className:"bg-muted max-h-48 overflow-auto rounded-md p-3 font-mono text-xs",children:s.outputSummary})]})]})]}),t.jsxs(z,{children:[(s==null?void 0:s.sessionId)&&t.jsx(b,{variant:"default",onClick:d,children:"View chat"}),(s==null?void 0:s.status)==="running"&&t.jsx(b,{variant:"destructive",onClick:c,disabled:r.isPending,children:r.isPending?"Cancelling…":"Cancel run"}),t.jsx(b,{variant:"outline",onClick:o,children:"Close"})]})]})})}function qt({agent:e}){const n=Ae(e,e.projectPath??"");return t.jsxs("div",{className:"flex items-center gap-3 py-2",children:[t.jsx(Pe,{color:n.color,emoji:n.emoji,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground truncate text-sm font-medium",children:De(e)}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(I,{variant:"destructive",children:"Unreachable"}),e.runtime&&t.jsx(I,{variant:"secondary",children:Oe(e.runtime).label})]})]}),e.lastSeenAt&&t.jsxs("span",{className:"text-muted-foreground shrink-0 text-xs",children:[A(e.lastSeenAt)," ago"]})]})}function zt({open:e,onClose:n}){const{data:o}=At(void 0,e),s=m.useMemo(()=>o?o.namespaces.flatMap(i=>i.agents).filter(i=>i.healthStatus==="unreachable"):[],[o]);return t.jsx($,{open:e,onOpenChange:i=>!i&&n(),children:t.jsxs(F,{side:"right",children:[t.jsxs(L,{children:[t.jsx(B,{children:"Agents that aren’t answering"}),t.jsxs(q,{children:["DorkOS can’t reach ",s.length," agent",s.length===1?"":"s"," right now"]})]}),t.jsx(U,{className:"flex-1 px-4",children:s.length>0?t.jsx("div",{className:"divide-y",children:s.map(i=>t.jsx(qt,{agent:i},i.id))}):t.jsxs("div",{className:"flex flex-col items-center gap-2 py-8",children:[t.jsx(Ie,{className:"text-status-success size-6"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"All agents are online"})]})}),t.jsx(z,{children:t.jsx(b,{variant:"outline",onClick:n,children:"Close"})})]})})}function Wt(e){return e.content.suggestion!==void 0}function Ht(){const e=Dt(),{dismissedIds:n}=ge(),o=Me(s=>s.promoEnabled);return m.useMemo(()=>{if(!o)return null;const[s]=Ot(Mt.filter(Wt),e,n,1);return s??null},[e,n,o])}function _t({suggestion:e,promoTitle:n,onAccept:o,onDismiss:s}){return t.jsxs("p",{"data-slot":"quiet-suggestion",className:"text-muted-foreground/70 text-2xs mt-1",children:[e.question," ",t.jsx("button",{type:"button",onClick:o,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm font-medium underline-offset-4 transition-colors hover:underline focus-visible:underline",children:e.action}),t.jsx("button",{type:"button","aria-label":`Dismiss suggestion: ${n}`,onClick:s,className:"text-muted-foreground/60 hover:text-foreground focus-ring -my-1.5 ml-0.5 inline-flex translate-y-[3px] items-center justify-center rounded-sm p-1.5 align-baseline transition-colors",children:t.jsx(oe,{className:"size-3"})})]})}function Ut({promo:e}){const{dismissPromo:n}=ge(),{activate:o,dialog:s}=Tt(e);return t.jsxs(t.Fragment,{children:[t.jsx(_t,{suggestion:e.content.suggestion,promoTitle:e.content.title,onAccept:o,onDismiss:()=>n(e.id)}),s]})}function Vt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Gt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Gt,unread:!0});return m.useMemo(()=>e[0],[e])}function Kt({questions:e,requests:n,schedules:o,approvalsUnavailable:s,attention:i}){const a=[],r=[],l=e+n+o;return l>0?(a.push(`${Ee(e,n,o)} ${l===1?"is":"are"} waiting on you.`),r.push(`${l} waiting`)):s&&(a.push("Couldn’t read approvals."),r.push("Couldn’t read approvals")),i===1?(a.push("1 thing needs attention."),r.push("1 needs attention")):i>1&&(a.push(`${i} things need attention.`),r.push(`${i} need attention`)),{spoken:a.join(" "),compact:r.join(" · ")}}function Yt({notification:e,onDismiss:n}){return t.jsxs("div",{"data-slot":"shift-report-card",className:"border-border/60 bg-background/60 relative rounded-lg border p-3 pr-8",children:[t.jsxs("div",{className:"flex items-start gap-2.5",children:[t.jsx($e,{"aria-hidden":!0,className:"text-muted-foreground mt-0.5 size-3.5 shrink-0"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-foreground text-xs font-medium",children:e.title}),e.body!==void 0&&t.jsx("p",{className:"text-muted-foreground mt-1 text-xs leading-relaxed",children:e.body})]})]}),t.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground focus-ring absolute top-2 right-2 rounded-md p-1 transition-colors",children:t.jsx(oe,{className:"size-3.5"})})]})}const Qt="max-h-[40svh] sm:max-h-[50svh]",Xt={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0}};function T({title:e,tone:n="waiting",children:o}){const s=m.useId();return t.jsxs("section",{"aria-labelledby":s,className:"min-w-0",children:[t.jsx("h2",{id:s,className:y("mb-2 text-xs font-medium",n==="waiting"?"text-status-warning-fg":"text-muted-foreground"),children:e}),o]})}function X({edge:e}){return t.jsx("div",{"aria-hidden":"true","data-slot":`pinned-triage-fade-${e}`,className:y("from-background/95 via-background/65 pointer-events-none absolute inset-x-0 h-6 to-transparent",e==="bottom"?"bottom-0 bg-gradient-to-t":"top-0 bg-gradient-to-b")})}const J={animate:{transition:{staggerChildren:.04}}};function Jt(e){return e?0:.18}function Zt({approvals:e,asks:n,settlingAsks:o,askAgentNames:s,onOpenSession:i,approvalsUnavailable:a,onRetryApprovals:r,scheduleApprovals:l,errorSignals:d,activityItems:c,onOpenActivity:h,shiftReport:g,presence:f,condensed:j,onExpand:x,className:u}){const p=ie(),v=m.useRef(null),N=Fe(v),k=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=k||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Kt({questions:n.length,requests:e.length,schedules:l.length,approvalsUnavailable:a,attention:d.length+c.length}),ve=j===!0&&O.compact!=="";return t.jsxs(t.Fragment,{children:[t.jsx("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"sr-only",children:O.spoken}),t.jsxs(G,{initial:!1,children:[ve&&t.jsx(R.div,{"data-slot":"pinned-triage-summary",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:Jt(p===!0)},className:y("bg-background/95 border-border/60 shrink-0 border-b backdrop-blur-sm",u),children:t.jsxs("button",{type:"button",onClick:x,className:"text-muted-foreground hover:text-foreground flex min-h-11 w-full min-w-0 items-center gap-2 px-[var(--msg-padding-x)] text-left text-xs",children:[t.jsx("span",{className:"bg-status-warning-dot size-1.5 shrink-0 rounded-full","aria-hidden":!0}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:O.compact}),t.jsx(Le,{className:"size-3.5 shrink-0","aria-hidden":!0})]})},"triage-summary"),je&&j!==!0&&t.jsxs(R.div,{"data-slot":"pinned-triage-header",...Xt,transition:{duration:p?0:.25,ease:[0,0,.2,1]},className:y("bg-background/95 border-border/60 relative shrink-0 overflow-hidden border-b backdrop-blur-sm",u),children:[t.jsxs("div",{ref:v,onScroll:N.onScroll,"data-slot":"pinned-triage-scroller",className:y("flex w-full min-w-0 scroll-py-6 flex-col gap-3 overflow-y-auto overscroll-contain px-[var(--msg-padding-x)] py-3",Qt),children:[k&&t.jsxs(T,{title:"Waiting on you",children:[(n.length>0||o.length>0)&&t.jsx(Be,{asks:n,agentNames:s,onOpenSession:i,emptyState:t.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing needs you"})}),e.length>0&&t.jsx(qe,{approvals:e}),e.length===0&&a&&t.jsx(ze,{onRetry:r}),t.jsx(G,{initial:!1,children:l.map(S=>t.jsx(We,{task:S,className:"mt-2"},S.id))})]}),P&&t.jsx(T,{title:"Needs attention",children:t.jsx("div",{className:"border-status-warning-border/40 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:d.map(S=>t.jsx(Pt,{signal:S},S.id))})})}),g&&t.jsx(Yt,{notification:g.notification,onDismiss:g.onDismiss}),w&&t.jsx(T,{title:"Recent activity",tone:"neutral",children:t.jsx("div",{className:"border-border/60 bg-background/60 rounded-lg border p-2",children:t.jsx(R.div,{variants:J,initial:"initial",animate:"animate",children:c.map(S=>t.jsx(He,{notification:S,onOpen:()=>h(S)},S.id))})})}),f==null?void 0:f.node]}),N.start&&t.jsx(X,{edge:"top"}),N.end&&t.jsx(X,{edge:"bottom"})]},"triage-header")]})]})}function es({presence:e,composerFocused:n,onExpand:o,className:s}){const{approvals:i,isError:a,retry:r}=_e(),{interactions:l}=Ue(),d=Ve(),c=Ge(l),{schedules:h,errors:g,activity:f}=ae(),j=Ke(),x=fe(),{mutate:u}=Ye(),p=re({strict:!1}),v=W(),N=Qe(),k=Xe(h),P=Je(i),w=m.useCallback(()=>{v({...le.home(),search:{}})},[v]);return t.jsxs(t.Fragment,{children:[t.jsx(Zt,{approvals:P,asks:l,settlingAsks:d,askAgentNames:c,onOpenSession:V=>{v(H({session:V}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:k,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:N&&n===!0,onExpand:o,className:s}),t.jsx(Et,{open:p.detail==="dead-letter",itemId:p.itemId,onClose:w}),t.jsx(Bt,{open:p.detail==="failed-run",itemId:p.itemId,onClose:w}),t.jsx(zt,{open:p.detail==="offline-agent",onClose:w})]})}const ts=["What can you help with?","Make my first agent","What’s in this project?","Set up a daily run"];function ss({roomId:e}){const n=m.useCallback(o=>{de.getState().set(e,o),ce.getState().requestFocus(e)},[e]);return t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1",children:t.jsx(he,{suggestions:ts,onChipClick:n,ariaLabel:"Ways to start",size:"comfortable"})})}function ns(e){var a;const{data:n}=Ze(e),o=((a=n==null?void 0:n.members.find(r=>r.author.id===n.viewerAuthorId))==null?void 0:a.lastReadSeq)??null,[s,i]=m.useState({roomId:null,seq:null});return s.roomId===e?s.seq:o===null?null:(i({roomId:e,seq:o}),o)}function os(e,n){if(e===void 0)return null;let o=null,s=1/0;for(const i of e){if(!i.enabled||i.status!=="active")continue;const a=i.nextRun;if(a==null)continue;const r=Date.parse(a);Number.isNaN(r)||r<=n||r>=s||(s=r,o={name:i.displayName??i.name,at:a})}return o}function is(e,n){const o=new Date(e),s=o.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"}),i=as(new Date(n),o);return i===0?`today at ${s}`:i===1?`tomorrow at ${s}`:`on ${o.toLocaleDateString(void 0,{weekday:"long",month:"short",day:"numeric"})} at ${s}`}function as(e,n){const o=s=>new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime();return Math.round((o(n)-o(e))/864e5)}function rs(e,n){return e===null?null:`Next up: ${e.name} runs ${is(e.at,n)}.`}function ls({forwardLook:e,suggestion:n}){return t.jsx(R.div,{"data-slot":"home-quiet-state",initial:{opacity:0},animate:{opacity:1},transition:{duration:.2},className:"border-border/60 shrink-0 border-b",children:t.jsxs("div",{className:"w-full px-[var(--msg-padding-x)] py-2",children:[t.jsxs("p",{className:"text-muted-foreground text-xs",children:[t.jsx("span",{className:"text-foreground/80 font-medium",children:"All quiet."}),e!==null&&t.jsxs(t.Fragment,{children:[" ",e]})]}),n]})})}function ds({roomId:e,presenceOccupied:n}){const o=_(e),s=ns(e),{items:i,isLoading:a,isAnyError:r}=et(),{total:l}=ae(),d=fe(),c=o!==void 0&&o.length>0,h=s!==null&&o!==void 0&&o.every(k=>k.seq<=s),g=i.length>0||a||r||l>0||d!==void 0||n,f=c&&h&&!g,[j,x]=m.useState("waiting");f&&j==="waiting"?x("shown"):!f&&j==="shown"&&x("retired");const u=f&&j!=="retired",p=tt(),{data:v}=st(p&&u),N=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,N),N),suggestion:t.jsx(Vt,{})}):null}const pe="dorkos:home-opened-on";function Z(){const e=new Date,n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${e.getFullYear()}-${n}-${o}`}function cs(){try{return localStorage.getItem(pe)}catch{return null}}function us(e){try{localStorage.setItem(pe,e)}catch{}}function ms(){const[e]=m.useState(()=>cs()!==Z());return m.useEffect(()=>{e&&us(Z())},[e]),e}function hs({children:e}){const n=ms(),o=ie(),s=n&&o!==!0;return t.jsx(R.div,{className:"h-full",initial:s?{opacity:0}:!1,animate:{opacity:1},transition:{duration:.45,ease:[0,0,.2,1]},children:e})}const ee="@dorkbot",gs="Build me a tracker for my customers",fs="Make a daily plan board",xe="Something else",ps=[gs,fs,xe];function xs({roomId:e,mode:n}){const o=Rt(),s=ot(),i=m.useCallback(a=>{if(a===xe){de.getState().set(e,`${ee} `),ce.getState().requestFocus(e);return}o.mutate({roomId:e,text:`${ee} ${a}`,clientId:it()})},[e,o]);return n==="starters"?t.jsx("div",{className:"w-full px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-chips",children:t.jsx(he,{suggestions:ps,onChipClick:i,ariaLabel:"First jobs for DorkBot",size:"comfortable"})}):t.jsxs("div",{className:"flex w-full flex-wrap gap-2 px-[var(--msg-padding-x)] pb-1","data-testid":"first-run-connect-chips",children:[t.jsx(b,{size:"sm",onClick:()=>s.open("account"),children:"Continue with DorkOS"}),t.jsx(b,{size:"sm",variant:"outline",onClick:()=>s.open("runtimes"),children:"Use my own AI"})]})}function js(e){var r,l;const{data:n}=at(),o=_(e),s=ue(e,null),i=((r=n==null?void 0:n.onboarding)==null?void 0:r.welcomeEntryId)??null;if(e===null||i===null||!o||s.length>0)return null;const a=o.reduce((d,c)=>d===void 0||c.seq>d.seq?c:d,void 0);return(a==null?void 0:a.id)!==i?null:((l=n==null?void 0:n.onboarding)==null?void 0:l.firstRunPath)==="none"?"connect":"starters"}const vs=5,bs="relative after:absolute after:-inset-x-1 after:-inset-y-2.5 md:after:hidden";function ys(e,n){return e===null||n===null?null:Math.max(0,n-Date.parse(e))}function Ss({row:e,onFollow:n,onViewProfile:o}){const[s,i]=m.useState(null),a=ys(e.since,s),r=e.profileMemberId,l=o===void 0||r===null?void 0:()=>o(r);return t.jsx(kt,{onViewProfile:l,identity:{kind:e.face.kind,displayName:e.name,...e.handle!==null?{handle:e.handle}:{},color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},...e.face.kind==="agent"?{agent:{...e.runtime!==null?{runtime:e.runtime}:{},...a!==null?{working:{...e.roomTitle!==null?{room:e.roomTitle}:{},forMs:a}}:{}}}:{}},children:t.jsxs("button",{type:"button","aria-label":e.detail===null?`Watch ${e.name}`:`Watch ${e.name}: ${e.detail}`,onClick:()=>n(e.follow),onPointerEnter:()=>i(Date.now()),onPointerLeave:()=>i(null),onFocus:()=>i(Date.now()),onBlur:()=>i(null),className:y("focus-ring group/identity hover:bg-muted/60 flex min-w-0 items-center gap-1.5 rounded-full py-1 pr-2.5 pl-1 text-xs transition-colors",bs),children:[t.jsx(rt,{size:"xs",kind:e.face.kind,color:e.face.color,...e.face.emoji!==void 0?{emoji:e.face.emoji}:{},...e.face.imageUrl!==void 0?{imageUrl:e.face.imageUrl}:{},...e.face.origin!==void 0?{origin:e.face.origin}:{},fallback:e.face.fallback,status:"working"}),t.jsx("span",{className:"text-foreground shrink-0 font-medium",children:e.name}),e.detail!==null&&t.jsxs("span",{"aria-hidden":!0,className:"text-muted-foreground truncate",children:["· ",e.detail]})]})})}function Ns({rows:e,onFollow:n,onViewProfile:o,className:s}){if(e.length===0)return null;const i=e.slice(0,vs),a=e.length-i.length;return t.jsxs("ul",{"data-testid":"presence-strip","aria-label":"Working right now",className:y("flex items-center gap-x-2 overflow-hidden",s),children:[i.map(r=>t.jsx("li",{className:"min-w-0",children:t.jsx(Ss,{row:r,onFollow:n,onViewProfile:o})},r.id)),a>0&&t.jsx("li",{"aria-label":a===1?"1 more agent is working":`${a} more agents are working`,className:"text-muted-foreground shrink-0 text-xs",children:t.jsxs("span",{"aria-hidden":!0,children:["+",a," more"]})})]})}function ks(e){return`replying in ${e}`}const ws="working in a chat";function Rs(e,n){var i;const o=n.rosters[e];if(o!==void 0)return o.members.map(a=>({author:a.author,origin:a.origin}));const s=(i=n.rooms[e])==null?void 0:i.participants;return s==null?[]:s.map(a=>({author:a}))}function Cs(e){const n=new Map;for(const[o,s]of Object.entries(e))s!==null&&n.set(lt(o),{path:o,manifest:s});return n}function te(e){return{...e,line:ct(e.name,e.binding,e.state),detail:dt(e.binding,e.state)}}function Is(e){const n=Cs(e.agents),o=new Set(e.excludeRoomIds??[]),s=[],i=new Set;for(const l of e.claims){const d=Rs(l.roomId,e).find(f=>f.author.id===l.authorId);if(d===void 0)continue;const c=d.author.agentRef===void 0?void 0:n.get(d.author.agentRef);if(c!==void 0&&i.add(c.path),o.has(l.roomId))continue;const h=e.rooms[l.roomId],g=h===void 0?null:me(h);s.push(te({id:`room:${l.roomId}:${l.authorId}`,name:d.author.displayName,handle:d.author.handle,face:K({record:d.author,override:c===void 0?null:Y(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:ks(g),state:l.state,since:l.since,roomTitle:g,runtime:(c==null?void 0:c.manifest.runtime)??null,profileMemberId:c===void 0?null:e.meshIdByPath[c.path]??null,follow:{kind:"room",roomId:l.roomId}}))}const a=new Set(i),r=[];for(const l of e.sessions){if(a.has(l.cwd))continue;const d=e.agents[l.cwd];if(d==null)continue;a.add(l.cwd);const c=d.displayName??d.name;r.push(te({id:`session:${l.sessionId}`,name:c,handle:null,face:K({record:{id:d.id,kind:"agent",displayName:c},override:Y(d)}),binding:ws,state:"working",since:null,roomTitle:null,runtime:d.runtime,profileMemberId:e.meshIdByPath[l.cwd]??null,follow:{kind:"session",sessionId:l.sessionId,cwd:l.cwd}}))}return r.sort((l,d)=>l.name.localeCompare(d.name)||l.id.localeCompare(d.id)),[...s,...r]}function As(e,n,o){var a;const s=new Set(ut(Object.keys(n),Object.values(o))),i=[];for(const[r,l]of Object.entries(n))((a=e[r])==null?void 0:a.lifecycle)==="streaming"&&s.has(r)&&i.push({sessionId:r,cwd:l});return i}const se=[],Ps=[],ne="\0",D="";function Ds(){const e=M(m.useCallback(i=>i.statuses,[])),n=M(m.useCallback(i=>i.statusCwds,[])),o=M(m.useCallback(i=>i.sessions,[])),s=m.useMemo(()=>As(e,n,o).map(i=>`${i.sessionId}${ne}${i.cwd}`).sort().join(D),[e,n,o]);return m.useMemo(()=>s.length===0?Ps:s.split(D).map(i=>{const[a,r]=i.split(ne);return{sessionId:a,cwd:r}}),[s])}function Os(e=[]){const n=mt(),o=ht(),s=Ds(),{data:i}=gt(),{data:a}=ft(),r=m.useMemo(()=>[...new Set(o.map(u=>u.roomId))].sort().join(`
|
|
2
2
|
`),[o]),l=m.useMemo(()=>r.length===0?[]:r.split(`
|
|
3
3
|
`),[r]),d=pt({queries:l.map(u=>({queryKey:xt.detail(u),queryFn:()=>n.getRoom(u)})),combine:u=>{const p={};for(const v of u)v.data!==void 0&&(p[v.data.id]=v.data);return p}}),c=m.useMemo(()=>{const u={};for(const p of i??[])u[p.id]=p;return u},[i]),h=m.useMemo(()=>((a==null?void 0:a.agents)??[]).map(u=>u.projectPath),[a]),{data:g}=jt(h),f=m.useMemo(()=>g??{},[g]),j=m.useMemo(()=>{const u={};for(const p of(a==null?void 0:a.agents)??[])u[p.projectPath]=p.id;return u},[a]),x=e.join(D);return m.useMemo(()=>{if(o.length===0&&s.length===0)return se;const u=Is({claims:o,rosters:d,rooms:c,sessions:s,agents:f,meshIdByPath:j,excludeRoomIds:x.length===0?[]:x.split(D)});return u.length===0?se:u},[o,d,c,s,f,j,x])}function Ms(e=[]){const n=Os(e),o=W(),{open:s}=vt(),i=m.useCallback(r=>{if(r.kind==="room"){Q.getState().recordOpened("room",r.roomId),o({...le.channels(),search:{id:r.roomId}});return}r.cwd&&Q.getState().recordOpened("agent",r.cwd),o(H({session:r.sessionId,dir:r.cwd}))},[o]),a=m.useMemo(()=>t.jsx(Ns,{rows:n,onFollow:i,onViewProfile:s}),[n,i,s]);return{occupied:n.length>0,node:a}}function E({title:e,children:n,action:o}){return t.jsxs("div",{className:"text-muted-foreground flex h-full flex-col items-center justify-center gap-2 p-10 text-center text-sm",children:[t.jsx(Nt,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),t.jsx("p",{className:"text-foreground font-medium",children:e}),t.jsx("p",{className:"max-w-sm",children:n}),o]})}function Ts(){return t.jsxs(t.Fragment,{children:[t.jsx(bt,{children:"Home"}),t.jsx(Es,{})]})}function Es(){var f,j,x;const e=yt(),[n,o]=m.useState(!1),s=m.useCallback(()=>{const u=document.activeElement;wt(u)&&u.blur()},[]),{thread:i,entry:a}=re({strict:!1}),r=St(),l=Ms(e.room===null?[]:[e.room.id]),d=_(((f=e.room)==null?void 0:f.id)??null),c=ue(((j=e.room)==null?void 0:j.id)??null,null),h=d!==void 0&&d.length===0&&c.length===0,g=js(((x=e.room)==null?void 0:x.id)??null);if(e.status==="loading")return t.jsxs("div",{className:"flex h-full flex-col","aria-busy":!0,children:[t.jsxs("div",{className:"flex items-center gap-3 border-b px-4 py-3",children:[t.jsx(C,{className:"size-7 rounded-full"}),t.jsx(C,{className:"h-4 w-40"})]}),t.jsx("div",{className:"flex-1"})]});if(e.status==="error")return t.jsx(E,{title:"Couldn’t load your team room",action:t.jsx(b,{variant:"outline",size:"sm",className:"mt-2",onClick:e.retry,children:"Try again"}),children:"Its messages are safe."});if(e.status==="missing")return t.jsx(E,{title:"Your team room isn’t open yet",children:"DorkOS opens it at startup. Still missing? Restart DorkOS."});if(e.status==="archived"){const u=e.room;return t.jsx(E,{title:`${me(u)} is archived`,action:t.jsx(b,{variant:"outline",size:"sm",className:"mt-2",disabled:r.isPending,onClick:()=>r.mutate({roomId:u.id}),children:r.isPending?"Bringing it back…":"Bring it back"}),children:"Its messages are safe."})}return t.jsx(hs,{children:t.jsx(Ct,{roomId:e.room.id,threadId:i,entrySeq:a,threadRoute:"/",offerJumpBackIn:!0,onComposerFocusChange:o,aboveTimeline:t.jsxs(t.Fragment,{children:[t.jsx(es,{presence:l,composerFocused:n,onExpand:s}),t.jsx(ds,{roomId:e.room.id,presenceOccupied:l.occupied})]}),aboveComposer:g?t.jsx(xs,{roomId:e.room.id,mode:g}):h?t.jsx(ss,{roomId:e.room.id}):void 0})})}const $n=Ts;export{$n as component};
|
package/dist/client/assets/{_shell._home.tasks-C1zBEy4f.js → _shell._home.tasks-BDR9JTj3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e5 as k,r as i,e6 as w,e7 as C,e8 as E,j as e,e as R,e9 as o,ea as D,ar as x,B as M,cR as B,eb as _,bf as L,a$ as Q,cQ as z,b2 as G}from"./index-
|
|
1
|
+
import{e5 as k,r as i,e6 as w,e7 as C,e8 as E,j as e,e as R,e9 as o,ea as D,ar as x,B as M,cR as B,eb as _,bf as L,a$ as Q,cQ as z,b2 as G}from"./index-CjUfPyOM.js";import{Q as H}from"./query-error-state-COuKRlU0.js";import{P as F}from"./page-container-B9sDc2wq.js";import{F as K,T as U,C as V}from"./TasksEmptyState-CagC0LAa.js";import{i as W}from"./registry-BSucT23N.js";import{u as $,S as X}from"./search-x-Cjf0n9z7.js";import{S as q}from"./scroll-area-BNFXgTKM.js";import"./empty-state-aNwJA6H8.js";import"./inline-code-DwFNff3_.js";import"./form-C_yPntkz.js";import"./command-DpK0GpDM.js";import"./AgentPicker-DoGucmqI.js";import"./AgentOptionRow-D-QjHi5k.js";import"./execution-config-D7JzMYC2.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-B0CSonAi.js";import"./format-cron-DUPWkOrW.js";const J=8,Y={visible:{transition:{staggerChildren:.04}},hidden:{}},Z={hidden:{opacity:0,y:8},visible:{opacity:1,y:0}};function ee({tasks:l,isLoading:c,agentMap:u,onEditTask:j,agentId:m}){const s=$(k,{debounce:{search:200}}),[r]=i.useState(0),[f,d]=i.useState(null),n=i.useMemo(()=>m?l.filter(t=>t.agentId===m):l,[l,m]),p=i.useMemo(()=>[...new Set(n.map(t=>t.agentId).filter(t=>!!t))],[n]),h=i.useMemo(()=>w(n,k,s.values,E,{field:s.sortField||C,direction:s.sortDirection}),[n,s.values,s.sortField,s.sortDirection]);return c?e.jsx("div",{className:"space-y-3 py-4",children:Array.from({length:3}).map((t,g)=>e.jsx(R,{className:"h-14 w-full rounded-xl"},g))}):e.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[e.jsxs(o,{state:s,className:"px-0",children:[e.jsx(o.Search,{placeholder:"Filter tasks…"}),e.jsx(o.Primary,{name:"status"}),e.jsx(o.AddFilter,{dynamicOptions:{agent:p}}),e.jsx(o.Sort,{options:E,defaultField:C}),e.jsx(o.ResultCount,{count:h.length,total:n.length,noun:"task"}),e.jsx(o.ActiveFilters,{})]}),e.jsx(q,{className:"min-h-0 flex-1","data-testid":D.tasksList,children:e.jsx("div",{className:"space-y-2 pb-4",children:h.length===0&&n.length>0?e.jsxs(x.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"flex flex-col items-center justify-center gap-3 py-12 text-center",children:[e.jsx(X,{className:"text-muted-foreground/50 size-10"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:s.describeActive()?`No tasks match ${s.describeActive()}`:"No tasks match your filters"}),e.jsx(M,{variant:"outline",size:"sm",onClick:s.clearAll,children:"Clear filters"})]}):e.jsx(x.div,{initial:"hidden",animate:"visible",variants:Y,className:"space-y-2",children:h.map((t,g)=>e.jsx(x.div,{variants:g<J?Z:void 0,transition:{duration:.15},children:e.jsx(B,{task:t,agent:(t.agentId?u.get(t.agentId):void 0)??null,expanded:f===t.id,onToggleExpand:()=>d(f===t.id?null:t.id),onEdit:()=>j(t)})},t.id))},r)})})]})}function te(){return e.jsxs(e.Fragment,{children:[e.jsx(_,{children:"Schedules"}),e.jsx(se,{})]})}function se(){const l=L(),{data:c=[],isLoading:u,isError:j,refetch:m}=Q(l),[s,r]=i.useState(!1),[f,d]=i.useState(),[n,p]=i.useState(null),h=c.some(a=>a.agentId),{data:t}=z(void 0,h||!u),g=i.useMemo(()=>{const a=new Map;for(const S of(t==null?void 0:t.agents)??[])a.set(S.id,S);return a},[t]),{externalTrigger:T,clear:N}=G(),[v,y]=i.useState(!1);T&&!v&&!s?(y(!0),d(void 0),r(!0),N()):!T&&v&&y(!1);const A=a=>{p(a),d(void 0),r(!0)},b=()=>{p(null),d(void 0),r(!0)},O=a=>{d(a),r(!0)},P=a=>{r(a),a||p(null)};if(!l)return e.jsx(K,{icon:W.tasks,name:"Scheduling",description:"Agents run tasks on a schedule, even while you’re away.",command:"dorkos --tasks"});if(j)return e.jsx(H,{className:"h-full",title:"Couldn’t load your scheduled tasks",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void m()});const I=c.length>0;return e.jsxs(e.Fragment,{children:[!I&&!u?e.jsx(x.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(F,{width:"full",children:e.jsx(U,{onCreateWithPreset:A,onCreateBlank:b})})}):e.jsx(x.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"h-full min-h-0",children:e.jsx(F,{width:"full",scroll:!1,children:e.jsx(ee,{tasks:c,isLoading:u,agentMap:g,onEditTask:O})})}),e.jsx(V,{open:s,onOpenChange:P,editTask:f,initialPreset:n})]})}const ve=te;export{ve as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as j,a2 as g,r as f,j as e,eb as N,am as i,a0 as b,ec as y,_ as u,b8 as w}from"./index-
|
|
1
|
+
import{a1 as j,a2 as g,r as f,j as e,eb as N,am as i,a0 as b,ec as y,_ as u,b8 as w}from"./index-CjUfPyOM.js";import{I as C}from"./inline-code-DwFNff3_.js";import{T,d as v,b as p,e as c,a as S,c as d}from"./table-B0LsKsEv.js";import{P as k}from"./page-container-B9sDc2wq.js";import{G as L}from"./git-branch-ClXAt1_G.js";const F=["workspaces","scan"],P=6e4;function W(){var a,n,l;const s=j(),t=g({queryKey:F,queryFn:()=>s.scanWorktrees(),staleTime:P,refetchOnWindowFocus:!0});return{root:((a=t.data)==null?void 0:a.root)??null,worktrees:((n=t.data)==null?void 0:n.worktrees)??[],warnings:((l=t.data)==null?void 0:l.warnings)??[],isLoading:t.isLoading,isError:t.isError}}const m="—";function A(s){return s.changedFiles===null?m:s.changedFiles===0?"Clean":`${s.changedFiles} changed`}function B(s){const{ahead:t,behind:a,upstreamGone:n}=s;return n?"Branch merged or deleted":t===null||a===null?m:t===0&&a===0?"In sync":[t>0&&`${t} ahead`,a>0&&`${a} behind`].filter(Boolean).join(" · ")}function E({worktree:s}){const t=(s.changedFiles??0)>0;return e.jsxs(p,{children:[e.jsxs(d,{className:"max-w-0",children:[e.jsx("div",{className:"truncate font-medium",children:s.name}),e.jsx("div",{className:"text-muted-foreground truncate text-xs",title:s.path,children:i(s.path)})]}),e.jsx(d,{className:"max-w-0",children:s.readable?s.branch?e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(L,{className:"text-muted-foreground size-3.5 shrink-0"}),e.jsx("span",{className:"truncate text-xs",children:s.branch})]}):e.jsx("span",{className:"text-muted-foreground text-xs",children:"No branch"}):e.jsx(u,{variant:"outline",title:"DorkOS couldn’t read this folder with git.",children:"Can’t read"})}),e.jsx(d,{className:t?"text-status-warning-fg":"text-muted-foreground",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:A(s)})}),e.jsx(d,{className:"text-muted-foreground hidden md:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:B(s)})}),e.jsx(d,{className:"text-muted-foreground hidden sm:table-cell",children:e.jsx("span",{className:"text-xs whitespace-nowrap",children:s.lastCommitAt?w(s.lastCommitAt):m})})]})}function G({project:s,worktrees:t}){return e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-3 flex items-center gap-2 text-sm font-semibold",children:[s,e.jsx(u,{variant:"secondary",children:t.length})]}),e.jsx("div",{className:"bg-card rounded-lg border",children:e.jsxs(T,{children:[e.jsx(v,{children:e.jsxs(p,{children:[e.jsx(c,{children:"Folder"}),e.jsx(c,{children:"Branch"}),e.jsx(c,{children:"Changes"}),e.jsx(c,{className:"hidden md:table-cell",children:"Compared to remote"}),e.jsx(c,{className:"hidden sm:table-cell",children:"Last commit"})]})}),e.jsx(S,{children:t.map(a=>e.jsx(E,{worktree:a},a.path))})]})})]})}function H(){const{root:s,worktrees:t,warnings:a,isLoading:n,isError:l}=W(),x=f.useMemo(()=>{const r=new Map;for(const o of t){const h=r.get(o.project)??[];h.push(o),r.set(o.project,h)}return[...r.entries()]},[t]);return e.jsxs(k,{width:"wide",children:[e.jsx(N,{children:"Workspaces"}),e.jsx("p",{className:"text-muted-foreground mb-6 text-sm",children:"Copies of your code, per agent."}),a.length>0&&e.jsxs("div",{className:"mb-6 rounded-lg border border-amber-600/40 bg-amber-500/10 p-4",children:[e.jsx("p",{className:"text-sm font-medium",children:"Some folders couldn’t be read"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"This list may be missing what’s inside them."}),e.jsx("ul",{className:"text-muted-foreground mt-2 space-y-0.5 text-xs",children:a.map(r=>e.jsxs("li",{className:"truncate",title:r.path,children:[i(r.path)," (",r.reason,")"]},r.path))})]}),n?e.jsx("p",{className:"text-muted-foreground text-sm",children:"Looking for your worktrees…"}):l?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(b,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"Couldn’t check your worktrees"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"The scan didn’t finish. DorkOS tries again on its own."})]}):x.length===0?e.jsxs("div",{className:"bg-card rounded-xl border p-10 text-center",children:[e.jsx(y,{className:"text-muted-foreground/60 mx-auto size-8"}),e.jsx("p",{className:"mt-3 font-medium",children:"No worktrees yet"}),e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:"A worktree is a copy of your project, so agents’ edits never collide."}),s&&e.jsxs("p",{className:"text-muted-foreground mt-3 truncate text-xs",title:s,"data-slot":"workspaces-root-path",children:["Looking in ",e.jsx(C,{children:i(s)})]})]}):e.jsx("div",{className:"flex flex-col gap-8",children:x.map(([r,o])=>e.jsx(G,{project:r,worktrees:o},r))})]})}const K=H;export{K as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{W as Mt,r as f,j as t,gU as Ot,a1 as V,ks as Xe,a2 as Ze,kt as z,a3 as le,a4 as we,ku as $t,kv as ue,kw as X,cf as Ut,kx as It,c6 as Lt,g$ as Ft,cj as Re,l as xe,ky as Kt,kz as _t,kA as Pt,kB as je,kC as Ae,B as S,kD as qt,cQ as zt,kE as et,eu as ae,en as tt,eo as st,ep as nt,eq as at,er as Te,I as Me,fX as rt,hs as Yt,fY as it,fZ as ot,f_ as lt,f$ as ct,g0 as dt,g1 as ut,g2 as Ht,$ as Qt,kF as Bt,kG as Jt,kH as Wt,kI as ge,cT as Oe,cU as $e,cW as Ue,cX as Ie,cY as Le,dU as Fe,dB as Ke,a7 as mt,kJ as Gt,kK as Vt,hT as Xt,kL as Zt,kM as _e,kN as es,kO as ts,kP as ft,kQ as ss,kR as pt,kS as ht,kT as ns,eb as xt,kU as as,kV as rs,kW as is,ji as os,a0 as ls,ey as cs,fe as ds,kX as us,c$ as gt,kY as ms,kZ as fs,ad as ps,n as Qe}from"./index-
|
|
1
|
+
import{W as Mt,r as f,j as t,gU as Ot,a1 as V,ks as Xe,a2 as Ze,kt as z,a3 as le,a4 as we,ku as $t,kv as ue,kw as X,cf as Ut,kx as It,c6 as Lt,g$ as Ft,cj as Re,l as xe,ky as Kt,kz as _t,kA as Pt,kB as je,kC as Ae,B as S,kD as qt,cQ as zt,kE as et,eu as ae,en as tt,eo as st,ep as nt,eq as at,er as Te,I as Me,fX as rt,hs as Yt,fY as it,fZ as ot,f_ as lt,f$ as ct,g0 as dt,g1 as ut,g2 as Ht,$ as Qt,kF as Bt,kG as Jt,kH as Wt,kI as ge,cT as Oe,cU as $e,cW as Ue,cX as Ie,cY as Le,dU as Fe,dB as Ke,a7 as mt,kJ as Gt,kK as Vt,hT as Xt,kL as Zt,kM as _e,kN as es,kO as ts,kP as ft,kQ as ss,kR as pt,kS as ht,kT as ns,eb as xt,kU as as,kV as rs,kW as is,ji as os,a0 as ls,ey as cs,fe as ds,kX as us,c$ as gt,kY as ms,kZ as fs,ad as ps,n as Qe}from"./index-CjUfPyOM.js";import{T as hs,R as xs,a as gs}from"./RoomSurface-Bq6Slne3.js";import{b as pe,C as Ne}from"./index-Dj4I8KcL.js";import{M as ys}from"./markdown-content-ysBIqFAg.js";import{o as vs,a as js,c as Ns}from"./owner-notice-Crxco7HN.js";import"./ChannelComposer-CutghXOq.js";import"./pane-resize-handle-DOchpdJ6.js";import"./UnreadDivider-l_VZ7ECn.js";import"./use-room-follow-claim-BV-MtDQ5.js";import"./use-connector-management-Bo6wOJQS.js";import"./AgentRequestCard--9GA9ymH.js";import"./access-copy-Cj31J6PU.js";import"./query-error-state-COuKRlU0.js";import"./empty-state-aNwJA6H8.js";import"./use-bindings-Bu4yLLR5.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-CSmznLcG.js";import"./use-room-sessions-W62Zl72O.js";import"./file-bSD5jgk_.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-D01ENK2h.js";import"./WidgetErrorCard-I8WiJv2g.js";import"./index-D0yajRDv.js";import"./card-DI7YtQh3.js";import"./progress-eQl1UvNz.js";import"./table-B0LsKsEv.js";import"./package-CD8xq7hk.js";import"./heart-BrjEmIsl.js";import"./git-branch-ClXAt1_G.js";import"./file-text-DTvj1wzM.js";import"./paperclip-CzhXW5qi.js";import"./index-6yT0Qr0s.js";import"./RuntimeSetupDialog-Er-lzjmK.js";import"./inline-code-DwFNff3_.js";import"./list-runtime-types-B0CSonAi.js";import"./RuntimeConnectFlow-IaRVgmqH.js";import"./useMutationState-rOg4bnKv.js";import"./runtime-connect-Dn0T5YWv.js";import"./repeat-wB31CP7I.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-Daeu1X92.js";import"./rotate-ccw-clock-LSKKAcnR.js";import"./unplug-DLA7Ib_s.js";import"./message-square-off-D9hm8WNH.js";import"./registry-BSucT23N.js";/**
|
|
2
2
|
* @license lucide-react v1.48.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|