@xemahq/biome-sdk 0.1.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 (383) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +62 -0
  3. package/dist/adapter/index.d.ts +7 -0
  4. package/dist/adapter/index.d.ts.map +1 -0
  5. package/dist/adapter/index.js +23 -0
  6. package/dist/adapter/index.js.map +1 -0
  7. package/dist/adapter/lib/action.d.ts +25 -0
  8. package/dist/adapter/lib/action.d.ts.map +1 -0
  9. package/dist/adapter/lib/action.js +3 -0
  10. package/dist/adapter/lib/action.js.map +1 -0
  11. package/dist/adapter/lib/provider-module.d.ts +41 -0
  12. package/dist/adapter/lib/provider-module.d.ts.map +1 -0
  13. package/dist/adapter/lib/provider-module.js +7 -0
  14. package/dist/adapter/lib/provider-module.js.map +1 -0
  15. package/dist/adapter/lib/resource.d.ts +25 -0
  16. package/dist/adapter/lib/resource.d.ts.map +1 -0
  17. package/dist/adapter/lib/resource.js +3 -0
  18. package/dist/adapter/lib/resource.js.map +1 -0
  19. package/dist/adapter/lib/result.d.ts +18 -0
  20. package/dist/adapter/lib/result.d.ts.map +1 -0
  21. package/dist/adapter/lib/result.js +12 -0
  22. package/dist/adapter/lib/result.js.map +1 -0
  23. package/dist/adapter/lib/sidecar-contract.d.ts +91 -0
  24. package/dist/adapter/lib/sidecar-contract.d.ts.map +1 -0
  25. package/dist/adapter/lib/sidecar-contract.js +19 -0
  26. package/dist/adapter/lib/sidecar-contract.js.map +1 -0
  27. package/dist/adapter/lib/webhook.d.ts +49 -0
  28. package/dist/adapter/lib/webhook.d.ts.map +1 -0
  29. package/dist/adapter/lib/webhook.js +3 -0
  30. package/dist/adapter/lib/webhook.js.map +1 -0
  31. package/dist/agent-workspace/index.d.ts +8 -0
  32. package/dist/agent-workspace/index.d.ts.map +1 -0
  33. package/dist/agent-workspace/index.js +24 -0
  34. package/dist/agent-workspace/index.js.map +1 -0
  35. package/dist/agent-workspace/lib/errors/error-codes.d.ts +16 -0
  36. package/dist/agent-workspace/lib/errors/error-codes.d.ts.map +1 -0
  37. package/dist/agent-workspace/lib/errors/error-codes.js +37 -0
  38. package/dist/agent-workspace/lib/errors/error-codes.js.map +1 -0
  39. package/dist/agent-workspace/lib/errors/index.d.ts +4 -0
  40. package/dist/agent-workspace/lib/errors/index.d.ts.map +1 -0
  41. package/dist/agent-workspace/lib/errors/index.js +20 -0
  42. package/dist/agent-workspace/lib/errors/index.js.map +1 -0
  43. package/dist/agent-workspace/lib/errors/mount-plan-error.d.ts +16 -0
  44. package/dist/agent-workspace/lib/errors/mount-plan-error.d.ts.map +1 -0
  45. package/dist/agent-workspace/lib/errors/mount-plan-error.js +26 -0
  46. package/dist/agent-workspace/lib/errors/mount-plan-error.js.map +1 -0
  47. package/dist/agent-workspace/lib/errors/mount-resolver-error.d.ts +34 -0
  48. package/dist/agent-workspace/lib/errors/mount-resolver-error.d.ts.map +1 -0
  49. package/dist/agent-workspace/lib/errors/mount-resolver-error.js +50 -0
  50. package/dist/agent-workspace/lib/errors/mount-resolver-error.js.map +1 -0
  51. package/dist/agent-workspace/lib/mount-resolver.d.ts +10 -0
  52. package/dist/agent-workspace/lib/mount-resolver.d.ts.map +1 -0
  53. package/dist/agent-workspace/lib/mount-resolver.js +3 -0
  54. package/dist/agent-workspace/lib/mount-resolver.js.map +1 -0
  55. package/dist/agent-workspace/lib/mount-source.d.ts +4 -0
  56. package/dist/agent-workspace/lib/mount-source.d.ts.map +1 -0
  57. package/dist/agent-workspace/lib/mount-source.js +3 -0
  58. package/dist/agent-workspace/lib/mount-source.js.map +1 -0
  59. package/dist/agent-workspace/lib/refid-resolver.d.ts +23 -0
  60. package/dist/agent-workspace/lib/refid-resolver.d.ts.map +1 -0
  61. package/dist/agent-workspace/lib/refid-resolver.js +103 -0
  62. package/dist/agent-workspace/lib/refid-resolver.js.map +1 -0
  63. package/dist/agent-workspace/lib/registries.d.ts +30 -0
  64. package/dist/agent-workspace/lib/registries.d.ts.map +1 -0
  65. package/dist/agent-workspace/lib/registries.js +88 -0
  66. package/dist/agent-workspace/lib/registries.js.map +1 -0
  67. package/dist/agent-workspace/lib/resolvers/agent-definition.resolver.d.ts +13 -0
  68. package/dist/agent-workspace/lib/resolvers/agent-definition.resolver.d.ts.map +1 -0
  69. package/dist/agent-workspace/lib/resolvers/agent-definition.resolver.js +25 -0
  70. package/dist/agent-workspace/lib/resolvers/agent-definition.resolver.js.map +1 -0
  71. package/dist/agent-workspace/lib/resolvers/artifact-store-collection.resolver.d.ts +13 -0
  72. package/dist/agent-workspace/lib/resolvers/artifact-store-collection.resolver.d.ts.map +1 -0
  73. package/dist/agent-workspace/lib/resolvers/artifact-store-collection.resolver.js +28 -0
  74. package/dist/agent-workspace/lib/resolvers/artifact-store-collection.resolver.js.map +1 -0
  75. package/dist/agent-workspace/lib/resolvers/artifact-version.resolver.d.ts +13 -0
  76. package/dist/agent-workspace/lib/resolvers/artifact-version.resolver.d.ts.map +1 -0
  77. package/dist/agent-workspace/lib/resolvers/artifact-version.resolver.js +25 -0
  78. package/dist/agent-workspace/lib/resolvers/artifact-version.resolver.js.map +1 -0
  79. package/dist/agent-workspace/lib/resolvers/clients.d.ts +122 -0
  80. package/dist/agent-workspace/lib/resolvers/clients.d.ts.map +1 -0
  81. package/dist/agent-workspace/lib/resolvers/clients.js +3 -0
  82. package/dist/agent-workspace/lib/resolvers/clients.js.map +1 -0
  83. package/dist/agent-workspace/lib/resolvers/deliverable-specs.resolver.d.ts +13 -0
  84. package/dist/agent-workspace/lib/resolvers/deliverable-specs.resolver.d.ts.map +1 -0
  85. package/dist/agent-workspace/lib/resolvers/deliverable-specs.resolver.js +24 -0
  86. package/dist/agent-workspace/lib/resolvers/deliverable-specs.resolver.js.map +1 -0
  87. package/dist/agent-workspace/lib/resolvers/deliverables.resolver.d.ts +13 -0
  88. package/dist/agent-workspace/lib/resolvers/deliverables.resolver.d.ts.map +1 -0
  89. package/dist/agent-workspace/lib/resolvers/deliverables.resolver.js +28 -0
  90. package/dist/agent-workspace/lib/resolvers/deliverables.resolver.js.map +1 -0
  91. package/dist/agent-workspace/lib/resolvers/index.d.ts +20 -0
  92. package/dist/agent-workspace/lib/resolvers/index.d.ts.map +1 -0
  93. package/dist/agent-workspace/lib/resolvers/index.js +36 -0
  94. package/dist/agent-workspace/lib/resolvers/index.js.map +1 -0
  95. package/dist/agent-workspace/lib/resolvers/instruction-section.resolver.d.ts +13 -0
  96. package/dist/agent-workspace/lib/resolvers/instruction-section.resolver.d.ts.map +1 -0
  97. package/dist/agent-workspace/lib/resolvers/instruction-section.resolver.js +22 -0
  98. package/dist/agent-workspace/lib/resolvers/instruction-section.resolver.js.map +1 -0
  99. package/dist/agent-workspace/lib/resolvers/kb-pages.resolver.d.ts +13 -0
  100. package/dist/agent-workspace/lib/resolvers/kb-pages.resolver.d.ts.map +1 -0
  101. package/dist/agent-workspace/lib/resolvers/kb-pages.resolver.js +36 -0
  102. package/dist/agent-workspace/lib/resolvers/kb-pages.resolver.js.map +1 -0
  103. package/dist/agent-workspace/lib/resolvers/kb-space.resolver.d.ts +13 -0
  104. package/dist/agent-workspace/lib/resolvers/kb-space.resolver.d.ts.map +1 -0
  105. package/dist/agent-workspace/lib/resolvers/kb-space.resolver.js +26 -0
  106. package/dist/agent-workspace/lib/resolvers/kb-space.resolver.js.map +1 -0
  107. package/dist/agent-workspace/lib/resolvers/rendered-agents-md.resolver.d.ts +13 -0
  108. package/dist/agent-workspace/lib/resolvers/rendered-agents-md.resolver.d.ts.map +1 -0
  109. package/dist/agent-workspace/lib/resolvers/rendered-agents-md.resolver.js +23 -0
  110. package/dist/agent-workspace/lib/resolvers/rendered-agents-md.resolver.js.map +1 -0
  111. package/dist/agent-workspace/lib/resolvers/rendered-context-json.resolver.d.ts +13 -0
  112. package/dist/agent-workspace/lib/resolvers/rendered-context-json.resolver.d.ts.map +1 -0
  113. package/dist/agent-workspace/lib/resolvers/rendered-context-json.resolver.js +24 -0
  114. package/dist/agent-workspace/lib/resolvers/rendered-context-json.resolver.js.map +1 -0
  115. package/dist/agent-workspace/lib/resolvers/rendered-system-overlay.resolver.d.ts +13 -0
  116. package/dist/agent-workspace/lib/resolvers/rendered-system-overlay.resolver.d.ts.map +1 -0
  117. package/dist/agent-workspace/lib/resolvers/rendered-system-overlay.resolver.js +23 -0
  118. package/dist/agent-workspace/lib/resolvers/rendered-system-overlay.resolver.js.map +1 -0
  119. package/dist/agent-workspace/lib/resolvers/scm-repo.resolver.d.ts +13 -0
  120. package/dist/agent-workspace/lib/resolvers/scm-repo.resolver.d.ts.map +1 -0
  121. package/dist/agent-workspace/lib/resolvers/scm-repo.resolver.js +28 -0
  122. package/dist/agent-workspace/lib/resolvers/scm-repo.resolver.js.map +1 -0
  123. package/dist/agent-workspace/lib/resolvers/session-attachment.resolver.d.ts +13 -0
  124. package/dist/agent-workspace/lib/resolvers/session-attachment.resolver.d.ts.map +1 -0
  125. package/dist/agent-workspace/lib/resolvers/session-attachment.resolver.js +28 -0
  126. package/dist/agent-workspace/lib/resolvers/session-attachment.resolver.js.map +1 -0
  127. package/dist/agent-workspace/lib/resolvers/skill-bundle.resolver.d.ts +13 -0
  128. package/dist/agent-workspace/lib/resolvers/skill-bundle.resolver.d.ts.map +1 -0
  129. package/dist/agent-workspace/lib/resolvers/skill-bundle.resolver.js +29 -0
  130. package/dist/agent-workspace/lib/resolvers/skill-bundle.resolver.js.map +1 -0
  131. package/dist/agent-workspace/lib/resolvers/static-literal.resolver.d.ts +11 -0
  132. package/dist/agent-workspace/lib/resolvers/static-literal.resolver.d.ts.map +1 -0
  133. package/dist/agent-workspace/lib/resolvers/static-literal.resolver.js +33 -0
  134. package/dist/agent-workspace/lib/resolvers/static-literal.resolver.js.map +1 -0
  135. package/dist/agent-workspace/lib/resolvers/types.d.ts +35 -0
  136. package/dist/agent-workspace/lib/resolvers/types.d.ts.map +1 -0
  137. package/dist/agent-workspace/lib/resolvers/types.js +3 -0
  138. package/dist/agent-workspace/lib/resolvers/types.js.map +1 -0
  139. package/dist/agent-workspace/lib/resolvers/utils/agent-run-context-cache.d.ts +70 -0
  140. package/dist/agent-workspace/lib/resolvers/utils/agent-run-context-cache.d.ts.map +1 -0
  141. package/dist/agent-workspace/lib/resolvers/utils/agent-run-context-cache.js +90 -0
  142. package/dist/agent-workspace/lib/resolvers/utils/agent-run-context-cache.js.map +1 -0
  143. package/dist/agent-workspace/lib/resolvers/utils/auth.d.ts +5 -0
  144. package/dist/agent-workspace/lib/resolvers/utils/auth.d.ts.map +1 -0
  145. package/dist/agent-workspace/lib/resolvers/utils/auth.js +19 -0
  146. package/dist/agent-workspace/lib/resolvers/utils/auth.js.map +1 -0
  147. package/dist/agent-workspace/lib/resolvers/utils/size-cap.d.ts +3 -0
  148. package/dist/agent-workspace/lib/resolvers/utils/size-cap.d.ts.map +1 -0
  149. package/dist/agent-workspace/lib/resolvers/utils/size-cap.js +23 -0
  150. package/dist/agent-workspace/lib/resolvers/utils/size-cap.js.map +1 -0
  151. package/dist/agent-workspace/lib/resolvers/utils/streaming.d.ts +3 -0
  152. package/dist/agent-workspace/lib/resolvers/utils/streaming.d.ts.map +1 -0
  153. package/dist/agent-workspace/lib/resolvers/utils/streaming.js +11 -0
  154. package/dist/agent-workspace/lib/resolvers/utils/streaming.js.map +1 -0
  155. package/dist/agent-workspace/lib/workspace-renderer.d.ts +13 -0
  156. package/dist/agent-workspace/lib/workspace-renderer.d.ts.map +1 -0
  157. package/dist/agent-workspace/lib/workspace-renderer.js +3 -0
  158. package/dist/agent-workspace/lib/workspace-renderer.js.map +1 -0
  159. package/dist/api/index.d.ts +11 -0
  160. package/dist/api/index.d.ts.map +1 -0
  161. package/dist/api/index.js +27 -0
  162. package/dist/api/index.js.map +1 -0
  163. package/dist/api/lib/api-manifest.d.ts +29 -0
  164. package/dist/api/lib/api-manifest.d.ts.map +1 -0
  165. package/dist/api/lib/api-manifest.js +28 -0
  166. package/dist/api/lib/api-manifest.js.map +1 -0
  167. package/dist/api/lib/biome-db.d.ts +2 -0
  168. package/dist/api/lib/biome-db.d.ts.map +1 -0
  169. package/dist/api/lib/biome-db.js +13 -0
  170. package/dist/api/lib/biome-db.js.map +1 -0
  171. package/dist/api/lib/code-tool-context.d.ts +16 -0
  172. package/dist/api/lib/code-tool-context.d.ts.map +1 -0
  173. package/dist/api/lib/code-tool-context.js +12 -0
  174. package/dist/api/lib/code-tool-context.js.map +1 -0
  175. package/dist/api/lib/code-tool-descriptor.d.ts +49 -0
  176. package/dist/api/lib/code-tool-descriptor.d.ts.map +1 -0
  177. package/dist/api/lib/code-tool-descriptor.js +3 -0
  178. package/dist/api/lib/code-tool-descriptor.js.map +1 -0
  179. package/dist/api/lib/code-tool.decorator.d.ts +17 -0
  180. package/dist/api/lib/code-tool.decorator.d.ts.map +1 -0
  181. package/dist/api/lib/code-tool.decorator.js +38 -0
  182. package/dist/api/lib/code-tool.decorator.js.map +1 -0
  183. package/dist/api/lib/mutation-context.d.ts +16 -0
  184. package/dist/api/lib/mutation-context.d.ts.map +1 -0
  185. package/dist/api/lib/mutation-context.js +17 -0
  186. package/dist/api/lib/mutation-context.js.map +1 -0
  187. package/dist/api/lib/pagination.d.ts +8 -0
  188. package/dist/api/lib/pagination.d.ts.map +1 -0
  189. package/dist/api/lib/pagination.js +7 -0
  190. package/dist/api/lib/pagination.js.map +1 -0
  191. package/dist/api/lib/provider-kind-mirror.d.ts +7 -0
  192. package/dist/api/lib/provider-kind-mirror.d.ts.map +1 -0
  193. package/dist/api/lib/provider-kind-mirror.js +11 -0
  194. package/dist/api/lib/provider-kind-mirror.js.map +1 -0
  195. package/dist/api/lib/request-context.d.ts +21 -0
  196. package/dist/api/lib/request-context.d.ts.map +1 -0
  197. package/dist/api/lib/request-context.js +51 -0
  198. package/dist/api/lib/request-context.js.map +1 -0
  199. package/dist/api/lib/route-registry-entry.d.ts +11 -0
  200. package/dist/api/lib/route-registry-entry.d.ts.map +1 -0
  201. package/dist/api/lib/route-registry-entry.js +3 -0
  202. package/dist/api/lib/route-registry-entry.js.map +1 -0
  203. package/dist/api/nest/controller-base.d.ts +6 -0
  204. package/dist/api/nest/controller-base.d.ts.map +1 -0
  205. package/dist/api/nest/controller-base.js +28 -0
  206. package/dist/api/nest/controller-base.js.map +1 -0
  207. package/dist/api/nest/events/events.controller.d.ts +10 -0
  208. package/dist/api/nest/events/events.controller.d.ts.map +1 -0
  209. package/dist/api/nest/events/events.controller.js +56 -0
  210. package/dist/api/nest/events/events.controller.js.map +1 -0
  211. package/dist/api/nest/health/health.controller.d.ts +19 -0
  212. package/dist/api/nest/health/health.controller.d.ts.map +1 -0
  213. package/dist/api/nest/health/health.controller.js +63 -0
  214. package/dist/api/nest/health/health.controller.js.map +1 -0
  215. package/dist/api/nest/health/health.module.d.ts +6 -0
  216. package/dist/api/nest/health/health.module.d.ts.map +1 -0
  217. package/dist/api/nest/health/health.module.js +29 -0
  218. package/dist/api/nest/health/health.module.js.map +1 -0
  219. package/dist/api/nest/index.d.ts +7 -0
  220. package/dist/api/nest/index.d.ts.map +1 -0
  221. package/dist/api/nest/index.js +23 -0
  222. package/dist/api/nest/index.js.map +1 -0
  223. package/dist/api/nest/module.d.ts +6 -0
  224. package/dist/api/nest/module.d.ts.map +1 -0
  225. package/dist/api/nest/module.js +34 -0
  226. package/dist/api/nest/module.js.map +1 -0
  227. package/dist/api/nest/request-context.d.ts +17 -0
  228. package/dist/api/nest/request-context.d.ts.map +1 -0
  229. package/dist/api/nest/request-context.js +75 -0
  230. package/dist/api/nest/request-context.js.map +1 -0
  231. package/dist/builder/index.d.ts +7 -0
  232. package/dist/builder/index.d.ts.map +1 -0
  233. package/dist/builder/index.js +23 -0
  234. package/dist/builder/index.js.map +1 -0
  235. package/dist/builder/lib/content-walker.d.ts +27 -0
  236. package/dist/builder/lib/content-walker.d.ts.map +1 -0
  237. package/dist/builder/lib/content-walker.js +274 -0
  238. package/dist/builder/lib/content-walker.js.map +1 -0
  239. package/dist/builder/lib/contribution-schemas.d.ts +348 -0
  240. package/dist/builder/lib/contribution-schemas.d.ts.map +1 -0
  241. package/dist/builder/lib/contribution-schemas.js +301 -0
  242. package/dist/builder/lib/contribution-schemas.js.map +1 -0
  243. package/dist/builder/lib/define-biome.d.ts +17 -0
  244. package/dist/builder/lib/define-biome.d.ts.map +1 -0
  245. package/dist/builder/lib/define-biome.js +11 -0
  246. package/dist/builder/lib/define-biome.js.map +1 -0
  247. package/dist/builder/lib/define-helpers.d.ts +6 -0
  248. package/dist/builder/lib/define-helpers.d.ts.map +1 -0
  249. package/dist/builder/lib/define-helpers.js +20 -0
  250. package/dist/builder/lib/define-helpers.js.map +1 -0
  251. package/dist/builder/lib/extends-precedence.d.ts +14 -0
  252. package/dist/builder/lib/extends-precedence.d.ts.map +1 -0
  253. package/dist/builder/lib/extends-precedence.js +113 -0
  254. package/dist/builder/lib/extends-precedence.js.map +1 -0
  255. package/dist/builder/lib/workflow-phase-config-loader.d.ts +18 -0
  256. package/dist/builder/lib/workflow-phase-config-loader.d.ts.map +1 -0
  257. package/dist/builder/lib/workflow-phase-config-loader.js +78 -0
  258. package/dist/builder/lib/workflow-phase-config-loader.js.map +1 -0
  259. package/dist/host/index.d.ts +11 -0
  260. package/dist/host/index.d.ts.map +1 -0
  261. package/dist/host/index.js +38 -0
  262. package/dist/host/index.js.map +1 -0
  263. package/dist/host/lib/agents-cross-validate.d.ts +7 -0
  264. package/dist/host/lib/agents-cross-validate.d.ts.map +1 -0
  265. package/dist/host/lib/agents-cross-validate.js +157 -0
  266. package/dist/host/lib/agents-cross-validate.js.map +1 -0
  267. package/dist/host/lib/biome-manifest.d.ts +808 -0
  268. package/dist/host/lib/biome-manifest.d.ts.map +1 -0
  269. package/dist/host/lib/biome-manifest.js +490 -0
  270. package/dist/host/lib/biome-manifest.js.map +1 -0
  271. package/dist/host/lib/bootstrap-contributions-service.d.ts +35 -0
  272. package/dist/host/lib/bootstrap-contributions-service.d.ts.map +1 -0
  273. package/dist/host/lib/bootstrap-contributions-service.js +79 -0
  274. package/dist/host/lib/bootstrap-contributions-service.js.map +1 -0
  275. package/dist/host/lib/default-state.d.ts +3 -0
  276. package/dist/host/lib/default-state.d.ts.map +1 -0
  277. package/dist/host/lib/default-state.js +20 -0
  278. package/dist/host/lib/default-state.js.map +1 -0
  279. package/dist/host/lib/integration-cross-validate.d.ts +12 -0
  280. package/dist/host/lib/integration-cross-validate.d.ts.map +1 -0
  281. package/dist/host/lib/integration-cross-validate.js +66 -0
  282. package/dist/host/lib/integration-cross-validate.js.map +1 -0
  283. package/dist/host/lib/system-overlay-contribution.d.ts +14 -0
  284. package/dist/host/lib/system-overlay-contribution.d.ts.map +1 -0
  285. package/dist/host/lib/system-overlay-contribution.js +3 -0
  286. package/dist/host/lib/system-overlay-contribution.js.map +1 -0
  287. package/dist/host/lib/topology.d.ts +7 -0
  288. package/dist/host/lib/topology.d.ts.map +1 -0
  289. package/dist/host/lib/topology.js +105 -0
  290. package/dist/host/lib/topology.js.map +1 -0
  291. package/dist/index.d.ts +9 -0
  292. package/dist/index.d.ts.map +1 -0
  293. package/dist/index.js +37 -0
  294. package/dist/index.js.map +1 -0
  295. package/dist/orchestrator-adapter/index.d.ts +3 -0
  296. package/dist/orchestrator-adapter/index.d.ts.map +1 -0
  297. package/dist/orchestrator-adapter/index.js +19 -0
  298. package/dist/orchestrator-adapter/index.js.map +1 -0
  299. package/dist/orchestrator-adapter/lib/orchestrator-adapter-registry.d.ts +6 -0
  300. package/dist/orchestrator-adapter/lib/orchestrator-adapter-registry.d.ts.map +1 -0
  301. package/dist/orchestrator-adapter/lib/orchestrator-adapter-registry.js +11 -0
  302. package/dist/orchestrator-adapter/lib/orchestrator-adapter-registry.js.map +1 -0
  303. package/dist/orchestrator-adapter/lib/orchestrator-adapter.d.ts +11 -0
  304. package/dist/orchestrator-adapter/lib/orchestrator-adapter.d.ts.map +1 -0
  305. package/dist/orchestrator-adapter/lib/orchestrator-adapter.js +3 -0
  306. package/dist/orchestrator-adapter/lib/orchestrator-adapter.js.map +1 -0
  307. package/package.json +110 -0
  308. package/src/adapter/index.ts +6 -0
  309. package/src/adapter/lib/action.ts +60 -0
  310. package/src/adapter/lib/provider-module.ts +140 -0
  311. package/src/adapter/lib/resource.ts +52 -0
  312. package/src/adapter/lib/result.ts +53 -0
  313. package/src/adapter/lib/sidecar-contract.ts +169 -0
  314. package/src/adapter/lib/webhook.ts +142 -0
  315. package/src/agent-workspace/index.ts +7 -0
  316. package/src/agent-workspace/lib/errors/error-codes.ts +44 -0
  317. package/src/agent-workspace/lib/errors/index.ts +3 -0
  318. package/src/agent-workspace/lib/errors/mount-plan-error.ts +29 -0
  319. package/src/agent-workspace/lib/errors/mount-resolver-error.ts +56 -0
  320. package/src/agent-workspace/lib/mount-resolver.ts +35 -0
  321. package/src/agent-workspace/lib/mount-source.ts +11 -0
  322. package/src/agent-workspace/lib/refid-resolver.ts +135 -0
  323. package/src/agent-workspace/lib/registries.ts +150 -0
  324. package/src/agent-workspace/lib/resolvers/agent-definition.resolver.ts +45 -0
  325. package/src/agent-workspace/lib/resolvers/artifact-store-collection.resolver.ts +43 -0
  326. package/src/agent-workspace/lib/resolvers/artifact-version.resolver.ts +52 -0
  327. package/src/agent-workspace/lib/resolvers/clients.ts +297 -0
  328. package/src/agent-workspace/lib/resolvers/deliverable-specs.resolver.ts +33 -0
  329. package/src/agent-workspace/lib/resolvers/deliverables.resolver.ts +41 -0
  330. package/src/agent-workspace/lib/resolvers/index.ts +19 -0
  331. package/src/agent-workspace/lib/resolvers/instruction-section.resolver.ts +36 -0
  332. package/src/agent-workspace/lib/resolvers/kb-pages.resolver.ts +62 -0
  333. package/src/agent-workspace/lib/resolvers/kb-space.resolver.ts +34 -0
  334. package/src/agent-workspace/lib/resolvers/rendered-agents-md.resolver.ts +40 -0
  335. package/src/agent-workspace/lib/resolvers/rendered-context-json.resolver.ts +41 -0
  336. package/src/agent-workspace/lib/resolvers/rendered-system-overlay.resolver.ts +39 -0
  337. package/src/agent-workspace/lib/resolvers/scm-repo.resolver.ts +43 -0
  338. package/src/agent-workspace/lib/resolvers/session-attachment.resolver.ts +37 -0
  339. package/src/agent-workspace/lib/resolvers/skill-bundle.resolver.ts +42 -0
  340. package/src/agent-workspace/lib/resolvers/static-literal.resolver.ts +69 -0
  341. package/src/agent-workspace/lib/resolvers/types.ts +94 -0
  342. package/src/agent-workspace/lib/resolvers/utils/agent-run-context-cache.ts +206 -0
  343. package/src/agent-workspace/lib/resolvers/utils/auth.ts +39 -0
  344. package/src/agent-workspace/lib/resolvers/utils/size-cap.ts +38 -0
  345. package/src/agent-workspace/lib/resolvers/utils/streaming.ts +22 -0
  346. package/src/agent-workspace/lib/workspace-renderer.ts +25 -0
  347. package/src/api/index.ts +10 -0
  348. package/src/api/lib/api-manifest.ts +54 -0
  349. package/src/api/lib/biome-db.ts +28 -0
  350. package/src/api/lib/code-tool-context.ts +45 -0
  351. package/src/api/lib/code-tool-descriptor.ts +102 -0
  352. package/src/api/lib/code-tool.decorator.ts +111 -0
  353. package/src/api/lib/mutation-context.ts +49 -0
  354. package/src/api/lib/pagination.ts +17 -0
  355. package/src/api/lib/provider-kind-mirror.ts +16 -0
  356. package/src/api/lib/request-context.ts +90 -0
  357. package/src/api/lib/route-registry-entry.ts +35 -0
  358. package/src/api/nest/controller-base.ts +59 -0
  359. package/src/api/nest/events/events.controller.ts +48 -0
  360. package/src/api/nest/health/health.controller.ts +36 -0
  361. package/src/api/nest/health/health.module.ts +29 -0
  362. package/src/api/nest/index.ts +6 -0
  363. package/src/api/nest/module.ts +51 -0
  364. package/src/api/nest/request-context.ts +166 -0
  365. package/src/builder/index.ts +26 -0
  366. package/src/builder/lib/content-walker.ts +383 -0
  367. package/src/builder/lib/contribution-schemas.ts +572 -0
  368. package/src/builder/lib/define-biome.ts +84 -0
  369. package/src/builder/lib/define-helpers.ts +42 -0
  370. package/src/builder/lib/extends-precedence.ts +195 -0
  371. package/src/builder/lib/workflow-phase-config-loader.ts +163 -0
  372. package/src/host/index.ts +39 -0
  373. package/src/host/lib/agents-cross-validate.ts +283 -0
  374. package/src/host/lib/biome-manifest.ts +1060 -0
  375. package/src/host/lib/bootstrap-contributions-service.ts +233 -0
  376. package/src/host/lib/default-state.ts +40 -0
  377. package/src/host/lib/integration-cross-validate.ts +140 -0
  378. package/src/host/lib/system-overlay-contribution.ts +53 -0
  379. package/src/host/lib/topology.ts +174 -0
  380. package/src/index.ts +58 -0
  381. package/src/orchestrator-adapter/index.ts +2 -0
  382. package/src/orchestrator-adapter/lib/orchestrator-adapter-registry.ts +8 -0
  383. package/src/orchestrator-adapter/lib/orchestrator-adapter.ts +20 -0
