@skaile/workspaces 5.5.0 → 5.6.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 (423) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/dist/app-sdk/index.js +1 -1
  3. package/dist/{asset-feeds-KTFUB7EX.js → asset-feeds-LU7NHOAP.js} +27 -14
  4. package/dist/asset-feeds-LU7NHOAP.js.map +1 -0
  5. package/dist/asset-manager/catalog-deployer.js +9 -9
  6. package/dist/asset-manager/index.js +18 -18
  7. package/dist/asset-manager/installer.js +11 -11
  8. package/dist/asset-manager/renderers.js +20 -2
  9. package/dist/asset-manager/src/index.d.ts +66 -24
  10. package/dist/asset-manager/src/index.d.ts.map +1 -1
  11. package/dist/asset-manager/src/install-agent.d.ts +22 -14
  12. package/dist/asset-manager/src/install-agent.d.ts.map +1 -1
  13. package/dist/asset-manager/src/install-instances.d.ts +55 -0
  14. package/dist/asset-manager/src/install-instances.d.ts.map +1 -0
  15. package/dist/asset-manager/src/installer.d.ts +30 -7
  16. package/dist/asset-manager/src/installer.d.ts.map +1 -1
  17. package/dist/asset-manager/src/renderers.d.ts +29 -8
  18. package/dist/asset-manager/src/renderers.d.ts.map +1 -1
  19. package/dist/bridge/drivers/claude-sdk.js +14 -14
  20. package/dist/bridge/drivers/codex.js +20 -14
  21. package/dist/bridge/drivers/codex.js.map +1 -1
  22. package/dist/bridge/drivers/continue.js +11 -11
  23. package/dist/bridge/drivers/echo.js +3 -3
  24. package/dist/bridge/drivers/gemini.js +6 -6
  25. package/dist/bridge/drivers/goose.js +11 -11
  26. package/dist/bridge/drivers/omp.js +4 -4
  27. package/dist/bridge/drivers/opencode.js +11 -11
  28. package/dist/bridge/drivers/qwen.js +6 -6
  29. package/dist/bridge/index.js +15 -15
  30. package/dist/bridge/src/codex/native-policy.d.ts +1 -1
  31. package/dist/bridge/src/drivers/codex.d.ts +2 -1
  32. package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
  33. package/dist/{chunk-LCULZ4ED.js → chunk-27HS2DHB.js} +4 -4
  34. package/dist/{chunk-LCULZ4ED.js.map → chunk-27HS2DHB.js.map} +1 -1
  35. package/dist/{chunk-X4GO3GJZ.js → chunk-2GRB5ITE.js} +4 -4
  36. package/dist/{chunk-X4GO3GJZ.js.map → chunk-2GRB5ITE.js.map} +1 -1
  37. package/dist/{chunk-75EX5GY4.js → chunk-2KOKBTR4.js} +197 -118
  38. package/dist/chunk-2KOKBTR4.js.map +1 -0
  39. package/dist/{chunk-ES2FXWQ4.js → chunk-2NYXQYHN.js} +4 -4
  40. package/dist/{chunk-ES2FXWQ4.js.map → chunk-2NYXQYHN.js.map} +1 -1
  41. package/dist/{chunk-ORUHADS6.js → chunk-2W4LBLIN.js} +386 -60
  42. package/dist/chunk-2W4LBLIN.js.map +1 -0
  43. package/dist/{chunk-SNVOASTL.js → chunk-2XFUXGV6.js} +3 -3
  44. package/dist/{chunk-SNVOASTL.js.map → chunk-2XFUXGV6.js.map} +1 -1
  45. package/dist/{chunk-ZDKJHQY2.js → chunk-3TXEJN4W.js} +2 -2
  46. package/dist/{chunk-ZDKJHQY2.js.map → chunk-3TXEJN4W.js.map} +1 -1
  47. package/dist/{chunk-JELTQ4H7.js → chunk-45VFGT7A.js} +3 -3
  48. package/dist/{chunk-JELTQ4H7.js.map → chunk-45VFGT7A.js.map} +1 -1
  49. package/dist/{chunk-XGIS325V.js → chunk-46OVMT76.js} +3 -3
  50. package/dist/{chunk-XGIS325V.js.map → chunk-46OVMT76.js.map} +1 -1
  51. package/dist/{chunk-37GBJLF5.js → chunk-47ZD34KB.js} +3 -3
  52. package/dist/{chunk-37GBJLF5.js.map → chunk-47ZD34KB.js.map} +1 -1
  53. package/dist/{chunk-LFEGIZTW.js → chunk-4GNJELPH.js} +2 -2
  54. package/dist/{chunk-LFEGIZTW.js.map → chunk-4GNJELPH.js.map} +1 -1
  55. package/dist/{chunk-V7VDSFPS.js → chunk-5B5IZVEP.js} +2 -2
  56. package/dist/{chunk-V7VDSFPS.js.map → chunk-5B5IZVEP.js.map} +1 -1
  57. package/dist/{chunk-EJYZ3MKJ.js → chunk-65EYRFZJ.js} +4 -4
  58. package/dist/{chunk-EJYZ3MKJ.js.map → chunk-65EYRFZJ.js.map} +1 -1
  59. package/dist/{chunk-CODXK5L5.js → chunk-6NPINANG.js} +6 -6
  60. package/dist/{chunk-CODXK5L5.js.map → chunk-6NPINANG.js.map} +1 -1
  61. package/dist/{chunk-XBM5ND55.js → chunk-7KLC4LZO.js} +8 -8
  62. package/dist/{chunk-XBM5ND55.js.map → chunk-7KLC4LZO.js.map} +1 -1
  63. package/dist/{chunk-SR4RFKHM.js → chunk-7ZHLYXTI.js} +3 -3
  64. package/dist/{chunk-SR4RFKHM.js.map → chunk-7ZHLYXTI.js.map} +1 -1
  65. package/dist/{chunk-WX74MVNA.js → chunk-AO7VJ6G6.js} +3 -24
  66. package/dist/chunk-AO7VJ6G6.js.map +1 -0
  67. package/dist/{chunk-DPMKI26Y.js → chunk-AOAZCSDI.js} +4 -3
  68. package/dist/chunk-AOAZCSDI.js.map +1 -0
  69. package/dist/{chunk-YK7WJSTD.js → chunk-BF33SCLY.js} +10 -5
  70. package/dist/chunk-BF33SCLY.js.map +1 -0
  71. package/dist/{chunk-VKSA2CDJ.js → chunk-BTISGSK4.js} +4 -4
  72. package/dist/{chunk-VKSA2CDJ.js.map → chunk-BTISGSK4.js.map} +1 -1
  73. package/dist/{chunk-TOSHZX4C.js → chunk-CPSIPIX7.js} +2 -2
  74. package/dist/chunk-CPSIPIX7.js.map +1 -0
  75. package/dist/{chunk-5Y3L7XWH.js → chunk-D2V42LUE.js} +15 -15
  76. package/dist/chunk-D2V42LUE.js.map +1 -0
  77. package/dist/{chunk-K2K7OF4P.js → chunk-DMLDYFDS.js} +23 -6
  78. package/dist/chunk-DMLDYFDS.js.map +1 -0
  79. package/dist/{chunk-QMWMSZQ4.js → chunk-FK6HPLQA.js} +3 -3
  80. package/dist/{chunk-QMWMSZQ4.js.map → chunk-FK6HPLQA.js.map} +1 -1
  81. package/dist/chunk-FRHE7FFB.js +655 -0
  82. package/dist/chunk-FRHE7FFB.js.map +1 -0
  83. package/dist/{chunk-UFS3FEBA.js → chunk-GP6ZL7PE.js} +3 -3
  84. package/dist/{chunk-UFS3FEBA.js.map → chunk-GP6ZL7PE.js.map} +1 -1
  85. package/dist/{chunk-P6KFWTGP.js → chunk-I4QBZLOR.js} +7 -12
  86. package/dist/chunk-I4QBZLOR.js.map +1 -0
  87. package/dist/{chunk-C4GF7RSQ.js → chunk-KUFNKVBM.js} +3 -3
  88. package/dist/{chunk-C4GF7RSQ.js.map → chunk-KUFNKVBM.js.map} +1 -1
  89. package/dist/{chunk-GCYD4EGY.js → chunk-KYXOGHY6.js} +4 -4
  90. package/dist/{chunk-GCYD4EGY.js.map → chunk-KYXOGHY6.js.map} +1 -1
  91. package/dist/{chunk-G474PBUQ.js → chunk-LLKKLKZJ.js} +3 -3
  92. package/dist/{chunk-G474PBUQ.js.map → chunk-LLKKLKZJ.js.map} +1 -1
  93. package/dist/{chunk-AC2N5BRP.js → chunk-MX3UQXLU.js} +18 -30
  94. package/dist/chunk-MX3UQXLU.js.map +1 -0
  95. package/dist/{chunk-BNUZEYC3.js → chunk-NARITJS2.js} +3 -3
  96. package/dist/{chunk-BNUZEYC3.js.map → chunk-NARITJS2.js.map} +1 -1
  97. package/dist/{chunk-Y4QWHIHB.js → chunk-OGLDAJFL.js} +4 -4
  98. package/dist/{chunk-Y4QWHIHB.js.map → chunk-OGLDAJFL.js.map} +1 -1
  99. package/dist/chunk-OLLAQLFJ.js +17 -0
  100. package/dist/chunk-OLLAQLFJ.js.map +1 -0
  101. package/dist/{chunk-LFMX2UEF.js → chunk-PA7WLID3.js} +86 -69
  102. package/dist/chunk-PA7WLID3.js.map +1 -0
  103. package/dist/{chunk-K2NUT3HO.js → chunk-PJS2YWGG.js} +6 -6
  104. package/dist/{chunk-K2NUT3HO.js.map → chunk-PJS2YWGG.js.map} +1 -1
  105. package/dist/{chunk-MMC24L2W.js → chunk-PTO2YDDG.js} +286 -121
  106. package/dist/chunk-PTO2YDDG.js.map +1 -0
  107. package/dist/{chunk-3665M43C.js → chunk-QD772CGQ.js} +5 -5
  108. package/dist/{chunk-3665M43C.js.map → chunk-QD772CGQ.js.map} +1 -1
  109. package/dist/{chunk-G2O2AARG.js → chunk-RGXVQZOV.js} +6021 -3099
  110. package/dist/chunk-RGXVQZOV.js.map +1 -0
  111. package/dist/{chunk-JKWU6ULI.js → chunk-SDFROXSA.js} +3 -3
  112. package/dist/{chunk-JKWU6ULI.js.map → chunk-SDFROXSA.js.map} +1 -1
  113. package/dist/{chunk-WHSQSVN2.js → chunk-SX4UIDKT.js} +3 -3
  114. package/dist/{chunk-WHSQSVN2.js.map → chunk-SX4UIDKT.js.map} +1 -1
  115. package/dist/{chunk-3JHFFIQ6.js → chunk-TZCQ7ZWQ.js} +83 -9
  116. package/dist/chunk-TZCQ7ZWQ.js.map +1 -0
  117. package/dist/{chunk-UHLBDAJR.js → chunk-UAP2XHRF.js} +10 -10
  118. package/dist/{chunk-UHLBDAJR.js.map → chunk-UAP2XHRF.js.map} +1 -1
  119. package/dist/{chunk-LAI7X6I2.js → chunk-VBBBZDI7.js} +3 -3
  120. package/dist/{chunk-LAI7X6I2.js.map → chunk-VBBBZDI7.js.map} +1 -1
  121. package/dist/{chunk-R4G7XI7A.js → chunk-VJENKWXF.js} +4 -5
  122. package/dist/chunk-VJENKWXF.js.map +1 -0
  123. package/dist/{chunk-TNWXGHLD.js → chunk-VKSXST23.js} +51 -42
  124. package/dist/chunk-VKSXST23.js.map +1 -0
  125. package/dist/{chunk-HTKZ4AOW.js → chunk-VSQFGU5D.js} +3 -3
  126. package/dist/{chunk-HTKZ4AOW.js.map → chunk-VSQFGU5D.js.map} +1 -1
  127. package/dist/{chunk-JBPG5KQC.js → chunk-VX3INFBA.js} +4 -4
  128. package/dist/{chunk-JBPG5KQC.js.map → chunk-VX3INFBA.js.map} +1 -1
  129. package/dist/{chunk-N3Y43LMZ.js → chunk-WIHQWVWL.js} +34 -11
  130. package/dist/chunk-WIHQWVWL.js.map +1 -0
  131. package/dist/{chunk-Y7UBRRKG.js → chunk-XOGG7VDZ.js} +40 -31
  132. package/dist/chunk-XOGG7VDZ.js.map +1 -0
  133. package/dist/{chunk-JAJG4G5E.js → chunk-ZBBM6O6P.js} +3 -3
  134. package/dist/{chunk-JAJG4G5E.js.map → chunk-ZBBM6O6P.js.map} +1 -1
  135. package/dist/cli/index.js +5025 -3406
  136. package/dist/cli/index.js.map +1 -1
  137. package/dist/cli/src/asset-feeds.d.ts.map +1 -1
  138. package/dist/cli/src/commands/catalog.d.ts +7 -7
  139. package/dist/cli/src/commands/catalog.d.ts.map +1 -1
  140. package/dist/cli/src/commands/connector.d.ts +2 -2
  141. package/dist/cli/src/commands/connector.d.ts.map +1 -1
  142. package/dist/cli/src/commands/diff.d.ts.map +1 -1
  143. package/dist/cli/src/commands/history.d.ts.map +1 -1
  144. package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
  145. package/dist/cli/src/commands/manage.d.ts.map +1 -1
  146. package/dist/cli/src/commands/migrate-agents.d.ts +131 -0
  147. package/dist/cli/src/commands/migrate-agents.d.ts.map +1 -0
  148. package/dist/cli/src/commands/migrate-assets.d.ts +54 -0
  149. package/dist/cli/src/commands/migrate-assets.d.ts.map +1 -0
  150. package/dist/cli/src/commands/migrate-files.d.ts +52 -0
  151. package/dist/cli/src/commands/migrate-files.d.ts.map +1 -0
  152. package/dist/cli/src/commands/migrate-providers.d.ts +5 -8
  153. package/dist/cli/src/commands/migrate-providers.d.ts.map +1 -1
  154. package/dist/cli/src/commands/migrate.d.ts +21 -0
  155. package/dist/cli/src/commands/migrate.d.ts.map +1 -0
  156. package/dist/cli/src/commands/npx.d.ts.map +1 -1
  157. package/dist/cli/src/commands/outdated.d.ts.map +1 -1
  158. package/dist/cli/src/commands/patch.d.ts.map +1 -1
  159. package/dist/cli/src/commands/preset-cmd.d.ts.map +1 -1
  160. package/dist/cli/src/commands/project.d.ts +13 -1
  161. package/dist/cli/src/commands/project.d.ts.map +1 -1
  162. package/dist/cli/src/commands/rebuild.d.ts.map +1 -1
  163. package/dist/cli/src/commands/run.d.ts.map +1 -1
  164. package/dist/cli/src/commands/show.d.ts.map +1 -1
  165. package/dist/cli/src/commands/tree.d.ts.map +1 -1
  166. package/dist/cli/src/commands/update.d.ts.map +1 -1
  167. package/dist/cli/src/commands/validate-instances.d.ts +17 -0
  168. package/dist/cli/src/commands/validate-instances.d.ts.map +1 -0
  169. package/dist/cli/src/commands/validate.d.ts +14 -0
  170. package/dist/cli/src/commands/validate.d.ts.map +1 -1
  171. package/dist/cli/src/commands/why.d.ts.map +1 -1
  172. package/dist/cli/src/helpers.d.ts.map +1 -1
  173. package/dist/cli/src/open-library.d.ts.map +1 -1
  174. package/dist/cli/src/open-registry.d.ts +13 -16
  175. package/dist/cli/src/open-registry.d.ts.map +1 -1
  176. package/dist/cli/src/type-guards.d.ts +3 -0
  177. package/dist/cli/src/type-guards.d.ts.map +1 -0
  178. package/dist/connectors/config.js +6 -6
  179. package/dist/connectors/index.js +19 -19
  180. package/dist/{connectors-MPYCSQNG.js → connectors-HWENZFKW.js} +22 -22
  181. package/dist/{connectors-MPYCSQNG.js.map → connectors-HWENZFKW.js.map} +1 -1
  182. package/dist/connectors-shared/index.js +2 -2
  183. package/dist/core/driver-targets.js +1 -1
  184. package/dist/core/index.js +8 -8
  185. package/dist/core/manifest.js +2 -2
  186. package/dist/core/models.js +1 -1
  187. package/dist/core/publish-manifest.js +2 -2
  188. package/dist/core/ref.js +1 -1
  189. package/dist/core/runtime-assets.js +6 -6
  190. package/dist/core/src/agent-instances.d.ts +93 -0
  191. package/dist/core/src/agent-instances.d.ts.map +1 -0
  192. package/dist/core/src/agent-prompt-sections.d.ts +90 -0
  193. package/dist/core/src/agent-prompt-sections.d.ts.map +1 -0
  194. package/dist/core/src/driver-targets.d.ts +4 -2
  195. package/dist/core/src/driver-targets.d.ts.map +1 -1
  196. package/dist/core/src/index.d.ts +12 -8
  197. package/dist/core/src/index.d.ts.map +1 -1
  198. package/dist/core/src/manifest.d.ts +71 -27
  199. package/dist/core/src/manifest.d.ts.map +1 -1
  200. package/dist/core/src/models.d.ts +6 -92
  201. package/dist/core/src/models.d.ts.map +1 -1
  202. package/dist/core/src/repo-manager.d.ts +47 -3
  203. package/dist/core/src/repo-manager.d.ts.map +1 -1
  204. package/dist/core/src/type-guards.d.ts +3 -0
  205. package/dist/core/src/type-guards.d.ts.map +1 -0
  206. package/dist/core/src/walker.d.ts +7 -3
  207. package/dist/core/src/walker.d.ts.map +1 -1
  208. package/dist/core/src/workspace-config.d.ts +19 -15
  209. package/dist/core/src/workspace-config.d.ts.map +1 -1
  210. package/dist/core/store.js +2 -2
  211. package/dist/core/workspace-config.js +5 -5
  212. package/dist/deploy/index.js +8 -8
  213. package/dist/discovery/index.js +6 -6
  214. package/dist/discovery/src/builtin-providers.d.ts +5 -4
  215. package/dist/discovery/src/builtin-providers.d.ts.map +1 -1
  216. package/dist/discovery/src/default-registry.d.ts +23 -0
  217. package/dist/discovery/src/default-registry.d.ts.map +1 -0
  218. package/dist/discovery/src/discover.d.ts +0 -6
  219. package/dist/discovery/src/discover.d.ts.map +1 -1
  220. package/dist/discovery/src/index.d.ts +2 -1
  221. package/dist/discovery/src/index.d.ts.map +1 -1
  222. package/dist/discovery/src/tree-entries.d.ts +1 -1
  223. package/dist/discovery/src/tree-entries.d.ts.map +1 -1
  224. package/dist/{ensure-sources-QFRA46DJ.js → ensure-sources-DSTSXJWK.js} +21 -21
  225. package/dist/{ensure-sources-QFRA46DJ.js.map → ensure-sources-DSTSXJWK.js.map} +1 -1
  226. package/dist/factory-assets/README.md +3 -3
  227. package/dist/factory-assets/connectors/box.js +19 -19
  228. package/dist/factory-assets/connectors/deploy.js +19 -19
  229. package/dist/factory-assets/connectors/devserver.js +19 -19
  230. package/dist/factory-assets/connectors/flow/adapter.js +19 -19
  231. package/dist/factory-assets/connectors/flow/engine/flow-kind-provider.d.ts.map +1 -1
  232. package/dist/factory-assets/connectors/flow/engine.js +9 -9
  233. package/dist/factory-assets/connectors/flow/run-flow.js +21 -21
  234. package/dist/factory-assets/connectors/flow.js +19 -19
  235. package/dist/factory-assets/connectors/git.js +19 -19
  236. package/dist/factory-assets/connectors/gmail.js +19 -19
  237. package/dist/factory-assets/connectors/googledrive.js +19 -19
  238. package/dist/factory-assets/connectors/local.js +19 -19
  239. package/dist/factory-assets/connectors/mattermost.js +19 -19
  240. package/dist/factory-assets/connectors/memory.js +19 -19
  241. package/dist/factory-assets/connectors/minio.js +19 -19
  242. package/dist/factory-assets/connectors/postgres.js +19 -19
  243. package/dist/factory-assets/connectors/s3.js +19 -19
  244. package/dist/factory-assets/connectors/sharepoint.js +19 -19
  245. package/dist/factory-assets/connectors/sqlite.js +19 -19
  246. package/dist/factory-assets/connectors/static-server.js +19 -19
  247. package/dist/factory-assets/connectors/tunnel.js +19 -19
  248. package/dist/factory-assets/connectors/webdav.js +19 -19
  249. package/dist/factory-assets/connectors/xstate-store.js +19 -19
  250. package/dist/factory-assets/connectors/xstate.js +19 -19
  251. package/dist/factory-assets/index.js.map +1 -1
  252. package/dist/factory-assets/presets/workspaces-authoring/workspaces-authoring.preset.yaml +9 -0
  253. package/dist/factory-assets/skaile.manifest.yaml +2 -2
  254. package/dist/factory-assets/skills/authoring-skaile-assets/SKILL.md +16 -12
  255. package/dist/factory-assets/skills/authoring-skaile-manifests/SKILL.md +8 -8
  256. package/dist/factory-assets/skills/authoring-skaile-manifests/references/dependency-standard.md +13 -11
  257. package/dist/factory-assets/skills/skaile-manage-workspace/SKILL.md +1 -1
  258. package/dist/{flows-KCARGXRT.js → flows-ENQY2DV7.js} +13 -13
  259. package/dist/{flows-KCARGXRT.js.map → flows-ENQY2DV7.js.map} +1 -1
  260. package/dist/{helpers-PSROT7CU.js → helpers-R44RUTDY.js} +21 -21
  261. package/dist/{helpers-PSROT7CU.js.map → helpers-R44RUTDY.js.map} +1 -1
  262. package/dist/library/index.js +13 -13
  263. package/dist/library/install.js +3 -3
  264. package/dist/library/src/index.d.ts +2 -2
  265. package/dist/library/src/index.d.ts.map +1 -1
  266. package/dist/library/src/library.d.ts +2 -12
  267. package/dist/library/src/library.d.ts.map +1 -1
  268. package/dist/library/src/local/local-catalog-source.d.ts +2 -2
  269. package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
  270. package/dist/library/src/manifest-writer.d.ts +4 -1
  271. package/dist/library/src/manifest-writer.d.ts.map +1 -1
  272. package/dist/library/src/sync/manifest-writeback.d.ts.map +1 -1
  273. package/dist/{library-publish-YAI7WOXC.js → library-publish-LFOJJVMK.js} +27 -27
  274. package/dist/{library-publish-YAI7WOXC.js.map → library-publish-LFOJJVMK.js.map} +1 -1
  275. package/dist/open-library-4WUMQHES.js +40 -0
  276. package/dist/{open-library-Z5NJU4Z5.js.map → open-library-4WUMQHES.js.map} +1 -1
  277. package/dist/open-registry-NVPCQPND.js +32 -0
  278. package/dist/{open-registry-TYUVN5SG.js.map → open-registry-NVPCQPND.js.map} +1 -1
  279. package/dist/paths-YUCP7K6U.js +22 -0
  280. package/dist/{paths-HKAXUR3W.js.map → paths-YUCP7K6U.js.map} +1 -1
  281. package/dist/{plugin-store-N6SI2TYM.js → plugin-store-66QFBNEO.js} +10 -10
  282. package/dist/{plugin-store-N6SI2TYM.js.map → plugin-store-66QFBNEO.js.map} +1 -1
  283. package/dist/plugins/index.js +1 -1
  284. package/dist/plugins/src/asset-kind-provider.d.ts +14 -2
  285. package/dist/plugins/src/asset-kind-provider.d.ts.map +1 -1
  286. package/dist/plugins/src/index.d.ts +1 -1
  287. package/dist/plugins/src/index.d.ts.map +1 -1
  288. package/dist/project-VMOHUXBD.js +41 -0
  289. package/dist/{project-SVS4UMGL.js.map → project-VMOHUXBD.js.map} +1 -1
  290. package/dist/resolver/index.js +9 -9
  291. package/dist/runner/index.js +34 -29
  292. package/dist/runner/src/agent-capabilities.d.ts +101 -0
  293. package/dist/runner/src/agent-capabilities.d.ts.map +1 -0
  294. package/dist/runner/src/agent.d.ts.map +1 -1
  295. package/dist/runner/src/agents/in-process-host.d.ts +56 -0
  296. package/dist/runner/src/agents/in-process-host.d.ts.map +1 -0
  297. package/dist/runner/src/agents/instances.d.ts +62 -0
  298. package/dist/runner/src/agents/instances.d.ts.map +1 -0
  299. package/dist/runner/src/agents/json-schema.d.ts +16 -0
  300. package/dist/runner/src/agents/json-schema.d.ts.map +1 -0
  301. package/dist/runner/src/agents/memory-run-store.d.ts +19 -0
  302. package/dist/runner/src/agents/memory-run-store.d.ts.map +1 -0
  303. package/dist/runner/src/agents/run-controller.d.ts +208 -0
  304. package/dist/runner/src/agents/run-controller.d.ts.map +1 -0
  305. package/dist/runner/src/agents/standalone-surface.d.ts +30 -0
  306. package/dist/runner/src/agents/standalone-surface.d.ts.map +1 -0
  307. package/dist/runner/src/capability-registry.d.ts.map +1 -1
  308. package/dist/runner/src/composition/bootstrap.d.ts +13 -51
  309. package/dist/runner/src/composition/bootstrap.d.ts.map +1 -1
  310. package/dist/runner/src/composition/compile.d.ts +43 -27
  311. package/dist/runner/src/composition/compile.d.ts.map +1 -1
  312. package/dist/runner/src/composition/content-source.d.ts +94 -0
  313. package/dist/runner/src/composition/content-source.d.ts.map +1 -0
  314. package/dist/runner/src/composition/dry-run.d.ts +34 -0
  315. package/dist/runner/src/composition/dry-run.d.ts.map +1 -0
  316. package/dist/runner/src/composition/errors.d.ts +41 -0
  317. package/dist/runner/src/composition/errors.d.ts.map +1 -0
  318. package/dist/runner/src/composition/index.d.ts +10 -3
  319. package/dist/runner/src/composition/index.d.ts.map +1 -1
  320. package/dist/runner/src/composition/prompt-sections.d.ts +31 -0
  321. package/dist/runner/src/composition/prompt-sections.d.ts.map +1 -0
  322. package/dist/runner/src/composition/resolve-instance.d.ts +140 -0
  323. package/dist/runner/src/composition/resolve-instance.d.ts.map +1 -0
  324. package/dist/runner/src/composition/resolve.d.ts +43 -25
  325. package/dist/runner/src/composition/resolve.d.ts.map +1 -1
  326. package/dist/runner/src/composition/revision-hash.d.ts +58 -0
  327. package/dist/runner/src/composition/revision-hash.d.ts.map +1 -0
  328. package/dist/runner/src/composition/run-snapshot.d.ts +37 -0
  329. package/dist/runner/src/composition/run-snapshot.d.ts.map +1 -0
  330. package/dist/runner/src/composition/types.d.ts +79 -12
  331. package/dist/runner/src/composition/types.d.ts.map +1 -1
  332. package/dist/runner/src/index.d.ts +2 -0
  333. package/dist/runner/src/index.d.ts.map +1 -1
  334. package/dist/runner/src/manifest.d.ts +1 -1
  335. package/dist/runner/src/manifest.d.ts.map +1 -1
  336. package/dist/runner/src/mixin-resolver.d.ts +14 -15
  337. package/dist/runner/src/mixin-resolver.d.ts.map +1 -1
  338. package/dist/runner/src/serve.d.ts +6 -0
  339. package/dist/runner/src/serve.d.ts.map +1 -1
  340. package/dist/runner/src/session-builder.d.ts +35 -6
  341. package/dist/runner/src/session-builder.d.ts.map +1 -1
  342. package/dist/sdk/asset-manager.js +18 -18
  343. package/dist/sdk/bridge.js +15 -15
  344. package/dist/sdk/core.js +8 -8
  345. package/dist/sdk/flow.js +9 -9
  346. package/dist/sdk/index.js +34 -29
  347. package/dist/sdk/index.js.map +1 -1
  348. package/dist/sdk/resolver.js +9 -9
  349. package/dist/sdk/runner.js +34 -29
  350. package/dist/sdk/session.js +2 -2
  351. package/dist/sdk/types.js +1 -1
  352. package/dist/secrets/index.js +2 -2
  353. package/dist/session/index.js +2 -2
  354. package/dist/{setup-IOEZGJNC.js → setup-PYY23HGZ.js} +28 -28
  355. package/dist/{setup-IOEZGJNC.js.map → setup-PYY23HGZ.js.map} +1 -1
  356. package/dist/skills-CS7NE5TT.js +26 -0
  357. package/dist/{skills-HW6I6ZZ7.js.map → skills-CS7NE5TT.js.map} +1 -1
  358. package/dist/source-JCF6KSQN.js +41 -0
  359. package/dist/{source-OKRJT53H.js.map → source-JCF6KSQN.js.map} +1 -1
  360. package/dist/{source-manifest-publish-MILEQDRD.js → source-manifest-publish-O6P7G2M7.js} +27 -27
  361. package/dist/{source-manifest-publish-MILEQDRD.js.map → source-manifest-publish-O6P7G2M7.js.map} +1 -1
  362. package/dist/tui/index.js +34 -29
  363. package/dist/tui/index.js.map +1 -1
  364. package/dist/types/index.js +1 -1
  365. package/dist/types/manifests.js +1 -1
  366. package/dist/types/src/agent-lifecycle.d.ts +402 -0
  367. package/dist/types/src/agent-lifecycle.d.ts.map +1 -0
  368. package/dist/types/src/capabilities.d.ts +0 -4
  369. package/dist/types/src/capabilities.d.ts.map +1 -1
  370. package/dist/types/src/delivery.d.ts.map +1 -1
  371. package/dist/types/src/events.d.ts +66 -4
  372. package/dist/types/src/events.d.ts.map +1 -1
  373. package/dist/types/src/index.d.ts +3 -1
  374. package/dist/types/src/index.d.ts.map +1 -1
  375. package/dist/types/src/lifecycle.d.ts +21 -3
  376. package/dist/types/src/lifecycle.d.ts.map +1 -1
  377. package/dist/types/src/manifests/_shared.d.ts +1 -16
  378. package/dist/types/src/manifests/_shared.d.ts.map +1 -1
  379. package/dist/types/src/manifests/agent-composition.d.ts +44 -0
  380. package/dist/types/src/manifests/agent-composition.d.ts.map +1 -0
  381. package/dist/types/src/manifests/agent.d.ts +184 -6
  382. package/dist/types/src/manifests/agent.d.ts.map +1 -1
  383. package/dist/types/src/manifests/index.d.ts +6 -15
  384. package/dist/types/src/manifests/index.d.ts.map +1 -1
  385. package/dist/types/src/manifests/preset.d.ts +5 -5
  386. package/dist/types/src/version.d.ts +16 -1
  387. package/dist/types/src/version.d.ts.map +1 -1
  388. package/dist/workspace-plugin/adapters/mcp.js +26 -26
  389. package/dist/workspace-plugin/adapters/omp.js +14 -14
  390. package/dist/workspace-plugin/index.js +1 -1
  391. package/package.json +3 -1
  392. package/dist/asset-feeds-KTFUB7EX.js.map +0 -1
  393. package/dist/chunk-2D2P7HSR.js +0 -15
  394. package/dist/chunk-2D2P7HSR.js.map +0 -1
  395. package/dist/chunk-3JHFFIQ6.js.map +0 -1
  396. package/dist/chunk-5CYEWBPB.js +0 -440
  397. package/dist/chunk-5CYEWBPB.js.map +0 -1
  398. package/dist/chunk-5Y3L7XWH.js.map +0 -1
  399. package/dist/chunk-75EX5GY4.js.map +0 -1
  400. package/dist/chunk-AC2N5BRP.js.map +0 -1
  401. package/dist/chunk-DPMKI26Y.js.map +0 -1
  402. package/dist/chunk-G2O2AARG.js.map +0 -1
  403. package/dist/chunk-K2K7OF4P.js.map +0 -1
  404. package/dist/chunk-LFMX2UEF.js.map +0 -1
  405. package/dist/chunk-MMC24L2W.js.map +0 -1
  406. package/dist/chunk-N3Y43LMZ.js.map +0 -1
  407. package/dist/chunk-ORUHADS6.js.map +0 -1
  408. package/dist/chunk-P6KFWTGP.js.map +0 -1
  409. package/dist/chunk-R4G7XI7A.js.map +0 -1
  410. package/dist/chunk-TNWXGHLD.js.map +0 -1
  411. package/dist/chunk-TOSHZX4C.js.map +0 -1
  412. package/dist/chunk-WX74MVNA.js.map +0 -1
  413. package/dist/chunk-Y7UBRRKG.js.map +0 -1
  414. package/dist/chunk-YK7WJSTD.js.map +0 -1
  415. package/dist/factory-assets/bundles/workspaces-authoring/workspaces-authoring.bundle.yaml +0 -9
  416. package/dist/open-library-Z5NJU4Z5.js +0 -40
  417. package/dist/open-registry-TYUVN5SG.js +0 -32
  418. package/dist/paths-HKAXUR3W.js +0 -22
  419. package/dist/project-SVS4UMGL.js +0 -36
  420. package/dist/skills-HW6I6ZZ7.js +0 -26
  421. package/dist/source-OKRJT53H.js +0 -41
  422. package/dist/types/src/manifests/mount.d.ts +0 -21
  423. package/dist/types/src/manifests/mount.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-controller.d.ts","sourceRoot":"","sources":["../../../../runner/src/agents/run-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAGH,OAAO,KAAK,EAEV,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AAC;IACnE,gHAAgH;IAChH,eAAe,CACb,KAAK,EAAE,MAAM,EACb,IAAI,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,GAC3D,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,4FAA4F;IAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAiCD,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CAk2B1E"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * agents/standalone-surface.ts
