@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
@@ -1 +1 @@
1
- {"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../src/ports/filesystem.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,GA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AChF,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IACtC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE;;;;;;;;OAQG;IACH,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Hub-wide collection ids across enabled collection sources (COL004 evidence).
3
+ * @module ports/hub-collection-index
4
+ */
5
+ import type { GovernanceCollection } from './release-lookup';
6
+ export interface HubCollectionInventory {
7
+ collections: GovernanceCollection[];
8
+ /** Authoritative registrations, loaded once; disabled sources retain their reservations. */
9
+ registry?: {
10
+ owners: ReadonlyMap<string, string>;
11
+ /** Enabled source IDs and repository URLs, for resolving the candidate repository. */
12
+ sources: ReadonlyMap<string, string>;
13
+ };
14
+ /** Discovered collections plus Hub profile references awaiting publication. */
15
+ releaseCandidates?: GovernanceCollection[];
16
+ /** Sources whose collections could not be read: why, and how to fix it. */
17
+ unverifiedSources: {
18
+ sourceId: string;
19
+ message: string;
20
+ hint?: string;
21
+ }[];
22
+ }
23
+ /** Complete canonical collection inventory from enabled collection sources. */
24
+ export interface HubCollectionIndex {
25
+ read(): Promise<HubCollectionInventory>;
26
+ }
27
+ //# sourceMappingURL=hub-collection-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub-collection-index.d.ts","sourceRoot":"","sources":["../../src/ports/hub-collection-index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,4FAA4F;IAC5F,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACpC,sFAAsF;QACtF,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACtC,CAAC;IACF,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC3C,2EAA2E;IAC3E,iBAAiB,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3E;AAED,+EAA+E;AAC/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACzC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=hub-collection-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub-collection-index.js","sourceRoot":"","sources":["../../src/ports/hub-collection-index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,158 @@
1
+ /**
2
+ * Ports for the Hub Contributor Workflow: GitHub repository fork/PR operations
3
+ * and local Git workspace operations.
4
+ * @module ports/hub-contribution
5
+ */
6
+ import type { HubReference } from '../domain/hub/types';
7
+ export interface GitHubUserProfile {
8
+ login: string;
9
+ htmlUrl: string;
10
+ }
11
+ export interface GitHubRepoMetadata {
12
+ owner: string;
13
+ name: string;
14
+ fullName: string;
15
+ defaultBranch: string;
16
+ htmlUrl: string;
17
+ cloneUrl: string;
18
+ sshUrl: string;
19
+ fork: boolean;
20
+ canPush?: boolean;
21
+ parentFullName?: string;
22
+ }
23
+ export interface GitHubForkInfo {
24
+ owner: string;
25
+ name: string;
26
+ fullName: string;
27
+ defaultBranch: string;
28
+ htmlUrl: string;
29
+ cloneUrl: string;
30
+ sshUrl: string;
31
+ upstreamFullName: string;
32
+ }
33
+ export interface CreatePullRequestInput {
34
+ /** Upstream repository owner. */
35
+ upstreamOwner: string;
36
+ /** Upstream repository name. */
37
+ upstreamRepo: string;
38
+ /** Head ref in `<forkOwner>:<branch>` or `<branch>` format. */
39
+ head: string;
40
+ /** Target base branch in upstream repository (e.g. `main`). */
41
+ base: string;
42
+ /** Pull request title. */
43
+ title: string;
44
+ /** Pull request Markdown body. */
45
+ body: string;
46
+ /** Create as draft PR when true. */
47
+ draft?: boolean;
48
+ }
49
+ export interface HubPullRequestCheckSummary {
50
+ state: 'pending' | 'success' | 'failure' | 'neutral' | 'none';
51
+ totalCount: number;
52
+ passingCount: number;
53
+ failingCount: number;
54
+ pendingCount: number;
55
+ }
56
+ export interface HubPullRequestInfo {
57
+ number: number;
58
+ title: string;
59
+ htmlUrl: string;
60
+ state: 'open' | 'closed' | 'merged';
61
+ draft: boolean;
62
+ headRef: string;
63
+ baseRef: string;
64
+ upstreamFullName: string;
65
+ updatedAt: string;
66
+ checks?: HubPullRequestCheckSummary;
67
+ }
68
+ /**
69
+ * A GitHub CLI (`gh auth`) account entry for a host.
70
+ */
71
+ export interface GitHubCliAccount {
72
+ login: string;
73
+ host: string;
74
+ active: boolean;
75
+ state: 'success' | 'error';
76
+ scopes?: string;
77
+ error?: string;
78
+ }
79
+ /**
80
+ * Result of probing a GitHub CLI account's access to a hub repository.
81
+ */
82
+ export interface GitHubAccountProbeResult extends GitHubCliAccount {
83
+ canAccessHub: boolean;
84
+ probeReason?: string;
85
+ }
86
+ /**
87
+ * Resolution result when selecting a GitHub CLI account that can access a hub.
88
+ */
89
+ export interface GitHubAccountResolution {
90
+ selectedAccount?: GitHubAccountProbeResult;
91
+ switchedFromAccount?: string;
92
+ accounts: GitHubAccountProbeResult[];
93
+ accessibleAccounts: GitHubAccountProbeResult[];
94
+ message?: string;
95
+ }
96
+ /**
97
+ * Port for GitHub collaboration actions (authenticated user lookup, repository
98
+ * metadata, fork creation, pull request creation, PR/check status tracking,
99
+ * and multi-account `gh auth` resolution).
100
+ */
101
+ export interface GitHubCollaborationPort {
102
+ getAuthenticatedUser(): Promise<GitHubUserProfile>;
103
+ getRepository(owner: string, repo: string): Promise<GitHubRepoMetadata>;
104
+ ensureFork(owner: string, repo: string): Promise<GitHubForkInfo>;
105
+ createPullRequest(input: CreatePullRequestInput): Promise<HubPullRequestInfo>;
106
+ findPullRequestsForBranch(upstreamOwner: string, upstreamRepo: string, headFilter: string): Promise<HubPullRequestInfo[]>;
107
+ getPullRequestStatus(upstreamOwner: string, upstreamRepo: string, pullNumber: number): Promise<HubPullRequestInfo>;
108
+ resolveAccessibleAccount?(upstreamOwner: string, upstreamRepo: string, options?: {
109
+ host?: string;
110
+ switchActive?: boolean;
111
+ preferredLogin?: string;
112
+ }): Promise<GitHubAccountResolution>;
113
+ }
114
+ export interface GitWorkspaceStatus {
115
+ isGitRepo: boolean;
116
+ currentBranch?: string;
117
+ remotes: Record<string, string>;
118
+ modifiedFiles: string[];
119
+ hasUncommittedChanges: boolean;
120
+ }
121
+ /**
122
+ * Port for local Git repository operations used during hub contribution.
123
+ */
124
+ export interface GitWorkspacePort {
125
+ isGitRepository(dir: string): Promise<boolean>;
126
+ cloneRepository(cloneUrl: string, targetDir: string): Promise<void>;
127
+ getRemotes(dir: string): Promise<Record<string, string>>;
128
+ ensureRemote(dir: string, name: string, url: string): Promise<void>;
129
+ getCurrentBranch(dir: string): Promise<string>;
130
+ fetchRemote(dir: string, remote: string, branch?: string): Promise<void>;
131
+ checkoutBranch(dir: string, branch: string, options?: {
132
+ create?: boolean;
133
+ startPoint?: string;
134
+ }): Promise<void>;
135
+ getStatus(dir: string): Promise<GitWorkspaceStatus>;
136
+ getFileAtRef(dir: string, ref: string, relativeFilePath: string): Promise<string | undefined>;
137
+ commitAndPush(dir: string, files: string[], message: string, remote: string, branch: string): Promise<{
138
+ commitSha: string;
139
+ }>;
140
+ }
141
+ /**
142
+ * Persisted session metadata for a local hub contribution workspace so that
143
+ * reloading VS Code into the cloned fork automatically restores context.
144
+ */
145
+ export interface HubContributionSession {
146
+ hubId: string;
147
+ hubName: string;
148
+ hubReference: HubReference;
149
+ upstreamSlug: string;
150
+ forkSlug: string;
151
+ defaultBranch: string;
152
+ branchName: string;
153
+ workspaceDir: string;
154
+ hubConfigPath: string;
155
+ pullRequest?: HubPullRequestInfo;
156
+ updatedAt: string;
157
+ }
158
+ //# sourceMappingURL=hub-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub-contribution.d.ts","sourceRoot":"","sources":["../../src/ports/hub-contribution.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EACV,YAAY,EACb,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,iCAAiC;I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ACX,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=hub-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub-contribution.js","sourceRoot":"","sources":["../../src/ports/hub-contribution.ts"],"names":[],"mappings":""}
@@ -3,6 +3,10 @@
3
3
  * @module ports
4
4
  */
5
5
  export * from './source-adapter';
6
+ export * from './hub-collection-index';
7
+ export * from './release-lookup';
8
+ export * from './schema-validator';
9
+ export * from './argv-process-runner';
6
10
  export * from './app-storage';
7
11
  export * from './primitive-index-store';
8
12
  export * from './clock';
@@ -26,4 +30,12 @@ export * from './registry-operations';
26
30
  export * from './update-store';
27
31
  export * from './update-notifier';
28
32
  export * from './telemetry';
33
+ export * from './primitive-diagnostics-driver';
34
+ export * from './hub-contribution';
35
+ export * from './collection-contribution';
36
+ export * from './repository-exclusion';
37
+ export * from './security-scan-engine';
38
+ export * from './security-scan-input';
39
+ export * from './security-report-store';
40
+ export * from './record-fs';
29
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ports/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ports/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC"}
@@ -19,6 +19,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  * @module ports
20
20
  */
21
21
  __exportStar(require("./source-adapter"), exports);
22
+ __exportStar(require("./hub-collection-index"), exports);
23
+ __exportStar(require("./release-lookup"), exports);
24
+ __exportStar(require("./schema-validator"), exports);
25
+ __exportStar(require("./argv-process-runner"), exports);
22
26
  __exportStar(require("./app-storage"), exports);
23
27
  __exportStar(require("./primitive-index-store"), exports);
24
28
  __exportStar(require("./clock"), exports);
@@ -42,4 +46,12 @@ __exportStar(require("./registry-operations"), exports);
42
46
  __exportStar(require("./update-store"), exports);
43
47
  __exportStar(require("./update-notifier"), exports);
44
48
  __exportStar(require("./telemetry"), exports);
49
+ __exportStar(require("./primitive-diagnostics-driver"), exports);
50
+ __exportStar(require("./hub-contribution"), exports);
51
+ __exportStar(require("./collection-contribution"), exports);
52
+ __exportStar(require("./repository-exclusion"), exports);
53
+ __exportStar(require("./security-scan-engine"), exports);
54
+ __exportStar(require("./security-scan-input"), exports);
55
+ __exportStar(require("./security-report-store"), exports);
56
+ __exportStar(require("./record-fs"), exports);
45
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mDAAiC;AACjC,gDAA8B;AAC9B,0DAAwC;AACxC,0CAAwB;AACxB,gDAA8B;AAC9B,+CAA6B;AAC7B,yCAAuB;AACvB,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,6CAA2B;AAC3B,yDAAuC;AACvC,oDAAkC;AAClC,sDAAoC;AACpC,wDAAsC;AACtC,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,qDAAmC;AACnC,wDAAsC;AACtC,gDAA8B;AAC9B,0DAAwC;AACxC,0CAAwB;AACxB,gDAA8B;AAC9B,+CAA6B;AAC7B,yCAAuB;AACvB,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,mDAAiC;AACjC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,6CAA2B;AAC3B,yDAAuC;AACvC,oDAAkC;AAClC,sDAAoC;AACpC,wDAAsC;AACtC,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,iEAA+C;AAC/C,qDAAmC;AACnC,4DAA0C;AAC1C,yDAAuC;AACvC,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,8CAA4B"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * PrimitiveDiagnosticsDriver port — the semantic operations
3
+ * `doctor diagnostics --primitives` runs against a sandbox: prepare it,
4
+ * commit the fixture repository, validate and build a collection,
5
+ * materialise a bundle archive, add a target, install and uninstall.
6
+ *
7
+ * Semantic, not argv: the CLI adapter maps each call onto the real command
8
+ * classes, so a later app-native driver can replace it without changes to
9
+ * the suite. Interfaces only.
10
+ * @module ports/primitive-diagnostics-driver
11
+ */
12
+ import type { DiagnosticScope } from '../domain/diagnostics/primitives/types';
13
+ import type { TargetType } from '../domain/install/target';
14
+ import type { AppStoragePaths } from './app-storage';
15
+ /** Directories of one sandbox (the fixture sandbox or a case). */
16
+ export interface DiagnosticSandbox {
17
+ /** Case root; every path below lives inside it. */
18
+ root: string;
19
+ /** Command cwd (project root; `target add` writes ./ai-primitives-hub.yml here). */
20
+ cwd: string;
21
+ /** Isolated home. The driver derives HOME/USERPROFILE, every XDG_* and TMPDIR/TEMP/TMP from it. */
22
+ home: string;
23
+ }
24
+ /** A labelled snapshot root. */
25
+ export interface SnapshotRoot {
26
+ label: string;
27
+ path: string;
28
+ }
29
+ /** A sandbox whose directories exist, with the roots and paths the commands will use. */
30
+ export interface PreparedSandbox extends DiagnosticSandbox {
31
+ /** Most specific first: $XDG_*, $TMPDIR, $HOME, <workspace>, <case>. */
32
+ roots: readonly SnapshotRoot[];
33
+ /** Resolved through the AppStorage port for this sandbox's env (ADR-0005). */
34
+ storage: AppStoragePaths;
35
+ /** Per-user directories the env points at, by variable name (paths only). */
36
+ userDirs: Readonly<Record<string, string>>;
37
+ }
38
+ /** What one dispatched command reported. */
39
+ export interface DriverCommandResult<T = unknown> {
40
+ exitCode: number;
41
+ status?: 'ok' | 'warning' | 'error';
42
+ data?: T;
43
+ warnings: string[];
44
+ /** errors[0].code of the envelope, when present. */
45
+ errorCode?: string;
46
+ /** Every failure reason the command reported. Empty on success. */
47
+ errorMessages: string[];
48
+ /** Archive-relative paths an install rejected as unsupported content, when the command listed them. */
49
+ rejectedPaths?: string[];
50
+ }
51
+ /** Operations the primitive diagnostics use case drives. */
52
+ export interface PrimitiveDiagnosticsDriver {
53
+ prepareSandbox(sandbox: DiagnosticSandbox): Promise<PreparedSandbox>;
54
+ /**
55
+ * Commit the fixture files written under `sandbox.cwd`.
56
+ * `executableFiles`: repository-relative paths recorded as executable (`100755`); every other file is `100644`.
57
+ */
58
+ commitFixtureRepository(sandbox: DiagnosticSandbox, input: {
59
+ remoteUrl: string;
60
+ executableFiles: readonly string[];
61
+ }): Promise<void>;
62
+ validateCollection(sandbox: DiagnosticSandbox, input: {
63
+ collectionFile: string;
64
+ }): Promise<DriverCommandResult>;
65
+ buildBundle(sandbox: DiagnosticSandbox, input: {
66
+ collectionFile: string;
67
+ version: string;
68
+ outDir: string;
69
+ }): Promise<DriverCommandResult<{
70
+ zipAsset: string;
71
+ bundleId: string;
72
+ }>>;
73
+ materializeBundle(input: {
74
+ zipPath: string;
75
+ destination: string;
76
+ }): Promise<string[]>;
77
+ addTarget(sandbox: DiagnosticSandbox, input: {
78
+ name: string;
79
+ type: TargetType;
80
+ scope: DiagnosticScope;
81
+ }): Promise<DriverCommandResult<{
82
+ target: {
83
+ scope?: string;
84
+ };
85
+ }>>;
86
+ /** bundleId is the catalogue (collection) id. */
87
+ install(sandbox: DiagnosticSandbox, input: {
88
+ bundleId: string;
89
+ from: string;
90
+ target: string;
91
+ }): Promise<DriverCommandResult>;
92
+ uninstall(sandbox: DiagnosticSandbox, input: {
93
+ target: string;
94
+ }): Promise<DriverCommandResult>;
95
+ }
96
+ //# sourceMappingURL=primitive-diagnostics-driver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitive-diagnostics-driver.d.ts","sourceRoot":"","sources":["../../src/ports/primitive-diagnostics-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EACV,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,eAAe,CAAC;AAEvB,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,IAAI,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 {"version":3,"file":"primitive-diagnostics-driver.js","sourceRoot":"","sources":["../../src/ports/primitive-diagnostics-driver.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * RecordFs port: the only filesystem access install-record code uses. It is
3
+ * separate from `FileSystem` because records need `lstat`, `realpath`, capped
4
+ * reads, hashing and atomic renames. Implemented by `NodeRecordFs` in `infra`.
5
+ * @module ports/record-fs
6
+ */
7
+ /** File type as seen by `lstat`, without following a final symlink. */
8
+ export type RecordFileKind = 'file' | 'directory' | 'symlink' | 'other';
9
+ /** Subset of `lstat` results the record code needs. */
10
+ export interface RecordFileStat {
11
+ kind: RecordFileKind;
12
+ /** Reported size in bytes. Never trusted to bound a read. */
13
+ size: number;
14
+ /** Permission bits (`mode & 0o777`), when the filesystem reports them. */
15
+ mode?: number;
16
+ }
17
+ /** Filesystem operations for install records. All paths are absolute. */
18
+ export interface RecordFs {
19
+ /** Stat a path without following a final symlink; `undefined` when nothing exists. */
20
+ lstat(path: string): Promise<RecordFileStat | undefined>;
21
+ /** Resolve every symlink in a path. Rejects when the path does not exist. */
22
+ realpath(path: string): Promise<string>;
23
+ /** Read at most `maxBytes` bytes, whatever size the file reports. */
24
+ readCapped(path: string, maxBytes: number): Promise<Uint8Array>;
25
+ /** Streamed SHA-256 of a file's bytes, as `sha256:` plus 64 lowercase hex digits. */
26
+ hashFile(path: string): Promise<string>;
27
+ /** Create a file exclusively and write UTF-8 text; rejects when the path exists. `mode` sets its permission bits exactly. */
28
+ writeFile(path: string, contents: string, options?: {
29
+ mode?: number;
30
+ }): Promise<void>;
31
+ /** Rename a file, replacing the destination atomically. */
32
+ rename(from: string, to: string): Promise<void>;
33
+ /** Remove a file or a symlink (never followed). Rejects for a directory. */
34
+ unlink(path: string): Promise<void>;
35
+ /** Create a directory. */
36
+ mkdir(path: string, opts?: {
37
+ recursive?: boolean;
38
+ }): Promise<void>;
39
+ /** List the entry names of a directory. */
40
+ readdir(path: string): Promise<string[]>;
41
+ /** Whether anything exists at the path, without following a final symlink. */
42
+ exists(path: string): Promise<boolean>;
43
+ /** Append UTF-8 text to a file, creating it when missing. */
44
+ appendFile(path: string, contents: string): Promise<void>;
45
+ }
46
+ //# sourceMappingURL=record-fs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-fs.d.ts","sourceRoot":"","sources":["../../src/ports/record-fs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,uEAAuE;AACvE,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;AAExE,uDAAuD;AACvD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yEAAyE;AACzE,MAAM,WAAW,QAAQ;IACvB,sFAAsF;IACtF,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IACzD,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,qEAAqE;IACrE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAChE,qFAAqF;IACrF,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,6HAA6H;IAC7H,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtF,2DAA2D;IAC3D,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,4EAA4E;IAC5E,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,0BAA0B;IAC1B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,2CAA2C;IAC3C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,8EAA8E;IAC9E,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,6DAA6D;IAC7D,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3D"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ /**
3
+ * RecordFs port: the only filesystem access install-record code uses. It is
4
+ * separate from `FileSystem` because records need `lstat`, `realpath`, capped
5
+ * reads, hashing and atomic renames. Implemented by `NodeRecordFs` in `infra`.
6
+ * @module ports/record-fs
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ //# sourceMappingURL=record-fs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-fs.js","sourceRoot":"","sources":["../../src/ports/record-fs.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
@@ -15,7 +15,7 @@
15
15
  * @module ports/registry-operations
16
16
  */
17
17
  import type { Bundle, BundleUpdate } from '../domain/bundle/types';
18
- import type { HubProfileWithMetadata, ProfileActivationState } from '../domain/hub/types';
18
+ import type { HubProfileWithMetadata, ProfileActivationResult, ProfileActivationState } from '../domain/hub/types';
19
19
  import type { InstallationScope, InstalledBundle } from '../domain/install/types';
20
20
  import type { ExportedSettingsConfiguration } from '../domain/registry/settings';
21
21
  import type { Profile } from '../domain/registry/types';
@@ -218,9 +218,10 @@ export interface HubProfileReader {
218
218
  * when the target profile turns out to be hub-provided.
219
219
  */
220
220
  export interface HubProfileSync extends HubProfileReader {
221
+ /** Resolves to the activation outcome when the implementation reports one; a `success: false` outcome is an activation failure. */
221
222
  activateProfile(hubId: string, profileId: string, options: {
222
223
  installBundles: boolean;
223
- }): Promise<unknown>;
224
+ }): Promise<ProfileActivationResult | void>;
224
225
  deactivateProfile(hubId: string, profileId: string): Promise<unknown>;
225
226
  }
