dorkos 0.124.0 → 0.124.1

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 (311) hide show
  1. package/dist/bin/cli.js +935 -551
  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-BH8Ndn3e.js → AboutPage-DHaZvsJE.js} +1 -1
  5. package/dist/client/assets/{ActivityErrorState-K5Mew9EX.js → ActivityErrorState-BP-qFk2S.js} +1 -1
  6. package/dist/client/assets/{ActivityPage-BB20L5HU.js → ActivityPage-Bme3TzdQ.js} +1 -1
  7. package/dist/client/assets/{ActivityRow-C5O7rnmS.js → ActivityRow-BRZyW9MA.js} +1 -1
  8. package/dist/client/assets/{AdapterIcon-Bmybvrzb.js → AdapterIcon-BcfquTja.js} +1 -1
  9. package/dist/client/assets/{AdapterSetupWizard-CkdV7Hhh.js → AdapterSetupWizard-B4I23pBg.js} +1 -1
  10. package/dist/client/assets/{AgentOptionRow-BA2cDa7r.js → AgentOptionRow-Cb34LtmH.js} +1 -1
  11. package/dist/client/assets/{AgentPicker-CsIIPGZJ.js → AgentPicker-ouNRFSDh.js} +1 -1
  12. package/dist/client/assets/{AgentRequestCard-0fOxvaoe.js → AgentRequestCard-B6MHIsxa.js} +2 -2
  13. package/dist/client/assets/{AppearancePage-XOjkkoli.js → AppearancePage-CutehigK.js} +1 -1
  14. package/dist/client/assets/ApplyToOverridesDialog-B-wIUI27.js +1 -0
  15. package/dist/client/assets/{AttentionSignalRow-CjjZobp7.js → AttentionSignalRow-B1aMjgX_.js} +1 -1
  16. package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-9TVHyRPJ.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-CdWF4WLz.js} +1 -1
  17. package/dist/client/assets/{BindingDialog-DLoAQauL.js → BindingDialog-BAdueON5.js} +1 -1
  18. package/dist/client/assets/{BlintzCanvas-CYHsXAcY.js → BlintzCanvas-b30dG4gx.js} +3 -3
  19. package/dist/client/assets/{CanvasCsvContent--Gr7Fe_U.js → CanvasCsvContent-DGHgSikG.js} +1 -1
  20. package/dist/client/assets/{CanvasFileContent-estXyAbr.js → CanvasFileContent-D1bFaUeh.js} +2 -2
  21. package/dist/client/assets/{CanvasModel3dContent-CkOo930M.js → CanvasModel3dContent-dST7g1v2.js} +2 -2
  22. package/dist/client/assets/{ChatAppsOff-D4L1zJVN.js → ChatAppsOff-DiObvmJS.js} +1 -1
  23. package/dist/client/assets/{CodeMirrorDiff-DY_6ju-z.js → CodeMirrorDiff-BncI1OY1.js} +1 -1
  24. package/dist/client/assets/{CodeMirrorEditor-BUoDBsBv.js → CodeMirrorEditor-DV6psv19.js} +1 -1
  25. package/dist/client/assets/{CommitmentList-wDkcVP9c.js → CommitmentList-Dx_Ek_Gl.js} +1 -1
  26. package/dist/client/assets/{CommitmentsPage-CzSM6b8R.js → CommitmentsPage-Bca8NMUa.js} +1 -1
  27. package/dist/client/assets/{ComputerResourceView-cERD9H2L.js → ComputerResourceView-DNVNFTdn.js} +1 -1
  28. package/dist/client/assets/{ComputerViewer-rMcfbk2_.js → ComputerViewer-D8SxJdMm.js} +1 -1
  29. package/dist/client/assets/{ConnectionAccessLists-f7QeQbQo.js → ConnectionAccessLists-Bhj1YT15.js} +1 -1
  30. package/dist/client/assets/{ConnectionsPage-BmjtA6pw.js → ConnectionsPage-B20JZxoK.js} +1 -1
  31. package/dist/client/assets/{ConventionPage-CH-ah6nI.js → ConventionPage-De645wxU.js} +1 -1
  32. package/dist/client/assets/{ExtensionPageRoute-CJIxa6ST.js → ExtensionPageRoute-nTeiOBRQ.js} +1 -1
  33. package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-BP7EJ2JL.js → FloatingTanStackRouterDevtools-CqogiFob-DM79UITv.js} +1 -1
  34. package/dist/client/assets/HandlePage-B08V-om7.js +1 -0
  35. package/dist/client/assets/{HeartbeatPage-BUsf-qrU.js → HeartbeatPage-CBoUxz6t.js} +1 -1
  36. package/dist/client/assets/{KeyEntry-C2kWdN8q.js → KeyEntry-Cug8ocpX.js} +1 -1
  37. package/dist/client/assets/{LexicalField-CR8ulsI_.js → LexicalField-Bv_ogmAq.js} +1 -1
  38. package/dist/client/assets/{ManagesPage-DTtsIOGi.js → ManagesPage-DfJBQKK3.js} +1 -1
  39. package/dist/client/assets/{Marketplace-iaV5XAzv.js → Marketplace-swCVUbdY.js} +2 -2
  40. package/dist/client/assets/{MarketplaceSourcesView-6tgzUfFj.js → MarketplaceSourcesView-CDZDChpV.js} +1 -1
  41. package/dist/client/assets/{McpAppFrame-C7eYYdI9.js → McpAppFrame-BM9cNPPd.js} +1 -1
  42. package/dist/client/assets/{McpSigninBody-BDyGbJ7I.js → McpSigninBody-DKyUKrEE.js} +1 -1
  43. package/dist/client/assets/{Model3dViewer-BujDNuVS.js → Model3dViewer-rXSL5y2P.js} +1 -1
  44. package/dist/client/assets/NamePage-JwMDK1JD.js +1 -0
  45. package/dist/client/assets/{NewDirectMessageMenu-D4e-z2Jt.js → NewDirectMessageMenu-GCEMS5oV.js} +1 -1
  46. package/dist/client/assets/{NotificationsPage-CkDeTaJp.js → NotificationsPage-DSWsOVLa.js} +1 -1
  47. package/dist/client/assets/{OpenMeshSwitch-CtbOt3r5.js → OpenMeshSwitch-BTuctDj4.js} +1 -1
  48. package/dist/client/assets/{OperatorIdentityForm-Vr4qZnmM.js → OperatorIdentityForm-ODDMd2YN.js} +1 -1
  49. package/dist/client/assets/PermissionHistory-41a58Se7.js +1 -0
  50. package/dist/client/assets/{PermissionsPage-f4QaX8oM.js → PermissionsPage-DefmymZ6.js} +1 -1
  51. package/dist/client/assets/{PersonalityPopover-BkZruwF-.js → PersonalityPopover-7zPVBI1I.js} +1 -1
  52. package/dist/client/assets/PhotoPage-DlOVhkW9.js +1 -0
  53. package/dist/client/assets/{PreviewRefusedNotice-BXC2K0tx.js → PreviewRefusedNotice-CwGlBJ7U.js} +1 -1
  54. package/dist/client/assets/{ProfileFields-BebX5oiv.js → ProfileFields-DVMkpJSb.js} +1 -1
  55. package/dist/client/assets/{ProfilePanelContainer-DZoL65zQ.js → ProfilePanelContainer-RrhoPD3T.js} +1 -1
  56. package/dist/client/assets/{ProfileRolePicker-D9H7wsuT.js → ProfileRolePicker-CXRVBCAu.js} +1 -1
  57. package/dist/client/assets/{PromptSuggestionChips-B5fDmc-g.js → PromptSuggestionChips-bBroJdTi.js} +1 -1
  58. package/dist/client/assets/{ReportsToPopover-uVYhSqj7.js → ReportsToPopover-CfPatsWM.js} +1 -1
  59. package/dist/client/assets/{RoomSurface-Bg5WV4Ep.js → RoomSurface-CdgCdV6h.js} +11 -11
  60. package/dist/client/assets/{RoomsPage-yflYFulU.js → RoomsPage-C3dDp1Mb.js} +1 -1
  61. package/dist/client/assets/{RunsOnPopover-DtGrX1Vq.js → RunsOnPopover-BcKjfQi-.js} +1 -1
  62. package/dist/client/assets/{RuntimeConnectFlow-DjReuQ-T.js → RuntimeConnectFlow-DCIRnvOH.js} +1 -1
  63. package/dist/client/assets/{RuntimeSetupDialog-Cr4GRi8c.js → RuntimeSetupDialog-Bg-0b-LC.js} +1 -1
  64. package/dist/client/assets/SeenDevices-nMsGUQTv.js +19 -0
  65. package/dist/client/assets/{SessionsPage-BWu-en78.js → SessionsPage-Cqfx4FGW.js} +1 -1
  66. package/dist/client/assets/SettingsDialog-C8r2igJ_.js +12 -0
  67. package/dist/client/assets/{SkillsPage-BdUb9SZy.js → SkillsPage-BleHQavF.js} +1 -1
  68. package/dist/client/assets/{TaskDialogWrapper-qYJPEoSR.js → TaskDialogWrapper-BhTEvf-u.js} +1 -1
  69. package/dist/client/assets/{TasksEmptyState-Bgcg9vxF.js → TasksEmptyState-Bprx1k8M.js} +2 -2
  70. package/dist/client/assets/{TasksPage-Ch5W2WQS.js → TasksPage-Dub39yEJ.js} +1 -1
  71. package/dist/client/assets/{TeamComputerEntry-CPwSIMRw.js → TeamComputerEntry-CJ-NG0u5.js} +1 -1
  72. package/dist/client/assets/ToolsPage-IsD6M-ZW.js +2 -0
  73. package/dist/client/assets/{TopologyGraph-I4_mkMHM.js → TopologyGraph-CwyasvFI.js} +14 -14
  74. package/dist/client/assets/{TourHost-BPaSwh9I.js → TourHost-BYfztuPb.js} +1 -1
  75. package/dist/client/assets/{UnlinkDialog-BUWZUu5P.js → UnlinkDialog-BKhgxVdF.js} +1 -1
  76. package/dist/client/assets/{WidgetErrorCard-cS8yMCxU.js → WidgetErrorCard-1NyzIJBj.js} +6 -6
  77. package/dist/client/assets/_shell-Ct2Bz7D0.js +80 -0
  78. package/dist/client/assets/{_shell._home-DCA5k-jb.js → _shell._home-xWj7wO5z.js} +1 -1
  79. package/dist/client/assets/{_shell._home.activity-BX4nFLna.js → _shell._home.activity-BqcLoaB1.js} +1 -1
  80. package/dist/client/assets/{_shell._home.index-C8t8cw72.js → _shell._home.index-D4sQsKKk.js} +1 -1
  81. package/dist/client/assets/{_shell._home.tasks-BgUeEvhK.js → _shell._home.tasks--UhQB6h3.js} +1 -1
  82. package/dist/client/assets/{_shell._home.workspaces-BPBdnkRt.js → _shell._home.workspaces-BPFD8Of2.js} +1 -1
  83. package/dist/client/assets/{_shell.channels-CX4kki7G.js → _shell.channels-CnFdvRzc.js} +4 -4
  84. package/dist/client/assets/{_shell.connections-0vP7g7E4.js → _shell.connections-Ik01wS5M.js} +1 -1
  85. package/dist/client/assets/{_shell.feedback-requests-TsuaO4eR.js → _shell.feedback-requests-Czu42kzo.js} +1 -1
  86. package/dist/client/assets/_shell.marketplace-Cezv-i16.js +1 -0
  87. package/dist/client/assets/_shell.marketplace_.sources-BTENmr4W.js +1 -0
  88. package/dist/client/assets/_shell.session-BjevHF_O.js +63 -0
  89. package/dist/client/assets/{_shell.team-Bm6cOBhR.js → _shell.team-UfaJqohh.js} +3 -3
  90. package/dist/client/assets/_shell.x._extensionId-0OO_Xr72.js +1 -0
  91. package/dist/client/assets/_shell.x._extensionId_._-0OO_Xr72.js +1 -0
  92. package/dist/client/assets/{abnfDiagram-WEYOIA3C-CrvoN15x.js → abnfDiagram-WEYOIA3C-oxkfGyl6.js} +1 -1
  93. package/dist/client/assets/{access-copy-B3yNZ7Gz.js → access-copy-Dggxx2cX.js} +1 -1
  94. package/dist/client/assets/{arc-CuT6QA_y.js → arc-CqQdP0Qe.js} +1 -1
  95. package/dist/client/assets/{architectureDiagram-ZHVYKT53-CPXCZ9H4.js → architectureDiagram-ZHVYKT53-89xM7zJD.js} +1 -1
  96. package/dist/client/assets/{banner-DRumuw3F.js → banner-DqJ2pM0Y.js} +1 -1
  97. package/dist/client/assets/{blockDiagram-RJAE7QA3-CM0rka9p.js → blockDiagram-RJAE7QA3-CcxwDmZC.js} +1 -1
  98. package/dist/client/assets/{c4Diagram-XDPPPE54-D4j2cXRy.js → c4Diagram-XDPPPE54-DCIhIyXa.js} +1 -1
  99. package/dist/client/assets/{card-B3CtfC3R.js → card-DT-vFAns.js} +1 -1
  100. package/dist/client/assets/channel-Ngk70nQZ.js +1 -0
  101. package/dist/client/assets/{chunk-2E7WHVMD-KGyqhVpO.js → chunk-2E7WHVMD-BfWEXcCj.js} +1 -1
  102. package/dist/client/assets/{chunk-2Q5K7J3B-Dl0BHoqK.js → chunk-2Q5K7J3B-KLXLZXlR.js} +1 -1
  103. package/dist/client/assets/{chunk-4EMNKR2T-Da7vH6Kv.js → chunk-4EMNKR2T-CL5Gttmj.js} +1 -1
  104. package/dist/client/assets/{chunk-55XCU76K-DgBUEROO.js → chunk-55XCU76K-cfAl84Mv.js} +1 -1
  105. package/dist/client/assets/{chunk-5VM5RSS4-BQ4mn-_I.js → chunk-5VM5RSS4-BqUyGgoH.js} +1 -1
  106. package/dist/client/assets/{chunk-JWPE2WC7-8LPR3mXf.js → chunk-JWPE2WC7-BWr2ST9i.js} +1 -1
  107. package/dist/client/assets/{chunk-VQ5W62QI-BkIVXi4W.js → chunk-VQ5W62QI-V5zYx50O.js} +1 -1
  108. package/dist/client/assets/{chunk-XXDRQBXY-DQXJx06h.js → chunk-XXDRQBXY-gnvheN_J.js} +1 -1
  109. package/dist/client/assets/{chunk-ZCHMQSOR-DzCE7qlD.js → chunk-ZCHMQSOR-ClGxxZvV.js} +2 -2
  110. package/dist/client/assets/{classDiagram-v2-4MYWR3UA-C_cZra7c.js → classDiagram-v2-4MYWR3UA-DvmHzDb5.js} +1 -1
  111. package/dist/client/assets/{command-CDKbyppr.js → command-CNx4L11m.js} +1 -1
  112. package/dist/client/assets/{cose-bilkent-JH36ORCC-DlXHdGwT.js → cose-bilkent-JH36ORCC-Df8nXBRj.js} +1 -1
  113. package/dist/client/assets/{cpu-B7xLO7jn.js → cpu-D8KJEkdh.js} +1 -1
  114. package/dist/client/assets/{cynefin-EF2NZ3EQ-HhP4ArLc.js → cynefin-EF2NZ3EQ-CAn6ufHs.js} +1 -1
  115. package/dist/client/assets/{cynefinDiagram-WF24UDRP-D4GgWnZV.js → cynefinDiagram-WF24UDRP-Cep_NrRw.js} +1 -1
  116. package/dist/client/assets/{dagre-NK4GIZVX-SZ_OI2Zi.js → dagre-NK4GIZVX-sWD3z9wf.js} +1 -1
  117. package/dist/client/assets/{diagram-CBK3MWTC-BN-_Ja5m.js → diagram-CBK3MWTC-CUpaBATr.js} +1 -1
  118. package/dist/client/assets/{diagram-I5XIIV2D-t7AK6xnL.js → diagram-I5XIIV2D-BejWB2ry.js} +1 -1
  119. package/dist/client/assets/{diagram-ODIL2UCW-C1V7szSc.js → diagram-ODIL2UCW-BGKJfNk9.js} +1 -1
  120. package/dist/client/assets/{diagram-PFBEJUXE-DPtraQ2g.js → diagram-PFBEJUXE-V0dP8H8k.js} +1 -1
  121. package/dist/client/assets/{diagram-RJA3I4VV-D2XNRB2b.js → diagram-RJA3I4VV-Bf5dVsFX.js} +1 -1
  122. package/dist/client/assets/{diagram-TYUNFSNR-BieaRy38.js → diagram-TYUNFSNR-CLrMSqb4.js} +1 -1
  123. package/dist/client/assets/{ebnfDiagram-V4P3TTPT-Bwki86UY.js → ebnfDiagram-V4P3TTPT-BGG4CWA0.js} +1 -1
  124. package/dist/client/assets/{elk-QONTBCTQ-WEXSAyHB.js → elk-QONTBCTQ-bf9D6f0w.js} +1 -1
  125. package/dist/client/assets/{empty-state-J-UJ0BUU.js → empty-state-CDoXnrKn.js} +1 -1
  126. package/dist/client/assets/{erDiagram-KYQIGQAA-DIKASnoc.js → erDiagram-KYQIGQAA-fEUv-33P.js} +1 -1
  127. package/dist/client/assets/{execution-config-ILQiJAmy.js → execution-config-Ca9MDOtV.js} +1 -1
  128. package/dist/client/assets/{file-D40js1Zx.js → file-CiyVL55_.js} +1 -1
  129. package/dist/client/assets/{file-exclamation-point-Dg3ZpiAe.js → file-exclamation-point-DaFRIKco.js} +1 -1
  130. package/dist/client/assets/{file-text-DgdvRfMk.js → file-text-DsnD-A8g.js} +1 -1
  131. package/dist/client/assets/{find-latest-widget-fence-D4kBWC_1.js → find-latest-widget-fence-CNsnCgbB.js} +1 -1
  132. package/dist/client/assets/{flowDiagram-IUGLLWBU-CoavNw0M.js → flowDiagram-IUGLLWBU-CRbeSDod.js} +1 -1
  133. package/dist/client/assets/{form-DlPwEgQH.js → form-Cru78aT-.js} +1 -1
  134. package/dist/client/assets/{format-cron-BrK8RzgT.js → format-cron-9K38-tn1.js} +1 -1
  135. package/dist/client/assets/{ganttDiagram-R7GPNTJY-DccKAz7f.js → ganttDiagram-R7GPNTJY-Mkk7zgs_.js} +1 -1
  136. package/dist/client/assets/{git-branch-BpxhecMq.js → git-branch-CONwEYiR.js} +1 -1
  137. package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DEbo_dgQ.js → gitGraphDiagram-PDYL7XHY-Drre0vyA.js} +1 -1
  138. package/dist/client/assets/{graph-DROgI3M3.js → graph-BJlnKWgo.js} +1 -1
  139. package/dist/client/assets/{heart-c7u4Ezxt.js → heart-CqwUlIUG.js} +1 -1
  140. package/dist/client/assets/{highlighted-body-KPVGNVTW-CrATNdTR.js → highlighted-body-KPVGNVTW-e4LXC_pS.js} +1 -1
  141. package/dist/client/assets/{image-lightbox-DE_fHkw-.js → image-lightbox-DHDtzoja.js} +1 -1
  142. package/dist/client/assets/{image-off-BExgZjfM.js → image-off-DZuLkaRJ.js} +1 -1
  143. package/dist/client/assets/{index-D0eJtRlK.js → index-1yEXEZiH.js} +1 -1
  144. package/dist/client/assets/{index-Be0OJLWK.js → index-A41zxoWk.js} +1 -1
  145. package/dist/client/assets/{index-DeRDq7bD.js → index-B25gvCK_.js} +1 -1
  146. package/dist/client/assets/index-B9bZYNKR.js +1 -0
  147. package/dist/client/assets/{index-DaZ1I8s-.js → index-BBmkfbXd.js} +1 -1
  148. package/dist/client/assets/{index-DNGNMW3c.js → index-BDD2EyoW.js} +1 -1
  149. package/dist/client/assets/{index-Ccf1XBTs.js → index-BFNy-Yp3.js} +1 -1
  150. package/dist/client/assets/{index-DksjixUS.js → index-BIB-maE5.js} +1 -1
  151. package/dist/client/assets/{index-CbHCZsbE.js → index-BKp2B9JS.js} +1 -1
  152. package/dist/client/assets/{index-DCJQGDZk.js → index-BLP5O7X9.js} +1 -1
  153. package/dist/client/assets/{index-DhHobJd3.js → index-BTjZIgFn.js} +1 -1
  154. package/dist/client/assets/{index-BVqSmajJ.js → index-BV2Ezdxv.js} +1 -1
  155. package/dist/client/assets/{index-C7B3eSOP.js → index-B_0LYi32.js} +1 -1
  156. package/dist/client/assets/{index-DDgOoXP1.js → index-Bd7vUYhr.js} +1 -1
  157. package/dist/client/assets/{index-BlyoyIck.js → index-Bo7x9IkO.js} +1 -1
  158. package/dist/client/assets/{index-D150FXCC.js → index-BtDxwJsM.js} +1 -1
  159. package/dist/client/assets/{index-DswGXheF.js → index-By58MgcZ.js} +1 -1
  160. package/dist/client/assets/index-C3cvP8Fo.js +1033 -0
  161. package/dist/client/assets/{index-C5or4L_3.js → index-CVuEUzi5.js} +1 -1
  162. package/dist/client/assets/{index-BkoMsjtM.js → index-CoWJD3Jg.js} +2 -2
  163. package/dist/client/assets/{index-CqPRAM_6.js → index-CyVH876g.js} +1 -1
  164. package/dist/client/assets/{index-BGqvci3k.js → index-D67Kfy-M.js} +1 -1
  165. package/dist/client/assets/{index-D3YeRrne.js → index-DAlpmAIA.js} +1 -1
  166. package/dist/client/assets/{index-BEkYBuOq.js → index-DDNwNOHF.js} +1 -1
  167. package/dist/client/assets/{index-CD8aw6Jb.js → index-DL8ISRMH.js} +1 -1
  168. package/dist/client/assets/{index-AzyLwYS_.js → index-DabU6r9W.js} +3 -3
  169. package/dist/client/assets/{index-CT_pFeX_.js → index-DdJBZE0H.js} +1 -1
  170. package/dist/client/assets/{index-B3eeEDWj.js → index-DijWcSDZ.js} +1 -1
  171. package/dist/client/assets/index-DyRGZyur.css +1 -0
  172. package/dist/client/assets/{index-DINk1YfD.js → index-DzwZJuO1.js} +1 -1
  173. package/dist/client/assets/{index-CZmqtJWZ.js → index-HR8BYVRQ.js} +1 -1
  174. package/dist/client/assets/{index-J3Hh1MnL.js → index-LEcodwyW.js} +1 -1
  175. package/dist/client/assets/index-UPF8suf2.js +1 -0
  176. package/dist/client/assets/{index-DT7pv2iW.js → index-Vz7VUm9l.js} +1 -1
  177. package/dist/client/assets/index-YW-v746p.js +1 -0
  178. package/dist/client/assets/{index-2wezsLA_.js → index-cI2u8WZS.js} +1 -1
  179. package/dist/client/assets/{index-InEBtYxw.js → index-iTQUa_b2.js} +6 -6
  180. package/dist/client/assets/{index-CYy1cjtq.js → index-mZqojApH.js} +1 -1
  181. package/dist/client/assets/{index-dyAahqKe.js → index-pVFjKNjX.js} +1 -1
  182. package/dist/client/assets/{index-DxiRRZRo.js → index-skAhJyIF.js} +1 -1
  183. package/dist/client/assets/{index-BizvylBV.js → index-vJy88bwb.js} +1 -1
  184. package/dist/client/assets/index-wY5OcS4a.js +43 -0
  185. package/dist/client/assets/{index-mwf7ZNk2.js → index-x1yAu9zJ.js} +1 -1
  186. package/dist/client/assets/{index-F-vqXYqa.js → index-xAgihCJ7.js} +1 -1
  187. package/dist/client/assets/{index.esm-BFJ9SG0n.js → index.esm-BUPoRUaG.js} +1 -1
  188. package/dist/client/assets/{infoDiagram-MVDRKAX5-VL8q5pKx.js → infoDiagram-MVDRKAX5-B_Wyzufh.js} +1 -1
  189. package/dist/client/assets/{inline-code-BE9ckzPs.js → inline-code-BIzGDx6z.js} +1 -1
  190. package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-BLKkPYF-.js → ishikawaDiagram-HPEHV2GE-BDk2-6Pd.js} +1 -1
  191. package/dist/client/assets/{journeyDiagram-BOSHW7O7-CSYpRobu.js → journeyDiagram-BOSHW7O7-7qf9KWEQ.js} +1 -1
  192. package/dist/client/assets/{kanban-definition-FNSA4HC5-HilAqtZo.js → kanban-definition-FNSA4HC5-CFYDQmXn.js} +1 -1
  193. package/dist/client/assets/{layers-Cm7coqdo.js → layers-C9tVVcXg.js} +1 -1
  194. package/dist/client/assets/{lightbulb-DqdWS75d.js → lightbulb-f4jtsAh0.js} +1 -1
  195. package/dist/client/assets/{link-2-CDJapTSa.js → link-2-ZNlK1BG1.js} +1 -1
  196. package/dist/client/assets/{list-runtime-types-CP82p1u4.js → list-runtime-types-CqO-QFYD.js} +1 -1
  197. package/dist/client/assets/{markdown-content-m_qereFc.js → markdown-content-DaEVxezf.js} +1 -1
  198. package/dist/client/assets/{mention-pill-DV5HIG5Q.js → mention-pill-BiCPflY-.js} +1 -1
  199. package/dist/client/assets/{mermaid.core-zxW6MBr-.js → mermaid.core-SX8SzrsU.js} +4 -4
  200. package/dist/client/assets/{message-square-off-YVtpbaJ0.js → message-square-off-_qbedNGF.js} +1 -1
  201. package/dist/client/assets/{mindmap-definition-6OY57UG3-IAYemvOg.js → mindmap-definition-6OY57UG3-BloJIArH.js} +1 -1
  202. package/dist/client/assets/{more-details-ReA2ZFBn.js → more-details-CdJT0Ehl.js} +1 -1
  203. package/dist/client/assets/{owner-notice-M4hn_1ep.js → owner-notice-BDafFD_I.js} +1 -1
  204. package/dist/client/assets/{package-CUuTl39E.js → package-Cb7lEm7t.js} +1 -1
  205. package/dist/client/assets/{page-container-BnmNikNZ.js → page-container-DsRgIMAL.js} +1 -1
  206. package/dist/client/assets/{paperclip-C6fYq5Zf.js → paperclip-DNu1VtoX.js} +1 -1
  207. package/dist/client/assets/{path-input-DHn9-XaE.js → path-input-D3O71b-X.js} +1 -1
  208. package/dist/client/assets/{pegDiagram-ECIUJNBX-CojaUwe7.js → pegDiagram-ECIUJNBX-Di48kPNu.js} +1 -1
  209. package/dist/client/assets/{pieDiagram-GNMPY74T-CjP3pw6V.js → pieDiagram-GNMPY74T-DY8B_SPD.js} +1 -1
  210. package/dist/client/assets/{plug-DHQcxt7N.js → plug-IIS_cL9-.js} +1 -1
  211. package/dist/client/assets/{primer-trigger-BmV5wjek.js → primer-trigger-DurKYe8C.js} +2 -2
  212. package/dist/client/assets/{profile-errors-BSCuj3rT.js → profile-errors-BdhZfdvZ.js} +1 -1
  213. package/dist/client/assets/{progress-4FQQfnS6.js → progress-g5kkqvlR.js} +1 -1
  214. package/dist/client/assets/{quadrantDiagram-D57K4MC3-OP0Z8zcR.js → quadrantDiagram-D57K4MC3-Depv_dON.js} +1 -1
  215. package/dist/client/assets/{query-error-state-BkUdxenP.js → query-error-state-PuLGD7Jp.js} +1 -1
  216. package/dist/client/assets/{radio-ta5Bw763.js → radio-QOLZSBz1.js} +1 -1
  217. package/dist/client/assets/{railroadDiagram-Y72NRBL7-CT3NCb9b.js → railroadDiagram-Y72NRBL7-BfD2AiZM.js} +1 -1
  218. package/dist/client/assets/registry-Ck8p6n1T.js +1 -0
  219. package/dist/client/assets/{relay-trace-schemas-DwUuyxao.js → relay-trace-schemas-DF_DfZ7s.js} +1 -1
  220. package/dist/client/assets/{requirementDiagram-EQYSW5RA-tde4lYGp.js → requirementDiagram-EQYSW5RA-B1iTjrkD.js} +1 -1
  221. package/dist/client/assets/{room-files-source-CZWhaaOy.js → room-files-source-g1th8mWs.js} +2 -2
  222. package/dist/client/assets/{rotate-ccw-clock-RfbbgUa4.js → rotate-ccw-clock-BGwYMaGL.js} +1 -1
  223. package/dist/client/assets/{rotate-cw-B3rB_YSw.js → rotate-cw-B4Y0q4GY.js} +1 -1
  224. package/dist/client/assets/{sankeyDiagram-SY24JHO5-sdCzIA7-.js → sankeyDiagram-SY24JHO5-D5TzVJrQ.js} +1 -1
  225. package/dist/client/assets/{scroll-area-B4WB7Q40.js → scroll-area-BvScZKSa.js} +1 -1
  226. package/dist/client/assets/{search-x-DCUmWW2_.js → search-x-CqN5twBj.js} +1 -1
  227. package/dist/client/assets/{sequenceDiagram-BLEHNHQU-DvzTJcKu.js → sequenceDiagram-BLEHNHQU-BhUahaNf.js} +1 -1
  228. package/dist/client/assets/{shield-x-CANziVLc.js → shield-x-DHJrwtKp.js} +1 -1
  229. package/dist/client/assets/signed-in-BmywDpR5.js +1 -0
  230. package/dist/client/assets/{sizeCapture-INFHLROL-DuDA7TKE.js → sizeCapture-INFHLROL-D2Vi1Kq9.js} +1 -1
  231. package/dist/client/assets/{soul-file-Co_8f1qw.js → soul-file-BMpVFN7U.js} +1 -1
  232. package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-BJPX5JTC.js → stateDiagram-v2-A6IESKWZ-b9gSbZnF.js} +1 -1
  233. package/dist/client/assets/{swimlanes-B3ENRKFQ-CiLSffGv.js → swimlanes-B3ENRKFQ-i47jxLY6.js} +1 -1
  234. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-CA9gW19w.js +8 -0
  235. package/dist/client/assets/{table-BSAvOYPp.js → table-CN2HCi4p.js} +1 -1
  236. package/dist/client/assets/{terminal-6CdY-T1V.js → terminal-BORQniao.js} +1 -1
  237. package/dist/client/assets/{timeline-definition-JXYKGLGB-5oq8sl82.js → timeline-definition-JXYKGLGB-eY5gj0js.js} +1 -1
  238. package/dist/client/assets/{trust-posture-D-Yjm6ot.js → trust-posture-Bcyy5Fub.js} +1 -1
  239. package/dist/client/assets/{unplug-Bq_1WdV7.js → unplug-lkD35Rwp.js} +1 -1
  240. package/dist/client/assets/{unverified-catalog-notice-CEzu54YH.js → unverified-catalog-notice-DiCIrrhU.js} +1 -1
  241. package/dist/client/assets/{use-adapter-catalog-Tn3ZbPAj.js → use-adapter-catalog-BrqVd-47.js} +1 -1
  242. package/dist/client/assets/{use-bindings-Bz9YRgO7.js → use-bindings-CU2RSXOy.js} +1 -1
  243. package/dist/client/assets/{use-composer-prefs-D9oKJSQN.js → use-composer-prefs-Dy2oTM8Y.js} +1 -1
  244. package/dist/client/assets/{use-connector-management-CLYFraXN.js → use-connector-management-5oRqzydY.js} +1 -1
  245. package/dist/client/assets/{use-deep-link-scroll-DkS713kG.js → use-deep-link-scroll-Bg5nW8qq.js} +1 -1
  246. package/dist/client/assets/{use-delete-binding-CukKpHBK.js → use-delete-binding-qeyRkvR1.js} +1 -1
  247. package/dist/client/assets/{use-dev-links-DQ32IcGe.js → use-dev-links-FY4J_PjA.js} +1 -1
  248. package/dist/client/assets/{use-external-adapter-catalog-D-FO_XW6.js → use-external-adapter-catalog-HiWFZZrW.js} +1 -1
  249. package/dist/client/assets/{use-full-activity-feed-BNxcyb1j.js → use-full-activity-feed-K1uk9Wya.js} +1 -1
  250. package/dist/client/assets/use-is-below-desktop-Cu_jKnft.js +1 -0
  251. package/dist/client/assets/use-is-hub-BX7ypNRJ.js +1 -0
  252. package/dist/client/assets/{use-jump-back-in-Bibj5tVk.js → use-jump-back-in-BjZ8EswV.js} +1 -1
  253. package/dist/client/assets/{use-local-browser-xg7WXAVK.js → use-local-browser-CTFiF0wf.js} +1 -1
  254. package/dist/client/assets/{use-mesh-topology-BgCSFw8s.js → use-mesh-topology-CafidaIH.js} +1 -1
  255. package/dist/client/assets/{use-mounted-ref-qRbdZfOU.js → use-mounted-ref-B38uSLCx.js} +1 -1
  256. package/dist/client/assets/{use-notification-prefs-B-4kZR7I.js → use-notification-prefs-m9XSNB6W.js} +1 -1
  257. package/dist/client/assets/{use-panel-tab-placements-CCq-mZlY.js → use-panel-tab-placements-D9n6rNJ1.js} +1 -1
  258. package/dist/client/assets/use-pending-read-BoV-UI1E.js +1 -0
  259. package/dist/client/assets/{use-personality-commit-DwSisUfF.js → use-personality-commit-ChLQfLrK.js} +1 -1
  260. package/dist/client/assets/{use-promo-activation-Botoso6l.js → use-promo-activation-DbJDgp4_.js} +1 -1
  261. package/dist/client/assets/{use-promo-dismissals-RJXp-r_J.js → use-promo-dismissals-Csw0j0N0.js} +1 -1
  262. package/dist/client/assets/{use-pulse-freshness-B3390hGg.js → use-pulse-freshness-BIZ7daHW.js} +1 -1
  263. package/dist/client/assets/{use-relay-config-BV0xcLwS.js → use-relay-config-hUB3lVFv.js} +1 -1
  264. package/dist/client/assets/{use-room-follow-claim-Du4hKHIJ.js → use-room-follow-claim-BpKzhniV.js} +1 -1
  265. package/dist/client/assets/{use-roving-tab-list-g2hO6Ruz.js → use-roving-tab-list-BtM0bZL7.js} +1 -1
  266. package/dist/client/assets/{use-session-canvas-i30oMO_Q.js → use-session-canvas-DRrkNRcL.js} +3 -3
  267. package/dist/client/assets/use-session-diagnostics-BTNgouum.js +16 -0
  268. package/dist/client/assets/{use-unclaimed-chats-B92om889.js → use-unclaimed-chats-BbMZtNG9.js} +1 -1
  269. package/dist/client/assets/use-update-config-CkWwKNkY.js +1 -0
  270. package/dist/client/assets/{useMutationState-DdOGdpjP.js → useMutationState-CVpvw27W.js} +1 -1
  271. package/dist/client/assets/{usecaseDiagram-WPOLBNNX-Di5pJvcw.js → usecaseDiagram-WPOLBNNX-CHcpeLg4.js} +1 -1
  272. package/dist/client/assets/{vennDiagram-Q3Y3IDCW-K7KAf26T.js → vennDiagram-Q3Y3IDCW-gQbZL_A6.js} +1 -1
  273. package/dist/client/assets/{wardleyDiagram-IVAIDKWA-DVTaxQt9.js → wardleyDiagram-IVAIDKWA-BFH_WHzZ.js} +1 -1
  274. package/dist/client/assets/{xychartDiagram-4URNHDU4-x-lSJm_B.js → xychartDiagram-4URNHDU4-B0QpyqeZ.js} +1 -1
  275. package/dist/client/index.html +2 -2
  276. package/dist/drizzle/20261019185620_dor3037_wifi_holds.sql +8 -0
  277. package/dist/drizzle/meta/20261019185620_snapshot.json +14079 -0
  278. package/dist/drizzle/meta/_journal.json +7 -0
  279. package/dist/server/extension-child.cjs +18 -2
  280. package/dist/server/index.js +55523 -26605
  281. package/dist/server/index.js.map +2 -2
  282. package/package.json +6 -6
  283. package/dist/client/assets/ApplyToOverridesDialog-CoO6V1G4.js +0 -1
  284. package/dist/client/assets/HandlePage-Cg8H3mQS.js +0 -1
  285. package/dist/client/assets/NamePage-Bx8T98OF.js +0 -1
  286. package/dist/client/assets/PermissionHistory-DzU1rf2B.js +0 -1
  287. package/dist/client/assets/PhotoPage-CmrOIRjf.js +0 -1
  288. package/dist/client/assets/SeenDevices-SPWkdzoK.js +0 -19
  289. package/dist/client/assets/SettingsDialog-_dEXUhHe.js +0 -12
  290. package/dist/client/assets/ToolsPage-Idimrn3o.js +0 -2
  291. package/dist/client/assets/_shell-ClVN2pUj.js +0 -80
  292. package/dist/client/assets/_shell.marketplace-CiL6YRbl.js +0 -1
  293. package/dist/client/assets/_shell.marketplace_.sources-C0sI8e21.js +0 -1
  294. package/dist/client/assets/_shell.session-_hhBvFc6.js +0 -63
  295. package/dist/client/assets/_shell.x._extensionId-BWy5v1YE.js +0 -1
  296. package/dist/client/assets/_shell.x._extensionId_._-BWy5v1YE.js +0 -1
  297. package/dist/client/assets/channel-DjBlTcCV.js +0 -1
  298. package/dist/client/assets/index-7jby-RRg.js +0 -1
  299. package/dist/client/assets/index-BqIHtiaE.js +0 -1
  300. package/dist/client/assets/index-Cga0qx1T.js +0 -1033
  301. package/dist/client/assets/index-Ct4At33X.js +0 -1
  302. package/dist/client/assets/index-DITPwUa9.js +0 -38
  303. package/dist/client/assets/index-DUZrTFYD.css +0 -1
  304. package/dist/client/assets/registry-Dc102rws.js +0 -1
  305. package/dist/client/assets/signed-in-DctJ2IWe.js +0 -1
  306. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Dv1-QS9J.js +0 -8
  307. package/dist/client/assets/use-is-below-desktop-gTvJDvw4.js +0 -1
  308. package/dist/client/assets/use-is-hub-B1vPpkYU.js +0 -1
  309. package/dist/client/assets/use-pending-read-C8L_v4Zw.js +0 -1
  310. package/dist/client/assets/use-session-diagnostics-a4b83F5J.js +0 -16
  311. package/dist/client/assets/use-update-config-Tbn3SodN.js +0 -1
