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
@@ -0,0 +1,218 @@
1
+ #!/usr/bin/env node
2
+
3
+ const require_rolldown_runtime = require("./rolldown-runtime-LGfotAqq.cjs");
4
+ const require_src = require("./src-BlzIcnVG.cjs");
5
+ const require_sourceControl = require("./sourceControl-B0D1Op29.cjs");
6
+ let effect_Effect = require("effect/Effect");
7
+ effect_Effect = require_rolldown_runtime.__toESM(effect_Effect, 1);
8
+ let effect_Random = require("effect/Random");
9
+ effect_Random = require_rolldown_runtime.__toESM(effect_Random, 1);
10
+ //#region ../../packages/shared/src/git.ts
11
+ const WORKTREE_BRANCH_PREFIX = require_src.DEFAULT_WORKTREE_BRANCH_PREFIX;
12
+ const LEGACY_WORKTREE_BRANCH_PREFIX = "ryco";
13
+ /**
14
+ * Sanitize an arbitrary string into a valid, lowercase git refName fragment.
15
+ * Strips quotes, collapses separators, limits to 64 chars.
16
+ */
17
+ function sanitizeBranchFragment(raw) {
18
+ const branchFragment = raw.trim().toLowerCase().replace(/['"`]/g, "").replace(/^[./\s_-]+|[./\s_-]+$/g, "").replace(/[^a-z0-9/_-]+/g, "-").replace(/\/+/g, "/").replace(/-+/g, "-").replace(/^[./_-]+|[./_-]+$/g, "").slice(0, 64).replace(/[./_-]+$/g, "");
19
+ return branchFragment.length > 0 ? branchFragment : "update";
20
+ }
21
+ /**
22
+ * Sanitize a string into a `feature/…` refName name.
23
+ * Preserves an existing `feature/` prefix or slash-separated namespace.
24
+ */
25
+ function sanitizeFeatureBranchName(raw) {
26
+ const sanitized = sanitizeBranchFragment(raw);
27
+ if (sanitized.includes("/")) return sanitized.startsWith("feature/") ? sanitized : `feature/${sanitized}`;
28
+ return `feature/${sanitized}`;
29
+ }
30
+ const AUTO_FEATURE_BRANCH_FALLBACK = "feature/update";
31
+ /**
32
+ * Resolve a unique `feature/…` refName name that doesn't collide with
33
+ * any existing refName. Appends a numeric suffix when needed.
34
+ */
35
+ function resolveAutoFeatureBranchName(existingBranchNames, preferredBranch) {
36
+ const preferred = preferredBranch?.trim();
37
+ const resolvedBase = sanitizeFeatureBranchName(preferred && preferred.length > 0 ? preferred : AUTO_FEATURE_BRANCH_FALLBACK);
38
+ const existingNames = new Set(existingBranchNames.map((refName) => refName.toLowerCase()));
39
+ if (!existingNames.has(resolvedBase)) return resolvedBase;
40
+ let suffix = 2;
41
+ while (existingNames.has(`${resolvedBase}-${suffix}`)) suffix += 1;
42
+ return `${resolvedBase}-${suffix}`;
43
+ }
44
+ /**
45
+ * Strip the remote prefix from a remote ref such as `origin/feature/demo`.
46
+ */
47
+ function deriveLocalBranchNameFromRemoteRef(branchName) {
48
+ const firstSeparatorIndex = branchName.indexOf("/");
49
+ if (firstSeparatorIndex <= 0 || firstSeparatorIndex === branchName.length - 1) return branchName;
50
+ return branchName.slice(firstSeparatorIndex + 1);
51
+ }
52
+ /** Prefixes are validated by WorktreeBranchPrefix at the server settings boundary. */
53
+ function prefixWorktreeBranch(fragment, prefix) {
54
+ return prefix.length > 0 ? `${prefix}/${fragment}` : fragment;
55
+ }
56
+ function buildTemporaryWorktreeBranchName(prefix = WORKTREE_BRANCH_PREFIX) {
57
+ return prefixWorktreeBranch(effect_Effect.runSync(effect_Random.nextIntBetween(0, 4294967295)).toString(16).padStart(8, "0"), prefix);
58
+ }
59
+ /** Returns the original namespace, retaining legacy drafts after a settings change. */
60
+ function extractTemporaryWorktreeBranchPrefix(refName, prefix = WORKTREE_BRANCH_PREFIX) {
61
+ const ref = refName.trim();
62
+ for (const candidate of [prefix, LEGACY_WORKTREE_BRANCH_PREFIX]) {
63
+ const namespace = candidate.length > 0 ? `${candidate}/` : "";
64
+ if (ref.toLowerCase().startsWith(namespace.toLowerCase()) && /^[0-9a-f]{8}$/i.test(ref.slice(namespace.length))) return ref.slice(0, candidate.length);
65
+ }
66
+ return null;
67
+ }
68
+ function isTemporaryWorktreeBranch(refName, prefix = WORKTREE_BRANCH_PREFIX) {
69
+ return extractTemporaryWorktreeBranchPrefix(refName, prefix) !== null;
70
+ }
71
+ /** An empty namespace cannot establish ownership of arbitrary named branches. */
72
+ function isManagedWorktreeBranch(refName, prefix = WORKTREE_BRANCH_PREFIX) {
73
+ const ref = refName.trim();
74
+ return [prefix, LEGACY_WORKTREE_BRANCH_PREFIX].some((candidate) => candidate.length > 0 && ref.startsWith(`${candidate}/`) && ref.length > candidate.length + 1) || isTemporaryWorktreeBranch(ref, prefix);
75
+ }
76
+ function buildGeneratedWorktreeBranchName(raw, prefix = WORKTREE_BRANCH_PREFIX) {
77
+ const normalized = raw.trim().replace(/^refs\/heads\//i, "").replace(/['"`]/g, "");
78
+ const existingPrefix = [prefix, LEGACY_WORKTREE_BRANCH_PREFIX].find((candidate) => candidate.length > 0 && normalized.toLowerCase().startsWith(`${candidate.toLowerCase()}/`));
79
+ return prefixWorktreeBranch(sanitizeBranchFragment(existingPrefix === void 0 ? normalized : normalized.slice(existingPrefix.length + 1)), prefix);
80
+ }
81
+ /**
82
+ * Normalize a git remote URL into a stable comparison key.
83
+ */
84
+ function normalizeGitRemoteUrl(value) {
85
+ const normalized = value.trim().replace(/\/+$/g, "").replace(/\.git$/i, "").toLowerCase();
86
+ if (/^(?:ssh|https?|git):\/\//i.test(normalized)) try {
87
+ const url = new URL(normalized);
88
+ const repositoryPath = url.pathname.split("/").filter((segment) => segment.length > 0).join("/");
89
+ if (url.hostname && repositoryPath.includes("/")) return `${url.hostname}/${repositoryPath}`;
90
+ } catch {
91
+ return normalized;
92
+ }
93
+ const scpStyleHostAndPath = /^git@([^:/\s]+)[:/]([^/\s]+(?:\/[^/\s]+)+)$/i.exec(normalized);
94
+ if (scpStyleHostAndPath?.[1] && scpStyleHostAndPath[2]) return `${scpStyleHostAndPath[1]}/${scpStyleHostAndPath[2]}`;
95
+ return normalized;
96
+ }
97
+ function deriveLocalBranchNameCandidatesFromRemoteRef(branchName, remoteName) {
98
+ const candidates = /* @__PURE__ */ new Set();
99
+ const firstSlashCandidate = deriveLocalBranchNameFromRemoteRef(branchName);
100
+ if (firstSlashCandidate.length > 0) candidates.add(firstSlashCandidate);
101
+ if (remoteName) {
102
+ const remotePrefix = `${remoteName}/`;
103
+ if (branchName.startsWith(remotePrefix) && branchName.length > remotePrefix.length) candidates.add(branchName.slice(remotePrefix.length));
104
+ }
105
+ return [...candidates];
106
+ }
107
+ /**
108
+ * Hide `origin/*` remote refs when a matching local refName already exists.
109
+ */
110
+ function dedupeRemoteBranchesWithLocalMatches(refs) {
111
+ const localBranchNames = new Set(refs.filter((refName) => !refName.isRemote).map((refName) => refName.name));
112
+ return refs.filter((refName) => {
113
+ if (!refName.isRemote) return true;
114
+ if (refName.remoteName !== "origin") return true;
115
+ return !deriveLocalBranchNameCandidatesFromRemoteRef(refName.name, refName.remoteName).some((candidate) => localBranchNames.has(candidate));
116
+ });
117
+ }
118
+ function detectSourceControlProviderFromGitRemoteUrl(remoteUrl) {
119
+ return require_sourceControl.detectSourceControlProviderFromRemoteUrl(remoteUrl);
120
+ }
121
+ const EMPTY_GIT_STATUS_REMOTE = {
122
+ hasUpstream: false,
123
+ aheadCount: 0,
124
+ behindCount: 0,
125
+ aheadOfDefaultCount: 0,
126
+ pr: null
127
+ };
128
+ function mergeGitStatusParts(local, remote) {
129
+ return {
130
+ ...local,
131
+ ...remote ?? EMPTY_GIT_STATUS_REMOTE
132
+ };
133
+ }
134
+ //#endregion
135
+ Object.defineProperty(exports, "WORKTREE_BRANCH_PREFIX", {
136
+ enumerable: true,
137
+ get: function() {
138
+ return WORKTREE_BRANCH_PREFIX;
139
+ }
140
+ });
141
+ Object.defineProperty(exports, "buildGeneratedWorktreeBranchName", {
142
+ enumerable: true,
143
+ get: function() {
144
+ return buildGeneratedWorktreeBranchName;
145
+ }
146
+ });
147
+ Object.defineProperty(exports, "buildTemporaryWorktreeBranchName", {
148
+ enumerable: true,
149
+ get: function() {
150
+ return buildTemporaryWorktreeBranchName;
151
+ }
152
+ });
153
+ Object.defineProperty(exports, "dedupeRemoteBranchesWithLocalMatches", {
154
+ enumerable: true,
155
+ get: function() {
156
+ return dedupeRemoteBranchesWithLocalMatches;
157
+ }
158
+ });
159
+ Object.defineProperty(exports, "detectSourceControlProviderFromGitRemoteUrl", {
160
+ enumerable: true,
161
+ get: function() {
162
+ return detectSourceControlProviderFromGitRemoteUrl;
163
+ }
164
+ });
165
+ Object.defineProperty(exports, "extractTemporaryWorktreeBranchPrefix", {
166
+ enumerable: true,
167
+ get: function() {
168
+ return extractTemporaryWorktreeBranchPrefix;
169
+ }
170
+ });
171
+ Object.defineProperty(exports, "isManagedWorktreeBranch", {
172
+ enumerable: true,
173
+ get: function() {
174
+ return isManagedWorktreeBranch;
175
+ }
176
+ });
177
+ Object.defineProperty(exports, "isTemporaryWorktreeBranch", {
178
+ enumerable: true,
179
+ get: function() {
180
+ return isTemporaryWorktreeBranch;
181
+ }
182
+ });
183
+ Object.defineProperty(exports, "mergeGitStatusParts", {
184
+ enumerable: true,
185
+ get: function() {
186
+ return mergeGitStatusParts;
187
+ }
188
+ });
189
+ Object.defineProperty(exports, "normalizeGitRemoteUrl", {
190
+ enumerable: true,
191
+ get: function() {
192
+ return normalizeGitRemoteUrl;
193
+ }
194
+ });
195
+ Object.defineProperty(exports, "prefixWorktreeBranch", {
196
+ enumerable: true,
197
+ get: function() {
198
+ return prefixWorktreeBranch;
199
+ }
200
+ });
201
+ Object.defineProperty(exports, "resolveAutoFeatureBranchName", {
202
+ enumerable: true,
203
+ get: function() {
204
+ return resolveAutoFeatureBranchName;
205
+ }
206
+ });
207
+ Object.defineProperty(exports, "sanitizeBranchFragment", {
208
+ enumerable: true,
209
+ get: function() {
210
+ return sanitizeBranchFragment;
211
+ }
212
+ });
213
+ Object.defineProperty(exports, "sanitizeFeatureBranchName", {
214
+ enumerable: true,
215
+ get: function() {
216
+ return sanitizeFeatureBranchName;
217
+ }
218
+ });
@@ -1,44 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import "./collectUint8StreamText-CE1Re5Ij.mjs";
4
- import { r as ignoreProviderBackgroundCause, wt as ProviderAdapterValidationError } from "./bin.mjs";
3
+ import "./src-DtEOcXdl.mjs";
4
+ import { r as ignoreProviderBackgroundCause } from "./bin.mjs";
5
5
  import { Clock, Deferred, Duration, Effect, Equal, Fiber, PubSub, Ref, Stream, SynchronizedRef } from "effect";
6
6
  import * as Semaphore$1 from "effect/Semaphore";
7
- //#region ../../packages/shared/src/attachmentPrompt.ts
8
- function formatAttachmentPathLine(entry) {
9
- const attachment = entry.attachment;
10
- const name = attachment.name ?? "attachment";
11
- const mimeType = attachment.mimeType ?? "unknown";
12
- const sizeText = attachment.sizeBytes === void 0 ? "size unknown" : `${attachment.sizeBytes}`;
13
- if (attachment.id === void 0 || entry.resolvedPath === void 0) return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes)`;
14
- return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes) saved at: ${entry.resolvedPath}`;
15
- }
16
- function formatAttachmentPathLines(entries) {
17
- return entries.map(formatAttachmentPathLine);
18
- }
19
- function appendAttachmentPathLines(text, pathLines) {
20
- if (pathLines.length === 0) return text;
21
- const lines = pathLines.join("\n");
22
- if (text === void 0 || text.trim().length === 0) return lines;
23
- return `${text}\n\n${lines}`;
24
- }
25
- //#endregion
26
- //#region src/provider/runtimeSession.ts
27
- function requireRuntimeSessionId(provider, input) {
28
- return input.runtimeSessionId !== void 0 ? Effect.succeed(input.runtimeSessionId) : Effect.fail(new ProviderAdapterValidationError({
29
- provider,
30
- operation: "startSession",
31
- issue: "runtimeSessionId is required for new provider sessions."
32
- }));
33
- }
34
- function stampRuntimeEvent(event, input) {
35
- return {
36
- ...event,
37
- providerInstanceId: input.providerInstanceId,
38
- runtimeSessionId: input.runtimeSessionId
39
- };
40
- }
41
- //#endregion
42
7
  //#region src/provider/makeManagedServerProvider.ts
43
8
  const DEFAULT_SNAPSHOT_FRESHNESS = Duration.minutes(5);
44
9
  const isProviderSnapshotFresh = (input) => input.lastRefreshAttemptAtMs !== null && input.nowMs - input.lastRefreshAttemptAtMs < input.freshnessMs;
@@ -151,4 +116,4 @@ const makeManagedServerProvider = Effect.fn("makeManagedServerProvider")(functio
151
116
  };
152
117
  });
