dorkos 0.125.4 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +87565 -87134
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-CTG5VvGg.js → AboutPage-2c9n8B32.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-BSuvlEdx.js → ActivityErrorState-muwC_jif.js} +1 -1
- package/dist/client/assets/{ActivityPage-BoiN89nn.js → ActivityPage-2aUz3zv0.js} +1 -1
- package/dist/client/assets/{ActivityRow-Bj0V45d7.js → ActivityRow-nQBqDCak.js} +1 -1
- package/dist/client/assets/{AdapterIcon-LFpWySMg.js → AdapterIcon-ChpyilnO.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-D9V6g6ha.js → AdapterSetupWizard-DRKQp5Gh.js} +2 -2
- package/dist/client/assets/{AgentOptionRow-nGR6PdC6.js → AgentOptionRow-CeVPhvTq.js} +1 -1
- package/dist/client/assets/{AgentPicker-BhsmtQgu.js → AgentPicker-D8YX1P_q.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-DBVuClMO.js → AgentRequestCard-refCLvuV.js} +3 -3
- package/dist/client/assets/{AppearancePage-DoDVD6OA.js → AppearancePage-BDTIp3j0.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-56HrIRuZ.js → ApplyToOverridesDialog-C-XL9N4W.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-x8vRACw-.js → AttentionSignalRow-Dn4rP542.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Bxeb6ihh.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-B0sy0nRk.js} +1 -1
- package/dist/client/assets/{BindingDialog-D6HqDfnK.js → BindingDialog-DMYB-vWm.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-DFsdE-hF.js → BlintzCanvas-D9ZLEDXc.js} +28 -28
- package/dist/client/assets/{CanvasCsvContent-BsRV_kUK.js → CanvasCsvContent-DMqGpNWm.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-BzGYGFSi.js → CanvasFileContent-Bxhc86lv.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-dA90prow.js → CanvasModel3dContent-D783Ql7m.js} +2 -2
- package/dist/client/assets/ChannelComposer-BNlD-d2W.js +44 -0
- package/dist/client/assets/{ChatAppsOff-4xIVwDUJ.js → ChatAppsOff-eRAfqzJR.js} +2 -2
- package/dist/client/assets/{CodeMirrorDiff-Cexj7RYA.js → CodeMirrorDiff-CqEUAG6G.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-D1-q0hSM.js → CodeMirrorEditor-BM1ANude.js} +1 -1
- package/dist/client/assets/{CommitmentList-Bn7E15MO.js → CommitmentList-C3QvbbGF.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-Ch-y0wr0.js → CommitmentsPage-bmqKNd-Z.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-Bbqh7e8R.js → ComputerResourceView-78falOZG.js} +1 -1
- package/dist/client/assets/{ComputerViewer-XqZtg4O4.js → ComputerViewer-DZ2RiDbn.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-D324Hahi.js → ConnectionAccessLists-CXsNyR4U.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-5nIQrmtW.js → ConnectionsPage-bpkRfRRK.js} +2 -2
- package/dist/client/assets/{ConventionPage-PFy9ASYy.js → ConventionPage-rYtICYjS.js} +3 -3
- package/dist/client/assets/{ExtensionPageRoute-ClLEO5sJ.js → ExtensionPageRoute-DXTqUrR4.js} +2 -2
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-D007PSSL.js → FloatingTanStackRouterDevtools-CqogiFob-CCNB3_Gb.js} +1 -1
- package/dist/client/assets/ForwardConsentHost-BfVnJ6oD.js +1 -0
- package/dist/client/assets/HandlePage-BH_G4sMV.js +1 -0
- package/dist/client/assets/{HeartbeatPage-IqTdsHR6.js → HeartbeatPage-DdAfcR81.js} +1 -1
- package/dist/client/assets/{KeyEntry-ZYnZcVmM.js → KeyEntry-CR7GBqXf.js} +1 -1
- package/dist/client/assets/{LexicalField-PdcZjVov.js → LexicalField-RAoub3wq.js} +2 -2
- package/dist/client/assets/{ManagesPage-doVOC8Dk.js → ManagesPage-CEhYj9ov.js} +1 -1
- package/dist/client/assets/{Marketplace-B9X8IIWI.js → Marketplace-DtxHDbF4.js} +2 -2
- package/dist/client/assets/{MarketplaceSourcesView-BZCnUvqP.js → MarketplaceSourcesView-CSFvFtV_.js} +1 -1
- package/dist/client/assets/{McpAppFrame-BXdeDoQB.js → McpAppFrame-1mPdRK9p.js} +2 -2
- package/dist/client/assets/{McpSigninBody-CI-gwQuU.js → McpSigninBody--HfjMnE1.js} +1 -1
- package/dist/client/assets/{Model3dViewer-ws_p2e-Q.js → Model3dViewer-BT2SY67i.js} +1 -1
- package/dist/client/assets/NamePage-CaJsVRhh.js +1 -0
- package/dist/client/assets/NewDirectMessageMenu-QUtJTzKI.js +1 -0
- package/dist/client/assets/{NotificationsPage-D_qHMJYR.js → NotificationsPage-D3fleW0i.js} +1 -1
- package/dist/client/assets/OpenMeshSwitch-8WEn0WrA.js +5 -0
- package/dist/client/assets/{OperatorIdentityForm-DBbsUGPX.js → OperatorIdentityForm-BRKAQS0D.js} +1 -1
- package/dist/client/assets/{PermissionHistory-DNBswqms.js → PermissionHistory-5stLHBu8.js} +1 -1
- package/dist/client/assets/{PermissionsPage-D6cAIUTe.js → PermissionsPage-C2pB1TCJ.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-d_PR1nuF.js → PersonalityPopover-DIbsJ6HP.js} +1 -1
- package/dist/client/assets/PhotoPage-33Xh8sq1.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-p-KIYJVf.js → PreviewRefusedNotice-CjT7jQ45.js} +1 -1
- package/dist/client/assets/{ProfileFields-D_e9XQav.js → ProfileFields-gZNaFBow.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-DxSkglaS.js → ProfilePanelContainer-DYf7L8xJ.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-kNJMfzUF.js → ProfileRolePicker-DclYXFSP.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-Dpie7Ut6.js → PromptSuggestionChips-k9HolS90.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-kZWnpINs.js → ReportsToPopover-Bh5KrFbJ.js} +1 -1
- package/dist/client/assets/RoomSurface-32U7Wl6Z.js +1 -0
- package/dist/client/assets/{RoomsPage-B88d-F2r.js → RoomsPage-sdMZgHla.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-C51USCpv.js → RunsOnPopover-B5_Jz7ir.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-DJMtgkZF.js → RuntimeConnectFlow-C_6ozpAK.js} +1 -1
- package/dist/client/assets/RuntimeSetupDialog-BDvzruM4.js +1 -0
- package/dist/client/assets/{SeenDevices-DQnrqn19.js → SeenDevices-CZ--8ljN.js} +3 -3
- package/dist/client/assets/{SessionsPage-BxT6HETG.js → SessionsPage-BKyrJh1O.js} +1 -1
- package/dist/client/assets/{SettingsDialog-BriAKBHz.js → SettingsDialog-E5hPag3F.js} +3 -3
- package/dist/client/assets/{SkillsPage-QfxMaHeF.js → SkillsPage-BeL6zfgw.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-D54Nqlkr.js → TaskDialogWrapper-B-IP5hYv.js} +1 -1
- package/dist/client/assets/TasksEmptyState-BcftWVbk.js +3 -0
- package/dist/client/assets/TasksPage-CmroTI1v.js +1 -0
- package/dist/client/assets/{TeamComputerEntry-BtSsE94x.js → TeamComputerEntry-DbfoZrZz.js} +1 -1
- package/dist/client/assets/{ToolsPage-CfM2Cdtm.js → ToolsPage-h-PS45fZ.js} +1 -1
- package/dist/client/assets/{TopologyGraph-BMvLKLwd.js → TopologyGraph-Bk_0y0Yy.js} +15 -15
- package/dist/client/assets/{TourHost-XxcgkZcj.js → TourHost-D4La-1-E.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-D1tIChdU.js → UnlinkDialog-CWd4fhT4.js} +1 -1
- package/dist/client/assets/UnreadDivider-Bvg9QLn9.js +1 -0
- package/dist/client/assets/{WidgetErrorCard-DQWpqcbG.js → WidgetErrorCard-DictdlWO.js} +3 -3
- package/dist/client/assets/WorkView-DxThzZ0w.js +51 -0
- package/dist/client/assets/{_shell-C5LhHVEU.js → _shell-CX_gaQPE.js} +22 -22
- package/dist/client/assets/{_shell._home-BhaXi3EI.js → _shell._home-CBNsPEH4.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-Bd8jIlgC.js → _shell._home.activity-DpSGWVSW.js} +1 -1
- package/dist/client/assets/_shell._home.index-BWH93iWg.js +3 -0
- package/dist/client/assets/_shell._home.tasks-Ive4UW8c.js +1 -0
- package/dist/client/assets/{_shell._home.workspaces-Cew8PET2.js → _shell._home.workspaces-3R3VtH7x.js} +1 -1
- package/dist/client/assets/{_shell.channels-efUOy5uH.js → _shell.channels-DRslcaiA.js} +4 -4
- package/dist/client/assets/{_shell.connections-DS8BI_M6.js → _shell.connections-BPQxNUPD.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-C9nwY8FH.js → _shell.feedback-requests-DkXEk3qm.js} +2 -2
- package/dist/client/assets/_shell.marketplace-D8deZF5L.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-BHG9MqWR.js +1 -0
- package/dist/client/assets/_shell.session-CkdA2hgF.js +1 -0
- package/dist/client/assets/{_shell.team-DejtvgcD.js → _shell.team-CZu-l34d.js} +3 -3
- package/dist/client/assets/_shell.threads-Cz-EZQXr.js +1 -0
- package/dist/client/assets/_shell.x._extensionId-Cry6E5KK.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-Cry6E5KK.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-CAQusbaN.js → abnfDiagram-WEYOIA3C-4hI8_uRi.js} +1 -1
- package/dist/client/assets/{access-copy-DzgVmhna.js → access-copy-BegDAoeR.js} +1 -1
- package/dist/client/assets/{arc-Dx6GrexJ.js → arc-DgydwPM5.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-wFr3hleP.js → architectureDiagram-ZHVYKT53-4kexDkbn.js} +1 -1
- package/dist/client/assets/{banner-C0yzCrO7.js → banner-CYV5jQI0.js} +2 -2
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CnuvSqM0.js → blockDiagram-RJAE7QA3-BUP4L5_m.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-DzLijAHt.js → c4Diagram-XDPPPE54-B4HK3S3o.js} +1 -1
- package/dist/client/assets/{card-ZF4yWM1Y.js → card-6VNSI3kT.js} +1 -1
- package/dist/client/assets/channel-Bf4e4rlX.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-SN1xBBT1.js → chunk-2E7WHVMD-Bhw5hCVI.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-DbW-InNL.js → chunk-2Q5K7J3B-CeUgfCvO.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-DxMZsEVE.js → chunk-4EMNKR2T-DqSZunXx.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-9dknyxgR.js → chunk-55XCU76K-Bigp9-bU.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-CeL_dp1K.js → chunk-5VM5RSS4-DF1L8DrH.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-H-uQEL4m.js → chunk-JWPE2WC7-lcFap_43.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-YZCtp46Q.js → chunk-VQ5W62QI-Bgmsy9NF.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-CTsuviQ9.js → chunk-XXDRQBXY-DFFzLm_u.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-Dymmj4ca.js → chunk-ZCHMQSOR-B4aJwBdo.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-AZrXuO6n.js → classDiagram-v2-4MYWR3UA-BdUAMGnS.js} +1 -1
- package/dist/client/assets/{command-D2uvj-5S.js → command-Dz2pZLle.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-DH6uyH8n.js → cose-bilkent-JH36ORCC-BdJxQmWe.js} +1 -1
- package/dist/client/assets/{cpu-CxkuIIZ9.js → cpu-CjKJ8pVl.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-CPF1WTGP.js → cynefin-EF2NZ3EQ-BvnDWKe0.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-BvgLB9D2.js → cynefinDiagram-WF24UDRP-DKL8UyvS.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-Dbgki4TG.js → dagre-NK4GIZVX-CCuJpxlY.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-C84DYVUU.js → diagram-CBK3MWTC-C1jeuv8r.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-DKFohwHa.js → diagram-I5XIIV2D-CSnTyOU0.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-C80JpCDz.js → diagram-ODIL2UCW-9w6q1YKi.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-I7bZPRJw.js → diagram-PFBEJUXE-BMFBmD0P.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-Gqdnf6A3.js → diagram-RJA3I4VV-D9Utl6qX.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-CCzmXB0d.js → diagram-TYUNFSNR-u_ogc51l.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-DWKMGbp5.js → ebnfDiagram-V4P3TTPT-Bg_smbFH.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-BH9-VsJv.js → elk-QONTBCTQ-CtuwbIK2.js} +1 -1
- package/dist/client/assets/{empty-state-CQVHyP7G.js → empty-state-CbFKhqwB.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-Dw7o0PKQ.js → erDiagram-KYQIGQAA-MlvYHdZ7.js} +1 -1
- package/dist/client/assets/{execution-config-B0Ip8o1B.js → execution-config-BjNjQoBp.js} +1 -1
- package/dist/client/assets/{file-aWVIKIhu.js → file-JokR8lB2.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-VqrEIkK2.js → file-exclamation-point-sl45DZYe.js} +1 -1
- package/dist/client/assets/{file-text-BcDT6eqO.js → file-text-C4PxLfBm.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-BBx2mbzG.js → find-latest-widget-fence-Bc1LICCy.js} +5 -5
- package/dist/client/assets/{flowDiagram-IUGLLWBU-DUap_2VM.js → flowDiagram-IUGLLWBU-BlrKbUnh.js} +1 -1
- package/dist/client/assets/{form-Bq-P02ub.js → form-1NlezfMg.js} +1 -1
- package/dist/client/assets/{format-cron-CoTCXmQp.js → format-cron-C57sE3sK.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-GAxFxszj.js → ganttDiagram-R7GPNTJY-BhCCQ-d7.js} +3 -3
- package/dist/client/assets/{git-branch-Cvc-Sr6q.js → git-branch-BXEb1Sqq.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-CNXDdCW9.js → gitGraphDiagram-PDYL7XHY-Chl1aqHg.js} +1 -1
- package/dist/client/assets/{graph-CtCYTWZj.js → graph-DIIpUxLd.js} +1 -1
- package/dist/client/assets/{heart-yvX6jsem.js → heart-CUs7jdhV.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-B6iFwydl.js → highlighted-body-KPVGNVTW-DlDHGjld.js} +1 -1
- package/dist/client/assets/image-lightbox-BczXKBTZ.js +1 -0
- package/dist/client/assets/image-off-Ch98GGBJ.js +6 -0
- package/dist/client/assets/{index-BsmQ2VMC.js → index-0MDZSAdr.js} +1 -1
- package/dist/client/assets/{index-KLtoKDvx.js → index-37h1E-65.js} +1 -1
- package/dist/client/assets/{index-CIIAns2d.js → index-8FrM4Unx.js} +1 -1
- package/dist/client/assets/{index-D9pvn-mm.js → index-B0p2_o3r.js} +1 -1
- package/dist/client/assets/{index-BI7mYC3q.js → index-B0q1o1JU.js} +1 -1
- package/dist/client/assets/{index-p7yYM6Iz.js → index-BAnl5kwm.js} +1 -1
- package/dist/client/assets/{index-io81RE8o.js → index-BC41bN42.js} +1 -1
- package/dist/client/assets/{index-CYPbNdgY.js → index-BNJa5z6K.js} +7 -7
- package/dist/client/assets/{index-CZA2uFZQ.js → index-BQlnEL5t.js} +1 -1
- package/dist/client/assets/{index-BzlepYwD.js → index-BRyEtRBO.js} +1 -1
- package/dist/client/assets/index-BThp0Av1.js +1 -0
- package/dist/client/assets/{index-FCztjyrm.js → index-BVjrgWDa.js} +1 -1
- package/dist/client/assets/{index-thNMHUmT.js → index-BiyMpL0z.js} +1 -1
- package/dist/client/assets/{index-GEDh_fwN.js → index-BwHCH3tE.js} +1 -1
- package/dist/client/assets/index-ByIDaFWv.js +1 -0
- package/dist/client/assets/{index-NbnKjhyZ.js → index-BzqkXlms.js} +1 -1
- package/dist/client/assets/index-CFJcOzPD.js +1 -0
- package/dist/client/assets/{index-B8YnzTmr.js → index-CQTeDD0B.js} +1 -1
- package/dist/client/assets/{index-Dqq2lV9x.js → index-CSOhBvPV.js} +1 -1
- package/dist/client/assets/{index-DefXQdQA.js → index-CYhf-E_N.js} +1 -1
- package/dist/client/assets/{index-BSGg8ud2.js → index-CaVP52c1.js} +1 -1
- package/dist/client/assets/{index-CCo77KAN.js → index-Cn1ZEy3S.js} +1 -1
- package/dist/client/assets/{index-N3JAoXse.js → index-CnNGTb8f.js} +1 -1
- package/dist/client/assets/{index-CaOL5rt9.js → index-Cnjpi7ar.js} +3 -3
- package/dist/client/assets/{index-Cdzlu1-P.js → index-CoHeCySh.js} +1 -1
- package/dist/client/assets/index-CujX3mpY.css +1 -0
- package/dist/client/assets/{index-DRao3lV4.js → index-Cw0QRsnv.js} +1 -1
- package/dist/client/assets/{index-D1e3aPAe.js → index-Czar7aPT.js} +2 -2
- package/dist/client/assets/{index-CYl4FhO7.js → index-D1Be28yK.js} +1 -1
- package/dist/client/assets/{index-xKvoBO92.js → index-D6NjBiAq.js} +1 -1
- package/dist/client/assets/{index-CXCoNv1T.js → index-DMfV6rUz.js} +1 -1
- package/dist/client/assets/index-D_9H4FdK.js +1 -0
- package/dist/client/assets/{index-Bcv5Znqx.js → index-DaZdDh7o.js} +1 -1
- package/dist/client/assets/{index-sTYFlBEJ.js → index-DlZ77Qfj.js} +1 -1
- package/dist/client/assets/index-Dv6HjbCS.js +1 -0
- package/dist/client/assets/index-DwrBsA10.js +1053 -0
- package/dist/client/assets/{index-B1UgkD5d.js → index-DzLIbXMR.js} +1 -1
- package/dist/client/assets/{index-COenrxg6.js → index-Ev7FZl9a.js} +1 -1
- package/dist/client/assets/{index-B7M2ny5y.js → index-HnW-eS5i.js} +1 -1
- package/dist/client/assets/{index-DuEmhl4K.js → index-hyqRnlFg.js} +1 -1
- package/dist/client/assets/{index-B36G1Wt7.js → index-pQstFziR.js} +3 -3
- package/dist/client/assets/{index-vWi6pOlY.js → index-rKEUwjq8.js} +1 -1
- package/dist/client/assets/{index-BJKRrppi.js → index-slBSiB-H.js} +1 -1
- package/dist/client/assets/{index-BIoO-kFF.js → index-vU7itvE8.js} +1 -1
- package/dist/client/assets/{index.esm-BYS3OpKb.js → index.esm-DM8Bqi3n.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-BB5v9AOj.js → infoDiagram-MVDRKAX5-C0p1eP9j.js} +1 -1
- package/dist/client/assets/{inline-code-Df1J1tQV.js → inline-code-CNmpgW3O.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-D8Zw0Wka.js → ishikawaDiagram-HPEHV2GE-COdxgYUT.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-CIaVEmcq.js → journeyDiagram-BOSHW7O7-C84Ny9n9.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-D0jxBQB1.js → kanban-definition-FNSA4HC5-ECSXhFX0.js} +1 -1
- package/dist/client/assets/{layers-Byywl2sz.js → layers-JgRwJGyf.js} +1 -1
- package/dist/client/assets/{lightbulb-Cu6PlV7n.js → lightbulb-BhQB8sFP.js} +1 -1
- package/dist/client/assets/{link-2-D2LX2bAn.js → link-2-B4byjdgg.js} +1 -1
- package/dist/client/assets/{list-runtime-types-C4Ik3n5A.js → list-runtime-types-M5_gxIg1.js} +1 -1
- package/dist/client/assets/{markdown-content-BbH7L0YO.js → markdown-content-C3qWcii6.js} +1 -1
- package/dist/client/assets/{mention-pill-DxRP9Bkp.js → mention-pill-DUbgdKmA.js} +1 -1
- package/dist/client/assets/{mermaid.core-D9Vc69mt.js → mermaid.core-BQiwaVjZ.js} +4 -4
- package/dist/client/assets/{message-square-off-BP01X_ck.js → message-square-off-AjtFFe_u.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-DNd2V0AH.js → mindmap-definition-6OY57UG3-BfA6EqgP.js} +1 -1
- package/dist/client/assets/{more-details-7psgoF8x.js → more-details-itSF4Fah.js} +1 -1
- package/dist/client/assets/{owner-notice-83ejBJ3g.js → owner-notice-B6JRjE_c.js} +1 -1
- package/dist/client/assets/{package-DSJyi_sq.js → package-5YQSitlR.js} +1 -1
- package/dist/client/assets/{page-container-D7q7ISl1.js → page-container-DBPUOYYM.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-BnQ8IKj6.js → pane-resize-handle-Kwb3zKa6.js} +1 -1
- package/dist/client/assets/{paperclip-CeOJ8Nwp.js → paperclip-IRKZTEQw.js} +1 -1
- package/dist/client/assets/{path-input-BToXn1c2.js → path-input-BHkA4fFw.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-sCkH1RIT.js → pegDiagram-ECIUJNBX-CqIy9WDe.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-B4V9xf2z.js → pieDiagram-GNMPY74T-C5yI3cvV.js} +1 -1
- package/dist/client/assets/{plug-CMcqk2p3.js → plug-CupdBXaG.js} +1 -1
- package/dist/client/assets/{primer-trigger-DtyY4fpx.js → primer-trigger-Ci_XRRfX.js} +2 -2
- package/dist/client/assets/{profile-errors-DSKechEz.js → profile-errors-aEsWNifs.js} +1 -1
- package/dist/client/assets/{progress-8CDPI0xL.js → progress-Bpmb837n.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-DkcmqAD-.js → quadrantDiagram-D57K4MC3-DyCDNvk7.js} +1 -1
- package/dist/client/assets/{query-error-state-jrioxcrf.js → query-error-state-s6AJaHa3.js} +1 -1
- package/dist/client/assets/{radio-D3k0l1vj.js → radio-Ci6Ghks8.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-T9Qbdks1.js → railroadDiagram-Y72NRBL7-B3u1B937.js} +1 -1
- package/dist/client/assets/registry-DatwH4jj.js +1 -0
- package/dist/client/assets/registry-NGfn1R2_.js +34 -0
- package/dist/client/assets/{relay-trace-schemas-epyobQGg.js → relay-trace-schemas-hOFIzdY-.js} +2 -2
- package/dist/client/assets/{repeat-Cbe4MVvF.js → repeat-B1S2ceC2.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-BKrsOvZR.js → requirementDiagram-EQYSW5RA-CdG-unip.js} +1 -1
- package/dist/client/assets/{room-files-source-wUgOb12j.js → room-files-source-J7gnN1gx.js} +2 -2
- package/dist/client/assets/{rotate-ccw-clock-CI-xhvb_.js → rotate-ccw-clock-7Q2akPFi.js} +1 -1
- package/dist/client/assets/{rotate-cw-BGDIfrKN.js → rotate-cw-DK3Rzmlh.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-SVj2Csf7.js → sankeyDiagram-SY24JHO5-D3Z4Qk2b.js} +1 -1
- package/dist/client/assets/{scroll-area-D3x48cAw.js → scroll-area-6Gelypei.js} +1 -1
- package/dist/client/assets/{search-x-Dz-ryi0D.js → search-x-Be8VetKs.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-CSliXD3t.js → sequenceDiagram-BLEHNHQU-RXPgeLr6.js} +1 -1
- package/dist/client/assets/{shield-x-FVhBth4G.js → shield-x-D8lJ0Op0.js} +1 -1
- package/dist/client/assets/signed-in-NOeTLLso.js +1 -0
- package/dist/client/assets/{sizeCapture-INFHLROL-4lP-N234.js → sizeCapture-INFHLROL-q7qki1pK.js} +1 -1
- package/dist/client/assets/{soul-file-CS-EETV8.js → soul-file-DTEcjDxP.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-Cij5yf9S.js → stateDiagram-v2-A6IESKWZ-DFs6IVbj.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-iSf_hOim.js → swimlanes-B3ENRKFQ-D1A-3JE-.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-hZFkkqUb.js +8 -0
- package/dist/client/assets/{table-Cg_1lfh0.js → table-CuBPM_bg.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-DVZj2yY_.js → timeline-definition-JXYKGLGB-CLHy0rAb.js} +1 -1
- package/dist/client/assets/{trust-posture-CkEXRlxW.js → trust-posture-BXXe8F8n.js} +1 -1
- package/dist/client/assets/{unplug-CASvw-Yn.js → unplug-Cuej6sM6.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-CMDo7sp5.js → unverified-catalog-notice-BbK4SCJp.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-BVeUe0tR.js → use-adapter-catalog-Cy7ENVZN.js} +1 -1
- package/dist/client/assets/{use-bindings-Clux6PJ0.js → use-bindings-Tj0BcF4m.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-D0poHQqk.js → use-composer-prefs-BrQVpwRi.js} +1 -1
- package/dist/client/assets/{use-connector-management-CQQGCFaL.js → use-connector-management-CLZQXgln.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-BdGMaupf.js → use-deep-link-scroll-BeqtUhj2.js} +1 -1
- package/dist/client/assets/{use-delete-binding-CSpocSwM.js → use-delete-binding-d7ii9iFQ.js} +1 -1
- package/dist/client/assets/{use-dev-links-c6K0en5G.js → use-dev-links-MYOV3h2q.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-sq9_ehHu.js → use-direct-message-panel-C_lXDYnB.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-C3T1MGxz.js → use-external-adapter-catalog-kMFSEJGV.js} +1 -1
- package/dist/client/assets/use-full-activity-feed-MFSkvnza.js +1 -0
- package/dist/client/assets/use-is-below-desktop-CJJ4zMQO.js +1 -0
- package/dist/client/assets/{use-local-browser-Di54G1yg.js → use-local-browser-1oVtlmXD.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-C_bdAJfy.js → use-mesh-topology-BJs6M6kh.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-C_ChQ0xs.js → use-mounted-ref-DitdlmSI.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-BjGauolP.js → use-notification-prefs-CXbRTRLF.js} +1 -1
- package/dist/client/assets/use-pending-read-CvX1lOb8.js +1 -0
- package/dist/client/assets/{use-personality-commit-WeCQulwl.js → use-personality-commit-DQrWyVGT.js} +1 -1
- package/dist/client/assets/{use-promo-activation-C9I5YwBo.js → use-promo-activation-CgdBHk2f.js} +3 -3
- package/dist/client/assets/{use-promo-dismissals-BhTNS7LX.js → use-promo-dismissals-DprcDmfs.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-DDo5a3nh.js → use-pulse-freshness-BtMzHCs3.js} +1 -1
- package/dist/client/assets/{use-relay-config-Bfjxr2lE.js → use-relay-config-CGBlgXC2.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-D_HTjK2r.js → use-room-follow-claim-Db5U7kWT.js} +1 -1
- package/dist/client/assets/{use-room-sessions-UwyzNxeo.js → use-room-sessions-K6mdH-Tb.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-CXAJxnx0.js → use-roving-tab-list-B2zxa_F_.js} +1 -1
- package/dist/client/assets/{use-session-canvas-CTDXU27z.js → use-session-canvas-D4G5fO_a.js} +7 -7
- package/dist/client/assets/{use-status-budget-CFS9gmSZ.js → use-status-budget-UccdTZ7o.js} +4 -4
- package/dist/client/assets/use-transform-BBj2pwbo.js +1 -0
- package/dist/client/assets/{use-unclaimed-chats-BlUFVbnm.js → use-unclaimed-chats-BidDnyt8.js} +1 -1
- package/dist/client/assets/use-update-config-D8g4P42J.js +1 -0
- package/dist/client/assets/{useMutationState-CUuSnqrc.js → useMutationState-RYxTf1aD.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-BTdq_YOC.js → usecaseDiagram-WPOLBNNX-Bjmcc2gK.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-BLQwiECh.js → vennDiagram-Q3Y3IDCW-Cd6C9CxW.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-Cp8QrBQm.js → wardleyDiagram-IVAIDKWA-CzWWmwUL.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-CrrAKTa0.js → xychartDiagram-4URNHDU4-DSUn9rhA.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261025175042_dor3123_needs_attention.sql +7 -0
- package/dist/drizzle/meta/20261025175042_snapshot.json +14093 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/server/extension-child.cjs +188 -107
- package/dist/server/index.js +11155 -7967
- package/dist/server/index.js.map +2 -2
- package/package.json +7 -7
- package/dist/client/assets/ChannelComposer-MROo35vI.js +0 -44
- package/dist/client/assets/HandlePage-DW4b2avU.js +0 -1
- package/dist/client/assets/NamePage-Cv95tb4E.js +0 -1
- package/dist/client/assets/NewDirectMessageMenu-PuW-lVGF.js +0 -1
- package/dist/client/assets/OpenMeshSwitch-DiuAcyMj.js +0 -5
- package/dist/client/assets/PhotoPage-D8f25EFY.js +0 -1
- package/dist/client/assets/RoomSurface-DyubmENi.js +0 -1
- package/dist/client/assets/RuntimeSetupDialog-DQss2qqJ.js +0 -1
- package/dist/client/assets/TasksEmptyState-rCcan38Y.js +0 -3
- package/dist/client/assets/TasksPage-rIqxyB15.js +0 -1
- package/dist/client/assets/UnreadDivider-mAlJ1Ci7.js +0 -1
- package/dist/client/assets/WorkView-D1V2vzFd.js +0 -63
- package/dist/client/assets/_shell._home.index-zoh1Ij4R.js +0 -3
- package/dist/client/assets/_shell._home.tasks-CnfbD4z-.js +0 -1
- package/dist/client/assets/_shell.marketplace-BxOR_qkR.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-BdVMq5Gt.js +0 -1
- package/dist/client/assets/_shell.session-DxIjWGPk.js +0 -1
- package/dist/client/assets/_shell.threads-BiIjml5t.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-VrXvDnpj.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-VrXvDnpj.js +0 -1
- package/dist/client/assets/channel-BhigWC_Q.js +0 -1
- package/dist/client/assets/image-lightbox-COo7DKXH.js +0 -1
- package/dist/client/assets/image-off-BPRcQBvJ.js +0 -6
- package/dist/client/assets/index-7EayMDlv.js +0 -1
- package/dist/client/assets/index-BSNB2iOV.js +0 -1053
- package/dist/client/assets/index-CNlIRtiQ.js +0 -23
- package/dist/client/assets/index-Cbu89CsC.js +0 -1
- package/dist/client/assets/index-Drg391kA.js +0 -1
- package/dist/client/assets/index-DtlBeLQB.css +0 -1
- package/dist/client/assets/index-ZRwRzKll.js +0 -1
- package/dist/client/assets/index-bgXdb4vP.js +0 -1
- package/dist/client/assets/registry-B0s0gwF4.js +0 -1
- package/dist/client/assets/signed-in-BQcV7AMx.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-C8oY0fep.js +0 -8
- package/dist/client/assets/use-full-activity-feed-Bmmagy2q.js +0 -1
- package/dist/client/assets/use-is-below-desktop-CGj5vT8N.js +0 -1
- package/dist/client/assets/use-panel-tab-placements-Bn-CIS6M.js +0 -1
- package/dist/client/assets/use-pending-read-CIp204qI.js +0 -1
- package/dist/client/assets/use-update-config-BwjEWlgj.js +0 -1
- /package/dist/client/assets/{WorkView-DIs3GY4I.css → registry-DIs3GY4I.css} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{kv as be,kw 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 ke,Q as Se,C as Ne,U as we,kx as z,B as b,ky as Re,kz as Ce,cj as W,e as C,G as y,s as H,r as m,J as Ie,kA as Ae,aj as Pe,ak as De,dV as Oe,aY as Me,X as oe,kB as Te,kC as Ee,aQ as $e,dW as ie,iL as Fe,by as K,ar as R,T as Le,kD as Be,i_ as qe,kE as ze,eG as We,eH as He,iY as _e,j3 as Ue,kF as Ge,kG as Ke,eA as ae,eC as Ve,kH as Qe,c$ as re,ad as Ye,eD as Xe,iZ as Je,l as le,kI as de,kJ as ce,gX as Ze,kK as _,eB as et,bf as tt,a$ as st,hI as nt,gB as ot,kL as it,as as at,gY as ue,g as rt,gk as me,kM as V,ai as Q,c7 as lt,kN as dt,kO as ct,kP as ut,a1 as mt,kQ as ht,cf as gt,bP as ft,jl as pt,aP as xt,i6 as jt,eM as M,k9 as vt,q as Y,eb as bt,g$ as yt,kR as kt,n as St}from"./index-BSNB2iOV.js";import{I as Nt,p as wt}from"./ChannelComposer-MROo35vI.js";import{b as Rt}from"./index-CNlIRtiQ.js";import{R as Ct}from"./RoomSurface-DyubmENi.js";import{P as he}from"./PromptSuggestionChips-Dpie7Ut6.js";import{S as U}from"./scroll-area-D3x48cAw.js";import{d as It}from"./dead-letter-reasons-DtBHju9v.js";import{u as At}from"./use-mesh-topology-C_bdAJfy.js";import{A as Pt}from"./AttentionSignalRow-x8vRACw-.js";import{u as ge}from"./use-promo-dismissals-BhTNS7LX.js";import{u as Dt,s as Ot,P as Mt,a as Tt}from"./use-promo-activation-C9I5YwBo.js";import"./repeat-Cbe4MVvF.js";import"./use-room-sessions-UwyzNxeo.js";import"./WidgetErrorCard-DQWpqcbG.js";import"./index-p7yYM6Iz.js";import"./card-ZF4yWM1Y.js";import"./progress-8CDPI0xL.js";import"./markdown-content-BbH7L0YO.js";import"./table-Cg_1lfh0.js";import"./package-DSJyi_sq.js";import"./heart-yvX6jsem.js";import"./git-branch-Cvc-Sr6q.js";import"./file-text-BcDT6eqO.js";import"./file-aWVIKIhu.js";import"./find-latest-widget-fence-BBx2mbzG.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-DQss2qqJ.js";import"./inline-code-Df1J1tQV.js";import"./list-runtime-types-C4Ik3n5A.js";import"./RuntimeConnectFlow-DJMtgkZF.js";import"./useMutationState-CUuSnqrc.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-DxRP9Bkp.js";import"./rotate-ccw-clock-CI-xhvb_.js";import"./unplug-CASvw-Yn.js";import"./message-square-off-BP01X_ck.js";import"./registry-B0s0gwF4.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-CeOJ8Nwp.js";import"./index-sTYFlBEJ.js";import"./pane-resize-handle-BnQ8IKj6.js";import"./UnreadDivider-mAlJ1Ci7.js";import"./use-room-follow-claim-D_HTjK2r.js";import"./use-connector-management-CQQGCFaL.js";import"./AgentRequestCard-DBVuClMO.js";import"./access-copy-DzgVmhna.js";import"./query-error-state-jrioxcrf.js";import"./empty-state-CQVHyP7G.js";import"./use-bindings-Clux6PJ0.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-ZYnZcVmM.js";import"./use-update-config-BwjEWlgj.js";import"./use-relay-config-Bfjxr2lE.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(ke,{children:[t.jsxs(Se,{className:"text-muted-foreground hover:text-foreground group flex items-center gap-1 text-xs font-medium transition-colors",children:[t.jsx(Ne,{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 Gt(){const e=Ht();return e===null?null:t.jsx(Ut,{promo:e},e.id)}const Kt=["report.daily"];function fe(){const{notifications:e}=Te({kinds:Kt,unread:!0});return m.useMemo(()=>e[0],[e])}function Vt({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 Qt({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 Yt="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),S=Fe(v),N=e.length>0||n.length>0||o.length>0||l.length>0||a,P=d.length>0,w=c.length>0,je=N||P||w||g!==void 0||(f==null?void 0:f.occupied)===!0,O=Vt({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(K,{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:S.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",Yt),children:[N&&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(K,{initial:!1,children:l.map(k=>t.jsx(We,{task:k,className:"mt-2"},k.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(k=>t.jsx(Pt,{signal:k},k.id))})})}),g&&t.jsx(Qt,{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(k=>t.jsx(He,{notification:k,onOpen:()=>h(k)},k.id))})})}),f==null?void 0:f.node]}),S.start&&t.jsx(X,{edge:"top"}),S.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=Ge(),c=Ke(l),{schedules:h,errors:g,activity:f}=ae(),j=Ve(),x=fe(),{mutate:u}=Qe(),p=re({strict:!1}),v=W(),S=Ye(),N=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:G=>{v(H({session:G}))},approvalsUnavailable:a&&i.length===0,onRetryApprovals:r,scheduleApprovals:N,errorSignals:g,activityItems:f,onOpenActivity:j,shiftReport:x===void 0?void 0:{notification:x,onDismiss:()=>u(x.id)},presence:e,condensed:S&&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(N=>N.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),S=nt();return u?t.jsx(ls,{forwardLook:rs(os(v,S),S),suggestion:t.jsx(Gt,{})}):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 ks({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(Nt,{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 Ss({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(ks,{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 Ns(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:V({record:d.author,override:c===void 0?null:Q(c.manifest),...d.origin!==void 0?{origin:d.origin}:{}}),binding:g===null?null:Ns(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:V({record:{id:d.id,kind:"agent",displayName:c},override:Q(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
|
-
`),[o]),l=m.useMemo(()=>r.length===0?[]:r.split(`
|
|
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"){Y.getState().recordOpened("room",r.roomId),o({...le.channels(),search:{id:r.roomId}});return}r.cwd&&Y.getState().recordOpened("agent",r.cwd),o(H({session:r.sessionId,dir:r.cwd}))},[o]),a=m.useMemo(()=>t.jsx(Ss,{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(St,{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=kt(),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};
|
|
@@ -1 +0,0 @@
|
|
|
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-BSNB2iOV.js";import{Q as H}from"./query-error-state-jrioxcrf.js";import{P as F}from"./page-container-D7q7ISl1.js";import{F as K,T as U,C as V}from"./TasksEmptyState-rCcan38Y.js";import{i as W}from"./registry-B0s0gwF4.js";import{u as $,S as X}from"./search-x-Dz-ryi0D.js";import{S as q}from"./scroll-area-D3x48cAw.js";import"./empty-state-CQVHyP7G.js";import"./inline-code-Df1J1tQV.js";import"./form-Bq-P02ub.js";import"./command-D2uvj-5S.js";import"./AgentPicker-BhsmtQgu.js";import"./AgentOptionRow-nGR6PdC6.js";import"./execution-config-B0Ip8o1B.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./list-runtime-types-C4Ik3n5A.js";import"./format-cron-CoTCXmQp.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 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./index-BSNB2iOV.js";import{M as o}from"./Marketplace-B9X8IIWI.js";import{P as r}from"./page-container-D7q7ISl1.js";import"./PreviewRefusedNotice-p-KIYJVf.js";import"./shield-x-FVhBth4G.js";import"./card-ZF4yWM1Y.js";import"./empty-state-CQVHyP7G.js";import"./markdown-content-BbH7L0YO.js";import"./use-unclaimed-chats-BlUFVbnm.js";import"./use-bindings-Clux6PJ0.js";import"./UnlinkDialog-D1tIChdU.js";import"./use-dev-links-c6K0en5G.js";import"./more-details-7psgoF8x.js";import"./file-aWVIKIhu.js";import"./AgentPicker-BhsmtQgu.js";import"./command-D2uvj-5S.js";import"./AgentOptionRow-nGR6PdC6.js";import"./useMutationState-CUuSnqrc.js";import"./file-exclamation-point-VqrEIkK2.js";import"./rotate-ccw-clock-CI-xhvb_.js";import"./path-input-BToXn1c2.js";function i(){return t.jsx(r,{width:"wide",children:t.jsx(o,{})})}const R=i;export{R as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BSNB2iOV.js";import{P as r}from"./page-container-D7q7ISl1.js";import{M as e}from"./MarketplaceSourcesView-BZCnUvqP.js";import"./use-pending-read-CIp204qI.js";function t(){return o.jsx(r,{width:"reading",children:o.jsx(e,{})})}const s=t;export{s as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as o}from"./WorkView-D1V2vzFd.js";import"./index-BSNB2iOV.js";import"./WidgetErrorCard-DQWpqcbG.js";import"./index-CNlIRtiQ.js";import"./PromptSuggestionChips-Dpie7Ut6.js";import"./primer-trigger-DtyY4fpx.js";import"./use-is-below-desktop-CGj5vT8N.js";import"./use-notification-prefs-BjGauolP.js";import"./card-ZF4yWM1Y.js";import"./use-status-budget-CFS9gmSZ.js";import"./git-branch-Cvc-Sr6q.js";import"./use-update-config-BwjEWlgj.js";import"./settings-for-runtime-BoOa-ZFG.js";import"./RuntimeSetupDialog-DQss2qqJ.js";import"./inline-code-Df1J1tQV.js";import"./list-runtime-types-C4Ik3n5A.js";import"./RuntimeConnectFlow-DJMtgkZF.js";import"./useMutationState-CUuSnqrc.js";import"./runtime-connect-Dn0T5YWv.js";import"./unverified-catalog-notice-CMDo7sp5.js";import"./layers-Byywl2sz.js";import"./cpu-CxkuIIZ9.js";import"./banner-C0yzCrO7.js";import"./UnreadDivider-mAlJ1Ci7.js";import"./composer-insert-BpyATrmR.js";import"./use-composer-prefs-D0poHQqk.js";import"./McpAppFrame-BXdeDoQB.js";import"./more-details-7psgoF8x.js";import"./find-latest-widget-fence-BBx2mbzG.js";import"./file-aWVIKIhu.js";import"./use-session-canvas-CTDXU27z.js";import"./rotate-cw-BGDIfrKN.js";import"./query-keys-DeYqUDia.js";import"./index.esm-BYS3OpKb.js";import"./file-text-BcDT6eqO.js";import"./markdown-content-BbH7L0YO.js";import"./shield-x-FVhBth4G.js";import"./McpSigninBody-CI-gwQuU.js";import"./image-off-BPRcQBvJ.js";import"./format-duration-BCr6uzby.js";import"./use-connector-management-CQQGCFaL.js";import"./AgentRequestCard-DBVuClMO.js";import"./access-copy-DzgVmhna.js";import"./query-error-state-jrioxcrf.js";import"./empty-state-CQVHyP7G.js";import"./use-bindings-Clux6PJ0.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-ZYnZcVmM.js";import"./index-p7yYM6Iz.js";import"./progress-8CDPI0xL.js";import"./table-Cg_1lfh0.js";import"./package-DSJyi_sq.js";import"./heart-yvX6jsem.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-CeOJ8Nwp.js";import"./index-sTYFlBEJ.js";const mo=o;export{mo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a1 as R,a2 as C,aP as j,a3 as T,r as c,gW as S,gX as N,gk as A,j as t,G as M,e as x,gY as k,gZ as P,eb as q,B as v,g_ as _,cj as B,g$ as D,h0 as F,l as b}from"./index-BSNB2iOV.js";import{C as O,P as Q}from"./index-CNlIRtiQ.js";import{t as H,u as K,a as $,A as L,R as z,C as G,b as Y,c as Z,d as W,e as X}from"./ChannelComposer-MROo35vI.js";import{E as J}from"./empty-state-CQVHyP7G.js";import{P as U}from"./page-container-D7q7ISl1.js";import"./file-aWVIKIhu.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-BBx2mbzG.js";import"./WidgetErrorCard-DQWpqcbG.js";import"./index-p7yYM6Iz.js";import"./card-ZF4yWM1Y.js";import"./progress-8CDPI0xL.js";import"./markdown-content-BbH7L0YO.js";import"./table-Cg_1lfh0.js";import"./package-DSJyi_sq.js";import"./heart-yvX6jsem.js";import"./git-branch-Cvc-Sr6q.js";import"./file-text-BcDT6eqO.js";import"./paperclip-CeOJ8Nwp.js";import"./index-sTYFlBEJ.js";import"./RuntimeSetupDialog-DQss2qqJ.js";import"./inline-code-Df1J1tQV.js";import"./list-runtime-types-C4Ik3n5A.js";import"./RuntimeConnectFlow-DJMtgkZF.js";import"./useMutationState-CUuSnqrc.js";import"./runtime-connect-Dn0T5YWv.js";import"./repeat-Cbe4MVvF.js";import"./use-room-sessions-UwyzNxeo.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-DxRP9Bkp.js";import"./rotate-ccw-clock-CI-xhvb_.js";import"./unplug-CASvw-Yn.js";import"./message-square-off-BP01X_ck.js";import"./registry-B0s0gwF4.js";const V=3e4;function ee(){const e=R();return C({queryKey:j.threads(),queryFn:()=>e.listThreads(),staleTime:V})}function te(e){const o=T(),n=c.useRef(null);c.useEffect(()=>{if(e===void 0)return;const r=n.current,i=new Map(e.map(s=>[s.rootEntryId,s.lastActivityAt]));if(n.current=i,r===null)return;const a=new Set;for(const s of e){const d=r.get(s.rootEntryId);d!==void 0&&d!==s.lastActivityAt&&a.add(s.roomId)}for(const s of a)o.invalidateQueries({queryKey:j.entries(s)})},[e,o])}const y=12;function oe(e){const[o,n]=c.useState(y),[r,i]=c.useState(null),a=c.useRef(new Set),s=c.useMemo(()=>e.filter((p,m)=>m<o||a.current.has(p.rootEntryId)),[e,o]);c.useEffect(()=>{for(const p of s)a.current.add(p.rootEntryId)},[s]);const d=e.length>s.length,f=c.useCallback(()=>{const p=new Set(s.map(u=>u.rootEntryId)),m=e.filter(u=>!p.has(u.rootEntryId));m.length<=y&&m[0]!==void 0&&i(m[0].rootEntryId),n(u=>u+y)},[e,s]),h=c.useCallback(()=>i(null),[]);return{visible:s,hasMore:d,showMore:f,focusId:r,focused:h}}function re(e,o){const r=S(e).data;return c.useMemo(()=>{let i;const a=[];for(const s of r??[])s.id===o?i=s:H(s)===o&&a.push(s);return{root:i,latest:a.slice(-2),loaded:r!==void 0}},[r,o])}function se(e){var n;return e.target.closest('button, a, input, textarea, [role="button"], [role="menuitem"]')?!1:(((n=window.getSelection())==null?void 0:n.toString())??"")===""}function ne({thread:e,agents:o,onOpen:n}){const i=N(e.roomId).data,a=A({kind:e.roomKind,slug:e.roomSlug,title:e.roomTitle});return t.jsxs("article",{"aria-label":`Thread in ${a}`,"data-testid":"thread-card","data-thread-root":e.rootEntryId,className:"bg-card rounded-lg border",children:[t.jsxs("header",{className:"flex items-center gap-2 border-b px-4 py-2",children:[t.jsx("button",{type:"button",onClick:()=>n(e),className:M("focus-ring hover:text-foreground min-w-0 truncate rounded text-sm",e.unreadCount>0?"text-foreground font-semibold":"text-muted-foreground"),children:a}),e.unreadCount>0&&t.jsxs("span",{className:"text-primary shrink-0 text-xs font-medium",children:[e.unreadCount," new"]})]}),i===void 0?t.jsx(ie,{}):t.jsx(ae,{room:i,thread:e,agents:o,onOpen:n})]})}function ae({room:e,thread:o,agents:n,onOpen:r}){const{root:i,latest:a,loaded:s}=re(e.id,o.rootEntryId),d=K({room:e,threadRootId:o.rootEntryId}),f=k(e.id,o.rootEntryId),[h,p]=c.useState(!1),m=P(e.members,e.viewerAuthorId),u=c.useMemo(()=>$(e.members,e.formerAuthors),[e.members,e.formerAuthors]),w=c.useMemo(()=>new Map([...u].map(([l,E])=>[l,E.displayName])),[u]),g=Math.max(0,o.replyCount-a.length),I=l=>t.jsx(Y,{roomId:e.id,entry:l,author:Z(W(l,u),u,n.faces),authorRef:u.get(l.authorId),authors:u,viewerAuthorId:e.viewerAuthorId,authorNames:w,reactionFrequents:e.reactionFrequents,isMember:m,grouping:{position:"only"}},l.id);return t.jsx(L,{known:n,children:t.jsxs(O.Root,{surface:"room",capabilities:z,target:d.target,anchor:"rail",children:[t.jsxs("div",{className:"py-2",children:[i!==void 0?t.jsx("div",{"data-testid":"thread-card-root",className:"cursor-pointer",onClick:l=>{se(l)&&r(o)},children:I(i)}):t.jsx("button",{type:"button",onClick:()=>r(o),className:"focus-ring text-foreground hover:bg-accent/40 mx-2 block w-[calc(100%-1rem)] rounded px-2 py-1.5 text-left text-sm",children:s?o.rootPreview||"A message with no text":t.jsx(x,{className:"h-4 w-2/3"})}),g>0&&t.jsx("button",{type:"button","data-testid":"thread-card-more",onClick:()=>r(o),className:"focus-ring text-muted-foreground hover:text-foreground mx-[var(--msg-padding-x)] my-1 rounded text-xs",children:g===1?"1 more reply":`${g} more replies`}),a.map(I),f.map(l=>t.jsx(Q,{post:l,viewerAuthorId:e.viewerAuthorId},l.clientId))]}),m&&t.jsx("div",{className:"border-t",children:h?t.jsx(G,{room:e,threadRootId:o.rootEntryId,attachments:d.attachments,focusOnMount:!0}):t.jsx("button",{type:"button","data-testid":"thread-card-reply",onClick:()=>p(!0),className:"focus-ring text-muted-foreground hover:text-foreground w-full rounded-b-lg px-4 py-2.5 text-left text-sm",children:"Reply…"})})]})})}function ie(){return t.jsxs("div",{className:"flex flex-col gap-2 px-4 py-3","aria-hidden":!0,children:[t.jsx(x,{className:"h-4 w-1/3"}),t.jsx(x,{className:"h-4 w-4/5"})]})}function de(){var n;const e=B(),o=((n=D().room)==null?void 0:n.id)??null;return c.useCallback(r=>{if(F.getState().openThread(r.roomId,r.rootEntryId,!1),r.roomId===o){e({...b.home(),search:{thread:r.rootEntryId}});return}e({...b.channels(),search:{id:r.roomId,thread:r.rootEntryId}})},[e,o])}const ce=[];function ue(){const e=ee(),o=X(),n=de(),r=oe(e.data??ce),i=c.useRef(null);te(e.data);const{focusId:a,focused:s}=r;return c.useEffect(()=>{var f,h;if(a===null)return;const d=(f=i.current)==null?void 0:f.querySelector(`[data-thread-root="${CSS.escape(a)}"]`);(h=d==null?void 0:d.querySelector("button"))==null||h.focus(),s()},[a,s]),t.jsxs(U,{width:"reading",children:[t.jsx("header",{className:"mb-4",children:t.jsx(q,{children:"Threads"})}),e.isPending?t.jsx("div",{className:"flex flex-col gap-3","aria-busy":!0,"data-testid":"threads-loading",children:[0,1,2].map(d=>t.jsx(x,{className:"h-32 w-full rounded-lg"},d))}):e.isError?t.jsxs("div",{className:"text-muted-foreground flex flex-col items-start gap-2 text-sm",children:[t.jsx("p",{children:"Couldn’t load your threads."}),t.jsx(v,{variant:"outline",size:"sm",onClick:()=>void e.refetch(),children:"Try again"})]}):e.data.length===0?t.jsx(J,{icon:_,headline:"No threads yet",description:"Reply to a message in any channel or DM, and the thread shows up here."}):t.jsxs(t.Fragment,{children:[t.jsx("ul",{ref:i,className:"flex flex-col gap-3","aria-label":"Your threads",children:r.visible.map(d=>t.jsx("li",{children:t.jsx(ne,{thread:d,agents:o,onOpen:n})},d.rootEntryId))}),r.hasMore&&t.jsx(v,{variant:"outline",size:"sm",className:"mt-3 self-start",onClick:r.showMore,children:"Show more"})]})]})}const ze=ue;export{ze as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-ClLEO5sJ.js";import"./index-BSNB2iOV.js";import"./empty-state-CQVHyP7G.js";import"./page-container-D7q7ISl1.js";import"./use-dev-links-c6K0en5G.js";import"./UnlinkDialog-D1tIChdU.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-ClLEO5sJ.js";import"./index-BSNB2iOV.js";import"./empty-state-CQVHyP7G.js";import"./page-container-D7q7ISl1.js";import"./use-dev-links-c6K0en5G.js";import"./UnlinkDialog-D1tIChdU.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as n}from"./mermaid.core-D9Vc69mt.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as h,dW as te,j as i,dD as ne,dE as se,dF as oe,ar as _,dG as re,ed as ie,G as Y,ee as ce,X as ae,x as le,C as ue,ef as de}from"./index-BSNB2iOV.js";import{T as fe,a as me}from"./index.esm-BYS3OpKb.js";import{a as d}from"./index-p7yYM6Iz.js";import{u as z,a as he,I as pe}from"./image-off-BPRcQBvJ.js";const Q={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/avif":"avif","image/svg+xml":"svg"},xe=new Set(["png","jpg","jpeg","gif","webp","avif","svg"]);function K(n,s){var u;const o=/^(.*)\.([a-z0-9]{1,5})$/i.exec(n),e=(o?o[1]:n)||"image",c=(u=o==null?void 0:o[2])==null?void 0:u.toLowerCase(),a=(s?Q[s.split(";")[0].trim()]:void 0)??(c&&xe.has(c)?c:"png");return`${e}.${a}`}function ge(n){var s;if(n.downloadName)return n.downloadName;if(n.src.startsWith("data:")){const o=((s=/^data:([^;,]+)/.exec(n.src))==null?void 0:s[1])??"";return`image.${Q[o]??"png"}`}try{const o=new URL(n.src,"http://local").pathname.split("/").pop()??"",e=decodeURIComponent(o);return/\.[a-z0-9]{2,5}$/i.test(e)?e:"image"}catch{return"image"}}function $(n,s,o){const e=document.createElement("a");e.href=n,e.download=s,o&&(e.target="_blank",e.rel="noopener noreferrer"),document.body.append(e),e.click(),e.remove()}async function be(n){const s=ge(n);try{const o=await fetch(n.src);if(!o.ok)throw new Error(`HTTP ${o.status}`);const e=await o.blob(),c=URL.createObjectURL(e);$(c,K(s,e.type),!1),setTimeout(()=>URL.revokeObjectURL(c),1e3)}catch{$(n.src,K(s),!0)}}function H(n,s,o){const e=Math.min(s.width/n.width,s.height/n.height),c=o?e:Math.min(e,1),f=n.width*c,a=n.height*c;return{left:s.left+(s.width-f)/2,top:s.top+(s.height-a)/2,width:f,height:a}}function q(n,s,o){const e={width:n.naturalWidth,height:n.naturalHeight};if(e.width===0||e.height===0)return null;const c=n.getBoundingClientRect();if(c.width===0||c.height===0||!(c.bottom>0&&c.right>0&&c.top<o.height&&c.left<o.width))return null;const a=H(e,c,!0),u=H(e,s,!1);return{x:a.left+a.width/2-(s.left+s.width/2),y:a.top+a.height/2-(s.top+s.height/2),scale:a.width/u.width}}const ye=8,we=110,ve=70,V=.5,je=6,O={type:"spring",stiffness:520,damping:42};function Se(n){const s=h.useRef(n);h.useLayoutEffect(()=>{s.current=n});const o=h.useRef(new Set),e=h.useRef(null),c=h.useRef(null),f=h.useRef(!1),a=()=>{const{x:r,y:l,scale:x,backdrop:y}=s.current;d(r,0,O),d(l,0,O),d(x,1,O),d(y,1,O)},u=r=>{var l;if(c.current={x:r.clientX,y:r.clientY},f.current=!1,r.pointerType!=="mouse"){if(o.current.add(r.pointerId),o.current.size>1){(l=e.current)!=null&&l.axis&&a(),e.current=null;return}e.current=s.current.canGesture()?{id:r.pointerId,startX:r.clientX,startY:r.clientY,startTime:r.timeStamp,axis:null}:null}},j=r=>{c.current&&Math.hypot(r.clientX-c.current.x,r.clientY-c.current.y)>je&&(f.current=!0);const l=e.current;if(!l||l.id!==r.pointerId)return;const x=r.clientX-l.startX,y=r.clientY-l.startY;if(l.axis===null){if(Math.max(Math.abs(x),Math.abs(y))<ye)return;l.axis=Math.abs(y)>Math.abs(x)?"y":"x"}const{x:v,y:k,scale:C,backdrop:S,canStep:T}=s.current;if(l.axis==="y"){const N=Math.min(Math.abs(y)/320,1);k.set(y),C.set(1-N*.12),S.set(1-N*.7)}else v.set(T(x<0?1:-1)?x:x*.25)},p=r=>{o.current.delete(r.pointerId);const l=e.current;if(!l||l.id!==r.pointerId||(e.current=null,l.axis===null))return;const x=Math.max(r.timeStamp-l.startTime,1),{canStep:y,onDismiss:v,onStep:k}=s.current;if(r.type==="pointercancel"){a();return}if(l.axis==="y"){const N=r.clientY-l.startY;Math.abs(N)>we||Math.abs(N)/x>V?v():a();return}const C=r.clientX-l.startX,S=C<0?1:-1;(Math.abs(C)>ve||Math.abs(C)/x>V)&&y(S)?k(S):a()};return{handlers:{onPointerDown:u,onPointerMove:j,onPointerUp:p,onPointerCancel:p},endedDrag:()=>f.current}}const A={type:"spring",stiffness:360,damping:34,mass:.9},W={type:"spring",stiffness:420,damping:40},E={duration:.16,ease:"easeOut"},Z=72,w=n=>n.stopPropagation(),Ne={onClick:w,onDoubleClick:w,onContextMenu:w,onKeyDown:w,onKeyUp:w,onPointerDown:w,onPointerMove:w,onPointerUp:w,onPointerCancel:w,onTouchStart:w,onTouchMove:w,onTouchEnd:w,onWheel:w};function Pe({open:n,onOpenChange:s,images:o,index:e,onIndexChange:c,getTrigger:f}){const a=te()===!0,u=z(0),j=z(0),p=z(1),r=z(1),l=z(0),x=he(l,[.55,1],[0,1]),y=h.useRef(null),v=h.useRef("idle"),k=h.useRef(!1),C=h.useRef(async()=>{}),S=h.useRef(null),[T,N]=h.useState(null),[ee,U]=h.useState({}),g=o[e],P=o.length,B=g?ee[g.src]??"loading":"loading",L=g!==void 0&&T===g.src;h.useLayoutEffect(()=>{var I,R;if(!n)return;v.current="idle",k.current=!1,S.current=null,u.set(0),j.set(0),p.set(1),d(l,1,a?E:{duration:.24,ease:"easeOut"});const t=(I=f==null?void 0:f(e))==null?void 0:I.querySelector("img"),m=(R=y.current)==null?void 0:R.getBoundingClientRect(),b=!a&&t&&m?q(t,m,{width:window.innerWidth,height:window.innerHeight}):null;b?(u.set(b.x),j.set(b.y),p.set(b.scale),r.set(1),d(u,0,A),d(j,0,A),d(p,1,A)):(r.set(0),a||p.set(.96),d(r,1,E),d(p,1,E))},[n]),h.useLayoutEffect(()=>{const t=S.current;t!==null&&(S.current=null,j.set(0),p.set(1),u.set(a?0:t*Z),d(u,0,O),d(r,1,E).then(()=>{v.current="idle",k.current&&(k.current=!1,C.current())}))},[e,r,a,u,j,p]),h.useEffect(()=>{if(n)for(const t of[o[e-1],o[e+1]])t&&(new Image().src=t.src)},[n,o,e]);const D=h.useCallback(async()=>{var R,X;if(v.current==="closing")return;if(v.current==="stepping"){k.current=!0;return}v.current="closing",N(null);const t=(R=f==null?void 0:f(e))==null?void 0:R.querySelector("img"),m=(X=y.current)==null?void 0:X.getBoundingClientRect(),b=!a&&!L&&t&&m?q(t,m,{width:window.innerWidth,height:window.innerHeight}):null,I=d(l,0,a?E:{duration:.22,ease:"easeIn"});b?await Promise.all([d(u,b.x,W),d(j,b.y,W),d(p,b.scale,W),I]):await Promise.all([d(r,0,E),a?null:d(p,p.get()*.96,E),I]),s==null||s(!1)},[l,f,e,s,r,a,p,u,j,L]);h.useLayoutEffect(()=>{C.current=D},[D]);const M=h.useCallback(async t=>{const m=e+t;v.current!=="idle"||m<0||m>=P||(v.current="stepping",await Promise.all([a?null:d(u,-t*Z+u.get()*.5,E),d(r,0,{duration:.1})]),S.current=t,c(m))},[P,e,c,r,a,u]),G=Se({x:u,y:j,scale:p,backdrop:l,canGesture:()=>v.current==="idle"&&!L,canStep:t=>e+t>=0&&e+t<P,onDismiss:()=>void D(),onStep:t=>void M(t)});return g?i.jsx(ne,{open:n,onOpenChange:t=>{t||D()},children:i.jsx(se,{container:document.body,children:i.jsxs("div",{className:"contents",...Ne,children:[i.jsx(oe,{asChild:!0,children:i.jsx(_.div,{"data-slot":"image-lightbox-backdrop",style:{opacity:l},className:"bg-background/90 fixed inset-0 z-50 backdrop-blur-xl"})}),i.jsxs(re,{"data-slot":"image-lightbox","aria-describedby":void 0,onOpenAutoFocus:t=>{var m;t.preventDefault(),(m=t.currentTarget)==null||m.focus()},onFocusOutside:t=>t.preventDefault(),onCloseAutoFocus:t=>{const m=f==null?void 0:f(e);m&&(t.preventDefault(),m.focus({preventScroll:!0}))},onKeyDown:t=>{t.key==="ArrowRight"?M(1):t.key==="ArrowLeft"&&M(-1)},onClick:t=>{var R,X;const m=t.target;if(G.endedDrag()||m.closest("button"))return;const b=(X=(R=y.current)==null?void 0:R.querySelector("img"))==null?void 0:X.getBoundingClientRect();b!==void 0&&t.clientX>=b.left&&t.clientX<=b.right&&t.clientY>=b.top&&t.clientY<=b.bottom||D()},...G.handlers,className:"fixed inset-0 z-50 flex touch-none flex-col outline-none select-none",children:[i.jsx(ie,{className:"sr-only",children:g.alt||"Image"}),i.jsxs(_.div,{style:{opacity:x},className:"flex shrink-0 items-center justify-between gap-2 pt-[max(0.75rem,env(safe-area-inset-top))] pr-[max(0.75rem,env(safe-area-inset-right))] pb-2 pl-[max(0.75rem,env(safe-area-inset-left))]",children:[i.jsxs("p",{"aria-live":"polite",className:Y("text-muted-foreground px-2 text-sm tabular-nums",P<2&&"invisible"),children:[e+1," of ",P]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(F,{label:"Download image",onClick:()=>void be(g),children:i.jsx(ce,{className:"size-[18px]"})}),i.jsx(F,{label:"Close",onClick:()=>void D(),children:i.jsx(ae,{className:"size-5"})})]})]}),i.jsxs("div",{className:"relative min-h-0 flex-1 px-3 sm:px-20",children:[i.jsxs("div",{ref:y,className:"relative h-full w-full",children:[i.jsx(_.div,{style:{x:u,y:j,scale:p,opacity:r},className:"h-full w-full",children:i.jsx(fe,{centerOnInit:!0,minScale:1,maxScale:8,doubleClick:{mode:"toggle",step:1.2},wheel:{step:.15},panning:{disabled:!L,velocityDisabled:!0},onTransform:(t,m)=>N(m.scale>1.01?g.src:null),children:i.jsx(me,{wrapperClass:"!h-full !w-full",contentClass:"!h-full !w-full flex items-center justify-center",children:B==="error"?i.jsxs("p",{className:"text-muted-foreground flex items-center gap-2 text-sm",children:[i.jsx(pe,{"aria-hidden":!0,className:"size-4"}),"This image couldn’t be loaded."]}):i.jsx("img",{src:g.src,alt:g.alt,draggable:!1,onLoad:()=>U(t=>({...t,[g.src]:"loaded"})),onError:()=>U(t=>({...t,[g.src]:"error"})),className:Y("max-h-full max-w-full rounded-lg object-contain shadow-2xl shadow-black/25",L?"cursor-grab active:cursor-grabbing":"cursor-zoom-in")})})},g.src)}),B==="loading"&&i.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:i.jsx(le,{size:"md",label:"Loading image",className:"text-muted-foreground"})})]}),e>0&&i.jsx(J,{direction:-1,fade:x,onClick:()=>void M(-1)}),e<P-1&&i.jsx(J,{direction:1,fade:x,onClick:()=>void M(1)})]}),i.jsx(_.div,{style:{opacity:x},className:"flex min-h-12 shrink-0 items-center justify-center px-6 pt-2 pb-[max(0.75rem,env(safe-area-inset-bottom))]",children:g.alt&&i.jsx("p",{className:"text-muted-foreground line-clamp-2 max-w-prose text-center text-sm",children:g.alt})})]})]})})}):null}function F({label:n,onClick:s,fade:o,className:e,children:c}){return i.jsx(_.button,{type:"button","aria-label":n,title:n,onClick:s,style:o?{opacity:o}:void 0,className:Y("focus-ring bg-background/70 text-foreground border-border/60 hover:bg-background","flex size-10 items-center justify-center rounded-full border shadow-sm backdrop-blur-md","transition-colors duration-150 motion-reduce:transition-none",e),children:c})}function J({direction:n,fade:s,onClick:o}){return i.jsx(F,{label:n===1?"Next image":"Previous image",onClick:o,fade:s,className:Y("absolute top-1/2 hidden -translate-y-1/2 sm:flex",n===1?"right-4":"left-4"),children:n===1?i.jsx(ue,{className:"size-5"}):i.jsx(de,{className:"size-5"})})}export{Pe as ImageLightbox};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{fi as h,fj as f,fk as k,r as i,fl as x,fm as V,fn as C,fo as I,fp as y,W as j}from"./index-BSNB2iOV.js";function E(...e){const n=!Array.isArray(e[0]),t=n?0:-1,s=e[0+t],o=e[1+t],a=e[2+t],c=e[3+t],r=h(o,a,c);return n?r(s):r}function L(e){const n=f(()=>k(e)),{isStatic:t}=i.useContext(x);if(t){const[,s]=i.useState(e);i.useEffect(()=>n.on("change",s),[])}return n}function m(e,n){const t=L(n()),s=()=>t.set(n());return s(),V(()=>{const o=()=>I.preRender(s,!1,!0),a=e.map(c=>c.on("change",o));return()=>{a.forEach(c=>c()),C(s)}}),t}function M(e){y.current=[],e();const n=m(y.current,e);return y.current=void 0,n}function b(e,n,t,s){if(typeof e=="function")return M(e);if(t!==void 0&&!Array.isArray(t)&&typeof n!="function")return p(e,n,t,s);const c=typeof n=="function"?n:E(n,t,s),r=Array.isArray(e)?l(e,c):l([e],([A])=>c(A)),u=Array.isArray(e)?void 0:e.accelerate;return u&&!u.isTransformed&&typeof n!="function"&&Array.isArray(t)&&(s==null?void 0:s.clamp)!==!1&&(r.accelerate={...u,times:n,keyframes:t,isTransformed:!0}),r}function l(e,n){const t=f(()=>[]);return m(e,()=>{t.length=0;const s=e.length;for(let o=0;o<s;o++)t[o]=e[o].get();return n(t)})}function p(e,n,t,s){const o=f(()=>Object.keys(t)),a=f(()=>({}));for(const c of o)a[c]=b(e,n,t[c],s);return a}/**
|
|
2
|
-
* @license lucide-react v1.48.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const d={name:"image-off",size:24,node:[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]};d.node;const v=j(d);export{v as I,b as a,L as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ge as ce,j as e,gf as me,gg as ue,gh as P,gi as xe,gj as F,cQ as he,cf as U,r as k,ak as L,gk as C,H as A,aV as V,X,gl as ge,gm as pe,g3 as Y,g4 as Q,B as E,f as J,g5 as W,a2 as fe,a3 as je,a4 as ve,gn as Z,go as Ne,a7 as w,gp as ee,gq as be,gr as se,a0 as ye,bd as we,fN as Se,gs as ke,fH as Ce,fI as Ee,gt as $e,gu as Pe,T as Te,G as z,ew as Re,gv as B,gw as Ae,gx as _e,_ as I,$ as De,gy as Ie,gz as Le,gA as ze,gB as Oe,gC as Me,gD as Fe,gE as Be,gF as H,dX as He,gG as qe,gH as q}from"./index-BSNB2iOV.js";import{gI as bs,gJ as ys,gK as ws,gL as Ss,gM as ks,fL as Cs}from"./index-BSNB2iOV.js";import{u as Ge}from"./use-deep-link-scroll-BdGMaupf.js";import{M as te}from"./more-details-7psgoF8x.js";import{C as Ke}from"./card-ZF4yWM1Y.js";import{u as Ue,a as Ve}from"./use-panel-tab-placements-Bn-CIS6M.js";import{C as ne,a as ae,b as re,c as ie,d as T,e as R}from"./command-D2uvj-5S.js";import{F as oe}from"./file-text-BcDT6eqO.js";const Xe=["server_crashed","server_out_of_memory","server_unresponsive","isolation_unavailable","server_start_failed","server_start_timeout"],Ye={server_crashed:s=>`${s} stopped unexpectedly 3 times. Reload it to try again.`,server_out_of_memory:s=>`${s} ran out of memory and stopped. Reload it to try again.`,server_unresponsive:s=>`${s} stopped responding, so DorkOS stopped it.`,isolation_unavailable:s=>`${s} can’t run with its limits on this computer.`,server_start_failed:s=>`${s} couldn’t start. Reload it to try again.`,server_start_timeout:s=>`${s} took too long to start. Reload it to try again.`};function O(s){return Xe.includes(s)}function Qe(s,r){return O(s)?Ye[s](r):null}function Je(s){return`Restarting ${s}…`}function We({extensionId:s}){const r=ce("right-panel").filter(i=>i.extensionId===s);return r.length===0?null:e.jsx("div",{className:"space-y-3 pt-1","data-testid":`panel-tab-placement-${s}`,children:r.map(i=>e.jsx(es,{tab:i,labelled:r.length>1},i.id))})}function Ze(){var i;const s=(i=he().data)==null?void 0:i.agents,r=U().data;return k.useMemo(()=>{const l=new Map((s??[]).map(n=>[n.id,L(n)])),o=new Map((r??[]).map(n=>[n.id,C(n)]));return{agents:s??[],rooms:r??[],agentNames:l,roomNames:o}},[s,r])}function es({tab:s,labelled:r}){const i=me(Ue(),s.id),{setPlacement:l}=Ve(),o=Ze(),n=ue(i,s.declaredPlacement),x=n.show.pages.includes(P),d=a=>l(s.id,{show:a.show,hide:a.hide}),u=a=>a.kind==="agents"?o.agentNames.get(a.id)??"An agent that is gone":a.kind==="rooms"?o.roomNames.get(a.id)??"A channel that is gone":ge(a.id),m=(a,h)=>["agents","rooms","pages"].flatMap(v=>a[v].filter(c=>h||c!==P).map(c=>({kind:v,id:c}))),t=(a,h)=>({...a,[h.kind]:a[h.kind].filter(v=>v!==h.id)}),f=m(n.show,!1),N=m(n.hide,!0);return e.jsxs("div",{className:"space-y-2","data-testid":`panel-tab-placement-${s.id}`,children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm",children:r?`${s.title} tab shows`:"Panel tab shows"}),e.jsxs(xe,{value:x?"everywhere":"only",onValueChange:a=>d({hide:n.hide,show:a==="everywhere"?{...n.show,pages:[P]}:{...n.show,pages:n.show.pages.filter(h=>h!==P)}}),"aria-label":`Where the ${s.title} tab shows`,children:[e.jsx(F,{value:"everywhere",children:"Everywhere"}),e.jsx(F,{value:"only",children:"Only in…"})]}),i&&e.jsx("button",{type:"button",onClick:()=>l(s.id,null),className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm text-xs underline underline-offset-2",children:s.declaredPlacement?"Use its default":"Reset"})]}),!x&&e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.map(a=>e.jsx(G,{place:a,name:u(a),removeLabel:`Remove ${u(a)}`,onRemove:()=>d({...n,show:t(n.show,a)})},`${a.kind}:${a.id}`)),e.jsx(ts,{tabTitle:s.title,names:o,taken:n.show,onAdd:a=>d({show:{...n.show,[a.kind]:[...n.show[a.kind],a.id]},hide:t(n.hide,a)})}),f.length===0&&e.jsx("span",{className:"text-muted-foreground text-xs",children:"Shows nowhere yet. Add a place."})]}),N.length>0&&e.jsxs("div",{role:"group","aria-labelledby":`${s.id}-hidden-in`,className:"flex flex-wrap items-center gap-1.5",children:[e.jsx("span",{id:`${s.id}-hidden-in`,className:"text-muted-foreground text-xs",children:"Hidden in"}),N.map(a=>e.jsx(G,{place:a,name:u(a),removeLabel:`Show in ${u(a)} again`,onRemove:()=>d({...n,hide:t(n.hide,a)})},`${a.kind}:${a.id}`))]})]})}const ss={agents:V,rooms:A,pages:oe};function G({place:s,name:r,removeLabel:i,onRemove:l}){const o=ss[s.kind];return e.jsxs("span",{className:"bg-muted inline-flex h-6 items-center gap-1 rounded-md pr-0.5 pl-1.5 text-xs",children:[e.jsx(o,{className:"text-muted-foreground size-3","aria-hidden":!0}),e.jsx("span",{className:"max-w-40 truncate",children:r}),e.jsx("button",{type:"button",onClick:l,"aria-label":i,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm p-0.5",children:e.jsx(X,{className:"size-3"})})]})}function ts({tabTitle:s,names:r,taken:i,onAdd:l}){const[o,n]=k.useState(!1),x=t=>{l(t),n(!1)},d=pe.filter(t=>!i.pages.includes(t.key)),u=r.agents.filter(t=>!i.agents.includes(t.id)),m=r.rooms.filter(t=>!i.rooms.includes(t.id));return e.jsxs(Y,{open:o,onOpenChange:n,children:[e.jsx(Q,{asChild:!0,children:e.jsxs(E,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs","aria-label":`Add a place for the ${s} tab`,children:[e.jsx(J,{className:"size-3"}),"Add"]})}),e.jsx(W,{align:"start",className:"w-64 p-0",children:e.jsxs(ne,{children:[e.jsx(ae,{placeholder:"Find an agent, channel or page"}),e.jsxs(re,{className:"max-h-64",children:[e.jsx(ie,{children:"Nothing matches."}),u.length>0&&e.jsx(T,{heading:"Agents",children:u.map(t=>e.jsxs(R,{value:`agent ${L(t)} ${t.id}`,onSelect:()=>x({kind:"agents",id:t.id}),children:[e.jsx(V,{className:"size-3.5"}),L(t)]},t.id))}),m.length>0&&e.jsx(T,{heading:"Channels and DMs",children:m.map(t=>e.jsxs(R,{value:`room ${C(t)} ${t.id}`,onSelect:()=>x({kind:"rooms",id:t.id}),children:[e.jsx(A,{className:"size-3.5"}),C(t)]},t.id))}),d.length>0&&e.jsx(T,{heading:"Pages",children:d.map(t=>e.jsxs(R,{value:`page ${t.label}`,onSelect:()=>x({kind:"pages",id:t.key}),children:[e.jsx(oe,{className:"size-3.5"}),t.label]},t.key))})]})]})})]})}const de=s=>[...Ne.detail(s),"room-access"];function ns(s){return fe({queryKey:de(s),queryFn:async()=>{const r=await fetch(Z(`/extensions/${s}/room-access`));if(!r.ok)throw new Error(`Couldn’t load the rooms. The server answered ${r.status}.`);return(await r.json()).roomIds}})}function as(s){const r=je();return ve({mutationFn:async i=>{const l=await fetch(Z(`/extensions/${s}/room-access`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({roomIds:i})});if(!l.ok){const o=await l.json().catch(()=>({}));throw new Error(o.message??o.error??"Couldn’t save the rooms. Try again.")}return(await l.json()).roomIds},onSuccess:i=>{r.setQueryData(de(s),i)}})}function rs({extensionId:s,name:r}){const i=ns(s).data??[],{mutate:l}=as(s),o=U().data,n=k.useMemo(()=>(o??[]).filter(m=>!m.bridge),[o]),x=k.useMemo(()=>new Map((o??[]).map(m=>[m.id,C(m)])),[o]),d=m=>l(m,{onError:t=>w.error(t.message)}),u=m=>x.get(m)??"A room that is gone";return e.jsxs("div",{className:"space-y-1.5 pt-1","data-testid":`room-access-${s}`,children:[e.jsx("p",{className:"text-sm",children:"Rooms it can use"}),e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[i.map(m=>e.jsxs("span",{className:"bg-muted inline-flex h-6 items-center gap-1 rounded-md pr-0.5 pl-1.5 text-xs",children:[e.jsx(A,{className:"text-muted-foreground size-3","aria-hidden":!0}),e.jsx("span",{className:"max-w-40 truncate",children:u(m)}),e.jsx("button",{type:"button",onClick:()=>d(i.filter(t=>t!==m)),"aria-label":`Remove ${u(m)}`,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm p-0.5",children:e.jsx(X,{className:"size-3"})})]},m)),e.jsx(is,{name:r,rooms:n.filter(m=>!i.includes(m.id)),onAdd:m=>d([...i,m])})]}),e.jsx("p",{className:"text-muted-foreground text-xs",children:i.length===0?"None yet. It can’t read or reply anywhere.":"It reads and replies as you, only here."})]})}function is({name:s,rooms:r,onAdd:i}){const[l,o]=k.useState(!1);return e.jsxs(Y,{open:l,onOpenChange:o,children:[e.jsx(Q,{asChild:!0,children:e.jsxs(E,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs","aria-label":`Add a room for ${s}`,children:[e.jsx(J,{className:"size-3"}),"Add"]})}),e.jsx(W,{align:"start",className:"w-64 p-0",children:e.jsxs(ne,{children:[e.jsx(ae,{placeholder:"Find a channel or DM"}),e.jsxs(re,{className:"max-h-64",children:[e.jsx(ie,{children:"Nothing matches."}),r.length>0&&e.jsx(T,{heading:"Channels and DMs",children:r.map(n=>e.jsxs(R,{value:`room ${C(n)} ${n.id}`,onSelect:()=>{i(n.id),o(!1)},children:[e.jsx(A,{className:"size-3.5"}),C(n)]},n.id))})]})]})})]})}const os=new Set(["disabled","discovered","incompatible","invalid"]),ds="/marketplace?view=installed";function ls({extension:s,onToggle:r,isToggling:i,onSetRunApproval:l,isSettingApproval:o,onReload:n,isReloading:x}){var M;const{manifest:d,status:u,scope:m,error:t,serverError:f,origin:N,approvedToRun:a}=s,[h,v]=k.useState(!1),c=!os.has(u),g=u==="incompatible",b=u==="invalid",p=u==="compile_error"||u==="activate_error",S=!g&&!b,j=!(N==="core"&&d.canDisable===!1),$=s.hasServerEntry||s.hasDataProxy,y=ee(s),le=be(s.id,se(y)),_=p?"Not working":g?"Incompatible":b?"Can’t load":null;return e.jsx(Ke,{"data-slot":"extension-card","data-testid":`extension-card-${s.id}`,"data-section":s.id,radius:"lg",gap:"none",className:z(p&&"border-amber-500/50",(g||b)&&"opacity-70"),children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p&&e.jsx(ye,{className:"text-status-warning-dot size-4 shrink-0","aria-hidden":"true"}),(g||b)&&!p&&e.jsx(we,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),!p&&!g&&!b&&e.jsx(Se,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":"true"}),e.jsx("span",{className:"font-medium",children:d.name}),e.jsxs("span",{className:"text-muted-foreground text-sm",children:["v",d.version]}),s.devLink&&e.jsx(ke,{})]}),s.devLink&&e.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1","data-testid":`extension-dev-link-${s.id}`,children:[e.jsx(Ce,{path:s.devLink.path,className:"min-w-0"}),e.jsx("button",{type:"button",onClick:()=>void Ee(ds),className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm text-xs underline underline-offset-2",children:"Unlink or switch"})]}),d.description&&e.jsx("p",{className:"text-muted-foreground text-sm",children:d.description}),e.jsx($e,{gifts:Pe(s),"data-testid":`extension-agent-gifts-${s.id}`}),c&&e.jsx(We,{extensionId:s.id}),((M=d.capabilities)==null?void 0:M.rooms)===!0&&e.jsx(rs,{extensionId:s.id,name:d.name}),g&&d.minHostVersion&&e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Needs DorkOS ",d.minHostVersion," or newer"]}),p&&t&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("p",{className:"text-status-warning-fg text-sm",children:[u==="compile_error"?"Couldn’t build: ":"Couldn’t start: ",t.message]}),t.details&&e.jsxs("button",{type:"button",onClick:()=>v(D=>!D),className:"text-muted-foreground hover:text-foreground flex items-center gap-1 text-xs transition-colors","aria-expanded":h,children:[e.jsx(Te,{className:z("size-3 transition-transform",h&&"rotate-180")}),h?"Hide details":"Show details"]}),h&&t.details&&e.jsx("pre",{className:"bg-muted mt-1 max-h-32 overflow-auto rounded-md p-2 text-xs",children:t.details})]}),f&&O(f.code)&&e.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1","data-testid":`extension-server-status-${s.id}`,children:[e.jsx("p",{className:"text-status-warning-fg text-sm",children:f.message||Qe(f.code,d.name)}),e.jsx("button",{type:"button",onClick:n,disabled:x,className:"text-muted-foreground hover:text-foreground focus-ring rounded-sm text-xs underline underline-offset-2 disabled:opacity-50",children:"Reload"})]}),s.restartingAt&&!f&&e.jsx("p",{className:"text-muted-foreground text-sm",role:"status",children:Je(d.name)}),f&&!O(f.code)&&e.jsxs("p",{className:"text-status-warning-fg text-sm",children:["Couldn’t rebuild its server part: ",f.message,". The last version still runs."]}),N==="user"&&(a?e.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-center gap-2 text-xs","data-testid":`extension-run-allowed-${s.id}`,children:[e.jsx(Re,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e.jsx("span",{children:"You allowed this to run."}),s.originProblem==="changed"&&e.jsx("span",{children:"You approved its changed files. Any further change asks again."}),e.jsx("button",{type:"button",onClick:()=>l(s.id,!1),disabled:o,className:"hover:text-foreground underline underline-offset-2 disabled:opacity-50",children:"Stop it"}),e.jsx(B,{permissions:y,className:"basis-full","data-testid":`extension-permissions-${s.id}`})]}):e.jsxs("div",{className:"space-y-2 rounded-lg border border-amber-500/40 bg-amber-500/5 p-3","data-testid":`extension-needs-approval-${s.id}`,children:[e.jsx("p",{className:"text-sm font-medium",children:"This extension is waiting for you"}),s.originProblem&&e.jsx("p",{className:"text-status-warning-fg text-sm","data-testid":`extension-origin-problem-${s.id}`,children:s.originProblem==="changed"?"Its files changed after install, so DorkOS can’t vouch for it. Look it over first.":s.originProblem==="dev-link"?"It runs from your folder, so DorkOS can’t vouch for its source.":"Its plugin links to files elsewhere, so DorkOS can’t vouch for its source."}),e.jsx(B,{permissions:y,added:le,"data-testid":`extension-permissions-${s.id}`}),e.jsx("p",{className:"text-muted-foreground text-sm",children:Ae($,(y==null?void 0:y.runtime)==="subprocess")}),e.jsx("p",{className:"text-muted-foreground text-sm",children:_e}),e.jsx(E,{size:"sm",onClick:()=>l(s.id,!0),disabled:o,"data-testid":`extension-approve-run-${s.id}`,children:"Turn it on"})]})),e.jsxs("div",{className:"text-muted-foreground flex flex-wrap items-center gap-2 text-xs",children:[e.jsx(I,{variant:"outline",children:m}),_&&e.jsx(I,{variant:_==="Not working"?"destructive":"secondary","data-testid":`extension-health-${s.id}`,children:_}),d.author&&e.jsx("span",{children:d.author})]})]}),e.jsx("div",{className:"flex shrink-0 items-center pt-0.5",children:j?e.jsx(De,{checked:c,onCheckedChange:D=>r(s.id,D),disabled:!S||i,"aria-label":`${c?"Disable":"Enable"} ${d.name}`}):e.jsx(I,{variant:"secondary",title:"This extension is always on","data-testid":`extension-required-${s.id}`,children:"Required"})})]})})}function K(s){const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function cs(){const{data:s=[]}=Ie(),{stop:r,pendingSource:i}=Le();return s.length===0?null:e.jsxs("section",{className:"space-y-3","data-testid":"trusted-sources-section",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("h3",{className:"text-sm font-semibold",children:"Trusted sources"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Extensions from these sources turn on without asking."}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Stop trusting one, and extensions already on keep running."}),e.jsx(te,{className:"text-muted-foreground text-sm",label:"If you stop trusting one",openLabel:"If you stop trusting one",children:e.jsx("p",{children:"Newer versions and new extensions from it wait for your yes."})})]}),e.jsx("ul",{className:"divide-y rounded-xl border",children:s.map(({source:l,trustedAt:o})=>e.jsxs("li",{className:"flex flex-wrap items-center justify-between gap-x-3 gap-y-1.5 px-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate font-mono text-sm",children:l}),K(o)&&e.jsxs("p",{className:"text-muted-foreground text-xs",children:["Trusted ",K(o)]})]}),e.jsx(E,{type:"button",variant:"outline",size:"sm",disabled:i===l,onClick:()=>r(l),children:"Stop trusting"})]},l))})]})}function js(){const{data:s=[],isLoading:r}=ze(),{section:i}=Oe();Ge(r?null:i);const l=Me(),o=Fe(),n=Be(),x=H(!0),d=H(!1),u=new Set([...l.variables?[l.variables]:[],...o.variables?[o.variables]:[]]),m=new Set([...x.isPending&&x.variables?[x.variables.id]:[],...d.isPending&&d.variables?[d.variables.id]:[]]);function t(c,g){const b=g?x:d,p=s.find(j=>j.id===c);if(!p)return;const S=g?se(ee(p)):void 0;b.mutate({id:c,version:p.manifest.version,plugin:p.sourcePlugin??null,...S?{permissions:S}:{}},{onSuccess:j=>{g&&q.getState().forget(c);const $=j.extension.manifest.name,y=j.extension.isolation?"":" inside DorkOS";w.success(g?`${$} can now run${y}`:`${$} stopped running`)},onError:j=>{if(j instanceof qe&&j.stale){S&&q.getState().remember(c,S),w.error(`${p.manifest.name} changed since you saw it. Check it again.`);return}w.error(g?"Couldn’t let it run.":"Couldn’t stop it running.",{description:j.message})}})}async function f(c,g){(g?l:o).mutate(c,{onError:p=>{w.error(g?"Couldn’t turn that on.":"Couldn’t turn that off.",{description:p.message})}})}function N(){n.mutate(void 0,{onSuccess:c=>{w.success(`Reloaded ${c.length} extension${c.length===1?"":"s"}`)},onError:c=>{w.error("Couldn’t reload your extensions.",{description:c.message})}})}if(r)return e.jsx("div",{className:"text-muted-foreground py-8 text-center text-sm",children:"Loading extensions…"});const a=s.filter(c=>c.origin==="core"),h=s.filter(c=>c.origin==="user"),v=c=>e.jsx(ls,{extension:c,onToggle:f,isToggling:u.has(c.id),onSetRunApproval:t,isSettingApproval:m.has(c.id),onReload:N,isReloading:n.isPending},c.id);return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"text-muted-foreground space-y-1 text-sm",children:[e.jsx("p",{children:"Extensions add new screens and tools to DorkOS."}),e.jsxs(te,{children:[e.jsx("p",{children:"Core extensions come with DorkOS."}),e.jsxs("p",{children:["Installed ones live in"," ",e.jsx("code",{className:"bg-muted rounded px-1",children:"~/.dork/extensions/"})," or your project’s"," ",e.jsx("code",{className:"bg-muted rounded px-1",children:".dork/extensions/"}),"."]})]})]}),s.length===0?e.jsx("div",{className:"text-muted-foreground py-8 text-center text-sm","data-testid":"no-extensions",children:e.jsx("p",{children:"No extensions installed."})}):e.jsxs(e.Fragment,{children:[a.length>0&&e.jsxs("section",{className:"space-y-3","data-testid":"core-extensions-section",children:[e.jsx("h3",{className:"text-sm font-semibold",children:"Core extensions"}),e.jsx("div",{className:"space-y-3",children:a.map(v)})]}),e.jsxs("section",{className:"space-y-3","data-testid":"installed-extensions-section",children:[e.jsx("h3",{className:"text-sm font-semibold",children:"Installed extensions"}),h.length>0?e.jsx("div",{className:"space-y-3",children:h.map(v)}):e.jsxs("div",{className:"text-muted-foreground rounded-xl border border-dashed p-4 text-sm","data-testid":"no-installed-extensions",children:["No extensions installed yet. Browse"," ",e.jsx("span",{className:"text-foreground font-medium",children:"Marketplace"})," to add some."]})]})]}),e.jsx(cs,{}),e.jsx("div",{className:"flex justify-end",children:e.jsxs(E,{variant:"outline",size:"sm",onClick:N,disabled:n.isPending,"data-testid":"reload-extensions-button",children:[e.jsx(He,{className:z("mr-2 size-4",n.isPending&&"animate-spin")}),"Reload extensions"]})})]})}export{bs as ExtensionEventBridge,ys as ExtensionLoader,ws as ExtensionProvider,js as ExtensionsSettingsTab,Ss as createExtensionAPI,ks as createExtensionEventBridge,Cs as useExtensions};
|