@p4code/cli 0.8.35 → 0.8.37

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 (263) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-26z5sNBT.mjs → binCli-mInzhqSL.mjs} +5 -5
  3. package/dist/client/.vite/manifest.json +2031 -2031
  4. package/dist/client/assets/{2NI2N5EU-BLnY4aCF.js → 2NI2N5EU-DVsZziQ3.js} +2 -2
  5. package/dist/client/assets/{4UO7MD6I-BApNVkfU.js → 4UO7MD6I-Cs3yBe-m.js} +2 -2
  6. package/dist/client/assets/{5B3SVYGG-Y7V7NdZO.js → 5B3SVYGG-CxW0L1iX.js} +2 -2
  7. package/dist/client/assets/{5GK6JWQ2-BSIhKcw-.js → 5GK6JWQ2-Cb25PEnx.js} +2 -2
  8. package/dist/client/assets/{5N7A7DKN-CNUCnWLs.js → 5N7A7DKN-udLyT643.js} +2 -2
  9. package/dist/client/assets/{5OC2THR4-Bne-pf_A.js → 5OC2THR4-DqD-reis.js} +2 -2
  10. package/dist/client/assets/{5S6HY5KT-7d4UMONz.js → 5S6HY5KT-Cy7mIKKq.js} +2 -2
  11. package/dist/client/assets/{6IMQ5BUJ-BWW19n-D.js → 6IMQ5BUJ-Qu9PVsT7.js} +2 -2
  12. package/dist/client/assets/{6OLKWJ4F-CxTUuvA6.js → 6OLKWJ4F-BYzZS9mf.js} +2 -2
  13. package/dist/client/assets/{74OO7NKP-DByVTRKE.js → 74OO7NKP-h3ga2-vb.js} +2 -2
  14. package/dist/client/assets/{75O6YZUN-CZanyedf.js → 75O6YZUN-ByAK3P56.js} +2 -2
  15. package/dist/client/assets/{77XECAW3-TL2w7pHK.js → 77XECAW3-D_lZqaZv.js} +2 -2
  16. package/dist/client/assets/{ABYRPUBD-CJboH7Uz.js → ABYRPUBD-BPWfXZyu.js} +2 -2
  17. package/dist/client/assets/AlertDialogRoot-BSP6M0Mu.js +2 -0
  18. package/dist/client/assets/{AnimatedHeight-OxEbW01v.js → AnimatedHeight-D0-6CAPr.js} +2 -2
  19. package/dist/client/assets/{AuthSurfaceShell-KQXgPV4i.js → AuthSurfaceShell-30QvY1bI.js} +2 -2
  20. package/dist/client/assets/{BB2UYUI2-BxW-R2h1.js → BB2UYUI2-CGgafKC2.js} +2 -2
  21. package/dist/client/assets/{BUM34MOA-ngG-irUy.js → BUM34MOA-Cn4iaSBT.js} +2 -2
  22. package/dist/client/assets/{CEQABKGZ-C-u-W0bS.js → CEQABKGZ-CmBEfzh3.js} +2 -2
  23. package/dist/client/assets/{CXAC5362-DfFRkI7L.js → CXAC5362-xibpmz3Y.js} +2 -2
  24. package/dist/client/assets/{ChatGptUsageButton-C3KgGt4z.js → ChatGptUsageButton-DU3PVHJW.js} +2 -2
  25. package/dist/client/assets/{ChatMarkdown-9gWM0ED9.js → ChatMarkdown-D-cNSjFn.js} +5 -5
  26. package/dist/client/assets/{CheckboxIndicator-DbU3csPQ.js → CheckboxIndicator-CZCy38xt.js} +2 -2
  27. package/dist/client/assets/{ClippedText-CS_BYNco.js → ClippedText-D_rM_XDj.js} +2 -2
  28. package/dist/client/assets/{CodexSetupSection.logic-CNbTXxKb.js → CodexSetupSection.logic-g6_GE4bw.js} +2 -2
  29. package/dist/client/assets/{ComboboxClear-Bn_kslrf.js → ComboboxClear-tOmMpuVi.js} +2 -2
  30. package/dist/client/assets/{ComboboxGroupLabel-fL8lMA25.js → ComboboxGroupLabel-CgZZIHwV.js} +2 -2
  31. package/dist/client/assets/{CommandBlock-DcQXu_lq.js → CommandBlock-6rjypfVF.js} +2 -2
  32. package/dist/client/assets/{ComposerPromptEditor-DQ9wFfKn.js → ComposerPromptEditor-Dxfhec2W.js} +4 -4
  33. package/dist/client/assets/{CompositeRoot-BuwzXGHT.js → CompositeRoot-Bsb8efI6.js} +2 -2
  34. package/dist/client/assets/{ConnectionDiagnosisDetails-DGbJY7Hw.js → ConnectionDiagnosisDetails-Q0M5gCCf.js} +2 -2
  35. package/dist/client/assets/{ConnectionStatusDot-CixsTBXI.js → ConnectionStatusDot-DAuD0jkU.js} +2 -2
  36. package/dist/client/assets/{DRLTVNUE-Cbb71R0Y.js → DRLTVNUE-BVseXOzv.js} +2 -2
  37. package/dist/client/assets/{DYY6UVD2-BZn5fuF5.js → DYY6UVD2-Bz33D3dq.js} +2 -2
  38. package/dist/client/assets/{DevicePanel-JP__PY1s.js → DevicePanel-CsSQr7vQ.js} +2 -2
  39. package/dist/client/assets/{DeviceSetup-D8qb_qBj.js → DeviceSetup-Cl7L9wsi.js} +2 -2
  40. package/dist/client/assets/{DialogTitle-B_9LEmy3.js → DialogTitle-bcvBtKP-.js} +2 -2
  41. package/dist/client/assets/{DiffCommentAnnotation-WMKzOwCh.js → DiffCommentAnnotation-bhzNqujM.js} +2 -2
  42. package/dist/client/assets/{DiffFileTree-BSbsOOmA.js → DiffFileTree-BySeJqhq.js} +2 -2
  43. package/dist/client/assets/{DiffPanel-BWFuiHvv.js → DiffPanel-CCFas4eA.js} +2 -2
  44. package/dist/client/assets/{DiffWorkerPoolProvider-BBk0lIX3.js → DiffWorkerPoolProvider-CkkqWbz-.js} +2 -2
  45. package/dist/client/assets/{EmbeddedDesign-D5YUndkh.js → EmbeddedDesign-iuThcPT3.js} +2 -2
  46. package/dist/client/assets/{EnvironmentMachineIcon-Dpgx67FY.js → EnvironmentMachineIcon-iUmoTUYt.js} +2 -2
  47. package/dist/client/assets/{ExpandableText-Cpm1gOKG.js → ExpandableText-ByCx68yv.js} +2 -2
  48. package/dist/client/assets/{FNOVOB4O-BkEIrB0k.js → FNOVOB4O-DK3iet1g.js} +2 -2
  49. package/dist/client/assets/{FieldControl-BHe6unoZ.js → FieldControl-DtsEariK.js} +2 -2
  50. package/dist/client/assets/{FileDiff-C1vAOUga.js → FileDiff-Bu2BSqBV.js} +2 -2
  51. package/dist/client/assets/{FilePreviewPanel-CbpNevZP.js → FilePreviewPanel-8cI8gciT.js} +2 -2
  52. package/dist/client/assets/{FoldedSettingsSection-DySTg20x.js → FoldedSettingsSection-RYq8GTvV.js} +2 -2
  53. package/dist/client/assets/{FormContext-CmvUzTS-.js → FormContext-CIK8MKa2.js} +2 -2
  54. package/dist/client/assets/{HDGCDEEZ-CN-ckGDk.js → HDGCDEEZ-B_J1N6RY.js} +2 -2
  55. package/dist/client/assets/{HSJLKHB7-B0BvmnZE.js → HSJLKHB7-B2SbZQUf.js} +2 -2
  56. package/dist/client/assets/{Icons-B4l3TqYa.js → Icons-xsXA_L6w.js} +2 -2
  57. package/dist/client/assets/Input-D3Qi4jCN.js +2 -0
  58. package/dist/client/assets/JZOYTAAL-BlxFvoz4.js +1 -0
  59. package/dist/client/assets/{K3MD6TGW-IS0rWO1U.js → K3MD6TGW-VU68yYxr.js} +2 -2
  60. package/dist/client/assets/{K7RP3OMA-DcqjCOJO.js → K7RP3OMA-zaD_NBVC.js} +2 -2
  61. package/dist/client/assets/{KeybindingsSettings.logic-mF9mJWrc.js → KeybindingsSettings.logic-BJe27xmi.js} +2 -2
  62. package/dist/client/assets/{LHDIQX7Q-CLMgIt4Y.js → LHDIQX7Q-DCLqoRGy.js} +2 -2
  63. package/dist/client/assets/{LUXOKEGN-B1dkmN_M.js → LUXOKEGN-CmxZpSzC.js} +2 -2
  64. package/dist/client/assets/{MathTypeset-qeRVy_bc.js → MathTypeset-Hhqwg4PF.js} +2 -2
  65. package/dist/client/assets/{N3JZAHOW-C6sq5aqx.js → N3JZAHOW-Cev8Cn9M.js} +2 -2
  66. package/dist/client/assets/{NUIALGQ3-BG7xJ_qe.js → NUIALGQ3-CV92Kt25.js} +2 -2
  67. package/dist/client/assets/{NoProjectsHero-B0KzU91d.js → NoProjectsHero-CMqIlSNl.js} +2 -2
  68. package/dist/client/assets/{O65XPQGZ-BEfVfDlS.js → O65XPQGZ-bGyTGMsB.js} +2 -2
  69. package/dist/client/assets/{O7XIQ6OM-BUiRjV87.js → O7XIQ6OM-DVdEfB1N.js} +2 -2
  70. package/dist/client/assets/{OFQON5FD-DTgVPbd-.js → OFQON5FD-Ca_CNS26.js} +2 -2
  71. package/dist/client/assets/{P4ConnectAccountPages-C4KYM5XU.js → P4ConnectAccountPages-Buss2oTL.js} +2 -2
  72. package/dist/client/assets/{P4ConnectSidebarSignIn-DNPUNJl_.js → P4ConnectSidebarSignIn-D1n4y6Gq.js} +2 -2
  73. package/dist/client/assets/{PJQHF43J-QRnhQpHu.js → PJQHF43J-B__IdKwP.js} +2 -2
  74. package/dist/client/assets/{PanelLayoutControls-4VFKEoHg.js → PanelLayoutControls-EIunk_2Q.js} +4 -4
  75. package/dist/client/assets/{PierreEntryIcon-DeI-j_7w.js → PierreEntryIcon-GQImyog1.js} +2 -2
  76. package/dist/client/assets/{PopoverHandle-DMB4QSp6.js → PopoverHandle-Cj5egwXv.js} +2 -2
  77. package/dist/client/assets/{PreviewPanel-CO66mekh.js → PreviewPanel-BkFeksTl.js} +2 -2
  78. package/dist/client/assets/{ProjectDefaultsSettings-BF-iyQ8T.js → ProjectDefaultsSettings-DX2Kf-tx.js} +2 -2
  79. package/dist/client/assets/{ProjectFavicon-_6hkSNzm.js → ProjectFavicon-OMOnEzVu.js} +3 -3
  80. package/dist/client/assets/{ProjectIconPickerDialog-DeL1rZxy.js → ProjectIconPickerDialog-Q4GkqwDs.js} +2 -2
  81. package/dist/client/assets/{ProjectMonogram-Cn4l-YGU.js → ProjectMonogram-Br5sgd24.js} +2 -2
  82. package/dist/client/assets/{ProviderAuthTerminal-qGeMxZDy.js → ProviderAuthTerminal-Q584HoOn.js} +2 -2
  83. package/dist/client/assets/{ProviderModelPicker-DJQYH_Pp.js → ProviderModelPicker-JNM9nJs_.js} +2 -2
  84. package/dist/client/assets/{ProviderSettingsForm-BSVuPnR0.js → ProviderSettingsForm-CdiKhrJE.js} +2 -2
  85. package/dist/client/assets/{PullRequestCodeTab-0OaJE6XS.js → PullRequestCodeTab-Co76Qf6Z.js} +2 -2
  86. package/dist/client/assets/{RHNBAITX-ChqB7inB.js → RHNBAITX-Oryl0UiR.js} +2 -2
  87. package/dist/client/assets/{ReadOnlySourcePreview-B08Wms4m.js → ReadOnlySourcePreview-aUjexBVb.js} +2 -2
  88. package/dist/client/assets/{RenderErrorBoundary-BsOuLEci.js → RenderErrorBoundary-Oe5BzG3n.js} +2 -2
  89. package/dist/client/assets/{SLD4V6NK-IkYRGtTH.js → SLD4V6NK-DbsINoTD.js} +2 -2
  90. package/dist/client/assets/{ScheduledTasksSettings-1UDkELZo.js → ScheduledTasksSettings-1uXNtcPA.js} +2 -2
  91. package/dist/client/assets/{ScopedSwitch-Bhp6-hCj.js → ScopedSwitch-D8-FelRH.js} +2 -2
  92. package/dist/client/assets/{ScrollAreaCorner-BPMuWLbs.js → ScrollAreaCorner-nnFi-Ecx.js} +2 -2
  93. package/dist/client/assets/{SecretInput-RlOzrLKL.js → SecretInput-CqAhFuNO.js} +2 -2
  94. package/dist/client/assets/{SelectScrollUpArrow-6kh66YCd.js → SelectScrollUpArrow-BQJrvk31.js} +2 -2
  95. package/dist/client/assets/{SettingsPanels-BfBUSBAG.js → SettingsPanels-CNgY_ZPe.js} +4 -4
  96. package/dist/client/assets/{SettingsPanels.logic-BsFZYDgm.js → SettingsPanels.logic-Dr_NyHjE.js} +2 -2
  97. package/dist/client/assets/{SettingsScopeNotice-H7UzC9bb.js → SettingsScopeNotice-BFxCBOnl.js} +2 -2
  98. package/dist/client/assets/{T3PCR2KE-BxaunvVy.js → T3PCR2KE-2R1FY5zG.js} +2 -2
  99. package/dist/client/assets/{TKWO2OVW-DFURsfqA.js → TKWO2OVW-BjhIZzCe.js} +2 -2
  100. package/dist/client/assets/{TSHNXIZL-CIukdyLy.js → TSHNXIZL-B_cvoUct.js} +2 -2
  101. package/dist/client/assets/{ThemeEditorPanel-otrA-nTg.js → ThemeEditorPanel-B7MiqZ90.js} +2 -2
  102. package/dist/client/assets/{ThreadTerminalDrawer-BQKZCFAC.js → ThreadTerminalDrawer-DHoyxd6-.js} +2 -2
  103. package/dist/client/assets/{TooltipViewport-ZmVCer7P.js → TooltipViewport-ThbbZQDo.js} +2 -2
  104. package/dist/client/assets/{UQJE5E4I-CfqCotH2.js → UQJE5E4I-2r98lr05.js} +2 -2
  105. package/dist/client/assets/{USNYFO5S-CctAAheU.js → USNYFO5S-CvTI5t_o.js} +2 -2
  106. package/dist/client/assets/{Virtualizer-CImHNxBq.js → Virtualizer-BgcEI5KE.js} +2 -2
  107. package/dist/client/assets/{WEVWDWVA-DS9YO9IT.js → WEVWDWVA-U7ygIdf3.js} +2 -2
  108. package/dist/client/assets/{WorkspaceBreadcrumb-BW_omYU1.js → WorkspaceBreadcrumb-_zND61qF.js} +2 -2
  109. package/dist/client/assets/{WorkspacePageContainer-BS8FWt_4.js → WorkspacePageContainer-LYv_7Qc0.js} +2 -2
  110. package/dist/client/assets/{WorkspacePageHeader-CE_94tTR.js → WorkspacePageHeader-B_0ute56.js} +2 -2
  111. package/dist/client/assets/{X5RFHQXM-B0KbwoE1.js → X5RFHQXM-D4S0_b0W.js} +2 -2
  112. package/dist/client/assets/{X62E3GBT-wpz8X9Yh.js → X62E3GBT-CrIC4h9P.js} +2 -2
  113. package/dist/client/assets/{XBNEOJTC-DFRK5c6Y.js → XBNEOJTC-D2_RQZjM.js} +2 -2
  114. package/dist/client/assets/{YHV2MVVZ-1NnqTTZ2.js → YHV2MVVZ-BmAcJLBt.js} +2 -2
  115. package/dist/client/assets/{YURCZMG2-rnzWY5ij.js → YURCZMG2-RCCTu3bv.js} +2 -2
  116. package/dist/client/assets/{YVG2LODB-Dxuuk2M-.js → YVG2LODB-Cvp0Ei-1.js} +2 -2
  117. package/dist/client/assets/{_chat-1QGQLbCc.js → _chat-CwO3_WVM.js} +5 -5
  118. package/dist/client/assets/{_chat.design-z2pu_9A5.js → _chat.design-DX1VqYkX.js} +2 -2
  119. package/dist/client/assets/{_chat.index-D8X9o5jY.js → _chat.index-Dzh3d42S.js} +2 -2
  120. package/dist/client/assets/{_chat.new-CGJw8cpo.js → _chat.new-BHRvXFPr.js} +2 -2
  121. package/dist/client/assets/{_chat.pull-requests-BfW9qMU1.js → _chat.pull-requests-BZilN1TK.js} +2 -2
  122. package/dist/client/assets/{alert-DO06etEs.js → alert-BN-r9V4f.js} +2 -2
  123. package/dist/client/assets/{assetUrls-CmOUMX2M.js → assetUrls-B6vsSVWR.js} +2 -2
  124. package/dist/client/assets/{assets-aBpLf8r4.js → assets-CID0y4Uv.js} +2 -2
  125. package/dist/client/assets/{browserHistoryStore-tYgeZygn.js → browserHistoryStore-CK4YsfkQ.js} +2 -2
  126. package/dist/client/assets/{browserLinkTarget-CQFfJKWJ.js → browserLinkTarget-BJ30b4-s.js} +2 -2
  127. package/dist/client/assets/{checkbox-BEQFb7GO.js → checkbox-BJhN1L_L.js} +2 -2
  128. package/dist/client/assets/{color-picker-CXfnfmuH.js → color-picker-D2LwMwlZ.js} +2 -2
  129. package/dist/client/assets/{combobox--XoXA5uu.js → combobox-Cw2-7qyI.js} +2 -2
  130. package/dist/client/assets/{command-E2aLhsct.js → command-BIELTYJu.js} +2 -2
  131. package/dist/client/assets/{composer-logic-BPTz1APL.js → composer-logic-P-jVPXi4.js} +2 -2
  132. package/dist/client/assets/{composerDraftUploads-b_0oxKs9.js → composerDraftUploads-S66xDlS0.js} +2 -2
  133. package/dist/client/assets/{connect-CU9dNvTt.js → connect-D4llmZsa.js} +2 -2
  134. package/dist/client/assets/{connect-agent-Byc9PCdW.js → connect-agent-BlR0FAbF.js} +2 -2
  135. package/dist/client/assets/{design-CoGbXd61.js → design-Cdl1XCBU.js} +2 -2
  136. package/dist/client/assets/{device-DmH6IHQ4.js → device-Bc5H3PTz.js} +2 -2
  137. package/dist/client/assets/{dialog-CBBxT1gk.js → dialog-BRtKKGzk.js} +2 -2
  138. package/dist/client/assets/{diffRendering-BOVFJuWd.js → diffRendering-DtBTalAD.js} +2 -2
  139. package/dist/client/assets/{dist-B2P3f-0Q.js → dist-oE_MNxpZ.js} +3 -3
  140. package/dist/client/assets/{draft-input-CSOOVntS.js → draft-input-vviXwx5Q.js} +2 -2
  141. package/dist/client/assets/{duoViewer-BhHYrurM.js → duoViewer-kcp00m8a.js} +2 -2
  142. package/dist/client/assets/{dynamic-BhzrutAo.js → dynamic-C8_ODyue.js} +2 -2
  143. package/dist/client/assets/{embeddedScripts-43_R83vp.js → embeddedScripts-skldQmE1.js} +2 -2
  144. package/dist/client/assets/{empty-FOL5U4KY.js → empty-rC3eYvxq.js} +2 -2
  145. package/dist/client/assets/{entities-Bqo0n1Pb.js → entities-B8Vupv5g.js} +2 -2
  146. package/dist/client/assets/{fileLinks-D4GSqJYj.js → fileLinks-BoyzENAX.js} +2 -2
  147. package/dist/client/assets/{fileTreeExpansion-BBT5F8P1.js → fileTreeExpansion-DndrZZAD.js} +2 -2
  148. package/dist/client/assets/{getDiffFileInput-CGw09SPI.js → getDiffFileInput-C1QBFdFu.js} +2 -2
  149. package/dist/client/assets/{guideRunStore-DvIkVECt.js → guideRunStore-BgFFILxA.js} +2 -2
  150. package/dist/client/assets/{htmlRender-CmEeFzCo.js → htmlRender-ddkOIEbT.js} +2 -2
  151. package/dist/client/assets/{index-B1djVqM4.js → index-BwdieRvq.js} +3 -3
  152. package/dist/client/assets/{input-ekYqAkUx.js → input-BYd74ook.js} +2 -2
  153. package/dist/client/assets/{input-group-C3pxk97H.js → input-group-DMFlSk_7.js} +2 -2
  154. package/dist/client/assets/{kbd-3FPzNikV.js → kbd-rp5mX21h.js} +2 -2
  155. package/dist/client/assets/{keybindings-B3oDRRkK.js → keybindings-B_kRk5Fi.js} +2 -2
  156. package/dist/client/assets/{lazy-DyNR0b0B.js → lazy-CeaQ3-Fj.js} +4 -4
  157. package/dist/client/assets/{lazyRouteComponent-BPxq_G_s.js → lazyRouteComponent-COYyJY2H.js} +2 -2
  158. package/dist/client/assets/{link-B3B5a5Ju.js → link-CsXnX9WM.js} +2 -2
  159. package/dist/client/assets/{linkedPrompt-BsCPMHxQ.js → linkedPrompt-B5iI7U8H.js} +2 -2
  160. package/dist/client/assets/{main-BWh6jqG2.js → main-VfCRP294.js} +7 -7
  161. package/dist/client/assets/{mediaReference-Bb8H-qbI.js → mediaReference-ZW7gfO5X.js} +2 -2
  162. package/dist/client/assets/{mediaSource-C2MsZgy8.js → mediaSource-DsT6G6Wm.js} +2 -2
  163. package/dist/client/assets/{number-field-SoHEiP55.js → number-field-CEA6qXbs.js} +2 -2
  164. package/dist/client/assets/{observeResize-3Vj9DYOV.js → observeResize-DSyLC8QK.js} +2 -2
  165. package/dist/client/assets/{onboarding-CPgiVEVK.js → onboarding-BPkAEHBV.js} +2 -2
  166. package/dist/client/assets/{openFileInPreview-BBWCOLh_.js → openFileInPreview-CGM83ICx.js} +2 -2
  167. package/dist/client/assets/{p4ProjectFile-qmvlbzKv.js → p4ProjectFile-CwpteA7b.js} +2 -2
  168. package/dist/client/assets/{pair-CZnRGdd8.js → pair-D9v8gc0o.js} +2 -2
  169. package/dist/client/assets/{pendingSendStore-L5KquCDf.js → pendingSendStore-BuEVrrEM.js} +2 -2
  170. package/dist/client/assets/{phoneViewer-D-8v-sMf.js → phoneViewer-CNE0SVmy.js} +2 -2
  171. package/dist/client/assets/{pierre-icons-jwqMPUxD.js → pierre-icons-ChDlOt-h.js} +2 -2
  172. package/dist/client/assets/{popover-OfG3wVsl.js → popover-BjUpdrKu.js} +2 -2
  173. package/dist/client/assets/{preview-BYnEURcB.js → preview-3EscFepc.js} +2 -2
  174. package/dist/client/assets/{preview-DGdQ5Ycc.js → preview-DHLYKEKb.js} +2 -2
  175. package/dist/client/assets/{previewMiniPlayerStore-Dlbj5KrZ.js → previewMiniPlayerStore-DHjQeV1U.js} +2 -2
  176. package/dist/client/assets/{primary-B47ivN3o.js → primary-NcsmRI6j.js} +2 -2
  177. package/dist/client/assets/{primaryCloudLinkState-CreqR0gU.js → primaryCloudLinkState-DkXIVBHW.js} +2 -2
  178. package/dist/client/assets/{projectFilesQueryState-CanWrACx.js → projectFilesQueryState-0jxJ50Qq.js} +2 -2
  179. package/dist/client/assets/{projectScriptEditor-gWuw6vwd.js → projectScriptEditor-CMGXoIEJ.js} +2 -2
  180. package/dist/client/assets/{providerSkills-C_Rxqah9.js → providerSkills-4hnESoi_.js} +2 -2
  181. package/dist/client/assets/{pullRequestDetail.logic-RASi2EgP.js → pullRequestDetail.logic-sbOM8yDW.js} +2 -2
  182. package/dist/client/assets/{pullRequestIcons-ucGaXXG7.js → pullRequestIcons-B7Om_B_D.js} +2 -2
  183. package/dist/client/assets/{pullRequestReviewStore-CEr41DEl.js → pullRequestReviewStore-CIL8WfOG.js} +2 -2
  184. package/dist/client/assets/{pullRequests-Bw3Ui6hK.js → pullRequests-CMTRCOu7.js} +2 -2
  185. package/dist/client/assets/{queries-EslKFJTV.js → queries-hhl_J8u9.js} +2 -2
  186. package/dist/client/assets/{query-d1pQlqP0.js → query-CfGzD8v6.js} +2 -2
  187. package/dist/client/assets/{radio-group-Ciy_K5uE.js → radio-group-up2QNXjf.js} +2 -2
  188. package/dist/client/assets/{renderScheduler-CP-JkmKx.js → renderScheduler-Dgqqs-EX.js} +2 -2
  189. package/dist/client/assets/{rightPanelStore-D3KOmuPa.js → rightPanelStore-CGF0-d-1.js} +2 -2
  190. package/dist/client/assets/{runtime-d6B1vJeH.js → runtime-Ca_Z-vg5.js} +3 -3
  191. package/dist/client/assets/{runtime-DR7JxgbQ.js → runtime-OeWFs5Hf.js} +3 -3
  192. package/dist/client/assets/{runtimeModeConfig-Rxeb1uGg.js → runtimeModeConfig-BTG9FTYe.js} +2 -2
  193. package/dist/client/assets/{scheduledTasksSettings.logic-CVIC4Kpr.js → scheduledTasksSettings.logic-BeuOnCov.js} +2 -2
  194. package/dist/client/assets/{scroll-area-yyfi3ycu.js → scroll-area-BNQKEZbp.js} +2 -2
  195. package/dist/client/assets/{select-DaYjjw1q.js → select-D_zHR42Y.js} +2 -2
  196. package/dist/client/assets/{selfImproveFindings-1XIHD-7i.js → selfImproveFindings-CAZ0j1GD.js} +2 -2
  197. package/dist/client/assets/{server-sXApTCjZ.js → server-6nKYyc8r.js} +2 -2
  198. package/dist/client/assets/{session-C949OsEI.js → session-BxUdP61p.js} +2 -2
  199. package/dist/client/assets/{session-logic-DkSfwnHl.js → session-logic-Dr1plzXe.js} +2 -2
  200. package/dist/client/assets/{settings-B0O54Q3P.js → settings-DE_hSu0q.js} +2 -2
  201. package/dist/client/assets/{settings.appearance-BesXhA1a.js → settings.appearance-C--uy4It.js} +2 -2
  202. package/dist/client/assets/settings.archived-D-55XnxQ.js +2 -0
  203. package/dist/client/assets/{settings.computer-use-BeKmLbNe.js → settings.computer-use-DhnqPqMm.js} +2 -2
  204. package/dist/client/assets/{settings.connections-D1UxckE0.js → settings.connections-BPVLazeK.js} +2 -2
  205. package/dist/client/assets/{settings.data-controls-lPiIwMgc.js → settings.data-controls-CIzGvqCI.js} +2 -2
  206. package/dist/client/assets/{settings.decisions-D97jIUyr.js → settings.decisions-CU-6rIpn.js} +2 -2
  207. package/dist/client/assets/{settings.designs-B473PRvt.js → settings.designs-DHYhhG4k.js} +2 -2
  208. package/dist/client/assets/{settings.diagnostics-DDOaOIDg.js → settings.diagnostics-csgW1_E8.js} +2 -2
  209. package/dist/client/assets/{settings.general-qzEOE2zF.js → settings.general-CeBkrL9-.js} +2 -2
  210. package/dist/client/assets/{settings.integrations-D6ctQ9WI.js → settings.integrations-DqSYBosl.js} +2 -2
  211. package/dist/client/assets/{settings.keybindings-BL57H4sD.js → settings.keybindings-C7D1i238.js} +2 -2
  212. package/dist/client/assets/{settings.open-source-licenses-DaS82UhN.js → settings.open-source-licenses-6oFDgAt7.js} +2 -2
  213. package/dist/client/assets/{settings.plugins-DnS3RrT2.js → settings.plugins-DfM65Xio.js} +2 -2
  214. package/dist/client/assets/{settings.projects-D-ZICXey.js → settings.projects-CeoZzdMW.js} +3 -3
  215. package/dist/client/assets/{settings.providers-CFpCmv0o.js → settings.providers-BBgppyE3.js} +3 -3
  216. package/dist/client/assets/{settings.scheduled-tasks-IEAC3STn.js → settings.scheduled-tasks-Csi8wfij.js} +2 -2
  217. package/dist/client/assets/{settings.snap-shot-BaOFk9WR.js → settings.snap-shot-BdVdSIJy.js} +2 -2
  218. package/dist/client/assets/{settings.source-control-BW16AA5z.js → settings.source-control-Bme3qg7j.js} +2 -2
  219. package/dist/client/assets/{settings.storage-D4vBYBRP.js → settings.storage-DTcg-0aj.js} +2 -2
  220. package/dist/client/assets/{settingsLayout-CFQx1XDM.js → settingsLayout-4ySvFdXb.js} +2 -2
  221. package/dist/client/assets/{sidebar-C1E4GqL6.js → sidebar-CHDwV4Ca.js} +2 -2
  222. package/dist/client/assets/{sidebarProjectGrouping-9cUrCOXH.js → sidebarProjectGrouping-BcOVY8p-.js} +2 -2
  223. package/dist/client/assets/{skeleton-BCpBrYxh.js → skeleton-BcLPbojY.js} +2 -2
  224. package/dist/client/assets/{sourceControl-DwJWPP0h.js → sourceControl-CPrl7cyO.js} +2 -2
  225. package/dist/client/assets/{sourceControlClients-BBJW7ra4.js → sourceControlClients-oNOd36Cq.js} +2 -2
  226. package/dist/client/assets/{spinner-CSTrcxhP.js → spinner-_ourbdVb.js} +2 -2
  227. package/dist/client/assets/{terminal-links-D18LpQ1T.js → terminal-links-DuZi4b83.js} +2 -2
  228. package/dist/client/assets/{terminalSessions-C2NUFncF.js → terminalSessions-D0vbdqqx.js} +2 -2
  229. package/dist/client/assets/{textarea-R4UQ47Ns.js → textarea-DlXXDHPJ.js} +2 -2
  230. package/dist/client/assets/{themePalette-neUNWCzK.js → themePalette-VIM7Gehx.js} +2 -2
  231. package/dist/client/assets/{toast-B84QdqqM.js → toast-DXWclCrr.js} +2 -2
  232. package/dist/client/assets/{toggle-BH5BGBcD.js → toggle-Dofc34s2.js} +2 -2
  233. package/dist/client/assets/{toggle-group-Di3SFV73.js → toggle-group-CYKsfBbD.js} +2 -2
  234. package/dist/client/assets/{tooltip-D-GRl-oZ.js → tooltip-CY3W5y-f.js} +2 -2
  235. package/dist/client/assets/{uiStateStore-xSkh4_PU.js → uiStateStore-CdkBStdp.js} +2 -2
  236. package/dist/client/assets/{usage-DUdXloVo.js → usage-DQcgd75_.js} +2 -2
  237. package/dist/client/assets/{usageAccess-DSLF-sRE.js → usageAccess-CCSxXl9X.js} +2 -2
  238. package/dist/client/assets/{usageFormat-Bzyvr9m4.js → usageFormat-ByjmRjTe.js} +2 -2
  239. package/dist/client/assets/{usageShortcuts-D6nQeRtx.js → usageShortcuts-DOWm0Vo9.js} +2 -2
  240. package/dist/client/assets/{use-atom-command-DA6OG-Qk.js → use-atom-command-vqjL7n-x.js} +2 -2
  241. package/dist/client/assets/{useAriaLabelledBy-PLuOxvFb.js → useAriaLabelledBy-B7FNFpmO.js} +2 -2
  242. package/dist/client/assets/{useHandleNewThread-Dm0SCq59.js → useHandleNewThread-BYNZXzR_.js} +2 -2
  243. package/dist/client/assets/{useLocation-Bqc94klS.js → useLocation-B_XV0lDx.js} +2 -2
  244. package/dist/client/assets/{useNavigate-DdjG4MB_.js → useNavigate-BWqAWfiZ.js} +2 -2
  245. package/dist/client/assets/{useNavigateBack-sP0LsL3p.js → useNavigateBack-C52nbvbb.js} +2 -2
  246. package/dist/client/assets/{useP4ConnectAuthPrompt-C9d7n33S.js → useP4ConnectAuthPrompt-DKhdNYj8.js} +2 -2
  247. package/dist/client/assets/{useParams-DZQvRQLJ.js → useParams-ekGanxxb.js} +2 -2
  248. package/dist/client/assets/{usePermissionStatus-BzfAUU9X.js → usePermissionStatus-CWV_yoZe.js} +2 -2
  249. package/dist/client/assets/{usePullRequestActions-DIjGLg1E.js → usePullRequestActions-DxtkLQ5D.js} +2 -2
  250. package/dist/client/assets/{useRegisterFieldControl-CyBVe0G0.js → useRegisterFieldControl-BAJIcFiO.js} +2 -2
  251. package/dist/client/assets/{useScopedModelAvailability-D4n22Nmm.js → useScopedModelAvailability-815e0x20.js} +2 -2
  252. package/dist/client/assets/{useSettings-CaJMqrvF.js → useSettings-gPlpTIWi.js} +2 -2
  253. package/dist/client/assets/{utils-BoMYW9A3.js → utils-DhUt689t.js} +2 -2
  254. package/dist/client/assets/{vcsRefInvalidation-w_CQ3i43.js → vcsRefInvalidation-CW_MIqdt.js} +2 -2
  255. package/dist/client/assets/{welcome-BIKH3rbU.js → welcome-k7S47hyM.js} +2 -2
  256. package/dist/client/index.html +1 -1
  257. package/dist/{renderer-CveKT929.mjs → renderer-Ay-1ojn7.mjs} +2 -2
  258. package/dist/{runtime-DGGSjC6Q.mjs → runtime-bP6MSuMS.mjs} +3 -1
  259. package/package.json +2 -2
  260. package/dist/client/assets/AlertDialogRoot-9jRALQXL.js +0 -2
  261. package/dist/client/assets/Input-Cv-TKh6s.js +0 -2
  262. package/dist/client/assets/JZOYTAAL-CB_B_Rei.js +0 -1
  263. package/dist/client/assets/settings.archived-FtcZf_Ug.js +0 -2