153
118
  //#endregion
154
- export { formatAttachmentPathLines as a, appendAttachmentPathLines as i, requireRuntimeSessionId as n, stampRuntimeEvent as r, makeManagedServerProvider as t };
119
+ export { makeManagedServerProvider as t };
@@ -1,46 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const require_rolldown_runtime = require("./rolldown-runtime-LGfotAqq.cjs");
4
- require("./collectUint8StreamText-whblCEfg.cjs");
4
+ require("./src-BlzIcnVG.cjs");
5
5
  const require_bin = require("./bin.cjs");
6
6
  let effect = require("effect");
7
7
  let effect_Semaphore = require("effect/Semaphore");
8
8
  effect_Semaphore = require_rolldown_runtime.__toESM(effect_Semaphore, 1);
9
- //#region ../../packages/shared/src/attachmentPrompt.ts
10
- function formatAttachmentPathLine(entry) {
11
- const attachment = entry.attachment;
12
- const name = attachment.name ?? "attachment";
13
- const mimeType = attachment.mimeType ?? "unknown";
14
- const sizeText = attachment.sizeBytes === void 0 ? "size unknown" : `${attachment.sizeBytes}`;
15
- if (attachment.id === void 0 || entry.resolvedPath === void 0) return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes)`;
16
- return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes) saved at: ${entry.resolvedPath}`;
17
- }
18
- function formatAttachmentPathLines(entries) {
19
- return entries.map(formatAttachmentPathLine);
20
- }
21
- function appendAttachmentPathLines(text, pathLines) {
22
- if (pathLines.length === 0) return text;
23
- const lines = pathLines.join("\n");
24
- if (text === void 0 || text.trim().length === 0) return lines;
25
- return `${text}\n\n${lines}`;
26
- }
27
- //#endregion
28
- //#region src/provider/runtimeSession.ts
29
- function requireRuntimeSessionId(provider, input) {
30
- return input.runtimeSessionId !== void 0 ? effect.Effect.succeed(input.runtimeSessionId) : effect.Effect.fail(new require_bin.ProviderAdapterValidationError({
31
- provider,
32
- operation: "startSession",
33
- issue: "runtimeSessionId is required for new provider sessions."
34
- }));
35
- }
36
- function stampRuntimeEvent(event, input) {
37
- return {
38
- ...event,
39
- providerInstanceId: input.providerInstanceId,
40
- runtimeSessionId: input.runtimeSessionId
41
- };
42
- }
43
- //#endregion
44
9
  //#region src/provider/makeManagedServerProvider.ts
