@ai-primitives-hub/core 0.2.1 → 0.2.2-next.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 (336) hide show
  1. package/dist/domain/bundle/version.d.ts +13 -0
  2. package/dist/domain/bundle/version.d.ts.map +1 -1
  3. package/dist/domain/bundle/version.js +27 -0
  4. package/dist/domain/bundle/version.js.map +1 -1
  5. package/dist/domain/collection/apm-release-plan.d.ts +39 -0
  6. package/dist/domain/collection/apm-release-plan.d.ts.map +1 -0
  7. package/dist/domain/collection/apm-release-plan.js +185 -0
  8. package/dist/domain/collection/apm-release-plan.js.map +1 -0
  9. package/dist/domain/collection/contribution.d.ts +126 -0
  10. package/dist/domain/collection/contribution.d.ts.map +1 -0
  11. package/dist/domain/collection/contribution.js +462 -0
  12. package/dist/domain/collection/contribution.js.map +1 -0
  13. package/dist/domain/collection/diagnostics.d.ts +166 -0
  14. package/dist/domain/collection/diagnostics.d.ts.map +1 -0
  15. package/dist/domain/collection/diagnostics.js +3 -0
  16. package/dist/domain/collection/diagnostics.js.map +1 -0
  17. package/dist/domain/collection/manifest-validator.d.ts +3 -2
  18. package/dist/domain/collection/manifest-validator.d.ts.map +1 -1
  19. package/dist/domain/collection/manifest-validator.js +99 -17
  20. package/dist/domain/collection/manifest-validator.js.map +1 -1
  21. package/dist/domain/collection/release-manifest-plan.d.ts +9 -0
  22. package/dist/domain/collection/release-manifest-plan.d.ts.map +1 -1
  23. package/dist/domain/collection/release-manifest-plan.js +45 -14
  24. package/dist/domain/collection/release-manifest-plan.js.map +1 -1
  25. package/dist/domain/collection/validate.d.ts +5 -0
  26. package/dist/domain/collection/validate.d.ts.map +1 -1
  27. package/dist/domain/collection/validate.js +7 -2
  28. package/dist/domain/collection/validate.js.map +1 -1
  29. package/dist/domain/diagnostics/primitives/catalogue.d.ts +40 -0
  30. package/dist/domain/diagnostics/primitives/catalogue.d.ts.map +1 -0
  31. package/dist/domain/diagnostics/primitives/catalogue.js +78 -0
  32. package/dist/domain/diagnostics/primitives/catalogue.js.map +1 -0
  33. package/dist/domain/diagnostics/primitives/classifier.d.ts +81 -0
  34. package/dist/domain/diagnostics/primitives/classifier.d.ts.map +1 -0
  35. package/dist/domain/diagnostics/primitives/classifier.js +138 -0
  36. package/dist/domain/diagnostics/primitives/classifier.js.map +1 -0
  37. package/dist/domain/diagnostics/primitives/evaluators.d.ts +138 -0
  38. package/dist/domain/diagnostics/primitives/evaluators.d.ts.map +1 -0
  39. package/dist/domain/diagnostics/primitives/evaluators.js +485 -0
  40. package/dist/domain/diagnostics/primitives/evaluators.js.map +1 -0
  41. package/dist/domain/diagnostics/primitives/fixture.d.ts +97 -0
  42. package/dist/domain/diagnostics/primitives/fixture.d.ts.map +1 -0
  43. package/dist/domain/diagnostics/primitives/fixture.js +265 -0
  44. package/dist/domain/diagnostics/primitives/fixture.js.map +1 -0
  45. package/dist/domain/diagnostics/primitives/index.d.ts +18 -0
  46. package/dist/domain/diagnostics/primitives/index.d.ts.map +1 -0
  47. package/dist/domain/diagnostics/primitives/index.js +34 -0
  48. package/dist/domain/diagnostics/primitives/index.js.map +1 -0
  49. package/dist/domain/diagnostics/primitives/known-gaps.d.ts +50 -0
  50. package/dist/domain/diagnostics/primitives/known-gaps.d.ts.map +1 -0
  51. package/dist/domain/diagnostics/primitives/known-gaps.js +148 -0
  52. package/dist/domain/diagnostics/primitives/known-gaps.js.map +1 -0
  53. package/dist/domain/diagnostics/primitives/manifest-view.d.ts +28 -0
  54. package/dist/domain/diagnostics/primitives/manifest-view.d.ts.map +1 -0
  55. package/dist/domain/diagnostics/primitives/manifest-view.js +50 -0
  56. package/dist/domain/diagnostics/primitives/manifest-view.js.map +1 -0
  57. package/dist/domain/diagnostics/primitives/placements.d.ts +51 -0
  58. package/dist/domain/diagnostics/primitives/placements.d.ts.map +1 -0
  59. package/dist/domain/diagnostics/primitives/placements.js +76 -0
  60. package/dist/domain/diagnostics/primitives/placements.js.map +1 -0
  61. package/dist/domain/diagnostics/primitives/planner.d.ts +60 -0
  62. package/dist/domain/diagnostics/primitives/planner.d.ts.map +1 -0
  63. package/dist/domain/diagnostics/primitives/planner.js +60 -0
  64. package/dist/domain/diagnostics/primitives/planner.js.map +1 -0
  65. package/dist/domain/diagnostics/primitives/plugin-projection.d.ts +38 -0
  66. package/dist/domain/diagnostics/primitives/plugin-projection.d.ts.map +1 -0
  67. package/dist/domain/diagnostics/primitives/plugin-projection.js +173 -0
  68. package/dist/domain/diagnostics/primitives/plugin-projection.js.map +1 -0
  69. package/dist/domain/diagnostics/primitives/report.d.ts +122 -0
  70. package/dist/domain/diagnostics/primitives/report.d.ts.map +1 -0
  71. package/dist/domain/diagnostics/primitives/report.js +85 -0
  72. package/dist/domain/diagnostics/primitives/report.js.map +1 -0
  73. package/dist/domain/diagnostics/primitives/sandbox.d.ts +59 -0
  74. package/dist/domain/diagnostics/primitives/sandbox.d.ts.map +1 -0
  75. package/dist/domain/diagnostics/primitives/sandbox.js +193 -0
  76. package/dist/domain/diagnostics/primitives/sandbox.js.map +1 -0
  77. package/dist/domain/diagnostics/primitives/support-matrix.d.ts +36 -0
  78. package/dist/domain/diagnostics/primitives/support-matrix.d.ts.map +1 -0
  79. package/dist/domain/diagnostics/primitives/support-matrix.js +69 -0
  80. package/dist/domain/diagnostics/primitives/support-matrix.js.map +1 -0
  81. package/dist/domain/diagnostics/primitives/types.d.ts +117 -0
  82. package/dist/domain/diagnostics/primitives/types.d.ts.map +1 -0
  83. package/dist/domain/diagnostics/primitives/types.js +62 -0
  84. package/dist/domain/diagnostics/primitives/types.js.map +1 -0
  85. package/dist/domain/governance/catalogue.d.ts +11 -0
  86. package/dist/domain/governance/catalogue.d.ts.map +1 -0
  87. package/dist/domain/governance/catalogue.js +45 -0
  88. package/dist/domain/governance/catalogue.js.map +1 -0
  89. package/dist/domain/governance/effective-rules.d.ts +19 -0
  90. package/dist/domain/governance/effective-rules.d.ts.map +1 -0
  91. package/dist/domain/governance/effective-rules.js +49 -0
  92. package/dist/domain/governance/effective-rules.js.map +1 -0
  93. package/dist/domain/governance/evaluate.d.ts +16 -0
  94. package/dist/domain/governance/evaluate.d.ts.map +1 -0
  95. package/dist/domain/governance/evaluate.js +34 -0
  96. package/dist/domain/governance/evaluate.js.map +1 -0
  97. package/dist/domain/governance/hub-scope.d.ts +74 -0
  98. package/dist/domain/governance/hub-scope.d.ts.map +1 -0
  99. package/dist/domain/governance/hub-scope.js +202 -0
  100. package/dist/domain/governance/hub-scope.js.map +1 -0
  101. package/dist/domain/governance/hub-scoped-inventory.d.ts +22 -0
  102. package/dist/domain/governance/hub-scoped-inventory.d.ts.map +1 -0
  103. package/dist/domain/governance/hub-scoped-inventory.js +59 -0
  104. package/dist/domain/governance/hub-scoped-inventory.js.map +1 -0
  105. package/dist/domain/governance/index.d.ts +15 -0
  106. package/dist/domain/governance/index.d.ts.map +1 -0
  107. package/dist/domain/governance/index.js +31 -0
  108. package/dist/domain/governance/index.js.map +1 -0
  109. package/dist/domain/governance/rule-registry.d.ts +20 -0
  110. package/dist/domain/governance/rule-registry.d.ts.map +1 -0
  111. package/dist/domain/governance/rule-registry.js +40 -0
  112. package/dist/domain/governance/rule-registry.js.map +1 -0
  113. package/dist/domain/governance/rules/collection.d.ts +32 -0
  114. package/dist/domain/governance/rules/collection.d.ts.map +1 -0
  115. package/dist/domain/governance/rules/collection.js +153 -0
  116. package/dist/domain/governance/rules/collection.js.map +1 -0
  117. package/dist/domain/governance/rules/config.d.ts +15 -0
  118. package/dist/domain/governance/rules/config.d.ts.map +1 -0
  119. package/dist/domain/governance/rules/config.js +38 -0
  120. package/dist/domain/governance/rules/config.js.map +1 -0
  121. package/dist/domain/governance/rules/hub.d.ts +7 -0
  122. package/dist/domain/governance/rules/hub.d.ts.map +1 -0
  123. package/dist/domain/governance/rules/hub.js +10 -0
  124. package/dist/domain/governance/rules/hub.js.map +1 -0
  125. package/dist/domain/governance/types.d.ts +70 -0
  126. package/dist/domain/governance/types.d.ts.map +1 -0
  127. package/dist/domain/governance/types.js +7 -0
  128. package/dist/domain/governance/types.js.map +1 -0
  129. package/dist/domain/hub/diagnostics.d.ts +92 -0
  130. package/dist/domain/hub/diagnostics.d.ts.map +1 -0
  131. package/dist/domain/hub/diagnostics.js +11 -0
  132. package/dist/domain/hub/diagnostics.js.map +1 -0
  133. package/dist/domain/hub/profile-requirements.d.ts +16 -0
  134. package/dist/domain/hub/profile-requirements.d.ts.map +1 -0
  135. package/dist/domain/hub/profile-requirements.js +16 -0
  136. package/dist/domain/hub/profile-requirements.js.map +1 -0
  137. package/dist/domain/hub/replicate.d.ts +23 -0
  138. package/dist/domain/hub/replicate.d.ts.map +1 -1
  139. package/dist/domain/hub/replicate.js +13 -0
  140. package/dist/domain/hub/replicate.js.map +1 -1
  141. package/dist/domain/hub/types.d.ts +2 -0
  142. package/dist/domain/hub/types.d.ts.map +1 -1
  143. package/dist/domain/hub/validate.d.ts +150 -2
  144. package/dist/domain/hub/validate.d.ts.map +1 -1
  145. package/dist/domain/hub/validate.js +421 -37
  146. package/dist/domain/hub/validate.js.map +1 -1
  147. package/dist/domain/index.d.ts +17 -0
  148. package/dist/domain/index.d.ts.map +1 -1
  149. package/dist/domain/index.js +17 -0
  150. package/dist/domain/index.js.map +1 -1
  151. package/dist/domain/install/category.d.ts +31 -0
  152. package/dist/domain/install/category.d.ts.map +1 -0
  153. package/dist/domain/install/category.js +33 -0
  154. package/dist/domain/install/category.js.map +1 -0
  155. package/dist/domain/install/file-mode.d.ts +49 -0
  156. package/dist/domain/install/file-mode.d.ts.map +1 -0
  157. package/dist/domain/install/file-mode.js +54 -0
  158. package/dist/domain/install/file-mode.js.map +1 -0
  159. package/dist/domain/install/git-exclude.d.ts +22 -0
  160. package/dist/domain/install/git-exclude.d.ts.map +1 -0
  161. package/dist/domain/install/git-exclude.js +56 -0
  162. package/dist/domain/install/git-exclude.js.map +1 -0
  163. package/dist/domain/install/installable.d.ts +2 -0
  164. package/dist/domain/install/installable.d.ts.map +1 -1
  165. package/dist/domain/install/kind-route.d.ts +80 -0
  166. package/dist/domain/install/kind-route.d.ts.map +1 -0
  167. package/dist/domain/install/kind-route.js +135 -0
  168. package/dist/domain/install/kind-route.js.map +1 -0
  169. package/dist/domain/install/record-errors.d.ts +53 -0
  170. package/dist/domain/install/record-errors.d.ts.map +1 -0
  171. package/dist/domain/install/record-errors.js +104 -0
  172. package/dist/domain/install/record-errors.js.map +1 -0
  173. package/dist/domain/install/record-object.d.ts +21 -0
  174. package/dist/domain/install/record-object.d.ts.map +1 -0
  175. package/dist/domain/install/record-object.js +38 -0
  176. package/dist/domain/install/record-object.js.map +1 -0
  177. package/dist/domain/install/record-parse.d.ts +23 -0
  178. package/dist/domain/install/record-parse.d.ts.map +1 -0
  179. package/dist/domain/install/record-parse.js +73 -0
  180. package/dist/domain/install/record-parse.js.map +1 -0
  181. package/dist/domain/install/record-path.d.ts +26 -0
  182. package/dist/domain/install/record-path.d.ts.map +1 -0
  183. package/dist/domain/install/record-path.js +130 -0
  184. package/dist/domain/install/record-path.js.map +1 -0
  185. package/dist/domain/install/record-types.d.ts +183 -0
  186. package/dist/domain/install/record-types.d.ts.map +1 -0
  187. package/dist/domain/install/record-types.js +92 -0
  188. package/dist/domain/install/record-types.js.map +1 -0
  189. package/dist/domain/install/types.d.ts +2 -0
  190. package/dist/domain/install/types.d.ts.map +1 -1
  191. package/dist/domain/mcp/index.d.ts +1 -0
  192. package/dist/domain/mcp/index.d.ts.map +1 -1
  193. package/dist/domain/mcp/index.js +1 -0
  194. package/dist/domain/mcp/index.js.map +1 -1
  195. package/dist/domain/mcp/server-key.d.ts +35 -0
  196. package/dist/domain/mcp/server-key.d.ts.map +1 -0
  197. package/dist/domain/mcp/server-key.js +44 -0
  198. package/dist/domain/mcp/server-key.js.map +1 -0
  199. package/dist/domain/plugin/agent-plugin-spec.d.ts +8 -0
  200. package/dist/domain/plugin/agent-plugin-spec.d.ts.map +1 -1
  201. package/dist/domain/plugin/agent-plugin-spec.js +22 -8
  202. package/dist/domain/plugin/agent-plugin-spec.js.map +1 -1
  203. package/dist/domain/registry-error.d.ts +1 -1
  204. package/dist/domain/registry-error.d.ts.map +1 -1
  205. package/dist/domain/registry-error.js +2 -1
  206. package/dist/domain/registry-error.js.map +1 -1
  207. package/dist/domain/security/fingerprint.d.ts +18 -0
  208. package/dist/domain/security/fingerprint.d.ts.map +1 -0
  209. package/dist/domain/security/fingerprint.js +34 -0
  210. package/dist/domain/security/fingerprint.js.map +1 -0
  211. package/dist/domain/security/high-impact-rules.d.ts +30 -0
  212. package/dist/domain/security/high-impact-rules.d.ts.map +1 -0
  213. package/dist/domain/security/high-impact-rules.js +160 -0
  214. package/dist/domain/security/high-impact-rules.js.map +1 -0
  215. package/dist/domain/security/index.d.ts +10 -0
  216. package/dist/domain/security/index.d.ts.map +1 -0
  217. package/dist/domain/security/index.js +26 -0
  218. package/dist/domain/security/index.js.map +1 -0
  219. package/dist/domain/security/markdown-context.d.ts +17 -0
  220. package/dist/domain/security/markdown-context.d.ts.map +1 -0
  221. package/dist/domain/security/markdown-context.js +74 -0
  222. package/dist/domain/security/markdown-context.js.map +1 -0
  223. package/dist/domain/security/policy.d.ts +17 -0
  224. package/dist/domain/security/policy.d.ts.map +1 -0
  225. package/dist/domain/security/policy.js +31 -0
  226. package/dist/domain/security/policy.js.map +1 -0
  227. package/dist/domain/security/rating/findings-document.d.ts +22 -0
  228. package/dist/domain/security/rating/findings-document.d.ts.map +1 -0
  229. package/dist/domain/security/rating/findings-document.js +57 -0
  230. package/dist/domain/security/rating/findings-document.js.map +1 -0
  231. package/dist/domain/security/rating/index.d.ts +5 -0
  232. package/dist/domain/security/rating/index.d.ts.map +1 -0
  233. package/dist/domain/security/rating/index.js +21 -0
  234. package/dist/domain/security/rating/index.js.map +1 -0
  235. package/dist/domain/security/rating/scoring.d.ts +83 -0
  236. package/dist/domain/security/rating/scoring.d.ts.map +1 -0
  237. package/dist/domain/security/rating/scoring.js +115 -0
  238. package/dist/domain/security/rating/scoring.js.map +1 -0
  239. package/dist/domain/security/rating/security-rating-report.d.ts +111 -0
  240. package/dist/domain/security/rating/security-rating-report.d.ts.map +1 -0
  241. package/dist/domain/security/rating/security-rating-report.js +152 -0
  242. package/dist/domain/security/rating/security-rating-report.js.map +1 -0
  243. package/dist/domain/security/rating/types.d.ts +22 -0
  244. package/dist/domain/security/rating/types.d.ts.map +1 -0
  245. package/dist/domain/security/rating/types.js +11 -0
  246. package/dist/domain/security/rating/types.js.map +1 -0
  247. package/dist/domain/security/remediations.d.ts +17 -0
  248. package/dist/domain/security/remediations.d.ts.map +1 -0
  249. package/dist/domain/security/remediations.js +61 -0
  250. package/dist/domain/security/remediations.js.map +1 -0
  251. package/dist/domain/security/rule-engine.d.ts +8 -0
  252. package/dist/domain/security/rule-engine.d.ts.map +1 -0
  253. package/dist/domain/security/rule-engine.js +875 -0
  254. package/dist/domain/security/rule-engine.js.map +1 -0
  255. package/dist/domain/security/suppression.d.ts +19 -0
  256. package/dist/domain/security/suppression.d.ts.map +1 -0
  257. package/dist/domain/security/suppression.js +78 -0
  258. package/dist/domain/security/suppression.js.map +1 -0
  259. package/dist/domain/security/types.d.ts +91 -0
  260. package/dist/domain/security/types.d.ts.map +1 -0
  261. package/dist/domain/security/types.js +10 -0
  262. package/dist/domain/security/types.js.map +1 -0
  263. package/dist/index.d.ts +8 -0
  264. package/dist/index.d.ts.map +1 -1
  265. package/dist/index.js +12 -1
  266. package/dist/index.js.map +1 -1
  267. package/dist/ports/app-storage.d.ts +11 -15
  268. package/dist/ports/app-storage.d.ts.map +1 -1
  269. package/dist/ports/app-storage.js +8 -8
  270. package/dist/ports/argv-process-runner.d.ts +6 -0
  271. package/dist/ports/argv-process-runner.d.ts.map +1 -0
  272. package/dist/ports/argv-process-runner.js +3 -0
  273. package/dist/ports/argv-process-runner.js.map +1 -0
  274. package/dist/ports/bundle-extractor.d.ts +16 -3
  275. package/dist/ports/bundle-extractor.d.ts.map +1 -1
  276. package/dist/ports/collection-contribution.d.ts +36 -0
  277. package/dist/ports/collection-contribution.d.ts.map +1 -0
  278. package/dist/ports/collection-contribution.js +3 -0
  279. package/dist/ports/collection-contribution.js.map +1 -0
  280. package/dist/ports/filesystem.d.ts +12 -0
  281. package/dist/ports/filesystem.d.ts.map +1 -1
  282. package/dist/ports/hub-collection-index.d.ts +27 -0
  283. package/dist/ports/hub-collection-index.d.ts.map +1 -0
  284. package/dist/ports/hub-collection-index.js +3 -0
  285. package/dist/ports/hub-collection-index.js.map +1 -0
  286. package/dist/ports/hub-contribution.d.ts +158 -0
  287. package/dist/ports/hub-contribution.d.ts.map +1 -0
  288. package/dist/ports/hub-contribution.js +3 -0
  289. package/dist/ports/hub-contribution.js.map +1 -0
  290. package/dist/ports/index.d.ts +12 -0
  291. package/dist/ports/index.d.ts.map +1 -1
  292. package/dist/ports/index.js +12 -0
  293. package/dist/ports/index.js.map +1 -1
  294. package/dist/ports/primitive-diagnostics-driver.d.ts +96 -0
  295. package/dist/ports/primitive-diagnostics-driver.d.ts.map +1 -0
  296. package/dist/ports/primitive-diagnostics-driver.js +3 -0
  297. package/dist/ports/primitive-diagnostics-driver.js.map +1 -0
  298. package/dist/ports/record-fs.d.ts +46 -0
  299. package/dist/ports/record-fs.d.ts.map +1 -0
  300. package/dist/ports/record-fs.js +9 -0
  301. package/dist/ports/record-fs.js.map +1 -0
  302. package/dist/ports/registry-operations.d.ts +3 -2
  303. package/dist/ports/registry-operations.d.ts.map +1 -1
  304. package/dist/ports/release-lookup.d.ts +24 -0
  305. package/dist/ports/release-lookup.d.ts.map +1 -0
  306. package/dist/ports/release-lookup.js +7 -0
  307. package/dist/ports/release-lookup.js.map +1 -0
  308. package/dist/ports/release-source.d.ts +17 -3
  309. package/dist/ports/release-source.d.ts.map +1 -1
  310. package/dist/ports/repository-exclusion.d.ts +30 -0
  311. package/dist/ports/repository-exclusion.d.ts.map +1 -0
  312. package/dist/ports/repository-exclusion.js +3 -0
  313. package/dist/ports/repository-exclusion.js.map +1 -0
  314. package/dist/ports/schema-validator.d.ts +25 -0
  315. package/dist/ports/schema-validator.d.ts.map +1 -0
  316. package/dist/ports/schema-validator.js +7 -0
  317. package/dist/ports/schema-validator.js.map +1 -0
  318. package/dist/ports/security-report-store.d.ts +9 -0
  319. package/dist/ports/security-report-store.d.ts.map +1 -0
  320. package/dist/ports/security-report-store.js +4 -0
  321. package/dist/ports/security-report-store.js.map +1 -0
  322. package/dist/ports/security-scan-engine.d.ts +32 -0
  323. package/dist/ports/security-scan-engine.d.ts.map +1 -0
  324. package/dist/ports/security-scan-engine.js +6 -0
  325. package/dist/ports/security-scan-engine.js.map +1 -0
  326. package/dist/ports/security-scan-input.d.ts +63 -0
  327. package/dist/ports/security-scan-input.d.ts.map +1 -0
  328. package/dist/ports/security-scan-input.js +3 -0
  329. package/dist/ports/security-scan-input.js.map +1 -0
  330. package/dist/ports/source-adapter.d.ts +11 -0
  331. package/dist/ports/source-adapter.d.ts.map +1 -1
  332. package/dist/public/schemas/collection.schema.json +0 -1
  333. package/dist/public/schemas/hub-governance.schema.json +21 -0
  334. package/dist/public/schemas/install-record.schema.json +343 -0
  335. package/dist/public/schemas/security-rating-report.schema.json +113 -0
  336. package/package.json +2 -2
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=repository-exclusion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository-exclusion.js","sourceRoot":"","sources":["../../src/ports/repository-exclusion.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * JSON Schema validation behind a port, so core and delivery layers share one validator.
3
+ * @module ports/schema-validator
4
+ */
5
+ export interface SchemaValidationIssue {
6
+ /** JSON Pointer to the offending value; empty for the root. */
7
+ instancePath: string;
8
+ /** Schema keyword that failed, for example `required` or `pattern`. */
9
+ keyword: string;
10
+ message: string;
11
+ params: Record<string, unknown>;
12
+ }
13
+ export interface SchemaValidationOutcome {
14
+ valid: boolean;
15
+ issues: SchemaValidationIssue[];
16
+ }
17
+ export interface SchemaValidator {
18
+ /**
19
+ * Validate data against a JSON Schema object. Implementations cache compiled schemas by identity.
20
+ * @param schema JSON Schema document.
21
+ * @param data Value to validate.
22
+ */
23
+ validate(schema: object, data: unknown): SchemaValidationOutcome;
24
+ }
25
+ //# sourceMappingURL=schema-validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-validator.d.ts","sourceRoot":"","sources":["../../src/ports/schema-validator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC,+DAA+D;IAC/D,YAAY,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,qBAAqB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,uBAAuB,CAAC;CAClE"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * JSON Schema validation behind a port, so core and delivery layers share one validator.
4
+ * @module ports/schema-validator
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=schema-validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-validator.js","sourceRoot":"","sources":["../../src/ports/schema-validator.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -0,0 +1,9 @@
1
+ /** Port for security-report persistence with infrastructure-enforced safety. */
2
+ export interface SecurityReportStore {
3
+ write(request: {
4
+ destination: string;
5
+ contents: string;
6
+ overwrite: 'never' | 'replace';
7
+ }): Promise<void>;
8
+ }
9
+ //# sourceMappingURL=security-report-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-report-store.d.ts","sourceRoot":"","sources":["../../src/ports/security-report-store.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAEhF,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,OAAO,EAAE;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC;KAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnB"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /** Port for security-report persistence with infrastructure-enforced safety. */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=security-report-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-report-store.js","sourceRoot":"","sources":["../../src/ports/security-report-store.ts"],"names":[],"mappings":";AAAA,gFAAgF"}
@@ -0,0 +1,32 @@
1
+ /** Port for a replaceable static security scan engine. */
2
+ import type { SecurityDocument, SecurityFinding, SecuritySeverity } from '../domain/security';
3
+ export interface SecurityCancellation {
4
+ readonly cancelled: boolean;
5
+ throwIfCancelled(): void;
6
+ }
7
+ export interface SecurityEngineDescriptor {
8
+ id: string;
9
+ version: string;
10
+ rulePackId: string;
11
+ rulePackVersion: string;
12
+ rulePackDigest: string;
13
+ }
14
+ export interface SecurityEngineCapabilities {
15
+ readonly contentTypes: readonly string[];
16
+ readonly locations: 'line' | 'range';
17
+ readonly supportsFileMode: boolean;
18
+ readonly supportsCancellation: boolean;
19
+ }
20
+ export interface SecurityEngineOptions {
21
+ includeLlmControls: boolean;
22
+ skipInfoControls: boolean;
23
+ maxFindings: number;
24
+ }
25
+ export interface SecurityScanEngine {
26
+ readonly descriptor: SecurityEngineDescriptor;
27
+ readonly capabilities: SecurityEngineCapabilities;
28
+ scanDocument(document: SecurityDocument, options: SecurityEngineOptions, cancellation: SecurityCancellation): Promise<readonly SecurityFinding[]>;
29
+ dispose?(): void | Promise<void>;
30
+ }
31
+ export declare const isSecuritySeverity: (value: unknown) => value is SecuritySeverity;
32
+ //# sourceMappingURL=security-scan-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scan-engine.d.ts","sourceRoot":"","sources":["../../src/ports/security-scan-engine.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,gBAAgB,IAAI,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACrC,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,qBAAqB;IACpC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,wBAAwB,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAClD,YAAY,CACV,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,EAAE,qBAAqB,EAC9B,YAAY,EAAE,oBAAoB,GACjC,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,gBAC0C,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSecuritySeverity = void 0;
4
+ const isSecuritySeverity = (value) => value === 'CRITICAL' || value === 'HIGH' || value === 'MEDIUM' || value === 'LOW' || value === 'INFO';
5
+ exports.isSecuritySeverity = isSecuritySeverity;
6
+ //# sourceMappingURL=security-scan-engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scan-engine.js","sourceRoot":"","sources":["../../src/ports/security-scan-engine.ts"],"names":[],"mappings":";;;AA4CO,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAA6B,EAAE,CAC9E,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,MAAM,CAAC;AAD3F,QAAA,kBAAkB,sBACyE"}
@@ -0,0 +1,63 @@
1
+ /** Port for collecting bounded security-scan inputs and ignore declarations. */
2
+ import type { SecurityDocument, SuppressionDeclaration, SuppressionWarning } from '../domain/security';
3
+ import type { SecurityCancellation } from './security-scan-engine';
4
+ export interface SecurityResourceLimits {
5
+ maxFiles: number;
6
+ maxFileBytes: number;
7
+ maxTotalBytes: number;
8
+ maxDepth: number;
9
+ maxFindings: number;
10
+ maxIgnoreBytes: number;
11
+ maxIgnoreLines: number;
12
+ maxReportBytes: number;
13
+ timeoutMs: number;
14
+ documentTimeoutMs: number;
15
+ }
16
+ export interface SecurityInputCandidate {
17
+ id: string;
18
+ rootId: string;
19
+ absolutePath: string;
20
+ displayPath: string;
21
+ depth: number;
22
+ }
23
+ export interface SecurityInputCollection {
24
+ candidates: readonly SecurityInputCandidate[];
25
+ ignoredFiles: readonly {
26
+ path: string;
27
+ reason: string;
28
+ source?: string;
29
+ }[];
30
+ skippedFiles: readonly {
31
+ path: string;
32
+ reason: string;
33
+ }[];
34
+ errors: readonly {
35
+ path?: string;
36
+ code: string;
37
+ message: string;
38
+ }[];
39
+ suppressions: readonly SuppressionDeclaration[];
40
+ warnings: readonly SuppressionWarning[];
41
+ }
42
+ export interface SecurityInputRequest {
43
+ roots: readonly string[];
44
+ extensions: readonly string[];
45
+ recursive: boolean;
46
+ excludes: readonly string[];
47
+ includeDocFiles: boolean;
48
+ ignoreTrust: 'repository' | 'none' | 'baseline';
49
+ baselineSuppressionPath?: string;
50
+ baselineFileIgnorePath?: string;
51
+ }
52
+ export interface SecurityInputReadResult {
53
+ document?: SecurityDocument;
54
+ error?: {
55
+ code: string;
56
+ message: string;
57
+ };
58
+ }
59
+ export interface SecurityScanInput {
60
+ collect(request: SecurityInputRequest, limits: SecurityResourceLimits, cancellation: SecurityCancellation): Promise<SecurityInputCollection>;
61
+ read(candidate: SecurityInputCandidate, limits: SecurityResourceLimits, cancellation: SecurityCancellation): Promise<SecurityInputReadResult>;
62
+ }
63
+ //# sourceMappingURL=security-scan-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scan-input.d.ts","sourceRoot":"","sources":["../../src/ports/security-scan-input.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAC9C,YAAY,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC3E,YAAY,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1D,MAAM,EAAE,SAAS;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACpE,YAAY,EAAE,SAAS,sBAAsB,EAAE,CAAC;IAChD,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC;IAChD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,CACL,OAAO,EAAE,oBAAoB,EAC7B,MAAM,EAAE,sBAAsB,EAC9B,YAAY,EAAE,oBAAoB,GACjC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpC,IAAI,CACF,SAAS,EAAE,sBAAsB,EACjC,MAAM,EAAE,sBAAsB,EAC9B,YAAY,EAAE,oBAAoB,GACjC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=security-scan-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-scan-input.js","sourceRoot":"","sources":["../../src/ports/security-scan-input.ts"],"names":[],"mappings":""}
@@ -17,6 +17,17 @@ export interface SourceAdapter {
17
17
  readonly type: string;
18
18
  readonly source: RegistrySource;
19
19
  fetchBundles(): Promise<Bundle[]>;
20
+ /** Optional strict catalog capability; reject unreadable entries instead of silently skipping them. */
21
+ fetchBundlesStrict?(): Promise<Bundle[]>;
22
+ /**
23
+ * Optional lightweight catalog discovery returning only `{ id, version }`
24
+ * entries without downloading per-bundle READMEs, frontmatter, or release
25
+ * manifests when the source's index/tree already encodes identity and version.
26
+ */
27
+ fetchCatalog?(): Promise<{
28
+ id: string;
29
+ version: string;
30
+ }[]>;
20
31
  /**
21
32
  * Download a bundle's archive.
22
33
  * Always resolves to a `Buffer` — whether the source provides
@@ -1 +1 @@
1
- {"version":3,"file":"source-adapter.d.ts","sourceRoot":"","sources":["../../src/ports/source-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EACV,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAElC;;;;;OAKG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD,aAAa,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAEzC,kFAAkF;IAClF,QAAQ,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEtC,sBAAsB,IAAI,OAAO,CAAC;IAElC,4EAA4E;IAC5E,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3D,4EAA4E;IAC5E,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3D;;;OAGG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEvD,sEAAsE;IACtE,mBAAmB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC"}
1
+ {"version":3,"file":"source-adapter.d.ts","sourceRoot":"","sources":["../../src/ports/source-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EACV,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAElC,uGAAuG;IACvG,kBAAkB,CAAC,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEzC;;;;OAIG;IACH,YAAY,CAAC,IAAI,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAC;IAE5D;;;;;OAKG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEhD,aAAa,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAEzC,kFAAkF;IAClF,QAAQ,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEtC,sBAAsB,IAAI,OAAO,CAAC;IAElC,4EAA4E;IAC5E,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3D,4EAA4E;IAC5E,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3D;;;OAGG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAEvD,sEAAsE;IACtE,mBAAmB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC"}
@@ -42,7 +42,6 @@
42
42
  "type": "array",
43
43
  "description": "List of resources in this collection",
44
44
  "minItems": 0,
45
- "maxItems": 50,
46
45
  "items": {
47
46
  "type": "object",
48
47
  "required": [
@@ -0,0 +1,21 @@
1
+ {
2
+ "title": "AI Primitives Hub governance configuration (hub-governance.yml)",
3
+ "description": "Optional consumer configuration. Rule ids and floor rules are checked semantically (CFG002-CFG003).",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "rules": {
8
+ "type": "object",
9
+ "description": "Per-rule overrides keyed by rule id, for example COL003.",
10
+ "additionalProperties": {
11
+ "type": "object",
12
+ "additionalProperties": false,
13
+ "properties": {
14
+ "enabled": { "type": "boolean" },
15
+ "severity": { "enum": ["error", "warning"] },
16
+ "reason": { "type": "string", "description": "Shown next to the suppression in every report." }
17
+ }
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,343 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/AmadeusITGroup/ai-primitives-hub/schemas/lockfile.schema.json",
4
+ "title": "AI Primitives Hub install record",
5
+ "description": "Schema for the install record files (format 3.0.0): ai-primitives-hub.lock.json, ai-primitives-hub.local.lock.json and ai-primitives-hub.user.lock.json. Sources are keyed by a readable id src:<type>:<host/path>[#<branch>][:<path>] and hubs by hub:<type>:<host/path>[#<ref>][:<configFile>]; bundles by <sourceId>/<name>, then by tool (harness). Unknown fields are allowed and kept by readers.",
6
+ "type": "object",
7
+ "required": [
8
+ "$schema",
9
+ "version",
10
+ "level",
11
+ "generatedAt",
12
+ "generatedBy",
13
+ "bundles",
14
+ "sources"
15
+ ],
16
+ "additionalProperties": true,
17
+ "properties": {
18
+ "$schema": {
19
+ "type": "string",
20
+ "description": "JSON schema reference for validation",
21
+ "examples": [
22
+ "https://github.com/AmadeusITGroup/ai-primitives-hub/schemas/lockfile.schema.json"
23
+ ]
24
+ },
25
+ "version": {
26
+ "type": "string",
27
+ "description": "Record format version; readers stop on a major version above 3",
28
+ "pattern": "^3\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$",
29
+ "examples": [
30
+ "3.0.0"
31
+ ]
32
+ },
33
+ "level": {
34
+ "type": "string",
35
+ "description": "Level this record belongs to",
36
+ "enum": [
37
+ "repository",
38
+ "user"
39
+ ]
40
+ },
41
+ "generatedAt": {
42
+ "type": "string",
43
+ "description": "ISO 8601 timestamp of the last write",
44
+ "format": "date-time"
45
+ },
46
+ "generatedBy": {
47
+ "type": "string",
48
+ "description": "Writer and version, e.g. ai-primitives-hub-cli@0.3.0 or ai-primitives-hub-extension@1.0.0",
49
+ "minLength": 1
50
+ },
51
+ "bundles": {
52
+ "type": "object",
53
+ "description": "Map of <sourceId>/<name> keys, with no version, to their tool entries",
54
+ "additionalProperties": {
55
+ "$ref": "#/definitions/bundle"
56
+ }
57
+ },
58
+ "sources": {
59
+ "type": "object",
60
+ "description": "Map of readable source ids to the source's fields",
61
+ "additionalProperties": {
62
+ "$ref": "#/definitions/source"
63
+ }
64
+ },
65
+ "hubs": {
66
+ "type": "object",
67
+ "description": "Map of readable hub ids (hub:<type>:<host/path>[#<ref>][:<configFile>]), named by a source's hubId, to the hub's import reference; never holds credentials",
68
+ "additionalProperties": {
69
+ "$ref": "#/definitions/hub"
70
+ }
71
+ },
72
+ "profiles": {
73
+ "type": "object",
74
+ "description": "Profile configuration, carried through unchanged"
75
+ }
76
+ },
77
+ "definitions": {
78
+ "name": {
79
+ "type": "string",
80
+ "description": "Tool or source type name; readers keep names they do not know",
81
+ "pattern": "^[a-z][a-z0-9-]*$"
82
+ },
83
+ "bundle": {
84
+ "type": "object",
85
+ "description": "All tool entries for one bundle",
86
+ "required": [
87
+ "tools"
88
+ ],
89
+ "additionalProperties": true,
90
+ "properties": {
91
+ "tools": {
92
+ "type": "object",
93
+ "description": "Map of tool names (target types) to entries",
94
+ "minProperties": 1,
95
+ "propertyNames": {
96
+ "$ref": "#/definitions/name"
97
+ },
98
+ "additionalProperties": {
99
+ "$ref": "#/definitions/entry"
100
+ }
101
+ },
102
+ "name": {
103
+ "type": "string",
104
+ "minLength": 1,
105
+ "description": "Collection, manifest or index id of the bundle, without a version"
106
+ }
107
+ }
108
+ },
109
+ "entry": {
110
+ "type": "object",
111
+ "description": "What one tool has installed for one bundle",
112
+ "required": [
113
+ "version",
114
+ "sourceType",
115
+ "installedAt",
116
+ "files"
117
+ ],
118
+ "additionalProperties": true,
119
+ "properties": {
120
+ "version": {
121
+ "type": "string",
122
+ "minLength": 1
123
+ },
124
+ "sourceId": {
125
+ "type": "string",
126
+ "minLength": 1,
127
+ "description": "Key of the entry's source; on disk the bundle key names the source instead"
128
+ },
129
+ "bundleId": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "description": "The hub's bundle id, when it differs from the bundle name"
133
+ },
134
+ "sourceType": {
135
+ "$ref": "#/definitions/name"
136
+ },
137
+ "installedAt": {
138
+ "type": "string",
139
+ "format": "date-time"
140
+ },
141
+ "needsReinstall": {
142
+ "const": true,
143
+ "description": "Present only under the tool name 'unknown'"
144
+ },
145
+ "files": {
146
+ "type": "array",
147
+ "description": "Files this entry owns, sorted by path",
148
+ "items": {
149
+ "$ref": "#/definitions/file"
150
+ }
151
+ },
152
+ "integrity": {
153
+ "type": "string",
154
+ "description": "sha256: of the downloaded bundle content: each bundle path with its file's sha256, sorted",
155
+ "pattern": "^sha256:[0-9a-f]{64}$"
156
+ },
157
+ "root": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "description": "Folder the tool writes to when it is not the level root, '~'-relative; file paths are relative to it"
161
+ },
162
+ "plugins": {
163
+ "type": "array",
164
+ "description": "Agent Plugins the entry installed; their files are also in files",
165
+ "items": {
166
+ "$ref": "#/definitions/plugin"
167
+ }
168
+ },
169
+ "mcpServers": {
170
+ "type": "array",
171
+ "description": "MCP servers the entry owns; their definitions stay in the tool's MCP file",
172
+ "items": {
173
+ "$ref": "#/definitions/mcpServer"
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "file": {
179
+ "type": "object",
180
+ "description": "One file an entry wrote",
181
+ "required": [
182
+ "path",
183
+ "checksum"
184
+ ],
185
+ "additionalProperties": true,
186
+ "properties": {
187
+ "path": {
188
+ "type": "string",
189
+ "description": "Path relative to the level root; forward slashes; no leading '/', drive letter or '..' segment",
190
+ "pattern": "^(?![/\\\\])(?![A-Za-z]:)(?!(?:.*[/\\\\])?\\.\\.(?:[/\\\\]|$)).+$",
191
+ "examples": [
192
+ ".github/prompts/my-prompt.prompt.md",
193
+ ".kiro/steering/style.md"
194
+ ]
195
+ },
196
+ "checksum": {
197
+ "type": "string",
198
+ "description": "sha256: followed by the lowercase hex SHA-256 of the bytes on disk",
199
+ "pattern": "^sha256:[0-9a-f]{64}$"
200
+ },
201
+ "sourcePath": {
202
+ "type": "string",
203
+ "minLength": 1,
204
+ "description": "Path of the file inside the bundle"
205
+ },
206
+ "mode": {
207
+ "type": "string",
208
+ "description": "File mode, only when not the default",
209
+ "pattern": "^0[0-7]{3}$"
210
+ }
211
+ }
212
+ },
213
+ "source": {
214
+ "type": "object",
215
+ "description": "Source configuration entry",
216
+ "required": [
217
+ "type",
218
+ "url"
219
+ ],
220
+ "additionalProperties": true,
221
+ "properties": {
222
+ "type": {
223
+ "type": "string",
224
+ "minLength": 1
225
+ },
226
+ "url": {
227
+ "type": "string",
228
+ "minLength": 1
229
+ },
230
+ "branch": {
231
+ "type": "string"
232
+ },
233
+ "collectionsPath": {
234
+ "type": "string"
235
+ },
236
+ "indexFile": {
237
+ "type": "string"
238
+ },
239
+ "authMode": {
240
+ "type": "string"
241
+ },
242
+ "credentialRef": {
243
+ "type": "string",
244
+ "minLength": 1
245
+ },
246
+ "hubId": {
247
+ "type": "string",
248
+ "description": "Readable id in hubs of the shared hub the source came from",
249
+ "minLength": 1
250
+ }
251
+ }
252
+ },
253
+ "hub": {
254
+ "type": "object",
255
+ "description": "A shared hub's import reference; entries carried over by migration may have other fields",
256
+ "additionalProperties": true,
257
+ "properties": {
258
+ "name": {
259
+ "type": "string"
260
+ },
261
+ "type": {
262
+ "type": "string",
263
+ "minLength": 1
264
+ },
265
+ "location": {
266
+ "type": "string",
267
+ "minLength": 1
268
+ },
269
+ "ref": {
270
+ "type": "string"
271
+ },
272
+ "configFile": {
273
+ "type": "string"
274
+ }
275
+ }
276
+ },
277
+ "plugin": {
278
+ "type": "object",
279
+ "description": "One Agent Plugin (a plugin.json folder)",
280
+ "required": [
281
+ "name",
282
+ "root"
283
+ ],
284
+ "additionalProperties": true,
285
+ "properties": {
286
+ "name": {
287
+ "type": "string",
288
+ "minLength": 1
289
+ },
290
+ "version": {
291
+ "type": "string"
292
+ },
293
+ "manifestDigest": {
294
+ "type": "string",
295
+ "pattern": "^sha256:[0-9a-f]{64}$"
296
+ },
297
+ "root": {
298
+ "type": "string",
299
+ "minLength": 1
300
+ },
301
+ "skills": {
302
+ "type": "array",
303
+ "items": {
304
+ "type": "string"
305
+ }
306
+ },
307
+ "mcpServers": {
308
+ "type": "array",
309
+ "items": {
310
+ "type": "string"
311
+ }
312
+ }
313
+ }
314
+ },
315
+ "mcpServer": {
316
+ "type": "object",
317
+ "description": "One MCP server the entry owns; ${env:VAR} stays unresolved and no secret is stored",
318
+ "required": [
319
+ "config",
320
+ "name"
321
+ ],
322
+ "additionalProperties": true,
323
+ "properties": {
324
+ "config": {
325
+ "type": "string",
326
+ "minLength": 1,
327
+ "description": "The tool's MCP file, relative to the level root"
328
+ },
329
+ "name": {
330
+ "type": "string",
331
+ "minLength": 1
332
+ },
333
+ "item": {
334
+ "type": "string"
335
+ },
336
+ "checksum": {
337
+ "type": "string",
338
+ "pattern": "^sha256:[0-9a-f]{64}$"
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }