@agent-teams/engineering-foundation 0.5.0 → 0.7.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 (499) hide show
  1. package/README.md +7 -5
  2. package/dist/binary-string-comparator.d.ts +9 -0
  3. package/dist/binary-string-comparator.d.ts.map +1 -0
  4. package/dist/binary-string-comparator.js +27 -0
  5. package/dist/binary-string-comparator.js.map +1 -0
  6. package/dist/cancellation.d.ts +6 -0
  7. package/dist/cancellation.d.ts.map +1 -0
  8. package/dist/cancellation.js +16 -0
  9. package/dist/cancellation.js.map +1 -0
  10. package/dist/capabilities/contract-json-schema-releases/adapters/outbound/filesystem/ajv-json-schema-release-inspector.d.ts +11 -0
  11. package/dist/capabilities/contract-json-schema-releases/adapters/outbound/filesystem/ajv-json-schema-release-inspector.d.ts.map +1 -0
  12. package/dist/capabilities/contract-json-schema-releases/adapters/outbound/filesystem/ajv-json-schema-release-inspector.js +365 -0
  13. package/dist/capabilities/contract-json-schema-releases/adapters/outbound/filesystem/ajv-json-schema-release-inspector.js.map +1 -0
  14. package/dist/capabilities/contract-json-schema-releases/application/model/json-schema-release.d.ts +46 -0
  15. package/dist/capabilities/contract-json-schema-releases/application/model/json-schema-release.d.ts.map +1 -0
  16. package/dist/capabilities/contract-json-schema-releases/application/model/json-schema-release.js +2 -0
  17. package/dist/capabilities/contract-json-schema-releases/application/model/json-schema-release.js.map +1 -0
  18. package/dist/capabilities/contract-json-schema-releases/application/policies/evaluate-json-schema-release.d.ts +4 -0
  19. package/dist/capabilities/contract-json-schema-releases/application/policies/evaluate-json-schema-release.d.ts.map +1 -0
  20. package/dist/capabilities/contract-json-schema-releases/application/policies/evaluate-json-schema-release.js +201 -0
  21. package/dist/capabilities/contract-json-schema-releases/application/policies/evaluate-json-schema-release.js.map +1 -0
  22. package/dist/capabilities/contract-json-schema-releases/application/ports/json-schema-release-inspector.d.ts +10 -0
  23. package/dist/capabilities/contract-json-schema-releases/application/ports/json-schema-release-inspector.d.ts.map +1 -0
  24. package/dist/capabilities/contract-json-schema-releases/application/ports/json-schema-release-inspector.js +2 -0
  25. package/dist/capabilities/contract-json-schema-releases/application/ports/json-schema-release-inspector.js.map +1 -0
  26. package/dist/capabilities/contract-json-schema-releases/application/rules.d.ts +17 -0
  27. package/dist/capabilities/contract-json-schema-releases/application/rules.d.ts.map +1 -0
  28. package/dist/capabilities/contract-json-schema-releases/application/rules.js +18 -0
  29. package/dist/capabilities/contract-json-schema-releases/application/rules.js.map +1 -0
  30. package/dist/capabilities/contract-json-schema-releases/application/use-cases/verify-json-schema-release.d.ts +11 -0
  31. package/dist/capabilities/contract-json-schema-releases/application/use-cases/verify-json-schema-release.d.ts.map +1 -0
  32. package/dist/capabilities/contract-json-schema-releases/application/use-cases/verify-json-schema-release.js +14 -0
  33. package/dist/capabilities/contract-json-schema-releases/application/use-cases/verify-json-schema-release.js.map +1 -0
  34. package/dist/capabilities/contract-json-schema-releases/contract/config.d.ts +5 -0
  35. package/dist/capabilities/contract-json-schema-releases/contract/config.d.ts.map +1 -0
  36. package/dist/capabilities/contract-json-schema-releases/contract/config.js +133 -0
  37. package/dist/capabilities/contract-json-schema-releases/contract/config.js.map +1 -0
  38. package/dist/capabilities/contract-json-schema-releases/module.d.ts +13 -0
  39. package/dist/capabilities/contract-json-schema-releases/module.d.ts.map +1 -0
  40. package/dist/capabilities/contract-json-schema-releases/module.js +52 -0
  41. package/dist/capabilities/contract-json-schema-releases/module.js.map +1 -0
  42. package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/governance/governance-accepted-decision-evidence-acl.d.ts +11 -0
  43. package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/governance/governance-accepted-decision-evidence-acl.d.ts.map +1 -0
  44. package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/governance/governance-accepted-decision-evidence-acl.js +21 -0
  45. package/dist/capabilities/contract-protobuf-evolution/adapters/outbound/governance/governance-accepted-decision-evidence-acl.js.map +1 -0
  46. package/dist/capabilities/contract-protobuf-evolution/application/model/protobuf-release-evidence.d.ts +58 -0
  47. package/dist/capabilities/contract-protobuf-evolution/application/model/protobuf-release-evidence.d.ts.map +1 -0
  48. package/dist/capabilities/contract-protobuf-evolution/application/model/protobuf-release-evidence.js +2 -0
  49. package/dist/capabilities/contract-protobuf-evolution/application/model/protobuf-release-evidence.js.map +1 -0
  50. package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.d.ts +4 -0
  51. package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.d.ts.map +1 -0
  52. package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.js +277 -0
  53. package/dist/capabilities/contract-protobuf-evolution/application/policies/evaluate-protobuf-evolution.js.map +1 -0
  54. package/dist/capabilities/contract-protobuf-evolution/application/ports/accepted-decision-evidence.d.ts +18 -0
  55. package/dist/capabilities/contract-protobuf-evolution/application/ports/accepted-decision-evidence.d.ts.map +1 -0
  56. package/dist/capabilities/contract-protobuf-evolution/application/ports/accepted-decision-evidence.js +2 -0
  57. package/dist/capabilities/contract-protobuf-evolution/application/ports/accepted-decision-evidence.js.map +1 -0
  58. package/dist/capabilities/contract-protobuf-evolution/application/rules.d.ts +20 -0
  59. package/dist/capabilities/contract-protobuf-evolution/application/rules.d.ts.map +1 -0
  60. package/dist/capabilities/contract-protobuf-evolution/application/rules.js +21 -0
  61. package/dist/capabilities/contract-protobuf-evolution/application/rules.js.map +1 -0
  62. package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.d.ts +12 -0
  63. package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.d.ts.map +1 -0
  64. package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.js +30 -0
  65. package/dist/capabilities/contract-protobuf-evolution/application/use-cases/resolve-protobuf-evolution-policy.js.map +1 -0
  66. package/dist/capabilities/contract-protobuf-evolution/contract/config.d.ts +5 -0
  67. package/dist/capabilities/contract-protobuf-evolution/contract/config.d.ts.map +1 -0
  68. package/dist/capabilities/contract-protobuf-evolution/contract/config.js +186 -0
  69. package/dist/capabilities/contract-protobuf-evolution/contract/config.js.map +1 -0
  70. package/dist/capabilities/contract-protobuf-evolution/module.d.ts +11 -0
  71. package/dist/capabilities/contract-protobuf-evolution/module.d.ts.map +1 -0
  72. package/dist/capabilities/contract-protobuf-evolution/module.js +51 -0
  73. package/dist/capabilities/contract-protobuf-evolution/module.js.map +1 -0
  74. package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.d.ts +5 -0
  75. package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.d.ts.map +1 -0
  76. package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.js +109 -0
  77. package/dist/capabilities/contract-protobuf-evolution/qualification/adapters/outbound/process/process-buf-executable.js.map +1 -0
  78. package/dist/capabilities/contract-protobuf-evolution/qualification/module.d.ts +4 -0
  79. package/dist/capabilities/contract-protobuf-evolution/qualification/module.d.ts.map +1 -0
  80. package/dist/capabilities/contract-protobuf-evolution/qualification/module.js +3 -0
  81. package/dist/capabilities/contract-protobuf-evolution/qualification/module.js.map +1 -0
  82. package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-executable.d.ts +14 -0
  83. package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-executable.d.ts.map +1 -0
  84. package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-executable.js +2 -0
  85. package/dist/capabilities/contract-protobuf-evolution/qualification/ports/buf-executable.js.map +1 -0
  86. package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/verify-pinned-buf-version.d.ts +7 -0
  87. package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/verify-pinned-buf-version.d.ts.map +1 -0
  88. package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/verify-pinned-buf-version.js +41 -0
  89. package/dist/capabilities/contract-protobuf-evolution/qualification/use-cases/verify-pinned-buf-version.js.map +1 -0
  90. package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.d.ts +15 -0
  91. package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.d.ts.map +1 -0
  92. package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.js +2 -0
  93. package/dist/capabilities/documentation-local-references/application/model/documentation-local-references.js.map +1 -0
  94. package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.d.ts +9 -0
  95. package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.d.ts.map +1 -0
  96. package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.js +124 -0
  97. package/dist/capabilities/documentation-local-references/application/policies/evaluate-documentation-local-references.js.map +1 -0
  98. package/dist/capabilities/documentation-local-references/application/rules.d.ts +20 -0
  99. package/dist/capabilities/documentation-local-references/application/rules.d.ts.map +1 -0
  100. package/dist/capabilities/documentation-local-references/application/rules.js +24 -0
  101. package/dist/capabilities/documentation-local-references/application/rules.js.map +1 -0
  102. package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.d.ts +12 -0
  103. package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.d.ts.map +1 -0
  104. package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.js +36 -0
  105. package/dist/capabilities/documentation-local-references/application/use-cases/analyze-documentation-local-references.js.map +1 -0
  106. package/dist/capabilities/documentation-local-references/contract/config.d.ts +5 -0
  107. package/dist/capabilities/documentation-local-references/contract/config.d.ts.map +1 -0
  108. package/dist/capabilities/documentation-local-references/contract/config.js +68 -0
  109. package/dist/capabilities/documentation-local-references/contract/config.js.map +1 -0
  110. package/dist/capabilities/documentation-local-references/module.d.ts +5 -0
  111. package/dist/capabilities/documentation-local-references/module.d.ts.map +1 -0
  112. package/dist/capabilities/documentation-local-references/module.js +49 -0
  113. package/dist/capabilities/documentation-local-references/module.js.map +1 -0
  114. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/crypto/node-architecture-decision-fingerprint.d.ts +5 -0
  115. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/crypto/node-architecture-decision-fingerprint.d.ts.map +1 -0
  116. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/crypto/node-architecture-decision-fingerprint.js +7 -0
  117. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/crypto/node-architecture-decision-fingerprint.js.map +1 -0
  118. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/filesystem/filesystem-architecture-decision-baseline-repository.d.ts +17 -0
  119. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/filesystem/filesystem-architecture-decision-baseline-repository.d.ts.map +1 -0
  120. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/filesystem/filesystem-architecture-decision-baseline-repository.js +285 -0
  121. package/dist/capabilities/governance-architecture-decisions/adapters/outbound/filesystem/filesystem-architecture-decision-baseline-repository.js.map +1 -0
  122. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.d.ts +32 -0
  123. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.d.ts.map +1 -0
  124. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.js +26 -0
  125. package/dist/capabilities/governance-architecture-decisions/application/model/architecture-decision.js.map +1 -0
  126. package/dist/capabilities/governance-architecture-decisions/application/policies/accepted-architecture-decision-baseline.d.ts +32 -0
  127. package/dist/capabilities/governance-architecture-decisions/application/policies/accepted-architecture-decision-baseline.d.ts.map +1 -0
  128. package/dist/capabilities/governance-architecture-decisions/application/policies/accepted-architecture-decision-baseline.js +65 -0
  129. package/dist/capabilities/governance-architecture-decisions/application/policies/accepted-architecture-decision-baseline.js.map +1 -0
  130. package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.d.ts +20 -0
  131. package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.d.ts.map +1 -0
  132. package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.js +37 -0
  133. package/dist/capabilities/governance-architecture-decisions/application/policies/architecture-decision-diagnostic.js.map +1 -0
  134. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.d.ts +18 -0
  135. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.d.ts.map +1 -0
  136. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.js +71 -0
  137. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-index.js.map +1 -0
  138. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-lifecycle.d.ts +5 -0
  139. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-lifecycle.d.ts.map +1 -0
  140. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-lifecycle.js +158 -0
  141. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decision-lifecycle.js.map +1 -0
  142. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.d.ts +30 -0
  143. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.d.ts.map +1 -0
  144. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.js +163 -0
  145. package/dist/capabilities/governance-architecture-decisions/application/policies/evaluate-architecture-decisions.js.map +1 -0
  146. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-accepted-architecture-decision-baseline.d.ts +3 -0
  147. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-accepted-architecture-decision-baseline.d.ts.map +1 -0
  148. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-accepted-architecture-decision-baseline.js +75 -0
  149. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-accepted-architecture-decision-baseline.js.map +1 -0
  150. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.d.ts +10 -0
  151. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.d.ts.map +1 -0
  152. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.js +178 -0
  153. package/dist/capabilities/governance-architecture-decisions/application/policies/parse-architecture-decision-document.js.map +1 -0
  154. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-baseline-repository.d.ts +37 -0
  155. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-baseline-repository.d.ts.map +1 -0
  156. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-baseline-repository.js +2 -0
  157. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-baseline-repository.js.map +1 -0
  158. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-fingerprint.d.ts +4 -0
  159. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-fingerprint.d.ts.map +1 -0
  160. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-fingerprint.js +2 -0
  161. package/dist/capabilities/governance-architecture-decisions/application/ports/architecture-decision-fingerprint.js.map +1 -0
  162. package/dist/capabilities/governance-architecture-decisions/application/rules.d.ts +30 -0
  163. package/dist/capabilities/governance-architecture-decisions/application/rules.d.ts.map +1 -0
  164. package/dist/capabilities/governance-architecture-decisions/application/rules.js +34 -0
  165. package/dist/capabilities/governance-architecture-decisions/application/rules.js.map +1 -0
  166. package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.d.ts +28 -0
  167. package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.d.ts.map +1 -0
  168. package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.js +35 -0
  169. package/dist/capabilities/governance-architecture-decisions/application/use-cases/analyze-architecture-decisions.js.map +1 -0
  170. package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.d.ts +17 -0
  171. package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.d.ts.map +1 -0
  172. package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.js +29 -0
  173. package/dist/capabilities/governance-architecture-decisions/application/use-cases/inspect-architecture-decision-catalog.js.map +1 -0
  174. package/dist/capabilities/governance-architecture-decisions/application/use-cases/promote-architecture-decision-baseline.d.ts +19 -0
  175. package/dist/capabilities/governance-architecture-decisions/application/use-cases/promote-architecture-decision-baseline.d.ts.map +1 -0
  176. package/dist/capabilities/governance-architecture-decisions/application/use-cases/promote-architecture-decision-baseline.js +85 -0
  177. package/dist/capabilities/governance-architecture-decisions/application/use-cases/promote-architecture-decision-baseline.js.map +1 -0
  178. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.d.ts +12 -0
  179. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.d.ts.map +1 -0
  180. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.js +50 -0
  181. package/dist/capabilities/governance-architecture-decisions/application/use-cases/resolve-architecture-decision-index-memberships.js.map +1 -0
  182. package/dist/capabilities/governance-architecture-decisions/contract/config.d.ts +5 -0
  183. package/dist/capabilities/governance-architecture-decisions/contract/config.d.ts.map +1 -0
  184. package/dist/capabilities/governance-architecture-decisions/contract/config.js +94 -0
  185. package/dist/capabilities/governance-architecture-decisions/contract/config.js.map +1 -0
  186. package/dist/capabilities/governance-architecture-decisions/module.d.ts +26 -0
  187. package/dist/capabilities/governance-architecture-decisions/module.d.ts.map +1 -0
  188. package/dist/capabilities/governance-architecture-decisions/module.js +136 -0
  189. package/dist/capabilities/governance-architecture-decisions/module.js.map +1 -0
  190. package/dist/capabilities/property-testing-standard/contract/deterministic-seed-bank.d.ts +27 -0
  191. package/dist/capabilities/property-testing-standard/contract/deterministic-seed-bank.d.ts.map +1 -0
  192. package/dist/capabilities/property-testing-standard/contract/deterministic-seed-bank.js +109 -0
  193. package/dist/capabilities/property-testing-standard/contract/deterministic-seed-bank.js.map +1 -0
  194. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/link-staged-package-node-modules.d.ts +9 -0
  195. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/link-staged-package-node-modules.d.ts.map +1 -0
  196. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/link-staged-package-node-modules.js +45 -0
  197. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/link-staged-package-node-modules.js.map +1 -0
  198. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts +1 -1
  199. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.d.ts.map +1 -1
  200. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js +168 -99
  201. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/microsoft-public-api-extractor.js.map +1 -1
  202. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/staged-public-api-input.d.ts +17 -0
  203. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/staged-public-api-input.d.ts.map +1 -0
  204. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/staged-public-api-input.js +214 -0
  205. package/dist/capabilities/public-api-compatibility/adapters/outbound/api-extractor/staged-public-api-input.js.map +1 -0
  206. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts +1 -2
  207. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.d.ts.map +1 -1
  208. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js +94 -73
  209. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/filesystem-public-api-repository.js.map +1 -1
  210. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts +8 -0
  211. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.d.ts.map +1 -0
  212. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js +132 -0
  213. package/dist/capabilities/public-api-compatibility/adapters/outbound/filesystem/public-api-baseline-mapper.js.map +1 -0
  214. package/dist/capabilities/public-api-compatibility/adapters/outbound/governance/governance-accepted-decision-evidence-acl.d.ts +15 -0
  215. package/dist/capabilities/public-api-compatibility/adapters/outbound/governance/governance-accepted-decision-evidence-acl.d.ts.map +1 -0
  216. package/dist/capabilities/public-api-compatibility/adapters/outbound/governance/governance-accepted-decision-evidence-acl.js +17 -0
  217. package/dist/capabilities/public-api-compatibility/adapters/outbound/governance/governance-accepted-decision-evidence-acl.js.map +1 -0
  218. package/dist/capabilities/public-api-compatibility/application/model/public-api.d.ts +106 -15
  219. package/dist/capabilities/public-api-compatibility/application/model/public-api.d.ts.map +1 -1
  220. package/dist/capabilities/public-api-compatibility/application/model/public-api.js +46 -0
  221. package/dist/capabilities/public-api-compatibility/application/model/public-api.js.map +1 -1
  222. package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.d.ts +8 -0
  223. package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.d.ts.map +1 -0
  224. package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.js +11 -0
  225. package/dist/capabilities/public-api-compatibility/application/policies/accepted-breaking-change.js.map +1 -0
  226. package/dist/capabilities/public-api-compatibility/application/policies/evaluate-public-api-compatibility.d.ts.map +1 -1
  227. package/dist/capabilities/public-api-compatibility/application/policies/evaluate-public-api-compatibility.js +146 -23
  228. package/dist/capabilities/public-api-compatibility/application/policies/evaluate-public-api-compatibility.js.map +1 -1
  229. package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.d.ts +14 -0
  230. package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.d.ts.map +1 -0
  231. package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.js +210 -0
  232. package/dist/capabilities/public-api-compatibility/application/policies/validate-package-export-coverage.js.map +1 -0
  233. package/dist/capabilities/public-api-compatibility/application/ports/accepted-decision-evidence.d.ts +19 -0
  234. package/dist/capabilities/public-api-compatibility/application/ports/accepted-decision-evidence.d.ts.map +1 -0
  235. package/dist/capabilities/public-api-compatibility/application/ports/accepted-decision-evidence.js +2 -0
  236. package/dist/capabilities/public-api-compatibility/application/ports/accepted-decision-evidence.js.map +1 -0
  237. package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts +1 -2
  238. package/dist/capabilities/public-api-compatibility/application/ports/public-api-repository.d.ts.map +1 -1
  239. package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.d.ts +2 -0
  240. package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.d.ts.map +1 -1
  241. package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.js +16 -1
  242. package/dist/capabilities/public-api-compatibility/application/use-cases/analyze-public-api-compatibility.js.map +1 -1
  243. package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.d.ts +2 -0
  244. package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.d.ts.map +1 -1
  245. package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js +61 -5
  246. package/dist/capabilities/public-api-compatibility/application/use-cases/promote-public-api-baselines.js.map +1 -1
  247. package/dist/capabilities/public-api-compatibility/contract/config.d.ts +1 -1
  248. package/dist/capabilities/public-api-compatibility/contract/config.d.ts.map +1 -1
  249. package/dist/capabilities/public-api-compatibility/contract/config.js +217 -13
  250. package/dist/capabilities/public-api-compatibility/contract/config.js.map +1 -1
  251. package/dist/capabilities/public-api-compatibility/module.d.ts.map +1 -1
  252. package/dist/capabilities/public-api-compatibility/module.js +5 -2
  253. package/dist/capabilities/public-api-compatibility/module.js.map +1 -1
  254. package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.d.ts.map +1 -1
  255. package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.js +11 -26
  256. package/dist/capabilities/repository-agent-workflow/adapters/outbound/process/process-execution.js.map +1 -1
  257. package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.d.ts.map +1 -1
  258. package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js +2 -1
  259. package/dist/capabilities/repository-agent-workflow/application/policies/evaluate-repository-agent-workflow.js.map +1 -1
  260. package/dist/capabilities/repository-agent-workflow/changed-command.d.ts.map +1 -1
  261. package/dist/capabilities/repository-agent-workflow/changed-command.js +2 -0
  262. package/dist/capabilities/repository-agent-workflow/changed-command.js.map +1 -1
  263. package/dist/capabilities/repository-agent-workflow/contract/config.d.ts.map +1 -1
  264. package/dist/capabilities/repository-agent-workflow/contract/config.js +2 -1
  265. package/dist/capabilities/repository-agent-workflow/contract/config.js.map +1 -1
  266. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/filesystem-repository-security-reader.d.ts.map +1 -1
  267. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/filesystem-repository-security-reader.js +24 -190
  268. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/filesystem-repository-security-reader.js.map +1 -1
  269. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/publishable-package-evidence-reader.d.ts +3 -0
  270. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/publishable-package-evidence-reader.d.ts.map +1 -0
  271. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/publishable-package-evidence-reader.js +31 -0
  272. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/publishable-package-evidence-reader.js.map +1 -0
  273. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-digests.d.ts +6 -0
  274. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-digests.d.ts.map +1 -0
  275. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-digests.js +31 -0
  276. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-digests.js.map +1 -0
  277. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-filesystem.d.ts +5 -0
  278. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-filesystem.d.ts.map +1 -0
  279. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-filesystem.js +73 -0
  280. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-filesystem.js.map +1 -0
  281. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-input.d.ts +3 -0
  282. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-input.d.ts.map +1 -0
  283. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-input.js +16 -0
  284. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/repository-security-input.js.map +1 -0
  285. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/security-tool-evidence-reader.d.ts +3 -0
  286. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/security-tool-evidence-reader.d.ts.map +1 -0
  287. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/security-tool-evidence-reader.js +98 -0
  288. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/security-tool-evidence-reader.js.map +1 -0
  289. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.d.ts +6 -0
  290. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.d.ts.map +1 -0
  291. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.js +208 -0
  292. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-parser.js.map +1 -0
  293. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-reader.d.ts +10 -0
  294. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-reader.d.ts.map +1 -0
  295. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-reader.js +95 -0
  296. package/dist/capabilities/repository-security-baseline/adapters/outbound/filesystem/workflow-evidence-reader.js.map +1 -0
  297. package/dist/capabilities/repository-security-baseline/application/model/repository-security.d.ts +88 -1
  298. package/dist/capabilities/repository-security-baseline/application/model/repository-security.d.ts.map +1 -1
  299. package/dist/capabilities/repository-security-baseline/application/model/repository-security.js +40 -1
  300. package/dist/capabilities/repository-security-baseline/application/model/repository-security.js.map +1 -1
  301. package/dist/capabilities/repository-security-baseline/application/policies/dependency-review-ordering.d.ts +5 -0
  302. package/dist/capabilities/repository-security-baseline/application/policies/dependency-review-ordering.d.ts.map +1 -0
  303. package/dist/capabilities/repository-security-baseline/application/policies/dependency-review-ordering.js +143 -0
  304. package/dist/capabilities/repository-security-baseline/application/policies/dependency-review-ordering.js.map +1 -0
  305. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security-tools.d.ts +4 -0
  306. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security-tools.d.ts.map +1 -0
  307. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security-tools.js +136 -0
  308. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security-tools.js.map +1 -0
  309. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.d.ts.map +1 -1
  310. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.js +65 -37
  311. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-security.js.map +1 -1
  312. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-workflow-uses.d.ts +4 -0
  313. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-workflow-uses.d.ts.map +1 -0
  314. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-workflow-uses.js +55 -0
  315. package/dist/capabilities/repository-security-baseline/application/policies/evaluate-repository-workflow-uses.js.map +1 -0
  316. package/dist/capabilities/repository-security-baseline/application/policies/repository-security-diagnostic.d.ts +14 -0
  317. package/dist/capabilities/repository-security-baseline/application/policies/repository-security-diagnostic.d.ts.map +1 -0
  318. package/dist/capabilities/repository-security-baseline/application/policies/repository-security-diagnostic.js +14 -0
  319. package/dist/capabilities/repository-security-baseline/application/policies/repository-security-diagnostic.js.map +1 -0
  320. package/dist/capabilities/repository-security-baseline/application/rules.d.ts +15 -0
  321. package/dist/capabilities/repository-security-baseline/application/rules.d.ts.map +1 -1
  322. package/dist/capabilities/repository-security-baseline/application/rules.js +16 -1
  323. package/dist/capabilities/repository-security-baseline/application/rules.js.map +1 -1
  324. package/dist/capabilities/repository-security-baseline/contract/config.d.ts.map +1 -1
  325. package/dist/capabilities/repository-security-baseline/contract/config.js +137 -4
  326. package/dist/capabilities/repository-security-baseline/contract/config.js.map +1 -1
  327. package/dist/capabilities/repository-security-baseline/module.d.ts.map +1 -1
  328. package/dist/capabilities/repository-security-baseline/module.js +7 -5
  329. package/dist/capabilities/repository-security-baseline/module.js.map +1 -1
  330. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.d.ts.map +1 -1
  331. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js +15 -5
  332. package/dist/capabilities/source-dependencies/adapters/outbound/node/node-source-dependency-resolver.js.map +1 -1
  333. package/dist/capabilities/source-dependencies/adapters/outbound/oxc/oxc-source-dependency-parser.d.ts.map +1 -1
  334. package/dist/capabilities/source-dependencies/adapters/outbound/oxc/oxc-source-dependency-parser.js +4 -3
  335. package/dist/capabilities/source-dependencies/adapters/outbound/oxc/oxc-source-dependency-parser.js.map +1 -1
  336. package/dist/capabilities/source-dependencies/application/model/repository-path.d.ts +3 -0
  337. package/dist/capabilities/source-dependencies/application/model/repository-path.d.ts.map +1 -0
  338. package/dist/capabilities/source-dependencies/application/model/repository-path.js +33 -0
  339. package/dist/capabilities/source-dependencies/application/model/repository-path.js.map +1 -0
  340. package/dist/capabilities/source-dependencies/application/model/source-workspace.d.ts +88 -0
  341. package/dist/capabilities/source-dependencies/application/model/source-workspace.d.ts.map +1 -1
  342. package/dist/capabilities/source-dependencies/application/model/source-workspace.js.map +1 -1
  343. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.d.ts +10 -0
  344. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.d.ts.map +1 -0
  345. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.js +262 -0
  346. package/dist/capabilities/source-dependencies/application/policies/evaluate-resolved-source-dependency.js.map +1 -0
  347. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.d.ts +2 -8
  348. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.d.ts.map +1 -1
  349. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.js +59 -196
  350. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependencies.js.map +1 -1
  351. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.d.ts +4 -0
  352. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.d.ts.map +1 -0
  353. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.js +315 -0
  354. package/dist/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.js.map +1 -0
  355. package/dist/capabilities/source-dependencies/application/rules.d.ts +7 -0
  356. package/dist/capabilities/source-dependencies/application/rules.d.ts.map +1 -1
  357. package/dist/capabilities/source-dependencies/application/rules.js +7 -0
  358. package/dist/capabilities/source-dependencies/application/rules.js.map +1 -1
  359. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.d.ts.map +1 -1
  360. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js +52 -16
  361. package/dist/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.js.map +1 -1
  362. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts +17 -0
  363. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.d.ts.map +1 -0
  364. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js +216 -0
  365. package/dist/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.js.map +1 -0
  366. package/dist/capabilities/source-dependencies/contract/config.d.ts.map +1 -1
  367. package/dist/capabilities/source-dependencies/contract/config.js +47 -12
  368. package/dist/capabilities/source-dependencies/contract/config.js.map +1 -1
  369. package/dist/capabilities/source-dependencies/module.js +1 -1
  370. package/dist/capabilities/source-dependencies/module.js.map +1 -1
  371. package/dist/capabilities/suppression-governance/adapters/outbound/oxc/oxc-suppression-scanner.d.ts.map +1 -1
  372. package/dist/capabilities/suppression-governance/adapters/outbound/oxc/oxc-suppression-scanner.js +2 -1
  373. package/dist/capabilities/suppression-governance/adapters/outbound/oxc/oxc-suppression-scanner.js.map +1 -1
  374. package/dist/capability-runtime.d.ts.map +1 -1
  375. package/dist/capability-runtime.js +5 -4
  376. package/dist/capability-runtime.js.map +1 -1
  377. package/dist/cli-arguments.d.ts.map +1 -1
  378. package/dist/cli-arguments.js +1 -0
  379. package/dist/cli-arguments.js.map +1 -1
  380. package/dist/cli.js +22 -0
  381. package/dist/cli.js.map +1 -1
  382. package/dist/composition/capability-registry.d.ts.map +1 -1
  383. package/dist/composition/capability-registry.js +8 -0
  384. package/dist/composition/capability-registry.js.map +1 -1
  385. package/dist/composition/rule-registry.d.ts.map +1 -1
  386. package/dist/composition/rule-registry.js +8 -0
  387. package/dist/composition/rule-registry.js.map +1 -1
  388. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts +11 -0
  389. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.d.ts.map +1 -0
  390. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js +91 -0
  391. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-document-reader.js.map +1 -0
  392. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.d.ts +14 -0
  393. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.d.ts.map +1 -0
  394. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.js +61 -0
  395. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-filesystem.js.map +1 -0
  396. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.d.ts +8 -0
  397. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.d.ts.map +1 -0
  398. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.js +44 -0
  399. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-paths.js.map +1 -0
  400. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.d.ts +6 -0
  401. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.d.ts.map +1 -0
  402. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.js +160 -0
  403. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-reference-resolver.js.map +1 -0
  404. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.d.ts +8 -0
  405. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.d.ts.map +1 -0
  406. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.js +13 -0
  407. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-repository.js.map +1 -0
  408. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts +6 -0
  409. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.d.ts.map +1 -0
  410. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js +233 -0
  411. package/dist/documentation-observation/adapters/outbound/filesystem/filesystem-markdown-tree-observer.js.map +1 -0
  412. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.d.ts +3 -0
  413. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.d.ts.map +1 -0
  414. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.js +260 -0
  415. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-document-parser.js.map +1 -0
  416. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.d.ts +15 -0
  417. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.d.ts.map +1 -0
  418. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.js +59 -0
  419. package/dist/documentation-observation/adapters/outbound/filesystem/markdown-reference-target.js.map +1 -0
  420. package/dist/documentation-observation/application/model/markdown-document.d.ts +70 -0
  421. package/dist/documentation-observation/application/model/markdown-document.d.ts.map +1 -0
  422. package/dist/documentation-observation/application/model/markdown-document.js +10 -0
  423. package/dist/documentation-observation/application/model/markdown-document.js.map +1 -0
  424. package/dist/documentation-observation/application/ports/markdown-repository.d.ts +17 -0
  425. package/dist/documentation-observation/application/ports/markdown-repository.d.ts.map +1 -0
  426. package/dist/documentation-observation/application/ports/markdown-repository.js +2 -0
  427. package/dist/documentation-observation/application/ports/markdown-repository.js.map +1 -0
  428. package/dist/filesystem-path-safety.d.ts +38 -0
  429. package/dist/filesystem-path-safety.d.ts.map +1 -1
  430. package/dist/filesystem-path-safety.js +228 -2
  431. package/dist/filesystem-path-safety.js.map +1 -1
  432. package/dist/foundation-config.d.ts +1 -1
  433. package/dist/foundation-config.d.ts.map +1 -1
  434. package/dist/foundation-config.js +10 -1
  435. package/dist/foundation-config.js.map +1 -1
  436. package/dist/index.d.ts +3 -0
  437. package/dist/index.d.ts.map +1 -1
  438. package/dist/index.js +2 -0
  439. package/dist/index.js.map +1 -1
  440. package/dist/local-mode/attach-transaction.d.ts.map +1 -1
  441. package/dist/local-mode/attach-transaction.js +34 -20
  442. package/dist/local-mode/attach-transaction.js.map +1 -1
  443. package/dist/local-mode/consumer-policy.d.ts +1 -8
  444. package/dist/local-mode/consumer-policy.d.ts.map +1 -1
  445. package/dist/local-mode/consumer-policy.js.map +1 -1
  446. package/dist/local-mode/index.d.ts +1 -2
  447. package/dist/local-mode/index.d.ts.map +1 -1
  448. package/dist/local-mode/index.js.map +1 -1
  449. package/dist/local-mode/process-runner.d.ts +1 -4
  450. package/dist/local-mode/process-runner.d.ts.map +1 -1
  451. package/dist/local-mode/process-runner.js +1 -19
  452. package/dist/local-mode/process-runner.js.map +1 -1
  453. package/dist/local-mode/types.d.ts +10 -12
  454. package/dist/local-mode/types.d.ts.map +1 -1
  455. package/dist/package-self-check.d.ts.map +1 -1
  456. package/dist/package-self-check.js +2 -1
  457. package/dist/package-self-check.js.map +1 -1
  458. package/dist/process-execution/node-process-runner.d.ts +10 -0
  459. package/dist/process-execution/node-process-runner.d.ts.map +1 -0
  460. package/dist/process-execution/node-process-runner.js +270 -0
  461. package/dist/process-execution/node-process-runner.js.map +1 -0
  462. package/dist/process-execution/types.d.ts +23 -0
  463. package/dist/process-execution/types.d.ts.map +1 -0
  464. package/dist/process-execution/types.js +2 -0
  465. package/dist/process-execution/types.js.map +1 -0
  466. package/dist/process-execution/windows-managed-process.d.ts +13 -0
  467. package/dist/process-execution/windows-managed-process.d.ts.map +1 -0
  468. package/dist/process-execution/windows-managed-process.js +389 -0
  469. package/dist/process-execution/windows-managed-process.js.map +1 -0
  470. package/dist/process-execution/windows-process-host.d.ts +2 -0
  471. package/dist/process-execution/windows-process-host.d.ts.map +1 -0
  472. package/dist/process-execution/windows-process-host.js +59 -0
  473. package/dist/process-execution/windows-process-host.js.map +1 -0
  474. package/dist/schema-ids.d.ts +1 -1
  475. package/dist/schema-ids.d.ts.map +1 -1
  476. package/dist/schema-ids.js +9 -0
  477. package/dist/schema-ids.js.map +1 -1
  478. package/dist/strict-yaml.d.ts +1 -1
  479. package/dist/strict-yaml.d.ts.map +1 -1
  480. package/dist/strict-yaml.js +33 -33
  481. package/dist/strict-yaml.js.map +1 -1
  482. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.d.ts.map +1 -1
  483. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.js +7 -6
  484. package/dist/workspace-inventory/adapters/outbound/pnpm/pnpm-workspace-inventory-reader.js.map +1 -1
  485. package/package.json +9 -1
  486. package/schemas/architecture-source-dependencies/v1.schema.json +6 -1
  487. package/schemas/contract-json-schema-release-baseline/v1.schema.json +65 -0
  488. package/schemas/contract-json-schema-releases/v1.schema.json +119 -0
  489. package/schemas/contract-protobuf-evolution/v1.schema.json +115 -0
  490. package/schemas/contract-protobuf-evolution-baseline/v1.schema.json +54 -0
  491. package/schemas/documentation-local-references/v1.schema.json +29 -0
  492. package/schemas/foundation-config/v1.schema.json +40 -0
  493. package/schemas/governance-architecture-decision-baseline/v1.schema.json +37 -0
  494. package/schemas/governance-architecture-decisions/v1.schema.json +63 -0
  495. package/schemas/package-public-api-baseline/v1.schema.json +1 -1
  496. package/schemas/package-public-api-baseline/v2.schema.json +62 -0
  497. package/schemas/package-public-api-compatibility/v1.schema.json +2 -0
  498. package/schemas/package-public-api-compatibility/v2.schema.json +113 -0
  499. package/schemas/repository-security-baseline/v1.schema.json +95 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluate-source-dependency-cycles.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/policies/evaluate-source-dependency-cycles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,yCAAyC,CAAC;AAOjD,OAAO,EACL,uBAAuB,EAExB,MAAM,aAAa,CAAC;AAiBrB,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAEtC,SAAS,UAAU,CAAC,KAOnB;IACC,OAAO;QACL,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE;QACrB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ;QAC7B,OAAO,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E,SAAS,CAAC,UAAU;oBAC1B,WAAW,EAAE,SAAS,CAAC,UAAU;oBACjC,QAAQ,EAAE;wBACR,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE;wBACrC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE;wBACnC,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAoB,CAAC,EAAE;wBAClF,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;wBAC3D,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE;wBAC/D,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;qBAC1E;iBACF,CAAC,CACH,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -8,10 +8,16 @@ export interface SourceDependencyRuleMetadata {
8
8
  readonly requiresArchitectureReview: boolean;
9
9
  }
