dorkos 0.128.0 → 0.130.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 (375) hide show
  1. package/dist/bin/cli.js +766 -517
  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-CmQERFxo.js → AboutPage-B2CzVj5W.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-Dw231W2w.js → ActivityErrorState-Dl-P-e0R.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-DVfeyA9u.js → ActivityPage-CW7tqLHb.js} +1 -1
  7. package/dist/client/assets/ActivityRow-Vy4aXWk-.js +1 -0
  8. package/dist/client/assets/{AdapterIcon-NqCDzgCI.js → AdapterIcon-aabKVZmM.js} +1 -1
  9. package/dist/client/assets/AdapterSetupWizard-C5Hs0xkG.js +2 -0
  10. package/dist/client/assets/{AgentOptionRow-BRJfZo2y.js → AgentOptionRow-CqIMxq9S.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-B7upjYRk.js → AgentPicker-C6mbTDJJ.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-DXJnLk6q.js → AgentRequestCard-C8GV5Sxn.js} +4 -4
  13. package/dist/client/assets/AppearancePage-C0JKrHsO.js +1 -0
  14. package/dist/client/assets/{ApplyToOverridesDialog-C_QQhNIf.js → ApplyToOverridesDialog-DWEi0MNt.js} +1 -1
  15. package/dist/client/assets/AttentionSignalRow-Cpu0lKYg.js +1 -0
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-G7vrCqeA.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-_zVrHu5s.js} +3 -3
  17. package/dist/client/assets/BindingDialog-4UeaJfUu.js +1 -0
  18. package/dist/client/assets/BlintzCanvas-DCXIQZM_.js +1231 -0
  19. package/dist/client/assets/{CanvasCsvContent-CtLpZnTs.js → CanvasCsvContent-D-0TuvVs.js} +4 -4
  20. package/dist/client/assets/CanvasFileContent-DqSx7lz9.js +2 -0
  21. package/dist/client/assets/CanvasModel3dContent-zTx660yQ.js +2 -0
  22. package/dist/client/assets/ChannelComposer-D4TYVkvO.js +45 -0
  23. package/dist/client/assets/{ChatAppsOff-CCZUzDIH.js → ChatAppsOff-BzfyQc55.js} +2 -2
  24. package/dist/client/assets/{CodeMirrorDiff-BCpYdhgZ.js → CodeMirrorDiff-BLWBYGLp.js} +1 -1
  25. package/dist/client/assets/{CodeMirrorEditor-BeCubxHV.js → CodeMirrorEditor-D0q3ETxK.js} +1 -1
  26. package/dist/client/assets/{CommitmentList-BZtfTnwg.js → CommitmentList-BoMiLsRe.js} +1 -1
  27. package/dist/client/assets/{CommitmentsPage-DmurDgxV.js → CommitmentsPage-_7mNJVUZ.js} +1 -1
  28. package/dist/client/assets/{ComputerResourceView-Bik6GLKp.js → ComputerResourceView-Bo2LaCJf.js} +1 -1
  29. package/dist/client/assets/{ComputerViewer-CksBDqdu.js → ComputerViewer-a4VSdAw_.js} +1 -1
  30. package/dist/client/assets/ConnectionAccessLists-Dvv0YO31.js +1 -0
  31. package/dist/client/assets/{ConnectionsPage-Cgg36gDY.js → ConnectionsPage-oO8pNgbc.js} +2 -2
  32. package/dist/client/assets/{ConventionPage-CNhpF6Z1.js → ConventionPage-CFJjwhBd.js} +2 -2
  33. package/dist/client/assets/{ExtensionPageRoute-C2zue_Pw.js → ExtensionPageRoute-BqZN9q7M.js} +2 -2
  34. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-3v1TfY1P.js → FloatingTanStackRouterDevtools-CqogiFob-CnSp2ZEM.js} +1 -1
  35. package/dist/client/assets/{ForwardConsentHost-Mbo0D-zk.js → ForwardConsentHost-4LhRvCdu.js} +1 -1
  36. package/dist/client/assets/HandlePage-BjoYPqme.js +1 -0
  37. package/dist/client/assets/HeartbeatPage-rJzICayy.js +1 -0
  38. package/dist/client/assets/{KeyEntry-C43vkwpA.js → KeyEntry-BTTuXleL.js} +1 -1
  39. package/dist/client/assets/{LexicalField-iAHcvRmI.js → LexicalField-Dk_SDrjk.js} +1 -1
  40. package/dist/client/assets/{ManagesPage-BUIJvLmv.js → ManagesPage-Cvu3CQDn.js} +1 -1
  41. package/dist/client/assets/Marketplace-DPjPPlZz.js +36 -0
  42. package/dist/client/assets/{MarketplaceSourcesView-BZODwhxu.js → MarketplaceSourcesView-ChCys0on.js} +1 -1
  43. package/dist/client/assets/{McpAppFrame-D15nxVaI.js → McpAppFrame-DNamtzOp.js} +2 -2
  44. package/dist/client/assets/{McpSigninBody-DmBxqgxN.js → McpSigninBody-DLw3ZdZE.js} +1 -1
  45. package/dist/client/assets/{Model3dViewer-RGXeJd6a.js → Model3dViewer-IwCBCPZ2.js} +1 -1
  46. package/dist/client/assets/NamePage-FY_D0eA2.js +1 -0
  47. package/dist/client/assets/NewDirectMessageMenu-BB0gvClR.js +1 -0
  48. package/dist/client/assets/{NotificationsPage-NRfyiinS.js → NotificationsPage-aCF0AtqL.js} +1 -1
  49. package/dist/client/assets/{OpenMeshSwitch-CgQ6uefo.js → OpenMeshSwitch-DjCWF2Vy.js} +2 -2
  50. package/dist/client/assets/OperatorIdentityForm-Bcveds6f.js +1 -0
  51. package/dist/client/assets/{PermissionHistory-DPEPq8D9.js → PermissionHistory-CYsxFYmV.js} +1 -1
  52. package/dist/client/assets/{PermissionsPage--k-xutbJ.js → PermissionsPage-sxHkY92V.js} +1 -1
  53. package/dist/client/assets/{PersonalityPopover-DMMptmPS.js → PersonalityPopover-BZ20JTnJ.js} +1 -1
  54. package/dist/client/assets/PhotoPage-KBzkb0sT.js +1 -0
  55. package/dist/client/assets/PreviewRefusedNotice-BFQPYcUG.js +1 -0
  56. package/dist/client/assets/{ProfileFields-DbPJ7fvN.js → ProfileFields-sp17IFo8.js} +1 -1
  57. package/dist/client/assets/{ProfilePanelContainer-CzwhrIlw.js → ProfilePanelContainer-mA44jh5A.js} +1 -1
  58. package/dist/client/assets/{ProfileRolePicker-CZEXvlJm.js → ProfileRolePicker-Chh4_ZMB.js} +1 -1
  59. package/dist/client/assets/PromptSuggestionChips-CEi_-fHF.js +1 -0
  60. package/dist/client/assets/{ReportsToPopover-YOwGLJy5.js → ReportsToPopover-D1uknwnk.js} +1 -1
  61. package/dist/client/assets/RoomSurface-Clf1yLrr.js +1 -0
  62. package/dist/client/assets/{RoomsPage-CoXjZMWL.js → RoomsPage-BtCNzvhQ.js} +1 -1
  63. package/dist/client/assets/RunsOnPopover-LCvBpe9J.js +1 -0
  64. package/dist/client/assets/RuntimeConnectFlow-C5UDeHUC.js +1 -0
  65. package/dist/client/assets/RuntimeSetupDialog-Bqh67Vqb.js +1 -0
  66. package/dist/client/assets/{SeenDevices-Bh2yh-PW.js → SeenDevices-DvCfdeDo.js} +3 -3
  67. package/dist/client/assets/{SessionsPage-CFvkbT9X.js → SessionsPage-DLByE-re.js} +1 -1
  68. package/dist/client/assets/SettingsDialog-Co-Oxtyw.js +12 -0
  69. package/dist/client/assets/SkillsPage-Cc79IstM.js +1 -0
  70. package/dist/client/assets/TaskDialogWrapper-DuYV7Zch.js +1 -0
  71. package/dist/client/assets/TasksEmptyState-CfmPtBra.js +3 -0
  72. package/dist/client/assets/{TasksPage-D0Zi6Mve.js → TasksPage-DGk0zUhO.js} +1 -1
  73. package/dist/client/assets/{TeamComputerEntry-CY9eLVad.js → TeamComputerEntry-CLHbeX5i.js} +1 -1
  74. package/dist/client/assets/{ToolsPage-0_vx5P-F.js → ToolsPage-CSkDE7rZ.js} +2 -2
  75. package/dist/client/assets/{TopologyGraph-DUZLZZrB.js → TopologyGraph-pBC37k5P.js} +14 -14
  76. package/dist/client/assets/TourHost-CS9RsLj_.js +1 -0
  77. package/dist/client/assets/{UnlinkDialog-ptZy3IN4.js → UnlinkDialog-CelhOUZ0.js} +1 -1
  78. package/dist/client/assets/{UnreadDivider-Ckey1IWn.js → UnreadDivider-B_OMR0mQ.js} +1 -1
  79. package/dist/client/assets/WidgetErrorCard-CsMqCyCb.js +108 -0
  80. package/dist/client/assets/{WithheldExtensionsNotice-7Vu1Jctn.js → WithheldExtensionsNotice-GiKb0iQu.js} +1 -1
  81. package/dist/client/assets/WorkQueuePage-Cu721KyM.js +1 -0
  82. package/dist/client/assets/WorkView-CpWEaxMr.js +51 -0
  83. package/dist/client/assets/_shell-CmGG8Ysk.js +80 -0
  84. package/dist/client/assets/{_shell._home-BRIXhYLg.js → _shell._home-BnKkAeSp.js} +1 -1
  85. package/dist/client/assets/_shell._home.activity-DaaLJbvO.js +1 -0
  86. package/dist/client/assets/_shell._home.index-CNPasFxP.js +3 -0
  87. package/dist/client/assets/_shell._home.tasks-DXEOJ5Nq.js +1 -0
  88. package/dist/client/assets/_shell._home.workspaces-UeSvmquR.js +1 -0
  89. package/dist/client/assets/{_shell.channels-Bx6q9xVH.js → _shell.channels-NUbf5mcb.js} +4 -4
  90. package/dist/client/assets/_shell.connections-BEns4DKb.js +1 -0
  91. package/dist/client/assets/{_shell.feedback-requests-DFznTGbN.js → _shell.feedback-requests-NyjHNdnj.js} +2 -2
  92. package/dist/client/assets/_shell.marketplace-BEYqsDKe.js +1 -0
  93. package/dist/client/assets/_shell.marketplace_.sources-D6Ls30FY.js +1 -0
  94. package/dist/client/assets/_shell.session-CVc6i3eN.js +1 -0
  95. package/dist/client/assets/{_shell.team-DmA09abY.js → _shell.team-CXeOt4XD.js} +6 -6
  96. package/dist/client/assets/_shell.threads-BYdN1UtZ.js +1 -0
  97. package/dist/client/assets/_shell.x._extensionId-DtJYSfvG.js +1 -0
  98. package/dist/client/assets/_shell.x._extensionId_._-DtJYSfvG.js +1 -0
  99. package/dist/client/assets/{abnfDiagram-WEYOIA3C-DxgtVd9I.js → abnfDiagram-WEYOIA3C-BLCVDt6M.js} +1 -1
  100. package/dist/client/assets/{access-copy-Dqct36mi.js → access-copy-BSQ3QECN.js} +1 -1
  101. package/dist/client/assets/{arc-C-67Ef0p.js → arc-t4OhsI5R.js} +1 -1
  102. package/dist/client/assets/{architectureDiagram-ZHVYKT53-B7TjdT-_.js → architectureDiagram-ZHVYKT53-BcIfbGZR.js} +1 -1
  103. package/dist/client/assets/{banner-C9qTs6-C.js → banner-B6xfuDA7.js} +2 -2
  104. package/dist/client/assets/{blockDiagram-RJAE7QA3-DNqxJ3Ww.js → blockDiagram-RJAE7QA3-DTOlrcEZ.js} +1 -1
  105. package/dist/client/assets/{c4Diagram-XDPPPE54-D3jNLV0j.js → c4Diagram-XDPPPE54-CHGqwaxa.js} +1 -1
  106. package/dist/client/assets/channel-CSk6LhO2.js +1 -0
  107. package/dist/client/assets/{chunk-2E7WHVMD-C6OKx0ty.js → chunk-2E7WHVMD-Bh4L_7yX.js} +1 -1
  108. package/dist/client/assets/{chunk-2Q5K7J3B-Dr_6hHrZ.js → chunk-2Q5K7J3B-BmouLl8r.js} +1 -1
  109. package/dist/client/assets/{chunk-4EMNKR2T-CSrZVDEt.js → chunk-4EMNKR2T-BVhtiAdG.js} +1 -1
  110. package/dist/client/assets/{chunk-55XCU76K-CIazeRXO.js → chunk-55XCU76K-BdbLnE56.js} +1 -1
  111. package/dist/client/assets/{chunk-5VM5RSS4-C8IJ3zTR.js → chunk-5VM5RSS4-Qg9lQpPO.js} +1 -1
  112. package/dist/client/assets/{chunk-JWPE2WC7-D9DGXb79.js → chunk-JWPE2WC7-CfIrQaMW.js} +1 -1
  113. package/dist/client/assets/{chunk-VQ5W62QI-B0LNYdif.js → chunk-VQ5W62QI-BP9oQzc0.js} +1 -1
  114. package/dist/client/assets/{chunk-XXDRQBXY-C7IAIbvZ.js → chunk-XXDRQBXY-DKzIjnsB.js} +1 -1
  115. package/dist/client/assets/{chunk-ZCHMQSOR-C79hvjlu.js → chunk-ZCHMQSOR-DsvG6BGY.js} +2 -2
  116. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-0Di1C2ZB.js → classDiagram-v2-4MYWR3UA-BSiSmGgP.js} +1 -1
  117. package/dist/client/assets/{command-BVQb6I3_.js → command-B_FPXirc.js} +1 -1
  118. package/dist/client/assets/copy-button-Bp75zBSh.js +1 -0
  119. package/dist/client/assets/{cose-bilkent-JH36ORCC-rZumaV4b.js → cose-bilkent-JH36ORCC-CXgyrZix.js} +1 -1
  120. package/dist/client/assets/{cpu-DeRuDMl4.js → cpu-DpkNIYeK.js} +1 -1
  121. package/dist/client/assets/{cynefin-EF2NZ3EQ-CI9l9xhM.js → cynefin-EF2NZ3EQ-DkmPO3hK.js} +1 -1
  122. package/dist/client/assets/{cynefinDiagram-WF24UDRP-C8CdorJJ.js → cynefinDiagram-WF24UDRP-BDknJT17.js} +1 -1
  123. package/dist/client/assets/{dagre-NK4GIZVX-AHpsTq1O.js → dagre-NK4GIZVX-BR4J5E3b.js} +1 -1
  124. package/dist/client/assets/detail-row-C8zz6mAC.js +1 -0
  125. package/dist/client/assets/{diagram-CBK3MWTC-BpPLL30n.js → diagram-CBK3MWTC-CvLKqPry.js} +1 -1
  126. package/dist/client/assets/{diagram-I5XIIV2D-D6loMn3G.js → diagram-I5XIIV2D-CVtE60X9.js} +1 -1
  127. package/dist/client/assets/{diagram-ODIL2UCW-BaGNd5eN.js → diagram-ODIL2UCW-B--CpfLk.js} +1 -1
  128. package/dist/client/assets/{diagram-PFBEJUXE-BnDdKu_g.js → diagram-PFBEJUXE-08gch1t1.js} +1 -1
  129. package/dist/client/assets/{diagram-RJA3I4VV-UXagB0_c.js → diagram-RJA3I4VV-C2e-ubaD.js} +1 -1
  130. package/dist/client/assets/{diagram-TYUNFSNR-C-whBP-S.js → diagram-TYUNFSNR-DcpK4OXX.js} +1 -1
  131. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-BbG481iS.js → ebnfDiagram-V4P3TTPT-DM44BkBt.js} +1 -1
  132. package/dist/client/assets/{elk-QONTBCTQ-FtssIxOc.js → elk-QONTBCTQ-maYS1Zzm.js} +1 -1
  133. package/dist/client/assets/{empty-state-CACt-76q.js → empty-state-HtOTBAoq.js} +1 -1
  134. package/dist/client/assets/{erDiagram-KYQIGQAA-PpFgUf4C.js → erDiagram-KYQIGQAA-BR7z9r2M.js} +1 -1
  135. package/dist/client/assets/{execution-config-CGL73sRn.js → execution-config-DYYeJyJh.js} +1 -1
  136. package/dist/client/assets/{file-D80JE_L0.js → file-VtGYNr9E.js} +1 -1
  137. package/dist/client/assets/{file-exclamation-point-CcJ_e4_m.js → file-exclamation-point-eBlQssyW.js} +1 -1
  138. package/dist/client/assets/{file-text-Ds9edaTZ.js → file-text-DvNAxTGZ.js} +1 -1
  139. package/dist/client/assets/{find-latest-widget-fence-BtqFMP_f.js → find-latest-widget-fence-C2qXvASs.js} +5 -5
  140. package/dist/client/assets/{flowDiagram-IUGLLWBU-BIva66g9.js → flowDiagram-IUGLLWBU-DiuMtMbj.js} +1 -1
  141. package/dist/client/assets/form-CGIIzr1u.js +1 -0
  142. package/dist/client/assets/{format-cron-BpGrgPLu.js → format-cron-BzJ6ekoo.js} +1 -1
  143. package/dist/client/assets/format-tokens-DymkROvy.js +1 -0
  144. package/dist/client/assets/{ganttDiagram-R7GPNTJY-CZqips_4.js → ganttDiagram-R7GPNTJY-Cf_z8Ri1.js} +1 -1
  145. package/dist/client/assets/{git-branch-B8JNwQ6q.js → git-branch-BVzjBPW-.js} +1 -1
  146. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DoIc3lda.js → gitGraphDiagram-PDYL7XHY-RZXACCBr.js} +1 -1
  147. package/dist/client/assets/{graph-yizM0vwL.js → graph-DfAV_ObD.js} +1 -1
  148. package/dist/client/assets/{heart-BavUIV45.js → heart-BMOCYMFT.js} +1 -1
  149. package/dist/client/assets/{highlighted-body-KPVGNVTW-CGr3AgaU.js → highlighted-body-KPVGNVTW-DrrsaKBc.js} +1 -1
  150. package/dist/client/assets/image-lightbox-tAwBNBhm.js +1 -0
  151. package/dist/client/assets/{image-off-C1uTDs9-.js → image-off-BpagBHk1.js} +1 -1
  152. package/dist/client/assets/{index-CrTmY12y.js → index-0uCJUW_h.js} +2 -2
  153. package/dist/client/assets/index-0y0K3rYv.js +1 -0
  154. package/dist/client/assets/{index-CJXMgnYp.js → index-2GjydAcS.js} +1 -1
  155. package/dist/client/assets/index-6dsaPQ7-.js +1 -0
  156. package/dist/client/assets/{index-X282DRZf.js → index-7-yzdcAx.js} +3 -3
  157. package/dist/client/assets/{index-C8ZpJXTQ.js → index-A7HgzxSw.js} +1 -1
  158. package/dist/client/assets/{index-DW4KUPHp.js → index-BEqKTiCR.js} +1 -1
  159. package/dist/client/assets/{index-56EOd-zy.js → index-BIN0yv4s.js} +1 -1
  160. package/dist/client/assets/{index-FhWMRBQP.js → index-BL5Vmq62.js} +1 -1
  161. package/dist/client/assets/index-BOvFXsF_.js +1 -0
  162. package/dist/client/assets/index-BbcfxnHC.js +1 -0
  163. package/dist/client/assets/{index-DqkFtcGQ.js → index-BdKIijqB.js} +1 -1
  164. package/dist/client/assets/{index-BOEPL6hN.js → index-BfAymWoj.js} +1 -1
  165. package/dist/client/assets/{index-BKWJiERs.js → index-Bgts5its.js} +1 -1
  166. package/dist/client/assets/{index-n_pnc-CO.js → index-BiL3chP7.js} +1 -1
  167. package/dist/client/assets/{index-FI_y_dND.js → index-Bu3PEVA_.js} +1 -1
  168. package/dist/client/assets/{index-BOhSPP-6.js → index-C6DTV4h3.js} +1 -1
  169. package/dist/client/assets/{index-Cdod8zEY.js → index-CCH9c-nB.js} +1 -1
  170. package/dist/client/assets/{index-BkJlIXqM.js → index-CH4NJ8dD.js} +1 -1
  171. package/dist/client/assets/{index-CiGYtR9O.js → index-CKGJp3Cm.js} +1 -1
  172. package/dist/client/assets/{index-DEiSJbvu.js → index-CeqI4FFw.js} +1 -1
  173. package/dist/client/assets/{index-C4t0UTU-.js → index-Cj9-XXKl.js} +1 -1
  174. package/dist/client/assets/{index-ZR5f82z2.js → index-Cu8tnfM_.js} +1 -1
  175. package/dist/client/assets/{index-Dcd4NqFB.js → index-D4OWRMsG.js} +1 -1
  176. package/dist/client/assets/{index-Br6xDNvu.js → index-D8SP73Xw.js} +1 -1
  177. package/dist/client/assets/{index-CoNMlH37.js → index-DEJXVqcY.js} +1 -1
  178. package/dist/client/assets/{index-CoKNU2F9.js → index-DEMZynQt.js} +1 -1
  179. package/dist/client/assets/index-DGzMwE1Z.js +1 -0
  180. package/dist/client/assets/{index-1QfQImuJ.js → index-DIJdZqg2.js} +3 -3
  181. package/dist/client/assets/{index-YSHcMqHa.js → index-DIRqrOEK.js} +1 -1
  182. package/dist/client/assets/{index-CeDn1Ak1.js → index-DNbdGvs9.js} +1 -1
  183. package/dist/client/assets/{index-7XeZCCDI.js → index-DOBjxRe9.js} +1 -1
  184. package/dist/client/assets/{index-BJEt9R_G.js → index-DcBlHsnC.js} +1 -1
  185. package/dist/client/assets/index-DdsaTuqO.js +1 -0
  186. package/dist/client/assets/index-Dt4H9Tms.js +17 -0
  187. package/dist/client/assets/{index-DYEmUa5t.js → index-HXC63Ry8.js} +1 -1
  188. package/dist/client/assets/index-MHIn2TC9.js +1063 -0
  189. package/dist/client/assets/{index-tgbcsB6H.js → index-OjJ_8uMM.js} +1 -1
  190. package/dist/client/assets/index-P4Wos1Gi.css +1 -0
  191. package/dist/client/assets/{index-QSXJR98z.js → index-U5jTIqzv.js} +1 -1
  192. package/dist/client/assets/{index-CXBYgGja.js → index-ZzPr9GUI.js} +1 -1
  193. package/dist/client/assets/index-d9cqTUAj.js +1 -0
  194. package/dist/client/assets/{index-LwL5BpE4.js → index-fcfCRITA.js} +1 -1
  195. package/dist/client/assets/{index-SOKlO1zZ.js → index-onQlu3UR.js} +1 -1
  196. package/dist/client/assets/{index.esm-CAeUe7uQ.js → index.esm-DSKTDEoH.js} +1 -1
  197. package/dist/client/assets/{infoDiagram-MVDRKAX5-DweUdYSy.js → infoDiagram-MVDRKAX5-B8dulOBe.js} +1 -1
  198. package/dist/client/assets/{inline-code-SYHTKcle.js → inline-code-B3qpjdZ2.js} +1 -1
  199. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-DKNQIv7P.js → ishikawaDiagram-HPEHV2GE-Cy8aIg0O.js} +1 -1
  200. package/dist/client/assets/{journeyDiagram-BOSHW7O7-DPD7F4VO.js → journeyDiagram-BOSHW7O7-BZAlejG3.js} +1 -1
  201. package/dist/client/assets/{kanban-definition-FNSA4HC5-B_uPSwxC.js → kanban-definition-FNSA4HC5-BxS1edpe.js} +1 -1
  202. package/dist/client/assets/{layers-F4mvrI2l.js → layers-ByCM7XO5.js} +1 -1
  203. package/dist/client/assets/{lightbulb-a6nNsrzy.js → lightbulb-KjW8YTXH.js} +1 -1
  204. package/dist/client/assets/{link-2-yI2Tlm7Q.js → link-2-CtFfuMO5.js} +1 -1
  205. package/dist/client/assets/{list-runtime-types-CsGil5te.js → list-runtime-types-DrzHejZo.js} +1 -1
  206. package/dist/client/assets/{markdown-content-Cjhsscbn.js → markdown-content-DgiSdNwz.js} +1 -1
  207. package/dist/client/assets/mention-pill-CHPHlu-U.js +1 -0
  208. package/dist/client/assets/{mermaid.core-9PwG-9fN.js → mermaid.core-ovqlC4PC.js} +4 -4
  209. package/dist/client/assets/{message-square-off-aV4NMCjd.js → message-square-off-CEOyy4Pq.js} +1 -1
  210. package/dist/client/assets/{mindmap-definition-6OY57UG3-BRbWmQkj.js → mindmap-definition-6OY57UG3-CsngqLzI.js} +1 -1
  211. package/dist/client/assets/{more-details-CRLU2HN4.js → more-details-BW9mauVT.js} +1 -1
  212. package/dist/client/assets/{owner-notice-CTJbhUak.js → owner-notice-BRUVafHC.js} +1 -1
  213. package/dist/client/assets/{package-sPggO7Dr.js → package-Bbs99yqi.js} +1 -1
  214. package/dist/client/assets/{page-container-CnfDuiDC.js → page-container-BVfGgaaJ.js} +1 -1
  215. package/dist/client/assets/{pane-resize-handle-63OC5vfI.js → pane-resize-handle-BL7Meu5R.js} +1 -1
  216. package/dist/client/assets/{paperclip-WhPo3_WD.js → paperclip-QOWXs8-5.js} +1 -1
  217. package/dist/client/assets/path-input-BDRHmgzW.js +1 -0
  218. package/dist/client/assets/{pegDiagram-ECIUJNBX-Ct9Li_PA.js → pegDiagram-ECIUJNBX-DPsWmWqw.js} +1 -1
  219. package/dist/client/assets/{pieDiagram-GNMPY74T-BAB5RA5v.js → pieDiagram-GNMPY74T-BdOIDv4F.js} +1 -1
  220. package/dist/client/assets/{plug-_q5iqunq.js → plug-BrsPyUhu.js} +1 -1
  221. package/dist/client/assets/primer-trigger-C97fRm1v.js +3 -0
  222. package/dist/client/assets/{profile-errors-COcBx7w5.js → profile-errors-nPLX60ha.js} +1 -1
  223. package/dist/client/assets/{progress-77FCPL2y.js → progress-C9TALtIa.js} +1 -1
  224. package/dist/client/assets/{quadrantDiagram-D57K4MC3-BqPJVmMS.js → quadrantDiagram-D57K4MC3-MzMEunU7.js} +1 -1
  225. package/dist/client/assets/{query-error-state-5236P3z0.js → query-error-state-BJjgx-WC.js} +1 -1
  226. package/dist/client/assets/{radio-C8xmfoqO.js → radio-Biql29-B.js} +1 -1
  227. package/dist/client/assets/{railroadDiagram-Y72NRBL7-B8U11nT6.js → railroadDiagram-Y72NRBL7-Dzx_PYVW.js} +1 -1
  228. package/dist/client/assets/registry-B0HgbN69.js +1 -0
  229. package/dist/client/assets/registry-fiUD5cv6.js +39 -0
  230. package/dist/client/assets/{relay-trace-schemas-B80E4EUn.js → relay-trace-schemas-BJ4MfChd.js} +2 -2
  231. package/dist/client/assets/{repeat-CHmB_vD7.js → repeat-CKufDGoQ.js} +1 -1
  232. package/dist/client/assets/{requirementDiagram-EQYSW5RA-CzJ1gzTh.js → requirementDiagram-EQYSW5RA-J0pg6FEt.js} +1 -1
  233. package/dist/client/assets/{room-files-source-B0gc97Ri.js → room-files-source-iaYdshKo.js} +2 -2
  234. package/dist/client/assets/{rotate-ccw-clock-CCU6SVnv.js → rotate-ccw-clock-CnARSw5V.js} +1 -1
  235. package/dist/client/assets/{rotate-cw-B8WQa8O-.js → rotate-cw-BAn_5-Gq.js} +1 -1
  236. package/dist/client/assets/{sankeyDiagram-SY24JHO5-D4vQwyve.js → sankeyDiagram-SY24JHO5-6V_uy-zQ.js} +1 -1
  237. package/dist/client/assets/scroll-area-XDq7yL_d.js +1 -0
  238. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-BVnIsPQe.js → sequenceDiagram-BLEHNHQU-C4jZi3N4.js} +1 -1
  239. package/dist/client/assets/{shield-x-ijIbRppV.js → shield-x-CpiXuMbN.js} +1 -1
  240. package/dist/client/assets/signed-in-Rv3Sjk8n.js +1 -0
  241. package/dist/client/assets/{sizeCapture-INFHLROL-DGb1rAJL.js → sizeCapture-INFHLROL-B7nxFreb.js} +1 -1
  242. package/dist/client/assets/{soul-file-CXgYs25S.js → soul-file-BQz4TtHo.js} +1 -1
  243. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DeX3IKTm.js → stateDiagram-v2-A6IESKWZ-B5rvc4n2.js} +1 -1
  244. package/dist/client/assets/{swimlanes-B3ENRKFQ-DN5ljYhG.js → swimlanes-B3ENRKFQ-DnElusDo.js} +1 -1
  245. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-DLpKz5fF.js +8 -0
  246. package/dist/client/assets/{table-D9ww_3Ij.js → table-NGiWzPO4.js} +1 -1
  247. package/dist/client/assets/{timeline-definition-JXYKGLGB-DpRthC3r.js → timeline-definition-JXYKGLGB-DMgyn3XX.js} +1 -1
  248. package/dist/client/assets/{trust-posture-Dn2ciEE0.js → trust-posture-BArJ9H4j.js} +1 -1
  249. package/dist/client/assets/{unplug-BZ8zSvfB.js → unplug-MSjeZ0tJ.js} +1 -1
  250. package/dist/client/assets/{unverified-catalog-notice-CGy05tAO.js → unverified-catalog-notice-DA96H8Df.js} +1 -1
  251. package/dist/client/assets/{use-bindings-BLAWQRpe.js → use-bindings-BojBqRJS.js} +1 -1
  252. package/dist/client/assets/{use-composer-prefs-ICOpilWK.js → use-composer-prefs-BDl8aMme.js} +1 -1
  253. package/dist/client/assets/{use-connector-management-DEMGZy9N.js → use-connector-management-FONU6FK8.js} +1 -1
  254. package/dist/client/assets/{use-deep-link-scroll-DxGYrks3.js → use-deep-link-scroll-CtbBPBgi.js} +1 -1
  255. package/dist/client/assets/{use-delete-binding-Bnv3J5Fu.js → use-delete-binding-COhBv6X3.js} +1 -1
  256. package/dist/client/assets/{use-dev-links-BOcktLiE.js → use-dev-links-Dh0MCiGY.js} +1 -1
  257. package/dist/client/assets/{use-direct-message-panel-D38tSozW.js → use-direct-message-panel-CYnWunqk.js} +1 -1
  258. package/dist/client/assets/{use-external-adapter-catalog-9qiNBqpc.js → use-external-adapter-catalog-RTDOW8Yi.js} +1 -1
  259. package/dist/client/assets/use-filter-state-CSFTDx7z.js +6 -0
  260. package/dist/client/assets/use-full-activity-feed-DlY_ZbRZ.js +1 -0
  261. package/dist/client/assets/use-is-below-desktop-ClzGXlRb.js +1 -0
  262. package/dist/client/assets/{use-local-browser-B1huJhdg.js → use-local-browser-WwZd-FOP.js} +1 -1
  263. package/dist/client/assets/{use-mesh-topology-BTYAy6zc.js → use-mesh-topology-WnFkjq41.js} +1 -1
  264. package/dist/client/assets/{use-mounted-ref-CaPc6Prv.js → use-mounted-ref-Dz1h70pz.js} +1 -1
  265. package/dist/client/assets/{use-notification-prefs-u76DPoP0.js → use-notification-prefs-IrF5_cko.js} +1 -1
  266. package/dist/client/assets/use-pending-read-CnAnzOt_.js +1 -0
  267. package/dist/client/assets/use-personality-commit-C4hYkSPy.js +1 -0
  268. package/dist/client/assets/use-promo-activation-CPVANFBh.js +6 -0
  269. package/dist/client/assets/{use-promo-dismissals-CO7-qhEl.js → use-promo-dismissals-B9m0HT6L.js} +1 -1
  270. package/dist/client/assets/{use-pulse-freshness-D07Mv-Sa.js → use-pulse-freshness-DMySxN8D.js} +1 -1
  271. package/dist/client/assets/{use-room-follow-claim-DRQBuAIe.js → use-room-follow-claim-ByaYVY0o.js} +1 -1
  272. package/dist/client/assets/{use-room-sessions-Bzk7rM40.js → use-room-sessions-DPB29acU.js} +1 -1
  273. package/dist/client/assets/{use-roving-tab-list-CcznVldj.js → use-roving-tab-list-BO8kbs-w.js} +1 -1
  274. package/dist/client/assets/{use-session-canvas-CpgE7tFb.js → use-session-canvas-Cunag2K7.js} +9 -9
  275. package/dist/client/assets/use-status-budget-jt-9aQR0.js +21 -0
  276. package/dist/client/assets/{use-transform-ByJGn3hq.js → use-transform-ydtuYUNp.js} +1 -1
  277. package/dist/client/assets/{use-unclaimed-chats-C-z5fstJ.js → use-unclaimed-chats-ClBWJgNm.js} +1 -1
  278. package/dist/client/assets/use-update-config-ZHtOtve0.js +1 -0
  279. package/dist/client/assets/{useMutationState-BF1EFtIZ.js → useMutationState-B8ArIqeH.js} +1 -1
  280. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-efVKbRIX.js → usecaseDiagram-WPOLBNNX-C5JdAkG9.js} +1 -1
  281. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-Bravmwce.js → vennDiagram-Q3Y3IDCW-CqLCy7LU.js} +1 -1
  282. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-fR77zByv.js → wardleyDiagram-IVAIDKWA-C9FlHLTd.js} +1 -1
  283. package/dist/client/assets/{xychartDiagram-4URNHDU4-BphORSLh.js → xychartDiagram-4URNHDU4-BIm-RUWd.js} +1 -1
  284. package/dist/client/index.html +2 -2
  285. package/dist/drizzle/20261031012841_dor3309_file_turn_on_offer.sql +2 -0
  286. package/dist/drizzle/20261101122330_schedule_declined_content_key.sql +1 -0
  287. package/dist/drizzle/20261101195529_work_queue.sql +38 -0
  288. package/dist/drizzle/20261101233656_dor3644_session_launched_by.sql +1 -0
  289. package/dist/drizzle/20261102041558_dor3070_marketplace_summary.sql +2 -0
  290. package/dist/drizzle/20261102051715_dor3440_clear_origin_holds.sql +10 -0
  291. package/dist/drizzle/20261102135442_agent_browser_profiles.sql +15 -0
  292. package/dist/drizzle/meta/20261031012841_snapshot.json +14116 -0
  293. package/dist/drizzle/meta/20261101122330_snapshot.json +14123 -0
  294. package/dist/drizzle/meta/20261101195529_snapshot.json +14363 -0
  295. package/dist/drizzle/meta/20261101233656_snapshot.json +14370 -0
  296. package/dist/drizzle/meta/20261102041558_snapshot.json +14384 -0
  297. package/dist/drizzle/meta/20261102051715_snapshot.json +14384 -0
  298. package/dist/drizzle/meta/20261102135442_snapshot.json +14483 -0
  299. package/dist/drizzle/meta/_journal.json +49 -0
  300. package/dist/server/extension-child.cjs +1147 -572
  301. package/dist/server/index.js +45678 -38894
  302. package/dist/server/index.js.map +2 -2
  303. package/package.json +5 -5
  304. package/dist/client/assets/ActivityRow-DIBH4v9c.js +0 -1
  305. package/dist/client/assets/AdapterSetupWizard-Dle_b9qc.js +0 -2
  306. package/dist/client/assets/AppearancePage-DXbhUt2e.js +0 -1
  307. package/dist/client/assets/AttentionSignalRow-5E7TkG98.js +0 -1
  308. package/dist/client/assets/BindingDialog-q--8SDJF.js +0 -1
  309. package/dist/client/assets/BlintzCanvas-DruVZcDU.js +0 -1231
  310. package/dist/client/assets/CanvasFileContent-BThy5fjD.js +0 -2
  311. package/dist/client/assets/CanvasModel3dContent-BbgR73jh.js +0 -2
  312. package/dist/client/assets/ChannelComposer-qhk0KtW7.js +0 -44
  313. package/dist/client/assets/ConnectionAccessLists-DRwO1v0V.js +0 -1
  314. package/dist/client/assets/HandlePage-B4qbFi40.js +0 -1
  315. package/dist/client/assets/HeartbeatPage-BnNbQLCW.js +0 -1
  316. package/dist/client/assets/Marketplace-DbdLWz0-.js +0 -36
  317. package/dist/client/assets/NamePage-fhxyWDDY.js +0 -1
  318. package/dist/client/assets/NewDirectMessageMenu-DBAdvv5p.js +0 -1
  319. package/dist/client/assets/OperatorIdentityForm-Bls5Vo_u.js +0 -1
  320. package/dist/client/assets/PhotoPage-CNHcXbz4.js +0 -1
  321. package/dist/client/assets/PreviewRefusedNotice-Ds4IO32o.js +0 -1
  322. package/dist/client/assets/PromptSuggestionChips-BXxC799Q.js +0 -1
  323. package/dist/client/assets/RoomSurface-DgH3a_Fv.js +0 -1
  324. package/dist/client/assets/RunsOnPopover-CEkkjrGg.js +0 -1
  325. package/dist/client/assets/RuntimeConnectFlow-DXWGgvCW.js +0 -1
  326. package/dist/client/assets/RuntimeSetupDialog-D6L1QhMF.js +0 -1
  327. package/dist/client/assets/SettingsDialog-BOOqWKcj.js +0 -12
  328. package/dist/client/assets/SkillsPage-ntCEhUIM.js +0 -1
  329. package/dist/client/assets/TaskDialogWrapper-vBWAWwTY.js +0 -1
  330. package/dist/client/assets/TasksEmptyState-C_3UkAbA.js +0 -3
  331. package/dist/client/assets/TourHost-B69XAKpE.js +0 -1
  332. package/dist/client/assets/WidgetErrorCard-BlqaIsPK.js +0 -108
  333. package/dist/client/assets/WorkView-BekLkR4O.js +0 -51
  334. package/dist/client/assets/_shell-Du0F-5fK.js +0 -80
  335. package/dist/client/assets/_shell._home.activity-5rihXoYF.js +0 -1
  336. package/dist/client/assets/_shell._home.index-BsLNqt4f.js +0 -3
  337. package/dist/client/assets/_shell._home.tasks-Cxs5tLWA.js +0 -1
  338. package/dist/client/assets/_shell._home.workspaces-CEHDdfbP.js +0 -1
  339. package/dist/client/assets/_shell.connections-Bm0WmgXH.js +0 -1
  340. package/dist/client/assets/_shell.marketplace-CsQ60Mlc.js +0 -1
  341. package/dist/client/assets/_shell.marketplace_.sources-DNyShS1x.js +0 -1
  342. package/dist/client/assets/_shell.session-BN42bV3w.js +0 -1
  343. package/dist/client/assets/_shell.threads-HH4EvufJ.js +0 -1
  344. package/dist/client/assets/_shell.x._extensionId-3ZlJV1iu.js +0 -1
  345. package/dist/client/assets/_shell.x._extensionId_._-3ZlJV1iu.js +0 -1
  346. package/dist/client/assets/card-DUmTNXJJ.js +0 -1
  347. package/dist/client/assets/channel-B7zgJbnU.js +0 -1
  348. package/dist/client/assets/form-D93N5lrK.js +0 -1
  349. package/dist/client/assets/image-lightbox-vgPEvSCc.js +0 -1
  350. package/dist/client/assets/index-B36osK_S.js +0 -17
  351. package/dist/client/assets/index-B446r3dL.js +0 -1
  352. package/dist/client/assets/index-BGo1YiUE.js +0 -1
  353. package/dist/client/assets/index-BO3yPJt-.js +0 -1
  354. package/dist/client/assets/index-DE6uOpn4.js +0 -1
  355. package/dist/client/assets/index-Dag1qeZI.js +0 -1
  356. package/dist/client/assets/index-Dm0Tav7v.js +0 -1
  357. package/dist/client/assets/index-Dry_agqN.css +0 -1
  358. package/dist/client/assets/index-OQuvRZTD.js +0 -1058
  359. package/dist/client/assets/index-eVrGefuq.js +0 -1
  360. package/dist/client/assets/mention-pill-BsOeTJ2f.js +0 -1
  361. package/dist/client/assets/path-input-C2KIXdON.js +0 -1
  362. package/dist/client/assets/primer-trigger-B2tjuHBx.js +0 -3
  363. package/dist/client/assets/registry-BzXBOE9h.js +0 -34
  364. package/dist/client/assets/registry-sfhDu9q2.js +0 -1
  365. package/dist/client/assets/scroll-area-FwZwM74Q.js +0 -1
  366. package/dist/client/assets/search-x-Q18Wm-C5.js +0 -6
  367. package/dist/client/assets/signed-in-DEOMBWVX.js +0 -1
  368. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-D8kHFWtL.js +0 -8
  369. package/dist/client/assets/use-full-activity-feed-CtQquOBW.js +0 -1
  370. package/dist/client/assets/use-is-below-desktop-CAGEAsCC.js +0 -1
  371. package/dist/client/assets/use-pending-read-D0y6i7G9.js +0 -1
  372. package/dist/client/assets/use-personality-commit-C3h8upDo.js +0 -1
  373. package/dist/client/assets/use-promo-activation-5HG08FlB.js +0 -11
  374. package/dist/client/assets/use-status-budget-Xn2sIeM1.js +0 -16
  375. package/dist/client/assets/use-update-config-L5NCTj3t.js +0 -1
