@skaile/workspaces 5.11.0 → 5.13.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 (472) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/README.md +4 -4
  3. package/dist/{asset-feeds-CXGQIDFR.js → asset-feeds-ALMTHLPV.js} +26 -23
  4. package/dist/asset-feeds-ALMTHLPV.js.map +1 -0
  5. package/dist/asset-manager/catalog-deployer.js +10 -10
  6. package/dist/asset-manager/fragments.js +1 -1
  7. package/dist/asset-manager/index.js +18 -18
  8. package/dist/asset-manager/installer.js +13 -13
  9. package/dist/asset-manager/renderers.js +11 -11
  10. package/dist/asset-manager/src/fragments.d.ts +5 -0
  11. package/dist/asset-manager/src/fragments.d.ts.map +1 -1
  12. package/dist/asset-manager/src/index.d.ts +140 -12
  13. package/dist/asset-manager/src/index.d.ts.map +1 -1
  14. package/dist/asset-manager/src/install-agent.d.ts +9 -1
  15. package/dist/asset-manager/src/install-agent.d.ts.map +1 -1
  16. package/dist/asset-manager/src/installer.d.ts.map +1 -1
  17. package/dist/asset-manager/src/renderers.d.ts +5 -0
  18. package/dist/asset-manager/src/renderers.d.ts.map +1 -1
  19. package/dist/bridge/drivers/claude-sdk.js +21 -16
  20. package/dist/bridge/drivers/claude-sdk.js.map +1 -1
  21. package/dist/bridge/drivers/codex.js +101 -29
  22. package/dist/bridge/drivers/codex.js.map +1 -1
  23. package/dist/bridge/drivers/continue.js +12 -12
  24. package/dist/bridge/drivers/echo.js +2 -2
  25. package/dist/bridge/drivers/gemini.js +7 -7
  26. package/dist/bridge/drivers/goose.js +12 -12
  27. package/dist/bridge/drivers/omp.js +135 -33
  28. package/dist/bridge/drivers/omp.js.map +1 -1
  29. package/dist/bridge/drivers/opencode.js +12 -12
  30. package/dist/bridge/drivers/qwen.js +7 -7
  31. package/dist/bridge/index.js +14 -14
  32. package/dist/bridge/src/codex/config-toml.d.ts +16 -3
  33. package/dist/bridge/src/codex/config-toml.d.ts.map +1 -1
  34. package/dist/bridge/src/codex/managed-driver.d.ts.map +1 -1
  35. package/dist/bridge/src/drivers/claude-sdk.d.ts +1 -1
  36. package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
  37. package/dist/bridge/src/drivers/codex.d.ts +6 -0
  38. package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
  39. package/dist/bridge/src/drivers/omp-models-yml.d.ts +32 -0
  40. package/dist/bridge/src/drivers/omp-models-yml.d.ts.map +1 -1
  41. package/dist/bridge/src/drivers/omp.d.ts +29 -6
  42. package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
  43. package/dist/bridge/src/provider-materialize/credential-env.d.ts +15 -0
  44. package/dist/bridge/src/provider-materialize/credential-env.d.ts.map +1 -1
  45. package/dist/{chunk-T42WRQ4O.js → chunk-2BIESC6S.js} +3 -3
  46. package/dist/{chunk-T42WRQ4O.js.map → chunk-2BIESC6S.js.map} +1 -1
  47. package/dist/{chunk-CPWLNZGJ.js → chunk-4DLQESIY.js} +3 -3
  48. package/dist/{chunk-CPWLNZGJ.js.map → chunk-4DLQESIY.js.map} +1 -1
  49. package/dist/{chunk-HZXUXHIV.js → chunk-4L4R5LV3.js} +89 -12
  50. package/dist/chunk-4L4R5LV3.js.map +1 -0
  51. package/dist/{chunk-CAHB6MHA.js → chunk-4NJ3QQHZ.js} +5 -5
  52. package/dist/{chunk-CAHB6MHA.js.map → chunk-4NJ3QQHZ.js.map} +1 -1
  53. package/dist/{chunk-ZCAJZ4B2.js → chunk-57SF6W6E.js} +147 -4
  54. package/dist/chunk-57SF6W6E.js.map +1 -0
  55. package/dist/{chunk-FH7W6TJ4.js → chunk-5FYOM4RF.js} +106 -25
  56. package/dist/chunk-5FYOM4RF.js.map +1 -0
  57. package/dist/{chunk-R7NHYEJF.js → chunk-5SKVCMRC.js} +15 -7
  58. package/dist/chunk-5SKVCMRC.js.map +1 -0
  59. package/dist/{chunk-CJERAGFY.js → chunk-6GICC4RJ.js} +44 -13
  60. package/dist/chunk-6GICC4RJ.js.map +1 -0
  61. package/dist/{chunk-G4FFOV3N.js → chunk-6JKIOPT3.js} +4 -4
  62. package/dist/{chunk-G4FFOV3N.js.map → chunk-6JKIOPT3.js.map} +1 -1
  63. package/dist/{chunk-T7CTHHG7.js → chunk-6NQDDCIL.js} +3 -3
  64. package/dist/{chunk-T7CTHHG7.js.map → chunk-6NQDDCIL.js.map} +1 -1
  65. package/dist/{chunk-XUSALIEI.js → chunk-7SMP4GNW.js} +6 -6
  66. package/dist/{chunk-XUSALIEI.js.map → chunk-7SMP4GNW.js.map} +1 -1
  67. package/dist/{chunk-Y3HTGHJC.js → chunk-AHCI4V5L.js} +3 -3
  68. package/dist/{chunk-Y3HTGHJC.js.map → chunk-AHCI4V5L.js.map} +1 -1
  69. package/dist/{chunk-M3B6EIJD.js → chunk-B7CZYFB2.js} +4 -4
  70. package/dist/{chunk-M3B6EIJD.js.map → chunk-B7CZYFB2.js.map} +1 -1
  71. package/dist/{chunk-PBBPZYVG.js → chunk-BF422IDP.js} +112 -46
  72. package/dist/chunk-BF422IDP.js.map +1 -0
  73. package/dist/{chunk-47U4GZ4M.js → chunk-BVJU2GKE.js} +20 -3
  74. package/dist/chunk-BVJU2GKE.js.map +1 -0
  75. package/dist/{chunk-PMECEZK3.js → chunk-D54T2F54.js} +5 -4
  76. package/dist/chunk-D54T2F54.js.map +1 -0
  77. package/dist/{chunk-2F5AWQX5.js → chunk-DKGEV6SQ.js} +192 -42
  78. package/dist/chunk-DKGEV6SQ.js.map +1 -0
  79. package/dist/{chunk-DALV4HHP.js → chunk-DKXNKFKP.js} +3 -2
  80. package/dist/{chunk-DALV4HHP.js.map → chunk-DKXNKFKP.js.map} +1 -1
  81. package/dist/chunk-FB3NREF7.js +649 -0
  82. package/dist/chunk-FB3NREF7.js.map +1 -0
  83. package/dist/{chunk-QZNJOHN6.js → chunk-FHDK3BFD.js} +3 -3
  84. package/dist/{chunk-QZNJOHN6.js.map → chunk-FHDK3BFD.js.map} +1 -1
  85. package/dist/{chunk-3SM2DL2T.js → chunk-GMDSRSGI.js} +21 -11
  86. package/dist/chunk-GMDSRSGI.js.map +1 -0
  87. package/dist/chunk-H5U7LNTJ.js +122 -0
  88. package/dist/chunk-H5U7LNTJ.js.map +1 -0
  89. package/dist/{chunk-VLTQGE2E.js → chunk-HBZD3MIW.js} +269 -81
  90. package/dist/chunk-HBZD3MIW.js.map +1 -0
  91. package/dist/{chunk-S3O3GKB7.js → chunk-HWGYJMME.js} +4 -4
  92. package/dist/{chunk-S3O3GKB7.js.map → chunk-HWGYJMME.js.map} +1 -1
  93. package/dist/{chunk-CPSIPIX7.js → chunk-IG5LZ3WU.js} +8 -6
  94. package/dist/chunk-IG5LZ3WU.js.map +1 -0
  95. package/dist/{chunk-ZPWTOUTK.js → chunk-IY5E7Y5W.js} +61 -8
  96. package/dist/chunk-IY5E7Y5W.js.map +1 -0
  97. package/dist/{chunk-6O2X3GPW.js → chunk-J4DB5G36.js} +7 -5
  98. package/dist/chunk-J4DB5G36.js.map +1 -0
  99. package/dist/{chunk-BNMZVPYA.js → chunk-J4OYIYFQ.js} +2 -2
  100. package/dist/{chunk-BNMZVPYA.js.map → chunk-J4OYIYFQ.js.map} +1 -1
  101. package/dist/{chunk-ALEYHUC5.js → chunk-L3ZGYSWY.js} +182 -41
  102. package/dist/chunk-L3ZGYSWY.js.map +1 -0
  103. package/dist/{chunk-SBSA3IQA.js → chunk-M3P4BYRK.js} +49 -14
  104. package/dist/chunk-M3P4BYRK.js.map +1 -0
  105. package/dist/{chunk-IER3KIPH.js → chunk-NDUYFYJB.js} +5 -5
  106. package/dist/{chunk-IER3KIPH.js.map → chunk-NDUYFYJB.js.map} +1 -1
  107. package/dist/{chunk-CGYEHQOX.js → chunk-NOA6EJXE.js} +11 -2
  108. package/dist/chunk-NOA6EJXE.js.map +1 -0
  109. package/dist/{chunk-J4RBUFGM.js → chunk-NVO6WECE.js} +9 -8
  110. package/dist/chunk-NVO6WECE.js.map +1 -0
  111. package/dist/{chunk-OBYKJB4U.js → chunk-O2SYFJWP.js} +79 -5
  112. package/dist/chunk-O2SYFJWP.js.map +1 -0
  113. package/dist/{chunk-5LKOAX7I.js → chunk-OQ5MKDS3.js} +21 -5
  114. package/dist/chunk-OQ5MKDS3.js.map +1 -0
  115. package/dist/{chunk-NWDSLXOX.js → chunk-PHRNUTSG.js} +118 -118
  116. package/dist/chunk-PHRNUTSG.js.map +1 -0
  117. package/dist/chunk-PN44DOGP.js +345 -0
  118. package/dist/chunk-PN44DOGP.js.map +1 -0
  119. package/dist/{chunk-COH6FQAG.js → chunk-PXDWTJ3P.js} +5 -5
  120. package/dist/{chunk-COH6FQAG.js.map → chunk-PXDWTJ3P.js.map} +1 -1
  121. package/dist/{chunk-GV4DZ6MT.js → chunk-PYTTF754.js} +22 -6
  122. package/dist/chunk-PYTTF754.js.map +1 -0
  123. package/dist/chunk-PZOO7L26.js +64 -0
  124. package/dist/chunk-PZOO7L26.js.map +1 -0
  125. package/dist/{chunk-EDYHEMJA.js → chunk-QO7CR3KB.js} +10 -5
  126. package/dist/chunk-QO7CR3KB.js.map +1 -0
  127. package/dist/{chunk-XDKH7XSA.js → chunk-R6QHJEHE.js} +5 -5
  128. package/dist/{chunk-XDKH7XSA.js.map → chunk-R6QHJEHE.js.map} +1 -1
  129. package/dist/chunk-U27JRO5L.js +13 -0
  130. package/dist/chunk-U27JRO5L.js.map +1 -0
  131. package/dist/{chunk-X77SUM4P.js → chunk-USHB5KEY.js} +3 -3
  132. package/dist/{chunk-X77SUM4P.js.map → chunk-USHB5KEY.js.map} +1 -1
  133. package/dist/{chunk-QVFAS5IO.js → chunk-V5JHD4I2.js} +3 -3
  134. package/dist/{chunk-QVFAS5IO.js.map → chunk-V5JHD4I2.js.map} +1 -1
  135. package/dist/{chunk-PQFHMQHQ.js → chunk-VLBIME5L.js} +6 -6
  136. package/dist/{chunk-PQFHMQHQ.js.map → chunk-VLBIME5L.js.map} +1 -1
  137. package/dist/{chunk-D3B36CYC.js → chunk-X3RMRJNR.js} +4 -3
  138. package/dist/chunk-X3RMRJNR.js.map +1 -0
  139. package/dist/{chunk-TCHRMVTO.js → chunk-XBYSURMK.js} +4 -4
  140. package/dist/{chunk-TCHRMVTO.js.map → chunk-XBYSURMK.js.map} +1 -1
  141. package/dist/{chunk-MZG34MBZ.js → chunk-XJYBCDY2.js} +3 -3
  142. package/dist/{chunk-MZG34MBZ.js.map → chunk-XJYBCDY2.js.map} +1 -1
  143. package/dist/{chunk-4A4OD24G.js → chunk-Y4Z7LGSH.js} +9 -9
  144. package/dist/{chunk-4A4OD24G.js.map → chunk-Y4Z7LGSH.js.map} +1 -1
  145. package/dist/{chunk-DZMNFCWB.js → chunk-Y7WKXPWS.js} +816 -143
  146. package/dist/chunk-Y7WKXPWS.js.map +1 -0
  147. package/dist/{chunk-HCEVNYSH.js → chunk-YTZFSKWL.js} +3 -3
  148. package/dist/{chunk-HCEVNYSH.js.map → chunk-YTZFSKWL.js.map} +1 -1
  149. package/dist/{chunk-WSBKB4CJ.js → chunk-ZSMMX3JD.js} +167 -25
  150. package/dist/chunk-ZSMMX3JD.js.map +1 -0
  151. package/dist/{chunk-GCHPUTA3.js → chunk-ZU24LWBI.js} +3 -3
  152. package/dist/{chunk-GCHPUTA3.js.map → chunk-ZU24LWBI.js.map} +1 -1
  153. package/dist/cli/index.js +1427 -605
  154. package/dist/cli/index.js.map +1 -1
  155. package/dist/cli/src/agent-checks.d.ts +40 -0
  156. package/dist/cli/src/agent-checks.d.ts.map +1 -0
  157. package/dist/cli/src/asset-feeds.d.ts.map +1 -1
  158. package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
  159. package/dist/cli/src/commands/catalog-cmd.d.ts.map +1 -1
  160. package/dist/cli/src/commands/catalog.d.ts +26 -0
  161. package/dist/cli/src/commands/catalog.d.ts.map +1 -1
  162. package/dist/cli/src/commands/config.d.ts.map +1 -1
  163. package/dist/cli/src/commands/diff.d.ts +1 -1
  164. package/dist/cli/src/commands/diff.d.ts.map +1 -1
  165. package/dist/cli/src/commands/integration.d.ts.map +1 -1
  166. package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
  167. package/dist/cli/src/commands/library-index.d.ts +10 -0
  168. package/dist/cli/src/commands/library-index.d.ts.map +1 -1
  169. package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
  170. package/dist/cli/src/commands/mcp-server.d.ts +1 -1
  171. package/dist/cli/src/commands/migrate-assets.d.ts +2 -1
  172. package/dist/cli/src/commands/migrate-assets.d.ts.map +1 -1
  173. package/dist/cli/src/commands/migrate.d.ts.map +1 -1
  174. package/dist/cli/src/commands/plugin/claude-code.d.ts +1 -1
  175. package/dist/cli/src/commands/plugin/claude-code.d.ts.map +1 -1
  176. package/dist/cli/src/commands/plugin/types.d.ts +3 -1
  177. package/dist/cli/src/commands/plugin/types.d.ts.map +1 -1
  178. package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -1
  179. package/dist/cli/src/commands/preset-apply.d.ts.map +1 -1
  180. package/dist/cli/src/commands/project.d.ts +8 -0
  181. package/dist/cli/src/commands/project.d.ts.map +1 -1
  182. package/dist/cli/src/commands/publish-core.d.ts +5 -0
  183. package/dist/cli/src/commands/publish-core.d.ts.map +1 -1
  184. package/dist/cli/src/commands/run.d.ts +11 -1
  185. package/dist/cli/src/commands/run.d.ts.map +1 -1
  186. package/dist/cli/src/commands/serve-preflight.d.ts +23 -0
  187. package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -0
  188. package/dist/cli/src/commands/serve.d.ts.map +1 -1
  189. package/dist/cli/src/commands/source-manifest-publish.d.ts.map +1 -1
  190. package/dist/cli/src/commands/source-manifest.d.ts +1 -0
  191. package/dist/cli/src/commands/source-manifest.d.ts.map +1 -1
  192. package/dist/cli/src/commands/source.d.ts +9 -1
  193. package/dist/cli/src/commands/source.d.ts.map +1 -1
  194. package/dist/cli/src/commands/store.d.ts.map +1 -1
  195. package/dist/cli/src/commands/tree.d.ts.map +1 -1
  196. package/dist/cli/src/commands/update.d.ts.map +1 -1
  197. package/dist/cli/src/commands/validate-instances.d.ts.map +1 -1
  198. package/dist/cli/src/commands/validate.d.ts +3 -2
  199. package/dist/cli/src/commands/validate.d.ts.map +1 -1
  200. package/dist/cli/src/commands/why.d.ts.map +1 -1
  201. package/dist/cli/src/curated-manifests.d.ts +21 -0
  202. package/dist/cli/src/curated-manifests.d.ts.map +1 -0
  203. package/dist/cli/src/driver-error.d.ts +7 -0
  204. package/dist/cli/src/driver-error.d.ts.map +1 -1
  205. package/dist/cli/src/helpers.d.ts +6 -0
  206. package/dist/cli/src/helpers.d.ts.map +1 -1
  207. package/dist/cli/src/index-busy.d.ts +8 -0
  208. package/dist/cli/src/index-busy.d.ts.map +1 -0
  209. package/dist/cli/src/plugin-store/index.d.ts +1 -1
  210. package/dist/cli/src/plugin-store/index.d.ts.map +1 -1
  211. package/dist/cli/src/plugin-store/paths.d.ts +7 -3
  212. package/dist/cli/src/plugin-store/paths.d.ts.map +1 -1
  213. package/dist/cli/src/plugin-store/reconcile.d.ts +24 -4
  214. package/dist/cli/src/plugin-store/reconcile.d.ts.map +1 -1
  215. package/dist/cli/src/skill-checks.d.ts +27 -3
  216. package/dist/cli/src/skill-checks.d.ts.map +1 -1
  217. package/dist/cli/src/store-addable.d.ts +17 -0
  218. package/dist/cli/src/store-addable.d.ts.map +1 -0
  219. package/dist/connectors/config.js +6 -6
  220. package/dist/connectors/index.js +18 -18
  221. package/dist/connectors/src/config.d.ts.map +1 -1
  222. package/dist/{connectors-4QWAKPHB.js → connectors-GFKMKAXV.js} +21 -21
  223. package/dist/{connectors-4QWAKPHB.js.map → connectors-GFKMKAXV.js.map} +1 -1
  224. package/dist/core/driver-targets.js +1 -1
  225. package/dist/core/index.js +9 -9
  226. package/dist/core/logging.js +1 -1
  227. package/dist/core/manifest.js +2 -2
  228. package/dist/core/models.js +1 -1
  229. package/dist/core/publish-manifest.js +4 -2
  230. package/dist/core/ref.js +1 -1
  231. package/dist/core/runtime-assets.js +6 -6
  232. package/dist/core/src/agent-instances.d.ts +5 -0
  233. package/dist/core/src/agent-instances.d.ts.map +1 -1
  234. package/dist/core/src/driver-targets.d.ts.map +1 -1
  235. package/dist/core/src/index.d.ts +6 -5
  236. package/dist/core/src/index.d.ts.map +1 -1
  237. package/dist/core/src/lock.d.ts +15 -5
  238. package/dist/core/src/lock.d.ts.map +1 -1
  239. package/dist/core/src/logging/sinks/sqlite-sink.d.ts.map +1 -1
  240. package/dist/core/src/manifest.d.ts +14 -3
  241. package/dist/core/src/manifest.d.ts.map +1 -1
  242. package/dist/core/src/models.d.ts +11 -3
  243. package/dist/core/src/models.d.ts.map +1 -1
  244. package/dist/core/src/package-manager.d.ts +19 -0
  245. package/dist/core/src/package-manager.d.ts.map +1 -0
  246. package/dist/core/src/publish-manifest.d.ts +38 -1
  247. package/dist/core/src/publish-manifest.d.ts.map +1 -1
  248. package/dist/core/src/repo-manager.d.ts +19 -3
  249. package/dist/core/src/repo-manager.d.ts.map +1 -1
  250. package/dist/core/src/runtime-assets.d.ts.map +1 -1
  251. package/dist/core/src/settings.d.ts +26 -6
  252. package/dist/core/src/settings.d.ts.map +1 -1
  253. package/dist/core/src/store.d.ts +4 -0
  254. package/dist/core/src/store.d.ts.map +1 -1
  255. package/dist/core/src/walker.d.ts +8 -1
  256. package/dist/core/src/walker.d.ts.map +1 -1
  257. package/dist/core/src/workspace-config.d.ts +24 -2
  258. package/dist/core/src/workspace-config.d.ts.map +1 -1
  259. package/dist/core/store.js +2 -2
  260. package/dist/core/workspace-config.js +5 -5
  261. package/dist/deploy/index.js +9 -9
  262. package/dist/discovery/index.js +5 -5
  263. package/dist/discovery/src/parse-manifest.d.ts.map +1 -1
  264. package/dist/discovery/src/source-config.d.ts +5 -3
  265. package/dist/discovery/src/source-config.d.ts.map +1 -1
  266. package/dist/{ensure-sources-2RONZKCU.js → ensure-sources-VUKHL65L.js} +21 -21
  267. package/dist/{ensure-sources-2RONZKCU.js.map → ensure-sources-VUKHL65L.js.map} +1 -1
  268. package/dist/factory-assets/README.md +1 -1
  269. package/dist/factory-assets/connectors/box.js +18 -18
  270. package/dist/factory-assets/connectors/deploy.js +18 -18
  271. package/dist/factory-assets/connectors/devserver.js +18 -18
  272. package/dist/factory-assets/connectors/flow/adapter.js +18 -18
  273. package/dist/factory-assets/connectors/flow/contract/normalize.d.ts.map +1 -1
  274. package/dist/factory-assets/connectors/flow/contract.js +1 -1
  275. package/dist/factory-assets/connectors/flow/engine.js +11 -11
  276. package/dist/factory-assets/connectors/flow/run-flow.d.ts.map +1 -1
  277. package/dist/factory-assets/connectors/flow/run-flow.js +20 -20
  278. package/dist/factory-assets/connectors/flow.js +18 -18
  279. package/dist/factory-assets/connectors/git.js +18 -18
  280. package/dist/factory-assets/connectors/gmail.js +18 -18
  281. package/dist/factory-assets/connectors/googledrive.js +18 -18
  282. package/dist/factory-assets/connectors/local.js +18 -18
  283. package/dist/factory-assets/connectors/mattermost.js +18 -18
  284. package/dist/factory-assets/connectors/memory.js +18 -18
  285. package/dist/factory-assets/connectors/minio.js +18 -18
  286. package/dist/factory-assets/connectors/postgres.js +18 -18
  287. package/dist/factory-assets/connectors/s3.js +18 -18
  288. package/dist/factory-assets/connectors/sharepoint.js +18 -18
  289. package/dist/factory-assets/connectors/sqlite.js +18 -18
  290. package/dist/factory-assets/connectors/static-server.js +18 -18
  291. package/dist/factory-assets/connectors/tunnel.js +18 -18
  292. package/dist/factory-assets/connectors/webdav.js +18 -18
  293. package/dist/factory-assets/connectors/xstate-store.js +18 -18
  294. package/dist/factory-assets/connectors/xstate.js +18 -18
  295. package/dist/factory-assets/skills/authoring-skaile-assets/SKILL.md +10 -8
  296. package/dist/factory-assets/skills/authoring-skaile-manifests/SKILL.md +15 -11
  297. package/dist/factory-assets/skills/authoring-skaile-manifests/references/dependency-standard.md +12 -9
  298. package/dist/factory-assets/skills/skaile-author-asset/SKILL.md +2 -2
  299. package/dist/flows-A4YALSZY.js +26 -0
  300. package/dist/{flows-EQF2CH4U.js.map → flows-A4YALSZY.js.map} +1 -1
  301. package/dist/helpers-53XZW7KF.js +34 -0
  302. package/dist/{helpers-CFK6YP6R.js.map → helpers-53XZW7KF.js.map} +1 -1
  303. package/dist/library/index.js +14 -14
  304. package/dist/library/install.js +6 -4
  305. package/dist/library/src/index.d.ts +2 -2
  306. package/dist/library/src/index.d.ts.map +1 -1
  307. package/dist/library/src/install/source-fetch-github.d.ts.map +1 -1
  308. package/dist/library/src/local/db.d.ts +2 -0
  309. package/dist/library/src/local/db.d.ts.map +1 -1
  310. package/dist/library/src/local/library-manager.d.ts +5 -0
  311. package/dist/library/src/local/library-manager.d.ts.map +1 -1
  312. package/dist/library/src/local/library.d.ts +5 -3
  313. package/dist/library/src/local/library.d.ts.map +1 -1
  314. package/dist/library/src/local/local-catalog-source.d.ts +6 -0
  315. package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
  316. package/dist/library/src/local/store-paths.d.ts +9 -0
  317. package/dist/library/src/local/store-paths.d.ts.map +1 -1
  318. package/dist/library/src/manifest-writer.d.ts +1 -1
  319. package/dist/library/src/manifest-writer.d.ts.map +1 -1
  320. package/dist/library/src/remote/index.d.ts +1 -1
  321. package/dist/library/src/remote/index.d.ts.map +1 -1
  322. package/dist/library/src/remote/remote-catalog-source.d.ts +17 -0
  323. package/dist/library/src/remote/remote-catalog-source.d.ts.map +1 -1
  324. package/dist/library/src/sync/git-driver.d.ts.map +1 -1
  325. package/dist/library/src/user-library.d.ts +2 -0
  326. package/dist/library/src/user-library.d.ts.map +1 -1
  327. package/dist/{library-publish-53UTB3MB.js → library-publish-FFIPWIRM.js} +50 -39
  328. package/dist/library-publish-FFIPWIRM.js.map +1 -0
  329. package/dist/open-library-PZAT3TJA.js +40 -0
  330. package/dist/{open-library-BOSPJVID.js.map → open-library-PZAT3TJA.js.map} +1 -1
  331. package/dist/open-registry-W46UXZ3I.js +32 -0
  332. package/dist/{open-registry-4FI7HKET.js.map → open-registry-W46UXZ3I.js.map} +1 -1
  333. package/dist/paths-KKY3NSBZ.js +22 -0
  334. package/dist/{paths-SUS4S4YT.js.map → paths-KKY3NSBZ.js.map} +1 -1
  335. package/dist/plugin-store-CK7YWRIC.js +227 -0
  336. package/dist/plugin-store-CK7YWRIC.js.map +1 -0
  337. package/dist/plugins/src/catalog-source.d.ts +6 -0
  338. package/dist/plugins/src/catalog-source.d.ts.map +1 -1
  339. package/dist/project-EZUH7PUJ.js +79 -0
  340. package/dist/{project-I55A4O2T.js.map → project-EZUH7PUJ.js.map} +1 -1
  341. package/dist/resolver/index.js +10 -10
  342. package/dist/runner/index.js +35 -35
  343. package/dist/runner/src/agent.d.ts.map +1 -1
  344. package/dist/runner/src/agents/in-process-host.d.ts.map +1 -1
  345. package/dist/runner/src/composition/index.d.ts +2 -1
  346. package/dist/runner/src/composition/index.d.ts.map +1 -1
  347. package/dist/runner/src/composition/prompt-sections.d.ts +20 -5
  348. package/dist/runner/src/composition/prompt-sections.d.ts.map +1 -1
  349. package/dist/runner/src/composition/resolve.d.ts +10 -1
  350. package/dist/runner/src/composition/resolve.d.ts.map +1 -1
  351. package/dist/runner/src/composition/verify.d.ts +29 -0
  352. package/dist/runner/src/composition/verify.d.ts.map +1 -0
  353. package/dist/runner/src/credential-notice.d.ts +14 -0
  354. package/dist/runner/src/credential-notice.d.ts.map +1 -0
  355. package/dist/runner/src/environment.d.ts.map +1 -1
  356. package/dist/runner/src/final-text.d.ts +17 -0
  357. package/dist/runner/src/final-text.d.ts.map +1 -0
  358. package/dist/runner/src/index.d.ts +2 -0
  359. package/dist/runner/src/index.d.ts.map +1 -1
  360. package/dist/runner/src/resource-handler.d.ts.map +1 -1
  361. package/dist/runner/src/serve.d.ts +13 -0
  362. package/dist/runner/src/serve.d.ts.map +1 -1
  363. package/dist/runner/src/session-builder.d.ts.map +1 -1
  364. package/dist/runner/src/session.d.ts +2 -0
  365. package/dist/runner/src/session.d.ts.map +1 -1
  366. package/dist/runner/src/ws-auth-warning.d.ts +17 -0
  367. package/dist/runner/src/ws-auth-warning.d.ts.map +1 -0
  368. package/dist/sdk/asset-manager.js +18 -18
  369. package/dist/sdk/bridge.js +14 -14
  370. package/dist/sdk/core.js +9 -9
  371. package/dist/sdk/flow.js +11 -11
  372. package/dist/sdk/index.js +38 -36
  373. package/dist/sdk/index.js.map +1 -1
  374. package/dist/sdk/resolver.js +10 -10
  375. package/dist/sdk/runner.js +35 -35
  376. package/dist/sdk/src/local-runtime.d.ts.map +1 -1
  377. package/dist/sdk/transport/ws/client.js +1 -1
  378. package/dist/sdk/transport/ws/server.js +1 -1
  379. package/dist/sdk/transport/ws.js +2 -2
  380. package/dist/sdk/transport.js +2 -2
  381. package/dist/serve-preflight-F7MYF747.js +64 -0
  382. package/dist/serve-preflight-F7MYF747.js.map +1 -0
  383. package/dist/{setup-7DQJKHUI.js → setup-L632QIHV.js} +26 -26
  384. package/dist/{setup-7DQJKHUI.js.map → setup-L632QIHV.js.map} +1 -1
  385. package/dist/skills-OY3Y5GKA.js +26 -0
  386. package/dist/{skills-NUEN5NDX.js.map → skills-OY3Y5GKA.js.map} +1 -1
  387. package/dist/source-36FHMN5V.js +42 -0
  388. package/dist/{source-G2LV5LVD.js.map → source-36FHMN5V.js.map} +1 -1
  389. package/dist/source-fetch-github-PIO6EMMF.js +4 -0
  390. package/dist/{source-fetch-github-QN4LLTL5.js.map → source-fetch-github-PIO6EMMF.js.map} +1 -1
  391. package/dist/{source-manifest-publish-6RM7SWLZ.js → source-manifest-publish-NIXJSJ22.js} +30 -28
  392. package/dist/source-manifest-publish-NIXJSJ22.js.map +1 -0
  393. package/dist/transport/index.js +2 -2
  394. package/dist/transport/src/ws/client.d.ts +6 -0
  395. package/dist/transport/src/ws/client.d.ts.map +1 -1
  396. package/dist/transport/src/ws/server.d.ts +4 -0
  397. package/dist/transport/src/ws/server.d.ts.map +1 -1
  398. package/dist/transport/ws/client.js +1 -1
  399. package/dist/transport/ws/server.js +1 -1
  400. package/dist/transport/ws.js +2 -2
  401. package/dist/tui/index.js +77 -50
  402. package/dist/tui/index.js.map +1 -1
  403. package/dist/tui/src/repl-session.d.ts +1 -1
  404. package/dist/tui/src/repl-session.d.ts.map +1 -1
  405. package/dist/tui/src/repl.d.ts +3 -0
  406. package/dist/tui/src/repl.d.ts.map +1 -1
  407. package/dist/types/manifests.js +1 -1
  408. package/dist/types/src/lifecycle.d.ts +2 -1
  409. package/dist/types/src/lifecycle.d.ts.map +1 -1
  410. package/dist/types/src/manifests/agent-composition.d.ts +20 -0
  411. package/dist/types/src/manifests/agent-composition.d.ts.map +1 -1
  412. package/dist/types/src/manifests/agent.d.ts.map +1 -1
  413. package/dist/types/src/manifests/cron.d.ts +15 -0
  414. package/dist/types/src/manifests/cron.d.ts.map +1 -0
  415. package/dist/types/src/manifests/index.d.ts +3 -2
  416. package/dist/types/src/manifests/index.d.ts.map +1 -1
  417. package/dist/types/src/manifests/preset.d.ts +6 -1
  418. package/dist/types/src/manifests/preset.d.ts.map +1 -1
  419. package/dist/workspace-plugin/adapters/mcp.js +25 -25
  420. package/dist/workspace-plugin/adapters/omp.js +106 -51
  421. package/dist/workspace-plugin/adapters/omp.js.map +1 -1
  422. package/dist/workspace-plugin/index.js +2 -2
  423. package/dist/workspace-plugin/src/adapters/claude-code.d.ts.map +1 -1
  424. package/dist/workspace-plugin/src/adapters/omp.d.ts +11 -2
  425. package/dist/workspace-plugin/src/adapters/omp.d.ts.map +1 -1
  426. package/package.json +1 -1
  427. package/dist/asset-feeds-CXGQIDFR.js.map +0 -1
  428. package/dist/chunk-2F5AWQX5.js.map +0 -1
  429. package/dist/chunk-3SM2DL2T.js.map +0 -1
  430. package/dist/chunk-47U4GZ4M.js.map +0 -1
  431. package/dist/chunk-5LKOAX7I.js.map +0 -1
  432. package/dist/chunk-6O2X3GPW.js.map +0 -1
  433. package/dist/chunk-ALEYHUC5.js.map +0 -1
  434. package/dist/chunk-CGYEHQOX.js.map +0 -1
  435. package/dist/chunk-CJERAGFY.js.map +0 -1
  436. package/dist/chunk-CPSIPIX7.js.map +0 -1
  437. package/dist/chunk-D3B36CYC.js.map +0 -1
  438. package/dist/chunk-DZMNFCWB.js.map +0 -1
  439. package/dist/chunk-EDYHEMJA.js.map +0 -1
  440. package/dist/chunk-FH7W6TJ4.js.map +0 -1
  441. package/dist/chunk-GV4DZ6MT.js.map +0 -1
  442. package/dist/chunk-HZXUXHIV.js.map +0 -1
  443. package/dist/chunk-J4RBUFGM.js.map +0 -1
  444. package/dist/chunk-NWDSLXOX.js.map +0 -1
  445. package/dist/chunk-OBYKJB4U.js.map +0 -1
  446. package/dist/chunk-PBBPZYVG.js.map +0 -1
  447. package/dist/chunk-PMECEZK3.js.map +0 -1
  448. package/dist/chunk-R7FOF242.js +0 -59
  449. package/dist/chunk-R7FOF242.js.map +0 -1
  450. package/dist/chunk-R7NHYEJF.js.map +0 -1
  451. package/dist/chunk-RYYLMBA2.js +0 -392
  452. package/dist/chunk-RYYLMBA2.js.map +0 -1
  453. package/dist/chunk-SBSA3IQA.js.map +0 -1
  454. package/dist/chunk-VLTQGE2E.js.map +0 -1
  455. package/dist/chunk-WSBKB4CJ.js.map +0 -1
  456. package/dist/chunk-YOH2L76X.js +0 -505
  457. package/dist/chunk-YOH2L76X.js.map +0 -1
  458. package/dist/chunk-ZCAJZ4B2.js.map +0 -1
  459. package/dist/chunk-ZPWTOUTK.js.map +0 -1
  460. package/dist/flows-EQF2CH4U.js +0 -26
  461. package/dist/helpers-CFK6YP6R.js +0 -34
  462. package/dist/library-publish-53UTB3MB.js.map +0 -1
  463. package/dist/open-library-BOSPJVID.js +0 -40
  464. package/dist/open-registry-4FI7HKET.js +0 -32
  465. package/dist/paths-SUS4S4YT.js +0 -22
  466. package/dist/plugin-store-AGQDMING.js +0 -149
  467. package/dist/plugin-store-AGQDMING.js.map +0 -1
  468. package/dist/project-I55A4O2T.js +0 -41
  469. package/dist/skills-NUEN5NDX.js +0 -26
  470. package/dist/source-G2LV5LVD.js +0 -41
  471. package/dist/source-fetch-github-QN4LLTL5.js +0 -4
  472. package/dist/source-manifest-publish-6RM7SWLZ.js.map +0 -1