3
+ *
4
+ * The agent surface for a session that has no host and no `startAgentServer`
5
+ * around it (`skaile run "<prompt>"`, `skaile repl`): `agent.*` served by a
6
+ * nested driver session in this process, no `memory.*`, no `trigger.*`. Builds
7
+ * the capability registry, registers the surface, and hands back the
8
+ * `AgentSessionConfig` fields a session needs to expose it.
9
+ */
10
+ import type { AgentEvent, Logger } from "@skaile/workspaces/types";
11
+ import type { AgentSession, AgentSessionConfig } from "../session-builder.js";
12
+ export interface StandaloneAgentSurfaceOpts {
13
+ /** The session config the surface is for (its driver, model and agent dir seed the nested role sessions). */
14
+ config: AgentSessionConfig;
15
+ /** Receives the `subagent` events of role runs. */
16
+ onEvent?: (event: AgentEvent) => void;
17
+ log?: Logger;
18
+ /** Builds a nested role session; defaults to `createAgentSession` (a seam for tests). */
19
+ createSession: (config: AgentSessionConfig) => Promise<AgentSession>;
20
+ }
21
+ export interface StandaloneAgentSurface {
22
+ /** Fields to layer onto the session config; `undefined` when the workspace has no instance to run. */
23
+ sessionConfig: Partial<AgentSessionConfig> | undefined;
24
+ /** Re-resolve the instances once the session is built (its composed `run` sub-agents are known then). */
25
+ attach: (session: AgentSession) => Promise<void>;
26
+ dispose: () => Promise<void>;
27
+ }
28
+ /** Build the in-process agent surface for `config`'s workspace, or none when the workspace declares no instance beyond the primary. */
29
+ export declare function createStandaloneAgentSurface(opts: StandaloneAgentSurfaceOpts): Promise<StandaloneAgentSurface>;
30
+ //# sourceMappingURL=standalone-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standalone-surface.d.ts","sourceRoot":"","sources":["../../../../runner/src/agents/standalone-surface.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAUnE,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI9E,MAAM,WAAW,0BAA0B;IACzC,6GAA6G;IAC7G,MAAM,EAAE,kBAAkB,CAAC;IAC3B,mDAAmD;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,aAAa,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;CACtE;AAED,MAAM,WAAW,sBAAsB;IACrC,sGAAsG;IACtG,aAAa,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IACvD,yGAAyG;IACzG,MAAM,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAQD,uIAAuI;AACvI,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CAiFjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../../runner/src/capability-registry.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACV,UAAU,EAEV,gBAAgB,EAChB,MAAM,EACP,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,iBAA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IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,GACnC,OAAO,CAAC,OAAO,CAAC;IAkDnB,oEAAoE;IACpE,OAAO,CAAC,eAAe;IAkBvB,sEAAsE;IACtE,OAAO,CAAC,MAAM;CAoBf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,CAU9E;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,SAAS,UAAU,EAAE,GAAG,MAAM,EAAE,CAK/E"}
@@ -1,59 +1,15 @@
1
1
  /**
2
2
  * composition/bootstrap.ts
3
3
  *
4
- * Wires the composition resolver into the agent session lifecycle.
5
- *
6
- * This module provides:
7
- * - `resolveAgentComposition()` — called by session-builder.ts to produce
8
- * inline blocks (→ system prompt) and discoverable entries (→ capability
9
- * registry)
10
- * - `registerCompositionCapabilities()` — called by serve.ts to register
11
- * discoverable entries as Protocol v2 capabilities
12
- *
13
- * Phase 1 limitation: the content loader uses `resolveMixin()` which only
14
- * resolves local-path refs (./file.md, /abs/path). Scoped catalog refs
15
- * (@publisher/name) require a populated RepoMap from workspace config, which
16
- * Phase 2 / Library integration will provide. Unresolvable refs produce
17
- * warnings but do not block session start.
4
+ * Registers resolved composition entries with the session's capability
5
+ * registry (`registerCompositionCapabilities`, called by serve.ts) and opens
6
+ * the optional asset index used to describe them. Resolution itself lives in
7
+ * `resolve-instance.ts` (`resolveAgentInstance`).
18
8
  */
