@p4code/cli 0.8.2 → 0.8.3

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 (452) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-C1tFongj.mjs → binCli-DouSNynJ.mjs} +17297 -3439
  3. package/dist/client/.vite/manifest.json +2164 -2147
  4. package/dist/client/assets/{AnimatedHeight-PJxVEp27.js → AnimatedHeight-DoG4b7y8.js} +2 -2
  5. package/dist/client/assets/{AuthSurfaceShell-BrPHaco9.js → AuthSurfaceShell-DbeJoeXz.js} +2 -2
  6. package/dist/client/assets/{CSPContext-C7uwFl6f.js → CSPContext-DkFc4cYo.js} +2 -2
  7. package/dist/client/assets/ChatGptUsageButton-D93cMeTp.js +2 -0
  8. package/dist/client/assets/ChatMarkdown-CLD9Y6dg.js +65 -0
  9. package/dist/client/assets/CodexSetupSection.logic-DJw6xB7P.js +2 -0
  10. package/dist/client/assets/ComboboxClear-ZQvkAjz8.js +2 -0
  11. package/dist/client/assets/{CommandBlock-JrUX9e8E.js → CommandBlock-c98wFxMU.js} +2 -2
  12. package/dist/client/assets/{ComposerPromptEditor-Ba1dvqDN.js → ComposerPromptEditor-CBuOXkT9.js} +55 -55
  13. package/dist/client/assets/CompositeRoot-BMUI_bmJ.js +2 -0
  14. package/dist/client/assets/{ConnectionStatusDot-Cjh57o6i.js → ConnectionStatusDot-B69zfKRh.js} +2 -2
  15. package/dist/client/assets/DevicePanel-1xw7KQ15.js +2 -0
  16. package/dist/client/assets/{DeviceSetup-DccRVnjb.js → DeviceSetup-DemgUuG-.js} +2 -2
  17. package/dist/client/assets/DialogTitle-BXot7RA0.js +2 -0
  18. package/dist/client/assets/{DiffCommentAnnotation-DDBZcMFv.js → DiffCommentAnnotation-vAZP7JBy.js} +3 -3
  19. package/dist/client/assets/DiffFileTree-BhqF8nD5.js +2 -0
  20. package/dist/client/assets/DiffPanel-Dqh76p3E.js +2 -0
  21. package/dist/client/assets/{DiffWorkerPoolProvider-RcplgHGv.js → DiffWorkerPoolProvider-D4VIo5Vu.js} +3 -3
  22. package/dist/client/assets/{EnvironmentMachineIcon-DMZGa766.js → EnvironmentMachineIcon-DPQkDtvr.js} +2 -2
  23. package/dist/client/assets/{ExpandableText-DfY-qqRW.js → ExpandableText-EZ9C25tN.js} +3 -3
  24. package/dist/client/assets/{FieldControl-C9UnFGZn.js → FieldControl-C4IsJLMZ.js} +2 -2
  25. package/dist/client/assets/{FileDiff-BXlBWSxx.js → FileDiff-H9QHqXa0.js} +2 -2
  26. package/dist/client/assets/FilePreviewPanel-DGm_SU_e.js +34 -0
  27. package/dist/client/assets/FoldedSettingsSection-BSYFyChk.js +2 -0
  28. package/dist/client/assets/{FormContext-haYZgWIK.js → FormContext-DiXpMuU8.js} +2 -2
  29. package/dist/client/assets/{Icons-C12feMOO.js → Icons-DA4msgfR.js} +2 -2
  30. package/dist/client/assets/{KeybindingsSettings.logic-DhXMdk5O.js → KeybindingsSettings.logic-7EBA0xLE.js} +2 -2
  31. package/dist/client/assets/{NoProjectsHero-CDoSxJVV.js → NoProjectsHero-YjEc2OIw.js} +2 -2
  32. package/dist/client/assets/{PanelLayoutControls-CCKUTh1H.js → PanelLayoutControls-BfRIRM0o.js} +13 -13
  33. package/dist/client/assets/{PierreEntryIcon-7x50Pz_C.js → PierreEntryIcon-BxxykifK.js} +2 -2
  34. package/dist/client/assets/PreviewPanel-QkMfuC1J.js +2 -0
  35. package/dist/client/assets/ProjectDefaultsSettings-C6wxaRmJ.js +2 -0
  36. package/dist/client/assets/{ProjectFavicon-ExMHrN16.js → ProjectFavicon-CiauSitF.js} +3 -3
  37. package/dist/client/assets/ProjectIconPickerDialog-GDqk2LEH.js +2 -0
  38. package/dist/client/assets/{ProjectMonogram-um8sYqIi.js → ProjectMonogram-Bqe3OyZR.js} +2 -2
  39. package/dist/client/assets/{ProviderAuthTerminal-Tw3kH5vc.js → ProviderAuthTerminal-D_OC5vdS.js} +2 -2
  40. package/dist/client/assets/ProviderModelPicker-Bfpy_Rw1.js +2 -0
  41. package/dist/client/assets/ProviderSettingsForm-BA6yGdRn.js +2 -0
  42. package/dist/client/assets/PullRequestCodeTab-BOM7mgfd.js +6 -0
  43. package/dist/client/assets/{ReadOnlySourcePreview-Cw6lfMjA.js → ReadOnlySourcePreview-C3LnvSkA.js} +2 -2
  44. package/dist/client/assets/{RenderErrorBoundary-D21mPr47.js → RenderErrorBoundary-C-EIIrrq.js} +2 -2
  45. package/dist/client/assets/ScheduledTasksSettings-DFtwNfb8.js +4 -0
  46. package/dist/client/assets/ScopedSwitch-DsEcG6rk.js +2 -0
  47. package/dist/client/assets/SecretInput-Be5Akw8x.js +2 -0
  48. package/dist/client/assets/{SettingsPanels-DjzXV7Dm.js → SettingsPanels-CI-FknGh.js} +7 -7
  49. package/dist/client/assets/{SettingsPanels.logic-DpdMN_lX.js → SettingsPanels.logic-CLB8Pu-U.js} +2 -2
  50. package/dist/client/assets/{SettingsScopeNotice-CdNfxmW3.js → SettingsScopeNotice-CVoWG1oN.js} +2 -2
  51. package/dist/client/assets/T3ConnectAccountPages-ClNzwIQw.js +2 -0
  52. package/dist/client/assets/{T3ConnectSidebarSignIn-DewmE1PI.js → T3ConnectSidebarSignIn-BqM_Vqe1.js} +2 -2
  53. package/dist/client/assets/{ThemeEditorPanel-aEsLfkYx.js → ThemeEditorPanel-vVmQV_Vv.js} +3 -3
  54. package/dist/client/assets/ThreadTerminalDrawer-aLeVbe6g.js +5 -0
  55. package/dist/client/assets/{Virtualizer-B2BG0GB9.js → Virtualizer-DTOYU5Jp.js} +2 -2
  56. package/dist/client/assets/WorkspaceBreadcrumb-C9OPPGJE.js +2 -0
  57. package/dist/client/assets/WorkspacePageContainer-DtXJ5ept.js +2 -0
  58. package/dist/client/assets/{WorkspacePageHeader-BCZXPSxj.js → WorkspacePageHeader-5zzLFpEN.js} +2 -2
  59. package/dist/client/assets/_chat-BKcYL38S.js +45 -0
  60. package/dist/client/assets/{_chat.index-7o1_qjfU.js → _chat.index-BP1JWABB.js} +2 -2
  61. package/dist/client/assets/{_chat.new-W2E0MZ4y.js → _chat.new-BX5LyFum.js} +3 -3
  62. package/dist/client/assets/{_chat.pull-requests-DnQ-MKRG.js → _chat.pull-requests-B6-Vck8B.js} +2 -2
  63. package/dist/client/assets/{abnfDiagram-VCTEODGH-DJY5x2uS.js → abnfDiagram-VCTEODGH-BXvAfzAg.js} +2 -2
  64. package/dist/client/assets/{alert-yllEf0yh.js → alert-B-or1ble.js} +2 -2
  65. package/dist/client/assets/architecture-7GRP2DOG-DqzmsB35.js +1 -0
  66. package/dist/client/assets/{architectureDiagram-5GKGNRK7-6YiKazHv.js → architectureDiagram-5GKGNRK7-MEUA3QVe.js} +2 -2
  67. package/dist/client/assets/arrow-left-DI1Oo3nI.js +1 -0
  68. package/dist/client/assets/arrow-right-DRgAj8le.js +1 -0
  69. package/dist/client/assets/arrow-up-down-C6OEPUz7.js +1 -0
  70. package/dist/client/assets/assets-_CWIS9vb.js +2 -0
  71. package/dist/client/assets/bell-DW1iPWzH.js +1 -0
  72. package/dist/client/assets/{blockDiagram-I7D4REHJ-D_EURhbV.js → blockDiagram-I7D4REHJ-BOdLeYJh.js} +2 -2
  73. package/dist/client/assets/blocks-DKOyf4K4.js +1 -0
  74. package/dist/client/assets/bot-DYcBiSui.js +1 -0
  75. package/dist/client/assets/{browserHistoryStore-B-t3Vc_Z.js → browserHistoryStore-BJD0OPpb.js} +2 -2
  76. package/dist/client/assets/{browserLinkTarget-CiQS1wUg.js → browserLinkTarget-CoogLhhO.js} +2 -2
  77. package/dist/client/assets/{c4Diagram-7LVT6UL2-CmfPrrIj.js → c4Diagram-7LVT6UL2-COZrm1O8.js} +2 -2
  78. package/dist/client/assets/calendar-clock-BqL7OneL.js +1 -0
  79. package/dist/client/assets/channel-DbsUczqI.js +2 -0
  80. package/dist/client/assets/chart-no-axes-column-CtQ7A5KE.js +1 -0
  81. package/dist/client/assets/checkbox-CaZu1EKJ.js +2 -0
  82. package/dist/client/assets/{chunk-4HAMMTFA-BdvKUuii.js → chunk-4HAMMTFA-Bs-Fo0v1.js} +2 -2
  83. package/dist/client/assets/{chunk-75Z2AOVW-DXz8BlJz.js → chunk-75Z2AOVW-DpOWzc3R.js} +2 -2
  84. package/dist/client/assets/{chunk-DU6HZSFF-ebFBoLTT.js → chunk-DU6HZSFF-Bgpi4W6E.js} +2 -2
  85. package/dist/client/assets/{chunk-F27PBJKO-B1MlVcaX.js → chunk-F27PBJKO-CLxgnzXS.js} +2 -2
  86. package/dist/client/assets/{chunk-GMAD6QVW-CEXqem_-.js → chunk-GMAD6QVW-D98J5Pan.js} +2 -2
  87. package/dist/client/assets/{chunk-GVQU2GXP-wsgr7T0u.js → chunk-GVQU2GXP-VuCIOHGI.js} +2 -2
  88. package/dist/client/assets/{chunk-IMKFNOWR-Daxc_3WP.js → chunk-IMKFNOWR-DXIyBsaE.js} +2 -2
  89. package/dist/client/assets/{chunk-L3NEJ4N5-C4NnipZ0.js → chunk-L3NEJ4N5-CrMlU3ZU.js} +2 -2
  90. package/dist/client/assets/{chunk-OSK3NFVY-DDd2Ay5_.js → chunk-OSK3NFVY-V2__4gNB.js} +2 -2
  91. package/dist/client/assets/{chunk-P2QGCYS3-I9iEYMEJ.js → chunk-P2QGCYS3-BrPw6V5F.js} +2 -2
  92. package/dist/client/assets/{chunk-POPQ4Y6H-Cgwl0wkZ.js → chunk-POPQ4Y6H-DBQ9Y51x.js} +2 -2
  93. package/dist/client/assets/{chunk-PWAF6VOD-kBB0Jquc.js → chunk-PWAF6VOD-BN6AAbfF.js} +2 -2
  94. package/dist/client/assets/{chunk-SHT3W25Y-gtUoMWd0.js → chunk-SHT3W25Y-Vay44dCU.js} +2 -2
  95. package/dist/client/assets/{chunk-SVP7TREG-CbL5vJ0z.js → chunk-SVP7TREG-CcGlNErV.js} +2 -2
  96. package/dist/client/assets/{chunk-TICWLB2K-CMgrptzc.js → chunk-TICWLB2K-Dk1P_xkD.js} +2 -2
  97. package/dist/client/assets/classDiagram-ZZMXUADV-DotTjRcO.js +2 -0
  98. package/dist/client/assets/classDiagram-v2-VYDZK3BY-DotTjRcO.js +2 -0
  99. package/dist/client/assets/{color-picker-Cj2frYnP.js → color-picker-gBclRe5T.js} +2 -2
  100. package/dist/client/assets/{combobox-DixSlhgy.js → combobox-C81z_216.js} +2 -2
  101. package/dist/client/assets/{command-B45LRbFT.js → command-DnJZPOmf.js} +2 -2
  102. package/dist/client/assets/{connect-CYM5DIkv.js → connect-Am2IS-vZ.js} +2 -2
  103. package/dist/client/assets/{connect-agent-nn3QLMb4.js → connect-agent-Cw1s7hYt.js} +2 -2
  104. package/dist/client/assets/corner-left-up-BT-2gfvH.js +1 -0
  105. package/dist/client/assets/{cynefin-OW5HDTMX-CmLjrFzm.js → cynefin-OW5HDTMX-0s30RxOq.js} +1 -1
  106. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-xQBevUIj.js → cynefinDiagram-5FMLGOSQ-Drd0Msog.js} +2 -2
  107. package/dist/client/assets/{dagre-GXQ25YYZ-Ck8BwJaT.js → dagre-GXQ25YYZ-BMfu7T0o.js} +2 -2
  108. package/dist/client/assets/device-C_oIGJqy.js +2 -0
  109. package/dist/client/assets/{diagram-S7CK7UJ4-Bl0e661x.js → diagram-S7CK7UJ4-8egngY0E.js} +2 -2
  110. package/dist/client/assets/{diagram-UQ7AKVKN-TO9a3uQI.js → diagram-UQ7AKVKN-BALPQoDH.js} +2 -2
  111. package/dist/client/assets/{diagram-VSXAHHWV-BZ7xQ8wz.js → diagram-VSXAHHWV-BjyJZVGC.js} +2 -2
  112. package/dist/client/assets/{diagram-VX7I27RA-C4cA30qa.js → diagram-VX7I27RA-B9f6eKkq.js} +2 -2
  113. package/dist/client/assets/{diagram-Z3DM3KII-Hl3MmqeP.js → diagram-Z3DM3KII-CRUj2d3v.js} +2 -2
  114. package/dist/client/assets/{dialog-DhJeevKt.js → dialog-Bn1u_Xoc.js} +2 -2
  115. package/dist/client/assets/{diffRendering-QVeYVRDU.js → diffRendering-C26rfQBu.js} +2 -2
  116. package/dist/client/assets/{discovery-list-VoilmsP7.js → discovery-list-Fg_u6w-x.js} +2 -2
  117. package/dist/client/assets/{dist-CxgL3edJ.js → dist-DtKaGeij.js} +5 -5
  118. package/dist/client/assets/download-DNjijPHR.js +1 -0
  119. package/dist/client/assets/{draft-input-BrEXLyuj.js → draft-input-D8eUYug0.js} +2 -2
  120. package/dist/client/assets/{duoViewer-D-_bD3-L.js → duoViewer-CBoAg4hS.js} +2 -2
  121. package/dist/client/assets/dynamic-p5s8CQGu.js +3 -0
  122. package/dist/client/assets/earth-DGA4iwBJ.js +1 -0
  123. package/dist/client/assets/{ebnfDiagram-PWID7BFC-Bo_ALmgV.js → ebnfDiagram-PWID7BFC-BSbPiqg7.js} +2 -2
  124. package/dist/client/assets/ellipsis-Cbd-Ac19.js +1 -0
  125. package/dist/client/assets/{embeddedScripts-DKKE5k7D.js → embeddedScripts-Dsi0aZEx.js} +2 -2
  126. package/dist/client/assets/empty-C-gDaZ_z.js +2 -0
  127. package/dist/client/assets/entities-82m-Smm-.js +2 -0
  128. package/dist/client/assets/{erDiagram-RLTQ6QDP-B38FLl2U.js → erDiagram-RLTQ6QDP-sL_q0j_k.js} +2 -2
  129. package/dist/client/assets/eventmodeling-NTZA5JFV-OEIkdS25.js +1 -0
  130. package/dist/client/assets/eye-BUplLfz9.js +1 -0
  131. package/dist/client/assets/file-search-CcnLiCku.js +1 -0
  132. package/dist/client/assets/fileContextMenu-Dcs50sFI.js +2 -0
  133. package/dist/client/assets/{fileLinks-VfyxNu8P.js → fileLinks-DubkPNVt.js} +2 -2
  134. package/dist/client/assets/{fileTreeExpansion-BfMZMaRV.js → fileTreeExpansion-VtSAPhxL.js} +2 -2
  135. package/dist/client/assets/flowDiagram-HODETNUW-BDZPeVYD.js +1 -0
  136. package/dist/client/assets/fold-vertical-BMLbHh0a.js +2 -0
  137. package/dist/client/assets/folder-cog-BMK_9DOi.js +2 -0
  138. package/dist/client/assets/folder-git-2-5RczFn6m.js +1 -0
  139. package/dist/client/assets/folder-open-PwiT4lvQ.js +1 -0
  140. package/dist/client/assets/folder-plus--IokSBmG.js +1 -0
  141. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-Cj0Kstgh.js → ganttDiagram-EL5Y4UJY-DCiKb0rQ.js} +2 -2
  142. package/dist/client/assets/{getDiffFileInput-XUe1xsym.js → getDiffFileInput-DU5zpXo3.js} +2 -2
  143. package/dist/client/assets/git-branch-jf-x2c63.js +1 -0
  144. package/dist/client/assets/{gitGraph-4MIJSDKK-C84uaaYZ.js → gitGraph-4MIJSDKK-DfRe6ZT5.js} +1 -1
  145. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-CvyimLfZ.js → gitGraphDiagram-WWUBYQGX-Bt7diV1n.js} +2 -2
  146. package/dist/client/assets/grip-vertical-OASdudbE.js +1 -0
  147. package/dist/client/assets/{guideRunStore-DwmmS8D0.js → guideRunStore-CF9bByzk.js} +2 -2
  148. package/dist/client/assets/hard-drive-BxN5msOb.js +1 -0
  149. package/dist/client/assets/history-DdVU5lcf.js +1 -0
  150. package/dist/client/assets/house-mbks5FAa.js +1 -0
  151. package/dist/client/assets/{htmlRender-DRfZ8nFp.js → htmlRender-vOqAdlJH.js} +2 -2
  152. package/dist/client/assets/index-1HGbj0-7.js +3 -0
  153. package/dist/client/assets/{info-A6RAGUB7-AXJa674d.js → info-A6RAGUB7-0FtL6-Am.js} +1 -1
  154. package/dist/client/assets/{infoDiagram-27XIBGKW-CgaIIar7.js → infoDiagram-27XIBGKW-BPLvtPCc.js} +2 -2
  155. package/dist/client/assets/{input-u5qjnfMr.js → input-Cd_0h7h_.js} +2 -2
  156. package/dist/client/assets/{input-group-DIOgVvbV.js → input-group-CJ7ZOvDN.js} +2 -2
  157. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DSDzMD_t.js → ishikawaDiagram-5VMMS53U-DVcx0XTh.js} +2 -2
  158. package/dist/client/assets/{journeyDiagram-3NMN7TZE-Be6o5a7O.js → journeyDiagram-3NMN7TZE-w46bbjL2.js} +2 -2
  159. package/dist/client/assets/{kanban-definition-UXKFOSKX-Fpr0ne16.js → kanban-definition-UXKFOSKX-C41yE_yV.js} +2 -2
  160. package/dist/client/assets/kbd-c17EHIx1.js +2 -0
  161. package/dist/client/assets/keybindings-uYm_vnXl.js +2 -0
  162. package/dist/client/assets/keyboard-DckDn_SM.js +1 -0
  163. package/dist/client/assets/{lazyRouteComponent-dLOOuQ-r.js → lazyRouteComponent-CTVuEvaz.js} +2 -2
  164. package/dist/client/assets/{line-BXhbrPh0.js → line-tu9XZ0qp.js} +2 -2
  165. package/dist/client/assets/{link-YLDgrmSN.js → link-C4sEUNOK.js} +2 -2
  166. package/dist/client/assets/link-Dw3ue0Rm.js +1 -0
  167. package/dist/client/assets/{linkedPrompt-E32o3H76.js → linkedPrompt-VYl90REW.js} +2 -2
  168. package/dist/client/assets/list-1rglB5Lq.js +1 -0
  169. package/dist/client/assets/main-BB3F4O6Y.js +30 -0
  170. package/dist/client/assets/main-CnVegMVf.css +2 -0
  171. package/dist/client/assets/{mediaReference-C-grVzJf.js → mediaReference-BTVvzs2e.js} +2 -2
  172. package/dist/client/assets/{mediaSource-CxVHZYDj.js → mediaSource-DXHFWHMA.js} +2 -2
  173. package/dist/client/assets/{mermaid-parser.core-BFPy42Wg.js → mermaid-parser.core-DNd412Oc.js} +4 -4
  174. package/dist/client/assets/{mermaid.core-zK2u82e-.js → mermaid.core-CyE6QOQY.js} +5 -5
  175. package/dist/client/assets/message-circle-question-mark-CLPs5tYP.js +1 -0
  176. package/dist/client/assets/message-square-BInn4EwR.js +1 -0
  177. package/dist/client/assets/message-square-dashed-Dea7_sXv.js +1 -0
  178. package/dist/client/assets/{mindmap-definition-YA3MSWOX-RzkTvFrT.js → mindmap-definition-YA3MSWOX-DH1uxdTm.js} +2 -2
  179. package/dist/client/assets/mouse-pointer-2-BPl1Yb5N.js +1 -0
  180. package/dist/client/assets/number-field-CVtwAsLe.js +2 -0
  181. package/dist/client/assets/{observeResize-WQaFQjbx.js → observeResize-Csvw3hy4.js} +2 -2
  182. package/dist/client/assets/{onboarding-DNafmm6s.js → onboarding-CJPrQc71.js} +2 -2
  183. package/dist/client/assets/openFileInPreview-C3O_ayUT.js +2 -0
  184. package/dist/client/assets/{p4ProjectFile-BzCYJ8I-.js → p4ProjectFile-BWszgcDk.js} +2 -2
  185. package/dist/client/assets/{packet-AYTQ26CC-rDYSbNWh.js → packet-AYTQ26CC-DflCOkCN.js} +1 -1
  186. package/dist/client/assets/{pair-nG9A6oxp.js → pair-Dd_e1jxq.js} +2 -2
  187. package/dist/client/assets/palette-DC6st-Ld.js +1 -0
  188. package/dist/client/assets/panel-left-BxNE-mqR.js +1 -0
  189. package/dist/client/assets/panels-top-left-CpwWAaSX.js +1 -0
  190. package/dist/client/assets/{pegDiagram-XKGWAZYB-8wodyYDi.js → pegDiagram-XKGWAZYB-Cnx9j2xX.js} +2 -2
  191. package/dist/client/assets/{phoneViewer-Bei8FsYJ.js → phoneViewer-B9EUVDD2.js} +2 -2
  192. package/dist/client/assets/{pie-WAS4IAKB-Ce0_zpeP.js → pie-WAS4IAKB-CDwew7fN.js} +1 -1
  193. package/dist/client/assets/{pieDiagram-E7YTZNPT-C3QJYWCY.js → pieDiagram-E7YTZNPT-BxejSN6k.js} +2 -2
  194. package/dist/client/assets/{pierre-icons-CsjmRq9p.js → pierre-icons-C839Otpo.js} +2 -2
  195. package/dist/client/assets/plug-Cdxb0djR.js +2 -0
  196. package/dist/client/assets/popover-CKyetthu.js +2 -0
  197. package/dist/client/assets/{preview-DFDpDpup.js → preview-CEMnbqVB.js} +2 -2
  198. package/dist/client/assets/{preview-BpTu6A2K.js → preview-CjgXQQdj.js} +2 -2
  199. package/dist/client/assets/{previewMiniPlayerStore-BfMwexwO.js → previewMiniPlayerStore-B9Lqaaij.js} +2 -2
  200. package/dist/client/assets/primary-uszZTzpR.js +2 -0
  201. package/dist/client/assets/primaryCloudLinkState-CWT2YTBZ.js +2 -0
  202. package/dist/client/assets/projectFilesQueryState-ELgLflk5.js +2 -0
  203. package/dist/client/assets/projectScriptEditor-BAuP_HeU.js +2 -0
  204. package/dist/client/assets/{pullRequestDetail.logic-CE7fVOsp.js → pullRequestDetail.logic-DTxWqKoX.js} +4 -4
  205. package/dist/client/assets/{pullRequestReviewStore-BHEIYvsP.js → pullRequestReviewStore-C5gaoGaz.js} +2 -2
  206. package/dist/client/assets/pullRequests-DjbQ49mZ.js +2 -0
  207. package/dist/client/assets/puzzle-foT3lPUZ.js +1 -0
  208. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-Cqx4Dcqi.js → quadrantDiagram-AXDQQJYC-Bj4FEpOg.js} +2 -2
  209. package/dist/client/assets/queries-Cq5C9N-K.js +2 -0
  210. package/dist/client/assets/query-DpwJQzeq.js +2 -0
  211. package/dist/client/assets/{radar-RG4KPBEZ-DsccxBWq.js → radar-RG4KPBEZ-DEopr2Gv.js} +1 -1
  212. package/dist/client/assets/radio-group-fljQQ7Xp.js +2 -0
  213. package/dist/client/assets/{railroad-74A4TZTK-B-UN2mSQ.js → railroad-74A4TZTK-BSAOgUn6.js} +1 -1
  214. package/dist/client/assets/railroad-abnf-HS5TGJTU-C_4g8TOP.js +1 -0
  215. package/dist/client/assets/railroad-ebnf-LZEXJU2U-CHZB5YoP.js +1 -0
  216. package/dist/client/assets/railroad-peg-WCYAUIDC-B-PbMjlp.js +1 -0
  217. package/dist/client/assets/{railroadDiagram-O6MQD6OU-B_PdDy5r.js → railroadDiagram-O6MQD6OU-BSOJGJ6v.js} +2 -2
  218. package/dist/client/assets/{renderScheduler-D1ml_j--.js → renderScheduler-v8LIpnE2.js} +2 -2
  219. package/dist/client/assets/{requirementDiagram-BXWQKSXE-CKZ6HpQu.js → requirementDiagram-BXWQKSXE-Bp5TqEho.js} +2 -2
  220. package/dist/client/assets/rightPanelStore-DqMd0tFH.js +2 -0
  221. package/dist/client/assets/rotate-ccw-rssHZoOL.js +1 -0
  222. package/dist/client/assets/rotate-cw-D726GGah.js +1 -0
  223. package/dist/client/assets/runtime-BQJQC-Ny.js +6 -0
  224. package/dist/client/assets/runtime-C6FwphD-.js +2 -0
  225. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BLF-VPcj.js → sankeyDiagram-P5KCCOFB-C7KUHrP7.js} +2 -2
  226. package/dist/client/assets/scheduledTasksSettings.logic-C3Mbc4mh.js +3 -0
  227. package/dist/client/assets/{scroll-area-CsrtHuL8.js → scroll-area-LhpLVf8r.js} +2 -2
  228. package/dist/client/assets/select-B4VvMEs2.js +2 -0
  229. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BpJGkNAx.js → sequenceDiagram-WJ2MYXX4-Bs9mfTLC.js} +2 -2
  230. package/dist/client/assets/server-BD_Y5Gsn.js +2 -0
  231. package/dist/client/assets/session-DsbInyNV.js +2 -0
  232. package/dist/client/assets/session-logic-DneZDyPZ.js +26 -0
  233. package/dist/client/assets/settings-2-Qrnq-5XQ.js +1 -0
  234. package/dist/client/assets/settings-C8FiUQu0.js +2 -0
  235. package/dist/client/assets/settings-MUAsYy_j.js +1 -0
  236. package/dist/client/assets/settings.appearance-B5-X4oyX.js +2 -0
  237. package/dist/client/assets/settings.archived-DVUmF0nS.js +2 -0
  238. package/dist/client/assets/{settings.computer-use-DuW-mXPO.js → settings.computer-use-B3Ujc2AS.js} +2 -2
  239. package/dist/client/assets/settings.connections-EQYBOa7e.js +2 -0
  240. package/dist/client/assets/settings.decisions-C5UE4drK.js +2 -0
  241. package/dist/client/assets/{settings.diagnostics-DSw1QN-I.js → settings.diagnostics-CBcOEqPM.js} +2 -2
  242. package/dist/client/assets/settings.general-BOmr4mSV.js +2 -0
  243. package/dist/client/assets/settings.integrations-BCtpk2dY.js +2 -0
  244. package/dist/client/assets/{settings.keybindings-BeQmUtKv.js → settings.keybindings-DfFrYXxY.js} +2 -2
  245. package/dist/client/assets/settings.open-source-licenses-CqRM1gRd.js +2 -0
  246. package/dist/client/assets/settings.plugins-DC4js6dE.js +5 -0
  247. package/dist/client/assets/{settings.projects--jLA2A5b.js → settings.projects-CT-l0EfX.js} +4 -4
  248. package/dist/client/assets/settings.providers-CJuBTAiR.js +3 -0
  249. package/dist/client/assets/settings.scheduled-tasks-CvLNaadX.js +2 -0
  250. package/dist/client/assets/{settings.snap-shot-CUZNOX9M.js → settings.snap-shot-BMxV-ClC.js} +2 -2
  251. package/dist/client/assets/settings.source-control-DJWucVsM.js +2 -0
  252. package/dist/client/assets/settings.storage-DKm6BZ2r.js +2 -0
  253. package/dist/client/assets/settingsLayout-jP1a50ek.js +3 -0
  254. package/dist/client/assets/shield-question-mark-kKJBH4Uj.js +1 -0
  255. package/dist/client/assets/{sidebar-Dj0htG-5.js → sidebar-DI1ZJMkM.js} +2 -2
  256. package/dist/client/assets/{sidebarProjectGrouping-DxzT7QCQ.js → sidebarProjectGrouping-DXRKqrOP.js} +2 -2
  257. package/dist/client/assets/skeleton-BlMPaSbD.js +2 -0
  258. package/dist/client/assets/{sortable.esm-n8ce5zjO.js → sortable.esm-CnSn9HhJ.js} +2 -2
  259. package/dist/client/assets/{sourceControl-C3RSledt.js → sourceControl-ogZI3Qhj.js} +2 -2
  260. package/dist/client/assets/{spinner-BXr4m38K.js → spinner-I_NrXl2i.js} +2 -2
  261. package/dist/client/assets/square-menu-dCwciC39.js +2 -0
  262. package/dist/client/assets/square-pen-DilH8raK.js +1 -0
  263. package/dist/client/assets/square-plus-CeFmBUPF.js +2 -0
  264. package/dist/client/assets/{standalone-page-DSQDdNcR.js → standalone-page-C0mvdk0N.js} +2 -2
  265. package/dist/client/assets/{stateDiagram-D77RDMKH-DFGb4Fx3.js → stateDiagram-D77RDMKH-lcvbm4gc.js} +2 -2
  266. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DuLLhUia.js +2 -0
  267. package/dist/client/assets/{swimlanes-42K2YHIH-D0z9osG6.js → swimlanes-42K2YHIH-BftXRbCQ.js} +2 -2
  268. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-BrHQKVnf.js +9 -0
  269. package/dist/client/assets/terminal-links-BWEpET__.js +2 -0
  270. package/dist/client/assets/terminalLabels-BgLOlb2G.js +2 -0
  271. package/dist/client/assets/{terminalSessions-3aynRXX1.js → terminalSessions-CQOPPXfy.js} +2 -2
  272. package/dist/client/assets/text-search-DpDcKspl.js +1 -0
  273. package/dist/client/assets/{textarea-DZLyhzuZ.js → textarea-Bu723jDd.js} +2 -2
  274. package/dist/client/assets/themePalette-CAxv2FDZ.js +5 -0
  275. package/dist/client/assets/threadSort-BoaTqeGH.js +2 -0
  276. package/dist/client/assets/{timeline-definition-24CTP7MA-oHM5IS4i.js → timeline-definition-24CTP7MA-_aV_EuqE.js} +2 -2
  277. package/dist/client/assets/toast-CjelgyqV.js +2 -0
  278. package/dist/client/assets/{toggle-BzIEPTf7.js → toggle-B5fidRv0.js} +2 -2
  279. package/dist/client/assets/{toggle-group-_C7nJPTT.js → toggle-group-DCQTLIPb.js} +2 -2
  280. package/dist/client/assets/tooltip-taOyJZax.js +2 -0
  281. package/dist/client/assets/{treeView-Q6P3EWNA-ONHv8oqx.js → treeView-Q6P3EWNA-ALGd5g_W.js} +1 -1
  282. package/dist/client/assets/{treemap-WGGIJYW6-Go2hwkyn.js → treemap-WGGIJYW6-CGQrkzMs.js} +1 -1
  283. package/dist/client/assets/unfold-vertical-BLnEY4R7.js +2 -0
  284. package/dist/client/assets/usage-DmGxFUdr.js +2 -0
  285. package/dist/client/assets/{usageAccess-BNLOTFbF.js → usageAccess-CY-JtQnU.js} +2 -2
  286. package/dist/client/assets/{usageFormat-DKCO_wk0.js → usageFormat-Cs-UHzLq.js} +2 -2
  287. package/dist/client/assets/{usageShortcuts-DxLRXv0W.js → usageShortcuts-CP952NDO.js} +2 -2
  288. package/dist/client/assets/use-atom-command-CQHjSXPR.js +2 -0
  289. package/dist/client/assets/{useAriaLabelledBy-CJjXf8Fd.js → useAriaLabelledBy-4I5xhNlP.js} +2 -2
  290. package/dist/client/assets/useHandleNewThread-Bzaf_PDE.js +2 -0
  291. package/dist/client/assets/{useLocation-9axGTsrg.js → useLocation-QINZoaPz.js} +2 -2
  292. package/dist/client/assets/useNavigate-4thj06GJ.js +2 -0
  293. package/dist/client/assets/{useNavigateBack-AIHPN0Oo.js → useNavigateBack-CbbWf0z6.js} +2 -2
  294. package/dist/client/assets/{useParams-CCV3vN4E.js → useParams-BTKEXLBT.js} +2 -2
  295. package/dist/client/assets/{usePermissionStatus-BnBF7CdE.js → usePermissionStatus-Zbsv_90x.js} +2 -2
  296. package/dist/client/assets/{usePullRequestActions-aKrHzIiJ.js → usePullRequestActions-DGTJ6ne6.js} +3 -3
  297. package/dist/client/assets/useRegisterFieldControl-Cr87Snzk.js +2 -0
  298. package/dist/client/assets/useScopedModelAvailability-BEfh0WXx.js +2 -0
  299. package/dist/client/assets/useSettings-CLtJrOYI.js +3 -0
  300. package/dist/client/assets/{useT3ConnectAuthPrompt-CK8il-7e.js → useT3ConnectAuthPrompt-BYqrzQIx.js} +2 -2
  301. package/dist/client/assets/utils-DmfMX1v5.js +37 -0
  302. package/dist/client/assets/vcsRefInvalidation-nP-qgsHs.js +2 -0
  303. package/dist/client/assets/{vennDiagram-4TSXK5OY-BwVRZPOj.js → vennDiagram-4TSXK5OY-9Jx7JrgE.js} +2 -2
  304. package/dist/client/assets/{wardley-WFR3VGLG-CYl4h3U-.js → wardley-WFR3VGLG-qG58RzFw.js} +1 -1
  305. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-yHMYVGhg.js → wardleyDiagram-VM6X3IG4-8Ml3tzfR.js} +2 -2
  306. package/dist/client/assets/welcome-CPcQsM9H.js +2 -0
  307. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-Td7MQ_xN.js → xychartDiagram-S5SC5T6Z-C-u_0wo0.js} +2 -2
  308. package/dist/client/index.html +11 -8
  309. package/package.json +1 -1
  310. package/dist/client/assets/ChatGptUsageButton-7IZqWaQq.js +0 -2
  311. package/dist/client/assets/ChatMarkdown-D3ITm4U-.js +0 -65
  312. package/dist/client/assets/CodexSetupSection.logic-DyTuN6tg.js +0 -2
  313. package/dist/client/assets/ComboboxClear-BXGqqvsR.js +0 -2
  314. package/dist/client/assets/CompositeRoot-CW06ANMY.js +0 -2
  315. package/dist/client/assets/DevicePanel-zG3feCFw.js +0 -2
  316. package/dist/client/assets/DialogTitle-7tvQYVxE.js +0 -2
  317. package/dist/client/assets/DiffFileTree-BhSPT6m_.js +0 -2
  318. package/dist/client/assets/DiffPanel-D7QMWq_A.js +0 -2
  319. package/dist/client/assets/FilePreviewPanel-CSKeM-xZ.js +0 -34
  320. package/dist/client/assets/FoldedSettingsSection-BJm8ZaTy.js +0 -2
  321. package/dist/client/assets/PreviewPanel-BEWZuH6o.js +0 -2
  322. package/dist/client/assets/ProjectDefaultsSettings-BRRQlvgR.js +0 -2
  323. package/dist/client/assets/ProjectIconPickerDialog-DXSyEGg8.js +0 -2
  324. package/dist/client/assets/ProviderModelPicker-CpgHpUCG.js +0 -2
  325. package/dist/client/assets/ProviderSettingsForm-CaNO8FYK.js +0 -2
  326. package/dist/client/assets/PullRequestCodeTab-DwqL4aAJ.js +0 -6
  327. package/dist/client/assets/RedactedSensitiveText-citJBx4E.js +0 -2
  328. package/dist/client/assets/ScheduledTasksSettings-BXOG7dPV.js +0 -4
  329. package/dist/client/assets/ScopedSwitch-2MBm4Srn.js +0 -2
  330. package/dist/client/assets/T3ConnectAccountPages-C6qHq26m.js +0 -2
  331. package/dist/client/assets/ThreadTerminalDrawer-C1NDkTSs.js +0 -5
  332. package/dist/client/assets/UsageLimits-BUS51Bjr.js +0 -2
  333. package/dist/client/assets/WorkspaceBreadcrumb-DX3xH6tC.js +0 -2
  334. package/dist/client/assets/WorkspacePageContainer-BFo6qTGJ.js +0 -2
  335. package/dist/client/assets/_chat-B3j3XTUJ.js +0 -58
  336. package/dist/client/assets/architecture-7GRP2DOG-nO5xG-8k.js +0 -1
  337. package/dist/client/assets/arrow-left-yEW5WFYj.js +0 -1
  338. package/dist/client/assets/arrow-right-BzVZfSb7.js +0 -1
  339. package/dist/client/assets/arrow-up-down-DjL7trCL.js +0 -1
  340. package/dist/client/assets/assets-BxSVuao2.js +0 -2
  341. package/dist/client/assets/bell-ue7A6JFg.js +0 -1
  342. package/dist/client/assets/blocks-De0WwZYY.js +0 -1
  343. package/dist/client/assets/bot-_T9E-nkd.js +0 -1
  344. package/dist/client/assets/calendar-clock-DXFNSdXM.js +0 -1
  345. package/dist/client/assets/channel-BE0ymtNV.js +0 -2
  346. package/dist/client/assets/chart-no-axes-column-Dx_cyfN9.js +0 -1
  347. package/dist/client/assets/checkbox-CIeee0-J.js +0 -2
  348. package/dist/client/assets/classDiagram-ZZMXUADV-YRduSbl9.js +0 -2
  349. package/dist/client/assets/classDiagram-v2-VYDZK3BY-YRduSbl9.js +0 -2
  350. package/dist/client/assets/collapsible-C3qenpEI.js +0 -2
  351. package/dist/client/assets/corner-left-up-DohBMTTI.js +0 -1
  352. package/dist/client/assets/device-BRhRKysY.js +0 -2
  353. package/dist/client/assets/download-B587khDU.js +0 -1
  354. package/dist/client/assets/dynamic-R3OtJZHK.js +0 -3
  355. package/dist/client/assets/earth-26IFbzWm.js +0 -1
  356. package/dist/client/assets/ellipsis-BScTTB_n.js +0 -1
  357. package/dist/client/assets/empty-uoiaKPHo.js +0 -2
  358. package/dist/client/assets/entities-DNKDCsf2.js +0 -2
  359. package/dist/client/assets/eventmodeling-NTZA5JFV-6XFarcvj.js +0 -1
  360. package/dist/client/assets/eye-DTlv8Vet.js +0 -1
  361. package/dist/client/assets/file-search-gFHOfI6S.js +0 -1
  362. package/dist/client/assets/flowDiagram-HODETNUW-DQXavjl4.js +0 -1
  363. package/dist/client/assets/fold-vertical-BNQMJ6gu.js +0 -1
  364. package/dist/client/assets/folder-cog-CYwPj2H1.js +0 -2
  365. package/dist/client/assets/folder-git-2-6ON-nxul.js +0 -1
  366. package/dist/client/assets/folder-open-Rja0vZjv.js +0 -1
  367. package/dist/client/assets/folder-plus-CfJ5c8wa.js +0 -1
  368. package/dist/client/assets/git-branch-BuWXMpmq.js +0 -1
  369. package/dist/client/assets/grip-vertical-qjSy6wXX.js +0 -1
  370. package/dist/client/assets/hard-drive-DAxFba08.js +0 -1
  371. package/dist/client/assets/history-CrY611k2.js +0 -1
  372. package/dist/client/assets/house-CKS51Vx8.js +0 -1
  373. package/dist/client/assets/index-G0rP4C-v.js +0 -3
  374. package/dist/client/assets/kbd-D4mDfHPa.js +0 -2
  375. package/dist/client/assets/keybindings-CzL-fWkh.js +0 -2
  376. package/dist/client/assets/keyboard-Y7zJXIRo.js +0 -1
  377. package/dist/client/assets/link-CbhoiCa8.js +0 -1
  378. package/dist/client/assets/list-Cq4wtMwR.js +0 -1
  379. package/dist/client/assets/main-D9nJEeym.css +0 -2
  380. package/dist/client/assets/main-D9z9rMK1.js +0 -27
  381. package/dist/client/assets/message-circle-question-mark-BwzHSg4C.js +0 -1
  382. package/dist/client/assets/message-square-DcSgYDZ6.js +0 -1
  383. package/dist/client/assets/message-square-dashed-Cu56tC0F.js +0 -1
  384. package/dist/client/assets/mouse-pointer-2-DxhF1Woc.js +0 -1
  385. package/dist/client/assets/number-field-BLz8W5SU.js +0 -2
  386. package/dist/client/assets/openFileInPreview-l6IXWIxV.js +0 -2
  387. package/dist/client/assets/palette-B79srcx1.js +0 -1
  388. package/dist/client/assets/panel-left-Bp59PK2R.js +0 -1
  389. package/dist/client/assets/panel-tab-close-button-B2GW1bDy.js +0 -2
  390. package/dist/client/assets/panels-top-left-CC3HCiIs.js +0 -1
  391. package/dist/client/assets/plug-B1ccrQcT.js +0 -2
  392. package/dist/client/assets/popover-6BYEGLLK.js +0 -2
  393. package/dist/client/assets/primary-Cc8Am8Ju.js +0 -2
  394. package/dist/client/assets/primaryCloudLinkState-N7pLty-_.js +0 -2
  395. package/dist/client/assets/projectFilesQueryState-CrGsc81w.js +0 -2
  396. package/dist/client/assets/projectScriptEditor-RR3KkKhh.js +0 -2
  397. package/dist/client/assets/pullRequests-KhjrMCa0.js +0 -2
  398. package/dist/client/assets/puzzle-Df6hPSJS.js +0 -2
  399. package/dist/client/assets/queries-Cn1FJB1_.js +0 -2
  400. package/dist/client/assets/query-CK8MOmXr.js +0 -2
  401. package/dist/client/assets/radio-group-CM6Ra-QS.js +0 -2
  402. package/dist/client/assets/railroad-abnf-HS5TGJTU-CIxA0Vp4.js +0 -1
  403. package/dist/client/assets/railroad-ebnf-LZEXJU2U-Czs81Kdn.js +0 -1
  404. package/dist/client/assets/railroad-peg-WCYAUIDC-B7O8OPsa.js +0 -1
  405. package/dist/client/assets/rightPanelStore-6LLb3GY0.js +0 -2
  406. package/dist/client/assets/rotate-ccw-dcahmZQ2.js +0 -1
  407. package/dist/client/assets/rotate-cw-CIep6yNT.js +0 -1
  408. package/dist/client/assets/runtime-BVgeNXTV.js +0 -2
  409. package/dist/client/assets/runtime-CCr9UADV.js +0 -6
  410. package/dist/client/assets/scheduledTasksSettings.logic-ozIaTRfT.js +0 -3
  411. package/dist/client/assets/select-BiARKKgd.js +0 -2
  412. package/dist/client/assets/server-B26doYv6.js +0 -2
  413. package/dist/client/assets/session-CQXL-cTI.js +0 -2
  414. package/dist/client/assets/session-logic-C0mrkZ0j.js +0 -13
  415. package/dist/client/assets/settings-2-C2dIdVBr.js +0 -1
  416. package/dist/client/assets/settings-B5Dj0jhP.js +0 -2
  417. package/dist/client/assets/settings-DiBtchmK.js +0 -1
  418. package/dist/client/assets/settings.appearance-Di8HZa2Q.js +0 -2
  419. package/dist/client/assets/settings.archived-By34XjbG.js +0 -2
  420. package/dist/client/assets/settings.connections-BJuKrJhl.js +0 -2
  421. package/dist/client/assets/settings.decisions-BO8hfyYm.js +0 -2
  422. package/dist/client/assets/settings.general-RyWWgxqp.js +0 -2
  423. package/dist/client/assets/settings.integrations--N8SMmw7.js +0 -2
  424. package/dist/client/assets/settings.open-source-licenses-BmgFSigO.js +0 -2
  425. package/dist/client/assets/settings.providers-Cvt1-bmr.js +0 -3
  426. package/dist/client/assets/settings.scheduled-tasks-D5IG4nj_.js +0 -2
  427. package/dist/client/assets/settings.source-control-R63Z9kEM.js +0 -2
  428. package/dist/client/assets/settings.storage-J1kthey9.js +0 -2
  429. package/dist/client/assets/settingsLayout-BzyY4qHt.js +0 -3
  430. package/dist/client/assets/shield-question-mark-l31p7uuJ.js +0 -1
  431. package/dist/client/assets/skeleton-CtSxs1y1.js +0 -2
  432. package/dist/client/assets/square-menu-Bq3HnG2U.js +0 -2
  433. package/dist/client/assets/square-pen-CxvvUOOt.js +0 -1
  434. package/dist/client/assets/square-plus-B9j2jkOq.js +0 -2
  435. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-BFcRJjAO.js +0 -2
  436. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-B7z2b1Qv.js +0 -9
  437. package/dist/client/assets/text-search-DsadxNJw.js +0 -1
  438. package/dist/client/assets/themePalette-BZeqG2Hu.js +0 -5
  439. package/dist/client/assets/threadSort-BvhI6zOp.js +0 -2
  440. package/dist/client/assets/toast-Bm36EaG6.js +0 -2
  441. package/dist/client/assets/tooltip-Df-4YKs5.js +0 -2
  442. package/dist/client/assets/unfold-vertical--twzQtvn.js +0 -1
  443. package/dist/client/assets/usage-B26GT0RK.js +0 -2
  444. package/dist/client/assets/use-atom-command-CiEeUGsC.js +0 -2
  445. package/dist/client/assets/useHandleNewThread-DTz3ztCG.js +0 -2
  446. package/dist/client/assets/useNavigate-BK_XZ1It.js +0 -2
  447. package/dist/client/assets/useRegisterFieldControl-Daf1iBkI.js +0 -2
  448. package/dist/client/assets/useScopedModelAvailability-IKTxpeQL.js +0 -2
  449. package/dist/client/assets/useSettings-CckatJFa.js +0 -3
  450. package/dist/client/assets/utils-DmS758az.js +0 -37
  451. package/dist/client/assets/vcsRefInvalidation-lkYjTxah.js +0 -2
  452. package/dist/client/assets/welcome-CGBWwWzE.js +0 -2
