dorkos 0.133.0 → 0.134.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 +371 -82
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-D-EHHVPa.js → AboutPage-zOZ0j1a0.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-BTHnE1vP.js → ActivityErrorState-BlHkTJeC.js} +1 -1
- package/dist/client/assets/{ActivityPage-BfSLPIdR.js → ActivityPage-LCOV7KDT.js} +1 -1
- package/dist/client/assets/{ActivityRow-PwUBjQw8.js → ActivityRow-CvDae84E.js} +1 -1
- package/dist/client/assets/{AdapterIcon-DgkNN6bi.js → AdapterIcon-Dm5QP8_9.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-DX0dzp7q.js → AdapterSetupWizard-CNga-lEN.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-ApuDEKqq.js → AgentOptionRow-CHb4ifHN.js} +1 -1
- package/dist/client/assets/{AgentPicker-BDci-9aL.js → AgentPicker-B8WFWr7p.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-B2gxCMGi.js → AgentRequestCard-Cnhi_1sr.js} +3 -3
- package/dist/client/assets/{AppearancePage-8SVnFe0k.js → AppearancePage-BI5qdQoW.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-CnL1ubxL.js → ApplyToOverridesDialog-gSHV8ggp.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-CCKhUtil.js → AttentionSignalRow-QgzOBKxa.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-B7wFPzG4.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-Ck8dc5X4.js} +3 -3
- package/dist/client/assets/{BindingDialog-C4BHVXno.js → BindingDialog-DX1N_tTX.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-7E5uwVms.js → BlintzCanvas-FqS5vfnA.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-l7lfyDGn.js → CanvasCsvContent-B9h8JQsV.js} +4 -4
- package/dist/client/assets/CanvasFileContent-BXo8hS_n.js +2 -0
- package/dist/client/assets/CanvasModel3dContent-BhAho9NF.js +2 -0
- package/dist/client/assets/{ChannelComposer-CAYvz_ZB.js → ChannelComposer-DUKyoCYz.js} +5 -5
- package/dist/client/assets/{ChatAppsOff-CNeKBVNz.js → ChatAppsOff-hxeSExhA.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-BZRcNFsS.js → CodeMirrorDiff-BoDEtyYj.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-DD5tArRn.js → CodeMirrorEditor-CU7h0emU.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-BUmsVssG.js → ComputerResourceView-Dd4Kedxf.js} +1 -1
- package/dist/client/assets/{ComputerViewer-BKMR5LkF.js → ComputerViewer-CssfoCBB.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-DYUiFmPY.js → ConnectionAccessLists-2qFBRKpv.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-DR2Kfm9Q.js → ConnectionsPage-CPyrw58B.js} +1 -1
- package/dist/client/assets/{ConventionPage-Do6q8873.js → ConventionPage-B2MERyNx.js} +2 -2
- package/dist/client/assets/{ExtensionPageRoute-CP7NM7fw.js → ExtensionPageRoute-7x-7Ad0_.js} +1 -1
- package/dist/client/assets/{FeatureDisabledState-Bi23k3rg.js → FeatureDisabledState-DsbRcnZ6.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-lRlmDXYz.js → FloatingTanStackRouterDevtools-CqogiFob-BReszru7.js} +1 -1
- package/dist/client/assets/{ForwardConsentHost-DSR1pEEK.js → ForwardConsentHost-DOwU-xQ9.js} +1 -1
- package/dist/client/assets/HandlePage-B7fNgSTl.js +1 -0
- package/dist/client/assets/{HeartbeatPage-BTNVcHOI.js → HeartbeatPage-0qi56iQb.js} +1 -1
- package/dist/client/assets/{KeyEntry-67acsEG2.js → KeyEntry-uKZG5d2z.js} +1 -1
- package/dist/client/assets/{LexicalField-Cb68LIar.js → LexicalField-CKc8eUK3.js} +2 -2
- package/dist/client/assets/{ManagesPage-ChPlBF42.js → ManagesPage-DWVLpjw2.js} +1 -1
- package/dist/client/assets/{Marketplace-CzPhJEE1.js → Marketplace-VBnmDEQE.js} +4 -4
- package/dist/client/assets/{MarketplaceSourcesView-CmQgxQmU.js → MarketplaceSourcesView-BRuo8wIH.js} +1 -1
- package/dist/client/assets/{McpAppFrame-z5JUaCSA.js → McpAppFrame-IfamHBcy.js} +1 -1
- package/dist/client/assets/{McpSigninBody-ZrnzwrOH.js → McpSigninBody-VmuxAjoo.js} +1 -1
- package/dist/client/assets/{Model3dViewer-HJpWK-JI.js → Model3dViewer-CT4aYUpn.js} +1 -1
- package/dist/client/assets/NamePage-CFRvBLJ8.js +1 -0
- package/dist/client/assets/NewDirectMessageMenu-BZFyclIS.js +1 -0
- package/dist/client/assets/{NotificationsPage-DwNUI0Z3.js → NotificationsPage-DMJf-hq3.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-RNAZY1vn.js → OpenMeshSwitch-DltP6-54.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-B7S2C_eT.js → OperatorIdentityForm-C8oS_fQG.js} +1 -1
- package/dist/client/assets/PermissionHistory-BAe31Nl3.js +1 -0
- package/dist/client/assets/{PermissionsPage-ToK0DZVV.js → PermissionsPage-CqvpcXTJ.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-BvMtUQRM.js → PersonalityPopover-D8l_Hfc1.js} +1 -1
- package/dist/client/assets/PhotoPage-DTl81tTW.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-DzbkMrUo.js → PreviewRefusedNotice-DZh7zTEt.js} +1 -1
- package/dist/client/assets/{ProfileFields-DU8dTGHT.js → ProfileFields-T1f833SK.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-BfT-ufV7.js → ProfilePanelContainer-BSbE5rqM.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-DrOtV-0N.js → ProfileRolePicker-CpAhjq-e.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-CEnhme_V.js → PromptSuggestionChips-BGZ3HP31.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-CwjpR1Tw.js → ReportsToPopover-DfmvDL7E.js} +1 -1
- package/dist/client/assets/{RoomSurface-CChzNJKw.js → RoomSurface-DCYXQ79N.js} +1 -1
- package/dist/client/assets/{RoomsPage-Dbf6ijKr.js → RoomsPage-DTMTTWEf.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-Bh5sSsSC.js → RunsOnPopover-CjJiJgly.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-BYQnY5vv.js → RuntimeConnectFlow-Dinsb9em.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-DTO5v0dP.js → RuntimeSetupDialog-UhsfZRye.js} +1 -1
- package/dist/client/assets/{SeenDevices-cuY7ASEy.js → SeenDevices-CuXXI7Jv.js} +3 -3
- package/dist/client/assets/{SessionsPage-BrqpVx-t.js → SessionsPage-Cn4rUeyL.js} +1 -1
- package/dist/client/assets/{SettingsDialog-DCAZX_1d.js → SettingsDialog-CZrhYejc.js} +3 -3
- package/dist/client/assets/{SkillsPage-D5who_ZH.js → SkillsPage-CoanF7Jz.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-BJ6XtOC5.js → TaskDialogWrapper-CU4PkcGk.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-B3SjsxQa.js → TasksEmptyState-lWVZXYPS.js} +2 -2
- package/dist/client/assets/{TasksPage-B72w7J87.js → TasksPage-BPmiut-D.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-B9ma5j-X.js → TeamComputerEntry-2RKJhINy.js} +1 -1
- package/dist/client/assets/{TodoPromiseList-DDKWAfmv.js → TodoPromiseList-iODTn1_b.js} +1 -1
- package/dist/client/assets/{TodoPromisesPage-BNXpvXzS.js → TodoPromisesPage-BCm38YVu.js} +1 -1
- package/dist/client/assets/{ToolsPage-DbJykCG3.js → ToolsPage-Bboa9crU.js} +1 -1
- package/dist/client/assets/{TopologyGraph-DKZS3nlr.js → TopologyGraph-Dw_sLFBL.js} +1 -1
- package/dist/client/assets/{TourHost-Bw3Uoea5.js → TourHost-BUV9rMNn.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-B-XCFNSd.js → UnlinkDialog-B7lL7sxN.js} +1 -1
- package/dist/client/assets/{UnreadDivider-1aPVzwd7.js → UnreadDivider-DCB47jhk.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-C5ieVv_9.js → WidgetErrorCard-D14BNvfm.js} +2 -2
- package/dist/client/assets/{WithheldExtensionsNotice-CCO4ClRZ.js → WithheldExtensionsNotice-I0VwWxDY.js} +1 -1
- package/dist/client/assets/{WorkQueuePage-BbPKNwDg.js → WorkQueuePage-wVj3wlat.js} +1 -1
- package/dist/client/assets/{WorkView-BRcytACJ.js → WorkView-MSsuFZVO.js} +1 -1
- package/dist/client/assets/{_shell-EwFeSIGp.js → _shell-Bp1Mn6YU.js} +4 -4
- package/dist/client/assets/{_shell._home-DD2mg-iK.js → _shell._home-CylH7Gjr.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-Z1QuU2M4.js → _shell._home.activity-BABzsE_Y.js} +1 -1
- package/dist/client/assets/_shell._home.index-BWXNHCGe.js +3 -0
- package/dist/client/assets/{_shell._home.tasks-BtC85Iut.js → _shell._home.tasks-BJg6t5SW.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-qMG5OJYR.js → _shell._home.workspaces-B3LBf9vr.js} +1 -1
- package/dist/client/assets/{_shell.channels-BE4EK-iM.js → _shell.channels-C0xYFINv.js} +2 -2
- package/dist/client/assets/_shell.connections-73FPamLr.js +6 -0
- package/dist/client/assets/{_shell.feedback-requests-CwKSkkuD.js → _shell.feedback-requests-BYYmQE_b.js} +1 -1
- package/dist/client/assets/_shell.marketplace-CiBixBHr.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-DPUWEdt6.js +1 -0
- package/dist/client/assets/_shell.session-CJhLuYyA.js +1 -0
- package/dist/client/assets/{_shell.team-Dm5a4f8_.js → _shell.team-BbulfYAQ.js} +3 -3
- package/dist/client/assets/_shell.threads-CRFlslhF.js +1 -0
- package/dist/client/assets/_shell.todos-CmwRh6jX.js +6 -0
- package/dist/client/assets/_shell.x._extensionId-DdKU91-V.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-DdKU91-V.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-Bu2T3jVw.js → abnfDiagram-WEYOIA3C-CF3eRhtw.js} +1 -1
- package/dist/client/assets/{access-copy-tkiFMhRf.js → access-copy-EuKlRWLG.js} +1 -1
- package/dist/client/assets/{arc-5q4SfXO9.js → arc-BqnZif1q.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-BnDMOBhV.js → architectureDiagram-ZHVYKT53-CQytXLkh.js} +1 -1
- package/dist/client/assets/{banner-CSKUrrI0.js → banner-nfkn2OLZ.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-CtushlEs.js → blockDiagram-RJAE7QA3-CXieJU3q.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-7L-qYwKH.js → c4Diagram-XDPPPE54-BPmgfFrI.js} +1 -1
- package/dist/client/assets/channel-BOMQJ9aR.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-ksBVyqQ3.js → chunk-2E7WHVMD-BtumkVCk.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-Bfqdkihb.js → chunk-2Q5K7J3B-BUsPKn6-.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-Brf2dH9x.js → chunk-4EMNKR2T-CuRou8Oa.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-BlE7Cq40.js → chunk-55XCU76K-CafKfo9G.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-Bkgg3j7L.js → chunk-5VM5RSS4-BdemtVRg.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-B9TRpN4O.js → chunk-JWPE2WC7-C1pKIt5Q.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-ZoILnIYi.js → chunk-VQ5W62QI-DPIQcwQZ.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-r2xNhaKz.js → chunk-XXDRQBXY-CDtiCG5n.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-DfV3cF7d.js → chunk-ZCHMQSOR-DsHVvsHO.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-VOVqMNNP.js → classDiagram-v2-4MYWR3UA-CNKi62Mk.js} +1 -1
- package/dist/client/assets/{command-CaUEAy3b.js → command-D1cWVheG.js} +1 -1
- package/dist/client/assets/{copy-button-BOznikwM.js → copy-button-BHHQAtAH.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-CAdBvyLz.js → cose-bilkent-JH36ORCC-CqK8lNYm.js} +1 -1
- package/dist/client/assets/{cpu-j9vX9Wfk.js → cpu-BhPT23rn.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-DcH1A9Oo.js → cynefin-EF2NZ3EQ-DUFv7wAT.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-DJuKBXHi.js → cynefinDiagram-WF24UDRP-DprACurA.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-D099H_0S.js → dagre-NK4GIZVX-CFCbvrTm.js} +1 -1
- package/dist/client/assets/{detail-row-Crl89jnh.js → detail-row-DBa1uo_y.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-Cd_4W9XO.js → diagram-CBK3MWTC-BgRgWBNs.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D-Bc7aQKt3.js → diagram-I5XIIV2D-Bvmxrku7.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-awVJZ4Bg.js → diagram-ODIL2UCW-CqzUdcUW.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-dhsj9aeU.js → diagram-PFBEJUXE-DwXryVWl.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-Dm59CbiV.js → diagram-RJA3I4VV-DqGvHPAI.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-BhvcIjA9.js → diagram-TYUNFSNR-GOfZ43Y3.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-C4wT_MTC.js → ebnfDiagram-V4P3TTPT-lF7-sW99.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-CPI0zjmW.js → elk-QONTBCTQ-Cd5kFMK6.js} +1 -1
- package/dist/client/assets/{empty-state-BHcmkSzu.js → empty-state-CHse95jw.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-C_vGcbOB.js → erDiagram-KYQIGQAA-BqXJlTJO.js} +1 -1
- package/dist/client/assets/{execution-config-BS5rtvTZ.js → execution-config-U_R_H28y.js} +1 -1
- package/dist/client/assets/{file-CQGljfDT.js → file-DZ6-r1A3.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-B0a55VME.js → file-exclamation-point-CR6qeV6m.js} +1 -1
- package/dist/client/assets/{file-text-Cycq_S0e.js → file-text-4-Vc22J-.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-B6sJdG3Q.js → find-latest-widget-fence-D61kyRv5.js} +2 -2
- package/dist/client/assets/{flowDiagram-IUGLLWBU-_VNfmnxx.js → flowDiagram-IUGLLWBU-C18poulN.js} +1 -1
- package/dist/client/assets/{form-BL14vwyB.js → form-B51NLChW.js} +1 -1
- package/dist/client/assets/{format-cron-meJMgYNe.js → format-cron-CrDI8dcD.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-o0gGU7X_.js → ganttDiagram-R7GPNTJY-BHa77y_O.js} +1 -1
- package/dist/client/assets/{git-branch-CsLE6G0Y.js → git-branch-CzV_Mp0H.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DjXjUpJo.js → gitGraphDiagram-PDYL7XHY-DdfDaaK5.js} +1 -1
- package/dist/client/assets/{graph-BMYee_VK.js → graph-stVQph_6.js} +1 -1
- package/dist/client/assets/{heart-Cn3a-UQI.js → heart-B7rSSNjF.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-DsX5yCC0.js → highlighted-body-KPVGNVTW-BDppiTvx.js} +1 -1
- package/dist/client/assets/{image-lightbox-BZ_eBZgA.js → image-lightbox-DwZmxmRU.js} +1 -1
- package/dist/client/assets/{image-off-DjR7LI5G.js → image-off-B65OAyEw.js} +1 -1
- package/dist/client/assets/{index-BR1m9FON.js → index-B2JoVHek.js} +231 -231
- package/dist/client/assets/{index-Cb_p_ynP.js → index-BC7vn8oJ.js} +1 -1
- package/dist/client/assets/{index-DARchye_.js → index-BD0bxxdG.js} +1 -1
- package/dist/client/assets/{index-BxWr8Mrf.js → index-BJE7FpeW.js} +1 -1
- package/dist/client/assets/{index-CczLBUKI.js → index-BLepK8Tm.js} +1 -1
- package/dist/client/assets/{index-Z2ApBQt4.js → index-BNMepjWi.js} +1 -1
- package/dist/client/assets/{index-H4e5Wpmi.js → index-B_7AgsWu.js} +1 -1
- package/dist/client/assets/{index-Cgjq7a-8.js → index-BchQNMCW.js} +1 -1
- package/dist/client/assets/{index-DFb4kOjm.js → index-BgKo-iME.js} +2 -2
- package/dist/client/assets/{index-Kt6r3DQg.js → index-BncKYCzR.js} +1 -1
- package/dist/client/assets/{index-CpWxcN5D.js → index-Bocv39Dy.js} +1 -1
- package/dist/client/assets/{index-BcnwvTnt.js → index-Bx9vkvgI.js} +1 -1
- package/dist/client/assets/{index-o6kGmVGx.js → index-ByKStnc0.js} +1 -1
- package/dist/client/assets/index-C2FXv0W1.js +1 -0
- package/dist/client/assets/index-CCRFURxg.js +1 -0
- package/dist/client/assets/{index-DLN0kcME.js → index-CNXWcd0h.js} +1 -1
- package/dist/client/assets/index-CT9qR-37.js +1 -0
- package/dist/client/assets/{index-vHKVYcH7.js → index-CXbvnAWk.js} +1 -1
- package/dist/client/assets/{index-Cv67OXfk.js → index-CaWtXSTG.js} +1 -1
- package/dist/client/assets/{index-DQ8uADJF.js → index-CayDBSDe.js} +1 -1
- package/dist/client/assets/{index-4rSR8lau.js → index-Ci17H_nH.js} +1 -1
- package/dist/client/assets/{index-DqZmnJED.js → index-CpCaGGh0.js} +1 -1
- package/dist/client/assets/{index-CfKSlYjb.js → index-CvLTkguu.js} +1 -1
- package/dist/client/assets/{index-dY7IFpet.js → index-CyTJNCti.js} +1 -1
- package/dist/client/assets/{index-Joav7LQU.js → index-CzDpDW1S.js} +1 -1
- package/dist/client/assets/{index-B4TxpTKD.js → index-D1FZurLO.js} +1 -1
- package/dist/client/assets/{index-BmKHO-FD.js → index-D5HU9MN-.js} +1 -1
- package/dist/client/assets/index-DBjkg_lo.css +1 -0
- package/dist/client/assets/{index-gmyiXkmr.js → index-DCymAWyX.js} +1 -1
- package/dist/client/assets/{index-faSyUc2q.js → index-DDPQZJQz.js} +1 -1
- package/dist/client/assets/{index-Cf4Gtxf9.js → index-DK-qQXH4.js} +1 -1
- package/dist/client/assets/{index-DrlB9RSk.js → index-DTJV1dBd.js} +1 -1
- package/dist/client/assets/{index-DiM3QX-4.js → index-Dhj4iWHB.js} +3 -3
- package/dist/client/assets/index-DxqA8BnM.js +1 -0
- package/dist/client/assets/{index-DlvUENo4.js → index-DzVJOMZm.js} +1 -1
- package/dist/client/assets/{index-47--OGKJ.js → index-FRNKkajP.js} +1 -1
- package/dist/client/assets/{index-Dfko0tSp.js → index-L1Tsd-wn.js} +1 -1
- package/dist/client/assets/{index-KganLhU1.js → index-QaablvAu.js} +2 -2
- package/dist/client/assets/{index-DMSSN08i.js → index-SawUg2NU.js} +1 -1
- package/dist/client/assets/{index-B8LqLhq7.js → index-YObNtFmj.js} +1 -1
- package/dist/client/assets/{index-1MwES_vb.js → index-iRuOpaV9.js} +1 -1
- package/dist/client/assets/{index-BOCclWF3.js → index-ulrRTPa9.js} +1 -1
- package/dist/client/assets/{index-BsZkXHsH.js → index-wcSHU-xr.js} +1 -1
- package/dist/client/assets/{index-D5Qmx1JR.js → index-yZEr0YWk.js} +3 -3
- package/dist/client/assets/{index.esm-CJIDYBqd.js → index.esm-gt8tvZ7J.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-B1mMyUlp.js → infoDiagram-MVDRKAX5-DzhnMotD.js} +1 -1
- package/dist/client/assets/{inline-code-mh48Uhbi.js → inline-code-rYW-kJLB.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-efEMQ0_X.js → ishikawaDiagram-HPEHV2GE-CfEX5E3R.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-DSAywiVk.js → journeyDiagram-BOSHW7O7-oPrRia7f.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-B9pbU4zK.js → kanban-definition-FNSA4HC5-c4CFmcMa.js} +1 -1
- package/dist/client/assets/{layers-B0Z5Od3N.js → layers-D9XZggr2.js} +1 -1
- package/dist/client/assets/{lightbulb-Cfb5ecEd.js → lightbulb-DQBO5jSg.js} +1 -1
- package/dist/client/assets/{link-2-Dzy5BUL3.js → link-2-CZiWX9vI.js} +1 -1
- package/dist/client/assets/{list-runtime-types-DLmjtBMq.js → list-runtime-types-Dry1muZ1.js} +1 -1
- package/dist/client/assets/{markdown-content-DhAtZOfj.js → markdown-content-FcvkqTTS.js} +1 -1
- package/dist/client/assets/{mention-pill-DmA8FxL4.js → mention-pill-BxASQ-6w.js} +1 -1
- package/dist/client/assets/{mermaid.core-DUIkdbeL.js → mermaid.core-BqACpHu4.js} +4 -4
- package/dist/client/assets/{message-square-off-BowIzJUV.js → message-square-off-SMiCYjYr.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-Dz7ZOR4C.js → mindmap-definition-6OY57UG3-BSYcYnyL.js} +1 -1
- package/dist/client/assets/{more-details-DV7LmY0E.js → more-details-D9_Bn2GL.js} +1 -1
- package/dist/client/assets/{owner-notice-DdFc2P8z.js → owner-notice-DO2xE-1L.js} +1 -1
- package/dist/client/assets/{package-BhKXbvU_.js → package-DpqGENzU.js} +1 -1
- package/dist/client/assets/{page-container-0sWZ3xh9.js → page-container-Cta3RqHd.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-Bjy4udre.js → pane-resize-handle-BJ0XV-Zg.js} +1 -1
- package/dist/client/assets/{paperclip-C-7LhBfl.js → paperclip-CItlLyje.js} +1 -1
- package/dist/client/assets/{path-input-BPVyI72G.js → path-input-CAkVS5XR.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-C4EOP-Fa.js → pegDiagram-ECIUJNBX-Bnc4eqtF.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CQ1OxRkv.js → pieDiagram-GNMPY74T-7gG33sSR.js} +1 -1
- package/dist/client/assets/{plug-CIZ-wWL8.js → plug-Cb8qsOxJ.js} +1 -1
- package/dist/client/assets/{primer-trigger-XA5fLzR5.js → primer-trigger-BG3lb31_.js} +2 -2
- package/dist/client/assets/{profile-errors-C1XACbc9.js → profile-errors-T-3VgU7E.js} +1 -1
- package/dist/client/assets/progress-CwpnobNW.js +1 -0
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-Cw4BdkpS.js → quadrantDiagram-D57K4MC3-Dr2Z6GbA.js} +1 -1
- package/dist/client/assets/{query-error-state-Cm-Lozlb.js → query-error-state-BV8fyXBe.js} +1 -1
- package/dist/client/assets/{radio-DQ29H26H.js → radio-SApjvqfy.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-CSKtYLmm.js → railroadDiagram-Y72NRBL7-7kfKSzWs.js} +1 -1
- package/dist/client/assets/{registry-Tbt9pcZl.js → registry-BcpatPes.js} +4 -4
- package/dist/client/assets/registry-BuTvvFn6.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-4AAUf-Zl.js → relay-trace-schemas-eOfnfe4X.js} +2 -2
- package/dist/client/assets/{repeat-B8g-x-Sc.js → repeat-BB0attnO.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-BPSBZr7X.js → requirementDiagram-EQYSW5RA-CmOVPT7N.js} +1 -1
- package/dist/client/assets/{room-files-source-BkiK4-ZI.js → room-files-source-C32w3dXr.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-DRtL-2nr.js → rotate-ccw-clock-C1SBdbZP.js} +1 -1
- package/dist/client/assets/{rotate-cw-BbHkWN-J.js → rotate-cw-BTqPAMgP.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-DVlHablQ.js → sankeyDiagram-SY24JHO5-DFcTUSd1.js} +1 -1
- package/dist/client/assets/{scroll-area-DAC7NrVU.js → scroll-area-rEyYMbHG.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU--wZkN8xk.js → sequenceDiagram-BLEHNHQU-BNY4ALqc.js} +1 -1
- package/dist/client/assets/server-BCFl_ur3.js +6 -0
- package/dist/client/assets/{shield-x-CEWfkzDN.js → shield-x-B2nLbkhR.js} +1 -1
- package/dist/client/assets/{signed-in-CMhCR-m8.js → signed-in-BcxH99a5.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-CLXc7d3S.js → sizeCapture-INFHLROL-CuNPY5HV.js} +1 -1
- package/dist/client/assets/{soul-file-CbX7rNqz.js → soul-file-ITCKiDY9.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-5xa1FM_X.js → stateDiagram-v2-A6IESKWZ-CmUdZZJs.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-DKgxJxjE.js → swimlanes-B3ENRKFQ-BmNmFgsZ.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Cd_Magxj.js +8 -0
- package/dist/client/assets/{table-D0EJT0uP.js → table-COZ3E1UU.js} +1 -1
- package/dist/client/assets/{tabs-Ctjzrm8t.js → tabs-CDr3zS_2.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-B9P7ituI.js → timeline-definition-JXYKGLGB-Cq7UTNkh.js} +1 -1
- package/dist/client/assets/{trust-dial-D__tIhzt.js → trust-dial-BsEooNiu.js} +2 -2
- package/dist/client/assets/{trust-posture-DaHHtOZn.js → trust-posture-Dk5ctS0Q.js} +1 -1
- package/dist/client/assets/{unplug-B-ipHefz.js → unplug-DB0xx2bf.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-C8swqaTn.js → unverified-catalog-notice-CQoKhOjQ.js} +1 -1
- package/dist/client/assets/{use-bindings-gLHRNAFU.js → use-bindings-CEhDyZoj.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-CjpxcBIe.js → use-composer-prefs-uC9mUd0f.js} +1 -1
- package/dist/client/assets/{use-connector-management-BLiCJMgU.js → use-connector-management-54m5ZcyP.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-r2nKjzA-.js → use-deep-link-scroll-C4DQRnGX.js} +1 -1
- package/dist/client/assets/{use-delete-binding-BSiOik_K.js → use-delete-binding-Cr9soEn-.js} +1 -1
- package/dist/client/assets/{use-dev-links-DXcIlMf-.js → use-dev-links-CXGFC-N0.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-BbH8N4mE.js → use-direct-message-panel-BxwiNzks.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-mmKni5ui.js → use-external-adapter-catalog-D3xkw3mY.js} +1 -1
- package/dist/client/assets/{use-filter-state-CiPZ0AIH.js → use-filter-state-N0pdU49v.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-DXroUzfN.js → use-full-activity-feed-COuRZq_w.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-CgAcZ8iA.js +1 -0
- package/dist/client/assets/{use-mesh-topology-upehQ5Cv.js → use-mesh-topology-BSRzCO1U.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-IHwyriaF.js → use-mounted-ref-pxDiCOyS.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-BHOK2P2l.js → use-notification-prefs-6N6Y4rqG.js} +1 -1
- package/dist/client/assets/use-pending-read-HbJdwxw1.js +1 -0
- package/dist/client/assets/{use-personality-commit-Chf3UX8P.js → use-personality-commit-Dl3YK7Qd.js} +1 -1
- package/dist/client/assets/{use-promo-activation-Dlw6bg7G.js → use-promo-activation-DXRrwLes.js} +2 -2
- package/dist/client/assets/{use-promo-dismissals-Dx_fli7I.js → use-promo-dismissals-DnqiKhqW.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-CG_I6a-O.js → use-pulse-freshness-D9uzSgz_.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-Bgrpr3bO.js → use-room-follow-claim-Ch6ZoOAv.js} +1 -1
- package/dist/client/assets/{use-room-sessions-DecGrP3E.js → use-room-sessions-C3NpXFWY.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-CDkh-Ujm.js → use-roving-tab-list-LZku4K5R.js} +1 -1
- package/dist/client/assets/{use-session-canvas-tvLLPQcm.js → use-session-canvas-Bub7vCaj.js} +6 -6
- package/dist/client/assets/{use-status-budget-BBl2yxLR.js → use-status-budget-DrAROrOw.js} +2 -2
- package/dist/client/assets/{use-todos-BzRauzdQ.js → use-todos-COW66MhB.js} +1 -1
- package/dist/client/assets/{use-transform-DzJeHpxm.js → use-transform-CXFCVk8z.js} +1 -1
- package/dist/client/assets/{use-unclaimed-chats--HZdmq4F.js → use-unclaimed-chats-T3kskM3T.js} +1 -1
- package/dist/client/assets/use-update-config-BhLEnZe5.js +1 -0
- package/dist/client/assets/{useMutationState-DIywUTDG.js → useMutationState-6Zu1xBsZ.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-C9aLJ03F.js → usecaseDiagram-WPOLBNNX-CUu-YUIY.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-ChBIWbL0.js → vennDiagram-Q3Y3IDCW-CfA29THe.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-DvQDOaTm.js → wardleyDiagram-IVAIDKWA-CrARcH-W.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-8FxLPP2c.js → xychartDiagram-4URNHDU4-BCVaXTG3.js} +1 -1
- package/dist/client/assets/{zap-DSllMMHe.js → zap-C-pr1sst.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261108035027_dor3547_extension_grant_subject.sql +30 -0
- package/dist/drizzle/meta/20261108035027_snapshot.json +15121 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/server/extension-child.cjs +19 -3
- package/dist/server/index.js +13162 -12123
- package/dist/server/index.js.map +2 -2
- package/package.json +2 -2
- package/dist/client/assets/CanvasFileContent-Bqd0IEfK.js +0 -2
- package/dist/client/assets/CanvasModel3dContent-DqL0Sy4r.js +0 -2
- package/dist/client/assets/HandlePage-aHId3bYX.js +0 -1
- package/dist/client/assets/NamePage-C7F-SotG.js +0 -1
- package/dist/client/assets/NewDirectMessageMenu-CjBjzsDe.js +0 -1
- package/dist/client/assets/PermissionHistory-D0chstxf.js +0 -1
- package/dist/client/assets/PhotoPage-Cqo3PNO_.js +0 -1
- package/dist/client/assets/_shell._home.index-BzTYr8Bw.js +0 -3
- package/dist/client/assets/_shell.connections-CBx0ogzx.js +0 -1
- package/dist/client/assets/_shell.marketplace-CgWBUKSA.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-8HZpKFDI.js +0 -1
- package/dist/client/assets/_shell.session-D6HcVbnm.js +0 -1
- package/dist/client/assets/_shell.threads-BavVtQOE.js +0 -1
- package/dist/client/assets/_shell.todos-B6uWr0zA.js +0 -6
- package/dist/client/assets/_shell.x._extensionId-DaELdkCH.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-DaELdkCH.js +0 -1
- package/dist/client/assets/channel-A3XT7_2L.js +0 -1
- package/dist/client/assets/index-BJRgbiEd.js +0 -1
- package/dist/client/assets/index-BcFn_S6b.js +0 -1
- package/dist/client/assets/index-BdVQOlVQ.css +0 -1
- package/dist/client/assets/index-C5EvpXcq.js +0 -1
- package/dist/client/assets/index-DZhMvc9m.js +0 -1
- package/dist/client/assets/progress-BA2JPtb6.js +0 -6
- package/dist/client/assets/registry-jD9zw538.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-f6MOc3pl.js +0 -8
- package/dist/client/assets/use-is-below-desktop-LUZL5z5t.js +0 -1
- package/dist/client/assets/use-pending-read-mVsOBTzn.js +0 -1
- package/dist/client/assets/use-update-config-DjL7-nUR.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TopologyGraph-
|
|
2
|
-
import{O as jt,r as y,af as Ke,j as i,G as z,_ as $,cF as _t,B as I,am as G,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TopologyGraph-Dw_sLFBL.js","assets/index-B2JoVHek.js","assets/index-DBjkg_lo.css","assets/transform-BqqRT-Iy.js","assets/value-wA6veExk.js","assets/heart-B7rSSNjF.js","assets/zap-C-pr1sst.js","assets/AdapterIcon-Dm5QP8_9.js","assets/relay-trace-schemas-eOfnfe4X.js","assets/form-B51NLChW.js","assets/BindingDialog-DX1N_tTX.js","assets/use-bindings-CEhDyZoj.js","assets/trust-posture-Dk5ctS0Q.js","assets/trust-dial-BsEooNiu.js","assets/session-strategy-labels-C7Wduch3.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/use-mesh-topology-BSRzCO1U.js","assets/empty-state-CHse95jw.js","assets/query-error-state-BV8fyXBe.js","assets/use-delete-binding-Cr9soEn-.js","assets/use-pending-read-HbJdwxw1.js","assets/use-filter-state-N0pdU49v.js","assets/scroll-area-rEyYMbHG.js","assets/OpenMeshSwitch-DltP6-54.js","assets/table-COZ3E1UU.js","assets/page-container-Cta3RqHd.js","assets/profile-errors-T-3VgU7E.js","assets/TodoPromiseList-iODTn1_b.js","assets/TeamComputerEntry-2RKJhINy.js","assets/ComputerViewer-CssfoCBB.js","assets/TopologyGraph-C7eadB24.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{O as jt,r as y,af as Ke,j as i,G as z,_ as $,cF as _t,B as I,am as G,kU as Ye,ba as ce,a2 as A,a0 as Nt,kV as Ft,ak as Mt,eu as Xe,al as Pt,kW as $t,a4 as We,cz as Qe,a5 as It,kX as Se,kY as At,z as Ze,kZ as te,fm as Vt,a6 as Et,aJ as Dt,k_ as Je,k$ as K,c6 as et,l0 as kt,l1 as zt,l2 as Tt,e as E,fr as H,l3 as _e,l4 as bt,l5 as Lt,l6 as Ht,f0 as Gt,l7 as Ot,f as tt,l8 as Bt,x as J,eN as qt,fj as Ne,eE as Ut,U as Kt,C as Yt,l9 as nt,bc as Xt,fL as Wt,eL as Fe,ew as Me,ex as Pe,ey as $e,ez as Ie,eA as Ae,la as ne,b$ as Qt,X as Ce,t as st,bm as Zt,g as ot,lb as Jt,lc as en,ej as tn,ld as nn,fs as sn,Z as ge,le as on,e8 as rn,I as an,lf as ln,d as un,eh as dn,dc as cn,gr as gn,gA as fn,o as mn,lg as pn,dm as Ve,l as Y,ag as hn,ah as xn,a$ as vn}from"./index-B2JoVHek.js";import{u as rt}from"./use-pending-read-HbJdwxw1.js";import{Q as it}from"./query-error-state-BV8fyXBe.js";import{u as at}from"./use-mesh-topology-BSRzCO1U.js";import{S as Sn,u as Cn}from"./use-filter-state-N0pdU49v.js";import{S as wn}from"./scroll-area-rEyYMbHG.js";import{u as Rn,a as yn,O as Ee,b as jn}from"./OpenMeshSwitch-DltP6-54.js";import{T as _n,d as Nn,b as X,e as De,a as Fn,c as ke}from"./table-COZ3E1UU.js";import{E as lt}from"./empty-state-CHse95jw.js";import{P as Mn}from"./page-container-Cta3RqHd.js";import{e as Pn,i as $n}from"./profile-errors-T-3VgU7E.js";import{r as In,T as An}from"./TodoPromiseList-iODTn1_b.js";import{T as Vn}from"./TeamComputerEntry-2RKJhINy.js";/**
|
|
3
3
|
* @license lucide-react v1.48.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -25,4 +25,4 @@ import{O as jt,r as y,af as Ke,j as i,G as z,_ as $,cF as _t,B as I,am as G,kV a
|
|
|
25
25
|
* LICENSE.md file in the root directory of this source tree.
|
|
26
26
|
*
|
|
27
27
|
* @license MIT
|
|
28
|
-
*/function be(e,s){return e?Rs(e)?y.createElement(e,s):e:null}function Rs(e){return ys(e)||typeof e=="function"||js(e)}function ys(e){return typeof e=="function"&&(()=>{const s=Object.getPrototypeOf(e);return s.prototype&&s.prototype.isReactComponent})()}function js(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function _s(e){const s={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=y.useState(()=>({current:Cs(s)})),[n,o]=y.useState(()=>t.current.initialState);return t.current.setOptions(r=>({...r,...e,state:{...n,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),t.current}function Ns(e){if("id"in e&&e.id)return e.id;if("accessorKey"in e&&typeof e.accessorKey=="string")return e.accessorKey}function Fs({columns:e,data:s,emptyMessage:t="No results.",tableOptions:n,groupBy:o,className:r,tableClassName:a}){var p;const l=Ke(),u=y.useMemo(()=>{var x;if(!l)return{};const m={};for(const v of e){const w=Ns(v);w&&((x=v.meta)!=null&&x.hideOnMobile)&&(m[w]=!1)}return m},[e,l]),d=y.useMemo(()=>{var m;return{...u,...((m=n==null?void 0:n.state)==null?void 0:m.columnVisibility)??{}}},[u,(p=n==null?void 0:n.state)==null?void 0:p.columnVisibility]),f=_s({data:s,columns:e,getCoreRowModel:ws(),...n,state:{...n==null?void 0:n.state,columnVisibility:d}}),h=f.getRowModel().rows,g=f.getVisibleLeafColumns().length,c=y.useMemo(()=>{if(!o)return new Map;const m=new Map;for(const x of h){const v=o.key(x.original);m.set(v,(m.get(v)??0)+1)}return m},[o,h]);return i.jsx("div",{"data-slot":"data-table",className:z("rounded-md border",r),children:i.jsxs(_n,{className:a,children:[i.jsx(Nn,{children:f.getHeaderGroups().map(m=>i.jsx(X,{children:m.headers.map(x=>{var v;return i.jsx(De,{className:(v=x.column.columnDef.meta)==null?void 0:v.headClassName,children:x.isPlaceholder?null:be(x.column.columnDef.header,x.getContext())},x.id)})},m.id))}),i.jsx(Fn,{children:h.length?h.map((m,x)=>{const v=o==null?void 0:o.key(m.original),w=x>0?o==null?void 0:o.key(h[x-1].original):void 0,R=v!==void 0&&v!==w;return i.jsxs(y.Fragment,{children:[R&&i.jsx(X,{"data-slot":"data-table-group-header",className:"bg-muted/40 hover:bg-muted/40",children:i.jsx(De,{colSpan:g,className:"h-8",children:o==null?void 0:o.header(v,c.get(v)??0)})}),i.jsx(X,{"data-state":m.getIsSelected()?"selected":void 0,children:m.getVisibleCells().map(j=>{var _;return i.jsx(ke,{className:(_=j.column.columnDef.meta)==null?void 0:_.cellClassName,children:be(j.column.columnDef.cell,j.getContext())},j.id)})})]},m.id)}):i.jsx(X,{children:i.jsx(ke,{colSpan:g,className:"h-24 text-center",children:t})})})]})})}function Ms({onClearFilters:e,filterDescription:s}){return i.jsxs($.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:[i.jsx(Sn,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground text-sm",children:s?`No agents match ${s}`:"No agents match your filters"}),i.jsx(I,{variant:"outline",size:"sm",onClick:e,children:"Clear filters"})]})}function Ps({peopleOnly:e}){return i.jsxs($.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-2 py-12 text-center","data-slot":"agent-roster-filter-empty",children:[i.jsx(_t,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground max-w-xs text-sm",children:e?"This table lists agents. Switch to Cards to see people.":"No agents match this filter. Change it in Cards."})]})}const Le=["needs-you","working","quiet"],$s=1440*60*1e3;function Is(e,s=Date.now()){const t=Date.parse(e);return Number.isNaN(t)?!0:s-t>=$s}const As=30,Vs=25,Es=20,Ds=20,ks=10,zs=0;function ve(e){const{healthStatus:s,taskCount:t,chatState:n}=e;return s==="unreachable"?{group:"needs-you",severity:As}:n==="needs-attention"?{group:"needs-you",severity:Vs}:s==="stale"&&t>0&&e.isPastOnboardingGrace?{group:"needs-you",severity:Es}:n==="active"?{group:"working",severity:Ds}:s==="active"?{group:"working",severity:ks}:{group:"quiet",severity:zs}}function He(e){if(!e)return Number.NEGATIVE_INFINITY;const s=Date.parse(e);return Number.isNaN(s)?Number.NEGATIVE_INFINITY:s}function Ts(e,s){const t=ve(e),n=ve(s),o=Le.indexOf(t.group)-Le.indexOf(n.group);if(o!==0)return o;const r=n.severity-t.severity;if(r!==0)return r;const a=He(s.lastSeenAt)-He(e.lastSeenAt);return a!==0?a:G(e).localeCompare(G(s))}function bs(e,s="asc"){const t=s==="desc"?-1:1;return[...e].sort((n,o)=>t*Ts(n,o))}const Ls={"needs-you":{label:"Needs you",toneClass:"text-destructive"},working:{label:"Working",toneClass:"text-foreground"},quiet:{label:"Quiet",toneClass:"text-muted-foreground"}};function Hs(e,s,t){if(!t)return e;if(t.kind==="people")return[];if(!(t.owner!==void 0||(t.q??"").trim()!==""))return e;const o=s.filter(a=>a.kind==="agent");if(o.length===0)return e;const r=new Set(Ye(o,t).map(a=>a.id));return e.filter(a=>r.has(a.id))}const Ge=32,Gs=5,St="Checked in",Os={heartbeat:"Checked in",message_sent:"Got a message",response_complete:"Finished a reply"};function Bs(e,s){return s===null&&e==="stale"}function Oe(e){return e.length<2||e.length>Gs?!1:e===e.toUpperCase()&&new RegExp("\\p{Lu}","u").test(e)}function qs(e){const s=Os[e.trim().toLowerCase()];if(s)return s;const t=e.replace(/[^\p{L}\p{N}]+/gu," ").trim().split(" ").filter(Boolean).map(a=>Oe(a)?a:a.toLowerCase());if(t.length===0)return St;const n=t[0];t[0]=Oe(n)?n:n.replace(/^./u,a=>a.toUpperCase());const o=t.join(" "),r=Array.from(o);return r.length<=Ge?o:`${r.slice(0,Ge-1).join("").trimEnd()}…`}function Be(e){const s=e.filter(t=>!!t);return s.length>0?s.join(" · "):null}function Us(e){const{healthStatus:s,lastSeenAt:t,lastSeenEvent:n,chatState:o}=e,r=t?ce(t):null,a=n?qs(n):null;return s==="unreachable"?{primary:"Can’t be reached",secondary:Be([a,r??"never seen"]),toneClass:"text-destructive"}:o==="needs-attention"?{primary:"A chat needs you",secondary:Be([a,r]),toneClass:"text-destructive"}:Bs(s,t)?o==="active"?{primary:"Active in a chat",secondary:null,toneClass:"text-foreground"}:{primary:"Not used yet",secondary:null,toneClass:"text-muted-foreground"}:{primary:a??St,secondary:r,toneClass:s==="active"?"text-foreground":"text-muted-foreground"}}function Ks(e){if(!e)return null;const s=e.split("/").filter(Boolean);return s.length<=2?e:s.slice(-2).join("/")}function Ys({row:e,onOpen:s}){const{color:t,emoji:n}=Mt(e),o=Ks(e.projectPath),r=Xe(e.runtime).label;return i.jsxs("button",{type:"button",className:"flex w-full min-w-0 items-center gap-2 text-left",onClick:s,children:[i.jsx(Pt,{color:t,emoji:n,size:"xs"}),i.jsxs("span",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"block truncate text-sm font-medium hover:underline",children:G(e)}),i.jsxs("span",{className:"text-muted-foreground block truncate text-xs",children:[o??r,o&&i.jsxs("span",{className:"hidden md:inline",children:[" · ",r]})]})]}),e.isDefault&&i.jsxs(A,{size:"xs",variant:"outline",className:"shrink-0 max-md:border-0 max-md:px-0 max-md:py-0",children:[i.jsx($t,{className:"size-2.5 fill-current md:mr-0.5"}),i.jsx("span",{className:"sr-only md:not-sr-only",children:"Default"})]})]})}function Xs({row:e}){const{primary:s,secondary:t,toneClass:n}=Us(e);return i.jsxs("span",{className:"block min-w-0",children:[i.jsx("span",{className:z("block truncate text-sm",n),children:s}),t&&i.jsx("span",{className:"text-muted-foreground block truncate text-xs tabular-nums",children:t})]})}function Ws(e){return[{accessorKey:"name",header:"Agent",meta:{headClassName:"w-[42%] md:w-[38%]",cellClassName:"overflow-hidden"},cell:({row:s})=>i.jsx(Ys,{row:s.original,onOpen:()=>e.onNavigate(s.original.projectPath??"")})},{accessorKey:"lastSeenEvent",header:"Activity",meta:{headClassName:"truncate",cellClassName:"truncate"},cell:({row:s})=>i.jsx(Xs,{row:s.original})},{id:"managedBy",header:"Managed by",meta:{hideOnMobile:!0,headClassName:"w-[140px]",cellClassName:"overflow-hidden"},cell:({row:s})=>{const t=s.original.managedBy;return i.jsx("span",{"data-slot":"agent-managed-by",className:"text-muted-foreground block truncate text-xs",children:t??"—"})}},{accessorKey:"taskCount",header:"Scheduled",meta:{hideOnMobile:!0,headClassName:"w-[110px]"},cell:({row:s})=>{const t=s.original.taskCount;return t===0?i.jsx("span",{className:"text-muted-foreground text-xs",children:"—"}):i.jsxs(A,{variant:"outline",className:"whitespace-nowrap",children:[t," ",t===1?"schedule":"schedules"]})}},{id:"actions",header:"",meta:{headClassName:"w-[88px]"},cell:({row:s})=>{const t=s.original;return i.jsxs("div",{className:"flex items-center justify-end gap-1",children:[i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onNavigate(t.projectPath??"")},"aria-label":`Open chat with ${G(t)}`,children:i.jsx(Nt,{className:"size-4"})}),i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onViewProfile(t.projectPath??"")},"aria-label":`Open ${G(t)}’s profile`,children:i.jsx(Ft,{className:"size-4"})})]})}}]}function Qs({group:e,count:s}){const{label:t,toneClass:n}=Ls[e];return i.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold tracking-wide uppercase",children:[e==="needs-you"&&i.jsx(We,{className:z("size-3.5",n)}),i.jsx("span",{className:n,children:t}),i.jsx("span",{className:"text-muted-foreground font-normal tabular-nums",children:s})]})}function Zs({rows:e,grouped:s,callbacks:t}){const n=y.useMemo(()=>Ws(t),[t]),o=y.useMemo(()=>s?{key:r=>ve(r).group,header:(r,a)=>i.jsx(Qs,{group:r,count:a})}:void 0,[s]);return i.jsx(Fs,{columns:n,data:e,groupBy:o,emptyMessage:"No agents registered.",className:"border-0",tableClassName:"table-fixed"})}function Js({agents:e,isLoading:s,rosterFilters:t}){var O;const n=Qe(),o=It(),{open:r}=Se(),a=At(),l=Cn(te,{debounce:{search:200}}),{data:u}=Ze(),d=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),f=y.useMemo(()=>Hs(e,d,t),[e,d,t]),h=y.useMemo(()=>[...new Set(f.map(N=>N.namespace).filter(N=>!!N))],[f]),g=!l.sortField||l.sortField===_e,c=y.useMemo(()=>g?te.applyFilters(f,l.values):Vt(f,te,l.values,Lt,{field:l.sortField,direction:l.sortDirection}),[f,g,l.values,l.sortField,l.sortDirection]),p=y.useMemo(()=>e.map(N=>N.projectPath).filter(N=>!!N),[e]),m=Rn(p),{data:x}=Et({queryKey:Dt.current(),queryFn:()=>o.getConfig(),staleTime:3e4}),v=y.useMemo(()=>{const N=new Map;for(const F of d){if(F.kind!=="agent")continue;const L=Je(F,d);L&&N.set(F.id,K(L))}return N},[d]),w=y.useMemo(()=>{const N=c.map(F=>{var L;return{...F,chatState:(F.projectPath?m[F.projectPath]:void 0)??"fresh",isPastOnboardingGrace:Is(F.registeredAt),isDefault:((L=x==null?void 0:x.agents)==null?void 0:L.defaultAgent)===F.name,managedBy:v.get(F.id)??null}});return g?bs(N,l.sortDirection):N},[c,m,(O=x==null?void 0:x.agents)==null?void 0:O.defaultAgent,v,g,l.sortDirection]),R=y.useCallback(N=>{const F=a.get(N);if(F===void 0){et.getState().openProfileDocked(N);return}r(F)},[a,r]),j=y.useCallback(N=>{kt(o,N).then(F=>n(F)).catch(F=>{zt(o,F),Tt(N)})},[n,o]),_=y.useMemo(()=>({onNavigate:j,onViewProfile:R}),[j,R]);function V(){return f.length===0&&e.length>0?i.jsx(Ps,{peopleOnly:(t==null?void 0:t.kind)==="people"}):c.length===0&&f.length>0?i.jsx(Ms,{onClearFilters:l.clearAll,filterDescription:l.describeActive()}):i.jsx(Zs,{rows:w,grouped:g,callbacks:_})}return s?i.jsx("div",{className:"space-y-3 p-4 sm:px-6",children:Array.from({length:3}).map((N,F)=>i.jsx(E,{className:"h-14 w-full rounded-xl"},F))}):i.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[i.jsxs(H,{state:l,className:"sm:px-6",children:[i.jsx(H.Search,{placeholder:"Filter agents…"}),i.jsx(H.Primary,{name:"status"}),i.jsx(H.AddFilter,{dynamicOptions:{namespace:h}}),i.jsx(H.Sort,{options:bt,defaultField:_e}),i.jsx(H.ResultCount,{count:c.length,total:f.length,noun:"agent"}),i.jsx(H.ActiveFilters,{})]}),i.jsx(wn,{className:"min-h-0 flex-1",children:i.jsx("div",{className:"px-4 pb-4 sm:px-6",children:V()})})]})}const eo={animate:{transition:{staggerChildren:.1}}},to={initial:{opacity:0},animate:{opacity:.2,transition:{duration:.3}}};function de(){return i.jsxs($.div,{variants:to,className:"rounded-xl border border-dashed px-4 py-3",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx(E,{className:"size-3 rounded-full"}),i.jsx(E,{className:"h-3 w-32"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"ml-auto h-3 w-10"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(E,{className:"h-2.5 w-48"}),i.jsx(E,{className:"h-2.5 w-20"})]})]})}function Ct(){const e=Ht(n=>n.open),s=Gt(n=>n.open),t=Ot();return i.jsxs("div",{className:"relative w-full max-w-2xl px-4",children:[i.jsxs($.div,{variants:eo,initial:"initial",animate:"animate",className:"space-y-3",children:[i.jsx(de,{}),i.jsx(de,{}),i.jsx(de,{})]}),i.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:t?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"No agents yet"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:()=>s(),children:[i.jsx(tt,{className:"size-3.5"}),"Create agent"]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"Bring in existing projects"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:e,children:[i.jsx(En,{className:"size-3.5"}),"Search for projects"]})]})})]})}function no(){const{data:e,isLoading:s}=Bt(),t=(e==null?void 0:e.denied)??[];return s?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(J,{size:"md",className:"text-muted-foreground",label:"Loading blocked paths"})}):t.length===0?i.jsx(lt,{icon:qt,headline:"No blocked paths",description:"Folders you block from scans show up here."}):i.jsx("div",{className:"space-y-2 p-4",children:t.map(n=>i.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border px-4 py-3",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("p",{className:"truncate font-mono text-sm",title:n.path,children:n.path}),n.reason&&i.jsx("p",{className:"text-muted-foreground truncate text-xs",title:n.reason,children:n.reason})]}),i.jsx(A,{variant:"outline",className:"shrink-0",children:n.deniedBy})]},n.path))})}function so({namespace:e,agentCount:s,agents:t}){const[n,o]=y.useState(!1);return i.jsxs("div",{className:"rounded-xl border",children:[i.jsxs("button",{type:"button",onClick:()=>o(!n),className:"hover:bg-muted/50 flex w-full items-center gap-2 px-4 py-3 text-left transition-colors duration-150",children:[n?i.jsx(Kt,{className:"size-4"}):i.jsx(Yt,{className:"size-4"}),i.jsx("span",{className:"text-sm font-medium",children:e}),i.jsxs(A,{variant:"secondary",className:"ml-auto",children:[s," agent",s!==1?"s":""]})]}),n&&i.jsx("div",{className:"space-y-2 border-t px-4 py-2",children:t.map(r=>i.jsx("div",{className:"flex items-center justify-between py-1",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm",children:G(r)}),i.jsx(A,{variant:"outline",children:nt(r.runtime)})]})},r.id))})]})}function oo({sourceNamespace:e,targetNamespace:s,action:t,origin:n,onRemove:o}){const r=n==="default";return i.jsxs("div",{className:"flex items-center justify-between rounded-lg border px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx("span",{className:"font-mono",children:e}),i.jsx("span",{className:"text-muted-foreground",children:"→"}),i.jsx("span",{className:"font-mono",children:s}),i.jsx(A,{variant:t==="allow"?"default":"destructive",children:t}),r&&i.jsx(A,{tone:"neutral",variant:"outline",children:"built-in"})]}),r?i.jsx("span",{className:"text-muted-foreground flex size-8 items-center justify-center",title:"Built-in rule, always enforced. Not removable",children:i.jsx(Xt,{className:"size-4","aria-hidden":"true"})}):i.jsx(I,{type:"button",variant:"ghost",size:"icon-sm",onClick:o,className:"text-muted-foreground hover:bg-destructive/10 hover:text-destructive","aria-label":`Remove access from ${e} to ${s}`,children:i.jsx(Wt,{})})]})}const wt="acl-open-mesh-explanation";function ro({namespaces:e,onAdd:s,isPending:t,inert:n}){const[o,r]=y.useState(""),[a,l]=y.useState("");function u(f){f.preventDefault(),!n&&o&&a&&o!==a&&(s(o,a),r(""),l(""))}const d=n?{"aria-disabled":!0,"aria-describedby":wt}:{};return i.jsxs("form",{onSubmit:u,className:"flex items-end gap-2",children:[i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-source",className:"text-muted-foreground text-xs font-medium",children:"Source"}),i.jsxs(Me,{value:o,onValueChange:n?()=>{}:r,children:[i.jsx(Pe,{id:"acl-source",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-target",className:"text-muted-foreground text-xs font-medium",children:"Target"}),i.jsxs(Me,{value:a,onValueChange:n?()=>{}:l,children:[i.jsx(Pe,{id:"acl-target",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs(I,{type:"submit",className:"aria-disabled:pointer-events-none aria-disabled:opacity-50",disabled:!n&&(t||!o||!a||o===a),...d,children:[t?i.jsx(J,{}):i.jsx(tt,{}),"Allow access"]})]})}function io({onGoToDiscovery:e}={}){const{data:s,isLoading:t}=at(),{mutate:n,isPending:o}=yn();if(t)return i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(J,{size:"md",className:"text-muted-foreground"})});const r=(s==null?void 0:s.namespaces)??[],a=(s==null?void 0:s.openMesh)??!1,l=((s==null?void 0:s.accessRules)??[]).filter(d=>!(d.origin==="explicit"&&d.sourceNamespace===Ne&&d.targetNamespace===Ne)),u=r.map(d=>d.namespace);return r.length===0?i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ee,{}),i.jsx(lt,{icon:Ut,headline:"You need agents in more than one project",description:"Add agents from a second folder to let two projects talk.",action:e?{label:"Go to Discovery",onClick:e}:void 0})]}):i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ee,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Projects"}),r.map(d=>i.jsx(so,{namespace:d.namespace,agentCount:d.agentCount,agents:d.agents},d.namespace))]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Cross-project access rules"}),l.length===0?i.jsx("p",{className:"text-muted-foreground text-xs",children:"No rules yet. Agents only talk within their own project."}):i.jsx("div",{className:"space-y-1",children:l.map(d=>i.jsx(oo,{sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:d.action,origin:d.origin,onRemove:()=>n({sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:"deny"})},`${d.sourceNamespace}-${d.targetNamespace}-${d.action}-${d.origin}`))})]}),u.length>=2&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Allow cross-project access"}),a&&i.jsx("p",{id:wt,className:"text-muted-foreground text-xs",children:"Already allowed by the switch above. Turn it off to pick pairs."}),i.jsx(ro,{namespaces:u,isPending:o,inert:a,onAdd:(d,f)=>n({sourceNamespace:d,targetNamespace:f,action:"allow"})})]})]})}const Rt={active:{label:"Active",dot:ne.working},inactive:{label:"Inactive",dot:ne["needs-you"]},stale:{label:"Stale",dot:"bg-muted-foreground/50"},unreachable:{label:"Unreachable",dot:ne.error}};function ao(e){return e in Rt}function qe({onClick:e}){return i.jsx("button",{type:"button",onClick:e,"aria-label":"Close detail panel",className:"text-muted-foreground hover:text-foreground",children:i.jsx(Ce,{className:"size-(--size-icon-sm)"})})}function Ue({agentId:e,onClose:s}){const{data:t,isLoading:n}=jn(e),{open:o}=Se();if(n)return i.jsx("div",{className:"flex w-64 items-center justify-center border-l p-4",children:i.jsx("span",{className:"text-muted-foreground text-sm",children:"Loading…"})});if(!t)return i.jsxs("div",{className:"w-64 border-l p-4",children:[i.jsx("div",{className:"flex justify-end",children:i.jsx(qe,{onClick:s})}),i.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"Agent not found"})]});const r=ao(t.status)?t.status:"stale",a=Rt[r];return i.jsxs("div",{className:"w-64 overflow-y-auto border-l p-4",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsx("h3",{className:"truncate text-sm font-semibold",children:t.name}),i.jsx(qe,{onClick:s})]}),i.jsxs("div",{className:"space-y-3 text-xs",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:z("h-2.5 w-2.5 rounded-full",a.dot),"aria-hidden":"true"}),i.jsx("span",{children:a.label})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last seen: "}),i.jsx("span",{children:t.lastSeenAt?ce(t.lastSeenAt):"Never"})]}),t.lastSeenEvent&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last event: "}),i.jsx("span",{children:t.lastSeenEvent})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Runs on: "}),i.jsx(A,{size:"xs",variant:"secondary",children:nt(t.runtime)})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Registered: "}),i.jsx("span",{children:t.registeredAt?ce(t.registeredAt):"Unknown"})]}),Array.isArray(t.capabilities)&&t.capabilities.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground mb-1 block",children:"Capabilities:"}),i.jsx("div",{className:"flex flex-wrap gap-1",children:t.capabilities.map(l=>i.jsx(A,{size:"xs",variant:"outline",children:l},l))})]})]}),i.jsx("div",{className:"mt-4 space-y-2 border-t pt-3",children:i.jsxs("button",{type:"button",onClick:()=>o(e),className:"hover:bg-muted inline-flex w-full items-center justify-center gap-2 rounded-md border px-3 py-1.5 text-xs font-medium transition-colors duration-150",children:[i.jsx(Qt,{className:"size-3.5"}),"View profile"]})})]})}function lo(){return i.jsx(io,{})}function uo(e){var s;if(e.agent){const t=Xe(e.agent.runtime).label;return e.agent.model?`${t} · ${e.agent.model}`:t}return(s=e.person)!=null&&s.role?e.person.role:e.origin==="local"?"On this machine":`On ${en(e.origin.platform)}`}const co={layout:"position",initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.97,transition:{duration:.15}},transition:{layout:{type:"spring",stiffness:280,damping:32},duration:.2,ease:[0,0,.2,1]}};function go({member:e,owner:s,onSelectOwner:t,onOpenProfile:n,onSetLinkedToMe:o,linkPending:r=!1,linkError:a,ownedAgentCount:l,layoutAnimated:u=!1,ref:d,className:f}){var p,m,x;const h=st(e),g=Zt(e),c=(p=e.person)==null?void 0:p.linkedToYou;return i.jsxs($.article,{ref:d,...u?co:{},"data-slot":"team-member-card","data-member-id":e.id,"data-layout-animated":String(u),style:{"--identity-color":h.color},className:z("bg-card shadow-soft relative flex items-start gap-3 rounded-lg border p-4","border-[color-mix(in_oklch,var(--identity-color)_var(--identity-border-strength),hsl(var(--border)))]","[--identity-border-strength:0%]",n&&["transition-[box-shadow,border-color,translate,scale] duration-(--identity-settle) ease-(--identity-ease-standard)","hover:shadow-elevated hover:-translate-y-px","hover:[--identity-border-strength:var(--identity-border-mix)]","has-[[data-slot=team-member-open]:focus-visible]:shadow-elevated has-[[data-slot=team-member-open]:focus-visible]:-translate-y-px","has-[[data-slot=team-member-open]:focus-visible]:[--identity-border-strength:var(--identity-border-mix)]","active:translate-y-0 active:scale-[0.99] active:duration-(--identity-press)",Jt,"has-[[data-card-aside]:hover]:shadow-soft has-[[data-card-aside]:hover]:translate-y-0 has-[[data-card-aside]:hover]:[--identity-border-strength:0%]","has-[[data-card-aside]:focus-visible]:shadow-soft has-[[data-card-aside]:focus-visible]:translate-y-0 has-[[data-card-aside]:focus-visible]:[--identity-border-strength:0%]","[&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:rotate-0","[&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:rotate-0","has-[[data-card-aside]:active]:scale-100"],f),children:[i.jsx(ot,{size:"md",kind:h.kind,color:h.color,emoji:h.emoji,imageUrl:h.imageUrl,fallback:h.fallback,origin:h.origin}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:[i.jsx("h3",{className:"min-w-0 truncate text-sm font-medium",children:n?i.jsx("button",{type:"button","data-slot":"team-member-open",onClick:()=>n(e.id),"aria-label":`Open ${e.displayName}’s profile`,className:"focus-ring max-w-full truncate rounded text-left after:absolute after:inset-0 after:rounded-lg after:content-['']",children:e.displayName}):e.displayName}),e.isSelf&&i.jsx(A,{size:"xs",variant:"secondary",children:"you"}),((m=e.agent)==null?void 0:m.isDefault)&&i.jsx(A,{size:"xs",variant:"outline",children:"default"}),c&&i.jsx(A,{size:"xs",variant:"secondary",children:"also you"})]}),e.handle!==null&&i.jsxs("p",{"data-slot":"team-member-handle",className:"text-muted-foreground truncate text-xs",children:["@",e.handle]}),g&&i.jsx("p",{"data-slot":"team-member-name-source",className:"text-muted-foreground truncate text-xs",children:g}),i.jsx("p",{className:"text-muted-foreground mt-1.5 truncate text-xs",children:uo(e)}),((x=e.agent)==null?void 0:x.recentlyActive)&&i.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Active in the last hour"}),c!==void 0&&o&&i.jsx("button",{type:"button","data-slot":"team-member-link-to-me","data-card-aside":"",disabled:r,onClick:()=>o(e.id,!c),"aria-label":c?`Stop treating ${e.displayName} as you`:`Tell DorkOS that ${e.displayName} is you`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring relative mt-1.5 block w-fit max-w-full truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline disabled:pointer-events-none disabled:opacity-60",children:c?"Not me":"This is me"}),a&&i.jsx("p",{role:"alert","data-slot":"team-member-link-error",className:"text-destructive relative mt-1 text-xs",children:a}),s&&t&&i.jsxs("div",{className:"relative mt-1.5 flex w-fit max-w-full items-baseline",children:[i.jsxs("button",{type:"button","data-slot":"team-member-owner","data-card-aside":"",onClick:()=>t(s.id),"aria-label":`Show only ${s.displayName} and their agents`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring peer/owner relative min-w-0 truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline",children:["by ",K(s)]}),l!==void 0&&l>0&&i.jsxs("span",{"aria-hidden":!0,"data-slot":"team-member-owner-count",className:"text-muted-foreground pointer-events-none absolute top-0 left-full ml-1 hidden text-xs whitespace-nowrap opacity-0 transition-opacity duration-(--identity-answer) ease-(--identity-ease-standard) peer-hover/owner:opacity-100 peer-focus-visible/owner:opacity-100 [@media(hover:hover)]:block",children:["· ",l," ",l===1?"agent":"agents"]})]})]})]})}const fo=120;function mo({memberCount:e,reducedMotion:s}){return!s&&e<=fo}const yt="grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3";function po({owner:e,onSelectOwner:s,ref:t}){const n=st(e),o="col-span-full mt-3 flex min-w-0 items-center first:mt-0",r=i.jsxs(i.Fragment,{children:[i.jsx(ot,{size:"xs",kind:n.kind,color:n.color,emoji:n.emoji,imageUrl:n.imageUrl,fallback:n.fallback,origin:n.origin}),i.jsx("span",{className:"truncate text-sm font-medium",children:e.displayName}),i.jsx("span",{className:"text-muted-foreground truncate text-xs",children:K(e)})]});return s?i.jsx("h2",{ref:t,className:o,children:i.jsx("button",{type:"button",onClick:()=>s(e.id),className:"focus-ring flex min-w-0 items-center gap-2 rounded",children:r})}):i.jsx("h2",{ref:t,className:z(o,"gap-2"),children:r})}function ho({members:e,roster:s,grouped:t,onSelectOwner:n,onOpenProfile:o,onSetLinkedToMe:r,identityLinkState:a,className:l}){const u=tn(),d=mo({memberCount:e.length,reducedMotion:u===!0}),f=(g,c)=>{const p=c?Je(g,s):void 0;return i.jsx(go,{member:g,owner:p,ownedAgentCount:p?on(p.id,s):void 0,onSelectOwner:c?n:void 0,onOpenProfile:o,onSetLinkedToMe:r,linkPending:(a==null?void 0:a.pendingId)===g.id,...(a==null?void 0:a.errorId)===g.id&&a.errorMessage?{linkError:a.errorMessage}:{},layoutAnimated:d},g.id)},h=t?nn(e,s).flatMap(g=>[g.owner?i.jsx(po,{owner:g.owner,onSelectOwner:n},`cluster:${g.owner.id}`):i.jsx("h2",{className:"text-muted-foreground col-span-full mt-3 text-sm font-medium first:mt-0",children:"No owner"},"cluster:__unowned"),...g.members.map(c=>f(c,!1))]):e.map(g=>f(g,!0));return i.jsx("div",{"data-slot":t?"team-roster-groups":"team-roster-grid","data-testid":sn.teamRoster,"data-layout-animated":String(d),className:z(yt,l),children:i.jsx(ge,{mode:"popLayout",initial:!1,children:h})})}const xo=6;function vo({count:e=xo}={}){return i.jsx("div",{className:yt,"aria-busy":"true","aria-label":"Loading the team",children:Array.from({length:e}).map((s,t)=>i.jsxs("div",{className:"bg-card shadow-soft flex items-start gap-3 rounded-lg border p-4",children:[i.jsx(E,{className:"size-9 shrink-0 rounded-full"}),i.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[i.jsx(E,{className:"h-4 w-24"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"h-3 w-32"})]})]},t))})}const So=[{value:"all",label:"All"},{value:"people",label:"People"},{value:"agents",label:"Agents"}];function Co({filters:e,onFiltersChange:s,people:t,className:n}){const o=e.owner?t.find(r=>r.id===e.owner):void 0;return i.jsxs("div",{className:z("space-y-3",n),children:[i.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[i.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto pb-0.5",children:[i.jsx("div",{role:"group","aria-label":"Filter by kind",className:"flex items-center gap-1.5",children:So.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.kind===r.value?"default":"outline","aria-pressed":e.kind===r.value,onClick:()=>s({kind:r.value}),className:"shrink-0",children:r.label},r.value))}),t.length>1&&i.jsx("div",{role:"group","aria-label":"Filter by person",className:"flex items-center gap-1.5",children:t.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.owner===r.id?"default":"outline","aria-pressed":e.owner===r.id,"aria-label":`Show only ${r.displayName} and their agents`,onClick:()=>s({owner:e.owner===r.id?void 0:r.id}),className:"max-w-40 shrink-0 truncate",children:K(r)},r.id))})]}),i.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[i.jsx(I,{type:"button",size:"xs",variant:e.group==="manager"?"default":"outline","aria-pressed":e.group==="manager",onClick:()=>s({group:e.group==="manager"?"none":"manager"}),className:"shrink-0",children:"Group by owner"}),i.jsxs("div",{className:"relative flex-1 sm:w-56 sm:flex-none",children:[i.jsx(rn,{"aria-hidden":!0,className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2"}),i.jsx(an,{type:"search","aria-label":"Search the team",placeholder:"Search",value:e.q??"",onChange:r=>s({q:r.target.value===""?void 0:r.target.value}),className:"h-8 pl-8 text-xs"})]})]})]}),o&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("p",{className:"text-muted-foreground text-xs",children:["Showing ",K(o)," and their agents"]}),i.jsxs(I,{type:"button",size:"xs",variant:"ghost",onClick:()=>s({owner:void 0}),children:[i.jsx(Ce,{"aria-hidden":!0,className:"size-3"}),"Clear"]})]})]})}const wo={agents:"Couldn’t read all your agents. Showing the rest.",authors:"Couldn’t read everyone on this install. Showing the rest.",account:"Couldn’t read your account, so your own name may be missing.",claims:"Couldn’t tell which of your agents are working right now.",rooms:"Couldn’t read your rooms, so where agents work may be missing.",sessions:"Couldn’t read recent chats, so “last active” may be missing."};function Ro(e){return wo[e]??"Some of your team couldn’t be loaded."}function yo({warnings:e,className:s}){const[t,n]=y.useState(!1);return!e||e.length===0||t?null:i.jsxs("div",{role:"status","data-slot":"team-roster-warnings",className:z("border-status-warning/40 bg-status-warning/10 flex items-start gap-2 rounded-lg border px-3 py-2",s),children:[i.jsx(We,{"aria-hidden":!0,className:"text-status-warning mt-0.5 size-4 shrink-0"}),i.jsx("ul",{className:"min-w-0 flex-1 space-y-0.5 text-xs",children:e.map(o=>i.jsx("li",{children:Ro(o.source)},o.source))}),i.jsx(I,{type:"button",size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:()=>n(!0),className:"-my-0.5 shrink-0",children:i.jsx(Ce,{"aria-hidden":!0,className:"size-3"})})]})}function jo({filters:e,onFiltersChange:s}){const[t,n]=y.useState(ln),o=e??t,r=j=>{e!==void 0?s(j):n(_=>({..._,...j}))},{open:a}=Se(),l=Pn(),{data:u,isLoading:d,isError:f,refetch:h}=Ze(),g=rt(d),c=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),p=y.useMemo(()=>Ye(c,o),[c,o]),m=y.useMemo(()=>c.filter(j=>j.kind==="human"),[c]),x=c.some(j=>j.kind==="agent"),v=y.useMemo(()=>In(c),[c]),w=y.useMemo(()=>{const j=new Set(c.filter(_=>{const V=un(_,c);return V==="managed"||V==="system"}).flatMap(_=>{var V;return(V=_.agent)!=null&&V.manifestId?[_.agent.manifestId]:[]}));return _=>j.has(_.agentId)},[c]),R=o.kind!=="all"||o.owner!==void 0||(o.q??"")!=="";return f?i.jsx(it,{className:"h-full",title:"Couldn’t load your team",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void h()}):i.jsxs(Mn,{width:"full",className:"flex flex-col gap-4",children:[i.jsx(yo,{warnings:u==null?void 0:u.warnings}),i.jsx(Co,{filters:o,onFiltersChange:r,people:m}),g?i.jsx(vo,{}):p.length>0?i.jsx(ho,{members:p,roster:c,grouped:o.group==="manager",onSelectOwner:j=>r({owner:j}),onOpenProfile:a,onSetLinkedToMe:(j,_)=>l.mutate({memberId:j,linked:_}),identityLinkState:{...l.isPending&&l.variables?{pendingId:l.variables.memberId}:{},...l.isError&&l.variables?{errorId:l.variables.memberId,errorMessage:$n(l.error,l.variables.linked)}:{}}}):i.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:R?"Nobody here matches that.":"Nobody to show yet."}),!g&&c.length>0&&!x&&i.jsx("div",{className:"flex justify-center py-6",children:i.jsx(Ct,{})}),!g&&x&&i.jsxs("section",{"aria-labelledby":"team-todo-promises",className:"flex flex-col gap-2 pt-2",children:[i.jsx("h2",{id:"team-todo-promises",className:"text-sm font-medium",children:"To-dos"}),i.jsx(An,{nameOf:v,canChange:w})]})]})}const _o=y.lazy(()=>vn(()=>import("./TopologyGraph-DKZS3nlr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])).then(e=>({default:e.TopologyGraph}))),No=.15,q={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:No}};function Fo(){return i.jsxs(i.Fragment,{children:[i.jsx(dn,{children:"Team"}),i.jsx(Mo,{})]})}function Mo(){const e=cn({from:"/_shell/team"}),s=Qe(),t=Ke(),n=gn(),[,o]=fn(),r=mn(),{data:a,isLoading:l,isError:u,refetch:d}=at(),f=rt(l),h=pn(e.view),g=e.agent,c=y.useMemo(()=>({kind:e.kind,owner:e.owner,group:e.group,q:e.q}),[e.kind,e.owner,e.group,e.q]);function p(w){s({...Y.team(),search:R=>({...R,...w})})}function m(){s({...Y.team(),search:w=>({...w,agent:void 0})})}const x=y.useMemo(()=>(a==null?void 0:a.namespaces.flatMap(w=>w.agents))??[],[a]),v=x.length===0&&!f&&!u&&(h==="table"||h==="topology");return u&&h!=="cards"?i.jsx(it,{className:"h-full",title:"Couldn’t load agents",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void d()}):v?i.jsx("div",{className:"flex h-full flex-col items-center justify-center",children:i.jsx(Ct,{})}):i.jsx("div",{className:"flex h-full flex-col",children:i.jsxs(ge,{mode:"wait",initial:!1,children:[h==="cards"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(jo,{filters:c,onFiltersChange:p})},"view-cards"),h==="table"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(Js,{agents:x,isLoading:f,rosterFilters:c})},"view-table"),h==="topology"&&i.jsx($.div,{...q,className:"relative flex-1 overflow-hidden",children:i.jsxs("div",{className:"flex h-full",children:[i.jsx($.div,{layout:!0,className:"min-w-0 flex-1",transition:Ve.glide,children:i.jsx("div",{className:"absolute inset-0",children:i.jsx(y.Suspense,{fallback:i.jsxs("div",{className:"text-muted-foreground flex h-full items-center justify-center text-sm",children:[i.jsx(J,{className:"mr-2"}),"Loading topology…"]}),children:i.jsx(_o,{onSelectAgent:w=>void s({...Y.team(),search:R=>({...R,agent:w})}),onViewProfile:(w,R)=>{et.getState().openProfileDocked(R)},onOpenChat:w=>{var j;const R=(j=x.find(_=>_.projectPath===w))==null?void 0:j.effectiveRuntimeId;R?r(w,{runtime:R}):o(w)},onOpenAdapterCatalog:()=>n(),onGoToDiscovery:()=>void s({...Y.team(),search:w=>({...w,view:"table"})})})})})}),t?i.jsx(hn,{open:!!g,onOpenChange:w=>!w&&m(),children:i.jsx(xn,{children:g&&i.jsx(Ue,{agentId:g,onClose:m})})}):i.jsx(ge,{children:g&&i.jsx($.div,{initial:{width:0,opacity:0},animate:{width:256,opacity:1},exit:{width:0,opacity:0},transition:Ve.glide,className:"bg-background overflow-y-auto border-l",children:i.jsx(Ue,{agentId:g,onClose:m})})})]})},"view-topology"),h==="denied"&&i.jsx($.div,{...q,children:i.jsx(no,{})},"view-denied"),h==="access"&&i.jsx($.div,{...q,children:i.jsx(lo,{})},"view-access")]})})}function Po(){return i.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:[i.jsx(Vn,{}),i.jsx("div",{className:"min-h-0 flex-1",children:i.jsx(Fo,{})})]})}const Oo=Object.freeze(Object.defineProperty({__proto__:null,component:Po},Symbol.toStringTag,{value:"Module"}));export{Rt as H,Oo as _};
|
|
28
|
+
*/function be(e,s){return e?Rs(e)?y.createElement(e,s):e:null}function Rs(e){return ys(e)||typeof e=="function"||js(e)}function ys(e){return typeof e=="function"&&(()=>{const s=Object.getPrototypeOf(e);return s.prototype&&s.prototype.isReactComponent})()}function js(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function _s(e){const s={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=y.useState(()=>({current:Cs(s)})),[n,o]=y.useState(()=>t.current.initialState);return t.current.setOptions(r=>({...r,...e,state:{...n,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),t.current}function Ns(e){if("id"in e&&e.id)return e.id;if("accessorKey"in e&&typeof e.accessorKey=="string")return e.accessorKey}function Fs({columns:e,data:s,emptyMessage:t="No results.",tableOptions:n,groupBy:o,className:r,tableClassName:a}){var p;const l=Ke(),u=y.useMemo(()=>{var x;if(!l)return{};const m={};for(const v of e){const w=Ns(v);w&&((x=v.meta)!=null&&x.hideOnMobile)&&(m[w]=!1)}return m},[e,l]),d=y.useMemo(()=>{var m;return{...u,...((m=n==null?void 0:n.state)==null?void 0:m.columnVisibility)??{}}},[u,(p=n==null?void 0:n.state)==null?void 0:p.columnVisibility]),f=_s({data:s,columns:e,getCoreRowModel:ws(),...n,state:{...n==null?void 0:n.state,columnVisibility:d}}),h=f.getRowModel().rows,g=f.getVisibleLeafColumns().length,c=y.useMemo(()=>{if(!o)return new Map;const m=new Map;for(const x of h){const v=o.key(x.original);m.set(v,(m.get(v)??0)+1)}return m},[o,h]);return i.jsx("div",{"data-slot":"data-table",className:z("rounded-md border",r),children:i.jsxs(_n,{className:a,children:[i.jsx(Nn,{children:f.getHeaderGroups().map(m=>i.jsx(X,{children:m.headers.map(x=>{var v;return i.jsx(De,{className:(v=x.column.columnDef.meta)==null?void 0:v.headClassName,children:x.isPlaceholder?null:be(x.column.columnDef.header,x.getContext())},x.id)})},m.id))}),i.jsx(Fn,{children:h.length?h.map((m,x)=>{const v=o==null?void 0:o.key(m.original),w=x>0?o==null?void 0:o.key(h[x-1].original):void 0,R=v!==void 0&&v!==w;return i.jsxs(y.Fragment,{children:[R&&i.jsx(X,{"data-slot":"data-table-group-header",className:"bg-muted/40 hover:bg-muted/40",children:i.jsx(De,{colSpan:g,className:"h-8",children:o==null?void 0:o.header(v,c.get(v)??0)})}),i.jsx(X,{"data-state":m.getIsSelected()?"selected":void 0,children:m.getVisibleCells().map(j=>{var _;return i.jsx(ke,{className:(_=j.column.columnDef.meta)==null?void 0:_.cellClassName,children:be(j.column.columnDef.cell,j.getContext())},j.id)})})]},m.id)}):i.jsx(X,{children:i.jsx(ke,{colSpan:g,className:"h-24 text-center",children:t})})})]})})}function Ms({onClearFilters:e,filterDescription:s}){return i.jsxs($.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:[i.jsx(Sn,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground text-sm",children:s?`No agents match ${s}`:"No agents match your filters"}),i.jsx(I,{variant:"outline",size:"sm",onClick:e,children:"Clear filters"})]})}function Ps({peopleOnly:e}){return i.jsxs($.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-2 py-12 text-center","data-slot":"agent-roster-filter-empty",children:[i.jsx(_t,{className:"text-muted-foreground/50 size-10"}),i.jsx("p",{className:"text-muted-foreground max-w-xs text-sm",children:e?"This table lists agents. Switch to Cards to see people.":"No agents match this filter. Change it in Cards."})]})}const Le=["needs-you","working","quiet"],$s=1440*60*1e3;function Is(e,s=Date.now()){const t=Date.parse(e);return Number.isNaN(t)?!0:s-t>=$s}const As=30,Vs=25,Es=20,Ds=20,ks=10,zs=0;function ve(e){const{healthStatus:s,taskCount:t,chatState:n}=e;return s==="unreachable"?{group:"needs-you",severity:As}:n==="needs-attention"?{group:"needs-you",severity:Vs}:s==="stale"&&t>0&&e.isPastOnboardingGrace?{group:"needs-you",severity:Es}:n==="active"?{group:"working",severity:Ds}:s==="active"?{group:"working",severity:ks}:{group:"quiet",severity:zs}}function He(e){if(!e)return Number.NEGATIVE_INFINITY;const s=Date.parse(e);return Number.isNaN(s)?Number.NEGATIVE_INFINITY:s}function Ts(e,s){const t=ve(e),n=ve(s),o=Le.indexOf(t.group)-Le.indexOf(n.group);if(o!==0)return o;const r=n.severity-t.severity;if(r!==0)return r;const a=He(s.lastSeenAt)-He(e.lastSeenAt);return a!==0?a:G(e).localeCompare(G(s))}function bs(e,s="asc"){const t=s==="desc"?-1:1;return[...e].sort((n,o)=>t*Ts(n,o))}const Ls={"needs-you":{label:"Needs you",toneClass:"text-destructive"},working:{label:"Working",toneClass:"text-foreground"},quiet:{label:"Quiet",toneClass:"text-muted-foreground"}};function Hs(e,s,t){if(!t)return e;if(t.kind==="people")return[];if(!(t.owner!==void 0||(t.q??"").trim()!==""))return e;const o=s.filter(a=>a.kind==="agent");if(o.length===0)return e;const r=new Set(Ye(o,t).map(a=>a.id));return e.filter(a=>r.has(a.id))}const Ge=32,Gs=5,St="Checked in",Os={heartbeat:"Checked in",message_sent:"Got a message",response_complete:"Finished a reply"};function Bs(e,s){return s===null&&e==="stale"}function Oe(e){return e.length<2||e.length>Gs?!1:e===e.toUpperCase()&&new RegExp("\\p{Lu}","u").test(e)}function qs(e){const s=Os[e.trim().toLowerCase()];if(s)return s;const t=e.replace(/[^\p{L}\p{N}]+/gu," ").trim().split(" ").filter(Boolean).map(a=>Oe(a)?a:a.toLowerCase());if(t.length===0)return St;const n=t[0];t[0]=Oe(n)?n:n.replace(/^./u,a=>a.toUpperCase());const o=t.join(" "),r=Array.from(o);return r.length<=Ge?o:`${r.slice(0,Ge-1).join("").trimEnd()}…`}function Be(e){const s=e.filter(t=>!!t);return s.length>0?s.join(" · "):null}function Us(e){const{healthStatus:s,lastSeenAt:t,lastSeenEvent:n,chatState:o}=e,r=t?ce(t):null,a=n?qs(n):null;return s==="unreachable"?{primary:"Can’t be reached",secondary:Be([a,r??"never seen"]),toneClass:"text-destructive"}:o==="needs-attention"?{primary:"A chat needs you",secondary:Be([a,r]),toneClass:"text-destructive"}:Bs(s,t)?o==="active"?{primary:"Active in a chat",secondary:null,toneClass:"text-foreground"}:{primary:"Not used yet",secondary:null,toneClass:"text-muted-foreground"}:{primary:a??St,secondary:r,toneClass:s==="active"?"text-foreground":"text-muted-foreground"}}function Ks(e){if(!e)return null;const s=e.split("/").filter(Boolean);return s.length<=2?e:s.slice(-2).join("/")}function Ys({row:e,onOpen:s}){const{color:t,emoji:n}=Mt(e),o=Ks(e.projectPath),r=Xe(e.runtime).label;return i.jsxs("button",{type:"button",className:"flex w-full min-w-0 items-center gap-2 text-left",onClick:s,children:[i.jsx(Pt,{color:t,emoji:n,size:"xs"}),i.jsxs("span",{className:"min-w-0 flex-1",children:[i.jsx("span",{className:"block truncate text-sm font-medium hover:underline",children:G(e)}),i.jsxs("span",{className:"text-muted-foreground block truncate text-xs",children:[o??r,o&&i.jsxs("span",{className:"hidden md:inline",children:[" · ",r]})]})]}),e.isDefault&&i.jsxs(A,{size:"xs",variant:"outline",className:"shrink-0 max-md:border-0 max-md:px-0 max-md:py-0",children:[i.jsx($t,{className:"size-2.5 fill-current md:mr-0.5"}),i.jsx("span",{className:"sr-only md:not-sr-only",children:"Default"})]})]})}function Xs({row:e}){const{primary:s,secondary:t,toneClass:n}=Us(e);return i.jsxs("span",{className:"block min-w-0",children:[i.jsx("span",{className:z("block truncate text-sm",n),children:s}),t&&i.jsx("span",{className:"text-muted-foreground block truncate text-xs tabular-nums",children:t})]})}function Ws(e){return[{accessorKey:"name",header:"Agent",meta:{headClassName:"w-[42%] md:w-[38%]",cellClassName:"overflow-hidden"},cell:({row:s})=>i.jsx(Ys,{row:s.original,onOpen:()=>e.onNavigate(s.original.projectPath??"")})},{accessorKey:"lastSeenEvent",header:"Activity",meta:{headClassName:"truncate",cellClassName:"truncate"},cell:({row:s})=>i.jsx(Xs,{row:s.original})},{id:"managedBy",header:"Managed by",meta:{hideOnMobile:!0,headClassName:"w-[140px]",cellClassName:"overflow-hidden"},cell:({row:s})=>{const t=s.original.managedBy;return i.jsx("span",{"data-slot":"agent-managed-by",className:"text-muted-foreground block truncate text-xs",children:t??"—"})}},{accessorKey:"taskCount",header:"Scheduled",meta:{hideOnMobile:!0,headClassName:"w-[110px]"},cell:({row:s})=>{const t=s.original.taskCount;return t===0?i.jsx("span",{className:"text-muted-foreground text-xs",children:"—"}):i.jsxs(A,{variant:"outline",className:"whitespace-nowrap",children:[t," ",t===1?"schedule":"schedules"]})}},{id:"actions",header:"",meta:{headClassName:"w-[88px]"},cell:({row:s})=>{const t=s.original;return i.jsxs("div",{className:"flex items-center justify-end gap-1",children:[i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onNavigate(t.projectPath??"")},"aria-label":`Open chat with ${G(t)}`,children:i.jsx(Nt,{className:"size-4"})}),i.jsx(I,{variant:"ghost",size:"sm",className:"size-8 p-0",onClick:n=>{n.stopPropagation(),e.onViewProfile(t.projectPath??"")},"aria-label":`Open ${G(t)}’s profile`,children:i.jsx(Ft,{className:"size-4"})})]})}}]}function Qs({group:e,count:s}){const{label:t,toneClass:n}=Ls[e];return i.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold tracking-wide uppercase",children:[e==="needs-you"&&i.jsx(We,{className:z("size-3.5",n)}),i.jsx("span",{className:n,children:t}),i.jsx("span",{className:"text-muted-foreground font-normal tabular-nums",children:s})]})}function Zs({rows:e,grouped:s,callbacks:t}){const n=y.useMemo(()=>Ws(t),[t]),o=y.useMemo(()=>s?{key:r=>ve(r).group,header:(r,a)=>i.jsx(Qs,{group:r,count:a})}:void 0,[s]);return i.jsx(Fs,{columns:n,data:e,groupBy:o,emptyMessage:"No agents registered.",className:"border-0",tableClassName:"table-fixed"})}function Js({agents:e,isLoading:s,rosterFilters:t}){var O;const n=Qe(),o=It(),{open:r}=Se(),a=At(),l=Cn(te,{debounce:{search:200}}),{data:u}=Ze(),d=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),f=y.useMemo(()=>Hs(e,d,t),[e,d,t]),h=y.useMemo(()=>[...new Set(f.map(N=>N.namespace).filter(N=>!!N))],[f]),g=!l.sortField||l.sortField===_e,c=y.useMemo(()=>g?te.applyFilters(f,l.values):Vt(f,te,l.values,Lt,{field:l.sortField,direction:l.sortDirection}),[f,g,l.values,l.sortField,l.sortDirection]),p=y.useMemo(()=>e.map(N=>N.projectPath).filter(N=>!!N),[e]),m=Rn(p),{data:x}=Et({queryKey:Dt.current(),queryFn:()=>o.getConfig(),staleTime:3e4}),v=y.useMemo(()=>{const N=new Map;for(const F of d){if(F.kind!=="agent")continue;const L=Je(F,d);L&&N.set(F.id,K(L))}return N},[d]),w=y.useMemo(()=>{const N=c.map(F=>{var L;return{...F,chatState:(F.projectPath?m[F.projectPath]:void 0)??"fresh",isPastOnboardingGrace:Is(F.registeredAt),isDefault:((L=x==null?void 0:x.agents)==null?void 0:L.defaultAgent)===F.name,managedBy:v.get(F.id)??null}});return g?bs(N,l.sortDirection):N},[c,m,(O=x==null?void 0:x.agents)==null?void 0:O.defaultAgent,v,g,l.sortDirection]),R=y.useCallback(N=>{const F=a.get(N);if(F===void 0){et.getState().openProfileDocked(N);return}r(F)},[a,r]),j=y.useCallback(N=>{kt(o,N).then(F=>n(F)).catch(F=>{zt(o,F),Tt(N)})},[n,o]),_=y.useMemo(()=>({onNavigate:j,onViewProfile:R}),[j,R]);function V(){return f.length===0&&e.length>0?i.jsx(Ps,{peopleOnly:(t==null?void 0:t.kind)==="people"}):c.length===0&&f.length>0?i.jsx(Ms,{onClearFilters:l.clearAll,filterDescription:l.describeActive()}):i.jsx(Zs,{rows:w,grouped:g,callbacks:_})}return s?i.jsx("div",{className:"space-y-3 p-4 sm:px-6",children:Array.from({length:3}).map((N,F)=>i.jsx(E,{className:"h-14 w-full rounded-xl"},F))}):i.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[i.jsxs(H,{state:l,className:"sm:px-6",children:[i.jsx(H.Search,{placeholder:"Filter agents…"}),i.jsx(H.Primary,{name:"status"}),i.jsx(H.AddFilter,{dynamicOptions:{namespace:h}}),i.jsx(H.Sort,{options:bt,defaultField:_e}),i.jsx(H.ResultCount,{count:c.length,total:f.length,noun:"agent"}),i.jsx(H.ActiveFilters,{})]}),i.jsx(wn,{className:"min-h-0 flex-1",children:i.jsx("div",{className:"px-4 pb-4 sm:px-6",children:V()})})]})}const eo={animate:{transition:{staggerChildren:.1}}},to={initial:{opacity:0},animate:{opacity:.2,transition:{duration:.3}}};function de(){return i.jsxs($.div,{variants:to,className:"rounded-xl border border-dashed px-4 py-3",children:[i.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[i.jsx(E,{className:"size-3 rounded-full"}),i.jsx(E,{className:"h-3 w-32"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"ml-auto h-3 w-10"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(E,{className:"h-2.5 w-48"}),i.jsx(E,{className:"h-2.5 w-20"})]})]})}function Ct(){const e=Ht(n=>n.open),s=Gt(n=>n.open),t=Ot();return i.jsxs("div",{className:"relative w-full max-w-2xl px-4",children:[i.jsxs($.div,{variants:eo,initial:"initial",animate:"animate",className:"space-y-3",children:[i.jsx(de,{}),i.jsx(de,{}),i.jsx(de,{})]}),i.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-4",children:t?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"No agents yet"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:()=>s(),children:[i.jsx(tt,{className:"size-3.5"}),"Create agent"]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-lg font-semibold",children:"Bring in existing projects"}),i.jsxs(I,{size:"sm",className:"gap-1.5",onClick:e,children:[i.jsx(En,{className:"size-3.5"}),"Search for projects"]})]})})]})}function no(){const{data:e,isLoading:s}=Bt(),t=(e==null?void 0:e.denied)??[];return s?i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(J,{size:"md",className:"text-muted-foreground",label:"Loading blocked paths"})}):t.length===0?i.jsx(lt,{icon:qt,headline:"No blocked paths",description:"Folders you block from scans show up here."}):i.jsx("div",{className:"space-y-2 p-4",children:t.map(n=>i.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl border px-4 py-3",children:[i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("p",{className:"truncate font-mono text-sm",title:n.path,children:n.path}),n.reason&&i.jsx("p",{className:"text-muted-foreground truncate text-xs",title:n.reason,children:n.reason})]}),i.jsx(A,{variant:"outline",className:"shrink-0",children:n.deniedBy})]},n.path))})}function so({namespace:e,agentCount:s,agents:t}){const[n,o]=y.useState(!1);return i.jsxs("div",{className:"rounded-xl border",children:[i.jsxs("button",{type:"button",onClick:()=>o(!n),className:"hover:bg-muted/50 flex w-full items-center gap-2 px-4 py-3 text-left transition-colors duration-150",children:[n?i.jsx(Kt,{className:"size-4"}):i.jsx(Yt,{className:"size-4"}),i.jsx("span",{className:"text-sm font-medium",children:e}),i.jsxs(A,{variant:"secondary",className:"ml-auto",children:[s," agent",s!==1?"s":""]})]}),n&&i.jsx("div",{className:"space-y-2 border-t px-4 py-2",children:t.map(r=>i.jsx("div",{className:"flex items-center justify-between py-1",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm",children:G(r)}),i.jsx(A,{variant:"outline",children:nt(r.runtime)})]})},r.id))})]})}function oo({sourceNamespace:e,targetNamespace:s,action:t,origin:n,onRemove:o}){const r=n==="default";return i.jsxs("div",{className:"flex items-center justify-between rounded-lg border px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[i.jsx("span",{className:"font-mono",children:e}),i.jsx("span",{className:"text-muted-foreground",children:"→"}),i.jsx("span",{className:"font-mono",children:s}),i.jsx(A,{variant:t==="allow"?"default":"destructive",children:t}),r&&i.jsx(A,{tone:"neutral",variant:"outline",children:"built-in"})]}),r?i.jsx("span",{className:"text-muted-foreground flex size-8 items-center justify-center",title:"Built-in rule, always enforced. Not removable",children:i.jsx(Xt,{className:"size-4","aria-hidden":"true"})}):i.jsx(I,{type:"button",variant:"ghost",size:"icon-sm",onClick:o,className:"text-muted-foreground hover:bg-destructive/10 hover:text-destructive","aria-label":`Remove access from ${e} to ${s}`,children:i.jsx(Wt,{})})]})}const wt="acl-open-mesh-explanation";function ro({namespaces:e,onAdd:s,isPending:t,inert:n}){const[o,r]=y.useState(""),[a,l]=y.useState("");function u(f){f.preventDefault(),!n&&o&&a&&o!==a&&(s(o,a),r(""),l(""))}const d=n?{"aria-disabled":!0,"aria-describedby":wt}:{};return i.jsxs("form",{onSubmit:u,className:"flex items-end gap-2",children:[i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-source",className:"text-muted-foreground text-xs font-medium",children:"Source"}),i.jsxs(Me,{value:o,onValueChange:n?()=>{}:r,children:[i.jsx(Pe,{id:"acl-source",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs("div",{className:"flex-1 space-y-1",children:[i.jsx(Fe,{htmlFor:"acl-target",className:"text-muted-foreground text-xs font-medium",children:"Target"}),i.jsxs(Me,{value:a,onValueChange:n?()=>{}:l,children:[i.jsx(Pe,{id:"acl-target",className:"w-full aria-disabled:pointer-events-none aria-disabled:opacity-50",...d,children:i.jsx($e,{placeholder:"Pick a project"})}),i.jsx(Ie,{children:e.map(f=>i.jsx(Ae,{value:f,children:f},f))})]})]}),i.jsxs(I,{type:"submit",className:"aria-disabled:pointer-events-none aria-disabled:opacity-50",disabled:!n&&(t||!o||!a||o===a),...d,children:[t?i.jsx(J,{}):i.jsx(tt,{}),"Allow access"]})]})}function io({onGoToDiscovery:e}={}){const{data:s,isLoading:t}=at(),{mutate:n,isPending:o}=yn();if(t)return i.jsx("div",{className:"flex items-center justify-center p-8",children:i.jsx(J,{size:"md",className:"text-muted-foreground"})});const r=(s==null?void 0:s.namespaces)??[],a=(s==null?void 0:s.openMesh)??!1,l=((s==null?void 0:s.accessRules)??[]).filter(d=>!(d.origin==="explicit"&&d.sourceNamespace===Ne&&d.targetNamespace===Ne)),u=r.map(d=>d.namespace);return r.length===0?i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ee,{}),i.jsx(lt,{icon:Ut,headline:"You need agents in more than one project",description:"Add agents from a second folder to let two projects talk.",action:e?{label:"Go to Discovery",onClick:e}:void 0})]}):i.jsxs("div",{className:"space-y-6 p-4",children:[i.jsx(Ee,{}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Projects"}),r.map(d=>i.jsx(so,{namespace:d.namespace,agentCount:d.agentCount,agents:d.agents},d.namespace))]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Cross-project access rules"}),l.length===0?i.jsx("p",{className:"text-muted-foreground text-xs",children:"No rules yet. Agents only talk within their own project."}):i.jsx("div",{className:"space-y-1",children:l.map(d=>i.jsx(oo,{sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:d.action,origin:d.origin,onRemove:()=>n({sourceNamespace:d.sourceNamespace,targetNamespace:d.targetNamespace,action:"deny"})},`${d.sourceNamespace}-${d.targetNamespace}-${d.action}-${d.origin}`))})]}),u.length>=2&&i.jsxs("div",{className:"space-y-2",children:[i.jsx("h3",{className:"text-muted-foreground text-sm font-medium",children:"Allow cross-project access"}),a&&i.jsx("p",{id:wt,className:"text-muted-foreground text-xs",children:"Already allowed by the switch above. Turn it off to pick pairs."}),i.jsx(ro,{namespaces:u,isPending:o,inert:a,onAdd:(d,f)=>n({sourceNamespace:d,targetNamespace:f,action:"allow"})})]})]})}const Rt={active:{label:"Active",dot:ne.working},inactive:{label:"Inactive",dot:ne["needs-you"]},stale:{label:"Stale",dot:"bg-muted-foreground/50"},unreachable:{label:"Unreachable",dot:ne.error}};function ao(e){return e in Rt}function qe({onClick:e}){return i.jsx("button",{type:"button",onClick:e,"aria-label":"Close detail panel",className:"text-muted-foreground hover:text-foreground",children:i.jsx(Ce,{className:"size-(--size-icon-sm)"})})}function Ue({agentId:e,onClose:s}){const{data:t,isLoading:n}=jn(e),{open:o}=Se();if(n)return i.jsx("div",{className:"flex w-64 items-center justify-center border-l p-4",children:i.jsx("span",{className:"text-muted-foreground text-sm",children:"Loading…"})});if(!t)return i.jsxs("div",{className:"w-64 border-l p-4",children:[i.jsx("div",{className:"flex justify-end",children:i.jsx(qe,{onClick:s})}),i.jsx("p",{className:"text-muted-foreground mt-2 text-sm",children:"Agent not found"})]});const r=ao(t.status)?t.status:"stale",a=Rt[r];return i.jsxs("div",{className:"w-64 overflow-y-auto border-l p-4",children:[i.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[i.jsx("h3",{className:"truncate text-sm font-semibold",children:t.name}),i.jsx(qe,{onClick:s})]}),i.jsxs("div",{className:"space-y-3 text-xs",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:z("h-2.5 w-2.5 rounded-full",a.dot),"aria-hidden":"true"}),i.jsx("span",{children:a.label})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last seen: "}),i.jsx("span",{children:t.lastSeenAt?ce(t.lastSeenAt):"Never"})]}),t.lastSeenEvent&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Last event: "}),i.jsx("span",{children:t.lastSeenEvent})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Runs on: "}),i.jsx(A,{size:"xs",variant:"secondary",children:nt(t.runtime)})]}),i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground",children:"Registered: "}),i.jsx("span",{children:t.registeredAt?ce(t.registeredAt):"Unknown"})]}),Array.isArray(t.capabilities)&&t.capabilities.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-muted-foreground mb-1 block",children:"Capabilities:"}),i.jsx("div",{className:"flex flex-wrap gap-1",children:t.capabilities.map(l=>i.jsx(A,{size:"xs",variant:"outline",children:l},l))})]})]}),i.jsx("div",{className:"mt-4 space-y-2 border-t pt-3",children:i.jsxs("button",{type:"button",onClick:()=>o(e),className:"hover:bg-muted inline-flex w-full items-center justify-center gap-2 rounded-md border px-3 py-1.5 text-xs font-medium transition-colors duration-150",children:[i.jsx(Qt,{className:"size-3.5"}),"View profile"]})})]})}function lo(){return i.jsx(io,{})}function uo(e){var s;if(e.agent){const t=Xe(e.agent.runtime).label;return e.agent.model?`${t} · ${e.agent.model}`:t}return(s=e.person)!=null&&s.role?e.person.role:e.origin==="local"?"On this machine":`On ${en(e.origin.platform)}`}const co={layout:"position",initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.97,transition:{duration:.15}},transition:{layout:{type:"spring",stiffness:280,damping:32},duration:.2,ease:[0,0,.2,1]}};function go({member:e,owner:s,onSelectOwner:t,onOpenProfile:n,onSetLinkedToMe:o,linkPending:r=!1,linkError:a,ownedAgentCount:l,layoutAnimated:u=!1,ref:d,className:f}){var p,m,x;const h=st(e),g=Zt(e),c=(p=e.person)==null?void 0:p.linkedToYou;return i.jsxs($.article,{ref:d,...u?co:{},"data-slot":"team-member-card","data-member-id":e.id,"data-layout-animated":String(u),style:{"--identity-color":h.color},className:z("bg-card shadow-soft relative flex items-start gap-3 rounded-lg border p-4","border-[color-mix(in_oklch,var(--identity-color)_var(--identity-border-strength),hsl(var(--border)))]","[--identity-border-strength:0%]",n&&["transition-[box-shadow,border-color,translate,scale] duration-(--identity-settle) ease-(--identity-ease-standard)","hover:shadow-elevated hover:-translate-y-px","hover:[--identity-border-strength:var(--identity-border-mix)]","has-[[data-slot=team-member-open]:focus-visible]:shadow-elevated has-[[data-slot=team-member-open]:focus-visible]:-translate-y-px","has-[[data-slot=team-member-open]:focus-visible]:[--identity-border-strength:var(--identity-border-mix)]","active:translate-y-0 active:scale-[0.99] active:duration-(--identity-press)",Jt,"has-[[data-card-aside]:hover]:shadow-soft has-[[data-card-aside]:hover]:translate-y-0 has-[[data-card-aside]:hover]:[--identity-border-strength:0%]","has-[[data-card-aside]:focus-visible]:shadow-soft has-[[data-card-aside]:focus-visible]:translate-y-0 has-[[data-card-aside]:focus-visible]:[--identity-border-strength:0%]","[&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:hover)_[data-slot=identity-badge]]:rotate-0","[&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:scale-100 [&:has([data-card-aside]:focus-visible)_[data-slot=identity-badge]]:rotate-0","has-[[data-card-aside]:active]:scale-100"],f),children:[i.jsx(ot,{size:"md",kind:h.kind,color:h.color,emoji:h.emoji,imageUrl:h.imageUrl,fallback:h.fallback,origin:h.origin}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex flex-wrap items-center gap-x-1.5 gap-y-1",children:[i.jsx("h3",{className:"min-w-0 truncate text-sm font-medium",children:n?i.jsx("button",{type:"button","data-slot":"team-member-open",onClick:()=>n(e.id),"aria-label":`Open ${e.displayName}’s profile`,className:"focus-ring max-w-full truncate rounded text-left after:absolute after:inset-0 after:rounded-lg after:content-['']",children:e.displayName}):e.displayName}),e.isSelf&&i.jsx(A,{size:"xs",variant:"secondary",children:"you"}),((m=e.agent)==null?void 0:m.isDefault)&&i.jsx(A,{size:"xs",variant:"outline",children:"default"}),c&&i.jsx(A,{size:"xs",variant:"secondary",children:"also you"})]}),e.handle!==null&&i.jsxs("p",{"data-slot":"team-member-handle",className:"text-muted-foreground truncate text-xs",children:["@",e.handle]}),g&&i.jsx("p",{"data-slot":"team-member-name-source",className:"text-muted-foreground truncate text-xs",children:g}),i.jsx("p",{className:"text-muted-foreground mt-1.5 truncate text-xs",children:uo(e)}),((x=e.agent)==null?void 0:x.recentlyActive)&&i.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Active in the last hour"}),c!==void 0&&o&&i.jsx("button",{type:"button","data-slot":"team-member-link-to-me","data-card-aside":"",disabled:r,onClick:()=>o(e.id,!c),"aria-label":c?`Stop treating ${e.displayName} as you`:`Tell DorkOS that ${e.displayName} is you`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring relative mt-1.5 block w-fit max-w-full truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline disabled:pointer-events-none disabled:opacity-60",children:c?"Not me":"This is me"}),a&&i.jsx("p",{role:"alert","data-slot":"team-member-link-error",className:"text-destructive relative mt-1 text-xs",children:a}),s&&t&&i.jsxs("div",{className:"relative mt-1.5 flex w-fit max-w-full items-baseline",children:[i.jsxs("button",{type:"button","data-slot":"team-member-owner","data-card-aside":"",onClick:()=>t(s.id),"aria-label":`Show only ${s.displayName} and their agents`,className:"text-muted-foreground hover:text-foreground focus-visible:text-foreground focus-ring peer/owner relative min-w-0 truncate rounded text-xs underline-offset-2 transition-[color] duration-(--identity-answer) ease-(--identity-ease-standard) hover:underline focus-visible:underline",children:["by ",K(s)]}),l!==void 0&&l>0&&i.jsxs("span",{"aria-hidden":!0,"data-slot":"team-member-owner-count",className:"text-muted-foreground pointer-events-none absolute top-0 left-full ml-1 hidden text-xs whitespace-nowrap opacity-0 transition-opacity duration-(--identity-answer) ease-(--identity-ease-standard) peer-hover/owner:opacity-100 peer-focus-visible/owner:opacity-100 [@media(hover:hover)]:block",children:["· ",l," ",l===1?"agent":"agents"]})]})]})]})}const fo=120;function mo({memberCount:e,reducedMotion:s}){return!s&&e<=fo}const yt="grid grid-cols-1 gap-3 md:grid-cols-2 xl:grid-cols-3";function po({owner:e,onSelectOwner:s,ref:t}){const n=st(e),o="col-span-full mt-3 flex min-w-0 items-center first:mt-0",r=i.jsxs(i.Fragment,{children:[i.jsx(ot,{size:"xs",kind:n.kind,color:n.color,emoji:n.emoji,imageUrl:n.imageUrl,fallback:n.fallback,origin:n.origin}),i.jsx("span",{className:"truncate text-sm font-medium",children:e.displayName}),i.jsx("span",{className:"text-muted-foreground truncate text-xs",children:K(e)})]});return s?i.jsx("h2",{ref:t,className:o,children:i.jsx("button",{type:"button",onClick:()=>s(e.id),className:"focus-ring flex min-w-0 items-center gap-2 rounded",children:r})}):i.jsx("h2",{ref:t,className:z(o,"gap-2"),children:r})}function ho({members:e,roster:s,grouped:t,onSelectOwner:n,onOpenProfile:o,onSetLinkedToMe:r,identityLinkState:a,className:l}){const u=tn(),d=mo({memberCount:e.length,reducedMotion:u===!0}),f=(g,c)=>{const p=c?Je(g,s):void 0;return i.jsx(go,{member:g,owner:p,ownedAgentCount:p?on(p.id,s):void 0,onSelectOwner:c?n:void 0,onOpenProfile:o,onSetLinkedToMe:r,linkPending:(a==null?void 0:a.pendingId)===g.id,...(a==null?void 0:a.errorId)===g.id&&a.errorMessage?{linkError:a.errorMessage}:{},layoutAnimated:d},g.id)},h=t?nn(e,s).flatMap(g=>[g.owner?i.jsx(po,{owner:g.owner,onSelectOwner:n},`cluster:${g.owner.id}`):i.jsx("h2",{className:"text-muted-foreground col-span-full mt-3 text-sm font-medium first:mt-0",children:"No owner"},"cluster:__unowned"),...g.members.map(c=>f(c,!1))]):e.map(g=>f(g,!0));return i.jsx("div",{"data-slot":t?"team-roster-groups":"team-roster-grid","data-testid":sn.teamRoster,"data-layout-animated":String(d),className:z(yt,l),children:i.jsx(ge,{mode:"popLayout",initial:!1,children:h})})}const xo=6;function vo({count:e=xo}={}){return i.jsx("div",{className:yt,"aria-busy":"true","aria-label":"Loading the team",children:Array.from({length:e}).map((s,t)=>i.jsxs("div",{className:"bg-card shadow-soft flex items-start gap-3 rounded-lg border p-4",children:[i.jsx(E,{className:"size-9 shrink-0 rounded-full"}),i.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[i.jsx(E,{className:"h-4 w-24"}),i.jsx(E,{className:"h-3 w-16"}),i.jsx(E,{className:"h-3 w-32"})]})]},t))})}const So=[{value:"all",label:"All"},{value:"people",label:"People"},{value:"agents",label:"Agents"}];function Co({filters:e,onFiltersChange:s,people:t,className:n}){const o=e.owner?t.find(r=>r.id===e.owner):void 0;return i.jsxs("div",{className:z("space-y-3",n),children:[i.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center",children:[i.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto pb-0.5",children:[i.jsx("div",{role:"group","aria-label":"Filter by kind",className:"flex items-center gap-1.5",children:So.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.kind===r.value?"default":"outline","aria-pressed":e.kind===r.value,onClick:()=>s({kind:r.value}),className:"shrink-0",children:r.label},r.value))}),t.length>1&&i.jsx("div",{role:"group","aria-label":"Filter by person",className:"flex items-center gap-1.5",children:t.map(r=>i.jsx(I,{type:"button",size:"xs",variant:e.owner===r.id?"default":"outline","aria-pressed":e.owner===r.id,"aria-label":`Show only ${r.displayName} and their agents`,onClick:()=>s({owner:e.owner===r.id?void 0:r.id}),className:"max-w-40 shrink-0 truncate",children:K(r)},r.id))})]}),i.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[i.jsx(I,{type:"button",size:"xs",variant:e.group==="manager"?"default":"outline","aria-pressed":e.group==="manager",onClick:()=>s({group:e.group==="manager"?"none":"manager"}),className:"shrink-0",children:"Group by owner"}),i.jsxs("div",{className:"relative flex-1 sm:w-56 sm:flex-none",children:[i.jsx(rn,{"aria-hidden":!0,className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2"}),i.jsx(an,{type:"search","aria-label":"Search the team",placeholder:"Search",value:e.q??"",onChange:r=>s({q:r.target.value===""?void 0:r.target.value}),className:"h-8 pl-8 text-xs"})]})]})]}),o&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("p",{className:"text-muted-foreground text-xs",children:["Showing ",K(o)," and their agents"]}),i.jsxs(I,{type:"button",size:"xs",variant:"ghost",onClick:()=>s({owner:void 0}),children:[i.jsx(Ce,{"aria-hidden":!0,className:"size-3"}),"Clear"]})]})]})}const wo={agents:"Couldn’t read all your agents. Showing the rest.",authors:"Couldn’t read everyone on this install. Showing the rest.",account:"Couldn’t read your account, so your own name may be missing.",claims:"Couldn’t tell which of your agents are working right now.",rooms:"Couldn’t read your rooms, so where agents work may be missing.",sessions:"Couldn’t read recent chats, so “last active” may be missing."};function Ro(e){return wo[e]??"Some of your team couldn’t be loaded."}function yo({warnings:e,className:s}){const[t,n]=y.useState(!1);return!e||e.length===0||t?null:i.jsxs("div",{role:"status","data-slot":"team-roster-warnings",className:z("border-status-warning/40 bg-status-warning/10 flex items-start gap-2 rounded-lg border px-3 py-2",s),children:[i.jsx(We,{"aria-hidden":!0,className:"text-status-warning mt-0.5 size-4 shrink-0"}),i.jsx("ul",{className:"min-w-0 flex-1 space-y-0.5 text-xs",children:e.map(o=>i.jsx("li",{children:Ro(o.source)},o.source))}),i.jsx(I,{type:"button",size:"xs",variant:"ghost","aria-label":"Dismiss",onClick:()=>n(!0),className:"-my-0.5 shrink-0",children:i.jsx(Ce,{"aria-hidden":!0,className:"size-3"})})]})}function jo({filters:e,onFiltersChange:s}){const[t,n]=y.useState(ln),o=e??t,r=j=>{e!==void 0?s(j):n(_=>({..._,...j}))},{open:a}=Se(),l=Pn(),{data:u,isLoading:d,isError:f,refetch:h}=Ze(),g=rt(d),c=y.useMemo(()=>(u==null?void 0:u.members)??[],[u]),p=y.useMemo(()=>Ye(c,o),[c,o]),m=y.useMemo(()=>c.filter(j=>j.kind==="human"),[c]),x=c.some(j=>j.kind==="agent"),v=y.useMemo(()=>In(c),[c]),w=y.useMemo(()=>{const j=new Set(c.filter(_=>{const V=un(_,c);return V==="managed"||V==="system"}).flatMap(_=>{var V;return(V=_.agent)!=null&&V.manifestId?[_.agent.manifestId]:[]}));return _=>j.has(_.agentId)},[c]),R=o.kind!=="all"||o.owner!==void 0||(o.q??"")!=="";return f?i.jsx(it,{className:"h-full",title:"Couldn’t load your team",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void h()}):i.jsxs(Mn,{width:"full",className:"flex flex-col gap-4",children:[i.jsx(yo,{warnings:u==null?void 0:u.warnings}),i.jsx(Co,{filters:o,onFiltersChange:r,people:m}),g?i.jsx(vo,{}):p.length>0?i.jsx(ho,{members:p,roster:c,grouped:o.group==="manager",onSelectOwner:j=>r({owner:j}),onOpenProfile:a,onSetLinkedToMe:(j,_)=>l.mutate({memberId:j,linked:_}),identityLinkState:{...l.isPending&&l.variables?{pendingId:l.variables.memberId}:{},...l.isError&&l.variables?{errorId:l.variables.memberId,errorMessage:$n(l.error,l.variables.linked)}:{}}}):i.jsx("p",{className:"text-muted-foreground py-8 text-center text-sm",children:R?"Nobody here matches that.":"Nobody to show yet."}),!g&&c.length>0&&!x&&i.jsx("div",{className:"flex justify-center py-6",children:i.jsx(Ct,{})}),!g&&x&&i.jsxs("section",{"aria-labelledby":"team-todo-promises",className:"flex flex-col gap-2 pt-2",children:[i.jsx("h2",{id:"team-todo-promises",className:"text-sm font-medium",children:"To-dos"}),i.jsx(An,{nameOf:v,canChange:w})]})]})}const _o=y.lazy(()=>vn(()=>import("./TopologyGraph-Dw_sLFBL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30])).then(e=>({default:e.TopologyGraph}))),No=.15,q={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:No}};function Fo(){return i.jsxs(i.Fragment,{children:[i.jsx(dn,{children:"Team"}),i.jsx(Mo,{})]})}function Mo(){const e=cn({from:"/_shell/team"}),s=Qe(),t=Ke(),n=gn(),[,o]=fn(),r=mn(),{data:a,isLoading:l,isError:u,refetch:d}=at(),f=rt(l),h=pn(e.view),g=e.agent,c=y.useMemo(()=>({kind:e.kind,owner:e.owner,group:e.group,q:e.q}),[e.kind,e.owner,e.group,e.q]);function p(w){s({...Y.team(),search:R=>({...R,...w})})}function m(){s({...Y.team(),search:w=>({...w,agent:void 0})})}const x=y.useMemo(()=>(a==null?void 0:a.namespaces.flatMap(w=>w.agents))??[],[a]),v=x.length===0&&!f&&!u&&(h==="table"||h==="topology");return u&&h!=="cards"?i.jsx(it,{className:"h-full",title:"Couldn’t load agents",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void d()}):v?i.jsx("div",{className:"flex h-full flex-col items-center justify-center",children:i.jsx(Ct,{})}):i.jsx("div",{className:"flex h-full flex-col",children:i.jsxs(ge,{mode:"wait",initial:!1,children:[h==="cards"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(jo,{filters:c,onFiltersChange:p})},"view-cards"),h==="table"&&i.jsx($.div,{...q,className:"flex h-full flex-col",children:i.jsx(Js,{agents:x,isLoading:f,rosterFilters:c})},"view-table"),h==="topology"&&i.jsx($.div,{...q,className:"relative flex-1 overflow-hidden",children:i.jsxs("div",{className:"flex h-full",children:[i.jsx($.div,{layout:!0,className:"min-w-0 flex-1",transition:Ve.glide,children:i.jsx("div",{className:"absolute inset-0",children:i.jsx(y.Suspense,{fallback:i.jsxs("div",{className:"text-muted-foreground flex h-full items-center justify-center text-sm",children:[i.jsx(J,{className:"mr-2"}),"Loading topology…"]}),children:i.jsx(_o,{onSelectAgent:w=>void s({...Y.team(),search:R=>({...R,agent:w})}),onViewProfile:(w,R)=>{et.getState().openProfileDocked(R)},onOpenChat:w=>{var j;const R=(j=x.find(_=>_.projectPath===w))==null?void 0:j.effectiveRuntimeId;R?r(w,{runtime:R}):o(w)},onOpenAdapterCatalog:()=>n(),onGoToDiscovery:()=>void s({...Y.team(),search:w=>({...w,view:"table"})})})})})}),t?i.jsx(hn,{open:!!g,onOpenChange:w=>!w&&m(),children:i.jsx(xn,{children:g&&i.jsx(Ue,{agentId:g,onClose:m})})}):i.jsx(ge,{children:g&&i.jsx($.div,{initial:{width:0,opacity:0},animate:{width:256,opacity:1},exit:{width:0,opacity:0},transition:Ve.glide,className:"bg-background overflow-y-auto border-l",children:i.jsx(Ue,{agentId:g,onClose:m})})})]})},"view-topology"),h==="denied"&&i.jsx($.div,{...q,children:i.jsx(no,{})},"view-denied"),h==="access"&&i.jsx($.div,{...q,children:i.jsx(lo,{})},"view-access")]})})}function Po(){return i.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:[i.jsx(Vn,{}),i.jsx("div",{className:"min-h-0 flex-1",children:i.jsx(Fo,{})})]})}const Oo=Object.freeze(Object.defineProperty({__proto__:null,component:Po},Symbol.toStringTag,{value:"Module"}));export{Rt as H,Oo as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a5 as R,a6 as C,aR as j,a7 as T,r as c,gG as S,gH as N,gI as A,j as t,G as M,e as x,gJ as k,gK as P,eh as q,B as v,gL as _,cz as B,gM as D,gN as F,l as b}from"./index-B2JoVHek.js";import{C as O,P as H}from"./registry-BcpatPes.js";import{t as K,u as Q,a as L,A as z,R as G,C as $,b as J,c as Y,d as Z,e as U}from"./ChannelComposer-DUKyoCYz.js";import{E as V}from"./empty-state-CHse95jw.js";import{P as W}from"./page-container-Cta3RqHd.js";import"./use-todos-COW66MhB.js";import"./file-DZ6-r1A3.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-D61kyRv5.js";import"./WidgetErrorCard-D14BNvfm.js";import"./index-Bocv39Dy.js";import"./progress-CwpnobNW.js";import"./markdown-content-FcvkqTTS.js";import"./table-COZ3E1UU.js";import"./zap-C-pr1sst.js";import"./server-BCFl_ur3.js";import"./package-DpqGENzU.js";import"./heart-B7rSSNjF.js";import"./git-branch-CzV_Mp0H.js";import"./file-text-4-Vc22J-.js";import"./paperclip-CItlLyje.js";import"./index-BchQNMCW.js";import"./RuntimeSetupDialog-UhsfZRye.js";import"./inline-code-rYW-kJLB.js";import"./list-runtime-types-Dry1muZ1.js";import"./RuntimeConnectFlow-Dinsb9em.js";import"./copy-button-BHHQAtAH.js";import"./useMutationState-6Zu1xBsZ.js";import"./runtime-connect-Dn0T5YWv.js";import"./use-transform-CXFCVk8z.js";import"./repeat-BB0attnO.js";import"./use-room-sessions-C3NpXFWY.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-BxASQ-6w.js";import"./rotate-ccw-clock-C1SBdbZP.js";import"./unplug-DB0xx2bf.js";import"./message-square-off-SMiCYjYr.js";import"./registry-BuTvvFn6.js";const X=3e4;function ee(){const e=R();return C({queryKey:j.threads(),queryFn:()=>e.listThreads(),staleTime:X})}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:K(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=Q({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(()=>L(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(J,{roomId:e.id,entry:l,author:Y(Z(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(z,{known:n,children:t.jsxs(O.Root,{surface:"room",capabilities:G,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(H,{post:l,viewerAuthorId:e.viewerAuthorId},l.clientId))]}),m&&t.jsx("div",{className:"border-t",children:h?t.jsx($,{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=U(),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(W,{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(V,{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};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{O as ve,a5 as je,a7 as we,a8 as ke,aT as K,iG as be,r as p,au as Se,ej as oe,iH as Q,dR as De,iI as Te,af as Ne,j as s,G as S,_ as ae,B as M,ak as Me,al as Ce,am as re,dn as Ee,dp as Oe,a2 as Re,dq as Ae,J as Ie,iJ as _e,dA as Le,dB as ze,iK as Fe,en as U,ge as Be,gf as Pe,U as $e,gh as Ke,iL as G,iM as q,iN as H,iO as V,gk as O,iP as W,iQ as Qe,gi as Ue,iR as Ge,iS as qe,iT as R,e as ie,iU as He,iV as Ve,iW as We,iX as Xe,iY as Je,c3 as Ye,cv as Ze,gI as et,iZ as ce,i_ as tt,i$ as nt,j0 as st,j1 as ot,eh as at,j2 as rt,j3 as it}from"./index-B2JoVHek.js";import{E as ct}from"./empty-state-CHse95jw.js";import{Q as lt}from"./query-error-state-BV8fyXBe.js";import{u as ut}from"./use-todos-COW66MhB.js";import{P as X}from"./page-container-Cta3RqHd.js";import{F as dt}from"./FeatureDisabledState-DsbRcnZ6.js";import"./copy-button-BHHQAtAH.js";import"./inline-code-rYW-kJLB.js";/**
|
|
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 le={name:"grip-vertical",size:24,node:[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]};le.node;const ft=ve(le);function mt(){const e=je(),t=we();return ke({mutationFn:async({changes:n})=>{const a=[];try{for(const r of n)await e.updateTodo(r.id,{rank:r.rank}),a.push(r)}catch(r){for(const o of a.reverse())await e.updateTodo(o.id,{rank:o.previous}).catch(()=>{});throw r}},meta:{errorLabel:"Couldn’t move the to-do. Try again.",isShownInline:n=>n.code===be},onMutate:async({query:n,order:a,changes:r})=>{const o=K.list(n);await t.cancelQueries({queryKey:o});const c=t.getQueryData(o),d=new Map(r.map(u=>[u.id,u.rank])),h=new Map(a.map((u,l)=>[u,l]));return t.setQueryData(o,u=>u&&{...u,todos:u.todos.map(l=>d.has(l.id)?{...l,rank:d.get(l.id)}:l).sort((l,f)=>(h.get(l.id)??Number.MAX_SAFE_INTEGER)-(h.get(f.id)??Number.MAX_SAFE_INTEGER))}),{key:o,previous:c}},onError:(n,a,r)=>{r&&t.setQueryData(r.key,r.previous)},onSettled:()=>t.invalidateQueries({queryKey:K.all})})}const ht=2e3;function pt(e){const[t,n]=p.useState({}),a=p.useRef(new Map),r=p.useCallback(()=>{for(const l of a.current.values())clearTimeout(l);a.current.clear()},[]);p.useEffect(()=>r,[r]),p.useEffect(()=>{r(),n({})},[e,r]);const o=p.useCallback(l=>{const f=a.current.get(l);f!==void 0&&clearTimeout(f),a.current.delete(l)},[]),c=p.useCallback(l=>{o(l),n(f=>{if(!(l in f))return f;const m={...f};return delete m[l],m})},[o]),d=p.useCallback((l,f)=>{o(l.id),n(m=>({...m,[l.id]:{todo:{...l,state:"kept"},index:f,saving:!0}}))},[o]),h=p.useCallback(l=>{n(f=>{const m=f[l];return!m||m.todo.state!=="kept"?f:{...f,[l]:{...m,saving:!1}}}),o(l),a.current.set(l,setTimeout(()=>c(l),ht))},[c,o]),u=p.useCallback(l=>{o(l),n(f=>{const m=f[l];return m?{...f,[l]:{...m,todo:{...m.todo,state:"open"},saving:!0}}:f})},[o]);return{held:t,hold:d,saved:h,reopen:u,release:c}}function gt(e,t){const n=new Set(e.map(o=>o.id)),a=e.map(o=>{var c;return((c=t[o.id])==null?void 0:c.todo)??o}),r=Object.values(t).filter(o=>!n.has(o.todo.id)).sort((o,c)=>o.index-c.index);for(const o of r)a.splice(Math.min(o.index,a.length),0,o.todo);return a}const xt={view:"mine",due:"any",sort:"due",showDone:!1};function yt(e){return{view:e.view,...e.due!=="any"&&{due:e.due},...e.sort==="rank"&&{sort:"rank"},...e.showDone&&{showDone:!0}}}function vt(e=xt){const[t,n]=p.useState(e),a=p.useMemo(()=>yt(t),[t]);return{filters:t,query:a,set:(o,c)=>n(d=>({...d,[o]:c}))}}const jt="(pointer: coarse)";function ue(){return Se(jt)}const wt={duration:200,easing:"cubic-bezier(0, 0, 0.2, 1)"};function J(e){const t=getComputedStyle(e).transform;return t&&t!=="none"?new DOMMatrix(t).m42:0}const A=new WeakMap;function kt(e,t){A.set(e,t),e.style.position="relative",e.style.zIndex="10",e.style.backgroundColor="var(--color-card)",e.style.boxShadow="var(--shadow-sm)";const n=()=>{A.get(e)===t&&(A.delete(e),e.style.position="",e.style.zIndex="",e.style.backgroundColor="",e.style.boxShadow="")};t.onfinish=n,t.oncancel=n}function Y(){const e=new Map;for(const t of document.querySelectorAll("[data-todo-row-id]")){const n=t.dataset.todoRowId;n&&e.set(n,t)}return e}function bt(e){const t=oe()===!0,n=p.useRef(null),a=p.useCallback(()=>{if(t)return;const r=new Map;for(const[o,c]of Y())r.set(o,c.getBoundingClientRect().top-J(c));n.current=r},[t]);return p.useLayoutEffect(()=>{var o;const r=n.current;if(r){n.current=null;for(const[c,d]of Y()){const h=r.get(c);if(h===void 0||typeof d.animate!="function")continue;const u=h+J(d);for(const m of((o=d.getAnimations)==null?void 0:o.call(d))??[])m.cancel();const l=u-d.getBoundingClientRect().top;if(Math.abs(l)<.5)continue;const f=d.animate([{transform:`translateY(${l}px)`},{transform:"none"}],wt);d.contains(document.activeElement)&&kt(d,f)}}},[e]),{measure:a}}const D="abcdefghijklmnopqrstuvwxyz",St=D.length,Z=-1;function ee(e,t,n){if(e===null||t>=e.length)return n;const a=D.indexOf(e[t]);return a===-1?n:a}function Dt(e,t){let n=t,a="";for(let o=0;a.length<Q;o++){const c=ee(e,o,Z),d=ee(n,o,St);if(c===d){a+=D[c];continue}const h=Math.max(c+1,1),u=d-1;if(h<=u){a+=D[Math.floor((h+u)/2)];break}if(c===Z&&d===0){a+=D[0];continue}a+=D[Math.max(c,0)],n=null}return a.length<=Q&&(e===null||a>e)&&(t===null||a<t)?a:null}function Tt(e,t,n){var d;if(t===n||t<0||n<0||t>=e.length||n>=e.length)return[];const a=[...e],[r]=a.splice(t,1);a.splice(n,0,r);const o=[];let c=null;for(let h=0;h<=n;h++){const u=a[h];if(h!==n&&u.rank!==null&&(c===null||u.rank>c)){c=u.rank;continue}const f=((d=a[h+1])==null?void 0:d.rank)??null,m=Dt(c,f!==null&&(c===null||f>c)?f:null);if(m===null)return null;m!==u.rank&&o.push({id:u.id,rank:m,previous:u.rank}),c=m}return o}function Nt(e,t,n){const a=mt(),r=a.isPending;return{move:p.useCallback((c,d)=>{if(r)return!1;const h=Tt(n,c,d);if(h===null)return De.error("That to-do can’t move there. Try another spot."),!1;const u=n.map(m=>m.id),[l]=u.splice(c,1);u.splice(d,0,l);const f=t.map(m=>m.id).filter(m=>!u.includes(m));return a.mutate({query:e,order:[...u,...f],changes:h}),!0},[r,n,t,e,a]),moving:r}}const Mt=80;function Ct({todo:e,onComplete:t}){const n=e.state==="kept",a=e.state==="open"&&t!==void 0;return s.jsx("button",{type:"button",role:"checkbox","aria-checked":n,"aria-label":e.what,disabled:!a,onClick:a?t:void 0,className:"focus-ring flex size-11 shrink-0 items-center justify-center rounded-full md:size-7",children:s.jsx("span",{"aria-hidden":!0,className:S("flex size-4.5 items-center justify-center rounded-full border transition-colors duration-150",n?"bg-foreground border-foreground text-background":"border-muted-foreground/60",a&&"hover:border-foreground"),children:n&&s.jsx(Ie,{className:"size-3",strokeWidth:3})})})}function Et({agentId:e,agent:t}){const n=Me({id:e,color:t==null?void 0:t.color,icon:t==null?void 0:t.icon});return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",children:[s.jsx(Ce,{color:n.color,emoji:n.emoji,size:"xs"}),s.jsx("span",{className:"truncate",children:t?re(t):e})]})}function Ot(e){if(e.state==="open")return[];const t=s.jsx("span",{children:e.state==="kept"?"Done":"Declined"},"outcome");return e.note?[t,s.jsx("span",{className:"min-w-0 truncate",title:e.note,children:e.note},"note")]:[t]}function Rt({parts:e}){return s.jsx("div",{className:"text-muted-foreground mt-0.5 flex flex-wrap items-center gap-x-1.5 gap-y-1 text-xs",children:e.map((t,n)=>s.jsxs(p.Fragment,{children:[n>0&&s.jsx("span",{"aria-hidden":!0,children:"·"}),t]},n))})}function At(){return s.jsxs(Ee,{children:[s.jsx(Oe,{asChild:!0,children:s.jsx(Re,{size:"xs",tabIndex:0,className:"focus-ring",children:"Limited"})}),s.jsx(Ae,{children:"Made or changed by someone DorkOS couldn’t confirm, so its agent has limited power."})]})}function te({todo:e,agent:t,from:n,roomTitle:a,onComplete:r,onUndo:o,handle:c,rowRef:d,style:h,dragging:u=!1,pressToMove:l,trailing:f}){const m=Te(e),T=e.state!=="open",b=Ne()&&e.state==="open"&&r!==void 0,k=e.overdue||m==="Due today",g=[];g.push(...Ot(e)),e.assignee.kind==="agent"&&g.push(s.jsx(Et,{agentId:e.assignee.agentId,...t?{agent:t}:{}})),m&&g.push(s.jsx("span",{className:S(k&&"text-foreground font-medium",e.overdue&&"text-destructive"),children:m})),g.push(s.jsxs("span",{children:["from ",n]}));const x=e.titleFromSource&&e.sourceAuthor?e.sourceAuthor:null;return(x||a)&&g.push(s.jsx("span",{className:"min-w-0 truncate",children:x&&a?`${x} in ${a}`:x?`said by ${x}`:a})),e.strangerBound&&e.assignee.kind==="agent"&&g.push(s.jsx(At,{})),s.jsxs("li",{ref:d,style:h,"data-todo-row-id":e.id,"data-slot":"todo-row","data-state":e.state,"data-overdue":e.overdue||void 0,className:S("group/row flex items-start gap-1 rounded-md py-1 pr-2",f!==void 0&&"hover:bg-muted/50 focus-within:bg-muted/50",u&&"bg-card relative z-10 shadow-sm"),children:[c,s.jsx(Ct,{todo:e,...r?{onComplete:r}:{}}),s.jsxs(ae.div,{className:S("min-w-0 flex-1 py-2 md:py-1",l&&"select-none [-webkit-touch-callout:none]"),...l,"data-swipe-to-finish":b||void 0,drag:b?"x":!1,dragDirectionLock:!0,dragConstraints:{left:0,right:0},dragElastic:{left:0,right:.6},dragMomentum:!1,onDragEnd:(L,E)=>{b&&E.offset.x>Mt&&(r==null||r())},children:[s.jsxs("div",{className:"flex min-w-0 items-start gap-1.5",children:[s.jsx("p",{className:S("min-w-0 text-sm break-words md:line-clamp-3",T&&"text-muted-foreground",e.state==="dropped"&&"line-through"),title:e.what,children:e.what}),o&&s.jsx(M,{size:"xs",variant:"ghost",className:"shrink-0 max-md:h-11 max-md:px-3",onClick:o,children:"Undo"})]}),s.jsx(Rt,{parts:g})]}),f]})}function C(e,t){return`${e}:${t===-1?"up":"down"}`}function It({sortable:e,onMove:t,reorder:n,...a}){const{setNodeRef:r,setActivatorNodeRef:o,attributes:c,listeners:d,transform:h,transition:u,isDragging:l}=_e({id:a.todo.id,disabled:!e||n!==void 0}),f=oe()===!0,m=ue();function T(g){var x;if(g.altKey&&(g.key==="ArrowUp"||g.key==="ArrowDown")){g.preventDefault(),t(g.key==="ArrowUp"?-1:1);return}(x=d==null?void 0:d.onKeyDown)==null||x.call(d,g)}if(!e)return s.jsx(te,{...a});const{onComplete:b,...k}=a;return s.jsx(te,{...n?k:a,rowRef:r,dragging:l,...n?{}:{style:{transform:h?`translate3d(0, ${Math.round(h.y)}px, 0)`:void 0,transition:f?void 0:u}},...m&&!n?{pressToMove:{onTouchStart:g=>{var x;return(x=d==null?void 0:d.onTouchStart)==null?void 0:x.call(d,g)}}}:{},...m?{}:n?{handle:s.jsx("span",{"aria-hidden":!0,className:"size-7 shrink-0"})}:{handle:s.jsx("button",{type:"button",ref:o,"data-todo-grip":a.todo.id,...c,...d,onKeyDown:T,"aria-label":`Move ${a.todo.what}`,"aria-keyshortcuts":"Alt+ArrowUp Alt+ArrowDown",className:"focus-ring text-muted-foreground hover:text-foreground flex size-7 shrink-0 cursor-grab touch-none items-center justify-center rounded-md opacity-0 transition-opacity group-hover/row:opacity-100 focus-visible:opacity-100",children:s.jsx(ft,{"aria-hidden":!0,className:"size-4"})})},...n?{trailing:s.jsxs(ae.div,{initial:f?!1:{opacity:0},animate:{opacity:1},transition:{duration:.15},className:"flex shrink-0 items-center",children:[s.jsx(ne,{todoId:a.todo.id,title:a.todo.what,by:-1,disabled:n.first,onMove:t}),s.jsx(ne,{todoId:a.todo.id,title:a.todo.what,by:1,disabled:n.last,onMove:t})]})}:{}})}function ne({todoId:e,title:t,by:n,disabled:a,onMove:r}){const o=n===-1?Le:ze;return s.jsx(M,{type:"button",size:"icon-md",variant:"ghost","data-todo-move":C(e,n),"aria-label":`Move ${t} ${n===-1?"up":"down"}`,disabled:a,onClick:()=>r(n),className:"size-11 md:size-7",children:s.jsx(o,{"aria-hidden":!0,className:"size-4"})})}const _="data-todo-filter-trigger";function se(e,t){return e.some(n=>n.value===t)}function _t({filters:e,onChange:t,reorder:n}){if(n!=null&&n.active)return s.jsxs("div",{"data-slot":"todo-filter-bar",className:"flex min-w-0 items-center gap-1.5",children:[s.jsx("h2",{className:"min-w-0 flex-1 text-sm font-medium",children:"Reorder"}),s.jsx(M,{size:"sm",variant:"secondary",onClick:n.onDone,children:"Done"})]});const a=e.due!=="any"||e.sort!=="due"||e.showDone;return s.jsx(Lt,{filters:e,onChange:t,reorder:n,narrowed:a})}function Lt({filters:e,onChange:t,reorder:n,narrowed:a}){const r=p.useRef(!1);return s.jsxs("div",{"data-slot":"todo-filter-bar",className:"flex min-w-0 items-center gap-1.5",children:[s.jsx("div",{role:"group","aria-label":"Whose to-dos",className:"-my-1 flex min-w-0 scrollbar-none gap-1.5 overflow-x-auto px-0.5 py-1 max-md:[mask-image:linear-gradient(to_right,black_calc(100%-1.5rem),transparent)] max-md:pr-6",children:Fe.map(o=>s.jsx(U,{className:"shrink-0",pressed:e.view===o.value,onClick:()=>t("view",o.value),children:o.label},o.value))}),s.jsxs(Be,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx(U,{[_]:"",pressed:a,"aria-label":"Filter and sort",icon:$e,className:"shrink-0"})}),s.jsxs(Ke,{align:"start",className:"w-48",onCloseAutoFocus:o=>{r.current&&(r.current=!1,o.preventDefault())},children:[s.jsx(G,{children:"Due"}),s.jsx(q,{value:e.due,onValueChange:o=>{se(H,o)&&t("due",o)},children:H.map(o=>s.jsx(V,{value:o.value,children:o.label},o.value))}),s.jsx(O,{}),s.jsx(G,{children:"Sort"}),s.jsx(q,{value:e.sort,onValueChange:o=>{se(W,o)&&t("sort",o)},children:W.map(o=>s.jsx(V,{value:o.value,children:o.label},o.value))}),s.jsx(O,{}),s.jsx(Qe,{checked:e.showDone,onCheckedChange:o=>t("showDone",o===!0),children:"Show done"}),(n==null?void 0:n.available)&&s.jsxs(s.Fragment,{children:[s.jsx(O,{}),s.jsx(Ue,{onSelect:()=>{r.current=!0,n.onStart()},children:"Reorder"})]})]})]})]})}function zt(){const{data:e}=Ye(),{data:t}=Ze();return p.useMemo(()=>{const n=new Map;for(const r of(e==null?void 0:e.agents)??[])n.set(r.id,r);const a=new Map;for(const r of t??[])a.set(r.id,et(r));return{agentOf:r=>n.get(r),agentName:r=>{const o=n.get(r);return o?re(o):void 0},roomTitleOf:r=>r?a.get(r):void 0}},[e,t])}function Ft({onNewTodo:e}){var F,B;const{filters:t,query:n,set:a}=vt(),r=ut(n),o=Ge(),c=pt(JSON.stringify(n)),d=zt(),h=p.useMemo(()=>{var i;return gt(((i=r.data)==null?void 0:i.todos)??[],c.held)},[r.data,c.held]),u=p.useMemo(()=>h.filter(i=>i.state==="open"&&!c.held[i.id]),[h,c.held]),l=t.sort==="rank"&&t.view==="mine"&&u.length>1,f=Nt(n,h,u),[m,T]=p.useState(""),[b,k]=p.useState(!1);b&&!l&&k(!1);const g=b&&l,x=p.useRef(null);p.useLayoutEffect(()=>{const i=x.current;i&&(x.current=null,Bt(i))},[u,g]);const L=ue(),E=bt(u),de=qe(R(ot,{activationConstraint:{distance:4}}),R(st,{activationConstraint:{delay:300,tolerance:8}}),R(nt,{coordinateGetter:tt}));function fe(){k(!0);const i=u[0];i&&(x.current=I(C(i.id,1)))}function me(){k(!1),x.current=`[${_}]`}p.useEffect(()=>{if(!g)return;function i(y){y.key!=="Escape"||y.defaultPrevented||(y.preventDefault(),k(!1),x.current=`[${_}]`)}return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[g]);function z(i,y,v,j){f.move(y,v)&&(g&&E.measure(),x.current=j,T(`Moved to position ${v+1} of ${u.length}.`))}function he(i,y){const v=u.findIndex(N=>N.id===i.id),j=Math.min(Math.max(v+y,0),u.length-1);if(v===-1||j===v)return;const w=g?`${I(C(i.id,y))}:not(:disabled), ${I(C(i.id,y===-1?1:-1))}`:`[data-todo-grip="${CSS.escape(i.id)}"]`;z(i.id,v,j,w)}function pe({active:i,over:y}){if(!y||i.id===y.id)return;const v=u.findIndex(w=>w.id===i.id),j=u.findIndex(w=>w.id===y.id);v!==-1&&j!==-1&&z(String(i.id),v,j,`[data-todo-grip="${CSS.escape(String(i.id))}"]`)}function ge(i,y){c.hold(i,y),o.mutateAsync({id:i.id,body:{state:"kept"}}).then(()=>c.saved(i.id)).catch(()=>c.release(i.id))}function xe(i){c.reopen(i.id),o.mutateAsync({id:i.id,body:{state:"open",from:"kept"}}).catch(()=>{}).finally(()=>c.release(i.id))}return s.jsxs("div",{"data-slot":"todo-list",className:"flex flex-col gap-3",children:[s.jsx("p",{role:"status",className:"sr-only",children:m}),s.jsx(_t,{filters:t,onChange:a,reorder:{available:l,active:g,onStart:fe,onDone:me}}),r.isPending&&s.jsx(ie,{className:"h-24 w-full"}),r.isError&&s.jsx(lt,{title:"Couldn’t load your to-dos",description:"The DorkOS server didn’t answer. Check that it’s running.",onRetry:()=>void r.refetch()}),r.isSuccess&&h.length===0&&s.jsx(Pt,{mine:t.view==="mine",narrowed:t.due!=="any",onNewTodo:e}),r.isSuccess&&h.length>0&&s.jsx(He,{sensors:de,collisionDetection:Ve,onDragEnd:pe,children:s.jsx(We,{items:u.map(i=>i.id),strategy:Xe,children:s.jsx("ul",{className:S("flex flex-col","max-md:-ml-2.5",l&&!L&&"md:-ml-8"),"aria-label":"To-dos","aria-busy":f.moving||void 0,children:h.map((i,y)=>{var P,$;const v=i.assignee.kind==="agent"?d.agentOf(i.assignee.agentId):void 0,j=d.roomTitleOf(i.roomId),w=c.held[i.id],N=w!==void 0;return s.jsx(It,{sortable:l&&i.state==="open"&&!N,onMove:ye=>he(i,ye),...g&&i.state==="open"&&!N?{reorder:{first:((P=u[0])==null?void 0:P.id)===i.id,last:(($=u[u.length-1])==null?void 0:$.id)===i.id}}:{},todo:i,from:Je(i.assignedBy,d.agentName),...v?{agent:v}:{},...j?{roomTitle:j}:{},...i.state==="open"&&!N?{onComplete:()=>ge(i,y)}:{},...w&&!w.saving&&i.state==="kept"?{onUndo:()=>xe(i)}:{}},i.id)})})})}),!t.showDone&&(((F=r.data)==null?void 0:F.doneCount)??0)>0&&s.jsxs(M,{size:"sm",variant:"ghost",className:r.isSuccess&&h.length===0?"self-center":"self-start",onClick:()=>a("showDone",!0),children:["Show done (",(B=r.data)==null?void 0:B.doneCount,")"]}),t.showDone&&s.jsx(M,{size:"sm",variant:"ghost",className:"self-start",onClick:()=>a("showDone",!1),children:"Hide done"})]})}function I(e){return`[data-todo-move="${CSS.escape(e)}"]`}function Bt(e){for(const t of e.split(", ")){const n=document.querySelector(t);if(n){n.focus();return}}}function Pt({mine:e,narrowed:t,onNewTodo:n}){return!e||t?s.jsx("p",{className:"text-muted-foreground px-2 py-4 text-sm",children:"No to-dos here."}):s.jsx(ct,{icon:ce,headline:"Nothing assigned to you.",description:"Add one, or ask an agent to.",action:{label:"New to-do",onClick:n}})}function $t(){return s.jsxs(s.Fragment,{children:[s.jsx(at,{children:"To-dos"}),s.jsx(Kt,{})]})}function Kt(){const e=rt();return e.isLoading?s.jsx(X,{width:"wide",children:s.jsx(ie,{className:"h-24 w-full"})}):e.enabled?s.jsx(X,{width:"wide",children:s.jsx(Ft,{onNewTodo:it})}):s.jsx(dt,{icon:ce,name:"To-do list",description:"One list of what you and your agents need to do.",command:"DORKOS_TODOS_ENABLED=true dorkos"})}const Jt=$t;export{Jt as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as o}from"./ExtensionPageRoute-7x-7Ad0_.js";import"./index-B2JoVHek.js";import"./empty-state-CHse95jw.js";import"./page-container-Cta3RqHd.js";import"./use-dev-links-CXGFC-N0.js";import"./UnlinkDialog-B7lL7sxN.js";const e=o;export{e as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as o}from"./ExtensionPageRoute-7x-7Ad0_.js";import"./index-B2JoVHek.js";import"./empty-state-CHse95jw.js";import"./page-container-Cta3RqHd.js";import"./use-dev-links-CXGFC-N0.js";import"./UnlinkDialog-B7lL7sxN.js";const e=o;export{e as component};
|
package/dist/client/assets/{abnfDiagram-WEYOIA3C-Bu2T3jVw.js → abnfDiagram-WEYOIA3C-CF3eRhtw.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as a}from"./chunk-2E7WHVMD-
|
|
1
|
+
import{g as p,r as u,d as a}from"./chunk-2E7WHVMD-BtumkVCk.js";import{p as f}from"./chunk-JWPE2WC7-C1pKIt5Q.js";import{_ as n,l as o}from"./mermaid.core-BqACpHu4.js";import"./transform-BqqRT-Iy.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-DUFv7wAT.js";import"./index-B2JoVHek.js";import"./BlintzCanvas-FqS5vfnA.js";import"./index-CvLTkguu.js";import"./index-yZEr0YWk.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),m=t?parseInt(t,10):0,l=s?parseInt(s,10):1/0;return{min:m,max:l}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},D={parser:R,db:a,renderer:u,styles:p};export{D as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dU as f,a5 as r,a6 as c,a7 as i,a8 as C,
|
|
1
|
+
import{dU as f,a5 as r,a6 as c,a7 as i,a8 as C,aU as s,at as g,r as d,dV as A}from"./index-B2JoVHek.js";const m="connections";function q(){return f()?`dorkos://${m}`:`${window.location.origin}/${m}`}const v=300*1e3;function K(n,e=!0){const t=r();return g({queryKey:s.catalog(n),queryFn:({pageParam:o})=>t.getConnectorCatalog({...n.trim()!==""&&{query:n.trim()},...o&&{cursor:o},limit:24}),initialPageParam:void 0,getNextPageParam:o=>o.nextCursor,staleTime:o=>{var a;return(a=o.state.data)!=null&&a.pages.some(u=>u.warnings.length>0)?0:v},enabled:e})}const T=5*6e4;function F(n,e){const t=r();return c({queryKey:s.appActions(e??"",n),queryFn:()=>t.getConnectorAppActions(n,e??""),enabled:!!e&&n!=="",staleTime:T})}function _(){const n=r(),e=i();return C({mutationFn:()=>n.getConnectorCatalog({limit:1}),onSettled:()=>e.invalidateQueries({queryKey:s.all})})}function h(){const n=r();return c({queryKey:s.connections(),queryFn:()=>n.getConnectorConnections()})}const S=15e3;function N(n,e=!0){const t=r();return c({queryKey:s.connection(n??""),queryFn:()=>t.getConnectorConnection(n??""),enabled:e&&!!n,refetchInterval:o=>{var a;return((a=o.state.data)==null?void 0:a.connection.readiness.reason)==="disconnect_finishing"?S:!1}})}function Q(n,e){const t=r();return c({queryKey:s.disconnectImpact(n??""),queryFn:()=>t.getConnectorDisconnectImpact(n??""),enabled:e&&!!n})}function R(n){const e=r();return c({queryKey:s.agentConnections(n??""),queryFn:()=>e.getAgentConnectorConnections(n??""),enabled:!!n})}function b(n=!0){const e=r();return c({queryKey:s.everyAgentGrants(),queryFn:()=>e.getEveryAgentConnectorGrants(),enabled:n})}function O(n){const e=r();return c({queryKey:s.sessionConnections(n??""),queryFn:()=>e.getSessionConnectorConnections(n??""),enabled:!!n})}function P(n){const e=r();return c({queryKey:s.usage(n??""),queryFn:()=>e.getOperatorConnectorUsage({connectionId:n??""}),enabled:!!n})}function U(){const n=r();return C({mutationFn:e=>n.startConnectorAuthentication({returnTo:q(),...e}),meta:{suppressErrorToast:!0}})}function B(n){var a;const e=r(),t=i(),o=c({queryKey:s.authenticationFlow(n??""),queryFn:()=>e.pollConnectorAuthentication(n??""),enabled:!!n,refetchInterval:u=>{var p;const l=(p=u.state.data)==null?void 0:p.state;return l==="starting"||l==="pending"?2e3:!1},staleTime:0,meta:{suppressErrorToast:!0}});return d.useEffect(()=>{var u;((u=o.data)==null?void 0:u.state)==="connected"&&t.invalidateQueries({queryKey:s.connections()})},[(a=o.data)==null?void 0:a.state,t]),o}function y(n){const e=i();return C({mutationFn:({connectionId:t,input:o})=>n(t,o),meta:{suppressErrorToast:!0},onSettled:(t,o,{connectionId:a})=>{e.invalidateQueries({queryKey:s.connections()}),e.invalidateQueries({queryKey:s.connection(a)})}})}function D(){const n=r();return y((e,t)=>n.renameConnectorConnection(e,t))}function M(){const n=r(),e=i();return C({mutationFn:({connectionId:t})=>n.reconnectConnectorConnection(t,{idempotencyKey:crypto.randomUUID(),returnTo:q()}),meta:{suppressErrorToast:!0},onSettled:(t,o,{connectionId:a})=>{e.invalidateQueries({queryKey:s.connections()}),e.invalidateQueries({queryKey:s.connection(a)})}})}function G(){const n=r();return y(e=>n.pauseConnectorConnection(e))}function x(){const n=r();return y(e=>n.resumeConnectorConnection(e))}function L(){const n=r();return y(e=>n.disconnectConnectorConnection(e))}function k(){const n=r();return y(e=>n.removeConnectorConnection(e))}function $(n){const e=r(),t=i();return C({mutationFn:({connectionId:o,on:a})=>e.setSessionConnectorAccess(n,o,{on:a}),meta:{suppressErrorToast:!0},onSuccess:o=>{t.setQueryData(s.sessionConnections(n),o)},onSettled:()=>{t.invalidateQueries({queryKey:s.sessionConnections(n)})}})}const w=A;export{O as a,$ as b,N as c,F as d,h as e,x as f,M as g,_ as h,B as i,K as j,G as k,D as l,Q as m,L as n,k as o,P as p,U as q,b as r,w as s,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as ln,T as an,V as j,W as S,X,Y as un,Z as y,$ as tn,a0 as C,a1 as _,a2 as rn,a3 as o,a4 as on,a5 as sn,a6 as fn}from"./mermaid.core-
|
|
1
|
+
import{S as ln,T as an,V as j,W as S,X,Y as un,Z as y,$ as tn,a0 as C,a1 as _,a2 as rn,a3 as o,a4 as on,a5 as sn,a6 as fn}from"./mermaid.core-BqACpHu4.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,E,q,v,A,Y,a){var I=E-l,i=q-h,n=Y-v,d=a-A,u=d*I-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*I,h+u*i]}function L(l,h,E,q,v,A,Y){var a=l-E,I=h-q,i=(Y?A:-A)/C(a*a+I*I),n=i*I,d=-i*a,u=l+n,s=h+d,f=E+n,c=q+d,Z=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,O=(g<0?-1:1)*C(on(0,T*T*R-P*P)),V=(P*g-m*O)/R,W=(-P*m-g*O)/R,w=(P*g+m*O)/R,p=(-P*m+g*O)/R,x=V-Z,e=W-t,r=w-Z,$=p-t;return x*x+e*e>r*r+$*$&&(V=w,W=p),{cx:V,cy:W,x01:-n,y01:-d,x11:V*(v/T-1),y11:W*(v/T-1)}}function hn(){var l=cn,h=yn,E=X(0),q=null,v=gn,A=dn,Y=mn,a=null,I=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,Z=rn(c-f),t=c>f;if(a||(a=n=I()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(Z>tn-y)a.moveTo(s*j(f),s*S(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*j(c),u*S(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=Z,O=Z,V=Y.apply(this,arguments)/2,W=V>y&&(q?+q.apply(this,arguments):C(u*u+s*s)),w=_(rn(s-u)/2,+E.apply(this,arguments)),p=w,x=w,e,r;if(W>y){var $=sn(W/u*S(V)),F=sn(W/s*S(V));(P-=$*2)>y?($*=t?1:-1,R+=$,T-=$):(P=0,R=T=(f+c)/2),(O-=F*2)>y?(F*=t?1:-1,m+=F,g-=F):(O=0,m=g=(f+c)/2)}var z=s*j(m),B=s*S(m),G=u*j(T),H=u*S(T);if(w>y){var J=s*j(g),K=s*S(g),M=u*j(R),N=u*S(R),D;if(Z<an)if(D=pn(z,B,M,N,J,K,G,H)){var Q=z-D[0],U=B-D[1],k=J-D[0],b=K-D[1],nn=1/S(fn((Q*k+U*b)/(C(Q*Q+U*U)*C(k*k+b*b)))/2),en=C(D[0]*D[0]+D[1]*D[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}O>y?x>y?(e=L(M,N,z,B,s,x,t),r=L(J,K,G,H,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(z,B),a.arc(0,0,s,m,g,!t)):a.moveTo(z,B),!(u>y)||!(P>y)?a.lineTo(G,H):p>y?(e=L(G,H,J,K,u,-p,t),r=L(z,B,M,N,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[j(d)*n,S(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:X(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:X(+n),i):h},i.cornerRadius=function(n){return arguments.length?(E=typeof n=="function"?n:X(+n),i):E},i.padRadius=function(n){return arguments.length?(q=n==null?null:typeof n=="function"?n:X(+n),i):q},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:X(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:X(+n),i):A},i.padAngle=function(n){return arguments.length?(Y=typeof n=="function"?n:X(+n),i):Y},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|