@p4code/cli 0.9.8 → 0.9.9

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 (303) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-CLYknQ8Q.mjs → binCli-CQsXscQ2.mjs} +1878 -1663
  3. package/dist/client/.vite/manifest.json +2014 -1996
  4. package/dist/client/assets/{2NI2N5EU-D0DC_qzC.js → 2NI2N5EU-aTesTRUs.js} +2 -2
  5. package/dist/client/assets/{4UO7MD6I-CUZSFvTG.js → 4UO7MD6I-fOcXoLqw.js} +2 -2
  6. package/dist/client/assets/{5B3SVYGG-5ibYwkgG.js → 5B3SVYGG-CVlBycCk.js} +2 -2
  7. package/dist/client/assets/{5GK6JWQ2-DEtRbsDS.js → 5GK6JWQ2-UdJh1ROk.js} +2 -2
  8. package/dist/client/assets/{5N7A7DKN-CwQP1dKj.js → 5N7A7DKN-LpXLPis9.js} +2 -2
  9. package/dist/client/assets/{5OC2THR4-BriFYPQx.js → 5OC2THR4-pX1yQcrA.js} +2 -2
  10. package/dist/client/assets/{5S6HY5KT-BBNxENgt.js → 5S6HY5KT-CTBX-e9M.js} +2 -2
  11. package/dist/client/assets/{6IMQ5BUJ-xl7U-rLA.js → 6IMQ5BUJ-DL11cDPG.js} +2 -2
  12. package/dist/client/assets/{6OLKWJ4F-BGGDxoUW.js → 6OLKWJ4F-TXqcGdqI.js} +2 -2
  13. package/dist/client/assets/{74OO7NKP-9vkDTl8T.js → 74OO7NKP-DNrMi93b.js} +2 -2
  14. package/dist/client/assets/{75O6YZUN-B9ocscUs.js → 75O6YZUN-CwCbVMzG.js} +2 -2
  15. package/dist/client/assets/{77XECAW3-DQ3S_7U7.js → 77XECAW3-BuuKvNS0.js} +2 -2
  16. package/dist/client/assets/{ABYRPUBD-DFu3UszL.js → ABYRPUBD-BxNthVYO.js} +2 -2
  17. package/dist/client/assets/AlertDialogRoot-BDlDnUeW.js +2 -0
  18. package/dist/client/assets/{AnimatedHeight-DEH7bEtg.js → AnimatedHeight-Baj5Pa60.js} +2 -2
  19. package/dist/client/assets/{AuthSurfaceShell-DDlvsg4m.js → AuthSurfaceShell-DCBmguf9.js} +2 -2
  20. package/dist/client/assets/{BB2UYUI2-DzdR7ZyB.js → BB2UYUI2-Bg3EJQg5.js} +2 -2
  21. package/dist/client/assets/{BUM34MOA-LkeHTV8a.js → BUM34MOA-CgVaLfn6.js} +2 -2
  22. package/dist/client/assets/{CEQABKGZ-BX1CWous.js → CEQABKGZ-BpDmef7u.js} +2 -2
  23. package/dist/client/assets/{CXAC5362-DMlUWuvv.js → CXAC5362-uHOdbo6J.js} +2 -2
  24. package/dist/client/assets/ChatGptUsageButton-CcLiWo0d.js +2 -0
  25. package/dist/client/assets/ChatMarkdown-DQk9NI7y.js +48 -0
  26. package/dist/client/assets/{CheckboxIndicator-DSA5Ujdj.js → CheckboxIndicator-CvUY7aCo.js} +2 -2
  27. package/dist/client/assets/{ClippedText-DlUFaCzw.js → ClippedText-Bz4usJaN.js} +2 -2
  28. package/dist/client/assets/CodexSetupSection.logic-fnotucae.js +2 -0
  29. package/dist/client/assets/{ComboboxClear-DkaA60b7.js → ComboboxClear-BWxvz8Y9.js} +2 -2
  30. package/dist/client/assets/{ComboboxGroupLabel-AEuoHUH8.js → ComboboxGroupLabel-B9uepPCe.js} +2 -2
  31. package/dist/client/assets/{CommandBlock-BUHVWYBr.js → CommandBlock-ConSzQ7T.js} +2 -2
  32. package/dist/client/assets/{ComposerPromptEditor-zRTz5xec.js → ComposerPromptEditor-Dh9Y0crA.js} +11 -11
  33. package/dist/client/assets/{CompositeRoot-38NDvFsA.js → CompositeRoot-XnJ7Nzli.js} +2 -2
  34. package/dist/client/assets/{ConnectionDiagnosisDetails-WKkRENJB.js → ConnectionDiagnosisDetails-DIM-B35q.js} +2 -2
  35. package/dist/client/assets/{ConnectionStatusDot-B-U5Wv6b.js → ConnectionStatusDot-CpPwqzkK.js} +2 -2
  36. package/dist/client/assets/{DRLTVNUE-CNkbJcIE.js → DRLTVNUE-9tvJLXhF.js} +2 -2
  37. package/dist/client/assets/{DYY6UVD2-Csqmb0Yg.js → DYY6UVD2-CXR9o7Qv.js} +2 -2
  38. package/dist/client/assets/{DevicePanel-B3G_KDJN.js → DevicePanel-Oy_RHjOo.js} +2 -2
  39. package/dist/client/assets/{DeviceSetup-DqTJRSli.js → DeviceSetup-ct6xlJYm.js} +2 -2
  40. package/dist/client/assets/{DialogTitle-Bz-7IYD8.js → DialogTitle-DdTujj5B.js} +2 -2
  41. package/dist/client/assets/{DiffCommentAnnotation-C3_yEiAB.js → DiffCommentAnnotation-C-L5yt6X.js} +2 -2
  42. package/dist/client/assets/{DiffFileTree-BJxoYt-I.js → DiffFileTree-C5oMLRG9.js} +2 -2
  43. package/dist/client/assets/DiffPanel-CE2e4NYA.js +2 -0
  44. package/dist/client/assets/{DiffWorkerPoolProvider-DPfZNt42.js → DiffWorkerPoolProvider-K9JsvPrH.js} +3 -3
  45. package/dist/client/assets/{EmbeddedDesign-CsCt-RW1.js → EmbeddedDesign-xOusO8oo.js} +5 -5
  46. package/dist/client/assets/{EnvironmentMachineIcon-CKfntUmE.js → EnvironmentMachineIcon-BrGxJPP_.js} +2 -2
  47. package/dist/client/assets/{ExpandableText-DGu2RH_j.js → ExpandableText-auxbX5_6.js} +2 -2
  48. package/dist/client/assets/{FNOVOB4O-CH8BTfJM.js → FNOVOB4O-BmZ9pVZx.js} +2 -2
  49. package/dist/client/assets/{FieldControl-DAh0lUDV.js → FieldControl-DfaF5AW8.js} +2 -2
  50. package/dist/client/assets/{FileDiff-C1enHrMi.js → FileDiff-BTNP8QcY.js} +2 -2
  51. package/dist/client/assets/{FilePreviewPanel-67DQ3_gp.js → FilePreviewPanel-m6c5KXjS.js} +4 -4
  52. package/dist/client/assets/{FoldedSettingsSection-CILGGC6I.js → FoldedSettingsSection-BTB3Pbv2.js} +2 -2
  53. package/dist/client/assets/{FormContext-BdrDIRv0.js → FormContext-B_ZMFN7l.js} +2 -2
  54. package/dist/client/assets/{HDGCDEEZ-Ox1-cFjL.js → HDGCDEEZ-JiOhjq7U.js} +2 -2
  55. package/dist/client/assets/{HSJLKHB7-BEBG51eo.js → HSJLKHB7-Bd0iumEG.js} +2 -2
  56. package/dist/client/assets/{Icons-C-FXpOud.js → Icons-BP6jlahF.js} +2 -2
  57. package/dist/client/assets/Input-B9nob0l2.js +2 -0
  58. package/dist/client/assets/JZOYTAAL-0AVwCd1G.js +1 -0
  59. package/dist/client/assets/{K3MD6TGW-DhfhwRRq.js → K3MD6TGW-B2s2l_Ok.js} +2 -2
  60. package/dist/client/assets/{K7RP3OMA-DdE8zx2_.js → K7RP3OMA-DEvHDTPu.js} +2 -2
  61. package/dist/client/assets/{KeybindingsSettings.logic-Ddu7cDVA.js → KeybindingsSettings.logic-CkmobJKX.js} +2 -2
  62. package/dist/client/assets/{LHDIQX7Q-_CTEfstz.js → LHDIQX7Q-D06sm2YF.js} +2 -2
  63. package/dist/client/assets/{LUXOKEGN-BZTFKFlr.js → LUXOKEGN-A74rm75g.js} +2 -2
  64. package/dist/client/assets/{MathTypeset-hiZgZUOa.js → MathTypeset-Vm1FBYDj.js} +2 -2
  65. package/dist/client/assets/{N3JZAHOW-CC607oJ3.js → N3JZAHOW-BCbSRiUS.js} +2 -2
  66. package/dist/client/assets/{NUIALGQ3-YZiFnb1D.js → NUIALGQ3-DmGUeCU6.js} +2 -2
  67. package/dist/client/assets/{NoProjectsHero-BaAbresy.js → NoProjectsHero-BBiWXq8t.js} +2 -2
  68. package/dist/client/assets/{O65XPQGZ-CJWG3hrr.js → O65XPQGZ-859wHUVg.js} +2 -2
  69. package/dist/client/assets/{O7XIQ6OM-CO58SxOd.js → O7XIQ6OM-BSsC7pLO.js} +2 -2
  70. package/dist/client/assets/{OFQON5FD-ZVCn5Afz.js → OFQON5FD-BjECyhxL.js} +2 -2
  71. package/dist/client/assets/{P4ConnectAccountPages-nuGk_jH6.js → P4ConnectAccountPages-Cqk-Frva.js} +2 -2
  72. package/dist/client/assets/{P4ConnectSidebarSignIn-DMU_ZGur.js → P4ConnectSidebarSignIn-wL7BP9rR.js} +2 -2
  73. package/dist/client/assets/{PJQHF43J-Dyo99try.js → PJQHF43J-CuSzd3x-.js} +2 -2
  74. package/dist/client/assets/PanelLayoutControls-DXgwWyzK.js +216 -0
  75. package/dist/client/assets/{PierreEntryIcon-BGnGqbZS.js → PierreEntryIcon-CDSrlZTw.js} +2 -2
  76. package/dist/client/assets/{PopoverHandle-BGTDdU32.js → PopoverHandle-Bf0PlJ6j.js} +2 -2
  77. package/dist/client/assets/PreviewPanel-B7EzPl1x.js +2 -0
  78. package/dist/client/assets/{ProjectDefaultsSettings-B8-DHhbT.js → ProjectDefaultsSettings-BRi9-O_X.js} +2 -2
  79. package/dist/client/assets/ProjectFavicon-Cf1XjP8U.js +3 -0
  80. package/dist/client/assets/{ProjectIconPickerDialog-D_7XapzM.js → ProjectIconPickerDialog-DSRXK7Zv.js} +2 -2
  81. package/dist/client/assets/{ProjectMonogram-BRycZjMZ.js → ProjectMonogram-BJooqIM-.js} +2 -2
  82. package/dist/client/assets/{ProviderAuthTerminal-ejODeZci.js → ProviderAuthTerminal-8VrYkUNI.js} +2 -2
  83. package/dist/client/assets/ProviderModelPicker-mxdF5wUN.js +2 -0
  84. package/dist/client/assets/{ProviderSettingsForm-TxiFYWfI.js → ProviderSettingsForm-ByFYLn1K.js} +2 -2
  85. package/dist/client/assets/PullRequestCodeTab-DCUJxgcQ.js +6 -0
  86. package/dist/client/assets/{RHNBAITX-B2MpzGNB.js → RHNBAITX-Z04dR_uf.js} +2 -2
  87. package/dist/client/assets/{ReadOnlySourcePreview-Clh1I7db.js → ReadOnlySourcePreview-CiVudVcz.js} +2 -2
  88. package/dist/client/assets/{RenderErrorBoundary-UQ8iqwRx.js → RenderErrorBoundary-C8jlNO8Q.js} +3 -3
  89. package/dist/client/assets/{SLD4V6NK-DDlJ2xA8.js → SLD4V6NK-CTh_lt_F.js} +2 -2
  90. package/dist/client/assets/{ScheduledTasksSettings-VxM8-W1a.js → ScheduledTasksSettings-DfwR9Auj.js} +4 -4
  91. package/dist/client/assets/{ScopedSwitch-B9HsEBfG.js → ScopedSwitch-6K10bTo0.js} +2 -2
  92. package/dist/client/assets/{ScrollAreaCorner-DaAMqe_x.js → ScrollAreaCorner-Bstf_gNQ.js} +2 -2
  93. package/dist/client/assets/{SecretInput-Dfsqp38C.js → SecretInput-BTBcl8SC.js} +2 -2
  94. package/dist/client/assets/{SelectScrollUpArrow-CBbON2Cr.js → SelectScrollUpArrow-BAwxXUi-.js} +2 -2
  95. package/dist/client/assets/SelfImproveSettingsSection-DwtwZ9He.js +2 -0
  96. package/dist/client/assets/{SettingsPanels-D16J4fBs.js → SettingsPanels-BnfeCIPg.js} +7 -7
  97. package/dist/client/assets/{SettingsPanels.logic-DLPcHVw0.js → SettingsPanels.logic-BM52qF-a.js} +2 -2
  98. package/dist/client/assets/{SettingsScopeNotice-CLuK5ZOQ.js → SettingsScopeNotice-CPP-_wXt.js} +2 -2
  99. package/dist/client/assets/{SidebarStageBackdrop-Bgae69g1.js → SidebarStageBackdrop-ClK_nT_C.js} +2 -2
  100. package/dist/client/assets/{T3PCR2KE-DQ6cSkUG.js → T3PCR2KE-O2OwSAZh.js} +2 -2
  101. package/dist/client/assets/{TKWO2OVW-DlInq0TH.js → TKWO2OVW-BxZ4r_GJ.js} +2 -2
  102. package/dist/client/assets/{TSHNXIZL-DL8cfasx.js → TSHNXIZL-6843lSfx.js} +2 -2
  103. package/dist/client/assets/{ThemeEditorPanel-Dhd_0CzC.js → ThemeEditorPanel-B_Mpp-fO.js} +2 -2
  104. package/dist/client/assets/ThreadTerminalDrawer-3sb2Ksna.js +5 -0
  105. package/dist/client/assets/{TooltipViewport-UaR0JZsl.js → TooltipViewport-CEOeTVyb.js} +2 -2
  106. package/dist/client/assets/{UQJE5E4I-WMwM-nEH.js → UQJE5E4I-DIek-a8V.js} +2 -2
  107. package/dist/client/assets/{USNYFO5S-D-mgcpxb.js → USNYFO5S-l_vgf0I4.js} +2 -2
  108. package/dist/client/assets/{Virtualizer-CUj2Cqvm.js → Virtualizer-CttujTBW.js} +2 -2
  109. package/dist/client/assets/{WEVWDWVA-CiAqWYrx.js → WEVWDWVA-DASU9Cts.js} +2 -2
  110. package/dist/client/assets/{WorkspaceBreadcrumb-D8GTBuA5.js → WorkspaceBreadcrumb-CQH9TmFi.js} +2 -2
  111. package/dist/client/assets/{WorkspacePageContainer-BKXvWv-9.js → WorkspacePageContainer-E5ZuTsSl.js} +2 -2
  112. package/dist/client/assets/{WorkspacePageHeader-zMZD9Zz8.js → WorkspacePageHeader-DGopnQZ2.js} +2 -2
  113. package/dist/client/assets/{X5RFHQXM-YS48_sFp.js → X5RFHQXM-B52DJ-qb.js} +2 -2
  114. package/dist/client/assets/{X62E3GBT-C444MNd3.js → X62E3GBT-Ccgsn5Dj.js} +2 -2
  115. package/dist/client/assets/{XBNEOJTC-0O1bjE8y.js → XBNEOJTC-BRptYPNn.js} +2 -2
  116. package/dist/client/assets/{YHV2MVVZ-Coy_OiWg.js → YHV2MVVZ-D_wcLZ-W.js} +2 -2
  117. package/dist/client/assets/{YURCZMG2-Lc2Tv_HR.js → YURCZMG2-DP6lArrr.js} +2 -2
  118. package/dist/client/assets/{YVG2LODB-CWUTdxUc.js → YVG2LODB-CgFYuKDa.js} +2 -2
  119. package/dist/client/assets/_chat-Vh73A6rC.js +45 -0
  120. package/dist/client/assets/{_chat.design-CajRPBez.js → _chat.design-_0R3HMjq.js} +2 -2
  121. package/dist/client/assets/{_chat.index-OsM078CN.js → _chat.index-DhmrbSHU.js} +2 -2
  122. package/dist/client/assets/{_chat.new-BI8wuTGQ.js → _chat.new-Byb4mhMY.js} +2 -2
  123. package/dist/client/assets/_chat.pull-requests-BNzVcYEB.js +2 -0
  124. package/dist/client/assets/{alert-RktpFBv6.js → alert-CqueYfb9.js} +2 -2
  125. package/dist/client/assets/{assetUrls-COCOS1bm.js → assetUrls-d3y14MLX.js} +2 -2
  126. package/dist/client/assets/assets-FbkZMhUb.js +2 -0
  127. package/dist/client/assets/{browserHistoryStore-CBcm7bje.js → browserHistoryStore-CjWZgU2Q.js} +2 -2
  128. package/dist/client/assets/{browserLinkTarget-D-M5yQc0.js → browserLinkTarget-IsSd9GTV.js} +2 -2
  129. package/dist/client/assets/{checkbox-vIS3kn6A.js → checkbox-BPr09F_k.js} +2 -2
  130. package/dist/client/assets/{color-picker-vozMHo5G.js → color-picker-roKqOkuS.js} +2 -2
  131. package/dist/client/assets/{combobox-CzEFd5LA.js → combobox-CEzOq8mg.js} +2 -2
  132. package/dist/client/assets/{command-CLf9yckl.js → command-i_eKJj3B.js} +2 -2
  133. package/dist/client/assets/{connect-BoLhf5rG.js → connect-DyZ-pjcy.js} +2 -2
  134. package/dist/client/assets/{connect-agent-BUjhhqbv.js → connect-agent-dJ-CRJsT.js} +2 -2
  135. package/dist/client/assets/{design-LeaOcSZl.js → design-CXl7HVrT.js} +2 -2
  136. package/dist/client/assets/device-MyE56wi2.js +2 -0
  137. package/dist/client/assets/{dialog-B69qrNtB.js → dialog-CKG1aUT3.js} +2 -2
  138. package/dist/client/assets/{diffRendering-DU37Uneg.js → diffRendering-COA7wG72.js} +2 -2
  139. package/dist/client/assets/{dist-CtnQm06p.js → dist-CYq41icZ.js} +3 -3
  140. package/dist/client/assets/{draft-input-BUsvwNIU.js → draft-input-DvNQZghL.js} +2 -2
  141. package/dist/client/assets/{duoViewer-CPd6U9x5.js → duoViewer-CjvM1rB0.js} +2 -2
  142. package/dist/client/assets/{dynamic-DDiw9bBP.js → dynamic-BZ3kW5ih.js} +2 -2
  143. package/dist/client/assets/{embeddedScripts-DjnGPWZd.js → embeddedScripts-BLmMNkyP.js} +2 -2
  144. package/dist/client/assets/{empty-B1FuCXoG.js → empty-D6SdnsPw.js} +2 -2
  145. package/dist/client/assets/entities-D8ZKPC2e.js +2 -0
  146. package/dist/client/assets/{fileLinks-DzCsEQpS.js → fileLinks-CNAL-7G6.js} +2 -2
  147. package/dist/client/assets/{fileTreeExpansion-eHhwnC6l.js → fileTreeExpansion-B_6v-e30.js} +2 -2
  148. package/dist/client/assets/{getDiffFileInput-eC26FmPf.js → getDiffFileInput-DovUC0XJ.js} +2 -2
  149. package/dist/client/assets/{guideRunStore-CugTzRRn.js → guideRunStore-7uPQQ44U.js} +2 -2
  150. package/dist/client/assets/{htmlRender-CcVnPpcS.js → htmlRender-hlYiIm7u.js} +2 -2
  151. package/dist/client/assets/{index-CZlF3wQ9.js → index-DD6u-vDm.js} +3 -3
  152. package/dist/client/assets/{input-group-CevCumL6.js → input-group-APyqVexM.js} +2 -2
  153. package/dist/client/assets/{input-D8R-9BO3.js → input-yNgBXsRj.js} +2 -2
  154. package/dist/client/assets/{kbd-Fy-v90ND.js → kbd-Cr4XEhSh.js} +2 -2
  155. package/dist/client/assets/{keybindings-DMghyE3A.js → keybindings-hzk4_Sgu.js} +2 -2
  156. package/dist/client/assets/{lazy-BA6aXmZc.js → lazy-CXsQYM2D.js} +4 -4
  157. package/dist/client/assets/{lazyRouteComponent-DVNAnyiv.js → lazyRouteComponent-tnhWsSYX.js} +2 -2
  158. package/dist/client/assets/{link-ci_EPfAz.js → link-CmpZDWcG.js} +2 -2
  159. package/dist/client/assets/{linkedPrompt-CPHt2jcO.js → linkedPrompt-DgAytF6c.js} +2 -2
  160. package/dist/client/assets/main-CNcsYwUg.js +37 -0
  161. package/dist/client/assets/{mediaReference-CZmbKByR.js → mediaReference-DNNV5BY5.js} +2 -2
  162. package/dist/client/assets/{mediaSource-DX6oP8x9.js → mediaSource-DI8dP4uu.js} +2 -2
  163. package/dist/client/assets/{number-field-CmK8oJMM.js → number-field-DcRWl9B0.js} +2 -2
  164. package/dist/client/assets/{observeResize-YxzDUnDW.js → observeResize-DjqKtKLK.js} +2 -2
  165. package/dist/client/assets/{onboarding-eClefFKp.js → onboarding-CyFz37eL.js} +2 -2
  166. package/dist/client/assets/openFileInPreview-rYwhIeVk.js +2 -0
  167. package/dist/client/assets/{p4ProjectFile-BC2tSEs4.js → p4ProjectFile-CT0gLoXX.js} +2 -2
  168. package/dist/client/assets/{pair-BUZJqgA1.js → pair-BOq1UYDI.js} +2 -2
  169. package/dist/client/assets/{pendingSendStore-C5UcT8R0.js → pendingSendStore-BoFRcmy5.js} +2 -2
  170. package/dist/client/assets/{phoneViewer-fmWF20qy.js → phoneViewer-BtDABBh2.js} +2 -2
  171. package/dist/client/assets/{pierre-icons-DlYshDSm.js → pierre-icons-LoH9zCdH.js} +2 -2
  172. package/dist/client/assets/{popover-CtJuJW_f.js → popover-DVeZET9D.js} +2 -2
  173. package/dist/client/assets/{preview-D-Cm6hTR.js → preview-D9IkIo7q.js} +2 -2
  174. package/dist/client/assets/{preview-DtLn0r5X.js → preview-oweHYD4S.js} +2 -2
  175. package/dist/client/assets/{previewMiniPlayerStore-BQgCK2RM.js → previewMiniPlayerStore-DrP4x3Ce.js} +2 -2
  176. package/dist/client/assets/primary-DXTkE8Z6.js +2 -0
  177. package/dist/client/assets/primaryCloudLinkState-CZVS0Wwo.js +2 -0
  178. package/dist/client/assets/projectFilesQueryState-Cl_MU7SH.js +2 -0
  179. package/dist/client/assets/{projectScriptEditor-CwMYFrgO.js → projectScriptEditor-CfiaAaXj.js} +2 -2
  180. package/dist/client/assets/{providerSkills-DRtgduYo.js → providerSkills-CCJGD2Js.js} +2 -2
  181. package/dist/client/assets/{pullRequestDetail.logic-CqcRjGbR.js → pullRequestDetail.logic-4EhxvJSo.js} +4 -4
  182. package/dist/client/assets/{pullRequestIcons-Bk_-BZhA.js → pullRequestIcons-DyEIFm1n.js} +2 -2
  183. package/dist/client/assets/{pullRequestReviewStore-Br0qNCn2.js → pullRequestReviewStore-B55CEHY9.js} +2 -2
  184. package/dist/client/assets/pullRequests-DRm4lwgc.js +2 -0
  185. package/dist/client/assets/queries-BGbR-fUx.js +2 -0
  186. package/dist/client/assets/query-D-IVadFI.js +2 -0
  187. package/dist/client/assets/{radio-group-CQTaM9n2.js → radio-group-DIOJb--u.js} +2 -2
  188. package/dist/client/assets/{renderScheduler-fJB2sQwM.js → renderScheduler-3p9xZuHR.js} +2 -2
  189. package/dist/client/assets/{rightPanelStore-C5nnGDev.js → rightPanelStore-CRQRe1Cp.js} +2 -2
  190. package/dist/client/assets/runtime-CdX0UBlL.js +3 -0
  191. package/dist/client/assets/runtime-S0tnrkvE.js +6 -0
  192. package/dist/client/assets/{runtimeModeConfig-Htoh7tJb.js → runtimeModeConfig-BAFMgMrE.js} +2 -2
  193. package/dist/client/assets/{scheduledTasksSettings.logic-DRYrMw8R.js → scheduledTasksSettings.logic-CrhQwOvr.js} +3 -3
  194. package/dist/client/assets/{scroll-area-DJaTwtcr.js → scroll-area-DTOm0CbX.js} +2 -2
  195. package/dist/client/assets/{select-BFALokxW.js → select-CML8G0wN.js} +2 -2
  196. package/dist/client/assets/{selfImproveFindings-H2XgphDi.js → selfImproveFindings-DuRaHmql.js} +2 -2
  197. package/dist/client/assets/server-ELSEsqtb.js +2 -0
  198. package/dist/client/assets/session-DCntd6Nl.js +2 -0
  199. package/dist/client/assets/session-logic-CbKDK1qZ.js +26 -0
  200. package/dist/client/assets/{settings-BkLvGwfm.js → settings-CbkRsZQ6.js} +2 -2
  201. package/dist/client/assets/{settings.appearance-OuApP6hX.js → settings.appearance-BGbKeD2q.js} +2 -2
  202. package/dist/client/assets/settings.archived-DNDOvbYT.js +2 -0
  203. package/dist/client/assets/{settings.computer-use-DbtSE70m.js → settings.computer-use-Cl0y_o-b.js} +2 -2
  204. package/dist/client/assets/settings.connections-xy7hhFa0.js +2 -0
  205. package/dist/client/assets/{settings.data-controls-DqM0dqdr.js → settings.data-controls-Boy0foov.js} +2 -2
  206. package/dist/client/assets/settings.decisions-DUCJDJZC.js +2 -0
  207. package/dist/client/assets/{settings.designs-BIB7y5ry.js → settings.designs-DYuankA7.js} +2 -2
  208. package/dist/client/assets/settings.diagnostics-DgYvj0_x.js +2 -0
  209. package/dist/client/assets/{settings.general-D73jxwiz.js → settings.general-CrvvO6VU.js} +2 -2
  210. package/dist/client/assets/settings.integrations-Do9x2dXf.js +2 -0
  211. package/dist/client/assets/{settings.keybindings-DMI2SOqT.js → settings.keybindings-Q_21VUQP.js} +2 -2
  212. package/dist/client/assets/{settings.open-source-licenses-QRv0v3-V.js → settings.open-source-licenses-Cnz72Gu0.js} +2 -2
  213. package/dist/client/assets/settings.plugins-C9-DUFnM.js +5 -0
  214. package/dist/client/assets/{settings.projects-r-irj-Zr.js → settings.projects-BKMazKl9.js} +4 -4
  215. package/dist/client/assets/settings.providers-ouat2Ci1.js +3 -0
  216. package/dist/client/assets/{settings.scheduled-tasks-RWniN8Lw.js → settings.scheduled-tasks-DOmtQjNH.js} +2 -2
  217. package/dist/client/assets/{settings.snap-shot-D6hiK4XK.js → settings.snap-shot-609BnJ2S.js} +2 -2
  218. package/dist/client/assets/{settings.source-control-GPOjx565.js → settings.source-control-D1LmFmrq.js} +2 -2
  219. package/dist/client/assets/{settings.storage-CZsmFyZ8.js → settings.storage-CXdZfPhF.js} +2 -2
  220. package/dist/client/assets/settingsLayout-aLGl3ZXu.js +3 -0
  221. package/dist/client/assets/{sidebar-BDFu5cf2.js → sidebar-DMJE0zUg.js} +2 -2
  222. package/dist/client/assets/{sidebarProjectGrouping-CURnoavN.js → sidebarProjectGrouping-BAN1mSDk.js} +2 -2
  223. package/dist/client/assets/{skeleton-CIpn5ufH.js → skeleton-eiJFH0l9.js} +2 -2
  224. package/dist/client/assets/{sourceControl-DjMIOzv1.js → sourceControl-ChrSdv6h.js} +2 -2
  225. package/dist/client/assets/{sourceControlClients-C2uvUFSM.js → sourceControlClients-BDwX0klQ.js} +2 -2
  226. package/dist/client/assets/{spinner-t32AzjJr.js → spinner-H4tz4lLc.js} +2 -2
  227. package/dist/client/assets/{terminal-links-D6dqW3h9.js → terminal-links-D7Hzce_h.js} +2 -2
  228. package/dist/client/assets/{terminalSessions-DoRkjVz9.js → terminalSessions-DdR_bXtX.js} +2 -2
  229. package/dist/client/assets/{textarea-EVmRNBWL.js → textarea-CkmpNgx5.js} +2 -2
  230. package/dist/client/assets/{themePalette-01TQqdkx.js → themePalette-pZ7Ys_kT.js} +3 -3
  231. package/dist/client/assets/toast-BNQWmVQ-.js +2 -0
  232. package/dist/client/assets/{toggle-Dqrwe7LT.js → toggle-BDixfqRe.js} +2 -2
  233. package/dist/client/assets/{toggle-group-DS75Gx6B.js → toggle-group-DV__8G6T.js} +2 -2
  234. package/dist/client/assets/{tooltip-B1rLXiVx.js → tooltip-DsRaXpYk.js} +2 -2
  235. package/dist/client/assets/{uiStateStore-_K2mvZYL.js → uiStateStore-Bo1Umjei.js} +2 -2
  236. package/dist/client/assets/{usage-DwGF-B0Q.js → usage-BPmOvYDv.js} +2 -2
  237. package/dist/client/assets/{usageAccess-YanE4PaX.js → usageAccess-BXUmTDe1.js} +2 -2
  238. package/dist/client/assets/{usageFormat-Bgm6YXnR.js → usageFormat-xrTYBhxI.js} +2 -2
  239. package/dist/client/assets/{usageShortcuts-D6H92HUx.js → usageShortcuts-CQcKqXkw.js} +2 -2
  240. package/dist/client/assets/{use-atom-command-BT7sz8Lx.js → use-atom-command-REOTdDAa.js} +2 -2
  241. package/dist/client/assets/{useAriaLabelledBy-CCDZPAYX.js → useAriaLabelledBy-DVTboZ71.js} +2 -2
  242. package/dist/client/assets/useHandleNewThread-DYBNXS8y.js +2 -0
  243. package/dist/client/assets/{useLocation-CDlqpnf6.js → useLocation--dLSTvwv.js} +2 -2
  244. package/dist/client/assets/{useNavigate-mNhNGdvJ.js → useNavigate-DAhzXpNZ.js} +2 -2
  245. package/dist/client/assets/{useNavigateBack-zj9tpAPV.js → useNavigateBack-ClmMPFha.js} +2 -2
  246. package/dist/client/assets/{useP4ConnectAuthPrompt-CkJyw_jV.js → useP4ConnectAuthPrompt-CGiX3TE7.js} +2 -2
  247. package/dist/client/assets/{useParams-CZ_VOC6E.js → useParams-D_0yPfYl.js} +2 -2
  248. package/dist/client/assets/{usePermissionStatus-DFE8UnJC.js → usePermissionStatus-BGxDZxHH.js} +2 -2
  249. package/dist/client/assets/{usePullRequestActions-CVcuaade.js → usePullRequestActions-BOUPI3Y5.js} +2 -2
  250. package/dist/client/assets/{useRegisterFieldControl-gW7DDA6v.js → useRegisterFieldControl-DnspXZl4.js} +2 -2
  251. package/dist/client/assets/{useScopedModelAvailability-BCNsRHrC.js → useScopedModelAvailability-DD6NdaS0.js} +2 -2
  252. package/dist/client/assets/useSettings-BNjvPVd5.js +3 -0
  253. package/dist/client/assets/utils-D19Exirm.js +37 -0
  254. package/dist/client/assets/vcsRefInvalidation-BSyEzs8X.js +2 -0
  255. package/dist/client/assets/{welcome-CfpSLEhO.js → welcome-CJLDvQwx.js} +2 -2
  256. package/dist/client/index.html +1 -1
  257. package/dist/{renderer-B3Ia4LBS.mjs → renderer-DNRW9Bfa.mjs} +2 -2
  258. package/dist/{runtime-DvE0t3kv.mjs → runtime-KPwu-Er9.mjs} +89 -3
  259. package/package.json +1 -1
  260. package/dist/client/assets/AlertDialogRoot-Dxu9crTa.js +0 -2
  261. package/dist/client/assets/ChatGptUsageButton-CXEX1qrn.js +0 -2
  262. package/dist/client/assets/ChatMarkdown-yTbjRmgo.js +0 -48
  263. package/dist/client/assets/CodexSetupSection.logic-D3odRubx.js +0 -2
  264. package/dist/client/assets/DiffPanel-Bfxdj8td.js +0 -2
  265. package/dist/client/assets/Input-DWhR3WLZ.js +0 -2
  266. package/dist/client/assets/JZOYTAAL-K5yyV5fj.js +0 -1
  267. package/dist/client/assets/PanelLayoutControls-CwJW9Vo-.js +0 -216
  268. package/dist/client/assets/PreviewPanel-C914U2vc.js +0 -2
  269. package/dist/client/assets/ProjectFavicon-Bnd4lTxL.js +0 -3
  270. package/dist/client/assets/ProviderModelPicker-BigVoJfZ.js +0 -2
  271. package/dist/client/assets/PullRequestCodeTab-D99_acmK.js +0 -6
  272. package/dist/client/assets/ThreadTerminalDrawer-Bga-TMJR.js +0 -5
  273. package/dist/client/assets/_chat-BWNTWBCr.js +0 -45
  274. package/dist/client/assets/_chat.pull-requests-Alx1g9Xh.js +0 -2
  275. package/dist/client/assets/assets-B36wSN1M.js +0 -2
  276. package/dist/client/assets/device-D9IuUJmU.js +0 -2
  277. package/dist/client/assets/entities-Cd_YDhEa.js +0 -2
  278. package/dist/client/assets/main-om7hc1qE.js +0 -37
  279. package/dist/client/assets/openFileInPreview-H9M5FxLy.js +0 -2
  280. package/dist/client/assets/primary-CuSE-Dwp.js +0 -2
  281. package/dist/client/assets/primaryCloudLinkState-BsKyx6nh.js +0 -2
  282. package/dist/client/assets/projectFilesQueryState-FiXJc2AO.js +0 -2
  283. package/dist/client/assets/pullRequests-C9YbqDXl.js +0 -2
  284. package/dist/client/assets/queries-DMkaYL1H.js +0 -2
  285. package/dist/client/assets/query-B1dBedyO.js +0 -2
  286. package/dist/client/assets/runtime-B6yGAVz4.js +0 -6
  287. package/dist/client/assets/runtime-BhGr1QCf.js +0 -3
  288. package/dist/client/assets/server-Dc9414wM.js +0 -2
  289. package/dist/client/assets/session-B6T_Arzf.js +0 -2
  290. package/dist/client/assets/session-logic-BaSoFnqy.js +0 -26
  291. package/dist/client/assets/settings.archived-DLycLGH2.js +0 -2
  292. package/dist/client/assets/settings.connections-D8EmrGJK.js +0 -2
  293. package/dist/client/assets/settings.decisions-BNBjCRqL.js +0 -2
  294. package/dist/client/assets/settings.diagnostics-CZPZhIn-.js +0 -2
  295. package/dist/client/assets/settings.integrations-Vq3IT0_R.js +0 -2
  296. package/dist/client/assets/settings.plugins-Ddb8m4nE.js +0 -5
  297. package/dist/client/assets/settings.providers-Ce4kHZsP.js +0 -3
  298. package/dist/client/assets/settingsLayout-CthOqZyP.js +0 -3
  299. package/dist/client/assets/toast-UFTwkJWj.js +0 -2
  300. package/dist/client/assets/useHandleNewThread-nNF3Xnbt.js +0 -2
  301. package/dist/client/assets/useSettings-BAP_yCCK.js +0 -3
  302. package/dist/client/assets/utils-Dv1DrWoz.js +0 -37
  303. package/dist/client/assets/vcsRefInvalidation-BI3mMuIW.js +0 -2
