driftdetect-core 0.5.0 → 0.6.1

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 (350) hide show
  1. package/dist/boundaries/types.d.ts +1 -1
  2. package/dist/boundaries/types.d.ts.map +1 -1
  3. package/dist/call-graph/analysis/graph-builder.d.ts.map +1 -1
  4. package/dist/call-graph/analysis/graph-builder.js +1 -0
  5. package/dist/call-graph/analysis/graph-builder.js.map +1 -1
  6. package/dist/call-graph/extractors/go-data-access-extractor.d.ts +80 -0
  7. package/dist/call-graph/extractors/go-data-access-extractor.d.ts.map +1 -0
  8. package/dist/call-graph/extractors/go-data-access-extractor.js +457 -0
  9. package/dist/call-graph/extractors/go-data-access-extractor.js.map +1 -0
  10. package/dist/call-graph/extractors/go-extractor.d.ts +103 -0
  11. package/dist/call-graph/extractors/go-extractor.d.ts.map +1 -0
  12. package/dist/call-graph/extractors/go-extractor.js +509 -0
  13. package/dist/call-graph/extractors/go-extractor.js.map +1 -0
  14. package/dist/call-graph/extractors/go-hybrid-extractor.d.ts +97 -0
  15. package/dist/call-graph/extractors/go-hybrid-extractor.d.ts.map +1 -0
  16. package/dist/call-graph/extractors/go-hybrid-extractor.js +496 -0
  17. package/dist/call-graph/extractors/go-hybrid-extractor.js.map +1 -0
  18. package/dist/call-graph/extractors/regex/go-regex.d.ts +51 -0
  19. package/dist/call-graph/extractors/regex/go-regex.d.ts.map +1 -0
  20. package/dist/call-graph/extractors/regex/go-regex.js +435 -0
  21. package/dist/call-graph/extractors/regex/go-regex.js.map +1 -0
  22. package/dist/call-graph/extractors/regex/index.d.ts +1 -0
  23. package/dist/call-graph/extractors/regex/index.d.ts.map +1 -1
  24. package/dist/call-graph/extractors/regex/index.js +8 -0
  25. package/dist/call-graph/extractors/regex/index.js.map +1 -1
  26. package/dist/call-graph/index.d.ts +3 -0
  27. package/dist/call-graph/index.d.ts.map +1 -1
  28. package/dist/call-graph/index.js +5 -0
  29. package/dist/call-graph/index.js.map +1 -1
  30. package/dist/call-graph/types.d.ts +1 -1
  31. package/dist/call-graph/types.d.ts.map +1 -1
  32. package/dist/constraints/extraction/constraint-synthesizer.d.ts +72 -0
  33. package/dist/constraints/extraction/constraint-synthesizer.d.ts.map +1 -0
  34. package/dist/constraints/extraction/constraint-synthesizer.js +336 -0
  35. package/dist/constraints/extraction/constraint-synthesizer.js.map +1 -0
  36. package/dist/constraints/extraction/index.d.ts +10 -0
  37. package/dist/constraints/extraction/index.d.ts.map +1 -0
  38. package/dist/constraints/extraction/index.js +10 -0
  39. package/dist/constraints/extraction/index.js.map +1 -0
  40. package/dist/constraints/extraction/invariant-detector.d.ts +109 -0
  41. package/dist/constraints/extraction/invariant-detector.d.ts.map +1 -0
  42. package/dist/constraints/extraction/invariant-detector.js +979 -0
  43. package/dist/constraints/extraction/invariant-detector.js.map +1 -0
  44. package/dist/constraints/index.d.ts +15 -0
  45. package/dist/constraints/index.d.ts.map +1 -0
  46. package/dist/constraints/index.js +16 -0
  47. package/dist/constraints/index.js.map +1 -0
  48. package/dist/constraints/store/constraint-store.d.ts +110 -0
  49. package/dist/constraints/store/constraint-store.d.ts.map +1 -0
  50. package/dist/constraints/store/constraint-store.js +584 -0
  51. package/dist/constraints/store/constraint-store.js.map +1 -0
  52. package/dist/constraints/types.d.ts +605 -0
  53. package/dist/constraints/types.d.ts.map +1 -0
  54. package/dist/constraints/types.js +57 -0
  55. package/dist/constraints/types.js.map +1 -0
  56. package/dist/constraints/verification/constraint-verifier.d.ts +100 -0
  57. package/dist/constraints/verification/constraint-verifier.d.ts.map +1 -0
  58. package/dist/constraints/verification/constraint-verifier.js +638 -0
  59. package/dist/constraints/verification/constraint-verifier.js.map +1 -0
  60. package/dist/constraints/verification/index.d.ts +8 -0
  61. package/dist/constraints/verification/index.d.ts.map +1 -0
  62. package/dist/constraints/verification/index.js +8 -0
  63. package/dist/constraints/verification/index.js.map +1 -0
  64. package/dist/decisions/analyzer/decision-mining-analyzer.d.ts +121 -0
  65. package/dist/decisions/analyzer/decision-mining-analyzer.d.ts.map +1 -0
  66. package/dist/decisions/analyzer/decision-mining-analyzer.js +904 -0
  67. package/dist/decisions/analyzer/decision-mining-analyzer.js.map +1 -0
  68. package/dist/decisions/analyzer/index.d.ts +5 -0
  69. package/dist/decisions/analyzer/index.d.ts.map +1 -0
  70. package/dist/decisions/analyzer/index.js +5 -0
  71. package/dist/decisions/analyzer/index.js.map +1 -0
  72. package/dist/decisions/extractors/base-commit-extractor.d.ts +104 -0
  73. package/dist/decisions/extractors/base-commit-extractor.d.ts.map +1 -0
  74. package/dist/decisions/extractors/base-commit-extractor.js +305 -0
  75. package/dist/decisions/extractors/base-commit-extractor.js.map +1 -0
  76. package/dist/decisions/extractors/csharp-commit-extractor.d.ts +18 -0
  77. package/dist/decisions/extractors/csharp-commit-extractor.d.ts.map +1 -0
  78. package/dist/decisions/extractors/csharp-commit-extractor.js +281 -0
  79. package/dist/decisions/extractors/csharp-commit-extractor.js.map +1 -0
  80. package/dist/decisions/extractors/index.d.ts +31 -0
  81. package/dist/decisions/extractors/index.d.ts.map +1 -0
  82. package/dist/decisions/extractors/index.js +63 -0
  83. package/dist/decisions/extractors/index.js.map +1 -0
  84. package/dist/decisions/extractors/java-commit-extractor.d.ts +18 -0
  85. package/dist/decisions/extractors/java-commit-extractor.d.ts.map +1 -0
  86. package/dist/decisions/extractors/java-commit-extractor.js +248 -0
  87. package/dist/decisions/extractors/java-commit-extractor.js.map +1 -0
  88. package/dist/decisions/extractors/php-commit-extractor.d.ts +18 -0
  89. package/dist/decisions/extractors/php-commit-extractor.d.ts.map +1 -0
  90. package/dist/decisions/extractors/php-commit-extractor.js +280 -0
  91. package/dist/decisions/extractors/php-commit-extractor.js.map +1 -0
  92. package/dist/decisions/extractors/python-commit-extractor.d.ts +18 -0
  93. package/dist/decisions/extractors/python-commit-extractor.d.ts.map +1 -0
  94. package/dist/decisions/extractors/python-commit-extractor.js +248 -0
  95. package/dist/decisions/extractors/python-commit-extractor.js.map +1 -0
  96. package/dist/decisions/extractors/typescript-commit-extractor.d.ts +37 -0
  97. package/dist/decisions/extractors/typescript-commit-extractor.d.ts.map +1 -0
  98. package/dist/decisions/extractors/typescript-commit-extractor.js +229 -0
  99. package/dist/decisions/extractors/typescript-commit-extractor.js.map +1 -0
  100. package/dist/decisions/git/commit-parser.d.ts +58 -0
  101. package/dist/decisions/git/commit-parser.d.ts.map +1 -0
  102. package/dist/decisions/git/commit-parser.js +344 -0
  103. package/dist/decisions/git/commit-parser.js.map +1 -0
  104. package/dist/decisions/git/diff-analyzer.d.ts +30 -0
  105. package/dist/decisions/git/diff-analyzer.d.ts.map +1 -0
  106. package/dist/decisions/git/diff-analyzer.js +492 -0
  107. package/dist/decisions/git/diff-analyzer.js.map +1 -0
  108. package/dist/decisions/git/git-walker.d.ts +64 -0
  109. package/dist/decisions/git/git-walker.d.ts.map +1 -0
  110. package/dist/decisions/git/git-walker.js +441 -0
  111. package/dist/decisions/git/git-walker.js.map +1 -0
  112. package/dist/decisions/git/index.d.ts +11 -0
  113. package/dist/decisions/git/index.d.ts.map +1 -0
  114. package/dist/decisions/git/index.js +13 -0
  115. package/dist/decisions/git/index.js.map +1 -0
  116. package/dist/decisions/git/types.d.ts +223 -0
  117. package/dist/decisions/git/types.d.ts.map +1 -0
  118. package/dist/decisions/git/types.js +7 -0
  119. package/dist/decisions/git/types.js.map +1 -0
  120. package/dist/decisions/index.d.ts +27 -0
  121. package/dist/decisions/index.d.ts.map +1 -0
  122. package/dist/decisions/index.js +45 -0
  123. package/dist/decisions/index.js.map +1 -0
  124. package/dist/decisions/types.d.ts +530 -0
  125. package/dist/decisions/types.d.ts.map +1 -0
  126. package/dist/decisions/types.js +8 -0
  127. package/dist/decisions/types.js.map +1 -0
  128. package/dist/go/go-analyzer.d.ts +203 -0
  129. package/dist/go/go-analyzer.d.ts.map +1 -0
  130. package/dist/go/go-analyzer.js +509 -0
  131. package/dist/go/go-analyzer.js.map +1 -0
  132. package/dist/go/index.d.ts +7 -0
  133. package/dist/go/index.d.ts.map +1 -0
  134. package/dist/go/index.js +8 -0
  135. package/dist/go/index.js.map +1 -0
  136. package/dist/index.d.ts +11 -0
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js +56 -0
  139. package/dist/index.js.map +1 -1
  140. package/dist/parsers/tree-sitter/go-loader.d.ts +50 -0
  141. package/dist/parsers/tree-sitter/go-loader.d.ts.map +1 -0
  142. package/dist/parsers/tree-sitter/go-loader.js +161 -0
  143. package/dist/parsers/tree-sitter/go-loader.js.map +1 -0
  144. package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts +250 -0
  145. package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts.map +1 -0
  146. package/dist/parsers/tree-sitter/tree-sitter-go-parser.js +707 -0
  147. package/dist/parsers/tree-sitter/tree-sitter-go-parser.js.map +1 -0
  148. package/dist/parsers/types.d.ts +1 -1
  149. package/dist/parsers/types.d.ts.map +1 -1
  150. package/dist/simulation/approach-generator.d.ts +73 -0
  151. package/dist/simulation/approach-generator.d.ts.map +1 -0
  152. package/dist/simulation/approach-generator.js +371 -0
  153. package/dist/simulation/approach-generator.js.map +1 -0
  154. package/dist/simulation/index.d.ts +14 -0
  155. package/dist/simulation/index.d.ts.map +1 -0
  156. package/dist/simulation/index.js +19 -0
  157. package/dist/simulation/index.js.map +1 -0
  158. package/dist/simulation/language-strategies/csharp-strategies.d.ts +17 -0
  159. package/dist/simulation/language-strategies/csharp-strategies.d.ts.map +1 -0
  160. package/dist/simulation/language-strategies/csharp-strategies.js +118 -0
  161. package/dist/simulation/language-strategies/csharp-strategies.js.map +1 -0
  162. package/dist/simulation/language-strategies/index.d.ts +41 -0
  163. package/dist/simulation/language-strategies/index.d.ts.map +1 -0
  164. package/dist/simulation/language-strategies/index.js +92 -0
  165. package/dist/simulation/language-strategies/index.js.map +1 -0
  166. package/dist/simulation/language-strategies/java-strategies.d.ts +17 -0
  167. package/dist/simulation/language-strategies/java-strategies.d.ts.map +1 -0
  168. package/dist/simulation/language-strategies/java-strategies.js +119 -0
  169. package/dist/simulation/language-strategies/java-strategies.js.map +1 -0
  170. package/dist/simulation/language-strategies/php-strategies.d.ts +17 -0
  171. package/dist/simulation/language-strategies/php-strategies.d.ts.map +1 -0
  172. package/dist/simulation/language-strategies/php-strategies.js +129 -0
  173. package/dist/simulation/language-strategies/php-strategies.js.map +1 -0
  174. package/dist/simulation/language-strategies/python-strategies.d.ts +17 -0
  175. package/dist/simulation/language-strategies/python-strategies.d.ts.map +1 -0
  176. package/dist/simulation/language-strategies/python-strategies.js +208 -0
  177. package/dist/simulation/language-strategies/python-strategies.js.map +1 -0
  178. package/dist/simulation/language-strategies/types.d.ts +67 -0
  179. package/dist/simulation/language-strategies/types.d.ts.map +1 -0
  180. package/dist/simulation/language-strategies/types.js +23 -0
  181. package/dist/simulation/language-strategies/types.js.map +1 -0
  182. package/dist/simulation/language-strategies/typescript-strategies.d.ts +17 -0
  183. package/dist/simulation/language-strategies/typescript-strategies.d.ts.map +1 -0
  184. package/dist/simulation/language-strategies/typescript-strategies.js +251 -0
  185. package/dist/simulation/language-strategies/typescript-strategies.js.map +1 -0
  186. package/dist/simulation/scorers/friction-scorer.d.ts +45 -0
  187. package/dist/simulation/scorers/friction-scorer.d.ts.map +1 -0
  188. package/dist/simulation/scorers/friction-scorer.js +336 -0
  189. package/dist/simulation/scorers/friction-scorer.js.map +1 -0
  190. package/dist/simulation/scorers/impact-scorer.d.ts +56 -0
  191. package/dist/simulation/scorers/impact-scorer.d.ts.map +1 -0
  192. package/dist/simulation/scorers/impact-scorer.js +273 -0
  193. package/dist/simulation/scorers/impact-scorer.js.map +1 -0
  194. package/dist/simulation/scorers/index.d.ts +12 -0
  195. package/dist/simulation/scorers/index.d.ts.map +1 -0
  196. package/dist/simulation/scorers/index.js +12 -0
  197. package/dist/simulation/scorers/index.js.map +1 -0
  198. package/dist/simulation/scorers/pattern-alignment-scorer.d.ts +83 -0
  199. package/dist/simulation/scorers/pattern-alignment-scorer.d.ts.map +1 -0
  200. package/dist/simulation/scorers/pattern-alignment-scorer.js +367 -0
  201. package/dist/simulation/scorers/pattern-alignment-scorer.js.map +1 -0
  202. package/dist/simulation/scorers/security-scorer.d.ts +63 -0
  203. package/dist/simulation/scorers/security-scorer.d.ts.map +1 -0
  204. package/dist/simulation/scorers/security-scorer.js +346 -0
  205. package/dist/simulation/scorers/security-scorer.js.map +1 -0
  206. package/dist/simulation/simulation-engine.d.ts +89 -0
  207. package/dist/simulation/simulation-engine.d.ts.map +1 -0
  208. package/dist/simulation/simulation-engine.js +480 -0
  209. package/dist/simulation/simulation-engine.js.map +1 -0
  210. package/dist/simulation/types.d.ts +200 -0
  211. package/dist/simulation/types.d.ts.map +1 -0
  212. package/dist/simulation/types.js +23 -0
  213. package/dist/simulation/types.js.map +1 -0
  214. package/dist/speculative/approach-generator.d.ts +2 -0
  215. package/dist/speculative/approach-generator.d.ts.map +1 -0
  216. package/dist/speculative/approach-generator.js +2 -0
  217. package/dist/speculative/approach-generator.js.map +1 -0
  218. package/dist/speculative/templates/types.d.ts +133 -0
  219. package/dist/speculative/templates/types.d.ts.map +1 -0
  220. package/dist/speculative/templates/types.js +208 -0
  221. package/dist/speculative/templates/types.js.map +1 -0
  222. package/dist/speculative/types.d.ts +523 -0
  223. package/dist/speculative/types.d.ts.map +1 -0
  224. package/dist/speculative/types.js +71 -0
  225. package/dist/speculative/types.js.map +1 -0
  226. package/dist/test-topology/extractors/base-test-extractor.d.ts +1 -1
  227. package/dist/test-topology/extractors/base-test-extractor.d.ts.map +1 -1
  228. package/dist/test-topology/extractors/base-test-extractor.js.map +1 -1
  229. package/dist/test-topology/extractors/go-test-extractor.d.ts +33 -0
  230. package/dist/test-topology/extractors/go-test-extractor.d.ts.map +1 -0
  231. package/dist/test-topology/extractors/go-test-extractor.js +436 -0
  232. package/dist/test-topology/extractors/go-test-extractor.js.map +1 -0
  233. package/dist/test-topology/extractors/index.d.ts +1 -0
  234. package/dist/test-topology/extractors/index.d.ts.map +1 -1
  235. package/dist/test-topology/extractors/index.js +1 -0
  236. package/dist/test-topology/extractors/index.js.map +1 -1
  237. package/dist/test-topology/extractors/regex/go-test-regex.d.ts +62 -0
  238. package/dist/test-topology/extractors/regex/go-test-regex.d.ts.map +1 -0
  239. package/dist/test-topology/extractors/regex/go-test-regex.js +528 -0
  240. package/dist/test-topology/extractors/regex/go-test-regex.js.map +1 -0
  241. package/dist/test-topology/extractors/regex/index.d.ts +1 -0
  242. package/dist/test-topology/extractors/regex/index.d.ts.map +1 -1
  243. package/dist/test-topology/extractors/regex/index.js +4 -0
  244. package/dist/test-topology/extractors/regex/index.js.map +1 -1
  245. package/dist/test-topology/hybrid-test-topology-analyzer.d.ts.map +1 -1
  246. package/dist/test-topology/hybrid-test-topology-analyzer.js +1 -0
  247. package/dist/test-topology/hybrid-test-topology-analyzer.js.map +1 -1
  248. package/dist/test-topology/test-topology-analyzer.d.ts.map +1 -1
  249. package/dist/test-topology/test-topology-analyzer.js +1 -0
  250. package/dist/test-topology/test-topology-analyzer.js.map +1 -1
  251. package/dist/test-topology/types.d.ts +2 -2
  252. package/dist/test-topology/types.d.ts.map +1 -1
  253. package/dist/unified-provider/matching/database-sql-matcher.d.ts +42 -0
  254. package/dist/unified-provider/matching/database-sql-matcher.d.ts.map +1 -0
  255. package/dist/unified-provider/matching/database-sql-matcher.js +282 -0
  256. package/dist/unified-provider/matching/database-sql-matcher.js.map +1 -0
  257. package/dist/unified-provider/matching/gorm-matcher.d.ts +41 -0
  258. package/dist/unified-provider/matching/gorm-matcher.d.ts.map +1 -0
  259. package/dist/unified-provider/matching/gorm-matcher.js +222 -0
  260. package/dist/unified-provider/matching/gorm-matcher.js.map +1 -0
  261. package/dist/unified-provider/matching/index.d.ts +3 -0
  262. package/dist/unified-provider/matching/index.d.ts.map +1 -1
  263. package/dist/unified-provider/matching/index.js +4 -0
  264. package/dist/unified-provider/matching/index.js.map +1 -1
  265. package/dist/unified-provider/matching/matcher-registry.d.ts.map +1 -1
  266. package/dist/unified-provider/matching/matcher-registry.js +7 -0
  267. package/dist/unified-provider/matching/matcher-registry.js.map +1 -1
  268. package/dist/unified-provider/matching/sqlx-matcher.d.ts +40 -0
  269. package/dist/unified-provider/matching/sqlx-matcher.d.ts.map +1 -0
  270. package/dist/unified-provider/matching/sqlx-matcher.js +214 -0
  271. package/dist/unified-provider/matching/sqlx-matcher.js.map +1 -0
  272. package/dist/unified-provider/normalization/go-normalizer.d.ts +62 -0
  273. package/dist/unified-provider/normalization/go-normalizer.d.ts.map +1 -0
  274. package/dist/unified-provider/normalization/go-normalizer.js +608 -0
  275. package/dist/unified-provider/normalization/go-normalizer.js.map +1 -0
  276. package/dist/unified-provider/normalization/index.d.ts +1 -0
  277. package/dist/unified-provider/normalization/index.d.ts.map +1 -1
  278. package/dist/unified-provider/normalization/index.js +6 -1
  279. package/dist/unified-provider/normalization/index.js.map +1 -1
  280. package/dist/unified-provider/types.d.ts +1 -1
  281. package/dist/unified-provider/types.d.ts.map +1 -1
  282. package/dist/wpf/extractors/binding-error-detector.d.ts +75 -0
  283. package/dist/wpf/extractors/binding-error-detector.d.ts.map +1 -0
  284. package/dist/wpf/extractors/binding-error-detector.js +290 -0
  285. package/dist/wpf/extractors/binding-error-detector.js.map +1 -0
  286. package/dist/wpf/extractors/code-behind-linker.d.ts +70 -0
  287. package/dist/wpf/extractors/code-behind-linker.d.ts.map +1 -0
  288. package/dist/wpf/extractors/code-behind-linker.js +172 -0
  289. package/dist/wpf/extractors/code-behind-linker.js.map +1 -0
  290. package/dist/wpf/extractors/dependency-property-extractor.d.ts +61 -0
  291. package/dist/wpf/extractors/dependency-property-extractor.d.ts.map +1 -0
  292. package/dist/wpf/extractors/dependency-property-extractor.js +201 -0
  293. package/dist/wpf/extractors/dependency-property-extractor.js.map +1 -0
  294. package/dist/wpf/extractors/regex/viewmodel-regex.d.ts +82 -0
  295. package/dist/wpf/extractors/regex/viewmodel-regex.d.ts.map +1 -0
  296. package/dist/wpf/extractors/regex/viewmodel-regex.js +412 -0
  297. package/dist/wpf/extractors/regex/viewmodel-regex.js.map +1 -0
  298. package/dist/wpf/extractors/regex/xaml-regex.d.ts +77 -0
  299. package/dist/wpf/extractors/regex/xaml-regex.d.ts.map +1 -0
  300. package/dist/wpf/extractors/regex/xaml-regex.js +353 -0
  301. package/dist/wpf/extractors/regex/xaml-regex.js.map +1 -0
  302. package/dist/wpf/extractors/resource-dictionary-parser.d.ts +103 -0
  303. package/dist/wpf/extractors/resource-dictionary-parser.d.ts.map +1 -0
  304. package/dist/wpf/extractors/resource-dictionary-parser.js +296 -0
  305. package/dist/wpf/extractors/resource-dictionary-parser.js.map +1 -0
  306. package/dist/wpf/extractors/value-converter-extractor.d.ts +128 -0
  307. package/dist/wpf/extractors/value-converter-extractor.d.ts.map +1 -0
  308. package/dist/wpf/extractors/value-converter-extractor.js +312 -0
  309. package/dist/wpf/extractors/value-converter-extractor.js.map +1 -0
  310. package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts +104 -0
  311. package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts.map +1 -0
  312. package/dist/wpf/extractors/viewmodel-hybrid-extractor.js +513 -0
  313. package/dist/wpf/extractors/viewmodel-hybrid-extractor.js.map +1 -0
  314. package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts +98 -0
  315. package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts.map +1 -0
  316. package/dist/wpf/extractors/xaml-hybrid-extractor.js +444 -0
  317. package/dist/wpf/extractors/xaml-hybrid-extractor.js.map +1 -0
  318. package/dist/wpf/index.d.ts +25 -0
  319. package/dist/wpf/index.d.ts.map +1 -0
  320. package/dist/wpf/index.js +31 -0
  321. package/dist/wpf/index.js.map +1 -0
  322. package/dist/wpf/integration/wpf-callgraph-adapter.d.ts +82 -0
  323. package/dist/wpf/integration/wpf-callgraph-adapter.d.ts.map +1 -0
  324. package/dist/wpf/integration/wpf-callgraph-adapter.js +311 -0
  325. package/dist/wpf/integration/wpf-callgraph-adapter.js.map +1 -0
  326. package/dist/wpf/integration/wpf-data-flow-tracer.d.ts +129 -0
  327. package/dist/wpf/integration/wpf-data-flow-tracer.d.ts.map +1 -0
  328. package/dist/wpf/integration/wpf-data-flow-tracer.js +367 -0
  329. package/dist/wpf/integration/wpf-data-flow-tracer.js.map +1 -0
  330. package/dist/wpf/linkers/datacontext-resolver.d.ts +66 -0
  331. package/dist/wpf/linkers/datacontext-resolver.d.ts.map +1 -0
  332. package/dist/wpf/linkers/datacontext-resolver.js +240 -0
  333. package/dist/wpf/linkers/datacontext-resolver.js.map +1 -0
  334. package/dist/wpf/linkers/viewmodel-linker.d.ts +71 -0
  335. package/dist/wpf/linkers/viewmodel-linker.d.ts.map +1 -0
  336. package/dist/wpf/linkers/viewmodel-linker.js +268 -0
  337. package/dist/wpf/linkers/viewmodel-linker.js.map +1 -0
  338. package/dist/wpf/types.d.ts +451 -0
  339. package/dist/wpf/types.d.ts.map +1 -0
  340. package/dist/wpf/types.js +8 -0
  341. package/dist/wpf/types.js.map +1 -0
  342. package/dist/wpf/wpf-analyzer.d.ts +114 -0
  343. package/dist/wpf/wpf-analyzer.d.ts.map +1 -0
  344. package/dist/wpf/wpf-analyzer.js +332 -0
  345. package/dist/wpf/wpf-analyzer.js.map +1 -0
  346. package/dist/wrappers/integration/adapter.d.ts.map +1 -1
  347. package/dist/wrappers/integration/adapter.js +1 -0
  348. package/dist/wrappers/integration/adapter.js.map +1 -1
  349. package/package.json +29 -18
  350. package/LICENSE +0 -21
