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.
Files changed (299) hide show
  1. package/dist/{GrokDriver-CduUwiOH.mjs → AcpAdapter-BemMQNbj.mjs} +102 -604
  2. package/dist/{GrokDriver-D0jraOC_.cjs → AcpAdapter-CadxcdZV.cjs} +129 -612
  3. package/dist/AcpNativeLogging-BsbZRRD7.mjs +312 -0
  4. package/dist/AcpNativeLogging-DZPZNoju.cjs +383 -0
  5. package/dist/AcpRegistryDriver-BfCPf8FX.cjs +222 -0
  6. package/dist/AcpRegistryDriver-BpXCjh9I.mjs +221 -0
  7. package/dist/{AzureDevOpsSourceControlProvider-COmd21c-.cjs → AzureDevOpsSourceControlProvider-B9N_8NJg.cjs} +14 -14
  8. package/dist/{AzureDevOpsSourceControlProvider-B_E0XXfD.mjs → AzureDevOpsSourceControlProvider-BcQO_CyW.mjs} +3 -3
  9. package/dist/{BitbucketSourceControlProvider-pUKsNXcg.mjs → BitbucketSourceControlProvider-BTUY2ZT8.mjs} +3 -3
  10. package/dist/{BitbucketSourceControlProvider-CD8IvXQK.cjs → BitbucketSourceControlProvider-C9WuwvY2.cjs} +14 -14
  11. package/dist/{BunPTY-TbHbSc8S.mjs → BunPTY-DdnqQAdw.mjs} +1 -1
  12. package/dist/{ClaudeDriver-Dry5uJfX.cjs → ClaudeDriver-BSTxNNGO.cjs} +162 -126
  13. package/dist/{ClaudeDriver-CGifBixr.mjs → ClaudeDriver-Csnp78qR.mjs} +129 -93
  14. package/dist/{CodexDriver-BzR8gA8w.cjs → CodexDriver-BK4HVNV4.cjs} +145 -60
  15. package/dist/{CodexDriver-V4CL9APE.mjs → CodexDriver-fwcV84hX.mjs} +99 -14
  16. package/dist/{CodexTextGeneration-DTrSzY-I.cjs → CodexTextGeneration-Y2GSS7f1.cjs} +145 -99
  17. package/dist/{CodexTextGeneration-DoCidwvI.mjs → CodexTextGeneration-_4aT5BHa.mjs} +141 -95
  18. package/dist/{CopilotDriver-Dt13X60f.mjs → CopilotDriver-B12ZJ-L_.mjs} +69 -7
  19. package/dist/{CopilotDriver-rLcA8PSN.cjs → CopilotDriver-C7IyIwVW.cjs} +98 -36
  20. package/dist/{CursorDriver-C3s-8s9F.cjs → CursorDriver-BWmCfJ-w.cjs} +38 -32
  21. package/dist/{CursorDriver-HIPUs7cz.mjs → CursorDriver-C_p0v-ul.mjs} +12 -6
  22. package/dist/{ForgejoSourceControlProvider-JgiyrMqp.cjs → ForgejoSourceControlProvider-DTRrllIH.cjs} +14 -14
  23. package/dist/{ForgejoSourceControlProvider-CmvOAzEG.mjs → ForgejoSourceControlProvider-DmOGJEaJ.mjs} +3 -3
  24. package/dist/{GitHubSourceControlProvider-CItCpOcC.cjs → GitHubSourceControlProvider-D-YV8WP6.cjs} +16 -17
  25. package/dist/{GitHubSourceControlProvider-BYuvbcBf.mjs → GitHubSourceControlProvider-sQGcwnr3.mjs} +6 -7
  26. package/dist/{GitLabSourceControlProvider-CMce22nU.cjs → GitLabSourceControlProvider-kKYYnpER.cjs} +14 -14
  27. package/dist/{GitLabSourceControlProvider-DZzEaVSi.mjs → GitLabSourceControlProvider-mIl-K-4F.mjs} +3 -3
  28. package/dist/GrokDriver-BFOniP_K.cjs +567 -0
  29. package/dist/GrokDriver-CDcWkiAi.mjs +552 -0
  30. package/dist/{Metrics-a1h4iBQi.mjs → Metrics-C-3MahDy.mjs} +1 -107
  31. package/dist/{Metrics-Bcb9vCAe.cjs → Metrics-DCKbdeoH.cjs} +0 -168
  32. package/dist/{NodePTY-B_p5tLYO.mjs → NodePTY-DArvQ9bX.mjs} +1 -1
  33. package/dist/{OpenCodeDriver-DxGpgtDS.cjs → OpenCodeDriver-CckbFEQJ.cjs} +459 -141
  34. package/dist/{OpenCodeDriver-Bz_uJdMA.mjs → OpenCodeDriver-CnWJHyDJ.mjs} +430 -112
  35. package/dist/SideQuestionIsolation-5eGFRW0t.mjs +26 -0
  36. package/dist/SideQuestionIsolation-DvVKZWxi.cjs +37 -0
  37. package/dist/{SourceControlProviderDiscoveryCatalog-ZtwPWoxE.mjs → SourceControlProviderDiscoveryCatalog-BVvq7liJ.mjs} +2 -1
  38. package/dist/{SourceControlProviderDiscoveryCatalog-Dm_lhrhv.cjs → SourceControlProviderDiscoveryCatalog-CyUhKJLD.cjs} +6 -5
  39. package/dist/bin.cjs +12537 -3029
  40. package/dist/bin.mjs +10444 -965
  41. package/dist/client/assets/AccountSettings-DLbcE2w-.js +1 -0
  42. package/dist/client/assets/Adobe-CNS1-UCS2-fO900upv.bcmap +0 -0
  43. package/dist/client/assets/Adobe-GB1-UCS2-BA083yIo.bcmap +0 -0
  44. package/dist/client/assets/Adobe-Japan1-UCS2-BL-4M2vS.bcmap +0 -0
  45. package/dist/client/assets/Adobe-Korea1-UCS2-BEQZuOdo.bcmap +0 -0
  46. package/dist/client/assets/AiFocusSettings-FKvdkl4P.js +1 -0
  47. package/dist/client/assets/{AnimatedHeight-DPqb09B0.js → AnimatedHeight-CbIEyMLg.js} +1 -1
  48. package/dist/client/assets/AppearanceSettings-B2LsGKmL.js +1 -0
  49. package/dist/client/assets/{BranchToolbar.logic-CHRK3hDt.js → BranchToolbar.logic-BqkvYNPk.js} +1 -1
  50. package/dist/client/assets/{BrowserPanel-2Xu08il5.js → BrowserPanel-C_C4zjrh.js} +1 -1
  51. package/dist/client/assets/ChatRightPanel-ibiQ79jI.js +195 -0
  52. package/dist/client/assets/{ChatThreadRouteView-CNww3i2J.js → ChatThreadRouteView-c7AXmbSk.js} +1 -1
  53. package/dist/client/assets/CommandPaletteDialog-DdPKN6rv.js +1 -0
  54. package/dist/client/assets/CompositeRoot-DKwS-ADi.js +1 -0
  55. package/dist/client/assets/{ComputerUseSettings-BJs7jqR0.js → ComputerUseSettings-DM17BYP5.js} +1 -1
  56. package/dist/client/assets/ConnectionsSettings-D6wysIC8.js +7 -0
  57. package/dist/client/assets/ContextHandoffEndpointLabel-CsF_maM_.js +4 -0
  58. package/dist/client/assets/{DiagnosticsSettings-BmrqOKMe.js → DiagnosticsSettings-Bq2l-C4J.js} +2 -2
  59. package/dist/client/assets/{DialogHandle-pelzaaiH.js → DialogHandle-DuKTleCw.js} +1 -1
  60. package/dist/client/assets/{DialogPopup-BLM0vN4N.js → DialogPopup-Dt7DzTWv.js} +1 -1
  61. package/dist/client/assets/DialogRoot-DRyawL6l.js +1 -0
  62. package/dist/client/assets/{DialogTitle-BvIjMtMm.js → DialogTitle-BaxfPC6e.js} +1 -1
  63. package/dist/client/assets/DialogTrigger-D0PJ8bRT.js +1 -0
  64. package/dist/client/assets/{DialogViewport-Cz0OadGI.js → DialogViewport-C3B2JZWQ.js} +1 -1
  65. package/dist/client/assets/DraftChatThreadRouteView-B8YiD5NP.js +1 -0
  66. package/dist/client/assets/ETHK-B5-H-1MLb5v9x.bcmap +0 -0
  67. package/dist/client/assets/{ExternalIdentityWeb.logic-3rlDV7lT.js → ExternalIdentityWeb.logic-CrcNfdHK.js} +1 -1
  68. package/dist/client/assets/FoxitDingbats-BaQLufoW.pfb +0 -0
  69. package/dist/client/assets/FoxitFixed-Dyd5Nipw.pfb +0 -0
  70. package/dist/client/assets/FoxitFixedBold-D5TuYRwj.pfb +0 -0
  71. package/dist/client/assets/FoxitFixedBoldItalic-BqlXQ_Yv.pfb +0 -0
  72. package/dist/client/assets/FoxitFixedItalic-DqjQkmbS.pfb +0 -0
  73. package/dist/client/assets/FoxitSerif-qbgiDIe-.pfb +0 -0
  74. package/dist/client/assets/FoxitSerifBold-DZZ4CclT.pfb +0 -0
  75. package/dist/client/assets/FoxitSerifBoldItalic-DSQtwd_X.pfb +0 -0
  76. package/dist/client/assets/FoxitSerifItalic-CQs5lx9Y.pfb +0 -0
  77. package/dist/client/assets/FoxitSymbol-BVtbc20u.pfb +0 -0
  78. package/dist/client/assets/GBK-EUC-H-CAORqCkf.bcmap +0 -0
  79. package/dist/client/assets/GBK2K-H-Cv55KPk8.bcmap +0 -0
  80. package/dist/client/assets/GBKp-EUC-H-CElrnV5g.bcmap +0 -0
  81. package/dist/client/assets/GBT-EUC-H-BTsQIL1M.bcmap +0 -0
  82. package/dist/client/assets/GBT-H-DL9h-WkS.bcmap +0 -0
  83. package/dist/client/assets/GBTpc-EUC-H-DnIh5WJ3.bcmap +0 -0
  84. package/dist/client/assets/{GlassSurface-CEVIdyfP.js → GlassSurface-CBIEgwt1.js} +1 -1
  85. package/dist/client/assets/HKscs-B5-H-CXbBbq6g.bcmap +0 -0
  86. package/dist/client/assets/{HostedConnectionControls-r9cyZPyF.js → HostedConnectionControls-DOpTlXzE.js} +1 -1
  87. package/dist/client/assets/{HostedHubRoot-BkfafJ5x.js → HostedHubRoot-C1jq8cM6.js} +2 -2
  88. package/dist/client/assets/{HostedNativeAuthorizationRoute-CqHuW853.js → HostedNativeAuthorizationRoute-Clw1DHQW.js} +2 -2
  89. package/dist/client/assets/{HostedNodeRenameDialog-C7m-nvTj.js → HostedNodeRenameDialog-Bd_Qu_ek.js} +1 -1
  90. package/dist/client/assets/{HostedRelayTrustNotice-DNZQyAX0.js → HostedRelayTrustNotice-CGcBpT9m.js} +1 -1
  91. package/dist/client/assets/{IntegrationsSettingsPanel-hul3ysgL.js → IntegrationsSettingsPanel-J0qODRW-.js} +2 -2
  92. package/dist/client/assets/KSC-Johab-H-CGtV3MPT.bcmap +0 -0
  93. package/dist/client/assets/{KeybindingsSettings-Cme6omBM.js → KeybindingsSettings-CwxIHsFy.js} +1 -1
  94. package/dist/client/assets/{LazyBrowserPanel-COJFwNK7.js → LazyBrowserPanel-VNAn6AUL.js} +2 -2
  95. package/dist/client/assets/LiberationSans-Bold-BPt4bU5Z.ttf +0 -0
  96. package/dist/client/assets/LiberationSans-BoldItalic-Bj53-jFw.ttf +0 -0
  97. package/dist/client/assets/LiberationSans-Italic-5QhGB3P9.ttf +0 -0
  98. package/dist/client/assets/LiberationSans-Regular-cbskN6YR.ttf +0 -0
  99. package/dist/client/assets/McpServersSettings-1pkIeutq.js +6 -0
  100. package/dist/client/assets/MobileSheet-DddfN8c2.js +1 -0
  101. package/dist/client/assets/{NodeSecuritySettings-CwT5nEW9.js → NodeSecuritySettings-BOIZeFZo.js} +1 -1
  102. package/dist/client/assets/OpinionatedPluginsSettings-oTIrPtIb.js +1 -0
  103. package/dist/client/assets/PdfAttachmentPreview-BCMO9OHD.js +54 -0
  104. package/dist/client/assets/{PhoneGetAppInterstitial-BBnGXVkR.js → PhoneGetAppInterstitial-0EOj-PbW.js} +1 -1
  105. package/dist/client/assets/PhoneHome-Cg7l3b1T.js +1 -0
  106. package/dist/client/assets/{PhoneSettingsSurface-DdVCndyt.js → PhoneSettingsSurface-BXAUtZ9M.js} +2 -2
  107. package/dist/client/assets/ProvidersSettingsPanel-BaJgypXu.js +1 -0
  108. package/dist/client/assets/{QuitShortcutFeedback-mF7X0WMD.js → QuitShortcutFeedback-DgJFEd6b.js} +1 -1
  109. package/dist/client/assets/{RedactedSensitiveText-DovqFcmM.js → RedactedSensitiveText-D1VC2xa7.js} +1 -1
  110. package/dist/client/assets/RootAppShell-D2RjZ9jQ.js +7 -0
  111. package/dist/client/assets/Separator-CeMncdkm.js +1 -0
  112. package/dist/client/assets/SettingsDialog-B2hEb6u8.js +2 -0
  113. package/dist/client/assets/SettingsPanels-DtWLQDne.js +3 -0
  114. package/dist/client/assets/{SettingsPanels.editor-d-rVlbeN.js → SettingsPanels.editor-DJRckD71.js} +1 -1
  115. package/dist/client/assets/SourceControlSettings-IpoZrjt5.js +1 -0
  116. package/dist/client/assets/StatisticsPage-CUpE_5Gr.js +1 -0
  117. package/dist/client/assets/StatisticsPanel-CHrAY5AP.js +1 -0
  118. package/dist/client/assets/StatisticsSettingsLink-bGWuxNG3.js +1 -0
  119. package/dist/client/assets/{ThreadTerminalDrawer-DaLrSTn9.js → ThreadTerminalDrawer-BEv83xrk.js} +3 -3
  120. package/dist/client/assets/ThreadWorkspacePanel-BdMdJVHJ.js +2073 -0
  121. package/dist/client/assets/UniCNS-UCS2-H-DWzv8UhH.bcmap +0 -0
  122. package/dist/client/assets/UniCNS-UTF16-H-Bw0JKgCq.bcmap +0 -0
  123. package/dist/client/assets/UniCNS-UTF32-H-IE_GrH2i.bcmap +0 -0
  124. package/dist/client/assets/UniCNS-UTF8-H-BbLcFh6Q.bcmap +0 -0
  125. package/dist/client/assets/UniGB-UCS2-H-D7xzRvZN.bcmap +0 -0
  126. package/dist/client/assets/UniGB-UTF16-H-DKjbEwc0.bcmap +0 -0
  127. package/dist/client/assets/UniGB-UTF32-H-Behfouj5.bcmap +0 -0
  128. package/dist/client/assets/UniGB-UTF8-H-EROft1ro.bcmap +0 -0
  129. package/dist/client/assets/UniJIS-UCS2-H-2DbZ0MaQ.bcmap +0 -0
  130. package/dist/client/assets/UniJIS-UTF16-H-BlDDPdCK.bcmap +0 -0
  131. package/dist/client/assets/UniJIS-UTF32-H-BIQPWkjv.bcmap +0 -0
  132. package/dist/client/assets/UniJIS-UTF8-H-CGusholx.bcmap +0 -0
  133. package/dist/client/assets/UniJIS2004-UTF16-H-KXixH-HI.bcmap +0 -0
  134. package/dist/client/assets/UniJIS2004-UTF32-H-CXrD-9YE.bcmap +0 -0
  135. package/dist/client/assets/UniJIS2004-UTF8-H-BkOctZjn.bcmap +0 -0
  136. package/dist/client/assets/UniJISX0213-UTF32-H-BavAhZjb.bcmap +0 -0
  137. package/dist/client/assets/UniJISX02132004-UTF32-H-DAH-AgUq.bcmap +0 -0
  138. package/dist/client/assets/UniKS-UCS2-H-YeUc7k1L.bcmap +0 -0
  139. package/dist/client/assets/UniKS-UTF16-H-B0dvB-Td.bcmap +0 -0
  140. package/dist/client/assets/UniKS-UTF32-H-olR_LtmR.bcmap +0 -0
  141. package/dist/client/assets/UniKS-UTF8-H-CbpebD-y.bcmap +0 -0
  142. package/dist/client/assets/{activity-bn_fBQGf.js → activity-BmRcsTyL.js} +1 -1
  143. package/dist/client/assets/{alert-BmLJh6DH.js → alert-C5UiA2xk.js} +1 -1
  144. package/dist/client/assets/{appChrome-Dy57Ve9N.js → appChrome-CsZ2ylc1.js} +1 -1
  145. package/dist/client/assets/{arrow-left-pzj1cbX3.js → arrow-left-CSz-z20j.js} +1 -1
  146. package/dist/client/assets/{arrow-right-BW5jU-vo.js → arrow-right-DEi91hao.js} +1 -1
  147. package/dist/client/assets/{arrow-up-right-AfC5AaSO.js → arrow-up-right-D7SpcTV9.js} +1 -1
  148. package/dist/client/assets/authorization-B1YXfej3.js +1 -0
  149. package/dist/client/assets/badge-BjvTY7-E.js +1 -0
  150. package/dist/client/assets/{bot-CsKkSRlb.js → bot-SC4UGZyw.js} +1 -1
  151. package/dist/client/assets/{capabilities-DskyVNd2.js → capabilities-BCkDNe83.js} +1 -1
  152. package/dist/client/assets/{chart-column-DhvWXIiH.js → chart-column-C08MuLgY.js} +1 -1
  153. package/dist/client/assets/chevron-right-DgB53U1_.js +1 -0
  154. package/dist/client/assets/{clipboard-copy-fJnfdl4H.js → clipboard-copy-D74Wvnon.js} +1 -1
  155. package/dist/client/assets/{data-list-_E-Al1sf.js → data-list-CZ4Utnfl.js} +1 -1
  156. package/dist/client/assets/{desktopWorkspace-DycXKuMm.js → desktopWorkspace-DVfn9ZT_.js} +1 -1
  157. package/dist/client/assets/{download-CLQzE1di.js → download-Dio40wIJ.js} +1 -1
  158. package/dist/client/assets/editorPreferences-2dG4uloq.js +1 -0
  159. package/dist/client/assets/{empty-YXFtCUDN.js → empty-6LExKYgQ.js} +1 -1
  160. package/dist/client/assets/{group-DOCkUmuY.js → group-D_mu0Kiq.js} +1 -1
  161. package/dist/client/assets/{hostedConnectionCoordinator-JZ1dLx4v.js → hostedConnectionCoordinator-YkDLnATK.js} +1 -1
  162. package/dist/client/assets/{hubRoutes-C2S5of9_.js → hubRoutes-D3quWvU7.js} +1 -1
  163. package/dist/client/assets/{index-CvRFRkBK.js → index-7MTgf8YI.js} +2 -2
  164. package/dist/client/assets/{input-C2xv8mMt.js → input-CfVJycb1.js} +1 -1
  165. package/dist/client/assets/jbig2-CNFLgX9F.wasm +0 -0
  166. package/dist/client/assets/kbd-uFa_tY-L.js +1 -0
  167. package/dist/client/assets/{key-round-CYcb9lAa.js → key-round-C-oUSjpF.js} +1 -1
  168. package/dist/client/assets/{layers-CGlOWYxu.js → layers-Co2a5C1k.js} +1 -1
  169. package/dist/client/assets/{log-out-CZW2EpNJ.js → log-out-pWFhbvwr.js} +1 -1
  170. package/dist/client/assets/{logging-BpmZOfmu.js → logging-JMrwaeZh.js} +1 -1
  171. package/dist/client/assets/main-BNPtp9Z0.css +2 -0
  172. package/dist/client/assets/main-CGeD6yVE.js +9 -0
  173. package/dist/client/assets/openjpeg-MeY6OQBn.wasm +0 -0
  174. package/dist/client/assets/{palette-CQOuNfSO.js → palette-B_6C4fD6.js} +1 -1
  175. package/dist/client/assets/pdf.worker.min-Dswkl-cV.mjs +29 -0
  176. package/dist/client/assets/{play-CPVy9wwV.js → play-DFtc9zBy.js} +1 -1
  177. package/dist/client/assets/primary-CNUdEGcv.js +2 -0
  178. package/dist/client/assets/providerDriverMeta-Cg_XLUfo.js +1 -0
  179. package/dist/client/assets/{ProviderModelPicker-DoYEUZrn.js → providerInstances-JaDrOWPZ.js} +1 -1
  180. package/dist/client/assets/providerModels-5uOq3qPC.js +1 -0
  181. package/dist/client/assets/qcms_bg-3PJi_GXR.wasm +0 -0
  182. package/dist/client/assets/{qr-code-BPqDlVMn.js → qr-code-BU354aLS.js} +1 -1
  183. package/dist/client/assets/{qr-code-C6BVTc4V.js → qr-code-DaHWf7Oq.js} +1 -1
  184. package/dist/client/assets/quickjs-eval-zJSp5SB4.wasm +0 -0
  185. package/dist/client/assets/radio-group-DKaA1eey.js +2 -0
  186. package/dist/client/assets/{refresh-cw-B5Cz1z3e.js → refresh-cw-CY5BeUEr.js} +1 -1
  187. package/dist/client/assets/runtime-BKneT96Q.js +17 -0
  188. package/dist/client/assets/{save-C7zM6ey6.js → save-DIHMjHXd.js} +1 -1
  189. package/dist/client/assets/{scroll-area-5OU_pvTW.js → scroll-area-Cq4SX9P8.js} +1 -1
  190. package/dist/client/assets/{scrollEdges-qnEXfIOg.js → scrollEdges-BaWRjrac.js} +1 -1
  191. package/dist/client/assets/{separator-B5HfRiaO.js → separator-BN705fC0.js} +1 -1
  192. package/dist/client/assets/{settingsLayout-CfKq88KD.js → settingsLayout-DQERzSce.js} +1 -1
  193. package/dist/client/assets/{sheet-B9gQDy_I.js → sheet-CFvRY7T6.js} +1 -1
  194. package/dist/client/assets/{shield-rdjnBE2Q.js → shield-Zn2kFj5M.js} +1 -1
  195. package/dist/client/assets/{shield-alert-7yBlEyOs.js → shield-alert-DMB5gKiC.js} +1 -1
  196. package/dist/client/assets/{shield-check-CnKgVJ0F.js → shield-check-DyNf6Bky.js} +1 -1
  197. package/dist/client/assets/{sidebar-BdvL1Pbj.js → sidebar-Bsh64sLK.js} +1 -1
  198. package/dist/client/assets/sidebarProjectFolders-CQbpO9ZI.js +4 -0
  199. package/dist/client/assets/{sidebarStatusText-CZKsUFBD.js → sidebarStatusText-DCo-whyK.js} +1 -1
  200. package/dist/client/assets/{skeleton-CoyLqyaB.js → skeleton-DEuowfjY.js} +1 -1
  201. package/dist/client/assets/{smartphone-CBgpMHXR.js → smartphone-BLWJ7C9-.js} +1 -1
  202. package/dist/client/assets/{sparkles-w-UZXQx1.js → sparkles-DAXDXp_s.js} +1 -1
  203. package/dist/client/assets/src-DPpEXU6w.js +14 -0
  204. package/dist/client/assets/{star-BZ-RtSFD.js → star-CjQxHYbD.js} +1 -1
  205. package/dist/client/assets/switch-LahPAvrd.js +48 -0
  206. package/dist/client/assets/{toggle-DVGrNHjq.js → toggle-45lsrmyi.js} +1 -1
  207. package/dist/client/assets/{toggle-group-CNDOfNhH.js → toggle-group-D5pl24ED.js} +1 -1
  208. package/dist/client/assets/{tokenModePresentation-CQNdC9CW.js → tokenModePresentation-CPUsUGY4.js} +1 -1
  209. package/dist/client/assets/tooltip-B8-izeMo.js +1 -0
  210. package/dist/client/assets/{unplug-CRUwFNFw.js → unplug-Bjpxv8i0.js} +1 -1
  211. package/dist/client/assets/usage-8vQUo0mr.js +1 -0
  212. package/dist/client/assets/useAppSidebarCollapsed-uwz9Hlgc.js +1 -0
  213. package/dist/client/assets/useBaseUiId-BtuL7q77.js +1 -0
  214. package/dist/client/assets/useLabelableId-N_LsKNbf.js +1 -0
  215. package/dist/client/assets/useNavigate-DADLi29i.js +1 -0
  216. package/dist/client/assets/usePhoneThreadActions-B9_HK7tn.js +1 -0
  217. package/dist/client/assets/usePopupViewport-w8BEny9j.js +1 -0
  218. package/dist/client/assets/useScrollLock-bCmUzTgK.js +1 -0
  219. package/dist/client/assets/useStatistics-DJtONxT0.js +55 -0
  220. package/dist/client/assets/useTriggerFocusGuards-C7JWO2LT.js +1 -0
  221. package/dist/client/assets/useValueChanged-DkoUO9bY.js +1 -0
  222. package/dist/client/assets/{user-round-DStbWN3z.js → user-round-DEWIPpNs.js} +1 -1
  223. package/dist/client/assets/{vscode-icons-BihBo3tb.js → vscode-icons-DTH-Vj-_.js} +1 -1
  224. package/dist/client/assets/workspaceMetadataProjection-BnpxBe8S.js +1 -0
  225. package/dist/client/assets/{wrench-BBIgGxy9.js → wrench-36WYdK_a.js} +1 -1
  226. package/dist/client/index.html +1 -1
  227. package/dist/collectUint8StreamText-BAUF-vzz.mjs +37 -0
  228. package/dist/collectUint8StreamText-vagpNUMJ.cjs +42 -0
  229. package/dist/deviceHostWorker-C-BSnmkn.mjs +167 -0
  230. package/dist/deviceHostWorker-CYnrwfrv.cjs +169 -0
  231. package/dist/git-C4iJMbBu.mjs +132 -0
  232. package/dist/git-irmB8_k7.cjs +218 -0
  233. package/dist/{makeManagedServerProvider-CwYhl_P-.mjs → makeManagedServerProvider-BINne1KE.mjs} +3 -38
  234. package/dist/{makeManagedServerProvider-Dy2Ny9tk.cjs → makeManagedServerProvider-DGbd8BhM.cjs} +1 -60
  235. package/dist/resource-monitor/ryco-resource-monitor +0 -0
  236. package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
  237. package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
  238. package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
  239. package/dist/runtimeSession-Bj0OUcNJ.cjs +63 -0
  240. package/dist/runtimeSession-CA6cLWg0.mjs +40 -0
  241. package/dist/schemaJson-CaG1bOvo.mjs +49 -0
  242. package/dist/schemaJson-CuhFxa8p.cjs +66 -0
  243. package/dist/{collectUint8StreamText-whblCEfg.cjs → src-BlzIcnVG.cjs} +522 -116
  244. package/dist/{collectUint8StreamText-CE1Re5Ij.mjs → src-DtEOcXdl.mjs} +350 -94
  245. package/package.json +1 -1
  246. package/dist/AcpNativeLogging-CA6XYzIS.cjs +0 -5130
  247. package/dist/AcpNativeLogging-D4-VoHrq.mjs +0 -5015
  248. package/dist/client/assets/AccountSettings-Bv57-JYy.js +0 -1
  249. package/dist/client/assets/AiFocusSettings-DCPHmJpA.js +0 -1
  250. package/dist/client/assets/AppearanceSettings-EmTrtb_U.js +0 -1
  251. package/dist/client/assets/ChatRightPanel-C1VD6GCV.js +0 -194
  252. package/dist/client/assets/CommandPaletteDialog-B_f3fKp7.js +0 -1
  253. package/dist/client/assets/CompositeRoot-B40iitmH.js +0 -1
  254. package/dist/client/assets/ConnectionsSettings-B9nfvgLG.js +0 -7
  255. package/dist/client/assets/ContextHandoffEndpointLabel-BSQOArMR.js +0 -4
  256. package/dist/client/assets/DialogRoot-CY6ZzEUS.js +0 -1
  257. package/dist/client/assets/DialogTrigger-CIeVAA-a.js +0 -1
  258. package/dist/client/assets/DraftChatThreadRouteView-DMIGMESb.js +0 -1
  259. package/dist/client/assets/McpServersSettings-CPeNF8_u.js +0 -6
  260. package/dist/client/assets/MobileSheet-BZo-RAfm.js +0 -1
  261. package/dist/client/assets/OpinionatedPluginsSettings-D8A1CbMG.js +0 -1
  262. package/dist/client/assets/PhoneHome-BTKOPVjw.js +0 -1
  263. package/dist/client/assets/ProvidersSettingsPanel-ldDCPVIY.js +0 -1
  264. package/dist/client/assets/RootAppShell-CzmEWO9w.js +0 -7
  265. package/dist/client/assets/Separator-BhAVTIOc.js +0 -1
  266. package/dist/client/assets/SettingsDialog-ByXgBN0U.js +0 -2
  267. package/dist/client/assets/SettingsPanels-Bgf4vkrJ.js +0 -3
  268. package/dist/client/assets/SourceControlSettings-dKw0FaN1.js +0 -1
  269. package/dist/client/assets/StatisticsPage-C2RuqDIK.js +0 -1
  270. package/dist/client/assets/StatisticsPanel-DqoXnrhQ.js +0 -1
  271. package/dist/client/assets/StatisticsSettingsLink-C_f31sb4.js +0 -1
  272. package/dist/client/assets/ThreadWorkspacePanel-BvRZIxZQ.js +0 -2073
  273. package/dist/client/assets/authorization-7xVVtCBu.js +0 -1
  274. package/dist/client/assets/badge-DnBuGHGL.js +0 -1
  275. package/dist/client/assets/chevron-right-CITtTwME.js +0 -1
  276. package/dist/client/assets/editorPreferences-Bg624RVT.js +0 -1
  277. package/dist/client/assets/kbd-4-4mGdIa.js +0 -1
  278. package/dist/client/assets/main-CC-U8LrA.css +0 -2
  279. package/dist/client/assets/main-CzDOnLFw.js +0 -9
  280. package/dist/client/assets/primary-CjhRI8fe.js +0 -2
  281. package/dist/client/assets/providerDriverMeta-BVHpFupf.js +0 -1
  282. package/dist/client/assets/providerModels-BsybzP4P.js +0 -1
  283. package/dist/client/assets/radio-group-C8qudOQH.js +0 -2
  284. package/dist/client/assets/runtime-Bxg7k81u.js +0 -17
  285. package/dist/client/assets/sidebarProjectFolders-BH8XBqNe.js +0 -4
  286. package/dist/client/assets/src-Bi-5Nw9C.js +0 -14
  287. package/dist/client/assets/switch-CEJEmLe7.js +0 -48
  288. package/dist/client/assets/tooltip-B7Z4qomY.js +0 -1
  289. package/dist/client/assets/useAppSidebarCollapsed-wq6czkNJ.js +0 -1
  290. package/dist/client/assets/useBaseUiId-OYaGjnkh.js +0 -1
  291. package/dist/client/assets/useLabelableId-VMc-yITe.js +0 -1
  292. package/dist/client/assets/useNavigate-DVi0rBlf.js +0 -1
  293. package/dist/client/assets/usePhoneThreadActions-CwwHikjB.js +0 -1
  294. package/dist/client/assets/usePopupViewport-BcSIK_ph.js +0 -1
  295. package/dist/client/assets/useScrollLock-BQf9VYJT.js +0 -1
  296. package/dist/client/assets/useStatistics-DczKdEfy.js +0 -55
  297. package/dist/client/assets/useTriggerFocusGuards-DjP-D0_a.js +0 -1
  298. package/dist/client/assets/useValueChanged-CRwCkFdy.js +0 -1
  299. package/dist/client/assets/workspaceMetadataProjection-j3BGlVOB.js +0 -1
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { Aa as ThreadGoal, Ni as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Sr as isToolLifecycleItemType, Ui as ProviderApprovalDecision, Zo as ApprovalRequestId, ar as CodexSettings, as as EventId, ds as ProviderItemId, eo as ProviderDriverKind, fs as RuntimeItemId, gs as RuntimeTaskId, hs as RuntimeSubagentId, ps as RuntimeRequestId, ss as MessageId, to as ProviderInstanceId, ys as TurnId } from "./collectUint8StreamText-CE1Re5Ij.mjs";
4
- import { st as ServerConfig } from "./Metrics-a1h4iBQi.mjs";
5
- import { $ as mergeProviderInstanceEnvironment, $n as resolveAttachmentPath, $t as V2ErrorNotification, An as V2WindowsWorldWritableWarningNotification, At as CodexAppServerClient, Bt as ServerRequest__CommandExecutionRequestApprovalParams, Cn as V2TurnPlanUpdatedNotification, Ct as ProviderAdapterSessionNotFoundError, Dn as V2TurnSteerParams, Dt as materializeCodexShadowHome, En as V2TurnStartResponse, Et as codexContinuationIdentity, Ft as CodexAppServerRequestError, Gt as ToolRequestUserInputParams, Hn as enrichProviderSnapshotWithVersionAdvisory, Ht as ServerRequest__ExecCommandApprovalParams, It as CodexAppServerSpawnError, Jn as resolveProviderMaintenanceCapabilitiesEffect, Jt as V2AccountUpdatedNotification, Kt as ToolRequestUserInputResponse, Lt as CodexAppServerTransportError, M as makeEventNdjsonLogger, Mt as layerCommand, N as buildTokenReductionInstructions, Nt as CodexAppServerProcessExitedError, On as V2TurnSteerResponse, Ot as resolveCodexHomeLayout, P as checkRtkAvailability, Pt as CodexAppServerProtocolParseError, Qt as V2DeprecationNoticeNotification, Rt as SERVER_NOTIFICATION_METHODS, Sn as V2TurnDiffUpdatedNotification, St as ProviderAdapterSessionClosedError, Tn as V2TurnStartParams__CollaborationMode, Tt as ProviderDriverError, Ut as ServerRequest__FileChangeRequestApprovalParams, Vt as ServerRequest__DynamicToolCallParams, Wn as makePackageManagedProviderMaintenanceResolver, Wt as ServerRequest__ToolRequestUserInputParams, Xn as ServerSettingsService, Xt as V2CommandExecutionOutputDeltaNotification, Yt as V2AgentMessageDeltaNotification, Zt as V2ConfigWarningNotification, _n as V2ThreadRealtimeStartedNotification, _t as installAgentControlNativeHttp, an as V2ModelReroutedNotification, bn as V2ThreadTokenUsageUpdatedNotification, bt as ProviderAdapterProcessError, cn as V2ReasoningTextDeltaNotification, dn as V2ThreadGoalUpdatedNotification, en as V2FileChangeOutputDeltaNotification, et as buildCodexInitializeParams, fn as V2ThreadNameUpdatedNotification, gn as V2ThreadRealtimeOutputAudioDeltaNotification, hn as V2ThreadRealtimeItemAddedNotification, in as V2McpToolCallProgressNotification, ir as getModelSelectionStringOptionValue, j as ProviderEventLoggers, jt as layerChildProcess, kn as V2WindowsSandboxSetupCompletedNotification, kt as expandHomePath, ln as V2ServerRequestResolvedNotification, lr as normalizeModelSlug, mn as V2ThreadRealtimeErrorNotification, n as AgentControlSessionRegistry, nn as V2ItemStartedNotification, nt as makePendingCodexProvider, on as V2PlanDeltaNotification, pn as V2ThreadRealtimeClosedNotification, qt as V2AccountRateLimitsUpdatedNotification, rn as V2McpServerOauthLoginCompletedNotification, rr as getModelSelectionBooleanOptionValue, sn as V2ReasoningSummaryTextDeltaNotification, t as makeServerQueueMetrics, tn as V2ItemCompletedNotification, tt as checkCodexProviderStatus, un as V2ThreadGoalClearedNotification, vn as V2ThreadStartedNotification, wn as V2TurnStartParams, wt as ProviderAdapterValidationError, xn as V2TurnCompletedNotification, xt as ProviderAdapterRequestError, yn as V2ThreadStatusChangedNotification, yt as createProcessDeviceToolBinding, zt as ServerRequest__ApplyPatchApprovalParams } from "./bin.mjs";
6
- import { a as formatAttachmentPathLines, i as appendAttachmentPathLines, n as requireRuntimeSessionId, r as stampRuntimeEvent, t as makeManagedServerProvider } from "./makeManagedServerProvider-CwYhl_P-.mjs";
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 makeCodexTextGeneration } from "./CodexTextGeneration-DoCidwvI.mjs";
10
- import { Cause, Deferred, Effect, Exit, Fiber, FileSystem, Layer, Option, Queue, Redacted, Ref, Schema, Scope, Stream } from "effect";
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.timeoutOption("3 seconds"), Effect.ignore), {
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.timeoutOption("10 seconds"), Effect.ignore);
1274
+ }).pipe(Effect.timeout("10 seconds"), Effect.catchCause(() => Effect.sync(() => {
1275
+ childInterruptFailed = true;
1276
+ })));
1215
1277
  const effectiveTurnId = turnId ?? session.activeTurnId;