@@ -0,0 +1,2 @@
1
+ import{n as e}from"./jsx-runtime-DJeoFXNw.js";import{Ax as t,CS as n,DC as r,FC as i,IC as a,LC as o,Nw as s,Nx as c,Ox as l,RC as u,Wc as d,as as f,dC as p,dv as m,eS as ee,fE as te,iE as h,iT as g,is as _,jS as ne,kC as v,kx as y,mC as b,pS as x,ps as S,q_ as C,qx as w,rS as T,rs as E,wC as D,zx as O}from"./utils-D19Exirm.js";import{N as k,_t as A,k as j,qt as M}from"./runtime-S0tnrkvE.js";import{$ as N,Q as P,Y as F,et as I,rt as L,tt as R}from"./entities-D8ZKPC2e.js";import{t as z}from"./runtime-CdX0UBlL.js";import{it as re}from"./useSettings-BNjvPVd5.js";import{t as B}from"./session-DCntd6Nl.js";import{n as V}from"./query-D-IVadFI.js";var H=e(),U=`~effect/PartitionedSemaphore`,W=e=>{let n=Math.max(0,e.permits);if(!Number.isFinite(n))return{[U]:U,capacity:n,available:p(n),take:()=>r,release:()=>p(n),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>t(e)};let l=n,d=0,f=i(),m=f[Symbol.iterator](),_=!1,y=0,x=e=>{if(e>0&&(y+=e),!_){_=!0;try{for(;y>0&&d>0;){let e=m.next();if(e.done&&(m=f[Symbol.iterator](),e=m.next(),e.done))break;let t=e.value[1].values().next().value;t!==void 0&&(--t.permits,--d,--y,t.permits===0&&t.resume())}}finally{_=!1}}return d===0&&(l=Math.min(n,l+y),y=0),l},S=(e,t)=>t<=0?r:n<t?ne:v(n=>l>=t?(l-=t,g(n,e=>{s(e)&&x(t)}),r):c(n=>{if(l>=t){n(S(e,t));return}let i=t-l;l>0&&(l=0),d+=i;let s=h(a(f,e),()=>{let t=new Set;return u(f,e,t),t}),c={permits:i,resume:()=>{p(),n(r)}},p=()=>{s.delete(c)&&s.size===0&&o(f,e)};return s.add(c),b(()=>{p(),d-=c.permits,x(t-c.permits)})})),C=(e,t)=>n=>{if(t<=0)return n;let r=S(e,t);return D(e=>ee(e(r),()=>w(e(n),b(()=>{x(t)}))))},T=e=>e<=0?!0:n<e||l<e?!1:(l-=e,!0);return{[U]:U,capacity:n,available:b(()=>l),take:S,release:e=>b(()=>x(e)),withPermits:C,withPermit:e=>C(e,1),withPermitsIfAvailable:e=>n=>e<=0?t(n):v(r=>T(e)?(g(r,()=>{x(e)}),t(n)):p(te()))}};function G(e){if(e.sessionError!==null)return{canReadFiles:!1,isPending:!1,error:e.sessionError};if(e.session===null){let t=!e.isCatalogReady||e.connection?.phase===`connected`||e.connection?.phase===`connecting`||e.connection?.phase===`reconnecting`;return{canReadFiles:!1,isPending:t,error:t?null:e.connection?.error??`This environment is not connected.`}}return{canReadFiles:m(e.session,C),isPending:!1,error:null}}function K(e,t=``,n=!0){let r=n&&L(e,t),i=r?P(e):``;return{isBrowsing:r,directoryPath:i,filterQuery:r&&!R(e)?N(e):``,parentPath:r?I(i):null,canBrowseUp:r&&F(i)}}function q(e,t){let n=t.toLowerCase(),r=t.startsWith(`.`),i=e.filter(e=>e.name.toLowerCase().startsWith(n)&&(r||!e.name.startsWith(`.`)));return{visibleEntries:i,exactEntry:t.length>0?i.find(e=>e.name===t)??null:null}}function J(){let e=0;return{invalidate:()=>{e+=1},run:async(t,n)=>{let r=++e;return await t(),r===e&&(n(),!0)}}}function Y(e){return e===`connected`}function X(e){return{browse:k(e,{label:`environment-data:filesystem:browse`,tag:d.filesystemBrowse})}}var ie=X(z);function ae(e){let t=(0,H.c)(7),n;t[0]===e?n=t[1]:(n=e===null?null:B.sessionStateAtom(e),t[0]=e,t[1]=n);let r=V(n),i=re(e),a=i.presentation?.connection??null,o;return t[2]!==i.isReady||t[3]!==r.data||t[4]!==r.error||t[5]!==a?(o=G({isCatalogReady:i.isReady,connection:a,session:r.data,sessionError:r.error}),t[2]=i.isReady,t[3]=r.data,t[4]=r.error,t[5]=a,t[6]=o):o=t[6],o}var oe=j(),se={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},ce=E(e=>f({revision:0,persistedCacheReadable:!0}).pipe(_,S(`environment-data:vcs:list-refs-state:${e}`))),Z=W({permits:1});function Q(e){return ce(e.environmentId)}function le(e,t,n){e.update(Q(t),e=>({revision:e.revision+1,persistedCacheReadable:n??e.persistedCacheReadable}))}function $(e,t){return Z.withPermit(e)(t)}var ue=T(`VcsRefsState.invalidateCached`)(function*(e,t){let r=yield*M;yield*$(t.environmentId,x(function*(){le(e,t,yield*r.clearVcsRefs(t.environmentId).pipe(y(!0),O(e=>n(`Could not remove invalidated cached Git refs.`).pipe(l({environmentId:t.environmentId,cwd:t.cwd,...A(e)}),y(!1)))))}))});export{oe as a,Y as c,K as d,se as i,J as l,Q as n,ie as o,$ as r,ae as s,ue as t,q as u};
2
+ //# sourceMappingURL=vcsRefInvalidation-BSyEzs8X.js.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{$f as i,Cp as a,F_ as o,Fy as s,Hy as c,Jd as l,Ky as u,L_ as d,Md as f,Ms as p,Os as m,Py as h,Qs as g,Wc as _,X_ as v,Zs as y,as as b,av as x,bb as S,cd as C,dr as w,iE as T,jm as E,kd as D,l as O,ns as k,o as A,oE as j,t as M,ts as N}from"./utils-Dv1DrWoz.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-B6yGAVz4.js";import{S as B,U as V,Z as H,u as U}from"./entities-Cd_YDhEa.js";import{t as W}from"./runtime-BhGr1QCf.js";import{t as G}from"./spinner-t32AzjJr.js";import{t as K}from"./useNavigate-mNhNGdvJ.js";import{t as q}from"./useLocation-CDlqpnf6.js";import{i as J}from"./toast-UFTwkJWj.js";import{E as ee,T as te}from"./useSettings-BAP_yCCK.js";import{f as Y}from"./server-Dc9414wM.js";import{i as ne,n as X,o as re}from"./session-B6T_Arzf.js";import{t as ie}from"./query-B1dBedyO.js";import{t as ae}from"./use-atom-command-BT7sz8Lx.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-B1rLXiVx.js";import{t as ue}from"./input-D8R-9BO3.js";import{t as de}from"./scroll-area-DJaTwtcr.js";import{r as fe}from"./dist-CtnQm06p.js";import{t as pe}from"./dialog-B69qrNtB.js";import{t as me}from"./useP4ConnectAuthPrompt-CkJyw_jV.js";import{t as he}from"./CommandBlock-BUHVWYBr.js";import{t as ge}from"./checkbox-vIS3kn6A.js";import{t as _e}from"./ThreadTerminalDrawer-Bga-TMJR.js";import{i as ve}from"./terminalSessions-DoRkjVz9.js";import{n as ye}from"./useHandleNewThread-nNF3Xnbt.js";import{r as be,t as xe}from"./alert-RktpFBv6.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-CXEX1qrn.js";import{t as we}from"./onboarding-eClefFKp.js";import{Ja as Te,_ as Ee,an as De,ao as Oe,co as ke,f as Ae,io as je,lo as Me,ni as Ne,on as Pe,oo as Fe,ro as Ie,so as Le,un as Re}from"./main-om7hc1qE.js";import{t as ze}from"./NoProjectsHero-BaAbresy.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-DLPcHVw0.js";import{d as He,f as Ue,i as We,l as Ge,n as Ke,o as qe,t as Je,u as Ye}from"./CodexSetupSection.logic-D3odRubx.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);a===void 0?t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt}):(a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)}))}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=H(r,n.path);return i===void 0?null:i.id}function nt(e,t,n){for(let n of e){let e=t.get(n);if(e!==void 0)return e}for(let t of e){let e=n.get(t);if(e!==void 0)return e}}function rt(e){if(/^[A-Za-z]:[\\/]+$/.test(e)||/^[\\/]{2}[^\\/]+[\\/][^\\/]+[\\/]*$/.test(e))return{name:e,parent:``};let t=e.replace(/[\\/]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.length===0?{name:e,parent:``}:n<0?{name:t,parent:``}:{name:t.slice(n+1),parent:t.slice(0,n+1)}}function it(e,t){return JSON.stringify([e,t])}var at=I(W,{label:`environment-data:agent-sessions:scan`,tag:_.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=F(W,{label:`environment-data:agent-sessions:import`,tag:_.agentSessionsImport});function st(e){return P(e.entry)}function ct(e,t){let n=e.filter(e=>t.has(e.environmentId)),r=e=>n.filter(t=>e(t.connection.phase)).map(e=>e.environmentId),i=r(e=>e===`connected`),a=n.some(e=>e.connection.phase===`connecting`);return{ready:i.length>0&&!a,environmentIds:i,skippedIds:r(e=>e!==`connected`&&e!==`connecting`)}}function lt(e){let t=(0,Q.c)(3),n=(0,Z.useContext)(k),r;return t[0]!==e||t[1]!==n?(r=b(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:T(m(i)),error:i._tag===`Failure`?ie(i.cause):null,isPending:i.waiting||i._tag===`Initial`,refresh:()=>n.refresh(r)}})),t[0]=e,t[1]=n,t[2]=r):r=t[2],N(r)}var $=e(r(),1),ut=[],dt=c.make(`onboarding-agent-setup`),ft=[`Connect`,`Agents`,`Projects`],pt=`Scan limit reached. Some projects or conversations may be missing.`;function mt({localAvailable:e,onDone:t,resumeEnvironmentId:n}){let r=Re(),[i,a]=(0,Z.useState)(n?`agents`:`connection`),{environments:o}=te(),[s,c]=(0,Z.useState)(null),l=(0,Z.useRef)(new Set),[u,d]=(0,Z.useState)(n?[n]:[]),[f,p]=(0,Z.useState)(!1),m=(0,Z.useRef)(null),h=(0,Z.useRef)(null),g=ee();(0,Z.useEffect)(()=>{let e=o.filter(e=>!l.current.has(e.environmentId));if(e.length===0)return;for(let t of e)l.current.add(t.environmentId);let t=e.filter(e=>e.entry.enabled);t.length!==0&&c(e=>new Set([...e??[],...t.map(e=>e.environmentId)]))},[o]);let _=s??new Set(g?[g.environmentId]:[]),v=lt(i===`import`?u:ut),y=i===`import`&&v.every(e=>e.data===null)&&v.some(e=>e.isPending),b=e=>{e.length!==0&&(d(e),a(`agents`))},x=i===`agents`?1:i===`import`?2:0,S=(0,Z.useCallback)((e,n,i=0)=>{if(m.current!==null)return m.current;h.current!==null&&(J.close(h.current),h.current=null);let a=r().then(async()=>(h.current!==null&&(J.close(h.current),h.current=null),await t(e),n?J.add({type:`warning`,title:`Some history was not imported`,description:n,timeout:0}):i>0&&J.add({type:`success`,title:`Imported ${i} ${i===1?`thread`:`threads`}`}),!0)).catch(()=>{let e={type:`error`,title:`Could not finish setup`,description:`Your settings could not be saved. Try again.`};return h.current===null?h.current=J.add(e):J.update(h.current,e),!1}).finally(()=>{m.current===a&&(m.current=null)});return m.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Oe,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(Ie,{title:`Set up P4 Code`,identity:(0,$.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,role:`img`,"aria-label":`P4 Code`,children:[(0,$.jsx)(Ne,{className:`h-4 w-auto shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`text-2xl font-medium tracking-tight text-muted-foreground`,children:`Code`})]}),children:(0,$.jsx)(Fe,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(je,{holdHeight:y,children:i===`connection`?(0,$.jsx)(ht,{expandPairingInitially:!e&&!z(),selectedIds:_,autoSelectedComputers:l.current,onSelectionChange:c,onToggleEnvironment:(e,t)=>c(n=>{let r=new Set(n??_);return t?r.add(e):r.delete(e),r}),onContinue:()=>b(ct(o,_).environmentIds),onPaired:e=>{c(new Set([..._,e]))}}):i===`agents`?(0,$.jsx)(xt,{environmentIds:u,onContinue:()=>a(`import`)}):(0,$.jsx)(At,{scans:v,isImporting:f,setIsImporting:p,onDone:S})})]}),(0,$.jsx)(Ee,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:o,onSelectionChange:s,onToggleEnvironment:c,onContinue:l,onPaired:u}=e,{environments:d}=te(),p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=z(),t[0]=p):p=t[0];let m=p,h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>!m||!st(e),t[1]=h):h=t[1];let g=d.filter(h),[_,v]=(0,Z.useState)(r),[y,b]=(0,Z.useState)(!1),{ready:x,skippedIds:S}=ct(d,o),T=d.filter(e=>S.includes(e.environmentId)).map(gt),E=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{x&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&E.current?.focus()},[x]);let D,O;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Connect your computers`}),O=(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:`Choose one or more computers. We’ll set up agents and projects on each.`}),t[2]=D,t[3]=O):(D=t[2],O=t[3]);let k=g.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),g.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:o.has(e.environmentId),onCheckedChange:t=>{let n=new Set(o);t?n.add(e.environmentId):n.delete(e.environmentId),s(n)}}),(0,$.jsx)(a,{className:`size-4 shrink-0 text-muted-foreground`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex items-baseline justify-between gap-3`,children:[(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-medium break-words`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:!e.entry.enabled&&e.connection.phase!==`unsupported`?`Off`:Pe(e.connection).buttonLabel})]}),e.displayUrl?(0,$.jsx)(`span`,{className:`mt-0.5 block text-xs break-all text-muted-foreground`,children:e.displayUrl}):null]})]},e.environmentId))]}):null,A;t[4]!==n||t[5]!==y||t[6]!==c||t[7]!==o?(A=m?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:y,selectedIds:o,onToggleEnvironment:c}):null,t[4]=n,t[5]=y,t[6]=c,t[7]=o,t[8]=A):A=t[8];let j,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(w,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(i,{className:`size-4 text-muted-foreground`}),P=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`Add a computer`}),t[9]=j,t[10]=N,t[11]=P):(j=t[9],N=t[10],P=t[11]);let F=_&&`rotate-90`,I;t[12]===F?I=t[13]:(I=M(`size-4 text-muted-foreground`,F),t[12]=F,t[13]=I);let L;t[14]===I?L=t[15]:(L=(0,$.jsx)(f,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==y||t[17]!==L?(R=(0,$.jsxs)(Me,{disabled:y,render:j,children:[N,P,L]}),t[16]=y,t[17]=L,t[18]=R):R=t[18];let B;t[19]===u?B=t[20]:(B=e=>{v(!1),u(e),requestAnimationFrame(()=>E.current?.focus())},t[19]=u,t[20]=B);let V;t[21]!==y||t[22]!==B?(V=(0,$.jsx)(ke,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:y,setIsPairing:b,onPaired:B})})}),t[21]=y,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==_||t[25]!==R||t[26]!==V?(H=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Le,{open:_,onOpenChange:v,children:[R,V]})}),t[24]=_,t[25]=R,t[26]=V,t[27]=H):H=t[27];let U;t[28]!==H||t[29]!==A?(U=(0,$.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[A,H]}),t[28]=H,t[29]=A,t[30]=U):U=t[30];let W=T.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,T.join(`, `),`. You can set`,` `,T.length===1?`it`:`them`,` up later from Settings.`]}):null,G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsxs)(`p`,{className:`min-w-0 text-xs leading-relaxed text-muted-foreground`,children:[`P4 Code collects anonymous usage data to help us improve it. To read more about how your data is used and how to opt out, see our`,` `,(0,$.jsx)(`a`,{className:`underline underline-offset-2 hover:text-foreground`,href:Be,target:`_blank`,rel:`noreferrer noopener`,children:`privacy policy`}),`.`]}),t[31]=G):G=t[31];let K=!r,q=!x||y,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(C,{className:`size-3.5`}),t[32]=J):J=t[32];let ee;t[33]!==l||t[34]!==K||t[35]!==q?(ee=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[G,(0,$.jsxs)(w,{className:`shrink-0 self-end`,ref:E,autoFocus:K,disabled:q,onClick:l,children:[`Continue`,J]})]}),t[33]=l,t[34]=K,t[35]=q,t[36]=ee):ee=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==ee||t[40]!==D||t[41]!==O||t[42]!==k?(Y=(0,$.jsxs)($.Fragment,{children:[D,O,k,U,W,ee]}),t[37]=U,t[38]=W,t[39]=ee,t[40]=D,t[41]=O,t[42]=k,t[43]=Y):Y=t[43],Y}function gt(e){return e.label}function _t(e){let t=(0,Q.c)(36),{autoSelectedComputers:n,disabled:r,selectedIds:i,onToggleEnvironment:a}=e,{environments:o}=te(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={treatPendingAsSignedOut:!1},t[0]=s):s=t[0];let{isLoaded:c,isSignedIn:u}=fe(s),{openAuthPrompt:d}=me(),[p,m]=(0,Z.useState)(!0),[h,g]=(0,Z.useState)(!1),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>g(!0),t[1]=_):_=t[1];let v=_,y=p&&!!u&&h,b=r||!c,x;t[2]!==u||t[3]!==d?(x=e=>{u||(e.preventDefault(),m(!0),d())},t[2]=u,t[3]=d,t[4]=x):x=t[4];let S,C,T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(w,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),C=(0,$.jsx)(l,{className:`size-4 text-muted-foreground`}),T=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=S,t[6]=C,t[7]=T):(S=t[5],C=t[6],T=t[7]);let E=c?u?h?null:`Loading computers…`:`Sign in`:`Loading sign-in…`,D;t[8]===E?D=t[9]:(D=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:E}),t[8]=E,t[9]=D);let O=p&&u&&`rotate-90`,k;t[10]===O?k=t[11]:(k=M(`size-4 text-muted-foreground`,O),t[10]=O,t[11]=k);let A;t[12]===k?A=t[13]:(A=(0,$.jsx)(f,{className:k}),t[12]=k,t[13]=A);let j;t[14]!==D||t[15]!==A||t[16]!==b||t[17]!==x?(j=(0,$.jsxs)(Me,{disabled:b,onClick:x,render:S,children:[C,T,D,A]}),t[14]=D,t[15]=A,t[16]=b,t[17]=x,t[18]=j):j=t[18];let N;t[19]!==n||t[20]!==o||t[21]!==u||t[22]!==a||t[23]!==i?(N=u?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:o,showSavedEnvironments:!0,onDiscoveryReady:v,selection:{selectedIds:i,onChange:a,autoSelectedComputers:n},refreshWhileEmpty:!0,empty:(0,$.jsx)(`p`,{className:`py-3 text-sm text-muted-foreground`,children:`No computers linked yet.`})}):null,t[19]=n,t[20]=o,t[21]=u,t[22]=a,t[23]=i,t[24]=N):N=t[24];let P;t[25]===N?P=t[26]:(P=(0,$.jsx)(`div`,{className:`mb-3 space-y-1.5`,children:N}),t[25]=N,t[26]=P);let F,I,L;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Run this on each computer you want to connect.`}),I=(0,$.jsx)(he,{command:`npx @p4code/cli connect`,className:`mt-3`}),L=(0,$.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:`Keep P4 Code running. Select the computers you want to set up above.`}),t[27]=F,t[28]=I,t[29]=L):(F=t[27],I=t[28],L=t[29]);let R;t[30]===P?R=t[31]:(R=(0,$.jsx)(ke,{keepMounted:!0,children:(0,$.jsxs)(`div`,{className:`px-3 pb-3`,children:[P,F,I,L]})}),t[30]=P,t[31]=R);let z;return t[32]!==j||t[33]!==R||t[34]!==y?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Le,{open:y,onOpenChange:m,children:[j,R]})}),t[32]=j,t[33]=R,t[34]=y,t[35]=z):z=t[35],z}function vt(e){let t=(0,Q.c)(38),{isPairing:n,setIsPairing:r,onPaired:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},t[0]=a):a=t[0];let o=ae(we,a),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),d=(0,Z.useRef)(!0),p,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>(d.current=!0,()=>{d.current=!1}),m=[],t[1]=p,t[2]=m):(p=t[1],m=t[2]),(0,Z.useEffect)(p,m);let h;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(h=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!d.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(L(e))return;let t=R(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=h):h=t[8];let g=h,_;t[9]===g?_=t[10]:(_=e=>{e.preventDefault(),g()},t[9]=g,t[10]=_);let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=v):v=t[11];let y=l.length>0,b=l?`onboarding-pairing-error`:void 0,x;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>c(e.currentTarget.value),t[12]=x):x=t[12];let S;t[13]!==n||t[14]!==s||t[15]!==y||t[16]!==b?(S=(0,$.jsxs)(`div`,{children:[v,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":y,"aria-describedby":b,className:`mt-2`,size:`lg`,autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,nativeInput:!0,readOnly:n,placeholder:`https://your-server:5230/pair#token=…`,value:s,onChange:x,onKeyDown:yt})]}),t[13]=n,t[14]=s,t[15]=y,t[16]=b,t[17]=S):S=t[17];let C;t[18]===l?C=t[19]:(C=l?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:l})}):null,t[18]=l,t[19]=C);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Me,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(f,{className:`size-3.5 group-data-panel-open:rotate-90`}),`Need a pairing link?`]}),t[20]=T):T=t[20];let E;t[21]!==n||t[22]!==s?(E=n||s.trim().length===0,t[21]=n,t[22]=s,t[23]=E):E=t[23];let D=n?`Pairing...`:`Pair`,O;t[24]!==E||t[25]!==D?(O=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[T,(0,$.jsx)(w,{type:`submit`,disabled:E,children:D})]}),t[24]=E,t[25]=D,t[26]=O):O=t[26];let k,A;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(`p`,{className:`pt-3 text-sm text-muted-foreground`,children:`Run this on the computer with your code.`}),A=(0,$.jsx)(he,{command:`npx @p4code/cli pair`,className:`mt-2`}),t[27]=k,t[28]=A):(k=t[27],A=t[28]);let j;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli serve`}),t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsxs)(ke,{children:[k,A,(0,$.jsxs)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:[`Start P4 Code first, or run `,j,`. Add `,(0,$.jsx)(`code`,{className:`font-mono`,children:`--tailscale`}),` to use your tailnet.`]})]}),t[30]=M):M=t[30];let N;t[31]===O?N=t[32]:(N=(0,$.jsxs)(Le,{children:[O,M]}),t[31]=O,t[32]=N);let P;return t[33]!==S||t[34]!==C||t[35]!==N||t[36]!==_?(P=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:_,children:[S,C,N]})}),t[33]=S,t[34]=C,t[35]=N,t[36]=_,t[37]=P):P=t[37],P}function yt(e){e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()}var bt=[`codex`,`claudeAgent`];function xt(e){let t=(0,Q.c)(13),{environmentIds:n,onContinue:r}=e,{environments:i}=te(),a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,$.jsx)(St,{environmentId:e,machineLabel:i.find(t=>t.environmentId===e)?.label??`Computer`},e),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;t[5]===a?o=t[6]:(o=(0,$.jsx)(de,{scrollFade:!0,className:`mt-5 h-auto max-h-[min(32rem,55dvh)]`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:a})}),t[5]=a,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(C,{className:`size-3.5`}),t[7]=s):s=t[7];let c;t[8]===r?c=t[9]:(c=(0,$.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,$.jsxs)(w,{autoFocus:!0,onClick:r,children:[`Continue`,s]})}),t[8]=r,t[9]=c);let l;return t[10]!==o||t[11]!==c?(l=(0,$.jsxs)(Kt,{title:`Connect your agents`,description:`Choose an agent to start coding. You can add more later.`,children:[o,c]}),t[10]=o,t[11]=c,t[12]=l):l=t[12],l}function St(e){let t=(0,Q.c)(57),{environmentId:n,machineLabel:r}=e,i;t[0]===n?i=t[1]:(i=Y.providersValueAtom(n),t[0]=n,t[1]=i);let a=N(i),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o={reportFailure:!1},t[2]=o):o=t[2];let s=ae(Y.refreshProviders,o),c;t[3]===n?c=t[4]:(c=Y.configValueAtom(n),t[3]=n,t[4]=c);let l=N(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,x),_,v;t[5]!==n||t[6]!==s?(_=()=>{s({environmentId:n,input:{}})},v=[n,s],t[5]=n,t[6]=s,t[7]=_,t[8]=v):(_=t[7],v=t[8]),(0,Z.useEffect)(_,v);let y;t[9]===a?y=t[10]:(y=Ue(a),t[9]=a,t[10]=y);let b=y,S,C,T,E;if(t[11]!==b||t[12]!==g||t[13]!==m||t[14]!==n||t[15]!==r||t[16]!==a||t[17]!==l||t[18]!==u?.driver){let e;t[23]!==b||t[24]!==a?(e=e=>{let t=e===`codex`?a?.filter(t=>t.driver===e):void 0;return t?.length?t.map(t=>({driver:e,provider:t,instanceId:t.instanceId})):[{driver:e,provider:b.get(e),instanceId:b.get(e)?.instanceId}]},t[23]=b,t[24]=a,t[25]=e):e=t[25];let i=bt.flatMap(e);if(m){let e;t[26]===m?e=t[27]:(e=e=>e.instanceId===m.instanceId,t[26]=m,t[27]=e);let n=i.findIndex(e),[r]=n>=0?i.splice(n,1):[];i.unshift(r??{driver:`codex`,provider:void 0,instanceId:m.instanceId})}t[28]===r?E=t[29]:(E=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=E),t[30]===g?S=t[31]:(S=g?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=g,t[31]=S),C=`space-y-1.5`;let o;t[32]!==g||t[33]!==m||t[34]!==n||t[35]!==l||t[36]!==u?.driver?(o=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&l!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:l,createdAccount:i===m?.instanceId?m:null,onAutoStartConsumed:()=>h(wt),terminalOpen:u?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:u?.driver===t,terminalAvailable:l!==null&&g,onOpenTerminal:()=>{r!==void 0&&l!==null&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},t)},t[32]=g,t[33]=m,t[34]=n,t[35]=l,t[36]=u?.driver,t[37]=o):o=t[37],T=i.map(o),t[11]=b,t[12]=g,t[13]=m,t[14]=n,t[15]=r,t[16]=a,t[17]=l,t[18]=u?.driver,t[19]=S,t[20]=C,t[21]=T,t[22]=E}else S=t[19],C=t[20],T=t[21],E=t[22];let D;t[38]!==C||t[39]!==T?(D=(0,$.jsx)(`div`,{className:C,children:T}),t[38]=C,t[39]=T,t[40]=D):D=t[40];let O;t[41]===a?O=t[42]:(O=a?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(w,{size:`xs`,variant:`ghost-muted`,onClick:()=>p(!0),children:`Connect another ChatGPT account`})}):null,t[41]=a,t[42]=O);let k;t[43]!==f||t[44]!==n?(k=f?(0,$.jsx)(Ke,{environmentId:n,onClose:()=>p(!1),onAccountCreated:(e,t)=>h({instanceId:e,displayName:t,autoStart:!0})}):null,t[43]=f,t[44]=n,t[45]=k):k=t[45];let A;t[46]!==n||t[47]!==s||t[48]!==u?(A=u===null?null:(0,$.jsx)(Dt,{session:u,onClose:()=>{d(null),s({environmentId:n,input:{}})}},`${u.environmentId}:${u.providerInstanceId}:${u.driver}`),t[46]=n,t[47]=s,t[48]=u,t[49]=A):A=t[49];let j;return t[50]!==S||t[51]!==D||t[52]!==O||t[53]!==k||t[54]!==A||t[55]!==E?(j=(0,$.jsxs)(`section`,{children:[E,S,D,O,k,A]}),t[50]=S,t[51]=D,t[52]=O,t[53]=k,t[54]=A,t[55]=E,t[56]=j):j=t[56],j}function Ct(e){return e.driver===`codex`&&Ge(e)===`ready`}function wt(e){return e?{...e,autoStart:!1}:null}function Tt(e){let t=(0,Q.c)(28),{createdAccount:n,onAutoStartConsumed:r,environmentId:i,provider:a,serverConfig:s,terminalOpen:c,onOpenTerminal:l}=e,u=ne(i,x),f=ae(Y.updateSettings,`Codex setup settings`),p;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(p=n?.instanceId??a?.instanceId??d(o.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=p):p=t[2];let m=p,h=s.settings,g;t[3]!==n||t[4]!==m||t[5]!==h.providerInstances?(g=h.providerInstances[m]??{driver:o.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=m,t[5]=h.providerInstances,t[6]=g):g=t[6];let _=g,v;t[7]===_.config?v=t[8]:(v=Je(_.config),t[7]=_.config,t[8]=v);let y=v,b=y===`existing`&&_.config!==null&&typeof _.config==`object`&&`setupMode`in _.config&&_.config.setupMode===`existing`,S;t[9]!==i||t[10]!==_||t[11]!==m||t[12]!==h||t[13]!==f?(S=e=>{f({environmentId:i,input:{patch:Ve({settings:h,instanceId:m,instance:{..._,enabled:!0,config:{..._.config!==null&&typeof _.config==`object`?_.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=_,t[11]=m,t[12]=h,t[13]=f,t[14]=S):S=t[14];let C=S,w;return t[15]!==u||t[16]!==C||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==b||t[21]!==m||t[22]!==y||t[23]!==r||t[24]!==l||t[25]!==a||t[26]!==c?(w=b?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:c,terminalAvailable:u,onOpenTerminal:l}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:m,provider:a,mode:y,enabled:a?.enabled??!0,onModeChange:C}),t[15]=u,t[16]=C,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=b,t[21]=m,t[22]=y,t[23]=r,t[24]=l,t[25]=a,t[26]=c,t[27]=w):w=t[27],w}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:i,terminalAvailable:a,onOpenTerminal:s}=e,c;t[0]===n?c=t[1]:(c=Se.get(o.make(n)),t[0]=n,t[1]=c);let l=c,u=r?.displayName||(n===`claudeAgent`?`Claude Code`:l?.label??n),d;t[2]===r?d=t[3]:(d=qe(r),t[2]=r,t[3]=d);let f=d,p;t[4]===r?p=t[5]:(p=Ge(r),t[4]=r,t[5]=p);let m=p,h;t[6]===n?h=t[7]:(h=o.make(n),t[6]=n,t[7]=h);let g;t[8]!==u||t[9]!==h?(g=(0,$.jsx)(Ce,{driverKind:h,displayName:u,iconClassName:`size-5`}),t[8]=u,t[9]=h,t[10]=g):g=t[10];let _;t[11]===u?_=t[12]:(_=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:u}),t[11]=u,t[12]=_);let v=m===`ready`?`Ready to code.`:f.headline,y=m!==`ready`&&f.detail?` · ${f.detail}`:``,b;t[13]!==v||t[14]!==y?(b=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[v,y]}),t[13]=v,t[14]=y,t[15]=b):b=t[15];let x;t[16]!==_||t[17]!==b?(x=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,b]}),t[16]=_,t[17]=b,t[18]=x):x=t[18];let S;t[19]!==s||t[20]!==m||t[21]!==f||t[22]!==a||t[23]!==i?(S=(0,$.jsx)(`div`,{className:`shrink-0`,children:m===`ready`?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,$.jsx)(D,{className:`size-3.5`}),`Ready`]}):m===`checking`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):m===`disabled`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Disabled`}):m===`attention`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:f.headline}):(0,$.jsxs)(w,{size:`xs`,variant:`ghost`,onClick:s,disabled:i||!a,children:[(0,$.jsx)(E,{className:`size-3.5`}),m===`signIn`?`Sign in`:`Install`]})}),t[19]=s,t[20]=m,t[21]=f,t[22]=a,t[23]=i,t[24]=S):S=t[24];let C;return t[25]!==x||t[26]!==S||t[27]!==g?(C=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[g,x,S]}),t[25]=x,t[26]=S,t[27]=g,t[28]=C):C=t[28],C}function Dt(e){let t=(0,Q.c)(60),{session:n,onClose:r}=e,{command:i,cwd:a,driver:o,environmentId:s,keybindings:c,providerInstanceId:l}=n,d=ne(s,x),[f]=p(Te,!1,u),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={reportFailure:!1},t[0]=m):m=t[0];let h=ae(ve.open,m),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[1]=_):_=t[1];let v=ae(ve.write,_),y;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(y={reportFailure:!1},t[2]=y):y=t[2];let b=ae(ve.close,y),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let C=(0,Z.useRef)(S),T=(0,Z.useRef)(0),E=(0,Z.useRef)(null),D;t[4]===o?D=t[5]:(D=()=>`onboarding-${o}-${O()}`,t[4]=o,t[5]=D);let[k]=(0,Z.useState)(D),A;t[6]===s?A=t[7]:(A=g(s,dt),t[6]=s,t[7]=A);let j=A,[M,N]=(0,Z.useState)(0),[P,F]=(0,Z.useState)(`preparing`),I=P===`ready`||P===`writeFailed`,L;t[8]!==b||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==h||t[13]!==l||t[14]!==k||t[15]!==v?(L=()=>{let e=T.current+1;return T.current=e,E.current=e,F(`preparing`),C.current=C.current.then(async()=>{if(E.current!==e)return;if(!X(s,`terminal:operate`)){F(`openFailed`);return}if((await h({environmentId:s,input:{threadId:dt,terminalId:k,cwd:a,providerInstanceId:l}}))._tag!==`Success`){E.current===e&&F(`openFailed`);return}if(E.current!==e)return;if(!X(s,`terminal:operate`)){F(`writeFailed`);return}let t=await v({environmentId:s,input:{threadId:dt,terminalId:k,data:i}});E.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{E.current===e&&(E.current=null),C.current=C.current.then(async()=>{X(s,`terminal:operate`)&&await b({environmentId:s,input:{threadId:dt,terminalId:k,deleteHistory:!0}})})}},t[8]=b,t[9]=i,t[10]=a,t[11]=s,t[12]=h,t[13]=l,t[14]=k,t[15]=v,t[16]=L):L=t[16];let R;t[17]!==b||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==h||t[22]!==l||t[23]!==M||t[24]!==k||t[25]!==v?(R=[b,i,a,s,h,l,M,k,v],t[17]=b,t[18]=i,t[19]=a,t[20]=s,t[21]=h,t[22]=l,t[23]=M,t[24]=k,t[25]=v,t[26]=R):R=t[26],(0,Z.useEffect)(L,R);let z;t[27]!==d||t[28]!==i||t[29]!==P?(z=d?P===`writeFailed`?(0,$.jsxs)($.Fragment,{children:[`Run `,(0,$.jsx)(`code`,{className:`rounded bg-muted px-1 font-mono`,children:i}),` in this terminal.`]}):P===`ready`?`Review the command, then press Enter to run it.`:P===`openFailed`?`Could not open the setup terminal.`:`Preparing command...`:`This connection cannot control terminals.`,t[27]=d,t[28]=i,t[29]=P,t[30]=z):z=t[30];let B;t[31]===z?B=t[32]:(B=(0,$.jsx)(`span`,{className:`text-2xs font-medium text-muted-foreground`,children:z}),t[31]=z,t[32]=B);let V;t[33]!==d||t[34]!==s||t[35]!==P?(V=P===`openFailed`?(0,$.jsx)(w,{size:`xs`,variant:`ghost`,disabled:!d,onClick:()=>{X(s,`terminal:operate`)&&N(Ot)},children:`Retry`}):null,t[33]=d,t[34]=s,t[35]=P,t[36]=V):V=t[36];let H;t[37]===r?H=t[38]:(H=(0,$.jsx)(w,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==f||t[46]!==a||t[47]!==o||t[48]!==c||t[49]!==r||t[50]!==l||t[51]!==k||t[52]!==I||t[53]!==j?(G=I?(0,$.jsx)(_e,{threadRef:j,threadId:dt,terminalId:k,terminalLabel:`Install ${o}`,cwd:a,providerInstanceId:l,advancedTypography:f,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:c}):null,t[45]=f,t[46]=a,t[47]=o,t[48]=c,t[49]=r,t[50]=l,t[51]=k,t[52]=I,t[53]=j,t[54]=G):G=t[54];let K;t[55]===G?K=t[56]:(K=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=K);let q;return t[57]!==W||t[58]!==K?(q=(0,$.jsxs)(`div`,{"data-thread-terminal-drawer":!0,className:`mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground`,children:[W,K]}),t[57]=W,t[58]=K,t[59]=q):q=t[59],q}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(81),{scans:n,isImporting:r,setIsImporting:i,onDone:a}=e,{environments:o}=te(),s=re(n,v),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={reportFailure:!1},t[0]=c):c=t[0];let l=ae(V.create,c),u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u={reportFailure:!1},t[1]=u):u=t[1];let d=ae(ot,u),f=B(),[p,m]=(0,Z.useState)(null),g=(0,Z.useRef)(``),_=(0,Z.useRef)(0),[b,x]=(0,Z.useState)(null),S;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(S=new Map,t[2]=S):S=t[2];let C=(0,Z.useRef)(S),T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Map,t[3]=T):T=t[3];let E=(0,Z.useRef)(T),D;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=[],t[4]=D):D=t[4];let O=(0,Z.useRef)(D),k;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(k=new Map,t[5]=k):k=t[5];let j=(0,Z.useRef)(k),M=(0,Z.useRef)(0),N,P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>(M.current+=1,()=>{M.current+=1}),P=[],t[6]=N,t[7]=P):(N=t[6],P=t[7]),(0,Z.useEffect)(N,P);let F,I;t[8]!==b||t[9]!==a||t[10]!==f||t[11]!==i?(I=()=>{b!==null&&f.some(e=>e.id===b.projectId&&e.environmentId===b.environmentId)&&(x(null),a(b,g.current,_.current).then(e=>{e||i(!1)}))},F=[b,a,f,i],t[8]=b,t[9]=a,t[10]=f,t[11]=i,t[12]=F,t[13]=I):(F=t[12],I=t[13]),(0,Z.useEffect)(I,F);let R;t[14]===n?R=t[15]:(R=Qe(n.flatMap(Lt)),t[14]=n,t[15]=R);let{available:z,recent:H}=R,W;t[16]!==H||t[17]!==p?(W=p??new Set(H.map(It)),t[16]=H,t[17]=p,t[18]=W):W=t[18];let K=W,q,J;if(t[19]!==z||t[20]!==K||t[21]!==s){let e;t[24]===K?e=t[25]:(e=e=>K.has(e.key),t[24]=K,t[25]=e),q=z.filter(e);let n;t[26]===s?n=t[27]:(n=e=>s.has(e.environmentId),t[26]=s,t[27]=n),J=q.every(n),t[19]=z,t[20]=K,t[21]=s,t[22]=q,t[23]=J}else q=t[22],J=t[23];let ee=J,[Y,ne]=(0,Z.useState)(``),X=ee?Y===kt?``:Y:kt,ie;t[28]!==a||t[29]!==i?(ie=()=>{let e=nt(O.current,E.current,C.current);e===void 0?a(void 0,g.current,_.current):(i(!0),x(e))},t[28]=a,t[29]=i,t[30]=ie):ie=t[30];let oe=ie,se;t[31]!==l||t[32]!==oe||t[33]!==d||t[34]!==r||t[35]!==a||t[36]!==n||t[37]!==i?(se=async e=>{if(r)return;let t=()=>e.every(Ft),o=()=>{i(!1),ne(kt)};if(!t()){o();return}if(e.length===0){a();return}i(!0),g.current=``,_.current=0,O.current=e.map(Pt);let s=M.current,c=C.current,u=j.current,f=c.size>0?e.filter(e=>c.has(e.key)).length:0,p=0,m=0,v=new Set;for(let n of e){let{environmentId:e}=n;if(s!==M.current||c!==C.current)return;if(!t()){o();return}if(c.has(n.key))continue;let r=tt(U(),e,n);if(r===null){let t=u.get(n.key);if(t===void 0){let e=A();t={projectId:e,commandId:h.make(`onboarding:project:create:${e}`)},u.set(n.key,t)}r=t.projectId;let i=await l({environmentId:e,input:{projectId:r,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(s!==M.current||c!==C.current)return;if(i._tag!==`Success`){L(i)||(u.delete(n.key),v.add(e));continue}}if(!t()){o();return}let i=await d({environmentId:e,input:{projectId:r,expectedWorkspaceRoot:n.path}});if(s!==M.current||c!==C.current)return;i._tag===`Success`?(p+=i.value.importedCount,m+=i.value.skippedCount,i.value.importedCount>0&&E.current.set(n.key,y(e,r)),i.value.skippedCount===0&&(f+=1,c.set(n.key,y(e,r)))):L(i)||(u.delete(n.key),v.add(e))}for(let e of n)v.has(e.environmentId)&&e.refresh();i(!1),_.current=p,f<e.length&&(p>0&&m>0?g.current=`Imported ${p} ${p===1?`thread`:`threads`}. ${m} ${m===1?`thread`:`threads`} could not be imported.`:m>0?g.current=`${m} ${m===1?`thread could`:`threads could`} not be imported.`:p>0?g.current=`Imported ${p} ${p===1?`thread`:`threads`}. Some thread history could not be imported.`:g.current=`Could not import thread history.`),oe()},t[31]=l,t[32]=oe,t[33]=d,t[34]=r,t[35]=a,t[36]=n,t[37]=i,t[38]=se):se=t[38];let ce=se;if(n.every(Nt)&&n.some(Mt)){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[39]=e):e=t[39];let n;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-6`,children:[(0,$.jsx)(G,{size:`lg`,tone:`muted`}),(0,$.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`Looking for projects from Claude Code and Codex…`})]}),t[40]=n):n=t[40];let r;return t[41]===a?r=t[42]:(r=(0,$.jsxs)(`div`,{className:`flex h-full min-h-40 flex-col`,children:[e,n,(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(w,{variant:`ghost-muted`,onClick:()=>void a(),children:`Do not import projects`})})]}),t[41]=a,t[42]=r),r}let le;t[43]!==z||t[44]!==r||t[45]!==q?(le=z.length>0?(0,$.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3 text-xs text-muted-foreground`,children:[(0,$.jsxs)(`span`,{role:`status`,children:[q.length,` of `,z.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(w,{variant:`ghost`,size:`xs`,disabled:r||q.length===z.length,onClick:()=>m(new Set(z.map(jt))),children:`Select all`}),(0,$.jsx)(w,{variant:`ghost`,size:`xs`,disabled:r||q.length===0,onClick:()=>m(new Set),children:`Select none`})]})]}):null,t[43]=z,t[44]=r,t[45]=q,t[46]=le):le=t[46];let ue;if(t[47]!==z||t[48]!==o||t[49]!==r||t[50]!==n||t[51]!==K){let e;t[53]!==z||t[54]!==o||t[55]!==r||t[56]!==n.length||t[57]!==K?(e=e=>{let t=z.filter(t=>t.environmentId===e.environmentId),i=o.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:r,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:i}):null,e.isPending&&e.data===null?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(G,{size:`md`}),`Looking for projects…`]}):e.error===null?t.length===0?(0,$.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`No existing Claude Code or Codex projects found.`}):null:(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-muted-foreground`,children:[(0,$.jsxs)(`span`,{children:[`Could not check projects. `,e.error]}),(0,$.jsx)(w,{variant:`ghost`,size:`sm`,onClick:e.refresh,children:`Retry`})]}),e.data?.truncated?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:pt}):null,(0,$.jsx)(Rt,{candidates:t,selectedKeys:K,onSelectionChange:m})]},e.environmentId)},t[53]=z,t[54]=o,t[55]=r,t[56]=n.length,t[57]=K,t[58]=e):e=t[58],ue=n.map(e),t[47]=z,t[48]=o,t[49]=r,t[50]=n,t[51]=K,t[52]=ue}else ue=t[52];let fe;t[59]===ue?fe=t[60]:(fe=(0,$.jsx)(de,{scrollFade:!0,className:`mt-2 h-auto max-h-80`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:ue})}),t[59]=ue,t[60]=fe);let pe;t[61]===X?pe=t[62]:(pe=X?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:X}):null,t[61]=X,t[62]=pe);let me;t[63]!==oe||t[64]!==r?(me=(0,$.jsx)(w,{variant:`ghost-muted`,disabled:r,onClick:oe,children:`Do not import projects`}),t[63]=oe,t[64]=r,t[65]=me):me=t[65];let he=!ee||r||q.length===0,ge;t[66]!==ce||t[67]!==q?(ge=()=>void ce(q),t[66]=ce,t[67]=q,t[68]=ge):ge=t[68];let _e=r?`Importing…`:`Import ${q.length} ${q.length===1?`project`:`projects`}`,ve;t[69]!==he||t[70]!==ge||t[71]!==_e?(ve=(0,$.jsx)(w,{autoFocus:!0,disabled:he,onClick:ge,children:_e}),t[69]=he,t[70]=ge,t[71]=_e,t[72]=ve):ve=t[72];let ye;t[73]!==me||t[74]!==ve?(ye=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[me,ve]}),t[73]=me,t[74]=ve,t[75]=ye):ye=t[75];let be;return t[76]!==le||t[77]!==fe||t[78]!==pe||t[79]!==ye?(be=(0,$.jsxs)(Kt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[le,fe,pe,ye]}),t[76]=le,t[77]=fe,t[78]=pe,t[79]=ye,t[80]=be):be=t[80],be}function jt(e){return e.key}function Mt(e){return e.isPending}function Nt(e){return e.data===null}function Pt(e){return e.key}function Ft(e){return X(e.environmentId,v)}function It(e){return e.key}function Lt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function Rt(e){let t=(0,Q.c)(25),{candidates:n,selectedKeys:r,onSelectionChange:i}=e,a;t[0]===n?a=t[1]:(a=et(n),t[0]=n,t[1]=a);let{repositories:o,other:s}=a,c;t[2]!==i||t[3]!==r?(c=(e,t)=>{let n=new Set(r);for(let r of e)t?n.add(r):n.delete(r);i(n)},t[2]=i,t[3]=r,t[4]=c):c=t[4];let l=c,u;if(t[5]!==s||t[6]!==r){let e;t[8]===r?e=t[9]:(e=e=>r.has(e.key),t[8]=r,t[9]=e),u=s.filter(e),t[5]=s,t[6]=r,t[7]=u}else u=t[7];let d=u.length,p;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Bt,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],p=o.map(e),t[10]=o,t[11]=r,t[12]=l,t[13]=p}else p=t[13];let m;t[17]!==s||t[18]!==d||t[19]!==r||t[20]!==l?(m=s.length>0?(0,$.jsxs)(Le,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:d===s.length,indeterminate:d>0&&d<s.length,onCheckedChange:e=>l(s.map(zt),e===!0)}),(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(f,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),(0,$.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:`Other folders`}),(0,$.jsxs)(`span`,{className:`ml-auto shrink-0 text-xs text-muted-foreground tabular-nums`,children:[s.length,` `,s.length===1?`folder`:`folders`]})]})]}),(0,$.jsx)(ke,{children:s.map(e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>l([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=d,t[19]=r,t[20]=l,t[21]=m):m=t[21];let h;return t[22]!==p||t[23]!==m?(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function zt(e){return e.key}function Bt(e){let t=(0,Q.c)(53),{group:n,selectedKeys:r,onToggle:i}=e,a,o;if(t[0]!==n.candidates||t[1]!==r){a=n.candidates.map(Ht);let e;t[4]===r?e=t[5]:(e=e=>r.has(e),t[4]=r,t[5]=e),o=a.filter(e),t[0]=n.candidates,t[1]=r,t[2]=a,t[3]=o}else a=t[2],o=t[3];let s=o.length,c=n.candidates.length===1,l=n.candidates[0];if(c&&l!==void 0){let e=n.label,a=l.path,o;t[6]!==l.key||t[7]!==r?(o=r.has(l.key),t[6]=l.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==l.key?(s=e=>i([l.key],e),t[9]=i,t[10]=l.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==l||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(Wt,{candidate:l,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=l,t[14]=o,t[15]=s,t[16]=c):c=t[16],c}let u=s===a.length,d=s>0&&s<a.length,p;t[17]!==a||t[18]!==i?(p=e=>i(a,e===!0),t[17]=a,t[18]=i,t[19]=p):p=t[19];let m;t[20]!==u||t[21]!==d||t[22]!==p?(m=(0,$.jsx)(ge,{checked:u,indeterminate:d,onCheckedChange:p}),t[20]=u,t[21]=d,t[22]=p,t[23]=m):m=t[23];let h;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(f,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),t[24]=h):h=t[24];let g;t[25]===n.label?g=t[26]:(g=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:n.label}),t[25]=n.label,t[26]=g);let _;t[27]===n.candidates?_=t[28]:(_=new Set(n.candidates.flatMap(Vt)),t[27]=n.candidates,t[28]=_);let v;t[29]===_?v=t[30]:(v=[..._],t[29]=_,t[30]=v);let y;t[31]!==n.lastActiveAt||t[32]!==n.threadCount||t[33]!==v?(y=(0,$.jsx)(Gt,{sources:v,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[31]=n.lastActiveAt,t[32]=n.threadCount,t[33]=v,t[34]=y):y=t[34];let b;t[35]!==y||t[36]!==g?(b=(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[h,g,y]}),t[35]=y,t[36]=g,t[37]=b):b=t[37];let x;t[38]!==b||t[39]!==m?(x=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[m,b]}),t[38]=b,t[39]=m,t[40]=x):x=t[40];let S;if(t[41]!==n.candidates||t[42]!==i||t[43]!==r){let e;t[45]!==i||t[46]!==r?(e=e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>i([e.key],t)},e.key),t[45]=i,t[46]=r,t[47]=e):e=t[47],S=n.candidates.map(e),t[41]=n.candidates,t[42]=i,t[43]=r,t[44]=S}else S=t[44];let C;t[48]===S?C=t[49]:(C=(0,$.jsx)(ke,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Le,{defaultOpen:!0,children:[x,C]}),t[50]=x,t[51]=C,t[52]=w):w=t[52],w}function Vt(e){return e.sources}function Ht(e){return e.key}function Ut(e){let t=(0,Q.c)(12),{path:n,className:r}=e,i;t[0]===n?i=t[1]:(i=rt(n),t[0]=n,t[1]=i);let{name:a,parent:o}=i,s;t[2]===r?s=t[3]:(s=M(`flex min-w-0 items-baseline font-mono`,r),t[2]=r,t[3]=s);let c;t[4]===o?c=t[5]:(c=o.length>0?(0,$.jsx)(`span`,{className:`truncate`,children:o}):null,t[4]=o,t[5]=c);let l;t[6]===a?l=t[7]:(l=(0,$.jsx)(`span`,{className:`max-w-full shrink-0 truncate`,children:a}),t[6]=a,t[7]=l);let u;return t[8]!==s||t[9]!==c||t[10]!==l?(u=(0,$.jsxs)(`span`,{className:s,children:[c,l]}),t[8]=s,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Wt(e){let t=(0,Q.c)(30),{candidate:n,label:r,path:i,nested:a,checked:o,onCheckedChange:s}=e,c=a!==void 0&&a,l=c&&`pl-8`,u;t[0]===l?u=t[1]:(u=M(`flex cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40 has-disabled:cursor-default`,l),t[0]=l,t[1]=u);let d;t[2]===s?d=t[3]:(d=e=>s(e===!0),t[2]=s,t[3]=d);let f;t[4]!==o||t[5]!==d?(f=(0,$.jsx)(ge,{checked:o,onCheckedChange:d}),t[4]=o,t[5]=d,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-2 truncate`}),t[7]=p):p=t[7];let m;t[8]===r?m=t[9]:(m=r===void 0?null:(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:r}),t[8]=r,t[9]=m);let h;t[10]!==r||t[11]!==i?(h=i===void 0?null:(0,$.jsx)(Ut,{path:i,className:r===void 0?`text-xs`:`text-2xs text-muted-foreground`}),t[10]=r,t[11]=i,t[12]=h):h=t[12];let g;t[13]!==m||t[14]!==h?(g=(0,$.jsxs)(se,{render:p,children:[m,h]}),t[13]=m,t[14]=h,t[15]=g):g=t[15];let _;t[16]===n.path?_=t[17]:(_=(0,$.jsx)(ce,{variant:`code`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==_||t[19]!==g?(v=(0,$.jsxs)(le,{children:[g,_]}),t[18]=_,t[19]=g,t[20]=v):v=t[20];let y=c?null:n.sources,b;t[21]!==n.lastActiveAt||t[22]!==n.threadCount||t[23]!==y?(b=(0,$.jsx)(Gt,{sources:y,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[21]=n.lastActiveAt,t[22]=n.threadCount,t[23]=y,t[24]=b):b=t[24];let x;return t[25]!==v||t[26]!==b||t[27]!==u||t[28]!==f?(x=(0,$.jsxs)(`label`,{className:u,children:[f,v,b]}),t[25]=v,t[26]=b,t[27]=u,t[28]=f,t[29]=x):x=t[29],x}function Gt(e){let t=(0,Q.c)(19),{sources:n,threadCount:r,lastActiveAt:i}=e,a;t[0]===i?a=t[1]:(a=i===null?null:oe(i),t[0]=i,t[1]=a);let s=a,c=s===null?``:s.suffix===null?`now`:s.value,l;t[2]===n?l=t[3]:(l=n?.includes(`claudeAgent`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Claude Code`,children:(0,$.jsx)(Ce,{driverKind:o.make(`claudeAgent`),displayName:`Claude Code`,iconClassName:`size-3`})}):null,t[2]=n,t[3]=l);let u;t[4]===l?u=t[5]:(u=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:l}),t[4]=l,t[5]=u);let d;t[6]===n?d=t[7]:(d=n?.includes(`codex`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Codex`,children:(0,$.jsx)(Ce,{driverKind:o.make(`codex`),displayName:`Codex`,iconClassName:`size-3`})}):null,t[6]=n,t[7]=d);let f;t[8]===d?f=t[9]:(f=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:d}),t[8]=d,t[9]=f);let p;t[10]===r?p=t[11]:(p=(0,$.jsx)(`span`,{className:`text-right`,children:r}),t[10]=r,t[11]=p);let m;t[12]===c?m=t[13]:(m=(0,$.jsx)(`span`,{className:`text-right whitespace-nowrap`,children:c}),t[12]=c,t[13]=m);let h;return t[14]!==u||t[15]!==f||t[16]!==p||t[17]!==m?(h=(0,$.jsxs)(`span`,{className:`ml-auto grid shrink-0 grid-cols-[1rem_1rem_2.5rem_2.25rem] items-center gap-x-1 text-xs text-muted-foreground tabular-nums`,children:[u,f,p,m]}),t[14]=u,t[15]=f,t[16]=p,t[17]=m,t[18]=h):h=t[18],h}function Kt(e){let t=(0,Q.c)(8),{title:n,description:r,children:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r?(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:r}):null,t[2]=r,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,$.jsxs)($.Fragment,{children:[a,o,i]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}var qt=S(s);function Jt(){let e=(0,Q.c)(14),{authGateState:t}=Ae.useRouteContext(),n=K(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:Xt},e[0]=r):r=e[0];let i=q(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?j(qt(i.slice(7))):void 0,e[1]=i,e[2]=a);let o=a,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s={select:Yt},e[3]=s):s=e[3];let c=q(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{u(!0),e===void 0?await n({to:`/`,replace:!0}):await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}))}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Yt(e){return e.pathname===`/welcome`}function Xt(e){return e.hash}export{Jt as component};
2
- //# sourceMappingURL=welcome-CfpSLEhO.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Ad as i,Fy as a,I_ as o,Iy as s,Mm as c,Ms as l,Nd as u,Os as d,Qs as f,R_ as p,Uy as m,Wc as h,Yd as g,Z_ as _,Zs as v,aE as y,as as b,dr as x,ep as S,l as C,ld as w,ns as T,o as E,ov as D,qy as O,sE as k,t as A,ts as j,wp as M,xb as N}from"./utils-D19Exirm.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-S0tnrkvE.js";import{S as B,U as V,Z as H,u as U}from"./entities-D8ZKPC2e.js";import{t as W}from"./runtime-CdX0UBlL.js";import{t as G}from"./spinner-H4tz4lLc.js";import{t as K}from"./useNavigate-DAhzXpNZ.js";import{t as q}from"./useLocation--dLSTvwv.js";import{i as J}from"./toast-BNQWmVQ-.js";import{E as ee,T as te}from"./useSettings-BNjvPVd5.js";import{f as Y}from"./server-ELSEsqtb.js";import{i as ne,n as X,o as re}from"./session-DCntd6Nl.js";import{t as ie}from"./query-D-IVadFI.js";import{t as ae}from"./use-atom-command-REOTdDAa.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-DsRaXpYk.js";import{t as ue}from"./input-yNgBXsRj.js";import{t as de}from"./scroll-area-DTOm0CbX.js";import{r as fe}from"./dist-CYq41icZ.js";import{t as pe}from"./dialog-CKG1aUT3.js";import{t as me}from"./useP4ConnectAuthPrompt-CGiX3TE7.js";import{t as he}from"./CommandBlock-ConSzQ7T.js";import{t as ge}from"./checkbox-BPr09F_k.js";import{t as _e}from"./ThreadTerminalDrawer-3sb2Ksna.js";import{i as ve}from"./terminalSessions-DdR_bXtX.js";import{n as ye}from"./useHandleNewThread-DYBNXS8y.js";import{r as be,t as xe}from"./alert-CqueYfb9.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-CcLiWo0d.js";import{t as we}from"./onboarding-CyFz37eL.js";import{Ja as Te,_ as Ee,an as De,ao as Oe,co as ke,f as Ae,io as je,lo as Me,ni as Ne,on as Pe,oo as Fe,ro as Ie,so as Le,un as Re}from"./main-CNcsYwUg.js";import{t as ze}from"./NoProjectsHero-BBiWXq8t.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-BM52qF-a.js";import{d as He,f as Ue,i as We,l as Ge,n as Ke,o as qe,t as Je,u as Ye}from"./CodexSetupSection.logic-fnotucae.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);a===void 0?t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt}):(a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)}))}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=H(r,n.path);return i===void 0?null:i.id}function nt(e,t,n){for(let n of e){let e=t.get(n);if(e!==void 0)return e}for(let t of e){let e=n.get(t);if(e!==void 0)return e}}function rt(e){if(/^[A-Za-z]:[\\/]+$/.test(e)||/^[\\/]{2}[^\\/]+[\\/][^\\/]+[\\/]*$/.test(e))return{name:e,parent:``};let t=e.replace(/[\\/]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.length===0?{name:e,parent:``}:n<0?{name:t,parent:``}:{name:t.slice(n+1),parent:t.slice(0,n+1)}}function it(e,t){return JSON.stringify([e,t])}var at=I(W,{label:`environment-data:agent-sessions:scan`,tag:h.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=F(W,{label:`environment-data:agent-sessions:import`,tag:h.agentSessionsImport});function st(e){return P(e.entry)}function ct(e,t){let n=e.filter(e=>t.has(e.environmentId)),r=e=>n.filter(t=>e(t.connection.phase)).map(e=>e.environmentId),i=r(e=>e===`connected`),a=n.some(e=>e.connection.phase===`connecting`);return{ready:i.length>0&&!a,environmentIds:i,skippedIds:r(e=>e!==`connected`&&e!==`connecting`)}}function lt(e){let t=(0,Q.c)(3),n=(0,Z.useContext)(T),r;return t[0]!==e||t[1]!==n?(r=b(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:y(d(i)),error:i._tag===`Failure`?ie(i.cause):null,isPending:i.waiting||i._tag===`Initial`,refresh:()=>n.refresh(r)}})),t[0]=e,t[1]=n,t[2]=r):r=t[2],j(r)}var $=e(r(),1),ut=[],dt=m.make(`onboarding-agent-setup`),ft=[`Connect`,`Agents`,`Projects`],pt=`Scan limit reached. Some projects or conversations may be missing.`;function mt({localAvailable:e,onDone:t,resumeEnvironmentId:n}){let r=Re(),[i,a]=(0,Z.useState)(n?`agents`:`connection`),{environments:o}=te(),[s,c]=(0,Z.useState)(null),l=(0,Z.useRef)(new Set),[u,d]=(0,Z.useState)(n?[n]:[]),[f,p]=(0,Z.useState)(!1),m=(0,Z.useRef)(null),h=(0,Z.useRef)(null),g=ee();(0,Z.useEffect)(()=>{let e=o.filter(e=>!l.current.has(e.environmentId));if(e.length===0)return;for(let t of e)l.current.add(t.environmentId);let t=e.filter(e=>e.entry.enabled);t.length!==0&&c(e=>new Set([...e??[],...t.map(e=>e.environmentId)]))},[o]);let _=s??new Set(g?[g.environmentId]:[]),v=lt(i===`import`?u:ut),y=i===`import`&&v.every(e=>e.data===null)&&v.some(e=>e.isPending),b=e=>{e.length!==0&&(d(e),a(`agents`))},x=i===`agents`?1:i===`import`?2:0,S=(0,Z.useCallback)((e,n,i=0)=>{if(m.current!==null)return m.current;h.current!==null&&(J.close(h.current),h.current=null);let a=r().then(async()=>(h.current!==null&&(J.close(h.current),h.current=null),await t(e),n?J.add({type:`warning`,title:`Some history was not imported`,description:n,timeout:0}):i>0&&J.add({type:`success`,title:`Imported ${i} ${i===1?`thread`:`threads`}`}),!0)).catch(()=>{let e={type:`error`,title:`Could not finish setup`,description:`Your settings could not be saved. Try again.`};return h.current===null?h.current=J.add(e):J.update(h.current,e),!1}).finally(()=>{m.current===a&&(m.current=null)});return m.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Oe,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(Ie,{title:`Set up P4 Code`,identity:(0,$.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,role:`img`,"aria-label":`P4 Code`,children:[(0,$.jsx)(Ne,{className:`h-4 w-auto shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`text-2xl font-medium tracking-tight text-muted-foreground`,children:`Code`})]}),children:(0,$.jsx)(Fe,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(je,{holdHeight:y,children:i===`connection`?(0,$.jsx)(ht,{expandPairingInitially:!e&&!z(),selectedIds:_,autoSelectedComputers:l.current,onSelectionChange:c,onToggleEnvironment:(e,t)=>c(n=>{let r=new Set(n??_);return t?r.add(e):r.delete(e),r}),onContinue:()=>b(ct(o,_).environmentIds),onPaired:e=>{c(new Set([..._,e]))}}):i===`agents`?(0,$.jsx)(xt,{environmentIds:u,onContinue:()=>a(`import`)}):(0,$.jsx)(At,{scans:v,isImporting:f,setIsImporting:p,onDone:S})})]}),(0,$.jsx)(Ee,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:i,onSelectionChange:a,onToggleEnvironment:o,onContinue:s,onPaired:c}=e,{environments:l}=te(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=z(),t[0]=d):d=t[0];let f=d,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>!f||!st(e),t[1]=p):p=t[1];let m=l.filter(p),[h,g]=(0,Z.useState)(r),[_,v]=(0,Z.useState)(!1),{ready:y,skippedIds:b}=ct(l,i),C=l.filter(e=>b.includes(e.environmentId)).map(gt),T=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{y&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&T.current?.focus()},[y]);let E,D;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Connect your computers`}),D=(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:`Choose one or more computers. We’ll set up agents and projects on each.`}),t[2]=E,t[3]=D):(E=t[2],D=t[3]);let O=m.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),m.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:i.has(e.environmentId),onCheckedChange:t=>{let n=new Set(i);t?n.add(e.environmentId):n.delete(e.environmentId),a(n)}}),(0,$.jsx)(M,{className:`size-4 shrink-0 text-muted-foreground`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex items-baseline justify-between gap-3`,children:[(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-medium break-words`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:!e.entry.enabled&&e.connection.phase!==`unsupported`?`Off`:Pe(e.connection).buttonLabel})]}),e.displayUrl?(0,$.jsx)(`span`,{className:`mt-0.5 block text-xs break-all text-muted-foreground`,children:e.displayUrl}):null]})]},e.environmentId))]}):null,k;t[4]!==n||t[5]!==_||t[6]!==o||t[7]!==i?(k=f?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:_,selectedIds:i,onToggleEnvironment:o}):null,t[4]=n,t[5]=_,t[6]=o,t[7]=i,t[8]=k):k=t[8];let j,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(x,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(S,{className:`size-4 text-muted-foreground`}),P=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`Add a computer`}),t[9]=j,t[10]=N,t[11]=P):(j=t[9],N=t[10],P=t[11]);let F=h&&`rotate-90`,I;t[12]===F?I=t[13]:(I=A(`size-4 text-muted-foreground`,F),t[12]=F,t[13]=I);let L;t[14]===I?L=t[15]:(L=(0,$.jsx)(u,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==_||t[17]!==L?(R=(0,$.jsxs)(Me,{disabled:_,render:j,children:[N,P,L]}),t[16]=_,t[17]=L,t[18]=R):R=t[18];let B;t[19]===c?B=t[20]:(B=e=>{g(!1),c(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=c,t[20]=B);let V;t[21]!==_||t[22]!==B?(V=(0,$.jsx)(ke,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:_,setIsPairing:v,onPaired:B})})}),t[21]=_,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==h||t[25]!==R||t[26]!==V?(H=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Le,{open:h,onOpenChange:g,children:[R,V]})}),t[24]=h,t[25]=R,t[26]=V,t[27]=H):H=t[27];let U;t[28]!==H||t[29]!==k?(U=(0,$.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[k,H]}),t[28]=H,t[29]=k,t[30]=U):U=t[30];let W=C.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,C.join(`, `),`. You can set`,` `,C.length===1?`it`:`them`,` up later from Settings.`]}):null,G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsxs)(`p`,{className:`min-w-0 text-xs leading-relaxed text-muted-foreground`,children:[`P4 Code collects anonymous usage data to help us improve it. To read more about how your data is used and how to opt out, see our`,` `,(0,$.jsx)(`a`,{className:`underline underline-offset-2 hover:text-foreground`,href:Be,target:`_blank`,rel:`noreferrer noopener`,children:`privacy policy`}),`.`]}),t[31]=G):G=t[31];let K=!r,q=!y||_,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(w,{className:`size-3.5`}),t[32]=J):J=t[32];let ee;t[33]!==s||t[34]!==K||t[35]!==q?(ee=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[G,(0,$.jsxs)(x,{className:`shrink-0 self-end`,ref:T,autoFocus:K,disabled:q,onClick:s,children:[`Continue`,J]})]}),t[33]=s,t[34]=K,t[35]=q,t[36]=ee):ee=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==ee||t[40]!==E||t[41]!==D||t[42]!==O?(Y=(0,$.jsxs)($.Fragment,{children:[E,D,O,U,W,ee]}),t[37]=U,t[38]=W,t[39]=ee,t[40]=E,t[41]=D,t[42]=O,t[43]=Y):Y=t[43],Y}function gt(e){return e.label}function _t(e){let t=(0,Q.c)(36),{autoSelectedComputers:n,disabled:r,selectedIds:i,onToggleEnvironment:a}=e,{environments:o}=te(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={treatPendingAsSignedOut:!1},t[0]=s):s=t[0];let{isLoaded:c,isSignedIn:l}=fe(s),{openAuthPrompt:d}=me(),[f,p]=(0,Z.useState)(!0),[m,h]=(0,Z.useState)(!1),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>h(!0),t[1]=_):_=t[1];let v=_,y=f&&!!l&&m,b=r||!c,S;t[2]!==l||t[3]!==d?(S=e=>{l||(e.preventDefault(),p(!0),d())},t[2]=l,t[3]=d,t[4]=S):S=t[4];let C,w,T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(x,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),w=(0,$.jsx)(g,{className:`size-4 text-muted-foreground`}),T=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=C,t[6]=w,t[7]=T):(C=t[5],w=t[6],T=t[7]);let E=c?l?m?null:`Loading computers…`:`Sign in`:`Loading sign-in…`,D;t[8]===E?D=t[9]:(D=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:E}),t[8]=E,t[9]=D);let O=f&&l&&`rotate-90`,k;t[10]===O?k=t[11]:(k=A(`size-4 text-muted-foreground`,O),t[10]=O,t[11]=k);let j;t[12]===k?j=t[13]:(j=(0,$.jsx)(u,{className:k}),t[12]=k,t[13]=j);let M;t[14]!==D||t[15]!==j||t[16]!==b||t[17]!==S?(M=(0,$.jsxs)(Me,{disabled:b,onClick:S,render:C,children:[w,T,D,j]}),t[14]=D,t[15]=j,t[16]=b,t[17]=S,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==o||t[21]!==l||t[22]!==a||t[23]!==i?(N=l?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:o,showSavedEnvironments:!0,onDiscoveryReady:v,selection:{selectedIds:i,onChange:a,autoSelectedComputers:n},refreshWhileEmpty:!0,empty:(0,$.jsx)(`p`,{className:`py-3 text-sm text-muted-foreground`,children:`No computers linked yet.`})}):null,t[19]=n,t[20]=o,t[21]=l,t[22]=a,t[23]=i,t[24]=N):N=t[24];let P;t[25]===N?P=t[26]:(P=(0,$.jsx)(`div`,{className:`mb-3 space-y-1.5`,children:N}),t[25]=N,t[26]=P);let F,I,L;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Run this on each computer you want to connect.`}),I=(0,$.jsx)(he,{command:`npx @p4code/cli connect`,className:`mt-3`}),L=(0,$.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:`Keep P4 Code running. Select the computers you want to set up above.`}),t[27]=F,t[28]=I,t[29]=L):(F=t[27],I=t[28],L=t[29]);let R;t[30]===P?R=t[31]:(R=(0,$.jsx)(ke,{keepMounted:!0,children:(0,$.jsxs)(`div`,{className:`px-3 pb-3`,children:[P,F,I,L]})}),t[30]=P,t[31]=R);let z;return t[32]!==M||t[33]!==R||t[34]!==y?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Le,{open:y,onOpenChange:p,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=y,t[35]=z):z=t[35],z}function vt(e){let t=(0,Q.c)(38),{isPairing:n,setIsPairing:r,onPaired:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},t[0]=a):a=t[0];let o=ae(we,a),[s,c]=(0,Z.useState)(``),[l,d]=(0,Z.useState)(``),f=(0,Z.useRef)(!0),p,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>(f.current=!0,()=>{f.current=!1}),m=[],t[1]=p,t[2]=m):(p=t[1],m=t[2]),(0,Z.useEffect)(p,m);let h;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(h=async()=>{if(n||s.trim().length===0)return;r(!0),d(``);let e=await o({pairingUrl:s.trim()});if(!f.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(L(e))return;let t=R(e);d(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=h):h=t[8];let g=h,_;t[9]===g?_=t[10]:(_=e=>{e.preventDefault(),g()},t[9]=g,t[10]=_);let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=v):v=t[11];let y=l.length>0,b=l?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>c(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==y||t[16]!==b?(C=(0,$.jsxs)(`div`,{children:[v,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":y,"aria-describedby":b,className:`mt-2`,size:`lg`,autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,nativeInput:!0,readOnly:n,placeholder:`https://your-server:5230/pair#token=…`,value:s,onChange:S,onKeyDown:yt})]}),t[13]=n,t[14]=s,t[15]=y,t[16]=b,t[17]=C):C=t[17];let w;t[18]===l?w=t[19]:(w=l?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:l})}):null,t[18]=l,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Me,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(u,{className:`size-3.5 group-data-panel-open:rotate-90`}),`Need a pairing link?`]}),t[20]=T):T=t[20];let E;t[21]!==n||t[22]!==s?(E=n||s.trim().length===0,t[21]=n,t[22]=s,t[23]=E):E=t[23];let D=n?`Pairing...`:`Pair`,O;t[24]!==E||t[25]!==D?(O=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[T,(0,$.jsx)(x,{type:`submit`,disabled:E,children:D})]}),t[24]=E,t[25]=D,t[26]=O):O=t[26];let k,A;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(`p`,{className:`pt-3 text-sm text-muted-foreground`,children:`Run this on the computer with your code.`}),A=(0,$.jsx)(he,{command:`npx @p4code/cli pair`,className:`mt-2`}),t[27]=k,t[28]=A):(k=t[27],A=t[28]);let j;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli serve`}),t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsxs)(ke,{children:[k,A,(0,$.jsxs)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:[`Start P4 Code first, or run `,j,`. Add `,(0,$.jsx)(`code`,{className:`font-mono`,children:`--tailscale`}),` to use your tailnet.`]})]}),t[30]=M):M=t[30];let N;t[31]===O?N=t[32]:(N=(0,$.jsxs)(Le,{children:[O,M]}),t[31]=O,t[32]=N);let P;return t[33]!==C||t[34]!==w||t[35]!==N||t[36]!==_?(P=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:_,children:[C,w,N]})}),t[33]=C,t[34]=w,t[35]=N,t[36]=_,t[37]=P):P=t[37],P}function yt(e){e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()}var bt=[`codex`,`claudeAgent`];function xt(e){let t=(0,Q.c)(13),{environmentIds:n,onContinue:r}=e,{environments:i}=te(),a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,$.jsx)(St,{environmentId:e,machineLabel:i.find(t=>t.environmentId===e)?.label??`Computer`},e),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;t[5]===a?o=t[6]:(o=(0,$.jsx)(de,{scrollFade:!0,className:`mt-5 h-auto max-h-[min(32rem,55dvh)]`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:a})}),t[5]=a,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(w,{className:`size-3.5`}),t[7]=s):s=t[7];let c;t[8]===r?c=t[9]:(c=(0,$.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,$.jsxs)(x,{autoFocus:!0,onClick:r,children:[`Continue`,s]})}),t[8]=r,t[9]=c);let l;return t[10]!==o||t[11]!==c?(l=(0,$.jsxs)(Kt,{title:`Connect your agents`,description:`Choose an agent to start coding. You can add more later.`,children:[o,c]}),t[10]=o,t[11]=c,t[12]=l):l=t[12],l}function St(e){let t=(0,Q.c)(57),{environmentId:n,machineLabel:r}=e,i;t[0]===n?i=t[1]:(i=Y.providersValueAtom(n),t[0]=n,t[1]=i);let a=j(i),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o={reportFailure:!1},t[2]=o):o=t[2];let s=ae(Y.refreshProviders,o),c;t[3]===n?c=t[4]:(c=Y.configValueAtom(n),t[3]=n,t[4]=c);let l=j(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,D),_,v;t[5]!==n||t[6]!==s?(_=()=>{s({environmentId:n,input:{}})},v=[n,s],t[5]=n,t[6]=s,t[7]=_,t[8]=v):(_=t[7],v=t[8]),(0,Z.useEffect)(_,v);let y;t[9]===a?y=t[10]:(y=Ue(a),t[9]=a,t[10]=y);let b=y,S,C,w,T;if(t[11]!==b||t[12]!==g||t[13]!==m||t[14]!==n||t[15]!==r||t[16]!==a||t[17]!==l||t[18]!==u?.driver){let e;t[23]!==b||t[24]!==a?(e=e=>{let t=e===`codex`?a?.filter(t=>t.driver===e):void 0;return t?.length?t.map(t=>({driver:e,provider:t,instanceId:t.instanceId})):[{driver:e,provider:b.get(e),instanceId:b.get(e)?.instanceId}]},t[23]=b,t[24]=a,t[25]=e):e=t[25];let i=bt.flatMap(e);if(m){let e;t[26]===m?e=t[27]:(e=e=>e.instanceId===m.instanceId,t[26]=m,t[27]=e);let n=i.findIndex(e),[r]=n>=0?i.splice(n,1):[];i.unshift(r??{driver:`codex`,provider:void 0,instanceId:m.instanceId})}t[28]===r?T=t[29]:(T=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=T),t[30]===g?S=t[31]:(S=g?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=g,t[31]=S),C=`space-y-1.5`;let o;t[32]!==g||t[33]!==m||t[34]!==n||t[35]!==l||t[36]!==u?.driver?(o=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&l!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:l,createdAccount:i===m?.instanceId?m:null,onAutoStartConsumed:()=>h(wt),terminalOpen:u?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:u?.driver===t,terminalAvailable:l!==null&&g,onOpenTerminal:()=>{r!==void 0&&l!==null&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},t)},t[32]=g,t[33]=m,t[34]=n,t[35]=l,t[36]=u?.driver,t[37]=o):o=t[37],w=i.map(o),t[11]=b,t[12]=g,t[13]=m,t[14]=n,t[15]=r,t[16]=a,t[17]=l,t[18]=u?.driver,t[19]=S,t[20]=C,t[21]=w,t[22]=T}else S=t[19],C=t[20],w=t[21],T=t[22];let E;t[38]!==C||t[39]!==w?(E=(0,$.jsx)(`div`,{className:C,children:w}),t[38]=C,t[39]=w,t[40]=E):E=t[40];let O;t[41]===a?O=t[42]:(O=a?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(x,{size:`xs`,variant:`ghost-muted`,onClick:()=>p(!0),children:`Connect another ChatGPT account`})}):null,t[41]=a,t[42]=O);let k;t[43]!==f||t[44]!==n?(k=f?(0,$.jsx)(Ke,{environmentId:n,onClose:()=>p(!1),onAccountCreated:(e,t)=>h({instanceId:e,displayName:t,autoStart:!0})}):null,t[43]=f,t[44]=n,t[45]=k):k=t[45];let A;t[46]!==n||t[47]!==s||t[48]!==u?(A=u===null?null:(0,$.jsx)(Dt,{session:u,onClose:()=>{d(null),s({environmentId:n,input:{}})}},`${u.environmentId}:${u.providerInstanceId}:${u.driver}`),t[46]=n,t[47]=s,t[48]=u,t[49]=A):A=t[49];let M;return t[50]!==S||t[51]!==E||t[52]!==O||t[53]!==k||t[54]!==A||t[55]!==T?(M=(0,$.jsxs)(`section`,{children:[T,S,E,O,k,A]}),t[50]=S,t[51]=E,t[52]=O,t[53]=k,t[54]=A,t[55]=T,t[56]=M):M=t[56],M}function Ct(e){return e.driver===`codex`&&Ge(e)===`ready`}function wt(e){return e?{...e,autoStart:!1}:null}function Tt(e){let t=(0,Q.c)(28),{createdAccount:n,onAutoStartConsumed:r,environmentId:i,provider:a,serverConfig:s,terminalOpen:c,onOpenTerminal:l}=e,u=ne(i,D),d=ae(Y.updateSettings,`Codex setup settings`),f;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(f=n?.instanceId??a?.instanceId??p(o.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=f):f=t[2];let m=f,h=s.settings,g;t[3]!==n||t[4]!==m||t[5]!==h.providerInstances?(g=h.providerInstances[m]??{driver:o.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=m,t[5]=h.providerInstances,t[6]=g):g=t[6];let _=g,v;t[7]===_.config?v=t[8]:(v=Je(_.config),t[7]=_.config,t[8]=v);let y=v,b=y===`existing`&&_.config!==null&&typeof _.config==`object`&&`setupMode`in _.config&&_.config.setupMode===`existing`,x;t[9]!==i||t[10]!==_||t[11]!==m||t[12]!==h||t[13]!==d?(x=e=>{d({environmentId:i,input:{patch:Ve({settings:h,instanceId:m,instance:{..._,enabled:!0,config:{..._.config!==null&&typeof _.config==`object`?_.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=_,t[11]=m,t[12]=h,t[13]=d,t[14]=x):x=t[14];let S=x,C;return t[15]!==u||t[16]!==S||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==b||t[21]!==m||t[22]!==y||t[23]!==r||t[24]!==l||t[25]!==a||t[26]!==c?(C=b?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:c,terminalAvailable:u,onOpenTerminal:l}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:m,provider:a,mode:y,enabled:a?.enabled??!0,onModeChange:S}),t[15]=u,t[16]=S,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=b,t[21]=m,t[22]=y,t[23]=r,t[24]=l,t[25]=a,t[26]=c,t[27]=C):C=t[27],C}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:a,terminalAvailable:s,onOpenTerminal:l}=e,u;t[0]===n?u=t[1]:(u=Se.get(o.make(n)),t[0]=n,t[1]=u);let d=u,f=r?.displayName||(n===`claudeAgent`?`Claude Code`:d?.label??n),p;t[2]===r?p=t[3]:(p=qe(r),t[2]=r,t[3]=p);let m=p,h;t[4]===r?h=t[5]:(h=Ge(r),t[4]=r,t[5]=h);let g=h,_;t[6]===n?_=t[7]:(_=o.make(n),t[6]=n,t[7]=_);let v;t[8]!==f||t[9]!==_?(v=(0,$.jsx)(Ce,{driverKind:_,displayName:f,iconClassName:`size-5`}),t[8]=f,t[9]=_,t[10]=v):v=t[10];let y;t[11]===f?y=t[12]:(y=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:f}),t[11]=f,t[12]=y);let b=g===`ready`?`Ready to code.`:m.headline,S=g!==`ready`&&m.detail?` · ${m.detail}`:``,C;t[13]!==b||t[14]!==S?(C=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[b,S]}),t[13]=b,t[14]=S,t[15]=C):C=t[15];let w;t[16]!==y||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[y,C]}),t[16]=y,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==l||t[20]!==g||t[21]!==m||t[22]!==s||t[23]!==a?(T=(0,$.jsx)(`div`,{className:`shrink-0`,children:g===`ready`?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,$.jsx)(i,{className:`size-3.5`}),`Ready`]}):g===`checking`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):g===`disabled`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Disabled`}):g===`attention`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:m.headline}):(0,$.jsxs)(x,{size:`xs`,variant:`ghost`,onClick:l,disabled:a||!s,children:[(0,$.jsx)(c,{className:`size-3.5`}),g===`signIn`?`Sign in`:`Install`]})}),t[19]=l,t[20]=g,t[21]=m,t[22]=s,t[23]=a,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==v?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[v,w,T]}),t[25]=w,t[26]=T,t[27]=v,t[28]=E):E=t[28],E}function Dt(e){let t=(0,Q.c)(60),{session:n,onClose:r}=e,{command:i,cwd:a,driver:o,environmentId:s,keybindings:c,providerInstanceId:u}=n,d=ne(s,D),[p]=l(Te,!1,O),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={reportFailure:!1},t[0]=m):m=t[0];let h=ae(ve.open,m),g;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(g={reportFailure:!1},t[1]=g):g=t[1];let _=ae(ve.write,g),v;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(v={reportFailure:!1},t[2]=v):v=t[2];let y=ae(ve.close,v),b;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(b=Promise.resolve(),t[3]=b):b=t[3];let S=(0,Z.useRef)(b),w=(0,Z.useRef)(0),T=(0,Z.useRef)(null),E;t[4]===o?E=t[5]:(E=()=>`onboarding-${o}-${C()}`,t[4]=o,t[5]=E);let[k]=(0,Z.useState)(E),A;t[6]===s?A=t[7]:(A=f(s,dt),t[6]=s,t[7]=A);let j=A,[M,N]=(0,Z.useState)(0),[P,F]=(0,Z.useState)(`preparing`),I=P===`ready`||P===`writeFailed`,L;t[8]!==y||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==h||t[13]!==u||t[14]!==k||t[15]!==_?(L=()=>{let e=w.current+1;return w.current=e,T.current=e,F(`preparing`),S.current=S.current.then(async()=>{if(T.current!==e)return;if(!X(s,`terminal:operate`)){F(`openFailed`);return}if((await h({environmentId:s,input:{threadId:dt,terminalId:k,cwd:a,providerInstanceId:u}}))._tag!==`Success`){T.current===e&&F(`openFailed`);return}if(T.current!==e)return;if(!X(s,`terminal:operate`)){F(`writeFailed`);return}let t=await _({environmentId:s,input:{threadId:dt,terminalId:k,data:i}});T.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{T.current===e&&(T.current=null),S.current=S.current.then(async()=>{X(s,`terminal:operate`)&&await y({environmentId:s,input:{threadId:dt,terminalId:k,deleteHistory:!0}})})}},t[8]=y,t[9]=i,t[10]=a,t[11]=s,t[12]=h,t[13]=u,t[14]=k,t[15]=_,t[16]=L):L=t[16];let R;t[17]!==y||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==h||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==_?(R=[y,i,a,s,h,u,M,k,_],t[17]=y,t[18]=i,t[19]=a,t[20]=s,t[21]=h,t[22]=u,t[23]=M,t[24]=k,t[25]=_,t[26]=R):R=t[26],(0,Z.useEffect)(L,R);let z;t[27]!==d||t[28]!==i||t[29]!==P?(z=d?P===`writeFailed`?(0,$.jsxs)($.Fragment,{children:[`Run `,(0,$.jsx)(`code`,{className:`rounded bg-muted px-1 font-mono`,children:i}),` in this terminal.`]}):P===`ready`?`Review the command, then press Enter to run it.`:P===`openFailed`?`Could not open the setup terminal.`:`Preparing command...`:`This connection cannot control terminals.`,t[27]=d,t[28]=i,t[29]=P,t[30]=z):z=t[30];let B;t[31]===z?B=t[32]:(B=(0,$.jsx)(`span`,{className:`text-2xs font-medium text-muted-foreground`,children:z}),t[31]=z,t[32]=B);let V;t[33]!==d||t[34]!==s||t[35]!==P?(V=P===`openFailed`?(0,$.jsx)(x,{size:`xs`,variant:`ghost`,disabled:!d,onClick:()=>{X(s,`terminal:operate`)&&N(Ot)},children:`Retry`}):null,t[33]=d,t[34]=s,t[35]=P,t[36]=V):V=t[36];let H;t[37]===r?H=t[38]:(H=(0,$.jsx)(x,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==p||t[46]!==a||t[47]!==o||t[48]!==c||t[49]!==r||t[50]!==u||t[51]!==k||t[52]!==I||t[53]!==j?(G=I?(0,$.jsx)(_e,{threadRef:j,threadId:dt,terminalId:k,terminalLabel:`Install ${o}`,cwd:a,providerInstanceId:u,advancedTypography:p,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:c}):null,t[45]=p,t[46]=a,t[47]=o,t[48]=c,t[49]=r,t[50]=u,t[51]=k,t[52]=I,t[53]=j,t[54]=G):G=t[54];let K;t[55]===G?K=t[56]:(K=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=K);let q;return t[57]!==W||t[58]!==K?(q=(0,$.jsxs)(`div`,{"data-thread-terminal-drawer":!0,className:`mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground`,children:[W,K]}),t[57]=W,t[58]=K,t[59]=q):q=t[59],q}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(81),{scans:n,isImporting:r,setIsImporting:i,onDone:o}=e,{environments:s}=te(),c=re(n,_),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={reportFailure:!1},t[0]=l):l=t[0];let u=ae(V.create,l),d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[1]=d):d=t[1];let f=ae(ot,d),p=B(),[m,h]=(0,Z.useState)(null),g=(0,Z.useRef)(``),y=(0,Z.useRef)(0),[b,S]=(0,Z.useState)(null),C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=new Map,t[2]=C):C=t[2];let w=(0,Z.useRef)(C),T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Map,t[3]=T):T=t[3];let D=(0,Z.useRef)(T),O;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(O=[],t[4]=O):O=t[4];let k=(0,Z.useRef)(O),A;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(A=new Map,t[5]=A):A=t[5];let j=(0,Z.useRef)(A),M=(0,Z.useRef)(0),N,P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>(M.current+=1,()=>{M.current+=1}),P=[],t[6]=N,t[7]=P):(N=t[6],P=t[7]),(0,Z.useEffect)(N,P);let F,I;t[8]!==b||t[9]!==o||t[10]!==p||t[11]!==i?(I=()=>{b!==null&&p.some(e=>e.id===b.projectId&&e.environmentId===b.environmentId)&&(S(null),o(b,g.current,y.current).then(e=>{e||i(!1)}))},F=[b,o,p,i],t[8]=b,t[9]=o,t[10]=p,t[11]=i,t[12]=F,t[13]=I):(F=t[12],I=t[13]),(0,Z.useEffect)(I,F);let R;t[14]===n?R=t[15]:(R=Qe(n.flatMap(Lt)),t[14]=n,t[15]=R);let{available:z,recent:H}=R,W;t[16]!==H||t[17]!==m?(W=m??new Set(H.map(It)),t[16]=H,t[17]=m,t[18]=W):W=t[18];let K=W,q,J;if(t[19]!==z||t[20]!==K||t[21]!==c){let e;t[24]===K?e=t[25]:(e=e=>K.has(e.key),t[24]=K,t[25]=e),q=z.filter(e);let n;t[26]===c?n=t[27]:(n=e=>c.has(e.environmentId),t[26]=c,t[27]=n),J=q.every(n),t[19]=z,t[20]=K,t[21]=c,t[22]=q,t[23]=J}else q=t[22],J=t[23];let ee=J,[Y,ne]=(0,Z.useState)(``),X=ee?Y===kt?``:Y:kt,ie;t[28]!==o||t[29]!==i?(ie=()=>{let e=nt(k.current,D.current,w.current);e===void 0?o(void 0,g.current,y.current):(i(!0),S(e))},t[28]=o,t[29]=i,t[30]=ie):ie=t[30];let oe=ie,se;t[31]!==u||t[32]!==oe||t[33]!==f||t[34]!==r||t[35]!==o||t[36]!==n||t[37]!==i?(se=async e=>{if(r)return;let t=()=>e.every(Ft),s=()=>{i(!1),ne(kt)};if(!t()){s();return}if(e.length===0){o();return}i(!0),g.current=``,y.current=0,k.current=e.map(Pt);let c=M.current,l=w.current,d=j.current,p=l.size>0?e.filter(e=>l.has(e.key)).length:0,m=0,h=0,_=new Set;for(let n of e){let{environmentId:e}=n;if(c!==M.current||l!==w.current)return;if(!t()){s();return}if(l.has(n.key))continue;let r=tt(U(),e,n);if(r===null){let t=d.get(n.key);if(t===void 0){let e=E();t={projectId:e,commandId:a.make(`onboarding:project:create:${e}`)},d.set(n.key,t)}r=t.projectId;let i=await u({environmentId:e,input:{projectId:r,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(c!==M.current||l!==w.current)return;if(i._tag!==`Success`){L(i)||(d.delete(n.key),_.add(e));continue}}if(!t()){s();return}let i=await f({environmentId:e,input:{projectId:r,expectedWorkspaceRoot:n.path}});if(c!==M.current||l!==w.current)return;i._tag===`Success`?(m+=i.value.importedCount,h+=i.value.skippedCount,i.value.importedCount>0&&D.current.set(n.key,v(e,r)),i.value.skippedCount===0&&(p+=1,l.set(n.key,v(e,r)))):L(i)||(d.delete(n.key),_.add(e))}for(let e of n)_.has(e.environmentId)&&e.refresh();i(!1),y.current=m,p<e.length&&(m>0&&h>0?g.current=`Imported ${m} ${m===1?`thread`:`threads`}. ${h} ${h===1?`thread`:`threads`} could not be imported.`:h>0?g.current=`${h} ${h===1?`thread could`:`threads could`} not be imported.`:m>0?g.current=`Imported ${m} ${m===1?`thread`:`threads`}. Some thread history could not be imported.`:g.current=`Could not import thread history.`),oe()},t[31]=u,t[32]=oe,t[33]=f,t[34]=r,t[35]=o,t[36]=n,t[37]=i,t[38]=se):se=t[38];let ce=se;if(n.every(Nt)&&n.some(Mt)){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[39]=e):e=t[39];let n;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-6`,children:[(0,$.jsx)(G,{size:`lg`,tone:`muted`}),(0,$.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`Looking for projects from Claude Code and Codex…`})]}),t[40]=n):n=t[40];let r;return t[41]===o?r=t[42]:(r=(0,$.jsxs)(`div`,{className:`flex h-full min-h-40 flex-col`,children:[e,n,(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(x,{variant:`ghost-muted`,onClick:()=>void o(),children:`Do not import projects`})})]}),t[41]=o,t[42]=r),r}let le;t[43]!==z||t[44]!==r||t[45]!==q?(le=z.length>0?(0,$.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3 text-xs text-muted-foreground`,children:[(0,$.jsxs)(`span`,{role:`status`,children:[q.length,` of `,z.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(x,{variant:`ghost`,size:`xs`,disabled:r||q.length===z.length,onClick:()=>h(new Set(z.map(jt))),children:`Select all`}),(0,$.jsx)(x,{variant:`ghost`,size:`xs`,disabled:r||q.length===0,onClick:()=>h(new Set),children:`Select none`})]})]}):null,t[43]=z,t[44]=r,t[45]=q,t[46]=le):le=t[46];let ue;if(t[47]!==z||t[48]!==s||t[49]!==r||t[50]!==n||t[51]!==K){let e;t[53]!==z||t[54]!==s||t[55]!==r||t[56]!==n.length||t[57]!==K?(e=e=>{let t=z.filter(t=>t.environmentId===e.environmentId),i=s.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:r,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:i}):null,e.isPending&&e.data===null?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(G,{size:`md`}),`Looking for projects…`]}):e.error===null?t.length===0?(0,$.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`No existing Claude Code or Codex projects found.`}):null:(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-muted-foreground`,children:[(0,$.jsxs)(`span`,{children:[`Could not check projects. `,e.error]}),(0,$.jsx)(x,{variant:`ghost`,size:`sm`,onClick:e.refresh,children:`Retry`})]}),e.data?.truncated?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:pt}):null,(0,$.jsx)(Rt,{candidates:t,selectedKeys:K,onSelectionChange:h})]},e.environmentId)},t[53]=z,t[54]=s,t[55]=r,t[56]=n.length,t[57]=K,t[58]=e):e=t[58],ue=n.map(e),t[47]=z,t[48]=s,t[49]=r,t[50]=n,t[51]=K,t[52]=ue}else ue=t[52];let fe;t[59]===ue?fe=t[60]:(fe=(0,$.jsx)(de,{scrollFade:!0,className:`mt-2 h-auto max-h-80`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:ue})}),t[59]=ue,t[60]=fe);let pe;t[61]===X?pe=t[62]:(pe=X?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:X}):null,t[61]=X,t[62]=pe);let me;t[63]!==oe||t[64]!==r?(me=(0,$.jsx)(x,{variant:`ghost-muted`,disabled:r,onClick:oe,children:`Do not import projects`}),t[63]=oe,t[64]=r,t[65]=me):me=t[65];let he=!ee||r||q.length===0,ge;t[66]!==ce||t[67]!==q?(ge=()=>void ce(q),t[66]=ce,t[67]=q,t[68]=ge):ge=t[68];let _e=r?`Importing…`:`Import ${q.length} ${q.length===1?`project`:`projects`}`,ve;t[69]!==he||t[70]!==ge||t[71]!==_e?(ve=(0,$.jsx)(x,{autoFocus:!0,disabled:he,onClick:ge,children:_e}),t[69]=he,t[70]=ge,t[71]=_e,t[72]=ve):ve=t[72];let ye;t[73]!==me||t[74]!==ve?(ye=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[me,ve]}),t[73]=me,t[74]=ve,t[75]=ye):ye=t[75];let be;return t[76]!==le||t[77]!==fe||t[78]!==pe||t[79]!==ye?(be=(0,$.jsxs)(Kt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[le,fe,pe,ye]}),t[76]=le,t[77]=fe,t[78]=pe,t[79]=ye,t[80]=be):be=t[80],be}function jt(e){return e.key}function Mt(e){return e.isPending}function Nt(e){return e.data===null}function Pt(e){return e.key}function Ft(e){return X(e.environmentId,_)}function It(e){return e.key}function Lt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function Rt(e){let t=(0,Q.c)(25),{candidates:n,selectedKeys:r,onSelectionChange:i}=e,a;t[0]===n?a=t[1]:(a=et(n),t[0]=n,t[1]=a);let{repositories:o,other:s}=a,c;t[2]!==i||t[3]!==r?(c=(e,t)=>{let n=new Set(r);for(let r of e)t?n.add(r):n.delete(r);i(n)},t[2]=i,t[3]=r,t[4]=c):c=t[4];let l=c,d;if(t[5]!==s||t[6]!==r){let e;t[8]===r?e=t[9]:(e=e=>r.has(e.key),t[8]=r,t[9]=e),d=s.filter(e),t[5]=s,t[6]=r,t[7]=d}else d=t[7];let f=d.length,p;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Bt,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],p=o.map(e),t[10]=o,t[11]=r,t[12]=l,t[13]=p}else p=t[13];let m;t[17]!==s||t[18]!==f||t[19]!==r||t[20]!==l?(m=s.length>0?(0,$.jsxs)(Le,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:f===s.length,indeterminate:f>0&&f<s.length,onCheckedChange:e=>l(s.map(zt),e===!0)}),(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(u,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),(0,$.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:`Other folders`}),(0,$.jsxs)(`span`,{className:`ml-auto shrink-0 text-xs text-muted-foreground tabular-nums`,children:[s.length,` `,s.length===1?`folder`:`folders`]})]})]}),(0,$.jsx)(ke,{children:s.map(e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>l([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=f,t[19]=r,t[20]=l,t[21]=m):m=t[21];let h;return t[22]!==p||t[23]!==m?(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function zt(e){return e.key}function Bt(e){let t=(0,Q.c)(53),{group:n,selectedKeys:r,onToggle:i}=e,a,o;if(t[0]!==n.candidates||t[1]!==r){a=n.candidates.map(Ht);let e;t[4]===r?e=t[5]:(e=e=>r.has(e),t[4]=r,t[5]=e),o=a.filter(e),t[0]=n.candidates,t[1]=r,t[2]=a,t[3]=o}else a=t[2],o=t[3];let s=o.length,c=n.candidates.length===1,l=n.candidates[0];if(c&&l!==void 0){let e=n.label,a=l.path,o;t[6]!==l.key||t[7]!==r?(o=r.has(l.key),t[6]=l.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==l.key?(s=e=>i([l.key],e),t[9]=i,t[10]=l.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==l||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(Wt,{candidate:l,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=l,t[14]=o,t[15]=s,t[16]=c):c=t[16],c}let d=s===a.length,f=s>0&&s<a.length,p;t[17]!==a||t[18]!==i?(p=e=>i(a,e===!0),t[17]=a,t[18]=i,t[19]=p):p=t[19];let m;t[20]!==d||t[21]!==f||t[22]!==p?(m=(0,$.jsx)(ge,{checked:d,indeterminate:f,onCheckedChange:p}),t[20]=d,t[21]=f,t[22]=p,t[23]=m):m=t[23];let h;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(u,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),t[24]=h):h=t[24];let g;t[25]===n.label?g=t[26]:(g=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:n.label}),t[25]=n.label,t[26]=g);let _;t[27]===n.candidates?_=t[28]:(_=new Set(n.candidates.flatMap(Vt)),t[27]=n.candidates,t[28]=_);let v;t[29]===_?v=t[30]:(v=[..._],t[29]=_,t[30]=v);let y;t[31]!==n.lastActiveAt||t[32]!==n.threadCount||t[33]!==v?(y=(0,$.jsx)(Gt,{sources:v,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[31]=n.lastActiveAt,t[32]=n.threadCount,t[33]=v,t[34]=y):y=t[34];let b;t[35]!==y||t[36]!==g?(b=(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[h,g,y]}),t[35]=y,t[36]=g,t[37]=b):b=t[37];let x;t[38]!==b||t[39]!==m?(x=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[m,b]}),t[38]=b,t[39]=m,t[40]=x):x=t[40];let S;if(t[41]!==n.candidates||t[42]!==i||t[43]!==r){let e;t[45]!==i||t[46]!==r?(e=e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>i([e.key],t)},e.key),t[45]=i,t[46]=r,t[47]=e):e=t[47],S=n.candidates.map(e),t[41]=n.candidates,t[42]=i,t[43]=r,t[44]=S}else S=t[44];let C;t[48]===S?C=t[49]:(C=(0,$.jsx)(ke,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Le,{defaultOpen:!0,children:[x,C]}),t[50]=x,t[51]=C,t[52]=w):w=t[52],w}function Vt(e){return e.sources}function Ht(e){return e.key}function Ut(e){let t=(0,Q.c)(12),{path:n,className:r}=e,i;t[0]===n?i=t[1]:(i=rt(n),t[0]=n,t[1]=i);let{name:a,parent:o}=i,s;t[2]===r?s=t[3]:(s=A(`flex min-w-0 items-baseline font-mono`,r),t[2]=r,t[3]=s);let c;t[4]===o?c=t[5]:(c=o.length>0?(0,$.jsx)(`span`,{className:`truncate`,children:o}):null,t[4]=o,t[5]=c);let l;t[6]===a?l=t[7]:(l=(0,$.jsx)(`span`,{className:`max-w-full shrink-0 truncate`,children:a}),t[6]=a,t[7]=l);let u;return t[8]!==s||t[9]!==c||t[10]!==l?(u=(0,$.jsxs)(`span`,{className:s,children:[c,l]}),t[8]=s,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Wt(e){let t=(0,Q.c)(30),{candidate:n,label:r,path:i,nested:a,checked:o,onCheckedChange:s}=e,c=a!==void 0&&a,l=c&&`pl-8`,u;t[0]===l?u=t[1]:(u=A(`flex cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40 has-disabled:cursor-default`,l),t[0]=l,t[1]=u);let d;t[2]===s?d=t[3]:(d=e=>s(e===!0),t[2]=s,t[3]=d);let f;t[4]!==o||t[5]!==d?(f=(0,$.jsx)(ge,{checked:o,onCheckedChange:d}),t[4]=o,t[5]=d,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-2 truncate`}),t[7]=p):p=t[7];let m;t[8]===r?m=t[9]:(m=r===void 0?null:(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:r}),t[8]=r,t[9]=m);let h;t[10]!==r||t[11]!==i?(h=i===void 0?null:(0,$.jsx)(Ut,{path:i,className:r===void 0?`text-xs`:`text-2xs text-muted-foreground`}),t[10]=r,t[11]=i,t[12]=h):h=t[12];let g;t[13]!==m||t[14]!==h?(g=(0,$.jsxs)(se,{render:p,children:[m,h]}),t[13]=m,t[14]=h,t[15]=g):g=t[15];let _;t[16]===n.path?_=t[17]:(_=(0,$.jsx)(ce,{variant:`code`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==_||t[19]!==g?(v=(0,$.jsxs)(le,{children:[g,_]}),t[18]=_,t[19]=g,t[20]=v):v=t[20];let y=c?null:n.sources,b;t[21]!==n.lastActiveAt||t[22]!==n.threadCount||t[23]!==y?(b=(0,$.jsx)(Gt,{sources:y,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[21]=n.lastActiveAt,t[22]=n.threadCount,t[23]=y,t[24]=b):b=t[24];let x;return t[25]!==v||t[26]!==b||t[27]!==u||t[28]!==f?(x=(0,$.jsxs)(`label`,{className:u,children:[f,v,b]}),t[25]=v,t[26]=b,t[27]=u,t[28]=f,t[29]=x):x=t[29],x}function Gt(e){let t=(0,Q.c)(19),{sources:n,threadCount:r,lastActiveAt:i}=e,a;t[0]===i?a=t[1]:(a=i===null?null:oe(i),t[0]=i,t[1]=a);let s=a,c=s===null?``:s.suffix===null?`now`:s.value,l;t[2]===n?l=t[3]:(l=n?.includes(`claudeAgent`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Claude Code`,children:(0,$.jsx)(Ce,{driverKind:o.make(`claudeAgent`),displayName:`Claude Code`,iconClassName:`size-3`})}):null,t[2]=n,t[3]=l);let u;t[4]===l?u=t[5]:(u=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:l}),t[4]=l,t[5]=u);let d;t[6]===n?d=t[7]:(d=n?.includes(`codex`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Codex`,children:(0,$.jsx)(Ce,{driverKind:o.make(`codex`),displayName:`Codex`,iconClassName:`size-3`})}):null,t[6]=n,t[7]=d);let f;t[8]===d?f=t[9]:(f=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:d}),t[8]=d,t[9]=f);let p;t[10]===r?p=t[11]:(p=(0,$.jsx)(`span`,{className:`text-right`,children:r}),t[10]=r,t[11]=p);let m;t[12]===c?m=t[13]:(m=(0,$.jsx)(`span`,{className:`text-right whitespace-nowrap`,children:c}),t[12]=c,t[13]=m);let h;return t[14]!==u||t[15]!==f||t[16]!==p||t[17]!==m?(h=(0,$.jsxs)(`span`,{className:`ml-auto grid shrink-0 grid-cols-[1rem_1rem_2.5rem_2.25rem] items-center gap-x-1 text-xs text-muted-foreground tabular-nums`,children:[u,f,p,m]}),t[14]=u,t[15]=f,t[16]=p,t[17]=m,t[18]=h):h=t[18],h}function Kt(e){let t=(0,Q.c)(8),{title:n,description:r,children:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r?(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:r}):null,t[2]=r,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,$.jsxs)($.Fragment,{children:[a,o,i]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}var qt=N(s);function Jt(){let e=(0,Q.c)(14),{authGateState:t}=Ae.useRouteContext(),n=K(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:Xt},e[0]=r):r=e[0];let i=q(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?k(qt(i.slice(7))):void 0,e[1]=i,e[2]=a);let o=a,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s={select:Yt},e[3]=s):s=e[3];let c=q(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{u(!0),e===void 0?await n({to:`/`,replace:!0}):await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}))}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Yt(e){return e.pathname===`/welcome`}function Xt(e){return e.hash}export{Jt as component};
2
+ //# sourceMappingURL=welcome-CJLDvQwx.js.map
@@ -384,7 +384,7 @@
384
384
  </script>