19
- import { type AgentManifest } from "@skaile/workspaces/core";
9
+ import type { IAssetIndex } from "@skaile/workspaces/library";
20
10
  import type { Logger } from "@skaile/workspaces/types";
21
11
  import type { CapabilityRegistry } from "../capability-registry.js";
22
- import { type RepoMap } from "../mixin-resolver.js";
23
- import type { DiscoverableEntry, ResolvedComposition } from "./types.js";
24
- export type { ResolvedComposition };
25
- /**
26
- * Options for {@link resolveAgentComposition}.
27
- *
28
- * @docLink packages/runner/capabilities#resolve-agent-composition
29
- */
30
- export interface ResolveAgentCompositionOpts {
31
- /** Path to the agent definition directory (where agent.yaml lives) */
32
- agentDir: string;
33
- /** Parsed agent manifest (must have `composes` field) */
34
- manifest: AgentManifest;
35
- /**
36
- * Project root — reserved for Phase 2 workspace config resolution.
37
- * In Phase 1 this is unused but accepted so the call site doesn't
38
- * need updating when Library integration lands.
39
- */
40
- projectDir: string;
41
- /** Pre-built repo map for catalog resolution. Empty in Phase 1. */
42
- repos?: RepoMap;
43
- /** Logger for composition resolution warnings */
44
- log?: Logger;
45
- }
46
- /**
47
- * Resolve an agent's `composes:` items into inline blocks and discoverable
48
- * entries. Called by session-builder.ts during the session creation pipeline.
49
- *
50
- * Returns null when the manifest has no `composes:` items.
51
- *
52
- * @param opts - Resolution options including agentDir, manifest, and optional repos/log.
53
- * @returns A {@link ResolvedComposition} or `null` when there are no composition items.
54
- * @docLink packages/runner/capabilities#resolve-agent-composition
55
- */
56
- export declare function resolveAgentComposition(opts: ResolveAgentCompositionOpts): Promise<ResolvedComposition | null>;
12
+ import type { DiscoverableEntry } from "./types.js";
57
13
  /**
58
14
  * Register discoverable composition entries as Protocol v2 capabilities.
59
15
  *
@@ -66,8 +22,14 @@ export declare function resolveAgentComposition(opts: ResolveAgentCompositionOpt
66
22
  * that compose many assets.
67
23
  *
68
24
  * @param registry - The session capability registry to register capabilities onto.
69
- * @param entries - Discoverable entries from a prior {@link resolveAgentComposition} call.
25
+ * @param entries - Discoverable entries from a prior {@link resolveAgentInstance} call.
70
26
  * @docLink packages/runner/capabilities#register-composition-capabilities
71
27
  */
