@p4code/cli 0.9.25 → 0.9.26

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 (288) hide show
  1. package/dist/{TraceDiagnostics-BHUn_HS7.mjs → TraceDiagnostics-D1Qz3qce.mjs} +3 -3
  2. package/dist/bin.mjs +1 -1
  3. package/dist/{binCli-DzJr0M8f.mjs → binCli-CcEaWLAR.mjs} +6 -6
  4. package/dist/client/.vite/manifest.json +2130 -2130
  5. package/dist/client/assets/{2NI2N5EU-DU0Cg_Lb.js → 2NI2N5EU--LXjbTE-.js} +2 -2
  6. package/dist/client/assets/{4UO7MD6I-B38qXGVF.js → 4UO7MD6I-D_jr6_IV.js} +2 -2
  7. package/dist/client/assets/{5B3SVYGG-FTIXhvjJ.js → 5B3SVYGG-tThUTA_S.js} +2 -2
  8. package/dist/client/assets/{5GK6JWQ2-H3C8D_6P.js → 5GK6JWQ2-BCuuAhKJ.js} +2 -2
  9. package/dist/client/assets/{5N7A7DKN-CozSLHAy.js → 5N7A7DKN-rdPMRoZL.js} +2 -2
  10. package/dist/client/assets/{5OC2THR4-CEpIVrtv.js → 5OC2THR4-gvpm3IL0.js} +2 -2
  11. package/dist/client/assets/{5S6HY5KT-BJiBcrC3.js → 5S6HY5KT-CWanNmdR.js} +2 -2
  12. package/dist/client/assets/{6IMQ5BUJ-Bc6nCKkc.js → 6IMQ5BUJ-1sguTKZ9.js} +2 -2
  13. package/dist/client/assets/{6OLKWJ4F-BQObFAo6.js → 6OLKWJ4F-9loy41nw.js} +2 -2
  14. package/dist/client/assets/{74OO7NKP-Bf7mJdAJ.js → 74OO7NKP-ukQR6jKi.js} +2 -2
  15. package/dist/client/assets/{75O6YZUN-CW0D2fdL.js → 75O6YZUN-BjBd5LQ0.js} +2 -2
  16. package/dist/client/assets/{77XECAW3-DYpoU6GE.js → 77XECAW3-Ccw2Y7VD.js} +2 -2
  17. package/dist/client/assets/{ABYRPUBD-DspDYvjC.js → ABYRPUBD-CvqVJLPf.js} +2 -2
  18. package/dist/client/assets/AlertDialogRoot-CimqRgXh.js +2 -0
  19. package/dist/client/assets/{AnimatedHeight-baWnHH74.js → AnimatedHeight-Dwarin_V.js} +2 -2
  20. package/dist/client/assets/{AuthSurfaceShell-DpXUdirf.js → AuthSurfaceShell-BvGaTutU.js} +2 -2
  21. package/dist/client/assets/{BB2UYUI2-DBvVdzXq.js → BB2UYUI2-Drnmium_.js} +2 -2
  22. package/dist/client/assets/{BUM34MOA-DD8_qVgf.js → BUM34MOA-AkPmeijf.js} +2 -2
  23. package/dist/client/assets/{CEQABKGZ-CVQF1BSd.js → CEQABKGZ-BNUlDSIK.js} +2 -2
  24. package/dist/client/assets/{CXAC5362-D-ErUdji.js → CXAC5362-Bmar3Iii.js} +2 -2
  25. package/dist/client/assets/{ChatGptUsageButton-CQGToDEF.js → ChatGptUsageButton-D6Iy8SVv.js} +2 -2
  26. package/dist/client/assets/{ChatMarkdown-LJASbkfc.js → ChatMarkdown-DHhJpg3q.js} +7 -7
  27. package/dist/client/assets/{CheckboxIndicator-C1r4pplS.js → CheckboxIndicator-DbA95VlZ.js} +2 -2
  28. package/dist/client/assets/{ClippedText-DfXsEQeG.js → ClippedText-UM8CaEu4.js} +2 -2
  29. package/dist/client/assets/{CodexSetupSection.logic-Bc4DfjCh.js → CodexSetupSection.logic-kKJPABQZ.js} +2 -2
  30. package/dist/client/assets/{CollapsiblePanel-BXH3rQRh.js → CollapsiblePanel-C1iRr4kZ.js} +2 -2
  31. package/dist/client/assets/{ComboboxClear-CVernRAh.js → ComboboxClear-DaifQLU5.js} +2 -2
  32. package/dist/client/assets/{ComboboxGroupLabel-DvjyoFJL.js → ComboboxGroupLabel-C03JGZRD.js} +2 -2
  33. package/dist/client/assets/{CommandBlock-WsIIEStK.js → CommandBlock-DH_L_Tgo.js} +2 -2
  34. package/dist/client/assets/{CompositeRoot-ByiP4GnC.js → CompositeRoot-B1DTZCNU.js} +2 -2
  35. package/dist/client/assets/{ConnectAgentSurface-DvJ8PBIx.js → ConnectAgentSurface-C5bZc2ZR.js} +2 -2
  36. package/dist/client/assets/{ConnectionStatusDot-K3y7Ct8v.js → ConnectionStatusDot-CCTiSlHA.js} +2 -2
  37. package/dist/client/assets/{DRLTVNUE-31JTQ6nY.js → DRLTVNUE-BqWUfmRf.js} +2 -2
  38. package/dist/client/assets/{DYY6UVD2-D_ZDUMtR.js → DYY6UVD2-CyRsghfa.js} +2 -2
  39. package/dist/client/assets/{DevicePanel-DZK0y5Ap.js → DevicePanel-DocID7hH.js} +2 -2
  40. package/dist/client/assets/{DeviceSetup-D3E85Zrd.js → DeviceSetup-CX2OWVB9.js} +2 -2
  41. package/dist/client/assets/{DialogRoot-CNtnfAJy.js → DialogRoot-D64NsaiW.js} +2 -2
  42. package/dist/client/assets/{DialogTitle-DV_YdpJC.js → DialogTitle-CYefNdHm.js} +2 -2
  43. package/dist/client/assets/{DiffCommentAnnotation-BOVXuQGc.js → DiffCommentAnnotation-ChKqFxt5.js} +2 -2
  44. package/dist/client/assets/{DiffFileTree-B5NHhHgk.js → DiffFileTree-B6AgzOXX.js} +2 -2
  45. package/dist/client/assets/{DiffPanel-Iu14e7z4.js → DiffPanel-DKAHtq5x.js} +2 -2
  46. package/dist/client/assets/{DiffWorkerPoolProvider-Dwi-pu0V.js → DiffWorkerPoolProvider-CK3y5UA1.js} +2 -2
  47. package/dist/client/assets/{EmbeddedDesign-B7W3XrYS.js → EmbeddedDesign-Bj-kkArq.js} +5 -5
  48. package/dist/client/assets/{EnvironmentMachineIcon-CXBfI2NX.js → EnvironmentMachineIcon-CJ30kzSK.js} +2 -2
  49. package/dist/client/assets/{ExpandableText-DfUAVk6K.js → ExpandableText-CBPvhWvZ.js} +2 -2
  50. package/dist/client/assets/{FNOVOB4O-uinkA45N.js → FNOVOB4O-DYXYw-b1.js} +2 -2
  51. package/dist/client/assets/{FieldControl-CIowDCcv.js → FieldControl-CkgERQaU.js} +2 -2
  52. package/dist/client/assets/{FileDiff-BmQX_G3I.js → FileDiff-BLuBewdN.js} +2 -2
  53. package/dist/client/assets/{FilePreviewPanel-X0C-_bsa.js → FilePreviewPanel-DWNimHTU.js} +5 -5
  54. package/dist/client/assets/{FoldedSettingsSection-veJCJBGN.js → FoldedSettingsSection-C3cuD_W9.js} +2 -2
  55. package/dist/client/assets/{HDGCDEEZ-C-FshFnT.js → HDGCDEEZ-7WPyPcLr.js} +2 -2
  56. package/dist/client/assets/{HSJLKHB7-DkWuWTFm.js → HSJLKHB7-t8_OkffK.js} +2 -2
  57. package/dist/client/assets/{Icons-CzUirT4o.js → Icons-BUrn1Fzo.js} +2 -2
  58. package/dist/client/assets/Input-Gb8KV9DV.js +2 -0
  59. package/dist/client/assets/{IntervalSecondsField-jhisp3XJ.js → IntervalSecondsField-D9JXVV-s.js} +2 -2
  60. package/dist/client/assets/JZOYTAAL-BzA5Kg5m.js +1 -0
  61. package/dist/client/assets/{K3MD6TGW-a8yr5Ewj.js → K3MD6TGW-DoqPvoaq.js} +2 -2
  62. package/dist/client/assets/{K7RP3OMA-B0CXNed1.js → K7RP3OMA--ZFOkyEG.js} +2 -2
  63. package/dist/client/assets/{KeybindingsSettings.logic-BJLp2hK6.js → KeybindingsSettings.logic-CMs7OPcH.js} +2 -2
  64. package/dist/client/assets/{LHDIQX7Q-CkhjJ70Y.js → LHDIQX7Q-hUqw2I9B.js} +2 -2
  65. package/dist/client/assets/{LUXOKEGN-DhYrChjL.js → LUXOKEGN-Dvu_mp-q.js} +2 -2
  66. package/dist/client/assets/{LinkMachineSelect-rWCX7r86.js → LinkMachineSelect-SHXPDP_g.js} +2 -2
  67. package/dist/client/assets/{MathTypeset-C9x0hMF0.js → MathTypeset-TM-3r0WA.js} +2 -2
  68. package/dist/client/assets/{ModelLiveLayer-Dv_jCIXj.js → ModelLiveLayer-Bb-7OhJ9.js} +3 -3
  69. package/dist/client/assets/{N3JZAHOW-B97FAWso.js → N3JZAHOW-LjhhJ-00.js} +2 -2
  70. package/dist/client/assets/{NUIALGQ3-Dq5lVW3w.js → NUIALGQ3-Dg1KXz02.js} +2 -2
  71. package/dist/client/assets/{NoProjectsHero-BsinbzdV.js → NoProjectsHero-D0OPZtzO.js} +2 -2
  72. package/dist/client/assets/{O65XPQGZ-D4-546m0.js → O65XPQGZ-BxaJR80d.js} +2 -2
  73. package/dist/client/assets/{O7XIQ6OM-BPEf7K4J.js → O7XIQ6OM-CCXPxMuU.js} +2 -2
  74. package/dist/client/assets/{OFQON5FD-ANLB_eks.js → OFQON5FD-WUMBXQkX.js} +2 -2
  75. package/dist/client/assets/{P4ConnectAccountPages-BkUG1cNj.js → P4ConnectAccountPages-BNK6s-RS.js} +2 -2
  76. package/dist/client/assets/{P4ConnectSidebarSignIn-Bd8SD-N2.js → P4ConnectSidebarSignIn-CWW40SMl.js} +2 -2
  77. package/dist/client/assets/{PJQHF43J-U5Qjv9uU.js → PJQHF43J-BrNjCaLl.js} +2 -2
  78. package/dist/client/assets/{PanelLayoutControls-BiOzQEUj.js → PanelLayoutControls-DiXjRWIw.js} +7 -7
  79. package/dist/client/assets/{PierreEntryIcon-C3yCp-3j.js → PierreEntryIcon-D29_Ylm_.js} +2 -2
  80. package/dist/client/assets/{PopoverHandle-BOG8GZW9.js → PopoverHandle-BgggGdpn.js} +2 -2
  81. package/dist/client/assets/PreviewPanel-DutKwWE7.js +2 -0
  82. package/dist/client/assets/{ProjectDefaultsSettings-BNoHUxLB.js → ProjectDefaultsSettings-DMfJN66D.js} +2 -2
  83. package/dist/client/assets/{ProjectFavicon-DJihy670.js → ProjectFavicon-DFI1NI3D.js} +3 -3
  84. package/dist/client/assets/{ProjectIconPickerDialog-B64NU333.js → ProjectIconPickerDialog-BqGWzrTc.js} +2 -2
  85. package/dist/client/assets/{ProjectMonogram-Bm8g4eoe.js → ProjectMonogram-D4xxVtw8.js} +2 -2
  86. package/dist/client/assets/{ProviderAuthTerminal-ep_3vQXs.js → ProviderAuthTerminal-CRSvI-Og.js} +2 -2
  87. package/dist/client/assets/ProviderModelPicker-D73G0AKf.js +2 -0
  88. package/dist/client/assets/{ProviderSettingsForm-DdzTiAwr.js → ProviderSettingsForm-DchD8HSN.js} +2 -2
  89. package/dist/client/assets/{PullRequestCodeTab-DxIVyifS.js → PullRequestCodeTab-BdXdTg-d.js} +3 -3
  90. package/dist/client/assets/{RHNBAITX-Ca700xaA.js → RHNBAITX-PsYrngSs.js} +2 -2
  91. package/dist/client/assets/{ReadOnlySourcePreview-DwbQjZ6S.js → ReadOnlySourcePreview-8jLKmc3M.js} +2 -2
  92. package/dist/client/assets/{RedactedSensitiveText-CKBxO8RE.js → RedactedSensitiveText-DhV2Jdu8.js} +2 -2
  93. package/dist/client/assets/{RenderErrorBoundary-Ds0CLe6f.js → RenderErrorBoundary-56lc2IQ3.js} +2 -2
  94. package/dist/client/assets/{RightPanelResizeHandle-kgBW_OmO.js → RightPanelResizeHandle-ClzdYxWw.js} +2 -2
  95. package/dist/client/assets/{SLD4V6NK-DHgBQG4y.js → SLD4V6NK-CxidvPXU.js} +2 -2
  96. package/dist/client/assets/{ScheduledTasksSettings-G10yO5DO.js → ScheduledTasksSettings-BdMCgBm5.js} +5 -5
  97. package/dist/client/assets/{ScopedSwitch-DGi7EZuF.js → ScopedSwitch-CwnjCta_.js} +2 -2
  98. package/dist/client/assets/{ScrollAreaCorner-sEIv5sN-.js → ScrollAreaCorner-CfTQYjCW.js} +2 -2
  99. package/dist/client/assets/{SecretInput-C8mfkoqW.js → SecretInput-BYfVbTLh.js} +2 -2
  100. package/dist/client/assets/{SelectScrollUpArrow-BBy8ExJB.js → SelectScrollUpArrow-BE0-tVtP.js} +2 -2
  101. package/dist/client/assets/{SelfImproveSettingsSection-CJpzoxZq.js → SelfImproveSettingsSection-DsqFeICK.js} +2 -2
  102. package/dist/client/assets/{SettingsPanels-CKuvIEcT.js → SettingsPanels-D_rJsyjt.js} +7 -7
  103. package/dist/client/assets/{SettingsPanels.logic-mWhM0JKq.js → SettingsPanels.logic-BTJUBh-T.js} +2 -2
  104. package/dist/client/assets/{SettingsScopeNotice-CYlVOS9U.js → SettingsScopeNotice-CAVvn3pQ.js} +2 -2
  105. package/dist/client/assets/{SidebarStageBackdrop-CcJgZb4i.js → SidebarStageBackdrop-DdxWuxIk.js} +2 -2
  106. package/dist/client/assets/{T3PCR2KE-sETS2BfN.js → T3PCR2KE-BtQsKjM5.js} +2 -2
  107. package/dist/client/assets/{TKWO2OVW-DOxrph0T.js → TKWO2OVW-CeYF-suq.js} +2 -2
  108. package/dist/client/assets/{TSHNXIZL-LkLzenBL.js → TSHNXIZL-FQ7ZWHEn.js} +2 -2
  109. package/dist/client/assets/{ThemeEditorPanel-BSPkdhmj.js → ThemeEditorPanel-BJucNhy-.js} +2 -2
  110. package/dist/client/assets/{ThreadDetailsItemsMenu-8anoK4Or.js → ThreadDetailsItemsMenu-CRBBIuc7.js} +8 -8
  111. package/dist/client/assets/{ThreadTerminalDrawer-Wd-He1GI.js → ThreadTerminalDrawer-Ci0mbLzJ.js} +4 -4
  112. package/dist/client/assets/{TooltipProvider-DMrkN3Xd.js → TooltipProvider-BH5ni_Lo.js} +2 -2
  113. package/dist/client/assets/{UQJE5E4I-DbEWChzq.js → UQJE5E4I-CeqBk-r6.js} +2 -2
  114. package/dist/client/assets/{USNYFO5S-D2NfvkZx.js → USNYFO5S-_1m41tJt.js} +2 -2
  115. package/dist/client/assets/{Virtualizer-C2gQRrRy.js → Virtualizer-DLB0FYm-.js} +2 -2
  116. package/dist/client/assets/{WEVWDWVA-CWLLvNnc.js → WEVWDWVA-DmSV8HLL.js} +2 -2
  117. package/dist/client/assets/{WorkspaceBreadcrumb-DDBBo54L.js → WorkspaceBreadcrumb-DQkeBQUl.js} +2 -2
  118. package/dist/client/assets/{WorkspacePageContainer-D-b_7VnU.js → WorkspacePageContainer-D2rx9iDg.js} +2 -2
  119. package/dist/client/assets/{WorkspacePageHeader-C8bAlMLy.js → WorkspacePageHeader-D8-RIRjQ.js} +2 -2
  120. package/dist/client/assets/{X5RFHQXM-B_4xBer1.js → X5RFHQXM-BUdDYXox.js} +2 -2
  121. package/dist/client/assets/{X62E3GBT-DH4DDJbS.js → X62E3GBT-BbQ7FmNB.js} +2 -2
  122. package/dist/client/assets/{XBNEOJTC-CH0FX2u2.js → XBNEOJTC-BLEZA-vx.js} +2 -2
  123. package/dist/client/assets/{YHV2MVVZ-vkFosclt.js → YHV2MVVZ-DM2RTtkR.js} +2 -2
  124. package/dist/client/assets/{YURCZMG2-CflztzI6.js → YURCZMG2-D5w6cPMY.js} +2 -2
  125. package/dist/client/assets/{YVG2LODB-BU5mIo0f.js → YVG2LODB-BkLbsaCo.js} +2 -2
  126. package/dist/client/assets/{_chat-rr4Pa6Jr.js → _chat-CKMs-ajx.js} +19 -19
  127. package/dist/client/assets/{_chat.design-DcTokS2n.js → _chat.design-CpqXODBn.js} +2 -2
  128. package/dist/client/assets/{_chat.index-Cx2rD23U.js → _chat.index-B0eOfZAf.js} +2 -2
  129. package/dist/client/assets/{_chat.new-Bef-dZPa.js → _chat.new-CqLuDynd.js} +2 -2
  130. package/dist/client/assets/{_chat.pull-requests-CEwED8fj.js → _chat.pull-requests-C4Eo8GDQ.js} +2 -2
  131. package/dist/client/assets/{alert-iNR43-xr.js → alert-D1O9oex3.js} +2 -2
  132. package/dist/client/assets/{alert-dialog-B7VzBOev.js → alert-dialog-3XDceRWv.js} +2 -2
  133. package/dist/client/assets/{assetUrls-BMHkXryh.js → assetUrls-Dq0gsqWs.js} +2 -2
  134. package/dist/client/assets/{assets-C96oF_eX.js → assets-C3_UZib9.js} +2 -2
  135. package/dist/client/assets/{browserHistoryStore-DcyxHvEZ.js → browserHistoryStore-CVCo7qfb.js} +2 -2
  136. package/dist/client/assets/{browserLinkTarget-5NDfBwMZ.js → browserLinkTarget-CopcRHna.js} +2 -2
  137. package/dist/client/assets/{checkbox-BnoBa5Yw.js → checkbox-CxRqp4sO.js} +2 -2
  138. package/dist/client/assets/{color-picker-DGBwf4df.js → color-picker-CvbP7BS3.js} +2 -2
  139. package/dist/client/assets/{combobox-BViCCYpe.js → combobox-CuyUAuiC.js} +2 -2
  140. package/dist/client/assets/{command-DD9AbES_.js → command-4bqVdX0m.js} +2 -2
  141. package/dist/client/assets/{connect-B3_KXIyQ.js → connect-DFGquf-O.js} +2 -2
  142. package/dist/client/assets/connect-agent-Db5rxxY1.js +2 -0
  143. package/dist/client/assets/{design-BwQ33zDs.js → design-DzoN9JgQ.js} +2 -2
  144. package/dist/client/assets/{device-CAueNfph.js → device-H2MyT_kA.js} +2 -2
  145. package/dist/client/assets/{dialog-DvBVJIw1.js → dialog-CrLVN_m6.js} +2 -2
  146. package/dist/client/assets/{diffPanelStore-B43kjSer.js → diffPanelStore-CxnPNigi.js} +2 -2
  147. package/dist/client/assets/{diffRendering-DwbgLJaq.js → diffRendering-cyTQV5bk.js} +2 -2
  148. package/dist/client/assets/{dist-B-8eHEk-.js → dist-J7s-H61h.js} +3 -3
  149. package/dist/client/assets/{draft-input-CBmbOI5j.js → draft-input-UuEBPJE8.js} +2 -2
  150. package/dist/client/assets/{duoViewer-Dml9fvvm.js → duoViewer-C3DQnADY.js} +2 -2
  151. package/dist/client/assets/{dynamic-C2hTfNo4.js → dynamic-PDa6LTqb.js} +2 -2
  152. package/dist/client/assets/{embeddedScripts-DmobRpxc.js → embeddedScripts-BDzRNXSL.js} +2 -2
  153. package/dist/client/assets/{empty-CGA6iTo1.js → empty-YMXgQbNI.js} +2 -2
  154. package/dist/client/assets/{entities-ygRGujH7.js → entities-HOBDIiHK.js} +2 -2
  155. package/dist/client/assets/{fileLinks-COT45KrB.js → fileLinks-BlT4My6t.js} +2 -2
  156. package/dist/client/assets/{fileTreeExpansion-t42YM2NT.js → fileTreeExpansion-D5nN-Oqd.js} +2 -2
  157. package/dist/client/assets/{getDiffFileInput-BRoo9f7T.js → getDiffFileInput-4gToQuSl.js} +2 -2
  158. package/dist/client/assets/{htmlRender-w5A35V7p.js → htmlRender-CUGVJXGf.js} +2 -2
  159. package/dist/client/assets/{index-BfU6cQrF.js → index-C04a0SKq.js} +3 -3
  160. package/dist/client/assets/{input-L7UBCORX.js → input-DxHa9qj5.js} +2 -2
  161. package/dist/client/assets/{input-group-B4A2yaVX.js → input-group-_rAbDbys.js} +2 -2
  162. package/dist/client/assets/{kbd-CNvVBYtE.js → kbd-DjUfNaix.js} +2 -2
  163. package/dist/client/assets/{keybindings-DoiXiZn5.js → keybindings-8_1sqf8s.js} +2 -2
  164. package/dist/client/assets/{lazy-BYuTmsKJ.js → lazy-C1dqAep6.js} +4 -4
  165. package/dist/client/assets/{lazyRouteComponent-DlaI8YOu.js → lazyRouteComponent-DLamKhHF.js} +2 -2
  166. package/dist/client/assets/{link-Vg2garcH.js → link-D1nkgCv7.js} +2 -2
  167. package/dist/client/assets/{linkedPrompt-Bg0S0srn.js → linkedPrompt-Quysf0mk.js} +2 -2
  168. package/dist/client/assets/main-BFdCLmkY.js +39 -0
  169. package/dist/client/assets/{mediaReference-BGHvhhnE.js → mediaReference-D19Dzoh3.js} +2 -2
  170. package/dist/client/assets/{mediaSource-CeGNee1z.js → mediaSource-DfsR3T70.js} +2 -2
  171. package/dist/client/assets/{modelScene-DtBAQ8-k.js → modelScene-CcF-Uii-.js} +2 -2
  172. package/dist/client/assets/{number-field-BRlzUJEB.js → number-field-CALZZPio.js} +2 -2
  173. package/dist/client/assets/{observeResize-CNiPL-bo.js → observeResize-DLmefMqO.js} +2 -2
  174. package/dist/client/assets/{onboarding-9Isl06ny.js → onboarding-plATuZco.js} +2 -2
  175. package/dist/client/assets/{openFileInPreview-CgNdFzHq.js → openFileInPreview-BCGQQ_Ia.js} +2 -2
  176. package/dist/client/assets/{p4ProjectFile-kzawDum5.js → p4ProjectFile-DCNJ4pTp.js} +2 -2
  177. package/dist/client/assets/{pair-ClGrg_fl.js → pair-umv6-haX.js} +2 -2
  178. package/dist/client/assets/{pendingSendStore-Kz-cNs4v.js → pendingSendStore-CgfQk4GV.js} +2 -2
  179. package/dist/client/assets/{phoneViewer-B5Ue7Mj_.js → phoneViewer-DJWjzgFc.js} +2 -2
  180. package/dist/client/assets/{pierre-icons-cxD685IX.js → pierre-icons-fv1goMS6.js} +2 -2
  181. package/dist/client/assets/{popover-DYDa4qjy.js → popover-DxCAIK62.js} +2 -2
  182. package/dist/client/assets/{preview-BypB2j7r.js → preview-Ce5ECOHv.js} +2 -2
  183. package/dist/client/assets/{preview-BPJ2QBFC.js → preview-x1tmlUez.js} +2 -2
  184. package/dist/client/assets/{previewMiniPlayerStore-C_zTFBAY.js → previewMiniPlayerStore-CEd7VI6J.js} +2 -2
  185. package/dist/client/assets/{primary-BP9P8Pte.js → primary-DcnaBKM0.js} +2 -2
  186. package/dist/client/assets/{primaryCloudLinkState-DRbP1pee.js → primaryCloudLinkState-TS0IW37f.js} +2 -2
  187. package/dist/client/assets/{projectFilesQueryState-DodSPNTI.js → projectFilesQueryState-DKw9S3nn.js} +2 -2
  188. package/dist/client/assets/{projectScriptEditor-DxYgPh8M.js → projectScriptEditor-DT7-Ivvb.js} +2 -2
  189. package/dist/client/assets/{providerSkills-DA9qtjVM.js → providerSkills-G8ld9nNp.js} +2 -2
  190. package/dist/client/assets/{pullRequestDetail.logic-Car0C0YH.js → pullRequestDetail.logic-Dm3mx1US.js} +2 -2
  191. package/dist/client/assets/{pullRequestIcons-CJzQ9q45.js → pullRequestIcons-D8rnFTkk.js} +2 -2
  192. package/dist/client/assets/{pullRequestReviewStore-CWrDaNh_.js → pullRequestReviewStore-C45fih_P.js} +2 -2
  193. package/dist/client/assets/{pullRequests-Dx8h1wyx.js → pullRequests-euX1Ch2G.js} +2 -2
  194. package/dist/client/assets/{queries-DY1lhLYl.js → queries-DNRXml7d.js} +2 -2
  195. package/dist/client/assets/{query-C-5C8CaD.js → query-Bw8YoCbO.js} +2 -2
  196. package/dist/client/assets/{radio-group-DpsCw8_-.js → radio-group-DpD3XHAp.js} +2 -2
  197. package/dist/client/assets/{relay-Bjm0weca.js → relay-YiJpGyaO.js} +2 -2
  198. package/dist/client/assets/{relayFailureReason-1tQ1xfnE.js → relayFailureReason-Baxcpnas.js} +2 -2
  199. package/dist/client/assets/{renderScheduler-Bza_olpQ.js → renderScheduler-BuGbk7RK.js} +2 -2
  200. package/dist/client/assets/{rightPanelStore-BNvdVe0q.js → rightPanelStore-BF1zmmXM.js} +2 -2
  201. package/dist/client/assets/{runtime-DGtwOpiP.js → runtime-DIAcbMTc.js} +5 -5
  202. package/dist/client/assets/{runtimeModeConfig-DicWhVdl.js → runtimeModeConfig-4g_-_dE2.js} +2 -2
  203. package/dist/client/assets/{scheduledTasksSettings.logic-u5XriP_U.js → scheduledTasksSettings.logic-BOrkdeD3.js} +2 -2
  204. package/dist/client/assets/{scroll-area-Ct6TrgZr.js → scroll-area-CokPD3-i.js} +2 -2
  205. package/dist/client/assets/{select-B3jSTp6e.js → select-CxYi0YMi.js} +2 -2
  206. package/dist/client/assets/{selfImproveFindings-Bw954UOu.js → selfImproveFindings-CE-lxRTw.js} +2 -2
  207. package/dist/client/assets/{server-BjY-vKW2.js → server-BNjk2K1j.js} +2 -2
  208. package/dist/client/assets/{session-CkASndp1.js → session-DMNo4Bh3.js} +2 -2
  209. package/dist/client/assets/{session-logic-C3HuEav7.js → session-logic-CELyWJ1v.js} +2 -2
  210. package/dist/client/assets/{settings-DpDhgaUs.js → settings-Bt6o5coA.js} +2 -2
  211. package/dist/client/assets/{settings.appearance-BMBe1DlC.js → settings.appearance-pkRxkhgs.js} +2 -2
  212. package/dist/client/assets/settings.archived-OjOh5b0A.js +2 -0
  213. package/dist/client/assets/{settings.computer-use-dlKT7XFQ.js → settings.computer-use-Dh6Z2-Jg.js} +2 -2
  214. package/dist/client/assets/{settings.connections-BaU6DQRh.js → settings.connections-F3LWiK8-.js} +2 -2
  215. package/dist/client/assets/{settings.data-controls-DrInQbPq.js → settings.data-controls-DgOo9a4b.js} +2 -2
  216. package/dist/client/assets/{settings.decisions-Dibz4qNv.js → settings.decisions-lQFEkC9t.js} +2 -2
  217. package/dist/client/assets/{settings.designs-BGdZiNGp.js → settings.designs-C1tyiETD.js} +2 -2
  218. package/dist/client/assets/settings.diagnostics-kp_wJw6e.js +2 -0
  219. package/dist/client/assets/{settings.general-rsdZzWCJ.js → settings.general-B5Kke4t3.js} +2 -2
  220. package/dist/client/assets/{settings.integrations-DK-S9Pa1.js → settings.integrations-CjiKCDy_.js} +2 -2
  221. package/dist/client/assets/{settings.keybindings-Coe8Ydce.js → settings.keybindings-CouYSmxE.js} +2 -2
  222. package/dist/client/assets/{settings.open-source-licenses--xUZ68RR.js → settings.open-source-licenses-CHFTLx1q.js} +2 -2
  223. package/dist/client/assets/{settings.plugins-DXoF7IBB.js → settings.plugins-StUBBho3.js} +3 -3
  224. package/dist/client/assets/{settings.projects-ChEJ7uSA.js → settings.projects-B_SxK9Cl.js} +3 -3
  225. package/dist/client/assets/{settings.providers-BYwf6_Ds.js → settings.providers-Ch16WkgV.js} +3 -3
  226. package/dist/client/assets/{settings.scheduled-tasks-Cu69dh_-.js → settings.scheduled-tasks-KNcUc94O.js} +2 -2
  227. package/dist/client/assets/{settings.secrets-CdyzqqJR.js → settings.secrets-2aMmfgKR.js} +2 -2
  228. package/dist/client/assets/{settings.snap-shot-DdYHf8Q5.js → settings.snap-shot-B5cEBXZD.js} +2 -2
  229. package/dist/client/assets/settings.source-control-G_TX95re.js +2 -0
  230. package/dist/client/assets/{settings.storage-CuUZoWfT.js → settings.storage-BdNNKm9m.js} +2 -2
  231. package/dist/client/assets/{settingsLayout-DbyBB8ZI.js → settingsLayout-CzGbLP4v.js} +2 -2
  232. package/dist/client/assets/{sidebar-Do4Myy34.js → sidebar-ovj9EiR4.js} +2 -2
  233. package/dist/client/assets/{sidebarProjectGrouping-Ks0H3W1r.js → sidebarProjectGrouping-DT6LCDEX.js} +2 -2
  234. package/dist/client/assets/{skeleton-M5MIqTy6.js → skeleton-0IEb3e4e.js} +2 -2
  235. package/dist/client/assets/{sourceControl-gpSCT1i6.js → sourceControl-CPobWWHq.js} +2 -2
  236. package/dist/client/assets/{sourceControlClients-YDf1HZkJ.js → sourceControlClients-4PlkytxQ.js} +2 -2
  237. package/dist/client/assets/{spinner-89SWutMk.js → spinner-7CSKKESP.js} +2 -2
  238. package/dist/client/assets/{src-upZEL2qH.js → src-BVovWpja.js} +2 -2
  239. package/dist/client/assets/{terminal-links-ztYtKVge.js → terminal-links-BTdovUFa.js} +2 -2
  240. package/dist/client/assets/{terminalSessions-DuQL-Su5.js → terminalSessions-EUiRWJti.js} +2 -2
  241. package/dist/client/assets/{textarea-Dk6r4lQ8.js → textarea-DMmmmGA1.js} +2 -2
  242. package/dist/client/assets/{themePalette-CwTOEe8R.js → themePalette-C7ZOgucT.js} +2 -2
  243. package/dist/client/assets/{threadCheckpoints-BBbnkFJd.js → threadCheckpoints-DjIk4Kvg.js} +2 -2
  244. package/dist/client/assets/{toggle-CzhtG7Ix.js → toggle-4vFx94TS.js} +2 -2
  245. package/dist/client/assets/{toggle-group-DVojM2PG.js → toggle-group-d6H735Xi.js} +2 -2
  246. package/dist/client/assets/{tooltip-CZBiwhnV.js → tooltip-CGvxq8k3.js} +2 -2
  247. package/dist/client/assets/{uiStateStore-DbqU-t2g.js → uiStateStore-MbQdhAPp.js} +2 -2
  248. package/dist/client/assets/{usage-CvKBHOpJ.js → usage-Da_tm2dn.js} +2 -2
  249. package/dist/client/assets/{usageAccess-12EW-JWb.js → usageAccess-B-HGPPkp.js} +2 -2
  250. package/dist/client/assets/{usageFormat-Bpgdmf94.js → usageFormat-DcON9Kz_.js} +2 -2
  251. package/dist/client/assets/{usageShortcuts-BK6jQ69t.js → usageShortcuts-B_o9XxKX.js} +2 -2
  252. package/dist/client/assets/{use-atom-command-Dv8zTjOp.js → use-atom-command-C4Tyb1VL.js} +2 -2
  253. package/dist/client/assets/{useAriaLabelledBy-CLMjXrdj.js → useAriaLabelledBy-CcwjH1QH.js} +2 -2
  254. package/dist/client/assets/useHandleNewThread-Qb_yy6KY.js +2 -0
  255. package/dist/client/assets/{useLocation-DsTBGqgr.js → useLocation-CIvcNoeU.js} +2 -2
  256. package/dist/client/assets/{useNavigate-DeDarx0_.js → useNavigate-DVrOlf8m.js} +2 -2
  257. package/dist/client/assets/{useNavigateBack-nU9Xh3KX.js → useNavigateBack-Dmf0SIc3.js} +2 -2
  258. package/dist/client/assets/{useP4ConnectAuthPrompt-wImG3qls.js → useP4ConnectAuthPrompt-BPXqJdyY.js} +2 -2
  259. package/dist/client/assets/{useParams-D8m5ONq0.js → useParams-BeJIRxxE.js} +2 -2
  260. package/dist/client/assets/{usePermissionStatus-DPEHxlfG.js → usePermissionStatus-Cx1Wuwk0.js} +2 -2
  261. package/dist/client/assets/{usePopupViewport-DDPbext7.js → usePopupViewport-OR_PF2s-.js} +2 -2
  262. package/dist/client/assets/{usePullRequestActions-Bk-wSv5o.js → usePullRequestActions-B_Nrg846.js} +2 -2
  263. package/dist/client/assets/{useRegisterFieldControl-By1bF-jd.js → useRegisterFieldControl-B72Afmil.js} +2 -2
  264. package/dist/client/assets/{useScopedModelAvailability-CTzd1AsV.js → useScopedModelAvailability-DVQ42jT4.js} +2 -2
  265. package/dist/client/assets/{useSettings-DwDYuiOf.js → useSettings-BWMcQzC-.js} +2 -2
  266. package/dist/client/assets/{utils-sVhLpEl6.js → utils-DFNDxNZi.js} +2 -2
  267. package/dist/client/assets/{vcsRefInvalidation-9bbPf9DL.js → vcsRefInvalidation-CV8dYgi0.js} +2 -2
  268. package/dist/client/assets/{welcome-D36q57wJ.js → welcome-BxhPM21H.js} +2 -2
  269. package/dist/client/index.html +1 -1
  270. package/dist/{preview-D0Bi2g4U.mjs → preview-BGylKXB6.mjs} +5 -3
  271. package/dist/{renderer-Cq4PzLVY.mjs → renderer-CQkeNW9b.mjs} +2 -2
  272. package/dist/{runtime-Cy8_QlEa.mjs → runtime-O5AWAEzD.mjs} +2 -2
  273. package/dist/{runtimeLayer-DUru7wpz.mjs → runtimeLayer-C-Fo4HWH.mjs} +1 -1
  274. package/dist/{runtimeLayer-DZa24xtO.mjs → runtimeLayer-ChPBglJB.mjs} +535 -481
  275. package/dist/{server-BK48ByhE.mjs → server-CsS0d2BE.mjs} +116 -15
  276. package/dist/{sha2-D9ocDAIA.mjs → sha2-BjjJcoUu.mjs} +4 -1
  277. package/package.json +1 -1
  278. package/dist/client/assets/AlertDialogRoot-3k-2cSKF.js +0 -2
  279. package/dist/client/assets/Input-DRxcOIy1.js +0 -2
  280. package/dist/client/assets/JZOYTAAL-CaZB6S8Y.js +0 -1
  281. package/dist/client/assets/PreviewPanel-DzlmHQZw.js +0 -2
  282. package/dist/client/assets/ProviderModelPicker-Dj26-4yu.js +0 -2
  283. package/dist/client/assets/connect-agent-CX7YZ3cf.js +0 -2
  284. package/dist/client/assets/main-CNs583QD.js +0 -39
  285. package/dist/client/assets/settings.archived-UyT8Vo2k.js +0 -2
  286. package/dist/client/assets/settings.diagnostics-30yarj2c.js +0 -2
  287. package/dist/client/assets/settings.source-control-x5yuK078.js +0 -2
  288. package/dist/client/assets/useHandleNewThread-Do-y1VVt.js +0 -2
