@p4code/cli 0.9.12 → 0.9.13
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-D9zhTalS.mjs → binCli-D22yxtxv.mjs} +273 -36
- package/dist/client/.vite/manifest.json +2046 -2046
- package/dist/client/assets/{2NI2N5EU-DOvURDwM.js → 2NI2N5EU-DBKJSvEQ.js} +2 -2
- package/dist/client/assets/{4UO7MD6I-CArKQR6u.js → 4UO7MD6I-1JuY3zN7.js} +2 -2
- package/dist/client/assets/{5B3SVYGG-D3yJKYTq.js → 5B3SVYGG-CwgmePuE.js} +2 -2
- package/dist/client/assets/{5GK6JWQ2-C7D6qJvm.js → 5GK6JWQ2-D9VJsozU.js} +2 -2
- package/dist/client/assets/{5N7A7DKN-DDTV444t.js → 5N7A7DKN-CFgZoUw5.js} +2 -2
- package/dist/client/assets/{5OC2THR4-CYaAiBA5.js → 5OC2THR4-Cx6keXWX.js} +2 -2
- package/dist/client/assets/{5S6HY5KT-jYzQX9YI.js → 5S6HY5KT-Ce1reKKv.js} +2 -2
- package/dist/client/assets/{6IMQ5BUJ-CZSZgyOb.js → 6IMQ5BUJ-D7X0q9kf.js} +2 -2
- package/dist/client/assets/{6OLKWJ4F-D_TpeHsd.js → 6OLKWJ4F-YLfMA9aH.js} +2 -2
- package/dist/client/assets/{74OO7NKP-VJq-BY7c.js → 74OO7NKP-Wm5pZPTC.js} +2 -2
- package/dist/client/assets/{75O6YZUN-BCik3Y9V.js → 75O6YZUN-D2He6_fp.js} +2 -2
- package/dist/client/assets/{77XECAW3-Ce_-nZaY.js → 77XECAW3-CV_JLSeU.js} +2 -2
- package/dist/client/assets/{ABYRPUBD-C1hL61qL.js → ABYRPUBD-D0xOVN1A.js} +2 -2
- package/dist/client/assets/AlertDialogRoot-DaczVYX9.js +2 -0
- package/dist/client/assets/{AnimatedHeight-DEeywxgS.js → AnimatedHeight-yuTG4G03.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-835o12nS.js → AuthSurfaceShell-CCBOJP5G.js} +2 -2
- package/dist/client/assets/{BB2UYUI2-DlIE2g50.js → BB2UYUI2-BdXGRPif.js} +2 -2
- package/dist/client/assets/{BUM34MOA-D9NQPxww.js → BUM34MOA-isqGnSvm.js} +2 -2
- package/dist/client/assets/{CEQABKGZ-BsiY6pPC.js → CEQABKGZ-DE0PWXRq.js} +2 -2
- package/dist/client/assets/{CXAC5362-t7YfF0UQ.js → CXAC5362-0Zr5tv4C.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-C3xHekTe.js → ChatGptUsageButton-w6RkBCUH.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-Cw9bEYxG.js → ChatMarkdown-CFUfXlYp.js} +5 -5
- package/dist/client/assets/{CheckboxIndicator-XdXpYxXy.js → CheckboxIndicator-lkbFKbE7.js} +2 -2
- package/dist/client/assets/{ClippedText-C-unQqBz.js → ClippedText-Bf8FSQkX.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-Bl5OcEqH.js → CodexSetupSection.logic-SHExnMKR.js} +2 -2
- package/dist/client/assets/{ComboboxClear-CBRGIQSm.js → ComboboxClear-B0HJXjbz.js} +2 -2
- package/dist/client/assets/{ComboboxGroupLabel-DVAwRoGV.js → ComboboxGroupLabel-CMc5xUrd.js} +2 -2
- package/dist/client/assets/{CommandBlock-D6NTupaO.js → CommandBlock-CluJmhVo.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-BqLNVkse.js → ComposerPromptEditor-DR1WsmjD.js} +4 -4
- package/dist/client/assets/{CompositeRoot-DBS-Yo_S.js → CompositeRoot-BMHKb-nN.js} +2 -2
- package/dist/client/assets/{ConnectAgentSurface-TBgGDnVI.js → ConnectAgentSurface-CNWdh9ck.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-CR_qWdCU.js → ConnectionStatusDot-CpmZ8NE5.js} +2 -2
- package/dist/client/assets/{DRLTVNUE-DkTzG_pM.js → DRLTVNUE-Dttc5MrD.js} +2 -2
- package/dist/client/assets/{DYY6UVD2-BBRUtn6A.js → DYY6UVD2-DTrZAR1D.js} +2 -2
- package/dist/client/assets/{DevicePanel-BS7y97f_.js → DevicePanel-CRFuAv_j.js} +2 -2
- package/dist/client/assets/{DeviceSetup-TIKLCkls.js → DeviceSetup-DRzepax4.js} +2 -2
- package/dist/client/assets/{DialogTitle-DzoEjZ6h.js → DialogTitle-pLX9Mw1n.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-y1CrEDvy.js → DiffCommentAnnotation-6V9nI3Cm.js} +2 -2
- package/dist/client/assets/{DiffFileTree-BM7RDTEn.js → DiffFileTree-CBEjDul5.js} +2 -2
- package/dist/client/assets/{DiffPanel-CAK_DAYa.js → DiffPanel-CM5Rvb_z.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider-D2t5zRbN.js → DiffWorkerPoolProvider-f4-YQsHo.js} +2 -2
- package/dist/client/assets/{EmbeddedDesign-_id3IQO6.js → EmbeddedDesign-DSEjf0KK.js} +2 -2
- package/dist/client/assets/{EnvironmentMachineIcon-oObSi9GI.js → EnvironmentMachineIcon-B6wAZat7.js} +2 -2
- package/dist/client/assets/{ExpandableText-BLwIQ2BJ.js → ExpandableText-Cjat32hh.js} +2 -2
- package/dist/client/assets/{FNOVOB4O-B469NSHv.js → FNOVOB4O-LisHSqAM.js} +2 -2
- package/dist/client/assets/{FieldControl-Btl-j-6W.js → FieldControl-DwBVFJAI.js} +2 -2
- package/dist/client/assets/{FileDiff-CGLKzg3V.js → FileDiff-Bj9kBLN2.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-DJ-LkCJ7.js → FilePreviewPanel-z6NirC2y.js} +2 -2
- package/dist/client/assets/{FoldedSettingsSection-DPTJODig.js → FoldedSettingsSection-DIlgxayr.js} +2 -2
- package/dist/client/assets/{FormContext-Be16jmaZ.js → FormContext-DcnLkh-4.js} +2 -2
- package/dist/client/assets/{HDGCDEEZ-BUMQl9WF.js → HDGCDEEZ-Bn1jLSys.js} +2 -2
- package/dist/client/assets/{HSJLKHB7-C08sJAK2.js → HSJLKHB7-CHpiqxlA.js} +2 -2
- package/dist/client/assets/{Icons-2l7Ym4KO.js → Icons-Be1TL1sN.js} +2 -2
- package/dist/client/assets/Input-BZ1XdBC0.js +2 -0
- package/dist/client/assets/JZOYTAAL-BZEjBuKj.js +1 -0
- package/dist/client/assets/{K3MD6TGW-D4RWgVJJ.js → K3MD6TGW-D5oCFPkP.js} +2 -2
- package/dist/client/assets/{K7RP3OMA-B8UDebPA.js → K7RP3OMA-ZIPW--CU.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-CCfOv-KZ.js → KeybindingsSettings.logic-Ctmq4InP.js} +2 -2
- package/dist/client/assets/{LHDIQX7Q-DwRY1EjH.js → LHDIQX7Q-BkDTNH4X.js} +2 -2
- package/dist/client/assets/{LUXOKEGN-BTGUp3oJ.js → LUXOKEGN-BMFFLlMk.js} +2 -2
- package/dist/client/assets/{LinkMachineSelect-DoHeQGoj.js → LinkMachineSelect-DGm4EDKi.js} +2 -2
- package/dist/client/assets/{MathTypeset-DZCUnfpK.js → MathTypeset-DpXMOBGY.js} +2 -2
- package/dist/client/assets/{N3JZAHOW-C-bkdj1S.js → N3JZAHOW-CV9TIlCo.js} +2 -2
- package/dist/client/assets/{NUIALGQ3-COfmKsf1.js → NUIALGQ3-WBqakHka.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-CbIPjHEJ.js → NoProjectsHero-BfU7AxbB.js} +2 -2
- package/dist/client/assets/{O65XPQGZ-BPK2EL3_.js → O65XPQGZ-CYhr2tYZ.js} +2 -2
- package/dist/client/assets/{O7XIQ6OM-qzVUZXbW.js → O7XIQ6OM-D2JMbFqc.js} +2 -2
- package/dist/client/assets/{OFQON5FD-DJVnaZou.js → OFQON5FD-B1aTfx9o.js} +2 -2
- package/dist/client/assets/{P4ConnectAccountPages-DwBbHN5Q.js → P4ConnectAccountPages-J205rNHS.js} +2 -2
- package/dist/client/assets/{P4ConnectSidebarSignIn-D7VczA30.js → P4ConnectSidebarSignIn-Bc4xlsJh.js} +2 -2
- package/dist/client/assets/{PJQHF43J-CTXALHLE.js → PJQHF43J-Dm3RMjWi.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-D8g6TJ8z.js → PanelLayoutControls-BQZYES2T.js} +4 -4
- package/dist/client/assets/{PierreEntryIcon-CUoKY0yE.js → PierreEntryIcon-CHy821MU.js} +2 -2
- package/dist/client/assets/{PopoverHandle-tRSwNzqr.js → PopoverHandle-BkzqaTB6.js} +2 -2
- package/dist/client/assets/{PreviewPanel-cYx50TF6.js → PreviewPanel-D8V2zDl4.js} +2 -2
- package/dist/client/assets/{ProjectDefaultsSettings-G0FTRG0c.js → ProjectDefaultsSettings-6UkudkKP.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-in-OyDkg.js → ProjectFavicon-LcyFYpHB.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-JCPOaZup.js → ProjectIconPickerDialog-D03-Jrsi.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-DdbScW3Y.js → ProjectMonogram-C8FlNLaU.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-CCw2XmNz.js → ProviderAuthTerminal-DMTbKboR.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-DWqfDVY9.js → ProviderModelPicker-CpWE-Lfx.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-_viBEB9w.js → ProviderSettingsForm-DrCFln8c.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-D3ntjIAg.js → PullRequestCodeTab-CjBrGNWY.js} +2 -2
- package/dist/client/assets/{RHNBAITX-BR5h8H8U.js → RHNBAITX-C7mnxleL.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-Bx9Jebzp.js → ReadOnlySourcePreview-BasbTHVd.js} +2 -2
- package/dist/client/assets/{RedactedSensitiveText-DM7Kme26.js → RedactedSensitiveText-DACYfm7e.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-BeYcnW7D.js → RenderErrorBoundary-CIVNp8r9.js} +2 -2
- package/dist/client/assets/{SLD4V6NK-DfUtjUb_.js → SLD4V6NK-BkeVs7gb.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-BcF7IiOl.js → ScheduledTasksSettings-DpYigye5.js} +2 -2
- package/dist/client/assets/{ScopedSwitch-CD9C3Bhs.js → ScopedSwitch-D1uscoF8.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-D5JbJL5g.js → ScrollAreaCorner-DBtks1xb.js} +2 -2
- package/dist/client/assets/{SecretInput-ttyiYbVY.js → SecretInput-ZW3hnCoN.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-BV1xykNQ.js → SelectScrollUpArrow-Bq-GYRhT.js} +2 -2
- package/dist/client/assets/{SelfImproveSettingsSection-Dm8NhqV7.js → SelfImproveSettingsSection-CDIhJO4P.js} +2 -2
- package/dist/client/assets/{SettingsPanels-BsyJETg8.js → SettingsPanels-Co5mks6X.js} +2 -2
- package/dist/client/assets/{SettingsPanels.logic-DS-Semyc.js → SettingsPanels.logic-H5v8FTnu.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice--a-aNSRR.js → SettingsScopeNotice-gFtgpybO.js} +2 -2
- package/dist/client/assets/{SidebarStageBackdrop-ntSLLOvm.js → SidebarStageBackdrop-DSuAw8Ob.js} +2 -2
- package/dist/client/assets/{T3PCR2KE-C5JeZecU.js → T3PCR2KE-D6MHoseG.js} +2 -2
- package/dist/client/assets/{TKWO2OVW-B11aaxW8.js → TKWO2OVW-gZK7dLQZ.js} +2 -2
- package/dist/client/assets/{TSHNXIZL-2800Jt5F.js → TSHNXIZL-BKUmF3Cu.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-CTXEQSgi.js → ThemeEditorPanel-lI_9CbBH.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-DIUp50A3.js → ThreadTerminalDrawer-CD3plt2C.js} +2 -2
- package/dist/client/assets/{TooltipViewport-rDmof6w5.js → TooltipViewport-Be_gbUW1.js} +2 -2
- package/dist/client/assets/{UQJE5E4I-BG1U9EIM.js → UQJE5E4I-D6av033t.js} +2 -2
- package/dist/client/assets/{USNYFO5S-d4iGw5HU.js → USNYFO5S-Cy6sDMEU.js} +2 -2
- package/dist/client/assets/{Virtualizer-CzClYBap.js → Virtualizer-B_IsUzcr.js} +2 -2
- package/dist/client/assets/{WEVWDWVA-V2MwjUCO.js → WEVWDWVA-Cq1fZcng.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-Dpau2BKr.js → WorkspaceBreadcrumb-DbQW7iNE.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-C3u06BW-.js → WorkspacePageContainer-BxI-x0oV.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-MBEFb20_.js → WorkspacePageHeader-Bc_F6Uog.js} +2 -2
- package/dist/client/assets/{X5RFHQXM-D_mIa6o9.js → X5RFHQXM-DdtKPA-W.js} +2 -2
- package/dist/client/assets/{X62E3GBT-Cwvyi_iR.js → X62E3GBT-C7OjB5pB.js} +2 -2
- package/dist/client/assets/{XBNEOJTC-sfA1U_fe.js → XBNEOJTC-_Tbl2Kwh.js} +2 -2
- package/dist/client/assets/{YHV2MVVZ-CZoP6AAo.js → YHV2MVVZ-CA4YS5f4.js} +2 -2
- package/dist/client/assets/{YURCZMG2-DYo6rqon.js → YURCZMG2-DSnhUUsH.js} +2 -2
- package/dist/client/assets/{YVG2LODB-D8sTsTwc.js → YVG2LODB-D-qFsH5t.js} +2 -2
- package/dist/client/assets/_chat-Cnc6rxt6.js +47 -0
- package/dist/client/assets/{_chat.design-Nh4vxHDS.js → _chat.design-SX7SShjI.js} +2 -2
- package/dist/client/assets/{_chat.index-YNITFXX3.js → _chat.index-Bz1lJLpv.js} +2 -2
- package/dist/client/assets/{_chat.new-B16PAbQN.js → _chat.new-BEqc5oJc.js} +2 -2
- package/dist/client/assets/{_chat.pull-requests-DEHC0db5.js → _chat.pull-requests-A3IwVYWs.js} +2 -2
- package/dist/client/assets/{alert-UH7IbYie.js → alert-BOVMKHDy.js} +2 -2
- package/dist/client/assets/{alert-dialog-D3mCT6Vy.js → alert-dialog-Du3fYY3I.js} +2 -2
- package/dist/client/assets/{assetUrls-BNjjSBLP.js → assetUrls-CYjvy6P4.js} +2 -2
- package/dist/client/assets/{assets-CrCgj2yM.js → assets-JgE2I_Ix.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-CW_ylkPy.js → browserHistoryStore-CdncPjG8.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-Dlnk6CC2.js → browserLinkTarget-Bf9H9UVe.js} +2 -2
- package/dist/client/assets/{checkbox-Bqcsvpsf.js → checkbox-d50pgAVe.js} +2 -2
- package/dist/client/assets/{color-picker-DAcpRn0k.js → color-picker-zcQshxaE.js} +2 -2
- package/dist/client/assets/{combobox-CoLp0McG.js → combobox-BrCd1kH5.js} +2 -2
- package/dist/client/assets/{command-cKnhWwdw.js → command-DFkhX6wm.js} +2 -2
- package/dist/client/assets/{connect-rbXRyqde.js → connect-DkH09d_M.js} +2 -2
- package/dist/client/assets/connect-agent-DJHm1Ubj.js +2 -0
- package/dist/client/assets/{design-BJbd-4a9.js → design-DrpehYJf.js} +2 -2
- package/dist/client/assets/{device-BqGYZxfg.js → device-Nh7DArH7.js} +2 -2
- package/dist/client/assets/{dialog-CjB1WWbE.js → dialog-BpR3dRVS.js} +2 -2
- package/dist/client/assets/{diffRendering-JsGpyVJ1.js → diffRendering-BuOJdnZ8.js} +2 -2
- package/dist/client/assets/{dist-D4GndTOF.js → dist-CMJL98Oz.js} +3 -3
- package/dist/client/assets/{draft-input-1ySc55QI.js → draft-input-CzfhM72Z.js} +2 -2
- package/dist/client/assets/{duoViewer-DvlUJy5A.js → duoViewer-ChrCWcjO.js} +2 -2
- package/dist/client/assets/{dynamic-B8PD-aHj.js → dynamic-CVt07u2H.js} +2 -2
- package/dist/client/assets/{embeddedScripts-ByokzHX1.js → embeddedScripts-BWqMWwOU.js} +2 -2
- package/dist/client/assets/{empty-CMnFXg8W.js → empty-Cy-8us9l.js} +2 -2
- package/dist/client/assets/{entities-CTJ1ube2.js → entities-aKdRyfsJ.js} +2 -2
- package/dist/client/assets/{fileLinks-lUzqPrjb.js → fileLinks-BgHa8yE4.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-B6sjoSXU.js → fileTreeExpansion-CBn1SzSX.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-Bt5vSiss.js → getDiffFileInput-IQ1TDM4E.js} +2 -2
- package/dist/client/assets/{guideRunStore-DFawhaj_.js → guideRunStore-DfNfJUIu.js} +2 -2
- package/dist/client/assets/{htmlRender-DJLbbd4O.js → htmlRender-lwQ3HyqS.js} +2 -2
- package/dist/client/assets/{index-CxLeDuff.js → index-BXvrSYK3.js} +3 -3
- package/dist/client/assets/{input-CSgYZgdv.js → input-FUjAUGXY.js} +2 -2
- package/dist/client/assets/{input-group-a-sGQMiV.js → input-group-BdZ_CKvG.js} +2 -2
- package/dist/client/assets/{kbd-D3uRVBMx.js → kbd-CGgmav-Q.js} +2 -2
- package/dist/client/assets/{keybindings-B9X0TLvu.js → keybindings-DuCyi9aT.js} +2 -2
- package/dist/client/assets/{lazy-C_hQh3dP.js → lazy-Bs2SFpYS.js} +4 -4
- package/dist/client/assets/{lazyRouteComponent-GMfIUG8o.js → lazyRouteComponent-CYNRqeNP.js} +2 -2
- package/dist/client/assets/{link-BmkuqfGQ.js → link-DW1IQk5s.js} +2 -2
- package/dist/client/assets/{linkedPrompt-BNxBPorU.js → linkedPrompt-yo2xi4Z8.js} +2 -2
- package/dist/client/assets/{main-DIEsHSIy.js → main-C0z861OK.js} +7 -7
- package/dist/client/assets/{mediaReference-CVS-Yvam.js → mediaReference-BQ9J-tjl.js} +2 -2
- package/dist/client/assets/{mediaSource-DQsJoeCH.js → mediaSource-BLpxwEw3.js} +2 -2
- package/dist/client/assets/{number-field-Bw2BDGyn.js → number-field-Pve745k3.js} +2 -2
- package/dist/client/assets/{observeResize-Br7VOcTc.js → observeResize-CZuDzlcZ.js} +2 -2
- package/dist/client/assets/{onboarding-D6kvYnD1.js → onboarding-CE8pzS12.js} +2 -2
- package/dist/client/assets/{openFileInPreview-52PEk4wb.js → openFileInPreview-Dns9tPaB.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-B1qTw64E.js → p4ProjectFile-jwYvYDE-.js} +2 -2
- package/dist/client/assets/{pair-Das8G2kV.js → pair-OPslYcM9.js} +2 -2
- package/dist/client/assets/{pendingSendStore-B1MXHU-Y.js → pendingSendStore-CLwMM17y.js} +2 -2
- package/dist/client/assets/{phoneViewer-iWL9Ocv_.js → phoneViewer-CkTxyA9N.js} +2 -2
- package/dist/client/assets/{pierre-icons-CyZxWykW.js → pierre-icons-DY8ZeGCr.js} +2 -2
- package/dist/client/assets/{popover-Cpc0L75h.js → popover-hYAmvSJj.js} +2 -2
- package/dist/client/assets/{preview-DRZGCh-w.js → preview-CI9HEdfV.js} +2 -2
- package/dist/client/assets/{preview-CDQ5ceMi.js → preview-YhZE3kRt.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-Dd2KfilQ.js → previewMiniPlayerStore-DUPe1gGI.js} +2 -2
- package/dist/client/assets/{primary-YDhFfOF8.js → primary-BlS2rEKe.js} +2 -2
- package/dist/client/assets/{primaryCloudLinkState-kvnCGEBC.js → primaryCloudLinkState-CyPf4N0F.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-DvEcN38K.js → projectFilesQueryState-BdWJ4WwI.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-lOSI5meb.js → projectScriptEditor-C0FBhCbn.js} +2 -2
- package/dist/client/assets/{providerSkills-CRmME5qO.js → providerSkills-Ca_7EbAx.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-CXEtJJcn.js → pullRequestDetail.logic-DYx7bEwE.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-D8Koo716.js → pullRequestIcons-csprKuju.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-CpLjLBJR.js → pullRequestReviewStore-_uEYgfaW.js} +2 -2
- package/dist/client/assets/{pullRequests-DKqH-UAm.js → pullRequests-B85p5Xnw.js} +2 -2
- package/dist/client/assets/{queries-eqpX-CHf.js → queries-B0FvRKmk.js} +2 -2
- package/dist/client/assets/{query-D5Kb9u_z.js → query-B2_Td0ad.js} +2 -2
- package/dist/client/assets/{radio-group-DpxVKrML.js → radio-group-IyWHDcIP.js} +2 -2
- package/dist/client/assets/{renderScheduler-B1rJHKDM.js → renderScheduler-DR2WAtIH.js} +2 -2
- package/dist/client/assets/{rightPanelStore-DQ1c3-Lt.js → rightPanelStore-rZSIb-5z.js} +2 -2
- package/dist/client/assets/{runtime-DCbEdU32.js → runtime-BK2Lh1vB.js} +3 -3
- package/dist/client/assets/{runtime-DeVKKxNz.js → runtime-BVmDVuJ-.js} +3 -3
- package/dist/client/assets/{runtimeModeConfig-CZCsG9b4.js → runtimeModeConfig-DFxXOIlV.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-gN3n5v-e.js → scheduledTasksSettings.logic-W9AQpJk4.js} +2 -2
- package/dist/client/assets/{scroll-area-C9Jh_pl0.js → scroll-area-Cf7uLi_s.js} +2 -2
- package/dist/client/assets/{select-oshTwPZM.js → select-vBkqTMKL.js} +2 -2
- package/dist/client/assets/selfImproveFindings-4GGN9cRm.js +2 -0
- package/dist/client/assets/{server-Ct4-BCZx.js → server-DwkxciXh.js} +2 -2
- package/dist/client/assets/{session-Bb7JWdWO.js → session-BIwsf8Q4.js} +2 -2
- package/dist/client/assets/{session-logic-D0Wb0fc2.js → session-logic-D8FbVFDm.js} +2 -2
- package/dist/client/assets/{settings-CQtFOh_t.js → settings-C58Y7hMl.js} +2 -2
- package/dist/client/assets/{settings.appearance-CqHPJVJ2.js → settings.appearance-C9ZmuG-n.js} +2 -2
- package/dist/client/assets/settings.archived-BxqS4kuW.js +2 -0
- package/dist/client/assets/{settings.computer-use-CDrWkvkD.js → settings.computer-use-CeIs-8zf.js} +2 -2
- package/dist/client/assets/{settings.connections-CHXX5kH0.js → settings.connections-CEr4PdrJ.js} +2 -2
- package/dist/client/assets/{settings.data-controls-Bd79f82M.js → settings.data-controls-BbzJxjBi.js} +2 -2
- package/dist/client/assets/{settings.decisions-B-i781li.js → settings.decisions-DagsCV4K.js} +2 -2
- package/dist/client/assets/{settings.designs-DpX9xXFH.js → settings.designs-DEThhuEj.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-Du6_cMwQ.js → settings.diagnostics-DdsecwWn.js} +2 -2
- package/dist/client/assets/{settings.general-6bgZAoM7.js → settings.general-RgU1jNmB.js} +2 -2
- package/dist/client/assets/{settings.integrations-Ct8ruO3E.js → settings.integrations-CO-aLXSC.js} +2 -2
- package/dist/client/assets/{settings.keybindings-DzB2I9OY.js → settings.keybindings-CU8fBQaI.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-C-RX63iR.js → settings.open-source-licenses-rG8Neftl.js} +2 -2
- package/dist/client/assets/{settings.plugins-CqpVlMrk.js → settings.plugins-Dr0VpcPy.js} +2 -2
- package/dist/client/assets/{settings.projects-DosfFxrs.js → settings.projects-hxwk8_7r.js} +3 -3
- package/dist/client/assets/{settings.providers-DKgzTRpw.js → settings.providers-D5-Kj1jY.js} +3 -3
- package/dist/client/assets/{settings.scheduled-tasks-Ca4XxyAg.js → settings.scheduled-tasks-DwUd14Xj.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-BkSOnsJ3.js → settings.snap-shot-CTMJRtJe.js} +2 -2
- package/dist/client/assets/{settings.source-control-uZ0ges0j.js → settings.source-control-BHD5KE8W.js} +2 -2
- package/dist/client/assets/{settings.storage-BkURtSS0.js → settings.storage-Bhd9ragP.js} +2 -2
- package/dist/client/assets/{settingsLayout-krWuVpsF.js → settingsLayout-WhjsCfB6.js} +2 -2
- package/dist/client/assets/{sidebar-PSpwc3Zu.js → sidebar-O52WtiJv.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-D02jVAL6.js → sidebarProjectGrouping-BYVdJp_w.js} +2 -2
- package/dist/client/assets/{skeleton-DIPW_H7N.js → skeleton-PlPtYr_f.js} +2 -2
- package/dist/client/assets/{sourceControl-B9aMMjp2.js → sourceControl-BkJeQRrv.js} +2 -2
- package/dist/client/assets/{sourceControlClients-XtdH6kjx.js → sourceControlClients-CtMx7u86.js} +2 -2
- package/dist/client/assets/{spinner-BeAnBYcY.js → spinner-BZ5ohCyO.js} +2 -2
- package/dist/client/assets/{terminal-links-CYEBYRi6.js → terminal-links-UI2UJn0y.js} +2 -2
- package/dist/client/assets/{terminalSessions-C2k3TT8f.js → terminalSessions-C1xOLG3i.js} +2 -2
- package/dist/client/assets/{textarea-DBTtAB2q.js → textarea-DIg__-Gi.js} +2 -2
- package/dist/client/assets/{themePalette-Uk7bx8zb.js → themePalette-BMlBfFUx.js} +2 -2
- package/dist/client/assets/{toast-Dkj3G-UM.js → toast-BZ96uuab.js} +2 -2
- package/dist/client/assets/{toggle-DYYe3Gb8.js → toggle-DJ8KOwn5.js} +2 -2
- package/dist/client/assets/{toggle-group-hQw0fxkT.js → toggle-group-2e3XGJdx.js} +2 -2
- package/dist/client/assets/{tooltip-BeHmtauD.js → tooltip-BPiLl1TV.js} +2 -2
- package/dist/client/assets/{uiStateStore-Cd96D_GT.js → uiStateStore-4i21PZUL.js} +2 -2
- package/dist/client/assets/{usage-ChIGOn5O.js → usage-uuNPbJve.js} +2 -2
- package/dist/client/assets/{usageAccess-DTKEwCKL.js → usageAccess-CsMv6eC9.js} +2 -2
- package/dist/client/assets/{usageFormat-D1mf8I5d.js → usageFormat-DhefL58S.js} +2 -2
- package/dist/client/assets/{usageShortcuts-C0jTsdR4.js → usageShortcuts-CREc0FBr.js} +2 -2
- package/dist/client/assets/{use-atom-command-D4TeQyNE.js → use-atom-command-CdV5BZYB.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-Cod6bMX5.js → useAriaLabelledBy-CYRfRdAq.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-CJ3yJ6tD.js → useHandleNewThread-BsnMrEPr.js} +2 -2
- package/dist/client/assets/{useLocation-DNv7cb59.js → useLocation-DHd-KBb-.js} +2 -2
- package/dist/client/assets/{useNavigate-PfhtEZbl.js → useNavigate-AZUCIeU4.js} +2 -2
- package/dist/client/assets/{useNavigateBack-DUje4FcE.js → useNavigateBack-C7DkQuEE.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-evKe5nuS.js → useP4ConnectAuthPrompt-u1GHgwlc.js} +2 -2
- package/dist/client/assets/{useParams-CzC0HF0R.js → useParams-rbhXoEw9.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-BUDWSxLm.js → usePermissionStatus-DHzE_VGG.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-Cxt5UQ0d.js → usePullRequestActions-Cv12eqOn.js} +2 -2
- package/dist/client/assets/{useRegisterFieldControl-B4MJ2axN.js → useRegisterFieldControl-D4FG4i3_.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-ujoqpGuE.js → useScopedModelAvailability-D6cbxQLl.js} +2 -2
- package/dist/client/assets/{useSettings-Cg0O7Ek7.js → useSettings-B09a3zie.js} +2 -2
- package/dist/client/assets/utils-C5GGWTfe.js +37 -0
- package/dist/client/assets/{vcsRefInvalidation-B5V_HlR9.js → vcsRefInvalidation-B66hRx4g.js} +2 -2
- package/dist/client/assets/{welcome-DqtsIjdN.js → welcome-D2-tjFV3.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/{renderer-CmxAcIV2.mjs → renderer-CuqsXHrO.mjs} +2 -2
- package/dist/{runtime-CAtWuL14.mjs → runtime-CWPUW_8Y.mjs} +24 -7
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-C6RQ4Ag-.js +0 -2
- package/dist/client/assets/Input--rtZ2Jji.js +0 -2
- package/dist/client/assets/JZOYTAAL-PmkwTnld.js +0 -1
- package/dist/client/assets/_chat-DNoJniWX.js +0 -47
- package/dist/client/assets/connect-agent-CsvW078q.js +0 -2
- package/dist/client/assets/selfImproveFindings-DUmfxmCO.js +0 -2
- package/dist/client/assets/settings.archived-DDtPGPcJ.js +0 -2
- package/dist/client/assets/utils-CcBaVOX5.js +0 -37
package/dist/client/assets/{vcsRefInvalidation-B5V_HlR9.js → vcsRefInvalidation-B66hRx4g.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./jsx-runtime-DJeoFXNw.js";import{$_ as t,BS as n,CC as r,GC as i,Hw as a,Hx as o,IC as s,Jx as c,KC as l,Lx as u,MS as d,NC as f,RC as p,Rx as m,SE as h,SS as g,WC as _,Yc as v,_s as y,as as b,bC as x,cs as S,fS as C,lS as ee,mE as te,nS as ne,pT as w,qC as T,ss as E,vv as D,zx as O}from"./utils-
|
|
2
|
-
//# sourceMappingURL=vcsRefInvalidation-
|
|
1
|
+
import{n as e}from"./jsx-runtime-DJeoFXNw.js";import{$_ as t,BS as n,CC as r,GC as i,Hw as a,Hx as o,IC as s,Jx as c,KC as l,Lx as u,MS as d,NC as f,RC as p,Rx as m,SE as h,SS as g,WC as _,Yc as v,_s as y,as as b,bC as x,cs as S,fS as C,lS as ee,mE as te,nS as ne,pT as w,qC as T,ss as E,vv as D,zx as O}from"./utils-C5GGWTfe.js";import{N as k,_t as A,k as j,qt as M}from"./runtime-BVmDVuJ-.js";import{$ as N,X as P,et as F,it as I,nt as L,tt as R}from"./entities-aKdRyfsJ.js";import{t as z}from"./runtime-BK2Lh1vB.js";import{at as re}from"./useSettings-B09a3zie.js";import{t as B}from"./session-BIwsf8Q4.js";import{n as V}from"./query-B2_Td0ad.js";var H=e(),U=`~effect/PartitionedSemaphore`,W=e=>{let t=Math.max(0,e.permits);if(!Number.isFinite(t))return{[U]:U,capacity:t,available:x(t),take:()=>s,release:()=>x(t),withPermits:()=>e=>e,withPermit:()=>e=>e,withPermitsIfAvailable:()=>e=>O(e)};let c=t,u=0,d=_(),m=d[Symbol.iterator](),g=!1,v=0,y=e=>{if(e>0&&(v+=e),!g){g=!0;try{for(;v>0&&u>0;){let e=m.next();if(e.done&&(m=d[Symbol.iterator](),e=m.next(),e.done))break;let t=e.value[1].values().next().value;t!==void 0&&(--t.permits,--u,--v,t.permits===0&&t.resume())}}finally{g=!1}}return u===0&&(c=Math.min(t,c+v),v=0),c},b=(e,f)=>f<=0?s:t<f?n:p(t=>c>=f?(c-=f,w(t,e=>{a(e)&&y(f)}),s):o(t=>{if(c>=f){t(b(e,f));return}let n=f-c;c>0&&(c=0),u+=n;let a=te(i(d,e),()=>{let t=new Set;return T(d,e,t),t}),o={permits:n,resume:()=>{p(),t(s)}},p=()=>{a.delete(o)&&a.size===0&&l(d,e)};return a.add(o),r(()=>{p(),u-=o.permits,y(f-o.permits)})})),S=(e,t)=>n=>{if(t<=0)return n;let i=b(e,t);return f(e=>ee(e(i),()=>ne(e(n),r(()=>{y(t)}))))},C=e=>e<=0?!0:t<e||c<e?!1:(c-=e,!0);return{[U]:U,capacity:t,available:r(()=>c),take:b,release:e=>r(()=>y(e)),withPermits:S,withPermit:e=>S(e,1),withPermitsIfAvailable:e=>t=>e<=0?O(t):p(n=>C(e)?(w(n,()=>{y(e)}),O(t)):x(h()))}};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:D(e.session,t),isPending:!1,error:null}}function K(e,t=``,n=!0){let r=n&&I(e,t),i=r?N(e):``;return{isBrowsing:r,directoryPath:i,filterQuery:r&&!L(e)?F(e):``,parentPath:r?R(i):null,canBrowseUp:r&&P(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:v.filesystemBrowse})}}var ie=X(z);function ae(e){let t=(0,H.c)(7),n;t[0]===e?n=t[1]:(n=e===null?null:B.sessionStateAtom(e),t[0]=e,t[1]=n);let r=V(n),i=re(e),a=i.presentation?.connection??null,o;return t[2]!==i.isReady||t[3]!==r.data||t[4]!==r.error||t[5]!==a?(o=G({isCatalogReady:i.isReady,connection:a,session:r.data,sessionError:r.error}),t[2]=i.isReady,t[3]=r.data,t[4]=r.error,t[5]=a,t[6]=o):o=t[6],o}var oe=j(),se={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.cwd])},ce=b(e=>S({revision:0,persistedCacheReadable:!0}).pipe(E,y(`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=C(`VcsRefsState.invalidateCached`)(function*(e,t){let n=yield*M;yield*$(t.environmentId,g(function*(){le(e,t,yield*n.clearVcsRefs(t.environmentId).pipe(m(!0),c(e=>d(`Could not remove invalidated cached Git refs.`).pipe(u({environmentId:t.environmentId,cwd:t.cwd,...A(e)}),m(!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-B66hRx4g.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Ap as i,Fd as a,H_ as o,Hy as s,Is as c,Ms as l,Ob as u,Rd as d,Rm as f,Uy as p,W_ as m,Xy as h,Yc as g,_E as _,cs as v,eb as y,fr as b,fv as x,hE as S,l as C,md as w,nc as T,ns as E,o as D,op as O,rs as k,rv as A,t as j,tc as M,tf as N}from"./utils-CcBaVOX5.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-DeVKKxNz.js";import{N as B,Q as V,W as H,u as U}from"./entities-CTJ1ube2.js";import{t as W}from"./runtime-DCbEdU32.js";import{t as G}from"./spinner-BeAnBYcY.js";import{t as ee}from"./useNavigate-PfhtEZbl.js";import{t as K}from"./useLocation-DNv7cb59.js";import{i as q}from"./toast-Dkj3G-UM.js";import{D as J,E as te}from"./useSettings-Cg0O7Ek7.js";import{f as Y}from"./server-Ct4-BCZx.js";import{i as ne,n as X,o as re}from"./session-Bb7JWdWO.js";import{t as ie}from"./query-D5Kb9u_z.js";import{t as ae}from"./use-atom-command-D4TeQyNE.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-BeHmtauD.js";import{t as ue}from"./input-CSgYZgdv.js";import{t as de}from"./scroll-area-C9Jh_pl0.js";import{r as fe}from"./dist-D4GndTOF.js";import{t as pe}from"./dialog-CjB1WWbE.js";import{t as me}from"./useP4ConnectAuthPrompt-evKe5nuS.js";import{t as he}from"./CommandBlock-D6NTupaO.js";import{t as ge}from"./checkbox-Bqcsvpsf.js";import{t as _e}from"./ThreadTerminalDrawer-DIUp50A3.js";import{i as ve}from"./terminalSessions-C2k3TT8f.js";import{n as ye}from"./useHandleNewThread-CJ3yJ6tD.js";import{r as be,t as xe}from"./alert-UH7IbYie.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-C3xHekTe.js";import{t as we}from"./onboarding-D6kvYnD1.js";import{_ as Te,ai as Ee,an as De,do as Oe,eo as ke,f as Ae,fo as je,ho as Me,lo as Ne,mo as Pe,on as Fe,po as Ie,un as Le,uo as Re}from"./main-DIEsHSIy.js";import{t as ze}from"./NoProjectsHero-CbIPjHEJ.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-DS-Semyc.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-Bl5OcEqH.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);a===void 0?t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt}):(a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)}))}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=V(r,n.path);return i===void 0?null:i.id}function nt(e,t,n){for(let n of e){let e=t.get(n);if(e!==void 0)return e}for(let t of e){let e=n.get(t);if(e!==void 0)return e}}function rt(e){if(/^[A-Za-z]:[\\/]+$/.test(e)||/^[\\/]{2}[^\\/]+[\\/][^\\/]+[\\/]*$/.test(e))return{name:e,parent:``};let t=e.replace(/[\\/]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.length===0?{name:e,parent:``}:n<0?{name:t,parent:``}:{name:t.slice(n+1),parent:t.slice(0,n+1)}}function it(e,t){return JSON.stringify([e,t])}var at=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)(k),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:S(l(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],E(r)}var $=e(r(),1),ut=[],dt=h.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=Le(),[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=J();(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&&(q.close(h.current),h.current=null);let a=r().then(async()=>(h.current!==null&&(q.close(h.current),h.current=null),await t(e),n?q.add({type:`warning`,title:`Some history was not imported`,description:n,timeout:0}):i>0&&q.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=q.add(e):q.update(h.current,e),!1}).finally(()=>{m.current===a&&(m.current=null)});return m.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Oe,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(Ne,{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)(je,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Re,{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)(Te,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:a,onSelectionChange:o,onToggleEnvironment:s,onContinue:c,onPaired:l}=e,{environments:u}=te(),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=z(),t[0]=f):f=t[0];let p=f,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>!p||!st(e),t[1]=m):m=t[1];let h=u.filter(m),[g,_]=(0,Z.useState)(r),[v,y]=(0,Z.useState)(!1),{ready:x,skippedIds:S}=ct(u,a),C=u.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 k=h.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),h.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:a.has(e.environmentId),onCheckedChange:t=>{let n=new Set(a);t?n.add(e.environmentId):n.delete(e.environmentId),o(n)}}),(0,$.jsx)(i,{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`:Fe(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]!==s||t[7]!==a?(A=p?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:v,selectedIds:a,onToggleEnvironment:s}):null,t[4]=n,t[5]=v,t[6]=s,t[7]=a,t[8]=A):A=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(b,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(O,{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)(d,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==v||t[17]!==L?(R=(0,$.jsxs)(Me,{disabled:v,render:M,children:[N,P,L]}),t[16]=v,t[17]=L,t[18]=R):R=t[18];let B;t[19]===l?B=t[20]:(B=e=>{_(!1),l(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=l,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:y,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)(Ie,{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=C.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,C.join(`, `),`. You can set`,` `,C.length===1?`it`:`them`,` up later from Settings.`]}):null,G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsxs)(`p`,{className:`min-w-0 text-xs leading-relaxed text-muted-foreground`,children:[`P4 Code collects anonymous usage data to help us improve it. To read more about how your data is used and how to opt out, see our`,` `,(0,$.jsx)(`a`,{className:`underline underline-offset-2 hover:text-foreground`,href:Be,target:`_blank`,rel:`noreferrer noopener`,children:`privacy policy`}),`.`]}),t[31]=G):G=t[31];let ee=!r,K=!x||v,q;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,$.jsx)(w,{className:`size-3.5`}),t[32]=q):q=t[32];let J;t[33]!==c||t[34]!==ee||t[35]!==K?(J=(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)(b,{className:`shrink-0 self-end`,ref:T,autoFocus:ee,disabled:K,onClick:c,children:[`Continue`,q]})]}),t[33]=c,t[34]=ee,t[35]=K,t[36]=J):J=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==J||t[40]!==E||t[41]!==D||t[42]!==k?(Y=(0,$.jsxs)($.Fragment,{children:[E,D,k,U,W,J]}),t[37]=U,t[38]=W,t[39]=J,t[40]=E,t[41]=D,t[42]=k,t[43]=Y):Y=t[43],Y}function gt(e){return e.label}function _t(e){let t=(0,Q.c)(36),{autoSelectedComputers:n,disabled:r,selectedIds:i,onToggleEnvironment:a}=e,{environments:o}=te(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={treatPendingAsSignedOut:!1},t[0]=s):s=t[0];let{isLoaded:c,isSignedIn:l}=fe(s),{openAuthPrompt:u}=me(),[f,p]=(0,Z.useState)(!0),[m,h]=(0,Z.useState)(!1),g;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>h(!0),t[1]=g):g=t[1];let _=g,v=f&&!!l&&m,y=r||!c,x;t[2]!==l||t[3]!==u?(x=e=>{l||(e.preventDefault(),p(!0),u())},t[2]=l,t[3]=u,t[4]=x):x=t[4];let S,C,w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(b,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),C=(0,$.jsx)(N,{className:`size-4 text-muted-foreground`}),w=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=S,t[6]=C,t[7]=w):(S=t[5],C=t[6],w=t[7]);let T=c?l?m?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=f&&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)(d,{className:O}),t[12]=O,t[13]=k);let A;t[14]!==E||t[15]!==k||t[16]!==y||t[17]!==x?(A=(0,$.jsxs)(Me,{disabled:y,onClick:x,render:S,children:[C,w,E,k]}),t[14]=E,t[15]=k,t[16]=y,t[17]=x,t[18]=A):A=t[18];let M;t[19]!==n||t[20]!==o||t[21]!==l||t[22]!==a||t[23]!==i?(M=l?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:o,showSavedEnvironments:!0,onDiscoveryReady:_,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]=M):M=t[24];let P;t[25]===M?P=t[26]:(P=(0,$.jsx)(`div`,{className:`mb-3 space-y-1.5`,children:M}),t[25]=M,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]!==A||t[33]!==R||t[34]!==v?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Ie,{open:v,onOpenChange:p,children:[A,R]})}),t[32]=A,t[33]=R,t[34]=v,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)(``),f=(0,Z.useRef)(!0),p,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>(f.current=!0,()=>{f.current=!1}),m=[],t[1]=p,t[2]=m):(p=t[1],m=t[2]),(0,Z.useEffect)(p,m);let h;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(h=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!f.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(L(e))return;let t=R(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=h):h=t[8];let g=h,_;t[9]===g?_=t[10]:(_=e=>{e.preventDefault(),g()},t[9]=g,t[10]=_);let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=v):v=t[11];let y=l.length>0,x=l?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>c(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==y||t[16]!==x?(C=(0,$.jsxs)(`div`,{children:[v,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":y,"aria-describedby":x,className:`mt-2`,size:`lg`,autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,nativeInput:!0,readOnly:n,placeholder:`https://your-server:5230/pair#token=…`,value:s,onChange:S,onKeyDown:yt})]}),t[13]=n,t[14]=s,t[15]=y,t[16]=x,t[17]=C):C=t[17];let w;t[18]===l?w=t[19]:(w=l?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:l})}):null,t[18]=l,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Me,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(d,{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)(b,{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)(Ie,{children:[O,M]}),t[31]=O,t[32]=N);let P;return t[33]!==C||t[34]!==w||t[35]!==N||t[36]!==_?(P=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:_,children:[C,w,N]})}),t[33]=C,t[34]=w,t[35]=N,t[36]=_,t[37]=P):P=t[37],P}function yt(e){e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()}var bt=[`codex`,`claudeAgent`];function xt(e){let t=(0,Q.c)(13),{environmentIds:n,onContinue:r}=e,{environments:i}=te(),a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,$.jsx)(St,{environmentId:e,machineLabel:i.find(t=>t.environmentId===e)?.label??`Computer`},e),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;t[5]===a?o=t[6]:(o=(0,$.jsx)(de,{scrollFade:!0,className:`mt-5 h-auto max-h-[min(32rem,55dvh)]`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:a})}),t[5]=a,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(w,{className:`size-3.5`}),t[7]=s):s=t[7];let c;t[8]===r?c=t[9]:(c=(0,$.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,$.jsxs)(b,{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)(qt,{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=E(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=E(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,x),_,v;t[5]!==n||t[6]!==s?(_=()=>{s({environmentId:n,input:{}})},v=[n,s],t[5]=n,t[6]=s,t[7]=_,t[8]=v):(_=t[7],v=t[8]),(0,Z.useEffect)(_,v);let y;t[9]===a?y=t[10]:(y=Ue(a),t[9]=a,t[10]=y);let S=y,C,w,T,D;if(t[11]!==S||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]!==S||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:S.get(e),instanceId:S.get(e)?.instanceId}]},t[23]=S,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?D=t[29]:(D=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=D),t[30]===g?C=t[31]:(C=g?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=g,t[31]=C),w=`space-y-1.5`;let o;t[32]!==g||t[33]!==m||t[34]!==n||t[35]!==l||t[36]!==u?.driver?(o=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&l!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:l,createdAccount:i===m?.instanceId?m:null,onAutoStartConsumed:()=>h(wt),terminalOpen:u?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:u?.driver===t,terminalAvailable:l!==null&&g,onOpenTerminal:()=>{r!==void 0&&l!==null&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},t)},t[32]=g,t[33]=m,t[34]=n,t[35]=l,t[36]=u?.driver,t[37]=o):o=t[37],T=i.map(o),t[11]=S,t[12]=g,t[13]=m,t[14]=n,t[15]=r,t[16]=a,t[17]=l,t[18]=u?.driver,t[19]=C,t[20]=w,t[21]=T,t[22]=D}else C=t[19],w=t[20],T=t[21],D=t[22];let O;t[38]!==w||t[39]!==T?(O=(0,$.jsx)(`div`,{className:w,children:T}),t[38]=w,t[39]=T,t[40]=O):O=t[40];let k;t[41]===a?k=t[42]:(k=a?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(b,{size:`xs`,variant:`ghost-muted`,onClick:()=>p(!0),children:`Connect another ChatGPT account`})}):null,t[41]=a,t[42]=k);let A;t[43]!==f||t[44]!==n?(A=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]=A):A=t[45];let j;t[46]!==n||t[47]!==s||t[48]!==u?(j=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]=j):j=t[49];let M;return t[50]!==C||t[51]!==O||t[52]!==k||t[53]!==A||t[54]!==j||t[55]!==D?(M=(0,$.jsxs)(`section`,{children:[D,C,O,k,A,j]}),t[50]=C,t[51]=O,t[52]=k,t[53]=A,t[54]=j,t[55]=D,t[56]=M):M=t[56],M}function Ct(e){return e.driver===`codex`&&Ge(e)===`ready`}function wt(e){return e?{...e,autoStart:!1}:null}function Tt(e){let t=(0,Q.c)(28),{createdAccount:n,onAutoStartConsumed:r,environmentId:i,provider:a,serverConfig:s,terminalOpen:c,onOpenTerminal:l}=e,u=ne(i,x),d=ae(Y.updateSettings,`Codex setup settings`),f;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(f=n?.instanceId??a?.instanceId??m(o.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=f):f=t[2];let p=f,h=s.settings,g;t[3]!==n||t[4]!==p||t[5]!==h.providerInstances?(g=h.providerInstances[p]??{driver:o.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=p,t[5]=h.providerInstances,t[6]=g):g=t[6];let _=g,v;t[7]===_.config?v=t[8]:(v=Je(_.config),t[7]=_.config,t[8]=v);let y=v,b=y===`existing`&&_.config!==null&&typeof _.config==`object`&&`setupMode`in _.config&&_.config.setupMode===`existing`,S;t[9]!==i||t[10]!==_||t[11]!==p||t[12]!==h||t[13]!==d?(S=e=>{d({environmentId:i,input:{patch:Ve({settings:h,instanceId:p,instance:{..._,enabled:!0,config:{..._.config!==null&&typeof _.config==`object`?_.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=_,t[11]=p,t[12]=h,t[13]=d,t[14]=S):S=t[14];let C=S,w;return t[15]!==u||t[16]!==C||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==b||t[21]!==p||t[22]!==y||t[23]!==r||t[24]!==l||t[25]!==a||t[26]!==c?(w=b?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:c,terminalAvailable:u,onOpenTerminal:l}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:p,provider:a,mode:y,enabled:a?.enabled??!0,onModeChange:C}),t[15]=u,t[16]=C,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=b,t[21]=p,t[22]=y,t[23]=r,t[24]=l,t[25]=a,t[26]=c,t[27]=w):w=t[27],w}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:i,terminalAvailable:s,onOpenTerminal:c}=e,l;t[0]===n?l=t[1]:(l=Se.get(o.make(n)),t[0]=n,t[1]=l);let u=l,d=r?.displayName||(n===`claudeAgent`?`Claude Code`:u?.label??n),p;t[2]===r?p=t[3]:(p=qe(r),t[2]=r,t[3]=p);let m=p,h;t[4]===r?h=t[5]:(h=Ge(r),t[4]=r,t[5]=h);let g=h,_;t[6]===n?_=t[7]:(_=o.make(n),t[6]=n,t[7]=_);let v;t[8]!==d||t[9]!==_?(v=(0,$.jsx)(Ce,{driverKind:_,displayName:d,iconClassName:`size-5`}),t[8]=d,t[9]=_,t[10]=v):v=t[10];let y;t[11]===d?y=t[12]:(y=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:d}),t[11]=d,t[12]=y);let x=g===`ready`?`Ready to code.`:m.headline,S=g!==`ready`&&m.detail?` · ${m.detail}`:``,C;t[13]!==x||t[14]!==S?(C=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[x,S]}),t[13]=x,t[14]=S,t[15]=C):C=t[15];let w;t[16]!==y||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[y,C]}),t[16]=y,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==c||t[20]!==g||t[21]!==m||t[22]!==s||t[23]!==i?(T=(0,$.jsx)(`div`,{className:`shrink-0`,children:g===`ready`?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,$.jsx)(a,{className:`size-3.5`}),`Ready`]}):g===`checking`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):g===`disabled`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Disabled`}):g===`attention`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:m.headline}):(0,$.jsxs)(b,{size:`xs`,variant:`ghost`,onClick:c,disabled:i||!s,children:[(0,$.jsx)(f,{className:`size-3.5`}),g===`signIn`?`Sign in`:`Install`]})}),t[19]=c,t[20]=g,t[21]=m,t[22]=s,t[23]=i,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==v?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[v,w,T]}),t[25]=w,t[26]=T,t[27]=v,t[28]=E):E=t[28],E}function Dt(e){let t=(0,Q.c)(60),{session:n,onClose:r}=e,{command:i,cwd:a,driver:o,environmentId:s,keybindings:l,providerInstanceId:u}=n,d=ne(s,x),[f]=c(ke,!1,y),p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(p={reportFailure:!1},t[0]=p):p=t[0];let m=ae(ve.open,p),h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h={reportFailure:!1},t[1]=h):h=t[1];let g=ae(ve.write,h),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[2]=_):_=t[2];let v=ae(ve.close,_),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let w=(0,Z.useRef)(S),E=(0,Z.useRef)(0),D=(0,Z.useRef)(null),O;t[4]===o?O=t[5]:(O=()=>`onboarding-${o}-${C()}`,t[4]=o,t[5]=O);let[k]=(0,Z.useState)(O),A;t[6]===s?A=t[7]:(A=T(s,dt),t[6]=s,t[7]=A);let j=A,[M,N]=(0,Z.useState)(0),[P,F]=(0,Z.useState)(`preparing`),I=P===`ready`||P===`writeFailed`,L;t[8]!==v||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==m||t[13]!==u||t[14]!==k||t[15]!==g?(L=()=>{let e=E.current+1;return E.current=e,D.current=e,F(`preparing`),w.current=w.current.then(async()=>{if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`openFailed`);return}if((await m({environmentId:s,input:{threadId:dt,terminalId:k,cwd:a,providerInstanceId:u}}))._tag!==`Success`){D.current===e&&F(`openFailed`);return}if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`writeFailed`);return}let t=await g({environmentId:s,input:{threadId:dt,terminalId:k,data:i}});D.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{D.current===e&&(D.current=null),w.current=w.current.then(async()=>{X(s,`terminal:operate`)&&await v({environmentId:s,input:{threadId:dt,terminalId:k,deleteHistory:!0}})})}},t[8]=v,t[9]=i,t[10]=a,t[11]=s,t[12]=m,t[13]=u,t[14]=k,t[15]=g,t[16]=L):L=t[16];let R;t[17]!==v||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==m||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==g?(R=[v,i,a,s,m,u,M,k,g],t[17]=v,t[18]=i,t[19]=a,t[20]=s,t[21]=m,t[22]=u,t[23]=M,t[24]=k,t[25]=g,t[26]=R):R=t[26],(0,Z.useEffect)(L,R);let z;t[27]!==d||t[28]!==i||t[29]!==P?(z=d?P===`writeFailed`?(0,$.jsxs)($.Fragment,{children:[`Run `,(0,$.jsx)(`code`,{className:`rounded bg-muted px-1 font-mono`,children:i}),` in this terminal.`]}):P===`ready`?`Review the command, then press Enter to run it.`:P===`openFailed`?`Could not open the setup terminal.`:`Preparing command...`:`This connection cannot control terminals.`,t[27]=d,t[28]=i,t[29]=P,t[30]=z):z=t[30];let B;t[31]===z?B=t[32]:(B=(0,$.jsx)(`span`,{className:`text-2xs font-medium text-muted-foreground`,children:z}),t[31]=z,t[32]=B);let V;t[33]!==d||t[34]!==s||t[35]!==P?(V=P===`openFailed`?(0,$.jsx)(b,{size:`xs`,variant:`ghost`,disabled:!d,onClick:()=>{X(s,`terminal:operate`)&&N(Ot)},children:`Retry`}):null,t[33]=d,t[34]=s,t[35]=P,t[36]=V):V=t[36];let H;t[37]===r?H=t[38]:(H=(0,$.jsx)(b,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==f||t[46]!==a||t[47]!==o||t[48]!==l||t[49]!==r||t[50]!==u||t[51]!==k||t[52]!==I||t[53]!==j?(G=I?(0,$.jsx)(_e,{threadRef:j,threadId:dt,terminalId:k,terminalLabel:`Install ${o}`,cwd:a,providerInstanceId:u,advancedTypography:f,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:l}):null,t[45]=f,t[46]=a,t[47]=o,t[48]=l,t[49]=r,t[50]=u,t[51]=k,t[52]=I,t[53]=j,t[54]=G):G=t[54];let ee;t[55]===G?ee=t[56]:(ee=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=ee);let K;return t[57]!==W||t[58]!==ee?(K=(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,ee]}),t[57]=W,t[58]=ee,t[59]=K):K=t[59],K}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(75),{scans:n,isImporting:r,setIsImporting:i,onDone:a}=e,{environments:o}=te(),c=re(n,A),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={reportFailure:!1},t[0]=l):l=t[0];let u=ae(H.create,l),d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[1]=d):d=t[1];let f=ae(ot,d),[p,m]=(0,Z.useState)(null),h=(0,Z.useRef)(``),g=(0,Z.useRef)(0),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=new Map,t[2]=_):_=t[2];let v=(0,Z.useRef)(_),y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y=new Map,t[3]=y):y=t[3];let x=(0,Z.useRef)(y),S;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=[],t[4]=S):S=t[4];let C=(0,Z.useRef)(S),w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=new Map,t[5]=w):w=t[5];let T=(0,Z.useRef)(w),E=(0,Z.useRef)(0),O,k;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>(E.current+=1,()=>{E.current+=1}),k=[],t[6]=O,t[7]=k):(O=t[6],k=t[7]),(0,Z.useEffect)(O,k);let j;t[8]===n?j=t[9]:(j=Qe(n.flatMap(Rt)),t[8]=n,t[9]=j);let{available:N,recent:P}=j,F;t[10]!==P||t[11]!==p?(F=p??new Set(P.map(Lt)),t[10]=P,t[11]=p,t[12]=F):F=t[12];let I=F,R,z;if(t[13]!==N||t[14]!==I||t[15]!==c){let e;t[18]===I?e=t[19]:(e=e=>I.has(e.key),t[18]=I,t[19]=e),R=N.filter(e);let n;t[20]===c?n=t[21]:(n=e=>c.has(e.environmentId),t[20]=c,t[21]=n),z=R.every(n),t[13]=N,t[14]=I,t[15]=c,t[16]=R,t[17]=z}else R=t[16],z=t[17];let V=z,[W,ee]=(0,Z.useState)(``),K=V?W===kt?``:W:kt,q;t[22]!==a||t[23]!==i?(q=()=>{let e=nt(C.current,x.current,v.current);if(e===void 0){a(void 0,h.current,g.current);return}i(!0);let t=E.current;B(e).then(()=>e,It).then(async e=>{t===E.current&&(await a(e,h.current,g.current)||i(!1))})},t[22]=a,t[23]=i,t[24]=q):q=t[24];let J=q,Y;t[25]!==u||t[26]!==J||t[27]!==f||t[28]!==r||t[29]!==a||t[30]!==n||t[31]!==i?(Y=async e=>{if(r)return;let t=()=>e.every(Ft),o=()=>{i(!1),ee(kt)};if(!t()){o();return}if(e.length===0){a();return}i(!0),h.current=``,g.current=0,C.current=e.map(Pt);let c=E.current,l=v.current,d=T.current,p=l.size>0?e.filter(e=>l.has(e.key)).length:0,m=0,_=0,y=new Set;for(let n of e){let{environmentId:e}=n;if(c!==E.current||l!==v.current)return;if(!t()){o();return}if(l.has(n.key))continue;let r=tt(U(),e,n);if(r===null){let t=d.get(n.key);if(t===void 0){let e=D();t={projectId:e,commandId:s.make(`onboarding:project:create:${e}`)},d.set(n.key,t)}r=t.projectId;let i=await u({environmentId:e,input:{projectId:r,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(c!==E.current||l!==v.current)return;if(i._tag!==`Success`){L(i)||(d.delete(n.key),y.add(e));continue}}if(!t()){o();return}let i=await f({environmentId:e,input:{projectId:r,expectedWorkspaceRoot:n.path}});if(c!==E.current||l!==v.current)return;i._tag===`Success`?(m+=i.value.importedCount,_+=i.value.skippedCount,i.value.importedCount>0&&x.current.set(n.key,M(e,r)),i.value.skippedCount===0&&(p+=1,l.set(n.key,M(e,r)))):L(i)||(d.delete(n.key),y.add(e))}for(let e of n)y.has(e.environmentId)&&e.refresh();i(!1),g.current=m,p<e.length&&(m>0&&_>0?h.current=`Imported ${m} ${m===1?`thread`:`threads`}. ${_} ${_===1?`thread`:`threads`} could not be imported.`:_>0?h.current=`${_} ${_===1?`thread could`:`threads could`} not be imported.`:m>0?h.current=`Imported ${m} ${m===1?`thread`:`threads`}. Some thread history could not be imported.`:h.current=`Could not import thread history.`),J()},t[25]=u,t[26]=J,t[27]=f,t[28]=r,t[29]=a,t[30]=n,t[31]=i,t[32]=Y):Y=t[32];let ne=Y;if(n.every(Nt)&&n.some(Mt)){let e;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[33]=e):e=t[33];let n;t[34]===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[34]=n):n=t[34];let r;return t[35]===a?r=t[36]:(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)(b,{variant:`ghost-muted`,onClick:()=>void a(),children:`Do not import projects`})})]}),t[35]=a,t[36]=r),r}let X;t[37]!==N||t[38]!==r||t[39]!==R?(X=N.length>0?(0,$.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3 text-xs text-muted-foreground`,children:[(0,$.jsxs)(`span`,{role:`status`,children:[R.length,` of `,N.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(b,{variant:`ghost`,size:`xs`,disabled:r||R.length===N.length,onClick:()=>m(new Set(N.map(jt))),children:`Select all`}),(0,$.jsx)(b,{variant:`ghost`,size:`xs`,disabled:r||R.length===0,onClick:()=>m(new Set),children:`Select none`})]})]}):null,t[37]=N,t[38]=r,t[39]=R,t[40]=X):X=t[40];let ie;if(t[41]!==N||t[42]!==o||t[43]!==r||t[44]!==n||t[45]!==I){let e;t[47]!==N||t[48]!==o||t[49]!==r||t[50]!==n.length||t[51]!==I?(e=e=>{let t=N.filter(t=>t.environmentId===e.environmentId),i=o.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:r,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:i}):null,e.isPending&&e.data===null?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(G,{size:`md`}),`Looking for projects…`]}):e.error===null?t.length===0?(0,$.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`No existing Claude Code or Codex projects found.`}):null:(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-muted-foreground`,children:[(0,$.jsxs)(`span`,{children:[`Could not check projects. `,e.error]}),(0,$.jsx)(b,{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)(zt,{candidates:t,selectedKeys:I,onSelectionChange:m})]},e.environmentId)},t[47]=N,t[48]=o,t[49]=r,t[50]=n.length,t[51]=I,t[52]=e):e=t[52],ie=n.map(e),t[41]=N,t[42]=o,t[43]=r,t[44]=n,t[45]=I,t[46]=ie}else ie=t[46];let oe;t[53]===ie?oe=t[54]:(oe=(0,$.jsx)(de,{scrollFade:!0,className:`mt-2 h-auto max-h-80`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:ie})}),t[53]=ie,t[54]=oe);let se;t[55]===K?se=t[56]:(se=K?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:K}):null,t[55]=K,t[56]=se);let ce;t[57]!==J||t[58]!==r?(ce=(0,$.jsx)(b,{variant:`ghost-muted`,disabled:r,onClick:J,children:`Do not import projects`}),t[57]=J,t[58]=r,t[59]=ce):ce=t[59];let le=!V||r||R.length===0,ue;t[60]!==ne||t[61]!==R?(ue=()=>void ne(R),t[60]=ne,t[61]=R,t[62]=ue):ue=t[62];let fe=r?`Importing…`:`Import ${R.length} ${R.length===1?`project`:`projects`}`,pe;t[63]!==le||t[64]!==ue||t[65]!==fe?(pe=(0,$.jsx)(b,{autoFocus:!0,disabled:le,onClick:ue,children:fe}),t[63]=le,t[64]=ue,t[65]=fe,t[66]=pe):pe=t[66];let me;t[67]!==ce||t[68]!==pe?(me=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[ce,pe]}),t[67]=ce,t[68]=pe,t[69]=me):me=t[69];let he;return t[70]!==X||t[71]!==oe||t[72]!==se||t[73]!==me?(he=(0,$.jsxs)(qt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[X,oe,se,me]}),t[70]=X,t[71]=oe,t[72]=se,t[73]=me,t[74]=he):he=t[74],he}function jt(e){return e.key}function Mt(e){return e.isPending}function Nt(e){return e.data===null}function Pt(e){return e.key}function Ft(e){return X(e.environmentId,A)}function It(){}function Lt(e){return e.key}function Rt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function zt(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 f=u.length,p;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Vt,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],p=o.map(e),t[10]=o,t[11]=r,t[12]=l,t[13]=p}else p=t[13];let m;t[17]!==s||t[18]!==f||t[19]!==r||t[20]!==l?(m=s.length>0?(0,$.jsxs)(Ie,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:f===s.length,indeterminate:f>0&&f<s.length,onCheckedChange:e=>l(s.map(Bt),e===!0)}),(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(d,{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)(Gt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>l([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=f,t[19]=r,t[20]=l,t[21]=m):m=t[21];let h;return t[22]!==p||t[23]!==m?(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function Bt(e){return e.key}function Vt(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(Ut);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)(Gt,{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,f=s>0&&s<a.length,p;t[17]!==a||t[18]!==i?(p=e=>i(a,e===!0),t[17]=a,t[18]=i,t[19]=p):p=t[19];let m;t[20]!==u||t[21]!==f||t[22]!==p?(m=(0,$.jsx)(ge,{checked:u,indeterminate:f,onCheckedChange:p}),t[20]=u,t[21]=f,t[22]=p,t[23]=m):m=t[23];let h;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(d,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),t[24]=h):h=t[24];let g;t[25]===n.label?g=t[26]:(g=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:n.label}),t[25]=n.label,t[26]=g);let _;t[27]===n.candidates?_=t[28]:(_=new Set(n.candidates.flatMap(Ht)),t[27]=n.candidates,t[28]=_);let v;t[29]===_?v=t[30]:(v=[..._],t[29]=_,t[30]=v);let y;t[31]!==n.lastActiveAt||t[32]!==n.threadCount||t[33]!==v?(y=(0,$.jsx)(Kt,{sources:v,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[31]=n.lastActiveAt,t[32]=n.threadCount,t[33]=v,t[34]=y):y=t[34];let b;t[35]!==y||t[36]!==g?(b=(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[h,g,y]}),t[35]=y,t[36]=g,t[37]=b):b=t[37];let x;t[38]!==b||t[39]!==m?(x=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[m,b]}),t[38]=b,t[39]=m,t[40]=x):x=t[40];let S;if(t[41]!==n.candidates||t[42]!==i||t[43]!==r){let e;t[45]!==i||t[46]!==r?(e=e=>(0,$.jsx)(Gt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>i([e.key],t)},e.key),t[45]=i,t[46]=r,t[47]=e):e=t[47],S=n.candidates.map(e),t[41]=n.candidates,t[42]=i,t[43]=r,t[44]=S}else S=t[44];let C;t[48]===S?C=t[49]:(C=(0,$.jsx)(Pe,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Ie,{defaultOpen:!0,children:[x,C]}),t[50]=x,t[51]=C,t[52]=w):w=t[52],w}function Ht(e){return e.sources}function Ut(e){return e.key}function Wt(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 Gt(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)(Wt,{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)(Kt,{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 Kt(e){let t=(0,Q.c)(19),{sources:n,threadCount:r,lastActiveAt:i}=e,a;t[0]===i?a=t[1]:(a=i===null?null:oe(i),t[0]=i,t[1]=a);let s=a,c=s===null?``:s.suffix===null?`now`:s.value,l;t[2]===n?l=t[3]:(l=n?.includes(`claudeAgent`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Claude Code`,children:(0,$.jsx)(Ce,{driverKind:o.make(`claudeAgent`),displayName:`Claude Code`,iconClassName:`size-3`})}):null,t[2]=n,t[3]=l);let u;t[4]===l?u=t[5]:(u=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:l}),t[4]=l,t[5]=u);let d;t[6]===n?d=t[7]:(d=n?.includes(`codex`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Codex`,children:(0,$.jsx)(Ce,{driverKind:o.make(`codex`),displayName:`Codex`,iconClassName:`size-3`})}):null,t[6]=n,t[7]=d);let f;t[8]===d?f=t[9]:(f=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:d}),t[8]=d,t[9]=f);let p;t[10]===r?p=t[11]:(p=(0,$.jsx)(`span`,{className:`text-right`,children:r}),t[10]=r,t[11]=p);let m;t[12]===c?m=t[13]:(m=(0,$.jsx)(`span`,{className:`text-right whitespace-nowrap`,children:c}),t[12]=c,t[13]=m);let h;return t[14]!==u||t[15]!==f||t[16]!==p||t[17]!==m?(h=(0,$.jsxs)(`span`,{className:`ml-auto grid shrink-0 grid-cols-[1rem_1rem_2.5rem_2.25rem] items-center gap-x-1 text-xs text-muted-foreground tabular-nums`,children:[u,f,p,m]}),t[14]=u,t[15]=f,t[16]=p,t[17]=m,t[18]=h):h=t[18],h}function qt(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 Jt=u(p);function Yt(){let e=(0,Q.c)(14),{authGateState:t}=Ae.useRouteContext(),n=ee(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:Zt},e[0]=r):r=e[0];let i=K(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?_(Jt(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:Xt},e[3]=s):s=e[3];let c=K(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{u(!0),e===void 0?await n({to:`/`,replace:!0}):await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}))}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Xt(e){return e.pathname===`/welcome`}function Zt(e){return e.hash}export{Yt as component};
|
|
2
|
-
//# sourceMappingURL=welcome-
|
|
1
|
+
import{a as e,t}from"./react-BUfh6y28.js";import{n,t as r}from"./jsx-runtime-DJeoFXNw.js";import{Ap as i,Fd as a,H_ as o,Hy as s,Is as c,Ms as l,Ob as u,Rd as d,Rm as f,Uy as p,W_ as m,Xy as h,Yc as g,_E as _,cs as v,eb as y,fr as b,fv as x,hE as S,l as C,md as w,nc as T,ns as E,o as D,op as O,rs as k,rv as A,t as j,tc as M,tf as N}from"./utils-C5GGWTfe.js";import{At as P,M as F,N as I,R as L,W as R,o as z}from"./runtime-BVmDVuJ-.js";import{N as B,Q as V,W as H,u as U}from"./entities-aKdRyfsJ.js";import{t as W}from"./runtime-BK2Lh1vB.js";import{t as G}from"./spinner-BZ5ohCyO.js";import{t as ee}from"./useNavigate-AZUCIeU4.js";import{t as K}from"./useLocation-DHd-KBb-.js";import{i as q}from"./toast-BZ96uuab.js";import{D as J,E as te}from"./useSettings-B09a3zie.js";import{f as Y}from"./server-DwkxciXh.js";import{i as ne,n as X,o as re}from"./session-BIwsf8Q4.js";import{t as ie}from"./query-B2_Td0ad.js";import{t as ae}from"./use-atom-command-CdV5BZYB.js";import{a as oe}from"./timestampFormat-wac2e_Jz.js";import{a as se,n as ce,t as le}from"./tooltip-BPiLl1TV.js";import{t as ue}from"./input-FUjAUGXY.js";import{t as de}from"./scroll-area-Cf7uLi_s.js";import{r as fe}from"./dist-CMJL98Oz.js";import{t as pe}from"./dialog-BpR3dRVS.js";import{t as me}from"./useP4ConnectAuthPrompt-u1GHgwlc.js";import{t as he}from"./CommandBlock-CluJmhVo.js";import{t as ge}from"./checkbox-d50pgAVe.js";import{t as _e}from"./ThreadTerminalDrawer-CD3plt2C.js";import{i as ve}from"./terminalSessions-C1xOLG3i.js";import{n as ye}from"./useHandleNewThread-BsnMrEPr.js";import{r as be,t as xe}from"./alert-BOVMKHDy.js";import{i as Se,n as Ce}from"./ChatGptUsageButton-w6RkBCUH.js";import{t as we}from"./onboarding-CE8pzS12.js";import{_ as Te,ai as Ee,an as De,do as Oe,eo as ke,f as Ae,fo as je,ho as Me,lo as Ne,mo as Pe,on as Fe,po as Ie,un as Le,uo as Re}from"./main-C0z861OK.js";import{t as ze}from"./NoProjectsHero-BfU7AxbB.js";import{t as Be}from"./legalLinks-C4VP5hPh.js";import{r as Ve}from"./SettingsPanels.logic-H5v8FTnu.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-SHExnMKR.js";var Z=e(t(),1),Q=n(),Xe=2592e6,Ze=3;function Qe(e,t=Date.now()){let n=t-Xe;return{available:e,recent:e.filter(e=>{if(e.git===null||e.threadCount<Ze||e.lastActiveAt===null)return!1;let r=Date.parse(e.lastActiveAt);return r>=n&&r<=t})}}function $e(e,t){return e===null?t:t===null||e>t?e:t}function et(e){let t=new Map,n=[];for(let r of e){if(r.git===null){n.push(r);continue}let e=r.git??{remoteKey:null,repository:null},i=e.remoteKey===null?`path:${r.path}`:`remote:${e.remoteKey}`,a=t.get(i);a===void 0?t.set(i,{key:i,label:e.repository??r.title,repository:e.repository,candidates:[r],threadCount:r.threadCount,lastActiveAt:r.lastActiveAt}):(a.candidates.push(r),t.set(i,{...a,threadCount:a.threadCount+r.threadCount,lastActiveAt:$e(a.lastActiveAt,r.lastActiveAt)}))}return{repositories:[...t.values()].sort((e,t)=>e.lastActiveAt===t.lastActiveAt?e.label.localeCompare(t.label):e.lastActiveAt===null?1:t.lastActiveAt===null?-1:t.lastActiveAt.localeCompare(e.lastActiveAt)),other:n}}function tt(e,t,n){if(n.projectId!==void 0)return n.projectId;let r=e.filter(e=>e.environmentId===t),i=V(r,n.path);return i===void 0?null:i.id}function nt(e,t,n){for(let n of e){let e=t.get(n);if(e!==void 0)return e}for(let t of e){let e=n.get(t);if(e!==void 0)return e}}function rt(e){if(/^[A-Za-z]:[\\/]+$/.test(e)||/^[\\/]{2}[^\\/]+[\\/][^\\/]+[\\/]*$/.test(e))return{name:e,parent:``};let t=e.replace(/[\\/]+$/,``),n=Math.max(t.lastIndexOf(`/`),t.lastIndexOf(`\\`));return t.length===0?{name:e,parent:``}:n<0?{name:t,parent:``}:{name:t.slice(n+1),parent:t.slice(0,n+1)}}function it(e,t){return JSON.stringify([e,t])}var at=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)(k),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:S(l(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],E(r)}var $=e(r(),1),ut=[],dt=h.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=Le(),[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=J();(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&&(q.close(h.current),h.current=null);let a=r().then(async()=>(h.current!==null&&(q.close(h.current),h.current=null),await t(e),n?q.add({type:`warning`,title:`Some history was not imported`,description:n,timeout:0}):i>0&&q.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=q.add(e):q.update(h.current,e),!1}).finally(()=>{m.current===a&&(m.current=null)});return m.current=a,a},[r,t]);return(0,$.jsxs)(pe,{open:!0,disablePointerDismissal:!0,onOpenChange:(e,t)=>t.cancel(),children:[(0,$.jsxs)(Oe,{size:`wide`,bottomStickOnMobile:!1,showCloseButton:!1,initialFocus:()=>document.getElementById(`onboarding-pairing-url`)??!0,children:[(0,$.jsx)(Ne,{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)(je,{steps:ft,currentStep:x,isStepDisabled:e=>f||e>=x,onStepChange:e=>{f||e>x||a(e===0?`connection`:`agents`)}})}),(0,$.jsx)(Re,{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)(Te,{})]})}function ht(e){let t=(0,Q.c)(44),{autoSelectedComputers:n,expandPairingInitially:r,selectedIds:a,onSelectionChange:o,onToggleEnvironment:s,onContinue:c,onPaired:l}=e,{environments:u}=te(),f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=z(),t[0]=f):f=t[0];let p=f,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>!p||!st(e),t[1]=m):m=t[1];let h=u.filter(m),[g,_]=(0,Z.useState)(r),[v,y]=(0,Z.useState)(!1),{ready:x,skippedIds:S}=ct(u,a),C=u.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 k=h.length>0?(0,$.jsxs)(`fieldset`,{className:`mt-5 space-y-2`,children:[(0,$.jsx)(`legend`,{className:`sr-only`,children:`Computers to set up`}),h.map(e=>(0,$.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border border-border bg-background px-3 py-3`,children:[(0,$.jsx)(ge,{checked:a.has(e.environmentId),onCheckedChange:t=>{let n=new Set(a);t?n.add(e.environmentId):n.delete(e.environmentId),o(n)}}),(0,$.jsx)(i,{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`:Fe(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]!==s||t[7]!==a?(A=p?(0,$.jsx)(_t,{autoSelectedComputers:n,disabled:v,selectedIds:a,onToggleEnvironment:s}):null,t[4]=n,t[5]=v,t[6]=s,t[7]=a,t[8]=A):A=t[8];let M,N,P;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(b,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),N=(0,$.jsx)(O,{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)(d,{className:I}),t[14]=I,t[15]=L);let R;t[16]!==v||t[17]!==L?(R=(0,$.jsxs)(Me,{disabled:v,render:M,children:[N,P,L]}),t[16]=v,t[17]=L,t[18]=R):R=t[18];let B;t[19]===l?B=t[20]:(B=e=>{_(!1),l(e),requestAnimationFrame(()=>T.current?.focus())},t[19]=l,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:y,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)(Ie,{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=C.length>0?(0,$.jsxs)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:[`Not connected, so setup skips `,C.join(`, `),`. You can set`,` `,C.length===1?`it`:`them`,` up later from Settings.`]}):null,G;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,$.jsxs)(`p`,{className:`min-w-0 text-xs leading-relaxed text-muted-foreground`,children:[`P4 Code collects anonymous usage data to help us improve it. To read more about how your data is used and how to opt out, see our`,` `,(0,$.jsx)(`a`,{className:`underline underline-offset-2 hover:text-foreground`,href:Be,target:`_blank`,rel:`noreferrer noopener`,children:`privacy policy`}),`.`]}),t[31]=G):G=t[31];let ee=!r,K=!x||v,q;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,$.jsx)(w,{className:`size-3.5`}),t[32]=q):q=t[32];let J;t[33]!==c||t[34]!==ee||t[35]!==K?(J=(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)(b,{className:`shrink-0 self-end`,ref:T,autoFocus:ee,disabled:K,onClick:c,children:[`Continue`,q]})]}),t[33]=c,t[34]=ee,t[35]=K,t[36]=J):J=t[36];let Y;return t[37]!==U||t[38]!==W||t[39]!==J||t[40]!==E||t[41]!==D||t[42]!==k?(Y=(0,$.jsxs)($.Fragment,{children:[E,D,k,U,W,J]}),t[37]=U,t[38]=W,t[39]=J,t[40]=E,t[41]=D,t[42]=k,t[43]=Y):Y=t[43],Y}function gt(e){return e.label}function _t(e){let t=(0,Q.c)(36),{autoSelectedComputers:n,disabled:r,selectedIds:i,onToggleEnvironment:a}=e,{environments:o}=te(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={treatPendingAsSignedOut:!1},t[0]=s):s=t[0];let{isLoaded:c,isSignedIn:l}=fe(s),{openAuthPrompt:u}=me(),[f,p]=(0,Z.useState)(!0),[m,h]=(0,Z.useState)(!1),g;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>h(!0),t[1]=g):g=t[1];let _=g,v=f&&!!l&&m,y=r||!c,x;t[2]!==l||t[3]!==u?(x=e=>{l||(e.preventDefault(),p(!0),u())},t[2]=l,t[3]=u,t[4]=x):x=t[4];let S,C,w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(b,{variant:`ghost`,size:`sm-multiline`,className:`min-h-14 w-full justify-start`}),C=(0,$.jsx)(N,{className:`size-4 text-muted-foreground`}),w=(0,$.jsx)(`span`,{className:`flex-1 text-left`,children:`P4 Connect`}),t[5]=S,t[6]=C,t[7]=w):(S=t[5],C=t[6],w=t[7]);let T=c?l?m?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=f&&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)(d,{className:O}),t[12]=O,t[13]=k);let A;t[14]!==E||t[15]!==k||t[16]!==y||t[17]!==x?(A=(0,$.jsxs)(Me,{disabled:y,onClick:x,render:S,children:[C,w,E,k]}),t[14]=E,t[15]=k,t[16]=y,t[17]=x,t[18]=A):A=t[18];let M;t[19]!==n||t[20]!==o||t[21]!==l||t[22]!==a||t[23]!==i?(M=l?(0,$.jsx)(De,{primaryEnvironmentId:null,savedEnvironments:o,showSavedEnvironments:!0,onDiscoveryReady:_,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]=M):M=t[24];let P;t[25]===M?P=t[26]:(P=(0,$.jsx)(`div`,{className:`mb-3 space-y-1.5`,children:M}),t[25]=M,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]!==A||t[33]!==R||t[34]!==v?(z=(0,$.jsx)(`div`,{className:`rounded-lg border border-border bg-background`,children:(0,$.jsxs)(Ie,{open:v,onOpenChange:p,children:[A,R]})}),t[32]=A,t[33]=R,t[34]=v,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)(``),f=(0,Z.useRef)(!0),p,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>(f.current=!0,()=>{f.current=!1}),m=[],t[1]=p,t[2]=m):(p=t[1],m=t[2]),(0,Z.useEffect)(p,m);let h;t[3]!==o||t[4]!==n||t[5]!==i||t[6]!==s||t[7]!==r?(h=async()=>{if(n||s.trim().length===0)return;r(!0),u(``);let e=await o({pairingUrl:s.trim()});if(!f.current)return;if(r(!1),e._tag===`Success`){i(e.value);return}if(L(e))return;let t=R(e);u(t instanceof Error?t.message:`Pairing failed.`)},t[3]=o,t[4]=n,t[5]=i,t[6]=s,t[7]=r,t[8]=h):h=t[8];let g=h,_;t[9]===g?_=t[10]:(_=e=>{e.preventDefault(),g()},t[9]=g,t[10]=_);let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,$.jsx)(`label`,{className:`block text-sm text-muted-foreground`,htmlFor:`onboarding-pairing-url`,children:`Pairing link`}),t[11]=v):v=t[11];let y=l.length>0,x=l?`onboarding-pairing-error`:void 0,S;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(S=e=>c(e.currentTarget.value),t[12]=S):S=t[12];let C;t[13]!==n||t[14]!==s||t[15]!==y||t[16]!==x?(C=(0,$.jsxs)(`div`,{children:[v,(0,$.jsx)(ue,{id:`onboarding-pairing-url`,autoFocus:!0,"aria-invalid":y,"aria-describedby":x,className:`mt-2`,size:`lg`,autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,nativeInput:!0,readOnly:n,placeholder:`https://your-server:5230/pair#token=…`,value:s,onChange:S,onKeyDown:yt})]}),t[13]=n,t[14]=s,t[15]=y,t[16]=x,t[17]=C):C=t[17];let w;t[18]===l?w=t[19]:(w=l?(0,$.jsx)(xe,{id:`onboarding-pairing-error`,variant:`error`,children:(0,$.jsx)(be,{children:l})}):null,t[18]=l,t[19]=w);let T;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsxs)(Me,{type:`button`,className:`group flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground`,children:[(0,$.jsx)(d,{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)(b,{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)(Ie,{children:[O,M]}),t[31]=O,t[32]=N);let P;return t[33]!==C||t[34]!==w||t[35]!==N||t[36]!==_?(P=(0,$.jsx)($.Fragment,{children:(0,$.jsxs)(`form`,{className:`space-y-3`,onSubmit:_,children:[C,w,N]})}),t[33]=C,t[34]=w,t[35]=N,t[36]=_,t[37]=P):P=t[37],P}function yt(e){e.key===`Enter`&&(e.nativeEvent.isComposing||e.keyCode===229)&&e.preventDefault()}var bt=[`codex`,`claudeAgent`];function xt(e){let t=(0,Q.c)(13),{environmentIds:n,onContinue:r}=e,{environments:i}=te(),a;if(t[0]!==n||t[1]!==i){let e;t[3]===i?e=t[4]:(e=e=>(0,$.jsx)(St,{environmentId:e,machineLabel:i.find(t=>t.environmentId===e)?.label??`Computer`},e),t[3]=i,t[4]=e),a=n.map(e),t[0]=n,t[1]=i,t[2]=a}else a=t[2];let o;t[5]===a?o=t[6]:(o=(0,$.jsx)(de,{scrollFade:!0,className:`mt-5 h-auto max-h-[min(32rem,55dvh)]`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:a})}),t[5]=a,t[6]=o);let s;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,$.jsx)(w,{className:`size-3.5`}),t[7]=s):s=t[7];let c;t[8]===r?c=t[9]:(c=(0,$.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,$.jsxs)(b,{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)(qt,{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=E(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=E(c),[u,d]=(0,Z.useState)(null),[f,p]=(0,Z.useState)(!1),[m,h]=(0,Z.useState)(null),g=ne(n,x),_,v;t[5]!==n||t[6]!==s?(_=()=>{s({environmentId:n,input:{}})},v=[n,s],t[5]=n,t[6]=s,t[7]=_,t[8]=v):(_=t[7],v=t[8]),(0,Z.useEffect)(_,v);let y;t[9]===a?y=t[10]:(y=Ue(a),t[9]=a,t[10]=y);let S=y,C,w,T,D;if(t[11]!==S||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]!==S||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:S.get(e),instanceId:S.get(e)?.instanceId}]},t[23]=S,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?D=t[29]:(D=(0,$.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:r}),t[28]=r,t[29]=D),t[30]===g?C=t[31]:(C=g?null:(0,$.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:`This connection cannot control terminals.`}),t[30]=g,t[31]=C),w=`space-y-1.5`;let o;t[32]!==g||t[33]!==m||t[34]!==n||t[35]!==l||t[36]!==u?.driver?(o=e=>{let{driver:t,provider:r,instanceId:i}=e;return t===`codex`&&l!==null?(0,$.jsx)(Tt,{environmentId:n,provider:r,serverConfig:l,createdAccount:i===m?.instanceId?m:null,onAutoStartConsumed:()=>h(wt),terminalOpen:u?.driver===t,onOpenTerminal:()=>{r!==void 0&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},i??t):(0,$.jsx)(Et,{driver:t,provider:r,terminalOpen:u?.driver===t,terminalAvailable:l!==null&&g,onOpenTerminal:()=>{r!==void 0&&l!==null&&X(n,`terminal:operate`)&&d({environmentId:n,driver:t,providerInstanceId:r.instanceId,cwd:l.cwd,command:r.installed?He(r,l.settings,l.environment.platform.os):Ye(t,l.environment.platform.os),keybindings:l.keybindings})}},t)},t[32]=g,t[33]=m,t[34]=n,t[35]=l,t[36]=u?.driver,t[37]=o):o=t[37],T=i.map(o),t[11]=S,t[12]=g,t[13]=m,t[14]=n,t[15]=r,t[16]=a,t[17]=l,t[18]=u?.driver,t[19]=C,t[20]=w,t[21]=T,t[22]=D}else C=t[19],w=t[20],T=t[21],D=t[22];let O;t[38]!==w||t[39]!==T?(O=(0,$.jsx)(`div`,{className:w,children:T}),t[38]=w,t[39]=T,t[40]=O):O=t[40];let k;t[41]===a?k=t[42]:(k=a?.some(Ct)?(0,$.jsx)(`div`,{className:`mt-3`,children:(0,$.jsx)(b,{size:`xs`,variant:`ghost-muted`,onClick:()=>p(!0),children:`Connect another ChatGPT account`})}):null,t[41]=a,t[42]=k);let A;t[43]!==f||t[44]!==n?(A=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]=A):A=t[45];let j;t[46]!==n||t[47]!==s||t[48]!==u?(j=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]=j):j=t[49];let M;return t[50]!==C||t[51]!==O||t[52]!==k||t[53]!==A||t[54]!==j||t[55]!==D?(M=(0,$.jsxs)(`section`,{children:[D,C,O,k,A,j]}),t[50]=C,t[51]=O,t[52]=k,t[53]=A,t[54]=j,t[55]=D,t[56]=M):M=t[56],M}function Ct(e){return e.driver===`codex`&&Ge(e)===`ready`}function wt(e){return e?{...e,autoStart:!1}:null}function Tt(e){let t=(0,Q.c)(28),{createdAccount:n,onAutoStartConsumed:r,environmentId:i,provider:a,serverConfig:s,terminalOpen:c,onOpenTerminal:l}=e,u=ne(i,x),d=ae(Y.updateSettings,`Codex setup settings`),f;t[0]!==n?.instanceId||t[1]!==a?.instanceId?(f=n?.instanceId??a?.instanceId??m(o.make(`codex`)),t[0]=n?.instanceId,t[1]=a?.instanceId,t[2]=f):f=t[2];let p=f,h=s.settings,g;t[3]!==n||t[4]!==p||t[5]!==h.providerInstances?(g=h.providerInstances[p]??{driver:o.make(`codex`),config:n?{enabled:!0,setupMode:`managed`}:{}},t[3]=n,t[4]=p,t[5]=h.providerInstances,t[6]=g):g=t[6];let _=g,v;t[7]===_.config?v=t[8]:(v=Je(_.config),t[7]=_.config,t[8]=v);let y=v,b=y===`existing`&&_.config!==null&&typeof _.config==`object`&&`setupMode`in _.config&&_.config.setupMode===`existing`,S;t[9]!==i||t[10]!==_||t[11]!==p||t[12]!==h||t[13]!==d?(S=e=>{d({environmentId:i,input:{patch:Ve({settings:h,instanceId:p,instance:{..._,enabled:!0,config:{..._.config!==null&&typeof _.config==`object`?_.config:{},enabled:!0,setupMode:e}}})}})},t[9]=i,t[10]=_,t[11]=p,t[12]=h,t[13]=d,t[14]=S):S=t[14];let C=S,w;return t[15]!==u||t[16]!==C||t[17]!==n?.autoStart||t[18]!==n?.displayName||t[19]!==i||t[20]!==b||t[21]!==p||t[22]!==y||t[23]!==r||t[24]!==l||t[25]!==a||t[26]!==c?(w=b?(0,$.jsx)(Et,{driver:`codex`,provider:a,terminalOpen:c,terminalAvailable:u,onOpenTerminal:l}):(0,$.jsx)(We,{presentation:`onboarding`,autoStart:n?.autoStart===!0,displayName:n?.displayName,onAutoStartConsumed:r,environmentId:i,instanceId:p,provider:a,mode:y,enabled:a?.enabled??!0,onModeChange:C}),t[15]=u,t[16]=C,t[17]=n?.autoStart,t[18]=n?.displayName,t[19]=i,t[20]=b,t[21]=p,t[22]=y,t[23]=r,t[24]=l,t[25]=a,t[26]=c,t[27]=w):w=t[27],w}function Et(e){let t=(0,Q.c)(29),{driver:n,provider:r,terminalOpen:i,terminalAvailable:s,onOpenTerminal:c}=e,l;t[0]===n?l=t[1]:(l=Se.get(o.make(n)),t[0]=n,t[1]=l);let u=l,d=r?.displayName||(n===`claudeAgent`?`Claude Code`:u?.label??n),p;t[2]===r?p=t[3]:(p=qe(r),t[2]=r,t[3]=p);let m=p,h;t[4]===r?h=t[5]:(h=Ge(r),t[4]=r,t[5]=h);let g=h,_;t[6]===n?_=t[7]:(_=o.make(n),t[6]=n,t[7]=_);let v;t[8]!==d||t[9]!==_?(v=(0,$.jsx)(Ce,{driverKind:_,displayName:d,iconClassName:`size-5`}),t[8]=d,t[9]=_,t[10]=v):v=t[10];let y;t[11]===d?y=t[12]:(y=(0,$.jsx)(`span`,{className:`block text-sm font-medium text-foreground`,children:d}),t[11]=d,t[12]=y);let x=g===`ready`?`Ready to code.`:m.headline,S=g!==`ready`&&m.detail?` · ${m.detail}`:``,C;t[13]!==x||t[14]!==S?(C=(0,$.jsxs)(`p`,{className:`mt-0.5 text-xs leading-relaxed break-words whitespace-pre-wrap text-muted-foreground`,children:[x,S]}),t[13]=x,t[14]=S,t[15]=C):C=t[15];let w;t[16]!==y||t[17]!==C?(w=(0,$.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[y,C]}),t[16]=y,t[17]=C,t[18]=w):w=t[18];let T;t[19]!==c||t[20]!==g||t[21]!==m||t[22]!==s||t[23]!==i?(T=(0,$.jsx)(`div`,{className:`shrink-0`,children:g===`ready`?(0,$.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,$.jsx)(a,{className:`size-3.5`}),`Ready`]}):g===`checking`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):g===`disabled`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Disabled`}):g===`attention`?(0,$.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:m.headline}):(0,$.jsxs)(b,{size:`xs`,variant:`ghost`,onClick:c,disabled:i||!s,children:[(0,$.jsx)(f,{className:`size-3.5`}),g===`signIn`?`Sign in`:`Install`]})}),t[19]=c,t[20]=g,t[21]=m,t[22]=s,t[23]=i,t[24]=T):T=t[24];let E;return t[25]!==w||t[26]!==T||t[27]!==v?(E=(0,$.jsxs)(`div`,{className:`flex items-center gap-3 rounded-lg border border-border bg-background px-4 py-4`,children:[v,w,T]}),t[25]=w,t[26]=T,t[27]=v,t[28]=E):E=t[28],E}function Dt(e){let t=(0,Q.c)(60),{session:n,onClose:r}=e,{command:i,cwd:a,driver:o,environmentId:s,keybindings:l,providerInstanceId:u}=n,d=ne(s,x),[f]=c(ke,!1,y),p;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(p={reportFailure:!1},t[0]=p):p=t[0];let m=ae(ve.open,p),h;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(h={reportFailure:!1},t[1]=h):h=t[1];let g=ae(ve.write,h),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_={reportFailure:!1},t[2]=_):_=t[2];let v=ae(ve.close,_),S;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(S=Promise.resolve(),t[3]=S):S=t[3];let w=(0,Z.useRef)(S),E=(0,Z.useRef)(0),D=(0,Z.useRef)(null),O;t[4]===o?O=t[5]:(O=()=>`onboarding-${o}-${C()}`,t[4]=o,t[5]=O);let[k]=(0,Z.useState)(O),A;t[6]===s?A=t[7]:(A=T(s,dt),t[6]=s,t[7]=A);let j=A,[M,N]=(0,Z.useState)(0),[P,F]=(0,Z.useState)(`preparing`),I=P===`ready`||P===`writeFailed`,L;t[8]!==v||t[9]!==i||t[10]!==a||t[11]!==s||t[12]!==m||t[13]!==u||t[14]!==k||t[15]!==g?(L=()=>{let e=E.current+1;return E.current=e,D.current=e,F(`preparing`),w.current=w.current.then(async()=>{if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`openFailed`);return}if((await m({environmentId:s,input:{threadId:dt,terminalId:k,cwd:a,providerInstanceId:u}}))._tag!==`Success`){D.current===e&&F(`openFailed`);return}if(D.current!==e)return;if(!X(s,`terminal:operate`)){F(`writeFailed`);return}let t=await g({environmentId:s,input:{threadId:dt,terminalId:k,data:i}});D.current===e&&F(t._tag===`Success`?`ready`:`writeFailed`)}),()=>{D.current===e&&(D.current=null),w.current=w.current.then(async()=>{X(s,`terminal:operate`)&&await v({environmentId:s,input:{threadId:dt,terminalId:k,deleteHistory:!0}})})}},t[8]=v,t[9]=i,t[10]=a,t[11]=s,t[12]=m,t[13]=u,t[14]=k,t[15]=g,t[16]=L):L=t[16];let R;t[17]!==v||t[18]!==i||t[19]!==a||t[20]!==s||t[21]!==m||t[22]!==u||t[23]!==M||t[24]!==k||t[25]!==g?(R=[v,i,a,s,m,u,M,k,g],t[17]=v,t[18]=i,t[19]=a,t[20]=s,t[21]=m,t[22]=u,t[23]=M,t[24]=k,t[25]=g,t[26]=R):R=t[26],(0,Z.useEffect)(L,R);let z;t[27]!==d||t[28]!==i||t[29]!==P?(z=d?P===`writeFailed`?(0,$.jsxs)($.Fragment,{children:[`Run `,(0,$.jsx)(`code`,{className:`rounded bg-muted px-1 font-mono`,children:i}),` in this terminal.`]}):P===`ready`?`Review the command, then press Enter to run it.`:P===`openFailed`?`Could not open the setup terminal.`:`Preparing command...`:`This connection cannot control terminals.`,t[27]=d,t[28]=i,t[29]=P,t[30]=z):z=t[30];let B;t[31]===z?B=t[32]:(B=(0,$.jsx)(`span`,{className:`text-2xs font-medium text-muted-foreground`,children:z}),t[31]=z,t[32]=B);let V;t[33]!==d||t[34]!==s||t[35]!==P?(V=P===`openFailed`?(0,$.jsx)(b,{size:`xs`,variant:`ghost`,disabled:!d,onClick:()=>{X(s,`terminal:operate`)&&N(Ot)},children:`Retry`}):null,t[33]=d,t[34]=s,t[35]=P,t[36]=V):V=t[36];let H;t[37]===r?H=t[38]:(H=(0,$.jsx)(b,{size:`xs`,variant:`ghost-muted`,onClick:r,children:`Close`}),t[37]=r,t[38]=H);let U;t[39]!==V||t[40]!==H?(U=(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[V,H]}),t[39]=V,t[40]=H,t[41]=U):U=t[41];let W;t[42]!==B||t[43]!==U?(W=(0,$.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5`,children:[B,U]}),t[42]=B,t[43]=U,t[44]=W):W=t[44];let G;t[45]!==f||t[46]!==a||t[47]!==o||t[48]!==l||t[49]!==r||t[50]!==u||t[51]!==k||t[52]!==I||t[53]!==j?(G=I?(0,$.jsx)(_e,{threadRef:j,threadId:dt,terminalId:k,terminalLabel:`Install ${o}`,cwd:a,providerInstanceId:u,advancedTypography:f,onSessionExited:r,focusRequestId:1,autoFocus:!0,visible:!0,resizeEpoch:0,drawerHeight:256,keybindings:l}):null,t[45]=f,t[46]=a,t[47]=o,t[48]=l,t[49]=r,t[50]=u,t[51]=k,t[52]=I,t[53]=j,t[54]=G):G=t[54];let ee;t[55]===G?ee=t[56]:(ee=(0,$.jsx)(`div`,{className:`h-64`,children:G}),t[55]=G,t[56]=ee);let K;return t[57]!==W||t[58]!==ee?(K=(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,ee]}),t[57]=W,t[58]=ee,t[59]=K):K=t[59],K}function Ot(e){return e+1}var kt=`This connection cannot import projects or thread history.`;function At(e){let t=(0,Q.c)(75),{scans:n,isImporting:r,setIsImporting:i,onDone:a}=e,{environments:o}=te(),c=re(n,A),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l={reportFailure:!1},t[0]=l):l=t[0];let u=ae(H.create,l),d;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(d={reportFailure:!1},t[1]=d):d=t[1];let f=ae(ot,d),[p,m]=(0,Z.useState)(null),h=(0,Z.useRef)(``),g=(0,Z.useRef)(0),_;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=new Map,t[2]=_):_=t[2];let v=(0,Z.useRef)(_),y;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(y=new Map,t[3]=y):y=t[3];let x=(0,Z.useRef)(y),S;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(S=[],t[4]=S):S=t[4];let C=(0,Z.useRef)(S),w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=new Map,t[5]=w):w=t[5];let T=(0,Z.useRef)(w),E=(0,Z.useRef)(0),O,k;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>(E.current+=1,()=>{E.current+=1}),k=[],t[6]=O,t[7]=k):(O=t[6],k=t[7]),(0,Z.useEffect)(O,k);let j;t[8]===n?j=t[9]:(j=Qe(n.flatMap(Rt)),t[8]=n,t[9]=j);let{available:N,recent:P}=j,F;t[10]!==P||t[11]!==p?(F=p??new Set(P.map(Lt)),t[10]=P,t[11]=p,t[12]=F):F=t[12];let I=F,R,z;if(t[13]!==N||t[14]!==I||t[15]!==c){let e;t[18]===I?e=t[19]:(e=e=>I.has(e.key),t[18]=I,t[19]=e),R=N.filter(e);let n;t[20]===c?n=t[21]:(n=e=>c.has(e.environmentId),t[20]=c,t[21]=n),z=R.every(n),t[13]=N,t[14]=I,t[15]=c,t[16]=R,t[17]=z}else R=t[16],z=t[17];let V=z,[W,ee]=(0,Z.useState)(``),K=V?W===kt?``:W:kt,q;t[22]!==a||t[23]!==i?(q=()=>{let e=nt(C.current,x.current,v.current);if(e===void 0){a(void 0,h.current,g.current);return}i(!0);let t=E.current;B(e).then(()=>e,It).then(async e=>{t===E.current&&(await a(e,h.current,g.current)||i(!1))})},t[22]=a,t[23]=i,t[24]=q):q=t[24];let J=q,Y;t[25]!==u||t[26]!==J||t[27]!==f||t[28]!==r||t[29]!==a||t[30]!==n||t[31]!==i?(Y=async e=>{if(r)return;let t=()=>e.every(Ft),o=()=>{i(!1),ee(kt)};if(!t()){o();return}if(e.length===0){a();return}i(!0),h.current=``,g.current=0,C.current=e.map(Pt);let c=E.current,l=v.current,d=T.current,p=l.size>0?e.filter(e=>l.has(e.key)).length:0,m=0,_=0,y=new Set;for(let n of e){let{environmentId:e}=n;if(c!==E.current||l!==v.current)return;if(!t()){o();return}if(l.has(n.key))continue;let r=tt(U(),e,n);if(r===null){let t=d.get(n.key);if(t===void 0){let e=D();t={projectId:e,commandId:s.make(`onboarding:project:create:${e}`)},d.set(n.key,t)}r=t.projectId;let i=await u({environmentId:e,input:{projectId:r,commandId:t.commandId,title:n.title,workspaceRoot:n.path,createWorkspaceRootIfMissing:!1,defaultModelSelection:null}});if(c!==E.current||l!==v.current)return;if(i._tag!==`Success`){L(i)||(d.delete(n.key),y.add(e));continue}}if(!t()){o();return}let i=await f({environmentId:e,input:{projectId:r,expectedWorkspaceRoot:n.path}});if(c!==E.current||l!==v.current)return;i._tag===`Success`?(m+=i.value.importedCount,_+=i.value.skippedCount,i.value.importedCount>0&&x.current.set(n.key,M(e,r)),i.value.skippedCount===0&&(p+=1,l.set(n.key,M(e,r)))):L(i)||(d.delete(n.key),y.add(e))}for(let e of n)y.has(e.environmentId)&&e.refresh();i(!1),g.current=m,p<e.length&&(m>0&&_>0?h.current=`Imported ${m} ${m===1?`thread`:`threads`}. ${_} ${_===1?`thread`:`threads`} could not be imported.`:_>0?h.current=`${_} ${_===1?`thread could`:`threads could`} not be imported.`:m>0?h.current=`Imported ${m} ${m===1?`thread`:`threads`}. Some thread history could not be imported.`:h.current=`Could not import thread history.`),J()},t[25]=u,t[26]=J,t[27]=f,t[28]=r,t[29]=a,t[30]=n,t[31]=i,t[32]=Y):Y=t[32];let ne=Y;if(n.every(Nt)&&n.some(Mt)){let e;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Your projects`}),t[33]=e):e=t[33];let n;t[34]===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[34]=n):n=t[34];let r;return t[35]===a?r=t[36]:(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)(b,{variant:`ghost-muted`,onClick:()=>void a(),children:`Do not import projects`})})]}),t[35]=a,t[36]=r),r}let X;t[37]!==N||t[38]!==r||t[39]!==R?(X=N.length>0?(0,$.jsxs)(`div`,{className:`mt-5 flex items-center justify-between gap-3 text-xs text-muted-foreground`,children:[(0,$.jsxs)(`span`,{role:`status`,children:[R.length,` of `,N.length,` selected`]}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,$.jsx)(b,{variant:`ghost`,size:`xs`,disabled:r||R.length===N.length,onClick:()=>m(new Set(N.map(jt))),children:`Select all`}),(0,$.jsx)(b,{variant:`ghost`,size:`xs`,disabled:r||R.length===0,onClick:()=>m(new Set),children:`Select none`})]})]}):null,t[37]=N,t[38]=r,t[39]=R,t[40]=X):X=t[40];let ie;if(t[41]!==N||t[42]!==o||t[43]!==r||t[44]!==n||t[45]!==I){let e;t[47]!==N||t[48]!==o||t[49]!==r||t[50]!==n.length||t[51]!==I?(e=e=>{let t=N.filter(t=>t.environmentId===e.environmentId),i=o.find(t=>t.environmentId===e.environmentId)?.label??`Computer`;return(0,$.jsxs)(`fieldset`,{className:`min-w-0 space-y-0.5`,disabled:r,children:[n.length>1?(0,$.jsx)(`legend`,{className:`mb-2 text-sm font-medium`,children:i}):null,e.isPending&&e.data===null?(0,$.jsxs)(`div`,{className:`flex items-center gap-2 py-3 text-sm text-muted-foreground`,children:[(0,$.jsx)(G,{size:`md`}),`Looking for projects…`]}):e.error===null?t.length===0?(0,$.jsx)(`p`,{className:`py-2 text-sm text-muted-foreground`,children:`No existing Claude Code or Codex projects found.`}):null:(0,$.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-between gap-3 text-sm text-muted-foreground`,children:[(0,$.jsxs)(`span`,{children:[`Could not check projects. `,e.error]}),(0,$.jsx)(b,{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)(zt,{candidates:t,selectedKeys:I,onSelectionChange:m})]},e.environmentId)},t[47]=N,t[48]=o,t[49]=r,t[50]=n.length,t[51]=I,t[52]=e):e=t[52],ie=n.map(e),t[41]=N,t[42]=o,t[43]=r,t[44]=n,t[45]=I,t[46]=ie}else ie=t[46];let oe;t[53]===ie?oe=t[54]:(oe=(0,$.jsx)(de,{scrollFade:!0,className:`mt-2 h-auto max-h-80`,children:(0,$.jsx)(`div`,{className:`space-y-5 pr-3`,children:ie})}),t[53]=ie,t[54]=oe);let se;t[55]===K?se=t[56]:(se=K?(0,$.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,children:K}):null,t[55]=K,t[56]=se);let ce;t[57]!==J||t[58]!==r?(ce=(0,$.jsx)(b,{variant:`ghost-muted`,disabled:r,onClick:J,children:`Do not import projects`}),t[57]=J,t[58]=r,t[59]=ce):ce=t[59];let le=!V||r||R.length===0,ue;t[60]!==ne||t[61]!==R?(ue=()=>void ne(R),t[60]=ne,t[61]=R,t[62]=ue):ue=t[62];let fe=r?`Importing…`:`Import ${R.length} ${R.length===1?`project`:`projects`}`,pe;t[63]!==le||t[64]!==ue||t[65]!==fe?(pe=(0,$.jsx)(b,{autoFocus:!0,disabled:le,onClick:ue,children:fe}),t[63]=le,t[64]=ue,t[65]=fe,t[66]=pe):pe=t[66];let me;t[67]!==ce||t[68]!==pe?(me=(0,$.jsxs)(`div`,{className:`mt-6 flex flex-wrap items-center justify-end gap-3`,children:[ce,pe]}),t[67]=ce,t[68]=pe,t[69]=me):me=t[69];let he;return t[70]!==X||t[71]!==oe||t[72]!==se||t[73]!==me?(he=(0,$.jsxs)(qt,{title:`Import your projects`,description:`Import projects and conversations from Claude Code and Codex on your selected computers.`,children:[X,oe,se,me]}),t[70]=X,t[71]=oe,t[72]=se,t[73]=me,t[74]=he):he=t[74],he}function jt(e){return e.key}function Mt(e){return e.isPending}function Nt(e){return e.data===null}function Pt(e){return e.key}function Ft(e){return X(e.environmentId,A)}function It(){}function Lt(e){return e.key}function Rt(e){return(e.data?.candidates??[]).map(t=>({...t,environmentId:e.environmentId,key:it(e.environmentId,t.path)}))}function zt(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 f=u.length,p;if(t[10]!==o||t[11]!==r||t[12]!==l){let e;t[14]!==r||t[15]!==l?(e=e=>(0,$.jsx)(Vt,{group:e,selectedKeys:r,onToggle:l},e.key),t[14]=r,t[15]=l,t[16]=e):e=t[16],p=o.map(e),t[10]=o,t[11]=r,t[12]=l,t[13]=p}else p=t[13];let m;t[17]!==s||t[18]!==f||t[19]!==r||t[20]!==l?(m=s.length>0?(0,$.jsxs)(Ie,{children:[(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[(0,$.jsx)(ge,{checked:f===s.length,indeterminate:f>0&&f<s.length,onCheckedChange:e=>l(s.map(Bt),e===!0)}),(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[(0,$.jsx)(d,{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)(Gt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>l([e.key],t)},e.key))})]}):null,t[17]=s,t[18]=f,t[19]=r,t[20]=l,t[21]=m):m=t[21];let h;return t[22]!==p||t[23]!==m?(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),t[22]=p,t[23]=m,t[24]=h):h=t[24],h}function Bt(e){return e.key}function Vt(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(Ut);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)(Gt,{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,f=s>0&&s<a.length,p;t[17]!==a||t[18]!==i?(p=e=>i(a,e===!0),t[17]=a,t[18]=i,t[19]=p):p=t[19];let m;t[20]!==u||t[21]!==f||t[22]!==p?(m=(0,$.jsx)(ge,{checked:u,indeterminate:f,onCheckedChange:p}),t[20]=u,t[21]=f,t[22]=p,t[23]=m):m=t[23];let h;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,$.jsx)(d,{className:`size-3.5 shrink-0 text-muted-foreground transition-transform group-data-panel-open:rotate-90`}),t[24]=h):h=t[24];let g;t[25]===n.label?g=t[26]:(g=(0,$.jsx)(`span`,{className:`truncate text-sm font-medium`,children:n.label}),t[25]=n.label,t[26]=g);let _;t[27]===n.candidates?_=t[28]:(_=new Set(n.candidates.flatMap(Ht)),t[27]=n.candidates,t[28]=_);let v;t[29]===_?v=t[30]:(v=[..._],t[29]=_,t[30]=v);let y;t[31]!==n.lastActiveAt||t[32]!==n.threadCount||t[33]!==v?(y=(0,$.jsx)(Kt,{sources:v,threadCount:n.threadCount,lastActiveAt:n.lastActiveAt}),t[31]=n.lastActiveAt,t[32]=n.threadCount,t[33]=v,t[34]=y):y=t[34];let b;t[35]!==y||t[36]!==g?(b=(0,$.jsxs)(Me,{className:`group flex min-w-0 flex-1 items-center gap-1.5 text-left`,children:[h,g,y]}),t[35]=y,t[36]=g,t[37]=b):b=t[37];let x;t[38]!==b||t[39]!==m?(x=(0,$.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md px-2 py-1.5 hover:bg-muted/40`,children:[m,b]}),t[38]=b,t[39]=m,t[40]=x):x=t[40];let S;if(t[41]!==n.candidates||t[42]!==i||t[43]!==r){let e;t[45]!==i||t[46]!==r?(e=e=>(0,$.jsx)(Gt,{candidate:e,path:e.path,nested:!0,checked:r.has(e.key),onCheckedChange:t=>i([e.key],t)},e.key),t[45]=i,t[46]=r,t[47]=e):e=t[47],S=n.candidates.map(e),t[41]=n.candidates,t[42]=i,t[43]=r,t[44]=S}else S=t[44];let C;t[48]===S?C=t[49]:(C=(0,$.jsx)(Pe,{children:S}),t[48]=S,t[49]=C);let w;return t[50]!==x||t[51]!==C?(w=(0,$.jsxs)(Ie,{defaultOpen:!0,children:[x,C]}),t[50]=x,t[51]=C,t[52]=w):w=t[52],w}function Ht(e){return e.sources}function Ut(e){return e.key}function Wt(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 Gt(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)(Wt,{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)(Kt,{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 Kt(e){let t=(0,Q.c)(19),{sources:n,threadCount:r,lastActiveAt:i}=e,a;t[0]===i?a=t[1]:(a=i===null?null:oe(i),t[0]=i,t[1]=a);let s=a,c=s===null?``:s.suffix===null?`now`:s.value,l;t[2]===n?l=t[3]:(l=n?.includes(`claudeAgent`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Claude Code`,children:(0,$.jsx)(Ce,{driverKind:o.make(`claudeAgent`),displayName:`Claude Code`,iconClassName:`size-3`})}):null,t[2]=n,t[3]=l);let u;t[4]===l?u=t[5]:(u=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:l}),t[4]=l,t[5]=u);let d;t[6]===n?d=t[7]:(d=n?.includes(`codex`)?(0,$.jsx)(`span`,{role:`img`,"aria-label":`Codex`,children:(0,$.jsx)(Ce,{driverKind:o.make(`codex`),displayName:`Codex`,iconClassName:`size-3`})}):null,t[6]=n,t[7]=d);let f;t[8]===d?f=t[9]:(f=(0,$.jsx)(`span`,{className:`flex size-4 items-center justify-center`,children:d}),t[8]=d,t[9]=f);let p;t[10]===r?p=t[11]:(p=(0,$.jsx)(`span`,{className:`text-right`,children:r}),t[10]=r,t[11]=p);let m;t[12]===c?m=t[13]:(m=(0,$.jsx)(`span`,{className:`text-right whitespace-nowrap`,children:c}),t[12]=c,t[13]=m);let h;return t[14]!==u||t[15]!==f||t[16]!==p||t[17]!==m?(h=(0,$.jsxs)(`span`,{className:`ml-auto grid shrink-0 grid-cols-[1rem_1rem_2.5rem_2.25rem] items-center gap-x-1 text-xs text-muted-foreground tabular-nums`,children:[u,f,p,m]}),t[14]=u,t[15]=f,t[16]=p,t[17]=m,t[18]=h):h=t[18],h}function qt(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 Jt=u(p);function Yt(){let e=(0,Q.c)(14),{authGateState:t}=Ae.useRouteContext(),n=ee(),r;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={select:Zt},e[0]=r):r=e[0];let i=K(r),a;e[1]===i?a=e[2]:(a=i.startsWith(`agents:`)?_(Jt(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:Xt},e[3]=s):s=e[3];let c=K(s),[l,u]=(0,Z.useState)(!1),d=ye(),f=t.status===`authenticated`,p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,$.jsx)(ze,{}),e[4]=p):p=e[4];let m;e[5]!==l||e[6]!==c||e[7]!==f||e[8]!==n||e[9]!==d||e[10]!==o?(m=c&&!l?(0,$.jsx)(mt,{localAvailable:f,resumeEnvironmentId:o,onDone:async e=>{u(!0),e===void 0?await n({to:`/`,replace:!0}):await d(e,{replace:!0}).catch(()=>n({to:`/`,replace:!0}))}}):null,e[5]=l,e[6]=c,e[7]=f,e[8]=n,e[9]=d,e[10]=o,e[11]=m):m=e[11];let h;return e[12]===m?h=e[13]:(h=(0,$.jsxs)($.Fragment,{children:[p,m]}),e[12]=m,e[13]=h),h}function Xt(e){return e.pathname===`/welcome`}function Zt(e){return e.hash}export{Yt as component};
|
|
2
|
+
//# sourceMappingURL=welcome-D2-tjFV3.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-BXvrSYK3.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-CWPUW_8Y.mjs";
|
|
4
4
|
import * as NodeModule from "node:module";
|
|
5
5
|
// ../../node_modules/.pnpm/konva@10.7.1_skia-canvas@3.0.8/node_modules/konva/lib/Global.js
|
|
6
6
|
/*
|
|
@@ -17641,4 +17641,4 @@ function createRenderer(width, height) {
|
|
|
17641
17641
|
}
|
|
17642
17642
|
export { createRenderer, rasterizeSvg, renderDesignExport, renderDesignPng };
|
|
17643
17643
|
|
|
17644
|
-
//# sourceMappingURL=renderer-
|
|
17644
|
+
//# sourceMappingURL=renderer-CuqsXHrO.mjs.map
|
|
@@ -28588,7 +28588,11 @@ const SelfImproveEvidence = Struct({
|
|
|
28588
28588
|
status: NullOr(String$1),
|
|
28589
28589
|
detail: NullOr(String$1)
|
|
28590
28590
|
})),
|
|
28591
|
-
reviewerGenerated: Boolean
|
|
28591
|
+
reviewerGenerated: Boolean,
|
|
28592
|
+
skills: ArraySchema(Struct({
|
|
28593
|
+
name: String$1,
|
|
28594
|
+
path: NullOr(String$1)
|
|
28595
|
+
})).pipe(withDecodingDefaultKey(succeed([])))
|
|
28592
28596
|
});
|
|
28593
28597
|
const SelfImproveDecision = Struct({
|
|
28594
28598
|
id: TrimmedNonEmptyString,
|
|
@@ -28624,6 +28628,15 @@ const SelfImproveOutcome = Struct({
|
|
|
28624
28628
|
});
|
|
28625
28629
|
/** At most two read-only reviewer models run when a decision says `review` in dispatch mode. */
|
|
28626
28630
|
const SelfImproveReviewers = ArraySchema(ModelSelection).check(isMaxLength(2));
|
|
28631
|
+
const SelfImproveFindingKind = Literals(["memory", "skill"]);
|
|
28632
|
+
const SelfImproveSkillAmendment = Struct({
|
|
28633
|
+
name: String$1,
|
|
28634
|
+
file: String$1,
|
|
28635
|
+
passage: String$1,
|
|
28636
|
+
replacement: String$1,
|
|
28637
|
+
location: Literals(["global", "project"]),
|
|
28638
|
+
refusal: optionalKey(String$1)
|
|
28639
|
+
});
|
|
28627
28640
|
/** One proposed workflow change from a reviewer. Saving it is always the user's call. */
|
|
28628
28641
|
const SelfImproveFinding = Struct({
|
|
28629
28642
|
/** One line. */
|
|
@@ -28642,8 +28655,10 @@ const SelfImproveFinding = Struct({
|
|
|
28642
28655
|
scope: Literals(["global", "project"]),
|
|
28643
28656
|
/** The project a `project` finding belongs to; null for `global`. */
|
|
28644
28657
|
project: NullOr(String$1),
|
|
28658
|
+
kind: SelfImproveFindingKind.pipe(withDecodingDefaultKey(succeed("memory"))),
|
|
28645
28659
|
/** The exact memory wording the reviewer proposes. */
|
|
28646
28660
|
memory: String$1,
|
|
28661
|
+
skill: NullOr(SelfImproveSkillAmendment).pipe(withDecodingDefaultKey(succeed(null))),
|
|
28647
28662
|
/** An observable check that would show the memory worked. */
|
|
28648
28663
|
check: String$1
|
|
28649
28664
|
});
|
|
@@ -28757,9 +28772,10 @@ const SelfImproveSettings = Struct({
|
|
|
28757
28772
|
reviewTurns: NonNegativeInt,
|
|
28758
28773
|
lastCheckedAt: NullOr(IsoDateTime),
|
|
28759
28774
|
/**
|
|
28760
|
-
* A git checkout whose `memory/` directory mirrors saved memory files
|
|
28761
|
-
*
|
|
28762
|
-
*
|
|
28775
|
+
* A git checkout whose `memory/` directory mirrors saved memory files and whose `skills/`
|
|
28776
|
+
* (`provider-skills/claude/`, `provider-skills/codex/`) mirrors amended global skill files. Each
|
|
28777
|
+
* save commits the changed files there from a fresh checkout of the remote default branch and
|
|
28778
|
+
* pushes it. Null leaves them unmirrored.
|
|
28763
28779
|
*/
|
|
28764
28780
|
memoryMirror: NullOr(String$1)
|
|
28765
28781
|
});
|
|
@@ -28785,11 +28801,12 @@ const SelfImproveSavedFinding = Struct({
|
|
|
28785
28801
|
outcome: Literals([
|
|
28786
28802
|
"added",
|
|
28787
28803
|
"merged",
|
|
28804
|
+
"amended",
|
|
28788
28805
|
"skipped"
|
|
28789
28806
|
]),
|
|
28790
|
-
/** The memory file written; null when skipped. */
|
|
28807
|
+
/** The memory or skill file written; null when skipped. */
|
|
28791
28808
|
file: NullOr(String$1),
|
|
28792
|
-
/** The wording as saved, after polishing; null when skipped. */
|
|
28809
|
+
/** The memory wording as saved, after polishing; null when skipped or for a skill. */
|
|
28793
28810
|
memory: NullOr(String$1),
|
|
28794
28811
|
/** One short sentence: why it was merged or skipped, or where it was added. */
|
|
28795
28812
|
reason: String$1
|
|
@@ -32584,4 +32601,4 @@ function semanticDiff(before, after) {
|
|
|
32584
32601
|
}
|
|
32585
32602
|
export { WsMcpRegistryProviderSignInWaitRpc as $, requiredScopesForServerSettingsPatch as $a, linkOriginIsFenced as $c, fromWeb as $d, BadArgument as $f, EnvironmentThemeId as $i, VcsUnsupportedOperationError as $l, IsoDateTime as $m, PreviewAutomationTimeoutError as $n, DecisionResult as $o, isWithHeaders as $p, PeerLinkRequestError as $r, OrchestrationGetWorkflowScriptError as $s, make as $t, isTracerDisabledUnsafe as $u, ComputerUseBrowserChatRequest as A, BackgroundActivityProfileSelection as Aa, OrchestrationV2RunJson as Ac, symbol$1 as Ad, InvalidUrlError as Af, fromInputUnsafe as Ah, OrchestratorMcpThreadSendInput as Ai, PullRequestLinkedThreadsResult as Al, defaultInstanceIdForDriver as Am, PreviewAutomationMalformedResponseError as An, DeviceHostId as Ao, AuthSettingsWriteScope as Ap, AgentSessionImportSource as Ar, EnvironmentScopeRequiredError as As, DesignSubscribeRequest as At, del as Au, clientRpcRequiredScopes as B, PROJECT_SCOPED_SERVER_SETTING_KEYS as Ba, OrchestrationV2SubagentJson as Bc, raw as Bd, layer$2 as Bf, ApplicationEventMetadata as Bi, SourceControlCloneRepositoryResult as Bl, CheckpointRef as Bm, PreviewAutomationRemoteUnavailableError as Bn, DeviceToolOpenInput as Bo, mcpClientScopes as Bp, OrchestrationThreadSearchSource as Br, RelayManagedEndpointRecoveryRegistrationResponse as Bs, DesignInspectRequest as Bt, RouteContext as Bu, clean as C, TerminalProviderEnvironmentError as Ca, OrchestrationV2ProviderSession as Cc, TypeId$10 as Cd, setHeaders$1 as Cf, fromInput as Ch, OrchestratorMcpTaskStatusInput as Ci, ProviderRequestKind as Cl, MUSE_DEFAULT_MODEL as Cm, PreviewAutomationControlInterruptedError as Cn, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as Co, AuthMcpTokenError as Cp, AssetWorkspaceRootNormalizationError as Cr, EnvironmentHttpForbiddenError as Cs, SelfImproveSaveFindingsResult as Ct, isProviderSendTurnSupportedImageMimeType as Cu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as D, TerminalWriteError as Da, OrchestrationV2ProviderTurn as Dc, ResponseError as Dd, DecodeError as Df, remove as Dh, OrchestratorMcpThreadListResult as Di, ThreadPullRequestKey as Dl, ProviderDriverKind as Dm, PreviewAutomationEvaluateInput as Dn, DeviceActionUnavailableError as Do, AuthProvidersManageScope as Dp, AttachmentUploadSigningKeyError as Dr, EnvironmentOperationForbiddenError as Ds, DesignListRequest as Dt, getSlotParseOptions as Du, toBytes as E, TerminalSessionLookupError as Ea, OrchestrationV2ProviderThreadJson as Ec, RequestParseError as Ed, make$15 as Ef, merge as Eh, OrchestratorMcpThreadListInput as Ei, ThreadLinkedPullRequest as El, PROVIDER_DISPLAY_NAMES as Em, PreviewAutomationError as En, THREAD_JUMP_KEYBINDING_COMMANDS as Eo, AuthPreviewOperateScope as Ep, AttachmentDeleteInput as Er, EnvironmentInternalError as Es, DesignListReceipt as Et, make$2 as Eu, ComputerUseHostResponse as F, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as Fa, OrchestrationV2SearchThreadInput as Fc, file as Fd, TypeId$17 as Ff, ThreadMetadataMcpUpdateResult as Fi, PullRequestUnavailableError as Fl, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as Fm, PreviewAutomationRecordingDeadlineExpiredError as Fn, DevicePlatformAvailability as Fo, EnvironmentAuthorizationError as Fp, P4_PROJECT_FILE_NAME as Fr, RelayCloudMintCredentialProofPayload as Fs, DesignHandoffReceipt as Ft, patch as Fu, WsHubSyncResolveRpc as G, ServerSettingsPatch as Ga, OrchestrationV2TurnItem as Gc, setHeaders as Gd, stream$1 as Gf, PROJECT_CLONE_ERROR_MAX_LENGTH as Gi, VcsProcessExitError as Gl, ClientSurface as Gm, PreviewAutomationSelectResult as Gn, DeviceToolVersions as Go, getResponseEncoding as Gp, AgentAssetFiles as Gr, annotations as Gs, DesignRenderRequest as Gt, route as Gu, WS_METHODS as H, ResponseStreamingMode as Ha, OrchestrationV2ThreadLaunchError as Hc, removeHeader as Hd, isHttpBody as Hf, OrchestrationDispatchCommandError as Hi, SourceControlProviderKind as Hl, ClientConnectionMethod as Hm, PreviewAutomationResizeInput as Hn, DeviceToolScreenshotResult as Ho, StreamSse as Hp, AGENT_ASSET_FILE_MAX_CHARS as Hr, RelayManagedEndpointRuntimeConfig as Hs, DesignProposeReceipt as Ht, cors as Hu, ComputerUseJsInput as I, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as Ia, OrchestrationV2StopWorkflowError as Ic, html as Id, ignore as If, MIN_SCHEDULED_TASK_INTERVAL_MS as Ii, pullRequestHostOf as Il, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Im, PreviewAutomationRecordingDesktopUpdateRequiredError as In, DevicePlatformUnavailableError as Io, MCP_PEER_LINK_SOFTWARE_ID as Ip, PROJECT_FILE_BACKED_SETTINGS as Ir, RelayEnvironmentLinkChallengeResponse as Is, DesignHandoffRequest as It, post as Iu, WsHubSyncSubscribeRpc as J, isUnconfiguredDefaultInstanceEnabled as Ja, autoWorkspaceNoticeMessage as Jc, text as Jd, urlParams$1 as Jf, GitPullRequestMaterializationError as Ji, VcsProcessOutputReadError as Jl, ContextHandoffId as Jm, PreviewAutomationSnapshot as Jn, LOCAL_DEVICE_HOST_LABEL as Jo, getStatusSuccessSchema as Jp, AgentAssetListFilter as Jr, toRouterPath as Js, DesignStatusRequest as Jt, HttpServer as Ju, WsHubSyncRunNowRpc as K, UsageLimitSourceConfig as Ka, OrchestrationV2TurnItemJson as Kc, setStatus as Kd, text$1 as Kf, GitCommandError as Ki, VcsProcessMissingExitCodeError as Kl, ClientWebDeployment as Km, PreviewAutomationSetColorSchemeInput as Kn, EasDeviceHostConfig as Ko, getResponseEncodingSchema as Kp, AgentAssetId as Kr, fromApi as Ks, DesignSelection as Kt, serve as Ku, ComputerUseOutput as L, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as La, OrchestrationV2StopWorkflowInput as Lc, isHttpServerResponse as Ld, isIgnored as Lf, ScheduledTask as Li, pullRequestProviderRequirement as Ll, AssistantCitation as Lm, PreviewAutomationRecordingStatus as Ln, DeviceToolCloseInput as Lo, ServerAuthSessionMethod as Lp, OrchestrationSearchThreadsError as Lr, RelayEnvironmentLinkResponse as Ls, DesignImportTokensReceipt as Lt, put as Lu, ComputerUseHost as M, CodexSettings as Ma, OrchestrationV2RuntimeRequest as Mc, HttpPlatform as Md, TransportError as Mf, OrchestratorMcpThreadWaitInput as Mi, PullRequestStack as Ml, ComposerContextRecord as Mm, PreviewAutomationNoAvailableHostError as Mn, DeviceId as Mo, AuthTerminalOperateScope as Mp, AgentSessionSource as Mr, formatConnectReachable as Ms, DesignApplyRequest as Mt, getErrorSchemas as Mu, ComputerUseHostRegistration as N, CompressMode as Na, OrchestrationV2RuntimeRequestJson as Nc, make$12 as Nd, isHttpClientError as Nf, OrchestratorMcpThreadWaitResult as Ni, PullRequestState as Nl, OrchestrationMessageContext as Nm, PreviewAutomationOpenInput as Nn, DeviceNotFoundError as No, AuthTerminalReadScope as Np, FilesystemBrowseError as Nr, RelayApi as Ns, DesignGuideReceipt as Nt, getPayloadSchemas as Nu, COMPUTER_USE_JEV_TAKE_CODE as O, AntigravitySettings as Oa, OrchestrationV2ProviderTurnJson as Oc, ServeError as Od, HttpClientError as Of, set as Oh, OrchestratorMcpThreadReadInput as Oi, ThreadPullRequestLink as Ol, ProviderInstanceId as Om, PreviewAutomationExecutionError as On, DeviceBootError as Oo, AuthRelayReadScope as Op, AgentSessionImportProjectChangedError as Or, EnvironmentRequestInvalidError as Os, DesignRpcGroup as Ot, make$3 as Ou, ComputerUseHostReport as P, DATABASE_COMPACTION_RECOMMENDED_BYTES as Pa, OrchestrationV2SearchThreadError as Pc, empty as Pd, CurrentErrorReporters as Pf, ThreadMetadataMcpUpdateInput as Pi, PullRequestSummary as Pl, ReviewCommentContextRecord as Pm, PreviewAutomationRecordingArtifact as Pn, DeviceOperationError as Po, AuthWebSocketTicketUse as Pp, P4ProjectFile as Pr, RelayCloudEnvironmentHealthProofPayload as Ps, DesignGuideRequest as Pt, getSuccessSchemas as Pu, WsMcpRegistryProviderSignInStateRpc as Q, requiredScopesForProjectMutation as Qa, latestProviderTurnForAttempt as Qc, filterStatusOk as Qd, make$16 as Qf, EnvironmentThemeFile as Qi, VcsRepositoryDetectionError as Ql, EventId as Qm, PreviewAutomationTargetNotEditableError as Qn, DecisionInput as Qo, isStreamUint8Array as Qp, PeerLinkError as Qr, ORCHESTRATION_V2_WS_METHODS as Qs, DesignValidateRequest as Qt, compression as Qu, computerUseJevStepCode as R, DEFAULT_SERVER_SETTINGS as Ra, OrchestrationV2StoredEvent as Rc, jsonUnsafe as Rd, layer$1 as Rf, ScheduledTaskError as Ri, resolvePullRequestAuthorFilter as Rl, AuthSessionId as Rm, PreviewAutomationRecordingTooLargeError as Rn, DeviceToolError as Ro, authScopeRequiredResponse as Rp, OrchestrationSearchThreadsInput as Rr, RelayHookDeliveryProofPayload as Rs, DesignImportTokensRequest as Rt, normalize as Ru, anumber as S, TerminalNotRunningError as Sa, OrchestrationV2ProviderRetry as Sc, Path as Sd, setHeader$1 as Sf, empty$3 as Sh, OrchestratorMcpTaskCancelResult as Si, ProviderInteractionMode as Sl, MODEL_SLUG_ALIASES_BY_PROVIDER as Sm, PreviewAutomationClientDisconnectedError as Sn, KeybindingsConfigError as So, AuthMcpRegistrationError as Sp, AssetWorkspaceResolutionError as Sr, EnvironmentHttpConflictError as Ss, SelfImproveReviewers as St, getProviderAttachmentLimitError as Su, randomBytes as T, TerminalResizeError as Ta, OrchestrationV2ProviderThread as Tc, HttpServerError as Td, setUrlParams as Tf, isHeaders as Th, OrchestratorMcpThreadInterruptResult as Ti, RuntimeMode as Tl, PREFERRED_DEFAULT_CODEX_MODELS as Tm, PreviewAutomationDialogInput as Tn, SCRIPT_RUN_COMMAND_PATTERN as To, AuthOrchestrationReadScope as Tp, AttachmentCreateUploadUrlResult as Tr, EnvironmentHttpUnauthorizedError as Ts, DesignHumanApplyRequest as Tt, isSecurity as Tu, WsHubSyncConnectRpc as U, ServerSettings as Ua, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as Uc, setBody as Ud, jsonUnsafe$1 as Uf, PullRequestReviewGuide as Ui, SourceControlRepositoryError as Ul, ClientDeviceType as Um, PreviewAutomationResizeResult as Un, DeviceToolTargetInput as Uo, asUint8Array as Up, AGENT_ASSET_TOTAL_MAX_BYTES as Ur, RelayOkResponse as Us, DesignProposeRequest as Ut, middleware as Uu, RpcScopeAuthorization as V, ProjectSettingsOverrides as Va, OrchestrationV2ThreadForkSourcePoint as Vc, redirect as Vd, layerWeak as Vf, ApplicationProjectEvent as Vi, SourceControlProviderError as Vl, CheckpointScopeId as Vm, PreviewAutomationRequestQueueClosedError as Vn, DeviceToolOpenResult as Vo, NoContent as Vp, HubSyncError as Vr, RelayManagedEndpointRecoveryResponse as Vs, DesignLibraryManifest as Vt, add$1 as Vu, WsHubSyncDisconnectRpc as W, ServerSettingsError as Wa, OrchestrationV2ThreadShell as Wc, setHeader as Wd, raw$1 as Wf, PullRequestReviewGuideRun as Wi, VcsDriverKind as Wl, ClientOs as Wm, PreviewAutomationResultTooLargeError as Wn, DeviceToolUnavailableError as Wo, getPayloadEncoding as Wp, AgentAsset as Wr, RelayProtectedError as Ws, DesignRenderReceipt as Wt, params as Wu, WsMcpRegistryProviderSignInCompleteRpc as X, makeProviderSettingsSchema as Xa, isOrchestrationV2WorkActive as Xc, urlParams as Xd, FileTypeId as Xf, VcsListRefsInput as Xi, VcsProcessStdinWriteError as Xl, DpopFailureReason as Xm, PreviewAutomationTabNotFoundError as Xn, DECISION_MODELS as Xo, isNoContent as Xp, AgentAssetWriteInput as Xr, AUTO_WORKSPACE_UNDECIDED_REASON as Xs, DesignStylesRequest as Xt, make$6 as Xu, WsMcpRegistryProviderSignInCancelRpc as Y, makeBinaryPathSetting as Ya, isKnownOrchestrationV2EventType as Yc, uint8Array as Yd, FileSystem as Yf, TextGenerationError as Yi, VcsProcessSpawnError as Yl, ContextTransferId as Ym, PreviewAutomationStatus as Yn, deviceToolInstallMessage as Yo, getWithHeadersAnnotation as Yp, AgentAssetName as Yr, AUTO_WORKSPACE_NOTICE_TITLE as Ys, DesignStylesReceipt as Yt, addressFormattedWith as Yu, WsMcpRegistryProviderSignInStartRpc as Z, providerInstanceConfigEnabledFlag as Za, isProviderNativeSubagentThread as Zc, TypeId$13 as Zd, WatchBackend as Zf, VcsListRefsResult as Zi, VcsProcessTimeoutError as Zl, EnvironmentId as Zm, PreviewAutomationTabTargetInput as Zn, DecisionError as Zo, isStreamSchema$1 as Zp, agentAssetTotalBytes as Zr, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as Zs, DesignValidateReceipt as Zt, TracerDisabledWhen as Zu, sha512 as _, DEFAULT_TERMINAL_ID as _a, OrchestrationV2GetShellSnapshotError as _c, limitsServices as _d, make$14 as _f, ThreadId as _h, OrchestratorMcpRequestSecretInput as _i, StoredProjectIcon as _l, CustomModelSetting as _m, PREVIEW_AUTOMATION_SERVER_OPERATIONS as _n, PreviewViewportSetting as _o, AuthFilesystemReadScope as _p, AssetWorkspaceAssetInspectionError as _r, EnvironmentAuthenticatedPrincipal as _s, SelfImproveFindings as _t, ChatImageAttachment as _u, documentContentDigest as a, isProviderAvailable as aa, OrchestrationV2ContextTransfer as ac, fromHeaders as ad, acceptJson as af, PositiveInt as ah, OrchestratorMcpDelegateTaskResult as ai, OrchestrationProjectShell as al, decode as am, getStreamSchemas as an, withIdleCompaction as ao, ExecutionEnvironmentDescriptor as ap, ReviewDiffFileStat as ar, INCOGNITO_BROWSER_PROFILE_ID as as, WsSelfImproveSubscribeSettingsRpc as at, McpServerTransport as au, aexists as b, TerminalCwdStatError as ba, OrchestrationV2ProviderFailure as bc, decodeField as bd, put$1 as bf, TurnItemId as bh, OrchestratorMcpScheduleTaskResult as bi, ProviderApprovalDecision as bl, DEFAULT_TEXT_GENERATION_MODEL as bm, PreviewAutomationActInput as bn, KeybindingRule as bo, AuthMcpApprovalError as bp, AssetWorkspaceContextResolutionError as br, EnvironmentHttpBadRequestError as bs, SelfImproveResult as bt, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as bu, parseDesign as c, EDITORS as ca, OrchestrationV2ConversationMessageJson as cc, ParsedSearchParams as cd, bearerToken as cf, ProviderThreadId as ch, OrchestratorMcpEnvironmentLinkInput as ci, ProjectListEntriesError as cl, makeParser as cm, WorktreeMcpHandoffInput as cn, PREVIEW_URL_MAX_LENGTH as co, ThreadEnvMode as cp, ATTACHMENT_UPLOAD_URL_TTL_MS as cr, DesktopAppActivationErrorCode as cs, WsSelfImproveUpdateSettingsRpc as ct, mcpProviderSupport as cu, reviewState as d, ExternalLauncherEditorSpawnError as da, OrchestrationV2DispatchCommandResult as dc, schemaHeaders as dd, bodyJsonUnsafe as df, RpcClientId as dh, OrchestratorMcpEnvironmentTarget as di, ProjectReadFileError as dl, AcpRegistryOperationError as dm, UsageReadError as dn, PreviewControlRequiredError as do, AuthAccessTokenType as dp, AssetGitHubMediaUrlValidationError as dr, DesktopBrowserEvent as ds, WORKTREE_SETUP_ERROR_MAX_LENGTH as dt, OrchestrationGetFullThreadDiffError as du, ServerProvider as ea, OrchestrationV2AppThread as ec, tracer as ed, matchStatus as ef, MessageId as eh, OrchestratorMcpCapabilitiesResult as ei, orchestrationV2RunWorkStartedAt as el, isWithHeadersValue as em, ServerClient as en, resolveIdleCompaction as eo, PlatformError as ep, PreviewAutomationUnavailableError as er, ThreadDecision as es, WsMcpRegistryProviderSignOutRpc as et, ModelSelection as eu, selectLayoutItems as f, ExternalLauncherUnknownEditorError as fa, OrchestrationV2DispatchRejectionReason as fc, schemaSearchParams as fd, bodyStream as ff, RunAttemptId as fh, OrchestratorMcpEnvironmentUnlinkInput as fi, ProjectScript as fl, AcpRegistryOperationErrorReason as fm, DesktopHostTelemetryMessage as fn, PreviewInvalidUrlError as fo, AuthAccessWriteScope as fp, AssetPreviewTypeValidationError as fr, DESKTOP_UPDATE_RESTART_MARKER_FILE as fs, WORKTREE_SETUP_STAGE_ORDER as ft, OrchestrationGetTurnDiffError as fu, sha384 as g, ProviderUploadFeedbackError as ga, OrchestrationV2ExecutionNodeJson as gc, isPersistedFile as gd, get$1 as gf, SecretRef as gh, OrchestratorMcpListScheduledTasksResult as gi, ProjectWriteFileError as gl, ANTIGRAVITY_DEFAULT_MODEL as gm, McpCapabilityUnavailableError as gn, PreviewTabId as go, AuthEnvironmentScopes as gp, AssetSigningKeyLoadError as gr, EnvironmentAuthenticatedAuth as gs, SelfImproveEvidence as gt, ChatFileAttachment as gu, sha256$1 as h, ProviderSetupError as ha, OrchestrationV2ExecutionNode as hc, TypeId$9 as hd, del$1 as hf, ScheduledTaskId as hh, OrchestratorMcpListScheduledTasksInput as hi, ProjectUpdatePayload as hl, resolveOfficialAcpRegistryIconUrl as hm, ResourceMonitorEvent as hn, PreviewStreamHostSetup as ho, AuthEnvironmentMaintainScope as hp, AssetProjectFaviconResolutionError as hr, EnvironmentAuthInvalidError as hs, SelfImproveError as ht, ChatAttachmentId as hu, diagnostic as i, environmentThemeFileHasColors as ia, OrchestrationV2ContextHandoffJson as ic, requestPreResponseHandlers as id, schemaBodyJson as if, PortSchema as ih, OrchestratorMcpDelegateTaskInput as ii, UsageLimitSourceError as il, Retry as im, ClientAbort as in, secretSettingsFields as io, make$17 as ip, McpAppRequestError as ir, DEFAULT_BROWSER_PROFILE_ID as is, WsSelfImproveSetMemoryMirrorRpc as it, McpServerRuntimeState as iu, ComputerUseError as j, ClaudeSettings as ja, OrchestrationV2RunStatus as jc, toResponse as jd, StatusCodeError as jf, OrchestratorMcpThreadSendResult as ji, PullRequestOperationError as jl, isProviderDriverKind as jm, PreviewAutomationNavigateInput as jn, DeviceHostUnavailableError as jo, AuthStandardClientScopes as jp, AgentSessionScanError as jr, connectReachabilityHelpUrl as js, DesignApplyReceipt as jt, get as ju, COMPUTER_USE_MAX_OUTPUT_CHARS as k, BackgroundActivityProfile as ka, OrchestrationV2RunAttemptJson as kc, causeResponse as kd, HttpClientErrorSchema as kf, bytes as kh, OrchestratorMcpThreadReadResult as ki, ThreadPullRequestLinkSource as kl, ProviderInstanceMutation as km, PreviewAutomationInvalidSelectorError as kn, DeviceEasAccountError as ko, AuthRelayWriteScope as kp, AgentSessionImportProjectNotFoundError as kr, EnvironmentResourceNotFoundError as ks, DesignServiceError as kt, reflect as ku, patchNode as l, ExternalLauncherBrowserSpawnError as la, OrchestrationV2DelegatedFrom as lc, TypeId$8 as ld, bodyFormData as lf, ProviderTurnId as lh, OrchestratorMcpEnvironmentLinkResult as li, ProjectMutation as ll, AcpRegistryListProvidersResult as lm, WorktreeMcpHandoffResult as ln, PREVIEW_VIEWPORT_PRESET_IDS as lo, AuthAccessReadScope as lp, AssetAttachmentNotFoundError as lr, DesktopAppActivationResponse as ls, WsSubscribeThreadDecisionsRpc as lt, resolveRegistryEntryEnabled as lu, validateDesign as m, ExternalLauncherUnsupportedTargetError as ma, OrchestrationV2DomainEventJson as mc, MultipartError as md, bodyUrlParams as mf, RuntimeRequestId as mh, OrchestratorMcpFailure as mi, ProjectSearchEntriesError as ml, officialAcpRegistryIconUrlForAgentId as mm, ResourceMonitorCommand as mn, PreviewSessionLookupError as mo, AuthDiagnosticsReadScope as mp, AssetProjectFaviconNotFoundError as mr, RelayClientInstallFailedError as ms, SelfImproveDecision as mt, ChatAttachment as mu, canonicalSerialize as n, ServerProviderUpdateError as na, OrchestrationV2CheckpointJson as nc, addUrlAttributes as nd, TypeId$14 as nf, NonNegativeInt as nh, OrchestratorMcpCreateThreadsInput as ni, ToolActivityIcon as nl, allShort as nm, isWrapper as nn, resolveProviderInstanceEnabled as no, isPlatformError as np, PreviewAutomationWaitForInput as nr, resolveDecisionBackend as ns, WsSelfImproveDismissFindingsRpc as nt, McpServerId as nu, fileHash as o, isProviderTextGenerationCapable as oa, OrchestrationV2ContextTransferJson as oc, toHeaders as od, appendUrlParams as of, ProjectId as oh, OrchestratorMcpDeleteScheduledTaskInput as oi, Project as ol, decodeSchema as om, isStreamSchema as on, FILL_PREVIEW_VIEWPORT as oo, ORCHESTRATION_PROTOCOL_HEADER as op, ReviewDiffPreviewSource as or, findBrowserProfile as os, WsSelfImproveSubscribeThreadFindingsRpc as ot, PluginId as ou, semanticDiff as p, ExternalLauncherUnsupportedEditorError as pa, OrchestrationV2DomainEvent as pc, toURL as pd, bodyText as pf, RunId as ph, OrchestratorMcpEnvironmentUnlinkResult as pi, ProjectSearchContentsError as pl, AcpRegistryProbeResult as pm, DesktopTelemetryControlMessage as pn, PreviewListResult as po, AuthClientMetadataDeviceType as pp, AssetProjectFaviconInspectionError as pr, DesktopBackendBootstrap as ps, Service as pt, OrchestrationGetTurnDiffResult as pu, WsHubSyncSetModeRpc as q, globalIdleCompaction as qa, OrchestrationWorkflowFileError as qc, stream as qd, uint8Array$1 as qf, GitManagerError as qi, VcsProcessOutputLimitError as ql, CommandId as qm, PreviewAutomationSetColorSchemeResult as qn, LOCAL_DEVICE_HOST_ID as qo, getStatusErrorSchema as qp, AgentAssetKind as qr, getParamNames as qs, DesignStatusReceipt as qt, use as qu, computeLayout as r, ServerSelfUpdateError as ra, OrchestrationV2CheckpointScopeJson as rc, appendPreResponseHandlerUnsafe as rd, inspect as rf, PlanId as rh, OrchestratorMcpCreateThreadsResult as ri, ToolActivityNativeAppReference as rl, hasBody as rm, make$1 as rn, secretSetting as ro, systemError as rp, SERVER_BROWSER_AUTOMATION_CLIENT_ID as rr, BUILT_IN_BROWSER_PROFILES as rs, WsSelfImproveSaveFindingsRpc as rt, McpServerName as ru, isConfinedRelativePath as s, isProviderWorkspaceSnapshotCurrent as sa, OrchestrationV2ConversationMessage as sc, HttpServerRequest as sd, basicAuth as sf, ProviderSessionId as sh, OrchestratorMcpDeleteScheduledTaskResult as si, ProjectCreatePayload as sl, encoder$2 as sm, WorktreeMcpFailure as sn, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as so, ORCHESTRATION_PROTOCOL_QUERY_PARAM as sp, ReviewDiffPreviewSourceKind as sr, resolveBrowserProfiles as ss, WsSelfImproveUndoSaveRpc as st, RESERVED_MCP_SERVER_NAME as su, buildIndexes as t, ServerProviderCompatibilityStatus as ta, OrchestrationV2AppThreadJson as tc, addHeaderAttributes as td, MaxBodySize as tf, NodeId as th, OrchestratorMcpClientRequestId as ti, parseGoalCommand as tl, withHeaders as tm, exitSchema as tn, resolveProjectProviderInstanceEnabled as to, badArgument as tp, PreviewAutomationUnsupportedClientError as tr, ThreadDecisionsReadError as ts, WsRpcGroup as tt, McpRegistryRpcError as tu, resolveValue as u, ExternalLauncherCommandNotFoundError as ua, OrchestrationV2DispatchCommandError as uc, schemaCookies as ud, bodyJson as uf, RawEventId as uh, OrchestratorMcpEnvironmentLinksResult as ui, ProjectMutationError as ul, AcpRegistryListSessionsResult as um, WorktreeMcpStatusResult as un, PreviewClearProfileError as uo, AuthAccessStreamError as up, AssetCreateUrlInput as ur, DesktopBrowserCommand as us, SecretRequestError as ut, supportsProviderMcpSignIn as uu, Hash as v, TerminalCwdNotDirectoryError as va, OrchestrationV2GetThreadProjectionError as vc, makeConfig as vd, post$1 as vf, TrimmedNonEmptyString as vh, OrchestratorMcpRequestSecretResult as vi, DEFAULT_PROVIDER_INTERACTION_MODE as vl, DEFAULT_MODEL as vm, PREVIEW_AUTOMATION_V1_OPERATIONS as vn, symbol as vo, AuthFilesystemWriteScope as vp, AssetWorkspaceAssetNotFoundError as vr, EnvironmentCloudEndpointUnavailableError as vs, SelfImproveLabel as vt, PROVIDER_SEND_TURN_MAX_FILE_BYTES as vu, concatBytes as w, TerminalProviderInstanceNotFoundError as wa, OrchestrationV2ProviderSessionJson as wc, ClientAbort$1 as wd, setUrl as wf, fromRecordUnsafe as wh, OrchestratorMcpThreadInterruptInput as wi, ProviderUserInputAnswers as wl, ModelCapabilities as wm, PreviewAutomationControlReason as wn, ResolvedKeybindingRule as wo, AuthOrchestrationOperateScope as wp, AttachmentCreateUploadUrlInput as wr, EnvironmentHttpInternalServerError as ws, UserInputRankError as wt, Service$1 as wu, ahash as x, TerminalHistoryError as xa, OrchestrationV2ProviderGoal as xc, make$8 as xd, setBody$1 as xf, CurrentRedactedNames as xh, OrchestratorMcpTaskCancelInput as xi, ProviderApprovalOption as xl, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as xm, PreviewAutomationActInputs as xn, KeybindingsConfig as xo, AuthMcpClientAccess as xp, AssetWorkspacePathValidationError as xr, EnvironmentHttpCommonError as xs, SelfImproveReview as xt, PersistChatAttachmentsError as xu, abytes as y, TerminalCwdNotFoundError as ya, OrchestrationV2PlanArtifact as yc, toPersisted as yd, prependUrl as yf, TrimmedString as yh, OrchestratorMcpSaveScheduledTaskInput as yi, DEFAULT_RUNTIME_MODE as yl, DEFAULT_MODEL_BY_PROVIDER as ym, PREVIEW_RECORDING_STOP_TIMEOUT_MS as yn, value as yo, AuthGrantScope as yp, AssetWorkspaceContextNotFoundError as yr, EnvironmentHttpApi as ys, SelfImproveRequest as yt, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as yu, CLIENT_GUARDED_RPC_SCOPES as z, GitHubHost as za, OrchestrationV2Subagent as zc, mergeCookies as zd, report as zf, ScheduledTaskWebhookDeliveryId as zi, SourceControlCloneRepositoryInput as zl, CheckpointId as zm, PreviewAutomationRecordingTransferError as zn, DeviceToolListResult as zo, authScopeResponse as zp, OrchestrationThreadSearchMatch as zr, RelayManagedEndpointOrigin as zs, DesignInspectReceipt as zt, HttpRouter as zu };
|
|
32586
32603
|
|
|
32587
|
-
//# sourceMappingURL=runtime-
|
|
32604
|
+
//# sourceMappingURL=runtime-CWPUW_8Y.mjs.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,t}from"./react-BUfh6y28.js";import{t as n}from"./jsx-runtime-DJeoFXNw.js";import{t as r}from"./FieldControl-Btl-j-6W.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--rtZ2Jji.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{t as flowchart}from"./O65XPQGZ-BPK2EL3_.js";
|