@p4code/cli 0.8.22 → 0.8.23

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 (372) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-CfXLOppT.mjs → binCli-DzKk3bdm.mjs} +747 -492
  3. package/dist/client/.vite/manifest.json +2255 -2213
  4. package/dist/client/assets/AlertDialogRoot-Cc8kVCUa.js +2 -0
  5. package/dist/client/assets/{AnimatedHeight-DcrvwWWb.js → AnimatedHeight-wZzihILs.js} +2 -2
  6. package/dist/client/assets/{AuthSurfaceShell-CFBHG1UK.js → AuthSurfaceShell-DJcUG_EN.js} +2 -2
  7. package/dist/client/assets/{CSPContext-BP4s0CJv.js → CSPContext-BjqtxKhA.js} +2 -2
  8. package/dist/client/assets/ChatGptUsageButton-BDCO7XMy.js +2 -0
  9. package/dist/client/assets/{ChatMarkdown-C6I8N1IH.js → ChatMarkdown-CDno8Ayh.js} +12 -12
  10. package/dist/client/assets/CheckboxIndicator-CuZi7Ixm.js +2 -0
  11. package/dist/client/assets/ClippedText-DPgP0ObI.js +2 -0
  12. package/dist/client/assets/CodexSetupSection.logic-BB9JxUR1.js +2 -0
  13. package/dist/client/assets/ComboboxClear-zheEdyAa.js +2 -0
  14. package/dist/client/assets/ComboboxGroupLabel-BxCdL7I3.js +2 -0
  15. package/dist/client/assets/{CommandBlock-B5S9so33.js → CommandBlock-DQi0VdAG.js} +2 -2
  16. package/dist/client/assets/{ComposerPromptEditor-C7ZRV_6P.js → ComposerPromptEditor-DCjk2_nI.js} +44 -44
  17. package/dist/client/assets/CompositeRoot-Bg5KGYGp.js +2 -0
  18. package/dist/client/assets/{ConnectionStatusDot-Bz5Ps6Bm.js → ConnectionStatusDot-Bx8Imvqc.js} +2 -2
  19. package/dist/client/assets/DesignPageTile-ClF5Va3g.js +2 -0
  20. package/dist/client/assets/DevicePanel-D192Fic3.js +2 -0
  21. package/dist/client/assets/{DeviceSetup-Br_kHy6n.js → DeviceSetup-D9F7F9pV.js} +2 -2
  22. package/dist/client/assets/DialogTitle-CVP748Gv.js +2 -0
  23. package/dist/client/assets/{DiffCommentAnnotation-FcSG-wBG.js → DiffCommentAnnotation-mA-RZ8Su.js} +3 -3
  24. package/dist/client/assets/{DiffFileTree-IIdU6CqP.js → DiffFileTree-CaPQB8J4.js} +2 -2
  25. package/dist/client/assets/DiffPanel-3G1enpU9.js +2 -0
  26. package/dist/client/assets/{DiffWorkerPoolProvider-C_VbNhAr.js → DiffWorkerPoolProvider-BOInEqDW.js} +3 -3
  27. package/dist/client/assets/EmbeddedDesign-D97sS_-D.js +19 -0
  28. package/dist/client/assets/EmbeddedDesign-DYfQOv0y.css +1 -0
  29. package/dist/client/assets/{EnvironmentMachineIcon-b_kKEeAf.js → EnvironmentMachineIcon-B2v_GWgB.js} +2 -2
  30. package/dist/client/assets/{ExpandableText-anFaXhXF.js → ExpandableText-fJVIbCvG.js} +3 -3
  31. package/dist/client/assets/{FieldControl-w2_zp1DT.js → FieldControl-mq4xNgmP.js} +2 -2
  32. package/dist/client/assets/{FileDiff-B-9keGlb.js → FileDiff-DLYKd8S8.js} +2 -2
  33. package/dist/client/assets/{FilePreviewPanel-C1f_ibuL.js → FilePreviewPanel-BCtCBzc7.js} +10 -10
  34. package/dist/client/assets/{FoldedSettingsSection-gN3w1sSZ.js → FoldedSettingsSection-BIr-uvTu.js} +2 -2
  35. package/dist/client/assets/{FormContext-BWWAKTFF.js → FormContext-Vtmj_mkP.js} +2 -2
  36. package/dist/client/assets/{Icons-DzTpHpn1.js → Icons-C0Zjws-3.js} +2 -2
  37. package/dist/client/assets/Input-B0ah2lnC.js +2 -0
  38. package/dist/client/assets/{KeybindingsSettings.logic-D8LAdmvB.js → KeybindingsSettings.logic-D-GClV-c.js} +2 -2
  39. package/dist/client/assets/{NoProjectsHero-CtzChQ7p.js → NoProjectsHero-Dj3URl4e.js} +2 -2
  40. package/dist/client/assets/{P4ConnectAccountPages-B3SBsg6B.js → P4ConnectAccountPages-CFPHk3YU.js} +2 -2
  41. package/dist/client/assets/{P4ConnectSidebarSignIn-DKcaDv93.js → P4ConnectSidebarSignIn-BMrzp8XI.js} +2 -2
  42. package/dist/client/assets/PanelLayoutControls-C1Bf67DQ.js +216 -0
  43. package/dist/client/assets/{PierreEntryIcon-CjZ8gyJq.js → PierreEntryIcon--dw21QmY.js} +2 -2
  44. package/dist/client/assets/PopoverHandle-BT83XTq9.js +2 -0
  45. package/dist/client/assets/PreviewPanel-DCqFsoQM.js +2 -0
  46. package/dist/client/assets/ProjectDefaultsSettings-B4srG1Zj.js +2 -0
  47. package/dist/client/assets/{ProjectFavicon-va5UQPLo.js → ProjectFavicon--HkFaTb7.js} +3 -3
  48. package/dist/client/assets/{ProjectIconPickerDialog-CN2gK_o7.js → ProjectIconPickerDialog-Bl6Uid40.js} +2 -2
  49. package/dist/client/assets/{ProjectMonogram-B3Dkc8yq.js → ProjectMonogram-BUy_N1of.js} +2 -2
  50. package/dist/client/assets/{ProviderAuthTerminal-BSIgib7h.js → ProviderAuthTerminal-njw98kWo.js} +2 -2
  51. package/dist/client/assets/ProviderModelPicker-DBjdgQjr.js +2 -0
  52. package/dist/client/assets/{ProviderSettingsForm-D6zHGIeN.js → ProviderSettingsForm-_kCwzsZ5.js} +2 -2
  53. package/dist/client/assets/PullRequestCodeTab-2OTuKeLP.js +6 -0
  54. package/dist/client/assets/{ReadOnlySourcePreview-BSCVTdYH.js → ReadOnlySourcePreview-BfF8Dhuk.js} +2 -2
  55. package/dist/client/assets/RenderErrorBoundary-CReszKsZ.js +2 -0
  56. package/dist/client/assets/ScheduledTasksSettings-BJ6fD98R.js +4 -0
  57. package/dist/client/assets/{ScopedSwitch-D3fAHI1-.js → ScopedSwitch-QH2iiv6j.js} +2 -2
  58. package/dist/client/assets/{ScrollAreaCorner-CNzfnpwK.js → ScrollAreaCorner-3gSiyg8H.js} +2 -2
  59. package/dist/client/assets/{SecretInput-D7hYUoFA.js → SecretInput-itt3KL-b.js} +2 -2
  60. package/dist/client/assets/SelectScrollUpArrow-D_o_f6Fh.js +2 -0
  61. package/dist/client/assets/{SettingsPanels-6SOZMWhg.js → SettingsPanels-BRQsxDAj.js} +7 -7
  62. package/dist/client/assets/{SettingsPanels.logic-CMErdEeV.js → SettingsPanels.logic-DADnLbJa.js} +2 -2
  63. package/dist/client/assets/{SettingsScopeNotice-CyzbYUPJ.js → SettingsScopeNotice-D8WXgfaz.js} +2 -2
  64. package/dist/client/assets/{ThemeEditorPanel-vZ4MSCBx.js → ThemeEditorPanel-UEzfMVAc.js} +3 -3
  65. package/dist/client/assets/ThreadTerminalDrawer-Do19kCZu.js +5 -0
  66. package/dist/client/assets/TooltipViewport-DJ2VRKCt.js +2 -0
  67. package/dist/client/assets/{Virtualizer-CoK0zXAG.js → Virtualizer-BSpDafyf.js} +2 -2
  68. package/dist/client/assets/{WorkspaceBreadcrumb-qAYKTgm8.js → WorkspaceBreadcrumb-B5ZV6VNj.js} +2 -2
  69. package/dist/client/assets/{WorkspacePageContainer-D6i--Hwz.js → WorkspacePageContainer-BTN44jG6.js} +2 -2
  70. package/dist/client/assets/{WorkspacePageHeader-covOFYhv.js → WorkspacePageHeader-BaCxaW-R.js} +2 -2
  71. package/dist/client/assets/_chat-D4YotsBW.js +45 -0
  72. package/dist/client/assets/_chat.design-BPvdgNpo.js +2 -0
  73. package/dist/client/assets/{_chat.index-C3PnT6ae.js → _chat.index-Z_VqAv7I.js} +2 -2
  74. package/dist/client/assets/{_chat.new-CxErZ7CC.js → _chat.new-DOi-AUHb.js} +3 -3
  75. package/dist/client/assets/_chat.pull-requests-6QyjmUBZ.js +2 -0
  76. package/dist/client/assets/{abnfDiagram-VCTEODGH-CWxKS58m.js → abnfDiagram-VCTEODGH--jeYDB6y.js} +2 -2
  77. package/dist/client/assets/{alert-DsgAHDNi.js → alert-CdZT7d18.js} +2 -2
  78. package/dist/client/assets/architecture-7GRP2DOG-5FKzTtFB.js +1 -0
  79. package/dist/client/assets/{architectureDiagram-5GKGNRK7-kc6KNP-H.js → architectureDiagram-5GKGNRK7-CZT297Q4.js} +2 -2
  80. package/dist/client/assets/assets-CJFG5Oow.js +2 -0
  81. package/dist/client/assets/{blockDiagram-I7D4REHJ-CFJYOAbd.js → blockDiagram-I7D4REHJ-EkNtHyvf.js} +2 -2
  82. package/dist/client/assets/{browserHistoryStore-DjDw15jq.js → browserHistoryStore-DO5WuJ8O.js} +2 -2
  83. package/dist/client/assets/{browserLinkTarget-Br8BmA6w.js → browserLinkTarget-CJGymzWC.js} +2 -2
  84. package/dist/client/assets/{c4Diagram-7LVT6UL2-Sxaodxxv.js → c4Diagram-7LVT6UL2-CWpB4Da8.js} +2 -2
  85. package/dist/client/assets/channel-mtMr1s7n.js +2 -0
  86. package/dist/client/assets/{checkbox-D33R1soh.js → checkbox-Q0bv8RvC.js} +2 -2
  87. package/dist/client/assets/{chunk-4HAMMTFA-CxocYFD0.js → chunk-4HAMMTFA-DmxkShmg.js} +2 -2
  88. package/dist/client/assets/{chunk-75Z2AOVW-CBCO5Noa.js → chunk-75Z2AOVW-DR0PpYOm.js} +2 -2
  89. package/dist/client/assets/{chunk-DU6HZSFF-CEaklbmE.js → chunk-DU6HZSFF-BO8x-KoS.js} +2 -2
  90. package/dist/client/assets/{chunk-F27PBJKO-Iw-0qjF9.js → chunk-F27PBJKO-Bj6z3Mgi.js} +2 -2
  91. package/dist/client/assets/{chunk-GMAD6QVW-CbDVrypn.js → chunk-GMAD6QVW-DDPfmhbi.js} +2 -2
  92. package/dist/client/assets/{chunk-GVQU2GXP-BEqmpgLD.js → chunk-GVQU2GXP-Dt2y3Ljq.js} +2 -2
  93. package/dist/client/assets/{chunk-IMKFNOWR-bgZmQWS5.js → chunk-IMKFNOWR-ulVnFkwU.js} +2 -2
  94. package/dist/client/assets/{chunk-L3NEJ4N5-LW_IXl13.js → chunk-L3NEJ4N5-Bq_d7JXK.js} +2 -2
  95. package/dist/client/assets/{chunk-OSK3NFVY-DvGdSD7J.js → chunk-OSK3NFVY-D3zjZoqS.js} +2 -2
  96. package/dist/client/assets/{chunk-P2QGCYS3-BAXEcEik.js → chunk-P2QGCYS3-BO8zGK2Q.js} +2 -2
  97. package/dist/client/assets/{chunk-POPQ4Y6H-yM2kH99r.js → chunk-POPQ4Y6H-gzBrIuwg.js} +2 -2
  98. package/dist/client/assets/{chunk-PWAF6VOD-B19ZyrVH.js → chunk-PWAF6VOD-D5kNvXnl.js} +2 -2
  99. package/dist/client/assets/{chunk-SHT3W25Y-BhcwXJOc.js → chunk-SHT3W25Y-BUoRhLSC.js} +2 -2
  100. package/dist/client/assets/{chunk-SVP7TREG-B9xbRF9R.js → chunk-SVP7TREG-Bjv2VnZc.js} +2 -2
  101. package/dist/client/assets/{chunk-TICWLB2K-D_VEGQbw.js → chunk-TICWLB2K-DAdtg5Kx.js} +2 -2
  102. package/dist/client/assets/classDiagram-ZZMXUADV-B1oFCLrU.js +2 -0
  103. package/dist/client/assets/classDiagram-v2-VYDZK3BY-B1oFCLrU.js +2 -0
  104. package/dist/client/assets/{color-picker-D3b0sEoy.js → color-picker-BWZhsiZJ.js} +2 -2
  105. package/dist/client/assets/{combobox-DzFRsaks.js → combobox-BdGKdc6i.js} +2 -2
  106. package/dist/client/assets/{command-IDMJ6pXc.js → command-CIj8Rufv.js} +2 -2
  107. package/dist/client/assets/composer-logic-LXlav2Vb.js +6 -0
  108. package/dist/client/assets/{composerDraftUploads-Qq0xOGEc.js → composerDraftUploads-ykQlcbPE.js} +2 -2
  109. package/dist/client/assets/{connect-BTIPE2au.js → connect-BtrTxy8-.js} +2 -2
  110. package/dist/client/assets/{connect-agent-hbkOBaFx.js → connect-agent-CVmArWh1.js} +2 -2
  111. package/dist/client/assets/{cynefin-OW5HDTMX-CWOcHmwk.js → cynefin-OW5HDTMX-DOViMxbO.js} +1 -1
  112. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-ksIfZeWS.js → cynefinDiagram-5FMLGOSQ-BWRCt23-.js} +2 -2
  113. package/dist/client/assets/{dagre-GXQ25YYZ-D7qz-Azr.js → dagre-GXQ25YYZ-DgnOAR1P.js} +2 -2
  114. package/dist/client/assets/design-D2FoGDbP.js +2 -0
  115. package/dist/client/assets/device-CdLsoK0D.js +2 -0
  116. package/dist/client/assets/{diagram-S7CK7UJ4-IBhHReDK.js → diagram-S7CK7UJ4-C-BUdvbR.js} +2 -2
  117. package/dist/client/assets/{diagram-UQ7AKVKN-EX7tFJEV.js → diagram-UQ7AKVKN-CYox921O.js} +2 -2
  118. package/dist/client/assets/{diagram-VSXAHHWV-BEHOoBER.js → diagram-VSXAHHWV-CCHV1RQz.js} +2 -2
  119. package/dist/client/assets/{diagram-VX7I27RA-Df_ThjhC.js → diagram-VX7I27RA-B4SkxxZx.js} +2 -2
  120. package/dist/client/assets/{diagram-Z3DM3KII-DudywHX4.js → diagram-Z3DM3KII-D80OJGVQ.js} +2 -2
  121. package/dist/client/assets/{dialog-YpQOq7Ug.js → dialog-Cgb4jap2.js} +2 -2
  122. package/dist/client/assets/{diffRendering-CgLbOp0J.js → diffRendering-CdquEtfn.js} +2 -2
  123. package/dist/client/assets/{discovery-list-CnlrZrDo.js → discovery-list-DXkskf2A.js} +2 -2
  124. package/dist/client/assets/{dist-usNgCtd_.js → dist-DWlOCBGN.js} +5 -5
  125. package/dist/client/assets/{draft-input-DW6EgVbF.js → draft-input-DQxVE9YJ.js} +2 -2
  126. package/dist/client/assets/{duoViewer-CgVOZcYe.js → duoViewer-Cig0lw70.js} +2 -2
  127. package/dist/client/assets/{dynamic-C1qIL2Wy.js → dynamic-DUhOBcsP.js} +3 -3
  128. package/dist/client/assets/{ebnfDiagram-PWID7BFC-DPJg2C3n.js → ebnfDiagram-PWID7BFC-AJpsDjYU.js} +2 -2
  129. package/dist/client/assets/{embeddedScripts-CAZM4r8Y.js → embeddedScripts-DVwzRCwI.js} +2 -2
  130. package/dist/client/assets/{empty-QSN6WiRO.js → empty-DHl8_LXy.js} +2 -2
  131. package/dist/client/assets/entities-BBhhC0Ry.js +2 -0
  132. package/dist/client/assets/{erDiagram-RLTQ6QDP-BySDEjHG.js → erDiagram-RLTQ6QDP-qU4wtJw2.js} +2 -2
  133. package/dist/client/assets/eventmodeling-NTZA5JFV-CIzOZUSe.js +1 -0
  134. package/dist/client/assets/{fileLinks-ShhGM_AF.js → fileLinks-16LrhkMX.js} +2 -2
  135. package/dist/client/assets/{fileTreeExpansion-DZnEBuaB.js → fileTreeExpansion-BwModZ8t.js} +2 -2
  136. package/dist/client/assets/flowDiagram-HODETNUW-G6NoS3v2.js +1 -0
  137. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-CJAhE7we.js → ganttDiagram-EL5Y4UJY-CMa5sD7U.js} +2 -2
  138. package/dist/client/assets/{getDiffFileInput-BxuEGdnM.js → getDiffFileInput-CMp2lO2J.js} +2 -2
  139. package/dist/client/assets/git-compare-CCnx9obs.js +2 -0
  140. package/dist/client/assets/{gitGraph-4MIJSDKK-BqKoI8Rd.js → gitGraph-4MIJSDKK-d8ivfU97.js} +1 -1
  141. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-BPFwoaRw.js → gitGraphDiagram-WWUBYQGX-dltGGWCt.js} +2 -2
  142. package/dist/client/assets/{guideRunStore-CYD68wqk.js → guideRunStore-CKZDf9-2.js} +2 -2
  143. package/dist/client/assets/{htmlRender-p6atQGoW.js → htmlRender-BUb_wWp9.js} +2 -2
  144. package/dist/client/assets/{index-CnQWjeBY.js → index-oiPu1asR.js} +3 -3
  145. package/dist/client/assets/{info-A6RAGUB7-R8j64K2s.js → info-A6RAGUB7-B_ozJ3Df.js} +1 -1
  146. package/dist/client/assets/{infoDiagram-27XIBGKW-DFqL9n-v.js → infoDiagram-27XIBGKW-BiB0fE5_.js} +2 -2
  147. package/dist/client/assets/{input-Df_UyHLk.js → input-D_jxqXLR.js} +2 -2
  148. package/dist/client/assets/{input-group-CpRPTpIU.js → input-group-BM_USnbh.js} +2 -2
  149. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-C-786VMl.js → ishikawaDiagram-5VMMS53U-DhfuI9PX.js} +2 -2
  150. package/dist/client/assets/{journeyDiagram-3NMN7TZE-lzAoDD4e.js → journeyDiagram-3NMN7TZE-8alknR0e.js} +2 -2
  151. package/dist/client/assets/{kanban-definition-UXKFOSKX-CJDCWAxz.js → kanban-definition-UXKFOSKX-IrCQ1z1D.js} +2 -2
  152. package/dist/client/assets/{kbd-BWmfbdyt.js → kbd-B2uytHus.js} +2 -2
  153. package/dist/client/assets/{keybindings-Cwx4RZou.js → keybindings-CqjUKNRx.js} +2 -2
  154. package/dist/client/assets/{lazyRouteComponent-AWcDof8d.js → lazyRouteComponent-CByGrW41.js} +2 -2
  155. package/dist/client/assets/{line-BV7EkscB.js → line-wwHo_z2p.js} +2 -2
  156. package/dist/client/assets/{link-ymnjoepm.js → link-BjP3qTK9.js} +2 -2
  157. package/dist/client/assets/{linkedPrompt-D1v0zLjD.js → linkedPrompt-P6UqYCja.js} +2 -2
  158. package/dist/client/assets/main-COMts6-0.js +28 -0
  159. package/dist/client/assets/main-Dwir4BoC.css +2 -0
  160. package/dist/client/assets/{mediaReference-DjHCSaNZ.js → mediaReference-C10FT-nO.js} +2 -2
  161. package/dist/client/assets/mediaSource-tGWQYhPt.js +2 -0
  162. package/dist/client/assets/{mermaid-parser.core-dhHCExtt.js → mermaid-parser.core-YE1Gxotj.js} +4 -4
  163. package/dist/client/assets/{mermaid.core-DixI3w-9.js → mermaid.core-DE9uOpTH.js} +5 -5
  164. package/dist/client/assets/{mindmap-definition-YA3MSWOX-BHehI_9I.js → mindmap-definition-YA3MSWOX-CLa2hbBW.js} +2 -2
  165. package/dist/client/assets/number-field-Dj0uYTJQ.js +2 -0
  166. package/dist/client/assets/{observeResize-uogErzin.js → observeResize-jHx61cGA.js} +2 -2
  167. package/dist/client/assets/onboarding-DCwprQF7.js +2 -0
  168. package/dist/client/assets/openFileInPreview-Dj9ZUFfJ.js +2 -0
  169. package/dist/client/assets/{p4ProjectFile-B9fwmcbM.js → p4ProjectFile-DfE23uqD.js} +2 -2
  170. package/dist/client/assets/{packet-AYTQ26CC-DhFsyjVR.js → packet-AYTQ26CC-Be9nXFns.js} +1 -1
  171. package/dist/client/assets/{pair-DJbA4cVs.js → pair-CZDxH6ja.js} +2 -2
  172. package/dist/client/assets/{pegDiagram-XKGWAZYB-DBKpIU8U.js → pegDiagram-XKGWAZYB-C230ixTv.js} +2 -2
  173. package/dist/client/assets/pendingSendStore-CaGsppQi.js +2 -0
  174. package/dist/client/assets/{phoneViewer-CywOkDco.js → phoneViewer-CdFM4t6r.js} +2 -2
  175. package/dist/client/assets/{pie-WAS4IAKB-cW3as8Lm.js → pie-WAS4IAKB-DdxLVm9y.js} +1 -1
  176. package/dist/client/assets/{pieDiagram-E7YTZNPT-CuM-4V4_.js → pieDiagram-E7YTZNPT-AK3e5d1A.js} +2 -2
  177. package/dist/client/assets/{pierre-icons-Bhwlc2rO.js → pierre-icons-BodtO6xC.js} +2 -2
  178. package/dist/client/assets/{popover-2GkuSL2i.js → popover-2XJd3KEJ.js} +2 -2
  179. package/dist/client/assets/{preview-BnLuRquy.js → preview-8bBtJM5H.js} +2 -2
  180. package/dist/client/assets/{preview-DWVmLubs.js → preview-x-GNJPih.js} +2 -2
  181. package/dist/client/assets/{previewMiniPlayerStore-B2cko9-z.js → previewMiniPlayerStore-DMd0mA7a.js} +2 -2
  182. package/dist/client/assets/primary-BDy4SXjC.js +2 -0
  183. package/dist/client/assets/primaryCloudLinkState--Kh80aBj.js +2 -0
  184. package/dist/client/assets/projectFilesQueryState-Bb-3twEo.js +2 -0
  185. package/dist/client/assets/projectScriptEditor-CAk1a7Bv.js +2 -0
  186. package/dist/client/assets/{providerSkills-OICI2srI.js → providerSkills-9AaADmXt.js} +2 -2
  187. package/dist/client/assets/{pullRequestDetail.logic-DT8Qo5OA.js → pullRequestDetail.logic-Fv7ouL_B.js} +4 -4
  188. package/dist/client/assets/{pullRequestIcons-BBzWaymE.js → pullRequestIcons-e8EZW8_y.js} +2 -2
  189. package/dist/client/assets/{pullRequestReviewStore-DKeU327h.js → pullRequestReviewStore-DJx8EOVl.js} +2 -2
  190. package/dist/client/assets/pullRequests-I9yJXxf5.js +2 -0
  191. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DSJ5VFnE.js → quadrantDiagram-AXDQQJYC-CcagVHbG.js} +2 -2
  192. package/dist/client/assets/queries-DY5q7KFy.js +2 -0
  193. package/dist/client/assets/query-BFP47tsD.js +2 -0
  194. package/dist/client/assets/{radar-RG4KPBEZ-CfIGvIx_.js → radar-RG4KPBEZ-YiDR7Sp-.js} +1 -1
  195. package/dist/client/assets/radio-group-BNV16qlg.js +2 -0
  196. package/dist/client/assets/{railroad-74A4TZTK-DB4Av5dd.js → railroad-74A4TZTK-Cg9vU93U.js} +1 -1
  197. package/dist/client/assets/railroad-abnf-HS5TGJTU-CFQBiMqT.js +1 -0
  198. package/dist/client/assets/railroad-ebnf-LZEXJU2U-KvUMMzpJ.js +1 -0
  199. package/dist/client/assets/railroad-peg-WCYAUIDC-ps7Jjity.js +1 -0
  200. package/dist/client/assets/{railroadDiagram-O6MQD6OU-cpv2Uyk5.js → railroadDiagram-O6MQD6OU-DKJFQoet.js} +2 -2
  201. package/dist/client/assets/{renderScheduler-h5pQXGNH.js → renderScheduler-skv2ZK84.js} +2 -2
  202. package/dist/client/assets/{requirementDiagram-BXWQKSXE-DYwMIoLP.js → requirementDiagram-BXWQKSXE-CsnTqOO2.js} +2 -2
  203. package/dist/client/assets/rightPanelStore-XfAJpUIA.js +2 -0
  204. package/dist/client/assets/runtime-BSS7jQw6.js +2 -0
  205. package/dist/client/assets/runtime-D-mOwjrE.js +6 -0
  206. package/dist/client/assets/runtimeModeConfig-sQBlbgY3.js +2 -0
  207. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BqmXJBYG.js → sankeyDiagram-P5KCCOFB-DkydPO4_.js} +2 -2
  208. package/dist/client/assets/{scheduledTasksSettings.logic-Cg8SF9mr.js → scheduledTasksSettings.logic-C-rCAoCn.js} +3 -3
  209. package/dist/client/assets/{scroll-area-0-l4q4Pk.js → scroll-area-DORwTFtw.js} +2 -2
  210. package/dist/client/assets/{select-Dhapqr3j.js → select-Bsag72zE.js} +2 -2
  211. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-h3AJox3t.js → sequenceDiagram-WJ2MYXX4-Df0N4Qqb.js} +2 -2
  212. package/dist/client/assets/server-WufAYYa2.js +2 -0
  213. package/dist/client/assets/session-logic-VyTvpA5f.js +26 -0
  214. package/dist/client/assets/session-pjgqVscl.js +2 -0
  215. package/dist/client/assets/{settings-CGf9Ad5Y.js → settings-CsOciX79.js} +2 -2
  216. package/dist/client/assets/settings.appearance-BTa_DZJP.js +2 -0
  217. package/dist/client/assets/settings.archived-5E_Gxvpz.js +2 -0
  218. package/dist/client/assets/{settings.computer-use-C3SE4DHj.js → settings.computer-use-0aB9RoDX.js} +2 -2
  219. package/dist/client/assets/settings.connections-DUkG_06v.js +2 -0
  220. package/dist/client/assets/{settings.data-controls-DjgZVIMy.js → settings.data-controls-Cn2MWFbv.js} +2 -2
  221. package/dist/client/assets/{settings.decisions-z3RVOG7-.js → settings.decisions-nRlfWokn.js} +2 -2
  222. package/dist/client/assets/settings.designs-CYIwYmP5.js +2 -0
  223. package/dist/client/assets/settings.diagnostics-pCb9rEgL.js +2 -0
  224. package/dist/client/assets/settings.general-DPkJcwHC.js +2 -0
  225. package/dist/client/assets/settings.integrations-DVMeSb1K.js +2 -0
  226. package/dist/client/assets/{settings.keybindings-D78CWKIy.js → settings.keybindings-PZlDKFMi.js} +2 -2
  227. package/dist/client/assets/{settings.open-source-licenses-BhpBR1nY.js → settings.open-source-licenses-CoY0kkph.js} +2 -2
  228. package/dist/client/assets/{settings.plugins-d9-jrUr-.js → settings.plugins-DCo7nzjN.js} +4 -4
  229. package/dist/client/assets/settings.projects-iA51Y3aj.js +4 -0
  230. package/dist/client/assets/settings.providers-BkUKaZF-.js +3 -0
  231. package/dist/client/assets/settings.scheduled-tasks-C0FpV34l.js +2 -0
  232. package/dist/client/assets/settings.snap-shot-C29-fDJw.js +2 -0
  233. package/dist/client/assets/settings.source-control-CqLszsPJ.js +2 -0
  234. package/dist/client/assets/{settings.storage-D6vDu4vG.js → settings.storage-JCo0X6p0.js} +2 -2
  235. package/dist/client/assets/settingsLayout-DkRcMtAs.js +3 -0
  236. package/dist/client/assets/{sidebar-DTT0HQ9J.js → sidebar-CV_a9dPF.js} +2 -2
  237. package/dist/client/assets/{sidebarProjectGrouping-JqsedUb6.js → sidebarProjectGrouping-C94BzdFc.js} +2 -2
  238. package/dist/client/assets/{skeleton-D-FcvmF0.js → skeleton-Bq50sEah.js} +2 -2
  239. package/dist/client/assets/{sourceControl-CrjTZJC-.js → sourceControl-BvubWC9K.js} +2 -2
  240. package/dist/client/assets/{sourceControlClients-DYQ3gMZ2.js → sourceControlClients-DKVeNHGN.js} +2 -2
  241. package/dist/client/assets/{spinner-AJeHmaWN.js → spinner-Bzrp5oww.js} +2 -2
  242. package/dist/client/assets/{standalone-page-Df29sgRU.js → standalone-page-BGqmgLmI.js} +2 -2
  243. package/dist/client/assets/{stateDiagram-D77RDMKH-C0KiABVq.js → stateDiagram-D77RDMKH-Ctp0qVPg.js} +2 -2
  244. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DTjnbS5I.js +2 -0
  245. package/dist/client/assets/{swimlanes-42K2YHIH-BdAWIkuy.js → swimlanes-42K2YHIH-_LIKBAWu.js} +2 -2
  246. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-BEo2_7TC.js +9 -0
  247. package/dist/client/assets/{terminal-links-BjKL3dH7.js → terminal-links-DHw7nXFF.js} +2 -2
  248. package/dist/client/assets/{terminalSessions-dkFe-6qM.js → terminalSessions-WR45SySR.js} +2 -2
  249. package/dist/client/assets/{textarea-CqADnND1.js → textarea-wDfYVvpo.js} +2 -2
  250. package/dist/client/assets/{themePalette-Co4xeJnW.js → themePalette-CLR_iiPi.js} +3 -3
  251. package/dist/client/assets/{timeline-definition-24CTP7MA-CkYp2QT_.js → timeline-definition-24CTP7MA--fH4g9Xi.js} +2 -2
  252. package/dist/client/assets/toast-x69BFrW5.js +2 -0
  253. package/dist/client/assets/{toggle-BM8lnQ29.js → toggle-ExdxBJoI.js} +2 -2
  254. package/dist/client/assets/{toggle-group-DaqkIApY.js → toggle-group-Clz6KDtW.js} +2 -2
  255. package/dist/client/assets/{tooltip-ngKqo-lA.js → tooltip-D-SzZpgJ.js} +2 -2
  256. package/dist/client/assets/{treeView-Q6P3EWNA-YWYRI1IG.js → treeView-Q6P3EWNA-BYF4NjYA.js} +1 -1
  257. package/dist/client/assets/{treemap-WGGIJYW6-DOqHNCbg.js → treemap-WGGIJYW6-DTEnfmuA.js} +1 -1
  258. package/dist/client/assets/{uiStateStore-Ddhpg65j.js → uiStateStore-CP4WDmc8.js} +3 -3
  259. package/dist/client/assets/usage-C8NW06hk.js +2 -0
  260. package/dist/client/assets/{usageAccess-AcIxVQqJ.js → usageAccess-ZgmQIiWk.js} +2 -2
  261. package/dist/client/assets/{usageFormat-BXW38hCK.js → usageFormat-C54RJiV9.js} +2 -2
  262. package/dist/client/assets/{usageShortcuts-Qkdifm3k.js → usageShortcuts-B3af64g0.js} +2 -2
  263. package/dist/client/assets/{use-atom-command-BJxdfyHC.js → use-atom-command-rhVarDA8.js} +2 -2
  264. package/dist/client/assets/{useAriaLabelledBy-C0a8QEEb.js → useAriaLabelledBy-BG5RCb1o.js} +2 -2
  265. package/dist/client/assets/useHandleNewThread-Bhl1v82B.js +2 -0
  266. package/dist/client/assets/{useLocation-BQDC59xg.js → useLocation-7uJHNdPS.js} +2 -2
  267. package/dist/client/assets/useNavigate-DCj963r2.js +2 -0
  268. package/dist/client/assets/{useNavigateBack-BH5As9D1.js → useNavigateBack-DpCLZais.js} +2 -2
  269. package/dist/client/assets/{useP4ConnectAuthPrompt-DHu7R38-.js → useP4ConnectAuthPrompt-ubtmHQ6f.js} +2 -2
  270. package/dist/client/assets/{useParams-BMa26XZG.js → useParams-Br7l7qPU.js} +2 -2
  271. package/dist/client/assets/{usePermissionStatus-CUViQRYY.js → usePermissionStatus-SyBwmFSK.js} +2 -2
  272. package/dist/client/assets/{usePullRequestActions-DGkavykA.js → usePullRequestActions-Djf1UHJs.js} +3 -3
  273. package/dist/client/assets/{useRegisterFieldControl-CosvijuC.js → useRegisterFieldControl-qXOWsCr5.js} +2 -2
  274. package/dist/client/assets/{useScopedModelAvailability-DOJzIjns.js → useScopedModelAvailability-BAzgc0gB.js} +2 -2
  275. package/dist/client/assets/useSettings-BNs1IeKk.js +3 -0
  276. package/dist/client/assets/utils-hgbJ2TVM.js +37 -0
  277. package/dist/client/assets/vcsRefInvalidation-DmqB0sWy.js +2 -0
  278. package/dist/client/assets/{vennDiagram-4TSXK5OY-DvpVodA1.js → vennDiagram-4TSXK5OY-BzIqk05W.js} +2 -2
  279. package/dist/client/assets/{wardley-WFR3VGLG-CW8u1RAF.js → wardley-WFR3VGLG-CWuiB19I.js} +1 -1
  280. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-B34GmEPm.js → wardleyDiagram-VM6X3IG4-C3KRakQk.js} +2 -2
  281. package/dist/client/assets/welcome-BFUhADQd.js +2 -0
  282. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-Ds5Ioly5.js → xychartDiagram-S5SC5T6Z-cK0SAbmi.js} +2 -2
  283. package/dist/client/index.html +1 -1
  284. package/dist/{renderer-ClrN4p2R.mjs → renderer-U6GevbYv.mjs} +2 -2
  285. package/dist/{runtime-BQydA64s.mjs → runtime-Cui_uQWU.mjs} +88 -5
  286. package/package.json +1 -1
  287. package/dist/client/assets/AlertDialogRoot-DCfR_LaK.js +0 -2
  288. package/dist/client/assets/ChatGptUsageButton-CoiZRjaS.js +0 -2
  289. package/dist/client/assets/CheckboxIndicator-DcH9EpvK.js +0 -2
  290. package/dist/client/assets/CodexSetupSection.logic-sXohw-MK.js +0 -2
  291. package/dist/client/assets/CollapsiblePanel-FknKvWoA.js +0 -2
  292. package/dist/client/assets/ComboboxClear-RsGmZUJN.js +0 -2
  293. package/dist/client/assets/ComboboxGroupLabel-DO1lnPnr.js +0 -2
  294. package/dist/client/assets/CompositeRoot-DDZcK2m0.js +0 -2
  295. package/dist/client/assets/DevicePanel-DmfTFNuU.js +0 -2
  296. package/dist/client/assets/DialogTitle-Dr-LJLpq.js +0 -2
  297. package/dist/client/assets/DiffPanel-CEx8f_mo.js +0 -2
  298. package/dist/client/assets/EmbeddedDesign-DmybFtYo.css +0 -1
  299. package/dist/client/assets/EmbeddedDesign-Hba9k7LF.js +0 -19
  300. package/dist/client/assets/Input-DCMTYdrA.js +0 -2
  301. package/dist/client/assets/PanelLayoutControls-CCYVBazN.js +0 -216
  302. package/dist/client/assets/PopoverHandle-1bqR8KHF.js +0 -2
  303. package/dist/client/assets/PreviewPanel-Kq4mVufQ.js +0 -2
  304. package/dist/client/assets/ProjectDefaultsSettings-DUCUj4oc.js +0 -2
  305. package/dist/client/assets/ProviderModelPicker-BrEkNDPF.js +0 -2
  306. package/dist/client/assets/PullRequestCodeTab-DA-5pWeg.js +0 -6
  307. package/dist/client/assets/RenderErrorBoundary-yWjbnzsc.js +0 -2
  308. package/dist/client/assets/ScheduledTasksSettings-B1bSNXTP.js +0 -4
  309. package/dist/client/assets/SelectScrollUpArrow-kQBsA9rk.js +0 -2
  310. package/dist/client/assets/ThreadTerminalDrawer-BU_DR6wu.js +0 -5
  311. package/dist/client/assets/TooltipViewport-CG7gtflQ.js +0 -2
  312. package/dist/client/assets/_chat-DMXSEEst.js +0 -45
  313. package/dist/client/assets/_chat.pull-requests-w2FCKIZ8.js +0 -2
  314. package/dist/client/assets/architecture-7GRP2DOG-BVExhwPq.js +0 -1
  315. package/dist/client/assets/assets-DW8sK93I.js +0 -2
  316. package/dist/client/assets/channel-BLnKdGtk.js +0 -2
  317. package/dist/client/assets/classDiagram-ZZMXUADV-B839piSM.js +0 -2
  318. package/dist/client/assets/classDiagram-v2-VYDZK3BY-B839piSM.js +0 -2
  319. package/dist/client/assets/composer-logic-CEsP6SV6.js +0 -6
  320. package/dist/client/assets/design-B7V20I1i.js +0 -2
  321. package/dist/client/assets/device-DX-G6J1j.js +0 -2
  322. package/dist/client/assets/entities-Bj5ceyfn.js +0 -2
  323. package/dist/client/assets/eventmodeling-NTZA5JFV-CrSSBuUT.js +0 -1
  324. package/dist/client/assets/flowDiagram-HODETNUW-GdATwCAd.js +0 -1
  325. package/dist/client/assets/git-compare-DW_c6fci.js +0 -2
  326. package/dist/client/assets/main-Byysx0nX.css +0 -2
  327. package/dist/client/assets/main-D8FWUaO_.js +0 -26
  328. package/dist/client/assets/mediaSource-DrVcMaQl.js +0 -2
  329. package/dist/client/assets/number-field-BHWzsgFF.js +0 -2
  330. package/dist/client/assets/onboarding-BkSIwdaJ.js +0 -2
  331. package/dist/client/assets/openFileInPreview-3vlmqdKv.js +0 -2
  332. package/dist/client/assets/primary-CKEI970r.js +0 -2
  333. package/dist/client/assets/primaryCloudLinkState-CwxbxrZn.js +0 -2
  334. package/dist/client/assets/projectFilesQueryState-45r9sIZp.js +0 -2
  335. package/dist/client/assets/projectScriptEditor-CI1LZs9V.js +0 -2
  336. package/dist/client/assets/pullRequests-DLPX2CY-.js +0 -2
  337. package/dist/client/assets/queries-lVyDrFzk.js +0 -2
  338. package/dist/client/assets/query-tgXMuDtS.js +0 -2
  339. package/dist/client/assets/radio-group-CJu78gKo.js +0 -2
  340. package/dist/client/assets/railroad-abnf-HS5TGJTU-Ce_EhWE2.js +0 -1
  341. package/dist/client/assets/railroad-ebnf-LZEXJU2U-BWrImE-J.js +0 -1
  342. package/dist/client/assets/railroad-peg-WCYAUIDC-BydBUlqT.js +0 -1
  343. package/dist/client/assets/rightPanelStore-Csibei0O.js +0 -2
  344. package/dist/client/assets/runtime-DATbE5vH.js +0 -6
  345. package/dist/client/assets/runtime-Dks8Wo5P.js +0 -2
  346. package/dist/client/assets/runtimeModeConfig-n1vq0Zzd.js +0 -2
  347. package/dist/client/assets/server-rxH1493J.js +0 -2
  348. package/dist/client/assets/session-Bgs0dTwK.js +0 -2
  349. package/dist/client/assets/session-logic-BuYRdtPc.js +0 -26
  350. package/dist/client/assets/settings.appearance-DV608fbL.js +0 -2
  351. package/dist/client/assets/settings.archived-Cav4CAd_.js +0 -2
  352. package/dist/client/assets/settings.connections-C9Kh1b2k.js +0 -2
  353. package/dist/client/assets/settings.designs-DgLVIZOE.js +0 -2
  354. package/dist/client/assets/settings.diagnostics-CaXx9YEU.js +0 -2
  355. package/dist/client/assets/settings.general-BOpvFj1F.js +0 -2
  356. package/dist/client/assets/settings.integrations-MHjX-SLC.js +0 -2
  357. package/dist/client/assets/settings.projects-BiDMtruF.js +0 -4
  358. package/dist/client/assets/settings.providers-BarMZxaG.js +0 -3
  359. package/dist/client/assets/settings.scheduled-tasks-BA_O1-Fn.js +0 -2
  360. package/dist/client/assets/settings.snap-shot-Crh49RtQ.js +0 -2
  361. package/dist/client/assets/settings.source-control-DIrrX9Dt.js +0 -2
  362. package/dist/client/assets/settingsLayout-BQsOdImg.js +0 -3
  363. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DlcRyn96.js +0 -2
  364. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-lbxQDJ07.js +0 -9
  365. package/dist/client/assets/toast-gFAddE-Q.js +0 -2
  366. package/dist/client/assets/usage-B3PzCXST.js +0 -2
  367. package/dist/client/assets/useHandleNewThread-BUYzfgdc.js +0 -2
  368. package/dist/client/assets/useNavigate-BziZQ-Vx.js +0 -2
  369. package/dist/client/assets/useSettings-B_WzhJqU.js +0 -3
  370. package/dist/client/assets/utils-BctiQ4Ue.js +0 -37
  371. package/dist/client/assets/vcsRefInvalidation-cn2N4Xey.js +0 -2
  372. package/dist/client/assets/welcome-DEFnpzjQ.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,$w as r,$x as i,$y as a,By as o,C_ as s,Ch as c,Cs as l,Cy as u,Dc as d,Fb as f,Fg as ee,Go as p,Gy as te,Iy as ne,LT as re,MT as ie,Mb as ae,NE as oe,NT as m,Ng as se,Ox as ce,Oy as le,P_ as ue,Pb as de,Rs as fe,Sb as pe,Ss as me,Th as he,Ts as ge,Xo as _e,Yo as h,Yw as g,Zo as ve,Zw as _,Zy as ye,ah as be,bh as xe,ch as Se,db as Ce,dh as we,gl as Te,hh as Ee,hl as De,i_ as Oe,ib as ke,ih as Ae,j_ as je,jb as Me,kb as Ne,kv as Pe,n_ as Fe,qy as Ie,r_ as Le,rb as Re,ss as v,tS as ze,th as Be,uh as Ve,vl as He,wh as Ue,xb as We,ys as Ge}from"./utils-BctiQ4Ue.js";import{At as Ke,E as qe,I as Je,R as Ye,Sn as Xe,T as Ze,W as Qe,_t as y}from"./runtime-DATbE5vH.js";import{Ct as $e,T as et,t as tt,yt as nt}from"./runtime-Dks8Wo5P.js";import{i as b}from"./toast-gFAddE-Q.js";import{f as x,h as S,m as rt,u as it}from"./server-rxH1493J.js";import{i as at,n as ot,s as st,t as ct}from"./session-Bgs0dTwK.js";import{t as C}from"./use-atom-command-BJxdfyHC.js";import{B as lt,C as ut,M as dt,N as ft,O as pt,P as mt,S as ht,_ as gt,b as _t,c as vt,i as w,n as yt,o as bt,r as xt,y as St,z as Ct}from"./themePalette-Co4xeJnW.js";var T=e(t(),1),E=oe();function wt(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 Tt(e){let t=ve(t=>n(n=>{let r=n(e.catalogValueAtom).entries.get(t);if(r===void 0)return null;let i=ie(me(n(e.stateAtom(t))),()=>Xe);return{entry:r,connection:r.unsupportedReason===void 0?$e(i):{phase:`unsupported`,error:r.unsupportedReason,traceId:null},serverConfig:n(e.serverConfigValueAtom(t))}}).pipe(v(`environment-presentation:${t}`))),r=new Map;return{presentationAtom:t,presentationsAtom:n(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 wt(r,i)||(r=i),r}).pipe(v(`environment-presentations`))}}function Et(e,t){return{environmentId:e,environmentLabel:t.entry.target.label,displayUrl:nt(t.entry)??``,isRelayManaged:Ke(t.entry),isEnabled:t.entry.enabled,connectionState:t.connection.phase,connectionError:t.connection.error,connectionErrorTraceId:t.connection.traceId}}function Dt(e){let t=n(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=n(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=ve(t=>n(n=>{let r=n(e.presentationAtom(t));if(r===null)return null;let i=Et(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=n(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(v(`environment-connection-summaries`));return{environmentIdsAtom:t,connectedEnvironmentIdsAtom:n(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:n(n=>{let r=new Map(n(t).map(t=>[t,He(n(e.presentationAtom(t))?.serverConfig??null)])),i=m(n.self());return i!==null&&wt(i,r)?i:r}),pullRequestsSupportedAtom:n(n=>n(t).some(t=>n(e.presentationAtom(t))?.serverConfig?.environment.capabilities.pullRequests===!0))}}var Ot=Tt({catalogValueAtom:S.catalogValueAtom,stateAtom:S.stateAtom,serverConfigValueAtom:x.configValueAtom}),kt=Dt({catalogValueAtom:S.catalogValueAtom,presentationAtom:Ot.presentationAtom}),At=n(null).pipe(v(`web-environment-presentation:empty`));function jt(e){let t=(0,E.c)(5),n=h(S.catalogValueAtom),r;t[0]===e?r=t[1]:(r=e===null?At:Ot.presentationAtom(e),t[0]=e,t[1]=r);let i=h(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 Mt={status:`idle`},D=Mt,O=null,k=[],A=0,Nt=new Set;function j(e){D=e;for(let e of Nt)e()}function Pt(e){O?.resolve(e);for(let t of k)t.resolve(e);O=null,k=[]}function Ft(){return D}function It(e){return Nt.add(e),()=>{Nt.delete(e)}}function Lt(){A+=1;let e=!0;return()=>{e&&(e=!1,A=Math.max(0,A-1),A===0&&(Pt(!1),j(Mt)))}}function Rt(e,t){if(A!==0)return new Promise(n=>{let r={message:e,variant:t?.variant??`default`,resolve:n};if(O||D.status===`closing`){k.push(r);return}O=r,j({status:`confirming`,message:e,variant:r.variant})})}function zt(){return D.status!==`idle`||O!==null||k.length>0}function Bt(e){if(D.status!==`confirming`||!O)return;let t=O;O=null,t.resolve(e),j({status:`closing`,message:D.message,variant:D.variant})}function Vt(){if(D.status!==`closing`)return;let e=k.shift();if(!e){j(Mt);return}O=e,j({status:`confirming`,message:e.message,variant:e.variant})}var Ht={Ctrl:`⌃`,Alt:`⌥`,Shift:`⇧`,Super:`⌘`,CmdOrCtrl:`⌘`};function Ut(e,t=navigator.platform){let n=e.split(`+`),r=n.pop()??``;return d(t)?`${n.map(e=>Ht[e]??e).join(``)}${r}`:[...n.map(e=>e===`CmdOrCtrl`?`Ctrl`:e===`Super`?`Meta`:e),r].join(`+`)}var Wt=`http://www.w3.org/2000/svg`,Gt={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`}}],eye:[{tag:`path`,attrs:{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}},{tag:`circle`,attrs:{cx:`12`,cy:`12`,r:`3`}}],"app-window":[{tag:`rect`,attrs:{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`}},{tag:`path`,attrs:{d:`M10 4v4`}},{tag:`path`,attrs:{d:`M2 8h20`}},{tag:`path`,attrs:{d:`M6 4v4`}}],"arrow-up-right":[{tag:`path`,attrs:{d:`M7 7h10v10`}},{tag:`path`,attrs:{d:`M7 17 17 7`}}],"external-link":[{tag:`path`,attrs:{d:`M15 3h6v6`}},{tag:`path`,attrs:{d:`M10 14 21 3`}},{tag:`path`,attrs:{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`}}],link:[{tag:`path`,attrs:{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`}},{tag:`path`,attrs:{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`}}],list:[{tag:`path`,attrs:{d:`M3 5h.01`}},{tag:`path`,attrs:{d:`M3 12h.01`}},{tag:`path`,attrs:{d:`M3 19h.01`}},{tag:`path`,attrs:{d:`M8 5h13`}},{tag:`path`,attrs:{d:`M8 12h13`}},{tag:`path`,attrs:{d:`M8 19h13`}}],share:[{tag:`path`,attrs:{d:`M12 2v13`}},{tag:`path`,attrs:{d:`m16 6-4-4-4 4`}},{tag:`path`,attrs:{d:`M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8`}}],x:[{tag:`path`,attrs:{d:`M18 6 6 18`}},{tag:`path`,attrs:{d:`m6 6 12 12`}}],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 Kt(e,t){let n=Gt[e];if(!n||typeof document.createElementNS!=`function`)return null;let r=document.createElementNS(Wt,`svg`);r.setAttribute(`xmlns`,Wt),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(Wt,e.tag);for(let[n,r]of Object.entries(e.attrs))t.setAttribute(n,r);r.appendChild(t)}return r}function qt(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 Jt(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 M=null;function Yt(){return M!==null}function Xt(){M?.(),M=null}function Zt(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,M===c&&(M=null),document.removeEventListener(`keydown`,u),document.removeEventListener(`pointerdown`,f,!0),document.removeEventListener(`contextmenu`,ee,!0);let t=Jt(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))},f=e=>{s&&!Jt(e.target,i)&&l(null)},ee=e=>{s&&!Jt(e.target,i)&&(e.preventDefault(),l(null))},p=e=>{for(;i.length>e;)a.pop()?.setAttribute(`aria-expanded`,`false`),i.pop()?.remove()},te=(e,t,n,r,o)=>{p(r);let c=document.createElement(`div`);c.className=`dropdown-glass fixed z-[10000] min-w-56 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:14rem;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?Kt(`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=Kt(t.icon,n?`destructive`:`neutral`);e&&a.appendChild(e)}let f=document.createElement(`span`);if(f.className=`min-w-0 flex-1 truncate`,f.textContent=t.label,a.appendChild(f),typeof t.accelerator==`string`){let e=document.createElement(`span`);e.className=`ms-6 shrink-0 text-muted-foreground text-xs tracking-widest`,e.style.cssText=`margin-inline-start:1.5rem;flex-shrink:0;color:var(--contrast-muted-foreground);font-size:0.75rem;letter-spacing:0.1em;`,e.textContent=Ut(t.accelerator),e.setAttribute(`aria-hidden`,`true`),a.setAttribute(`aria-keyshortcuts`,t.accelerator.replace(`CmdOrCtrl`,d(navigator.platform)?`Meta`:`Control`)),a.appendChild(e)}if(e){a.setAttribute(`aria-haspopup`,`menu`),a.setAttribute(`aria-expanded`,`false`);let e=Kt(`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;te(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&&qt(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(()=>{qt(c,t,n)})};document.addEventListener(`keydown`,u),document.addEventListener(`pointerdown`,f,!0),document.addEventListener(`contextmenu`,ee,!0),te(e,t?.x??0,t?.y??0,0),M&&M(),M=c,requestAnimationFrame(()=>{s=!0})})}var Qt=`p4code:client-settings:v1`;function $t(){return typeof window<`u`}function en(){return $t()?l(Qt,Be):null}function tn(e){$t()&&ge(Qt,e,Be)}var nn;function rn(){return{dialogs:{pickFolder:async e=>window.desktopBridge?window.desktopBridge.pickFolder(e):null,confirm:async(e,t)=>Rt(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):Zt(e,t),close:async()=>{window.desktopBridge||Xt()}},persistence:{getClientSettings:async()=>window.desktopBridge?window.desktopBridge.getClientSettings():en(),setClientSettings:async e=>{if(window.desktopBridge)return window.desktopBridge.setClientSettings(e);tn(e)}}}}function an(){return rn()}function on(){if(typeof window<`u`)return nn||(nn=an(),nn)}function sn(){let e=on();if(!e)throw Error(`Local API not found`);return e}var N=`p4code:theme`,cn=`(prefers-color-scheme: dark)`,P={theme:`system`,resolvedTheme:`light`,systemDark:!1,followSystem:!0,appearanceMode:`system`,themeHalves:null};function ln(){return F()}function un(){return typeof window>`u`?{}:dn()}function F(){if(typeof window>`u`)return null;try{return pt(window.localStorage.getItem(w))}catch{return null}}function dn(){try{let e=JSON.parse(window.localStorage.getItem(`p4code: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 I(e){return`${e?.light??``}|${e?.dark??``}`}var fn=`theme-color`,pn=`meta[name="${fn}"][data-dynamic-theme-color="true"]`,L=class extends o()(`ThemeStorageError`,{operation:le([`read`,`write`]),storageKey:ne,theme:Ce(bt),cause:u()}){get message(){return`Failed to ${this.operation} theme preference for ${this.storageKey}.`}},mn=ke(L),hn=class extends o()(`DesktopThemeSyncError`,{theme:bt,cause:u()}){get message(){return`Failed to sync the ${this.theme} theme to the desktop shell.`}},gn=ke(hn),R=[],z=null,_n=!0,B=null,V=null,H=null;function U(){_n=!0;for(let e of R)e()}function vn(){return typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(cn).matches}function yn(e){if(typeof window>`u`)return e===`system`;try{let e=window.localStorage.getItem(xt);if(e===`true`)return!0;if(e===`false`)return!1}catch{}return e===`system`}function bn(e){return e===`light`||e===`dark`||e===`system`}function W(e){if(typeof window<`u`)try{let e=window.localStorage.getItem(yt);if(bn(e))return e}catch{}return yn(e)?`system`:St(e)??`light`}function xn(e){if(typeof window<`u`)try{window.localStorage.setItem(yt,e)}catch(e){throw new L({operation:`write`,storageKey:yt,cause:e})}}function Sn(){if(typeof window>`u`)return P.theme;let e;try{e=window.localStorage.getItem(N)}catch(e){throw new L({operation:`read`,storageKey:N,cause:e})}return e!==null&&ut(e)?e:P.theme}function Cn(e){if(typeof window<`u`)try{window.localStorage.setItem(N,e),H=null}catch(t){throw new L({operation:`write`,storageKey:N,theme:e,cause:t})}}function G(){if(H!==null)return P.theme;try{return Sn()}catch(e){let t=mn(e)?e:new L({operation:`read`,storageKey:N,cause:e});return H=t,console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),P.theme}}function wn(){let e=document.querySelector(pn);return e||(e=document.createElement(`meta`),e.name=fn,e.setAttribute(`data-dynamic-theme-color`,`true`),document.head.append(e),e)}function Tn(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 En(){return document.querySelector(`main[data-slot='sidebar-inset']`)??document.querySelector(`[data-slot='sidebar-inner']`)??document.body}function Dn(){if(typeof document>`u`||typeof getComputedStyle>`u`)return;let e=getComputedStyle(document.documentElement),t=document.documentElement.dataset.themeId?Tn(e.getPropertyValue(`--app-chrome-background`)):null,n=Tn(getComputedStyle(En()).backgroundColor),r=Tn(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="${fn}"]`);if(a.length===0){wn().setAttribute(`content`,i);return}for(let e of a)e.setAttribute(`content`,i)}function K(e,{suppressTransitions:t=!1,preservePreview:n=!0}={}){if(typeof document>`u`||typeof window>`u`||n&&document.documentElement.dataset?.themeId===`__preview`)return;let r=W(e),i=r===`system`,a=i?vn():!1,o=F();if(V?.theme===e&&V.systemDark===a&&V.followSystem===i&&V.appearanceMode===r&&I(V.themeHalves)===I(o)){kn(e,i,r);return}t&&document.documentElement.classList.add(`no-transitions`);let s=ft(e,a,i,r,o);vt(mt(e,o,s),s),document.documentElement.classList.toggle(`dark`,s===`dark`),V={theme:e,systemDark:a,followSystem:i,appearanceMode:r,themeHalves:o},Dn(),kn(e,i,r),t&&(document.documentElement.offsetHeight,requestAnimationFrame(()=>{document.documentElement.classList.remove(`no-transitions`)}))}async function On(e,t,n,r,i=F()){try{await e.setTheme(dt(t,n,r,i))}catch(e){throw new hn({theme:t,cause:e})}}function kn(e,t,n){if(typeof window>`u`)return;let r=window.desktopBridge,i=F(),a=dt(e,t,n,i);r&&typeof r.setTheme==`function`&&B!==a&&(B=a,On(r,e,t,n,i).catch(t=>{let n=gn(t)?t:new hn({theme:e,cause:t});console.error(n.message,{theme:n.theme,...y(n)}),B===a&&(B=null)}))}typeof document<`u`&&typeof window<`u`&&K(G());function An(){if(typeof window>`u`)return P;if(!_n&&z)return z;_n=!1;let e=G(),t=W(e),n=t===`system`,r=n?vn():!1,i=F(),a=ft(e,r,n,t,i);return z&&z.theme===e&&z.resolvedTheme===a&&z.systemDark===r&&z.followSystem===n&&z.appearanceMode===t&&I(z.themeHalves)===I(i)||(z={theme:e,resolvedTheme:a,systemDark:r,followSystem:n,appearanceMode:t,themeHalves:i}),z}function jn(){return P}function Mn(){let e=G();W(e)===`system`&&K(e,{suppressTransitions:!0}),U()}function Nn(e){e.key===N?(H=null,K(G(),{suppressTransitions:!0}),U()):e.key===`p4code:theme-follow-system`||e.key===`p4code:theme-appearance-mode`||e.key===`p4code:theme-halves:v1`?(K(G(),{suppressTransitions:!0}),U()):(e.key===`p4code:themes:v1`||e.key===null)&&(e.key===null&&(H=null),ht(),V=null,K(G(),{suppressTransitions:!0}),U())}var Pn=null;function Fn(e){if(typeof window>`u`)return()=>{};if(R.push(e),!Pn){let e=typeof window.matchMedia==`function`?window.matchMedia(cn):null;e?.addEventListener(`change`,Mn),window.addEventListener(`storage`,Nn),Pn=()=>{e?.removeEventListener(`change`,Mn),window.removeEventListener(`storage`,Nn)}}return()=>{R=R.filter(t=>t!==e),R.length===0&&(Pn?.(),Pn=null)}}function In(){let e=(0,T.useSyncExternalStore)(Fn,An,jn),{theme:t,resolvedTheme:n}=e,r=(0,T.useCallback)(e=>{if(typeof window>`u`)return!1;try{xn(W(G()));let t=window.localStorage.getItem(w);window.localStorage.removeItem(w);try{Cn(e)}catch(e){if(t!==null)try{window.localStorage.setItem(w,t)}catch{}throw e}}catch(t){let n=mn(t)?t:new L({operation:`write`,storageKey:N,theme:e,cause:t});return console.error(n.message,{operation:n.operation,storageKey:n.storageKey,theme:e,...y(n)}),!1}return K(e,{suppressTransitions:!0}),U(),!0},[]),i=(0,T.useCallback)(e=>{if(typeof window>`u`)return!1;try{xn(e)}catch(e){let t=mn(e)?e:new L({operation:`write`,storageKey:yt,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return H=null,K(G(),{suppressTransitions:!0}),U(),!0},[]),a=(0,T.useCallback)(e=>{let n=W(t),r=e?`system`:n===`system`?St(t)??`light`:n;return i(r)},[i,t]),o=(0,T.useCallback)((e,t)=>{if(typeof window>`u`)return!1;try{let n={...dn()};t===null?delete n[e]:n[e]=t,n.light===void 0&&n.dark===void 0?window.localStorage.removeItem(w):window.localStorage.setItem(w,JSON.stringify(n))}catch(e){let t=new L({operation:`write`,storageKey:w,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return K(G(),{suppressTransitions:!0}),U(),!0},[]),s=(0,T.useCallback)(()=>{if(typeof window>`u`)return!1;try{window.localStorage.removeItem(w)}catch(e){let t=new L({operation:`write`,storageKey:w,cause:e});return console.error(t.message,{operation:t.operation,storageKey:t.storageKey,...y(t)}),!1}return K(G(),{suppressTransitions:!0}),U(),!0},[]),c=(0,T.useCallback)(({preservePreview:e=!1}={})=>{typeof window<`u`&&(V=null,K(G(),{suppressTransitions:!0,preservePreview:e}),U())},[]);return(0,T.useEffect)(()=>{K(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 Ln=Ie(Re(te)),Rn=f(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??``),Ln(t).pipe(ze(e=>e.issue))}),zn=new Ne(Rn,de());ae().pipe(Me(de({space:2})));var Bn=e=>ne.pipe(ye(e,zn)),Vn={performance:{profile:`performance`,automaticGitFetchInterval:_(15),providerHealthRefreshInterval:g(1),hostPowerMonitorActiveInterval:_(30),hostPowerMonitorIdleInterval:g(2),idleClientTtl:_(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!1,pauseWhenClientLowPower:!1,pauseWhenOnBattery:!1},balanced:{profile:`balanced`,automaticGitFetchInterval:Ae,providerHealthRefreshInterval:Ve,hostPowerMonitorActiveInterval:_(30),hostPowerMonitorIdleInterval:g(5),idleClientTtl:_(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!1},"battery-saver":{profile:`battery-saver`,automaticGitFetchInterval:_(0),providerHealthRefreshInterval:g(15),hostPowerMonitorActiveInterval:g(1),hostPowerMonitorIdleInterval:g(10),idleClientTtl:_(45),pauseWhenHostLocked:!0,pauseWhenHostLowPower:!0,pauseWhenClientLowPower:!0,pauseWhenOnBattery:!0}};function q(e){return Vn[e]}function Hn(e){return e.profile===`custom`?e.baseProfile??`balanced`:e.profile}function Un(e){let t=Hn(e),n=Vn[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 J(e,t){return r(e)===r(t)}function Wn(e,t){return J(e.automaticGitFetchInterval,t.automaticGitFetchInterval)&&J(e.providerHealthRefreshInterval,t.providerHealthRefreshInterval)&&J(e.hostPowerMonitorActiveInterval,t.hostPowerMonitorActiveInterval)&&J(e.hostPowerMonitorIdleInterval,t.hostPowerMonitorIdleInterval)&&J(e.idleClientTtl,t.idleClientTtl)&&e.pauseWhenHostLocked===t.pauseWhenHostLocked&&e.pauseWhenHostLowPower===t.pauseWhenHostLowPower&&e.pauseWhenClientLowPower===t.pauseWhenClientLowPower&&e.pauseWhenOnBattery===t.pauseWhenOnBattery}function Gn(e){if(e.profile!==`custom`)return{schemaVersion:1,profile:e.profile,overrides:{}};let t=Un(e),n=[Hn(e),`balanced`,`performance`,`battery-saver`];for(let e of n)if(Wn(t,Vn[e]))return{schemaVersion:1,profile:e,overrides:{}};let r=Hn(e),i=Vn[r];return{schemaVersion:1,profile:`custom`,baseProfile:r,overrides:{...J(t.automaticGitFetchInterval,i.automaticGitFetchInterval)?{}:{automaticGitFetchInterval:t.automaticGitFetchInterval},...J(t.providerHealthRefreshInterval,i.providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:t.providerHealthRefreshInterval},...J(t.hostPowerMonitorActiveInterval,i.hostPowerMonitorActiveInterval)?{}:{hostPowerMonitorActiveInterval:t.hostPowerMonitorActiveInterval},...J(t.hostPowerMonitorIdleInterval,i.hostPowerMonitorIdleInterval)?{}:{hostPowerMonitorIdleInterval:t.hostPowerMonitorIdleInterval},...J(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 Kn(e){let t={schemaVersion:1,profile:be,overrides:{}},n=e.backgroundActivity.profile===t.profile&&e.backgroundActivity.baseProfile===void 0&&Object.keys(e.backgroundActivity.overrides).length===0,i=e.backgroundActivityProfile,a=i!==`balanced`||r(e.automaticGitFetchInterval)!==r(Ae)||r(e.providerHealthRefreshInterval)!==r(Ve);return Un(n&&a?{schemaVersion:1,profile:r(e.automaticGitFetchInterval)===r(q(i).automaticGitFetchInterval)&&r(e.providerHealthRefreshInterval)===r(q(i).providerHealthRefreshInterval)?i:`custom`,baseProfile:i,overrides:{...r(e.automaticGitFetchInterval)===r(q(i).automaticGitFetchInterval)?{}:{automaticGitFetchInterval:e.automaticGitFetchInterval},...r(e.providerHealthRefreshInterval)===r(q(i).providerHealthRefreshInterval)?{}:{providerHealthRefreshInterval:e.providerHealthRefreshInterval}}}:e.backgroundActivity)}function qn(e){let t=Kn(e);return Gn({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 Jn=Bn(Ee);a(Jn);function Yn(e,t){let n=e.providerInstances[t.instanceId];return n===void 0?xe(t.instanceId):he(n)}var Xn=[`codex`,`claudeAgent`,`cursor`,`grok`,`muse`,`pi`,`opencode`,`antigravity`].map(e=>Fe.make(e));function Zn(e,t,n){let r=[...Xn.map(e=>[Oe(e),e]),...n?.includeConfiguredInstances===!0?Object.entries(e).flatMap(([e,t])=>Xn.includes(t.driver)?[[Le.make(e),t.driver]]:[]):[]].find(([e,n])=>t(e,n));if(r===void 0)return null;let[i,a]=r,o=n?.defaultModelSelection,s=e[i]?.config;return o?.instanceId===i&&fe(s?.customModels).some(e=>e.slug===o.model)?o:{instanceId:i,model:ee[a]??se[a]??`gpt-6-luna`}}function Qn(e,t,n){let r=e.sourceControlWriterModelSelection;if(!r||!Ue(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&&De(i)&&Te(i)?r:e.textGenerationModelSelection}function $n(e,t,n){let r=e.reviewGuideModelSelection;if(r&&Ue(e,n,r.instanceId)){let e=t?.find(e=>e.instanceId===r.instanceId);if(t===void 0||e?.enabled===!0&&De(e)&&Te(e))return r}return Qn(e,t,n)}function er(e,t={}){return{favorites:e.favorites??t.favorites??[],providerModelPreferences:e.providerModelPreferences??t.providerModelPreferences??{}}}function tr(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 nr=new Set([`continueThreadsAfterServerUpdate`,`sidebarAutoSettleAfterDays`,`sidebarAutoSettleOnMerge`,`autoResumeLimitedThreads`,`snoozeLimitedThreads`,`newWorktreesStartFromOrigin`,`sourceControlWritingStyle`,`textGenerationModelSelection`]);function rr(e){let t={},n={};for(let[r,i]of Object.entries(e))nr.has(r)?t[r]=i:n[r]=i;return{sharedPatch:t,localPatch:n}}function ir(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)||!Yn(n,{...n.textGenerationModelSelection,...e.textGenerationModelSelection}))&&(e=pe(e,[`textGenerationModelSelection`])),t?.threadRestartContinuation===!0?e:pe(e,[`continueThreadsAfterServerUpdate`])}function ar(e){return e.connection.phase===`connected`&&e.serverConfig?.environment.capabilities.threadAutoSettlement===!0}function or(e){let t=e.atom(Pe(qe.pipe(i(e=>ue(e.state)))),{initialValue:Ze});return{stateAtom:t,stateValueAtom:n(e=>ie(me(e(t)),()=>Ze)).pipe(v(`relay-environment-discovery-value`)),refresh:Je(e,{label:`relay-environment-discovery:refresh`,concurrency:{mode:`singleFlight`,key:()=>`refresh`},execute:e=>qe.pipe(ce(e=>e.refresh))})}}var sr=or(tt);function cr(e,t){return{...t,environmentId:e,label:t.entry.target.label,displayUrl:nt(t.entry),relayManaged:Ke(t.entry)}}function lr(){let e=(0,E.c)(7),t=h(S.catalogValueAtom),n=h(S.networkStatusValueAtom),r=h(Ot.presentationsAtom),i;e[0]===r?i=e[1]:(i=[...r.entries()].map(ur),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 ur(e){let[t,n]=e;return cr(t,n)}function dr(){return h(rt)}function fr(e){let t=(0,E.c)(3),{presentation:n}=jt(e),r;return t[0]!==e||t[1]!==n?(r=e===null||n===null?null:cr(e,n),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function pr(){return fr(dr())}function mr(e){let t=(0,E.c)(2),n=st(e),r;return t[0]===n?r=t[1]:(r=re(n)?n.value.httpBaseUrl:null,t[0]=n,t[1]=r),r}function hr(){return h(sr.stateValueAtom)}function gr(){return h(kt.environmentIdsAtom)}function _r(){return h(kt.identitiesAtom)}function vr(){return h(kt.pullRequestsSupportedAtom)}var yr=`[CLIENT_SETTINGS]`,br=new Set,xr=new Set,Sr=Se,Y=`pending`,X=null,Cr=0,wr=Promise.resolve(),Tr=0;function Er(){for(let e of br)e()}function Dr(){for(let e of xr)e()}function Z(){return Sr}function Or(e){Sr=e,Er()}function kr(e){Y!==e&&(Y=e,Dr())}function Ar(e){return br.add(e),Q().catch(()=>void 0),()=>{br.delete(e)}}function jr(){return Y===`ready`}function Mr(){return Y}function Nr(e){return xr.add(e),Q().catch(()=>void 0),()=>{xr.delete(e)}}async function Q(){if(Y===`ready`)return;if(X)return X;let e=Cr;kr(Y===`failed`||Y===`retrying`?`retrying`:`pending`);let t=(async()=>{try{let t=await sn().persistence.getClientSettings();if(e!==Cr)return;t&&Or({...Se,...t}),kr(`ready`)}catch(t){throw e===Cr&&kr(`failed`),console.error(`${yr} hydrate failed`,{operation:`hydrate`,...y(t)}),t}})().finally(()=>{X===t&&(X=null)});return X=t,X}var Pr=e=>sn().persistence.setClientSettings(e);function Fr(e){let t=wr.then(e);return wr=t.then(()=>void 0,()=>void 0),t}function Ir(e,t=Pr){let n=Y!==`ready`||Tr>0;return n?Tr+=1:Or({...Z(),...e}),Fr(async()=>{if(n)try{Y!==`ready`&&await Q(),Or({...Z(),...e})}finally{--Tr}await t(Z())}).catch(e=>{console.error(`${yr} persist failed`,{operation:`persist`,...y(e)})})}async function Lr(e,t=Pr){return Fr(async()=>{for(Y!==`ready`&&await Q();;){let n=Z(),r=e(n);if(await t(r),Z()===n)return Or(r),r}})}var Rr=new Set(We(Ee.fields));function zr(e){let t={},n={};for(let[r,i]of Object.entries(e))Rr.has(r)?t[r]=i:n[r]=i;return{serverPatch:t,clientPatch:n}}function Br(){return Z()}function Vr(){return Q()}function Hr(){return(0,T.useSyncExternalStore)(Nr,jr,Ur)}function Ur(){return!1}function Wr(){return(0,T.useSyncExternalStore)(Nr,Mr,Gr)}function Gr(){return`pending`}function $(){return(0,T.useSyncExternalStore)(Ar,Z,Kr)}function Kr(){return Se}function qr(e,t){return{...t,...e,...er(e,t)}}var Jr=new Set;function Yr(e,t){let n=(0,E.c)(8),r=$(),i=Hr(),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},n[0]=a):a=n[0];let o=C(x.updateSettings,a),s,c;n[1]!==r||n[2]!==e||n[3]!==i||n[4]!==o||n[5]!==t?(s=()=>{if(!e||!t||!i||Jr.has(e))return;let n=tr(t,r);n&&(Jr.add(e),o({environmentId:e,input:{patch:n}}).finally(()=>Jr.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,T.useEffect)(s,c)}function Xr(e,t){let n=(0,E.c)(6),r=$(),i;n[0]!==r||n[1]!==e?(i=qr(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 Zr(e){let t=(0,E.c)(3),n=$(),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 Qr(e){return e.settingsHydrated?e.paletteThemeActive&&!e.paletteThemeAllowsArtwork&&e.mode===`artwork`?`pill`:e.mode:`none`}function $r(){let e=(0,E.c)(7),t=Hr(),n=$().environmentIdentificationMode,{resolvedTheme:r,theme:i,themeHalves:a}=In(),o=(0,T.useSyncExternalStore)(Ct,_t,ei),s;if(e[0]!==n||e[1]!==o||e[2]!==r||e[3]!==t||e[4]!==i||e[5]!==a){let c=mt(i,a,r),l=gt(c);s=Qr({mode:n,settingsHydrated:t,paletteThemeActive:o!==null||l!==null,paletteThemeAllowsArtwork:o??lt(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 ei(){return null}async function ti(e,t){return(e.favorites===null||e.providerModelPreferences===null)&&await Vr(),{...tr(e,Br()),...t}}function ni(e){let t=(0,E.c)(6),n;t[0]===e?n=t[1]:(n=e?x.settingsValueAtom(e):ii,t[0]=e,t[1]=n);let r=h(n),i=C(x.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 ti(r,t)}catch{b.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 ri(e){let t=(0,T.use)(_e),n=(0,T.useRef)(new Map),r=ni(e);return(0,T.useCallback)(async(i,a)=>{if(!e)return;let o=x.settingsValueAtom(e),s=t.get(o);if(!s)return;if(s.favorites===null)try{await Vr()}catch{b.add({type:`error`,title:`Favorites not saved`,description:`Could not load saved model preferences. Try again.`});return}let c=t.get(o)??s,l=er(c,Br()).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&&Ge(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 ii=n(null);function ai(e){let t=(0,E.c)(5),n;t[0]===e?n=t[1]:(n=e?x.settingsValueAtom(e):ii,t[0]=e,t[1]=n);let r=h(n),i=$();Yr(e,r);let a=r??we,o;return t[2]!==i||t[3]!==a?(o=er(a,i),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}function oi(e,t){let n=(0,E.c)(2),r;n[0]===e?r=n[1]:(r=x.settingsValueAtom(e),n[0]=e,n[1]=r);let i=h(r);return Yr(e,i),Xr(i??we,t)}function si(e){let t=(0,E.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={reportFailure:!1},t[0]=n):n=t[0];let r=C(x.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 ci(e){let t=pr(),n=h(it);return Yr(t?.environmentId??null,t?.serverConfig?.settings??null),Xr(n,e)}var li=`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 ui(){let e=(0,E.c)(2),t=pr(),n;return e[0]===t?n=e[1]:(n=t!==null||!et(),e[0]=t,e[1]=n),n}function di(e){let t=(0,E.c)(3),r=e!==void 0&&e,{environments:i}=lr(),a;return t[0]!==i||t[1]!==r?(a=n(e=>i.filter(ar).flatMap(t=>{let n=e(ct.sessionStateAtom(t.environmentId));if(r&&n._tag===`Initial`)return[t.environmentId];let i=n._tag===`Failure`?null:m(me(n));return i!==null&&je(i,`settings:write`)?[t.environmentId]:[]})),t[0]=i,t[1]=r,t[2]=a):a=t[2],h(a)}function fi(e){let t=(0,E.c)(10);at(e,s);let n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={label:`server settings update`,reportFailure:!1},t[0]=n):n=t[0];let r=C(x.updateSettings,n),{environments:i}=lr(),a;t[1]!==i||t[2]!==r?(a=async e=>{let t=await r(e);if(t._tag===`Failure`&&!Ye(t)){let n=i.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,r=Qe(t);b.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]=i,t[2]=r,t[3]=a):a=t[3];let o=a,l=di(!0),u;return t[4]!==e||t[5]!==i||t[6]!==r||t[7]!==o||t[8]!==l?(u=t=>{let{serverPatch:n,clientPatch:a}=zr(t),s=e===null||c(n).every(t=>ot(e,t));if(Object.keys(n).length>0&&!s&&b.add({type:`warning`,title:`Setting not saved`,description:`This connection lacks permission to change settings on ${i.find(t=>t.environmentId===e)?.label??`the selected environment`}.`}),Object.keys(n).length>0&&s){let{sharedPatch:t,localPatch:a}=rr(n),s=_i;if(Object.keys(a).length>0&&(e?o({environmentId:e,input:{patch:a}}):s()),Object.keys(t).length>0){let n=i.find(t=>t.environmentId===e)?.serverConfig?.settings,a=new Set(l);e&&a.add(e);let o=[],u=[];for(let r of a){let a=i.find(e=>e.environmentId===r),s=ir(t,a?.serverConfig?.environment.capabilities,a?.serverConfig?.settings,n,r===e);if(Object.keys(s).length!==0){if(p.get(ct.sessionStateAtom(r))._tag!==`Initial`&&!c(t).every(e=>ot(r,e))){u.push(a?.label??r);continue}o.push({environmentId:r,input:{patch:s}})}}o.length===0?s(u.length>0?`This connection lacks permission to change settings on ${u.join(`, `)}.`:a.size>0?`Update older servers to save this setting.`:void 0):Promise.all(o.map(async e=>({label:i.find(t=>t.environmentId===e.environmentId)?.label??e.environmentId,result:await r(e)}))).then(pi)}}Object.keys(a).length>0&&Ir(a)},t[4]=e,t[5]=i,t[6]=r,t[7]=o,t[8]=l,t[9]=u):u=t[9],u}function pi(e){let t=e.flatMap(gi);if(t.length===0)return;let n=e.filter(hi).map(mi);b.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 mi(e){let{label:t}=e;return t}function hi(e){let{result:t}=e;return t._tag===`Success`}function gi(e){let{label:t,result:n}=e;if(n._tag!==`Failure`||Ye(n))return[];let r=Qe(n);return[`Could not save on ${t}: ${r instanceof Error?r.message:`The save failed. Try reconnecting and saving again.`}`]}function _i(e){let t=e===void 0?li:e;return b.add({type:`warning`,title:`Setting not saved`,description:t})}function vi(e){return fi(e)}function yi(){return fi(pr()?.environmentId??null)}function bi(){return xi}function xi(e){return Ir(e)}export{Lt as $,hr as A,Bn as B,mr as C,pr as D,lr as E,Hn as F,Dn as G,ln as H,q as I,on as J,In as K,Gn as L,Zn as M,$n as N,dr as O,Qn as P,Ft as Q,qn as R,fr as S,gr as T,un as U,W as V,Sn as W,Vt as X,Yt as Y,zt as Z,ri as _,Ir as a,vi as b,Hr as c,ai as d,Rt as et,oi as f,ui as g,ci as h,qr as i,jt as it,sr as j,vr as k,Wr as l,si as m,Vr as n,It as nt,Lr as o,Yr as p,sn as q,Br as r,Ot as rt,Zr as s,li as t,Bt as tt,$r as u,bi as v,_r as w,yi as x,ni as y,Kn as z};
3
- //# sourceMappingURL=useSettings-B_WzhJqU.js.map