10
10
  export declare const SOURCE_DEPENDENCY_RULES: Readonly<{
11
+ boundaryRuntimeCycle: SourceDependencyRuleMetadata;
12
+ boundaryTypeOnlyCycle: SourceDependencyRuleMetadata;
11
13
  crossPackageRelativeImport: SourceDependencyRuleMetadata;
14
+ crossBoundaryLocalImportNotEntrypoint: SourceDependencyRuleMetadata;
12
15
  forbiddenBoundaryDependency: SourceDependencyRuleMetadata;
13
16
  forbiddenBuiltinDependency: SourceDependencyRuleMetadata;
14
17
  forbiddenPackageDependency: SourceDependencyRuleMetadata;
18
+ invalidBoundaryEntrypoint: SourceDependencyRuleMetadata;
19
+ packageRuntimeCycle: SourceDependencyRuleMetadata;
20
+ packageTypeOnlyCycle: SourceDependencyRuleMetadata;
15
21
  packageSubpathNotExported: SourceDependencyRuleMetadata;
16
22
  sourceParseError: SourceDependencyRuleMetadata;
17
23
  undeclaredExternalDependency: SourceDependencyRuleMetadata;
@@ -19,6 +25,7 @@ export declare const SOURCE_DEPENDENCY_RULES: Readonly<{
19
25
  unresolvedLocalImport: SourceDependencyRuleMetadata;
20
26
  unresolvedRuntimeReference: SourceDependencyRuleMetadata;
21
27
  runtimeImportFromDevelopmentDependency: SourceDependencyRuleMetadata;
28
+ selfPackageImportBoundaryUnresolved: SourceDependencyRuleMetadata;
22
29
  unsupportedImportSpecifier: SourceDependencyRuleMetadata;
23
30
  unclassifiedSourceFile: SourceDependencyRuleMetadata;
24
31
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC;CAC9C;AAkBD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;EA0ElC,CAAC;AAEH,eAAO,MAAM,6BAA6B,EAAE,WAAW,CACrD,MAAM,EACN,4BAA4B,CAG7B,CAAC"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC;CAC9C;AAkBD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;EAoHlC,CAAC;AAEH,eAAO,MAAM,6BAA6B,EAAE,WAAW,CACrD,MAAM,EACN,4BAA4B,CAG7B,CAAC"}
@@ -9,10 +9,16 @@ function rule(suffix, rationale, remediation, requiresArchitectureReview = false
9
9
  });