@@ -0,0 +1,229 @@
1
+ /**
2
+ * TypeScript/JavaScript Commit Extractor
3
+ *
4
+ * Extracts semantic information from TypeScript and JavaScript code changes.
5
+ * Detects framework-specific patterns for React, Express, NestJS, etc.
6
+ */
7
+ import { BaseCommitExtractor, } from './base-commit-extractor.js';
8
+ // ============================================================================
9
+ // TypeScript-Specific Patterns
10
+ // ============================================================================
11
+ /**
12
+ * Patterns that indicate architectural changes in TypeScript/JavaScript
13
+ */
14
+ const TS_ARCHITECTURAL_PATTERNS = [
15
+ // React patterns
16
+ {
17
+ filePattern: /\/(components|pages|views)\/.*\.(tsx|jsx)$/,
18
+ signalType: 'layer-change',
19
+ description: 'React component layer change',
20
+ confidence: 0.5,
21
+ },
22
+ {
23
+ filePattern: /\/(hooks|use[A-Z]).*\.(ts|tsx)$/,
24
+ signalType: 'new-abstraction',
25
+ description: 'React hook abstraction',
26
+ confidence: 0.6,
27
+ },
28
+ {
29
+ filePattern: /\/(context|providers?)\/.*\.(tsx?)$/,
30
+ signalType: 'new-abstraction',
31
+ description: 'React context/provider pattern',
32
+ confidence: 0.7,
33
+ },
34
+ // Express/Fastify patterns
35
+ {
36
+ filePattern: /\/(routes?|controllers?)\/.*\.(ts|js)$/,
37
+ signalType: 'api-surface-change',
38
+ description: 'Express/Fastify route change',
39
+ confidence: 0.7,
40
+ },
41
+ {
42
+ filePattern: /\/(middleware)\/.*\.(ts|js)$/,
43
+ signalType: 'layer-change',
44
+ description: 'Middleware layer change',
45
+ confidence: 0.6,
46
+ },
47
+ // NestJS patterns
48
+ {
49
+ filePattern: /\.controller\.(ts)$/,
50
+ signalType: 'api-surface-change',
51
+ description: 'NestJS controller change',
52
+ confidence: 0.8,
53
+ },
54
+ {
55
+ filePattern: /\.service\.(ts)$/,
56
+ signalType: 'layer-change',
57
+ description: 'NestJS service layer change',
58
+ confidence: 0.6,
59
+ },
60
+ {
61
+ filePattern: /\.module\.(ts)$/,
62
+ signalType: 'config-change',
63
+ description: 'NestJS module configuration',
64
+ confidence: 0.7,
65
+ },
66
+ {
67
+ filePattern: /\.guard\.(ts)$/,
68
+ signalType: 'auth-change',
69
+ description: 'NestJS guard (auth) change',
70
+ confidence: 0.8,
71
+ },
72
+ // Data layer patterns
73
+ {
74
+ filePattern: /\/(models?|entities|schemas?)\/.*\.(ts|js)$/,
75
+ signalType: 'data-model-change',
76
+ description: 'Data model change',
77
+ confidence: 0.7,
78
+ },
79
+ {
80
+ filePattern: /\/(repositories|daos?)\/.*\.(ts|js)$/,
81
+ signalType: 'data-model-change',
82
+ description: 'Data access layer change',
83
+ confidence: 0.6,
84
+ },
85
+ {
86
+ filePattern: /\/migrations?\/.*\.(ts|js)$/,
87
+ signalType: 'data-model-change',
88
+ description: 'Database migration',
89
+ confidence: 0.9,
90
+ },
91
+ // Error handling
92
+ {
93
+ filePattern: /\/(errors?|exceptions?)\/.*\.(ts|js)$/,
94
+ signalType: 'error-handling-change',
95
+ description: 'Error handling change',
96
+ confidence: 0.7,
97
+ },
98
+ // Configuration
99
+ {
100
+ filePattern: /\/(config|settings)\/.*\.(ts|js)$/,
101
+ signalType: 'config-change',
102
+ description: 'Configuration change',
103
+ confidence: 0.5,
104
+ },
105
+ // Testing
106
+ {
107
+ filePattern: /\/__tests__\/.*\.(ts|tsx|js|jsx)$/,
108
+ signalType: 'test-strategy-change',
109
+ description: 'Test file change',
110
+ confidence: 0.4,
111
+ },
112
+ {
113
+ filePattern: /\.(test|spec)\.(ts|tsx|js|jsx)$/,
114
+ signalType: 'test-strategy-change',
115
+ description: 'Test file change',
116
+ confidence: 0.4,
117
+ },
118
+ ];
119
+ /**
120
+ * File name patterns that suggest entry points
121
+ */
122
+ const TS_ENTRY_POINT_PATTERNS = [
123
+ /\.controller\.(ts|js)$/,
124
+ /\.handler\.(ts|js)$/,
125
+ /\/(routes?|api)\/.*\.(ts|js)$/,
126
+ /\/pages\/.*\.(tsx|jsx)$/,
127
+ /\/app\/.*\/page\.(tsx|jsx)$/, // Next.js App Router
128
+ /index\.(ts|tsx|js|jsx)$/,
129
+ /main\.(ts|js)$/,
130
+ /server\.(ts|js)$/,
131
+ ];
132
+ // ============================================================================
133
+ // TypeScript Commit Extractor
134
+ // ============================================================================
135
+ /**
136
+ * TypeScript/JavaScript commit extractor
137
+ */
138
+ export class TypeScriptCommitExtractor extends BaseCommitExtractor {
139
+ language = 'typescript';
140
+ extensions = ['.ts', '.tsx', '.js', '.jsx', '.mts', '.cts', '.mjs', '.cjs'];
141
+ constructor(options) {
142
+ super(options);
143
+ }
144
+ /**
145
+ * Extract architectural signals with TypeScript-specific detection
146
+ */
147
+ async extractArchitecturalSignals(context) {
148
+ const signals = [];
149
+ for (const file of context.relevantFiles) {
150
+ // Check TypeScript-specific patterns
151
+ for (const pattern of TS_ARCHITECTURAL_PATTERNS) {
152
+ if (pattern.filePattern.test(file.path)) {
153
+ signals.push({
154
+ type: pattern.signalType,
155
+ description: `${pattern.description}: ${file.path}`,
156
+ files: [file.path],
157
+ confidence: this.adjustConfidence(pattern.confidence, file),
158
+ });
159
+ }
160
+ }
161
+ // Detect interface/type additions
162
+ if (file.status === 'added' && this.isTypeDefinitionFile(file.path)) {
163
+ signals.push({
164
+ type: 'new-abstraction',
165
+ description: `New type definitions: ${file.path}`,
166
+ files: [file.path],
167
+ confidence: 0.7,
168
+ });
169
+ }
170
+ // Detect barrel file changes (index.ts exports)
171
+ if (file.path.endsWith('index.ts') || file.path.endsWith('index.js')) {
172
+ if (file.additions > 5 || file.deletions > 5) {
173
+ signals.push({
174
+ type: 'api-surface-change',
175
+ description: `Module exports changed: ${file.path}`,
176
+ files: [file.path],
177
+ confidence: 0.5,
178
+ });
179
+ }
180
+ }
181
+ }
182
+ // Add base class signals
183
+ const baseSignals = await super.extractArchitecturalSignals(context);
184
+ signals.push(...baseSignals);
185
+ return this.deduplicateSignals(signals);
186
+ }
187
+ /**
188
+ * Check if file is likely an entry point
189
+ */
190
+ isLikelyEntryPoint(filePath) {
191
+ return TS_ENTRY_POINT_PATTERNS.some(pattern => pattern.test(filePath));
192
+ }
193
+ /**
194
+ * Check if file is a type definition file
195
+ */
196
+ isTypeDefinitionFile(filePath) {
197
+ return (filePath.endsWith('.d.ts') ||
198
+ filePath.includes('/types/') ||
199
+ filePath.includes('/interfaces/') ||
200
+ filePath.includes('.types.ts') ||
201
+ filePath.includes('.interface.ts'));
202
+ }
203
+ /**
204
+ * Adjust confidence based on file change magnitude
205
+ */
206
+ adjustConfidence(baseConfidence, file) {
207
+ let confidence = baseConfidence;
208
+ // Boost for new files
209
+ if (file.status === 'added') {
210
+ confidence += 0.1;
211
+ }
212
+ // Boost for significant changes
213
+ if (file.additions + file.deletions > 50) {
214
+ confidence += 0.1;
215
+ }
216
+ // Reduce for test files
217
+ if (file.isTest) {
218
+ confidence -= 0.2;
219
+ }
220
+ return Math.max(0.1, Math.min(1, confidence));
221
+ }
222
+ }
223
+ /**
224
+ * Create a TypeScript commit extractor
225
+ */
226
+ export function createTypeScriptCommitExtractor(options) {
227
+ return new TypeScriptCommitExtractor(options);
228
+ }
229
+ //# sourceMappingURL=typescript-commit-extractor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-commit-extractor.js","sourceRoot":"","sources":["../../../src/decisions/extractors/typescript-commit-extractor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EACL,mBAAmB,GAGpB,MAAM,4BAA4B,CAAC;AAEpC,+EAA+E;AAC/E,+BAA+B;AAC/B,+EAA+E;AAE/E;;GAEG;AACH,MAAM,yBAAyB,GAK1B;IACH,iBAAiB;IACjB;QACE,WAAW,EAAE,4CAA4C;QACzD,UAAU,EAAE,cAAc;QAC1B,WAAW,EAAE,8BAA8B;QAC3C,UAAU,EAAE,GAAG;KAChB;IACD;QACE,WAAW,EAAE,iCAAiC;QAC9C,UAAU,EAAE,iBAAiB;QAC7B,WAAW,EAAE,wBAAwB;QACrC,UAAU,EAAE,GAAG;KAChB;IACD;QACE,WAAW,EAAE,qCAAqC;QAClD,UAAU,EAAE,iBAAiB;QAC7B,WAAW,EAAE,gCAAgC;QAC7C,UAAU,EAAE,GAAG;KAChB;IACD,2BAA2B;IAC3B;QACE,WAAW,EAAE,wCAAwC;QACrD,UAAU,EAAE,oBAAoB;QAChC,WAAW,EAAE,8BAA8B;QAC3C,UAAU,EAAE,GAAG;KAChB;IACD;QACE,WAAW,EAAE,8BAA8B;QAC3C,UAAU,EAAE,cAAc;QAC1B,WAAW,EAAE,y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G;IACK,oBAAoB,CAAC,QAAgB;QAC3C,OAAO,CACL,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC1B,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;YAC5B,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAC;YACjC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;YAC9B,QAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,CACnC,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,gBAAgB,CACtB,cAAsB,EACtB,IAA2B;QAE3B,IAAI,UAAU,GAAG,cAAc,CAAC;QAEhC,sBAAsB;QACtB,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;YAC5B,UAAU,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,gCAAgC;QAChC,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC;YACzC,UAAU,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,wBAAwB;QACxB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,UAAU,IAAI,GAAG,CAAC;QACpB,CAAC;QAED,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;IAChD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAC7C,OAA+B;IAE/B,OAAO,IAAI,yBAAyB,CAAC,OAAO,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Commit Message Parser
3
+ *
4
+ * Parses commit messages to extract semantic information,
5
+ * conventional commit format, and architectural signals.
6
+ */
7
+ import type { MessageSignal } from '../types.js';
8
+ import type { ParsedCommitMessage } from './types.js';
9
+ /**
10
+ * Commit message parser
11
+ */
12
+ export declare class CommitParser {
13
+ /**
14
+ * Parse a commit message
15
+ */
16
+ parse(subject: string, body?: string): ParsedCommitMessage;
17
+ /**
18
+ * Extract message signals for decision mining
19
+ */
20
+ extractSignals(subject: string, body?: string): MessageSignal[];
21
+ /**
22
+ * Calculate architectural significance score (0-1)
23
+ */
24
+ calculateSignificance(subject: string, body?: string): number;
25
+ /**
26
+ * Parse conventional commit format
27
+ */
28
+ private parseConventionalCommit;
29
+ /**
30
+ * Detect breaking changes
31
+ */
32
+ private detectBreakingChange;
33
+ /**
34
+ * Parse footer tokens (e.g., "Fixes #123", "BREAKING CHANGE: ...")
35
+ */
36
+ private parseFooterTokens;
37
+ /**
38
+ * Detect architectural keywords
39
+ */
40
+ private detectKeywords;
41
+ /**
42
+ * Parse references to issues, PRs, commits
43
+ */
44
+ private parseReferences;
45
+ }
46
+ /**
47
+ * Create a commit parser instance
48
+ */
49
+ export declare function createCommitParser(): CommitParser;
50
+ /**
51
+ * Quick parse function
52
+ */
53
+ export declare function parseCommitMessage(subject: string, body?: string): ParsedCommitMessage;
54
+ /**
55
+ * Quick signal extraction
56
+ */
57
+ export declare function extractMessageSignals(subject: string, body?: string): MessageSignal[];
58
+ //# sourceMappingURL=commit-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-parser.d.ts","sourceRoot":"","sources":["../../../src/decisions/git/commit-parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,aAAa,EAEd,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,YAAY,CAAC;AAwHpB;;GAEG;AACH,qBAAa,YAAY;IACvB;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,GAAG,mBAAmB;IAqC9D;;OAEG;IACH,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,GAAG,aAAa,EAAE;IAiEnE;;OAEG;IACH,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,GAAG,MAAM;IAuBjE;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAqC/B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAS5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAkBzB;;OAEG;IACH,OAAO,CAAC,cAAc;IAetB;;OAEG;IACH,OAAO,CAAC,eAAe;CA8BxB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,YAAY,CAEjD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAEtF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,EAAE,CAErF"}
@@ -0,0 +1,344 @@
1
+ /**
2
+ * Commit Message Parser
3
+ *
4
+ * Parses commit messages to extract semantic information,
5
+ * conventional commit format, and architectural signals.
6
+ */
7
+ // ============================================================================
8
+ // Conventional Commit Parsing
9
+ // ============================================================================
10
+ const CONVENTIONAL_COMMIT_REGEX = /^(\w+)(?:\(([^)]+)\))?(!)?:\s*(.+)$/;
11
+ const CONVENTIONAL_TYPE_MAP = {
12
+ feat: 'pattern-introduction',
13
+ fix: null, // Usually not architectural
14
+ docs: null,
15
+ style: null,
16
+ refactor: 'refactoring',
17
+ perf: 'performance-optimization',
18
+ test: 'testing-strategy',
19
+ build: 'infrastructure',
20
+ ci: 'infrastructure',
21
+ chore: null,
22
+ revert: null,
23
+ };
24
+ // ============================================================================
25
+ // Keyword Detection
26
+ // ============================================================================
27
+ /**
28
+ * Keywords that suggest architectural decisions
29
+ */
30
+ const ARCHITECTURAL_KEYWORDS = [
31
+ // Technology adoption
32
+ {
33
+ keywords: ['migrate', 'migration', 'switch to', 'adopt', 'introduce', 'add support for', 'integrate'],
34
+ category: 'technology-adoption',
35
+ weight: 0.8,
36
+ },
37
+ // Technology removal
38
+ {
39
+ keywords: ['remove', 'deprecate', 'drop support', 'sunset', 'phase out', 'eliminate'],
40
+ category: 'technology-removal',
41
+ weight: 0.7,
42
+ },
43
+ // Pattern changes
44
+ {
45
+ keywords: ['refactor', 'restructure', 'reorganize', 'consolidate', 'simplify', 'extract', 'inline'],
46
+ category: 'refactoring',
47
+ weight: 0.6,
48
+ },
49
+ // Architecture
50
+ {
51
+ keywords: ['architecture', 'design', 'pattern', 'abstraction', 'layer', 'module', 'component'],
52
+ category: 'architecture-change',
53
+ weight: 0.7,
54
+ },
55
+ // API changes
56
+ {
57
+ keywords: ['api', 'endpoint', 'route', 'interface', 'contract', 'schema', 'breaking change'],
58
+ category: 'api-change',
59
+ weight: 0.7,
60
+ },
61
+ // Security
62
+ {
63
+ keywords: ['security', 'auth', 'authentication', 'authorization', 'permission', 'encrypt', 'vulnerability'],
64
+ category: 'security-enhancement',
65
+ weight: 0.8,
66
+ },
67
+ // Performance
68
+ {
69
+ keywords: ['performance', 'optimize', 'speed', 'cache', 'lazy', 'async', 'parallel', 'batch'],
70
+ category: 'performance-optimization',
71
+ weight: 0.6,
72
+ },
73
+ // Testing
74
+ {
75
+ keywords: ['test strategy', 'testing approach', 'test framework', 'coverage', 'e2e', 'integration test'],
76
+ category: 'testing-strategy',
77
+ weight: 0.5,
78
+ },
79
+ // Infrastructure
80
+ {
81
+ keywords: ['ci/cd', 'pipeline', 'deploy', 'docker', 'kubernetes', 'terraform', 'infrastructure'],
82
+ category: 'infrastructure',
83
+ weight: 0.6,
84
+ },
85
+ ];
86
+ /**
87
+ * Breaking change indicators
88
+ */
89
+ const BREAKING_CHANGE_INDICATORS = [
90
+ 'BREAKING CHANGE',
91
+ 'BREAKING-CHANGE',
92
+ 'BREAKING:',
93
+ '!:',
94
+ 'breaking:',
95
+ 'incompatible',
96
+ 'backwards-incompatible',
97
+ ];
98
+ /**
99
+ * Reference patterns
100
+ */
101
+ const REFERENCE_PATTERNS = [
102
+ // GitHub/GitLab style
103
+ { regex: /(close[sd]?|fix(?:e[sd])?|resolve[sd]?)\s+#(\d+)/gi, type: 'issue', action: true },
104
+ { regex: /#(\d+)/g, type: 'issue', action: false },
105
+ // Full URLs
106
+ { regex: /https?:\/\/github\.com\/[^/]+\/[^/]+\/(?:issues|pull)\/(\d+)/g, type: 'pr', action: false },
107
+ // Commit references
108
+ { regex: /([a-f0-9]{7,40})/g, type: 'commit', action: false },
109
+ ];
110
+ // ============================================================================
111
+ // Parser Class
112
+ // ============================================================================
113
+ /**
114
+ * Commit message parser
115
+ */
116
+ export class CommitParser {
117
+ /**
118
+ * Parse a commit message
119
+ */
120
+ parse(subject, body = '') {
121
+ const fullMessage = body ? `${subject}\n\n${body}` : subject;
122
+ // Parse conventional commit format
123
+ const conventional = this.parseConventionalCommit(subject);
124
+ // Detect breaking changes
125
+ const isBreakingChange = this.detectBreakingChange(fullMessage, conventional?.isBreaking);
126
+ // Parse footer tokens
127
+ const footerTokens = this.parseFooterTokens(body);
128
+ // Detect keywords
129
+ const keywords = this.detectKeywords(fullMessage);
130
+ // Parse references
131
+ const references = this.parseReferences(fullMessage);
132
+ const result = {
133
+ subject,
134
+ body,
135
+ isBreakingChange,
136
+ footerTokens,
137
+ keywords,
138
+ references,
139
+ };
140
+ if (conventional?.type) {
141
+ result.conventionalType = conventional.type;
142
+ }
143
+ if (conventional?.scope) {
144
+ result.scope = conventional.scope;
145
+ }
146
+ return result;
147
+ }
148
+ /**
149
+ * Extract message signals for decision mining
150
+ */
151
+ extractSignals(subject, body = '') {
152
+ const signals = [];
153
+ const parsed = this.parse(subject, body);
154
+ const fullMessage = body ? `${subject}\n\n${body}` : subject;
155
+ const lowerMessage = fullMessage.toLowerCase();
156
+ // Conventional commit type signal
157
+ if (parsed.conventionalType) {
158
+ const categoryHint = CONVENTIONAL_TYPE_MAP[parsed.conventionalType];
159
+ if (categoryHint) {
160
+ signals.push({
161
+ type: 'pattern',
162
+ value: `conventional:${parsed.conventionalType}`,
163
+ confidence: 0.7,
164
+ categoryHint,
165
+ });
166
+ }
167
+ }
168
+ // Breaking change signal
169
+ if (parsed.isBreakingChange) {
170
+ signals.push({
171
+ type: 'breaking-change',
172
+ value: 'breaking-change',
173
+ confidence: 0.9,
174
+ categoryHint: 'api-change',
175
+ });
176
+ }
177
+ // Keyword signals
178
+ for (const keywordGroup of ARCHITECTURAL_KEYWORDS) {
179
+ for (const keyword of keywordGroup.keywords) {
180
+ if (lowerMessage.includes(keyword.toLowerCase())) {
181
+ signals.push({
182
+ type: 'keyword',
183
+ value: keyword,
184
+ confidence: keywordGroup.weight,
185
+ categoryHint: keywordGroup.category,
186
+ });
187
+ }
188
+ }
189
+ }
190
+ // Reference signals
191
+ for (const ref of parsed.references) {
192
+ signals.push({
193
+ type: 'reference',
194
+ value: `${ref.type}:${ref.id}`,
195
+ confidence: 0.5,
196
+ });
197
+ }
198
+ // Deprecation signals
199
+ if (lowerMessage.includes('deprecat')) {
200
+ signals.push({
201
+ type: 'deprecation',
202
+ value: 'deprecation',
203
+ confidence: 0.8,
204
+ categoryHint: 'technology-removal',
205
+ });
206
+ }
207
+ return signals;
208
+ }
209
+ /**
210
+ * Calculate architectural significance score (0-1)
211
+ */
212
+ calculateSignificance(subject, body = '') {
213
+ const signals = this.extractSignals(subject, body);
214
+ if (signals.length === 0) {
215
+ return 0.1; // Base significance for any commit
216
+ }
217
+ // Weight signals
218
+ let totalWeight = 0;
219
+ let maxWeight = 0;
220
+ for (const signal of signals) {
221
+ totalWeight += signal.confidence;
222
+ maxWeight = Math.max(maxWeight, signal.confidence);
223
+ }
224
+ // Combine: max signal weight + bonus for multiple signals
225
+ const multiSignalBonus = Math.min(0.2, (signals.length - 1) * 0.05);
226
+ const significance = Math.min(1, maxWeight + multiSignalBonus);
227
+ return significance;
228
+ }
229
+ /**
230
+ * Parse conventional commit format
231
+ */
232
+ parseConventionalCommit(subject) {
233
+ const match = subject.match(CONVENTIONAL_COMMIT_REGEX);
234
+ if (!match)
235
+ return null;
236
+ const [, typeStr, scope, breaking, description] = match;
237
+ if (!typeStr || !description)
238
+ return null;
239
+ const normalizedType = typeStr.toLowerCase();
240
+ // Validate type
241
+ if (!Object.keys(CONVENTIONAL_TYPE_MAP).includes(normalizedType)) {
242
+ return null;
243
+ }
244
+ const result = {
245
+ type: normalizedType,
246
+ isBreaking: !!breaking,
247
+ description,
248
+ };
249
+ if (scope) {
250
+ result.scope = scope;
251
+ }
252
+ return result;
253
+ }
254
+ /**
255
+ * Detect breaking changes
256
+ */
257
+ detectBreakingChange(message, conventionalBreaking) {
258
+ if (conventionalBreaking)
259
+ return true;
260
+ const upperMessage = message.toUpperCase();
261
+ return BREAKING_CHANGE_INDICATORS.some(indicator => upperMessage.includes(indicator.toUpperCase()));
262
+ }
263
+ /**
264
+ * Parse footer tokens (e.g., "Fixes #123", "BREAKING CHANGE: ...")
265
+ */
266
+ parseFooterTokens(body) {
267
+ const tokens = [];
268
+ const lines = body.split('\n');
269
+ for (const line of lines) {
270
+ // Match "Key: Value" or "Key #Value" patterns
271
+ const match = line.match(/^([A-Z][A-Za-z-]+)(?::\s*|\s+#)(.+)$/);
272
+ if (match && match[1] && match[2]) {
273
+ tokens.push({
274
+ key: match[1],
275
+ value: match[2].trim(),
276
+ });
277
+ }
278
+ }
279
+ return tokens;
280
+ }
281
+ /**
282
+ * Detect architectural keywords
283
+ */
284
+ detectKeywords(message) {
285
+ const keywords = [];
286
+ const lowerMessage = message.toLowerCase();
287
+ for (const group of ARCHITECTURAL_KEYWORDS) {
288
+ for (const keyword of group.keywords) {
289
+ if (lowerMessage.includes(keyword.toLowerCase())) {
290
+ keywords.push(keyword);
291
+ }
292
+ }
293
+ }
294
+ return [...new Set(keywords)];
295
+ }
296
+ /**
297
+ * Parse references to issues, PRs, commits
298
+ */
299
+ parseReferences(message) {
300
+ const references = [];
301
+ const seen = new Set();
302
+ for (const pattern of REFERENCE_PATTERNS) {
303
+ const regex = new RegExp(pattern.regex.source, pattern.regex.flags);
304
+ let match;
305
+ while ((match = regex.exec(message)) !== null) {
306
+ const id = pattern.action ? match[2] : match[1];
307
+ if (!id)
308
+ continue;
309
+ const key = `${pattern.type}:${id}`;
310
+ if (!seen.has(key)) {
311
+ seen.add(key);
312
+ const ref = {
313
+ type: pattern.type,
314
+ id,
315
+ };
316
+ if (pattern.action && match[1]) {
317
+ ref.action = match[1].toLowerCase();
318
+ }
319
+ references.push(ref);
320
+ }
321
+ }
322
+ }
323
+ return references;
324
+ }
325
+ }
326
+ /**
327
+ * Create a commit parser instance
328
+ */
329
+ export function createCommitParser() {
330
+ return new CommitParser();
331
+ }
332
+ /**
333
+ * Quick parse function
334
+ */
335
+ export function parseCommitMessage(subject, body) {
336
+ return new CommitParser().parse(subject, body);
337
+ }
338
+ /**
339
+ * Quick signal extraction
340
+ */
341
+ export function extractMessageSignals(subject, body) {
342
+ return new CommitParser().extractSignals(subject, body);
343
+ }
344
+ //# sourceMappingURL=commit-parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-parser.js","sourceRoot":"","sources":["../../../src/decisions/git/commit-parser.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,+EAA+E;AAC/E,8BAA8B;AAC9B,+EAA+E;AAE/E,MAAM,yBAAyB,GAAG,qCAAqC,CAAC;AAExE,MAAM,qBAAqB,GAA4D;IACrF,IAAI,EAAE,sBAAsB;IAC5B,GAAG,EAAE,IAAI,EAAE,4BAA4B;IACvC,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,aAAa;IACvB,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE,gBAAgB;IACvB,EAAE,EAAE,gBAAgB;IACpB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E;;GAEG;AACH,MAAM,sBAAsB,GAIvB;IACH,sBAAsB;IACtB;QACE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,O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