@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,265 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fixtureExecutablePaths = exports.fixtureItemSourcePaths = exports.primitiveFixtureCollections = exports.mixedBundleItems = exports.collectionFileFor = exports.isolatedBundleId = exports.PRIMITIVE_INVALID_PLUGIN_BUNDLES = exports.PRIMITIVE_MIXED_BUNDLES = exports.PRIMITIVE_FIXTURE_ITEMS = exports.PLUGIN_ROOT_PLACEHOLDER = exports.PRIMITIVE_FIXTURE_REPOSITORY_URL = void 0;
4
+ exports.buildPrimitiveFixture = buildPrimitiveFixture;
5
+ /**
6
+ * Domain layer — the primitive diagnostics fixture repository.
7
+ *
8
+ * The whole fixture repository as data: repository-relative path → bytes
9
+ * plus the intended file mode. It holds one collection per bundle
10
+ * (`collections/<bundle id>.collection.yml`): a single-item collection per
11
+ * kind (`aph-e2e-only-<kind>`), the mixed-kind collections and the invalid
12
+ * Agent Plugin collections, plus the root `LICENSE`, `README.md` and
13
+ * `package.json` that make `bundle build` take the governed release path.
14
+ *
15
+ * File contents are fixed: the core tests pin the SHA-256 of every
16
+ * archived file, so bundle ids, archive bytes and reports stay comparable
17
+ * across runs. Intended modes are data only: the diagnostics commit the
18
+ * executable files as such (`commitFixtureRepository`).
19
+ * @module domain/diagnostics/primitives/fixture
20
+ */
21
+ const js_yaml_1 = require("js-yaml");
22
+ const agent_plugin_spec_1 = require("../../plugin/agent-plugin-spec");
23
+ /** Fixture remote; its `package.json` `repository.url` and git `origin`. */
24
+ exports.PRIMITIVE_FIXTURE_REPOSITORY_URL = 'https://github.com/example/aph-e2e-fixture.git';
25
+ /** Placeholder an Agent Plugin uses for its installed root directory. */
26
+ exports.PLUGIN_ROOT_PLACEHOLDER = '${PLUGIN_ROOT}';
27
+ /** Name of the fixture Agent Plugin's MCP server. */
28
+ const PLUGIN_MCP_SERVER = 'aph-e2e';
29
+ /** One item per kind, in `PRIMITIVE_KINDS` order: the isolated bundles, reused by the mixed bundles. */
30
+ exports.PRIMITIVE_FIXTURE_ITEMS = [
31
+ { kind: 'prompt', path: 'prompts/hello-world.prompt.md', expectedId: 'hello-world', unit: 'file', sourcePrefix: 'prompts/' },
32
+ { kind: 'instruction', path: 'instructions/code-style.instructions.md', expectedId: 'code-style', unit: 'file', sourcePrefix: 'instructions/' },
33
+ { kind: 'chat-mode', path: 'chat-modes/review.chatmode.md', expectedId: 'review', unit: 'file', sourcePrefix: 'chat-modes/' },
34
+ { kind: 'agent', path: 'agents/security.agent.md', expectedId: 'security', unit: 'file', sourcePrefix: 'agents/' },
35
+ { kind: 'skill', path: 'skills/standalone-skill/SKILL.md', expectedId: 'standalone-skill', unit: 'directory', sourcePrefix: 'skills/' },
36
+ // A spec-compliant Agent Plugins 1.0.0 plugin: root plugin.json, a nested skill, a root mcp.json and an executable script.
37
+ {
38
+ kind: 'plugin',
39
+ path: 'plugins/aph-e2e-plugin/plugin.json',
40
+ expectedId: 'aph-e2e-plugin',
41
+ unit: 'directory',
42
+ sourcePrefix: 'plugins/',
43
+ plugin: { skills: ['plugin-skill'], mcpServers: [PLUGIN_MCP_SERVER] }
44
+ },
45
+ { kind: 'hook', path: 'hooks/pre-commit.hook.json', expectedId: 'pre-commit', unit: 'file', sourcePrefix: 'hooks/' },
46
+ { kind: 'mcp-server', path: 'mcp-servers/github.mcp.json', expectedId: 'github', unit: 'file', sourcePrefix: 'mcp-servers/' },
47
+ { kind: 'steering', path: '.kiro/steering/api-standards.md', expectedId: 'api-standards', unit: 'file', sourcePrefix: '.kiro/steering/' },
48
+ { kind: 'spec', path: '.kiro/specs/feature/requirements.md', expectedId: 'feature', unit: 'file', sourcePrefix: '.kiro/specs/' },
49
+ { kind: 'command', path: '.claude/commands/deploy.md', expectedId: 'deploy', unit: 'file', sourcePrefix: '.claude/commands/' },
50
+ { kind: 'rule', path: '.cursor/rules/backend.mdc', expectedId: 'backend', unit: 'file', sourcePrefix: '.cursor/rules/' },
51
+ { kind: 'output-style', path: '.claude/output-styles/terse.md', expectedId: 'terse', unit: 'file', sourcePrefix: '.claude/output-styles/' },
52
+ { kind: 'tool', path: '.opencode/tools/database.py', expectedId: 'database', unit: 'file', sourcePrefix: '.opencode/tools/' },
53
+ // The power is a directory unit (POWER.md + steering/); the build drops it to POWER.md today (power-directory-unit gap).
54
+ { kind: 'power', path: 'powers/stripe/POWER.md', expectedId: 'stripe', unit: 'directory', sourcePrefix: 'powers/' },
55
+ { kind: 'knowledge', path: 'knowledge/onboarding.md', expectedId: 'onboarding', unit: 'file', sourcePrefix: 'knowledge/' },
56
+ { kind: 'playbook', path: 'playbooks/bug-fix.md', expectedId: 'bug-fix', unit: 'file', sourcePrefix: 'playbooks/' }
57
+ ];
58
+ /** The mixed-kind bundles. */
59
+ exports.PRIMITIVE_MIXED_BUNDLES = [
60
+ { id: 'aph-e2e-mix-portable', name: 'APH e2e mix portable', kinds: ['prompt', 'instruction', 'agent', 'skill', 'plugin', 'hook'] },
61
+ { id: 'aph-e2e-mix-all-kinds', name: 'APH e2e mix all kinds', kinds: exports.PRIMITIVE_FIXTURE_ITEMS.map((item) => item.kind) }
62
+ ];
63
+ /** The invalid Agent Plugin bundles, each with exactly one fatal manifest issue. */
64
+ exports.PRIMITIVE_INVALID_PLUGIN_BUNDLES = [
65
+ {
66
+ id: 'aph-e2e-bad-plugin-no-schema',
67
+ name: 'APH e2e invalid plugin no schema',
68
+ item: { kind: 'plugin', path: 'plugins/aph-e2e-no-schema/plugin.json', expectedId: 'aph-e2e-no-schema', unit: 'directory', sourcePrefix: 'plugins/' },
69
+ issue: 'missing required field "$schema"; set it to "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"'
70
+ },
71
+ {
72
+ id: 'aph-e2e-bad-plugin-name',
73
+ name: 'APH e2e invalid plugin name',
74
+ item: { kind: 'plugin', path: 'plugins/aph-e2e--bad-name/plugin.json', expectedId: 'aph-e2e--bad-name', unit: 'directory', sourcePrefix: 'plugins/' },
75
+ issue: '"name" must be 1-64 characters of lowercase letters, digits, "." or "-", start and end with a letter or digit, '
76
+ + 'and contain no "--" or ".." (got "aph-e2e--bad-name")'
77
+ },
78
+ {
79
+ id: 'aph-e2e-bad-plugin-author',
80
+ name: 'APH e2e invalid plugin author',
81
+ item: { kind: 'plugin', path: 'plugins/aph-e2e-string-author/plugin.json', expectedId: 'aph-e2e-string-author', unit: 'directory', sourcePrefix: 'plugins/' },
82
+ issue: '"author" must be an object with optional string fields "name", "email", "url" (got a string)'
83
+ },
84
+ {
85
+ // plugin.json is not at the plugin root: the item's directory is taken as the root and its name does not match.
86
+ id: 'aph-e2e-bad-plugin-nested-manifest',
87
+ name: 'APH e2e invalid plugin nested manifest',
88
+ item: {
89
+ kind: 'plugin',
90
+ path: 'plugins/aph-e2e-nested-manifest/meta/plugin.json',
91
+ expectedId: 'aph-e2e-nested-manifest',
92
+ unit: 'directory',
93
+ sourcePrefix: 'plugins/'
94
+ },
95
+ issue: 'plugin name "aph-e2e-nested-manifest" must match its directory "meta" (AI Primitives Hub packaging rule: '
96
+ + 'the plugin root is the directory that contains plugin.json, and it is bundled and installed under that directory name). '
97
+ + 'Rename the directory or the "name" field, and keep plugin.json at the plugin root'
98
+ }
99
+ ];
100
+ /**
101
+ * Bundle (= collection) id of the isolated bundle for a kind.
102
+ * @param kind - Isolated kind.
103
+ * @returns `aph-e2e-only-<kind>`.
104
+ */
105
+ const isolatedBundleId = (kind) => `aph-e2e-only-${kind}`;
106
+ exports.isolatedBundleId = isolatedBundleId;
107
+ /**
108
+ * Collection file of a bundle.
109
+ * @param bundleId - Bundle id.
110
+ * @returns `collections/<id>.collection.yml`.
111
+ */
112
+ const collectionFileFor = (bundleId) => `collections/${bundleId}.collection.yml`;
113
+ exports.collectionFileFor = collectionFileFor;
114
+ const md = (title, body) => `# ${title}\n\n${body.trim()}\n`;
115
+ const json = (value) => `${JSON.stringify(value, null, 2)}\n`;
116
+ /**
117
+ * Text file content from its lines (with a trailing newline).
118
+ * @param lines - Lines of the file.
119
+ * @returns The content.
120
+ */
121
+ const text = (...lines) => `${lines.join('\n')}\n`;
122
+ /** Item source files (path → content). */
123
+ const ITEM_SOURCES = [
124
+ ['prompts/hello-world.prompt.md', text('---', 'description: Greet the user and summarise the open file.', 'agent: agent', '---', '# Hello world prompt', '', 'Say hello and summarise ${file} in three bullet points.')],
125
+ ['instructions/code-style.instructions.md', text('---', 'description: House code style.', 'applyTo: "**/*.ts"', '---', '# Code style instructions', '', '- Prefer named exports.', '- Keep functions under 40 lines.')],
126
+ ['chat-modes/review.chatmode.md', text('---', 'description: Strict reviewer chat mode.', 'tools: [\'codebase\', \'search\']', '---', '# Review chat mode', '', 'You are a strict code reviewer. Ask for tests.')],
127
+ ['agents/security.agent.md', text('---', 'name: security', 'description: Security-focused review agent.', 'tools: [\'codebase\']', '---', '# Security agent', '', 'Look for injection, secrets in code and missing authz checks.')],
128
+ ['skills/standalone-skill/SKILL.md', text('---', 'name: standalone-skill', 'description: Standalone (non-plugin) skill used to compare skill vs plugin handling. Use when asked to run the APH e2e skill.', '---', '# Standalone skill', '', 'Run `scripts/run.sh` and read [the guide](references/guide.md).')],
129
+ ['skills/standalone-skill/scripts/run.sh', text('#!/usr/bin/env sh', '# standalone-skill', 'echo "standalone skill ran"')],
130
+ ['skills/standalone-skill/references/guide.md', md('Standalone skill guide', 'Nothing to see here — fixture reference file.')],
131
+ ['plugins/aph-e2e-plugin/plugin.json', json({
132
+ $schema: agent_plugin_spec_1.AGENT_PLUGIN_MANIFEST_SCHEMA_URI,
133
+ name: 'aph-e2e-plugin',
134
+ version: '1.0.0',
135
+ description: 'Agent Plugin used by the APH e2e diagnostics: a nested skill, an MCP server and a launch script.',
136
+ author: { name: 'AI Primitives Hub e2e' },
137
+ license: 'MIT',
138
+ keywords: ['aph-e2e']
139
+ })],
140
+ ['plugins/aph-e2e-plugin/mcp.json', json({
141
+ $schema: 'https://agent-plugins.org/schemas/1.0.0/mcp.schema.json',
142
+ mcpServers: {
143
+ [PLUGIN_MCP_SERVER]: {
144
+ type: 'stdio',
145
+ command: './scripts/launch.sh',
146
+ args: ['--root', exports.PLUGIN_ROOT_PLACEHOLDER],
147
+ env: { APH_E2E_PLUGIN_ROOT: exports.PLUGIN_ROOT_PLACEHOLDER },
148
+ cwd: exports.PLUGIN_ROOT_PLACEHOLDER
149
+ }
150
+ }
151
+ })],
152
+ ['plugins/aph-e2e-plugin/scripts/launch.sh', text('#!/usr/bin/env sh', '# Launch the APH e2e MCP server from the plugin root.', `exec echo "aph-e2e plugin root: ${exports.PLUGIN_ROOT_PLACEHOLDER}"`)],
153
+ ['plugins/aph-e2e-plugin/skills/plugin-skill/SKILL.md', text('---', 'name: plugin-skill', 'description: Skill shipped inside the APH e2e Agent Plugin. Use when asked to run the APH e2e plugin skill.', '---', '# Plugin skill', '', 'Run the plugin\'s `scripts/launch.sh`.')],
154
+ ['plugins/aph-e2e-no-schema/plugin.json', json({ name: 'aph-e2e-no-schema', description: 'Invalid: no $schema.' })],
155
+ ['plugins/aph-e2e--bad-name/plugin.json', json({ $schema: agent_plugin_spec_1.AGENT_PLUGIN_MANIFEST_SCHEMA_URI, name: 'aph-e2e--bad-name' })],
156
+ ['plugins/aph-e2e-string-author/plugin.json', json({
157
+ $schema: agent_plugin_spec_1.AGENT_PLUGIN_MANIFEST_SCHEMA_URI, name: 'aph-e2e-string-author', author: 'AI Primitives Hub e2e'
158
+ })],
159
+ ['plugins/aph-e2e-nested-manifest/meta/plugin.json', json({ $schema: agent_plugin_spec_1.AGENT_PLUGIN_MANIFEST_SCHEMA_URI, name: 'aph-e2e-nested-manifest' })],
160
+ ['plugins/aph-e2e-nested-manifest/skills/nested-skill/SKILL.md', text('---', 'name: nested-skill', 'description: Skill of an invalid plugin whose plugin.json is not at its root. Use when testing.', '---', '# Nested skill')],
161
+ ['hooks/pre-commit.hook.json', json({
162
+ name: 'pre-commit',
163
+ description: 'Run the formatter before commit.',
164
+ version: 1,
165
+ hooks: { PreToolUse: [{ matcher: 'Bash', hooks: [{ type: 'command', command: 'npx prettier --check .' }] }] }
166
+ })],
167
+ ['mcp-servers/github.mcp.json', json({
168
+ name: 'github',
169
+ description: 'GitHub MCP server item.',
170
+ servers: { github: { type: 'http', url: 'https://api.githubcopilot.com/mcp/' } }
171
+ })],
172
+ ['.kiro/steering/api-standards.md', text('---', 'inclusion: always', '---', '# API standards steering', '', 'All endpoints return RFC 7807 problem details on error.')],
173
+ ['.kiro/specs/feature/requirements.md', md('Feature requirements (spec)', '## Requirement 1\n\nWHEN a user uploads a bundle THEN the system SHALL validate it.')],
174
+ ['.claude/commands/deploy.md', text('---', 'description: Deploy the current branch.', '---', '# Deploy command', '', 'Run the deploy pipeline for $ARGUMENTS.')],
175
+ ['.cursor/rules/backend.mdc', text('---', 'description: Backend rules', 'globs: ["src/server/**"]', 'alwaysApply: false', '---', '# Backend rule', '', 'Use the repository pattern for data access.')],
176
+ ['.claude/output-styles/terse.md', text('---', 'name: terse', 'description: Terse answers.', '---', '# Terse output style', '', 'Answer in at most three sentences.')],
177
+ ['.opencode/tools/database.py', text('# database tool (opencode)', '"""Query the fixture database."""', '', 'def run(query: str) -> str:', ' return f"would run: {query}"')],
178
+ ['powers/stripe/POWER.md', text('---', 'name: stripe', 'displayName: Stripe power', 'description: Stripe payments power.', 'keywords: [payments]', '---', '# Stripe power', '', 'Use the Stripe MCP server for payments.')],
179
+ ['powers/stripe/steering/payments.md', md('Stripe power steering', 'Always use idempotency keys.')],
180
+ ['knowledge/onboarding.md', md('Onboarding knowledge', 'The fixture repo has one service and one database.')],
181
+ ['playbooks/bug-fix.md', md('Bug-fix playbook', '1. Reproduce. 2. Write a failing test. 3. Fix. 4. Verify.')]
182
+ ];
183
+ /** Item source files whose intended mode is executable. */
184
+ const EXECUTABLE_FILES = new Set([
185
+ 'plugins/aph-e2e-plugin/scripts/launch.sh',
186
+ 'skills/standalone-skill/scripts/run.sh'
187
+ ]);
188
+ /** Repository root files that make `bundle build` take the governed path. */
189
+ const ROOT_FILES = [
190
+ ['LICENSE', 'MIT License\n\nCopyright (c) 2026 AI Primitives Hub — aph-e2e fixture repository root\n'],
191
+ ['README.md', md('APH e2e fixture repository', 'Generated by `ai-primitives-hub doctor diagnostics --primitives`. Do not edit by hand.')],
192
+ ['package.json', json({
193
+ name: 'aph-e2e-fixture',
194
+ private: true,
195
+ version: '1.0.0',
196
+ repository: { type: 'git', url: exports.PRIMITIVE_FIXTURE_REPOSITORY_URL }
197
+ })]
198
+ ];
199
+ /**
200
+ * Items of a mixed bundle.
201
+ * @param bundle - Mixed bundle declaration.
202
+ * @returns The fixture item of each listed kind, in `PRIMITIVE_FIXTURE_ITEMS` order.
203
+ */
204
+ const mixedBundleItems = (bundle) => exports.PRIMITIVE_FIXTURE_ITEMS.filter((item) => bundle.kinds.includes(item.kind));
205
+ exports.mixedBundleItems = mixedBundleItems;
206
+ /**
207
+ * Every fixture collection, in catalogue order: the isolated bundles, the
208
+ * mixed bundles, then the invalid plugin bundles.
209
+ * @returns Collections.
210
+ */
211
+ const primitiveFixtureCollections = () => [
212
+ ...exports.PRIMITIVE_FIXTURE_ITEMS.map((item) => ({ id: (0, exports.isolatedBundleId)(item.kind), name: `APH e2e only ${item.kind}`, items: [item] })),
213
+ ...exports.PRIMITIVE_MIXED_BUNDLES.map((bundle) => ({ id: bundle.id, name: bundle.name, items: (0, exports.mixedBundleItems)(bundle) })),
214
+ ...exports.PRIMITIVE_INVALID_PLUGIN_BUNDLES.map((bundle) => ({ id: bundle.id, name: bundle.name, items: [bundle.item] }))
215
+ ];
216
+ exports.primitiveFixtureCollections = primitiveFixtureCollections;
217
+ /**
218
+ * Render a collection YAML, with the key order
219
+ * `id, name, description, version, author, tags, items`.
220
+ * @param collection - Collection declaration.
221
+ * @returns Collection YAML text.
222
+ */
223
+ const renderCollection = (collection) => (0, js_yaml_1.dump)({
224
+ id: collection.id,
225
+ name: collection.name,
226
+ description: `${collection.name} (APH plugin-support e2e fixture).`,
227
+ version: '1.0.0',
228
+ author: 'AI Primitives Hub e2e',
229
+ tags: ['aph-e2e'],
230
+ items: collection.items.map((item) => ({ path: item.path, kind: item.kind }))
231
+ }, { lineWidth: 200 });
232
+ /**
233
+ * Repository-relative paths of every item source file in the fixture, sorted.
234
+ * @returns Item source paths.
235
+ */
236
+ const fixtureItemSourcePaths = () => ITEM_SOURCES.map(([p]) => p).toSorted();
237
+ exports.fixtureItemSourcePaths = fixtureItemSourcePaths;
238
+ /**
239
+ * Item source files whose intended mode is executable, sorted.
240
+ * @returns Executable item source paths.
241
+ */
242
+ const fixtureExecutablePaths = () => [...EXECUTABLE_FILES].toSorted();
243
+ exports.fixtureExecutablePaths = fixtureExecutablePaths;
244
+ /**
245
+ * Build the whole fixture repository, including `collections/*.yml`.
246
+ * @returns Repository-relative path → file. A fresh map on each call.
247
+ */
248
+ function buildPrimitiveFixture() {
249
+ const encoder = new TextEncoder();
250
+ const files = new Map();
251
+ const add = (filePath, content) => {
252
+ files.set(filePath, { bytes: encoder.encode(content), mode: EXECUTABLE_FILES.has(filePath) ? 0o755 : 0o644 });
253
+ };
254
+ for (const [filePath, content] of ROOT_FILES) {
255
+ add(filePath, content);
256
+ }
257
+ for (const [filePath, content] of ITEM_SOURCES) {
258
+ add(filePath, content);
259
+ }
260
+ for (const collection of (0, exports.primitiveFixtureCollections)()) {
261
+ add((0, exports.collectionFileFor)(collection.id), renderCollection(collection));
262
+ }
263
+ return files;
264
+ }
265
+ //# sourceMappingURL=fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixture.js","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/fixture.ts"],"names":[],"mappings":";;;AAwWA,sDAgBC;AAxXD;;;;;;;;;;;;;;;GAeG;AACH,qCAEiB;AACjB,sEAEwC;AAWxC,4EAA4E;AAC/D,QAAA,gCAAgC,GAAG,gDAAgD,CAAC;AAyBjG,yEAAyE;AAC5D,QAAA,uBAAuB,GAAG,gBAAgB,CAAC;AAExD,qDAAqD;AACrD,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAEpC,wGAAwG;AAC3F,QAAA,uBAAuB,GAAoC;IACtE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,+BAA+B,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE;IAC5H,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,yCAAyC,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE;IAC/I,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,+BAA+B,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE;IAC7H,EAAE,IAAI,EAAE,OAAO,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E,CAAC;QAC/C,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,KAAK,MAAM,UAAU,IAAI,IAAA,mCAA2B,GAAE,EAAE,CAAC;QACvD,GAAG,CAAC,IAAA,yBAAiB,EAAC,UAAU,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;IACtE,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Primitive diagnostics case model (`doctor diagnostics --primitives`).
3
+ * @module domain/diagnostics/primitives
4
+ */
5
+ export * from './types';
6
+ export * from './fixture';
7
+ export * from './catalogue';
8
+ export * from './support-matrix';
9
+ export * from './placements';
10
+ export * from './sandbox';
11
+ export * from './manifest-view';
12
+ export * from './known-gaps';
13
+ export * from './planner';
14
+ export * from './plugin-projection';
15
+ export * from './evaluators';
16
+ export * from './classifier';
17
+ export * from './report';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Primitive diagnostics case model (`doctor diagnostics --primitives`).
19
+ * @module domain/diagnostics/primitives
20
+ */
21
+ __exportStar(require("./types"), exports);
22
+ __exportStar(require("./fixture"), exports);
23
+ __exportStar(require("./catalogue"), exports);
24
+ __exportStar(require("./support-matrix"), exports);
25
+ __exportStar(require("./placements"), exports);
26
+ __exportStar(require("./sandbox"), exports);
27
+ __exportStar(require("./manifest-view"), exports);
28
+ __exportStar(require("./known-gaps"), exports);
29
+ __exportStar(require("./planner"), exports);
30
+ __exportStar(require("./plugin-projection"), exports);
31
+ __exportStar(require("./evaluators"), exports);
32
+ __exportStar(require("./classifier"), exports);
33
+ __exportStar(require("./report"), exports);
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,mDAAiC;AACjC,+CAA6B;AAC7B,4CAA0B;AAC1B,kDAAgC;AAChC,+CAA6B;AAC7B,4CAA0B;AAC1B,sDAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Domain layer — known gaps of the primitive diagnostics, as data.
3
+ *
4
+ * Each entry declares a failure the product has today, so the default run
5
+ * on `main` reports `known-gap` instead of `fail`. The classifier absorbs
6
+ * a failing check only when the invariant, the selectors and the exact
7
+ * `observed` value all match, so a known gap never masks a different
8
+ * failure mode.
9
+ *
10
+ * A PR that fixes a gap deletes its entry (and, where the fix changes the
11
+ * contract, the matching matrix/placement/expected-id data). The doctor
12
+ * flags a stale entry: one that matches executed checks but absorbs none
13
+ * is reported under `unusedKnownGaps` (a warning; it does not fail the run).
14
+ * @module domain/diagnostics/primitives/known-gaps
15
+ */
16
+ import type { TargetType } from '../../install/target';
17
+ import type { PrimitiveKind } from '../../primitive/types';
18
+ import type { DiagnosticScope, InvariantId, JsonValue } from './types';
19
+ /** One known gap. */
20
+ export interface KnownGap {
21
+ /** Unique, stable key: `<id>/<invariant>/<selector>`, e.g. 'manifest-id-file-stem/I2/prompt'. */
22
+ key: string;
23
+ /** Descriptive gap id shared by the entries of one product defect, e.g. 'manifest-id-file-stem'. */
24
+ id: string;
25
+ invariant: InvariantId;
26
+ /**
27
+ * Absent selector = all. A selector on a dimension the subject lacks never matches (bundle subjects have no target/scope).
28
+ * `bundles` lists bundle ids; `kinds` matches a per-item check by its item's kind.
29
+ */
30
+ match: {
31
+ kinds?: PrimitiveKind[];
32
+ bundles?: string[];
33
+ targets?: TargetType[];
34
+ scopes?: DiagnosticScope[];
35
+ };
36
+ /** Must deep-equal the check's `observed` (arrays compared sorted). */
37
+ observed: JsonValue;
38
+ summary: string;
39
+ /** GitHub issue (in this repository) that tracks the fix, when one exists. */
40
+ issue?: number;
41
+ }
42
+ /**
43
+ * Known gaps on current `main`. Chat modes on copilot-cli are not listed:
44
+ * #526 places them through the `agents/` route. A rejection absorbed by
45
+ * several entries lists every matching gap id (e.g. the all-kinds bundle on
46
+ * kiro: `mcp-server-rejected`, `kiro-hook-rejected`, `kiro-plugin-rejected`
47
+ * and `all-or-nothing-install`).
48
+ */
49
+ export declare const PRIMITIVE_KNOWN_GAPS: readonly KnownGap[];
50
+ //# sourceMappingURL=known-gaps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"known-gaps.d.ts","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/known-gaps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EACV,UAAU,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACV,MAAM,SAAS,CAAC;AAEjB,qBAAqB;AACrB,MAAM,WAAW,QAAQ;IACvB,iGAAiG;IACjG,GAAG,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;IACvB;;;OAGG;IACH,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;QAAC,MAAM,CAAC,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC;IAC3G,uEAAuE;IACvE,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqBD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,QAAQ,EAuHnD,CAAC"}
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PRIMITIVE_KNOWN_GAPS = void 0;
4
+ const REJECTED = { status: 'rejected', errorCode: 'BUNDLE.UNSUPPORTED_CONTENT' };
5
+ /**
6
+ * One `manifest-id-file-stem` entry: `bundle build` derives the manifest
7
+ * id from the item's file stem (keeping a `.prompt`-style type suffix, or
8
+ * `requirements` for a spec) instead of the expected id.
9
+ * @param kind - Item kind.
10
+ * @param id - Manifest id the build produces today.
11
+ * @returns The known gap.
12
+ */
13
+ const manifestIdFileStem = (kind, id) => ({
14
+ key: `manifest-id-file-stem/I2/${kind}`,
15
+ id: 'manifest-id-file-stem',
16
+ invariant: 'I2',
17
+ match: { kinds: [kind] },
18
+ observed: { id, kind, occurrences: 1 },
19
+ summary: `${kind} manifest id is the file stem "${id}" instead of the expected id`
20
+ });
21
+ /**
22
+ * Known gaps on current `main`. Chat modes on copilot-cli are not listed:
23
+ * #526 places them through the `agents/` route. A rejection absorbed by
24
+ * several entries lists every matching gap id (e.g. the all-kinds bundle on
25
+ * kiro: `mcp-server-rejected`, `kiro-hook-rejected`, `kiro-plugin-rejected`
26
+ * and `all-or-nothing-install`).
27
+ */
28
+ exports.PRIMITIVE_KNOWN_GAPS = [
29
+ {
30
+ key: 'mcp-server-rejected/I4/mcp-server',
31
+ id: 'mcp-server-rejected',
32
+ invariant: 'I4',
33
+ match: { kinds: ['mcp-server'] },
34
+ observed: REJECTED,
35
+ summary: 'mcp-server items are rejected by every target'
36
+ },
37
+ {
38
+ key: 'kiro-hook-rejected/I4/hook@kiro',
39
+ id: 'kiro-hook-rejected',
40
+ invariant: 'I4',
41
+ match: { kinds: ['hook'], targets: ['kiro'] },
42
+ observed: REJECTED,
43
+ summary: 'kiro rejects hook items (kiro-cli accepts them)',
44
+ issue: 549
45
+ },
46
+ {
47
+ key: 'mcp-server-rejected/I9/mcp-server',
48
+ id: 'mcp-server-rejected',
49
+ invariant: 'I9',
50
+ match: { kinds: ['mcp-server'] },
51
+ observed: { rejected: true },
52
+ summary: 'install lists mcp-server items as unsupported content on every target'
53
+ },
54
+ {
55
+ key: 'kiro-hook-rejected/I9/hook@kiro',
56
+ id: 'kiro-hook-rejected',
57
+ invariant: 'I9',
58
+ match: { kinds: ['hook'], targets: ['kiro'] },
59
+ observed: { rejected: true },
60
+ summary: 'kiro lists hook items as unsupported content',
61
+ issue: 549
62
+ },
63
+ {
64
+ key: 'kiro-plugin-rejected/I4/plugin@kiro',
65
+ id: 'kiro-plugin-rejected',
66
+ invariant: 'I4',
67
+ match: { kinds: ['plugin'], targets: ['kiro'] },
68
+ observed: REJECTED,
69
+ summary: 'kiro rejects plugin items: no kiro route for Agent Plugins',
70
+ issue: 549
71
+ },
72
+ {
73
+ key: 'kiro-plugin-rejected/I9/plugin@kiro',
74
+ id: 'kiro-plugin-rejected',
75
+ invariant: 'I9',
76
+ match: { kinds: ['plugin'], targets: ['kiro'] },
77
+ observed: { rejected: true },
78
+ summary: 'kiro lists plugin items as unsupported content',
79
+ issue: 549
80
+ },
81
+ {
82
+ key: 'all-or-nothing-install/I4/aph-e2e-mix-all-kinds',
83
+ id: 'all-or-nothing-install',
84
+ invariant: 'I4',
85
+ match: { bundles: ['aph-e2e-mix-all-kinds'] },
86
+ observed: REJECTED,
87
+ summary: 'the default all-or-nothing install rejects the whole bundle when one item kind is unsupported (install --skip-unsupported installs the supported items)'
88
+ },
89
+ {
90
+ key: 'copilot-cli-repository-scope/I8/copilot-cli@repository',
91
+ id: 'copilot-cli-repository-scope',
92
+ invariant: 'I8',
93
+ match: { targets: ['copilot-cli'], scopes: ['repository'] },
94
+ observed: { effectiveScope: 'user' },
95
+ summary: 'target add rewrites copilot-cli repository scope to user'
96
+ },
97
+ manifestIdFileStem('prompt', 'hello-world.prompt'),
98
+ manifestIdFileStem('instruction', 'code-style.instructions'),
99
+ manifestIdFileStem('chat-mode', 'review.chatmode'),
100
+ manifestIdFileStem('agent', 'security.agent'),
101
+ manifestIdFileStem('hook', 'pre-commit.hook'),
102
+ manifestIdFileStem('mcp-server', 'github.mcp'),
103
+ manifestIdFileStem('spec', 'requirements'),
104
+ {
105
+ key: 'power-directory-unit/I1/power',
106
+ id: 'power-directory-unit',
107
+ invariant: 'I1',
108
+ match: { kinds: ['power'] },
109
+ observed: { missingArchivePaths: ['powers/stripe/steering/payments.md'] },
110
+ summary: 'bundle build drops the power directory unit down to POWER.md'
111
+ },
112
+ {
113
+ key: 'power-directory-unit/I2/power',
114
+ id: 'power-directory-unit',
115
+ invariant: 'I2',
116
+ match: { kinds: ['power'] },
117
+ observed: { id: 'POWER', kind: 'power', occurrences: 1 },
118
+ summary: 'power manifest id is the file stem "POWER" instead of the directory name'
119
+ },
120
+ {
121
+ key: 'plugin-skill-projection/I11/plugin',
122
+ id: 'plugin-skill-projection',
123
+ invariant: 'I11',
124
+ match: { kinds: ['plugin'] },
125
+ observed: { unprojected: ['plugin-skill'] },
126
+ summary: 'install copies the plugin directory but does not project its skills into the skills route',
127
+ issue: 549
128
+ },
129
+ {
130
+ key: 'plugin-mcp-projection/I12/plugin',
131
+ id: 'plugin-mcp-projection',
132
+ invariant: 'I12',
133
+ match: { kinds: ['plugin'] },
134
+ observed: { unprojected: ['aph-e2e'] },
135
+ summary: 'install does not merge the plugin MCP servers into a target config file',
136
+ issue: 549
137
+ },
138
+ {
139
+ key: 'plugin-root-unresolved/I14/plugin',
140
+ id: 'plugin-root-unresolved',
141
+ invariant: 'I14',
142
+ match: { kinds: ['plugin'] },
143
+ observed: { unresolved: ['aph-e2e'] },
144
+ summary: 'install leaves ${PLUGIN_ROOT} unresolved in the plugin MCP servers',
145
+ issue: 549
146
+ }
147
+ ];
148
+ //# sourceMappingURL=known-gaps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"known-gaps.js","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/known-gaps.ts"],"names":[],"mappings":";;;AA8CA,MAAM,QAAQ,GAAc,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,4BAA4B,EAAE,CAAC;AAE5F;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,CAAC,IAAmB,EAAE,EAAU,EAAY,EAAE,CAAC,CAAC;IACzE,GAAG,EAAE,4BAA4B,IAAI,EAAE;IACvC,EAAE,EAAE,uBAAuB;IAC3B,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE;IACxB,QAAQ,EAAE,EAAE,EAAE,EAAE,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AC,EAAE;QACrC,OAAO,EAAE,oEAAoE;QAC7E,KAAK,EAAE,GAAG;KACX;CACF,CAAC"}
@@ -0,0 +1,28 @@
1
+ /** One `items[]` entry; a field is null when absent or not a string. */
2
+ export interface ManifestViewItem {
3
+ path: string | null;
4
+ kind: string | null;
5
+ id: string | null;
6
+ }
7
+ /** One `files[]` entry; a field is null when absent or of the wrong type. */
8
+ export interface ManifestViewFile {
9
+ role: string | null;
10
+ size: number | null;
11
+ sha256: string | null;
12
+ }
13
+ /** What the evaluators read from a deployment manifest. */
14
+ export interface ManifestView {
15
+ formatVersion: unknown;
16
+ id: unknown;
17
+ version: unknown;
18
+ items: readonly ManifestViewItem[];
19
+ /** By `files[].path`; entries without a string path are skipped. */
20
+ files: ReadonlyMap<string, ManifestViewFile>;
21
+ }
22
+ /**
23
+ * Read a deployment manifest tolerantly.
24
+ * @param bytes - Raw `deployment-manifest.yml` bytes.
25
+ * @returns The view, or undefined unless the YAML is a mapping. Never throws.
26
+ */
27
+ export declare function readManifestView(bytes: Uint8Array): ManifestView | undefined;
28
+ //# sourceMappingURL=manifest-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest-view.d.ts","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/manifest-view.ts"],"names":[],"mappings":"AAYA,wEAAwE;AACxE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED,6EAA6E;AAC7E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,2DAA2D;AAC3D,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACnC,oEAAoE;IACpE,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC9C;AAOD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,GAAG,SAAS,CA4B5E"}