@skaile/workspaces 5.14.0 → 5.15.0

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 (322) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +1 -1
  3. package/dist/{asset-feeds-PAOX3FUT.js → asset-feeds-LIDC7547.js} +19 -19
  4. package/dist/{asset-feeds-PAOX3FUT.js.map → asset-feeds-LIDC7547.js.map} +1 -1
  5. package/dist/asset-manager/catalog-deployer.js +7 -7
  6. package/dist/asset-manager/index.js +14 -14
  7. package/dist/asset-manager/installer.js +9 -9
  8. package/dist/asset-manager/renderers.js +8 -8
  9. package/dist/asset-manager/src/index.d.ts +128 -6
  10. package/dist/asset-manager/src/index.d.ts.map +1 -1
  11. package/dist/asset-manager/src/install-instances.d.ts +19 -0
  12. package/dist/asset-manager/src/install-instances.d.ts.map +1 -1
  13. package/dist/asset-manager/src/installer.d.ts.map +1 -1
  14. package/dist/asset-manager/src/mcp-config.d.ts +5 -0
  15. package/dist/asset-manager/src/mcp-config.d.ts.map +1 -1
  16. package/dist/bridge/drivers/claude-sdk.js +23 -23
  17. package/dist/bridge/drivers/claude-sdk.js.map +1 -1
  18. package/dist/bridge/drivers/codex.js +80 -16
  19. package/dist/bridge/drivers/codex.js.map +1 -1
  20. package/dist/bridge/drivers/continue.js +10 -10
  21. package/dist/bridge/drivers/echo.js +2 -2
  22. package/dist/bridge/drivers/gemini.js +7 -7
  23. package/dist/bridge/drivers/goose.js +10 -10
  24. package/dist/bridge/drivers/omp.js +111 -39
  25. package/dist/bridge/drivers/omp.js.map +1 -1
  26. package/dist/bridge/drivers/opencode.js +10 -10
  27. package/dist/bridge/drivers/qwen.js +7 -7
  28. package/dist/bridge/index.js +12 -12
  29. package/dist/bridge/src/codex/friendly-error.d.ts +19 -0
  30. package/dist/bridge/src/codex/friendly-error.d.ts.map +1 -0
  31. package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
  32. package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
  33. package/dist/bridge/src/drivers/omp-models-yml.d.ts +17 -7
  34. package/dist/bridge/src/drivers/omp-models-yml.d.ts.map +1 -1
  35. package/dist/bridge/src/drivers/omp.d.ts +7 -0
  36. package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
  37. package/dist/{chunk-ZDTZGEJG.js → chunk-2LTF2ZHH.js} +4 -4
  38. package/dist/{chunk-ZDTZGEJG.js.map → chunk-2LTF2ZHH.js.map} +1 -1
  39. package/dist/{chunk-DWRYUWOK.js → chunk-4AKR4XPQ.js} +3 -3
  40. package/dist/{chunk-DWRYUWOK.js.map → chunk-4AKR4XPQ.js.map} +1 -1
  41. package/dist/{chunk-OX2W5YF3.js → chunk-4QINFQ27.js} +159 -20
  42. package/dist/chunk-4QINFQ27.js.map +1 -0
  43. package/dist/{chunk-V7AWO5FL.js → chunk-54TVXZP3.js} +3 -3
  44. package/dist/{chunk-V7AWO5FL.js.map → chunk-54TVXZP3.js.map} +1 -1
  45. package/dist/{chunk-DHUJRIQQ.js → chunk-74THIMZV.js} +3 -3
  46. package/dist/{chunk-DHUJRIQQ.js.map → chunk-74THIMZV.js.map} +1 -1
  47. package/dist/{chunk-IY5E7Y5W.js → chunk-ANSZULXH.js} +32 -9
  48. package/dist/chunk-ANSZULXH.js.map +1 -0
  49. package/dist/{chunk-PGVSOHWE.js → chunk-AVUJBSFA.js} +2 -2
  50. package/dist/{chunk-PGVSOHWE.js.map → chunk-AVUJBSFA.js.map} +1 -1
  51. package/dist/{chunk-BASMWKPM.js → chunk-AXNX2SKZ.js} +483 -32
  52. package/dist/chunk-AXNX2SKZ.js.map +1 -0
  53. package/dist/{chunk-H5U7LNTJ.js → chunk-BFMYYNDT.js} +25 -3
  54. package/dist/chunk-BFMYYNDT.js.map +1 -0
  55. package/dist/{chunk-CNZI37HV.js → chunk-BV7NLPI6.js} +4 -4
  56. package/dist/{chunk-CNZI37HV.js.map → chunk-BV7NLPI6.js.map} +1 -1
  57. package/dist/{chunk-IPN7N2AZ.js → chunk-D2MZZ2KB.js} +3 -3
  58. package/dist/{chunk-IPN7N2AZ.js.map → chunk-D2MZZ2KB.js.map} +1 -1
  59. package/dist/{chunk-VTXXBYB3.js → chunk-DP6YRAPZ.js} +65 -21
  60. package/dist/chunk-DP6YRAPZ.js.map +1 -0
  61. package/dist/{chunk-WTEYDNTR.js → chunk-DPCEQOIZ.js} +3 -3
  62. package/dist/{chunk-WTEYDNTR.js.map → chunk-DPCEQOIZ.js.map} +1 -1
  63. package/dist/{chunk-U27JRO5L.js → chunk-ESXZJP4M.js} +3 -3
  64. package/dist/{chunk-U27JRO5L.js.map → chunk-ESXZJP4M.js.map} +1 -1
  65. package/dist/{chunk-YFIHFJEB.js → chunk-GLMKS6V6.js} +4 -4
  66. package/dist/{chunk-YFIHFJEB.js.map → chunk-GLMKS6V6.js.map} +1 -1
  67. package/dist/{chunk-6VIVUBNN.js → chunk-GQ5OYFVD.js} +2 -2
  68. package/dist/{chunk-6VIVUBNN.js.map → chunk-GQ5OYFVD.js.map} +1 -1
  69. package/dist/{chunk-O3Q3MOAV.js → chunk-I3JO3NIZ.js} +4 -4
  70. package/dist/{chunk-O3Q3MOAV.js.map → chunk-I3JO3NIZ.js.map} +1 -1
  71. package/dist/{chunk-CAPKENNF.js → chunk-J76LDUDS.js} +84 -16
  72. package/dist/chunk-J76LDUDS.js.map +1 -0
  73. package/dist/{chunk-3NNL334S.js → chunk-JHP6MIW2.js} +56 -19
  74. package/dist/chunk-JHP6MIW2.js.map +1 -0
  75. package/dist/{chunk-PXDWTJ3P.js → chunk-KRRHADE7.js} +5 -5
  76. package/dist/{chunk-PXDWTJ3P.js.map → chunk-KRRHADE7.js.map} +1 -1
  77. package/dist/{chunk-MCLT3BJG.js → chunk-KUB4HFGK.js} +11 -6
  78. package/dist/chunk-KUB4HFGK.js.map +1 -0
  79. package/dist/{chunk-ZU24LWBI.js → chunk-LEOXPIC6.js} +3 -3
  80. package/dist/{chunk-ZU24LWBI.js.map → chunk-LEOXPIC6.js.map} +1 -1
  81. package/dist/{chunk-57SF6W6E.js → chunk-MGM5EJQQ.js} +3 -3
  82. package/dist/chunk-MGM5EJQQ.js.map +1 -0
  83. package/dist/{chunk-UK3LRPJ5.js → chunk-MKTJZLQM.js} +6 -11
  84. package/dist/chunk-MKTJZLQM.js.map +1 -0
  85. package/dist/{chunk-QELQDY5K.js → chunk-N36S36OZ.js} +3 -3
  86. package/dist/{chunk-QELQDY5K.js.map → chunk-N36S36OZ.js.map} +1 -1
  87. package/dist/{chunk-NVO6WECE.js → chunk-NKDSU4Q7.js} +6 -6
  88. package/dist/{chunk-NVO6WECE.js.map → chunk-NKDSU4Q7.js.map} +1 -1
  89. package/dist/{chunk-OQ5MKDS3.js → chunk-NOF73BUH.js} +27 -6
  90. package/dist/chunk-NOF73BUH.js.map +1 -0
  91. package/dist/{chunk-IQVZIVSA.js → chunk-O673TBWJ.js} +3 -3
  92. package/dist/{chunk-IQVZIVSA.js.map → chunk-O673TBWJ.js.map} +1 -1
  93. package/dist/{chunk-ODQGLELI.js → chunk-OOQ5Q75W.js} +111 -20
  94. package/dist/chunk-OOQ5Q75W.js.map +1 -0
  95. package/dist/{chunk-GJGEDWRT.js → chunk-PIDMOE7R.js} +4 -4
  96. package/dist/{chunk-GJGEDWRT.js.map → chunk-PIDMOE7R.js.map} +1 -1
  97. package/dist/{chunk-6JKIOPT3.js → chunk-PK5XQBOC.js} +4 -4
  98. package/dist/{chunk-6JKIOPT3.js.map → chunk-PK5XQBOC.js.map} +1 -1
  99. package/dist/{chunk-5NVDOEWX.js → chunk-PQF5QHVS.js} +4 -4
  100. package/dist/{chunk-5NVDOEWX.js.map → chunk-PQF5QHVS.js.map} +1 -1
  101. package/dist/{chunk-ZBD6EITA.js → chunk-PV47EEHD.js} +4 -4
  102. package/dist/{chunk-ZBD6EITA.js.map → chunk-PV47EEHD.js.map} +1 -1
  103. package/dist/{chunk-PUG7IWFF.js → chunk-QR7W5JV4.js} +66 -16
  104. package/dist/chunk-QR7W5JV4.js.map +1 -0
  105. package/dist/{chunk-OKQXY6FS.js → chunk-RTYDYSUV.js} +4 -4
  106. package/dist/{chunk-OKQXY6FS.js.map → chunk-RTYDYSUV.js.map} +1 -1
  107. package/dist/{chunk-S6FZUR5H.js → chunk-SAKVAG23.js} +7 -7
  108. package/dist/{chunk-S6FZUR5H.js.map → chunk-SAKVAG23.js.map} +1 -1
  109. package/dist/{chunk-7LGNJJ76.js → chunk-SCUEPCSJ.js} +12 -9
  110. package/dist/chunk-SCUEPCSJ.js.map +1 -0
  111. package/dist/{chunk-M3P4BYRK.js → chunk-SP5NGNBV.js} +6 -3
  112. package/dist/chunk-SP5NGNBV.js.map +1 -0
  113. package/dist/{chunk-PAUM35HD.js → chunk-SRKU7QUG.js} +80 -34
  114. package/dist/chunk-SRKU7QUG.js.map +1 -0
  115. package/dist/{chunk-2BIESC6S.js → chunk-SZPE55SB.js} +3 -3
  116. package/dist/{chunk-2BIESC6S.js.map → chunk-SZPE55SB.js.map} +1 -1
  117. package/dist/{chunk-YTZFSKWL.js → chunk-TCWECSEB.js} +3 -3
  118. package/dist/{chunk-YTZFSKWL.js.map → chunk-TCWECSEB.js.map} +1 -1
  119. package/dist/{chunk-J4OYIYFQ.js → chunk-VY6NTFE7.js} +2 -2
  120. package/dist/{chunk-J4OYIYFQ.js.map → chunk-VY6NTFE7.js.map} +1 -1
  121. package/dist/{chunk-FD2IPIE2.js → chunk-WWUWMOX2.js} +15 -11
  122. package/dist/chunk-WWUWMOX2.js.map +1 -0
  123. package/dist/{chunk-USHB5KEY.js → chunk-WXKNM2JJ.js} +3 -3
  124. package/dist/{chunk-USHB5KEY.js.map → chunk-WXKNM2JJ.js.map} +1 -1
  125. package/dist/{chunk-TYUJPQNX.js → chunk-X7DIT65W.js} +4 -4
  126. package/dist/{chunk-TYUJPQNX.js.map → chunk-X7DIT65W.js.map} +1 -1
  127. package/dist/{chunk-QAYL3PYY.js → chunk-XX4C72CC.js} +544 -68
  128. package/dist/chunk-XX4C72CC.js.map +1 -0
  129. package/dist/{chunk-UQ4SQOR6.js → chunk-YL23KWBX.js} +5 -5
  130. package/dist/{chunk-UQ4SQOR6.js.map → chunk-YL23KWBX.js.map} +1 -1
  131. package/dist/{chunk-5IMGZAKH.js → chunk-YUURCZWY.js} +5 -5
  132. package/dist/{chunk-5IMGZAKH.js.map → chunk-YUURCZWY.js.map} +1 -1
  133. package/dist/cli/index.js +4303 -4076
  134. package/dist/cli/index.js.map +1 -1
  135. package/dist/cli/src/agent-checks.d.ts +21 -0
  136. package/dist/cli/src/agent-checks.d.ts.map +1 -1
  137. package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
  138. package/dist/cli/src/commands/catalog.d.ts.map +1 -1
  139. package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
  140. package/dist/cli/src/commands/library-index.d.ts +25 -5
  141. package/dist/cli/src/commands/library-index.d.ts.map +1 -1
  142. package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
  143. package/dist/cli/src/commands/outdated.d.ts.map +1 -1
  144. package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -1
  145. package/dist/cli/src/commands/preset-cmd.d.ts.map +1 -1
  146. package/dist/cli/src/commands/project.d.ts +16 -1
  147. package/dist/cli/src/commands/project.d.ts.map +1 -1
  148. package/dist/cli/src/commands/rebuild.d.ts.map +1 -1
  149. package/dist/cli/src/commands/run.d.ts.map +1 -1
  150. package/dist/cli/src/commands/serve-preflight.d.ts +5 -6
  151. package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -1
  152. package/dist/cli/src/commands/serve.d.ts +12 -0
  153. package/dist/cli/src/commands/serve.d.ts.map +1 -1
  154. package/dist/cli/src/commands/session.d.ts.map +1 -1
  155. package/dist/cli/src/commands/source.d.ts +7 -0
  156. package/dist/cli/src/commands/source.d.ts.map +1 -1
  157. package/dist/cli/src/commands/update.d.ts.map +1 -1
  158. package/dist/cli/src/commands/validate.d.ts +0 -9
  159. package/dist/cli/src/commands/validate.d.ts.map +1 -1
  160. package/dist/cli/src/skill-checks.d.ts +8 -1
  161. package/dist/cli/src/skill-checks.d.ts.map +1 -1
  162. package/dist/connectors/config.js +5 -5
  163. package/dist/connectors/index.js +15 -15
  164. package/dist/connectors/src/config.d.ts.map +1 -1
  165. package/dist/connectors/src/connector-manager.d.ts +8 -1
  166. package/dist/connectors/src/connector-manager.d.ts.map +1 -1
  167. package/dist/connectors/src/connector-prompt.d.ts +9 -0
  168. package/dist/connectors/src/connector-prompt.d.ts.map +1 -1
  169. package/dist/{connectors-2TEGRRYC.js → connectors-JQR5RAMC.js} +18 -18
  170. package/dist/{connectors-2TEGRRYC.js.map → connectors-JQR5RAMC.js.map} +1 -1
  171. package/dist/core/index.js +6 -6
  172. package/dist/core/manifest.js +2 -2
  173. package/dist/core/models.js +1 -1
  174. package/dist/core/publish-manifest.js +3 -3
  175. package/dist/core/ref.js +1 -1
  176. package/dist/core/runtime-assets.js +5 -5
  177. package/dist/core/src/driver-sdk.d.ts +31 -0
  178. package/dist/core/src/driver-sdk.d.ts.map +1 -0
  179. package/dist/core/src/index.d.ts +3 -2
  180. package/dist/core/src/index.d.ts.map +1 -1
  181. package/dist/core/src/lock.d.ts.map +1 -1
  182. package/dist/core/src/manifest-yaml-editor.d.ts +5 -0
  183. package/dist/core/src/manifest-yaml-editor.d.ts.map +1 -1
  184. package/dist/core/src/manifest.d.ts.map +1 -1
  185. package/dist/core/src/models.d.ts +8 -0
  186. package/dist/core/src/models.d.ts.map +1 -1
  187. package/dist/core/src/publish-manifest.d.ts +28 -7
  188. package/dist/core/src/publish-manifest.d.ts.map +1 -1
  189. package/dist/core/src/repo-manager.d.ts.map +1 -1
  190. package/dist/core/src/walker.d.ts +4 -0
  191. package/dist/core/src/walker.d.ts.map +1 -1
  192. package/dist/core/src/workspace-config.d.ts +28 -0
  193. package/dist/core/src/workspace-config.d.ts.map +1 -1
  194. package/dist/core/workspace-config.js +4 -4
  195. package/dist/deploy/index.js +6 -6
  196. package/dist/discovery/index.js +5 -5
  197. package/dist/{ensure-sources-EG7YKKZL.js → ensure-sources-NAGBSMJE.js} +17 -17
  198. package/dist/{ensure-sources-EG7YKKZL.js.map → ensure-sources-NAGBSMJE.js.map} +1 -1
  199. package/dist/factory-assets/connectors/box.js +15 -15
  200. package/dist/factory-assets/connectors/deploy.js +15 -15
  201. package/dist/factory-assets/connectors/devserver.js +15 -15
  202. package/dist/factory-assets/connectors/flow/adapter.js +15 -15
  203. package/dist/factory-assets/connectors/flow/engine.js +7 -7
  204. package/dist/factory-assets/connectors/flow/run-flow.d.ts +5 -0
  205. package/dist/factory-assets/connectors/flow/run-flow.d.ts.map +1 -1
  206. package/dist/factory-assets/connectors/flow/run-flow.js +17 -17
  207. package/dist/factory-assets/connectors/flow.js +15 -15
  208. package/dist/factory-assets/connectors/git.js +15 -15
  209. package/dist/factory-assets/connectors/gmail.js +15 -15
  210. package/dist/factory-assets/connectors/googledrive.js +15 -15
  211. package/dist/factory-assets/connectors/local.js +15 -15
  212. package/dist/factory-assets/connectors/mattermost.js +15 -15
  213. package/dist/factory-assets/connectors/memory.js +15 -15
  214. package/dist/factory-assets/connectors/minio.js +15 -15
  215. package/dist/factory-assets/connectors/postgres.js +15 -15
  216. package/dist/factory-assets/connectors/s3.js +15 -15
  217. package/dist/factory-assets/connectors/sharepoint.js +15 -15
  218. package/dist/factory-assets/connectors/sqlite.js +15 -15
  219. package/dist/factory-assets/connectors/static-server.js +15 -15
  220. package/dist/factory-assets/connectors/tunnel.js +15 -15
  221. package/dist/factory-assets/connectors/webdav.js +15 -15
  222. package/dist/factory-assets/connectors/xstate-store.js +15 -15
  223. package/dist/factory-assets/connectors/xstate.js +15 -15
  224. package/dist/{flows-5TW3XFMH.js → flows-CYJI3URW.js} +11 -11
  225. package/dist/{flows-5TW3XFMH.js.map → flows-CYJI3URW.js.map} +1 -1
  226. package/dist/{helpers-BQGXEKRP.js → helpers-XFHJDJOA.js} +17 -17
  227. package/dist/{helpers-BQGXEKRP.js.map → helpers-XFHJDJOA.js.map} +1 -1
  228. package/dist/library/index.js +11 -11
  229. package/dist/library/install.js +5 -5
  230. package/dist/library/src/index.d.ts +1 -1
  231. package/dist/library/src/index.d.ts.map +1 -1
  232. package/dist/library/src/install/source-fetch-github.d.ts.map +1 -1
  233. package/dist/library/src/manifest-writer.d.ts +15 -0
  234. package/dist/library/src/manifest-writer.d.ts.map +1 -1
  235. package/dist/library/src/remote/remote-catalog-source.d.ts +6 -1
  236. package/dist/library/src/remote/remote-catalog-source.d.ts.map +1 -1
  237. package/dist/library/src/remote/rest-catalog-source.d.ts +6 -1
  238. package/dist/library/src/remote/rest-catalog-source.d.ts.map +1 -1
  239. package/dist/{library-publish-EUP524PE.js → library-publish-FC3ZABR2.js} +91 -29
  240. package/dist/library-publish-FC3ZABR2.js.map +1 -0
  241. package/dist/model-endpoint/index.js +3 -3
  242. package/dist/open-library-5ET7SAJC.js +40 -0
  243. package/dist/{open-library-QNMIMZYS.js.map → open-library-5ET7SAJC.js.map} +1 -1
  244. package/dist/open-registry-X6YQVP7V.js +32 -0
  245. package/dist/{open-registry-BOUCBDLF.js.map → open-registry-X6YQVP7V.js.map} +1 -1
  246. package/dist/{paths-B6SX6J6T.js → paths-NXWIBZCX.js} +9 -9
  247. package/dist/{paths-B6SX6J6T.js.map → paths-NXWIBZCX.js.map} +1 -1
  248. package/dist/{plugin-store-MLFP3WJ7.js → plugin-store-BIITCNOZ.js} +8 -8
  249. package/dist/{plugin-store-MLFP3WJ7.js.map → plugin-store-BIITCNOZ.js.map} +1 -1
  250. package/dist/{project-GXCIEJGM.js → project-2UXHSVVA.js} +40 -40
  251. package/dist/{project-GXCIEJGM.js.map → project-2UXHSVVA.js.map} +1 -1
  252. package/dist/resolver/index.js +7 -7
  253. package/dist/runner/index.js +32 -32
  254. package/dist/runner/src/event-gap-buffer.d.ts.map +1 -1
  255. package/dist/runner/src/resources.d.ts.map +1 -1
  256. package/dist/runner/src/serve.d.ts +8 -0
  257. package/dist/runner/src/serve.d.ts.map +1 -1
  258. package/dist/runner/src/session.d.ts +15 -0
  259. package/dist/runner/src/session.d.ts.map +1 -1
  260. package/dist/sdk/asset-manager.js +14 -14
  261. package/dist/sdk/bridge.js +12 -12
  262. package/dist/sdk/core.js +6 -6
  263. package/dist/sdk/flow.js +7 -7
  264. package/dist/sdk/index.js +32 -32
  265. package/dist/sdk/resolver.js +7 -7
  266. package/dist/sdk/runner.js +32 -32
  267. package/dist/sdk/transport/ws/server.js +1 -1
  268. package/dist/sdk/transport/ws.js +1 -1
  269. package/dist/sdk/transport.js +1 -1
  270. package/dist/serve-preflight-GD7IQFA3.js +54 -0
  271. package/dist/serve-preflight-GD7IQFA3.js.map +1 -0
  272. package/dist/{setup-HJEYEXLS.js → setup-IKH4R7UN.js} +23 -23
  273. package/dist/{setup-HJEYEXLS.js.map → setup-IKH4R7UN.js.map} +1 -1
  274. package/dist/{skills-4WMYGJDL.js → skills-XVHOXOOH.js} +12 -12
  275. package/dist/{skills-4WMYGJDL.js.map → skills-XVHOXOOH.js.map} +1 -1
  276. package/dist/source-M6IARYNO.js +83 -0
  277. package/dist/{source-5VL6PHER.js.map → source-M6IARYNO.js.map} +1 -1
  278. package/dist/source-fetch-github-ST4MFL3D.js +4 -0
  279. package/dist/{source-fetch-github-PIO6EMMF.js.map → source-fetch-github-ST4MFL3D.js.map} +1 -1
  280. package/dist/{source-manifest-publish-Q66H7EJI.js → source-manifest-publish-UP2IS2QW.js} +65 -24
  281. package/dist/source-manifest-publish-UP2IS2QW.js.map +1 -0
  282. package/dist/transport/index.js +1 -1
  283. package/dist/transport/src/ws/server.d.ts +16 -0
  284. package/dist/transport/src/ws/server.d.ts.map +1 -1
  285. package/dist/transport/ws/server.js +1 -1
  286. package/dist/transport/ws.js +1 -1
  287. package/dist/tui/index.js +32 -32
  288. package/dist/types/manifests.js +1 -1
  289. package/dist/types/src/manifests/mcp-server.d.ts.map +1 -1
  290. package/dist/workspace-plugin/adapters/mcp.js +22 -22
  291. package/dist/workspace-plugin/adapters/omp.js +14 -14
  292. package/dist/workspace-plugin/index.js +1 -1
  293. package/dist/workspace-plugin/src/adapters/mcp.d.ts.map +1 -1
  294. package/package.json +3 -3
  295. package/dist/chunk-3NNL334S.js.map +0 -1
  296. package/dist/chunk-57SF6W6E.js.map +0 -1
  297. package/dist/chunk-7LGNJJ76.js.map +0 -1
  298. package/dist/chunk-BASMWKPM.js.map +0 -1
  299. package/dist/chunk-CAPKENNF.js.map +0 -1
  300. package/dist/chunk-FD2IPIE2.js.map +0 -1
  301. package/dist/chunk-H5U7LNTJ.js.map +0 -1
  302. package/dist/chunk-IY5E7Y5W.js.map +0 -1
  303. package/dist/chunk-M3P4BYRK.js.map +0 -1
  304. package/dist/chunk-MCLT3BJG.js.map +0 -1
  305. package/dist/chunk-ODQGLELI.js.map +0 -1
  306. package/dist/chunk-OQ5MKDS3.js.map +0 -1
  307. package/dist/chunk-OX2W5YF3.js.map +0 -1
  308. package/dist/chunk-PAUM35HD.js.map +0 -1
  309. package/dist/chunk-PUG7IWFF.js.map +0 -1
  310. package/dist/chunk-QAYL3PYY.js.map +0 -1
  311. package/dist/chunk-UK3LRPJ5.js.map +0 -1
  312. package/dist/chunk-VTG5Z3KD.js +0 -345
  313. package/dist/chunk-VTG5Z3KD.js.map +0 -1
  314. package/dist/chunk-VTXXBYB3.js.map +0 -1
  315. package/dist/library-publish-EUP524PE.js.map +0 -1
  316. package/dist/open-library-QNMIMZYS.js +0 -40
  317. package/dist/open-registry-BOUCBDLF.js +0 -32
  318. package/dist/serve-preflight-GNBW3O4U.js +0 -64
  319. package/dist/serve-preflight-GNBW3O4U.js.map +0 -1
  320. package/dist/source-5VL6PHER.js +0 -42
  321. package/dist/source-fetch-github-PIO6EMMF.js +0 -4
  322. package/dist/source-manifest-publish-Q66H7EJI.js.map +0 -1
