@ai-primitives-hub/core 0.2.0 → 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,40 @@
1
+ import type { PrimitiveKind } from '../../primitive/types';
2
+ import { type PluginComponents } from './fixture';
3
+ /** One collection item of a diagnostic bundle. */
4
+ export interface FixtureItem {
5
+ kind: PrimitiveKind;
6
+ /** Collection item path (entry point). */
7
+ path: string;
8
+ expectedId: string;
9
+ unit: 'file' | 'directory';
10
+ /** Every source file of the item; for a directory unit, the whole tree under dirname(path). Sorted. */
11
+ files: readonly string[];
12
+ /** Files of the item whose intended mode is executable. Sorted. */
13
+ executable: readonly string[];
14
+ /** Source-side prefix the placement oracle strips (e.g. 'prompts/', '.kiro/specs/'). */
15
+ sourcePrefix: string;
16
+ /** Plugin items only: the components the plugin ships. */
17
+ plugin?: PluginComponents;
18
+ }
19
+ /** One diagnostic bundle: a collection of the fixture repository. */
20
+ export interface DiagnosticBundle {
21
+ /** The collection id: `aph-e2e-only-<kind>`, `aph-e2e-mix-…` or `aph-e2e-bad-plugin-…`. */
22
+ id: string;
23
+ /** `collections/<id>.collection.yml`. */
24
+ collectionFile: string;
25
+ version: '1.0.0';
26
+ /** In collection order. */
27
+ items: readonly FixtureItem[];
28
+ /**
29
+ * Present on an invalid bundle: `collection validate` and `bundle build`
30
+ * must both reject it with this error code (build) and message (both),
31
+ * and write no archive. Such a bundle is never installed.
32
+ */
33
+ rejection?: {
34
+ errorCode: string;
35
+ message: string;
36
+ };
37
+ }
38
+ /** Every bundle, in report order: isolated (`PRIMITIVE_KINDS` order), mixed, invalid. */
39
+ export declare const PRIMITIVE_DIAGNOSTIC_BUNDLES: readonly DiagnosticBundle[];
40
+ //# sourceMappingURL=catalogue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/catalogue.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,gBAAgB,EAKtB,MAAM,WAAW,CAAC;AAKnB,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,uGAAuG;IACvG,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,mEAAmE;IACnE,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,wFAAwF;IACxF,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,2FAA2F;IAC3F,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,2BAA2B;IAC3B,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACpD;AAaD,yFAAyF;AACzF,eAAO,MAAM,4BAA4B,EAAE,SAAS,gBAAgB,EAkBhE,CAAC"}
@@ -0,0 +1,78 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.PRIMITIVE_DIAGNOSTIC_BUNDLES = void 0;
37
+ /**
38
+ * Domain layer — the primitive diagnostics catalogue.
39
+ *
40
+ * Derived from the fixture declarations, in report order: one isolated
41
+ * single-item bundle per kind (`PRIMITIVE_KINDS` order), the mixed-kind
42
+ * bundles, then the invalid Agent Plugin bundles that `collection validate`
43
+ * and `bundle build` must reject.
44
+ * @module domain/diagnostics/primitives/catalogue
45
+ */
46
+ const path = __importStar(require("node:path"));
47
+ const fixture_1 = require("./fixture");
48
+ /** Error code `bundle build` reports for an invalid Agent Plugin item. */
49
+ const INVALID_PLUGIN_ERROR_CODE = 'PLUGIN.INVALID_MANIFEST';
50
+ const toFixtureItem = (declared, sources, executable) => {
51
+ const root = `${path.posix.dirname(declared.path)}/`;
52
+ const files = declared.unit === 'directory'
53
+ ? sources.filter((source) => source.startsWith(root))
54
+ : [declared.path];
55
+ return { ...declared, files, executable: files.filter((file) => executable.includes(file)) };
56
+ };
57
+ const bundleOf = (id, items) => ({ id, collectionFile: (0, fixture_1.collectionFileFor)(id), version: '1.0.0', items });
58
+ /** Every bundle, in report order: isolated (`PRIMITIVE_KINDS` order), mixed, invalid. */
59
+ exports.PRIMITIVE_DIAGNOSTIC_BUNDLES = (() => {
60
+ const sources = (0, fixture_1.fixtureItemSourcePaths)();
61
+ const executable = (0, fixture_1.fixtureExecutablePaths)();
62
+ const item = (declared) => toFixtureItem(declared, sources, executable);
63
+ return [
64
+ ...fixture_1.PRIMITIVE_FIXTURE_ITEMS.map((declared) => bundleOf((0, fixture_1.isolatedBundleId)(declared.kind), [item(declared)])),
65
+ ...fixture_1.PRIMITIVE_MIXED_BUNDLES.map((mixed) => bundleOf(mixed.id, (0, fixture_1.mixedBundleItems)(mixed).map((declared) => item(declared)))),
66
+ ...fixture_1.PRIMITIVE_INVALID_PLUGIN_BUNDLES.map((invalid) => {
67
+ const bundle = bundleOf(invalid.id, [item(invalid.item)]);
68
+ return {
69
+ ...bundle,
70
+ rejection: {
71
+ errorCode: INVALID_PLUGIN_ERROR_CODE,
72
+ message: `${bundle.collectionFile}: items[0] plugin ${invalid.item.path}: ${invalid.issue}`
73
+ }
74
+ };
75
+ })
76
+ ];
77
+ })();
78
+ //# sourceMappingURL=catalogue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogue.js","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/catalogue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;GAQG;AACH,gDAAkC;AAIlC,uCAWmB;AAEnB,0EAA0E;AAC1E,MAAM,yBAAyB,GAAG,yBAAyB,CAAC;AAoC5D,MAAM,aAAa,GAAG,CAAC,QAA8B,EAAE,OAA0B,EAAE,UAA6B,EAAe,EAAE;IAC/H,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;IACrD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,KAAK,WAAW;QACzC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpB,OAAO,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;AAC/F,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAE,KAA6B,EAAoB,EAAE,CAC/E,CAAC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAA,2BAAiB,EAAC,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;AAE3E,yFAAyF;AAC5E,QAAA,4B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le or case outcome, and finds the known gaps a run no longer needs.
6
+ * A failing check becomes `known-gap` only when an entry matches its
7
+ * invariant, its selectors and its exact `observed` value (arrays compared
8
+ * sorted), so a known gap never masks a different failure mode. `HARNESS`
9
+ * checks and not-evaluated cascades are never absorbed.
10
+ * @module domain/diagnostics/primitives/classifier
11
+ */
12
+ import type { TargetType } from '../../install/target';
13
+ import type { PrimitiveKind } from '../../primitive/types';
14
+ import type { DiagnosticBundle } from './catalogue';
15
+ import { type KnownGap } from './known-gaps';
16
+ import type { PlannedCase } from './planner';
17
+ import { type DiagnosticCheck, type DiagnosticScope, type RollupOutcome } from './types';
18
+ /** What a check is about: a bundle (no target/scope) or a case. */
19
+ export interface GapSubject {
20
+ /** For per-item checks, the item's kind. */
21
+ kinds: readonly PrimitiveKind[];
22
+ /** Bundle id of the bundle or case. */
23
+ bundle?: string;
24
+ target?: TargetType;
25
+ scope?: DiagnosticScope;
26
+ }
27
+ /** A classified check, its subject and the keys of the gaps that absorbed it. */
28
+ export interface ClassifiedCheck {
29
+ check: DiagnosticCheck;
30
+ absorbedBy: string[];
31
+ subject: GapSubject;
32
+ }
33
+ /** Classified checks of one bundle or case. */
34
+ export interface ClassifiedChecks {
35
+ checks: DiagnosticCheck[];
36
+ outcome: RollupOutcome;
37
+ /** Distinct gap ids of the absorbed checks, sorted. */
38
+ gapIds: string[];
39
+ /** One record per check, for the known-gap tallies and the unused-gap rule. */
40
+ records: ClassifiedCheck[];
41
+ }
42
+ /**
43
+ * Classify one raw check against the known gaps.
44
+ * @param raw - Check from the evaluators (or the harness).
45
+ * @param subject - What the check is about.
46
+ * @param gaps - Known gaps.
47
+ * @returns The check (`known-gap` with every matching id, when absorbed) and the absorbing keys.
48
+ */
49
+ export declare function classifyCheck(raw: DiagnosticCheck, subject: GapSubject, gaps?: readonly KnownGap[]): ClassifiedCheck;
50
+ /**
51
+ * Roll checks up: `fail` > `known-gap` > `pass`, ignoring `not-applicable`.
52
+ * @param checks - Classified checks.
53
+ * @returns The outcome; `pass` for no checks.
54
+ */
55
+ export declare function rollup(checks: readonly DiagnosticCheck[]): RollupOutcome;
56
+ /**
57
+ * Classify the checks of one case. A per-item check's subject kind is its item's kind.
58
+ * @param planned - Planned case (the subject: its bundle, kinds, target and requested scope).
59
+ * @param checks - Raw case checks.
60
+ * @param gaps - Known gaps.
61
+ * @returns Classified checks, outcome and gap ids.
62
+ */
63
+ export declare function classifyCase(planned: PlannedCase, checks: readonly DiagnosticCheck[], gaps?: readonly KnownGap[]): ClassifiedChecks;
64
+ /**
65
+ * Classify the checks of one bundle. A per-item check's subject kind is its item's kind.
66
+ * @param bundle - Catalogue bundle.
67
+ * @param checks - Raw bundle checks.
68
+ * @param gaps - Known gaps.
69
+ * @returns Classified checks, outcome and gap ids.
70
+ */
71
+ export declare function classifyBundle(bundle: DiagnosticBundle, checks: readonly DiagnosticCheck[], gaps?: readonly KnownGap[]): ClassifiedChecks;
72
+ /**
73
+ * Known gaps a run no longer needs: entries that absorbed nothing
74
+ * although at least one executed check of their invariant matched their
75
+ * selectors. Entries outside the run's filters are never unused.
76
+ * @param records - Classified check records of the whole run.
77
+ * @param gaps - Known gaps.
78
+ * @returns Unused entries, in `gaps` order.
79
+ */
80
+ export declare function findUnusedKnownGaps(records: readonly ClassifiedCheck[], gaps?: readonly KnownGap[]): KnownGap[];
81
+ //# sourceMappingURL=classifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classifier.d.ts","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EACV,UAAU,EACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,WAAW,E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AG,gBAAgB,CAI/J;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,EAAE,IAAI,GAAE,SAAS,QAAQ,EAAyB,GAAG,QAAQ,EAAE,CAMrI"}
@@ -0,0 +1,138 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.classifyCheck = classifyCheck;
4
+ exports.rollup = rollup;
5
+ exports.classifyCase = classifyCase;
6
+ exports.classifyBundle = classifyBundle;
7
+ exports.findUnusedKnownGaps = findUnusedKnownGaps;
8
+ const known_gaps_1 = require("./known-gaps");
9
+ const types_1 = require("./types");
10
+ /**
11
+ * Canonical JSON for deep equality: object keys sorted, array elements sorted.
12
+ * @param value - Any JSON-like value.
13
+ * @returns A string equal for deep-equal values.
14
+ */
15
+ const canonical = (value) => {
16
+ if (Array.isArray(value)) {
17
+ return `[${value.map((entry) => canonical(entry)).toSorted().join(',')}]`;
18
+ }
19
+ if (value !== null && typeof value === 'object') {
20
+ const entries = Object.entries(value)
21
+ .filter(([, v]) => v !== undefined)
22
+ .toSorted(([a], [b]) => (a < b ? -1 : (a > b ? 1 : 0)));
23
+ return `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${canonical(v)}`).join(',')}}`;
24
+ }
25
+ return JSON.stringify(value) ?? 'undefined';
26
+ };
27
+ /**
28
+ * Whether a gap's selectors match a subject. An absent selector matches all;
29
+ * a selector on a dimension the subject lacks never matches; the kinds
30
+ * selector matches when any subject kind is listed.
31
+ * @param match - Gap selectors.
32
+ * @param subject - Check subject.
33
+ * @returns True on a match.
34
+ */
35
+ const selectorsMatch = (match, subject) => (match.kinds === undefined || subject.kinds.some((kind) => match.kinds.includes(kind)))
36
+ && (match.bundles === undefined || (subject.bundle !== undefined && match.bundles.includes(subject.bundle)))
37
+ && (match.targets === undefined || (subject.target !== undefined && match.targets.includes(subject.target)))
38
+ && (match.scopes === undefined || (subject.scope !== undefined && match.scopes.includes(subject.scope)));
39
+ /**
40
+ * Whether a check was really executed: it ran to a verdict on the product.
41
+ * @param check - A check.
42
+ * @returns False for not-applicable, HARNESS and not-evaluated checks.
43
+ */
44
+ const isExecuted = (check) => check.outcome !== 'not-applicable' && check.invariant !== 'HARNESS' && !(0, types_1.isNotEvaluated)(check.observed);
45
+ /**
46
+ * Classify one raw check against the known gaps.
47
+ * @param raw - Check from the evaluators (or the harness).
48
+ * @param subject - What the check is about.
49
+ * @param gaps - Known gaps.
50
+ * @returns The check (`known-gap` with every matching id, when absorbed) and the absorbing keys.
51
+ */
52
+ function classifyCheck(raw, subject, gaps = known_gaps_1.PRIMITIVE_KNOWN_GAPS) {
53
+ if (raw.outcome !== 'fail' || !isExecuted(raw)) {
54
+ return { check: raw, absorbedBy: [], subject };
55
+ }
56
+ const observed = canonical(raw.observed);
57
+ const matching = gaps.filter((gap) => gap.invariant === raw.invariant && selectorsMatch(gap.match, subject) && canonical(gap.observed) === observed);
58
+ if (matching.length === 0) {
59
+ return { check: raw, absorbedBy: [], subject };
60
+ }
61
+ return {
62
+ check: { ...raw, outcome: 'known-gap', gapIds: [...new Set(matching.map((gap) => gap.id))] },
63
+ absorbedBy: matching.map((gap) => gap.key),
64
+ subject
65
+ };
66
+ }
67
+ /**
68
+ * Roll checks up: `fail` > `known-gap` > `pass`, ignoring `not-applicable`.
69
+ * @param checks - Classified checks.
70
+ * @returns The outcome; `pass` for no checks.
71
+ */
72
+ function rollup(checks) {
73
+ if (checks.some((check) => check.outcome === 'fail')) {
74
+ return 'fail';
75
+ }
76
+ return checks.some((check) => check.outcome === 'known-gap') ? 'known-gap' : 'pass';
77
+ }
78
+ const collect = (records) => {
79
+ const checks = records.map((record) => record.check);
80
+ return {
81
+ checks,
82
+ outcome: rollup(checks),
83
+ gapIds: [...new Set(checks.flatMap((check) => check.gapIds ?? []))].toSorted(),
84
+ records
85
+ };
86
+ };
87
+ /**
88
+ * Kinds a check is about: its item's kind for a per-item check, else every kind.
89
+ * @param check - A check.
90
+ * @param items - Items of the bundle or case.
91
+ * @param kinds - Every kind of the bundle or case.
92
+ * @returns Subject kinds.
93
+ */
94
+ const subjectKinds = (check, items, kinds) => {
95
+ const itemKind = check.item === undefined ? undefined : items.find((item) => item.path === check.item)?.kind;
96
+ return itemKind === undefined ? kinds : [itemKind];
97
+ };
98
+ /**
99
+ * Classify the checks of one case. A per-item check's subject kind is its item's kind.
100
+ * @param planned - Planned case (the subject: its bundle, kinds, target and requested scope).
101
+ * @param checks - Raw case checks.
102
+ * @param gaps - Known gaps.
103
+ * @returns Classified checks, outcome and gap ids.
104
+ */
105
+ function classifyCase(planned, checks, gaps = known_gaps_1.PRIMITIVE_KNOWN_GAPS) {
106
+ return collect(checks.map((check) => classifyCheck(check, {
107
+ kinds: subjectKinds(check, planned.items, planned.kinds),
108
+ bundle: planned.bundle,
109
+ target: planned.target,
110
+ scope: planned.scope
111
+ }, gaps)));
112
+ }
113
+ /**
114
+ * Classify the checks of one bundle. A per-item check's subject kind is its item's kind.
115
+ * @param bundle - Catalogue bundle.
116
+ * @param checks - Raw bundle checks.
117
+ * @param gaps - Known gaps.
118
+ * @returns Classified checks, outcome and gap ids.
119
+ */
120
+ function classifyBundle(bundle, checks, gaps = known_gaps_1.PRIMITIVE_KNOWN_GAPS) {
121
+ const bundleKinds = bundle.items.map((item) => item.kind);
122
+ return collect(checks.map((check) => classifyCheck(check, { kinds: subjectKinds(check, bundle.items, bundleKinds), bundle: bundle.id }, gaps)));
123
+ }
124
+ /**
125
+ * Known gaps a run no longer needs: entries that absorbed nothing
126
+ * although at least one executed check of their invariant matched their
127
+ * selectors. Entries outside the run's filters are never unused.
128
+ * @param records - Classified check records of the whole run.
129
+ * @param gaps - Known gaps.
130
+ * @returns Unused entries, in `gaps` order.
131
+ */
132
+ function findUnusedKnownGaps(records, gaps = known_gaps_1.PRIMITIVE_KNOWN_GAPS) {
133
+ const absorbed = new Set(records.flatMap((record) => record.absorbedBy));
134
+ return gaps.filter((gap) => !absorbed.has(gap.key) && records.some((record) => record.check.invariant === gap.invariant
135
+ && isExecuted(record.check)
136
+ && selectorsMatch(gap.match, record.subject)));
137
+ }
138
+ //# sourceMappingURL=classifier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classifier.js","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/classifier.ts"],"names":[],"mappings":";;AA4GA,sCAeC;AAOD,wBAKC;AAmCD,oCAOC;AASD,wCAIC;AAUD,kDAMC;AA1LD,6CAGsB;AAItB,mCAKiB;AA6BjB;;;;GAIG;AACH,MAAM,SAAS,GAAG,CAAC,KAAc,EAAU,EAAE;IAC3C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IAC5E,CAAC;IACD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAChD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC;aAC7D,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC;aAClC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,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C,CAAC,CAAC;AACnD,CAAC"}
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Domain layer — primitive diagnostics evaluators.
3
+ *
4
+ * Pure functions that turn what the commands produced into invariant
5
+ * checks with outcome `pass`, `fail` or `not-applicable`. Only the
6
+ * classifier turns a failing check into `known-gap`. `observed` holds
7
+ * exactly the deterministic facts each invariant compares (no raw command
8
+ * messages, no absolute paths); `detail` carries the human-readable reason,
9
+ * capped at 500 characters.
10
+ *
11
+ * Bundle checks run in the order I0, I1 (per item), I2 (per item), I3,
12
+ * then I10 (per item with executable files) once materialised; an invalid
13
+ * bundle has the single check I5. Case checks run in the order I4, I6,
14
+ * I7, I8, I9 (per item when rejected), I10 (per item with executable
15
+ * files), I11 and I12 (per plugin item), I13, I14 (per plugin item).
16
+ * @module domain/diagnostics/primitives/evaluators
17
+ */
18
+ import type { SnapshotRoot } from '../../../ports/primitive-diagnostics-driver';
19
+ import type { DiagnosticBundle, FixtureItem } from './catalogue';
20
+ import { type ManifestView } from './manifest-view';
21
+ import type { PlannedCase } from './planner';
22
+ import { type Snapshot } from './sandbox';
23
+ import { type CommandObservation, type DiagnosticCheck } from './types';
24
+ /** Inputs of the bundle-level invariants. */
25
+ export interface BundleEvaluationInput {
26
+ bundle: DiagnosticBundle;
27
+ validate: CommandObservation;
28
+ build: CommandObservation;
29
+ /** Extracted zip; absent when no zip was produced or it could not be read. */
30
+ archive?: ReadonlyMap<string, Uint8Array>;
31
+ /** Extractor/read error message when the zip existed but could not be read. */
32
+ archiveError?: string;
33
+ }
34
+ /** Result of the bundle-level invariants. */
35
+ export interface BundleEvaluation {
36
+ /** Order: I0, I1 (per item), I2 (per item), I3. */
37
+ checks: DiagnosticCheck[];
38
+ /** I0 passed: the cases of this bundle can run. */
39
+ ready: boolean;
40
+ /** Per item path; input to I13. Empty when there is no view. */
41
+ archivedItemFiles: ReadonlyMap<string, readonly string[]>;
42
+ /** Archive paths that are executable in the materialised archive; absent when unknown. Input to the case-level I10. */
43
+ executableArchivePaths?: ReadonlySet<string>;
44
+ }
45
+ /** What one case's commands and snapshots produced. */
46
+ export interface CaseObservation {
47
+ targetAdd: CommandObservation & {
48
+ effectiveScope: string | null;
49
+ };
50
+ install?: CommandObservation;
51
+ uninstall?: CommandObservation;
52
+ snapshots: {
53
+ beforeInstall?: Snapshot;
54
+ afterInstall?: Snapshot;
55
+ afterUninstall?: Snapshot;
56
+ };
57
+ /** Labels of the executable files after install; absent when the platform reports no permission bits. */
58
+ executable?: ReadonlySet<string>;
59
+ /** Text of the files the install added or modified (non-bookkeeping), by label. */
60
+ installedText?: ReadonlyMap<string, string>;
61
+ /** Snapshot roots of the case, to resolve labels to absolute paths. */
62
+ roots?: readonly SnapshotRoot[];
63
+ }
64
+ /** Observed install status of a case. */
65
+ export type InstallStatus = 'installed' | 'rejected' | 'error';
66
+ /**
67
+ * Archived installable files of an item: its source files that are archive
68
+ * entries listed with role `installable`. Excludes LICENSE, metadata/** and
69
+ * anything the build dropped.
70
+ * @param item - Collection item.
71
+ * @param archive - Extracted archive.
72
+ * @param view - Manifest view of the archive.
73
+ * @returns Sorted archive paths.
74
+ */
75
+ export declare function archivedItemFiles(item: FixtureItem, archive: ReadonlyMap<string, Uint8Array>, view: ManifestView): string[];
76
+ /**
77
+ * Evaluate the bundle-level invariants. When I0 fails, I1–I3 are reported
78
+ * once each as not evaluated and the bundle is not ready. When I0
79
+ * passes, I1–I3 are evaluated independently; an I3 failure does not block
80
+ * the cases.
81
+ * @param input - What validate and build produced, and the extracted archive.
82
+ * @returns Checks in the order I0, I1, I2, I3; readiness; archived item files.
83
+ */
84
+ export declare function evaluateBundle(input: BundleEvaluationInput): BundleEvaluation;
85
+ /**
86
+ * Bundle-level I10: each item's executable fixture files are executable in
87
+ * the materialised archive. One check per item that declares executable
88
+ * files (files the build dropped are I1's concern); a single
89
+ * not-applicable check when the modes are unknown.
90
+ * @param bundle - Catalogue bundle.
91
+ * @param evaluation - Its ready evaluation.
92
+ * @param executable - Archive paths that are executable after materialising; undefined when unknown.
93
+ * @returns The evaluation with the I10 checks appended and `executableArchivePaths` set.
94
+ */
95
+ export declare function evaluateArchiveModes(bundle: DiagnosticBundle, evaluation: BundleEvaluation, executable: ReadonlySet<string> | undefined): BundleEvaluation;
96
+ /** Inputs of the invalid-bundle invariant (I5). */
97
+ export interface RejectedBundleEvaluationInput {
98
+ /** A bundle with `rejection`. */
99
+ bundle: DiagnosticBundle;
100
+ validate: CommandObservation;
101
+ build: CommandObservation;
102
+ /** Sorted `<dist>/…` labels the build added to or changed in the dist directory. */
103
+ distWrites: readonly string[];
104
+ }
105
+ /**
106
+ * Evaluate an invalid bundle (I5): `collection validate` and `bundle build`
107
+ * both reject it with the documented message, the build with the documented
108
+ * error code, and no archive is written. Its only check; it is never ready.
109
+ * @param input - What validate and build produced, and what the build wrote.
110
+ * @returns The I5 check; not ready; no archived files.
111
+ * @throws {Error} When the bundle declares no rejection.
112
+ */
113
+ export declare function evaluateRejectedBundle(input: RejectedBundleEvaluationInput): BundleEvaluation;
114
+ /**
115
+ * Observed install status: exit 0 → installed; `BUNDLE.UNSUPPORTED_CONTENT`
116
+ * → rejected; anything else (including no install) → error.
117
+ * @param install - Install command observation.
118
+ * @returns The status.
119
+ */
120
+ export declare function observedInstallStatus(install: CommandObservation | undefined): InstallStatus;
121
+ /**
122
+ * Non-bookkeeping labels the install added: the case's destinations.
123
+ * @param observation - Case observation.
124
+ * @returns Sorted labels.
125
+ */
126
+ export declare function placedLabels(observation: CaseObservation): string[];
127
+ /**
128
+ * Evaluate the case-level invariants. Called only for a ready bundle's case
129
+ * that reached install.
130
+ * @param planned - Planned case.
131
+ * @param bundle - Its bundle.
132
+ * @param evaluation - The bundle's evaluation (archived item files).
133
+ * @param observation - What the case's commands and snapshots produced.
134
+ * @returns Checks in the order I4, I6, I7, I8, I9, I10, I11, I12, I13, I14
135
+ * (I10 only for bundles with executable files, I11, I12 and I14 only for bundles with a plugin item).
136
+ */
137
+ export declare function evaluateCase(planned: PlannedCase, bundle: DiagnosticBundle, evaluation: BundleEvaluation, observation: CaseObservation): DiagnosticCheck[];
138
+ //# sourceMappingURL=evaluators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluators.d.ts","sourceRoot":"","sources":["../../../../src/domain/diagnostics/primitives/evaluators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EACV,YAAY,EACb,MAAM,6CAA6C,CAAC;AAerD,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,WAAW,CAAC;AAKnB,OAAO,EAGL,KAAK,QAAQ,EACd,MAAM,WAAW,CAAC;AAInB,OAAO,EACL,KAAK,kBAAkB,EAEvB,KAAK,eAAe,EAKrB,MAAM,SAAS,CAAC;AAQjB,6CAA6C;AAC7C,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,8EAA8E;IAC9E,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC1C,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,6CAA6C;AAC7C,MAAM,WAAW,gBAAgB;IAC/B,mDAAmD;IACnD,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,mDAAmD;IACnD,KAAK,EAAE,OAAO,CAAC;IACf,gEAAgE;IAChE,iBAAiB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;IAC1D,uHAAuH;IACvH,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC9C;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,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