10
10
  }
11
11
  export const SOURCE_DEPENDENCY_RULES = Object.freeze({
12
+ boundaryRuntimeCycle: rule("boundary-runtime-cycle", "A runtime cycle between architecture boundaries prevents an independent ownership direction.", "Break the boundary cycle with a port, event, or extracted shared contract.", true),
13
+ boundaryTypeOnlyCycle: rule("boundary-type-only-cycle", "A type-only cycle still couples architecture boundaries and makes their public contracts mutually recursive.", "Move shared types to an explicit contract boundary or remove the cyclic type dependency.", true),
12
14
  crossPackageRelativeImport: rule("cross-package-relative-import", "Cross-package relative imports bypass package identity and public exports.", "Import the target package through an exported package subpath.", true),
15
+ crossBoundaryLocalImportNotEntrypoint: rule("cross-boundary-local-import-not-entrypoint", "Every cross-boundary local import must use a deliberately declared target entrypoint.", "Import the target boundary through one of its declared entrypoint source files.", true),
13
16
  forbiddenBoundaryDependency: rule("forbidden-boundary-dependency", "Source boundaries must follow the consumer-owned architecture graph.", "Move the dependency behind a port or approve the boundary edge.", true),
14
17
  forbiddenBuiltinDependency: rule("forbidden-builtin-dependency", "Runtime builtins are capabilities that must be explicit per boundary.", "Move the builtin access to an adapter or approve it for this boundary.", true),
15
18
  forbiddenPackageDependency: rule("forbidden-package-dependency", "Package dependencies must be explicit per architecture boundary.", "Move the import behind a port or approve the package for this boundary.", true),
19
+ invalidBoundaryEntrypoint: rule("invalid-boundary-entrypoint", "Boundary entrypoints must resolve to governed source classified by the boundary that declares them.", "Correct the entrypoint path or update the boundary classification before relying on it.", true),
20
+ packageRuntimeCycle: rule("package-runtime-cycle", "A runtime cycle between workspace packages prevents independent package ownership and release ordering.", "Break the package cycle with an explicit contract package or directional port.", true),
21
+ packageTypeOnlyCycle: rule("package-type-only-cycle", "A type-only cycle between workspace packages couples their public type surfaces and release order.", "Extract shared types into a directional contract package or remove the cyclic type dependency.", true),
16
22
  packageSubpathNotExported: rule("package-subpath-not-exported", "Workspace consumers may only import explicit package exports.", "Use an existing public entrypoint or deliberately add a package export.", true),
17
23
  sourceParseError: rule("source-parse-error", "Architecture evidence cannot be trusted when governed source does not parse.", "Fix the source syntax before evaluating architecture boundaries."),
18
24
  undeclaredExternalDependency: rule("undeclared-external-dependency", "Runtime source must not rely on undeclared transitive dependencies.", "Declare the external package in dependencies, optionalDependencies, or peerDependencies."),
@@ -20,6 +26,7 @@ export const SOURCE_DEPENDENCY_RULES = Object.freeze({
20
26
  unresolvedLocalImport: rule("unresolved-local-import", "Unresolved governed imports make the observed dependency graph incomplete.", "Use a supported literal import that resolves to a governed source file."),
21
27
  unresolvedRuntimeReference: rule("unresolved-runtime-reference", "Non-literal runtime loading can hide architecture edges from static evidence.", "Centralize dynamic loading behind an approved adapter with literal module references.", true),
22
28
  runtimeImportFromDevelopmentDependency: rule("runtime-import-from-development-dependency", "Published runtime source cannot depend only on development dependencies.", "Move the dependency to an appropriate runtime dependency section."),
29
+ selfPackageImportBoundaryUnresolved: rule("self-package-import-boundary-unresolved", "A package-name import back into the importing workspace package does not reveal the target source boundary.", "Use a relative import governed by declared boundary entrypoints, or move the public surface into a separate workspace package.", true),
23
30
  unsupportedImportSpecifier: rule("unsupported-import-specifier", "Unsupported specifiers cannot be classified reliably by the architecture gate.", "Use relative, node builtin, declared external, or governed workspace package imports.", true),
24
31
  unclassifiedSourceFile: rule("unclassified-source-file", "Every governed source file must belong to exactly one declared architecture boundary.", "Classify the file in an existing boundary or introduce an explicitly reviewed boundary.", true)
25
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AAWA,SAAS,IAAI,CACX,MAAc,EACd,SAAiB,EACjB,WAAmB,EACnB,0BAA0B,GAAG,KAAK;IAElC,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,EAAE,EAAE,oCAAoC,MAAM,EAAE;QAChD,QAAQ,EAAE,OAAO;QACjB,SAAS;QACT,WAAW;QACX,aAAa,EAAE,8EAA8E;QAC7F,0BAA0B;KAC3B,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,0BAA0B,EAAE,IAAI,CAC9B,+BAA+B,EAC/B,4EAA4E,EAC5E,gEAAgE,EAChE,IAAI,CACL;IACD,2BAA2B,EAAE,IAAI,CAC/B,+BAA+B,EAC/B,sEAAsE,EACtE,iEAAiE,EACjE,IAAI,CACL;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,uEAAuE,EACvE,wEAAwE,EACxE,IAAI,CACL;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,kEAAkE,EAClE,yEAAyE,EACzE,IAAI,CACL;IACD,yBAAyB,EAAE,IAAI,CAC7B,8BAA8B,EAC9B,+DAA+D,EAC/D,yEAAyE,EACzE,IAAI,CACL;IACD,gBAAgB,EAAE,IAAI,CACpB,oBAAoB,EACpB,8EAA8E,EAC9E,kEAAkE,CACnE;IACD,4BAA4B,EAAE,IAAI,CAChC,gCAAgC,EAChC,qEAAqE,EACrE,0FAA0F,CAC3F;IACD,6BAA6B,EAAE,IAAI,CACjC,iCAAiC,EACjC,6EAA6E,EAC7E,4EAA4E,CAC7E;IACD,qBAAqB,EAAE,IAAI,CACzB,yBAAyB,EACzB,4EAA4E,EAC5E,yEAAyE,CAC1E;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,+EAA+E,EAC/E,uFAAuF,EACvF,IAAI,CACL;IACD,sCAAsC,EAAE,IAAI,CAC1C,4CAA4C,EAC5C,0EAA0E,EAC1E,mEAAmE,CACpE;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,gFAAgF,EAChF,uFAAuF,EACvF,IAAI,CACL;IACD,sBAAsB,EAAE,IAAI,CAC1B,0BAA0B,EAC1B,uFAAuF,EACvF,yFAAyF,EACzF,IAAI,CACL;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAGtC,IAAI,GAAG,CACT,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAClF,CAAC"}
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/application/rules.ts"],"names":[],"mappings":"AAWA,SAAS,IAAI,CACX,MAAc,EACd,SAAiB,EACjB,WAAmB,EACnB,0BAA0B,GAAG,KAAK;IAElC,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,EAAE,EAAE,oCAAoC,MAAM,EAAE;QAChD,QAAQ,EAAE,OAAO;QACjB,SAAS;QACT,WAAW;QACX,aAAa,EAAE,8EAA8E;QAC7F,0BAA0B;KAC3B,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,oBAAoB,EAAE,IAAI,CACxB,wBAAwB,EACxB,8FAA8F,EAC9F,4EAA4E,EAC5E,IAAI,CACL;IACD,qBAAqB,EAAE,IAAI,CACzB,0BAA0B,EAC1B,8GAA8G,EAC9G,0FAA0F,EAC1F,IAAI,CACL;IACD,0BAA0B,EAA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AmE,CACpE;IACD,mCAAmC,EAAE,IAAI,CACvC,yCAAyC,EACzC,6GAA6G,EAC7G,gIAAgI,EAChI,IAAI,CACL;IACD,0BAA0B,EAAE,IAAI,CAC9B,8BAA8B,EAC9B,gFAAgF,EAChF,uFAAuF,EACvF,IAAI,CACL;IACD,sBAAsB,EAAE,IAAI,CAC1B,0BAA0B,EAC1B,uFAAuF,EACvF,yFAAyF,EACzF,IAAI,CACL;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAGtC,IAAI,GAAG,CACT,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC,CAClF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"analyze-source-dependencies.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;AAG7G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AAChI,OAAO,KAAK,EAGV,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAGvF,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,qCAAqC;IACpD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;CACzC;AA+ED,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,8BAA8B,EACrC,YAAY,EAAE,qCAAqC,GAClD,OAAO,CAAC,SAAS,oBAAoB,EAAE,CAAC,CA4B1C"}
1
+ {"version":3,"file":"analyze-source-dependencies.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sEAAsE,CAAC;AAE7G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AAChI,OAAO,KAAK,EAGV,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAIvF,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AAED,MAAM,WAAW,qCAAqC;IACpD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;CACzC;AAqHD,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,8BAA8B,EACrC,YAAY,EAAE,qCAAqC,GAClD,OAAO,CAAC,SAAS,oBAAoB,EAAE,CAAC,CAgC1C"}
@@ -1,15 +1,43 @@
1
+ import { compareBinaryStrings } from "../../../../binary-string-comparator.js";
2
+ import { assertNotCancelled } from "../../../../cancellation.js";
1
3
  import { CapabilityInputError } from "../../../../capability-runtime.js";
2
- import { assertNotCancelled } from "../../../../strict-yaml.js";
4
+ import { normalizeRepositoryPath, pathIsInside } from "../model/repository-path.js";
3
5
  import { evaluateSourceDependencies } from "../policies/evaluate-source-dependencies.js";
6
+ import { buildObservedSourceGraph } from "./build-observed-source-graph.js";
4
7
  function pathInside(path, root) {
5
- return path === root || path.startsWith(`${root}/`);
8
+ return pathIsInside(path, root);
6
9
  }
7
- function deepestBoundary(file, boundaries) {
8
- return boundaries
9
- .filter((boundary) => boundary.roots.some((root) => pathInside(file.path, root)))
10
- .toSorted((left, right) => Math.max(...right.roots.map((root) => root.length)) -
11
- Math.max(...left.roots.map((root) => root.length)) ||
12
- left.id.localeCompare(right.id))[0];
10
+ function matchingBoundarySpecificity(path, boundary) {
11
+ const matchingRoots = boundary.roots
12
+ .filter((root) => pathInside(path, root))
13
+ .map((root) => normalizeRepositoryPath(root).length);
14
+ return matchingRoots.length === 0 ? undefined : Math.max(...matchingRoots);
15
+ }
16
+ function selectBoundary(file, policy) {
17
+ const matches = [];
18
+ for (const boundary of policy.boundaries) {
19
+ const specificity = matchingBoundarySpecificity(file.path, boundary);
20
+ if (specificity !== undefined) {
21
+ matches.push({ boundary, specificity });
22
+ }
23
+ }
24
+ if (matches.length === 0) {
25
+ return undefined;
26
+ }
27
+ const highestSpecificity = Math.max(...matches.map((match) => match.specificity));
28
+ const mostSpecific = matches
29
+ .filter((match) => match.specificity === highestSpecificity)
30
+ .toSorted((left, right) => compareBinaryStrings(left.boundary.id, right.boundary.id));
31
+ if (mostSpecific.length > 1) {
32
+ const candidateIds = mostSpecific.map((match) => match.boundary.id).join(", ");
33
+ throw new CapabilityInputError({
34
+ code: "SOURCE_BOUNDARY_AMBIGUOUS",
35
+ message: `Source file matches multiple equally specific architecture boundaries: ${file.path} (${candidateIds}).`,
36
+ phase: "source-boundary-classification",
37
+ retryable: false
38
+ });
39
+ }
40
+ return mostSpecific[0]?.boundary;
13
41
  }
14
42
  function containingPackage(path, packages) {
15
43
  return packages
@@ -17,22 +45,26 @@ function containingPackage(path, packages) {
17
45
  ? true
18
46
  : pathInside(path, workspacePackage.rootPath))
19
47
  .toSorted((left, right) => right.rootPath.length - left.rootPath.length ||
20
- left.name.localeCompare(right.name))[0];
48
+ compareBinaryStrings(left.name, right.name))[0];
21
49
  }
22
50
  function classifyFiles(files, policy, packages, parser, signal) {
23
51
  const classified = [];
24
52
  for (const file of files) {
25
53
  assertNotCancelled(signal);
26
- const boundary = deepestBoundary(file, policy.boundaries);
27
- const workspacePackage = containingPackage(file.path, packages);
54
+ const normalizedFile = {
55
+ ...file,
56
+ path: normalizeRepositoryPath(file.path)
57
+ };
58
+ const boundary = selectBoundary(normalizedFile, policy);
59
+ const workspacePackage = containingPackage(normalizedFile.path, packages);
28
60
  if (boundary === undefined || workspacePackage === undefined) {
29
61
  continue;
30
62
  }
31
63
  classified.push({
32
- ...file,
64
+ ...normalizedFile,
33
65
  boundary,
34
66
  workspacePackage,
35
- parsed: parser.parse(file)
67
+ parsed: parser.parse(normalizedFile)
36
68
  });
37
69
  }
38
70
  return classified;
@@ -58,12 +90,16 @@ export async function analyzeSourceDependencies(input, dependencies) {
58
90
  ]);
59
91
  assertInventoryUsable(inventory.packages);
60
92
  const classifiedFiles = classifyFiles(sourceFiles, input.policy, inventory.packages, dependencies.parser, input.signal);
61
- return evaluateSourceDependencies({
62
- policy: input.policy,
93
+ const graph = buildObservedSourceGraph({
63
94
  inventory,
64
95
  allSourceFiles: sourceFiles,
65
96
  classifiedFiles,
66
- resolver: dependencies.resolver
97
+ resolver: dependencies.resolver,
98
+ ...(input.signal === undefined ? {} : { signal: input.signal })
99
+ });
100
+ return evaluateSourceDependencies({
101
+ policy: input.policy,
102
+ graph
67
103
  });
68
104
  }
69
105
  //# sourceMappingURL=analyze-source-dependencies.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"analyze-source-dependencies.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAIzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAUhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAezF,SAAS,UAAU,CAAC,IAAY,EAAE,IAAY;IAC5C,OAAO,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,eAAe,CACtB,IAAwB,EACxB,UAAiD;IAEjD,OAAO,UAAU;SACd,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;SAChF,QAAQ,CACP,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAClC,CAAC,CAAC,CAAC,CAAC;AACT,CAAC;AAED,SAAS,iBAAiB,CACxB,IAAY,EACZ,QAAqC;IAErC,OAAO,QAAQ;SACZ,MAAM,CAAC,CA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UAAU,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;YACtF,MAAM,IAAI,oBAAoB,CAAC;gBAC7B,IAAI,EAAE,4BAA4B;gBAClC,OAAO,EAAE,+DAA+D;gBACxE,KAAK,EAAE,4BAA4B;gBACnC,SAAS,EAAE,KAAK;aACjB,CAAC,CAAC;QACL,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,KAAqC,EACrC,YAAmD;IAEnD,MAAM,CAAC,SAAS,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACjD,YAAY,CAAC,eAAe,CAAC,IAAI,CAC/B,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,MAAM,CAAC,qBAAqB,EAClC,KAAK,CAAC,MAAM,CACb;QACD,YAAY,CAAC,YAAY,CAAC,IAAI,CAC5B,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,MAAM,CAAC,aAAa,EAC1B,KAAK,CAAC,MAAM,CACb;KACF,CAAC,CAAC;IACH,qBAAqB,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,eAAe,GAAG,aAAa,CACnC,WAAW,EACX,KAAK,CAAC,MAAM,EACZ,SAAS,CAAC,QAAQ,EAClB,YAAY,CAAC,MAAM,EACnB,KAAK,CAAC,MAAM,CACb,CAAC;IACF,OAAO,0BAA0B,CAAC;QAChC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,SAAS;QACT,cAAc,EAAE,WAAW;QAC3B,eAAe;QACf,QAAQ,EAAE,YAAY,CAAC,QAAQ;KAChC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"analyze-source-dependencies.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/analyze-source-depend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AAC;QAChC,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,KAAK;KACN,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { SourceFileSnapshot } from "../../../../source-inventory/application/model/source-file-snapshot.js";
2
+ import type { WorkspaceInventory } from "../../../../workspace-inventory/application/model/workspace-inventory.js";
3
+ import type { ClassifiedSourceFile, ObservedSourceGraph } from "../model/source-workspace.js";
4
+ import type { SourceDependencyResolver } from "../ports/source-dependency-resolver.js";
5
+ export interface BuildObservedSourceGraphInput {
6
+ readonly inventory: WorkspaceInventory;
7
+ readonly allSourceFiles: readonly SourceFileSnapshot[];
8
+ readonly classifiedFiles: readonly ClassifiedSourceFile[];
9
+ readonly resolver: SourceDependencyResolver;
10
+ readonly signal?: AbortSignal;
11
+ }
12
+ /**
13
+ * Collects all static evidence once. Later policies only inspect this immutable
14
+ * graph and do not invoke the parser or resolver again.
15
+ */
16
+ export declare function buildObservedSourceGraph(input: BuildObservedSourceGraphInput): ObservedSourceGraph;
17
+ //# sourceMappingURL=build-observed-source-graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-observed-source-graph.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wEAAwE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAC;AAInH,OAAO,KAAK,EACV,oBAAoB,EAGpB,mBAAmB,EAMpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAEvF,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,cAAc,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACvD,QAAQ,CAAC,eAAe,EAAE,SAAS,oBAAoB,EAAE,CAAC;IAC1D,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;CAC/B;AA8JD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,6BAA6B,GACnC,mBAAmB,CA8GrB"}
@@ -0,0 +1,216 @@
1
+ import { compareBinaryStrings } from "../../../../binary-string-comparator.js";
2
+ import { assertNotCancelled } from "../../../../cancellation.js";
3
+ import { CapabilityInputError } from "../../../../capability-runtime.js";
4
+ import { normalizeRepositoryPath } from "../model/repository-path.js";
5
+ function inputError(code, message) {
6
+ throw new CapabilityInputError({
7
+ code,
8
+ message,
9
+ phase: "observed-source-graph",
10
+ retryable: false
11
+ });
12
+ }
13
+ function edgeMode(kind) {
14
+ switch (kind) {
15
+ case "export-type":
16
+ case "import-equals-type":
17
+ case "static-type":
18
+ case "type-query":
19
+ return "type-only";
20
+ case "commonjs":
21
+ case "dynamic":
22
+ case "export":
23
+ case "import-equals":
24
+ case "static":
25
+ return "runtime";
26
+ }
27
+ }
28
+ function normalizedSourcePaths(files) {
29
+ const paths = files.map((file) => normalizeRepositoryPath(file.path)).toSorted();
30
+ for (let index = 1; index < paths.length; index += 1) {
31
+ if (paths[index] === paths[index - 1]) {
32
+ inputError("OBSERVED_SOURCE_GRAPH_DUPLICATE_PATH", `Observed source paths normalize to the same repository path: ${paths[index]}.`);
33
+ }
34
+ }
35
+ return Object.freeze(paths);
36
+ }
37
+ function normalizedClassifiedFile(file) {
38
+ return {
39
+ ...file,
40
+ path: normalizeRepositoryPath(file.path)
41
+ };
42
+ }
43
+ function compareNodes(left, right) {
44
+ return compareBinaryStrings(left.path, right.path);
45
+ }
46
+ function resolutionKey(resolution) {
47
+ switch (resolution.kind) {
48
+ case "builtin":
49
+ return `${resolution.kind}:${resolution.specifier}`;
50
+ case "external-package":
51
+ return `${resolution.kind}:${resolution.packageName}:${resolution.declaration}`;
52
+ case "local-file":
53
+ return `${resolution.kind}:${resolution.path}:${resolution.targetBoundaryId ?? ""}`;
54
+ case "self-workspace-package":
55
+ return `${resolution.kind}:${resolution.workspacePackageName}:${resolution.subpath}`;
56
+ case "unsupported":
57
+ case "unresolved":
58
+ return `${resolution.kind}:${resolution.reason}`;
59
+ case "workspace-package":
60
+ return `${resolution.kind}:${resolution.workspacePackageName}:${resolution.subpath}`;
61
+ }
62
+ }
63
+ function compareEdges(left, right) {
64
+ return (compareBinaryStrings(left.fromPath, right.fromPath) ||
65
+ compareBinaryStrings(left.mode, right.mode) ||
66
+ compareBinaryStrings(left.kind, right.kind) ||
67
+ compareBinaryStrings(left.specifier, right.specifier) ||
68
+ left.start - right.start ||
69
+ left.end - right.end ||
70
+ compareBinaryStrings(resolutionKey(left.resolution), resolutionKey(right.resolution)));
71
+ }
72
+ function normalizeResolution(resolved, governedFilePaths, nodesByPath) {
73
+ switch (resolved.kind) {
74
+ case "builtin":
75
+ return Object.freeze({ kind: resolved.kind, specifier: resolved.specifier });
76
+ case "external-package":
77
+ return Object.freeze({
78
+ kind: resolved.kind,
79
+ packageName: resolved.packageName,
80
+ declaration: resolved.declaration
81
+ });
82
+ case "local-file": {
83
+ const path = normalizeRepositoryPath(resolved.path);
84
+ if (!governedFilePaths.has(path)) {
85
+ return Object.freeze({
86
+ kind: "unresolved",
87
+ reason: "resolver returned a local target outside governed source inventory"
88
+ });
89
+ }
90
+ const targetNode = nodesByPath.get(path);
91
+ if (targetNode !== undefined &&
92
+ targetNode.workspacePackageName !== resolved.workspacePackage.name) {
93
+ return Object.freeze({
94
+ kind: "unresolved",
95
+ reason: "resolver returned a local target with a mismatched workspace package"
96
+ });
97
+ }
98
+ return Object.freeze({
99
+ kind: resolved.kind,
100
+ path,
101
+ workspacePackageName: resolved.workspacePackage.name,
102
+ workspacePackageManifestPath: resolved.workspacePackage.manifestPath,
103
+ targetBoundaryId: targetNode?.boundaryId ?? null
104
+ });
105
+ }
106
+ case "self-workspace-package":
107
+ return Object.freeze({
108
+ kind: resolved.kind,
109
+ workspacePackageName: resolved.workspacePackage.name,
110
+ workspacePackageManifestPath: resolved.workspacePackage.manifestPath,
111
+ exported: resolved.exported,
112
+ subpath: resolved.subpath
113
+ });
114
+ case "unsupported":
115
+ case "unresolved":
116
+ return Object.freeze({ kind: resolved.kind, reason: resolved.reason });
117
+ case "workspace-package":
118
+ return Object.freeze({
119
+ kind: resolved.kind,
120
+ workspacePackageName: resolved.workspacePackage.name,
121
+ workspacePackageManifestPath: resolved.workspacePackage.manifestPath,
122
+ declaration: resolved.declaration,
123
+ exported: resolved.exported,
124
+ subpath: resolved.subpath
125
+ });
126
+ }
127
+ }
128
+ function createNode(file) {
129
+ return Object.freeze({
130
+ path: file.path,
131
+ boundaryId: file.boundary.id,
132
+ workspacePackageName: file.workspacePackage.name,
133
+ workspacePackageManifestPath: file.workspacePackage.manifestPath
134
+ });
135
+ }
136
+ /**
137
+ * Collects all static evidence once. Later policies only inspect this immutable
138
+ * graph and do not invoke the parser or resolver again.
139
+ */
140
+ export function buildObservedSourceGraph(input) {
141
+ const sourcePaths = normalizedSourcePaths(input.allSourceFiles);
142
+ const governedFilePaths = new Set(sourcePaths);
143
+ const normalizedClassified = input.classifiedFiles
144
+ .map(normalizedClassifiedFile)
145
+ .toSorted((left, right) => compareBinaryStrings(left.path, right.path));
146
+ const nodes = [];
147
+ const nodesByPath = new Map();
148
+ for (const file of normalizedClassified) {
149
+ assertNotCancelled(input.signal);
150
+ if (!governedFilePaths.has(file.path)) {
151
+ inputError("OBSERVED_SOURCE_GRAPH_CLASSIFICATION_OUTSIDE_INVENTORY", `Classified source is absent from governed source inventory: ${file.path}.`);
152
+ }
153
+ if (nodesByPath.has(file.path)) {
154
+ inputError("OBSERVED_SOURCE_GRAPH_DUPLICATE_CLASSIFICATION", `Source has more than one architecture classification: ${file.path}.`);
155
+ }
156
+ const node = createNode(file);
157
+ nodes.push(node);
158
+ nodesByPath.set(node.path, node);
159
+ }
160
+ const edges = [];
161
+ const parseFailures = [];
162
+ const unresolvedRuntimeReferences = [];
163
+ for (const file of normalizedClassified) {
164
+ assertNotCancelled(input.signal);
165
+ const node = nodesByPath.get(file.path);
166
+ if (node === undefined) {
167
+ inputError("OBSERVED_SOURCE_GRAPH_NODE_MISSING", `Classified source graph node is missing: ${file.path}.`);
168
+ }
169
+ if (file.parsed.parseErrorCount > 0) {
170
+ parseFailures.push(Object.freeze({ path: file.path, parseErrorCount: file.parsed.parseErrorCount }));
171
+ continue;
172
+ }
173
+ for (const unresolved of file.parsed.unresolved) {
174
+ unresolvedRuntimeReferences.push(Object.freeze({
175
+ path: file.path,
176
+ boundaryId: node.boundaryId,
177
+ kind: unresolved.kind,
178
+ start: unresolved.start,
179
+ end: unresolved.end
180
+ }));
181
+ }
182
+ for (const reference of file.parsed.references) {
183
+ assertNotCancelled(input.signal);
184
+ edges.push(Object.freeze({
185
+ fromPath: node.path,
186
+ fromBoundaryId: node.boundaryId,
187
+ fromWorkspacePackageName: node.workspacePackageName,
188
+ fromWorkspacePackageManifestPath: node.workspacePackageManifestPath,
189
+ kind: reference.kind,
190
+ mode: edgeMode(reference.kind),
191
+ specifier: reference.specifier,
192
+ start: reference.start,
193
+ end: reference.end,
194
+ resolution: normalizeResolution(input.resolver.resolve({
195
+ file,
196
+ governedFilePaths,
197
+ inventory: input.inventory,
198
+ reference
199
+ }), governedFilePaths, nodesByPath)
200
+ }));
201
+ }
202
+ }
203
+ const classifiedPaths = new Set(nodesByPath.keys());
204
+ return Object.freeze({
205
+ nodes: Object.freeze(nodes.toSorted(compareNodes)),
206
+ edges: Object.freeze(edges.toSorted(compareEdges)),
207
+ parseFailures: Object.freeze(parseFailures.toSorted((left, right) => compareBinaryStrings(left.path, right.path) ||
208
+ left.parseErrorCount - right.parseErrorCount)),
209
+ unclassifiedSourcePaths: Object.freeze(sourcePaths.filter((path) => !classifiedPaths.has(path))),
210
+ unresolvedRuntimeReferences: Object.freeze(unresolvedRuntimeReferences.toSorted((left, right) => compareBinaryStrings(left.path, right.path) ||
211
+ left.start - right.start ||
212
+ compareBinaryStrings(left.kind, right.kind) ||
213
+ left.end - right.end))
214
+ });
215
+ }
216
+ //# sourceMappingURL=build-observed-source-graph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-observed-source-graph.js","sourceRoot":"","sources":["../../../../../src/capabilities/source-dependencies/application/use-cases/build-observed-source-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzE,OAAO,EACL,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAsBrC,SAAS,UAAU,CAAC,IAAY,EAAE,OAAe;IAC/C,MAAM,IAAI,oBAAoB,CAAC;QAC7B,IAAI;QACJ,OAAO;QACP,KAAK,EAAE,uBAAuB;QAC9B,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,QAAQ,CAAC,IAA0B;IAC1C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,aAAa,CAAC;QACnB,KAAK,oBAAoB,CAAC;QAC1B,KAAK,aAAa,CAAC;QACnB,KAAK,YAAY;YACf,OAAO,WAAW,CAAC;QACrB,KAAK,UAAU,CAAC;QAChB,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,eAAe,CAAC;QACrB,KAAK,QAAQ;YACX,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AAED,SAAS,qBAAqB,CAC5B,KAAoC;IAEpC,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IACjF,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAA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;QACnB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAClD,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAClD,aAAa,EAAE,MAAM,CAAC,MAAM,CAC1B,aAAa,CAAC,QAAQ,CACpB,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAC/C,CACF;QACD,uBAAuB,EAAE,MAAM,CAAC,MAAM,CACpC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CACzD;QACD,2BAA2B,EAAE,MAAM,CAAC,MAAM,CACxC,2BAA2B,CAAC,QAAQ,CAClC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CACd,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK;YACxB,oBAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CACvB,CACF;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/contract/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD,eAAO,MAAM,aAAa,EAAG,kCAA2C,CAAC;AACzE,eAAO,MAAM,gCAAgC,EAAG,CAAU,CAAC;AAuG3D,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CA4BnC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/source-dependencies/contract/config.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGV,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAElD,eAAO,MAAM,aAAa,EAAG,kCAA2C,CAAC;AACzE,eAAO,MAAM,gCAAgC,EAAG,CAAU,CAAC;AA4J3D,wBAAsB,oBAAoB,CACxC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAgCnC"}
@@ -1,8 +1,11 @@
1
+ import { compareBinaryStrings } from "../../../binary-string-comparator.js";
1
2
  import { CapabilityInputError } from "../../../capability-runtime.js";
2
3
  import { assertSchema } from "../../../schema-catalog.js";
3
4
  import { loadStrictYamlFile } from "../../../strict-yaml.js";
5
+ import { normalizeRepositoryPath, pathIsInside } from "../application/model/repository-path.js";
4
6
  export const CAPABILITY_ID = "architecture.source-dependencies";
5
7
  export const CAPABILITY_CONFIG_SCHEMA_VERSION = 1;
8
+ const SOURCE_ARCHITECTURE_SCHEMA_ID = "architecture-source-dependencies/v1";
6
9
  function inputError(message) {
7
10
  throw new CapabilityInputError({
8
11
  code: "SOURCE_ARCHITECTURE_CONFIG_INVALID",
@@ -39,12 +42,29 @@ function string(value, field) {
39
42
  }
40
43
  return value;
41
44
  }
42
- function pathInside(path, root) {
43
- return path === root || path.startsWith(`${root}/`);
45
+ function schemaVersion(value) {
46
+ if (value === 1) {
47
+ return value;
48
+ }
49
+ inputError("schemaVersion must be 1.");
50
+ }
51
+ async function assertSourceArchitectureSchema(input) {
52
+ await assertSchema(SOURCE_ARCHITECTURE_SCHEMA_ID, input, "source-architecture-config");
53
+ }
54
+ function sortedStrings(value, field) {
55
+ return Object.freeze(strings(value, field).toSorted());
44
56
  }
45
57
  function validatePolicy(policy) {
58
+ const governedRoots = new Set();
46
59
  const boundaryIds = new Set();
47
60
  const boundaryRoots = new Set();
61
+ const boundaryEntrypoints = new Set();
62
+ for (const root of policy.governedRoots) {
63
+ if (governedRoots.has(root)) {
64
+ inputError(`Governed root is duplicated after normalization: ${root}.`);
65
+ }
66
+ governedRoots.add(root);
67
+ }
48
68
  for (const boundary of policy.boundaries) {
49
69
  if (boundaryIds.has(boundary.id)) {
50
70
  inputError(`Architecture boundary ID is duplicated: ${boundary.id}.`);
@@ -54,11 +74,20 @@ function validatePolicy(policy) {
54
74
  if (boundaryRoots.has(root)) {
55
75
  inputError(`Architecture boundary root is duplicated: ${root}.`);
56
76
  }
57
- if (!policy.governedRoots.some((governedRoot) => pathInside(root, governedRoot))) {
77
+ if (!policy.governedRoots.some((governedRoot) => pathIsInside(root, governedRoot))) {
58
78
  inputError(`Architecture boundary root is outside governed roots: ${root}.`);
59
79
  }
60
80
  boundaryRoots.add(root);
61
81
  }
82
+ for (const entrypoint of boundary.entrypoints) {
83
+ if (boundaryEntrypoints.has(entrypoint)) {
84
+ inputError(`Architecture boundary entrypoint is duplicated: ${entrypoint}.`);
85
+ }
86
+ if (!boundary.roots.some((root) => pathIsInside(entrypoint, root))) {
87
+ inputError(`Architecture boundary entrypoint is outside its boundary roots: ${boundary.id}:${entrypoint}.`);
88
+ }
89
+ boundaryEntrypoints.add(entrypoint);
90
+ }
62
91
  }
63
92
  for (const boundary of policy.boundaries) {
64
93
  for (const target of boundary.allowedBoundaries) {
@@ -68,7 +97,7 @@ function validatePolicy(policy) {
68
97
  }
69
98
  }
70
99
  for (const governedRoot of policy.governedRoots) {
71
- if (![...boundaryRoots].some((root) => pathInside(root, governedRoot))) {
100
+ if (![...boundaryRoots].some((root) => pathIsInside(root, governedRoot))) {
72
101
  inputError(`Governed root has no architecture boundary: ${governedRoot}.`);
73
102
  }
74
103
  }
@@ -76,19 +105,22 @@ function validatePolicy(policy) {
76
105
  function mapBoundary(value, index) {
77
106
  const boundary = record(value, `boundaries[${index}]`);
78
107
  const allow = record(boundary["allow"], `boundaries[${index}].allow`);
108
+ const entrypoints = Object.freeze(sortedStrings(boundary["entrypoints"], `boundaries[${index}].entrypoints`).map(normalizeRepositoryPath));
79
109
  return Object.freeze({
80
110
  id: string(boundary["id"], `boundaries[${index}].id`),
81
- roots: Object.freeze(strings(boundary["roots"], `boundaries[${index}].roots`)),
82
- allowedBoundaries: Object.freeze(strings(allow["boundaries"], `boundaries[${index}].allow.boundaries`)),
83
- allowedPackages: Object.freeze(strings(allow["packages"], `boundaries[${index}].allow.packages`)),
84
- allowedBuiltins: Object.freeze(strings(allow["builtins"], `boundaries[${index}].allow.builtins`)),
85
- allowedRuntimeReferences: Object.freeze(strings(allow["runtimeReferences"], `boundaries[${index}].allow.runtimeReferences`))
111
+ roots: Object.freeze(sortedStrings(boundary["roots"], `boundaries[${index}].roots`).map(normalizeRepositoryPath)),
112
+ entrypoints,
113
+ allowedBoundaries: sortedStrings(allow["boundaries"], `boundaries[${index}].allow.boundaries`),
114
+ allowedPackages: sortedStrings(allow["packages"], `boundaries[${index}].allow.packages`),
115
+ allowedBuiltins: sortedStrings(allow["builtins"], `boundaries[${index}].allow.builtins`),
116
+ allowedRuntimeReferences: sortedStrings(allow["runtimeReferences"], `boundaries[${index}].allow.runtimeReferences`)
86
117
  });
87
118
  }
88
119
  export async function loadCapabilityConfig(consumerRoot, configPath, signal) {
89
120
  const input = await loadStrictYamlFile(consumerRoot, configPath, "source-architecture-config", signal);
90
- await assertSchema("architecture-source-dependencies/v1", input, "source-architecture-config");
91
121
  const root = record(input, "source architecture config");
122
+ const version = schemaVersion(root["schemaVersion"]);
123
+ await assertSourceArchitectureSchema(input);
92
124
  const workspace = record(root["workspace"], "workspace");
93
125
  const boundaryInput = root["boundaries"];
94
126
  if (!Array.isArray(boundaryInput)) {
@@ -98,9 +130,12 @@ export async function loadCapabilityConfig(consumerRoot, configPath, signal) {
98
130
  inputError("workspace must select pnpm-workspace.yaml.");
99
131
  }
100
132
  const policy = Object.freeze({
133
+ schemaVersion: version,
101
134
  workspaceManifestPath: "pnpm-workspace.yaml",
102
- governedRoots: Object.freeze(strings(root["governedRoots"], "governedRoots")),
103
- boundaries: Object.freeze(boundaryInput.map(mapBoundary))
135
+ governedRoots: Object.freeze(sortedStrings(root["governedRoots"], "governedRoots").map(normalizeRepositoryPath)),
136
+ boundaries: Object.freeze(boundaryInput
137
+ .map((boundary, index) => mapBoundary(boundary, index))
138
+ .toSorted((left, right) => compareBinaryStrings(left.id, right.id)))
104
139
  });
105
140
  validatePolicy(policy);
106
141
  return policy;