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 +0,0 @@
|
|
|
1
|
-
import{a5 as R,a6 as C,aQ 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-BR1m9FON.js";import{C as O,P as Q}from"./registry-Tbt9pcZl.js";import{t as H,u as K,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-CAYvz_ZB.js";import{E as V}from"./empty-state-BHcmkSzu.js";import{P as W}from"./page-container-0sWZ3xh9.js";import"./use-todos-BzRauzdQ.js";import"./file-CQGljfDT.js";import"./file-drag-GDx2qhdk.js";import"./find-latest-widget-fence-B6sJdG3Q.js";import"./WidgetErrorCard-C5ieVv_9.js";import"./index-CpWxcN5D.js";import"./progress-BA2JPtb6.js";import"./markdown-content-DhAtZOfj.js";import"./table-D0EJT0uP.js";import"./zap-DSllMMHe.js";import"./package-BhKXbvU_.js";import"./heart-Cn3a-UQI.js";import"./git-branch-CsLE6G0Y.js";import"./file-text-Cycq_S0e.js";import"./paperclip-C-7LhBfl.js";import"./index-Cgjq7a-8.js";import"./RuntimeSetupDialog-DTO5v0dP.js";import"./inline-code-mh48Uhbi.js";import"./list-runtime-types-DLmjtBMq.js";import"./RuntimeConnectFlow-BYQnY5vv.js";import"./copy-button-BOznikwM.js";import"./useMutationState-DIywUTDG.js";import"./runtime-connect-Dn0T5YWv.js";import"./use-transform-DzJeHpxm.js";import"./repeat-B8g-x-Sc.js";import"./use-room-sessions-DecGrP3E.js";import"./format-duration-BCr6uzby.js";import"./mention-pill-DmA8FxL4.js";import"./rotate-ccw-clock-DRtL-2nr.js";import"./unplug-B-ipHefz.js";import"./message-square-off-BowIzJUV.js";import"./registry-jD9zw538.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:H(s)===o&&a.push(s);return{root:i,latest:a.slice(-2),loaded:r!==void 0}},[r,o])}function se(e){var n;return e.target.closest('button, a, input, textarea, [role="button"], [role="menuitem"]')?!1:(((n=window.getSelection())==null?void 0:n.toString())??"")===""}function ne({thread:e,agents:o,onOpen:n}){const i=N(e.roomId).data,a=A({kind:e.roomKind,slug:e.roomSlug,title:e.roomTitle});return t.jsxs("article",{"aria-label":`Thread in ${a}`,"data-testid":"thread-card","data-thread-root":e.rootEntryId,className:"bg-card rounded-lg border",children:[t.jsxs("header",{className:"flex items-center gap-2 border-b px-4 py-2",children:[t.jsx("button",{type:"button",onClick:()=>n(e),className:M("focus-ring hover:text-foreground min-w-0 truncate rounded text-sm",e.unreadCount>0?"text-foreground font-semibold":"text-muted-foreground"),children:a}),e.unreadCount>0&&t.jsxs("span",{className:"text-primary shrink-0 text-xs font-medium",children:[e.unreadCount," new"]})]}),i===void 0?t.jsx(ie,{}):t.jsx(ae,{room:i,thread:e,agents:o,onOpen:n})]})}function ae({room:e,thread:o,agents:n,onOpen:r}){const{root:i,latest:a,loaded:s}=re(e.id,o.rootEntryId),d=K({room:e,threadRootId:o.rootEntryId}),f=k(e.id,o.rootEntryId),[h,p]=c.useState(!1),m=P(e.members,e.viewerAuthorId),u=c.useMemo(()=>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(Q,{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 Ye=ue;export{Ye as component};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{O as me,a5 as he,a7 as pe,a8 as ge,aS as $,iu as xe,r as g,au as ye,iv as K,dR as ve,iw as we,af as je,j as n,G as S,_ as ke,B as M,ak as De,al as Se,am as ne,dn as be,dp as Te,a2 as Ne,dq as Me,J as Ce,ix as Ee,ej as Oe,dA as Re,dB as Ae,iy as Ie,iz as _e,en as Q,ge as Le,gf as Fe,U as ze,gh as Pe,iA as U,iB as G,iC as q,iD as H,gk as O,iE as V,iF as Be,gi as $e,iG as Ke,iH as Qe,iI as R,e as te,iJ as Ue,iK as Ge,iL as qe,iM as He,iN as Ve,c3 as We,cv as Xe,gI as Je,iO as se,iP as Ye,iQ as Ze,iR as en,iS as nn,eh as tn,iT as sn,iU as on}from"./index-BR1m9FON.js";import{E as an}from"./empty-state-BHcmkSzu.js";import{Q as rn}from"./query-error-state-Cm-Lozlb.js";import{u as cn}from"./use-todos-BzRauzdQ.js";import{P as W}from"./page-container-0sWZ3xh9.js";import{F as ln}from"./FeatureDisabledState-Bi23k3rg.js";import"./copy-button-BOznikwM.js";import"./inline-code-mh48Uhbi.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 oe={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"}]]};oe.node;const dn=me(oe);function un(){const e=he(),s=pe();return ge({mutationFn:async({changes:t})=>{const a=[];try{for(const r of t)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:t=>t.code===xe},onMutate:async({query:t,order:a,changes:r})=>{const o=$.list(t);await s.cancelQueries({queryKey:o});const l=s.getQueryData(o),u=new Map(r.map(d=>[d.id,d.rank])),h=new Map(a.map((d,c)=>[d,c]));return s.setQueryData(o,d=>d&&{...d,todos:d.todos.map(c=>u.has(c.id)?{...c,rank:u.get(c.id)}:c).sort((c,m)=>(h.get(c.id)??Number.MAX_SAFE_INTEGER)-(h.get(m.id)??Number.MAX_SAFE_INTEGER))}),{key:o,previous:l}},onError:(t,a,r)=>{r&&s.setQueryData(r.key,r.previous)},onSettled:()=>s.invalidateQueries({queryKey:$.all})})}const fn=2e3;function mn(e){const[s,t]=g.useState({}),a=g.useRef(new Map),r=g.useCallback(()=>{for(const c of a.current.values())clearTimeout(c);a.current.clear()},[]);g.useEffect(()=>r,[r]),g.useEffect(()=>{r(),t({})},[e,r]);const o=g.useCallback(c=>{const m=a.current.get(c);m!==void 0&&clearTimeout(m),a.current.delete(c)},[]),l=g.useCallback(c=>{o(c),t(m=>{if(!(c in m))return m;const f={...m};return delete f[c],f})},[o]),u=g.useCallback((c,m)=>{o(c.id),t(f=>({...f,[c.id]:{todo:{...c,state:"kept"},index:m,saving:!0}}))},[o]),h=g.useCallback(c=>{t(m=>{const f=m[c];return!f||f.todo.state!=="kept"?m:{...m,[c]:{...f,saving:!1}}}),o(c),a.current.set(c,setTimeout(()=>l(c),fn))},[l,o]),d=g.useCallback(c=>{o(c),t(m=>{const f=m[c];return f?{...m,[c]:{...f,todo:{...f.todo,state:"open"},saving:!0}}:m})},[o]);return{held:s,hold:u,saved:h,reopen:d,release:l}}function hn(e,s){const t=new Set(e.map(o=>o.id)),a=e.map(o=>{var l;return((l=s[o.id])==null?void 0:l.todo)??o}),r=Object.values(s).filter(o=>!t.has(o.todo.id)).sort((o,l)=>o.index-l.index);for(const o of r)a.splice(Math.min(o.index,a.length),0,o.todo);return a}const pn={view:"mine",due:"any",sort:"due",showDone:!1};function gn(e){return{view:e.view,...e.due!=="any"&&{due:e.due},...e.sort==="rank"&&{sort:"rank"},...e.showDone&&{showDone:!0}}}function xn(e=pn){const[s,t]=g.useState(e),a=g.useMemo(()=>gn(s),[s]);return{filters:s,query:a,set:(o,l)=>t(u=>({...u,[o]:l}))}}const yn="(pointer: coarse)";function ae(){return ye(yn)}const b="abcdefghijklmnopqrstuvwxyz",vn=b.length,X=-1;function J(e,s,t){if(e===null||s>=e.length)return t;const a=b.indexOf(e[s]);return a===-1?t:a}function wn(e,s){let t=s,a="";for(let o=0;a.length<K;o++){const l=J(e,o,X),u=J(t,o,vn);if(l===u){a+=b[l];continue}const h=Math.max(l+1,1),d=u-1;if(h<=d){a+=b[Math.floor((h+d)/2)];break}if(l===X&&u===0){a+=b[0];continue}a+=b[Math.max(l,0)],t=null}return a.length<=K&&(e===null||a>e)&&(s===null||a<s)?a:null}function jn(e,s,t){var u;if(s===t||s<0||t<0||s>=e.length||t>=e.length)return[];const a=[...e],[r]=a.splice(s,1);a.splice(t,0,r);const o=[];let l=null;for(let h=0;h<=t;h++){const d=a[h];if(h!==t&&d.rank!==null&&(l===null||d.rank>l)){l=d.rank;continue}const m=((u=a[h+1])==null?void 0:u.rank)??null,f=wn(l,m!==null&&(l===null||m>l)?m:null);if(f===null)return null;f!==d.rank&&o.push({id:d.id,rank:f,previous:d.rank}),l=f}return o}function kn(e,s,t){const a=un(),r=a.isPending;return{move:g.useCallback((l,u)=>{if(r)return!1;const h=jn(t,l,u);if(h===null)return ve.error("That to-do can’t move there. Try another spot."),!1;const d=t.map(f=>f.id),[c]=d.splice(l,1);d.splice(u,0,c);const m=s.map(f=>f.id).filter(f=>!d.includes(f));return a.mutate({query:e,order:[...d,...m],changes:h}),!0},[r,t,s,e,a]),moving:r}}const Dn=80;function Sn({todo:e,onComplete:s}){const t=e.state==="kept",a=e.state==="open"&&s!==void 0;return n.jsx("button",{type:"button",role:"checkbox","aria-checked":t,"aria-label":e.what,disabled:!a,onClick:a?s:void 0,className:"focus-ring flex size-11 shrink-0 items-center justify-center rounded-full md:size-7",children:n.jsx("span",{"aria-hidden":!0,className:S("flex size-4.5 items-center justify-center rounded-full border transition-colors duration-150",t?"bg-foreground border-foreground text-background":"border-muted-foreground/60",a&&"hover:border-foreground"),children:t&&n.jsx(Ce,{className:"size-3",strokeWidth:3})})})}function bn({agentId:e,agent:s}){const t=De({id:e,color:s==null?void 0:s.color,icon:s==null?void 0:s.icon});return n.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",children:[n.jsx(Se,{color:t.color,emoji:t.emoji,size:"xs"}),n.jsx("span",{className:"truncate",children:s?ne(s):e})]})}function Tn(e){if(e.state==="open")return[];const s=n.jsx("span",{children:e.state==="kept"?"Done":"Declined"},"outcome");return e.note?[s,n.jsx("span",{className:"min-w-0 truncate",title:e.note,children:e.note},"note")]:[s]}function Nn({parts:e}){return n.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((s,t)=>n.jsxs(g.Fragment,{children:[t>0&&n.jsx("span",{"aria-hidden":!0,children:"·"}),s]},t))})}function Mn(){return n.jsxs(be,{children:[n.jsx(Te,{asChild:!0,children:n.jsx(Ne,{size:"xs",tabIndex:0,className:"focus-ring",children:"Limited"})}),n.jsx(Me,{children:"Made or changed by someone DorkOS couldn’t confirm, so its agent has limited power."})]})}function Y({todo:e,agent:s,from:t,roomTitle:a,onComplete:r,onUndo:o,handle:l,rowRef:u,style:h,dragging:d=!1,pressToMove:c,trailing:m}){const f=we(e),T=e.state!=="open",D=je()&&e.state==="open"&&r!==void 0,k=e.overdue||f==="Due today",p=[];p.push(...Tn(e)),e.assignee.kind==="agent"&&p.push(n.jsx(bn,{agentId:e.assignee.agentId,...s?{agent:s}:{}})),f&&p.push(n.jsx("span",{className:S(k&&"text-foreground font-medium",e.overdue&&"text-destructive"),children:f})),p.push(n.jsxs("span",{children:["from ",t]}));const x=e.titleFromSource&&e.sourceAuthor?e.sourceAuthor:null;return(x||a)&&p.push(n.jsx("span",{className:"min-w-0 truncate",children:x&&a?`${x} in ${a}`:x?`said by ${x}`:a})),e.strangerBound&&e.assignee.kind==="agent"&&p.push(n.jsx(Mn,{})),n.jsxs("li",{ref:u,style:h,"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",d&&"bg-card relative z-10 shadow-sm"),children:[l,n.jsx(Sn,{todo:e,...r?{onComplete:r}:{}}),n.jsxs(ke.div,{className:S("min-w-0 flex-1 py-2 md:py-1",c&&"select-none [-webkit-touch-callout:none]"),...c,"data-swipe-to-finish":D||void 0,drag:D?"x":!1,dragDirectionLock:!0,dragConstraints:{left:0,right:0},dragElastic:{left:0,right:.6},dragMomentum:!1,onDragEnd:(_,E)=>{D&&E.offset.x>Dn&&(r==null||r())},children:[n.jsxs("div",{className:"flex min-w-0 items-start gap-1.5",children:[n.jsx("p",{className:S("line-clamp-3 min-w-0 text-sm break-words",T&&"text-muted-foreground",e.state==="dropped"&&"line-through"),title:e.what,children:e.what}),o&&n.jsx(M,{size:"xs",variant:"ghost",className:"shrink-0 max-md:h-11 max-md:px-3",onClick:o,children:"Undo"})]}),n.jsx(Nn,{parts:p})]}),m]})}const Cn=e=>Ie({...e,wasDragging:!0});function C(e,s){return`${e}:${s===-1?"up":"down"}`}function En({sortable:e,onMove:s,reorder:t,...a}){const{setNodeRef:r,setActivatorNodeRef:o,attributes:l,listeners:u,transform:h,transition:d,isDragging:c}=Ee({id:a.todo.id,disabled:!e,animateLayoutChanges:Cn}),m=Oe(),f=ae();function T(p){var x;if(p.altKey&&(p.key==="ArrowUp"||p.key==="ArrowDown")){p.preventDefault(),s(p.key==="ArrowUp"?-1:1);return}(x=u==null?void 0:u.onKeyDown)==null||x.call(u,p)}if(!e)return n.jsx(Y,{...a});const{onComplete:D,...k}=a;return n.jsx(Y,{...t?k:a,rowRef:r,dragging:c,style:{transform:h?`translate3d(0, ${Math.round(h.y)}px, 0)`:void 0,transition:m?void 0:d},...f&&!t?{pressToMove:{onTouchStart:p=>{var x;return(x=u==null?void 0:u.onTouchStart)==null?void 0:x.call(u,p)}}}:{},...f?{}:{handle:n.jsx("button",{type:"button",ref:o,"data-todo-grip":a.todo.id,...l,...u,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:n.jsx(dn,{"aria-hidden":!0,className:"size-4"})})},...t?{trailing:n.jsxs("div",{className:"animate-in fade-in flex shrink-0 items-center duration-150 motion-reduce:animate-none",children:[n.jsx(Z,{todoId:a.todo.id,title:a.todo.what,by:-1,disabled:t.first,onMove:s}),n.jsx(Z,{todoId:a.todo.id,title:a.todo.what,by:1,disabled:t.last,onMove:s})]})}:{}})}function Z({todoId:e,title:s,by:t,disabled:a,onMove:r}){const o=t===-1?Re:Ae;return n.jsx(M,{type:"button",size:"icon-md",variant:"ghost","data-todo-move":C(e,t),"aria-label":`Move ${s} ${t===-1?"up":"down"}`,disabled:a,onClick:()=>r(t),className:"size-11 md:size-7",children:n.jsx(o,{"aria-hidden":!0,className:"size-4"})})}const I="data-todo-filter-trigger";function ee(e,s){return e.some(t=>t.value===s)}function On({filters:e,onChange:s,reorder:t}){if(t!=null&&t.active)return n.jsxs("div",{"data-slot":"todo-filter-bar",className:"flex min-w-0 items-center gap-1.5",children:[n.jsx("h2",{className:"min-w-0 flex-1 text-sm font-medium",children:"Reorder"}),n.jsx(M,{size:"sm",variant:"secondary",onClick:t.onDone,children:"Done"})]});const a=e.due!=="any"||e.sort!=="due"||e.showDone;return n.jsx(Rn,{filters:e,onChange:s,reorder:t,narrowed:a})}function Rn({filters:e,onChange:s,reorder:t,narrowed:a}){const r=g.useRef(!1);return n.jsxs("div",{"data-slot":"todo-filter-bar",className:"flex min-w-0 items-center gap-1.5",children:[n.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:_e.map(o=>n.jsx(Q,{className:"shrink-0",pressed:e.view===o.value,onClick:()=>s("view",o.value),children:o.label},o.value))}),n.jsxs(Le,{children:[n.jsx(Fe,{asChild:!0,children:n.jsx(Q,{[I]:"",pressed:a,"aria-label":"Filter and sort",icon:ze,className:"shrink-0"})}),n.jsxs(Pe,{align:"start",className:"w-48",onCloseAutoFocus:o=>{r.current&&(r.current=!1,o.preventDefault())},children:[n.jsx(U,{children:"Due"}),n.jsx(G,{value:e.due,onValueChange:o=>{ee(q,o)&&s("due",o)},children:q.map(o=>n.jsx(H,{value:o.value,children:o.label},o.value))}),n.jsx(O,{}),n.jsx(U,{children:"Sort"}),n.jsx(G,{value:e.sort,onValueChange:o=>{ee(V,o)&&s("sort",o)},children:V.map(o=>n.jsx(H,{value:o.value,children:o.label},o.value))}),n.jsx(O,{}),n.jsx(Be,{checked:e.showDone,onCheckedChange:o=>s("showDone",o===!0),children:"Show done"}),(t==null?void 0:t.available)&&n.jsxs(n.Fragment,{children:[n.jsx(O,{}),n.jsx($e,{onSelect:()=>{r.current=!0,t.onStart()},children:"Reorder"})]})]})]})]})}function An(){const{data:e}=We(),{data:s}=Xe();return g.useMemo(()=>{const t=new Map;for(const r of(e==null?void 0:e.agents)??[])t.set(r.id,r);const a=new Map;for(const r of s??[])a.set(r.id,Je(r));return{agentOf:r=>t.get(r),agentName:r=>{const o=t.get(r);return o?ne(o):void 0},roomTitleOf:r=>r?a.get(r):void 0}},[e,s])}function In({onNewTodo:e}){var F,z;const{filters:s,query:t,set:a}=xn(),r=cn(t),o=Ke(),l=mn(JSON.stringify(t)),u=An(),h=g.useMemo(()=>{var i;return hn(((i=r.data)==null?void 0:i.todos)??[],l.held)},[r.data,l.held]),d=g.useMemo(()=>h.filter(i=>i.state==="open"&&!l.held[i.id]),[h,l.held]),c=s.sort==="rank"&&s.view==="mine"&&d.length>1,m=kn(t,h,d),[f,T]=g.useState(""),[D,k]=g.useState(!1);D&&!c&&k(!1);const p=D&&c,x=g.useRef(null);g.useEffect(()=>{const i=x.current;i&&(x.current=null,_n(i))},[d,p]);const _=ae(),E=Qe(R(nn,{activationConstraint:{distance:4}}),R(en,{activationConstraint:{delay:300,tolerance:8}}),R(Ze,{coordinateGetter:Ye}));function re(){k(!0);const i=d[0];i&&(x.current=A(C(i.id,1)))}function ie(){k(!1),x.current=`[${I}]`}g.useEffect(()=>{if(!p)return;function i(y){y.key!=="Escape"||y.defaultPrevented||(y.preventDefault(),k(!1),x.current=`[${I}]`)}return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[p]);function L(i,y,v,w){m.move(y,v)&&(x.current=w,T(`Moved to position ${v+1} of ${d.length}.`))}function ce(i,y){const v=d.findIndex(N=>N.id===i.id),w=Math.min(Math.max(v+y,0),d.length-1);if(v===-1||w===v)return;const j=p?`${A(C(i.id,y))}:not(:disabled), ${A(C(i.id,y===-1?1:-1))}`:`[data-todo-grip="${CSS.escape(i.id)}"]`;L(i.id,v,w,j)}function le({active:i,over:y}){if(!y||i.id===y.id)return;const v=d.findIndex(j=>j.id===i.id),w=d.findIndex(j=>j.id===y.id);v!==-1&&w!==-1&&L(String(i.id),v,w,`[data-todo-grip="${CSS.escape(String(i.id))}"]`)}function de(i,y){l.hold(i,y),o.mutateAsync({id:i.id,body:{state:"kept"}}).then(()=>l.saved(i.id)).catch(()=>l.release(i.id))}function ue(i){l.reopen(i.id),o.mutateAsync({id:i.id,body:{state:"open",from:"kept"}}).catch(()=>{}).finally(()=>l.release(i.id))}return n.jsxs("div",{"data-slot":"todo-list",className:"flex flex-col gap-3",children:[n.jsx("p",{role:"status",className:"sr-only",children:f}),n.jsx(On,{filters:s,onChange:a,reorder:{available:c,active:p,onStart:re,onDone:ie}}),r.isPending&&n.jsx(te,{className:"h-24 w-full"}),r.isError&&n.jsx(rn,{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&&n.jsx(Ln,{mine:s.view==="mine",narrowed:s.due!=="any",onNewTodo:e}),r.isSuccess&&h.length>0&&n.jsx(Ue,{sensors:E,collisionDetection:Ge,onDragEnd:le,children:n.jsx(qe,{items:d.map(i=>i.id),strategy:He,children:n.jsx("ul",{className:S("flex flex-col","max-md:-ml-2.5",c&&!_&&"md:-ml-8"),"aria-label":"To-dos","aria-busy":m.moving||void 0,children:h.map((i,y)=>{var P,B;const v=i.assignee.kind==="agent"?u.agentOf(i.assignee.agentId):void 0,w=u.roomTitleOf(i.roomId),j=l.held[i.id],N=j!==void 0;return n.jsx(En,{sortable:c&&i.state==="open"&&!N,onMove:fe=>ce(i,fe),...p&&i.state==="open"&&!N?{reorder:{first:((P=d[0])==null?void 0:P.id)===i.id,last:((B=d[d.length-1])==null?void 0:B.id)===i.id}}:{},todo:i,from:Ve(i.assignedBy,u.agentName),...v?{agent:v}:{},...w?{roomTitle:w}:{},...i.state==="open"&&!N?{onComplete:()=>de(i,y)}:{},...j&&!j.saving&&i.state==="kept"?{onUndo:()=>ue(i)}:{}},i.id)})})})}),!s.showDone&&(((F=r.data)==null?void 0:F.doneCount)??0)>0&&n.jsxs(M,{size:"sm",variant:"ghost",className:r.isSuccess&&h.length===0?"self-center":"self-start",onClick:()=>a("showDone",!0),children:["Show done (",(z=r.data)==null?void 0:z.doneCount,")"]}),s.showDone&&n.jsx(M,{size:"sm",variant:"ghost",className:"self-start",onClick:()=>a("showDone",!1),children:"Hide done"})]})}function A(e){return`[data-todo-move="${CSS.escape(e)}"]`}function _n(e){for(const s of e.split(", ")){const t=document.querySelector(s);if(t){t.focus();return}}}function Ln({mine:e,narrowed:s,onNewTodo:t}){return!e||s?n.jsx("p",{className:"text-muted-foreground px-2 py-4 text-sm",children:"No to-dos here."}):n.jsx(an,{icon:se,headline:"Nothing assigned to you.",description:"Add one, or ask an agent to.",action:{label:"New to-do",onClick:t}})}function Fn(){return n.jsxs(n.Fragment,{children:[n.jsx(tn,{children:"To-dos"}),n.jsx(zn,{})]})}function zn(){const e=sn();return e.isLoading?n.jsx(W,{width:"wide",children:n.jsx(te,{className:"h-24 w-full"})}):e.enabled?n.jsx(W,{width:"wide",children:n.jsx(In,{onNewTodo:on})}):n.jsx(ln,{icon:se,name:"To-do list",description:"One list of what you and your agents need to do.",command:"DORKOS_TODOS_ENABLED=true dorkos"})}const Hn=Fn;export{Hn as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-CP7NM7fw.js";import"./index-BR1m9FON.js";import"./empty-state-BHcmkSzu.js";import"./page-container-0sWZ3xh9.js";import"./use-dev-links-DXcIlMf-.js";import"./UnlinkDialog-B-XCFNSd.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-CP7NM7fw.js";import"./index-BR1m9FON.js";import"./empty-state-BHcmkSzu.js";import"./page-container-0sWZ3xh9.js";import"./use-dev-links-DXcIlMf-.js";import"./UnlinkDialog-B-XCFNSd.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as n}from"./mermaid.core-DUIkdbeL.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as s,r as u,cz as le,B as C,s as ie,a5 as de,a7 as ue,h9 as he,aZ as W,I as me,ha as K,fv as pe,cr as we,hb as fe,gB as ge,hc as xe}from"./index-BR1m9FON.js";const Y={embedded:"DorkOS browser","new-window":"New browser window"},be={embedded:"Browse here. Saved logins stay separate from your usual browser.","new-window":"Opens on the computer running DorkOS. Saved logins stay separate."};function ve({value:t,onChange:n,capabilities:r,disabled:i}){var d;const a={embedded:!!(r!=null&&r.embedded)&&!!((d=window.electronAPI)!=null&&d.localBrowser),"new-window":!!(r!=null&&r.newWindow)};return s.jsxs("fieldset",{disabled:i,className:"space-y-2",children:[s.jsx("legend",{className:"sr-only",children:"Browser"}),Object.keys(Y).map(l=>{var e;return s.jsxs("label",{className:"bg-muted/40 flex items-start gap-2 rounded-lg p-3",children:[s.jsx("input",{type:"radio",name:"local-browser-mode",value:l,checked:t===l,disabled:!a[l],onChange:()=>n(l),className:"mt-1"}),s.jsxs("span",{className:"min-w-0 space-y-1",children:[s.jsx("span",{className:"block text-sm font-medium",children:Y[l]}),s.jsx("span",{className:"text-muted-foreground block text-xs",children:be[l]}),!a[l]&&s.jsx("span",{className:"text-muted-foreground block text-xs",children:((e=r==null?void 0:r.unavailableReasons)==null?void 0:e[l])??(l==="embedded"?"Requires the DorkOS desktop app.":"Available on your DorkOS computer.")})]})]},l)})]})}function ye(t,n,r,i){u.useEffect(()=>{var p,T;const a=(p=window.electronAPI)==null?void 0:p.localBrowser;if(!a||!n||!r)return;let d=!1,l=!1,e="",h=0,S=!1;const z=[];for(let c=(T=t.current)==null?void 0:T.parentElement;c;c=c.parentElement){const w=getComputedStyle(c);/(hidden|clip|auto|scroll)/.test(`${w.overflowX} ${w.overflowY}`)&&z.push(c)}const E=()=>{S=[...document.querySelectorAll('[role="dialog"][aria-modal="true"], [role="alertdialog"], [role="menu"], [data-radix-popper-content-wrapper]')].some(c=>!c.contains(t.current)&&c.getClientRects().length>0&&!c.hidden),L()},L=()=>{var F;if(d||l)return;const c=(F=t.current)==null?void 0:F.getBoundingClientRect();let w=(c==null?void 0:c.x)??0,f=(c==null?void 0:c.y)??0,_=w+((c==null?void 0:c.width)??0),b=f+((c==null?void 0:c.height)??0);for(const q of z){const v=q.getBoundingClientRect();w=Math.max(w,v.x),f=Math.max(f,v.y),_=Math.min(_,v.x+v.width),b=Math.min(b,v.y+v.height)}const P=Math.max(0,_-w),x=Math.max(0,b-f),O=!!c&&!S&&document.visibilityState!=="hidden"&&P>0&&x>0,M={connectionId:n,x:w,y:f,width:P,height:x,visible:O},I=JSON.stringify(M);I!==e&&(e=I,a.setBounds(M).catch(()=>{d||(l=!0,i())}))},D=()=>{L(),!d&&!l&&(h=requestAnimationFrame(D))},B=new MutationObserver(E);return B.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-state","hidden","aria-modal","style","class"]}),E(),D(),()=>{d=!0,B.disconnect(),cancelAnimationFrame(h),a.setBounds({connectionId:n,x:0,y:0,width:0,height:0,visible:!1}).catch(()=>{})}},[t,n,r,i])}const oe={stale_page:"Page changed. Read it again before continuing.",navigation_uncertain:"Check what happened before continuing.",uncertain:"Check what happened before continuing.",paused:"Agent paused. Resume when ready.",busy:"Browser is busy. Wait a moment.",browser_download:"Couldn’t download the browser. Check your connection and try again.",cancelled:"Browser setup stopped. Open it again to continue.",focus_unavailable:"This tab stopped responding. Choose it again.",handoff_open:"An agent is waiting on you in this browser. Answer its card first."},je=["Free some space, then open the browser again.","Check folder permissions, then open the browser again."];function Ce(t){const n=t;return(n==null?void 0:n.code)==="busy"&&n.message==="The browser is still closing. Wait before opening it again."?"The browser is still closing. Wait, then try again.":(n==null?void 0:n.code)==="busy"&&n.message==="Restart DorkOS to finish closing this browser."?"Restart DorkOS to finish closing this browser.":(n==null?void 0:n.code)==="browser_storage"?je.find(i=>i===n.message)??"Couldn’t save the browser. Check free space and folder permissions.":(n!=null&&n.code&&Object.hasOwn(oe,n.code)?oe[n.code]:void 0)??"Couldn’t reach the browser. Reconnect and try again."}function Se(t){const n=u.useRef(null),r=u.useRef(null),i=a=>{r.current=document.activeElement===a?{action:a,interrupted:!1}:null};return u.useEffect(()=>{const a=l=>{const e=r.current;e&&l.target!==e.action&&!(l.type==="focusin"&&l.target===document.body)&&(e.interrupted=!0)},d=()=>{r.current&&(r.current.interrupted=!0)};return document.addEventListener("pointerdown",a,!0),document.addEventListener("keydown",a,!0),document.addEventListener("focusin",a,!0),window.addEventListener("blur",d),()=>{r.current=null,document.removeEventListener("pointerdown",a,!0),document.removeEventListener("keydown",a,!0),document.removeEventListener("focusin",a,!0),window.removeEventListener("blur",d)}},[]),u.useEffect(()=>{if(t||!r.current)return;const a=r.current;if(r.current=null,!a.interrupted&&document.activeElement===document.body&&document.hasFocus()){const d=n.current;d&&!d.disabled&&d.focus()}},[t]),{openButton:n,rememberFocus:i}}function Ee({preparation:t}){const n=t.stage==="checking"?"Checking browser files…":t.stage==="launching"?"Opening the browser…":t.component==="chromium"?"Downloading the browser…":t.component==="headless-shell"?"Downloading browser support…":t.component==="ffmpeg"?"Downloading video support…":"Downloading browser files…",r=t.component==="chromium"?"Browser download":t.component==="headless-shell"?"Browser support download":"Video support download",i=t.stage==="downloading"&&t.component&&t.percent!==null&&Number.isFinite(t.percent)&&t.percent>=0&&t.percent<=100?t.percent:null;return s.jsxs("div",{className:"space-y-1 text-xs","aria-live":"polite",children:[s.jsx("p",{children:n}),i!==null&&s.jsxs(s.Fragment,{children:[s.jsx("progress",{"aria-label":r,max:100,value:i,className:"w-full"}),s.jsxs("p",{children:[i,"%"]})]})]})}function Be({sessionId:t}){const n=le();return s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-sm",children:"Another agent is waiting for a person in this window."}),s.jsx(C,{size:"sm",variant:"outline",onClick:()=>void n(ie({session:t})),children:"Open that chat"})]})}function Ne({visible:t=!0,sessionId:n=null,agentName:r=null}){var ee,se,ne,te;const i=de(),a=ue(),{state:d,capabilities:l}=he(),e=d.data,h=l.data,S=(ee=d.error??l.error)==null?void 0:ee.code,z=S==="local_only"?"Open DorkOS on your computer to use its browser.":S==="owner_only"?"Only this DorkOS owner can choose its browser.":"Couldn’t reach the browser. Reconnect and try again.",E=W(o=>o.localBrowserChoice),L=W(o=>o.localBrowserChoiceIssue),D=W(o=>o.setLocalBrowserChoice),B=!E&&L!==null,[p,T]=u.useState(!1),[c,w]=u.useState(!1),[f,_]=u.useState(null),[b,P]=u.useState(!1),x=u.useRef(0),O=u.useRef(null),[M,I]=u.useState(null),[F,q]=u.useState(null),[v,$]=u.useState(!1),V=u.useRef(null),N=(e==null?void 0:e.status)==="connected",Q=!!(e!=null&&e.sessionId)&&e.sessionId!==n,G=((se=e==null?void 0:e.handoff)==null?void 0:se.outcome)===null&&e.handoff.sessionId!==n?e.handoff:null,g=N&&e.mode?e.mode:(E==null?void 0:E.mode)??(h!=null&&h.embedded&&((ne=window.electronAPI)!=null&&ne.localBrowser)?"embedded":"new-window"),U=e==null?void 0:e.tabs.find(o=>o.id===e.selectedTabId),re=u.useCallback(()=>$(!0),[]);u.useEffect(()=>()=>{x.current+=1},[]),ye(V,(e==null?void 0:e.connectionId)??null,t&&N&&!d.isError&&!Q&&g==="embedded"&&!v,re);const A=async(o,k=!1)=>{const m=++x.current;T(!0),w(k),I(null);try{if(k&&(await a.cancelQueries({queryKey:K}),m!==x.current))return!1;const y=await o();return m!==x.current||(await a.cancelQueries({queryKey:K}),m!==x.current)?!1:(a.setQueryData(K,j=>({handoff:(j==null?void 0:j.handoff)??null,signIn:(j==null?void 0:j.signIn)??null,...y})),!0)}catch(y){return m!==x.current||I(Ce(y)),!1}finally{m===x.current&&(T(!1),w(!1))}},H=()=>{D({mode:g}),_({sessionId:n,mode:g,previousConnectionId:(e==null?void 0:e.connectionId)??null,startedAt:Date.now()}),$(!1);const o=A(()=>i.openLocalBrowser({mode:g,...n?{sessionId:n}:{}}),!0);O.current=o,o.finally(()=>{O.current===o&&(O.current=null)})},ae=async()=>{const o=O.current;P(!0);try{await A(()=>i.disconnectLocalBrowser())&&await a.invalidateQueries({queryKey:K}),await o}finally{P(!1)}},J=h&&(g==="embedded"?h.embedded&&!!((te=window.electronAPI)!=null&&te.localBrowser):h.newWindow),{openButton:ce,rememberFocus:X}=Se(p||b||N||B||!J),Z=c&&!b&&f&&(e!=null&&e.preparation)&&e.status==="disconnected"&&e.sessionId===f.sessionId&&e.mode===f.mode&&e.connectionId&&e.connectionId!==f.previousConnectionId&&d.dataUpdatedAt>=f.startedAt?e.preparation:null;return s.jsxs("section",{"aria-label":"Local browser","data-slot":"local-browser-panel",className:"flex h-full min-h-0 flex-col gap-3 p-3",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsx("h3",{className:"text-sm font-medium",children:N?Y[g]:"Browser"}),s.jsx("span",{role:"status",className:"text-muted-foreground text-xs",children:b?"Cancelling…":c?"Preparing browser":p?"Updating…":(e==null?void 0:e.status)==="closed"?"Browser closed":N?e.paused?"Agent paused":"Connected":"Disconnected"})]}),c&&s.jsx(C,{size:"sm",variant:"outline",onClick:o=>{X(o.currentTarget),ae()},children:"Cancel"}),Z&&s.jsx(Ee,{preparation:Z}),(M||d.isError||l.isError)&&s.jsx("p",{role:"alert",className:"text-sm",children:M??z}),(d.isError||l.isError)&&S!=="local_only"&&S!=="owner_only"&&s.jsx(C,{size:"sm",variant:"outline",onClick:()=>{d.refetch(),l.refetch()},children:"Reconnect"}),G&&s.jsx(Be,{sessionId:G.sessionId}),!N&&!G&&s.jsxs("div",{className:"min-h-0 space-y-3 overflow-y-auto",children:[L&&s.jsx("p",{className:"text-muted-foreground text-xs",children:B?"Choose a browser. The saved choice couldn’t be read.":"Browser choice couldn’t be saved. It lasts until this window closes."}),s.jsx(ve,{value:B?null:g,onChange:o=>{D({mode:o})},capabilities:h,disabled:p||b}),(e==null?void 0:e.status)==="closed"&&s.jsx("p",{className:"text-muted-foreground text-xs",children:"Open it again to reconnect. Saved logins are kept."}),s.jsx(C,{ref:ce,disabled:p||b||B||!J,onClick:H,children:e!=null&&e.mode?"Reconnect":"Open browser"})]}),N&&!G&&s.jsxs(s.Fragment,{children:[Q&&s.jsx("p",{className:"text-muted-foreground text-xs",children:"Shared with another chat. Disconnect to use it here."}),!e.sessionId&&s.jsx("p",{className:"text-muted-foreground text-xs",children:"Only you can use this page. Open from an agent chat to share it."}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[s.jsx(C,{size:"sm",variant:"outline",disabled:p,onClick:()=>void A(()=>e.paused?i.resumeLocalBrowser():i.pauseLocalBrowser()),children:e.paused?"Resume agent":"Pause agent"}),s.jsx(C,{size:"sm",variant:"ghost",disabled:p,onClick:o=>{var y;X(o.currentTarget);const k=((y=e.handoff)==null?void 0:y.outcome)===null?e.handoff.id:null;let m;A(async()=>m=await i.disconnectLocalBrowser()).then(j=>{const R=m==null?void 0:m.handoff;j&&(R==null?void 0:R.id)===k&&(R==null?void 0:R.outcome)==="stopped"&&i.interruptSession(R.sessionId).catch(()=>{})})},children:"Disconnect"})]}),s.jsxs("label",{className:"text-sm",children:[e.sessionId?Q?"Shared with another chat":`Shared with ${r||"this chat’s agent"}`:"Browser tab",s.jsxs("select",{className:"bg-muted/40 mt-1 block w-full rounded-md p-2",value:e.selectedTabId??"",disabled:p,onChange:o=>{q(null),A(()=>i.selectLocalBrowserTab(o.target.value))},children:[!e.selectedTabId&&s.jsx("option",{value:"",children:"Choose a tab"}),e.tabs.map(o=>s.jsx("option",{value:o.id,children:o.title||(o.url==="about:blank"?"New tab":o.url)},o.id))]})]}),U&&s.jsxs("form",{className:"flex gap-2",onSubmit:o=>{o.preventDefault();const k=F??U.url;try{const m=new URL(k);if(!["http:","https:"].includes(m.protocol))throw new Error("unsupported");A(()=>i.navigateLocalBrowser(m.href)).then(y=>{y&&q(null)})}catch{I("Enter a full web address, starting with https:// or http://.")}},children:[s.jsx(me,{"aria-label":"Web address",value:F??U.url,onChange:o=>q(o.target.value),className:"min-w-0"}),s.jsx(C,{size:"sm",variant:"outline",type:"submit",disabled:p,children:"Go"})]}),e.paused&&s.jsxs("div",{className:"text-muted-foreground space-y-1 text-xs",children:[s.jsx("p",{children:"Pause stops new actions. An action already started may finish."}),s.jsx("p",{children:"Your mouse and keyboard still work."})]}),g!=="embedded"&&s.jsx("p",{className:"text-muted-foreground text-sm",children:"This page is in the separate browser window."}),g==="embedded"&&s.jsx("p",{className:"text-muted-foreground text-xs",children:"This page stays in the right panel."}),g==="embedded"&&!Q&&s.jsx("p",{className:"text-muted-foreground text-xs",children:e.sessionId?"Extra windows are for you. Your agent stays on this page.":"Extra windows are for you."}),g==="embedded"&&s.jsx("div",{ref:V,"data-slot":"native-browser-surface",className:"bg-muted/20 relative min-h-48 flex-1 rounded-lg",children:v&&s.jsxs("div",{className:"space-y-2 p-3",children:[s.jsx("p",{role:"alert",className:"text-sm",children:"Couldn’t show the page. Reconnect to try again."}),s.jsx(C,{size:"sm",variant:"outline",onClick:H,disabled:p,children:"Reconnect"})]})})]})]})}function Re(){const t=pe({select:h=>h.location.pathname}),[n]=we(),r=t==="/session"?n:null,{data:i}=fe(r,{enabled:!!r,nameOnly:!0}),{data:a}=ge((i==null?void 0:i.cwd)??null),d=u.useContext(xe),l=W(h=>h.rightPanelOpen),e=W(h=>h.activeRightPanelTab);return s.jsx(Ne,{visible:d&&l&&e==="local-browser",sessionId:t==="/session"?n:null,agentName:t==="/session"?a==null?void 0:a.name:null},t==="/session"?`chat:${n??""}`:"human-only")}export{Re as LocalBrowserContent,Ne as LocalBrowserPanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as n,M as h}from"./Marketplace-CzPhJEE1.js";import{M as I,P as U,m as V,u as b,a as C}from"./index-BR1m9FON.js";import{M as j}from"./MarketplaceSourcesView-CmQgxQmU.js";import{U as v}from"./UnlinkDialog-B-XCFNSd.js";import"./tabs-Ctjzrm8t.js";import"./empty-state-BHcmkSzu.js";import"./markdown-content-DhAtZOfj.js";import"./PreviewRefusedNotice-DzbkMrUo.js";import"./shield-x-CEWfkzDN.js";import"./use-unclaimed-chats--HZdmq4F.js";import"./use-bindings-gLHRNAFU.js";import"./more-details-DV7LmY0E.js";import"./use-dev-links-DXcIlMf-.js";import"./file-CQGljfDT.js";import"./AgentPicker-BDci-9aL.js";import"./command-CaUEAy3b.js";import"./AgentOptionRow-ApuDEKqq.js";import"./useMutationState-DIywUTDG.js";import"./file-exclamation-point-B0a55VME.js";import"./rotate-ccw-clock-DRtL-2nr.js";import"./path-input-BPVyI72G.js";import"./use-pending-read-mVsOBTzn.js";export{n as InstalledPackagesView,h as Marketplace,I as MarketplaceSidebar,j as MarketplaceSourcesView,U as PackageCard,v as UnlinkDialog,V as marketplaceSearchSchema,b as useMarketplaceParams,C as useMarketplaceStore};
|