dorkos 0.119.0 → 0.120.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 +3249 -2848
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-DPEGtCwv.js → AboutPage-Y8O56Cz5.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-ENqFKw2l.js → ActivityErrorState-DlROxqde.js} +1 -1
- package/dist/client/assets/{ActivityPage-Bh3Fhkkr.js → ActivityPage-BdV90CV2.js} +1 -1
- package/dist/client/assets/{ActivityRow-Mj9YGZo2.js → ActivityRow-B5yiD_uD.js} +1 -1
- package/dist/client/assets/{AdapterIcon-BcejWkC-.js → AdapterIcon-Dyq92Eup.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-CEnUjD84.js → AdapterSetupWizard-D9tqz7Hl.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-DcKMOkUs.js → AgentOptionRow-BeRqDo7c.js} +1 -1
- package/dist/client/assets/{AgentPicker-W6XeKjz9.js → AgentPicker-BRyYVJZu.js} +1 -1
- package/dist/client/assets/{AgentRequestCard-C8xPf4Ij.js → AgentRequestCard-xX6fAKgO.js} +4 -4
- package/dist/client/assets/{AppearancePage-uoWRNL1C.js → AppearancePage-DKF9BqRt.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-C5Nf8pjH.js → ApplyToOverridesDialog-CPvtr_-f.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-BI-uQ-ay.js → AttentionSignalRow-vBfioH1A.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Cpi-0c7y.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-B50zNtwB.js} +1 -1
- package/dist/client/assets/{BindingDialog-B3vCYvfL.js → BindingDialog-CSNjws3F.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-D_HlpfZu.js → BlintzCanvas-ClOKWzws.js} +1 -1
- package/dist/client/assets/{CanvasCsvContent-DtZuAo03.js → CanvasCsvContent-0Mb7uOuA.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-g5wQR7yt.js → CanvasFileContent-B_8zsIas.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-BlYcTOLd.js → CanvasModel3dContent-UokbHY9i.js} +2 -2
- package/dist/client/assets/{ChatAppsOff-B996C06C.js → ChatAppsOff-CLRB0YU5.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-UfNeO6Wa.js → CodeMirrorDiff-B4uFJD6g.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-BMSnTJnS.js → CodeMirrorEditor-rYOrBAZc.js} +1 -1
- package/dist/client/assets/{CommitmentList-LBnn140g.js → CommitmentList-i-IZ4gbr.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-BNEP939u.js → CommitmentsPage-ChO1JkrE.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-C97PoLhs.js → ComputerResourceView-pLuD2ie6.js} +1 -1
- package/dist/client/assets/{ComputerViewer-DVaP4S-x.js → ComputerViewer-D7tPmpY5.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-COotkMKW.js → ConnectionAccessLists-D6VH1vX3.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-DMqldmCl.js → ConnectionsPage-7x5olD9q.js} +1 -1
- package/dist/client/assets/{ConventionPage-DXcAUNjb.js → ConventionPage-BTYLWw6p.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-Cx-zCEnS.js → ExtensionPageRoute-A9AdBBbw.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-U9QmMzNM.js → FloatingTanStackRouterDevtools-CqogiFob-ayv0yz1C.js} +1 -1
- package/dist/client/assets/HandlePage-BdRWgke2.js +1 -0
- package/dist/client/assets/{HeartbeatPage-lS53N7qR.js → HeartbeatPage-Dh6W9Qg5.js} +1 -1
- package/dist/client/assets/KeyEntry-owhPGtw3.js +1 -0
- package/dist/client/assets/{LexicalField-NpV0yrX5.js → LexicalField-B1NFMLD6.js} +1 -1
- package/dist/client/assets/{ManagesPage-Dvjt_Ql0.js → ManagesPage-BAnBmBdo.js} +1 -1
- package/dist/client/assets/{Marketplace-BXrL6XrG.js → Marketplace-67maxdwz.js} +1 -1
- package/dist/client/assets/{MarketplaceSourcesView-Xm9UboIG.js → MarketplaceSourcesView-CzPBNJJj.js} +1 -1
- package/dist/client/assets/{McpAppFrame-BOhSmDHb.js → McpAppFrame-CuObpQTg.js} +1 -1
- package/dist/client/assets/McpSigninBody-B-ayj6bQ.js +1 -0
- package/dist/client/assets/{Model3dViewer-B0efG9VW.js → Model3dViewer-DRVqxazk.js} +1 -1
- package/dist/client/assets/NamePage-DyH8JAqT.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-BOwmahin.js → NewDirectMessageMenu-B3DxayR2.js} +1 -1
- package/dist/client/assets/{NotificationsPage-pQg9DtG3.js → NotificationsPage-BavEo7VZ.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-C5dCRdqs.js → OpenMeshSwitch-BwkX2Toa.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-CgSvpX-s.js → OperatorIdentityForm-CtWgz2yi.js} +1 -1
- package/dist/client/assets/{PermissionHistory-ChEe8iYR.js → PermissionHistory-DvM0F2bS.js} +1 -1
- package/dist/client/assets/{PermissionsPage-C8gICIw9.js → PermissionsPage-D1DJHezV.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-DcuHjnIT.js → PersonalityPopover-BV-9wfIl.js} +1 -1
- package/dist/client/assets/PhotoPage-BHvRQnex.js +1 -0
- package/dist/client/assets/{PresetPicker-C-HcfktA.js → PresetPicker-BOQKgYAK.js} +2 -2
- package/dist/client/assets/{PreviewRefusedNotice-CgJeWKad.js → PreviewRefusedNotice-BdhUln2h.js} +1 -1
- package/dist/client/assets/{ProfileFields-Bpe71duM.js → ProfileFields-DFRnRR38.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-r2T2nLuy.js → ProfilePanelContainer-CkxX9Dps.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-B9as28eL.js → ProfileRolePicker-BSYi_luB.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-BjyRYcZH.js → PromptSuggestionChips-r08GqBH1.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-Bs59IbmP.js → ReportsToPopover-BcsM5Eia.js} +1 -1
- package/dist/client/assets/{RoomSurface-CcxCucEt.js → RoomSurface-DaRCf4og.js} +5 -5
- package/dist/client/assets/{RoomsPage-gAEppmDN.js → RoomsPage-CQqsdVvB.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-BYqbPh-k.js → RunsOnPopover-DFb4xEhP.js} +1 -1
- package/dist/client/assets/{RuntimeConnectFlow-BmMBE_ki.js → RuntimeConnectFlow-pKFJlNSJ.js} +1 -1
- package/dist/client/assets/{RuntimeSetupDialog-DsDi5RBn.js → RuntimeSetupDialog-DvBJbrmj.js} +1 -1
- package/dist/client/assets/{SessionsPage-Cid8fhdk.js → SessionsPage-CGgnEPh7.js} +1 -1
- package/dist/client/assets/SettingsDialog-D0cmzjrH.js +12 -0
- package/dist/client/assets/{SkillsPage-YiAaBf5n.js → SkillsPage-DDoPlsn2.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-BZ19n03x.js → TaskDialogWrapper-DoIVzbKU.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-RqhzTXZs.js → TasksEmptyState-B68O6dnT.js} +2 -2
- package/dist/client/assets/{TasksPage-CkaqOq26.js → TasksPage-BsBDphim.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-BFwHEcxT.js → TeamComputerEntry-CoQ4EsDm.js} +1 -1
- package/dist/client/assets/{ToolsPage-BnCLKQr8.js → ToolsPage-Cl1aOpev.js} +2 -2
- package/dist/client/assets/{TopologyGraph-CAkARLa1.js → TopologyGraph-D3CxaLGX.js} +2 -2
- package/dist/client/assets/{TourHost-D6Lclw6P.js → TourHost-4O6TJzc-.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-DqKrNRIZ.js → UnlinkDialog-DIMY60Fi.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-YpoGnbGt.js → WidgetErrorCard-CzWw_SPD.js} +23 -23
- package/dist/client/assets/_shell-BRH2Y-U-.js +80 -0
- package/dist/client/assets/{_shell._home-BcVOIprN.js → _shell._home-DG3Vw7S5.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-B-5keh6v.js → _shell._home.activity-COI96oAO.js} +1 -1
- package/dist/client/assets/{_shell._home.index-CeUO_fiS.js → _shell._home.index-CTwsTjcQ.js} +1 -1
- package/dist/client/assets/{_shell._home.tasks-DrghkSwu.js → _shell._home.tasks-DOVoPYaf.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-ClpXSXb7.js → _shell._home.workspaces-ApZhnjwy.js} +1 -1
- package/dist/client/assets/_shell.channels-CRkJHU5R.js +10 -0
- package/dist/client/assets/{_shell.connections-BAyaKCu0.js → _shell.connections-bhAK3jnE.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-C_0Cb9ew.js → _shell.feedback-requests-k43R8-rW.js} +1 -1
- package/dist/client/assets/_shell.marketplace-DGN_IdZY.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-2YMpLInp.js +1 -0
- package/dist/client/assets/{_shell.session-DAOicD3_.js → _shell.session-D871zZl3.js} +15 -15
- package/dist/client/assets/{_shell.team-C9JBEYch.js → _shell.team-DHCM1QoO.js} +6 -6
- package/dist/client/assets/_shell.x._extensionId-D3-n5IRW.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-D3-n5IRW.js +1 -0
- package/dist/client/assets/{access-copy-DBchOVu9.js → access-copy-BVzi1REx.js} +1 -1
- package/dist/client/assets/{banner-DyAc42ob.js → banner-3xXXsU5J.js} +1 -1
- package/dist/client/assets/{card-B1UFbnvJ.js → card-Bt6IU-Bh.js} +1 -1
- package/dist/client/assets/{command-EveETx4P.js → command-CWokzKS1.js} +1 -1
- package/dist/client/assets/{cpu-6HIzSTBv.js → cpu-BzByzE9V.js} +1 -1
- package/dist/client/assets/{empty-state-DK2Wg9m3.js → empty-state-BgnQDiMZ.js} +1 -1
- package/dist/client/assets/{execution-config-e5c_6oSg.js → execution-config-D5-SEt2t.js} +1 -1
- package/dist/client/assets/{file-CxdN5JO4.js → file-VHDTQub2.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-ID9vXo0l.js → file-exclamation-point-DbWvGys0.js} +1 -1
- package/dist/client/assets/{file-text-DtcloCeg.js → file-text-BAhi2zct.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-BGZDFnjV.js → find-latest-widget-fence-Z0HPVqeK.js} +1 -1
- package/dist/client/assets/{form-Bs1x_gSI.js → form-Blrb1xBU.js} +1 -1
- package/dist/client/assets/{format-cron-i_Bh2HP3.js → format-cron-lKWqEmle.js} +1 -1
- package/dist/client/assets/{git-branch-B3IXXOlG.js → git-branch-BObm8Rlz.js} +1 -1
- package/dist/client/assets/{heart-BKVGdKg5.js → heart-Du7nuefC.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-2S9TnGZL.js → highlighted-body-KPVGNVTW-B_GO7V1P.js} +1 -1
- package/dist/client/assets/{image-lightbox-D28E719A.js → image-lightbox-BZ1TV3mN.js} +1 -1
- package/dist/client/assets/{image-off-BuNZtQ_w.js → image-off-hnjcBIzN.js} +1 -1
- package/dist/client/assets/{index-CDBp2azY.js → index-1I8qHZDt.js} +1 -1
- package/dist/client/assets/{index-OTmqX-Xu.js → index-4GC2fkeO.js} +1 -1
- package/dist/client/assets/{index-CIxwv14l.js → index-4PAAWURd.js} +1 -1
- package/dist/client/assets/{index-CsUyZMaJ.js → index-B0tAedq7.js} +1 -1
- package/dist/client/assets/{index-BM9n-UZ_.js → index-BP68J4pb.js} +1 -1
- package/dist/client/assets/{index-Dr3MaxIU.js → index-BUOcbPfv.js} +3 -3
- package/dist/client/assets/{index-uukEE2As.js → index-BVKXIbLh.js} +1 -1
- package/dist/client/assets/{index-CHZfO-eM.js → index-BaRQVgiN.js} +1 -1
- package/dist/client/assets/{index-BUAYrK-t.js → index-BeVbHOwX.js} +2 -2
- package/dist/client/assets/{index-B-wVtE7g.js → index-BgzgdvDn.js} +1 -1
- package/dist/client/assets/{index-5081rTdO.js → index-Bm0z9mHt.js} +1 -1
- package/dist/client/assets/{index-Ce9sdGIU.js → index-BnNTKsbt.js} +1 -1
- package/dist/client/assets/{index-CAB4SfyK.js → index-BtbZpz4b.js} +1 -1
- package/dist/client/assets/{index-ClxqCDE6.js → index-BvjuGXcS.js} +1 -1
- package/dist/client/assets/{index-DrBU917j.js → index-C60RrnTd.js} +1 -1
- package/dist/client/assets/{index-Pcm0P4su.js → index-CBm3whA-.js} +1 -1
- package/dist/client/assets/{index-DVpRV8UX.js → index-CCg7yRe1.js} +1 -1
- package/dist/client/assets/{index-CxYD3BRB.js → index-CQCN6kWR.js} +1 -1
- package/dist/client/assets/index-Cdyszxoa.js +17 -0
- package/dist/client/assets/{index-LPr-pCZr.js → index-Ch-ON5gw.js} +1 -1
- package/dist/client/assets/{index-CfpVrvtk.js → index-Ci74HAFs.js} +1 -1
- package/dist/client/assets/{index-DP_WiQNC.js → index-CiQxS4Bn.js} +1 -1
- package/dist/client/assets/{index-ByUBGmdN.js → index-CqoIjNC2.js} +2 -2
- package/dist/client/assets/index-CrflCTqO.css +1 -0
- package/dist/client/assets/{index-5BVp-usS.js → index-D5TZCu8j.js} +1 -1
- package/dist/client/assets/{index-CtRknSis.js → index-D6y4WeTi.js} +1 -1
- package/dist/client/assets/{index-CJllc1_e.js → index-DB8TDRSm.js} +1 -1
- package/dist/client/assets/index-DCOOlbEt.js +1 -0
- package/dist/client/assets/{index-DIpkbx_g.js → index-DHYvT3nr.js} +7 -7
- package/dist/client/assets/{index-Cc5UdmnD.js → index-DRea_Gi0.js} +1 -1
- package/dist/client/assets/index-Dain_3cO.js +1 -0
- package/dist/client/assets/index-Dc5cpBoO.js +1023 -0
- package/dist/client/assets/{index-KONo3kU0.js → index-Df7a-2P5.js} +1 -1
- package/dist/client/assets/{index-CFo8WKHw.js → index-DkhM0fDi.js} +1 -1
- package/dist/client/assets/{index-V5Rn9SxH.js → index-DoMJUxt_.js} +1 -1
- package/dist/client/assets/{index-rROsmUvj.js → index-EZHlD3gf.js} +1 -1
- package/dist/client/assets/{index-DwKOsAwH.js → index-HxT_wkaZ.js} +1 -1
- package/dist/client/assets/{index-DaFf8fyv.js → index-Lh82Rz5C.js} +1 -1
- package/dist/client/assets/{index-7cQQSs20.js → index-WxtASL5_.js} +1 -1
- package/dist/client/assets/{index-CoMMwnLj.js → index-_5Dn0bFm.js} +1 -1
- package/dist/client/assets/{index-DVUGIueq.js → index-aXm0xP_2.js} +1 -1
- package/dist/client/assets/{index-CqcPXANi.js → index-ox3ce99A.js} +1 -1
- package/dist/client/assets/{index-CQ_s1Luo.js → index-r_O6CmXY.js} +1 -1
- package/dist/client/assets/{index.esm-C1I5Nd91.js → index.esm-DXsF3Bua.js} +1 -1
- package/dist/client/assets/{inline-code-BxjIkZsu.js → inline-code-DAEoWvTf.js} +1 -1
- package/dist/client/assets/{layers-CIuBDynf.js → layers-CsM34LRv.js} +1 -1
- package/dist/client/assets/{lightbulb-C75cqB7d.js → lightbulb-B8JAixK_.js} +1 -1
- package/dist/client/assets/{link-2-g7crG37S.js → link-2-Csc6okl3.js} +1 -1
- package/dist/client/assets/{list-runtime-types-GVPyyQUh.js → list-runtime-types-DQrZNB7x.js} +1 -1
- package/dist/client/assets/{markdown-content-siVxwwSU.js → markdown-content-DPc7aD1j.js} +1 -1
- package/dist/client/assets/{mention-pill-CjxBxD6M.js → mention-pill-8P_w4muj.js} +1 -1
- package/dist/client/assets/{message-square-off-BxuvD1QP.js → message-square-off-D5DXu2cY.js} +1 -1
- package/dist/client/assets/{more-details-DN_gIeya.js → more-details-DEeu2M-p.js} +1 -1
- package/dist/client/assets/{owner-notice-DnYrX3mh.js → owner-notice-BW4k1ycg.js} +1 -1
- package/dist/client/assets/{package-b8MxCYZr.js → package-BSwwAFVm.js} +1 -1
- package/dist/client/assets/{page-container-bbfE5uTV.js → page-container-CjPUNtNw.js} +1 -1
- package/dist/client/assets/{paperclip-BNBU7WUb.js → paperclip-DQaRz34E.js} +1 -1
- package/dist/client/assets/{path-input-BhzVuKWq.js → path-input-CgXSYNZn.js} +1 -1
- package/dist/client/assets/plug-BaUXMfIl.js +11 -0
- package/dist/client/assets/{primer-trigger-DHPWwwZl.js → primer-trigger-DHB0vilf.js} +1 -1
- package/dist/client/assets/{profile-errors-DDvyjpcQ.js → profile-errors-JW2XTgia.js} +1 -1
- package/dist/client/assets/{progress-DUKHwOZJ.js → progress-CErAw8zp.js} +1 -1
- package/dist/client/assets/{query-error-state-DOJRiizQ.js → query-error-state-BFWpEXsl.js} +1 -1
- package/dist/client/assets/{radio-kbMW2w1m.js → radio-Bkx216ga.js} +1 -1
- package/dist/client/assets/registry-Ce1VRIS3.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-3XV1_WMC.js → relay-trace-schemas-DiZj_AFV.js} +1 -1
- package/dist/client/assets/{room-files-source-CDA5V_Mw.js → room-files-source-BilZvdpf.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-BGYqHuYK.js → rotate-ccw-clock-D_SO1stN.js} +1 -1
- package/dist/client/assets/{rotate-cw-BdJrGLyp.js → rotate-cw-C68kM23F.js} +1 -1
- package/dist/client/assets/{scroll-area-D-CWiQov.js → scroll-area-CVWFUmJV.js} +1 -1
- package/dist/client/assets/{search-x-DNIPyXe6.js → search-x-BTFVvyA2.js} +1 -1
- package/dist/client/assets/{shield-check-zWzf9nt2.js → shield-check-Dpxi6WqO.js} +1 -1
- package/dist/client/assets/{shield-x-Bu5-LOse.js → shield-x-CdCCgyXk.js} +1 -1
- package/dist/client/assets/signed-in-BxAnDo0S.js +1 -0
- package/dist/client/assets/{soul-file-CoSSajv6.js → soul-file-CRfKVJX3.js} +1 -1
- package/dist/client/assets/{table-Bt_aJtoi.js → table-BL3xUC41.js} +1 -1
- package/dist/client/assets/{terminal-ub-ExeTA.js → terminal-u_UCRzSM.js} +1 -1
- package/dist/client/assets/{trust-posture-CWt3tUjL.js → trust-posture-B-v4BWo7.js} +1 -1
- package/dist/client/assets/{unplug-BCqRQfhH.js → unplug-CFbC-L5W.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-CgvUEO5t.js → unverified-catalog-notice-ZUqscVFM.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-ClW3m3Yz.js → use-adapter-catalog-Z4MDWZAZ.js} +1 -1
- package/dist/client/assets/{use-bindings-CFiTPDOx.js → use-bindings-CsTavmf-.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-B70wbKdU.js → use-composer-prefs-BY2dTvep.js} +1 -1
- package/dist/client/assets/{use-connector-management-B_mb2h8I.js → use-connector-management-L9l21yTi.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-DuJW3UA9.js → use-deep-link-scroll-Bn2ZUtDY.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DWXownno.js → use-delete-binding-DLvdHtPD.js} +1 -1
- package/dist/client/assets/{use-dev-links-UPIkbIjA.js → use-dev-links-DFvL8mIg.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-x7pDUqmo.js → use-external-adapter-catalog-Be57G4tz.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-l9UhDUNU.js → use-full-activity-feed-Cp3lYXdi.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-DmekpHAF.js +1 -0
- package/dist/client/assets/use-is-hub-el7LTkg3.js +1 -0
- package/dist/client/assets/{use-jump-back-in-CKA3z2by.js → use-jump-back-in-ChH1FSEK.js} +1 -1
- package/dist/client/assets/{use-local-browser-DL5b5JIK.js → use-local-browser-zA8gMhcC.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-BYGYArKq.js → use-mesh-topology-CvoD-L1G.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-D_xUn22L.js → use-mounted-ref-Ch0wqQry.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-42ajom2z.js → use-notification-prefs-DeR05zhp.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-CLIDc7_z.js → use-panel-tab-placements-DdjrmaoK.js} +1 -1
- package/dist/client/assets/use-pending-read-DBpte0GI.js +1 -0
- package/dist/client/assets/{use-personality-commit-D7jyGUrF.js → use-personality-commit-qQfISO2-.js} +1 -1
- package/dist/client/assets/use-promo-activation-CwGoE7b-.js +11 -0
- package/dist/client/assets/{use-promo-dismissals-CsJELZ1_.js → use-promo-dismissals-BBqVN4hx.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-TqSBTrFT.js → use-pulse-freshness-BKW7tjvX.js} +1 -1
- package/dist/client/assets/{use-relay-config-CLeVWrpV.js → use-relay-config-D5iieBXl.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-C-zlw4nh.js → use-room-follow-claim-BwZh2ZPH.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-H2EzOl9b.js → use-roving-tab-list-Ct7yDAUE.js} +1 -1
- package/dist/client/assets/use-session-canvas-CJrfZrYG.js +24 -0
- package/dist/client/assets/{use-session-diagnostics-CDmiMYHx.js → use-session-diagnostics-Dn-Wnyhh.js} +3 -3
- package/dist/client/assets/{use-unclaimed-chats-Bd93jy-J.js → use-unclaimed-chats-M-c5tjXH.js} +1 -1
- package/dist/client/assets/use-update-config-DhlbZldm.js +1 -0
- package/dist/client/assets/{useMutationState-BZZ5TO4d.js → useMutationState-Cd-VqRAv.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/drizzle/20261017113300_session_public_computer.sql +1 -0
- package/dist/drizzle/meta/20261017113300_snapshot.json +14020 -0
- package/dist/drizzle/meta/_journal.json +7 -0
- package/dist/server/index.js +22779 -19965
- package/dist/server/index.js.map +2 -2
- package/package.json +4 -4
- package/dist/client/assets/HandlePage-DUFrvuVy.js +0 -1
- package/dist/client/assets/KeyEntry-tKXV9D24.js +0 -6
- package/dist/client/assets/McpSigninBody-CRj8tXsh.js +0 -1
- package/dist/client/assets/NamePage-fiIXQig_.js +0 -1
- package/dist/client/assets/PhotoPage-BnxmY5mq.js +0 -1
- package/dist/client/assets/SettingsDialog-BZkPlifY.js +0 -12
- package/dist/client/assets/_shell-BQ7hvFsP.js +0 -90
- package/dist/client/assets/_shell.channels-DYNK-rbr.js +0 -10
- package/dist/client/assets/_shell.marketplace-B1CT9Y3y.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-DVHJ2s7a.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-B6Ccjrvp.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-B6Ccjrvp.js +0 -1
- package/dist/client/assets/index-BONR--d7.css +0 -1
- package/dist/client/assets/index-BULRe04c.js +0 -1018
- package/dist/client/assets/index-C8NfFfij.js +0 -17
- package/dist/client/assets/index-CRMbYKMh.js +0 -1
- package/dist/client/assets/index-CidWt_HE.js +0 -1
- package/dist/client/assets/registry-BisJE2TH.js +0 -1
- package/dist/client/assets/use-is-below-desktop-ByiGZk3p.js +0 -1
- package/dist/client/assets/use-pending-read-Cy9OB3jX.js +0 -1
- package/dist/client/assets/use-promo-activation-Dw1KvykA.js +0 -11
- package/dist/client/assets/use-session-canvas-Bm_AzSm7.js +0 -24
- package/dist/client/assets/use-update-config-DjF61lwf.js +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{W as yt,r as m,j as t,iG as vt,a1 as se,a3 as he,iH as ge,iI as V,iJ as Q,iK as Ct,c4 as be,l as je,a2 as jt,a4 as Ae,iL as Rt,iM as wt,iN as Nt,iO as ve,iP as we,B as k,iQ as St,ct as kt,d$ as pe,dU as bt,dV as At,dW as Dt,dX as Tt,dY as Et,I as Je,g8 as Be,gW as Mt,g9 as We,ga as Ge,gb as Ve,gc as Xe,gd as Ze,ge as et,gf as Ot,cw as De,cx as Te,cz as Ee,cA as Me,cB as Oe,dw as Ue,dc as Ie,a7 as tt,iR as Ut,iS as It,hd as $t,iT as Kt,iy as $e,iU as st,iV as Lt,iW as _t,iX as nt,iY as Pt,iZ as zt,dI as rt,i_ as Ft,i$ as qt,j0 as Yt,j1 as Ht,a0 as Qt,e2 as Jt,fo as Bt,cD as at,j2 as Wt,j3 as Gt,ad as Vt,n as Fe}from"./index-BULRe04c.js";import{T as Xt,R as Zt,a as es}from"./RoomSurface-CcxCucEt.js";import{M as me,C as Ne}from"./index-DIpkbx_g.js";import{M as ts}from"./markdown-content-siVxwwSU.js";import{o as ss,a as ns,c as rs}from"./owner-notice-DnYrX3mh.js";import"./use-jump-back-in-CKA3z2by.js";import"./use-room-follow-claim-C-zlw4nh.js";import"./WidgetErrorCard-YpoGnbGt.js";import"./index-LPr-pCZr.js";import"./card-B1UFbnvJ.js";import"./progress-DUKHwOZJ.js";import"./table-Bt_aJtoi.js";import"./terminal-ub-ExeTA.js";import"./package-b8MxCYZr.js";import"./heart-BKVGdKg5.js";import"./git-branch-B3IXXOlG.js";import"./file-text-DtcloCeg.js";import"./file-CxdN5JO4.js";import"./find-latest-widget-fence-BGZDFnjV.js";import"./format-duration-BCr6uzby.js";import"./RuntimeSetupDialog-DsDi5RBn.js";import"./inline-code-BxjIkZsu.js";import"./list-runtime-types-GVPyyQUh.js";import"./RuntimeConnectFlow-BmMBE_ki.js";import"./useMutationState-BZZ5TO4d.js";import"./runtime-connect-Dn0T5YWv.js";import"./mention-pill-CjxBxD6M.js";import"./rotate-ccw-clock-BGYqHuYK.js";import"./unplug-BCqRQfhH.js";import"./message-square-off-BxuvD1QP.js";import"./registry-BisJE2TH.js";import"./use-connector-management-B_mb2h8I.js";import"./AgentRequestCard-C8xPf4Ij.js";import"./access-copy-DBchOVu9.js";import"./query-error-state-DOJRiizQ.js";import"./empty-state-DK2Wg9m3.js";import"./use-bindings-CFiTPDOx.js";import"./connection-copy--MA7AN04.js";import"./KeyEntry-tKXV9D24.js";import"./file-drag-GDx2qhdk.js";import"./paperclip-BNBU7WUb.js";import"./index-OTmqX-Xu.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 it={name:"circle-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.35 2.69A10 10 0 0 1 21.3 15.65",key:"1pfsoa"}],["path",{d:"M19.08 19.08A10 10 0 1 1 4.92 4.92",key:"1ablyi"}]]};it.node;const as=yt(it),is=5e3;function os({connection:e}){var h;const s=e.official===!0&&e.status==="connected"&&((h=e.access)==null?void 0:h.state)==="unverified",n=m.useMemo(()=>s?{}:null,[s]),[r,l]=m.useState(null);return m.useEffect(()=>{if(!n)return;const c=setTimeout(()=>l(n),is);return()=>clearTimeout(c)},[n]),n===null||r!==n?null:t.jsx(vt,{tone:"info",role:"status",className:"m-3","data-testid":"official-space-unreachable",children:"The DorkOS community isn’t reachable right now. Try again in a few minutes."})}const ls=500,ie=new Map;function ot(e,s){return e.id!==s.id||e.community!==s.community||e.roomId!==s.roomId||e.text===s.text&&e.authorDisplayName===s.authorDisplayName&&JSON.stringify(e.mentions)===JSON.stringify(s.mentions)&&JSON.stringify(e.attachments)===JSON.stringify(s.attachments)?e:{...e,text:s.text,mentions:s.mentions,attachments:s.attachments,authorDisplayName:s.authorDisplayName}}function ke(e,s){if(s.size===0)return e;let n=!1;const r=e.map(l=>{const h=s.get(l.id),c=h?ot(l,h):l;return c!==l&&(n=!0),c});return n?r:e}function Ce(e,s,...n){const r=new Map;for(const l of n)for(const h of l){if(h.community!==e||h.roomId!==s)throw new Error("Community history contains a different room.");r.set(h.id,h)}return[...r.values()].sort((l,h)=>l.remoteSeq-h.remoteSeq)}function cs(e,s,n=!0,r=0,l="legacy",h=!1,c){const i=se(),a=m.useRef(c);m.useEffect(()=>{a.current=c},[c]);const u=he(),d=ge(!0,l,e),p=JSON.stringify([d==null?void 0:d.ownerKey,d==null?void 0:d.epoch,d==null?void 0:d.route.epoch,d==null?void 0:d.accessFingerprint,e,s]),[A,j]=m.useState(()=>({address:p,room:null,entries:[],revisions:ie,deliveries:[],status:"connecting"}));return m.useEffect(()=>{if(!d||!n)return;const y=d,N=new AbortController;let O,P=0,U,q,z=!1;j({address:p,room:null,entries:[],revisions:ie,deliveries:[],status:"connecting"});function T(){z=!0,U=void 0,q=void 0,u.removeQueries({queryKey:Q.remote(y,e)}),j({address:p,room:null,entries:[],revisions:ie,deliveries:[],status:"removed"})}async function L(){try{await i.subscribeRemoteCommunityRoom(e,s,x=>{var E;if(!(N.signal.aborted||z||!V(y))){if(x.type==="closed"){(x.reason==="removed"||x.reason==="revoked")&&T();return}if(P=0,x.type==="snapshot")U=x.cursor??void 0,x.redactionCursor&&(q=x.redactionCursor),u.setQueryData(Q.room(y,e,s),x.room),j(g=>({address:p,room:x.room,entries:ke(Ce(e,s,g.address===p?g.entries:[],x.entries).slice(-500),g.address===p?g.revisions:ie),revisions:g.address===p?g.revisions:ie,deliveries:g.deliveries.filter(C=>!x.entries.some(R=>R.originIdempotencyKey===C.idempotencyKey)),status:x.stale?"offline":"live"}));else if(x.type==="revision"){const g=x.entry;x.redactionCursor&&(q=x.redactionCursor);const C=[...Q.room(y,e,s),"entries"],$=u.getQueriesData({queryKey:C}).some(([,D])=>D==null?void 0:D.pages.some(K=>K.entries.some(J=>J.id===g.id)))||u.isFetching({queryKey:C})>0||((E=a.current)==null?void 0:E.call(a,g.id))===!0;u.setQueriesData({queryKey:C},D=>{if(!D)return D;let K=!1;const J=D.pages.map(Z=>{const ee=Z.entries.map(ne=>ot(ne,g));return ee.some((ne,oe)=>ne!==Z.entries[oe])?(K=!0,{...Z,entries:ee}):Z});return K?{...D,pages:J}:D}),j(D=>{if(!$&&!D.entries.some(J=>J.id===g.id))return D;const K=new Map(D.revisions);for(K.delete(g.id),K.set(g.id,g);K.size>ls;)K.delete(K.keys().next().value);return{...D,entries:ke(D.entries,K),revisions:K}})}else x.type==="deliveries"?j(g=>({...g,deliveries:x.deliveries.filter(C=>!g.entries.some(R=>R.originIdempotencyKey===C.idempotencyKey))})):(U=x.entry.cursor,j(g=>({...g,entries:Ce(e,s,g.entries,[x.entry]).slice(-500),deliveries:g.deliveries.filter(C=>C.idempotencyKey!==x.entry.originIdempotencyKey),status:"live"})))}},{since:U,redactions:q,signal:N.signal})}catch(x){if(N.signal.aborted||!V(y))return;const E=x&&typeof x=="object"&&"status"in x?x.status:void 0,g=x&&typeof x=="object"&&"code"in x?x.code:void 0;g==="COMMUNITY_DELETED"||g==="COMMUNITY_TAKEN_DOWN"?(T(),u.invalidateQueries({queryKey:Q.connections(y)})):E===401||E===403||E===404?T():E===410&&g==="COMMUNITY_CURSOR_STALE"&&(U=void 0)}if(N.signal.aborted||z||!V(y))return;const I=u.getQueryData(Q.room(y,e,s));I&&u.setQueryData(Q.room(y,e,s),{...I,stale:!0,writable:!1}),j(x=>({...x,room:x.room?{...x.room,stale:!0,writable:!1}:null,status:"offline"})),O=setTimeout(()=>{L()},Math.min(3e4,1e3*2**Math.min(P++,5)))}return L(),()=>{N.abort(),clearTimeout(O)}},[p,e,s,n,r,u,i,d,h]),A.address!==p||!d?{address:p,room:null,entries:[],revisions:ie,deliveries:[],status:"connecting"}:n?A:h?{...A,room:A.room?{...A.room,stale:!0,writable:!1}:null,deliveries:[],status:"offline"}:{address:p,room:null,entries:[],revisions:ie,deliveries:[],status:"removed"}}function us(e,s,n){var i;const r=Ct(),l=be(),h=e!==void 0&&((i=r.room)==null?void 0:i.id)===e,c=r.status!=="loading";return m.useEffect(()=>{h&&l({...je.home(),search:{...s===void 0?{}:{thread:s},...n===void 0?{}:{entry:n}},replace:!0})},[h,s,n,l]),e===void 0?"show":h?"redirecting":c?"show":"pending"}const ds=new Set(["COMMUNITY_MUTED","COMMUNITY_SLOW_MODE","COMMUNITY_RULES_NOT_ACCEPTED"]);function ms(e){const s=e==null?void 0:e.code;return typeof s=="string"&&ds.has(s)}function fs(e,s=new Date){return e.kind==="muted"?`You’re muted here until ${Rt(e.until,s)??"later"}.`:e.kind==="rules"?"Accept this space’s rules to post.":`Slow mode. Post again in ${e.secondsLeft}s.`}function ps(e,s){if(!e)return null;if(e.mutedUntil&&Date.parse(e.mutedUntil)>s)return{kind:"muted",until:e.mutedUntil};const{rules:n}=e;return n.text!==null&&n.version>0&&n.acceptedVersion<n.version?{kind:"rules"}:null}function hs({community:e,roomId:s,enabled:n,accessFingerprint:r}){var z;const l=se(),h=he(),c=ge(n,r,e),i=c?[...Q.room(c,e,s),"standing"]:[...Q.all,"owner","unresolved",e,"room",s,"standing"],a=jt({queryKey:i,queryFn:()=>wt(c,()=>l.getRemoteCommunityStanding(e,s)),enabled:n&&c!==null,staleTime:3e4,retry:!1,refetchInterval:T=>{var L;return(L=T.state.data)!=null&&L.mutedUntil&&Date.parse(T.state.data.mutedUntil)>Date.now()?6e4:!1}}),[u,d]=m.useState(null),[p,A]=m.useState(()=>Date.now()),j=(z=a.data)!=null&&z.mutedUntil?Date.parse(a.data.mutedUntil):null;m.useEffect(()=>{if(u!==null&&u>p){const T=setTimeout(()=>A(Date.now()),1e3);return()=>clearTimeout(T)}if(j!==null&&j>p){const T=setTimeout(()=>A(Date.now()),Math.min(j-p+50,1073741824));return()=>clearTimeout(T)}},[j,p,u]);const y=a.refetch,N=m.useCallback(T=>{if((T==null?void 0:T.code)==="COMMUNITY_SLOW_MODE"){const I=T.retryAfterMs;if(typeof I=="number"&&I>0){const x=Date.now();A(x),d(x+I)}return}y()},[y]),O=Ae({meta:{suppressErrorToast:!0},mutationFn:T=>l.acceptRemoteCommunityRules(e,T),onSuccess:T=>{h.setQueryData(i,L=>L&&{...L,rules:T})},onError:()=>void y()}),P=ps(a.data,p),U=u===null?0:Math.ceil((u-p)/1e3),q=P??(U>0?{kind:"slow",secondsLeft:U}:null);return{standing:a.data,hold:q,noteHold:N,accept:O}}const gs=new Set(["COMMUNITY_DELETED","COMMUNITY_TAKEN_DOWN"]),xs=30*6e4,fe=new Map;function lt(e,s,n){return JSON.stringify([e,s,n])}function ct(e){return Date.now()-e<xs}function ys(e){for(const[s,n]of fe)ct(n.at)||fe.delete(s);return fe.get(e)}function vs(){return Date.now()}function Cs(e,s,n){fe.set(e,{attachmentId:s,at:n})}function qe(e){for(const s of e.files)fe.delete(lt(e.ref,e.roomId,s.id))}function Ye(e){return e.filter(s=>s.trim()).join(`
|
|
7
|
-
|
|
8
|
-
`)}function js(e){const s=e==null?void 0:e.code;return typeof s=="string"&&gs.has(s)}function Se(e){return e.map(({id:s,file:n})=>({id:s,file:n,status:"pending",progress:0}))}function Rs({ref:e,roomId:s,canSend:n,entries:r,onReceipt:l,draft:h,ownerKey:c,contextKey:i=c,onHold:a}){const u=se(),d=JSON.stringify([c,e,s,i]),p=Nt(h),A=p.text,j=m.useMemo(()=>Se(p.files),[p.files]),y=m.useRef(h);m.useLayoutEffect(()=>{y.current=h},[h]);function N(o){const v=y.current;if(!v)return;const S=ve.getState(),M=S.drafts[we(v)],w=o({text:(M==null?void 0:M.text)??"",files:Se((M==null?void 0:M.files)??[])});S.write(v,{text:w.text,files:w.files.map(({id:B,file:F})=>({id:B,file:F}))})}function O(o){N(v=>({...v,text:o}))}function P(o){N(v=>({...v,files:o(v.files)}))}const[U,q]=m.useState(null);function z(o){q(o===null?null:{address:d,context:i,message:o})}const[T,L]=m.useState([]),I=m.useRef(new Map),x=m.useRef(0),E=m.useRef(new Map),g=m.useRef(new Set),C=m.useRef(d),R=m.useRef(i),$=m.useRef(!0),D=m.useRef(n),K=m.useRef(l),J=m.useRef(a);m.useLayoutEffect(()=>{C.current=d,R.current=i,D.current=n,K.current=l,J.current=a},[d,n,i,l,a]),m.useEffect(()=>($.current=!0,()=>{$.current=!1}),[]),m.useEffect(()=>{let o=!1;for(const v of r){if(!v.originIdempotencyKey)continue;const S=I.current.get(v.originIdempotencyKey);(S==null?void 0:S.address)===C.current&&S.context===R.current&&I.current.delete(v.originIdempotencyKey)&&(qe(S),o=!0)}o&&L([...I.current.values()])},[r]);function Z(){$.current&&L([...I.current.values()].filter(o=>o.address===C.current&&o.context===R.current).map(o=>({...o})))}async function ee(o){var v,S;if(!(g.current.has(o.key)||!D.current||!$.current||o.address!==C.current)){g.current.add(o.key),o.status="sending",o.error=void 0,Z();try{!o.posted&&o.uploadedAt.some(w=>!ct(w))&&(o.attachmentIds=[],o.uploadedAt=[],o.triedAt=[],o.uploadRound+=1);for(let w=o.attachmentIds.length;w<o.files.length;w++){if(!D.current||!$.current||o.address!==C.current)throw new Error("Reconnect to this channel, then try again.");const B=o.files[w],F=lt(o.ref,o.roomId,B.id),W=ys(F);if(W){o.attachmentIds.push(W.attachmentId),o.uploadedAt.push(W.at);continue}const G=(v=o.triedAt)[w]??(v[w]=vs()),X=await u.uploadRemoteCommunityAttachment(o.ref,o.roomId,B.file,o.uploadRound?`${o.key}:file:${w}:${o.uploadRound}`:`${o.key}:file:${w}`);Cs(F,X.id,G),o.uploadedAt.push(G),o.attachmentIds.push(X.id)}if(!D.current||!$.current||o.address!==C.current)throw new Error("Reconnect to this channel, then try again.");o.posted=!0;const M=await u.postRemoteCommunityEntry(o.ref,o.roomId,{text:o.text,parentEntryId:o.parentEntryId,attachmentIds:o.attachmentIds,idempotencyKey:o.key});I.current.delete(o.key),qe(o),$.current&&o.address===C.current&&o.context===R.current&&K.current(M)}catch(M){if(js(M)&&ne(o)){I.current.delete(o.key);return}if(ms(M)&&ne(o)){I.current.delete(o.key),$.current&&o.address===C.current&&((S=J.current)==null||S.call(J,M));return}o.status="failed",o.error=M instanceof Error?M.message:"Not confirmed. Try this message again."}finally{g.current.delete(o.key),Z()}}}function ne(o){const{draft:v}=o.origin,S=we(v),M=ve.getState(),w=M.drafts[S],B=(w==null?void 0:w.text)??"";let F=E.current.get(S)??[];const W=Ye(F.map(H=>H.origin.typed));let G=B;W&&B.startsWith(W)?G=B.slice(W.length).replace(/^\n+/,""):F=[];const X=[...F,o].sort((H,te)=>H.origin.seq-te.origin.seq),ae=new Set(X.flatMap(H=>H.files.map(te=>te.id))),xe=[...X.flatMap(H=>H.files.map(({id:te,file:de})=>({id:te,file:de}))),...((w==null?void 0:w.files)??[]).filter(H=>!ae.has(H.id))];return M.write(v,{text:Ye([...X.map(H=>H.origin.typed),G]),files:xe}),S in ve.getState().drafts?(E.current.set(S,X),!0):!1}function oe(o){const v=y.current;if(!v||!D.current)return;const S=ve.getState(),M=S.drafts[we(v)];if(!M||!M.text.trim()&&M.files.length===0)return;if(I.current.size>=30){z("Too many messages waiting. Let them send, or retry them first.");return}const w=S.take(v),B=Se(w.files),F={address:d,context:i,ref:e,roomId:s,key:crypto.randomUUID(),text:w.text.trim()?w.text:B.map(W=>W.file.name).join(", "),parentEntryId:o,files:B,attachmentIds:[],uploadedAt:[],triedAt:[],posted:!1,uploadRound:0,status:"sending",origin:{draft:v,typed:w.text,seq:x.current+=1}};I.current.set(F.key,F),z(null),ee(F)}return{text:A,setText:O,attachments:{staged:j,add(o){if(o.some(v=>v.size>25*1024*1024)){z("Each file must be 25 MB or smaller.");return}P(v=>v.length+o.length>8?(z("Attach up to eight files to one message."),v):[...v,...o.map(S=>({id:crypto.randomUUID(),file:S,status:"pending",progress:0}))])},remove(o){P(v=>v.filter(S=>S.id!==o))},retry(){},cancel(){P(()=>[])},hasFailed:!1,isUploading:!1,holdsSendWhileUploading:!1},deliveries:T.filter(o=>o.address===d&&o.context===i),error:(U==null?void 0:U.address)===d&&U.context===i?U.message:null,send:oe,retry(o){const v=I.current.get(o);v&&ee(v)}}}function ws({entry:e,onThread:s,onReport:n}){const r=se(),l=m.useId(),[h,c]=m.useState(null),[i,a]=m.useState(null),u={id:JSON.stringify([e.community,e.authorId]),kind:e.authorKind,displayName:e.authorDisplayName};async function d(p,A){if(i)return;a(p),c(null);let j;try{const y=await r.downloadRemoteCommunityAttachment(e.community,e.roomId,p);j=URL.createObjectURL(y);const N=document.createElement("a");N.href=j,N.download=Array.from(A,O=>O==="/"||O==="\\"||O.charCodeAt(0)<32?"_":O).join(""),document.body.append(N),N.click(),N.remove()}catch(y){c(y instanceof Error?y.message:"Couldn’t download the file. Try again.")}finally{j&&setTimeout(()=>URL.revokeObjectURL(j),1e3),a(null)}}return t.jsxs(me.Root,{role:e.authorKind==="human"?"user":"assistant","aria-labelledby":l,children:[t.jsx(me.Gutter,{author:u,at:e.createdAt}),t.jsxs(me.Body,{children:[t.jsx(me.Author,{id:l,author:u,at:e.createdAt}),t.jsxs(me.Content,{children:[t.jsx(ts,{content:e.text}),e.attachments.map(p=>t.jsx(k,{variant:"outline",size:"sm",disabled:i!==null,onClick:()=>void d(p.id,p.name),className:"max-w-full",children:t.jsx("span",{className:"min-w-0 truncate",children:i===p.id?"Downloading…":p.name})},p.id)),h&&t.jsx("p",{role:"alert",className:"text-destructive text-sm",children:h}),t.jsx(k,{variant:"ghost",size:"sm",onClick:()=>s(e.threadRootEntryId??e.id),children:e.depth===0?"Reply in thread":"Open thread"}),n&&t.jsx(k,{variant:"ghost",size:"sm",onClick:n,children:"Report"})]})]})]})}function Ns({community:e,roomId:s,online:n,canEnroll:r,accessFingerprint:l}){var E,g,C;const h=se(),c=he(),i=ge(!0,l,e),a=St(e,r,l),u=kt(),[d,p]=m.useState(""),[A,j]=m.useState(""),[y,N]=m.useState(!1),[O,P]=m.useState(null),[U,q]=m.useState(null),z=m.useId(),T=((E=a.data)==null?void 0:E.filter(R=>R.active))??[],L=((g=u.data)==null?void 0:g.agents.filter(R=>!T.some($=>$.localAgentId===R.id)))??[];async function I(){i&&V(i)&&await c.invalidateQueries({queryKey:Q.remote(i,e)})}async function x(R){if(R.preventDefault(),!d||y||!n||!r||!i)return;const $=i;N(!0),P(null);try{if(await h.enrollRemoteCommunityAgent(e,d,A.trim()?{handle:A.trim()}:{}),!V($))return;p(""),j(""),await I()}catch(D){V($)&&P(D instanceof Error?D.message:"Couldn’t add the agent. Try again.")}finally{V($)&&N(!1)}}return t.jsxs("section",{className:"mt-3 space-y-2 border-t pt-3","aria-label":"Your agents in this space",children:[t.jsx("h3",{className:"text-sm font-medium",children:"My agents"}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Add an agent from here, then choose whether it joins this channel."}),a.isError&&t.jsxs("p",{role:"alert",children:["Couldn’t load your agents in this space."," ",t.jsx(k,{variant:"ghost",size:"sm",onClick:()=>void a.refetch(),children:"Retry"})]}),(C=a.data)==null?void 0:C.map(R=>t.jsx(Ss,{agent:R,roomId:s,online:n,canEnroll:r,onChanged:I,onNotice:q},R.localAgentId)),u.isError&&t.jsx("p",{role:"alert",children:"Couldn’t load the agents on this computer."}),r&&L.length>0&&t.jsxs("form",{onSubmit:R=>void x(R),className:"flex flex-wrap items-end gap-2",children:[t.jsxs("div",{className:"min-w-40 flex-1 space-y-1",children:[t.jsx(pe,{htmlFor:`${z}-agent`,children:"Local agent"}),t.jsxs(bt,{value:d,onValueChange:p,disabled:!n||y,children:[t.jsx(At,{id:`${z}-agent`,children:t.jsx(Dt,{placeholder:"Choose an agent"})}),t.jsx(Tt,{children:L.map(R=>t.jsx(Et,{value:R.id,children:R.name},R.id))})]})]}),t.jsxs("div",{className:"min-w-40 flex-1 space-y-1",children:[t.jsx(pe,{htmlFor:`${z}-handle`,children:"Space handle (optional)"}),t.jsx(Je,{id:`${z}-handle`,value:A,onChange:R=>j(R.target.value),disabled:!n||y,placeholder:"Use the agent’s handle"})]}),t.jsx(k,{type:"submit",disabled:!d||!n||y,children:y?"Adding…":"Add to space"})]}),U&&t.jsx("p",{role:"status",className:"text-muted-foreground text-sm",children:U}),O&&t.jsx("p",{role:"alert",className:"text-destructive text-sm",children:O})]})}function Ss({agent:e,roomId:s,online:n,canEnroll:r,onChanged:l,onNotice:h}){const c=se(),[i,a]=m.useState(null),[u,d]=m.useState(null),p=e.roomIds.includes(s);async function A(y,N){if(!i){a(y),d(null);try{await N(),await l()}catch(O){d(O instanceof Error?O.message:"Couldn’t finish that. Try again.")}finally{a(null)}}}function j(y){h(y.remoteRevoked?"Stopped taking part.":"Stopped here, but the space wasn’t told. Try again when it’s reachable.")}return t.jsxs("div",{className:"space-y-1 rounded-md border p-2",children:[t.jsxs("p",{className:"text-sm font-medium",children:[e.displayName,!e.active&&" · stopped here"," ",t.jsxs("span",{className:"text-muted-foreground font-normal",children:["· owned by ",e.ownerDisplayName]})]}),t.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.jsx(k,{variant:"outline",size:"sm",disabled:i!==null||!r||!e.active||!p&&!n,onClick:()=>void A("membership",async()=>{p?j(await c.leaveRemoteCommunityAgentRoom(e.community,s,e.localAgentId)):await c.joinRemoteCommunityAgentRoom(e.community,s,e.localAgentId)}),children:p?"Leave channel":"Join channel"}),t.jsx(k,{variant:"ghost",size:"sm",disabled:i!==null||!r,onClick:()=>void A("stop",()=>c.haltRemoteCommunityAgent(e.community,s,e.localAgentId)),children:"Stop agent"}),t.jsxs(Be,{children:[t.jsx(Mt,{asChild:!0,children:t.jsx(k,{variant:"ghost",size:"sm",disabled:i!==null||!r,children:"Remove from space"})}),t.jsxs(We,{children:[t.jsxs(Ge,{children:[t.jsxs(Ve,{children:["Remove ",e.displayName,"?"]}),t.jsx(Xe,{children:"It leaves every channel in this space. You can re-add it."})]}),t.jsxs(Ze,{children:[t.jsx(et,{children:"Cancel"}),t.jsx(Ot,{onClick:()=>void A("remove",async()=>j(await c.ejectRemoteCommunityAgent(e.community,e.localAgentId))),children:"Remove agent"})]})]})]})]}),u&&t.jsx("p",{role:"status",className:"text-muted-foreground text-xs",children:u})]})}function ks(e,s){const n=new Date(e),r=n.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"});return n.toDateString()===s.toDateString()?r:`${n.toLocaleDateString([],{month:"short",day:"numeric",...n.getFullYear()===s.getFullYear()?{}:{year:"numeric"}})}, ${r}`}function bs(e,s=new Date){return e.kind!=="agent"?null:e.availability==="available"?{text:"Available"}:e.availability==="offline"&&e.lastSeenAt?{text:"Offline since",since:{dateTime:new Date(e.lastSeenAt).toISOString(),label:ks(e.lastSeenAt,s)}}:null}function As({roster:e,failed:s,canMention:n,onMention:r,community:l,roomId:h,online:c,canEnroll:i,agentsKey:a,accessFingerprint:u}){return t.jsxs("div",{className:"max-h-48 overflow-auto border-b p-3","aria-label":"Channel members",children:[s&&t.jsx("p",{role:"alert",children:"Couldn’t load members."}),(e==null?void 0:e.stale)&&t.jsx("p",{className:"text-muted-foreground text-sm",children:"Saved member list"}),e==null?void 0:e.members.map(d=>{var A;const p=bs(d);return t.jsxs("div",{className:"flex items-center justify-between gap-2 text-sm",children:[t.jsxs("span",{children:[d.displayName,d.kind==="agent"?" · Agent":"",d.ownerMemberId&&` · owned by ${((A=e.members.find(j=>j.memberId===d.ownerMemberId))==null?void 0:A.displayName)??"a space member"}`,p&&t.jsxs("span",{className:"text-muted-foreground",children:[` · ${p.text}`,p.since&&t.jsxs(t.Fragment,{children:[" ",t.jsx("time",{dateTime:p.since.dateTime,children:p.since.label})]})]})]}),d.handle&&t.jsxs(k,{variant:"ghost",size:"sm",disabled:!n,onClick:()=>r(d.handle),children:["Mention @",d.handle]})]},d.memberId)}),i&&t.jsx(Ns,{community:l,roomId:h,online:c,canEnroll:!0,accessFingerprint:u},a)]})}function ut(e,s){return e instanceof Error&&e.message?e.message:s}function Ds({conduct:e,staff:s,onReadRules:n}){const{hold:r,standing:l}=e;return(r==null?void 0:r.kind)==="rules"?t.jsx("div",{className:"px-1 pb-1",children:t.jsx(k,{size:"sm",variant:"outline",onClick:n,children:"Read the rules"})}):r||s||!(l!=null&&l.slowModeSeconds)?null:t.jsxs("p",{className:"text-muted-foreground px-1 pb-1 text-xs",children:["Slow mode: one message every ",l.slowModeSeconds,"s."]})}function Ts({conduct:e,open:s,onOpenChange:n}){var h;const r=(h=e.standing)==null?void 0:h.rules,l=r?r.acceptedVersion>=r.version:!1;return t.jsx(De,{open:s,onOpenChange:n,children:t.jsxs(Te,{className:"sm:max-w-lg",children:[t.jsxs(Ee,{children:[t.jsx(Me,{children:"Space rules"}),t.jsx(Oe,{children:l?"You accepted these rules.":"Accept these rules to post here."})]}),t.jsxs(Ue,{children:[t.jsx("div",{className:"max-h-[50vh] overflow-y-auto rounded-md border p-3 text-sm leading-relaxed whitespace-pre-wrap",children:(r==null?void 0:r.text)??"This space has no rules."}),e.accept.error&&t.jsx("p",{role:"alert",className:"text-destructive mt-2 text-sm",children:ut(e.accept.error,"Couldn’t accept the rules. Try again.")})]}),t.jsxs(Ie,{children:[t.jsx(k,{variant:"outline",onClick:()=>n(!1),children:"Close"}),(r==null?void 0:r.text)&&!l&&t.jsx(k,{disabled:e.accept.isPending,onClick:()=>e.accept.mutate(r.version,{onSuccess:()=>n(!1)}),children:e.accept.isPending?"Accepting…":"Accept rules"})]})]})})}function Es({community:e,accessFingerprint:s,currentName:n,open:r,onOpenChange:l}){return t.jsx(De,{open:r,onOpenChange:l,children:t.jsx(Te,{className:"sm:max-w-md",children:r&&t.jsx(Ms,{community:e,accessFingerprint:s,currentName:n,onDone:()=>l(!1)})})})}function Ms({community:e,accessFingerprint:s,currentName:n,onDone:r}){const l=se(),h=he(),c=ge(!0,s,e),[i,a]=m.useState(n),u=Ae({meta:{suppressErrorToast:!0},mutationFn:p=>l.setRemoteCommunityDisplayName(e,p),onSuccess:async()=>{c&&await h.invalidateQueries({queryKey:Q.content(c,e)}),r()}}),d=i.trim();return t.jsxs("form",{onSubmit:p=>{p.preventDefault(),d&&d!==n&&u.mutate(d)},children:[t.jsxs(Ee,{children:[t.jsx(Me,{children:"Your name in this space"}),t.jsx(Oe,{children:"Other spaces keep the name they show."})]}),t.jsxs(Ue,{className:"space-y-2",children:[t.jsx(pe,{htmlFor:"remote-community-display-name",children:"Name"}),t.jsx(Je,{id:"remote-community-display-name",value:i,maxLength:128,autoComplete:"nickname",onChange:p=>a(p.target.value)}),u.error&&t.jsx("p",{role:"alert",className:"text-destructive text-sm",children:ut(u.error,"Couldn’t change your name. Try again.")})]}),t.jsxs(Ie,{children:[t.jsx(k,{type:"button",variant:"outline",onClick:r,children:"Cancel"}),t.jsx(k,{type:"submit",disabled:!d||d===n||u.isPending,children:u.isPending?"Saving…":"Save name"})]})]})}const Os=[{value:"spam",label:"Spam"},{value:"harassment",label:"Harassment"},{value:"off_topic",label:"Off topic"},{value:"illegal",label:"Against the law"},{value:"other",label:"Something else"}];function Us({entry:e,onClose:s}){return t.jsx(De,{open:e!==null,onOpenChange:n=>!n&&s(),children:t.jsx(Te,{className:"sm:max-w-md",children:e&&t.jsx(Is,{entry:e,onClose:s},e.id)})})}function Is({entry:e,onClose:s}){const n=se(),r=m.useId(),[l,h]=m.useState(null),[c,i]=m.useState(""),a=Ae({meta:{suppressErrorToast:!0},mutationFn:u=>n.reportRemoteCommunityEntry(e.community,e.roomId,e.id,u),onSuccess:()=>{tt("Message reported"),s()}});return t.jsxs("form",{onSubmit:u=>{u.preventDefault(),l&&a.mutate({reason:l,...c.trim()?{note:c.trim()}:{}})},children:[t.jsxs(Ee,{children:[t.jsx(Me,{children:"Report message"}),t.jsx(Oe,{children:"This space’s owners and admins review reports."})]}),t.jsxs(Ue,{className:"space-y-4",children:[t.jsxs("p",{className:"text-muted-foreground line-clamp-3 text-sm",children:[e.authorDisplayName,": ",e.text]}),t.jsx(Ut,{"aria-label":"Reason",value:l??"",onValueChange:u=>h(u),children:Os.map(u=>t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(It,{value:u.value,id:`${r}-${u.value}`}),t.jsx(pe,{htmlFor:`${r}-${u.value}`,children:u.label})]},u.value))}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(pe,{htmlFor:`${r}-note`,children:"Note (optional)"}),t.jsx($t,{id:`${r}-note`,value:c,maxLength:Kt,onChange:u=>i(u.target.value),rows:3}),t.jsx("p",{className:"text-muted-foreground text-xs",children:"Only owners and admins see this."})]}),a.error&&t.jsx("p",{role:"alert",className:"text-destructive text-sm",children:a.error instanceof Error&&a.error.message?a.error.message:"Couldn’t send the report. Try again."})]}),t.jsxs(Ie,{children:[t.jsx(k,{type:"button",variant:"outline",onClick:s,children:"Cancel"}),t.jsx(k,{type:"submit",disabled:!l||a.isPending,children:a.isPending?"Sending…":"Send report"})]})]})}function $s({agentDeliveries:e,drafts:s,entries:n,threadId:r,canSend:l,action:h,onRetryAgent:c,onRetryDraft:i}){return t.jsxs(t.Fragment,{children:[e.filter(a=>a.parentEntryId===(r??null)&&!n.some(u=>u.originIdempotencyKey===a.idempotencyKey)).map(a=>t.jsxs("div",{className:"border-t px-4 py-2 text-sm",role:"status",children:[t.jsxs("p",{className:"font-medium",children:[a.author.displayName," · Agent"]}),t.jsx("p",{className:"whitespace-pre-wrap",children:a.text}),a.attachments.map((u,d)=>t.jsx("span",{className:"mr-2",children:u.name},d)),t.jsx("p",{className:"text-muted-foreground",children:a.state==="pending"?"Waiting for the space to confirm…":a.failure==="expired"?"Not confirmed. Too late to try again.":"Not confirmed. Check the space and the agent’s channel access."}),a.state==="pending"&&a.retryable&&t.jsx(k,{variant:"outline",size:"sm",disabled:!l||h!==null,onClick:()=>c(a.idempotencyKey),children:h===`retry:${a.idempotencyKey}`?"Retrying…":"Retry now"})]},a.idempotencyKey)),s.filter(a=>a.parentEntryId===r&&!n.some(u=>u.originIdempotencyKey===a.key)).map(a=>t.jsxs("div",{className:"border-t px-4 py-2 text-sm",role:"status",children:[t.jsx("p",{className:"whitespace-pre-wrap",children:a.text}),a.files.map(u=>t.jsx("span",{className:"mr-2",children:u.file.name},u.id)),t.jsx("p",{className:"text-muted-foreground",children:a.status==="sending"?"Sending…":"Delivery not confirmed."}),a.error&&t.jsx("p",{children:a.error}),a.status==="failed"&&t.jsx(k,{variant:"outline",size:"sm",disabled:!l,onClick:()=>i(a.key),children:"Retry message"})]},a.key))]})}function Ks(e,s){var h;const n=new Map;for(const c of e)c.thread&&n.set(c.id,{count:c.thread.replyCount,lastAt:c.thread.lastReplyAt,through:c.threadLastReplySeq});const r=new Map;for(const c of s){const i=c.threadRootEntryId;if(c.depth===0||i===null)continue;const a=(h=n.get(i))==null?void 0:h.through;if(a!==void 0&&c.remoteSeq<=a)continue;const u=r.get(i);r.set(i,{count:((u==null?void 0:u.count)??0)+1,newest:u&&u.newest.remoteSeq>c.remoteSeq?u.newest:c})}const l=new Map;for(const c of new Set([...n.keys(),...r.keys()])){const i=n.get(c),a=r.get(c),u=i===void 0?a.count:i.through===void 0?Math.max(i.count,(a==null?void 0:a.count)??0):i.count+((a==null?void 0:a.count)??0);l.set(c,{count:u,lastAt:(a==null?void 0:a.newest.createdAt)??i.lastAt,unread:0})}return l}const Ls={reactions:!1,threads:!0,runWith:!1,attachments:!0,mentions:!0,streamHealth:!0,presence:!1,turnStatus:!1,asks:!1};function _s({community:e,roomId:s,threadId:n,onThread:r}){var Le,_e,Pe,ze;const l=se(),c=(Le=$e().data)==null?void 0:Le.find(f=>f.ref===e),i=st(c==null?void 0:c.access),a=ge(!0,i.fingerprint,e),u=a?JSON.stringify([a.ownerKey,a.epoch]):"",d=a?JSON.stringify([a.ownerKey,a.epoch,a.route.epoch,a.accessFingerprint]):"",p=he(),A=Lt(),j=_t(),y=(_e=A.data)==null?void 0:_e.destinations.find(f=>f.ref===e&&f.roomId===s),N=m.useRef(null),O=m.useRef(void 0),P=(y==null?void 0:y.scrollAnchorEntryId)??null,U=m.useCallback(f=>{if(!a||n)return;N.current&&clearTimeout(N.current),N.current=null;const b=f??null,_=O.current===void 0?P:O.current;b===null&&_===null||(N.current=setTimeout(()=>{N.current=null,O.current=b,j.mutate({ref:e,roomId:s,threadId:n??null,scrollAnchorEntryId:b})},400))},[a,e,j,P,s,n]);m.useEffect(()=>()=>{N.current&&clearTimeout(N.current)},[]),m.useEffect(()=>{(c==null?void 0:c.status)==="reconnect-required"&&a&&p.removeQueries({queryKey:Q.remote(a,e)})},[a,e,c==null?void 0:c.status,p]);const q=nt(e,s,i.capabilities.read,i.fingerprint),[z,T]=m.useState(0),L=m.useRef([]),I=m.useCallback(f=>L.current.some(b=>b.id===f),[]),x=cs(e,s,i.capabilities.stream,z,i.fingerprint,i.cacheReadable,I),E=x.status==="removed",g=E?null:x.room??q.data,C=Pt(e,s,n,!E&&i.capabilities.read&&(g==null?void 0:g.readable)===!0,i.fingerprint),R=zt(e,s,!E&&i.capabilities.read&&(g==null?void 0:g.readable)===!0,i.fingerprint),[$,D]=m.useState(()=>({address:d,entries:[]})),K=m.useMemo(()=>$.address===d?$.entries:[],[d,$]);m.useEffect(()=>{L.current=K},[K]);const[J,Z]=m.useState(0),[ee,ne]=m.useState(!1),[oe,le]=m.useState(null),[o,v]=m.useState(null),S=hs({community:e,roomId:s,enabled:!E&&i.capabilities.read&&(g==null?void 0:g.readable)===!0,accessFingerprint:i.fingerprint}),M=(c==null?void 0:c.connectedHumanMemberId)??null,w=(Pe=R.data)==null?void 0:Pe.members.find(f=>f.memberId===M),B=f=>{var b;return f===M||((b=R.data)==null?void 0:b.members.some(_=>_.memberId===f&&_.ownerMemberId===M))===!0},[F,W]=m.useState({address:"",name:null,error:null}),G=F.address===d?F.name:null,X=F.address===d?F.error:null,ae=m.useRef(null),xe=m.useRef(null),H=m.useRef(null),te=!E&&i.capabilities.post&&x.status==="live"&&(g==null?void 0:g.writable)===!0,de=te&&S.hold===null,ce=m.useMemo(()=>{var f;return E?[]:ke(Ce(e,s,...((f=C.data)==null?void 0:f.pages.map(b=>b.entries))??[],x.entries,K),x.revisions)},[e,s,C.data,x.entries,x.revisions,K,E]),mt=m.useCallback(f=>{D(b=>({address:d,entries:Ce(e,s,b.address===d?b.entries:[],[f]).slice(-500)})),Z(b=>b+1)},[d,e,s]);m.useLayoutEffect(()=>{var f;J>0&&((f=H.current)==null||f.scrollToBottom())},[J]);const ft=m.useMemo(()=>{var f;return a?{ownerKey:a.ownerKey,epoch:a.epoch,ref:e,generation:((f=a.connection)==null?void 0:f.generation)??0,roomId:s,threadId:n}:null},[a,e,s,n]),Y=Rs({ref:e,roomId:s,canSend:de,entries:ce,onReceipt:mt,draft:ft,ownerKey:u||"unresolved",contextKey:d||"unresolved",onHold:S.noteHold}),pt=ce.filter(f=>n?f.id===n||f.threadRootEntryId===n:f.depth===0),ht=m.useMemo(()=>{var f;return n?new Map:Ks(((f=C.data)==null?void 0:f.pages.flatMap(b=>b.entries))??[],ce)},[n,C.data,ce]),Ke=pt.flatMap(f=>{const b=ht.get(f.id);return b?[{kind:"message",entry:f},{kind:"replies",rootId:f.id,summary:b}]:[{kind:"message",entry:f}]}),gt=Ke.map(f=>f.kind==="replies"?{kind:"thread-reply",id:`${f.rootId}:replies`,rootId:f.rootId,replyCount:f.summary.count,lastAt:f.summary.lastAt}:{kind:"message",id:f.entry.id,payload:f.entry,grouping:{position:"only"},author:{id:JSON.stringify([e,f.entry.authorId]),kind:f.entry.authorKind,displayName:f.entry.authorDisplayName},at:f.entry.createdAt}),Re={kind:"room",id:JSON.stringify([e,s,n]),placeholder:n?"Reply in thread…":`Message ${(g==null?void 0:g.title)??"this channel"}…`,canSend:de,canSendReason:E?"You no longer have access to this channel.":S.hold?fs(S.hold):!i.capabilities.post&&i.cacheReadable?"This space is read-only.":g!=null&&g.archived?"This channel is archived.":g!=null&&g.joined?"Reconnecting. You can send once the space is back.":"Join this channel to send messages.",attachments:Y.attachments,async send(){Y.send(n)}};async function ye(f,b){if(G||!a)return;const _=a,ue=d;W({address:ue,name:f,error:null});try{if(await b(),!V(_))return;(f==="join"||f==="leave"||f.startsWith("retry:"))&&T(re=>re+1),await p.invalidateQueries({queryKey:Q.remote(_,e)})}catch(re){V(_)&&W({address:ue,name:f,error:re instanceof Error?re.message:"Couldn’t finish that. Try again."})}finally{V(_)&&W(re=>re.address===ue?{...re,name:null}:re)}}function xt(){var _;const f=ce.at(-1);if(n||C.hasNextPage||!f||x.status!=="live"||((_=ae.current)==null?void 0:_.address)===d&&ae.current.cursor===f.cursor||!a)return;const b=a;ae.current={address:d,cursor:f.cursor},l.setRemoteCommunityReadCursor(e,s,f.cursor).then(()=>{V(b)&&p.invalidateQueries({queryKey:Q.rooms(b,e)})}).catch(()=>{var ue;((ue=ae.current)==null?void 0:ue.address)===d&&(ae.current=null)})}return t.jsxs(Ne.Root,{surface:"room",capabilities:Ls,target:Re,children:[t.jsxs("section",{className:"flex h-full min-h-0 flex-col","aria-label":(g==null?void 0:g.title)??"Space channel",children:[t.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b px-3 py-2",children:[n&&t.jsx(k,{variant:"ghost",size:"sm",onClick:()=>r(),children:"Back to channel"}),!E&&i.capabilities.post&&g&&!g.joined&&!g.stale&&t.jsx(k,{size:"sm",disabled:G!==null,onClick:()=>void ye("join",()=>l.joinRemoteCommunityRoom(e,s)),children:"Join channel"}),i.cacheReadable&&t.jsx(k,{variant:"ghost",size:"sm",disabled:E,onClick:()=>ne(!ee),children:ee?"Hide members":"Members"}),((ze=S.standing)==null?void 0:ze.rules.text)&&t.jsx(k,{variant:"ghost",size:"sm",onClick:()=>le("rules"),children:"Rules"}),i.capabilities.post&&t.jsx(k,{variant:"ghost",size:"sm",onClick:()=>le("name"),children:"Your name"}),i.capabilities.enrollAgent&&t.jsx(k,{variant:"outline",size:"sm",disabled:G!==null,onClick:()=>void ye("stop",()=>l.haltRemoteCommunityRoom(e,s)),children:G==="stop"?"Stopping…":"Stop my agents"}),i.capabilities.post&&(g==null?void 0:g.joined)&&t.jsx(k,{variant:"ghost",size:"sm",disabled:G!==null||!te,onClick:()=>void ye("leave",async()=>{await l.leaveRemoteCommunityRoom(e,s),a&&p.removeQueries({queryKey:Q.room(a,e,s)})}),children:"Leave channel"})]}),X&&t.jsx("p",{role:"alert",className:"text-destructive px-4 py-2 text-sm",children:X}),E?t.jsx("p",{role:"status",className:"p-6 text-sm",children:"You no longer have access to this channel."}):t.jsxs(t.Fragment,{children:[x.status!=="live"&&t.jsx("p",{role:"status",className:"text-muted-foreground px-4 py-2 text-sm",children:x.status==="connecting"?"Connecting to the space…":"Space unavailable. Showing saved messages."}),q.isError&&t.jsx("p",{role:"alert",className:"px-4 py-2 text-sm",children:"Couldn’t load this channel."}),ee&&t.jsx(As,{roster:R.data,failed:R.isError,canMention:te,onMention:f=>{var b;Y.setText(`${Y.text}${Y.text&&!Y.text.endsWith(" ")?" ":""}@${f} `),(b=xe.current)==null||b.focus()},community:e,roomId:s,online:x.status==="live",canEnroll:i.capabilities.enrollAgent,agentsKey:d,accessFingerprint:i.fingerprint}),C.isError&&t.jsxs("p",{role:"alert",className:"p-3 text-sm",children:["Some messages could not be loaded."," ",t.jsx(k,{variant:"ghost",size:"sm",onClick:()=>void C.refetch(),children:"Retry"})]}),C.hasNextPage&&t.jsx(k,{variant:"ghost",size:"sm",disabled:C.isFetchingNextPage,onClick:()=>void C.fetchNextPage(),children:"Load the next page of history"}),t.jsx(Ne.Timeline,{ref:H,conversationId:Re.id,rows:gt,label:n?"Space thread":"Space messages",busy:C.isFetching,resumeRow:()=>n?void 0:P??void 0,onTopRow:U,onReachedBottom:xt,onOpenThread:r,empty:t.jsx("p",{className:"text-muted-foreground p-6 text-sm",children:C.isPending?"Loading messages…":"No messages here yet."}),renderRow:(f,b)=>{const _=Ke[b.index];return _.kind==="message"?t.jsx(ws,{entry:_.entry,onThread:r,onReport:i.capabilities.post&&R.data&&!B(_.entry.authorId)?()=>v(_.entry):void 0}):t.jsx(Xt,{summary:_.summary,open:!1,onOpen:()=>r(_.rootId)})}}),t.jsx($s,{agentDeliveries:x.deliveries,drafts:Y.deliveries,entries:ce,threadId:n,canSend:de,action:G,onRetryAgent:f=>void ye(`retry:${f}`,()=>l.retryRemoteCommunityDelivery(e,s,f)),onRetryDraft:Y.retry}),Y.error&&t.jsx("p",{role:"alert",className:"text-destructive px-4 py-2 text-sm",children:Y.error}),t.jsx(Ne.Composer,{inputRef:xe,aboveInput:t.jsx(Ds,{conduct:S,staff:["owner","admin"].includes((w==null?void 0:w.role)??""),onReadRules:()=>le("rules")}),className:"m-3",value:Y.text,onChange:Y.setText,onSubmit:()=>Y.send(n),input:{isStreaming:!1,contextKey:Re.id,canSubmit:Y.text.trim().length>0||Y.attachments.staged.length>0}})]})]}),t.jsx(Ts,{conduct:S,open:oe==="rules",onOpenChange:f=>le(f?"rules":null)}),t.jsx(Es,{community:e,accessFingerprint:i.fingerprint,currentName:(w==null?void 0:w.displayName)??"",open:oe==="name",onOpenChange:f=>le(f?"name":null)}),t.jsx(Us,{entry:o,onClose:()=>v(null)})]})}function Ps({community:e,roomId:s}){var u,d;const n=$e(),r=(u=n.data)==null?void 0:u.find(p=>p.ref===e),l=st(r==null?void 0:r.access),h=nt(e,s??"",!!s&&l.capabilities.read,l.fingerprint),c=(r==null?void 0:r.label)??"Space",i=s?(d=h.data)==null?void 0:d.title:void 0,a=r===void 0&&n.fetchStatus==="fetching"||s!==void 0&&i===void 0&&h.fetchStatus==="fetching";return t.jsx(rt,{pending:a,children:i?`${c} · ${i}`:c})}function dt(e){var s,n,r,l;return!e||e.status==="reconnect-required"?null:((n=(s=e.access)==null?void 0:s.lastKnown)==null?void 0:n.lifecycle)==="deleted"?"deleted":((l=(r=e.access)==null?void 0:r.lastKnown)==null?void 0:l.lifecycle)==="taken_down"?"taken-down":e.seemsGoneSince?"seems-gone":null}function He(e,s,n){return`${e} ${e===1?s:n}`}function zs(e,s){const n=[e>0?He(e,"message from your agents","messages from your agents"):null,s>0?He(s,"draft of yours","drafts of yours"):null].filter(l=>l!==null);if(n.length===0)return null;const r=n.length===1&&(e===1||s===1);return`${n.join(" and ")} ${r?"wasn’t":"weren’t"} sent.`}function Fs({connection:e,onRemoved:s}){const n=dt(e),r=Ft(),[l,h]=m.useState(!1),{ownerKey:c}=qt(),i=Yt(c,e.ref),{copied:a,failed:u,copy:d}=Ht(),p=e.label,A=e.seemsGoneSince?new Date(e.seemsGoneSince).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}):null;function j(){r.mutate(e,{onSuccess:()=>{h(!1),tt.success(`${p} is removed from DorkOS.`),s()}})}const y=n==="deleted"||n==="taken-down",N=n==="taken-down"?"This space was taken down":n==="deleted"?"This space was deleted":"This space seems to be gone",O=n==="taken-down"?`DorkOS removed its copy here. If ${p} returns, you can connect again.`:n==="deleted"?"DorkOS removed its copy from this computer.":`Since ${A}, ${p} says it doesn’t exist. Its channels, messages and files are still here.`,P=zs(y?e.undeliveredAgentMessages??0:0,i.length),U=i.length===0?null:i.length===1?"Your unsent draft is cleared too.":`Your ${i.length} unsent drafts are cleared too.`;return t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-10 text-center text-sm","data-testid":"community-gone",children:[t.jsx(as,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),t.jsx("p",{className:"text-foreground font-medium",children:N}),t.jsx("p",{className:"text-muted-foreground max-w-sm",children:O}),P&&t.jsx("p",{role:"status",className:"text-foreground max-w-sm","data-testid":"community-gone-unsent",children:P}),t.jsx("span",{className:"sr-only","aria-live":"polite","data-testid":"community-gone-copy-status",children:a?"Copied.":u?"Couldn’t copy to the clipboard.":""}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[i.length>0&&t.jsx(k,{variant:"outline",onClick:()=>void d(i.join(`
|
|
9
|
-
|
|
10
|
-
`)),children:a?"Copied":u?"Couldn’t copy":i.length===1?"Copy your draft":"Copy your drafts"}),t.jsx(k,{variant:y?"outline":"destructive",onClick:()=>h(!0),children:y?"Remove from DorkOS":"Remove local copy"})]}),t.jsx(Be,{open:l,onOpenChange:q=>{q||r.reset(),h(q)},children:t.jsxs(We,{children:[t.jsxs(Ge,{children:[t.jsx(Ve,{children:y?`Remove ${p} from DorkOS?`:`Remove your copy of ${p}?`}),t.jsx(Xe,{asChild:!0,children:t.jsxs("div",{className:"space-y-2",children:[t.jsx("p",{children:y?`${p} leaves this app. Nothing else is stored here.`:"This deletes its channels, messages and files from this computer."}),!y&&t.jsx("p",{children:"Your agents stop answering there. If it’s still around, you can connect again."}),U&&t.jsx("p",{children:U})]})})]}),r.isError&&t.jsx("p",{role:"alert",className:"text-destructive text-sm",children:"Couldn’t remove it. Check that DorkOS is running, then try again."}),t.jsxs(Ze,{children:[t.jsx(et,{disabled:r.isPending,children:"Cancel"}),t.jsx(k,{variant:"destructive",disabled:r.isPending,onClick:j,children:r.isPending?"Removing…":y?"Remove from DorkOS":"Remove local copy"})]})]})})]})}function qs({connection:e,dateFormat:s}){var h,c;const n=ss(e);if(!n)return null;const[r,...l]=ns(n,(c=(h=e.access)==null?void 0:h.lastKnown)==null?void 0:c.lifecycle,s);return t.jsxs("section",{"aria-label":"Request to take over this space",className:"border-status-warning-border bg-status-warning-bg text-status-warning-fg flex flex-wrap items-start gap-x-3 gap-y-2 border-b px-4 py-3 text-sm",children:[t.jsx(Qt,{className:"mt-0.5 size-4 shrink-0","aria-hidden":!0}),t.jsxs("div",{className:"min-w-0 flex-1 basis-60 space-y-1",children:[t.jsx("p",{className:"text-foreground font-medium",children:r}),l.map(i=>t.jsx("p",{children:i},i))]}),t.jsxs(k,{variant:"outline",size:"sm",className:"shrink-0",onClick:()=>Bt(rs(e)),children:["Open space",t.jsx(Jt,{className:"size-3.5","aria-hidden":!0})]})]})}function Ys(){const{id:e,community:s}=at({from:"/_shell/channels"}),n=Wt(s);return s&&!n.visible?n.isLoading?null:t.jsx(Gt,{...je.channels(),search:{},replace:!0}):t.jsxs(t.Fragment,{children:[s?t.jsx(Ps,{community:s,roomId:e}):e===void 0&&t.jsx(rt,{children:"Channels"}),t.jsx(Hs,{})]})}function Hs(){const{id:e,thread:s,entry:n,community:r}=at({from:"/_shell/channels"}),l=be(),h=us(r?void 0:e,s,n),c=Vt();return r&&e?t.jsx(Qe,{community:r,children:t.jsx(_s,{community:r,roomId:e,threadId:s,onThread:i=>{l({...je.channels(),search:{community:r,id:e,thread:i}})}},JSON.stringify([r,e]))}):r?t.jsx(Qe,{community:r,children:t.jsxs("div",{className:"text-muted-foreground flex h-full flex-col items-center justify-center gap-2 p-10 text-center text-sm",children:[t.jsx(Fe,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),t.jsx("p",{className:"text-foreground font-medium",children:"No channel selected"}),t.jsx("p",{className:"max-w-sm",children:"Choose a channel from this space."})]})}):h==="pending"?t.jsx("div",{className:"flex h-full flex-col","aria-busy":!0,children:t.jsx(Zt,{})}):h==="redirecting"?null:e===void 0?t.jsxs("div",{className:"text-muted-foreground flex h-full flex-col items-center justify-center gap-2 p-10 text-center text-sm",children:[t.jsx(Fe,{className:"text-muted-foreground/50 size-10","aria-hidden":!0}),t.jsx("p",{className:"text-foreground font-medium",children:"Pick a channel or DM"}),t.jsx("p",{className:"max-w-sm",children:c?"Open one from All, at the bottom of the screen.":"Open one from the sidebar, or use + next to Channels."})]}):t.jsx(es,{roomId:e,threadId:s,entrySeq:n,threadRoute:"/channels"})}function Qe({community:e,children:s}){var l;const n=be(),r=(l=$e().data)==null?void 0:l.find(h=>h.ref===e);return r&&dt(r)?t.jsx(Fs,{connection:r,onRemoved:()=>void n({...je.channels(),search:{}})}):t.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[r&&t.jsx(qs,{connection:r}),r&&t.jsx(os,{connection:r}),t.jsx("div",{className:"min-h-0 flex-1",children:s})]})}const In=Ys;export{In as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./index-BULRe04c.js";import{M as o}from"./Marketplace-BXrL6XrG.js";import{P as r}from"./page-container-bbfE5uTV.js";import"./PreviewRefusedNotice-CgJeWKad.js";import"./shield-x-Bu5-LOse.js";import"./card-B1UFbnvJ.js";import"./empty-state-DK2Wg9m3.js";import"./markdown-content-siVxwwSU.js";import"./use-unclaimed-chats-Bd93jy-J.js";import"./use-bindings-CFiTPDOx.js";import"./UnlinkDialog-DqKrNRIZ.js";import"./use-dev-links-UPIkbIjA.js";import"./more-details-DN_gIeya.js";import"./terminal-ub-ExeTA.js";import"./file-CxdN5JO4.js";import"./AgentPicker-W6XeKjz9.js";import"./command-EveETx4P.js";import"./AgentOptionRow-DcKMOkUs.js";import"./useMutationState-BZZ5TO4d.js";import"./file-exclamation-point-ID9vXo0l.js";import"./rotate-ccw-clock-BGYqHuYK.js";import"./path-input-BhzVuKWq.js";function i(){return t.jsx(r,{width:"wide",children:t.jsx(o,{})})}const S=i;export{S as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as o}from"./index-BULRe04c.js";import{P as r}from"./page-container-bbfE5uTV.js";import{M as e}from"./MarketplaceSourcesView-Xm9UboIG.js";import"./use-pending-read-Cy9OB3jX.js";function t(){return o.jsx(r,{width:"reading",children:o.jsx(e,{})})}const s=t;export{s as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-Cx-zCEnS.js";import"./index-BULRe04c.js";import"./empty-state-DK2Wg9m3.js";import"./page-container-bbfE5uTV.js";import"./use-dev-links-UPIkbIjA.js";import"./UnlinkDialog-DqKrNRIZ.js";const e=o;export{e as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as o}from"./ExtensionPageRoute-Cx-zCEnS.js";import"./index-BULRe04c.js";import"./empty-state-DK2Wg9m3.js";import"./page-container-bbfE5uTV.js";import"./use-dev-links-UPIkbIjA.js";import"./UnlinkDialog-DqKrNRIZ.js";const e=o;export{e as component};
|