@skaile/workspaces 5.5.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/dist/app-sdk/index.js +1 -1
  3. package/dist/{asset-feeds-KTFUB7EX.js → asset-feeds-4O2JK5S4.js} +27 -14
  4. package/dist/asset-feeds-4O2JK5S4.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-ES2FXWQ4.js → chunk-2NYXQYHN.js} +4 -4
  38. package/dist/{chunk-ES2FXWQ4.js.map → chunk-2NYXQYHN.js.map} +1 -1
  39. package/dist/{chunk-ORUHADS6.js → chunk-2W4LBLIN.js} +386 -60
  40. package/dist/chunk-2W4LBLIN.js.map +1 -0
  41. package/dist/{chunk-SNVOASTL.js → chunk-2XFUXGV6.js} +3 -3
  42. package/dist/{chunk-SNVOASTL.js.map → chunk-2XFUXGV6.js.map} +1 -1
  43. package/dist/{chunk-ZDKJHQY2.js → chunk-3TXEJN4W.js} +2 -2
  44. package/dist/{chunk-ZDKJHQY2.js.map → chunk-3TXEJN4W.js.map} +1 -1
  45. package/dist/{chunk-5Y3L7XWH.js → chunk-436GRQC2.js} +15 -15
  46. package/dist/chunk-436GRQC2.js.map +1 -0
  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-MMC24L2W.js → chunk-4CTGEEN6.js} +274 -121
  54. package/dist/chunk-4CTGEEN6.js.map +1 -0
  55. package/dist/{chunk-LFEGIZTW.js → chunk-4GNJELPH.js} +2 -2
  56. package/dist/{chunk-LFEGIZTW.js.map → chunk-4GNJELPH.js.map} +1 -1
  57. package/dist/{chunk-V7VDSFPS.js → chunk-5B5IZVEP.js} +2 -2
  58. package/dist/{chunk-V7VDSFPS.js.map → chunk-5B5IZVEP.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-K2K7OF4P.js → chunk-DMLDYFDS.js} +23 -6
  76. package/dist/chunk-DMLDYFDS.js.map +1 -0
  77. package/dist/{chunk-EJYZ3MKJ.js → chunk-DZM73WDN.js} +4 -4
  78. package/dist/{chunk-EJYZ3MKJ.js.map → chunk-DZM73WDN.js.map} +1 -1
  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-75EX5GY4.js → chunk-IPWR33AW.js} +181 -111
  84. package/dist/chunk-IPWR33AW.js.map +1 -0
  85. package/dist/{chunk-C4GF7RSQ.js → chunk-KUFNKVBM.js} +3 -3
  86. package/dist/{chunk-C4GF7RSQ.js.map → chunk-KUFNKVBM.js.map} +1 -1
  87. package/dist/{chunk-GCYD4EGY.js → chunk-KYXOGHY6.js} +4 -4
  88. package/dist/{chunk-GCYD4EGY.js.map → chunk-KYXOGHY6.js.map} +1 -1
  89. package/dist/{chunk-G474PBUQ.js → chunk-LLKKLKZJ.js} +3 -3
  90. package/dist/{chunk-G474PBUQ.js.map → chunk-LLKKLKZJ.js.map} +1 -1
  91. package/dist/{chunk-AC2N5BRP.js → chunk-MX3UQXLU.js} +18 -30
  92. package/dist/chunk-MX3UQXLU.js.map +1 -0
  93. package/dist/{chunk-N3Y43LMZ.js → chunk-MX6LZE2C.js} +34 -11
  94. package/dist/chunk-MX6LZE2C.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-3665M43C.js → chunk-NLXIALVO.js} +5 -5
  98. package/dist/{chunk-3665M43C.js.map → chunk-NLXIALVO.js.map} +1 -1
  99. package/dist/{chunk-UFS3FEBA.js → chunk-O5GDKC5I.js} +3 -3
  100. package/dist/{chunk-UFS3FEBA.js.map → chunk-O5GDKC5I.js.map} +1 -1
  101. package/dist/{chunk-Y4QWHIHB.js → chunk-OGLDAJFL.js} +4 -4
  102. package/dist/{chunk-Y4QWHIHB.js.map → chunk-OGLDAJFL.js.map} +1 -1
  103. package/dist/chunk-OLLAQLFJ.js +17 -0
  104. package/dist/chunk-OLLAQLFJ.js.map +1 -0
  105. package/dist/{chunk-LFMX2UEF.js → chunk-PA7WLID3.js} +86 -69
  106. package/dist/chunk-PA7WLID3.js.map +1 -0
  107. package/dist/{chunk-K2NUT3HO.js → chunk-PJS2YWGG.js} +6 -6
  108. package/dist/{chunk-K2NUT3HO.js.map → chunk-PJS2YWGG.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-R4G7XI7A.js → chunk-S7QXEXKY.js} +4 -5
  112. package/dist/chunk-S7QXEXKY.js.map +1 -0
  113. package/dist/{chunk-JKWU6ULI.js → chunk-SDFROXSA.js} +3 -3
  114. package/dist/{chunk-JKWU6ULI.js.map → chunk-SDFROXSA.js.map} +1 -1
  115. package/dist/{chunk-WHSQSVN2.js → chunk-SX4UIDKT.js} +3 -3
  116. package/dist/{chunk-WHSQSVN2.js.map → chunk-SX4UIDKT.js.map} +1 -1
  117. package/dist/{chunk-3JHFFIQ6.js → chunk-TZCQ7ZWQ.js} +83 -9
  118. package/dist/chunk-TZCQ7ZWQ.js.map +1 -0
  119. package/dist/{chunk-UHLBDAJR.js → chunk-UAP2XHRF.js} +10 -10
  120. package/dist/{chunk-UHLBDAJR.js.map → chunk-UAP2XHRF.js.map} +1 -1
  121. package/dist/{chunk-P6KFWTGP.js → chunk-V7NN3HXR.js} +7 -12
  122. package/dist/chunk-V7NN3HXR.js.map +1 -0
  123. package/dist/{chunk-LAI7X6I2.js → chunk-VBBBZDI7.js} +3 -3
  124. package/dist/{chunk-LAI7X6I2.js.map → chunk-VBBBZDI7.js.map} +1 -1
  125. package/dist/{chunk-TNWXGHLD.js → chunk-VKSXST23.js} +51 -42
  126. package/dist/chunk-VKSXST23.js.map +1 -0
  127. package/dist/{chunk-HTKZ4AOW.js → chunk-VSQFGU5D.js} +3 -3
  128. package/dist/{chunk-HTKZ4AOW.js.map → chunk-VSQFGU5D.js.map} +1 -1
  129. package/dist/{chunk-JBPG5KQC.js → chunk-VX3INFBA.js} +4 -4
  130. package/dist/{chunk-JBPG5KQC.js.map → chunk-VX3INFBA.js.map} +1 -1
  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 +4997 -3410
  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-VCPKNPK2.js} +21 -21
  225. package/dist/{ensure-sources-QFRA46DJ.js.map → ensure-sources-VCPKNPK2.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-IW36CEJX.js} +21 -21
  261. package/dist/{helpers-PSROT7CU.js.map → helpers-IW36CEJX.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-R3DQLMTD.js} +27 -27
  274. package/dist/{library-publish-YAI7WOXC.js.map → library-publish-R3DQLMTD.js.map} +1 -1
  275. package/dist/open-library-FAJZRDKE.js +40 -0
  276. package/dist/{open-library-Z5NJU4Z5.js.map → open-library-FAJZRDKE.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-ALJIVFHI.js +41 -0
  289. package/dist/{project-SVS4UMGL.js.map → project-ALJIVFHI.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-35JXIA3N.js} +28 -28
  355. package/dist/{setup-IOEZGJNC.js.map → setup-35JXIA3N.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-ISR4KRZV.js +41 -0
  359. package/dist/{source-OKRJT53H.js.map → source-ISR4KRZV.js.map} +1 -1
  360. package/dist/{source-manifest-publish-MILEQDRD.js → source-manifest-publish-P22IPK5F.js} +27 -27
  361. package/dist/{source-manifest-publish-MILEQDRD.js.map → source-manifest-publish-P22IPK5F.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 +1 -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
@@ -1,24 +1,21 @@
1
1
  /**
2
- * open-registry.ts — shared helper to create a full AssetKindRegistry.
2
+ * open-registry.ts — the CLI's one AssetKindRegistry.
3
3
  *
4
- * Bootstraps the registry with all built-in providers (9 core + preset)
5
- * from @skaile/discovery, plus the extension kind providers (flow from
6
- * @skaile/workspaces/factory-assets/connectors/flow/engine, knowledge from @skaile/library).
7
- *
8
- * This is the single registration point for the CLI. All code paths
9
- * that need a registry (source sync, lib-status, etc.) should use this.
4
+ * The provider registry is the only authority on asset kinds. The CLI builds it
5
+ * once per process with all built-in providers (from @skaile/workspaces/discovery)
6
+ * plus the extension kinds (flow from
7
+ * @skaile/workspaces/factory-assets/connectors/flow/engine, knowledge from
8
+ * @skaile/workspaces/library) and hands the same instance to every consumer
9
+ * (catalog sources, the installer, validation, composition).
10
10
  */
11
11
  import type { AssetKindRegistry } from "@skaile/workspaces/discovery";
12
12
  /**
13
- * Create a fully-configured AssetKindRegistry with all known providers.
14
- *
15
- * Registers:
16
- * - 9 core kinds (skill, agent, connector, mount, mcp-server, contract, prompt, persona, ruleset)
17
- * - preset (composition entity)
18
- * - flow (extension, from @skaile/workspaces/factory-assets/connectors/flow/engine)
19
- * - knowledge (extension, from @skaile/library)
13
+ * The process-wide, fully-configured AssetKindRegistry.
20
14
  *
21
- * @returns An unfrozen registry (auto-freezes on first read)
15
+ * Registers every built-in kind plus flow and knowledge. Built lazily on first
16
+ * call; every later call returns the same instance.
22
17
  */
23
- export declare function createFullRegistry(): AssetKindRegistry;
18
+ export declare function getKindRegistry(): AssetKindRegistry;
19
+ /** Registered kind names as a set — the `knownKinds` argument of the manifest scanners. */
20
+ export declare function getKnownKinds(): ReadonlySet<string>;
24
21
  //# sourceMappingURL=open-registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"open-registry.d.ts","sourceRoot":"","sources":["../../../cli/src/open-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAKtE;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,IAAI,iBAAiB,CAKtD"}
1
+ {"version":3,"file":"open-registry.d.ts","sourceRoot":"","sources":["../../../cli/src/open-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAOtE;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CAGnD;AAED,2FAA2F;AAC3F,wBAAgB,aAAa,IAAI,WAAW,CAAC,MAAM,CAAC,CAEnD"}
@@ -0,0 +1,3 @@
1
+ /** Narrow to a plain-object-shaped value (not `null`, not an array); fields stay `unknown`. */
2
+ export declare function isRecord(value: unknown): value is Record<string, unknown>;
3
+ //# sourceMappingURL=type-guards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../../../cli/src/type-guards.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
@@ -1,11 +1,11 @@
1
- export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, loadYamlConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations, withMaterializedConnectorDeclarations } from '../chunk-X4GO3GJZ.js';
2
- import '../chunk-ORUHADS6.js';
1
+ export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, loadYamlConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations, withMaterializedConnectorDeclarations } from '../chunk-2GRB5ITE.js';
2
+ import '../chunk-2W4LBLIN.js';
3
3
  import '../chunk-MFHKHXDE.js';
4
- import '../chunk-TOSHZX4C.js';
5
- import '../chunk-SR4RFKHM.js';
4
+ import '../chunk-CPSIPIX7.js';
5
+ import '../chunk-7ZHLYXTI.js';
6
6
  import '../chunk-RVRB27AN.js';
7
- import '../chunk-LFMX2UEF.js';
8
- import '../chunk-WX74MVNA.js';
7
+ import '../chunk-PA7WLID3.js';
8
+ import '../chunk-AO7VJ6G6.js';
9
9
  import '../chunk-C3CAXQMA.js';
10
10
  import '../chunk-BOFL7GIF.js';
11
11
  import '../chunk-NSBPE2FW.js';
@@ -1,43 +1,43 @@
1
- export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, CONNECT_FAILURE_CARRY_OVER_TTL_MS, ConnectFailureCarryOver, ConnectorManager, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, NO_ACTIVE_FLOW_ERROR, PortPool, atomicReplaceCredential, buildConnectorListPayload, buildConnectorPromptSection, buildLazyFlowToolDefs, buildLazySdkFlowTools, buildSdkConnectorTools, buildSdkFlowTools, checkFleetMountLiveness, classifyConnectError, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, missingTokenMediatorMessage, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-UHLBDAJR.js';
2
- export { CONNECT_ERROR_KIND_PROPERTY, ClassifiedConnectError, declaredConnectErrorKind, withConnectErrorKind } from '../chunk-QMWMSZQ4.js';
3
- export { ConnectorFieldMissingError, ConnectorStartupError, EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, loadYamlConnectorDeclarations, readUnavailableMarker, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations, withMaterializedConnectorDeclarations } from '../chunk-X4GO3GJZ.js';
4
- import '../chunk-JBPG5KQC.js';
5
- import '../chunk-LAI7X6I2.js';
1
+ export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, CONNECT_FAILURE_CARRY_OVER_TTL_MS, ConnectFailureCarryOver, ConnectorManager, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, NO_ACTIVE_FLOW_ERROR, PortPool, atomicReplaceCredential, buildConnectorListPayload, buildConnectorPromptSection, buildLazyFlowToolDefs, buildLazySdkFlowTools, buildSdkConnectorTools, buildSdkFlowTools, checkFleetMountLiveness, classifyConnectError, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, missingTokenMediatorMessage, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-UAP2XHRF.js';
2
+ export { CONNECT_ERROR_KIND_PROPERTY, ClassifiedConnectError, declaredConnectErrorKind, withConnectErrorKind } from '../chunk-FK6HPLQA.js';
3
+ export { ConnectorFieldMissingError, ConnectorStartupError, EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, loadYamlConnectorDeclarations, readUnavailableMarker, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations, withMaterializedConnectorDeclarations } from '../chunk-2GRB5ITE.js';
4
+ import '../chunk-VX3INFBA.js';
5
+ import '../chunk-VBBBZDI7.js';
6
6
  import '../chunk-EINLFFP6.js';
7
7
  import '../chunk-LOO5CB5M.js';
8
- import '../chunk-BNUZEYC3.js';
9
- import '../chunk-LCULZ4ED.js';
8
+ import '../chunk-NARITJS2.js';
9
+ import '../chunk-27HS2DHB.js';
10
10
  import '../chunk-XBSQ4KMC.js';
11
11
  import '../chunk-YROR332M.js';
12
- import '../chunk-V7VDSFPS.js';
12
+ import '../chunk-5B5IZVEP.js';
13
13
  import '../chunk-6E6PKKAD.js';
14
14
  import '../chunk-IFGTRL2I.js';
15
- import '../chunk-DPMKI26Y.js';
15
+ import '../chunk-AOAZCSDI.js';
16
16
  import '../chunk-37FTLYFP.js';
17
17
  import '../chunk-QZLWJETK.js';
18
18
  import '../chunk-XUUYAS3Z.js';
19
19
  import '../chunk-NFGRW3L7.js';
20
20
  import '../chunk-QCI6D7E4.js';
21
- import '../chunk-K2K7OF4P.js';
22
- import '../chunk-3JHFFIQ6.js';
21
+ import '../chunk-DMLDYFDS.js';
22
+ import '../chunk-FRHE7FFB.js';
23
+ import '../chunk-TZCQ7ZWQ.js';
23
24
  import '../chunk-4GY63JU6.js';
24
- import '../chunk-YK7WJSTD.js';
25
- import '../chunk-XGIS325V.js';
25
+ import '../chunk-BF33SCLY.js';
26
+ import '../chunk-46OVMT76.js';
26
27
  import '../chunk-5BEFNLOR.js';
27
28
  import '../chunk-A2ULN3KX.js';
28
- import '../chunk-ORUHADS6.js';
29
+ import '../chunk-2W4LBLIN.js';
29
30
  import '../chunk-MFHKHXDE.js';
30
- import '../chunk-TOSHZX4C.js';
31
- import '../chunk-SR4RFKHM.js';
31
+ import '../chunk-CPSIPIX7.js';
32
+ import '../chunk-7ZHLYXTI.js';
32
33
  import '../chunk-RVRB27AN.js';
33
- import '../chunk-LFMX2UEF.js';
34
- import '../chunk-WX74MVNA.js';
34
+ import '../chunk-PA7WLID3.js';
35
+ import '../chunk-AO7VJ6G6.js';
35
36
  import '../chunk-ICSCSM5D.js';
36
37
  import '../chunk-JMKB7IB4.js';
37
38
  import '../chunk-MJHSLODD.js';
38
39
  import '../chunk-C3CAXQMA.js';
39
40
  import '../chunk-BOFL7GIF.js';
40
- import '../chunk-5CYEWBPB.js';
41
41
  import '../chunk-NSBPE2FW.js';
42
42
  //# sourceMappingURL=index.js.map
43
43
  //# sourceMappingURL=index.js.map
@@ -1,45 +1,45 @@
1
- export { connectorDescribe, connectorExec, connectorList, connectorLoadSkill, connectorRead, connectorSearch, connectorWrite, mountList, mountRead, mountStatus, mountSync } from './chunk-SNVOASTL.js';
1
+ export { connectorDescribe, connectorExec, connectorList, connectorLoadSkill, connectorRead, connectorSearch, connectorWrite, mountList, mountRead, mountStatus, mountSync } from './chunk-2XFUXGV6.js';
2
2
  import './chunk-X5YPJV4N.js';
3
- import './chunk-UHLBDAJR.js';
4
- import './chunk-QMWMSZQ4.js';
5
- import './chunk-X4GO3GJZ.js';
6
- import './chunk-JBPG5KQC.js';
7
- import './chunk-LAI7X6I2.js';
3
+ import './chunk-UAP2XHRF.js';
4
+ import './chunk-FK6HPLQA.js';
5
+ import './chunk-2GRB5ITE.js';
6
+ import './chunk-VX3INFBA.js';
7
+ import './chunk-VBBBZDI7.js';
8
8
  import './chunk-EINLFFP6.js';
9
9
  import './chunk-LOO5CB5M.js';
10
- import './chunk-BNUZEYC3.js';
11
- import './chunk-LCULZ4ED.js';
10
+ import './chunk-NARITJS2.js';
11
+ import './chunk-27HS2DHB.js';
12
12
  import './chunk-XBSQ4KMC.js';
13
13
  import './chunk-YROR332M.js';
14
- import './chunk-V7VDSFPS.js';
14
+ import './chunk-5B5IZVEP.js';
15
15
  import './chunk-6E6PKKAD.js';
16
16
  import './chunk-IFGTRL2I.js';
17
- import './chunk-DPMKI26Y.js';
17
+ import './chunk-AOAZCSDI.js';
18
18
  import './chunk-37FTLYFP.js';
19
19
  import './chunk-QZLWJETK.js';
20
20
  import './chunk-XUUYAS3Z.js';
21
21
  import './chunk-NFGRW3L7.js';
22
22
  import './chunk-QCI6D7E4.js';
23
- import './chunk-K2K7OF4P.js';
24
- import './chunk-3JHFFIQ6.js';
23
+ import './chunk-DMLDYFDS.js';
24
+ import './chunk-FRHE7FFB.js';
25
+ import './chunk-TZCQ7ZWQ.js';
25
26
  import './chunk-4GY63JU6.js';
26
- import './chunk-YK7WJSTD.js';
27
- import './chunk-XGIS325V.js';
27
+ import './chunk-BF33SCLY.js';
28
+ import './chunk-46OVMT76.js';
28
29
  import './chunk-5BEFNLOR.js';
29
30
  import './chunk-A2ULN3KX.js';
30
- import './chunk-ORUHADS6.js';
31
+ import './chunk-2W4LBLIN.js';
31
32
  import './chunk-MFHKHXDE.js';
32
- import './chunk-TOSHZX4C.js';
33
- import './chunk-SR4RFKHM.js';
33
+ import './chunk-CPSIPIX7.js';
34
+ import './chunk-7ZHLYXTI.js';
34
35
  import './chunk-RVRB27AN.js';
35
- import './chunk-LFMX2UEF.js';
36
- import './chunk-WX74MVNA.js';
36
+ import './chunk-PA7WLID3.js';
37
+ import './chunk-AO7VJ6G6.js';
37
38
  import './chunk-ICSCSM5D.js';
38
39
  import './chunk-JMKB7IB4.js';
39
40
  import './chunk-MJHSLODD.js';
40
41
  import './chunk-C3CAXQMA.js';
41
42
  import './chunk-BOFL7GIF.js';
42
- import './chunk-5CYEWBPB.js';
43
43
  import './chunk-NSBPE2FW.js';
44
- //# sourceMappingURL=connectors-MPYCSQNG.js.map
45
- //# sourceMappingURL=connectors-MPYCSQNG.js.map
44
+ //# sourceMappingURL=connectors-HWENZFKW.js.map
45
+ //# sourceMappingURL=connectors-HWENZFKW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"connectors-MPYCSQNG.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"connectors-HWENZFKW.js"}
@@ -1,5 +1,5 @@
1
- export { CONNECT_ERROR_KIND_PROPERTY, ClassifiedConnectError, withConnectErrorKind } from '../chunk-QMWMSZQ4.js';
2
- import '../chunk-K2K7OF4P.js';
1
+ export { CONNECT_ERROR_KIND_PROPERTY, ClassifiedConnectError, withConnectErrorKind } from '../chunk-FK6HPLQA.js';
2
+ import '../chunk-DMLDYFDS.js';
3
3
  import '../chunk-NSBPE2FW.js';
4
4
  import * as z from 'zod';
5
5
 
@@ -1,4 +1,4 @@
1
- export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, driverTargetForDriver, globalHarnessRoot } from '../chunk-TOSHZX4C.js';
1
+ export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, driverTargetForDriver, globalHarnessRoot } from '../chunk-CPSIPIX7.js';
2
2
  import '../chunk-NSBPE2FW.js';