385
385
  <style>html,body,#root{width:100%;height:100%;margin:0}body{color:#262626;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}html.dark body{color:#f5f5f5;background:#0a0a0a}#boot-shell{background:inherit;min-height:100%;color:inherit;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}html[data-theme-selected=true] #boot-shell{background:var(--boot-background);color:var(--boot-foreground)}#boot-shell-card{z-index:1;justify-content:center;align-items:center;width:96px;height:96px;display:flex;position:relative}#boot-shell-logo{object-fit:contain;width:64px;height:64px}#boot-error{text-align:center;justify-items:center;gap:16px;max-width:600px;padding:24px;display:grid}#boot-error p{overflow-wrap:anywhere;margin:0}#boot-error button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:4px;padding:8px 16px}</style>
386
386
  <title>P4 Code</title>
387
- <script type="module" crossorigin src="/assets/index-CZlF3wQ9.js"></script>
387
+ <script type="module" crossorigin src="/assets/index-DD6u-vDm.js"></script>
388
388
  </head>
389
389
  <body>
390
390
  <div id="root">
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-DvE0t3kv.mjs";
3
+ import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-KPwu-Er9.mjs";
4
4
  import * as NodeModule from "node:module";
5
5
  // ../../node_modules/.pnpm/konva@10.7.1_skia-canvas@3.0.8/node_modules/konva/lib/Global.js