@@ -1,25 +1,25 @@
1
1
  import { driverSessionConfigHome, removeSessionConfigFile, writeSessionConfigFile } from '../../chunk-EAZECHPM.js';
2
- import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-Y3HTGHJC.js';
3
- import { resolveEnvDriverSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-CPWLNZGJ.js';
2
+ import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-AHCI4V5L.js';
3
+ import { resolveEnvDriverSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-4DLQESIY.js';
4
4
  import '../../chunk-B4X2N7JQ.js';
5
5
  import '../../chunk-YROR332M.js';
6
- import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, entryCredentialValue, registryDriverConfig, providerCredentialEnvName } from '../../chunk-47U4GZ4M.js';
6
+ import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, entryCredentialValue, registryDriverConfig, providerCredentialEnvName } from '../../chunk-BVJU2GKE.js';
7
7
  import '../../chunk-6E6PKKAD.js';
8
- import '../../chunk-PBBPZYVG.js';
8
+ import '../../chunk-BF422IDP.js';
9
9
  import '../../chunk-4GY63JU6.js';
10
- import '../../chunk-EDYHEMJA.js';
11
- import '../../chunk-PMECEZK3.js';
10
+ import '../../chunk-QO7CR3KB.js';
11
+ import '../../chunk-D54T2F54.js';
12
12
  import '../../chunk-5BEFNLOR.js';