72
28
  export declare function registerCompositionCapabilities(registry: CapabilityRegistry, entries: DiscoverableEntry[]): void;
29
+ /**
30
+ * Try to open the LocalIndex SQLite store if it exists.
31
+ * Returns a stub when the library DB is missing (user hasn't synced yet)
32
+ * or when opening fails (e.g. corrupt DB).
33
+ */
34
+ export declare function openLocalIndexIfAvailable(log?: Logger): Promise<IAssetIndex>;
73
35
  //# sourceMappingURL=bootstrap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,EAAE,KAAK,aAAa,EAAsC,MAAM,yBAAyB,CAAC;AAEjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,sBAAsB,CAAC;AAGlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGzE,YAAY,EAAE,mBAAmB,EAAE,CAAC;AAMpC;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,QAAQ,EAAE,aAAa,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iDAAiD;IACjD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAMD;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,2BAA2B,GAChC,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CA0CrC;AAMD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,iBAAiB,EAAE,GAC3B,IAAI,CAsBN"}
1
+ {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,iBAAiB,EAAE,GAC3B,IAAI,CAsBN;AAwBD;;;;GAIG;AACH,wBAAsB,yBAAyB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CA6BlF"}
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * composition/compile.ts
3
3
  *
4
- * Implements `skaile rebuild <agent>` — re-snapshots all inline-snapshot items,
5
- * bumps the prompt version, and writes `<agent>/compile_manifest.json`.
4
+ * Implements `skaile rebuild <agent>` — resolves every `composes:` item through
5
+ * the content source, captures kind, resolved ref and bytes, bumps the prompt
6
+ * version and writes `<agent>/compile_manifest.json` (schema 2).
6
7
  *
7
- * The compile manifest records what was resolved and when, so the runner can
8
- * verify content hasn't drifted without a rebuild.
8
+ * The compile manifest is what an agent runs from: `inline-snapshot` serves its
9
+ * bytes and `discoverable` items hand out its bytes on invocation. A later
10
+ * change to a local file or to the catalog changes nothing until the next
11
+ * `skaile rebuild`.
9
12
  */
10
13
  import type { AgentComposeItem } from "@skaile/workspaces/types/manifests";
14
+ import * as z from "zod";
15
+ import { type CompositionContentSource } from "./content-source.js";
11
16
  import { type CompileManifest } from "./types.js";
12
17
  /**
13
18
  * Filename for the agent compile manifest written by `skaile rebuild`.
@@ -15,6 +20,23 @@ import { type CompileManifest } from "./types.js";
15
20
  * @docLink packages/runner/capabilities#compile-composition
16
21
  */
17
22
  export declare const COMPILE_MANIFEST_FILENAME = "compile_manifest.json";
23
+ /** One captured composition item, as stored in `compile_manifest.json` and in run snapshots. */
24
+ export declare const CompileManifestEntrySchema: z.ZodObject<{
25
+ asset_ref: z.ZodString;
26
+ kind: z.ZodString;
27
+ resolved_ref: z.ZodString;
28
+ version: z.ZodNullable<z.ZodString>;
29
+ hash: z.ZodString;
30
+ binding: z.ZodEnum<{
31
+ discoverable: "discoverable";
32
+ "inline-live": "inline-live";
33
+ "inline-snapshot": "inline-snapshot";
34
+ delegate: "delegate";
35
+ run: "run";
36
+ }>;
37
+ resolved_at: z.ZodString;
38
+ content: z.ZodString;
39
+ }, z.core.$strip>;
18
40
  /**
19
41
  * Options for {@link compileComposition}.
20
42
  *
@@ -23,18 +45,10 @@ export declare const COMPILE_MANIFEST_FILENAME = "compile_manifest.json";
23
45
  export interface CompileOpts {
24
46
  /** Path to the agent directory (where agent.yaml and compile_manifest.json live) */
25
47
  agentDir: string;
26
- /** The agent's composes: items */
48
+ /** The agent's composes: items (may be empty — an empty composition is valid). */
27
49
  items: AgentComposeItem[];
28
- /**
29
- * Content loader — given an asset ref + kind, returns the content text.
30
- * Returns null if the content cannot be loaded.
31
- */
32
- loadContent: (ref: string, kind: string) => Promise<string | null>;
33
- /**
34
- * Version extractor — given an asset ref, returns the resolved version string.
35
- * Returns null if unknown.
36
- */
37
- resolveVersion?: (ref: string) => Promise<string | null>;
50
+ /** Where composition bytes come from. */
51
+ source: CompositionContentSource;
38
52
  }