226
227
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"registry-operations.d.ts","sourceRoot":"","sources":["../../src/ports/registry-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACb,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACV,OAAO,EACR,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,oBAAoB,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;IACnD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACrD;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACzC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,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OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;IAC3D,qBAAqB,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC,CAAC;CAC5D;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,mIAAmI;IACnI,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;IACjI,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACvE;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,WAAW,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACzC,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,wFAAwF;IACxF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,gBAAgB,IAAI,6BAA6B,CAAC;IAClD,mBAAmB,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5E"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Release existence behind the source/authentication boundary (COL002 evidence).
3
+ * @module ports/release-lookup
4
+ */
5
+ /** Canonical collection identity; never a repository-prefixed runtime bundle ID. */
6
+ export interface GovernanceCollection {
7
+ id: string;
8
+ name?: string;
9
+ sourceId: string;
10
+ repository?: string;
11
+ file?: string;
12
+ }
13
+ export interface ReleaseLookupResult {
14
+ status: 'published' | 'missing' | 'unverified';
15
+ /** Why the release could not be verified. */
16
+ message?: string;
17
+ /** How to fix it. */
18
+ hint?: string;
19
+ }
20
+ /** "Does a published release exist for this collection id?" */
21
+ export interface ReleaseLookup {
22
+ lookup(collection: GovernanceCollection): Promise<ReleaseLookupResult>;
23
+ }
24
+ //# sourceMappingURL=release-lookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release-lookup.d.ts","sourceRoot":"","sources":["../../src/ports/release-lookup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oFAAoF;AACpF,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,YAAY,CAAC;IAC/C,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,+DAA+D;AAC/D,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,UAAU,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACxE"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Release existence behind the source/authentication boundary (COL002 evidence).
4
+ * @module ports/release-lookup
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=release-lookup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release-lookup.js","sourceRoot":"","sources":["../../src/ports/release-lookup.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -4,7 +4,8 @@
4
4
  *
5
5
  * Governed release planning reads exact bytes from an immutable Git
6
6
  * revision; the legacy compatibility path reads the working tree. Both are
7
- * addressed by repo-relative POSIX paths. Concrete adapters live in `infra`
7
+ * addressed by repo-relative POSIX paths, and may report which files are
8
+ * executable so archives keep their permission bits. Concrete adapters live in `infra`
8
9
  * (`NodeReleaseSourceReader`); tests inject an in-memory double.
9
10
  * @module ports/release-source
10
11
  */
@@ -17,11 +18,24 @@ export interface ReleaseSourceTree {
17
18
  */
18
19
  readFile(repositoryPath: string): Promise<Uint8Array>;
19
20
  /**
20
- * Recursively list files under a repo-relative directory.
21
+ * List files under a repo-relative directory.
21
22
  * @param repositoryDirectory Repo-relative directory (`'.'` for the root).
23
+ * @param options Listing options; recursive by default.
24
+ * @param options.recursive Set to false to list only direct files.
22
25
  * @returns Normalized repo-relative file paths, in no guaranteed order.
23
26
  */
24
- listFiles(repositoryDirectory: string): Promise<string[]>;
27
+ listFiles(repositoryDirectory: string, options?: {
28
+ recursive?: boolean;
29
+ }): Promise<string[]>;
30
+ /**
31
+ * Report whether one file is recorded as executable: Git mode `100755`
32
+ * for a revision, the owner execute bit for a working tree. Symlinks and
33
+ * absent paths are never executable. Optional: trees that cannot tell may
34
+ * omit it and are treated as having no executable files.
35
+ * @param repositoryPath Repo-relative path of the file.
36
+ * @returns `true` only for an executable regular file.
37
+ */
38
+ isExecutable?(repositoryPath: string): Promise<boolean>;
25
39
  }
26
40
  /** A tree pinned to an immutable Git object id. */
27
41
  export interface RevisionedReleaseSourceTree extends ReleaseSourceTree {
@@ -1 +1 @@
1
- {"version":3,"file":"release-source.d.ts","sourceRoot":"","sources":["../../src/ports/release-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,qFAAqF;AACrF,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACtD;;;;OAIG;IACH,SAAS,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC3D;AAED,mDAAmD;AACnD,MAAM,WAAW,2BAA4B,SAAQ,iBAAiB;IACpE,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;I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@@
1
+ /**
2
+ * RepositoryExclusion port — keeps locally installed files out of version
3
+ * control.
4
+ *
5
+ * Repository-scope installs in `local-only` commit mode write files into
6
+ * the working tree that must not be committed. The writer records them
7
+ * through this port; the Git adapter (`GitInfoExclude` in
8
+ * `@ai-primitives-hub/infra`) lists them in `.git/info/exclude`.
9
+ * @module ports/repository-exclusion
10
+ */
11
+ /**
12
+ * Adds and removes repository paths from the local exclusion list.
13
+ *
14
+ * Paths are absolute and lie below the repository root the adapter was
15
+ * created for. Adding a path that is already listed, or removing one that
16
+ * is not, is a no-op.
17
+ */
18
+ export interface RepositoryExclusion {
19
+ /**
20
+ * Exclude paths from version control.
21
+ * @param paths - Absolute paths below the repository root.
22
+ */
23
+ add(paths: readonly string[]): Promise<void>;
24
+ /**
25
+ * Stop excluding paths.
26
+ * @param paths - Absolute paths below the repository root.
27
+ */
28
+ remove(paths: readonly string[]): Promise<void>;
29
+ }
30
+ //# sourceMappingURL=repository-exclusion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository-exclusion.d.ts","sourceRoot":"","sources":["../../src/ports/repository-exclusion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,GAAG,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD"}