@@ -1 +0,0 @@
1
- import{aO as a,aQ as s}from"./index-OQuvRZTD.js";const t={tasks:s,moment:a};export{t as i};
@@ -1 +0,0 @@
1
- import{r as c,j as b,bk as X,bl as R,bm as T,bn as j,bo as ne,bp as C,bq as le,br as ce,bs as ae,bt as U,bu as se}from"./index-OQuvRZTD.js";var ie=Object.defineProperty,h=(n,e)=>ie(n,"name",{value:e,configurable:!0});function J(n,e){return c.useReducer((t,r)=>e[t][r]??t,n)}h(J,"useStateMachine");var K="ScrollArea",[Q,je]=ne(K),[ue,g]=Q(K),de=c.forwardRef(h(function(e,t){const{__scopeScrollArea:r,type:s="hover",dir:o,scrollHideDelay:l=600,...a}=e,[i,u]=c.useState(null),[S,f]=c.useState(null),[v,d]=c.useState(null),[m,w]=c.useState(null),[y,Y]=c.useState(null),[P,z]=c.useState(0),[M,I]=c.useState(0),[O,_]=c.useState(!1),[N,L]=c.useState(!1),p=T(t,u),A=ce(o);return b.jsx(ue,{scope:r,type:s,dir:A,scrollHideDelay:l,scrollArea:i,viewport:S,onViewportChange:f,content:v,onContentChange:d,scrollbarX:m,onScrollbarXChange:w,scrollbarXEnabled:O,onScrollbarXEnabledChange:_,scrollbarY:y,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:L,onCornerWidthChange:z,onCornerHeightChange:I,children:b.jsx(j.div,{dir:A,...a,ref:p,style:{position:"relative","--radix-scroll-area-corner-width":P+"px","--radix-scroll-area-corner-height":M+"px",...e.style}})})},"ScrollArea")),he="ScrollAreaViewport",fe=c.forwardRef(h(function(e,t){const{__scopeScrollArea:r,children:s,nonce:o,...l}=e,a=g(he,r),i=c.useRef(null),u=T(t,i,a.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx(Se,{nonce:o}),b.jsx(j.div,{"data-radix-scroll-area-viewport":"",...l,ref:u,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:b.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})},"ScrollAreaViewport")),Se=c.memo(h(function({nonce:e}){return b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:e})},"ScrollAreaViewportStyle"),(n,e)=>n.nonce===e.nonce),x="ScrollAreaScrollbar",be=c.forwardRef(h(function(e,t){const{forceMount:r,...s}=e,o=g(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:a}=o,i=e.orientation==="horizontal";return c.useEffect(()=>(i?l(!0):a(!0),()=>{i?l(!1):a(!1)}),[i,l,a]),o.type==="hover"?b.jsx(me,{...s,ref:t,forceMount:r}):o.type==="scroll"?b.jsx(ve,{...s,ref:t,forceMount:r}):o.type==="auto"?b.jsx(Z,{...s,ref:t,forceMount:r}):o.type==="always"?b.jsx(F,{...s,ref:t,"data-state":"visible"}):null},"ScrollAreaScrollbar")),me=c.forwardRef(h(function(e,t){const{forceMount:r,...s}=e,o=g(x,e.__scopeScrollArea),[l,a]=c.useState(!1);return c.useEffect(()=>{const i=o.scrollArea;let u=0;if(i){const S=h(()=>{window.clearTimeout(u),a(!0)},"handlePointerEnter"),f=h(()=>{u=window.setTimeout(()=>a(!1),o.scrollHideDelay)},"handlePointerLeave");return i.addEventListener("pointerenter",S),i.addEventListener("pointerleave",f),()=>{window.clearTimeout(u),i.removeEventListener("pointerenter",S),i.removeEventListener("pointerleave",f)}}},[o.scrollArea,o.scrollHideDelay]),b.jsx(X,{present:r||l,children:b.jsx(Z,{"data-state":l?"visible":"hidden",...s,ref:t})})},"ScrollAreaScrollbarHover")),ve=c.forwardRef(h(function(e,t){const{forceMount:r,...s}=e,o=g(x,e.__scopeScrollArea),l=e.orientation==="horizontal",a=H(()=>u("SCROLL_END"),100),[i,u]=J("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return c.useEffect(()=>{if(i==="idle"){const S=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(S)}},[i,o.scrollHideDelay,u]),c.useEffect(()=>{const S=o.viewport,f=l?"scrollLeft":"scrollTop";if(S){let v=S[f];const d=h(()=>{const m=S[f];v!==m&&(u("SCROLL"),a()),v=m},"handleScroll");return S.addEventListener("scroll",d),()=>S.removeEventListener("scroll",d)}},[o.viewport,l,u,a]),b.jsx(X,{present:r||i!=="hidden",children:b.jsx(F,{"data-state":i==="hidden"?"hidden":"visible",...s,ref:t,onPointerEnter:R(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:R(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),Z=c.forwardRef(h(function(e,t){const r=g(x,e.__scopeScrollArea),{forceMount:s,...o}=e,[l,a]=c.useState(!1),i=e.orientation==="horizontal",u=H(()=>{if(r.viewport){const S=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;a(i?S:f)}},10);return E(r.viewport,u),E(r.content,u),b.jsx(X,{present:s||l,children:b.jsx(F,{"data-state":l?"visible":"hidden",...o,ref:t})})},"ScrollAreaScrollbarAuto")),F=c.forwardRef(h(function(e,t){const{orientation:r="vertical",...s}=e,o=g(x,e.__scopeScrollArea),l=c.useRef(null),a=c.useRef(0),[i,u]=c.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),S=q(i.viewport,i.content),f={...s,sizes:i,onSizesChange:u,hasThumb:S>0&&S<1,onThumbChange:h(d=>l.current=d,"onThumbChange"),onThumbPointerUp:h(()=>a.current=0,"onThumbPointerUp"),onThumbPointerDown:h(d=>a.current=d,"onThumbPointerDown")};function v(d,m){return te(d,a.current,i,m)}return h(v,"getScrollPosition"),r==="horizontal"?b.jsx(pe,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollLeft,m=B(d,i,o.dir);l.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=v(d,o.dir))}}):r==="vertical"?b.jsx(we,{...f,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollTop,m=B(d,i);l.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=v(d))}}):null},"ScrollAreaScrollbarVisible")),pe=c.forwardRef(h(function(e,t){const{sizes:r,onSizesChange:s,...o}=e,l=g(x,e.__scopeScrollArea),[a,i]=c.useState(),u=c.useRef(null),S=T(t,u,l.onScrollbarXChange);return c.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),b.jsx(re,{"data-orientation":"horizontal",...o,ref:S,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":W(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,v)=>{if(l.viewport){const d=l.viewport.scrollLeft+f.deltaX;e.onWheelScroll(d),G(d,v)&&f.preventDefault()}},onResize:()=>{u.current&&l.viewport&&a&&s({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:D(a.paddingLeft),paddingEnd:D(a.paddingRight)}})}})},"ScrollAreaScrollbarX")),we=c.forwardRef(h(function(e,t){const{sizes:r,onSizesChange:s,...o}=e,l=g(x,e.__scopeScrollArea),[a,i]=c.useState(),u=c.useRef(null),S=T(t,u,l.onScrollbarYChange);return c.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),b.jsx(re,{"data-orientation":"vertical",...o,ref:S,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":W(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,v)=>{if(l.viewport){const d=l.viewport.scrollTop+f.deltaY;e.onWheelScroll(d),G(d,v)&&f.preventDefault()}},onResize:()=>{u.current&&l.viewport&&a&&s({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:D(a.paddingTop),paddingEnd:D(a.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[ge,ee]=Q(x),re=c.forwardRef(h(function(e,t){const{__scopeScrollArea:r,sizes:s,hasThumb:o,onThumbChange:l,onThumbPointerUp:a,onThumbPointerDown:i,onThumbPositionChange:u,onDragScroll:S,onWheelScroll:f,onResize:v,...d}=e,m=g(x,r),[w,y]=c.useState(null),Y=T(t,y),P=c.useRef(null),z=c.useRef(""),M=m.viewport,I=s.content-s.viewport,O=C(f),_=C(u),N=H(v,10);function L(p){if(P.current){const A=p.clientX-P.current.left,V=p.clientY-P.current.top;S({x:A,y:V})}}return h(L,"handleDragScroll"),c.useEffect(()=>{const p=h(A=>{const V=A.target;(w==null?void 0:w.contains(V))&&O(A,I)},"handleWheel");return document.addEventListener("wheel",p,{passive:!1}),()=>document.removeEventListener("wheel",p,{passive:!1})},[M,w,I,O]),c.useEffect(_,[s,_]),E(w,N),E(m.content,N),b.jsx(ge,{scope:r,scrollbar:w,hasThumb:o,onThumbChange:C(l),onThumbPointerUp:C(a),onThumbPositionChange:_,onThumbPointerDown:C(i),children:b.jsx(j.div,{...d,ref:Y,style:{position:"absolute",...d.style},onPointerDown:R(e.onPointerDown,p=>{p.button===0&&(p.target.setPointerCapture(p.pointerId),P.current=w.getBoundingClientRect(),z.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),L(p))}),onPointerMove:R(e.onPointerMove,L),onPointerUp:R(e.onPointerUp,p=>{const A=p.target;A.hasPointerCapture(p.pointerId)&&A.releasePointerCapture(p.pointerId),document.body.style.webkitUserSelect=z.current,m.viewport&&(m.viewport.style.scrollBehavior=""),P.current=null})})})},"ScrollAreaScrollbarImpl")),k="ScrollAreaThumb",Ae=c.forwardRef(h(function(e,t){const{forceMount:r,...s}=e,o=ee(k,e.__scopeScrollArea);return b.jsx(X,{present:r||o.hasThumb,children:b.jsx(xe,{ref:t,...s})})},"ScrollAreaThumb")),xe=c.forwardRef(h(function(e,t){const{__scopeScrollArea:r,style:s,...o}=e,l=g(k,r),a=ee(k,r),{onThumbPositionChange:i}=a,u=T(t,a.onThumbChange),S=c.useRef(void 0),f=H(()=>{S.current&&(S.current(),S.current=void 0)},100);return c.useEffect(()=>{const v=l.viewport;if(v){const d=h(()=>{if(f(),!S.current){const m=Re(v,i);S.current=m,i()}},"handleScroll");return i(),v.addEventListener("scroll",d),()=>v.removeEventListener("scroll",d)}},[l.viewport,f,i]),b.jsx(j.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:R(e.onPointerDownCapture,v=>{const m=v.target.getBoundingClientRect(),w=v.clientX-m.left,y=v.clientY-m.top;a.onThumbPointerDown({x:w,y})}),onPointerUp:R(e.onPointerUp,a.onThumbPointerUp)})},"ScrollAreaThumbImpl")),oe="ScrollAreaCorner",Pe=c.forwardRef(h(function(e,t){const r=g(oe,e.__scopeScrollArea),s=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&s?b.jsx(Ce,{...e,ref:t}):null},"ScrollAreaCorner")),Ce=c.forwardRef(h(function(e,t){const{__scopeScrollArea:r,...s}=e,o=g(oe,r),[l,a]=c.useState(0),[i,u]=c.useState(0),S=!!(l&&i),{onCornerWidthChange:f,onCornerHeightChange:v}=o;return E(o.scrollbarX,()=>{var m;const d=((m=o.scrollbarX)==null?void 0:m.offsetHeight)||0;o.onCornerHeightChange(d),u(d)}),E(o.scrollbarY,()=>{var m;const d=((m=o.scrollbarY)==null?void 0:m.offsetWidth)||0;o.onCornerWidthChange(d),a(d)}),c.useEffect(()=>()=>{f(0),v(0)},[f,v]),S?b.jsx(j.div,{...s,ref:t,style:{width:l,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null},"ScrollAreaCornerImpl"));function D(n){return n?parseInt(n,10):0}h(D,"toInt");function q(n,e){const t=n/e;return isNaN(t)?0:t}h(q,"getThumbRatio");function W(n){const e=q(n.viewport,n.content),t=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,r=(n.scrollbar.size-t)*e;return Math.max(r,18)}h(W,"getThumbSize");function te(n,e,t,r="ltr"){const s=W(t),o=s/2,l=e||o,a=s-l,i=t.scrollbar.paddingStart+l,u=t.scrollbar.size-t.scrollbar.paddingEnd-a,S=t.content-t.viewport,f=r==="ltr"?[0,S]:[S*-1,0];return $([i,u],f)(n)}h(te,"getScrollPositionFromPointer");function B(n,e,t="ltr"){const r=W(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=e.scrollbar.size-s,l=e.content-e.viewport,a=o-r,i=t==="ltr"?[0,l]:[l*-1,0],u=ae(n,i);return $([0,l],[0,a])(u)}h(B,"getThumbOffsetFromScroll");function $(n,e){return t=>{if(n[0]===n[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(n[1]-n[0]);return e[0]+r*(t-n[0])}}h($,"linearScale");function G(n,e){return n>0&&n<e}h(G,"isScrollingWithinScrollbarBounds");var Re=h((n,e=()=>{})=>{let t={left:n.scrollLeft,top:n.scrollTop},r=0;return h((function s(){const o={left:n.scrollLeft,top:n.scrollTop},l=t.left!==o.left,a=t.top!==o.top;(l||a)&&e(),t=o,r=window.requestAnimationFrame(s)}),"loop")(),()=>window.cancelAnimationFrame(r)},"addUnlinkedScrollListener");function H(n,e){const t=C(n),r=c.useRef(0);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),c.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(t,e)},[t,e])}h(H,"useDebounceCallback");function E(n,e){const t=C(e);le(()=>{let r=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return s.observe(n),()=>{window.cancelAnimationFrame(r),s.unobserve(n)}}},[n,t])}h(E,"useResizeObserver");var Ee=de,Te=fe,ye=Pe;function We({className:n,children:e,viewportRef:t,viewportClassName:r,...s}){return b.jsxs(Ee,{"data-slot":"scroll-area",className:U("relative",n),...s,children:[b.jsx(Te,{ref:t,"data-slot":"scroll-area-viewport",className:U("size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:outline-1 motion-reduce:transition-none!",se,"[&>div]:!block",r),children:e}),b.jsx(_e,{}),b.jsx(ye,{})]})}function _e({className:n,orientation:e="vertical",...t}){return b.jsx(be,{"data-slot":"scroll-area-scrollbar",orientation:e,className:U("flex touch-none p-px transition-colors select-none motion-reduce:transition-none!",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...t,children:b.jsx(Ae,{"data-slot":"scroll-area-thumb",className:"bg-dui-border relative flex-1 rounded-full"})})}export{We as S};
@@ -1,6 +0,0 @@
1
- import{cs as D,da as _,r as n,O as q}from"./index-OQuvRZTD.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),[y,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(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]),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]),E=t.isFiltered(d),F=t.activeCount(d),I=n.useCallback(()=>t.describeActive(d),[t,d]);return{values:d,inputValues:y,sortField:h,sortDirection:j,isFiltered:E,activeCount:F,set:R,clear:T,clearAll:V,setSort:A,describeActive:I,schema:t}}/**
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 O={name:"search-x",size:24,node:[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]};O.node;const K=q(O);export{K as S,$ as u};
@@ -1 +0,0 @@
1
- import{a1 as l,a2 as g,a4 as j,j as t,e3 as m,ap as u,G as x,J as k,X as b,x as p,r as o,b7 as N,B as d,gr as w,l as v,Y as O,gs as S,gt as C}from"./index-OQuvRZTD.js";import{P as L,M as R}from"./plug-_q5iqunq.js";import{R as T}from"./rotate-cw-B8WQa8O-.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 P={heading:"This page expired",body:"Check DorkOS to see how the sign-in went."},z={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?P:z})}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,8 +0,0 @@
1
- import{c as r,s as e}from"./flowDiagram-IUGLLWBU-BIva66g9.js";import{_ as o}from"./mermaid.core-9PwG-9fN.js";import"./transform-BqqRT-Iy.js";import"./chunk-5VM5RSS4-C8IJ3zTR.js";import"./chunk-XXDRQBXY-C7IAIbvZ.js";import"./chunk-VQ5W62QI-B0LNYdif.js";import"./chunk-55XCU76K-CIazeRXO.js";import"./BlintzCanvas-DruVZcDU.js";import"./index-OQuvRZTD.js";import"./index-QSXJR98z.js";import"./index-1QfQImuJ.js";import"./channel-B7zgJbnU.js";var a=o(t=>`${e(t)}
2
- .swimlane.cluster:not([data-color-id]) rect {
3
- stroke: ${t.clusterBorder} !important;
4
- }
5
- [data-look="neo"].cluster rect {
6
- filter: none;
7
- }
8
- `,"getStyles"),m=a,v=r({styles:m});export{v as diagram};
@@ -1 +0,0 @@
1
- import{a1 as r,aq as a}from"./index-OQuvRZTD.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 +0,0 @@
1
- import{ar as e}from"./index-OQuvRZTD.js";const o=1024;function s(){return e(`(max-width: ${o-1}px)`)}export{s as u};
@@ -1 +0,0 @@
1
- import{aa as n}from"./index-OQuvRZTD.js";function r(s){const e=n();return s||e}export{r as u};
@@ -1 +0,0 @@
1
- import{r as u,gD as Oe,bo as Le,bm as H,eH as Fe,j as t,bl as F,br as He,bn as U,gE as Ge,bs as ye,gF as Ke,bt as q,bu as ze,gG as Ue,gH as Ye,G as P,W as we,gI as ve,e3 as We,gJ as Xe,bw as pe,ap as re,gK as qe,dE as xe,gL as Je}from"./index-OQuvRZTD.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-CXgYs25S.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:v,...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=[],w]=Fe({prop:x,defaultProp:o,onChange:h(y=>{var B;(B=[...R.current][C.current])==null||B.focus({preventScroll:!0,focusVisible:T.current}),T.current=!1,f(y)},"onChange")}),$=u.useRef(m),X=u.useRef(m);u.useEffect(()=>{const y=v?k==null?void 0:k.ownerDocument.getElementById(v):k==null?void 0:k.closest("form");if(y instanceof HTMLFormElement){const N=h(()=>w(X.current),"reset");return y.addEventListener("reset",N),()=>y.removeEventListener("reset",N)}},[k,v,w]);function I(y){const N=_e(m,y);M(y,N)}h(I,"handleSlideStart");function D(y){M(y,C.current)}h(D,"handleSlideMove");function E(){String(m)!==String($.current)&&g(m)}h(E,"handleSlideEnd");function M(y,N,{commit:B}={commit:!1}){const fe=ce(d),te=z(Math.round((y-i)/d)*d+i,fe),G=ye(te,[i,n]);w((L=[])=>{const V=Te(L,G,N);if(Be(V,c*d)){C.current=V.indexOf(G);const me=String(V)!==String(L);return me&&B&&g(V),me?V:L}else return L})}return h(M,"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:v,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||($.current=m,T.current=!1)}),min:i,max:n,inverted:j,onSlideStart:p?void 0:I,onSlideMove:p?void 0:D,onSlideEnd:p?void 0:E,onHomeKeyDown:()=>{p||(T.current=!0,M(i,0,{commit:!0}))},onEndKeyDown:()=>{p||(T.current=!0,M(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});M(V,G,{commit:!0})}}})})})})},"Slider")),[Re,Ee]=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),v=u.useRef(void 0),S=He(n),R=S==="ltr",C=R&&!d||!R&&d;function T(A){const _=v.current||f.getBoundingClientRect(),k=[0,_.width],b=ee(k,C?[a,i]:[i,a]);return v.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(Me,{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:()=>{v.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 v(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(v,"getValueFromPointer"),t.jsx(Re,{scope:e.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:t.jsx(Me,{"data-orientation":"vertical",...o,ref:f,style:{...o.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const R=v(S.clientY);d==null||d(R)},onSlideMove:S=>{const R=v(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")),Me=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=Ee(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 v={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,...v,children:Ve(i)?i(v):a})}h(Ae,"SliderThumbProvider");var ne="SliderThumbTrigger",mt=u.forwardRef(h(function(e,s){const{__scopeSlider:a,...i}=e,n=W(ne,a),d=Ee(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],v=j?De(j,c,d.direction):0;return t.jsx("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${c}% + ${v}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 De(r,e,s){const a=r/2,n=ee([0,50],[0,a]);return(a-n(e)*s)*s}h(De,"getThumbInBoundsOffset");function $e(r){return r.slice(0,-1).map((e,s)=>r[s+1]-e)}h($e,"getStepsBetweenValues");function Be(r,e){if(e>0){const s=$e(r);return Math.min(...s)>=e}return!0}h(Be,"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 wt(){return de()?ge.dark:ge.light}function vt({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=we("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=we("",{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=wt(),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 Et=["Verbosity","Autonomy","Chaos","Creativity","Humor","Spice"],J=["verbosity","autonomy","chaos","creativity","humor","spice"],Z=6,ue=5,be=3,Mt=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=ve,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),v=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(w=>b[w]!==r[w])){const w=C.current;if(a){w.from={...w.current},w.target={...r},w.morphStart=performance.now();const $=v.current;if($){const X=performance.now();(function I(){const D=Math.min((performance.now()-X)/Pt,1),E=1-(1-D)*(1-D);$.setAttribute("r",String(x*(.7+.6*E))),$.setAttribute("opacity",String(.4*(1-E))),D<1&&requestAnimationFrame(I)})()}}else Object.assign(w.current,r),Object.assign(w.target,r)}T.current=r},[r,a,x]),u.useEffect(()=>{if(!a)return;let b;const m=C.current;function w(){var D;m.breathe+=.015;const $=1+Math.sin(m.breathe)*.04;if(m.from){const E=Math.min((performance.now()-m.morphStart)/Mt,1),M=Nt(E);for(const y of J)m.current[y]=m.from[y]+(m.target[y]-m.from[y])*M;E>=1&&(m.from=null,Object.assign(m.current,m.target))}const I=J.map(E=>m.current[E]).map((E,M)=>Q(M,E*$,o,x));(D=j.current)==null||D.setAttribute("points",ie(I)),I.forEach((E,M)=>{const y=S.current[M],N=R.current[M];if(y){y.setAttribute("cx",String(E.x)),y.setAttribute("cy",String(E.y)),y.setAttribute("r",String(8+Math.sin(m.breathe+M*1.2)*3));const B=p.current;y.setAttribute("opacity",String(B.haloBase+Math.sin(m.breathe+M)*B.haloAmplitude))}N&&(N.setAttribute("cx",String(E.x)),N.setAttribute("cy",String(E.y)),N.setAttribute("r",String(3.5+Math.sin(m.breathe+M*.8)*.8)))}),b=requestAnimationFrame(w)}return b=requestAnimationFrame(w),()=>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:v,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 w=Q(m,ue,o,x);return t.jsx("line",{x1:o,y1:o,x2:w.x,y2:w.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:w=>{S.current[m]=w},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:w=>{R.current[m]=w},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}`)),Et.map((b,m)=>{const w=Math.PI*2*m/Z-Math.PI/2;return t.jsx("text",{x:o+f*Math.cos(w),y:o+f*Math.sin(w),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)??ve,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()},[]),v=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:v,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(vt,{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 Dt=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,Dt)},[c]);return{traits:a??s,onTraitsChange:o}}export{Lt as P,Ft as u};
@@ -1,11 +0,0 @@
1
- import{O as b,j as t,G as m,B as y,gd as j,ie as v,aQ as A,fC as f,aY as N,b7 as R,cs as T,cB as E,n as k,l as L,ig as M,aW as U,r as d,bd as O,gc as z,ih as P,cZ as _,ii as I,aZ as F,aL as G,dG as q,d0 as B,d1 as H,d2 as W,d3 as Y,d4 as Z,d5 as $,eC as J,fW as K}from"./index-OQuvRZTD.js";import{R as Q}from"./repeat-CHmB_vD7.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 C={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"}]]};C.node;const V=b(C);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=j(),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:Q,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({...L.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:V,title:"Topology view",description:"See which agents talk to each other"}],primaryAction:{label:"Open Team",onClick:s},secondaryAction:{label:"Not now",onClick:e}})}const he=[{id:"remote-access",placements:["dashboard-sidebar"],priority:90,shouldShow:e=>!e.isDesktopApp&&!e.isHub&&!e.remoteAccessConfigured,content:{icon:M,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 pe(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 ge(){const e=O(),n=ae(),s=z(),{sessions:o}=P(),{data:a}=_(),r=ce(),{data:c}=I(s),{data:l}=F(e),{data:i}=G(),u=((i==null?void 0:i.tunnel.enabled)??!1)||((i==null?void 0:i.tunnel.tokenConfigured)??!1);return{hasAdapter:d.useCallback(D=>c?c.some(g=>g.config.type===D&&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:q(),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(B,{open:n,onOpenChange:s,children:t.jsxs(H,{className:"max-h-[85vh] max-w-lg gap-0 p-0",children:[t.jsx(W,{}),t.jsxs(Y,{className:"p-4 pb-0",children:[t.jsx(Z,{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 me(e){const[n,s]=d.useState(!1),{action:o}=e,a=d.useCallback(()=>{switch(o.type){case"dialog":s(!0);return;case"navigate":K(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,he as P,me as a,pe as s,ge as u};
@@ -1,16 +0,0 @@
1
- import{O as re,aL as De,a1 as os,a3 as Me,a4 as ls,aF as cs,aG as O,r as h,m3 as us,j as s,G as N,bw as ae,ap as oe,el as ds,m4 as ee,m5 as ms,cN as ps,m6 as hs,jA as Oe,m7 as fs,m8 as xs,bV as le,gO as gs,y as Pe,aW as js,iw as Le,cT as U,gW as Ns,m9 as bs,ma as ys,gU as vs,mb as $,dj as _,dk as R,dl as D,bx as ce,by as ue,bz as de,bB as me,gY as ks,aO as Ue,gV as Ts,mc as he,md as Ss,me as Cs,g9 as ze,ga as ws,gb as $e,e9 as Be,mf as Es,mg as se,mh as Is,b8 as As,B as P,mi as _s,mj as Rs,a7 as Ds,mk as Fe,eP as Ms,ec as Os,ml as fe,mm as Ps,k9 as Ls,ka as Us,kb as zs,kc as $s,mn as Bs,mo as Fs,kd as xe,mp as Gs,f as Ws,ee as Y,jZ as Hs,hh as Ge,mq as Qs,mr as Xs,ms as We,mt as He,mu as qs,bH as Vs,bI as Ks,bJ as Ys,bK as Js,_ as Q,bL as Zs,bM as et,bN as st,bP as tt,e as G,eR as Qe,lo as ge,dU as nt,I as it,lp as rt,jY as at,eb as ot,aT as Xe,aQ as pe,cv as lt,mv as ct,e8 as X,mw as ut,cx as J,mx as te,my as qe,mz as Ve,cy as Ke,mA as dt,mB as mt,mC as pt,mD as ht,cz as ft,l$ as xt,bC as W,cB as Ye,mE as gt,kj as jt,ao as Nt,f$ as bt,mF as yt,gZ as vt,mG as kt,mH as Tt,is as St,ju as Ct,J as wt,X as Et,ab as It,h8 as At,g2 as _t,ie as Rt,ey as Dt,hU as Mt,k6 as Ot,$ as Pt,hl as Lt}from"./index-OQuvRZTD.js";import{G as H}from"./git-branch-B8JNwQ6q.js";import{u as Ut}from"./use-update-config-L5NCTj3t.js";import{s as zt}from"./settings-for-runtime-BoOa-ZFG.js";import{C as $t}from"./card-DUmTNXJJ.js";import{R as Bt,H as Ft,a as Gt,b as Wt}from"./RuntimeSetupDialog-D6L1QhMF.js";import{r as Ht}from"./RuntimeConnectFlow-DXWGgvCW.js";import{U as je}from"./unverified-catalog-notice-CGy05tAO.js";import{L as Qt}from"./layers-F4mvrI2l.js";import{C as Xt,a as qt}from"./cpu-DeRuDMl4.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 Je={name:"chart-column",size:24,node:[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],aliases:["bar-chart-3"]};Je.node;const Vt=re(Je);/**
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 Ze={name:"clipboard-copy",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]};Ze.node;const Kt=re(Ze);/**
12
- * @license lucide-react v1.48.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const es={name:"wifi",size:24,node:[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]};es.node;const z=re(es);function Yt(e){var t;return((t=e==null?void 0:e.ui)==null?void 0:t.statusBar)??us}function Jt(){const{data:e}=De();return Yt(e)}function Zt(){const e=os(),t=Me(),n=ls({mutationKey:cs,mutationFn:r=>e.updateConfig({ui:{statusBar:{pins:[...r]}}}),onMutate:async r=>{await t.cancelQueries({queryKey:O.current()});const a=t.getQueryData(O.current());return t.setQueryData(O.current(),o=>o!=null&&o.ui?{...o,ui:{...o.ui,statusBar:{pins:[...r]}}}:o),{previous:a}},onError:(r,a,o)=>{o&&o.previous!==void 0&&t.setQueryData(O.current(),o.previous)},onSettled:()=>{t.invalidateQueries({queryKey:O.current()})}});return{setPins:h.useCallback(r=>n.mutate(r),[n]),isPending:n.isPending}}const en={duration:.2,ease:[.4,0,.2,1]},sn="pointer-coarse:[&_button]:py-3",tn=1e3;function _i({items:e,trailing:t,nameFirst:n}){const i=e.filter(a=>a.cluster==="left"),r=e.filter(a=>a.cluster==="right");return s.jsxs("div",{role:"toolbar","aria-label":"Chat status","aria-live":"polite","data-testid":"status-line",className:"text-muted-foreground flex items-center gap-2 overflow-hidden px-1 text-xs whitespace-nowrap pointer-coarse:min-h-11",children:[s.jsx(Ne,{items:i,className:N("flex-auto",n&&i.length>0?"min-w-10":"min-w-0"),style:n?{flexShrink:tn}:void 0}),s.jsx(Ne,{items:r,className:"min-w-0 shrink"}),t!==void 0&&s.jsx("span",{className:"flex shrink-0 items-center",children:t})]})}const nn=8;function rn(e,t){return nn**Math.max(0,t.indexOf(e.key))}function Ne({items:e,className:t,style:n}){const i=[...e].sort((r,a)=>a.severity-r.severity).map(r=>r.key);return s.jsx("div",{className:N("flex items-center gap-2",t),style:n,children:s.jsx(ae,{initial:!1,mode:"popLayout",children:e.map((r,a)=>s.jsxs(oe.div,{"data-testid":`status-item-${r.key}`,"data-rigid":r.rigid?"true":void 0,"data-held":r.held?"true":void 0,"data-snug":r.snug?"true":void 0,layout:"position",initial:{opacity:0,scale:.8,filter:"blur(4px)"},animate:{opacity:1,scale:1,filter:"blur(0px)"},exit:{opacity:0,scale:.8,filter:"blur(4px)"},transition:en,style:r.rigid||r.held||r.snug?void 0:{flexShrink:rn(r,i)},className:N("inline-flex items-center gap-2",r.rigid||r.held||r.snug?"shrink-0":"min-w-10",sn),children:[a>0&&s.jsx(an,{}),r.node]},r.key))})})}function an(){return s.jsx("span",{className:"text-muted-foreground/30 shrink-0","aria-hidden":"true",children:"·"})}function Ri({cwd:e}){const t=e.split("/").filter(Boolean).pop()??e;return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",title:e,children:[s.jsx(ds,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:t})]})}function q(e){const t=e.trim(),n=Array.from(t);return n.length<=ee?t:`${n.slice(0,ee-1).join("").trimEnd()}…`}function on(e){return e.replace(/\s*\([^()]*\)\s*$/,"").split("·")[0].trim()}function ln(e,t){return q(cn(e,t))}function cn(e,t){const n=t.find(r=>r.value===e);if(n)return on(n.displayName);const i=/claude-(\w+)-/.exec(e);return i?`${i[1].charAt(0).toUpperCase()}${i[1].slice(1)}`:e==="default"?"Default":ms(e)??e}function Di({data:e,workspace:t,compact:n}){if(!e)return null;if(!ps(e))return s.jsxs("span",{className:"text-muted-foreground/50 inline-flex min-w-0 items-center gap-1",title:"Not a git repository",children:[s.jsx(H,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:"No repo"})]});const i=e.modified+e.staged+e.untracked,r=i===1?"1 change":`${i} changes`,a=[];if(e.modified>0&&a.push(`${e.modified} modified`),e.staged>0&&a.push(`${e.staged} staged`),e.untracked>0&&a.push(`${e.untracked} untracked`),e.conflicted>0&&a.push(`${e.conflicted} conflicted`),t){const d=hs(t.portBase),c=[`${t.key} · ${t.projectKey}`,`${t.branch??e.branch} · ${t.provider}`,e.ahead>0?`↑${e.ahead}`:"",e.behind>0?`↓${e.behind}`:"",a.length>0?a.join(", "):"clean",`ports ${d.DORKOS_PORT} / ${d.VITE_PORT} / ${d.SITE_PORT}`,t.pinned?"pinned":""].filter(Boolean);return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",title:c.join(" · "),children:[s.jsx(H,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"max-w-[20ch] truncate font-medium",children:n?q(t.key):t.key}),!n&&s.jsxs("span",{className:"text-muted-foreground truncate",children:["· ",t.projectKey]}),t.pinned&&s.jsx(Oe,{className:"text-muted-foreground size-(--size-icon-xs) shrink-0"}),i>0&&(n?s.jsx(be,{label:r}):s.jsxs("span",{className:"text-muted-foreground shrink-0",children:["· ",r]}))]})}const o=a.length>0?`${e.branch} · ${a.join(", ")}`:`${e.branch} · clean`;return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",title:o,children:[s.jsx(H,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"max-w-[25ch] truncate",children:n?q(e.branch):e.branch}),e.ahead>0&&s.jsxs("span",{className:"text-muted-foreground inline-flex shrink-0 items-center gap-0.5",children:[s.jsx(fs,{className:"size-(--size-icon-xs)"}),e.ahead]}),e.behind>0&&s.jsxs("span",{className:"text-muted-foreground inline-flex shrink-0 items-center gap-0.5",children:[s.jsx(xs,{className:"size-(--size-icon-xs)"}),e.behind]}),i>0&&(n?s.jsx(be,{label:r}):s.jsxs("span",{className:"text-muted-foreground shrink-0",children:["· ",r]}))]})}function be({label:e}){return s.jsx("span",{role:"img","aria-label":e,title:e,className:"bg-muted-foreground/70 size-1 shrink-0 rounded-full"})}function un({stop:e,onMakeDefault:t,onDismiss:n,pending:i,error:r,placement:a="inline"}){const o=a==="overlay";return o&&!e?null:s.jsx("div",{className:N("flex items-center px-1",o?"bg-background/95 pointer-events-auto absolute right-0 bottom-full left-0 z-20 mb-1 rounded-md py-0.5 backdrop-blur-sm":"min-h-5"),"data-testid":o?"make-default-slot-overlay":"make-default-slot",children:e&&s.jsxs("p",{role:"status","data-testid":"make-default-offer",className:N("animate-in fade-in-0 flex min-w-0 items-center gap-1.5 text-xs duration-200 motion-reduce:animate-none",r?"text-destructive":"text-muted-foreground"),children:[s.jsx("span",{className:"min-w-0 flex-1 truncate",children:r?s.jsxs(s.Fragment,{children:[s.jsx(le,{className:"mr-1 inline size-3 shrink-0 align-[-2px]","aria-hidden":!0}),r]}):s.jsxs(s.Fragment,{children:["Start every new chat in ",gs(e),"?"]})})," ",s.jsxs("span",{className:"flex shrink-0 items-center gap-1 whitespace-nowrap",children:[r?s.jsx("button",{type:"button",disabled:i,onClick:t,"data-testid":"make-default-retry",className:"focus-ring text-foreground rounded-sm underline underline-offset-2 disabled:opacity-50",children:"Try again"}):s.jsx("button",{type:"button",disabled:i,onClick:t,"data-testid":"make-default-confirm",className:"focus-ring text-foreground rounded-sm underline underline-offset-2 disabled:opacity-50",children:"Make default"}),s.jsx("span",{"aria-hidden":!0,children:"·"}),s.jsx("button",{type:"button",onClick:n,"data-testid":"make-default-dismiss",className:"focus-ring hover:text-foreground rounded-sm underline underline-offset-2",children:"Dismiss"})]})]})})}function dn(e,t,n){const i=he(e,t),r=he(e,n);return!i||!r?!1:Ss(r,i)?i.auto===!0&&r.auto!==!0&&r.asks!=="never":!0}const mn="Auto mode needs Opus 4.6+ or Sonnet 4.6";function Mi({mode:e,onChangeMode:t,disabled:n,pending:i,runtime:r,modelSupportsAutoMode:a,planActive:o,compact:d,makeDefault:c,onOpenChange:m}){var w;const l=Pe(r),p=js(x=>x.setControlCenterOpen),u=Le(),S=U(x=>x.open),y=U(x=>x.setOpen),v=U(x=>x.setAvailable),j=!(l&&!l.permissionModes.supported)&&n!==!0&&i!==!0;h.useEffect(()=>(v(j),()=>v(!1)),[j,v]);const b=h.useRef(m);if(h.useEffect(()=>{b.current=m},[m]),h.useEffect(()=>()=>{var x;y(!1),(x=b.current)==null||x.call(b,!1)},[y]),l&&!l.permissionModes.supported)return null;const T=(l==null?void 0:l.permissionModes.values)??[],M=!a&&T.some(x=>x.id==="auto"),A=M?T.filter(x=>x.id!=="auto"):T,E=A.find(x=>x.id===e),C=u?T.find(x=>x.id===(l==null?void 0:l.permissionModes.default)):void 0,k=C!==void 0&&E!==void 0&&l!==void 0&&dn(l.permissionModes,E.id,C.id),f=k?C:E,I=k?`${C.label} (Wi-Fi)`:(f==null?void 0:f.label)??Ns(e),V=d?q(k?C.label:I):I,K=bs(f),B=(w=ys(A).find(x=>x.mode.id===e))==null?void 0:w.stop,F=M&&(B==="act"||e==="auto"),L=s.jsxs("button",{disabled:n,"data-testid":"permission-mode-trigger","aria-label":`Permissions: ${I}`,className:N($,"items-center gap-1 disabled:cursor-not-allowed disabled:opacity-40",K),children:[s.jsx(vs,{descriptor:f,className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:V})]});return n?s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:s.jsx("span",{className:"inline-flex",children:L})}),s.jsx(D,{side:"top",children:"Send a message first"})]}):i?s.jsxs("span",{"data-testid":"permission-mode-pending","aria-busy":"true","aria-label":"Permissions: still loading",className:N($,"items-center gap-1 opacity-40"),children:[s.jsx("span",{className:"bg-muted-foreground/30 size-(--size-icon-xs) shrink-0 animate-pulse rounded-full"}),s.jsx("span",{className:"bg-muted-foreground/30 h-2 w-10 animate-pulse rounded"})]}):s.jsxs(ce,{open:S,onOpenChange:x=>{y(x),m==null||m(x)},children:[s.jsx(ue,{asChild:!0,children:L}),s.jsxs(de,{side:"top",align:"start",className:"w-80 p-3","aria-label":"Permissions",children:[s.jsx(me,{children:"Permissions"}),s.jsx(ks,{mode:e,descriptors:A,onChangeMode:t,planActive:o,onUnlock:()=>p(!0)}),c&&s.jsx(un,{...c}),F&&s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:s.jsxs("p",{"data-testid":"auto-unsupported-hint",className:"text-muted-foreground text-3xs mt-2 flex items-center gap-1.5 px-1",children:[s.jsx(Ue,{className:"size-(--size-icon-xs) shrink-0"}),"Auto unavailable on this model"]})}),s.jsx(D,{side:"top",children:mn})]}),s.jsx(Ts,{mode:e,descriptor:E,className:"mt-2 px-1"})]})]})}const ye="On Wi-Fi · agents ask or only read",Z="Over Wi-Fi, every file or shell step needs your OK, or agents only read.",pn="relative after:absolute after:top-1/2 after:left-1/2 after:size-11 after:-translate-x-1/2 after:-translate-y-1/2 after:content-['']";function Oi({compact:e}){const t=Le(),n=Cs();if(!t)return null;const i=s.jsxs("button",{type:"button","data-testid":"wifi-turn-cap","aria-label":`${ye}. ${Z}`,className:N("border-border text-muted-foreground inline-flex items-center gap-1 rounded-full border py-0.5",pn,n?"cursor-pointer":"cursor-default",e?"mx-1.5 px-1":"px-2","focus-visible:ring-ring outline-none focus-visible:ring-[3px]"),children:[s.jsx(z,{"aria-hidden":!0,className:"size-(--size-icon-xs) shrink-0"}),!e&&s.jsx("span",{children:ye})]});return n?s.jsxs(ze,{children:[s.jsx(ws,{asChild:!0,children:i}),s.jsx($e,{side:"top",collisionPadding:8,"data-testid":"wifi-turn-cap-detail",className:"w-auto max-w-70 p-3 text-xs",children:Z})]}):s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:i}),s.jsx(D,{side:"top",children:Z})]})}const hn=6e3;function fn(e){return e instanceof Error&&e.message||"Couldn’t save that. Try again."}function Pi(e){var B,F,L;const{sessionId:t,runtime:n,declaredModes:i,runtimeDefaultMode:r}=e,{data:a}=De(),{data:o}=Be(),d=Ut(),c=Me(),m=Es(t),l=se(w=>w.dismissDefaultStopOffer),[p,u]=h.useState(null),[S,y]=h.useState(null),[v,j]=h.useState(t);v!==t&&(j(t),u(null),y(null));const b=a==null?void 0:a.executionDefaults,T=n??(b==null?void 0:b.runtime),M=(B=b==null?void 0:b.perRuntime.find(w=>w.runtime===T))==null?void 0:B.trustStop,A=M??(b==null?void 0:b.trustStop)??null,E=(F=i.find(w=>w.id===r))==null?void 0:F.stop,C=A??E,k=M!=null?(L=zt(o,T))==null?void 0:L.configSection:void 0,f=a!==void 0;h.useEffect(()=>{if(!p)return;const w=setTimeout(()=>u(null),hn);return()=>clearTimeout(w)},[p]);const I=h.useCallback(w=>{const x=i.find(as=>as.id===w);!x||Is(x)||!f||m||x.stop!==C&&(y(null),u(x.stop))},[i,f,m,C,u,y]),V=h.useCallback(()=>{if(!p)return;const w=p;y(null),d.mutate({runtimes:k?{[k]:{defaultTrustStop:w}}:{defaultTrustStop:w}},{onSuccess:()=>{c.invalidateQueries({queryKey:O.all}),u(null)},onError:x=>y(fn(x))})},[p,d,c,k,u,y]),K=h.useCallback(()=>{l(t),u(null)},[l,t,u]);return{line:f?{stop:p,onMakeDefault:V,onDismiss:K,pending:d.isPending,error:S}:null,offerFor:I}}function Li({runtimeLabel:e,onShown:t,onDismiss:n}){const i=U(a=>a.available),r=U(a=>a.setOpen);return h.useEffect(()=>{t==null||t()},[t]),s.jsxs($t,{"data-slot":"read-only-mode-notice","data-testid":"read-only-mode-notice",gap:"none",className:"flex-row flex-wrap items-center gap-x-3 gap-y-2 px-3 py-2",children:[s.jsx(As,{className:"text-muted-foreground size-4 shrink-0","aria-hidden":!0}),s.jsxs("p",{className:"text-muted-foreground min-w-0 flex-1 text-xs",children:["In this mode, ",e," reads files but won’t change them. Asking won’t help."]}),s.jsxs("div",{className:"flex w-full shrink-0 flex-wrap items-center justify-end gap-1.5 sm:w-auto",children:[s.jsx(P,{variant:"ghost",size:"sm",responsive:!1,className:"h-7 px-2 text-xs",onClick:n,children:"Dismiss"}),i&&s.jsx(P,{variant:"outline",size:"sm",responsive:!1,className:"h-7 px-2 text-xs",onClick:()=>r(!0),children:"Change permissions"})]})]})}function Ui(e,t,n){const i=Pe(t??void 0),r=se(p=>p.recordReadOnlyHintShown),a=se(p=>p.spendReadOnlyHint),o=_s(e??""),d=i==null?void 0:i.permissionModes.values.find(p=>p.id===n),c=d!==void 0&&Rs(d);h.useEffect(()=>{c||!e||o!=="shown"||a(e)},[c,e,o,a]);const m=h.useCallback(()=>{e&&r(e)},[e,r]),l=h.useCallback(()=>{e&&a(e)},[e,a]);return h.useMemo(()=>({eligible:!!e&&c&&o!=="spent",runtimeLabel:t?Ds(t):"This agent",markShown:m,dismiss:l}),[e,c,o,t,m,l])}function zi({descriptor:e,active:t,onToggle:n,disabled:i}){return s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:s.jsxs("button",{type:"button","aria-pressed":t,disabled:i,onClick:()=>n(!t),className:N($,"items-center gap-1","disabled:cursor-not-allowed disabled:opacity-40",t&&"text-foreground"),children:[s.jsx(Fe,{className:"size-(--size-icon-xs) shrink-0","aria-hidden":!0}),s.jsx("span",{className:"shrink-0",children:e.label})]})}),s.jsx(D,{side:"top",children:i?"Send a message first":e.promise})]})}function $i({runtime:e,model:t,onChangeRuntime:n,canSelect:i,compact:r,iconOnly:a,account:o}){const{data:d}=Be(),{data:c}=Ms(),{nameFor:m}=Os(),[l,p]=h.useState({open:!1}),u=Object.keys((d==null?void 0:d.capabilities)??{}),S=u.filter(f=>fe(c,f)),y=u.filter(f=>!fe(c,f)),v=d!==void 0&&Object.values(Ps).some(f=>f.setup&&!u.includes(f.type)),j=!!n&&(u.length>1||y.length>0||v),b=r?null:t,T=Y(e),M=T.icon,A=a?s.jsx(M,{"aria-hidden":!0,className:"size-(--size-icon-xs) shrink-0"}):s.jsx(Hs,{runtime:e,model:b,iconClassName:"size-(--size-icon-xs)"}),E=a?s.jsx("span",{className:"block",children:T.label}):null,C=a?s.jsx("span",{role:"img","aria-label":T.label,"data-testid":"runtime-item-icon",className:"inline-flex items-center",children:A}):A,k=o?`Account: ${m(o)}`:null;return i?j?s.jsxs(s.Fragment,{children:[s.jsxs(Ls,{children:[s.jsx(Us,{asChild:!0,children:s.jsx("button",{className:$,"aria-label":a?`Runs on: ${T.label}`:void 0,title:a?T.label:void 0,children:A})}),s.jsxs(zs,{side:"top",align:"start",className:"w-56",children:[s.jsx($s,{children:"Runs on"}),s.jsx(Bs,{value:e,onValueChange:f=>n==null?void 0:n(f),children:S.map(f=>{const I=Y(f);return s.jsx(Fs,{value:f,icon:I.icon,children:I.label},f)})}),y.map(f=>{const I=Y(f);return s.jsx(xe,{icon:I.icon,description:"Connect",onSelect:()=>p({open:!0,runtime:f}),children:I.label},f)}),v&&s.jsxs(s.Fragment,{children:[s.jsx(Gs,{}),s.jsx(xe,{icon:Ws,onSelect:()=>p({open:!0}),children:"Add a runtime"})]})]})]}),s.jsx(Bt,{runtime:l.runtime,open:l.open,onOpenChange:f=>p(I=>({...I,open:f})),renderConnect:Ht,showConnectSuccess:!0,onRuntimeReady:f=>{n==null||n(f)}})]}):!k&&!E?C:s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:C}),s.jsxs(D,{side:"top",children:[E,k&&s.jsx("span",{className:"block",children:k})]})]}):s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:C}),s.jsxs(D,{side:"top",children:[E,s.jsx("span",{className:"block",children:"Set when the chat starts. It can’t change after."}),k&&s.jsx("span",{className:"block",children:k})]})]})}function Bi(e,t,n){const i=Ge(),r=Qs(e),a=new Date(i),o=t.pending?null:t.usage;return{...Xs({liveTurnUsage:n,liveTurnAt:r,accountStatus:qs(o,a),accountObservedAt:We(He(o))}),accountUsage:o}}function Fi({open:e,onOpenChange:t,onConfirm:n}){return s.jsx(Vs,{open:e,onOpenChange:t,children:s.jsxs(Ks,{children:[s.jsxs(Ys,{children:[s.jsxs(Js,{className:"flex items-center gap-2",children:[s.jsx(Ue,{className:"text-muted-foreground size-4"}),"Turn on Auto mode?",s.jsx(Q,{size:"xs",variant:"secondary",className:"tracking-wide uppercase",children:"Preview"})]}),s.jsx(Zs,{children:"Asks only before risky steps, like deleting files. Switch back anytime."})]}),s.jsxs(et,{children:[s.jsx(st,{children:"Cancel"}),s.jsx(tt,{onClick:n,children:"Turn on Auto mode"})]})]})})}const ve=[{slug:"frontier",label:"Frontier"},{slug:"solid-coders",label:"Solid coders"},{slug:"quick-helpers",label:"Quick helpers"},{slug:"more-models",label:"More models"},{slug:"no-tools",label:"Can’t do agent work"}],xn=10,gn="Can’t use tools, so it can’t read files or run commands.",jn="Makes images DorkOS can’t show yet.",Nn=["openrouter/openrouter/auto","openrouter/auto"];function bn(e){return Nn.some(t=>e.value===t||e.value.startsWith(`${t}-`))}function ss(e){return e.supportsToolUse!==!1}function yn(e){return e.supportsImageOutput===!0&&!bn(e)?jn:ss(e)?null:gn}function vn(e){if(!ss(e))return"no-tools";switch(e.tier){case"frontier":return"frontier";case"solid-coder":return"solid-coders";case"quick-helper":return"quick-helpers";default:return"more-models"}}function kn(e){return e.some(t=>t.tier!=null)||e.length>xn}function Tn(e,t){const n=t.trim().toLowerCase();return n?e.value.toLowerCase().includes(n)||e.displayName.toLowerCase().includes(n):!0}function Sn(e){const t=new Map(ve.map(n=>[n.slug,[]]));for(const n of e)t.get(vn(n)).push(n);return ve.map(n=>({...n,models:t.get(n.slug)})).filter(n=>n.models.length>0)}function Cn(e){return e>=1e6?`${Math.round(e/1e6)}M`:e>=1e3?`${Math.round(e/1e3)}K`:String(e)}function wn(){return s.jsx("div",{className:"space-y-2","data-testid":"model-cards-skeleton",children:Array.from({length:3}).map((e,t)=>s.jsxs("div",{className:"flex items-center gap-3 rounded-xl p-3",children:[s.jsx(G,{className:"size-4 rounded-full"}),s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx(G,{className:"h-3.5 w-24"}),s.jsx(G,{className:"h-2.5 w-32"})]}),s.jsx(G,{className:"h-5 w-10 rounded-md"})]},t))})}function En({onRetry:e,message:t}){return s.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center","data-testid":"model-load-error",children:[s.jsx(le,{className:"text-muted-foreground size-5"}),s.jsx("p",{className:"text-muted-foreground text-xs",children:t??"Couldn’t load the model list."}),s.jsxs("button",{onClick:e,className:"text-foreground hover:bg-accent inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs transition-colors",children:[s.jsx(Qe,{className:"size-3"}),"Retry"]})]})}function In(e){const t=e.slice(e.lastIndexOf(" ")+1);return t.includes("/")||t.includes(":")}function ts({text:e,className:t}){return In(e)?s.jsx("div",{dir:"rtl",className:N("truncate text-left",t),title:e,children:s.jsx("bdi",{dir:"ltr",children:e})}):s.jsx("div",{className:N("truncate",t),title:e,children:e})}function ke({model:e,isSelected:t}){const n=yn(e);return s.jsxs("label",{className:N("flex w-full cursor-pointer items-center gap-3 rounded-xl border p-3 transition-colors duration-150",t?"bg-secondary border-foreground/15":"border-border hover:border-muted-foreground/30 hover:bg-muted/50 opacity-70"),children:[s.jsx(rt,{value:e.value,className:"shrink-0"}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"text-foreground line-clamp-2 text-sm font-medium break-words",children:[e.displayName,e.local&&s.jsxs("span",{className:"text-muted-foreground text-3xs ml-1.5 font-normal",children:[at()," · private"]})]}),s.jsx(ts,{text:e.description,className:"text-muted-foreground text-2xs leading-tight"}),n&&s.jsx("div",{className:"text-2xs text-status-warning-fg mt-0.5 leading-tight","data-testid":`model-limitation-${e.value}`,children:n})]}),e.contextWindow&&s.jsx(Q,{size:"xs",variant:"secondary",className:"shrink-0",children:Cn(e.contextWindow)})]})}function An({value:e}){return s.jsxs("div",{className:"space-y-1.5","data-testid":"model-unavailable-saved",children:[s.jsxs("div",{className:"border-border flex w-full items-center gap-3 rounded-xl border border-dashed p-3 opacity-80",children:[s.jsx(le,{className:"text-status-warning-fg size-4 shrink-0"}),s.jsxs("div",{className:"flex min-w-0 flex-1 items-baseline gap-1.5",children:[s.jsx(ts,{text:e,className:"text-foreground min-w-0 text-sm font-medium"}),s.jsx("span",{className:"text-muted-foreground text-2xs shrink-0 font-normal",children:"(not available)"})]})]}),s.jsx("p",{className:"text-muted-foreground text-2xs leading-snug",children:"This model isn’t available anymore. Pick another."})]})}function _n({slug:e,label:t}){return s.jsx("div",{className:"text-muted-foreground text-2xs mt-2 mb-1 font-medium tracking-wide uppercase first:mt-0","data-testid":`model-group-${e}`,children:t})}function Rn({models:e,selectedModel:t,onChangeModel:n,emptyMessage:i}){const[r,a]=h.useState(""),o=kn(e),c=e.length>0&&t.length>0&&!e.some(u=>u.value===t)?s.jsx(An,{value:t}):null,m=e.some(u=>u.unverified),l=h.useMemo(()=>o?e.filter(u=>Tn(u,r)):e,[e,r,o]),p=h.useMemo(()=>o?Sn(l):[],[l,o]);return e.length===0?s.jsx("div",{className:"border-border text-muted-foreground text-2xs rounded-xl border border-dashed p-3 leading-snug","data-testid":"model-catalog-unavailable",children:i??"Couldn’t load models. Check Settings, then try again."}):o?s.jsxs("div",{className:"space-y-2",children:[c,m&&s.jsx(je,{}),s.jsxs("div",{className:"relative",children:[s.jsx(nt,{className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2"}),s.jsx(it,{type:"text",value:r,onChange:u=>a(u.target.value),placeholder:"Search models…","aria-label":"Search models","data-testid":"model-search",className:"h-8 pl-8 text-xs"})]}),p.length===0?s.jsx("p",{className:"text-muted-foreground py-4 text-center text-xs","data-testid":"model-search-empty",children:m?"No match in this short list. Connect a provider to see more.":"No models match"}):s.jsx(ge,{value:t,onValueChange:n,className:"grid-cols-1 gap-1.5","aria-label":"Model selection","data-testid":"model-card-list",children:p.map(u=>s.jsxs(h.Fragment,{children:[s.jsx(_n,{slug:u.slug,label:u.label}),u.models.map(S=>s.jsx(ke,{model:S,isSelected:S.value===t},S.value))]},u.slug))})]}):s.jsxs("div",{className:"space-y-2",children:[c,m&&s.jsx(je,{}),s.jsx(ge,{value:t,onValueChange:n,className:"grid-cols-1 gap-1.5","aria-label":"Model selection","data-testid":"model-card-list",children:e.map(u=>s.jsx(ke,{model:u,isSelected:u.value===t},u.value))})]})}const ne={none:{label:"None",description:"No reasoning"},minimal:{label:"Minimal",description:"Near-zero thinking"},low:{label:"Low",description:"Fastest responses"},medium:{label:"Medium",description:"Moderate thinking"},high:{label:"High",description:"Deep reasoning"},max:{label:"Max",description:"Maximum thinking"},xhigh:{label:"XHigh",description:"Beyond maximum"}},Dn={duration:.15,ease:"easeOut"};function Mn({effortLevels:e,effort:t,onChangeEffort:n}){return s.jsxs("div",{children:[s.jsx("div",{className:"text-muted-foreground text-2xs mb-2 font-medium tracking-wide uppercase",children:"Effort"}),s.jsxs("div",{className:"flex flex-wrap gap-1.5",role:"radiogroup","aria-label":"Effort level",children:[s.jsx(ie,{role:"radio",label:"Default",isSelected:t===null,onClick:()=>n(null)}),e.map(i=>s.jsx(ie,{role:"radio",label:ne[i].label,description:ne[i].description,isSelected:t===i,onClick:()=>n(i)},i))]})]})}function On({supportsFastMode:e,fastMode:t,onChangeFastMode:n}){return e?s.jsxs("div",{children:[s.jsx("div",{className:"text-muted-foreground text-2xs mb-2 font-medium tracking-wide uppercase",children:"Mode"}),s.jsx("div",{className:"flex gap-1.5",children:s.jsx(ie,{role:"switch",label:"Fast",icon:s.jsx(pe,{className:"size-3"}),isSelected:t,onClick:()=>n(!t)})})]}):null}function ie({role:e,label:t,description:n,icon:i,isSelected:r,onClick:a}){const o=s.jsxs("button",{role:e,"aria-checked":r,onClick:a,className:N("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors duration-150",r?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80 hover:text-foreground"),children:[i,t]});return n?s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:o}),s.jsx(D,{side:"top",className:"text-xs",children:n})]}):o}function Gi({model:e,onChangeModel:t,effort:n,onChangeEffort:i,fastMode:r,onChangeFastMode:a,disabled:o,sessionId:d,runtime:c,onCredits:m,compact:l}){var C;const{data:p,isLoading:u,isError:S,refetch:y}=ot({sessionId:d,runtime:c??void 0}),v=p??[],j=v.find(k=>k.value===e),b=!!(j!=null&&j.supportsEffort&&(((C=j.supportedEffortLevels)==null?void 0:C.length)??0)>0),T=(j==null?void 0:j.supportsFastMode)??!1,M=!l&&b&&n?ne[n].label:null,A=!l&&r,E=s.jsxs("button",{disabled:o,className:N($,"items-center gap-1 disabled:cursor-not-allowed disabled:opacity-40"),"data-testid":"model-config-trigger",children:[s.jsx(Xe,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:ln(e,v)}),M&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-muted-foreground text-2xs",children:"·"}),s.jsx(Q,{size:"xs",variant:"secondary",children:M})]}),A&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-muted-foreground text-2xs",children:"·"}),s.jsxs(Q,{size:"xs",variant:"secondary",children:[s.jsx(pe,{className:"mr-0.5 inline size-2.5"}),"Fast"]})]})]});return o?s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:s.jsx("span",{className:"inline-flex",children:E})}),s.jsx(D,{side:"top",children:"Send a message first"})]}):s.jsxs(ce,{children:[s.jsx(ue,{asChild:!0,children:E}),s.jsxs(de,{side:"top",align:"start",className:"w-120 max-w-[calc(100vw-1.5rem)] p-3","data-testid":"model-config-popover",children:[s.jsx(me,{children:"Model"}),v.some(k=>k.paidFromCredits)&&s.jsx("p",{className:"text-muted-foreground text-2xs mb-2","data-testid":"model-credits-note",children:v.some(k=>k.creditsListOutOfDate)?"Models your DorkOS credits cover. This list may be out of date.":"Models your DorkOS credits cover"}),u&&s.jsx(wn,{}),S&&s.jsx(En,{onRetry:()=>y(),message:m?"Couldn’t load the models DorkOS credits cover. Your model stays as it is.":void 0}),!u&&!S&&s.jsx(Rn,{models:v,selectedModel:e,onChangeModel:t,emptyMessage:m?"DorkOS credits don’t cover a model for this runtime yet.":void 0}),s.jsx(ae,{children:!u&&!S&&(b||T)&&s.jsxs(oe.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:Dn,children:[s.jsx(lt,{className:"my-3"}),s.jsx("div",{className:"text-muted-foreground text-2xs mb-3 font-medium tracking-wide uppercase",children:"Configuration"}),s.jsxs("div",{className:"space-y-3",children:[b&&s.jsx(Mn,{effortLevels:j.supportedEffortLevels,effort:n,onChangeEffort:i}),T&&s.jsx(On,{supportsFastMode:(j==null?void 0:j.supportsFastMode)??!1,fastMode:r,onChangeFastMode:a})]})]},"config")})]})]})}function Wi({percent:e,contextUsage:t,compact:n,reading:i,now:r}){const a=ct(e,t)??e,o=ut(a),d=o==="critical"?X.error:o==="warning"?X.warning:"",c=n!=null&&a>=Ve,m=t?{total:t.totalTokens,max:t.maxTokens}:i&&i.maxTokens>0?{total:i.totalTokens,max:i.maxTokens}:null,l=(i==null?void 0:i.observedAt)??null,p=m!==null,u=s.jsxs("span",{"aria-label":p?"Context window usage":void 0,className:N("inline-flex shrink-0 items-center gap-1",p&&"cursor-default",d),children:[s.jsx(Qt,{className:"size-(--size-icon-xs) shrink-0"}),s.jsxs("span",{children:[a,"%"]})]});return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5",children:[m?s.jsx(Pn,{totals:m,categories:(t==null?void 0:t.categories)??[],observedAt:l,now:r,children:u}):u,s.jsx(ae,{initial:!1,children:c&&s.jsxs(oe.button,{type:"button",onClick:n.onCompact,disabled:n.pending,"aria-label":n.pending?"Compacting chat…":`Context ${a}% full. Compact now`,"aria-busy":n.pending,"data-testid":"compaction-chip",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.15},className:"bg-secondary text-muted-foreground hover:text-foreground hover:bg-muted inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 transition-colors duration-150 disabled:cursor-not-allowed disabled:opacity-60",children:[s.jsx(Qe,{"aria-hidden":"true",className:N("size-(--size-icon-xs) shrink-0",n.pending&&"animate-spin")}),s.jsx("span",{className:"truncate",children:"Compact"})]},"compact")})]})}function Pn({totals:e,categories:t,observedAt:n,now:i,children:r}){const a=t.filter(o=>o.tokens>0).sort((o,d)=>d.tokens-o.tokens);return s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:r}),s.jsx(D,{side:"top",className:"max-w-64",children:s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:"text-xs font-medium",children:[J(e.total)," / ",J(e.max)," tokens"]}),a.length>0&&s.jsx("div",{className:"space-y-0.5",children:a.map(o=>s.jsxs("div",{className:"text-3xs flex items-center justify-between gap-3",children:[s.jsxs("span",{className:"flex items-center gap-1 truncate",children:[s.jsx("span",{className:"inline-block size-1.5 shrink-0 rounded-full",style:{backgroundColor:o.color}}),o.name]}),s.jsx("span",{className:N(te,"shrink-0"),children:J(o.tokens)})]},o.name))}),n!==null&&s.jsx(qe,{observedAt:n,now:i,surface:"tooltip"})]})})]})}function Hi({usage:e,accountUsage:t=null,observedAt:n=null,open:i,onOpenChange:r,now:a}){const o=Ge(),d=a??new Date(o),c=He(t),m=c.length>0?We(c):n,l=e!=null&&Ke(e);let p;return c.length>0?p=s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"text-xs font-medium",children:"Subscription usage"}),s.jsx("div",{className:"flex flex-col gap-2.5",children:c.map(u=>s.jsx(dt,{window:u,label:mt(u.key,u.label),now:d},u.key))}),e&&s.jsx("div",{className:"text-3xs space-y-0.5",children:s.jsx(pt,{usage:e})})]}):l?p=s.jsx(ft,{usage:e}):p=s.jsx("p",{className:"text-muted-foreground text-xs",children:"No usage yet."}),s.jsxs(ze,{open:i,onOpenChange:r,children:[s.jsx(ht,{asChild:!0,children:s.jsx("span",{"aria-hidden":!0,className:"inline-block h-0 w-0"})}),s.jsx($e,{side:"top",align:"end",className:"w-72 max-w-[calc(100vw-1.5rem)]","aria-label":"Usage and cost",children:s.jsxs("div",{className:"space-y-2",children:[p,m!==null&&(c.length>0||l)&&s.jsx(qe,{observedAt:m,now:d})]})})]})}const Ln={connecting:{color:W.warning,label:"Connecting",shortLabel:"Connecting",icon:z,tasks:!0},connected:{color:W.success,label:"Connected",shortLabel:"Connected",icon:z,tasks:!1},reconnecting:{color:W.warning,label:"Reconnecting",shortLabel:"Reconnecting",icon:z,tasks:!0},disconnected:{color:W.error,label:"Live updates lost",shortLabel:"Offline",icon:xt,tasks:!1}};function Qi({connectionState:e,compact:t}){const n=Ln[e],i=n.icon;return s.jsxs(Ft,{openDelay:200,children:[s.jsx(Gt,{asChild:!0,children:s.jsxs("span",{className:"flex min-w-0 cursor-default items-center gap-1.5 text-xs",children:[s.jsx("span",{className:N("size-1.5 shrink-0 rounded-full",n.color,n.tasks&&"animate-breath")}),s.jsx("span",{className:"text-muted-foreground truncate",children:t?n.shortLabel:n.label})]})}),s.jsx(Wt,{side:"top",align:"center",className:"w-72 p-3",children:s.jsxs("div",{className:"flex items-start gap-2.5",children:[s.jsx(i,{className:N("mt-0.5 size-4 shrink-0",e==="disconnected"?X.error:X.warning)}),s.jsxs("div",{className:"min-w-0 space-y-1.5",children:[s.jsx("p",{className:"text-sm font-medium",children:n.label}),s.jsx(Un,{connectionState:e})]})]})})]})}function Un({connectionState:e}){const t="text-muted-foreground text-xs leading-relaxed";return e==="connecting"?s.jsx("p",{className:t,children:"Connecting to live updates. New messages appear once connected."}):e==="reconnecting"?s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("p",{className:t,children:"Live updates dropped and are reconnecting. Nothing is lost."}),s.jsx("p",{className:N(t,"text-muted-foreground/70"),children:"No action needed."})]}):s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("p",{className:t,children:"Can’t reach live updates. New messages appear once they’re back."}),s.jsx("p",{className:N(t,"text-muted-foreground/70"),children:"Still trying. If this lasts, check that DorkOS is running."})]})}function Xi({count:e,running:t,waiting:n}){const i=e===1?"":"s",r=e-t.length,a=`${e} subagent${i} running`;return s.jsxs(_,{children:[s.jsx(R,{asChild:!0,children:s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1","aria-label":a,children:[s.jsx(Ye,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"shrink-0 tabular-nums",children:e})]})}),s.jsxs(D,{side:"top",className:"max-w-64",children:[n&&s.jsx("p",{className:"mb-1 font-medium",children:"Still working. The agent continues when they finish."}),s.jsx("ul",{className:"space-y-1",children:t.map(o=>s.jsxs("li",{children:[s.jsx("span",{className:"font-medium",children:o.description??"Working…"}),s.jsxs("p",{className:N(te,"text-3xs leading-tight"),children:[o.toolUses??0," tool",o.toolUses===1?"":"s",o.lastToolName?` · last ${o.lastToolName}`:""]})]},o.taskId))}),r>0&&s.jsx("p",{className:N(te,"text-3xs leading-tight"),children:t.length>0?`and ${r} more`:`${r} task${i} from earlier`})]})]})}const Te=648,zn=440,$n=340,Bn=3,Fn=3,Gn=2,Wn=4,Hn=8,Qn=20,Xn=ee*Hn+Qn,qn=Number.POSITIVE_INFINITY,Se=[],Vn=["cwd"],Ce=["cwd","git"];function Kn(e){if(e===null||e<=0)return{density:"full",rightBudget:qn,dropped:Se};if(e>=Te){const t=Math.floor((e-Te)/Xn);return{density:"full",rightBudget:Wn+t,dropped:Se}}return e>=zn?{density:"compact",rightBudget:Bn,dropped:Vn}:e>=$n?{density:"identity",rightBudget:Fn,dropped:Ce}:{density:"avatar",rightBudget:Gn,dropped:Ce}}function Yn(e){return e==="identity"||e==="avatar"}function Jn(e,t){return t.severity!==e.severity?t.severity-e.severity:Number(t.pinned)-Number(e.pinned)}const Zn=2,ei=2;function qi(e,t){const n=new Set(t.dropped),i=t.density!=="full",r=l=>i&&l.held,a=e.filter(l=>l.cluster==="right"),o=new Set;let d=0,c=0;const m=[...a].sort((l,p)=>Number(r(p))-Number(r(l))||Jn(l,p));for(const l of m){if(c>=t.rightBudget)break;const p=l.rigid||r(l);p&&d>=Zn||(p&&(d+=1),o.add(l.key),c+=l.wide?Math.min(ei,t.rightBudget-c):1)}return{items:e.filter(l=>l.cluster==="right"?o.has(l.key):!n.has(l.key)).map(l=>l.held===r(l)?l:{...l,held:r(l)}),overflow:a.length-o.size}}const si=new Set(["main","master"]);function Vi(e,t,n){return{dirty:!t,onDefaultBranch:!n&&si.has(e)}}const g={AGENT_ANCHOR:1e3,CONNECTION_LOST:100,CONTEXT_CRITICAL:90,ACCOUNT_ATTENTION:85,USAGE_EXHAUSTED:80,PERMISSION_BYPASS:70,CONTEXT_WARNING:50,USAGE_WARNING:50,PERMISSION_ELEVATED:40,PLAN_ACTIVE:40,SUBAGENTS_RUNNING:35,EXTENSION_ITEM:35,RUNTIME_NON_DEFAULT:30,GIT_DIRTY:20,MODEL:10,CWD:5,QUIET:0},ti={session:"Session",diagnostics:"Diagnostics"};function we(e){return e.runtime&&!e.runtime.isDefault?g.RUNTIME_NON_DEFAULT:g.QUIET}function ni(e){return e.account!==null}const ii=new Set(["near","model-out","out"]);function Ee(e){return e.permissionDescriptor?e.permissionDescriptor.stop!=="ask":e.permissionMode!=="default"}const ns=[{key:"agent",label:"Agent",description:"Who you are talking to",cluster:"left",group:null,icon:jt,promote:()=>!0,severity:()=>g.AGENT_ANCHOR},{key:"cwd",label:"Directory",description:"The folder this chat can touch",cluster:"left",group:"session",icon:Nt,promote:e=>e.cwd!==null,severity:()=>g.CWD},{key:"git",label:"Git",description:"Branch and uncommitted changes",cluster:"left",group:"session",icon:H,promote:e=>e.git!==null&&(e.git.dirty||!e.git.onDefaultBranch),severity:e=>{var t;return(t=e.git)!=null&&t.dirty?g.GIT_DIRTY:g.QUIET}},{key:"runtime",label:"Runs on",description:"What runs this chat",cluster:"right",group:"session",icon:Xt,promote:e=>e.runtime!==null&&e.runtime.type!=="doe"&&(!e.runtime.isDefault||e.runtime.canSelect),severity:we,snug:Yn},{key:"account",label:"Account",description:"Which Claude account this uses, and what’s left",cluster:"right",group:null,icon:qt,promote:e=>e.account!==null,severity:e=>e.account&&ii.has(e.account.chipState)?g.ACCOUNT_ATTENTION:we(e)},{key:"extensions",label:"Add-ons",description:"What your extensions show here",cluster:"right",group:null,icon:bt,promote:e=>e.extensionItems.some(t=>t.visible),severity:e=>e.extensionItems.some(t=>t.visible&&t.urgent)?g.ACCOUNT_ATTENTION:g.EXTENSION_ITEM},{key:"model",label:"Model",description:"The model answering you",cluster:"right",group:"session",icon:Xe,promote:()=>!1,severity:()=>g.MODEL},{key:"cache",label:"Cache",description:"How much came from cache",cluster:"right",group:"session",icon:pe,promote:()=>!1,severity:()=>g.QUIET,neverInLine:!0},{key:"context",label:"Context",description:"How full the context window is",cluster:"right",group:"session",icon:Vt,rigid:!0,promote:e=>e.contextPercent!==null,severity:e=>e.contextPercent===null?g.QUIET:e.contextPercent>=Ve?g.CONTEXT_CRITICAL:e.contextPercent>=kt?g.CONTEXT_WARNING:g.QUIET},{key:"usage",label:"Usage & cost",description:"Plan limits or chat cost",cluster:"right",group:"session",icon:yt,rigid:!0,promote:e=>e.usage!==null&&Ke(e.usage)&&!ni(e),wide:e=>e.usageStale,severity:e=>{var t,n;return((t=e.usage)==null?void 0:t.state)==="exhausted"?g.USAGE_EXHAUSTED:((n=e.usage)==null?void 0:n.state)==="warning"?g.USAGE_WARNING:g.QUIET}},{key:"permission",label:"Permissions",description:"How freely the agent acts",cluster:"right",group:"session",icon:vt,held:!0,promote:e=>Ee(e)||e.permissionPickerOpen===!0||e.onWifi===!0,severity:e=>(e.permissionDescriptor?Tt(e.permissionDescriptor):St(e.permissionMode))?g.PERMISSION_BYPASS:Ee(e)||e.permissionPickerOpen===!0||e.onWifi===!0?g.PERMISSION_ELEVATED:g.QUIET},{key:"plan",label:"Plan",description:"Plan first, change nothing until approved",cluster:"right",group:"session",icon:Fe,promote:e=>e.plan!==null,severity:e=>{var t;return(t=e.plan)!=null&&t.active?g.PLAN_ACTIVE:g.QUIET},snug:()=>!0},{key:"subagents",label:"Subagents",description:"Subagents working on this turn",cluster:"right",group:"diagnostics",icon:Ye,rigid:!0,promote:e=>e.subagentsInFlight>0,severity:e=>e.subagentsInFlight>0?g.SUBAGENTS_RUNNING:g.QUIET},{key:"connection",label:"Live updates",description:"The live link that delivers messages",cluster:"right",group:"diagnostics",icon:z,promote:e=>e.connectionState!=="connected",severity:e=>e.connectionState==="connected"?g.QUIET:g.CONNECTION_LOST}];function is(e){return e.group==="session"&&e.neverInLine!==!0}function ri(){const{pins:e}=Jt(),{setPins:t}=Zt(),n=h.useCallback(r=>{const a=gt.find(o=>o===r);a&&t(e.includes(a)?e.filter(o=>o!==a):[...e,a])},[e,t]),i=h.useCallback(()=>t([]),[t]);return{pins:e,toggle:n,reset:i}}function ai(){return["session","diagnostics"].map(t=>({group:t,label:ti[t],items:ns.filter(n=>n.group===t)})).filter(t=>t.items.length>0)}function rs(e){const t=e.contextTokens??e.readTokens+e.creationTokens;return t<=0?0:Math.round(e.readTokens/t*100)}function oi(e){return e?e.kind==="subscription"&&e.utilization!=null?`${Math.round(e.utilization*100)}% of ${e.windowLabel??"your plan"}`:e.costUsd!=null?`$${e.costUsd.toFixed(2)}`:null:null}function li(e){return e.split("/").filter(Boolean).pop()??e}function ci(e,t){switch(e){case"cwd":return t.cwd?li(t.cwd):null;case"git":return t.git.state==="unknown"?null:t.git.state==="no-repo"?"No repo":t.git.dirty?`${t.git.branch} · changed`:t.git.branch;case"runtime":return t.runtime;case"model":return t.model;case"context":return t.contextPercent===null?null:`${t.contextPercent}% full`;case"cache":return t.cache===null?null:`${rs(t.cache)}% from cache`;case"usage":return oi(t.usage);case"permission":return t.permissionMode;case"connection":return`${t.connectionState} · event ${t.lastEventSeq}`;default:return null}}function ui(e){return JSON.stringify({sessionId:e.sessionId,cwd:e.cwd,git:e.git,runtime:e.runtime,model:e.model,selectedModel:e.selectedModel,effort:e.effort,fastMode:e.fastMode,permissionMode:e.permissionMode,contextPercent:e.contextPercent,contextUsage:e.contextUsage,cache:e.cache===null?null:{readTokens:e.cache.readTokens,creationTokens:e.cache.creationTokens,contextTokens:e.cache.contextTokens??null,hitPercent:rs(e.cache)},usage:e.usage,connectionState:e.connectionState,streaming:e.streaming,lifecycle:e.lifecycle,triggerPending:e.triggerPending,lastEventSeq:e.lastEventSeq,snapshotCursor:e.snapshotCursor,lastEventAt:e.lastEventAt===null?null:new Date(e.lastEventAt).toISOString(),queueDepth:e.queueDepth,subagents:e.subagents.map(t=>t.name),activeSubagents:e.activeSubagents,runningSubagentCount:e.runningSubagentCount,clientVersion:e.clientVersion,capturedAt:new Date().toISOString()},null,2)}function di({copied:e,failed:t}){return e?s.jsx(wt,{className:"text-status-success size-3.5","aria-hidden":!0}):t?s.jsx(Et,{className:"text-destructive size-3.5","aria-hidden":!0}):s.jsx(Kt,{className:"size-3.5","aria-hidden":!0})}function mi(e,t){return e?"Copied":t?"Couldn’t copy":"Copy diagnostics"}function pi({diagnostics:e,className:t}){const{copied:n,failed:i,copy:r}=Ct(),a=()=>void r(ui(e));return s.jsxs(P,{variant:"ghost",size:"sm",className:N("gap-1.5 text-xs",t),onClick:a,children:[s.jsx(di,{copied:n,failed:i}),mi(n,i)]})}function Ki({open:e,onOpenChange:t,diagnostics:n,controls:i,promotionContext:r,urgentAction:a,overflowCount:o=0,addOns:d}){const c=It(),{pins:m,toggle:l,reset:p}=ri(),u=ai(),S=new Set(m),y=o>0;return s.jsxs(ce,{open:e,onOpenChange:t,children:[s.jsx(At,{children:s.jsxs(_,{children:[s.jsx(ue,{asChild:!0,children:s.jsx(R,{asChild:!0,children:s.jsxs("button",{type:"button","data-testid":"status-reveal","aria-label":y?`Chat details, ${o} more`:"Chat details",className:"text-muted-foreground/50 hover:text-muted-foreground inline-flex shrink-0 items-center justify-center gap-0.5 transition-colors duration-150 pointer-coarse:min-h-11 pointer-coarse:min-w-11",children:[s.jsx(_t,{className:"size-4"}),y&&s.jsxs("span",{className:"tabular-nums",children:["+",o]})]})})}),s.jsx(D,{side:"top",children:y?`Chat details, ${o} more`:"Chat details"})]})}),s.jsxs(de,{side:"top",align:"end",className:"w-80 p-3","aria-label":"Chat",children:[s.jsx(me,{children:"Chat"}),a&&s.jsx(P,{variant:"secondary",className:"mb-3 w-full",disabled:a.pending,onClick:()=>{a.onAction(),t(!1)},children:a.label}),s.jsxs("div",{className:"flex flex-col gap-4",children:[d&&s.jsxs("section",{className:"space-y-1","data-testid":"session-add-ons",children:[s.jsx("h3",{className:"text-muted-foreground px-1 text-xs font-medium tracking-wide uppercase",children:"Add-ons"}),d]}),u.map(v=>s.jsxs("section",{className:"space-y-1",children:[s.jsx("h3",{className:"text-muted-foreground px-1 text-xs font-medium tracking-wide uppercase",children:v.label}),hi(fi(v.items,i),c?r:null).map(j=>s.jsx(gi,{item:j,value:ci(j.key,n),pinned:S.has(j.key),onTogglePin:is(j)?()=>l(j.key):null,control:xi(j.key,i)},j.key)),v.group==="diagnostics"&&s.jsxs(s.Fragment,{children:[s.jsx(Ie,{label:"Queued messages",value:String(n.queueDepth)}),s.jsx(Ie,{label:"Chat ID",value:n.sessionId||"—"})]})]},v.group))]}),n.sessionId!==""&&s.jsxs(P,{variant:"ghost",size:"sm",className:"text-muted-foreground mt-3 h-7 w-full justify-start gap-1.5 text-xs",onClick:()=>{t(!1),Dt({sessionId:n.sessionId})},children:[s.jsx(Rt,{className:"size-3.5","aria-hidden":!0}),"View notifications"]}),s.jsxs("div",{className:"mt-4 flex items-center justify-between gap-2",children:[s.jsx(pi,{diagnostics:n}),s.jsxs(P,{variant:"ghost",size:"sm",className:"text-muted-foreground gap-1.5 text-xs",disabled:m.length===0,onClick:p,children:[s.jsx(Mt,{className:"size-3.5","aria-hidden":!0}),"Reset pins"]})]})]})]})}function hi(e,t){return t?[...e].sort((n,i)=>i.severity(t)-n.severity(t)):e}function fi(e,t){return e.filter(n=>n.key!=="plan"||t.plan!==null)}function xi(e,t){return e==="plan"&&t.plan?s.jsx(Pt,{checked:t.plan.active,onCheckedChange:t.plan.onToggle,"aria-label":"Plan first, change nothing until approved"}):null}function gi({item:e,value:t,pinned:n,onTogglePin:i,control:r}){const a=e.icon;return s.jsxs("div",{"data-testid":`session-row-${e.key}`,className:"flex items-center gap-2 px-1 py-1 text-sm",children:[s.jsx(a,{className:"text-muted-foreground size-3.5 shrink-0","aria-hidden":!0}),s.jsx("span",{className:"shrink-0",children:e.label}),s.jsx("span",{className:"min-w-0 flex-1"}),s.jsx("span",{className:"text-muted-foreground truncate text-xs",title:t??void 0,children:t??"—"}),r,i&&s.jsx("button",{type:"button",onClick:i,"aria-pressed":n,"aria-label":n?`Stop keeping ${e.label} in the status bar`:`Keep ${e.label} in the status bar`,className:N("hover:text-foreground inline-flex size-6 shrink-0 items-center justify-center rounded-md transition-colors duration-150",n?"text-foreground":"text-muted-foreground/50"),children:n?s.jsx(Oe,{className:"size-3.5"}):s.jsx(Ot,{className:"size-3.5"})})]})}function Ie({label:e,value:t}){return s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-sm",children:[s.jsx("span",{className:"w-3.5 shrink-0","aria-hidden":!0}),s.jsx("span",{className:"shrink-0",children:e}),s.jsx("span",{className:"min-w-0 flex-1"}),s.jsx("span",{className:"text-muted-foreground truncate text-xs",title:t,children:t})]})}function Yi(e){const t=h.useRef(e);h.useEffect(()=>{t.current=e},[e]),h.useEffect(()=>{const n=i=>{const r=i.key==="."||i.key===">";(i.metaKey||i.ctrlKey)&&i.shiftKey&&r&&(i.preventDefault(),t.current())};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[])}const Ae=new WeakMap;function _e(e,t,n){let i=Ae.get(e);i||(i=new Set,Ae.set(e,i)),!i.has(t)&&(i.add(t),n())}function Re(e,t,n){let i;try{i=n()}catch(r){return _e(e,`${t}:throw`,()=>console.warn(`[extensions] ${e.extensionId}'s status-bar item "${e.id}" threw in ${t}(); it is hidden until it stops throwing.`,r)),!1}return typeof i!="boolean"?(_e(e,`${t}:type`,()=>console.warn(`[extensions] ${e.extensionId}'s status-bar item "${e.id}": ${t}() must return true or false, synchronously, reading only its ctx; it returned ${ji(i)}, read as false.`)),!1):i}function ji(e){return e instanceof Promise?"a Promise":e===null?"null":typeof e=="object"?"an object":`a ${typeof e}`}function Ni(e,t){const n=[],i=[];for(const r of e){const a=r.when?Re(r,"when",()=>r.when(t)):!0,o=a&&r.urgent?Re(r,"urgent",()=>r.urgent(t)):!1;n.push({id:r.id,visible:a,urgent:o}),a&&i.push(r)}return i.sort((r,a)=>(r.priority??0)-(a.priority??0)),{promotion:n,visible:i}}function Ji(e){const t=Lt("status-bar");return h.useMemo(()=>Ni(t,e),[t,e])}function bi(e){return e!=null&&e!==!1}function Zi({ctx:e,pins:t,nodes:n,density:i="full"}){var o,d;const r=new Set(t),a=[];for(const c of ns){if(c.neverInLine)continue;const m=n[c.key];if(!bi(m))continue;const l=r.has(c.key)&&is(c);!l&&!c.promote(e)||a.push({key:c.key,cluster:c.cluster,severity:c.severity(e),pinned:l,rigid:c.rigid===!0,wide:((o=c.wide)==null?void 0:o.call(c,e))===!0,held:c.held===!0,snug:((d=c.snug)==null?void 0:d.call(c,i))===!0,node:m})}return a}function er(){const e=h.useRef(null),[t,n]=h.useState(null);h.useLayoutEffect(()=>{const r=e.current;if(!r)return;n(r.getBoundingClientRect().width);const a=new ResizeObserver(o=>{var m,l;const d=o.at(0);if(!d)return;const c=((l=(m=d.contentBoxSize)==null?void 0:m.at(0))==null?void 0:l.inlineSize)??d.contentRect.width;n(c)});return a.observe(r),()=>a.disconnect()},[]);const i=h.useMemo(()=>Kn(t),[t]);return{ref:e,budget:i}}export{Fi as A,pi as C,Di as G,un as M,Mi as P,Li as R,Ki as S,Hi as U,Oi as W,Ln as a,Qi as b,rs as c,Wi as d,Ri as e,Gi as f,zi as g,$i as h,_i as i,Xi as j,qi as k,Ni as l,ui as m,Vi as n,Yn as o,ni as p,ln as q,Kn as r,Zi as s,Pi as t,Ji as u,Ui as v,Yi as w,ri as x,er as y,Bi as z};
@@ -1 +0,0 @@
1
- import{a1 as n,a3 as s,a4 as u,aF as o,aG as r}from"./index-OQuvRZTD.js";function c(){const e=n(),t=s();return u({mutationKey:o,mutationFn:a=>e.updateConfig(a),onSuccess:()=>{t.invalidateQueries({queryKey:r.current()})}})}export{c as u};