dorkos 0.118.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.
Files changed (273) hide show
  1. package/dist/bin/cli.js +3588 -3000
  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-BOS59p1y.js → AboutPage-Y8O56Cz5.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-DOmV85tr.js → ActivityErrorState-DlROxqde.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-DbsBpb6N.js → ActivityPage-BdV90CV2.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-B1ZeL7Jb.js → ActivityRow-B5yiD_uD.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-XPLZ-NAi.js → AdapterIcon-Dyq92Eup.js} +1 -1
  9. package/dist/client/assets/AdapterSetupWizard-D9tqz7Hl.js +2 -0
  10. package/dist/client/assets/{AgentOptionRow-C15RQsub.js → AgentOptionRow-BeRqDo7c.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-CydNJYi_.js → AgentPicker-BRyYVJZu.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-BBSbluBs.js → AgentRequestCard-xX6fAKgO.js} +4 -4
  13. package/dist/client/assets/AppearancePage-DKF9BqRt.js +1 -0
  14. package/dist/client/assets/{ApplyToOverridesDialog-Cv3KEf7T.js → ApplyToOverridesDialog-CPvtr_-f.js} +1 -1
  15. package/dist/client/assets/AttentionSignalRow-vBfioH1A.js +1 -0
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-Re2CfOlC.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-B50zNtwB.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-8xnsM47D.js → BindingDialog-CSNjws3F.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-DUDSNxlM.js → BlintzCanvas-ClOKWzws.js} +80 -79
  19. package/dist/client/assets/{CanvasCsvContent-D697P3sa.js → CanvasCsvContent-0Mb7uOuA.js} +6 -6
  20. package/dist/client/assets/CanvasFileContent-B_8zsIas.js +2 -0
  21. package/dist/client/assets/CanvasModel3dContent-UokbHY9i.js +2 -0
  22. package/dist/client/assets/{ChatAppsOff-CFEmPGm1.js → ChatAppsOff-CLRB0YU5.js} +1 -1
  23. package/dist/client/assets/{CodeMirrorDiff-B7VUevZG.js → CodeMirrorDiff-B4uFJD6g.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorEditor-BX1bJlnT.js → CodeMirrorEditor-rYOrBAZc.js} +1 -1
  25. package/dist/client/assets/{CommitmentList-CDocwl5K.js → CommitmentList-i-IZ4gbr.js} +1 -1
  26. package/dist/client/assets/{CommitmentsPage-Cr_MvU96.js → CommitmentsPage-ChO1JkrE.js} +1 -1
  27. package/dist/client/assets/{ComputerResourceView-CJMUZPDy.js → ComputerResourceView-pLuD2ie6.js} +1 -1
  28. package/dist/client/assets/{ComputerViewer-BA-9lBBN.js → ComputerViewer-D7tPmpY5.js} +1 -1
  29. package/dist/client/assets/{ConnectionAccessLists-BLLpxhn3.js → ConnectionAccessLists-D6VH1vX3.js} +1 -1
  30. package/dist/client/assets/{ConnectionsPage-BWVfAPd1.js → ConnectionsPage-7x5olD9q.js} +2 -2
  31. package/dist/client/assets/{ConventionPage-EK3WUWVa.js → ConventionPage-BTYLWw6p.js} +1 -1
  32. package/dist/client/assets/{ExtensionPageRoute-C9hsJNX2.js → ExtensionPageRoute-A9AdBBbw.js} +2 -2
  33. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-BeyAgBfh.js → FloatingTanStackRouterDevtools-CqogiFob-ayv0yz1C.js} +1 -1
  34. package/dist/client/assets/HandlePage-BdRWgke2.js +1 -0
  35. package/dist/client/assets/{HeartbeatPage-DfbNenFv.js → HeartbeatPage-Dh6W9Qg5.js} +1 -1
  36. package/dist/client/assets/KeyEntry-owhPGtw3.js +1 -0
  37. package/dist/client/assets/{LexicalField-DC_6Z-Ye.js → LexicalField-B1NFMLD6.js} +2 -2
  38. package/dist/client/assets/{ManagesPage-CYnGvNM2.js → ManagesPage-BAnBmBdo.js} +1 -1
  39. package/dist/client/assets/{Marketplace-CWiiq8of.js → Marketplace-67maxdwz.js} +2 -2
  40. package/dist/client/assets/{MarketplaceSourcesView-DF3cHMR0.js → MarketplaceSourcesView-CzPBNJJj.js} +1 -1
  41. package/dist/client/assets/{McpAppFrame-D5Muf5Sf.js → McpAppFrame-CuObpQTg.js} +2 -2
  42. package/dist/client/assets/McpSigninBody-B-ayj6bQ.js +1 -0
  43. package/dist/client/assets/{Model3dViewer-C9ODHy5I.js → Model3dViewer-DRVqxazk.js} +1 -1
  44. package/dist/client/assets/NamePage-DyH8JAqT.js +1 -0
  45. package/dist/client/assets/NewDirectMessageMenu-B3DxayR2.js +1 -0
  46. package/dist/client/assets/{NotificationsPage-ldulSpVu.js → NotificationsPage-BavEo7VZ.js} +1 -1
  47. package/dist/client/assets/{OpenMeshSwitch-BfEvR7s7.js → OpenMeshSwitch-BwkX2Toa.js} +2 -2
  48. package/dist/client/assets/{OperatorIdentityForm-ZM_zDnjM.js → OperatorIdentityForm-CtWgz2yi.js} +1 -1
  49. package/dist/client/assets/{PermissionHistory-liL_pJDR.js → PermissionHistory-DvM0F2bS.js} +1 -1
  50. package/dist/client/assets/{PermissionsPage-DFMjDQby.js → PermissionsPage-D1DJHezV.js} +1 -1
  51. package/dist/client/assets/{PersonalityPopover-CITFG0_N.js → PersonalityPopover-BV-9wfIl.js} +1 -1
  52. package/dist/client/assets/PhotoPage-BHvRQnex.js +1 -0
  53. package/dist/client/assets/{PresetPicker-CpYu7nb6.js → PresetPicker-BOQKgYAK.js} +2 -2
  54. package/dist/client/assets/{PreviewRefusedNotice-CF3bzfSe.js → PreviewRefusedNotice-BdhUln2h.js} +1 -1
  55. package/dist/client/assets/{ProfileFields-D4p6bhIa.js → ProfileFields-DFRnRR38.js} +1 -1
  56. package/dist/client/assets/{ProfilePanelContainer-XCuCnd1t.js → ProfilePanelContainer-CkxX9Dps.js} +1 -1
  57. package/dist/client/assets/{ProfileRolePicker-qRf3DSdk.js → ProfileRolePicker-BSYi_luB.js} +1 -1
  58. package/dist/client/assets/PromptSuggestionChips-r08GqBH1.js +1 -0
  59. package/dist/client/assets/{ReportsToPopover-Cu-Cnzij.js → ReportsToPopover-BcsM5Eia.js} +1 -1
  60. package/dist/client/assets/{RoomSurface-CsAifwp2.js → RoomSurface-DaRCf4og.js} +7 -7
  61. package/dist/client/assets/{RoomsPage-DZYMR2in.js → RoomsPage-CQqsdVvB.js} +1 -1
  62. package/dist/client/assets/RunsOnPopover-DFb4xEhP.js +1 -0
  63. package/dist/client/assets/RuntimeConnectFlow-pKFJlNSJ.js +1 -0
  64. package/dist/client/assets/RuntimeSetupDialog-DvBJbrmj.js +1 -0
  65. package/dist/client/assets/{SessionsPage-thndqcpY.js → SessionsPage-CGgnEPh7.js} +1 -1
  66. package/dist/client/assets/SettingsDialog-D0cmzjrH.js +12 -0
  67. package/dist/client/assets/{SkillsPage-CmXyAw3J.js → SkillsPage-DDoPlsn2.js} +1 -1
  68. package/dist/client/assets/TaskDialogWrapper-DoIVzbKU.js +1 -0
  69. package/dist/client/assets/TasksEmptyState-B68O6dnT.js +3 -0
  70. package/dist/client/assets/{TasksPage-DGNXrDAk.js → TasksPage-BsBDphim.js} +1 -1
  71. package/dist/client/assets/{TeamComputerEntry-CIfFRo6-.js → TeamComputerEntry-CoQ4EsDm.js} +1 -1
  72. package/dist/client/assets/{ToolsPage-BKZkSarf.js → ToolsPage-Cl1aOpev.js} +2 -2
  73. package/dist/client/assets/{TopologyGraph-og2tlLj7.js → TopologyGraph-D3CxaLGX.js} +2 -2
  74. package/dist/client/assets/TourHost-4O6TJzc-.js +1 -0
  75. package/dist/client/assets/{UnlinkDialog-BTYC_Sit.js → UnlinkDialog-DIMY60Fi.js} +1 -1
  76. package/dist/client/assets/WidgetErrorCard-CzWw_SPD.js +108 -0
  77. package/dist/client/assets/_shell-BRH2Y-U-.js +80 -0
  78. package/dist/client/assets/{_shell._home-CP7HQ7Cs.js → _shell._home-DG3Vw7S5.js} +1 -1
  79. package/dist/client/assets/_shell._home.activity-COI96oAO.js +1 -0
  80. package/dist/client/assets/_shell._home.index-CTwsTjcQ.js +3 -0
  81. package/dist/client/assets/_shell._home.tasks-DOVoPYaf.js +1 -0
  82. package/dist/client/assets/{_shell._home.workspaces-Cdsw2-jI.js → _shell._home.workspaces-ApZhnjwy.js} +1 -1
  83. package/dist/client/assets/_shell.channels-CRkJHU5R.js +10 -0
  84. package/dist/client/assets/{_shell.connections-sF5vS-Lm.js → _shell.connections-bhAK3jnE.js} +1 -1
  85. package/dist/client/assets/{_shell.feedback-requests-hu21WXyA.js → _shell.feedback-requests-k43R8-rW.js} +2 -2
  86. package/dist/client/assets/_shell.marketplace-DGN_IdZY.js +1 -0
  87. package/dist/client/assets/_shell.marketplace_.sources-2YMpLInp.js +1 -0
  88. package/dist/client/assets/_shell.session-D871zZl3.js +61 -0
  89. package/dist/client/assets/{_shell.team-raG7wRwF.js → _shell.team-DHCM1QoO.js} +6 -6
  90. package/dist/client/assets/_shell.x._extensionId-D3-n5IRW.js +1 -0
  91. package/dist/client/assets/_shell.x._extensionId_._-D3-n5IRW.js +1 -0
  92. package/dist/client/assets/{access-copy-CcG3wpsK.js → access-copy-BVzi1REx.js} +1 -1
  93. package/dist/client/assets/{banner-nt7EFLr6.js → banner-3xXXsU5J.js} +2 -2
  94. package/dist/client/assets/{card-B_zeSZiU.js → card-Bt6IU-Bh.js} +1 -1
  95. package/dist/client/assets/{command-CDfYcQI6.js → command-CWokzKS1.js} +1 -1
  96. package/dist/client/assets/{cpu-D861493C.js → cpu-BzByzE9V.js} +1 -1
  97. package/dist/client/assets/{empty-state-CQ1oXLFa.js → empty-state-BgnQDiMZ.js} +1 -1
  98. package/dist/client/assets/{execution-config-on8kVvnW.js → execution-config-D5-SEt2t.js} +1 -1
  99. package/dist/client/assets/{file-Bwo21EVR.js → file-VHDTQub2.js} +1 -1
  100. package/dist/client/assets/{file-exclamation-point-BedYLbs2.js → file-exclamation-point-DbWvGys0.js} +1 -1
  101. package/dist/client/assets/{file-text-BTj3WyHS.js → file-text-BAhi2zct.js} +1 -1
  102. package/dist/client/assets/{find-latest-widget-fence-B8fM5rIs.js → find-latest-widget-fence-Z0HPVqeK.js} +2 -2
  103. package/dist/client/assets/{form-lSBktWDn.js → form-Blrb1xBU.js} +1 -1
  104. package/dist/client/assets/{format-cron-W7G0In8e.js → format-cron-lKWqEmle.js} +1 -1
  105. package/dist/client/assets/{git-branch-CKlZ81Bg.js → git-branch-BObm8Rlz.js} +1 -1
  106. package/dist/client/assets/{heart-BSVjeGLA.js → heart-Du7nuefC.js} +1 -1
  107. package/dist/client/assets/{highlighted-body-KPVGNVTW-Ct8vmPkj.js → highlighted-body-KPVGNVTW-B_GO7V1P.js} +1 -1
  108. package/dist/client/assets/image-lightbox-BZ1TV3mN.js +1 -0
  109. package/dist/client/assets/image-off-hnjcBIzN.js +6 -0
  110. package/dist/client/assets/{index-6pYWHTBx.js → index-1I8qHZDt.js} +1 -1
  111. package/dist/client/assets/{index-CeZ13dpH.js → index-4GC2fkeO.js} +1 -1
  112. package/dist/client/assets/index-4PAAWURd.js +1 -0
  113. package/dist/client/assets/{index-CaKe9EaL.js → index-B0tAedq7.js} +1 -1
  114. package/dist/client/assets/{index-BVedye9r.js → index-BP68J4pb.js} +1 -1
  115. package/dist/client/assets/{index-gbNK9zj5.js → index-BUOcbPfv.js} +3 -3
  116. package/dist/client/assets/{index-DShrfGYE.js → index-BVKXIbLh.js} +1 -1
  117. package/dist/client/assets/{index-CeeHkxIC.js → index-BaRQVgiN.js} +1 -1
  118. package/dist/client/assets/{index-B-C_A3lP.js → index-BeVbHOwX.js} +2 -2
  119. package/dist/client/assets/{index-KaSZDcGa.js → index-BgzgdvDn.js} +1 -1
  120. package/dist/client/assets/{index-C0TknRcB.js → index-Bm0z9mHt.js} +1 -1
  121. package/dist/client/assets/{index-bvqpTKLz.js → index-BnNTKsbt.js} +1 -1
  122. package/dist/client/assets/{index-DjI5vH_U.js → index-BtbZpz4b.js} +1 -1
  123. package/dist/client/assets/{index-D7kjWnlR.js → index-BvjuGXcS.js} +1 -1
  124. package/dist/client/assets/{index-7Fd_Eeda.js → index-C60RrnTd.js} +1 -1
  125. package/dist/client/assets/{index-CQrM6oF9.js → index-CBm3whA-.js} +1 -1
  126. package/dist/client/assets/{index-C96eZrOR.js → index-CCg7yRe1.js} +1 -1
  127. package/dist/client/assets/{index-Dh8D-3Sb.js → index-CQCN6kWR.js} +1 -1
  128. package/dist/client/assets/index-Cdyszxoa.js +17 -0
  129. package/dist/client/assets/index-Ch-ON5gw.js +1 -0
  130. package/dist/client/assets/{index-UNxDevG6.js → index-Ci74HAFs.js} +1 -1
  131. package/dist/client/assets/{index-Dq4bx2np.js → index-CiQxS4Bn.js} +1 -1
  132. package/dist/client/assets/{index-DEOzZEcu.js → index-CqoIjNC2.js} +3 -3
  133. package/dist/client/assets/index-CrflCTqO.css +1 -0
  134. package/dist/client/assets/index-D5TZCu8j.js +1 -0
  135. package/dist/client/assets/{index-CNnnXzI4.js → index-D6y4WeTi.js} +1 -1
  136. package/dist/client/assets/{index-BjTJ6p2k.js → index-DB8TDRSm.js} +1 -1
  137. package/dist/client/assets/index-DCOOlbEt.js +1 -0
  138. package/dist/client/assets/index-DHYvT3nr.js +23 -0
  139. package/dist/client/assets/{index-GINKfP45.js → index-DRea_Gi0.js} +1 -1
  140. package/dist/client/assets/index-Dain_3cO.js +1 -0
  141. package/dist/client/assets/index-Dc5cpBoO.js +1023 -0
  142. package/dist/client/assets/{index-DOuj--Yi.js → index-Df7a-2P5.js} +1 -1
  143. package/dist/client/assets/{index-BHt5KOZA.js → index-DkhM0fDi.js} +1 -1
  144. package/dist/client/assets/{index-CCWSicoJ.js → index-DoMJUxt_.js} +1 -1
  145. package/dist/client/assets/{index-09EqfhW0.js → index-EZHlD3gf.js} +1 -1
  146. package/dist/client/assets/{index-SdTS2P3x.js → index-HxT_wkaZ.js} +1 -1
  147. package/dist/client/assets/{index-RFknyjho.js → index-Lh82Rz5C.js} +1 -1
  148. package/dist/client/assets/{index-DgRqCuFH.js → index-WxtASL5_.js} +1 -1
  149. package/dist/client/assets/{index-CF73kwtO.js → index-_5Dn0bFm.js} +17 -17
  150. package/dist/client/assets/{index-V_EcsvR4.js → index-aXm0xP_2.js} +1 -1
  151. package/dist/client/assets/{index-DeNVXdMl.js → index-ox3ce99A.js} +1 -1
  152. package/dist/client/assets/{index-BdrbKBym.js → index-r_O6CmXY.js} +1 -1
  153. package/dist/client/assets/index.esm-DXsF3Bua.js +41 -0
  154. package/dist/client/assets/{inline-code-Beal0546.js → inline-code-DAEoWvTf.js} +1 -1
  155. package/dist/client/assets/{layers-DUfQMkMa.js → layers-CsM34LRv.js} +1 -1
  156. package/dist/client/assets/{lightbulb-DTSn-mNB.js → lightbulb-B8JAixK_.js} +1 -1
  157. package/dist/client/assets/{link-2-CHr2s4m2.js → link-2-Csc6okl3.js} +1 -1
  158. package/dist/client/assets/{list-runtime-types-CwEp9Lg4.js → list-runtime-types-DQrZNB7x.js} +1 -1
  159. package/dist/client/assets/markdown-content-DPc7aD1j.js +1 -0
  160. package/dist/client/assets/{mention-pill-XE9mX9G8.js → mention-pill-8P_w4muj.js} +1 -1
  161. package/dist/client/assets/{message-square-off-DUkKSITA.js → message-square-off-D5DXu2cY.js} +1 -1
  162. package/dist/client/assets/{more-details-3dDtVYc6.js → more-details-DEeu2M-p.js} +1 -1
  163. package/dist/client/assets/{owner-notice-BKmuWRki.js → owner-notice-BW4k1ycg.js} +1 -1
  164. package/dist/client/assets/{package-DM7e-GVa.js → package-BSwwAFVm.js} +1 -1
  165. package/dist/client/assets/{page-container-nGewlFnj.js → page-container-CjPUNtNw.js} +1 -1
  166. package/dist/client/assets/{paperclip-BgXlvBBI.js → paperclip-DQaRz34E.js} +1 -1
  167. package/dist/client/assets/{path-input-RzOiTE45.js → path-input-CgXSYNZn.js} +1 -1
  168. package/dist/client/assets/plug-BaUXMfIl.js +11 -0
  169. package/dist/client/assets/primer-trigger-DHB0vilf.js +3 -0
  170. package/dist/client/assets/{profile-errors-CFZN0y6a.js → profile-errors-JW2XTgia.js} +1 -1
  171. package/dist/client/assets/{progress-Cvnh4Qcr.js → progress-CErAw8zp.js} +1 -1
  172. package/dist/client/assets/{query-error-state-CfJfYpa3.js → query-error-state-BFWpEXsl.js} +1 -1
  173. package/dist/client/assets/{radio-BOcAjXVO.js → radio-Bkx216ga.js} +1 -1
  174. package/dist/client/assets/registry-Ce1VRIS3.js +1 -0
  175. package/dist/client/assets/{relay-trace-schemas-Cvb7RGjg.js → relay-trace-schemas-DiZj_AFV.js} +2 -2
  176. package/dist/client/assets/{room-files-source-B-ZJA_NM.js → room-files-source-BilZvdpf.js} +2 -2
  177. package/dist/client/assets/{rotate-ccw-clock-vRQP4hWE.js → rotate-ccw-clock-D_SO1stN.js} +1 -1
  178. package/dist/client/assets/{rotate-cw-DD2nOAQ-.js → rotate-cw-C68kM23F.js} +1 -1
  179. package/dist/client/assets/{scroll-area-DTvv8_DS.js → scroll-area-CVWFUmJV.js} +1 -1
  180. package/dist/client/assets/{search-x-Ig8nk-DU.js → search-x-BTFVvyA2.js} +1 -1
  181. package/dist/client/assets/{shield-check-DjnWx7aT.js → shield-check-Dpxi6WqO.js} +1 -1
  182. package/dist/client/assets/{shield-x-BrtccpM7.js → shield-x-CdCCgyXk.js} +1 -1
  183. package/dist/client/assets/signed-in-BxAnDo0S.js +1 -0
  184. package/dist/client/assets/{soul-file-C5mMIP4v.js → soul-file-CRfKVJX3.js} +1 -1
  185. package/dist/client/assets/{table-Rll_Jxd8.js → table-BL3xUC41.js} +1 -1
  186. package/dist/client/assets/{terminal-Bjss9oke.js → terminal-u_UCRzSM.js} +1 -1
  187. package/dist/client/assets/{trust-posture-Dmk2WlZv.js → trust-posture-B-v4BWo7.js} +1 -1
  188. package/dist/client/assets/{unplug-BHYMc4ND.js → unplug-CFbC-L5W.js} +1 -1
  189. package/dist/client/assets/{unverified-catalog-notice-BmIVQhjE.js → unverified-catalog-notice-ZUqscVFM.js} +1 -1
  190. package/dist/client/assets/{use-adapter-catalog-RzlxX2Wa.js → use-adapter-catalog-Z4MDWZAZ.js} +1 -1
  191. package/dist/client/assets/{use-bindings-Ds_MAC67.js → use-bindings-CsTavmf-.js} +1 -1
  192. package/dist/client/assets/{use-composer-prefs-ckA_eZQS.js → use-composer-prefs-BY2dTvep.js} +1 -1
  193. package/dist/client/assets/{use-connector-management-oEqok0QG.js → use-connector-management-L9l21yTi.js} +1 -1
  194. package/dist/client/assets/{use-deep-link-scroll-Clu9Sz2-.js → use-deep-link-scroll-Bn2ZUtDY.js} +1 -1
  195. package/dist/client/assets/{use-delete-binding-B_zHPcy8.js → use-delete-binding-DLvdHtPD.js} +1 -1
  196. package/dist/client/assets/{use-dev-links-BO7-IHe9.js → use-dev-links-DFvL8mIg.js} +1 -1
  197. package/dist/client/assets/{use-external-adapter-catalog-7lRWtn7J.js → use-external-adapter-catalog-Be57G4tz.js} +1 -1
  198. package/dist/client/assets/{use-full-activity-feed-DrcMJL9m.js → use-full-activity-feed-Cp3lYXdi.js} +1 -1
  199. package/dist/client/assets/use-is-below-desktop-DmekpHAF.js +1 -0
  200. package/dist/client/assets/use-is-hub-el7LTkg3.js +1 -0
  201. package/dist/client/assets/{use-jump-back-in-Dav0ttfs.js → use-jump-back-in-ChH1FSEK.js} +3 -3
  202. package/dist/client/assets/{use-local-browser-CtltDlof.js → use-local-browser-zA8gMhcC.js} +1 -1
  203. package/dist/client/assets/{use-mesh-topology-CiS9XQsg.js → use-mesh-topology-CvoD-L1G.js} +1 -1
  204. package/dist/client/assets/{use-mounted-ref-DuK0vm9N.js → use-mounted-ref-Ch0wqQry.js} +1 -1
  205. package/dist/client/assets/{use-notification-prefs-Chf4UNbq.js → use-notification-prefs-DeR05zhp.js} +1 -1
  206. package/dist/client/assets/{use-panel-tab-placements-C5y831aL.js → use-panel-tab-placements-DdjrmaoK.js} +1 -1
  207. package/dist/client/assets/use-pending-read-DBpte0GI.js +1 -0
  208. package/dist/client/assets/use-personality-commit-qQfISO2-.js +1 -0
  209. package/dist/client/assets/use-promo-activation-CwGoE7b-.js +11 -0
  210. package/dist/client/assets/{use-promo-dismissals-8-hGry_v.js → use-promo-dismissals-BBqVN4hx.js} +1 -1
  211. package/dist/client/assets/{use-pulse-freshness-CWudgqNc.js → use-pulse-freshness-BKW7tjvX.js} +1 -1
  212. package/dist/client/assets/{use-relay-config-8mXfegbP.js → use-relay-config-D5iieBXl.js} +1 -1
  213. package/dist/client/assets/{use-room-follow-claim-DgEWUsoP.js → use-room-follow-claim-BwZh2ZPH.js} +1 -1
  214. package/dist/client/assets/{use-roving-tab-list-CXy0Hv5J.js → use-roving-tab-list-Ct7yDAUE.js} +1 -1
  215. package/dist/client/assets/use-session-canvas-CJrfZrYG.js +24 -0
  216. package/dist/client/assets/{use-session-diagnostics-LKiXub1H.js → use-session-diagnostics-Dn-Wnyhh.js} +4 -4
  217. package/dist/client/assets/{use-unclaimed-chats-Cr812OTh.js → use-unclaimed-chats-M-c5tjXH.js} +1 -1
  218. package/dist/client/assets/use-update-config-DhlbZldm.js +1 -0
  219. package/dist/client/assets/{useMutationState-BnXJ-0A_.js → useMutationState-Cd-VqRAv.js} +1 -1
  220. package/dist/client/index.html +2 -2
  221. package/dist/drizzle/20261017113300_session_public_computer.sql +1 -0
  222. package/dist/drizzle/meta/20261017113300_snapshot.json +14020 -0
  223. package/dist/drizzle/meta/_journal.json +7 -0
  224. package/dist/server/index.js +128843 -121508
  225. package/dist/server/index.js.map +2 -2
  226. package/package.json +5 -5
  227. package/dist/client/assets/AdapterSetupWizard-DfNJz5SD.js +0 -2
  228. package/dist/client/assets/AppearancePage-8ALtWGZZ.js +0 -1
  229. package/dist/client/assets/AttentionSignalRow-c-u1cE1l.js +0 -1
  230. package/dist/client/assets/CanvasFileContent-BJ39nHuR.js +0 -2
  231. package/dist/client/assets/CanvasModel3dContent-TaunlbT2.js +0 -2
  232. package/dist/client/assets/HandlePage-CfeEzfDk.js +0 -1
  233. package/dist/client/assets/KeyEntry-CEbe5Xvn.js +0 -6
  234. package/dist/client/assets/McpSigninBody-CLZFoQgC.js +0 -1
  235. package/dist/client/assets/NamePage-B4YrH-ug.js +0 -1
  236. package/dist/client/assets/NewDirectMessageMenu-Co9Uv5t5.js +0 -1
  237. package/dist/client/assets/PhotoPage-DYDJPBfu.js +0 -1
  238. package/dist/client/assets/PromptSuggestionChips-CUwLk83h.js +0 -1
  239. package/dist/client/assets/RunsOnPopover-CTBEMstG.js +0 -1
  240. package/dist/client/assets/RuntimeConnectFlow-DY4sjRgN.js +0 -1
  241. package/dist/client/assets/RuntimeSetupDialog-DJu_-eNa.js +0 -1
  242. package/dist/client/assets/SettingsDialog-CKmcLF66.js +0 -12
  243. package/dist/client/assets/TaskDialogWrapper-Boxr_hgF.js +0 -1
  244. package/dist/client/assets/TasksEmptyState-CQf1YroK.js +0 -3
  245. package/dist/client/assets/TourHost-DzEG8bZP.js +0 -1
  246. package/dist/client/assets/WidgetErrorCard-CT4sl_T6.js +0 -108
  247. package/dist/client/assets/_shell-BDlkTSin.js +0 -90
  248. package/dist/client/assets/_shell._home.activity-DGXa_ouh.js +0 -1
  249. package/dist/client/assets/_shell._home.index-D5kOfqnL.js +0 -3
  250. package/dist/client/assets/_shell._home.tasks-BSMD-atB.js +0 -1
  251. package/dist/client/assets/_shell.channels-B4VQ7tiZ.js +0 -10
  252. package/dist/client/assets/_shell.marketplace-B-T-ALMv.js +0 -1
  253. package/dist/client/assets/_shell.marketplace_.sources-Chu-9-Vi.js +0 -1
  254. package/dist/client/assets/_shell.session-Bz6wvDBp.js +0 -66
  255. package/dist/client/assets/_shell.x._extensionId-DSqMu6Ey.js +0 -1
  256. package/dist/client/assets/_shell.x._extensionId_._-DSqMu6Ey.js +0 -1
  257. package/dist/client/assets/index-BDCqg2iM.css +0 -1
  258. package/dist/client/assets/index-C8-dwIPp.js +0 -1018
  259. package/dist/client/assets/index-CAv_6Po4.js +0 -1
  260. package/dist/client/assets/index-ClELcMX1.js +0 -1
  261. package/dist/client/assets/index-CrEyJcPM.js +0 -17
  262. package/dist/client/assets/index-DQJM5kjJ.js +0 -1
  263. package/dist/client/assets/index-DURo45pu.js +0 -1
  264. package/dist/client/assets/index-sfSRuIXm.js +0 -23
  265. package/dist/client/assets/markdown-content-GoymYcRL.js +0 -1
  266. package/dist/client/assets/primer-trigger-B60oEVY7.js +0 -3
  267. package/dist/client/assets/registry-B9wsS5De.js +0 -1
  268. package/dist/client/assets/use-is-below-desktop-BhzXZsbH.js +0 -1
  269. package/dist/client/assets/use-pending-read-i6TB4gGQ.js +0 -1
  270. package/dist/client/assets/use-personality-commit-KKJ2ve1V.js +0 -1
  271. package/dist/client/assets/use-promo-activation-D45fuXdT.js +0 -11
  272. package/dist/client/assets/use-session-canvas-CUvHGgMf.js +0 -64
  273. package/dist/client/assets/use-update-config-Bad4g6mB.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c5 as D,cE as _,r as n,W as q}from"./index-C8-dwIPp.js";const C="asc";function L(t){if(!t)return{field:"",direction:C};const a=t.indexOf(":");if(a===-1)return{field:t,direction:C};const r=t.slice(0,a),s=t.slice(a+1);return{field:r,direction:s==="desc"?"desc":"asc"}}function z(t,a){return Object.fromEntries(Object.entries(t).map(([r,s])=>{const i=a[r];return[r,i!==void 0?s.deserialize(i):s.defaultValue]}))}function N(t,a){const r=t.serialize(a),s=t.serialize(t.defaultValue);return r===s?void 0:r}function $(t,a={}){const{debounce:r={}}=a,s=D(),i=_({strict:!1}),{definitions:u,defaultValues:k}=t,d=z(u,i),[O,f]=n.useState(d),x=n.useRef(i);n.useEffect(()=>{x.current!==i&&(x.current=i,f(z(u,i)))},[i,u]);const S=n.useRef({}),{field:h,direction:j}=L(i.sort),p=n.useCallback((e,o)=>{s({search:c=>({...c,[e]:o})})},[s]),E=n.useCallback((e,o)=>{const l=u[e];if(!l)return;const c=N(l,o),b=r[e];if(b!==void 0&&b>0){f(g=>({...g,[e]:o}));const v=S.current[e];v!==void 0&&clearTimeout(v),S.current[e]=setTimeout(()=>{delete S.current[e],p(e,c)},b)}else f(v=>({...v,[e]:o})),p(e,c)},[u,r,p]),R=n.useCallback(e=>{const o=k[e];u[e]&&(f(c=>({...c,[e]:o})),p(e,void 0))},[u,k,p]),T=n.useCallback(()=>{const e=new Set(Object.keys(u));f({...k}),s({search:l=>{const c={...l};for(const b of e)delete c[b];return delete c.sort,c}})},[u,k,s]),V=n.useCallback((e,o=C)=>{s({search:c=>({...c,sort:`${e}:${o}`})})},[s]),A=t.isFiltered(d),F=t.activeCount(d),I=n.useCallback(()=>t.describeActive(d),[t,d]);return{values:d,inputValues:O,sortField:h,sortDirection:j,isFiltered:A,activeCount:F,set:E,clear:R,clearAll:T,setSort:V,describeActive:I,schema:t}}/**
1
+ import{c4 as g,cD as _,r as n,W as q}from"./index-Dc5cpBoO.js";const C="asc";function L(t){if(!t)return{field:"",direction:C};const a=t.indexOf(":");if(a===-1)return{field:t,direction:C};const r=t.slice(0,a),s=t.slice(a+1);return{field:r,direction:s==="desc"?"desc":"asc"}}function z(t,a){return Object.fromEntries(Object.entries(t).map(([r,s])=>{const i=a[r];return[r,i!==void 0?s.deserialize(i):s.defaultValue]}))}function N(t,a){const r=t.serialize(a),s=t.serialize(t.defaultValue);return r===s?void 0:r}function $(t,a={}){const{debounce:r={}}=a,s=g(),i=_({strict:!1}),{definitions:u,defaultValues:k}=t,d=z(u,i),[O,f]=n.useState(d),x=n.useRef(i);n.useEffect(()=>{x.current!==i&&(x.current=i,f(z(u,i)))},[i,u]);const S=n.useRef({}),{field:h,direction:j}=L(i.sort),p=n.useCallback((e,o)=>{s({search:c=>({...c,[e]:o})})},[s]),R=n.useCallback((e,o)=>{const l=u[e];if(!l)return;const c=N(l,o),b=r[e];if(b!==void 0&&b>0){f(I=>({...I,[e]:o}));const v=S.current[e];v!==void 0&&clearTimeout(v),S.current[e]=setTimeout(()=>{delete S.current[e],p(e,c)},b)}else f(v=>({...v,[e]:o})),p(e,c)},[u,r,p]),T=n.useCallback(e=>{const o=k[e];u[e]&&(f(c=>({...c,[e]:o})),p(e,void 0))},[u,k,p]),V=n.useCallback(()=>{const e=new Set(Object.keys(u));f({...k}),s({search:l=>{const c={...l};for(const b of e)delete c[b];return delete c.sort,c}})},[u,k,s]),A=n.useCallback((e,o=C)=>{s({search:c=>({...c,sort:`${e}:${o}`})})},[s]),D=t.isFiltered(d),E=t.activeCount(d),F=n.useCallback(()=>t.describeActive(d),[t,d]);return{values:d,inputValues:O,sortField:h,sortDirection:j,isFiltered:D,activeCount:E,set:R,clear:T,clearAll:V,setSort:A,describeActive:F,schema:t}}/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{W as a}from"./index-C8-dwIPp.js";/**
1
+ import{W as a}from"./index-Dc5cpBoO.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{W as a}from"./index-C8-dwIPp.js";/**
1
+ import{W as a}from"./index-Dc5cpBoO.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -0,0 +1 @@
1
+ import{a1 as l,a2 as g,a4 as j,j as t,dy as m,ar as u,G as x,J as k,X as b,x as p,r as o,b7 as N,B as d,gy as w,l as v,Y as O,gz as S,gA as C}from"./index-Dc5cpBoO.js";import{P as L,M as R}from"./plug-BaUXMfIl.js";import{R as T}from"./rotate-cw-C68kM23F.js";function E(e,s){const n=e.serviceName;if(e.status==="connected")return{heading:`Signed in to ${n}`,body:D(e,s)};switch(e.reason){case"cancelled":return{heading:"Sign-in cancelled",body:"Nothing changed. Try again when you’re ready."};case"expired":return{heading:"This sign-in link expired",body:"Sign-in links last a few minutes. Start a fresh one."};default:return{heading:"Couldn’t finish signing in",body:`${n||"The service"} didn’t complete the sign-in. Try again.`}}}function D(e,s){return e.resumesConversation?`${s??"Your agent"} is picking up where it left off.`:e.service==="openrouter"?"OpenRouter models are ready to use.":s?`${s} can use ${e.serviceName} now.`:`${e.serviceName} is ready to use.`}const z={heading:"This page expired",body:"Check DorkOS to see how the sign-in went."},P={heading:"Couldn’t reach DorkOS",body:"Make sure DorkOS is running, then reload this page."},M="Couldn’t start a new sign-in. Try again from DorkOS.";function A(e){return e==="desktop"?"You can close this tab.":"Or close this tab."}const F="dorkos://";function U(e){return/^\/(?![/\\])[^\s\\]*$/.test(e)}function _(e){const s=e.returnPath!==void 0&&U(e.returnPath)?e.returnPath:void 0;return e.returnSurface==="desktop"?{surface:"desktop",href:s?`dorkos:/${s}`:F}:{surface:"browser",href:s??"/"}}function $(e){return e.returnSurface==="desktop"&&e.status==="connected"}function B(e){const s=l();return g({queryKey:["sign-in-landing",e],queryFn:()=>s.getSignInLanding(e),enabled:e.length>0,retry:!1,staleTime:1/0,refetchOnWindowFocus:!1})}function H(e){var r,i;const s=l(),n=g({queryKey:["sign-in-landing","agent",e],queryFn:()=>s.getMeshAgent(e),enabled:e!==void 0,retry:!1,staleTime:6e4});return((r=n.data)==null?void 0:r.displayName)||((i=n.data)==null?void 0:i.name)||void 0}function I(e){try{const s=new URL(e);return s.protocol==="https:"?!0:s.protocol==="http:"&&(s.hostname==="localhost"||s.hostname==="127.0.0.1")}catch{return!1}}function Y(e,s=n=>window.location.assign(n)){const n=l();return j({mutationFn:async()=>{const r=await n.retrySignIn(e);if(r.kind==="authorize"&&!I(r.authorizeUrl))throw new Error("Unexpected sign-in link.");return r},onSuccess:r=>{r.kind==="authorize"&&s(r.authorizeUrl)}})}function G({size:e=18,className:s}){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 799 799",fill:"none",className:s,"aria-hidden":"true","data-mark":"dorkos",children:[t.jsx("rect",{x:"50",y:"50",width:"699",height:"699",stroke:"currentColor",strokeWidth:"100"}),t.jsx("path",{d:"M492.333 199.627L599.833 295.627L600 295.776V491.707L492.207 599.5H199.5V199.5H492.19L492.333 199.627ZM334 347.5V448.5H435V347.5H334Z",fill:"currentColor"})]})}function W(e){var s;return(s=/[\p{L}\p{N}]/u.exec(e))==null?void 0:s[0].toUpperCase()}const q={connected:"bg-status-success-bg border-status-success-border text-status-success-fg",neutral:"bg-muted border-border text-muted-foreground",error:"bg-status-error-bg border-status-error-border text-status-error-fg"};function K({serviceName:e,tone:s}){const n=s==="connected",r=W(e),i=m()??!1,a="bg-muted text-foreground flex size-12 items-center justify-center rounded-xl border text-lg font-semibold";return t.jsxs("div",{className:"flex items-center justify-center","aria-hidden":"true",children:[t.jsx("div",{className:a,children:r??t.jsx(L,{className:"text-muted-foreground size-5"})}),t.jsxs("div",{className:"relative mx-1 flex h-12 w-16 items-center",children:[t.jsx(u.div,{className:x("w-full origin-left",n?"bg-status-success h-px":"border-border h-0 border-t border-dashed"),initial:i?!1:{scaleX:0},animate:{scaleX:1},transition:{duration:.45,ease:[.22,1,.36,1]}}),t.jsxs(u.div,{className:x("absolute top-1/2 left-1/2 flex size-6 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border",q[s]),initial:i?!1:{scale:.4,opacity:0},animate:{scale:1,opacity:1},transition:i?{duration:0}:{delay:.35,type:"spring",stiffness:420,damping:22},children:[s==="connected"&&t.jsx(k,{className:"size-3.5",strokeWidth:3}),s==="neutral"&&t.jsx(R,{className:"size-3.5",strokeWidth:3}),s==="error"&&t.jsx(b,{className:"size-3.5",strokeWidth:3})]})]}),t.jsx("div",{className:a,children:t.jsx(G,{size:22})})]})}const V=2500;function X({landingId:e}){var n;const s=B(e);if(s.isPending&&e.length>0)return t.jsx(f,{title:"Finishing sign-in",children:t.jsx("div",{className:"flex justify-center py-10",children:t.jsx(p,{size:"md",label:"Finishing sign-in",className:"text-muted-foreground"})})});if(!s.data){const r=(n=s.error)==null?void 0:n.status,i=e.length===0||r===404;return t.jsx(Z,{copy:i?z:P})}return t.jsx(J,{landing:s.data})}function Z({copy:e}){return t.jsxs(f,{title:e.heading,children:[t.jsx("div",{className:"bg-muted mx-auto flex size-12 items-center justify-center rounded-xl border",children:t.jsx(N,{className:"text-muted-foreground size-5"})}),t.jsx(y,{copy:e}),t.jsx("div",{className:"mt-6 flex flex-col gap-2",children:t.jsx(d,{asChild:!0,variant:"outline",children:t.jsx(w,{...v.home(),children:"Back to DorkOS"})})})]})}function J({landing:e}){var h;const s=H(e.agentId),n=Y(e.id),r=_(e),i=e.status==="connected"||((h=n.data)==null?void 0:h.kind)==="connected",a=E(i?{...e,status:"connected",reason:void 0}:e,s),c=Q(e,r);return t.jsxs(f,{title:a.heading,children:[t.jsx(K,{serviceName:e.serviceName,tone:i?"connected":e.reason==="failed"?"error":"neutral"}),t.jsx(y,{copy:a}),t.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[!i&&e.canRetry&&t.jsxs(d,{onClick:()=>n.mutate(),disabled:n.isPending,children:[n.isPending?t.jsx(p,{}):t.jsx(T,{}),"Try again"]}),t.jsx(d,{asChild:!0,variant:i?"default":"outline",children:t.jsxs("a",{href:r.href,children:[r.surface==="desktop"?"Open DorkOS":"Back to DorkOS",r.surface==="desktop"&&t.jsx(O,{})]})})]}),n.isError&&t.jsx(S,{tone:"error",className:"mt-4 text-left",children:M}),t.jsx("p",{className:"text-muted-foreground mt-4 text-xs","aria-live":"polite",children:c?"Opening DorkOS…":A(r.surface)})]})}function Q(e,s){const n=o.useRef(!1),r=$(e),[i,a]=o.useState(r);return o.useEffect(()=>{if(!r)return;n.current||(n.current=!0,window.location.href=s.href);const c=window.setTimeout(()=>a(!1),V);return()=>window.clearTimeout(c)},[r,s.href]),i}function y({copy:e}){return t.jsxs("div",{className:"mt-6 flex flex-col gap-1.5",children:[t.jsx("h1",{className:"text-lg font-semibold tracking-tight text-balance",children:e.heading}),t.jsx("p",{className:"text-muted-foreground text-sm text-pretty",children:e.body})]})}function f({title:e,children:s}){const n=m()??!1;return o.useEffect(()=>{document.title=`${e} · DorkOS`},[e]),t.jsx("main",{className:"bg-background flex min-h-dvh w-full items-center justify-center p-4 sm:p-6",children:t.jsx(u.div,{className:"bg-card shadow-elevated w-full max-w-sm rounded-2xl border px-6 py-8 text-center sm:px-8",initial:n?!1:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},children:s})})}function ne(){const{landing:e}=C.useSearch();return t.jsx(X,{landingId:e??""})}export{ne as component};
@@ -1 +1 @@
1
- import{L as e,N as n}from"./index-C8-dwIPp.js";function s(t,o){return n(o,t)}function u(t,o){return{traits:o,soulContent:s(o,e(t.soulContent??""))}}export{u as p,s};
1
+ import{L as e,N as n}from"./index-Dc5cpBoO.js";function s(t,o){return n(o,t)}function u(t,o){return{traits:o,soulContent:s(o,e(t.soulContent??""))}}export{u as p,s};
@@ -1 +1 @@
1
- import{j as e,G as l}from"./index-C8-dwIPp.js";function s({className:a,...t}){return e.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-auto",children:e.jsx("table",{"data-slot":"table",className:l("w-full caption-bottom text-sm",a),...t})})}function r({className:a,...t}){return e.jsx("thead",{"data-slot":"table-header",className:l("[&_tr]:border-b",a),...t})}function d({className:a,...t}){return e.jsx("tbody",{"data-slot":"table-body",className:l("[&_tr:last-child]:border-0",a),...t})}function n({className:a,...t}){return e.jsx("tr",{"data-slot":"table-row",className:l("hover:bg-accent data-[state=selected]:bg-muted border-b transition-colors duration-150",a),...t})}function c({className:a,...t}){return e.jsx("th",{"data-slot":"table-head",className:l("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t})}function b({className:a,...t}){return e.jsx("td",{"data-slot":"table-cell",className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t})}export{s as T,d as a,n as b,b as c,r as d,c as e};
1
+ import{j as e,G as l}from"./index-Dc5cpBoO.js";function s({className:a,...t}){return e.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-auto",children:e.jsx("table",{"data-slot":"table",className:l("w-full caption-bottom text-sm",a),...t})})}function r({className:a,...t}){return e.jsx("thead",{"data-slot":"table-header",className:l("[&_tr]:border-b",a),...t})}function d({className:a,...t}){return e.jsx("tbody",{"data-slot":"table-body",className:l("[&_tr:last-child]:border-0",a),...t})}function n({className:a,...t}){return e.jsx("tr",{"data-slot":"table-row",className:l("hover:bg-accent data-[state=selected]:bg-muted border-b transition-colors duration-150",a),...t})}function c({className:a,...t}){return e.jsx("th",{"data-slot":"table-head",className:l("text-muted-foreground h-10 px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t})}function b({className:a,...t}){return e.jsx("td",{"data-slot":"table-cell",className:l("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...t})}export{s as T,d as a,n as b,b as c,r as d,c as e};
@@ -1,4 +1,4 @@
1
- import{W as a}from"./index-C8-dwIPp.js";/**
1
+ import{W as a}from"./index-Dc5cpBoO.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as e,bx as i,by as u,bv as d,G as l,bz as c,bA as f,bB as p}from"./index-C8-dwIPp.js";function x({label:s,title:t}){const{isDesktop:r}=f();return r?t?e.jsx("p",{className:"text-foreground mb-1.5 font-medium",children:t}):null:e.jsx(p,{children:t??s})}function v({label:s,children:t,title:r,className:n,side:o="top",align:a="start"}){return e.jsxs(i,{autoFocus:!0,children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{type:"button","data-slot":"info-tip","aria-label":s,className:l("text-muted-foreground hover:text-foreground focus-ring relative inline-flex size-4 shrink-0 items-center justify-center rounded-full align-middle transition-colors duration-150","after:absolute after:-inset-2 after:content-['']","data-[state=open]:text-foreground",n),children:e.jsx(d,{"aria-hidden":!0,className:"size-3.5"})})}),e.jsxs(c,{side:o,align:a,"aria-label":r??s,className:"w-72 text-sm",children:[e.jsx(x,{label:s,title:r}),e.jsx("div",{className:"text-muted-foreground space-y-2 leading-relaxed",children:t})]})]})}function j(s){return s==="careful"?"careful":"trusted"}export{v as I,j as t};
1
+ import{j as e,by as i,bz as u,bw as d,G as l,bA as c,bB as f,bC as p}from"./index-Dc5cpBoO.js";function x({label:s,title:t}){const{isDesktop:r}=f();return r?t?e.jsx("p",{className:"text-foreground mb-1.5 font-medium",children:t}):null:e.jsx(p,{children:t??s})}function v({label:s,children:t,title:r,className:n,side:o="top",align:a="start"}){return e.jsxs(i,{autoFocus:!0,children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{type:"button","data-slot":"info-tip","aria-label":s,className:l("text-muted-foreground hover:text-foreground focus-ring relative inline-flex size-4 shrink-0 items-center justify-center rounded-full align-middle transition-colors duration-150","after:absolute after:-inset-2 after:content-['']","data-[state=open]:text-foreground",n),children:e.jsx(d,{"aria-hidden":!0,className:"size-3.5"})})}),e.jsxs(c,{side:o,align:a,"aria-label":r??s,className:"w-72 text-sm",children:[e.jsx(x,{label:s,title:r}),e.jsx("div",{className:"text-muted-foreground space-y-2 leading-relaxed",children:t})]})]})}function j(s){return s==="careful"?"careful":"trusted"}export{v as I,j as t};
@@ -1,4 +1,4 @@
1
- import{W as e}from"./index-C8-dwIPp.js";/**
1
+ import{W as e}from"./index-Dc5cpBoO.js";/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{j as r}from"./index-C8-dwIPp.js";function o({id:e}){return r.jsx("p",{"data-slot":"unverified-catalog-notice",id:e,className:"text-muted-foreground border-border text-2xs rounded-lg border border-dashed p-2 leading-snug","data-testid":"model-catalog-unverified",children:"A partial list DorkOS can’t confirm. Connect a provider to see yours."})}export{o as U};
1
+ import{j as r}from"./index-Dc5cpBoO.js";function o({id:e}){return r.jsx("p",{"data-slot":"unverified-catalog-notice",id:e,className:"text-muted-foreground border-border text-2xs rounded-lg border border-dashed p-2 leading-snug","data-testid":"model-catalog-unverified",children:"A partial list DorkOS can’t confirm. Connect a provider to see yours."})}export{o as U};
@@ -1 +1 @@
1
- import{a1 as a,a2 as l,a3 as i,a4 as s,a7 as n}from"./index-C8-dwIPp.js";const o=["relay","adapters","catalog"],c=["relay","adapters"];function d(r){return r instanceof Error?r.message:"An unexpected error occurred"}function m(r=!0){const t=a();return l({queryKey:[...o],queryFn:()=>t.getAdapterCatalog(),enabled:r,refetchInterval:3e4})}const y={suppressErrorToast:!0};function f(){const r=a(),t=i();return s({mutationFn:({type:e,id:u,config:p})=>r.addRelayAdapter(e,u,p),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]})},onError:e=>{n.error(d(e))},meta:y})}function C(){const r=a(),t=i();return s({mutationFn:e=>r.removeRelayAdapter(e),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Connection removed")},onError:e=>{n.error(d(e))},meta:y})}function q(){const r=a(),t=i();return s({mutationFn:({id:e,config:u})=>r.updateRelayAdapterConfig(e,u),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Settings saved")},onError:e=>{n.error(d(e))},meta:y})}function v(){const r=a();return s({mutationFn:({type:t,config:e})=>r.testRelayAdapterConnection(t,e)})}export{f as a,q as b,v as c,C as d,m as u};
1
+ import{a1 as a,a2 as l,a3 as i,a4 as s,a7 as n}from"./index-Dc5cpBoO.js";const o=["relay","adapters","catalog"],c=["relay","adapters"];function d(r){return r instanceof Error?r.message:"An unexpected error occurred"}function m(r=!0){const t=a();return l({queryKey:[...o],queryFn:()=>t.getAdapterCatalog(),enabled:r,refetchInterval:3e4})}const y={suppressErrorToast:!0};function f(){const r=a(),t=i();return s({mutationFn:({type:e,id:u,config:p})=>r.addRelayAdapter(e,u,p),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]})},onError:e=>{n.error(d(e))},meta:y})}function C(){const r=a(),t=i();return s({mutationFn:e=>r.removeRelayAdapter(e),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Connection removed")},onError:e=>{n.error(d(e))},meta:y})}function q(){const r=a(),t=i();return s({mutationFn:({id:e,config:u})=>r.updateRelayAdapterConfig(e,u),onSuccess:()=>{t.invalidateQueries({queryKey:[...o]}),t.invalidateQueries({queryKey:[...c]}),n.success("Settings saved")},onError:e=>{n.error(d(e))},meta:y})}function v(){const r=a();return s({mutationFn:({type:t,config:e})=>r.testRelayAdapterConnection(t,e)})}export{f as a,q as b,v as c,C as d,m as u};
@@ -1 +1 @@
1
- import{a1 as s,a2 as r}from"./index-C8-dwIPp.js";const e=["relay","bindings"];function a(){const n=s();return r({queryKey:[...e],queryFn:()=>n.getBindings()})}export{e as B,a as u};
1
+ import{a1 as s,a2 as r}from"./index-Dc5cpBoO.js";const e=["relay","bindings"];function a(){const n=s();return r({queryKey:[...e],queryFn:()=>n.getBindings()})}export{e as B,a as u};
@@ -1 +1 @@
1
- import{ar as i,aT as o,a1 as c,a3 as p,a4 as m,as as y,at as a,r as T}from"./index-C8-dwIPp.js";function C(r){var t;return((t=r==null?void 0:r.ui)==null?void 0:t.composer)??o}function v(){const{data:r}=i();return C(r).richText}function Q(){const r=c(),t=p(),u=m({mutationKey:y,mutationFn:s=>r.updateConfig({ui:{composer:{richText:s}}}),onMutate:async s=>{await t.cancelQueries({queryKey:a.current()});const n=t.getQueryData(a.current());return t.setQueryData(a.current(),e=>e!=null&&e.ui?{...e,ui:{...e.ui,composer:{richText:s}}}:e),{previous:n}},onError:(s,n,e)=>{e&&e.previous!==void 0&&t.setQueryData(a.current(),e.previous)},onSettled:()=>{t.invalidateQueries({queryKey:a.current()})}});return{setRichText:T.useCallback(s=>u.mutate(s),[u]),isPending:u.isPending}}export{Q as a,v as u};
1
+ import{as as i,aU as o,a1 as c,a3 as p,a4 as m,at as y,au as a,r as C}from"./index-Dc5cpBoO.js";function T(r){var t;return((t=r==null?void 0:r.ui)==null?void 0:t.composer)??o}function v(){const{data:r}=i();return T(r).richText}function Q(){const r=c(),t=p(),u=m({mutationKey:y,mutationFn:s=>r.updateConfig({ui:{composer:{richText:s}}}),onMutate:async s=>{await t.cancelQueries({queryKey:a.current()});const n=t.getQueryData(a.current());return t.setQueryData(a.current(),e=>e!=null&&e.ui?{...e,ui:{...e.ui,composer:{richText:s}}}:e),{previous:n}},onError:(s,n,e)=>{e&&e.previous!==void 0&&t.setQueryData(a.current(),e.previous)},onSettled:()=>{t.invalidateQueries({queryKey:a.current()})}});return{setRichText:C.useCallback(s=>u.mutate(s),[u]),isPending:u.isPending}}export{Q as a,v as u};
@@ -1 +1 @@
1
- import{a1 as a,a2 as y,a3 as l,a4 as p,aP as r,r as g}from"./index-C8-dwIPp.js";function C(e,t={}){const n=a();return y({queryKey:r.reviewList(e),queryFn:()=>n.getConnectorManagementReviews(e),enabled:t.enabled??!0,refetchInterval:t.refetchInterval,refetchIntervalInBackground:!1})}function d(e){const t=a();return y({queryKey:r.review(e??""),queryFn:()=>t.getConnectorManagementReview(e??""),enabled:e!==null&&e!==""})}function R(e){const t=a();return y({queryKey:r.agentRequestList(e),queryFn:()=>t.getConnectorAgentRequests(e),meta:{suppressErrorToast:!0}})}function f(e){const t=a();return y({queryKey:r.sessionAgentRequests(e??""),queryFn:()=>t.getConnectorAgentRequests(void 0,e??""),enabled:!!e,meta:{suppressErrorToast:!0}})}function m(e){const t=a();return y({queryKey:r.agentRequest(e??""),queryFn:()=>t.getConnectorAgentRequest(e??""),enabled:e!==null&&e!==""})}function A(){const e=a(),t=l();return p({mutationFn:({requestId:n,decision:o})=>e.resolveConnectorAgentRequest(n,o),meta:{suppressErrorToast:!0},onSuccess:(n,{requestId:o})=>{t.setQueryData(r.agentRequest(o),n),t.invalidateQueries({queryKey:r.agentRequests(),predicate:u=>u.queryKey[3]!==o}),t.invalidateQueries({queryKey:r.connections()})}})}function K(e){const t=a();return p({mutationFn:n=>t.startConnectorAgentRequestAuthentication(e??"",n),meta:{suppressErrorToast:!0}})}function h(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.agentRequestAuthentication(e??"",t??""),queryFn:()=>n.pollConnectorAgentRequestAuthentication(e??"",t??""),enabled:!!(e&&t),refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var i;const s=(i=u.data)==null?void 0:i.state;!s||!e||(s==="connected"&&o.invalidateQueries({queryKey:r.connections()}),(s==="connected"||s==="failed"||s==="expired"||s==="start_unknown")&&o.invalidateQueries({queryKey:r.agentRequests(),predicate:c=>c.queryKey[4]!=="authentication-flow"}))},[(v=u.data)==null?void 0:v.state,o,e]),u}function E(){const e=a(),t=l();return p({mutationFn:({reviewRequestId:n,decision:o})=>e.resolveConnectorManagementReview(n,{decision:o}),meta:{suppressErrorToast:!0},onSuccess:(n,{reviewRequestId:o})=>{t.setQueryData(r.review(o),n.review),t.invalidateQueries({queryKey:r.reviewList("pending")}),t.invalidateQueries({queryKey:r.reviewList("resolved")}),t.invalidateQueries({queryKey:r.connections()})}})}function F(){const e=a();return p({mutationFn:({connectionId:t})=>e.previewConnectorReconciliation({connectionId:t}),meta:{suppressErrorToast:!0}})}function Q(){const e=a(),t=l();return p({mutationFn:n=>e.applyConnectorReconciliation(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function T(){const e=a(),t=l();return p({mutationFn:({connectionId:n})=>e.stopSharingConnectorWithEveryAgent(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function w(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.authenticationFlow(e??""),queryFn:()=>n.pollConnectorAuthentication(e??""),enabled:t&&e!==null&&e!=="",refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,gcTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var s;((s=u.data)==null?void 0:s.state)==="connected"&&o.invalidateQueries({queryKey:r.connections()})},[(v=u.data)==null?void 0:v.state,o]),u}export{Q as a,T as b,K as c,h as d,A as e,R as f,C as g,m as h,d as i,E as j,w as k,f as l,F as u};
1
+ import{a1 as a,a2 as y,a3 as l,a4 as p,aQ as r,r as g}from"./index-Dc5cpBoO.js";function C(e,t={}){const n=a();return y({queryKey:r.reviewList(e),queryFn:()=>n.getConnectorManagementReviews(e),enabled:t.enabled??!0,refetchInterval:t.refetchInterval,refetchIntervalInBackground:!1})}function d(e){const t=a();return y({queryKey:r.review(e??""),queryFn:()=>t.getConnectorManagementReview(e??""),enabled:e!==null&&e!==""})}function R(e){const t=a();return y({queryKey:r.agentRequestList(e),queryFn:()=>t.getConnectorAgentRequests(e),meta:{suppressErrorToast:!0}})}function f(e){const t=a();return y({queryKey:r.sessionAgentRequests(e??""),queryFn:()=>t.getConnectorAgentRequests(void 0,e??""),enabled:!!e,meta:{suppressErrorToast:!0}})}function m(e){const t=a();return y({queryKey:r.agentRequest(e??""),queryFn:()=>t.getConnectorAgentRequest(e??""),enabled:e!==null&&e!==""})}function A(){const e=a(),t=l();return p({mutationFn:({requestId:n,decision:o})=>e.resolveConnectorAgentRequest(n,o),meta:{suppressErrorToast:!0},onSuccess:(n,{requestId:o})=>{t.setQueryData(r.agentRequest(o),n),t.invalidateQueries({queryKey:r.agentRequests(),predicate:u=>u.queryKey[3]!==o}),t.invalidateQueries({queryKey:r.connections()})}})}function K(e){const t=a();return p({mutationFn:n=>t.startConnectorAgentRequestAuthentication(e??"",n),meta:{suppressErrorToast:!0}})}function h(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.agentRequestAuthentication(e??"",t??""),queryFn:()=>n.pollConnectorAgentRequestAuthentication(e??"",t??""),enabled:!!(e&&t),refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var i;const s=(i=u.data)==null?void 0:i.state;!s||!e||(s==="connected"&&o.invalidateQueries({queryKey:r.connections()}),(s==="connected"||s==="failed"||s==="expired"||s==="start_unknown")&&o.invalidateQueries({queryKey:r.agentRequests(),predicate:c=>c.queryKey[4]!=="authentication-flow"}))},[(v=u.data)==null?void 0:v.state,o,e]),u}function E(){const e=a(),t=l();return p({mutationFn:({reviewRequestId:n,decision:o})=>e.resolveConnectorManagementReview(n,{decision:o}),meta:{suppressErrorToast:!0},onSuccess:(n,{reviewRequestId:o})=>{t.setQueryData(r.review(o),n.review),t.invalidateQueries({queryKey:r.reviewList("pending")}),t.invalidateQueries({queryKey:r.reviewList("resolved")}),t.invalidateQueries({queryKey:r.connections()})}})}function Q(){const e=a();return p({mutationFn:({connectionId:t})=>e.previewConnectorReconciliation({connectionId:t}),meta:{suppressErrorToast:!0}})}function F(){const e=a(),t=l();return p({mutationFn:n=>e.applyConnectorReconciliation(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function T(){const e=a(),t=l();return p({mutationFn:({connectionId:n})=>e.stopSharingConnectorWithEveryAgent(n),meta:{suppressErrorToast:!0},onSuccess:()=>{t.invalidateQueries({queryKey:r.connections()})}})}function w(e,t){var v;const n=a(),o=l(),u=y({queryKey:r.authenticationFlow(e??""),queryFn:()=>n.pollConnectorAuthentication(e??""),enabled:t&&e!==null&&e!=="",refetchInterval:s=>{var c;const i=(c=s.state.data)==null?void 0:c.state;return i==="starting"||i==="pending"?2e3:!1},staleTime:0,gcTime:0,meta:{suppressErrorToast:!0}});return g.useEffect(()=>{var s;((s=u.data)==null?void 0:s.state)==="connected"&&o.invalidateQueries({queryKey:r.connections()})},[(v=u.data)==null?void 0:v.state,o]),u}export{F as a,T as b,K as c,h as d,A as e,R as f,C as g,m as h,d as i,E as j,w as k,f as l,Q as u};
@@ -1 +1 @@
1
- import{r as a}from"./index-C8-dwIPp.js";function n(e,o){a.useEffect(()=>{if(!e)return;const r=e.replace(/[^a-zA-Z0-9-]/g,"");r&&requestAnimationFrame(()=>{const t=document.querySelector(`[data-section="${r}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})},[e,o])}export{n as u};
1
+ import{r as a}from"./index-Dc5cpBoO.js";function n(e,o){a.useEffect(()=>{if(!e)return;const r=e.replace(/[^a-zA-Z0-9-]/g,"");r&&requestAnimationFrame(()=>{const t=document.querySelector(`[data-section="${r}"]`);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})},[e,o])}export{n as u};
@@ -1 +1 @@
1
- import{a1 as r,a3 as o,a4 as a}from"./index-C8-dwIPp.js";import{B as s}from"./use-bindings-Ds_MAC67.js";function c(){const e=r(),t=o();return a({mutationFn:n=>e.deleteBinding(n),onSuccess:()=>{t.invalidateQueries({queryKey:[...s]})},meta:{errorLabel:"Couldn’t remove that connection"}})}export{c as u};
1
+ import{a1 as r,a3 as o,a4 as a}from"./index-Dc5cpBoO.js";import{B as s}from"./use-bindings-CsTavmf-.js";function c(){const e=r(),t=o();return a({mutationFn:n=>e.deleteBinding(n),onSuccess:()=>{t.invalidateQueries({queryKey:[...s]})},meta:{errorLabel:"Couldn’t remove that connection"}})}export{c as u};
@@ -1 +1 @@
1
- import{a1 as s,a2 as r,a3 as i,r as n,aa as a,ab as t}from"./index-C8-dwIPp.js";function l(){const e=s();return r({queryKey:a.devLinks(),queryFn:()=>e.listDevLinks()})}function o(){const e=i();return n.useCallback(()=>{e.invalidateQueries({queryKey:[...a.all,"installed"]}),e.invalidateQueries({queryKey:t.all}),e.invalidateQueries({queryKey:["commands"]})},[e])}export{l as a,o as u};
1
+ import{a1 as s,a2 as r,a3 as i,r as n,aa as a,ab as t}from"./index-Dc5cpBoO.js";function l(){const e=s();return r({queryKey:a.devLinks(),queryFn:()=>e.listDevLinks()})}function o(){const e=i();return n.useCallback(()=>{e.invalidateQueries({queryKey:[...a.all,"installed"]}),e.invalidateQueries({queryKey:t.all}),e.invalidateQueries({queryKey:["commands"]})},[e])}export{l as a,o as u};
@@ -1 +1 @@
1
- import{r as s}from"./index-C8-dwIPp.js";import{u as n}from"./use-adapter-catalog-RzlxX2Wa.js";const u="internal";function m(r=!0){const t=n(r),e=s.useMemo(()=>{var a;return((a=t.data)==null?void 0:a.filter(o=>o.manifest.category!==u))??[]},[t.data]);return{...t,data:e}}export{m as u};
1
+ import{r as s}from"./index-Dc5cpBoO.js";import{u as n}from"./use-adapter-catalog-Z4MDWZAZ.js";const u="internal";function m(r=!0){const t=n(r),e=s.useMemo(()=>{var a;return((a=t.data)==null?void 0:a.filter(o=>o.manifest.category!==u))??[]},[t.data]);return{...t,data:e}}export{m as u};
@@ -1 +1 @@
1
- import{a1 as r,au as a}from"./index-C8-dwIPp.js";const n=["activity"];function o(t={}){const i=r();return a({queryKey:[...n,t],queryFn:({pageParam:e})=>i.listActivityEvents({...t,limit:50,before:e}),initialPageParam:void 0,getNextPageParam:e=>e.nextCursor??void 0,staleTime:3e4,refetchOnWindowFocus:!0})}export{n as A,o as u};
1
+ import{a1 as r,av as a}from"./index-Dc5cpBoO.js";const n=["activity"];function o(t={}){const i=r();return a({queryKey:[...n,t],queryFn:({pageParam:e})=>i.listActivityEvents({...t,limit:50,before:e}),initialPageParam:void 0,getNextPageParam:e=>e.nextCursor??void 0,staleTime:3e4,refetchOnWindowFocus:!0})}export{n as A,o as u};
@@ -0,0 +1 @@
1
+ import{aw as e}from"./index-Dc5cpBoO.js";const o=1024;function t(){return e(`(max-width: ${o-1}px)`)}export{t as u};
@@ -0,0 +1 @@
1
+ import{as as r}from"./index-Dc5cpBoO.js";function u(){var e;return((e=r().data)==null?void 0:e.serverRole)==="hub"}export{u};
@@ -1,11 +1,11 @@
1
- import{r as p,W as v,j as f,fE as N,G as x,fF as M,fG as _,eH as S,fH as L,fI as m,ed as T,eG as E,fJ as C,fK as H}from"./index-C8-dwIPp.js";function $(){const[e,t]=p.useState(()=>y());return p.useEffect(()=>{const n=window.visualViewport;if(!n)return;const s=()=>{const r=y();t(i=>i===r?i:r)};return n.addEventListener("resize",s),n.addEventListener("scroll",s),()=>{n.removeEventListener("resize",s),n.removeEventListener("scroll",s)}},[]),e}function y(){const e=typeof window<"u"?window.visualViewport:void 0;return!e||e.scale>1?0:Math.max(0,Math.round(window.innerHeight-(e.height+e.offsetTop)))}/**
1
+ import{r as p,W as v,j as d,fR as N,G as M,fS as x,fT as S,eM as _,fU as L,fV as m,ei as T,eL as C,fW as E,fX as D}from"./index-Dc5cpBoO.js";function J(){const[e,t]=p.useState(()=>y());return p.useEffect(()=>{const n=window.visualViewport;if(!n)return;const s=()=>{const r=y();t(i=>i===r?i:r)};return n.addEventListener("resize",s),n.addEventListener("scroll",s),()=>{n.removeEventListener("resize",s),n.removeEventListener("scroll",s)}},[]),e}function y(){const e=typeof window<"u"?window.visualViewport:void 0;return!e||e.scale>1?0:Math.max(0,Math.round(window.innerHeight-(e.height+e.offsetTop)))}/**
2
2
  * @license lucide-react v1.48.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const A={name:"at-sign",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]};A.node;const G=v(A);/**
6
+ */const A={name:"at-sign",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]};A.node;const R=v(A);/**
7
7
  * @license lucide-react v1.48.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const g={name:"repeat",size:24,node:[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]};g.node;const R=v(g),D=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function U({gripStyle:e,onDragging:t,onResizeEnd:n,disabled:s=!1,...r}){const i=a=>{!s&&D.has(a.key)&&(n==null||n())};return f.jsx(N,{...r,disabled:s,tabIndex:s?-1:0,"aria-disabled":s||void 0,onDragging:a=>{t==null||t(a),a||n==null||n()},onKeyDown:i,className:"group relative outline-none",style:{width:0,overflow:"visible"},children:f.jsx("div",{className:"absolute inset-y-0 -left-1 z-10 flex w-2 items-center justify-center",style:e,children:f.jsx("div",{"data-slot":"pane-resize-line",className:x("h-full w-px transition-colors duration-500",!s&&"group-hover:bg-ring/50 group-focus-visible:bg-ring group-focus-visible:transition-none")})})})}const I=8;function k(e){if(e==null)return null;const t=e.replace(/\s+/g," ").trim();return t.length===0?null:t}function O(e){if(L(e)){const n=e.unreadCount??0;return n===1?"1 new message":`${n} new messages`}const t=e.working??0;return t>0?t===1?"1 agent working":`${t} agents working`:k(e.topic)}function w(e){return{kind:"session",id:e.id,name:_(e.title),summary:k(e.lastMessagePreview),lastActivityAt:e.updatedAt,session:e}}function B(e){return{kind:e.kind==="dm"?"dm":"channel",id:e.id,name:S(e),summary:O(e),lastActivityAt:e.lastActivityAt,room:e}}function l(e){if(e===void 0)return null;const t=Date.parse(e);return Number.isNaN(t)?null:t}function K(e){return e.kind==="session"?m("session",e.id):m("room",e.id)}function h(e,t){const n=[l(t[K(e)]),...e.kind==="session"?[l(e.session.lastTouchedByYouAt),l(e.session.userLastMessageAt)]:[]].filter(s=>s!==null);return n.length>0?Math.max(...n):l(e.lastActivityAt)??Number.NEGATIVE_INFINITY}function W(e){return(t,n)=>h(n,e)-h(t,e)||n.id.localeCompare(t.id)}function j(e){const t=new Set;return e.filter(n=>{const s=`${n.kind}:${n.id}`;return t.has(s)?!1:(t.add(s),!0)})}function b(e,t){return!(t.has(e.id)||e.unreadCount===null||e.lastActivityAt===e.createdAt)}function F({sessions:e,rooms:t,mutedRoomIds:n=new Set,interactions:s={},limit:r=I}){const{yours:i,spinOffs:a,automated:o}=M(e),d=W(s),u=[...i.map(w),...t.filter(c=>b(c,n)).map(B)].sort(d);return{items:j(u).slice(0,r),automated:[...a,...o].map(w).sort(d).slice(0,r)}}const J=3,P=H;function Y({limit:e=I,mutedRoomIds:t,enabled:n=!0}={}){var u,c;const s=T(Math.max(e*J,P),{enabled:n}),r=E({enabled:n}),i=C(),a=(u=s.data)==null?void 0:u.sessions,o=r.data;return{...p.useMemo(()=>F({sessions:a??[],rooms:o??[],mutedRoomIds:t,interactions:i,limit:e}),[a,o,t,i,e]),isLoading:n&&(s.isLoading||r.isLoading),warnings:((c=s.data)==null?void 0:c.warnings)??[]}}export{G as A,U as P,R,$ as a,Y as u};
11
+ */const g={name:"repeat",size:24,node:[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]};g.node;const U=v(g),O=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"]);function Y({gripStyle:e,onDragging:t,onResizeEnd:n,disabled:s=!1,...r}){const i=a=>{!s&&O.has(a.key)&&(n==null||n())};return d.jsx(N,{...r,disabled:s,tabIndex:s?-1:0,"aria-disabled":s||void 0,onDragging:a=>{t==null||t(a),a||n==null||n()},onKeyDown:i,className:"group relative outline-none",style:{width:0,overflow:"visible"},children:d.jsx("div",{className:"absolute inset-y-0 -left-1 z-10 flex w-2 items-center justify-center",style:e,children:d.jsx("div",{"data-slot":"pane-resize-line",className:M("h-full w-px transition-colors duration-500",!s&&"group-hover:bg-ring/50 group-focus-visible:bg-ring group-focus-visible:transition-none")})})})}const k=8;function I(e){if(e==null)return null;const t=e.replace(/\s+/g," ").trim();return t.length===0?null:t}function W(e){if(L(e)){const n=e.unreadCount??0;return n===1?"1 new message":`${n} new messages`}const t=e.working??0;return t>0?t===1?"1 agent working":`${t} agents working`:I(e.topic)}function w(e){return{kind:"session",id:e.id,name:S(e.title),summary:I(e.lastMessagePreview),lastActivityAt:e.updatedAt,session:e}}function B(e){return{kind:e.kind==="dm"?"dm":"channel",id:e.id,name:_(e),summary:W(e),lastActivityAt:e.lastActivityAt,room:e}}function l(e){if(e===void 0)return null;const t=Date.parse(e);return Number.isNaN(t)?null:t}function H(e){return e.kind==="session"?m("session",e.id):m("room",e.id)}function h(e,t){const n=[l(t[H(e)]),...e.kind==="session"?[l(e.session.lastTouchedByYouAt),l(e.session.userLastMessageAt)]:[]].filter(s=>s!==null);return n.length>0?Math.max(...n):l(e.lastActivityAt)??Number.NEGATIVE_INFINITY}function j(e){return(t,n)=>h(n,e)-h(t,e)||n.id.localeCompare(t.id)}function K(e){const t=new Set;return e.filter(n=>{const s=`${n.kind}:${n.id}`;return t.has(s)?!1:(t.add(s),!0)})}function V(e,t){return!(t.has(e.id)||e.unreadCount===null||e.lastActivityAt===e.createdAt)}function b({sessions:e,rooms:t,mutedRoomIds:n=new Set,interactions:s={},limit:r=k}){const{yours:i,spinOffs:a,automated:o}=x(e),f=j(s),u=[...i.map(w),...t.filter(c=>V(c,n)).map(B)].sort(f);return{items:K(u).slice(0,r),automated:[...a,...o].map(w).sort(f).slice(0,r)}}const P=3,$=D;function G({limit:e=k,mutedRoomIds:t,enabled:n=!0}={}){var u,c;const s=T(Math.max(e*P,$),{enabled:n}),r=C({enabled:n}),i=E(),a=(u=s.data)==null?void 0:u.sessions,o=r.data;return{...p.useMemo(()=>b({sessions:a??[],rooms:o??[],mutedRoomIds:t,interactions:i,limit:e}),[a,o,t,i,e]),isLoading:n&&(s.isLoading||r.isLoading),warnings:((c=s.data)==null?void 0:c.warnings)??[]}}export{R as A,Y as P,U as R,J as a,G as u};
@@ -1 +1 @@
1
- import{a1 as s,a2 as n}from"./index-C8-dwIPp.js";const c=["local-browser","state"];function l(e=!0){const r=s();return n({queryKey:c,enabled:e,queryFn:()=>r.getLocalBrowserState(),refetchInterval:t=>{var o;const a=(o=t.state.error)==null?void 0:o.code;return a==="local_only"||a==="owner_only"?!1:1e3},retry:!1})}function i(){const e=s(),r=l(),t=n({queryKey:["local-browser","capabilities"],queryFn:()=>e.getLocalBrowserCapabilities(),retry:!1});return{state:r,capabilities:t}}export{c as L,l as a,i as u};
1
+ import{a1 as s,a2 as n}from"./index-Dc5cpBoO.js";const c=["local-browser","state"];function l(e=!0){const r=s();return n({queryKey:c,enabled:e,queryFn:()=>r.getLocalBrowserState(),refetchInterval:t=>{var o;const a=(o=t.state.error)==null?void 0:o.code;return a==="local_only"||a==="owner_only"?!1:1e3},retry:!1})}function i(){const e=s(),r=l(),t=n({queryKey:["local-browser","capabilities"],queryFn:()=>e.getLocalBrowserCapabilities(),retry:!1});return{state:r,capabilities:t}}export{c as L,l as a,i as u};
@@ -1 +1 @@
1
- import{a1 as t,a2 as s,aQ as u}from"./index-C8-dwIPp.js";const a=["mesh","topology"];function n(e,o=!0){const r=t();return s({queryKey:[...a,e],queryFn:()=>r.getMeshTopology(e),enabled:o,staleTime:3e4,refetchInterval:u.EVENT_BACKSTOP_REFETCH_MS})}export{n as u};
1
+ import{a1 as t,a2 as s,aR as u}from"./index-Dc5cpBoO.js";const a=["mesh","topology"];function n(e,o=!0){const r=t();return s({queryKey:[...a,e],queryFn:()=>r.getMeshTopology(e),enabled:o,staleTime:3e4,refetchInterval:u.EVENT_BACKSTOP_REFETCH_MS})}export{n as u};
@@ -1 +1 @@
1
- import{r}from"./index-C8-dwIPp.js";function u(){const e=r.useRef(!0);return r.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}export{u};
1
+ import{r}from"./index-Dc5cpBoO.js";function u(){const e=r.useRef(!0);return r.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e}export{u};
@@ -1 +1 @@
1
- import{r as d,ar as P,a1 as g,a3 as v,dz as N,a4 as S,as as E,at as a}from"./index-C8-dwIPp.js";function y(){if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";const e=window.Notification.permission;return e==="granted"||e==="denied"||e==="default"?e:"unsupported"}let m=y();const l=new Set;function C(e){return l.add(e),()=>{l.delete(e)}}function b(){return m}function T(){return"unsupported"}function I(){const e=y();if(e!==m){m=e;for(const n of l)n()}}function O(){const e=d.useSyncExternalStore(C,b,T),n=d.useCallback(async()=>{if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";try{await window.Notification.requestPermission()}catch{}return I(),y()},[]);return{permission:e,request:n}}function K(e,n){const[i,o,c]=e.split(".").map(Number),[s,f,t]=n.split(".").map(Number);return i!==s?i>s:o!==f?o>f:c>t}const w="dorkos-enable-notification-sound";let p=!1;function _(){try{const e=localStorage.getItem(w);return e==="true"?!0:e==="false"?!1:void 0}catch{return}}function A(e,n){return{...e,...n.escalation?{escalation:{...e.escalation,...n.escalation}}:{},...n.sounds?{sounds:{...e.sounds,...n.sounds}}:{},...n.notifyOnTurnCompleteWhileAway===void 0?{}:{notifyOnTurnCompleteWhileAway:n.notifyOnTurnCompleteWhileAway},...n.browserPermissionPrimerDismissed===void 0?{}:{browserPermissionPrimerDismissed:n.browserPermissionPrimerDismissed}}}function M(){const{data:e}=P(),n=g(),i=v(),o=(e==null?void 0:e.notifications)??N,c=S({mutationKey:E,mutationFn:t=>n.updateConfig({notifications:t}),onMutate:async t=>{await i.cancelQueries({queryKey:a.current()});const u=i.getQueryData(a.current());return i.setQueryData(a.current(),r=>r!=null&&r.notifications?{...r,notifications:A(r.notifications,t)}:r),{previous:u}},onError:(t,u,r)=>{r&&r.previous!==void 0&&i.setQueryData(a.current(),r.previous)},onSettled:()=>{i.invalidateQueries({queryKey:a.current()})}}),{mutate:s}=c,f=d.useCallback(t=>s(t),[s]);return d.useEffect(()=>{if(p||e===void 0)return;p=!0;const t=_();if(t===void 0)return;const u=()=>{try{localStorage.removeItem(w)}catch{}};if(t===o.sounds.turnEnd){u();return}s({sounds:{turnEnd:t}},{onSuccess:u})},[e,o.sounds.turnEnd,s]),{prefs:o,setPrefs:f,isPending:c.isPending}}export{O as a,K as i,M as u};
1
+ import{r as d,as as P,a1 as g,a3 as v,dB as N,a4 as S,at as E,au as a}from"./index-Dc5cpBoO.js";function y(){if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";const e=window.Notification.permission;return e==="granted"||e==="denied"||e==="default"?e:"unsupported"}let m=y();const l=new Set;function C(e){return l.add(e),()=>{l.delete(e)}}function b(){return m}function T(){return"unsupported"}function I(){const e=y();if(e!==m){m=e;for(const n of l)n()}}function O(){const e=d.useSyncExternalStore(C,b,T),n=d.useCallback(async()=>{if(typeof window>"u"||typeof window.Notification>"u")return"unsupported";try{await window.Notification.requestPermission()}catch{}return I(),y()},[]);return{permission:e,request:n}}function K(e,n){const[i,o,c]=e.split(".").map(Number),[s,f,t]=n.split(".").map(Number);return i!==s?i>s:o!==f?o>f:c>t}const w="dorkos-enable-notification-sound";let p=!1;function _(){try{const e=localStorage.getItem(w);return e==="true"?!0:e==="false"?!1:void 0}catch{return}}function A(e,n){return{...e,...n.escalation?{escalation:{...e.escalation,...n.escalation}}:{},...n.sounds?{sounds:{...e.sounds,...n.sounds}}:{},...n.notifyOnTurnCompleteWhileAway===void 0?{}:{notifyOnTurnCompleteWhileAway:n.notifyOnTurnCompleteWhileAway},...n.browserPermissionPrimerDismissed===void 0?{}:{browserPermissionPrimerDismissed:n.browserPermissionPrimerDismissed}}}function M(){const{data:e}=P(),n=g(),i=v(),o=(e==null?void 0:e.notifications)??N,c=S({mutationKey:E,mutationFn:t=>n.updateConfig({notifications:t}),onMutate:async t=>{await i.cancelQueries({queryKey:a.current()});const u=i.getQueryData(a.current());return i.setQueryData(a.current(),r=>r!=null&&r.notifications?{...r,notifications:A(r.notifications,t)}:r),{previous:u}},onError:(t,u,r)=>{r&&r.previous!==void 0&&i.setQueryData(a.current(),r.previous)},onSettled:()=>{i.invalidateQueries({queryKey:a.current()})}}),{mutate:s}=c,f=d.useCallback(t=>s(t),[s]);return d.useEffect(()=>{if(p||e===void 0)return;p=!0;const t=_();if(t===void 0)return;const u=()=>{try{localStorage.removeItem(w)}catch{}};if(t===o.sounds.turnEnd){u();return}s({sounds:{turnEnd:t}},{onSuccess:u})},[e,o.sounds.turnEnd,s]),{prefs:o,setPrefs:f,isPending:c.isPending}}export{O as a,K as i,M as u};
@@ -1 +1 @@
1
- import{ar as f,a1 as y,a3 as d,a4 as T,as as P,at as i,r as b}from"./index-C8-dwIPp.js";const l=Object.freeze([]);function p(){var e;const{data:t}=f();return((e=t==null?void 0:t.ui)==null?void 0:e.panelTabs)??l}function m(t,e,u){const r=t.filter(a=>a.tab!==e);if(!u)return r;const o={tab:e,show:u.show,hide:u.hide},n=t.findIndex(a=>a.tab===e);return n===-1?[...r,o]:[...r.slice(0,n),o,...r.slice(n)]}function C(){const t=y(),e=d(),u=T({mutationKey:P,mutationFn:({next:n})=>t.updateConfig({ui:{panelTabs:n}}),onError:(n,{previous:a})=>{a!==void 0&&e.setQueryData(i.current(),a)},onSettled:()=>{e.invalidateQueries({queryKey:i.current()})}}),{mutate:r}=u;return{setPlacement:b.useCallback((n,a)=>{const s=e.getQueryData(i.current());if(!(s!=null&&s.ui))return;e.cancelQueries({queryKey:i.current()});const c=m(s.ui.panelTabs??l,n,a);e.setQueryData(i.current(),{...s,ui:{...s.ui,panelTabs:c}}),r({next:c,previous:s})},[r,e]),isPending:u.isPending}}export{C as a,p as u};
1
+ import{as as f,a1 as y,a3 as d,a4 as T,at as P,au as i,r as b}from"./index-Dc5cpBoO.js";const l=Object.freeze([]);function p(){var e;const{data:t}=f();return((e=t==null?void 0:t.ui)==null?void 0:e.panelTabs)??l}function m(t,e,u){const r=t.filter(a=>a.tab!==e);if(!u)return r;const o={tab:e,show:u.show,hide:u.hide},n=t.findIndex(a=>a.tab===e);return n===-1?[...r,o]:[...r.slice(0,n),o,...r.slice(n)]}function C(){const t=y(),e=d(),u=T({mutationKey:P,mutationFn:({next:n})=>t.updateConfig({ui:{panelTabs:n}}),onError:(n,{previous:a})=>{a!==void 0&&e.setQueryData(i.current(),a)},onSettled:()=>{e.invalidateQueries({queryKey:i.current()})}}),{mutate:r}=u;return{setPlacement:b.useCallback((n,a)=>{const s=e.getQueryData(i.current());if(!(s!=null&&s.ui))return;e.cancelQueries({queryKey:i.current()});const c=m(s.ui.panelTabs??l,n,a);e.setQueryData(i.current(),{...s,ui:{...s.ui,panelTabs:c}}),r({next:c,previous:s})},[r,e]),isPending:u.isPending}}export{C as a,p as u};
@@ -0,0 +1 @@
1
+ import{ac as n}from"./index-Dc5cpBoO.js";function r(s){const e=n();return s||e}export{r as u};
@@ -0,0 +1 @@
1
+ import{r as u,gE as Oe,bp as Le,bn as H,dl as Fe,j as t,bm as F,bt as He,bo as U,gF as Ge,bs as ye,gG as Ke,bu as q,bv as ze,gH as Ue,gI as Ye,G as P,V as ve,gJ as we,dy as We,gK as Xe,bx as pe,ar as re,gL as qe,d3 as xe,gM as Je}from"./index-Dc5cpBoO.js";import{g as Qe}from"./dorkbot-templates-8Yu9POWJ.js";import{p as K}from"./sound-D3r8dGFH.js";import{p as Ze}from"./soul-file-CRfKVJX3.js";var et=Object.defineProperty,h=(r,e)=>et(r,"name",{value:e,configurable:!0}),je=["PageUp","PageDown"],ke=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ce={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Y="Slider",[oe,tt,rt]=Oe(Y),[ae,Ot]=Le(Y,[rt]),[nt,W]=ae(Y),st=u.forwardRef(h(function(e,s){const{name:a,min:i=0,max:n=100,step:d=1,orientation:l="horizontal",disabled:p=!1,minStepsBetweenThumbs:c=0,defaultValue:o=[i],value:x,onValueChange:f=h(()=>{},"onValueChange"),onValueCommit:g=h(()=>{},"onValueCommit"),inverted:j=!1,form:w,...S}=e,R=u.useRef(new Set),C=u.useRef(0),T=u.useRef(!1),_=l==="horizontal"?ot:it,[k,O]=u.useState(null),b=H(s,O),[m=[],v]=Fe({prop:x,defaultProp:o,onChange:h(y=>{var D;(D=[...R.current][C.current])==null||D.focus({preventScroll:!0,focusVisible:T.current}),T.current=!1,f(y)},"onChange")}),B=u.useRef(m),X=u.useRef(m);u.useEffect(()=>{const y=w?k==null?void 0:k.ownerDocument.getElementById(w):k==null?void 0:k.closest("form");if(y instanceof HTMLFormElement){const N=h(()=>v(X.current),"reset");return y.addEventListener("reset",N),()=>y.removeEventListener("reset",N)}},[k,w,v]);function I(y){const N=_e(m,y);E(y,N)}h(I,"handleSlideStart");function $(y){E(y,C.current)}h($,"handleSlideMove");function M(){String(m)!==String(B.current)&&g(m)}h(M,"handleSlideEnd");function E(y,N,{commit:D}={commit:!1}){const fe=ce(d),te=z(Math.round((y-i)/d)*d+i,fe),G=ye(te,[i,n]);v((L=[])=>{const V=Te(L,G,N);if(De(V,c*d)){C.current=V.indexOf(G);const me=String(V)!==String(L);return me&&D&&g(V),me?V:L}else return L})}return h(E,"updateValues"),t.jsx(nt,{scope:e.__scopeSlider,name:a,disabled:p,min:i,max:n,valueIndexToChangeRef:C,thumbs:R.current,values:m,orientation:l,form:w,children:t.jsx(oe.Provider,{scope:e.__scopeSlider,children:t.jsx(oe.Slot,{scope:e.__scopeSlider,children:t.jsx(_,{"aria-disabled":p,"data-disabled":p?"":void 0,...S,ref:b,onPointerDown:F(S.onPointerDown,()=>{p||(B.current=m,T.current=!1)}),min:i,max:n,inverted:j,onSlideStart:p?void 0:I,onSlideMove:p?void 0:$,onSlideEnd:p?void 0:M,onHomeKeyDown:()=>{p||(T.current=!0,E(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(T.current=!0,E(n,m.length-1,{commit:!0}))},onStepKeyDown:({event:y,direction:N})=>{if(!p){T.current=!0;const te=je.includes(y.key)||y.shiftKey&&ke.includes(y.key)?10:1,G=C.current,L=m[G],V=Ie(L,{min:i,step:d,direction:N,multiplier:te});E(V,G,{commit:!0})}}})})})})},"Slider")),[Re,Me]=ae(Y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ot=u.forwardRef(h(function(e,s){const{min:a,max:i,dir:n,inverted:d,onSlideStart:l,onSlideMove:p,onSlideEnd:c,onStepKeyDown:o,...x}=e,[f,g]=u.useState(null),j=H(s,g),w=u.useRef(void 0),S=He(n),R=S==="ltr",C=R&&!d||!R&&d;function T(A){const _=w.current||f.getBoundingClientRect(),k=[0,_.width],b=ee(k,C?[a,i]:[i,a]);return w.current=_,b(A-_.left)}return h(T,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:C?"left":"right",endEdge:C?"right":"left",direction:C?1:-1,size:"width",children:t.jsx(Ee,{dir:S,"data-orientation":"horizontal",...x,ref:j,style:{...x.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:A=>{const _=T(A.clientX);l==null||l(_)},onSlideMove:A=>{const _=T(A.clientX);p==null||p(_)},onSlideEnd:()=>{w.current=void 0,c==null||c()},onStepKeyDown:A=>{const k=Ce[C?"from-left":"from-right"].includes(A.key);o==null||o({event:A,direction:k?-1:1})}})})},"SliderHorizontal")),it=u.forwardRef(h(function(e,s){const{min:a,max:i,inverted:n,onSlideStart:d,onSlideMove:l,onSlideEnd:p,onStepKeyDown:c,...o}=e,x=u.useRef(null),f=H(s,x),g=u.useRef(void 0),j=!n;function w(S){const R=g.current||x.current.getBoundingClientRect(),C=[0,R.height],A=ee(C,j?[i,a]:[a,i]);return g.current=R,A(S-R.top)}return h(w,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:t.jsx(Ee,{"data-orientation":"vertical",...o,ref:f,style:{...o.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const R=w(S.clientY);d==null||d(R)},onSlideMove:S=>{const R=w(S.clientY);l==null||l(R)},onSlideEnd:()=>{g.current=void 0,p==null||p()},onStepKeyDown:S=>{const C=Ce[j?"from-bottom":"from-top"].includes(S.key);c==null||c({event:S,direction:C?-1:1})}})})},"SliderVertical")),Ee=u.forwardRef(h(function(e,s){const{__scopeSlider:a,onSlideStart:i,onSlideMove:n,onSlideEnd:d,onHomeKeyDown:l,onEndKeyDown:p,onStepKeyDown:c,...o}=e,x=W(Y,a);return t.jsx(U.span,{...o,ref:s,onKeyDown:F(e.onKeyDown,f=>{f.key==="Home"?(l(f),f.preventDefault()):f.key==="End"?(p(f),f.preventDefault()):je.concat(ke).includes(f.key)&&(c(f),f.preventDefault())}),onPointerDown:F(e.onPointerDown,f=>{const g=f.target;g.setPointerCapture(f.pointerId),f.preventDefault(),x.thumbs.has(g)?g.focus({preventScroll:!0,focusVisible:!1}):i(f)}),onPointerMove:F(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&n(f)}),onPointerUp:F(e.onPointerUp,f=>{const g=f.target;g.hasPointerCapture(f.pointerId)&&(g.releasePointerCapture(f.pointerId),d(f))})})},"SliderImpl")),at="SliderTrack",lt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(at,a);return t.jsx(U.span,{"data-disabled":n.disabled?"":void 0,"data-orientation":n.orientation,...i,ref:s})},"SliderTrack")),he="SliderRange",ct=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(he,a),d=Me(he,a),l=u.useRef(null),p=H(s,l),c=n.values.length,o=n.values.map(g=>le(g,n.min,n.max)),x=c>1?Math.min(...o):0,f=100-Math.max(...o);return t.jsx(U.span,{"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,...i,ref:p,style:{...e.style,[d.startEdge]:x+"%",[d.endEdge]:f+"%"}})},"SliderRange")),dt="SliderThumb",[ut,Pe]=ae(dt),ft="SliderThumbProvider";function Ae(r){const{__scopeSlider:e,name:s,children:a,internal_do_not_use_render:i}=r,n=W(ft,e),d=tt(e),[l,p]=u.useState(null),c=u.useMemo(()=>l?d().findIndex(S=>S.ref.current===l):-1,[d,l]),o=Ke(l),x=l?!!n.form||!!l.closest("form"):!0,f=n.values[c],g=s??(n.name?n.name+(n.values.length>1?"[]":""):void 0),j=f===void 0?0:le(f,n.min,n.max);u.useEffect(()=>{if(l)return n.thumbs.add(l),()=>{n.thumbs.delete(l)}},[l,n.thumbs]);const w={value:f,name:g,form:n.form,isFormControl:x,index:c,thumb:l,onThumbChange:p,percent:j,size:o};return t.jsx(ut,{scope:e,...w,children:Ve(i)?i(w):a})}h(Ae,"SliderThumbProvider");var ne="SliderThumbTrigger",mt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(ne,a),d=Me(ne,a),{index:l,value:p,percent:c,size:o,onThumbChange:x}=Pe(ne,a),f=H(s,x),g=Ne(l,n.values.length),j=o==null?void 0:o[d.size],w=j?$e(j,c,d.direction):0;return t.jsx("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${c}% + ${w}px)`},children:t.jsx(oe.ItemSlot,{scope:a,children:t.jsx(U.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":n.min,"aria-valuenow":p,"aria-valuemax":n.max,"aria-orientation":n.orientation,"data-orientation":n.orientation,"data-disabled":n.disabled?"":void 0,tabIndex:n.disabled?void 0:0,...i,ref:f,style:p===void 0?{display:"none"}:e.style,onFocus:F(e.onFocus,()=>{n.valueIndexToChangeRef.current=l})})})})},"SliderThumbTrigger")),pt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,name:i,...n}=e;return t.jsx(Ae,{__scopeSlider:a,name:i,internal_do_not_use_render:({index:d,isFormControl:l})=>t.jsxs(t.Fragment,{children:[t.jsx(mt,{...n,ref:s,__scopeSlider:a}),l?t.jsx(ht,{__scopeSlider:a},d):null]})})},"SliderThumb")),xt="SliderBubbleInput",ht=u.forwardRef(h(function({__scopeSlider:e,...s},a){const{value:i,name:n,form:d}=Pe(xt,e),l=u.useRef(null),p=H(l,a),c=Ge(i);return u.useEffect(()=>{const o=l.current;if(!o)return;const x=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(x,"value").set;if(c!==i&&g){const j=new Event("input",{bubbles:!0});g.call(o,i),o.dispatchEvent(j)}},[c,i]),t.jsx(U.input,{style:{display:"none"},name:n,form:d,...s,ref:p,defaultValue:i})},"SliderBubbleInput"));function Te(r=[],e,s){const a=[...r];return a[s]=e,a.sort((i,n)=>i-n)}h(Te,"getNextSortedValues");function le(r,e,s){const n=100/(s-e)*(r-e);return ye(n,[0,100])}h(le,"convertValueToPercentage");function Ne(r,e){return e>2?`Value ${r+1} of ${e}`:e===2?["Minimum","Maximum"][r]:void 0}h(Ne,"getLabel");function _e(r,e){if(r.length===1)return 0;const s=r.map(i=>Math.abs(i-e)),a=Math.min(...s);return s.indexOf(a)}h(_e,"getClosestValueIndex");function $e(r,e,s){const a=r/2,n=ee([0,50],[0,a]);return(a-n(e)*s)*s}h($e,"getThumbInBoundsOffset");function Be(r){return r.slice(0,-1).map((e,s)=>r[s+1]-e)}h(Be,"getStepsBetweenValues");function De(r,e){if(e>0){const s=Be(r);return Math.min(...s)>=e}return!0}h(De,"hasMinStepsBetweenValues");function ee(r,e){return s=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const a=(e[1]-e[0])/(r[1]-r[0]);return e[0]+a*(s-r[0])}}h(ee,"linearScale");function ce(r){if(!Number.isFinite(r))return 0;const e=r.toString();if(e.includes("e")){const[a,i]=e.split("e"),n=a.split(".")[1]||"",d=Number(i);return Math.max(0,n.length-d)}const s=e.split(".")[1];return s?s.length:0}h(ce,"getDecimalCount");function z(r,e){const s=Math.pow(10,e);return Math.round(r*s)/s}h(z,"roundValue");function Ie(r,{min:e,step:s,direction:a,multiplier:i}){const n=ce(s),d=(r-e)/s,l=Math.round(d),p=z(l*s+e,n)===z(r,n);let c;return p?c=l+i*a:a>0?c=Math.ceil(d):c=Math.floor(d),z(c*s+e,n)}h(Ie,"getNextStepValue");function Ve(r){return typeof r=="function"}h(Ve,"isFunction");function gt({className:r,defaultValue:e,value:s,min:a=0,max:i=100,...n}){const d=u.useMemo(()=>Array.isArray(s)?s:Array.isArray(e)?e:[a,i],[s,e,a,i]);return t.jsxs(st,{"data-slot":"slider",defaultValue:e,value:s,min:a,max:i,className:q("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...n,children:[t.jsx(lt,{"data-slot":"slider-track",className:q("bg-dui-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:t.jsx(ct,{"data-slot":"slider-range",className:q("bg-dui-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(l,p)=>t.jsx(pt,{"data-slot":"slider-thumb",className:q("border-dui-primary hover:ring-dui-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none!",ze)},p))]})}const ge={light:{heroGlow:"28",heroGlowOuter:"14",pillBgStart:"20",pillBgEnd:"14",pillBorder:"50",pillGlow:"30"},dark:{heroGlow:"18",heroGlowOuter:"08",pillBgStart:"12",pillBgEnd:"08",pillBorder:"40",pillGlow:"33"}};function bt(){return document.documentElement.classList.contains("dark")}function St(){return!1}function yt(r){const e=new MutationObserver(s=>{for(const a of s)if(a.attributeName==="class"){r();return}});return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()}function de(){return u.useSyncExternalStore(yt,bt,St)}function vt(){return de()?ge.dark:ge.light}function wt({traits:r,onChange:e,onSliderChange:s}){const a=u.useCallback((i,n)=>{s==null||s(i,n),e({...r,[i]:n})},[r,e,s]);return t.jsx("div",{className:"space-y-4",children:Ue.map(i=>t.jsx(jt,{name:i,level:r[i]??3,onChange:a},i))})}function jt({name:r,level:e,onChange:s}){const a=Ye[r][e];return t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between text-sm",children:[t.jsx("span",{className:"font-medium capitalize",children:r}),t.jsxs("span",{className:"text-muted-foreground",children:[e,"/5 ",a.label]})]}),t.jsx(gt,{value:[e],onValueChange:([i])=>s(r,i),min:1,max:5,step:1,"aria-label":`${r} trait level`})]})}const kt=ve("inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium transition-[color,background-color,border-color,box-shadow]",{variants:{size:{sm:"text-2xs px-2.5 py-1",md:"px-3 py-1 text-xs"},state:{rest:"bg-accent text-muted-foreground hover:text-foreground border-transparent",active:"text-foreground",glowing:"text-foreground"}},defaultVariants:{size:"md",state:"rest"}}),Ct=ve("",{variants:{gradient:{true:"bg-clip-text text-transparent",false:""}},defaultVariants:{gradient:!1}});function Rt({emoji:r,name:e,colors:s,size:a="md",state:i="rest",gradientText:n=!1,className:d,style:l,...p}){const c=de(),o=vt(),x=i==="active"||i==="glowing";return t.jsxs("button",{type:"button",className:P(kt({size:a,state:i}),d),style:{...x?{borderColor:c?s.stroke+o.pillBorder:s.stroke+"AA",background:`linear-gradient(135deg, ${s.nebula}${o.pillBgStart}, ${s.wisp}${o.pillBgEnd})`,...i==="glowing"?{boxShadow:`0 0 12px ${s.nebula}${o.pillGlow}`}:{}}:{},...l},...p,children:[t.jsx("span",{children:r}),t.jsx("span",{className:Ct({gradient:n}),style:n?{backgroundImage:`linear-gradient(135deg, ${s.stroke}, ${s.strokeEnd})`,...c?{}:{filter:"brightness(0.65) saturate(1.3)"}}:void 0,children:e})]})}const Mt=["Verbosity","Autonomy","Chaos","Creativity","Humor","Spice"],J=["verbosity","autonomy","chaos","creativity","humor","spice"],Z=6,ue=5,be=3,Et=800,Pt=600,Se={light:{nebulaCenter:.45,nebulaMid:.25,wispStart:.2,fillStart:.25,fillEnd:.15,haloBase:.25,haloAmplitude:.12,breatheMin:.25,breatheMax:.4,guideBase:.1,guideStep:.04,axis:.12,stardustPeak:1,glowBlur:12,vertexBlur:4},dark:{nebulaCenter:.35,nebulaMid:.15,wispStart:.12,fillStart:.35,fillEnd:.25,haloBase:.15,haloAmplitude:.1,breatheMin:.15,breatheMax:.25,guideBase:.06,guideStep:.02,axis:.08,stardustPeak:.8,glowBlur:10,vertexBlur:4}},At=[{r:1.2,dur:"9s",fade:"4.5s",begin:"0s",path:"M0,0 C30,-40 60,0 40,40 C20,60 -20,40 -30,10 C-40,-20 -10,-50 0,0"},{r:.9,dur:"7s",fade:"3.5s",begin:"0s",path:"M0,0 C-20,30 -40,20 -30,-10 C-20,-30 10,-40 20,-20 C30,0 20,30 0,0"},{r:1,dur:"11s",fade:"5s",begin:"0s",path:"M0,0 C40,10 30,50 0,40 C-30,30 -40,-10 -20,-30 C0,-50 30,-20 0,0"},{r:.7,dur:"8s",fade:"4s",begin:"2s",path:"M0,0 C15,-35 45,-15 35,20 C25,45 -15,40 -25,15 C-35,-10 -5,-40 0,0"},{r:1.1,dur:"12s",fade:"6s",begin:"1s",path:"M0,0 C-25,25 -45,5 -30,-20 C-15,-45 20,-35 30,-10 C40,15 15,35 0,0"}];function Q(r,e,s,a){const i=Math.PI*2*r/Z-Math.PI/2,n=e/ue*a;return{x:s+n*Math.cos(i),y:s+n*Math.sin(i)}}function ie(r){return r.map(e=>`${e.x},${e.y}`).join(" ")}function Tt(r,e,s){return ie(Array.from({length:Z},(a,i)=>Q(i,r*ue,e,s)))}function Nt(r){return r<.5?4*r*r*r:1-(-2*r+2)**3/2}function _t({traits:r,colors:e=we,size:s=180,animated:a=!0,className:i}){const n=u.useId().replace(/:/g,""),d=de(),l=d?Se.dark:Se.light,p=u.useRef(l);p.current=l;const c=d?{strokeStart:e.stroke,strokeEnd:e.strokeEnd,fillStart:e.fill,fillEnd:e.fillEnd,dot:e.dot,glow:e.glow}:{strokeStart:e.fill,strokeEnd:e.fillEnd,fillStart:e.stroke,fillEnd:e.strokeEnd,dot:e.fill,glow:e.stroke},o=s/2,x=s*.32,f=x+16,g=s/200,j=u.useRef(null),w=u.useRef(null),S=u.useRef([]),R=u.useRef([]),C=u.useRef({current:{...r},from:null,target:{...r},morphStart:0,breathe:0}),T=u.useRef(r);u.useEffect(()=>{const b=T.current;if(J.some(v=>b[v]!==r[v])){const v=C.current;if(a){v.from={...v.current},v.target={...r},v.morphStart=performance.now();const B=w.current;if(B){const X=performance.now();(function I(){const $=Math.min((performance.now()-X)/Pt,1),M=1-(1-$)*(1-$);B.setAttribute("r",String(x*(.7+.6*M))),B.setAttribute("opacity",String(.4*(1-M))),$<1&&requestAnimationFrame(I)})()}}else Object.assign(v.current,r),Object.assign(v.target,r)}T.current=r},[r,a,x]),u.useEffect(()=>{if(!a)return;let b;const m=C.current;function v(){var $;m.breathe+=.015;const B=1+Math.sin(m.breathe)*.04;if(m.from){const M=Math.min((performance.now()-m.morphStart)/Et,1),E=Nt(M);for(const y of J)m.current[y]=m.from[y]+(m.target[y]-m.from[y])*E;M>=1&&(m.from=null,Object.assign(m.current,m.target))}const I=J.map(M=>m.current[M]).map((M,E)=>Q(E,M*B,o,x));($=j.current)==null||$.setAttribute("points",ie(I)),I.forEach((M,E)=>{const y=S.current[E],N=R.current[E];if(y){y.setAttribute("cx",String(M.x)),y.setAttribute("cy",String(M.y)),y.setAttribute("r",String(8+Math.sin(m.breathe+E*1.2)*3));const D=p.current;y.setAttribute("opacity",String(D.haloBase+Math.sin(m.breathe+E)*D.haloAmplitude))}N&&(N.setAttribute("cx",String(M.x)),N.setAttribute("cy",String(M.y)),N.setAttribute("r",String(3.5+Math.sin(m.breathe+E*.8)*.8)))}),b=requestAnimationFrame(v)}return b=requestAnimationFrame(v),()=>cancelAnimationFrame(b)},[a,o,x]);const A=J.map((b,m)=>Q(m,r[b],o,x)),_=ie(A),k={transition:"stop-color 0.6s ease"},O={transition:"fill 0.6s ease"};return t.jsxs("svg",{viewBox:`0 0 ${s} ${s}`,className:P("aspect-square",i),"aria-label":"Personality radar chart",role:"img",children:[t.jsxs("defs",{children:[d?t.jsxs("filter",{id:`ng-${n}`,x:"-80%",y:"-80%",width:"260%",height:"260%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.glowBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}):t.jsx("filter",{id:`ng-${n}`,x:"-50%",y:"-30%",width:"200%",height:"200%",children:t.jsx("feDropShadow",{dx:"0",dy:"2",stdDeviation:"6",floodColor:c.strokeStart,floodOpacity:"0.18"})}),t.jsxs("filter",{id:`vg-${n}`,x:"-100%",y:"-100%",width:"300%",height:"300%",children:[t.jsx("feGaussianBlur",{stdDeviation:l.vertexBlur,result:"blur"}),t.jsxs("feMerge",{children:[t.jsx("feMergeNode",{in:"blur"}),t.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),t.jsxs("radialGradient",{id:`nc-${n}`,cx:"50%",cy:"50%",r:"50%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.nebula,stopOpacity:l.nebulaCenter,...k}}),t.jsx("stop",{offset:"50%",style:{stopColor:e.nebula,stopOpacity:l.nebulaMid,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("radialGradient",{id:`nw-${n}`,cx:"35%",cy:"35%",r:"60%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:e.wisp,stopOpacity:l.wispStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:"var(--nebula-edge)"},stopOpacity:0})]}),t.jsxs("linearGradient",{id:`sf-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.fillStart,stopOpacity:l.fillStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.fillEnd,stopOpacity:l.fillEnd,...k}})]}),t.jsxs("linearGradient",{id:`ss-${n}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[t.jsx("stop",{offset:"0%",style:{stopColor:c.strokeStart,...k}}),t.jsx("stop",{offset:"100%",style:{stopColor:c.strokeEnd,...k}})]})]}),t.jsx("circle",{cx:o,cy:o,r:s*.44,fill:`url(#nc-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};360 ${o} ${o}`,dur:"90s",repeatCount:"indefinite"})}),t.jsx("ellipse",{cx:o*.94,cy:o*.97,rx:s*.35,ry:s*.25,fill:`url(#nw-${n})`,children:a&&t.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${o} ${o};-360 ${o} ${o}`,dur:"60s",repeatCount:"indefinite"})}),a&&t.jsxs("circle",{cx:o,cy:o,r:x*.92,fill:"none",style:{stroke:c.strokeStart,transition:"stroke 0.6s ease"},strokeWidth:.3,opacity:l.breatheMin,children:[t.jsx("animate",{attributeName:"r",values:`${x*.85};${x*1.08};${x*.85}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"}),t.jsx("animate",{attributeName:"opacity",values:`${l.breatheMin};${l.breatheMax};${l.breatheMin}`,dur:"4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0.4 0 0.6 1;0.4 0 0.6 1"})]}),a&&t.jsx("g",{transform:`translate(${o},${o}) scale(${g})`,children:At.map((b,m)=>t.jsxs("circle",{r:b.r,style:{fill:c.dot,...O},children:[t.jsx("animateMotion",{dur:b.dur,repeatCount:"indefinite",begin:b.begin,path:b.path}),t.jsx("animate",{attributeName:"opacity",values:`0;${l.stardustPeak};0`,dur:b.fade,repeatCount:"indefinite",begin:b.begin})]},`star-${m}`))}),t.jsx("circle",{ref:w,cx:o,cy:o,r:0,fill:e.nebula,opacity:0}),Array.from({length:be},(b,m)=>t.jsx("polygon",{points:Tt((m+1)/be,o,x),fill:"none",stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.guideBase+m*l.guideStep},`ring-${m}`)),Array.from({length:Z},(b,m)=>{const v=Q(m,ue,o,x);return t.jsx("line",{x1:o,y1:o,x2:v.x,y2:v.y,stroke:d?"currentColor":c.strokeStart,strokeWidth:.5,opacity:l.axis},`axis-${m}`)}),t.jsx("polygon",{ref:j,points:_,fill:`url(#sf-${n})`,stroke:`url(#ss-${n})`,strokeWidth:2,strokeLinejoin:"round",filter:`url(#ng-${n})`}),A.map((b,m)=>t.jsx("circle",{ref:v=>{S.current[m]=v},cx:b.x,cy:b.y,r:8,style:{fill:c.glow,...O},opacity:l.haloBase},`halo-${m}`)),A.map((b,m)=>t.jsx("circle",{ref:v=>{R.current[m]=v},cx:b.x,cy:b.y,r:d?4:4.5,style:{fill:c.dot,...O},stroke:d?"none":"white",strokeWidth:d?0:1.5,filter:`url(#vg-${n})`},`dot-${m}`)),Mt.map((b,m)=>{const v=Math.PI*2*m/Z-Math.PI/2;return t.jsx("text",{x:o+f*Math.cos(v),y:o+f*Math.sin(v),textAnchor:"middle",dominantBaseline:"middle",fill:"currentColor",opacity:.5,fontSize:8,className:"select-none",children:b},b)})]})}const se={duration:.2,ease:"easeInOut"};function Lt({traits:r,onTraitsChange:e,compact:s=!1,layout:a="inline",sampleLabel:i="How this agent talks",className:n}){const[d,l]=u.useState("presets"),p=We()??!1,c=a==="stacked",o=Xe(r),x=(o==null?void 0:o.colors)??we,f=c?Qe(r,o==null?void 0:o.id):"",g=u.useCallback(S=>{e(S.traits),l("presets"),K()},[e]),j=u.useCallback(()=>{l("custom"),K()},[]),w=u.useCallback(()=>{l("presets"),K()},[]);return t.jsxs("div",{className:P("@container/picker w-full",n),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-3",!c&&"@[480px]/picker:flex-row @[480px]/picker:items-center @[480px]/picker:gap-6",c&&"gap-4"),children:[t.jsxs("div",{className:P("flex flex-col items-center gap-1",!c&&"@[480px]/picker:w-[200px] @[480px]/picker:shrink-0",c&&"gap-1.5"),children:[t.jsx("div",{"data-testid":"personality-radar",children:t.jsx(_t,{traits:r,colors:x,size:c?240:s?180:200,className:P(c&&"w-full max-w-[240px]",!c&&(s?"w-[90%] max-w-[240px]":"w-full max-w-[200px]"))})}),t.jsxs("div",{className:"text-center",children:[t.jsx("h3",{className:P("bg-clip-text font-bold text-transparent",c?"text-base":"text-sm"),style:{backgroundImage:`linear-gradient(135deg, ${x.stroke}, ${x.strokeEnd})`},children:(o==null?void 0:o.name)??"Custom"}),t.jsx("p",{className:P("text-muted-foreground mt-0.5",c?"text-xs":"text-2xs"),children:(o==null?void 0:o.tagline)??"A custom blend of personality traits."})]})]}),t.jsx("div",{className:P("flex w-full min-w-0 flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:t.jsx(pe,{mode:"wait",initial:!1,children:d==="presets"?t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex max-w-sm flex-wrap justify-center gap-1.5",!c&&"@[480px]/picker:justify-start"),"data-testid":"preset-pills",children:[qe.map(S=>t.jsx(Rt,{emoji:S.emoji,name:S.name,colors:S.colors,size:s?"sm":"md",state:(o==null?void 0:o.id)===S.id?"glowing":"rest",onClick:()=>g(S)},S.id)),t.jsxs("button",{type:"button",onClick:j,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"custom-toggle",children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]},"presets"):t.jsxs(re.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:se,className:P("flex w-full flex-col items-center gap-3",!c&&"@[480px]/picker:items-start"),children:[t.jsxs("div",{className:"flex gap-1.5","data-testid":"custom-mode-pills",children:[t.jsxs("button",{type:"button",onClick:w,className:P("inline-flex shrink-0 items-center gap-1.5 rounded-full border border-dashed font-medium transition-[color,border-color]","text-muted-foreground hover:text-foreground hover:border-foreground/20 border-border",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),"data-testid":"presets-toggle",children:[t.jsx("span",{children:"←"}),t.jsx("span",{children:"Presets"})]}),t.jsxs("span",{className:P("bg-accent text-foreground inline-flex shrink-0 items-center gap-1.5 rounded-full border font-medium","border-foreground/15",s?"text-2xs px-2.5 py-1":"px-3 py-1 text-xs"),children:[t.jsx(xe,{className:"size-3"}),t.jsx("span",{children:"Custom"})]})]}),t.jsx("div",{className:P("w-full",s?"max-w-sm":"max-w-md"),onPointerDown:()=>K(),children:t.jsx(wt,{traits:r,onChange:e,onSliderChange:()=>K()})})]},"custom")})})]}),t.jsxs("div",{className:P("w-full max-w-sm",c?"mt-4 flex flex-col items-center":"hidden"),children:[t.jsx("span",{className:"text-muted-foreground text-3xs self-start font-medium tracking-wider uppercase",children:i}),t.jsx("div",{className:"border-primary/40 bg-accent/40 mt-1 w-full rounded-md border-l-2 py-2 pr-3 pl-3",children:c?t.jsx(pe,{mode:"wait",initial:!1,children:t.jsxs(re.p,{"data-testid":"personality-sample",initial:p?!1:{opacity:0,y:4},animate:{opacity:1,y:0},exit:p?void 0:{opacity:0,y:-4},transition:se,className:"text-muted-foreground text-xs leading-relaxed italic",children:["“",f,"”"]},f)}):t.jsx("p",{className:"text-muted-foreground text-xs leading-relaxed italic",children:(o==null?void 0:o.sampleResponse)??"Custom blend. Pick a preset to see a sample reply."})})]})]})}const $t=400;function Ft(r,e){const s=(r==null?void 0:r.traits)??Je,[a,i]=u.useState(null),n=u.useRef(null),d=u.useRef(null),l=u.useRef({agent:r,update:e});u.useEffect(()=>{l.current={agent:r,update:e}});const p=(r==null?void 0:r.id)??null;u.useEffect(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null),d.current=null,i(null)},[p]);const c=u.useCallback(()=>{n.current!==null&&(clearTimeout(n.current),n.current=null);const x=d.current;if(d.current=null,x===null)return;const{agent:f,update:g}=l.current;f!==null&&g(Ze(f,x))},[]);u.useEffect(()=>()=>c(),[c]);const o=u.useCallback(x=>{i(x),d.current=x,n.current!==null&&clearTimeout(n.current),n.current=setTimeout(c,$t)},[c]);return{traits:a??s,onTraitsChange:o}}export{Lt as P,Ft as u};
@@ -0,0 +1,11 @@
1
+ import{W as b,j as t,G as m,B as y,gg as C,hG as v,aO as A,fq as f,aY as N,b7 as R,c4 as T,cc as E,n as k,l as M,hH as L,aW as U,r as d,bd as z,hI as O,ct as P,hJ as _,aZ as I,as as q,d5 as F,cw as G,cx as B,cy as H,cz as Y,cA as W,cB as $,dw as J,eY as Z}from"./index-Dc5cpBoO.js";import{R as K}from"./use-jump-back-in-ChH1FSEK.js";import{u as V}from"./use-relay-config-D5iieBXl.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 w={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};w.node;const S=b(w);/**
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 D={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};D.node;const Q=b(D);function X(){return!0}const ee={indigo:{box:"bg-indigo-500/10",icon:"text-indigo-500"},purple:{box:"bg-purple-500/10",icon:"text-purple-500"},emerald:{box:"bg-emerald-500/10",icon:"text-emerald-500"}};function h({icon:e,tint:n,title:s,subtitle:o,highlights:a,primaryAction:r,secondaryAction:c}){const l=ee[n];return t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:m("flex size-10 items-center justify-center rounded-lg",l.box),children:t.jsx(e,{className:m("size-5",l.icon),"aria-hidden":!0})}),t.jsxs("div",{children:[t.jsx("h3",{className:"text-sm font-medium",children:s}),t.jsx("p",{className:"text-muted-foreground text-xs",children:o})]})]}),t.jsx("div",{className:"bg-muted/50 space-y-3 rounded-lg p-4",children:a.map(({icon:i,title:u,description:p})=>t.jsxs("div",{className:"flex items-start gap-3",children:[t.jsx(i,{className:"text-muted-foreground mt-0.5 size-4","aria-hidden":!0}),t.jsxs("div",{children:[t.jsx("p",{className:"text-xs font-medium",children:u}),t.jsx("p",{className:"text-muted-foreground text-xs",children:p})]})]},u))}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx(y,{variant:"ghost",size:"sm",onClick:c.onClick,children:c.label}),t.jsx(y,{size:"sm",onClick:r.onClick,children:r.label})]})]})}function te({onClose:e}){const n=C(),s=()=>{e(),n()};return t.jsx(h,{icon:f,tint:"purple",title:"Get notified where you already are",subtitle:"Slack, Telegram, and more",highlights:[{icon:v,title:"Notifications",description:"Hear when agents finish or need you"},{icon:A,title:"Reply from chat",description:"Answer agents from Telegram or Slack"}],primaryAction:{label:"Connect Telegram & Slack",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}function se({onClose:e}){const{open:n}=N(),s=()=>{e(),n()};return t.jsx(h,{icon:S,tint:"indigo",title:"Agents that work on a schedule",subtitle:"Put any skill on a timer",highlights:[{icon:R,title:"Any schedule",description:"Daily, hourly, or your own timing"},{icon:K,title:"Come back to results",description:"Agents start the work for you"}],primaryAction:{label:"Create a schedule",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}function ne({onClose:e}){const n=T(),s=()=>{e(),n({...M.team()})};return t.jsx(h,{icon:k,tint:"emerald",title:"Let your agents work together",subtitle:"Agents can message each other",highlights:[{icon:E,title:"Shared work",description:"Agents hand tasks to each other"},{icon:Q,title:"Topology view",description:"See which agents talk to each other"}],primaryAction:{label:"Open Team",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}const pe=[{id:"remote-access",placements:["dashboard-sidebar"],priority:90,shouldShow:e=>!e.isDesktopApp&&!e.isHub&&!e.remoteAccessConfigured,content:{icon:L,title:"Use DorkOS on the go",shortDescription:"Access your agents from anywhere",ctaLabel:"Learn more"},action:{type:"action",handler:()=>U.getState().setRemoteAccessOpen(!0)}},{id:"relay-adapters",placements:["dashboard-sidebar"],priority:80,shouldShow:e=>e.isRelayEnabled&&!e.hasAdapter("slack")&&!e.hasAdapter("telegram"),content:{icon:f,title:"Connect to Slack & Telegram",shortDescription:"Get notifications where you already are",ctaLabel:"Learn more"},action:{type:"dialog",component:te}},{id:"schedules",placements:["dashboard-sidebar"],priority:70,shouldShow:e=>e.isTasksEnabled&&e.sessionCount>0&&e.taskCount===0,content:{icon:S,title:"Run agents on a schedule",shortDescription:"Come back to finished work",ctaLabel:"Set up",suggestion:{question:"Want agents working while you’re away?",action:"Set up a schedule"}},action:{type:"dialog",component:se}},{id:"agent-chat",placements:[],priority:60,shouldShow:e=>e.isMeshEnabled&&e.agentCount>=2,content:{icon:k,title:"Agents working together",shortDescription:"Let your agents collaborate",ctaLabel:"Learn more",suggestion:{question:"Want two agents to split a job?",action:"Show me"}},action:{type:"dialog",component:ne}}];function ge(e,n,s,o){return e.filter(a=>!s.includes(a.id)).filter(a=>a.shouldShow(n)).sort((a,r)=>r.priority-a.priority).slice(0,o)}function ae(){return X()}const x="dorkos-first-use-date",oe=1e3*60*60*24;function ie(){try{const e=localStorage.getItem(x);if(e){const s=new Date(e);if(!isNaN(s.getTime()))return s}const n=new Date;return localStorage.setItem(x,n.toISOString()),n}catch{return new Date}}function re(){const e=ie();return Math.floor((Date.now()-e.getTime())/oe)}function ce(){const[e]=d.useState(re);return e}function me(){const e=z(),n=ae(),s=V(),{sessions:o}=O(),{data:a}=P(),r=ce(),{data:c}=_(s),{data:l}=I(e),{data:i}=q(),u=((i==null?void 0:i.tunnel.enabled)??!1)||((i==null?void 0:i.tunnel.tokenConfigured)??!1);return{hasAdapter:d.useCallback(j=>c?c.some(g=>g.config.type===j&&g.status.state==="connected"):!1,[c]),isTasksEnabled:e,isMeshEnabled:n,isRelayEnabled:s,sessionCount:o.length,agentCount:(a==null?void 0:a.agents.length)??0,taskCount:(l==null?void 0:l.length)??0,daysSinceFirstUse:r,isDesktopApp:F(),remoteAccessConfigured:u,isHub:(i==null?void 0:i.serverRole)==="hub"}}function le({promo:e,open:n,onOpenChange:s}){const o=d.useCallback(()=>{s(!1)},[s]);if(e.action.type!=="dialog")return null;const a=e.action.component;return t.jsx(G,{open:n,onOpenChange:s,children:t.jsxs(B,{className:"max-h-[85vh] max-w-lg gap-0 p-0",children:[t.jsx(H,{}),t.jsxs(Y,{className:"p-4 pb-0",children:[t.jsx(W,{className:"text-sm font-medium",children:e.content.title}),t.jsx($,{className:"sr-only",children:e.content.shortDescription})]}),t.jsx(J,{className:"p-4",children:t.jsx(a,{onClose:o})})]})})}function ye(e){const[n,s]=d.useState(!1),{action:o}=e,a=d.useCallback(()=>{switch(o.type){case"dialog":s(!0);return;case"navigate":Z(o.to);return;case"action":o.handler();return;default:{const c=o;throw new Error(`Unhandled promo action: ${JSON.stringify(c)}`)}}},[o]),r=o.type==="dialog"?t.jsx(le,{promo:e,open:n,onOpenChange:s}):null;return{activate:a,dialog:r}}export{S as M,pe as P,ye as a,ge as s,me as u};
@@ -1 +1 @@
1
- import{ar as I,a3 as p,r as u,at as m}from"./index-C8-dwIPp.js";import{u as D}from"./use-update-config-Bad4g6mB.js";const l="dorkos-dismissed-promo-ids";let g=!1,r=[];const a=new Set;function E(s){return a.add(s),()=>{a.delete(s)}}function C(){return r}function P(s){if(!r.includes(s)){r=[...r,s];for(const e of a)e()}}function h(s){if(r.includes(s)){r=r.filter(e=>e!==s);for(const e of a)e()}}function v(){try{const s=localStorage.getItem(l);if(s===null)return[];const e=JSON.parse(s);return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}catch{return[]}}function A(){const{data:s}=I(),e=D(),o=p(),f=u.useSyncExternalStore(E,C),n=s==null?void 0:s.dismissedPromoIds,c=u.useMemo(()=>[...new Set([...n??[],...f])],[n,f]);u.useEffect(()=>{if(g||s===void 0)return;g=!0;const t=v();if(t.length===0)return;const i=[...new Set([...s.dismissedPromoIds,...t])];if(i.length===s.dismissedPromoIds.length){try{localStorage.removeItem(l)}catch{}return}e.mutate({ui:{promos:{dismissedIds:i}}},{onSuccess:()=>{try{localStorage.removeItem(l)}catch{}}})},[s,e]);const y=u.useCallback(t=>{if(c.includes(t))return;const i=[...n??[],t];P(t);const S=o.getQueryData(m.current());o.setQueryData(m.current(),d=>d===void 0?d:{...d,dismissedPromoIds:i}),e.mutate({ui:{promos:{dismissedIds:i}}},{onError:()=>{h(t),S!==void 0&&o.setQueryData(m.current(),S)}})},[c,n,o,e]);return{dismissedIds:c,dismissPromo:y}}export{A as u};
1
+ import{as as I,a3 as p,r as u,au as m}from"./index-Dc5cpBoO.js";import{u as D}from"./use-update-config-DhlbZldm.js";const l="dorkos-dismissed-promo-ids";let g=!1,r=[];const a=new Set;function E(s){return a.add(s),()=>{a.delete(s)}}function C(){return r}function P(s){if(!r.includes(s)){r=[...r,s];for(const e of a)e()}}function h(s){if(r.includes(s)){r=r.filter(e=>e!==s);for(const e of a)e()}}function v(){try{const s=localStorage.getItem(l);if(s===null)return[];const e=JSON.parse(s);return Array.isArray(e)?e.filter(o=>typeof o=="string"):[]}catch{return[]}}function A(){const{data:s}=I(),e=D(),o=p(),f=u.useSyncExternalStore(E,C),n=s==null?void 0:s.dismissedPromoIds,c=u.useMemo(()=>[...new Set([...n??[],...f])],[n,f]);u.useEffect(()=>{if(g||s===void 0)return;g=!0;const t=v();if(t.length===0)return;const i=[...new Set([...s.dismissedPromoIds,...t])];if(i.length===s.dismissedPromoIds.length){try{localStorage.removeItem(l)}catch{}return}e.mutate({ui:{promos:{dismissedIds:i}}},{onSuccess:()=>{try{localStorage.removeItem(l)}catch{}}})},[s,e]);const y=u.useCallback(t=>{if(c.includes(t))return;const i=[...n??[],t];P(t);const S=o.getQueryData(m.current());o.setQueryData(m.current(),d=>d===void 0?d:{...d,dismissedPromoIds:i}),e.mutate({ui:{promos:{dismissedIds:i}}},{onError:()=>{h(t),S!==void 0&&o.setQueryData(m.current(),S)}})},[c,n,o,e]);return{dismissedIds:c,dismissPromo:y}}export{A as u};
@@ -1 +1 @@
1
- import{a1 as h,a2 as E,r as T,bH as p,ap as a,bI as y,bJ as m,bK as A}from"./index-C8-dwIPp.js";import{A as D}from"./use-full-activity-feed-DrcMJL9m.js";const f=15,g=["dashboard-activity"],I=["Today","Yesterday","This week","Earlier"];function w(d){const s=new Date,e=new Date(s);e.setHours(0,0,0,0);const _=new Date(e);_.setDate(_.getDate()-1);const o=new Date(e);o.setDate(o.getDate()-o.getDay());const l=new Map;for(const n of d){const c=new Date(n.occurredAt);let i;c>=e?i="Today":c>=_?i="Yesterday":c>=o?i="This week":i="Earlier";const u=l.get(i)??[];u.push(n),l.set(i,u)}return I.filter(n=>l.has(n)).map(n=>({label:n,items:l.get(n)}))}function k(){const d=h(),{data:s,isLoading:e}=E({queryKey:g,queryFn:()=>d.listActivityEvents({limit:f}),staleTime:3e4,refetchOnWindowFocus:!0});return{groups:T.useMemo(()=>w((s==null?void 0:s.items)??[]),[s==null?void 0:s.items]),hasMore:(s==null?void 0:s.nextCursor)!=null,isLoading:e}}const r=[g,D],t={relay_message:r,relay_flow:r,relay_adapters_changed:r,relay_bindings_changed:r,extension_reloaded:r,task_run_failed:[...r,y],task_run_updated:[y],relay_dead_letter:[m],mesh_liveness_changed:[A],tasks_changed:r},S=1200;function v(d=S){const s=p({coalesceMs:d}),e=_=>s(_.map(o=>({queryKey:o})));a("relay_message",()=>e(t.relay_message)),a("relay_flow",()=>e(t.relay_flow)),a("relay_adapters_changed",()=>e(t.relay_adapters_changed)),a("relay_bindings_changed",()=>e(t.relay_bindings_changed)),a("extension_reloaded",()=>e(t.extension_reloaded)),a("task_run_failed",()=>e(t.task_run_failed)),a("task_run_updated",()=>e(t.task_run_updated)),a("relay_dead_letter",()=>e(t.relay_dead_letter)),a("mesh_liveness_changed",()=>e(t.mesh_liveness_changed)),a("tasks_changed",()=>e(t.tasks_changed))}export{v as a,k as u};
1
+ import{a1 as h,a2 as E,r as T,bG as p,ap as a,bH as y,bI as m,bJ as A}from"./index-Dc5cpBoO.js";import{A as D}from"./use-full-activity-feed-Cp3lYXdi.js";const f=15,g=["dashboard-activity"],I=["Today","Yesterday","This week","Earlier"];function w(d){const s=new Date,e=new Date(s);e.setHours(0,0,0,0);const _=new Date(e);_.setDate(_.getDate()-1);const o=new Date(e);o.setDate(o.getDate()-o.getDay());const l=new Map;for(const n of d){const c=new Date(n.occurredAt);let i;c>=e?i="Today":c>=_?i="Yesterday":c>=o?i="This week":i="Earlier";const u=l.get(i)??[];u.push(n),l.set(i,u)}return I.filter(n=>l.has(n)).map(n=>({label:n,items:l.get(n)}))}function k(){const d=h(),{data:s,isLoading:e}=E({queryKey:g,queryFn:()=>d.listActivityEvents({limit:f}),staleTime:3e4,refetchOnWindowFocus:!0});return{groups:T.useMemo(()=>w((s==null?void 0:s.items)??[]),[s==null?void 0:s.items]),hasMore:(s==null?void 0:s.nextCursor)!=null,isLoading:e}}const r=[g,D],t={relay_message:r,relay_flow:r,relay_adapters_changed:r,relay_bindings_changed:r,extension_reloaded:r,task_run_failed:[...r,y],task_run_updated:[y],relay_dead_letter:[m],mesh_liveness_changed:[A],tasks_changed:r},S=1200;function v(d=S){const s=p({coalesceMs:d}),e=_=>s(_.map(o=>({queryKey:o})));a("relay_message",()=>e(t.relay_message)),a("relay_flow",()=>e(t.relay_flow)),a("relay_adapters_changed",()=>e(t.relay_adapters_changed)),a("relay_bindings_changed",()=>e(t.relay_bindings_changed)),a("extension_reloaded",()=>e(t.extension_reloaded)),a("task_run_failed",()=>e(t.task_run_failed)),a("task_run_updated",()=>e(t.task_run_updated)),a("relay_dead_letter",()=>e(t.relay_dead_letter)),a("mesh_liveness_changed",()=>e(t.mesh_liveness_changed)),a("tasks_changed",()=>e(t.tasks_changed))}export{v as a,k as u};
@@ -1 +1 @@
1
- import{a5 as e,a6 as a}from"./index-C8-dwIPp.js";function r(){return e("relay")}function u(){return a("relay")}export{u as a,r as u};
1
+ import{a5 as e,a6 as a}from"./index-Dc5cpBoO.js";function r(){return e("relay")}function u(){return a("relay")}export{u as a,r as u};
@@ -1 +1 @@
1
- import{aJ as a,r,a1 as p,aK as E,aL as F}from"./index-C8-dwIPp.js";function g(e){const n=a(l=>l.forgetRoom);r.useEffect(()=>{if(e!==null)return()=>n(e)},[e,n])}function L(e){const n=p(),l=a(t=>{var o;return e?((o=t.intent[e])==null?void 0:o.leaderId)??null:null}),u=a(t=>t.startFollowing),s=a(t=>t.stopFollowing),c=a(t=>t.sweep),f=r.useCallback(t=>{e&&u(e,t)},[e,u]),w=r.useCallback(()=>{e&&s(e)},[e,s]);return r.useEffect(()=>{const t=setInterval(()=>c(),E);return()=>clearInterval(t)},[c]),r.useEffect(()=>{if(!e||l===null)return;let t=!0;const o=()=>{n.followRoomMember(e,l).catch(()=>{t&&s(e)})};o();const v=setInterval(o,F),i=()=>s(e);return window.addEventListener("blur",i),window.addEventListener("pagehide",i),()=>{t=!1,clearInterval(v),window.removeEventListener("blur",i),window.removeEventListener("pagehide",i),n.unfollowRoomMember(e).catch(()=>{})}},[n,e,l,s]),{following:l,follow:f,stop:w}}export{g as a,L as u};
1
+ import{aK as a,r,a1 as p,aL as E,aM as F}from"./index-Dc5cpBoO.js";function g(e){const n=a(l=>l.forgetRoom);r.useEffect(()=>{if(e!==null)return()=>n(e)},[e,n])}function L(e){const n=p(),l=a(t=>{var o;return e?((o=t.intent[e])==null?void 0:o.leaderId)??null:null}),u=a(t=>t.startFollowing),s=a(t=>t.stopFollowing),c=a(t=>t.sweep),f=r.useCallback(t=>{e&&u(e,t)},[e,u]),w=r.useCallback(()=>{e&&s(e)},[e,s]);return r.useEffect(()=>{const t=setInterval(()=>c(),E);return()=>clearInterval(t)},[c]),r.useEffect(()=>{if(!e||l===null)return;let t=!0;const o=()=>{n.followRoomMember(e,l).catch(()=>{t&&s(e)})};o();const v=setInterval(o,F),i=()=>s(e);return window.addEventListener("blur",i),window.addEventListener("pagehide",i),()=>{t=!1,clearInterval(v),window.removeEventListener("blur",i),window.removeEventListener("pagehide",i),n.unfollowRoomMember(e).catch(()=>{})}},[n,e,l,s]),{following:l,follow:f,stop:w}}export{g as a,L as u};
@@ -1 +1 @@
1
- import{r as p}from"./index-C8-dwIPp.js";function x({orderedIds:n,activeId:l,onActivate:a,onClose:f,getFallbackFocus:s}){const o=p.useRef(new Map),k=l&&n.includes(l)?l:n[0]??null,c=p.useCallback(e=>{var b;e&&((b=o.current.get(e))==null||b.focus())},[]),u=p.useCallback(e=>{a(e,"keyboard"),c(e)},[a,c]);return{getTabProps:p.useCallback(e=>({ref:t=>{t?o.current.set(e,t):o.current.delete(e)},tabIndex:e===k?0:-1,onClick:()=>a(e,"pointer"),onKeyDown:t=>{var i;const r=n.indexOf(e);if(r===-1)return;const D=n.length-1;switch(t.key){case"ArrowRight":t.preventDefault(),u(n[r===D?0:r+1]);break;case"ArrowLeft":t.preventDefault(),u(n[r===0?D:r-1]);break;case"Home":t.preventDefault(),u(n[0]);break;case"End":t.preventDefault(),u(n[D]);break;case"Delete":{if(!f)return;t.preventDefault();const w=n[r+1]??n[r-1]??null;f(e,"keyboard"),w?c(w):(i=s==null?void 0:s())==null||i.focus();break}}},...f?{"aria-keyshortcuts":"Delete"}:{}}),[n,k,a,f,s,u,c])}}export{x as u};
1
+ import{r as p}from"./index-Dc5cpBoO.js";function x({orderedIds:n,activeId:l,onActivate:a,onClose:f,getFallbackFocus:s}){const o=p.useRef(new Map),k=l&&n.includes(l)?l:n[0]??null,c=p.useCallback(e=>{var b;e&&((b=o.current.get(e))==null||b.focus())},[]),u=p.useCallback(e=>{a(e,"keyboard"),c(e)},[a,c]);return{getTabProps:p.useCallback(e=>({ref:t=>{t?o.current.set(e,t):o.current.delete(e)},tabIndex:e===k?0:-1,onClick:()=>a(e,"pointer"),onKeyDown:t=>{var i;const r=n.indexOf(e);if(r===-1)return;const D=n.length-1;switch(t.key){case"ArrowRight":t.preventDefault(),u(n[r===D?0:r+1]);break;case"ArrowLeft":t.preventDefault(),u(n[r===0?D:r-1]);break;case"Home":t.preventDefault(),u(n[0]);break;case"End":t.preventDefault(),u(n[D]);break;case"Delete":{if(!f)return;t.preventDefault();const w=n[r+1]??n[r-1]??null;f(e,"keyboard"),w?c(w):(i=s==null?void 0:s())==null||i.focus();break}}},...f?{"aria-keyshortcuts":"Delete"}:{}}),[n,k,a,f,s,u,c])}}export{x as u};