13
13
  import '../../chunk-A2ULN3KX.js';
14
- import '../../chunk-ALEYHUC5.js';
14
+ import '../../chunk-L3ZGYSWY.js';
15
15
  import '../../chunk-L5VSIPQD.js';
16
- import '../../chunk-CPSIPIX7.js';
17
- import '../../chunk-ZPWTOUTK.js';
16
+ import '../../chunk-IG5LZ3WU.js';
17
+ import '../../chunk-IY5E7Y5W.js';
18
18
  import '../../chunk-RVRB27AN.js';
19
- import '../../chunk-SBSA3IQA.js';
20
- import '../../chunk-BNMZVPYA.js';
19
+ import '../../chunk-M3P4BYRK.js';
20
+ import '../../chunk-J4OYIYFQ.js';
21
21
  import '../../chunk-ICSCSM5D.js';
22
- import '../../chunk-DALV4HHP.js';
22
+ import '../../chunk-DKXNKFKP.js';
23
23
  import { parseModelRef } from '../../chunk-MJHSLODD.js';
24
24
  import '../../chunk-C3CAXQMA.js';
25
25
  import '../../chunk-BOFL7GIF.js';
@@ -1,9 +1,9 @@
1
1
  import { dispatchCapability } from '../../chunk-2H73V6XR.js';