@@ -1,2 +1,2 @@
1
- import{n as e}from"./jsx-runtime-BnjsACtP.js";import{$x as t,CC as n,DS as r,Ex as i,Fx as a,MC as o,NC as s,PC as ee,TC as c,Tx as l,U_ as u,Uc as d,Ux as f,Xx as p,as as m,bC as h,cE as g,eE as _,eT as v,is as y,jC as b,kw as te,kx as ne,lS as x,ps as S,rs as C,sC as w,sv as T,uC as E,wx as D,yS as O}from"./utils-BoMYW9A3.js";import{N as k,_t as A,k as j,qt as M}from"./runtime-DR7JxgbQ.js";import{Z as N,at as P,et as F,nt as I,rt as L,tt as R}from"./entities-Bqo0n1Pb.js";import{t as z}from"./runtime-d6B1vJeH.js";import{at as B}from"./useSettings-CaJMqrvF.js";import{t as V}from"./session-C949OsEI.js";import{n as re}from"./query-d1pQlqP0.js";var H=e(),U=`~effect/PartitionedSemaphore`,W=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[U]:U,capacity:t,available:w(t),take:()=>n,release:()=>w(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>i(e)};let a=t,l=0,u=b(),d=u[Symbol.iterator](),m=!1,y=0,x=e=>{if(e>0&&(y+=e),!m){m=!0;try{for(;y>0&&l>0;){let e=d.next();if(e.done&&(d=u[Symbol.iterator](),e=d.next(),e.done))break;let t=e.value[1].values().next().value;t!==void 0&&(--t.permits,--l,--y,t.permits===0&&t.resume())}}finally{m=!1}}return l===0&&(a=Math.min(t,a+y),y=0),a},S=(e,i)=>i<=0?n:t<i?r:c(t=>a>=i?(a-=i,v(t,e=>{te(e)&&x(i)}),n):ne(t=>{if(a>=i){t(S(e,i));return}let r=i-a;a>0&&(a=0),l+=r;let c=_(o(u,e),()=>{let t=new Set;return ee(u,e,t),t}),d={permits:r,resume:()=>{f(),t(n)}},f=()=>{c.delete(d)&&c.size===0&&s(u,e)};return c.add(d),E(()=>{f(),l-=d.permits,x(i-d.permits)})})),C=(e,t)=>n=>{if(t<=0)return n;let r=S(e,t);return h(e=>p(e(r),()=>f(e(n),E(()=>{x(t)}))))},T=e=>e<=0?!0:t<e||a<e?!1:(a-=e,!0);return{[U]:U,capacity:t,available:E(()=>a),take:S,release:e=>E(()=>x(e)),withPermits:C,withPermit:e=>C(e,1),withPermitsIfAvailable:e=>t=>e<=0?i(t):c(n=>T(e)?(v(n,()=>{x(e)}),i(t)):w(g()))}};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:T(e.session,u),isPending:!1,error:null}}function K(e,t=``,n=!0){let r=n&&P(e,t),i=r?F(e):``;return{isBrowsing:r,directoryPath:i,filterQuery:r&&!L(e)?R(e):``,parentPath:r?I(i):null,canBrowseUp:r&&N(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:V.sessionStateAtom(e),t[0]=e,t[1]=n);let r=re(n),i=B(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=C(e=>m({revision:0,persistedCacheReadable:!0}).pipe(y,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 n=yield*M;yield*$(t.environmentId,x(function*(){le(e,t,yield*n.clearVcsRefs(t.environmentId).pipe(l(!0),a(e=>O(`Could not remove invalidated cached Git refs.`).pipe(D({environmentId:t.environmentId,cwd:t.cwd,...A(e)}),l(!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-w_CQ3i43.js.map
1
+ import{n as e}from"./jsx-runtime-BnjsACtP.js";import{$x as t,CC as n,DS as r,Ex as i,Fx as a,MC as o,NC as s,PC as ee,TC as c,Tx as l,U_ as u,Uc as d,Ux as f,Xx as p,as as m,bC as h,cE as g,eE as _,eT as v,is as y,jC as b,kw as te,kx as ne,lS as x,ps as S,rs as C,sC as w,sv as T,uC as E,wx as D,yS as O}from"./utils-DhUt689t.js";import{N as k,_t as A,k as j,qt as M}from"./runtime-OeWFs5Hf.js";import{Z as N,at as P,et as F,nt as I,rt as L,tt as R}from"./entities-B8Vupv5g.js";import{t as z}from"./runtime-Ca_Z-vg5.js";import{at as B}from"./useSettings-gPlpTIWi.js";import{t as V}from"./session-BxUdP61p.js";import{n as re}from"./query-CfGzD8v6.js";var H=e(),U=`~effect/PartitionedSemaphore`,W=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[U]:U,capacity:t,available:w(t),take:()=>n,release:()=>w(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>i(e)};let a=t,l=0,u=b(),d=u[Symbol.iterator](),m=!1,y=0,x=e=>{if(e>0&&(y+=e),!m){m=!0;try{for(;y>0&&l>0;){let e=d.next();if(e.done&&(d=u[Symbol.iterator](),e=d.next(),e.done))break;let t=e.value[1].values().next().value;t!==void 0&&(--t.permits,--l,--y,t.permits===0&&t.resume())}}finally{m=!1}}return l===0&&(a=Math.min(t,a+y),y=0),a},S=(e,i)=>i<=0?n:t<i?r:c(t=>a>=i?(a-=i,v(t,e=>{te(e)&&x(i)}),n):ne(t=>{if(a>=i){t(S(e,i));return}let r=i-a;a>0&&(a=0),l+=r;let c=_(o(u,e),()=>{let t=new Set;return ee(u,e,t),t}),d={permits:r,resume:()=>{f(),t(n)}},f=()=>{c.delete(d)&&c.size===0&&s(u,e)};return c.add(d),E(()=>{f(),l-=d.permits,x(i-d.permits)})})),C=(e,t)=>n=>{if(t<=0)return n;let r=S(e,t);return h(e=>p(e(r),()=>f(e(n),E(()=>{x(t)}))))},T=e=>e<=0?!0:t<e||a<e?!1:(a-=e,!0);return{[U]:U,capacity:t,available:E(()=>a),take:S,release:e=>E(()=>x(e)),withPermits:C,withPermit:e=>C(e,1),withPermitsIfAvailable:e=>t=>e<=0?i(t):c(n=>T(e)?(v(n,()=>{x(e)}),i(t)):w(g()))}};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:T(e.session,u),isPending:!1,error:null}}function K(e,t=``,n=!0){let r=n&&P(e,t),i=r?F(e):``;return{isBrowsing:r,directoryPath:i,filterQuery:r&&!L(e)?R(e):``,parentPath:r?I(i):null,canBrowseUp:r&&N(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:V.sessionStateAtom(e),t[0]=e,t[1]=n);let r=re(n),i=B(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=C(e=>m({revision:0,persistedCacheReadable:!0}).pipe(y,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 n=yield*M;yield*$(t.environmentId,x(function*(){le(e,t,yield*n.clearVcsRefs(t.environmentId).pipe(l(!0),a(e=>O(`Could not remove invalidated cached Git refs.`).pipe(D({environmentId:t.environmentId,cwd:t.cwd,...A(e)}),l(!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-CW_MIqdt.js.map
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-DH3P2YXY.js";import{n,t as r}from"./jsx-runtime-BnjsACtP.js";import{$f as i,Cp as a,Jd as o,M_ as s,Md as c,Ms as l,My as u,Os as d,P_ as f,Qs as p,Uc as m,Uy as h,Zs as g,_b as _,as as v,dr as y,jm as b,jy as x,kd as S,l as C,ns as w,nv as T,o as E,q_ as D,rE as O,sd as k,t as A,tE as j,ts as M,zy as N}from"./utils-BoMYW9A3.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-DR7JxgbQ.js";import{$ as B,G as V,f as H,w as U}from"./entities-Bqo0n1Pb.js";import{t as W}from"./runtime-d6B1vJeH.js";import{t as G}from"./spinner-CSTrcxhP.js";import{t as K}from"./useNavigate-DdjG4MB_.js";import{t as q}from"./useLocation-Bqc94klS.js";import{i as J}from"./toast-B84QdqqM.js";import{D as ee,E as te}from"./useSettings-CaJMqrvF.js";import{f as Y}from"./server-sXApTCjZ.js";import{i as ne,n as X,o as re}from"./session-C949OsEI.js";import{t as ie}from"./query-d1pQlqP0.js";import{t as ae}from"./use-atom-command-DA6OG-Qk.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-D-GRl-oZ.js";import{t as ue}from"./input-ekYqAkUx.js";import{t as de}from"./scroll-area-yyfi3ycu.js";import{r as fe}from"./dist-B2P3f-0Q.js";import{t as pe}from"./dialog-CBBxT1gk.js";import{t as me}from"./useP4ConnectAuthPrompt-C9d7n33S.js";import{t as he}from"./CommandBlock-DcQXu_lq.js";import{t as ge}from"./checkbox-BEQFb7GO.js";import{t as _e}from"./ThreadTerminalDrawer-BQKZCFAC.js";import{i as ve}from"./terminalSessions-C2NUFncF.js";import{n as ye}from"./useHandleNewThread-Dm0SCq59.js";import{r as be,t as xe}from"./alert-DO06etEs.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-C3KgGt4z.js";import{t as we}from"./onboarding-CPgiVEVK.js";import{Gt as Te,Kr as Ee,Wt as De,Yt as Oe,_ as ke,_a as Ae,da as je,f as Me,fa as Ne,ga as Pe,ha as Fe,ma as Ie,na as Le,pa as Re}from"./main-BWh6jqG2.js";import{t as ze}from"./NoProjectsHero-B0KzU91d.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-BsFZYDgm.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-CNbTXxKb.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);if(a===void 0){t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt});continue}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=B(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:m.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=F(W,{label:`environment-data:agent-sessions:import`,tag:m.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)(w),r;return t[0]!==e||t[1]!==n?(r=v(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:j(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],M(r)}var $=e(r(),1),ut=[],dt=N.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=Oe(),[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)(Re,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(je,{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)(Ee,{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)(Ie,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Ne,{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)(ke,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:o,onSelectionChange:s,onToggleEnvironment:l,onContinue:u,onPaired:d}=e,{environments:f}=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=f.filter(h),[_,v]=(0,Z.useState)(r),[b,x]=(0,Z.useState)(!1),{ready:S,skippedIds:C}=ct(f,o),w=f.filter(e=>C.includes(e.environmentId)).map(gt),T=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{S&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&T.current?.focus()},[S]);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=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`:Te(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,j;t[4]!==n||t[5]!==b||t[6]!==l||t[7]!==o?(j=m?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:b,selectedIds:o,onToggleEnvironment:l}):null,t[4]=n,t[5]=b,t[6]=l,t[7]=o,t[8]=j):j=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(y,{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]=M,t[10]=N,t[11]=P):(M=t[9],N=t[10],P=t[11]);let F=_&&`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)(c,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==b||t[17]!==L?(R=(0,$.jsxs)(Ae,{disabled:b,render:M,children:[N,P,L]}),t[16]=b,t[17]=L,t[18]=R):R=t[18];let B;t[19]===d?B=t[20]:(B=e=>{v(!1),d(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=d,t[20]=B);let V;t[21]!==b||t[22]!==B?(V=(0,$.jsx)(Pe,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:b,setIsPairing:x,onPaired:B})})}),t[21]=b,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)(Fe,{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]!==j?(U=(0,$.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[j,H]}),t[28]=H,t[29]=j,t[30]=U):U=t[30];let W=w.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,w.join(`, `),`. You can set`,` `,w.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=!S||b,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(k,{className:`size-3.5`}),t[32]=J):J=t[32];let ee;t[33]!==u||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)(y,{className:`shrink-0 self-end`,ref:T,autoFocus:K,disabled:q,onClick:u,children:[`Continue`,J]})]}),t[33]=u,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:s}=te(),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={treatPendingAsSignedOut:!1},t[0]=l):l=t[0];let{isLoaded:u,isSignedIn:d}=fe(l),{openAuthPrompt:f}=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=_,b=p&&!!d&&h,x=r||!u,S;t[2]!==d||t[3]!==f?(S=e=>{d||(e.preventDefault(),m(!0),f())},t[2]=d,t[3]=f,t[4]=S):S=t[4];let C,w,T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(y,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),w=(0,$.jsx)(o,{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=u?d?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&&d&&`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)(c,{className:k}),t[12]=k,t[13]=j);let M;t[14]!==D||t[15]!==j||t[16]!==x||t[17]!==S?(M=(0,$.jsxs)(Ae,{disabled:x,onClick:S,render:C,children:[w,T,D,j]}),t[14]=D,t[15]=j,t[16]=x,t[17]=S,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==s||t[21]!==d||t[22]!==a||t[23]!==i?(N=d?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:s,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]=s,t[21]=d,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)(Pe,{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]!==b?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Fe,{open:b,onOpenChange:m,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=b,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,l]=(0,Z.useState)(``),[u,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 b=u.length>0,x=u?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>l(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==b||t[16]!==x?(C=(0,$.jsxs)(`div`,{children:[v,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":b,"aria-describedby":x,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]=b,t[16]=x,t[17]=C):C=t[17];let w;t[18]===u?w=t[19]:(w=u?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:u})}):null,t[18]=u,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Ae,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(c,{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)(y,{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)(Pe,{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)(Fe,{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)(k,{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)(y,{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=M(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=M(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,T),_,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 b;t[9]===a?b=t[10]:(b=Ue(a),t[9]=a,t[10]=b);let x=b,S,C,w,E;if(t[11]!==x||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]!==x||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:x.get(e),instanceId:x.get(e)?.instanceId}]},t[23]=x,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],w=i.map(o),t[11]=x,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]=E}else S=t[19],C=t[20],w=t[21],E=t[22];let D;t[38]!==C||t[39]!==w?(D=(0,$.jsx)(`div`,{className:C,children:w}),t[38]=C,t[39]=w,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)(y,{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:o,terminalOpen:c,onOpenTerminal:l}=e,u=ne(i,T),d=ae(Y.updateSettings,`Codex setup settings`),p;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(p=n?.instanceId??a?.instanceId??f(s.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=p):p=t[2];let m=p,h=o.settings,g;t[3]!==n||t[4]!==m||t[5]!==h.providerInstances?(g=h.providerInstances[m]??{driver:s.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:i,terminalAvailable:a,onOpenTerminal:o}=e,c;t[0]===n?c=t[1]:(c=Se.get(s.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=s.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,x=m!==`ready`&&f.detail?` · ${f.detail}`:``,C;t[13]!==v||t[14]!==x?(C=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[v,x]}),t[13]=v,t[14]=x,t[15]=C):C=t[15];let w;t[16]!==_||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,C]}),t[16]=_,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==o||t[20]!==m||t[21]!==f||t[22]!==a||t[23]!==i?(T=(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)(S,{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)(y,{size:`xs`,variant:`ghost`,onClick:o,disabled:i||!a,children:[(0,$.jsx)(b,{className:`size-3.5`}),m===`signIn`?`Sign in`:`Install`]})}),t[19]=o,t[20]=m,t[21]=f,t[22]=a,t[23]=i,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==g?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[g,w,T]}),t[25]=w,t[26]=T,t[27]=g,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,T),[f]=l(Le,!1,h),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={reportFailure:!1},t[0]=m):m=t[0];let g=ae(ve.open,m),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[1]=_):_=t[1];let v=ae(ve.write,_),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={reportFailure:!1},t[2]=b):b=t[2];let x=ae(ve.close,b),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let w=(0,Z.useRef)(S),E=(0,Z.useRef)(0),D=(0,Z.useRef)(null),O;t[4]===o?O=t[5]:(O=()=>`onboarding-${o}-${C()}`,t[4]=o,t[5]=O);let[k]=(0,Z.useState)(O),A;t[6]===s?A=t[7]:(A=p(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]!==x||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==g||t[13]!==u||t[14]!==k||t[15]!==v?(L=()=>{let e=E.current+1;return E.current=e,D.current=e,F(`preparing`),w.current=w.current.then(async()=>{if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`openFailed`);return}if((await g({environmentId:s,input:{threadId:dt,terminalId:k,cwd:a,providerInstanceId:u}}))._tag!==`Success`){D.current===e&&F(`openFailed`);return}if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`writeFailed`);return}let t=await v({environmentId:s,input:{threadId:dt,terminalId:k,data:i}});D.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{D.current===e&&(D.current=null),w.current=w.current.then(async()=>{X(s,`terminal:operate`)&&await x({environmentId:s,input:{threadId:dt,terminalId:k,deleteHistory:!0}})})}},t[8]=x,t[9]=i,t[10]=a,t[11]=s,t[12]=g,t[13]=u,t[14]=k,t[15]=v,t[16]=L):L=t[16];let R;t[17]!==x||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==g||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==v?(R=[x,i,a,s,g,u,M,k,v],t[17]=x,t[18]=i,t[19]=a,t[20]=s,t[21]=g,t[22]=u,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)(y,{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)(y,{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]!==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: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]=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:a}=e,{environments:o}=te(),s=re(n,D),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=U(),[p,m]=(0,Z.useState)(null),h=(0,Z.useRef)(``),_=(0,Z.useRef)(0),[v,b]=(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),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=new Map,t[3]=w):w=t[3];let T=(0,Z.useRef)(w),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]!==v||t[9]!==a||t[10]!==f||t[11]!==i?(I=()=>{v!==null&&f.some(e=>e.id===v.projectId&&e.environmentId===v.environmentId)&&(b(null),a(v,h.current,_.current).then(e=>{e||i(!1)}))},F=[v,a,f,i],t[8]=v,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:B}=R,W;t[16]!==B||t[17]!==p?(W=p??new Set(B.map(It)),t[16]=B,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(k.current,T.current,C.current);if(e===void 0){a(void 0,h.current,_.current);return}i(!0),b(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),h.current=``,_.current=0,k.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(H(),e,n);if(r===null){let t=u.get(n.key);if(t===void 0){let e=E();t={projectId:e,commandId:x.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&&T.current.set(n.key,g(e,r)),i.value.skippedCount===0&&(f+=1,c.set(n.key,g(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?h.current=`Imported ${p} ${p===1?`thread`:`threads`}. ${m} ${m===1?`thread`:`threads`} could not be imported.`:m>0?h.current=`${m} ${m===1?`thread could`:`threads could`} not be imported.`:p>0?h.current=`Imported ${p} ${p===1?`thread`:`threads`}. Some thread history could not be imported.`:h.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)(y,{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)(y,{variant:`ghost`,size:`xs`,disabled:r||q.length===z.length,onClick:()=>m(new Set(z.map(jt))),children:`Select all`}),(0,$.jsx)(y,{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)(y,{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)(y,{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)(y,{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,D)}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,l;t[2]!==i||t[3]!==r?(l=(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]=l):l=t[4];let u=l,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]!==u){let e;t[14]!==r||t[15]!==u?(e=e=>(0,$.jsx)(Bt,{group:e,selectedKeys:r,onToggle:u},e.key),t[14]=r,t[15]=u,t[16]=e):e=t[16],p=o.map(e),t[10]=o,t[11]=r,t[12]=u,t[13]=p}else p=t[13];let m;t[17]!==s||t[18]!==f||t[19]!==r||t[20]!==u?(m=s.length>0?(0,$.jsxs)(Fe,{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=>u(s.map(zt),e===!0)}),(0,$.jsxs)(Ae,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(c,{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)(Pe,{children:s.map(e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>u([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=f,t[19]=r,t[20]=u,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,l=n.candidates.length===1,u=n.candidates[0];if(l&&u!==void 0){let e=n.label,a=u.path,o;t[6]!==u.key||t[7]!==r?(o=r.has(u.key),t[6]=u.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==u.key?(s=e=>i([u.key],e),t[9]=i,t[10]=u.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==u||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(Wt,{candidate:u,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=u,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)(c,{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)(Ae,{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)(Pe,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Fe,{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 o=a,c=o===null?``:o.suffix===null?`now`:o.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:s.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:s.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=_(u);function Jt(){let e=(0,Q.c)(14),{authGateState:t}=Me.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:`)?O(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=>{if(u(!0),e!==void 0){await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}));return}await 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-BIKH3rbU.js.map
1
+ import{a as e,t}from"./react-DH3P2YXY.js";import{n,t as r}from"./jsx-runtime-BnjsACtP.js";import{$f as i,Cp as a,Jd as o,M_ as s,Md as c,Ms as l,My as u,Os as d,P_ as f,Qs as p,Uc as m,Uy as h,Zs as g,_b as _,as as v,dr as y,jm as b,jy as x,kd as S,l as C,ns as w,nv as T,o as E,q_ as D,rE as O,sd as k,t as A,tE as j,ts as M,zy as N}from"./utils-DhUt689t.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-OeWFs5Hf.js";import{$ as B,G as V,f as H,w as U}from"./entities-B8Vupv5g.js";import{t as W}from"./runtime-Ca_Z-vg5.js";import{t as G}from"./spinner-_ourbdVb.js";import{t as K}from"./useNavigate-BWqAWfiZ.js";import{t as q}from"./useLocation-B_XV0lDx.js";import{i as J}from"./toast-DXWclCrr.js";import{D as ee,E as te}from"./useSettings-gPlpTIWi.js";import{f as Y}from"./server-6nKYyc8r.js";import{i as ne,n as X,o as re}from"./session-BxUdP61p.js";import{t as ie}from"./query-CfGzD8v6.js";import{t as ae}from"./use-atom-command-vqjL7n-x.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-CY3W5y-f.js";import{t as ue}from"./input-BYd74ook.js";import{t as de}from"./scroll-area-BNQKEZbp.js";import{r as fe}from"./dist-oE_MNxpZ.js";import{t as pe}from"./dialog-BRtKKGzk.js";import{t as me}from"./useP4ConnectAuthPrompt-DKhdNYj8.js";import{t as he}from"./CommandBlock-6rjypfVF.js";import{t as ge}from"./checkbox-BJhN1L_L.js";import{t as _e}from"./ThreadTerminalDrawer-DHoyxd6-.js";import{i as ve}from"./terminalSessions-D0vbdqqx.js";import{n as ye}from"./useHandleNewThread-BYNZXzR_.js";import{r as be,t as xe}from"./alert-BN-r9V4f.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-DU3PVHJW.js";import{t as we}from"./onboarding-BPkAEHBV.js";import{Gt as Te,Kr as Ee,Wt as De,Yt as Oe,_ as ke,_a as Ae,da as je,f as Me,fa as Ne,ga as Pe,ha as Fe,ma as Ie,na as Le,pa as Re}from"./main-VfCRP294.js";import{t as ze}from"./NoProjectsHero-CMqIlSNl.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-Dr_NyHjE.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-g6_GE4bw.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);if(a===void 0){t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt});continue}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=B(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:m.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=F(W,{label:`environment-data:agent-sessions:import`,tag:m.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)(w),r;return t[0]!==e||t[1]!==n?(r=v(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:j(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],M(r)}var $=e(r(),1),ut=[],dt=N.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=Oe(),[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)(Re,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(je,{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)(Ee,{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)(Ie,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Ne,{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)(ke,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:o,onSelectionChange:s,onToggleEnvironment:l,onContinue:u,onPaired:d}=e,{environments:f}=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=f.filter(h),[_,v]=(0,Z.useState)(r),[b,x]=(0,Z.useState)(!1),{ready:S,skippedIds:C}=ct(f,o),w=f.filter(e=>C.includes(e.environmentId)).map(gt),T=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{S&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&T.current?.focus()},[S]);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=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`:Te(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,j;t[4]!==n||t[5]!==b||t[6]!==l||t[7]!==o?(j=m?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:b,selectedIds:o,onToggleEnvironment:l}):null,t[4]=n,t[5]=b,t[6]=l,t[7]=o,t[8]=j):j=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(y,{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]=M,t[10]=N,t[11]=P):(M=t[9],N=t[10],P=t[11]);let F=_&&`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)(c,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==b||t[17]!==L?(R=(0,$.jsxs)(Ae,{disabled:b,render:M,children:[N,P,L]}),t[16]=b,t[17]=L,t[18]=R):R=t[18];let B;t[19]===d?B=t[20]:(B=e=>{v(!1),d(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=d,t[20]=B);let V;t[21]!==b||t[22]!==B?(V=(0,$.jsx)(Pe,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:b,setIsPairing:x,onPaired:B})})}),t[21]=b,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)(Fe,{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]!==j?(U=(0,$.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[j,H]}),t[28]=H,t[29]=j,t[30]=U):U=t[30];let W=w.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,w.join(`, `),`. You can set`,` `,w.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=!S||b,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(k,{className:`size-3.5`}),t[32]=J):J=t[32];let ee;t[33]!==u||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)(y,{className:`shrink-0 self-end`,ref:T,autoFocus:K,disabled:q,onClick:u,children:[`Continue`,J]})]}),t[33]=u,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:s}=te(),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={treatPendingAsSignedOut:!1},t[0]=l):l=t[0];let{isLoaded:u,isSignedIn:d}=fe(l),{openAuthPrompt:f}=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=_,b=p&&!!d&&h,x=r||!u,S;t[2]!==d||t[3]!==f?(S=e=>{d||(e.preventDefault(),m(!0),f())},t[2]=d,t[3]=f,t[4]=S):S=t[4];let C,w,T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,$.jsx)(y,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),w=(0,$.jsx)(o,{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=u?d?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&&d&&`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)(c,{className:k}),t[12]=k,t[13]=j);let M;t[14]!==D||t[15]!==j||t[16]!==x||t[17]!==S?(M=(0,$.jsxs)(Ae,{disabled:x,onClick:S,render:C,children:[w,T,D,j]}),t[14]=D,t[15]=j,t[16]=x,t[17]=S,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==s||t[21]!==d||t[22]!==a||t[23]!==i?(N=d?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:s,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]=s,t[21]=d,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)(Pe,{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]!==b?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Fe,{open:b,onOpenChange:m,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=b,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,l]=(0,Z.useState)(``),[u,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 b=u.length>0,x=u?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>l(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==b||t[16]!==x?(C=(0,$.jsxs)(`div`,{children:[v,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":b,"aria-describedby":x,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]=b,t[16]=x,t[17]=C):C=t[17];let w;t[18]===u?w=t[19]:(w=u?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:u})}):null,t[18]=u,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Ae,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(c,{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)(y,{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)(Pe,{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)(Fe,{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)(k,{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)(y,{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=M(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=M(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,T),_,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 b;t[9]===a?b=t[10]:(b=Ue(a),t[9]=a,t[10]=b);let x=b,S,C,w,E;if(t[11]!==x||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]!==x||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:x.get(e),instanceId:x.get(e)?.instanceId}]},t[23]=x,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],w=i.map(o),t[11]=x,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]=E}else S=t[19],C=t[20],w=t[21],E=t[22];let D;t[38]!==C||t[39]!==w?(D=(0,$.jsx)(`div`,{className:C,children:w}),t[38]=C,t[39]=w,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)(y,{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:o,terminalOpen:c,onOpenTerminal:l}=e,u=ne(i,T),d=ae(Y.updateSettings,`Codex setup settings`),p;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(p=n?.instanceId??a?.instanceId??f(s.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=p):p=t[2];let m=p,h=o.settings,g;t[3]!==n||t[4]!==m||t[5]!==h.providerInstances?(g=h.providerInstances[m]??{driver:s.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:i,terminalAvailable:a,onOpenTerminal:o}=e,c;t[0]===n?c=t[1]:(c=Se.get(s.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=s.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,x=m!==`ready`&&f.detail?` · ${f.detail}`:``,C;t[13]!==v||t[14]!==x?(C=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[v,x]}),t[13]=v,t[14]=x,t[15]=C):C=t[15];let w;t[16]!==_||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[_,C]}),t[16]=_,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==o||t[20]!==m||t[21]!==f||t[22]!==a||t[23]!==i?(T=(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)(S,{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)(y,{size:`xs`,variant:`ghost`,onClick:o,disabled:i||!a,children:[(0,$.jsx)(b,{className:`size-3.5`}),m===`signIn`?`Sign in`:`Install`]})}),t[19]=o,t[20]=m,t[21]=f,t[22]=a,t[23]=i,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==g?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[g,w,T]}),t[25]=w,t[26]=T,t[27]=g,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,T),[f]=l(Le,!1,h),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={reportFailure:!1},t[0]=m):m=t[0];let g=ae(ve.open,m),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[1]=_):_=t[1];let v=ae(ve.write,_),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={reportFailure:!1},t[2]=b):b=t[2];let x=ae(ve.close,b),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let w=(0,Z.useRef)(S),E=(0,Z.useRef)(0),D=(0,Z.useRef)(null),O;t[4]===o?O=t[5]:(O=()=>`onboarding-${o}-${C()}`,t[4]=o,t[5]=O);let[k]=(0,Z.useState)(O),A;t[6]===s?A=t[7]:(A=p(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]!==x||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==g||t[13]!==u||t[14]!==k||t[15]!==v?(L=()=>{let e=E.current+1;return E.current=e,D.current=e,F(`preparing`),w.current=w.current.then(async()=>{if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`openFailed`);return}if((await g({environmentId:s,input:{threadId:dt,terminalId:k,cwd:a,providerInstanceId:u}}))._tag!==`Success`){D.current===e&&F(`openFailed`);return}if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`writeFailed`);return}let t=await v({environmentId:s,input:{threadId:dt,terminalId:k,data:i}});D.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{D.current===e&&(D.current=null),w.current=w.current.then(async()=>{X(s,`terminal:operate`)&&await x({environmentId:s,input:{threadId:dt,terminalId:k,deleteHistory:!0}})})}},t[8]=x,t[9]=i,t[10]=a,t[11]=s,t[12]=g,t[13]=u,t[14]=k,t[15]=v,t[16]=L):L=t[16];let R;t[17]!==x||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==g||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==v?(R=[x,i,a,s,g,u,M,k,v],t[17]=x,t[18]=i,t[19]=a,t[20]=s,t[21]=g,t[22]=u,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)(y,{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)(y,{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]!==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: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]=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:a}=e,{environments:o}=te(),s=re(n,D),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=U(),[p,m]=(0,Z.useState)(null),h=(0,Z.useRef)(``),_=(0,Z.useRef)(0),[v,b]=(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),w;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(w=new Map,t[3]=w):w=t[3];let T=(0,Z.useRef)(w),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]!==v||t[9]!==a||t[10]!==f||t[11]!==i?(I=()=>{v!==null&&f.some(e=>e.id===v.projectId&&e.environmentId===v.environmentId)&&(b(null),a(v,h.current,_.current).then(e=>{e||i(!1)}))},F=[v,a,f,i],t[8]=v,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:B}=R,W;t[16]!==B||t[17]!==p?(W=p??new Set(B.map(It)),t[16]=B,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(k.current,T.current,C.current);if(e===void 0){a(void 0,h.current,_.current);return}i(!0),b(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),h.current=``,_.current=0,k.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(H(),e,n);if(r===null){let t=u.get(n.key);if(t===void 0){let e=E();t={projectId:e,commandId:x.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&&T.current.set(n.key,g(e,r)),i.value.skippedCount===0&&(f+=1,c.set(n.key,g(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?h.current=`Imported ${p} ${p===1?`thread`:`threads`}. ${m} ${m===1?`thread`:`threads`} could not be imported.`:m>0?h.current=`${m} ${m===1?`thread could`:`threads could`} not be imported.`:p>0?h.current=`Imported ${p} ${p===1?`thread`:`threads`}. Some thread history could not be imported.`:h.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)(y,{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)(y,{variant:`ghost`,size:`xs`,disabled:r||q.length===z.length,onClick:()=>m(new Set(z.map(jt))),children:`Select all`}),(0,$.jsx)(y,{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)(y,{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)(y,{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)(y,{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,D)}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,l;t[2]!==i||t[3]!==r?(l=(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]=l):l=t[4];let u=l,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]!==u){let e;t[14]!==r||t[15]!==u?(e=e=>(0,$.jsx)(Bt,{group:e,selectedKeys:r,onToggle:u},e.key),t[14]=r,t[15]=u,t[16]=e):e=t[16],p=o.map(e),t[10]=o,t[11]=r,t[12]=u,t[13]=p}else p=t[13];let m;t[17]!==s||t[18]!==f||t[19]!==r||t[20]!==u?(m=s.length>0?(0,$.jsxs)(Fe,{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=>u(s.map(zt),e===!0)}),(0,$.jsxs)(Ae,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(c,{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)(Pe,{children:s.map(e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>u([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=f,t[19]=r,t[20]=u,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,l=n.candidates.length===1,u=n.candidates[0];if(l&&u!==void 0){let e=n.label,a=u.path,o;t[6]!==u.key||t[7]!==r?(o=r.has(u.key),t[6]=u.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==u.key?(s=e=>i([u.key],e),t[9]=i,t[10]=u.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==u||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(Wt,{candidate:u,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=u,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)(c,{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)(Ae,{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)(Pe,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Fe,{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 o=a,c=o===null?``:o.suffix===null?`now`:o.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:s.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:s.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=_(u);function Jt(){let e=(0,Q.c)(14),{authGateState:t}=Me.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:`)?O(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=>{if(u(!0),e!==void 0){await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}));return}await 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-k7S47hyM.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-B1djVqM4.js"></script>
387
+ <script type="module" crossorigin src="/assets/index-BwdieRvq.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-DGGSjC6Q.mjs";
3
+ import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-bP6MSuMS.mjs";
4
4
  import { Canvas, DOMMatrix as DOMMatrix$1, FontLibrary, Image, Path2D } from "skia-canvas";
5
5
  //#region ../../node_modules/.pnpm/konva@10.7.1_skia-canvas@3.0.8/node_modules/konva/lib/Global.js
6
6
  /*
@@ -17699,4 +17699,4 @@ function createRenderer(width, height) {
17699
17699
  //#endregion
17700
17700
  export { createRenderer, rasterizeSvg, renderDesignExport, renderDesignPng };
17701
17701
 
17702
- //# sourceMappingURL=renderer-CveKT929.mjs.map
17702
+ //# sourceMappingURL=renderer-Ay-1ojn7.mjs.map
@@ -20092,6 +20092,7 @@ const ProviderModelPreferences = Record(ProviderInstanceId, Struct({
20092
20092
  const ClientSettingsSchema = Struct({
20093
20093
  notificationMode: NotificationMode.pipe(withDecodingDefault(succeed("off"))),
20094
20094
  inAppNotificationsEnabled: Boolean.pipe(withDecodingDefault(succeed(false))),
20095
+ wakeScreenOnThreadEvents: Boolean.pipe(withDecodingDefault(succeed(false))),
20095
20096
  diffColorScheme: DiffColorScheme.pipe(withDecodingDefault(succeed("red-green"))),
20096
20097
  chatWidth: ChatWidth.pipe(withDecodingDefault(succeed("comfortable"))),
20097
20098
  loadBalancingEnabled: Boolean.pipe(withDecodingDefault(succeed(false))),
@@ -21084,6 +21085,7 @@ function requiredScopesForProjectMutation(mutation) {
21084
21085
  Struct({
21085
21086
  notificationMode: optionalKey(NotificationMode),
21086
21087
  inAppNotificationsEnabled: optionalKey(Boolean),
21088
+ wakeScreenOnThreadEvents: optionalKey(Boolean),
21087
21089
  diffColorScheme: optionalKey(DiffColorScheme),
21088
21090
  chatWidth: optionalKey(ChatWidth),
21089
21091
  loadBalancingEnabled: optionalKey(Boolean),
@@ -32031,4 +32033,4 @@ function semanticDiff(before, after) {
32031
32033
  //#endregion
32032
32034
  export { WsSelfImproveSubscribeSettingsRpc as $, PreviewControlRequiredError as $a, Project as $c, get$1 as $d, AuthEnvironmentScopes as $f, ExternalLauncherBrowserSpawnError as $i, ChatFileAttachment as $l, TrimmedNonEmptyString as $m, PreviewAutomationUnavailableError as $n, BUILT_IN_BROWSER_PROFILES as $o, DEFAULT_MODEL as $p, OrchestratorMcpCreateThreadsInput as $r, OrchestrationV2CheckpointScopeJson as $s, getStreamSchemas as $t, isPersistedFile as $u, ComputerUseBrowserChatRequest as A, PROJECT_SCOPED_SERVER_SETTING_KEYS as Aa, OrchestrationV2SearchThreadInput as Ac, stream as Ad, uint8Array$1 as Af, ApplicationEventMetadata as Ai, pullRequestProviderRequirement as Al, ContextTransferId as Am, PreviewAutomationRecordingArtifact as An, DeviceOperationError as Ao, getWithHeadersAnnotation as Ap, AgentSessionImportSource as Ar, RelayCloudEnvironmentHealthProofPayload as As, DesignHandoffRequest as At, use as Au, clientRpcRequiredScopes as B, providerInstanceConfigEnabledFlag as Ba, OrchestrationV2TurnItem as Bc, inspect as Bd, systemError as Bf, VcsListRefsInput as Bi, VcsProcessOutputLimitError as Bl, PositiveInt as Bm, PreviewAutomationResultTooLargeError as Bn, DeviceToolUnavailableError as Bo, decode as Bp, OrchestrationThreadSearchSource as Br, RelayProtectedError as Bs, DesignSelection as Bt, appendPreResponseHandlerUnsafe as Bu, clean as C, CompressMode as Ca, OrchestrationV2ProviderTurnJson as Cc, raw as Cd, layer$2 as Cf, OrchestratorMcpThreadWaitInput as Ci, PullRequestLinkedThreadsResult as Cl, ClientConnectionMethod as Cm, PreviewAutomationHoverInput as Cn, resolveRegistryEntryEnabled as Co, StreamSse as Cp, AssetWorkspaceRootNormalizationError as Cr, EnvironmentOperationForbiddenError as Cs, DesignServiceError as Ct, RouteContext as Cu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as D, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as Da, OrchestrationV2RuntimeRequest as Dc, setHeader as Dd, raw$1 as Df, ScheduledTask as Di, PullRequestSummary as Dl, ClientWebDeployment as Dm, PreviewAutomationNoAvailableHostError as Dn, DeviceEasAccountError as Do, getResponseEncodingSchema as Dp, AttachmentUploadSigningKeyError as Dr, connectReachabilityHelpUrl as Ds, DesignGuideReceipt as Dt, params as Du, toBytes as E, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as Ea, OrchestrationV2RunStatus as Ec, setBody as Ed, jsonUnsafe$1 as Ef, MIN_SCHEDULED_TASK_INTERVAL_MS as Ei, PullRequestState as El, ClientSurface as Em, PreviewAutomationNavigateInput as En, DeviceBootError as Eo, getResponseEncoding as Ep, AttachmentDeleteInput as Er, EnvironmentScopeRequiredError as Es, DesignApplyRequest as Et, middleware as Eu, ComputerUseHostResponse as F, ServerSettingsPatch as Fa, OrchestrationV2SubagentJson as Fc, filterStatusOk as Fd, make$16 as Ff, PROJECT_CLONE_ERROR_MAX_LENGTH as Fi, SourceControlProviderKind as Fl, MessageId as Fm, PreviewAutomationRecordingTransferError as Fn, DeviceToolListResult as Fo, isWithHeadersValue as Fp, P4_PROJECT_FILE_NAME as Fr, RelayManagedEndpointOrigin as Fs, DesignLibraryManifest as Ft, compression as Fu, WsMcpRegistryProviderSignInStartRpc as G, resolveProviderInstanceEnabled as Ga, isOrchestrationV2WorkActive as Gc, bearerToken as Gd, ThreadEnvMode as Gf, ServerProviderCompatibilityStatus as Gi, VcsRepositoryDetectionError as Gl, RawEventId as Gm, PreviewAutomationSetColorSchemeResult as Gn, deviceToolInstallMessage as Go, AcpRegistryListSessionsResult as Gp, AgentAssetKind as Gr, AUTO_WORKSPACE_NOTICE_TITLE as Gs, DesignValidateReceipt as Gt, ParsedSearchParams as Gu, WS_METHODS as H, requiredScopesForServerSettingsPatch as Ha, OrchestrationWorkflowFileError as Hc, acceptJson as Hd, ExecutionEnvironmentDescriptor as Hf, EnvironmentThemeFile as Hi, VcsProcessSpawnError as Hl, ProviderSessionId as Hm, PreviewAutomationSelectInput as Hn, EasDeviceHostConfig as Ho, encoder$2 as Hp, AgentAsset as Hr, fromApi as Hs, DesignStatusRequest as Ht, fromHeaders as Hu, ComputerUseJsInput as I, UsageLimitSourceConfig as Ia, OrchestrationV2ThreadForkSourcePoint as Ic, fromWeb as Id, BadArgument as If, GitCommandError as Ii, SourceControlRepositoryError as Il, NodeId as Im, PreviewAutomationRemoteUnavailableError as In, DeviceToolOpenInput as Io, withHeaders as Ip, PROJECT_FILE_BACKED_SETTINGS as Ir, RelayManagedEndpointRecoveryRegistrationResponse as Is, DesignProposeReceipt as It, isTracerDisabledUnsafe as Iu, WsMcpRegistryProviderSignOutRpc as J, FILL_PREVIEW_VIEWPORT as Ja, orchestrationV2RunWorkStartedAt as Jc, bodyJsonUnsafe as Jd, AuthAccessTokenType as Jf, environmentThemeFileHasColors as Ji, OrchestrationGetFullThreadDiffError as Jl, RunId as Jm, PreviewAutomationTabNotFoundError as Jn, DecisionInput as Jo, AcpRegistryProbeResult as Jp, AgentAssetWriteInput as Jr, ORCHESTRATION_V2_WS_METHODS as Js, ServerClient as Jt, schemaHeaders as Ju, WsMcpRegistryProviderSignInStateRpc as K, secretSetting as Ka, isProviderNativeSubagentThread as Kc, bodyFormData as Kd, AuthAccessReadScope as Kf, ServerProviderUpdateError as Ki, VcsUnsupportedOperationError as Kl, RpcClientId as Km, PreviewAutomationSnapshot as Kn, DECISION_MODELS as Ko, AcpRegistryOperationError as Kp, AgentAssetListFilter as Kr, AUTO_WORKSPACE_UNDECIDED_REASON as Ks, DesignValidateRequest as Kt, TypeId$8 as Ku, ComputerUseOutput as L, isUnconfiguredDefaultInstanceEnabled as La, OrchestrationV2ThreadLaunchError as Lc, matchStatus as Ld, PlatformError as Lf, GitManagerError as Li, VcsDriverKind as Ll, NonNegativeInt as Lm, PreviewAutomationRequestQueueClosedError as Ln, DeviceToolOpenResult as Lo, allShort as Lp, OrchestrationSearchThreadsError as Lr, RelayManagedEndpointRecoveryResponse as Ls, DesignProposeRequest as Lt, tracer as Lu, ComputerUseHost as M, ResponseStreamingMode as Ma, OrchestrationV2StopWorkflowInput as Mc, uint8Array as Md, FileSystem as Mf, OrchestrationDispatchCommandError as Mi, SourceControlCloneRepositoryInput as Ml, EnvironmentId as Mm, PreviewAutomationRecordingDesktopUpdateRequiredError as Mn, DevicePlatformUnavailableError as Mo, isStreamSchema$1 as Mp, AgentSessionSource as Mr, RelayEnvironmentLinkChallengeResponse as Ms, DesignImportTokensRequest as Mt, addressFormattedWith as Mu, ComputerUseHostRegistration as N, ServerSettings as Na, OrchestrationV2StoredEvent as Nc, urlParams as Nd, FileTypeId as Nf, PullRequestReviewGuide as Ni, SourceControlCloneRepositoryResult as Nl, EventId as Nm, PreviewAutomationRecordingStatus as Nn, DeviceToolCloseInput as No, isStreamUint8Array as Np, FilesystemBrowseError as Nr, RelayEnvironmentLinkResponse as Ns, DesignInspectReceipt as Nt, make$6 as Nu, COMPUTER_USE_JEV_TAKE_CODE as O, DEFAULT_SERVER_SETTINGS as Oa, OrchestrationV2RuntimeRequestJson as Oc, setHeaders as Od, stream$1 as Of, ScheduledTaskError as Oi, PullRequestUnavailableError as Ol, CommandId as Om, PreviewAutomationOpenInput as On, DeviceHostUnavailableError as Oo, getStatusErrorSchema as Op, AgentSessionImportProjectChangedError as Or, formatConnectReachable as Os, DesignGuideRequest as Ot, route as Ou, ComputerUseHostReport as P, ServerSettingsError as Pa, OrchestrationV2Subagent as Pc, TypeId$13 as Pd, WatchBackend as Pf, PullRequestReviewGuideRun as Pi, SourceControlProviderError as Pl, IsoDateTime as Pm, PreviewAutomationRecordingTooLargeError as Pn, DeviceToolError as Po, isWithHeaders as Pp, P4ProjectFile as Pr, RelayHookDeliveryProofPayload as Ps, DesignInspectRequest as Pt, TracerDisabledWhen as Pu, WsSelfImproveSetMemoryMirrorRpc as Q, PreviewClearProfileError as Qa, OrchestrationProjectShell as Qc, del$1 as Qd, AuthEnvironmentMaintainScope as Qf, EDITORS as Qi, ChatAttachmentId as Ql, ThreadId as Qm, PreviewAutomationTypeInput as Qn, resolveDecisionBackend as Qo, CustomModelSetting as Qp, OrchestratorMcpCapabilitiesResult as Qr, OrchestrationV2CheckpointJson as Qs, ClientAbort as Qt, TypeId$9 as Qu, computerUseJevStepCode as R, makeBinaryPathSetting as Ra, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as Rc, MaxBodySize as Rd, badArgument as Rf, GitPullRequestMaterializationError as Ri, VcsProcessExitError as Rl, PlanId as Rm, PreviewAutomationResizeInput as Rn, DeviceToolScreenshotResult as Ro, hasBody as Rp, OrchestrationSearchThreadsInput as Rr, RelayManagedEndpointRuntimeConfig as Rs, DesignRenderReceipt as Rt, addHeaderAttributes as Ru, anumber as S, CodexSettings as Sa, OrchestrationV2ProviderTurn as Sc, mergeCookies as Sd, report as Sf, OrchestratorMcpThreadSendResult as Si, ThreadPullRequestLinkSource as Sl, CheckpointScopeId as Sm, PreviewAutomationExecutionError as Sn, mcpProviderSupport as So, NoContent as Sp, AssetWorkspaceResolutionError as Sr, EnvironmentInternalError as Ss, DesignRpcGroup as St, HttpRouter as Su, randomBytes as T, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as Ta, OrchestrationV2RunJson as Tc, removeHeader as Td, isHttpBody as Tf, OrchestratorMcpUpdateScheduledTaskInput as Ti, PullRequestStack as Tl, ClientOs as Tm, PreviewAutomationMalformedResponseError as Tn, DeviceActionUnavailableError as To, getPayloadEncoding as Tp, AttachmentCreateUploadUrlResult as Tr, EnvironmentResourceNotFoundError as Ts, DesignApplyReceipt as Tt, cors as Tu, WsMcpRegistryProviderSignInCancelRpc as U, resolveIdleCompaction as Ua, autoWorkspaceNoticeMessage as Uc, appendUrlParams as Ud, ORCHESTRATION_PROTOCOL_HEADER as Uf, EnvironmentThemeId as Ui, VcsProcessStdinWriteError as Ul, ProviderThreadId as Um, PreviewAutomationSelectResult as Un, LOCAL_DEVICE_HOST_ID as Uo, makeParser as Up, AgentAssetFiles as Ur, getParamNames as Us, DesignStylesReceipt as Ut, toHeaders as Uu, RpcScopeAuthorization as V, requiredScopesForProjectMutation as Va, OrchestrationV2TurnItemJson as Vc, schemaBodyJson as Vd, make$17 as Vf, VcsListRefsResult as Vi, VcsProcessOutputReadError as Vl, ProjectId as Vm, PreviewAutomationScrollInput as Vn, DeviceToolVersions as Vo, decodeSchema as Vp, AGENT_ASSET_TOTAL_MAX_BYTES as Vr, annotations as Vs, DesignStatusReceipt as Vt, requestPreResponseHandlers as Vu, WsMcpRegistryProviderSignInCompleteRpc as W, resolveProjectProviderInstanceEnabled as Wa, isKnownOrchestrationV2EventType as Wc, basicAuth as Wd, ORCHESTRATION_PROTOCOL_QUERY_PARAM as Wf, ServerProvider as Wi, VcsProcessTimeoutError as Wl, ProviderTurnId as Wm, PreviewAutomationSetColorSchemeInput as Wn, LOCAL_DEVICE_HOST_LABEL as Wo, AcpRegistryListProvidersResult as Wp, AgentAssetId as Wr, toRouterPath as Ws, DesignStylesRequest as Wt, HttpServerRequest as Wu, WsSelfImproveDismissFindingsRpc as X, PREVIEW_URL_MAX_LENGTH as Xa, ToolActivityNativeAppReference as Xc, bodyText as Xd, AuthClientMetadataDeviceType as Xf, isProviderTextGenerationCapable as Xi, OrchestrationGetTurnDiffResult as Xl, ScheduledTaskId as Xm, PreviewAutomationTargetNotEditableError as Xn, ThreadDecision as Xo, resolveOfficialAcpRegistryIconUrl as Xp, ThreadMetadataMcpUpdateInput as Xr, OrchestrationV2AppThread as Xs, isWrapper as Xt, toURL as Xu, WsRpcGroup as Y, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as Ya, ToolActivityIcon as Yc, bodyStream as Yd, AuthAccessWriteScope as Yf, isProviderAvailable as Yi, OrchestrationGetTurnDiffError as Yl, RuntimeRequestId as Ym, PreviewAutomationTabTargetInput as Yn, DecisionResult as Yo, officialAcpRegistryIconUrlForAgentId as Yp, agentAssetTotalBytes as Yr, OrchestrationGetWorkflowScriptError as Ys, exitSchema as Yt, schemaSearchParams as Yu, WsSelfImproveSaveFindingsRpc as Z, PREVIEW_VIEWPORT_PRESET_IDS as Za, UsageLimitSourceError as Zc, bodyUrlParams as Zd, AuthDiagnosticsReadScope as Zf, isProviderWorkspaceSnapshotCurrent as Zi, ChatAttachment as Zl, SecretRef as Zm, PreviewAutomationTimeoutError as Zn, ThreadDecisionsReadError as Zo, ANTIGRAVITY_DEFAULT_MODEL as Zp, ThreadMetadataMcpUpdateResult as Zr, OrchestrationV2AppThreadJson as Zs, make$1 as Zt, MultipartError as Zu, sha512 as _, TerminalWriteError as _a, OrchestrationV2ProviderRetry as _c, empty as _d, CurrentErrorReporters as _f, OrchestratorMcpThreadListInput as _i, ProviderUserInputAnswers as _l, ASSISTANT_CITATION_MAX_TEXT_LENGTH as _m, PreviewAutomationControlReason as _n, McpServerName as _o, AuthTerminalReadScope as _p, AssetWorkspaceAssetInspectionError as _r, EnvironmentHttpCommonError as _s, SelfImproveSaveFindingsResult as _t, getSuccessSchemas as _u, documentContentDigest as a, ProviderSetupError as aa, OrchestrationV2DispatchCommandError as ac, Path as ad, setHeader$1 as af, fromRecordUnsafe as ah, OrchestratorMcpFailure as ai, ProjectScript as al, ModelCapabilities as am, UsageReadError as an, PreviewViewportSetting as ao, AuthMcpRegistrationError as ap, ReviewDiffFileStat as ar, DesktopAppActivationResponse as as, WORKTREE_SETUP_ERROR_MAX_LENGTH as at, getProviderAttachmentLimitError as au, aexists as b, BackgroundActivityProfileSelection as ba, OrchestrationV2ProviderThread as bc, isHttpServerResponse as bd, isIgnored as bf, OrchestratorMcpThreadReadResult as bi, ThreadPullRequestKey as bl, CheckpointId as bm, PreviewAutomationError as bn, PluginId as bo, authScopeRequiredResponse as bp, AssetWorkspaceContextResolutionError as br, EnvironmentHttpInternalServerError as bs, DesignListReceipt as bt, put as bu, parseDesign as c, TerminalCwdNotDirectoryError as ca, OrchestrationV2DomainEvent as cc, HttpServerError as cd, setUrlParams as cf, remove as ch, OrchestratorMcpRequestSecretInput as ci, ProjectUpdatePayload as cl, ProviderDriverKind as cm, ResourceMonitorCommand as cn, KeybindingRule as co, AuthOrchestrationReadScope as cp, ATTACHMENT_UPLOAD_URL_TTL_MS as cr, DESKTOP_UPDATE_RESTART_MARKER_FILE as cs, SelfImproveDecision as ct, isSecurity as cu, reviewState as d, TerminalHistoryError as da, OrchestrationV2ExecutionNodeJson as dc, ServeError as dd, HttpClientError as df, fromInputUnsafe as dh, OrchestratorMcpScheduleTaskResult as di, DEFAULT_PROVIDER_INTERACTION_MODE as dl, defaultInstanceIdForDriver as dm, PREVIEW_AUTOMATION_SERVER_OPERATIONS as dn, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as do, AuthRelayReadScope as dp, AssetGitHubMediaUrlValidationError as dr, EnvironmentAuthInvalidError as ds, SelfImproveFindings as dt, make$3 as du, ExternalLauncherCommandNotFoundError as ea, OrchestrationV2ContextHandoffJson as ec, limitsServices as ed, make$14 as ef, TrimmedString as eh, OrchestratorMcpCreateThreadsResult as ei, ProjectCreatePayload as el, DEFAULT_MODEL_BY_PROVIDER as em, isStreamSchema as en, PreviewInvalidUrlError as eo, AuthFilesystemReadScope as ep, PreviewAutomationUnsupportedClientError as er, DEFAULT_BROWSER_PROFILE_ID as es, WsSelfImproveSubscribeThreadFindingsRpc as et, ChatImageAttachment as eu, selectLayoutItems as f, TerminalNotRunningError as fa, OrchestrationV2GetShellSnapshotError as fc, causeResponse as fd, HttpClientErrorSchema as ff, OrchestratorMcpTaskCancelInput as fi, DEFAULT_RUNTIME_MODE as fl, isProviderDriverKind as fm, PREVIEW_AUTOMATION_V1_OPERATIONS as fn, ResolvedKeybindingRule as fo, AuthRelayWriteScope as fp, AssetPreviewTypeValidationError as fr, EnvironmentAuthenticatedAuth as fs, SelfImproveLabel as ft, reflect as fu, sha384 as g, TerminalSessionLookupError as ga, OrchestrationV2ProviderGoal as gc, make$12 as gd, isHttpClientError as gf, OrchestratorMcpThreadInterruptResult as gi, ProviderRequestKind as gl, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as gm, PreviewAutomationControlInterruptedError as gn, McpServerId as go, AuthTerminalOperateScope as gp, AssetSigningKeyLoadError as gr, EnvironmentHttpBadRequestError as gs, SelfImproveReviewers as gt, getPayloadSchemas as gu, sha256$1 as h, TerminalResizeError as ha, OrchestrationV2ProviderFailure as hc, HttpPlatform as hd, TransportError as hf, OrchestratorMcpThreadInterruptInput as hi, ProviderInteractionMode as hl, ReviewCommentContextRecord as hm, PreviewAutomationClientDisconnectedError as hn, McpRegistryRpcError as ho, AuthStandardClientScopes as hp, AssetProjectFaviconResolutionError as hr, EnvironmentHttpApi as hs, SelfImproveReview as ht, getErrorSchemas as hu, diagnostic as i, ExternalLauncherUnsupportedTargetError as ia, OrchestrationV2ConversationMessageJson as ic, make$8 as id, setBody$1 as if, fromInput as ih, OrchestratorMcpDeleteScheduledTaskResult as ii, ProjectReadFileError as il, MUSE_DEFAULT_MODEL as im, WorktreeMcpStatusResult as in, PreviewTabId as io, AuthMcpClientAccess as ip, McpAppRequestError as ir, DesktopAppActivationErrorCode as is, SecretRequestError as it, PersistChatAttachmentsError as iu, ComputerUseError as j, ProjectSettingsOverrides as ja, OrchestrationV2StopWorkflowError as jc, text as jd, urlParams$1 as jf, ApplicationProjectEvent as ji, resolvePullRequestAuthorFilter as jl, DpopFailureReason as jm, PreviewAutomationRecordingDeadlineExpiredError as jn, DevicePlatformAvailability as jo, isNoContent as jp, AgentSessionScanError as jr, RelayCloudMintCredentialProofPayload as js, DesignImportTokensReceipt as jt, HttpServer as ju, COMPUTER_USE_MAX_OUTPUT_CHARS as k, GitHubHost as ka, OrchestrationV2SearchThreadError as kc, setStatus as kd, text$1 as kf, ScheduledTaskWebhookDeliveryId as ki, pullRequestHostOf as kl, ContextHandoffId as km, PreviewAutomationPressInput as kn, DeviceNotFoundError as ko, getStatusSuccessSchema as kp, AgentSessionImportProjectNotFoundError as kr, RelayApi as ks, DesignHandoffReceipt as kt, serve as ku, patchNode as l, TerminalCwdNotFoundError as la, OrchestrationV2DomainEventJson as lc, RequestParseError as ld, make$15 as lf, set as lh, OrchestratorMcpRequestSecretResult as li, ProjectWriteFileError as ll, ProviderInstanceId as lm, ResourceMonitorEvent as ln, KeybindingsConfig as lo, AuthPreviewOperateScope as lp, AssetAttachmentNotFoundError as lr, DesktopBackendBootstrap as ls, SelfImproveError as lt, make$2 as lu, validateDesign as m, TerminalProviderInstanceNotFoundError as ma, OrchestrationV2PlanArtifact as mc, toResponse as md, StatusCodeError as mf, OrchestratorMcpTaskStatusInput as mi, ProviderApprovalOption as ml, OrchestrationMessageContext as mm, PreviewAutomationClickInput as mn, THREAD_JUMP_KEYBINDING_COMMANDS as mo, AuthSourceControlWriteScope as mp, AssetProjectFaviconNotFoundError as mr, EnvironmentCloudEndpointUnavailableError as ms, SelfImproveResult as mt, get as mu, canonicalSerialize as n, ExternalLauncherUnknownEditorError as na, OrchestrationV2ContextTransferJson as nc, toPersisted as nd, prependUrl as nf, CurrentRedactedNames as nh, OrchestratorMcpDelegateTaskResult as ni, ProjectMutation as nl, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as nm, WorktreeMcpHandoffInput as nn, PreviewSessionLookupError as no, AuthGrantScope as np, PreviewAutomationWaitForInput as nr, findBrowserProfile as ns, WsSelfImproveUpdateSettingsRpc as nt, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as nu, fileHash as o, ProviderUploadFeedbackError as oa, OrchestrationV2DispatchCommandResult as oc, TypeId$10 as od, setHeaders$1 as of, isHeaders as oh, OrchestratorMcpListScheduledTasksInput as oi, ProjectSearchContentsError as ol, PREFERRED_DEFAULT_CODEX_MODELS as om, DesktopHostTelemetryMessage as on, symbol as oo, AuthMcpTokenError as op, ReviewDiffPreviewSource as or, DesktopBrowserCommand as os, WORKTREE_SETUP_STAGE_ORDER as ot, isProviderSendTurnSupportedImageMimeType as ou, semanticDiff as p, TerminalProviderEnvironmentError as pa, OrchestrationV2GetThreadProjectionError as pc, symbol$1 as pd, InvalidUrlError as pf, OrchestratorMcpTaskCancelResult as pi, ProviderApprovalDecision as pl, ComposerContextRecord as pm, PREVIEW_RECORDING_STOP_TIMEOUT_MS as pn, SCRIPT_RUN_COMMAND_PATTERN as po, AuthSettingsWriteScope as pp, AssetProjectFaviconInspectionError as pr, EnvironmentAuthenticatedPrincipal as ps, SelfImproveRequest as pt, del as pu, WsMcpRegistryProviderSignInWaitRpc as q, secretSettingsFields as qa, latestProviderTurnForAttempt as qc, bodyJson as qd, AuthAccessStreamError as qf, ServerSelfUpdateError as qi, ModelSelection as ql, RunAttemptId as qm, PreviewAutomationStatus as qn, DecisionError as qo, AcpRegistryOperationErrorReason as qp, AgentAssetName as qr, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as qs, make as qt, schemaCookies as qu, computeLayout as r, ExternalLauncherUnsupportedEditorError as ra, OrchestrationV2ConversationMessage as rc, decodeField as rd, put$1 as rf, empty$3 as rh, OrchestratorMcpDeleteScheduledTaskInput as ri, ProjectMutationError as rl, MODEL_SLUG_ALIASES_BY_PROVIDER as rm, WorktreeMcpHandoffResult as rn, PreviewStreamHostSetup as ro, AuthMcpApprovalError as rp, SERVER_BROWSER_AUTOMATION_CLIENT_ID as rr, resolveBrowserProfiles as rs, WsSubscribeThreadDecisionsRpc as rt, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as ru, isConfinedRelativePath as s, DEFAULT_TERMINAL_ID as sa, OrchestrationV2DispatchRejectionReason as sc, ClientAbort$1 as sd, setUrl as sf, merge as sh, OrchestratorMcpListScheduledTasksResult as si, ProjectSearchEntriesError as sl, PROVIDER_DISPLAY_NAMES as sm, DesktopTelemetryControlMessage as sn, value as so, AuthOrchestrationOperateScope as sp, ReviewDiffPreviewSourceKind as sr, DesktopBrowserEvent as ss, Service as st, Service$1 as su, buildIndexes as t, ExternalLauncherEditorSpawnError as ta, OrchestrationV2ContextTransfer as tc, makeConfig as td, post$1 as tf, TurnItemId as th, OrchestratorMcpDelegateTaskInput as ti, ProjectListEntriesError as tl, DEFAULT_TEXT_GENERATION_MODEL as tm, WorktreeMcpFailure as tn, PreviewListResult as to, AuthFilesystemWriteScope as tp, PreviewAutomationUploadInput as tr, INCOGNITO_BROWSER_PROFILE_ID as ts, WsSelfImproveUndoSaveRpc as tt, PROVIDER_SEND_TURN_MAX_FILE_BYTES as tu, resolveValue as u, TerminalCwdStatError as ua, OrchestrationV2ExecutionNode as uc, ResponseError as ud, DecodeError as uf, bytes as uh, OrchestratorMcpScheduleTaskInput as ui, StoredProjectIcon as ul, ProviderInstanceMutation as um, McpCapabilityUnavailableError as un, KeybindingsConfigError as uo, AuthProvidersManageScope as up, AssetCreateUrlInput as ur, RelayClientInstallFailedError as us, SelfImproveEvidence as ut, getSlotParseOptions as uu, Hash as v, AntigravitySettings as va, OrchestrationV2ProviderSession as vc, file as vd, TypeId$17 as vf, OrchestratorMcpThreadListResult as vi, RuntimeMode as vl, AssistantCitation as vm, PreviewAutomationDialogInput as vn, McpServerRuntimeState as vo, EnvironmentAuthorizationError as vp, AssetWorkspaceAssetNotFoundError as vr, EnvironmentHttpConflictError as vs, UserInputRankError as vt, patch as vu, concatBytes as w, DATABASE_COMPACTION_RECOMMENDED_BYTES as wa, OrchestrationV2RunAttemptJson as wc, redirect as wd, layerWeak as wf, OrchestratorMcpThreadWaitResult as wi, PullRequestOperationError as wl, ClientDeviceType as wm, PreviewAutomationInvalidSelectorError as wn, supportsProviderMcpSignIn as wo, asUint8Array as wp, AttachmentCreateUploadUrlInput as wr, EnvironmentRequestInvalidError as ws, DesignSubscribeRequest as wt, add$1 as wu, ahash as x, ClaudeSettings as xa, OrchestrationV2ProviderThreadJson as xc, jsonUnsafe as xd, layer$1 as xf, OrchestratorMcpThreadSendInput as xi, ThreadPullRequestLink as xl, CheckpointRef as xm, PreviewAutomationEvaluateInput as xn, RESERVED_MCP_SERVER_NAME as xo, authScopeResponse as xp, AssetWorkspacePathValidationError as xr, EnvironmentHttpUnauthorizedError as xs, DesignListRequest as xt, normalize as xu, abytes as y, BackgroundActivityProfile as ya, OrchestrationV2ProviderSessionJson as yc, html as yd, ignore as yf, OrchestratorMcpThreadReadInput as yi, ThreadLinkedPullRequest as yl, AuthSessionId as ym, PreviewAutomationDragInput as yn, McpServerTransport as yo, ServerAuthSessionMethod as yp, AssetWorkspaceContextNotFoundError as yr, EnvironmentHttpForbiddenError as ys, DesignHumanApplyRequest as yt, post as yu, CLIENT_GUARDED_RPC_SCOPES as z, makeProviderSettingsSchema as za, OrchestrationV2ThreadShell as zc, TypeId$14 as zd, isPlatformError as zf, TextGenerationError as zi, VcsProcessMissingExitCodeError as zl, PortSchema as zm, PreviewAutomationResizeResult as zn, DeviceToolTargetInput as zo, Retry as zp, OrchestrationSearchThreadsResult as zr, RelayOkResponse as zs, DesignRenderRequest as zt, addUrlAttributes as zu };
32033
32035
 
32034
- //# sourceMappingURL=runtime-DGGSjC6Q.mjs.map
32036
+ //# sourceMappingURL=runtime-bP6MSuMS.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@p4code/cli",
3
- "version": "0.8.35",
3
+ "version": "0.8.37",
4
4
  "description": "P4 Code coding agent server and command-line client",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "@cursor/sdk": "1.0.35",
27
27
  "@ff-labs/fff-node": "0.11.0",
28
28
  "@napi-rs/keyring": "^1.3.0",
29
- "node-pty": "^1.2.0-beta.15",
29
+ "node-pty": "1.2.0-beta.15",
30
30
  "playwright-core": "1.60.0",
31
31
  "skia-canvas": "3.0.8"
32
32
  }
@@ -1,2 +0,0 @@
1
- import{i as e}from"./DialogTitle-B_9LEmy3.js";function t(t){return e(t,`alert-dialog`)}export{t};
2
- //# sourceMappingURL=AlertDialogRoot-9jRALQXL.js.map
@@ -1,2 +0,0 @@
1
- import{a as e,t}from"./react-DH3P2YXY.js";import{t as n}from"./jsx-runtime-BnjsACtP.js";import{t as r}from"./FieldControl-BHe6unoZ.js";var i=e(t()),a=e(n()),o=i.forwardRef(function(e,t){return(0,a.jsx)(r,{ref:t,...e})});export{o as t};
2
- //# sourceMappingURL=Input-Cv-TKh6s.js.map
@@ -1 +0,0 @@
1
- import{t as e}from"./O65XPQGZ-BEfVfDlS.js";export{e as flowchart};
@@ -1,2 +0,0 @@
1
- import{i as e}from"./SettingsPanels-BfBUSBAG.js";var t=e;export{t as component};
2
- //# sourceMappingURL=settings.archived-FtcZf_Ug.js.map