@@ -1,24 +1,24 @@
1
1
  import { driverSessionConfigHome, removeSessionConfigFile, writeSessionConfigFile } from '../../chunk-EAZECHPM.js';
2
- import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-WTEYDNTR.js';
3
- import { resolveEnvDriverSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-IQVZIVSA.js';
2
+ import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-DPCEQOIZ.js';
3
+ import { resolveEnvDriverSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-O673TBWJ.js';
4
4
  import '../../chunk-B4X2N7JQ.js';
5
5
  import '../../chunk-YROR332M.js';
6
- import { getBridgeLogger, registryDriverConfig } from '../../chunk-DWRYUWOK.js';
7
- import { BUILTIN_DRIVER_CATALOG, entryCredentialValue, providerCredentialEnvName } from '../../chunk-6VIVUBNN.js';
6
+ import { getBridgeLogger, registryDriverConfig } from '../../chunk-4AKR4XPQ.js';
7
+ import { BUILTIN_DRIVER_CATALOG, entryCredentialValue, providerCredentialEnvName } from '../../chunk-GQ5OYFVD.js';
8
8
  import '../../chunk-6E6PKKAD.js';
9
- import '../../chunk-OX2W5YF3.js';
9
+ import '../../chunk-4QINFQ27.js';
10
10
  import '../../chunk-4GY63JU6.js';
11
- import '../../chunk-TYUJPQNX.js';
11
+ import '../../chunk-X7DIT65W.js';
12
12
  import '../../chunk-D54T2F54.js';
13
13
  import '../../chunk-5BEFNLOR.js';
14
14
  import '../../chunk-A2ULN3KX.js';
15
- import '../../chunk-CAPKENNF.js';
15
+ import '../../chunk-J76LDUDS.js';
16
16
  import '../../chunk-L5VSIPQD.js';
17
17
  import '../../chunk-IG5LZ3WU.js';
18
- import '../../chunk-IY5E7Y5W.js';
18
+ import '../../chunk-ANSZULXH.js';
19
19
  import '../../chunk-RVRB27AN.js';
20
- import '../../chunk-M3P4BYRK.js';
21
- import '../../chunk-J4OYIYFQ.js';
20
+ import '../../chunk-SP5NGNBV.js';
21
+ import '../../chunk-VY6NTFE7.js';
22
22
  import '../../chunk-ICSCSM5D.js';
23
23
  import '../../chunk-DKXNKFKP.js';
24
24
  import { parseModelRef } from '../../chunk-MJHSLODD.js';
@@ -1,6 +1,6 @@
1
1
  import { dispatchCapability } from '../../chunk-PW3TYWOI.js';
2
- import { AgentDriver, getBridgeLogger, registryDriverConfig } from '../../chunk-DWRYUWOK.js';
3
- import { BUILTIN_DRIVER_CATALOG } from '../../chunk-6VIVUBNN.js';
2
+ import { AgentDriver, getBridgeLogger, registryDriverConfig } from '../../chunk-4AKR4XPQ.js';
3
+ import { BUILTIN_DRIVER_CATALOG } from '../../chunk-GQ5OYFVD.js';
4
4
  import '../../chunk-6E6PKKAD.js';
5
5
  import '../../chunk-D5WTOVLG.js';
6
6
  import '../../chunk-ICSCSM5D.js';
@@ -1,13 +1,13 @@
1
- export { GeminiDriver, GeminiFamilyDriver, geminiDriverTarget } from '../../chunk-S6FZUR5H.js';
2
- import '../../chunk-WTEYDNTR.js';
3
- import '../../chunk-IQVZIVSA.js';
4
- import '../../chunk-YFIHFJEB.js';
1
+ export { GeminiDriver, GeminiFamilyDriver, geminiDriverTarget } from '../../chunk-SAKVAG23.js';
2
+ import '../../chunk-DPCEQOIZ.js';
3
+ import '../../chunk-O673TBWJ.js';
4
+ import '../../chunk-GLMKS6V6.js';
5
5
  import '../../chunk-B4X2N7JQ.js';
6
6
  import '../../chunk-YROR332M.js';
7
- import '../../chunk-DWRYUWOK.js';
8
- import '../../chunk-6VIVUBNN.js';
7
+ import '../../chunk-4AKR4XPQ.js';
8
+ import '../../chunk-GQ5OYFVD.js';
9
9
  import '../../chunk-6E6PKKAD.js';
10
- import '../../chunk-57SF6W6E.js';
10
+ import '../../chunk-MGM5EJQQ.js';
11
11
  import '../../chunk-ICSCSM5D.js';
12
12
  import '../../chunk-DKXNKFKP.js';
13
13
  import '../../chunk-MJHSLODD.js';
@@ -1,24 +1,24 @@
1
1
  import { driverSessionConfigHome, pruneSessionConfigDir, writeSessionConfigFile } from '../../chunk-EAZECHPM.js';
2
- import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-WTEYDNTR.js';
3
- import { resolveEnvDriverSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-IQVZIVSA.js';
2
+ import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-DPCEQOIZ.js';
3
+ import { resolveEnvDriverSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-O673TBWJ.js';
4
4
  import '../../chunk-B4X2N7JQ.js';
5
5
  import '../../chunk-YROR332M.js';
6
- import { getBridgeLogger, registryDriverConfig } from '../../chunk-DWRYUWOK.js';
7
- import { BUILTIN_DRIVER_CATALOG, providerCredentialEnvName } from '../../chunk-6VIVUBNN.js';
6
+ import { getBridgeLogger, registryDriverConfig } from '../../chunk-4AKR4XPQ.js';
7
+ import { BUILTIN_DRIVER_CATALOG, providerCredentialEnvName } from '../../chunk-GQ5OYFVD.js';
8
8
  import '../../chunk-6E6PKKAD.js';
9
- import '../../chunk-OX2W5YF3.js';
9
+ import '../../chunk-4QINFQ27.js';
10
10
  import '../../chunk-4GY63JU6.js';
11
- import '../../chunk-TYUJPQNX.js';
11
+ import '../../chunk-X7DIT65W.js';
12
12
  import '../../chunk-D54T2F54.js';
13
13
  import '../../chunk-5BEFNLOR.js';
14
14
  import '../../chunk-A2ULN3KX.js';
15
- import '../../chunk-CAPKENNF.js';
15
+ import '../../chunk-J76LDUDS.js';
16
16
  import '../../chunk-L5VSIPQD.js';
17
17
  import '../../chunk-IG5LZ3WU.js';
18
- import '../../chunk-IY5E7Y5W.js';
18
+ import '../../chunk-ANSZULXH.js';
19
19
  import '../../chunk-RVRB27AN.js';
20
- import '../../chunk-M3P4BYRK.js';
21
- import '../../chunk-J4OYIYFQ.js';
20
+ import '../../chunk-SP5NGNBV.js';
21
+ import '../../chunk-VY6NTFE7.js';
22
22
  import '../../chunk-ICSCSM5D.js';
23
23
  import '../../chunk-DKXNKFKP.js';
24
24
  import '../../chunk-MJHSLODD.js';
@@ -1,10 +1,10 @@
1
1
  import { checkToolInputSchema } from '../../chunk-X5O56UO4.js';
2
- import { entrySurface } from '../../chunk-IQVZIVSA.js';
2
+ import { entrySurface } from '../../chunk-O673TBWJ.js';
3
3
  import { dispatchCapability } from '../../chunk-PW3TYWOI.js';
4
4
  import { ReconfigureLedger, stripRunnerPrivateEnv, classifyGenericErrorMessage } from '../../chunk-B4X2N7JQ.js';
5
5
  import { wrapAgentCommand, resolveAgentExec } from '../../chunk-YROR332M.js';
6
- import { AgentDriver, getBridgeLogger, TOOL_ALLOWLIST_UNSUPPORTED, registryDriverConfig } from '../../chunk-DWRYUWOK.js';
7
- import { BUILTIN_DRIVER_CATALOG, unresolvedProviderCredentials, entryCredentialValue, providerCredentialEnvName } from '../../chunk-6VIVUBNN.js';
6
+ import { AgentDriver, getBridgeLogger, TOOL_ALLOWLIST_UNSUPPORTED, registryDriverConfig } from '../../chunk-4AKR4XPQ.js';
7
+ import { BUILTIN_DRIVER_CATALOG, unresolvedProviderCredentials, entryCredentialValue, providerCredentialEnvName } from '../../chunk-GQ5OYFVD.js';
8
8
  import '../../chunk-6E6PKKAD.js';
9
9
  import { withActivityLabelJsonSchema } from '../../chunk-D5WTOVLG.js';
10
10
  import '../../chunk-ICSCSM5D.js';
@@ -58,6 +58,7 @@ var OMP_RUNTIME_ENTRIES = {
58
58
  intercom: true,
59
59
  sessions: true
60
60
  };
61
+ var OMP_LOGIN_FILES = ["agent.db", "agent.db-shm", "agent.db-wal"];
61
62
  function entryModelIds(entry) {
62
63
  const logical = /* @__PURE__ */ new Set([
63
64
  ...Object.keys(entry.model_map ?? {}),
@@ -221,16 +222,30 @@ function registryModelEntries(registry) {
221
222
  async function planOmpAgentDir(input) {
222
223
  const options = input.options;
223
224
  const key = input.sessionId?.trim() || createHash("sha256").update(path.resolve(input.cwd)).digest("hex").slice(0, 16);
224
- const agentDir = options?.agentHome ?? path.join(input.tmpDir ?? os.tmpdir(), "skaile-omp-agent", key);
225
- if (options?.seedUserAgentDir === false) return { agentDir };
225
+ const ephemeral = options?.agentHome === void 0;
226
+ let agentDir = options?.agentHome ?? "";
227
+ if (ephemeral) {
228
+ const root = path.join(input.tmpDir ?? os.tmpdir(), "skaile-omp-agent");
229
+ await fs.mkdir(root, { recursive: true });
230
+ agentDir = await fs.mkdtemp(path.join(root, `${key.replace(/[^A-Za-z0-9._-]/g, "_")}-`));
231
+ }
232
+ if (options?.seedUserAgentDir === false) return { agentDir, ephemeral };
226
233
  const seedFrom = options?.userAgentDir ?? path.join(input.homeDir ?? os.homedir(), ".omp", "agent");
227
- if (path.resolve(seedFrom) === path.resolve(agentDir)) return { agentDir };
234
+ if (path.resolve(seedFrom) === path.resolve(agentDir)) return { agentDir, ephemeral };
228
235
  try {
229
- if (!(await fs.stat(seedFrom)).isDirectory()) return { agentDir };
236
+ if (!(await fs.stat(seedFrom)).isDirectory()) return { agentDir, ephemeral };
230
237
  } catch {
231
- return { agentDir };
238
+ return { agentDir, ephemeral };
239
+ }
240
+ return { agentDir, seedFrom, ephemeral };
241
+ }
242
+ async function removeHomeOnThrow(plan, fill) {
243
+ try {
244
+ return await fill();
245
+ } catch (err) {
246
+ if (plan.ephemeral) await fs.rm(plan.agentDir, { recursive: true, force: true });
247
+ throw err;
232
248
  }
233
- return { agentDir, seedFrom };
234
249
  }
235
250
  async function removeEntry(target) {
236
251
  let stat;
@@ -262,6 +277,42 @@ async function linkInto(dir, sourceDir, skip) {
262
277
  }
263
278
  return linked;
264
279
  }
280
+ async function dropStaleSeedLinks(dir, sourceDir) {
281
+ let names;
282
+ try {
283
+ names = await fs.readdir(dir);
284
+ } catch {
285
+ return;
286
+ }
287
+ const root = path.resolve(sourceDir);
288
+ for (const name of names) {
289
+ if (OMP_LOGIN_FILES.includes(name)) continue;
290
+ const entry = path.join(dir, name);
291
+ try {
292
+ if (!(await fs.lstat(entry)).isSymbolicLink()) continue;
293
+ const to = path.resolve(dir, await fs.readlink(entry));
294
+ if (to === root || to.startsWith(root + path.sep)) await fs.unlink(entry);
295
+ } catch {
296
+ }
297
+ }
298
+ }
299
+ async function linkLoginFiles(dir, sourceDir) {
300
+ await dropStaleSeedLinks(dir, sourceDir);
301
+ const linked = [];
302
+ for (const name of OMP_LOGIN_FILES) {
303
+ const from = path.join(sourceDir, name);
304
+ try {
305
+ if (!(await fs.stat(from)).isFile()) continue;
306
+ } catch {
307
+ continue;
308
+ }
309
+ const target = path.join(dir, name);
310
+ await removeEntry(target);
311
+ await fs.symlink(from, target);
312
+ linked.push(name);
313
+ }
314
+ return linked;
315
+ }
265
316
  async function readSeededSettings(seedFrom) {
266
317
  for (const name of ["config.yml", "config.yaml"]) {
267
318
  let raw;
@@ -279,7 +330,7 @@ async function readSeededSettings(seedFrom) {
279
330
  }
280
331
  async function materializeOmpAgentDir(agentDir, registry, options = {}) {
281
332
  await fs.mkdir(agentDir, { recursive: true });
282
- const seeded = options.seedFrom ? await linkInto(agentDir, options.seedFrom, OWNED_AGENT_DIR_FILES) : [];
333
+ const seeded = options.seedFrom ? await linkLoginFiles(agentDir, options.seedFrom) : [];
283
334
  const identity = options.identityDir ? await linkInto(agentDir, options.identityDir, OWNED_AGENT_DIR_FILES) : [];
284
335
  const baseSettings = options.baseSettings ?? (options.seedFrom ? await readSeededSettings(options.seedFrom) : void 0);
285
336
  const render = renderOmpRegistry(registry, { ...options, baseSettings });
@@ -308,15 +359,19 @@ async function materializeOmpProviders(config) {
308
359
  ...config.sessionId ? { sessionId: config.sessionId } : {},
309
360
  ...config.driverOptions?.omp ? { options: config.driverOptions.omp } : {}
310
361
  });
311
- const rendered = await materializeOmpAgentDir(plan.agentDir, registry, {
312
- env,
313
- ...plan.seedFrom ? { seedFrom: plan.seedFrom } : {},
314
- ...config.agentDir ? { identityDir: config.agentDir } : {},
315
- ...config.roles ? { roles: config.roles } : {},
316
- ...config.modelRef ? { modelRef: config.modelRef } : {}
317
- });
362
+ const rendered = await removeHomeOnThrow(
363
+ plan,
364
+ () => materializeOmpAgentDir(plan.agentDir, registry, {
365
+ env,
366
+ ...plan.seedFrom ? { seedFrom: plan.seedFrom } : {},
367
+ ...config.agentDir ? { identityDir: config.agentDir } : {},
368
+ ...config.roles ? { roles: config.roles } : {},
369
+ ...config.modelRef ? { modelRef: config.modelRef } : {}
370
+ })
371
+ );
318
372
  return {
319
373
  ...rendered,
374
+ ephemeral: plan.ephemeral,
320
375
  ...selected?.providerModelId ? { modelArg: `${selected.providerId}/${selected.providerModelId}` } : {}
321
376
  };
322
377
  }
@@ -329,31 +384,33 @@ async function materializeOmpIdentityDir(config) {
329
384
  sessionId: `${config.sessionId?.trim() || "agent"}-${agentKey}`,
330
385
  ...config.driverOptions?.omp ? { options: config.driverOptions.omp } : {}
331
386
  });
332
- await fs.mkdir(plan.agentDir, { recursive: true });
333
- const seeded = plan.seedFrom ? await linkInto(plan.agentDir, plan.seedFrom, OWNED_AGENT_DIR_FILES) : [];
334
- if (plan.seedFrom) {
335
- for (const name of Object.keys(OWNED_AGENT_DIR_FILES)) {
336
- const from = path.join(plan.seedFrom, name);
337
- try {
338
- if (!(await fs.stat(from)).isFile()) continue;
339
- } catch {
340
- continue;
387
+ return removeHomeOnThrow(plan, async () => {
388
+ await fs.mkdir(plan.agentDir, { recursive: true });
389
+ const seeded = plan.seedFrom ? await linkLoginFiles(plan.agentDir, plan.seedFrom) : [];
390
+ if (plan.seedFrom) {
391
+ for (const name of Object.keys(OWNED_AGENT_DIR_FILES)) {
392
+ const from = path.join(plan.seedFrom, name);
393
+ try {
394
+ if (!(await fs.stat(from)).isFile()) continue;
395
+ } catch {
396
+ continue;
397
+ }
398
+ const to = path.join(plan.agentDir, name);
399
+ await removeEntry(to);
400
+ await fs.copyFile(from, to);
341
401
  }
342
- const to = path.join(plan.agentDir, name);
343
- await removeEntry(to);
344
- await fs.copyFile(from, to);
345
402
  }
346
- }
347
- const identity = await linkInto(plan.agentDir, identityDir, {
348
- ...OWNED_AGENT_DIR_FILES,
349
- ...OMP_RUNTIME_ENTRIES
403
+ const identity = await linkInto(plan.agentDir, identityDir, {
404
+ ...OWNED_AGENT_DIR_FILES,
405
+ ...OMP_RUNTIME_ENTRIES
406
+ });
407
+ return { agentDir: plan.agentDir, ephemeral: plan.ephemeral, seeded, identity };
350
408
  });
351
- return { agentDir: plan.agentDir, seeded, identity };
352
409
  }
353
410
 
354
411
  // bridge/src/drivers/omp.ts
355
412
  function ompCredentialMessage(msg) {
356
- const match = /^No API key found for ([A-Za-z0-9._-]+?)\.?(?:\s|$)/.exec(msg);
413
+ const match = /^(?:Error:\s*)?No API key found for ([A-Za-z0-9._-]+?)\.?(?:\s|$)/.exec(msg);
357
414
  if (!match) return msg;
358
415
  const provider = match[1];
359
416
  const envName = `${provider.toUpperCase().replace(/[^A-Z0-9]/g, "_")}_API_KEY`;
@@ -540,6 +597,8 @@ var OmpDriver = class extends AgentDriver {
540
597
  _contextWindow = null;
541
598
  /** Per-spawn file holding the system prompt omp was started with; removed with the process. */
542
599
  systemPromptFile = null;
600
+ /** The private omp home of the running process, when it is the driver's own temporary one. */
601
+ privateHome = null;
543
602
  getTokenUsage() {
544
603
  return this._lastTokens;
545
604
  }
@@ -698,6 +757,7 @@ var OmpDriver = class extends AgentDriver {
698
757
  if (this.proc) return;
699
758
  this.startPromise = this._start().catch((err) => {
700
759
  this.removeSystemPromptFile();
760
+ this.removePrivateHome();
701
761
  throw err;
702
762
  });
703
763
  return this.startPromise;
@@ -713,6 +773,7 @@ var OmpDriver = class extends AgentDriver {
713
773
  }
714
774
  const providers = await materializeOmpProviders(this.config);
715
775
  if (providers) {
776
+ this.privateHome = providers.ephemeral ? providers.agentDir : null;
716
777
  for (const warning of providers.warnings) this.log.warn("registry", { warning });
717
778
  this.log.info("rendered omp models.yml", {
718
779
  agentDir: providers.agentDir,
@@ -757,6 +818,7 @@ var OmpDriver = class extends AgentDriver {
757
818
  if (home) {
758
819
  this.log.info("omp home for the agent", { agentDir: home.agentDir });
759
820
  env.PI_CODING_AGENT_DIR = home.agentDir;
821
+ this.privateHome = home.ephemeral ? home.agentDir : null;
760
822
  }
761
823
  }
762
824
  if (this.config.sshKeyPath) {
@@ -822,7 +884,7 @@ var OmpDriver = class extends AgentDriver {
822
884
  clearTimeout(fallback);
823
885
  reject(
824
886
  new Error(
825
- `omp exited before it was ready (${code !== null ? `exit code ${code}` : `signal ${signal}`})${startStderr.length > 0 ? `: ${ompStartFailureCause(startStderr)}` : ""}`
887
+ `omp exited before it was ready (${code !== null ? `exit code ${code}` : `signal ${signal}`})${startStderr.length > 0 ? `: ${ompCredentialMessage(ompStartFailureCause(startStderr))}` : ""}`
826
888
  )
827
889
  );
828
890
  };
@@ -1241,7 +1303,7 @@ var OmpDriver = class extends AgentDriver {
1241
1303
  const quiet = typeof event.id === "string" && this.quietRequestIds.delete(event.id);
1242
1304
  if (!event.success && event.error && !quiet) {
1243
1305
  const detail = this.classifyErrorMessage(event.error);
1244
- this.emit("agent-event", { type: "error", error: event.error, detail });
1306
+ this.emit("agent-event", { type: "error", error: detail.message, detail });
1245
1307
  }
1246
1308
  this.emit(`response:${event.id}`, event);
1247
1309
  return;
@@ -1264,7 +1326,7 @@ var OmpDriver = class extends AgentDriver {
1264
1326
  }
1265
1327
  if (event.type === "error" && event.error) {
1266
1328
  const detail = this.classifyErrorMessage(event.error);
1267
- this.emit("agent-event", { ...event, detail });
1329
+ this.emit("agent-event", { ...event, error: detail.message, detail });
1268
1330
  return;
1269
1331
  }
1270
1332
  if (event.type === "message_update" && event.message) {
@@ -1296,7 +1358,7 @@ var OmpDriver = class extends AgentDriver {
1296
1358
  const error = event.message.errorMessage || "omp request failed";
1297
1359
  const detail = this.classifyErrorMessage(error);
1298
1360
  this.log.error("omp request failed", new Error(error), { detail });
1299
- this.emit("agent-event", { type: "error", error, detail });
1361
+ this.emit("agent-event", { type: "error", error: detail.message, detail });
1300
1362
  }
1301
1363
  if (event.type === "agent_end") {
1302
1364
  void this.captureState();
@@ -1678,8 +1740,18 @@ ${input.text}` : input.text;
1678
1740
  this.systemPromptFile = null;
1679
1741
  if (file) rmSync(file, { force: true });
1680
1742
  }
1743
+ /**
1744
+ * Delete the private omp home of the process that is gone: it holds symlinks to the login
1745
+ * and the agent files and omp's runtime databases, and nothing reads it afterwards (p811).
1746
+ */
1747
+ removePrivateHome() {
1748
+ const home = this.privateHome;
1749
+ this.privateHome = null;
1750
+ if (home) rmSync(home, { recursive: true, force: true });
1751
+ }
1681
1752
  cleanup() {
1682
1753
  this.removeSystemPromptFile();
1754
+ this.removePrivateHome();
1683
1755
  this.rl?.close();
1684
1756
  this.rl = null;
1685
1757
  this.proc = null;