2
- import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryDriverConfig } from '../../chunk-47U4GZ4M.js';
2
+ import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryDriverConfig } from '../../chunk-BVJU2GKE.js';
3
3
  import '../../chunk-6E6PKKAD.js';
4
4
  import '../../chunk-F4NJDSR7.js';
5
5
  import '../../chunk-ICSCSM5D.js';
6
- import '../../chunk-DALV4HHP.js';
6
+ import '../../chunk-DKXNKFKP.js';
7
7
  import '../../chunk-MJHSLODD.js';
8
8
  import '../../chunk-C3CAXQMA.js';
9
9
  import '../../chunk-BOFL7GIF.js';
@@ -1,14 +1,14 @@
1
- export { GeminiDriver, GeminiFamilyDriver, geminiDriverTarget } from '../../chunk-XUSALIEI.js';
2
- import '../../chunk-Y3HTGHJC.js';
3
- import '../../chunk-CPWLNZGJ.js';
4
- import '../../chunk-M3B6EIJD.js';
1
+ export { GeminiDriver, GeminiFamilyDriver, geminiDriverTarget } from '../../chunk-7SMP4GNW.js';
2
+ import '../../chunk-AHCI4V5L.js';
3
+ import '../../chunk-4DLQESIY.js';
4
+ import '../../chunk-B7CZYFB2.js';
5
5
  import '../../chunk-B4X2N7JQ.js';
