@skaile/workspaces 0.21.0 → 0.22.0-beta.1

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 (333) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/dist/{asset-feeds-CI76R7FI.js → asset-feeds-QXCSAJRN.js} +11 -11
  3. package/dist/{asset-feeds-CI76R7FI.js.map → asset-feeds-QXCSAJRN.js.map} +1 -1
  4. package/dist/asset-manager/catalog-deployer.d.ts +2 -0
  5. package/dist/asset-manager/contrib.d.ts +2 -0
  6. package/dist/asset-manager/fragments.d.ts +2 -0
  7. package/dist/asset-manager/history.d.ts +2 -0
  8. package/dist/asset-manager/index.d.ts +2 -0
  9. package/dist/asset-manager/index.js +9 -9
  10. package/dist/asset-manager/installer.d.ts +2 -0
  11. package/dist/asset-manager/installer.js +8 -8
  12. package/dist/asset-manager/renderers.d.ts +2 -0
  13. package/dist/asset-manager/src/index.d.ts +18 -7
  14. package/dist/asset-manager/src/index.d.ts.map +1 -1
  15. package/dist/asset-manager/src/installer.d.ts +3 -3
  16. package/dist/asset-manager/src/installer.d.ts.map +1 -1
  17. package/dist/base-assets/connectors/deploy.d.ts +2 -0
  18. package/dist/base-assets/connectors/deploy.js +10 -9
  19. package/dist/base-assets/connectors/devserver.d.ts +2 -0
  20. package/dist/base-assets/connectors/devserver.js +10 -9
  21. package/dist/base-assets/connectors/flow/adapter.js +10 -9
  22. package/dist/base-assets/connectors/flow/engine.d.ts +2 -0
  23. package/dist/base-assets/connectors/flow/run-flow.js +11 -10
  24. package/dist/base-assets/connectors/flow.d.ts +2 -0
  25. package/dist/base-assets/connectors/flow.js +10 -9
  26. package/dist/base-assets/connectors/git.d.ts +2 -0
  27. package/dist/base-assets/connectors/git.js +10 -9
  28. package/dist/base-assets/connectors/gmail.d.ts +2 -0
  29. package/dist/base-assets/connectors/gmail.js +10 -9
  30. package/dist/base-assets/connectors/googledrive.d.ts +2 -0
  31. package/dist/base-assets/connectors/googledrive.js +10 -9
  32. package/dist/base-assets/connectors/local.d.ts +2 -0
  33. package/dist/base-assets/connectors/local.js +10 -9
  34. package/dist/base-assets/connectors/mattermost.d.ts +2 -0
  35. package/dist/base-assets/connectors/mattermost.js +10 -9
  36. package/dist/base-assets/connectors/memory.d.ts +2 -0
  37. package/dist/base-assets/connectors/memory.js +10 -9
  38. package/dist/base-assets/connectors/minio.d.ts +2 -0
  39. package/dist/base-assets/connectors/minio.js +10 -9
  40. package/dist/base-assets/connectors/postgres.d.ts +2 -0
  41. package/dist/base-assets/connectors/postgres.js +10 -9
  42. package/dist/base-assets/connectors/s3.d.ts +2 -0
  43. package/dist/base-assets/connectors/s3.js +10 -9
  44. package/dist/base-assets/connectors/sharepoint.d.ts +2 -0
  45. package/dist/base-assets/connectors/sharepoint.js +10 -9
  46. package/dist/base-assets/connectors/sqlite.d.ts +2 -0
  47. package/dist/base-assets/connectors/sqlite.js +10 -9
  48. package/dist/base-assets/connectors/static-server.d.ts +2 -0
  49. package/dist/base-assets/connectors/static-server.js +10 -9
  50. package/dist/base-assets/connectors/tunnel.d.ts +2 -0
  51. package/dist/base-assets/connectors/tunnel.js +10 -9
  52. package/dist/base-assets/connectors/webdav.d.ts +2 -0
  53. package/dist/base-assets/connectors/webdav.js +10 -9
  54. package/dist/base-assets/connectors/xstate-store.d.ts +2 -0
  55. package/dist/base-assets/connectors/xstate-store.js +10 -9
  56. package/dist/base-assets/connectors/xstate.d.ts +2 -0
  57. package/dist/base-assets/connectors/xstate.js +10 -9
  58. package/dist/bridge/drivers/claude-sdk.d.ts +2 -0
  59. package/dist/bridge/drivers/claude-sdk.js +13 -3
  60. package/dist/bridge/drivers/claude-sdk.js.map +1 -1
  61. package/dist/bridge/drivers/codex.d.ts +2 -0
  62. package/dist/bridge/drivers/codex.js +13 -3
  63. package/dist/bridge/drivers/codex.js.map +1 -1
  64. package/dist/bridge/drivers/echo.d.ts +2 -0
  65. package/dist/bridge/drivers/echo.js +13 -4
  66. package/dist/bridge/drivers/echo.js.map +1 -1
  67. package/dist/bridge/drivers/omp.d.ts +2 -0
  68. package/dist/bridge/drivers/omp.js +13 -3
  69. package/dist/bridge/drivers/omp.js.map +1 -1
  70. package/dist/bridge/index.d.ts +2 -0
  71. package/dist/bridge/index.js +3 -2
  72. package/dist/bridge/src/drivers/claude-sdk.d.ts +7 -0
  73. package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
  74. package/dist/bridge/src/drivers/codex.d.ts +7 -0
  75. package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
  76. package/dist/bridge/src/drivers/echo.d.ts +6 -0
  77. package/dist/bridge/src/drivers/echo.d.ts.map +1 -1
  78. package/dist/bridge/src/drivers/omp.d.ts +6 -0
  79. package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
  80. package/dist/bridge/src/registry.d.ts +34 -34
  81. package/dist/bridge/src/registry.d.ts.map +1 -1
  82. package/dist/{chunk-ZWIG55ZX.js → chunk-2XY6732A.js} +3 -3
  83. package/dist/{chunk-ZWIG55ZX.js.map → chunk-2XY6732A.js.map} +1 -1
  84. package/dist/{chunk-NCUTHLRV.js → chunk-3ECS5PFD.js} +4 -4
  85. package/dist/{chunk-NCUTHLRV.js.map → chunk-3ECS5PFD.js.map} +1 -1
  86. package/dist/{chunk-FRPKLIEZ.js → chunk-4AZKT2BU.js} +13 -13
  87. package/dist/chunk-4AZKT2BU.js.map +1 -0
  88. package/dist/chunk-6E6PKKAD.js +161 -0
  89. package/dist/chunk-6E6PKKAD.js.map +1 -0
  90. package/dist/{chunk-4ACWI5YT.js → chunk-6VTG73UY.js} +48 -36
  91. package/dist/chunk-6VTG73UY.js.map +1 -0
  92. package/dist/{chunk-H45ANMIU.js → chunk-APAOQLPT.js} +3 -3
  93. package/dist/{chunk-H45ANMIU.js.map → chunk-APAOQLPT.js.map} +1 -1
  94. package/dist/{chunk-4S4TZDCD.js → chunk-D7K72XEY.js} +3 -3
  95. package/dist/{chunk-4S4TZDCD.js.map → chunk-D7K72XEY.js.map} +1 -1
  96. package/dist/{chunk-2WVQMRIE.js → chunk-DKGDOALM.js} +5 -5
  97. package/dist/{chunk-2WVQMRIE.js.map → chunk-DKGDOALM.js.map} +1 -1
  98. package/dist/{chunk-DFUXWNTS.js → chunk-GFNW72LW.js} +17 -5
  99. package/dist/chunk-GFNW72LW.js.map +1 -0
  100. package/dist/{chunk-37JKX6D7.js → chunk-I3UEM3FX.js} +36 -8
  101. package/dist/chunk-I3UEM3FX.js.map +1 -0
  102. package/dist/{chunk-5QNQLSBW.js → chunk-J3VKAEQP.js} +514 -143
  103. package/dist/chunk-J3VKAEQP.js.map +1 -0
  104. package/dist/{chunk-BSY56QS7.js → chunk-JHF66MCK.js} +49 -3
  105. package/dist/chunk-JHF66MCK.js.map +1 -0
  106. package/dist/{chunk-XAVM2BAJ.js → chunk-LT4DLEYE.js} +114 -619
  107. package/dist/chunk-LT4DLEYE.js.map +1 -0
  108. package/dist/{chunk-S2OVTCAL.js → chunk-M5TE6YI5.js} +3 -3
  109. package/dist/{chunk-S2OVTCAL.js.map → chunk-M5TE6YI5.js.map} +1 -1
  110. package/dist/{chunk-RDH4SSMH.js → chunk-NJLHHZIW.js} +2 -2
  111. package/dist/{chunk-RDH4SSMH.js.map → chunk-NJLHHZIW.js.map} +1 -1
  112. package/dist/{chunk-XGWGLIHZ.js → chunk-PTIHB2TV.js} +5 -5
  113. package/dist/{chunk-XGWGLIHZ.js.map → chunk-PTIHB2TV.js.map} +1 -1
  114. package/dist/{chunk-W5DFC35Z.js → chunk-UMOENHVH.js} +279 -133
  115. package/dist/chunk-UMOENHVH.js.map +1 -0
  116. package/dist/{chunk-G4BR355S.js → chunk-V3QMSM5I.js} +38 -43
  117. package/dist/chunk-V3QMSM5I.js.map +1 -0
  118. package/dist/{chunk-DEQ3OOTU.js → chunk-VCYXVP2S.js} +263 -177
  119. package/dist/chunk-VCYXVP2S.js.map +1 -0
  120. package/dist/{chunk-KFDTS7RX.js → chunk-XIHFJVOD.js} +3 -3
  121. package/dist/{chunk-KFDTS7RX.js.map → chunk-XIHFJVOD.js.map} +1 -1
  122. package/dist/cli/index.d.ts +2 -0
  123. package/dist/cli/index.js +762 -472
  124. package/dist/cli/index.js.map +1 -1
  125. package/dist/cli/src/commands/deploy.d.ts +24 -0
  126. package/dist/cli/src/commands/deploy.d.ts.map +1 -0
  127. package/dist/cli/src/commands/integration.d.ts +19 -0
  128. package/dist/cli/src/commands/integration.d.ts.map +1 -0
  129. package/dist/cli/src/commands/manage.d.ts +1 -1
  130. package/dist/cli/src/commands/plugin-registry-cmd.d.ts +22 -0
  131. package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -0
  132. package/dist/cli/src/commands/project.d.ts.map +1 -1
  133. package/dist/cli/src/commands/serve.d.ts.map +1 -1
  134. package/dist/cli/src/commands/source.d.ts.map +1 -1
  135. package/dist/cli/src/commands/update.d.ts.map +1 -1
  136. package/dist/cli/src/ensure-sources.d.ts.map +1 -1
  137. package/dist/cli/src/plugin-store/index.d.ts +37 -0
  138. package/dist/cli/src/plugin-store/index.d.ts.map +1 -0
  139. package/dist/cli/src/plugin-store/load.d.ts +35 -0
  140. package/dist/cli/src/plugin-store/load.d.ts.map +1 -0
  141. package/dist/cli/src/plugin-store/paths.d.ts +23 -0
  142. package/dist/cli/src/plugin-store/paths.d.ts.map +1 -0
  143. package/dist/cli/src/plugin-store/reconcile.d.ts +50 -0
  144. package/dist/cli/src/plugin-store/reconcile.d.ts.map +1 -0
  145. package/dist/cli/src/plugin-store/spec.d.ts +25 -0
  146. package/dist/cli/src/plugin-store/spec.d.ts.map +1 -0
  147. package/dist/client/index.d.ts +2 -0
  148. package/dist/connectors/config.d.ts +2 -0
  149. package/dist/connectors/config.js +8 -8
  150. package/dist/connectors/index.d.ts +2 -0
  151. package/dist/connectors/index.js +10 -9
  152. package/dist/connectors/rclone-config.d.ts +2 -0
  153. package/dist/connectors/rclone.d.ts +2 -0
  154. package/dist/connectors/src/connector-manager.d.ts.map +1 -1
  155. package/dist/connectors/src/connector-registry.d.ts +42 -22
  156. package/dist/connectors/src/connector-registry.d.ts.map +1 -1
  157. package/dist/connectors/src/index.d.ts +2 -3
  158. package/dist/connectors/src/index.d.ts.map +1 -1
  159. package/dist/connectors-shared/index.d.ts +2 -0
  160. package/dist/connectors-shared/index.js +8 -0
  161. package/dist/connectors-shared/index.js.map +1 -0
  162. package/dist/connectors-shared/src/index.d.ts +11 -0
  163. package/dist/connectors-shared/src/index.d.ts.map +1 -0
  164. package/dist/connectors-shared/src/schemas.d.ts +10 -0
  165. package/dist/connectors-shared/src/schemas.d.ts.map +1 -0
  166. package/dist/connectors-shared/src/types.d.ts +11 -0
  167. package/dist/connectors-shared/src/types.d.ts.map +1 -0
  168. package/dist/core/discovery.d.ts +2 -0
  169. package/dist/core/driver-targets.d.ts +2 -0
  170. package/dist/core/framework.d.ts +2 -0
  171. package/dist/core/index.d.ts +2 -0
  172. package/dist/core/index.js +7 -7
  173. package/dist/core/logging.d.ts +2 -0
  174. package/dist/core/manifest.d.ts +2 -0
  175. package/dist/core/manifest.js +2 -2
  176. package/dist/core/models.d.ts +2 -0
  177. package/dist/core/models.js +1 -1
  178. package/dist/core/runtime-assets.d.ts +2 -0
  179. package/dist/core/runtime-assets.js +4 -4
  180. package/dist/core/src/index.d.ts +8 -6
  181. package/dist/core/src/index.d.ts.map +1 -1
  182. package/dist/core/src/lock.d.ts +64 -24
  183. package/dist/core/src/lock.d.ts.map +1 -1
  184. package/dist/core/src/models.d.ts +66 -47
  185. package/dist/core/src/models.d.ts.map +1 -1
  186. package/dist/core/src/repo-manager.d.ts +62 -34
  187. package/dist/core/src/repo-manager.d.ts.map +1 -1
  188. package/dist/core/src/runtime-assets.d.ts.map +1 -1
  189. package/dist/core/src/walker.d.ts +52 -0
  190. package/dist/core/src/walker.d.ts.map +1 -0
  191. package/dist/core/src/workspace-config.d.ts +174 -45
  192. package/dist/core/src/workspace-config.d.ts.map +1 -1
  193. package/dist/core/src/workspace-yaml-editor.d.ts +53 -16
  194. package/dist/core/src/workspace-yaml-editor.d.ts.map +1 -1
  195. package/dist/core/store.d.ts +2 -0
  196. package/dist/core/workspace-config.d.ts +2 -0
  197. package/dist/core/workspace-config.js +3 -3
  198. package/dist/deploy/index.d.ts +2 -0
  199. package/dist/deploy/index.js +473 -0
  200. package/dist/deploy/index.js.map +1 -0
  201. package/dist/deploy/src/handle-store.d.ts +22 -0
  202. package/dist/deploy/src/handle-store.d.ts.map +1 -0
  203. package/dist/deploy/src/index.d.ts +21 -0
  204. package/dist/deploy/src/index.d.ts.map +1 -0
  205. package/dist/deploy/src/targets/container-runtime.d.ts +39 -0
  206. package/dist/deploy/src/targets/container-runtime.d.ts.map +1 -0
  207. package/dist/deploy/src/targets/docker.d.ts +19 -0
  208. package/dist/deploy/src/targets/docker.d.ts.map +1 -0
  209. package/dist/deploy/src/targets/local.d.ts +30 -0
  210. package/dist/deploy/src/targets/local.d.ts.map +1 -0
  211. package/dist/deploy/src/targets/podman.d.ts +19 -0
  212. package/dist/deploy/src/targets/podman.d.ts.map +1 -0
  213. package/dist/deploy/src/targets/port.d.ts +10 -0
  214. package/dist/deploy/src/targets/port.d.ts.map +1 -0
  215. package/dist/deploy/src/targets/stream-lines.d.ts +44 -0
  216. package/dist/deploy/src/targets/stream-lines.d.ts.map +1 -0
  217. package/dist/discovery/index.d.ts +2 -0
  218. package/dist/discovery/index.js +3 -3
  219. package/dist/discovery/src/source-config.d.ts +2 -2
  220. package/dist/{ensure-sources-IDVQ77NJ.js → ensure-sources-SL2S4UEX.js} +22 -18
  221. package/dist/ensure-sources-SL2S4UEX.js.map +1 -0
  222. package/dist/{flows-6BNO4GKK.js → flows-DYFTPCPM.js} +4 -4
  223. package/dist/{flows-6BNO4GKK.js.map → flows-DYFTPCPM.js.map} +1 -1
  224. package/dist/library/index.d.ts +2 -0
  225. package/dist/library/index.js +4 -4
  226. package/dist/library/src/remote/remote-catalog-source.d.ts +17 -0
  227. package/dist/library/src/remote/remote-catalog-source.d.ts.map +1 -1
  228. package/dist/open-library-M4DB3D3J.js +13 -0
  229. package/dist/{open-library-IOYWFK7M.js.map → open-library-M4DB3D3J.js.map} +1 -1
  230. package/dist/plugin-registry/index.d.ts +2 -0
  231. package/dist/plugin-registry/index.js +4 -0
  232. package/dist/plugin-registry/index.js.map +1 -0
  233. package/dist/plugin-registry/src/context.d.ts +29 -0
  234. package/dist/plugin-registry/src/context.d.ts.map +1 -0
  235. package/dist/plugin-registry/src/deploy-handle.d.ts +76 -0
  236. package/dist/plugin-registry/src/deploy-handle.d.ts.map +1 -0
  237. package/dist/plugin-registry/src/deploy-helpers.d.ts +69 -0
  238. package/dist/plugin-registry/src/deploy-helpers.d.ts.map +1 -0
  239. package/dist/plugin-registry/src/errors.d.ts +23 -0
  240. package/dist/plugin-registry/src/errors.d.ts.map +1 -0
  241. package/dist/plugin-registry/src/index.d.ts +18 -0
  242. package/dist/plugin-registry/src/index.d.ts.map +1 -0
  243. package/dist/plugin-registry/src/internal.d.ts +13 -0
  244. package/dist/plugin-registry/src/internal.d.ts.map +1 -0
  245. package/dist/plugin-registry/src/registry.d.ts +26 -0
  246. package/dist/plugin-registry/src/registry.d.ts.map +1 -0
  247. package/dist/plugin-registry/src/targets.d.ts +46 -0
  248. package/dist/plugin-registry/src/targets.d.ts.map +1 -0
  249. package/dist/plugin-store-AJ3FGXIC.js +144 -0
  250. package/dist/plugin-store-AJ3FGXIC.js.map +1 -0
  251. package/dist/plugins/index.d.ts +2 -0
  252. package/dist/resolver/index.d.ts +2 -0
  253. package/dist/runner/index.d.ts +2 -0
  254. package/dist/runner/index.js +15 -14
  255. package/dist/runner/prompt-assembly.d.ts +2 -0
  256. package/dist/runner/src/resources.d.ts.map +1 -1
  257. package/dist/runner/src/serve.d.ts.map +1 -1
  258. package/dist/sdk/asset-manager.d.ts +2 -0
  259. package/dist/sdk/asset-manager.js +9 -9
  260. package/dist/sdk/bridge.d.ts +2 -0
  261. package/dist/sdk/bridge.js +3 -2
  262. package/dist/sdk/client.d.ts +2 -0
  263. package/dist/sdk/core.d.ts +2 -0
  264. package/dist/sdk/core.js +7 -7
  265. package/dist/sdk/flow.d.ts +2 -0
  266. package/dist/sdk/index.d.ts +2 -0
  267. package/dist/sdk/index.js +51 -17
  268. package/dist/sdk/index.js.map +1 -1
  269. package/dist/sdk/resolver.d.ts +2 -0
  270. package/dist/sdk/runner.d.ts +2 -0
  271. package/dist/sdk/runner.js +15 -14
  272. package/dist/sdk/session.d.ts +2 -0
  273. package/dist/sdk/src/local-runtime.d.ts +8 -0
  274. package/dist/sdk/src/local-runtime.d.ts.map +1 -1
  275. package/dist/sdk/src/transport.d.ts +7 -1
  276. package/dist/sdk/src/transport.d.ts.map +1 -1
  277. package/dist/sdk/store.d.ts +2 -0
  278. package/dist/sdk/telemetry.d.ts +2 -0
  279. package/dist/sdk/transport/ws/client.d.ts +2 -0
  280. package/dist/sdk/transport/ws/server.d.ts +2 -0
  281. package/dist/sdk/transport/ws.d.ts +2 -0
  282. package/dist/sdk/transport.d.ts +2 -0
  283. package/dist/sdk/types.d.ts +2 -0
  284. package/dist/secrets/index.d.ts +2 -0
  285. package/dist/session/index.d.ts +2 -0
  286. package/dist/{setup-AIOLUTKV.js → setup-GBSQX7JF.js} +12 -11
  287. package/dist/setup-GBSQX7JF.js.map +1 -0
  288. package/dist/store/index.d.ts +2 -0
  289. package/dist/store/react.d.ts +2 -0
  290. package/dist/store/vue.d.ts +2 -0
  291. package/dist/store-client-5WBRUC5U.js +14 -0
  292. package/dist/{store-client-CYEH2GKC.js.map → store-client-5WBRUC5U.js.map} +1 -1
  293. package/dist/telemetry/index.d.ts +2 -0
  294. package/dist/transport/index.d.ts +2 -0
  295. package/dist/transport/ws/client.d.ts +2 -0
  296. package/dist/transport/ws/server.d.ts +2 -0
  297. package/dist/transport/ws.d.ts +2 -0
  298. package/dist/tui/index.d.ts +2 -0
  299. package/dist/tui/index.js +15 -14
  300. package/dist/tui/index.js.map +1 -1
  301. package/dist/types/index.d.ts +2 -0
  302. package/dist/types/manifests.d.ts +2 -0
  303. package/dist/workspace-plugin/adapters/mcp.d.ts +2 -0
  304. package/dist/workspace-plugin/adapters/mcp.js +2 -2
  305. package/dist/workspace-plugin/adapters/omp.d.ts +2 -0
  306. package/dist/workspace-plugin/adapters/omp.js +3 -3
  307. package/dist/workspace-plugin/index.d.ts +2 -0
  308. package/dist/workspace-plugin/index.js +1 -1
  309. package/package.json +23 -24
  310. package/dist/base-assets/connectors/redis/adapter.d.ts +0 -39
  311. package/dist/base-assets/connectors/redis/adapter.d.ts.map +0 -1
  312. package/dist/base-assets/connectors/redis.js +0 -20
  313. package/dist/base-assets/connectors/redis.js.map +0 -1
  314. package/dist/base-assets/connectors/yjs/adapter.d.ts +0 -50
  315. package/dist/base-assets/connectors/yjs/adapter.d.ts.map +0 -1
  316. package/dist/base-assets/connectors/yjs.js +0 -20
  317. package/dist/base-assets/connectors/yjs.js.map +0 -1
  318. package/dist/chunk-37JKX6D7.js.map +0 -1
  319. package/dist/chunk-4ACWI5YT.js.map +0 -1
  320. package/dist/chunk-5QNQLSBW.js.map +0 -1
  321. package/dist/chunk-BSY56QS7.js.map +0 -1
  322. package/dist/chunk-DEQ3OOTU.js.map +0 -1
  323. package/dist/chunk-DFUXWNTS.js.map +0 -1
  324. package/dist/chunk-FRPKLIEZ.js.map +0 -1
  325. package/dist/chunk-G4BR355S.js.map +0 -1
  326. package/dist/chunk-W5DFC35Z.js.map +0 -1
  327. package/dist/chunk-XAVM2BAJ.js.map +0 -1
  328. package/dist/cli/src/commands/plugin.d.ts +0 -14
  329. package/dist/cli/src/commands/plugin.d.ts.map +0 -1
  330. package/dist/ensure-sources-IDVQ77NJ.js.map +0 -1
  331. package/dist/open-library-IOYWFK7M.js +0 -13
  332. package/dist/setup-AIOLUTKV.js.map +0 -1
  333. package/dist/store-client-CYEH2GKC.js +0 -14
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Per-kind context bags threaded into a target's `create()` call.
3
+ *
4
+ * Only `DeployContext` is pinned by the contract. `DriverContext` and
5
+ * `ConnectorContext` are intentionally minimal and extensible — adding optional
6
+ * fields stays backwards-compatible.
7
+ */
8
+ import type { Logger } from "@skaile/workspaces/types";
9
+ /** Context passed to a `DriverTarget.create()`. */
10
+ export interface DriverContext {
11
+ readonly log?: Logger;
12
+ readonly signal?: AbortSignal;
13
+ }
14
+ /** Context passed to a `ConnectorTarget.create()`. */
15
+ export interface ConnectorContext {
16
+ readonly log?: Logger;
17
+ }
18
+ /** Context passed to a `DeployTarget.create()` / `restore()`. */
19
+ export interface DeployContext {
20
+ readonly workspaceId: string;
21
+ /** Caller-issued, opaque WS auth token. */
22
+ readonly wsAuth?: string;
23
+ /** Image reference resolved by the target's `buildStrategy`. */
24
+ readonly imageRef?: string;
25
+ readonly env: Readonly<Record<string, string>>;
26
+ readonly log: Logger;
27
+ readonly signal: AbortSignal;
28
+ }
29
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/context.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iEAAiE;AACjE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAC9B"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Deploy handle contract + the `resolveDeployTarget` precedence resolver.
3
+ *
4
+ * A `DeployHandle` is the live, restorable result of standing up a workspace on
5
+ * a deploy target. `resolveDeployTarget` picks which target+config to use with
6
+ * an explicit override > yaml > default chain.
7
+ */
8
+ import type { PluginRegistry, TargetMeta } from "./registry.js";
9
+ import type { DeployTarget } from "./targets.js";
10
+ /**
11
+ * Live handle to a deployed workspace. `payload` is the target's own opaque
12
+ * persistence slice (written to `.skaile/deploy/handle.json` and fed back into
13
+ * `restore()`); the registry wrapper never inspects it.
14
+ */
15
+ export interface DeployHandle<S = unknown> {
16
+ readonly wsUrl: string;
17
+ /** Redacted form of the auth token, safe to log. */
18
+ readonly wsAuth?: string;
19
+ readonly state: "starting" | "ready" | "stopping" | "stopped" | "errored";
20
+ readonly payload: S;
21
+ waitReady(timeoutMs?: number): Promise<void>;
22
+ health(): Promise<{
23
+ healthy: boolean;
24
+ detail?: string;
25
+ }>;
26
+ logs?(opts?: {
27
+ sinceMs?: number;
28
+ follow?: boolean;
29
+ }): AsyncIterable<{
30
+ ts: number;
31
+ line: string;
32
+ }>;
33
+ stop(): Promise<void>;
34
+ }
35
+ /**
36
+ * List the registered deploy targets as lightweight `{ id, displayName }` rows,
37
+ * the symmetric counterpart to `listDrivers()` / `listConnectors()`. Reads the
38
+ * process-wide `pluginRegistry` by default, so call
39
+ * `registerBuiltinDeployTargets()` (and load any plugins) first — unregistered
40
+ * targets do not appear. Enough to populate a target picker without resolving a
41
+ * config; use `getDeployTarget(id)` for the full target.
42
+ */
43
+ export declare function listDeployTargets(registry?: PluginRegistry): readonly TargetMeta[];
44
+ /**
45
+ * Look up a single registered deploy target by id, or `undefined` if none is
46
+ * registered under that id. Thin wrapper over `pluginRegistry.get`, mirroring
47
+ * `getConnector()`; unlike `resolveDeployTarget` it neither applies the
48
+ * override/yaml/default precedence nor parses a config.
49
+ */
50
+ export declare function getDeployTarget(id: string, registry?: PluginRegistry): DeployTarget | undefined;
51
+ /** Outcome of `resolveDeployTarget`: the chosen target, its parsed config, and where it came from. */
52
+ export interface DeployResolution {
53
+ target: DeployTarget;
54
+ config: unknown;
55
+ provenance: {
56
+ source: "default" | "yaml" | "override";
57
+ reason?: string;
58
+ };
59
+ }
60
+ /**
61
+ * Resolve which deploy target + config to use, with explicit precedence:
62
+ * CLI override > `skaile.yaml` `deploy:` block > the built-in `local` default.
63
+ * Config is parsed through the chosen target's `configSchema`, so validation
64
+ * failures propagate to the caller.
65
+ */
66
+ export declare function resolveDeployTarget(yaml: {
67
+ deploy?: {
68
+ target: string;
69
+ config?: unknown;
70
+ };
71
+ }, override?: {
72
+ target: string;
73
+ config?: unknown;
74
+ reason: string;
75
+ }, registry?: PluginRegistry): Promise<DeployResolution>;
76
+ //# sourceMappingURL=deploy-handle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-handle.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/deploy-handle.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;IAC1E,QAAQ,CAAC,OAAO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,GAAE,cAA+B,GACxC,OAAO,CAAC,gBAAgB,CAAC,CA0B3B"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Shared building blocks for `DeployTarget` implementations.
3
+ *
4
+ * These lift the byte-for-byte duplication that had accumulated across the
5
+ * provider packages (the `buildStrategy` enum, an abort-aware `sleep`, the
6
+ * poll-until-ready loop, and the `DeployHandle` wrapper) into one authoritative
7
+ * place — the package that already owns the `DeployHandle` contract.
8
+ */
9
+ import * as z from "zod";
10
+ import type { DeployContext } from "./context.js";
11
+ import type { DeployHandle } from "./deploy-handle.js";
12
+ /**
13
+ * The authoritative build-strategy enum shared by every deploy target.
14
+ * `local`/`managed` need an operator-supplied image; `remote` builds one.
15
+ */
16
+ export declare const buildStrategySchema: z.ZodEnum<{
17
+ remote: "remote";
18
+ local: "local";
19
+ managed: "managed";
20
+ }>;
21
+ export type BuildStrategy = z.infer<typeof buildStrategySchema>;
22
+ /**
23
+ * Abort-aware sleep. Resolves after `ms`, or rejects immediately if `signal`
24
+ * aborts first (so a cancelled deploy stops polling promptly).
25
+ */
26
+ export declare function sleep(ms: number, signal: AbortSignal): Promise<void>;
27
+ /** Options for {@link pollUntil}. */
28
+ export interface PollUntilOptions {
29
+ /** Predicate polled until it returns true. */
30
+ check: () => Promise<boolean>;
31
+ /** Deadline relative to `Date.now()` at the first failing check. */
32
+ timeoutMs: number;
33
+ /** Delay between attempts, via the abort-aware {@link sleep}. */
34
+ intervalMs: number;
35
+ signal: AbortSignal;
36
+ /** Descriptive message for the timeout error; defaults to "timed out". */
37
+ timeoutMessage?: string;
38
+ }
39
+ /**
40
+ * Poll `check()` until it returns true. Sleeps `intervalMs` between attempts
41
+ * and throws once `Date.now()` passes the deadline. Generalizes the readiness
42
+ * loops the deploy providers each re-implemented.
43
+ */
44
+ export declare function pollUntil(opts: PollUntilOptions): Promise<void>;
45
+ /** Options for {@link makeDeployHandle}. */
46
+ export interface MakeDeployHandleOptions<S> {
47
+ wsUrl: string;
48
+ /** Source of `wsAuth` redaction and the abort `signal` for the ready routine. */
49
+ ctx: DeployContext;
50
+ payload: S;
51
+ initialState: DeployHandle["state"];
52
+ /** Timeout passed to `ready` when `waitReady` is called without one. */
53
+ defaultReadyTimeoutMs: number;
54
+ /** Readiness routine; receives the EFFECTIVE timeout (caller's or the default). */
55
+ ready: (timeoutMs: number, signal: AbortSignal) => Promise<void>;
56
+ health: () => Promise<{
57
+ healthy: boolean;
58
+ detail?: string;
59
+ }>;
60
+ stop: () => Promise<void>;
61
+ logs?: DeployHandle<S>["logs"];
62
+ }
63
+ /**
64
+ * Build a `DeployHandle` from per-target seams, replacing the wrapper each
65
+ * provider had copy-pasted. Unlike those wrappers, `waitReady(timeoutMs)`
66
+ * forwards the caller's timeout to `ready` instead of discarding it.
67
+ */
68
+ export declare function makeDeployHandle<S>(opts: MakeDeployHandleOptions<S>): DeployHandle<S>;
69
+ //# sourceMappingURL=deploy-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy-helpers.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/deploy-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;EAAyC,CAAC;AAE1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,wBAAsB,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAa1E;AAED,qCAAqC;AACrC,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CASrE;AAED,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB,CAAC,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,GAAG,EAAE,aAAa,CAAC;IACnB,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACpC,wEAAwE;IACxE,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mFAAmF;IACnF,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,MAAM,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7D,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CA4BrF"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Error types thrown by the plugin registry and deploy resolution.
3
+ *
4
+ * Each carries a stable `.name` so callers can branch on identity without
5
+ * importing the class (cross-package / cross-bundle `instanceof` is unreliable).
6
+ */
7
+ /** Thrown by `register()` when a target id is already registered for its kind. */
8
+ export declare class RegistrationError extends Error {
9
+ constructor(kind: string, id: string);
10
+ }
11
+ /** Thrown when a lookup by id finds no registered target for the given kind. */
12
+ export declare class MissingTargetError extends Error {
13
+ constructor(kind: string, id: string);
14
+ }
15
+ /** Thrown by `register()` when a target declares an unsupported `apiVersion`. */
16
+ export declare class ApiVersionMismatchError extends Error {
17
+ constructor(kind: string, id: string, got: unknown);
18
+ }
19
+ /** Thrown by `resolveDeployTarget()` when the requested deploy target id is unknown. */
20
+ export declare class DeployTargetNotFoundError extends Error {
21
+ constructor(id: string);
22
+ }
23
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,kFAAkF;AAClF,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAIrC;AAED,gFAAgF;AAChF,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAIrC;AAED,iFAAiF;AACjF,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO;CAMnD;AAED,wFAAwF;AACxF,qBAAa,yBAA0B,SAAQ,KAAK;gBACtC,EAAE,EAAE,MAAM;CAIvB"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `@skaile/workspaces/plugin-registry` — the unified three-kind plugin registry.
3
+ *
4
+ * Public surface: the `pluginRegistry` singleton + `createPluginRegistry()`,
5
+ * the target/context/handle contracts, `resolveDeployTarget`, and the error
6
+ * types. Stability contract — adding members is non-breaking; removing or
7
+ * renaming is a major bump.
8
+ */
9
+ export type { ConnectorContext, DeployContext, DriverContext, } from "./context.js";
10
+ export type { DeployHandle, DeployResolution } from "./deploy-handle.js";
11
+ export { getDeployTarget, listDeployTargets, resolveDeployTarget } from "./deploy-handle.js";
12
+ export type { BuildStrategy, MakeDeployHandleOptions, PollUntilOptions } from "./deploy-helpers.js";
13
+ export { buildStrategySchema, makeDeployHandle, pollUntil, sleep } from "./deploy-helpers.js";
14
+ export { ApiVersionMismatchError, DeployTargetNotFoundError, MissingTargetError, RegistrationError, } from "./errors.js";
15
+ export { createPluginRegistry, pluginRegistry } from "./internal.js";
16
+ export type { PluginRegistry, Target, TargetKind, TargetMeta, } from "./registry.js";
17
+ export type { ConnectorTarget, DeployTarget, DriverTarget, } from "./targets.js";
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC7F,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACrE,YAAY,EACV,cAAc,EACd,MAAM,EACN,UAAU,EACV,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,eAAe,EACf,YAAY,EACZ,YAAY,GACb,MAAM,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Map-backed `PluginRegistry` implementation + the process-wide singleton.
3
+ *
4
+ * Storage is one Map per kind. Registration rejects duplicate ids
5
+ * (`RegistrationError`) and any target not on `apiVersion: 1`
6
+ * (`ApiVersionMismatchError`).
7
+ */
8
+ import type { PluginRegistry } from "./registry.js";
9
+ /** Create a fresh, isolated registry — used by tests so cases never share state. */
10
+ export declare function createPluginRegistry(): PluginRegistry;
11
+ /** Process-wide default registry. Built-ins and loaded plugins register here. */
12
+ export declare const pluginRegistry: PluginRegistry;
13
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAkC,MAAM,eAAe,CAAC;AA2CpF,oFAAoF;AACpF,wBAAgB,oBAAoB,IAAI,cAAc,CAErD;AAED,iFAAiF;AACjF,eAAO,MAAM,cAAc,EAAE,cAAuC,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The unified plugin registry contract: one registry, three target kinds.
3
+ *
4
+ * `Target<K>` maps each kind to its concrete target shape so `register`/`get`
5
+ * stay kind-typed at the call site. The concrete storage + singleton live in
6
+ * `internal.ts`.
7
+ */
8
+ import type { ConnectorTarget, DeployTarget, DriverTarget } from "./targets.js";
9
+ /** The three kinds of thing the registry owns. */
10
+ export type TargetKind = "driver" | "connector" | "deployTarget";
11
+ /** Maps a `TargetKind` to its concrete target interface. */
12
+ export type Target<K extends TargetKind> = K extends "driver" ? DriverTarget : K extends "connector" ? ConnectorTarget : K extends "deployTarget" ? DeployTarget : never;
13
+ /** Lightweight metadata row returned by `list()` — enough to populate a picker without loading a module. */
14
+ export interface TargetMeta {
15
+ id: string;
16
+ displayName: string;
17
+ }
18
+ /** The seam third-party plugins target: register a thing by kind+id, look it up later. */
19
+ export interface PluginRegistry {
20
+ readonly apiVersion: 1;
21
+ register<K extends TargetKind>(kind: K, target: Target<K>): void;
22
+ unregister<K extends TargetKind>(kind: K, id: string): boolean;
23
+ get<K extends TargetKind>(kind: K, id: string): Target<K> | undefined;
24
+ list<K extends TargetKind>(kind: K): readonly TargetMeta[];
25
+ }
26
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEhF,kDAAkD;AAClD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;AAEjE,4DAA4D;AAC5D,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,UAAU,IAAI,CAAC,SAAS,QAAQ,GACzD,YAAY,GACZ,CAAC,SAAS,WAAW,GACnB,eAAe,GACf,CAAC,SAAS,cAAc,GACtB,YAAY,GACZ,KAAK,CAAC;AAEd,4GAA4G;AAC5G,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,0FAA0F;AAC1F,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IACvB,QAAQ,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAMjE,UAAU,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/D,GAAG,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACtE,IAAI,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,UAAU,EAAE,CAAC;CAC5D"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The three target shapes the registry stores, one per `TargetKind`.
3
+ *
4
+ * Cross-package references (`AgentDriver`, `ModelEntry`, `Connector`) are
5
+ * `import type` only — the registry carries no runtime dependency on bridge or
6
+ * connectors, so no import cycle is introduced.
7
+ */
8
+ import type { z } from "zod";
9
+ import type { AgentDriver } from "@skaile/workspaces/bridge";
10
+ import type { ModelEntry } from "@skaile/workspaces/bridge";
11
+ import type { Connector } from "@skaile/workspaces/connectors-shared";
12
+ import type { ConnectorContext, DeployContext, DriverContext } from "./context.js";
13
+ import type { DeployHandle } from "./deploy-handle.js";
14
+ /** A registrable LLM driver backend. */
15
+ export interface DriverTarget<C = unknown> {
16
+ readonly id: string;
17
+ readonly displayName: string;
18
+ readonly apiVersion: 1;
19
+ readonly configSchema: z.ZodType<C>;
20
+ /** Backend runs against any provider/model rather than a fixed one. Defaults to `false`. */
21
+ readonly modelAgnostic?: boolean;
22
+ /** Backend can abort an in-flight turn without tearing the process down. Defaults to `false`. */
23
+ readonly supportsInBandAbort?: boolean;
24
+ create(config: C, ctx: DriverContext): Promise<AgentDriver>;
25
+ listModels?(apiKeys: Record<string, string>): Promise<ModelEntry[]>;
26
+ }
27
+ /** A registrable connector backend. */
28
+ export interface ConnectorTarget<C = unknown> {
29
+ readonly id: string;
30
+ readonly displayName: string;
31
+ readonly apiVersion: 1;
32
+ readonly configSchema: z.ZodType<C>;
33
+ create(config: C, ctx: ConnectorContext): Connector;
34
+ }
35
+ /** A registrable deploy target (where a workspace is stood up and reached over WS). */
36
+ export interface DeployTarget<C = unknown, S = unknown> {
37
+ readonly id: string;
38
+ readonly displayName: string;
39
+ readonly apiVersion: 1;
40
+ readonly tlsTermination: "edge" | "self" | "none";
41
+ readonly configSchema: z.ZodType<C>;
42
+ readonly payloadSchema: z.ZodType<S>;
43
+ create(config: C, ctx: DeployContext): Promise<DeployHandle<S>>;
44
+ restore(payload: S, ctx: DeployContext): Promise<DeployHandle<S>>;
45
+ }
46
+ //# sourceMappingURL=targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../plugin-registry/src/targets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,wCAAwC;AACxC,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO;IACvC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IACvB,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,iGAAiG;IACjG,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IACvC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5D,UAAU,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;CACrE;AAED,uCAAuC;AACvC,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC1C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IACvB,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACrD;AAED,uFAAuF;AACvF,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO;IACpD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClD,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACrC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;CACnE"}
@@ -0,0 +1,144 @@
1
+ import { pluginRegistry } from './chunk-6E6PKKAD.js';
2
+ import { readPluginsLockSlice } from './chunk-UMOENHVH.js';
3
+ import './chunk-K5GBV4SA.js';
4
+ import './chunk-KLNL7QHN.js';
5
+ import './chunk-GFNW72LW.js';
6
+ import './chunk-J3VKAEQP.js';
7
+ import './chunk-4AZKT2BU.js';
8
+ import './chunk-I3UEM3FX.js';
9
+ import './chunk-JKNWJ64A.js';
10
+ import './chunk-O4JH3KUE.js';
11
+ import './chunk-24UIWON4.js';
12
+ import './chunk-NSBPE2FW.js';
13
+ import { pathToFileURL } from 'url';
14
+ import { join } from 'path';
15
+ import { createHash } from 'crypto';
16
+ import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
17
+
18
+ function pluginsDir(projectDir) {
19
+ return join(projectDir, ".skaile", "plugins");
20
+ }
21
+ function pluginsPkgJson(projectDir) {
22
+ return join(pluginsDir(projectDir), "package.json");
23
+ }
24
+ function nodeModulesDir(projectDir) {
25
+ return join(pluginsDir(projectDir), "node_modules");
26
+ }
27
+ function reconcileHashFile(projectDir) {
28
+ return join(pluginsDir(projectDir), ".reconcile-hash");
29
+ }
30
+ function lockPath(projectDir) {
31
+ return join(projectDir, "skaile.lock.yaml");
32
+ }
33
+ function resolvePluginEntry(projectDir, pkgName) {
34
+ return join(nodeModulesDir(projectDir), pkgName);
35
+ }
36
+
37
+ // cli/src/plugin-store/spec.ts
38
+ function parseSpec(spec) {
39
+ const trimmed = spec.trim();
40
+ if (!trimmed) throw new Error("parseSpec: empty specifier");
41
+ const at = trimmed.lastIndexOf("@");
42
+ if (at <= 0) {
43
+ return { name: trimmed, range: "*" };
44
+ }
45
+ const name = trimmed.slice(0, at);
46
+ const range = trimmed.slice(at + 1);
47
+ return { name, range: range.length > 0 ? range : "*" };
48
+ }
49
+ function specName(spec) {
50
+ return parseSpec(spec).name;
51
+ }
52
+
53
+ // cli/src/plugin-store/load.ts
54
+ async function loadPlugins(projectDir, plugins, registry = pluginRegistry, opts = {}) {
55
+ const loaded = [];
56
+ const failed = [];
57
+ for (const spec of plugins) {
58
+ try {
59
+ const { name } = parseSpec(spec);
60
+ const entry = resolvePluginEntry(projectDir, name);
61
+ const mod = await import(pathToFileURL(entry).href);
62
+ if (typeof mod.register !== "function") {
63
+ throw new Error(`plugin "${name}" does not export a register() function`);
64
+ }
65
+ mod.register(registry);
66
+ loaded.push(spec);
67
+ } catch (err) {
68
+ const message = err instanceof Error ? err.message : String(err);
69
+ failed.push({ spec, error: `failed to load plugin "${spec}": ${message}` });
70
+ opts.log?.warn(`plugin load failed: ${spec}`, { error: message });
71
+ }
72
+ }
73
+ return { loaded, failed };
74
+ }
75
+ var defaultInstall = async (dir) => {
76
+ const { portableSpawn } = await import('./core/index.js');
77
+ const hasLock = existsSync(`${dir}/bun.lock`) || existsSync(`${dir}/bun.lockb`) || existsSync(`${dir}/package-lock.json`);
78
+ const args = hasLock ? ["bun", "install", "--frozen-lockfile"] : ["bun", "install"];
79
+ const proc = portableSpawn(args, { cwd: dir });
80
+ const chunks = [];
81
+ const decoder = new TextDecoder();
82
+ const pump = async (stream) => {
83
+ const reader = stream.getReader();
84
+ for (; ; ) {
85
+ const { done, value } = await reader.read();
86
+ if (done) break;
87
+ if (value) chunks.push(decoder.decode(value, { stream: true }));
88
+ }
89
+ };
90
+ await Promise.all([pump(proc.stdout), pump(proc.stderr)]);
91
+ const code = await proc.exited;
92
+ return { ok: code === 0, output: chunks.join("") };
93
+ };
94
+ function writePackageJson(projectDir, plugins) {
95
+ const dependencies = {};
96
+ for (const spec of plugins) {
97
+ const { name, range } = parseSpec(spec);
98
+ dependencies[name] = range;
99
+ }
100
+ const pkg = {
101
+ name: "skaile-project-plugins",
102
+ private: true,
103
+ dependencies
104
+ };
105
+ mkdirSync(pluginsDir(projectDir), { recursive: true });
106
+ writeFileSync(pluginsPkgJson(projectDir), `${JSON.stringify(pkg, null, 2)}
107
+ `);
108
+ }
109
+ async function reconcilePlugins(projectDir, plugins, opts = {}) {
110
+ if (plugins.length === 0) {
111
+ return { changed: false, reason: "no-plugins" };
112
+ }
113
+ const lockSlice = opts.lockSlice ?? readPluginsLockSlice(projectDir);
114
+ const wantHash = createHash("sha256").update(JSON.stringify({ plugins: [...plugins].sort(), lock: lockSlice })).digest("hex");
115
+ const hashFile = reconcileHashFile(projectDir);
116
+ if (existsSync(hashFile)) {
117
+ const have = readFileSync(hashFile, "utf8").trim();
118
+ if (have === wantHash) {
119
+ return { changed: false, reason: "up-to-date" };
120
+ }
121
+ }
122
+ writePackageJson(projectDir, plugins);
123
+ const install = opts.runInstall ?? defaultInstall;
124
+ const result = await install(pluginsDir(projectDir));
125
+ if (!result.ok) {
126
+ throw new Error(`plugin install failed:
127
+ ${result.output}`);
128
+ }
129
+ writeFileSync(hashFile, wantHash);
130
+ return { changed: true, reason: "reconciled" };
131
+ }
132
+
133
+ // cli/src/plugin-store/index.ts
134
+ async function ensurePluginsLoaded(projectDir, plugins, registry = pluginRegistry, opts = {}) {
135
+ if (!plugins || plugins.length === 0) {
136
+ return { loaded: [], failed: [] };
137
+ }
138
+ await reconcilePlugins(projectDir, plugins, opts);
139
+ return loadPlugins(projectDir, plugins, registry, { log: opts.log });
140
+ }
141
+
142
+ export { defaultInstall, ensurePluginsLoaded, loadPlugins, lockPath, nodeModulesDir, parseSpec, pluginsDir, pluginsPkgJson, reconcileHashFile, reconcilePlugins, resolvePluginEntry, specName };
143
+ //# sourceMappingURL=plugin-store-AJ3FGXIC.js.map
144
+ //# sourceMappingURL=plugin-store-AJ3FGXIC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../cli/src/plugin-store/paths.ts","../cli/src/plugin-store/spec.ts","../cli/src/plugin-store/load.ts","../cli/src/plugin-store/reconcile.ts","../cli/src/plugin-store/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAUO,SAAS,WAAW,UAAA,EAA4B;AACrD,EAAA,OAAO,IAAA,CAAK,UAAA,EAAY,SAAA,EAAW,SAAS,CAAA;AAC9C;AAGO,SAAS,eAAe,UAAA,EAA4B;AACzD,EAAA,OAAO,IAAA,CAAK,UAAA,CAAW,UAAU,CAAA,EAAG,cAAc,CAAA;AACpD;AAGO,SAAS,eAAe,UAAA,EAA4B;AACzD,EAAA,OAAO,IAAA,CAAK,UAAA,CAAW,UAAU,CAAA,EAAG,cAAc,CAAA;AACpD;AAGO,SAAS,kBAAkB,UAAA,EAA4B;AAC5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C,CAAA;AACnD,EAAA,IAAI,CAAC,OAAO,EAAA,EAAI;AACd,IAAA,MAAM,IAAI,KAAA,CAAM,CAAA;AAAA,EAA2B,MAAA,CAAO,MAAM,CAAA,CAAE,CAAA;AAAA,EAC5D;AAEA,EAAA,aAAA,CAAc,UAAU,QAAQ,CAAA;AAChC,EAAA,OAAO,EAAE,OAAA,EAAS,IAAA,EAAM,MAAA,EAAQ,YAAA,EAAa;AAC/C;;;AC/EA,eAAsB,oBACpB,UAAA,EACA,OAAA,EACA,WAA2B,cAAA,EAC3B,IAAA,GAA6B,EAAC,EACT;AACrB,EAAA,IAAI,CAAC,OAAA,IAAW,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG;AACpC,IAAA,OAAO,EAAE,MAAA,EAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAAA,EAClC;AACA,EAAA,MAAM,gBAAA,CAAiB,UAAA,EAAY,OAAA,EAAS,IAAI,CAAA;AAChD,EAAA,OAAO,WAAA,CAAY,YAAY,OAAA,EAAS,QAAA,EAAU,EAAE,GAAA,EAAK,IAAA,CAAK,KAAK,CAAA;AACrE","file":"plugin-store-AJ3FGXIC.js","sourcesContent":["/**\n * Pure path helpers for the project-local plugin store.\n *\n * The store is a self-contained npm workspace owned by the CLI under\n * `<projectDir>/.skaile/plugins/`. Nothing here touches the filesystem.\n */\n\nimport { join } from \"node:path\";\n\n/** `<projectDir>/.skaile/plugins` — the store root. */\nexport function pluginsDir(projectDir: string): string {\n return join(projectDir, \".skaile\", \"plugins\");\n}\n\n/** `<store>/package.json` — generated, never user-edited. */\nexport function pluginsPkgJson(projectDir: string): string {\n return join(pluginsDir(projectDir), \"package.json\");\n}\n\n/** `<store>/node_modules` — where reconciled plugin packages land. */\nexport function nodeModulesDir(projectDir: string): string {\n return join(pluginsDir(projectDir), \"node_modules\");\n}\n\n/** `<store>/.reconcile-hash` — SHA of plugins-list + lock slice; skip reinstall when unchanged. */\nexport function reconcileHashFile(projectDir: string): string {\n return join(pluginsDir(projectDir), \".reconcile-hash\");\n}\n\n/** `<projectDir>/skaile.lock.yaml` — the project lock file. */\nexport function lockPath(projectDir: string): string {\n return join(projectDir, \"skaile.lock.yaml\");\n}\n\n/**\n * Absolute path to a plugin package's entry directory under the store's\n * `node_modules`. Dynamic `import()` against this absolute path works inside\n * compiled binaries via `pathToFileURL`.\n */\nexport function resolvePluginEntry(projectDir: string, pkgName: string): string {\n return join(nodeModulesDir(projectDir), pkgName);\n}\n","/**\n * Parse npm package specifiers from the `plugins:` list into name + range.\n *\n * The leading `@` of a scope is NOT a separator: only the last `@` at a\n * non-zero index splits the package name from its semver range.\n * \"@skaile/provider-fly@^0.1.0\" → { name: \"@skaile/provider-fly\", range: \"^0.1.0\" }\n * \"@skaile/connector-redis\" → { name: \"@skaile/connector-redis\", range: \"*\" }\n * \"lodash@^4\" → { name: \"lodash\", range: \"^4\" }\n */\n\n/** A parsed plugin specifier: package name plus a semver range (`\"*\"` when omitted). */\nexport interface PluginSpec {\n name: string;\n range: string;\n}\n\n/**\n * Parse a single plugin specifier into `{ name, range }`.\n *\n * @param spec - An npm specifier, e.g. `\"@skaile/provider-fly@^0.1.0\"` or `\"lodash\"`.\n * @returns The package name and semver range (range defaults to `\"*\"`).\n * @throws Error when the specifier is empty.\n */\nexport function parseSpec(spec: string): PluginSpec {\n const trimmed = spec.trim();\n if (!trimmed) throw new Error(\"parseSpec: empty specifier\");\n\n // Find the version-separating `@` — the last one that is not the scope `@`\n // at index 0. A bare `@scope/name` has its only `@` at index 0 (no range).\n const at = trimmed.lastIndexOf(\"@\");\n if (at <= 0) {\n return { name: trimmed, range: \"*\" };\n }\n const name = trimmed.slice(0, at);\n const range = trimmed.slice(at + 1);\n return { name, range: range.length > 0 ? range : \"*\" };\n}\n\n/** Convenience: just the package name of a specifier. */\nexport function specName(spec: string): string {\n return parseSpec(spec).name;\n}\n","/**\n * Runtime plugin loader: dynamic-import each reconciled plugin and let it\n * self-register into the `pluginRegistry`.\n *\n * Each plugin specifier resolves to an absolute path under the store's\n * `node_modules`; we import it via a `file://` URL so the import works inside\n * `bun --compile` binaries (which bundle only the literal-string switches, but\n * can still execute a `file://` import against the unpacked store on disk).\n * Failures are caught per-plugin so one broken plugin never aborts the rest.\n */\n\nimport { pathToFileURL } from \"node:url\";\nimport { type PluginRegistry, pluginRegistry } from \"@skaile/workspaces/plugin-registry\";\nimport type { Logger } from \"@skaile/workspaces/types\";\nimport { resolvePluginEntry } from \"./paths.js\";\nimport { parseSpec } from \"./spec.js\";\n\n/** Options for {@link loadPlugins}. */\nexport interface LoadOptions {\n log?: Logger;\n}\n\n/** Result of a load pass: which specs registered and which failed. */\nexport interface LoadResult {\n loaded: string[];\n failed: { spec: string; error: string }[];\n}\n\n/** The self-registration entrypoint a plugin module is expected to export. */\ntype PluginModule = { register?: (registry: PluginRegistry) => void };\n\n/**\n * Load and register each plugin in `plugins` into `registry`.\n *\n * @param projectDir - Project root holding `.skaile/plugins/node_modules`.\n * @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).\n * @param registry - Registry to register into. Defaults to the process-wide `pluginRegistry`.\n * @param opts - Optional logger.\n * @returns Loaded specs + per-plugin failures (never throws).\n */\nexport async function loadPlugins(\n projectDir: string,\n plugins: string[],\n registry: PluginRegistry = pluginRegistry,\n opts: LoadOptions = {},\n): Promise<LoadResult> {\n const loaded: string[] = [];\n const failed: { spec: string; error: string }[] = [];\n\n for (const spec of plugins) {\n try {\n const { name } = parseSpec(spec);\n const entry = resolvePluginEntry(projectDir, name);\n const mod = (await import(pathToFileURL(entry).href)) as PluginModule;\n if (typeof mod.register !== \"function\") {\n throw new Error(`plugin \"${name}\" does not export a register() function`);\n }\n mod.register(registry);\n loaded.push(spec);\n } catch (err) {\n const message = err instanceof Error ? err.message : String(err);\n failed.push({ spec, error: `failed to load plugin \"${spec}\": ${message}` });\n opts.log?.warn(`plugin load failed: ${spec}`, { error: message });\n }\n }\n\n return { loaded, failed };\n}\n","/**\n * Reconcile the project-local plugin store (`<projectDir>/.skaile/plugins/`).\n *\n * The reconciler is hash-skipped: it computes a SHA-256 over the sorted plugin\n * list plus the lock file's `plugins` slice and compares it to the stored\n * `.reconcile-hash`. On a match it returns with zero further I/O; otherwise it\n * regenerates the store's `package.json` and runs `bun install` against it.\n *\n * The install step is injectable (`InstallFn`) so tests stay hermetic — they\n * pass a fake installer that records calls and writes a stub `node_modules`.\n */\n\nimport { createHash } from \"node:crypto\";\nimport { existsSync, mkdirSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { readPluginsLockSlice } from \"@skaile/workspaces/core\";\nimport { pluginsDir, pluginsPkgJson, reconcileHashFile } from \"./paths.js\";\nimport { parseSpec } from \"./spec.js\";\n\n/**\n * Installs the store's dependencies. Returns `ok: false` (never throws) on a\n * failed install so the reconciler can surface the captured `output`.\n */\nexport type InstallFn = (pluginsDir: string) => Promise<{ ok: boolean; output: string }>;\n\n/** Options for {@link reconcilePlugins}. */\nexport interface ReconcileOptions {\n /** Injectable installer. Defaults to a real `bun install` of the store. */\n runInstall?: InstallFn;\n /**\n * Lock slice to fold into the reconcile-hash. Defaults to\n * `readPluginsLockSlice(projectDir)` so a lock edit invalidates the hash.\n */\n lockSlice?: unknown;\n}\n\n/** Result of a reconcile pass. */\nexport interface ReconcileResult {\n changed: boolean;\n reason: \"no-plugins\" | \"up-to-date\" | \"reconciled\";\n}\n\n/**\n * The default real installer: `bun install` inside the store directory.\n * Frozen on subsequent runs (a `bun.lock`/`bun.lockb` already exists), and\n * non-frozen on the first run so a lock can be generated.\n */\nexport const defaultInstall: InstallFn = async (dir) => {\n const { portableSpawn } = await import(\"@skaile/workspaces/core\");\n const hasLock =\n existsSync(`${dir}/bun.lock`) ||\n existsSync(`${dir}/bun.lockb`) ||\n existsSync(`${dir}/package-lock.json`);\n const args = hasLock ? [\"bun\", \"install\", \"--frozen-lockfile\"] : [\"bun\", \"install\"];\n const proc = portableSpawn(args, { cwd: dir });\n const chunks: string[] = [];\n const decoder = new TextDecoder();\n const pump = async (stream: ReadableStream<Uint8Array>) => {\n const reader = stream.getReader();\n for (;;) {\n const { done, value } = await reader.read();\n if (done) break;\n if (value) chunks.push(decoder.decode(value, { stream: true }));\n }\n };\n await Promise.all([pump(proc.stdout), pump(proc.stderr)]);\n const code = await proc.exited;\n return { ok: code === 0, output: chunks.join(\"\") };\n};\n\n/** Generate the store's `package.json` from the plugin specs. */\nfunction writePackageJson(projectDir: string, plugins: string[]): void {\n const dependencies: Record<string, string> = {};\n for (const spec of plugins) {\n const { name, range } = parseSpec(spec);\n dependencies[name] = range;\n }\n const pkg = {\n name: \"skaile-project-plugins\",\n private: true,\n dependencies,\n };\n mkdirSync(pluginsDir(projectDir), { recursive: true });\n writeFileSync(pluginsPkgJson(projectDir), `${JSON.stringify(pkg, null, 2)}\\n`);\n}\n\n/**\n * Reconcile the plugin store for a project.\n *\n * @param projectDir - Project root containing `skaile.yaml` / `skaile.lock.yaml`.\n * @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).\n * @param opts - Optional injectable installer + lock slice override.\n * @returns Whether the store changed and why.\n */\nexport async function reconcilePlugins(\n projectDir: string,\n plugins: string[],\n opts: ReconcileOptions = {},\n): Promise<ReconcileResult> {\n if (plugins.length === 0) {\n return { changed: false, reason: \"no-plugins\" };\n }\n\n const lockSlice = opts.lockSlice ?? readPluginsLockSlice(projectDir);\n const wantHash = createHash(\"sha256\")\n .update(JSON.stringify({ plugins: [...plugins].sort(), lock: lockSlice }))\n .digest(\"hex\");\n\n const hashFile = reconcileHashFile(projectDir);\n if (existsSync(hashFile)) {\n const have = readFileSync(hashFile, \"utf8\").trim();\n if (have === wantHash) {\n return { changed: false, reason: \"up-to-date\" };\n }\n }\n\n writePackageJson(projectDir, plugins);\n\n const install = opts.runInstall ?? defaultInstall;\n const result = await install(pluginsDir(projectDir));\n if (!result.ok) {\n throw new Error(`plugin install failed:\\n${result.output}`);\n }\n\n writeFileSync(hashFile, wantHash);\n return { changed: true, reason: \"reconciled\" };\n}\n","/**\n * The project-local plugin store: reconcile (`<projectDir>/.skaile/plugins/`)\n * then load the reconciled plugins into the `pluginRegistry`.\n *\n * `ensurePluginsLoaded` is the single entrypoint commands wire in. It is a\n * guarded no-op when `plugins` is empty/undefined — zero overhead for the\n * common case where no project declares `plugins:` in `skaile.yaml`.\n */\n\nimport { type PluginRegistry, pluginRegistry } from \"@skaile/workspaces/plugin-registry\";\nimport type { Logger } from \"@skaile/workspaces/types\";\nimport { type LoadResult, loadPlugins } from \"./load.js\";\nimport { type ReconcileOptions, reconcilePlugins } from \"./reconcile.js\";\n\nexport type { LoadOptions, LoadResult } from \"./load.js\";\nexport { loadPlugins } from \"./load.js\";\nexport {\n lockPath,\n nodeModulesDir,\n pluginsDir,\n pluginsPkgJson,\n reconcileHashFile,\n resolvePluginEntry,\n} from \"./paths.js\";\nexport type { InstallFn, ReconcileOptions, ReconcileResult } from \"./reconcile.js\";\nexport { defaultInstall, reconcilePlugins } from \"./reconcile.js\";\nexport type { PluginSpec } from \"./spec.js\";\nexport { parseSpec, specName } from \"./spec.js\";\n\n/** Options for {@link ensurePluginsLoaded}. */\nexport interface EnsurePluginsOptions extends ReconcileOptions {\n log?: Logger;\n}\n\n/**\n * Reconcile the plugin store then load each plugin into `registry`.\n *\n * No-op (returns immediately) when `plugins` is empty/undefined, so the common\n * no-plugins path costs nothing.\n *\n * @param projectDir - Project root.\n * @param plugins - The `skaile.yaml` `plugins:` list (may be undefined).\n * @param registry - Registry to register into. Defaults to `pluginRegistry`.\n * @param opts - Injectable installer / lock slice + optional logger.\n * @returns The load result, or an empty result when there are no plugins.\n */\nexport async function ensurePluginsLoaded(\n projectDir: string,\n plugins: string[] | undefined,\n registry: PluginRegistry = pluginRegistry,\n opts: EnsurePluginsOptions = {},\n): Promise<LoadResult> {\n if (!plugins || plugins.length === 0) {\n return { loaded: [], failed: [] };\n }\n await reconcilePlugins(projectDir, plugins, opts);\n return loadPlugins(projectDir, plugins, registry, { log: opts.log });\n}\n"]}
@@ -0,0 +1,2 @@
1
+ // Auto-generated by _scripts/emit-dts-sidecars.ts — do not edit by hand.
2
+ export * from "./src/index.js";
@@ -0,0 +1,2 @@
1
+ // Auto-generated by _scripts/emit-dts-sidecars.ts — do not edit by hand.
2
+ export * from "./src/index.js";
@@ -0,0 +1,2 @@
1
+ // Auto-generated by _scripts/emit-dts-sidecars.ts — do not edit by hand.
2
+ export * from "./src/index.js";
@@ -1,5 +1,5 @@
1
- export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-G4BR355S.js';
2
- import '../chunk-RDH4SSMH.js';
1
+ export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-V3QMSM5I.js';
2
+ import '../chunk-NJLHHZIW.js';
3
3
  import '../chunk-X5YPJV4N.js';