6
6
  /*
@@ -17641,4 +17641,4 @@ function createRenderer(width, height) {
17641
17641
  }
17642
17642
  export { createRenderer, rasterizeSvg, renderDesignExport, renderDesignPng };
17643
17643
 
17644
- //# sourceMappingURL=renderer-B3Ia4LBS.mjs.map
17644
+ //# sourceMappingURL=renderer-DNRW9Bfa.mjs.map
@@ -24665,6 +24665,51 @@ const AgentAssetListFilter = Struct({ kind: optional(AgentAssetKind) });
24665
24665
  const encoder = new TextEncoder();
24666
24666
  /** Encoded byte size of an asset's paths and contents, the quantity the total cap bounds. */
24667
24667
  const agentAssetTotalBytes = (files) => files.reduce((total, file) => total + encoder.encode(file.content).length + encoder.encode(file.path).length, 0);
24668
+ // ../../packages/contracts/src/hubSync.ts
24669
+ /** Why one asset was skipped by a sync pass, as `AssetSync` reports it. */
24670
+ const HubSyncIssue = Struct({
24671
+ kind: AgentAssetKind,
24672
+ name: String$1,
24673
+ /** `edited-both-sides`, `unmanaged-local-collision`, `mass-removal-held`, and so on. */
24674
+ reason: String$1
24675
+ });
24676
+ const HubSyncRun = Struct({
24677
+ finishedAt: IsoDateTime,
24678
+ /** `unavailable` means the hub could not be reached and nothing on disk changed. */
24679
+ outcome: Literals(["synced", "unavailable"]),
24680
+ detail: NullOr(String$1),
24681
+ received: NonNegativeInt,
24682
+ published: NonNegativeInt,
24683
+ removed: NonNegativeInt,
24684
+ conflicts: ArraySchema(HubSyncIssue),
24685
+ refused: ArraySchema(HubSyncIssue)
24686
+ });
24687
+ /** What the Hub sync settings section shows. Never carries the token. */
24688
+ const HubSyncStatus = Struct({
24689
+ /** `environment` links come from `P4CODE_HUB_URL`/`P4CODE_HUB_TOKEN` and cannot be edited here. */
24690
+ source: Literals([
24691
+ "none",
24692
+ "stored",
24693
+ "environment"
24694
+ ]),
24695
+ baseUrl: NullOr(String$1),
24696
+ syncMode: Literals(["auto", "paused"]),
24697
+ intervalMinutes: NonNegativeInt,
24698
+ running: Boolean,
24699
+ lastRun: NullOr(HubSyncRun)
24700
+ });
24701
+ const HubSyncConnectInput = Struct({
24702
+ baseUrl: TrimmedNonEmptyString,
24703
+ token: TrimmedNonEmptyString
24704
+ });
24705
+ const HubSyncSetModeInput = Struct({ syncMode: Literals(["auto", "paused"]) });
24706
+ const HubSyncResolution = Literals(["keep-local", "use-hub"]);
24707
+ const HubSyncResolveInput = Struct({
24708
+ kind: AgentAssetKind,
24709
+ name: TrimmedNonEmptyString,
24710
+ resolution: HubSyncResolution
24711
+ });
24712
+ var HubSyncError = class extends TaggedError()("HubSyncError", { message: String$1 }) {};
24668
24713
  // ../../packages/contracts/src/threadSearch.ts