6
6
  import '../../chunk-YROR332M.js';
7
- import '../../chunk-47U4GZ4M.js';
7
+ import '../../chunk-BVJU2GKE.js';
8
8
  import '../../chunk-6E6PKKAD.js';
9
- import '../../chunk-ZCAJZ4B2.js';
9
+ import '../../chunk-57SF6W6E.js';
10
10
  import '../../chunk-ICSCSM5D.js';
11
- import '../../chunk-DALV4HHP.js';
11
+ import '../../chunk-DKXNKFKP.js';
12
12
  import '../../chunk-MJHSLODD.js';
13
13
  import '../../chunk-C3CAXQMA.js';
14
14
  import '../../chunk-BOFL7GIF.js';
@@ -1,25 +1,25 @@
1
1
  import { driverSessionConfigHome, pruneSessionConfigDir, writeSessionConfigFile } from '../../chunk-EAZECHPM.js';
2
- import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-Y3HTGHJC.js';
3
- import { resolveEnvDriverSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-CPWLNZGJ.js';
2
+ import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-AHCI4V5L.js';
3
+ import { resolveEnvDriverSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-4DLQESIY.js';
4
4
  import '../../chunk-B4X2N7JQ.js';
5
5
  import '../../chunk-YROR332M.js';
6
- import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, registryDriverConfig, providerCredentialEnvName } from '../../chunk-47U4GZ4M.js';
6
+ import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, registryDriverConfig, providerCredentialEnvName } from '../../chunk-BVJU2GKE.js';
7
7
  import '../../chunk-6E6PKKAD.js';