@@ -1,2 +1,2 @@
1
- import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Jl as i,Jo as a,Js as o,Nf as s,Ol as c,Os as l,Td as u,Yo as d,Ys as f,es as p,jl as m,l as h,mr as g,o as _,sl as v,t as y,td as b,ws as x}from"./utils-sVhLpEl6.js";import{Ec as S,Hi as C,Sc as w,Wi as T,fa as E,hc as D,mc as O,n as k,ra as A,ul as j,vg as M,xg as N}from"./src-upZEL2qH.js";import{Ar as P,Tr as F,W as I,Zr as L,br as R,t as z,yr as B}from"./runtime-DGtwOpiP.js";import{$ as V,G as H,N as U,u as W}from"./entities-ygRGujH7.js";import{t as G}from"./spinner-89SWutMk.js";import{t as K}from"./useNavigate-DeDarx0_.js";import{t as q}from"./useLocation-DsTBGqgr.js";import{a as J}from"./relay-Bjm0weca.js";import{D as ee,O as te}from"./useSettings-DwDYuiOf.js";import{f as Y}from"./server-BjY-vKW2.js";import{i as ne,n as X,o as re}from"./session-CkASndp1.js";import{t as ie}from"./query-C-5C8CaD.js";import{t as ae}from"./use-atom-command-Dv8zTjOp.js";import{a as oe}from"./timestampFormat-Dq7sHZpd.js";import{a as se,n as ce,t as le}from"./tooltip-CZBiwhnV.js";import{t as ue}from"./input-L7UBCORX.js";import{t as de}from"./scroll-area-Ct6TrgZr.js";import{r as fe}from"./dist-B-8eHEk-.js";import{t as pe}from"./dialog-DvBVJIw1.js";import{t as me}from"./useP4ConnectAuthPrompt-wImG3qls.js";import{t as he}from"./CommandBlock-WsIIEStK.js";import{t as ge}from"./checkbox-BnoBa5Yw.js";import{t as _e}from"./ThreadTerminalDrawer-Wd-He1GI.js";import{i as ve}from"./terminalSessions-DuQL-Su5.js";import{n as ye}from"./useHandleNewThread-Do-y1VVt.js";import{r as be,t as xe}from"./alert-iNR43-xr.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-CQGToDEF.js";import{t as we}from"./onboarding-9Isl06ny.js";import{Ao as Te,Mo as Ee,No as De,Oo as Oe,Po as ke,_ as Ae,f as je,jo as Me,ko as Ne,ln as Pe,mi as Fe,mn as Ie,un as Le,yo as Re}from"./main-CNs583QD.js";import{t as ze}from"./NoProjectsHero-BsinbzdV.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-mWhM0JKq.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-Bc4DfjCh.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);a===void 0?t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt}):(a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)}))}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=V(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=R(z,{label:`environment-data:agent-sessions:scan`,tag:k.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=B(z,{label:`environment-data:agent-sessions:import`,tag:k.agentSessionsImport});function st(e){return L(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)(d),r;return t[0]!==e||t[1]!==n?(r=p(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:M(x(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],a(r)}var $=e(r(),1),ut=[],dt=w.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=Ie(),[i,a]=(0,Z.useState)(n?`agents`:`connection`),{environments:o}=ee(),[s,c]=(0,Z.useState)(null),l=(0,Z.useRef)(new Set),[u,d]=(0,Z.useState)(n?[n]:[]),[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(!1),g=(0,Z.useRef)(null),_=(0,Z.useRef)(null),v=te();(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 y=s??new Set(v?[v.environmentId]:[]),b=lt(i===`import`?u:ut),x=i===`import`&&b.every(e=>e.data===null)&&b.some(e=>e.isPending),S=e=>{e.length!==0&&(d(e),a(`agents`))},C=i===`agents`?1:i===`import`?2:0,w=(0,Z.useCallback)((e,n,i=0)=>{if(g.current!==null)return g.current;_.current!==null&&(J.close(_.current),_.current=null);let a=r().then(async()=>(_.current!==null&&(J.close(_.current),_.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 _.current===null?_.current=J.add(e):J.update(_.current,e),!1}).finally(()=>{g.current===a&&(g.current=null)});return g.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Te,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(Oe,{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)(Fe,{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)(Me,{steps:ft,currentStep:C,isStepDisabled:e=>m||e>=C,onStepChange:e=>{m||e>C||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Ne,{holdHeight:x,children:i===`connection`?(0,$.jsx)(ht,{expandPairingInitially:!e&&!I(),selectedIds:y,autoSelectedComputers:l.current,onSelectionChange:c,onToggleEnvironment:(e,t)=>c(n=>{let r=new Set(n??y);return t?r.add(e):r.delete(e),r}),onContinue:()=>S(ct(o,y).environmentIds),onPaired:e=>{c(new Set([...y,e]))}}):i===`agents`?(0,$.jsx)(xt,{environmentIds:u,onContinue:()=>a(`import`)}):(0,$.jsx)(At,{scans:b,importSelection:f,onImportSelectionChange:p,isImporting:m,setIsImporting:h,onDone:w})})]}),(0,$.jsx)(Ae,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:i,onSelectionChange:a,onToggleEnvironment:o,onContinue:s,onPaired:c}=e,{environments:l}=ee(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=I(),t[0]=d):d=t[0];let f=d,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>!f||!st(e),t[1]=p):p=t[1];let h=l.filter(p),[_,x]=(0,Z.useState)(r),[S,C]=(0,Z.useState)(!1),{ready:w,skippedIds:T}=ct(l,i),E=l.filter(e=>T.includes(e.environmentId)).map(gt),D=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{w&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&D.current?.focus()},[w]);let O,k;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Connect your computers`}),k=(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]=O,t[3]=k):(O=t[2],k=t[3]);let A=h.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),h.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:i.has(e.environmentId),onCheckedChange:t=>{let n=new Set(i);t?n.add(e.environmentId):n.delete(e.environmentId),a(n)}}),(0,$.jsx)(u,{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`:Le(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]!==S||t[6]!==o||t[7]!==i?(j=f?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:S,selectedIds:i,onToggleEnvironment:o}):null,t[4]=n,t[5]=S,t[6]=o,t[7]=i,t[8]=j):j=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(g,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(b,{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`,L;t[12]===F?L=t[13]:(L=y(`size-4 text-muted-foreground`,F),t[12]=F,t[13]=L);let R;t[14]===L?R=t[15]:(R=(0,$.jsx)(m,{className:L}),t[14]=L,t[15]=R);let z;t[16]!==S||t[17]!==R?(z=(0,$.jsxs)(ke,{disabled:S,render:M,children:[N,P,R]}),t[16]=S,t[17]=R,t[18]=z):z=t[18];let B;t[19]===c?B=t[20]:(B=e=>{x(!1),c(e),requestAnimationFrame(()=>D.current?.focus())},t[19]=c,t[20]=B);let V;t[21]!==S||t[22]!==B?(V=(0,$.jsx)(De,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:S,setIsPairing:C,onPaired:B})})}),t[21]=S,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==_||t[25]!==z||t[26]!==V?(H=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Ee,{open:_,onOpenChange:x,children:[z,V]})}),t[24]=_,t[25]=z,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=E.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,E.join(`, `),`. You can set`,` `,E.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=!w||S,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(v,{className:`size-3.5`}),t[32]=J):J=t[32];let te;t[33]!==s||t[34]!==K||t[35]!==q?(te=(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)(g,{className:`shrink-0 self-end`,ref:D,autoFocus:K,disabled:q,onClick:s,children:[`Continue`,J]})]}),t[33]=s,t[34]=K,t[35]=q,t[36]=te):te=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==te||t[40]!==O||t[41]!==k||t[42]!==A?(Y=(0,$.jsxs)($.Fragment,{children:[O,k,A,U,W,te]}),t[37]=U,t[38]=W,t[39]=te,t[40]=O,t[41]=k,t[42]=A,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:a,onToggleEnvironment:o}=e,{environments:s}=ee(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={treatPendingAsSignedOut:!1},t[0]=c):c=t[0];let{isLoaded:l,isSignedIn:u}=fe(c),{openAuthPrompt:d}=me(),[f,p]=(0,Z.useState)(!0),[h,_]=(0,Z.useState)(!1),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>_(!0),t[1]=v):v=t[1];let b=v,x=f&&!!u&&h,S=r||!l,C;t[2]!==u||t[3]!==d?(C=e=>{u||(e.preventDefault(),p(!0),d())},t[2]=u,t[3]=d,t[4]=C):C=t[4];let w,T,E;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(g,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),T=(0,$.jsx)(i,{className:`size-4 text-muted-foreground`}),E=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=w,t[6]=T,t[7]=E):(w=t[5],T=t[6],E=t[7]);let D=l?u?h?null:`Loading computers…`:`Sign in`:`Loading sign-in…`,O;t[8]===D?O=t[9]:(O=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:D}),t[8]=D,t[9]=O);let k=f&&u&&`rotate-90`,A;t[10]===k?A=t[11]:(A=y(`size-4 text-muted-foreground`,k),t[10]=k,t[11]=A);let j;t[12]===A?j=t[13]:(j=(0,$.jsx)(m,{className:A}),t[12]=A,t[13]=j);let M;t[14]!==O||t[15]!==j||t[16]!==S||t[17]!==C?(M=(0,$.jsxs)(ke,{disabled:S,onClick:C,render:w,children:[T,E,O,j]}),t[14]=O,t[15]=j,t[16]=S,t[17]=C,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==s||t[21]!==u||t[22]!==o||t[23]!==a?(N=u?(0,$.jsx)(Pe,{primaryEnvironmentId:null,savedEnvironments:s,showSavedEnvironments:!0,onDiscoveryReady:b,selection:{selectedIds:a,onChange:o,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]=u,t[22]=o,t[23]=a,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)(De,{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]!==x?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Ee,{open:x,onOpenChange:p,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=x,t[35]=z):z=t[35],z}function vt(e){let t=(0,Q.c)(37),{isPairing:n,setIsPairing:r,onPaired:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},t[0]=a):a=t[0];let o=ae(we,a),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),d=(0,Z.useRef)(!0),f,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>(d.current=!0,()=>{d.current=!1}),p=[],t[1]=f,t[2]=p):(f=t[1],p=t[2]),(0,Z.useEffect)(f,p);let h;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(h=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!d.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(F(e))return;let t=P(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=h):h=t[8];let _=h,v;t[9]===_?v=t[10]:(v=e=>{e.preventDefault(),_()},t[9]=_,t[10]=v);let y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=y):y=t[11];let b=l.length>0,x=l?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>c(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==b||t[16]!==x?(C=(0,$.jsxs)(`div`,{children:[y,(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]===l?w=t[19]:(w=l?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:l})}):null,t[18]=l,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(ke,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(m,{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)(g,{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,$.jsxs)(`p`,{className:`pt-3 text-sm text-muted-foreground`,children:[`On the computer with your code, start P4 Code or run`,` `,(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli serve`}),`, then run:`]}),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,$.jsxs)(De,{children:[k,A,(0,$.jsxs)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:[`On a tailnet, run `,(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli pair --tailscale`}),` `,`instead.`]})]}),t[29]=j):j=t[29];let M;t[30]===O?M=t[31]:(M=(0,$.jsxs)(Ee,{children:[O,j]}),t[30]=O,t[31]=M);let N;return t[32]!==C||t[33]!==w||t[34]!==M||t[35]!==v?(N=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:v,children:[C,w,M]})}),t[32]=C,t[33]=w,t[34]=M,t[35]=v,t[36]=N):N=t[36],N}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}=ee(),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)(v,{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)(g,{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)(Yt,{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 o=a(i),s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s={reportFailure:!1},t[2]=s):s=t[2];let c=ae(Y.refreshProviders,s),l;t[3]===n?l=t[4]:(l=Y.configValueAtom(n),t[3]=n,t[4]=l);let u=a(l),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(!1),[h,_]=(0,Z.useState)(null),v=ne(n,E),y,b;t[5]!==n||t[6]!==c?(y=()=>{c({environmentId:n,input:{}})},b=[n,c],t[5]=n,t[6]=c,t[7]=y,t[8]=b):(y=t[7],b=t[8]),(0,Z.useEffect)(y,b);let x;t[9]===o?x=t[10]:(x=Ue(o),t[9]=o,t[10]=x);let S=x,C,w,T,D;if(t[11]!==S||t[12]!==v||t[13]!==h||t[14]!==n||t[15]!==r||t[16]!==o||t[17]!==u||t[18]!==d?.driver){let e;t[23]!==S||t[24]!==o?(e=e=>{let t=e===`codex`?o?.filter(t=>t.driver===e):void 0;return t?.length?t.map(t=>({driver:e,provider:t,instanceId:t.instanceId})):[{driver:e,provider:S.get(e),instanceId:S.get(e)?.instanceId}]},t[23]=S,t[24]=o,t[25]=e):e=t[25];let i=bt.flatMap(e);if(h){let e;t[26]===h?e=t[27]:(e=e=>e.instanceId===h.instanceId,t[26]=h,t[27]=e);let n=i.findIndex(e),[r]=n>=0?i.splice(n,1):[];i.unshift(r??{driver:`codex`,provider:void 0,instanceId:h.instanceId})}t[28]===r?D=t[29]:(D=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=D),t[30]===v?C=t[31]:(C=v?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=v,t[31]=C),w=`space-y-1.5`;let a;t[32]!==v||t[33]!==h||t[34]!==n||t[35]!==u||t[36]!==d?.driver?(a=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&u!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:u,createdAccount:i===h?.instanceId?h:null,onAutoStartConsumed:()=>_(wt),terminalOpen:d?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&f({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:u.cwd,command:r.installed?He(r,u.settings,u.environment.platform.os):Ye(t,u.environment.platform.os),keybindings:u.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:d?.driver===t,terminalAvailable:u!==null&&v,onOpenTerminal:()=>{r!==void 0&&u!==null&&X(n,`terminal:operate`)&&f({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:u.cwd,command:r.installed?He(r,u.settings,u.environment.platform.os):Ye(t,u.environment.platform.os),keybindings:u.keybindings})}},t)},t[32]=v,t[33]=h,t[34]=n,t[35]=u,t[36]=d?.driver,t[37]=a):a=t[37],T=i.map(a),t[11]=S,t[12]=v,t[13]=h,t[14]=n,t[15]=r,t[16]=o,t[17]=u,t[18]=d?.driver,t[19]=C,t[20]=w,t[21]=T,t[22]=D}else C=t[19],w=t[20],T=t[21],D=t[22];let O;t[38]!==w||t[39]!==T?(O=(0,$.jsx)(`div`,{className:w,children:T}),t[38]=w,t[39]=T,t[40]=O):O=t[40];let k;t[41]===o?k=t[42]:(k=o?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(g,{size:`xs`,variant:`ghost-muted`,onClick:()=>m(!0),children:`Connect another ChatGPT account`})}):null,t[41]=o,t[42]=k);let A;t[43]!==p||t[44]!==n?(A=p?(0,$.jsx)(Ke,{environmentId:n,onClose:()=>m(!1),onAccountCreated:(e,t)=>_({instanceId:e,displayName:t,autoStart:!0})}):null,t[43]=p,t[44]=n,t[45]=A):A=t[45];let j;t[46]!==n||t[47]!==c||t[48]!==d?(j=d===null?null:(0,$.jsx)(Dt,{session:d,onClose:()=>{f(null),c({environmentId:n,input:{}})}},`${d.environmentId}:${d.providerInstanceId}:${d.driver}`),t[46]=n,t[47]=c,t[48]=d,t[49]=j):j=t[49];let M;return t[50]!==C||t[51]!==O||t[52]!==k||t[53]!==A||t[54]!==j||t[55]!==D?(M=(0,$.jsxs)(`section`,{children:[D,C,O,k,A,j]}),t[50]=C,t[51]=O,t[52]=k,t[53]=A,t[54]=j,t[55]=D,t[56]=M):M=t[56],M}function Ct(e){return e.driver===`codex`&&Ge(e)===`ready`}function wt(e){return e?{...e,autoStart:!1}:null}function Tt(e){let t=(0,Q.c)(28),{createdAccount:n,onAutoStartConsumed:r,environmentId:i,provider:a,serverConfig:o,terminalOpen:s,onOpenTerminal:c}=e,l=ne(i,E),u=ae(Y.updateSettings,`Codex setup settings`),d;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(d=n?.instanceId??a?.instanceId??T(C.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=d):d=t[2];let f=d,p=o.settings,m;t[3]!==n||t[4]!==f||t[5]!==p.providerInstances?(m=p.providerInstances[f]??{driver:C.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=f,t[5]=p.providerInstances,t[6]=m):m=t[6];let h=m,g;t[7]===h.config?g=t[8]:(g=Je(h.config),t[7]=h.config,t[8]=g);let _=g,v=_===`existing`&&h.config!==null&&typeof h.config==`object`&&`setupMode`in h.config&&h.config.setupMode===`existing`,y;t[9]!==i||t[10]!==h||t[11]!==f||t[12]!==p||t[13]!==u?(y=e=>{u({environmentId:i,input:{patch:Ve({settings:p,instanceId:f,instance:{...h,enabled:!0,config:{...h.config!==null&&typeof h.config==`object`?h.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=h,t[11]=f,t[12]=p,t[13]=u,t[14]=y):y=t[14];let b=y,x;return t[15]!==l||t[16]!==b||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==v||t[21]!==f||t[22]!==_||t[23]!==r||t[24]!==c||t[25]!==a||t[26]!==s?(x=v?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:s,terminalAvailable:l,onOpenTerminal:c}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:f,provider:a,mode:_,enabled:a?.enabled??!0,onModeChange:b}),t[15]=l,t[16]=b,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=v,t[21]=f,t[22]=_,t[23]=r,t[24]=c,t[25]=a,t[26]=s,t[27]=x):x=t[27],x}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:i,terminalAvailable:a,onOpenTerminal:o}=e,l;t[0]===n?l=t[1]:(l=Se.get(C.make(n)),t[0]=n,t[1]=l);let u=l,d=r?.displayName||(n===`claudeAgent`?`Claude Code`:u?.label??n),f;t[2]===r?f=t[3]:(f=qe(r),t[2]=r,t[3]=f);let p=f,m;t[4]===r?m=t[5]:(m=Ge(r),t[4]=r,t[5]=m);let h=m,_;t[6]===n?_=t[7]:(_=C.make(n),t[6]=n,t[7]=_);let v;t[8]!==d||t[9]!==_?(v=(0,$.jsx)(Ce,{driverKind:_,displayName:d,iconClassName:`size-5`}),t[8]=d,t[9]=_,t[10]=v):v=t[10];let y;t[11]===d?y=t[12]:(y=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:d}),t[11]=d,t[12]=y);let b=h===`ready`?`Ready to code.`:p.headline,x=h!==`ready`&&p.detail?` · ${p.detail}`:``,S;t[13]!==b||t[14]!==x?(S=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[b,x]}),t[13]=b,t[14]=x,t[15]=S):S=t[15];let w;t[16]!==y||t[17]!==S?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[y,S]}),t[16]=y,t[17]=S,t[18]=w):w=t[18];let T;t[19]!==o||t[20]!==h||t[21]!==p||t[22]!==a||t[23]!==i?(T=(0,$.jsx)(`div`,{className:`shrink-0`,children:h===`ready`?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,$.jsx)(c,{className:`size-3.5`}),`Ready`]}):h===`checking`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):h===`disabled`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Disabled`}):h===`attention`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:p.headline}):(0,$.jsxs)(g,{size:`xs`,variant:`ghost`,onClick:o,disabled:i||!a,children:[(0,$.jsx)(s,{className:`size-3.5`}),h===`signIn`?`Sign in`:`Install`]})}),t[19]=o,t[20]=h,t[21]=p,t[22]=a,t[23]=i,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==v?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[v,w,T]}),t[25]=w,t[26]=T,t[27]=v,t[28]=E):E=t[28],E}function Dt(e){let t=(0,Q.c)(60),{session:n,onClose:r}=e,{command:i,cwd:a,driver:o,environmentId:s,keybindings:c,providerInstanceId:u}=n,d=ne(s,E),[p]=l(Re,!1,S),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={reportFailure:!1},t[0]=m):m=t[0];let _=ae(ve.open,m),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v={reportFailure:!1},t[1]=v):v=t[1];let y=ae(ve.write,v),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={reportFailure:!1},t[2]=b):b=t[2];let x=ae(ve.close,b),C;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(C=Promise.resolve(),t[3]=C):C=t[3];let w=(0,Z.useRef)(C),T=(0,Z.useRef)(0),D=(0,Z.useRef)(null),O;t[4]===o?O=t[5]:(O=()=>`onboarding-${o}-${h()}`,t[4]=o,t[5]=O);let[k]=(0,Z.useState)(O),A;t[6]===s?A=t[7]:(A=f(s,dt),t[6]=s,t[7]=A);let j=A,[M,N]=(0,Z.useState)(0),[P,F]=(0,Z.useState)(`preparing`),I=P===`ready`||P===`writeFailed`,L;t[8]!==x||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==_||t[13]!==u||t[14]!==k||t[15]!==y?(L=()=>{let e=T.current+1;return T.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 _({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 y({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]=_,t[13]=u,t[14]=k,t[15]=y,t[16]=L):L=t[16];let R;t[17]!==x||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==_||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==y?(R=[x,i,a,s,_,u,M,k,y],t[17]=x,t[18]=i,t[19]=a,t[20]=s,t[21]=_,t[22]=u,t[23]=M,t[24]=k,t[25]=y,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)(g,{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)(g,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==p||t[46]!==a||t[47]!==o||t[48]!==c||t[49]!==r||t[50]!==u||t[51]!==k||t[52]!==I||t[53]!==j?(G=I?(0,$.jsx)(_e,{threadRef:j,threadId:dt,terminalId:k,terminalLabel:`Install ${o}`,cwd:a,providerInstanceId:u,advancedTypography:p,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:c}):null,t[45]=p,t[46]=a,t[47]=o,t[48]=c,t[49]=r,t[50]=u,t[51]=k,t[52]=I,t[53]=j,t[54]=G):G=t[54];let K;t[55]===G?K=t[56]:(K=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=K);let q;return t[57]!==W||t[58]!==K?(q=(0,$.jsxs)(`div`,{"data-thread-terminal-drawer":!0,className:`mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground`,children:[W,K]}),t[57]=W,t[58]=K,t[59]=q):q=t[59],q}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(85),{scans:n,importSelection:r,onImportSelectionChange:i,isImporting:a,setIsImporting:s,onDone:c}=e,{environments:l}=ee(),u=re(n,A),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[0]=d):d=t[0];let f=ae(H.create,d),p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p={reportFailure:!1},t[1]=p):p=t[1];let m=ae(ot,p),h=(0,Z.useRef)(``),v=(0,Z.useRef)(0),y;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=new Map,t[2]=y):y=t[2];let b=(0,Z.useRef)(y),x;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(x=new Map,t[3]=x):x=t[3];let S=(0,Z.useRef)(x),C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=[],t[4]=C):C=t[4];let w=(0,Z.useRef)(C),T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Map,t[5]=T):T=t[5];let E=(0,Z.useRef)(T),D=(0,Z.useRef)(0),k,j;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>(D.current+=1,()=>{D.current+=1}),j=[],t[6]=k,t[7]=j):(k=t[6],j=t[7]),(0,Z.useEffect)(k,j);let M;t[8]===n?M=t[9]:(M=Qe(n.flatMap(Bt)),t[8]=n,t[9]=M);let{available:N,recent:P}=M,I;t[10]===P?I=t[11]:(I=new Set(P.map(zt)),t[10]=P,t[11]=I);let L=I,R;if(t[12]!==N||t[13]!==r||t[14]!==L){let e;t[16]!==r||t[17]!==L?(e=e=>r?.environmentIds.has(e.environmentId)?r.keys.has(e.key):L.has(e.key),t[16]=r,t[17]=L,t[18]=e):e=t[18],R=N.filter(e),t[12]=N,t[13]=r,t[14]=L,t[15]=R}else R=t[15];let z=R,B;t[19]===z?B=t[20]:(B=new Set(z.map(Rt)),t[19]=z,t[20]=B);let V=B,K;t[21]!==i||t[22]!==n?(K=e=>i({environmentIds:new Set(n.flatMap(Lt)),keys:e}),t[21]=i,t[22]=n,t[23]=K):K=t[23];let q=K,J;if(t[24]!==z||t[25]!==u){let e;t[27]===u?e=t[28]:(e=e=>u.has(e.environmentId),t[27]=u,t[28]=e),J=z.every(e),t[24]=z,t[25]=u,t[26]=J}else J=t[26];let te=J,[Y,ne]=(0,Z.useState)(``),X=te?Y===kt?``:Y:kt,ie;t[29]!==c||t[30]!==s?(ie=()=>{let e=nt(w.current,S.current,b.current);if(e===void 0){c(void 0,h.current,v.current);return}s(!0);let t=D.current;U(e).then(()=>e,It).then(async e=>{t===D.current&&(await c(e,h.current,v.current)||s(!1))})},t[29]=c,t[30]=s,t[31]=ie):ie=t[31];let oe=ie,se;t[32]!==f||t[33]!==oe||t[34]!==m||t[35]!==a||t[36]!==c||t[37]!==n||t[38]!==s?(se=async e=>{if(a)return;let t=()=>e.every(Ft),r=()=>{s(!1),ne(kt)};if(!t()){r();return}if(e.length===0){c();return}s(!0),h.current=``,v.current=0,w.current=e.map(Pt);let i=D.current,l=b.current,u=E.current,d=l.size>0?e.filter(e=>l.has(e.key)).length:0,p=0,g=0,y=new Set;for(let n of e){let{environmentId:e}=n;if(i!==D.current||l!==b.current)return;if(!t()){r();return}if(l.has(n.key))continue;let a=tt(W(),e,n);if(a===null){let t=u.get(n.key);if(t===void 0){let e=_();t={projectId:e,commandId:O.make(`onboarding:project:create:${e}`)},u.set(n.key,t)}a=t.projectId;let r=await f({environmentId:e,input:{projectId:a,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(i!==D.current||l!==b.current)return;if(r._tag!==`Success`){F(r)||(u.delete(n.key),y.add(e));continue}}if(!t()){r();return}let s=await m({environmentId:e,input:{projectId:a,expectedWorkspaceRoot:n.path}});if(i!==D.current||l!==b.current)return;s._tag===`Success`?(p+=s.value.importedCount,g+=s.value.skippedCount,s.value.importedCount>0&&S.current.set(n.key,o(e,a)),s.value.skippedCount===0&&(d+=1,l.set(n.key,o(e,a)))):F(s)||(u.delete(n.key),y.add(e))}for(let e of n)y.has(e.environmentId)&&e.refresh();s(!1),v.current=p,d<e.length&&(p>0&&g>0?h.current=`Imported ${p} ${p===1?`thread`:`threads`}. ${g} ${g===1?`thread`:`threads`} could not be imported.`:g>0?h.current=`${g} ${g===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[32]=f,t[33]=oe,t[34]=m,t[35]=a,t[36]=c,t[37]=n,t[38]=s,t[39]=se):se=t[39];let ce=se;if(n.every(Nt)&&n.some(Mt)){let e;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[40]=e):e=t[40];let n;t[41]===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[41]=n):n=t[41];let r;return t[42]===c?r=t[43]:(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)(g,{variant:`ghost-muted`,onClick:()=>void c(),children:`Do not import projects`})})]}),t[42]=c,t[43]=r),r}let le;t[44]!==N||t[45]!==a||t[46]!==z.length||t[47]!==q?(le=N.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:[z.length,` of `,N.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(g,{variant:`ghost`,size:`xs`,disabled:a||z.length===N.length,onClick:()=>q(new Set(N.map(jt))),children:`Select all`}),(0,$.jsx)(g,{variant:`ghost`,size:`xs`,disabled:a||z.length===0,onClick:()=>q(new Set),children:`Select none`})]})]}):null,t[44]=N,t[45]=a,t[46]=z.length,t[47]=q,t[48]=le):le=t[48];let ue;if(t[49]!==N||t[50]!==l||t[51]!==a||t[52]!==n||t[53]!==V||t[54]!==q){let e;t[56]!==N||t[57]!==l||t[58]!==a||t[59]!==n.length||t[60]!==V||t[61]!==q?(e=e=>{let t=N.filter(t=>t.environmentId===e.environmentId),r=l.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:a,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:r}):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)(g,{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)(Vt,{candidates:t,selectedKeys:V,onSelectionChange:q})]},e.environmentId)},t[56]=N,t[57]=l,t[58]=a,t[59]=n.length,t[60]=V,t[61]=q,t[62]=e):e=t[62],ue=n.map(e),t[49]=N,t[50]=l,t[51]=a,t[52]=n,t[53]=V,t[54]=q,t[55]=ue}else ue=t[55];let fe;t[63]===ue?fe=t[64]:(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[63]=ue,t[64]=fe);let pe;t[65]===X?pe=t[66]:(pe=X?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:X}):null,t[65]=X,t[66]=pe);let me;t[67]!==oe||t[68]!==a?(me=(0,$.jsx)(g,{variant:`ghost-muted`,disabled:a,onClick:oe,children:`Do not import projects`}),t[67]=oe,t[68]=a,t[69]=me):me=t[69];let he=!te||a||z.length===0,ge;t[70]!==ce||t[71]!==z?(ge=()=>void ce(z),t[70]=ce,t[71]=z,t[72]=ge):ge=t[72];let _e=a?`Importing…`:`Import ${z.length} ${z.length===1?`project`:`projects`}`,ve;t[73]!==he||t[74]!==ge||t[75]!==_e?(ve=(0,$.jsx)(g,{autoFocus:!0,disabled:he,onClick:ge,children:_e}),t[73]=he,t[74]=ge,t[75]=_e,t[76]=ve):ve=t[76];let ye;t[77]!==me||t[78]!==ve?(ye=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[me,ve]}),t[77]=me,t[78]=ve,t[79]=ye):ye=t[79];let be;return t[80]!==le||t[81]!==fe||t[82]!==pe||t[83]!==ye?(be=(0,$.jsxs)(Yt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[le,fe,pe,ye]}),t[80]=le,t[81]=fe,t[82]=pe,t[83]=ye,t[84]=be):be=t[84],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,A)}function It(){}function Lt(e){return e.data===null?[]:[e.environmentId]}function Rt(e){return e.key}function zt(e){return e.key}function Bt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function Vt(e){let t=(0,Q.c)(25),{candidates:n,selectedKeys:r,onSelectionChange:i}=e,a;t[0]===n?a=t[1]:(a=et(n),t[0]=n,t[1]=a);let{repositories:o,other:s}=a,c;t[2]!==i||t[3]!==r?(c=(e,t)=>{let n=new Set(r);for(let r of e)t?n.add(r):n.delete(r);i(n)},t[2]=i,t[3]=r,t[4]=c):c=t[4];let l=c,u;if(t[5]!==s||t[6]!==r){let e;t[8]===r?e=t[9]:(e=e=>r.has(e.key),t[8]=r,t[9]=e),u=s.filter(e),t[5]=s,t[6]=r,t[7]=u}else u=t[7];let d=u.length,f;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Ut,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],f=o.map(e),t[10]=o,t[11]=r,t[12]=l,t[13]=f}else f=t[13];let p;t[17]!==s||t[18]!==d||t[19]!==r||t[20]!==l?(p=s.length>0?(0,$.jsxs)(Ee,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:d===s.length,indeterminate:d>0&&d<s.length,onCheckedChange:e=>l(s.map(Ht),e===!0)}),(0,$.jsxs)(ke,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(m,{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)(De,{children:s.map(e=>(0,$.jsx)(qt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>l([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=d,t[19]=r,t[20]=l,t[21]=p):p=t[21];let h;return t[22]!==f||t[23]!==p?(h=(0,$.jsxs)($.Fragment,{children:[f,p]}),t[22]=f,t[23]=p,t[24]=h):h=t[24],h}function Ht(e){return e.key}function Ut(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(Gt);let e;t[4]===r?e=t[5]:(e=e=>r.has(e),t[4]=r,t[5]=e),o=a.filter(e),t[0]=n.candidates,t[1]=r,t[2]=a,t[3]=o}else a=t[2],o=t[3];let s=o.length,c=n.candidates.length===1,l=n.candidates[0];if(c&&l!==void 0){let e=n.label,a=l.path,o;t[6]!==l.key||t[7]!==r?(o=r.has(l.key),t[6]=l.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==l.key?(s=e=>i([l.key],e),t[9]=i,t[10]=l.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==l||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(qt,{candidate:l,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=l,t[14]=o,t[15]=s,t[16]=c):c=t[16],c}let u=s===a.length,d=s>0&&s<a.length,f;t[17]!==a||t[18]!==i?(f=e=>i(a,e===!0),t[17]=a,t[18]=i,t[19]=f):f=t[19];let p;t[20]!==u||t[21]!==d||t[22]!==f?(p=(0,$.jsx)(ge,{checked:u,indeterminate:d,onCheckedChange:f}),t[20]=u,t[21]=d,t[22]=f,t[23]=p):p=t[23];let h;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(m,{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(Wt)),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)(Jt,{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)(ke,{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]!==p?(x=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[p,b]}),t[38]=b,t[39]=p,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)(qt,{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)(De,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Ee,{defaultOpen:!0,children:[x,C]}),t[50]=x,t[51]=C,t[52]=w):w=t[52],w}function Wt(e){return e.sources}function Gt(e){return e.key}function Kt(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=y(`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 qt(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=y(`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)(Kt,{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 b=c?null:n.sources,x;t[21]!==n.lastActiveAt||t[22]!==n.threadCount||t[23]!==b?(x=(0,$.jsx)(Jt,{sources:b,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[21]=n.lastActiveAt,t[22]=n.threadCount,t[23]=b,t[24]=x):x=t[24];let S;return t[25]!==v||t[26]!==x||t[27]!==u||t[28]!==f?(S=(0,$.jsxs)(`label`,{className:u,children:[f,v,x]}),t[25]=v,t[26]=x,t[27]=u,t[28]=f,t[29]=S):S=t[29],S}function Jt(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,s=o===null?``:o.suffix===null?`now`:o.value,c;t[2]===n?c=t[3]:(c=n?.includes(`claudeAgent`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Claude Code`,children:(0,$.jsx)(Ce,{driverKind:C.make(`claudeAgent`),displayName:`Claude Code`,iconClassName:`size-3`})}):null,t[2]=n,t[3]=c);let l;t[4]===c?l=t[5]:(l=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:c}),t[4]=c,t[5]=l);let u;t[6]===n?u=t[7]:(u=n?.includes(`codex`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Codex`,children:(0,$.jsx)(Ce,{driverKind:C.make(`codex`),displayName:`Codex`,iconClassName:`size-3`})}):null,t[6]=n,t[7]=u);let d;t[8]===u?d=t[9]:(d=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:u}),t[8]=u,t[9]=d);let f;t[10]===r?f=t[11]:(f=(0,$.jsx)(`span`,{className:`text-right`,children:r}),t[10]=r,t[11]=f);let p;t[12]===s?p=t[13]:(p=(0,$.jsx)(`span`,{className:`text-right whitespace-nowrap`,children:s}),t[12]=s,t[13]=p);let m;return t[14]!==l||t[15]!==d||t[16]!==f||t[17]!==p?(m=(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:[l,d,f,p]}),t[14]=l,t[15]=d,t[16]=f,t[17]=p,t[18]=m):m=t[18],m}function Yt(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 Xt=j(D);function Zt(){let e=(0,Q.c)(14),{authGateState:t}=je.useRouteContext(),n=K(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:$t},e[0]=r):r=e[0];let i=q(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?N(Xt(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:Qt},e[3]=s):s=e[3];let c=q(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{u(!0),e===void 0?await n({to:`/`,replace:!0}):await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}))}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Qt(e){return e.pathname===`/welcome`}function $t(e){return e.hash}export{Zt as component};
2
- //# sourceMappingURL=welcome-D36q57wJ.js.map
1
+ import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Jl as i,Jo as a,Js as o,Nf as s,Ol as c,Os as l,Td as u,Yo as d,Ys as f,es as p,jl as m,l as h,mr as g,o as _,sl as v,t as y,td as b,ws as x}from"./utils-DFNDxNZi.js";import{Ec as S,Hi as C,Sc as w,Wi as T,fa as E,hc as D,mc as O,n as k,ra as A,ul as j,vg as M,xg as N}from"./src-BVovWpja.js";import{Ar as P,Tr as F,W as I,Zr as L,br as R,t as z,yr as B}from"./runtime-DIAcbMTc.js";import{$ as V,G as H,N as U,u as W}from"./entities-HOBDIiHK.js";import{t as G}from"./spinner-7CSKKESP.js";import{t as K}from"./useNavigate-DVrOlf8m.js";import{t as q}from"./useLocation-CIvcNoeU.js";import{a as J}from"./relay-YiJpGyaO.js";import{D as ee,O as te}from"./useSettings-BWMcQzC-.js";import{f as Y}from"./server-BNjk2K1j.js";import{i as ne,n as X,o as re}from"./session-DMNo4Bh3.js";import{t as ie}from"./query-Bw8YoCbO.js";import{t as ae}from"./use-atom-command-C4Tyb1VL.js";import{a as oe}from"./timestampFormat-Dq7sHZpd.js";import{a as se,n as ce,t as le}from"./tooltip-CGvxq8k3.js";import{t as ue}from"./input-DxHa9qj5.js";import{t as de}from"./scroll-area-CokPD3-i.js";import{r as fe}from"./dist-J7s-H61h.js";import{t as pe}from"./dialog-CrLVN_m6.js";import{t as me}from"./useP4ConnectAuthPrompt-BPXqJdyY.js";import{t as he}from"./CommandBlock-DH_L_Tgo.js";import{t as ge}from"./checkbox-CxRqp4sO.js";import{t as _e}from"./ThreadTerminalDrawer-Ci0mbLzJ.js";import{i as ve}from"./terminalSessions-EUiRWJti.js";import{n as ye}from"./useHandleNewThread-Qb_yy6KY.js";import{r as be,t as xe}from"./alert-D1O9oex3.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-D6Iy8SVv.js";import{t as we}from"./onboarding-plATuZco.js";import{Co as Te,Do as Ee,Eo as De,Oo as Oe,So as ke,To as Ae,_ as je,f as Me,ln as Ne,mi as Pe,mn as Fe,po as Ie,un as Le,wo as Re}from"./main-BFdCLmkY.js";import{t as ze}from"./NoProjectsHero-D0OPZtzO.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-BTJUBh-T.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-kKJPABQZ.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);a===void 0?t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt}):(a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)}))}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=V(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=R(z,{label:`environment-data:agent-sessions:scan`,tag:k.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=B(z,{label:`environment-data:agent-sessions:import`,tag:k.agentSessionsImport});function st(e){return L(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)(d),r;return t[0]!==e||t[1]!==n?(r=p(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:M(x(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],a(r)}var $=e(r(),1),ut=[],dt=w.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=Fe(),[i,a]=(0,Z.useState)(n?`agents`:`connection`),{environments:o}=ee(),[s,c]=(0,Z.useState)(null),l=(0,Z.useRef)(new Set),[u,d]=(0,Z.useState)(n?[n]:[]),[f,p]=(0,Z.useState)(null),[m,h]=(0,Z.useState)(!1),g=(0,Z.useRef)(null),_=(0,Z.useRef)(null),v=te();(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 y=s??new Set(v?[v.environmentId]:[]),b=lt(i===`import`?u:ut),x=i===`import`&&b.every(e=>e.data===null)&&b.some(e=>e.isPending),S=e=>{e.length!==0&&(d(e),a(`agents`))},C=i===`agents`?1:i===`import`?2:0,w=(0,Z.useCallback)((e,n,i=0)=>{if(g.current!==null)return g.current;_.current!==null&&(J.close(_.current),_.current=null);let a=r().then(async()=>(_.current!==null&&(J.close(_.current),_.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 _.current===null?_.current=J.add(e):J.update(_.current,e),!1}).finally(()=>{g.current===a&&(g.current=null)});return g.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)(ke,{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)(Pe,{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)(Ae,{steps:ft,currentStep:C,isStepDisabled:e=>m||e>=C,onStepChange:e=>{m||e>C||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Te,{holdHeight:x,children:i===`connection`?(0,$.jsx)(ht,{expandPairingInitially:!e&&!I(),selectedIds:y,autoSelectedComputers:l.current,onSelectionChange:c,onToggleEnvironment:(e,t)=>c(n=>{let r=new Set(n??y);return t?r.add(e):r.delete(e),r}),onContinue:()=>S(ct(o,y).environmentIds),onPaired:e=>{c(new Set([...y,e]))}}):i===`agents`?(0,$.jsx)(xt,{environmentIds:u,onContinue:()=>a(`import`)}):(0,$.jsx)(At,{scans:b,importSelection:f,onImportSelectionChange:p,isImporting:m,setIsImporting:h,onDone:w})})]}),(0,$.jsx)(je,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:i,onSelectionChange:a,onToggleEnvironment:o,onContinue:s,onPaired:c}=e,{environments:l}=ee(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=I(),t[0]=d):d=t[0];let f=d,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>!f||!st(e),t[1]=p):p=t[1];let h=l.filter(p),[_,x]=(0,Z.useState)(r),[S,C]=(0,Z.useState)(!1),{ready:w,skippedIds:T}=ct(l,i),E=l.filter(e=>T.includes(e.environmentId)).map(gt),D=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{w&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&D.current?.focus()},[w]);let O,k;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Connect your computers`}),k=(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]=O,t[3]=k):(O=t[2],k=t[3]);let A=h.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),h.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:i.has(e.environmentId),onCheckedChange:t=>{let n=new Set(i);t?n.add(e.environmentId):n.delete(e.environmentId),a(n)}}),(0,$.jsx)(u,{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`:Le(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]!==S||t[6]!==o||t[7]!==i?(j=f?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:S,selectedIds:i,onToggleEnvironment:o}):null,t[4]=n,t[5]=S,t[6]=o,t[7]=i,t[8]=j):j=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(g,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(b,{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`,L;t[12]===F?L=t[13]:(L=y(`size-4 text-muted-foreground`,F),t[12]=F,t[13]=L);let R;t[14]===L?R=t[15]:(R=(0,$.jsx)(m,{className:L}),t[14]=L,t[15]=R);let z;t[16]!==S||t[17]!==R?(z=(0,$.jsxs)(Oe,{disabled:S,render:M,children:[N,P,R]}),t[16]=S,t[17]=R,t[18]=z):z=t[18];let B;t[19]===c?B=t[20]:(B=e=>{x(!1),c(e),requestAnimationFrame(()=>D.current?.focus())},t[19]=c,t[20]=B);let V;t[21]!==S||t[22]!==B?(V=(0,$.jsx)(Ee,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:S,setIsPairing:C,onPaired:B})})}),t[21]=S,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==_||t[25]!==z||t[26]!==V?(H=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(De,{open:_,onOpenChange:x,children:[z,V]})}),t[24]=_,t[25]=z,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=E.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,E.join(`, `),`. You can set`,` `,E.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=!w||S,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(v,{className:`size-3.5`}),t[32]=J):J=t[32];let te;t[33]!==s||t[34]!==K||t[35]!==q?(te=(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)(g,{className:`shrink-0 self-end`,ref:D,autoFocus:K,disabled:q,onClick:s,children:[`Continue`,J]})]}),t[33]=s,t[34]=K,t[35]=q,t[36]=te):te=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==te||t[40]!==O||t[41]!==k||t[42]!==A?(Y=(0,$.jsxs)($.Fragment,{children:[O,k,A,U,W,te]}),t[37]=U,t[38]=W,t[39]=te,t[40]=O,t[41]=k,t[42]=A,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:a,onToggleEnvironment:o}=e,{environments:s}=ee(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={treatPendingAsSignedOut:!1},t[0]=c):c=t[0];let{isLoaded:l,isSignedIn:u}=fe(c),{openAuthPrompt:d}=me(),[f,p]=(0,Z.useState)(!0),[h,_]=(0,Z.useState)(!1),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>_(!0),t[1]=v):v=t[1];let b=v,x=f&&!!u&&h,S=r||!l,C;t[2]!==u||t[3]!==d?(C=e=>{u||(e.preventDefault(),p(!0),d())},t[2]=u,t[3]=d,t[4]=C):C=t[4];let w,T,E;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(g,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),T=(0,$.jsx)(i,{className:`size-4 text-muted-foreground`}),E=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=w,t[6]=T,t[7]=E):(w=t[5],T=t[6],E=t[7]);let D=l?u?h?null:`Loading computers…`:`Sign in`:`Loading sign-in…`,O;t[8]===D?O=t[9]:(O=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:D}),t[8]=D,t[9]=O);let k=f&&u&&`rotate-90`,A;t[10]===k?A=t[11]:(A=y(`size-4 text-muted-foreground`,k),t[10]=k,t[11]=A);let j;t[12]===A?j=t[13]:(j=(0,$.jsx)(m,{className:A}),t[12]=A,t[13]=j);let M;t[14]!==O||t[15]!==j||t[16]!==S||t[17]!==C?(M=(0,$.jsxs)(Oe,{disabled:S,onClick:C,render:w,children:[T,E,O,j]}),t[14]=O,t[15]=j,t[16]=S,t[17]=C,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==s||t[21]!==u||t[22]!==o||t[23]!==a?(N=u?(0,$.jsx)(Ne,{primaryEnvironmentId:null,savedEnvironments:s,showSavedEnvironments:!0,onDiscoveryReady:b,selection:{selectedIds:a,onChange:o,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]=u,t[22]=o,t[23]=a,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)(Ee,{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]!==x?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(De,{open:x,onOpenChange:p,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=x,t[35]=z):z=t[35],z}function vt(e){let t=(0,Q.c)(37),{isPairing:n,setIsPairing:r,onPaired:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},t[0]=a):a=t[0];let o=ae(we,a),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),d=(0,Z.useRef)(!0),f,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f=()=>(d.current=!0,()=>{d.current=!1}),p=[],t[1]=f,t[2]=p):(f=t[1],p=t[2]),(0,Z.useEffect)(f,p);let h;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(h=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!d.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(F(e))return;let t=P(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=h):h=t[8];let _=h,v;t[9]===_?v=t[10]:(v=e=>{e.preventDefault(),_()},t[9]=_,t[10]=v);let y;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=y):y=t[11];let b=l.length>0,x=l?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>c(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==b||t[16]!==x?(C=(0,$.jsxs)(`div`,{children:[y,(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]===l?w=t[19]:(w=l?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:l})}):null,t[18]=l,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Oe,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(m,{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)(g,{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,$.jsxs)(`p`,{className:`pt-3 text-sm text-muted-foreground`,children:[`On the computer with your code, start P4 Code or run`,` `,(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli serve`}),`, then run:`]}),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,$.jsxs)(Ee,{children:[k,A,(0,$.jsxs)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:[`On a tailnet, run `,(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli pair --tailscale`}),` `,`instead.`]})]}),t[29]=j):j=t[29];let M;t[30]===O?M=t[31]:(M=(0,$.jsxs)(De,{children:[O,j]}),t[30]=O,t[31]=M);let N;return t[32]!==C||t[33]!==w||t[34]!==M||t[35]!==v?(N=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:v,children:[C,w,M]})}),t[32]=C,t[33]=w,t[34]=M,t[35]=v,t[36]=N):N=t[36],N}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}=ee(),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)(v,{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)(g,{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)(Yt,{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 o=a(i),s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s={reportFailure:!1},t[2]=s):s=t[2];let c=ae(Y.refreshProviders,s),l;t[3]===n?l=t[4]:(l=Y.configValueAtom(n),t[3]=n,t[4]=l);let u=a(l),[d,f]=(0,Z.useState)(null),[p,m]=(0,Z.useState)(!1),[h,_]=(0,Z.useState)(null),v=ne(n,E),y,b;t[5]!==n||t[6]!==c?(y=()=>{c({environmentId:n,input:{}})},b=[n,c],t[5]=n,t[6]=c,t[7]=y,t[8]=b):(y=t[7],b=t[8]),(0,Z.useEffect)(y,b);let x;t[9]===o?x=t[10]:(x=Ue(o),t[9]=o,t[10]=x);let S=x,C,w,T,D;if(t[11]!==S||t[12]!==v||t[13]!==h||t[14]!==n||t[15]!==r||t[16]!==o||t[17]!==u||t[18]!==d?.driver){let e;t[23]!==S||t[24]!==o?(e=e=>{let t=e===`codex`?o?.filter(t=>t.driver===e):void 0;return t?.length?t.map(t=>({driver:e,provider:t,instanceId:t.instanceId})):[{driver:e,provider:S.get(e),instanceId:S.get(e)?.instanceId}]},t[23]=S,t[24]=o,t[25]=e):e=t[25];let i=bt.flatMap(e);if(h){let e;t[26]===h?e=t[27]:(e=e=>e.instanceId===h.instanceId,t[26]=h,t[27]=e);let n=i.findIndex(e),[r]=n>=0?i.splice(n,1):[];i.unshift(r??{driver:`codex`,provider:void 0,instanceId:h.instanceId})}t[28]===r?D=t[29]:(D=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=D),t[30]===v?C=t[31]:(C=v?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=v,t[31]=C),w=`space-y-1.5`;let a;t[32]!==v||t[33]!==h||t[34]!==n||t[35]!==u||t[36]!==d?.driver?(a=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&u!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:u,createdAccount:i===h?.instanceId?h:null,onAutoStartConsumed:()=>_(wt),terminalOpen:d?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&f({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:u.cwd,command:r.installed?He(r,u.settings,u.environment.platform.os):Ye(t,u.environment.platform.os),keybindings:u.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:d?.driver===t,terminalAvailable:u!==null&&v,onOpenTerminal:()=>{r!==void 0&&u!==null&&X(n,`terminal:operate`)&&f({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:u.cwd,command:r.installed?He(r,u.settings,u.environment.platform.os):Ye(t,u.environment.platform.os),keybindings:u.keybindings})}},t)},t[32]=v,t[33]=h,t[34]=n,t[35]=u,t[36]=d?.driver,t[37]=a):a=t[37],T=i.map(a),t[11]=S,t[12]=v,t[13]=h,t[14]=n,t[15]=r,t[16]=o,t[17]=u,t[18]=d?.driver,t[19]=C,t[20]=w,t[21]=T,t[22]=D}else C=t[19],w=t[20],T=t[21],D=t[22];let O;t[38]!==w||t[39]!==T?(O=(0,$.jsx)(`div`,{className:w,children:T}),t[38]=w,t[39]=T,t[40]=O):O=t[40];let k;t[41]===o?k=t[42]:(k=o?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(g,{size:`xs`,variant:`ghost-muted`,onClick:()=>m(!0),children:`Connect another ChatGPT account`})}):null,t[41]=o,t[42]=k);let A;t[43]!==p||t[44]!==n?(A=p?(0,$.jsx)(Ke,{environmentId:n,onClose:()=>m(!1),onAccountCreated:(e,t)=>_({instanceId:e,displayName:t,autoStart:!0})}):null,t[43]=p,t[44]=n,t[45]=A):A=t[45];let j;t[46]!==n||t[47]!==c||t[48]!==d?(j=d===null?null:(0,$.jsx)(Dt,{session:d,onClose:()=>{f(null),c({environmentId:n,input:{}})}},`${d.environmentId}:${d.providerInstanceId}:${d.driver}`),t[46]=n,t[47]=c,t[48]=d,t[49]=j):j=t[49];let M;return t[50]!==C||t[51]!==O||t[52]!==k||t[53]!==A||t[54]!==j||t[55]!==D?(M=(0,$.jsxs)(`section`,{children:[D,C,O,k,A,j]}),t[50]=C,t[51]=O,t[52]=k,t[53]=A,t[54]=j,t[55]=D,t[56]=M):M=t[56],M}function Ct(e){return e.driver===`codex`&&Ge(e)===`ready`}function wt(e){return e?{...e,autoStart:!1}:null}function Tt(e){let t=(0,Q.c)(28),{createdAccount:n,onAutoStartConsumed:r,environmentId:i,provider:a,serverConfig:o,terminalOpen:s,onOpenTerminal:c}=e,l=ne(i,E),u=ae(Y.updateSettings,`Codex setup settings`),d;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(d=n?.instanceId??a?.instanceId??T(C.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=d):d=t[2];let f=d,p=o.settings,m;t[3]!==n||t[4]!==f||t[5]!==p.providerInstances?(m=p.providerInstances[f]??{driver:C.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=f,t[5]=p.providerInstances,t[6]=m):m=t[6];let h=m,g;t[7]===h.config?g=t[8]:(g=Je(h.config),t[7]=h.config,t[8]=g);let _=g,v=_===`existing`&&h.config!==null&&typeof h.config==`object`&&`setupMode`in h.config&&h.config.setupMode===`existing`,y;t[9]!==i||t[10]!==h||t[11]!==f||t[12]!==p||t[13]!==u?(y=e=>{u({environmentId:i,input:{patch:Ve({settings:p,instanceId:f,instance:{...h,enabled:!0,config:{...h.config!==null&&typeof h.config==`object`?h.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=h,t[11]=f,t[12]=p,t[13]=u,t[14]=y):y=t[14];let b=y,x;return t[15]!==l||t[16]!==b||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==v||t[21]!==f||t[22]!==_||t[23]!==r||t[24]!==c||t[25]!==a||t[26]!==s?(x=v?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:s,terminalAvailable:l,onOpenTerminal:c}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:f,provider:a,mode:_,enabled:a?.enabled??!0,onModeChange:b}),t[15]=l,t[16]=b,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=v,t[21]=f,t[22]=_,t[23]=r,t[24]=c,t[25]=a,t[26]=s,t[27]=x):x=t[27],x}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:i,terminalAvailable:a,onOpenTerminal:o}=e,l;t[0]===n?l=t[1]:(l=Se.get(C.make(n)),t[0]=n,t[1]=l);let u=l,d=r?.displayName||(n===`claudeAgent`?`Claude Code`:u?.label??n),f;t[2]===r?f=t[3]:(f=qe(r),t[2]=r,t[3]=f);let p=f,m;t[4]===r?m=t[5]:(m=Ge(r),t[4]=r,t[5]=m);let h=m,_;t[6]===n?_=t[7]:(_=C.make(n),t[6]=n,t[7]=_);let v;t[8]!==d||t[9]!==_?(v=(0,$.jsx)(Ce,{driverKind:_,displayName:d,iconClassName:`size-5`}),t[8]=d,t[9]=_,t[10]=v):v=t[10];let y;t[11]===d?y=t[12]:(y=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:d}),t[11]=d,t[12]=y);let b=h===`ready`?`Ready to code.`:p.headline,x=h!==`ready`&&p.detail?` · ${p.detail}`:``,S;t[13]!==b||t[14]!==x?(S=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[b,x]}),t[13]=b,t[14]=x,t[15]=S):S=t[15];let w;t[16]!==y||t[17]!==S?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[y,S]}),t[16]=y,t[17]=S,t[18]=w):w=t[18];let T;t[19]!==o||t[20]!==h||t[21]!==p||t[22]!==a||t[23]!==i?(T=(0,$.jsx)(`div`,{className:`shrink-0`,children:h===`ready`?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,$.jsx)(c,{className:`size-3.5`}),`Ready`]}):h===`checking`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):h===`disabled`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Disabled`}):h===`attention`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:p.headline}):(0,$.jsxs)(g,{size:`xs`,variant:`ghost`,onClick:o,disabled:i||!a,children:[(0,$.jsx)(s,{className:`size-3.5`}),h===`signIn`?`Sign in`:`Install`]})}),t[19]=o,t[20]=h,t[21]=p,t[22]=a,t[23]=i,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==v?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[v,w,T]}),t[25]=w,t[26]=T,t[27]=v,t[28]=E):E=t[28],E}function Dt(e){let t=(0,Q.c)(60),{session:n,onClose:r}=e,{command:i,cwd:a,driver:o,environmentId:s,keybindings:c,providerInstanceId:u}=n,d=ne(s,E),[p]=l(Ie,!1,S),m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={reportFailure:!1},t[0]=m):m=t[0];let _=ae(ve.open,m),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v={reportFailure:!1},t[1]=v):v=t[1];let y=ae(ve.write,v),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={reportFailure:!1},t[2]=b):b=t[2];let x=ae(ve.close,b),C;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(C=Promise.resolve(),t[3]=C):C=t[3];let w=(0,Z.useRef)(C),T=(0,Z.useRef)(0),D=(0,Z.useRef)(null),O;t[4]===o?O=t[5]:(O=()=>`onboarding-${o}-${h()}`,t[4]=o,t[5]=O);let[k]=(0,Z.useState)(O),A;t[6]===s?A=t[7]:(A=f(s,dt),t[6]=s,t[7]=A);let j=A,[M,N]=(0,Z.useState)(0),[P,F]=(0,Z.useState)(`preparing`),I=P===`ready`||P===`writeFailed`,L;t[8]!==x||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==_||t[13]!==u||t[14]!==k||t[15]!==y?(L=()=>{let e=T.current+1;return T.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 _({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 y({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]=_,t[13]=u,t[14]=k,t[15]=y,t[16]=L):L=t[16];let R;t[17]!==x||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==_||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==y?(R=[x,i,a,s,_,u,M,k,y],t[17]=x,t[18]=i,t[19]=a,t[20]=s,t[21]=_,t[22]=u,t[23]=M,t[24]=k,t[25]=y,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)(g,{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)(g,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==p||t[46]!==a||t[47]!==o||t[48]!==c||t[49]!==r||t[50]!==u||t[51]!==k||t[52]!==I||t[53]!==j?(G=I?(0,$.jsx)(_e,{threadRef:j,threadId:dt,terminalId:k,terminalLabel:`Install ${o}`,cwd:a,providerInstanceId:u,advancedTypography:p,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:c}):null,t[45]=p,t[46]=a,t[47]=o,t[48]=c,t[49]=r,t[50]=u,t[51]=k,t[52]=I,t[53]=j,t[54]=G):G=t[54];let K;t[55]===G?K=t[56]:(K=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=K);let q;return t[57]!==W||t[58]!==K?(q=(0,$.jsxs)(`div`,{"data-thread-terminal-drawer":!0,className:`mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground`,children:[W,K]}),t[57]=W,t[58]=K,t[59]=q):q=t[59],q}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(85),{scans:n,importSelection:r,onImportSelectionChange:i,isImporting:a,setIsImporting:s,onDone:c}=e,{environments:l}=ee(),u=re(n,A),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[0]=d):d=t[0];let f=ae(H.create,d),p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p={reportFailure:!1},t[1]=p):p=t[1];let m=ae(ot,p),h=(0,Z.useRef)(``),v=(0,Z.useRef)(0),y;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=new Map,t[2]=y):y=t[2];let b=(0,Z.useRef)(y),x;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(x=new Map,t[3]=x):x=t[3];let S=(0,Z.useRef)(x),C;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(C=[],t[4]=C):C=t[4];let w=(0,Z.useRef)(C),T;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Map,t[5]=T):T=t[5];let E=(0,Z.useRef)(T),D=(0,Z.useRef)(0),k,j;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>(D.current+=1,()=>{D.current+=1}),j=[],t[6]=k,t[7]=j):(k=t[6],j=t[7]),(0,Z.useEffect)(k,j);let M;t[8]===n?M=t[9]:(M=Qe(n.flatMap(Bt)),t[8]=n,t[9]=M);let{available:N,recent:P}=M,I;t[10]===P?I=t[11]:(I=new Set(P.map(zt)),t[10]=P,t[11]=I);let L=I,R;if(t[12]!==N||t[13]!==r||t[14]!==L){let e;t[16]!==r||t[17]!==L?(e=e=>r?.environmentIds.has(e.environmentId)?r.keys.has(e.key):L.has(e.key),t[16]=r,t[17]=L,t[18]=e):e=t[18],R=N.filter(e),t[12]=N,t[13]=r,t[14]=L,t[15]=R}else R=t[15];let z=R,B;t[19]===z?B=t[20]:(B=new Set(z.map(Rt)),t[19]=z,t[20]=B);let V=B,K;t[21]!==i||t[22]!==n?(K=e=>i({environmentIds:new Set(n.flatMap(Lt)),keys:e}),t[21]=i,t[22]=n,t[23]=K):K=t[23];let q=K,J;if(t[24]!==z||t[25]!==u){let e;t[27]===u?e=t[28]:(e=e=>u.has(e.environmentId),t[27]=u,t[28]=e),J=z.every(e),t[24]=z,t[25]=u,t[26]=J}else J=t[26];let te=J,[Y,ne]=(0,Z.useState)(``),X=te?Y===kt?``:Y:kt,ie;t[29]!==c||t[30]!==s?(ie=()=>{let e=nt(w.current,S.current,b.current);if(e===void 0){c(void 0,h.current,v.current);return}s(!0);let t=D.current;U(e).then(()=>e,It).then(async e=>{t===D.current&&(await c(e,h.current,v.current)||s(!1))})},t[29]=c,t[30]=s,t[31]=ie):ie=t[31];let oe=ie,se;t[32]!==f||t[33]!==oe||t[34]!==m||t[35]!==a||t[36]!==c||t[37]!==n||t[38]!==s?(se=async e=>{if(a)return;let t=()=>e.every(Ft),r=()=>{s(!1),ne(kt)};if(!t()){r();return}if(e.length===0){c();return}s(!0),h.current=``,v.current=0,w.current=e.map(Pt);let i=D.current,l=b.current,u=E.current,d=l.size>0?e.filter(e=>l.has(e.key)).length:0,p=0,g=0,y=new Set;for(let n of e){let{environmentId:e}=n;if(i!==D.current||l!==b.current)return;if(!t()){r();return}if(l.has(n.key))continue;let a=tt(W(),e,n);if(a===null){let t=u.get(n.key);if(t===void 0){let e=_();t={projectId:e,commandId:O.make(`onboarding:project:create:${e}`)},u.set(n.key,t)}a=t.projectId;let r=await f({environmentId:e,input:{projectId:a,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(i!==D.current||l!==b.current)return;if(r._tag!==`Success`){F(r)||(u.delete(n.key),y.add(e));continue}}if(!t()){r();return}let s=await m({environmentId:e,input:{projectId:a,expectedWorkspaceRoot:n.path}});if(i!==D.current||l!==b.current)return;s._tag===`Success`?(p+=s.value.importedCount,g+=s.value.skippedCount,s.value.importedCount>0&&S.current.set(n.key,o(e,a)),s.value.skippedCount===0&&(d+=1,l.set(n.key,o(e,a)))):F(s)||(u.delete(n.key),y.add(e))}for(let e of n)y.has(e.environmentId)&&e.refresh();s(!1),v.current=p,d<e.length&&(p>0&&g>0?h.current=`Imported ${p} ${p===1?`thread`:`threads`}. ${g} ${g===1?`thread`:`threads`} could not be imported.`:g>0?h.current=`${g} ${g===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[32]=f,t[33]=oe,t[34]=m,t[35]=a,t[36]=c,t[37]=n,t[38]=s,t[39]=se):se=t[39];let ce=se;if(n.every(Nt)&&n.some(Mt)){let e;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[40]=e):e=t[40];let n;t[41]===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[41]=n):n=t[41];let r;return t[42]===c?r=t[43]:(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)(g,{variant:`ghost-muted`,onClick:()=>void c(),children:`Do not import projects`})})]}),t[42]=c,t[43]=r),r}let le;t[44]!==N||t[45]!==a||t[46]!==z.length||t[47]!==q?(le=N.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:[z.length,` of `,N.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(g,{variant:`ghost`,size:`xs`,disabled:a||z.length===N.length,onClick:()=>q(new Set(N.map(jt))),children:`Select all`}),(0,$.jsx)(g,{variant:`ghost`,size:`xs`,disabled:a||z.length===0,onClick:()=>q(new Set),children:`Select none`})]})]}):null,t[44]=N,t[45]=a,t[46]=z.length,t[47]=q,t[48]=le):le=t[48];let ue;if(t[49]!==N||t[50]!==l||t[51]!==a||t[52]!==n||t[53]!==V||t[54]!==q){let e;t[56]!==N||t[57]!==l||t[58]!==a||t[59]!==n.length||t[60]!==V||t[61]!==q?(e=e=>{let t=N.filter(t=>t.environmentId===e.environmentId),r=l.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:a,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:r}):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)(g,{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)(Vt,{candidates:t,selectedKeys:V,onSelectionChange:q})]},e.environmentId)},t[56]=N,t[57]=l,t[58]=a,t[59]=n.length,t[60]=V,t[61]=q,t[62]=e):e=t[62],ue=n.map(e),t[49]=N,t[50]=l,t[51]=a,t[52]=n,t[53]=V,t[54]=q,t[55]=ue}else ue=t[55];let fe;t[63]===ue?fe=t[64]:(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[63]=ue,t[64]=fe);let pe;t[65]===X?pe=t[66]:(pe=X?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:X}):null,t[65]=X,t[66]=pe);let me;t[67]!==oe||t[68]!==a?(me=(0,$.jsx)(g,{variant:`ghost-muted`,disabled:a,onClick:oe,children:`Do not import projects`}),t[67]=oe,t[68]=a,t[69]=me):me=t[69];let he=!te||a||z.length===0,ge;t[70]!==ce||t[71]!==z?(ge=()=>void ce(z),t[70]=ce,t[71]=z,t[72]=ge):ge=t[72];let _e=a?`Importing…`:`Import ${z.length} ${z.length===1?`project`:`projects`}`,ve;t[73]!==he||t[74]!==ge||t[75]!==_e?(ve=(0,$.jsx)(g,{autoFocus:!0,disabled:he,onClick:ge,children:_e}),t[73]=he,t[74]=ge,t[75]=_e,t[76]=ve):ve=t[76];let ye;t[77]!==me||t[78]!==ve?(ye=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[me,ve]}),t[77]=me,t[78]=ve,t[79]=ye):ye=t[79];let be;return t[80]!==le||t[81]!==fe||t[82]!==pe||t[83]!==ye?(be=(0,$.jsxs)(Yt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[le,fe,pe,ye]}),t[80]=le,t[81]=fe,t[82]=pe,t[83]=ye,t[84]=be):be=t[84],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,A)}function It(){}function Lt(e){return e.data===null?[]:[e.environmentId]}function Rt(e){return e.key}function zt(e){return e.key}function Bt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function Vt(e){let t=(0,Q.c)(25),{candidates:n,selectedKeys:r,onSelectionChange:i}=e,a;t[0]===n?a=t[1]:(a=et(n),t[0]=n,t[1]=a);let{repositories:o,other:s}=a,c;t[2]!==i||t[3]!==r?(c=(e,t)=>{let n=new Set(r);for(let r of e)t?n.add(r):n.delete(r);i(n)},t[2]=i,t[3]=r,t[4]=c):c=t[4];let l=c,u;if(t[5]!==s||t[6]!==r){let e;t[8]===r?e=t[9]:(e=e=>r.has(e.key),t[8]=r,t[9]=e),u=s.filter(e),t[5]=s,t[6]=r,t[7]=u}else u=t[7];let d=u.length,f;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Ut,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],f=o.map(e),t[10]=o,t[11]=r,t[12]=l,t[13]=f}else f=t[13];let p;t[17]!==s||t[18]!==d||t[19]!==r||t[20]!==l?(p=s.length>0?(0,$.jsxs)(De,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:d===s.length,indeterminate:d>0&&d<s.length,onCheckedChange:e=>l(s.map(Ht),e===!0)}),(0,$.jsxs)(Oe,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(m,{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)(Ee,{children:s.map(e=>(0,$.jsx)(qt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>l([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=d,t[19]=r,t[20]=l,t[21]=p):p=t[21];let h;return t[22]!==f||t[23]!==p?(h=(0,$.jsxs)($.Fragment,{children:[f,p]}),t[22]=f,t[23]=p,t[24]=h):h=t[24],h}function Ht(e){return e.key}function Ut(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(Gt);let e;t[4]===r?e=t[5]:(e=e=>r.has(e),t[4]=r,t[5]=e),o=a.filter(e),t[0]=n.candidates,t[1]=r,t[2]=a,t[3]=o}else a=t[2],o=t[3];let s=o.length,c=n.candidates.length===1,l=n.candidates[0];if(c&&l!==void 0){let e=n.label,a=l.path,o;t[6]!==l.key||t[7]!==r?(o=r.has(l.key),t[6]=l.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==l.key?(s=e=>i([l.key],e),t[9]=i,t[10]=l.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==l||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(qt,{candidate:l,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=l,t[14]=o,t[15]=s,t[16]=c):c=t[16],c}let u=s===a.length,d=s>0&&s<a.length,f;t[17]!==a||t[18]!==i?(f=e=>i(a,e===!0),t[17]=a,t[18]=i,t[19]=f):f=t[19];let p;t[20]!==u||t[21]!==d||t[22]!==f?(p=(0,$.jsx)(ge,{checked:u,indeterminate:d,onCheckedChange:f}),t[20]=u,t[21]=d,t[22]=f,t[23]=p):p=t[23];let h;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(m,{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(Wt)),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)(Jt,{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)(Oe,{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]!==p?(x=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[p,b]}),t[38]=b,t[39]=p,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)(qt,{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)(Ee,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(De,{defaultOpen:!0,children:[x,C]}),t[50]=x,t[51]=C,t[52]=w):w=t[52],w}function Wt(e){return e.sources}function Gt(e){return e.key}function Kt(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=y(`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 qt(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=y(`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)(Kt,{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 b=c?null:n.sources,x;t[21]!==n.lastActiveAt||t[22]!==n.threadCount||t[23]!==b?(x=(0,$.jsx)(Jt,{sources:b,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[21]=n.lastActiveAt,t[22]=n.threadCount,t[23]=b,t[24]=x):x=t[24];let S;return t[25]!==v||t[26]!==x||t[27]!==u||t[28]!==f?(S=(0,$.jsxs)(`label`,{className:u,children:[f,v,x]}),t[25]=v,t[26]=x,t[27]=u,t[28]=f,t[29]=S):S=t[29],S}function Jt(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,s=o===null?``:o.suffix===null?`now`:o.value,c;t[2]===n?c=t[3]:(c=n?.includes(`claudeAgent`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Claude Code`,children:(0,$.jsx)(Ce,{driverKind:C.make(`claudeAgent`),displayName:`Claude Code`,iconClassName:`size-3`})}):null,t[2]=n,t[3]=c);let l;t[4]===c?l=t[5]:(l=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:c}),t[4]=c,t[5]=l);let u;t[6]===n?u=t[7]:(u=n?.includes(`codex`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Codex`,children:(0,$.jsx)(Ce,{driverKind:C.make(`codex`),displayName:`Codex`,iconClassName:`size-3`})}):null,t[6]=n,t[7]=u);let d;t[8]===u?d=t[9]:(d=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:u}),t[8]=u,t[9]=d);let f;t[10]===r?f=t[11]:(f=(0,$.jsx)(`span`,{className:`text-right`,children:r}),t[10]=r,t[11]=f);let p;t[12]===s?p=t[13]:(p=(0,$.jsx)(`span`,{className:`text-right whitespace-nowrap`,children:s}),t[12]=s,t[13]=p);let m;return t[14]!==l||t[15]!==d||t[16]!==f||t[17]!==p?(m=(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:[l,d,f,p]}),t[14]=l,t[15]=d,t[16]=f,t[17]=p,t[18]=m):m=t[18],m}function Yt(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 Xt=j(D);function Zt(){let e=(0,Q.c)(14),{authGateState:t}=Me.useRouteContext(),n=K(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:$t},e[0]=r):r=e[0];let i=q(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?N(Xt(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:Qt},e[3]=s):s=e[3];let c=q(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{u(!0),e===void 0?await n({to:`/`,replace:!0}):await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}))}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Qt(e){return e.pathname===`/welcome`}function $t(e){return e.hash}export{Zt as component};
2
+ //# sourceMappingURL=welcome-BxhPM21H.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-BfU6cQrF.js"></script>
387
+ <script type="module" crossorigin src="/assets/index-C04a0SKq.js"></script>
388
388
  </head>