39
53
  /**
40
54
  * Result returned by {@link compileComposition}.
@@ -46,29 +60,30 @@ export interface CompileResult {
46
60
  manifest: CompileManifest;
47
61
  /** Path to the written file */
48
62
  manifestPath: string;
49
- /** Number of entries that were successfully resolved */
63
+ /** Number of entries written (every item resolves or the compile throws) */
50
64
  resolvedCount: number;
51
- /** Warnings for unresolvable items */
52
- warnings: string[];
53
65
  }
54
66
  /**
55
67
  * Compile (rebuild) the agent's composition.
56
68
  *
57
- * 1. Reads existing compile_manifest.json (if present) for version continuity
58
- * 2. Re-resolves ALL items (both snapshot and non-snapshot get recorded)
59
- * 3. Bumps prompt_version
60
- * 4. Writes compile_manifest.json
69
+ * 1. Resolves ALL items through the content source (any unresolvable item throws)
70
+ * 2. Rejects sub-agent loops (`agent` items that compose their own ancestor)
71
+ * 3. Bumps prompt_version (continuing a schema-1 file's counter)
72
+ * 4. Writes compile_manifest.json atomically
61
73
  *
62
- * @param opts - Compile options including agentDir, items, and content loader.
63
- * @returns A {@link CompileResult} with the written manifest and any warnings.
74
+ * @param opts - Compile options including agentDir, items and the content source.
75
+ * @returns A {@link CompileResult} with the written manifest.
76
+ * @throws {CompositionError} `composition_asset_missing` / `composition_conflict` for an item that cannot be served.
64
77
  * @docLink packages/runner/capabilities#compile-composition
65
78
  */
