@p4code/cli 0.8.33 → 0.8.34
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.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-CReSoYE2.mjs → binCli-CvWinVsO.mjs} +77 -21
- package/dist/client/.vite/manifest.json +2022 -2022
- package/dist/client/assets/{2NI2N5EU-Cq8AdBdr.js → 2NI2N5EU-Dlr3FZf7.js} +2 -2
- package/dist/client/assets/{4UO7MD6I-BtyHa2r8.js → 4UO7MD6I-Cy2sjs8O.js} +2 -2
- package/dist/client/assets/{5B3SVYGG-DJhrK_P7.js → 5B3SVYGG-DaCwFaTp.js} +2 -2
- package/dist/client/assets/{5GK6JWQ2-Di3oWVTL.js → 5GK6JWQ2-BVM9871F.js} +2 -2
- package/dist/client/assets/{5N7A7DKN-IYvb4i83.js → 5N7A7DKN-BVMU2dmG.js} +2 -2
- package/dist/client/assets/{5OC2THR4-C4L8eWnK.js → 5OC2THR4-2tkjJ38q.js} +2 -2
- package/dist/client/assets/{5S6HY5KT-CRP52QAR.js → 5S6HY5KT-BGTQzE2T.js} +2 -2
- package/dist/client/assets/{6IMQ5BUJ-CNHI0F6y.js → 6IMQ5BUJ-DMdx9ktL.js} +2 -2
- package/dist/client/assets/{6OLKWJ4F-B4vHLWw5.js → 6OLKWJ4F-B0TXT19U.js} +2 -2
- package/dist/client/assets/{74OO7NKP-Cy2GHTnO.js → 74OO7NKP-Cukz2OUS.js} +2 -2
- package/dist/client/assets/{75O6YZUN-DQlP5MhD.js → 75O6YZUN-D3k2sZNm.js} +2 -2
- package/dist/client/assets/{77XECAW3-DSSYRZCk.js → 77XECAW3-CjIq7P_x.js} +2 -2
- package/dist/client/assets/{ABYRPUBD-BKqULKA5.js → ABYRPUBD-hf0OeD7n.js} +2 -2
- package/dist/client/assets/AlertDialogRoot-BUODcEy9.js +2 -0
- package/dist/client/assets/{AnimatedHeight-CFR4EWDw.js → AnimatedHeight-CHpFDL1r.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-X2oPejN8.js → AuthSurfaceShell-whDvSlDA.js} +2 -2
- package/dist/client/assets/{BB2UYUI2-C2iBTfII.js → BB2UYUI2-RUQPN7sp.js} +2 -2
- package/dist/client/assets/{BUM34MOA-D8LFlnDQ.js → BUM34MOA-f5Ez9vSp.js} +2 -2
- package/dist/client/assets/{CEQABKGZ-D15ZAT0K.js → CEQABKGZ-C2ZheKpY.js} +2 -2
- package/dist/client/assets/{CXAC5362-CicOZ45Z.js → CXAC5362-B0KvwGJk.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-LQ3LzsF3.js → ChatGptUsageButton-CMIjZ66V.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-DfVVLQX2.js → ChatMarkdown-C2KOLN1s.js} +5 -5
- package/dist/client/assets/{CheckboxIndicator-IpoyLEZ-.js → CheckboxIndicator-zwVHomgm.js} +2 -2
- package/dist/client/assets/{ClippedText-DTOlMbAH.js → ClippedText-Cx9jjhQp.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-B5cbwzh2.js → CodexSetupSection.logic-150217tr.js} +2 -2
- package/dist/client/assets/{ComboboxClear-DsPTusk5.js → ComboboxClear-tzFhNwrk.js} +2 -2
- package/dist/client/assets/{ComboboxGroupLabel-DqaoaBhS.js → ComboboxGroupLabel-C1Icd2UF.js} +2 -2
- package/dist/client/assets/{CommandBlock-Da9iVEid.js → CommandBlock-D9QqOlDX.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-Bz4_w6ez.js → ComposerPromptEditor-D2ObH3Py.js} +4 -4
- package/dist/client/assets/{CompositeRoot-Dfl7FdSL.js → CompositeRoot-BD0GlRg8.js} +2 -2
- package/dist/client/assets/{ConnectionDiagnosisDetails-DCPX1JuG.js → ConnectionDiagnosisDetails-BQ3BFqRL.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-DVkDejK1.js → ConnectionStatusDot-DLQm_zZ7.js} +2 -2
- package/dist/client/assets/{DRLTVNUE-BEVEy9Nb.js → DRLTVNUE-vgHnaBR1.js} +2 -2
- package/dist/client/assets/{DYY6UVD2-DtPiS3Ow.js → DYY6UVD2-BQAAF_8A.js} +2 -2
- package/dist/client/assets/{DevicePanel-B8KdDbzD.js → DevicePanel-Yd3YuPQd.js} +2 -2
- package/dist/client/assets/{DeviceSetup-5wa1rPPZ.js → DeviceSetup-DW4g9NNK.js} +2 -2
- package/dist/client/assets/{DialogTitle-JDa7kdjH.js → DialogTitle-DCMYEIWZ.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-Bp1MeIVC.js → DiffCommentAnnotation-BLItJ7Ia.js} +2 -2
- package/dist/client/assets/{DiffFileTree-b24emCci.js → DiffFileTree-B1-D1WV6.js} +2 -2
- package/dist/client/assets/{DiffPanel-bEjr64Vx.js → DiffPanel-BGnRzWM8.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider-BoEAlLkf.js → DiffWorkerPoolProvider-BzkGX7xm.js} +2 -2
- package/dist/client/assets/{EmbeddedDesign-DmRjhA9k.js → EmbeddedDesign-BV_FcJ4l.js} +2 -2
- package/dist/client/assets/{EnvironmentMachineIcon-Emg7F_9r.js → EnvironmentMachineIcon-5-erc8l_.js} +2 -2
- package/dist/client/assets/{ExpandableText-CK6tzx1k.js → ExpandableText-D2jzDgm7.js} +2 -2
- package/dist/client/assets/{FNOVOB4O-C31Sm0mF.js → FNOVOB4O-CE98DPML.js} +2 -2
- package/dist/client/assets/{FieldControl-7KI8YfqD.js → FieldControl-CBMzQqd5.js} +2 -2
- package/dist/client/assets/{FileDiff-CXJUPm2t.js → FileDiff-2qSm00aV.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-BMID-IVR.js → FilePreviewPanel-Drpn6NuE.js} +2 -2
- package/dist/client/assets/{FoldedSettingsSection-Dzi9RecU.js → FoldedSettingsSection-Db7e_9rd.js} +2 -2
- package/dist/client/assets/{FormContext-DAP0MupI.js → FormContext-BGRz6hhb.js} +2 -2
- package/dist/client/assets/{HDGCDEEZ-DZ2nNieb.js → HDGCDEEZ-C0-Zci_l.js} +2 -2
- package/dist/client/assets/{HSJLKHB7-DlFBBKjs.js → HSJLKHB7-4e5L-KC4.js} +2 -2
- package/dist/client/assets/{Icons-aTRNsMJy.js → Icons-DwLGuyWf.js} +2 -2
- package/dist/client/assets/Input-DLaKk0qb.js +2 -0
- package/dist/client/assets/JZOYTAAL-SLYGD65P.js +1 -0
- package/dist/client/assets/{K3MD6TGW-Drb40Qks.js → K3MD6TGW-Gi4s7ooz.js} +2 -2
- package/dist/client/assets/{K7RP3OMA-C0M5Zt3R.js → K7RP3OMA-BVc6P2bZ.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-mOtug0lc.js → KeybindingsSettings.logic-CU23l8mP.js} +2 -2
- package/dist/client/assets/{LHDIQX7Q-CdTAxECn.js → LHDIQX7Q-DbBCFdJr.js} +2 -2
- package/dist/client/assets/{LUXOKEGN-DtIPjv1z.js → LUXOKEGN-C4n0-A1h.js} +2 -2
- package/dist/client/assets/{MathTypeset-DTaIJ55e.js → MathTypeset--azkeKic.js} +2 -2
- package/dist/client/assets/{N3JZAHOW-C8Pvhbkj.js → N3JZAHOW-2wC96xvZ.js} +2 -2
- package/dist/client/assets/{NUIALGQ3-DY7_VZ5G.js → NUIALGQ3-Di1L_kRJ.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-CDfuCTEv.js → NoProjectsHero-CC3oMKUV.js} +2 -2
- package/dist/client/assets/{O65XPQGZ-BH6EzDhm.js → O65XPQGZ-BeKB0m-p.js} +2 -2
- package/dist/client/assets/{O7XIQ6OM-BSPRvWV7.js → O7XIQ6OM-1wrcdCMc.js} +2 -2
- package/dist/client/assets/{OFQON5FD-VO8HiyY7.js → OFQON5FD-CsMmmhLT.js} +2 -2
- package/dist/client/assets/{P4ConnectAccountPages-Cbg00I7Q.js → P4ConnectAccountPages-BDxb29bY.js} +2 -2
- package/dist/client/assets/{P4ConnectSidebarSignIn-C9gBlkFF.js → P4ConnectSidebarSignIn-Dp5OsZBa.js} +2 -2
- package/dist/client/assets/{PJQHF43J-yTbK55y3.js → PJQHF43J-CY_GpbqJ.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-40ju6vkz.js → PanelLayoutControls-CqeL3uQz.js} +4 -4
- package/dist/client/assets/{PierreEntryIcon-HuUxlwtG.js → PierreEntryIcon-B5tjtDkE.js} +2 -2
- package/dist/client/assets/{PopoverHandle-CG975ng4.js → PopoverHandle-CZh3pqXt.js} +2 -2
- package/dist/client/assets/{PreviewPanel-Ljaq9IHA.js → PreviewPanel-CvBQAq3I.js} +2 -2
- package/dist/client/assets/{ProjectDefaultsSettings-DhwkzlK6.js → ProjectDefaultsSettings-DLJfUN7i.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-UXGwc_-W.js → ProjectFavicon-CkSteHLT.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-BAM7e1e5.js → ProjectIconPickerDialog-9heAZbVC.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-f16fmYcx.js → ProjectMonogram-DIqp1OmB.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-e0ZkNHAb.js → ProviderAuthTerminal-BSsraub7.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-BviWI2wX.js → ProviderModelPicker-AkULlCAn.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-CXMFT8YA.js → ProviderSettingsForm-CAFBbrfr.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-Bm67cV34.js → PullRequestCodeTab-BamXVeZz.js} +2 -2
- package/dist/client/assets/{RHNBAITX-TQrYdbHC.js → RHNBAITX-BdiF8iR_.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-xMB_y284.js → ReadOnlySourcePreview-BXDLfPcr.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-C2ZkZ4DB.js → RenderErrorBoundary-CR2cHAQ5.js} +2 -2
- package/dist/client/assets/{SLD4V6NK-Bz1tyL2C.js → SLD4V6NK-Bo1z-c9S.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-D-GMMbJH.js → ScheduledTasksSettings-DF_KhqLx.js} +2 -2
- package/dist/client/assets/{ScopedSwitch-DBUAjY1n.js → ScopedSwitch-CX4FTGjy.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-U1Zhpkdl.js → ScrollAreaCorner-BCdJHqsj.js} +2 -2
- package/dist/client/assets/{SecretInput-BxYmGvR5.js → SecretInput-BPPzPNI1.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-CJ4E0xi4.js → SelectScrollUpArrow-CR3Z6_pf.js} +2 -2
- package/dist/client/assets/{SettingsPanels-DRK5QQ04.js → SettingsPanels-DoJnxtp0.js} +2 -2
- package/dist/client/assets/{SettingsPanels.logic-Bdp6GzIj.js → SettingsPanels.logic-t7cG-B6z.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-DYiUHoov.js → SettingsScopeNotice-DD4QFo3v.js} +2 -2
- package/dist/client/assets/{T3PCR2KE-DJwqsK9f.js → T3PCR2KE-Cg6A465M.js} +2 -2
- package/dist/client/assets/{TKWO2OVW-CRU32th0.js → TKWO2OVW-CWeCEb5C.js} +2 -2
- package/dist/client/assets/{TSHNXIZL-dMhDuHVe.js → TSHNXIZL-DTjzxHgA.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-BIQc-w2Q.js → ThemeEditorPanel-BwydY72w.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-BqO5rPzw.js → ThreadTerminalDrawer-QTFG89J_.js} +2 -2
- package/dist/client/assets/{TooltipViewport-Bz56sWCM.js → TooltipViewport-C14m3uB7.js} +2 -2
- package/dist/client/assets/{UQJE5E4I-DH2S3Hdw.js → UQJE5E4I-DS4MjKhw.js} +2 -2
- package/dist/client/assets/{USNYFO5S-Cfz4g-2W.js → USNYFO5S-Be1OZGok.js} +2 -2
- package/dist/client/assets/{Virtualizer-ChRGRE40.js → Virtualizer-BpizRoFL.js} +2 -2
- package/dist/client/assets/{WEVWDWVA-C55QWN7O.js → WEVWDWVA-oFS2VG1Y.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-8nBISaRF.js → WorkspaceBreadcrumb-ckARUoj9.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BGE_kHaP.js → WorkspacePageContainer-D5yW7_av.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-D704geLh.js → WorkspacePageHeader-CTWcEH7d.js} +2 -2
- package/dist/client/assets/{X5RFHQXM-hmS6q1sh.js → X5RFHQXM-Bjw0rDxX.js} +2 -2
- package/dist/client/assets/{X62E3GBT-BhTtqjj4.js → X62E3GBT-BPHYY59t.js} +2 -2
- package/dist/client/assets/{XBNEOJTC-1paZyqxX.js → XBNEOJTC-W72qCYdc.js} +2 -2
- package/dist/client/assets/{YHV2MVVZ-DbfthGUh.js → YHV2MVVZ-DA_drdwk.js} +2 -2
- package/dist/client/assets/{YURCZMG2-D8tAzwGP.js → YURCZMG2-CsfrwNLG.js} +2 -2
- package/dist/client/assets/{YVG2LODB-DMSQWWQ_.js → YVG2LODB-dXCBipzg.js} +2 -2
- package/dist/client/assets/{_chat-CXVo1NVJ.js → _chat-BIqme2Hz.js} +5 -5
- package/dist/client/assets/{_chat.design-CdPf_wsA.js → _chat.design-KVMajkdX.js} +2 -2
- package/dist/client/assets/{_chat.index-BkTRJLOf.js → _chat.index-BknTP6QZ.js} +2 -2
- package/dist/client/assets/{_chat.new-CEmRJFEH.js → _chat.new-DLFV1XOJ.js} +2 -2
- package/dist/client/assets/{_chat.pull-requests-4M0tUrJ6.js → _chat.pull-requests-BDLRkW2A.js} +2 -2
- package/dist/client/assets/{alert-DiE1d01s.js → alert-Dh8AVuLe.js} +2 -2
- package/dist/client/assets/{assetUrls-BeScRf6b.js → assetUrls-C6W2_00u.js} +2 -2
- package/dist/client/assets/{assets-RdKoqY9e.js → assets-D-xsxvzf.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-hrG24FfH.js → browserHistoryStore-CeBJcpoN.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-D8HEmVsi.js → browserLinkTarget-D5ew8rLG.js} +2 -2
- package/dist/client/assets/{checkbox-CwFE3KXZ.js → checkbox-Y4v7A1IZ.js} +2 -2
- package/dist/client/assets/{color-picker-BKtR2mwD.js → color-picker-DEWeNc5K.js} +2 -2
- package/dist/client/assets/{combobox-DBUxcuwi.js → combobox-DGrx2JGy.js} +2 -2
- package/dist/client/assets/{command-NV0JEoGo.js → command-DR1GjC1a.js} +2 -2
- package/dist/client/assets/{composer-logic-BQdFVlkE.js → composer-logic-BW4G8aDL.js} +2 -2
- package/dist/client/assets/{composerDraftUploads-BmpBCVnP.js → composerDraftUploads-DK6jH0cB.js} +2 -2
- package/dist/client/assets/{connect-Bzgsrfe8.js → connect-B1NcR-kN.js} +2 -2
- package/dist/client/assets/{connect-agent-BCguLPkZ.js → connect-agent-BNrm24qs.js} +2 -2
- package/dist/client/assets/{design-BGLTZdWG.js → design-CbG6XJYX.js} +2 -2
- package/dist/client/assets/{device-D0-STSSP.js → device-6R-yC55P.js} +2 -2
- package/dist/client/assets/{dialog-pqqgtsKn.js → dialog-BwjzOzO6.js} +2 -2
- package/dist/client/assets/{diffRendering-eAJMSnXr.js → diffRendering-CG_sb5me.js} +2 -2
- package/dist/client/assets/{dist-KeWCSS5h.js → dist-CFar2AY1.js} +3 -3
- package/dist/client/assets/{draft-input-DrGl-qts.js → draft-input-CpqOZR5i.js} +2 -2
- package/dist/client/assets/{duoViewer-DKygyhUj.js → duoViewer-BhE8QUaC.js} +2 -2
- package/dist/client/assets/{dynamic-DKhgWyT6.js → dynamic-CIBySV57.js} +2 -2
- package/dist/client/assets/{embeddedScripts-WSYzbtcW.js → embeddedScripts-B0vXhhvs.js} +2 -2
- package/dist/client/assets/{empty-Du5F51Da.js → empty-C0oiFHy_.js} +2 -2
- package/dist/client/assets/{entities-n6SMnPE8.js → entities-Om5Klild.js} +2 -2
- package/dist/client/assets/{fileLinks-BEJjCE8r.js → fileLinks-CP5NWXaI.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-CCF3XVRn.js → fileTreeExpansion-BKVd4HrC.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-Dkc1Whpr.js → getDiffFileInput-CIK5OMl_.js} +2 -2
- package/dist/client/assets/{guideRunStore-CVyie1IJ.js → guideRunStore-CegZr43-.js} +2 -2
- package/dist/client/assets/{htmlRender-fSOuRG49.js → htmlRender-NqJI2UJ2.js} +2 -2
- package/dist/client/assets/{index-RvCv9K-x.js → index-Czsz7nXH.js} +3 -3
- package/dist/client/assets/{input-GkmNnHh7.js → input-BCWES8Y7.js} +2 -2
- package/dist/client/assets/{input-group-Cql1yQRL.js → input-group-CfPOCEuC.js} +2 -2
- package/dist/client/assets/{kbd-D2OGhJqG.js → kbd-EDrgCOls.js} +2 -2
- package/dist/client/assets/{keybindings-1XWkWeQB.js → keybindings-BG7j7M7S.js} +2 -2
- package/dist/client/assets/{lazy-BUyZ03gL.js → lazy-D6W01WxZ.js} +4 -4
- package/dist/client/assets/{lazyRouteComponent-BXmOK9bz.js → lazyRouteComponent-B8CSLurY.js} +2 -2
- package/dist/client/assets/{link-BGMNeg05.js → link-COzhJ6br.js} +2 -2
- package/dist/client/assets/{linkedPrompt-B3l4m_6D.js → linkedPrompt-X4NBlFef.js} +2 -2
- package/dist/client/assets/{main-Dcfxjdkd.js → main-BGaSDXjP.js} +7 -7
- package/dist/client/assets/{mediaReference-CsA5Lv5E.js → mediaReference-CKap6oNP.js} +2 -2
- package/dist/client/assets/{mediaSource-BbYoxHZJ.js → mediaSource-DG5l5-5f.js} +2 -2
- package/dist/client/assets/{number-field-jauVDwvy.js → number-field-DGdBjQD2.js} +2 -2
- package/dist/client/assets/{observeResize-CNtO3VS7.js → observeResize-BUAH1dvA.js} +2 -2
- package/dist/client/assets/{onboarding-KXMrOHsw.js → onboarding-CnVH7A6c.js} +2 -2
- package/dist/client/assets/{openFileInPreview-BKTnNQFl.js → openFileInPreview-B0i3eZpu.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-sAVjpCzn.js → p4ProjectFile-0RRo3hX4.js} +2 -2
- package/dist/client/assets/{pair-BIaVaT-B.js → pair-B4KNAPh5.js} +2 -2
- package/dist/client/assets/{pendingSendStore-CPz2p40W.js → pendingSendStore-Dzn7x7Cg.js} +2 -2
- package/dist/client/assets/{phoneViewer-DGKQHyy3.js → phoneViewer-RhpfiwR2.js} +2 -2
- package/dist/client/assets/{pierre-icons-6ByaxkH5.js → pierre-icons-Cisj4-__.js} +2 -2
- package/dist/client/assets/{popover-BIXQitBy.js → popover-BnqKHl4L.js} +2 -2
- package/dist/client/assets/{preview-BcEybEc8.js → preview-CiojYkh4.js} +2 -2
- package/dist/client/assets/{preview-C3ymkoAM.js → preview-Dwq2O7nm.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-DWw2A_gt.js → previewMiniPlayerStore-ByZNhmNc.js} +2 -2
- package/dist/client/assets/{primary-DD11poOa.js → primary-CMwTDEi1.js} +2 -2
- package/dist/client/assets/{primaryCloudLinkState-CD2_f6q-.js → primaryCloudLinkState-2j4MjqVh.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-C8dGr8oR.js → projectFilesQueryState-DXrTSOqg.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-CNXQwWP8.js → projectScriptEditor-B4iSq27p.js} +2 -2
- package/dist/client/assets/{providerSkills-CNeLyiqf.js → providerSkills-C4Fu_qyq.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-BNpxef-3.js → pullRequestDetail.logic-BmYDDw_8.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-CSs54zQk.js → pullRequestIcons-DFcQ9rtl.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-BawbGhnx.js → pullRequestReviewStore-BGzKslrq.js} +2 -2
- package/dist/client/assets/{pullRequests-jsc4Hq78.js → pullRequests-DT0oG7tF.js} +2 -2
- package/dist/client/assets/{queries-DZV2RDc9.js → queries-CXgT6mki.js} +2 -2
- package/dist/client/assets/{query-BV3IuYff.js → query-DlK0I8Jc.js} +2 -2
- package/dist/client/assets/{radio-group-yq5YEgUO.js → radio-group-DOHTpBxX.js} +2 -2
- package/dist/client/assets/{renderScheduler--3RDWz9Z.js → renderScheduler-Df4T8RWh.js} +2 -2
- package/dist/client/assets/{rightPanelStore-CeZBJCMI.js → rightPanelStore-DXw7-xK3.js} +2 -2
- package/dist/client/assets/{runtime-DTUiqO10.js → runtime-BL7IF4n-.js} +3 -3
- package/dist/client/assets/{runtime-DSZ2mWrf.js → runtime-Dm3Pi31_.js} +3 -3
- package/dist/client/assets/{runtimeModeConfig-BwioIXVs.js → runtimeModeConfig-_-kQoAWi.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-DefawCwN.js → scheduledTasksSettings.logic-7E0KSnA7.js} +2 -2
- package/dist/client/assets/{scroll-area-CfW8fzQ8.js → scroll-area-B9LorBFb.js} +2 -2
- package/dist/client/assets/{select-C10oXKGz.js → select-Ctq0UILH.js} +2 -2
- package/dist/client/assets/{server-ztj8tD38.js → server-BvxyePeo.js} +2 -2
- package/dist/client/assets/{session-yxXjF8AQ.js → session-C7ckxjAM.js} +2 -2
- package/dist/client/assets/{session-logic-w7gGMFHb.js → session-logic-P8gC-UQc.js} +2 -2
- package/dist/client/assets/{settings-CgshkEb_.js → settings-BqhxEPKC.js} +2 -2
- package/dist/client/assets/{settings.appearance-yicuncxz.js → settings.appearance-DljtCz6-.js} +2 -2
- package/dist/client/assets/settings.archived-SsFK0IFf.js +2 -0
- package/dist/client/assets/{settings.computer-use-lOJg1Jos.js → settings.computer-use-CVmc70Ib.js} +2 -2
- package/dist/client/assets/{settings.connections-DSPQOd-W.js → settings.connections-BrPlTKQ_.js} +2 -2
- package/dist/client/assets/{settings.data-controls-CZ5aXdyA.js → settings.data-controls-Cdccmn63.js} +2 -2
- package/dist/client/assets/{settings.decisions-C8qxQCjl.js → settings.decisions-pkwqjsKP.js} +2 -2
- package/dist/client/assets/{settings.designs-j9E6N2pN.js → settings.designs-TeCw-uLf.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-yio3SGbE.js → settings.diagnostics-BZD1uMGP.js} +2 -2
- package/dist/client/assets/{settings.general-BCrYSHkU.js → settings.general-uxwywmhh.js} +2 -2
- package/dist/client/assets/{settings.integrations-Dl-vtiOS.js → settings.integrations-Du282Gn7.js} +2 -2
- package/dist/client/assets/{settings.keybindings-BQ-LrcTn.js → settings.keybindings-C0FBNk1_.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-BHiHgzgF.js → settings.open-source-licenses-wMwaYCss.js} +2 -2
- package/dist/client/assets/{settings.plugins-DavhWo4Q.js → settings.plugins-CFiDE3ms.js} +2 -2
- package/dist/client/assets/{settings.projects-uuJOwkSl.js → settings.projects-DN0n2td7.js} +3 -3
- package/dist/client/assets/{settings.providers-rZQTQdtf.js → settings.providers-DeUZZg7C.js} +3 -3
- package/dist/client/assets/{settings.scheduled-tasks-DoWHIDOp.js → settings.scheduled-tasks-uCL4Wgvt.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-ClKlVUUJ.js → settings.snap-shot-C4OHP0nR.js} +2 -2
- package/dist/client/assets/{settings.source-control-o8jFa_Cr.js → settings.source-control-pMBspYC4.js} +2 -2
- package/dist/client/assets/{settings.storage-Bb-cW0xG.js → settings.storage-QCydiEyw.js} +2 -2
- package/dist/client/assets/{settingsLayout-DzBeWTUO.js → settingsLayout-DFYjWgKN.js} +2 -2
- package/dist/client/assets/{sidebar-Bd6PzVyD.js → sidebar-CRr8B41y.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-C13IyN_p.js → sidebarProjectGrouping-miDXfjI3.js} +2 -2
- package/dist/client/assets/{skeleton-pd7m2J5F.js → skeleton-C9J-Xl06.js} +2 -2
- package/dist/client/assets/{sourceControl-Y9v_vyKt.js → sourceControl-C8nJMDiL.js} +2 -2
- package/dist/client/assets/{sourceControlClients-KQ5315mN.js → sourceControlClients-DKONtKbZ.js} +2 -2
- package/dist/client/assets/{spinner-CW23--q5.js → spinner-CNva85zM.js} +2 -2
- package/dist/client/assets/{terminal-links-Bd9AoAyA.js → terminal-links-BJzLp7ix.js} +2 -2
- package/dist/client/assets/{terminalSessions-CF7f4A-6.js → terminalSessions-BPc8sBGR.js} +2 -2
- package/dist/client/assets/{textarea-DSS-lavF.js → textarea-DjRGRzMg.js} +2 -2
- package/dist/client/assets/{themePalette-C_1pk_Mi.js → themePalette-fhKYLCuU.js} +2 -2
- package/dist/client/assets/{toast-BFuAqla3.js → toast-BcjbmUtS.js} +2 -2
- package/dist/client/assets/{toggle-Cpfo0sMT.js → toggle-Bbnow7xY.js} +2 -2
- package/dist/client/assets/{toggle-group-FrArhs7R.js → toggle-group-Cilo8czD.js} +2 -2
- package/dist/client/assets/{tooltip-CSzrAm8M.js → tooltip-T5ePvxsH.js} +2 -2
- package/dist/client/assets/{uiStateStore-VHQ8vDs5.js → uiStateStore-D9r3BNZ-.js} +2 -2
- package/dist/client/assets/{usage-uwswTMhu.js → usage-QBPLx2wr.js} +2 -2
- package/dist/client/assets/{usageAccess-BDwH_c8I.js → usageAccess-DUfVA8nU.js} +2 -2
- package/dist/client/assets/{usageFormat-CKgwjLMR.js → usageFormat-C-mTuUS7.js} +2 -2
- package/dist/client/assets/{usageShortcuts-lXBRgPmi.js → usageShortcuts-CB6TvooP.js} +2 -2
- package/dist/client/assets/{use-atom-command-CSWaAmR7.js → use-atom-command-BNkv9iyk.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-vgEmgPPR.js → useAriaLabelledBy-D5HM2KLM.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-BVFM3SUe.js → useHandleNewThread-DntRaFvm.js} +2 -2
- package/dist/client/assets/{useLocation-FEfJrgGU.js → useLocation-DbWity7H.js} +2 -2
- package/dist/client/assets/{useNavigate-Lp_S-tAl.js → useNavigate-Cxh24teV.js} +2 -2
- package/dist/client/assets/{useNavigateBack-BTJoRrRy.js → useNavigateBack-B5mTfIHJ.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-7Z8osIH2.js → useP4ConnectAuthPrompt-sjWWPvrn.js} +2 -2
- package/dist/client/assets/{useParams-8KxPyQmv.js → useParams-D9PdK0IA.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-CyvlYHNs.js → usePermissionStatus-D6i3IaCj.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-DfyxdDPg.js → usePullRequestActions-9274Vp3W.js} +2 -2
- package/dist/client/assets/{useRegisterFieldControl-Dj6RbECy.js → useRegisterFieldControl-DZyLTxKX.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-BfFbT2DU.js → useScopedModelAvailability-CmlQi7Iz.js} +2 -2
- package/dist/client/assets/{useSettings-CPPvBMmM.js → useSettings-BL4ZWGQV.js} +2 -2
- package/dist/client/assets/{utils-BE5iQuUP.js → utils-CrFJwxSd.js} +2 -2
- package/dist/client/assets/{vcsRefInvalidation-DCdd2BDA.js → vcsRefInvalidation-BPy1eoDi.js} +2 -2
- package/dist/client/assets/{welcome-CIETplg9.js → welcome-DVusCS_L.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/{renderer-D8FhaVWU.mjs → renderer-CJXpJ36b.mjs} +2 -2
- package/dist/{runtime-a3PrAU7n.mjs → runtime-EqYv-lrV.mjs} +2 -2
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-B--i3imS.js +0 -2
- package/dist/client/assets/Input-rVh9fuLP.js +0 -2
- package/dist/client/assets/JZOYTAAL-DXVzZiqj.js +0 -1
- package/dist/client/assets/settings.archived-ZXG8lJ_T.js +0 -2
package/dist/client/assets/{vcsRefInvalidation-DCdd2BDA.js → vcsRefInvalidation-BPy1eoDi.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./jsx-runtime-BnjsACtP.js";import{$T as t,$w as n,AC as r,Cx as i,ES as a,H_ as o,Hx as s,MC as ee,NC as c,Ow as l,Ox as u,Px as d,Qx as f,SC as p,Tx as m,Uc as h,Yx as g,as as _,cS as v,is as y,jC as te,lC as b,oC as x,ov as S,ps as C,rs as w,sE as ne,vS as T,wC as E,wx as D,yC as O}from"./utils-
|
|
2
|
-
//# sourceMappingURL=vcsRefInvalidation-
|
|
1
|
+
import{n as e}from"./jsx-runtime-BnjsACtP.js";import{$T as t,$w as n,AC as r,Cx as i,ES as a,H_ as o,Hx as s,MC as ee,NC as c,Ow as l,Ox as u,Px as d,Qx as f,SC as p,Tx as m,Uc as h,Yx as g,as as _,cS as v,is as y,jC as te,lC as b,oC as x,ov as S,ps as C,rs as w,sE as ne,vS as T,wC as E,wx as D,yC as O}from"./utils-CrFJwxSd.js";import{N as k,_t as A,k as j,qt as M}from"./runtime-Dm3Pi31_.js";import{Z as N,at as P,et as F,nt as I,rt as L,tt as R}from"./entities-Om5Klild.js";import{t as z}from"./runtime-BL7IF4n-.js";import{at as B}from"./useSettings-BL4ZWGQV.js";import{t as re}from"./session-C7ckxjAM.js";import{n as V}from"./query-DlK0I8Jc.js";var H=e(),U=`~effect/PartitionedSemaphore`,W=e=>{let i=Math.max(0,e.permits);if(!Number.isFinite(i))return{[U]:U,capacity:i,available:x(i),take:()=>p,release:()=>x(i),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>m(e)};let o=i,d=0,f=r(),h=f[Symbol.iterator](),_=!1,v=0,y=e=>{if(e>0&&(v+=e),!_){_=!0;try{for(;v>0&&d>0;){let e=h.next();if(e.done&&(h=f[Symbol.iterator](),e=h.next(),e.done))break;let t=e.value[1].values().next().value;t!==void 0&&(--t.permits,--d,--v,t.permits===0&&t.resume())}}finally{_=!1}}return d===0&&(o=Math.min(i,o+v),v=0),o},S=(e,r)=>r<=0?p:i<r?a:E(i=>o>=r?(o-=r,n(i,e=>{l(e)&&y(r)}),p):u(n=>{if(o>=r){n(S(e,r));return}let i=r-o;o>0&&(o=0),d+=i;let a=t(te(f,e),()=>{let t=new Set;return c(f,e,t),t}),s={permits:i,resume:()=>{l(),n(p)}},l=()=>{a.delete(s)&&a.size===0&&ee(f,e)};return a.add(s),b(()=>{l(),d-=s.permits,y(r-s.permits)})})),C=(e,t)=>n=>{if(t<=0)return n;let r=S(e,t);return O(e=>g(e(r),()=>s(e(n),b(()=>{y(t)}))))},w=e=>e<=0?!0:i<e||o<e?!1:(o-=e,!0);return{[U]:U,capacity:i,available:b(()=>o),take:S,release:e=>b(()=>y(e)),withPermits:C,withPermit:e=>C(e,1),withPermitsIfAvailable:e=>t=>e<=0?m(t):E(r=>w(e)?(n(r,()=>{y(e)}),m(t)):x(ne()))}};function G(e){if(e.sessionError!==null)return{canReadFiles:!1,isPending:!1,error:e.sessionError};if(e.session===null){let t=!e.isCatalogReady||e.connection?.phase===`connected`||e.connection?.phase===`connecting`||e.connection?.phase===`reconnecting`;return{canReadFiles:!1,isPending:t,error:t?null:e.connection?.error??`This environment is not connected.`}}return{canReadFiles:S(e.session,o),isPending:!1,error:null}}function K(e,t=``,n=!0){let r=n&&P(e,t),i=r?F(e):``;return{isBrowsing:r,directoryPath:i,filterQuery:r&&!L(e)?R(e):``,parentPath:r?I(i):null,canBrowseUp:r&&N(i)}}function q(e,t){let n=t.toLowerCase(),r=t.startsWith(`.`),i=e.filter(e=>e.name.toLowerCase().startsWith(n)&&(r||!e.name.startsWith(`.`)));return{visibleEntries:i,exactEntry:t.length>0?i.find(e=>e.name===t)??null:null}}function J(){let e=0;return{invalidate:()=>{e+=1},run:async(t,n)=>{let r=++e;return await t(),r===e&&(n(),!0)}}}function Y(e){return e===`connected`}function X(e){return{browse:k(e,{label:`environment-data:filesystem:browse`,tag:h.filesystemBrowse})}}var ie=X(z);function ae(e){let t=(0,H.c)(7),n;t[0]===e?n=t[1]:(n=e===null?null:re.sessionStateAtom(e),t[0]=e,t[1]=n);let r=V(n),i=B(e),a=i.presentation?.connection??null,o;return t[2]!==i.isReady||t[3]!==r.data||t[4]!==r.error||t[5]!==a?(o=G({isCatalogReady:i.isReady,connection:a,session:r.data,sessionError:r.error}),t[2]=i.isReady,t[3]=r.data,t[4]=r.error,t[5]=a,t[6]=o):o=t[6],o}var oe=j(),se={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},ce=w(e=>_({revision:0,persistedCacheReadable:!0}).pipe(y,C(`environment-data:vcs:list-refs-state:${e}`))),Z=W({permits:1});function Q(e){return ce(e.environmentId)}function le(e,t,n){e.update(Q(t),e=>({revision:e.revision+1,persistedCacheReadable:n??e.persistedCacheReadable}))}function $(e,t){return Z.withPermit(e)(t)}var ue=f(`VcsRefsState.invalidateCached`)(function*(e,t){let n=yield*M;yield*$(t.environmentId,v(function*(){le(e,t,yield*n.clearVcsRefs(t.environmentId).pipe(D(!0),d(e=>T(`Could not remove invalidated cached Git refs.`).pipe(i({environmentId:t.environmentId,cwd:t.cwd,...A(e)}),D(!1)))))}))});export{oe as a,Y as c,K as d,se as i,J as l,Q as n,ie as o,$ as r,ae as s,ue as t,q as u};
|
|
2
|
+
//# sourceMappingURL=vcsRefInvalidation-BPy1eoDi.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,t}from"./react-DH3P2YXY.js";import{n,t as r}from"./jsx-runtime-BnjsACtP.js";import{Am as i,Ay as a,Hy as o,K_ as s,Ms as c,N_ as l,Od as u,Os as d,Qf as f,Qs as p,Ry as m,Sp as h,Uc as g,Zs as _,as as v,dr as y,eE as b,gb as x,j_ as S,jd as C,jy as w,l as T,nE as E,ns as D,o as O,od as k,qd as A,t as j,ts as M,tv as N}from"./utils-BE5iQuUP.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-DSZ2mWrf.js";import{$ as B,G as V,f as H,w as U}from"./entities-n6SMnPE8.js";import{t as W}from"./runtime-DTUiqO10.js";import{t as G}from"./spinner-CW23--q5.js";import{t as K}from"./useNavigate-Lp_S-tAl.js";import{t as q}from"./useLocation-FEfJrgGU.js";import{i as J}from"./toast-BFuAqla3.js";import{D as ee,E as te}from"./useSettings-CPPvBMmM.js";import{f as Y}from"./server-ztj8tD38.js";import{i as ne,n as X,o as re}from"./session-yxXjF8AQ.js";import{t as ie}from"./query-BV3IuYff.js";import{t as ae}from"./use-atom-command-CSWaAmR7.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-CSzrAm8M.js";import{t as ue}from"./input-GkmNnHh7.js";import{t as de}from"./scroll-area-CfW8fzQ8.js";import{r as fe}from"./dist-KeWCSS5h.js";import{t as pe}from"./dialog-pqqgtsKn.js";import{t as me}from"./useP4ConnectAuthPrompt-7Z8osIH2.js";import{t as he}from"./CommandBlock-Da9iVEid.js";import{t as ge}from"./checkbox-CwFE3KXZ.js";import{t as _e}from"./ThreadTerminalDrawer-BqO5rPzw.js";import{i as ve}from"./terminalSessions-CF7f4A-6.js";import{n as ye}from"./useHandleNewThread-BVFM3SUe.js";import{r as be,t as xe}from"./alert-DiE1d01s.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-LQ3LzsF3.js";import{t as we}from"./onboarding-KXMrOHsw.js";import{Gt as Te,Kr as Ee,Wt as De,Yt as Oe,_ as ke,_a as Ae,da as je,f as Me,fa as Ne,ga as Pe,ha as Fe,ma as Ie,na as Le,pa as Re}from"./main-Dcfxjdkd.js";import{t as ze}from"./NoProjectsHero-CDfuCTEv.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-Bdp6GzIj.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-B5cbwzh2.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);if(a===void 0){t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt});continue}a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)})}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=B(r,n.path);return i===void 0?null:i.id}function nt(e,t,n){for(let n of e){let e=t.get(n);if(e!==void 0)return e}for(let t of e){let e=n.get(t);if(e!==void 0)return e}}function rt(e){if(/^[A-Za-z]:[\\/]+$/.test(e)||/^[\\/]{2}[^\\/]+[\\/][^\\/]+[\\/]*$/.test(e))return{name:e,parent:``};let t=e.replace(/[\\/]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.length===0?{name:e,parent:``}:n<0?{name:t,parent:``}:{name:t.slice(n+1),parent:t.slice(0,n+1)}}function it(e,t){return JSON.stringify([e,t])}var at=I(W,{label:`environment-data:agent-sessions:scan`,tag:g.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=F(W,{label:`environment-data:agent-sessions:import`,tag:g.agentSessionsImport});function st(e){return P(e.entry)}function ct(e,t){let n=e.filter(e=>t.has(e.environmentId)),r=e=>n.filter(t=>e(t.connection.phase)).map(e=>e.environmentId),i=r(e=>e===`connected`),a=n.some(e=>e.connection.phase===`connecting`);return{ready:i.length>0&&!a,environmentIds:i,skippedIds:r(e=>e!==`connected`&&e!==`connecting`)}}function lt(e){let t=(0,Q.c)(3),n=(0,Z.useContext)(D),r;return t[0]!==e||t[1]!==n?(r=v(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:b(d(i)),error:i._tag===`Failure`?ie(i.cause):null,isPending:i.waiting||i._tag===`Initial`,refresh:()=>n.refresh(r)}})),t[0]=e,t[1]=n,t[2]=r):r=t[2],M(r)}var $=e(r(),1),ut=[],dt=m.make(`onboarding-agent-setup`),ft=[`Connect`,`Agents`,`Projects`],pt=`Scan limit reached. Some projects or conversations may be missing.`;function mt({localAvailable:e,onDone:t,resumeEnvironmentId:n}){let r=Oe(),[i,a]=(0,Z.useState)(n?`agents`:`connection`),{environments:o}=te(),[s,c]=(0,Z.useState)(null),l=(0,Z.useRef)(new Set),[u,d]=(0,Z.useState)(n?[n]:[]),[f,p]=(0,Z.useState)(!1),m=(0,Z.useRef)(null),h=(0,Z.useRef)(null),g=ee();(0,Z.useEffect)(()=>{let e=o.filter(e=>!l.current.has(e.environmentId));if(e.length===0)return;for(let t of e)l.current.add(t.environmentId);let t=e.filter(e=>e.entry.enabled);t.length!==0&&c(e=>new Set([...e??[],...t.map(e=>e.environmentId)]))},[o]);let _=s??new Set(g?[g.environmentId]:[]),v=lt(i===`import`?u:ut),y=i===`import`&&v.every(e=>e.data===null)&&v.some(e=>e.isPending),b=e=>{e.length!==0&&(d(e),a(`agents`))},x=i===`agents`?1:i===`import`?2:0,S=(0,Z.useCallback)((e,n,i=0)=>{if(m.current!==null)return m.current;h.current!==null&&(J.close(h.current),h.current=null);let a=r().then(async()=>(h.current!==null&&(J.close(h.current),h.current=null),await t(e),n?J.add({type:`warning`,title:`Some history was not imported`,description:n,timeout:0}):i>0&&J.add({type:`success`,title:`Imported ${i} ${i===1?`thread`:`threads`}`}),!0)).catch(()=>{let e={type:`error`,title:`Could not finish setup`,description:`Your settings could not be saved. Try again.`};return h.current===null?h.current=J.add(e):J.update(h.current,e),!1}).finally(()=>{m.current===a&&(m.current=null)});return m.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Re,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(je,{title:`Set up P4 Code`,identity:(0,$.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,role:`img`,"aria-label":`P4 Code`,children:[(0,$.jsx)(Ee,{className:`h-4 w-auto shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`text-2xl font-medium tracking-tight text-muted-foreground`,children:`Code`})]}),children:(0,$.jsx)(Ie,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Ne,{holdHeight:y,children:i===`connection`?(0,$.jsx)(ht,{expandPairingInitially:!e&&!z(),selectedIds:_,autoSelectedComputers:l.current,onSelectionChange:c,onToggleEnvironment:(e,t)=>c(n=>{let r=new Set(n??_);return t?r.add(e):r.delete(e),r}),onContinue:()=>b(ct(o,_).environmentIds),onPaired:e=>{c(new Set([..._,e]))}}):i===`agents`?(0,$.jsx)(xt,{environmentIds:u,onContinue:()=>a(`import`)}):(0,$.jsx)(At,{scans:v,isImporting:f,setIsImporting:p,onDone:S})})]}),(0,$.jsx)(ke,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:i,onSelectionChange:a,onToggleEnvironment:o,onContinue:s,onPaired:c}=e,{environments:l}=te(),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=z(),t[0]=u):u=t[0];let d=u,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>!d||!st(e),t[1]=p):p=t[1];let m=l.filter(p),[g,_]=(0,Z.useState)(r),[v,b]=(0,Z.useState)(!1),{ready:x,skippedIds:S}=ct(l,i),w=l.filter(e=>S.includes(e.environmentId)).map(gt),T=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{x&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&T.current?.focus()},[x]);let E,D;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Connect your computers`}),D=(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:`Choose one or more computers. We’ll set up agents and projects on each.`}),t[2]=E,t[3]=D):(E=t[2],D=t[3]);let O=m.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),m.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:i.has(e.environmentId),onCheckedChange:t=>{let n=new Set(i);t?n.add(e.environmentId):n.delete(e.environmentId),a(n)}}),(0,$.jsx)(h,{className:`size-4 shrink-0 text-muted-foreground`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex items-baseline justify-between gap-3`,children:[(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-medium break-words`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:!e.entry.enabled&&e.connection.phase!==`unsupported`?`Off`:Te(e.connection).buttonLabel})]}),e.displayUrl?(0,$.jsx)(`span`,{className:`mt-0.5 block text-xs break-all text-muted-foreground`,children:e.displayUrl}):null]})]},e.environmentId))]}):null,A;t[4]!==n||t[5]!==v||t[6]!==o||t[7]!==i?(A=d?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:v,selectedIds:i,onToggleEnvironment:o}):null,t[4]=n,t[5]=v,t[6]=o,t[7]=i,t[8]=A):A=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(y,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(f,{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=g&&`rotate-90`,I;t[12]===F?I=t[13]:(I=j(`size-4 text-muted-foreground`,F),t[12]=F,t[13]=I);let L;t[14]===I?L=t[15]:(L=(0,$.jsx)(C,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==v||t[17]!==L?(R=(0,$.jsxs)(Ae,{disabled:v,render:M,children:[N,P,L]}),t[16]=v,t[17]=L,t[18]=R):R=t[18];let B;t[19]===c?B=t[20]:(B=e=>{_(!1),c(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=c,t[20]=B);let V;t[21]!==v||t[22]!==B?(V=(0,$.jsx)(Pe,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:v,setIsPairing:b,onPaired:B})})}),t[21]=v,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==g||t[25]!==R||t[26]!==V?(H=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Fe,{open:g,onOpenChange:_,children:[R,V]})}),t[24]=g,t[25]=R,t[26]=V,t[27]=H):H=t[27];let U;t[28]!==H||t[29]!==A?(U=(0,$.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[A,H]}),t[28]=H,t[29]=A,t[30]=U):U=t[30];let W=w.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,w.join(`, `),`. You can set`,` `,w.length===1?`it`:`them`,` up later from Settings.`]}):null,G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsxs)(`p`,{className:`min-w-0 text-xs leading-relaxed text-muted-foreground`,children:[`P4 Code collects anonymous usage data to help us improve it. To read more about how your data is used and how to opt out, see our`,` `,(0,$.jsx)(`a`,{className:`underline underline-offset-2 hover:text-foreground`,href:Be,target:`_blank`,rel:`noreferrer noopener`,children:`privacy policy`}),`.`]}),t[31]=G):G=t[31];let K=!r,q=!x||v,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(k,{className:`size-3.5`}),t[32]=J):J=t[32];let ee;t[33]!==s||t[34]!==K||t[35]!==q?(ee=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[G,(0,$.jsxs)(y,{className:`shrink-0 self-end`,ref:T,autoFocus:K,disabled:q,onClick:s,children:[`Continue`,J]})]}),t[33]=s,t[34]=K,t[35]=q,t[36]=ee):ee=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==ee||t[40]!==E||t[41]!==D||t[42]!==O?(Y=(0,$.jsxs)($.Fragment,{children:[E,D,O,U,W,ee]}),t[37]=U,t[38]=W,t[39]=ee,t[40]=E,t[41]=D,t[42]=O,t[43]=Y):Y=t[43],Y}function gt(e){return e.label}function _t(e){let t=(0,Q.c)(36),{autoSelectedComputers:n,disabled:r,selectedIds:i,onToggleEnvironment:a}=e,{environments:o}=te(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={treatPendingAsSignedOut:!1},t[0]=s):s=t[0];let{isLoaded:c,isSignedIn:l}=fe(s),{openAuthPrompt:u}=me(),[d,f]=(0,Z.useState)(!0),[p,m]=(0,Z.useState)(!1),h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>m(!0),t[1]=h):h=t[1];let g=h,_=d&&!!l&&p,v=r||!c,b;t[2]!==l||t[3]!==u?(b=e=>{l||(e.preventDefault(),f(!0),u())},t[2]=l,t[3]=u,t[4]=b):b=t[4];let x,S,w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(y,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),S=(0,$.jsx)(A,{className:`size-4 text-muted-foreground`}),w=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=x,t[6]=S,t[7]=w):(x=t[5],S=t[6],w=t[7]);let T=c?l?p?null:`Loading computers…`:`Sign in`:`Loading sign-in…`,E;t[8]===T?E=t[9]:(E=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:T}),t[8]=T,t[9]=E);let D=d&&l&&`rotate-90`,O;t[10]===D?O=t[11]:(O=j(`size-4 text-muted-foreground`,D),t[10]=D,t[11]=O);let k;t[12]===O?k=t[13]:(k=(0,$.jsx)(C,{className:O}),t[12]=O,t[13]=k);let M;t[14]!==E||t[15]!==k||t[16]!==v||t[17]!==b?(M=(0,$.jsxs)(Ae,{disabled:v,onClick:b,render:x,children:[S,w,E,k]}),t[14]=E,t[15]=k,t[16]=v,t[17]=b,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==o||t[21]!==l||t[22]!==a||t[23]!==i?(N=l?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:o,showSavedEnvironments:!0,onDiscoveryReady:g,selection:{selectedIds:i,onChange:a,autoSelectedComputers:n},refreshWhileEmpty:!0,empty:(0,$.jsx)(`p`,{className:`py-3 text-sm text-muted-foreground`,children:`No computers linked yet.`})}):null,t[19]=n,t[20]=o,t[21]=l,t[22]=a,t[23]=i,t[24]=N):N=t[24];let P;t[25]===N?P=t[26]:(P=(0,$.jsx)(`div`,{className:`mb-3 space-y-1.5`,children:N}),t[25]=N,t[26]=P);let F,I,L;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Run this on each computer you want to connect.`}),I=(0,$.jsx)(he,{command:`npx @p4code/cli connect`,className:`mt-3`}),L=(0,$.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:`Keep P4 Code running. Select the computers you want to set up above.`}),t[27]=F,t[28]=I,t[29]=L):(F=t[27],I=t[28],L=t[29]);let R;t[30]===P?R=t[31]:(R=(0,$.jsx)(Pe,{keepMounted:!0,children:(0,$.jsxs)(`div`,{className:`px-3 pb-3`,children:[P,F,I,L]})}),t[30]=P,t[31]=R);let z;return t[32]!==M||t[33]!==R||t[34]!==_?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Fe,{open:_,onOpenChange:f,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=_,t[35]=z):z=t[35],z}function vt(e){let t=(0,Q.c)(38),{isPairing:n,setIsPairing:r,onPaired:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},t[0]=a):a=t[0];let o=ae(we,a),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),d=(0,Z.useRef)(!0),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 m;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(m=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!d.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(L(e))return;let t=R(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=m):m=t[8];let h=m,g;t[9]===h?g=t[10]:(g=e=>{e.preventDefault(),h()},t[9]=h,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=_):_=t[11];let v=l.length>0,b=l?`onboarding-pairing-error`:void 0,x;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>c(e.currentTarget.value),t[12]=x):x=t[12];let S;t[13]!==n||t[14]!==s||t[15]!==v||t[16]!==b?(S=(0,$.jsxs)(`div`,{children:[_,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":v,"aria-describedby":b,className:`mt-2`,size:`lg`,autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,nativeInput:!0,readOnly:n,placeholder:`https://your-server:5230/pair#token=…`,value:s,onChange:x,onKeyDown:yt})]}),t[13]=n,t[14]=s,t[15]=v,t[16]=b,t[17]=S):S=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)(Ae,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(C,{className:`size-3.5 group-data-panel-open:rotate-90`}),`Need a pairing link?`]}),t[20]=T):T=t[20];let E;t[21]!==n||t[22]!==s?(E=n||s.trim().length===0,t[21]=n,t[22]=s,t[23]=E):E=t[23];let D=n?`Pairing...`:`Pair`,O;t[24]!==E||t[25]!==D?(O=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[T,(0,$.jsx)(y,{type:`submit`,disabled:E,children:D})]}),t[24]=E,t[25]=D,t[26]=O):O=t[26];let k,A;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(`p`,{className:`pt-3 text-sm text-muted-foreground`,children:`Run this on the computer with your code.`}),A=(0,$.jsx)(he,{command:`npx @p4code/cli pair`,className:`mt-2`}),t[27]=k,t[28]=A):(k=t[27],A=t[28]);let j;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli serve`}),t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsxs)(Pe,{children:[k,A,(0,$.jsxs)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:[`Start P4 Code first, or run `,j,`. Add `,(0,$.jsx)(`code`,{className:`font-mono`,children:`--tailscale`}),` to use your tailnet.`]})]}),t[30]=M):M=t[30];let N;t[31]===O?N=t[32]:(N=(0,$.jsxs)(Fe,{children:[O,M]}),t[31]=O,t[32]=N);let P;return t[33]!==S||t[34]!==w||t[35]!==N||t[36]!==g?(P=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:g,children:[S,w,N]})}),t[33]=S,t[34]=w,t[35]=N,t[36]=g,t[37]=P):P=t[37],P}function yt(e){e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()}var bt=[`codex`,`claudeAgent`];function xt(e){let t=(0,Q.c)(13),{environmentIds:n,onContinue:r}=e,{environments:i}=te(),a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,$.jsx)(St,{environmentId:e,machineLabel:i.find(t=>t.environmentId===e)?.label??`Computer`},e),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;t[5]===a?o=t[6]:(o=(0,$.jsx)(de,{scrollFade:!0,className:`mt-5 h-auto max-h-[min(32rem,55dvh)]`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:a})}),t[5]=a,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(k,{className:`size-3.5`}),t[7]=s):s=t[7];let c;t[8]===r?c=t[9]:(c=(0,$.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,$.jsxs)(y,{autoFocus:!0,onClick:r,children:[`Continue`,s]})}),t[8]=r,t[9]=c);let l;return t[10]!==o||t[11]!==c?(l=(0,$.jsxs)(Kt,{title:`Connect your agents`,description:`Choose an agent to start coding. You can add more later.`,children:[o,c]}),t[10]=o,t[11]=c,t[12]=l):l=t[12],l}function St(e){let t=(0,Q.c)(57),{environmentId:n,machineLabel:r}=e,i;t[0]===n?i=t[1]:(i=Y.providersValueAtom(n),t[0]=n,t[1]=i);let a=M(i),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o={reportFailure:!1},t[2]=o):o=t[2];let s=ae(Y.refreshProviders,o),c;t[3]===n?c=t[4]:(c=Y.configValueAtom(n),t[3]=n,t[4]=c);let l=M(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,N),_,v;t[5]!==n||t[6]!==s?(_=()=>{s({environmentId:n,input:{}})},v=[n,s],t[5]=n,t[6]=s,t[7]=_,t[8]=v):(_=t[7],v=t[8]),(0,Z.useEffect)(_,v);let b;t[9]===a?b=t[10]:(b=Ue(a),t[9]=a,t[10]=b);let x=b,S,C,w,T;if(t[11]!==x||t[12]!==g||t[13]!==m||t[14]!==n||t[15]!==r||t[16]!==a||t[17]!==l||t[18]!==u?.driver){let e;t[23]!==x||t[24]!==a?(e=e=>{let t=e===`codex`?a?.filter(t=>t.driver===e):void 0;return t?.length?t.map(t=>({driver:e,provider:t,instanceId:t.instanceId})):[{driver:e,provider:x.get(e),instanceId:x.get(e)?.instanceId}]},t[23]=x,t[24]=a,t[25]=e):e=t[25];let i=bt.flatMap(e);if(m){let e;t[26]===m?e=t[27]:(e=e=>e.instanceId===m.instanceId,t[26]=m,t[27]=e);let n=i.findIndex(e),[r]=n>=0?i.splice(n,1):[];i.unshift(r??{driver:`codex`,provider:void 0,instanceId:m.instanceId})}t[28]===r?T=t[29]:(T=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=T),t[30]===g?S=t[31]:(S=g?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=g,t[31]=S),C=`space-y-1.5`;let o;t[32]!==g||t[33]!==m||t[34]!==n||t[35]!==l||t[36]!==u?.driver?(o=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&l!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:l,createdAccount:i===m?.instanceId?m:null,onAutoStartConsumed:()=>h(wt),terminalOpen:u?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:u?.driver===t,terminalAvailable:l!==null&&g,onOpenTerminal:()=>{r!==void 0&&l!==null&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},t)},t[32]=g,t[33]=m,t[34]=n,t[35]=l,t[36]=u?.driver,t[37]=o):o=t[37],w=i.map(o),t[11]=x,t[12]=g,t[13]=m,t[14]=n,t[15]=r,t[16]=a,t[17]=l,t[18]=u?.driver,t[19]=S,t[20]=C,t[21]=w,t[22]=T}else S=t[19],C=t[20],w=t[21],T=t[22];let E;t[38]!==C||t[39]!==w?(E=(0,$.jsx)(`div`,{className:C,children:w}),t[38]=C,t[39]=w,t[40]=E):E=t[40];let D;t[41]===a?D=t[42]:(D=a?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(y,{size:`xs`,variant:`ghost-muted`,onClick:()=>p(!0),children:`Connect another ChatGPT account`})}):null,t[41]=a,t[42]=D);let O;t[43]!==f||t[44]!==n?(O=f?(0,$.jsx)(Ke,{environmentId:n,onClose:()=>p(!1),onAccountCreated:(e,t)=>h({instanceId:e,displayName:t,autoStart:!0})}):null,t[43]=f,t[44]=n,t[45]=O):O=t[45];let k;t[46]!==n||t[47]!==s||t[48]!==u?(k=u===null?null:(0,$.jsx)(Dt,{session:u,onClose:()=>{d(null),s({environmentId:n,input:{}})}},`${u.environmentId}:${u.providerInstanceId}:${u.driver}`),t[46]=n,t[47]=s,t[48]=u,t[49]=k):k=t[49];let A;return t[50]!==S||t[51]!==E||t[52]!==D||t[53]!==O||t[54]!==k||t[55]!==T?(A=(0,$.jsxs)(`section`,{children:[T,S,E,D,O,k]}),t[50]=S,t[51]=E,t[52]=D,t[53]=O,t[54]=k,t[55]=T,t[56]=A):A=t[56],A}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,u=ne(i,N),d=ae(Y.updateSettings,`Codex setup settings`),f;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(f=n?.instanceId??a?.instanceId??l(S.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=f):f=t[2];let p=f,m=o.settings,h;t[3]!==n||t[4]!==p||t[5]!==m.providerInstances?(h=m.providerInstances[p]??{driver:S.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=p,t[5]=m.providerInstances,t[6]=h):h=t[6];let g=h,_;t[7]===g.config?_=t[8]:(_=Je(g.config),t[7]=g.config,t[8]=_);let v=_,y=v===`existing`&&g.config!==null&&typeof g.config==`object`&&`setupMode`in g.config&&g.config.setupMode===`existing`,b;t[9]!==i||t[10]!==g||t[11]!==p||t[12]!==m||t[13]!==d?(b=e=>{d({environmentId:i,input:{patch:Ve({settings:m,instanceId:p,instance:{...g,enabled:!0,config:{...g.config!==null&&typeof g.config==`object`?g.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=g,t[11]=p,t[12]=m,t[13]=d,t[14]=b):b=t[14];let x=b,C;return t[15]!==u||t[16]!==x||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==y||t[21]!==p||t[22]!==v||t[23]!==r||t[24]!==c||t[25]!==a||t[26]!==s?(C=y?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:s,terminalAvailable:u,onOpenTerminal:c}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:p,provider:a,mode:v,enabled:a?.enabled??!0,onModeChange:x}),t[15]=u,t[16]=x,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=y,t[21]=p,t[22]=v,t[23]=r,t[24]=c,t[25]=a,t[26]=s,t[27]=C):C=t[27],C}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:a,terminalAvailable:o,onOpenTerminal:s}=e,c;t[0]===n?c=t[1]:(c=Se.get(S.make(n)),t[0]=n,t[1]=c);let l=c,d=r?.displayName||(n===`claudeAgent`?`Claude Code`:l?.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,g;t[6]===n?g=t[7]:(g=S.make(n),t[6]=n,t[7]=g);let _;t[8]!==d||t[9]!==g?(_=(0,$.jsx)(Ce,{driverKind:g,displayName:d,iconClassName:`size-5`}),t[8]=d,t[9]=g,t[10]=_):_=t[10];let v;t[11]===d?v=t[12]:(v=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:d}),t[11]=d,t[12]=v);let b=h===`ready`?`Ready to code.`:p.headline,x=h!==`ready`&&p.detail?` · ${p.detail}`:``,C;t[13]!==b||t[14]!==x?(C=(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]=C):C=t[15];let w;t[16]!==v||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[v,C]}),t[16]=v,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==s||t[20]!==h||t[21]!==p||t[22]!==o||t[23]!==a?(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)(u,{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)(y,{size:`xs`,variant:`ghost`,onClick:s,disabled:a||!o,children:[(0,$.jsx)(i,{className:`size-3.5`}),h===`signIn`?`Sign in`:`Install`]})}),t[19]=s,t[20]=h,t[21]=p,t[22]=o,t[23]=a,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==_?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[_,w,T]}),t[25]=w,t[26]=T,t[27]=_,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:s,environmentId:l,keybindings:u,providerInstanceId:d}=n,f=ne(l,N),[m]=c(Le,!1,o),h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={reportFailure:!1},t[0]=h):h=t[0];let g=ae(ve.open,h),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[1]=_):_=t[1];let v=ae(ve.write,_),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={reportFailure:!1},t[2]=b):b=t[2];let x=ae(ve.close,b),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let C=(0,Z.useRef)(S),w=(0,Z.useRef)(0),E=(0,Z.useRef)(null),D;t[4]===s?D=t[5]:(D=()=>`onboarding-${s}-${T()}`,t[4]=s,t[5]=D);let[O]=(0,Z.useState)(D),k;t[6]===l?k=t[7]:(k=p(l,dt),t[6]=l,t[7]=k);let A=k,[j,M]=(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]!==l||t[12]!==g||t[13]!==d||t[14]!==O||t[15]!==v?(L=()=>{let e=w.current+1;return w.current=e,E.current=e,F(`preparing`),C.current=C.current.then(async()=>{if(E.current!==e)return;if(!X(l,`terminal:operate`)){F(`openFailed`);return}if((await g({environmentId:l,input:{threadId:dt,terminalId:O,cwd:a,providerInstanceId:d}}))._tag!==`Success`){E.current===e&&F(`openFailed`);return}if(E.current!==e)return;if(!X(l,`terminal:operate`)){F(`writeFailed`);return}let t=await v({environmentId:l,input:{threadId:dt,terminalId:O,data:i}});E.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{E.current===e&&(E.current=null),C.current=C.current.then(async()=>{X(l,`terminal:operate`)&&await x({environmentId:l,input:{threadId:dt,terminalId:O,deleteHistory:!0}})})}},t[8]=x,t[9]=i,t[10]=a,t[11]=l,t[12]=g,t[13]=d,t[14]=O,t[15]=v,t[16]=L):L=t[16];let R;t[17]!==x||t[18]!==i||t[19]!==a||t[20]!==l||t[21]!==g||t[22]!==d||t[23]!==j||t[24]!==O||t[25]!==v?(R=[x,i,a,l,g,d,j,O,v],t[17]=x,t[18]=i,t[19]=a,t[20]=l,t[21]=g,t[22]=d,t[23]=j,t[24]=O,t[25]=v,t[26]=R):R=t[26],(0,Z.useEffect)(L,R);let z;t[27]!==f||t[28]!==i||t[29]!==P?(z=f?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]=f,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]!==f||t[34]!==l||t[35]!==P?(V=P===`openFailed`?(0,$.jsx)(y,{size:`xs`,variant:`ghost`,disabled:!f,onClick:()=>{X(l,`terminal:operate`)&&M(Ot)},children:`Retry`}):null,t[33]=f,t[34]=l,t[35]=P,t[36]=V):V=t[36];let H;t[37]===r?H=t[38]:(H=(0,$.jsx)(y,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==m||t[46]!==a||t[47]!==s||t[48]!==u||t[49]!==r||t[50]!==d||t[51]!==O||t[52]!==I||t[53]!==A?(G=I?(0,$.jsx)(_e,{threadRef:A,threadId:dt,terminalId:O,terminalLabel:`Install ${s}`,cwd:a,providerInstanceId:d,advancedTypography:m,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:u}):null,t[45]=m,t[46]=a,t[47]=s,t[48]=u,t[49]=r,t[50]=d,t[51]=O,t[52]=I,t[53]=A,t[54]=G):G=t[54];let K;t[55]===G?K=t[56]:(K=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=K);let q;return t[57]!==W||t[58]!==K?(q=(0,$.jsxs)(`div`,{"data-thread-terminal-drawer":!0,className:`mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground`,children:[W,K]}),t[57]=W,t[58]=K,t[59]=q):q=t[59],q}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(81),{scans:n,isImporting:r,setIsImporting:i,onDone:o}=e,{environments:c}=te(),l=re(n,s),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={reportFailure:!1},t[0]=u):u=t[0];let d=ae(V.create,u),f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f={reportFailure:!1},t[1]=f):f=t[1];let p=ae(ot,f),m=U(),[h,g]=(0,Z.useState)(null),v=(0,Z.useRef)(``),b=(0,Z.useRef)(0),[x,S]=(0,Z.useState)(null),C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=new Map,t[2]=C):C=t[2];let w=(0,Z.useRef)(C),T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Map,t[3]=T):T=t[3];let E=(0,Z.useRef)(T),D;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=[],t[4]=D):D=t[4];let k=(0,Z.useRef)(D),A;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(A=new Map,t[5]=A):A=t[5];let j=(0,Z.useRef)(A),M=(0,Z.useRef)(0),N,P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>(M.current+=1,()=>{M.current+=1}),P=[],t[6]=N,t[7]=P):(N=t[6],P=t[7]),(0,Z.useEffect)(N,P);let F,I;t[8]!==x||t[9]!==o||t[10]!==m||t[11]!==i?(I=()=>{x!==null&&m.some(e=>e.id===x.projectId&&e.environmentId===x.environmentId)&&(S(null),o(x,v.current,b.current).then(e=>{e||i(!1)}))},F=[x,o,m,i],t[8]=x,t[9]=o,t[10]=m,t[11]=i,t[12]=F,t[13]=I):(F=t[12],I=t[13]),(0,Z.useEffect)(I,F);let R;t[14]===n?R=t[15]:(R=Qe(n.flatMap(Lt)),t[14]=n,t[15]=R);let{available:z,recent:B}=R,W;t[16]!==B||t[17]!==h?(W=h??new Set(B.map(It)),t[16]=B,t[17]=h,t[18]=W):W=t[18];let K=W,q,J;if(t[19]!==z||t[20]!==K||t[21]!==l){let e;t[24]===K?e=t[25]:(e=e=>K.has(e.key),t[24]=K,t[25]=e),q=z.filter(e);let n;t[26]===l?n=t[27]:(n=e=>l.has(e.environmentId),t[26]=l,t[27]=n),J=q.every(n),t[19]=z,t[20]=K,t[21]=l,t[22]=q,t[23]=J}else q=t[22],J=t[23];let ee=J,[Y,ne]=(0,Z.useState)(``),X=ee?Y===kt?``:Y:kt,ie;t[28]!==o||t[29]!==i?(ie=()=>{let e=nt(k.current,E.current,w.current);if(e===void 0){o(void 0,v.current,b.current);return}i(!0),S(e)},t[28]=o,t[29]=i,t[30]=ie):ie=t[30];let oe=ie,se;t[31]!==d||t[32]!==oe||t[33]!==p||t[34]!==r||t[35]!==o||t[36]!==n||t[37]!==i?(se=async e=>{if(r)return;let t=()=>e.every(Ft),s=()=>{i(!1),ne(kt)};if(!t()){s();return}if(e.length===0){o();return}i(!0),v.current=``,b.current=0,k.current=e.map(Pt);let c=M.current,l=w.current,u=j.current,f=l.size>0?e.filter(e=>l.has(e.key)).length:0,m=0,h=0,g=new Set;for(let n of e){let{environmentId:e}=n;if(c!==M.current||l!==w.current)return;if(!t()){s();return}if(l.has(n.key))continue;let r=tt(H(),e,n);if(r===null){let t=u.get(n.key);if(t===void 0){let e=O();t={projectId:e,commandId:a.make(`onboarding:project:create:${e}`)},u.set(n.key,t)}r=t.projectId;let i=await d({environmentId:e,input:{projectId:r,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(c!==M.current||l!==w.current)return;if(i._tag!==`Success`){L(i)||(u.delete(n.key),g.add(e));continue}}if(!t()){s();return}let i=await p({environmentId:e,input:{projectId:r,expectedWorkspaceRoot:n.path}});if(c!==M.current||l!==w.current)return;i._tag===`Success`?(m+=i.value.importedCount,h+=i.value.skippedCount,i.value.importedCount>0&&E.current.set(n.key,_(e,r)),i.value.skippedCount===0&&(f+=1,l.set(n.key,_(e,r)))):L(i)||(u.delete(n.key),g.add(e))}for(let e of n)g.has(e.environmentId)&&e.refresh();i(!1),b.current=m,f<e.length&&(m>0&&h>0?v.current=`Imported ${m} ${m===1?`thread`:`threads`}. ${h} ${h===1?`thread`:`threads`} could not be imported.`:h>0?v.current=`${h} ${h===1?`thread could`:`threads could`} not be imported.`:m>0?v.current=`Imported ${m} ${m===1?`thread`:`threads`}. Some thread history could not be imported.`:v.current=`Could not import thread history.`),oe()},t[31]=d,t[32]=oe,t[33]=p,t[34]=r,t[35]=o,t[36]=n,t[37]=i,t[38]=se):se=t[38];let ce=se;if(n.every(Nt)&&n.some(Mt)){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[39]=e):e=t[39];let n;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-6`,children:[(0,$.jsx)(G,{size:`lg`,tone:`muted`}),(0,$.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`Looking for projects from Claude Code and Codex…`})]}),t[40]=n):n=t[40];let r;return t[41]===o?r=t[42]:(r=(0,$.jsxs)(`div`,{className:`flex h-full min-h-40 flex-col`,children:[e,n,(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(y,{variant:`ghost-muted`,onClick:()=>void o(),children:`Do not import projects`})})]}),t[41]=o,t[42]=r),r}let le;t[43]!==z||t[44]!==r||t[45]!==q?(le=z.length>0?(0,$.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3 text-xs text-muted-foreground`,children:[(0,$.jsxs)(`span`,{role:`status`,children:[q.length,` of `,z.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(y,{variant:`ghost`,size:`xs`,disabled:r||q.length===z.length,onClick:()=>g(new Set(z.map(jt))),children:`Select all`}),(0,$.jsx)(y,{variant:`ghost`,size:`xs`,disabled:r||q.length===0,onClick:()=>g(new Set),children:`Select none`})]})]}):null,t[43]=z,t[44]=r,t[45]=q,t[46]=le):le=t[46];let ue;if(t[47]!==z||t[48]!==c||t[49]!==r||t[50]!==n||t[51]!==K){let e;t[53]!==z||t[54]!==c||t[55]!==r||t[56]!==n.length||t[57]!==K?(e=e=>{let t=z.filter(t=>t.environmentId===e.environmentId),i=c.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:r,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:i}):null,e.isPending&&e.data===null?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(G,{size:`md`}),`Looking for projects…`]}):e.error===null?t.length===0?(0,$.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`No existing Claude Code or Codex projects found.`}):null:(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-muted-foreground`,children:[(0,$.jsxs)(`span`,{children:[`Could not check projects. `,e.error]}),(0,$.jsx)(y,{variant:`ghost`,size:`sm`,onClick:e.refresh,children:`Retry`})]}),e.data?.truncated?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:pt}):null,(0,$.jsx)(Rt,{candidates:t,selectedKeys:K,onSelectionChange:g})]},e.environmentId)},t[53]=z,t[54]=c,t[55]=r,t[56]=n.length,t[57]=K,t[58]=e):e=t[58],ue=n.map(e),t[47]=z,t[48]=c,t[49]=r,t[50]=n,t[51]=K,t[52]=ue}else ue=t[52];let fe;t[59]===ue?fe=t[60]:(fe=(0,$.jsx)(de,{scrollFade:!0,className:`mt-2 h-auto max-h-80`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:ue})}),t[59]=ue,t[60]=fe);let pe;t[61]===X?pe=t[62]:(pe=X?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:X}):null,t[61]=X,t[62]=pe);let me;t[63]!==oe||t[64]!==r?(me=(0,$.jsx)(y,{variant:`ghost-muted`,disabled:r,onClick:oe,children:`Do not import projects`}),t[63]=oe,t[64]=r,t[65]=me):me=t[65];let he=!ee||r||q.length===0,ge;t[66]!==ce||t[67]!==q?(ge=()=>void ce(q),t[66]=ce,t[67]=q,t[68]=ge):ge=t[68];let _e=r?`Importing…`:`Import ${q.length} ${q.length===1?`project`:`projects`}`,ve;t[69]!==he||t[70]!==ge||t[71]!==_e?(ve=(0,$.jsx)(y,{autoFocus:!0,disabled:he,onClick:ge,children:_e}),t[69]=he,t[70]=ge,t[71]=_e,t[72]=ve):ve=t[72];let ye;t[73]!==me||t[74]!==ve?(ye=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[me,ve]}),t[73]=me,t[74]=ve,t[75]=ye):ye=t[75];let be;return t[76]!==le||t[77]!==fe||t[78]!==pe||t[79]!==ye?(be=(0,$.jsxs)(Kt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[le,fe,pe,ye]}),t[76]=le,t[77]=fe,t[78]=pe,t[79]=ye,t[80]=be):be=t[80],be}function jt(e){return e.key}function Mt(e){return e.isPending}function Nt(e){return e.data===null}function Pt(e){return e.key}function Ft(e){return X(e.environmentId,s)}function It(e){return e.key}function Lt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function Rt(e){let t=(0,Q.c)(25),{candidates:n,selectedKeys:r,onSelectionChange:i}=e,a;t[0]===n?a=t[1]:(a=et(n),t[0]=n,t[1]=a);let{repositories:o,other:s}=a,c;t[2]!==i||t[3]!==r?(c=(e,t)=>{let n=new Set(r);for(let r of e)t?n.add(r):n.delete(r);i(n)},t[2]=i,t[3]=r,t[4]=c):c=t[4];let l=c,u;if(t[5]!==s||t[6]!==r){let e;t[8]===r?e=t[9]:(e=e=>r.has(e.key),t[8]=r,t[9]=e),u=s.filter(e),t[5]=s,t[6]=r,t[7]=u}else u=t[7];let d=u.length,f;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Bt,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],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)(Fe,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:d===s.length,indeterminate:d>0&&d<s.length,onCheckedChange:e=>l(s.map(zt),e===!0)}),(0,$.jsxs)(Ae,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(C,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),(0,$.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:`Other folders`}),(0,$.jsxs)(`span`,{className:`ml-auto shrink-0 text-xs text-muted-foreground tabular-nums`,children:[s.length,` `,s.length===1?`folder`:`folders`]})]})]}),(0,$.jsx)(Pe,{children:s.map(e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>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 m;return t[22]!==f||t[23]!==p?(m=(0,$.jsxs)($.Fragment,{children:[f,p]}),t[22]=f,t[23]=p,t[24]=m):m=t[24],m}function zt(e){return e.key}function Bt(e){let t=(0,Q.c)(53),{group:n,selectedKeys:r,onToggle:i}=e,a,o;if(t[0]!==n.candidates||t[1]!==r){a=n.candidates.map(Ht);let e;t[4]===r?e=t[5]:(e=e=>r.has(e),t[4]=r,t[5]=e),o=a.filter(e),t[0]=n.candidates,t[1]=r,t[2]=a,t[3]=o}else a=t[2],o=t[3];let s=o.length,c=n.candidates.length===1,l=n.candidates[0];if(c&&l!==void 0){let e=n.label,a=l.path,o;t[6]!==l.key||t[7]!==r?(o=r.has(l.key),t[6]=l.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==l.key?(s=e=>i([l.key],e),t[9]=i,t[10]=l.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==l||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(Wt,{candidate:l,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=l,t[14]=o,t[15]=s,t[16]=c):c=t[16],c}let u=s===a.length,d=s>0&&s<a.length,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 m;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(C,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),t[24]=m):m=t[24];let h;t[25]===n.label?h=t[26]:(h=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:n.label}),t[25]=n.label,t[26]=h);let g;t[27]===n.candidates?g=t[28]:(g=new Set(n.candidates.flatMap(Vt)),t[27]=n.candidates,t[28]=g);let _;t[29]===g?_=t[30]:(_=[...g],t[29]=g,t[30]=_);let v;t[31]!==n.lastActiveAt||t[32]!==n.threadCount||t[33]!==_?(v=(0,$.jsx)(Gt,{sources:_,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[31]=n.lastActiveAt,t[32]=n.threadCount,t[33]=_,t[34]=v):v=t[34];let y;t[35]!==v||t[36]!==h?(y=(0,$.jsxs)(Ae,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[m,h,v]}),t[35]=v,t[36]=h,t[37]=y):y=t[37];let b;t[38]!==y||t[39]!==p?(b=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[p,y]}),t[38]=y,t[39]=p,t[40]=b):b=t[40];let x;if(t[41]!==n.candidates||t[42]!==i||t[43]!==r){let e;t[45]!==i||t[46]!==r?(e=e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>i([e.key],t)},e.key),t[45]=i,t[46]=r,t[47]=e):e=t[47],x=n.candidates.map(e),t[41]=n.candidates,t[42]=i,t[43]=r,t[44]=x}else x=t[44];let S;t[48]===x?S=t[49]:(S=(0,$.jsx)(Pe,{children:x}),t[48]=x,t[49]=S);let w;return t[50]!==b||t[51]!==S?(w=(0,$.jsxs)(Fe,{defaultOpen:!0,children:[b,S]}),t[50]=b,t[51]=S,t[52]=w):w=t[52],w}function Vt(e){return e.sources}function Ht(e){return e.key}function Ut(e){let t=(0,Q.c)(12),{path:n,className:r}=e,i;t[0]===n?i=t[1]:(i=rt(n),t[0]=n,t[1]=i);let{name:a,parent:o}=i,s;t[2]===r?s=t[3]:(s=j(`flex min-w-0 items-baseline font-mono`,r),t[2]=r,t[3]=s);let c;t[4]===o?c=t[5]:(c=o.length>0?(0,$.jsx)(`span`,{className:`truncate`,children:o}):null,t[4]=o,t[5]=c);let l;t[6]===a?l=t[7]:(l=(0,$.jsx)(`span`,{className:`max-w-full shrink-0 truncate`,children:a}),t[6]=a,t[7]=l);let u;return t[8]!==s||t[9]!==c||t[10]!==l?(u=(0,$.jsxs)(`span`,{className:s,children:[c,l]}),t[8]=s,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Wt(e){let t=(0,Q.c)(30),{candidate:n,label:r,path:i,nested:a,checked:o,onCheckedChange:s}=e,c=a!==void 0&&a,l=c&&`pl-8`,u;t[0]===l?u=t[1]:(u=j(`flex cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40 has-disabled:cursor-default`,l),t[0]=l,t[1]=u);let d;t[2]===s?d=t[3]:(d=e=>s(e===!0),t[2]=s,t[3]=d);let f;t[4]!==o||t[5]!==d?(f=(0,$.jsx)(ge,{checked:o,onCheckedChange:d}),t[4]=o,t[5]=d,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-2 truncate`}),t[7]=p):p=t[7];let m;t[8]===r?m=t[9]:(m=r===void 0?null:(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:r}),t[8]=r,t[9]=m);let h;t[10]!==r||t[11]!==i?(h=i===void 0?null:(0,$.jsx)(Ut,{path:i,className:r===void 0?`text-xs`:`text-2xs text-muted-foreground`}),t[10]=r,t[11]=i,t[12]=h):h=t[12];let g;t[13]!==m||t[14]!==h?(g=(0,$.jsxs)(se,{render:p,children:[m,h]}),t[13]=m,t[14]=h,t[15]=g):g=t[15];let _;t[16]===n.path?_=t[17]:(_=(0,$.jsx)(ce,{variant:`code`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==_||t[19]!==g?(v=(0,$.jsxs)(le,{children:[g,_]}),t[18]=_,t[19]=g,t[20]=v):v=t[20];let y=c?null:n.sources,b;t[21]!==n.lastActiveAt||t[22]!==n.threadCount||t[23]!==y?(b=(0,$.jsx)(Gt,{sources:y,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[21]=n.lastActiveAt,t[22]=n.threadCount,t[23]=y,t[24]=b):b=t[24];let x;return t[25]!==v||t[26]!==b||t[27]!==u||t[28]!==f?(x=(0,$.jsxs)(`label`,{className:u,children:[f,v,b]}),t[25]=v,t[26]=b,t[27]=u,t[28]=f,t[29]=x):x=t[29],x}function Gt(e){let t=(0,Q.c)(19),{sources:n,threadCount:r,lastActiveAt:i}=e,a;t[0]===i?a=t[1]:(a=i===null?null:oe(i),t[0]=i,t[1]=a);let o=a,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:S.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:S.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 Kt(e){let t=(0,Q.c)(8),{title:n,description:r,children:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r?(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:r}):null,t[2]=r,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,$.jsxs)($.Fragment,{children:[a,o,i]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}var qt=x(w);function Jt(){let e=(0,Q.c)(14),{authGateState:t}=Me.useRouteContext(),n=K(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:Xt},e[0]=r):r=e[0];let i=q(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?E(qt(i.slice(7))):void 0,e[1]=i,e[2]=a);let o=a,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s={select:Yt},e[3]=s):s=e[3];let c=q(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{if(u(!0),e!==void 0){await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}));return}await n({to:`/`,replace:!0})}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Yt(e){return e.pathname===`/welcome`}function Xt(e){return e.hash}export{Jt as component};
|
|
2
|
-
//# sourceMappingURL=welcome-
|
|
1
|
+
import{a as e,t}from"./react-DH3P2YXY.js";import{n,t as r}from"./jsx-runtime-BnjsACtP.js";import{Am as i,Ay as a,Hy as o,K_ as s,Ms as c,N_ as l,Od as u,Os as d,Qf as f,Qs as p,Ry as m,Sp as h,Uc as g,Zs as _,as as v,dr as y,eE as b,gb as x,j_ as S,jd as C,jy as w,l as T,nE as E,ns as D,o as O,od as k,qd as A,t as j,ts as M,tv as N}from"./utils-CrFJwxSd.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-Dm3Pi31_.js";import{$ as B,G as V,f as H,w as U}from"./entities-Om5Klild.js";import{t as W}from"./runtime-BL7IF4n-.js";import{t as G}from"./spinner-CNva85zM.js";import{t as K}from"./useNavigate-Cxh24teV.js";import{t as q}from"./useLocation-DbWity7H.js";import{i as J}from"./toast-BcjbmUtS.js";import{D as ee,E as te}from"./useSettings-BL4ZWGQV.js";import{f as Y}from"./server-BvxyePeo.js";import{i as ne,n as X,o as re}from"./session-C7ckxjAM.js";import{t as ie}from"./query-DlK0I8Jc.js";import{t as ae}from"./use-atom-command-BNkv9iyk.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-T5ePvxsH.js";import{t as ue}from"./input-BCWES8Y7.js";import{t as de}from"./scroll-area-B9LorBFb.js";import{r as fe}from"./dist-CFar2AY1.js";import{t as pe}from"./dialog-BwjzOzO6.js";import{t as me}from"./useP4ConnectAuthPrompt-sjWWPvrn.js";import{t as he}from"./CommandBlock-D9QqOlDX.js";import{t as ge}from"./checkbox-Y4v7A1IZ.js";import{t as _e}from"./ThreadTerminalDrawer-QTFG89J_.js";import{i as ve}from"./terminalSessions-BPc8sBGR.js";import{n as ye}from"./useHandleNewThread-DntRaFvm.js";import{r as be,t as xe}from"./alert-Dh8AVuLe.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-CMIjZ66V.js";import{t as we}from"./onboarding-CnVH7A6c.js";import{Gt as Te,Kr as Ee,Wt as De,Yt as Oe,_ as ke,_a as Ae,da as je,f as Me,fa as Ne,ga as Pe,ha as Fe,ma as Ie,na as Le,pa as Re}from"./main-BGaSDXjP.js";import{t as ze}from"./NoProjectsHero-CC3oMKUV.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-t7cG-B6z.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-150217tr.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);if(a===void 0){t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt});continue}a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)})}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=B(r,n.path);return i===void 0?null:i.id}function nt(e,t,n){for(let n of e){let e=t.get(n);if(e!==void 0)return e}for(let t of e){let e=n.get(t);if(e!==void 0)return e}}function rt(e){if(/^[A-Za-z]:[\\/]+$/.test(e)||/^[\\/]{2}[^\\/]+[\\/][^\\/]+[\\/]*$/.test(e))return{name:e,parent:``};let t=e.replace(/[\\/]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.length===0?{name:e,parent:``}:n<0?{name:t,parent:``}:{name:t.slice(n+1),parent:t.slice(0,n+1)}}function it(e,t){return JSON.stringify([e,t])}var at=I(W,{label:`environment-data:agent-sessions:scan`,tag:g.agentSessionsScan,staleTimeMs:3e4,idleTtlMs:3e5}),ot=F(W,{label:`environment-data:agent-sessions:import`,tag:g.agentSessionsImport});function st(e){return P(e.entry)}function ct(e,t){let n=e.filter(e=>t.has(e.environmentId)),r=e=>n.filter(t=>e(t.connection.phase)).map(e=>e.environmentId),i=r(e=>e===`connected`),a=n.some(e=>e.connection.phase===`connecting`);return{ready:i.length>0&&!a,environmentIds:i,skippedIds:r(e=>e!==`connected`&&e!==`connecting`)}}function lt(e){let t=(0,Q.c)(3),n=(0,Z.useContext)(D),r;return t[0]!==e||t[1]!==n?(r=v(t=>e.map(e=>{let r=at({environmentId:e,input:{}}),i=t(r);return{environmentId:e,data:b(d(i)),error:i._tag===`Failure`?ie(i.cause):null,isPending:i.waiting||i._tag===`Initial`,refresh:()=>n.refresh(r)}})),t[0]=e,t[1]=n,t[2]=r):r=t[2],M(r)}var $=e(r(),1),ut=[],dt=m.make(`onboarding-agent-setup`),ft=[`Connect`,`Agents`,`Projects`],pt=`Scan limit reached. Some projects or conversations may be missing.`;function mt({localAvailable:e,onDone:t,resumeEnvironmentId:n}){let r=Oe(),[i,a]=(0,Z.useState)(n?`agents`:`connection`),{environments:o}=te(),[s,c]=(0,Z.useState)(null),l=(0,Z.useRef)(new Set),[u,d]=(0,Z.useState)(n?[n]:[]),[f,p]=(0,Z.useState)(!1),m=(0,Z.useRef)(null),h=(0,Z.useRef)(null),g=ee();(0,Z.useEffect)(()=>{let e=o.filter(e=>!l.current.has(e.environmentId));if(e.length===0)return;for(let t of e)l.current.add(t.environmentId);let t=e.filter(e=>e.entry.enabled);t.length!==0&&c(e=>new Set([...e??[],...t.map(e=>e.environmentId)]))},[o]);let _=s??new Set(g?[g.environmentId]:[]),v=lt(i===`import`?u:ut),y=i===`import`&&v.every(e=>e.data===null)&&v.some(e=>e.isPending),b=e=>{e.length!==0&&(d(e),a(`agents`))},x=i===`agents`?1:i===`import`?2:0,S=(0,Z.useCallback)((e,n,i=0)=>{if(m.current!==null)return m.current;h.current!==null&&(J.close(h.current),h.current=null);let a=r().then(async()=>(h.current!==null&&(J.close(h.current),h.current=null),await t(e),n?J.add({type:`warning`,title:`Some history was not imported`,description:n,timeout:0}):i>0&&J.add({type:`success`,title:`Imported ${i} ${i===1?`thread`:`threads`}`}),!0)).catch(()=>{let e={type:`error`,title:`Could not finish setup`,description:`Your settings could not be saved. Try again.`};return h.current===null?h.current=J.add(e):J.update(h.current,e),!1}).finally(()=>{m.current===a&&(m.current=null)});return m.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Re,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(je,{title:`Set up P4 Code`,identity:(0,$.jsxs)(`div`,{className:`flex items-baseline gap-1.5`,role:`img`,"aria-label":`P4 Code`,children:[(0,$.jsx)(Ee,{className:`h-4 w-auto shrink-0`,"aria-hidden":!0}),(0,$.jsx)(`span`,{className:`text-2xl font-medium tracking-tight text-muted-foreground`,children:`Code`})]}),children:(0,$.jsx)(Ie,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Ne,{holdHeight:y,children:i===`connection`?(0,$.jsx)(ht,{expandPairingInitially:!e&&!z(),selectedIds:_,autoSelectedComputers:l.current,onSelectionChange:c,onToggleEnvironment:(e,t)=>c(n=>{let r=new Set(n??_);return t?r.add(e):r.delete(e),r}),onContinue:()=>b(ct(o,_).environmentIds),onPaired:e=>{c(new Set([..._,e]))}}):i===`agents`?(0,$.jsx)(xt,{environmentIds:u,onContinue:()=>a(`import`)}):(0,$.jsx)(At,{scans:v,isImporting:f,setIsImporting:p,onDone:S})})]}),(0,$.jsx)(ke,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:i,onSelectionChange:a,onToggleEnvironment:o,onContinue:s,onPaired:c}=e,{environments:l}=te(),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=z(),t[0]=u):u=t[0];let d=u,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>!d||!st(e),t[1]=p):p=t[1];let m=l.filter(p),[g,_]=(0,Z.useState)(r),[v,b]=(0,Z.useState)(!1),{ready:x,skippedIds:S}=ct(l,i),w=l.filter(e=>S.includes(e.environmentId)).map(gt),T=(0,Z.useRef)(null);(0,Z.useEffect)(()=>{x&&(document.activeElement===document.body||document.activeElement?.getAttribute(`role`)===`dialog`)&&T.current?.focus()},[x]);let E,D;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Connect your computers`}),D=(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:`Choose one or more computers. We’ll set up agents and projects on each.`}),t[2]=E,t[3]=D):(E=t[2],D=t[3]);let O=m.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),m.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:i.has(e.environmentId),onCheckedChange:t=>{let n=new Set(i);t?n.add(e.environmentId):n.delete(e.environmentId),a(n)}}),(0,$.jsx)(h,{className:`size-4 shrink-0 text-muted-foreground`}),(0,$.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,$.jsxs)(`span`,{className:`flex items-baseline justify-between gap-3`,children:[(0,$.jsx)(`span`,{className:`min-w-0 text-sm font-medium break-words`,children:e.label}),(0,$.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:!e.entry.enabled&&e.connection.phase!==`unsupported`?`Off`:Te(e.connection).buttonLabel})]}),e.displayUrl?(0,$.jsx)(`span`,{className:`mt-0.5 block text-xs break-all text-muted-foreground`,children:e.displayUrl}):null]})]},e.environmentId))]}):null,A;t[4]!==n||t[5]!==v||t[6]!==o||t[7]!==i?(A=d?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:v,selectedIds:i,onToggleEnvironment:o}):null,t[4]=n,t[5]=v,t[6]=o,t[7]=i,t[8]=A):A=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(y,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(f,{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=g&&`rotate-90`,I;t[12]===F?I=t[13]:(I=j(`size-4 text-muted-foreground`,F),t[12]=F,t[13]=I);let L;t[14]===I?L=t[15]:(L=(0,$.jsx)(C,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==v||t[17]!==L?(R=(0,$.jsxs)(Ae,{disabled:v,render:M,children:[N,P,L]}),t[16]=v,t[17]=L,t[18]=R):R=t[18];let B;t[19]===c?B=t[20]:(B=e=>{_(!1),c(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=c,t[20]=B);let V;t[21]!==v||t[22]!==B?(V=(0,$.jsx)(Pe,{children:(0,$.jsx)(`div`,{className:`px-3 pb-3`,children:(0,$.jsx)(vt,{isPairing:v,setIsPairing:b,onPaired:B})})}),t[21]=v,t[22]=B,t[23]=V):V=t[23];let H;t[24]!==g||t[25]!==R||t[26]!==V?(H=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Fe,{open:g,onOpenChange:_,children:[R,V]})}),t[24]=g,t[25]=R,t[26]=V,t[27]=H):H=t[27];let U;t[28]!==H||t[29]!==A?(U=(0,$.jsxs)(`div`,{className:`mt-4 space-y-2`,children:[A,H]}),t[28]=H,t[29]=A,t[30]=U):U=t[30];let W=w.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,w.join(`, `),`. You can set`,` `,w.length===1?`it`:`them`,` up later from Settings.`]}):null,G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsxs)(`p`,{className:`min-w-0 text-xs leading-relaxed text-muted-foreground`,children:[`P4 Code collects anonymous usage data to help us improve it. To read more about how your data is used and how to opt out, see our`,` `,(0,$.jsx)(`a`,{className:`underline underline-offset-2 hover:text-foreground`,href:Be,target:`_blank`,rel:`noreferrer noopener`,children:`privacy policy`}),`.`]}),t[31]=G):G=t[31];let K=!r,q=!x||v,J;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(k,{className:`size-3.5`}),t[32]=J):J=t[32];let ee;t[33]!==s||t[34]!==K||t[35]!==q?(ee=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-col-reverse gap-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[G,(0,$.jsxs)(y,{className:`shrink-0 self-end`,ref:T,autoFocus:K,disabled:q,onClick:s,children:[`Continue`,J]})]}),t[33]=s,t[34]=K,t[35]=q,t[36]=ee):ee=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==ee||t[40]!==E||t[41]!==D||t[42]!==O?(Y=(0,$.jsxs)($.Fragment,{children:[E,D,O,U,W,ee]}),t[37]=U,t[38]=W,t[39]=ee,t[40]=E,t[41]=D,t[42]=O,t[43]=Y):Y=t[43],Y}function gt(e){return e.label}function _t(e){let t=(0,Q.c)(36),{autoSelectedComputers:n,disabled:r,selectedIds:i,onToggleEnvironment:a}=e,{environments:o}=te(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={treatPendingAsSignedOut:!1},t[0]=s):s=t[0];let{isLoaded:c,isSignedIn:l}=fe(s),{openAuthPrompt:u}=me(),[d,f]=(0,Z.useState)(!0),[p,m]=(0,Z.useState)(!1),h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>m(!0),t[1]=h):h=t[1];let g=h,_=d&&!!l&&p,v=r||!c,b;t[2]!==l||t[3]!==u?(b=e=>{l||(e.preventDefault(),f(!0),u())},t[2]=l,t[3]=u,t[4]=b):b=t[4];let x,S,w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsx)(y,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),S=(0,$.jsx)(A,{className:`size-4 text-muted-foreground`}),w=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=x,t[6]=S,t[7]=w):(x=t[5],S=t[6],w=t[7]);let T=c?l?p?null:`Loading computers…`:`Sign in`:`Loading sign-in…`,E;t[8]===T?E=t[9]:(E=(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:T}),t[8]=T,t[9]=E);let D=d&&l&&`rotate-90`,O;t[10]===D?O=t[11]:(O=j(`size-4 text-muted-foreground`,D),t[10]=D,t[11]=O);let k;t[12]===O?k=t[13]:(k=(0,$.jsx)(C,{className:O}),t[12]=O,t[13]=k);let M;t[14]!==E||t[15]!==k||t[16]!==v||t[17]!==b?(M=(0,$.jsxs)(Ae,{disabled:v,onClick:b,render:x,children:[S,w,E,k]}),t[14]=E,t[15]=k,t[16]=v,t[17]=b,t[18]=M):M=t[18];let N;t[19]!==n||t[20]!==o||t[21]!==l||t[22]!==a||t[23]!==i?(N=l?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:o,showSavedEnvironments:!0,onDiscoveryReady:g,selection:{selectedIds:i,onChange:a,autoSelectedComputers:n},refreshWhileEmpty:!0,empty:(0,$.jsx)(`p`,{className:`py-3 text-sm text-muted-foreground`,children:`No computers linked yet.`})}):null,t[19]=n,t[20]=o,t[21]=l,t[22]=a,t[23]=i,t[24]=N):N=t[24];let P;t[25]===N?P=t[26]:(P=(0,$.jsx)(`div`,{className:`mb-3 space-y-1.5`,children:N}),t[25]=N,t[26]=P);let F,I,L;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Run this on each computer you want to connect.`}),I=(0,$.jsx)(he,{command:`npx @p4code/cli connect`,className:`mt-3`}),L=(0,$.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:`Keep P4 Code running. Select the computers you want to set up above.`}),t[27]=F,t[28]=I,t[29]=L):(F=t[27],I=t[28],L=t[29]);let R;t[30]===P?R=t[31]:(R=(0,$.jsx)(Pe,{keepMounted:!0,children:(0,$.jsxs)(`div`,{className:`px-3 pb-3`,children:[P,F,I,L]})}),t[30]=P,t[31]=R);let z;return t[32]!==M||t[33]!==R||t[34]!==_?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Fe,{open:_,onOpenChange:f,children:[M,R]})}),t[32]=M,t[33]=R,t[34]=_,t[35]=z):z=t[35],z}function vt(e){let t=(0,Q.c)(38),{isPairing:n,setIsPairing:r,onPaired:i}=e,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1},t[0]=a):a=t[0];let o=ae(we,a),[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(``),d=(0,Z.useRef)(!0),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 m;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(m=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!d.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(L(e))return;let t=R(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=m):m=t[8];let h=m,g;t[9]===h?g=t[10]:(g=e=>{e.preventDefault(),h()},t[9]=h,t[10]=g);let _;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=_):_=t[11];let v=l.length>0,b=l?`onboarding-pairing-error`:void 0,x;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(x=e=>c(e.currentTarget.value),t[12]=x):x=t[12];let S;t[13]!==n||t[14]!==s||t[15]!==v||t[16]!==b?(S=(0,$.jsxs)(`div`,{children:[_,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":v,"aria-describedby":b,className:`mt-2`,size:`lg`,autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,nativeInput:!0,readOnly:n,placeholder:`https://your-server:5230/pair#token=…`,value:s,onChange:x,onKeyDown:yt})]}),t[13]=n,t[14]=s,t[15]=v,t[16]=b,t[17]=S):S=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)(Ae,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(C,{className:`size-3.5 group-data-panel-open:rotate-90`}),`Need a pairing link?`]}),t[20]=T):T=t[20];let E;t[21]!==n||t[22]!==s?(E=n||s.trim().length===0,t[21]=n,t[22]=s,t[23]=E):E=t[23];let D=n?`Pairing...`:`Pair`,O;t[24]!==E||t[25]!==D?(O=(0,$.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[T,(0,$.jsx)(y,{type:`submit`,disabled:E,children:D})]}),t[24]=E,t[25]=D,t[26]=O):O=t[26];let k,A;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsx)(`p`,{className:`pt-3 text-sm text-muted-foreground`,children:`Run this on the computer with your code.`}),A=(0,$.jsx)(he,{command:`npx @p4code/cli pair`,className:`mt-2`}),t[27]=k,t[28]=A):(k=t[27],A=t[28]);let j;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(`code`,{className:`font-mono`,children:`npx @p4code/cli serve`}),t[29]=j):j=t[29];let M;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsxs)(Pe,{children:[k,A,(0,$.jsxs)(`p`,{className:`mt-2 text-xs leading-relaxed text-muted-foreground`,children:[`Start P4 Code first, or run `,j,`. Add `,(0,$.jsx)(`code`,{className:`font-mono`,children:`--tailscale`}),` to use your tailnet.`]})]}),t[30]=M):M=t[30];let N;t[31]===O?N=t[32]:(N=(0,$.jsxs)(Fe,{children:[O,M]}),t[31]=O,t[32]=N);let P;return t[33]!==S||t[34]!==w||t[35]!==N||t[36]!==g?(P=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:g,children:[S,w,N]})}),t[33]=S,t[34]=w,t[35]=N,t[36]=g,t[37]=P):P=t[37],P}function yt(e){e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()}var bt=[`codex`,`claudeAgent`];function xt(e){let t=(0,Q.c)(13),{environmentIds:n,onContinue:r}=e,{environments:i}=te(),a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,$.jsx)(St,{environmentId:e,machineLabel:i.find(t=>t.environmentId===e)?.label??`Computer`},e),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;t[5]===a?o=t[6]:(o=(0,$.jsx)(de,{scrollFade:!0,className:`mt-5 h-auto max-h-[min(32rem,55dvh)]`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:a})}),t[5]=a,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(k,{className:`size-3.5`}),t[7]=s):s=t[7];let c;t[8]===r?c=t[9]:(c=(0,$.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,$.jsxs)(y,{autoFocus:!0,onClick:r,children:[`Continue`,s]})}),t[8]=r,t[9]=c);let l;return t[10]!==o||t[11]!==c?(l=(0,$.jsxs)(Kt,{title:`Connect your agents`,description:`Choose an agent to start coding. You can add more later.`,children:[o,c]}),t[10]=o,t[11]=c,t[12]=l):l=t[12],l}function St(e){let t=(0,Q.c)(57),{environmentId:n,machineLabel:r}=e,i;t[0]===n?i=t[1]:(i=Y.providersValueAtom(n),t[0]=n,t[1]=i);let a=M(i),o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o={reportFailure:!1},t[2]=o):o=t[2];let s=ae(Y.refreshProviders,o),c;t[3]===n?c=t[4]:(c=Y.configValueAtom(n),t[3]=n,t[4]=c);let l=M(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,N),_,v;t[5]!==n||t[6]!==s?(_=()=>{s({environmentId:n,input:{}})},v=[n,s],t[5]=n,t[6]=s,t[7]=_,t[8]=v):(_=t[7],v=t[8]),(0,Z.useEffect)(_,v);let b;t[9]===a?b=t[10]:(b=Ue(a),t[9]=a,t[10]=b);let x=b,S,C,w,T;if(t[11]!==x||t[12]!==g||t[13]!==m||t[14]!==n||t[15]!==r||t[16]!==a||t[17]!==l||t[18]!==u?.driver){let e;t[23]!==x||t[24]!==a?(e=e=>{let t=e===`codex`?a?.filter(t=>t.driver===e):void 0;return t?.length?t.map(t=>({driver:e,provider:t,instanceId:t.instanceId})):[{driver:e,provider:x.get(e),instanceId:x.get(e)?.instanceId}]},t[23]=x,t[24]=a,t[25]=e):e=t[25];let i=bt.flatMap(e);if(m){let e;t[26]===m?e=t[27]:(e=e=>e.instanceId===m.instanceId,t[26]=m,t[27]=e);let n=i.findIndex(e),[r]=n>=0?i.splice(n,1):[];i.unshift(r??{driver:`codex`,provider:void 0,instanceId:m.instanceId})}t[28]===r?T=t[29]:(T=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=T),t[30]===g?S=t[31]:(S=g?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=g,t[31]=S),C=`space-y-1.5`;let o;t[32]!==g||t[33]!==m||t[34]!==n||t[35]!==l||t[36]!==u?.driver?(o=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&l!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:l,createdAccount:i===m?.instanceId?m:null,onAutoStartConsumed:()=>h(wt),terminalOpen:u?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:u?.driver===t,terminalAvailable:l!==null&&g,onOpenTerminal:()=>{r!==void 0&&l!==null&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},t)},t[32]=g,t[33]=m,t[34]=n,t[35]=l,t[36]=u?.driver,t[37]=o):o=t[37],w=i.map(o),t[11]=x,t[12]=g,t[13]=m,t[14]=n,t[15]=r,t[16]=a,t[17]=l,t[18]=u?.driver,t[19]=S,t[20]=C,t[21]=w,t[22]=T}else S=t[19],C=t[20],w=t[21],T=t[22];let E;t[38]!==C||t[39]!==w?(E=(0,$.jsx)(`div`,{className:C,children:w}),t[38]=C,t[39]=w,t[40]=E):E=t[40];let D;t[41]===a?D=t[42]:(D=a?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(y,{size:`xs`,variant:`ghost-muted`,onClick:()=>p(!0),children:`Connect another ChatGPT account`})}):null,t[41]=a,t[42]=D);let O;t[43]!==f||t[44]!==n?(O=f?(0,$.jsx)(Ke,{environmentId:n,onClose:()=>p(!1),onAccountCreated:(e,t)=>h({instanceId:e,displayName:t,autoStart:!0})}):null,t[43]=f,t[44]=n,t[45]=O):O=t[45];let k;t[46]!==n||t[47]!==s||t[48]!==u?(k=u===null?null:(0,$.jsx)(Dt,{session:u,onClose:()=>{d(null),s({environmentId:n,input:{}})}},`${u.environmentId}:${u.providerInstanceId}:${u.driver}`),t[46]=n,t[47]=s,t[48]=u,t[49]=k):k=t[49];let A;return t[50]!==S||t[51]!==E||t[52]!==D||t[53]!==O||t[54]!==k||t[55]!==T?(A=(0,$.jsxs)(`section`,{children:[T,S,E,D,O,k]}),t[50]=S,t[51]=E,t[52]=D,t[53]=O,t[54]=k,t[55]=T,t[56]=A):A=t[56],A}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,u=ne(i,N),d=ae(Y.updateSettings,`Codex setup settings`),f;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(f=n?.instanceId??a?.instanceId??l(S.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=f):f=t[2];let p=f,m=o.settings,h;t[3]!==n||t[4]!==p||t[5]!==m.providerInstances?(h=m.providerInstances[p]??{driver:S.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=p,t[5]=m.providerInstances,t[6]=h):h=t[6];let g=h,_;t[7]===g.config?_=t[8]:(_=Je(g.config),t[7]=g.config,t[8]=_);let v=_,y=v===`existing`&&g.config!==null&&typeof g.config==`object`&&`setupMode`in g.config&&g.config.setupMode===`existing`,b;t[9]!==i||t[10]!==g||t[11]!==p||t[12]!==m||t[13]!==d?(b=e=>{d({environmentId:i,input:{patch:Ve({settings:m,instanceId:p,instance:{...g,enabled:!0,config:{...g.config!==null&&typeof g.config==`object`?g.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=g,t[11]=p,t[12]=m,t[13]=d,t[14]=b):b=t[14];let x=b,C;return t[15]!==u||t[16]!==x||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==y||t[21]!==p||t[22]!==v||t[23]!==r||t[24]!==c||t[25]!==a||t[26]!==s?(C=y?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:s,terminalAvailable:u,onOpenTerminal:c}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:p,provider:a,mode:v,enabled:a?.enabled??!0,onModeChange:x}),t[15]=u,t[16]=x,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=y,t[21]=p,t[22]=v,t[23]=r,t[24]=c,t[25]=a,t[26]=s,t[27]=C):C=t[27],C}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:a,terminalAvailable:o,onOpenTerminal:s}=e,c;t[0]===n?c=t[1]:(c=Se.get(S.make(n)),t[0]=n,t[1]=c);let l=c,d=r?.displayName||(n===`claudeAgent`?`Claude Code`:l?.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,g;t[6]===n?g=t[7]:(g=S.make(n),t[6]=n,t[7]=g);let _;t[8]!==d||t[9]!==g?(_=(0,$.jsx)(Ce,{driverKind:g,displayName:d,iconClassName:`size-5`}),t[8]=d,t[9]=g,t[10]=_):_=t[10];let v;t[11]===d?v=t[12]:(v=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:d}),t[11]=d,t[12]=v);let b=h===`ready`?`Ready to code.`:p.headline,x=h!==`ready`&&p.detail?` · ${p.detail}`:``,C;t[13]!==b||t[14]!==x?(C=(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]=C):C=t[15];let w;t[16]!==v||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[v,C]}),t[16]=v,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==s||t[20]!==h||t[21]!==p||t[22]!==o||t[23]!==a?(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)(u,{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)(y,{size:`xs`,variant:`ghost`,onClick:s,disabled:a||!o,children:[(0,$.jsx)(i,{className:`size-3.5`}),h===`signIn`?`Sign in`:`Install`]})}),t[19]=s,t[20]=h,t[21]=p,t[22]=o,t[23]=a,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==_?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[_,w,T]}),t[25]=w,t[26]=T,t[27]=_,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:s,environmentId:l,keybindings:u,providerInstanceId:d}=n,f=ne(l,N),[m]=c(Le,!1,o),h;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={reportFailure:!1},t[0]=h):h=t[0];let g=ae(ve.open,h),_;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[1]=_):_=t[1];let v=ae(ve.write,_),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b={reportFailure:!1},t[2]=b):b=t[2];let x=ae(ve.close,b),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let C=(0,Z.useRef)(S),w=(0,Z.useRef)(0),E=(0,Z.useRef)(null),D;t[4]===s?D=t[5]:(D=()=>`onboarding-${s}-${T()}`,t[4]=s,t[5]=D);let[O]=(0,Z.useState)(D),k;t[6]===l?k=t[7]:(k=p(l,dt),t[6]=l,t[7]=k);let A=k,[j,M]=(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]!==l||t[12]!==g||t[13]!==d||t[14]!==O||t[15]!==v?(L=()=>{let e=w.current+1;return w.current=e,E.current=e,F(`preparing`),C.current=C.current.then(async()=>{if(E.current!==e)return;if(!X(l,`terminal:operate`)){F(`openFailed`);return}if((await g({environmentId:l,input:{threadId:dt,terminalId:O,cwd:a,providerInstanceId:d}}))._tag!==`Success`){E.current===e&&F(`openFailed`);return}if(E.current!==e)return;if(!X(l,`terminal:operate`)){F(`writeFailed`);return}let t=await v({environmentId:l,input:{threadId:dt,terminalId:O,data:i}});E.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{E.current===e&&(E.current=null),C.current=C.current.then(async()=>{X(l,`terminal:operate`)&&await x({environmentId:l,input:{threadId:dt,terminalId:O,deleteHistory:!0}})})}},t[8]=x,t[9]=i,t[10]=a,t[11]=l,t[12]=g,t[13]=d,t[14]=O,t[15]=v,t[16]=L):L=t[16];let R;t[17]!==x||t[18]!==i||t[19]!==a||t[20]!==l||t[21]!==g||t[22]!==d||t[23]!==j||t[24]!==O||t[25]!==v?(R=[x,i,a,l,g,d,j,O,v],t[17]=x,t[18]=i,t[19]=a,t[20]=l,t[21]=g,t[22]=d,t[23]=j,t[24]=O,t[25]=v,t[26]=R):R=t[26],(0,Z.useEffect)(L,R);let z;t[27]!==f||t[28]!==i||t[29]!==P?(z=f?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]=f,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]!==f||t[34]!==l||t[35]!==P?(V=P===`openFailed`?(0,$.jsx)(y,{size:`xs`,variant:`ghost`,disabled:!f,onClick:()=>{X(l,`terminal:operate`)&&M(Ot)},children:`Retry`}):null,t[33]=f,t[34]=l,t[35]=P,t[36]=V):V=t[36];let H;t[37]===r?H=t[38]:(H=(0,$.jsx)(y,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==m||t[46]!==a||t[47]!==s||t[48]!==u||t[49]!==r||t[50]!==d||t[51]!==O||t[52]!==I||t[53]!==A?(G=I?(0,$.jsx)(_e,{threadRef:A,threadId:dt,terminalId:O,terminalLabel:`Install ${s}`,cwd:a,providerInstanceId:d,advancedTypography:m,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:u}):null,t[45]=m,t[46]=a,t[47]=s,t[48]=u,t[49]=r,t[50]=d,t[51]=O,t[52]=I,t[53]=A,t[54]=G):G=t[54];let K;t[55]===G?K=t[56]:(K=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=K);let q;return t[57]!==W||t[58]!==K?(q=(0,$.jsxs)(`div`,{"data-thread-terminal-drawer":!0,className:`mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground`,children:[W,K]}),t[57]=W,t[58]=K,t[59]=q):q=t[59],q}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(81),{scans:n,isImporting:r,setIsImporting:i,onDone:o}=e,{environments:c}=te(),l=re(n,s),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={reportFailure:!1},t[0]=u):u=t[0];let d=ae(V.create,u),f;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(f={reportFailure:!1},t[1]=f):f=t[1];let p=ae(ot,f),m=U(),[h,g]=(0,Z.useState)(null),v=(0,Z.useRef)(``),b=(0,Z.useRef)(0),[x,S]=(0,Z.useState)(null),C;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=new Map,t[2]=C):C=t[2];let w=(0,Z.useRef)(C),T;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=new Map,t[3]=T):T=t[3];let E=(0,Z.useRef)(T),D;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=[],t[4]=D):D=t[4];let k=(0,Z.useRef)(D),A;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(A=new Map,t[5]=A):A=t[5];let j=(0,Z.useRef)(A),M=(0,Z.useRef)(0),N,P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>(M.current+=1,()=>{M.current+=1}),P=[],t[6]=N,t[7]=P):(N=t[6],P=t[7]),(0,Z.useEffect)(N,P);let F,I;t[8]!==x||t[9]!==o||t[10]!==m||t[11]!==i?(I=()=>{x!==null&&m.some(e=>e.id===x.projectId&&e.environmentId===x.environmentId)&&(S(null),o(x,v.current,b.current).then(e=>{e||i(!1)}))},F=[x,o,m,i],t[8]=x,t[9]=o,t[10]=m,t[11]=i,t[12]=F,t[13]=I):(F=t[12],I=t[13]),(0,Z.useEffect)(I,F);let R;t[14]===n?R=t[15]:(R=Qe(n.flatMap(Lt)),t[14]=n,t[15]=R);let{available:z,recent:B}=R,W;t[16]!==B||t[17]!==h?(W=h??new Set(B.map(It)),t[16]=B,t[17]=h,t[18]=W):W=t[18];let K=W,q,J;if(t[19]!==z||t[20]!==K||t[21]!==l){let e;t[24]===K?e=t[25]:(e=e=>K.has(e.key),t[24]=K,t[25]=e),q=z.filter(e);let n;t[26]===l?n=t[27]:(n=e=>l.has(e.environmentId),t[26]=l,t[27]=n),J=q.every(n),t[19]=z,t[20]=K,t[21]=l,t[22]=q,t[23]=J}else q=t[22],J=t[23];let ee=J,[Y,ne]=(0,Z.useState)(``),X=ee?Y===kt?``:Y:kt,ie;t[28]!==o||t[29]!==i?(ie=()=>{let e=nt(k.current,E.current,w.current);if(e===void 0){o(void 0,v.current,b.current);return}i(!0),S(e)},t[28]=o,t[29]=i,t[30]=ie):ie=t[30];let oe=ie,se;t[31]!==d||t[32]!==oe||t[33]!==p||t[34]!==r||t[35]!==o||t[36]!==n||t[37]!==i?(se=async e=>{if(r)return;let t=()=>e.every(Ft),s=()=>{i(!1),ne(kt)};if(!t()){s();return}if(e.length===0){o();return}i(!0),v.current=``,b.current=0,k.current=e.map(Pt);let c=M.current,l=w.current,u=j.current,f=l.size>0?e.filter(e=>l.has(e.key)).length:0,m=0,h=0,g=new Set;for(let n of e){let{environmentId:e}=n;if(c!==M.current||l!==w.current)return;if(!t()){s();return}if(l.has(n.key))continue;let r=tt(H(),e,n);if(r===null){let t=u.get(n.key);if(t===void 0){let e=O();t={projectId:e,commandId:a.make(`onboarding:project:create:${e}`)},u.set(n.key,t)}r=t.projectId;let i=await d({environmentId:e,input:{projectId:r,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(c!==M.current||l!==w.current)return;if(i._tag!==`Success`){L(i)||(u.delete(n.key),g.add(e));continue}}if(!t()){s();return}let i=await p({environmentId:e,input:{projectId:r,expectedWorkspaceRoot:n.path}});if(c!==M.current||l!==w.current)return;i._tag===`Success`?(m+=i.value.importedCount,h+=i.value.skippedCount,i.value.importedCount>0&&E.current.set(n.key,_(e,r)),i.value.skippedCount===0&&(f+=1,l.set(n.key,_(e,r)))):L(i)||(u.delete(n.key),g.add(e))}for(let e of n)g.has(e.environmentId)&&e.refresh();i(!1),b.current=m,f<e.length&&(m>0&&h>0?v.current=`Imported ${m} ${m===1?`thread`:`threads`}. ${h} ${h===1?`thread`:`threads`} could not be imported.`:h>0?v.current=`${h} ${h===1?`thread could`:`threads could`} not be imported.`:m>0?v.current=`Imported ${m} ${m===1?`thread`:`threads`}. Some thread history could not be imported.`:v.current=`Could not import thread history.`),oe()},t[31]=d,t[32]=oe,t[33]=p,t[34]=r,t[35]=o,t[36]=n,t[37]=i,t[38]=se):se=t[38];let ce=se;if(n.every(Nt)&&n.some(Mt)){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[39]=e):e=t[39];let n;t[40]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsxs)(`div`,{className:`flex flex-1 flex-col items-center justify-center gap-3 py-6`,children:[(0,$.jsx)(G,{size:`lg`,tone:`muted`}),(0,$.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:`Looking for projects from Claude Code and Codex…`})]}),t[40]=n):n=t[40];let r;return t[41]===o?r=t[42]:(r=(0,$.jsxs)(`div`,{className:`flex h-full min-h-40 flex-col`,children:[e,n,(0,$.jsx)(`div`,{className:`flex justify-end`,children:(0,$.jsx)(y,{variant:`ghost-muted`,onClick:()=>void o(),children:`Do not import projects`})})]}),t[41]=o,t[42]=r),r}let le;t[43]!==z||t[44]!==r||t[45]!==q?(le=z.length>0?(0,$.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3 text-xs text-muted-foreground`,children:[(0,$.jsxs)(`span`,{role:`status`,children:[q.length,` of `,z.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(y,{variant:`ghost`,size:`xs`,disabled:r||q.length===z.length,onClick:()=>g(new Set(z.map(jt))),children:`Select all`}),(0,$.jsx)(y,{variant:`ghost`,size:`xs`,disabled:r||q.length===0,onClick:()=>g(new Set),children:`Select none`})]})]}):null,t[43]=z,t[44]=r,t[45]=q,t[46]=le):le=t[46];let ue;if(t[47]!==z||t[48]!==c||t[49]!==r||t[50]!==n||t[51]!==K){let e;t[53]!==z||t[54]!==c||t[55]!==r||t[56]!==n.length||t[57]!==K?(e=e=>{let t=z.filter(t=>t.environmentId===e.environmentId),i=c.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:r,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:i}):null,e.isPending&&e.data===null?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(G,{size:`md`}),`Looking for projects…`]}):e.error===null?t.length===0?(0,$.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`No existing Claude Code or Codex projects found.`}):null:(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-muted-foreground`,children:[(0,$.jsxs)(`span`,{children:[`Could not check projects. `,e.error]}),(0,$.jsx)(y,{variant:`ghost`,size:`sm`,onClick:e.refresh,children:`Retry`})]}),e.data?.truncated?(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:pt}):null,(0,$.jsx)(Rt,{candidates:t,selectedKeys:K,onSelectionChange:g})]},e.environmentId)},t[53]=z,t[54]=c,t[55]=r,t[56]=n.length,t[57]=K,t[58]=e):e=t[58],ue=n.map(e),t[47]=z,t[48]=c,t[49]=r,t[50]=n,t[51]=K,t[52]=ue}else ue=t[52];let fe;t[59]===ue?fe=t[60]:(fe=(0,$.jsx)(de,{scrollFade:!0,className:`mt-2 h-auto max-h-80`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:ue})}),t[59]=ue,t[60]=fe);let pe;t[61]===X?pe=t[62]:(pe=X?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:X}):null,t[61]=X,t[62]=pe);let me;t[63]!==oe||t[64]!==r?(me=(0,$.jsx)(y,{variant:`ghost-muted`,disabled:r,onClick:oe,children:`Do not import projects`}),t[63]=oe,t[64]=r,t[65]=me):me=t[65];let he=!ee||r||q.length===0,ge;t[66]!==ce||t[67]!==q?(ge=()=>void ce(q),t[66]=ce,t[67]=q,t[68]=ge):ge=t[68];let _e=r?`Importing…`:`Import ${q.length} ${q.length===1?`project`:`projects`}`,ve;t[69]!==he||t[70]!==ge||t[71]!==_e?(ve=(0,$.jsx)(y,{autoFocus:!0,disabled:he,onClick:ge,children:_e}),t[69]=he,t[70]=ge,t[71]=_e,t[72]=ve):ve=t[72];let ye;t[73]!==me||t[74]!==ve?(ye=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[me,ve]}),t[73]=me,t[74]=ve,t[75]=ye):ye=t[75];let be;return t[76]!==le||t[77]!==fe||t[78]!==pe||t[79]!==ye?(be=(0,$.jsxs)(Kt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[le,fe,pe,ye]}),t[76]=le,t[77]=fe,t[78]=pe,t[79]=ye,t[80]=be):be=t[80],be}function jt(e){return e.key}function Mt(e){return e.isPending}function Nt(e){return e.data===null}function Pt(e){return e.key}function Ft(e){return X(e.environmentId,s)}function It(e){return e.key}function Lt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function Rt(e){let t=(0,Q.c)(25),{candidates:n,selectedKeys:r,onSelectionChange:i}=e,a;t[0]===n?a=t[1]:(a=et(n),t[0]=n,t[1]=a);let{repositories:o,other:s}=a,c;t[2]!==i||t[3]!==r?(c=(e,t)=>{let n=new Set(r);for(let r of e)t?n.add(r):n.delete(r);i(n)},t[2]=i,t[3]=r,t[4]=c):c=t[4];let l=c,u;if(t[5]!==s||t[6]!==r){let e;t[8]===r?e=t[9]:(e=e=>r.has(e.key),t[8]=r,t[9]=e),u=s.filter(e),t[5]=s,t[6]=r,t[7]=u}else u=t[7];let d=u.length,f;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Bt,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],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)(Fe,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:d===s.length,indeterminate:d>0&&d<s.length,onCheckedChange:e=>l(s.map(zt),e===!0)}),(0,$.jsxs)(Ae,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(C,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),(0,$.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:`Other folders`}),(0,$.jsxs)(`span`,{className:`ml-auto shrink-0 text-xs text-muted-foreground tabular-nums`,children:[s.length,` `,s.length===1?`folder`:`folders`]})]})]}),(0,$.jsx)(Pe,{children:s.map(e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>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 m;return t[22]!==f||t[23]!==p?(m=(0,$.jsxs)($.Fragment,{children:[f,p]}),t[22]=f,t[23]=p,t[24]=m):m=t[24],m}function zt(e){return e.key}function Bt(e){let t=(0,Q.c)(53),{group:n,selectedKeys:r,onToggle:i}=e,a,o;if(t[0]!==n.candidates||t[1]!==r){a=n.candidates.map(Ht);let e;t[4]===r?e=t[5]:(e=e=>r.has(e),t[4]=r,t[5]=e),o=a.filter(e),t[0]=n.candidates,t[1]=r,t[2]=a,t[3]=o}else a=t[2],o=t[3];let s=o.length,c=n.candidates.length===1,l=n.candidates[0];if(c&&l!==void 0){let e=n.label,a=l.path,o;t[6]!==l.key||t[7]!==r?(o=r.has(l.key),t[6]=l.key,t[7]=r,t[8]=o):o=t[8];let s;t[9]!==i||t[10]!==l.key?(s=e=>i([l.key],e),t[9]=i,t[10]=l.key,t[11]=s):s=t[11];let c;return t[12]!==n.label||t[13]!==l||t[14]!==o||t[15]!==s?(c=(0,$.jsx)(Wt,{candidate:l,label:e,path:a,checked:o,onCheckedChange:s}),t[12]=n.label,t[13]=l,t[14]=o,t[15]=s,t[16]=c):c=t[16],c}let u=s===a.length,d=s>0&&s<a.length,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 m;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(C,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),t[24]=m):m=t[24];let h;t[25]===n.label?h=t[26]:(h=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:n.label}),t[25]=n.label,t[26]=h);let g;t[27]===n.candidates?g=t[28]:(g=new Set(n.candidates.flatMap(Vt)),t[27]=n.candidates,t[28]=g);let _;t[29]===g?_=t[30]:(_=[...g],t[29]=g,t[30]=_);let v;t[31]!==n.lastActiveAt||t[32]!==n.threadCount||t[33]!==_?(v=(0,$.jsx)(Gt,{sources:_,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[31]=n.lastActiveAt,t[32]=n.threadCount,t[33]=_,t[34]=v):v=t[34];let y;t[35]!==v||t[36]!==h?(y=(0,$.jsxs)(Ae,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[m,h,v]}),t[35]=v,t[36]=h,t[37]=y):y=t[37];let b;t[38]!==y||t[39]!==p?(b=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[p,y]}),t[38]=y,t[39]=p,t[40]=b):b=t[40];let x;if(t[41]!==n.candidates||t[42]!==i||t[43]!==r){let e;t[45]!==i||t[46]!==r?(e=e=>(0,$.jsx)(Wt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>i([e.key],t)},e.key),t[45]=i,t[46]=r,t[47]=e):e=t[47],x=n.candidates.map(e),t[41]=n.candidates,t[42]=i,t[43]=r,t[44]=x}else x=t[44];let S;t[48]===x?S=t[49]:(S=(0,$.jsx)(Pe,{children:x}),t[48]=x,t[49]=S);let w;return t[50]!==b||t[51]!==S?(w=(0,$.jsxs)(Fe,{defaultOpen:!0,children:[b,S]}),t[50]=b,t[51]=S,t[52]=w):w=t[52],w}function Vt(e){return e.sources}function Ht(e){return e.key}function Ut(e){let t=(0,Q.c)(12),{path:n,className:r}=e,i;t[0]===n?i=t[1]:(i=rt(n),t[0]=n,t[1]=i);let{name:a,parent:o}=i,s;t[2]===r?s=t[3]:(s=j(`flex min-w-0 items-baseline font-mono`,r),t[2]=r,t[3]=s);let c;t[4]===o?c=t[5]:(c=o.length>0?(0,$.jsx)(`span`,{className:`truncate`,children:o}):null,t[4]=o,t[5]=c);let l;t[6]===a?l=t[7]:(l=(0,$.jsx)(`span`,{className:`max-w-full shrink-0 truncate`,children:a}),t[6]=a,t[7]=l);let u;return t[8]!==s||t[9]!==c||t[10]!==l?(u=(0,$.jsxs)(`span`,{className:s,children:[c,l]}),t[8]=s,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Wt(e){let t=(0,Q.c)(30),{candidate:n,label:r,path:i,nested:a,checked:o,onCheckedChange:s}=e,c=a!==void 0&&a,l=c&&`pl-8`,u;t[0]===l?u=t[1]:(u=j(`flex cursor-pointer items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40 has-disabled:cursor-default`,l),t[0]=l,t[1]=u);let d;t[2]===s?d=t[3]:(d=e=>s(e===!0),t[2]=s,t[3]=d);let f;t[4]!==o||t[5]!==d?(f=(0,$.jsx)(ge,{checked:o,onCheckedChange:d}),t[4]=o,t[5]=d,t[6]=f):f=t[6];let p;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-2 truncate`}),t[7]=p):p=t[7];let m;t[8]===r?m=t[9]:(m=r===void 0?null:(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:r}),t[8]=r,t[9]=m);let h;t[10]!==r||t[11]!==i?(h=i===void 0?null:(0,$.jsx)(Ut,{path:i,className:r===void 0?`text-xs`:`text-2xs text-muted-foreground`}),t[10]=r,t[11]=i,t[12]=h):h=t[12];let g;t[13]!==m||t[14]!==h?(g=(0,$.jsxs)(se,{render:p,children:[m,h]}),t[13]=m,t[14]=h,t[15]=g):g=t[15];let _;t[16]===n.path?_=t[17]:(_=(0,$.jsx)(ce,{variant:`code`,children:n.path}),t[16]=n.path,t[17]=_);let v;t[18]!==_||t[19]!==g?(v=(0,$.jsxs)(le,{children:[g,_]}),t[18]=_,t[19]=g,t[20]=v):v=t[20];let y=c?null:n.sources,b;t[21]!==n.lastActiveAt||t[22]!==n.threadCount||t[23]!==y?(b=(0,$.jsx)(Gt,{sources:y,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[21]=n.lastActiveAt,t[22]=n.threadCount,t[23]=y,t[24]=b):b=t[24];let x;return t[25]!==v||t[26]!==b||t[27]!==u||t[28]!==f?(x=(0,$.jsxs)(`label`,{className:u,children:[f,v,b]}),t[25]=v,t[26]=b,t[27]=u,t[28]=f,t[29]=x):x=t[29],x}function Gt(e){let t=(0,Q.c)(19),{sources:n,threadCount:r,lastActiveAt:i}=e,a;t[0]===i?a=t[1]:(a=i===null?null:oe(i),t[0]=i,t[1]=a);let o=a,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:S.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:S.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 Kt(e){let t=(0,Q.c)(8),{title:n,description:r,children:i}=e,a;t[0]===n?a=t[1]:(a=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r?(0,$.jsx)(`p`,{className:`mt-2.5 text-sm leading-relaxed text-muted-foreground`,children:r}):null,t[2]=r,t[3]=o);let s;return t[4]!==i||t[5]!==a||t[6]!==o?(s=(0,$.jsxs)($.Fragment,{children:[a,o,i]}),t[4]=i,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}var qt=x(w);function Jt(){let e=(0,Q.c)(14),{authGateState:t}=Me.useRouteContext(),n=K(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:Xt},e[0]=r):r=e[0];let i=q(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?E(qt(i.slice(7))):void 0,e[1]=i,e[2]=a);let o=a,s;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(s={select:Yt},e[3]=s):s=e[3];let c=q(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{if(u(!0),e!==void 0){await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}));return}await n({to:`/`,replace:!0})}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Yt(e){return e.pathname===`/welcome`}function Xt(e){return e.hash}export{Jt as component};
|
|
2
|
+
//# sourceMappingURL=welcome-DVusCS_L.js.map
|
package/dist/client/index.html
CHANGED
|
@@ -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-
|
|
387
|
+
<script type="module" crossorigin src="/assets/index-Czsz7nXH.js"></script>
|
|
388
388
|
</head>
|
|
389
389
|
<body>
|
|
390
390
|
<div id="root">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-
|
|
3
|
+
import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-EqYv-lrV.mjs";
|
|
4
4
|
import { Canvas, DOMMatrix as DOMMatrix$1, FontLibrary, Image, Path2D } from "skia-canvas";
|
|
5
5
|
//#region ../../node_modules/.pnpm/konva@10.7.1_skia-canvas@3.0.8/node_modules/konva/lib/Global.js
|
|
6
6
|
/*
|
|
@@ -17676,4 +17676,4 @@ function createRenderer(width, height) {
|
|
|
17676
17676
|
//#endregion
|
|
17677
17677
|
export { createRenderer, rasterizeSvg, renderDesignExport, renderDesignPng };
|
|
17678
17678
|
|
|
17679
|
-
//# sourceMappingURL=renderer-
|
|
17679
|
+
//# sourceMappingURL=renderer-CJXpJ36b.mjs.map
|
|
@@ -27650,7 +27650,7 @@ const DesignRenderReceipt = Struct({
|
|
|
27650
27650
|
nodeBounds: optional(Record(String$1, DesignBounds))
|
|
27651
27651
|
});
|
|
27652
27652
|
/** `design_guide`: bundled agent guides. No `path` returns the main guide and the guide list. */
|
|
27653
|
-
const DesignGuideRequest = Struct({ path: optional(String$1.annotate({ description: "Sub-guide path from the main guide's list, for example `
|
|
27653
|
+
const DesignGuideRequest = Struct({ path: optional(String$1.annotate({ description: "Sub-guide path from the main guide's list, for example `design` or `workflow`, or a link from inside a guide as written, for example `references/audit.md`. Omit for the main guide." })) });
|
|
27654
27654
|
const DesignGuideReceipt = Struct({
|
|
27655
27655
|
path: String$1,
|
|
27656
27656
|
title: String$1,
|
|
@@ -31887,4 +31887,4 @@ function semanticDiff(before, after) {
|
|
|
31887
31887
|
//#endregion
|
|
31888
31888
|
export { WORKTREE_SETUP_ERROR_MAX_LENGTH as $, symbol as $a, ProjectSearchContentsError as $c, setHeaders$1 as $d, AuthMcpTokenError as $f, ProviderUploadFeedbackError as $i, isProviderSendTurnSupportedImageMimeType as $l, isHeaders as $m, ReviewDiffPreviewSource as $n, DesktopBrowserCommand as $o, PREFERRED_DEFAULT_CODEX_MODELS as $p, OrchestratorMcpListScheduledTasksInput as $r, OrchestrationV2DispatchCommandResult as $s, DesktopHostTelemetryMessage as $t, TypeId$10 as $u, ComputerUseError as A, isUnconfiguredDefaultInstanceEnabled as Aa, OrchestrationV2ThreadLaunchError as Ac, matchStatus as Ad, PlatformError as Af, GitManagerError as Ai, VcsDriverKind as Al, NonNegativeInt as Am, PreviewAutomationRequestQueueClosedError as An, DeviceToolOpenResult as Ao, allShort as Ap, OrchestrationSearchThreadsError as Ar, RelayManagedEndpointRecoveryResponse as As, DesignProposeRequest as At, tracer as Au, RpcScopeAuthorization as B, secretSettingsFields as Ba, latestProviderTurnForAttempt as Bc, bodyJson as Bd, AuthAccessStreamError as Bf, ServerSelfUpdateError as Bi, ModelSelection as Bl, RunAttemptId as Bm, PreviewAutomationStatus as Bn, DecisionError as Bo, AcpRegistryOperationErrorReason as Bp, AgentAssetName as Br, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as Bs, make as Bt, schemaCookies as Bu, clean as C, PROJECT_SCOPED_SERVER_SETTING_KEYS as Ca, OrchestrationV2SearchThreadInput as Cc, stream as Cd, uint8Array$1 as Cf, ApplicationEventMetadata as Ci, pullRequestProviderRequirement as Cl, ContextTransferId as Cm, PreviewAutomationRecordingArtifact as Cn, DeviceOperationError as Co, getWithHeadersAnnotation as Cp, AgentSessionImportSource as Cr, RelayCloudEnvironmentHealthProofPayload as Cs, DesignHandoffRequest as Ct, use as Cu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as D, ServerSettingsError as Da, OrchestrationV2Subagent as Dc, TypeId$13 as Dd, WatchBackend as Df, PullRequestReviewGuideRun as Di, SourceControlProviderError as Dl, IsoDateTime as Dm, PreviewAutomationRecordingTooLargeError as Dn, DeviceToolError as Do, isWithHeaders as Dp, P4ProjectFile as Dr, RelayHookDeliveryProofPayload as Ds, DesignInspectRequest as Dt, TracerDisabledWhen as Du, toBytes as E, ServerSettings as Ea, OrchestrationV2StoredEvent as Ec, urlParams as Ed, FileTypeId as Ef, PullRequestReviewGuide as Ei, SourceControlCloneRepositoryResult as El, EventId as Em, PreviewAutomationRecordingStatus as En, DeviceToolCloseInput as Eo, isStreamUint8Array as Ep, FilesystemBrowseError as Er, RelayEnvironmentLinkResponse as Es, DesignInspectReceipt as Et, make$6 as Eu, ComputerUseJsInput as F, requiredScopesForServerSettingsPatch as Fa, OrchestrationWorkflowFileError as Fc, acceptJson as Fd, ExecutionEnvironmentDescriptor as Ff, EnvironmentThemeFile as Fi, VcsProcessSpawnError as Fl, ProviderSessionId as Fm, PreviewAutomationSelectInput as Fn, EasDeviceHostConfig as Fo, encoder$2 as Fp, AgentAsset as Fr, fromApi as Fs, DesignStatusRequest as Ft, fromHeaders as Fu, WsMcpRegistryProviderSignInStateRpc as G, PreviewClearProfileError as Ga, OrchestrationProjectShell as Gc, del$1 as Gd, AuthEnvironmentMaintainScope as Gf, EDITORS as Gi, ChatAttachmentId as Gl, ThreadId as Gm, PreviewAutomationTypeInput as Gn, resolveDecisionBackend as Go, CustomModelSetting as Gp, OrchestratorMcpCapabilitiesResult as Gr, OrchestrationV2CheckpointJson as Gs, ClientAbort as Gt, TypeId$9 as Gu, WsMcpRegistryProviderSignInCancelRpc as H, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as Ha, ToolActivityIcon as Hc, bodyStream as Hd, AuthAccessWriteScope as Hf, isProviderAvailable as Hi, OrchestrationGetTurnDiffError as Hl, RuntimeRequestId as Hm, PreviewAutomationTabTargetInput as Hn, DecisionResult as Ho, officialAcpRegistryIconUrlForAgentId as Hp, agentAssetTotalBytes as Hr, OrchestrationGetWorkflowScriptError as Hs, exitSchema as Ht, schemaSearchParams as Hu, ComputerUseOutput as I, resolveIdleCompaction as Ia, autoWorkspaceNoticeMessage as Ic, appendUrlParams as Id, ORCHESTRATION_PROTOCOL_HEADER as If, EnvironmentThemeId as Ii, VcsProcessStdinWriteError as Il, ProviderThreadId as Im, PreviewAutomationSelectResult as In, LOCAL_DEVICE_HOST_ID as Io, makeParser as Ip, AgentAssetFiles as Ir, getParamNames as Is, DesignStylesReceipt as It, toHeaders as Iu, WsRpcGroup as J, PreviewListResult as Ja, ProjectListEntriesError as Jc, post$1 as Jd, AuthFilesystemWriteScope as Jf, ExternalLauncherEditorSpawnError as Ji, PROVIDER_SEND_TURN_MAX_FILE_BYTES as Jl, TurnItemId as Jm, PreviewAutomationUploadInput as Jn, INCOGNITO_BROWSER_PROFILE_ID as Jo, DEFAULT_TEXT_GENERATION_MODEL as Jp, OrchestratorMcpDelegateTaskInput as Jr, OrchestrationV2ContextTransfer as Js, WorktreeMcpFailure as Jt, makeConfig as Ju, WsMcpRegistryProviderSignInWaitRpc as K, PreviewControlRequiredError as Ka, Project as Kc, get$1 as Kd, AuthEnvironmentScopes as Kf, ExternalLauncherBrowserSpawnError as Ki, ChatFileAttachment as Kl, TrimmedNonEmptyString as Km, PreviewAutomationUnavailableError as Kn, BUILT_IN_BROWSER_PROFILES as Ko, DEFAULT_MODEL as Kp, OrchestratorMcpCreateThreadsInput as Kr, OrchestrationV2CheckpointScopeJson as Ks, getStreamSchemas as Kt, isPersistedFile as Ku, computerUseJevStepCode as L, resolveProjectProviderInstanceEnabled as La, isKnownOrchestrationV2EventType as Lc, basicAuth as Ld, ORCHESTRATION_PROTOCOL_QUERY_PARAM as Lf, ServerProvider as Li, VcsProcessTimeoutError as Ll, ProviderTurnId as Lm, PreviewAutomationSetColorSchemeInput as Ln, LOCAL_DEVICE_HOST_LABEL as Lo, AcpRegistryListProvidersResult as Lp, AgentAssetId as Lr, toRouterPath as Ls, DesignStylesRequest as Lt, HttpServerRequest as Lu, ComputerUseHostRegistration as M, makeProviderSettingsSchema as Ma, OrchestrationV2ThreadShell as Mc, TypeId$14 as Md, isPlatformError as Mf, TextGenerationError as Mi, VcsProcessMissingExitCodeError as Ml, PortSchema as Mm, PreviewAutomationResizeResult as Mn, DeviceToolTargetInput as Mo, Retry as Mp, OrchestrationSearchThreadsResult as Mr, RelayOkResponse as Ms, DesignRenderRequest as Mt, addUrlAttributes as Mu, ComputerUseHostReport as N, providerInstanceConfigEnabledFlag as Na, OrchestrationV2TurnItem as Nc, inspect as Nd, systemError as Nf, VcsListRefsInput as Ni, VcsProcessOutputLimitError as Nl, PositiveInt as Nm, PreviewAutomationResultTooLargeError as Nn, DeviceToolUnavailableError as No, decode as Np, OrchestrationThreadSearchSource as Nr, RelayProtectedError as Ns, DesignSelection as Nt, appendPreResponseHandlerUnsafe as Nu, COMPUTER_USE_JEV_TAKE_CODE as O, ServerSettingsPatch as Oa, OrchestrationV2SubagentJson as Oc, filterStatusOk as Od, make$16 as Of, PROJECT_CLONE_ERROR_MAX_LENGTH as Oi, SourceControlProviderKind as Ol, MessageId as Om, PreviewAutomationRecordingTransferError as On, DeviceToolListResult as Oo, isWithHeadersValue as Op, P4_PROJECT_FILE_NAME as Or, RelayManagedEndpointOrigin as Os, DesignLibraryManifest as Ot, compression as Ou, ComputerUseHostResponse as P, requiredScopesForProjectMutation as Pa, OrchestrationV2TurnItemJson as Pc, schemaBodyJson as Pd, make$17 as Pf, VcsListRefsResult as Pi, VcsProcessOutputReadError as Pl, ProjectId as Pm, PreviewAutomationScrollInput as Pn, DeviceToolVersions as Po, decodeSchema as Pp, AGENT_ASSET_TOTAL_MAX_BYTES as Pr, annotations as Ps, DesignStatusReceipt as Pt, requestPreResponseHandlers as Pu, SecretRequestError as Q, PreviewViewportSetting as Qa, ProjectScript as Qc, setHeader$1 as Qd, AuthMcpRegistrationError as Qf, ProviderSetupError as Qi, getProviderAttachmentLimitError as Ql, fromRecordUnsafe as Qm, ReviewDiffFileStat as Qn, DesktopAppActivationResponse as Qo, ModelCapabilities as Qp, OrchestratorMcpFailure as Qr, OrchestrationV2DispatchCommandError as Qs, UsageReadError as Qt, Path as Qu, CLIENT_GUARDED_RPC_SCOPES as R, resolveProviderInstanceEnabled as Ra, isOrchestrationV2WorkActive as Rc, bearerToken as Rd, ThreadEnvMode as Rf, ServerProviderCompatibilityStatus as Ri, VcsRepositoryDetectionError as Rl, RawEventId as Rm, PreviewAutomationSetColorSchemeResult as Rn, deviceToolInstallMessage as Ro, AcpRegistryListSessionsResult as Rp, AgentAssetKind as Rr, AUTO_WORKSPACE_NOTICE_TITLE as Rs, DesignValidateReceipt as Rt, ParsedSearchParams as Ru, anumber as S, GitHubHost as Sa, OrchestrationV2SearchThreadError as Sc, setStatus as Sd, text$1 as Sf, ScheduledTaskWebhookDeliveryId as Si, pullRequestHostOf as Sl, ContextHandoffId as Sm, PreviewAutomationPressInput as Sn, DeviceNotFoundError as So, getStatusSuccessSchema as Sp, AgentSessionImportProjectNotFoundError as Sr, RelayApi as Ss, DesignHandoffReceipt as St, serve as Su, randomBytes as T, ResponseStreamingMode as Ta, OrchestrationV2StopWorkflowInput as Tc, uint8Array as Td, FileSystem as Tf, OrchestrationDispatchCommandError as Ti, SourceControlCloneRepositoryInput as Tl, EnvironmentId as Tm, PreviewAutomationRecordingDesktopUpdateRequiredError as Tn, DevicePlatformUnavailableError as To, isStreamSchema$1 as Tp, AgentSessionSource as Tr, RelayEnvironmentLinkChallengeResponse as Ts, DesignImportTokensRequest as Tt, addressFormattedWith as Tu, WsMcpRegistryProviderSignInCompleteRpc as U, PREVIEW_URL_MAX_LENGTH as Ua, ToolActivityNativeAppReference as Uc, bodyText as Ud, AuthClientMetadataDeviceType as Uf, isProviderTextGenerationCapable as Ui, OrchestrationGetTurnDiffResult as Ul, ScheduledTaskId as Um, PreviewAutomationTargetNotEditableError as Un, ThreadDecision as Uo, resolveOfficialAcpRegistryIconUrl as Up, ThreadMetadataMcpUpdateInput as Ur, OrchestrationV2AppThread as Us, isWrapper as Ut, toURL as Uu, WS_METHODS as V, FILL_PREVIEW_VIEWPORT as Va, orchestrationV2RunWorkStartedAt as Vc, bodyJsonUnsafe as Vd, AuthAccessTokenType as Vf, environmentThemeFileHasColors as Vi, OrchestrationGetFullThreadDiffError as Vl, RunId as Vm, PreviewAutomationTabNotFoundError as Vn, DecisionInput as Vo, AcpRegistryProbeResult as Vp, AgentAssetWriteInput as Vr, ORCHESTRATION_V2_WS_METHODS as Vs, ServerClient as Vt, schemaHeaders as Vu, WsMcpRegistryProviderSignInStartRpc as W, PREVIEW_VIEWPORT_PRESET_IDS as Wa, UsageLimitSourceError as Wc, bodyUrlParams as Wd, AuthDiagnosticsReadScope as Wf, isProviderWorkspaceSnapshotCurrent as Wi, ChatAttachment as Wl, SecretRef as Wm, PreviewAutomationTimeoutError as Wn, ThreadDecisionsReadError as Wo, ANTIGRAVITY_DEFAULT_MODEL as Wp, ThreadMetadataMcpUpdateResult as Wr, OrchestrationV2AppThreadJson as Ws, make$1 as Wt, MultipartError as Wu, WsSelfImproveSubscribeThreadFindingsRpc as X, PreviewStreamHostSetup as Xa, ProjectMutationError as Xc, put$1 as Xd, AuthMcpApprovalError as Xf, ExternalLauncherUnsupportedEditorError as Xi, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as Xl, empty$3 as Xm, SERVER_BROWSER_AUTOMATION_CLIENT_ID as Xn, resolveBrowserProfiles as Xo, MODEL_SLUG_ALIASES_BY_PROVIDER as Xp, OrchestratorMcpDeleteScheduledTaskInput as Xr, OrchestrationV2ConversationMessage as Xs, WorktreeMcpHandoffResult as Xt, decodeField as Xu, WsSelfImproveDismissFindingsRpc as Y, PreviewSessionLookupError as Ya, ProjectMutation as Yc, prependUrl as Yd, AuthGrantScope as Yf, ExternalLauncherUnknownEditorError as Yi, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as Yl, CurrentRedactedNames as Ym, PreviewAutomationWaitForInput as Yn, findBrowserProfile as Yo, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as Yp, OrchestratorMcpDelegateTaskResult as Yr, OrchestrationV2ContextTransferJson as Ys, WorktreeMcpHandoffInput as Yt, toPersisted as Yu, WsSubscribeThreadDecisionsRpc as Z, PreviewTabId as Za, ProjectReadFileError as Zc, setBody$1 as Zd, AuthMcpClientAccess as Zf, ExternalLauncherUnsupportedTargetError as Zi, PersistChatAttachmentsError as Zl, fromInput as Zm, McpAppRequestError as Zn, DesktopAppActivationErrorCode as Zo, MUSE_DEFAULT_MODEL as Zp, OrchestratorMcpDeleteScheduledTaskResult as Zr, OrchestrationV2ConversationMessageJson as Zs, WorktreeMcpStatusResult as Zt, make$8 as Zu, sha512 as _, DATABASE_COMPACTION_RECOMMENDED_BYTES as _a, OrchestrationV2RunAttemptJson as _c, redirect as _d, layerWeak as _f, OrchestratorMcpThreadWaitResult as _i, PullRequestOperationError as _l, ClientDeviceType as _m, PreviewAutomationInvalidSelectorError as _n, supportsProviderMcpSignIn as _o, asUint8Array as _p, AttachmentCreateUploadUrlInput as _r, EnvironmentRequestInvalidError as _s, DesignSubscribeRequest as _t, add$1 as _u, documentContentDigest as a, TerminalNotRunningError as aa, OrchestrationV2GetShellSnapshotError as ac, causeResponse as ad, HttpClientErrorSchema as af, OrchestratorMcpTaskCancelInput as ai, DEFAULT_RUNTIME_MODE as al, isProviderDriverKind as am, PREVIEW_AUTOMATION_V1_OPERATIONS as an, ResolvedKeybindingRule as ao, AuthRelayWriteScope as ap, AssetPreviewTypeValidationError as ar, EnvironmentAuthenticatedAuth as as, SelfImproveFindings as at, reflect as au, aexists as b, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as ba, OrchestrationV2RuntimeRequest as bc, setHeader as bd, raw$1 as bf, ScheduledTask as bi, PullRequestSummary as bl, ClientWebDeployment as bm, PreviewAutomationNoAvailableHostError as bn, DeviceEasAccountError as bo, getResponseEncodingSchema as bp, AttachmentUploadSigningKeyError as br, connectReachabilityHelpUrl as bs, DesignGuideReceipt as bt, params as bu, parseDesign as c, TerminalResizeError as ca, OrchestrationV2ProviderFailure as cc, HttpPlatform as cd, TransportError as cf, OrchestratorMcpThreadInterruptInput as ci, ProviderInteractionMode as cl, ReviewCommentContextRecord as cm, PreviewAutomationClientDisconnectedError as cn, McpRegistryRpcError as co, AuthStandardClientScopes as cp, AssetProjectFaviconResolutionError as cr, EnvironmentHttpApi as cs, SelfImproveResult as ct, getErrorSchemas as cu, reviewState as d, AntigravitySettings as da, OrchestrationV2ProviderSession as dc, file as dd, TypeId$17 as df, OrchestratorMcpThreadListResult as di, RuntimeMode as dl, AssistantCitation as dm, PreviewAutomationDialogInput as dn, McpServerRuntimeState as do, EnvironmentAuthorizationError as dp, AssetWorkspaceAssetNotFoundError as dr, EnvironmentHttpConflictError as ds, UserInputRankError as dt, patch as du, DEFAULT_TERMINAL_ID as ea, OrchestrationV2DispatchRejectionReason as ec, ClientAbort$1 as ed, setUrl as ef, merge as eh, OrchestratorMcpListScheduledTasksResult as ei, ProjectSearchEntriesError as el, PROVIDER_DISPLAY_NAMES as em, DesktopTelemetryControlMessage as en, value as eo, AuthOrchestrationOperateScope as ep, ReviewDiffPreviewSourceKind as er, DesktopBrowserEvent as es, WORKTREE_SETUP_STAGE_ORDER as et, Service$1 as eu, selectLayoutItems as f, BackgroundActivityProfile as fa, OrchestrationV2ProviderSessionJson as fc, html as fd, ignore as ff, OrchestratorMcpThreadReadInput as fi, ThreadLinkedPullRequest as fl, AuthSessionId as fm, PreviewAutomationDragInput as fn, McpServerTransport as fo, ServerAuthSessionMethod as fp, AssetWorkspaceContextNotFoundError as fr, EnvironmentHttpForbiddenError as fs, DesignHumanApplyRequest as ft, post as fu, sha384 as g, CompressMode as ga, OrchestrationV2ProviderTurnJson as gc, raw as gd, layer$2 as gf, OrchestratorMcpThreadWaitInput as gi, PullRequestLinkedThreadsResult as gl, ClientConnectionMethod as gm, PreviewAutomationHoverInput as gn, resolveRegistryEntryEnabled as go, StreamSse as gp, AssetWorkspaceRootNormalizationError as gr, EnvironmentOperationForbiddenError as gs, DesignServiceError as gt, RouteContext as gu, sha256$1 as h, CodexSettings as ha, OrchestrationV2ProviderTurn as hc, mergeCookies as hd, report as hf, OrchestratorMcpThreadSendResult as hi, ThreadPullRequestLinkSource as hl, CheckpointScopeId as hm, PreviewAutomationExecutionError as hn, mcpProviderSupport as ho, NoContent as hp, AssetWorkspaceResolutionError as hr, EnvironmentInternalError as hs, DesignRpcGroup as ht, HttpRouter as hu, diagnostic as i, TerminalHistoryError as ia, OrchestrationV2ExecutionNodeJson as ic, ServeError as id, HttpClientError as if, fromInputUnsafe as ih, OrchestratorMcpScheduleTaskResult as ii, DEFAULT_PROVIDER_INTERACTION_MODE as il, defaultInstanceIdForDriver as im, PREVIEW_AUTOMATION_SERVER_OPERATIONS as in, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as io, AuthRelayReadScope as ip, AssetGitHubMediaUrlValidationError as ir, EnvironmentAuthInvalidError as is, SelfImproveEvidence as it, make$3 as iu, ComputerUseHost as j, makeBinaryPathSetting as ja, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as jc, MaxBodySize as jd, badArgument as jf, GitPullRequestMaterializationError as ji, VcsProcessExitError as jl, PlanId as jm, PreviewAutomationResizeInput as jn, DeviceToolScreenshotResult as jo, hasBody as jp, OrchestrationSearchThreadsInput as jr, RelayManagedEndpointRuntimeConfig as js, DesignRenderReceipt as jt, addHeaderAttributes as ju, COMPUTER_USE_MAX_OUTPUT_CHARS as k, UsageLimitSourceConfig as ka, OrchestrationV2ThreadForkSourcePoint as kc, fromWeb as kd, BadArgument as kf, GitCommandError as ki, SourceControlRepositoryError as kl, NodeId as km, PreviewAutomationRemoteUnavailableError as kn, DeviceToolOpenInput as ko, withHeaders as kp, PROJECT_FILE_BACKED_SETTINGS as kr, RelayManagedEndpointRecoveryRegistrationResponse as ks, DesignProposeReceipt as kt, isTracerDisabledUnsafe as ku, patchNode as l, TerminalSessionLookupError as la, OrchestrationV2ProviderGoal as lc, make$12 as ld, isHttpClientError as lf, OrchestratorMcpThreadInterruptResult as li, ProviderRequestKind as ll, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as lm, PreviewAutomationControlInterruptedError as ln, McpServerId as lo, AuthTerminalOperateScope as lp, AssetSigningKeyLoadError as lr, EnvironmentHttpBadRequestError as ls, SelfImproveReview as lt, getPayloadSchemas as lu, validateDesign as m, ClaudeSettings as ma, OrchestrationV2ProviderThreadJson as mc, jsonUnsafe as md, layer$1 as mf, OrchestratorMcpThreadSendInput as mi, ThreadPullRequestLink as ml, CheckpointRef as mm, PreviewAutomationEvaluateInput as mn, RESERVED_MCP_SERVER_NAME as mo, authScopeResponse as mp, AssetWorkspacePathValidationError as mr, EnvironmentHttpUnauthorizedError as ms, DesignListRequest as mt, normalize as mu, canonicalSerialize as n, TerminalCwdNotFoundError as na, OrchestrationV2DomainEventJson as nc, RequestParseError as nd, make$15 as nf, set as nh, OrchestratorMcpRequestSecretResult as ni, ProjectWriteFileError as nl, ProviderInstanceId as nm, ResourceMonitorEvent as nn, KeybindingsConfig as no, AuthPreviewOperateScope as np, AssetAttachmentNotFoundError as nr, DesktopBackendBootstrap as ns, SelfImproveDecision as nt, make$2 as nu, fileHash as o, TerminalProviderEnvironmentError as oa, OrchestrationV2GetThreadProjectionError as oc, symbol$1 as od, InvalidUrlError as of, OrchestratorMcpTaskCancelResult as oi, ProviderApprovalDecision as ol, ComposerContextRecord as om, PREVIEW_RECORDING_STOP_TIMEOUT_MS as on, SCRIPT_RUN_COMMAND_PATTERN as oo, AuthSettingsWriteScope as op, AssetProjectFaviconInspectionError as or, EnvironmentAuthenticatedPrincipal as os, SelfImproveLabel as ot, del as ou, semanticDiff as p, BackgroundActivityProfileSelection as pa, OrchestrationV2ProviderThread as pc, isHttpServerResponse as pd, isIgnored as pf, OrchestratorMcpThreadReadResult as pi, ThreadPullRequestKey as pl, CheckpointId as pm, PreviewAutomationError as pn, PluginId as po, authScopeRequiredResponse as pp, AssetWorkspaceContextResolutionError as pr, EnvironmentHttpInternalServerError as ps, DesignListReceipt as pt, put as pu, WsMcpRegistryProviderSignOutRpc as q, PreviewInvalidUrlError as qa, ProjectCreatePayload as qc, make$14 as qd, AuthFilesystemReadScope as qf, ExternalLauncherCommandNotFoundError as qi, ChatImageAttachment as ql, TrimmedString as qm, PreviewAutomationUnsupportedClientError as qn, DEFAULT_BROWSER_PROFILE_ID as qo, DEFAULT_MODEL_BY_PROVIDER as qp, OrchestratorMcpCreateThreadsResult as qr, OrchestrationV2ContextHandoffJson as qs, isStreamSchema as qt, limitsServices as qu, computeLayout as r, TerminalCwdStatError as ra, OrchestrationV2ExecutionNode as rc, ResponseError as rd, DecodeError as rf, bytes as rh, OrchestratorMcpScheduleTaskInput as ri, StoredProjectIcon as rl, ProviderInstanceMutation as rm, McpCapabilityUnavailableError as rn, KeybindingsConfigError as ro, AuthProvidersManageScope as rp, AssetCreateUrlInput as rr, RelayClientInstallFailedError as rs, SelfImproveError as rt, getSlotParseOptions as ru, isConfinedRelativePath as s, TerminalProviderInstanceNotFoundError as sa, OrchestrationV2PlanArtifact as sc, toResponse as sd, StatusCodeError as sf, OrchestratorMcpTaskStatusInput as si, ProviderApprovalOption as sl, OrchestrationMessageContext as sm, PreviewAutomationClickInput as sn, THREAD_JUMP_KEYBINDING_COMMANDS as so, AuthSourceControlWriteScope as sp, AssetProjectFaviconNotFoundError as sr, EnvironmentCloudEndpointUnavailableError as ss, SelfImproveRequest as st, get as su, buildIndexes as t, TerminalCwdNotDirectoryError as ta, OrchestrationV2DomainEvent as tc, HttpServerError as td, setUrlParams as tf, remove as th, OrchestratorMcpRequestSecretInput as ti, ProjectUpdatePayload as tl, ProviderDriverKind as tm, ResourceMonitorCommand as tn, KeybindingRule as to, AuthOrchestrationReadScope as tp, ATTACHMENT_UPLOAD_URL_TTL_MS as tr, DESKTOP_UPDATE_RESTART_MARKER_FILE as ts, Service as tt, isSecurity as tu, resolveValue as u, TerminalWriteError as ua, OrchestrationV2ProviderRetry as uc, empty as ud, CurrentErrorReporters as uf, OrchestratorMcpThreadListInput as ui, ProviderUserInputAnswers as ul, ASSISTANT_CITATION_MAX_TEXT_LENGTH as um, PreviewAutomationControlReason as un, McpServerName as uo, AuthTerminalReadScope as up, AssetWorkspaceAssetInspectionError as ur, EnvironmentHttpCommonError as us, SelfImproveReviewers as ut, getSuccessSchemas as uu, Hash as v, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as va, OrchestrationV2RunJson as vc, removeHeader as vd, isHttpBody as vf, OrchestratorMcpUpdateScheduledTaskInput as vi, PullRequestStack as vl, ClientOs as vm, PreviewAutomationMalformedResponseError as vn, DeviceActionUnavailableError as vo, getPayloadEncoding as vp, AttachmentCreateUploadUrlResult as vr, EnvironmentResourceNotFoundError as vs, DesignApplyReceipt as vt, cors as vu, concatBytes as w, ProjectSettingsOverrides as wa, OrchestrationV2StopWorkflowError as wc, text as wd, urlParams$1 as wf, ApplicationProjectEvent as wi, resolvePullRequestAuthorFilter as wl, DpopFailureReason as wm, PreviewAutomationRecordingDeadlineExpiredError as wn, DevicePlatformAvailability as wo, isNoContent as wp, AgentSessionScanError as wr, RelayCloudMintCredentialProofPayload as ws, DesignImportTokensReceipt as wt, HttpServer as wu, ahash as x, DEFAULT_SERVER_SETTINGS as xa, OrchestrationV2RuntimeRequestJson as xc, setHeaders as xd, stream$1 as xf, ScheduledTaskError as xi, PullRequestUnavailableError as xl, CommandId as xm, PreviewAutomationOpenInput as xn, DeviceHostUnavailableError as xo, getStatusErrorSchema as xp, AgentSessionImportProjectChangedError as xr, formatConnectReachable as xs, DesignGuideRequest as xt, route as xu, abytes as y, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as ya, OrchestrationV2RunStatus as yc, setBody as yd, jsonUnsafe$1 as yf, MIN_SCHEDULED_TASK_INTERVAL_MS as yi, PullRequestState as yl, ClientSurface as ym, PreviewAutomationNavigateInput as yn, DeviceBootError as yo, getResponseEncoding as yp, AttachmentDeleteInput as yr, EnvironmentScopeRequiredError as ys, DesignApplyRequest as yt, middleware as yu, clientRpcRequiredScopes as z, secretSetting as za, isProviderNativeSubagentThread as zc, bodyFormData as zd, AuthAccessReadScope as zf, ServerProviderUpdateError as zi, VcsUnsupportedOperationError as zl, RpcClientId as zm, PreviewAutomationSnapshot as zn, DECISION_MODELS as zo, AcpRegistryOperationError as zp, AgentAssetListFilter as zr, AUTO_WORKSPACE_UNDECIDED_REASON as zs, DesignValidateRequest as zt, TypeId$8 as zu };
|
|
31889
31889
|
|
|
31890
|
-
//# sourceMappingURL=runtime-
|
|
31890
|
+
//# sourceMappingURL=runtime-EqYv-lrV.mjs.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./react-DH3P2YXY.js";import{t as n}from"./jsx-runtime-BnjsACtP.js";import{t as r}from"./FieldControl-7KI8YfqD.js";var i=e(t()),a=e(n()),o=i.forwardRef(function(e,t){return(0,a.jsx)(r,{ref:t,...e})});export{o as t};
|
|
2
|
-
//# sourceMappingURL=Input-rVh9fuLP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./O65XPQGZ-BH6EzDhm.js";export{e as flowchart};
|