@@ -0,0 +1,808 @@
1
+ import { type BiomeEventSubscription } from '@xemahq/kernel-contracts/biome';
2
+ import { MigrationRunnerKind, OrgDatabasePurpose } from '@xemahq/kernel-contracts/org-database';
3
+ import { RunnerTrustTier } from '@xemahq/kernel-contracts/runner';
4
+ import { z } from 'zod';
5
+ export declare const BiomeScopeSchema: z.ZodEnum<{
6
+ system: "system";
7
+ kernel: "kernel";
8
+ base: "base";
9
+ platform: "platform";
10
+ "third-party": "third-party";
11
+ }>;
12
+ export type BiomeScope = z.infer<typeof BiomeScopeSchema>;
13
+ export declare const BiomeTargetSchema: z.ZodEnum<{
14
+ server: "server";
15
+ web: "web";
16
+ }>;
17
+ export type BiomeTarget = z.infer<typeof BiomeTargetSchema>;
18
+ export declare function contentKindToDir(kind: string): string;
19
+ export declare function moduleKindToDir(kind: string): string;
20
+ export declare const BiomeDatabaseDeclarationSchema: z.ZodObject<{
21
+ purpose: z.ZodLiteral<OrgDatabasePurpose.Biome>;
22
+ runnerKind: z.ZodLiteral<MigrationRunnerKind.Prisma>;
23
+ }, z.core.$strict>;
24
+ export type BiomeDatabaseDeclaration = z.infer<typeof BiomeDatabaseDeclarationSchema>;
25
+ export declare const BiomeApiDeclarationSchema: z.ZodObject<{
26
+ name: z.ZodString;
27
+ basePath: z.ZodOptional<z.ZodString>;
28
+ image: z.ZodObject<{
29
+ package: z.ZodString;
30
+ port: z.ZodNumber;
31
+ }, z.core.$strict>;
32
+ openapiSpec: z.ZodOptional<z.ZodString>;
33
+ scopes: z.ZodArray<z.ZodEnum<{
34
+ public: "public";
35
+ org: "org";
36
+ project: "project";
37
+ installation: "installation";
38
+ }>>;
39
+ }, z.core.$strict>;
40
+ export type BiomeApiDeclaration = z.infer<typeof BiomeApiDeclarationSchema>;
41
+ export declare const BiomeContributionEntrySchema: z.ZodObject<{
42
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
43
+ id: z.ZodString;
44
+ manifest: z.ZodUnknown;
45
+ }, z.core.$strict>;
46
+ export type BiomeContributionEntry = z.infer<typeof BiomeContributionEntrySchema>;
47
+ export declare const BiomeContributionsSchema: z.ZodObject<{
48
+ directory: z.ZodOptional<z.ZodString>;
49
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
51
+ id: z.ZodString;
52
+ manifest: z.ZodUnknown;
53
+ }, z.core.$strict>>>;
54
+ }, z.core.$strict>;
55
+ export type BiomeContributions = z.infer<typeof BiomeContributionsSchema>;
56
+ export declare const BiomeShipsSchema: z.ZodObject<{
57
+ content: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
+ apis: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ name: z.ZodString;
61
+ basePath: z.ZodOptional<z.ZodString>;
62
+ image: z.ZodObject<{
63
+ package: z.ZodString;
64
+ port: z.ZodNumber;
65
+ }, z.core.$strict>;
66
+ openapiSpec: z.ZodOptional<z.ZodString>;
67
+ scopes: z.ZodArray<z.ZodEnum<{
68
+ public: "public";
69
+ org: "org";
70
+ project: "project";
71
+ installation: "installation";
72
+ }>>;
73
+ }, z.core.$strict>>>;
74
+ }, z.core.$strict>;
75
+ export type BiomeShips = z.infer<typeof BiomeShipsSchema>;
76
+ export declare const BiomeTrustTierSchema: z.ZodEnum<{
77
+ "third-party": "third-party";
78
+ "first-party": "first-party";
79
+ }>;
80
+ export type BiomeTrustTier = z.infer<typeof BiomeTrustTierSchema>;
81
+ export declare const BiomeAgentModeSchema: z.ZodEnum<{
82
+ primary: "primary";
83
+ subagent: "subagent";
84
+ }>;
85
+ export type BiomeAgentMode = z.infer<typeof BiomeAgentModeSchema>;
86
+ export declare const BiomeAgentDeclarationSchema: z.ZodObject<{
87
+ slug: z.ZodString;
88
+ mode: z.ZodEnum<{
89
+ primary: "primary";
90
+ subagent: "subagent";
91
+ }>;
92
+ }, z.core.$strict>;
93
+ export type BiomeAgentDeclaration = z.infer<typeof BiomeAgentDeclarationSchema>;
94
+ export declare const IntegrationRequirementSchema: z.ZodObject<{
95
+ adapterKind: z.ZodString;
96
+ optional: z.ZodOptional<z.ZodBoolean>;
97
+ purpose: z.ZodString;
98
+ capabilities: z.ZodArray<z.ZodString>;
99
+ }, z.core.$strict>;
100
+ export type IntegrationRequirement = z.infer<typeof IntegrationRequirementSchema>;
101
+ export declare const WebhookFilterSchema: z.ZodObject<{
102
+ workflowId: z.ZodString;
103
+ event: z.ZodString;
104
+ entityKind: z.ZodOptional<z.ZodString>;
105
+ predicate: z.ZodType<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown>>;
106
+ }, z.core.$strict>;
107
+ export type WebhookFilter = z.infer<typeof WebhookFilterSchema>;
108
+ export declare const ServerBiomeCapabilitiesSchema: z.ZodObject<{
109
+ mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ network: z.ZodOptional<z.ZodObject<{
111
+ allowList: z.ZodArray<z.ZodString>;
112
+ }, z.core.$strict>>;
113
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ }, z.core.$strict>;
115
+ export type ServerBiomeCapabilities = z.infer<typeof ServerBiomeCapabilitiesSchema>;
116
+ export declare const WebBiomeCapabilitiesSchema: z.ZodObject<{
117
+ slots: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ apiClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ }, z.core.$strict>;
120
+ export type WebBiomeCapabilities = z.infer<typeof WebBiomeCapabilitiesSchema>;
121
+ export declare const ProvisioningScaffoldMatchKindSchema: z.ZodEnum<{
122
+ "each-app-target": "each-app-target";
123
+ }>;
124
+ export type ProvisioningScaffoldMatchKind = z.infer<typeof ProvisioningScaffoldMatchKindSchema>;
125
+ export declare const ProvisioningScaffoldDeclarationSchema: z.ZodObject<{
126
+ id: z.ZodString;
127
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningStepKind>;
128
+ triggers: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningTrigger>>;
129
+ guard: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningGuard>;
130
+ selector: z.ZodObject<{
131
+ configPointer: z.ZodString;
132
+ matchKind: z.ZodEnum<{
133
+ "each-app-target": "each-app-target";
134
+ }>;
135
+ }, z.core.$strict>;
136
+ }, z.core.$strict>;
137
+ export type ProvisioningScaffoldDeclaration = z.infer<typeof ProvisioningScaffoldDeclarationSchema>;
138
+ export type BiomeManifestSubscribe = BiomeEventSubscription;
139
+ export type BiomeManifestRequires = Readonly<Record<string, string>>;
140
+ declare const RuntimeRequirementsSchema: z.ZodObject<{
141
+ labels: z.ZodOptional<z.ZodObject<{
142
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ preferred: z.ZodOptional<z.ZodArray<z.ZodString>>;
144
+ }, z.core.$strict>>;
145
+ resources: z.ZodOptional<z.ZodObject<{
146
+ cpu: z.ZodOptional<z.ZodString>;
147
+ memory: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>>;
149
+ isolation: z.ZodOptional<z.ZodObject<{
150
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").RuntimeIsolationLevel>>;
151
+ }, z.core.$strict>>;
152
+ locality: z.ZodOptional<z.ZodObject<{
153
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").DataLocality>>;
154
+ }, z.core.$strict>>;
155
+ trustTier: z.ZodOptional<z.ZodObject<{
156
+ minimum: z.ZodEnum<typeof RunnerTrustTier>;
157
+ }, z.core.$strict>>;
158
+ }, z.core.$strict>;
159
+ export type RuntimeRequirements = z.infer<typeof RuntimeRequirementsSchema>;
160
+ declare const ServerBiomeXemaSchema: z.ZodObject<{
161
+ subscribes: z.ZodOptional<z.ZodArray<z.ZodType<BiomeEventSubscription, unknown, z.core.$ZodTypeInternals<BiomeEventSubscription, unknown>>>>;
162
+ requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
163
+ contributes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>>>;
164
+ contributions: z.ZodOptional<z.ZodObject<{
165
+ directory: z.ZodOptional<z.ZodString>;
166
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
167
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
168
+ id: z.ZodString;
169
+ manifest: z.ZodUnknown;
170
+ }, z.core.$strict>>>;
171
+ }, z.core.$strict>>;
172
+ requiresCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
173
+ exposesCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
174
+ permissions: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown>>>;
175
+ lifecycle: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown>>>;
176
+ engines: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown>>>;
177
+ id: z.ZodString;
178
+ displayName: z.ZodString;
179
+ description: z.ZodOptional<z.ZodString>;
180
+ scope: z.ZodEnum<{
181
+ system: "system";
182
+ kernel: "kernel";
183
+ base: "base";
184
+ platform: "platform";
185
+ "third-party": "third-party";
186
+ }>;
187
+ target: z.ZodLiteral<"server">;
188
+ runtimeRequirements: z.ZodOptional<z.ZodObject<{
189
+ labels: z.ZodOptional<z.ZodObject<{
190
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
+ preferred: z.ZodOptional<z.ZodArray<z.ZodString>>;
192
+ }, z.core.$strict>>;
193
+ resources: z.ZodOptional<z.ZodObject<{
194
+ cpu: z.ZodOptional<z.ZodString>;
195
+ memory: z.ZodOptional<z.ZodString>;
196
+ }, z.core.$strict>>;
197
+ isolation: z.ZodOptional<z.ZodObject<{
198
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").RuntimeIsolationLevel>>;
199
+ }, z.core.$strict>>;
200
+ locality: z.ZodOptional<z.ZodObject<{
201
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").DataLocality>>;
202
+ }, z.core.$strict>>;
203
+ trustTier: z.ZodOptional<z.ZodObject<{
204
+ minimum: z.ZodEnum<typeof RunnerTrustTier>;
205
+ }, z.core.$strict>>;
206
+ }, z.core.$strict>>;
207
+ mandatory: z.ZodOptional<z.ZodBoolean>;
208
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
209
+ extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
210
+ ships: z.ZodOptional<z.ZodObject<{
211
+ content: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
+ apis: z.ZodOptional<z.ZodArray<z.ZodObject<{
214
+ name: z.ZodString;
215
+ basePath: z.ZodOptional<z.ZodString>;
216
+ image: z.ZodObject<{
217
+ package: z.ZodString;
218
+ port: z.ZodNumber;
219
+ }, z.core.$strict>;
220
+ openapiSpec: z.ZodOptional<z.ZodString>;
221
+ scopes: z.ZodArray<z.ZodEnum<{
222
+ public: "public";
223
+ org: "org";
224
+ project: "project";
225
+ installation: "installation";
226
+ }>>;
227
+ }, z.core.$strict>>>;
228
+ }, z.core.$strict>>;
229
+ capabilities: z.ZodOptional<z.ZodObject<{
230
+ mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
+ network: z.ZodOptional<z.ZodObject<{
232
+ allowList: z.ZodArray<z.ZodString>;
233
+ }, z.core.$strict>>;
234
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
235
+ }, z.core.$strict>>;
236
+ trustTier: z.ZodOptional<z.ZodEnum<{
237
+ "third-party": "third-party";
238
+ "first-party": "first-party";
239
+ }>>;
240
+ integrationRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
241
+ adapterKind: z.ZodString;
242
+ optional: z.ZodOptional<z.ZodBoolean>;
243
+ purpose: z.ZodString;
244
+ capabilities: z.ZodArray<z.ZodString>;
245
+ }, z.core.$strict>>>;
246
+ webhookFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
+ workflowId: z.ZodString;
248
+ event: z.ZodString;
249
+ entityKind: z.ZodOptional<z.ZodString>;
250
+ predicate: z.ZodType<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown>>;
251
+ }, z.core.$strict>>>;
252
+ mcpWorkflowTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ key: z.ZodString;
254
+ workflowSlug: z.ZodString;
255
+ displayName: z.ZodString;
256
+ description: z.ZodString;
257
+ outputProjection: z.ZodObject<{
258
+ kind: z.ZodLiteral<"deliverable">;
259
+ slug: z.ZodString;
260
+ }, z.core.$strict>;
261
+ mount: z.ZodOptional<z.ZodObject<{
262
+ slot: z.ZodEnum<{
263
+ deliverables: "deliverables";
264
+ inputs: "inputs";
265
+ references: "references";
266
+ }>;
267
+ as: z.ZodString;
268
+ }, z.core.$strict>>;
269
+ }, z.core.$strict>>>;
270
+ mcpTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
+ key: z.ZodString;
272
+ handler: z.ZodObject<{
273
+ kind: z.ZodLiteral<"biome_api">;
274
+ method: z.ZodDefault<z.ZodEnum<{
275
+ POST: "POST";
276
+ }>>;
277
+ }, z.core.$strict>;
278
+ }, z.core.$strict>>>;
279
+ defaultToolSelection: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
280
+ kind: z.ZodLiteral<"provider">;
281
+ providerKind: z.ZodEnum<{
282
+ mcp_server: "mcp_server";
283
+ catalog: "catalog";
284
+ biome_workflow_tools: "biome_workflow_tools";
285
+ biome_code_tools: "biome_code_tools";
286
+ }>;
287
+ resourceId: z.ZodString;
288
+ }, z.core.$strict>, z.ZodObject<{
289
+ kind: z.ZodLiteral<"tool">;
290
+ providerKind: z.ZodEnum<{
291
+ mcp_server: "mcp_server";
292
+ catalog: "catalog";
293
+ biome_workflow_tools: "biome_workflow_tools";
294
+ biome_code_tools: "biome_code_tools";
295
+ }>;
296
+ resourceId: z.ZodString;
297
+ toolName: z.ZodString;
298
+ }, z.core.$strict>], "kind">>>;
299
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
300
+ slug: z.ZodString;
301
+ mode: z.ZodEnum<{
302
+ primary: "primary";
303
+ subagent: "subagent";
304
+ }>;
305
+ }, z.core.$strict>>>;
306
+ provisioning: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
+ id: z.ZodString;
308
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningStepKind>;
309
+ triggers: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningTrigger>>;
310
+ guard: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningGuard>;
311
+ selector: z.ZodObject<{
312
+ configPointer: z.ZodString;
313
+ matchKind: z.ZodEnum<{
314
+ "each-app-target": "each-app-target";
315
+ }>;
316
+ }, z.core.$strict>;
317
+ }, z.core.$strict>>>;
318
+ database: z.ZodOptional<z.ZodObject<{
319
+ purpose: z.ZodLiteral<OrgDatabasePurpose.Biome>;
320
+ runnerKind: z.ZodLiteral<MigrationRunnerKind.Prisma>;
321
+ }, z.core.$strict>>;
322
+ signature: z.ZodOptional<z.ZodObject<{
323
+ algorithm: z.ZodString;
324
+ value: z.ZodString;
325
+ keyId: z.ZodString;
326
+ }, z.core.$strict>>;
327
+ }, z.core.$strict>;
328
+ declare const WebBiomeXemaSchema: z.ZodObject<{
329
+ subscribes: z.ZodOptional<z.ZodArray<z.ZodType<BiomeEventSubscription, unknown, z.core.$ZodTypeInternals<BiomeEventSubscription, unknown>>>>;
330
+ requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
331
+ contributes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>>>;
332
+ contributions: z.ZodOptional<z.ZodObject<{
333
+ directory: z.ZodOptional<z.ZodString>;
334
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
336
+ id: z.ZodString;
337
+ manifest: z.ZodUnknown;
338
+ }, z.core.$strict>>>;
339
+ }, z.core.$strict>>;
340
+ requiresCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
341
+ exposesCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
342
+ permissions: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown>>>;
343
+ lifecycle: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown>>>;
344
+ engines: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown>>>;
345
+ id: z.ZodString;
346
+ displayName: z.ZodString;
347
+ description: z.ZodOptional<z.ZodString>;
348
+ scope: z.ZodEnum<{
349
+ system: "system";
350
+ kernel: "kernel";
351
+ base: "base";
352
+ platform: "platform";
353
+ "third-party": "third-party";
354
+ }>;
355
+ target: z.ZodLiteral<"web">;
356
+ mandatory: z.ZodOptional<z.ZodBoolean>;
357
+ requiresServerBiomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
358
+ optionalServerBiomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
359
+ capabilities: z.ZodOptional<z.ZodObject<{
360
+ slots: z.ZodOptional<z.ZodArray<z.ZodString>>;
361
+ apiClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
362
+ }, z.core.$strict>>;
363
+ signature: z.ZodOptional<z.ZodObject<{
364
+ algorithm: z.ZodString;
365
+ value: z.ZodString;
366
+ keyId: z.ZodString;
367
+ }, z.core.$strict>>;
368
+ }, z.core.$strict>;
369
+ export declare const BiomeXemaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
370
+ subscribes: z.ZodOptional<z.ZodArray<z.ZodType<BiomeEventSubscription, unknown, z.core.$ZodTypeInternals<BiomeEventSubscription, unknown>>>>;
371
+ requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
372
+ contributes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>>>;
373
+ contributions: z.ZodOptional<z.ZodObject<{
374
+ directory: z.ZodOptional<z.ZodString>;
375
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
376
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
377
+ id: z.ZodString;
378
+ manifest: z.ZodUnknown;
379
+ }, z.core.$strict>>>;
380
+ }, z.core.$strict>>;
381
+ requiresCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
382
+ exposesCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
383
+ permissions: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown>>>;
384
+ lifecycle: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown>>>;
385
+ engines: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown>>>;
386
+ id: z.ZodString;
387
+ displayName: z.ZodString;
388
+ description: z.ZodOptional<z.ZodString>;
389
+ scope: z.ZodEnum<{
390
+ system: "system";
391
+ kernel: "kernel";
392
+ base: "base";
393
+ platform: "platform";
394
+ "third-party": "third-party";
395
+ }>;
396
+ target: z.ZodLiteral<"server">;
397
+ runtimeRequirements: z.ZodOptional<z.ZodObject<{
398
+ labels: z.ZodOptional<z.ZodObject<{
399
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
400
+ preferred: z.ZodOptional<z.ZodArray<z.ZodString>>;
401
+ }, z.core.$strict>>;
402
+ resources: z.ZodOptional<z.ZodObject<{
403
+ cpu: z.ZodOptional<z.ZodString>;
404
+ memory: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strict>>;
406
+ isolation: z.ZodOptional<z.ZodObject<{
407
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").RuntimeIsolationLevel>>;
408
+ }, z.core.$strict>>;
409
+ locality: z.ZodOptional<z.ZodObject<{
410
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").DataLocality>>;
411
+ }, z.core.$strict>>;
412
+ trustTier: z.ZodOptional<z.ZodObject<{
413
+ minimum: z.ZodEnum<typeof RunnerTrustTier>;
414
+ }, z.core.$strict>>;
415
+ }, z.core.$strict>>;
416
+ mandatory: z.ZodOptional<z.ZodBoolean>;
417
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
+ extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
419
+ ships: z.ZodOptional<z.ZodObject<{
420
+ content: z.ZodOptional<z.ZodArray<z.ZodString>>;
421
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
422
+ apis: z.ZodOptional<z.ZodArray<z.ZodObject<{
423
+ name: z.ZodString;
424
+ basePath: z.ZodOptional<z.ZodString>;
425
+ image: z.ZodObject<{
426
+ package: z.ZodString;
427
+ port: z.ZodNumber;
428
+ }, z.core.$strict>;
429
+ openapiSpec: z.ZodOptional<z.ZodString>;
430
+ scopes: z.ZodArray<z.ZodEnum<{
431
+ public: "public";
432
+ org: "org";
433
+ project: "project";
434
+ installation: "installation";
435
+ }>>;
436
+ }, z.core.$strict>>>;
437
+ }, z.core.$strict>>;
438
+ capabilities: z.ZodOptional<z.ZodObject<{
439
+ mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
440
+ network: z.ZodOptional<z.ZodObject<{
441
+ allowList: z.ZodArray<z.ZodString>;
442
+ }, z.core.$strict>>;
443
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
444
+ }, z.core.$strict>>;
445
+ trustTier: z.ZodOptional<z.ZodEnum<{
446
+ "third-party": "third-party";
447
+ "first-party": "first-party";
448
+ }>>;
449
+ integrationRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
450
+ adapterKind: z.ZodString;
451
+ optional: z.ZodOptional<z.ZodBoolean>;
452
+ purpose: z.ZodString;
453
+ capabilities: z.ZodArray<z.ZodString>;
454
+ }, z.core.$strict>>>;
455
+ webhookFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
456
+ workflowId: z.ZodString;
457
+ event: z.ZodString;
458
+ entityKind: z.ZodOptional<z.ZodString>;
459
+ predicate: z.ZodType<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown>>;
460
+ }, z.core.$strict>>>;
461
+ mcpWorkflowTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
462
+ key: z.ZodString;
463
+ workflowSlug: z.ZodString;
464
+ displayName: z.ZodString;
465
+ description: z.ZodString;
466
+ outputProjection: z.ZodObject<{
467
+ kind: z.ZodLiteral<"deliverable">;
468
+ slug: z.ZodString;
469
+ }, z.core.$strict>;
470
+ mount: z.ZodOptional<z.ZodObject<{
471
+ slot: z.ZodEnum<{
472
+ deliverables: "deliverables";
473
+ inputs: "inputs";
474
+ references: "references";
475
+ }>;
476
+ as: z.ZodString;
477
+ }, z.core.$strict>>;
478
+ }, z.core.$strict>>>;
479
+ mcpTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
480
+ key: z.ZodString;
481
+ handler: z.ZodObject<{
482
+ kind: z.ZodLiteral<"biome_api">;
483
+ method: z.ZodDefault<z.ZodEnum<{
484
+ POST: "POST";
485
+ }>>;
486
+ }, z.core.$strict>;
487
+ }, z.core.$strict>>>;
488
+ defaultToolSelection: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
489
+ kind: z.ZodLiteral<"provider">;
490
+ providerKind: z.ZodEnum<{
491
+ mcp_server: "mcp_server";
492
+ catalog: "catalog";
493
+ biome_workflow_tools: "biome_workflow_tools";
494
+ biome_code_tools: "biome_code_tools";
495
+ }>;
496
+ resourceId: z.ZodString;
497
+ }, z.core.$strict>, z.ZodObject<{
498
+ kind: z.ZodLiteral<"tool">;
499
+ providerKind: z.ZodEnum<{
500
+ mcp_server: "mcp_server";
501
+ catalog: "catalog";
502
+ biome_workflow_tools: "biome_workflow_tools";
503
+ biome_code_tools: "biome_code_tools";
504
+ }>;
505
+ resourceId: z.ZodString;
506
+ toolName: z.ZodString;
507
+ }, z.core.$strict>], "kind">>>;
508
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
+ slug: z.ZodString;
510
+ mode: z.ZodEnum<{
511
+ primary: "primary";
512
+ subagent: "subagent";
513
+ }>;
514
+ }, z.core.$strict>>>;
515
+ provisioning: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
+ id: z.ZodString;
517
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningStepKind>;
518
+ triggers: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningTrigger>>;
519
+ guard: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningGuard>;
520
+ selector: z.ZodObject<{
521
+ configPointer: z.ZodString;
522
+ matchKind: z.ZodEnum<{
523
+ "each-app-target": "each-app-target";
524
+ }>;
525
+ }, z.core.$strict>;
526
+ }, z.core.$strict>>>;
527
+ database: z.ZodOptional<z.ZodObject<{
528
+ purpose: z.ZodLiteral<OrgDatabasePurpose.Biome>;
529
+ runnerKind: z.ZodLiteral<MigrationRunnerKind.Prisma>;
530
+ }, z.core.$strict>>;
531
+ signature: z.ZodOptional<z.ZodObject<{
532
+ algorithm: z.ZodString;
533
+ value: z.ZodString;
534
+ keyId: z.ZodString;
535
+ }, z.core.$strict>>;
536
+ }, z.core.$strict>, z.ZodObject<{
537
+ subscribes: z.ZodOptional<z.ZodArray<z.ZodType<BiomeEventSubscription, unknown, z.core.$ZodTypeInternals<BiomeEventSubscription, unknown>>>>;
538
+ requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
539
+ contributes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>>>;
540
+ contributions: z.ZodOptional<z.ZodObject<{
541
+ directory: z.ZodOptional<z.ZodString>;
542
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
543
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
544
+ id: z.ZodString;
545
+ manifest: z.ZodUnknown;
546
+ }, z.core.$strict>>>;
547
+ }, z.core.$strict>>;
548
+ requiresCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
549
+ exposesCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
550
+ permissions: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown>>>;
551
+ lifecycle: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown>>>;
552
+ engines: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown>>>;
553
+ id: z.ZodString;
554
+ displayName: z.ZodString;
555
+ description: z.ZodOptional<z.ZodString>;
556
+ scope: z.ZodEnum<{
557
+ system: "system";
558
+ kernel: "kernel";
559
+ base: "base";
560
+ platform: "platform";
561
+ "third-party": "third-party";
562
+ }>;
563
+ target: z.ZodLiteral<"web">;
564
+ mandatory: z.ZodOptional<z.ZodBoolean>;
565
+ requiresServerBiomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
566
+ optionalServerBiomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
567
+ capabilities: z.ZodOptional<z.ZodObject<{
568
+ slots: z.ZodOptional<z.ZodArray<z.ZodString>>;
569
+ apiClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
570
+ }, z.core.$strict>>;
571
+ signature: z.ZodOptional<z.ZodObject<{
572
+ algorithm: z.ZodString;
573
+ value: z.ZodString;
574
+ keyId: z.ZodString;
575
+ }, z.core.$strict>>;
576
+ }, z.core.$strict>], "target">;
577
+ export type BiomeXema = z.infer<typeof BiomeXemaSchema>;
578
+ export type ServerBiomeXema = z.infer<typeof ServerBiomeXemaSchema>;
579
+ export type WebBiomeXema = z.infer<typeof WebBiomeXemaSchema>;
580
+ export declare const BiomeManifestSchema: z.ZodObject<{
581
+ name: z.ZodString;
582
+ version: z.ZodString;
583
+ xema: z.ZodDiscriminatedUnion<[z.ZodObject<{
584
+ subscribes: z.ZodOptional<z.ZodArray<z.ZodType<BiomeEventSubscription, unknown, z.core.$ZodTypeInternals<BiomeEventSubscription, unknown>>>>;
585
+ requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
586
+ contributes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>>>;
587
+ contributions: z.ZodOptional<z.ZodObject<{
588
+ directory: z.ZodOptional<z.ZodString>;
589
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
591
+ id: z.ZodString;
592
+ manifest: z.ZodUnknown;
593
+ }, z.core.$strict>>>;
594
+ }, z.core.$strict>>;
595
+ requiresCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
596
+ exposesCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
597
+ permissions: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown>>>;
598
+ lifecycle: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown>>>;
599
+ engines: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown>>>;
600
+ id: z.ZodString;
601
+ displayName: z.ZodString;
602
+ description: z.ZodOptional<z.ZodString>;
603
+ scope: z.ZodEnum<{
604
+ system: "system";
605
+ kernel: "kernel";
606
+ base: "base";
607
+ platform: "platform";
608
+ "third-party": "third-party";
609
+ }>;
610
+ target: z.ZodLiteral<"server">;
611
+ runtimeRequirements: z.ZodOptional<z.ZodObject<{
612
+ labels: z.ZodOptional<z.ZodObject<{
613
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
614
+ preferred: z.ZodOptional<z.ZodArray<z.ZodString>>;
615
+ }, z.core.$strict>>;
616
+ resources: z.ZodOptional<z.ZodObject<{
617
+ cpu: z.ZodOptional<z.ZodString>;
618
+ memory: z.ZodOptional<z.ZodString>;
619
+ }, z.core.$strict>>;
620
+ isolation: z.ZodOptional<z.ZodObject<{
621
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").RuntimeIsolationLevel>>;
622
+ }, z.core.$strict>>;
623
+ locality: z.ZodOptional<z.ZodObject<{
624
+ allowed: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/runner").DataLocality>>;
625
+ }, z.core.$strict>>;
626
+ trustTier: z.ZodOptional<z.ZodObject<{
627
+ minimum: z.ZodEnum<typeof RunnerTrustTier>;
628
+ }, z.core.$strict>>;
629
+ }, z.core.$strict>>;
630
+ mandatory: z.ZodOptional<z.ZodBoolean>;
631
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
632
+ extends: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
633
+ ships: z.ZodOptional<z.ZodObject<{
634
+ content: z.ZodOptional<z.ZodArray<z.ZodString>>;
635
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
636
+ apis: z.ZodOptional<z.ZodArray<z.ZodObject<{
637
+ name: z.ZodString;
638
+ basePath: z.ZodOptional<z.ZodString>;
639
+ image: z.ZodObject<{
640
+ package: z.ZodString;
641
+ port: z.ZodNumber;
642
+ }, z.core.$strict>;
643
+ openapiSpec: z.ZodOptional<z.ZodString>;
644
+ scopes: z.ZodArray<z.ZodEnum<{
645
+ public: "public";
646
+ org: "org";
647
+ project: "project";
648
+ installation: "installation";
649
+ }>>;
650
+ }, z.core.$strict>>>;
651
+ }, z.core.$strict>>;
652
+ capabilities: z.ZodOptional<z.ZodObject<{
653
+ mcp: z.ZodOptional<z.ZodArray<z.ZodString>>;
654
+ network: z.ZodOptional<z.ZodObject<{
655
+ allowList: z.ZodArray<z.ZodString>;
656
+ }, z.core.$strict>>;
657
+ secrets: z.ZodOptional<z.ZodArray<z.ZodString>>;
658
+ }, z.core.$strict>>;
659
+ trustTier: z.ZodOptional<z.ZodEnum<{
660
+ "third-party": "third-party";
661
+ "first-party": "first-party";
662
+ }>>;
663
+ integrationRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
+ adapterKind: z.ZodString;
665
+ optional: z.ZodOptional<z.ZodBoolean>;
666
+ purpose: z.ZodString;
667
+ capabilities: z.ZodArray<z.ZodString>;
668
+ }, z.core.$strict>>>;
669
+ webhookFilters: z.ZodOptional<z.ZodArray<z.ZodObject<{
670
+ workflowId: z.ZodString;
671
+ event: z.ZodString;
672
+ entityKind: z.ZodOptional<z.ZodString>;
673
+ predicate: z.ZodType<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/connector").FilterExpr, unknown>>;
674
+ }, z.core.$strict>>>;
675
+ mcpWorkflowTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
676
+ key: z.ZodString;
677
+ workflowSlug: z.ZodString;
678
+ displayName: z.ZodString;
679
+ description: z.ZodString;
680
+ outputProjection: z.ZodObject<{
681
+ kind: z.ZodLiteral<"deliverable">;
682
+ slug: z.ZodString;
683
+ }, z.core.$strict>;
684
+ mount: z.ZodOptional<z.ZodObject<{
685
+ slot: z.ZodEnum<{
686
+ deliverables: "deliverables";
687
+ inputs: "inputs";
688
+ references: "references";
689
+ }>;
690
+ as: z.ZodString;
691
+ }, z.core.$strict>>;
692
+ }, z.core.$strict>>>;
693
+ mcpTools: z.ZodOptional<z.ZodArray<z.ZodObject<{
694
+ key: z.ZodString;
695
+ handler: z.ZodObject<{
696
+ kind: z.ZodLiteral<"biome_api">;
697
+ method: z.ZodDefault<z.ZodEnum<{
698
+ POST: "POST";
699
+ }>>;
700
+ }, z.core.$strict>;
701
+ }, z.core.$strict>>>;
702
+ defaultToolSelection: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
703
+ kind: z.ZodLiteral<"provider">;
704
+ providerKind: z.ZodEnum<{
705
+ mcp_server: "mcp_server";
706
+ catalog: "catalog";
707
+ biome_workflow_tools: "biome_workflow_tools";
708
+ biome_code_tools: "biome_code_tools";
709
+ }>;
710
+ resourceId: z.ZodString;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ kind: z.ZodLiteral<"tool">;
713
+ providerKind: z.ZodEnum<{
714
+ mcp_server: "mcp_server";
715
+ catalog: "catalog";
716
+ biome_workflow_tools: "biome_workflow_tools";
717
+ biome_code_tools: "biome_code_tools";
718
+ }>;
719
+ resourceId: z.ZodString;
720
+ toolName: z.ZodString;
721
+ }, z.core.$strict>], "kind">>>;
722
+ agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
723
+ slug: z.ZodString;
724
+ mode: z.ZodEnum<{
725
+ primary: "primary";
726
+ subagent: "subagent";
727
+ }>;
728
+ }, z.core.$strict>>>;
729
+ provisioning: z.ZodOptional<z.ZodArray<z.ZodObject<{
730
+ id: z.ZodString;
731
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningStepKind>;
732
+ triggers: z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningTrigger>>;
733
+ guard: z.ZodEnum<typeof import("@xemahq/kernel-contracts/provisioning").ProvisioningGuard>;
734
+ selector: z.ZodObject<{
735
+ configPointer: z.ZodString;
736
+ matchKind: z.ZodEnum<{
737
+ "each-app-target": "each-app-target";
738
+ }>;
739
+ }, z.core.$strict>;
740
+ }, z.core.$strict>>>;
741
+ database: z.ZodOptional<z.ZodObject<{
742
+ purpose: z.ZodLiteral<OrgDatabasePurpose.Biome>;
743
+ runnerKind: z.ZodLiteral<MigrationRunnerKind.Prisma>;
744
+ }, z.core.$strict>>;
745
+ signature: z.ZodOptional<z.ZodObject<{
746
+ algorithm: z.ZodString;
747
+ value: z.ZodString;
748
+ keyId: z.ZodString;
749
+ }, z.core.$strict>>;
750
+ }, z.core.$strict>, z.ZodObject<{
751
+ subscribes: z.ZodOptional<z.ZodArray<z.ZodType<BiomeEventSubscription, unknown, z.core.$ZodTypeInternals<BiomeEventSubscription, unknown>>>>;
752
+ requires: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
753
+ contributes: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>>>;
754
+ contributions: z.ZodOptional<z.ZodObject<{
755
+ directory: z.ZodOptional<z.ZodString>;
756
+ inline: z.ZodOptional<z.ZodArray<z.ZodObject<{
757
+ kind: z.ZodEnum<typeof import("@xemahq/kernel-contracts/contribution").ContributionKind>;
758
+ id: z.ZodString;
759
+ manifest: z.ZodUnknown;
760
+ }, z.core.$strict>>>;
761
+ }, z.core.$strict>>;
762
+ requiresCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
763
+ exposesCapabilities: z.ZodOptional<z.ZodArray<z.ZodType<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/capability").CapabilityRef, unknown>>>>;
764
+ permissions: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomePermissionsManifest, unknown>>>;
765
+ lifecycle: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeLifecycleHooks, unknown>>>;
766
+ engines: z.ZodOptional<z.ZodType<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown, z.core.$ZodTypeInternals<import("@xemahq/kernel-contracts/biome").BiomeEngines, unknown>>>;
767
+ id: z.ZodString;
768
+ displayName: z.ZodString;
769
+ description: z.ZodOptional<z.ZodString>;
770
+ scope: z.ZodEnum<{
771
+ system: "system";
772
+ kernel: "kernel";
773
+ base: "base";
774
+ platform: "platform";
775
+ "third-party": "third-party";
776
+ }>;
777
+ target: z.ZodLiteral<"web">;
778
+ mandatory: z.ZodOptional<z.ZodBoolean>;
779
+ requiresServerBiomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
780
+ optionalServerBiomes: z.ZodOptional<z.ZodArray<z.ZodString>>;
781
+ capabilities: z.ZodOptional<z.ZodObject<{
782
+ slots: z.ZodOptional<z.ZodArray<z.ZodString>>;
783
+ apiClients: z.ZodOptional<z.ZodArray<z.ZodString>>;
784
+ }, z.core.$strict>>;
785
+ signature: z.ZodOptional<z.ZodObject<{
786
+ algorithm: z.ZodString;
787
+ value: z.ZodString;
788
+ keyId: z.ZodString;
789
+ }, z.core.$strict>>;
790
+ }, z.core.$strict>], "target">;
791
+ }, z.core.$loose>;
792
+ export type BiomeManifest = z.infer<typeof BiomeManifestSchema>;
793
+ export type ServerBiomeManifest = BiomeManifest & {
794
+ xema: ServerBiomeXema;
795
+ };
796
+ export type WebBiomeManifest = BiomeManifest & {
797
+ xema: WebBiomeXema;
798
+ };
799
+ export declare class BiomeManifestParseError extends Error {
800
+ readonly issues: readonly z.core.$ZodIssue[];
801
+ constructor(issues: readonly z.core.$ZodIssue[]);
802
+ }
803
+ export declare function parseBiomeManifest(raw: unknown): BiomeManifest;
804
+ export declare function isServerBiomeManifest(manifest: BiomeManifest): manifest is ServerBiomeManifest;
805
+ export declare function isWebBiomeManifest(manifest: BiomeManifest): manifest is WebBiomeManifest;
806
+ export declare function isBiomeMandatory(manifest: BiomeManifest): boolean;
807
+ export {};
808
+ //# sourceMappingURL=biome-manifest.d.ts.map