@@ -1,3 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$o as n,Af as r,As as i,Cb as a,Cl as o,Db as s,Eh as c,El as l,Ep as u,Gb as d,Go as f,Hl as p,Ho as ee,Ih as te,Kb as m,Kh as ne,Lh as re,Lo as ie,Nl as ae,Ol as oe,Rf as se,Rl as ce,Rm as le,Sl as ue,Tb as h,Ug as de,Ul as fe,Um as pe,Uo as me,Vl as he,Vo as g,Wh as ge,Xb as _e,Xh as ve,Yh as ye,Zm as be,_s as xe,al as Se,bl as Ce,ch as we,cu as Te,dm as Ee,ds as De,fh as Oe,fm as ke,g_ as Ae,hs as je,kl as Me,lm as Ne,m_ as Pe,mh as Fe,ms as Ie,nl as Le,oh as Re,pm as ze,qh as Be,rl as Ve,sm as He,th as Ue,vh as We,wx as Ge,yh as Ke}from"./utils-DmS758az.js";import{F as qe,L as Je,T as Ye,U as Xe,gt as _,kt as Ze,w as Qe,xn as $e}from"./runtime-CCr9UADV.js";import{Ct as et,T as tt,t as nt,yt as rt}from"./runtime-BVgeNXTV.js";import{i as v}from"./toast-Bm36EaG6.js";import{f as y,h as b,m as it,u as at}from"./server-B26doYv6.js";import{i as ot,n as st,s as ct,t as lt}from"./session-CQXL-cTI.js";import{t as x}from"./use-atom-command-CiEeUGsC.js";import{B as ut,C as dt,F as ft,N as pt,P as mt,V as ht,b as gt,c as _t,i as S,k as vt,l as yt,n as bt,o as xt,r as St,v as Ct,w as wt,x as Tt}from"./themePalette-BZeqG2Hu.js";var C=e(t(),1),w=Ge();function Et(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function Dt(e){let t=me(t=>f(n=>{let r=n(e.catalogValueAtom).entries.get(t);if(r===void 0)return null;let i=d(Ie(n(e.stateAtom(t))),()=>$e);return{entry:r,connection:r.unsupportedReason===void 0?et(i):{phase:`unsupported`,error:r.unsupportedReason,traceId:null},serverConfig:n(e.serverConfigValueAtom(t))}}).pipe(n(`environment-presentation:${t}`))),r=new Map;return{presentationAtom:t,presentationsAtom:f(n=>{let i=new Map;for(let r of n(e.catalogValueAtom).entries.keys()){let e=n(t(r));e!==null&&i.set(r,e)}return Et(r,i)||(r=i),r}).pipe(n(`environment-presentations`))}}function Ot(e,t){return{environmentId:e,environmentLabel:t.entry.target.label,displayUrl:rt(t.entry)??``,isRelayManaged:Ze(t.entry),isEnabled:t.entry.enabled,connectionState:t.connection.phase,connectionError:t.connection.error,connectionErrorTraceId:t.connection.traceId}}function kt(e){let t=f(t=>{let n=[...t(e.catalogValueAtom).entries.keys()],r=m(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}),r=f(t=>{let n=[...t(e.catalogValueAtom).entries].map(([e,t])=>({environmentId:e,label:t.target.label})),r=m(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e.environmentId===r[t]?.environmentId&&e.label===r[t]?.label)?r:n}),i=me(t=>f(n=>{let r=n(e.presentationAtom(t));if(r===null)return null;let i=Ot(t,r),a=m(n.self());return a!==null&&a.environmentId===i.environmentId&&a.environmentLabel===i.environmentLabel&&a.displayUrl===i.displayUrl&&a.isRelayManaged===i.isRelayManaged&&a.isEnabled===i.isEnabled&&a.connectionState===i.connectionState&&a.connectionError===i.connectionError&&a.connectionErrorTraceId===i.connectionErrorTraceId?a:i})),a=f(t=>{let n=[];for(let r of t(e.catalogValueAtom).entries.keys()){let e=t(i(r));e!==null&&n.push(e)}let r=m(t.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}).pipe(n(`environment-connection-summaries`));return{environmentIdsAtom:t,connectedEnvironmentIdsAtom:f(e=>{let n=e(t).filter(t=>e(i(t))?.connectionState===`connected`),r=m(e.self());return r!==null&&r.length===n.length&&n.every((e,t)=>e===r[t])?r:n}),identitiesAtom:r,environmentsAtom:a,machineByIdAtom:f(n=>{let r=new Map(n(t).map(t=>[t,Se(n(e.presentationAtom(t))?.serverConfig??null)])),i=m(n.self());return i!==null&&Et(i,r)?i:r}),pullRequestsSupportedAtom:f(n=>n(t).some(t=>n(e.presentationAtom(t))?.serverConfig?.environment.capabilities.pullRequests===!0))}}var T=Dt({catalogValueAtom:b.catalogValueAtom,stateAtom:b.stateAtom,serverConfigValueAtom:y.configValueAtom}),At=kt({catalogValueAtom:b.catalogValueAtom,presentationAtom:T.presentationAtom}),jt=f(null).pipe(n(`web-environment-presentation:empty`));function Mt(e){let t=(0,w.c)(5),n=g(b.catalogValueAtom),r;t[0]===e?r=t[1]:(r=e===null?jt:T.presentationAtom(e),t[0]=e,t[1]=r);let i=g(r),a;return t[2]!==n.isReady||t[3]!==i?(a={isReady:n.isReady,presentation:i},t[2]=n.isReady,t[3]=i,t[4]=a):a=t[4],a}var Nt={status:`idle`},E=Nt,D=null,O=[],k=0,Pt=new Set;function A(e){E=e;for(let e of Pt)e()}function Ft(e){D?.resolve(e);for(let t of O)t.resolve(e);D=null,O=[]}function It(){return E}function Lt(e){return Pt.add(e),()=>{Pt.delete(e)}}function Rt(){k+=1;let e=!0;return()=>{e&&(e=!1,k=Math.max(0,k-1),k===0&&(Ft(!1),A(Nt)))}}function zt(e,t){if(k!==0)return new Promise(n=>{let r={message:e,variant:t?.variant??`default`,resolve:n};if(D||E.status===`closing`){O.push(r);return}D=r,A({status:`confirming`,message:e,variant:r.variant})})}function Bt(){return E.status!==`idle`||D!==null||O.length>0}function Vt(e){if(E.status!==`confirming`||!D)return;let t=D;D=null,t.resolve(e),A({status:`closing`,message:E.message,variant:E.variant})}function Ht(){if(E.status!==`closing`)return;let e=O.shift();if(!e){A(Nt);return}D=e,A({status:`confirming`,message:e.message,variant:e.variant})}var Ut=`http://www.w3.org/2000/svg`,Wt={archive:[{tag:`rect`,attrs:{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`}},{tag:`path`,attrs:{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`}},{tag:`path`,attrs:{d:`M10 12h4`}}],check:[{tag:`path`,attrs:{d:`M20 6 9 17l-5-5`}}],timer:[{tag:`line`,attrs:{x1:`10`,x2:`14`,y1:`2`,y2:`2`}},{tag:`line`,attrs:{x1:`12`,x2:`15`,y1:`14`,y2:`11`}},{tag:`circle`,attrs:{cx:`12`,cy:`14`,r:`8`}}],"chevron-right":[{tag:`path`,attrs:{d:`m9 19 7-7-7-7`}}],"circle-check":[{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`10`}},{tag:`path`,attrs:{d:`m9 12 2 2 4-4`}}],clock:[{tag:`path`,attrs:{d:`M12 6v6l4 2`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`10`}}],pencil:[{tag:`path`,attrs:{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}},{tag:`path`,attrs:{d:`m15 5 4 4`}}],copy:[{tag:`rect`,attrs:{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}},{tag:`path`,attrs:{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}}],folder:[{tag:`path`,attrs:{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`}}],"git-branch":[{tag:`line`,attrs:{x1:`6`,x2:`6`,y1:`3`,y2:`15`}},{tag:`circle`,attrs:{cx:`18`,cy:`6`,r:`3`}},{tag:`circle`,attrs:{cx:`6`,cy:`18`,r:`3`}},{tag:`path`,attrs:{d:`M18 9a9 9 0 0 1-9 9`}}],hash:[{tag:`line`,attrs:{x1:`4`,x2:`20`,y1:`9`,y2:`9`}},{tag:`line`,attrs:{x1:`4`,x2:`20`,y1:`15`,y2:`15`}},{tag:`line`,attrs:{x1:`10`,x2:`8`,y1:`3`,y2:`21`}},{tag:`line`,attrs:{x1:`16`,x2:`14`,y1:`3`,y2:`21`}}],"mail-open":[{tag:`path`,attrs:{d:`M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z`}},{tag:`path`,attrs:{d:`m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10`}}],"message-square-plus":[{tag:`path`,attrs:{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`}},{tag:`path`,attrs:{d:`M12 8v6`}},{tag:`path`,attrs:{d:`M9 11h6`}}],pin:[{tag:`path`,attrs:{d:`M12 17v5`}},{tag:`path`,attrs:{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`}}],"pin-off":[{tag:`path`,attrs:{d:`M12 17v5`}},{tag:`path`,attrs:{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}},{tag:`path`,attrs:{d:`m2 2 20 20`}},{tag:`path`,attrs:{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`}}],"refresh-cw":[{tag:`path`,attrs:{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}},{tag:`path`,attrs:{d:`M21 3v5h-5`}},{tag:`path`,attrs:{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}},{tag:`path`,attrs:{d:`M8 16H3v5`}}],settings:[{tag:`path`,attrs:{d:`M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`3`}}],"folder-tree":[{tag:`path`,attrs:{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`}},{tag:`path`,attrs:{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`}},{tag:`path`,attrs:{d:`M3 5a2 2 0 0 0 2 2h3`}},{tag:`path`,attrs:{d:`M3 3v13a2 2 0 0 0 2 2h3`}}],trash:[{tag:`path`,attrs:{d:`M3 6h18`}},{tag:`path`,attrs:{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}},{tag:`path`,attrs:{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`}},{tag:`line`,attrs:{x1:`10`,x2:`10`,y1:`11`,y2:`17`}},{tag:`line`,attrs:{x1:`14`,x2:`14`,y1:`11`,y2:`17`}}]};function Gt(e,t){let n=Wt[e];if(!n||typeof document.createElementNS!=`function`)return null;let r=document.createElementNS(Ut,`svg`);r.setAttribute(`xmlns`,Ut),r.setAttribute(`viewBox`,`0 0 24 24`),r.setAttribute(`fill`,`none`),r.setAttribute(`stroke`,`currentColor`),r.setAttribute(`stroke-width`,`2`),r.setAttribute(`stroke-linecap`,`round`),r.setAttribute(`stroke-linejoin`,`round`),r.setAttribute(`class`,t===`destructive`?`size-4.5 shrink-0 sm:size-4`:`size-4.5 shrink-0 text-muted-foreground sm:size-4`);for(let e of n){let t=document.createElementNS(Ut,e.tag);for(let[n,r]of Object.entries(e.attrs))t.setAttribute(n,r);r.appendChild(t)}return r}function Kt(e,t,n){let r=e.getBoundingClientRect(),i=Math.min(Math.max(4,t),Math.max(4,window.innerWidth-r.width-4)),a=Math.min(Math.max(4,n),Math.max(4,window.innerHeight-r.height-4));e.style.left=`${i}px`,e.style.top=`${a}px`}function qt(e,t){if(typeof Node<`u`&&e instanceof Node)return t.some(t=>t.contains(e));if(!e||typeof e!=`object`)return!1;let n=e;for(;n&&typeof n==`object`;){if(t.includes(n))return!0;n=n.parent}return!1}var j=null;function Jt(){return j!==null}function Yt(){j?.(),j=null}function Xt(e,t){return new Promise(n=>{let r=document.activeElement instanceof HTMLElement?document.activeElement:null,i=[],a=[],o=!1,s=!1,c=()=>l(null),l=e=>{if(o)return;o=!0,j===c&&(j=null),document.removeEventListener(`keydown`,u),document.removeEventListener(`pointerdown`,d,!0),document.removeEventListener(`contextmenu`,f,!0);let t=qt(document.activeElement,i);for(let e of i)e.remove();t&&r?.isConnected&&r.focus({preventScroll:!0}),n(e)},u=e=>{e.key===`Escape`&&(e.preventDefault(),l(null))},d=e=>{s&&!qt(e.target,i)&&l(null)},f=e=>{s&&!qt(e.target,i)&&(e.preventDefault(),l(null))},p=e=>{for(;i.length>e;)a.pop()?.setAttribute(`aria-expanded`,`false`),i.pop()?.remove()},ee=(e,t,n,r,o)=>{p(r);let c=document.createElement(`div`);c.className=`dropdown-glass fixed z-[10000] min-w-32 max-w-sm overflow-hidden rounded-lg bg-clip-padding text-popover-foreground outline-none`,c.style.cssText=`position:fixed;z-index:10000;min-width:8rem;max-width:24rem;overflow:hidden;border-radius:var(--radius-lg);background-clip:padding-box;color:var(--contrast-popover-foreground);outline:none;pointer-events:auto;`,c.style.left=`${t}px`,c.style.top=`${n}px`,c.dataset.level=String(r);let u=document.createElement(`div`);u.className=`max-h-[calc(100vh-0.5rem)] min-w-0 max-w-sm overflow-y-auto overflow-x-hidden p-1`,u.style.cssText=`max-height:calc(100vh - 0.5rem);min-width:0;max-width:24rem;overflow-x:hidden;overflow-y:auto;padding:0.25rem;`;for(let t of e){if(t.separatorBefore===!0&&u.children.length>0){let e=document.createElement(`div`);e.className=`mx-2 my-1 h-px bg-border`,e.style.cssText=`height:1px;margin:0.25rem 0.5rem;background:var(--contrast-border);`,e.dataset.contextMenuSeparator=`true`,e.setAttribute(`role`,`separator`),u.appendChild(e)}if(t.header===!0){let e=document.createElement(`div`);e.className=`px-2 py-1.5 font-medium text-muted-foreground text-xs`,e.textContent=t.label,u.appendChild(e);continue}let e=Array.isArray(t.children)&&t.children.length>0,n=!e&&(t.destructive===!0||t.id===`delete`),a=document.createElement(`button`);a.type=`button`;let o=t.disabled===!0;a.disabled=o;let c=`flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-left outline-none transition-colors sm:min-h-7 sm:text-sm min-h-8 text-base`;if(a.className=o?`${c} pointer-events-none cursor-not-allowed text-muted-foreground opacity-64`:n?`${c} text-destructive-foreground hover:bg-destructive/10 hover:text-destructive-foreground`:`${c} text-foreground hover:bg-accent hover:text-accent-foreground`,a.style.cssText=`display:flex;width:100%;min-height:1.75rem;align-items:center;gap:0.5rem;border:0;border-radius:var(--radius-sm);background:transparent;padding:0.25rem 0.5rem;color:var(--contrast-foreground);font-family:var(--font-sans,system-ui,sans-serif);font-size:0.875rem;line-height:1.25rem;text-align:left;cursor:default;`,n&&(a.style.color=`var(--destructive-foreground)`),o&&(a.style.color=`var(--contrast-muted-foreground)`,a.style.opacity=`0.64`,a.style.pointerEvents=`none`),typeof t.checked==`boolean`){a.setAttribute(`role`,`menuitemradio`),a.setAttribute(`aria-checked`,t.checked?`true`:`false`);let e=t.checked?Gt(`check`,`neutral`):null;if(e)a.appendChild(e);else{let e=document.createElement(`span`);e.className=`size-4.5 shrink-0 sm:size-4`,e.style.cssText=`display:inline-block;width:1rem;height:1rem;flex-shrink:0;`,e.setAttribute(`aria-hidden`,`true`),a.appendChild(e)}}else if(typeof t.icon==`string`){let e=Gt(t.icon,n?`destructive`:`neutral`);e&&a.appendChild(e)}let d=document.createElement(`span`);if(d.className=`min-w-0 flex-1 truncate`,d.textContent=t.label,a.appendChild(d),e){a.setAttribute(`aria-haspopup`,`menu`),a.setAttribute(`aria-expanded`,`false`);let e=Gt(`chevron-right`,`neutral`);e&&(e.setAttribute(`class`,`-me-0.5 ms-auto size-4.5 shrink-0 text-muted-foreground opacity-80 sm:size-4`),e.setAttribute(`aria-hidden`,`true`),e.dataset.contextMenuChevron=`true`,a.appendChild(e))}if(!o){let o=!1,c=!1,u=()=>{let e=o||c;a.style.background=e?n?`color-mix(in srgb, var(--destructive) 10%, transparent)`:`var(--accent)`:`transparent`,a.style.color=e?n?`var(--destructive-foreground)`:`var(--contrast-accent-foreground)`:n?`var(--destructive-foreground)`:`var(--contrast-foreground)`};if(a.addEventListener(`mouseenter`,()=>{a.focus({preventScroll:!0}),o=!0,u()}),a.addEventListener(`mouseleave`,()=>{o=!1,u()}),a.addEventListener(`focus`,()=>{c=!0,u()}),a.addEventListener(`blur`,()=>{c=!1,u()}),e){let e=(e=!1)=>{let n=a.getBoundingClientRect(),o=n.right+4,s=n.top;ee(t.children,o,s,r+1,a),a.setAttribute(`aria-expanded`,`true`);let c=i[r+1];if(!c)return;let l=c.getBoundingClientRect();l.right>window.innerWidth&&Kt(c,n.left-l.width-4,n.top),e&&[...c.querySelectorAll(`button`)].find(e=>!e.disabled)?.focus()};a.addEventListener(`mouseenter`,()=>{e()}),a.addEventListener(`click`,t=>{t.preventDefault(),e(!0)})}else a.addEventListener(`mouseenter`,()=>{p(r+1)}),a.addEventListener(`click`,()=>{s&&l(t.id)})}u.appendChild(a)}c.appendChild(u),c.addEventListener(`mouseenter`,()=>{p(r+1)}),document.body.appendChild(c),i[r]=c,a[r]=o,requestAnimationFrame(()=>{Kt(c,t,n)})};document.addEventListener(`keydown`,u),document.addEventListener(`pointerdown`,d,!0),document.addEventListener(`contextmenu`,f,!0),ee(e,t?.x??0,t?.y??0,0),j&&j(),j=c,requestAnimationFrame(()=>{s=!0})})}var Zt=`t3code:client-settings:v1`;function Qt(){return typeof window<`u`}function $t(){return Qt()?je(Zt,Ce):null}function en(e){Qt()&&xe(Zt,e,Ce)}var tn;function nn(){return{dialogs:{pickFolder:async e=>window.desktopBridge?window.desktopBridge.pickFolder(e):null,confirm:async(e,t)=>zt(e,t)??!1},shell:{openExternal:async e=>{if(window.desktopBridge){if(!await window.desktopBridge.openExternal(e))throw Error(`Unable to open link.`);return}window.open(e,`_blank`,`noopener,noreferrer`)},openSystemSettings:async e=>{if(!window.desktopBridge?.openSystemSettings||!await window.desktopBridge.openSystemSettings(e))throw Error(`Unable to open System Settings.`)}},contextMenu:{show:async(e,t)=>window.desktopBridge?window.desktopBridge.showContextMenu(e,t):Xt(e,t),close:async()=>{window.desktopBridge||Yt()}},persistence:{getClientSettings:async()=>window.desktopBridge?window.desktopBridge.getClientSettings():$t(),setClientSettings:async e=>{if(window.desktopBridge)return window.desktopBridge.setClientSettings(e);en(e)}}}}function rn(){return nn()}function an(){if(typeof window<`u`)return tn||(tn=rn(),tn)}function on(){let e=an();if(!e)throw Error(`Local API not found`);return e}var M=`t3code:theme`,sn=`(prefers-color-scheme: dark)`,N={theme:`system`,resolvedTheme:`light`,systemDark:!1,followSystem:!0,appearanceMode:`system`,themeHalves:null};function cn(){return P()}function ln(){return typeof window>`u`?{}:un()}function P(){if(typeof window>`u`)return null;try{return vt(window.localStorage.getItem(S))}catch{return null}}function un(){try{let e=JSON.parse(window.localStorage.getItem(`t3code:theme-halves:v1`)??`null`);if(typeof e!=`object`||!e)return{};let t={};for(let n of[`light`,`dark`]){let r=e[n];typeof r==`string`&&(t[n]=r)}return t}catch{return{}}}function F(e){return`${e?.light??``}|${e?.dark??``}`}var dn=`theme-color`,fn=`meta[name="${dn}"][data-dynamic-theme-color="true"]`,I=class extends Ue()(`ThemeStorageError`,{operation:pe([`read`,`write`]),storageKey:be,theme:c(xt),cause:le()}){get message(){return`Failed to ${this.operation} theme preference for ${this.storageKey}.`}},pn=Ke(I),mn=class extends Ue()(`DesktopThemeSyncError`,{theme:xt,cause:le()}){get message(){return`Failed to sync the ${this.theme} theme to the desktop shell.`}},hn=Ke(mn),L=[],R=null,gn=!0,z=null,B=null,V=null;function H(){gn=!0;for(let e of L)e()}function _n(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(sn).matches}function vn(e){if(typeof window>`u`)return e===`system`;try{let e=window.localStorage.getItem(St);if(e===`true`)return!0;if(e===`false`)return!1}catch{}return e===`system`}function yn(e){return e===`light`||e===`dark`||e===`system`}function U(e){if(typeof window<`u`)try{let e=window.localStorage.getItem(bt);if(yn(e))return e}catch{}return vn(e)?`system`:gt(e)??`light`}function bn(e){if(typeof window<`u`)try{window.localStorage.setItem(bt,e)}catch(e){throw new I({operation:`write`,storageKey:bt,cause:e})}}function xn(){if(typeof window>`u`)return N.theme;let e;try{e=window.localStorage.getItem(M)}catch(e){throw new I({operation:`read`,storageKey:M,cause:e})}return e!==null&&wt(e)?yt(e):N.theme}function Sn(e){if(typeof window<`u`)try{window.localStorage.setItem(M,e),V=null}catch(t){throw new I({operation:`write`,storageKey:M,theme:e,cause:t})}}function W(){if(V!==null)return N.theme;try{return xn()}catch(e){let t=pn(e)?e:new I({operation:`read`,storageKey:M,cause:e});return V=t,console.error(t.message,{operation:t.operation,storageKey:t.storageKey,..._(t)}),N.theme}}function Cn(){let e=document.querySelector(fn);return e||(e=document.createElement(`meta`),e.name=dn,e.setAttribute(`data-dynamic-theme-color`,`true`),document.head.append(e),e)}function wn(e){let t=e?.trim().toLowerCase();return!t||t===`transparent`||t===`rgba(0, 0, 0, 0)`||t===`rgba(0 0 0 / 0)`?null:e?.trim()??null}function Tn(){return document.querySelector(`main[data-slot='sidebar-inset']`)??document.querySelector(`[data-slot='sidebar-inner']`)??document.body}function En(){if(typeof document>`u`||typeof getComputedStyle>`u`)return;let e=getComputedStyle(document.documentElement),t=document.documentElement.dataset.themeId?wn(e.getPropertyValue(`--app-chrome-background`)):null,n=wn(getComputedStyle(Tn()).backgroundColor),r=wn(getComputedStyle(document.body).backgroundColor),i=t??n??r;if(!i)return;document.documentElement.style.backgroundColor=i,document.body.style.backgroundColor=i;let a=document.querySelectorAll(`meta[name="${dn}"]`);if(a.length===0){Cn().setAttribute(`content`,i);return}for(let e of a)e.setAttribute(`content`,i)}function G(e,{suppressTransitions:t=!1,preservePreview:n=!0}={}){if(typeof document>`u`||typeof window>`u`||n&&document.documentElement.dataset?.themeId===`__preview`)return;let r=U(e),i=r===`system`,a=i?_n():!1,o=P();if(B?.theme===e&&B.systemDark===a&&B.followSystem===i&&B.appearanceMode===r&&F(B.themeHalves)===F(o)){On(e,i,r);return}t&&document.documentElement.classList.add(`no-transitions`);let s=mt(e,a,i,r,o);_t(ft(e,o,s),s),document.documentElement.classList.toggle(`dark`,s===`dark`),B={theme:e,systemDark:a,followSystem:i,appearanceMode:r,themeHalves:o},En(),On(e,i,r),t&&(document.documentElement.offsetHeight,requestAnimationFrame(()=>{document.documentElement.classList.remove(`no-transitions`)}))}async function Dn(e,t,n,r,i=P()){try{await e.setTheme(pt(t,n,r,i))}catch(e){throw new mn({theme:t,cause:e})}}function On(e,t,n){if(typeof window>`u`)return;let r=window.desktopBridge,i=P(),a=pt(e,t,n,i);r&&typeof r.setTheme==`function`&&z!==a&&(z=a,Dn(r,e,t,n,i).catch(t=>{let n=hn(t)?t:new mn({theme:e,cause:t});console.error(n.message,{theme:n.theme,..._(n)}),z===a&&(z=null)}))}typeof document<`u`&&typeof window<`u`&&G(W());function kn(){if(typeof window>`u`)return N;if(!gn&&R)return R;gn=!1;let e=W(),t=U(e),n=t===`system`,r=n?_n():!1,i=P(),a=mt(e,r,n,t,i);return R&&R.theme===e&&R.resolvedTheme===a&&R.systemDark===r&&R.followSystem===n&&R.appearanceMode===t&&F(R.themeHalves)===F(i)||(R={theme:e,resolvedTheme:a,systemDark:r,followSystem:n,appearanceMode:t,themeHalves:i}),R}function An(){return N}function jn(){let e=W();U(e)===`system`&&G(e,{suppressTransitions:!0}),H()}function Mn(e){e.key===M?(V=null,G(W(),{suppressTransitions:!0}),H()):e.key===`t3code:theme-follow-system`||e.key===`t3code:theme-appearance-mode`||e.key===`t3code:theme-halves:v1`?(G(W(),{suppressTransitions:!0}),H()):(e.key===`t3code:themes:v1`||e.key===null)&&(e.key===null&&(V=null),dt(),B=null,G(W(),{suppressTransitions:!0}),H())}var Nn=null;function Pn(e){if(typeof window>`u`)return()=>{};if(L.push(e),!Nn){let e=typeof window.matchMedia==`function`?window.matchMedia(sn):null;e?.addEventListener(`change`,jn),window.addEventListener(`storage`,Mn),Nn=()=>{e?.removeEventListener(`change`,jn),window.removeEventListener(`storage`,Mn)}}return()=>{L=L.filter(t=>t!==e),L.length===0&&(Nn?.(),Nn=null)}}function Fn(){let e=(0,C.useSyncExternalStore)(Pn,kn,An),{theme:t,resolvedTheme:n}=e,r=(0,C.useCallback)(e=>{if(typeof window>`u`)return!1;try{bn(U(W()));let t=window.localStorage.getItem(S);window.localStorage.removeItem(S);try{Sn(e)}catch(e){if(t!==null)try{window.localStorage.setItem(S,t)}catch{}throw e}}catch(t){let n=pn(t)?t:new I({operation:`write`,storageKey:M,theme:e,cause:t});return console.error(n.message,{operation:n.operation,storageKey:n.storageKey,theme:e,..._(n)}),!1}return G(e,{suppressTransitions:!0}),H(),!0},[]),i=(0,C.useCallback)(e=>{if(typeof window>`u`)return!1;try{bn(e)}catch(e){let t=pn(e)?e:new I({operation:`write`,storageKey:bt,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,..._(t)}),!1}return V=null,G(W(),{suppressTransitions:!0}),H(),!0},[]),a=(0,C.useCallback)(e=>{let n=U(t),r=e?`system`:n===`system`?gt(t)??`light`:n;return i(r)},[i,t]),o=(0,C.useCallback)((e,t)=>{if(typeof window>`u`)return!1;try{let n={...un()};t===null?delete n[e]:n[e]=t,n.light===void 0&&n.dark===void 0?window.localStorage.removeItem(S):window.localStorage.setItem(S,JSON.stringify(n))}catch(e){let t=new I({operation:`write`,storageKey:S,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,..._(t)}),!1}return G(W(),{suppressTransitions:!0}),H(),!0},[]),s=(0,C.useCallback)(()=>{if(typeof window>`u`)return!1;try{window.localStorage.removeItem(S)}catch(e){let t=new I({operation:`write`,storageKey:S,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,..._(t)}),!1}return G(W(),{suppressTransitions:!0}),H(),!0},[]),c=(0,C.useCallback)(({preservePreview:e=!1}={})=>{typeof window<`u`&&(B=null,G(W(),{suppressTransitions:!0,preservePreview:e}),H())},[]);return(0,C.useEffect)(()=>{G(t)},[e.appearanceMode,t]),{theme:t,setTheme:r,setAppearanceMode:i,setFollowSystem:a,setThemeHalf:o,clearThemeHalves:s,refreshTheme:c,followSystem:e.followSystem,appearanceMode:e.appearanceMode,resolvedTheme:n,themeHalves:e.themeHalves}}var In=we(We(Re)),Ln=ve(e=>{let t=e.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g,(e,t)=>t?e:``);return t=t.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g,(e,t)=>t?e:``),t=t.replace(/("(?:[^"\\]|\\.)*")|,(\s*[}\]])/g,(e,t,n)=>t?e:n??``),In(t).pipe(Ae(e=>e.issue))}),Rn=new ge(Ln,ye());Be().pipe(ne(ye({space:2})));var zn=e=>be.pipe(Oe(e,Rn)),Bn={performance:{profile:`performance`,automaticGitFetchInterval:h(15),providerHealthRefreshInterval:a(1),hostPowerMonitorActiveInterval:h(30),hostPowerMonitorIdleInterval:a(2),idleClientTtl:h(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!1,pauseWhenClientLowPower:!1,pauseWhenOnBattery:!1},balanced:{profile:`balanced`,automaticGitFetchInterval:ue,providerHealthRefreshInterval:oe,hostPowerMonitorActiveInterval:h(30),hostPowerMonitorIdleInterval:a(5),idleClientTtl:h(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!1},"battery-saver":{profile:`battery-saver`,automaticGitFetchInterval:h(0),providerHealthRefreshInterval:a(15),hostPowerMonitorActiveInterval:a(1),hostPowerMonitorIdleInterval:a(10),idleClientTtl:h(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!0}};function K(e){return Bn[e]}function Vn(e){return e.profile===`custom`?e.baseProfile??`balanced`:e.profile}function Hn(e){let t=Vn(e),n=Bn[t],r=e.profile===`custom`?e.overrides:{};return{profile:t,automaticGitFetchInterval:r.automaticGitFetchInterval??n.automaticGitFetchInterval,providerHealthRefreshInterval:r.providerHealthRefreshInterval??n.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:r.hostPowerMonitorActiveInterval??n.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:r.hostPowerMonitorIdleInterval??n.hostPowerMonitorIdleInterval,idleClientTtl:r.idleClientTtl??n.idleClientTtl,pauseWhenHostLocked:r.pauseWhenHostLocked??n.pauseWhenHostLocked,pauseWhenHostLowPower:r.pauseWhenHostLowPower??n.pauseWhenHostLowPower,pauseWhenClientLowPower:r.pauseWhenClientLowPower??n.pauseWhenClientLowPower,pauseWhenOnBattery:r.pauseWhenOnBattery??n.pauseWhenOnBattery}}function q(e,t){return s(e)===s(t)}function Un(e,t){return q(e.automaticGitFetchInterval,t.automaticGitFetchInterval)&&q(e.providerHealthRefreshInterval,t.providerHealthRefreshInterval)&&q(e.hostPowerMonitorActiveInterval,t.hostPowerMonitorActiveInterval)&&q(e.hostPowerMonitorIdleInterval,t.hostPowerMonitorIdleInterval)&&q(e.idleClientTtl,t.idleClientTtl)&&e.pauseWhenHostLocked===t.pauseWhenHostLocked&&e.pauseWhenHostLowPower===t.pauseWhenHostLowPower&&e.pauseWhenClientLowPower===t.pauseWhenClientLowPower&&e.pauseWhenOnBattery===t.pauseWhenOnBattery}function Wn(e){if(e.profile!==`custom`)return{schemaVersion:1,profile:e.profile,overrides:{}};let t=Hn(e),n=[Vn(e),`balanced`,`performance`,`battery-saver`];for(let e of n)if(Un(t,Bn[e]))return{schemaVersion:1,profile:e,overrides:{}};let r=Vn(e),i=Bn[r];return{schemaVersion:1,profile:`custom`,baseProfile:r,overrides:{...q(t.automaticGitFetchInterval,i.automaticGitFetchInterval)?{}:{automaticGitFetchInterval:t.automaticGitFetchInterval},...q(t.providerHealthRefreshInterval,i.providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:t.providerHealthRefreshInterval},...q(t.hostPowerMonitorActiveInterval,i.hostPowerMonitorActiveInterval)?{}:{hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval},...q(t.hostPowerMonitorIdleInterval,i.hostPowerMonitorIdleInterval)?{}:{hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval},...q(t.idleClientTtl,i.idleClientTtl)?{}:{idleClientTtl:t.idleClientTtl},...t.pauseWhenHostLocked===i.pauseWhenHostLocked?{}:{pauseWhenHostLocked:t.pauseWhenHostLocked},...t.pauseWhenHostLowPower===i.pauseWhenHostLowPower?{}:{pauseWhenHostLowPower:t.pauseWhenHostLowPower},...t.pauseWhenClientLowPower===i.pauseWhenClientLowPower?{}:{pauseWhenClientLowPower:t.pauseWhenClientLowPower},...t.pauseWhenOnBattery===i.pauseWhenOnBattery?{}:{pauseWhenOnBattery:t.pauseWhenOnBattery}}}}function Gn(e){let t={schemaVersion:1,profile:o,overrides:{}},n=e.backgroundActivity.profile===t.profile&&e.backgroundActivity.baseProfile===void 0&&Object.keys(e.backgroundActivity.overrides).length===0,r=e.backgroundActivityProfile,i=r!==`balanced`||s(e.automaticGitFetchInterval)!==s(ue)||s(e.providerHealthRefreshInterval)!==s(oe);return Hn(n&&i?{schemaVersion:1,profile:s(e.automaticGitFetchInterval)===s(K(r).automaticGitFetchInterval)&&s(e.providerHealthRefreshInterval)===s(K(r).providerHealthRefreshInterval)?r:`custom`,baseProfile:r,overrides:{...s(e.automaticGitFetchInterval)===s(K(r).automaticGitFetchInterval)?{}:{automaticGitFetchInterval:e.automaticGitFetchInterval},...s(e.providerHealthRefreshInterval)===s(K(r).providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:e.providerHealthRefreshInterval}}}:e.backgroundActivity)}function Kn(e){let t=Gn(e);return Wn({schemaVersion:1,profile:`custom`,baseProfile:t.profile,overrides:{automaticGitFetchInterval:t.automaticGitFetchInterval,providerHealthRefreshInterval:t.providerHealthRefreshInterval,hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval,hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval,idleClientTtl:t.idleClientTtl,pauseWhenHostLocked:t.pauseWhenHostLocked,pauseWhenHostLowPower:t.pauseWhenHostLowPower,pauseWhenClientLowPower:t.pauseWhenClientLowPower,pauseWhenOnBattery:t.pauseWhenOnBattery}})}var qn=zn(ae);Fe(qn);function Jn(e,t){let n=e.providerInstances[t.instanceId];return n===void 0?ce(t.instanceId):fe(n)}var Yn=[`codex`,`claudeAgent`,`cursor`,`grok`,`muse`,`pi`,`opencode`,`antigravity`].map(e=>Ee.make(e));function Xn(e,t,n){let r=[...Yn.map(e=>[ze(e),e]),...n?.includeConfiguredInstances===!0?Object.entries(e).flatMap(([e,t])=>Yn.includes(t.driver)?[[ke.make(e),t.driver]]:[]):[]].find(([e,n])=>t(e,n));if(r===void 0)return null;let[a,o]=r,s=n?.defaultModelSelection,c=e[a]?.config;return s?.instanceId===a&&i(c?.customModels).some(e=>e.slug===s.model)?s:{instanceId:a,model:Ne[o]??He[o]??`gpt-6-luna`}}function Zn(e,t,n){let r=e.sourceControlWriterModelSelection;if(!r||!p(e,n,r.instanceId))return e.textGenerationModelSelection;if(t===void 0)return r;let i=t.find(e=>e.instanceId===r.instanceId);return i?.enabled===!0&&Le(i)&&Ve(i)?r:e.textGenerationModelSelection}function Qn(e,t,n){let r=e.reviewGuideModelSelection;if(r&&p(e,n,r.instanceId)){let e=t?.find(e=>e.instanceId===r.instanceId);if(t===void 0||e?.enabled===!0&&Le(e)&&Ve(e))return r}return Zn(e,t,n)}function $n(e,t={}){return{favorites:e.favorites??t.favorites??[],providerModelPreferences:e.providerModelPreferences??t.providerModelPreferences??{}}}function er(e,t){let n=e.favorites===null&&(t.favorites?.length??0)>0?t.favorites:void 0,r=e.providerModelPreferences===null&&Object.keys(t.providerModelPreferences??{}).length>0?t.providerModelPreferences:void 0;return n===void 0&&r===void 0?null:{migrateModelPreferences:{...n===void 0?{}:{favorites:n},...r===void 0?{}:{providerModelPreferences:r}}}}var tr=new Set([`continueThreadsAfterServerUpdate`,`sidebarAutoSettleAfterDays`,`sidebarAutoSettleOnMerge`,`autoResumeLimitedThreads`,`snoozeLimitedThreads`,`newWorktreesStartFromOrigin`,`sourceControlWritingStyle`,`textGenerationModelSelection`]);function nr(e){let t={},n={};for(let[r,i]of Object.entries(e))tr.has(r)?t[r]=i:n[r]=i;return{sharedPatch:t,localPatch:n}}function rr(e,t,n,r=n,i=!1){let a=e.textGenerationModelSelection?.instanceId??r?.textGenerationModelSelection.instanceId;return!i&&e.textGenerationModelSelection&&(!n||a!==void 0&&(r?.providerInstances[a]?.driver??a)!==(n.providerInstances[a]?.driver??a)||!Jn(n,{...n.textGenerationModelSelection,...e.textGenerationModelSelection}))&&(e=re(e,[`textGenerationModelSelection`])),t?.threadRestartContinuation===!0?e:re(e,[`continueThreadsAfterServerUpdate`])}function ir(e){return e.connection.phase===`connected`&&e.serverConfig?.environment.capabilities.threadAutoSettlement===!0}function ar(e){let t=e.atom(u(Ye.pipe(Pe(e=>Te(e.state)))),{initialValue:Qe});return{stateAtom:t,stateValueAtom:f(e=>d(Ie(e(t)),()=>Qe)).pipe(n(`relay-environment-discovery-value`)),refresh:qe(e,{label:`relay-environment-discovery:refresh`,concurrency:{mode:`singleFlight`,key:()=>`refresh`},execute:e=>Ye.pipe(de(e=>e.refresh))})}}var or=ar(nt);function sr(e,t){return{...t,environmentId:e,label:t.entry.target.label,displayUrl:rt(t.entry),relayManaged:Ze(t.entry)}}function cr(){let e=(0,w.c)(7),t=g(b.catalogValueAtom),n=g(b.networkStatusValueAtom),r=g(T.presentationsAtom),i;e[0]===r?i=e[1]:(i=[...r.entries()].map(lr),e[0]=r,e[1]=i);let a=i,o;return e[2]!==t.isReady||e[3]!==a||e[4]!==n||e[5]!==r?(o={isReady:t.isReady,networkStatus:n,environments:a,presentationById:r},e[2]=t.isReady,e[3]=a,e[4]=n,e[5]=r,e[6]=o):o=e[6],o}function lr(e){let[t,n]=e;return sr(t,n)}function ur(){return g(it)}function dr(e){let t=(0,w.c)(3),{presentation:n}=Mt(e),r;return t[0]!==e||t[1]!==n?(r=e===null||n===null?null:sr(e,n),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function fr(){return dr(ur())}function pr(e){let t=(0,w.c)(2),n=ct(e),r;return t[0]===n?r=t[1]:(r=_e(n)?n.value.httpBaseUrl:null,t[0]=n,t[1]=r),r}function mr(){return g(or.stateValueAtom)}function hr(){return g(At.environmentIdsAtom)}function gr(){return g(At.identitiesAtom)}function _r(){return g(At.pullRequestsSupportedAtom)}var vr=`[CLIENT_SETTINGS]`,yr=new Set,br=new Set,xr=l,J=`pending`,Y=null,Sr=0,Cr=Promise.resolve(),wr=0;function Tr(){for(let e of yr)e()}function Er(){for(let e of br)e()}function X(){return xr}function Dr(e){xr=e,Tr()}function Or(e){J!==e&&(J=e,Er())}function kr(e){return yr.add(e),Z().catch(()=>void 0),()=>{yr.delete(e)}}function Ar(){return J===`ready`}function jr(){return J}function Mr(e){return br.add(e),Z().catch(()=>void 0),()=>{br.delete(e)}}async function Z(){if(J===`ready`)return;if(Y)return Y;let e=Sr;Or(J===`failed`||J===`retrying`?`retrying`:`pending`);let t=(async()=>{try{let t=await on().persistence.getClientSettings();if(e!==Sr)return;t&&Dr({...l,...t}),Or(`ready`)}catch(t){throw e===Sr&&Or(`failed`),console.error(`${vr} hydrate failed`,{operation:`hydrate`,..._(t)}),t}})().finally(()=>{Y===t&&(Y=null)});return Y=t,Y}var Nr=e=>on().persistence.setClientSettings(e);function Pr(e){let t=Cr.then(e);return Cr=t.then(()=>void 0,()=>void 0),t}function Fr(e,t=Nr){let n=J!==`ready`||wr>0;return n?wr+=1:Dr({...X(),...e}),Pr(async()=>{if(n)try{J!==`ready`&&await Z(),Dr({...X(),...e})}finally{--wr}await t(X())}).catch(e=>{console.error(`${vr} persist failed`,{operation:`persist`,..._(e)})})}async function Ir(e,t=Nr){return Pr(async()=>{for(J!==`ready`&&await Z();;){let n=X(),r=e(n);if(await t(r),X()===n)return Dr(r),r}})}var Lr=new Set(te(ae.fields));function Rr(e){let t={},n={};for(let[r,i]of Object.entries(e))Lr.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function zr(){return X()}function Br(){return Z()}function Vr(){return(0,C.useSyncExternalStore)(Mr,Ar,Hr)}function Hr(){return!1}function Ur(){return(0,C.useSyncExternalStore)(Mr,jr,Wr)}function Wr(){return`pending`}function Q(){return(0,C.useSyncExternalStore)(kr,X,Gr)}function Gr(){return l}function Kr(e,t){return{...t,...e,...$n(e,t)}}var qr=new Set;function $(e,t){let n=(0,w.c)(8),r=Q(),i=Vr(),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},n[0]=a):a=n[0];let o=x(y.updateSettings,a),s,c;n[1]!==r||n[2]!==e||n[3]!==i||n[4]!==o||n[5]!==t?(s=()=>{if(!e||!t||!i||qr.has(e))return;let n=er(t,r);n&&(qr.add(e),o({environmentId:e,input:{patch:n}}).finally(()=>qr.delete(e)))},c=[r,e,i,o,t],n[1]=r,n[2]=e,n[3]=i,n[4]=o,n[5]=t,n[6]=s,n[7]=c):(s=n[6],c=n[7]),(0,C.useEffect)(s,c)}function Jr(e,t){let n=(0,w.c)(6),r=Q(),i;n[0]!==r||n[1]!==e?(i=Kr(e,r),n[0]=r,n[1]=e,n[2]=i):i=n[2];let a=i,o;return n[3]!==a||n[4]!==t?(o=t?t(a):a,n[3]=a,n[4]=t,n[5]=o):o=n[5],o}function Yr(e){let t=(0,w.c)(3),n=Q(),r;return t[0]!==e||t[1]!==n?(r=e?e(n):n,t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function Xr(e){return e.settingsHydrated?e.paletteThemeActive&&!e.paletteThemeAllowsArtwork&&e.mode===`artwork`?`pill`:e.mode:`none`}function Zr(){let e=(0,w.c)(7),t=Vr(),n=Q().environmentIdentificationMode,{resolvedTheme:r,theme:i,themeHalves:a}=Fn(),o=(0,C.useSyncExternalStore)(ut,Tt,Qr),s;if(e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==t||e[4]!==i||e[5]!==a){let c=ft(i,a,r),l=Ct(c);s=Xr({mode:n,settingsHydrated:t,paletteThemeActive:o!==null||l!==null,paletteThemeAllowsArtwork:o??ht(c)}),e[0]=n,e[1]=o,e[2]=r,e[3]=t,e[4]=i,e[5]=a,e[6]=s}else s=e[6];return s}function Qr(){return null}async function $r(e,t){return(e.favorites===null||e.providerModelPreferences===null)&&await Br(),{...er(e,zr()),...t}}function ei(e){let t=(0,w.c)(6),n;t[0]===e?n=t[1]:(n=e?y.settingsValueAtom(e):ni,t[0]=e,t[1]=n);let r=g(n),i=x(y.updateSettings,`model preferences update`),a;return t[2]!==e||t[3]!==i||t[4]!==r?(a=async t=>{if(!e||!r)return;let n;try{n=await $r(r,t)}catch{v.add({type:`error`,title:`Model preferences not saved`,description:`Could not load saved model preferences. Try again.`});return}return i({environmentId:e,input:{patch:n}})},t[2]=e,t[3]=i,t[4]=r,t[5]=a):a=t[5],a}function ti(e){let t=(0,C.use)(ee),n=(0,C.useRef)(new Map),r=ei(e);return(0,C.useCallback)(async(i,a)=>{if(!e)return;let o=y.settingsValueAtom(e),s=t.get(o);if(!s)return;if(s.favorites===null)try{await Br()}catch{v.add({type:`error`,title:`Favorites not saved`,description:`Could not load saved model preferences. Try again.`});return}let c=t.get(o)??s,l=$n(c,zr()).favorites,u=JSON.stringify([e,i,a]),d=n.current.get(u),f={favorite:!(d&&(d.pending||d.settings.favorites===c.favorites)?d.favorite:l.some(e=>e.provider===i&&e.model===a)),settings:c,pending:!0};n.current.set(u,f);try{let e=await r({setModelFavorites:[{provider:i,model:a,favorite:f.favorite}]});e&&De(e)&&t.get(o)?.favorites===c.favorites&&(f.pending=!1)}finally{f.pending&&n.current.get(u)===f&&(d&&!d.pending&&t.get(o)?.favorites===d.settings.favorites?n.current.set(u,d):n.current.delete(u))}},[e,t,r])}var ni=f(null);function ri(e){let t=(0,w.c)(5),n;t[0]===e?n=t[1]:(n=e?y.settingsValueAtom(e):ni,t[0]=e,t[1]=n);let r=g(n),i=Q();$(e,r);let a=r??Me,o;return t[2]!==i||t[3]!==a?(o=$n(a,i),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function ii(e,t){let n=(0,w.c)(2),r;n[0]===e?r=n[1]:(r=y.settingsValueAtom(e),n[0]=e,n[1]=r);let i=g(r);return $(e,i),Jr(i??Me,t)}function ai(e){let t=(0,w.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=x(y.mutateProviderInstance,n),i;return t[1]!==e||t[2]!==r?(i=(t,n)=>r({environmentId:e,input:{patch:n===void 0?{}:n,providerInstanceMutation:t}}),t[1]=e,t[2]=r,t[3]=i):i=t[3],i}function oi(e){let t=fr(),n=g(at);return $(t?.environmentId??null,t?.serverConfig?.settings??null),Jr(n,e)}var si=`This setting is saved on a server, and the hosted app is not anchored to one. Change it from the desktop app or from the server's own address.`;function ci(){let e=(0,w.c)(2),t=fr(),n;return e[0]===t?n=e[1]:(n=t!==null||!tt(),e[0]=t,e[1]=n),n}function li(e){let t=(0,w.c)(3),n=e!==void 0&&e,{environments:r}=cr(),i;return t[0]!==r||t[1]!==n?(i=f(e=>r.filter(ir).flatMap(t=>{let r=e(lt.sessionStateAtom(t.environmentId));if(n&&r._tag===`Initial`)return[t.environmentId];let i=r._tag===`Failure`?null:m(Ie(r));return i!==null&&se(i,`settings:write`)?[t.environmentId]:[]})),t[0]=r,t[1]=n,t[2]=i):i=t[2],g(i)}function ui(e){let t=(0,w.c)(10);ot(e,r);let n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`server settings update`,reportFailure:!1},t[0]=n):n=t[0];let i=x(y.updateSettings,n),{environments:a}=cr(),o;t[1]!==a||t[2]!==i?(o=async e=>{let t=await i(e);if(t._tag===`Failure`&&!Je(t)){let n=a.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,r=Xe(t);v.add({type:`error`,title:`Setting not saved`,description:`Could not save on ${n}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`})}return t},t[1]=a,t[2]=i,t[3]=o):o=t[3];let s=o,c=li(!0),l;return t[4]!==e||t[5]!==a||t[6]!==i||t[7]!==s||t[8]!==c?(l=t=>{let{serverPatch:n,clientPatch:r}=Rr(t),o=e===null||he(n).every(t=>st(e,t));if(Object.keys(n).length>0&&!o&&v.add({type:`warning`,title:`Setting not saved`,description:`This connection lacks permission to change settings on ${a.find(t=>t.environmentId===e)?.label??`the selected environment`}.`}),Object.keys(n).length>0&&o){let{sharedPatch:t,localPatch:r}=nr(n),o=hi;if(Object.keys(r).length>0&&(e?s({environmentId:e,input:{patch:r}}):o()),Object.keys(t).length>0){let n=a.find(t=>t.environmentId===e)?.serverConfig?.settings,r=new Set(c);e&&r.add(e);let s=[],l=[];for(let i of r){let r=a.find(e=>e.environmentId===i),o=rr(t,r?.serverConfig?.environment.capabilities,r?.serverConfig?.settings,n,i===e);if(Object.keys(o).length!==0){if(ie.get(lt.sessionStateAtom(i))._tag!==`Initial`&&!he(t).every(e=>st(i,e))){l.push(r?.label??i);continue}s.push({environmentId:i,input:{patch:o}})}}s.length===0?o(l.length>0?`This connection lacks permission to change settings on ${l.join(`, `)}.`:r.size>0?`Update older servers to save this setting.`:void 0):Promise.all(s.map(async e=>({label:a.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,result:await i(e)}))).then(di)}}Object.keys(r).length>0&&Fr(r)},t[4]=e,t[5]=a,t[6]=i,t[7]=s,t[8]=c,t[9]=l):l=t[9],l}function di(e){let t=e.flatMap(mi);if(t.length===0)return;let n=e.filter(pi).map(fi);v.add({type:`error`,title:n.length>0?`Setting saved on some environments`:`Setting not saved`,description:[...t,...n.length>0?[`Saved on ${n.join(`, `)}.`]:[]].join(`
2
- `)})}function fi(e){let{label:t}=e;return t}function pi(e){let{result:t}=e;return t._tag===`Success`}function mi(e){let{label:t,result:n}=e;if(n._tag!==`Failure`||Je(n))return[];let r=Xe(n);return[`Could not save on ${t}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`]}function hi(e){let t=e===void 0?si:e;return v.add({type:`warning`,title:`Setting not saved`,description:t})}function gi(e){return ui(e)}function _i(){return ui(fr()?.environmentId??null)}function vi(){return yi}function yi(e){return Fr(e)}export{Rt as $,mr as A,zn as B,pr as C,fr as D,cr as E,Vn as F,En as G,cn as H,K as I,an as J,Fn as K,Wn as L,Xn as M,Qn as N,ur as O,Zn as P,It as Q,Kn as R,dr as S,hr as T,ln as U,U as V,xn as W,Ht as X,Jt as Y,Bt as Z,ti as _,Fr as a,gi as b,Vr as c,ri as d,zt as et,ii as f,ci as g,oi as h,Kr as i,Mt as it,or as j,_r as k,Ur as l,ai as m,Br as n,Lt as nt,Ir as o,$ as p,on as q,zr as r,T as rt,Yr as s,si as t,Vt as tt,Zr as u,vi as v,gr as w,_i as x,ei as y,Gn as z};
3
- //# sourceMappingURL=useSettings-CckatJFa.js.map