dorkos 0.114.1 → 0.115.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.
Files changed (266) hide show
  1. package/dist/bin/cli.js +38561 -38244
  2. package/dist/browser/native/package-manifest.json +1 -1
  3. package/dist/browser/source-manifest.json +1 -1
  4. package/dist/client/assets/{AboutPage-BRHiWrvg.js → AboutPage-Cz8ijNrK.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-DGwKpdjB.js → ActivityErrorState-BzmfwxSZ.js} +1 -1
  6. package/dist/client/assets/ActivityPage-BK7T3OiI.js +1 -0
  7. package/dist/client/assets/{ActivityRow-TjAMUrcU.js → ActivityRow-Ig5atv15.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-B-NJfk_R.js → AdapterIcon-BXPv5J8h.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-CrdiWINL.js → AdapterSetupWizard-BEziztL3.js} +2 -2
  10. package/dist/client/assets/AgentOptionRow-BqFQvFeN.js +1 -0
  11. package/dist/client/assets/AgentPicker-dCfEIsU-.js +1 -0
  12. package/dist/client/assets/{AgentRequestCard-BRINjair.js → AgentRequestCard-BAhfGJxx.js} +3 -3
  13. package/dist/client/assets/AppearancePage-7qHhFeEv.js +1 -0
  14. package/dist/client/assets/ApplyToOverridesDialog-jqOFh0d1.js +1 -0
  15. package/dist/client/assets/AttentionSignalRow-3CgglXkd.js +1 -0
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-C-BpNthi.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-BMKtHI0D.js} +3 -3
  17. package/dist/client/assets/BindingDialog-DSBxRyzA.js +1 -0
  18. package/dist/client/assets/{BlintzCanvas-DCU4iOtF.js → BlintzCanvas-CyRuqAJV.js} +1 -1
  19. package/dist/client/assets/{CanvasCsvContent-oayJjsGq.js → CanvasCsvContent-Bd1c6TGx.js} +4 -4
  20. package/dist/client/assets/CanvasFileContent-DelYwSH8.js +2 -0
  21. package/dist/client/assets/CanvasModel3dContent-BExIu4RY.js +2 -0
  22. package/dist/client/assets/ChatAppsOff-SWemSaUp.js +6 -0
  23. package/dist/client/assets/{CodeMirrorDiff-j0jAFw_i.js → CodeMirrorDiff-0WF4ITRZ.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorEditor-DWgnGEHZ.js → CodeMirrorEditor-Bg7wC_Q8.js} +1 -1
  25. package/dist/client/assets/CommitmentList-CTvEGUV3.js +1 -0
  26. package/dist/client/assets/{CommitmentsPage-_vCusfuJ.js → CommitmentsPage-C68etoLe.js} +1 -1
  27. package/dist/client/assets/ConnectionAccessLists-9oeVn_GK.js +1 -0
  28. package/dist/client/assets/ConnectionsPage-CJOY4-kp.js +6 -0
  29. package/dist/client/assets/ConventionPage-DD-f5o6y.js +11 -0
  30. package/dist/client/assets/{ExtensionPageRoute-XXcMwrQY.js → ExtensionPageRoute-C6fW17AG.js} +2 -2
  31. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-C8yf1gK7.js → FloatingTanStackRouterDevtools-CqogiFob-Zccd0fv6.js} +1 -1
  32. package/dist/client/assets/HandlePage-DOxlquWl.js +1 -0
  33. package/dist/client/assets/HeartbeatPage-cJM6NuTD.js +1 -0
  34. package/dist/client/assets/KeyEntry-K5k_3TfU.js +6 -0
  35. package/dist/client/assets/{LexicalField-Dr5vnDVn.js → LexicalField-DB5V20zv.js} +2 -2
  36. package/dist/client/assets/{ManagesPage-Dj_UOeFQ.js → ManagesPage-Cj0-hwfr.js} +1 -1
  37. package/dist/client/assets/{Marketplace-RwZrKU4O.js → Marketplace-eWEtLmd9.js} +2 -2
  38. package/dist/client/assets/{MarketplaceSourcesView-xSimTjA0.js → MarketplaceSourcesView-B1h70C20.js} +1 -1
  39. package/dist/client/assets/{McpAppFrame-Er6EX82b.js → McpAppFrame-BaJ_r-QR.js} +2 -2
  40. package/dist/client/assets/McpSigninBody-Coaq5Fkf.js +1 -0
  41. package/dist/client/assets/{Model3dViewer-D5xu-FCi.js → Model3dViewer-cKa-Jnbl.js} +1 -1
  42. package/dist/client/assets/NamePage-W7Frb1yy.js +1 -0
  43. package/dist/client/assets/{NewDirectMessageMenu-DiI_GTiE.js → NewDirectMessageMenu-C4zNIv9x.js} +1 -1
  44. package/dist/client/assets/{NotificationsPage-B_XMIlHt.js → NotificationsPage-gKNClvNU.js} +1 -1
  45. package/dist/client/assets/{OpenMeshSwitch-BjiejioP.js → OpenMeshSwitch-RzB2u6-Q.js} +2 -2
  46. package/dist/client/assets/OperatorIdentityForm-B_78Vqh8.js +1 -0
  47. package/dist/client/assets/PermissionHistory-DrtlA4YM.js +1 -0
  48. package/dist/client/assets/PermissionsPage-O7kUVaQv.js +1 -0
  49. package/dist/client/assets/{PersonalityPopover-BT-aQ65s.js → PersonalityPopover-DiNuuoWu.js} +1 -1
  50. package/dist/client/assets/PhotoPage-DdBke3yj.js +1 -0
  51. package/dist/client/assets/PresetPicker-BUFwg8RS.js +19 -0
  52. package/dist/client/assets/{PreviewRefusedNotice-DJyQxUFv.js → PreviewRefusedNotice-DXZp669C.js} +1 -1
  53. package/dist/client/assets/ProfileFields-BCfMzNcT.js +1 -0
  54. package/dist/client/assets/ProfilePanelContainer-BzC2MGdi.js +1 -0
  55. package/dist/client/assets/ProfileRolePicker-f0FKXLtu.js +1 -0
  56. package/dist/client/assets/PromptSuggestionChips-EgeMFibt.js +1 -0
  57. package/dist/client/assets/ReportsToPopover-CQ4Xxslu.js +1 -0
  58. package/dist/client/assets/RoomSurface-oDbc6jnO.js +44 -0
  59. package/dist/client/assets/{RoomsPage-D0795GTq.js → RoomsPage-D_EbiSZ3.js} +1 -1
  60. package/dist/client/assets/RunsOnPopover-LtmmbIsD.js +1 -0
  61. package/dist/client/assets/RuntimeConnectFlow-Kv2ytk2m.js +1 -0
  62. package/dist/client/assets/RuntimeSetupDialog-CiWxlcPc.js +1 -0
  63. package/dist/client/assets/{SessionsPage-DbIKrtbg.js → SessionsPage-1rDO0SGV.js} +1 -1
  64. package/dist/client/assets/SettingsDialog-_ctp2AfE.js +12 -0
  65. package/dist/client/assets/SkillsPage-gPuQHKps.js +1 -0
  66. package/dist/client/assets/TaskDialogWrapper-BPFpCgsN.js +1 -0
  67. package/dist/client/assets/TasksEmptyState-D0Jlzmed.js +3 -0
  68. package/dist/client/assets/TasksPage-DvGfg5Bk.js +1 -0
  69. package/dist/client/assets/{ToolsPage-gUYaNA1-.js → ToolsPage-B0qZ85pR.js} +2 -2
  70. package/dist/client/assets/{TopologyGraph-KPxRfshp.js → TopologyGraph-q1ammgpG.js} +3 -3
  71. package/dist/client/assets/TourHost-Dc8qw1Ef.js +1 -0
  72. package/dist/client/assets/{UnlinkDialog-RuuQUyOF.js → UnlinkDialog-DXdrLsGV.js} +1 -1
  73. package/dist/client/assets/{WidgetErrorCard-BojvLOeP.js → WidgetErrorCard-ChDNC060.js} +23 -23
  74. package/dist/client/assets/_shell-BxPza3Lx.js +88 -0
  75. package/dist/client/assets/{_shell._home-C-OJaDmg.js → _shell._home-DjGunhLV.js} +1 -1
  76. package/dist/client/assets/_shell._home.activity-B014dET1.js +1 -0
  77. package/dist/client/assets/_shell._home.index-DEmtTHZg.js +3 -0
  78. package/dist/client/assets/_shell._home.tasks-CnDEbUOd.js +1 -0
  79. package/dist/client/assets/_shell._home.workspaces-AQtMUWuu.js +1 -0
  80. package/dist/client/assets/{_shell.channels-Cpde6Iix.js → _shell.channels-C8NOhmJd.js} +4 -4
  81. package/dist/client/assets/_shell.connections-Bxe0wxOB.js +1 -0
  82. package/dist/client/assets/{_shell.feedback-requests-BBEuotuF.js → _shell.feedback-requests-C6ku9F5_.js} +2 -2
  83. package/dist/client/assets/_shell.marketplace-CEnzWFmI.js +1 -0
  84. package/dist/client/assets/_shell.marketplace_.sources-BZq1d2ih.js +1 -0
  85. package/dist/client/assets/_shell.session-Dn0C0mEZ.js +66 -0
  86. package/dist/client/assets/{_shell.team-4bF5Nn4_.js → _shell.team-DoLdOMoC.js} +5 -5
  87. package/dist/client/assets/_shell.x._extensionId-DhE3OYMF.js +1 -0
  88. package/dist/client/assets/_shell.x._extensionId_._-DhE3OYMF.js +1 -0
  89. package/dist/client/assets/access-copy-CBGtcTk0.js +1 -0
  90. package/dist/client/assets/{agent-browser-BIsnzdje.js → agent-browser-DbcLtsAx.js} +1 -1
  91. package/dist/client/assets/{banner-Dll8KWyW.js → banner-rPsz3suJ.js} +2 -2
  92. package/dist/client/assets/{card-5POMzMJ6.js → card-BqN3lfJn.js} +1 -1
  93. package/dist/client/assets/command-ZTLTCj0l.js +1 -0
  94. package/dist/client/assets/cpu-D70xMHl2.js +11 -0
  95. package/dist/client/assets/dead-letter-reasons-DtBHju9v.js +1 -0
  96. package/dist/client/assets/empty-state-yl1dLwLN.js +1 -0
  97. package/dist/client/assets/execution-config-BbBEe6FO.js +1 -0
  98. package/dist/client/assets/{file-CY9v6yos.js → file-CGg2M6ED.js} +1 -1
  99. package/dist/client/assets/{file-exclamation-point-DNS4eVZR.js → file-exclamation-point-DZrVsShR.js} +1 -1
  100. package/dist/client/assets/{file-text-BQ5NBk6w.js → file-text-BYq_4IAt.js} +1 -1
  101. package/dist/client/assets/{find-latest-widget-fence-BC8zM39x.js → find-latest-widget-fence-CWs9nr10.js} +4 -4
  102. package/dist/client/assets/form-vPuXuaYT.js +1 -0
  103. package/dist/client/assets/format-cron-D02Tnupo.js +1 -0
  104. package/dist/client/assets/{git-branch-34CUrn_R.js → git-branch-DbjXDO_F.js} +1 -1
  105. package/dist/client/assets/{heart-B5oPCBeT.js → heart-Dblp_miM.js} +1 -1
  106. package/dist/client/assets/{highlighted-body-KPVGNVTW-DeDxlHr7.js → highlighted-body-KPVGNVTW-CaMXMak-.js} +1 -1
  107. package/dist/client/assets/{index-Cdi4wcy2.js → index-B-WvQ24u.js} +7 -7
  108. package/dist/client/assets/{index-Bvr-_HFb.js → index-BKuzoeSn.js} +1 -1
  109. package/dist/client/assets/{index-CfPs0N2z.js → index-BOL391En.js} +1 -1
  110. package/dist/client/assets/{index-C6XffNP5.js → index-BPqkuMIa.js} +1 -1
  111. package/dist/client/assets/{index-Svn7q7Oq.js → index-BPwUl0Bz.js} +1 -1
  112. package/dist/client/assets/{index-CkfVcaGE.js → index-BV0tZnYg.js} +1 -1
  113. package/dist/client/assets/{index-obtMBZBo.js → index-BW98owO8.js} +1 -1
  114. package/dist/client/assets/{index-Cw1lCYXU.js → index-Bd23EYYT.js} +2 -2
  115. package/dist/client/assets/{index-hw9zI0x5.js → index-BdVOtoFr.js} +1 -1
  116. package/dist/client/assets/{index-C_nYZwKl.js → index-Bi7Um5RU.js} +1 -1
  117. package/dist/client/assets/{index-DvSjlchr.js → index-BiIbMZ6d.js} +36 -36
  118. package/dist/client/assets/{index-DipT3Tl7.js → index-BxqUb-n7.js} +1 -1
  119. package/dist/client/assets/{index-BfY2tknC.js → index-BzczIyv5.js} +1 -1
  120. package/dist/client/assets/index-C6NUjpzQ.js +38 -0
  121. package/dist/client/assets/{index-BCJdsNmC.js → index-C88NZagl.js} +1 -1
  122. package/dist/client/assets/{index-BM9_nnxH.js → index-CHvi6xUU.js} +1 -1
  123. package/dist/client/assets/{index-BWj2VXUd.js → index-CMWMhbec.js} +1 -1
  124. package/dist/client/assets/{index-HmNnK1_1.js → index-CN9fywRC.js} +1 -1
  125. package/dist/client/assets/{index-yDaSJS2Z.js → index-CRZXSh_q.js} +1 -1
  126. package/dist/client/assets/{index-sLuAyJv-.js → index-CWNsRK97.js} +1 -1
  127. package/dist/client/assets/index-CaLw69VE.js +1 -0
  128. package/dist/client/assets/index-CdKpQ1hI.js +1018 -0
  129. package/dist/client/assets/{index-CiOdQLWf.js → index-CrK4rKAq.js} +1 -1
  130. package/dist/client/assets/{index-B_LR9e6q.js → index-D16KF-iC.js} +3 -3
  131. package/dist/client/assets/index-D6m2SWHr.js +1 -0
  132. package/dist/client/assets/index-DDYi817r.js +1 -0
  133. package/dist/client/assets/{index-DjQZM7xU.js → index-Db2EOzA3.js} +1 -1
  134. package/dist/client/assets/index-DdbHrvr0.js +1 -0
  135. package/dist/client/assets/{index-D1AN47IZ.js → index-Dg_bax15.js} +3 -3
  136. package/dist/client/assets/index-DwUdUliR.js +1 -0
  137. package/dist/client/assets/{index-Dl3NBIFK.js → index-DzeYt-GT.js} +1 -1
  138. package/dist/client/assets/{index-D6QoZ_JK.js → index-Gq3gqBhY.js} +1 -1
  139. package/dist/client/assets/index-O_HMols_.js +1 -0
  140. package/dist/client/assets/{index-juObjGCH.js → index-P5j6zmcN.js} +1 -1
  141. package/dist/client/assets/{index-BeH3ljiU.js → index-XE46wAj9.js} +1 -1
  142. package/dist/client/assets/{index-BZYcFunZ.js → index-Z8YcKwIB.js} +1 -1
  143. package/dist/client/assets/{index-DFEF2MFy.css → index-kktlr1TJ.css} +1 -1
  144. package/dist/client/assets/{index-BfoRyh9U.js → index-lNMJBFB0.js} +1 -1
  145. package/dist/client/assets/{index-CFakjglG.js → index-oWLYcpm4.js} +1 -1
  146. package/dist/client/assets/{index-CbUkmP4v.js → index-vRc1D4KI.js} +1 -1
  147. package/dist/client/assets/inline-code-Cvn43Gqu.js +1 -0
  148. package/dist/client/assets/{layers-5nJbTYJI.js → layers-Bmz62WF4.js} +1 -1
  149. package/dist/client/assets/{lightbulb-CTbrj6Bh.js → lightbulb-CAd6slmc.js} +1 -1
  150. package/dist/client/assets/link-2-C0mn8T24.js +6 -0
  151. package/dist/client/assets/list-runtime-types-DxwGcKLx.js +1 -0
  152. package/dist/client/assets/{markdown-content-BWVUF3Ll.js → markdown-content-1-B7PdbY.js} +1 -1
  153. package/dist/client/assets/{mention-pill-DlZf_ikY.js → mention-pill-D_-KXznh.js} +1 -1
  154. package/dist/client/assets/{message-square-off-DwAOErT_.js → message-square-off-Di7kQvfe.js} +1 -1
  155. package/dist/client/assets/more-details-C6UGVeDE.js +1 -0
  156. package/dist/client/assets/{owner-notice-De98Vj3z.js → owner-notice-CudDDBX4.js} +1 -1
  157. package/dist/client/assets/{package-B1hSUoIL.js → package-D2eMoFCI.js} +1 -1
  158. package/dist/client/assets/{page-container-DTyW7UJt.js → page-container-CDHAACRA.js} +1 -1
  159. package/dist/client/assets/{paperclip-CoxP50ae.js → paperclip-p0W24D54.js} +1 -1
  160. package/dist/client/assets/path-input-j04LMj9z.js +1 -0
  161. package/dist/client/assets/primer-trigger-DkCcHf2Q.js +3 -0
  162. package/dist/client/assets/profile-errors-CqflLCzu.js +1 -0
  163. package/dist/client/assets/progress-BcuH4Eod.js +6 -0
  164. package/dist/client/assets/query-error-state-CEZs7dhg.js +1 -0
  165. package/dist/client/assets/{radio-WZhvBdvS.js → radio-DGWfQ5Rf.js} +1 -1
  166. package/dist/client/assets/registry-ChxwU0f4.js +1 -0
  167. package/dist/client/assets/relay-trace-schemas-y0nd8fzi.js +6 -0
  168. package/dist/client/assets/{room-files-source-B2H-CIeN.js → room-files-source-C1TCg4W_.js} +2 -2
  169. package/dist/client/assets/{rotate-ccw-clock-DFGhE-_C.js → rotate-ccw-clock-DcBojy-0.js} +1 -1
  170. package/dist/client/assets/{rotate-cw-DiWMKflx.js → rotate-cw-D0vUyeR2.js} +1 -1
  171. package/dist/client/assets/runtime-connect-Dn0T5YWv.js +1 -0
  172. package/dist/client/assets/{scroll-area-BJrXoUrS.js → scroll-area-CQ9lO56h.js} +1 -1
  173. package/dist/client/assets/{search-x-CPf5yiSS.js → search-x-EJGj73JB.js} +2 -2
  174. package/dist/client/assets/settings-for-runtime-BoOa-ZFG.js +1 -0
  175. package/dist/client/assets/shield-check-Bp58y9u7.js +6 -0
  176. package/dist/client/assets/{shield-x-D-yr2n7H.js → shield-x-jF_NCCvp.js} +1 -1
  177. package/dist/client/assets/soul-file-Cag2i87x.js +1 -0
  178. package/dist/client/assets/{table-B3kRSRyK.js → table-D89CWVJX.js} +1 -1
  179. package/dist/client/assets/terminal-BUhNMZAt.js +6 -0
  180. package/dist/client/assets/trust-posture-15DMDZTA.js +1 -0
  181. package/dist/client/assets/unplug-opnrSXAi.js +6 -0
  182. package/dist/client/assets/unverified-catalog-notice-DHM5Coia.js +1 -0
  183. package/dist/client/assets/use-adapter-catalog-ClMqVelU.js +1 -0
  184. package/dist/client/assets/use-bindings-Ch6UUBvz.js +1 -0
  185. package/dist/client/assets/use-composer-prefs-Qn7KRpYe.js +1 -0
  186. package/dist/client/assets/{use-connector-management-2rrubqr1.js → use-connector-management-dX_4x0d3.js} +1 -1
  187. package/dist/client/assets/use-deep-link-scroll-BV2fY4gy.js +1 -0
  188. package/dist/client/assets/use-delete-binding-BklxjB_c.js +1 -0
  189. package/dist/client/assets/{use-dev-links-BIxj0Pjl.js → use-dev-links-D4Bqam6F.js} +1 -1
  190. package/dist/client/assets/use-external-adapter-catalog-nHiD8BKZ.js +1 -0
  191. package/dist/client/assets/use-full-activity-feed-vYU7wQWT.js +1 -0
  192. package/dist/client/assets/use-is-below-desktop-G-mTu2Ga.js +1 -0
  193. package/dist/client/assets/{use-jump-back-in-CD5wYoFA.js → use-jump-back-in-BVunjzyr.js} +3 -3
  194. package/dist/client/assets/{use-mesh-topology-3LbL6yfa.js → use-mesh-topology-NaUKSKol.js} +1 -1
  195. package/dist/client/assets/use-mounted-ref-BWpQ8f91.js +1 -0
  196. package/dist/client/assets/use-notification-prefs-qO1zRRFN.js +1 -0
  197. package/dist/client/assets/{use-panel-tab-placements-CTNXdvC6.js → use-panel-tab-placements-Db6p2vLD.js} +1 -1
  198. package/dist/client/assets/use-pending-read-DUqJZUza.js +1 -0
  199. package/dist/client/assets/use-personality-commit-DUEKxHt_.js +1 -0
  200. package/dist/client/assets/{use-promo-activation-DCy9ROgP.js → use-promo-activation-CnGaw39P.js} +2 -2
  201. package/dist/client/assets/use-promo-dismissals-bkSHhGhj.js +1 -0
  202. package/dist/client/assets/{use-pulse-freshness-CRHnQO_-.js → use-pulse-freshness-Oc_1gs-Y.js} +1 -1
  203. package/dist/client/assets/use-relay-config-Ba-S4wxY.js +1 -0
  204. package/dist/client/assets/{use-room-follow-claim-FWatOD5-.js → use-room-follow-claim-DqE5b95Z.js} +1 -1
  205. package/dist/client/assets/{use-roving-tab-list-C56ygMxj.js → use-roving-tab-list-DnMqliqf.js} +1 -1
  206. package/dist/client/assets/{use-session-canvas-Dsmt92or.js → use-session-canvas-OdljtBE8.js} +4 -4
  207. package/dist/client/assets/{use-session-diagnostics-ypmmhIlN.js → use-session-diagnostics-CtjxsM8_.js} +4 -4
  208. package/dist/client/assets/use-unclaimed-chats-5RCD5wIp.js +1 -0
  209. package/dist/client/assets/use-update-config-xkznZMHr.js +1 -0
  210. package/dist/client/assets/useMutationState-Mjr_y4xX.js +1 -0
  211. package/dist/client/index.html +2 -2
  212. package/dist/server/index.js +7086 -6336
  213. package/dist/server/index.js.map +2 -2
  214. package/package.json +5 -5
  215. package/dist/client/assets/ActivityPage-C-lpXfva.js +0 -1
  216. package/dist/client/assets/AppearancePage-COdpfn1g.js +0 -1
  217. package/dist/client/assets/AttentionSignalRow-Dc8laCri.js +0 -1
  218. package/dist/client/assets/CanvasFileContent-C-aDKKws.js +0 -2
  219. package/dist/client/assets/CanvasModel3dContent-Dnx6oUx2.js +0 -2
  220. package/dist/client/assets/CommitmentList-CCsDbGY2.js +0 -1
  221. package/dist/client/assets/ConnectionAccessLists-umV6IbYS.js +0 -1
  222. package/dist/client/assets/ConnectionsPage-2iGwApEi.js +0 -6
  223. package/dist/client/assets/ConventionPage-Bucu3-TK.js +0 -11
  224. package/dist/client/assets/HandlePage-BotSAp8X.js +0 -1
  225. package/dist/client/assets/HeartbeatPage-CVAZeDqg.js +0 -1
  226. package/dist/client/assets/McpSigninBody-DMK94EGx.js +0 -1
  227. package/dist/client/assets/NamePage-NZ40HlPR.js +0 -1
  228. package/dist/client/assets/OperatorIdentityForm-H7l8r2VC.js +0 -1
  229. package/dist/client/assets/PermissionsPage-DVV9vtoW.js +0 -1
  230. package/dist/client/assets/PhotoPage-DKgOQCBH.js +0 -1
  231. package/dist/client/assets/PromptSuggestionChips-Dw7RA2P1.js +0 -1
  232. package/dist/client/assets/ReportsToPopover-fxu1r9iw.js +0 -1
  233. package/dist/client/assets/RoomSurface-D4Etqadg.js +0 -44
  234. package/dist/client/assets/RunsOnPopover-Cp8EMGHD.js +0 -1
  235. package/dist/client/assets/RuntimeSetupDialog-Cxtz9b_r.js +0 -1
  236. package/dist/client/assets/SkillsPage-DYSIGciZ.js +0 -1
  237. package/dist/client/assets/TasksPage-DoEP7ZsZ.js +0 -1
  238. package/dist/client/assets/TourHost-BIozl4IA.js +0 -1
  239. package/dist/client/assets/_shell-BMQyJ7r4.js +0 -88
  240. package/dist/client/assets/_shell._home.activity-Bvsxue6y.js +0 -1
  241. package/dist/client/assets/_shell._home.index-DXnd_q3h.js +0 -3
  242. package/dist/client/assets/_shell._home.tasks-Mz-iO--x.js +0 -1
  243. package/dist/client/assets/_shell._home.workspaces-ChuVp2dK.js +0 -1
  244. package/dist/client/assets/_shell.connections-CxgvSPjQ.js +0 -1
  245. package/dist/client/assets/_shell.marketplace-Hk6n4nNt.js +0 -1
  246. package/dist/client/assets/_shell.marketplace_.sources-B8f38K6K.js +0 -1
  247. package/dist/client/assets/_shell.session-DsF1tXPP.js +0 -66
  248. package/dist/client/assets/_shell.x._extensionId-B6J6mDaT.js +0 -1
  249. package/dist/client/assets/_shell.x._extensionId_._-B6J6mDaT.js +0 -1
  250. package/dist/client/assets/index-BTkflOTk.js +0 -1
  251. package/dist/client/assets/index-BqtFX8p5.js +0 -1
  252. package/dist/client/assets/index-C-DMBd4V.js +0 -1
  253. package/dist/client/assets/index-C4ZJEVQG.js +0 -1
  254. package/dist/client/assets/index-C9NjdeaX.js +0 -38
  255. package/dist/client/assets/index-d-DK54t2.js +0 -1099
  256. package/dist/client/assets/index-tdK5EJaB.js +0 -1
  257. package/dist/client/assets/index-wx8w6kby.js +0 -1
  258. package/dist/client/assets/kickoff-BwvlCy0n.js +0 -3
  259. package/dist/client/assets/soul-file-D0y7QIBL.js +0 -1
  260. package/dist/client/assets/use-delete-binding-BKhK3a7C.js +0 -1
  261. package/dist/client/assets/use-external-adapter-catalog-XS0vyTlS.js +0 -1
  262. package/dist/client/assets/use-full-activity-feed-CwqKSvpf.js +0 -1
  263. package/dist/client/assets/use-is-below-desktop-Dzs5i_TM.js +0 -1
  264. package/dist/client/assets/use-pending-read-sDmA-i7r.js +0 -1
  265. package/dist/client/assets/use-personality-commit-B13DSXxo.js +0 -1
  266. package/dist/client/assets/use-unclaimed-chats-C_bsrJFb.js +0 -1