389
389
  <body>
390
390
  <div id="root">
@@ -3,7 +3,7 @@
3
3
  import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./rolldown-runtime-CMoAvOD_.mjs";
4
4
  import { $c as none$1, $i as fail$7, $n as get$7, $o as has$4, $r as addFinalizerExit, $t as runForkWith, A as currentSpan, Aa as LogLevelOrder, Ac as succeed$1, Al as withFiber$1, An as uninterruptibleMask, Ao as void_$3, Ar as monotonicTimeNanos, As as getOrElse$1, Au as isString, Ba as endSpan, Bc as fromUndefinedOr, Bi as succeed$5, Bo as make$76, Bs as append, Bu as constUndefined, Ca as pretty, Ci as isDone, Cn as timeoutOrElse, Co as succeedNone, Cr as isDoneCause, Cs as zero, Cu as isNotUndefined, D as context, Da as ClockRef, Dc as map$6, E as clockWith, Ea as squash, Ec as isSuccess$1, Ei as makeUnsafe$5, El as exitSucceed, Eo as sync, Er as Clock, Es as add$2, Et as mapError, Eu as isObject, F as exit$3, Fl as NodeInspectSymbol, Fn as whileLoop, Fr as effect, Ft as onExitPrimitive, Fu as backEdges, G as filterOrFail, Gc as getOrUndefined$1, Gi as NoSuchElementError, Gn as yieldNow, Go as EncodingError, Gr as succeed$3, Gs as filterMap$1, Gu as identity, Hc as getOrNull, Hi as Done, Hn as withSpan, Hr as mergeAll, I as fail$3, Ic as flatMap$1, Il as toJson, Io as NativeSpan, Is as merge$1, It as onInterrupt, J as flatMap, Jc as isSome, Ji as UnknownError$1, Jl as normalizeNonEmpty, Jn as equalBatchKeys, Jr as sync$2, Jt as repeat, Ju as pipe, Kc as isNone, Kl as assignProperty, Ko as Class, Ku as memoize, L as failCause, Li as isFailure, Ll as format, Ln as withFiber, Lo as ParentSpan, Lr as effectDiscard, Ls as omit, Lt as option$1, M as die, Mc as contains, Mi as failCause$1, Mn as useSpan, Mt as never, Mu as isUndefined, N as effectify, Na as asSome, Nc as exists, Ni as findErrorOption$1, Nl as BaseProto, Nn as void_$2, No as TracerTimingEnabled, Ns as getUnsafe$1, Nt as onError, O as contextWith$1, Oi as succeed$4, On as undefined_, Or as currentTimeMillis, Os as get$6, P as ensuring, Pc as filter$2, Pt as onExit, Q as fnUntraced, Qc as match, Qi as done, Qo as compose, Qr as addFinalizer, Qt as runFork, Ra as contextWith, Ri as isSuccess, Rs as Prototype, Rt as orDie, S as catchReason, Sn as timeoutOption, So as succeed$2, St as map$5, T as catch_, Ta as reasonAnnotations, Tc as isResult, Ti as make$77, Tn as try_, Tr as Random$1, Ts as Service, Tt as mapEager, Ua as exitIsSuccess, Uo as encode$3, Ur as provide$1, Ut as provideContext, Uu as dual, V as filter$1, Va as exitHasInterrupts, Vc as getOrElse, Vi as void_$1, Vt as promise, Vu as constVoid, W as filterOrElse, Wn as withTracerEnabled, Wr as provideMerge, Ws as filter, Wt as provideService, Wu as flow$2, Xa as fiberInterrupt, Xi as combine$1, Xo as taggedEnum, Xt as result$1, Y as flatMapEager, Yc as liftThrowable, Yn as Class$1, Yo as TaggedError, Yt as request, Z as fn, Zc as map$7, Zi as die$1, Zn as clear$1, Zr as Scope, Zt as retry, Zu as pipeArguments, _ as catchCauseIf, _c as all$6, _i as doneUnsafe, _n as tapCause, _s as seconds, a as all$5, ac as makeBy, ai as makeUnsafe$4, al as Number$2, an as scope, ao as forkUnsafe, as as hours, at as forkScoped, ba as makeFailReason, br as catchDone, bs as toMillis, bt as logWarning, c as annotateLogs, ca as hasInterruptsOnly, cs as isFinite$1, ct as gen, d as asSome$1, da as isCause, dn as succeed, dt as interrupt, ea as filterInterruptors, ec as isArrayNonEmpty, ei as close, el as orElse$2, eo as fiberJoin, es as toPredicate, et as forEach, eu as byReferenceUnsafe, f as asVoid, fa as isDieReason, fc as sort, fi as TracerEnabled, fn as succeedNone$1, fs as millis, ft as interruptible, g as catchCause, gc as headUnsafe, gn as tap, go as onExitUnsafe, gr as spaced, gt as logDebug, h as callback, hc as filterMap, hn as sync$1, hs as nanos, hu as hasProperty, i as addFinalizer$1, ia as fromReasons, ii as make$75, ir as size$2, is as fromInputUnsafe, it as forkIn, iu as symbol, j as delay, ji as fail$6, jn as updateContext$1, js as getOrUndefined, jt as matchEffect$1, ju as isTagged, kn as uninterruptible, ko as updateContext, kr as currentTimeNanos, ks as getOption$1, kt as matchCauseEffect, lc as of, ll as isGreaterThanOrEqualTo$1, ln as serviceOption, lt as ignore$1, lu as optimize, ma as isFailReason, mc as empty$4, mi as _await, mn as suspend, ms as minutes, n as acquireRelease, na as findErrorOption, nc as isReadonlyArrayNonEmpty, ni as fork, nr as remove$4, o as andThen, oi as provide, on as scoped, os as infinity, ot as fromOption, ou as combine, pi as TracerTimingEnabled$1, pn as succeedSome$1, po as makeSpanUnsafe, ps as min, pt as isEffect, pu as symbol$1, qn as zipWith, qt as raceFirst, r as acquireUseRelease, rr as set$4, rt as forkDetach, s as annotateCurrentSpan, sc as map$4, st as fromResult, su as hash, tc as isCanonicalArrayIndex, tl as some, tr as make$74, ts as days, tt as forever, tu as equals, u as as, un as sleep, us as isZero, ut as ignoreCause, uu as string$2, vc as fail$4, vi as fail$5, vl as PipeInspectableProto, w as catchTags, wc as isFailure$1, wi as isDoneUnsafe, wn as tryPromise, wo as succeedSome, wr as matchEffect, ws as Reference, wu as isNullish, x as catchIf, xc as getOrThrow, xi as into, xn as timeout, xt as makeSpanScoped, xu as isNotNull, y as catchEager, ya as makeDieReason, yc as failVoid, yi as failCause$2, yn as tapError, yt as logInfo, z as failSync, zc as fromNullishOr, zi as match$1, zs as allocate, zt as orElseSucceed, zu as constTrue } from "./Effect-DwQPN8rO.mjs";