@@ -1 +0,0 @@
1
- import{aN as a,aO as s}from"./index-Cga0qx1T.js";const t={tasks:s,moment:a};export{t as i};
@@ -1 +0,0 @@
1
- import{a1 as l,a2 as g,a4 as j,j as t,dA as m,ar as u,G as x,J as k,X as b,x as p,r as o,b7 as N,B as d,gC as w,l as v,Y as O,gD as S,gE as C}from"./index-Cga0qx1T.js";import{P as E,M as L}from"./plug-DHQcxt7N.js";import{R}from"./rotate-cw-B3rB_YSw.js";function T(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(E,{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(L,{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=T(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(R,{}),"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-CoavNw0M.js";import{_ as o}from"./mermaid.core-zxW6MBr-.js";import"./transform-BqqRT-Iy.js";import"./chunk-5VM5RSS4-BQ4mn-_I.js";import"./chunk-XXDRQBXY-DQXJx06h.js";import"./chunk-VQ5W62QI-BkIVXi4W.js";import"./chunk-55XCU76K-DgBUEROO.js";import"./BlintzCanvas-CYHsXAcY.js";import"./index-Cga0qx1T.js";import"./index-DksjixUS.js";import"./index-AzyLwYS_.js";import"./channel-DjBlTcCV.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{aw as e}from"./index-Cga0qx1T.js";const o=1024;function t(){return e(`(max-width: ${o-1}px)`)}export{t as u};
@@ -1 +0,0 @@
1
- import{as as r}from"./index-Cga0qx1T.js";function u(){var e;return((e=r().data)==null?void 0:e.serverRole)==="hub"}export{u};
@@ -1 +0,0 @@
1
- import{ac as n}from"./index-Cga0qx1T.js";function r(s){const e=n();return s||e}export{r as u};
@@ -1,16 +0,0 @@
1
- import{W as de,as as ne,a1 as q,a3 as me,a4 as Cs,at as ws,au as B,r as h,le as Es,lf as Ve,lg as Ye,lh as Ms,aW as Z,hP as Je,dw as pe,y as fe,a2 as he,h0 as Rs,li as _s,iD as Ze,lj as As,dS as es,lk as Os,ll as Me,lm as Ps,ln as Ds,a7 as Is,j as s,bx as xe,ar as ge,G as k,d$ as Us,aR as Re,lo as oe,lp as Ls,lq as zs,il as ss,lr as Bs,l4 as $s,bL as Ne,gn as Fs,cu as H,gX as Gs,ls as Hs,lt as Ws,gV as qs,lu as W,cO as D,cP as I,cQ as U,by as je,bz as ye,bA as be,bC as ve,gZ as Qs,aN as ts,gW as Ks,lv as Xs,lw as $,lx as Vs,b8 as Ys,B as F,ly as Js,lz as Zs,a9 as et,lA as ns,dv as st,dT as tt,lB as _e,lC as nt,ip as rt,iq as it,jb as Ae,is as at,it as ot,lD as lt,lE as ct,iu as Oe,lF as ut,f as dt,dz as Pe,hf as rs,lG as mt,lH as pt,lI as is,lJ as as,lK as ft,gc as ht,gd as xt,ge as gt,gf as Nt,_ as ee,gg as jt,gh as yt,gi as bt,gj as vt,e as K,dB as os,k7 as De,dl as St,I as Tt,k8 as kt,ja as Ct,aS as ls,aO as Se,c9 as wt,dQ as se,cb as ae,lL as le,lM as cs,cc as us,lN as Et,lO as Mt,lP as Rt,eT as _t,lQ as At,eV as Ot,cd as Pt,lR as Dt,bD as X,ce as ds,lS as It,ju as Ut,aq as Lt,eZ as zt,lT as Bt,g_ as $t,lU as Ft,hJ as Gt,iN as Ht,J as Wt,X as qt,ad as Qt,l0 as Kt,g5 as Xt,hN as Vt,ed as Yt,hy as Jt,ik as Zt,$ as en,eJ as sn,lV as tn,cr as nn,lW as rn,lX as an,lY as on,lZ as ln,l_ as cn,l$ as un,m0 as dn}from"./index-Cga0qx1T.js";import{G as V}from"./git-branch-BpxhecMq.js";import{u as mn}from"./use-update-config-Tbn3SodN.js";import{s as pn}from"./settings-for-runtime-BoOa-ZFG.js";import{C as fn}from"./card-B3CtfC3R.js";import{R as hn,H as xn,a as gn,b as Nn}from"./RuntimeSetupDialog-Cr4GRi8c.js";import{r as jn}from"./RuntimeConnectFlow-DjReuQ-T.js";import{U as Ie}from"./unverified-catalog-notice-CEzu54YH.js";import{L as yn}from"./layers-Cm7coqdo.js";import{C as bn,a as vn}from"./cpu-B7xLO7jn.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 ms={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"]};ms.node;const Sn=de(ms);/**
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 ps={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"}]]};ps.node;const Tn=de(ps);/**
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 fs={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"}]]};fs.node;const Y=de(fs);function kn(e){return e.ambient===!0&&e.status!=="error"}function yi(e){const t=[],n=[];for(const r of e)(r.ambient?n:t).push(r);return{shown:t,ambient:n}}function Cn(e){var t;return((t=e==null?void 0:e.ui)==null?void 0:t.statusBar)??Es}function wn(){const{data:e}=ne();return Cn(e)}function En(){const e=q(),t=me(),n=Cs({mutationKey:ws,mutationFn:i=>e.updateConfig({ui:{statusBar:{pins:[...i]}}}),onMutate:async i=>{await t.cancelQueries({queryKey:B.current()});const o=t.getQueryData(B.current());return t.setQueryData(B.current(),a=>a!=null&&a.ui?{...a,ui:{...a.ui,statusBar:{pins:[...i]}}}:a),{previous:o}},onError:(i,o,a)=>{a&&a.previous!==void 0&&t.setQueryData(B.current(),a.previous)},onSettled:()=>{t.invalidateQueries({queryKey:B.current()})}});return{setPins:h.useCallback(i=>n.mutate(i),[n]),isPending:n.isPending}}const Mn=80,Rn=95,_n=70,hs=85;function An(e){return e>=Rn?"critical":e>=Mn?"warning":"ok"}function xs(e,t){return e==null||e<=0||t==null||t<=0?null:Math.min(100,Math.round(e/t*100))}function gs(e,t){return t?Math.round(t.percentage):e}function On(e){var n;const t=e.cacheStats;return!t||t.cacheReadTokens===0&&t.cacheCreationTokens===0?null:{cacheReadTokens:t.cacheReadTokens,cacheCreationTokens:t.cacheCreationTokens,contextTokens:(n=e.contextUsage)==null?void 0:n.totalTokens}}function Pn(e){var t,n;return e?{contextPercent:xs((t=e.contextUsage)==null?void 0:t.totalTokens,(n=e.contextUsage)==null?void 0:n.maxTokens),costUsd:e.cost,model:e.model,cacheStatus:On(e),usage:e.usage}:{contextPercent:null,costUsd:null,model:null,cacheStatus:null,usage:null}}function Ns(e,t,n){if(t)return"streaming";if(e===void 0)return n;switch(e){case"streaming":return"streaming";case"error":return"error";default:return"idle"}}function bi(e,t){var n;return Ns((n=e.status)==null?void 0:n.lifecycle,e.triggerPending,t)}function Dn(e){const t=Ve(e),n=Ye(e),r=Ms(e);return Ns(t,n,r)}function In(e,t){return e??t??"default"}function J(e){return!e.isPending||e.fetchStatus==="idle"||e.fetchStatus==="paused"}const Un=5e3;function Ln(e,t){const n=q(),r=Z(N=>N.selectedCwd),{sessions:i,isAnswered:o,isLoading:a}=Je(),u=ne(),f=pe(),{data:m}=u,{data:p}=f,c=t??(p==null?void 0:p.defaultRuntime)??null,d=fe(c),y=e!==null&&o&&!i.some(N=>N.id===e),v=he({queryKey:Ze.storedSettings(e),queryFn:()=>n.getStoredSessionSettings(e),staleTime:Un,enabled:y,networkMode:"always"}),{data:l}=v;if(r===null)return{mode:void 0,settled:!1};if(a)return{mode:void 0,settled:!1};if(!y)return{mode:void 0,settled:!0};if(!J(v)||!J(u)||!J(f))return{mode:void 0,settled:!1};if((l==null?void 0:l.permissionMode)!==void 0)return{mode:l.permissionMode,settled:!0};if(!c||!(d!=null&&d.permissionModes.supported))return{mode:void 0,settled:!0};const x=Rs(m==null?void 0:m.executionDefaults,c);return{mode:_s(x,d.permissionModes),settled:!0}}function zn(e,t,n,r){var Te,ke;const i=q(),o=me(),a=Z(j=>j.selectedCwd),u=As(e),f=(u==null?void 0:u.cwd)??a,m=Z(j=>j.pendingAccount),{data:p}=es({sessionId:e??void 0,runtime:r??void 0}),c=Os(e??""),d=Me(j=>j.apply),y=Me(j=>j.clear),v=Ps(e),{data:l}=v,{sessions:x}=Je(),N=e===null?void 0:x.find(j=>j.id===e),w=Ln(e,r),g=((Te=p==null?void 0:p.find(j=>j.isDefault))==null?void 0:Te.value)??((ke=p==null?void 0:p[0])==null?void 0:ke.value)??"",T=Ds(e??""),_=!r||!(l!=null&&l.runtime)||l.runtime===r?l==null?void 0:l.model:void 0,E=T&&_===T.from?T.to:_,O=c.model??(n?t==null?void 0:t.model:null)??E??g,P=p==null?void 0:p.find(j=>j.value===O),M=(t==null?void 0:t.contextTokens)??(l==null?void 0:l.contextTokens)??null,C=(t==null?void 0:t.contextMaxTokens)??(P==null?void 0:P.contextWindow)??null,b=c.effort??(l==null?void 0:l.effort)??null,Q=c.fastMode??(l==null?void 0:l.fastMode)??!1,G=c.permissionMode??(l==null?void 0:l.permissionMode)??(N==null?void 0:N.permissionMode)??w.mode,R=e===null||G!==void 0||J(v)&&w.settled,L={permissionMode:In(c.permissionMode,G),permissionModeKnown:R,model:O,effort:b,fastMode:Q,costUsd:(t==null?void 0:t.costUsd)??null,contextPercent:xs(M,C),isStreaming:n,cwd:(l==null?void 0:l.cwd)??null},re=h.useCallback(async j=>{if(!e)return;const Ce={...j.model?{model:j.model}:{},...j.permissionMode?{permissionMode:j.permissionMode}:{},...j.effort?{effort:j.effort}:{},...j.fastMode!==void 0?{fastMode:j.fastMode}:{}};d(e,Ce);const we=(m==null?void 0:m.sessionId)===e?m.id:void 0,Ts={...r?{runtime:r}:{},...we?{account:we}:{},...j};try{const{permissionModePendingUntilNextTurn:ie,runtimeUnbound:ks,...Ee}=await i.updateSession(e,Ts,f??void 0);return ie&&Is.warning("Saved · starts on your next message",{description:"The current reply keeps its old setting."}),o.setQueriesData({queryKey:Ze.bySession(e)},z=>({...z,...Ee,...j.model===void 0?{model:z==null?void 0:z.model}:{},...ks?{runtime:z==null?void 0:z.runtime}:{}})),Ee}catch(ie){console.error("[useSessionStatus] updateSession failed for session",e,ie),y(e,Ce)}},[i,e,r,f,m,o,d,y]);return h.useEffect(()=>{if(!e)return;const j={};c.model!==void 0&&(l==null?void 0:l.model)===c.model&&(j.model=c.model),c.permissionMode!==void 0&&(l==null?void 0:l.permissionMode)===c.permissionMode&&(j.permissionMode=c.permissionMode),c.effort!==void 0&&(l==null?void 0:l.effort)===c.effort&&(j.effort=c.effort),c.fastMode!==void 0&&(l==null?void 0:l.fastMode)===c.fastMode&&(j.fastMode=c.fastMode),Object.keys(j).length>0&&y(e,j)},[e,l==null?void 0:l.model,l==null?void 0:l.permissionMode,l==null?void 0:l.effort,l==null?void 0:l.fastMode,c,y]),{...L,updateSession:re}}function Bn(e){const t=q();return he({queryKey:["subagents",e??null],queryFn:()=>t.getSubagents({sessionId:e}),staleTime:1800*1e3})}const $n={duration:.2,ease:[.4,0,.2,1]},Fn="pointer-coarse:[&_button]:py-3";function vi({items:e,trailing:t}){const n=e.filter(i=>i.cluster==="left"),r=e.filter(i=>i.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(Ue,{items:n,className:"min-w-0 flex-auto"}),s.jsx(Ue,{items:r,className:"min-w-0 shrink"}),t!==void 0&&s.jsx("span",{className:"flex shrink-0 items-center",children:t})]})}const Gn=8;function Hn(e,t){return Gn**Math.max(0,t.indexOf(e.key))}function Ue({items:e,className:t}){const n=[...e].sort((r,i)=>i.severity-r.severity).map(r=>r.key);return s.jsx("div",{className:k("flex items-center gap-2",t),children:s.jsx(xe,{initial:!1,mode:"popLayout",children:e.map((r,i)=>s.jsxs(ge.div,{"data-testid":`status-item-${r.key}`,"data-rigid":r.rigid?"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:$n,style:r.rigid?void 0:{flexShrink:Hn(r,n)},className:k("inline-flex items-center gap-2",r.rigid?"shrink-0":"min-w-10",Fn),children:[i>0&&s.jsx(Wn,{}),r.node]},r.key))})})}function Wn(){return s.jsx("span",{className:"text-muted-foreground/30 shrink-0","aria-hidden":"true",children:"·"})}function Si({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(Us,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:t})]})}const qn=Object.freeze({state:"unknown"}),Qn=Object.freeze({state:"no-repo"});function Kn(e){const t=q();return he({queryKey:["git-status",e],queryFn:()=>t.getGitStatus(e??void 0),enabled:!!e,refetchInterval:Re.GIT_STATUS_REFETCH_MS,refetchIntervalInBackground:!1,staleTime:Re.GIT_STATUS_STALE_TIME_MS})}function Xn(e){return!!e&&!("error"in e)}function Vn(e){return e===void 0?qn:"error"in e?Qn:{state:"repo",branch:e.branch,dirty:!e.clean}}function te(e){const t=e.trim(),n=Array.from(t);return n.length<=oe?t:`${n.slice(0,oe-1).join("").trimEnd()}…`}function Yn(e){return e.replace(/\s*\([^()]*\)\s*$/,"").split("·")[0].trim()}function Jn(e,t){return te(Zn(e,t))}function Zn(e,t){const n=t.find(i=>i.value===e);if(n)return Yn(n.displayName);const r=/claude-(\w+)-/.exec(e);return r?`${r[1].charAt(0).toUpperCase()}${r[1].slice(1)}`:e==="default"?"Default":Ls(e)??e}function Ti({data:e,workspace:t,compact:n}){if(!e)return null;if(!Xn(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(V,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:"No repo"})]});const r=e.modified+e.staged+e.untracked,i=r===1?"1 change":`${r} changes`,o=[];if(e.modified>0&&o.push(`${e.modified} modified`),e.staged>0&&o.push(`${e.staged} staged`),e.untracked>0&&o.push(`${e.untracked} untracked`),e.conflicted>0&&o.push(`${e.conflicted} conflicted`),t){const u=zs(t.portBase),f=[`${t.key} · ${t.projectKey}`,`${t.branch??e.branch} · ${t.provider}`,e.ahead>0?`↑${e.ahead}`:"",e.behind>0?`↓${e.behind}`:"",o.length>0?o.join(", "):"clean",`ports ${u.DORKOS_PORT} / ${u.VITE_PORT} / ${u.SITE_PORT}`,t.pinned?"pinned":""].filter(Boolean);return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",title:f.join(" · "),children:[s.jsx(V,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"max-w-[20ch] truncate font-medium",children:n?te(t.key):t.key}),!n&&s.jsxs("span",{className:"text-muted-foreground truncate",children:["· ",t.projectKey]}),t.pinned&&s.jsx(ss,{className:"text-muted-foreground size-(--size-icon-xs) shrink-0"}),r>0&&(n?s.jsx(Le,{label:i}):s.jsxs("span",{className:"text-muted-foreground shrink-0",children:["· ",i]}))]})}const a=o.length>0?`${e.branch} · ${o.join(", ")}`:`${e.branch} · clean`;return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1",title:a,children:[s.jsx(V,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"max-w-[25ch] truncate",children:n?te(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(Bs,{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($s,{className:"size-(--size-icon-xs)"}),e.behind]}),r>0&&(n?s.jsx(Le,{label:i}):s.jsxs("span",{className:"text-muted-foreground shrink-0",children:["· ",i]}))]})}function Le({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 er({stop:e,onMakeDefault:t,onDismiss:n,pending:r,error:i,placement:o="inline"}){const a=o==="overlay";return a&&!e?null:s.jsx("div",{className:k("flex items-center px-1",a?"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":a?"make-default-slot-overlay":"make-default-slot",children:e&&s.jsxs("p",{role:"status","data-testid":"make-default-offer",className:k("animate-in fade-in-0 flex min-w-0 items-center gap-1.5 text-xs duration-200 motion-reduce:animate-none",i?"text-destructive":"text-muted-foreground"),children:[s.jsx("span",{className:"min-w-0 flex-1 truncate",children:i?s.jsxs(s.Fragment,{children:[s.jsx(Ne,{className:"mr-1 inline size-3 shrink-0 align-[-2px]","aria-hidden":!0}),i]}):s.jsxs(s.Fragment,{children:["Start every new chat in ",Fs(e),"?"]})})," ",s.jsxs("span",{className:"flex shrink-0 items-center gap-1 whitespace-nowrap",children:[i?s.jsx("button",{type:"button",disabled:r,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:r,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"})]})]})})}const sr="Auto mode needs Opus 4.6+ or Sonnet 4.6";function ki({mode:e,onChangeMode:t,disabled:n,pending:r,runtime:i,modelSupportsAutoMode:o,planActive:a,compact:u,makeDefault:f,onOpenChange:m}){var C;const p=fe(i),c=Z(b=>b.setControlCenterOpen),d=H(b=>b.open),y=H(b=>b.setOpen),v=H(b=>b.setAvailable),l=!(p&&!p.permissionModes.supported)&&n!==!0&&r!==!0;h.useEffect(()=>(v(l),()=>v(!1)),[l,v]);const x=h.useRef(m);if(h.useEffect(()=>{x.current=m},[m]),h.useEffect(()=>()=>{var b;y(!1),(b=x.current)==null||b.call(x,!1)},[y]),p&&!p.permissionModes.supported)return null;const N=(p==null?void 0:p.permissionModes.values)??[],w=!o&&N.some(b=>b.id==="auto"),g=w?N.filter(b=>b.id!=="auto"):N,T=g.find(b=>b.id===e),A=(T==null?void 0:T.label)??Gs(e),_=u?te(A):A,E=Hs(T),O=(C=Ws(g).find(b=>b.mode.id===e))==null?void 0:C.stop,P=w&&(O==="act"||e==="auto"),M=s.jsxs("button",{disabled:n,"data-testid":"permission-mode-trigger","aria-label":`Permissions: ${A}`,className:k(W,"items-center gap-1 disabled:cursor-not-allowed disabled:opacity-40",E),children:[s.jsx(qs,{descriptor:T,className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:_})]});return n?s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:s.jsx("span",{className:"inline-flex",children:M})}),s.jsx(U,{side:"top",children:"Send a message first"})]}):r?s.jsxs("span",{"data-testid":"permission-mode-pending","aria-busy":"true","aria-label":"Permissions: still loading",className:k(W,"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(je,{open:d,onOpenChange:b=>{y(b),m==null||m(b)},children:[s.jsx(ye,{asChild:!0,children:M}),s.jsxs(be,{side:"top",align:"start",className:"w-80 p-3","aria-label":"Permissions",children:[s.jsx(ve,{children:"Permissions"}),s.jsx(Qs,{mode:e,descriptors:g,onChangeMode:t,planActive:a,onUnlock:()=>c(!0)}),f&&s.jsx(er,{...f}),P&&s.jsxs(D,{children:[s.jsx(I,{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(ts,{className:"size-(--size-icon-xs) shrink-0"}),"Auto unavailable on this model"]})}),s.jsx(U,{side:"top",children:sr})]}),s.jsx(Ks,{mode:e,descriptor:T,className:"mt-2 px-1"})]})]})}const tr=6e3;function nr(e){return e instanceof Error&&e.message||"Couldn’t save that. Try again."}function Ci(e){var b,Q,G;const{sessionId:t,runtime:n,declaredModes:r,runtimeDefaultMode:i}=e,{data:o}=ne(),{data:a}=pe(),u=mn(),f=me(),m=Xs(t),p=$(R=>R.dismissDefaultStopOffer),[c,d]=h.useState(null),[y,v]=h.useState(null),[l,x]=h.useState(t);l!==t&&(x(t),d(null),v(null));const N=o==null?void 0:o.executionDefaults,w=n??(N==null?void 0:N.runtime),g=(b=N==null?void 0:N.perRuntime.find(R=>R.runtime===w))==null?void 0:b.trustStop,T=g??(N==null?void 0:N.trustStop)??null,A=(Q=r.find(R=>R.id===i))==null?void 0:Q.stop,_=T??A,E=g!=null?(G=pn(a,w))==null?void 0:G.configSection:void 0,O=o!==void 0;h.useEffect(()=>{if(!c)return;const R=setTimeout(()=>d(null),tr);return()=>clearTimeout(R)},[c]);const P=h.useCallback(R=>{const L=r.find(re=>re.id===R);!L||Vs(L)||!O||m||L.stop!==_&&(v(null),d(L.stop))},[r,O,m,_,d,v]),M=h.useCallback(()=>{if(!c)return;const R=c;v(null),u.mutate({runtimes:E?{[E]:{defaultTrustStop:R}}:{defaultTrustStop:R}},{onSuccess:()=>{f.invalidateQueries({queryKey:B.all}),d(null)},onError:L=>v(nr(L))})},[c,u,f,E,d,v]),C=h.useCallback(()=>{p(t),d(null)},[p,t,d]);return{line:O?{stop:c,onMakeDefault:M,onDismiss:C,pending:u.isPending,error:y}:null,offerFor:P}}function wi({runtimeLabel:e,onShown:t,onDismiss:n}){const r=H(o=>o.available),i=H(o=>o.setOpen);return h.useEffect(()=>{t==null||t()},[t]),s.jsxs(fn,{"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(Ys,{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(F,{variant:"ghost",size:"sm",responsive:!1,className:"h-7 px-2 text-xs",onClick:n,children:"Dismiss"}),r&&s.jsx(F,{variant:"outline",size:"sm",responsive:!1,className:"h-7 px-2 text-xs",onClick:()=>i(!0),children:"Change permissions"})]})]})}function Ei(e,t,n){const r=fe(t??void 0),i=$(c=>c.recordReadOnlyHintShown),o=$(c=>c.spendReadOnlyHint),a=Js(e??""),u=r==null?void 0:r.permissionModes.values.find(c=>c.id===n),f=u!==void 0&&Zs(u);h.useEffect(()=>{f||!e||a!=="shown"||o(e)},[f,e,a,o]);const m=h.useCallback(()=>{e&&i(e)},[e,i]),p=h.useCallback(()=>{e&&o(e)},[e,o]);return h.useMemo(()=>({eligible:!!e&&f&&a!=="spent",runtimeLabel:t?et(t):"This agent",markShown:m,dismiss:p}),[e,f,a,t,m,p])}function Mi({descriptor:e,active:t,onToggle:n,disabled:r}){return s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:s.jsxs("button",{type:"button","aria-pressed":t,disabled:r,onClick:()=>n(!t),className:k(W,"items-center gap-1","disabled:cursor-not-allowed disabled:opacity-40",t&&"text-foreground"),children:[s.jsx(ns,{className:"size-(--size-icon-xs) shrink-0","aria-hidden":!0}),s.jsx("span",{className:"truncate",children:e.label})]})}),s.jsx(U,{side:"top",children:r?"Send a message first":e.promise})]})}function Ri({runtime:e,model:t,onChangeRuntime:n,canSelect:r,compact:i,account:o}){const{data:a}=pe(),{data:u}=st(),{nameFor:f}=tt(),[m,p]=h.useState({open:!1}),c=Object.keys((a==null?void 0:a.capabilities)??{}),d=c.filter(g=>_e(u,g)),y=c.filter(g=>!_e(u,g)),v=a!==void 0&&Object.values(nt).some(g=>g.setup&&!c.includes(g.type)),l=!!n&&(c.length>1||y.length>0||v),x=i?null:t,N=s.jsx(Ae,{runtime:e,model:x,iconClassName:"size-(--size-icon-xs)"}),w=o?`Account: ${f(o)}`:null;return r?l?s.jsxs(s.Fragment,{children:[s.jsxs(rt,{children:[s.jsx(it,{asChild:!0,children:s.jsx("button",{className:W,children:s.jsx(Ae,{runtime:e,model:x,iconClassName:"size-(--size-icon-xs)"})})}),s.jsxs(at,{side:"top",align:"start",className:"w-56",children:[s.jsx(ot,{children:"Runs on"}),s.jsx(lt,{value:e,onValueChange:g=>n==null?void 0:n(g),children:d.map(g=>{const T=Pe(g);return s.jsx(ct,{value:g,icon:T.icon,children:T.label},g)})}),y.map(g=>{const T=Pe(g);return s.jsx(Oe,{icon:T.icon,description:"Connect",onSelect:()=>p({open:!0,runtime:g}),children:T.label},g)}),v&&s.jsxs(s.Fragment,{children:[s.jsx(ut,{}),s.jsx(Oe,{icon:dt,onSelect:()=>p({open:!0}),children:"Add a runtime"})]})]})]}),s.jsx(hn,{runtime:m.runtime,open:m.open,onOpenChange:g=>p(T=>({...T,open:g})),renderConnect:jn,showConnectSuccess:!0,onRuntimeReady:g=>{n==null||n(g)}})]}):w?s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:N}),s.jsx(U,{side:"top",children:w})]}):N:s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:N}),s.jsxs(U,{side:"top",children:[s.jsx("span",{className:"block",children:"Set when the chat starts. It can’t change after."}),w&&s.jsx("span",{className:"block",children:w})]})]})}function _i(e,t,n){const r=rs(),i=mt(e),o=new Date(r),a=t.pending?null:t.usage;return{...pt({liveTurnUsage:n,liveTurnAt:i,accountStatus:ft(a,o),accountObservedAt:is(as(a))}),accountUsage:a}}function Ai({open:e,onOpenChange:t,onConfirm:n}){return s.jsx(ht,{open:e,onOpenChange:t,children:s.jsxs(xt,{children:[s.jsxs(gt,{children:[s.jsxs(Nt,{className:"flex items-center gap-2",children:[s.jsx(ts,{className:"text-muted-foreground size-4"}),"Turn on Auto mode?",s.jsx(ee,{size:"xs",variant:"secondary",className:"tracking-wide uppercase",children:"Preview"})]}),s.jsx(jt,{children:"Asks only before risky steps, like deleting files. Switch back anytime."})]}),s.jsxs(yt,{children:[s.jsx(bt,{children:"Cancel"}),s.jsx(vt,{onClick:n,children:"Turn on Auto mode"})]})]})})}const ze=[{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"}],rr=10,ir="Can’t use tools, so it can’t read files or run commands.",ar="Makes images DorkOS can’t show yet.",or=["openrouter/openrouter/auto","openrouter/auto"];function lr(e){return or.some(t=>e.value===t||e.value.startsWith(`${t}-`))}function js(e){return e.supportsToolUse!==!1}function cr(e){return e.supportsImageOutput===!0&&!lr(e)?ar:js(e)?null:ir}function ur(e){if(!js(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 dr(e){return e.some(t=>t.tier!=null)||e.length>rr}function mr(e,t){const n=t.trim().toLowerCase();return n?e.value.toLowerCase().includes(n)||e.displayName.toLowerCase().includes(n):!0}function pr(e){const t=new Map(ze.map(n=>[n.slug,[]]));for(const n of e)t.get(ur(n)).push(n);return ze.map(n=>({...n,models:t.get(n.slug)})).filter(n=>n.models.length>0)}function fr(e){return e>=1e6?`${Math.round(e/1e6)}M`:e>=1e3?`${Math.round(e/1e3)}K`:String(e)}function hr(){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(K,{className:"size-4 rounded-full"}),s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx(K,{className:"h-3.5 w-24"}),s.jsx(K,{className:"h-2.5 w-32"})]}),s.jsx(K,{className:"h-5 w-10 rounded-md"})]},t))})}function xr({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(Ne,{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(os,{className:"size-3"}),"Retry"]})]})}function gr(e){const t=e.slice(e.lastIndexOf(" ")+1);return t.includes("/")||t.includes(":")}function ys({text:e,className:t}){return gr(e)?s.jsx("div",{dir:"rtl",className:k("truncate text-left",t),title:e,children:s.jsx("bdi",{dir:"ltr",children:e})}):s.jsx("div",{className:k("truncate",t),title:e,children:e})}function Be({model:e,isSelected:t}){const n=cr(e);return s.jsxs("label",{className:k("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(kt,{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:[Ct()," · private"]})]}),s.jsx(ys,{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(ee,{size:"xs",variant:"secondary",className:"shrink-0",children:fr(e.contextWindow)})]})}function Nr({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(Ne,{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(ys,{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 jr({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 yr({models:e,selectedModel:t,onChangeModel:n,emptyMessage:r}){const[i,o]=h.useState(""),a=dr(e),f=e.length>0&&t.length>0&&!e.some(d=>d.value===t)?s.jsx(Nr,{value:t}):null,m=e.some(d=>d.unverified),p=h.useMemo(()=>a?e.filter(d=>mr(d,i)):e,[e,i,a]),c=h.useMemo(()=>a?pr(p):[],[p,a]);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:r??"Couldn’t load models. Check Settings, then try again."}):a?s.jsxs("div",{className:"space-y-2",children:[f,m&&s.jsx(Ie,{}),s.jsxs("div",{className:"relative",children:[s.jsx(St,{className:"text-muted-foreground pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2"}),s.jsx(Tt,{type:"text",value:i,onChange:d=>o(d.target.value),placeholder:"Search models…","aria-label":"Search models","data-testid":"model-search",className:"h-8 pl-8 text-xs"})]}),c.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(De,{value:t,onValueChange:n,className:"grid-cols-1 gap-1.5","aria-label":"Model selection","data-testid":"model-card-list",children:c.map(d=>s.jsxs(h.Fragment,{children:[s.jsx(jr,{slug:d.slug,label:d.label}),d.models.map(y=>s.jsx(Be,{model:y,isSelected:y.value===t},y.value))]},d.slug))})]}):s.jsxs("div",{className:"space-y-2",children:[f,m&&s.jsx(Ie,{}),s.jsx(De,{value:t,onValueChange:n,className:"grid-cols-1 gap-1.5","aria-label":"Model selection","data-testid":"model-card-list",children:e.map(d=>s.jsx(Be,{model:d,isSelected:d.value===t},d.value))})]})}const ce={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"}},br={duration:.15,ease:"easeOut"};function vr({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(ue,{role:"radio",label:"Default",isSelected:t===null,onClick:()=>n(null)}),e.map(r=>s.jsx(ue,{role:"radio",label:ce[r].label,description:ce[r].description,isSelected:t===r,onClick:()=>n(r)},r))]})]})}function Sr({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(ue,{role:"switch",label:"Fast",icon:s.jsx(Se,{className:"size-3"}),isSelected:t,onClick:()=>n(!t)})})]}):null}function ue({role:e,label:t,description:n,icon:r,isSelected:i,onClick:o}){const a=s.jsxs("button",{role:e,"aria-checked":i,onClick:o,className:k("inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-colors duration-150",i?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80 hover:text-foreground"),children:[r,t]});return n?s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:a}),s.jsx(U,{side:"top",className:"text-xs",children:n})]}):a}function Oi({model:e,onChangeModel:t,effort:n,onChangeEffort:r,fastMode:i,onChangeFastMode:o,disabled:a,sessionId:u,runtime:f,onCredits:m,compact:p}){var _;const{data:c,isLoading:d,isError:y,refetch:v}=es({sessionId:u,runtime:f??void 0}),l=c??[],x=l.find(E=>E.value===e),N=!!(x!=null&&x.supportsEffort&&(((_=x.supportedEffortLevels)==null?void 0:_.length)??0)>0),w=(x==null?void 0:x.supportsFastMode)??!1,g=!p&&N&&n?ce[n].label:null,T=!p&&i,A=s.jsxs("button",{disabled:a,className:k(W,"items-center gap-1 disabled:cursor-not-allowed disabled:opacity-40"),"data-testid":"model-config-trigger",children:[s.jsx(ls,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"truncate",children:Jn(e,l)}),g&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-muted-foreground text-2xs",children:"·"}),s.jsx(ee,{size:"xs",variant:"secondary",children:g})]}),T&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-muted-foreground text-2xs",children:"·"}),s.jsxs(ee,{size:"xs",variant:"secondary",children:[s.jsx(Se,{className:"mr-0.5 inline size-2.5"}),"Fast"]})]})]});return a?s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:s.jsx("span",{className:"inline-flex",children:A})}),s.jsx(U,{side:"top",children:"Send a message first"})]}):s.jsxs(je,{children:[s.jsx(ye,{asChild:!0,children:A}),s.jsxs(be,{side:"top",align:"start",className:"w-120 max-w-[calc(100vw-1.5rem)] p-3","data-testid":"model-config-popover",children:[s.jsx(ve,{children:"Model"}),l.some(E=>E.paidFromCredits)&&s.jsx("p",{className:"text-muted-foreground text-2xs mb-2","data-testid":"model-credits-note",children:l.some(E=>E.creditsListOutOfDate)?"Models your DorkOS credits cover. This list may be out of date.":"Models your DorkOS credits cover"}),d&&s.jsx(hr,{}),y&&s.jsx(xr,{onRetry:()=>v(),message:m?"Couldn’t load the models DorkOS credits cover. Your model stays as it is.":void 0}),!d&&!y&&s.jsx(yr,{models:l,selectedModel:e,onChangeModel:t,emptyMessage:m?"DorkOS credits don’t cover a model for this runtime yet.":void 0}),s.jsx(xe,{children:!d&&!y&&(N||w)&&s.jsxs(ge.div,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:br,children:[s.jsx(wt,{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:[N&&s.jsx(vr,{effortLevels:x.supportedEffortLevels,effort:n,onChangeEffort:r}),w&&s.jsx(Sr,{supportsFastMode:(x==null?void 0:x.supportsFastMode)??!1,fastMode:i,onChangeFastMode:o})]})]},"config")})]})]})}function Pi({percent:e,contextUsage:t,compact:n,reading:r,now:i}){const o=gs(e,t)??e,a=An(o),u=a==="critical"?se.error:a==="warning"?se.warning:"",f=n!=null&&o>=hs,m=t?{total:t.totalTokens,max:t.maxTokens}:r&&r.maxTokens>0?{total:r.totalTokens,max:r.maxTokens}:null,p=(r==null?void 0:r.observedAt)??null,c=m!==null,d=s.jsxs("span",{"aria-label":c?"Context window usage":void 0,className:k("inline-flex shrink-0 items-center gap-1",c&&"cursor-default",u),children:[s.jsx(yn,{className:"size-(--size-icon-xs) shrink-0"}),s.jsxs("span",{children:[o,"%"]})]});return s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5",children:[m?s.jsx(Tr,{totals:m,categories:(t==null?void 0:t.categories)??[],observedAt:p,now:i,children:d}):d,s.jsx(xe,{initial:!1,children:f&&s.jsxs(ge.button,{type:"button",onClick:n.onCompact,disabled:n.pending,"aria-label":n.pending?"Compacting chat…":`Context ${o}% 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(os,{"aria-hidden":"true",className:k("size-(--size-icon-xs) shrink-0",n.pending&&"animate-spin")}),s.jsx("span",{className:"truncate",children:"Compact"})]},"compact")})]})}function Tr({totals:e,categories:t,observedAt:n,now:r,children:i}){const o=t.filter(a=>a.tokens>0).sort((a,u)=>u.tokens-a.tokens);return s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:i}),s.jsx(U,{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:[ae(e.total)," / ",ae(e.max)," tokens"]}),o.length>0&&s.jsx("div",{className:"space-y-0.5",children:o.map(a=>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:a.color}}),a.name]}),s.jsx("span",{className:k(le,"shrink-0"),children:ae(a.tokens)})]},a.name))}),n!==null&&s.jsx(cs,{observedAt:n,now:r,surface:"tooltip"})]})})]})}function Di({usage:e,accountUsage:t=null,observedAt:n=null,open:r,onOpenChange:i,now:o}){const a=rs(),u=o??new Date(a),f=as(t),m=f.length>0?is(f):n,p=e!=null&&us(e);let c;return f.length>0?c=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:f.map(d=>s.jsx(Et,{window:d,label:Mt(d.key,d.label),now:u},d.key))}),e&&s.jsx("div",{className:"text-3xs space-y-0.5",children:s.jsx(Rt,{usage:e})})]}):p?c=s.jsx(Pt,{usage:e}):c=s.jsx("p",{className:"text-muted-foreground text-xs",children:"No usage yet."}),s.jsxs(_t,{open:r,onOpenChange:i,children:[s.jsx(At,{asChild:!0,children:s.jsx("span",{"aria-hidden":!0,className:"inline-block h-0 w-0"})}),s.jsx(Ot,{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:[c,m!==null&&(f.length>0||p)&&s.jsx(cs,{observedAt:m,now:u})]})})]})}const kr={connecting:{color:X.warning,label:"Connecting",shortLabel:"Connecting",icon:Y,tasks:!0},connected:{color:X.success,label:"Connected",shortLabel:"Connected",icon:Y,tasks:!1},reconnecting:{color:X.warning,label:"Reconnecting",shortLabel:"Reconnecting",icon:Y,tasks:!0},disconnected:{color:X.error,label:"Live updates lost",shortLabel:"Offline",icon:Dt,tasks:!1}};function Ii({connectionState:e,compact:t}){const n=kr[e],r=n.icon;return s.jsxs(xn,{openDelay:200,children:[s.jsx(gn,{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:k("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(Nn,{side:"top",align:"center",className:"w-72 p-3",children:s.jsxs("div",{className:"flex items-start gap-2.5",children:[s.jsx(r,{className:k("mt-0.5 size-4 shrink-0",e==="disconnected"?se.error:se.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(Cr,{connectionState:e})]})]})})]})}function Cr({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:k(t,"text-muted-foreground/70"),children:"No action needed."})]}):s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("p",{className:t,children:"Couldn’t reconnect live updates. New messages won’t appear until they’re back."}),s.jsx("p",{className:k(t,"text-muted-foreground/70"),children:"Refresh the page. If that doesn’t help, check that DorkOS is running."})]})}function Ui({count:e,running:t,waiting:n}){const r=e===1?"":"s",i=e-t.length,o=`${e} subagent${r} running`;return s.jsxs(D,{children:[s.jsx(I,{asChild:!0,children:s.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1","aria-label":o,children:[s.jsx(ds,{className:"size-(--size-icon-xs) shrink-0"}),s.jsx("span",{className:"shrink-0 tabular-nums",children:e})]})}),s.jsxs(U,{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(a=>s.jsxs("li",{children:[s.jsx("span",{className:"font-medium",children:a.description??"Working…"}),s.jsxs("p",{className:k(le,"text-3xs leading-tight"),children:[a.toolUses??0," tool",a.toolUses===1?"":"s",a.lastToolName?` · last ${a.lastToolName}`:""]})]},a.taskId))}),i>0&&s.jsx("p",{className:k(le,"text-3xs leading-tight"),children:t.length>0?`and ${i} more`:`${i} task${r} from earlier`})]})]})}const wr=new Set(["main","master"]);function Li(e,t,n){return{dirty:!t,onDefaultBranch:!n&&wr.has(e)}}const S={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},Er={session:"Session",diagnostics:"Diagnostics"};function $e(e){return e.runtime&&!e.runtime.isDefault?S.RUNTIME_NON_DEFAULT:S.QUIET}function Mr(e){return e.account!==null}const Rr=new Set(["near","model-out","out"]);function Fe(e){return e.permissionDescriptor?e.permissionDescriptor.stop!=="ask":e.permissionMode!=="default"}const bs=[{key:"agent",label:"Agent",description:"Who you are talking to",cluster:"left",group:null,icon:Ut,promote:()=>!0,severity:()=>S.AGENT_ANCHOR},{key:"cwd",label:"Directory",description:"The folder this chat can touch",cluster:"left",group:"session",icon:Lt,promote:e=>e.cwd!==null,severity:()=>S.CWD},{key:"git",label:"Git",description:"Branch and uncommitted changes",cluster:"left",group:"session",icon:V,promote:e=>e.git!==null&&(e.git.dirty||!e.git.onDefaultBranch),severity:e=>{var t;return(t=e.git)!=null&&t.dirty?S.GIT_DIRTY:S.QUIET}},{key:"runtime",label:"Runs on",description:"What runs this chat",cluster:"right",group:"session",icon:bn,promote:e=>e.runtime!==null&&e.runtime.type!=="doe"&&(!e.runtime.isDefault||e.runtime.canSelect),severity:$e},{key:"account",label:"Account",description:"Which Claude account this uses, and what’s left",cluster:"right",group:null,icon:vn,promote:e=>e.account!==null,severity:e=>e.account&&Rr.has(e.account.chipState)?S.ACCOUNT_ATTENTION:$e(e)},{key:"extensions",label:"Add-ons",description:"What your extensions show here",cluster:"right",group:null,icon:zt,promote:e=>e.extensionItems.some(t=>t.visible),severity:e=>e.extensionItems.some(t=>t.visible&&t.urgent)?S.ACCOUNT_ATTENTION:S.EXTENSION_ITEM},{key:"model",label:"Model",description:"The model answering you",cluster:"right",group:"session",icon:ls,promote:()=>!1,severity:()=>S.MODEL},{key:"cache",label:"Cache",description:"How much came from cache",cluster:"right",group:"session",icon:Se,promote:()=>!1,severity:()=>S.QUIET,neverInLine:!0},{key:"context",label:"Context",description:"How full the context window is",cluster:"right",group:"session",icon:Sn,rigid:!0,promote:e=>e.contextPercent!==null,severity:e=>e.contextPercent===null?S.QUIET:e.contextPercent>=hs?S.CONTEXT_CRITICAL:e.contextPercent>=_n?S.CONTEXT_WARNING:S.QUIET},{key:"usage",label:"Usage & cost",description:"Plan limits or chat cost",cluster:"right",group:"session",icon:Bt,rigid:!0,promote:e=>e.usage!==null&&us(e.usage)&&!Mr(e),wide:e=>e.usageStale,severity:e=>{var t,n;return((t=e.usage)==null?void 0:t.state)==="exhausted"?S.USAGE_EXHAUSTED:((n=e.usage)==null?void 0:n.state)==="warning"?S.USAGE_WARNING:S.QUIET}},{key:"permission",label:"Permissions",description:"How freely the agent acts",cluster:"right",group:"session",icon:$t,promote:e=>Fe(e)||e.permissionPickerOpen===!0,severity:e=>(e.permissionDescriptor?Ft(e.permissionDescriptor):Gt(e.permissionMode))?S.PERMISSION_BYPASS:Fe(e)||e.permissionPickerOpen===!0?S.PERMISSION_ELEVATED:S.QUIET},{key:"plan",label:"Plan",description:"Plan first, change nothing until approved",cluster:"right",group:"session",icon:ns,promote:e=>e.plan!==null,severity:e=>{var t;return(t=e.plan)!=null&&t.active?S.PLAN_ACTIVE:S.QUIET}},{key:"subagents",label:"Subagents",description:"Subagents working on this turn",cluster:"right",group:"diagnostics",icon:ds,rigid:!0,promote:e=>e.subagentsInFlight>0,severity:e=>e.subagentsInFlight>0?S.SUBAGENTS_RUNNING:S.QUIET},{key:"connection",label:"Live updates",description:"The live link that delivers messages",cluster:"right",group:"diagnostics",icon:Y,promote:e=>e.connectionState!=="connected",severity:e=>e.connectionState==="connected"?S.QUIET:S.CONNECTION_LOST}];function vs(e){return e.group==="session"&&e.neverInLine!==!0}function _r(){const{pins:e}=wn(),{setPins:t}=En(),n=h.useCallback(i=>{const o=It.find(a=>a===i);o&&t(e.includes(o)?e.filter(a=>a!==o):[...e,o])},[e,t]),r=h.useCallback(()=>t([]),[t]);return{pins:e,toggle:n,reset:r}}function Ar(){return["session","diagnostics"].map(t=>({group:t,label:Er[t],items:bs.filter(n=>n.group===t)})).filter(t=>t.items.length>0)}function Ss(e){const t=e.contextTokens??e.readTokens+e.creationTokens;return t<=0?0:Math.round(e.readTokens/t*100)}function Or(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 Pr(e){return e.split("/").filter(Boolean).pop()??e}function Dr(e,t){switch(e){case"cwd":return t.cwd?Pr(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:`${Ss(t.cache)}% from cache`;case"usage":return Or(t.usage);case"permission":return t.permissionMode;case"connection":return`${t.connectionState} · event ${t.lastEventSeq}`;default:return null}}function Ir(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:Ss(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 Ur({copied:e,failed:t}){return e?s.jsx(Wt,{className:"text-status-success size-3.5","aria-hidden":!0}):t?s.jsx(qt,{className:"text-destructive size-3.5","aria-hidden":!0}):s.jsx(Tn,{className:"size-3.5","aria-hidden":!0})}function Lr(e,t){return e?"Copied":t?"Couldn’t copy":"Copy diagnostics"}function zr({diagnostics:e,className:t}){const{copied:n,failed:r,copy:i}=Ht(),o=()=>void i(Ir(e));return s.jsxs(F,{variant:"ghost",size:"sm",className:k("gap-1.5 text-xs",t),onClick:o,children:[s.jsx(Ur,{copied:n,failed:r}),Lr(n,r)]})}function zi({open:e,onOpenChange:t,diagnostics:n,controls:r,promotionContext:i,urgentAction:o,overflowCount:a=0,addOns:u}){const f=Qt(),{pins:m,toggle:p,reset:c}=_r(),d=Ar(),y=new Set(m),v=a>0;return s.jsxs(je,{open:e,onOpenChange:t,children:[s.jsx(Kt,{children:s.jsxs(D,{children:[s.jsx(ye,{asChild:!0,children:s.jsx(I,{asChild:!0,children:s.jsxs("button",{type:"button","data-testid":"status-reveal","aria-label":v?`Chat details, ${a} 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(Xt,{className:"size-4"}),v&&s.jsxs("span",{className:"tabular-nums",children:["+",a]})]})})}),s.jsx(U,{side:"top",children:v?`Chat details, ${a} more`:"Chat details"})]})}),s.jsxs(be,{side:"top",align:"end",className:"w-80 p-3","aria-label":"Chat",children:[s.jsx(ve,{children:"Chat"}),o&&s.jsx(F,{variant:"secondary",className:"mb-3 w-full",disabled:o.pending,onClick:()=>{o.onAction(),t(!1)},children:o.label}),s.jsxs("div",{className:"flex flex-col gap-4",children:[u&&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"}),u]}),d.map(l=>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:l.label}),Br($r(l.items,r),f?i:null).map(x=>s.jsx(Gr,{item:x,value:Dr(x.key,n),pinned:y.has(x.key),onTogglePin:vs(x)?()=>p(x.key):null,control:Fr(x.key,r)},x.key)),l.group==="diagnostics"&&s.jsxs(s.Fragment,{children:[s.jsx(Ge,{label:"Queued messages",value:String(n.queueDepth)}),s.jsx(Ge,{label:"Chat ID",value:n.sessionId||"—"})]})]},l.group))]}),n.sessionId!==""&&s.jsxs(F,{variant:"ghost",size:"sm",className:"text-muted-foreground mt-3 h-7 w-full justify-start gap-1.5 text-xs",onClick:()=>{t(!1),Yt({sessionId:n.sessionId})},children:[s.jsx(Vt,{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(zr,{diagnostics:n}),s.jsxs(F,{variant:"ghost",size:"sm",className:"text-muted-foreground gap-1.5 text-xs",disabled:m.length===0,onClick:c,children:[s.jsx(Jt,{className:"size-3.5","aria-hidden":!0}),"Reset pins"]})]})]})]})}function Br(e,t){return t?[...e].sort((n,r)=>r.severity(t)-n.severity(t)):e}function $r(e,t){return e.filter(n=>n.key!=="plan"||t.plan!==null)}function Fr(e,t){return e==="plan"&&t.plan?s.jsx(en,{checked:t.plan.active,onCheckedChange:t.plan.onToggle,"aria-label":"Plan first, change nothing until approved"}):null}function Gr({item:e,value:t,pinned:n,onTogglePin:r,control:i}){const o=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(o,{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??"—"}),i,r&&s.jsx("button",{type:"button",onClick:r,"aria-pressed":n,"aria-label":n?`Stop keeping ${e.label} in the status bar`:`Keep ${e.label} in the status bar`,className:k("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(ss,{className:"size-3.5"}):s.jsx(Zt,{className:"size-3.5"})})]})}function Ge({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 Bi(e){const t=h.useRef(e);h.useEffect(()=>{t.current=e},[e]),h.useEffect(()=>{const n=r=>{const i=r.key==="."||r.key===">";(r.metaKey||r.ctrlKey)&&r.shiftKey&&i&&(r.preventDefault(),t.current())};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[])}function Hr(e){const t=new Map;for(const r of e){if(r.type!=="subagent_update")continue;const i=t.get(r.taskId);t.set(r.taskId,{taskId:r.taskId,status:r.status,description:r.description??(i==null?void 0:i.description),toolUses:r.toolUses??(i==null?void 0:i.toolUses),lastToolName:r.lastToolName??(i==null?void 0:i.lastToolName),summary:r.summary??(i==null?void 0:i.summary),ambient:r.ambient??(i==null?void 0:i.ambient)})}const n=[];for(const{ambient:r,...i}of t.values())kn({ambient:r,status:i.status})||n.push(i);return n}function $i(e){const t=[],n=[];for(const r of e)r.status==="running"?t.push(r):n.push(r);return{running:t,finished:n}}const He=new WeakMap;function We(e,t,n){let r=He.get(e);r||(r=new Set,He.set(e,r)),!r.has(t)&&(r.add(t),n())}function qe(e,t,n){let r;try{r=n()}catch(i){return We(e,`${t}:throw`,()=>console.warn(`[extensions] ${e.extensionId}'s status-bar item "${e.id}" threw in ${t}(); it is hidden until it stops throwing.`,i)),!1}return typeof r!="boolean"?(We(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 ${Wr(r)}, read as false.`)),!1):r}function Wr(e){return e instanceof Promise?"a Promise":e===null?"null":typeof e=="object"?"an object":`a ${typeof e}`}function qr(e,t){const n=[],r=[];for(const i of e){const o=i.when?qe(i,"when",()=>i.when(t)):!0,a=o&&i.urgent?qe(i,"urgent",()=>i.urgent(t)):!1;n.push({id:i.id,visible:o,urgent:a}),o&&r.push(i)}return r.sort((i,o)=>(i.priority??0)-(o.priority??0)),{promotion:n,visible:r}}function Fi(e){const t=sn("status-bar");return h.useMemo(()=>qr(t,e),[t,e])}function Qr(e){return e!=null&&e!==!1}function Gi({ctx:e,pins:t,nodes:n}){var o;const r=new Set(t),i=[];for(const a of bs){if(a.neverInLine)continue;const u=n[a.key];if(!Qr(u))continue;const f=r.has(a.key)&&vs(a);!f&&!a.promote(e)||i.push({key:a.key,cluster:a.cluster,severity:a.severity(e),pinned:f,rigid:a.rigid===!0,wide:((o=a.wide)==null?void 0:o.call(a,e))===!0,node:u})}return i}const Qe=648,Kr=440,Xr=340,Vr=3,Yr=3,Jr=2,Zr=4,ei=8,si=20,ti=oe*ei+si,ni=Number.POSITIVE_INFINITY,Ke=[],ri=["cwd"],Xe=["cwd","git"];function ii(e){if(e===null||e<=0)return{density:"full",rightBudget:ni,dropped:Ke};if(e>=Qe){const t=Math.floor((e-Qe)/ti);return{density:"full",rightBudget:Zr+t,dropped:Ke}}return e>=Kr?{density:"compact",rightBudget:Vr,dropped:ri}:e>=Xr?{density:"identity",rightBudget:Yr,dropped:Xe}:{density:"avatar",rightBudget:Jr,dropped:Xe}}function ai(e,t){return t.severity!==e.severity?t.severity-e.severity:Number(t.pinned)-Number(e.pinned)}const oi=2,li=2;function Hi(e,t){const n=new Set(t.dropped),r=e.filter(u=>u.cluster==="right"),i=new Set;let o=0,a=0;for(const u of[...r].sort(ai)){if(a>=t.rightBudget)break;u.rigid&&o>=oi||(u.rigid&&(o+=1),i.add(u.key),a+=u.wide?Math.min(li,t.rightBudget-a):1)}return{items:e.filter(u=>u.cluster==="right"?i.has(u.key):!n.has(u.key)),overflow:r.length-i.size}}function Wi(){const e=h.useRef(null),[t,n]=h.useState(null);h.useLayoutEffect(()=>{const i=e.current;if(!i)return;n(i.getBoundingClientRect().width);const o=new ResizeObserver(a=>{var m,p;const u=a.at(0);if(!u)return;const f=((p=(m=u.contentBoxSize)==null?void 0:m.at(0))==null?void 0:p.inlineSize)??u.contentRect.width;n(f)});return o.observe(i),()=>o.disconnect()},[]);const r=h.useMemo(()=>ii(t),[t]);return{ref:e,budget:r}}const ci=[];function qi(e){const t=tn(e),n=h.useMemo(()=>Pn(t),[t]),r=Dn(e)==="streaming",i=$(h.useCallback(M=>{var C;return((C=M.sessions[e])==null?void 0:C.sessionStatus)??null},[e])),o=nn(e),a=zn(e||null,i,r,o.runtime),u=$(h.useCallback(M=>{var C;return((C=M.sessions[e])==null?void 0:C.contextUsage)??null},[e])),f=$(rn(M=>{var b;const C=(b=M.sessions[e])==null?void 0:b.sessionStatus;return!(C!=null&&C.cacheReadTokens)&&!(C!=null&&C.cacheCreationTokens)?null:{cacheReadTokens:C.cacheReadTokens??0,cacheCreationTokens:C.cacheCreationTokens??0,contextTokens:C.contextTokens}})),m=n.cacheStatus??f,{data:p}=Kn(a.cwd),{data:c}=Bn(e),{data:d}=ne(),y=an(e),v=Ve(e),l=on(e),x=ln(e),N=cn(e),w=Ye(e),g=un(e).length,T=dn(e),A=h.useMemo(()=>{let M=null;return()=>M??(M=Hr(T))},[T]),_=(t==null?void 0:t.runningSubagentCount)??null,E=h.useMemo(()=>Vn(p),[p]),O=gs(n.contextPercent??a.contextPercent,u),P=(o.model??n.model??a.model)||null;return h.useMemo(()=>({sessionId:e,cwd:a.cwd,git:E,runtime:o.runtime,model:P,selectedModel:a.model||null,effort:a.effort??null,fastMode:a.fastMode,permissionMode:a.permissionMode,contextPercent:O,contextUsage:u,cache:m?{readTokens:m.cacheReadTokens,creationTokens:m.cacheCreationTokens,contextTokens:m.contextTokens}:null,usage:n.usage,connectionState:y,streaming:r,lifecycle:v??null,triggerPending:w,lastEventSeq:l,snapshotCursor:N,lastEventAt:x,queueDepth:g,subagents:c??ci,get activeSubagents(){return A()},runningSubagentCount:_,clientVersion:(d==null?void 0:d.version)??null}),[e,a.cwd,a.model,a.effort,a.fastMode,a.permissionMode,E,o.runtime,P,O,u,m,n,y,v,r,w,l,N,x,g,c,A,_,d==null?void 0:d.version])}export{Ai as A,Wi as B,zr as C,_i as D,yi as E,hs as F,Ti as G,zn as H,Ln as I,bi as J,kn as K,er as M,ki as P,wi as R,zi as S,Di as U,kr as a,Ii as b,Ss as c,Pi as d,Si as e,Oi as f,Mi as g,Ri as h,vi as i,Ui as j,Hi as k,qr as l,Ir as m,Li as n,Xn as o,$i as p,Mr as q,ii as r,Gi as s,Fi as t,qi as u,Kn as v,Ci as w,Ei as x,Bi as y,_r as z};
@@ -1 +0,0 @@
1
- import{a1 as n,a3 as s,a4 as u,at as o,au as r}from"./index-Cga0qx1T.js";function c(){const t=n(),e=s();return u({mutationKey:o,mutationFn:a=>t.updateConfig(a),onSuccess:()=>{e.invalidateQueries({queryKey:r.current()})}})}export{c as u};