@p4code/cli 0.9.24 → 0.9.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcpMcpStdioBridge-BNuxv1nx.mjs → AcpMcpStdioBridge-DLEEBpNR.mjs} +4 -4
- package/dist/AcpMcpStdioBridge-Dozbm_3J.mjs +3 -0
- package/dist/{Effect-BrI3bavz.mjs → Effect-DwQPN8rO.mjs} +35 -2
- package/dist/{Schema-06GeVid5.mjs → Schema-CdYZrGX6.mjs} +24 -3
- package/dist/{Stream-DKSvHopl.mjs → Stream-F-Z4HJeD.mjs} +2 -2
- package/dist/{TraceDiagnostics-Dk5M3WAT.mjs → TraceDiagnostics-D1Qz3qce.mjs} +18 -7
- package/dist/bin.mjs +2 -2
- package/dist/{binCli-CBzw8eZx.mjs → binCli-CcEaWLAR.mjs} +11 -11
- package/dist/claude-history-worker.mjs +1 -1
- package/dist/{claudeHistoryWorker-BZBBGtSw.mjs → claudeHistoryWorker-Bf24F_k8.mjs} +1 -1
- package/dist/{claudeHistoryWorker-DlhW7K2f.mjs → claudeHistoryWorker-DOjYf4xB.mjs} +4 -4
- package/dist/client/.vite/manifest.json +2259 -2257
- package/dist/client/assets/{2NI2N5EU-Dz1H18lO.js → 2NI2N5EU--LXjbTE-.js} +2 -2
- package/dist/client/assets/{4UO7MD6I-DxZW-JIQ.js → 4UO7MD6I-D_jr6_IV.js} +2 -2
- package/dist/client/assets/{5B3SVYGG-Cl2owg_V.js → 5B3SVYGG-tThUTA_S.js} +2 -2
- package/dist/client/assets/{5GK6JWQ2-A0G_mE3E.js → 5GK6JWQ2-BCuuAhKJ.js} +2 -2
- package/dist/client/assets/{5N7A7DKN-Bd00cghV.js → 5N7A7DKN-rdPMRoZL.js} +2 -2
- package/dist/client/assets/{5OC2THR4-ytZLjDMp.js → 5OC2THR4-gvpm3IL0.js} +2 -2
- package/dist/client/assets/{5S6HY5KT-XbqbgHxv.js → 5S6HY5KT-CWanNmdR.js} +2 -2
- package/dist/client/assets/{6IMQ5BUJ-BtndAY2_.js → 6IMQ5BUJ-1sguTKZ9.js} +2 -2
- package/dist/client/assets/{6OLKWJ4F-DNXmh00R.js → 6OLKWJ4F-9loy41nw.js} +2 -2
- package/dist/client/assets/{74OO7NKP-DbprmlDc.js → 74OO7NKP-ukQR6jKi.js} +2 -2
- package/dist/client/assets/{75O6YZUN-DZ_5zRwt.js → 75O6YZUN-BjBd5LQ0.js} +2 -2
- package/dist/client/assets/{77XECAW3-CgSkQSMJ.js → 77XECAW3-Ccw2Y7VD.js} +2 -2
- package/dist/client/assets/{ABYRPUBD-ucE-F8EO.js → ABYRPUBD-CvqVJLPf.js} +2 -2
- package/dist/client/assets/AlertDialogRoot-CimqRgXh.js +2 -0
- package/dist/client/assets/{AnimatedHeight-B2j_NXft.js → AnimatedHeight-Dwarin_V.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-DqI-KrrY.js → AuthSurfaceShell-BvGaTutU.js} +2 -2
- package/dist/client/assets/{BB2UYUI2-CXw0vAgW.js → BB2UYUI2-Drnmium_.js} +2 -2
- package/dist/client/assets/{BUM34MOA-DBHGisGU.js → BUM34MOA-AkPmeijf.js} +2 -2
- package/dist/client/assets/{CEQABKGZ-MGn88wbo.js → CEQABKGZ-BNUlDSIK.js} +2 -2
- package/dist/client/assets/{CXAC5362-C1Fk1A6g.js → CXAC5362-Bmar3Iii.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-_JZfpkEi.js → ChatGptUsageButton-D6Iy8SVv.js} +2 -2
- package/dist/client/assets/ChatMarkdown-DHhJpg3q.js +49 -0
- package/dist/client/assets/{CheckboxIndicator-DFCs5GRD.js → CheckboxIndicator-DbA95VlZ.js} +2 -2
- package/dist/client/assets/{ClippedText-BIwvWMlV.js → ClippedText-UM8CaEu4.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-B8uhmM78.js → CodexSetupSection.logic-kKJPABQZ.js} +2 -2
- package/dist/client/assets/{CollapsiblePanel-CsWNZ7jo.js → CollapsiblePanel-C1iRr4kZ.js} +2 -2
- package/dist/client/assets/{ComboboxClear-Cv9NZFNr.js → ComboboxClear-DaifQLU5.js} +2 -2
- package/dist/client/assets/{ComboboxGroupLabel-BPe0M6wJ.js → ComboboxGroupLabel-C03JGZRD.js} +2 -2
- package/dist/client/assets/{CommandBlock-BJ2nHWe_.js → CommandBlock-DH_L_Tgo.js} +2 -2
- package/dist/client/assets/{CompositeRoot-RcqGhRAf.js → CompositeRoot-B1DTZCNU.js} +2 -2
- package/dist/client/assets/{ConnectAgentSurface-kcWh3f_f.js → ConnectAgentSurface-C5bZc2ZR.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-DIUevPBM.js → ConnectionStatusDot-CCTiSlHA.js} +2 -2
- package/dist/client/assets/{DRLTVNUE-CmpBRyx_.js → DRLTVNUE-BqWUfmRf.js} +2 -2
- package/dist/client/assets/{DYY6UVD2-rvY-xhxe.js → DYY6UVD2-CyRsghfa.js} +2 -2
- package/dist/client/assets/{DevicePanel-Bkrn90hU.js → DevicePanel-DocID7hH.js} +2 -2
- package/dist/client/assets/{DeviceSetup-BQvNWMm0.js → DeviceSetup-CX2OWVB9.js} +2 -2
- package/dist/client/assets/{DialogRoot-Dg58-QOq.js → DialogRoot-D64NsaiW.js} +2 -2
- package/dist/client/assets/{DialogTitle-CSaaIBpP.js → DialogTitle-CYefNdHm.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-eHSeIufV.js → DiffCommentAnnotation-ChKqFxt5.js} +2 -2
- package/dist/client/assets/{DiffFileTree-opfyNeFz.js → DiffFileTree-B6AgzOXX.js} +2 -2
- package/dist/client/assets/{DiffPanel-C4ySgbUg.js → DiffPanel-DKAHtq5x.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider-BwOTmWKP.js → DiffWorkerPoolProvider-CK3y5UA1.js} +3 -3
- package/dist/client/assets/{EmbeddedDesign-BW5Rcxmc.js → EmbeddedDesign-Bj-kkArq.js} +5 -5
- package/dist/client/assets/{EnvironmentMachineIcon-DM48TG2x.js → EnvironmentMachineIcon-CJ30kzSK.js} +2 -2
- package/dist/client/assets/{ExpandableText-CYFNBBpY.js → ExpandableText-CBPvhWvZ.js} +2 -2
- package/dist/client/assets/{FNOVOB4O-B8vuCGFt.js → FNOVOB4O-DYXYw-b1.js} +2 -2
- package/dist/client/assets/{FieldControl-DHSVFpKc.js → FieldControl-CkgERQaU.js} +2 -2
- package/dist/client/assets/{FileDiff-CZk9prBc.js → FileDiff-BLuBewdN.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-BcCGkQ__.js → FilePreviewPanel-DWNimHTU.js} +4 -4
- package/dist/client/assets/{FoldedSettingsSection-COBhgfnb.js → FoldedSettingsSection-C3cuD_W9.js} +2 -2
- package/dist/client/assets/{HDGCDEEZ-DRcTM9ws.js → HDGCDEEZ-7WPyPcLr.js} +2 -2
- package/dist/client/assets/{HSJLKHB7-Dh4X6CJ4.js → HSJLKHB7-t8_OkffK.js} +2 -2
- package/dist/client/assets/{Icons-DpgbzNj8.js → Icons-BUrn1Fzo.js} +2 -2
- package/dist/client/assets/Input-Gb8KV9DV.js +2 -0
- package/dist/client/assets/{IntervalSecondsField-D0j2uU5s.js → IntervalSecondsField-D9JXVV-s.js} +2 -2
- package/dist/client/assets/JZOYTAAL-BzA5Kg5m.js +1 -0
- package/dist/client/assets/{K3MD6TGW-uz2CK9vb.js → K3MD6TGW-DoqPvoaq.js} +2 -2
- package/dist/client/assets/{K7RP3OMA-uWbuKqQP.js → K7RP3OMA--ZFOkyEG.js} +2 -2
- package/dist/client/assets/KeybindingsSettings.logic-CMs7OPcH.js +2 -0
- package/dist/client/assets/{LHDIQX7Q-BaUgpa7I.js → LHDIQX7Q-hUqw2I9B.js} +2 -2
- package/dist/client/assets/{LUXOKEGN-C-Usmwyz.js → LUXOKEGN-Dvu_mp-q.js} +2 -2
- package/dist/client/assets/{LinkMachineSelect-CB99X8v3.js → LinkMachineSelect-SHXPDP_g.js} +2 -2
- package/dist/client/assets/MathTypeset-C02HYdjx.css +1 -0
- package/dist/client/assets/{MathTypeset-Dv2b-uiV.js → MathTypeset-TM-3r0WA.js} +2 -2
- package/dist/client/assets/{ModelLiveLayer-DIrV--mW.js → ModelLiveLayer-Bb-7OhJ9.js} +3 -3
- package/dist/client/assets/{N3JZAHOW-CLD7n6Za.js → N3JZAHOW-LjhhJ-00.js} +2 -2
- package/dist/client/assets/{NUIALGQ3-CVI_F8c-.js → NUIALGQ3-Dg1KXz02.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-CAoW0Xej.js → NoProjectsHero-D0OPZtzO.js} +2 -2
- package/dist/client/assets/{O65XPQGZ-g6xpsO0r.js → O65XPQGZ-BxaJR80d.js} +2 -2
- package/dist/client/assets/{O7XIQ6OM-CBkPdCIB.js → O7XIQ6OM-CCXPxMuU.js} +2 -2
- package/dist/client/assets/{OFQON5FD-DpM-bsDn.js → OFQON5FD-WUMBXQkX.js} +2 -2
- package/dist/client/assets/{P4ConnectAccountPages-CCjWOetO.js → P4ConnectAccountPages-BNK6s-RS.js} +2 -2
- package/dist/client/assets/{P4ConnectSidebarSignIn-CfEPRRB6.js → P4ConnectSidebarSignIn-CWW40SMl.js} +2 -2
- package/dist/client/assets/{PJQHF43J-Sp1j42CR.js → PJQHF43J-BrNjCaLl.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-CcdUv-ij.js → PanelLayoutControls-DiXjRWIw.js} +7 -7
- package/dist/client/assets/{PierreEntryIcon-vf9Z0_eJ.js → PierreEntryIcon-D29_Ylm_.js} +2 -2
- package/dist/client/assets/{PopoverHandle-s36xVlsK.js → PopoverHandle-BgggGdpn.js} +2 -2
- package/dist/client/assets/PreviewPanel-DutKwWE7.js +2 -0
- package/dist/client/assets/{ProjectDefaultsSettings-TlEARfjk.js → ProjectDefaultsSettings-DMfJN66D.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-Dd4p_a9n.js → ProjectFavicon-DFI1NI3D.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-D5UkwTkD.js → ProjectIconPickerDialog-BqGWzrTc.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-Aw_ZBtDB.js → ProjectMonogram-D4xxVtw8.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-Cw2WcQr1.js → ProviderAuthTerminal-CRSvI-Og.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-D73G0AKf.js +2 -0
- package/dist/client/assets/{ProviderSettingsForm-DaeugImp.js → ProviderSettingsForm-DchD8HSN.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-DdfQeIIl.js → PullRequestCodeTab-BdXdTg-d.js} +3 -3
- package/dist/client/assets/{RHNBAITX-DQfv99hf.js → RHNBAITX-PsYrngSs.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-Vvv9UVOM.js → ReadOnlySourcePreview-8jLKmc3M.js} +2 -2
- package/dist/client/assets/{RedactedSensitiveText-bQSbv34p.js → RedactedSensitiveText-DhV2Jdu8.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-4-dgp9K8.js → RenderErrorBoundary-56lc2IQ3.js} +3 -3
- package/dist/client/assets/{RightPanelResizeHandle-B6vIzqA0.js → RightPanelResizeHandle-ClzdYxWw.js} +2 -2
- package/dist/client/assets/{SLD4V6NK-BKBt5rH4.js → SLD4V6NK-CxidvPXU.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-Dbz9TZ6o.js → ScheduledTasksSettings-BdMCgBm5.js} +5 -5
- package/dist/client/assets/{ScopedSwitch-D1e9m-dH.js → ScopedSwitch-CwnjCta_.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-Cn2VDisz.js → ScrollAreaCorner-CfTQYjCW.js} +2 -2
- package/dist/client/assets/{SecretInput-C6zW-8wI.js → SecretInput-BYfVbTLh.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-C40FP3vq.js → SelectScrollUpArrow-BE0-tVtP.js} +2 -2
- package/dist/client/assets/{SelfImproveSettingsSection-WXBG9l_4.js → SelfImproveSettingsSection-DsqFeICK.js} +2 -2
- package/dist/client/assets/{SettingsPanels-BEtJwC6n.js → SettingsPanels-D_rJsyjt.js} +14 -14
- package/dist/client/assets/{SettingsPanels.logic-y95n8OOO.js → SettingsPanels.logic-BTJUBh-T.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-DE1t1kw-.js → SettingsScopeNotice-CAVvn3pQ.js} +2 -2
- package/dist/client/assets/{SidebarStageBackdrop-CYLpofvt.js → SidebarStageBackdrop-DdxWuxIk.js} +2 -2
- package/dist/client/assets/{T3PCR2KE-BryFgp5Q.js → T3PCR2KE-BtQsKjM5.js} +2 -2
- package/dist/client/assets/{TKWO2OVW-DcRjYaVG.js → TKWO2OVW-CeYF-suq.js} +2 -2
- package/dist/client/assets/{TSHNXIZL-hAylFob1.js → TSHNXIZL-FQ7ZWHEn.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-DeGNehj1.js → ThemeEditorPanel-BJucNhy-.js} +2 -2
- package/dist/client/assets/{ThreadDetailsItemsMenu-D0mfEKtW.js → ThreadDetailsItemsMenu-CRBBIuc7.js} +10 -10
- package/dist/client/assets/ThreadTerminalDrawer-Ci0mbLzJ.js +5 -0
- package/dist/client/assets/{TooltipProvider-DQ0TF9NB.js → TooltipProvider-BH5ni_Lo.js} +2 -2
- package/dist/client/assets/{UQJE5E4I-BfaZIz58.js → UQJE5E4I-CeqBk-r6.js} +2 -2
- package/dist/client/assets/{USNYFO5S-jOq8Kcgw.js → USNYFO5S-_1m41tJt.js} +2 -2
- package/dist/client/assets/{Virtualizer-B3FSTwJv.js → Virtualizer-DLB0FYm-.js} +2 -2
- package/dist/client/assets/{WEVWDWVA-1T3GTRY3.js → WEVWDWVA-DmSV8HLL.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-Dno2N8Xd.js → WorkspaceBreadcrumb-DQkeBQUl.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-OLpcgD_f.js → WorkspacePageContainer-D2rx9iDg.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-Bn0m4gpR.js → WorkspacePageHeader-D8-RIRjQ.js} +2 -2
- package/dist/client/assets/{X5RFHQXM-CaiE8-NB.js → X5RFHQXM-BUdDYXox.js} +2 -2
- package/dist/client/assets/{X62E3GBT-CKnjYZvp.js → X62E3GBT-BbQ7FmNB.js} +2 -2
- package/dist/client/assets/{XBNEOJTC-DF-d22o-.js → XBNEOJTC-BLEZA-vx.js} +2 -2
- package/dist/client/assets/{YHV2MVVZ-VSj4WI2u.js → YHV2MVVZ-DM2RTtkR.js} +2 -2
- package/dist/client/assets/{YURCZMG2-C9wxlavt.js → YURCZMG2-D5w6cPMY.js} +2 -2
- package/dist/client/assets/{YVG2LODB-JRtigNQC.js → YVG2LODB-BkLbsaCo.js} +2 -2
- package/dist/client/assets/_chat-CKMs-ajx.js +47 -0
- package/dist/client/assets/{_chat.design-DxTdYmIe.js → _chat.design-CpqXODBn.js} +2 -2
- package/dist/client/assets/{_chat.index-CNIRuBqG.js → _chat.index-B0eOfZAf.js} +2 -2
- package/dist/client/assets/_chat.new-CqLuDynd.js +4 -0
- package/dist/client/assets/{_chat.pull-requests-C6rdgLS9.js → _chat.pull-requests-C4Eo8GDQ.js} +2 -2
- package/dist/client/assets/{alert-CfhQnxcL.js → alert-D1O9oex3.js} +2 -2
- package/dist/client/assets/{alert-dialog-Dn_PRSFU.js → alert-dialog-3XDceRWv.js} +2 -2
- package/dist/client/assets/{assetUrls-BMizLezw.js → assetUrls-Dq0gsqWs.js} +2 -2
- package/dist/client/assets/{assets-DT0KoRIr.js → assets-C3_UZib9.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-xnY5QhfE.js → browserHistoryStore-CVCo7qfb.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-CH-4nkAf.js → browserLinkTarget-CopcRHna.js} +2 -2
- package/dist/client/assets/{checkbox-iFzfBLKr.js → checkbox-CxRqp4sO.js} +2 -2
- package/dist/client/assets/{color-picker-W1NtR7ha.js → color-picker-CvbP7BS3.js} +2 -2
- package/dist/client/assets/{combobox-B0IMIA-1.js → combobox-CuyUAuiC.js} +2 -2
- package/dist/client/assets/command-4bqVdX0m.js +2 -0
- package/dist/client/assets/{connect-BflmwHyv.js → connect-DFGquf-O.js} +2 -2
- package/dist/client/assets/connect-agent-Db5rxxY1.js +2 -0
- package/dist/client/assets/{design-B_bv-H7n.js → design-DzoN9JgQ.js} +2 -2
- package/dist/client/assets/{device-i4SkE05R.js → device-H2MyT_kA.js} +2 -2
- package/dist/client/assets/{dialog-DFlZvvht.js → dialog-CrLVN_m6.js} +2 -2
- package/dist/client/assets/{diffPanelStore-CGdPbp5I.js → diffPanelStore-CxnPNigi.js} +2 -2
- package/dist/client/assets/{diffRendering-B7lkQ5_O.js → diffRendering-cyTQV5bk.js} +2 -2
- package/dist/client/assets/{dist-BvS7KgJD.js → dist-J7s-H61h.js} +3 -3
- package/dist/client/assets/{draft-input-1HTN8QVo.js → draft-input-UuEBPJE8.js} +2 -2
- package/dist/client/assets/{duoViewer-DbnFva5H.js → duoViewer-C3DQnADY.js} +2 -2
- package/dist/client/assets/{dynamic-DmVpEfW3.js → dynamic-PDa6LTqb.js} +2 -2
- package/dist/client/assets/{embeddedScripts-D0-ABFFC.js → embeddedScripts-BDzRNXSL.js} +2 -2
- package/dist/client/assets/{empty-Dn5VI2Xk.js → empty-YMXgQbNI.js} +2 -2
- package/dist/client/assets/entities-HOBDIiHK.js +2 -0
- package/dist/client/assets/fileLinks-BlT4My6t.js +2 -0
- package/dist/client/assets/{fileTreeExpansion-Bp5eLBXI.js → fileTreeExpansion-D5nN-Oqd.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-CKgGUEGl.js → getDiffFileInput-4gToQuSl.js} +2 -2
- package/dist/client/assets/{htmlRender-BdsR_7vV.js → htmlRender-CUGVJXGf.js} +2 -2
- package/dist/client/assets/{index-DQKD4Lk2.js → index-C04a0SKq.js} +3 -3
- package/dist/client/assets/{input-yaZxaTds.js → input-DxHa9qj5.js} +2 -2
- package/dist/client/assets/{input-group-B1TOCtDG.js → input-group-_rAbDbys.js} +2 -2
- package/dist/client/assets/katex-B940_AAO.js +258 -0
- package/dist/client/assets/{kbd-R7rkirqT.js → kbd-DjUfNaix.js} +2 -2
- package/dist/client/assets/{keybindings-CrlWqd5q.js → keybindings-8_1sqf8s.js} +2 -2
- package/dist/client/assets/{lazy-C5ansoaW.js → lazy-C1dqAep6.js} +4 -4
- package/dist/client/assets/{lazyRouteComponent-BxpFJiXB.js → lazyRouteComponent-DLamKhHF.js} +2 -2
- package/dist/client/assets/{link-2ZiGGBbw.js → link-D1nkgCv7.js} +2 -2
- package/dist/client/assets/{linkedPrompt-CwNmoWmu.js → linkedPrompt-Quysf0mk.js} +2 -2
- package/dist/client/assets/main-BFdCLmkY.js +39 -0
- package/dist/client/assets/main-BQBpA03z.css +2 -0
- package/dist/client/assets/mediaReference-D19Dzoh3.js +2 -0
- package/dist/client/assets/mediaSource-DfsR3T70.js +2 -0
- package/dist/client/assets/{modelScene-D8CdQkcp.js → modelScene-CcF-Uii-.js} +2 -2
- package/dist/client/assets/{number-field-DNna9ps3.js → number-field-CALZZPio.js} +2 -2
- package/dist/client/assets/{observeResize-Cz6dJUG2.js → observeResize-DLmefMqO.js} +2 -2
- package/dist/client/assets/{onboarding-BG6FdUUU.js → onboarding-plATuZco.js} +2 -2
- package/dist/client/assets/{openFileInPreview-BaemzSTr.js → openFileInPreview-BCGQQ_Ia.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-O_tvpvNW.js → p4ProjectFile-DCNJ4pTp.js} +2 -2
- package/dist/client/assets/{pair-BNIczJXa.js → pair-umv6-haX.js} +2 -2
- package/dist/client/assets/{pendingSendStore-Cc6n4Xji.js → pendingSendStore-CgfQk4GV.js} +2 -2
- package/dist/client/assets/{phoneViewer-CqawjVDW.js → phoneViewer-DJWjzgFc.js} +2 -2
- package/dist/client/assets/{pierre-icons-BfZ11Q2h.js → pierre-icons-fv1goMS6.js} +2 -2
- package/dist/client/assets/{popover-DnYfrQly.js → popover-DxCAIK62.js} +2 -2
- package/dist/client/assets/preview-Ce5ECOHv.js +2 -0
- package/dist/client/assets/{preview-Bi-hPWTp.js → preview-x1tmlUez.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-W10VSM09.js → previewMiniPlayerStore-CEd7VI6J.js} +2 -2
- package/dist/client/assets/{primary-CDuW5QwW.js → primary-DcnaBKM0.js} +2 -2
- package/dist/client/assets/{primaryCloudLinkState-BONYlcei.js → primaryCloudLinkState-TS0IW37f.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-Ck4wjfaq.js → projectFilesQueryState-DKw9S3nn.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-DgVU8tRa.js → projectScriptEditor-DT7-Ivvb.js} +2 -2
- package/dist/client/assets/{providerSkills-Dfc0PY_E.js → providerSkills-G8ld9nNp.js} +2 -2
- package/dist/client/assets/pullRequestDetail.logic-Dm3mx1US.js +10 -0
- package/dist/client/assets/{pullRequestIcons-DwblWS4R.js → pullRequestIcons-D8rnFTkk.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-Cc4bHb4o.js → pullRequestReviewStore-C45fih_P.js} +2 -2
- package/dist/client/assets/{pullRequests-BSjV3BBU.js → pullRequests-euX1Ch2G.js} +2 -2
- package/dist/client/assets/queries-DNRXml7d.js +2 -0
- package/dist/client/assets/query-Bw8YoCbO.js +2 -0
- package/dist/client/assets/{radio-group-EK7EPCn2.js → radio-group-DpD3XHAp.js} +2 -2
- package/dist/client/assets/{relay-Ceq0htTl.js → relay-YiJpGyaO.js} +2 -2
- package/dist/client/assets/{relayFailureReason-DfHD60Z_.js → relayFailureReason-Baxcpnas.js} +2 -2
- package/dist/client/assets/{renderScheduler-BGJGU9W9.js → renderScheduler-BuGbk7RK.js} +2 -2
- package/dist/client/assets/{rightPanelStore-AjYoRisO.js → rightPanelStore-BF1zmmXM.js} +2 -2
- package/dist/client/assets/runtime-DIAcbMTc.js +9 -0
- package/dist/client/assets/{runtimeModeConfig-Oh86kRYJ.js → runtimeModeConfig-4g_-_dE2.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-h-rZbNI3.js → scheduledTasksSettings.logic-BOrkdeD3.js} +3 -3
- package/dist/client/assets/{scroll-area-DhDCLqyU.js → scroll-area-CokPD3-i.js} +2 -2
- package/dist/client/assets/{select-CNcZzYBl.js → select-CxYi0YMi.js} +2 -2
- package/dist/client/assets/{selfImproveFindings-CvQXlaMJ.js → selfImproveFindings-CE-lxRTw.js} +2 -2
- package/dist/client/assets/{server-Bw1ZPPkk.js → server-BNjk2K1j.js} +2 -2
- package/dist/client/assets/{session-YEQs2e4k.js → session-DMNo4Bh3.js} +2 -2
- package/dist/client/assets/{session-logic-BOQRidTa.js → session-logic-CELyWJ1v.js} +4 -4
- package/dist/client/assets/{settings-Dj9xov5g.js → settings-Bt6o5coA.js} +2 -2
- package/dist/client/assets/{settings.appearance-BFkpCG_N.js → settings.appearance-pkRxkhgs.js} +2 -2
- package/dist/client/assets/settings.archived-OjOh5b0A.js +2 -0
- package/dist/client/assets/{settings.computer-use-Bi6Yznts.js → settings.computer-use-Dh6Z2-Jg.js} +2 -2
- package/dist/client/assets/settings.connections-F3LWiK8-.js +2 -0
- package/dist/client/assets/{settings.data-controls-CMPajamk.js → settings.data-controls-DgOo9a4b.js} +2 -2
- package/dist/client/assets/{settings.decisions-BaYWexvw.js → settings.decisions-lQFEkC9t.js} +2 -2
- package/dist/client/assets/settings.designs-C1tyiETD.js +2 -0
- package/dist/client/assets/settings.diagnostics-kp_wJw6e.js +2 -0
- package/dist/client/assets/{settings.general-BqeVFfxZ.js → settings.general-B5Kke4t3.js} +2 -2
- package/dist/client/assets/{settings.integrations-CYmWtYZT.js → settings.integrations-CjiKCDy_.js} +2 -2
- package/dist/client/assets/{settings.keybindings-Rdl8b88k.js → settings.keybindings-CouYSmxE.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-C-Brz8iy.js → settings.open-source-licenses-CHFTLx1q.js} +2 -2
- package/dist/client/assets/settings.plugins-StUBBho3.js +5 -0
- package/dist/client/assets/{settings.projects-BTKNVvto.js → settings.projects-B_SxK9Cl.js} +4 -4
- package/dist/client/assets/settings.providers-Ch16WkgV.js +3 -0
- package/dist/client/assets/{settings.scheduled-tasks-Da_-twWT.js → settings.scheduled-tasks-KNcUc94O.js} +2 -2
- package/dist/client/assets/{settings.secrets-B_ZY_xsv.js → settings.secrets-2aMmfgKR.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-lnIAMmUa.js → settings.snap-shot-B5cEBXZD.js} +2 -2
- package/dist/client/assets/settings.source-control-G_TX95re.js +2 -0
- package/dist/client/assets/settings.storage-BdNNKm9m.js +2 -0
- package/dist/client/assets/settingsLayout-CzGbLP4v.js +3 -0
- package/dist/client/assets/{sidebar-BUDllWET.js → sidebar-ovj9EiR4.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-xYoX3lLq.js → sidebarProjectGrouping-DT6LCDEX.js} +2 -2
- package/dist/client/assets/{skeleton-C6O21cqb.js → skeleton-0IEb3e4e.js} +2 -2
- package/dist/client/assets/sourceControl-CPobWWHq.js +2 -0
- package/dist/client/assets/{sourceControlClients-C3cHOUoL.js → sourceControlClients-4PlkytxQ.js} +2 -2
- package/dist/client/assets/{spinner-m1uNq_wW.js → spinner-7CSKKESP.js} +2 -2
- package/dist/client/assets/src-BVovWpja.js +15 -0
- package/dist/client/assets/{terminal-links-CxLXIwP1.js → terminal-links-BTdovUFa.js} +2 -2
- package/dist/client/assets/{terminalSessions-CXGA3pch.js → terminalSessions-EUiRWJti.js} +2 -2
- package/dist/client/assets/{textarea-xZYMC9X5.js → textarea-DMmmmGA1.js} +2 -2
- package/dist/client/assets/{themePalette-BcMO2M90.js → themePalette-C7ZOgucT.js} +2 -2
- package/dist/client/assets/{threadCheckpoints-DUorxvL1.js → threadCheckpoints-DjIk4Kvg.js} +2 -2
- package/dist/client/assets/{toggle-DumCe7R7.js → toggle-4vFx94TS.js} +2 -2
- package/dist/client/assets/{toggle-group-CzE2mG-B.js → toggle-group-d6H735Xi.js} +2 -2
- package/dist/client/assets/{tooltip-BhCWnsdW.js → tooltip-CGvxq8k3.js} +2 -2
- package/dist/client/assets/{uiStateStore-JOwhQqDV.js → uiStateStore-MbQdhAPp.js} +2 -2
- package/dist/client/assets/{usage-Blib8u_-.js → usage-Da_tm2dn.js} +2 -2
- package/dist/client/assets/{usageAccess-COKmar79.js → usageAccess-B-HGPPkp.js} +2 -2
- package/dist/client/assets/{usageFormat-2913AogD.js → usageFormat-DcON9Kz_.js} +2 -2
- package/dist/client/assets/{usageShortcuts-U_aRtpf7.js → usageShortcuts-B_o9XxKX.js} +2 -2
- package/dist/client/assets/{use-atom-command-DkmE-pw9.js → use-atom-command-C4Tyb1VL.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-BiZIzNf7.js → useAriaLabelledBy-CcwjH1QH.js} +2 -2
- package/dist/client/assets/useHandleNewThread-Qb_yy6KY.js +2 -0
- package/dist/client/assets/{useLocation-BXwb7I1F.js → useLocation-CIvcNoeU.js} +2 -2
- package/dist/client/assets/{useNavigate-P1p3Es15.js → useNavigate-DVrOlf8m.js} +2 -2
- package/dist/client/assets/{useNavigateBack-D02Al7yk.js → useNavigateBack-Dmf0SIc3.js} +2 -2
- package/dist/client/assets/{useP4ConnectAuthPrompt-4l_tJOsn.js → useP4ConnectAuthPrompt-BPXqJdyY.js} +2 -2
- package/dist/client/assets/{useParams-DsmZTF__.js → useParams-BeJIRxxE.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-DeJYBk6u.js → usePermissionStatus-Cx1Wuwk0.js} +2 -2
- package/dist/client/assets/{usePopupViewport-BBKn7x_4.js → usePopupViewport-OR_PF2s-.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-DtDOHLgX.js → usePullRequestActions-B_Nrg846.js} +2 -2
- package/dist/client/assets/{useRegisterFieldControl-DkFmgEzw.js → useRegisterFieldControl-B72Afmil.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-B-vTMNh_.js → useScopedModelAvailability-DVQ42jT4.js} +2 -2
- package/dist/client/assets/{useSettings-Dp27sUML.js → useSettings-BWMcQzC-.js} +2 -2
- package/dist/client/assets/{utils-BVnIIHXP.js → utils-DFNDxNZi.js} +21 -21
- package/dist/client/assets/{vcsRefInvalidation-DU1ipBl9.js → vcsRefInvalidation-CV8dYgi0.js} +2 -2
- package/dist/client/assets/{welcome-CmsT2lJW.js → welcome-BxhPM21H.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/client/third-party-licenses.json +1 -1
- package/dist/{mcpResponsePayloads-C8W7Qyxk.mjs → mcpResponsePayloads-SwQXsZoI.mjs} +3 -3
- package/dist/{preview-iNdhUsAa.mjs → preview-BGylKXB6.mjs} +235 -101
- package/dist/{renderer-DKOOIEoX.mjs → renderer-CQkeNW9b.mjs} +2 -2
- package/dist/{runtime-Bm_EVnst.mjs → runtime-O5AWAEzD.mjs} +3 -3
- package/dist/{runtimeLayer-hDhX2kHB.mjs → runtimeLayer-C-Fo4HWH.mjs} +1 -1
- package/dist/{runtimeLayer-CZ8Ru7Ia.mjs → runtimeLayer-ChPBglJB.mjs} +2298 -1209
- package/dist/{sdk-CcrYY4k4.mjs → sdk-C8tgjyIq.mjs} +29609 -23199
- package/dist/{server-qfCj2NpU.mjs → server-CsS0d2BE.mjs} +358 -88
- package/dist/{sha2-Daa2Fiv1.mjs → sha2-BjjJcoUu.mjs} +449 -24
- package/package.json +1 -1
- package/dist/AcpMcpStdioBridge-C9Ry_oCI.mjs +0 -3
- package/dist/client/assets/AlertDialogRoot-CNpt8h9w.js +0 -2
- package/dist/client/assets/ChatMarkdown-DO_2fTqM.js +0 -49
- package/dist/client/assets/Input-BT2VVALp.js +0 -2
- package/dist/client/assets/JZOYTAAL-BCzM9Qh2.js +0 -1
- package/dist/client/assets/KeybindingsSettings.logic-oAUXQqts.js +0 -2
- package/dist/client/assets/MathTypeset-DEcVZfaU.css +0 -1
- package/dist/client/assets/PreviewPanel-DIVx5x1H.js +0 -2
- package/dist/client/assets/ProviderModelPicker-rRVcFLyP.js +0 -2
- package/dist/client/assets/ThreadTerminalDrawer-B77-xYz_.js +0 -5
- package/dist/client/assets/_chat-BA5cbHxE.js +0 -47
- package/dist/client/assets/_chat.new-Bw2VR60x.js +0 -4
- package/dist/client/assets/command-BdVxwZ8D.js +0 -2
- package/dist/client/assets/connect-agent-AVHGyda5.js +0 -2
- package/dist/client/assets/entities-JWl3bvMT.js +0 -2
- package/dist/client/assets/fileLinks-Y3tOmcmb.js +0 -2
- package/dist/client/assets/katex-DJhrJSbw.js +0 -258
- package/dist/client/assets/main-43D2LVmx.js +0 -38
- package/dist/client/assets/main-Rpw_0nEx.css +0 -2
- package/dist/client/assets/mediaReference-Bh7Pydqp.js +0 -2
- package/dist/client/assets/mediaSource-Do7lCSv7.js +0 -2
- package/dist/client/assets/preview-Dd9kGZBH.js +0 -2
- package/dist/client/assets/pullRequestDetail.logic-Dy7e4vh2.js +0 -10
- package/dist/client/assets/queries-BQAICaPF.js +0 -2
- package/dist/client/assets/query-DFSffMGJ.js +0 -2
- package/dist/client/assets/runtime-vb0YwEUc.js +0 -9
- package/dist/client/assets/settings.archived-D96oQP2t.js +0 -2
- package/dist/client/assets/settings.connections-C7OGFqf1.js +0 -2
- package/dist/client/assets/settings.designs-t7-jewWy.js +0 -2
- package/dist/client/assets/settings.diagnostics-qkp4kADk.js +0 -2
- package/dist/client/assets/settings.plugins-DAvzBYum.js +0 -5
- package/dist/client/assets/settings.providers-r89DCT90.js +0 -3
- package/dist/client/assets/settings.source-control-BIPVuyIo.js +0 -2
- package/dist/client/assets/settings.storage-vvoP_prr.js +0 -2
- package/dist/client/assets/settingsLayout-DaKDuaST.js +0 -3
- package/dist/client/assets/sourceControl-gh0Nj17P.js +0 -2
- package/dist/client/assets/src-DHn7yNZx.js +0 -15
- package/dist/client/assets/useHandleNewThread-C1YHLGL_.js +0 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { t as __commonJSMin } from "./rolldown-runtime-CMoAvOD_.mjs";
|
|
4
|
-
import { $c as
|
|
5
|
-
import { $r as fromInput$1, A as Number$1, Ai as make$80, At as fromJsonString, Bi as
|
|
6
|
-
import { $ as WsSelfImproveSetMemoryMirrorRpc, $d as symbol, $f as isStreamSchema, $n as PreviewAutomationUnsupportedClientError, $o as deviceToolInstallMessage, $p as bodyStream, $r as OrchestratorMcpClientRequestId, $s as toRouterPath, $u as use, A as ComputerUseHostResponse, Aa as AntigravitySettings, Af as AuthRelayWriteScope, Ah as ClientDeviceType, Ai as OrchestratorMcpThreadWaitInput, Al as ProviderUserInputAnswers, An as PreviewAutomationNoAvailableHostError, Ao as UsageReadError, As as EnvironmentInternalError, At as DesignGuideRequest, B as WsHubSyncResolveRpc, Ba as DEFAULT_SERVER_SETTINGS, Bf as authScopeResponse, Bh as IsoDateTime, Bm as isIgnored, Bn as PreviewAutomationResizeInput, Bo as DevicePlatformUnavailableError, Bs as RelayEnvironmentLinkChallengeResponse, Bt as DesignProposeRequest, C as COMPUTER_USE_JEV_TAKE_CODE, Cc as OrchestrationV2GetThreadProjectionError, Cf as AuthMcpRegistrationError, Ci as OrchestratorMcpThreadInterruptResult, Cn as PreviewAutomationDialogInput, Cr as AttachmentCreateUploadUrlResult, Cs as EnvironmentHttpApi, Ct as DesignServiceError, Cu as ChatFileAttachment, D as ComputerUseHost, Dd as fromHeaders, Df as AuthPreviewOperateScope, Di as OrchestratorMcpThreadReadResult, Dl as ProviderApprovalOption, Dn as PreviewAutomationInvalidSelectorError, Do as ResolvedKeybindingRule, Ds as EnvironmentHttpForbiddenError, Dt as DesignApplyRequest, E as ComputerUseError, Ef as AuthOrchestrationReadScope, Ei as OrchestratorMcpThreadReadInput, El as ProviderApprovalDecision, En as PreviewAutomationExecutionError, Ep as mergeCookies, Es as EnvironmentHttpConflictError, Et as DesignApplyReceipt, F as clientRpcRequiredScopes, Fl as ThreadPullRequestLinkSource, Fn as PreviewAutomationRecordingStatus, Fo as DeviceHostUnavailableError, Fp as stream, Fr as OrchestrationSearchThreadsError, Ft as DesignInspectReceipt, G as WsMcpRegistryProviderSignInCompleteRpc, Gl as SourceControlCloneRepositoryInput, Gn as PreviewAutomationSetColorSchemeResult, Go as DeviceToolOpenResult, Gp as schemaBodyJson, Gs as RelayManagedEndpointRecoveryResponse, Gt as DesignStatusRequest, Gu as HttpRouter, H as WsHubSyncSetModeRpc, Hc as OrchestrationV2StopWorkflowInput, Hi as OrchestrationDispatchCommandError, Hl as pullRequestHostOf, Hm as report$1, Hn as PreviewAutomationResultTooLargeError, Ho as DeviceToolError, Hp as MaxBodySize, Hs as RelayHookDeliveryProofPayload, Ht as DesignRenderRequest, I as RpcScopeAuthorization, Ic as OrchestrationV2RunStatus, If as EnvironmentAuthorizationError, Il as PullRequestLinkedThreadsResult, In as PreviewAutomationRecordingTooLargeError, Io as DeviceId, Ip as text$2, Ir as OrchestrationSearchThreadsInput, It as DesignInspectRequest, J as WsMcpRegistryProviderSignInWaitRpc, Ja as ServerSettingsPatch, Jc as OrchestrationV2ThreadLaunchError, Jf as getStatusErrorSchema, Jl as SourceControlProviderKind, Jm as encoder$1, Jn as PreviewAutomationTabNotFoundError, Jo as DeviceToolUnavailableError, Jt as DesignValidateReceipt, Ju as cors, K as WsMcpRegistryProviderSignInStartRpc, Ka as ServerSettings, Kc as OrchestrationV2SweepItem, Kf as getResponseEncoding, Kh as PositiveInt, Ki as GitCommandError, Kl as SourceControlCloneRepositoryResult, Kn as PreviewAutomationSnapshot, Ko as DeviceToolScreenshotResult, Kt as DesignStylesReceipt, Ku as RouteContext, L as WS_METHODS, La as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Lc as OrchestrationV2RuntimeRequest, Ld as isPersistedFile, Lf as MCP_PEER_LINK_SOFTWARE_ID, Li as ScheduledTask, Ll as PullRequestOperationError, Ln as PreviewAutomationRecordingTransferError, Lo as DeviceNotFoundError, Lp as uint8Array, Lr as OrchestrationThreadSearchMatch, Ls as RelayApi, Lt as DesignLibraryManifest, M as ComputerUseOutput, Ma as BackgroundActivityProfileSelection, Md as schemaHeaders, Mf as AuthStandardClientScopes, Mh as ClientSurface, Mi as ThreadMetadataMcpUpdateInput, Mn as PreviewAutomationRecordingArtifact, Mo as DeviceBootError, Mp as setHeader, Ms as EnvironmentRequestInvalidError, Mt as DesignHandoffRequest, Mu as isSecurity, N as computerUseJevStepCode, Nd as schemaSearchParams, Nf as AuthTerminalOperateScope, Nh as ClientWebDeployment, Ni as ThreadMetadataMcpUpdateResult, Nl as ThreadPullRequestKey, Nm as PlatformError, Nn as PreviewAutomationRecordingDeadlineExpiredError, No as DeviceEasAccountError, Np as setHeaders, Ns as EnvironmentResourceNotFoundError, Nt as DesignImportTokensReceipt, O as ComputerUseHostRegistration, Od as HttpServerRequest, Of as AuthProvidersManageScope, Oi as OrchestratorMcpThreadSendInput, Ol as ProviderInteractionMode, Om as FileSystem, On as PreviewAutomationMalformedResponseError, Os as EnvironmentHttpInternalServerError, Ou as PersistChatAttachmentsError, P as CLIENT_GUARDED_RPC_SCOPES, Pa as CodexSettings, Pf as AuthTerminalReadScope, Ph as CommandId, Pi as SECRET_REQUEST_UNSAVED_NOTE, Pn as PreviewAutomationRecordingDesktopUpdateRequiredError, Po as DeviceHostId, Pp as setStatus, Ps as EnvironmentScopeRequiredError, Pt as DesignImportTokensRequest, Pu as getSlotParseOptions, Q as WsSelfImproveSaveFindingsRpc, Qd as isRespondable, Qf as isStreamNdjson, Qh as RpcClientId, Qm as AcpRegistryOperationError, Qn as PreviewAutomationUnavailableError, Qo as LOCAL_DEVICE_HOST_LABEL, Qp as bodyJsonUnsafe, Qr as OrchestratorMcpCapabilitiesResult, Qt as ServerClient, Qu as serve, R as WsHubSyncConnectRpc, Rd as limitsServices, Rm as TypeId$7, Rn as PreviewAutomationRemoteUnavailableError, Ro as DeviceOperationError, Rp as urlParams, Rr as OrchestrationThreadSearchSource, Rs as RelayCloudEnvironmentHealthProofPayload, Sc as OrchestrationV2GetShellSnapshotError, Sf as AuthMcpClientAccess, Si as OrchestratorMcpThreadInterruptInput, Sl as ProjectWriteFileError, Sn as PreviewAutomationControlReason, Sp as file, Sr as AttachmentCreateUploadUrlInput, Ss as EnvironmentCloudEndpointUnavailableError, St as DesignRpcGroup, Su as ChatAttachmentId, T as ComputerUseBrowserChatRequest, Tf as AuthOrchestrationOperateScope, Ti as OrchestratorMcpThreadListResult, Tm as text$3, Tn as PreviewAutomationEvaluateInput, To as KeybindingsConfigError, Tp as jsonUnsafe, Tr as AttachmentUploadSigningKeyError, Tu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, U as WsHubSyncSubscribeRpc, Ud as Path, Uh as NonNegativeInt, Ui as PullRequestReviewGuide, Um as hasBody, Un as PreviewAutomationSelectResult, Uo as DeviceToolListResult, Ut as DesignSelection, V as WsHubSyncRunNowRpc, Va as DatabaseReclaimError, Vf as mcpClientScopes, Vh as MessageId, Vm as layer$98, Vn as PreviewAutomationResizeResult, Vo as DeviceToolCloseInput, Vs as RelayEnvironmentLinkResponse, Vt as DesignRenderReceipt, Vu as getSuccessSchemas, W as WsMcpRegistryProviderSignInCancelRpc, Wi as PullRequestReviewGuideRun, Wm as isHttpMethod, Wn as PreviewAutomationSetColorSchemeInput, Wo as DeviceToolOpenInput, Ws as RelayManagedEndpointRecoveryRegistrationResponse, Wt as DesignStatusReceipt, X as WsRpcGroup, Xc as OrchestrationV2ThreadShell, Xf as getWithHeadersAnnotation, Xi as VcsListRefsInput, Xn as PreviewAutomationTargetNotEditableError, Xp as bodyFormData, Xr as PeerLinkError, Xs as fromApi, Xt as make$82, Y as WsMcpRegistryProviderSignOutRpc, Yc as OrchestrationV2ThreadLaunchRequestWorkspaceStrategy, Yf as getStatusSuccessSchema, Ym as makeParser, Yn as PreviewAutomationTabTargetInput, Yo as DeviceToolVersions, Yp as bearerToken, Yt as DesignValidateRequest, Yu as middleware$1, Z as WsSelfImproveDismissFindingsRpc, Zf as isNoContent, Zi as VcsListRefsResult, Zn as PreviewAutomationTimeoutError, Zo as LOCAL_DEVICE_HOST_ID, Zp as bodyJson, Zr as PeerLinkRequestError, Zu as route, _ as Asset3dGenerateResult, _a as ProviderSetupError, _d as transform$1, _h as defaultInstanceIdForDriver, _i as OrchestratorMcpSaveScheduledTaskInput, _l as ProjectReadFileError, _n as PREVIEW_RECORDING_STOP_TIMEOUT_MS, _o as PreviewListResult, _r as AssetWorkspaceContextNotFoundError, _t as SelfImproveSaveFindingsResult, _u as supportsProviderMcpSignIn, aa as isProviderAvailable, ad as TracerDisabledWhen$1, af as make$84, ag as TrimmedNonEmptyString, ah as DEFAULT_MODEL, ai as OrchestratorMcpDeleteScheduledTaskResult, al as linkOriginIsFenced, am as make$85, an as WorktreeMcpFailure, ao as resolveProjectProviderInstanceEnabled, ap as normalize, ar as ReviewDiffPreviewSourceKind, as as ThreadDecisionsReadError, au as VcsUnsupportedOperationError, b as Asset3dSearchInput, bd as TracerDisabledWhen, bf as AuthGrantScope, bi as OrchestratorMcpTaskCancelResult, bl as ProjectSearchEntriesError, bn as PreviewAutomationClientDisconnectedError, bo as PreviewTabId, bp as makeWebSocket$2, br as AssetWorkspaceResolutionError, bs as EnvironmentAuthenticatedAuth, bt as DesignListReceipt, bu as OrchestrationGetTurnDiffResult, cf as ORCHESTRATION_PROTOCOL_QUERY_PARAM, cg as bytes, ci as OrchestratorMcpEnvironmentLinksResult, cl as ToolActivityIcon, cn as WorktreeMcpStatusResult, cr as AssetCreateUrlInput, ct as SelfImproveDecision, dd as mapRequest$1, df as AuthAccessStreamError, di as OrchestratorMcpEnvironmentUnlinkResult, dl as OrchestrationProjectShell, dm as setHeaders$1, do as PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE, dr as AssetProjectFaviconInspectionError, ds as resolveBrowserProfiles, dt as SelfImproveFindings, du as McpServerRuntimeState, ed as HttpServer, ef as toResponse, eg as RunId, ei as OrchestratorMcpCreateThreadsInput, ep as isStreamUint8Array, er as PreviewAutomationWaitForInput, et as WsSelfImproveSubscribeSettingsRpc, fi as OrchestratorMcpFailure, fl as Project, fr as AssetProjectFaviconNotFoundError, ft as SelfImproveLabel, g as Asset3dGenerateInput, gc as OrchestrationV2DispatchCommandResult, gf as AuthEnvironmentMaintainScope, gh as ProviderInstanceMutation, gi as OrchestratorMcpRequestSecretResult, gl as ProjectMutationError, gn as PREVIEW_AUTOMATION_V1_OPERATIONS, gp as fromWebSocket, gr as AssetWorkspaceAssetNotFoundError, gs as DESKTOP_UPDATE_RESTART_MARKER_FILE, gt as SelfImproveReviewers, h as Asset3dFiles, hc as OrchestrationV2DispatchCommandError, hd as tap$2, hf as AuthDiagnosticsReadScope, hh as ProviderInstanceId, hi as OrchestratorMcpRequestSecretInput, hl as ProjectMutation, hn as PREVIEW_AUTOMATION_SERVER_OPERATIONS, hp as WebSocketConstructor, hr as AssetWorkspaceAssetInspectionError, hs as DesktopBrowserEvent, ht as SelfImproveReview, ic as OrchestrationGetWorkflowScriptError, id as HttpClient, ig as ThreadId, ii as OrchestratorMcpDeleteScheduledTaskInput, il as latestProviderTurnForAttempt, im as get$1, io as resolveIdleCompaction, ir as ReviewDiffPreviewSource, is as ThreadDecision, it as WsSubscribeThreadDecisionsRpc, iu as VcsRepositoryDetectionError, j as ComputerUseJsInput, ja as BackgroundActivityProfile, jd as schemaCookies, jf as AuthSettingsWriteScope, jh as ClientOs, ji as OrchestratorMcpThreadWaitResult, jl as RuntimeMode, jn as PreviewAutomationOpenInput, jo as DeviceActionUnavailableError, jr as FilesystemBrowseError, js as EnvironmentOperationForbiddenError, jt as DesignHandoffReceipt, k as ComputerUseHostReport, kc as OrchestrationV2ProviderSessionJson, kd as ParsedSearchParams, kf as AuthRelayReadScope, kh as ClientConnectionMethod, ki as OrchestratorMcpThreadSendResult, kl as ProviderRequestKind, kn as PreviewAutomationNavigateInput, kp as redirect, ks as EnvironmentHttpUnauthorizedError, kt as DesignGuideReceipt, ku as getProviderAttachmentLimitError, li as OrchestratorMcpEnvironmentTarget, ll as ToolActivityNativeAppReference, lm as setBody, lr as AssetGitHubMediaUrlValidationError, lt as SelfImproveError, lu as McpServerId, m as Asset3dFetchInput, mc as OrchestrationV2DelegatedFrom, mh as ProviderDriverKind, mi as OrchestratorMcpListScheduledTasksResult, ml as ProjectListEntriesError, mn as McpCapabilityUnavailableError, mo as PreviewClearProfileError, mp as WebSocket, mr as AssetSigningKeyLoadError, ms as DesktopBrowserCommand, mt as SelfImproveResult, na as ServerProviderUpdateError, ng as ScheduledTaskId, ni as OrchestratorMcpDelegateTaskInput, no as requiredScopesForProjectMutation, np as isWithHeaders, ns as DecisionInput, nt as WsSelfImproveUndoSaveRpc, oa as isProviderTextGenerationCapable, oc as OrchestrationV2AppThreadJson, of as ExecutionEnvironmentDescriptor, oi as OrchestratorMcpEnvironmentLinkInput, om as post, on as WorktreeMcpHandoffInput, op as CloseEvent, or as ATTACHMENT_UPLOAD_URL_TTL_MS, ou as ModelSelection, pd as retry$1, pf as AuthAccessWriteScope, ph as PROVIDER_DISPLAY_NAMES, pi as OrchestratorMcpListScheduledTasksInput, pl as ProjectCreatePayload, pm as setUrlParams, pn as BrowserNavigationTarget, po as PREVIEW_VIEWPORT_PRESET_IDS, pr as AssetProjectFaviconResolutionError, pt as SelfImproveRequest, pu as PluginId, q as WsMcpRegistryProviderSignInStateRpc, qc as OrchestrationV2ThreadForkSourcePoint, qf as getResponseEncodingSchema, qh as ProjectId, qn as PreviewAutomationStatus, qo as DeviceToolTargetInput, qp as appendUrlParams, qs as RelayOkResponse, qt as DesignStylesRequest, qu as add$2, rc as ORCHESTRATION_V2_WS_METHODS, ri as OrchestratorMcpDelegateTaskResult, rl as isProviderNativeSubagentThread, rm as del, ro as requiredScopesForServerSettingsPatch, rp as isWithHeadersValue, rr as ReviewDiffFileStat, rs as DecisionResult, rt as WsSelfImproveUpdateSettingsRpc, sd as filterStatusOk$1, sg as TurnItemId, si as OrchestratorMcpEnvironmentLinkResult, sn as WorktreeMcpHandoffResult, sr as AssetAttachmentNotFoundError, ss as BUILT_IN_BROWSER_PROFILES, st as Service$2, su as McpRegistryRpcError, tg as RuntimeRequestId, ti as OrchestratorMcpCreateThreadsResult, tn as make$83, tp as isUpgrade, tr as SERVER_BROWSER_AUTOMATION_CLIENT_ID, tt as WsSelfImproveSubscribeThreadFindingsRpc, uc as OrchestrationV2ContextTransfer, uf as AuthAccessReadScope, ug as toNumberUnsafe, ui as OrchestratorMcpEnvironmentUnlinkInput, ul as UsageLimitSourceError, um as setHeader$1, uo as FILL_PREVIEW_VIEWPORT, ur as AssetPreviewTypeValidationError, us as findBrowserProfile, ut as SelfImproveEvidence, v as Asset3dGenerateStatusInput, va as ProviderUploadFeedbackError, vf as AuthFilesystemReadScope, vi as OrchestratorMcpScheduleTaskResult, vn as PreviewAutomationActInput, vp as isSocketError, vr as AssetWorkspaceContextResolutionError, vs as RelayClientInstallFailedError, vt as UserInputRankError, vu as OrchestrationGetFullThreadDiffError, w as COMPUTER_USE_MAX_OUTPUT_CHARS, wf as AuthMcpTokenError, wi as OrchestratorMcpThreadListInput, wl as DEFAULT_PROVIDER_INTERACTION_MODE, wn as PreviewAutomationError, wo as KeybindingRule, wp as isHttpServerResponse, wr as AttachmentDeleteInput, ws as EnvironmentHttpBadRequestError, wt as DesignSubscribeRequest, wu as ChatImageAttachment, x as Asset3dSearchResult, xd as compression, xf as AuthMcpApprovalError, xi as OrchestratorMcpTaskStatusInput, xl as ProjectUpdatePayload, xm as isHttpClientError, xn as PreviewAutomationControlInterruptedError, xo as PreviewViewportSetting, xp as empty$6, xr as AssetWorkspaceRootNormalizationError, xs as EnvironmentAuthenticatedPrincipal, xt as DesignListRequest, y as Asset3dGenerateStatusResult, yd as withScope, yf as AuthFilesystemWriteScope, yi as OrchestratorMcpTaskCancelInput, yl as ProjectSearchContentsError, yn as PreviewAutomationActInputs, yo as PreviewStreamHostSetup, yp as make$81, yr as AssetWorkspacePathValidationError, ys as EnvironmentAuthInvalidError, yt as DesignHumanApplyRequest, yu as OrchestrationGetTurnDiffError, z as WsHubSyncDisconnectRpc, za as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, zc as OrchestrationV2SearchThreadError, zf as authScopeRequiredResponse, zl as PullRequestState, zm as ignore$1, zn as PreviewAutomationRequestQueueClosedError, zo as DevicePlatformAvailability, zp as filterStatusOk, zr as HubSyncError, zs as RelayCloudMintCredentialProofPayload, zt as DesignProposeReceipt, zu as getErrorSchemas } from "./sha2-Daa2Fiv1.mjs";
|
|
7
|
-
import { $ as PROJECT_FAVICON_FALLBACK_MARKER, $n as
|
|
8
|
-
import { $ as mkString, A as fromEffect, At as tick, Bt as unfold, Ct as suspend$2, Dt as takeWhile, E as forever$1, F as fromPull, G as mapAccum, H as isStream, Hn as await_, Ht as zipLatestWith, I as fromQueue, In as unbounded$1, J as mapEffect, Jn as join, M as fromIterable, Mn as shutdown$2, Nn as sliding, On as unbounded$2, Ot as tap$3, P as fromPubSub, Pn as subscribe, Pt as toPull, R as fromSubscription, S as filterMap$1, St as succeed$5, T as flattenIterable, Tn as take$2, Tt as takeUntil, U as make$93, Un as getCurrent, Vn as awaitAll, Vt as unwrap$1, W as map$5, Wn as interrupt$1, X as merge$2, Y as mapError$1, Yn as runIn, Z as mergeAll$1, _ as ensuring$1, _n as offer$1, _t as runForEachArray, a as catch_$1, an as makeUnsafe$3, b as filter$3, bt as scoped$1, c as concat$1, d as die$2, dn as endUnsafe, dt as run$1, et as mkUint8Array, fn as fail$6, ft as runCollect, g as encodeText, gn as make$94, gt as runForEach, h as empty$7, in as make$92, it as pipeThroughChannel, kn as publish, l as debounce, ln as dropping, lt as repeat$1, m as drop, mn as failCauseUnsafe, mt as runFold, n as catchCause$1, nt as orDie$1, o as changes$1, ot as provideContext$1, pn as failCause$3, pt as runDrain, q as mapArrayEffect, qt as last, r as catchIf$1, s as changesWith, sn as clear$1, t as callback$1, u as decodeText, un as end, ut as retry$2, v as fail$5, vn as offerAll, vt as runHead, w as flatMap$3, x as filterEffect, xn as shutdown$1, xt as splitLines, y as failCause$4, yn as offerUnsafe, yt as runLast, z as groupedWithin, zt as transformPull } from "./Stream-
|
|
9
|
-
import { $ as deriveThreadFromProviderThread, $c as
|
|
10
|
-
import { $ as setCliDesiredCloudLink, $t as serverAuthCredentialReason, A as layer$171, An as entriesToAttributes, At as isLoopbackHost$1, Bn as consolePretty, Bt as ServerAuthCloudMintPublicKeyMissingError, C as shouldRetryRelayRequest, D as CloudManagedEndpointRuntime, Dn as reclaimSpaceShortfall, E as layer$180, En as reclaimFiles, F as readTailscaleSshEnabled, Fn as make$103, Ft as EnvironmentAuth, G as ExternalLauncher, Gn as log, Gt as isBrowserCookieCredential, H as hasCloudPublicConfig, Hn as make$104, Ht as ServerAuthLinkedCloudAccountMissingError, I as readTailscaleStatus, In as getCurrentVersion, J as import_websocket_server, Jn as appendPreResponseHandlerUnsafe, Jt as isServerAuthInvalidRequestError, K as layer$174, Kt as isServerAuthCredentialError, Lt as ServerAuthCloudHealthJwtSigningError, M as disableTailscaleServe, Mn as serviceNameUnsafe, Mt as issueHeadlessServeAccessInfo, N as ensureTailscaleServe, Nn as unknownToAttributeValue, Ot as formatHeadlessServeOutput, P as probeTailscaleHttpsEndpoint, Pn as layerFlusher, Q as readCliDesiredLinkMode, Qt as selectRequestCredential, R as CloudCliTokenManager, Rt as ServerAuthCloudLinkJwtSigningError, S as relayRequestError, Sn as fixPath, St as layer$169, Tt as makePersistedServerRuntimeState, U as relayUrlConfig, Un as tracerLogger, Ut as ServerAuthLinkedCloudAccountReadError, V as layer$173, Vn as layer$167, Vt as ServerAuthCloudRelayIssuerMissingError, W as isSecureRelayUrl, Wt as ServerAuthLinkedCloudAccountVerificationError, Yt as layer$170, Z as readCliDesiredCloudLink, Zt as parseBearerToken, _ as layer$179, _n as deriveAuthClientMetadata, _t as LINKED_ENVIRONMENTS_OFF, a as EnvironmentThemeService, an as DESKTOP_RENDERER_ORIGINS, b as layerServerRelayBroker, bn as parseOAuthScope, bt as isPrivateNetworkHost, cn as DPOP_REPLAY_MARKER_PREFIX, ct as NO_SANDBOX_SIGNATURE, dn as SessionStore, dt as PreviewBrowserSandboxError, en as serverAuthDpopFailureReason, et as RelayClientTracer, f as acquireServerOwnership, fn as fromSecret, ft as SETUP_SUBCOMMAND, g as HubLink, gn as base64UrlEncode, gt as sandboxDisabled, h as layer$178, hn as base64UrlDecodeUtf8, ht as sandboxBlocked, it as layerCloudflared, j as buildTailscaleHttpsBaseUrl, jn as fromConfig, jt as isWildcardHost, k as isRetryableManagedEndpointRuntimeStatus, kn as make$106, kt as formatHostForUrl, ln as verifyRequestDpopProof, lt as PreviewBrowserLibrariesError, m as layer$177, mn as PairingGrantStore, n as readTraceDiagnostics, nn as layerConfig, nt as withRelayClientTracing, on as browserApiCorsAllowedHeaders, p as AssetSync, pn as make$105, pt as diagnoseLaunchFailure, q as layer$168, qn as appendPreResponseHandler, qt as isServerAuthInternalError, rt as RelayClient, s as layer$172, sn as browserApiCorsAllowedMethods, t as layer$175, tn as serverAuthInvalidRequestReason, tt as withLocalTracing, u as mutateProjectWithClone, un as requestUrl, ut as PreviewBrowserRootError, v as writeSkillDirectory, vn as timingSafeEqualBase64Url, vt as PeerLinks, w as ConnectReachability, x as filterRelayResponse, xt as isTailnetHost, yn as encodeOAuthScope, yt as layer$176, zt as ServerAuthCloudMintJwtSigningError } from "./TraceDiagnostics-
|
|
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 { $c as none, $i as fail$2, $t as runForkWith, Ac as succeed$4, An as uninterruptibleMask, Ar as monotonicTimeNanos, Au as isString, Bc as fromUndefinedOr, Bi as succeed$3, Bo as make$78, Br as launch, Bs as append, Bt as partition, C as catchTag, Ca as pretty, Cn as timeoutOrElse, Cs as zero, Cu as isNotUndefined, D as context, Di as poll, Dn as txRetry, Dr as clockWith, Ds as empty, Dt as mapErrorEager, Ea as squash, Ec as isSuccess$1, Ei as makeUnsafe$1, En as tx, Er as Clock, Es as add, Et as mapError, Eu as isObject$2, F as exit, Fo as MinimumTraceLevel, Fr as effect, Fs as makeUnsafe, G as filterOrFail, Gc as getOrUndefined$1, Gn as yieldNow, Gr as succeed$1, Gs as filterMap, Gu as identity, Hc as getOrNull, Hn as withSpan, Hr as mergeAll, Hs as empty$1, Ht as provide$1, Hu as constant, I as fail$1, Ic as flatMap$1, In as withErrorReporting, Ir as effectContext, Is as merge, It as onInterrupt, Iu as cast, J as flatMap, Jc as isSome, Jo as TaggedClass, Jt as repeat, Ju as pipe, K as findFirst, Kc as isNone, Kl as assignProperty, Kn as zip, Ko as Class, Kr as succeedContext, Kt as race, Ku as memoize, L as failCause, Lc as flatten, Li as isFailure$1, Ln as withFiber, Lo as ParentSpan, Lr as effectDiscard, Ls as omit, Lt as option, M as die, Mc as contains$1, Mi as failCause$1, Mn as useSpan, Ms as getOrUndefinedUnsafe, Mt as never, Mu as isUndefined, Nc as exists, Nn as void_, Nr as buildWithMemoMap, Ns as getUnsafe, Nt as onError, O as contextWith, Oi as succeed$2, On as undefined_, Or as currentTimeMillis, Os as get, Ot as match, P as ensuring, Pc as filter, Ps as make$77, Pt as onExit, Q as fnUntraced, Qc as match$1, Qi as done$1, Qr as addFinalizer$1, Ri as isSuccess, Ro as Tracer, Rr as empty$2, Rs as Prototype, Rt as orDie, Ru as constFalse, S as catchReason, Sa as map$2, Sc as getOrUndefined, Sn as timeoutOption, St as map, T as catch_, Ta as reasonAnnotations, Ti as make$75, Tn as try_, Ts as Service$1, Uc as getOrThrow, Un as withTracer, Uo as encode, Ur as provide, Us as ensure, Ut as provideContext, V as filter$1, Vc as getOrElse, Vi as void_$1, Vn as withParentSpan, Vr as merge$1, Vt as promise, Vu as constVoid, Wi as IllegalArgumentError, Wn as withTracerEnabled, Wr as provideMerge, Ws as filter$2, Wt as provideService, Xo as taggedEnum, Xr as unwrap, Xt as result, Yi as annotate, Yo as TaggedError, Yr as tap$1, Ys as flatMap$2, Z as fn, Zc as map$1, Zo as Scheduler, Zr as Scope, Zt as retry, Zu as pipeArguments, _ as catchCauseIf, _i as doneUnsafe, _r as toStep, _s as seconds, _t as logError, a as all, aa as hasDies, an as scope, as as hours, at as forkScoped, bs as toMillis$1, bt as logWarning, c as annotateLogs, ca as hasInterruptsOnly, ci as CurrentLogLevel, cn as service, ct as gen, d as asSome, di as MinimumLogLevel, dn as succeed, ds as max, dt as interrupt, ec as isArrayNonEmpty, ei as close, el as orElse, en as runPromise, et as forEach, f as asVoid, fa as isDieReason, fi as TracerEnabled, fn as succeedNone, fr as jittered, fs as millis, ft as interruptible, g as catchCause, gi as done, gn as tap, gr as spaced, gt as logDebug, h as callback, hi as die$1, hn as sync, hr as setInputType, hu as hasProperty, i as addFinalizer, ia as fromReasons, ic as lastNonEmpty, ii as make$76, in as runSyncWith, is as fromInputUnsafe, it as forkIn, j as delay, jn as updateContext, jr as CurrentMemoMap, js as getOrUndefined$2, ju as isTagged, k as currentParentSpan, kn as uninterruptible, kr as currentTimeNanos, ks as getOption, kt as matchCauseEffect, ku as isReadonlyObject, l as annotateLogsScoped, li as CurrentLogSpans, ln as serviceOption, lr as fromStep, lt as ignore, ma as isFailReason, mi as _await, mn as suspend, ms as minutes$1, n as acquireRelease, na as findErrorOption, nc as isReadonlyArrayNonEmpty, ni as fork, ns as format, nt as forkChild, o as andThen, oi as provide$2, on as scoped, os as infinity, ot as fromOption, p as cached, pc as take, pi as TracerTimingEnabled, pn as succeedSome, pr as modifyDelay, ps as min, pt as isEffect, qn as zipWith, qt as raceFirst, r as acquireUseRelease, ra as findFail, rn as runSyncExit, rs as fromInput, rt as forkDetach, s as annotateCurrentSpan, sa as hasInterrupts, si as CurrentLogAnnotations, sn as scopedWith, sr as exponential, st as fromResult, ta as findError, tl as some, tn as runPromiseWith, ts as days, tt as forever, tu as equals, u as as, un as sleep, us as isZero, ut as ignoreCause, v as catchDefect, vc as fail$4, vi as fail$3, w as catchTags, wa as prettyErrors, wc as isFailure, wn as tryPromise, ws as Reference, x as catchIf, xn as timeout, xu as isNotNull, yc as failVoid, yi as failCause$2, yn as tapError, yr as upTo, yt as logInfo, zc as fromNullishOr, zi as match$2, zt as orElseSucceed, zu as constTrue } from "./Effect-DwQPN8rO.mjs";
|
|
5
|
+
import { $r as fromInput$1, A as Number$1, Ai as make$80, At as fromJsonString, Bi as toDate, Bn as getReferenceKey, Bt as isLessThanOrEqualTo, C as MutableJson, Ci as add$1, Cn as inetAddressFromIpString, Cr as transformEffect, D as NonEmptyString, Dt as encodeUnknownEffect, E as NonEmptyArray, Ei as isGreaterThan, F as Record, Fn as omit$1, Fr as Forbidden$1, G as TemplateLiteral, Gi as decode$1, Gr as toRecord, Gt as isPattern, H as StructWithRest, Hr as fromInput$2, Ii as nowUnsafe, Ir as InvalidValue, It as isGreaterThanOrEqualTo, J as Tuple, Ji as map$4, Jt as isSchemaError, Ki as decodeString, L as Redacted, M as Opaque, Mi as max$1, Mn as assign, Mt as is, Nn as lambda, Nr as transformOptional, Nt as isBetween, Pi as now, Pn as map$3, Pr as withDefault, Q as Uint8ArrayFromBase64, Qr as empty$5, R as SchemaError, Rt as isInt32, S as Literals, St as decodeUnknownSync, T as Never, Ti as formatIso, Tt as encodeSync, U as TaggedError$1, Ut as isMinLength, V as Struct, Vi as toEpochMillis, Vr as empty$4, Vt as isMaxLength, W as TaggedStruct, Zr as CurrentRedactedNames, _ as Finite, _n as withConstructorDefault, _t as decodeTo, ai as remove, ar as isNull, b as Json, bt as decodeUnknownOption, c as DateTimeUtc, cn as tag, d as Duration, di as value$1, dt as declare$1, er as getContextOwner, et as UndefinedOr, f as DurationFromMillis, fn as toEncoded$1, ft as decode$2, gn as toType, gr as toEncoded, ii as parseRetryAfter$1, in as refine, it as Void, ji as makeUnsafe$2, jr as transform, k as NullOr, kn as unixPathAddress, kr as passthrough, ln as toCodecArrayFromSingle, m as Error$1, mi as expireCookie, mn as toJsonSchemaDocument, mr as resolveDescription, mt as decodeExit, n as ArraySchema, nn as optional$6, nr as getLastEncoding, nt as Unknown, o as Cause, oi as retryAfterDelay, pi as empty$3, pn as toEquivalence, pt as decodeEffect, qi as encode$1, qt as isSchema, r as Boolean$1, rn as optionalKey, rt as UnknownFromJsonString, s as Class$1, si as set$1, sn as suspend$1, t as Any, ti as isHeaders, tt as Union, u as Defect, ui as make$79, un as toCodecJson, vn as withDecodingDefault, vt as decodeUnknownEffect, w as Natural, wt as encodeEffect, x as Literal, xt as decodeUnknownResult, y as Int$1, yi as set, yt as decodeUnknownExit, z as String$1 } from "./Schema-CdYZrGX6.mjs";
|
|
6
|
+
import { $ as WsSelfImproveSetMemoryMirrorRpc, $d as isRespondable, $f as isStreamNdjson, $h as RpcClientId, $m as AcpRegistryOperationError, $n as PreviewAutomationUnsupportedClientError, $o as deviceToolInstallMessage, $p as bodyJsonUnsafe, $r as OrchestratorMcpClientRequestId, $s as toRouterPath, $u as use, A as ComputerUseHostResponse, Aa as AntigravitySettings, Ac as OrchestrationV2ProviderSessionJson, Af as AuthRelayReadScope, Ah as ClientConnectionMethod, Ai as OrchestratorMcpThreadWaitInput, Al as ProviderUserInputAnswers, An as PreviewAutomationNoAvailableHostError, Ao as UsageReadError, Ap as redirect, As as EnvironmentInternalError, At as DesignGuideRequest, B as WsHubSyncResolveRpc, Ba as DEFAULT_SERVER_SETTINGS, Bc as OrchestrationV2SearchThreadError, Bf as authScopeRequiredResponse, Bm as ignore$1, Bn as PreviewAutomationResizeInput, Bo as DevicePlatformUnavailableError, Bp as filterStatusOk, Bs as RelayEnvironmentLinkChallengeResponse, Bt as DesignProposeRequest, C as COMPUTER_USE_JEV_TAKE_CODE, Cc as OrchestrationV2GetShellSnapshotError, Cf as AuthMcpClientAccess, Ci as OrchestratorMcpThreadInterruptResult, Cn as PreviewAutomationDialogInput, Cp as file, Cr as AttachmentCreateUploadUrlResult, Cs as EnvironmentHttpApi, Ct as DesignServiceError, Cu as ChatFileAttachment, D as ComputerUseHost, Dd as fromHeaders, Df as AuthOrchestrationReadScope, Di as OrchestratorMcpThreadReadResult, Dl as ProviderApprovalOption, Dm as uint8Array$1, Dn as PreviewAutomationInvalidSelectorError, Do as ResolvedKeybindingRule, Dp as mergeCookies, Ds as EnvironmentHttpForbiddenError, Dt as DesignApplyRequest, E as ComputerUseError, Ef as AuthOrchestrationOperateScope, Ei as OrchestratorMcpThreadReadInput, El as ProviderApprovalDecision, Em as text$3, En as PreviewAutomationExecutionError, Ep as jsonUnsafe, Es as EnvironmentHttpConflictError, Et as DesignApplyReceipt, F as clientRpcRequiredScopes, Ff as AuthTerminalReadScope, Fh as CommandId, Fl as ThreadPullRequestLinkSource, Fn as PreviewAutomationRecordingStatus, Fo as DeviceHostUnavailableError, Fp as setStatus, Fr as OrchestrationSearchThreadsError, Ft as DesignInspectReceipt, G as WsMcpRegistryProviderSignInCompleteRpc, Gl as SourceControlCloneRepositoryInput, Gm as isHttpMethod, Gn as PreviewAutomationSetColorSchemeResult, Go as DeviceToolOpenResult, Gs as RelayManagedEndpointRecoveryResponse, Gt as DesignStatusRequest, Gu as HttpRouter, H as WsHubSyncSetModeRpc, Hf as mcpClientScopes, Hh as MessageId, Hi as OrchestrationDispatchCommandError, Hl as pullRequestHostOf, Hm as layer$98, Hn as PreviewAutomationResultTooLargeError, Ho as DeviceToolError, Hs as RelayHookDeliveryProofPayload, Ht as DesignRenderRequest, I as RpcScopeAuthorization, Il as PullRequestLinkedThreadsResult, In as PreviewAutomationRecordingTooLargeError, Io as DeviceId, Ip as stream, Ir as OrchestrationSearchThreadsInput, It as DesignInspectRequest, J as WsMcpRegistryProviderSignInWaitRpc, Ja as ServerSettingsPatch, Jc as OrchestrationV2ThreadForkSourcePoint, Jf as getResponseEncodingSchema, Jh as ProjectId, Jl as SourceControlProviderKind, Jn as PreviewAutomationTabNotFoundError, Jo as DeviceToolUnavailableError, Jp as appendUrlParams, Jt as DesignValidateReceipt, Ju as cors, K as WsMcpRegistryProviderSignInStartRpc, Ka as ServerSettings, Ki as GitCommandError, Kl as SourceControlCloneRepositoryResult, Kn as PreviewAutomationSnapshot, Ko as DeviceToolScreenshotResult, Kp as schemaBodyJson, Kt as DesignStylesReceipt, Ku as RouteContext, L as WS_METHODS, La as DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL, Lc as OrchestrationV2RunStatus, Ld as isPersistedFile, Lf as EnvironmentAuthorizationError, Li as ScheduledTask, Ll as PullRequestOperationError, Ln as PreviewAutomationRecordingTransferError, Lo as DeviceNotFoundError, Lp as text$2, Lr as OrchestrationThreadSearchMatch, Ls as RelayApi, Lt as DesignLibraryManifest, M as ComputerUseOutput, Ma as BackgroundActivityProfileSelection, Md as schemaHeaders, Mf as AuthSettingsWriteScope, Mh as ClientOs, Mi as ThreadMetadataMcpUpdateInput, Mn as PreviewAutomationRecordingArtifact, Mo as DeviceBootError, Ms as EnvironmentRequestInvalidError, Mt as DesignHandoffRequest, Mu as isSecurity, N as computerUseJevStepCode, Nd as schemaSearchParams, Nf as AuthStandardClientScopes, Nh as ClientSurface, Ni as ThreadMetadataMcpUpdateResult, Nl as ThreadPullRequestKey, Nn as PreviewAutomationRecordingDeadlineExpiredError, No as DeviceEasAccountError, Np as setHeader, Ns as EnvironmentResourceNotFoundError, Nt as DesignImportTokensReceipt, O as ComputerUseHostRegistration, Od as HttpServerRequest, Of as AuthPreviewOperateScope, Oi as OrchestratorMcpThreadSendInput, Ol as ProviderInteractionMode, On as PreviewAutomationMalformedResponseError, Os as EnvironmentHttpInternalServerError, Ou as PersistChatAttachmentsError, P as CLIENT_GUARDED_RPC_SCOPES, Pa as CodexSettings, Pf as AuthTerminalOperateScope, Ph as ClientWebDeployment, Pi as SECRET_REQUEST_UNSAVED_NOTE, Pm as PlatformError, Pn as PreviewAutomationRecordingDesktopUpdateRequiredError, Po as DeviceHostId, Pp as setHeaders, Ps as EnvironmentScopeRequiredError, Pt as DesignImportTokensRequest, Pu as getSlotParseOptions, Q as WsSelfImproveSaveFindingsRpc, Qf as isNoContent, Qn as PreviewAutomationUnavailableError, Qo as LOCAL_DEVICE_HOST_LABEL, Qp as bodyJson, Qr as OrchestratorMcpCapabilitiesResult, Qt as ServerClient, Qu as serve, R as WsHubSyncConnectRpc, Rc as OrchestrationV2RuntimeRequest, Rd as limitsServices, Rf as MCP_PEER_LINK_SOFTWARE_ID, Rn as PreviewAutomationRemoteUnavailableError, Ro as DeviceOperationError, Rp as uint8Array, Rr as OrchestrationThreadSearchSource, Rs as RelayCloudEnvironmentHealthProofPayload, Sf as AuthMcpApprovalError, Si as OrchestratorMcpThreadInterruptInput, Sl as ProjectWriteFileError, Sm as isHttpClientError, Sn as PreviewAutomationControlReason, Sp as empty$6, Sr as AttachmentCreateUploadUrlInput, Ss as EnvironmentCloudEndpointUnavailableError, St as DesignRpcGroup, Su as ChatAttachmentId, T as ComputerUseBrowserChatRequest, Tf as AuthMcpTokenError, Ti as OrchestratorMcpThreadListResult, Tn as PreviewAutomationEvaluateInput, To as KeybindingsConfigError, Tp as isHttpServerResponse, Tr as AttachmentUploadSigningKeyError, Tu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, U as WsHubSyncSubscribeRpc, Uc as OrchestrationV2StopWorkflowInput, Ud as Path, Ui as PullRequestReviewGuide, Um as report$1, Un as PreviewAutomationSelectResult, Uo as DeviceToolListResult, Up as MaxBodySize, Ut as DesignSelection, V as WsHubSyncRunNowRpc, Va as DatabaseReclaimError, Vf as authScopeResponse, Vh as IsoDateTime, Vm as isIgnored, Vn as PreviewAutomationResizeResult, Vo as DeviceToolCloseInput, Vs as RelayEnvironmentLinkResponse, Vt as DesignRenderReceipt, Vu as getSuccessSchemas, W as WsMcpRegistryProviderSignInCancelRpc, Wh as NonNegativeInt, Wi as PullRequestReviewGuideRun, Wm as hasBody, Wn as PreviewAutomationSetColorSchemeInput, Wo as DeviceToolOpenInput, Ws as RelayManagedEndpointRecoveryRegistrationResponse, Wt as DesignStatusReceipt, X as WsRpcGroup, Xc as OrchestrationV2ThreadShell, Xf as getStatusSuccessSchema, Xi as VcsListRefsInput, Xm as makeParser, Xn as PreviewAutomationTargetNotEditableError, Xp as bearerToken, Xr as PeerLinkError, Xs as fromApi, Xt as make$82, Y as WsMcpRegistryProviderSignOutRpc, Yc as OrchestrationV2ThreadLaunchError, Yf as getStatusErrorSchema, Ym as encoder$1, Yn as PreviewAutomationTabTargetInput, Yo as DeviceToolVersions, Yt as DesignValidateRequest, Yu as middleware$1, Z as WsSelfImproveDismissFindingsRpc, Zf as getWithHeadersAnnotation, Zi as VcsListRefsResult, Zn as PreviewAutomationTimeoutError, Zo as LOCAL_DEVICE_HOST_ID, Zp as bodyFormData, Zr as PeerLinkRequestError, Zu as route, _ as Asset3dGenerateResult, _a as ProviderSetupError, _c as OrchestrationV2DispatchCommandResult, _d as transform$1, _f as AuthEnvironmentMaintainScope, _h as ProviderInstanceMutation, _i as OrchestratorMcpSaveScheduledTaskInput, _l as ProjectReadFileError, _n as PREVIEW_RECORDING_STOP_TIMEOUT_MS, _o as PreviewListResult, _p as fromWebSocket, _r as AssetWorkspaceContextNotFoundError, _t as SelfImproveSaveFindingsResult, _u as supportsProviderMcpSignIn, aa as isProviderAvailable, ac as OrchestrationV2AgentThreadLaunchWorkspaceStrategy, ad as TracerDisabledWhen$1, ag as ThreadId, ai as OrchestratorMcpDeleteScheduledTaskResult, al as linkOriginIsFenced, am as get$1, an as WorktreeMcpFailure, ao as resolveProjectProviderInstanceEnabled, ar as ReviewDiffPreviewSourceKind, as as ThreadDecisionsReadError, au as VcsUnsupportedOperationError, b as Asset3dSearchInput, bd as TracerDisabledWhen, bf as AuthFilesystemWriteScope, bi as OrchestratorMcpTaskCancelResult, bl as ProjectSearchEntriesError, bn as PreviewAutomationClientDisconnectedError, bo as PreviewTabId, bp as make$81, br as AssetWorkspaceResolutionError, bs as EnvironmentAuthenticatedAuth, bt as DesignListReceipt, bu as OrchestrationGetTurnDiffResult, cg as TurnItemId, ci as OrchestratorMcpEnvironmentLinksResult, cl as ToolActivityIcon, cn as WorktreeMcpStatusResult, cr as AssetCreateUrlInput, ct as SelfImproveDecision, dc as OrchestrationV2ContextTransfer, dd as mapRequest$1, df as AuthAccessReadScope, dg as toNumberUnsafe, di as OrchestratorMcpEnvironmentUnlinkResult, dl as OrchestrationProjectShell, dm as setHeader$1, do as PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE, dr as AssetProjectFaviconInspectionError, ds as resolveBrowserProfiles, dt as SelfImproveFindings, du as McpServerRuntimeState, ed as HttpServer, ef as symbol, ei as OrchestratorMcpCreateThreadsInput, em as bodyStream, ep as isStreamSchema, er as PreviewAutomationWaitForInput, et as WsSelfImproveSubscribeSettingsRpc, ff as AuthAccessStreamError, fi as OrchestratorMcpFailure, fl as Project, fm as setHeaders$1, fr as AssetProjectFaviconNotFoundError, ft as SelfImproveLabel, g as Asset3dGenerateInput, gc as OrchestrationV2DispatchCommandError, gf as AuthDiagnosticsReadScope, gh as ProviderInstanceId, gi as OrchestratorMcpRequestSecretResult, gl as ProjectMutationError, gn as PREVIEW_AUTOMATION_V1_OPERATIONS, gp as WebSocketConstructor, gr as AssetWorkspaceAssetNotFoundError, gs as DESKTOP_UPDATE_RESTART_MARKER_FILE, gt as SelfImproveReviewers, h as Asset3dFiles, hc as OrchestrationV2DelegatedFrom, hd as tap$2, hh as ProviderDriverKind, hi as OrchestratorMcpRequestSecretInput, hl as ProjectMutation, hn as PREVIEW_AUTOMATION_SERVER_OPERATIONS, hp as WebSocket, hr as AssetWorkspaceAssetInspectionError, hs as DesktopBrowserEvent, ht as SelfImproveReview, ic as OrchestrationGetWorkflowScriptError, id as HttpClient, ii as OrchestratorMcpDeleteScheduledTaskInput, il as latestProviderTurnForAttempt, im as del, io as resolveIdleCompaction, ip as isWithHeadersValue, ir as ReviewDiffPreviewSource, is as ThreadDecision, it as WsSubscribeThreadDecisionsRpc, iu as VcsRepositoryDetectionError, j as ComputerUseJsInput, ja as BackgroundActivityProfile, jd as schemaCookies, jf as AuthRelayWriteScope, jh as ClientDeviceType, ji as OrchestratorMcpThreadWaitResult, jl as RuntimeMode, jn as PreviewAutomationOpenInput, jo as DeviceActionUnavailableError, jr as FilesystemBrowseError, js as EnvironmentOperationForbiddenError, jt as DesignHandoffReceipt, k as ComputerUseHostReport, kd as ParsedSearchParams, kf as AuthProvidersManageScope, ki as OrchestratorMcpThreadSendResult, kl as ProviderRequestKind, km as FileSystem, kn as PreviewAutomationNavigateInput, ks as EnvironmentHttpUnauthorizedError, kt as DesignGuideReceipt, ku as getProviderAttachmentLimitError, lf as ORCHESTRATION_PROTOCOL_QUERY_PARAM, lg as bytes, li as OrchestratorMcpEnvironmentTarget, ll as ToolActivityNativeAppReference, lr as AssetGitHubMediaUrlValidationError, lt as SelfImproveError, lu as McpServerId, m as Asset3dFetchInput, mf as AuthAccessWriteScope, mh as PROVIDER_DISPLAY_NAMES, mi as OrchestratorMcpListScheduledTasksResult, ml as ProjectListEntriesError, mm as setUrlParams, mn as McpCapabilityUnavailableError, mo as PreviewClearProfileError, mr as AssetSigningKeyLoadError, ms as DesktopBrowserCommand, mt as SelfImproveResult, na as ServerProviderUpdateError, ng as RuntimeRequestId, ni as OrchestratorMcpDelegateTaskInput, no as requiredScopesForProjectMutation, np as isUpgrade, ns as DecisionInput, nt as WsSelfImproveUndoSaveRpc, oa as isProviderTextGenerationCapable, of as make$84, og as TrimmedNonEmptyString, oh as DEFAULT_MODEL, oi as OrchestratorMcpEnvironmentLinkInput, om as make$85, on as WorktreeMcpHandoffInput, op as normalize, or as ATTACHMENT_UPLOAD_URL_TTL_MS, ou as ModelSelection, pd as retry$1, pi as OrchestratorMcpListScheduledTasksInput, pl as ProjectCreatePayload, pn as BrowserNavigationTarget, po as PREVIEW_VIEWPORT_PRESET_IDS, pr as AssetProjectFaviconResolutionError, pt as SelfImproveRequest, pu as PluginId, q as WsMcpRegistryProviderSignInStateRpc, qc as OrchestrationV2SweepItem, qf as getResponseEncoding, qh as PositiveInt, qn as PreviewAutomationStatus, qo as DeviceToolTargetInput, qs as RelayOkResponse, qt as DesignStylesRequest, qu as add$2, rc as ORCHESTRATION_V2_WS_METHODS, rg as ScheduledTaskId, ri as OrchestratorMcpDelegateTaskResult, rl as isProviderNativeSubagentThread, ro as requiredScopesForServerSettingsPatch, rp as isWithHeaders, rr as ReviewDiffFileStat, rs as DecisionResult, rt as WsSelfImproveUpdateSettingsRpc, sc as OrchestrationV2AppThreadJson, sd as filterStatusOk$1, sf as ExecutionEnvironmentDescriptor, si as OrchestratorMcpEnvironmentLinkResult, sm as post, sn as WorktreeMcpHandoffResult, sp as CloseEvent, sr as AssetAttachmentNotFoundError, ss as BUILT_IN_BROWSER_PROFILES, st as Service$2, su as McpRegistryRpcError, tf as toResponse, tg as RunId, ti as OrchestratorMcpCreateThreadsResult, tn as make$83, tp as isStreamUint8Array, tr as SERVER_BROWSER_AUTOMATION_CLIENT_ID, tt as WsSelfImproveSubscribeThreadFindingsRpc, ui as OrchestratorMcpEnvironmentUnlinkInput, ul as UsageLimitSourceError, um as setBody, uo as FILL_PREVIEW_VIEWPORT, ur as AssetPreviewTypeValidationError, us as findBrowserProfile, ut as SelfImproveEvidence, v as Asset3dGenerateStatusInput, va as ProviderUploadFeedbackError, vh as defaultInstanceIdForDriver, vi as OrchestratorMcpScheduleTaskResult, vn as PreviewAutomationActInput, vr as AssetWorkspaceContextResolutionError, vs as RelayClientInstallFailedError, vt as UserInputRankError, vu as OrchestrationGetFullThreadDiffError, w as COMPUTER_USE_MAX_OUTPUT_CHARS, wc as OrchestrationV2GetThreadProjectionError, wf as AuthMcpRegistrationError, wi as OrchestratorMcpThreadListInput, wl as DEFAULT_PROVIDER_INTERACTION_MODE, wn as PreviewAutomationError, wo as KeybindingRule, wr as AttachmentDeleteInput, ws as EnvironmentHttpBadRequestError, wt as DesignSubscribeRequest, wu as ChatImageAttachment, x as Asset3dSearchResult, xd as compression, xf as AuthGrantScope, xi as OrchestratorMcpTaskStatusInput, xl as ProjectUpdatePayload, xn as PreviewAutomationControlInterruptedError, xo as PreviewViewportSetting, xp as makeWebSocket$2, xr as AssetWorkspaceRootNormalizationError, xs as EnvironmentAuthenticatedPrincipal, xt as DesignListRequest, y as Asset3dGenerateStatusResult, yd as withScope, yf as AuthFilesystemReadScope, yi as OrchestratorMcpTaskCancelInput, yl as ProjectSearchContentsError, yn as PreviewAutomationActInputs, yo as PreviewStreamHostSetup, yp as isSocketError, yr as AssetWorkspacePathValidationError, ys as EnvironmentAuthInvalidError, yt as DesignHumanApplyRequest, yu as OrchestrationGetTurnDiffError, z as WsHubSyncDisconnectRpc, za as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, zh as EnvironmentId, zl as PullRequestState, zm as TypeId$7, zn as PreviewAutomationRequestQueueClosedError, zo as DevicePlatformAvailability, zp as urlParams, zr as HubSyncError, zs as RelayCloudMintCredentialProofPayload, zt as DesignProposeReceipt, zu as getErrorSchemas } from "./sha2-BjjJcoUu.mjs";
|
|
7
|
+
import { $ as PROJECT_FAVICON_FALLBACK_MARKER, $n as NoOpProviderEventLoggers, $t as layer$134, A as ThreadManagementError, An as makeEventNdjsonLogStore, Ar as offer, At as GitWorkflowService, B as ProviderSessionManagerV2, Bn as openZipArchive, Br as set$2, Bt as layer$101, C as ManagedProjectFolders, Cn as providerAuthReturnUrl, Cr as AgentScope, Ct as CheckpointStore, D as createTranscriptJsonReader, Dn as layer$130, Dr as layer$117, Dt as VcsStatusBroadcaster, E as layer$99, En as codexRateLimitsToLimits, Er as TextGeneration, Et as parseTurnDiffFilesFromNumstat, F as latestRun, Fn as layer$129, Fr as make$86, Ft as layer$127, G as stringArray, Gn as isWorkspaceImagePreviewPath, Gr as make$90, Gt as layer$128, H as layer$125, Hn as WORKSPACE_IMAGE_PREVIEW_EXTENSIONS, Hr as make$91, Ht as PortDiscovery, I as withCreationProvenance, In as layerModelCatalog, Ir as update, It as ProjectSetupScriptRunner, J as layer$126, Jn as delegatedTaskProgress, Jt as layer$104, K as stringRecord, Kn as isWorkspacePreviewEntryPath, Kt as layer$110, L as OrchestratorV2, Ln as resolveProviderCompatibility, Lr as changes, Lt as TerminalManager, M as isActiveRun, Mn as readContainedWorkflowFile, Mr as take$1, Mt as GitManager, N as isTerminalRunStatus, Nn as BUNDLED_MODEL_MANIFEST, Nr as unbounded, Nt as layer$115, O as ProviderAuthService, On as EMPTY_TOTALS, Or as ProviderInstanceRegistry, Ot as layer$119, P as latestActiveRun, Pn as ModelManifest, Pr as get$2, Pt as ProviderRegistry, Q as layer$124, Qn as mergeProviderInstanceEnvironment, Qt as layer$133, R as OrchestratorV2Error, Rn as layer$105, Rr as get$3, Rt as layer$122, S as layer$116, Sn as codexCallbackUrl, Sr as resolveNodeExecutable, St as checkpointRefForScopeOrdinal, T as AgentSessionScanner, Tn as codexPlanLabel, Tr as withWorkspaceLease, Tt as isGitImport, U as isRecord$1, Un as audioMimeTypeFromExtension, Ur as run, Ut as layer$121, V as McpRegistry, Vn as WORKSPACE_BROWSER_PREVIEW_EXTENSIONS, Vr as update$1, Vt as layer$102, W as registryNameFor, Wn as hostPreviewMimeTypeFromExtension, Wr as get$4, Wt as deriveProviderInstanceConfigMap, X as layerObserver, Xn as withExecutedModelNote, Xt as BUILT_IN_USAGE_DRIVERS, Y as layerCallbackRoute, Yn as subagentResultForRun, Yt as layer$103, Z as WorkspaceEntries, Zn as layer$132, Zt as layer$106, _ as SecretRequests, _n as JoseError, _r as AcpRegistryRuntimeCoordinator, _t as threadLinkFor, a as layerProjectService, an as makeCodexChatGptAuth, ar as Protocol$1, at as layer$113, b as layer$100, bn as layer$135, br as layer$131, bt as DispatchModeLimit, c as ProviderRuntimeRecoveryService, cn as sign, cr as RpcSerialization, ct as layer$136, d as layer$123, dn as generateKeyPair, dr as layerJsonRpc, dt as McpInvocationContext, en as layer$107, er as ProviderEventLoggers, et as isProjectFaviconPath, f as ScratchThreadPromotion, fn as importPkcs8, fr as RequestId$3, ft as clientModeCeiling, g as relayHookBaseUrl, gn as AlgorithmNotAllowed, gr as toAcpRegistryOperationError, gt as requireThreadScope, h as WEBHOOK_ROUTE_PREFIX, hn as importSpki, hr as layerFromHost, ht as requireThreadMcpCapability, i as layerProduction, in as withUsageLimitsCommands, ir as makeProtocolWithHttpEffectWebsocket, it as layer$114, j as ThreadManagementService, jn as COMPACTION_SUGGESTION_MIN_TOKENS, jr as shutdown, jt as layer$118, k as McpAppRequests, kn as claudeUsageResponseToLimits, kr as clear, kt as layerAutoPullPolicy, l as runDaemon, ln as exportPkcs8, lr as jsonRpc, lt as LAUNCHED_BY_HEADER, m as ScheduledTaskWebhookOrigin, mn as importPublic, mr as AcpRegistryCatalog, mt as requireMcpCapability, n as layerEventInfrastructure, nn as layer$109, nr as make$88, nt as layer$111, o as layerProjectSetupScriptRunner, on as decodeUnverified, or as make$89, ot as layerAnalytics, p as ScheduledTaskService, pn as importPrivate, pr as claudeSkillInvocation, pt as hiddenWhileLinksOff, q as transportFromJsonEntry, qn as makeUnavailableUsageLimits, qt as BackgroundPolicy, rn as sameUsageLimitCommandCoverage, rr as makeProtocolWithHttpEffect, rt as layer$112, s as layerReports, sn as verify, sr as makeNoSerialization, st as McpSessionRegistry, tn as layer$108, tr as Protocol, tt as PullRequestService, u as PreviewManager, un as exportSpki, ur as layerJson, ut as MODE_LIMIT_HEADER, v as ThreadLaunchService, vn as isJoseError, vr as PtyAdapter, vt as ProviderAdapterRegistryV2, w as AgentSessionImporter, wn as CodexInstallation, wr as agentScopeCommand, wt as layer$120, x as WorktreeSetupTracker, xn as codexAuthorizationRequest, xr as nodeRuntimeUnavailableMessage, xt as runOutcome, y as Decisions, yn as AnalyticsService, yr as PtySpawnError, yt as layerFromProviderInstanceRegistry, z as queuedRunsInDeliveryOrder, zn as AntigravityInstallation, zr as make$87, zt as NativeTelemetryClient } from "./runtimeLayer-ChPBglJB.mjs";
|
|
8
|
+
import { $ as mkString, A as fromEffect, At as tick, Bt as unfold, Ct as suspend$2, Dt as takeWhile, E as forever$1, F as fromPull, G as mapAccum, H as isStream, Hn as await_, Ht as zipLatestWith, I as fromQueue, In as unbounded$1, J as mapEffect, Jn as join, M as fromIterable, Mn as shutdown$2, Nn as sliding, On as unbounded$2, Ot as tap$3, P as fromPubSub, Pn as subscribe, Pt as toPull, R as fromSubscription, S as filterMap$1, St as succeed$5, T as flattenIterable, Tn as take$2, Tt as takeUntil, U as make$93, Un as getCurrent, Vn as awaitAll, Vt as unwrap$1, W as map$5, Wn as interrupt$1, X as merge$2, Y as mapError$1, Yn as runIn, Z as mergeAll$1, _ as ensuring$1, _n as offer$1, _t as runForEachArray, a as catch_$1, an as makeUnsafe$3, b as filter$3, bt as scoped$1, c as concat$1, d as die$2, dn as endUnsafe, dt as run$1, et as mkUint8Array, fn as fail$6, ft as runCollect, g as encodeText, gn as make$94, gt as runForEach, h as empty$7, in as make$92, it as pipeThroughChannel, kn as publish, l as debounce, ln as dropping, lt as repeat$1, m as drop, mn as failCauseUnsafe, mt as runFold, n as catchCause$1, nt as orDie$1, o as changes$1, ot as provideContext$1, pn as failCause$3, pt as runDrain, q as mapArrayEffect, qt as last, r as catchIf$1, s as changesWith, sn as clear$1, t as callback$1, u as decodeText, un as end, ut as retry$2, v as fail$5, vn as offerAll, vt as runHead, w as flatMap$3, x as filterEffect, xn as shutdown$1, xt as splitLines, y as failCause$4, yn as offerUnsafe, yt as runLast, z as groupedWithin, zt as transformPull } from "./Stream-F-Z4HJeD.mjs";
|
|
9
|
+
import { $ as deriveThreadFromProviderThread, $c as clear$2, $i as isNetworkPath, $n as fromReadable, $s as collectUint8StreamText, A as BackgroundGitWork, Aa as injectMcpAppCookieBootstrap, Ac as isWindows, Ai as parseBase64DataUrl, An as ServiceLauncherClient, Ao as readOnly, Ar as version, As as makeTraceSink, B as removeLinkedWorktree, Ba as HTML_RENDER_THEME_GUIDE, Bl as updateAndGet, Bn as layer$145, Bo as serviceStateHasPendingUpdate, Br as resolveStaticDir, Bt as layer$162, Cc as HomeDirectory, Ci as parseThreadSegmentFromAttachmentId, Co as PersistenceSqlError, Cr as SecretStoreConcurrentReadError, Dc as Platform, Di as sweepStalePendingAttachments, Dl as make$101, Do as findOneOption, Dr as isSecretAlreadyExistsError, Du as uuidV4Unsafe, Ea as MCP_APP_MAX_HTML_BYTES, Ei as resolveAttachmentPathById, En as layer$159, Eo as findAll, Er as ServerSecretStore, Es as decodeOtlpTraceRecords, Et as rpcRequestsTotal, F as PATCH_RENDER_PREFIX_ARGS, Fi as turnItemUpdateCanEndBackgroundWork, Fn as layer$147, Ga as htmlRenderThemeFragment, Gr as resolveServerBackgroundActivitySettings, H as resolveProjectSettings, Ha as blankNonMarkup, Hc as map$6, Hl as isGreaterThanOrEqualTo$1, Hr as resolveReviewGuideModelSelection, Hu as snapshotUnsafe, I as makeIsServerInternalPath, Ia as HTML_RENDER_LAYOUT_GUIDE, Ic as get$7, Il as make$96, In as writeAllToFileDescriptor, It as withMetrics, J as layer$144, Ja as compileResolvedKeybindingRule, Jc as tag$1, Jo as layer$143, Jr as fromJsonStringPretty, Ka as injectHtmlRenderBootstrap, Kc as exhaustive, La as HTML_RENDER_MAX_HEIGHT, Lc as make$100, Ll as modify, Ln as subscribeBeforeSnapshot, M as layer$140, Ma as injectMcpAppThemeBootstrap, Mi as backgroundWorkHoldsCompletion, Ml as nextIntBetween, Ms as RotatingFileSink, N as VcsProcess, Ni as derivePendingBackgroundWork, Nl as get$6, Nn as layer$148, No as SERVICE_STATE_FILE, Nr as RuntimeMode$1, O as layer$150, Oc as UserId, Oi as toSafeThreadAttachmentSegment, Ol as makeWith, On as ServerSelfUpdate, Or as isSecretStoreError, Os as layerOtlpSerialization, Ot as secretRequestsTotal, P as layer$166, Pl as getAndSet, Pn as DesktopTelemetryReceiver, Po as SERVICE_STOP_MARKER_FILE, Pr as ServerConfig, Ps as OtlpSerialization, Qa as parseKeybindingWhenExpression, Qc as awaitEmpty, Qs as withLegacyUltracodeEffort, R as isFilesystemRoot, Ra as HTML_RENDER_MEASURE_FONTS, Rc as modify$1, Ri as runRanAfter, Rl as set$3, Rt as make$98, Sa as toolOutputImages, Sc as ExecutablePath, Si as parseAttachmentUuid, Sn as layer$149, So as PersistenceDecodeError, Sr as resolveRootCliCommand, T as unquoteGitPatchPath, Ti as resolveAttachmentPath, Tn as ServerEnvironmentIdentity, To as makeLiveStreamBudget, Tr as SecretStoreEncodeError, Ts as causeErrorTag, Tt as rpcRequestDuration, U as resolveWorktreeCleanup, Ua as clampHtmlRenderHeight, Uc as SqlClient, Ul as Signature, Ut as make$102, Va as HTML_RENDER_TOOL_NAME, Vc as update$3, Vi as formatThreadLink, Vl as getType, Vn as redactServerSettingsForClient, Vt as RepositoryIdentityResolver, W as ProjectService, Wa as htmlRenderTheme, Wc as SpanPropagationEnabled, Xa as mergeWithDefaultKeybindings, Xc as value$2, Xi as remapComposerContextAttachments, Xn as encode$2, Xr as layerResourceAttributes, Y as LegacyV1ThreadImporter, Ya as compileResolvedKeybindingsConfig, Yc as tags, Yn as decode$3, Yr as fromLenientJson, Za as parseKeybindingShortcut, Zc as when, Zn as isNdjsonError, _ as layer$142, _a as MAX_TOOL_OUTPUT_IMAGE_BASE64_LENGTH, _c as RequestInit, _i as chatAttachmentStableKey, _l as option$1, _n as expandHomePath, _o as sourceControlRepositorySelector, _r as isAgentActivityPublishingEnabledValue, _s as resolveLatestProviderVersion, a as normalizePreviewUrl, an as WorkspacePathOutsideRootError, ao as resolveThreadPullRequestChains, ar as CLOUD_LINKED_USER_ID, at as ProjectStoreV2, b as firstNonEmptyLine, bi as createPendingAttachmentId, bo as OrchestrationEventStore, bs as ProviderLatestVersions, cc as resolveSpawnCommand, co as threadPullRequestsOf, cr as HOLD_WEBHOOKS_WHILE_OFFLINE_SECRET, cu as Digest, d as SourceControlProviderRegistry, dc as make$97, di as THREAD_HISTORY_SNAPSHOT_ROW_LIMIT, dn as isWithinRoot, do as parseChangeRequestUrl, dr as RELAY_ISSUER_SECRET, du as sha256, ei as NetService, el as make$95, eo as P4_CODE_DARK_THEME_COLORS, f as layer$138, fa as capProjectionCheckpointFilesForWire, fc as ChildProcessSpawner, fi as buildBoundedThreadProjection, fl as String$2, fn as layer$156, fo as siblingPullRequestUrl, fr as RELAY_URL_SECRET, ft as ServerActivation, g as layer$141, ga as threadStreamEventItem, gi as attachmentRelativePath, gr as encodeEndpointRuntimeConfigJson, h as VcsDriverRegistry, hi as attachmentFileExtension, hr as encodeConfirmedOriginJson, hs as makeTargetedProviderUpdateAction, ii as ProjectionStoreV2, in as layer$158, io as normalizeThreadPullRequestKey, ir as CLOUD_ENDPOINT_RUNTIME_CONFIG, j as GitVcsDriver, ji as resolveAttachmentRelativePath, jn as layer$165, jr as writeFileStringAtomically, js as redactCauseCredentials, jt as webhookDeliveriesTotal, kc as WorkingDirectory, ki as inferImageExtension, kn as layer$164, kr as layer$146, ks as makeLocalFileTracer, l as SourceControlRepositoryService, li as InvalidThreadHistoryCursorError, lo as visibleThreadPullRequests, lr as PUBLISH_AGENT_ACTIVITY_SECRET, m as layer$139, ma as projectThreadProjectionForWire, mi as PENDING_ATTACHMENT_THREAD_SEGMENT, mr as decodeRuntimeConfig, mt as forkParkedFiber, n as isLoopbackHost, nc as isCommandAvailable, ni as ProjectionMaintenanceV2, nn as ProjectFaviconResolver, o as ProjectCloneTracker, on as WorkspacePaths, oo as threadPullRequestKeyOf, or as CLOUD_LINK_REVOKED, ot as layer$152, p as BUILT_IN_SOURCE_CONTROL_DRIVERS, pa as projectDomainEventForWire, pi as decodeThreadHistoryCursor, po as canonicalRepositoryKey, pr as decodeConfirmedOrigin, pt as forkParked, q as ThreadCommandExecutor, qa as DEFAULT_KEYBINDINGS, qc as is$1, qo as ProcessRunner, qs as modelSelectionCommandType, ri as layer$160, rn as layer$157, ro as legacyThreadPullRequestKey, rr as CLOUD_ENDPOINT_CONFIRMED_ORIGIN, s as layer$154, sc as resolveCommandPath, si as layer$151, so as threadPullRequestKeysEqual, sr as CLOUD_MINT_PUBLIC_KEY, ti as layer$155, tl as run$2, to as P4_CODE_LIGHT_THEME_COLORS, ts as collectStreamAsString, u as layer$153, ui as THREAD_HISTORY_PAGE_POLICY, uo as changeRequestUrlFor, ur as RELAY_ENVIRONMENT_CREDENTIAL_SECRET, us as enrichProviderSnapshotWithVersionAdvisory, uu as sha1, v as GitHubCredentials, vc as layer$137, vi as createAttachmentId, vr as readHoldWebhooksWhileOffline, vt as increment, wc as Hostname, wi as planAttachmentClaim, wl as invalidate, wn as ServerEnvironment, wo as bufferLiveStream, wr as SecretStoreDecodeError, wu as SecureRandom, x as PullRequestProviderError, xc as Environment, xi as parseAttachmentFileExtension, xl as get$5, xn as make$99, xo as layer$163, xr as resolveHostCliCommand, xs as layer$161, y as detailFromCause, yc as Architecture, yi as createDeterministicAttachmentId, yo as layerFromOrchestrationEventStore, yr as readRelayConnection, z as managedWorktreesDirectories, za as HTML_RENDER_MEASURE_WIDTHS, zc as modifyEffect, zl as update$2, zn as ServerSettingsService, zr as otlpResource, zt as ProjectEnrichmentService } from "./preview-BGylKXB6.mjs";
|
|
10
|
+
import { $ as setCliDesiredCloudLink, $t as serverAuthCredentialReason, A as layer$171, An as entriesToAttributes, At as isLoopbackHost$1, Bn as consolePretty, Bt as ServerAuthCloudMintPublicKeyMissingError, C as shouldRetryRelayRequest, D as CloudManagedEndpointRuntime, Dn as reclaimSpaceShortfall, E as layer$180, En as reclaimFiles, F as readTailscaleSshEnabled, Fn as make$103, Ft as EnvironmentAuth, G as ExternalLauncher, Gn as log, Gt as isBrowserCookieCredential, H as hasCloudPublicConfig, Hn as make$104, Ht as ServerAuthLinkedCloudAccountMissingError, I as readTailscaleStatus, In as getCurrentVersion, J as import_websocket_server, Jn as appendPreResponseHandlerUnsafe, Jt as isServerAuthInvalidRequestError, K as layer$174, Kt as isServerAuthCredentialError, Lt as ServerAuthCloudHealthJwtSigningError, M as disableTailscaleServe, Mn as serviceNameUnsafe, Mt as issueHeadlessServeAccessInfo, N as ensureTailscaleServe, Nn as unknownToAttributeValue, Ot as formatHeadlessServeOutput, P as probeTailscaleHttpsEndpoint, Pn as layerFlusher, Q as readCliDesiredLinkMode, Qt as selectRequestCredential, R as CloudCliTokenManager, Rt as ServerAuthCloudLinkJwtSigningError, S as relayRequestError, Sn as fixPath, St as layer$169, Tt as makePersistedServerRuntimeState, U as relayUrlConfig, Un as tracerLogger, Ut as ServerAuthLinkedCloudAccountReadError, V as layer$173, Vn as layer$167, Vt as ServerAuthCloudRelayIssuerMissingError, W as isSecureRelayUrl, Wt as ServerAuthLinkedCloudAccountVerificationError, Yt as layer$170, Z as readCliDesiredCloudLink, Zt as parseBearerToken, _ as layer$179, _n as deriveAuthClientMetadata, _t as LINKED_ENVIRONMENTS_OFF, a as EnvironmentThemeService, an as DESKTOP_RENDERER_ORIGINS, b as layerServerRelayBroker, bn as parseOAuthScope, bt as isPrivateNetworkHost, cn as DPOP_REPLAY_MARKER_PREFIX, ct as NO_SANDBOX_SIGNATURE, dn as SessionStore, dt as PreviewBrowserSandboxError, en as serverAuthDpopFailureReason, et as RelayClientTracer, f as acquireServerOwnership, fn as fromSecret, ft as SETUP_SUBCOMMAND, g as HubLink, gn as base64UrlEncode, gt as sandboxDisabled, h as layer$178, hn as base64UrlDecodeUtf8, ht as sandboxBlocked, it as layerCloudflared, j as buildTailscaleHttpsBaseUrl, jn as fromConfig, jt as isWildcardHost, k as isRetryableManagedEndpointRuntimeStatus, kn as make$106, kt as formatHostForUrl, ln as verifyRequestDpopProof, lt as PreviewBrowserLibrariesError, m as layer$177, mn as PairingGrantStore, n as readTraceDiagnostics, nn as layerConfig, nt as withRelayClientTracing, on as browserApiCorsAllowedHeaders, p as AssetSync, pn as make$105, pt as diagnoseLaunchFailure, q as layer$168, qn as appendPreResponseHandler, qt as isServerAuthInternalError, rt as RelayClient, s as layer$172, sn as browserApiCorsAllowedMethods, t as layer$175, tn as serverAuthInvalidRequestReason, tt as withLocalTracing, u as mutateProjectWithClone, un as requestUrl, ut as PreviewBrowserRootError, v as writeSkillDirectory, vn as timingSafeEqualBase64Url, vt as PeerLinks, w as ConnectReachability, x as filterRelayResponse, xt as isTailnetHost, yn as encodeOAuthScope, yt as layer$176, zt as ServerAuthCloudMintJwtSigningError } from "./TraceDiagnostics-D1Qz3qce.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-O5AWAEzD.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";
|
|
15
15
|
import * as NodePath from "node:path";
|
|
16
|
+
import * as NodeUtil from "node:util";
|
|
16
17
|
import * as NodeChildProcess from "node:child_process";
|
|
17
18
|
import * as NodeCrypto from "node:crypto";
|
|
18
|
-
import * as NodeUtil from "node:util";
|
|
19
19
|
import * as NodeFSP from "node:fs/promises";
|
|
20
20
|
import * as NodeNet from "node:net";
|
|
21
21
|
import * as NodeStringDecoder from "node:string_decoder";
|
|
@@ -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-CQkeNW9b.mjs")))();
|
|
3620
3620
|
return await renderer;
|
|
3621
3621
|
} catch (error) {
|
|
3622
3622
|
renderer = void 0;
|
|
@@ -17935,7 +17935,7 @@ async function runDesignTransfer(request, options, emit, signal) {
|
|
|
17935
17935
|
const native = async () => {
|
|
17936
17936
|
check();
|
|
17937
17937
|
try {
|
|
17938
|
-
return renderer ??= await (options.loadRenderer ?? (() => import("./renderer-
|
|
17938
|
+
return renderer ??= await (options.loadRenderer ?? (() => import("./renderer-CQkeNW9b.mjs")))();
|
|
17939
17939
|
} catch {
|
|
17940
17940
|
throw fail("Optional renderer unavailable; install skia-canvas 3.0.8 for this host", "renderer-unavailable");
|
|
17941
17941
|
}
|
|
@@ -20729,6 +20729,11 @@ const flushCompileCache = try_(() => {
|
|
|
20729
20729
|
if (!Reflect.get(globalThis, Symbol.for("p4code.preparedServerCache"))) NodeModule.flushCompileCache();
|
|
20730
20730
|
}).pipe(ignore);
|
|
20731
20731
|
// ../../packages/shared/src/agentAwareness.ts
|
|
20732
|
+
/** Provider-native subagents ask on their parent; the coordinator answers child questions. */
|
|
20733
|
+
function subagentAwaitsApproval(thread) {
|
|
20734
|
+
const kind = thread.pendingRuntimeRequest?.kind;
|
|
20735
|
+
return kind !== void 0 && kind !== "auth_refresh" && kind !== "user_input" && thread.lineage.relationshipToParent === "subagent" && !isProviderNativeSubagentThread(thread) && thread.activityRunStatus != null;
|
|
20736
|
+
}
|
|
20732
20737
|
function buildAgentAwarenessDeepLink(input) {
|
|
20733
20738
|
return `/threads/${encodeURIComponent(input.environmentId)}/${encodeURIComponent(input.threadId)}`;
|
|
20734
20739
|
}
|
|
@@ -20736,7 +20741,8 @@ function buildAgentAwarenessDeepLink(input) {
|
|
|
20736
20741
|
function projectThreadAwarenessV2(input) {
|
|
20737
20742
|
const { environmentId, project, thread } = input;
|
|
20738
20743
|
if (thread.lineage.relationshipToParent === "subagent") return null;
|
|
20739
|
-
const
|
|
20744
|
+
const subagentRequest = input.pendingSubagentRequest ?? null;
|
|
20745
|
+
const phase = resolveThreadAwarenessPhaseV2(thread, subagentRequest !== null);
|
|
20740
20746
|
if (phase === null) return null;
|
|
20741
20747
|
const detail = phase === "completed" ? "Review the completed task." : phase === "failed" ? "The agent run failed." : void 0;
|
|
20742
20748
|
return {
|
|
@@ -20748,16 +20754,17 @@ function projectThreadAwarenessV2(input) {
|
|
|
20748
20754
|
headline: headlineForPhase(phase),
|
|
20749
20755
|
...detail === void 0 ? {} : { detail },
|
|
20750
20756
|
modelTitle: thread.modelSelection.model,
|
|
20751
|
-
updatedAt: formatIso(thread.updatedAt),
|
|
20757
|
+
updatedAt: formatIso(subagentRequest === null ? thread.updatedAt : max$1(thread.updatedAt, subagentRequest.updatedAt)),
|
|
20752
20758
|
deepLink: buildAgentAwarenessDeepLink({
|
|
20753
20759
|
environmentId,
|
|
20754
20760
|
threadId: thread.id
|
|
20755
20761
|
})
|
|
20756
20762
|
};
|
|
20757
20763
|
}
|
|
20758
|
-
function resolveThreadAwarenessPhaseV2(thread) {
|
|
20764
|
+
function resolveThreadAwarenessPhaseV2(thread, childAwaitsApproval) {
|
|
20759
20765
|
if (thread.pendingRuntimeRequest?.kind === "user_input") return "waiting_for_input";
|
|
20760
20766
|
if (thread.pendingRuntimeRequest !== null && thread.pendingRuntimeRequest.kind !== "auth_refresh") return "waiting_for_approval";
|
|
20767
|
+
if (childAwaitsApproval) return "waiting_for_approval";
|
|
20761
20768
|
switch (thread.activityRunStatus ?? thread.status) {
|
|
20762
20769
|
case "preparing":
|
|
20763
20770
|
case "starting": return "starting";
|
|
@@ -20853,10 +20860,10 @@ const makeAgentAwarenessPublishWorker = fnUntraced(function* (publish) {
|
|
|
20853
20860
|
drain: worker.drain
|
|
20854
20861
|
};
|
|
20855
20862
|
});
|
|
20856
|
-
function agentAwarenessPublishIdentity(state) {
|
|
20863
|
+
function agentAwarenessPublishIdentity(state, subagentRequest = null) {
|
|
20857
20864
|
if (state === null) return "null";
|
|
20858
20865
|
const { updatedAt: _updatedAt, ...meaningfulState } = state;
|
|
20859
|
-
return JSON.stringify(meaningfulState);
|
|
20866
|
+
return JSON.stringify(subagentRequest === null ? meaningfulState : [meaningfulState, subagentRequest.requestId]);
|
|
20860
20867
|
}
|
|
20861
20868
|
const CLEARED_PUBLISH_IDENTITY = agentAwarenessPublishIdentity(null);
|
|
20862
20869
|
function hasLivePublishedState(publishedStateByThread, threadId) {
|
|
@@ -20948,24 +20955,34 @@ function describeThreadShellForAwareness(thread) {
|
|
|
20948
20955
|
hasActionableProposedPlan: shell.hasActionableProposedPlan
|
|
20949
20956
|
};
|
|
20950
20957
|
}
|
|
20958
|
+
const waitingApprovalId = (thread) => thread !== null && thread.archivedAt === null && subagentAwaitsApproval(thread) ? thread.pendingRuntimeRequest?.id : void 0;
|
|
20951
20959
|
function resolveAgentAwarenessRelayPublishSnapshot(input) {
|
|
20952
20960
|
if (isNone(input.thread)) return {
|
|
20953
20961
|
projectId: null,
|
|
20954
20962
|
state: null,
|
|
20963
|
+
subagentWait: null,
|
|
20955
20964
|
reason: "thread-not-found"
|
|
20956
20965
|
};
|
|
20957
20966
|
if (isNone(input.project)) return {
|
|
20958
20967
|
projectId: input.thread.value.projectId,
|
|
20959
20968
|
state: null,
|
|
20969
|
+
subagentWait: null,
|
|
20960
20970
|
reason: "project-not-found"
|
|
20961
20971
|
};
|
|
20972
|
+
const awarenessInput = {
|
|
20973
|
+
environmentId: input.environmentId,
|
|
20974
|
+
project: input.project.value,
|
|
20975
|
+
thread: input.thread.value
|
|
20976
|
+
};
|
|
20977
|
+
const state = projectThreadAwarenessV2({
|
|
20978
|
+
...awarenessInput,
|
|
20979
|
+
pendingSubagentRequest: input.pendingSubagentRequest
|
|
20980
|
+
});
|
|
20981
|
+
const childDrivesWait = input.pendingSubagentRequest !== null && state?.phase !== projectThreadAwarenessV2(awarenessInput)?.phase;
|
|
20962
20982
|
return {
|
|
20963
20983
|
projectId: input.thread.value.projectId,
|
|
20964
|
-
state: sanitizeRelayAgentActivityState(
|
|
20965
|
-
|
|
20966
|
-
project: input.project.value,
|
|
20967
|
-
thread: input.thread.value
|
|
20968
|
-
})),
|
|
20984
|
+
state: sanitizeRelayAgentActivityState(state),
|
|
20985
|
+
subagentWait: childDrivesWait ? input.pendingSubagentRequest : null,
|
|
20969
20986
|
reason: "snapshot"
|
|
20970
20987
|
};
|
|
20971
20988
|
}
|
|
@@ -20975,6 +20992,7 @@ function terminalWorkSinceStart(thread, startedAt) {
|
|
|
20975
20992
|
function resolveAgentAwarenessRelayActiveThreadIds(input) {
|
|
20976
20993
|
const projectById = new Map(input.projects.map((project) => [project.id, project]));
|
|
20977
20994
|
return input.threads.filter((thread) => {
|
|
20995
|
+
if (subagentAwaitsApproval(thread)) return true;
|
|
20978
20996
|
const project = projectById.get(thread.projectId);
|
|
20979
20997
|
if (!project) return false;
|
|
20980
20998
|
const state = projectThreadAwarenessV2({
|
|
@@ -20997,6 +21015,8 @@ const make$54 = gen(function* () {
|
|
|
20997
21015
|
const startedAt = (yield* now).epochMilliseconds;
|
|
20998
21016
|
const catchUpRequests = yield* dropping(1);
|
|
20999
21017
|
const publishedStateByThreadRef = yield* make$96(/* @__PURE__ */ new Map());
|
|
21018
|
+
const childAlertByThread = /* @__PURE__ */ new Map();
|
|
21019
|
+
const subagentRequests = /* @__PURE__ */ new Map();
|
|
21000
21020
|
const readSecretString = (name) => secrets.get(name).pipe(map((bytes) => isSome(bytes) ? new TextDecoder().decode(bytes.value) : null));
|
|
21001
21021
|
const readRelayConfig = gen(function* () {
|
|
21002
21022
|
const [url, issuer, environmentCredential] = yield* all([
|
|
@@ -21027,6 +21047,7 @@ const make$54 = gen(function* () {
|
|
|
21027
21047
|
});
|
|
21028
21048
|
const cancelPublishRetries = suspend(() => forEach([...publishRetries.keys()], cancelPublishRetry, { discard: true }));
|
|
21029
21049
|
let schedulePublishRetry = () => void_;
|
|
21050
|
+
let enqueueTopLevelPublish = () => void_;
|
|
21030
21051
|
const resetPublishedConnection = gen(function* () {
|
|
21031
21052
|
publishedRelayConfig = void 0;
|
|
21032
21053
|
cachedRelayClient = void 0;
|
|
@@ -21087,16 +21108,18 @@ const make$54 = gen(function* () {
|
|
|
21087
21108
|
deliveries: deliveryStats(response.deliveries)
|
|
21088
21109
|
});
|
|
21089
21110
|
}).pipe(withSpan("relay.agent_activity.publish"), withRelayClientTracing);
|
|
21090
|
-
const threadShell = yield*
|
|
21111
|
+
const threadShell = yield* readAwarenessThread(threadId);
|
|
21112
|
+
yield* trackSubagentRequest(threadId, threadShell);
|
|
21091
21113
|
if (threadShell?.lineage.relationshipToParent === "subagent" && !hasLivePublishedState(yield* get$6(publishedStateByThreadRef), threadId)) return;
|
|
21092
21114
|
const thread = threadShell === null || threadShell.archivedAt !== null ? none() : some(threadShell);
|
|
21093
21115
|
const snapshot = resolveAgentAwarenessRelayPublishSnapshot({
|
|
21094
21116
|
environmentId,
|
|
21095
21117
|
threadId,
|
|
21096
21118
|
thread,
|
|
21097
|
-
project: isSome(thread) ? yield* projects.getById(thread.value.projectId) : none()
|
|
21119
|
+
project: isSome(thread) ? yield* projects.getById(thread.value.projectId) : none(),
|
|
21120
|
+
pendingSubagentRequest: yield* currentSubagentRequestFor(threadId)
|
|
21098
21121
|
});
|
|
21099
|
-
const publishIdentity = agentAwarenessPublishIdentity(snapshot.state);
|
|
21122
|
+
const publishIdentity = agentAwarenessPublishIdentity(snapshot.state, snapshot.subagentWait);
|
|
21100
21123
|
const publishedStateByThread = yield* get$6(publishedStateByThreadRef);
|
|
21101
21124
|
if ((snapshot.state?.phase === "completed" || snapshot.state?.phase === "failed") && !hasLivePublishedState(publishedStateByThread, threadId)) {
|
|
21102
21125
|
if (isNone(thread) || !terminalWorkSinceStart(thread.value, startedAt)) return;
|
|
@@ -21143,14 +21166,74 @@ const make$54 = gen(function* () {
|
|
|
21143
21166
|
threadId,
|
|
21144
21167
|
projectId: snapshot.projectId
|
|
21145
21168
|
});
|
|
21169
|
+
const childRequestId = snapshot.subagentWait?.requestId;
|
|
21170
|
+
const childAlert = childAlertByThread.get(threadId);
|
|
21171
|
+
const state = snapshot.state !== null && childRequestId !== void 0 && childAlert?.requestId === childRequestId ? {
|
|
21172
|
+
...snapshot.state,
|
|
21173
|
+
updatedAt: childAlert.updatedAt
|
|
21174
|
+
} : snapshot.state;
|
|
21146
21175
|
yield* publishState({
|
|
21147
21176
|
projectId: snapshot.projectId,
|
|
21148
|
-
state
|
|
21177
|
+
state,
|
|
21149
21178
|
reason: snapshot.reason
|
|
21150
21179
|
});
|
|
21180
|
+
if (state !== null && childRequestId !== void 0) childAlertByThread.set(threadId, {
|
|
21181
|
+
requestId: childRequestId,
|
|
21182
|
+
updatedAt: state.updatedAt
|
|
21183
|
+
});
|
|
21151
21184
|
publishConfirmDeadlines.delete(threadId);
|
|
21152
21185
|
yield* update$2(publishedStateByThreadRef, (publishedStates) => new Map(publishedStates).set(threadId, publishIdentity));
|
|
21153
21186
|
});
|
|
21187
|
+
const readAwarenessThread = (threadId) => threads.getThreadShell(threadId);
|
|
21188
|
+
const findTopLevelThreadId = fnUntraced(function* (child) {
|
|
21189
|
+
const seen = /* @__PURE__ */ new Set([child.id]);
|
|
21190
|
+
let current = child;
|
|
21191
|
+
while (current?.lineage.relationshipToParent === "subagent") {
|
|
21192
|
+
const parentId = current.lineage.parentThreadId;
|
|
21193
|
+
if (parentId === null || seen.has(parentId)) return null;
|
|
21194
|
+
seen.add(parentId);
|
|
21195
|
+
current = yield* readAwarenessThread(parentId);
|
|
21196
|
+
}
|
|
21197
|
+
return current?.id ?? null;
|
|
21198
|
+
});
|
|
21199
|
+
const trackSubagentRequest = fnUntraced(function* (threadId, threadShell) {
|
|
21200
|
+
const requestId = waitingApprovalId(threadShell);
|
|
21201
|
+
const previous = subagentRequests.get(threadId);
|
|
21202
|
+
if (threadShell === null || requestId === void 0) {
|
|
21203
|
+
if (previous === void 0) return;
|
|
21204
|
+
subagentRequests.delete(threadId);
|
|
21205
|
+
yield* enqueueTopLevelPublish(previous.topLevelThreadId);
|
|
21206
|
+
return;
|
|
21207
|
+
}
|
|
21208
|
+
const topLevelThreadId = previous?.topLevelThreadId ?? (yield* findTopLevelThreadId(threadShell));
|
|
21209
|
+
if (topLevelThreadId === null) return;
|
|
21210
|
+
subagentRequests.set(threadId, {
|
|
21211
|
+
topLevelThreadId,
|
|
21212
|
+
requestId
|
|
21213
|
+
});
|
|
21214
|
+
yield* enqueueTopLevelPublish(topLevelThreadId);
|
|
21215
|
+
});
|
|
21216
|
+
const currentSubagentRequestFor = fnUntraced(function* (topLevelThreadId) {
|
|
21217
|
+
let pending = null;
|
|
21218
|
+
for (const [childId, entry] of subagentRequests) {
|
|
21219
|
+
if (entry.topLevelThreadId !== topLevelThreadId) continue;
|
|
21220
|
+
const child = yield* readAwarenessThread(childId);
|
|
21221
|
+
const requestId = waitingApprovalId(child);
|
|
21222
|
+
if (child === null || requestId === void 0) {
|
|
21223
|
+
subagentRequests.delete(childId);
|
|
21224
|
+
continue;
|
|
21225
|
+
}
|
|
21226
|
+
if (requestId !== entry.requestId) subagentRequests.set(childId, {
|
|
21227
|
+
...entry,
|
|
21228
|
+
requestId
|
|
21229
|
+
});
|
|
21230
|
+
if (pending === null || isGreaterThan(child.updatedAt, pending.updatedAt)) pending = {
|
|
21231
|
+
requestId,
|
|
21232
|
+
updatedAt: child.updatedAt
|
|
21233
|
+
};
|
|
21234
|
+
}
|
|
21235
|
+
return pending;
|
|
21236
|
+
});
|
|
21154
21237
|
const processThreadPublish = fnUntraced(function* (threadId) {
|
|
21155
21238
|
const retry = publishRetries.get(threadId);
|
|
21156
21239
|
if (retry?.timer !== void 0) {
|
|
@@ -21168,6 +21251,7 @@ const make$54 = gen(function* () {
|
|
|
21168
21251
|
});
|
|
21169
21252
|
const worker = yield* makeAgentAwarenessPublishWorker(processThreadPublish);
|
|
21170
21253
|
const enqueueThreadPublish = (threadId) => cancelPublishRetry(threadId).pipe(andThen(worker.enqueue(threadId)));
|
|
21254
|
+
enqueueTopLevelPublish = enqueueThreadPublish;
|
|
21171
21255
|
const publishThread = (threadId) => enqueueThreadPublish(threadId).pipe(andThen(worker.drain));
|
|
21172
21256
|
schedulePublishRetry = fnUntraced(function* (threadId) {
|
|
21173
21257
|
const attempts = publishRetries.get(threadId)?.attempts ?? 0;
|
|
@@ -22913,16 +22997,25 @@ const scroll = async (page, input) => {
|
|
|
22913
22997
|
*/
|
|
22914
22998
|
const evaluate = async (cdp, input, timeoutMs) => {
|
|
22915
22999
|
let timer;
|
|
23000
|
+
let timedOut = false;
|
|
22916
23001
|
const expired = new Promise((_, reject) => {
|
|
22917
23002
|
timer = setTimeout(() => {
|
|
23003
|
+
timedOut = true;
|
|
22918
23004
|
cdp.send("Runtime.terminateExecution").catch(constVoid);
|
|
22919
23005
|
reject(new ServerBrowserOperationError("PreviewAutomationTimeoutError", `Evaluation did not finish within ${timeoutMs}ms and was stopped.`));
|
|
22920
23006
|
}, timeoutMs);
|
|
22921
23007
|
});
|
|
22922
|
-
const
|
|
23008
|
+
const params = {
|
|
22923
23009
|
expression: input.expression,
|
|
22924
23010
|
awaitPromise: input.awaitPromise ?? true,
|
|
22925
23011
|
returnByValue: input.returnByValue ?? true
|
|
23012
|
+
};
|
|
23013
|
+
const evaluation = cdp.send("Runtime.evaluate", params).then((classic) => {
|
|
23014
|
+
const failure = classic.exceptionDetails;
|
|
23015
|
+
return failure?.exception?.className === "SyntaxError" && failure.scriptId !== void 0 && failure.stackTrace === void 0 && !timedOut && input.expression.includes("await") ? cdp.send("Runtime.evaluate", {
|
|
23016
|
+
...params,
|
|
23017
|
+
replMode: true
|
|
23018
|
+
}) : classic;
|
|
22926
23019
|
});
|
|
22927
23020
|
evaluation.catch(constVoid);
|
|
22928
23021
|
const result = await Promise.race([evaluation, expired]).finally(() => clearTimeout(timer));
|
|
@@ -23999,10 +24092,17 @@ const make$50 = gen(function* () {
|
|
|
23999
24092
|
* With a desktop app attached, every tab of this server renders there, so a
|
|
24000
24093
|
* new tab waits for its `<webview>` instead of launching headless.
|
|
24001
24094
|
*/
|
|
24002
|
-
const desktopRenders = (snapshot) => desktopChannel.available && !snapshot.headless ? runPromise(
|
|
24003
|
-
|
|
24004
|
-
|
|
24005
|
-
|
|
24095
|
+
const desktopRenders = (snapshot) => desktopChannel.available && !snapshot.headless ? runPromise(gen(function* () {
|
|
24096
|
+
const key = {
|
|
24097
|
+
threadId: snapshot.threadId,
|
|
24098
|
+
tabId: snapshot.tabId
|
|
24099
|
+
};
|
|
24100
|
+
if (!(yield* desktopChannel.isAttached(key))) yield* manager.announce({
|
|
24101
|
+
threadId: ThreadId.make(key.threadId),
|
|
24102
|
+
tabId: key.tabId
|
|
24103
|
+
}).pipe(ignore, repeat(spaced("1 second")), forkScoped);
|
|
24104
|
+
return yield* desktopChannel.awaitAttached(key, DESKTOP_ATTACH_TIMEOUT);
|
|
24105
|
+
}).pipe(scoped)) : Promise.resolve(false);
|
|
24006
24106
|
/** Connects to the desktop's page for a tab, which it renders and the server drives. */
|
|
24007
24107
|
const connectDesktop = async (snapshot) => {
|
|
24008
24108
|
const scope = await runPromise(make$76());
|
|
@@ -25523,6 +25623,19 @@ const isToolInstalled = fn("DeviceToolchain.isToolInstalled")(function* (baseDir
|
|
|
25523
25623
|
});
|
|
25524
25624
|
const isDeviceHubInstalled = (baseDir) => isToolInstalled(baseDir, HUB_SPEC, (paths) => paths.hub);
|
|
25525
25625
|
const isAgentDeviceInstalled = (baseDir) => isToolInstalled(baseDir, AGENT_DEVICE_SPEC, (paths) => paths.agentDevice);
|
|
25626
|
+
/** Entry of the first installed agent-device among `versions`; never installs. */
|
|
25627
|
+
const installedAgentDeviceEntry = fn("DeviceToolchain.installedAgentDeviceEntry")(function* (baseDir, versions) {
|
|
25628
|
+
const fs = yield* FileSystem;
|
|
25629
|
+
const path = yield* Path;
|
|
25630
|
+
for (const version of versions) {
|
|
25631
|
+
const paths = toolPaths(path, baseDir, {
|
|
25632
|
+
...AGENT_DEVICE_SPEC,
|
|
25633
|
+
version
|
|
25634
|
+
});
|
|
25635
|
+
if (yield* isInstalled(fs, paths, version)) return paths.entryPath;
|
|
25636
|
+
}
|
|
25637
|
+
return null;
|
|
25638
|
+
});
|
|
25526
25639
|
const deviceToolVersions = fn("DeviceToolchain.versions")(function* (baseDir, running = {}) {
|
|
25527
25640
|
const fs = yield* FileSystem;
|
|
25528
25641
|
const path = yield* Path;
|
|
@@ -26848,6 +26961,10 @@ const BOOT_TIMEOUT = minutes$1(3);
|
|
|
26848
26961
|
const SCREENSHOT_TIMEOUT = seconds(20);
|
|
26849
26962
|
const LIST_TIMEOUT_SECONDS = 40;
|
|
26850
26963
|
const SIMULATOR_LIST_FAILED = /^\[apple-utils\] (?:Failed to (?:run `xcrun simctl list devices|parse JSON output:|list devices:)|`xcrun simctl list devices --json` did not respond within )/;
|
|
26964
|
+
const runsOnXcode26Runtime = (version) => Number(/^iOS (\d+)/.exec(version)?.[1]) <= 26;
|
|
26965
|
+
const DEFAULT_DISPLAY_SCREENSHOT = `f=$(mktemp -t p4-screenshot) || exit 1
|
|
26966
|
+
trap 'rm -f "$f"' 0
|
|
26967
|
+
xcrun simctl io "$1" screenshot --type=png "$f" >/dev/null && base64 -i "$f"`;
|
|
26851
26968
|
const HubDevice = Struct({
|
|
26852
26969
|
id: String$1,
|
|
26853
26970
|
name: String$1,
|
|
@@ -26972,11 +27089,29 @@ const makeDeviceHubOperations = (options) => {
|
|
|
26972
27089
|
id: device.id
|
|
26973
27090
|
});
|
|
26974
27091
|
});
|
|
27092
|
+
const defaultDisplayScreenshot = fn("DeviceHubOperations.defaultDisplayScreenshot")(function* (udid) {
|
|
27093
|
+
const capture = yield* run("sh", [
|
|
27094
|
+
"-c",
|
|
27095
|
+
DEFAULT_DISPLAY_SCREENSHOT,
|
|
27096
|
+
"sh",
|
|
27097
|
+
udid
|
|
27098
|
+
], {
|
|
27099
|
+
timeoutMs: toMillis$1(SCREENSHOT_TIMEOUT),
|
|
27100
|
+
maxOutputBytes: 67108864
|
|
27101
|
+
});
|
|
27102
|
+
if (capture.code !== 0) return yield* new DeviceOperationError({
|
|
27103
|
+
operation: "screenshot",
|
|
27104
|
+
reason: "command_failed",
|
|
27105
|
+
exitCode: capture.code,
|
|
27106
|
+
cause: capture.stderr.trim()
|
|
27107
|
+
});
|
|
27108
|
+
return new Uint8Array(Buffer.from(capture.stdout, "base64"));
|
|
27109
|
+
});
|
|
26975
27110
|
const screenshot = (device) => httpClient.execute(post(`${origin}${vendorPrefix(device.platform)}/api/screenshot?device=${encodeURIComponent(device.id)}`)).pipe(flatMap(filterStatusOk), flatMap((response) => response.arrayBuffer), map((buffer) => new Uint8Array(buffer)), scoped, timeout(SCREENSHOT_TIMEOUT), mapError((cause) => new DeviceOperationError({
|
|
26976
27111
|
operation: "screenshot",
|
|
26977
27112
|
reason: isHttpClientError(cause) && cause.reason._tag === "StatusCodeError" ? "hub_rejected" : "request_failed",
|
|
26978
27113
|
cause
|
|
26979
|
-
})), withSpan("DeviceHubOperations.screenshot"));
|
|
27114
|
+
})), catchIf((error) => device.platform === "ios" && runsOnXcode26Runtime(device.version) && error.reason === "hub_rejected", () => defaultDisplayScreenshot(device.id)), withSpan("DeviceHubOperations.screenshot"));
|
|
26980
27115
|
return {
|
|
26981
27116
|
list,
|
|
26982
27117
|
boot,
|
|
@@ -31067,23 +31202,30 @@ const make$45 = fn("LocalDeviceHost.make")(function* () {
|
|
|
31067
31202
|
yield* sleep(millis(DAEMON_POLL_MS));
|
|
31068
31203
|
}
|
|
31069
31204
|
});
|
|
31070
|
-
const stopAgentDeviceDaemon = (
|
|
31071
|
-
|
|
31072
|
-
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
|
|
31081
|
-
|
|
31082
|
-
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31205
|
+
const stopAgentDeviceDaemon = gen(function* () {
|
|
31206
|
+
if (!(yield* fs.exists(daemonFilePath()))) return;
|
|
31207
|
+
const recorded = yield* readDaemonFile().pipe(option);
|
|
31208
|
+
if (isSome(recorded) && recorded.value.pid && !(yield* isProcessAlive(recorded.value.pid))) return yield* fs.remove(daemonFilePath(), { force: true });
|
|
31209
|
+
const entryPath = yield* installedAgentDeviceEntry(config.baseDir, [...isSome(recorded) && recorded.value.version ? [recorded.value.version] : [], AGENT_DEVICE_VERSION]);
|
|
31210
|
+
if (!entryPath) return;
|
|
31211
|
+
const nodePath = yield* resolveNodeExecutable("Local device support", hostEnvironment).pipe(provideService(Platform, hostPlatform));
|
|
31212
|
+
yield* runner.run({
|
|
31213
|
+
command: nodePath,
|
|
31214
|
+
args: [
|
|
31215
|
+
entryPath,
|
|
31216
|
+
"daemon",
|
|
31217
|
+
"stop",
|
|
31218
|
+
"--state-dir",
|
|
31219
|
+
agentDeviceStateDir(path, config.stateDir)
|
|
31220
|
+
],
|
|
31221
|
+
env: {
|
|
31222
|
+
...hostEnvironment,
|
|
31223
|
+
AGENT_DEVICE_NO_UPDATE_NOTIFIER: "1"
|
|
31224
|
+
},
|
|
31225
|
+
timeout: seconds(10),
|
|
31226
|
+
timeoutBehavior: "timedOutResult"
|
|
31227
|
+
});
|
|
31228
|
+
}).pipe(provideService(FileSystem, fs), provideService(Path, path), ignore);
|
|
31087
31229
|
const ensureHubReady = fn("LocalDeviceHost.ensureHubReady")(function* (onPhase) {
|
|
31088
31230
|
const running = yield* get$6(runningRef);
|
|
31089
31231
|
if (running) {
|
|
@@ -31144,10 +31286,6 @@ const make$45 = fn("LocalDeviceHost.make")(function* () {
|
|
|
31144
31286
|
step: "installing agent tools",
|
|
31145
31287
|
cause
|
|
31146
31288
|
})));
|
|
31147
|
-
agentToolRef = {
|
|
31148
|
-
entryPath: agentTool.entryPath,
|
|
31149
|
-
nodePath: running.hub.nodePath
|
|
31150
|
-
};
|
|
31151
31289
|
yield* onPhase("starting");
|
|
31152
31290
|
const agentDevice = yield* startAgentDeviceDaemon(agentTool, running.hub.nodePath);
|
|
31153
31291
|
yield* pruneLocalDeviceTools(config.baseDir, running.hub.nodePath, "agent").pipe(provideService(Path, path), provideService(ProcessRunner, runner), ignore);
|
|
@@ -31175,7 +31313,8 @@ const make$45 = fn("LocalDeviceHost.make")(function* () {
|
|
|
31175
31313
|
env: hostEnvironment,
|
|
31176
31314
|
timeout: millis(options?.timeoutMs ?? 2e4),
|
|
31177
31315
|
timeoutBehavior: "timedOutResult",
|
|
31178
|
-
...options?.stdin === void 0 ? {} : { stdin: options.stdin }
|
|
31316
|
+
...options?.stdin === void 0 ? {} : { stdin: options.stdin },
|
|
31317
|
+
...options?.maxOutputBytes === void 0 ? {} : { maxOutputBytes: options.maxOutputBytes }
|
|
31179
31318
|
}).pipe(map((result) => ({
|
|
31180
31319
|
stdout: result.stdout,
|
|
31181
31320
|
stderr: result.stderr,
|
|
@@ -31200,7 +31339,7 @@ const make$45 = fn("LocalDeviceHost.make")(function* () {
|
|
|
31200
31339
|
});
|
|
31201
31340
|
const current = get$6(runningRef).pipe(map((running) => running ? toReady(running) : null));
|
|
31202
31341
|
const stopAgent = startLock.withPermits(1)(gen(function* () {
|
|
31203
|
-
yield* stopAgentDeviceDaemon
|
|
31342
|
+
yield* stopAgentDeviceDaemon;
|
|
31204
31343
|
yield* update$2(runningRef, (running) => running ? {
|
|
31205
31344
|
...running,
|
|
31206
31345
|
agentDevice: null
|
|
@@ -31210,7 +31349,7 @@ const make$45 = fn("LocalDeviceHost.make")(function* () {
|
|
|
31210
31349
|
const running = yield* getAndSet(runningRef, null);
|
|
31211
31350
|
yield* stopHub(running?.hub);
|
|
31212
31351
|
yield* fs.remove(hubStatePath(), { force: true }).pipe(ignore);
|
|
31213
|
-
yield* stopAgentDeviceDaemon
|
|
31352
|
+
yield* stopAgentDeviceDaemon;
|
|
31214
31353
|
}));
|
|
31215
31354
|
yield* addFinalizer(() => stop);
|
|
31216
31355
|
return {
|
|
@@ -34510,9 +34649,10 @@ function parseRateTable(document) {
|
|
|
34510
34649
|
}
|
|
34511
34650
|
const aliasCandidates = /* @__PURE__ */ new Map();
|
|
34512
34651
|
for (const [key, rate] of table) {
|
|
34513
|
-
const
|
|
34652
|
+
const slash = key.indexOf("/");
|
|
34653
|
+
const alias = slash === -1 ? bedrockBaseModelName(key) : bareModelName(key);
|
|
34514
34654
|
if (alias.length === 0 || alias === key || table.has(alias)) continue;
|
|
34515
|
-
const firstParty = FIRST_PARTY_PROVIDERS.has(key.slice(0,
|
|
34655
|
+
const firstParty = slash !== -1 && FIRST_PARTY_PROVIDERS.has(key.slice(0, slash));
|
|
34516
34656
|
const held = aliasCandidates.get(alias);
|
|
34517
34657
|
if (held === void 0 || firstParty && !held.firstParty) aliasCandidates.set(alias, {
|
|
34518
34658
|
rate,
|
|
@@ -34551,6 +34691,9 @@ function bareModelName(key) {
|
|
|
34551
34691
|
const slash = key.lastIndexOf("/");
|
|
34552
34692
|
return slash === -1 ? key : key.slice(slash + 1);
|
|
34553
34693
|
}
|
|
34694
|
+
function bedrockBaseModelName(key) {
|
|
34695
|
+
return key.startsWith("anthropic.") ? key.slice(10) : key;
|
|
34696
|
+
}
|
|
34554
34697
|
/**
|
|
34555
34698
|
* Drops a bracketed variant suffix such as `claude-fable-5-1[1m]`, which
|
|
34556
34699
|
* Claude Code writes for the 1M context tier. The rate table only knows the
|
|
@@ -38870,6 +39013,10 @@ const layerWsRpc = (currentSession, clientOrigin, clientAnalyticsProps, previewA
|
|
|
38870
39013
|
cause
|
|
38871
39014
|
})) })),
|
|
38872
39015
|
[WS_METHODS.serverRefreshProviders]: (input) => gen(function* () {
|
|
39016
|
+
if (input.modelCatalogOnly === true) {
|
|
39017
|
+
yield* providerRegistry.refreshModelCatalog;
|
|
39018
|
+
return { providers: [] };
|
|
39019
|
+
}
|
|
38873
39020
|
if (input.refreshModels) {
|
|
38874
39021
|
yield* modelManifest.forceRefresh;
|
|
38875
39022
|
const instances = yield* providerInstances.listInstances;
|
|
@@ -50581,6 +50728,7 @@ const make$15 = gen(function* () {
|
|
|
50581
50728
|
const call = fn("PeerMcpClient.call")(function* (input) {
|
|
50582
50729
|
const resolved = yield* links.resolve(input.environmentId).pipe(mapError(fromLinkError));
|
|
50583
50730
|
const limitHeader = { [MODE_LIMIT_HEADER]: `${input.limits.runtimeMode}/${input.limits.interactionMode}` };
|
|
50731
|
+
const launchedByHeader = input.launchedBy === void 0 ? {} : { [LAUNCHED_BY_HEADER]: `${encodeURIComponent(input.launchedBy.environmentId)}/${encodeURIComponent(input.launchedBy.threadId)}` };
|
|
50584
50732
|
const sessionKey = `${input.environmentId} ${resolved.url}`;
|
|
50585
50733
|
const callOnce = (sessionId) => post$1(resolved.url, resolved.token, {
|
|
50586
50734
|
jsonrpc: "2.0",
|
|
@@ -50592,6 +50740,7 @@ const make$15 = gen(function* () {
|
|
|
50592
50740
|
}
|
|
50593
50741
|
}, {
|
|
50594
50742
|
...limitHeader,
|
|
50743
|
+
...launchedByHeader,
|
|
50595
50744
|
"mcp-session-id": sessionId,
|
|
50596
50745
|
"mcp-protocol-version": PROTOCOL_VERSION
|
|
50597
50746
|
});
|
|
@@ -50645,7 +50794,21 @@ const make$15 = gen(function* () {
|
|
|
50645
50794
|
code: "orchestration_error",
|
|
50646
50795
|
message: "The linked environment stopped answering."
|
|
50647
50796
|
})) }), flatMap(fromResult)));
|
|
50648
|
-
|
|
50797
|
+
const upload = fn("PeerMcpClient.upload")(function* (input) {
|
|
50798
|
+
const resolved = yield* links.resolve(input.environmentId).pipe(mapError(fromLinkError));
|
|
50799
|
+
const response = yield* httpClient.execute(post(`${resolved.url}${input.relativeUrl}`).pipe(setHeaders$1({ authorization: `Bearer ${resolved.token}` }), setBody(uint8Array$1(input.bytes, input.contentType)))).pipe(mapError(() => new OrchestratorMcpFailure({
|
|
50800
|
+
code: "orchestration_error",
|
|
50801
|
+
message: "The linked environment stopped answering during an attachment upload."
|
|
50802
|
+
})));
|
|
50803
|
+
if (response.status !== 204 && response.status !== 200) return yield* new OrchestratorMcpFailure({
|
|
50804
|
+
code: "orchestration_error",
|
|
50805
|
+
message: `The linked environment refused an attachment upload (HTTP ${response.status}).`
|
|
50806
|
+
});
|
|
50807
|
+
});
|
|
50808
|
+
return PeerMcpClient.of({
|
|
50809
|
+
call,
|
|
50810
|
+
upload
|
|
50811
|
+
});
|
|
50649
50812
|
});
|
|
50650
50813
|
const layer$38 = effect(PeerMcpClient, make$15);
|
|
50651
50814
|
// src/peer/PeerForwarding.ts
|
|
@@ -50680,6 +50843,8 @@ const make$14 = gen(function* () {
|
|
|
50680
50843
|
const links = yield* PeerLinks;
|
|
50681
50844
|
const crypto = yield* Digest;
|
|
50682
50845
|
const threads = yield* ThreadManagementService;
|
|
50846
|
+
const config = yield* ServerConfig;
|
|
50847
|
+
const fileSystem = yield* FileSystem;
|
|
50683
50848
|
/**
|
|
50684
50849
|
* The caller's own limits, which travel with every forwarded call: the peer sees only the
|
|
50685
50850
|
* link's credential, so a caller that may not control threads here is refused here. Work a
|
|
@@ -50693,20 +50858,70 @@ const make$14 = gen(function* () {
|
|
|
50693
50858
|
* key never collide there, and one agent retrying gets its first result.
|
|
50694
50859
|
*/
|
|
50695
50860
|
const scopedRequestId = (namespace, clientRequestId) => crypto.digest(sha256, new TextEncoder().encode(`${namespace}\n${clientRequestId}`)).pipe(map((digest) => `fwd:${encode(digest)}`), orDie);
|
|
50861
|
+
const AttachmentRef = Struct({
|
|
50862
|
+
type: Literals(["image", "file"]),
|
|
50863
|
+
id: String$1,
|
|
50864
|
+
name: String$1,
|
|
50865
|
+
mimeType: String$1,
|
|
50866
|
+
sizeBytes: Number$1
|
|
50867
|
+
});
|
|
50868
|
+
const decodeAttachmentRef = decodeUnknownEffect(AttachmentRef);
|
|
50869
|
+
const attachmentFailure = (message) => new OrchestratorMcpFailure({
|
|
50870
|
+
code: "invalid_request",
|
|
50871
|
+
message
|
|
50872
|
+
});
|
|
50873
|
+
const transferAttachment = fn("PeerForwarding.transferAttachment")(function* (environmentId, limits, attachment) {
|
|
50874
|
+
const ref = yield* decodeAttachmentRef(attachment).pipe(mapError(() => attachmentFailure("An attachment did not match the expected shape.")));
|
|
50875
|
+
if (parseThreadSegmentFromAttachmentId(ref.id) !== "pending") return yield* attachmentFailure(`${ref.name} is not a pending upload. Attachments for a linked environment must be pending uploads.`);
|
|
50876
|
+
const path = resolveAttachmentPathById({
|
|
50877
|
+
attachmentsDir: config.attachmentsDir,
|
|
50878
|
+
attachmentId: ref.id
|
|
50879
|
+
});
|
|
50880
|
+
if (path === null) return yield* attachmentFailure(`${ref.name} was never uploaded or has expired. Upload it again with p4_attachment_prepare_upload.`);
|
|
50881
|
+
const bytes = yield* fileSystem.readFile(path).pipe(mapError(unavailable));
|
|
50882
|
+
if (bytes.byteLength !== ref.sizeBytes) return yield* attachmentFailure(`${ref.name} is ${bytes.byteLength} bytes, but the attachment says ${ref.sizeBytes}.`);
|
|
50883
|
+
const prepared = yield* peers.call({
|
|
50884
|
+
environmentId,
|
|
50885
|
+
tool: "p4_attachment_prepare_upload",
|
|
50886
|
+
arguments: { upload: {
|
|
50887
|
+
type: ref.type,
|
|
50888
|
+
name: ref.name,
|
|
50889
|
+
mimeType: ref.mimeType,
|
|
50890
|
+
sizeBytes: ref.sizeBytes
|
|
50891
|
+
} },
|
|
50892
|
+
limits,
|
|
50893
|
+
success: AttachmentCreateUploadUrlResult
|
|
50894
|
+
});
|
|
50895
|
+
yield* peers.upload({
|
|
50896
|
+
environmentId,
|
|
50897
|
+
relativeUrl: prepared.relativeUrl,
|
|
50898
|
+
bytes,
|
|
50899
|
+
contentType: ref.mimeType
|
|
50900
|
+
});
|
|
50901
|
+
return {
|
|
50902
|
+
...attachment,
|
|
50903
|
+
id: prepared.attachmentId
|
|
50904
|
+
};
|
|
50905
|
+
});
|
|
50696
50906
|
/** Tool and contract schemas are plain data: they encode and decode without services. */
|
|
50697
50907
|
const forward = fn("PeerForwarding.forward")(function* (scope, toolName, parameters, success, environmentId, params) {
|
|
50698
50908
|
const limits = yield* callerLimits(scope);
|
|
50699
50909
|
const { environmentId: _target, ...args } = yield* encodeUnknownEffect(parameters)(params).pipe(mapError(unavailable));
|
|
50700
|
-
if (Array.isArray(args.attachments) && args.attachments.length > 0)
|
|
50701
|
-
|
|
50702
|
-
|
|
50703
|
-
}
|
|
50910
|
+
if (Array.isArray(args.attachments) && args.attachments.length > 0) {
|
|
50911
|
+
const attachments = args.attachments;
|
|
50912
|
+
args.attachments = yield* forEach(attachments, (attachment) => transferAttachment(environmentId, limits, attachment));
|
|
50913
|
+
}
|
|
50704
50914
|
if (typeof args.clientRequestId === "string") args.clientRequestId = yield* scopedRequestId(scope.requestNamespace, args.clientRequestId);
|
|
50915
|
+
const launchedBy = toolName === "p4_thread_launch" && scope.thread !== void 0 && args.delegatedFrom === void 0 ? {
|
|
50916
|
+
environmentId: scope.environmentId,
|
|
50917
|
+
threadId: scope.thread.threadId
|
|
50918
|
+
} : void 0;
|
|
50705
50919
|
return yield* peers.call({
|
|
50706
50920
|
environmentId,
|
|
50707
50921
|
tool: toolName,
|
|
50708
50922
|
arguments: args,
|
|
50709
50923
|
limits,
|
|
50924
|
+
...launchedBy === void 0 ? {} : { launchedBy },
|
|
50710
50925
|
success
|
|
50711
50926
|
});
|
|
50712
50927
|
});
|
|
@@ -53148,7 +53363,7 @@ const ProjectToolkit = make$21(make$22("p4_thread_launch", {
|
|
|
53148
53363
|
modelSelection: optional$6(ModelSelection),
|
|
53149
53364
|
runtimeMode: optional$6(RuntimeMode),
|
|
53150
53365
|
interactionMode: optional$6(ProviderInteractionMode),
|
|
53151
|
-
workspaceStrategy: optional$6(
|
|
53366
|
+
workspaceStrategy: optional$6(OrchestrationV2AgentThreadLaunchWorkspaceStrategy.annotate({ description: "Choose where this thread runs before starting its agent: worktree creates and binds a new checkout from baseRef; existing_worktree binds worktreePath, which must be one of the project's git worktrees; root uses the project checkout; auto picks root or a new worktree from baseRef at launch (a busy or dirty checkout always gets a worktree). Omitted means root, not the caller's worktree. For a PR stack use the parent branch as baseRef and startFromOrigin:false. Uncommitted changes are not copied." })),
|
|
53152
53367
|
message: optional$6(String$1.check(isMaxLength(12e4)).annotate({ description: "First task prompt, delivered after workspace preparation. Omit message and attachments to create an idle thread." })),
|
|
53153
53368
|
attachments: optional$6(ArraySchema(McpAttachmentInput).check(isMaxLength(8))),
|
|
53154
53369
|
clientRequestId: optional$6(OrchestratorMcpClientRequestId),
|
|
@@ -53265,9 +53480,10 @@ const make$10 = gen(function* () {
|
|
|
53265
53480
|
const projectId = yield* resolveRemoteProject(scope, target.environmentId, parent.thread.projectId, target.projectId);
|
|
53266
53481
|
const key = input.clientRequestId ?? (yield* random.uuidV4());
|
|
53267
53482
|
const task = taskPrompt(input);
|
|
53483
|
+
const title = input.title ?? parent.thread.title;
|
|
53268
53484
|
const launched = yield* forwarding.call(scope, ProjectToolkit.tools.p4_thread_launch, target.environmentId, {
|
|
53269
53485
|
projectId,
|
|
53270
|
-
title
|
|
53486
|
+
title,
|
|
53271
53487
|
modelSelection: {
|
|
53272
53488
|
instanceId,
|
|
53273
53489
|
model,
|
|
@@ -53289,6 +53505,7 @@ const make$10 = gen(function* () {
|
|
|
53289
53505
|
environmentId: target.environmentId,
|
|
53290
53506
|
threadId: launched.threadId,
|
|
53291
53507
|
label: link?.label ?? target.environmentId,
|
|
53508
|
+
title,
|
|
53292
53509
|
...launched.runId === null ? {} : { runId: launched.runId }
|
|
53293
53510
|
};
|
|
53294
53511
|
const taskEvent = (yield* threads.dispatch({
|
|
@@ -53809,7 +54026,7 @@ function listItemFromShell(scope, shell, nowMs) {
|
|
|
53809
54026
|
threadId: shell.id,
|
|
53810
54027
|
projectId: shell.projectId,
|
|
53811
54028
|
title: shell.title,
|
|
53812
|
-
link: threadLinkFor(scope, shell.id),
|
|
54029
|
+
link: threadLinkFor(scope, shell.id, shell.title),
|
|
53813
54030
|
createdBy: shell.createdBy,
|
|
53814
54031
|
creationSource: shell.creationSource,
|
|
53815
54032
|
status: shell.activityRunStatus ?? shell.status,
|
|
@@ -53834,7 +54051,7 @@ function threadDetail(scope, projection, itemCount, shell, nowMs) {
|
|
|
53834
54051
|
threadId: projection.thread.id,
|
|
53835
54052
|
projectId: projection.thread.projectId,
|
|
53836
54053
|
title: projection.thread.title,
|
|
53837
|
-
link: threadLinkFor(scope, projection.thread.id),
|
|
54054
|
+
link: threadLinkFor(scope, projection.thread.id, projection.thread.title),
|
|
53838
54055
|
createdBy: projection.thread.createdBy,
|
|
53839
54056
|
creationSource: projection.thread.creationSource,
|
|
53840
54057
|
status: active?.status ?? latest?.status ?? "idle",
|
|
@@ -54213,7 +54430,7 @@ const make$9 = gen(function* () {
|
|
|
54213
54430
|
link: formatThreadLink({
|
|
54214
54431
|
environmentId: scope.environmentId,
|
|
54215
54432
|
threadId: task.childThreadId
|
|
54216
|
-
}),
|
|
54433
|
+
}, childControls.thread.title),
|
|
54217
54434
|
childRunId: childRun?.id ?? null,
|
|
54218
54435
|
childNodeId: task.id,
|
|
54219
54436
|
status,
|
|
@@ -54292,7 +54509,7 @@ const make$9 = gen(function* () {
|
|
|
54292
54509
|
childThreadId: null,
|
|
54293
54510
|
...task.remoteChild === void 0 ? {} : {
|
|
54294
54511
|
remoteChild: task.remoteChild,
|
|
54295
|
-
link: formatThreadLink(task.remoteChild)
|
|
54512
|
+
link: formatThreadLink(task.remoteChild, task.remoteChild.title)
|
|
54296
54513
|
},
|
|
54297
54514
|
childRunId: null,
|
|
54298
54515
|
childNodeId: task.id,
|
|
@@ -54861,7 +55078,7 @@ const make$9 = gen(function* () {
|
|
|
54861
55078
|
link: formatThreadLink({
|
|
54862
55079
|
environmentId: scope.environmentId,
|
|
54863
55080
|
threadId
|
|
54864
|
-
}),
|
|
55081
|
+
}, projection.thread.title),
|
|
54865
55082
|
runId: run?.id ?? null,
|
|
54866
55083
|
status: run?.status ?? "idle",
|
|
54867
55084
|
title: projection.thread.title,
|
|
@@ -54982,7 +55199,7 @@ const make$9 = gen(function* () {
|
|
|
54982
55199
|
}).pipe(mapError((error) => isThreadManagementError(error) ? threadManagementFailure(error) : failure$2("orchestration_error", `Unable to send to thread ${input.threadId}: ${errorMessage$2(error)}`)));
|
|
54983
55200
|
return {
|
|
54984
55201
|
threadId: input.threadId,
|
|
54985
|
-
link: threadLinkFor(scope, input.threadId),
|
|
55202
|
+
link: threadLinkFor(scope, input.threadId, target.thread.title),
|
|
54986
55203
|
messageId,
|
|
54987
55204
|
runId: result.run.id,
|
|
54988
55205
|
...result.run.delegatedTaskId === void 0 ? {} : { taskId: result.run.delegatedTaskId },
|
|
@@ -55433,6 +55650,10 @@ const layer$25 = toLayer(ProjectToolkit, {
|
|
|
55433
55650
|
createdBy: "agent",
|
|
55434
55651
|
creationSource: "mcp",
|
|
55435
55652
|
...caller === void 0 ? {} : { launchedByThreadId: caller.id },
|
|
55653
|
+
...caller !== void 0 || linkOrigin === void 0 || input.delegatedFrom !== void 0 || scope.client?.launchedBy === void 0 ? {} : {
|
|
55654
|
+
launchedByThreadId: scope.client.launchedBy.threadId,
|
|
55655
|
+
launchedByEnvironmentId: scope.client.launchedBy.environmentId
|
|
55656
|
+
},
|
|
55436
55657
|
...linkOrigin === void 0 ? {} : { linkOrigin },
|
|
55437
55658
|
...input.delegatedFrom === void 0 ? {} : { delegatedFrom: input.delegatedFrom }
|
|
55438
55659
|
}).pipe(mapError((error) => {
|
|
@@ -55450,7 +55671,7 @@ const layer$25 = toLayer(ProjectToolkit, {
|
|
|
55450
55671
|
const run = result.projection.runs.find((run) => run.userMessageId === messageId);
|
|
55451
55672
|
return {
|
|
55452
55673
|
threadId: thread.id,
|
|
55453
|
-
link: threadLinkFor(scope, thread.id),
|
|
55674
|
+
link: threadLinkFor(scope, thread.id, thread.title),
|
|
55454
55675
|
projectId: thread.projectId,
|
|
55455
55676
|
modelSelection: thread.modelSelection,
|
|
55456
55677
|
runId: run?.id ?? null,
|
|
@@ -58269,6 +58490,34 @@ const withModeLimit = (invocation, request) => {
|
|
|
58269
58490
|
}
|
|
58270
58491
|
};
|
|
58271
58492
|
};
|
|
58493
|
+
const decodeLaunchedBy = decodeUnknownOption(Struct({
|
|
58494
|
+
environmentId: EnvironmentId,
|
|
58495
|
+
threadId: ThreadId
|
|
58496
|
+
}));
|
|
58497
|
+
const parseLaunchedBy = (value) => {
|
|
58498
|
+
const [environmentId, threadId, ...rest] = value.trim().split("/");
|
|
58499
|
+
if (rest.length > 0 || environmentId === void 0 || threadId === void 0) return none();
|
|
58500
|
+
try {
|
|
58501
|
+
return decodeLaunchedBy({
|
|
58502
|
+
environmentId: decodeURIComponent(environmentId),
|
|
58503
|
+
threadId: decodeURIComponent(threadId)
|
|
58504
|
+
});
|
|
58505
|
+
} catch {
|
|
58506
|
+
return none();
|
|
58507
|
+
}
|
|
58508
|
+
};
|
|
58509
|
+
const withLaunchedBy = (invocation, request) => {
|
|
58510
|
+
const header = request.headers[LAUNCHED_BY_HEADER];
|
|
58511
|
+
if (header === void 0 || invocation.client?.linked !== true) return invocation;
|
|
58512
|
+
const launchedBy = getOrUndefined$1(parseLaunchedBy(header));
|
|
58513
|
+
return launchedBy === void 0 ? invocation : {
|
|
58514
|
+
...invocation,
|
|
58515
|
+
client: {
|
|
58516
|
+
...invocation.client,
|
|
58517
|
+
launchedBy
|
|
58518
|
+
}
|
|
58519
|
+
};
|
|
58520
|
+
};
|
|
58272
58521
|
const linkedEnvironmentsOff = jsonUnsafe({
|
|
58273
58522
|
error: "linked_environments_off",
|
|
58274
58523
|
message: "Linked environments is off on this machine. Turn it on in its Settings → Connections."
|
|
@@ -58292,8 +58541,9 @@ const makeMcpAuthMiddleware = gen(function* () {
|
|
|
58292
58541
|
offerOAuth: isSome(clients) && !looksLikeProviderToken(token)
|
|
58293
58542
|
});
|
|
58294
58543
|
}
|
|
58295
|
-
const
|
|
58296
|
-
if (
|
|
58544
|
+
const modeLimited = withModeLimit(invocation, request);
|
|
58545
|
+
if (modeLimited === void 0) return invalidModeLimit;
|
|
58546
|
+
const limited = withLaunchedBy(modeLimited, request);
|
|
58297
58547
|
const linkedEnvironments = yield* linksEnabled;
|
|
58298
58548
|
if (limited.client?.linked === true && !linkedEnvironments) return linkedEnvironmentsOff;
|
|
58299
58549
|
return {
|
|
@@ -58965,12 +59215,24 @@ const handler = gen(function* () {
|
|
|
58965
59215
|
if (!upgrade && !matches(readOnly ? ALLOWED_PATHS : MUTABLE_PATHS)) return text$2("Method Not Allowed", { status: 405 });
|
|
58966
59216
|
const controlsDevice = upgrade && hubPath !== "/api/devices/ws" || !readOnly && /\/api\/(stream-(mode|settings)|fold)$/.test(hubPath);
|
|
58967
59217
|
yield* authenticateMediaRequest(controlsDevice ? AuthOrchestrationOperateScope : AuthOrchestrationReadScope);
|
|
58968
|
-
const
|
|
59218
|
+
const devices = yield* DeviceService;
|
|
59219
|
+
const ready = yield* devices.currentReadiness(url.value.searchParams.get("hostId") ?? void 0);
|
|
58969
59220
|
if (!ready) return text$2("Device hub is not running", { status: 503 });
|
|
58970
59221
|
const upstreamSearch = new URLSearchParams(url.value.search);
|
|
58971
59222
|
upstreamSearch.delete("wsTicket");
|
|
58972
59223
|
upstreamSearch.delete("hostId");
|
|
58973
59224
|
const search = upstreamSearch.size > 0 ? `?${upstreamSearch.toString()}` : "";
|
|
59225
|
+
const screenshotDevice = upstreamSearch.get("device");
|
|
59226
|
+
if (!ready.upstream && hubPath === "/vendor/serve-sim/api/screenshot" && screenshotDevice) {
|
|
59227
|
+
const { png } = yield* devices.screenshot({
|
|
59228
|
+
hostId: ready.hostId,
|
|
59229
|
+
deviceId: screenshotDevice
|
|
59230
|
+
});
|
|
59231
|
+
return uint8Array(png, {
|
|
59232
|
+
contentType: "image/png",
|
|
59233
|
+
headers: { "cache-control": "no-store, no-transform" }
|
|
59234
|
+
});
|
|
59235
|
+
}
|
|
58974
59236
|
const routed = ready.upstream ? yield* ready.upstream(hubPath, upstreamSearch) : void 0;
|
|
58975
59237
|
if (routed === null) return text$2("Not Found", { status: 404 });
|
|
58976
59238
|
const upstreamUrl = routed?.url ?? `${ready.hub.origin}${hubPath}${search}`;
|
|
@@ -61264,24 +61526,32 @@ const make = gen(function* () {
|
|
|
61264
61526
|
discard: true
|
|
61265
61527
|
});
|
|
61266
61528
|
});
|
|
61267
|
-
const
|
|
61529
|
+
const queuedThreadRequests = /* @__PURE__ */ new Map();
|
|
61530
|
+
const worker = yield* makeDrainableWorker((request) => suspend(() => {
|
|
61531
|
+
if (request.threadId !== null) queuedThreadRequests.delete(request.threadId);
|
|
61532
|
+
return synchronize(request);
|
|
61533
|
+
}).pipe(provideService(BackgroundGitWork, true), catchCauseIf((cause) => !hasInterruptsOnly(cause), (cause) => logWarning("thread pull request refresh failed", { cause: pretty(cause) }))));
|
|
61534
|
+
const enqueueThread = (threadId, refresh) => suspend(() => {
|
|
61535
|
+
const queued = queuedThreadRequests.get(threadId);
|
|
61536
|
+
if (queued !== void 0) {
|
|
61537
|
+
queued.refresh ||= refresh;
|
|
61538
|
+
return void_;
|
|
61539
|
+
}
|
|
61540
|
+
const request = {
|
|
61541
|
+
threadId,
|
|
61542
|
+
refresh
|
|
61543
|
+
};
|
|
61544
|
+
queuedThreadRequests.set(threadId, request);
|
|
61545
|
+
return worker.enqueue(request);
|
|
61546
|
+
});
|
|
61268
61547
|
const processEvent = (event) => {
|
|
61269
61548
|
switch (event.type) {
|
|
61270
61549
|
case "thread.created":
|
|
61271
61550
|
case "thread.unarchived":
|
|
61272
|
-
case "thread.metadata-updated": return
|
|
61273
|
-
threadId: event.threadId,
|
|
61274
|
-
refresh: false
|
|
61275
|
-
});
|
|
61551
|
+
case "thread.metadata-updated": return enqueueThread(event.threadId, false);
|
|
61276
61552
|
case "thread.unsettled":
|
|
61277
|
-
case "checkpoint.captured": return
|
|
61278
|
-
|
|
61279
|
-
refresh: true
|
|
61280
|
-
});
|
|
61281
|
-
case "run.updated": if (event.payload.status === "completed" || event.payload.status === "failed" || event.payload.status === "cancelled" || event.payload.status === "interrupted") return worker.enqueue({
|
|
61282
|
-
threadId: event.threadId,
|
|
61283
|
-
refresh: true
|
|
61284
|
-
});
|
|
61553
|
+
case "checkpoint.captured": return enqueueThread(event.threadId, true);
|
|
61554
|
+
case "run.updated": if (event.payload.status === "completed" || event.payload.status === "failed" || event.payload.status === "cancelled" || event.payload.status === "interrupted") return enqueueThread(event.threadId, true);
|
|
61285
61555
|
}
|
|
61286
61556
|
return void_;
|
|
61287
61557
|
};
|
|
@@ -61673,4 +61943,4 @@ const layerMakeServer = unwrap(gen(function* () {
|
|
|
61673
61943
|
const runServer = launch(layerMakeServer);
|
|
61674
61944
|
export { runServer };
|
|
61675
61945
|
|
|
61676
|
-
//# sourceMappingURL=server-
|
|
61946
|
+
//# sourceMappingURL=server-CsS0d2BE.mjs.map
|