1216
- if (!effectiveTurnId) return;
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 interruptTurn = (threadId, turnId) => requireSession(threadId).pipe(Effect.flatMap((session) => (session.agentControl ? session.agentControl.retireTurn(turnId) : Effect.void).pipe(Effect.andThen(session.runtime.interruptTurn(turnId)), Effect.timeoutOption("15 seconds"), Effect.flatMap(Option.match({
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(stopSessionInternal(session)))
2667
- })))), Effect.mapError((cause) => cause._tag === "ProviderAdapterSessionNotFoundError" ? cause : mapCodexRuntimeError(threadId, "turn/interrupt", cause)));
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 require_collectUint8StreamText = require("./collectUint8StreamText-whblCEfg.cjs");
4
- const require_Metrics = require("./Metrics-Bcb9vCAe.cjs");
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 require_collectUint8StreamText.TextGenerationError({
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 require_collectUint8StreamText.TextGenerationError({
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 require_collectUint8StreamText.TextGenerationError({
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 require_collectUint8StreamText.TextGenerationError({
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 require_collectUint8StreamText.TextGenerationError({
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
- return {
120
- generateCommitMessage: effect.Effect.fn("CodexTextGeneration.generateCommitMessage")(function* (input) {
121
- const { prompt, outputSchema } = require_bin.buildCommitMessagePrompt({
122
- branch: input.branch,
123
- stagedSummary: input.stagedSummary,
124
- stagedPatch: input.stagedPatch,
125
- includeBranch: input.includeBranch === true
126
- });
127
- const generated = yield* runCodexJson({
128
- operation: "generateCommitMessage",
129
- cwd: input.cwd,
130
- prompt,
131
- outputSchemaJson: outputSchema,
132
- modelSelection: input.modelSelection
133
- });
134
- return {
135
- subject: require_bin.sanitizeCommitSubject(generated.subject),
136
- body: generated.body.trim(),
137
- ..."branch" in generated && typeof generated.branch === "string" ? { branch: require_Metrics.sanitizeFeatureBranchName(generated.branch) } : {}
138
- };
139
- }),
140
- generatePrContent: effect.Effect.fn("CodexTextGeneration.generatePrContent")(function* (input) {
141
- const { prompt, outputSchema } = require_bin.buildPrContentPrompt({
142
- baseBranch: input.baseBranch,
143
- headBranch: input.headBranch,
144
- commitSummary: input.commitSummary,
145
- diffSummary: input.diffSummary,
146
- diffPatch: input.diffPatch
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 generated = yield* runCodexJson({
149
- operation: "generatePrContent",
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: require_bin.sanitizePrTitle(generated.title),
157
- body: generated.body.trim()
235
+ title: decoded.title.trim(),
236
+ body: decoded.body.trim()
158
237
  };
159
- }),
160
- generateBranchName: effect.Effect.fn("CodexTextGeneration.generateBranchName")(function* (input) {
161
- const { imagePaths } = yield* materializeImageAttachments("generateBranchName", input.attachments);
162
- const { prompt, outputSchema } = require_bin.buildBranchNamePrompt({
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
- return { title: require_bin.sanitizeThreadTitle(generated.title) };
191
- }),
192
- generateIssueContent: effect.Effect.fn("CodexTextGeneration.generateIssueContent")(function* (input) {
193
- if (input.mode === "polish") {
194
- const { prompt, outputSchema } = require_bin.buildIssueContentPolishPrompt({
195
- rough: input.rough ?? "",
196
- ...input.currentTitle ? { currentTitle: input.currentTitle } : {},
197
- ...input.customInstructions ? { customInstructions: input.customInstructions } : {}
198
- });
199
- const decoded = yield* runCodexJson({
200
- operation: "generateIssueContent",
201
- cwd: input.cwd,
202
- prompt,
203
- outputSchemaJson: outputSchema,
204
- modelSelection: input.modelSelection
205
- });
206
- return {
207
- title: decoded.title.trim(),
208
- body: decoded.body.trim()
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