24669
24714
  const OrchestrationThreadSearchSource = Literals(["user", "assistant"]);
24670
24715
  const OrchestrationSearchThreadsInput = Struct({
@@ -28680,6 +28725,12 @@ const WS_METHODS = {
28680
28725
  selfImproveSaveFindings: "selfImprove.saveFindings",
28681
28726
  selfImproveUndoSave: "selfImprove.undoSave",
28682
28727
  selfImproveSetMemoryMirror: "selfImprove.setMemoryMirror",
28728
+ hubSyncSubscribe: "hubSync.subscribe",
28729
+ hubSyncRunNow: "hubSync.runNow",
28730
+ hubSyncConnect: "hubSync.connect",
28731
+ hubSyncDisconnect: "hubSync.disconnect",
28732
+ hubSyncSetMode: "hubSync.setMode",
28733
+ hubSyncResolve: "hubSync.resolve",
28683
28734
  worktreeSetupCancel: "worktreeSetup.cancel",
28684
28735
  subscribeTerminalEvents: "subscribeTerminalEvents",
28685
28736
  subscribeTerminalMetadata: "subscribeTerminalMetadata",
@@ -29485,6 +29536,36 @@ const WsSelfImproveUndoSaveRpc = make$1(WS_METHODS.selfImproveUndoSave, {
29485
29536
  success: SelfImproveUndoSaveResult,
29486
29537
  error: Union([EnvironmentAuthorizationError, SelfImproveError])
29487
29538
  });
29539
+ const HubSyncRpcError = Union([EnvironmentAuthorizationError, HubSyncError]);
29540
+ /** Hub link, last pass and conflicts; a fresh status after every change and every pass. */
29541
+ const WsHubSyncSubscribeRpc = make$1(WS_METHODS.hubSyncSubscribe, {
29542
+ success: HubSyncStatus,
29543
+ error: HubSyncRpcError,
29544
+ stream: true
29545
+ });
29546
+ const WsHubSyncRunNowRpc = make$1(WS_METHODS.hubSyncRunNow, {
29547
+ success: HubSyncStatus,
29548
+ error: HubSyncRpcError
29549
+ });
29550
+ const WsHubSyncConnectRpc = make$1(WS_METHODS.hubSyncConnect, {
29551
+ payload: HubSyncConnectInput,
29552
+ success: HubSyncStatus,
29553
+ error: HubSyncRpcError
29554
+ });
29555
+ const WsHubSyncDisconnectRpc = make$1(WS_METHODS.hubSyncDisconnect, {
29556
+ success: HubSyncStatus,
29557
+ error: HubSyncRpcError
29558
+ });
29559
+ const WsHubSyncSetModeRpc = make$1(WS_METHODS.hubSyncSetMode, {
29560
+ payload: HubSyncSetModeInput,
29561
+ success: HubSyncStatus,
29562
+ error: HubSyncRpcError
29563
+ });
29564
+ const WsHubSyncResolveRpc = make$1(WS_METHODS.hubSyncResolve, {
29565
+ payload: HubSyncResolveInput,
29566
+ success: HubSyncStatus,
29567
+ error: HubSyncRpcError
29568
+ });
29488
29569
  const WsWorktreeSetupCancelRpc = make$1(WS_METHODS.worktreeSetupCancel, {
29489
29570
  payload: WorktreeSetupCancelInput,
29490
29571
  success: WorktreeSetupCancelResult,
@@ -29892,7 +29973,7 @@ const WsSubscribeResourceTelemetryRpc = make$1(WS_METHODS.subscribeResourceTelem
29892
29973
  * be added without authorization.
29893
29974
  */
29894
29975
  var RpcScopeAuthorization = class extends Service()("p4/contracts/RpcScopeAuthorization", { error: EnvironmentAuthorizationError }) {};
29895
- const WsRpcGroup = make(WsServerProbeRpc, WsServerGetConfigRpc, WsServerRefreshProvidersRpc, WsMcpRegistryStateRpc, WsMcpRegistryTestRpc, WsMcpRegistryOAuthStartRpc, WsMcpRegistryOAuthSignOutRpc, WsMcpRegistryProviderSignInStateRpc, WsMcpRegistryProviderSignInStartRpc, WsMcpRegistryProviderSignInWaitRpc, WsMcpRegistryProviderSignInCompleteRpc, WsMcpRegistryProviderSignInCancelRpc, WsMcpRegistryProviderSignOutRpc, WsMcpRegistryDiscoverRpc, WsMcpRegistryImportRpc, WsServerUpdateProviderRpc, WsProviderConsumeResetCreditRpc, WsProviderAuthStartRpc, WsProviderAuthCompleteRpc, WsChatGptReconnectProfileRpc, WsChatGptImportProfileRpc, WsChatGptHandoffSubscribeRpc, WsCodexAuthCallbackSubscribeRpc, WsProviderAuthRespondRpc, WsProviderAuthCancelRpc, WsProviderAuthLogoutRpc, WsProviderAuthSubscribeRpc, WsProviderInstallStartRpc, WsProviderInstallCancelRpc, WsProviderInstallSubscribeRpc, WsProviderInstallRemoveRpc, WsServerUpdateServerRpc, WsServerUpdateServerWithProgressRpc, WsServerCommitDesktopUpdateRpc, WsServerUpsertKeybindingRpc, WsServerRemoveKeybindingRpc, WsServerRunStorageCleanupRpc, WsServerGetStorageCleanupReportRpc, WsServerGetDatabaseStorageRpc, WsServerGetSettingsRpc, WsServerUpdateSettingsRpc, WsServerDiscoverSourceControlRpc, WsServerSearchAcpRegistryRpc, WsServerPrepareAcpRegistryAgentRpc, WsServerUninstallAcpRegistryManagedBinaryRpc, WsServerAcceptAcpRegistryUrlAuthRpc, WsServerListAcpRegistrySessionsRpc, WsServerImportAcpRegistrySessionRpc, WsServerDeleteAcpRegistrySessionRpc, WsServerListAcpRegistryProvidersRpc, WsServerSetAcpRegistryProviderRpc, WsServerDisableAcpRegistryProviderRpc, WsServerLogoutAcpRegistryRpc, WsServerGetTraceDiagnosticsRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetHostResourcesRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetResourceTelemetryHistoryRpc, WsServerRetryResourceTelemetryRpc, WsServerCheckOtlpEndpointRpc, WsUserInputRankRpc, WsServerGetUsageSummaryRpc, WsServerRefreshUsageRatesRpc, WsServerSignalProcessRpc, WsScheduledTasksListRpc, WsScheduledTasksSubscribeRpc, WsScheduledTasksUpsertRpc, WsScheduledTasksSetEnabledRpc, WsScheduledTasksDeleteRpc, WsScheduledTasksRunNowRpc, WsScheduledTasksRotateWebhookTokenRpc, WsSecretsAnswerRequestRpc, WsScheduledTasksListWebhookDeliveriesRpc, WsScheduledTasksGetWebhookDeliveryRpc, WsServerReportClientActivityRpc, WsServerReportHostPowerStateRpc, WsServerGetBackgroundPolicyRpc, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsPullRequestsListRpc, WsPullRequestsListStatsRpc, WsPullRequestsSummaryRpc, WsPullRequestsRoutingRpc, WsPullRequestsRoutingIdentityRpc, WsPullRequestsStackRpc, WsPullRequestsLinkedThreadsRpc, WsPullRequestsDetailRpc, WsPullRequestsPreviewRpc, WsPullRequestsChecksRpc, WsPullRequestsActivityRpc, WsPullRequestsReviewGuideRpc, WsPullRequestsGenerateReviewGuideRpc, WsPullRequestsThreadCommentsRpc, WsPullRequestsDiffFileContentsRpc, WsPullRequestsFilesViewedRpc, WsPullRequestsChangeBreakdownRpc, WsPullRequestsSetFilesViewedRpc, WsPullRequestsRunActionRpc, WsPullRequestsUpdateRpc, WsPullRequestsCommentRpc, WsPullRequestsUpdateCommentRpc, WsPullRequestsSubmitReviewRpc, WsPullRequestsReplyToThreadRpc, WsPullRequestsSetThreadResolutionRpc, WsPullRequestsSetReactionRpc, WsPullRequestsInvalidateRpc, WsPullRequestsReportStateRpc, WsPullRequestsSubscribeRefreshesRpc, WsPullRequestsReviewerCandidatesRpc, WsPullRequestsRequestReviewersRpc, WsPullRequestsLabelCandidatesRpc, WsPullRequestsSetLabelsRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsProjectCloneStartRpc, WsProjectCloneCancelRpc, WsProjectCloneRetryRpc, WsSubscribeProjectClonesRpc, WsProjectsListEntriesRpc, WsProjectsListIgnoredFilesRpc, WsProjectsReadFileRpc, WsProjectsSearchContentsRpc, WsProjectsSearchEntriesRpc, WsProjectsEnsureScratchRpc, WsProjectsCreateNewRpc, WsProjectsWriteFileRpc, WsProjectsMutateRpc, WsShellOpenInEditorRpc, WsFilesystemBrowseRpc, WsFilesystemGetMetadataRpc, WsAgentSessionsScanRpc, WsAgentSessionsImportRpc, WsAssetsCreateUrlRpc, WsAssetsPersistChatAttachmentsRpc, WsAttachmentsCreateUploadUrlRpc, WsAttachmentsDeleteRpc, WsMcpAppsCallToolRpc, WsMcpAppsToolInfoRpc, WsMcpAppsReadResourceRpc, WsMcpAppsUpdateModelContextRpc, WsProviderUploadFeedbackRpc, WsSubscribeVcsStatusRpc, WsSubscribeWorktreeSetupRpc, WsSubscribeThreadDecisionsRpc, WsSelfImproveSubscribeThreadFindingsRpc, WsSelfImproveDismissFindingsRpc, WsSelfImproveSubscribeSettingsRpc, WsSelfImproveUpdateSettingsRpc, WsSelfImproveSaveFindingsRpc, WsSelfImproveUndoSaveRpc, WsSelfImproveSetMemoryMirrorRpc, WsWorktreeSetupCancelRpc, WsVcsPullRpc, WsVcsRefreshStatusRpc, WsGitRunStackedActionRpc, WsGitResolvePullRequestRpc, WsGitPreparePullRequestThreadRpc, WsVcsListRefsRpc, WsVcsCreateWorktreeRpc, WsVcsRemoveWorktreeRpc, WsVcsCreateRefRpc, WsVcsSwitchRefRpc, WsVcsInitRpc, WsReviewGetDiffPreviewRpc, WsReviewGetDiffFileContentsRpc, WsTerminalOpenRpc, WsTerminalAttachRpc, WsTerminalObserveRpc, WsTerminalWriteRpc, WsTerminalResizeRpc, WsTerminalClearRpc, WsTerminalRestartRpc, WsTerminalCloseRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsPreviewOpenRpc, WsPreviewNavigateRpc, WsPreviewResizeRpc, WsPreviewAdjustRpc, WsPreviewRefreshRpc, WsPreviewCloseRpc, WsPreviewListRpc, WsPreviewClearProfileRpc, WsPreviewReportProfilesRpc, WsPreviewReportStatusRpc, WsSubscribePreviewEventsRpc, WsSubscribeDiscoveredLocalServersRpc, WsDeviceConfigureRpc, WsDeviceListRpc, WsDeviceTestHostRpc, WsDeviceEasAccountRpc, WsDeviceOpenRpc, WsDeviceCloseRpc, WsDeviceShutdownRpc, WsDeviceDetailRpc, WsDeviceActionRpc, WsSubscribeDeviceStateRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeAuthAccessRpc, WsSubscribeBackgroundPolicyRpc, WsSubscribeResourceTelemetryRpc, WsOrchestrationV2DispatchCommandRpc, WsOrchestrationV2GetWorkflowScriptRpc, WsOrchestrationV2StopWorkflowRpc, WsOrchestrationV2GetTurnItemRpc, WsOrchestrationV2GetTurnDiffRpc, WsOrchestrationV2GetFullThreadDiffRpc, WsOrchestrationV2SearchThreadsRpc, WsOrchestrationV2SearchThreadRpc, WsOrchestrationV2SearchThreadStreamRpc, WsOrchestrationV2GetArchivedShellSnapshotRpc, WsOrchestrationV2GetThreadProjectionRpc, WsOrchestrationV2LaunchThreadRpc, WsOrchestrationV2SubscribeArchivedShellRpc, WsOrchestrationV2SubscribeShellRpc, WsOrchestrationV2SubscribeThreadRpc).merge(DesignRpcGroup).middleware(RpcScopeAuthorization);
29976
+ const WsRpcGroup = make(WsServerProbeRpc, WsServerGetConfigRpc, WsServerRefreshProvidersRpc, WsMcpRegistryStateRpc, WsMcpRegistryTestRpc, WsMcpRegistryOAuthStartRpc, WsMcpRegistryOAuthSignOutRpc, WsMcpRegistryProviderSignInStateRpc, WsMcpRegistryProviderSignInStartRpc, WsMcpRegistryProviderSignInWaitRpc, WsMcpRegistryProviderSignInCompleteRpc, WsMcpRegistryProviderSignInCancelRpc, WsMcpRegistryProviderSignOutRpc, WsMcpRegistryDiscoverRpc, WsMcpRegistryImportRpc, WsServerUpdateProviderRpc, WsProviderConsumeResetCreditRpc, WsProviderAuthStartRpc, WsProviderAuthCompleteRpc, WsChatGptReconnectProfileRpc, WsChatGptImportProfileRpc, WsChatGptHandoffSubscribeRpc, WsCodexAuthCallbackSubscribeRpc, WsProviderAuthRespondRpc, WsProviderAuthCancelRpc, WsProviderAuthLogoutRpc, WsProviderAuthSubscribeRpc, WsProviderInstallStartRpc, WsProviderInstallCancelRpc, WsProviderInstallSubscribeRpc, WsProviderInstallRemoveRpc, WsServerUpdateServerRpc, WsServerUpdateServerWithProgressRpc, WsServerCommitDesktopUpdateRpc, WsServerUpsertKeybindingRpc, WsServerRemoveKeybindingRpc, WsServerRunStorageCleanupRpc, WsServerGetStorageCleanupReportRpc, WsServerGetDatabaseStorageRpc, WsServerGetSettingsRpc, WsServerUpdateSettingsRpc, WsServerDiscoverSourceControlRpc, WsServerSearchAcpRegistryRpc, WsServerPrepareAcpRegistryAgentRpc, WsServerUninstallAcpRegistryManagedBinaryRpc, WsServerAcceptAcpRegistryUrlAuthRpc, WsServerListAcpRegistrySessionsRpc, WsServerImportAcpRegistrySessionRpc, WsServerDeleteAcpRegistrySessionRpc, WsServerListAcpRegistryProvidersRpc, WsServerSetAcpRegistryProviderRpc, WsServerDisableAcpRegistryProviderRpc, WsServerLogoutAcpRegistryRpc, WsServerGetTraceDiagnosticsRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetHostResourcesRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetResourceTelemetryHistoryRpc, WsServerRetryResourceTelemetryRpc, WsServerCheckOtlpEndpointRpc, WsUserInputRankRpc, WsServerGetUsageSummaryRpc, WsServerRefreshUsageRatesRpc, WsServerSignalProcessRpc, WsScheduledTasksListRpc, WsScheduledTasksSubscribeRpc, WsScheduledTasksUpsertRpc, WsScheduledTasksSetEnabledRpc, WsScheduledTasksDeleteRpc, WsScheduledTasksRunNowRpc, WsScheduledTasksRotateWebhookTokenRpc, WsSecretsAnswerRequestRpc, WsScheduledTasksListWebhookDeliveriesRpc, WsScheduledTasksGetWebhookDeliveryRpc, WsServerReportClientActivityRpc, WsServerReportHostPowerStateRpc, WsServerGetBackgroundPolicyRpc, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsPullRequestsListRpc, WsPullRequestsListStatsRpc, WsPullRequestsSummaryRpc, WsPullRequestsRoutingRpc, WsPullRequestsRoutingIdentityRpc, WsPullRequestsStackRpc, WsPullRequestsLinkedThreadsRpc, WsPullRequestsDetailRpc, WsPullRequestsPreviewRpc, WsPullRequestsChecksRpc, WsPullRequestsActivityRpc, WsPullRequestsReviewGuideRpc, WsPullRequestsGenerateReviewGuideRpc, WsPullRequestsThreadCommentsRpc, WsPullRequestsDiffFileContentsRpc, WsPullRequestsFilesViewedRpc, WsPullRequestsChangeBreakdownRpc, WsPullRequestsSetFilesViewedRpc, WsPullRequestsRunActionRpc, WsPullRequestsUpdateRpc, WsPullRequestsCommentRpc, WsPullRequestsUpdateCommentRpc, WsPullRequestsSubmitReviewRpc, WsPullRequestsReplyToThreadRpc, WsPullRequestsSetThreadResolutionRpc, WsPullRequestsSetReactionRpc, WsPullRequestsInvalidateRpc, WsPullRequestsReportStateRpc, WsPullRequestsSubscribeRefreshesRpc, WsPullRequestsReviewerCandidatesRpc, WsPullRequestsRequestReviewersRpc, WsPullRequestsLabelCandidatesRpc, WsPullRequestsSetLabelsRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsProjectCloneStartRpc, WsProjectCloneCancelRpc, WsProjectCloneRetryRpc, WsSubscribeProjectClonesRpc, WsProjectsListEntriesRpc, WsProjectsListIgnoredFilesRpc, WsProjectsReadFileRpc, WsProjectsSearchContentsRpc, WsProjectsSearchEntriesRpc, WsProjectsEnsureScratchRpc, WsProjectsCreateNewRpc, WsProjectsWriteFileRpc, WsProjectsMutateRpc, WsShellOpenInEditorRpc, WsFilesystemBrowseRpc, WsFilesystemGetMetadataRpc, WsAgentSessionsScanRpc, WsAgentSessionsImportRpc, WsAssetsCreateUrlRpc, WsAssetsPersistChatAttachmentsRpc, WsAttachmentsCreateUploadUrlRpc, WsAttachmentsDeleteRpc, WsMcpAppsCallToolRpc, WsMcpAppsToolInfoRpc, WsMcpAppsReadResourceRpc, WsMcpAppsUpdateModelContextRpc, WsProviderUploadFeedbackRpc, WsSubscribeVcsStatusRpc, WsSubscribeWorktreeSetupRpc, WsSubscribeThreadDecisionsRpc, WsSelfImproveSubscribeThreadFindingsRpc, WsSelfImproveDismissFindingsRpc, WsSelfImproveSubscribeSettingsRpc, WsSelfImproveUpdateSettingsRpc, WsSelfImproveSaveFindingsRpc, WsSelfImproveUndoSaveRpc, WsSelfImproveSetMemoryMirrorRpc, WsHubSyncSubscribeRpc, WsHubSyncRunNowRpc, WsHubSyncConnectRpc, WsHubSyncDisconnectRpc, WsHubSyncSetModeRpc, WsHubSyncResolveRpc, WsWorktreeSetupCancelRpc, WsVcsPullRpc, WsVcsRefreshStatusRpc, WsGitRunStackedActionRpc, WsGitResolvePullRequestRpc, WsGitPreparePullRequestThreadRpc, WsVcsListRefsRpc, WsVcsCreateWorktreeRpc, WsVcsRemoveWorktreeRpc, WsVcsCreateRefRpc, WsVcsSwitchRefRpc, WsVcsInitRpc, WsReviewGetDiffPreviewRpc, WsReviewGetDiffFileContentsRpc, WsTerminalOpenRpc, WsTerminalAttachRpc, WsTerminalObserveRpc, WsTerminalWriteRpc, WsTerminalResizeRpc, WsTerminalClearRpc, WsTerminalRestartRpc, WsTerminalCloseRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsPreviewOpenRpc, WsPreviewNavigateRpc, WsPreviewResizeRpc, WsPreviewAdjustRpc, WsPreviewRefreshRpc, WsPreviewCloseRpc, WsPreviewListRpc, WsPreviewClearProfileRpc, WsPreviewReportProfilesRpc, WsPreviewReportStatusRpc, WsSubscribePreviewEventsRpc, WsSubscribeDiscoveredLocalServersRpc, WsDeviceConfigureRpc, WsDeviceListRpc, WsDeviceTestHostRpc, WsDeviceEasAccountRpc, WsDeviceOpenRpc, WsDeviceCloseRpc, WsDeviceShutdownRpc, WsDeviceDetailRpc, WsDeviceActionRpc, WsSubscribeDeviceStateRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeAuthAccessRpc, WsSubscribeBackgroundPolicyRpc, WsSubscribeResourceTelemetryRpc, WsOrchestrationV2DispatchCommandRpc, WsOrchestrationV2GetWorkflowScriptRpc, WsOrchestrationV2StopWorkflowRpc, WsOrchestrationV2GetTurnItemRpc, WsOrchestrationV2GetTurnDiffRpc, WsOrchestrationV2GetFullThreadDiffRpc, WsOrchestrationV2SearchThreadsRpc, WsOrchestrationV2SearchThreadRpc, WsOrchestrationV2SearchThreadStreamRpc, WsOrchestrationV2GetArchivedShellSnapshotRpc, WsOrchestrationV2GetThreadProjectionRpc, WsOrchestrationV2LaunchThreadRpc, WsOrchestrationV2SubscribeArchivedShellRpc, WsOrchestrationV2SubscribeShellRpc, WsOrchestrationV2SubscribeThreadRpc).merge(DesignRpcGroup).middleware(RpcScopeAuthorization);
29896
29977
  // ../../packages/contracts/src/clientRpcPermissions.ts
29897
29978
  /** Incremental client enforcement; the server still authorizes every request. */
29898
29979
  const CLIENT_GUARDED_RPC_SCOPES = {
@@ -29934,6 +30015,11 @@ const CLIENT_GUARDED_RPC_SCOPES = {
29934
30015
  [WS_METHODS.selfImproveSaveFindings]: AuthFilesystemWriteScope,
29935
30016
  [WS_METHODS.selfImproveUndoSave]: AuthFilesystemWriteScope,
29936
30017
  [WS_METHODS.selfImproveSetMemoryMirror]: AuthProvidersManageScope,
30018
+ [WS_METHODS.hubSyncConnect]: AuthSettingsWriteScope,
30019
+ [WS_METHODS.hubSyncDisconnect]: AuthSettingsWriteScope,
30020
+ [WS_METHODS.hubSyncSetMode]: AuthSettingsWriteScope,
30021
+ [WS_METHODS.hubSyncRunNow]: AuthFilesystemWriteScope,
30022
+ [WS_METHODS.hubSyncResolve]: AuthFilesystemWriteScope,
29937
30023
  [WS_METHODS.sourceControlCloneRepository]: AuthSourceControlWriteScope,
29938
30024
  [WS_METHODS.sourceControlPublishRepository]: AuthSourceControlWriteScope,
29939
30025
  [WS_METHODS.projectCloneStart]: AuthSourceControlWriteScope,
@@ -32026,6 +32112,6 @@ function semanticDiff(before, after) {
32026
32112
  walk(beforeContent, afterContent, "");
32027
32113
  return changes;
32028
32114
  }
32029
- export { WsSelfImproveSubscribeSettingsRpc as $, PreviewStreamHostSetup as $a, DEFAULT_RUNTIME_MODE as $c, prependUrl as $d, AuthGrantScope as $f, ProviderSetupError as $i, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as $l, TurnItemId as $m, ReviewDiffFileStat as $n, EnvironmentAuthenticatedPrincipal as $o, DEFAULT_TEXT_GENERATION_MODEL as $p, OrchestratorMcpDeleteScheduledTaskResult as $r, OrchestrationV2GetThreadProjectionError as $s, getStreamSchemas as $t, toPersisted as $u, ComputerUseBrowserChatRequest as A, UsageLimitSourceConfig as Aa, isKnownOrchestrationV2EventType as Ac, urlParams as Ad, FileTypeId as Af, GitCommandError as Ai, VcsProcessStdinWriteError as Al, EnvironmentId as Am, PreviewAutomationRecordingDesktopUpdateRequiredError as An, LOCAL_DEVICE_HOST_LABEL as Ao, isStreamSchema$1 as Ap, PROJECT_FILE_BACKED_SETTINGS as Ar, toRouterPath as As, DesignHandoffRequest as At, make$6 as Au, clientRpcRequiredScopes as B, resolveProviderInstanceEnabled as Ba, Project as Bc, appendUrlParams as Bd, ORCHESTRATION_PROTOCOL_HEADER as Bf, ServerProviderUpdateError as Bi, PluginId as Bl, ProviderSessionId as Bm, PreviewAutomationSetColorSchemeInput as Bn, DEFAULT_BROWSER_PROFILE_ID as Bo, encoder$2 as Bp, AgentAssetKind as Br, OrchestrationV2ContextHandoffJson as Bs, DesignSelection as Bt, toHeaders as Bu, clean as C, GitHubHost as Ca, OrchestrationV2ThreadLaunchError as Cc, setBody as Cd, jsonUnsafe$1 as Cf, ScheduledTaskWebhookDeliveryId as Ci, SourceControlRepositoryError as Cl, ClientOs as Cm, PreviewAutomationInvalidSelectorError as Cn, DeviceToolOpenResult as Co, getPayloadEncoding as Cp, AgentSessionImportProjectNotFoundError as Cr, RelayManagedEndpointRecoveryResponse as Cs, DesignServiceError as Ct, middleware as Cu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as D, ServerSettings as Da, OrchestrationV2TurnItemJson as Dc, stream as Dd, uint8Array$1 as Df, PullRequestReviewGuide as Di, VcsProcessOutputLimitError as Dl, ContextHandoffId as Dm, PreviewAutomationOpenInput as Dn, DeviceToolVersions as Do, getStatusSuccessSchema as Dp, FilesystemBrowseError as Dr, annotations as Ds, DesignGuideReceipt as Dt, use as Du, toBytes as E, ResponseStreamingMode as Ea, OrchestrationV2TurnItem as Ec, setStatus as Ed, text$1 as Ef, OrchestrationDispatchCommandError as Ei, VcsProcessMissingExitCodeError as El, CommandId as Em, PreviewAutomationNoAvailableHostError as En, DeviceToolUnavailableError as Eo, getStatusErrorSchema as Ep, AgentSessionSource as Er, RelayProtectedError as Es, DesignApplyRequest as Et, serve as Eu, ComputerUseHostResponse as F, providerInstanceConfigEnabledFlag as Fa, parseGoalCommand as Fc, MaxBodySize as Fd, badArgument as Ff, VcsListRefsResult as Fi, McpRegistryRpcError as Fl, NonNegativeInt as Fm, PreviewAutomationRequestQueueClosedError as Fn, DecisionResult as Fo, allShort as Fp, AGENT_ASSET_FILE_MAX_CHARS as Fr, OrchestrationGetWorkflowScriptError as Fs, DesignLibraryManifest as Ft, addHeaderAttributes as Fu, WsMcpRegistryProviderSignInStartRpc as G, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as Ga, ProjectReadFileError as Gc, bodyJsonUnsafe as Gd, AuthAccessTokenType as Gf, isProviderWorkspaceSnapshotCurrent as Gi, OrchestrationGetFullThreadDiffError as Gl, RunAttemptId as Gm, PreviewAutomationTabTargetInput as Gn, DesktopAppActivationResponse as Go, AcpRegistryOperationErrorReason as Gp, ThreadMetadataMcpUpdateInput as Gr, OrchestrationV2DispatchCommandError as Gs, DesignValidateReceipt as Gt, schemaHeaders as Gu, WS_METHODS as H, secretSettingsFields as Ha, ProjectListEntriesError as Hc, bearerToken as Hd, ThreadEnvMode as Hf, environmentThemeFileHasColors as Hi, mcpProviderSupport as Hl, ProviderTurnId as Hm, PreviewAutomationSnapshot as Hn, findBrowserProfile as Ho, AcpRegistryListProvidersResult as Hp, AgentAssetName as Hr, OrchestrationV2ContextTransferJson as Hs, DesignStatusRequest as Ht, ParsedSearchParams as Hu, ComputerUseJsInput as I, requiredScopesForProjectMutation as Ia, ToolActivityIcon as Ic, TypeId$14 as Id, isPlatformError as If, EnvironmentThemeFile as Ii, McpServerId as Il, PlanId as Im, PreviewAutomationResizeInput as In, ThreadDecision as Io, hasBody as Ip, AGENT_ASSET_TOTAL_MAX_BYTES as Ir, OrchestrationV2AppThread as Is, DesignProposeReceipt as It, addUrlAttributes as Iu, WsMcpRegistryProviderSignOutRpc as J, PreviewClearProfileError as Ja, ProjectSearchEntriesError as Jc, bodyUrlParams as Jd, AuthDiagnosticsReadScope as Jf, ExternalLauncherCommandNotFoundError as Ji, ChatAttachment as Jl, ScheduledTaskId as Jm, PreviewAutomationUnavailableError as Jn, DESKTOP_UPDATE_RESTART_MARKER_FILE as Jo, resolveOfficialAcpRegistryIconUrl as Jp, OrchestratorMcpCreateThreadsInput as Jr, OrchestrationV2DomainEvent as Js, ServerClient as Jt, MultipartError as Ju, WsMcpRegistryProviderSignInStateRpc as K, PREVIEW_URL_MAX_LENGTH as Ka, ProjectScript as Kc, bodyStream as Kd, AuthAccessWriteScope as Kf, EDITORS as Ki, OrchestrationGetTurnDiffError as Kl, RunId as Km, PreviewAutomationTargetNotEditableError as Kn, DesktopBrowserCommand as Ko, AcpRegistryProbeResult as Kp, ThreadMetadataMcpUpdateResult as Kr, OrchestrationV2DispatchCommandResult as Ks, DesignValidateRequest as Kt, schemaSearchParams as Ku, ComputerUseOutput as L, requiredScopesForServerSettingsPatch as La, ToolActivityNativeAppReference as Lc, inspect as Ld, systemError as Lf, EnvironmentThemeId as Li, McpServerName as Ll, PortSchema as Lm, PreviewAutomationResizeResult as Ln, ThreadDecisionsReadError as Lo, Retry as Lp, AgentAsset as Lr, OrchestrationV2AppThreadJson as Ls, DesignProposeRequest as Lt, appendPreResponseHandlerUnsafe as Lu, ComputerUseHost as M, isUnconfiguredDefaultInstanceEnabled as Ma, isProviderNativeSubagentThread as Mc, filterStatusOk as Md, make$16 as Mf, GitPullRequestMaterializationError as Mi, VcsRepositoryDetectionError as Ml, IsoDateTime as Mm, PreviewAutomationRecordingTooLargeError as Mn, DECISION_MODELS as Mo, isWithHeaders as Mp, OrchestrationSearchThreadsInput as Mr, AUTO_WORKSPACE_UNDECIDED_REASON as Ms, DesignImportTokensRequest as Mt, compression as Mu, ComputerUseHostRegistration as N, makeBinaryPathSetting as Na, latestProviderTurnForAttempt as Nc, fromWeb as Nd, BadArgument as Nf, TextGenerationError as Ni, VcsUnsupportedOperationError as Nl, MessageId as Nm, PreviewAutomationRecordingTransferError as Nn, DecisionError as No, isWithHeadersValue as Np, OrchestrationSearchThreadsResult as Nr, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as Ns, DesignInspectReceipt as Nt, isTracerDisabledUnsafe as Nu, COMPUTER_USE_JEV_TAKE_CODE as O, ServerSettingsError as Oa, OrchestrationWorkflowFileError as Oc, text as Od, urlParams$1 as Of, PullRequestReviewGuideRun as Oi, VcsProcessOutputReadError as Ol, ContextTransferId as Om, PreviewAutomationRecordingArtifact as On, EasDeviceHostConfig as Oo, getWithHeadersAnnotation as Op, P4ProjectFile as Or, fromApi as Os, DesignGuideRequest as Ot, HttpServer as Ou, ComputerUseHostReport as P, makeProviderSettingsSchema as Pa, orchestrationV2RunWorkStartedAt as Pc, matchStatus as Pd, PlatformError as Pf, VcsListRefsInput as Pi, ModelSelection as Pl, NodeId as Pm, PreviewAutomationRemoteUnavailableError as Pn, DecisionInput as Po, withHeaders as Pp, OrchestrationThreadSearchSource as Pr, ORCHESTRATION_V2_WS_METHODS as Ps, DesignInspectRequest as Pt, tracer as Pu, WsSelfImproveSetMemoryMirrorRpc as Q, PreviewSessionLookupError as Qa, DEFAULT_PROVIDER_INTERACTION_MODE as Qc, post$1 as Qd, AuthFilesystemWriteScope as Qf, ExternalLauncherUnsupportedTargetError as Qi, PROVIDER_SEND_TURN_MAX_FILE_BYTES as Ql, TrimmedString as Qm, McpAppRequestError as Qn, EnvironmentAuthenticatedAuth as Qo, DEFAULT_MODEL_BY_PROVIDER as Qp, OrchestratorMcpDeleteScheduledTaskInput as Qr, OrchestrationV2GetShellSnapshotError as Qs, ClientAbort as Qt, makeConfig as Qu, computerUseJevStepCode as R, resolveIdleCompaction as Ra, UsageLimitSourceError as Rc, schemaBodyJson as Rd, make$17 as Rf, ServerProvider as Ri, McpServerRuntimeState as Rl, PositiveInt as Rm, PreviewAutomationResultTooLargeError as Rn, resolveDecisionBackend as Ro, decode as Rp, AgentAssetFiles as Rr, OrchestrationV2CheckpointJson as Rs, DesignRenderReceipt as Rt, requestPreResponseHandlers as Ru, anumber as S, DEFAULT_SERVER_SETTINGS as Sa, OrchestrationV2ThreadForkSourcePoint as Sc, removeHeader as Sd, isHttpBody as Sf, ScheduledTaskError as Si, SourceControlProviderKind as Sl, ClientDeviceType as Sm, PreviewAutomationExecutionError as Sn, DeviceToolOpenInput as So, asUint8Array as Sp, AgentSessionImportProjectChangedError as Sr, RelayManagedEndpointRecoveryRegistrationResponse as Ss, DesignRpcGroup as St, cors as Su, randomBytes as T, ProjectSettingsOverrides as Ta, OrchestrationV2ThreadShell as Tc, setHeaders as Td, stream$1 as Tf, ApplicationProjectEvent as Ti, VcsProcessExitError as Tl, ClientWebDeployment as Tm, PreviewAutomationNavigateInput as Tn, DeviceToolTargetInput as To, getResponseEncodingSchema as Tp, AgentSessionScanError as Tr, RelayOkResponse as Ts, DesignApplyReceipt as Tt, route as Tu, WsMcpRegistryProviderSignInCancelRpc as U, withIdleCompaction as Ua, ProjectMutation as Uc, bodyFormData as Ud, AuthAccessReadScope as Uf, isProviderAvailable as Ui, resolveRegistryEntryEnabled as Ul, RawEventId as Um, PreviewAutomationStatus as Un, resolveBrowserProfiles as Uo, AcpRegistryListSessionsResult as Up, AgentAssetWriteInput as Ur, OrchestrationV2ConversationMessage as Us, DesignStylesReceipt as Ut, TypeId$8 as Uu, RpcScopeAuthorization as V, secretSetting as Va, ProjectCreatePayload as Vc, basicAuth as Vd, ORCHESTRATION_PROTOCOL_QUERY_PARAM as Vf, ServerSelfUpdateError as Vi, RESERVED_MCP_SERVER_NAME as Vl, ProviderThreadId as Vm, PreviewAutomationSetColorSchemeResult as Vn, INCOGNITO_BROWSER_PROFILE_ID as Vo, makeParser as Vp, AgentAssetListFilter as Vr, OrchestrationV2ContextTransfer as Vs, DesignStatusReceipt as Vt, HttpServerRequest as Vu, WsMcpRegistryProviderSignInCompleteRpc as W, FILL_PREVIEW_VIEWPORT as Wa, ProjectMutationError as Wc, bodyJson as Wd, AuthAccessStreamError as Wf, isProviderTextGenerationCapable as Wi, supportsProviderMcpSignIn as Wl, RpcClientId as Wm, PreviewAutomationTabNotFoundError as Wn, DesktopAppActivationErrorCode as Wo, AcpRegistryOperationError as Wp, agentAssetTotalBytes as Wr, OrchestrationV2ConversationMessageJson as Ws, DesignStylesRequest as Wt, schemaCookies as Wu, WsSelfImproveDismissFindingsRpc as X, PreviewInvalidUrlError as Xa, ProjectWriteFileError as Xc, get$1 as Xd, AuthEnvironmentScopes as Xf, ExternalLauncherUnknownEditorError as Xi, ChatFileAttachment as Xl, ThreadId as Xm, PreviewAutomationWaitForInput as Xn, RelayClientInstallFailedError as Xo, CustomModelSetting as Xp, OrchestratorMcpDelegateTaskInput as Xr, OrchestrationV2ExecutionNode as Xs, isWrapper as Xt, isPersistedFile as Xu, WsRpcGroup as Y, PreviewControlRequiredError as Ya, ProjectUpdatePayload as Yc, del$1 as Yd, AuthEnvironmentMaintainScope as Yf, ExternalLauncherEditorSpawnError as Yi, ChatAttachmentId as Yl, SecretRef as Ym, PreviewAutomationUnsupportedClientError as Yn, DesktopBackendBootstrap as Yo, ANTIGRAVITY_DEFAULT_MODEL as Yp, OrchestratorMcpCreateThreadsResult as Yr, OrchestrationV2DomainEventJson as Ys, exitSchema as Yt, TypeId$9 as Yu, WsSelfImproveSaveFindingsRpc as Z, PreviewListResult as Za, StoredProjectIcon as Zc, make$14 as Zd, AuthFilesystemReadScope as Zf, ExternalLauncherUnsupportedEditorError as Zi, ChatImageAttachment as Zl, TrimmedNonEmptyString as Zm, SERVER_BROWSER_AUTOMATION_CLIENT_ID as Zn, EnvironmentAuthInvalidError as Zo, DEFAULT_MODEL as Zp, OrchestratorMcpDelegateTaskResult as Zr, OrchestrationV2ExecutionNodeJson as Zs, make$1 as Zt, limitsServices as Zu, sha512 as _, CompressMode as _a, OrchestrationV2StopWorkflowError as _c, isHttpServerResponse as _d, isIgnored as _f, OrchestratorMcpThreadSendResult as _i, pullRequestProviderRequirement as _l, AuthSessionId as _m, PreviewAutomationControlInterruptedError as _n, DevicePlatformAvailability as _o, ServerAuthSessionMethod as _p, AssetWorkspaceRootNormalizationError as _r, RelayCloudMintCredentialProofPayload as _s, SelfImproveSaveFindingsResult as _t, put as _u, documentContentDigest as a, TerminalHistoryError as aa, OrchestrationV2ProviderSessionJson as ac, HttpServerError as ad, setUrlParams as af, merge as ah, OrchestratorMcpSaveScheduledTaskInput as ai, RuntimeMode as al, PROVIDER_DISPLAY_NAMES as am, UsageReadError as an, KeybindingsConfig as ao, AuthOrchestrationReadScope as ap, AssetGitHubMediaUrlValidationError as ar, EnvironmentHttpForbiddenError as as, WORKTREE_SETUP_ERROR_MAX_LENGTH as at, isSecurity as au, aexists as b, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as ba, OrchestrationV2Subagent as bc, raw as bd, layer$2 as bf, MIN_SCHEDULED_TASK_INTERVAL_MS as bi, SourceControlCloneRepositoryResult as bl, CheckpointScopeId as bm, PreviewAutomationError as bn, DeviceToolError as bo, NoContent as bp, AttachmentDeleteInput as br, RelayHookDeliveryProofPayload as bs, DesignListReceipt as bt, RouteContext as bu, parseDesign as c, TerminalProviderInstanceNotFoundError as ca, OrchestrationV2ProviderTurn as cc, ServeError as cd, HttpClientError as cf, bytes as ch, OrchestratorMcpTaskCancelResult as ci, ThreadPullRequestLink as cl, ProviderInstanceMutation as cm, ResourceMonitorCommand as cn, ResolvedKeybindingRule as co, AuthRelayReadScope as cp, AssetProjectFaviconNotFoundError as cr, EnvironmentInternalError as cs, SelfImproveDecision as ct, make$3 as cu, reviewState as d, TerminalWriteError as da, OrchestrationV2RunJson as dc, toResponse as dd, StatusCodeError as df, OrchestratorMcpThreadInterruptResult as di, PullRequestOperationError as dl, ComposerContextRecord as dm, PREVIEW_AUTOMATION_SERVER_OPERATIONS as dn, DeviceActionUnavailableError as do, AuthSourceControlWriteScope as dp, AssetWorkspaceAssetInspectionError as dr, EnvironmentResourceNotFoundError as ds, SelfImproveFindings as dt, get as du, ProviderUploadFeedbackError as ea, OrchestrationV2PlanArtifact as ec, decodeField as ed, put$1 as ef, CurrentRedactedNames as eh, OrchestratorMcpFailure as ei, ProviderApprovalDecision as el, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as em, isStreamSchema as en, PreviewTabId as eo, AuthMcpApprovalError as ep, ReviewDiffPreviewSource as er, EnvironmentCloudEndpointUnavailableError as es, WsSelfImproveSubscribeThreadFindingsRpc as et, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as eu, selectLayoutItems as f, AntigravitySettings as fa, OrchestrationV2RunStatus as fc, HttpPlatform as fd, TransportError as ff, OrchestratorMcpThreadListInput as fi, PullRequestStack as fl, OrchestrationMessageContext as fm, PREVIEW_AUTOMATION_V1_OPERATIONS as fn, DeviceBootError as fo, AuthStandardClientScopes as fp, AssetWorkspaceAssetNotFoundError as fr, EnvironmentScopeRequiredError as fs, SelfImproveLabel as ft, getErrorSchemas as fu, sha384 as g, CodexSettings as ga, OrchestrationV2SearchThreadInput as gc, html as gd, ignore as gf, OrchestratorMcpThreadSendInput as gi, pullRequestHostOf as gl, AssistantCitation as gm, PreviewAutomationClientDisconnectedError as gn, DeviceOperationError as go, EnvironmentAuthorizationError as gp, AssetWorkspaceResolutionError as gr, RelayCloudEnvironmentHealthProofPayload as gs, SelfImproveReviewers as gt, post as gu, sha256$1 as h, ClaudeSettings as ha, OrchestrationV2SearchThreadError as hc, file as hd, TypeId$17 as hf, OrchestratorMcpThreadReadResult as hi, PullRequestUnavailableError as hl, ASSISTANT_CITATION_MAX_TEXT_LENGTH as hm, PreviewAutomationActInputs as hn, DeviceNotFoundError as ho, AuthWebSocketTicketUse as hp, AssetWorkspacePathValidationError as hr, RelayApi as hs, SelfImproveReview as ht, patch as hu, diagnostic as i, TerminalCwdStatError as ia, OrchestrationV2ProviderSession as ic, ClientAbort$1 as id, setUrl as if, isHeaders as ih, OrchestratorMcpRequestSecretResult as ii, ProviderUserInputAnswers as il, PREFERRED_DEFAULT_CODEX_MODELS as im, WorktreeMcpStatusResult as in, KeybindingRule as io, AuthOrchestrationOperateScope as ip, AssetCreateUrlInput as ir, EnvironmentHttpConflictError as is, SecretRequestError as it, Service$1 as iu, ComputerUseError as j, globalIdleCompaction as ja, isOrchestrationV2WorkActive as jc, TypeId$13 as jd, WatchBackend as jf, GitManagerError as ji, VcsProcessTimeoutError as jl, EventId as jm, PreviewAutomationRecordingStatus as jn, deviceToolInstallMessage as jo, isStreamUint8Array as jp, OrchestrationSearchThreadsError as jr, AUTO_WORKSPACE_NOTICE_TITLE as js, DesignImportTokensReceipt as jt, TracerDisabledWhen as ju, COMPUTER_USE_MAX_OUTPUT_CHARS as k, ServerSettingsPatch as ka, autoWorkspaceNoticeMessage as kc, uint8Array as kd, FileSystem as kf, PROJECT_CLONE_ERROR_MAX_LENGTH as ki, VcsProcessSpawnError as kl, DpopFailureReason as km, PreviewAutomationRecordingDeadlineExpiredError as kn, LOCAL_DEVICE_HOST_ID as ko, isNoContent as kp, P4_PROJECT_FILE_NAME as kr, getParamNames as ks, DesignHandoffReceipt as kt, addressFormattedWith as ku, patchNode as l, TerminalResizeError as la, OrchestrationV2ProviderTurnJson as lc, causeResponse as ld, HttpClientErrorSchema as lf, fromInputUnsafe as lh, OrchestratorMcpTaskStatusInput as li, ThreadPullRequestLinkSource as ll, defaultInstanceIdForDriver as lm, ResourceMonitorEvent as ln, SCRIPT_RUN_COMMAND_PATTERN as lo, AuthRelayWriteScope as lp, AssetProjectFaviconResolutionError as lr, EnvironmentOperationForbiddenError as ls, SelfImproveError as lt, reflect as lu, validateDesign as m, BackgroundActivityProfileSelection as ma, OrchestrationV2RuntimeRequestJson as mc, empty as md, CurrentErrorReporters as mf, OrchestratorMcpThreadReadInput as mi, PullRequestSummary as ml, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as mm, PreviewAutomationActInput as mn, DeviceHostUnavailableError as mo, AuthTerminalReadScope as mp, AssetWorkspaceContextResolutionError as mr, formatConnectReachable as ms, SelfImproveResult as mt, getSuccessSchemas as mu, canonicalSerialize as n, TerminalCwdNotDirectoryError as na, OrchestrationV2ProviderGoal as nc, Path as nd, setHeader$1 as nf, fromInput as nh, OrchestratorMcpListScheduledTasksResult as ni, ProviderInteractionMode as nl, MUSE_DEFAULT_MODEL as nm, WorktreeMcpHandoffInput as nn, symbol as no, AuthMcpRegistrationError as np, ATTACHMENT_UPLOAD_URL_TTL_MS as nr, EnvironmentHttpBadRequestError as ns, WsSelfImproveUpdateSettingsRpc as nt, getProviderAttachmentLimitError as nu, fileHash as o, TerminalNotRunningError as oa, OrchestrationV2ProviderThread as oc, RequestParseError as od, make$15 as of, remove as oh, OrchestratorMcpScheduleTaskResult as oi, ThreadLinkedPullRequest as ol, ProviderDriverKind as om, DesktopHostTelemetryMessage as on, KeybindingsConfigError as oo, AuthPreviewOperateScope as op, AssetPreviewTypeValidationError as or, EnvironmentHttpInternalServerError as os, WORKTREE_SETUP_STAGE_ORDER as ot, make$2 as ou, semanticDiff as p, BackgroundActivityProfile as pa, OrchestrationV2RuntimeRequest as pc, make$12 as pd, isHttpClientError as pf, OrchestratorMcpThreadListResult as pi, PullRequestState as pl, ReviewCommentContextRecord as pm, PREVIEW_RECORDING_STOP_TIMEOUT_MS as pn, DeviceEasAccountError as po, AuthTerminalOperateScope as pp, AssetWorkspaceContextNotFoundError as pr, connectReachabilityHelpUrl as ps, SelfImproveRequest as pt, getPayloadSchemas as pu, WsMcpRegistryProviderSignInWaitRpc as q, PREVIEW_VIEWPORT_PRESET_IDS as qa, ProjectSearchContentsError as qc, bodyText as qd, AuthClientMetadataDeviceType as qf, ExternalLauncherBrowserSpawnError as qi, OrchestrationGetTurnDiffResult as ql, RuntimeRequestId as qm, PreviewAutomationTimeoutError as qn, DesktopBrowserEvent as qo, officialAcpRegistryIconUrlForAgentId as qp, OrchestratorMcpCapabilitiesResult as qr, OrchestrationV2DispatchRejectionReason as qs, make as qt, toURL as qu, computeLayout as r, TerminalCwdNotFoundError as ra, OrchestrationV2ProviderRetry as rc, TypeId$10 as rd, setHeaders$1 as rf, fromRecordUnsafe as rh, OrchestratorMcpRequestSecretInput as ri, ProviderRequestKind as rl, ModelCapabilities as rm, WorktreeMcpHandoffResult as rn, value as ro, AuthMcpTokenError as rp, AssetAttachmentNotFoundError as rr, EnvironmentHttpCommonError as rs, WsSubscribeThreadDecisionsRpc as rt, isProviderSendTurnSupportedImageMimeType as ru, isConfinedRelativePath as s, TerminalProviderEnvironmentError as sa, OrchestrationV2ProviderThreadJson as sc, ResponseError as sd, DecodeError as sf, set as sh, OrchestratorMcpTaskCancelInput as si, ThreadPullRequestKey as sl, ProviderInstanceId as sm, DesktopTelemetryControlMessage as sn, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as so, AuthProvidersManageScope as sp, AssetProjectFaviconInspectionError as sr, EnvironmentHttpUnauthorizedError as ss, Service as st, getSlotParseOptions as su, buildIndexes as t, DEFAULT_TERMINAL_ID as ta, OrchestrationV2ProviderFailure as tc, make$8 as td, setBody$1 as tf, empty$3 as th, OrchestratorMcpListScheduledTasksInput as ti, ProviderApprovalOption as tl, MODEL_SLUG_ALIASES_BY_PROVIDER as tm, WorktreeMcpFailure as tn, PreviewViewportSetting as to, AuthMcpClientAccess as tp, ReviewDiffPreviewSourceKind as tr, EnvironmentHttpApi as ts, WsSelfImproveUndoSaveRpc as tt, PersistChatAttachmentsError as tu, resolveValue as u, TerminalSessionLookupError as ua, OrchestrationV2RunAttemptJson as uc, symbol$1 as ud, InvalidUrlError as uf, OrchestratorMcpThreadInterruptInput as ui, PullRequestLinkedThreadsResult as ul, isProviderDriverKind as um, McpCapabilityUnavailableError as un, THREAD_JUMP_KEYBINDING_COMMANDS as uo, AuthSettingsWriteScope as up, AssetSigningKeyLoadError as ur, EnvironmentRequestInvalidError as us, SelfImproveEvidence as ut, del as uu, Hash as v, DATABASE_COMPACTION_RECOMMENDED_BYTES as va, OrchestrationV2StopWorkflowInput as vc, jsonUnsafe as vd, layer$1 as vf, OrchestratorMcpThreadWaitInput as vi, resolvePullRequestAuthorFilter as vl, CheckpointId as vm, PreviewAutomationControlReason as vn, DevicePlatformUnavailableError as vo, authScopeRequiredResponse as vp, AttachmentCreateUploadUrlInput as vr, RelayEnvironmentLinkChallengeResponse as vs, UserInputRankError as vt, normalize as vu, concatBytes as w, PROJECT_SCOPED_SERVER_SETTING_KEYS as wa, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as wc, setHeader as wd, raw$1 as wf, ApplicationEventMetadata as wi, VcsDriverKind as wl, ClientSurface as wm, PreviewAutomationMalformedResponseError as wn, DeviceToolScreenshotResult as wo, getResponseEncoding as wp, AgentSessionImportSource as wr, RelayManagedEndpointRuntimeConfig as ws, DesignSubscribeRequest as wt, params as wu, ahash as x, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as xa, OrchestrationV2SubagentJson as xc, redirect as xd, layerWeak as xf, ScheduledTask as xi, SourceControlProviderError as xl, ClientConnectionMethod as xm, PreviewAutomationEvaluateInput as xn, DeviceToolListResult as xo, StreamSse as xp, AttachmentUploadSigningKeyError as xr, RelayManagedEndpointOrigin as xs, DesignListRequest as xt, add$1 as xu, abytes as y, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as ya, OrchestrationV2StoredEvent as yc, mergeCookies as yd, report as yf, OrchestratorMcpThreadWaitResult as yi, SourceControlCloneRepositoryInput as yl, CheckpointRef as ym, PreviewAutomationDialogInput as yn, DeviceToolCloseInput as yo, authScopeResponse as yp, AttachmentCreateUploadUrlResult as yr, RelayEnvironmentLinkResponse as ys, DesignHumanApplyRequest as yt, HttpRouter as yu, CLIENT_GUARDED_RPC_SCOPES as z, resolveProjectProviderInstanceEnabled as za, OrchestrationProjectShell as zc, acceptJson as zd, ExecutionEnvironmentDescriptor as zf, ServerProviderCompatibilityStatus as zi, McpServerTransport as zl, ProjectId as zm, PreviewAutomationSelectResult as zn, BUILT_IN_BROWSER_PROFILES as zo, decodeSchema as zp, AgentAssetId as zr, OrchestrationV2CheckpointScopeJson as zs, DesignRenderRequest as zt, fromHeaders as zu };
32115
+ export { WsMcpRegistryProviderSignInWaitRpc as $, PREVIEW_URL_MAX_LENGTH as $a, ProjectScript as $c, bodyStream as $d, AuthAccessWriteScope as $f, EDITORS as $i, OrchestrationGetTurnDiffError as $l, RunId as $m, PreviewAutomationTimeoutError as $n, DesktopBrowserCommand as $o, AcpRegistryProbeResult as $p, ThreadMetadataMcpUpdateResult as $r, OrchestrationV2DispatchCommandResult as $s, make as $t, schemaSearchParams as $u, ComputerUseBrowserChatRequest as A, GitHubHost as Aa, OrchestrationV2ThreadLaunchError as Ac, setBody as Ad, jsonUnsafe$1 as Af, ScheduledTaskWebhookDeliveryId as Ai, SourceControlRepositoryError as Al, ClientOs as Am, PreviewAutomationMalformedResponseError as An, DeviceToolOpenResult as Ao, getPayloadEncoding as Ap, AgentSessionImportSource as Ar, RelayManagedEndpointRecoveryResponse as As, DesignSubscribeRequest as At, middleware as Au, clientRpcRequiredScopes as B, makeBinaryPathSetting as Ba, latestProviderTurnForAttempt as Bc, fromWeb as Bd, BadArgument as Bf, TextGenerationError as Bi, VcsUnsupportedOperationError as Bl, MessageId as Bm, PreviewAutomationRemoteUnavailableError as Bn, DecisionError as Bo, isWithHeadersValue as Bp, OrchestrationThreadSearchSource as Br, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as Bs, DesignInspectRequest as Bt, isTracerDisabledUnsafe as Bu, clean as C, CodexSettings as Ca, OrchestrationV2SearchThreadInput as Cc, html as Cd, ignore as Cf, OrchestratorMcpThreadSendInput as Ci, pullRequestHostOf as Cl, AssistantCitation as Cm, PreviewAutomationControlInterruptedError as Cn, DeviceOperationError as Co, EnvironmentAuthorizationError as Cp, AssetWorkspaceRootNormalizationError as Cr, RelayCloudEnvironmentHealthProofPayload as Cs, SelfImproveSaveFindingsResult as Ct, post as Cu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as D, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as Da, OrchestrationV2Subagent as Dc, raw as Dd, layer$2 as Df, MIN_SCHEDULED_TASK_INTERVAL_MS as Di, SourceControlCloneRepositoryResult as Dl, CheckpointScopeId as Dm, PreviewAutomationEvaluateInput as Dn, DeviceToolError as Do, NoContent as Dp, AttachmentUploadSigningKeyError as Dr, RelayHookDeliveryProofPayload as Ds, DesignListRequest as Dt, RouteContext as Du, toBytes as E, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as Ea, OrchestrationV2StoredEvent as Ec, mergeCookies as Ed, report as Ef, OrchestratorMcpThreadWaitResult as Ei, SourceControlCloneRepositoryInput as El, CheckpointRef as Em, PreviewAutomationError as En, DeviceToolCloseInput as Eo, authScopeResponse as Ep, AttachmentDeleteInput as Er, RelayEnvironmentLinkResponse as Es, DesignListReceipt as Et, HttpRouter as Eu, ComputerUseHostResponse as F, ServerSettingsError as Fa, OrchestrationWorkflowFileError as Fc, text as Fd, urlParams$1 as Ff, PullRequestReviewGuideRun as Fi, VcsProcessOutputReadError as Fl, ContextTransferId as Fm, PreviewAutomationRecordingDeadlineExpiredError as Fn, EasDeviceHostConfig as Fo, getWithHeadersAnnotation as Fp, P4_PROJECT_FILE_NAME as Fr, fromApi as Fs, DesignHandoffReceipt as Ft, HttpServer as Fu, WsHubSyncResolveRpc as G, resolveIdleCompaction as Ga, UsageLimitSourceError as Gc, schemaBodyJson as Gd, make$17 as Gf, ServerProvider as Gi, McpServerRuntimeState as Gl, PositiveInt as Gm, PreviewAutomationSelectResult as Gn, resolveDecisionBackend as Go, decode as Gp, AgentAssetFiles as Gr, OrchestrationV2CheckpointJson as Gs, DesignRenderRequest as Gt, requestPreResponseHandlers as Gu, WS_METHODS as H, providerInstanceConfigEnabledFlag as Ha, parseGoalCommand as Hc, MaxBodySize as Hd, badArgument as Hf, VcsListRefsResult as Hi, McpRegistryRpcError as Hl, NonNegativeInt as Hm, PreviewAutomationResizeInput as Hn, DecisionResult as Ho, allShort as Hp, AGENT_ASSET_FILE_MAX_CHARS as Hr, OrchestrationGetWorkflowScriptError as Hs, DesignProposeReceipt as Ht, addHeaderAttributes as Hu, ComputerUseJsInput as I, ServerSettingsPatch as Ia, autoWorkspaceNoticeMessage as Ic, uint8Array as Id, FileSystem as If, PROJECT_CLONE_ERROR_MAX_LENGTH as Ii, VcsProcessSpawnError as Il, DpopFailureReason as Im, PreviewAutomationRecordingDesktopUpdateRequiredError as In, LOCAL_DEVICE_HOST_ID as Io, isNoContent as Ip, PROJECT_FILE_BACKED_SETTINGS as Ir, getParamNames as Is, DesignHandoffRequest as It, addressFormattedWith as Iu, WsHubSyncSubscribeRpc as J, secretSetting as Ja, ProjectCreatePayload as Jc, basicAuth as Jd, ORCHESTRATION_PROTOCOL_QUERY_PARAM as Jf, ServerSelfUpdateError as Ji, RESERVED_MCP_SERVER_NAME as Jl, ProviderThreadId as Jm, PreviewAutomationSnapshot as Jn, INCOGNITO_BROWSER_PROFILE_ID as Jo, makeParser as Jp, AgentAssetListFilter as Jr, OrchestrationV2ContextTransfer as Js, DesignStatusRequest as Jt, HttpServerRequest as Ju, WsHubSyncRunNowRpc as K, resolveProjectProviderInstanceEnabled as Ka, OrchestrationProjectShell as Kc, acceptJson as Kd, ExecutionEnvironmentDescriptor as Kf, ServerProviderCompatibilityStatus as Ki, McpServerTransport as Kl, ProjectId as Km, PreviewAutomationSetColorSchemeInput as Kn, BUILT_IN_BROWSER_PROFILES as Ko, decodeSchema as Kp, AgentAssetId as Kr, OrchestrationV2CheckpointScopeJson as Ks, DesignSelection as Kt, fromHeaders as Ku, ComputerUseOutput as L, UsageLimitSourceConfig as La, isKnownOrchestrationV2EventType as Lc, urlParams as Ld, FileTypeId as Lf, GitCommandError as Li, VcsProcessStdinWriteError as Ll, EnvironmentId as Lm, PreviewAutomationRecordingStatus as Ln, LOCAL_DEVICE_HOST_LABEL as Lo, isStreamSchema$1 as Lp, OrchestrationSearchThreadsError as Lr, toRouterPath as Ls, DesignImportTokensReceipt as Lt, make$6 as Lu, ComputerUseHost as M, ProjectSettingsOverrides as Ma, OrchestrationV2ThreadShell as Mc, setHeaders as Md, stream$1 as Mf, ApplicationProjectEvent as Mi, VcsProcessExitError as Ml, ClientWebDeployment as Mm, PreviewAutomationNoAvailableHostError as Mn, DeviceToolTargetInput as Mo, getResponseEncodingSchema as Mp, AgentSessionSource as Mr, RelayOkResponse as Ms, DesignApplyRequest as Mt, route as Mu, ComputerUseHostRegistration as N, ResponseStreamingMode as Na, OrchestrationV2TurnItem as Nc, setStatus as Nd, text$1 as Nf, OrchestrationDispatchCommandError as Ni, VcsProcessMissingExitCodeError as Nl, CommandId as Nm, PreviewAutomationOpenInput as Nn, DeviceToolUnavailableError as No, getStatusErrorSchema as Np, FilesystemBrowseError as Nr, RelayProtectedError as Ns, DesignGuideReceipt as Nt, serve as Nu, COMPUTER_USE_JEV_TAKE_CODE as O, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as Oa, OrchestrationV2SubagentJson as Oc, redirect as Od, layerWeak as Of, ScheduledTask as Oi, SourceControlProviderError as Ol, ClientConnectionMethod as Om, PreviewAutomationExecutionError as On, DeviceToolListResult as Oo, StreamSse as Op, AgentSessionImportProjectChangedError as Or, RelayManagedEndpointOrigin as Os, DesignRpcGroup as Ot, add$1 as Ou, ComputerUseHostReport as P, ServerSettings as Pa, OrchestrationV2TurnItemJson as Pc, stream as Pd, uint8Array$1 as Pf, PullRequestReviewGuide as Pi, VcsProcessOutputLimitError as Pl, ContextHandoffId as Pm, PreviewAutomationRecordingArtifact as Pn, DeviceToolVersions as Po, getStatusSuccessSchema as Pp, P4ProjectFile as Pr, annotations as Ps, DesignGuideRequest as Pt, use as Pu, WsMcpRegistryProviderSignInStateRpc as Q, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as Qa, ProjectReadFileError as Qc, bodyJsonUnsafe as Qd, AuthAccessTokenType as Qf, isProviderWorkspaceSnapshotCurrent as Qi, OrchestrationGetFullThreadDiffError as Ql, RunAttemptId as Qm, PreviewAutomationTargetNotEditableError as Qn, DesktopAppActivationResponse as Qo, AcpRegistryOperationErrorReason as Qp, ThreadMetadataMcpUpdateInput as Qr, OrchestrationV2DispatchCommandError as Qs, DesignValidateRequest as Qt, schemaHeaders as Qu, computerUseJevStepCode as R, globalIdleCompaction as Ra, isOrchestrationV2WorkActive as Rc, TypeId$13 as Rd, WatchBackend as Rf, GitManagerError as Ri, VcsProcessTimeoutError as Rl, EventId as Rm, PreviewAutomationRecordingTooLargeError as Rn, deviceToolInstallMessage as Ro, isStreamUint8Array as Rp, OrchestrationSearchThreadsInput as Rr, AUTO_WORKSPACE_NOTICE_TITLE as Rs, DesignImportTokensRequest as Rt, TracerDisabledWhen as Ru, anumber as S, ClaudeSettings as Sa, OrchestrationV2SearchThreadError as Sc, file as Sd, TypeId$17 as Sf, OrchestratorMcpThreadReadResult as Si, PullRequestUnavailableError as Sl, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Sm, PreviewAutomationClientDisconnectedError as Sn, DeviceNotFoundError as So, AuthWebSocketTicketUse as Sp, AssetWorkspaceResolutionError as Sr, RelayApi as Ss, SelfImproveReviewers as St, patch as Su, randomBytes as T, DATABASE_COMPACTION_RECOMMENDED_BYTES as Ta, OrchestrationV2StopWorkflowInput as Tc, jsonUnsafe as Td, layer$1 as Tf, OrchestratorMcpThreadWaitInput as Ti, resolvePullRequestAuthorFilter as Tl, CheckpointId as Tm, PreviewAutomationDialogInput as Tn, DevicePlatformUnavailableError as To, authScopeRequiredResponse as Tp, AttachmentCreateUploadUrlResult as Tr, RelayEnvironmentLinkChallengeResponse as Ts, DesignHumanApplyRequest as Tt, normalize as Tu, WsHubSyncConnectRpc as U, requiredScopesForProjectMutation as Ua, ToolActivityIcon as Uc, TypeId$14 as Ud, isPlatformError as Uf, EnvironmentThemeFile as Ui, McpServerId as Ul, PlanId as Um, PreviewAutomationResizeResult as Un, ThreadDecision as Uo, hasBody as Up, AGENT_ASSET_TOTAL_MAX_BYTES as Ur, OrchestrationV2AppThread as Us, DesignProposeRequest as Ut, addUrlAttributes as Uu, RpcScopeAuthorization as V, makeProviderSettingsSchema as Va, orchestrationV2RunWorkStartedAt as Vc, matchStatus as Vd, PlatformError as Vf, VcsListRefsInput as Vi, ModelSelection as Vl, NodeId as Vm, PreviewAutomationRequestQueueClosedError as Vn, DecisionInput as Vo, withHeaders as Vp, HubSyncError as Vr, ORCHESTRATION_V2_WS_METHODS as Vs, DesignLibraryManifest as Vt, tracer as Vu, WsHubSyncDisconnectRpc as W, requiredScopesForServerSettingsPatch as Wa, ToolActivityNativeAppReference as Wc, inspect as Wd, systemError as Wf, EnvironmentThemeId as Wi, McpServerName as Wl, PortSchema as Wm, PreviewAutomationResultTooLargeError as Wn, ThreadDecisionsReadError as Wo, Retry as Wp, AgentAsset as Wr, OrchestrationV2AppThreadJson as Ws, DesignRenderReceipt as Wt, appendPreResponseHandlerUnsafe as Wu, WsMcpRegistryProviderSignInCompleteRpc as X, withIdleCompaction as Xa, ProjectMutation as Xc, bodyFormData as Xd, AuthAccessReadScope as Xf, isProviderAvailable as Xi, resolveRegistryEntryEnabled as Xl, RawEventId as Xm, PreviewAutomationTabNotFoundError as Xn, resolveBrowserProfiles as Xo, AcpRegistryListSessionsResult as Xp, AgentAssetWriteInput as Xr, OrchestrationV2ConversationMessage as Xs, DesignStylesRequest as Xt, TypeId$8 as Xu, WsMcpRegistryProviderSignInCancelRpc as Y, secretSettingsFields as Ya, ProjectListEntriesError as Yc, bearerToken as Yd, ThreadEnvMode as Yf, environmentThemeFileHasColors as Yi, mcpProviderSupport as Yl, ProviderTurnId as Ym, PreviewAutomationStatus as Yn, findBrowserProfile as Yo, AcpRegistryListProvidersResult as Yp, AgentAssetName as Yr, OrchestrationV2ContextTransferJson as Ys, DesignStylesReceipt as Yt, ParsedSearchParams as Yu, WsMcpRegistryProviderSignInStartRpc as Z, FILL_PREVIEW_VIEWPORT as Za, ProjectMutationError as Zc, bodyJson as Zd, AuthAccessStreamError as Zf, isProviderTextGenerationCapable as Zi, supportsProviderMcpSignIn as Zl, RpcClientId as Zm, PreviewAutomationTabTargetInput as Zn, DesktopAppActivationErrorCode as Zo, AcpRegistryOperationError as Zp, agentAssetTotalBytes as Zr, OrchestrationV2ConversationMessageJson as Zs, DesignValidateReceipt as Zt, schemaCookies as Zu, sha512 as _, TerminalSessionLookupError as _a, OrchestrationV2RunAttemptJson as _c, symbol$1 as _d, InvalidUrlError as _f, OrchestratorMcpThreadInterruptInput as _i, PullRequestLinkedThreadsResult as _l, isProviderDriverKind as _m, PREVIEW_AUTOMATION_SERVER_OPERATIONS as _n, THREAD_JUMP_KEYBINDING_COMMANDS as _o, AuthSettingsWriteScope as _p, AssetWorkspaceAssetInspectionError as _r, EnvironmentRequestInvalidError as _s, SelfImproveFindings as _t, del as _u, documentContentDigest as a, ExternalLauncherUnsupportedTargetError as aa, OrchestrationV2GetShellSnapshotError as ac, makeConfig as ad, post$1 as af, TrimmedString as ah, OrchestratorMcpDeleteScheduledTaskInput as ai, DEFAULT_PROVIDER_INTERACTION_MODE as al, DEFAULT_MODEL_BY_PROVIDER as am, getStreamSchemas as an, PreviewSessionLookupError as ao, AuthFilesystemWriteScope as ap, ReviewDiffFileStat as ar, EnvironmentAuthenticatedAuth as as, WsSelfImproveSubscribeSettingsRpc as at, PROVIDER_SEND_TURN_MAX_FILE_BYTES as au, aexists as b, BackgroundActivityProfile as ba, OrchestrationV2RuntimeRequest as bc, make$12 as bd, isHttpClientError as bf, OrchestratorMcpThreadListResult as bi, PullRequestState as bl, ReviewCommentContextRecord as bm, PreviewAutomationActInput as bn, DeviceEasAccountError as bo, AuthTerminalOperateScope as bp, AssetWorkspaceContextResolutionError as br, connectReachabilityHelpUrl as bs, SelfImproveResult as bt, getPayloadSchemas as bu, parseDesign as c, DEFAULT_TERMINAL_ID as ca, OrchestrationV2ProviderFailure as cc, make$8 as cd, setBody$1 as cf, empty$3 as ch, OrchestratorMcpListScheduledTasksInput as ci, ProviderApprovalOption as cl, MODEL_SLUG_ALIASES_BY_PROVIDER as cm, WorktreeMcpHandoffInput as cn, PreviewViewportSetting as co, AuthMcpClientAccess as cp, ATTACHMENT_UPLOAD_URL_TTL_MS as cr, EnvironmentHttpApi as cs, WsSelfImproveUpdateSettingsRpc as ct, PersistChatAttachmentsError as cu, reviewState as d, TerminalCwdStatError as da, OrchestrationV2ProviderSession as dc, ClientAbort$1 as dd, setUrl as df, isHeaders as dh, OrchestratorMcpRequestSecretResult as di, ProviderUserInputAnswers as dl, PREFERRED_DEFAULT_CODEX_MODELS as dm, UsageReadError as dn, KeybindingRule as do, AuthOrchestrationOperateScope as dp, AssetGitHubMediaUrlValidationError as dr, EnvironmentHttpConflictError as ds, WORKTREE_SETUP_ERROR_MAX_LENGTH as dt, Service$1 as du, ExternalLauncherBrowserSpawnError as ea, OrchestrationV2DispatchRejectionReason as ec, toURL as ed, bodyText as ef, RuntimeRequestId as eh, OrchestratorMcpCapabilitiesResult as ei, ProjectSearchContentsError as el, officialAcpRegistryIconUrlForAgentId as em, ServerClient as en, PREVIEW_VIEWPORT_PRESET_IDS as eo, AuthClientMetadataDeviceType as ep, PreviewAutomationUnavailableError as er, DesktopBrowserEvent as es, WsMcpRegistryProviderSignOutRpc as et, OrchestrationGetTurnDiffResult as eu, selectLayoutItems as f, TerminalHistoryError as fa, OrchestrationV2ProviderSessionJson as fc, HttpServerError as fd, setUrlParams as ff, merge as fh, OrchestratorMcpSaveScheduledTaskInput as fi, RuntimeMode as fl, PROVIDER_DISPLAY_NAMES as fm, DesktopHostTelemetryMessage as fn, KeybindingsConfig as fo, AuthOrchestrationReadScope as fp, AssetPreviewTypeValidationError as fr, EnvironmentHttpForbiddenError as fs, WORKTREE_SETUP_STAGE_ORDER as ft, isSecurity as fu, sha384 as g, TerminalResizeError as ga, OrchestrationV2ProviderTurnJson as gc, causeResponse as gd, HttpClientErrorSchema as gf, fromInputUnsafe as gh, OrchestratorMcpTaskStatusInput as gi, ThreadPullRequestLinkSource as gl, defaultInstanceIdForDriver as gm, McpCapabilityUnavailableError as gn, SCRIPT_RUN_COMMAND_PATTERN as go, AuthRelayWriteScope as gp, AssetSigningKeyLoadError as gr, EnvironmentOperationForbiddenError as gs, SelfImproveEvidence as gt, reflect as gu, sha256$1 as h, TerminalProviderInstanceNotFoundError as ha, OrchestrationV2ProviderTurn as hc, ServeError as hd, HttpClientError as hf, bytes as hh, OrchestratorMcpTaskCancelResult as hi, ThreadPullRequestLink as hl, ProviderInstanceMutation as hm, ResourceMonitorEvent as hn, ResolvedKeybindingRule as ho, AuthRelayReadScope as hp, AssetProjectFaviconResolutionError as hr, EnvironmentInternalError as hs, SelfImproveError as ht, make$3 as hu, diagnostic as i, ExternalLauncherUnsupportedEditorError as ia, OrchestrationV2ExecutionNodeJson as ic, limitsServices as id, make$14 as if, TrimmedNonEmptyString as ih, OrchestratorMcpDelegateTaskResult as ii, StoredProjectIcon as il, DEFAULT_MODEL as im, ClientAbort as in, PreviewListResult as io, AuthFilesystemReadScope as ip, McpAppRequestError as ir, EnvironmentAuthInvalidError as is, WsSelfImproveSetMemoryMirrorRpc as it, ChatImageAttachment as iu, ComputerUseError as j, PROJECT_SCOPED_SERVER_SETTING_KEYS as ja, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as jc, setHeader as jd, raw$1 as jf, ApplicationEventMetadata as ji, VcsDriverKind as jl, ClientSurface as jm, PreviewAutomationNavigateInput as jn, DeviceToolScreenshotResult as jo, getResponseEncoding as jp, AgentSessionScanError as jr, RelayManagedEndpointRuntimeConfig as js, DesignApplyReceipt as jt, params as ju, COMPUTER_USE_MAX_OUTPUT_CHARS as k, DEFAULT_SERVER_SETTINGS as ka, OrchestrationV2ThreadForkSourcePoint as kc, removeHeader as kd, isHttpBody as kf, ScheduledTaskError as ki, SourceControlProviderKind as kl, ClientDeviceType as km, PreviewAutomationInvalidSelectorError as kn, DeviceToolOpenInput as ko, asUint8Array as kp, AgentSessionImportProjectNotFoundError as kr, RelayManagedEndpointRecoveryRegistrationResponse as ks, DesignServiceError as kt, cors as ku, patchNode as l, TerminalCwdNotDirectoryError as la, OrchestrationV2ProviderGoal as lc, Path as ld, setHeader$1 as lf, fromInput as lh, OrchestratorMcpListScheduledTasksResult as li, ProviderInteractionMode as ll, MUSE_DEFAULT_MODEL as lm, WorktreeMcpHandoffResult as ln, symbol as lo, AuthMcpRegistrationError as lp, AssetAttachmentNotFoundError as lr, EnvironmentHttpBadRequestError as ls, WsSubscribeThreadDecisionsRpc as lt, getProviderAttachmentLimitError as lu, validateDesign as m, TerminalProviderEnvironmentError as ma, OrchestrationV2ProviderThreadJson as mc, ResponseError as md, DecodeError as mf, set as mh, OrchestratorMcpTaskCancelInput as mi, ThreadPullRequestKey as ml, ProviderInstanceId as mm, ResourceMonitorCommand as mn, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as mo, AuthProvidersManageScope as mp, AssetProjectFaviconNotFoundError as mr, EnvironmentHttpUnauthorizedError as ms, SelfImproveDecision as mt, getSlotParseOptions as mu, canonicalSerialize as n, ExternalLauncherEditorSpawnError as na, OrchestrationV2DomainEventJson as nc, TypeId$9 as nd, del$1 as nf, SecretRef as nh, OrchestratorMcpCreateThreadsResult as ni, ProjectUpdatePayload as nl, ANTIGRAVITY_DEFAULT_MODEL as nm, isWrapper as nn, PreviewControlRequiredError as no, AuthEnvironmentMaintainScope as np, PreviewAutomationWaitForInput as nr, DesktopBackendBootstrap as ns, WsSelfImproveDismissFindingsRpc as nt, ChatAttachmentId as nu, fileHash as o, ProviderSetupError as oa, OrchestrationV2GetThreadProjectionError as oc, toPersisted as od, prependUrl as of, TurnItemId as oh, OrchestratorMcpDeleteScheduledTaskResult as oi, DEFAULT_RUNTIME_MODE as ol, DEFAULT_TEXT_GENERATION_MODEL as om, isStreamSchema as on, PreviewStreamHostSetup as oo, AuthGrantScope as op, ReviewDiffPreviewSource as or, EnvironmentAuthenticatedPrincipal as os, WsSelfImproveSubscribeThreadFindingsRpc as ot, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as ou, semanticDiff as p, TerminalNotRunningError as pa, OrchestrationV2ProviderThread as pc, RequestParseError as pd, make$15 as pf, remove as ph, OrchestratorMcpScheduleTaskResult as pi, ThreadLinkedPullRequest as pl, ProviderDriverKind as pm, DesktopTelemetryControlMessage as pn, KeybindingsConfigError as po, AuthPreviewOperateScope as pp, AssetProjectFaviconInspectionError as pr, EnvironmentHttpInternalServerError as ps, Service as pt, make$2 as pu, WsHubSyncSetModeRpc as q, resolveProviderInstanceEnabled as qa, Project as qc, appendUrlParams as qd, ORCHESTRATION_PROTOCOL_HEADER as qf, ServerProviderUpdateError as qi, PluginId as ql, ProviderSessionId as qm, PreviewAutomationSetColorSchemeResult as qn, DEFAULT_BROWSER_PROFILE_ID as qo, encoder$2 as qp, AgentAssetKind as qr, OrchestrationV2ContextHandoffJson as qs, DesignStatusReceipt as qt, toHeaders as qu, computeLayout as r, ExternalLauncherUnknownEditorError as ra, OrchestrationV2ExecutionNode as rc, isPersistedFile as rd, get$1 as rf, ThreadId as rh, OrchestratorMcpDelegateTaskInput as ri, ProjectWriteFileError as rl, CustomModelSetting as rm, make$1 as rn, PreviewInvalidUrlError as ro, AuthEnvironmentScopes as rp, SERVER_BROWSER_AUTOMATION_CLIENT_ID as rr, RelayClientInstallFailedError as rs, WsSelfImproveSaveFindingsRpc as rt, ChatFileAttachment as ru, isConfinedRelativePath as s, ProviderUploadFeedbackError as sa, OrchestrationV2PlanArtifact as sc, decodeField as sd, put$1 as sf, CurrentRedactedNames as sh, OrchestratorMcpFailure as si, ProviderApprovalDecision as sl, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as sm, WorktreeMcpFailure as sn, PreviewTabId as so, AuthMcpApprovalError as sp, ReviewDiffPreviewSourceKind as sr, EnvironmentCloudEndpointUnavailableError as ss, WsSelfImproveUndoSaveRpc as st, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as su, buildIndexes as t, ExternalLauncherCommandNotFoundError as ta, OrchestrationV2DomainEvent as tc, MultipartError as td, bodyUrlParams as tf, ScheduledTaskId as th, OrchestratorMcpCreateThreadsInput as ti, ProjectSearchEntriesError as tl, resolveOfficialAcpRegistryIconUrl as tm, exitSchema as tn, PreviewClearProfileError as to, AuthDiagnosticsReadScope as tp, PreviewAutomationUnsupportedClientError as tr, DESKTOP_UPDATE_RESTART_MARKER_FILE as ts, WsRpcGroup as tt, ChatAttachment as tu, resolveValue as u, TerminalCwdNotFoundError as ua, OrchestrationV2ProviderRetry as uc, TypeId$10 as ud, setHeaders$1 as uf, fromRecordUnsafe as uh, OrchestratorMcpRequestSecretInput as ui, ProviderRequestKind as ul, ModelCapabilities as um, WorktreeMcpStatusResult as un, value as uo, AuthMcpTokenError as up, AssetCreateUrlInput as ur, EnvironmentHttpCommonError as us, SecretRequestError as ut, isProviderSendTurnSupportedImageMimeType as uu, Hash as v, TerminalWriteError as va, OrchestrationV2RunJson as vc, toResponse as vd, StatusCodeError as vf, OrchestratorMcpThreadInterruptResult as vi, PullRequestOperationError as vl, ComposerContextRecord as vm, PREVIEW_AUTOMATION_V1_OPERATIONS as vn, DeviceActionUnavailableError as vo, AuthSourceControlWriteScope as vp, AssetWorkspaceAssetNotFoundError as vr, EnvironmentResourceNotFoundError as vs, SelfImproveLabel as vt, get as vu, concatBytes as w, CompressMode as wa, OrchestrationV2StopWorkflowError as wc, isHttpServerResponse as wd, isIgnored as wf, OrchestratorMcpThreadSendResult as wi, pullRequestProviderRequirement as wl, AuthSessionId as wm, PreviewAutomationControlReason as wn, DevicePlatformAvailability as wo, ServerAuthSessionMethod as wp, AttachmentCreateUploadUrlInput as wr, RelayCloudMintCredentialProofPayload as ws, UserInputRankError as wt, put as wu, ahash as x, BackgroundActivityProfileSelection as xa, OrchestrationV2RuntimeRequestJson as xc, empty as xd, CurrentErrorReporters as xf, OrchestratorMcpThreadReadInput as xi, PullRequestSummary as xl, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as xm, PreviewAutomationActInputs as xn, DeviceHostUnavailableError as xo, AuthTerminalReadScope as xp, AssetWorkspacePathValidationError as xr, formatConnectReachable as xs, SelfImproveReview as xt, getSuccessSchemas as xu, abytes as y, AntigravitySettings as ya, OrchestrationV2RunStatus as yc, HttpPlatform as yd, TransportError as yf, OrchestratorMcpThreadListInput as yi, PullRequestStack as yl, OrchestrationMessageContext as ym, PREVIEW_RECORDING_STOP_TIMEOUT_MS as yn, DeviceBootError as yo, AuthStandardClientScopes as yp, AssetWorkspaceContextNotFoundError as yr, EnvironmentScopeRequiredError as ys, SelfImproveRequest as yt, getErrorSchemas as yu, CLIENT_GUARDED_RPC_SCOPES as z, isUnconfiguredDefaultInstanceEnabled as za, isProviderNativeSubagentThread as zc, filterStatusOk as zd, make$16 as zf, GitPullRequestMaterializationError as zi, VcsRepositoryDetectionError as zl, IsoDateTime as zm, PreviewAutomationRecordingTransferError as zn, DECISION_MODELS as zo, isWithHeaders as zp, OrchestrationSearchThreadsResult as zr, AUTO_WORKSPACE_UNDECIDED_REASON as zs, DesignInspectReceipt as zt, compression as zu };
32030
32116
 
32031
- //# sourceMappingURL=runtime-DvE0t3kv.mjs.map
32117
+ //# sourceMappingURL=runtime-KPwu-Er9.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@p4code/cli",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "description": "P4 Code coding agent server and command-line client",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,2 +0,0 @@
1
- import{i as e}from"./DialogTitle-Bz-7IYD8.js";function t(t){return e(t,`alert-dialog`)}export{t};
2
- //# sourceMappingURL=AlertDialogRoot-Dxu9crTa.js.map