@@ -1 +0,0 @@
1
- import{E as o}from"./ExtensionPageRoute-XXcMwrQY.js";import"./index-d-DK54t2.js";import"./page-container-DTyW7UJt.js";import"./use-dev-links-BIxj0Pjl.js";import"./UnlinkDialog-RuuQUyOF.js";const r=o;export{r as component};
@@ -1 +0,0 @@
1
- import{E as o}from"./ExtensionPageRoute-XXcMwrQY.js";import"./index-d-DK54t2.js";import"./page-container-DTyW7UJt.js";import"./use-dev-links-BIxj0Pjl.js";import"./UnlinkDialog-RuuQUyOF.js";const r=o;export{r as component};
@@ -1 +0,0 @@
1
- import{u as t,D as a}from"./TourHost-BIozl4IA.js";import{T as h,a as g,b as j}from"./TourHost-BIozl4IA.js";import{j as e,a3 as l,B as r}from"./index-d-DK54t2.js";import"./dorkbot-templates-8Yu9POWJ.js";import"./use-external-adapter-catalog-XS0vyTlS.js";function p(){const{pendingOffer:s,pendingOfferId:i,acceptOffer:o,declineOffer:n}=t();return!s||i===null||!s.offerLine?null:e.jsxs(l.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},role:"group","aria-label":"DorkBot suggestion",className:"bg-secondary/60 mt-1.5 flex flex-col gap-2 rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsxs("span",{className:"mt-0.5 shrink-0",children:[e.jsx(a,{size:18,className:"dark:hidden"}),e.jsx(a,{variant:"white",size:18,className:"hidden dark:block"})]}),e.jsx("p",{className:"text-sm leading-relaxed",children:s.offerLine})]}),e.jsxs("div",{className:"flex items-center gap-2 pl-6",children:[e.jsx(r,{size:"sm",onClick:()=>o(i),children:"Show me"}),e.jsx(r,{size:"sm",variant:"ghost",onClick:()=>n(i),children:"Later"})]})]})}export{h as TOUR_DEFINITIONS,g as TourHost,p as TourOfferChips,j as useTourOccasions,t as useTours};
@@ -1 +0,0 @@
1
- import{I as M,M as S}from"./Marketplace-RwZrKU4O.js";import{M as u,P as x,m as P,u as d,a as g}from"./index-d-DK54t2.js";import{M as h}from"./MarketplaceSourcesView-xSimTjA0.js";import{U as I}from"./UnlinkDialog-RuuQUyOF.js";import"./PreviewRefusedNotice-DJyQxUFv.js";import"./shield-x-D-yr2n7H.js";import"./card-5POMzMJ6.js";import"./markdown-content-BWVUF3Ll.js";import"./use-unclaimed-chats-C_bsrJFb.js";import"./use-dev-links-BIxj0Pjl.js";import"./file-CY9v6yos.js";import"./file-exclamation-point-DNS4eVZR.js";import"./rotate-ccw-clock-DFGhE-_C.js";import"./use-pending-read-sDmA-i7r.js";export{M as InstalledPackagesView,S as Marketplace,u as MarketplaceSidebar,h as MarketplaceSourcesView,x as PackageCard,I as UnlinkDialog,P as marketplaceSearchSchema,d as useMarketplaceParams,g as useMarketplaceStore};
@@ -1 +0,0 @@
1
- import{u as x,C as h,a as m,c as p,p as g}from"./use-session-diagnostics-ypmmhIlN.js";import{A as se,b as te,d as ne,e as ae,G as oe,M as re,f as ie,P as ce,g as le,R as ue,h as de,S as xe,i as he,j as me,U as pe,k as ge,l as fe,m as je,n as be,o as Se,q as ve,r as ke,s as Ne,t as Ie,v as Ce,w as we,x as Re,y as ye,z as Me,B as Pe,D as Ae}from"./use-session-diagnostics-ypmmhIlN.js";import{bZ as f,j as s,l as j,B as b,b_ as S,aR as v,b$ as k,c0 as t,Z as N,c1 as r,c2 as I,c3 as C,r as l,c4 as w,aa as R}from"./index-d-DK54t2.js";import{c5 as Ue,c6 as De,c7 as Ee,c8 as $e,c9 as Ge,ca as Oe,cb as Le,cc as Be,cd as qe,ce as _e,cf as Fe,cg as ze,ch as He,ci as Qe,cj as Ve,ck as Ze}from"./index-d-DK54t2.js";import{f as y}from"./format-duration-BCr6uzby.js";import{r as M}from"./composer-insert-BpyATrmR.js";import{S as P}from"./ConnectionAccessLists-umV6IbYS.js";import"./git-branch-34CUrn_R.js";import"./card-5POMzMJ6.js";import"./RuntimeSetupDialog-Cxtz9b_r.js";import"./layers-5nJbTYJI.js";const A="I need access to another service. Ask me which service and actions you need, then request only that access.";function T({sessionId:e}){const a=f(),o=s.jsx(b,{variant:"secondary",size:"sm","data-testid":`ask-agent-for-connection-${e}`,onClick:()=>M(A),children:"Ask your agent"});return s.jsx(P,{sessionId:e,onManage:()=>void a({...j.connections()}),emptyAction:o,footer:s.jsx("div",{className:"pt-1",children:o})})}const U=1e3;function X(){const[e]=S(),a=x(e??""),o=v(n=>n.rightPanelOpen);return e?s.jsx(D,{diagnostics:a,live:o,connectors:s.jsx(T,{sessionId:e})}):s.jsx("div",{className:"text-muted-foreground flex h-full items-center justify-center p-6 text-center text-xs",children:"Open a chat to inspect it."})}function D({diagnostics:e,live:a=!0,connectors:o}){return s.jsxs("div",{"data-slot":"session-inspector",className:"flex h-full min-w-0 flex-col gap-4 overflow-y-auto p-3",children:[s.jsx(E,{diagnostics:e,live:a}),s.jsx($,{diagnostics:e}),s.jsx(G,{diagnostics:e}),s.jsx(O,{diagnostics:e}),o,s.jsxs("div",{className:"mt-auto pt-2",children:[s.jsx(k,{className:"mb-2"}),s.jsx(h,{diagnostics:e,className:"w-full justify-center"})]})]})}function E({diagnostics:e,live:a}){const o=_(e.lastEventAt,a),n=m[e.connectionState];return s.jsxs(c,{label:"Live",children:[s.jsx(t,{label:"Live updates",children:s.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s.jsx("span",{"aria-hidden":!0,className:N("inline-block size-1.5 rounded-full",n.color,n.tasks&&"animate-breath")}),n.shortLabel]})}),s.jsx(t,{label:"Turn",children:L(e)}),s.jsx(t,{label:"Last event",children:e.lastEventSeq===0?"none yet":`seq ${e.lastEventSeq}`}),s.jsx(t,{label:"Resumed from",children:e.snapshotCursor===null?"not hydrated":`cursor ${e.snapshotCursor}`}),s.jsx(t,{label:"Last update",children:o===null?"—":`${y(o)} ago`}),s.jsx(t,{label:"Queued messages",children:String(e.queueDepth)})]})}function $({diagnostics:e}){return s.jsxs(c,{label:"Resolved",children:[s.jsx(t,{label:"Directory",wrap:!0,children:e.cwd??"—"}),s.jsx(t,{label:"Git",children:q(e.git)}),s.jsx(t,{label:"Runs on",children:e.runtime??"—"}),s.jsx(t,{label:"Model",wrap:!0,children:e.model??"—"}),e.selectedModel!==null&&e.selectedModel!==e.model&&s.jsx(t,{label:"Model selected",children:e.selectedModel}),s.jsx(t,{label:"Effort",children:e.effort??"—"}),s.jsx(t,{label:"Fast mode",children:e.fastMode?"on":"off"}),s.jsx(t,{label:"Permissions",children:e.permissionMode}),s.jsx(t,{label:"Chat ID",wrap:!0,children:e.sessionId}),s.jsx(t,{label:"DorkOS version",children:e.clientVersion??"—"})]})}function G({diagnostics:e}){var o;const a=(((o=e.contextUsage)==null?void 0:o.categories)??[]).filter(n=>n.tokens>0).sort((n,i)=>i.tokens-n.tokens);return s.jsxs(c,{label:"Usage",children:[s.jsx(t,{label:"Context",children:e.contextPercent===null?"—":`${e.contextPercent}% full`}),e.contextUsage&&s.jsxs(t,{label:"Tokens",children:[r(e.contextUsage.totalTokens)," / ",r(e.contextUsage.maxTokens)]}),a.map(n=>s.jsx(t,{label:n.name,indent:!0,swatch:n.color,"data-testid":`context-category-${n.name}`,children:r(n.tokens)},n.name)),e.cache===null?s.jsx(t,{label:"Cache",children:"nothing cached yet"}):s.jsxs(s.Fragment,{children:[s.jsx(t,{label:"Cache hit",children:`${p(e.cache)}%`}),s.jsx(t,{label:"Cache read",indent:!0,children:r(e.cache.readTokens)}),s.jsx(t,{label:"Cache written",indent:!0,children:r(e.cache.creationTokens)})]}),e.usage!==null&&I(e.usage)?s.jsx("div",{className:"pt-1",children:s.jsx(C,{usage:e.usage})}):s.jsx(t,{label:"Usage & cost",children:"no usage reported"})]})}function O({diagnostics:e}){const{running:a,finished:o}=g(e.activeSubagents);return s.jsxs(c,{label:"Subagents",children:[s.jsx(t,{label:"Running",children:B(a.length,e.runningSubagentCount)}),a.map(n=>s.jsx(u,{subagent:n},n.taskId)),o.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(t,{label:"Finished this turn",children:String(o.length)}),o.map(n=>s.jsx(u,{subagent:n},n.taskId))]}),s.jsx(t,{label:"Available",children:e.subagents.length===0?"none":e.subagents.map(n=>n.name).join(", ")})]})}function u({subagent:e}){return s.jsxs("div",{"data-testid":`active-subagent-${e.taskId}`,"data-status":e.status,className:"space-y-0.5 py-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(w,{className:"text-muted-foreground size-3.5 shrink-0","aria-hidden":!0}),s.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.description??e.taskId}),s.jsx(R,{size:"xs",variant:"secondary",className:"shrink-0",children:e.status})]}),s.jsxs("p",{className:"text-muted-foreground text-3xs pl-5 leading-tight",children:[e.toolUses??0," tool",e.toolUses===1?"":"s",e.lastToolName?` · last ${e.lastToolName}`:""]})]})}function c({label:e,children:a}){return s.jsxs("section",{className:"min-w-0",children:[s.jsx("h3",{className:"text-muted-foreground px-1 pb-1 text-xs font-medium tracking-wide uppercase",children:e}),s.jsx("div",{className:"space-y-1 px-1 text-xs",children:a})]})}function L(e){return e.triggerPending?"sending":e.streaming?"streaming":e.lifecycle??"not hydrated"}function B(e,a){const o=e===0?"none":String(e);return a===null||a===e?o:`${o} · server says ${a}`}function q(e){return e.state==="unknown"?"—":e.state==="no-repo"?"no repo":e.dirty?`${e.branch} · changed`:`${e.branch} · clean`}function _(e,a){const[o,n]=l.useState(()=>Date.now());return l.useEffect(()=>{if(e===null||!a)return;const i=()=>n(Date.now());i();const d=setInterval(i,U);return()=>clearInterval(d)},[e,a]),e===null?null:Math.max(0,o-e)}export{Ue as AccountBadge,De as AccountBadgeView,Ee as AccountItem,$e as AccountMenuRow,Ge as AccountPopover,Oe as AccountTrigger,se as AutoModeConfirmDialog,te as ConnectionItem,ne as ContextItem,ae as CwdItem,oe as GitStatusItem,re as MakeDefaultStopLine,ie as ModelConfigPopover,ce as PermissionModeItem,le as PlanModeItem,ue as ReadOnlyModeNotice,de as RuntimeItem,X as SessionInspector,xe as SessionPopover,D as SessionReadout,he as StatusLine,me as SubagentsItem,pe as UsageRevealPopover,Le as UsageStatusItem,Be as accountChipPromotion,ge as applyStatusBudget,qe as canOfferContinue,_e as chipToneFor,fe as evaluateExtensionStatusItems,Fe as formatCost,je as formatDiagnostics,be as gitPromotionState,I as hasRenderableUsage,Se as isGitStatusOk,ve as isUsageAbsorbed,g as partitionSubagents,ke as resolveStatusBudget,Ne as selectPromotedItems,ze as showsStaleMark,Ie as useExtensionStatusItems,Ce as useGitStatus,we as useMakeDefaultStop,Re as useReadOnlyModeHint,He as useResolvedSessionRuntime,Qe as useRuntimeChip,Ve as useSessionAccount,x as useSessionDiagnostics,Ze as useSessionPermissionPicker,ye as useSessionPopoverShortcut,Me as useStatusBarPins,Pe as useStatusBudget,Ae as useStatusUsage};
@@ -1 +0,0 @@
1
- import{j as e,bz as C,bA as M,e as i,bB as w,bC as I,aR as u,bD as O,bE as L,V as z,bF as F,bG as v,r as o,bH as T,bI as U,bJ as V,bK as q,bL as K,bM as _,bN as B,bO as G}from"./index-d-DK54t2.js";import{bP as Z,bQ as ee,bR as se,bS as te,bT as ne,bU as ae,bV as re,d as le,bW as oe,bX as ie,bY as ce}from"./index-d-DK54t2.js";import{O as ue,u as fe,a as xe,b as me}from"./OperatorIdentityForm-H7l8r2VC.js";function H(){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-6 text-center",children:[e.jsx("div",{className:"bg-muted flex size-12 items-center justify-center rounded-full",children:e.jsx(C,{className:"text-muted-foreground size-5"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:"No agent selected"}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Pick an agent to see its profile."})]})]})}function J({agentPath:s}){return e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-3 p-6 text-center",children:[e.jsx("div",{className:"bg-destructive/10 flex size-12 items-center justify-center rounded-full",children:e.jsx(M,{className:"text-destructive size-5"})}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium",children:"Agent not found"}),e.jsx("p",{className:"text-muted-foreground font-mono text-xs break-all",children:s}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Nothing here could be opened as an agent."})]})]})}function Q(){return e.jsxs("div",{"data-slot":"profile-dock-skeleton",className:"flex h-full flex-col overflow-hidden",children:[e.jsxs("div",{className:"flex flex-col items-center gap-2 px-4 pt-6 pb-4",children:[e.jsx(i,{className:"size-16 rounded-full"}),e.jsx(i,{className:"mt-1 h-4 w-28 rounded"}),e.jsx(i,{className:"h-3 w-16 rounded"}),e.jsx(i,{className:"h-3 w-36 rounded"})]}),e.jsx("div",{className:"space-y-2 px-4",children:["w-full","w-full","w-full"].map((s,f)=>e.jsx(i,{className:`h-8 ${s} rounded`},f))})]})}function X(){var N;const s=w(),f=I(),p=u(t=>t.rightPanelOpen),S=O(),c=L(s??void 0),b=z({enabled:c!==void 0}),r=(N=b.data)==null?void 0:N.members,D=c===void 0||r==null?void 0:r.find(t=>t.id===c),x=S.isFetched&&(c===void 0||b.isFetched),n=D??null,g=F(s),d=v(t=>t.setDockedEntries),m=v(t=>t.clearDockedStacks),E=u(t=>t.setRightPanelOpen),j=u(t=>t.releaseRightPanelRequest),[R,h]=o.useState(!1),a=o.useMemo(()=>n?T(n.id,[...g]):null,[n,g]),P=a===null?null:U(a),l=(P===(n==null?void 0:n.id)?n:r==null?void 0:r.find(t=>t.id===P))??n,y=o.useCallback(t=>{!s||!a||d(s,V(a,t).entries)},[s,a,d]),A=o.useCallback(()=>{!s||!a||d(s,q(a).entries)},[s,a,d]);o.useEffect(()=>{s===null||!x||l!==null||j(s)},[s,x,l,j]);const k=K(l===null?null:{home:"docked",memberId:l.id});return o.useEffect(()=>{if(p)return()=>{if(!u.getState().rightPanelOpen){if(_(k.read()))return h(!0);m()}}},[p,m,k]),s?!n||!a||!l?x?e.jsx(J,{agentPath:s}):e.jsx(Q,{}):e.jsxs("div",{"data-slot":"profile-dock",className:"flex h-full min-h-0 flex-col overflow-hidden",children:[e.jsx(B,{member:l,roster:r??[],home:"docked",inOwnSession:s===f.agentPath&&l.id===n.id,stack:a,onPush:y,onPop:A}),e.jsx(G,{open:R,onKeep:()=>{h(!1),E(!0)},onDiscard:()=>{h(!1),m()}})]}):e.jsx(H,{})}export{Z as AccountMenu,ee as AccountMenuContainer,ue as OperatorIdentityForm,se as PROFILE_PANEL_ID,X as ProfileDock,te as ProfilePanel,ne as ProfilePanelContainer,ae as ProfileSheet,re as ProfileSheetContainer,B as ProfileView,le as deriveRelationship,oe as handleErrorMessage,ie as identityLinkErrorMessage,T as profileStack,fe as useLegacyProfileLinkRedirect,xe as useProfileDockDeepLink,me as useProfileShortcut,v as useProfileStore,ce as useSetIdentityLinkedToMe};
@@ -1,38 +0,0 @@
1
- var Ne=Object.defineProperty;var Re=(t,n,s)=>n in t?Ne(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s;var U=(t,n,s)=>Re(t,typeof n!="symbol"?n+"":n,s);import{a4 as C,ae as P,hr as De,r as f,aJ as Ie,hs as Q,aH as ze,j as e,hh as _,ht as Me,g as B,hu as H,hv as V,Z as O,hw as Se,hx as Te,X as Fe,hy as Ae,B as w,dg as Oe,a3 as S,aP as _e,fO as Ee,hz as Le,hA as Ue,hB as $e,hC as Pe,hD as Be,hE as X,$ as He,af as Ve,aR as y,hF as Ye,hG as Ke,hH as We,cU as ee,hI as qe,hJ as Je,hK as Ge}from"./index-d-DK54t2.js";import{u as Ze}from"./use-roving-tab-list-C56ygMxj.js";import{F as ne,a as Qe,b as te,c as Xe,R as et,C as se}from"./use-session-canvas-Dsmt92or.js";import{d as tn,e as nn,f as sn,g as an,h as on}from"./use-session-canvas-Dsmt92or.js";import{A as tt}from"./McpAppFrame-Er6EX82b.js";import{F as nt}from"./file-CY9v6yos.js";import{F as ae}from"./file-text-BQ5NBk6w.js";import{R as st}from"./rotate-cw-DiWMKflx.js";import{u as at}from"./use-room-follow-claim-FWatOD5-.js";import{c as ot,F as rt}from"./room-files-source-B2H-CIeN.js";import"./WidgetErrorCard-BojvLOeP.js";import"./card-5POMzMJ6.js";import"./markdown-content-BWVUF3Ll.js";import"./table-B3kRSRyK.js";import"./package-B1hSUoIL.js";import"./heart-B5oPCBeT.js";import"./git-branch-34CUrn_R.js";import"./file-exclamation-point-DNS4eVZR.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:"box",size:24,node:[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]};oe.node;const it=C(oe);/**
7
- * @license lucide-react v1.48.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const re={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};re.node;const ie=C(re);/**
12
- * @license lucide-react v1.48.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const le={name:"file-headphone",size:24,node:[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]],aliases:["file-audio","file-audio-2"]};le.node;const lt=C(le);/**
17
- * @license lucide-react v1.48.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const ce={name:"file-play",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],aliases:["file-video"]};ce.node;const ct=C(ce);/**
22
- * @license lucide-react v1.48.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const de={name:"git-compare",size:24,node:[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]};de.node;const dt=C(de);/**
27
- * @license lucide-react v1.48.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const ue={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};ue.node;const ut=C(ue);/**
32
- * @license lucide-react v1.48.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const me={name:"table",size:24,node:[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]};me.node;const mt=C(me);function pt(t){const n=P(),{roomId:s,viewerAuthorId:r,documentId:i,url:p,readScrollY:u,subscribe:d}=t,a=De(s,r),g=f.useRef({roomId:s,documentId:i,url:p,readScrollY:u});g.current={roomId:s,documentId:i,url:p,readScrollY:u};const m=f.useRef(null),x=f.useRef(0);f.useEffect(()=>{if(!a||s===null||i===null)return;const j=()=>{m.current=null,x.current=Date.now();const b=g.current;if(b.roomId===null||b.documentId===null)return;const F=b.roomId,E={documentId:b.documentId,...b.url!==void 0?{url:b.url}:{},...b.readScrollY?{scrollY:Math.max(0,Math.round(b.readScrollY()))}:{}};n.publishRoomView(F,E).then(L=>{!L.followed&&r!==null&&ze.getState().noteNobodyFollowing(F,r)}).catch(()=>{})},c=()=>{if(m.current!==null)return;const b=Date.now()-x.current;if(b>=Q){j();return}m.current=setTimeout(j,Q-b)};c();const R=d==null?void 0:d(c),T=setInterval(c,Ie);return()=>{clearInterval(T),R==null||R()}},[n,a,s,r,i,p,d]),f.useEffect(()=>()=>{m.current!==null&&clearTimeout(m.current)},[])}const ht={url:_,markdown:ae,json:ie,image:ut,pdf:nt,widget:Me,mcp_app:tt,file:ne,model3d:it,audio:lt,video:ct,csv:mt,browser:_,diff:dt},ft="after:absolute after:inset-x-0 after:-inset-y-2 md:after:hidden";function Y(t){return t==="browser"?"browser-panel":"canvas-panel"}const xt={canvas:"Open canvas documents",browser:"Open browser pages"};function K(t){return`canvas-tab-${t}`}const yt=3;function vt(t){const n=t.map(r=>r.displayName);if(n.length===0)return null;if(n.length===1)return`${n[0]} is looking at this.`;if(n.length===2)return`${n[0]} and ${n[1]} are looking at this.`;const s=n.length-2;return`${n[0]}, ${n[1]} and ${s} ${s===1?"other":"others"} are looking at this.`}function gt({watchers:t}){const n=vt(t);if(n===null)return null;const s=t.slice(0,yt),r=t.length-s.length;return e.jsxs(e.Fragment,{children:[e.jsxs("span",{"data-slot":"canvas-tab-watchers","aria-hidden":!0,className:"flex shrink-0 -space-x-1",children:[s.map(i=>e.jsx(B,{size:"xs",className:"ring-background size-3.5 text-[8px] ring-1",kind:i.kind,color:i.color??V(i.id),emoji:i.emoji,imageUrl:i.imageUrl,badge:null,fallback:H(i.displayName)},i.id)),r>0&&e.jsxs("span",{className:"bg-muted text-muted-foreground ring-background flex size-3.5 shrink-0 items-center justify-center rounded-full text-[8px] ring-1",children:["+",r]})]}),e.jsx("span",{className:"sr-only",children:n})]})}function pe({view:t,documents:n,activeDocumentId:s,onActivate:r,onClose:i,onPin:p}){const u=Y(t),{getTabProps:d}=Ze({orderedIds:n.map(a=>a.id),activeId:s,onActivate:a=>r(a),onClose:a=>i(a),getFallbackFocus:()=>document.getElementById(u)});return n.length===0?null:e.jsx("div",{role:"tablist","aria-label":xt[t],className:"flex items-stretch gap-1 overflow-x-auto border-b px-2 py-1",children:n.map(a=>{const g=ht[a.contentType],m=a.id===s,x=a.author;return e.jsxs("div",{role:"presentation",className:"group relative flex shrink-0",children:[e.jsxs("button",{type:"button",role:"tab","aria-selected":m,id:K(a.id),"aria-controls":m?u:void 0,...d(a.id),className:O("focus-ring flex items-center gap-1.5 rounded-md py-3 pl-2 text-xs transition-colors md:py-1",p?"pr-12":"pr-7",m?"bg-muted text-foreground":"text-muted-foreground hover:bg-muted/60 hover:text-foreground"),children:[x&&e.jsx(B,{"aria-hidden":!0,size:"xs",className:"size-3.5 shrink-0 text-[8px]",kind:x.kind,color:x.color??V(x.id),emoji:x.emoji,imageUrl:x.imageUrl,badge:null,fallback:H(x.displayName)}),e.jsx(g,{className:"size-3.5 shrink-0"}),e.jsx("span",{className:"max-w-40 truncate font-medium",children:a.sourceLabel}),a.watchers&&a.watchers.length>0&&e.jsx(gt,{watchers:a.watchers}),a.unread&&e.jsx("span",{"data-slot":"canvas-tab-unread","aria-hidden":!0,className:"bg-primary size-1.5 shrink-0 rounded-full"})]}),p&&e.jsx("button",{type:"button",tabIndex:-1,onClick:()=>p(a.id,!a.pinned),"aria-label":a.pinned?`Unpin ${a.sourceLabel}`:`Pin ${a.sourceLabel}`,className:O("focus-ring hover:bg-background/80 absolute top-1/2 right-6 -translate-y-1/2 rounded-sm p-1.5 transition-opacity md:p-0.5",a.pinned?"opacity-100":"opacity-0 group-hover:opacity-60"),children:a.pinned?e.jsx(Se,{className:"size-3"}):e.jsx(Te,{className:"size-3"})}),e.jsx("button",{type:"button",tabIndex:-1,onClick:()=>i(a.id),"aria-label":`Close ${a.sourceLabel}`,className:O("focus-ring hover:bg-background/80 absolute top-1/2 right-1 -translate-y-1/2 rounded-sm p-1.5 opacity-60 transition-opacity group-hover:opacity-100 md:p-0.5",ft),children:e.jsx(Fe,{className:"size-3"})})]},a.id)})})}function bt({error:t,onRetry:n}){const s=Ae(t);return e.jsxs("div",{className:"text-muted-foreground flex h-full flex-col items-center justify-center gap-3 p-8 text-center",children:[e.jsx("p",{children:"This tab hit a problem"}),s?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm",children:"The app may have updated. Reloading usually fixes it."}),e.jsx(w,{type:"button",size:"sm",onClick:()=>window.location.reload(),children:"Reload DorkOS"})]}):e.jsxs(w,{type:"button",variant:"outline",size:"sm",onClick:n,children:[e.jsx(st,{className:"size-4"}),"Try again"]})]})}class he extends f.Component{constructor(){super(...arguments);U(this,"state",{error:null,retryKey:0});U(this,"handleRetry",()=>{this.setState(s=>({error:null,retryKey:s.retryKey+1}))})}static getDerivedStateFromError(s){return{error:s}}componentDidCatch(s,r){console.error(`[Canvas] Document viewer error (${this.props.documentId}):`,s,r)}render(){const{error:s,retryKey:r}=this.state;return s?e.jsx(bt,{error:s,onRetry:this.handleRetry}):e.jsx(f.Fragment,{children:this.props.children},r)}}function jt({onReload:t,onKeepMine:n}){return e.jsxs("div",{role:"status",className:"border-border/60 bg-muted/40 mx-2 mt-2 space-y-2 rounded-md border px-3 py-2 text-sm",children:[e.jsx("p",{children:"Your agent changed this while you were editing. Your edit is safe."}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(w,{type:"button",variant:"outline",size:"sm",onClick:t,children:"Reload"}),e.jsx(w,{type:"button",variant:"ghost",size:"sm",onClick:n,children:"Keep mine"})]}),e.jsx("p",{className:"text-muted-foreground text-xs",children:"Reload shows its version and ends your edit. Keep mine discards it."})]})}const kt={canvas:{heading:"A blank canvas",blurb:"Your agent can show documents, data and files here.",actions:[{icon:ae,label:"Markdown",description:"Render a document",action:()=>({type:"markdown",content:`# Untitled
37
-
38
- Start writing…`,title:"Document"})},{icon:ie,label:"JSON",description:"Inspect structured data",action:()=>({type:"json",data:{message:"Your data here"},title:"JSON data"})}]},browser:{heading:"No page open",blurb:"This tab shows web pages: your files, dev servers, or sites from your agent.",actions:[{icon:_,label:"Web page",description:"Open a page, then type any address",action:()=>({type:"url",url:"https://dorkos.ai",title:"Web Page"})}]}};function $(t,n,s,r){return t.split("").reduce((p,u)=>p+u.charCodeAt(0),0)*(n+1)*7%(r-s)+s}function fe({view:t,onAction:n}){const s=Oe(),r=f.useId(),i=kt[t],p=f.useMemo(()=>Array.from({length:6},(u,d)=>({x:$(r,d*3,10,90),y:$(r,d*3+1,10,80),size:$(r,d*3+2,24,56),delay:d*.4})),[r]);return e.jsxs("div",{className:"relative flex h-full flex-col items-center justify-center overflow-hidden px-6",children:[!s&&p.map((u,d)=>e.jsx(S.div,{className:"border-border/40 absolute rounded-lg border",style:{left:`${u.x}%`,top:`${u.y}%`,width:u.size,height:u.size},initial:{opacity:0,scale:.6,rotate:-10},animate:{opacity:[0,.15,.08,.15],scale:[.6,1,.9,1],rotate:[-10,0,5,0]},transition:{duration:8,delay:u.delay,repeat:1/0,repeatType:"reverse",ease:"easeInOut"}},d)),e.jsxs(S.div,{className:"relative z-10 flex max-w-sm flex-col items-center gap-6 text-center",initial:s?!1:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,ease:"easeOut"},children:[e.jsx(S.div,{className:"bg-muted/50 text-muted-foreground flex size-14 items-center justify-center rounded-2xl",initial:s?!1:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.3,delay:.1},children:t==="browser"?e.jsx(_,{className:"size-7"}):e.jsx(_e,{className:"size-7"})}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h2",{className:"text-lg font-semibold tracking-tight",children:i.heading}),e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:[i.blurb,e.jsx("br",{}),"Or pick a starting point below."]})]}),e.jsx(S.div,{className:"mt-2 flex w-full flex-col gap-2",initial:"hidden",animate:"visible",variants:s?{}:{visible:{transition:{staggerChildren:.08,delayChildren:.25}}},children:i.actions.map(({icon:u,label:d,description:a,action:g})=>e.jsxs(S.button,{variants:s?{}:{hidden:{opacity:0,y:8},visible:{opacity:1,y:0}},transition:{duration:.25},className:"border-border hover:bg-accent/50 flex items-center gap-3 rounded-lg border px-4 py-3 text-left transition-colors",onClick:()=>n(g()),children:[e.jsx(u,{className:"text-muted-foreground size-4 shrink-0"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-sm font-medium",children:d}),e.jsx("span",{className:"text-muted-foreground ml-2 text-xs",children:a})]})]},d))})]})]})}function wt({sourceLabel:t,people:n,following:s,onFollow:r,onStopFollowing:i,onDiscuss:p,discussing:u=!1}){const d=n.find(a=>a.id===s)??null;return t===void 0&&n.length===0&&p===void 0?null:e.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 border-b px-3 py-1 text-xs",children:[t!==void 0&&e.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),t===void 0&&e.jsx("span",{className:"flex-1"}),p&&e.jsxs(w,{type:"button",variant:"ghost",size:"sm",className:"h-6 gap-1 px-1.5",disabled:u,onClick:p,children:[e.jsx(Ee,{className:"size-3.5"}),"Discuss"]}),n.length>0&&e.jsxs(Le,{children:[e.jsx(Ue,{asChild:!0,children:e.jsxs(w,{type:"button",variant:"ghost",size:"sm",className:O("h-6 gap-1 px-1.5",d&&"text-foreground"),children:[e.jsx($e,{className:"size-3.5"}),d?`Following ${d.displayName}`:"Follow"]})}),e.jsxs(Pe,{align:"end",children:[e.jsx(Be,{children:"Follow somebody’s browser"}),n.map(a=>e.jsxs(X,{onSelect:()=>a.id===s?i():r(a.id),children:[e.jsx(B,{"aria-hidden":!0,size:"xs",className:"size-4 shrink-0 text-[9px]",kind:a.kind,color:a.color??V(a.id),emoji:a.emoji,imageUrl:a.imageUrl,badge:null,fallback:H(a.displayName)}),e.jsx("span",{className:"min-w-0 flex-1 truncate",children:a.displayName}),a.id===s&&e.jsx(He,{className:"size-3.5 shrink-0"})]},a.id)),d&&e.jsx(X,{onSelect:i,children:"Stop following"})]})]})]})}function Ct({roomId:t,document:n,reading:s}){const r=P(),i=Ve(),[p,u]=f.useState(null),d=f.useMemo(()=>ot({transport:r,queryClient:i,roomId:t}),[r,i,t]);return e.jsxs("div",{className:"flex h-full items-start justify-center p-6",children:[e.jsxs("div",{className:"bg-card shadow-soft w-full max-w-md space-y-3 rounded-lg border p-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ne,{className:"text-muted-foreground size-4 shrink-0"}),e.jsx("span",{className:"truncate text-sm font-medium",children:n.title||s.sourcePath})]}),e.jsx("p",{className:"text-muted-foreground font-mono text-xs break-all",children:s.sourcePath}),s.kind==="elsewhere"?e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.sentence}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"A room file. Each save is recorded with your name."}),e.jsx(w,{type:"button",size:"sm",onClick:()=>u(s.sourcePath),children:"Open file"})]})]}),s.kind==="room-file"&&e.jsx(rt,{source:d,path:p,onClose:()=>u(null)})]})}const Nt=["image","pdf","audio","video","csv","model3d"];function Rt(t){return/^(https?:|data:)/.test(t)}function Dt(t){if(t.type==="file"||t.type==="diff")return t.sourcePath;if(t.type==="markdown")return t.sourcePath??null;if(Nt.includes(t.type)){const n=t.src;return Rt(n)?null:n}return null}function It(t){return t.type==="file"||t.type==="diff"||t.type==="markdown"}function zt(t){const n=/^(?:in )?(.+?)['’]s /.exec(t.sourceLabel??"");return(n==null?void 0:n[1])??"another member"}function Mt(t){const n=Dt(t.content);if(n===null)return{kind:"inline"};if(t.treeKind==="room-main"||t.treeKind===void 0)return It(t.content)?{kind:"room-file",sourcePath:n}:{kind:"elsewhere",sourcePath:n,sentence:"This file is in the room’s files. Open it from Files in the Room tab."};if(t.content.type==="diff"&&t.treeKind==="worktree"&&typeof t.aheadOfMain=="number"&&t.aheadOfMain>0)return{kind:"worktree-diff",sourcePath:n,content:t.content};if(t.content.type==="markdown")return{kind:"inline"};const s=zt(t);return{kind:"elsewhere",sourcePath:n,sentence:`${s.charAt(0).toUpperCase()}${s.slice(1)}’s project isn’t open to you. Ask them to share it, or open your copy.`}}function St(t){return t.title||t.contentType}function Tt({roomId:t,document:n,onUpdate:s}){const r=Mt(n);return r.kind==="worktree-diff"?e.jsx(Je,{roomId:t,content:r.content,documentId:n.id,authorId:n.authorId}):r.kind!=="inline"?e.jsx(Ct,{roomId:t,document:n,reading:r}):n.content.type==="markdown"?e.jsx(et,{roomId:t,document:n,content:n.content,onSave:s}):e.jsx(se,{documentId:n.id,content:n.content,onContentChange:()=>{}})}function xe({roomId:t,view:n}){var J;const s=y(o=>o.roomCanvasDocuments[t]),r=y(o=>{var l;return((l=o.roomCanvasActive[t])==null?void 0:l[n])??null}),i=y(o=>{var l;return(l=o.roomCanvasUnread[t])==null?void 0:l[n]}),p=y(o=>o.activateRoomCanvasDocument),u=y(o=>o.clearRoomCanvasUnread),d=y(o=>o.roomCanvasPresence[t]),a=Qe(t),g=Ye(t),m=P(),x=((J=g.data)==null?void 0:J.viewerAuthorId)??null,j=y(o=>o.roomCanvasEditing[t]??null),c=Ke(o=>o.openThread),[R,T]=f.useState(!1),b=n==="browser"?t:null,{following:F,follow:E,stop:L}=at(b),k=We(b),D=f.useRef(null),A=f.useCallback(async(o,l)=>{try{return await l(),!0}catch(z){return ee.error(o,{description:te(z)}),!1}},[]),I=f.useMemo(()=>qe(s??[],n),[s,n]),v=I.find(o=>o.id===r)??null,W=(i==null?void 0:i.length)??0;f.useEffect(()=>{W>0&&u(t,n)},[W,u,t,n]);const ve=f.useMemo(()=>{var G;const o=new Map(((G=g.data)==null?void 0:G.members.map(h=>[h.author.id,h.author]))??[]),l=h=>({id:h.id,displayName:h.displayName,kind:h.kind,...h.emoji?{emoji:h.emoji}:{},...h.color?{color:h.color}:{},...h.imageUrl?{imageUrl:h.imageUrl}:{}}),z=new Map;for(const[h,M]of Object.entries(d??{})){if(h===x)continue;const N=o.get(h);if(!N)continue;const Z=z.get(M);Z?Z.push(l(N)):z.set(M,[l(N)])}return I.map(h=>{const M=o.get(h.authorId),N=z.get(h.id);return{id:h.id,sourceLabel:St(h),contentType:h.content.type,pinned:h.pinned,unread:(i==null?void 0:i.includes(h.id))??!1,...M?{author:l(M)}:{},...N?{watchers:N}:{}}})},[I,g.data,i,d,x]);Xe(t,(v==null?void 0:v.id)??null);const ge=f.useMemo(()=>{var o;return(((o=g.data)==null?void 0:o.members)??[]).map(l=>l.author).filter(l=>l.kind==="human"&&l.id!==x).map(l=>({id:l.id,displayName:l.displayName,kind:l.kind,emoji:l.emoji,color:l.color,imageUrl:l.imageUrl}))},[g.data,x]),be=y(o=>{if(r===null)return;const l=o.browserHistories[r];return l?l.stack[l.cursor]:void 0}),je=f.useCallback(()=>{var o;return((o=D.current)==null?void 0:o.scrollTop)??0},[]),ke=f.useCallback(o=>{const l=D.current;return l?(l.addEventListener("scroll",o,{passive:!0}),()=>l.removeEventListener("scroll",o)):()=>{}},[]);pt({roomId:b,viewerAuthorId:x,documentId:r,url:be,readScrollY:je,subscribe:ke});const q=f.useMemo(()=>I.map(o=>o.id).join("\0"),[I]);f.useEffect(()=>{if(!(k===null||j!==null)&&q.split("\0").includes(k.documentId)){if(k.documentId!==r){p(t,k.documentId);return}k.scrollY!==void 0&&D.current&&(D.current.scrollTop=k.scrollY)}},[k,j,r,q,p,t]);const we=f.useCallback(()=>{v!==null&&(T(!0),m.discussCanvasDocument(t,v.id).then(o=>c(t,o.threadRootEntryId,!1)).catch(o=>{ee.error("Couldn’t start a discussion.",{description:te(o)})}).finally(()=>T(!1)))},[v,m,t,c]),Ce=Y(n);return e.jsxs(e.Fragment,{children:[e.jsx(pe,{view:n,documents:ve,activeDocumentId:r,onActivate:o=>p(t,o),onClose:o=>void A("Couldn’t take that off the canvas.",()=>a.close(o)),onPin:(o,l)=>void A(l?"Couldn’t pin that.":"Couldn’t unpin that.",()=>a.pin(o,l))}),e.jsx(wt,{sourceLabel:v==null?void 0:v.sourceLabel,people:n==="browser"?ge:[],following:F,onFollow:E,onStopFollowing:L,onDiscuss:v===null?void 0:we,discussing:R}),e.jsx("div",{id:Ce,ref:D,tabIndex:-1,className:"min-h-0 flex-1 overflow-auto focus-visible:outline-none",...v?{role:"tabpanel","aria-labelledby":K(v.id)}:{},children:v?e.jsx(he,{documentId:v.id,children:e.jsx(Tt,{roomId:t,document:v,onUpdate:(o,l)=>A("Couldn’t save that for the room.",()=>a.update(o,l))})},v.id):e.jsx(fe,{view:n,onAction:o=>void A("Couldn’t put that on the canvas.",()=>a.open(o))})})]})}function ye({view:t}){const n=y(c=>c.openDocuments),s=y(c=>t==="browser"?c.activeBrowserDocumentId:c.activeCanvasDocumentId),r=y(c=>c.activateCanvasDocument),i=y(c=>c.closeCanvasDocument),p=y(c=>c.setDocumentContent),u=y(c=>c.openCanvasDocument),d=y(c=>c.applyHeldUpdate),a=y(c=>c.discardHeldUpdate),g=Ge(n,t),m=g.find(c=>c.id===s)??null,x=g.map(c=>({id:c.id,sourceLabel:c.sourceLabel,contentType:c.content.type})),j=Y(t);return e.jsxs(e.Fragment,{children:[e.jsx(pe,{view:t,documents:x,activeDocumentId:s,onActivate:r,onClose:i}),(m==null?void 0:m.heldUpdate)&&e.jsx(jt,{onReload:()=>d(m.id),onKeepMine:()=>a(m.id)}),e.jsx("div",{id:j,tabIndex:-1,className:"min-h-0 flex-1 overflow-auto focus-visible:outline-none",...m?{role:"tabpanel","aria-labelledby":K(m.id)}:{},children:m?e.jsx(he,{documentId:m.id,children:e.jsx(se,{documentId:m.id,content:m.content,onContentChange:c=>p(m.id,c)})},m.id):e.jsx(fe,{view:t,onAction:u})})]})}function Zt(){const t=y(n=>n.roomCanvasLiveRoomId);return e.jsx("div",{"data-slot":"canvas",className:"flex h-full flex-col overflow-hidden",children:t?e.jsx(xe,{roomId:t,view:"canvas"}):e.jsx(ye,{view:"canvas"})})}function Qt(){const t=y(n=>n.roomCanvasLiveRoomId);return e.jsx("div",{"data-slot":"browser",className:"flex h-full flex-col overflow-hidden",children:t?e.jsx(xe,{roomId:t,view:"browser"}):e.jsx(ye,{view:"browser"})})}export{Qt as BrowserContent,Zt as CanvasContent,tn as CanvasWidgetContent,nn as resetSessionCanvasImport,sn as useDevtoolsBridge,an as useDocChannel,on as useSessionCanvas};