66
79
  export declare function compileComposition(opts: CompileOpts): Promise<CompileResult>;
67
80
  /**
68
- * Load an existing compile_manifest.json, or return undefined if not found.
81
+ * Load an existing compile_manifest.json.
69
82
  *
70
83
  * @param manifestPath - Absolute path to the manifest file.
71
- * @returns The parsed {@link CompileManifest} or `undefined` when missing or malformed.
84
+ * @returns The parsed {@link CompileManifest}, or `undefined` when the file does not exist.
85
+ * @throws {CompositionError} `composition_rebuild_required` for a schema-1 artifact or a malformed
86
+ * file; `composition_conflict` when an entry's `hash` no longer matches its `content`.
72
87
  * @docLink packages/runner/capabilities#load-compile-manifest
73
88
  */
74
89
  export declare function loadCompileManifest(manifestPath: string): Promise<CompileManifest | undefined>;
@@ -77,7 +92,8 @@ export declare function loadCompileManifest(manifestPath: string): Promise<Compi
77
92
  * `<agentDir>/compile_manifest.json`.
78
93
  *
79
94
  * @param agentDir - Absolute path to the agent definition directory.
80
- * @returns The parsed {@link CompileManifest} or `undefined` when missing or malformed.
95
+ * @returns The parsed {@link CompileManifest} or `undefined` when the file does not exist.
96
+ * @throws {CompositionError} see {@link loadCompileManifest}.
81
97
  * @docLink packages/runner/capabilities#load-compile-manifest-from-dir