5
5
  import { $ as Undefined, $r as fromInput, A as Number$3, Ai as make$80, An as concat$2, Ar as stringifyJson, At as fromJsonString, B as StringFromUriComponent, Ci as add$3, Cr as transformEffect$1, Ct as encode$5, D as NonEmptyString$1, Dt as encodeUnknownEffect, E as NonEmptyArray, Ei as isGreaterThan, Er as compose$1, F as Record$1, Fr as Forbidden, Gt as isPattern, Hn as decodeUnknownEffect, Hr as fromInput$1, I as RecordFromUrlParams, Ir as InvalidValue, J as Tuple, Ji as map$8, Jt as isSchemaError, Kr as toString$2, L as Redacted$1, Lr as Pointer, Mr as transformEffect, Mt as is$2, Nt as isBetween, Or as parseJson$1, P as OptionFromNullOr, Pi as now, Qt as make$78, R as SchemaError, S as Literals, Sr as transform$1, St as decodeUnknownSync, Ti as formatIso, Tr as trim, Tt as encodeSync, U as TaggedError$1, V as Struct, Vi as toEpochMillis, Vt as isMaxLength, Y as URL$2, Yn as applyToSelfOrLastLinkEncoding, Z as Uint8Array$1, Zn as decodeTo, _ as Finite, _r as unknown$1, _t as decodeTo$1, a as BooleanLiterals, ai as remove$5, ar as isNull, br as splitKeyValue, bt as decodeUnknownOption, c as DateTimeUtc, cn as tag$2, di as value$2, dn as toCodecStringTree, dt as declare, en as mutable, gn as toType, gr as toEncoded, i as BooleanFromBit, ji as makeUnsafe$6, jt as instanceOf, k as NullOr, kr as passthrough, l as DateTimeUtcFromString, li as isRedacted, m as Error$1, mt as decodeExit, n as ArraySchema, nn as optional, nt as Unknown, o as Cause, ot as annotateKey, pt as decodeEffect, qi as encode$4, r as Boolean$2, ri as merge$2, rn as optionalKey, rt as UnknownFromJsonString$1, tr as getIndexSignatureKeys, tt as Union, u as Defect, ui as make$79, un as toCodecJson, vn as withDecodingDefault, vr as Transformation, vt as decodeUnknownEffect$1, wt as encodeEffect, x as Literal, xr as toLowerCase, xt as decodeUnknownResult, y as Int$1, yr as composeTransformation, yt as decodeUnknownExit, z as String$2, zi as subtractDuration } from "./Schema-CdYZrGX6.mjs";