45
10
  const DEFAULT_SNAPSHOT_FRESHNESS = effect.Duration.minutes(5);
46
11
  const isProviderSnapshotFresh = (input) => input.lastRefreshAttemptAtMs !== null && input.nowMs - input.lastRefreshAttemptAtMs < input.freshnessMs;
@@ -153,33 +118,9 @@ const makeManagedServerProvider = effect.Effect.fn("makeManagedServerProvider")(
153
118
  };
154
119
  });
155
120
  //#endregion
156
- Object.defineProperty(exports, "appendAttachmentPathLines", {
157
- enumerable: true,
158
- get: function() {
159
- return appendAttachmentPathLines;
160
- }
161
- });
162
- Object.defineProperty(exports, "formatAttachmentPathLines", {
163
- enumerable: true,
164
- get: function() {
165
- return formatAttachmentPathLines;
166
- }
167
- });
168
121
  Object.defineProperty(exports, "makeManagedServerProvider", {
169
122
  enumerable: true,
170
123
  get: function() {
171
124
  return makeManagedServerProvider;
172
125
  }
173
126
  });
174
- Object.defineProperty(exports, "requireRuntimeSessionId", {
175
- enumerable: true,
176
- get: function() {
177
- return requireRuntimeSessionId;
178
- }
179
- });
180
- Object.defineProperty(exports, "stampRuntimeEvent", {
181
- enumerable: true,
182
- get: function() {
183
- return stampRuntimeEvent;
184
- }
185
- });
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env node
2
+
3
+ const require_bin = require("./bin.cjs");
4
+ let effect = require("effect");
5
+ //#region ../../packages/shared/src/attachmentPrompt.ts
6
+ function formatAttachmentPathLine(entry) {
7
+ const attachment = entry.attachment;
8
+ const name = attachment.name ?? "attachment";
9
+ const mimeType = attachment.mimeType ?? "unknown";
10
+ const sizeText = attachment.sizeBytes === void 0 ? "size unknown" : `${attachment.sizeBytes}`;
11
+ if (attachment.id === void 0 || entry.resolvedPath === void 0) return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes)`;
12
+ return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes) saved at: ${entry.resolvedPath}`;
13
+ }
14
+ function formatAttachmentPathLines(entries) {
15
+ return entries.map(formatAttachmentPathLine);
16
+ }
17
+ function appendAttachmentPathLines(text, pathLines) {
18
+ if (pathLines.length === 0) return text;
19
+ const lines = pathLines.join("\n");
20
+ if (text === void 0 || text.trim().length === 0) return lines;
21
+ return `${text}\n\n${lines}`;
22
+ }
23
+ //#endregion
24
+ //#region src/provider/runtimeSession.ts
25
+ function requireRuntimeSessionId(provider, input) {
26
+ return input.runtimeSessionId !== void 0 ? effect.Effect.succeed(input.runtimeSessionId) : effect.Effect.fail(new require_bin.ProviderAdapterValidationError({
27
+ provider,
28
+ operation: "startSession",
29
+ issue: "runtimeSessionId is required for new provider sessions."
30
+ }));
31
+ }
32
+ function stampRuntimeEvent(event, input) {
33
+ return {
34
+ ...event,
35
+ providerInstanceId: input.providerInstanceId,
36
+ runtimeSessionId: input.runtimeSessionId
37
+ };
38
+ }
39
+ //#endregion
40
+ Object.defineProperty(exports, "appendAttachmentPathLines", {
41
+ enumerable: true,
42
+ get: function() {
43
+ return appendAttachmentPathLines;
44
+ }
45
+ });
46
+ Object.defineProperty(exports, "formatAttachmentPathLines", {
47
+ enumerable: true,
48
+ get: function() {
49
+ return formatAttachmentPathLines;
50
+ }
51
+ });
52
+ Object.defineProperty(exports, "requireRuntimeSessionId", {
53
+ enumerable: true,
54
+ get: function() {
55
+ return requireRuntimeSessionId;
56
+ }
57
+ });
58
+ Object.defineProperty(exports, "stampRuntimeEvent", {
59
+ enumerable: true,
60
+ get: function() {
61
+ return stampRuntimeEvent;
62
+ }
63
+ });
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { Ht as ProviderAdapterValidationError } from "./bin.mjs";
4
+ import { Effect } from "effect";
5
+ //#region ../../packages/shared/src/attachmentPrompt.ts
6
+ function formatAttachmentPathLine(entry) {
7
+ const attachment = entry.attachment;
8
+ const name = attachment.name ?? "attachment";
9
+ const mimeType = attachment.mimeType ?? "unknown";
10
+ const sizeText = attachment.sizeBytes === void 0 ? "size unknown" : `${attachment.sizeBytes}`;
11
+ if (attachment.id === void 0 || entry.resolvedPath === void 0) return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes)`;
12
+ return `[Attached file] ${name} (${mimeType}, ${sizeText} bytes) saved at: ${entry.resolvedPath}`;
13
+ }
14
+ function formatAttachmentPathLines(entries) {
15
+ return entries.map(formatAttachmentPathLine);
16
+ }
17
+ function appendAttachmentPathLines(text, pathLines) {
18
+ if (pathLines.length === 0) return text;
19
+ const lines = pathLines.join("\n");
20
+ if (text === void 0 || text.trim().length === 0) return lines;
21
+ return `${text}\n\n${lines}`;
22
+ }
23
+ //#endregion
24
+ //#region src/provider/runtimeSession.ts
25
+ function requireRuntimeSessionId(provider, input) {
26
+ return input.runtimeSessionId !== void 0 ? Effect.succeed(input.runtimeSessionId) : Effect.fail(new ProviderAdapterValidationError({
27
+ provider,
28
+ operation: "startSession",
29
+ issue: "runtimeSessionId is required for new provider sessions."
30
+ }));
31
+ }
32
+ function stampRuntimeEvent(event, input) {
33
+ return {
34
+ ...event,
35
+ providerInstanceId: input.providerInstanceId,
36
+ runtimeSessionId: input.runtimeSessionId
37
+ };
38
+ }
39
+ //#endregion
40
+ export { formatAttachmentPathLines as i, stampRuntimeEvent as n, appendAttachmentPathLines as r, requireRuntimeSessionId as t };
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { Cause, Effect, Exit, Option, Result, Schema, SchemaGetter, SchemaIssue, SchemaTransformation } from "effect";
4
+ //#region ../../packages/shared/src/schemaJson.ts
5
+ const decodeJsonResult = (schema) => {
6
+ const decode = Schema.decodeExit(Schema.fromJsonString(schema));
7
+ return (input) => {
8
+ const result = decode(input);
9
+ if (Exit.isFailure(result)) return Result.fail(result.cause);
10
+ return Result.succeed(result.value);
11
+ };
12
+ };
13
+ const formatSchemaError = (cause) => {
14
+ const squashed = Cause.squash(cause);
15
+ return Schema.isSchemaError(squashed) ? SchemaIssue.makeFormatterDefault()(squashed.issue) : Cause.pretty(cause);
16
+ };
17
+ /**
18
+ * A `Getter` that parses a lenient JSON string (tolerating trailing commas
19
+ * and JS-style comments) into an unknown value.
20
+ *
21
+ * Mirrors `SchemaGetter.parseJson()` but uses `parseLenientJson` instead
22
+ * of `JSON.parse`.
23
+ */
24
+ const parseLenientJsonGetter = SchemaGetter.onSome((input) => Effect.try({
25
+ try: () => {
26
+ let stripped = input.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g, (match, stringLiteral) => stringLiteral ? match : "");
27
+ stripped = stripped.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g, (match, stringLiteral) => stringLiteral ? match : "");
28
+ stripped = stripped.replace(/,(\s*[}\]])/g, "$1");
29
+ return Option.some(JSON.parse(stripped));
30
+ },
31
+ catch: (e) => new SchemaIssue.InvalidValue({ message: String(e) }, input)
32
+ }));
33
+ /**
34
+ * Schema transformation: lenient JSONC string ↔ unknown.
35
+ *
36
+ * Same API as `SchemaTransformation.fromJsonString`, but the decode side
37
+ * strips trailing commas and JS-style comments before parsing.
38
+ * Encoding produces strict JSON via `JSON.stringify`.
39
+ */
40
+ const fromLenientJsonString = new SchemaTransformation.Transformation(parseLenientJsonGetter, SchemaGetter.stringifyJson());
41
+ /**
42
+ * Build a schema that decodes a lenient JSON string into `A`.
43
+ *
44
+ * Drop-in replacement for `Schema.fromJsonString(schema)` that tolerates
45
+ * trailing commas and comments in the input.
46
+ */
47
+ const fromLenientJson = (schema) => Schema.String.pipe(Schema.decodeTo(schema, fromLenientJsonString));
48
+ //#endregion
49
+ export { formatSchemaError as n, fromLenientJson as r, decodeJsonResult as t };
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env node
2
+
3
+ let effect = require("effect");
4
+ //#region ../../packages/shared/src/schemaJson.ts
5
+ const decodeJsonResult = (schema) => {
6
+ const decode = effect.Schema.decodeExit(effect.Schema.fromJsonString(schema));
7
+ return (input) => {
8
+ const result = decode(input);
9
+ if (effect.Exit.isFailure(result)) return effect.Result.fail(result.cause);
10
+ return effect.Result.succeed(result.value);
11
+ };
12
+ };
13
+ const formatSchemaError = (cause) => {
14
+ const squashed = effect.Cause.squash(cause);
15
+ return effect.Schema.isSchemaError(squashed) ? effect.SchemaIssue.makeFormatterDefault()(squashed.issue) : effect.Cause.pretty(cause);
16
+ };
17
+ /**
18
+ * A `Getter` that parses a lenient JSON string (tolerating trailing commas
19
+ * and JS-style comments) into an unknown value.
20
+ *
21
+ * Mirrors `SchemaGetter.parseJson()` but uses `parseLenientJson` instead
22
+ * of `JSON.parse`.
23
+ */
24
+ const parseLenientJsonGetter = effect.SchemaGetter.onSome((input) => effect.Effect.try({
25
+ try: () => {
26
+ let stripped = input.replace(/("(?:[^"\\]|\\.)*")|\/\/[^\n]*/g, (match, stringLiteral) => stringLiteral ? match : "");
27
+ stripped = stripped.replace(/("(?:[^"\\]|\\.)*")|\/\*[\s\S]*?\*\//g, (match, stringLiteral) => stringLiteral ? match : "");
28
+ stripped = stripped.replace(/,(\s*[}\]])/g, "$1");
29
+ return effect.Option.some(JSON.parse(stripped));
30
+ },
31
+ catch: (e) => new effect.SchemaIssue.InvalidValue({ message: String(e) }, input)
32
+ }));
33
+ /**
34
+ * Schema transformation: lenient JSONC string ↔ unknown.
35
+ *
36
+ * Same API as `SchemaTransformation.fromJsonString`, but the decode side
37
+ * strips trailing commas and JS-style comments before parsing.
38
+ * Encoding produces strict JSON via `JSON.stringify`.
39
+ */
40
+ const fromLenientJsonString = new effect.SchemaTransformation.Transformation(parseLenientJsonGetter, effect.SchemaGetter.stringifyJson());
41
+ /**
42
+ * Build a schema that decodes a lenient JSON string into `A`.
43
+ *
44
+ * Drop-in replacement for `Schema.fromJsonString(schema)` that tolerates
45
+ * trailing commas and comments in the input.
46
+ */
47
+ const fromLenientJson = (schema) => effect.Schema.String.pipe(effect.Schema.decodeTo(schema, fromLenientJsonString));
48
+ //#endregion
49
+ Object.defineProperty(exports, "decodeJsonResult", {
50
+ enumerable: true,
51
+ get: function() {
52
+ return decodeJsonResult;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, "formatSchemaError", {
56
+ enumerable: true,
57
+ get: function() {
58
+ return formatSchemaError;
59
+ }
60
+ });
61
+ Object.defineProperty(exports, "fromLenientJson", {
62
+ enumerable: true,
63
+ get: function() {
64
+ return fromLenientJson;
65
+ }
66
+ });