4
4
  import '../chunk-O7SG5PC2.js';
5
5
  import '../chunk-W2O5LWYU.js';
@@ -7,29 +7,30 @@ import '../chunk-7PTP3SQJ.js';
7
7
  import '../chunk-PBWMV5GM.js';
8
8
  export { assembleSystemPrompt, buildCapabilitiesPromptSection, buildLinkedPeersPromptSection } from '../chunk-W3UDISS2.js';
9
9
  import '../chunk-TDSRLMDB.js';
10
- import '../chunk-S2OVTCAL.js';
10
+ import '../chunk-M5TE6YI5.js';
11
11
  import '../chunk-DQWREFRQ.js';
12
12
  import '../chunk-KOVLSBXK.js';
13
13
  import '../chunk-RRVQAE5D.js';
14
- import '../chunk-4ACWI5YT.js';
15
- import '../chunk-XAVM2BAJ.js';
16
- import '../chunk-H45ANMIU.js';
14
+ import '../chunk-6VTG73UY.js';
15
+ import '../chunk-LV2HPH3C.js';
16
+ import '../chunk-LT4DLEYE.js';
17
+ import '../chunk-APAOQLPT.js';
17
18
  import '../chunk-6MB7CRME.js';
18
19
  import '../chunk-QAVZOJCV.js';