6
- import { $a as makeBinaryPathSetting, $f as isStreamNdjson, $l as VcsProcessOutputLimitError, $p as bodyJsonUnsafe, Aa as AntigravitySettings, Ac as OrchestrationV2ProviderSessionJson, Al as ProviderUserInputAnswers, Am as FileTypeId, Au as isProviderSendTurnSupportedImageMimeType, Ba as DEFAULT_SERVER_SETTINGS, Bh as EventId, Bi as ApplicationEventMetadata, Bp as filterStatusOk, Bu as getPayloadSchemas, Ch as ASSISTANT_CITATION_MAX_COMMENT_LENGTH, Cl as StoredProjectIcon, Cm as isHttpBody, Dh as CheckpointId, Dm as uint8Array, El as ProviderApprovalDecision, Em as text$9, Eo as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, Eu as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Fa as CompressMode, Fc as OrchestrationV2RunAttemptJson, Fh as CommandId, Fm as badArgument, Ga as ResponseStreamingMode, Gd as make$83, Gh as PlanId, Gi as PROJECT_CLONE_ERROR_MAX_LENGTH, Ha as GitHubHost, Hh as MessageId, Hi as OrchestrationDispatchCommandError, Hl as pullRequestHostOf, Hp as matchStatus, Ic as OrchestrationV2RunJson, Ih as ContextHandoffId, Iu as reflect, Jf as getResponseEncodingSchema, Jh as ProjectId, Jl as SourceControlProviderKind, Jm as decodeSchema, Jp as appendUrlParams, Ka as ServerSettings, Kc as OrchestrationV2SubagentJson, Kf as getPayloadEncoding, Ki as GitCommandError, Kp as schemaBodyJson, Ks as RelayManagedEndpointRuntimeConfig, La as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Lh as ContextTransferId, Lm as systemError, Mc as OrchestrationV2ProviderThreadJson, Ml as ThreadLinkedPullRequest, Mm as make$82, Mr as P4ProjectFile, Na as ClaudeSettings, Nm as BadArgument, Nr as P4_PROJECT_FILE_NAME, Om as urlParams, Oo as SCRIPT_RUN_COMMAND_PATTERN, Pa as CodexSettings, Pc as OrchestrationV2ProviderTurnJson, Pl as ThreadPullRequestLink, Pm as PlatformError, Pr as PROJECT_FILE_BACKED_SETTINGS, Pu as getSlotParseOptions, Qa as keepUnknownOverrideKeys, Qc as OrchestrationV2TurnItemJson, Qf as isNoContent, Qh as RawEventId, Ql as VcsProcessMissingExitCodeError, Qs as replaceParams, Ra as DEFAULT_BACKGROUND_ACTIVITY_PROFILE, Sc as OrchestrationV2ExecutionNodeJson, Sh as ReviewCommentContextRecord, Sm as isHttpClientError, Tc as OrchestrationV2PlanArtifact, Th as AssistantCitation, Tm as stream, Tu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, Ua as PROJECT_SCOPED_SERVER_SETTING_KEYS, Ud as Path, Uh as NodeId, Us as RelayManagedEndpointOrigin, Vc as OrchestrationV2SearchThreadInput, Vh as IsoDateTime, Vi as ApplicationProjectEvent, Vp as fromWeb, Wa as ProjectSettingsOverrides, Wc as OrchestrationV2StoredEvent, Wh as NonNegativeInt, Wl as resolvePullRequestAuthorFilter, Wm as hasBody, Xa as globalIdleCompaction, Xf as getStatusSuccessSchema, Xh as ProviderThreadId, Xl as VcsDriverKind, Xo as EasDeviceHostConfig, Xp as bearerToken, Ya as UsageLimitSourceConfig, Yh as ProviderSessionId, Yl as SourceControlRepositoryError, Yp as basicAuth, Za as isUnconfiguredDefaultInstanceEnabled, Zf as getWithHeadersAnnotation, Zh as ProviderTurnId, Zl as VcsProcessExitError, Zp as bodyFormData, Zs as getParamNames, _m as EncodeError, aa as isProviderAvailable, ad as TracerDisabledWhen, ag as ThreadId, ah as CustomModelSetting, am as get$8, ao as resolveProjectProviderInstanceEnabled, ap as withHeaders, au as VcsUnsupportedOperationError, bc as OrchestrationV2DomainEventJson, bh as ComposerContextRecord, bm as StatusCodeError, cc as OrchestrationV2CheckpointJson, cg as TurnItemId, cm as prependUrl, co as secretSettingsFields, dd as mapRequest, dg as toNumberUnsafe, dm as setHeader, eg as RunAttemptId, eo as makeProviderSettingsSchema, ep as isStreamSchema, eu as VcsProcessOutputReadError, fc as OrchestrationV2ContextTransferJson, fg as toNumber, fh as ModelCapabilities, fm as setHeaders, ga as isLocalEditorFileUrl, gh as ProviderInstanceId, gm as DecodeError, ha as LOCAL_FILE_LINK_SCHEMES, hh as ProviderDriverKind, hm as upgrade, id as HttpClient, jm as WatchBackend, kh as CheckpointScopeId, km as FileSystem, ko as THREAD_JUMP_KEYBINDING_COMMANDS, lc as OrchestrationV2CheckpointScopeJson, ld as layerMergedContext, lg as bytes, lh as DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER, lm as put, ln as DesktopHostTelemetryMessage, lo as withIdleCompaction, mc as OrchestrationV2ConversationMessageJson, ng as RuntimeRequestId, nl as isOrchestrationV2WorkActive, np as isUpgrade, nu as VcsProcessStdinWriteError, oa as isProviderTextGenerationCapable, og as TrimmedNonEmptyString, oh as DEFAULT_MODEL, ol as orchestrationV2RunWorkStartedAt, om as make$84, oo as resolveProviderInstanceEnabled, op as normalize$2, ou as ModelSelection, pm as setUrl, qa as ServerSettingsError, qf as getResponseEncoding, qh as PositiveInt, ql as SourceControlProviderError, qp as acceptJson, ra as ServerSelfUpdateError, rp as isWithHeaders, ru as VcsProcessTimeoutError, sc as OrchestrationV2AppThreadJson, sg as TrimmedString, sh as DEFAULT_MODEL_BY_PROVIDER, sm as post, so as secretSetting, tg as RunId, tl as isKnownOrchestrationV2EventType, tm as bodyText, tp as isStreamUint8Array, tu as VcsProcessSpawnError, uc as OrchestrationV2ContextHandoffJson, ud as make$81, uf as ThreadEnvMode, ug as fromInputUnsafe$1, uh as MODEL_SLUG_ALIASES_BY_PROVIDER, um as setBody, un as DesktopTelemetryControlMessage, vh as defaultInstanceIdForDriver, vl as ProjectScript, vm as HttpClientError, wh as ASSISTANT_CITATION_MAX_TEXT_LENGTH, xh as OrchestrationMessageContext, xm as TransportError, xu as ChatAttachment, yh as isProviderDriverKind, za as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, zc as OrchestrationV2RuntimeRequestJson, zh as EnvironmentId } from "./sha2-D9ocDAIA.mjs";
6
+ import { $a as makeBinaryPathSetting, $f as isStreamNdjson, $l as VcsProcessOutputLimitError, $p as bodyJsonUnsafe, Aa as AntigravitySettings, Ac as OrchestrationV2ProviderSessionJson, Al as ProviderUserInputAnswers, Am as FileTypeId, Au as isProviderSendTurnSupportedImageMimeType, Ba as DEFAULT_SERVER_SETTINGS, Bh as EventId, Bi as ApplicationEventMetadata, Bp as filterStatusOk, Bu as getPayloadSchemas, Ch as ASSISTANT_CITATION_MAX_COMMENT_LENGTH, Cl as StoredProjectIcon, Cm as isHttpBody, Dh as CheckpointId, Dm as uint8Array, El as ProviderApprovalDecision, Em as text$9, Eo as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, Eu as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Fa as CompressMode, Fc as OrchestrationV2RunAttemptJson, Fh as CommandId, Fm as badArgument, Ga as ResponseStreamingMode, Gd as make$83, Gh as PlanId, Gi as PROJECT_CLONE_ERROR_MAX_LENGTH, Ha as GitHubHost, Hh as MessageId, Hi as OrchestrationDispatchCommandError, Hl as pullRequestHostOf, Hp as matchStatus, Ic as OrchestrationV2RunJson, Ih as ContextHandoffId, Iu as reflect, Jf as getResponseEncodingSchema, Jh as ProjectId, Jl as SourceControlProviderKind, Jm as decodeSchema, Jp as appendUrlParams, Ka as ServerSettings, Kc as OrchestrationV2SubagentJson, Kf as getPayloadEncoding, Ki as GitCommandError, Kp as schemaBodyJson, Ks as RelayManagedEndpointRuntimeConfig, La as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Lh as ContextTransferId, Lm as systemError, Mc as OrchestrationV2ProviderThreadJson, Ml as ThreadLinkedPullRequest, Mm as make$82, Mr as P4ProjectFile, Na as ClaudeSettings, Nm as BadArgument, Nr as P4_PROJECT_FILE_NAME, Om as urlParams, Oo as SCRIPT_RUN_COMMAND_PATTERN, Pa as CodexSettings, Pc as OrchestrationV2ProviderTurnJson, Pl as ThreadPullRequestLink, Pm as PlatformError, Pr as PROJECT_FILE_BACKED_SETTINGS, Pu as getSlotParseOptions, Qa as keepUnknownOverrideKeys, Qc as OrchestrationV2TurnItemJson, Qf as isNoContent, Qh as RawEventId, Ql as VcsProcessMissingExitCodeError, Qs as replaceParams, Ra as DEFAULT_BACKGROUND_ACTIVITY_PROFILE, Sc as OrchestrationV2ExecutionNodeJson, Sh as ReviewCommentContextRecord, Sm as isHttpClientError, Tc as OrchestrationV2PlanArtifact, Th as AssistantCitation, Tm as stream, Tu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, Ua as PROJECT_SCOPED_SERVER_SETTING_KEYS, Ud as Path, Uh as NodeId, Us as RelayManagedEndpointOrigin, Vc as OrchestrationV2SearchThreadInput, Vh as IsoDateTime, Vi as ApplicationProjectEvent, Vp as fromWeb, Wa as ProjectSettingsOverrides, Wc as OrchestrationV2StoredEvent, Wh as NonNegativeInt, Wl as resolvePullRequestAuthorFilter, Wm as hasBody, Xa as globalIdleCompaction, Xf as getStatusSuccessSchema, Xh as ProviderThreadId, Xl as VcsDriverKind, Xo as EasDeviceHostConfig, Xp as bearerToken, Ya as UsageLimitSourceConfig, Yh as ProviderSessionId, Yl as SourceControlRepositoryError, Yp as basicAuth, Za as isUnconfiguredDefaultInstanceEnabled, Zf as getWithHeadersAnnotation, Zh as ProviderTurnId, Zl as VcsProcessExitError, Zp as bodyFormData, Zs as getParamNames, _m as EncodeError, aa as isProviderAvailable, ad as TracerDisabledWhen, ag as ThreadId, ah as CustomModelSetting, am as get$8, ao as resolveProjectProviderInstanceEnabled, ap as withHeaders, au as VcsUnsupportedOperationError, bc as OrchestrationV2DomainEventJson, bh as ComposerContextRecord, bm as StatusCodeError, cc as OrchestrationV2CheckpointJson, cg as TurnItemId, cm as prependUrl, co as secretSettingsFields, dd as mapRequest, dg as toNumberUnsafe, dm as setHeader, eg as RunAttemptId, eo as makeProviderSettingsSchema, ep as isStreamSchema, eu as VcsProcessOutputReadError, fc as OrchestrationV2ContextTransferJson, fg as toNumber, fh as ModelCapabilities, fm as setHeaders, ga as isLocalEditorFileUrl, gh as ProviderInstanceId, gm as DecodeError, ha as LOCAL_FILE_LINK_SCHEMES, hh as ProviderDriverKind, hm as upgrade, id as HttpClient, jm as WatchBackend, kh as CheckpointScopeId, km as FileSystem, ko as THREAD_JUMP_KEYBINDING_COMMANDS, lc as OrchestrationV2CheckpointScopeJson, ld as layerMergedContext, lg as bytes, lh as DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER, lm as put, ln as DesktopHostTelemetryMessage, lo as withIdleCompaction, mc as OrchestrationV2ConversationMessageJson, ng as RuntimeRequestId, nl as isOrchestrationV2WorkActive, np as isUpgrade, nu as VcsProcessStdinWriteError, oa as isProviderTextGenerationCapable, og as TrimmedNonEmptyString, oh as DEFAULT_MODEL, ol as orchestrationV2RunWorkStartedAt, om as make$84, oo as resolveProviderInstanceEnabled, op as normalize$2, ou as ModelSelection, pm as setUrl, qa as ServerSettingsError, qf as getResponseEncoding, qh as PositiveInt, ql as SourceControlProviderError, qp as acceptJson, ra as ServerSelfUpdateError, rp as isWithHeaders, ru as VcsProcessTimeoutError, sc as OrchestrationV2AppThreadJson, sg as TrimmedString, sh as DEFAULT_MODEL_BY_PROVIDER, sm as post, so as secretSetting, tg as RunId, tl as isKnownOrchestrationV2EventType, tm as bodyText, tp as isStreamUint8Array, tu as VcsProcessSpawnError, uc as OrchestrationV2ContextHandoffJson, ud as make$81, uf as ThreadEnvMode, ug as fromInputUnsafe$1, uh as MODEL_SLUG_ALIASES_BY_PROVIDER, um as setBody, un as DesktopTelemetryControlMessage, vh as defaultInstanceIdForDriver, vl as ProjectScript, vm as HttpClientError, wh as ASSISTANT_CITATION_MAX_TEXT_LENGTH, xh as OrchestrationMessageContext, xm as TransportError, xu as ChatAttachment, yh as isProviderDriverKind, za as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, zc as OrchestrationV2RuntimeRequestJson, zh as EnvironmentId } from "./sha2-BjjJcoUu.mjs";
7
7
  import { $ as mkString, $t as map$10, A as fromEffect, An as publishAll, B as ignore$2, Bn as makeUnsafe$8, Ct as suspend$1, F as fromPull, Fn as take$1, Gn as interruptAll, Gt as fromChannel, H as isStream, Hn as await_, I as fromQueue, In as unbounded$1, It as toReadableStreamEffect, J as mapEffect$1, Jn as join$1, Kn as interruptAllAs, Kt as isSink, Ln as make$85, M as fromIterable, Mn as shutdown$1, Nn as sliding$1, On as unbounded, Ot as tap$1, P as fromPubSub, Pn as subscribe, Pt as toPull, Q as mkArrayBuffer, Qt as fromTransform, R as fromSubscription, Rn as set$5, Rt as transduce, S as filterMap$2, St as succeed$6, Tn as take, U as make$88, Un as getCurrent, Ut as drain, V as interruptWhen, Vt as unwrap$2, W as map$9, Wn as interrupt$1, X as merge$3, Y as mapError$1, Yn as runIn, _ as ensuring$1, _n as offer, an as makeUnsafe$7, at as pipeThroughChannelOrFail, b as filter$3, bn as poll, bt as scoped$1, c as concat$3, ct as rechunk, d as die$2, dn as endUnsafe, dt as run$2, en as mapDone, fn as fail$8, ft as runCollect, g as encodeText, gn as make$86, gt as runForEach, h as empty$5, ht as runFoldEffect, i as catchTag, in as make$87, it as pipeThroughChannel, j as fromEffectRepeat, k as fromChannel$1, kn as publish, kt as tapError$1, l as debounce, ln as dropping, mn as failCauseUnsafe, mt as runFold, o as changes, ot as provideContext$1, p as drainFork, pn as failCause$3, pt as runDrain, q as mapArrayEffect, r as catchIf$1, rt as paginate, sn as clear$2, st as provideService$1, t as callback$1, u as decodeText, un as end, v as fail$9, vn as offerAll, vt as runHead, wn as sliding, wt as switchMap, x as filterEffect, xn as shutdown, xt as splitLines$1, yn as offerUnsafe, zt as transformPull } from "./Stream-F-Z4HJeD.mjs";