8
- import '../../chunk-PBBPZYVG.js';
8
+ import '../../chunk-BF422IDP.js';
9
9
  import '../../chunk-4GY63JU6.js';
10
- import '../../chunk-EDYHEMJA.js';
11
- import '../../chunk-PMECEZK3.js';
10
+ import '../../chunk-QO7CR3KB.js';
11
+ import '../../chunk-D54T2F54.js';
12
12
  import '../../chunk-5BEFNLOR.js';
13
13
  import '../../chunk-A2ULN3KX.js';
14
- import '../../chunk-ALEYHUC5.js';
14
+ import '../../chunk-L3ZGYSWY.js';
15
15
  import '../../chunk-L5VSIPQD.js';
16
- import '../../chunk-CPSIPIX7.js';
17
- import '../../chunk-ZPWTOUTK.js';
16
+ import '../../chunk-IG5LZ3WU.js';
17
+ import '../../chunk-IY5E7Y5W.js';
18
18
  import '../../chunk-RVRB27AN.js';
19
- import '../../chunk-SBSA3IQA.js';
20
- import '../../chunk-BNMZVPYA.js';
19
+ import '../../chunk-M3P4BYRK.js';
20
+ import '../../chunk-J4OYIYFQ.js';
21
21
  import '../../chunk-ICSCSM5D.js';
22
- import '../../chunk-DALV4HHP.js';
22
+ import '../../chunk-DKXNKFKP.js';
23
23
  import '../../chunk-MJHSLODD.js';
24
24
  import '../../chunk-C3CAXQMA.js';
25
25
  import '../../chunk-BOFL7GIF.js';
@@ -1,25 +1,26 @@
1
1
  import { checkToolInputSchema } from '../../chunk-X5O56UO4.js';
2
- import { entrySurface } from '../../chunk-CPWLNZGJ.js';
2
+ import { entrySurface } from '../../chunk-4DLQESIY.js';
3
3
  import { dispatchCapability } from '../../chunk-2H73V6XR.js';
4
4
  import { ReconfigureLedger, stripRunnerPrivateEnv, classifyGenericErrorMessage } from '../../chunk-B4X2N7JQ.js';
5
5
  import { wrapAgentCommand, resolveAgentExec } from '../../chunk-YROR332M.js';
6
- import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, TOOL_ALLOWLIST_UNSUPPORTED, registryDriverConfig, entryCredentialValue, providerCredentialEnvName } from '../../chunk-47U4GZ4M.js';
6
+ import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, TOOL_ALLOWLIST_UNSUPPORTED, registryDriverConfig, unresolvedProviderCredentials, entryCredentialValue, providerCredentialEnvName } from '../../chunk-BVJU2GKE.js';
7
7
  import '../../chunk-6E6PKKAD.js';
8
8
  import { withActivityLabelJsonSchema } from '../../chunk-F4NJDSR7.js';
9
9
  import '../../chunk-ICSCSM5D.js';
10
- import '../../chunk-DALV4HHP.js';
10
+ import '../../chunk-DKXNKFKP.js';
11
11
  import { AI_PROVIDER_SURFACES, registryEntries, isEntryEnabled, parseModelRef, normalizeEntryBaseUrl, resolveEntryBaseUrl } from '../../chunk-MJHSLODD.js';
12
12
  import '../../chunk-C3CAXQMA.js';
13
13
  import '../../chunk-BOFL7GIF.js';
14
14
  import '../../chunk-NSBPE2FW.js';
15
15
  import { spawn } from 'child_process';
16
+ import { randomUUID, createHash } from 'crypto';
17
+ import { rmSync } from 'fs';
16
18
  import fs from 'fs/promises';
17
19
  import path from 'path';
18
20
  import { createInterface } from 'readline';
19
21
  import * as z from 'zod';
20
- import { createHash } from 'crypto';
21
22
  import os from 'os';
22
- import { parse, stringify } from 'yaml';
23
+ import { stringify, parse } from 'yaml';
23
24
 
24
25
  var OMP_API_VALUES = [...AI_PROVIDER_SURFACES, "google-gemini-cli"];