3
3
  //# sourceMappingURL=driver-targets.js.map
4
4
  //# sourceMappingURL=driver-targets.js.map
@@ -1,16 +1,16 @@
1
- export { GLOBAL_INSTALL_DIR_NAME, ManifestYamlEditor, PROVIDERS_FILENAME, SETTINGS_DEFAULTS, WorkspaceYamlEditor, aiResourceRoots, applyPatch, buildLibraryLockEntries, buildLockFile, checkAgentSkillConformance, computeHash, defaultLibraryDir, extractForPatch, generatePatch, globalInstallDir, globalSettingsPath, listPatches, loadProviderRegistry, loadProviderRegistryFile, loadSettings, mapLegacyFields, maskApiKey, mergeLockFile, migrateSettings, projectSettingsPath, readLock, readPatch, readPluginsLockSlice, resolveConfiguredDriverTarget, resolveLibraryDir, resolveSettings, savePatch, saveProviderRegistryFile, saveSettings, userProviderRegistryPath, verifyLock, walkForSettings, workspaceProviderRegistryPath, writeLock, writePluginsLockSlice } from '../chunk-3JHFFIQ6.js';
1
+ export { AGENT_PROMPT_SECTION_ORDER, GLOBAL_INSTALL_DIR_NAME, ManifestYamlEditor, PROVIDERS_FILENAME, SETTINGS_DEFAULTS, WorkspaceYamlEditor, aiResourceRoots, applyPatch, buildAgentPromptSections, buildLibraryLockEntries, buildLockFile, capMemoryContent, checkAgentSkillConformance, computeHash, defaultLibraryDir, extractForPatch, generatePatch, globalInstallDir, globalSettingsPath, listPatches, loadProviderRegistry, loadProviderRegistryFile, loadSettings, mapLegacyFields, maskApiKey, mergeLockFile, migrateSettings, projectSettingsPath, readLock, readPatch, readPluginsLockSlice, renderMemorySection, resolveConfiguredDriverTarget, resolveLibraryDir, resolveSettings, savePatch, saveProviderRegistryFile, saveSettings, userProviderRegistryPath, verifyLock, walkForSettings, workspaceProviderRegistryPath, writeLock, writePluginsLockSlice } from '../chunk-TZCQ7ZWQ.js';
2
2
  export { processAlive, processExited, processGroupAlive } from '../chunk-4GY63JU6.js';