8
8
  import * as NodeFS from "node:fs";
9
9
  import * as NodeUrl from "node:url";
@@ -56601,6 +56601,7 @@ function threadShellFromProjection(projection) {
56601
56601
  ...projection.thread.linkOrigin === void 0 ? {} : { linkOrigin: projection.thread.linkOrigin },
56602
56602
  ...projection.thread.delegatedFrom === void 0 ? {} : { delegatedFrom: projection.thread.delegatedFrom },
56603
56603
  ...projection.thread.launchedByThreadId === void 0 ? {} : { launchedByThreadId: projection.thread.launchedByThreadId },
56604
+ ...projection.thread.launchedByEnvironmentId === void 0 ? {} : { launchedByEnvironmentId: projection.thread.launchedByEnvironmentId },
56604
56605
  ...projection.thread.sweep == null ? {} : { sweep: projection.thread.sweep },
56605
56606
  latestRunId: latestRun?.id ?? null,
56606
56607
  latestRunRequestedAt: latestRun?.requestedAt ?? null,
@@ -56743,6 +56744,7 @@ function shellFromState(input) {
56743
56744
  ...input.state.thread.linkOrigin === void 0 ? {} : { linkOrigin: input.state.thread.linkOrigin },
56744
56745
  ...input.state.thread.delegatedFrom === void 0 ? {} : { delegatedFrom: input.state.thread.delegatedFrom },
56745
56746
  ...input.state.thread.launchedByThreadId === void 0 ? {} : { launchedByThreadId: input.state.thread.launchedByThreadId },
56747
+ ...input.state.thread.launchedByEnvironmentId === void 0 ? {} : { launchedByEnvironmentId: input.state.thread.launchedByEnvironmentId },
56746
56748
  ...input.state.thread.sweep == null ? {} : { sweep: input.state.thread.sweep },
56747
56749
  latestRunId: input.state.latestRunId,
56748
56750
  latestRunRequestedAt: input.state.latestRunRequestedAt,
@@ -62204,7 +62206,7 @@ const writeFileStringAtomically = (input) => scoped(gen(function* () {
62204
62206
  yield* fs.rename(tempPath, targetPath);
62205
62207
  }));
62206
62208
  // package.json
62207
- var version = "0.9.25";
62209
+ var version = "0.9.26";
62208
62210
  // src/auth/ServerSecretStore.ts
62209
62211
  const secretStoreErrorContext = {
62210
62212
  resource: String$2,
@@ -101713,4 +101715,4 @@ function normalizePreviewUrl(rawUrl) {
101713
101715
  }
101714
101716
  export { deriveThreadFromProviderThread as $, BUILT_IN_THEME_IDS as $a, clear as $c, isNetworkPath as $i, layerWebCrypto$1 as $l, fromReadable as $n, buildSelectOptionDescriptor as $o, resolveSignalEndpoint as $r, collectUint8StreamText as $s, resolveAutoFeatureBranchName as $t, BackgroundGitWork as A, injectMcpAppCookieBootstrap as Aa, isWindows as Ac, parseBase64DataUrl as Ai, set$1 as Al, ServiceLauncherClient as An, readOnly as Ao, version as Ar, makeTraceSink as As, terminalSessionsTotal as At, makeBytes as Au, removeLinkedWorktree as B, HTML_RENDER_THEME_GUIDE as Ba, set as Bc, chatMarkdownImageSources as Bi, updateAndGet as Bl, layer$53 as Bn, serviceStateHasPendingUpdate as Bo, resolveStaticDir as Br, codexModelFamily as Bs, layer$33 as Bt, InvalidArgument as Bu, formatPatch as C, P4_MCP_TOOL_NAMES as Ca, HomeDirectory as Cc, parseThreadSegmentFromAttachmentId as Ci, getSuccess as Cl, layer$45 as Cn, PersistenceSqlError as Co, SecretStoreConcurrentReadError as Cr, OtlpHeadersFromString as Cs, providerTurnDuration as Ct, layerWebCryptoWith$1 as Cu, SourceControlRateLimit as D, MCP_APP_MIME_TYPE as Da, Platform as Dc, sweepStalePendingAttachments as Di, make$68 as Dl, layerIdentity as Dn, findOneOption as Do, isSecretAlreadyExistsError as Dr, errorTag as Ds, secretRefsConsumedTotal as Dt, uuidV4Unsafe as Du, Interactive as E, MCP_APP_MAX_HTML_BYTES as Ea, IsExecutable as Ec, resolveAttachmentPathById as Ei, keys$1 as El, layer$48 as En, findAll as Eo, ServerSecretStore as Er, decodeOtlpTraceRecords as Es, rpcRequestsTotal as Et, make$72 as Eu, PATCH_RENDER_PREFIX_ARGS as F, readMcpAppPermissions as Fa, make$60 as Fc, turnItemUpdateCanEndBackgroundWork as Fi, getAndUpdate as Fl, layer$52 as Fn, compareExactServiceVersions as Fo, deriveServerPaths as Fr, layerJson as Fs, withCommandMetrics as Ft, rehome as Fu, layer$23 as G, htmlRenderThemeFragment as Ga, isSqlError as Gc, codes as Gi, ecdsaP384 as Gl, GrokSettings as Gn, pinnedRuntimePaths as Go, resolveServerBackgroundActivitySettings as Gr, getProviderOptionCurrentValue as Gs, detectSourceControlProviderFromGitRemoteUrl as Gt, resolveProjectSettings as H, blankNonMarkup as Ha, map$2 as Hc, remarkGfm as Hi, isGreaterThanOrEqualTo as Hl, PiSettings as Hn, ensurePinnedRuntimeInstalled as Ho, resolveReviewGuideModelSelection as Hr, formatCodexModelName as Hs, layer$34 as Ht, snapshotUnsafe as Hu, makeIsServerInternalPath as I, HTML_RENDER_LAYOUT_GUIDE as Ia, get as Ic, latestExecutedRun as Ii, make$69 as Il, writeAllToFileDescriptor as In, decodeServiceLauncherChildMessage as Io, ensureServerDirectories as Ir, compareSemverVersions as Is, withMetrics as It, run$1 as Iu, layer$24 as J, compileResolvedKeybindingRule as Ja, tag as Jc, isAttachmentOnlyBootstrapPrompt as Ji, family as Jl, AcpRegistrySettings as Jn, layer$62 as Jo, fromJsonStringPretty as Jr, modelSelectionsEqual as Js, isTemporaryWorktreeBranch as Jt, planThreadDeletion as K, injectHtmlRenderBootstrap as Ka, exhaustive as Kc, longestStreak as Ki, ecdsaP521 as Kl, FxSettings as Kn, pinnedRuntimeVersionsDir as Ko, decodeJsonResult as Kr, getProviderOptionDescriptors as Ks, flattenTemporaryWorktreeBranchName as Kt, extractBranchNameFromRemoteRef as L, HTML_RENDER_MAX_HEIGHT as La, make$61 as Lc, latestRootProviderFailure as Li, modify$1 as Ll, subscribeBeforeSnapshot as Ln, isExactServiceVersion as Lo, layer$55 as Lr, parseSemver as Ls, normalizeModelMetricLabel as Lt, runWithReference as Lu, layer$21 as M, injectMcpAppThemeBootstrap as Ma, Terminal as Mc, backgroundWorkHoldsCompletion as Mi, nextIntBetween as Ml, runServicePreflight as Mn, SERVICE_RESTART_PENDING_FILE as Mo, DEFAULT_PORT as Mr, RotatingFileSink as Ms, webhookDeliveryDuration as Mt, fail$2 as Mu, VcsProcess as N, mcpAppToolCallableByApp as Na, isQuitError as Nc, derivePendingBackgroundWork as Ni, get$2 as Nl, layer$51 as Nn, SERVICE_STATE_FILE as No, RuntimeMode as Nr, makeAsyncRotatingFileSink as Ns, webhookHeldDelay as Nt, invalidKey as Nu, layer$20 as O, MCP_APP_OUTPUT_KEY as Oa, UserId as Oc, toSafeThreadAttachmentSegment as Oi, makeWith$2 as Ol, ServerSelfUpdate as On, void_ as Oo, isSecretStoreError as Or, layerOtlpSerialization as Os, secretRequestsTotal as Ot, copyBytes as Ou, layer$22 as P, readMcpAppCsp as Pa, Stdio as Pc, pendingBackgroundTurnItems as Pi, getAndSet as Pl, DesktopTelemetryReceiver as Pn, SERVICE_STOP_MARKER_FILE as Po, ServerConfig as Pr, OtlpSerialization as Ps, webhookRunsTotal as Pt, notExtractable as Pu, derive as Q, parseKeybindingWhenExpression as Qa, awaitEmpty as Qc, isExplicitRelativePath as Qi, family$1 as Ql, MaxBytesError as Qn, buildBooleanOptionDescriptor as Qo, none as Qr, withLegacyUltracodeEffort as Qs, parseOriginUrlFromGitConfig as Qt, isFilesystemRoot as R, HTML_RENDER_MEASURE_FONTS as Ra, modify as Rc, runRanAfter as Ri, set$2 as Rl, subscribeBeforeSnapshotWithoutMutex as Rn, parseServiceState as Ro, make$52 as Rr, satisfiesSemverRange as Rs, make$36 as Rt, WebCrypto as Ru, FILE_HEADERS_ONLY as S, toolOutputImages as Sa, ExecutablePath as Sc, parseAttachmentUuid as Si, getOption as Sl, layer$38 as Sn, PersistenceDecodeError as So, resolveRootCliCommand as Sr, DEFAULT_SIGNAL_EXPORT as Ss, providerSessionsTotal as St, layerWebCrypto$4 as Su, unquoteGitPatchPath as T, MCP_APP_EXTENSION_ID as Ta, InvokedAs as Tc, resolveAttachmentPath as Ti, invalidateAll as Tl, ServerEnvironmentIdentity as Tn, makeLiveStreamBudget as To, SecretStoreEncodeError as Tr, causeErrorTag as Ts, rpcRequestDuration as Tt, layerWebCrypto$6 as Tu, resolveWorktreeCleanup as U, clampHtmlRenderHeight as Ua, SqlClient as Uc, types as Ui, Signature as Ul, OpenCodeSettings as Un, launcherOwnsVersionsDir as Uo, resolveSourceControlWriterModelSelection as Ur, getModelSelectionBooleanOptionValue as Us, make$38 as Ut, update$2 as Uu, hasProjectSettingsOverrides as V, HTML_RENDER_TOOL_NAME as Va, update as Vc, formatThreadLink as Vi, getType as Vl, redactServerSettingsForClient as Vn, PinnedRuntimeInstallError as Vo, parsePersistedServerObservabilitySettings as Vr, createModelCapabilities as Vs, RepositoryIdentityResolver as Vt, Unsupported as Vu, ProjectService as W, htmlRenderTheme as Wa, SpanPropagationEnabled as Wc, constants as Wi, ecdsaP256 as Wl, MuseSettings as Wn, pinnedRuntimeCommand as Wo, getBackgroundActivityPresetSettings as Wr, getModelSelectionStringOptionValue as Ws, buildTemporaryWorktreeBranchName as Wt, withAttributes as Wu, layer$25 as X, mergeWithDefaultKeybindings as Xa, value as Xc, remapComposerContextAttachments as Xi, rsaPkcs1v15 as Xl, encode$1 as Xn, COMPACT_SLASH_COMMAND as Xo, layerResourceAttributes as Xr, readCustomModelEntries as Xs, normalizeGitRemoteUrl as Xt, LegacyV1ThreadImporter as Y, compileResolvedKeybindingsConfig as Ya, tags as Yc, projectComposerContextForProvider as Yi, layerWebCrypto as Yl, decode as Yn, AUTH_PROBE_TIMEOUT_MS as Yo, fromLenientJson as Yr, normalizeModelSlug as Ys, mergeGitStatusParts as Yt, IdAllocatorV2 as Z, parseKeybindingShortcut as Za, when as Zc, markdownDestinationHostPath as Zi, rsaPss as Zl, isNdjsonError as Zn, DEFAULT_TIMEOUT_MS$4 as Zo, load as Zr, resolvePromptInjectedEffort as Zs, parseGitHubRepositoryNameWithOwnerFromRemoteUrl as Zt, layer$6 as _, MAX_TOOL_OUTPUT_IMAGE_BASE64_LENGTH as _a, RequestInit as _c, chatAttachmentStableKey as _i, option as _l, expandHomePath as _n, sourceControlRepositorySelector as _o, isAgentActivityPublishingEnabledValue as _r, resolveLatestProviderVersion as _s, layer$32 as _t, family$2 as _u, normalizePreviewUrl as a, unified as aa, readEnvironmentFromLoginShell as ac, applyToProjection as ai, Int as al, WorkspacePathOutsideRootError as an, resolveThreadPullRequestChains as ao, CLOUD_LINKED_USER_ID as ar, parseCliVersionResult as as, ProjectStoreV2 as at, key$1 as au, firstNonEmptyLine as b, readToolOutputImage as ba, Arguments as bc, createPendingAttachmentId as bi, SourceError as bl, tokenizeCliArgs as bn, OrchestrationEventStore as bo, resolveCliCommand as br, ProviderLatestVersions as bs, orchestrationEffectClaimsTotal as bt, importPrivate as bu, rejectCommandsDuringClone as c, markdownLineEnding as ca, resolveSpawnCommand as cc, threadShellFromProjection as ci, Number$1 as cl, WorkspaceRootNotDirectoryError as cn, threadPullRequestsOf as co, HOLD_WEBHOOKS_WHILE_OFFLINE_SECRET as cr, providerProbeEnvironment as cs, PROCESS_BOUND_EFFECT_TYPES as ct, Digest as cu, SourceControlProviderRegistry as d, boundFileChangeForStorage as da, make$57 as dc, THREAD_HISTORY_SNAPSHOT_ROW_LIMIT as di, Redacted as dl, isWithinRoot as dn, parseChangeRequestUrl as do, RELAY_ISSUER_SECRET as dr, makeCachedProviderMaintenanceResolution as ds, layerPruneWorker as dt, sha256 as du, isUncPath as ea, CommandResolutionCache as ec, NetService as ei, make$65 as el, sanitizeBranchFragment as en, P4_CODE_DARK_THEME_COLORS as eo, pipeThroughDuplex as er, buildServerProvider as es, layer$26 as et, secretFamily as eu, layer$2 as f, capProjectionCheckpointFilesForWire as fa, ChildProcessSpawner as fc, buildBoundedThreadProjection as fi, String$1 as fl, layer$37 as fn, siblingPullRequestUrl as fo, RELAY_URL_SECRET as fr, makeManualOnlyProviderMaintenanceCapabilities as fs, ServerActivation as ft, sha384 as fu, layer$5 as g, threadStreamEventItem as ga, cliReleaseChannelOf as gc, attachmentRelativePath as gi, mapEffect as gl, resolveClaudeConfigDirPath as gn, isSshRemoteUrl as go, encodeEndpointRuntimeConfigJson as gr, normalizeCommandPath as gs, layerFromApplicationReceipts as gt, encode$2 as gu, VcsDriverRegistry as h, projectTurnItemForDetail as ha, cliReleaseChannelIndexUrl as hc, attachmentFileExtension as hi, map$3 as hl, readClaudeSettingsEnv as hn, getChangeRequestTerminologyForKind as ho, encodeConfirmedOriginJson as hr, makeTargetedProviderUpdateAction as hs, CommandReceiptStoreV2 as ht, decodeString$1 as hu, newPreviewTabId as i, normalizeProjectPathForComparison as ia, mergePathEntries as ic, ProjectionStoreV2 as ii, ConfigError as il, layer$36 as in, normalizeThreadPullRequestKey as io, CLOUD_ENDPOINT_RUNTIME_CONFIG as ir, nonEmptyTrimmed as is, layer$28 as it, hmacSha512 as iu, GitVcsDriver as j, injectMcpAppCsp as ja, QuitError as jc, resolveAttachmentRelativePath as ji, next$1 as jl, layer$50 as jn, SERVICE_LAUNCHER_CONTEXT_ENV as jo, writeFileStringAtomically as jr, redactCauseCredentials as js, webhookDeliveriesTotal as jt, material as ju, repositoryPathFromRemoteUrl as k, MCP_APP_RESOURCE_SCHEME as ka, WorkingDirectory as kc, inferImageExtension as ki, refresh as kl, layer$49 as kn, layer$61 as ko, layer$54 as kr, makeLocalFileTracer as ks, terminalRestartsTotal as kt, importedAlgorithm as ku, SourceControlRepositoryService as l, markdownLineEndingOrSpace as la, resolveWindowsEnvironment as lc, InvalidThreadHistoryCursorError as li, Port as ll, WorkspaceRootNotExistsError as ln, visibleThreadPullRequests as lo, PUBLISH_AGENT_ACTIVITY_SECRET as lr, spawnAndCollect as ls, REPLAY_SAFE_EFFECT_TYPES_AFTER_PROCESS_LOSS as lt, nameSuffix as lu, layer$3 as m, projectThreadProjectionForWire as ma, CLI_RELEASE_CHANNELS as mc, PENDING_ATTACHMENT_THREAD_SEGMENT as mi, all$4 as ml, discoverClaudeSkills as mn, detectSourceControlProviderFromRemoteUrl as mo, decodeRuntimeConfig as mr, makeProviderMaintenanceCapabilities as ms, forkParkedFiber as mt, decode$2 as mu, isLoopbackHost as n, isWindowsDrivePath as na, isCommandAvailable as nc, ProjectionMaintenanceV2 as ni, runtime as nl, ProjectFaviconResolver as nn, UNPUBLISHABLE_THEME_IDS as no, toUint8Array as nr, isCommandMissingCause as ns, EventSinkV2 as nt, hmacSha256 as nu, ProjectCloneTracker as o, remarkParse as oa, readPathFromLaunchctl as oc, emptyProjection as oi, LogLevel as ol, WorkspacePaths as on, threadPullRequestKeyOf as oo, CLOUD_LINK_REVOKED as or, parseGenericCliVersion as os, layer$29 as ot, layerWebCryptoWith as ou, BUILT_IN_SOURCE_CONTROL_DRIVERS as p, projectDomainEventForWire as pa, CLI_RELEASE_BASE_URL_ENV as pc, decodeThreadHistoryCursor as pi, URL$1 as pl, claudeLaunchArgDirectories as pn, canonicalRepositoryKey as po, decodeConfirmedOrigin as pr, makePackageManagedProviderMaintenanceResolver as ps, forkParked as pt, sha512 as pu, ThreadCommandExecutor as q, DEFAULT_KEYBINDINGS as qa, is as qc, assistantCitationsToPlainText as qi, ed25519 as ql, CursorSettings as qn, ProcessRunner as qo, extractJsonObject as qr, modelSelectionCommandType as qs, formatGeneratedBranchName as qt, isPreviewUrlNormalizationError as r, newProjectFolderName as ra, listLoginShellCandidates as rc, layer$57 as ri, Boolean$1 as rl, layer$35 as rn, legacyThreadPullRequestKey as ro, CLOUD_ENDPOINT_CONFIRMED_ORIGIN as rr, isWindowsCommandNotFound as rs, layerFromStores as rt, hmacSha384 as ru, layer as s, factorySpace as sa, resolveCommandPath as sc, layer$58 as si, NonEmptyString as sl, WorkspaceRootCreateFailedError as sn, threadPullRequestKeysEqual as so, CLOUD_MINT_PUBLIC_KEY as sr, providerModelsFromSettings as ss, EffectOutboxV2 as st, timingSafeEqual as su, LSOF_LOCAL_HOST_TOKENS as t, isWindowsAbsolutePath as ta, SpawnExecutableResolution as tc, layer$56 as ti, run as tl, sanitizeFeatureBranchName as tn, P4_CODE_LIGHT_THEME_COLORS as to, toArrayBuffer as tr, collectStreamAsString as ts, randomUuidV4 as tt, Mac as tu, layer$1 as u, ok$1 as ua, withPathDirectoryListings as uc, THREAD_HISTORY_PAGE_POLICY as ui, Record as ul, WorkspaceRootStatFailedError as un, changeRequestUrlFor as uo, RELAY_ENVIRONMENT_CREDENTIAL_SECRET as ur, enrichProviderSnapshotWithVersionAdvisory as us, layer$30 as ut, sha1 as uu, GitHubCredentials as v, mcpAppFromToolItem as va, layer$64 as vc, createAttachmentId as vi, schema as vl, require_dist as vn, layer$59 as vo, readHoldWebhooksWhileOffline as vr, resolveMiseProviderMaintenance as vs, increment as vt, layerWebCrypto$3 as vu, structuredPatch as w, resolveP4McpToolDefinition as wa, Hostname as wc, planAttachmentClaim as wi, invalidate as wl, ServerEnvironment as wn, bufferLiveStream as wo, SecretStoreDecodeError as wr, OtlpProtocol as ws, providerTurnsTotal as wt, SecureRandom as wu, PullRequestProviderError as x, toolOutputImageBlocks as xa, Environment as xc, parseAttachmentFileExtension as xi, get$1 as xl, make$42 as xn, layer$60 as xo, resolveHostCliCommand as xr, layer$63 as xs, orchestrationEffectQueueWait as xt, importPublic as xu, detailFromCause as y, mcpToolResultOutput as ya, Architecture as yc, createDeterministicAttachmentId as yi, withDefault as yl, parseCliArgs as yn, layerFromOrchestrationEventStore as yo, readRelayConnection as yr, resolveProviderMaintenanceCapabilitiesEffect as ys, metricAttributes as yt, exportKey as yu, managedWorktreesDirectories as z, HTML_RENDER_MEASURE_WIDTHS as za, modifyEffect as zc, usageLimitBlockedRun as zi, update$1 as zl, ServerSettingsService as zn, serviceStateActiveVersion as zo, otlpResource as zr, applyClaudePromptEffortPrefix as zs, ProjectEnrichmentService as zt, CryptoError as zu };
101715
101717
 
101716
- //# sourceMappingURL=preview-D0Bi2g4U.mjs.map
101718
+ //# sourceMappingURL=preview-BGylKXB6.mjs.map
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { a as computeLayout, c as documentFontFaces, g as selectLayoutItems, i as canvasFont, l as fileHash, m as resolveValue, p as resolveFontFaces, t as aliasFontStack } from "./runtime-Cy8_QlEa.mjs";
3
+ import { a as computeLayout, c as documentFontFaces, g as selectLayoutItems, i as canvasFont, l as fileHash, m as resolveValue, p as resolveFontFaces, t as aliasFontStack } from "./runtime-O5AWAEzD.mjs";
4
4
  import * as NodeModule from "node:module";
5
5
  import * as NodeFS from "node:fs";
6
6
  import * as NodeOS from "node:os";
@@ -17711,4 +17711,4 @@ function createRenderer(width, height) {
17711
17711
  }
17712
17712
  export { FONT_CACHE_FOLDER, createRenderer, rasterizeSvg, renderDesignExport, renderDesignPng };
17713
17713
 
17714
- //# sourceMappingURL=renderer-Cq4PzLVY.mjs.map
17714
+ //# sourceMappingURL=renderer-CQkeNW9b.mjs.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { St as decodeUnknownSync } from "./Schema-CdYZrGX6.mjs";
4
- import { Ot as DesignDocument, Rt as DesignNode, Tt as DESIGN_MODEL_MIME_TYPE, l as bytesToHex, t as sha256$1 } from "./sha2-D9ocDAIA.mjs";
4
+ import { Ot as DesignDocument, Rt as DesignNode, Tt as DESIGN_MODEL_MIME_TYPE, l as bytesToHex, t as sha256$1 } from "./sha2-BjjJcoUu.mjs";
5
5
  const DESIGN_EXTENSIONS = [".p4d", ".p4design"];
6
6
  const isDesignDocumentPath = (path) => DESIGN_EXTENSIONS.some((extension) => path.endsWith(extension));
7
7
  const stripDesignExtension = (path) => {
@@ -732,4 +732,4 @@ function semanticDiff(before, after) {
732
732
  }
733
733
  export { modelFileDiagnostics as C, isDesignDocumentPath as E, glbSummary as S, designDocumentBaseName as T, semanticDiff as _, computeLayout as a, MODEL_MAX_BYTES as b, documentFontFaces as c, parseDesign as d, patchNode as f, selectLayoutItems as g, reviewState as h, canvasFont as i, fileHash as l, resolveValue as m, buildIndexes as n, diagnostic as o, resolveFontFaces as p, canonicalSerialize as r, documentContentDigest as s, aliasFontStack as t, isConfinedRelativePath as u, validateDesign as v, DESIGN_EXTENSIONS as w, MODEL_MESHOPT_EXTENSION as x, MODEL_DRACO_EXTENSION as y };
734
734
 
735
- //# sourceMappingURL=runtime-Cy8_QlEa.mjs.map
735
+ //# sourceMappingURL=runtime-O5AWAEzD.mjs.map
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- export { t as layer, n as layerEventInfrastructure, r as layerEventSink, i as layerProduction, a as layerProjectService, o as layerProjectSetupScriptRunner } from "./runtimeLayer-DZa24xtO.mjs";
3
+ export { t as layer, n as layerEventInfrastructure, r as layerEventSink, i as layerProduction, a as layerProjectService, o as layerProjectSetupScriptRunner } from "./runtimeLayer-ChPBglJB.mjs";