25
26
  var OMP_DISCOVERY_TYPES = [
@@ -42,6 +43,20 @@ var OWNED_AGENT_DIR_FILES = {
42
43
  "config.yaml.lock": true,
43
44
  "settings.json": true
44
45
  };
46
+ var OMP_RUNTIME_ENTRIES = {
47
+ "agent.db": true,
48
+ "agent.db-shm": true,
49
+ "agent.db-wal": true,
50
+ "models.db": true,
51
+ "models.db-shm": true,
52
+ "models.db-wal": true,
53
+ "skill-descriptions.db": true,
54
+ "skill-descriptions.db-shm": true,
55
+ "skill-descriptions.db-wal": true,
56
+ "custom-session-files": true,
57
+ intercom: true,
58
+ sessions: true
59
+ };
45
60
  function entryModelIds(entry) {
46
61
  const logical = /* @__PURE__ */ new Set([
47
62
  ...Object.keys(entry.model_map ?? {}),
@@ -159,9 +174,17 @@ function renderOmpRegistry(registry, options = {}) {
159
174
  const providers = {};
160
175
  const providerIds = [];
161
176
  const credentialEnv = {};
177
+ const unresolved = new Map(
178
+ unresolvedProviderCredentials(registry, options).map((u) => [u.providerId, u.reason])
179
+ );
162
180
  for (const [id, entry] of registryEntries(registry)) {
163
181
  if (entry.kind !== "llm" && entry.kind !== "embed") continue;
164
182
  if (!isEntryEnabled(entry)) continue;
183
+ const reason = unresolved.get(id);
184
+ if (reason) {
185
+ warnings.push(`provider '${id}' omitted from models.yml: ${reason}`);
186
+ continue;
187
+ }
165
188
  const block = renderProvider(id, entry, warnings);
166
189
  if (!block) continue;
167
190
  providers[id] = block;
@@ -270,26 +293,71 @@ async function materializeOmpProviders(config) {
270
293
  ([, entry]) => (entry.kind === "llm" || entry.kind === "embed") && isEntryEnabled(entry)
271
294
  );
272
295
  if (!selectable) return void 0;
296
+ const env = { ...process.env, ...config.env };
297
+ const selected = config.modelRef ? parseModelRef(config.modelRef, registry, config.roles) : void 0;
298
+ const usable = renderOmpRegistry(registry, {
299
+ env,
300
+ ...config.roles ? { roles: config.roles } : {},
301
+ ...config.modelRef ? { modelRef: config.modelRef } : {}
302
+ }).providerIds;
303
+ if (usable.length === 0) return void 0;
304
+ if (selected && !usable.includes(selected.providerId)) return void 0;
273
305
  const plan = await planOmpAgentDir({
274
306
  cwd: config.cwd,
275
307
  ...config.sessionId ? { sessionId: config.sessionId } : {},
276
308
  ...config.driverOptions?.omp ? { options: config.driverOptions.omp } : {}
277
309
  });
278
310
  const rendered = await materializeOmpAgentDir(plan.agentDir, registry, {
279
- env: { ...process.env, ...config.env },
311
+ env,
280
312
  ...plan.seedFrom ? { seedFrom: plan.seedFrom } : {},
281
313
  ...config.agentDir ? { identityDir: config.agentDir } : {},
282
314
  ...config.roles ? { roles: config.roles } : {},
283
315
  ...config.modelRef ? { modelRef: config.modelRef } : {}
284
316
  });
285
- const selected = config.modelRef ? parseModelRef(config.modelRef, registry, config.roles) : void 0;
286
317
  return {
287
318
  ...rendered,
288
319
  ...selected?.providerModelId ? { modelArg: `${selected.providerId}/${selected.providerModelId}` } : {}
289
320
  };
290
321
  }
322
+ async function materializeOmpIdentityDir(config) {
323
+ const identityDir = config.agentDir;
324
+ if (!identityDir) return void 0;
325
+ const agentKey = createHash("sha256").update(`${path.resolve(identityDir)}\0${path.resolve(config.cwd)}`).digest("hex").slice(0, 12);
326
+ const plan = await planOmpAgentDir({
327
+ cwd: config.cwd,
328
+ sessionId: `${config.sessionId?.trim() || "agent"}-${agentKey}`,
329
+ ...config.driverOptions?.omp ? { options: config.driverOptions.omp } : {}
330
+ });
331
+ await fs.mkdir(plan.agentDir, { recursive: true });
332
+ const seeded = plan.seedFrom ? await linkInto(plan.agentDir, plan.seedFrom, OWNED_AGENT_DIR_FILES) : [];
333
+ if (plan.seedFrom) {
334
+ for (const name of Object.keys(OWNED_AGENT_DIR_FILES)) {
335
+ const from = path.join(plan.seedFrom, name);
336
+ try {
337
+ if (!(await fs.stat(from)).isFile()) continue;
338
+ } catch {
339
+ continue;
340
+ }
341
+ const to = path.join(plan.agentDir, name);
342
+ await removeEntry(to);
343
+ await fs.copyFile(from, to);
344
+ }
345
+ }
346
+ const identity = await linkInto(plan.agentDir, identityDir, {
347
+ ...OWNED_AGENT_DIR_FILES,
348
+ ...OMP_RUNTIME_ENTRIES
349
+ });
350
+ return { agentDir: plan.agentDir, seeded, identity };
351
+ }
291
352
 
292
353
  // bridge/src/drivers/omp.ts
354
+ function ompCredentialMessage(msg) {
355
+ const match = /^No API key found for ([A-Za-z0-9._-]+?)\.?(?:\s|$)/.exec(msg);
356
+ if (!match) return msg;
357
+ const provider = match[1];
358
+ const envName = `${provider.toUpperCase().replace(/[^A-Z0-9]/g, "_")}_API_KEY`;
359
+ return `No API key found for ${provider}. Add the provider with \`skaile providers add ${provider} --credential env:${envName}\`, or log in once with \`omp\` (type /login).`;
360
+ }
293
361
  var OMP_BASE_ENV_KEYS = ["PATH", "HOME", "USER", "HOSTNAME", "SKAILE_SESSION_ID"];
294
362
  function buildOmpChildEnv(parent) {
295
363
  const out = {};
@@ -426,6 +494,16 @@ function splitOmpModel(model) {
426
494
  }
427
495
  return void 0;
428
496
  }
497
+ function ompStartFailureCause(lines) {
498
+ const clean = lines.map((l) => l.replace(/\u001b\[[0-9;]*m/g, "").trim()).filter(Boolean);
499
+ const isCause = (l) => /\b(error|no default model|not (?:found|installed|logged)|invalid|unauthori[sz]ed|cannot|can't|failed)\b/i.test(
500
+ l
501
+ ) && !/failed to load extension/i.test(l);
502
+ for (let i = clean.length - 1; i >= 0; i--) {
503
+ if (isCause(clean[i])) return clean[i];
504
+ }
505
+ return clean.at(-1) ?? "";
506
+ }
429
507
  var OmpDriver = class extends AgentDriver {
430
508
  driverInfo = {
431
509
  id: "omp",
@@ -459,6 +537,8 @@ var OmpDriver = class extends AgentDriver {
459
537
  _lastContextTokens = null;
460
538
  /** Context window of the active model, from `get_state.contextUsage`. */
461
539
  _contextWindow = null;
540
+ /** Per-spawn file holding the system prompt omp was started with; removed with the process. */
541
+ systemPromptFile = null;
462
542
  getTokenUsage() {
463
543
  return this._lastTokens;
464
544
  }
@@ -507,6 +587,8 @@ var OmpDriver = class extends AgentDriver {
507
587
  * a single agent loop). Never rejects.
508
588
  */
509
589
  promptTail = Promise.resolve();
590
+ /** `true` while `agent_end` is being delivered to listeners. */
591
+ turnEnded = false;
510
592
  get runtimeSessionId() {
511
593
  return this._ompSessionId;
512
594
  }
@@ -593,8 +675,8 @@ var OmpDriver = class extends AgentDriver {
593
675
  * @param config - Driver configuration. omp-relevant fields:
594
676
  * - `cwd` — working directory; omp session files are stored under `<cwd>/.omp/sessions/`.
595
677
  * - `model` — forwarded as `--model <selector>`. In registry mode `modelRef` takes precedence at spawn; `reconfigure({ model })` keeps both in step.
596
- * - `systemPrompt` — written to `<cwd>/.omp/system.md` and appended via `--append-system-prompt`.
597
- * - `agentDir` — sets `PI_CODING_AGENT_DIR`; omp reads agent identity from this directory.
678
+ * - `systemPrompt` — written to a per-spawn file under `<cwd>/.skaile/cache/omp-system/` and appended via `--append-system-prompt`.
679
+ * - `agentDir` — its entries are linked into omp's private home (`PI_CODING_AGENT_DIR`); the directory itself is never omp's home.
598
680
  * - `sshKeyPath` — injected as `GIT_SSH_COMMAND` for authenticated git operations.
599
681
  * - `resumeSessionId` — omp session UUID to restore via `--session <id>`.
600
682
  */
@@ -613,7 +695,10 @@ var OmpDriver = class extends AgentDriver {
613
695
  async start() {
614
696
  if (this.startPromise) return this.startPromise;
615
697
  if (this.proc) return;
616
- this.startPromise = this._start();
698
+ this.startPromise = this._start().catch((err) => {
699
+ this.removeSystemPromptFile();
700
+ throw err;
701
+ });
617
702
  return this.startPromise;
618
703
  }
619
704
  async _start() {
@@ -628,18 +713,14 @@ var OmpDriver = class extends AgentDriver {
628
713
  const providers = await materializeOmpProviders(this.config);
629
714
  if (providers) {
630
715
  for (const warning of providers.warnings) this.log.warn("registry", { warning });
631
- if (providers.providerIds.length === 0) {
632
- this.log.error("registry rendered no omp providers", new Error("empty models.yml"), {
633
- agentDir: providers.agentDir
634
- });
635
- } else {
636
- this.log.info("rendered omp models.yml", {
637
- agentDir: providers.agentDir,
638
- providers: providers.providerIds,
639
- modelRoles: providers.modelRoles,
640
- seeded: providers.seeded.length
641
- });
642
- }
716
+ this.log.info("rendered omp models.yml", {
717
+ agentDir: providers.agentDir,
718
+ providers: providers.providerIds,
719
+ modelRoles: providers.modelRoles,
720
+ seeded: providers.seeded.length
721
+ });
722
+ } else if (this.config.registry) {
723
+ this.log.info("registry gives omp no usable provider; omp uses its own login");
643
724
  }
644
725
  const modelArg = providers?.modelArg ?? this.config.model;
645
726
  if (modelArg) args.push("--model", modelArg);
@@ -657,11 +738,13 @@ var OmpDriver = class extends AgentDriver {
657
738
  this.log.info("applying tool restrictions", { args: toolArgs });
658
739
  args.push(...toolArgs);
659
740
  }
741
+ this.removeSystemPromptFile();
660
742
  if (this.config.systemPrompt) {
661
- const ompDir = path.join(this.config.cwd, ".omp");
662
- await fs.mkdir(ompDir, { recursive: true });
663
- const systemFile = path.join(ompDir, "system.md");
743
+ const promptDir = path.join(this.config.cwd, ".skaile", "cache", "omp-system");
744
+ await fs.mkdir(promptDir, { recursive: true });
745
+ const systemFile = path.join(promptDir, `${randomUUID()}.md`);
664
746
  await fs.writeFile(systemFile, this.config.systemPrompt);
747
+ this.systemPromptFile = systemFile;
665
748
  args.push("--append-system-prompt", systemFile);
666
749
  }
667
750
  const env = this.config.env ? { ...this.config.env } : buildOmpChildEnv(process.env);
@@ -669,7 +752,11 @@ var OmpDriver = class extends AgentDriver {
669
752
  env.PI_CODING_AGENT_DIR = providers.agentDir;
670
753
  Object.assign(env, providers.credentialEnv);
671
754
  } else if (this.config.agentDir) {
672
- env.PI_CODING_AGENT_DIR = this.config.agentDir;
755
+ const home = await materializeOmpIdentityDir(this.config);
756
+ if (home) {
757
+ this.log.info("omp home for the agent", { agentDir: home.agentDir });
758
+ env.PI_CODING_AGENT_DIR = home.agentDir;
759
+ }
673
760
  }
674
761
  if (this.config.sshKeyPath) {
675
762
  env.GIT_SSH_COMMAND = `ssh -i "${this.config.sshKeyPath}" -o StrictHostKeyChecking=accept-new`;
@@ -734,7 +821,7 @@ var OmpDriver = class extends AgentDriver {
734
821
  clearTimeout(fallback);
735
822
  reject(
736
823
  new Error(
737
- `omp exited before it was ready (${code !== null ? `exit code ${code}` : `signal ${signal}`})${startStderr.length > 0 ? `: ${startStderr.slice(-10).join("\n")}` : ""}`
824
+ `omp exited before it was ready (${code !== null ? `exit code ${code}` : `signal ${signal}`})${startStderr.length > 0 ? `: ${ompStartFailureCause(startStderr)}` : ""}`
738
825
  )
739
826
  );
740
827
  };
@@ -765,7 +852,7 @@ var OmpDriver = class extends AgentDriver {
765
852
  if (proc.stderr) {
766
853
  const stderrRl = createInterface({ input: proc.stderr });
767
854
  stderrRl.on("line", (line) => {
768
- this.log.warn("stderr", { line });
855
+ this.log.warn(`stderr: ${line}`);
769
856
  this.stderrBuffer.push(line);
770
857
  if (this.stderrBuffer.length > 20) this.stderrBuffer.shift();
771
858
  startStderr.push(line);
@@ -1213,8 +1300,14 @@ var OmpDriver = class extends AgentDriver {
1213
1300
  if (event.type === "agent_end") {
1214
1301
  void this.captureState();
1215
1302
  }
1216
- this.emit("agent-event", event);
1217
- if (event.type === "agent_end") {
1303
+ const turnEnded = event.type === "agent_end";
1304
+ this.turnEnded = turnEnded;
1305
+ try {
1306
+ this.emit("agent-event", event);
1307
+ } finally {
1308
+ this.turnEnded = false;
1309
+ }
1310
+ if (turnEnded) {
1218
1311
  this.resolveTurn();
1219
1312
  }
1220
1313
  }
@@ -1511,7 +1604,8 @@ ${input.text}` : input.text;
1511
1604
  kill() {
1512
1605
  const proc = this.proc;
1513
1606
  if (!proc) return;
1514
- this.rejectTurn(new Error("omp process killed"));
1607
+ if (this.turnEnded) this.resolveTurn();
1608
+ else this.rejectTurn(new Error("omp process killed"));
1515
1609
  proc.kill("SIGTERM");
1516
1610
  this.cleanup();
1517
1611
  }
@@ -1547,7 +1641,8 @@ ${input.text}` : input.text;
1547
1641
  hint: "An unexpected process error occurred. Try sending your prompt again."
1548
1642
  };
1549
1643
  }
1550
- classifyErrorMessage(msg) {
1644
+ classifyErrorMessage(rawMsg) {
1645
+ const msg = ompCredentialMessage(rawMsg);
1551
1646
  const generic = classifyGenericErrorMessage(msg);
1552
1647
  if (!generic) return { message: msg, category: "unknown", retryable: true };
1553
1648
  const lower = msg.toLowerCase();
@@ -1576,7 +1671,14 @@ ${input.text}` : input.text;
1576
1671
  async listModels() {
1577
1672
  return registryModelEntries(this.config.registry);
1578
1673
  }
1674
+ /** Delete the system prompt file of the process that is gone (or about to be replaced). */
1675
+ removeSystemPromptFile() {
1676
+ const file = this.systemPromptFile;
1677
+ this.systemPromptFile = null;
1678
+ if (file) rmSync(file, { force: true });
1679
+ }
1579
1680
  cleanup() {
1681
+ this.removeSystemPromptFile();
1580
1682
  this.rl?.close();
1581
1683
  this.rl = null;
1582
1684
  this.proc = null;
@@ -1608,6 +1710,6 @@ var ompDriverTarget = {
1608
1710
  }).listModels()
1609
1711
  };
1610
1712
 
1611
- export { OMP_BUILTIN_TOOLS, OMP_DEFAULT_TOOLS, OMP_THINKING_LEVELS, OmpDriver, buildOmpChildEnv, buildOmpHostTools, buildOmpToolArgs, ompDriverTarget, ompThinkingLevel, splitOmpModel };
1713
+ export { OMP_BUILTIN_TOOLS, OMP_DEFAULT_TOOLS, OMP_THINKING_LEVELS, OmpDriver, buildOmpChildEnv, buildOmpHostTools, buildOmpToolArgs, ompCredentialMessage, ompDriverTarget, ompStartFailureCause, ompThinkingLevel, splitOmpModel };
1612
1714
  //# sourceMappingURL=omp.js.map
1613
1715
  //# sourceMappingURL=omp.js.map