@p4code/cli 0.9.18 → 0.9.19
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/AcpMcpStdioBridge-DbCGhPmy.mjs +3 -0
- package/dist/{AcpMcpStdioBridge-4vUttgH1.mjs → AcpMcpStdioBridge-DxIZyDJz.mjs} +4 -4
- package/dist/{Effect-_Rz7VLdg.mjs → Effect-BqRgldaH.mjs} +20 -4
- package/dist/{Schema-APnY3Ozr.mjs → Schema-CkGB1Dgx.mjs} +2 -2
- package/dist/{Stream-CJtpwu3-.mjs → Stream-DZTo5F3N.mjs} +2 -2
- package/dist/{TraceDiagnostics-CeQ-TvdA.mjs → TraceDiagnostics-BU8mTsuy.mjs} +278 -50
- package/dist/bin.mjs +2 -2
- package/dist/{binCli-DzRO6f_z.mjs → binCli-CJGD6FcB.mjs} +297 -125
- package/dist/claude-history-worker.mjs +1 -1
- package/dist/{claudeHistoryWorker-B6KX_N9G.mjs → claudeHistoryWorker-Cst8OnLH.mjs} +1 -1
- package/dist/{claudeHistoryWorker-DZ1Ft4NK.mjs → claudeHistoryWorker-r4mV4Dxy.mjs} +2 -2
- package/dist/client/.vite/manifest.json +2143 -2131
- package/dist/client/assets/{2NI2N5EU-Ds9jiLPm.js → 2NI2N5EU-dXNVRqH0.js} +2 -2
- package/dist/client/assets/{4UO7MD6I-BWEQQJHY.js → 4UO7MD6I-BnTV2LIU.js} +2 -2
- package/dist/client/assets/{5B3SVYGG-lcm66GRf.js → 5B3SVYGG-BW_NJOn9.js} +2 -2
- package/dist/client/assets/{5GK6JWQ2-DegG64te.js → 5GK6JWQ2-zR4M88FU.js} +2 -2
- package/dist/client/assets/{5N7A7DKN-CDv2ioO3.js → 5N7A7DKN-DIzrmjXm.js} +2 -2
- package/dist/client/assets/{5OC2THR4-CaZVvwg8.js → 5OC2THR4-D9gz0spY.js} +2 -2
- package/dist/client/assets/{5S6HY5KT-B8WMtvrw.js → 5S6HY5KT-BFO1LsJz.js} +2 -2
- package/dist/client/assets/{6IMQ5BUJ-R-et-GtO.js → 6IMQ5BUJ-CflGSI2z.js} +2 -2
- package/dist/client/assets/{6OLKWJ4F-CdOZHr7D.js → 6OLKWJ4F-B_-tUtQE.js} +2 -2
- package/dist/client/assets/{74OO7NKP-DVS5qE0v.js → 74OO7NKP-CNFGk064.js} +2 -2
- package/dist/client/assets/{75O6YZUN-B6bJpGs2.js → 75O6YZUN-DSw7e3qz.js} +2 -2
- package/dist/client/assets/{77XECAW3-DDozcJnk.js → 77XECAW3-C1endahg.js} +2 -2
- package/dist/client/assets/{ABYRPUBD-BZd5-ucB.js → ABYRPUBD-DGyrlbqz.js} +2 -2
- package/dist/client/assets/AlertDialogRoot-CfwItD_i.js +2 -0
- package/dist/client/assets/{AnimatedHeight-CsOfc5H1.js → AnimatedHeight-DG3oq8Fl.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell--2lH1vql.js → AuthSurfaceShell-uHFuClfP.js} +2 -2
- package/dist/client/assets/{BB2UYUI2-DAb-WdIu.js → BB2UYUI2-DJtfqV3f.js} +2 -2
- package/dist/client/assets/{BUM34MOA-DMU6CGcz.js → BUM34MOA-B4MgXIYY.js} +2 -2
- package/dist/client/assets/{CEQABKGZ-BnDJUiDl.js → CEQABKGZ-CnWbDLSz.js} +2 -2
- package/dist/client/assets/{CXAC5362-QKBU6D2s.js → CXAC5362-DdZ6n5qP.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-Dg1SR7pz.js +2 -0
- package/dist/client/assets/ChatMarkdown-eJNo9q4b.js +49 -0
- package/dist/client/assets/CheckboxIndicator-BpGIx6Ze.js +2 -0
- package/dist/client/assets/{ClippedText-aNLi0IDp.js → ClippedText-Cny-j-4e.js} +2 -2
- package/dist/client/assets/CodexSetupSection.logic-C4KEUUA1.js +2 -0
- package/dist/client/assets/CollapsiblePanel-vHsKk5wM.js +2 -0
- package/dist/client/assets/ComboboxClear-DI8al7ca.js +2 -0
- package/dist/client/assets/{ComboboxGroupLabel-BaZLyLCv.js → ComboboxGroupLabel-9alK0hYt.js} +2 -2
- package/dist/client/assets/{CommandBlock-Bg2O3rbF.js → CommandBlock-BOYakQHx.js} +2 -2
- package/dist/client/assets/CompositeRoot-OiiGu5cn.js +2 -0
- package/dist/client/assets/{ConnectAgentSurface-D-fMTn_R.js → ConnectAgentSurface-D9vE8btn.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-vOKtZfeV.js → ConnectionStatusDot-DL0Hsk-v.js} +2 -2
- package/dist/client/assets/{DRLTVNUE-DvpJAT6K.js → DRLTVNUE-D99K7hWK.js} +2 -2
- package/dist/client/assets/{DYY6UVD2-DFSg5DAZ.js → DYY6UVD2-BF6iP9-o.js} +2 -2
- package/dist/client/assets/DevicePanel-BzIRsUjQ.js +2 -0
- package/dist/client/assets/DeviceSetup-DQqwNSXQ.js +2 -0
- package/dist/client/assets/DialogTitle-BNEjkHZl.js +2 -0
- package/dist/client/assets/{DiffCommentAnnotation-CAml763Q.js → DiffCommentAnnotation-DOn5F9Vx.js} +3 -3
- package/dist/client/assets/{DiffFileTree-2Y-Da6MW.js → DiffFileTree-C7d_tSjH.js} +2 -2
- package/dist/client/assets/DiffPanel-zzTYLQBt.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-Czi5bOUV.js → DiffWorkerPoolProvider-CHaL1Ona.js} +3 -3
- package/dist/client/assets/{EmbeddedDesign-AHra-cLY.js → EmbeddedDesign-DZezJSS1.js} +8 -8
- package/dist/client/assets/{EnvironmentMachineIcon-BnMVjB89.js → EnvironmentMachineIcon-BrYDn6tR.js} +2 -2
- package/dist/client/assets/{ExpandableText-gKNgCxfU.js → ExpandableText-BsOIEd28.js} +2 -2
- package/dist/client/assets/{FNOVOB4O-D2IqnTWb.js → FNOVOB4O-B07Bu4_g.js} +2 -2
- package/dist/client/assets/{FieldControl-Bjdbc6Ii.js → FieldControl-Ua5R3Une.js} +2 -2
- package/dist/client/assets/{FileDiff-Di0hvnyJ.js → FileDiff-CAhD0qa4.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-2-RLs_YZ.js → FilePreviewPanel-Ptxxfl5h.js} +6 -6
- package/dist/client/assets/FoldedSettingsSection-C-4eZXtv.js +2 -0
- package/dist/client/assets/{HDGCDEEZ-AZF834xy.js → HDGCDEEZ-BiCUaNcl.js} +2 -2
- package/dist/client/assets/{HSJLKHB7-Dtz-7WMf.js → HSJLKHB7-MsC8mniI.js} +2 -2
- package/dist/client/assets/{Icons-BzIBDVKW.js → Icons-D8Idteuf.js} +2 -2
- package/dist/client/assets/Input-BtekXNnW.js +2 -0
- package/dist/client/assets/{IntervalSecondsField-Fdrpvkqj.js → IntervalSecondsField-Aqwzi0Sz.js} +2 -2
- package/dist/client/assets/JZOYTAAL-B8yh1QUr.js +1 -0
- package/dist/client/assets/{K3MD6TGW-BPz_yQfQ.js → K3MD6TGW-CkU_KXkd.js} +2 -2
- package/dist/client/assets/{K7RP3OMA-C-IhAYzY.js → K7RP3OMA-DLs66X2w.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-DjD-8Wsr.js → KeybindingsSettings.logic-DNTed1xn.js} +2 -2
- package/dist/client/assets/{LHDIQX7Q-Dw7FK-yZ.js → LHDIQX7Q-BOSadp0O.js} +2 -2
- package/dist/client/assets/{LUXOKEGN-Cp4yLfcO.js → LUXOKEGN-qg2nPaOP.js} +2 -2
- package/dist/client/assets/{LinkMachineSelect-v3ZAAPFG.js → LinkMachineSelect-CQIJcmq4.js} +2 -2
- package/dist/client/assets/{MathTypeset-CAVYwtpt.js → MathTypeset-B_2pC76G.js} +2 -2
- package/dist/client/assets/ModelLiveLayer-BdDN1RwJ.js +3 -0
- package/dist/client/assets/{N3JZAHOW-sZve4CbV.js → N3JZAHOW-DkFZrX8t.js} +2 -2
- package/dist/client/assets/{NUIALGQ3-DMlKhtdq.js → NUIALGQ3-DF_hOTNF.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-B0ChXuQG.js → NoProjectsHero-DIDw2XWy.js} +2 -2
- package/dist/client/assets/{O65XPQGZ-COhBlGA1.js → O65XPQGZ-DX7_CzKu.js} +2 -2
- package/dist/client/assets/{O7XIQ6OM-D-y75rjS.js → O7XIQ6OM-mHLqolvI.js} +2 -2
- package/dist/client/assets/{OFQON5FD-kw-f4mV4.js → OFQON5FD-Suig0WTF.js} +2 -2
- package/dist/client/assets/{P4ConnectAccountPages-BXM_FJyy.js → P4ConnectAccountPages-naPvNZLz.js} +2 -2
- package/dist/client/assets/{P4ConnectSidebarSignIn-D8uwPPR6.js → P4ConnectSidebarSignIn-D2rgfUAh.js} +2 -2
- package/dist/client/assets/{PJQHF43J-Dww1R-k6.js → PJQHF43J-7rnsehAx.js} +2 -2
- package/dist/client/assets/PanelLayoutControls-D6h4yyW-.js +216 -0
- package/dist/client/assets/{PierreEntryIcon-C-5f-jFb.js → PierreEntryIcon-0R4z7KQU.js} +2 -2
- package/dist/client/assets/PopoverHandle-BxV9_kh8.js +2 -0
- package/dist/client/assets/PreviewPanel-DCN5UudG.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-BVdLNACE.js +2 -0
- package/dist/client/assets/{ProjectFavicon-CPvmNs3J.js → ProjectFavicon-DJmxMkvz.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-blbck4gY.js → ProjectIconPickerDialog-3Bcbbvvc.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-Cesz5yVS.js → ProjectMonogram-Bb9wZVNY.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-BXGE9cPY.js → ProviderAuthTerminal-mgY-tn0M.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-D3VH0Z__.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-CRvI8mDe.js → ProviderSettingsForm-CGySH9bP.js} +2 -2
- package/dist/client/assets/PullRequestCodeTab-D-J3laup.js +6 -0
- package/dist/client/assets/{RHNBAITX-CY4FKVtu.js → RHNBAITX-Ddcb7a4G.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-DK9ZCAf4.js → ReadOnlySourcePreview-CUrcvaQB.js} +2 -2
- package/dist/client/assets/{RedactedSensitiveText-DrIhPFXw.js → RedactedSensitiveText-DiLAhy4C.js} +2 -2
- package/dist/client/assets/RenderErrorBoundary-DNjP1Gq4.js +23 -0
- package/dist/client/assets/{RightPanelResizeHandle-DBCfKzRv.js → RightPanelResizeHandle-BKZPxtjZ.js} +2 -2
- package/dist/client/assets/{SLD4V6NK-Dtrbq5qR.js → SLD4V6NK-CAdpUQd9.js} +2 -2
- package/dist/client/assets/ScheduledTasksSettings-BIqva7uG.js +6 -0
- package/dist/client/assets/{ScopedSwitch-DQHfQgMZ.js → ScopedSwitch-CjWqxV6P.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-B9Aiu69u.js → ScrollAreaCorner-BNGMax5h.js} +2 -2
- package/dist/client/assets/{SecretInput-CxJl9pux.js → SecretInput-F_2AS4sm.js} +2 -2
- package/dist/client/assets/SelectScrollUpArrow-r18qpNEu.js +2 -0
- package/dist/client/assets/{SelfImproveSettingsSection-yFj7aCio.js → SelfImproveSettingsSection-dyJbezur.js} +2 -2
- package/dist/client/assets/{SettingsPanels-H_7XUe5G.js → SettingsPanels-BwrWyM3f.js} +7 -7
- package/dist/client/assets/{SettingsPanels.logic-BYLv56aj.js → SettingsPanels.logic-DWRYwc9b.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-pJqEfHRd.js → SettingsScopeNotice-DpC9Q9ae.js} +2 -2
- package/dist/client/assets/{SidebarStageBackdrop-DWShR_RZ.js → SidebarStageBackdrop-ByWEF0y2.js} +2 -2
- package/dist/client/assets/{T3PCR2KE-BFmO9IZ-.js → T3PCR2KE-BsP9x4U3.js} +2 -2
- package/dist/client/assets/{TKWO2OVW-DMeVANpK.js → TKWO2OVW-BONiqXri.js} +2 -2
- package/dist/client/assets/{TSHNXIZL-COvYTPCc.js → TSHNXIZL-CLTZIB-s.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-BxOl9N6E.js → ThemeEditorPanel-C7o3GtWa.js} +3 -3
- package/dist/client/assets/{ThreadDetailsItemsMenu-BXQbo6bY.js → ThreadDetailsItemsMenu-Bq_XM62t.js} +40 -40
- package/dist/client/assets/ThreadTerminalDrawer-CD5oxZhC.js +5 -0
- package/dist/client/assets/TooltipProvider-DPt8xz_3.js +2 -0
- package/dist/client/assets/{UQJE5E4I-CajoppS3.js → UQJE5E4I-BS_wwVFT.js} +2 -2
- package/dist/client/assets/{USNYFO5S-BQLaJAkC.js → USNYFO5S-CpDVNtuT.js} +2 -2
- package/dist/client/assets/{Virtualizer-kAxtf9JI.js → Virtualizer-BWztABfX.js} +2 -2
- package/dist/client/assets/{WEVWDWVA-Bn1CMBLe.js → WEVWDWVA-4IVaqPOG.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-KdZMrP13.js → WorkspaceBreadcrumb-BHensDdi.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-VqvvyrKx.js → WorkspacePageContainer-CCJOwHlv.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-Ca7-ugiS.js → WorkspacePageHeader-C9Tpr_np.js} +2 -2
- package/dist/client/assets/{X5RFHQXM-CPBgn0uR.js → X5RFHQXM-DO1k5hPx.js} +2 -2
- package/dist/client/assets/{X62E3GBT-DEsBFWSE.js → X62E3GBT-DR5ebldd.js} +2 -2
- package/dist/client/assets/{XBNEOJTC-rIiejuIa.js → XBNEOJTC-D6Kx02Ci.js} +2 -2
- package/dist/client/assets/{YHV2MVVZ-FepTeOr1.js → YHV2MVVZ-B7xQdu1d.js} +2 -2
- package/dist/client/assets/{YURCZMG2-Co7j1onF.js → YURCZMG2-vpRi9ruy.js} +2 -2
- package/dist/client/assets/{YVG2LODB-CH8YtqJ9.js → YVG2LODB-BPr-N_Eh.js} +2 -2
- package/dist/client/assets/_chat-B7MuBHoN.js +47 -0
- package/dist/client/assets/{_chat.design-C593M39o.js → _chat.design-JY93KEj-.js} +2 -2
- package/dist/client/assets/{_chat.index-DZmhCx_Q.js → _chat.index-BLQil4HT.js} +2 -2
- package/dist/client/assets/{_chat.new-BLxqLetm.js → _chat.new-BUUjlaam.js} +3 -3
- package/dist/client/assets/_chat.pull-requests-hoMASTBm.js +2 -0
- package/dist/client/assets/{alert-BdISKl4u.js → alert-Eh-IusVP.js} +2 -2
- package/dist/client/assets/{alert-dialog-Broi1wym.js → alert-dialog-BxwvNOYD.js} +2 -2
- package/dist/client/assets/{assetUrls-DyJx-URx.js → assetUrls-Bk8CvVQ5.js} +2 -2
- package/dist/client/assets/assets-w0TTeveX.js +2 -0
- package/dist/client/assets/{browserHistoryStore-zdRsIuMc.js → browserHistoryStore-CQgs_U0x.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-aye_Gpt4.js → browserLinkTarget-BD9wK52f.js} +2 -2
- package/dist/client/assets/{checkbox-ueGFMqVv.js → checkbox-CDoyvSyH.js} +2 -2
- package/dist/client/assets/{color-picker-CUoPp4AJ.js → color-picker-BOsv4n_B.js} +2 -2
- package/dist/client/assets/{combobox-BfOjf6Iu.js → combobox-BJsEk7ze.js} +2 -2
- package/dist/client/assets/{command-CeMH9lgx.js → command-Cg83G2rG.js} +2 -2
- package/dist/client/assets/{connect-CQUjsv6p.js → connect-C7ENaX3L.js} +2 -2
- package/dist/client/assets/connect-agent-BEYL9KOm.js +2 -0
- package/dist/client/assets/{design-BL2REeQ-.js → design-pZfTAgOJ.js} +2 -2
- package/dist/client/assets/{device-DUMKyegd.js → device-CG5GzxuX.js} +2 -2
- package/dist/client/assets/{dialog-BzESHWgr.js → dialog-wBelv1Ac.js} +2 -2
- package/dist/client/assets/diffPanelStore-C8bCQWTi.js +2 -0
- package/dist/client/assets/{diffRendering-BnN6RWwy.js → diffRendering-C_l9f0DJ.js} +2 -2
- package/dist/client/assets/{dist--Lo1A95S.js → dist-1X_vspyy.js} +3 -3
- package/dist/client/assets/{draft-input-BozMgkbl.js → draft-input-BhYlt4Pu.js} +2 -2
- package/dist/client/assets/{duoViewer-mOZwt5UN.js → duoViewer-C9zEhnho.js} +2 -2
- package/dist/client/assets/{dynamic-3CmgXeht.js → dynamic--1QgBotz.js} +3 -3
- package/dist/client/assets/{embeddedScripts-g3gqCUmg.js → embeddedScripts-B_jWJYkI.js} +2 -2
- package/dist/client/assets/{empty-CeYEMFdG.js → empty-CJnssipy.js} +2 -2
- package/dist/client/assets/entities-CRXY8xy3.js +2 -0
- package/dist/client/assets/{fileLinks-LQyYck3z.js → fileLinks-Bg40qEqI.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-CY-keZ2e.js → fileTreeExpansion-C_MZA2Fb.js} +2 -2
- package/dist/client/assets/fold-vertical-CN9ryhZz.js +2 -0
- package/dist/client/assets/{getDiffFileInput-ClUa7N40.js → getDiffFileInput-PLuWhYlb.js} +2 -2
- package/dist/client/assets/{htmlRender-CxBGTvqW.js → htmlRender-DNX1FsUO.js} +2 -2
- package/dist/client/assets/index-BeP8Inse.js +3 -0
- package/dist/client/assets/{input-K95B1E2P.js → input-Cd-93Wp0.js} +2 -2
- package/dist/client/assets/{input-group-BAbOiIZs.js → input-group-CsS-Psw7.js} +2 -2
- package/dist/client/assets/{kbd-D9Q8zN3_.js → kbd-DB5SHS11.js} +2 -2
- package/dist/client/assets/{keybindings-C427DPQo.js → keybindings-DBugaGH3.js} +2 -2
- package/dist/client/assets/{lazy-BDrl-IrZ.js → lazy-8c6T_8yh.js} +4 -4
- package/dist/client/assets/{lazyRouteComponent-Bi84pz13.js → lazyRouteComponent-DtOhACEQ.js} +2 -2
- package/dist/client/assets/{link-B57I0_wC.js → link-BrJlIcQX.js} +2 -2
- package/dist/client/assets/{linkedPrompt-zM8XlD0_.js → linkedPrompt-CN6Qis59.js} +2 -2
- package/dist/client/assets/main-CNyrs4J_.js +37 -0
- package/dist/client/assets/main-h6l_SQzg.css +2 -0
- package/dist/client/assets/mediaReference-CJpFszQ0.js +2 -0
- package/dist/client/assets/{mediaSource-BQkNpHYP.js → mediaSource-D0cInV6V.js} +2 -2
- package/dist/client/assets/{modelScene-DWYEc7-j.js → modelScene-BmBrNhLd.js} +2 -2
- package/dist/client/assets/number-field-CSK9SRbZ.js +2 -0
- package/dist/client/assets/{observeResize-nOwAB2yP.js → observeResize-CFw3_anS.js} +2 -2
- package/dist/client/assets/{onboarding-BpYTNtvC.js → onboarding-Eqww5SU9.js} +2 -2
- package/dist/client/assets/openFileInPreview-D0wySgTe.js +2 -0
- package/dist/client/assets/{p4ProjectFile-Dkwk3dWQ.js → p4ProjectFile-BBI5SxD4.js} +2 -2
- package/dist/client/assets/{pair-Bc34xPWk.js → pair-DQR36eTM.js} +2 -2
- package/dist/client/assets/{pendingSendStore-ettG1x40.js → pendingSendStore-Dxq1oBH6.js} +2 -2
- package/dist/client/assets/{phoneViewer-BCeyyPaZ.js → phoneViewer-DLo78qRr.js} +2 -2
- package/dist/client/assets/{pierre-icons-C2-xRx0J.js → pierre-icons-uaZzWTro.js} +2 -2
- package/dist/client/assets/{popover-CtPuvMeZ.js → popover-DU7x_UNP.js} +2 -2
- package/dist/client/assets/{preview-DIIM6Lws.js → preview-CiDRJw3K.js} +2 -2
- package/dist/client/assets/{preview-CS0uw3GP.js → preview-DpJtvz_q.js} +2 -2
- package/dist/client/assets/previewMiniPlayerStore-D98YBqjW.js +2 -0
- package/dist/client/assets/primary-B5Ds-X9y.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-7otRI1yH.js +2 -0
- package/dist/client/assets/projectFilesQueryState-CgQDudyR.js +2 -0
- package/dist/client/assets/{projectScriptEditor-Bp7idsB3.js → projectScriptEditor-BvwaSAI1.js} +2 -2
- package/dist/client/assets/providerSkills-BzFbjrTC.js +2 -0
- package/dist/client/assets/{pullRequestDetail.logic-8vF2qB9V.js → pullRequestDetail.logic-D9w_E_Dv.js} +3 -3
- package/dist/client/assets/{pullRequestIcons-6_4tgVDN.js → pullRequestIcons-gBL3Yt9x.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-C8_coQYO.js → pullRequestReviewStore-CDUFfLmu.js} +2 -2
- package/dist/client/assets/pullRequests-BZ7PzmTm.js +2 -0
- package/dist/client/assets/queries-CzRpIoRQ.js +2 -0
- package/dist/client/assets/query-B8d0w621.js +2 -0
- package/dist/client/assets/radio-group-XlBZKXvU.js +2 -0
- package/dist/client/assets/relay-BWVOLzv_.js +2 -0
- package/dist/client/assets/{renderScheduler-Cvu4oEGc.js → renderScheduler-B6SrQg1c.js} +2 -2
- package/dist/client/assets/{rightPanelStore-D-meSGn7.js → rightPanelStore-BuudmoUr.js} +2 -2
- package/dist/client/assets/runtime-DYDOkR3G.js +7 -0
- package/dist/client/assets/{runtimeModeConfig-MYD8WQl8.js → runtimeModeConfig-DyiI0NS9.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-DmlMHwKF.js → scheduledTasksSettings.logic-DK9Z9azP.js} +3 -3
- package/dist/client/assets/{scroll-area-D9QT2Odm.js → scroll-area-B1iVi_db.js} +2 -2
- package/dist/client/assets/{select-BtqP8nTL.js → select-Dn3MxyiK.js} +2 -2
- package/dist/client/assets/{selfImproveFindings-DZS7PCvJ.js → selfImproveFindings-D5ELz2sX.js} +2 -2
- package/dist/client/assets/server-DQkamj54.js +2 -0
- package/dist/client/assets/session-A0FOa5Fv.js +2 -0
- package/dist/client/assets/session-logic-21koHfxl.js +27 -0
- package/dist/client/assets/{settings-A-pqSt1Y.js → settings-RZUSGfch.js} +2 -2
- package/dist/client/assets/{settings.appearance-C_uChPSz.js → settings.appearance-C2NUZQFB.js} +2 -2
- package/dist/client/assets/settings.archived-BOhwFyi3.js +2 -0
- package/dist/client/assets/{settings.computer-use-Dg_7f0JL.js → settings.computer-use-BhT0XlhO.js} +2 -2
- package/dist/client/assets/settings.connections-CVIPNlOU.js +2 -0
- package/dist/client/assets/{settings.data-controls-SDdipjc2.js → settings.data-controls-GIrtB4_J.js} +2 -2
- package/dist/client/assets/{settings.decisions-CoyKjdc1.js → settings.decisions-BBnbf4E4.js} +2 -2
- package/dist/client/assets/{settings.designs-4eHPAt6y.js → settings.designs-BrpJ4wJk.js} +2 -2
- package/dist/client/assets/settings.diagnostics-H0YPr7JD.js +2 -0
- package/dist/client/assets/{settings.general-DAWqQIHm.js → settings.general-CuMxiE8w.js} +2 -2
- package/dist/client/assets/settings.integrations-bw-NYX6w.js +2 -0
- package/dist/client/assets/{settings.keybindings-B0oNRJrN.js → settings.keybindings-Mqx8YmX-.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-BI8-fEG8.js → settings.open-source-licenses-DppmDqdO.js} +2 -2
- package/dist/client/assets/settings.plugins-PhsBK5Nz.js +5 -0
- package/dist/client/assets/settings.projects-DvjxFMyV.js +4 -0
- package/dist/client/assets/settings.providers-DZac28bF.js +3 -0
- package/dist/client/assets/{settings.scheduled-tasks-Bx6ZIK0R.js → settings.scheduled-tasks-_8iDYzJF.js} +2 -2
- package/dist/client/assets/{settings.secrets-Dt4ORQnt.js → settings.secrets-B5WZy_fN.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-CytMd2pC.js → settings.snap-shot-BThcjeQt.js} +2 -2
- package/dist/client/assets/settings.source-control-Cj9K4HE8.js +2 -0
- package/dist/client/assets/{settings.storage-BfvQd358.js → settings.storage-D3QQPs1U.js} +2 -2
- package/dist/client/assets/settingsLayout-LNYGC372.js +3 -0
- package/dist/client/assets/{sidebar-DbrWNN9-.js → sidebar-CCcDCy-Q.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-CZnpDNTf.js → sidebarProjectGrouping-Bj_Qatcf.js} +2 -2
- package/dist/client/assets/{skeleton-DxuQc9Kk.js → skeleton-dlFZVmO8.js} +2 -2
- package/dist/client/assets/{sourceControl-BbrGhAuF.js → sourceControl-Tyc4OKDH.js} +2 -2
- package/dist/client/assets/sourceControlClients-ECBkjM0e.js +2 -0
- package/dist/client/assets/{spinner-DmRIQvmI.js → spinner-fU7Q2OR1.js} +2 -2
- package/dist/client/assets/src-B7vcPG0D.js +15 -0
- package/dist/client/assets/terminal-links-CPJORRle.js +2 -0
- package/dist/client/assets/terminalSessions-B00GvWIU.js +2 -0
- package/dist/client/assets/{textarea-C_3SxeEV.js → textarea-CEng2dlo.js} +2 -2
- package/dist/client/assets/{themePalette-DSR5tBE9.js → themePalette-CcasVi_y.js} +3 -3
- package/dist/client/assets/{threadCheckpoints-D0dMlqZE.js → threadCheckpoints-D7P5EX0m.js} +2 -2
- package/dist/client/assets/{toggle-Zti3zuzr.js → toggle-DN8nwGi8.js} +2 -2
- package/dist/client/assets/{toggle-group-D015gcqT.js → toggle-group-Dx-ruC5S.js} +2 -2
- package/dist/client/assets/{tooltip-CAzkzAoH.js → tooltip-Da633nbs.js} +2 -2
- package/dist/client/assets/uiStateStore-aIXF8Zlu.js +2 -0
- package/dist/client/assets/unfold-vertical-CldLe1hB.js +2 -0
- package/dist/client/assets/{usage-BJA7zQoS.js → usage-DXoXMoKb.js} +2 -2
- package/dist/client/assets/{usageAccess-D5FAb4jV.js → usageAccess-RRnEiTSy.js} +2 -2
- package/dist/client/assets/{usageFormat-Njxx7Q49.js → usageFormat-D95Lw1XX.js} +2 -2
- package/dist/client/assets/{usageShortcuts-DuJeedG7.js → usageShortcuts-3UXG3hMD.js} +2 -2
- package/dist/client/assets/{use-atom-command-DMW6SFOx.js → use-atom-command-BkSai4ZH.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-E7KNTqMb.js → useAriaLabelledBy-rzE7PQnj.js} +2 -2
- package/dist/client/assets/useHandleNewThread-CT3UAzyB.js +2 -0
- package/dist/client/assets/{useLocation-hVHAnHTx.js → useLocation-D7ZCVKu2.js} +2 -2
- package/dist/client/assets/{useNavigate-B7EiSugn.js → useNavigate-C6_wm78C.js} +2 -2
- package/dist/client/assets/{useNavigateBack-BC3GGm7e.js → useNavigateBack-iqJmvild.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-D3qxx30I.js → useP4ConnectAuthPrompt-CKTZ-MxU.js} +2 -2
- package/dist/client/assets/{useParams-C5b2x5BH.js → useParams-DND-Jy5h.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-Zf48W2tu.js → usePermissionStatus-DFJ-2rdQ.js} +2 -2
- package/dist/client/assets/{usePopupViewport-Dtwu2x5j.js → usePopupViewport-EARvZG9w.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-BtPaWuCg.js → usePullRequestActions-DRrQpPhD.js} +3 -3
- package/dist/client/assets/{useRegisterFieldControl-BMmbsxkx.js → useRegisterFieldControl-Byb-EJOb.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-BIveWOlk.js → useScopedModelAvailability-tXU_0tMY.js} +2 -2
- package/dist/client/assets/useSettings-BOuYsEM0.js +3 -0
- package/dist/client/assets/utils-DsOiwDNN.js +24 -0
- package/dist/client/assets/vcsRefInvalidation-CnjZD1r1.js +2 -0
- package/dist/client/assets/welcome-BgxI7gmD.js +2 -0
- package/dist/client/index.html +1 -1
- package/dist/{mcpResponsePayloads-BBvPAlwj.mjs → mcpResponsePayloads-tqyeJD3c.mjs} +10 -9
- package/dist/{ProjectCloneTracker-DAE46hjz.mjs → preview-C_h8Tda3.mjs} +894 -438
- package/dist/{renderer-iWfzRWCX.mjs → renderer-BeTlHpQk.mjs} +2 -2
- package/dist/{runtime-CllDK9QU.mjs → runtime-BUfUqrrw.mjs} +3 -3
- package/dist/{runtimeLayer-CblMBDQ6.mjs → runtimeLayer-5R-ZfBsl.mjs} +3152 -2949
- package/dist/{runtimeLayer-D1H3yRj8.mjs → runtimeLayer-DurN_FAN.mjs} +1 -1
- package/dist/{server-vm1eH-y1.mjs → server-DuD96ZSr.mjs} +347 -228
- package/dist/{sha2-9FUhed4s.mjs → sha2-oCwRxj9g.mjs} +13 -7
- package/package.json +1 -1
- package/dist/AcpMcpStdioBridge-RQnwhGrw.mjs +0 -3
- package/dist/client/assets/AlertDialogRoot-D2Lzxp77.js +0 -2
- package/dist/client/assets/ChatGptUsageButton-CM16mB7z.js +0 -2
- package/dist/client/assets/ChatMarkdown-LYkpVHJO.js +0 -49
- package/dist/client/assets/CheckboxIndicator-CLFg8-A1.js +0 -2
- package/dist/client/assets/CodexSetupSection.logic-CNAX4_fV.js +0 -2
- package/dist/client/assets/CollapsiblePanel-BlUD5mJC.js +0 -2
- package/dist/client/assets/ComboboxClear-DKHwuDAL.js +0 -2
- package/dist/client/assets/CompositeRoot-_C3uLH2F.js +0 -2
- package/dist/client/assets/DevicePanel-Dvozgov3.js +0 -2
- package/dist/client/assets/DeviceSetup-O_9LLGD9.js +0 -2
- package/dist/client/assets/DialogTitle-C9j5Tmuy.js +0 -2
- package/dist/client/assets/DiffPanel-CDixqNzb.js +0 -2
- package/dist/client/assets/FoldedSettingsSection-CrJX4FnL.js +0 -2
- package/dist/client/assets/Input-BWhtnCC0.js +0 -2
- package/dist/client/assets/JZOYTAAL-BCdmxsmo.js +0 -1
- package/dist/client/assets/ModelLiveLayer-CxX5pYmA.js +0 -3
- package/dist/client/assets/PanelLayoutControls-CC5OYRRR.js +0 -216
- package/dist/client/assets/PopoverHandle-BwqnKm9Y.js +0 -2
- package/dist/client/assets/PreviewPanel-BvRNyyKQ.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-rvN_67Gu.js +0 -2
- package/dist/client/assets/ProviderModelPicker-Cq3CogU6.js +0 -2
- package/dist/client/assets/PullRequestCodeTab-C5kr72DG.js +0 -6
- package/dist/client/assets/RenderErrorBoundary-DgYrYlQR.js +0 -23
- package/dist/client/assets/ScheduledTasksSettings-CvbQDrJp.js +0 -6
- package/dist/client/assets/SelectScrollUpArrow-Dj2om6Qx.js +0 -2
- package/dist/client/assets/ThreadTerminalDrawer-DcYWT4k2.js +0 -5
- package/dist/client/assets/TooltipProvider-BzOo4iyi.js +0 -2
- package/dist/client/assets/_chat-DoDgVLYz.js +0 -47
- package/dist/client/assets/_chat.pull-requests-0Ce1mGUC.js +0 -2
- package/dist/client/assets/assets-lJdcWn_Q.js +0 -2
- package/dist/client/assets/connect-agent-DsQQcex2.js +0 -2
- package/dist/client/assets/diffPanelStore-B-hQEy6C.js +0 -2
- package/dist/client/assets/entities-CpJdh0W5.js +0 -2
- package/dist/client/assets/fold-vertical-BscQ96iN.js +0 -2
- package/dist/client/assets/index-BWKkBtFt.js +0 -3
- package/dist/client/assets/main-C8b9a0ht.js +0 -37
- package/dist/client/assets/main-CCH0X0zL.css +0 -2
- package/dist/client/assets/mediaReference-BIsAfUoY.js +0 -2
- package/dist/client/assets/number-field-D6t0GpAB.js +0 -2
- package/dist/client/assets/openFileInPreview-DFpXOfx7.js +0 -2
- package/dist/client/assets/previewMiniPlayerStore-oJw0qrRM.js +0 -2
- package/dist/client/assets/primary-B0bbGdiR.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-B6CxZwAR.js +0 -2
- package/dist/client/assets/projectFilesQueryState-DpLF9eJd.js +0 -2
- package/dist/client/assets/providerSkills-yqPKKW6i.js +0 -2
- package/dist/client/assets/pullRequests-u-PJpGXV.js +0 -2
- package/dist/client/assets/queries-DDAXRF4r.js +0 -2
- package/dist/client/assets/query-DpmTmXUV.js +0 -2
- package/dist/client/assets/radio-group-DSfZzUu8.js +0 -2
- package/dist/client/assets/relay-CnLeC-mg.js +0 -2
- package/dist/client/assets/runtime-DUPVFypn.js +0 -7
- package/dist/client/assets/server-BYnv0CK4.js +0 -2
- package/dist/client/assets/session-BryEqNW-.js +0 -2
- package/dist/client/assets/session-logic-DZfPxiBF.js +0 -26
- package/dist/client/assets/settings.archived-BtKfrhpi.js +0 -2
- package/dist/client/assets/settings.connections-CHawbHDz.js +0 -2
- package/dist/client/assets/settings.diagnostics-BFlcsuN0.js +0 -2
- package/dist/client/assets/settings.integrations-CpUf4-MX.js +0 -2
- package/dist/client/assets/settings.plugins-B6My9wD7.js +0 -5
- package/dist/client/assets/settings.projects-hrhEEIli.js +0 -4
- package/dist/client/assets/settings.providers-BKeGnq6G.js +0 -3
- package/dist/client/assets/settings.source-control-B6eUVvNg.js +0 -2
- package/dist/client/assets/settingsLayout-BijX6mlS.js +0 -3
- package/dist/client/assets/sourceControlClients-CG8qRQgm.js +0 -2
- package/dist/client/assets/src-BZzGU-vc.js +0 -15
- package/dist/client/assets/terminal-links-FD1wyGOp.js +0 -2
- package/dist/client/assets/terminalSessions-D1m7FXoa.js +0 -2
- package/dist/client/assets/uiStateStore-B0Z02qoV.js +0 -2
- package/dist/client/assets/unfold-vertical-DeuiNAAp.js +0 -2
- package/dist/client/assets/useHandleNewThread-Cmiu3y4G.js +0 -2
- package/dist/client/assets/useSettings-C6RmJr-q.js +0 -3
- package/dist/client/assets/utils-Cs97wR6T.js +0 -24
- package/dist/client/assets/vcsRefInvalidation-CAa5en8i.js +0 -2
- package/dist/client/assets/welcome-BRX7e-eN.js +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as __commonJSMin } from "./rolldown-runtime-CMoAvOD_.mjs";
|
|
4
|
-
import { $ as forEach, $i as
|
|
5
|
-
import { $ as Uint8ArrayFromBase64, $r as isGreaterThan, A as NullOr, An as lambda, B as String$1, C as Literals, Cr as Forbidden$1, Ct as decodeUnknownSync, D as NonEmptyArray, Dn as unixPathAddress, E as Never, Et as encodeSync, Fr as value$1, G as TaggedStruct, Gr as decode$1, H as Struct, Ht as isMaxLength, I as Record, Jt as isSchema, K as TemplateLiteral, Kr as decodeString, Ln as getReferenceKey, Lr as empty$3, Lt as isGreaterThanOrEqualTo, Mn as omit$1, N as Opaque, Nr as isRedacted, Nt as is, O as NonEmptyString, Or as empty$4, Ot as encodeUnknownEffect, Pr as make$78, Pt as isBetween, Qr as formatIso, R as Redacted, Rr as expireCookie, S as Literal, Si as taggedEnum, Sr as withDefault, St as decodeUnknownResult, Tt as encodeEffect, U as StructWithRest, Ur as set, Vt as isLessThanOrEqualTo, W as TaggedError$1, Wt as isMinLength, Xn as isNull, Xr as add$1, Y as Tuple, Yt as isSchemaError, _ as Finite, _n as toType, _r as passthrough, an as refine, at as Void, b as Json, bi as TaggedClass, bt as decodeUnknownExit, c as DateTimeUtc, ci as nowUnsafe, cn as suspend$1, d as Duration, dn as toCodecJson, dr as transformEffect, f as DurationFromMillis, fi as toDate, ft as declare$1, hn as toJsonSchemaDocument, ht as decodeExit, ii as makeUnsafe$2, in as optionalKey, ir as toEncoded, it as UnknownFromJsonString, j as Number$1, jn as map$2, jr as toRecord, jt as fromJsonString, kn as assign, kr as fromInput, ln as tag, m as Error$1, mn as toEquivalence, mt as decodeEffect, n as ArraySchema, nr as resolveDescription, nt as Union, o as Cause, oi as now, pi as toEpochMillis, pn as toEncoded$1, pt as decode$2, qr as encode$1, r as Boolean$1, ri as make$79, rn as optional$4, rt as Unknown, s as Class, t as Any, tt as UndefinedOr, u as Defect, un as toCodecArrayFromSingle, vi as Class$1, vn as withConstructorDefault, vt as decodeTo, w as MutableJson, wi as map$3, wn as inetAddressFromIpString, wr as InvalidValue, x as JsonObject$2, xi as TaggedError, xr as transformOptional, xt as decodeUnknownOption, y as Int$1, yn as withDecodingDefault, yr as transform, yt as decodeUnknownEffect, z as SchemaError, zt as isInt32 } from "./Schema-
|
|
6
|
-
import { $ as
|
|
7
|
-
import { $ as WsSelfImproveSetMemoryMirrorRpc, $a as resolveIdleCompaction, $l as ModelSelection, $m as IsoDateTime, $n as PreviewAutomationUnsupportedClientError, $o as ThreadDecision, $p as isWithHeaders, $r as OrchestratorMcpClientRequestId, A as ComputerUseHostResponse, Aa as CodexSettings, Ac as OrchestrationV2RunStatus, Ad as symbol, Ai as OrchestratorMcpThreadWaitInput, Al as PullRequestOperationError, Am as defaultInstanceIdForDriver, An as PreviewAutomationNoAvailableHostError, Ao as DeviceHostUnavailableError, Ap as AuthSettingsWriteScope, At as DesignGuideReceipt, B as WsHubSyncResolveRpc, Bc as OrchestrationV2ThreadForkSourcePoint, Bi as OrchestrationDispatchCommandError, Bn as PreviewAutomationResizeInput, Bo as DeviceToolOpenResult, Bp as mcpClientScopes, Bs as RelayManagedEndpointRecoveryResponse, Bt as DesignProposeReceipt, Bu as RouteContext, C as COMPUTER_USE_JEV_TAKE_CODE, Cc as OrchestrationV2ProviderSessionJson, Cf as setHeaders$1, Ch as fromInput$1, Ci as OrchestratorMcpThreadInterruptResult, Cl as ProviderUserInputAnswers, Cn as PreviewAutomationDialogInput, Cp as AuthMcpTokenError, Cr as AttachmentCreateUploadUrlResult, Cs as EnvironmentHttpInternalServerError, Ct as DesignRpcGroup, D as ComputerUseHost, Da as BackgroundActivityProfile, Dh as remove, Di as OrchestratorMcpThreadReadResult, Dm as ProviderDriverKind, Dn as PreviewAutomationInvalidSelectorError, Do as DeviceBootError, Dp as AuthProvidersManageScope, Ds as EnvironmentRequestInvalidError, Dt as DesignApplyReceipt, Du as getSlotParseOptions, E as ComputerUseError, Ea as AntigravitySettings, Ei as OrchestratorMcpThreadReadInput, El as ThreadPullRequestKey, Em as PROVIDER_DISPLAY_NAMES, En as PreviewAutomationExecutionError, Eo as DeviceActionUnavailableError, Ep as AuthPreviewOperateScope, Es as EnvironmentOperationForbiddenError, F as clientRpcRequiredScopes, Fa as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, Fd as file, Ff as TypeId$7, Fi as ScheduledTask, Fl as pullRequestHostOf, Fn as PreviewAutomationRecordingStatus, Fo as DevicePlatformUnavailableError, Fp as EnvironmentAuthorizationError, Fr as OrchestrationSearchThreadsError, Fs as RelayEnvironmentLinkChallengeResponse, Ft as DesignImportTokensRequest, G as WsMcpRegistryProviderSignInCompleteRpc, Gd as setHeaders, Gm as ClientSurface, Gn as PreviewAutomationSetColorSchemeResult, Gp as getResponseEncoding, Gs as fromApi, Gt as DesignStatusReceipt, Gu as route, H as WsHubSyncSetModeRpc, Hc as OrchestrationV2ThreadLaunchRequestWorkspaceStrategy, Hi as PullRequestReviewGuideRun, Hm as ClientConnectionMethod, Hn as PreviewAutomationResultTooLargeError, Ho as DeviceToolTargetInput, Hs as RelayOkResponse, Ht as DesignRenderReceipt, Hu as cors, I as RpcScopeAuthorization, Ia as DEFAULT_SERVER_SETTINGS, Ic as OrchestrationV2StopWorkflowInput, If as ignore$1, In as PreviewAutomationRecordingTooLargeError, Io as DeviceToolCloseInput, Ip as MCP_PEER_LINK_SOFTWARE_ID, Ir as OrchestrationSearchThreadsInput, Is as RelayEnvironmentLinkResponse, It as DesignInspectReceipt, J as WsMcpRegistryProviderSignInWaitRpc, Jd as text$2, Ji as VcsListRefsInput, Jn as PreviewAutomationTabNotFoundError, Jo as deviceToolInstallMessage, Jp as getStatusSuccessSchema, Jt as DesignStylesRequest, Ju as HttpServer, K as WsMcpRegistryProviderSignInStartRpc, Kd as setStatus, Kf as text$3, Km as ClientWebDeployment, Kn as PreviewAutomationSnapshot, Ko as LOCAL_DEVICE_HOST_ID, Kp as getResponseEncodingSchema, Kt as DesignStatusRequest, Ku as serve, L as WS_METHODS, Ld as isHttpServerResponse, Lf as isIgnored, Ln as PreviewAutomationRecordingTransferError, Lo as DeviceToolError, Lr as OrchestrationThreadSearchMatch, Ls as RelayHookDeliveryProofPayload, Lt as DesignInspectRequest, M as ComputerUseOutput, Mi as ThreadMetadataMcpUpdateInput, Ml as PullRequestState, Mn as PreviewAutomationRecordingArtifact, Mo as DeviceNotFoundError, Mp as AuthTerminalOperateScope, Ms as RelayApi, Mt as DesignHandoffReceipt, Mu as getErrorSchemas, N as computerUseJevStepCode, Na as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Nc as OrchestrationV2SearchThreadError, Nf as isHttpClientError, Ni as ThreadMetadataMcpUpdateResult, Nn as PreviewAutomationRecordingDeadlineExpiredError, No as DeviceOperationError, Np as AuthTerminalReadScope, Ns as RelayCloudEnvironmentHealthProofPayload, Nt as DesignHandoffRequest, O as ComputerUseHostRegistration, Oa as BackgroundActivityProfileSelection, Oh as set$2, Oi as OrchestratorMcpThreadSendInput, Ol as ThreadPullRequestLinkSource, Om as ProviderInstanceId, On as PreviewAutomationMalformedResponseError, Oo as DeviceEasAccountError, Op as AuthRelayReadScope, Os as EnvironmentResourceNotFoundError, Ot as DesignApplyRequest, P as CLIENT_GUARDED_RPC_SCOPES, Pd as empty$5, Pn as PreviewAutomationRecordingDesktopUpdateRequiredError, Po as DevicePlatformAvailability, Ps as RelayCloudMintCredentialProofPayload, Pt as DesignImportTokensReceipt, Pu as getSuccessSchemas, Q as WsSelfImproveSaveFindingsRpc, Qa as requiredScopesForServerSettingsPatch, Qc as linkOriginIsFenced, Qd as filterStatusOk$1, Ql as VcsUnsupportedOperationError, Qn as PreviewAutomationUnavailableError, Qo as DecisionResult, Qp as isStreamUint8Array, Qr as OrchestratorMcpCapabilitiesResult, Qs as OrchestrationGetWorkflowScriptError, Qt as ServerClient, Qu as compression, R as WsHubSyncConnectRpc, Rd as jsonUnsafe, Rf as layer$125, Rl as SourceControlCloneRepositoryInput, Rn as PreviewAutomationRemoteUnavailableError, Ro as DeviceToolListResult, Rp as authScopeRequiredResponse, Rr as OrchestrationThreadSearchSource, Rt as DesignLibraryManifest, Ru as normalize, Sd as Path, Sf as setHeader$1, Sh as empty$6, Si as OrchestratorMcpThreadInterruptInput, Sl as ProviderRequestKind, Sn as PreviewAutomationControlReason, So as ResolvedKeybindingRule, Sp as AuthMcpRegistrationError, Sr as AttachmentCreateUploadUrlInput, Ss as EnvironmentHttpForbiddenError, St as DesignListRequest, Su as getProviderAttachmentLimitError, T as ComputerUseBrowserChatRequest, Tf as setUrlParams, Th as isHeaders, Ti as OrchestratorMcpThreadListResult, Tn as PreviewAutomationEvaluateInput, To as UsageReadError, Tp as AuthOrchestrationReadScope, Tr as AttachmentUploadSigningKeyError, Ts as EnvironmentInternalError, Tt as DesignSubscribeRequest, Tu as isSecurity, U as WsHubSyncSubscribeRpc, Ua as ServerSettingsPatch, Uc as OrchestrationV2ThreadShell, Um as ClientDeviceType, Un as PreviewAutomationSelectResult, Uo as DeviceToolUnavailableError, Ut as DesignRenderRequest, Uu as middleware, V as WsHubSyncRunNowRpc, Va as ServerSettings, Vc as OrchestrationV2ThreadLaunchError, Vd as redirect, Vi as PullRequestReviewGuide, Vl as SourceControlProviderKind, Vn as PreviewAutomationResizeResult, Vo as DeviceToolScreenshotResult, Vt as DesignProposeRequest, Vu as add$2, W as WsMcpRegistryProviderSignInCancelRpc, Wd as setHeader, Wi as GitCommandError, Wm as ClientOs, Wn as PreviewAutomationSetColorSchemeInput, Wo as DeviceToolVersions, Wt as DesignSelection, X as WsRpcGroup, Xc as isProviderNativeSubagentThread, Xd as urlParams, Xn as PreviewAutomationTargetNotEditableError, Xp as isNoContent, Xr as PeerLinkError, Xt as DesignValidateRequest, Y as WsMcpRegistryProviderSignOutRpc, Yd as uint8Array, Yf as FileSystem, Yi as VcsListRefsResult, Yn as PreviewAutomationTabTargetInput, Yp as getWithHeadersAnnotation, Yt as DesignValidateReceipt, Z as WsSelfImproveDismissFindingsRpc, Za as requiredScopesForProjectMutation, Zl as VcsRepositoryDetectionError, Zn as PreviewAutomationTimeoutError, Zo as DecisionInput, Zp as isStreamSchema, Zr as PeerLinkRequestError, Zs as ORCHESTRATION_V2_WS_METHODS, Zt as make$87, Zu as TracerDisabledWhen$1, _ as Asset3dGenerateResult, _c as OrchestrationV2GetThreadProjectionError, _d as limitsServices, _f as make$90, _h as ThreadId, _i as OrchestratorMcpSaveScheduledTaskInput, _l as DEFAULT_PROVIDER_INTERACTION_MODE, _n as PREVIEW_RECORDING_STOP_TIMEOUT_MS, _p as AuthFilesystemReadScope, _r as AssetWorkspaceContextNotFoundError, _s as EnvironmentCloudEndpointUnavailableError, _t as SelfImproveReviewers, _u as ChatImageAttachment, ad as fromHeaders, ah as PositiveInt, ai as OrchestratorMcpDeleteScheduledTaskResult, al as Project, an as WorktreeMcpFailure, ao as FILL_PREVIEW_VIEWPORT, ap as ExecutionEnvironmentDescriptor, ar as ReviewDiffPreviewSourceKind, as as findBrowserProfile, b as Asset3dSearchInput, bh as TurnItemId, bi as OrchestratorMcpTaskCancelResult, bl as ProviderApprovalOption, bn as PreviewAutomationClientDisconnectedError, bo as KeybindingsConfigError, bp as AuthMcpApprovalError, br as AssetWorkspaceResolutionError, bt as DesignHumanApplyRequest, cc as OrchestrationV2DelegatedFrom, cd as ParsedSearchParams, cf as bearerToken, ci as OrchestratorMcpEnvironmentLinksResult, cl as ProjectMutation, cm as makeParser, cn as WorktreeMcpStatusResult, co as PREVIEW_VIEWPORT_PRESET_IDS, cr as AssetCreateUrlInput, ct as Service$2, dd as schemaHeaders, df as bodyJsonUnsafe, dh as RpcClientId, di as OrchestratorMcpEnvironmentUnlinkResult, dm as AcpRegistryOperationError, dr as AssetProjectFaviconInspectionError, ds as DESKTOP_UPDATE_RESTART_MARKER_FILE, dt as SelfImproveEvidence, du as OrchestrationGetFullThreadDiffError, ea as ServerProviderUpdateError, ec as OrchestrationV2AppThreadJson, eh as MessageId, ei as OrchestratorMcpCreateThreadsInput, em as isWithHeadersValue, eo as resolveProjectProviderInstanceEnabled, ep as PlatformError, er as PreviewAutomationWaitForInput, es as ThreadDecisionsReadError, et as WsSelfImproveSubscribeSettingsRpc, eu as McpRegistryRpcError, fd as schemaSearchParams, ff as bodyStream, fi as OrchestratorMcpFailure, fl as ProjectSearchContentsError, fo as PreviewListResult, fp as AuthAccessWriteScope, fr as AssetProjectFaviconNotFoundError, ft as SelfImproveFindings, fu as OrchestrationGetTurnDiffError, g as Asset3dGenerateInput, gc as OrchestrationV2GetShellSnapshotError, gd as isPersistedFile, gf as get$3, gi as OrchestratorMcpRequestSecretResult, gn as PREVIEW_AUTOMATION_V1_OPERATIONS, go as PreviewViewportSetting, gr as AssetWorkspaceAssetNotFoundError, gs as EnvironmentAuthenticatedPrincipal, gt as SelfImproveReview, gu as ChatFileAttachment, h as Asset3dFiles, hf as del, hh as ScheduledTaskId, hi as OrchestratorMcpRequestSecretInput, hl as ProjectWriteFileError, hn as PREVIEW_AUTOMATION_SERVER_OPERATIONS, ho as PreviewTabId, hp as AuthEnvironmentMaintainScope, hr as AssetWorkspaceAssetInspectionError, hs as EnvironmentAuthenticatedAuth, ht as SelfImproveResult, hu as ChatAttachmentId, ia as isProviderTextGenerationCapable, ic as OrchestrationV2ContextTransfer, if as schemaBodyJson, ii as OrchestratorMcpDeleteScheduledTaskInput, il as OrchestrationProjectShell, ip as make$89, ir as ReviewDiffPreviewSource, it as WsSubscribeThreadDecisionsRpc, iu as McpServerRuntimeState, j as ComputerUseJsInput, jc as OrchestrationV2RuntimeRequest, jd as toResponse, ji as OrchestratorMcpThreadWaitResult, jn as PreviewAutomationOpenInput, jo as DeviceId, jp as AuthStandardClientScopes, jr as FilesystemBrowseError, jt as DesignGuideRequest, k as ComputerUseHostReport, kh as bytes, ki as OrchestratorMcpThreadSendResult, kl as PullRequestLinkedThreadsResult, km as ProviderInstanceMutation, kn as PreviewAutomationNavigateInput, ko as DeviceHostId, kp as AuthRelayWriteScope, ks as EnvironmentScopeRequiredError, lc as OrchestrationV2DispatchCommandError, lf as bodyFormData, li as OrchestratorMcpEnvironmentTarget, ll as ProjectMutationError, lo as PreviewClearProfileError, lp as AuthAccessReadScope, lr as AssetGitHubMediaUrlValidationError, ls as DesktopBrowserCommand, lt as SelfImproveDecision, m as Asset3dFetchInput, ma as ProviderUploadFeedbackError, mh as RuntimeRequestId, mi as OrchestratorMcpListScheduledTasksResult, ml as ProjectUpdatePayload, mn as McpCapabilityUnavailableError, mo as PreviewStreamHostSetup, mp as AuthDiagnosticsReadScope, mr as AssetSigningKeyLoadError, ms as EnvironmentAuthInvalidError, mt as SelfImproveRequest, nh as NonNegativeInt, ni as OrchestratorMcpDelegateTaskInput, nl as ToolActivityNativeAppReference, ns as BUILT_IN_BROWSER_PROFILES, nt as WsSelfImproveUndoSaveRpc, nu as McpServerId, of as appendUrlParams, oh as ProjectId, oi as OrchestratorMcpEnvironmentLinkInput, ol as ProjectCreatePayload, on as WorktreeMcpHandoffInput, oo as PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE, or as ATTACHMENT_UPLOAD_URL_TTL_MS, os as resolveBrowserProfiles, ou as PluginId, pa as ProviderSetupError, pd as toURL, ph as RunId, pi as OrchestratorMcpListScheduledTasksInput, pl as ProjectSearchEntriesError, pn as BrowserNavigationTarget, pr as AssetProjectFaviconResolutionError, ps as RelayClientInstallFailedError, pt as SelfImproveLabel, pu as OrchestrationGetTurnDiffResult, q as WsMcpRegistryProviderSignInStateRpc, qd as stream, qm as CommandId, qn as PreviewAutomationStatus, qo as LOCAL_DEVICE_HOST_LABEL, qp as getStatusErrorSchema, qs as toRouterPath, qt as DesignStylesReceipt, qu as use, ra as isProviderAvailable, ri as OrchestratorMcpDelegateTaskResult, rl as UsageLimitSourceError, rm as hasBody, rr as ReviewDiffFileStat, rt as WsSelfImproveUpdateSettingsRpc, sd as HttpServerRequest, si as OrchestratorMcpEnvironmentLinkResult, sl as ProjectListEntriesError, sm as encoder$1, sn as WorktreeMcpHandoffResult, sp as ORCHESTRATION_PROTOCOL_QUERY_PARAM, sr as AssetAttachmentNotFoundError, tf as MaxBodySize, ti as OrchestratorMcpCreateThreadsResult, tl as ToolActivityIcon, tn as make$88, tr as SERVER_BROWSER_AUTOMATION_CLIENT_ID, tt as WsSelfImproveSubscribeThreadFindingsRpc, uc as OrchestrationV2DispatchCommandResult, ud as schemaCookies, uf as bodyJson, ui as OrchestratorMcpEnvironmentUnlinkInput, ul as ProjectReadFileError, up as AuthAccessStreamError, ur as AssetPreviewTypeValidationError, us as DesktopBrowserEvent, ut as SelfImproveError, uu as supportsProviderMcpSignIn, v as Asset3dGenerateStatusInput, vf as post, vh as TrimmedNonEmptyString, vi as OrchestratorMcpScheduleTaskResult, vm as DEFAULT_MODEL, vn as PreviewAutomationActInput, vp as AuthFilesystemWriteScope, vr as AssetWorkspaceContextResolutionError, vs as EnvironmentHttpApi, vt as SelfImproveSaveFindingsResult, vu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, w as COMPUTER_USE_MAX_OUTPUT_CHARS, wi as OrchestratorMcpThreadListInput, wl as RuntimeMode$1, wn as PreviewAutomationError, wp as AuthOrchestrationOperateScope, wr as AttachmentDeleteInput, ws as EnvironmentHttpUnauthorizedError, wt as DesignServiceError, x as Asset3dSearchResult, xf as setBody, xh as CurrentRedactedNames, xi as OrchestratorMcpTaskStatusInput, xl as ProviderInteractionMode, xn as PreviewAutomationControlInterruptedError, xp as AuthMcpClientAccess, xr as AssetWorkspaceRootNormalizationError, xs as EnvironmentHttpConflictError, xt as DesignListReceipt, xu as PersistChatAttachmentsError, y as Asset3dGenerateStatusResult, yi as OrchestratorMcpTaskCancelInput, yl as ProviderApprovalDecision, yn as PreviewAutomationActInputs, yo as KeybindingRule, yp as AuthGrantScope, yr as AssetWorkspacePathValidationError, ys as EnvironmentHttpBadRequestError, yt as UserInputRankError, z as WsHubSyncDisconnectRpc, zd as mergeCookies, zf as report$1, zl as SourceControlCloneRepositoryResult, zn as PreviewAutomationRequestQueueClosedError, zo as DeviceToolOpenInput, zp as authScopeResponse, zr as HubSyncError, zs as RelayManagedEndpointRecoveryRegistrationResponse, zu as HttpRouter } from "./sha2-9FUhed4s.mjs";
|
|
8
|
-
import { $ as PROJECT_FAVICON_FALLBACK_MARKER, $n as
|
|
9
|
-
import { A as fromIterable, An as unbounded$1, B as isStream, C as flattenIterable, Cn as publish, Ct as takeWhile, Dn as sliding, En as shutdown$2, Fn as await_, Ft as unwrap$1, G as mapEffect, H as map$5, Hn as runIn, I as fromSubscription, In as getCurrent, It as zipLatestWith, J as mergeAll$1, K as mapError$1, L as groupedWithin, Ln as interrupt$1, M as fromPubSub, N as fromPull, Nt as transformPull, O as fromEffect, On as subscribe, P as fromQueue, Pn as awaitAll, Pt as unfold, S as flatMap$
|
|
10
|
-
import { $ as readCliDesiredLinkMode, $t as serverAuthCredentialReason, A as layer$167, At as isLoopbackHost$1, Bn as appendPreResponseHandler, Bt as ServerAuthCloudMintPublicKeyMissingError, C as shouldRetryRelayRequest, Cn as entriesToAttributes, D as CloudManagedEndpointRuntime, Dn as layerFlusher, E as layer$176, En as unknownToAttributeValue, F as readTailscaleSshEnabled, Fn as make$
|
|
11
|
-
import { C as modelFileDiagnostics, E as isDesignDocumentPath, S as glbSummary, T as designDocumentBaseName, _ as semanticDiff, a as computeLayout, b as MODEL_MAX_BYTES, d as parseDesign, f as patchNode, g as selectLayoutItems, h as reviewState, l as fileHash, m as resolveValue, n as buildIndexes, o as diagnostic, r as canonicalSerialize, s as documentContentDigest, u as isConfinedRelativePath, v as validateDesign, w as DESIGN_EXTENSIONS, x as MODEL_MESHOPT_EXTENSION, y as MODEL_DRACO_EXTENSION } from "./runtime-
|
|
4
|
+
import { $ as forEach, $i as done$1, $l as hasProperty, $o as isZero, $t as runPromise, Ac as getOrNull, An as updateContext, Ar as currentTimeNanos, Au as memoize, B as filter$1, Bc as none, Bi as match$2, Bn as withParentSpan, Bo as Scheduler, Br as launch, Bt as promise, C as catchTag, Cn as tryPromise, Cs as make$76, Cu as constTrue, D as context, Da as squash, Dc as fromNullishOr, Di as makeUnsafe$1, Dr as Clock, Ds as Prototype, Dt as match, Ea as reasonAnnotations, Ei as make$74, En as txRetry, Es as omit, Et as mapErrorEager, F as exit, Fc as isSome, Fn as withErrorReporting, Ft as onInterrupt, Fu as pipeArguments, G as findFirst, Gi as IllegalArgumentError, Gn as zip, Go as format, Gr as succeed$1, Gs as isReadonlyArrayNonEmpty, Gt as race, Hc as some, Hi as void_$1, Hn as withTracer, Hr as mergeAll, Ht as provideContext, I as fail$1, In as withFiber, Io as make$77, Ir as effect, It as option, Jo as hours, Jr as sync$1, Kn as zipWith, Kr as succeedContext, Kt as raceFirst, L as failCause, Lr as effectContext, Lt as orDie, M as die, Mc as getOrUndefined$1, Ml as assignProperty, Mn as void_, Ms as ensure, Mt as onError, Mu as pipe, Nc as isNone, Ni as failCause$1, Nt as onExit, Oc as fromUndefinedOr, Oi as poll, On as uninterruptible, Or as clockWith, Ot as matchCauseEffect, P as ensuring, Po as Tracer, Ps as filterMap, Qr as addFinalizer$1, Qt as runForkWith, Rc as map$1, Ri as isFailure$1, Ro as encode, Rr as effectDiscard, Rs as flatMap$2, Rt as orElseSucceed, S as catchReason, Sc as filter, Sn as timeoutOrElse, Ss as getUnsafe, St as map, Su as constFalse, T as catch_, Ta as prettyErrors, Tc as flatten, Tn as tx, Ts as merge, Tt as mapError, Tu as constVoid, Un as withTracerEnabled, Ur as provide, Us as isArrayNonEmpty, Ut as provideService, Vc as orElse, Vi as succeed$3, Vn as withSpan, Vr as merge$1, Vt as provide$1, W as filterOrFail, Wn as yieldNow, Wo as days, Wr as provideMerge, X as fn, Xi as annotate, Xr as unwrap, Xt as retry, Yo as infinity, Yr as tap$1, Yt as result, Z as fnUntraced, Zr as Scope, _ as catchCauseIf, _i as done, _r as toStep, _s as get, a as all, aa as fromReasons, an as scoped, at as fromOption, au as isNotNull, bc as contains$1, bi as failCause$2, bn as timeout, bs as getOrUndefined$2, bt as logWithLevel, bu as cast, c as annotateLogs, ca as hasInterrupts, cc as failVoid, ci as CurrentLogLevel, cn as serviceOption, ct as ignore, d as asSome, dc as getOrUndefined, di as MinimumLogLevel, dn as succeedNone, dt as interruptible, ea as fail$2, ei as close, en as runPromiseWith, es as max, et as forever, f as asVoid, fc as isFailure, fi as TracerEnabled, fn as succeedSome, fr as jittered, fs as zero, ft as isEffect, g as catchCause, gi as die$1, gr as spaced, gs as empty, gt as logError, gu as isUndefined, h as callback, ha as isFailReason, hi as _await, hn as tap, hr as setInputType, hs as add, ht as logDebug, hu as isTagged, i as addFinalizer, ia as findFail, ii as make$75, in as scope, it as forkScoped, j as delay, jc as getOrThrow, jo as MinimumTraceLevel, jr as monotonicTimeNanos, js as empty$1, jt as never, k as currentParentSpan, kc as getOrElse, ki as succeed$2, kl as redact, kn as uninterruptibleMask, kr as currentTimeMillis, ks as append, ku as identity, l as annotateLogsScoped, la as hasInterruptsOnly, li as CurrentLogSpans, ln as sleep, lr as fromStep, ls as toMillis$1, lt as ignoreCause, mc as isSuccess$1, mi as UnhandledLogLevel, mn as sync, ms as Service$1, mu as isString, n as acquireRelease, na as findError, nc as take, ni as fork, nn as runSyncExit, ns as min, nt as forkDetach, o as andThen, oa as hasDies, oi as provide$2, on as scopedWith, os as seconds, ot as fromResult, p as cached, pa as isDieReason, pi as TracerTimingEnabled, pn as suspend, pr as modifyDelay, ps as Reference, pu as isReadonlyObject, q as flatMap, qo as fromInputUnsafe, qs as lastNonEmpty, qt as repeat, r as acquireUseRelease, ra as findErrorOption, rn as runSyncWith, rs as minutes$1, rt as forkIn, s as annotateCurrentSpan, sc as fail$4, si as CurrentLogAnnotations, sn as service, sr as exponential, st as gen, su as isNotUndefined, ts as millis, tt as forkChild, u as as, un as succeed, ut as interrupt, uu as isObject$1, v as catchDefect, vc as succeed$4, vi as doneUnsafe, vn as tapError, vs as getOption, vt as logInfo, w as catchTags, wa as pretty, wc as flatMap$1, wn as try_, ws as makeUnsafe, x as catchIf, xc as exists, xn as timeoutOption, yi as fail$3, yr as upTo, yt as logWarning, zc as match$1, zi as isSuccess, zl as equals, zr as empty$2, zt as partition } from "./Effect-BqRgldaH.mjs";
|
|
5
|
+
import { $ as Uint8ArrayFromBase64, $r as isGreaterThan, A as NullOr, An as lambda, B as String$1, C as Literals, Cr as Forbidden$1, Ct as decodeUnknownSync, D as NonEmptyArray, Dn as unixPathAddress, E as Never, Et as encodeSync, Fr as value$1, G as TaggedStruct, Gr as decode$1, H as Struct, Ht as isMaxLength, I as Record, Jt as isSchema, K as TemplateLiteral, Kr as decodeString, Ln as getReferenceKey, Lr as empty$3, Lt as isGreaterThanOrEqualTo, Mn as omit$1, N as Opaque, Nr as isRedacted, Nt as is, O as NonEmptyString, Or as empty$4, Ot as encodeUnknownEffect, Pr as make$78, Pt as isBetween, Qr as formatIso, R as Redacted, Rr as expireCookie, S as Literal, Si as taggedEnum, Sr as withDefault, St as decodeUnknownResult, Tt as encodeEffect, U as StructWithRest, Ur as set, Vt as isLessThanOrEqualTo, W as TaggedError$1, Wt as isMinLength, Xn as isNull, Xr as add$1, Y as Tuple, Yt as isSchemaError, _ as Finite, _n as toType, _r as passthrough, an as refine, at as Void, b as Json, bi as TaggedClass, bt as decodeUnknownExit, c as DateTimeUtc, ci as nowUnsafe, cn as suspend$1, d as Duration, dn as toCodecJson, dr as transformEffect, f as DurationFromMillis, fi as toDate, ft as declare$1, hn as toJsonSchemaDocument, ht as decodeExit, ii as makeUnsafe$2, in as optionalKey, ir as toEncoded, it as UnknownFromJsonString, j as Number$1, jn as map$2, jr as toRecord, jt as fromJsonString, kn as assign, kr as fromInput, ln as tag, m as Error$1, mn as toEquivalence, mt as decodeEffect, n as ArraySchema, nr as resolveDescription, nt as Union, o as Cause, oi as now, pi as toEpochMillis, pn as toEncoded$1, pt as decode$2, qr as encode$1, r as Boolean$1, ri as make$79, rn as optional$4, rt as Unknown, s as Class, t as Any, tt as UndefinedOr, u as Defect, un as toCodecArrayFromSingle, vi as Class$1, vn as withConstructorDefault, vt as decodeTo, w as MutableJson, wi as map$3, wn as inetAddressFromIpString, wr as InvalidValue, x as JsonObject$2, xi as TaggedError, xr as transformOptional, xt as decodeUnknownOption, y as Int$1, yn as withDecodingDefault, yr as transform, yt as decodeUnknownEffect, z as SchemaError, zt as isInt32 } from "./Schema-CkGB1Dgx.mjs";
|
|
6
|
+
import { $a as normalizeThreadPullRequestKey, $l as WebSocketConstructor, $n as CLOUD_ENDPOINT_CONFIRMED_ORIGIN, $r as layer$118, $s as resolveSpawnCommand, A as GitVcsDriver, Ac as modifyEffect, An as layer$123, Ar as ServerConfig, At as webhookDeliveriesTotal, Ba as htmlRenderThemeFragment, Bc as tags, Bl as get$2, Bn as redactServerSettingsForClient, Bt as RepositoryIdentityResolver, Ci as sweepStalePendingAttachments, Cn as ServerEnvironment, Cr as isSecretAlreadyExistsError, Cs as redactCauseCredentials, Da as injectMcpAppThemeBootstrap, Dc as get$3, Di as resolveAttachmentRelativePath, Dl as TracerDisabledWhen, Dn as ServerSelfUpdate, Dr as writeFileStringAtomically, Dt as secretRequestsTotal, Ei as parseBase64DataUrl, El as HttpClient, Er as version, Es as OtlpSerialization, F as makeIsServerInternalPath, Fa as HTML_RENDER_THEME_GUIDE, Fc as SpanPropagationEnabled, Fl as tap$2, Fn as writeAllToFileDescriptor, Fo as serviceStateHasPendingUpdate, Fr as otlpResource, Ft as withMetrics, Ga as mergeWithDefaultKeybindings, Gc as make$80, Gl as set$1, Gr as fromLenientJson, H as resolveWorktreeCleanup, Ha as DEFAULT_KEYBINDINGS, Hc as when, Ho as ProcessRunner, Ht as make$88, Ia as HTML_RENDER_TOOL_NAME, In as subscribeBeforeSnapshot, Ir as resolveStaticDir, J as LegacyV1ThreadImporter, Jc as Crypto, Jl as CloseEvent, Jn as decode$3, K as ThreadCommandExecutor, Ka as parseKeybindingShortcut, Kc as run, Ki as remapComposerContextAttachments, Kl as update, Kr as layerResourceAttributes, L as isFilesystemRoot, La as blankNonMarkup, Lc as exhaustive, Li as formatThreadLink, Ll as transform$1, Lt as make$83, M as VcsProcess, Ma as HTML_RENDER_MAX_HEIGHT, Mc as update$1, Mn as layer$106, N as layer$124, Na as HTML_RENDER_MEASURE_FONTS, Nc as map$4, Nl as retry$1, Nn as DesktopTelemetryReceiver, O as layer$108, Oc as make$85, Oi as backgroundWorkHoldsCompletion, On as layer$122, Oo as SERVICE_STATE_FILE, P as PATCH_RENDER_PREFIX_ARGS, Pa as HTML_RENDER_MEASURE_WIDTHS, Pc as SqlClient, Pi as runRanAfter, Pn as layer$105, Q as deriveThreadFromProviderThread, Qa as legacyThreadPullRequestKey, Ql as WebSocket, Qr as ProjectionMaintenanceV2, Qs as resolveCommandPath, R as managedWorktreesDirectories, Ra as clampHtmlRenderHeight, Rc as is$1, Rn as ServerSettingsService, Rr as resolveReviewGuideModelSelection, Rt as ProjectEnrichmentService, Si as resolveAttachmentPathById, So as findOneOption, Sr as ServerSecretStore, Ss as makeTraceSink, T as unquoteGitPatchPath, Ta as injectMcpAppCookieBootstrap, Ti as inferImageExtension, Tl as nextIntBetween, Tn as layer$117, To as readOnly, Tr as layer$104, Tt as rpcRequestsTotal, U as ProjectService, Ua as compileResolvedKeybindingRule, Uc as awaitEmpty, Ul as make$81, Uo as layer$101, V as resolveProjectSettings, Va as injectHtmlRenderBootstrap, Vc as value$2, Vl as getAndSet, Vr as resolveServerBackgroundActivitySettings, Wa as compileResolvedKeybindingsConfig, Wc as clear, Wl as modify, Wr as fromJsonStringPretty, Ws as collectUint8StreamText, Xa as P4_CODE_LIGHT_THEME_COLORS, Xo as collectStreamAsString, Xr as NetService, Ya as P4_CODE_DARK_THEME_COLORS, Yi as isNetworkPath, Yn as fromReadable, Zr as layer$113, _ as layer$100, _a as toolOutputImages, _i as parseAttachmentFileExtension, _l as invalidate, _o as PersistenceDecodeError, _r as resolveHostCliCommand, _s as causeErrorTag, _t as increment, a as normalizePreviewUrl, ai as InvalidThreadHistoryCursorError, al as String$2, an as WorkspacePaths, ao as changeRequestUrlFor, ar as PUBLISH_AGENT_ACTIVITY_SECRET, at as layer$110, au as isGreaterThanOrEqualTo$1, b as firstNonEmptyLine, bc as WorkingDirectory, bi as planAttachmentClaim, bl as make$86, bn as make$84, bo as makeLiveStreamBudget, br as SecretStoreDecodeError, bs as layerOtlpSerialization, ca as capProjectionCheckpointFilesForWire, cc as RequestInit, ci as buildBoundedThreadProjection, co as canonicalRepositoryKey, cr as RELAY_URL_SECRET, cs as makeTargetedProviderUpdateAction, d as SourceControlProviderRegistry, di as attachmentFileExtension, dn as layer$114, dr as encodeConfirmedOriginJson, dt as ServerActivation, ei as ProjectionStoreV2, eo as resolveThreadPullRequestChains, er as CLOUD_ENDPOINT_RUNTIME_CONFIG, eu as fromWebSocket, f as layer$96, fa as MAX_TOOL_OUTPUT_IMAGE_BASE64_LENGTH, fc as Environment, fi as attachmentRelativePath, fo as sourceControlRepositorySelector, fr as encodeEndpointRuntimeConfigJson, fs as ProviderLatestVersions, ft as forkParked, g as layer$99, gi as createPendingAttachmentId, gn as expandHomePath, go as layer$121, h as VcsDriverRegistry, hc as Hostname, hi as createDeterministicAttachmentId, ho as OrchestrationEventStore, hr as readRelayConnection, in as WorkspacePathOutsideRootError, io as visibleThreadPullRequests, ir as HOLD_WEBHOOKS_WHILE_OFFLINE_SECRET, it as ProjectStoreV2, iu as getType, j as layer$98, ja as HTML_RENDER_LAYOUT_GUIDE, ji as turnItemUpdateCanEndBackgroundWork, jl as mapRequest$1, kc as modify$1, ki as derivePendingBackgroundWork, kl as filterStatusOk, kn as ServiceLauncherClient, ko as SERVICE_STOP_MARKER_FILE, kr as RuntimeMode, l as SourceControlRepositoryService, la as projectDomainEventForWire, lc as layer$95, li as decodeThreadHistoryCursor, lr as decodeConfirmedOrigin, lu as snapshotUnsafe, m as layer$97, mc as HomeDirectory, mi as createAttachmentId, ml as get$1, mo as layerFromOrchestrationEventStore, mr as readHoldWebhooksWhileOffline, n as isLoopbackHost, nc as make$82, nn as layer$115, no as threadPullRequestKeysEqual, nr as CLOUD_LINK_REVOKED, nu as make$87, o as ProjectCloneTracker, oi as THREAD_HISTORY_PAGE_POLICY, oo as parseChangeRequestUrl, or as RELAY_ENVIRONMENT_CREDENTIAL_SECRET, p as BUILT_IN_SOURCE_CONTROL_DRIVERS, pc as ExecutablePath, pi as chatAttachmentStableKey, pr as isAgentActivityPublishingEnabledValue, ps as layer$119, pt as forkParkedFiber, q as layer$102, qa as parseKeybindingWhenExpression, ql as updateAndGet, qs as isCommandAvailable, rc as ChildProcessSpawner, ri as layer$109, rn as layer$116, ro as threadPullRequestsOf, rr as CLOUD_MINT_PUBLIC_KEY, rs as enrichProviderSnapshotWithVersionAdvisory, ru as makeWebSocket$2, s as layer$112, si as THREAD_HISTORY_SNAPSHOT_ROW_LIMIT, so as siblingPullRequestUrl, sr as RELAY_ISSUER_SECRET, tn as ProjectFaviconResolver, to as threadPullRequestKeyOf, tr as CLOUD_LINKED_USER_ID, tu as isSocketError, u as layer$111, ua as projectThreadProjectionForWire, uc as Architecture, ui as PENDING_ATTACHMENT_THREAD_SEGMENT, ul as option$1, un as isWithinRoot, ur as decodeRuntimeConfig, us as resolveLatestProviderVersion, v as GitHubCredentials, vc as Platform, vi as parseAttachmentUuid, vo as PersistenceSqlError, vr as resolveRootCliCommand, vs as decodeOtlpTraceRecords, wi as toSafeThreadAttachmentSegment, wn as ServerEnvironmentIdentity, wr as isSecretStoreError, ws as RotatingFileSink, wt as rpcRequestDuration, x as PullRequestProviderError, xa as MCP_APP_MAX_HTML_BYTES, xc as isWindows, xi as resolveAttachmentPath, xl as makeWith, xn as layer$107, xo as findAll, xr as SecretStoreEncodeError, xs as makeLocalFileTracer, y as detailFromCause, yc as UserId, yi as parseThreadSegmentFromAttachmentId, yo as bufferLiveStream, yr as SecretStoreConcurrentReadError, z as removeLinkedWorktree, za as htmlRenderTheme, zc as tag$1, zl as withScope, zn as layer$103, zs as modelSelectionCommandType, zt as layer$120 } from "./preview-C_h8Tda3.mjs";
|
|
7
|
+
import { $ as WsSelfImproveSetMemoryMirrorRpc, $a as resolveIdleCompaction, $l as ModelSelection, $m as IsoDateTime, $n as PreviewAutomationUnsupportedClientError, $o as ThreadDecision, $p as isWithHeaders, $r as OrchestratorMcpClientRequestId, A as ComputerUseHostResponse, Aa as CodexSettings, Ac as OrchestrationV2RunStatus, Ad as symbol, Ai as OrchestratorMcpThreadWaitInput, Al as PullRequestOperationError, Am as defaultInstanceIdForDriver, An as PreviewAutomationNoAvailableHostError, Ao as DeviceHostUnavailableError, Ap as AuthSettingsWriteScope, At as DesignGuideReceipt, B as WsHubSyncResolveRpc, Bc as OrchestrationV2ThreadForkSourcePoint, Bi as OrchestrationDispatchCommandError, Bn as PreviewAutomationResizeInput, Bo as DeviceToolOpenResult, Bp as mcpClientScopes, Bs as RelayManagedEndpointRecoveryResponse, Bt as DesignProposeReceipt, Bu as RouteContext, C as COMPUTER_USE_JEV_TAKE_CODE, Cc as OrchestrationV2ProviderSessionJson, Cf as setHeaders$1, Ch as fromInput$1, Ci as OrchestratorMcpThreadInterruptResult, Cl as ProviderUserInputAnswers, Cn as PreviewAutomationDialogInput, Cp as AuthMcpTokenError, Cr as AttachmentCreateUploadUrlResult, Cs as EnvironmentHttpInternalServerError, Ct as DesignRpcGroup, D as ComputerUseHost, Da as BackgroundActivityProfile, Dh as remove, Di as OrchestratorMcpThreadReadResult, Dm as ProviderDriverKind, Dn as PreviewAutomationInvalidSelectorError, Do as DeviceBootError, Dp as AuthProvidersManageScope, Ds as EnvironmentRequestInvalidError, Dt as DesignApplyReceipt, Du as getSlotParseOptions, E as ComputerUseError, Ea as AntigravitySettings, Ei as OrchestratorMcpThreadReadInput, El as ThreadPullRequestKey, Em as PROVIDER_DISPLAY_NAMES, En as PreviewAutomationExecutionError, Eo as DeviceActionUnavailableError, Ep as AuthPreviewOperateScope, Es as EnvironmentOperationForbiddenError, F as clientRpcRequiredScopes, Fa as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, Fd as file, Ff as TypeId$7, Fi as ScheduledTask, Fl as pullRequestHostOf, Fn as PreviewAutomationRecordingStatus, Fo as DevicePlatformUnavailableError, Fp as EnvironmentAuthorizationError, Fr as OrchestrationSearchThreadsError, Fs as RelayEnvironmentLinkChallengeResponse, Ft as DesignImportTokensRequest, G as WsMcpRegistryProviderSignInCompleteRpc, Gd as setHeaders, Gm as ClientSurface, Gn as PreviewAutomationSetColorSchemeResult, Gp as getResponseEncoding, Gs as fromApi, Gt as DesignStatusReceipt, Gu as route, H as WsHubSyncSetModeRpc, Hc as OrchestrationV2ThreadLaunchRequestWorkspaceStrategy, Hi as PullRequestReviewGuideRun, Hm as ClientConnectionMethod, Hn as PreviewAutomationResultTooLargeError, Ho as DeviceToolTargetInput, Hs as RelayOkResponse, Ht as DesignRenderReceipt, Hu as cors, I as RpcScopeAuthorization, Ia as DEFAULT_SERVER_SETTINGS, Ic as OrchestrationV2StopWorkflowInput, If as ignore$1, In as PreviewAutomationRecordingTooLargeError, Io as DeviceToolCloseInput, Ip as MCP_PEER_LINK_SOFTWARE_ID, Ir as OrchestrationSearchThreadsInput, Is as RelayEnvironmentLinkResponse, It as DesignInspectReceipt, J as WsMcpRegistryProviderSignInWaitRpc, Jd as text$2, Ji as VcsListRefsInput, Jn as PreviewAutomationTabNotFoundError, Jo as deviceToolInstallMessage, Jp as getStatusSuccessSchema, Jt as DesignStylesRequest, Ju as HttpServer, K as WsMcpRegistryProviderSignInStartRpc, Kd as setStatus, Kf as text$3, Km as ClientWebDeployment, Kn as PreviewAutomationSnapshot, Ko as LOCAL_DEVICE_HOST_ID, Kp as getResponseEncodingSchema, Kt as DesignStatusRequest, Ku as serve, L as WS_METHODS, Ld as isHttpServerResponse, Lf as isIgnored, Ln as PreviewAutomationRecordingTransferError, Lo as DeviceToolError, Lr as OrchestrationThreadSearchMatch, Ls as RelayHookDeliveryProofPayload, Lt as DesignInspectRequest, M as ComputerUseOutput, Mi as ThreadMetadataMcpUpdateInput, Ml as PullRequestState, Mn as PreviewAutomationRecordingArtifact, Mo as DeviceNotFoundError, Mp as AuthTerminalOperateScope, Ms as RelayApi, Mt as DesignHandoffReceipt, Mu as getErrorSchemas, N as computerUseJevStepCode, Na as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Nc as OrchestrationV2SearchThreadError, Nf as isHttpClientError, Ni as ThreadMetadataMcpUpdateResult, Nn as PreviewAutomationRecordingDeadlineExpiredError, No as DeviceOperationError, Np as AuthTerminalReadScope, Ns as RelayCloudEnvironmentHealthProofPayload, Nt as DesignHandoffRequest, O as ComputerUseHostRegistration, Oa as BackgroundActivityProfileSelection, Oh as set$2, Oi as OrchestratorMcpThreadSendInput, Ol as ThreadPullRequestLinkSource, Om as ProviderInstanceId, On as PreviewAutomationMalformedResponseError, Oo as DeviceEasAccountError, Op as AuthRelayReadScope, Os as EnvironmentResourceNotFoundError, Ot as DesignApplyRequest, P as CLIENT_GUARDED_RPC_SCOPES, Pd as empty$5, Pn as PreviewAutomationRecordingDesktopUpdateRequiredError, Po as DevicePlatformAvailability, Ps as RelayCloudMintCredentialProofPayload, Pt as DesignImportTokensReceipt, Pu as getSuccessSchemas, Q as WsSelfImproveSaveFindingsRpc, Qa as requiredScopesForServerSettingsPatch, Qc as linkOriginIsFenced, Qd as filterStatusOk$1, Ql as VcsUnsupportedOperationError, Qn as PreviewAutomationUnavailableError, Qo as DecisionResult, Qp as isStreamUint8Array, Qr as OrchestratorMcpCapabilitiesResult, Qs as OrchestrationGetWorkflowScriptError, Qt as ServerClient, Qu as compression, R as WsHubSyncConnectRpc, Rd as jsonUnsafe, Rf as layer$125, Rl as SourceControlCloneRepositoryInput, Rn as PreviewAutomationRemoteUnavailableError, Ro as DeviceToolListResult, Rp as authScopeRequiredResponse, Rr as OrchestrationThreadSearchSource, Rt as DesignLibraryManifest, Ru as normalize, Sd as Path, Sf as setHeader$1, Sh as empty$6, Si as OrchestratorMcpThreadInterruptInput, Sl as ProviderRequestKind, Sn as PreviewAutomationControlReason, So as ResolvedKeybindingRule, Sp as AuthMcpRegistrationError, Sr as AttachmentCreateUploadUrlInput, Ss as EnvironmentHttpForbiddenError, St as DesignListRequest, Su as getProviderAttachmentLimitError, T as ComputerUseBrowserChatRequest, Tf as setUrlParams, Th as isHeaders, Ti as OrchestratorMcpThreadListResult, Tn as PreviewAutomationEvaluateInput, To as UsageReadError, Tp as AuthOrchestrationReadScope, Tr as AttachmentUploadSigningKeyError, Ts as EnvironmentInternalError, Tt as DesignSubscribeRequest, Tu as isSecurity, U as WsHubSyncSubscribeRpc, Ua as ServerSettingsPatch, Uc as OrchestrationV2ThreadShell, Um as ClientDeviceType, Un as PreviewAutomationSelectResult, Uo as DeviceToolUnavailableError, Ut as DesignRenderRequest, Uu as middleware, V as WsHubSyncRunNowRpc, Va as ServerSettings, Vc as OrchestrationV2ThreadLaunchError, Vd as redirect, Vi as PullRequestReviewGuide, Vl as SourceControlProviderKind, Vn as PreviewAutomationResizeResult, Vo as DeviceToolScreenshotResult, Vt as DesignProposeRequest, Vu as add$2, W as WsMcpRegistryProviderSignInCancelRpc, Wd as setHeader, Wi as GitCommandError, Wm as ClientOs, Wn as PreviewAutomationSetColorSchemeInput, Wo as DeviceToolVersions, Wt as DesignSelection, X as WsRpcGroup, Xc as isProviderNativeSubagentThread, Xd as urlParams, Xn as PreviewAutomationTargetNotEditableError, Xp as isNoContent, Xr as PeerLinkError, Xt as DesignValidateRequest, Y as WsMcpRegistryProviderSignOutRpc, Yd as uint8Array, Yf as FileSystem, Yi as VcsListRefsResult, Yn as PreviewAutomationTabTargetInput, Yp as getWithHeadersAnnotation, Yt as DesignValidateReceipt, Z as WsSelfImproveDismissFindingsRpc, Za as requiredScopesForProjectMutation, Zl as VcsRepositoryDetectionError, Zn as PreviewAutomationTimeoutError, Zo as DecisionInput, Zp as isStreamSchema, Zr as PeerLinkRequestError, Zs as ORCHESTRATION_V2_WS_METHODS, Zt as make$89, Zu as TracerDisabledWhen$1, _ as Asset3dGenerateResult, _c as OrchestrationV2GetThreadProjectionError, _d as limitsServices, _f as make$92, _h as ThreadId, _i as OrchestratorMcpSaveScheduledTaskInput, _l as DEFAULT_PROVIDER_INTERACTION_MODE, _n as PREVIEW_RECORDING_STOP_TIMEOUT_MS, _p as AuthFilesystemReadScope, _r as AssetWorkspaceContextNotFoundError, _s as EnvironmentCloudEndpointUnavailableError, _t as SelfImproveReviewers, _u as ChatImageAttachment, ad as fromHeaders, ah as PositiveInt, ai as OrchestratorMcpDeleteScheduledTaskResult, al as Project, an as WorktreeMcpFailure, ao as FILL_PREVIEW_VIEWPORT, ap as ExecutionEnvironmentDescriptor, ar as ReviewDiffPreviewSourceKind, as as findBrowserProfile, b as Asset3dSearchInput, bh as TurnItemId, bi as OrchestratorMcpTaskCancelResult, bl as ProviderApprovalOption, bn as PreviewAutomationClientDisconnectedError, bo as KeybindingsConfigError, bp as AuthMcpApprovalError, br as AssetWorkspaceResolutionError, bt as DesignHumanApplyRequest, cc as OrchestrationV2DelegatedFrom, cd as ParsedSearchParams, cf as bearerToken, ci as OrchestratorMcpEnvironmentLinksResult, cl as ProjectMutation, cm as makeParser, cn as WorktreeMcpStatusResult, co as PREVIEW_VIEWPORT_PRESET_IDS, cr as AssetCreateUrlInput, ct as Service$2, dd as schemaHeaders, df as bodyJsonUnsafe, dh as RpcClientId, di as OrchestratorMcpEnvironmentUnlinkResult, dm as AcpRegistryOperationError, dr as AssetProjectFaviconInspectionError, ds as DESKTOP_UPDATE_RESTART_MARKER_FILE, dt as SelfImproveEvidence, du as OrchestrationGetFullThreadDiffError, ea as ServerProviderUpdateError, ec as OrchestrationV2AppThreadJson, eh as MessageId, ei as OrchestratorMcpCreateThreadsInput, em as isWithHeadersValue, eo as resolveProjectProviderInstanceEnabled, ep as PlatformError, er as PreviewAutomationWaitForInput, es as ThreadDecisionsReadError, et as WsSelfImproveSubscribeSettingsRpc, eu as McpRegistryRpcError, fd as schemaSearchParams, ff as bodyStream, fi as OrchestratorMcpFailure, fl as ProjectSearchContentsError, fo as PreviewListResult, fp as AuthAccessWriteScope, fr as AssetProjectFaviconNotFoundError, ft as SelfImproveFindings, fu as OrchestrationGetTurnDiffError, g as Asset3dGenerateInput, gc as OrchestrationV2GetShellSnapshotError, gd as isPersistedFile, gf as get$4, gi as OrchestratorMcpRequestSecretResult, gn as PREVIEW_AUTOMATION_V1_OPERATIONS, go as PreviewViewportSetting, gr as AssetWorkspaceAssetNotFoundError, gs as EnvironmentAuthenticatedPrincipal, gt as SelfImproveReview, gu as ChatFileAttachment, h as Asset3dFiles, hf as del, hh as ScheduledTaskId, hi as OrchestratorMcpRequestSecretInput, hl as ProjectWriteFileError, hn as PREVIEW_AUTOMATION_SERVER_OPERATIONS, ho as PreviewTabId, hp as AuthEnvironmentMaintainScope, hr as AssetWorkspaceAssetInspectionError, hs as EnvironmentAuthenticatedAuth, ht as SelfImproveResult, hu as ChatAttachmentId, ia as isProviderTextGenerationCapable, ic as OrchestrationV2ContextTransfer, if as schemaBodyJson, ii as OrchestratorMcpDeleteScheduledTaskInput, il as OrchestrationProjectShell, ip as make$91, ir as ReviewDiffPreviewSource, it as WsSubscribeThreadDecisionsRpc, iu as McpServerRuntimeState, j as ComputerUseJsInput, jc as OrchestrationV2RuntimeRequest, jd as toResponse, ji as OrchestratorMcpThreadWaitResult, jn as PreviewAutomationOpenInput, jo as DeviceId, jp as AuthStandardClientScopes, jr as FilesystemBrowseError, jt as DesignGuideRequest, k as ComputerUseHostReport, kh as bytes, ki as OrchestratorMcpThreadSendResult, kl as PullRequestLinkedThreadsResult, km as ProviderInstanceMutation, kn as PreviewAutomationNavigateInput, ko as DeviceHostId, kp as AuthRelayWriteScope, ks as EnvironmentScopeRequiredError, lc as OrchestrationV2DispatchCommandError, lf as bodyFormData, li as OrchestratorMcpEnvironmentTarget, ll as ProjectMutationError, lo as PreviewClearProfileError, lp as AuthAccessReadScope, lr as AssetGitHubMediaUrlValidationError, ls as DesktopBrowserCommand, lt as SelfImproveDecision, m as Asset3dFetchInput, ma as ProviderUploadFeedbackError, mh as RuntimeRequestId, mi as OrchestratorMcpListScheduledTasksResult, ml as ProjectUpdatePayload, mn as McpCapabilityUnavailableError, mo as PreviewStreamHostSetup, mp as AuthDiagnosticsReadScope, mr as AssetSigningKeyLoadError, ms as EnvironmentAuthInvalidError, mt as SelfImproveRequest, nh as NonNegativeInt, ni as OrchestratorMcpDelegateTaskInput, nl as ToolActivityNativeAppReference, ns as BUILT_IN_BROWSER_PROFILES, nt as WsSelfImproveUndoSaveRpc, nu as McpServerId, of as appendUrlParams, oh as ProjectId, oi as OrchestratorMcpEnvironmentLinkInput, ol as ProjectCreatePayload, on as WorktreeMcpHandoffInput, oo as PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE, or as ATTACHMENT_UPLOAD_URL_TTL_MS, os as resolveBrowserProfiles, ou as PluginId, pa as ProviderSetupError, pd as toURL, ph as RunId, pi as OrchestratorMcpListScheduledTasksInput, pl as ProjectSearchEntriesError, pn as BrowserNavigationTarget, pr as AssetProjectFaviconResolutionError, ps as RelayClientInstallFailedError, pt as SelfImproveLabel, pu as OrchestrationGetTurnDiffResult, q as WsMcpRegistryProviderSignInStateRpc, qd as stream, qm as CommandId, qn as PreviewAutomationStatus, qo as LOCAL_DEVICE_HOST_LABEL, qp as getStatusErrorSchema, qs as toRouterPath, qt as DesignStylesReceipt, qu as use, ra as isProviderAvailable, ri as OrchestratorMcpDelegateTaskResult, rl as UsageLimitSourceError, rm as hasBody, rr as ReviewDiffFileStat, rt as WsSelfImproveUpdateSettingsRpc, sd as HttpServerRequest, si as OrchestratorMcpEnvironmentLinkResult, sl as ProjectListEntriesError, sm as encoder$1, sn as WorktreeMcpHandoffResult, sp as ORCHESTRATION_PROTOCOL_QUERY_PARAM, sr as AssetAttachmentNotFoundError, tf as MaxBodySize, ti as OrchestratorMcpCreateThreadsResult, tl as ToolActivityIcon, tn as make$90, tr as SERVER_BROWSER_AUTOMATION_CLIENT_ID, tt as WsSelfImproveSubscribeThreadFindingsRpc, uc as OrchestrationV2DispatchCommandResult, ud as schemaCookies, uf as bodyJson, ui as OrchestratorMcpEnvironmentUnlinkInput, ul as ProjectReadFileError, up as AuthAccessStreamError, ur as AssetPreviewTypeValidationError, us as DesktopBrowserEvent, ut as SelfImproveError, uu as supportsProviderMcpSignIn, v as Asset3dGenerateStatusInput, vf as post, vh as TrimmedNonEmptyString, vi as OrchestratorMcpScheduleTaskResult, vm as DEFAULT_MODEL, vn as PreviewAutomationActInput, vp as AuthFilesystemWriteScope, vr as AssetWorkspaceContextResolutionError, vs as EnvironmentHttpApi, vt as SelfImproveSaveFindingsResult, vu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, w as COMPUTER_USE_MAX_OUTPUT_CHARS, wi as OrchestratorMcpThreadListInput, wl as RuntimeMode$1, wn as PreviewAutomationError, wp as AuthOrchestrationOperateScope, wr as AttachmentDeleteInput, ws as EnvironmentHttpUnauthorizedError, wt as DesignServiceError, x as Asset3dSearchResult, xf as setBody, xh as CurrentRedactedNames, xi as OrchestratorMcpTaskStatusInput, xl as ProviderInteractionMode, xn as PreviewAutomationControlInterruptedError, xp as AuthMcpClientAccess, xr as AssetWorkspaceRootNormalizationError, xs as EnvironmentHttpConflictError, xt as DesignListReceipt, xu as PersistChatAttachmentsError, y as Asset3dGenerateStatusResult, yi as OrchestratorMcpTaskCancelInput, yl as ProviderApprovalDecision, yn as PreviewAutomationActInputs, yo as KeybindingRule, yp as AuthGrantScope, yr as AssetWorkspacePathValidationError, ys as EnvironmentHttpBadRequestError, yt as UserInputRankError, z as WsHubSyncDisconnectRpc, zd as mergeCookies, zf as report$1, zl as SourceControlCloneRepositoryResult, zn as PreviewAutomationRequestQueueClosedError, zo as DeviceToolOpenInput, zp as authScopeResponse, zr as HubSyncError, zs as RelayManagedEndpointRecoveryRegistrationResponse, zu as HttpRouter } from "./sha2-oCwRxj9g.mjs";
|
|
8
|
+
import { $ as PROJECT_FAVICON_FALLBACK_MARKER, $n as layer$139, $t as EMPTY_TOTALS, A as ThreadManagementError, An as RpcSerialization, Ar as offer, At as makeCodexChatGptAuth, B as ProviderSessionManagerV2, Bn as PtyAdapter, Br as set$3, Bt as normalizeKey, C as ManagedProjectFolders, Cn as Protocol, Cr as CheckpointStore, Ct as layer$160, D as createTranscriptJsonReader, Dn as Protocol$1, Dr as delegatedTaskProgress, Dt as layer$136, E as layer$126, En as makeProtocolWithHttpEffectWebsocket, Er as parseTurnDiffFilesFromNumstat, Et as layer$135, F as latestRun, Fn as claudeSkillInvocation, Fr as make$93, Ft as JWTClaimsBuilder, G as stringArray, Gn as withWorkspaceLease, Gr as make$97, Gt as JWTInvalid, H as layer$152, Hn as layer$158, Hr as make$98, Ht as isDisjoint, I as withCreationProvenance, In as AcpRegistryCatalog, Ir as update$2, It as checkKeyType, J as layer$153, Jn as BackgroundPolicy, Jt as encode$3, K as stringRecord, Kn as TextGeneration, Kt as encode$2, L as OrchestratorV2, Ln as layerFromHost, Lr as changes, Lt as validateCrit, M as isActiveRun, Mn as layerJson, Mr as take$1, Mt as codexCallbackUrl, N as isTerminalRunStatus, Nn as layerJsonRpc, Nr as unbounded, Nt as providerAuthReturnUrl, O as ProviderAuthService, On as make$96, Or as subagentResultForRun, Ot as sameUsageLimitCommandCoverage, P as latestActiveRun, Pn as RequestId$2, Pr as get$5, Pt as jwtVerify, Q as layer$151, Qn as layer$138, Qt as layer$157, R as OrchestratorV2Error, Rn as toAcpRegistryOperationError, Rr as get$6, Rt as importPKCS8, S as layer$143, Sn as ProviderEventLoggers, Sr as checkpointRefForScopeOrdinal, St as layer$133, T as AgentSessionScanner, Tn as makeProtocolWithHttpEffect, Tr as isGitImport, Tt as layer$134, U as isRecord$1, Un as nodeRuntimeUnavailableMessage, Ur as run$1, Ut as assertNotSet, V as McpRegistry, Vn as PtySpawnError, Vr as update$3, Vt as sign, W as registryNameFor, Wn as resolveNodeExecutable, Wr as get$7, Wt as JWSInvalid, X as layerObserver, Xn as layer$130, Xt as codexPlanLabel, Y as layerCallbackRoute, Yn as layer$131, Yt as CodexInstallation, Z as WorkspaceEntries, Zn as PullRequestService, Zt as codexRateLimitsToLimits, _ as SecretRequests, _n as isWorkspacePreviewEntryPath, _r as ProviderAdapterRegistryV2, _t as layer$148, a as layerProjectService, an as ModelManifest, ar as AgentScope, at as layer$145, b as layer$127, bn as mergeProviderInstanceEnvironment, br as DispatchModeLimit, bt as layer$137, c as ProviderRuntimeRecoveryService, cn as resolveProviderCompatibility, cr as layer$163, ct as ProviderRegistry, d as layer$150, dn as openZipArchive, dr as clientModeCeiling, dt as TerminalManager, en as claudeUsageResponseToLimits, er as layer$141, et as isProjectFaviconPath, f as ScratchThreadPromotion, fn as WORKSPACE_BROWSER_PREVIEW_EXTENSIONS, fr as hiddenWhileLinksOff, ft as layer$149, g as relayHookBaseUrl, gn as isWorkspaceImagePreviewPath, gr as threadLinkFor, gt as PortDiscovery, h as WEBHOOK_ROUTE_PREFIX, hn as hostPreviewMimeTypeFromExtension, hr as requireThreadScope, ht as layer$129, i as layerProduction, in as BUNDLED_MODEL_MANIFEST, ir as layer$162, it as GitWorkflowService, j as ThreadManagementService, jn as jsonRpc, jr as shutdown, jt as codexAuthorizationRequest, k as McpAppRequests, kn as makeNoSerialization, kr as clear$1, kt as withUsageLimitsCommands, l as runDaemon, ln as layer$132, lr as MODE_LIMIT_HEADER, lt as layer$154, m as ScheduledTaskWebhookOrigin, mn as audioMimeTypeFromExtension, mr as requireThreadMcpCapability, mt as layer$128, n as layerEventInfrastructure, nn as COMPACTION_SUGGESTION_MIN_TOKENS, nr as layerAnalytics, nt as layer$146, o as layerProjectSetupScriptRunner, on as layer$156, or as agentScopeCommand, ot as GitManager, p as ScheduledTaskService, pn as WORKSPACE_IMAGE_PREVIEW_EXTENSIONS, pr as requireMcpCapability, pt as NativeTelemetryClient, q as transportFromJsonEntry, qn as layer$144, qt as concat$1, rn as readContainedWorkflowFile, rr as AnalyticsService, rt as layerAutoPullPolicy, s as layerReports, sn as layerModelCatalog, sr as McpSessionRegistry, st as layer$142, tn as makeEventNdjsonLogStore, tr as layer$140, tt as VcsStatusBroadcaster, u as PreviewManager, un as AntigravityInstallation, ur as McpInvocationContext, ut as ProjectSetupScriptRunner, v as ThreadLaunchService, vn as makeUnavailableUsageLimits, vr as layerFromProviderInstanceRegistry, vt as deriveProviderInstanceConfigMap, w as AgentSessionImporter, wn as make$95, wr as layer$147, wt as layer$161, x as WorktreeSetupTracker, xn as NoOpProviderEventLoggers, xr as runOutcome, xt as BUILT_IN_USAGE_DRIVERS, y as Decisions, yn as layer$159, yr as ProviderInstanceRegistry, yt as layer$155, z as queuedRunsInDeliveryOrder, zn as AcpRegistryRuntimeCoordinator, zr as make$94, zt as importSPKI } from "./runtimeLayer-5R-ZfBsl.mjs";
|
|
9
|
+
import { A as fromIterable, An as unbounded$1, B as isStream, C as flattenIterable, Cn as publish, Ct as takeWhile, Dn as sliding, En as shutdown$2, Fn as await_, Ft as unwrap$1, G as mapEffect, H as map$5, Hn as runIn, I as fromSubscription, In as getCurrent, It as zipLatestWith, J as mergeAll$1, K as mapError$1, L as groupedWithin, Ln as interrupt$1, M as fromPubSub, N as fromPull, Nt as transformPull, O as fromEffect, On as subscribe, P as fromQueue, Pn as awaitAll, Pt as unfold, S as flatMap$3, Sn as unbounded$2, Tt as tick, U as mapAccum, V as make$100, Vn as join, Vt as last, W as mapArrayEffect, X as mkUint8Array, Y as mkString, Z as onEnd, _ as failCause$4, _n as shutdown$1, _t as splitLines, a as changes$1, an as dropping, at as repeat$1, b as filterMap$1, bn as take$2, c as debounce, cn as fail$6, ct as runCollect, en as make$99, et as pipeThroughChannel, f as drop, fn as make$101, ft as runForEach, g as fail$5, gt as scoped$1, hn as offerUnsafe, ht as runLast, i as catch_$1, kt as toPull, l as decodeText, ln as failCause$3, lt as runDrain, m as encodeText, mn as offerAll, mt as runHead, n as catchCause$1, nt as provideContext$1, o as changesWith, on as end, ot as retry$2, p as empty$7, pn as offer$1, pt as runForEachArray, q as merge$2, rn as clear$2, s as concat$2, sn as endUnsafe, st as run$2, t as callback$1, tn as makeUnsafe$3, un as failCauseUnsafe, ut as runFold, v as filter$2, vt as succeed$5, w as forever$1, wt as tap$3, xt as takeUntil, y as filterEffect, yt as suspend$2 } from "./Stream-DZTo5F3N.mjs";
|
|
10
|
+
import { $ as readCliDesiredLinkMode, $t as serverAuthCredentialReason, A as layer$167, At as isLoopbackHost$1, Bn as appendPreResponseHandler, Bt as ServerAuthCloudMintPublicKeyMissingError, C as shouldRetryRelayRequest, Cn as entriesToAttributes, D as CloudManagedEndpointRuntime, Dn as layerFlusher, E as layer$176, En as unknownToAttributeValue, F as readTailscaleSshEnabled, Fn as make$103, Ft as EnvironmentAuth, G as ExternalLauncher, Gt as isBrowserCookieCredential, H as hasCloudPublicConfig, Ht as ServerAuthLinkedCloudAccountMissingError, I as readTailscaleStatus, In as tracerLogger, J as import_websocket, Jt as isServerAuthInvalidRequestError, K as layer$170, Kt as isServerAuthCredentialError, Lt as ServerAuthCloudHealthJwtSigningError, M as disableTailscaleServe, Mt as issueHeadlessServeAccessInfo, N as ensureTailscaleServe, Nn as consolePretty, On as make$102, Ot as formatHeadlessServeOutput, P as probeTailscaleHttpsEndpoint, Pn as layer$164, Q as readCliDesiredCloudLink, Qt as selectRequestCredential, R as CloudCliTokenManager, Rn as log, Rt as ServerAuthCloudLinkJwtSigningError, S as relayRequestError, Sn as make$104, St as isTailnetHost, Tn as serviceNameUnsafe, Tt as makePersistedServerRuntimeState, U as relayUrlConfig, Ut as ServerAuthLinkedCloudAccountReadError, V as layer$169, Vn as appendPreResponseHandlerUnsafe, Vt as ServerAuthCloudRelayIssuerMissingError, W as isSecureRelayUrl, Wt as ServerAuthLinkedCloudAccountVerificationError, Y as import_websocket_server, Yt as layer$166, Zt as parseBearerToken, _ as layer$175, _n as encodeOAuthScope, _t as sandboxDisabled, a as EnvironmentThemeService, an as DESKTOP_RENDERER_ORIGINS, at as layerCloudflared, b as layerServerRelayBroker, bn as fixPath, bt as layer$172, cn as DPOP_REPLAY_MARKER_PREFIX, dn as PairingGrantStore, dt as PreviewBrowserRootError, en as serverAuthDpopFailureReason, et as setCliDesiredCloudLink, f as acquireServerOwnership, fn as base64UrlDecodeUtf8, ft as PreviewBrowserSandboxError, g as HubLink, gn as timingSafeEqualBase64Url, gt as sandboxBlocked, h as layer$174, hn as signPayload, it as RelayClient, j as buildTailscaleHttpsBaseUrl, jt as isWildcardHost, k as isRetryableManagedEndpointRuntimeStatus, kn as getCurrentVersion, kt as formatHostForUrl, ln as verifyRequestDpopProof, lt as NO_SANDBOX_SIGNATURE, m as layer$173, mn as deriveAuthClientMetadata, mt as diagnoseLaunchFailure, n as readTraceDiagnostics, nn as layerConfig, nt as withLocalTracing, on as browserApiCorsAllowedHeaders, p as AssetSync, pn as base64UrlEncode, pt as SETUP_SUBCOMMAND, q as layer$165, qt as isServerAuthInternalError, rt as withRelayClientTracing, s as layer$168, sn as browserApiCorsAllowedMethods, t as layer$171, tn as serverAuthInvalidRequestReason, tt as RelayClientTracer, u as mutateProjectWithClone, un as SessionStore, ut as PreviewBrowserLibrariesError, v as writeSkillDirectory, vn as parseOAuthScope, vt as LINKED_ENVIRONMENTS_OFF, w as ConnectReachability, wn as fromConfig, x as filterRelayResponse, xt as isPrivateNetworkHost, yt as PeerLinks, zt as ServerAuthCloudMintJwtSigningError } from "./TraceDiagnostics-BU8mTsuy.mjs";
|
|
11
|
+
import { C as modelFileDiagnostics, E as isDesignDocumentPath, S as glbSummary, T as designDocumentBaseName, _ as semanticDiff, a as computeLayout, b as MODEL_MAX_BYTES, d as parseDesign, f as patchNode, g as selectLayoutItems, h as reviewState, l as fileHash, m as resolveValue, n as buildIndexes, o as diagnostic, r as canonicalSerialize, s as documentContentDigest, u as isConfinedRelativePath, v as validateDesign, w as DESIGN_EXTENSIONS, x as MODEL_MESHOPT_EXTENSION, y as MODEL_DRACO_EXTENSION } from "./runtime-BUfUqrrw.mjs";
|
|
12
12
|
import * as NodeModule from "node:module";
|
|
13
13
|
import * as NodeFS from "node:fs";
|
|
14
14
|
import * as NodeOS from "node:os";
|
|
@@ -110,7 +110,7 @@ const make$73 = /*#__PURE__*/ fnUntraced(function* (options) {
|
|
|
110
110
|
name: "effect",
|
|
111
111
|
version: getCurrentVersion()
|
|
112
112
|
};
|
|
113
|
-
const exporter = yield* make$
|
|
113
|
+
const exporter = yield* make$102({
|
|
114
114
|
label: "OtlpLogger",
|
|
115
115
|
url: options.url,
|
|
116
116
|
headers: options.headers,
|
|
@@ -129,7 +129,7 @@ const make$73 = /*#__PURE__*/ fnUntraced(function* (options) {
|
|
|
129
129
|
excludeLogSpans: options.excludeLogSpans ?? false,
|
|
130
130
|
clock: yield* Clock
|
|
131
131
|
};
|
|
132
|
-
return make$
|
|
132
|
+
return make$103((options) => {
|
|
133
133
|
exporter.push(makeLogRecord(options, opts));
|
|
134
134
|
});
|
|
135
135
|
});
|
|
@@ -457,7 +457,7 @@ const make$72 = /*#__PURE__*/ fnUntraced(function* (options) {
|
|
|
457
457
|
committedSnapshotSequence = currentSnapshotSequence;
|
|
458
458
|
}) : void_];
|
|
459
459
|
};
|
|
460
|
-
yield* make$
|
|
460
|
+
yield* make$102({
|
|
461
461
|
label: "OtlpMetrics",
|
|
462
462
|
url: options.url,
|
|
463
463
|
headers: options.headers,
|
|
@@ -3616,7 +3616,7 @@ function createStore(resolveRoot, options) {
|
|
|
3616
3616
|
/** The optional Skia renderer, loaded once; a failed load is tried again on the next render. */
|
|
3617
3617
|
const loadRenderer = async () => {
|
|
3618
3618
|
try {
|
|
3619
|
-
renderer ??= (options.loadRenderer ?? (() => import("./renderer-
|
|
3619
|
+
renderer ??= (options.loadRenderer ?? (() => import("./renderer-BeTlHpQk.mjs")))();
|
|
3620
3620
|
return await renderer;
|
|
3621
3621
|
} catch (error) {
|
|
3622
3622
|
renderer = void 0;
|
|
@@ -4412,11 +4412,11 @@ const layer$92 = unwrap(gen(function* () {
|
|
|
4412
4412
|
* @returns A `DrainableWorker` with `enqueue` and `drain`.
|
|
4413
4413
|
*/
|
|
4414
4414
|
const makeDrainableWorker = (process) => gen(function* () {
|
|
4415
|
-
const outstanding = yield* make$
|
|
4416
|
-
const queue = yield* acquireRelease(unbounded(), (queue) => clear$1(queue).pipe(flatMap((dropped) => update$
|
|
4417
|
-
yield* take$1(queue).pipe(flatMap((a) => suspend(() => process(a)).pipe(catchCause((cause) => hasInterruptsOnly(cause) ? void_ : logError("DrainableWorker item failed", cause)), ensuring(update$
|
|
4418
|
-
const drain = get$
|
|
4419
|
-
const enqueue = (element) => offer(queue, element).pipe(tap((offered) => offered ? update$
|
|
4415
|
+
const outstanding = yield* make$93(0);
|
|
4416
|
+
const queue = yield* acquireRelease(unbounded(), (queue) => clear$1(queue).pipe(flatMap((dropped) => update$2(outstanding, (n) => n - dropped.length)), andThen(shutdown(queue)), tx));
|
|
4417
|
+
yield* take$1(queue).pipe(flatMap((a) => suspend(() => process(a)).pipe(catchCause((cause) => hasInterruptsOnly(cause) ? void_ : logError("DrainableWorker item failed", cause)), ensuring(update$2(outstanding, (n) => n - 1)))), forever, forkScoped);
|
|
4418
|
+
const drain = get$5(outstanding).pipe(flatMap((n) => n > 0 ? txRetry : void_), tx);
|
|
4419
|
+
const enqueue = (element) => offer(queue, element).pipe(tap((offered) => offered ? update$2(outstanding, (n) => n + 1) : void_), tx);
|
|
4420
4420
|
return {
|
|
4421
4421
|
enqueue,
|
|
4422
4422
|
drain
|
|
@@ -4751,8 +4751,8 @@ const make$71 = (options = {}) => gen(function* () {
|
|
|
4751
4751
|
const fs = yield* FileSystem;
|
|
4752
4752
|
const path = yield* Path;
|
|
4753
4753
|
const git = yield* GitVcsDriver;
|
|
4754
|
-
const lock = yield* make$
|
|
4755
|
-
const memoryLock = yield* make$
|
|
4754
|
+
const lock = yield* make$99(1);
|
|
4755
|
+
const memoryLock = yield* make$99(1);
|
|
4756
4756
|
const reviews = yield* make$80();
|
|
4757
4757
|
const changes = yield* unbounded$1();
|
|
4758
4758
|
const settingsChanges = yield* sliding(1);
|
|
@@ -5162,7 +5162,7 @@ const make$71 = (options = {}) => gen(function* () {
|
|
|
5162
5162
|
}, mapError(() => new SelfImproveError({ message: "Could not read self-improve findings." })));
|
|
5163
5163
|
const threadFindings = (threadId) => unwrap$1(gen(function* () {
|
|
5164
5164
|
const subscription = yield* subscribe(changes);
|
|
5165
|
-
return concat$2(make$
|
|
5165
|
+
return concat$2(make$100(threadId), fromSubscription(subscription).pipe(filter$2((changed) => changed === threadId))).pipe(mapEffect(() => unshownFindings(threadId)), changesWith((left, right) => left.reviews.length === right.reviews.length && left.reviews.every((review, index) => review.id === right.reviews[index]?.id)));
|
|
5166
5166
|
}));
|
|
5167
5167
|
const dismissFindings = fn("SelfImprove.dismissFindings")(function* (input) {
|
|
5168
5168
|
const shownAt = yield* now$10;
|
|
@@ -5188,7 +5188,7 @@ const make$71 = (options = {}) => gen(function* () {
|
|
|
5188
5188
|
}, mapError(() => new SelfImproveError({ message: "Could not read self-improve settings." })));
|
|
5189
5189
|
const settings = unwrap$1(gen(function* () {
|
|
5190
5190
|
const subscription = yield* subscribe(settingsChanges);
|
|
5191
|
-
return concat$2(make$
|
|
5191
|
+
return concat$2(make$100(void 0), fromSubscription(subscription)).pipe(mapEffect(readSettings));
|
|
5192
5192
|
}));
|
|
5193
5193
|
const updateSettings = fn("SelfImprove.updateSettings")(function* (input) {
|
|
5194
5194
|
yield* configure({
|
|
@@ -5450,11 +5450,11 @@ const layer$90 = effect(ComputerUseBroker, gen(function* () {
|
|
|
5450
5450
|
const crypto = yield* Crypto;
|
|
5451
5451
|
const environment = yield* ServerEnvironment;
|
|
5452
5452
|
const environmentId = yield* environment.getEnvironmentId;
|
|
5453
|
-
const admission = yield* make$
|
|
5454
|
-
const controlAdmission = yield* make$
|
|
5453
|
+
const admission = yield* make$99(1);
|
|
5454
|
+
const controlAdmission = yield* make$99(1);
|
|
5455
5455
|
const states = /* @__PURE__ */ new Map();
|
|
5456
5456
|
const stoppedThreads = /* @__PURE__ */ new Set();
|
|
5457
|
-
const controls = yield* make$
|
|
5457
|
+
const controls = yield* make$94([]);
|
|
5458
5458
|
const publish = () => set$3(controls, [...states.values()]);
|
|
5459
5459
|
const stopped = () => new ComputerUseError({
|
|
5460
5460
|
reason: "stopped",
|
|
@@ -6083,7 +6083,7 @@ const connect = addRoute("POST", "/internal/computer-use/connect", gen(function*
|
|
|
6083
6083
|
host: input.host
|
|
6084
6084
|
});
|
|
6085
6085
|
const events = yield* broker.connect(helper.credential, input.host);
|
|
6086
|
-
return concat$2(make$
|
|
6086
|
+
return concat$2(make$100({
|
|
6087
6087
|
type: "credential",
|
|
6088
6088
|
credential: helper.credential,
|
|
6089
6089
|
connectionId: helper.connectionId
|
|
@@ -6163,7 +6163,7 @@ const make$69 = gen(function* () {
|
|
|
6163
6163
|
const maintenance = yield* ProjectionMaintenanceV2;
|
|
6164
6164
|
const config = yield* ServerConfig;
|
|
6165
6165
|
const path = yield* Path;
|
|
6166
|
-
const statusRef = yield* make$
|
|
6166
|
+
const statusRef = yield* make$94(null);
|
|
6167
6167
|
const { command: compactCommand } = yield* resolveHostCliCommand("doctor", ["--base-dir", config.baseDir]);
|
|
6168
6168
|
const doctorTargetsThisDatabase = path.resolve(config.dbPath) === path.resolve(config.baseDir, "userdata", path.basename(config.dbPath));
|
|
6169
6169
|
let layout;
|
|
@@ -6187,7 +6187,7 @@ const make$69 = gen(function* () {
|
|
|
6187
6187
|
incrementalVacuumEnabled: incrementalVacuum,
|
|
6188
6188
|
compactCommand
|
|
6189
6189
|
};
|
|
6190
|
-
if (!equals(yield* get$
|
|
6190
|
+
if (!equals(yield* get$6(statusRef), next)) yield* set$3(statusRef, next);
|
|
6191
6191
|
}).pipe(catch_((cause) => logWarning("Database storage inspection failed", { cause })));
|
|
6192
6192
|
const reclaim = gen(function* () {
|
|
6193
6193
|
if (!(yield* readLayout).incrementalVacuum) return;
|
|
@@ -6835,7 +6835,7 @@ const make$68 = gen(function* () {
|
|
|
6835
6835
|
yield* visit(realRoot);
|
|
6836
6836
|
return removed;
|
|
6837
6837
|
});
|
|
6838
|
-
const reportRef = yield* make$
|
|
6838
|
+
const reportRef = yield* make$94(null);
|
|
6839
6839
|
const sweep = fn("StorageCleanup.sweep")(function* (trigger) {
|
|
6840
6840
|
const now$9 = yield* currentTimeMillis;
|
|
6841
6841
|
const serverSettings = yield* settingsService.getSettings;
|
|
@@ -6957,7 +6957,7 @@ const make$68 = gen(function* () {
|
|
|
6957
6957
|
})();
|
|
6958
6958
|
return StorageCleanup.of({
|
|
6959
6959
|
runNow,
|
|
6960
|
-
latestReport: get$
|
|
6960
|
+
latestReport: get$6(reportRef),
|
|
6961
6961
|
reports: changes(reportRef),
|
|
6962
6962
|
drain: worker.drain
|
|
6963
6963
|
});
|
|
@@ -6965,6 +6965,7 @@ const make$68 = gen(function* () {
|
|
|
6965
6965
|
const layer$86 = effect(StorageCleanup, make$68);
|
|
6966
6966
|
// src/orchestration-v2/PullRequestSyncReactor.ts
|
|
6967
6967
|
const SLOW_SYNC_INTERVAL_MS = 9e5;
|
|
6968
|
+
const CLOSED_FINAL_AFTER_MS = 864e5;
|
|
6968
6969
|
/** Shell commands that can merge or close a pull request without a merge notification. */
|
|
6969
6970
|
const PULL_REQUEST_CLOSE_COMMAND = /\b(?:gh\s+pr|glab\s+mr)\s+(?:merge|close)\b/u;
|
|
6970
6971
|
const isPullRequestProviderError = is(PullRequestProviderError);
|
|
@@ -7041,7 +7042,8 @@ const make$67 = gen(function* () {
|
|
|
7041
7042
|
if (requested.has(key) || retryStacks.has(key)) return true;
|
|
7042
7043
|
if (entries.some((entry) => entry.link.snapshot === null)) return true;
|
|
7043
7044
|
const active = entries;
|
|
7044
|
-
|
|
7045
|
+
const isFinal = ({ link: { snapshot } }) => snapshot?.state === "merged" || snapshot?.state === "closed" && nowMs - Date.parse(snapshot.closedAt ?? "") >= CLOSED_FINAL_AFTER_MS;
|
|
7046
|
+
if (active.every(isFinal)) return false;
|
|
7045
7047
|
if (active.some((entry) => entry.link.snapshot?.state === "open")) return true;
|
|
7046
7048
|
const last = lastSyncedAt.get(key);
|
|
7047
7049
|
return last === void 0 || nowMs - last >= SLOW_SYNC_INTERVAL_MS;
|
|
@@ -7067,7 +7069,7 @@ const make$67 = gen(function* () {
|
|
|
7067
7069
|
for (const key of retryStacks) if (!groups.has(key)) retryStacks.delete(key);
|
|
7068
7070
|
for (const key of requested.keys()) if (!groups.has(key)) requested.delete(key);
|
|
7069
7071
|
const linkedThisSweep = /* @__PURE__ */ new Set();
|
|
7070
|
-
const persistence = yield* make$
|
|
7072
|
+
const persistence = yield* make$99(1);
|
|
7071
7073
|
const syncEntry = fnUntraced(function* (entry, hostFields, fetchedStack, provider) {
|
|
7072
7074
|
const { thread, link } = entry;
|
|
7073
7075
|
const fields = withKnownMergeability(link.snapshot, hostFields, provider);
|
|
@@ -7181,7 +7183,7 @@ const make$67 = gen(function* () {
|
|
|
7181
7183
|
return sweep(scope);
|
|
7182
7184
|
}).pipe(catchCause(logSkipped("pull request sync sweep failed", {}))));
|
|
7183
7185
|
const closeCommandThreads = /* @__PURE__ */ new Set();
|
|
7184
|
-
const
|
|
7186
|
+
const refreshUnmergedLinks = (threadId) => projections.getThreadsWithPullRequests(threadId).pipe(flatMap((threads) => forEach(threads.flatMap((thread) => visibleThreadPullRequests(thread.pullRequests ?? []).filter((link) => link.snapshot?.state === "open" || link.snapshot?.state === "closed")), requestSync, { discard: true })), catchCause(logSkipped("pull request refresh after run skipped", { threadId })));
|
|
7185
7187
|
const start = fn("PullRequestSyncReactor.start")(function* () {
|
|
7186
7188
|
const events = engine.streamDomainEvents;
|
|
7187
7189
|
const stateChanges = merge$2(yield* pullRequests.subscribeStateChanges, yield* git.subscribePullRequestStateChanges);
|
|
@@ -7193,7 +7195,7 @@ const make$67 = gen(function* () {
|
|
|
7193
7195
|
case "turn-item.updated":
|
|
7194
7196
|
if (event.payload.type === "command_execution" && PULL_REQUEST_CLOSE_COMMAND.test(event.payload.input)) closeCommandThreads.add(event.threadId);
|
|
7195
7197
|
return void_;
|
|
7196
|
-
case "run.updated": return isTerminalRunStatus(event.payload.status) && closeCommandThreads.delete(event.threadId) ?
|
|
7198
|
+
case "run.updated": return isTerminalRunStatus(event.payload.status) && closeCommandThreads.delete(event.threadId) ? refreshUnmergedLinks(event.threadId) : void_;
|
|
7197
7199
|
default: return void_;
|
|
7198
7200
|
}
|
|
7199
7201
|
}).pipe(catchCause(logSkipped("pull request sync event stream failed", {}))));
|
|
@@ -7228,7 +7230,7 @@ const isFailedCheck = (check) => check.status === "failure" || check.status ===
|
|
|
7228
7230
|
*/
|
|
7229
7231
|
function evaluatePullRequestWatch(watch, detail, remarks) {
|
|
7230
7232
|
const changes = [];
|
|
7231
|
-
const headSha = detail.headSha ??
|
|
7233
|
+
const headSha = detail.headSha ?? watch.headSha;
|
|
7232
7234
|
const headMoved = headSha !== watch.headSha;
|
|
7233
7235
|
let failedChecks = headMoved ? [] : watch.failedChecks;
|
|
7234
7236
|
let passed = headMoved ? false : watch.passed;
|
|
@@ -7270,8 +7272,9 @@ function evaluatePullRequestWatch(watch, detail, remarks) {
|
|
|
7270
7272
|
const atLatest = fresh.filter((remark) => Date.parse(activeAt(remark)) === latest);
|
|
7271
7273
|
const remarksThrough = latest === through ? watch.remarksThrough : activeAt(atLatest[0]);
|
|
7272
7274
|
const remarkIds = [...latest === through ? watch.remarkIds : [], ...atLatest.map((remark) => remark.id)];
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
+
const toldConflict = !headMoved && watch.conflicting;
|
|
7276
|
+
if (detail.mergeability === "conflicting" && !toldConflict) changes.push({ kind: "conflicting" });
|
|
7277
|
+
const conflicting = detail.mergeability === "unknown" ? toldConflict : detail.mergeability === "conflicting";
|
|
7275
7278
|
const commentsOnly = changes.length > 0 && changes.every((change) => change.kind === "remarks");
|
|
7276
7279
|
const wakes = (headMoved || changes.length > 0 && !commentsOnly ? 0 : watch.wakes) + (commentsOnly ? 1 : 0);
|
|
7277
7280
|
return {
|
|
@@ -7292,7 +7295,10 @@ function evaluatePullRequestWatch(watch, detail, remarks) {
|
|
|
7292
7295
|
}
|
|
7293
7296
|
function snippet(body) {
|
|
7294
7297
|
const text = body.replaceAll(/<!--[\s\S]*?-->/g, " ").replaceAll(/\s+/g, " ").trim();
|
|
7295
|
-
|
|
7298
|
+
if (text.length <= SNIPPET_LENGTH) return text;
|
|
7299
|
+
const last = text.charCodeAt(196);
|
|
7300
|
+
const end = last >= 55296 && last <= 56319 ? 196 : 197;
|
|
7301
|
+
return `${text.slice(0, end)}...`;
|
|
7296
7302
|
}
|
|
7297
7303
|
function listed(items, line) {
|
|
7298
7304
|
const lines = items.slice(0, LISTED_ITEMS).map(line);
|
|
@@ -7617,9 +7623,9 @@ const make$66 = gen(function* () {
|
|
|
7617
7623
|
}
|
|
7618
7624
|
readFailures.delete(group.key);
|
|
7619
7625
|
const [detail, activity] = read.value;
|
|
7620
|
-
const headSha = detail.headSha ?? null;
|
|
7621
7626
|
for (const target of group.targets) {
|
|
7622
7627
|
const life = lifeOf(target);
|
|
7628
|
+
const headSha = detail.headSha ?? life.headSha;
|
|
7623
7629
|
const pushed = life.headSha !== null && headSha !== life.headSha;
|
|
7624
7630
|
lives.set(lifeKey(target), {
|
|
7625
7631
|
...life,
|
|
@@ -7735,8 +7741,8 @@ const isIdle = (previous, next) => previous !== null && next !== null && next.re
|
|
|
7735
7741
|
const make$65 = gen(function* () {
|
|
7736
7742
|
const assetSync = yield* AssetSync;
|
|
7737
7743
|
const link = yield* HubLink;
|
|
7738
|
-
const passes = yield* make$
|
|
7739
|
-
const runState = yield* make$
|
|
7744
|
+
const passes = yield* make$99(1);
|
|
7745
|
+
const runState = yield* make$94({
|
|
7740
7746
|
running: false,
|
|
7741
7747
|
lastRun: null
|
|
7742
7748
|
});
|
|
@@ -7751,8 +7757,8 @@ const make$65 = gen(function* () {
|
|
|
7751
7757
|
running: run.running,
|
|
7752
7758
|
lastRun: run.lastRun
|
|
7753
7759
|
});
|
|
7754
|
-
const status = zipWith(link.current, get$
|
|
7755
|
-
const setRun = (update) => update$
|
|
7760
|
+
const status = zipWith(link.current, get$6(runState), statusOf);
|
|
7761
|
+
const setRun = (update) => update$3(runState, update);
|
|
7756
7762
|
const pass = passes.withPermits(1)(gen(function* () {
|
|
7757
7763
|
yield* setRun((run) => ({
|
|
7758
7764
|
...run,
|
|
@@ -7765,7 +7771,7 @@ const make$65 = gen(function* () {
|
|
|
7765
7771
|
const linked = isSome((yield* link.current).settings);
|
|
7766
7772
|
const finishedAt = formatIso(yield* now);
|
|
7767
7773
|
const lastRun = toRun(report, linked, finishedAt);
|
|
7768
|
-
const previous = (yield* get$
|
|
7774
|
+
const previous = (yield* get$6(runState)).lastRun;
|
|
7769
7775
|
yield* setRun((run) => ({
|
|
7770
7776
|
...run,
|
|
7771
7777
|
lastRun
|
|
@@ -8125,7 +8131,7 @@ const resolveNativeAppIconUncached = fn("NativeAppIconResolver.resolveUncached")
|
|
|
8125
8131
|
const make$64 = gen(function* () {
|
|
8126
8132
|
const fileSystem = yield* FileSystem;
|
|
8127
8133
|
const hostPlatform = yield* Platform;
|
|
8128
|
-
const resolutionSemaphore = yield* make$
|
|
8134
|
+
const resolutionSemaphore = yield* make$99(2);
|
|
8129
8135
|
const resolutionCache = yield* makeWith((key) => resolutionSemaphore.withPermits(1)(resolveNativeAppIconUncached(appFromCacheKey(key))), {
|
|
8130
8136
|
capacity: RESOLUTION_CACHE_MAX_ENTRIES,
|
|
8131
8137
|
timeToLive: match$2({
|
|
@@ -8937,7 +8943,7 @@ const fetchFollowingRedirects = fn("GitHubMediaFetch.fetchFollowingRedirects")(f
|
|
|
8937
8943
|
let target = url;
|
|
8938
8944
|
for (let hop = 0;; hop += 1) {
|
|
8939
8945
|
const authorization = token !== null && isCredentialedHost(target) ? `Bearer ${value$1(token)}` : null;
|
|
8940
|
-
const response = yield* httpClient.execute(get$
|
|
8946
|
+
const response = yield* httpClient.execute(get$4(target).pipe(setHeaders$1({
|
|
8941
8947
|
...headers,
|
|
8942
8948
|
"accept-encoding": "identity",
|
|
8943
8949
|
...authorization === null ? {} : { authorization }
|
|
@@ -9091,7 +9097,7 @@ const storeAttachmentUpload = fn("AttachmentUpload.store")(function* (claims, bo
|
|
|
9091
9097
|
const fileSystem = yield* FileSystem;
|
|
9092
9098
|
const path = yield* Path;
|
|
9093
9099
|
let receivedBytes = 0;
|
|
9094
|
-
const bodyStream = body instanceof Uint8Array ? make$
|
|
9100
|
+
const bodyStream = body instanceof Uint8Array ? make$100(body) : body;
|
|
9095
9101
|
return yield* gen(function* () {
|
|
9096
9102
|
yield* fileSystem.makeDirectory(path.dirname(finalPath), { recursive: true });
|
|
9097
9103
|
yield* run$2(bodyStream.pipe(takeWhile((chunk) => {
|
|
@@ -17746,7 +17752,7 @@ async function runDesignTransfer(request, options, emit, signal) {
|
|
|
17746
17752
|
const native = async () => {
|
|
17747
17753
|
check();
|
|
17748
17754
|
try {
|
|
17749
|
-
return renderer ??= await (options.loadRenderer ?? (() => import("./renderer-
|
|
17755
|
+
return renderer ??= await (options.loadRenderer ?? (() => import("./renderer-BeTlHpQk.mjs")))();
|
|
17750
17756
|
} catch {
|
|
17751
17757
|
throw fail("Optional renderer unavailable; install skia-canvas 3.0.8 for this host", "renderer-unavailable");
|
|
17752
17758
|
}
|
|
@@ -18814,7 +18820,7 @@ const make$60 = gen(function* () {
|
|
|
18814
18820
|
const { keybindingsConfigPath } = yield* ServerConfig;
|
|
18815
18821
|
const fs = yield* FileSystem;
|
|
18816
18822
|
const path = yield* Path;
|
|
18817
|
-
const upsertSemaphore = yield* make$
|
|
18823
|
+
const upsertSemaphore = yield* make$99(1);
|
|
18818
18824
|
const resolvedConfigCacheKey = "resolved";
|
|
18819
18825
|
const changesPubSub = yield* unbounded$1();
|
|
18820
18826
|
const startedRef = yield* make$81(false);
|
|
@@ -19692,19 +19698,19 @@ const makeThreadLiveEventCoalescer = (options) => gen(function* () {
|
|
|
19692
19698
|
const budget = yield* makeLiveStreamBudget(options);
|
|
19693
19699
|
const cleanupComplete = yield* make$74();
|
|
19694
19700
|
const output = yield* unbounded$2();
|
|
19695
|
-
const mutex = yield* make$
|
|
19701
|
+
const mutex = yield* make$99(1);
|
|
19696
19702
|
const coalesceWindow = options?.coalesceWindow ?? COALESCE_WINDOW;
|
|
19697
19703
|
let pendingUpdates = [];
|
|
19698
19704
|
let windowGeneration = 0;
|
|
19699
19705
|
let windowFiber = null;
|
|
19700
19706
|
let closed = false;
|
|
19701
|
-
const cancelWindow =
|
|
19707
|
+
const cancelWindow = fnUntraced(function* () {
|
|
19702
19708
|
const fiber = windowFiber;
|
|
19703
19709
|
if (!fiber) return;
|
|
19704
19710
|
windowFiber = null;
|
|
19705
19711
|
yield* interrupt$1(fiber);
|
|
19706
19712
|
});
|
|
19707
|
-
const flushPending =
|
|
19713
|
+
const flushPending = fnUntraced(function* () {
|
|
19708
19714
|
if (pendingUpdates.length === 0) return;
|
|
19709
19715
|
const items = yield* budget.replace(pendingUpdates, coalesceLiveUpdatedEvents(pendingUpdates.map((item) => item.value)));
|
|
19710
19716
|
pendingUpdates = [];
|
|
@@ -19713,7 +19719,7 @@ const makeThreadLiveEventCoalescer = (options) => gen(function* () {
|
|
|
19713
19719
|
const flushWindow = (generation) => sleep(coalesceWindow).pipe(andThen(mutex.withPermits(1)(suspend(() => generation === windowGeneration ? flushPending() : void_))), ensuring(sync(() => {
|
|
19714
19720
|
if (generation === windowGeneration) windowFiber = null;
|
|
19715
19721
|
})), catchTags({ LiveStreamBufferError: () => void_ }));
|
|
19716
|
-
const offerAll$1 =
|
|
19722
|
+
const offerAll$1 = fnUntraced(function* (inputs) {
|
|
19717
19723
|
yield* mutex.withPermits(1)(forEach(inputs, (input) => gen(function* () {
|
|
19718
19724
|
yield* budget.check;
|
|
19719
19725
|
if (input.kind === "event") yield* budget.retain(input).pipe(tap((item) => sync(() => pendingUpdates.push(item))), uninterruptible);
|
|
@@ -21733,7 +21739,7 @@ const classifyResponseError = (context, error) => {
|
|
|
21733
21739
|
};
|
|
21734
21740
|
const make$52 = gen(function* PreviewAutomationBrokerMake() {
|
|
21735
21741
|
const crypto = yield* Crypto;
|
|
21736
|
-
const state = yield* make$
|
|
21742
|
+
const state = yield* make$85({
|
|
21737
21743
|
clients: /* @__PURE__ */ new Map(),
|
|
21738
21744
|
assignments: /* @__PURE__ */ new Map(),
|
|
21739
21745
|
pending: /* @__PURE__ */ new Map(),
|
|
@@ -21801,7 +21807,7 @@ const make$52 = gen(function* PreviewAutomationBrokerMake() {
|
|
|
21801
21807
|
});
|
|
21802
21808
|
const connect = fn("PreviewAutomationBroker.connect")((host, options) => succeed(unwrap$1(acquireRelease(acquireConnection(host, options), (connection) => disconnect(connection.clientId, connection.queue)).pipe(map((connection) => fromQueue(connection.queue))))));
|
|
21803
21809
|
const focusHost = fn("PreviewAutomationBroker.focusHost")(function* (host) {
|
|
21804
|
-
yield* update$
|
|
21810
|
+
yield* update$1(state, (current) => {
|
|
21805
21811
|
const currentHost = current.clients.get(host.clientId);
|
|
21806
21812
|
if (!currentHost || currentHost.environmentId !== host.environmentId || currentHost.connectionId !== host.connectionId) return current;
|
|
21807
21813
|
const clients = new Map(current.clients);
|
|
@@ -21908,7 +21914,7 @@ const make$52 = gen(function* PreviewAutomationBrokerMake() {
|
|
|
21908
21914
|
const { connection, requestId, requestContext, requestSequence } = route;
|
|
21909
21915
|
const { timeoutMs } = requestContext;
|
|
21910
21916
|
input.onTargetTab?.(requestContext.tabId);
|
|
21911
|
-
const removePending = update$
|
|
21917
|
+
const removePending = update$1(state, (next) => {
|
|
21912
21918
|
if (!next.pending.has(requestId)) return next;
|
|
21913
21919
|
const pending = new Map(next.pending);
|
|
21914
21920
|
pending.delete(requestId);
|
|
@@ -21954,7 +21960,7 @@ const make$52 = gen(function* PreviewAutomationBrokerMake() {
|
|
|
21954
21960
|
const resultTabId = responseTabId === void 0 ? input.tabId : responseTabId;
|
|
21955
21961
|
if (resultTabId === void 0) return result;
|
|
21956
21962
|
const assignmentKey = hostAssignmentKey(input.scope);
|
|
21957
|
-
yield* update$
|
|
21963
|
+
yield* update$1(state, (current) => {
|
|
21958
21964
|
const assignment = current.assignments.get(assignmentKey);
|
|
21959
21965
|
if (!assignment || assignment.connectionId !== connection.connectionId || assignment.queue !== connection.queue || (assignment.tabSequence ?? -1) > requestSequence) return current;
|
|
21960
21966
|
const assignments = new Map(current.assignments);
|
|
@@ -22238,7 +22244,7 @@ const make$51 = gen(function* () {
|
|
|
22238
22244
|
const attachedTabs = /* @__PURE__ */ new Set();
|
|
22239
22245
|
/** CDP frames from the desktop, per tab, for the endpoint connected to it. */
|
|
22240
22246
|
const inbound = /* @__PURE__ */ new Map();
|
|
22241
|
-
const writeLock = yield* make$
|
|
22247
|
+
const writeLock = yield* make$99(1);
|
|
22242
22248
|
if (inputFd === void 0 || controlFd === void 0) return DesktopBrowserChannel.of({
|
|
22243
22249
|
available: false,
|
|
22244
22250
|
awaitAttached: () => succeed(false),
|
|
@@ -23121,7 +23127,7 @@ const makePreviewBrowser = fn("PreviewBrowser.make")(function* (options) {
|
|
|
23121
23127
|
const wait = options.wait ?? "45 seconds";
|
|
23122
23128
|
const installRoot = path.join(options.baseDir, "tools", "chrome-headless-shell", release?.platform ?? `${platform}-${arch}`);
|
|
23123
23129
|
const executableName = platform === "win32" ? "chrome-headless-shell.exe" : "chrome-headless-shell";
|
|
23124
|
-
const gate = yield* make$
|
|
23130
|
+
const gate = yield* make$99(1);
|
|
23125
23131
|
let state = { _tag: "idle" };
|
|
23126
23132
|
const progress = {
|
|
23127
23133
|
downloadedBytes: 0,
|
|
@@ -23132,7 +23138,7 @@ const makePreviewBrowser = fn("PreviewBrowser.make")(function* (options) {
|
|
|
23132
23138
|
return fs.stat(executable).pipe(map((info) => info.type === "File" && (platform === "win32" || (info.mode & 73) !== 0) ? some(executable) : none()), orElseSucceed(() => none()));
|
|
23133
23139
|
};
|
|
23134
23140
|
const download = fn("PreviewBrowser.download")(function* (release, archivePath) {
|
|
23135
|
-
const response = yield* http.execute(get$
|
|
23141
|
+
const response = yield* http.execute(get$4(release.url)).pipe(flatMap(filterStatusOk$1));
|
|
23136
23142
|
const contentLength = response.headers["content-length"];
|
|
23137
23143
|
const contentEncoding = response.headers["content-encoding"]?.trim().toLowerCase();
|
|
23138
23144
|
if ((contentEncoding === void 0 || contentEncoding === "identity") && contentLength !== void 0 && Number(contentLength) !== release.bytes) return yield* new PreviewBrowserInstallError({ detail: "The download size did not match the pinned release." });
|
|
@@ -23674,7 +23680,7 @@ const make$50 = gen(function* () {
|
|
|
23674
23680
|
const desktopChannel = yield* DesktopBrowserChannel;
|
|
23675
23681
|
const runFork = runForkWith(yield* context());
|
|
23676
23682
|
const launchServices = yield* context();
|
|
23677
|
-
const setupCommand = yield* resolveRootCliCommand(SETUP_SUBCOMMAND);
|
|
23683
|
+
const setupCommand = yield* resolveRootCliCommand(SETUP_SUBCOMMAND, ["--base-dir", config.baseDir]);
|
|
23678
23684
|
const tabs = /* @__PURE__ */ new Map();
|
|
23679
23685
|
const pendingTabs = /* @__PURE__ */ new Map();
|
|
23680
23686
|
/** Sessions closed while their tab was still opening; the open discards its page. */
|
|
@@ -23907,18 +23913,30 @@ const make$50 = gen(function* () {
|
|
|
23907
23913
|
}
|
|
23908
23914
|
};
|
|
23909
23915
|
const createTab = async (snapshot) => {
|
|
23916
|
+
const opened = [];
|
|
23917
|
+
try {
|
|
23918
|
+
return await setUpTab(snapshot, opened);
|
|
23919
|
+
} catch (cause) {
|
|
23920
|
+
for (const close of opened.reverse()) await close().catch(constVoid);
|
|
23921
|
+
throw cause;
|
|
23922
|
+
}
|
|
23923
|
+
};
|
|
23924
|
+
const setUpTab = async (snapshot, opened) => {
|
|
23910
23925
|
const adopted = adoptedPages.get(tabKey(snapshot.threadId, snapshot.tabId));
|
|
23911
23926
|
adoptedPages.delete(tabKey(snapshot.threadId, snapshot.tabId));
|
|
23912
23927
|
const desktop = adopted === void 0 && await desktopRenders(snapshot) ? await connectDesktop(snapshot) : null;
|
|
23928
|
+
if (desktop) opened.push(desktop.close);
|
|
23913
23929
|
if (!desktop && desktopChannel.available) await runPromise(manager.markHeadless({
|
|
23914
23930
|
threadId: ThreadId.make(snapshot.threadId),
|
|
23915
23931
|
tabId: snapshot.tabId
|
|
23916
23932
|
}).pipe(ignore));
|
|
23917
23933
|
const isolatedContext = adopted === void 0 && desktop === null && (snapshot.automationOwner !== void 0 && snapshot.profileId === void 0 || snapshot.profileId === "incognito");
|
|
23918
23934
|
const context = adopted?.page.context() ?? desktop?.page.context() ?? await contexts.contextFor(snapshot.profileId ?? "default", isolatedContext ? tabKey(snapshot.threadId, snapshot.tabId) : void 0);
|
|
23935
|
+
if (isolatedContext) opened.push(() => context.close());
|
|
23919
23936
|
if (adopted?.page.isClosed()) throw new Error("The popup closed before it opened.");
|
|
23920
23937
|
if (!desktop) await prepareContext(context);
|
|
23921
23938
|
const page = adopted?.page ?? desktop?.page ?? await context.newPage();
|
|
23939
|
+
if (!desktop) opened.push(() => page.close());
|
|
23922
23940
|
const cdp = await context.newCDPSession(page);
|
|
23923
23941
|
if (!desktop) await presentAsChrome(cdp, host);
|
|
23924
23942
|
if (!desktop) await recordCopies(cdp);
|
|
@@ -24067,9 +24085,6 @@ const make$50 = gen(function* () {
|
|
|
24067
24085
|
const key = tabKey(tab.threadId, tab.tabId);
|
|
24068
24086
|
if (closedPendingTabs.delete(key)) {
|
|
24069
24087
|
await control.close().catch(constVoid);
|
|
24070
|
-
if (desktop) await desktop.close().catch(constVoid);
|
|
24071
|
-
else await page.close().catch(constVoid);
|
|
24072
|
-
if (isolatedContext) await context.close().catch(constVoid);
|
|
24073
24088
|
throw new ServerBrowserTabNotFoundError({
|
|
24074
24089
|
threadId: tab.threadId,
|
|
24075
24090
|
tabId: tab.tabId
|
|
@@ -24705,7 +24720,15 @@ const make$50 = gen(function* () {
|
|
|
24705
24720
|
if (tab.dialog) throw new BrowserControlInterrupted("A browser dialog is pending. Read preview_status and use preview_dialog first.", "dialogPending");
|
|
24706
24721
|
if (existing) {
|
|
24707
24722
|
if (url) await navigate(tab, url, "load", navigationTimeout);
|
|
24708
|
-
} else await tab.initialNavigation
|
|
24723
|
+
} else await tab.initialNavigation?.catch(async (cause) => {
|
|
24724
|
+
if (cause instanceof Error && cause.message.includes("Download is starting")) throw cause;
|
|
24725
|
+
await runPromise(manager.close({
|
|
24726
|
+
threadId: tab.threadId,
|
|
24727
|
+
tabId: tab.tabId
|
|
24728
|
+
}));
|
|
24729
|
+
dropTab(tab, false);
|
|
24730
|
+
throw cause;
|
|
24731
|
+
});
|
|
24709
24732
|
const reveal = open.open ?? open.show;
|
|
24710
24733
|
if (reveal !== false) await runPromise(manager.requestReveal({
|
|
24711
24734
|
threadId: tab.threadId,
|
|
@@ -25035,7 +25058,7 @@ const make$50 = gen(function* () {
|
|
|
25035
25058
|
};
|
|
25036
25059
|
const attachViewer = (input) => gen(function* () {
|
|
25037
25060
|
const tab = yield* findTab(input.threadId, input.tabId);
|
|
25038
|
-
const output = yield* make$
|
|
25061
|
+
const output = yield* make$101({
|
|
25039
25062
|
capacity: VIEWER_OUTPUT_LIMIT,
|
|
25040
25063
|
strategy: "dropping"
|
|
25041
25064
|
});
|
|
@@ -25894,7 +25917,7 @@ function sshTargetLogFields(target) {
|
|
|
25894
25917
|
};
|
|
25895
25918
|
}
|
|
25896
25919
|
function stdinStream(input) {
|
|
25897
|
-
return input === void 0 ? empty$7 : make$
|
|
25920
|
+
return input === void 0 ? empty$7 : make$100(encoder.encode(input));
|
|
25898
25921
|
}
|
|
25899
25922
|
const runSshCommandInScope = fn("ssh/command.runSshCommand.inScope")(function* (target, input, commandScope) {
|
|
25900
25923
|
const hostSpec = yield* buildSshHostSpecEffect(target);
|
|
@@ -26680,7 +26703,7 @@ const waitForHttpReady = fn("shared.httpReadiness.waitForHttpReady")(function* (
|
|
|
26680
26703
|
}).pipe(mapError((cause) => isMadeError(cause) ? cause : fail(cause)), tapError((cause) => set$1(lastProbeFailure, {
|
|
26681
26704
|
attempt,
|
|
26682
26705
|
cause: describeReadinessCause(cause)
|
|
26683
|
-
})))), tap$2((response) => response.text.pipe(ignore)), retry$1(retryPolicy)).execute(get$
|
|
26706
|
+
})))), tap$2((response) => response.text.pipe(ignore)), retry$1(retryPolicy)).execute(get$4(requestUrl)).pipe(mapError((cause) => isMadeError(cause) ? cause : fail(cause)), timeoutOption(millis(timeoutMs)));
|
|
26684
26707
|
return yield* match$1(result, {
|
|
26685
26708
|
onSome: () => logDebug("httpReadiness.succeeded", {
|
|
26686
26709
|
baseUrl: input.baseUrl,
|
|
@@ -26759,7 +26782,7 @@ const makeDeviceHubOperations = (options) => {
|
|
|
26759
26782
|
})));
|
|
26760
26783
|
const attachIosStream = (udid, operation) => postJson(`${vendorPrefix("ios")}/grid/api/start`, { udid }, operation).pipe(flatMap((request) => hubJson(request, HubActionResult, "attach stream", BOOT_TIMEOUT)));
|
|
26761
26784
|
const list = gen(function* () {
|
|
26762
|
-
const hubList = yield* hubJson(get$
|
|
26785
|
+
const hubList = yield* hubJson(get$4(`${origin}/api/devices`), HubDeviceList, "list");
|
|
26763
26786
|
const devices = [...hubList.simulators, ...hubList.emulators];
|
|
26764
26787
|
const androidAvailable = yield* options.androidAvailable;
|
|
26765
26788
|
const details = (hubList.errors?.filter((error) => !(!androidAvailable && error.message.startsWith("[android-utils] ")) && !(error.message.startsWith("[apple-utils] Failed to read CoreSimulator plist at ") && /\/CoreSimulator\/Devices\/[^/]+\/device\.plist:$/.test(error.message) && /(?:^Error:\s*ENOENT:|\bcode:\s*['"]ENOENT['"])/.test(error.error ?? ""))))?.map((error) => {
|
|
@@ -27173,6 +27196,14 @@ async function install(name, version, entry) {
|
|
|
27173
27196
|
})().catch(error => { console.error(error.message); process.exitCode = 1; });
|
|
27174
27197
|
`;
|
|
27175
27198
|
// src/device/SshDeviceHost.ts
|
|
27199
|
+
const UNHEALTHY_PROBE_LIMIT = 3;
|
|
27200
|
+
/** The host bootstrap failed on a host identified as Windows. */
|
|
27201
|
+
var SshWindowsHostError = class extends TaggedError$1()("SshWindowsHostError", { cause: Defect() }) {
|
|
27202
|
+
get message() {
|
|
27203
|
+
return "Connected over SSH, but this host runs Windows, and SSH device hosts currently need macOS or Linux. To use this machine's devices, run P4 Code on it and connect to that environment.";
|
|
27204
|
+
}
|
|
27205
|
+
};
|
|
27206
|
+
const isSshWindowsHostError = is(SshWindowsHostError);
|
|
27176
27207
|
const Probe = Struct({
|
|
27177
27208
|
nodePath: String$1,
|
|
27178
27209
|
tools: optional$4(DeviceToolVersions),
|
|
@@ -27213,6 +27244,30 @@ const bootstrap = (config, owner, mode) => runSshCommand(targetFor(config), {
|
|
|
27213
27244
|
step: mode,
|
|
27214
27245
|
cause
|
|
27215
27246
|
})));
|
|
27247
|
+
const explainWindowsHost = fn("SshDeviceHost.explainWindowsHost")(function* (config, error) {
|
|
27248
|
+
const cause = error.cause;
|
|
27249
|
+
if (!(cause instanceof SshCommandError) || cause.exitCode === null || cause.exitCode < 1 || cause.exitCode > 254 && cause.exitCode !== 9009) return yield* error;
|
|
27250
|
+
let windows = yield* runSshCommand(targetFor(config), {
|
|
27251
|
+
preHostArgs: identityArgs(config),
|
|
27252
|
+
remoteCommandArgs: ["echo %OS% $env:OS"],
|
|
27253
|
+
timeoutMs: 15e3
|
|
27254
|
+
}).pipe(map(({ stdout }) => /(?:^|\s)Windows_NT(?:\s|$)/u.test(stdout)), orElseSucceed(() => false));
|
|
27255
|
+
if (!windows) windows = yield* runSshCommand(targetFor(config), {
|
|
27256
|
+
preHostArgs: identityArgs(config),
|
|
27257
|
+
remoteCommandArgs: [
|
|
27258
|
+
"node",
|
|
27259
|
+
"-p",
|
|
27260
|
+
"process.platform"
|
|
27261
|
+
],
|
|
27262
|
+
timeoutMs: 15e3
|
|
27263
|
+
}).pipe(map(({ stdout }) => stdout.trim() === "win32"), orElseSucceed(() => false));
|
|
27264
|
+
if (!windows) return yield* error;
|
|
27265
|
+
return yield* new DeviceHostError({
|
|
27266
|
+
hostId: config.id,
|
|
27267
|
+
step: error.step,
|
|
27268
|
+
cause: new SshWindowsHostError({ cause })
|
|
27269
|
+
});
|
|
27270
|
+
});
|
|
27216
27271
|
const ownerFor = fn("SshDeviceHost.ownerFor")(function* (hostId) {
|
|
27217
27272
|
const fs = yield* FileSystem;
|
|
27218
27273
|
const server = yield* ServerConfig;
|
|
@@ -27220,7 +27275,7 @@ const ownerFor = fn("SshDeviceHost.ownerFor")(function* (hostId) {
|
|
|
27220
27275
|
return (yield* (yield* Crypto).digest("SHA-256", new TextEncoder().encode(`${environmentId}\0${server.stateDir}\0${hostId}`)).pipe(map(encode), orDie)).slice(0, 24);
|
|
27221
27276
|
});
|
|
27222
27277
|
const probe = fn("SshDeviceHost.probe")(function* (config, owner) {
|
|
27223
|
-
const result = yield* bootstrap(config, owner ?? (yield* ownerFor(config.id)), "probe");
|
|
27278
|
+
const result = yield* bootstrap(config, owner ?? (yield* ownerFor(config.id)), "probe").pipe(catchTags({ DeviceHostError: (error) => explainWindowsHost(config, error) }));
|
|
27224
27279
|
const value = yield* decodeProbe(result.stdout.trim()).pipe(mapError((cause) => new DeviceHostError({
|
|
27225
27280
|
hostId: config.id,
|
|
27226
27281
|
step: "reading probe result",
|
|
@@ -27248,7 +27303,7 @@ const make$49 = fn("SshDeviceHost.make")(function* (config, onReady = () => void
|
|
|
27248
27303
|
const ssh = yield* resolveSshCommand;
|
|
27249
27304
|
const owner = yield* ownerFor(config.id);
|
|
27250
27305
|
const provide = (effect) => effect.pipe(provideService(FileSystem, fs), provideService(Path, path), provideService(ServerConfig, server), provideService(ChildProcessSpawner, spawner), provideService(Crypto, crypto));
|
|
27251
|
-
const lock = yield* make$
|
|
27306
|
+
const lock = yield* make$99(1);
|
|
27252
27307
|
let stopped = false;
|
|
27253
27308
|
let activated = false;
|
|
27254
27309
|
let wantsAgent = false;
|
|
@@ -27387,11 +27442,13 @@ const make$49 = fn("SshDeviceHost.make")(function* (config, onReady = () => void
|
|
|
27387
27442
|
ready = next;
|
|
27388
27443
|
yield* onStatus("ready");
|
|
27389
27444
|
const unhealthy = gen(function* () {
|
|
27445
|
+
let misses = 0;
|
|
27390
27446
|
while (true) {
|
|
27391
27447
|
yield* sleep("10 seconds");
|
|
27392
27448
|
const alive = yield* http.get(`${next.hub.origin}/readyz`).pipe(timeout("5 seconds"), map((r) => r.status === 200), orElseSucceed(() => false));
|
|
27393
27449
|
const daemonAlive = next.agentDevice ? yield* http.get(`${next.agentDevice.baseUrl}/health`).pipe(timeout("5 seconds"), map((r) => r.status === 200), orElseSucceed(() => false)) : true;
|
|
27394
|
-
|
|
27450
|
+
misses = alive && daemonAlive ? 0 : misses + 1;
|
|
27451
|
+
if (misses >= UNHEALTHY_PROBE_LIMIT) return;
|
|
27395
27452
|
}
|
|
27396
27453
|
});
|
|
27397
27454
|
yield* gen(function* () {
|
|
@@ -28510,7 +28567,7 @@ const getRequest = (url, request, accept) => {
|
|
|
28510
28567
|
};
|
|
28511
28568
|
if (request.variables !== void 0) params.variables = JSON.stringify(request.variables);
|
|
28512
28569
|
if (request.extensions !== void 0) params.extensions = JSON.stringify(request.extensions);
|
|
28513
|
-
return get$
|
|
28570
|
+
return get$4(baseUrl + hash).pipe(setHeaders$1(request.headers), setHeader$1("accept", accept), appendUrlParams(urlParams), setUrlParams(params));
|
|
28514
28571
|
};
|
|
28515
28572
|
const fromHttpClientError = (clock) => (effect) => catch_(effect, (error) => fail$1(isHttpClientError(error) ? TransportError.fromHttpClientError(error, { now: clock.currentTimeMillisUnsafe() }) : error));
|
|
28516
28573
|
const contentTypeOf = (response) => (response.headers["content-type"] ?? "").toLowerCase();
|
|
@@ -28564,7 +28621,7 @@ const sseEvents = (response) => suspend$2(() => {
|
|
|
28564
28621
|
description: `Invalid graphql-sse next event: ${errorMessage$3(cause)}`,
|
|
28565
28622
|
cause
|
|
28566
28623
|
})
|
|
28567
|
-
})), concat$2(suspend$2(() => complete ? empty$7 : fail$
|
|
28624
|
+
})), concat$2(suspend$2(() => complete ? empty$7 : fail$5(new TransportError({
|
|
28568
28625
|
description: "The graphql-sse stream ended without a complete event",
|
|
28569
28626
|
retryAfter
|
|
28570
28627
|
})))));
|
|
@@ -29987,9 +30044,9 @@ const make$46 = fn("EasDeviceHost.make")(function* (config) {
|
|
|
29987
30044
|
const ledgerPath = path.join(server.stateDir, "device", "eas", `${hostId}.json`);
|
|
29988
30045
|
const sessions = /* @__PURE__ */ new Map();
|
|
29989
30046
|
const checkedAt = /* @__PURE__ */ new Map();
|
|
29990
|
-
const startLock = yield* make$
|
|
29991
|
-
const ledgerLock = yield* make$
|
|
29992
|
-
const reapLock = yield* make$
|
|
30047
|
+
const startLock = yield* make$99(1);
|
|
30048
|
+
const ledgerLock = yield* make$99(1);
|
|
30049
|
+
const reapLock = yield* make$99(1);
|
|
29993
30050
|
const starts = yield* make$80();
|
|
29994
30051
|
const background = yield* make$80();
|
|
29995
30052
|
const starting = /* @__PURE__ */ new Set();
|
|
@@ -30097,7 +30154,7 @@ const make$46 = fn("EasDeviceHost.make")(function* (config) {
|
|
|
30097
30154
|
if (age > RECORD_LIFETIME_MS && listed.has(entry.appId) || age > RECORD_MAX_AGE_MS) yield* forgetEntry(entry.name);
|
|
30098
30155
|
}
|
|
30099
30156
|
}, reapLock.withPermit, catch_((cause) => logWarning("Could not stop recorded EAS Simulator sessions", { cause })));
|
|
30100
|
-
const previewDevice = (origin, token, platform) => http.execute(get$
|
|
30157
|
+
const previewDevice = (origin, token, platform) => http.execute(get$4(`${origin}${PLATFORMS[platform].previewPrefix}/api`).pipe(bearerToken(value$1(token)))).pipe(flatMap(filterStatusOk$1), flatMap((response) => response.json), flatMap(PLATFORMS[platform].remoteDeviceId), scoped, timeout(PREVIEW_TIMEOUT), retry(TRANSIENT_RETRY));
|
|
30101
30158
|
const awaitRunning = fn("EasDeviceHost.awaitRunning")(function* (expo, sessionId) {
|
|
30102
30159
|
for (;;) {
|
|
30103
30160
|
const session = yield* expo.session(sessionId).pipe(retry(TRANSIENT_RETRY), mapError((error) => unavailable(error.message, error)));
|
|
@@ -30527,7 +30584,7 @@ const make$45 = fn("LocalDeviceHost.make")(function* () {
|
|
|
30527
30584
|
const hostPlatform = yield* Platform;
|
|
30528
30585
|
const sdk = yield* androidSdk;
|
|
30529
30586
|
const hostEnvironment = deviceHostEnvironment(environment, sdk.root, hostPlatform, path);
|
|
30530
|
-
const startLock = yield* make$
|
|
30587
|
+
const startLock = yield* make$99(1);
|
|
30531
30588
|
const runningRef = yield* make$81(null);
|
|
30532
30589
|
const restartDelayRef = yield* make$81(0);
|
|
30533
30590
|
const hostId = LOCAL_DEVICE_HOST_ID;
|
|
@@ -30938,9 +30995,11 @@ const layer$66 = effect(DeviceHost, make$45());
|
|
|
30938
30995
|
// src/device/DeviceService.ts
|
|
30939
30996
|
const DEVICE_HUB_ROUTE_PREFIX = "/api/device-hub";
|
|
30940
30997
|
const sshProbeFailureMessage = (error) => {
|
|
30941
|
-
const
|
|
30942
|
-
|
|
30998
|
+
const windows = isSshWindowsHostError(error.cause) ? error.cause : null;
|
|
30999
|
+
const cause = windows ? windows.cause : error.cause;
|
|
31000
|
+
if (!(cause instanceof SshCommandError) || cause.exitCode === null || cause.exitCode < 1 || cause.exitCode > 254 && cause.exitCode !== 9009) return "Could not connect to this host over SSH.";
|
|
30943
31001
|
if (cause.exitCode === 1 && cause.stderr.split(/\r?\n/u).some((line) => line.trim() === "Node is missing from the non-interactive SSH PATH")) return "Connected over SSH, but Node is not on this host's PATH for non-interactive SSH commands.";
|
|
31002
|
+
if (windows) return windows.message;
|
|
30944
31003
|
return `Connected over SSH, but the device host check failed (exit code ${cause.exitCode}).`;
|
|
30945
31004
|
};
|
|
30946
31005
|
const DeviceHostName = Struct({
|
|
@@ -30976,7 +31035,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
30976
31035
|
})), installTool, launchers) {
|
|
30977
31036
|
const settings = yield* ServerSettingsService;
|
|
30978
31037
|
const crypto = yield* Crypto;
|
|
30979
|
-
const lifecycleLock = yield* make$
|
|
31038
|
+
const lifecycleLock = yield* make$99(1);
|
|
30980
31039
|
const readDeviceSettings = settings.getSettings.pipe(map((value) => ({
|
|
30981
31040
|
enabled: value.enableDeviceSupport,
|
|
30982
31041
|
agentAccessEnabled: value.enableAgentDeviceAccess,
|
|
@@ -30990,7 +31049,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
30990
31049
|
const statePubSub = yield* unbounded$1();
|
|
30991
31050
|
const initialHosts = yield* forEach(hosts.values(), (host) => host.summary);
|
|
30992
31051
|
let publishedHosts = new Map(hosts);
|
|
30993
|
-
const stateRef = yield* make$
|
|
31052
|
+
const stateRef = yield* make$85({ state: {
|
|
30994
31053
|
supportsHostRetry: true,
|
|
30995
31054
|
supportsToolUpdate: installTool !== void 0,
|
|
30996
31055
|
supportsToolInspection: true,
|
|
@@ -31005,12 +31064,12 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31005
31064
|
hubBasePath: DEVICE_HUB_ROUTE_PREFIX,
|
|
31006
31065
|
revision: 0
|
|
31007
31066
|
} });
|
|
31008
|
-
const launcherLock = yield* make$
|
|
31067
|
+
const launcherLock = yield* make$99(1);
|
|
31009
31068
|
/** Launchers bound since startup, by agent-device session. */
|
|
31010
31069
|
const boundLaunchers = /* @__PURE__ */ new Map();
|
|
31011
31070
|
const pruneLaunchers = launcherLock.withPermit(gen(function* () {
|
|
31012
31071
|
if (!launchers) return;
|
|
31013
|
-
const { state } = yield* get$
|
|
31072
|
+
const { state } = yield* get$3(stateRef);
|
|
31014
31073
|
const live = new Set(yield* forEach(state.sessions, (session) => agentDeviceSession(session.threadId, session.hostId, session.deviceId)).pipe(provideService(Crypto, crypto)));
|
|
31015
31074
|
const retired = [...boundLaunchers].filter(([session]) => !live.has(session));
|
|
31016
31075
|
for (const [session] of retired) boundLaunchers.delete(session);
|
|
@@ -31041,7 +31100,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31041
31100
|
});
|
|
31042
31101
|
return host;
|
|
31043
31102
|
});
|
|
31044
|
-
const setHostStatus = (hostId, status) => suspend(() => !hosts.has(hostId) ? get$
|
|
31103
|
+
const setHostStatus = (hostId, status) => suspend(() => !hosts.has(hostId) ? get$3(stateRef).pipe(map(({ state }) => state)) : publish$2((state) => ({
|
|
31045
31104
|
...state,
|
|
31046
31105
|
...hostId === "local" ? {
|
|
31047
31106
|
hostStatus: status.status,
|
|
@@ -31079,7 +31138,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31079
31138
|
hostLabel: host.label,
|
|
31080
31139
|
reason: "Host configuration changed. Retry the operation."
|
|
31081
31140
|
});
|
|
31082
|
-
const { state } = yield* get$
|
|
31141
|
+
const { state } = yield* get$3(stateRef);
|
|
31083
31142
|
if (state.hostStatuses[host.id]?.status !== "ready") yield* setHostStatus(host.id, { status: "ready" });
|
|
31084
31143
|
return {
|
|
31085
31144
|
hostId: host.id,
|
|
@@ -31140,11 +31199,11 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31140
31199
|
const refresh = fn("DeviceService.refresh")(function* (ready) {
|
|
31141
31200
|
const host = hosts.get(ready.hostId);
|
|
31142
31201
|
const sessionKey = (session) => `${session.hostId}\u0000${session.deviceId}\u0000${session.threadId}\u0000${session.openedAt}`;
|
|
31143
|
-
const before = new Set((yield* get$
|
|
31202
|
+
const before = new Set((yield* get$3(stateRef)).state.sessions.map(sessionKey));
|
|
31144
31203
|
const { devices, detail, androidDiscoveryIncomplete } = yield* fetchDevices(ready);
|
|
31145
31204
|
const hostSummaries = yield* forEach(hosts.values(), (host) => host.summary);
|
|
31146
31205
|
return yield* lifecycleLock.withPermit(gen(function* () {
|
|
31147
|
-
if (!(yield* readDeviceSettings).enabled || !host || hosts.get(ready.hostId) !== host) return (yield* get$
|
|
31206
|
+
if (!(yield* readDeviceSettings).enabled || !host || hosts.get(ready.hostId) !== host) return (yield* get$3(stateRef)).state;
|
|
31148
31207
|
return yield* publish$2((state) => ({
|
|
31149
31208
|
...state,
|
|
31150
31209
|
hosts: hostSummaries,
|
|
@@ -31163,7 +31222,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31163
31222
|
}));
|
|
31164
31223
|
});
|
|
31165
31224
|
const list = gen(function* () {
|
|
31166
|
-
if (!(yield* readDeviceSettings).enabled) return (yield* get$
|
|
31225
|
+
if (!(yield* readDeviceSettings).enabled) return (yield* get$3(stateRef)).state;
|
|
31167
31226
|
yield* forEach(hosts.values(), (host) => gen(function* () {
|
|
31168
31227
|
const ready = yield* readinessIfSupported(host.id);
|
|
31169
31228
|
if (ready) yield* refresh(ready);
|
|
@@ -31171,7 +31230,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31171
31230
|
status: "failed",
|
|
31172
31231
|
detail: error._tag === "DeviceHostUnavailableError" ? error.reason : error.message
|
|
31173
31232
|
}))), { concurrency: 4 });
|
|
31174
|
-
return (yield* get$
|
|
31233
|
+
return (yield* get$3(stateRef)).state;
|
|
31175
31234
|
}).pipe(withSpan("DeviceService.list"));
|
|
31176
31235
|
const inspect = gen(function* () {
|
|
31177
31236
|
yield* forEach(hosts.values(), (host) => gen(function* () {
|
|
@@ -31192,11 +31251,11 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31192
31251
|
hosts: state.hosts.map((value) => value.id === host.id ? result$2.success : value)
|
|
31193
31252
|
}));
|
|
31194
31253
|
}), { concurrency: 4 });
|
|
31195
|
-
return (yield* get$
|
|
31254
|
+
return (yield* get$3(stateRef)).state;
|
|
31196
31255
|
});
|
|
31197
31256
|
const retryHost = fn("DeviceService.retryHost")(function* (hostId) {
|
|
31198
31257
|
yield* resolveHost(hostId);
|
|
31199
|
-
if (!(yield* readDeviceSettings).enabled) return (yield* get$
|
|
31258
|
+
if (!(yield* readDeviceSettings).enabled) return (yield* get$3(stateRef)).state;
|
|
31200
31259
|
yield* gen(function* () {
|
|
31201
31260
|
const ready = (yield* agentReadinessIfSupported(hostId)) ?? (yield* readinessIfSupported(hostId));
|
|
31202
31261
|
if (ready) yield* refresh(ready);
|
|
@@ -31204,7 +31263,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31204
31263
|
status: "failed",
|
|
31205
31264
|
detail: error._tag === "DeviceHostUnavailableError" ? error.reason : error.message
|
|
31206
31265
|
})));
|
|
31207
|
-
return (yield* get$
|
|
31266
|
+
return (yield* get$3(stateRef)).state;
|
|
31208
31267
|
});
|
|
31209
31268
|
const configure = fn("DeviceService.configure")(function* (input) {
|
|
31210
31269
|
const currentSettings = yield* readDeviceSettings;
|
|
@@ -31336,7 +31395,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31336
31395
|
yield* refresh(ready).pipe(catch_((cause) => logWarning("Device discovery unavailable after shutdown", { cause })));
|
|
31337
31396
|
});
|
|
31338
31397
|
const close = fn("DeviceService.close")(function* (input) {
|
|
31339
|
-
const { state } = yield* get$
|
|
31398
|
+
const { state } = yield* get$3(stateRef);
|
|
31340
31399
|
const closing = state.sessions.filter((session) => session.threadId === input.threadId && (input.hostId === void 0 || session.hostId === input.hostId) && (input.deviceId === void 0 || session.deviceId === input.deviceId));
|
|
31341
31400
|
if (closing.length === 0) return;
|
|
31342
31401
|
const ending = (session) => closing.includes(session) || input.shutdown === true && closing.some((closed) => closed.hostId === session.hostId && closed.deviceId === session.deviceId);
|
|
@@ -31364,7 +31423,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31364
31423
|
const resolveDevice = fn("DeviceService.resolveDevice")(function* (hostId, deviceId) {
|
|
31365
31424
|
const host = yield* resolveHost(hostId);
|
|
31366
31425
|
const ready = yield* readiness(host.id);
|
|
31367
|
-
const { state } = yield* get$
|
|
31426
|
+
const { state } = yield* get$3(stateRef);
|
|
31368
31427
|
const device = findDevice(state, host.id, deviceId) ?? findDevice(yield* refresh(ready), host.id, deviceId);
|
|
31369
31428
|
if (!device) return yield* new DeviceNotFoundError({
|
|
31370
31429
|
hostId: host.id,
|
|
@@ -31394,7 +31453,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31394
31453
|
deviceId: device.id
|
|
31395
31454
|
});
|
|
31396
31455
|
});
|
|
31397
|
-
const sessionsForThread = (threadId) => get$
|
|
31456
|
+
const sessionsForThread = (threadId) => get$3(stateRef).pipe(map(({ state }) => state.sessions.filter((session) => session.threadId === threadId)));
|
|
31398
31457
|
const locate = (state, input, matches) => {
|
|
31399
31458
|
const named = (id) => ({
|
|
31400
31459
|
id,
|
|
@@ -31415,11 +31474,11 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31415
31474
|
})) : succeedNone;
|
|
31416
31475
|
};
|
|
31417
31476
|
const locateDevice = fn("DeviceService.locateDevice")(function* (input) {
|
|
31418
|
-
const { state } = yield* get$
|
|
31477
|
+
const { state } = yield* get$3(stateRef);
|
|
31419
31478
|
return yield* locate(state, input, state.devices.filter((device) => device.id === input.deviceId));
|
|
31420
31479
|
});
|
|
31421
31480
|
const locateSession = fn("DeviceService.locateSession")(function* (input) {
|
|
31422
|
-
const { state } = yield* get$
|
|
31481
|
+
const { state } = yield* get$3(stateRef);
|
|
31423
31482
|
return yield* locate(state, input, state.sessions.filter((session) => session.threadId === input.threadId && session.deviceId === input.deviceId));
|
|
31424
31483
|
});
|
|
31425
31484
|
yield* pruneLaunchers;
|
|
@@ -31488,7 +31547,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31488
31547
|
});
|
|
31489
31548
|
const session = yield* agentDeviceSession(target.threadId, target.hostId, target.deviceId).pipe(provideService(Crypto, crypto));
|
|
31490
31549
|
return yield* launcherLock.withPermit(gen(function* () {
|
|
31491
|
-
const { state } = yield* get$
|
|
31550
|
+
const { state } = yield* get$3(stateRef);
|
|
31492
31551
|
if (!state.sessions.some((live) => live.threadId === target.threadId && live.hostId === target.hostId && live.deviceId === target.deviceId)) return none();
|
|
31493
31552
|
const launcher = yield* launchers.bind({
|
|
31494
31553
|
session,
|
|
@@ -31498,7 +31557,7 @@ const makeWithHosts = fn("DeviceService.makeWithHosts")(function* (hosts, testHo
|
|
|
31498
31557
|
return some(launcher);
|
|
31499
31558
|
}));
|
|
31500
31559
|
}),
|
|
31501
|
-
state: get$
|
|
31560
|
+
state: get$3(stateRef).pipe(map(({ state }) => state)),
|
|
31502
31561
|
subscribe: subscribe(statePubSub),
|
|
31503
31562
|
configure,
|
|
31504
31563
|
list,
|
|
@@ -31620,7 +31679,12 @@ const make$44 = gen(function* () {
|
|
|
31620
31679
|
const service = yield* makeWithHosts(hosts, (host) => gen(function* () {
|
|
31621
31680
|
if (yield* isLocalSshDeviceHost(host).pipe(provide$1(localTargetContext))) return yield* localHost.summary;
|
|
31622
31681
|
return yield* probe(host).pipe(provide$1(probeContext));
|
|
31623
|
-
}).pipe(mapError((error) => new
|
|
31682
|
+
}).pipe(mapError((error) => error._tag === "DeviceHostError" && isSshWindowsHostError(error.cause) ? new DeviceHostUnavailableError({
|
|
31683
|
+
hostId: host.id,
|
|
31684
|
+
hostLabel: host.label,
|
|
31685
|
+
reason: sshProbeFailureMessage(error),
|
|
31686
|
+
cause: error
|
|
31687
|
+
}) : new DeviceOperationError({
|
|
31624
31688
|
operation: "probe host",
|
|
31625
31689
|
reason: "request_failed",
|
|
31626
31690
|
cause: error
|
|
@@ -31716,7 +31780,7 @@ const layer$65 = effect(DeviceService, make$44).pipe(provide(layer$66));
|
|
|
31716
31780
|
const stateStream = (service) => unwrap$1(gen(function* () {
|
|
31717
31781
|
const subscription = yield* service.subscribe;
|
|
31718
31782
|
const initial = yield* service.state;
|
|
31719
|
-
return concat$2(make$
|
|
31783
|
+
return concat$2(make$100(initial), fromSubscription(subscription));
|
|
31720
31784
|
})).pipe(scoped$1);
|
|
31721
31785
|
// src/workspace/fileHeaderMimeType.ts
|
|
31722
31786
|
/** Formats whose headers give extensionless files a useful icon. This is a
|
|
@@ -32444,7 +32508,7 @@ const encodeStallLine = encodeUnknownEffect(fromJsonString(Unknown));
|
|
|
32444
32508
|
*/
|
|
32445
32509
|
const layerWith = (makeSampler, stallLog) => effect(EventLoopMonitor, gen(function* () {
|
|
32446
32510
|
const sample = yield* makeSampler;
|
|
32447
|
-
const sampling = yield* make$
|
|
32511
|
+
const sampling = yield* make$99(1);
|
|
32448
32512
|
const warmedUp = yield* make$81(false);
|
|
32449
32513
|
const latestNoticeableStall = yield* make$81(void 0);
|
|
32450
32514
|
const stallSink = yield* try_(() => new RotatingFileSink({
|
|
@@ -33649,7 +33713,7 @@ const make$37 = fn("resourceTelemetry.resourceTelemetry.make")(function* () {
|
|
|
33649
33713
|
const nativeClient = yield* NativeTelemetryClient;
|
|
33650
33714
|
const desktopReceiver = yield* DesktopTelemetryReceiver;
|
|
33651
33715
|
const attribution = yield* ResourceAttribution;
|
|
33652
|
-
const mutex = yield* make$
|
|
33716
|
+
const mutex = yield* make$99(1);
|
|
33653
33717
|
const changes = yield* sliding(8);
|
|
33654
33718
|
const initialReadAt = yield* now;
|
|
33655
33719
|
const nativeHealthSubscription = yield* nativeClient.subscribeHealth;
|
|
@@ -33707,7 +33771,7 @@ const make$37 = fn("resourceTelemetry.resourceTelemetry.make")(function* () {
|
|
|
33707
33771
|
retainCount: 0,
|
|
33708
33772
|
scope: none()
|
|
33709
33773
|
});
|
|
33710
|
-
const liveMutex = yield* make$
|
|
33774
|
+
const liveMutex = yield* make$99(1);
|
|
33711
33775
|
const refreshHealth = mutex.withPermits(1)(gen(function* () {
|
|
33712
33776
|
const current = yield* get$2(state);
|
|
33713
33777
|
const [nativeHealth, desktopHealth] = yield* all([nativeClient.health, desktopReceiver.health]);
|
|
@@ -34097,7 +34161,7 @@ const make$34 = fn("makeHostResources")(function* () {
|
|
|
34097
34161
|
totalMemoryBytes
|
|
34098
34162
|
};
|
|
34099
34163
|
});
|
|
34100
|
-
const cache = yield* make$
|
|
34164
|
+
const cache = yield* make$86({
|
|
34101
34165
|
capacity: 1,
|
|
34102
34166
|
lookup: (_key) => sample(),
|
|
34103
34167
|
timeToLive: "5 seconds"
|
|
@@ -35225,7 +35289,7 @@ const make$33 = gen(function* () {
|
|
|
35225
35289
|
let rates = /* @__PURE__ */ new Map();
|
|
35226
35290
|
let ratesFetchedAtMs = null;
|
|
35227
35291
|
let ratesStatus = "unavailable";
|
|
35228
|
-
const ratesLock = yield* make$
|
|
35292
|
+
const ratesLock = yield* make$99(1);
|
|
35229
35293
|
const pricing = () => ({
|
|
35230
35294
|
status: ratesStatus,
|
|
35231
35295
|
source: LITELLM_RATES_URL,
|
|
@@ -35358,7 +35422,7 @@ const make$33 = gen(function* () {
|
|
|
35358
35422
|
if (isSome(sources)) for (const [key, source] of Object.entries(sources.value.sources)) sourceCache.set(key, source);
|
|
35359
35423
|
}));
|
|
35360
35424
|
const writeScanCache = makeScanCacheWriter();
|
|
35361
|
-
const persistLock = yield* make$
|
|
35425
|
+
const persistLock = yield* make$99(1);
|
|
35362
35426
|
const persistCaches = gen(function* () {
|
|
35363
35427
|
if (cacheDirty) {
|
|
35364
35428
|
cacheDirty = false;
|
|
@@ -35909,7 +35973,7 @@ const make$31 = gen(function* () {
|
|
|
35909
35973
|
const serviceScope = yield* scope;
|
|
35910
35974
|
const runs = yield* make$81(/* @__PURE__ */ new Map());
|
|
35911
35975
|
let runCounter = 0;
|
|
35912
|
-
const ownership = yield* make$
|
|
35976
|
+
const ownership = yield* make$99(1);
|
|
35913
35977
|
const keyFor = fn("PullRequestReviewGuideService.keyFor")(function* (input) {
|
|
35914
35978
|
const project = getOrUndefined$1(yield* projects.getShell(input.projectId).pipe(orElseSucceed(() => none())));
|
|
35915
35979
|
const key = pullRequestSyncKey(input, project?.repositoryIdentity ?? void 0);
|
|
@@ -36091,6 +36155,8 @@ const make$31 = gen(function* () {
|
|
|
36091
36155
|
operation: "PullRequestReviewGuideService.addWorktree",
|
|
36092
36156
|
cwd: workspaceRoot,
|
|
36093
36157
|
args: [
|
|
36158
|
+
"-c",
|
|
36159
|
+
"core.hooksPath=/dev/null",
|
|
36094
36160
|
"worktree",
|
|
36095
36161
|
"add",
|
|
36096
36162
|
"--detach",
|
|
@@ -36419,6 +36485,39 @@ const make$29 = gen(function* () {
|
|
|
36419
36485
|
return OtlpEndpointCheck.of({ check });
|
|
36420
36486
|
});
|
|
36421
36487
|
const layer$47 = effect(OtlpEndpointCheck, make$29);
|
|
36488
|
+
const SOCKET_FRAME_PART_BYTES = 49152;
|
|
36489
|
+
const PART_PREFIX = "";
|
|
36490
|
+
/** Splits on the UTF-8 size the frame has on the wire, never inside a surrogate pair. */
|
|
36491
|
+
function splitSocketFrame(frame, partBytes = SOCKET_FRAME_PART_BYTES) {
|
|
36492
|
+
if (frame.length * 3 <= partBytes) return [frame];
|
|
36493
|
+
const parts = [];
|
|
36494
|
+
let start = 0;
|
|
36495
|
+
let bytes = 1;
|
|
36496
|
+
for (let index = 0; index < frame.length;) {
|
|
36497
|
+
const code = frame.charCodeAt(index);
|
|
36498
|
+
const pair = code >= 55296 && code <= 56319 && index + 1 < frame.length;
|
|
36499
|
+
const size = pair ? 4 : code < 128 ? 1 : code < 2048 ? 2 : 3;
|
|
36500
|
+
if (bytes + size > partBytes) {
|
|
36501
|
+
parts.push(PART_PREFIX + frame.slice(start, index));
|
|
36502
|
+
start = index;
|
|
36503
|
+
bytes = 1;
|
|
36504
|
+
}
|
|
36505
|
+
bytes += size;
|
|
36506
|
+
index += pair ? 2 : 1;
|
|
36507
|
+
}
|
|
36508
|
+
return append(parts, frame.slice(start));
|
|
36509
|
+
}
|
|
36510
|
+
/** Server side: sends string frames longer than one part as consecutive parts. */
|
|
36511
|
+
function splitLargeSocketFrames(socket) {
|
|
36512
|
+
const split = (chunk) => typeof chunk === "string" ? splitSocketFrame(chunk) : [chunk];
|
|
36513
|
+
return make$87({
|
|
36514
|
+
reader: socket.reader,
|
|
36515
|
+
writer: map(socket.writer, (writer) => ({
|
|
36516
|
+
write: (chunk) => typeof chunk === "string" ? writer.writeAll(splitSocketFrame(chunk)) : writer.write(chunk),
|
|
36517
|
+
writeAll: (chunks) => writer.writeAll(flatMap$2(chunks, split))
|
|
36518
|
+
}))
|
|
36519
|
+
});
|
|
36520
|
+
}
|
|
36422
36521
|
// src/usage/cliproxyApi.ts
|
|
36423
36522
|
const AuthFile = Struct({
|
|
36424
36523
|
id: String$1,
|
|
@@ -36528,7 +36627,7 @@ const makeCliproxyApi = gen(function* () {
|
|
|
36528
36627
|
try: () => new URL(`/v0/management/${path}`, config.url).toString(),
|
|
36529
36628
|
catch: () => new UsageLimitSourceError({ detail: "The hub URL is not valid." })
|
|
36530
36629
|
});
|
|
36531
|
-
const request = (body === void 0 ? get$
|
|
36630
|
+
const request = (body === void 0 ? get$4(url) : post(url)).pipe(setHeader$1("Authorization", `Bearer ${config.managementKey}`));
|
|
36532
36631
|
return yield* client.execute(body === void 0 ? request : request.pipe(bodyJsonUnsafe(body))).pipe(flatMap(filterStatusOk$1), flatMap((response) => response.json), timeout("15 seconds"), mapError(() => new UsageLimitSourceError({ detail: "The hub management request failed." })));
|
|
36533
36632
|
});
|
|
36534
36633
|
const authFiles = fn("CliproxyApi.authFiles")(function* (config) {
|
|
@@ -36731,7 +36830,7 @@ const make$28 = gen(function* () {
|
|
|
36731
36830
|
const publish$1 = (next) => gen(function* () {
|
|
36732
36831
|
if (yield* modify(stateRef, (previous) => equals(previous, next) ? [false, previous] : [true, next])) yield* publish(changes, next);
|
|
36733
36832
|
});
|
|
36734
|
-
const refreshLock = yield* make$
|
|
36833
|
+
const refreshLock = yield* make$99(1);
|
|
36735
36834
|
const refresh = gen(function* () {
|
|
36736
36835
|
const settings = yield* settingsService.getSettings.pipe(orElseSucceed(() => null));
|
|
36737
36836
|
const entries = Object.entries(settings?.usageLimitSources ?? {}).filter(([, config]) => config.enabled);
|
|
@@ -36759,7 +36858,7 @@ const make$28 = gen(function* () {
|
|
|
36759
36858
|
return unwrap$1(gen(function* () {
|
|
36760
36859
|
const subscription = yield* subscribe(changes);
|
|
36761
36860
|
const snapshot = yield* get$2(stateRef);
|
|
36762
|
-
return concat$2(make$
|
|
36861
|
+
return concat$2(make$100(snapshot), fromSubscription(subscription)).pipe(changes$1);
|
|
36763
36862
|
}));
|
|
36764
36863
|
}
|
|
36765
36864
|
};
|
|
@@ -36832,7 +36931,7 @@ const make$27 = gen(function* () {
|
|
|
36832
36931
|
const settingsService = yield* ServerSettingsService;
|
|
36833
36932
|
const projects = yield* serviceOption(ProjectService);
|
|
36834
36933
|
const home = NodeOS.homedir();
|
|
36835
|
-
const importLock = yield* make$
|
|
36934
|
+
const importLock = yield* make$99(1);
|
|
36836
36935
|
const readJson = (file) => fileSystem.readFileString(file).pipe(option, map(flatMap$1(decodeJson)));
|
|
36837
36936
|
const fromJsonServers = (provider, file, servers) => isRecord$1(servers) ? Object.entries(servers).flatMap(([name, entry]) => {
|
|
36838
36937
|
const transport = transportFromJsonEntry(entry);
|
|
@@ -37023,7 +37122,7 @@ const make$26 = gen(function* () {
|
|
|
37023
37122
|
const crypto = yield* Crypto;
|
|
37024
37123
|
const http = yield* HttpClient;
|
|
37025
37124
|
const serviceScope = yield* scope;
|
|
37026
|
-
const starts = yield* make$
|
|
37125
|
+
const starts = yield* make$99(1);
|
|
37027
37126
|
const logins = /* @__PURE__ */ new Map();
|
|
37028
37127
|
const findServer = (serverId) => settingsService.getSettings.pipe(mapError((cause) => new McpProviderSignInError({
|
|
37029
37128
|
reason: "failed",
|
|
@@ -37463,12 +37562,12 @@ const PROVIDER_STATUS_DEBOUNCE_MS = 200;
|
|
|
37463
37562
|
const ServerWsRpcGroup = WsRpcGroup.middleware(RpcInstrumentation);
|
|
37464
37563
|
const CoreWsRpcGroup = ServerWsRpcGroup.omit("subscribeThreadDecisions", "selfImprove.subscribeThreadFindings", "selfImprove.dismissFindings", "selfImprove.subscribeSettings", "selfImprove.updateSettings", "selfImprove.saveFindings", "selfImprove.undoSave", "selfImprove.setMemoryMirror", "hubSync.subscribe", "hubSync.runNow", "hubSync.connect", "hubSync.disconnect", "hubSync.setMode", "hubSync.resolve", "mcpRegistry.providerSignInState", "mcpRegistry.providerSignInStart", "mcpRegistry.providerSignInWait", "mcpRegistry.providerSignInComplete", "mcpRegistry.providerSignInCancel", "mcpRegistry.providerSignOut", "design.asset", "design.baseline", "design.catalog", "design.documents.delete", "design.review", "design.poster", "design.view", "design.revisions", "design.revisions.delete", "design.revisions.read", "design.revisions.rename", "design.revisions.restore", "design.subscribe", "design.thumbnail", "design.transfer");
|
|
37465
37564
|
const designRpcLayer = DesignRpcGroup.middleware(RpcScopeAuthorization).middleware(RpcInstrumentation).toLayer(designRpcHandlers);
|
|
37466
|
-
const DecisionWsRpcGroup = make$
|
|
37565
|
+
const DecisionWsRpcGroup = make$89(WsSubscribeThreadDecisionsRpc).middleware(RpcScopeAuthorization).middleware(RpcInstrumentation);
|
|
37467
37566
|
const decisionRpcLayer = DecisionWsRpcGroup.toLayer(gen(function* () {
|
|
37468
37567
|
const decisionLog = yield* DecisionLog;
|
|
37469
37568
|
return DecisionWsRpcGroup.of({ subscribeThreadDecisions: (input) => decisionLog.stream(input.threadId) });
|
|
37470
37569
|
}));
|
|
37471
|
-
const SelfImproveWsRpcGroup = make$
|
|
37570
|
+
const SelfImproveWsRpcGroup = make$89(WsSelfImproveSubscribeThreadFindingsRpc, WsSelfImproveDismissFindingsRpc, WsSelfImproveSubscribeSettingsRpc, WsSelfImproveUpdateSettingsRpc, WsSelfImproveSaveFindingsRpc, WsSelfImproveUndoSaveRpc, WsSelfImproveSetMemoryMirrorRpc).middleware(RpcScopeAuthorization).middleware(RpcInstrumentation);
|
|
37472
37571
|
const selfImproveRpcLayer = SelfImproveWsRpcGroup.toLayer(gen(function* () {
|
|
37473
37572
|
const selfImprove = yield* SelfImprove;
|
|
37474
37573
|
return SelfImproveWsRpcGroup.of({
|
|
@@ -37481,7 +37580,7 @@ const selfImproveRpcLayer = SelfImproveWsRpcGroup.toLayer(gen(function* () {
|
|
|
37481
37580
|
"selfImprove.setMemoryMirror": (input) => selfImprove.setMemoryMirror(input)
|
|
37482
37581
|
});
|
|
37483
37582
|
}));
|
|
37484
|
-
const HubSyncWsRpcGroup = make$
|
|
37583
|
+
const HubSyncWsRpcGroup = make$89(WsHubSyncSubscribeRpc, WsHubSyncRunNowRpc, WsHubSyncConnectRpc, WsHubSyncDisconnectRpc, WsHubSyncSetModeRpc, WsHubSyncResolveRpc).middleware(RpcScopeAuthorization).middleware(RpcInstrumentation);
|
|
37485
37584
|
const hubSyncRpcLayer = HubSyncWsRpcGroup.toLayer(gen(function* () {
|
|
37486
37585
|
const hubSync = yield* HubSync;
|
|
37487
37586
|
return HubSyncWsRpcGroup.of({
|
|
@@ -37493,7 +37592,7 @@ const hubSyncRpcLayer = HubSyncWsRpcGroup.toLayer(gen(function* () {
|
|
|
37493
37592
|
"hubSync.resolve": (input) => hubSync.resolve(input)
|
|
37494
37593
|
});
|
|
37495
37594
|
}));
|
|
37496
|
-
const McpProviderSignInRpcGroup = make$
|
|
37595
|
+
const McpProviderSignInRpcGroup = make$89(WsMcpRegistryProviderSignInStateRpc, WsMcpRegistryProviderSignInStartRpc, WsMcpRegistryProviderSignInWaitRpc, WsMcpRegistryProviderSignInCompleteRpc, WsMcpRegistryProviderSignInCancelRpc, WsMcpRegistryProviderSignOutRpc).middleware(RpcScopeAuthorization).middleware(RpcInstrumentation);
|
|
37497
37596
|
const providerSignInError = (operation) => (cause) => new McpRegistryRpcError({
|
|
37498
37597
|
operation,
|
|
37499
37598
|
reason: cause.reason === "not-found" ? "not-found" : cause.reason === "unsupported" ? "invalid" : "failed",
|
|
@@ -37520,8 +37619,8 @@ const SPLIT_WS_RPC_PREFIXES = [
|
|
|
37520
37619
|
const isSplitWsRpc = (rpc) => SPLIT_WS_RPC_PREFIXES.some((prefix) => rpc._tag.startsWith(`${prefix}.`));
|
|
37521
37620
|
const isOtherWsRpc = (rpc) => !isSplitWsRpc(rpc);
|
|
37522
37621
|
const serverWsRpcs = Array.from(CoreWsRpcGroup.requests.values());
|
|
37523
|
-
const SplitWsRpcGroup = make$
|
|
37524
|
-
const OtherWsRpcGroup = make$
|
|
37622
|
+
const SplitWsRpcGroup = make$89(...serverWsRpcs.filter(isSplitWsRpc));
|
|
37623
|
+
const OtherWsRpcGroup = make$89(...serverWsRpcs.filter(isOtherWsRpc));
|
|
37525
37624
|
const SHELL_RESUME_MAX_GAP = 1e3;
|
|
37526
37625
|
const ORCHESTRATION_REPLAY_PAYLOAD_BUDGET_BYTES = 8388608;
|
|
37527
37626
|
function toAuthAccessStreamEvent(change, revision, currentSessionId) {
|
|
@@ -37690,7 +37789,7 @@ const subscribeOrchestrationV2Thread = fn("ws.orchestrationV2.subscribeThread")(
|
|
|
37690
37789
|
message: `Failed while replaying orchestration V2 thread ${input.threadId}`,
|
|
37691
37790
|
cause
|
|
37692
37791
|
})));
|
|
37693
|
-
const completionMarker = input.requestCompletionMarker === true ? make$
|
|
37792
|
+
const completionMarker = input.requestCompletionMarker === true ? make$100({ kind: "synchronized" }) : empty$7;
|
|
37694
37793
|
const snapshotThenLive = fn("ws.orchestrationV2.threadSnapshotThenLive")(function* () {
|
|
37695
37794
|
const useBoundedSnapshot = shouldUseBoundedThreadSnapshot(input);
|
|
37696
37795
|
const snapshot = yield* (useBoundedSnapshot ? threadManagement.getThreadSnapshotWindow(input.threadId, {
|
|
@@ -37814,7 +37913,7 @@ const subscribeOrchestrationV2Shell = fn("ws.orchestrationV2.subscribeShell")(fu
|
|
|
37814
37913
|
});
|
|
37815
37914
|
}), { concurrency: 8 });
|
|
37816
37915
|
});
|
|
37817
|
-
const toShellStream = (stream) => stream.pipe(groupedWithin(512, millis(50)), mapEffect((events) => projectShellItems(Array.from(events))), flatMap$
|
|
37916
|
+
const toShellStream = (stream) => stream.pipe(groupedWithin(512, millis(50)), mapEffect((events) => projectShellItems(Array.from(events))), flatMap$3(fromIterable), skipUnchangedThreadShells);
|
|
37818
37917
|
const liveFrom = (afterSequence) => bufferLiveStream(toShellStream(applicationEvents.streamProjectedApplicationEvents({
|
|
37819
37918
|
afterSequence,
|
|
37820
37919
|
project: toShellApplicationEvent
|
|
@@ -37835,7 +37934,7 @@ const subscribeOrchestrationV2Shell = fn("ws.orchestrationV2.subscribeShell")(fu
|
|
|
37835
37934
|
changes: Array.from(changes)
|
|
37836
37935
|
});
|
|
37837
37936
|
})));
|
|
37838
|
-
const completionMarker = input.requestCompletionMarker === true ? make$
|
|
37937
|
+
const completionMarker = input.requestCompletionMarker === true ? make$100({ kind: "synchronized" }) : empty$7;
|
|
37839
37938
|
const initialSnapshotItems = (loaded) => rpcInitialItems(shellStreamItemsFromInitialSnapshot({
|
|
37840
37939
|
snapshot: loaded.snapshot,
|
|
37841
37940
|
resolvedRepositoryIdentityRoots: loaded.resolvedRepositoryIdentityRoots
|
|
@@ -38276,7 +38375,7 @@ const layerWsRpc = (currentSession, clientOrigin, clientAnalyticsProps, previewA
|
|
|
38276
38375
|
const live = threadManagement.streamStoredEventsFrom({ afterSequence: snapshot.snapshotSequence }).pipe(groupedWithin(512, millis(50)), mapEffect((events) => forEach(coalesceStoredThreadEvents(Array.from(events)), (stored) => threadManagement.getThreadShell(stored.event.threadId).pipe(map((shell) => archivedShellStreamItemFromThreadShell({
|
|
38277
38376
|
stored,
|
|
38278
38377
|
shell
|
|
38279
|
-
}))), { concurrency: 8 })), flatMap$
|
|
38378
|
+
}))), { concurrency: 8 })), flatMap$3(fromIterable), filterMap$1((item) => item === null ? failVoid : succeed$4(item)), (stream) => bufferLiveStream(stream), mapError$1((cause) => new OrchestrationV2GetShellSnapshotError({
|
|
38280
38379
|
message: "Failed while streaming archived threads",
|
|
38281
38380
|
cause
|
|
38282
38381
|
})));
|
|
@@ -38623,7 +38722,7 @@ const layerWsRpc = (currentSession, clientOrigin, clientAnalyticsProps, previewA
|
|
|
38623
38722
|
}).pipe(asVoid)).pipe(flatMap((result) => offer$1(queue, {
|
|
38624
38723
|
type: "complete",
|
|
38625
38724
|
result
|
|
38626
|
-
})), catchTags({ ServerSelfUpdateError: (error) => fail$
|
|
38725
|
+
})), catchTags({ ServerSelfUpdateError: (error) => fail$6(queue, error) }), andThen(end(queue)), forkScoped)),
|
|
38627
38726
|
[WS_METHODS.serverCommitDesktopUpdate]: (input) => serverSelfUpdate.commitDesktopUpdate(input.requestId),
|
|
38628
38727
|
[WS_METHODS.serverUpsertKeybinding]: fnUntraced(function* (rule) {
|
|
38629
38728
|
return yield* keybindings.upsertKeybindingRule(rule);
|
|
@@ -38675,7 +38774,7 @@ const layerWsRpc = (currentSession, clientOrigin, clientAnalyticsProps, previewA
|
|
|
38675
38774
|
[WS_METHODS.cloudInstallRelayClient]: (_input) => callback$1((queue) => relayClient.installWithProgress((event) => offer$1(queue, event).pipe(asVoid)).pipe(flatMap((status) => offer$1(queue, {
|
|
38676
38775
|
type: "complete",
|
|
38677
38776
|
status
|
|
38678
|
-
})), catchTags({ RelayClientInstallError: (error) => fail$
|
|
38777
|
+
})), catchTags({ RelayClientInstallError: (error) => fail$6(queue, new RelayClientInstallFailedError({
|
|
38679
38778
|
reason: error.reason,
|
|
38680
38779
|
message: error.message
|
|
38681
38780
|
})) }), andThen(end(queue)), forkScoped)),
|
|
@@ -38975,8 +39074,8 @@ const layerWsRpc = (currentSession, clientOrigin, clientAnalyticsProps, previewA
|
|
|
38975
39074
|
payload: initialSnapshot
|
|
38976
39075
|
}]), liveEvents);
|
|
38977
39076
|
})),
|
|
38978
|
-
[WS_METHODS.subscribeBackgroundPolicy]: (_input) => unwrap$1(map(backgroundPolicy.subscribe, ({ latest, changes }) => concat$2(make$
|
|
38979
|
-
[WS_METHODS.subscribeResourceTelemetry]: (_input) => unwrap$1(map(resourceTelemetry.subscribe, ({ latest, changes }) => concat$2(make$
|
|
39077
|
+
[WS_METHODS.subscribeBackgroundPolicy]: (_input) => unwrap$1(map(backgroundPolicy.subscribe, ({ latest, changes }) => concat$2(make$100(latest), changes))),
|
|
39078
|
+
[WS_METHODS.subscribeResourceTelemetry]: (_input) => unwrap$1(map(resourceTelemetry.subscribe, ({ latest, changes }) => concat$2(make$100(latest), changes)))
|
|
38980
39079
|
});
|
|
38981
39080
|
const splitHandlers = handlers;
|
|
38982
39081
|
const otherHandlers = handlers;
|
|
@@ -39020,10 +39119,11 @@ const makeWsRoute = gen(function* () {
|
|
|
39020
39119
|
const reportProfiles = yield* serverBrowser.profileReporter;
|
|
39021
39120
|
const rpcWebSocketHttpEffect = yield* gen(function* () {
|
|
39022
39121
|
const { protocol, httpEffect } = yield* makeProtocolWithHttpEffectWebsocket;
|
|
39023
|
-
yield* make$
|
|
39122
|
+
yield* make$95(ServerWsRpcGroup, WS_RPC_SERVER_OPTIONS).pipe(provideService(Protocol, withTerminalOutputWindow(protocol)), provide$1(merge$1(layer$57(session.scopes), rpcInstrumentationLayer)), forkScoped);
|
|
39024
39123
|
return httpEffect;
|
|
39025
39124
|
}).pipe(provide$1(layerWsRpc(session, clientOrigin, clientAnalyticsProps, previewAutomationBroker, serverBrowser, reportProfiles).pipe(merge$1(designRpcLayer.pipe(provide(succeedContext(designServices)))), merge$1(decisionRpcLayer.pipe(provide(succeed$1(DecisionLog, decisionLog)))), merge$1(selfImproveRpcLayer.pipe(provide(succeed$1(SelfImprove, selfImprove)))), merge$1(hubSyncRpcLayer.pipe(provide(succeed$1(HubSync, hubSync)))), merge$1(mcpProviderSignInRpcLayer.pipe(provide(succeed$1(McpProviderSignIn, mcpProviderSignIn)))), provideMerge(layerJson), provide(layer$59), provide(succeed$1(SqlClient, sql)), provide(layer$126), provide(layer$73), provide(succeed$1(ServerSelfUpdate, serverSelfUpdate)), provide(succeed$1(PullRequestService, pullRequests)), provide(layer$47), provide(succeed$1(UserInputRanking, userInputRanking)), provide(succeed$1(PullRequestReviewGuideService, reviewGuides)), provide(succeed$1(PeerLinks, peerLinks)), provide(succeed$1(PeerLinkRequests, peerLinkRequests)), provide(layer$48.pipe(provide(layer$96.pipe(provide(layer$97), provideMerge(layer$98), provide(layer$99.pipe(provide(layer$100))))))))));
|
|
39026
|
-
|
|
39125
|
+
const framedRpcWebSocketHttpEffect = requestUrl.value.searchParams.has("frameParts") ? rpcWebSocketHttpEffect.pipe(provideService(HttpServerRequest, Object.create(request, { upgrade: { value: map(request.upgrade, splitLargeSocketFrames) } }))) : rpcWebSocketHttpEffect;
|
|
39126
|
+
return yield* acquireUseRelease(sessions.markConnected(session.sessionId), () => raceFirst(framedRpcWebSocketHttpEffect, sessions.awaitInvalidation(session.sessionId, session.proofKeyThumbprint).pipe(as(empty$5()), catchTags({ SessionCredentialVerificationError: (error) => failEnvironmentInternal("internal_error", error) }))), () => sessions.markDisconnected(session.sessionId));
|
|
39027
39127
|
}).pipe(catchTags({
|
|
39028
39128
|
EnvironmentAuthInvalidError: toResponse,
|
|
39029
39129
|
EnvironmentInternalError: toResponse
|
|
@@ -41546,7 +41646,7 @@ const Proto = {
|
|
|
41546
41646
|
})));
|
|
41547
41647
|
}
|
|
41548
41648
|
const decodedParams = decodedParamsResult.success;
|
|
41549
|
-
const queue = yield* make$
|
|
41649
|
+
const queue = yield* make$101();
|
|
41550
41650
|
const context = {
|
|
41551
41651
|
toolCallId,
|
|
41552
41652
|
preliminary: (result) => asVoid(offer$1(queue, {
|
|
@@ -42300,7 +42400,7 @@ const McpError$1 = /*#__PURE__*/ Union([
|
|
|
42300
42400
|
* @category protocols
|
|
42301
42401
|
* @since 4.0.0
|
|
42302
42402
|
*/
|
|
42303
|
-
var Ping$1 = class extends (/*#__PURE__*/ make$
|
|
42403
|
+
var Ping$1 = class extends (/*#__PURE__*/ make$90("ping", {
|
|
42304
42404
|
success: /*#__PURE__*/ Struct({}),
|
|
42305
42405
|
error: McpError$1,
|
|
42306
42406
|
payload: /*#__PURE__*/ UndefinedOr(RequestMeta$1)
|
|
@@ -42339,7 +42439,7 @@ var InitializeResult$3 = class extends (/*#__PURE__*/ Opaque()(/*#__PURE__*/ Str
|
|
|
42339
42439
|
* @category protocols
|
|
42340
42440
|
* @since 4.0.0
|
|
42341
42441
|
*/
|
|
42342
|
-
var Initialize$3 = class extends (/*#__PURE__*/ make$
|
|
42442
|
+
var Initialize$3 = class extends (/*#__PURE__*/ make$90("initialize", {
|
|
42343
42443
|
success: InitializeResult$3,
|
|
42344
42444
|
error: McpError$1,
|
|
42345
42445
|
payload: {
|
|
@@ -42374,7 +42474,7 @@ var Initialize$3 = class extends (/*#__PURE__*/ make$88("initialize", {
|
|
|
42374
42474
|
* @category protocols
|
|
42375
42475
|
* @since 4.0.0
|
|
42376
42476
|
*/
|
|
42377
|
-
var CancelledNotification$1 = class extends (/*#__PURE__*/ make$
|
|
42477
|
+
var CancelledNotification$1 = class extends (/*#__PURE__*/ make$90("notifications/cancelled", { payload: {
|
|
42378
42478
|
...NotificationMeta$1.fields,
|
|
42379
42479
|
/**
|
|
42380
42480
|
* The ID of the request to cancel.
|
|
@@ -42396,7 +42496,7 @@ var CancelledNotification$1 = class extends (/*#__PURE__*/ make$88("notification
|
|
|
42396
42496
|
* @category protocols
|
|
42397
42497
|
* @since 4.0.0
|
|
42398
42498
|
*/
|
|
42399
|
-
var ProgressNotification$2 = class extends (/*#__PURE__*/ make$
|
|
42499
|
+
var ProgressNotification$2 = class extends (/*#__PURE__*/ make$90("notifications/progress", { payload: {
|
|
42400
42500
|
...NotificationMeta$1.fields,
|
|
42401
42501
|
/**
|
|
42402
42502
|
* The progress token which was given in the initial request, used to
|
|
@@ -42545,7 +42645,7 @@ var BlobResourceContents$2 = class extends (/*#__PURE__*/ Opaque()(/*#__PURE__*/
|
|
|
42545
42645
|
* @category protocols
|
|
42546
42646
|
* @since 4.0.0
|
|
42547
42647
|
*/
|
|
42548
|
-
var ResourceListChangedNotification$1 = class extends (/*#__PURE__*/ make$
|
|
42648
|
+
var ResourceListChangedNotification$1 = class extends (/*#__PURE__*/ make$90("notifications/resources/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta$1) })) {};
|
|
42549
42649
|
(
|
|
42550
42650
|
/**
|
|
42551
42651
|
* The URI of the resource to subscribe to. The URI can use any protocol;
|
|
@@ -42570,7 +42670,7 @@ var ResourceListChangedNotification$1 = class extends (/*#__PURE__*/ make$88("no
|
|
|
42570
42670
|
* @category protocols
|
|
42571
42671
|
* @since 4.0.0
|
|
42572
42672
|
*/
|
|
42573
|
-
var ResourceUpdatedNotification$1 = class extends (/*#__PURE__*/ make$
|
|
42673
|
+
var ResourceUpdatedNotification$1 = class extends (/*#__PURE__*/ make$90("notifications/resources/updated", { payload: {
|
|
42574
42674
|
...NotificationMeta$1.fields,
|
|
42575
42675
|
/**
|
|
42576
42676
|
* The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
|
|
@@ -42718,7 +42818,7 @@ const ContentBlock$1 = /*#__PURE__*/ Union([
|
|
|
42718
42818
|
* @category protocols
|
|
42719
42819
|
* @since 4.0.0
|
|
42720
42820
|
*/
|
|
42721
|
-
var PromptListChangedNotification$1 = class extends (/*#__PURE__*/ make$
|
|
42821
|
+
var PromptListChangedNotification$1 = class extends (/*#__PURE__*/ make$90("notifications/prompts/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta$1) })) {};
|
|
42722
42822
|
/**
|
|
42723
42823
|
* Schema for additional properties describing a tool to clients.
|
|
42724
42824
|
*
|
|
@@ -42886,7 +42986,7 @@ var CallToolResult$3 = class extends (/*#__PURE__*/ Class("@effect/ai/McpSchema/
|
|
|
42886
42986
|
* @category protocols
|
|
42887
42987
|
* @since 4.0.0
|
|
42888
42988
|
*/
|
|
42889
|
-
var ToolListChangedNotification$1 = class extends (/*#__PURE__*/ make$
|
|
42989
|
+
var ToolListChangedNotification$1 = class extends (/*#__PURE__*/ make$90("notifications/tools/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta$1) })) {};
|
|
42890
42990
|
/**
|
|
42891
42991
|
* Schema for log message severity levels, mapped to syslog message severities
|
|
42892
42992
|
* as specified in RFC 5424 section 6.2.1:
|
|
@@ -42925,7 +43025,7 @@ const LoggingLevel$1 = /*#__PURE__*/ Literals([
|
|
|
42925
43025
|
* @category logging
|
|
42926
43026
|
* @since 4.0.0
|
|
42927
43027
|
*/
|
|
42928
|
-
var LoggingMessageNotification$1 = class extends (/*#__PURE__*/ make$
|
|
43028
|
+
var LoggingMessageNotification$1 = class extends (/*#__PURE__*/ make$90("notifications/message", { payload: /*#__PURE__*/ Struct({
|
|
42929
43029
|
...NotificationMeta$1.fields,
|
|
42930
43030
|
/**
|
|
42931
43031
|
* The severity of this log message.
|
|
@@ -43166,7 +43266,7 @@ var CreateMessageResult$3 = class extends (/*#__PURE__*/ Class("@effect/ai/McpSc
|
|
|
43166
43266
|
* @category protocols
|
|
43167
43267
|
* @since 4.0.0
|
|
43168
43268
|
*/
|
|
43169
|
-
var CreateMessage$3 = class extends (/*#__PURE__*/ make$
|
|
43269
|
+
var CreateMessage$3 = class extends (/*#__PURE__*/ make$90("sampling/createMessage", {
|
|
43170
43270
|
success: CreateMessageResult$3,
|
|
43171
43271
|
error: McpError$1,
|
|
43172
43272
|
payload: {
|
|
@@ -43266,7 +43366,7 @@ var ListRootsResult$1 = class extends (/*#__PURE__*/ Class("@effect/ai/McpSchema
|
|
|
43266
43366
|
* @category protocols
|
|
43267
43367
|
* @since 4.0.0
|
|
43268
43368
|
*/
|
|
43269
|
-
var ListRoots$1 = class extends (/*#__PURE__*/ make$
|
|
43369
|
+
var ListRoots$1 = class extends (/*#__PURE__*/ make$90("roots/list", {
|
|
43270
43370
|
success: ListRootsResult$1,
|
|
43271
43371
|
error: McpError$1,
|
|
43272
43372
|
payload: /*#__PURE__*/ UndefinedOr(RequestMeta$1)
|
|
@@ -43536,7 +43636,7 @@ const ElicitResult$1 = /*#__PURE__*/ Union([ElicitAcceptResult, ElicitDeclineRes
|
|
|
43536
43636
|
* @category protocols
|
|
43537
43637
|
* @since 4.0.0
|
|
43538
43638
|
*/
|
|
43539
|
-
var Elicit$1 = class extends (/*#__PURE__*/ make$
|
|
43639
|
+
var Elicit$1 = class extends (/*#__PURE__*/ make$90("elicitation/create", {
|
|
43540
43640
|
success: ElicitResult$1,
|
|
43541
43641
|
error: McpError$1,
|
|
43542
43642
|
payload: ElicitRequestParams
|
|
@@ -43548,7 +43648,7 @@ var Elicit$1 = class extends (/*#__PURE__*/ make$88("elicitation/create", {
|
|
|
43548
43648
|
* @category elicitation
|
|
43549
43649
|
* @since 4.0.0
|
|
43550
43650
|
*/
|
|
43551
|
-
var ElicitationCompleteNotification = class extends (/*#__PURE__*/ make$
|
|
43651
|
+
var ElicitationCompleteNotification = class extends (/*#__PURE__*/ make$90("notifications/elicitation/complete", { payload: { elicitationId: String$1 } })) {};
|
|
43552
43652
|
Elicit$1.payloadSchema;
|
|
43553
43653
|
/**
|
|
43554
43654
|
* Raised when the negotiated MCP revision or client capabilities do not
|
|
@@ -43612,7 +43712,7 @@ var McpServerClientMiddleware = class extends (/*#__PURE__*/ Service$2()("effect
|
|
|
43612
43712
|
* @category protocols
|
|
43613
43713
|
* @since 4.0.0
|
|
43614
43714
|
*/
|
|
43615
|
-
var ServerNotificationRpcs$2 = class extends (/*#__PURE__*/ make$
|
|
43715
|
+
var ServerNotificationRpcs$2 = class extends (/*#__PURE__*/ make$89(CancelledNotification$1, ProgressNotification$2, LoggingMessageNotification$1, ResourceUpdatedNotification$1, ResourceListChangedNotification$1, ToolListChangedNotification$1, PromptListChangedNotification$1, ElicitationCompleteNotification)) {};
|
|
43616
43716
|
/**
|
|
43617
43717
|
* Annotation to conditionally enable or disable tools based on client
|
|
43618
43718
|
* information.
|
|
@@ -44004,7 +44104,7 @@ const make$19 = (options) => {
|
|
|
44004
44104
|
return codecs;
|
|
44005
44105
|
};
|
|
44006
44106
|
const installHandlers = (core, lifecycle, target) => options.handlerRpcs === void 0 || options.makeHandlers === void 0 ? void_ : lifecycle === void 0 && options.runtime._tag === "Stateful" ? die("MCP sessionful handler installation requires a lifecycle runtime") : target.install(options, options.handlerRpcs, options.makeHandlers(core, options.runtime._tag === "Stateful" ? lifecycle : void 0, target.context));
|
|
44007
|
-
const makeReverseClient = (profile) => make$
|
|
44107
|
+
const makeReverseClient = (profile) => make$96(options.serverRequestRpcs, { spanPrefix: "McpServer/Client" }).pipe(map((client) => options.toReverseClient(profile, client)));
|
|
44008
44108
|
return {
|
|
44009
44109
|
...options,
|
|
44010
44110
|
payloadCodecs,
|
|
@@ -44177,7 +44277,7 @@ const headerMismatch = (message) => ({
|
|
|
44177
44277
|
message
|
|
44178
44278
|
}
|
|
44179
44279
|
});
|
|
44180
|
-
const PingRpcs = /*#__PURE__*/ make$
|
|
44280
|
+
const PingRpcs = /*#__PURE__*/ make$89(Ping$1);
|
|
44181
44281
|
/**
|
|
44182
44282
|
* @internal
|
|
44183
44283
|
*/
|
|
@@ -44753,7 +44853,7 @@ const ListRootsResult = /*#__PURE__*/ Struct({
|
|
|
44753
44853
|
/**
|
|
44754
44854
|
* @internal
|
|
44755
44855
|
*/
|
|
44756
|
-
var Ping = class extends (/*#__PURE__*/ make$
|
|
44856
|
+
var Ping = class extends (/*#__PURE__*/ make$90("ping", {
|
|
44757
44857
|
success: ResultMeta,
|
|
44758
44858
|
error: McpError,
|
|
44759
44859
|
payload: /*#__PURE__*/ UndefinedOr(RequestMeta)
|
|
@@ -44763,7 +44863,7 @@ var Ping = class extends (/*#__PURE__*/ make$88("ping", {
|
|
|
44763
44863
|
/**
|
|
44764
44864
|
* @internal
|
|
44765
44865
|
*/
|
|
44766
|
-
var SetLevel = class extends (/*#__PURE__*/ make$
|
|
44866
|
+
var SetLevel = class extends (/*#__PURE__*/ make$90("logging/setLevel", {
|
|
44767
44867
|
success: ResultMeta,
|
|
44768
44868
|
error: McpError,
|
|
44769
44869
|
payload: {
|
|
@@ -44776,7 +44876,7 @@ var SetLevel = class extends (/*#__PURE__*/ make$88("logging/setLevel", {
|
|
|
44776
44876
|
/**
|
|
44777
44877
|
* @internal
|
|
44778
44878
|
*/
|
|
44779
|
-
var Subscribe = class extends (/*#__PURE__*/ make$
|
|
44879
|
+
var Subscribe = class extends (/*#__PURE__*/ make$90("resources/subscribe", {
|
|
44780
44880
|
success: ResultMeta,
|
|
44781
44881
|
error: McpError,
|
|
44782
44882
|
payload: {
|
|
@@ -44787,7 +44887,7 @@ var Subscribe = class extends (/*#__PURE__*/ make$88("resources/subscribe", {
|
|
|
44787
44887
|
/**
|
|
44788
44888
|
* @internal
|
|
44789
44889
|
*/
|
|
44790
|
-
var Unsubscribe = class extends (/*#__PURE__*/ make$
|
|
44890
|
+
var Unsubscribe = class extends (/*#__PURE__*/ make$90("resources/unsubscribe", {
|
|
44791
44891
|
success: ResultMeta,
|
|
44792
44892
|
error: McpError,
|
|
44793
44893
|
payload: {
|
|
@@ -44800,7 +44900,7 @@ var Unsubscribe = class extends (/*#__PURE__*/ make$88("resources/unsubscribe",
|
|
|
44800
44900
|
/**
|
|
44801
44901
|
* @internal
|
|
44802
44902
|
*/
|
|
44803
|
-
var ListRoots = class extends (/*#__PURE__*/ make$
|
|
44903
|
+
var ListRoots = class extends (/*#__PURE__*/ make$90("roots/list", {
|
|
44804
44904
|
success: ListRootsResult,
|
|
44805
44905
|
error: McpError,
|
|
44806
44906
|
payload: /*#__PURE__*/ UndefinedOr(RequestMeta)
|
|
@@ -44808,7 +44908,7 @@ var ListRoots = class extends (/*#__PURE__*/ make$88("roots/list", {
|
|
|
44808
44908
|
/**
|
|
44809
44909
|
* @internal
|
|
44810
44910
|
*/
|
|
44811
|
-
var CancelledNotification = class extends (/*#__PURE__*/ make$
|
|
44911
|
+
var CancelledNotification = class extends (/*#__PURE__*/ make$90("notifications/cancelled", { payload: {
|
|
44812
44912
|
...NotificationMeta.fields,
|
|
44813
44913
|
requestId: RequestId,
|
|
44814
44914
|
reason: /*#__PURE__*/ optional$2(String$1)
|
|
@@ -44817,15 +44917,15 @@ var CancelledNotification = class extends (/*#__PURE__*/ make$88("notifications/
|
|
|
44817
44917
|
/**
|
|
44818
44918
|
* @internal
|
|
44819
44919
|
*/
|
|
44820
|
-
var InitializedNotification = class extends (/*#__PURE__*/ make$
|
|
44920
|
+
var InitializedNotification = class extends (/*#__PURE__*/ make$90("notifications/initialized", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta) })) {};
|
|
44821
44921
|
/**
|
|
44822
44922
|
* @internal
|
|
44823
44923
|
*/
|
|
44824
|
-
var RootsListChangedNotification = class extends (/*#__PURE__*/ make$
|
|
44924
|
+
var RootsListChangedNotification = class extends (/*#__PURE__*/ make$90("notifications/roots/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta) })) {};
|
|
44825
44925
|
/**
|
|
44826
44926
|
* @internal
|
|
44827
44927
|
*/
|
|
44828
|
-
var LoggingMessageNotification = class extends (/*#__PURE__*/ make$
|
|
44928
|
+
var LoggingMessageNotification = class extends (/*#__PURE__*/ make$90("notifications/message", { payload: {
|
|
44829
44929
|
...NotificationMeta.fields,
|
|
44830
44930
|
level: LoggingLevel,
|
|
44831
44931
|
logger: /*#__PURE__*/ optional$2(String$1),
|
|
@@ -44834,22 +44934,22 @@ var LoggingMessageNotification = class extends (/*#__PURE__*/ make$88("notificat
|
|
|
44834
44934
|
/**
|
|
44835
44935
|
* @internal
|
|
44836
44936
|
*/
|
|
44837
|
-
var ResourceUpdatedNotification = class extends (/*#__PURE__*/ make$
|
|
44937
|
+
var ResourceUpdatedNotification = class extends (/*#__PURE__*/ make$90("notifications/resources/updated", { payload: {
|
|
44838
44938
|
...NotificationMeta.fields,
|
|
44839
44939
|
uri: String$1
|
|
44840
44940
|
} })) {};
|
|
44841
44941
|
/**
|
|
44842
44942
|
* @internal
|
|
44843
44943
|
*/
|
|
44844
|
-
var ResourceListChangedNotification = class extends (/*#__PURE__*/ make$
|
|
44944
|
+
var ResourceListChangedNotification = class extends (/*#__PURE__*/ make$90("notifications/resources/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta) })) {};
|
|
44845
44945
|
/**
|
|
44846
44946
|
* @internal
|
|
44847
44947
|
*/
|
|
44848
|
-
var ToolListChangedNotification = class extends (/*#__PURE__*/ make$
|
|
44948
|
+
var ToolListChangedNotification = class extends (/*#__PURE__*/ make$90("notifications/tools/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta) })) {};
|
|
44849
44949
|
/**
|
|
44850
44950
|
* @internal
|
|
44851
44951
|
*/
|
|
44852
|
-
var PromptListChangedNotification = class extends (/*#__PURE__*/ make$
|
|
44952
|
+
var PromptListChangedNotification = class extends (/*#__PURE__*/ make$90("notifications/prompts/list_changed", { payload: /*#__PURE__*/ UndefinedOr(NotificationMeta) })) {};
|
|
44853
44953
|
// ../../node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/ai/internal/mcpSchema/v2025_03_26.js
|
|
44854
44954
|
/**
|
|
44855
44955
|
* Exact MCP v2025-03-26 wire schemas.
|
|
@@ -44900,7 +45000,7 @@ const ToolAnnotations = /*#__PURE__*/ Struct({
|
|
|
44900
45000
|
/**
|
|
44901
45001
|
* @internal
|
|
44902
45002
|
*/
|
|
44903
|
-
var ProgressNotification = class extends (/*#__PURE__*/ make$
|
|
45003
|
+
var ProgressNotification = class extends (/*#__PURE__*/ make$90("notifications/progress", { payload: {
|
|
44904
45004
|
...NotificationMeta.fields,
|
|
44905
45005
|
progressToken: ProgressToken,
|
|
44906
45006
|
progress: Finite,
|
|
@@ -45089,7 +45189,7 @@ const InitializeResult = /*#__PURE__*/ Struct({
|
|
|
45089
45189
|
/**
|
|
45090
45190
|
* @internal
|
|
45091
45191
|
*/
|
|
45092
|
-
var Initialize = class extends (/*#__PURE__*/ make$
|
|
45192
|
+
var Initialize = class extends (/*#__PURE__*/ make$90("initialize", {
|
|
45093
45193
|
success: InitializeResult,
|
|
45094
45194
|
error: McpError,
|
|
45095
45195
|
payload: {
|
|
@@ -45138,7 +45238,7 @@ const CreateMessageResult = /*#__PURE__*/ Struct({
|
|
|
45138
45238
|
/**
|
|
45139
45239
|
* @internal
|
|
45140
45240
|
*/
|
|
45141
|
-
var CreateMessage = class extends (/*#__PURE__*/ make$
|
|
45241
|
+
var CreateMessage = class extends (/*#__PURE__*/ make$90("sampling/createMessage", {
|
|
45142
45242
|
success: CreateMessageResult,
|
|
45143
45243
|
error: McpError,
|
|
45144
45244
|
payload: {
|
|
@@ -45178,7 +45278,7 @@ const CompleteResult = CompleteResult$1;
|
|
|
45178
45278
|
/**
|
|
45179
45279
|
* @internal
|
|
45180
45280
|
*/
|
|
45181
|
-
var Complete = class extends (/*#__PURE__*/ make$
|
|
45281
|
+
var Complete = class extends (/*#__PURE__*/ make$90("completion/complete", {
|
|
45182
45282
|
success: CompleteResult,
|
|
45183
45283
|
error: McpError,
|
|
45184
45284
|
payload: {
|
|
@@ -45237,7 +45337,7 @@ const ListToolsResult = /*#__PURE__*/ Struct({
|
|
|
45237
45337
|
/**
|
|
45238
45338
|
* @internal
|
|
45239
45339
|
*/
|
|
45240
|
-
var ListResources = class extends (/*#__PURE__*/ make$
|
|
45340
|
+
var ListResources = class extends (/*#__PURE__*/ make$90("resources/list", {
|
|
45241
45341
|
success: ListResourcesResult,
|
|
45242
45342
|
error: McpError,
|
|
45243
45343
|
payload: /*#__PURE__*/ UndefinedOr(PaginatedRequest)
|
|
@@ -45245,7 +45345,7 @@ var ListResources = class extends (/*#__PURE__*/ make$88("resources/list", {
|
|
|
45245
45345
|
/**
|
|
45246
45346
|
* @internal
|
|
45247
45347
|
*/
|
|
45248
|
-
var ListResourceTemplates = class extends (/*#__PURE__*/ make$
|
|
45348
|
+
var ListResourceTemplates = class extends (/*#__PURE__*/ make$90("resources/templates/list", {
|
|
45249
45349
|
success: ListResourceTemplatesResult,
|
|
45250
45350
|
error: McpError,
|
|
45251
45351
|
payload: /*#__PURE__*/ UndefinedOr(PaginatedRequest)
|
|
@@ -45253,7 +45353,7 @@ var ListResourceTemplates = class extends (/*#__PURE__*/ make$88("resources/temp
|
|
|
45253
45353
|
/**
|
|
45254
45354
|
* @internal
|
|
45255
45355
|
*/
|
|
45256
|
-
var ReadResource = class extends (/*#__PURE__*/ make$
|
|
45356
|
+
var ReadResource = class extends (/*#__PURE__*/ make$90("resources/read", {
|
|
45257
45357
|
success: ReadResourceResult,
|
|
45258
45358
|
error: McpError,
|
|
45259
45359
|
payload: {
|
|
@@ -45264,7 +45364,7 @@ var ReadResource = class extends (/*#__PURE__*/ make$88("resources/read", {
|
|
|
45264
45364
|
/**
|
|
45265
45365
|
* @internal
|
|
45266
45366
|
*/
|
|
45267
|
-
var ListPrompts = class extends (/*#__PURE__*/ make$
|
|
45367
|
+
var ListPrompts = class extends (/*#__PURE__*/ make$90("prompts/list", {
|
|
45268
45368
|
success: ListPromptsResult,
|
|
45269
45369
|
error: McpError,
|
|
45270
45370
|
payload: /*#__PURE__*/ UndefinedOr(PaginatedRequest)
|
|
@@ -45272,7 +45372,7 @@ var ListPrompts = class extends (/*#__PURE__*/ make$88("prompts/list", {
|
|
|
45272
45372
|
/**
|
|
45273
45373
|
* @internal
|
|
45274
45374
|
*/
|
|
45275
|
-
var GetPrompt = class extends (/*#__PURE__*/ make$
|
|
45375
|
+
var GetPrompt = class extends (/*#__PURE__*/ make$90("prompts/get", {
|
|
45276
45376
|
success: GetPromptResult,
|
|
45277
45377
|
error: McpError,
|
|
45278
45378
|
payload: {
|
|
@@ -45284,7 +45384,7 @@ var GetPrompt = class extends (/*#__PURE__*/ make$88("prompts/get", {
|
|
|
45284
45384
|
/**
|
|
45285
45385
|
* @internal
|
|
45286
45386
|
*/
|
|
45287
|
-
var ListTools = class extends (/*#__PURE__*/ make$
|
|
45387
|
+
var ListTools = class extends (/*#__PURE__*/ make$90("tools/list", {
|
|
45288
45388
|
success: ListToolsResult,
|
|
45289
45389
|
error: McpError,
|
|
45290
45390
|
payload: /*#__PURE__*/ UndefinedOr(PaginatedRequest)
|
|
@@ -45292,7 +45392,7 @@ var ListTools = class extends (/*#__PURE__*/ make$88("tools/list", {
|
|
|
45292
45392
|
/**
|
|
45293
45393
|
* @internal
|
|
45294
45394
|
*/
|
|
45295
|
-
var CallTool = class extends (/*#__PURE__*/ make$
|
|
45395
|
+
var CallTool = class extends (/*#__PURE__*/ make$90("tools/call", {
|
|
45296
45396
|
success: CallToolResult,
|
|
45297
45397
|
error: McpError,
|
|
45298
45398
|
payload: {
|
|
@@ -45359,7 +45459,7 @@ const RequestedSchema = /*#__PURE__*/ Struct({
|
|
|
45359
45459
|
/**
|
|
45360
45460
|
* @internal
|
|
45361
45461
|
*/
|
|
45362
|
-
var Elicit = class extends (/*#__PURE__*/ make$
|
|
45462
|
+
var Elicit = class extends (/*#__PURE__*/ make$90("elicitation/create", {
|
|
45363
45463
|
success: ElicitResult,
|
|
45364
45464
|
error: McpError,
|
|
45365
45465
|
payload: {
|
|
@@ -45371,19 +45471,19 @@ var Elicit = class extends (/*#__PURE__*/ make$88("elicitation/create", {
|
|
|
45371
45471
|
/**
|
|
45372
45472
|
* @internal
|
|
45373
45473
|
*/
|
|
45374
|
-
var ClientRequestRpcs = class extends (/*#__PURE__*/ make$
|
|
45474
|
+
var ClientRequestRpcs = class extends (/*#__PURE__*/ make$89(Ping, Initialize, Complete, SetLevel, GetPrompt, ListPrompts, ListResources, ListResourceTemplates, ReadResource, Subscribe, Unsubscribe, CallTool, ListTools)) {};
|
|
45375
45475
|
/**
|
|
45376
45476
|
* @internal
|
|
45377
45477
|
*/
|
|
45378
|
-
var ClientNotificationRpcs = class extends (/*#__PURE__*/ make$
|
|
45478
|
+
var ClientNotificationRpcs = class extends (/*#__PURE__*/ make$89(CancelledNotification, ProgressNotification, InitializedNotification, RootsListChangedNotification)) {};
|
|
45379
45479
|
/**
|
|
45380
45480
|
* @internal
|
|
45381
45481
|
*/
|
|
45382
|
-
var ServerRequestRpcs = class extends (/*#__PURE__*/ make$
|
|
45482
|
+
var ServerRequestRpcs = class extends (/*#__PURE__*/ make$89(Ping, CreateMessage, ListRoots, Elicit)) {};
|
|
45383
45483
|
/**
|
|
45384
45484
|
* @internal
|
|
45385
45485
|
*/
|
|
45386
|
-
var ServerNotificationRpcs = class extends (/*#__PURE__*/ make$
|
|
45486
|
+
var ServerNotificationRpcs = class extends (/*#__PURE__*/ make$89(CancelledNotification, ProgressNotification, LoggingMessageNotification, ResourceUpdatedNotification, ResourceListChangedNotification, ToolListChangedNotification, PromptListChangedNotification)) {};
|
|
45387
45487
|
// ../../node_modules/.pnpm/effect@4.0.4/node_modules/effect/dist/ai/internal/mcpProtocol/v2025_06_18.js
|
|
45388
45488
|
const ClientRpcs = /*#__PURE__*/ (/* @__PURE__ */ ClientRequestRpcs.omit("ping").middleware(McpServerClientMiddleware).add(Ping)).merge(ClientNotificationRpcs);
|
|
45389
45489
|
const AdapterRpcs = /*#__PURE__*/ ClientRpcs.omit("ping");
|
|
@@ -45697,7 +45797,7 @@ var McpServer = class McpServer extends (/*#__PURE__*/ Service$1()("effect/ai/Mc
|
|
|
45697
45797
|
const resources = [];
|
|
45698
45798
|
const resourceTemplates = [];
|
|
45699
45799
|
const prompts = [];
|
|
45700
|
-
const notificationsQueue = yield* make$
|
|
45800
|
+
const notificationsQueue = yield* make$101();
|
|
45701
45801
|
const notificationDelivery = {
|
|
45702
45802
|
consumers: 0,
|
|
45703
45803
|
listChangeRevision: 0,
|
|
@@ -46023,7 +46123,7 @@ const runWithRuntime = /*#__PURE__*/ fnUntraced(function* (options, runtime, tra
|
|
|
46023
46123
|
defaultLogLevel,
|
|
46024
46124
|
serverInfo: options
|
|
46025
46125
|
}));
|
|
46026
|
-
const clients = yield* make$
|
|
46126
|
+
const clients = yield* make$97({
|
|
46027
46127
|
lookup: fnUntraced(function* (key) {
|
|
46028
46128
|
const selectedProtocol = runtime.selectProtocol(key.profile.protocolVersion);
|
|
46029
46129
|
let write;
|
|
@@ -46337,7 +46437,7 @@ const runWithRuntime = /*#__PURE__*/ fnUntraced(function* (options, runtime, tra
|
|
|
46337
46437
|
discard: true
|
|
46338
46438
|
}).pipe(forkScoped({ startImmediately: true }));
|
|
46339
46439
|
})), ignoreCause, forever, forkScoped);
|
|
46340
|
-
return yield* make$
|
|
46440
|
+
return yield* make$95(runtime.clientRpcs, {
|
|
46341
46441
|
spanPrefix: "McpServer",
|
|
46342
46442
|
disableFatalDefects: true
|
|
46343
46443
|
}).pipe(provideService(Protocol, patchedProtocol), provideService(McpServerClientMiddleware, clientMiddleware), provide$1(handlers));
|
|
@@ -46647,7 +46747,7 @@ const toolJsonSchema = (schema, strict) => {
|
|
|
46647
46747
|
};
|
|
46648
46748
|
};
|
|
46649
46749
|
const makeUriMatcher = () => {
|
|
46650
|
-
const router = make$
|
|
46750
|
+
const router = make$91({
|
|
46651
46751
|
ignoreTrailingSlash: true,
|
|
46652
46752
|
ignoreDuplicateSlashes: true,
|
|
46653
46753
|
caseSensitive: true
|
|
@@ -49201,30 +49301,34 @@ const make$15 = gen(function* () {
|
|
|
49201
49301
|
code: "orchestration_error",
|
|
49202
49302
|
message: "The linked environment answered in an unexpected shape."
|
|
49203
49303
|
})));
|
|
49204
|
-
if (body.error !== void 0
|
|
49304
|
+
if (body.error !== void 0) return fail$4(new OrchestratorMcpFailure({
|
|
49205
49305
|
code: "invalid_request",
|
|
49206
|
-
message: body.error
|
|
49306
|
+
message: body.error.message
|
|
49307
|
+
}));
|
|
49308
|
+
if (body.result === void 0) return yield* new OrchestratorMcpFailure({
|
|
49309
|
+
code: "invalid_request",
|
|
49310
|
+
message: "The linked environment returned no result."
|
|
49207
49311
|
});
|
|
49208
49312
|
const text = body.result.content.map((part) => part.text ?? "").join("");
|
|
49209
49313
|
if (body.result.isError === true) {
|
|
49210
49314
|
const refused = decodeFailure(text);
|
|
49211
|
-
return
|
|
49315
|
+
return fail$4(refused._tag === "Some" ? new OrchestratorMcpFailure({
|
|
49212
49316
|
code: refused.value.code,
|
|
49213
49317
|
message: refused.value.message
|
|
49214
49318
|
}) : new OrchestratorMcpFailure({
|
|
49215
49319
|
code: "orchestration_error",
|
|
49216
49320
|
message: text || "The linked environment refused the call."
|
|
49217
|
-
});
|
|
49321
|
+
}));
|
|
49218
49322
|
}
|
|
49219
49323
|
const success = fromJsonString(input.success);
|
|
49220
|
-
return yield* decodeEffect(success)(text).pipe(mapError(() => new OrchestratorMcpFailure({
|
|
49324
|
+
return yield* decodeEffect(success)(text).pipe(map(succeed$4), mapError(() => new OrchestratorMcpFailure({
|
|
49221
49325
|
code: "orchestration_error",
|
|
49222
49326
|
message: "The linked environment's answer did not match this version. Update both environments."
|
|
49223
49327
|
})));
|
|
49224
49328
|
}, (effect, input) => effect.pipe(tapError((error) => links.recordOutcome(input.environmentId, { error: error.message })), tap(() => links.recordOutcome(input.environmentId, { error: null })), catchTags({ HttpClientError: () => fail$1(new OrchestratorMcpFailure({
|
|
49225
49329
|
code: "orchestration_error",
|
|
49226
49330
|
message: "The linked environment stopped answering."
|
|
49227
|
-
})) })));
|
|
49331
|
+
})) }), flatMap(fromResult)));
|
|
49228
49332
|
return PeerMcpClient.of({ call });
|
|
49229
49333
|
});
|
|
49230
49334
|
const layer$38 = effect(PeerMcpClient, make$15);
|
|
@@ -50180,7 +50284,7 @@ const make$12 = gen(function* () {
|
|
|
50180
50284
|
cause
|
|
50181
50285
|
})), as(file));
|
|
50182
50286
|
const download = (provider, url, file) => gen(function* () {
|
|
50183
|
-
const response = yield* execute(get$
|
|
50287
|
+
const response = yield* execute(get$4(url));
|
|
50184
50288
|
if (!isOk(response)) return yield* new Asset3dDownloadError({
|
|
50185
50289
|
provider,
|
|
50186
50290
|
status: response.status
|
|
@@ -50198,7 +50302,7 @@ const make$12 = gen(function* () {
|
|
|
50198
50302
|
return writeBytes(file, new TextEncoder().encode(`${JSON.stringify(sidecar, null, 2)}\n`));
|
|
50199
50303
|
};
|
|
50200
50304
|
const searchPolyHaven = (query, kind, limit) => gen(function* () {
|
|
50201
|
-
const found = yield* json("poly_haven", get$
|
|
50305
|
+
const found = yield* json("poly_haven", get$4(`${POLY_HAVEN}/search`).pipe(setUrlParams({
|
|
50202
50306
|
q: query,
|
|
50203
50307
|
t: kind === "hdri" ? "hdris" : "models",
|
|
50204
50308
|
limit: String(limit)
|
|
@@ -50207,7 +50311,7 @@ const make$12 = gen(function* () {
|
|
|
50207
50311
|
const id = text$1(hit, "slug");
|
|
50208
50312
|
return id === void 0 ? [] : [id];
|
|
50209
50313
|
}).slice(0, limit);
|
|
50210
|
-
return yield* forEach(slugs, (id) => json("poly_haven", get$
|
|
50314
|
+
return yield* forEach(slugs, (id) => json("poly_haven", get$4(`${POLY_HAVEN}/info/${encodeURIComponent(id)}`)).pipe(map((info) => {
|
|
50211
50315
|
const author = Object.keys(record(record(info).authors)).join(", ");
|
|
50212
50316
|
const thumbnailUrl = text$1(info, "thumbnail_url");
|
|
50213
50317
|
return {
|
|
@@ -50241,7 +50345,7 @@ const make$12 = gen(function* () {
|
|
|
50241
50345
|
pageUrl: `https://poly.pizza/m/${id}`
|
|
50242
50346
|
};
|
|
50243
50347
|
};
|
|
50244
|
-
const searchPolyPizza = (key, query, limit, animated) => json("poly_pizza", get$
|
|
50348
|
+
const searchPolyPizza = (key, query, limit, animated) => json("poly_pizza", get$4(`${POLY_PIZZA}/search/${encodeURIComponent(query)}`).pipe(setHeader$1("x-auth-token", value$1(key)), setUrlParams({
|
|
50245
50349
|
limit: String(Math.min(limit, 32)),
|
|
50246
50350
|
...animated ? { animated: "true" } : {}
|
|
50247
50351
|
}))).pipe(map((data) => {
|
|
@@ -50251,7 +50355,7 @@ const make$12 = gen(function* () {
|
|
|
50251
50355
|
return hit === void 0 ? [] : [hit];
|
|
50252
50356
|
});
|
|
50253
50357
|
}));
|
|
50254
|
-
const searchKhronos = (query, limit, animated) => json("khronos", get$
|
|
50358
|
+
const searchKhronos = (query, limit, animated) => json("khronos", get$4(`${KHRONOS}/model-index.json`)).pipe(map((index) => {
|
|
50255
50359
|
const words = query.toLowerCase().split(/\s+/).filter((word) => word.length > 1);
|
|
50256
50360
|
return (Array.isArray(index) ? index : []).flatMap((entry) => {
|
|
50257
50361
|
const name = text$1(entry, "name");
|
|
@@ -50318,11 +50422,11 @@ const make$12 = gen(function* () {
|
|
|
50318
50422
|
id
|
|
50319
50423
|
});
|
|
50320
50424
|
const quoted = encodeURIComponent(id);
|
|
50321
|
-
const info = yield* json("poly_haven", get$
|
|
50425
|
+
const info = yield* json("poly_haven", get$4(`${POLY_HAVEN}/info/${quoted}`)).pipe(catchTags({ Asset3dProviderError: (error) => error.status === 404 ? fail$1(new Asset3dNotFoundError({
|
|
50322
50426
|
source: "poly_haven",
|
|
50323
50427
|
id
|
|
50324
50428
|
})) : fail$1(error) }));
|
|
50325
|
-
const files = record(yield* json("poly_haven", get$
|
|
50429
|
+
const files = record(yield* json("poly_haven", get$4(`${POLY_HAVEN}/files/${quoted}`)));
|
|
50326
50430
|
const author = Object.keys(record(record(info).authors)).join(", ") || "Poly Haven";
|
|
50327
50431
|
const title = text$1(info, "name") ?? id;
|
|
50328
50432
|
const sidecar = {
|
|
@@ -50370,7 +50474,7 @@ const make$12 = gen(function* () {
|
|
|
50370
50474
|
});
|
|
50371
50475
|
const fetchPolyPizza = (id, folder, threadId, ref) => gen(function* () {
|
|
50372
50476
|
const key = yield* providerKey("poly_pizza", threadId, ref);
|
|
50373
|
-
const model = yield* json("poly_pizza", get$
|
|
50477
|
+
const model = yield* json("poly_pizza", get$4(`${POLY_PIZZA}/model/${encodeURIComponent(id)}`).pipe(setHeader$1("x-auth-token", value$1(key)))).pipe(catchTags({ Asset3dProviderError: (error) => error.status === 404 ? fail$1(new Asset3dNotFoundError({
|
|
50374
50478
|
source: "poly_pizza",
|
|
50375
50479
|
id
|
|
50376
50480
|
})) : fail$1(error) }));
|
|
@@ -50401,7 +50505,7 @@ const make$12 = gen(function* () {
|
|
|
50401
50505
|
source: "khronos",
|
|
50402
50506
|
id
|
|
50403
50507
|
});
|
|
50404
|
-
const meta = yield* json("khronos", get$
|
|
50508
|
+
const meta = yield* json("khronos", get$4(`${KHRONOS}/${id}/metadata.json`)).pipe(catchTags({ Asset3dProviderError: (error) => error.status === 404 ? fail$1(new Asset3dNotFoundError({
|
|
50405
50509
|
source: "khronos",
|
|
50406
50510
|
id
|
|
50407
50511
|
})) : fail$1(error) }));
|
|
@@ -50572,7 +50676,7 @@ const make$12 = gen(function* () {
|
|
|
50572
50676
|
estimatedCost: "Tripo per-task price not confirmed; failed tasks are not charged."
|
|
50573
50677
|
};
|
|
50574
50678
|
});
|
|
50575
|
-
const pollOnce = (job, key) => job.provider === "meshy" ? json("meshy", get$
|
|
50679
|
+
const pollOnce = (job, key) => job.provider === "meshy" ? json("meshy", get$4(`${MESHY}/${MESHY_PATHS[job.task]}/${job.taskId}`).pipe(bearerToken(key))).pipe(map((task) => {
|
|
50576
50680
|
const result = record(task).result;
|
|
50577
50681
|
const progress = record(task).progress;
|
|
50578
50682
|
return {
|
|
@@ -50581,7 +50685,7 @@ const make$12 = gen(function* () {
|
|
|
50581
50685
|
url: text$1(record(task).model_urls, "glb") ?? text$1(result, "rigged_character_glb_url", "animation_glb_url"),
|
|
50582
50686
|
error: text$1(record(task).task_error, "message") ?? (MESHY_STATUS[text$1(task, "status") ?? ""] === void 0 ? "Meshy reported an unknown job status." : void 0)
|
|
50583
50687
|
};
|
|
50584
|
-
})) : json("tripo", get$
|
|
50688
|
+
})) : json("tripo", get$4(`${TRIPO}/tasks/${job.taskId}`).pipe(bearerToken(key))).pipe(map((body) => {
|
|
50585
50689
|
const task = record(record(body).data);
|
|
50586
50690
|
return {
|
|
50587
50691
|
status: TRIPO_STATUS[text$1(task, "status") ?? ""] ?? "failed",
|
|
@@ -51054,9 +51158,11 @@ const launchBrowser = fnUntraced(function* (input) {
|
|
|
51054
51158
|
return void_;
|
|
51055
51159
|
}
|
|
51056
51160
|
const text = consoleMessage.text.replaceAll(PAGE_URL, PAGE_NAME);
|
|
51161
|
+
const last = text.charCodeAt(499);
|
|
51162
|
+
const end = last >= 55296 && last <= 56319 ? 499 : MAX_CONSOLE_TEXT_CHARS;
|
|
51057
51163
|
page.consoleMessages.push({
|
|
51058
51164
|
level: consoleMessage.level,
|
|
51059
|
-
text: text.length > MAX_CONSOLE_TEXT_CHARS ? `${text.slice(0,
|
|
51165
|
+
text: text.length > MAX_CONSOLE_TEXT_CHARS ? `${text.slice(0, end)}…` : text
|
|
51060
51166
|
});
|
|
51061
51167
|
return void_;
|
|
51062
51168
|
};
|
|
@@ -51468,9 +51574,9 @@ const make$11 = gen(function* () {
|
|
|
51468
51574
|
const config = yield* ServerConfig;
|
|
51469
51575
|
const previewBrowser = yield* PreviewBrowser;
|
|
51470
51576
|
const services = yield* context();
|
|
51471
|
-
const browsers = yield* make$
|
|
51577
|
+
const browsers = yield* make$99(MAX_CONCURRENT_BROWSERS);
|
|
51472
51578
|
const noSandbox = sandboxDisabled(yield* Environment);
|
|
51473
|
-
const setupCommand = yield* resolveRootCliCommand(SETUP_SUBCOMMAND);
|
|
51579
|
+
const setupCommand = yield* resolveRootCliCommand(SETUP_SUBCOMMAND, ["--base-dir", config.baseDir]);
|
|
51474
51580
|
/** Runs one browser launch; a host that cannot start it gets setup steps instead. */
|
|
51475
51581
|
const launching = (executable, run) => browsers.withPermits(1)(run(noSandbox).pipe(catchTags({ HtmlRenderBrowserError: (error) => error.output === void 0 ? fail$1(error) : diagnoseLaunchFailure({
|
|
51476
51582
|
executable,
|
|
@@ -53086,7 +53192,8 @@ const make$9 = gen(function* () {
|
|
|
53086
53192
|
const { parent, limits } = yield* loadCaller(scope);
|
|
53087
53193
|
const providers = yield* loadProviders;
|
|
53088
53194
|
const orchestrationCapableInstanceIds = yield* loadOrchestrationCapableInstanceIds();
|
|
53089
|
-
const
|
|
53195
|
+
const settings = yield* serverSettings.getSettings.pipe(mapError(() => failure$2("orchestration_error", "Unable to read server settings.")));
|
|
53196
|
+
const modelPreferences = settings.providerModelPreferences ?? {};
|
|
53090
53197
|
return {
|
|
53091
53198
|
parentThreadId: parent?.thread.id ?? null,
|
|
53092
53199
|
inheritedProviderInstanceId: parent?.thread.modelSelection.instanceId ?? null,
|
|
@@ -53094,7 +53201,10 @@ const make$9 = gen(function* () {
|
|
|
53094
53201
|
runtimeMode: limits.runtimeMode,
|
|
53095
53202
|
interactionMode: limits.interactionMode,
|
|
53096
53203
|
providers: providers.map((provider) => {
|
|
53097
|
-
const constraints = providerConstraints(
|
|
53204
|
+
const constraints = providerConstraints(parent === void 0 || resolveProjectProviderInstanceEnabled(settings, parent.thread.projectId, provider.instanceId) ? provider : {
|
|
53205
|
+
...provider,
|
|
53206
|
+
enabled: false
|
|
53207
|
+
}, orchestrationCapableInstanceIds.has(provider.instanceId));
|
|
53098
53208
|
return {
|
|
53099
53209
|
providerInstanceId: provider.instanceId,
|
|
53100
53210
|
driverKind: provider.driver,
|
|
@@ -53350,6 +53460,7 @@ const make$9 = gen(function* () {
|
|
|
53350
53460
|
interactionMode,
|
|
53351
53461
|
branch: parent.thread.branch,
|
|
53352
53462
|
worktreePath: parent.thread.worktreePath,
|
|
53463
|
+
launchedByThreadId: parent.thread.id,
|
|
53353
53464
|
...parent.thread.linkOrigin === void 0 ? {} : { linkOrigin: parent.thread.linkOrigin }
|
|
53354
53465
|
}).pipe(mapError((error) => failure$2("orchestration_error", `Unable to create thread ${index + 1}: ${errorMessage$2(error)}`)));
|
|
53355
53466
|
if (request.prompt !== void 0) yield* threadManagement.dispatch({
|
|
@@ -53966,6 +54077,7 @@ const layer$25 = toLayer(ProjectToolkit, {
|
|
|
53966
54077
|
} },
|
|
53967
54078
|
createdBy: "agent",
|
|
53968
54079
|
creationSource: "mcp",
|
|
54080
|
+
...caller === void 0 ? {} : { launchedByThreadId: caller.id },
|
|
53969
54081
|
...linkOrigin === void 0 ? {} : { linkOrigin },
|
|
53970
54082
|
...input.delegatedFrom === void 0 ? {} : { delegatedFrom: input.delegatedFrom }
|
|
53971
54083
|
}).pipe(mapError((error) => {
|
|
@@ -55347,6 +55459,7 @@ const asOperationFailed = (prefix) => mapError((error) => failure("operation_fai
|
|
|
55347
55459
|
const make$7 = gen(function* () {
|
|
55348
55460
|
const crypto = yield* Crypto;
|
|
55349
55461
|
const path = yield* Path;
|
|
55462
|
+
const fileSystem = yield* FileSystem;
|
|
55350
55463
|
const review = yield* ReviewService;
|
|
55351
55464
|
const threadManagement = yield* ThreadManagementService;
|
|
55352
55465
|
const projects = yield* ProjectService;
|
|
@@ -55395,7 +55508,7 @@ const make$7 = gen(function* () {
|
|
|
55395
55508
|
onNone: () => fail$1(failure("project_not_found", `Project '${projectId}' was not found for thread '${scope.thread.threadId}'.`)),
|
|
55396
55509
|
onSome: succeed
|
|
55397
55510
|
})));
|
|
55398
|
-
const readDefaultStartFromOrigin = serverSettings.getSettings.pipe(map((settings) => settings.newWorktreesStartFromOrigin), asOperationFailed("Unable to read server settings"));
|
|
55511
|
+
const readDefaultStartFromOrigin = (projectId) => serverSettings.getSettings.pipe(map((settings) => resolveProjectSettings(settings, projectId).settings.newWorktreesStartFromOrigin), asOperationFailed("Unable to read server settings"));
|
|
55399
55512
|
const handoffIds = (scope) => crypto.randomUUIDv4().pipe(map((uuid) => {
|
|
55400
55513
|
const part = (kind, operation) => [
|
|
55401
55514
|
kind,
|
|
@@ -55433,7 +55546,7 @@ const make$7 = gen(function* () {
|
|
|
55433
55546
|
if (localStatus.refName === null) return yield* failure("invalid_request", "Could not determine the current branch of the project workspace (detached HEAD?). Pass baseRef explicitly.");
|
|
55434
55547
|
baseRef = localStatus.refName;
|
|
55435
55548
|
}
|
|
55436
|
-
const startFromOrigin = input.startFromOrigin ?? (yield* readDefaultStartFromOrigin);
|
|
55549
|
+
const startFromOrigin = input.startFromOrigin ?? (yield* readDefaultStartFromOrigin(project.id));
|
|
55437
55550
|
let worktreeBaseRef = baseRef;
|
|
55438
55551
|
if (startFromOrigin) {
|
|
55439
55552
|
yield* gitWorkflow.fetchRemote({
|
|
@@ -55546,7 +55659,7 @@ const make$7 = gen(function* () {
|
|
|
55546
55659
|
const scope = yield* requireThreadScope(callerScope);
|
|
55547
55660
|
const projection = yield* loadThread(scope);
|
|
55548
55661
|
const project = yield* loadProject(scope, projection.thread.projectId);
|
|
55549
|
-
const defaultStartFromOrigin = yield* readDefaultStartFromOrigin;
|
|
55662
|
+
const defaultStartFromOrigin = yield* readDefaultStartFromOrigin(project.id);
|
|
55550
55663
|
return {
|
|
55551
55664
|
attached: projection.thread.worktreePath !== null,
|
|
55552
55665
|
worktreePath: projection.thread.worktreePath,
|
|
@@ -55555,10 +55668,18 @@ const make$7 = gen(function* () {
|
|
|
55555
55668
|
defaultStartFromOrigin
|
|
55556
55669
|
};
|
|
55557
55670
|
});
|
|
55671
|
+
const listRefs = fn("WorktreeMcpService.listRefs")(function* ({ worktreePath, workspaceRoot, ...refs }) {
|
|
55672
|
+
const cwd = worktreePath !== null && (yield* fileSystem.exists(worktreePath)) ? worktreePath : workspaceRoot;
|
|
55673
|
+
return yield* gitWorkflow.listRefs({
|
|
55674
|
+
...refs,
|
|
55675
|
+
cwd
|
|
55676
|
+
});
|
|
55677
|
+
});
|
|
55558
55678
|
return WorktreeMcpService.of({
|
|
55559
55679
|
getThreadDiff,
|
|
55560
55680
|
handoff,
|
|
55561
|
-
status
|
|
55681
|
+
status,
|
|
55682
|
+
listRefs
|
|
55562
55683
|
});
|
|
55563
55684
|
});
|
|
55564
55685
|
const layer$20 = effect(WorktreeMcpService, make$7);
|
|
@@ -55601,7 +55722,7 @@ const WorktreeToolkit = make$21(make$22("p4_worktree_handoff", {
|
|
|
55601
55722
|
McpInvocationContext,
|
|
55602
55723
|
ThreadManagementService,
|
|
55603
55724
|
ProjectService,
|
|
55604
|
-
|
|
55725
|
+
WorktreeMcpService
|
|
55605
55726
|
]
|
|
55606
55727
|
}).annotate(Readonly, true).annotate(Destructive, false), make$22("p4_thread_diff", {
|
|
55607
55728
|
description: "Show what a thread changed in its checkout (omit threadId for this thread), as the diff panel does. Returns working-tree (uncommitted changes vs HEAD) and branch-range (changes since the merge base with baseRef, or the detected base branch), each with stats for up to 500 files and a unified diff cut to maxCharacters (default 20,000), with truncated set when cut. Pass source to return one.",
|
|
@@ -55643,9 +55764,10 @@ const layer$19 = toLayer(WorktreeToolkit, {
|
|
|
55643
55764
|
code: "invalid_request",
|
|
55644
55765
|
message: "The project was not found."
|
|
55645
55766
|
});
|
|
55646
|
-
return yield* (yield*
|
|
55767
|
+
return yield* (yield* WorktreeMcpService).listRefs({
|
|
55647
55768
|
...refs,
|
|
55648
|
-
|
|
55769
|
+
worktreePath: thread.worktreePath,
|
|
55770
|
+
workspaceRoot: project.value.workspaceRoot
|
|
55649
55771
|
}).pipe(mapError(unavailable));
|
|
55650
55772
|
})),
|
|
55651
55773
|
p4_thread_diff: reads((input) => gen(function* () {
|
|
@@ -56809,7 +56931,11 @@ const MAX_SNAPSHOT_LOG_TEXT_CHARS = 500;
|
|
|
56809
56931
|
const MAX_SNAPSHOT_IDENTIFIER_CHARS = 2048;
|
|
56810
56932
|
const encodeJsonText = encodeSync(fromJsonString(Unknown));
|
|
56811
56933
|
const utf8Length = (text) => Buffer.byteLength(text, "utf8");
|
|
56812
|
-
const cutText = (text, max) =>
|
|
56934
|
+
const cutText = (text, max) => {
|
|
56935
|
+
if (text.length <= max) return text;
|
|
56936
|
+
const last = text.charCodeAt(max - 1);
|
|
56937
|
+
return `${text.slice(0, last >= 55296 && last <= 56319 ? max - 1 : max)}…`;
|
|
56938
|
+
};
|
|
56813
56939
|
/** Shortens every string field of a log entry; other fields pass through. */
|
|
56814
56940
|
const cutEntryStrings = (entry) => typeof entry === "object" && entry !== null ? Object.fromEntries(Object.entries(entry).map(([key, value]) => [key, typeof value === "string" ? cutText(value, MAX_SNAPSHOT_LOG_TEXT_CHARS) : value])) : entry;
|
|
56815
56941
|
const hasLongString = (entry, max) => typeof entry === "object" && entry !== null && Object.values(entry).some((value) => typeof value === "string" && value.length > max);
|
|
@@ -57391,7 +57517,7 @@ const pumpFrames = fnUntraced(function* (source, sink) {
|
|
|
57391
57517
|
const proxyHttp = fn("DeviceHubProxy.proxyHttp")(function* (request, upstreamUrl, extraHeaders = {}) {
|
|
57392
57518
|
const httpClient = withScope(yield* HttpClient);
|
|
57393
57519
|
const method = request.method;
|
|
57394
|
-
const upstreamRequest = make$
|
|
57520
|
+
const upstreamRequest = make$92(method)(upstreamUrl).pipe(setHeaders$1({
|
|
57395
57521
|
...forwardHeaders(request, new URL(upstreamUrl).origin),
|
|
57396
57522
|
...extraHeaders
|
|
57397
57523
|
}), method === "GET" || method === "HEAD" ? (self) => self : bodyStream(request.stream, { contentType: request.headers["content-type"] }));
|
|
@@ -57627,7 +57753,7 @@ const layer$13 = effect(CurrentRedactedNames, map(CurrentRedactedNames, (names)
|
|
|
57627
57753
|
"expo-session"
|
|
57628
57754
|
]));
|
|
57629
57755
|
// src/serverLogger.ts
|
|
57630
|
-
const redactingCredentials = (logger) => make$
|
|
57756
|
+
const redactingCredentials = (logger) => make$103((options) => logger.log({
|
|
57631
57757
|
...options,
|
|
57632
57758
|
cause: redactCauseCredentials(options.cause)
|
|
57633
57759
|
}));
|
|
@@ -57745,7 +57871,7 @@ const layer$11 = unwrap(gen(function* () {
|
|
|
57745
57871
|
durationMs: stats.durationMs
|
|
57746
57872
|
})
|
|
57747
57873
|
});
|
|
57748
|
-
const delegate = config.otlpTracesUrl === void 0 ? void 0 : yield* make$
|
|
57874
|
+
const delegate = config.otlpTracesUrl === void 0 ? void 0 : yield* make$104({
|
|
57749
57875
|
url: config.otlpTracesUrl,
|
|
57750
57876
|
exportInterval: `${traces.exportIntervalMs} millis`,
|
|
57751
57877
|
headers: traces.headers,
|
|
@@ -58584,7 +58710,7 @@ const make$4 = gen(function* () {
|
|
|
58584
58710
|
}).pipe(timeout("10 seconds"), catch_(internalError("update-webhook-settings")));
|
|
58585
58711
|
});
|
|
58586
58712
|
const savePreference = (name, value) => secrets.set(name, stringToBytes(String(value))).pipe(catch_(internalError("persist-preferences")));
|
|
58587
|
-
const preferencesLock = yield* make$
|
|
58713
|
+
const preferencesLock = yield* make$99(1);
|
|
58588
58714
|
const savePreferences = fn("CloudPreferences.update")(function* (input) {
|
|
58589
58715
|
const readCurrent = (name) => secrets.get(name).pipe(catch_(internalError("read-preferences")));
|
|
58590
58716
|
const previousActivity = yield* readCurrent(PUBLISH_AGENT_ACTIVITY_SECRET);
|
|
@@ -59483,7 +59609,7 @@ function idleCompactionWindow({ thread, runs, messages, providerThreads, provide
|
|
|
59483
59609
|
if (thread.deletedAt !== null || thread.archivedAt !== null) return null;
|
|
59484
59610
|
if (thread.snoozedUntil != null && toEpochMillis(thread.snoozedUntil) > nowMs) return null;
|
|
59485
59611
|
if (thread.lineage.relationshipToParent === "subagent") return null;
|
|
59486
|
-
const latestRun = runs.reduce((latest, run) => latest === null || run.ordinal > latest.ordinal ? run : latest, null);
|
|
59612
|
+
const latestRun = runs.filter((run) => run.status !== "cancelled" || run.startedAt !== null).reduce((latest, run) => latest === null || run.ordinal > latest.ordinal ? run : latest, null);
|
|
59487
59613
|
if (latestRun?.status !== "completed" || latestRun.completedAt === null) return null;
|
|
59488
59614
|
const message = messages.find((candidate) => candidate.id === latestRun.userMessageId);
|
|
59489
59615
|
if (message === void 0 || message.text.trim().toLowerCase() === "/compact") return null;
|
|
@@ -59554,7 +59680,7 @@ const make$1 = gen(function* () {
|
|
|
59554
59680
|
contextTransferStatuses: ["pending"]
|
|
59555
59681
|
});
|
|
59556
59682
|
if (resolveIdleCompaction(current, records.thread.providerInstanceId) !== "beforeCacheExpires" || !resolveProjectProviderInstanceEnabled(current, records.thread.projectId, records.thread.providerInstanceId)) return;
|
|
59557
|
-
const latestRun = records.runs.reduce((latest, run) => latest === void 0 || run.ordinal > latest.ordinal ? run : latest, void 0);
|
|
59683
|
+
const latestRun = records.runs.filter((run) => run.status !== "cancelled" || run.startedAt !== null).reduce((latest, run) => latest === void 0 || run.ordinal > latest.ordinal ? run : latest, void 0);
|
|
59558
59684
|
if (latestRun?.status === "completed" && latestRun.id !== runId) {
|
|
59559
59685
|
runId = latestRun.id;
|
|
59560
59686
|
continue;
|
|
@@ -59584,7 +59710,7 @@ const make$1 = gen(function* () {
|
|
|
59584
59710
|
cause
|
|
59585
59711
|
}))));
|
|
59586
59712
|
return { start: fn("IdleCompactionService.start")(function* () {
|
|
59587
|
-
const timers = yield* make$
|
|
59713
|
+
const timers = yield* make$98();
|
|
59588
59714
|
yield* forkParked(runForEach(orchestrator.streamDomainEvents, (event) => event.type === "run.updated" && event.payload.status === "completed" ? run$1(timers, event.threadId, compactWhenDue(event.threadId, event.payload.id)) : void_));
|
|
59589
59715
|
}) };
|
|
59590
59716
|
});
|
|
@@ -59637,14 +59763,7 @@ const make = gen(function* () {
|
|
|
59637
59763
|
* Finished runs and checkpoints queue one of these each. A sweep over all
|
|
59638
59764
|
* threads reads every active thread.
|
|
59639
59765
|
*/
|
|
59640
|
-
const readThreadSnapshot = ({ threadId }) => threadId === null ?
|
|
59641
|
-
const snapshotSequence = yield* orchestrator.getThreadEventSequence(threadId);
|
|
59642
|
-
const thread = yield* orchestrator.getThreadShell(threadId);
|
|
59643
|
-
return {
|
|
59644
|
-
snapshotSequence,
|
|
59645
|
-
threads: thread === null ? [] : [thread]
|
|
59646
|
-
};
|
|
59647
|
-
});
|
|
59766
|
+
const readThreadSnapshot = ({ threadId }) => orchestrator.getPullRequestSnapshot(threadId === null ? {} : { threadId }).pipe(readOnly);
|
|
59648
59767
|
const synchronize = fn("ThreadPullRequestServiceV2.synchronize")(function* (request) {
|
|
59649
59768
|
const [threadSnapshot, projectShells] = yield* all([readThreadSnapshot(request), projectStore.listShells()]);
|
|
59650
59769
|
const snapshotThreads = request.threadId === null ? threadSnapshot.threads.filter((thread) => !isProviderNativeSubagentThread(thread)) : threadSnapshot.threads;
|
|
@@ -59955,7 +60074,7 @@ const layerVcsDriverRegistry = layer$99.pipe(provide(layer$100));
|
|
|
59955
60074
|
const layerSourceControlProviderRegistry = layer$96.pipe(provideMerge(layer$97), provideMerge(layer$98), provideMerge(layerVcsDriverRegistry));
|
|
59956
60075
|
const layerRepositoryIdentityResolver = effect(RepositoryIdentityResolver, gen(function* () {
|
|
59957
60076
|
const registry = yield* SourceControlProviderRegistry;
|
|
59958
|
-
return yield* make$
|
|
60077
|
+
return yield* make$88({ refine: fn(function* (identity) {
|
|
59959
60078
|
for (const kind of BUILT_IN_SOURCE_CONTROL_DRIVERS.map((driver) => driver.kind)) {
|
|
59960
60079
|
const provider = yield* registry.get(kind);
|
|
59961
60080
|
if (provider.refineRepositoryIdentity === void 0) continue;
|
|
@@ -60091,7 +60210,7 @@ const layerMakeServer = unwrap(gen(function* () {
|
|
|
60091
60210
|
if (typeof address === "string" || !("port" in address)) return;
|
|
60092
60211
|
const localOrigin = `http://127.0.0.1:${address.port}`;
|
|
60093
60212
|
const endpointRuntime = yield* CloudManagedEndpointRuntime;
|
|
60094
|
-
const recoveryLock = yield* make$
|
|
60213
|
+
const recoveryLock = yield* make$99(1);
|
|
60095
60214
|
let lastRecoveryAtMillis = 0;
|
|
60096
60215
|
const recoverManagedTunnel = (config) => recoveryLock.withPermits(1)(gen(function* () {
|
|
60097
60216
|
const elapsed = (yield* currentTimeMillis) - lastRecoveryAtMillis;
|
|
@@ -60150,4 +60269,4 @@ const layerMakeServer = unwrap(gen(function* () {
|
|
|
60150
60269
|
const runServer = launch(layerMakeServer);
|
|
60151
60270
|
export { runServer };
|
|
60152
60271
|
|
|
60153
|
-
//# sourceMappingURL=server-
|
|
60272
|
+
//# sourceMappingURL=server-DuD96ZSr.mjs.map
|