ryco-cli 0.1.25 → 0.1.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/{GrokDriver-CduUwiOH.mjs → AcpAdapter-BemMQNbj.mjs} +102 -604
- package/dist/{GrokDriver-D0jraOC_.cjs → AcpAdapter-CadxcdZV.cjs} +129 -612
- package/dist/AcpNativeLogging-BsbZRRD7.mjs +312 -0
- package/dist/AcpNativeLogging-DZPZNoju.cjs +383 -0
- package/dist/AcpRegistryDriver-BfCPf8FX.cjs +222 -0
- package/dist/AcpRegistryDriver-BpXCjh9I.mjs +221 -0
- package/dist/{AzureDevOpsSourceControlProvider-COmd21c-.cjs → AzureDevOpsSourceControlProvider-B9N_8NJg.cjs} +14 -14
- package/dist/{AzureDevOpsSourceControlProvider-B_E0XXfD.mjs → AzureDevOpsSourceControlProvider-BcQO_CyW.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-pUKsNXcg.mjs → BitbucketSourceControlProvider-BTUY2ZT8.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-CD8IvXQK.cjs → BitbucketSourceControlProvider-C9WuwvY2.cjs} +14 -14
- package/dist/{BunPTY-TbHbSc8S.mjs → BunPTY-DdnqQAdw.mjs} +1 -1
- package/dist/{ClaudeDriver-Dry5uJfX.cjs → ClaudeDriver-BSTxNNGO.cjs} +162 -126
- package/dist/{ClaudeDriver-CGifBixr.mjs → ClaudeDriver-Csnp78qR.mjs} +129 -93
- package/dist/{CodexDriver-BzR8gA8w.cjs → CodexDriver-BK4HVNV4.cjs} +145 -60
- package/dist/{CodexDriver-V4CL9APE.mjs → CodexDriver-fwcV84hX.mjs} +99 -14
- package/dist/{CodexTextGeneration-DTrSzY-I.cjs → CodexTextGeneration-Y2GSS7f1.cjs} +145 -99
- package/dist/{CodexTextGeneration-DoCidwvI.mjs → CodexTextGeneration-_4aT5BHa.mjs} +141 -95
- package/dist/{CopilotDriver-Dt13X60f.mjs → CopilotDriver-B12ZJ-L_.mjs} +69 -7
- package/dist/{CopilotDriver-rLcA8PSN.cjs → CopilotDriver-C7IyIwVW.cjs} +98 -36
- package/dist/{CursorDriver-C3s-8s9F.cjs → CursorDriver-BWmCfJ-w.cjs} +38 -32
- package/dist/{CursorDriver-HIPUs7cz.mjs → CursorDriver-C_p0v-ul.mjs} +12 -6
- package/dist/{ForgejoSourceControlProvider-JgiyrMqp.cjs → ForgejoSourceControlProvider-DTRrllIH.cjs} +14 -14
- package/dist/{ForgejoSourceControlProvider-CmvOAzEG.mjs → ForgejoSourceControlProvider-DmOGJEaJ.mjs} +3 -3
- package/dist/{GitHubSourceControlProvider-CItCpOcC.cjs → GitHubSourceControlProvider-D-YV8WP6.cjs} +16 -17
- package/dist/{GitHubSourceControlProvider-BYuvbcBf.mjs → GitHubSourceControlProvider-sQGcwnr3.mjs} +6 -7
- package/dist/{GitLabSourceControlProvider-CMce22nU.cjs → GitLabSourceControlProvider-kKYYnpER.cjs} +14 -14
- package/dist/{GitLabSourceControlProvider-DZzEaVSi.mjs → GitLabSourceControlProvider-mIl-K-4F.mjs} +3 -3
- package/dist/GrokDriver-BFOniP_K.cjs +567 -0
- package/dist/GrokDriver-CDcWkiAi.mjs +552 -0
- package/dist/{Metrics-a1h4iBQi.mjs → Metrics-C-3MahDy.mjs} +1 -107
- package/dist/{Metrics-Bcb9vCAe.cjs → Metrics-DCKbdeoH.cjs} +0 -168
- package/dist/{NodePTY-B_p5tLYO.mjs → NodePTY-DArvQ9bX.mjs} +1 -1
- package/dist/{OpenCodeDriver-DxGpgtDS.cjs → OpenCodeDriver-CckbFEQJ.cjs} +459 -141
- package/dist/{OpenCodeDriver-Bz_uJdMA.mjs → OpenCodeDriver-CnWJHyDJ.mjs} +430 -112
- package/dist/SideQuestionIsolation-5eGFRW0t.mjs +26 -0
- package/dist/SideQuestionIsolation-DvVKZWxi.cjs +37 -0
- package/dist/{SourceControlProviderDiscoveryCatalog-ZtwPWoxE.mjs → SourceControlProviderDiscoveryCatalog-BVvq7liJ.mjs} +2 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-Dm_lhrhv.cjs → SourceControlProviderDiscoveryCatalog-CyUhKJLD.cjs} +6 -5
- package/dist/bin.cjs +12537 -3029
- package/dist/bin.mjs +10444 -965
- package/dist/client/assets/AccountSettings-DLbcE2w-.js +1 -0
- package/dist/client/assets/Adobe-CNS1-UCS2-fO900upv.bcmap +0 -0
- package/dist/client/assets/Adobe-GB1-UCS2-BA083yIo.bcmap +0 -0
- package/dist/client/assets/Adobe-Japan1-UCS2-BL-4M2vS.bcmap +0 -0
- package/dist/client/assets/Adobe-Korea1-UCS2-BEQZuOdo.bcmap +0 -0
- package/dist/client/assets/AiFocusSettings-FKvdkl4P.js +1 -0
- package/dist/client/assets/{AnimatedHeight-DPqb09B0.js → AnimatedHeight-CbIEyMLg.js} +1 -1
- package/dist/client/assets/AppearanceSettings-B2LsGKmL.js +1 -0
- package/dist/client/assets/{BranchToolbar.logic-CHRK3hDt.js → BranchToolbar.logic-BqkvYNPk.js} +1 -1
- package/dist/client/assets/{BrowserPanel-2Xu08il5.js → BrowserPanel-C_C4zjrh.js} +1 -1
- package/dist/client/assets/ChatRightPanel-ibiQ79jI.js +195 -0
- package/dist/client/assets/{ChatThreadRouteView-CNww3i2J.js → ChatThreadRouteView-c7AXmbSk.js} +1 -1
- package/dist/client/assets/CommandPaletteDialog-DdPKN6rv.js +1 -0
- package/dist/client/assets/CompositeRoot-DKwS-ADi.js +1 -0
- package/dist/client/assets/{ComputerUseSettings-BJs7jqR0.js → ComputerUseSettings-DM17BYP5.js} +1 -1
- package/dist/client/assets/ConnectionsSettings-D6wysIC8.js +7 -0
- package/dist/client/assets/ContextHandoffEndpointLabel-CsF_maM_.js +4 -0
- package/dist/client/assets/{DiagnosticsSettings-BmrqOKMe.js → DiagnosticsSettings-Bq2l-C4J.js} +2 -2
- package/dist/client/assets/{DialogHandle-pelzaaiH.js → DialogHandle-DuKTleCw.js} +1 -1
- package/dist/client/assets/{DialogPopup-BLM0vN4N.js → DialogPopup-Dt7DzTWv.js} +1 -1
- package/dist/client/assets/DialogRoot-DRyawL6l.js +1 -0
- package/dist/client/assets/{DialogTitle-BvIjMtMm.js → DialogTitle-BaxfPC6e.js} +1 -1
- package/dist/client/assets/DialogTrigger-D0PJ8bRT.js +1 -0
- package/dist/client/assets/{DialogViewport-Cz0OadGI.js → DialogViewport-C3B2JZWQ.js} +1 -1
- package/dist/client/assets/DraftChatThreadRouteView-B8YiD5NP.js +1 -0
- package/dist/client/assets/ETHK-B5-H-1MLb5v9x.bcmap +0 -0
- package/dist/client/assets/{ExternalIdentityWeb.logic-3rlDV7lT.js → ExternalIdentityWeb.logic-CrcNfdHK.js} +1 -1
- package/dist/client/assets/FoxitDingbats-BaQLufoW.pfb +0 -0
- package/dist/client/assets/FoxitFixed-Dyd5Nipw.pfb +0 -0
- package/dist/client/assets/FoxitFixedBold-D5TuYRwj.pfb +0 -0
- package/dist/client/assets/FoxitFixedBoldItalic-BqlXQ_Yv.pfb +0 -0
- package/dist/client/assets/FoxitFixedItalic-DqjQkmbS.pfb +0 -0
- package/dist/client/assets/FoxitSerif-qbgiDIe-.pfb +0 -0
- package/dist/client/assets/FoxitSerifBold-DZZ4CclT.pfb +0 -0
- package/dist/client/assets/FoxitSerifBoldItalic-DSQtwd_X.pfb +0 -0
- package/dist/client/assets/FoxitSerifItalic-CQs5lx9Y.pfb +0 -0
- package/dist/client/assets/FoxitSymbol-BVtbc20u.pfb +0 -0
- package/dist/client/assets/GBK-EUC-H-CAORqCkf.bcmap +0 -0
- package/dist/client/assets/GBK2K-H-Cv55KPk8.bcmap +0 -0
- package/dist/client/assets/GBKp-EUC-H-CElrnV5g.bcmap +0 -0
- package/dist/client/assets/GBT-EUC-H-BTsQIL1M.bcmap +0 -0
- package/dist/client/assets/GBT-H-DL9h-WkS.bcmap +0 -0
- package/dist/client/assets/GBTpc-EUC-H-DnIh5WJ3.bcmap +0 -0
- package/dist/client/assets/{GlassSurface-CEVIdyfP.js → GlassSurface-CBIEgwt1.js} +1 -1
- package/dist/client/assets/HKscs-B5-H-CXbBbq6g.bcmap +0 -0
- package/dist/client/assets/{HostedConnectionControls-r9cyZPyF.js → HostedConnectionControls-DOpTlXzE.js} +1 -1
- package/dist/client/assets/{HostedHubRoot-BkfafJ5x.js → HostedHubRoot-C1jq8cM6.js} +2 -2
- package/dist/client/assets/{HostedNativeAuthorizationRoute-CqHuW853.js → HostedNativeAuthorizationRoute-Clw1DHQW.js} +2 -2
- package/dist/client/assets/{HostedNodeRenameDialog-C7m-nvTj.js → HostedNodeRenameDialog-Bd_Qu_ek.js} +1 -1
- package/dist/client/assets/{HostedRelayTrustNotice-DNZQyAX0.js → HostedRelayTrustNotice-CGcBpT9m.js} +1 -1
- package/dist/client/assets/{IntegrationsSettingsPanel-hul3ysgL.js → IntegrationsSettingsPanel-J0qODRW-.js} +2 -2
- package/dist/client/assets/KSC-Johab-H-CGtV3MPT.bcmap +0 -0
- package/dist/client/assets/{KeybindingsSettings-Cme6omBM.js → KeybindingsSettings-CwxIHsFy.js} +1 -1
- package/dist/client/assets/{LazyBrowserPanel-COJFwNK7.js → LazyBrowserPanel-VNAn6AUL.js} +2 -2
- package/dist/client/assets/LiberationSans-Bold-BPt4bU5Z.ttf +0 -0
- package/dist/client/assets/LiberationSans-BoldItalic-Bj53-jFw.ttf +0 -0
- package/dist/client/assets/LiberationSans-Italic-5QhGB3P9.ttf +0 -0
- package/dist/client/assets/LiberationSans-Regular-cbskN6YR.ttf +0 -0
- package/dist/client/assets/McpServersSettings-1pkIeutq.js +6 -0
- package/dist/client/assets/MobileSheet-DddfN8c2.js +1 -0
- package/dist/client/assets/{NodeSecuritySettings-CwT5nEW9.js → NodeSecuritySettings-BOIZeFZo.js} +1 -1
- package/dist/client/assets/OpinionatedPluginsSettings-oTIrPtIb.js +1 -0
- package/dist/client/assets/PdfAttachmentPreview-BCMO9OHD.js +54 -0
- package/dist/client/assets/{PhoneGetAppInterstitial-BBnGXVkR.js → PhoneGetAppInterstitial-0EOj-PbW.js} +1 -1
- package/dist/client/assets/PhoneHome-Cg7l3b1T.js +1 -0
- package/dist/client/assets/{PhoneSettingsSurface-DdVCndyt.js → PhoneSettingsSurface-BXAUtZ9M.js} +2 -2
- package/dist/client/assets/ProvidersSettingsPanel-BaJgypXu.js +1 -0
- package/dist/client/assets/{QuitShortcutFeedback-mF7X0WMD.js → QuitShortcutFeedback-DgJFEd6b.js} +1 -1
- package/dist/client/assets/{RedactedSensitiveText-DovqFcmM.js → RedactedSensitiveText-D1VC2xa7.js} +1 -1
- package/dist/client/assets/RootAppShell-D2RjZ9jQ.js +7 -0
- package/dist/client/assets/Separator-CeMncdkm.js +1 -0
- package/dist/client/assets/SettingsDialog-B2hEb6u8.js +2 -0
- package/dist/client/assets/SettingsPanels-DtWLQDne.js +3 -0
- package/dist/client/assets/{SettingsPanels.editor-d-rVlbeN.js → SettingsPanels.editor-DJRckD71.js} +1 -1
- package/dist/client/assets/SourceControlSettings-IpoZrjt5.js +1 -0
- package/dist/client/assets/StatisticsPage-CUpE_5Gr.js +1 -0
- package/dist/client/assets/StatisticsPanel-CHrAY5AP.js +1 -0
- package/dist/client/assets/StatisticsSettingsLink-bGWuxNG3.js +1 -0
- package/dist/client/assets/{ThreadTerminalDrawer-DaLrSTn9.js → ThreadTerminalDrawer-BEv83xrk.js} +3 -3
- package/dist/client/assets/ThreadWorkspacePanel-BdMdJVHJ.js +2073 -0
- package/dist/client/assets/UniCNS-UCS2-H-DWzv8UhH.bcmap +0 -0
- package/dist/client/assets/UniCNS-UTF16-H-Bw0JKgCq.bcmap +0 -0
- package/dist/client/assets/UniCNS-UTF32-H-IE_GrH2i.bcmap +0 -0
- package/dist/client/assets/UniCNS-UTF8-H-BbLcFh6Q.bcmap +0 -0
- package/dist/client/assets/UniGB-UCS2-H-D7xzRvZN.bcmap +0 -0
- package/dist/client/assets/UniGB-UTF16-H-DKjbEwc0.bcmap +0 -0
- package/dist/client/assets/UniGB-UTF32-H-Behfouj5.bcmap +0 -0
- package/dist/client/assets/UniGB-UTF8-H-EROft1ro.bcmap +0 -0
- package/dist/client/assets/UniJIS-UCS2-H-2DbZ0MaQ.bcmap +0 -0
- package/dist/client/assets/UniJIS-UTF16-H-BlDDPdCK.bcmap +0 -0
- package/dist/client/assets/UniJIS-UTF32-H-BIQPWkjv.bcmap +0 -0
- package/dist/client/assets/UniJIS-UTF8-H-CGusholx.bcmap +0 -0
- package/dist/client/assets/UniJIS2004-UTF16-H-KXixH-HI.bcmap +0 -0
- package/dist/client/assets/UniJIS2004-UTF32-H-CXrD-9YE.bcmap +0 -0
- package/dist/client/assets/UniJIS2004-UTF8-H-BkOctZjn.bcmap +0 -0
- package/dist/client/assets/UniJISX0213-UTF32-H-BavAhZjb.bcmap +0 -0
- package/dist/client/assets/UniJISX02132004-UTF32-H-DAH-AgUq.bcmap +0 -0
- package/dist/client/assets/UniKS-UCS2-H-YeUc7k1L.bcmap +0 -0
- package/dist/client/assets/UniKS-UTF16-H-B0dvB-Td.bcmap +0 -0
- package/dist/client/assets/UniKS-UTF32-H-olR_LtmR.bcmap +0 -0
- package/dist/client/assets/UniKS-UTF8-H-CbpebD-y.bcmap +0 -0
- package/dist/client/assets/{activity-bn_fBQGf.js → activity-BmRcsTyL.js} +1 -1
- package/dist/client/assets/{alert-BmLJh6DH.js → alert-C5UiA2xk.js} +1 -1
- package/dist/client/assets/{appChrome-Dy57Ve9N.js → appChrome-CsZ2ylc1.js} +1 -1
- package/dist/client/assets/{arrow-left-pzj1cbX3.js → arrow-left-CSz-z20j.js} +1 -1
- package/dist/client/assets/{arrow-right-BW5jU-vo.js → arrow-right-DEi91hao.js} +1 -1
- package/dist/client/assets/{arrow-up-right-AfC5AaSO.js → arrow-up-right-D7SpcTV9.js} +1 -1
- package/dist/client/assets/authorization-B1YXfej3.js +1 -0
- package/dist/client/assets/badge-BjvTY7-E.js +1 -0
- package/dist/client/assets/{bot-CsKkSRlb.js → bot-SC4UGZyw.js} +1 -1
- package/dist/client/assets/{capabilities-DskyVNd2.js → capabilities-BCkDNe83.js} +1 -1
- package/dist/client/assets/{chart-column-DhvWXIiH.js → chart-column-C08MuLgY.js} +1 -1
- package/dist/client/assets/chevron-right-DgB53U1_.js +1 -0
- package/dist/client/assets/{clipboard-copy-fJnfdl4H.js → clipboard-copy-D74Wvnon.js} +1 -1
- package/dist/client/assets/{data-list-_E-Al1sf.js → data-list-CZ4Utnfl.js} +1 -1
- package/dist/client/assets/{desktopWorkspace-DycXKuMm.js → desktopWorkspace-DVfn9ZT_.js} +1 -1
- package/dist/client/assets/{download-CLQzE1di.js → download-Dio40wIJ.js} +1 -1
- package/dist/client/assets/editorPreferences-2dG4uloq.js +1 -0
- package/dist/client/assets/{empty-YXFtCUDN.js → empty-6LExKYgQ.js} +1 -1
- package/dist/client/assets/{group-DOCkUmuY.js → group-D_mu0Kiq.js} +1 -1
- package/dist/client/assets/{hostedConnectionCoordinator-JZ1dLx4v.js → hostedConnectionCoordinator-YkDLnATK.js} +1 -1
- package/dist/client/assets/{hubRoutes-C2S5of9_.js → hubRoutes-D3quWvU7.js} +1 -1
- package/dist/client/assets/{index-CvRFRkBK.js → index-7MTgf8YI.js} +2 -2
- package/dist/client/assets/{input-C2xv8mMt.js → input-CfVJycb1.js} +1 -1
- package/dist/client/assets/jbig2-CNFLgX9F.wasm +0 -0
- package/dist/client/assets/kbd-uFa_tY-L.js +1 -0
- package/dist/client/assets/{key-round-CYcb9lAa.js → key-round-C-oUSjpF.js} +1 -1
- package/dist/client/assets/{layers-CGlOWYxu.js → layers-Co2a5C1k.js} +1 -1
- package/dist/client/assets/{log-out-CZW2EpNJ.js → log-out-pWFhbvwr.js} +1 -1
- package/dist/client/assets/{logging-BpmZOfmu.js → logging-JMrwaeZh.js} +1 -1
- package/dist/client/assets/main-BNPtp9Z0.css +2 -0
- package/dist/client/assets/main-CGeD6yVE.js +9 -0
- package/dist/client/assets/openjpeg-MeY6OQBn.wasm +0 -0
- package/dist/client/assets/{palette-CQOuNfSO.js → palette-B_6C4fD6.js} +1 -1
- package/dist/client/assets/pdf.worker.min-Dswkl-cV.mjs +29 -0
- package/dist/client/assets/{play-CPVy9wwV.js → play-DFtc9zBy.js} +1 -1
- package/dist/client/assets/primary-CNUdEGcv.js +2 -0
- package/dist/client/assets/providerDriverMeta-Cg_XLUfo.js +1 -0
- package/dist/client/assets/{ProviderModelPicker-DoYEUZrn.js → providerInstances-JaDrOWPZ.js} +1 -1
- package/dist/client/assets/providerModels-5uOq3qPC.js +1 -0
- package/dist/client/assets/qcms_bg-3PJi_GXR.wasm +0 -0
- package/dist/client/assets/{qr-code-BPqDlVMn.js → qr-code-BU354aLS.js} +1 -1
- package/dist/client/assets/{qr-code-C6BVTc4V.js → qr-code-DaHWf7Oq.js} +1 -1
- package/dist/client/assets/quickjs-eval-zJSp5SB4.wasm +0 -0
- package/dist/client/assets/radio-group-DKaA1eey.js +2 -0
- package/dist/client/assets/{refresh-cw-B5Cz1z3e.js → refresh-cw-CY5BeUEr.js} +1 -1
- package/dist/client/assets/runtime-BKneT96Q.js +17 -0
- package/dist/client/assets/{save-C7zM6ey6.js → save-DIHMjHXd.js} +1 -1
- package/dist/client/assets/{scroll-area-5OU_pvTW.js → scroll-area-Cq4SX9P8.js} +1 -1
- package/dist/client/assets/{scrollEdges-qnEXfIOg.js → scrollEdges-BaWRjrac.js} +1 -1
- package/dist/client/assets/{separator-B5HfRiaO.js → separator-BN705fC0.js} +1 -1
- package/dist/client/assets/{settingsLayout-CfKq88KD.js → settingsLayout-DQERzSce.js} +1 -1
- package/dist/client/assets/{sheet-B9gQDy_I.js → sheet-CFvRY7T6.js} +1 -1
- package/dist/client/assets/{shield-rdjnBE2Q.js → shield-Zn2kFj5M.js} +1 -1
- package/dist/client/assets/{shield-alert-7yBlEyOs.js → shield-alert-DMB5gKiC.js} +1 -1
- package/dist/client/assets/{shield-check-CnKgVJ0F.js → shield-check-DyNf6Bky.js} +1 -1
- package/dist/client/assets/{sidebar-BdvL1Pbj.js → sidebar-Bsh64sLK.js} +1 -1
- package/dist/client/assets/sidebarProjectFolders-CQbpO9ZI.js +4 -0
- package/dist/client/assets/{sidebarStatusText-CZKsUFBD.js → sidebarStatusText-DCo-whyK.js} +1 -1
- package/dist/client/assets/{skeleton-CoyLqyaB.js → skeleton-DEuowfjY.js} +1 -1
- package/dist/client/assets/{smartphone-CBgpMHXR.js → smartphone-BLWJ7C9-.js} +1 -1
- package/dist/client/assets/{sparkles-w-UZXQx1.js → sparkles-DAXDXp_s.js} +1 -1
- package/dist/client/assets/src-DPpEXU6w.js +14 -0
- package/dist/client/assets/{star-BZ-RtSFD.js → star-CjQxHYbD.js} +1 -1
- package/dist/client/assets/switch-LahPAvrd.js +48 -0
- package/dist/client/assets/{toggle-DVGrNHjq.js → toggle-45lsrmyi.js} +1 -1
- package/dist/client/assets/{toggle-group-CNDOfNhH.js → toggle-group-D5pl24ED.js} +1 -1
- package/dist/client/assets/{tokenModePresentation-CQNdC9CW.js → tokenModePresentation-CPUsUGY4.js} +1 -1
- package/dist/client/assets/tooltip-B8-izeMo.js +1 -0
- package/dist/client/assets/{unplug-CRUwFNFw.js → unplug-Bjpxv8i0.js} +1 -1
- package/dist/client/assets/usage-8vQUo0mr.js +1 -0
- package/dist/client/assets/useAppSidebarCollapsed-uwz9Hlgc.js +1 -0
- package/dist/client/assets/useBaseUiId-BtuL7q77.js +1 -0
- package/dist/client/assets/useLabelableId-N_LsKNbf.js +1 -0
- package/dist/client/assets/useNavigate-DADLi29i.js +1 -0
- package/dist/client/assets/usePhoneThreadActions-B9_HK7tn.js +1 -0
- package/dist/client/assets/usePopupViewport-w8BEny9j.js +1 -0
- package/dist/client/assets/useScrollLock-bCmUzTgK.js +1 -0
- package/dist/client/assets/useStatistics-DJtONxT0.js +55 -0
- package/dist/client/assets/useTriggerFocusGuards-C7JWO2LT.js +1 -0
- package/dist/client/assets/useValueChanged-DkoUO9bY.js +1 -0
- package/dist/client/assets/{user-round-DStbWN3z.js → user-round-DEWIPpNs.js} +1 -1
- package/dist/client/assets/{vscode-icons-BihBo3tb.js → vscode-icons-DTH-Vj-_.js} +1 -1
- package/dist/client/assets/workspaceMetadataProjection-BnpxBe8S.js +1 -0
- package/dist/client/assets/{wrench-BBIgGxy9.js → wrench-36WYdK_a.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/collectUint8StreamText-BAUF-vzz.mjs +37 -0
- package/dist/collectUint8StreamText-vagpNUMJ.cjs +42 -0
- package/dist/deviceHostWorker-C-BSnmkn.mjs +167 -0
- package/dist/deviceHostWorker-CYnrwfrv.cjs +169 -0
- package/dist/git-C4iJMbBu.mjs +132 -0
- package/dist/git-irmB8_k7.cjs +218 -0
- package/dist/{makeManagedServerProvider-CwYhl_P-.mjs → makeManagedServerProvider-BINne1KE.mjs} +3 -38
- package/dist/{makeManagedServerProvider-Dy2Ny9tk.cjs → makeManagedServerProvider-DGbd8BhM.cjs} +1 -60
- package/dist/resource-monitor/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
- package/dist/runtimeSession-Bj0OUcNJ.cjs +63 -0
- package/dist/runtimeSession-CA6cLWg0.mjs +40 -0
- package/dist/schemaJson-CaG1bOvo.mjs +49 -0
- package/dist/schemaJson-CuhFxa8p.cjs +66 -0
- package/dist/{collectUint8StreamText-whblCEfg.cjs → src-BlzIcnVG.cjs} +522 -116
- package/dist/{collectUint8StreamText-CE1Re5Ij.mjs → src-DtEOcXdl.mjs} +350 -94
- package/package.json +1 -1
- package/dist/AcpNativeLogging-CA6XYzIS.cjs +0 -5130
- package/dist/AcpNativeLogging-D4-VoHrq.mjs +0 -5015
- package/dist/client/assets/AccountSettings-Bv57-JYy.js +0 -1
- package/dist/client/assets/AiFocusSettings-DCPHmJpA.js +0 -1
- package/dist/client/assets/AppearanceSettings-EmTrtb_U.js +0 -1
- package/dist/client/assets/ChatRightPanel-C1VD6GCV.js +0 -194
- package/dist/client/assets/CommandPaletteDialog-B_f3fKp7.js +0 -1
- package/dist/client/assets/CompositeRoot-B40iitmH.js +0 -1
- package/dist/client/assets/ConnectionsSettings-B9nfvgLG.js +0 -7
- package/dist/client/assets/ContextHandoffEndpointLabel-BSQOArMR.js +0 -4
- package/dist/client/assets/DialogRoot-CY6ZzEUS.js +0 -1
- package/dist/client/assets/DialogTrigger-CIeVAA-a.js +0 -1
- package/dist/client/assets/DraftChatThreadRouteView-DMIGMESb.js +0 -1
- package/dist/client/assets/McpServersSettings-CPeNF8_u.js +0 -6
- package/dist/client/assets/MobileSheet-BZo-RAfm.js +0 -1
- package/dist/client/assets/OpinionatedPluginsSettings-D8A1CbMG.js +0 -1
- package/dist/client/assets/PhoneHome-BTKOPVjw.js +0 -1
- package/dist/client/assets/ProvidersSettingsPanel-ldDCPVIY.js +0 -1
- package/dist/client/assets/RootAppShell-CzmEWO9w.js +0 -7
- package/dist/client/assets/Separator-BhAVTIOc.js +0 -1
- package/dist/client/assets/SettingsDialog-ByXgBN0U.js +0 -2
- package/dist/client/assets/SettingsPanels-Bgf4vkrJ.js +0 -3
- package/dist/client/assets/SourceControlSettings-dKw0FaN1.js +0 -1
- package/dist/client/assets/StatisticsPage-C2RuqDIK.js +0 -1
- package/dist/client/assets/StatisticsPanel-DqoXnrhQ.js +0 -1
- package/dist/client/assets/StatisticsSettingsLink-C_f31sb4.js +0 -1
- package/dist/client/assets/ThreadWorkspacePanel-BvRZIxZQ.js +0 -2073
- package/dist/client/assets/authorization-7xVVtCBu.js +0 -1
- package/dist/client/assets/badge-DnBuGHGL.js +0 -1
- package/dist/client/assets/chevron-right-CITtTwME.js +0 -1
- package/dist/client/assets/editorPreferences-Bg624RVT.js +0 -1
- package/dist/client/assets/kbd-4-4mGdIa.js +0 -1
- package/dist/client/assets/main-CC-U8LrA.css +0 -2
- package/dist/client/assets/main-CzDOnLFw.js +0 -9
- package/dist/client/assets/primary-CjhRI8fe.js +0 -2
- package/dist/client/assets/providerDriverMeta-BVHpFupf.js +0 -1
- package/dist/client/assets/providerModels-BsybzP4P.js +0 -1
- package/dist/client/assets/radio-group-C8qudOQH.js +0 -2
- package/dist/client/assets/runtime-Bxg7k81u.js +0 -17
- package/dist/client/assets/sidebarProjectFolders-BH8XBqNe.js +0 -4
- package/dist/client/assets/src-Bi-5Nw9C.js +0 -14
- package/dist/client/assets/switch-CEJEmLe7.js +0 -48
- package/dist/client/assets/tooltip-B7Z4qomY.js +0 -1
- package/dist/client/assets/useAppSidebarCollapsed-wq6czkNJ.js +0 -1
- package/dist/client/assets/useBaseUiId-OYaGjnkh.js +0 -1
- package/dist/client/assets/useLabelableId-VMc-yITe.js +0 -1
- package/dist/client/assets/useNavigate-DVi0rBlf.js +0 -1
- package/dist/client/assets/usePhoneThreadActions-CwwHikjB.js +0 -1
- package/dist/client/assets/usePopupViewport-BcSIK_ph.js +0 -1
- package/dist/client/assets/useScrollLock-BQf9VYJT.js +0 -1
- package/dist/client/assets/useStatistics-DczKdEfy.js +0 -55
- package/dist/client/assets/useTriggerFocusGuards-DjP-D0_a.js +0 -1
- package/dist/client/assets/useValueChanged-CRwCkFdy.js +0 -1
- package/dist/client/assets/workspaceMetadataProjection-j3BGlVOB.js +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { $ as
|
|
6
|
-
import {
|
|
3
|
+
import { As as EventId, Bs as RuntimeSubagentId, Eo as ProviderInstanceId, Is as ProviderItemId, Kr as isToolLifecycleItemType, Ls as RuntimeItemId, Ms as MessageId, Or as CodexSettings, Rs as RuntimeRequestId, Ss as ApprovalRequestId, To as ProviderDriverKind, Vs as RuntimeTaskId, Ws as TurnId, ia as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, ma as ProviderApprovalDecision, to as ThreadGoal } from "./src-DtEOcXdl.mjs";
|
|
4
|
+
import { Z as ServerConfig } from "./Metrics-C-3MahDy.mjs";
|
|
5
|
+
import { $t as CodexAppServerRequestError, A as makeEventNdjsonLogger, An as V2ThreadNameUpdatedNotification, B as buildTokenReductionInstructions, Bn as V2TurnDiffUpdatedNotification, Bt as ProviderAdapterSessionClosedError, Cn as V2ModelReroutedNotification, Dn as V2ServerRequestResolvedNotification, Dr as normalizeModelSlug, En as V2ReasoningTextDeltaNotification, Fn as V2ThreadRealtimeStartedNotification, Ft as installAgentControlNativeHttp, Gn as V2TurnSteerParams, Gt as materializeCodexShadowHome, Hn as V2TurnStartParams, Ht as ProviderAdapterValidationError, In as V2ThreadStartedNotification, Jn as V2WindowsWorldWritableWarningNotification, Jt as CodexAppServerClient, Kn as V2TurnSteerResponse, Kt as resolveCodexHomeLayout, Ln as V2ThreadStatusChangedNotification, Lt as createProcessDeviceToolBinding, Mn as V2ThreadRealtimeErrorNotification, Nn as V2ThreadRealtimeItemAddedNotification, On as V2ThreadGoalClearedNotification, Pn as V2ThreadRealtimeOutputAudioDeltaNotification, Qt as CodexAppServerProtocolParseError, Rn as V2ThreadTokenUsageUpdatedNotification, Rt as ProviderAdapterProcessError, Sn as V2McpToolCallProgressNotification, Sr as getModelSelectionStringOptionValue, Tn as V2ReasoningSummaryTextDeltaNotification, Un as V2TurnStartParams__CollaborationMode, Ut as ProviderDriverError, V as checkRtkAvailability, Vn as V2TurnPlanUpdatedNotification, Vt as ProviderAdapterSessionNotFoundError, Wn as V2TurnStartResponse, Wt as codexContinuationIdentity, Xt as layerCommand, Yt as layerChildProcess, Zt as CodexAppServerProcessExitedError, _n as V2ErrorNotification, _r as resolveAttachmentPath, _t as buildCodexInitializeParams, an as ServerRequest__DynamicToolCallParams, bn as V2ItemStartedNotification, cn as ServerRequest__ToolRequestUserInputParams, cr as makePackageManagedProviderMaintenanceResolver, dn as V2AccountRateLimitsUpdatedNotification, en as CodexAppServerSpawnError, fn as V2AccountUpdatedNotification, fr as resolveProviderMaintenanceCapabilitiesEffect, gn as V2DeprecationNoticeNotification, gt as mergeProviderInstanceEnvironment, hn as V2ConfigWarningNotification, in as ServerRequest__CommandExecutionRequestApprovalParams, jn as V2ThreadRealtimeClosedNotification, k as ProviderEventLoggers, kn as V2ThreadGoalUpdatedNotification, ln as ToolRequestUserInputParams, mn as V2CommandExecutionOutputDeltaNotification, mr as ServerSettingsService, n as AgentControlSessionRegistry, nn as SERVER_NOTIFICATION_METHODS, on as ServerRequest__ExecCommandApprovalParams, or as enrichProviderSnapshotWithVersionAdvisory, pn as V2AgentMessageDeltaNotification, qn as V2WindowsSandboxSetupCompletedNotification, qt as expandHomePath, rn as ServerRequest__ApplyPatchApprovalParams, sn as ServerRequest__FileChangeRequestApprovalParams, t as makeServerQueueMetrics, tn as CodexAppServerTransportError, un as ToolRequestUserInputResponse, vn as V2FileChangeOutputDeltaNotification, vt as checkCodexProviderStatus, wn as V2PlanDeltaNotification, xn as V2McpServerOauthLoginCompletedNotification, xr as getModelSelectionBooleanOptionValue, yn as V2ItemCompletedNotification, yt as makePendingCodexProvider, zn as V2TurnCompletedNotification, zt as ProviderAdapterRequestError } from "./bin.mjs";
|
|
6
|
+
import { i as formatAttachmentPathLines, n as stampRuntimeEvent, r as appendAttachmentPathLines, t as requireRuntimeSessionId } from "./runtimeSession-CA6cLWg0.mjs";
|
|
7
7
|
import { t as formatSourceControlContextsForAgent } from "./sourceControlContextFormatter-DEwpnVAH.mjs";
|
|
8
8
|
import { t as appendProjectCustomSystemPrompt } from "./ProjectCustomSystemPrompt-CS1nulhL.mjs";
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
9
|
+
import { t as makeManagedServerProvider } from "./makeManagedServerProvider-BINne1KE.mjs";
|
|
10
|
+
import { t as makeCodexTextGeneration } from "./CodexTextGeneration-_4aT5BHa.mjs";
|
|
11
|
+
import { Cause, Deferred, Effect, Exit, Fiber, FileSystem, Layer, Option, Queue, Redacted, Ref, Schedule, Schema, Scope, Stream } from "effect";
|
|
11
12
|
import { HttpClient } from "effect/unstable/http";
|
|
12
13
|
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
|
|
13
14
|
import * as SchemaIssue$1 from "effect/SchemaIssue";
|
|
@@ -599,6 +600,9 @@ const makeCodexSessionRuntime = (options) => Effect.gen(function* () {
|
|
|
599
600
|
const collabChildAgentsRef = yield* Ref.make(/* @__PURE__ */ new Map());
|
|
600
601
|
/** Child provider-thread id → its currently running provider turn id. */
|
|
601
602
|
const collabChildLiveTurnsRef = yield* Ref.make(/* @__PURE__ */ new Map());
|
|
603
|
+
const childRevisions = /* @__PURE__ */ new Map();
|
|
604
|
+
const unsettledChildren = /* @__PURE__ */ new Set();
|
|
605
|
+
const reconciledChildStatuses = /* @__PURE__ */ new Map();
|
|
602
606
|
const closedRef = yield* Ref.make(false);
|
|
603
607
|
const resolvedHomePath = options.homePath ? expandHomePath(options.homePath) : void 0;
|
|
604
608
|
const env = {
|
|
@@ -852,8 +856,52 @@ const makeCodexSessionRuntime = (options) => Effect.gen(function* () {
|
|
|
852
856
|
default: return routeCodexChildNotification(notification.method) === "drop";
|
|
853
857
|
}
|
|
854
858
|
});
|
|
859
|
+
const reconcileChild = (childThreadId, includeTurns = false) => Effect.gen(function* () {
|
|
860
|
+
const revision = childRevisions.get(childThreadId);
|
|
861
|
+
const response = yield* client.request("thread/read", {
|
|
862
|
+
threadId: childThreadId,
|
|
863
|
+
includeTurns
|
|
864
|
+
});
|
|
865
|
+
if (childRevisions.get(childThreadId) !== revision) return;
|
|
866
|
+
const child = (yield* Ref.get(collabChildAgentsRef)).get(childThreadId);
|
|
867
|
+
if (!child || response.thread.id !== childThreadId) return;
|
|
868
|
+
const status = response.thread.status;
|
|
869
|
+
const activeTurn = response.thread.turns.findLast((turn) => turn.status === "inProgress");
|
|
870
|
+
const live = status.type === "active";
|
|
871
|
+
yield* Ref.update(collabChildLiveTurnsRef, (current) => {
|
|
872
|
+
const next = new Map(current);
|
|
873
|
+
if (live && activeTurn) next.set(childThreadId, activeTurn.id);
|
|
874
|
+
else if (!live) next.delete(childThreadId);
|
|
875
|
+
return next;
|
|
876
|
+
});
|
|
877
|
+
if (!live) unsettledChildren.delete(childThreadId);
|
|
878
|
+
const signature = JSON.stringify([revision, status]);
|
|
879
|
+
if (reconciledChildStatuses.get(childThreadId) === signature) return;
|
|
880
|
+
reconciledChildStatuses.set(childThreadId, signature);
|
|
881
|
+
yield* emitEvent({
|
|
882
|
+
kind: "notification",
|
|
883
|
+
threadId: options.threadId,
|
|
884
|
+
...child.spawnTurnId ? { turnId: child.spawnTurnId } : {},
|
|
885
|
+
method: "collabAgent/statusChanged",
|
|
886
|
+
payload: {
|
|
887
|
+
agentThreadId: childThreadId,
|
|
888
|
+
...child.nickname ? { nickname: child.nickname } : {},
|
|
889
|
+
...child.role ? { role: child.role } : {},
|
|
890
|
+
...child.agentPath ? { agentPath: child.agentPath } : {},
|
|
891
|
+
status
|
|
892
|
+
}
|
|
893
|
+
});
|
|
894
|
+
}).pipe(Effect.timeout("3 seconds"));
|
|
855
895
|
const handleRawNotification = (notification) => Effect.gen(function* () {
|
|
856
896
|
const payload = notification.params;
|
|
897
|
+
const rootId = currentProviderThreadId(yield* Ref.get(sessionRef));
|
|
898
|
+
const activity = (notification.method === "item/started" || notification.method === "item/completed") && notification.params.item.type === "subAgentActivity" ? notification.params.item : void 0;
|
|
899
|
+
const childId = activity?.agentThreadId ?? readNotificationThreadId(notification);
|
|
900
|
+
if (childId && rootId && childId !== rootId) {
|
|
901
|
+
childRevisions.set(childId, (childRevisions.get(childId) ?? 0) + 1);
|
|
902
|
+
if (activity || notification.method === "thread/started" || notification.method === "turn/started" || notification.method === "thread/status/changed" && notification.params.status.type === "active") unsettledChildren.add(childId);
|
|
903
|
+
if (notification.method === "thread/closed" || notification.method === "turn/completed" || notification.method === "thread/status/changed" && notification.params.status.type !== "active") unsettledChildren.delete(childId);
|
|
904
|
+
}
|
|
857
905
|
const route = readRouteFields(notification);
|
|
858
906
|
const collabReceiverTurns = yield* Ref.get(collabReceiverTurnsRef);
|
|
859
907
|
const childParentTurnId = (() => {
|
|
@@ -1077,6 +1125,10 @@ const makeCodexSessionRuntime = (options) => Effect.gen(function* () {
|
|
|
1077
1125
|
discard: true
|
|
1078
1126
|
});
|
|
1079
1127
|
yield* Stream.fromQueue(serverNotifications).pipe(Stream.runForEach(handleRawNotification), Effect.forkIn(runtimeScope));
|
|
1128
|
+
yield* Effect.suspend(() => Effect.forEach(Array.from(unsettledChildren), (id) => reconcileChild(id).pipe(Effect.ignore), {
|
|
1129
|
+
concurrency: 4,
|
|
1130
|
+
discard: true
|
|
1131
|
+
})).pipe(Effect.repeat(Schedule.spaced("5 seconds")), Effect.forkIn(runtimeScope));
|
|
1080
1132
|
const stderrRemainderRef = yield* Ref.make("");
|
|
1081
1133
|
yield* child.stderr.pipe(Stream.decodeText(), Stream.runForEach((chunk) => Ref.modify(stderrRemainderRef, (current) => {
|
|
1082
1134
|
const lines = (current + chunk).split("\n");
|
|
@@ -1204,20 +1256,37 @@ const makeCodexSessionRuntime = (options) => Effect.gen(function* () {
|
|
|
1204
1256
|
interruptTurn: (turnId) => Effect.gen(function* () {
|
|
1205
1257
|
const providerThreadId = yield* readProviderThreadId;
|
|
1206
1258
|
const session = yield* Ref.get(sessionRef);
|
|
1259
|
+
yield* Effect.forEach(Array.from((yield* Ref.get(collabChildAgentsRef)).keys()), (id) => reconcileChild(id, true).pipe(Effect.ignore), {
|
|
1260
|
+
concurrency: 8,
|
|
1261
|
+
discard: true
|
|
1262
|
+
}).pipe(Effect.timeoutOption("5 seconds"));
|
|
1207
1263
|
const liveChildTurns = yield* Ref.get(collabChildLiveTurnsRef);
|
|
1264
|
+
const registeredChildren = yield* Ref.get(collabChildAgentsRef);
|
|
1265
|
+
let childInterruptFailed = Array.from(unsettledChildren).some((id) => registeredChildren.has(id) && !liveChildTurns.has(id));
|
|
1208
1266
|
yield* Effect.forEach(Array.from(liveChildTurns.entries()), ([childThreadId, childTurnId]) => client.request("turn/interrupt", {
|
|
1209
1267
|
threadId: childThreadId,
|
|
1210
1268
|
turnId: childTurnId
|
|
1211
|
-
}).pipe(Effect.
|
|
1269
|
+
}).pipe(Effect.timeout("3 seconds"), Effect.catchCause(() => Effect.sync(() => {
|
|
1270
|
+
childInterruptFailed = true;
|
|
1271
|
+
}))), {
|
|
1212
1272
|
concurrency: 8,
|
|
1213
1273
|
discard: true
|
|
1214
|
-
}).pipe(Effect.
|
|
1274
|
+
}).pipe(Effect.timeout("10 seconds"), Effect.catchCause(() => Effect.sync(() => {
|
|
1275
|
+
childInterruptFailed = true;
|
|
1276
|
+
})));
|
|
1215
1277
|
const effectiveTurnId = turnId ?? session.activeTurnId;
|
|
1216
|
-
if (
|
|
1217
|
-
yield* client.request("turn/interrupt", {
|
|
1278
|
+
if (effectiveTurnId) yield* client.request("turn/interrupt", {
|
|
1218
1279
|
threadId: providerThreadId,
|
|
1219
1280
|
turnId: effectiveTurnId
|
|
1220
1281
|
});
|
|
1282
|
+
if (childInterruptFailed) return yield* Effect.fail(new CodexAppServerTransportError({
|
|
1283
|
+
detail: "Could not interrupt all Codex child turns",
|
|
1284
|
+
cause: /* @__PURE__ */ new Error("Child interrupt failed or timed out")
|
|
1285
|
+
}));
|
|
1286
|
+
yield* Effect.forEach(Array.from((yield* Ref.get(collabChildAgentsRef)).keys()), (id) => reconcileChild(id, true).pipe(Effect.ignore), {
|
|
1287
|
+
concurrency: 8,
|
|
1288
|
+
discard: true
|
|
1289
|
+
}).pipe(Effect.timeoutOption("5 seconds"));
|
|
1221
1290
|
}),
|
|
1222
1291
|
readThread: Effect.gen(function* () {
|
|
1223
1292
|
const providerThreadId = yield* readProviderThreadId;
|
|
@@ -1722,7 +1791,7 @@ function mapCollabAgentEvent(event, canonicalThreadId) {
|
|
|
1722
1791
|
}
|
|
1723
1792
|
}];
|
|
1724
1793
|
}
|
|
1725
|
-
if (statusType === "idle") return [{
|
|
1794
|
+
if (statusType === "idle" || statusType === "notLoaded") return [{
|
|
1726
1795
|
...base,
|
|
1727
1796
|
type: "task.updated",
|
|
1728
1797
|
payload: {
|
|
@@ -2661,10 +2730,26 @@ const makeCodexAdapter = Effect.fn("makeCodexAdapter")(function* (codexConfig, o
|
|
|
2661
2730
|
yield* Effect.ignore(Scope.close(session.scope, Exit.void));
|
|
2662
2731
|
yield* Fiber.interrupt(session.eventFiber).pipe(Effect.ignore);
|
|
2663
2732
|
});
|
|
2664
|
-
const
|
|
2733
|
+
const stopAfterFailedInterrupt = (session) => stopSessionInternal(session).pipe(Effect.andThen(Effect.gen(function* () {
|
|
2734
|
+
yield* Queue.offer(runtimeEventQueue, {
|
|
2735
|
+
eventId: EventId.make(crypto.randomUUID()),
|
|
2736
|
+
provider: PROVIDER,
|
|
2737
|
+
providerInstanceId: boundInstanceId,
|
|
2738
|
+
runtimeSessionId: session.runtimeSessionId,
|
|
2739
|
+
threadId: session.threadId,
|
|
2740
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2741
|
+
type: "session.exited",
|
|
2742
|
+
payload: {
|
|
2743
|
+
reason: "Stopped Codex after background cancellation failed.",
|
|
2744
|
+
exitKind: "graceful"
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
yield* runtimeEventQueueMetrics.recordEnqueued(1);
|
|
2748
|
+
})));
|
|
2749
|
+
const interruptTurn = (threadId, turnId) => requireSession(threadId).pipe(Effect.flatMap((session) => (session.agentControl ? session.agentControl.retireTurn(turnId) : Effect.void).pipe(Effect.andThen(session.runtime.interruptTurn(turnId).pipe(Effect.catch(() => Effect.logWarning("Codex interrupt failed; stopping the provider session and its background work.", { threadId }).pipe(Effect.andThen(stopAfterFailedInterrupt(session)))))), Effect.timeoutOption("15 seconds"), Effect.flatMap(Option.match({
|
|
2665
2750
|
onSome: () => Effect.void,
|
|
2666
|
-
onNone: () => Effect.logWarning("Codex turn interrupt timed out; recycling the wedged provider session.", { threadId }).pipe(Effect.andThen(
|
|
2667
|
-
}))))
|
|
2751
|
+
onNone: () => Effect.logWarning("Codex turn interrupt timed out; recycling the wedged provider session.", { threadId }).pipe(Effect.andThen(stopAfterFailedInterrupt(session)))
|
|
2752
|
+
})))));
|
|
2668
2753
|
const readThread = (threadId) => requireSession(threadId).pipe(Effect.flatMap((session) => session.runtime.readThread), Effect.mapError((cause) => cause._tag === "ProviderAdapterSessionNotFoundError" ? cause : mapCodexRuntimeError(threadId, "thread/read", cause)), Effect.map((snapshot) => ({
|
|
2669
2754
|
threadId,
|
|
2670
2755
|
turns: snapshot.turns
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const require_Metrics = require("./Metrics-
|
|
3
|
+
const require_src = require("./src-BlzIcnVG.cjs");
|
|
4
|
+
const require_Metrics = require("./Metrics-DCKbdeoH.cjs");
|
|
5
|
+
const require_git = require("./git-irmB8_k7.cjs");
|
|
5
6
|
const require_bin = require("./bin.cjs");
|
|
7
|
+
const require_SideQuestionIsolation = require("./SideQuestionIsolation-DvVKZWxi.cjs");
|
|
6
8
|
let effect = require("effect");
|
|
7
9
|
let effect_unstable_process = require("effect/unstable/process");
|
|
8
10
|
//#region src/textGeneration/CodexTextGeneration.ts
|
|
@@ -22,7 +24,7 @@ const makeCodexTextGeneration = effect.Effect.fn("makeCodexTextGeneration")(func
|
|
|
22
24
|
return effect.Effect.gen(function* () {
|
|
23
25
|
const tempFileId = yield* effect.Effect.sync(() => crypto.randomUUID());
|
|
24
26
|
return yield* fileSystem.makeTempFileScoped({ prefix: `ryco-${prefix}-${process.pid}-${tempFileId}.tmp` }).pipe(effect.Effect.tap((filePath) => fileSystem.writeFileString(filePath, content)));
|
|
25
|
-
}).pipe(effect.Effect.mapError((cause) => new
|
|
27
|
+
}).pipe(effect.Effect.mapError((cause) => new require_src.TextGenerationError({
|
|
26
28
|
operation,
|
|
27
29
|
detail: `Failed to write temp file`,
|
|
28
30
|
cause
|
|
@@ -53,6 +55,33 @@ const makeCodexTextGeneration = effect.Effect.fn("makeCodexTextGeneration")(func
|
|
|
53
55
|
const command = effect_unstable_process.ChildProcess.make(codexConfig.binaryPath || "codex", [
|
|
54
56
|
"exec",
|
|
55
57
|
"--ephemeral",
|
|
58
|
+
...operation === "answerSideQuestion" ? [
|
|
59
|
+
"--ignore-user-config",
|
|
60
|
+
"--ignore-rules",
|
|
61
|
+
...[
|
|
62
|
+
"approval_policy=\"never\"",
|
|
63
|
+
"web_search=\"disabled\"",
|
|
64
|
+
"project_doc_max_bytes=0",
|
|
65
|
+
"mcp_servers={}",
|
|
66
|
+
"features.shell_tool=false",
|
|
67
|
+
"features.view_image=false",
|
|
68
|
+
"features.search_tool=false",
|
|
69
|
+
"features.tool_search=false",
|
|
70
|
+
"features.tool_suggest=false",
|
|
71
|
+
"features.external_agent_memory_import=false",
|
|
72
|
+
"features.unified_exec=false",
|
|
73
|
+
"features.apply_patch_freeform=false",
|
|
74
|
+
"features.apps=false",
|
|
75
|
+
"features.plugins=false",
|
|
76
|
+
"features.hooks=false",
|
|
77
|
+
"features.codex_hooks=false",
|
|
78
|
+
"features.plugin_hooks=false",
|
|
79
|
+
"features.memories=false",
|
|
80
|
+
"features.memory_tool=false",
|
|
81
|
+
"features.js_repl=false",
|
|
82
|
+
"features.multi_agent=false"
|
|
83
|
+
].flatMap((config) => ["--config", config])
|
|
84
|
+
] : [],
|
|
56
85
|
"--skip-git-repo-check",
|
|
57
86
|
"-s",
|
|
58
87
|
"read-only",
|
|
@@ -69,7 +98,7 @@ const makeCodexTextGeneration = effect.Effect.fn("makeCodexTextGeneration")(func
|
|
|
69
98
|
"-"
|
|
70
99
|
], {
|
|
71
100
|
env: {
|
|
72
|
-
...environment,
|
|
101
|
+
...operation === "answerSideQuestion" ? require_SideQuestionIsolation.sideQuestionEnvironment(environment) : environment,
|
|
73
102
|
...codexConfig.homePath ? { CODEX_HOME: require_bin.expandHomePath(codexConfig.homePath) } : {}
|
|
74
103
|
},
|
|
75
104
|
cwd,
|
|
@@ -86,7 +115,7 @@ const makeCodexTextGeneration = effect.Effect.fn("makeCodexTextGeneration")(func
|
|
|
86
115
|
const stderrDetail = stderr.trim();
|
|
87
116
|
const stdoutDetail = stdout.trim();
|
|
88
117
|
const detail = stderrDetail.length > 0 ? stderrDetail : stdoutDetail;
|
|
89
|
-
return yield* new
|
|
118
|
+
return yield* new require_src.TextGenerationError({
|
|
90
119
|
operation,
|
|
91
120
|
detail: detail.length > 0 ? `Codex CLI command failed: ${detail}` : `Codex CLI command failed with code ${exitCode}.`
|
|
92
121
|
});
|
|
@@ -99,125 +128,141 @@ const makeCodexTextGeneration = effect.Effect.fn("makeCodexTextGeneration")(func
|
|
|
99
128
|
].map((filePath) => safeUnlink(filePath)), { concurrency: "unbounded" }).pipe(effect.Effect.asVoid);
|
|
100
129
|
return yield* effect.Effect.gen(function* () {
|
|
101
130
|
yield* runCodexCommand().pipe(effect.Effect.scoped, effect.Effect.timeoutOption(CODEX_TIMEOUT_MS), effect.Effect.flatMap(effect.Option.match({
|
|
102
|
-
onNone: () => effect.Effect.fail(new
|
|
131
|
+
onNone: () => effect.Effect.fail(new require_src.TextGenerationError({
|
|
103
132
|
operation,
|
|
104
133
|
detail: "Codex CLI request timed out."
|
|
105
134
|
})),
|
|
106
135
|
onSome: () => effect.Effect.void
|
|
107
136
|
})));
|
|
108
|
-
return yield* fileSystem.readFileString(outputPath).pipe(effect.Effect.mapError((cause) => new
|
|
137
|
+
return yield* fileSystem.readFileString(outputPath).pipe(effect.Effect.mapError((cause) => new require_src.TextGenerationError({
|
|
109
138
|
operation,
|
|
110
139
|
detail: "Failed to read Codex output file.",
|
|
111
140
|
cause
|
|
112
|
-
})), effect.Effect.flatMap(effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchemaJson))), effect.Effect.catchTag("SchemaError", (cause) => effect.Effect.fail(new
|
|
141
|
+
})), effect.Effect.flatMap(effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchemaJson))), effect.Effect.catchTag("SchemaError", (cause) => effect.Effect.fail(new require_src.TextGenerationError({
|
|
113
142
|
operation,
|
|
114
143
|
detail: "Codex returned invalid structured output.",
|
|
115
144
|
cause
|
|
116
145
|
}))));
|
|
117
146
|
}).pipe(effect.Effect.ensuring(cleanup));
|
|
118
147
|
});
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
const generateCommitMessage = effect.Effect.fn("CodexTextGeneration.generateCommitMessage")(function* (input) {
|
|
149
|
+
const { prompt, outputSchema } = require_bin.buildCommitMessagePrompt({
|
|
150
|
+
branch: input.branch,
|
|
151
|
+
stagedSummary: input.stagedSummary,
|
|
152
|
+
stagedPatch: input.stagedPatch,
|
|
153
|
+
includeBranch: input.includeBranch === true
|
|
154
|
+
});
|
|
155
|
+
const generated = yield* runCodexJson({
|
|
156
|
+
operation: "generateCommitMessage",
|
|
157
|
+
cwd: input.cwd,
|
|
158
|
+
prompt,
|
|
159
|
+
outputSchemaJson: outputSchema,
|
|
160
|
+
modelSelection: input.modelSelection
|
|
161
|
+
});
|
|
162
|
+
return {
|
|
163
|
+
subject: require_bin.sanitizeCommitSubject(generated.subject),
|
|
164
|
+
body: generated.body.trim(),
|
|
165
|
+
..."branch" in generated && typeof generated.branch === "string" ? { branch: require_git.sanitizeFeatureBranchName(generated.branch) } : {}
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
const generatePrContent = effect.Effect.fn("CodexTextGeneration.generatePrContent")(function* (input) {
|
|
169
|
+
const { prompt, outputSchema } = require_bin.buildPrContentPrompt({
|
|
170
|
+
baseBranch: input.baseBranch,
|
|
171
|
+
headBranch: input.headBranch,
|
|
172
|
+
commitSummary: input.commitSummary,
|
|
173
|
+
diffSummary: input.diffSummary,
|
|
174
|
+
diffPatch: input.diffPatch
|
|
175
|
+
});
|
|
176
|
+
const generated = yield* runCodexJson({
|
|
177
|
+
operation: "generatePrContent",
|
|
178
|
+
cwd: input.cwd,
|
|
179
|
+
prompt,
|
|
180
|
+
outputSchemaJson: outputSchema,
|
|
181
|
+
modelSelection: input.modelSelection
|
|
182
|
+
});
|
|
183
|
+
return {
|
|
184
|
+
title: require_bin.sanitizePrTitle(generated.title),
|
|
185
|
+
body: generated.body.trim()
|
|
186
|
+
};
|
|
187
|
+
});
|
|
188
|
+
const generateBranchName = effect.Effect.fn("CodexTextGeneration.generateBranchName")(function* (input) {
|
|
189
|
+
const { imagePaths } = yield* materializeImageAttachments("generateBranchName", input.attachments);
|
|
190
|
+
const { prompt, outputSchema } = require_bin.buildBranchNamePrompt({
|
|
191
|
+
message: input.message,
|
|
192
|
+
attachments: input.attachments
|
|
193
|
+
});
|
|
194
|
+
const generated = yield* runCodexJson({
|
|
195
|
+
operation: "generateBranchName",
|
|
196
|
+
cwd: input.cwd,
|
|
197
|
+
prompt,
|
|
198
|
+
outputSchemaJson: outputSchema,
|
|
199
|
+
imagePaths,
|
|
200
|
+
modelSelection: input.modelSelection
|
|
201
|
+
});
|
|
202
|
+
return { branch: require_git.sanitizeBranchFragment(generated.branch) };
|
|
203
|
+
});
|
|
204
|
+
const generateThreadTitle = effect.Effect.fn("CodexTextGeneration.generateThreadTitle")(function* (input) {
|
|
205
|
+
const { imagePaths } = yield* materializeImageAttachments("generateThreadTitle", input.attachments);
|
|
206
|
+
const { prompt, outputSchema } = require_bin.buildThreadTitlePrompt({
|
|
207
|
+
message: input.message,
|
|
208
|
+
attachments: input.attachments
|
|
209
|
+
});
|
|
210
|
+
const generated = yield* runCodexJson({
|
|
211
|
+
operation: "generateThreadTitle",
|
|
212
|
+
cwd: input.cwd,
|
|
213
|
+
prompt,
|
|
214
|
+
outputSchemaJson: outputSchema,
|
|
215
|
+
imagePaths,
|
|
216
|
+
modelSelection: input.modelSelection
|
|
217
|
+
});
|
|
218
|
+
return { title: require_bin.sanitizeThreadTitle(generated.title) };
|
|
219
|
+
});
|
|
220
|
+
const generateIssueContent = effect.Effect.fn("CodexTextGeneration.generateIssueContent")(function* (input) {
|
|
221
|
+
if (input.mode === "polish") {
|
|
222
|
+
const { prompt, outputSchema } = require_bin.buildIssueContentPolishPrompt({
|
|
223
|
+
rough: input.rough ?? "",
|
|
224
|
+
...input.currentTitle ? { currentTitle: input.currentTitle } : {},
|
|
225
|
+
...input.customInstructions ? { customInstructions: input.customInstructions } : {}
|
|
147
226
|
});
|
|
148
|
-
const
|
|
149
|
-
operation: "
|
|
227
|
+
const decoded = yield* runCodexJson({
|
|
228
|
+
operation: "generateIssueContent",
|
|
150
229
|
cwd: input.cwd,
|
|
151
230
|
prompt,
|
|
152
231
|
outputSchemaJson: outputSchema,
|
|
153
232
|
modelSelection: input.modelSelection
|
|
154
233
|
});
|
|
155
234
|
return {
|
|
156
|
-
title:
|
|
157
|
-
body:
|
|
235
|
+
title: decoded.title.trim(),
|
|
236
|
+
body: decoded.body.trim()
|
|
158
237
|
};
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
message: input.message,
|
|
164
|
-
attachments: input.attachments
|
|
165
|
-
});
|
|
166
|
-
const generated = yield* runCodexJson({
|
|
167
|
-
operation: "generateBranchName",
|
|
168
|
-
cwd: input.cwd,
|
|
169
|
-
prompt,
|
|
170
|
-
outputSchemaJson: outputSchema,
|
|
171
|
-
imagePaths,
|
|
172
|
-
modelSelection: input.modelSelection
|
|
173
|
-
});
|
|
174
|
-
return { branch: require_Metrics.sanitizeBranchFragment(generated.branch) };
|
|
175
|
-
}),
|
|
176
|
-
generateThreadTitle: effect.Effect.fn("CodexTextGeneration.generateThreadTitle")(function* (input) {
|
|
177
|
-
const { imagePaths } = yield* materializeImageAttachments("generateThreadTitle", input.attachments);
|
|
178
|
-
const { prompt, outputSchema } = require_bin.buildThreadTitlePrompt({
|
|
179
|
-
message: input.message,
|
|
180
|
-
attachments: input.attachments
|
|
181
|
-
});
|
|
182
|
-
const generated = yield* runCodexJson({
|
|
183
|
-
operation: "generateThreadTitle",
|
|
238
|
+
} else {
|
|
239
|
+
const { prompt, outputSchema } = require_bin.buildIssueContentTitlePrompt({ body: input.body ?? "" });
|
|
240
|
+
return { title: (yield* runCodexJson({
|
|
241
|
+
operation: "generateIssueContent",
|
|
184
242
|
cwd: input.cwd,
|
|
185
243
|
prompt,
|
|
186
244
|
outputSchemaJson: outputSchema,
|
|
187
|
-
imagePaths,
|
|
188
245
|
modelSelection: input.modelSelection
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
};
|
|
210
|
-
} else {
|
|
211
|
-
const { prompt, outputSchema } = require_bin.buildIssueContentTitlePrompt({ body: input.body ?? "" });
|
|
212
|
-
return { title: (yield* runCodexJson({
|
|
213
|
-
operation: "generateIssueContent",
|
|
214
|
-
cwd: input.cwd,
|
|
215
|
-
prompt,
|
|
216
|
-
outputSchemaJson: outputSchema,
|
|
217
|
-
modelSelection: input.modelSelection
|
|
218
|
-
})).title.trim() };
|
|
219
|
-
}
|
|
220
|
-
}),
|
|
246
|
+
})).title.trim() };
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
const answerSideQuestion = (input) => effect.Effect.scoped(effect.Effect.gen(function* () {
|
|
250
|
+
const cwd = yield* require_SideQuestionIsolation.sideQuestionDirectory;
|
|
251
|
+
const { prompt, outputSchema } = require_bin.buildSideQuestionPrompt(input);
|
|
252
|
+
return yield* runCodexJson({
|
|
253
|
+
operation: "answerSideQuestion",
|
|
254
|
+
cwd,
|
|
255
|
+
prompt,
|
|
256
|
+
outputSchemaJson: outputSchema,
|
|
257
|
+
modelSelection: input.modelSelection
|
|
258
|
+
});
|
|
259
|
+
}));
|
|
260
|
+
return {
|
|
261
|
+
generateCommitMessage,
|
|
262
|
+
generatePrContent,
|
|
263
|
+
generateBranchName,
|
|
264
|
+
generateThreadTitle,
|
|
265
|
+
generateIssueContent,
|
|
221
266
|
rankInboxThreads: effect.Effect.fn("CodexTextGeneration.rankInboxThreads")(function* (input) {
|
|
222
267
|
const { prompt, outputSchema } = require_bin.buildThreadPriorityPrompt({ serializedCandidates: input.chunk.serializedCandidates });
|
|
223
268
|
const generated = yield* runCodexJson({
|
|
@@ -228,7 +273,8 @@ const makeCodexTextGeneration = effect.Effect.fn("makeCodexTextGeneration")(func
|
|
|
228
273
|
modelSelection: input.modelSelection
|
|
229
274
|
});
|
|
230
275
|
return yield* require_bin.validateRankInboxThreadsResult(input, generated.rankings);
|
|
231
|
-
})
|
|
276
|
+
}),
|
|
277
|
+
answerSideQuestion
|
|
232
278
|
};
|
|
233
279
|
});
|
|
234
280
|
//#endregion
|