3
- export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-YK7WJSTD.js';
4
- export { deployedBase, deployedDir, isDeployed } from '../chunk-XGIS325V.js';
3
+ export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-BF33SCLY.js';
4
+ export { deployedBase, deployedDir, isDeployed } from '../chunk-46OVMT76.js';
5
5
  export { DEFAULT_DRIVER_ID, DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-5BEFNLOR.js';
6
6
  export { detectMonorepoRoot, findKindDirs } from '../chunk-A2ULN3KX.js';
7
- export { AgentRefResolutionError, COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SKILL_ALLOWLIST_FILE, SKILL_ALLOWLIST_VERSION, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, STAGED_SKILL_MARKER, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, coerceVersion, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, isStagedSkillMarkerFor, isWorkspaceConfigFilename, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, matchPin, mergeSkWorkspaceConfigs, normalizeConfig, pullRepo, pullRepoResult, readLinks, readSkillAllowList, resolveAgentDir, resolveAll, resolveAsset, resolveCompactionThresholdPercent, resolveGlobalHarnesses as resolveGlobalBackends, resolveGlobalHarnesses, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, stagedSkillMarkerState, storeManifestSlug, unlinkRepo, unstageSkill, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-ORUHADS6.js';
7
+ export { AGENT_INSTANCE_ID_PATTERN, AGENT_INSTANCE_LIFECYCLES, AGENT_INSTANCE_MEMORY_SCOPES, AGENT_INSTANCE_TRIGGER_KINDS, AgentRefResolutionError, COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_AGENT_INSTANCE_ID, DEFAULT_RECIPE_ATTR, PresetDepthError, SKAILE_YAML_DEFAULT, SKILL_ALLOWLIST_FILE, SKILL_ALLOWLIST_VERSION, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, STAGED_SKILL_MARKER, UnknownAssetKindError, agentInstanceDiagnostics, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, coerceVersion, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, effectiveAgentInstances, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, isStagedSkillMarkerFor, isWorkspaceConfigFilename, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, matchPin, mergeAgentInstances, mergeAgentPermissions, mergeSkWorkspaceConfigs, normalizeAgentInstances, normalizeConfig, pullRepo, pullRepoResult, readLinks, readSkillAllowList, resolveAgentDefinitionDir, resolveAgentDir, resolveAll, resolveAsset, resolveCompactionThresholdPercent, resolveGlobalHarnesses as resolveGlobalBackends, resolveGlobalHarnesses, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, stagedSkillMarkerState, storeManifestSlug, unlinkRepo, unstageSkill, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-2W4LBLIN.js';
8
8
  export { __resetCacheMigrationMemo, globalCacheRoot, globalSkaileDir, mergeLegacyEntriesInto, mergeLegacyEntriesKeyed, migrateLegacyDir, userConfigPath } from '../chunk-MFHKHXDE.js';
9
- export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, driverTargetForDriver, globalHarnessRoot as globalBackendRoot, globalHarnessRoot } from '../chunk-TOSHZX4C.js';
10
- export { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest } from '../chunk-SR4RFKHM.js';
9
+ export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, driverTargetForDriver, globalHarnessRoot as globalBackendRoot, globalHarnessRoot } from '../chunk-CPSIPIX7.js';
10
+ export { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest } from '../chunk-7ZHLYXTI.js';
11
11
  export { pluginTitle, readPluginGroupings } from '../chunk-RVRB27AN.js';
12
- export { DEFAULT_FS_DEADLINE_MS, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, FS_DEADLINE_ENV_VAR, FsDeadlineError, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, fsDeadlineMs, parseFrontmatter, parseRequires, scanDirectory, tryWithFsDeadline, walkDir, withFsDeadline } from '../chunk-LFMX2UEF.js';
13
- export { ASSET_KINDS, ASSET_NAME_HINT, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseAssetRefLoose, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName } from '../chunk-WX74MVNA.js';
12
+ export { DEFAULT_FS_DEADLINE_MS, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, FS_DEADLINE_ENV_VAR, FsDeadlineError, ManifestKindError, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, assetDepRefs, fromAgentMd, fromAgentYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPresetYaml, fromPromptMd, fromSkillMd, fsDeadlineMs, manifestKindDiagnostic, parseFrontmatter, parseRequires, presetItemRefs, scanDirectory, tryWithFsDeadline, walkDir, withFsDeadline } from '../chunk-PA7WLID3.js';
13
+ export { ASSET_NAME_HINT, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseAssetRefLoose, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName } from '../chunk-AO7VJ6G6.js';
14
14
  export { __resetCredentialCommandCache, portableSpawn, portableSpawnSync, resolveCredential } from '../chunk-ICSCSM5D.js';
15
15
  export { DEFAULT_LOGS_RETENTION, OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, enforceLogsRetention, openSqlite, resolveLogStoreConfig, resolveLogsRetention } from '../chunk-JMKB7IB4.js';
16
16
  export { AI_PROVIDER_BASE_URL_TEMPLATES, AI_PROVIDER_CREDENTIAL_KINDS, AI_PROVIDER_DISCOVERY_TYPES, AI_PROVIDER_KINDS, AI_PROVIDER_LAYERS, AI_PROVIDER_SURFACES, AI_PROVIDER_TRANSPORTS, AI_PROVIDER_VOICE_KINDS, entryTransport, formatCredentialRef, isEntryEnabled, isSafeProviderId, looksLikeLiteralSecret, mergeRegistries, normalizeAnthropicBaseUrl, normalizeEntryBaseUrl, parseCredentialRef, parseModelRef, pickRegistryEntries, registryEntries, resolveEntryBaseUrl, validateMergedRegistry, validateRegistry } from '../chunk-MJHSLODD.js';
@@ -1,5 +1,5 @@
1
- export { DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromKnowledgeYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-LFMX2UEF.js';
2
- import '../chunk-WX74MVNA.js';
1
+ export { DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, ManifestKindError, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, assetDepRefs, fromAgentMd, fromAgentYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromKnowledgeYaml, fromMcpServerMd, fromMcpServerMdContent, fromPresetYaml, fromPromptMd, fromSkillMd, manifestKindDiagnostic, parseFrontmatter, parseRequires, presetItemRefs, scanDirectory, walkDir } from '../chunk-PA7WLID3.js';
2
+ import '../chunk-AO7VJ6G6.js';
3
3
  import '../chunk-BOFL7GIF.js';
4
4
  import '../chunk-NSBPE2FW.js';
5
5
  //# sourceMappingURL=manifest.js.map
@@ -1,4 +1,4 @@
1
- export { ASSET_KINDS, ASSET_NAME_HINT, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseAssetRefLoose, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName } from '../chunk-WX74MVNA.js';
1
+ export { ASSET_NAME_HINT, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseAssetRefLoose, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName } from '../chunk-AO7VJ6G6.js';
2
2
  import '../chunk-NSBPE2FW.js';
3
3
  //# sourceMappingURL=models.js.map
4
4
  //# sourceMappingURL=models.js.map
@@ -1,5 +1,5 @@
1
- export { ASSET_KEY_ORDER, SKAILE_MANIFEST_FILENAME, compositeSha256, decodeSkaileManifest, encodeSkaileManifest, listAssetFiles, loadSkPublishManifest, orderedAsset, sha256Hex } from '../chunk-SR4RFKHM.js';
2
- import '../chunk-WX74MVNA.js';
1
+ export { ASSET_KEY_ORDER, SKAILE_MANIFEST_FILENAME, compositeSha256, decodeSkaileManifest, encodeSkaileManifest, listAssetFiles, loadSkPublishManifest, orderedAsset, sha256Hex } from '../chunk-7ZHLYXTI.js';
2
+ import '../chunk-AO7VJ6G6.js';
3
3
  import '../chunk-NSBPE2FW.js';
4
4
  //# sourceMappingURL=publish-manifest.js.map
5
5
  //# sourceMappingURL=publish-manifest.js.map
package/dist/core/ref.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ASSET_NAME_HINT, assetRefToStr, isValidAssetName, parseAssetRef } from '../chunk-WX74MVNA.js';
1
+ export { ASSET_NAME_HINT, assetRefToStr, isValidAssetName, parseAssetRef } from '../chunk-AO7VJ6G6.js';
2
2
  import '../chunk-NSBPE2FW.js';
3
3
 
4
4
  // core/src/ref.ts
@@ -1,11 +1,11 @@
1
- export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-YK7WJSTD.js';
2
- import '../chunk-ORUHADS6.js';
1
+ export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-BF33SCLY.js';
2
+ import '../chunk-2W4LBLIN.js';
3
3
  import '../chunk-MFHKHXDE.js';
4
- import '../chunk-TOSHZX4C.js';
5
- import '../chunk-SR4RFKHM.js';
4
+ import '../chunk-CPSIPIX7.js';
5
+ import '../chunk-7ZHLYXTI.js';
6
6
  import '../chunk-RVRB27AN.js';
7
- import '../chunk-LFMX2UEF.js';
8
- import '../chunk-WX74MVNA.js';
7
+ import '../chunk-PA7WLID3.js';
8
+ import '../chunk-AO7VJ6G6.js';
9
9
  import '../chunk-C3CAXQMA.js';
10
10
  import '../chunk-BOFL7GIF.js';
11
11
  import '../chunk-NSBPE2FW.js';
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Named agent instances — the root `agents:` map of `skaile.yaml`.
3
+ *
4
+ * An *instance* binds one agent asset into the workspace under a stable id
5
+ * (`ref`), with overrides (lifecycle, model, permissions, memory scope,
6
+ * triggers, connector slot bindings, budget). The legacy `agent:` block stays
7
+ * the primary instance and is equivalent to `agents.default`.
8
+ *
9
+ * Pure: normalisation, merge and the effective-map helper do no I/O. Checks
10
+ * that need the agent asset (`ref` resolves, `io` on roles, slot ids) live in
11
+ * `skaile validate`.
12
+ */
13
+ import type { AgentPermissions, Diagnostic, SkWorkspaceConfig } from "./workspace-config.js";
14
+ /** Instance ids and trigger ids: lowercase, start with a letter. */
15
+ export declare const AGENT_INSTANCE_ID_PATTERN: RegExp;
16
+ /** Id of the primary instance — the one `agent:` declares. */
17
+ export declare const DEFAULT_AGENT_INSTANCE_ID = "default";
18
+ export declare const AGENT_INSTANCE_LIFECYCLES: readonly ["standing", "role"];
19
+ export type AgentInstanceLifecycle = (typeof AGENT_INSTANCE_LIFECYCLES)[number];
20
+ /** Where an instance's memory blocks live; `none` disables host memory for it. */
21
+ export declare const AGENT_INSTANCE_MEMORY_SCOPES: readonly ["instance", "user", "workspace", "none"];
22
+ export type AgentInstanceMemoryScope = (typeof AGENT_INSTANCE_MEMORY_SCOPES)[number];
23
+ export declare const AGENT_INSTANCE_TRIGGER_KINDS: readonly ["schedule", "webhook", "channel", "event"];
24
+ /**
25
+ * A trigger entry on an instance. Merged by `id` into the asset's triggers: a
26
+ * bare `{ id, enabled: false }` or `{ id, timezone }` is a partial override of
27
+ * the asset's trigger of that id; an entry with `kind` declares a complete
28
+ * trigger of its own (required when the asset has no trigger with that id).
29
+ */
30
+ export interface AgentInstanceTrigger {
31
+ id: string;
32
+ kind?: (typeof AGENT_INSTANCE_TRIGGER_KINDS)[number];
33
+ enabled?: boolean;
34
+ timezone?: string;
35
+ cron?: string;
36
+ prompt?: string;
37
+ /** `channel` triggers: which channel messages fire it (e.g. `mention`). */
38
+ when?: string;
39
+ /** `event` triggers: protocol / host event name. */
40
+ event?: string;
41
+ }
42
+ export interface AgentInstanceModel {
43
+ preferred?: string;
44
+ fallback?: string[];
45
+ }
46
+ export interface AgentInstanceBudget {
47
+ max_turns?: number;
48
+ max_tokens?: number;
49
+ }
50
+ export interface AgentInstanceConfig {
51
+ /** Agent asset reference — same forms as `agent.definition`. */
52
+ ref: string;
53
+ /** Overrides the asset's `lifecycle`. */
54
+ lifecycle?: AgentInstanceLifecycle;
55
+ model?: AgentInstanceModel;
56
+ /** Same shape and stacking rules as `agent.permissions`. */
57
+ permissions?: AgentPermissions;
58
+ memory?: {
59
+ scope: AgentInstanceMemoryScope;
60
+ };
61
+ /** Merged by `id` into the asset's triggers. */
62
+ triggers?: AgentInstanceTrigger[];
63
+ /** Compose slot id (`composes[].id`) → `skaile.yaml` `connectors[].id`. */
64
+ connectors?: Record<string, string>;
65
+ budget?: AgentInstanceBudget;
66
+ }
67
+ /**
68
+ * Normalise the raw root `agents:` value. Total: a malformed instance is
69
+ * dropped (or has the offending field dropped) with an `error` diagnostic
70
+ * rather than throwing. Returns `undefined` when no instance survives.
71
+ */
72
+ export declare function normalizeAgentInstances(raw: unknown, diagnostics: Diagnostic[]): Record<string, AgentInstanceConfig> | undefined;
73
+ /**
74
+ * Merge two `permissions` blocks: scalars overlay-win, `deny_write` /
75
+ * `deny_read` are unioned. Shared by `agent.permissions` and instance permissions.
76
+ */
77
+ export declare function mergeAgentPermissions(base: AgentPermissions | undefined, overlay: AgentPermissions | undefined): AgentPermissions;
78
+ /**
79
+ * Merge instance maps across config layers: keyed by id; an id present in both
80
+ * layers merges field-wise (scalars overlay-win, `triggers` by id, deny lists
81
+ * unioned, `connectors` per slot). Returns `undefined` when neither layer has instances.
82
+ */
83
+ export declare function mergeAgentInstances(base: Record<string, AgentInstanceConfig> | undefined, overlay: Record<string, AgentInstanceConfig> | undefined): Record<string, AgentInstanceConfig> | undefined;
84
+ /**
85
+ * Every instance of a workspace config: the declared `agents:` map plus the
86
+ * `default` instance derived from `agent.definition`. When both declare
87
+ * `default` the config is invalid (see {@link agentInstanceDiagnostics}); the
88
+ * primary `agent:` wins here because that is what the runner builds.
89
+ */
90
+ export declare function effectiveAgentInstances(config: Pick<SkWorkspaceConfig, "agent">): Record<string, AgentInstanceConfig>;
91
+ /** `agent_default_conflict` error when `agent.definition` and `agents.default` are both declared. */
92
+ export declare function agentInstanceDiagnostics(config: Pick<SkWorkspaceConfig, "agent">): Diagnostic[];
93
+ //# sourceMappingURL=agent-instances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-instances.d.ts","sourceRoot":"","sources":["../../../core/src/agent-instances.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE7F,oEAAoE;AACpE,eAAO,MAAM,yBAAyB,QAAuB,CAAC;AAE9D,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB,YAAY,CAAC;AAEnD,eAAO,MAAM,yBAAyB,+BAAgC,CAAC;AACvE,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhF,kFAAkF;AAClF,eAAO,MAAM,4BAA4B,oDAAqD,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAErF,eAAO,MAAM,4BAA4B,sDAAuD,CAAC;AAEjG;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,4DAA4D;IAC5D,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,wBAAwB,CAAA;KAAE,CAAC;IAC7C,gDAAgD;IAChD,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAClC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAeD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,UAAU,EAAE,GACxB,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,SAAS,CAmCjD;AAyJD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,GAAG,SAAS,EAClC,OAAO,EAAE,gBAAgB,GAAG,SAAS,GACpC,gBAAgB,CAOlB;AAsCD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,SAAS,EACrD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,SAAS,GACvD,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,SAAS,CAQjD;AAID;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GACvC,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAKrC;AAED,qGAAqG;AACrG,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG,UAAU,EAAE,CAc/F"}
@@ -0,0 +1,90 @@
1
+ /**
2
+ * The one system-prompt section builder for an agent definition. The install
3
+ * renderers (`asset-manager`, bake the prompt into `.claude/agents/<name>.md`
4
+ * and friends) and the runner (`createAgentSession`, assembles the live
5
+ * system prompt) both build the agent part of the prompt through
6
+ * {@link buildAgentPromptSections}, so the two can never disagree on order.
7
+ *
8
+ * Order — fixed here and nowhere else:
9
+ *
10
+ * 1. soul — identity and values
11
+ * 2. memory — `<MEMORY>` block, one framed `<block>` per memory block
12
+ * 3. fragments — framework fragments (agent-mode, handoff, …)
13
+ * 4. constraints — `## Constraints` (RULES)
14
+ * 5. duties — `## Duties`
15
+ * 6. abilities — `## Installed Abilities`
16
+ * 7. contracts — `## Contracts`
17
+ * 8. composed — inline blocks from `composes:`
18
+ * 9. extensions — per-project prompt-extensions
19
+ *
20
+ * Pure: no I/O. Callers hand in text they already loaded.
21
+ */
22
+ /** Section ids in the order the builder emits them. */
23
+ export declare const AGENT_PROMPT_SECTION_ORDER: readonly ["soul", "memory", "fragments", "constraints", "duties", "abilities", "contracts", "composed", "extensions"];
24
+ export type AgentPromptSectionId = (typeof AGENT_PROMPT_SECTION_ORDER)[number];
25
+ /** A piece of prompt text, optionally with a label for breakdowns (`source`). */
26
+ export type AgentPromptPart = string | {
27
+ text: string;
28
+ source?: string;
29
+ };
30
+ /** One memory block as rendered in `<MEMORY>`. */
31
+ export interface AgentPromptMemoryBlock {
32
+ name: string;
33
+ /** `instance` | `user` | `workspace`. */
34
+ scope: string;
35
+ /** Hard cap on the rendered content (characters). */
36
+ maxChars: number;
37
+ /** Current block content: what the host holds, or the seed when the host holds nothing. */
38
+ content: string;
39
+ }
40
+ export interface AgentPromptAbility {
41
+ /** Slash-command name. */
42
+ name: string;
43
+ description: string;
44
+ }
45
+ export interface AgentPromptContract {
46
+ name: string;
47
+ /** Path relative to the workspace root. */
48
+ relativePath: string;
49
+ }
50
+ /** Everything the builder can place; every part is optional. */
51
+ export interface AgentPromptSectionsInput {
52
+ soul?: string | null;
53
+ memory?: readonly AgentPromptMemoryBlock[];
54
+ frameworkFragments?: readonly AgentPromptPart[];
55
+ /** RULES text; rendered under `## Constraints`. */
56
+ constraints?: string | null;
57
+ /** DUTIES text; rendered under `## Duties`. */
58
+ duties?: string | null;
59
+ abilities?: readonly AgentPromptAbility[];
60
+ contracts?: readonly AgentPromptContract[];
61
+ /** Inline blocks composed through `composes:`. */
62
+ composed?: readonly AgentPromptPart[];
63
+ promptExtensions?: readonly AgentPromptPart[];
64
+ }
65
+ /** One rendered, non-empty section. Multi-entry ids (fragments, composed, extensions) repeat. */
66
+ export interface AgentPromptSection {
67
+ id: AgentPromptSectionId;
68
+ text: string;
69
+ /** Label of the contributing part, when it had one. */
70
+ source?: string;
71
+ }
72
+ /**
73
+ * Render one memory block's content, capped at `maxChars` (the cap bounds the
74
+ * content; the frame is extra). Exported so hosts that edit blocks can preview
75
+ * exactly what the agent will see.
76
+ */
77
+ export declare function capMemoryContent(content: string, maxChars: number): string;
78
+ /**
79
+ * The `<MEMORY>` block for the given memory blocks, or `undefined` when none
80
+ * has content. Each block is framed `<block name=… scope=…>` and capped at its
81
+ * own `maxChars`.
82
+ */
83
+ export declare function renderMemorySection(blocks: readonly AgentPromptMemoryBlock[]): string | undefined;
84
+ /**
85
+ * Build the agent part of a system prompt as an ordered list of sections.
86
+ * Empty parts are dropped. Join `section.text` with the caller's separator
87
+ * (`\n\n` in the install renderers, the `---` rule in the runner).
88
+ */
89
+ export declare function buildAgentPromptSections(input: AgentPromptSectionsInput): AgentPromptSection[];
90
+ //# sourceMappingURL=agent-prompt-sections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-prompt-sections.d.ts","sourceRoot":"","sources":["../../../core/src/agent-prompt-sections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,uDAAuD;AACvD,eAAO,MAAM,0BAA0B,uHAU7B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E,iFAAiF;AACjF,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,kDAAkD;AAClD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,gEAAgE;AAChE,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC3C,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IAChD,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC3C,kDAAkD;IAClD,QAAQ,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACtC,gBAAgB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;CAC/C;AAED,iGAAiG;AACjG,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,oBAAoB,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG1E;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,sBAAsB,EAAE,GAAG,MAAM,GAAG,SAAS,CASjG;AAMD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,kBAAkB,EAAE,CAwC9F"}
@@ -1,3 +1,4 @@
1
+ import type { AssetInstallTarget } from "@skaile/workspaces/plugins";
1
2
  /**
2
3
  * All supported coding-agent driver target identifiers.
3
4
  * Only harnesses with a full bridge driver (runtime execution) are included.
@@ -17,11 +18,12 @@ export interface AgentTarget {
17
18
  global: Record<AiComponent, string>;
18
19
  }
19
20
  /**
20
- * The distinct asset types that can be installed into a driver target directory.
21
+ * The distinct asset types that can be installed into a driver target directory —
22
+ * the `installTarget` values an `IAssetKindProvider` may declare.
21
23
  * Used as keys in `AgentTarget.local` and `AgentTarget.global`.
22
24
  * @docLink packages/core/concepts#ai-component
23
25
  */
24
- export type AiComponent = "skill" | "agent" | "prompt" | "flow" | "contract";
26
+ export type AiComponent = AssetInstallTarget;
25
27
  /**
26
28
  * Filesystem install path configuration for every supported driver target.
27
29
  * `local` paths are relative to the project root; `global` paths are home-relative (`~` = `$HOME`).
@@ -1 +1 @@
1
- {"version":3,"file":"driver-targets.d.ts","sourceRoot":"","sources":["../../../core/src/driver-targets.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,KAAK,GAAG,OAAO,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACnC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE7E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,WAAW,CAiD5D,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAI1F;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAkC,YAAY,EAAE,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAI9D"}
1
+ {"version":3,"file":"driver-targets.d.ts","sourceRoot":"","sources":["../../../core/src/driver-targets.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,KAAK,GAAG,OAAO,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B,iEAAiE;IACjE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACnC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;CACrC;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAE7C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,WAAW,CAiD5D,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAI1F;AAED;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAkC,YAAY,EAAE,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAI9D"}
@@ -21,11 +21,11 @@ export type { VerifyResult } from "./lock.js";
21
21
  export { buildLibraryLockEntries, buildLockFile, computeHash, mergeLockFile, readLock, readPluginsLockSlice, verifyLock, writeLock, writePluginsLockSlice, } from "./lock.js";
22
22
  export { DEFAULT_FS_DEADLINE_MS, FS_DEADLINE_ENV_VAR, FsDeadlineError, fsDeadlineMs, tryWithFsDeadline, withFsDeadline, } from "./fs-deadline.js";
23
23
  export * from "./logging/index.js";
24
- export type { FrontmatterResult, WalkOptions, WalkTruncation } from "./manifest.js";
25
- export { bundleDepRefs, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, walkDir, } from "./manifest.js";
24
+ export type { FrontmatterResult, ScanOptions, WalkOptions, WalkTruncation } from "./manifest.js";
25
+ export { assetDepRefs, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, fromAgentMd, fromAgentYaml, fromPresetYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, ManifestKindError, manifestKindDiagnostic, parseFrontmatter, parseRequires, presetItemRefs, scanDirectory, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, walkDir, } from "./manifest.js";
26
26
  export { ManifestYamlEditor } from "./manifest-yaml-editor.js";
27
- export type { AgentManifest, AssetKind, AssetRef, CatalogEntry, Dependency, LockEntry, LockFile, LockFileEntry, LockLibraryOrigin, LockPluginEntry, LockSourceEntry, Repository, } from "./models.js";
28
- export { ASSET_KINDS, ASSET_NAME_HINT, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, INDIVIDUAL_KINDS, isValidAssetName, parseAssetRef, parseAssetRefLoose, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName, } from "./models.js";
27
+ export type { AssetKind, AssetRef, CatalogEntry, Dependency, LockEntry, LockFile, LockFileEntry, LockLibraryOrigin, LockPluginEntry, LockSourceEntry, Repository, } from "./models.js";
28
+ export { ASSET_NAME_HINT, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseAssetRefLoose, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName, } from "./models.js";
29
29
  export { checkAgentSkillConformance, type ConformanceFinding, type ConformanceOptions, } from "./conformance.js";
30
30
  export { applyPatch, extractForPatch, generatePatch, listPatches, readPatch, savePatch, } from "./patch.js";
31
31
  export type { AssetEntry, ManifestDecodeResult, ManifestFileEntry, ManifestProvenance, ManifestSource, SkPublishManifest, } from "./publish-manifest.js";
@@ -37,8 +37,8 @@ export { __resetCredentialCommandCache, resolveCredential, } from "./provider-re
37
37
  export { AI_PROVIDER_BASE_URL_TEMPLATES, AI_PROVIDER_CREDENTIAL_KINDS, AI_PROVIDER_DISCOVERY_TYPES, AI_PROVIDER_KINDS, AI_PROVIDER_LAYERS, AI_PROVIDER_SURFACES, AI_PROVIDER_TRANSPORTS, AI_PROVIDER_VOICE_KINDS, entryTransport, formatCredentialRef, isEntryEnabled, isSafeProviderId, looksLikeLiteralSecret, mergeRegistries, normalizeAnthropicBaseUrl, normalizeEntryBaseUrl, parseCredentialRef, parseModelRef, pickRegistryEntries, registryEntries, resolveEntryBaseUrl, validateMergedRegistry, validateRegistry, } from "./provider-registry.js";
38
38
  export type { LoadProviderRegistryOptions, LoadedProviderRegistry, ProviderRegistryFile, } from "./provider-registry-files.js";
39
39
  export { loadProviderRegistry, loadProviderRegistryFile, PROVIDERS_FILENAME, saveProviderRegistryFile, userProviderRegistryPath, workspaceProviderRegistryPath, } from "./provider-registry-files.js";
40
- export type { LinkConfig, PullResult, RepoStatus, ResolveOpts, ResolveResult, StoreFetcher, } from "./repo-manager.js";
41
- export { CanonicalRefConflictError, checkoutPin, checkRepoStatus, cloneRepo, coerceVersion, ensureRepo, getGlobalCacheDir, getRepoCommit, linkRepo, matchPin, pullRepo, pullRepoResult, readLinks, resolveAll, resolveAsset, resolveSourcePublisher, scanRepo, sourceCacheKey, sourceShortName, storeManifestSlug, unlinkRepo, writeLinks, } from "./repo-manager.js";
40
+ export type { LinkConfig, PresetExpansion, PullResult, RepoStatus, ResolveOpts, ResolveResult, StoreFetcher, } from "./repo-manager.js";
41
+ export { CanonicalRefConflictError, PresetDepthError, UnknownAssetKindError, checkoutPin, checkRepoStatus, cloneRepo, coerceVersion, ensureRepo, getGlobalCacheDir, getRepoCommit, linkRepo, matchPin, pullRepo, pullRepoResult, readLinks, resolveAll, resolveAsset, resolveSourcePublisher, scanRepo, sourceCacheKey, sourceShortName, storeManifestSlug, unlinkRepo, writeLinks, } from "./repo-manager.js";
42
42
  export type { RuntimeAssetRef, RuntimeAssetsResult, RuntimeAssetWarning, RuntimeCatalogEntry, RuntimeNpmDeps, } from "./runtime-assets.js";
43
43
  export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot, } from "./runtime-assets.js";
44
44
  export type { SkaileSettings } from "./settings.js";
@@ -49,8 +49,12 @@ export { portableSpawn, portableSpawnSync } from "./subprocess.js";
49
49
  export { processAlive, processExited, processGroupAlive } from "./process-alive.js";
50
50
  export type { ProvenanceCandidate, ProvenanceIndex, SourceClone, } from "./walker.js";
51
51
  export { buildProvenanceIndex } from "./walker.js";
52
- export type { AgentConfig, AgentConfigProfile, AgentContextConfig, AgentHomeConfig, AgentHomeFile, AgentHooks, AgentPermissions, AgentRefErrorCode, AssetRecipe, CompactionConfig, ResolvedCompactionConfig, ConnectorDeclaration, ContainerConfig, DecodeResult, Diagnostic, DiagnosticSeverity, GitConfig, HookEntry, LoggingConfig, McpServerDeclaration, NetworkPolicy, OverrideEntry, RuntimeDefaults, SecretsConfig, SetupEntry, SkWorkspaceConfig, SkWorkspaceConfigFile, SourceDeclaration, SourceEntry, StoreEntry, SubagentConfig, WorkspaceLayoutConfig, } from "./workspace-config.js";
53
- export { AgentRefResolutionError, COMPACTION_DEFAULTS, DEFAULT_RECIPE_ATTR, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, findWorkspaceRoot, isWorkspaceConfigFilename, listSkWorkspaceConfigs, resolveCompactionThresholdPercent, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, resolveAgentDir, resolveGlobalHarnesses, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, SKAILE_YAML_DEFAULT, isStagedSkillMarkerFor, readSkillAllowList, SKILL_ALLOWLIST_FILE, SKILL_ALLOWLIST_VERSION, saveSkWorkspaceConfig, STAGED_SKILL_MARKER, type StagedSkillMarkerState, stagedSkillMarkerState, stageMaterializedSkills, type UnstageSkillResult, unstageSkill, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, } from "./workspace-config.js";
52
+ export type { AgentPromptAbility, AgentPromptContract, AgentPromptMemoryBlock, AgentPromptPart, AgentPromptSection, AgentPromptSectionId, AgentPromptSectionsInput, } from "./agent-prompt-sections.js";
53
+ export { AGENT_PROMPT_SECTION_ORDER, buildAgentPromptSections, capMemoryContent, renderMemorySection, } from "./agent-prompt-sections.js";
54
+ export type { AgentInstanceBudget, AgentInstanceConfig, AgentInstanceLifecycle, AgentInstanceMemoryScope, AgentInstanceModel, AgentInstanceTrigger, } from "./agent-instances.js";
55
+ export { AGENT_INSTANCE_ID_PATTERN, AGENT_INSTANCE_LIFECYCLES, AGENT_INSTANCE_MEMORY_SCOPES, AGENT_INSTANCE_TRIGGER_KINDS, agentInstanceDiagnostics, DEFAULT_AGENT_INSTANCE_ID, effectiveAgentInstances, mergeAgentInstances, mergeAgentPermissions, normalizeAgentInstances, } from "./agent-instances.js";
56
+ export type { AgentConfig, AgentConfigProfile, AgentContextConfig, AgentHomeConfig, AgentHomeFile, AgentHooks, AgentPermissions, AgentRefErrorCode, AssetRecipe, CompactionConfig, ResolvedCompactionConfig, ConnectorDeclaration, ContainerConfig, DecodeResult, Diagnostic, DiagnosticSeverity, GitConfig, HookEntry, LoggingConfig, McpServerDeclaration, NetworkPolicy, OverrideEntry, RuntimeDefaults, SecretsConfig, SetupEntry, SkWorkspaceConfig, SkWorkspaceConfigFile, SourceDeclaration, SourceEntry, StoreEntry, WorkspaceLayoutConfig, } from "./workspace-config.js";
57
+ export { AgentRefResolutionError, COMPACTION_DEFAULTS, DEFAULT_RECIPE_ATTR, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, findWorkspaceRoot, isWorkspaceConfigFilename, listSkWorkspaceConfigs, resolveCompactionThresholdPercent, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, resolveAgentDefinitionDir, resolveAgentDir, resolveGlobalHarnesses, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, SKAILE_YAML_DEFAULT, isStagedSkillMarkerFor, readSkillAllowList, SKILL_ALLOWLIST_FILE, SKILL_ALLOWLIST_VERSION, saveSkWorkspaceConfig, STAGED_SKILL_MARKER, type StagedSkillMarkerState, stagedSkillMarkerState, stageMaterializedSkills, type UnstageSkillResult, unstageSkill, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, } from "./workspace-config.js";
54
58
  export {
55
59
  /** @deprecated Use `globalHarnessRoot`. */
56
60
  globalHarnessRoot as globalBackendRoot, } from "./driver-targets.js";