20
+ import '../chunk-6E6PKKAD.js';
19
21
  import '../chunk-ICS76R4T.js';
20
22
  import '../chunk-GZWJGNNN.js';
21
23
  import '../chunk-FVTV7M76.js';
22
- export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-W5DFC35Z.js';
23
- import '../chunk-JKNWJ64A.js';
24
- export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
24
+ export { globalSettingsPath, loadSettings, mapLegacyFields, projectSettingsPath, resolveSettings, saveSettings } from '../chunk-UMOENHVH.js';
25
25
  export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
26
26
  import '../chunk-KLNL7QHN.js';
27
- import '../chunk-DFUXWNTS.js';
28
- import '../chunk-5QNQLSBW.js';
29
- import '../chunk-FRPKLIEZ.js';
30
- import '../chunk-37JKX6D7.js';
27
+ import '../chunk-GFNW72LW.js';
28
+ import '../chunk-J3VKAEQP.js';
29
+ import '../chunk-4AZKT2BU.js';
30
+ import '../chunk-I3UEM3FX.js';
31
+ import '../chunk-JKNWJ64A.js';
32
+ export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
31
33
  import '../chunk-24UIWON4.js';
32
- import '../chunk-LV2HPH3C.js';
33
34
  import '../chunk-NSBPE2FW.js';
34
35
  //# sourceMappingURL=index.js.map
35
36
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ // Auto-generated by _scripts/emit-dts-sidecars.ts — do not edit by hand.
2
+ export * from "./src/prompt-assembly.js";
@@ -1 +1 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../runner/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAGL,KAAK,oBAAoB,EAMzB,KAAK,uBAAuB,EAE5B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAGL,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AAejC;;;;GA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