82
98
  */
83
99
  export declare function loadCompileManifestFromDir(agentDir: string): Promise<CompileManifest | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/compile.ts"],"names":[],"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"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAG3E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,eAAe,EAA6C,MAAM,YAAY,CAAC;AAM7F;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AAEjE,gGAAgG;AAChG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;iBASrC,CAAC;AAoBH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,oFAAoF;IACpF,QAAQ,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,yCAAyC;IACzC,MAAM,EAAE,wBAAwB,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,mCAAmC;IACnC,QAAQ,EAAE,eAAe,CAAC;IAC1B,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CA4ClF;AAMD;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CA6CtC;AAED;;;;;;;;GAQG;AACH,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAEtC"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * composition/content-source.ts
3
+ *
4
+ * The one place composition bytes come from. A `composes:` ref resolves, in
5
+ * order, through
6
+ *
7
+ * 1. a local path (`./rules.md`, `/abs/RULES.md`, a directory holding the
8
+ * kind's manifest) read straight from disk;
9
+ * 2. the project lock (`skaile.lock.yaml`): a locked asset is served exactly
10
+ * as pinned, from the store cache or the catalog checkout, and its bytes
11
+ * are verified against the per-file hashes the lock recorded — the pin
12
+ * wins over whatever the catalog holds now;
13
+ * 3. the catalog: a discovery scan of the local catalog roots (the
14
+ * `ai-assets/` tree, source clones). Several distinct matches are an
15
+ * error, never a pick.
16
+ *
17
+ * Nothing here touches the network. A ref that cannot be served throws a
18
+ * {@link CompositionError}; an item is never dropped silently.
19
+ */
20
+ import type { IAssetKindRegistry } from "@skaile/workspaces/plugins";
21
+ /**
22
+ * One composition asset as the content source served it.
23
+ *
24
+ * @docLink packages/runner/capabilities#composition-asset
25
+ */
26
+ export interface CompositionAsset {
27
+ /**
28
+ * Where the bytes came from, in a stable spelling: `kind:@publisher/name#version`
29
+ * for a locked or catalog asset, `local:<path>` for a file on disk.
30
+ */
31
+ canonicalRef: string;
32
+ /** Asset kind the item was loaded as. */
33
+ kind: string;
34
+ /** Resolved version; `null` for a local file (identified by its content hash only). */
35
+ version: string | null;
36
+ /** SHA-256 (hex) of `content`. */
37
+ sha256: string;
38
+ /** Prompt-injectable text (frontmatter stripped). */
39
+ content: string;
40
+ /**
41
+ * Absolute path of the primary file (or knowledge directory) the content
42
+ * was read from. Diagnostic and traversal aid; never part of the compile
43
+ * manifest.
44
+ */
45
+ location?: string;
46
+ }
47
+ /**
48
+ * Loads composition assets. One instance serves one agent directory (relative
49
+ * refs resolve against it).
50
+ *
51
+ * @docLink packages/runner/capabilities#composition-content-source
52
+ */
53
+ export interface CompositionContentSource {
54
+ /**
55
+ * Load the asset a `composes:` ref names.
56
+ * @throws {CompositionError} `composition_asset_missing` when nothing serves the ref;
57
+ * `composition_conflict` when several candidates match or locked bytes drifted.
58
+ */
59
+ load(ref: string, kind: string): Promise<CompositionAsset>;
60
+ /** A source for another agent directory (sub-agent traversal), sharing catalog scans. */
61
+ scoped(agentDir: string): CompositionContentSource;
62
+ }
63
+ /**
64
+ * Options for {@link createCompositionContentSource}.
65
+ *
66
+ * @docLink packages/runner/capabilities#composition-content-source
67
+ */
68
+ export interface CompositionContentSourceOpts {
69
+ /** Agent definition directory — base of relative refs. */
70
+ agentDir: string;
71
+ /** Project root — holds `skaile.lock.yaml` and `.skaile/cache/store`. */
72
+ projectDir: string;
73
+ /** Kind registry used to recognise a kind's manifest file. Defaults to the built-in providers plus `knowledge`. */
74
+ registry?: IAssetKindRegistry;
75
+ /**
76
+ * Catalog roots to scan. Defaults to the `ai-assets/` tree above the project,
77
+ * the declared `sources:` clones and the project's source cache.
78
+ */
79
+ catalogRoots?: readonly string[];
80
+ }
81
+ /**
82
+ * Create the content source for one agent directory.
83
+ *
84
+ * @param opts - Agent dir, project dir and optional registry / catalog roots.
85
+ * @returns A {@link CompositionContentSource} that resolves local, lock-pinned and catalog refs.
86
+ * @docLink packages/runner/capabilities#composition-content-source
87
+ */
88
+ export declare function createCompositionContentSource(opts: CompositionContentSourceOpts): CompositionContentSource;
89
+ /**
90
+ * Hash helper shared by the compile writer and the resolver: the hash a
91
+ * {@link CompositionAsset} / compile entry records for `content`.
92
+ */
93
+ export declare function hashContent(content: string): string;
94
+ //# sourceMappingURL=content-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-source.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/content-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAgBH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC3D,yFAAyF;IACzF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,wBAAwB,CAAC;CACpD;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,mHAAmH;IACnH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAoJD;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,4BAA4B,GACjC,wBAAwB,CAS1B;AA+VD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * composition/dry-run.ts
3
+ *
4
+ * What `skaile run --dry-run` prints for a single-shot agent run: the resolved
5
+ * composition items (ref, kind, binding, version, hash) and how each one
6
+ * reaches each supported harness. No model is spawned and no run snapshot is
7
+ * written.
8
+ */
9
+ import { type DriverTarget } from "@skaile/workspaces/core";
10
+ import type { ResolvedAgentInstance } from "./resolve-instance.js";
11
+ /** One row of the dry-run report. */
12
+ export interface CompositionDryRunRow {
13
+ /** `composes[].ref` as written. */
14
+ ref: string;
15
+ kind: string;
16
+ binding: string;
17
+ /** Resolved version; `null` for a local file. */
18
+ version: string | null | undefined;
19
+ /** SHA256 of the composed bytes. */
20
+ hash: string | undefined;
21
+ /** Where the bytes came from. */
22
+ resolvedRef: string | undefined;
23
+ /** How the item reaches each harness. */
24
+ support: Record<DriverTarget, string>;
25
+ }
26
+ /**
27
+ * Describe a resolved agent instance for `--dry-run`.
28
+ *
29
+ * @param resolved - The result of {@link resolveAgentInstance}; its manifest carries the effective `composes` (convention items first).
30
+ * @returns One row per effective composition item, in order.
31
+ * @docLink packages/runner/capabilities#composition-dry-run
32
+ */
33
+ export declare function describeComposition(resolved: ResolvedAgentInstance): CompositionDryRunRow[];
34
+ //# sourceMappingURL=dry-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dry-run.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/dry-run.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAGnE,qCAAqC;AACrC,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnC,oCAAoC;IACpC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,iCAAiC;IACjC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;CACvC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,oBAAoB,EAAE,CAmB3F"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * composition/errors.ts
3
+ *
4
+ * Typed failures of the composition pipeline. Composition never omits an item
5
+ * silently: a ref that cannot be served exactly as pinned ends the session
6
+ * start (or the rebuild) with one of these.
7
+ */
8
+ /** Diagnostic code carried by a {@link CompositionError}. */
9
+ export type CompositionErrorCode = "composition_asset_missing" | "composition_conflict" | "composition_rebuild_required";
10
+ /** Why a {@link CompositionError} was raised (stable, for tests and tooling). */
11
+ export type CompositionErrorReason =
12
+ /** No content found for the ref (nothing on disk, no lock pin bytes, no catalog hit). */
13
+ "missing"
14
+ /** Several distinct catalog/lock candidates match the ref. */
15
+ | "ambiguous"
16
+ /** Bytes on disk differ from the hash the lock or compile manifest recorded. */
17
+ | "hash_mismatch"
18
+ /** Sub-agent composition loops back onto an agent already being composed. */
19
+ | "cycle"
20
+ /** `compile_manifest.json` has the old schema or is malformed. */
21
+ | "stale_manifest"
22
+ /** An `inline-snapshot` item has no compiled bytes. */
23
+ | "not_compiled";
24
+ /**
25
+ * Thrown by the content source, the compile writer and the resolver. `code`
26
+ * mirrors the `skaile validate` diagnostic of the same name.
27
+ *
28
+ * @docLink packages/runner/capabilities#composition-error
29
+ */
30
+ export declare class CompositionError extends Error {
31
+ readonly code: CompositionErrorCode;
32
+ readonly reason: CompositionErrorReason;
33
+ /** The composes ref the failure belongs to, when there is one. */
34
+ readonly ref?: string | undefined;
35
+ constructor(code: CompositionErrorCode, reason: CompositionErrorReason, message: string,
36
+ /** The composes ref the failure belongs to, when there is one. */
37
+ ref?: string | undefined);
38
+ }
39
+ /** True for a {@link CompositionError} with the given code (any code when omitted). */
40
+ export declare function isCompositionError(err: unknown, code?: CompositionErrorCode): err is CompositionError;
41
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAC5B,2BAA2B,GAC3B,sBAAsB,GACtB,8BAA8B,CAAC;AAEnC,iFAAiF;AACjF,MAAM,MAAM,sBAAsB;AAChC,yFAAyF;AACvF,SAAS;AACX,8DAA8D;GAC5D,WAAW;AACb,gFAAgF;GAC9E,eAAe;AACjB,6EAA6E;GAC3E,OAAO;AACT,kEAAkE;GAChE,gBAAgB;AAClB,uDAAuD;GACrD,cAAc,CAAC;AAEnB;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;IAEvC,QAAQ,CAAC,IAAI,EAAE,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,sBAAsB;IAEvC,kEAAkE;IAClE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM;gBAJZ,IAAI,EAAE,oBAAoB,EAC1B,MAAM,EAAE,sBAAsB,EACvC,OAAO,EAAE,MAAM;IACf,kEAAkE;IACzD,GAAG,CAAC,EAAE,MAAM,YAAA;CAKxB;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,OAAO,EACZ,IAAI,CAAC,EAAE,oBAAoB,GAC1B,GAAG,IAAI,gBAAgB,CAEzB"}
@@ -7,8 +7,15 @@
7
7
  *
8
8
  * And supports `skaile rebuild <agent>` via the compile module.
9
9
  */
10
- export { type ResolveAgentCompositionOpts, registerCompositionCapabilities, resolveAgentComposition, } from "./bootstrap.js";
11
- export { COMPILE_MANIFEST_FILENAME, type CompileOpts, type CompileResult, compileComposition, loadCompileManifest, loadCompileManifestFromDir, } from "./compile.js";
10
+ export { registerCompositionCapabilities } from "./bootstrap.js";
11
+ export { COMPILE_MANIFEST_FILENAME, CompileManifestEntrySchema, type CompileOpts, type CompileResult, compileComposition, loadCompileManifest, loadCompileManifestFromDir, } from "./compile.js";
12
+ export { type CompositionDryRunRow, describeComposition } from "./dry-run.js";
13
+ export { type CompositionAsset, type CompositionContentSource, type CompositionContentSourceOpts, createCompositionContentSource, hashContent, } from "./content-source.js";
14
+ export { CompositionError, type CompositionErrorCode, type CompositionErrorReason, isCompositionError, } from "./errors.js";
15
+ export { type AgentInstanceAsset, type AgentInstanceHost, instanceForSession, type ResolveAgentInstanceOpts, type ResolvedAgentInstance, type ResolvedMemoryBlock, type ResolvedSubagent, type ResolvedTrigger, resolveAgentInstance, } from "./resolve-instance.js";
12
16
  export { type ResolveCompositionOpts, resolveComposition } from "./resolve.js";
13
- export { type AgentComposeItem, type Binding, type CompileManifest, type CompileManifestEntry, type DiscoverableEntry, type InlineBlock, type ResolvedComposition, resolveBinding, } from "./types.js";
17
+ export { canonicalJson, computeRevisionHash, hashAgentFiles, type RevisionCompileEntry, type RevisionFileEntry, type RevisionHashInput, } from "./revision-hash.js";
18
+ export { buildRunnerAgentSections, type PromptExtensionPart } from "./prompt-sections.js";
19
+ export { buildCompositionRunSnapshot, compositionRunSnapshotPath, loadCompositionRunSnapshot, saveCompositionRunSnapshot, } from "./run-snapshot.js";
20
+ export { type AgentComposeItem, type Binding, type CompileManifest, type CompileManifestEntry, type CompositionRunSnapshot, type DiscoverableEntry, type InlineBlock, type ResolvedComposition, type ResolvedCompositionItem, resolveBinding, UnknownCompositionKindError, } from "./types.js";
14
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,KAAK,2BAA2B,EAChC,+BAA+B,EAC/B,uBAAuB,GACxB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE/E,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,cAAc,GACf,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/index.ts"],"names":[],"mappings":"AAAA;;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AAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,cAAc,EACd,2BAA2B,GAC5B,MAAM,YAAY,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * composition/prompt-sections.ts
3
+ *
4
+ * The agent part of the runner's live system prompt, built by the same
5
+ * `buildAgentPromptSections` the install renderers use (`asset-manager`), so
6
+ * the two can never disagree on section order:
7
+ * soul → `<MEMORY>` → fragments → constraints → duties → abilities → contracts
8
+ * → composed → extensions.
9
+ *
10
+ * The runner contributes only the sections a harness does not already carry:
11
+ * the agent's convention files (soul, constraints, duties) are rendered into
12
+ * the native agent file at install, so they are not repeated here; memory
13
+ * blocks, composed inline blocks and prompt-extensions are.
14
+ */
15
+ import { type AgentPromptSection } from "@skaile/workspaces/core";
16
+ import type { ResolvedAgentInstance } from "./resolve-instance.js";
17
+ /** A loaded `agent.prompt-extensions` entry. */
18
+ export interface PromptExtensionPart {
19
+ value: string;
20
+ /** Path the extension was loaded from. */
21
+ source: string;
22
+ }
23
+ /**
24
+ * Build the agent sections of the live system prompt.
25
+ *
26
+ * @param resolved - The resolved instance, or `null` when the session has no agent definition.
27
+ * @param promptExtensions - Loaded `agent.prompt-extensions`, in declared order.
28
+ * @returns Non-empty sections in the shared order; join `text` with the runner's section separator.
29
+ */
30
+ export declare function buildRunnerAgentSections(resolved: ResolvedAgentInstance | null, promptExtensions: readonly PromptExtensionPart[]): AgentPromptSection[];
31
+ //# sourceMappingURL=prompt-sections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-sections.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/prompt-sections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,KAAK,kBAAkB,EAA4B,MAAM,yBAAyB,CAAC;AAC5F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,EACtC,gBAAgB,EAAE,SAAS,mBAAmB,EAAE,GAC/C,kBAAkB,EAAE,CAQtB"}