driftdetect-core 0.4.6 → 0.6.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 (644) 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/csharp-data-access-extractor.d.ts +8 -0
  7. package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts.map +1 -1
  8. package/dist/call-graph/extractors/csharp-data-access-extractor.js +8 -0
  9. package/dist/call-graph/extractors/csharp-data-access-extractor.js.map +1 -1
  10. package/dist/call-graph/extractors/csharp-extractor.d.ts +35 -0
  11. package/dist/call-graph/extractors/csharp-extractor.d.ts.map +1 -1
  12. package/dist/call-graph/extractors/csharp-extractor.js +362 -4
  13. package/dist/call-graph/extractors/csharp-extractor.js.map +1 -1
  14. package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts +37 -0
  15. package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts.map +1 -0
  16. package/dist/call-graph/extractors/csharp-hybrid-extractor.js +408 -0
  17. package/dist/call-graph/extractors/csharp-hybrid-extractor.js.map +1 -0
  18. package/dist/call-graph/extractors/go-data-access-extractor.d.ts +80 -0
  19. package/dist/call-graph/extractors/go-data-access-extractor.d.ts.map +1 -0
  20. package/dist/call-graph/extractors/go-data-access-extractor.js +457 -0
  21. package/dist/call-graph/extractors/go-data-access-extractor.js.map +1 -0
  22. package/dist/call-graph/extractors/go-extractor.d.ts +103 -0
  23. package/dist/call-graph/extractors/go-extractor.d.ts.map +1 -0
  24. package/dist/call-graph/extractors/go-extractor.js +509 -0
  25. package/dist/call-graph/extractors/go-extractor.js.map +1 -0
  26. package/dist/call-graph/extractors/go-hybrid-extractor.d.ts +97 -0
  27. package/dist/call-graph/extractors/go-hybrid-extractor.d.ts.map +1 -0
  28. package/dist/call-graph/extractors/go-hybrid-extractor.js +496 -0
  29. package/dist/call-graph/extractors/go-hybrid-extractor.js.map +1 -0
  30. package/dist/call-graph/extractors/hybrid-extractor-base.d.ts +102 -0
  31. package/dist/call-graph/extractors/hybrid-extractor-base.d.ts.map +1 -0
  32. package/dist/call-graph/extractors/hybrid-extractor-base.js +289 -0
  33. package/dist/call-graph/extractors/hybrid-extractor-base.js.map +1 -0
  34. package/dist/call-graph/extractors/index.d.ts +17 -13
  35. package/dist/call-graph/extractors/index.d.ts.map +1 -1
  36. package/dist/call-graph/extractors/index.js +24 -23
  37. package/dist/call-graph/extractors/index.js.map +1 -1
  38. package/dist/call-graph/extractors/java-data-access-extractor.d.ts +8 -0
  39. package/dist/call-graph/extractors/java-data-access-extractor.d.ts.map +1 -1
  40. package/dist/call-graph/extractors/java-data-access-extractor.js +8 -0
  41. package/dist/call-graph/extractors/java-data-access-extractor.js.map +1 -1
  42. package/dist/call-graph/extractors/java-extractor.d.ts +15 -0
  43. package/dist/call-graph/extractors/java-extractor.d.ts.map +1 -1
  44. package/dist/call-graph/extractors/java-extractor.js +120 -4
  45. package/dist/call-graph/extractors/java-extractor.js.map +1 -1
  46. package/dist/call-graph/extractors/java-hybrid-extractor.d.ts +36 -0
  47. package/dist/call-graph/extractors/java-hybrid-extractor.d.ts.map +1 -0
  48. package/dist/call-graph/extractors/java-hybrid-extractor.js +426 -0
  49. package/dist/call-graph/extractors/java-hybrid-extractor.js.map +1 -0
  50. package/dist/call-graph/extractors/php-data-access-extractor.d.ts +8 -0
  51. package/dist/call-graph/extractors/php-data-access-extractor.d.ts.map +1 -1
  52. package/dist/call-graph/extractors/php-data-access-extractor.js +8 -0
  53. package/dist/call-graph/extractors/php-data-access-extractor.js.map +1 -1
  54. package/dist/call-graph/extractors/php-extractor.d.ts +48 -1
  55. package/dist/call-graph/extractors/php-extractor.d.ts.map +1 -1
  56. package/dist/call-graph/extractors/php-extractor.js +460 -6
  57. package/dist/call-graph/extractors/php-extractor.js.map +1 -1
  58. package/dist/call-graph/extractors/php-hybrid-extractor.d.ts +35 -0
  59. package/dist/call-graph/extractors/php-hybrid-extractor.d.ts.map +1 -0
  60. package/dist/call-graph/extractors/php-hybrid-extractor.js +393 -0
  61. package/dist/call-graph/extractors/php-hybrid-extractor.js.map +1 -0
  62. package/dist/call-graph/extractors/python-data-access-extractor.d.ts +8 -0
  63. package/dist/call-graph/extractors/python-data-access-extractor.d.ts.map +1 -1
  64. package/dist/call-graph/extractors/python-data-access-extractor.js +8 -0
  65. package/dist/call-graph/extractors/python-data-access-extractor.js.map +1 -1
  66. package/dist/call-graph/extractors/python-hybrid-extractor.d.ts +85 -0
  67. package/dist/call-graph/extractors/python-hybrid-extractor.d.ts.map +1 -0
  68. package/dist/call-graph/extractors/python-hybrid-extractor.js +462 -0
  69. package/dist/call-graph/extractors/python-hybrid-extractor.js.map +1 -0
  70. package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts +154 -0
  71. package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts.map +1 -0
  72. package/dist/call-graph/extractors/regex/base-regex-extractor.js +346 -0
  73. package/dist/call-graph/extractors/regex/base-regex-extractor.js.map +1 -0
  74. package/dist/call-graph/extractors/regex/csharp-regex.d.ts +34 -0
  75. package/dist/call-graph/extractors/regex/csharp-regex.d.ts.map +1 -0
  76. package/dist/call-graph/extractors/regex/csharp-regex.js +393 -0
  77. package/dist/call-graph/extractors/regex/csharp-regex.js.map +1 -0
  78. package/dist/call-graph/extractors/regex/go-regex.d.ts +51 -0
  79. package/dist/call-graph/extractors/regex/go-regex.d.ts.map +1 -0
  80. package/dist/call-graph/extractors/regex/go-regex.js +435 -0
  81. package/dist/call-graph/extractors/regex/go-regex.js.map +1 -0
  82. package/dist/call-graph/extractors/regex/index.d.ts +26 -0
  83. package/dist/call-graph/extractors/regex/index.d.ts.map +1 -0
  84. package/dist/call-graph/extractors/regex/index.js +74 -0
  85. package/dist/call-graph/extractors/regex/index.js.map +1 -0
  86. package/dist/call-graph/extractors/regex/java-regex.d.ts +34 -0
  87. package/dist/call-graph/extractors/regex/java-regex.d.ts.map +1 -0
  88. package/dist/call-graph/extractors/regex/java-regex.js +327 -0
  89. package/dist/call-graph/extractors/regex/java-regex.js.map +1 -0
  90. package/dist/call-graph/extractors/regex/php-regex.d.ts +30 -0
  91. package/dist/call-graph/extractors/regex/php-regex.d.ts.map +1 -0
  92. package/dist/call-graph/extractors/regex/php-regex.js +333 -0
  93. package/dist/call-graph/extractors/regex/php-regex.js.map +1 -0
  94. package/dist/call-graph/extractors/regex/python-regex.d.ts +46 -0
  95. package/dist/call-graph/extractors/regex/python-regex.d.ts.map +1 -0
  96. package/dist/call-graph/extractors/regex/python-regex.js +380 -0
  97. package/dist/call-graph/extractors/regex/python-regex.js.map +1 -0
  98. package/dist/call-graph/extractors/regex/typescript-regex.d.ts +27 -0
  99. package/dist/call-graph/extractors/regex/typescript-regex.d.ts.map +1 -0
  100. package/dist/call-graph/extractors/regex/typescript-regex.js +349 -0
  101. package/dist/call-graph/extractors/regex/typescript-regex.js.map +1 -0
  102. package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts +7 -0
  103. package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts.map +1 -1
  104. package/dist/call-graph/extractors/semantic-data-access-scanner.js +7 -0
  105. package/dist/call-graph/extractors/semantic-data-access-scanner.js.map +1 -1
  106. package/dist/call-graph/extractors/types.d.ts +111 -0
  107. package/dist/call-graph/extractors/types.d.ts.map +1 -0
  108. package/dist/call-graph/extractors/types.js +68 -0
  109. package/dist/call-graph/extractors/types.js.map +1 -0
  110. package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts +8 -0
  111. package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts.map +1 -1
  112. package/dist/call-graph/extractors/typescript-data-access-extractor.js +8 -0
  113. package/dist/call-graph/extractors/typescript-data-access-extractor.js.map +1 -1
  114. package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts +116 -0
  115. package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts.map +1 -0
  116. package/dist/call-graph/extractors/typescript-hybrid-extractor.js +635 -0
  117. package/dist/call-graph/extractors/typescript-hybrid-extractor.js.map +1 -0
  118. package/dist/call-graph/index.d.ts +3 -0
  119. package/dist/call-graph/index.d.ts.map +1 -1
  120. package/dist/call-graph/index.js +5 -0
  121. package/dist/call-graph/index.js.map +1 -1
  122. package/dist/call-graph/types.d.ts +1 -1
  123. package/dist/call-graph/types.d.ts.map +1 -1
  124. package/dist/constraints/extraction/constraint-synthesizer.d.ts +72 -0
  125. package/dist/constraints/extraction/constraint-synthesizer.d.ts.map +1 -0
  126. package/dist/constraints/extraction/constraint-synthesizer.js +336 -0
  127. package/dist/constraints/extraction/constraint-synthesizer.js.map +1 -0
  128. package/dist/constraints/extraction/index.d.ts +10 -0
  129. package/dist/constraints/extraction/index.d.ts.map +1 -0
  130. package/dist/constraints/extraction/index.js +10 -0
  131. package/dist/constraints/extraction/index.js.map +1 -0
  132. package/dist/constraints/extraction/invariant-detector.d.ts +109 -0
  133. package/dist/constraints/extraction/invariant-detector.d.ts.map +1 -0
  134. package/dist/constraints/extraction/invariant-detector.js +979 -0
  135. package/dist/constraints/extraction/invariant-detector.js.map +1 -0
  136. package/dist/constraints/index.d.ts +15 -0
  137. package/dist/constraints/index.d.ts.map +1 -0
  138. package/dist/constraints/index.js +16 -0
  139. package/dist/constraints/index.js.map +1 -0
  140. package/dist/constraints/store/constraint-store.d.ts +110 -0
  141. package/dist/constraints/store/constraint-store.d.ts.map +1 -0
  142. package/dist/constraints/store/constraint-store.js +584 -0
  143. package/dist/constraints/store/constraint-store.js.map +1 -0
  144. package/dist/constraints/types.d.ts +605 -0
  145. package/dist/constraints/types.d.ts.map +1 -0
  146. package/dist/constraints/types.js +57 -0
  147. package/dist/constraints/types.js.map +1 -0
  148. package/dist/constraints/verification/constraint-verifier.d.ts +100 -0
  149. package/dist/constraints/verification/constraint-verifier.d.ts.map +1 -0
  150. package/dist/constraints/verification/constraint-verifier.js +638 -0
  151. package/dist/constraints/verification/constraint-verifier.js.map +1 -0
  152. package/dist/constraints/verification/index.d.ts +8 -0
  153. package/dist/constraints/verification/index.d.ts.map +1 -0
  154. package/dist/constraints/verification/index.js +8 -0
  155. package/dist/constraints/verification/index.js.map +1 -0
  156. package/dist/decisions/analyzer/decision-mining-analyzer.d.ts +121 -0
  157. package/dist/decisions/analyzer/decision-mining-analyzer.d.ts.map +1 -0
  158. package/dist/decisions/analyzer/decision-mining-analyzer.js +904 -0
  159. package/dist/decisions/analyzer/decision-mining-analyzer.js.map +1 -0
  160. package/dist/decisions/analyzer/index.d.ts +5 -0
  161. package/dist/decisions/analyzer/index.d.ts.map +1 -0
  162. package/dist/decisions/analyzer/index.js +5 -0
  163. package/dist/decisions/analyzer/index.js.map +1 -0
  164. package/dist/decisions/extractors/base-commit-extractor.d.ts +104 -0
  165. package/dist/decisions/extractors/base-commit-extractor.d.ts.map +1 -0
  166. package/dist/decisions/extractors/base-commit-extractor.js +305 -0
  167. package/dist/decisions/extractors/base-commit-extractor.js.map +1 -0
  168. package/dist/decisions/extractors/csharp-commit-extractor.d.ts +18 -0
  169. package/dist/decisions/extractors/csharp-commit-extractor.d.ts.map +1 -0
  170. package/dist/decisions/extractors/csharp-commit-extractor.js +281 -0
  171. package/dist/decisions/extractors/csharp-commit-extractor.js.map +1 -0
  172. package/dist/decisions/extractors/index.d.ts +31 -0
  173. package/dist/decisions/extractors/index.d.ts.map +1 -0
  174. package/dist/decisions/extractors/index.js +63 -0
  175. package/dist/decisions/extractors/index.js.map +1 -0
  176. package/dist/decisions/extractors/java-commit-extractor.d.ts +18 -0
  177. package/dist/decisions/extractors/java-commit-extractor.d.ts.map +1 -0
  178. package/dist/decisions/extractors/java-commit-extractor.js +248 -0
  179. package/dist/decisions/extractors/java-commit-extractor.js.map +1 -0
  180. package/dist/decisions/extractors/php-commit-extractor.d.ts +18 -0
  181. package/dist/decisions/extractors/php-commit-extractor.d.ts.map +1 -0
  182. package/dist/decisions/extractors/php-commit-extractor.js +280 -0
  183. package/dist/decisions/extractors/php-commit-extractor.js.map +1 -0
  184. package/dist/decisions/extractors/python-commit-extractor.d.ts +18 -0
  185. package/dist/decisions/extractors/python-commit-extractor.d.ts.map +1 -0
  186. package/dist/decisions/extractors/python-commit-extractor.js +248 -0
  187. package/dist/decisions/extractors/python-commit-extractor.js.map +1 -0
  188. package/dist/decisions/extractors/typescript-commit-extractor.d.ts +37 -0
  189. package/dist/decisions/extractors/typescript-commit-extractor.d.ts.map +1 -0
  190. package/dist/decisions/extractors/typescript-commit-extractor.js +229 -0
  191. package/dist/decisions/extractors/typescript-commit-extractor.js.map +1 -0
  192. package/dist/decisions/git/commit-parser.d.ts +58 -0
  193. package/dist/decisions/git/commit-parser.d.ts.map +1 -0
  194. package/dist/decisions/git/commit-parser.js +344 -0
  195. package/dist/decisions/git/commit-parser.js.map +1 -0
  196. package/dist/decisions/git/diff-analyzer.d.ts +30 -0
  197. package/dist/decisions/git/diff-analyzer.d.ts.map +1 -0
  198. package/dist/decisions/git/diff-analyzer.js +492 -0
  199. package/dist/decisions/git/diff-analyzer.js.map +1 -0
  200. package/dist/decisions/git/git-walker.d.ts +64 -0
  201. package/dist/decisions/git/git-walker.d.ts.map +1 -0
  202. package/dist/decisions/git/git-walker.js +441 -0
  203. package/dist/decisions/git/git-walker.js.map +1 -0
  204. package/dist/decisions/git/index.d.ts +11 -0
  205. package/dist/decisions/git/index.d.ts.map +1 -0
  206. package/dist/decisions/git/index.js +13 -0
  207. package/dist/decisions/git/index.js.map +1 -0
  208. package/dist/decisions/git/types.d.ts +223 -0
  209. package/dist/decisions/git/types.d.ts.map +1 -0
  210. package/dist/decisions/git/types.js +7 -0
  211. package/dist/decisions/git/types.js.map +1 -0
  212. package/dist/decisions/index.d.ts +27 -0
  213. package/dist/decisions/index.d.ts.map +1 -0
  214. package/dist/decisions/index.js +45 -0
  215. package/dist/decisions/index.js.map +1 -0
  216. package/dist/decisions/types.d.ts +530 -0
  217. package/dist/decisions/types.d.ts.map +1 -0
  218. package/dist/decisions/types.js +8 -0
  219. package/dist/decisions/types.js.map +1 -0
  220. package/dist/error-handling/error-handling-analyzer.d.ts +73 -0
  221. package/dist/error-handling/error-handling-analyzer.d.ts.map +1 -0
  222. package/dist/error-handling/error-handling-analyzer.js +706 -0
  223. package/dist/error-handling/error-handling-analyzer.js.map +1 -0
  224. package/dist/error-handling/index.d.ts +8 -0
  225. package/dist/error-handling/index.d.ts.map +1 -0
  226. package/dist/error-handling/index.js +8 -0
  227. package/dist/error-handling/index.js.map +1 -0
  228. package/dist/error-handling/types.d.ts +307 -0
  229. package/dist/error-handling/types.d.ts.map +1 -0
  230. package/dist/error-handling/types.js +7 -0
  231. package/dist/error-handling/types.js.map +1 -0
  232. package/dist/go/go-analyzer.d.ts +203 -0
  233. package/dist/go/go-analyzer.d.ts.map +1 -0
  234. package/dist/go/go-analyzer.js +509 -0
  235. package/dist/go/go-analyzer.js.map +1 -0
  236. package/dist/go/index.d.ts +7 -0
  237. package/dist/go/index.d.ts.map +1 -0
  238. package/dist/go/index.js +8 -0
  239. package/dist/go/index.js.map +1 -0
  240. package/dist/index.d.ts +25 -0
  241. package/dist/index.d.ts.map +1 -1
  242. package/dist/index.js +85 -0
  243. package/dist/index.js.map +1 -1
  244. package/dist/lake/pattern-shard-store.d.ts +6 -0
  245. package/dist/lake/pattern-shard-store.d.ts.map +1 -1
  246. package/dist/lake/pattern-shard-store.js +6 -0
  247. package/dist/lake/pattern-shard-store.js.map +1 -1
  248. package/dist/module-coupling/coupling-analyzer.d.ts +73 -0
  249. package/dist/module-coupling/coupling-analyzer.d.ts.map +1 -0
  250. package/dist/module-coupling/coupling-analyzer.js +668 -0
  251. package/dist/module-coupling/coupling-analyzer.js.map +1 -0
  252. package/dist/module-coupling/index.d.ts +9 -0
  253. package/dist/module-coupling/index.d.ts.map +1 -0
  254. package/dist/module-coupling/index.js +9 -0
  255. package/dist/module-coupling/index.js.map +1 -0
  256. package/dist/module-coupling/types.d.ts +273 -0
  257. package/dist/module-coupling/types.d.ts.map +1 -0
  258. package/dist/module-coupling/types.js +8 -0
  259. package/dist/module-coupling/types.js.map +1 -0
  260. package/dist/parsers/tree-sitter/go-loader.d.ts +50 -0
  261. package/dist/parsers/tree-sitter/go-loader.d.ts.map +1 -0
  262. package/dist/parsers/tree-sitter/go-loader.js +161 -0
  263. package/dist/parsers/tree-sitter/go-loader.js.map +1 -0
  264. package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts +250 -0
  265. package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts.map +1 -0
  266. package/dist/parsers/tree-sitter/tree-sitter-go-parser.js +707 -0
  267. package/dist/parsers/tree-sitter/tree-sitter-go-parser.js.map +1 -0
  268. package/dist/parsers/types.d.ts +1 -1
  269. package/dist/parsers/types.d.ts.map +1 -1
  270. package/dist/patterns/adapters/index.d.ts +11 -0
  271. package/dist/patterns/adapters/index.d.ts.map +1 -0
  272. package/dist/patterns/adapters/index.js +11 -0
  273. package/dist/patterns/adapters/index.js.map +1 -0
  274. package/dist/patterns/adapters/pattern-store-adapter.d.ts +59 -0
  275. package/dist/patterns/adapters/pattern-store-adapter.d.ts.map +1 -0
  276. package/dist/patterns/adapters/pattern-store-adapter.js +468 -0
  277. package/dist/patterns/adapters/pattern-store-adapter.js.map +1 -0
  278. package/dist/patterns/adapters/service-factory.d.ts +40 -0
  279. package/dist/patterns/adapters/service-factory.d.ts.map +1 -0
  280. package/dist/patterns/adapters/service-factory.js +144 -0
  281. package/dist/patterns/adapters/service-factory.js.map +1 -0
  282. package/dist/patterns/errors.d.ts +32 -0
  283. package/dist/patterns/errors.d.ts.map +1 -0
  284. package/dist/patterns/errors.js +45 -0
  285. package/dist/patterns/errors.js.map +1 -0
  286. package/dist/patterns/impl/cached-repository.d.ts +79 -0
  287. package/dist/patterns/impl/cached-repository.d.ts.map +1 -0
  288. package/dist/patterns/impl/cached-repository.js +296 -0
  289. package/dist/patterns/impl/cached-repository.js.map +1 -0
  290. package/dist/patterns/impl/file-repository.d.ts +75 -0
  291. package/dist/patterns/impl/file-repository.d.ts.map +1 -0
  292. package/dist/patterns/impl/file-repository.js +507 -0
  293. package/dist/patterns/impl/file-repository.js.map +1 -0
  294. package/dist/patterns/impl/index.d.ts +16 -0
  295. package/dist/patterns/impl/index.d.ts.map +1 -0
  296. package/dist/patterns/impl/index.js +21 -0
  297. package/dist/patterns/impl/index.js.map +1 -0
  298. package/dist/patterns/impl/memory-repository.d.ts +56 -0
  299. package/dist/patterns/impl/memory-repository.d.ts.map +1 -0
  300. package/dist/patterns/impl/memory-repository.js +323 -0
  301. package/dist/patterns/impl/memory-repository.js.map +1 -0
  302. package/dist/patterns/impl/pattern-service.d.ts +52 -0
  303. package/dist/patterns/impl/pattern-service.d.ts.map +1 -0
  304. package/dist/patterns/impl/pattern-service.js +382 -0
  305. package/dist/patterns/impl/pattern-service.js.map +1 -0
  306. package/dist/patterns/impl/repository-factory.d.ts +44 -0
  307. package/dist/patterns/impl/repository-factory.d.ts.map +1 -0
  308. package/dist/patterns/impl/repository-factory.js +140 -0
  309. package/dist/patterns/impl/repository-factory.js.map +1 -0
  310. package/dist/patterns/impl/unified-file-repository.d.ts +111 -0
  311. package/dist/patterns/impl/unified-file-repository.d.ts.map +1 -0
  312. package/dist/patterns/impl/unified-file-repository.js +677 -0
  313. package/dist/patterns/impl/unified-file-repository.js.map +1 -0
  314. package/dist/patterns/index.d.ts +23 -0
  315. package/dist/patterns/index.d.ts.map +1 -0
  316. package/dist/patterns/index.js +41 -0
  317. package/dist/patterns/index.js.map +1 -0
  318. package/dist/patterns/repository.d.ts +241 -0
  319. package/dist/patterns/repository.d.ts.map +1 -0
  320. package/dist/patterns/repository.js +23 -0
  321. package/dist/patterns/repository.js.map +1 -0
  322. package/dist/patterns/service.d.ts +245 -0
  323. package/dist/patterns/service.d.ts.map +1 -0
  324. package/dist/patterns/service.js +25 -0
  325. package/dist/patterns/service.js.map +1 -0
  326. package/dist/patterns/types.d.ts +227 -0
  327. package/dist/patterns/types.d.ts.map +1 -0
  328. package/dist/patterns/types.js +117 -0
  329. package/dist/patterns/types.js.map +1 -0
  330. package/dist/simulation/approach-generator.d.ts +73 -0
  331. package/dist/simulation/approach-generator.d.ts.map +1 -0
  332. package/dist/simulation/approach-generator.js +371 -0
  333. package/dist/simulation/approach-generator.js.map +1 -0
  334. package/dist/simulation/index.d.ts +14 -0
  335. package/dist/simulation/index.d.ts.map +1 -0
  336. package/dist/simulation/index.js +19 -0
  337. package/dist/simulation/index.js.map +1 -0
  338. package/dist/simulation/language-strategies/csharp-strategies.d.ts +17 -0
  339. package/dist/simulation/language-strategies/csharp-strategies.d.ts.map +1 -0
  340. package/dist/simulation/language-strategies/csharp-strategies.js +118 -0
  341. package/dist/simulation/language-strategies/csharp-strategies.js.map +1 -0
  342. package/dist/simulation/language-strategies/index.d.ts +41 -0
  343. package/dist/simulation/language-strategies/index.d.ts.map +1 -0
  344. package/dist/simulation/language-strategies/index.js +92 -0
  345. package/dist/simulation/language-strategies/index.js.map +1 -0
  346. package/dist/simulation/language-strategies/java-strategies.d.ts +17 -0
  347. package/dist/simulation/language-strategies/java-strategies.d.ts.map +1 -0
  348. package/dist/simulation/language-strategies/java-strategies.js +119 -0
  349. package/dist/simulation/language-strategies/java-strategies.js.map +1 -0
  350. package/dist/simulation/language-strategies/php-strategies.d.ts +17 -0
  351. package/dist/simulation/language-strategies/php-strategies.d.ts.map +1 -0
  352. package/dist/simulation/language-strategies/php-strategies.js +129 -0
  353. package/dist/simulation/language-strategies/php-strategies.js.map +1 -0
  354. package/dist/simulation/language-strategies/python-strategies.d.ts +17 -0
  355. package/dist/simulation/language-strategies/python-strategies.d.ts.map +1 -0
  356. package/dist/simulation/language-strategies/python-strategies.js +208 -0
  357. package/dist/simulation/language-strategies/python-strategies.js.map +1 -0
  358. package/dist/simulation/language-strategies/types.d.ts +67 -0
  359. package/dist/simulation/language-strategies/types.d.ts.map +1 -0
  360. package/dist/simulation/language-strategies/types.js +23 -0
  361. package/dist/simulation/language-strategies/types.js.map +1 -0
  362. package/dist/simulation/language-strategies/typescript-strategies.d.ts +17 -0
  363. package/dist/simulation/language-strategies/typescript-strategies.d.ts.map +1 -0
  364. package/dist/simulation/language-strategies/typescript-strategies.js +251 -0
  365. package/dist/simulation/language-strategies/typescript-strategies.js.map +1 -0
  366. package/dist/simulation/scorers/friction-scorer.d.ts +45 -0
  367. package/dist/simulation/scorers/friction-scorer.d.ts.map +1 -0
  368. package/dist/simulation/scorers/friction-scorer.js +336 -0
  369. package/dist/simulation/scorers/friction-scorer.js.map +1 -0
  370. package/dist/simulation/scorers/impact-scorer.d.ts +56 -0
  371. package/dist/simulation/scorers/impact-scorer.d.ts.map +1 -0
  372. package/dist/simulation/scorers/impact-scorer.js +273 -0
  373. package/dist/simulation/scorers/impact-scorer.js.map +1 -0
  374. package/dist/simulation/scorers/index.d.ts +12 -0
  375. package/dist/simulation/scorers/index.d.ts.map +1 -0
  376. package/dist/simulation/scorers/index.js +12 -0
  377. package/dist/simulation/scorers/index.js.map +1 -0
  378. package/dist/simulation/scorers/pattern-alignment-scorer.d.ts +83 -0
  379. package/dist/simulation/scorers/pattern-alignment-scorer.d.ts.map +1 -0
  380. package/dist/simulation/scorers/pattern-alignment-scorer.js +367 -0
  381. package/dist/simulation/scorers/pattern-alignment-scorer.js.map +1 -0
  382. package/dist/simulation/scorers/security-scorer.d.ts +63 -0
  383. package/dist/simulation/scorers/security-scorer.d.ts.map +1 -0
  384. package/dist/simulation/scorers/security-scorer.js +346 -0
  385. package/dist/simulation/scorers/security-scorer.js.map +1 -0
  386. package/dist/simulation/simulation-engine.d.ts +89 -0
  387. package/dist/simulation/simulation-engine.d.ts.map +1 -0
  388. package/dist/simulation/simulation-engine.js +480 -0
  389. package/dist/simulation/simulation-engine.js.map +1 -0
  390. package/dist/simulation/types.d.ts +200 -0
  391. package/dist/simulation/types.d.ts.map +1 -0
  392. package/dist/simulation/types.js +23 -0
  393. package/dist/simulation/types.js.map +1 -0
  394. package/dist/speculative/approach-generator.d.ts +2 -0
  395. package/dist/speculative/approach-generator.d.ts.map +1 -0
  396. package/dist/speculative/approach-generator.js +2 -0
  397. package/dist/speculative/approach-generator.js.map +1 -0
  398. package/dist/speculative/templates/types.d.ts +133 -0
  399. package/dist/speculative/templates/types.d.ts.map +1 -0
  400. package/dist/speculative/templates/types.js +208 -0
  401. package/dist/speculative/templates/types.js.map +1 -0
  402. package/dist/speculative/types.d.ts +523 -0
  403. package/dist/speculative/types.d.ts.map +1 -0
  404. package/dist/speculative/types.js +71 -0
  405. package/dist/speculative/types.js.map +1 -0
  406. package/dist/store/pattern-store.d.ts +6 -0
  407. package/dist/store/pattern-store.d.ts.map +1 -1
  408. package/dist/store/pattern-store.js +6 -0
  409. package/dist/store/pattern-store.js.map +1 -1
  410. package/dist/test-topology/extractors/base-test-extractor.d.ts +89 -0
  411. package/dist/test-topology/extractors/base-test-extractor.d.ts.map +1 -0
  412. package/dist/test-topology/extractors/base-test-extractor.js +187 -0
  413. package/dist/test-topology/extractors/base-test-extractor.js.map +1 -0
  414. package/dist/test-topology/extractors/csharp-test-extractor.d.ts +23 -0
  415. package/dist/test-topology/extractors/csharp-test-extractor.d.ts.map +1 -0
  416. package/dist/test-topology/extractors/csharp-test-extractor.js +367 -0
  417. package/dist/test-topology/extractors/csharp-test-extractor.js.map +1 -0
  418. package/dist/test-topology/extractors/go-test-extractor.d.ts +33 -0
  419. package/dist/test-topology/extractors/go-test-extractor.d.ts.map +1 -0
  420. package/dist/test-topology/extractors/go-test-extractor.js +436 -0
  421. package/dist/test-topology/extractors/go-test-extractor.js.map +1 -0
  422. package/dist/test-topology/extractors/index.d.ts +13 -0
  423. package/dist/test-topology/extractors/index.d.ts.map +1 -0
  424. package/dist/test-topology/extractors/index.js +13 -0
  425. package/dist/test-topology/extractors/index.js.map +1 -0
  426. package/dist/test-topology/extractors/java-test-extractor.d.ts +20 -0
  427. package/dist/test-topology/extractors/java-test-extractor.d.ts.map +1 -0
  428. package/dist/test-topology/extractors/java-test-extractor.js +275 -0
  429. package/dist/test-topology/extractors/java-test-extractor.js.map +1 -0
  430. package/dist/test-topology/extractors/php-test-extractor.d.ts +24 -0
  431. package/dist/test-topology/extractors/php-test-extractor.d.ts.map +1 -0
  432. package/dist/test-topology/extractors/php-test-extractor.js +409 -0
  433. package/dist/test-topology/extractors/php-test-extractor.js.map +1 -0
  434. package/dist/test-topology/extractors/python-test-extractor.d.ts +23 -0
  435. package/dist/test-topology/extractors/python-test-extractor.d.ts.map +1 -0
  436. package/dist/test-topology/extractors/python-test-extractor.js +342 -0
  437. package/dist/test-topology/extractors/python-test-extractor.js.map +1 -0
  438. package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts +51 -0
  439. package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts.map +1 -0
  440. package/dist/test-topology/extractors/regex/csharp-test-regex.js +383 -0
  441. package/dist/test-topology/extractors/regex/csharp-test-regex.js.map +1 -0
  442. package/dist/test-topology/extractors/regex/go-test-regex.d.ts +62 -0
  443. package/dist/test-topology/extractors/regex/go-test-regex.d.ts.map +1 -0
  444. package/dist/test-topology/extractors/regex/go-test-regex.js +528 -0
  445. package/dist/test-topology/extractors/regex/go-test-regex.js.map +1 -0
  446. package/dist/test-topology/extractors/regex/index.d.ts +19 -0
  447. package/dist/test-topology/extractors/regex/index.d.ts.map +1 -0
  448. package/dist/test-topology/extractors/regex/index.js +47 -0
  449. package/dist/test-topology/extractors/regex/index.js.map +1 -0
  450. package/dist/test-topology/extractors/regex/java-test-regex.d.ts +50 -0
  451. package/dist/test-topology/extractors/regex/java-test-regex.d.ts.map +1 -0
  452. package/dist/test-topology/extractors/regex/java-test-regex.js +370 -0
  453. package/dist/test-topology/extractors/regex/java-test-regex.js.map +1 -0
  454. package/dist/test-topology/extractors/regex/php-test-regex.d.ts +56 -0
  455. package/dist/test-topology/extractors/regex/php-test-regex.d.ts.map +1 -0
  456. package/dist/test-topology/extractors/regex/php-test-regex.js +503 -0
  457. package/dist/test-topology/extractors/regex/php-test-regex.js.map +1 -0
  458. package/dist/test-topology/extractors/regex/python-test-regex.d.ts +57 -0
  459. package/dist/test-topology/extractors/regex/python-test-regex.d.ts.map +1 -0
  460. package/dist/test-topology/extractors/regex/python-test-regex.js +381 -0
  461. package/dist/test-topology/extractors/regex/python-test-regex.js.map +1 -0
  462. package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts +60 -0
  463. package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts.map +1 -0
  464. package/dist/test-topology/extractors/regex/typescript-test-regex.js +368 -0
  465. package/dist/test-topology/extractors/regex/typescript-test-regex.js.map +1 -0
  466. package/dist/test-topology/extractors/typescript-test-extractor.d.ts +24 -0
  467. package/dist/test-topology/extractors/typescript-test-extractor.d.ts.map +1 -0
  468. package/dist/test-topology/extractors/typescript-test-extractor.js +266 -0
  469. package/dist/test-topology/extractors/typescript-test-extractor.js.map +1 -0
  470. package/dist/test-topology/hybrid-test-topology-analyzer.d.ts +98 -0
  471. package/dist/test-topology/hybrid-test-topology-analyzer.d.ts.map +1 -0
  472. package/dist/test-topology/hybrid-test-topology-analyzer.js +556 -0
  473. package/dist/test-topology/hybrid-test-topology-analyzer.js.map +1 -0
  474. package/dist/test-topology/index.d.ts +16 -0
  475. package/dist/test-topology/index.d.ts.map +1 -0
  476. package/dist/test-topology/index.js +19 -0
  477. package/dist/test-topology/index.js.map +1 -0
  478. package/dist/test-topology/test-topology-analyzer.d.ts +85 -0
  479. package/dist/test-topology/test-topology-analyzer.d.ts.map +1 -0
  480. package/dist/test-topology/test-topology-analyzer.js +539 -0
  481. package/dist/test-topology/test-topology-analyzer.js.map +1 -0
  482. package/dist/test-topology/types.d.ts +300 -0
  483. package/dist/test-topology/types.d.ts.map +1 -0
  484. package/dist/test-topology/types.js +7 -0
  485. package/dist/test-topology/types.js.map +1 -0
  486. package/dist/unified-provider/matching/database-sql-matcher.d.ts +42 -0
  487. package/dist/unified-provider/matching/database-sql-matcher.d.ts.map +1 -0
  488. package/dist/unified-provider/matching/database-sql-matcher.js +282 -0
  489. package/dist/unified-provider/matching/database-sql-matcher.js.map +1 -0
  490. package/dist/unified-provider/matching/gorm-matcher.d.ts +41 -0
  491. package/dist/unified-provider/matching/gorm-matcher.d.ts.map +1 -0
  492. package/dist/unified-provider/matching/gorm-matcher.js +222 -0
  493. package/dist/unified-provider/matching/gorm-matcher.js.map +1 -0
  494. package/dist/unified-provider/matching/index.d.ts +3 -0
  495. package/dist/unified-provider/matching/index.d.ts.map +1 -1
  496. package/dist/unified-provider/matching/index.js +4 -0
  497. package/dist/unified-provider/matching/index.js.map +1 -1
  498. package/dist/unified-provider/matching/matcher-registry.d.ts.map +1 -1
  499. package/dist/unified-provider/matching/matcher-registry.js +7 -0
  500. package/dist/unified-provider/matching/matcher-registry.js.map +1 -1
  501. package/dist/unified-provider/matching/sqlx-matcher.d.ts +40 -0
  502. package/dist/unified-provider/matching/sqlx-matcher.d.ts.map +1 -0
  503. package/dist/unified-provider/matching/sqlx-matcher.js +214 -0
  504. package/dist/unified-provider/matching/sqlx-matcher.js.map +1 -0
  505. package/dist/unified-provider/normalization/go-normalizer.d.ts +62 -0
  506. package/dist/unified-provider/normalization/go-normalizer.d.ts.map +1 -0
  507. package/dist/unified-provider/normalization/go-normalizer.js +608 -0
  508. package/dist/unified-provider/normalization/go-normalizer.js.map +1 -0
  509. package/dist/unified-provider/normalization/index.d.ts +1 -0
  510. package/dist/unified-provider/normalization/index.d.ts.map +1 -1
  511. package/dist/unified-provider/normalization/index.js +6 -1
  512. package/dist/unified-provider/normalization/index.js.map +1 -1
  513. package/dist/unified-provider/types.d.ts +1 -1
  514. package/dist/unified-provider/types.d.ts.map +1 -1
  515. package/dist/wpf/extractors/binding-error-detector.d.ts +75 -0
  516. package/dist/wpf/extractors/binding-error-detector.d.ts.map +1 -0
  517. package/dist/wpf/extractors/binding-error-detector.js +290 -0
  518. package/dist/wpf/extractors/binding-error-detector.js.map +1 -0
  519. package/dist/wpf/extractors/code-behind-linker.d.ts +70 -0
  520. package/dist/wpf/extractors/code-behind-linker.d.ts.map +1 -0
  521. package/dist/wpf/extractors/code-behind-linker.js +172 -0
  522. package/dist/wpf/extractors/code-behind-linker.js.map +1 -0
  523. package/dist/wpf/extractors/dependency-property-extractor.d.ts +61 -0
  524. package/dist/wpf/extractors/dependency-property-extractor.d.ts.map +1 -0
  525. package/dist/wpf/extractors/dependency-property-extractor.js +201 -0
  526. package/dist/wpf/extractors/dependency-property-extractor.js.map +1 -0
  527. package/dist/wpf/extractors/regex/viewmodel-regex.d.ts +82 -0
  528. package/dist/wpf/extractors/regex/viewmodel-regex.d.ts.map +1 -0
  529. package/dist/wpf/extractors/regex/viewmodel-regex.js +412 -0
  530. package/dist/wpf/extractors/regex/viewmodel-regex.js.map +1 -0
  531. package/dist/wpf/extractors/regex/xaml-regex.d.ts +77 -0
  532. package/dist/wpf/extractors/regex/xaml-regex.d.ts.map +1 -0
  533. package/dist/wpf/extractors/regex/xaml-regex.js +353 -0
  534. package/dist/wpf/extractors/regex/xaml-regex.js.map +1 -0
  535. package/dist/wpf/extractors/resource-dictionary-parser.d.ts +103 -0
  536. package/dist/wpf/extractors/resource-dictionary-parser.d.ts.map +1 -0
  537. package/dist/wpf/extractors/resource-dictionary-parser.js +296 -0
  538. package/dist/wpf/extractors/resource-dictionary-parser.js.map +1 -0
  539. package/dist/wpf/extractors/value-converter-extractor.d.ts +128 -0
  540. package/dist/wpf/extractors/value-converter-extractor.d.ts.map +1 -0
  541. package/dist/wpf/extractors/value-converter-extractor.js +312 -0
  542. package/dist/wpf/extractors/value-converter-extractor.js.map +1 -0
  543. package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts +104 -0
  544. package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts.map +1 -0
  545. package/dist/wpf/extractors/viewmodel-hybrid-extractor.js +513 -0
  546. package/dist/wpf/extractors/viewmodel-hybrid-extractor.js.map +1 -0
  547. package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts +98 -0
  548. package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts.map +1 -0
  549. package/dist/wpf/extractors/xaml-hybrid-extractor.js +444 -0
  550. package/dist/wpf/extractors/xaml-hybrid-extractor.js.map +1 -0
  551. package/dist/wpf/index.d.ts +25 -0
  552. package/dist/wpf/index.d.ts.map +1 -0
  553. package/dist/wpf/index.js +31 -0
  554. package/dist/wpf/index.js.map +1 -0
  555. package/dist/wpf/integration/wpf-callgraph-adapter.d.ts +82 -0
  556. package/dist/wpf/integration/wpf-callgraph-adapter.d.ts.map +1 -0
  557. package/dist/wpf/integration/wpf-callgraph-adapter.js +311 -0
  558. package/dist/wpf/integration/wpf-callgraph-adapter.js.map +1 -0
  559. package/dist/wpf/integration/wpf-data-flow-tracer.d.ts +129 -0
  560. package/dist/wpf/integration/wpf-data-flow-tracer.d.ts.map +1 -0
  561. package/dist/wpf/integration/wpf-data-flow-tracer.js +367 -0
  562. package/dist/wpf/integration/wpf-data-flow-tracer.js.map +1 -0
  563. package/dist/wpf/linkers/datacontext-resolver.d.ts +66 -0
  564. package/dist/wpf/linkers/datacontext-resolver.d.ts.map +1 -0
  565. package/dist/wpf/linkers/datacontext-resolver.js +240 -0
  566. package/dist/wpf/linkers/datacontext-resolver.js.map +1 -0
  567. package/dist/wpf/linkers/viewmodel-linker.d.ts +71 -0
  568. package/dist/wpf/linkers/viewmodel-linker.d.ts.map +1 -0
  569. package/dist/wpf/linkers/viewmodel-linker.js +268 -0
  570. package/dist/wpf/linkers/viewmodel-linker.js.map +1 -0
  571. package/dist/wpf/types.d.ts +451 -0
  572. package/dist/wpf/types.d.ts.map +1 -0
  573. package/dist/wpf/types.js +8 -0
  574. package/dist/wpf/types.js.map +1 -0
  575. package/dist/wpf/wpf-analyzer.d.ts +114 -0
  576. package/dist/wpf/wpf-analyzer.d.ts.map +1 -0
  577. package/dist/wpf/wpf-analyzer.js +332 -0
  578. package/dist/wpf/wpf-analyzer.js.map +1 -0
  579. package/dist/wrappers/clustering/clusterer.d.ts +43 -0
  580. package/dist/wrappers/clustering/clusterer.d.ts.map +1 -0
  581. package/dist/wrappers/clustering/clusterer.js +374 -0
  582. package/dist/wrappers/clustering/clusterer.js.map +1 -0
  583. package/dist/wrappers/clustering/exclusions.d.ts +47 -0
  584. package/dist/wrappers/clustering/exclusions.d.ts.map +1 -0
  585. package/dist/wrappers/clustering/exclusions.js +318 -0
  586. package/dist/wrappers/clustering/exclusions.js.map +1 -0
  587. package/dist/wrappers/clustering/index.d.ts +6 -0
  588. package/dist/wrappers/clustering/index.d.ts.map +1 -0
  589. package/dist/wrappers/clustering/index.js +6 -0
  590. package/dist/wrappers/clustering/index.js.map +1 -0
  591. package/dist/wrappers/detection/detector.d.ts +69 -0
  592. package/dist/wrappers/detection/detector.d.ts.map +1 -0
  593. package/dist/wrappers/detection/detector.js +279 -0
  594. package/dist/wrappers/detection/detector.js.map +1 -0
  595. package/dist/wrappers/detection/index.d.ts +5 -0
  596. package/dist/wrappers/detection/index.d.ts.map +1 -0
  597. package/dist/wrappers/detection/index.js +5 -0
  598. package/dist/wrappers/detection/index.js.map +1 -0
  599. package/dist/wrappers/export/index.d.ts +5 -0
  600. package/dist/wrappers/export/index.d.ts.map +1 -0
  601. package/dist/wrappers/export/index.js +5 -0
  602. package/dist/wrappers/export/index.js.map +1 -0
  603. package/dist/wrappers/export/json.d.ts +127 -0
  604. package/dist/wrappers/export/json.d.ts.map +1 -0
  605. package/dist/wrappers/export/json.js +160 -0
  606. package/dist/wrappers/export/json.js.map +1 -0
  607. package/dist/wrappers/index.d.ts +56 -0
  608. package/dist/wrappers/index.d.ts.map +1 -0
  609. package/dist/wrappers/index.js +159 -0
  610. package/dist/wrappers/index.js.map +1 -0
  611. package/dist/wrappers/integration/adapter.d.ts +52 -0
  612. package/dist/wrappers/integration/adapter.d.ts.map +1 -0
  613. package/dist/wrappers/integration/adapter.js +210 -0
  614. package/dist/wrappers/integration/adapter.js.map +1 -0
  615. package/dist/wrappers/integration/index.d.ts +9 -0
  616. package/dist/wrappers/integration/index.d.ts.map +1 -0
  617. package/dist/wrappers/integration/index.js +12 -0
  618. package/dist/wrappers/integration/index.js.map +1 -0
  619. package/dist/wrappers/integration/pattern-adapter.d.ts +52 -0
  620. package/dist/wrappers/integration/pattern-adapter.d.ts.map +1 -0
  621. package/dist/wrappers/integration/pattern-adapter.js +192 -0
  622. package/dist/wrappers/integration/pattern-adapter.js.map +1 -0
  623. package/dist/wrappers/integration/scanner.d.ts +85 -0
  624. package/dist/wrappers/integration/scanner.d.ts.map +1 -0
  625. package/dist/wrappers/integration/scanner.js +367 -0
  626. package/dist/wrappers/integration/scanner.js.map +1 -0
  627. package/dist/wrappers/primitives/discovery.d.ts +57 -0
  628. package/dist/wrappers/primitives/discovery.d.ts.map +1 -0
  629. package/dist/wrappers/primitives/discovery.js +389 -0
  630. package/dist/wrappers/primitives/discovery.js.map +1 -0
  631. package/dist/wrappers/primitives/index.d.ts +6 -0
  632. package/dist/wrappers/primitives/index.d.ts.map +1 -0
  633. package/dist/wrappers/primitives/index.js +6 -0
  634. package/dist/wrappers/primitives/index.js.map +1 -0
  635. package/dist/wrappers/primitives/registry.d.ts +63 -0
  636. package/dist/wrappers/primitives/registry.d.ts.map +1 -0
  637. package/dist/wrappers/primitives/registry.js +447 -0
  638. package/dist/wrappers/primitives/registry.js.map +1 -0
  639. package/dist/wrappers/types.d.ts +137 -0
  640. package/dist/wrappers/types.d.ts.map +1 -0
  641. package/dist/wrappers/types.js +7 -0
  642. package/dist/wrappers/types.js.map +1 -0
  643. package/package.json +33 -18
  644. package/LICENSE +0 -21
@@ -0,0 +1,523 @@
1
+ /**
2
+ * Speculative Execution Engine Types
3
+ *
4
+ * Complete type definitions for the pre-flight simulation system.
5
+ * Supports all 6 languages: TypeScript, JavaScript, Python, Java, C#, PHP
6
+ *
7
+ * @module speculative/types
8
+ */
9
+ /**
10
+ * Supported programming languages
11
+ */
12
+ export type SupportedLanguage = 'typescript' | 'javascript' | 'python' | 'java' | 'csharp' | 'php';
13
+ /**
14
+ * Supported frameworks by language
15
+ */
16
+ export type TypeScriptFramework = 'express' | 'nestjs' | 'nextjs' | 'fastify' | 'koa' | 'hono';
17
+ export type PythonFramework = 'django' | 'fastapi' | 'flask' | 'starlette';
18
+ export type JavaFramework = 'spring-boot' | 'spring-webflux' | 'jakarta-ee' | 'quarkus';
19
+ export type CSharpFramework = 'aspnet-core' | 'minimal-api' | 'blazor';
20
+ export type PHPFramework = 'laravel' | 'symfony' | 'slim';
21
+ export type SupportedFramework = TypeScriptFramework | PythonFramework | JavaFramework | CSharpFramework | PHPFramework;
22
+ /**
23
+ * File extensions by language
24
+ */
25
+ export declare const LANGUAGE_EXTENSIONS: Record<SupportedLanguage, string[]>;
26
+ /**
27
+ * High-level task categories
28
+ */
29
+ export type TaskType = 'add_api_endpoint' | 'add_feature' | 'add_auth' | 'add_validation' | 'add_caching' | 'add_logging' | 'add_error_handling' | 'add_test' | 'add_database' | 'add_integration' | 'fix_bug' | 'refactor' | 'security_fix' | 'performance_opt' | 'unknown';
30
+ /**
31
+ * Keywords that map to task types
32
+ */
33
+ export declare const TASK_TYPE_KEYWORDS: Record<TaskType, string[]>;
34
+ /**
35
+ * Parsed task from natural language
36
+ */
37
+ export interface ParsedTask {
38
+ /** Original task description */
39
+ original: string;
40
+ /** Detected task type */
41
+ type: TaskType;
42
+ /** Focus area (file, directory, or feature name) */
43
+ focus: string;
44
+ /** Detected language */
45
+ language: SupportedLanguage | null;
46
+ /** Detected framework */
47
+ framework: SupportedFramework | null;
48
+ /** Extracted keywords */
49
+ keywords: string[];
50
+ /** Detected constraints */
51
+ constraints: string[];
52
+ /** Confidence in parsing (0-1) */
53
+ confidence: number;
54
+ }
55
+ /**
56
+ * Implementation strategy categories
57
+ */
58
+ export type ApproachStrategy = 'middleware' | 'decorator' | 'interceptor' | 'filter' | 'aspect' | 'controller' | 'service' | 'repository' | 'handler' | 'factory' | 'inline' | 'wrapper' | 'guard' | 'annotation' | 'attribute' | 'configuration' | 'patch' | 'refactor' | 'defensive';
59
+ /**
60
+ * A candidate implementation approach
61
+ */
62
+ export interface Approach {
63
+ /** Unique identifier (e.g., 'express-middleware') */
64
+ id: string;
65
+ /** Human-readable name */
66
+ name: string;
67
+ /** Description of the approach */
68
+ description: string;
69
+ /** The strategy this approach uses */
70
+ strategy: ApproachStrategy;
71
+ /** Language this approach applies to */
72
+ language: SupportedLanguage;
73
+ /** Frameworks this approach works with (empty = all) */
74
+ frameworks: SupportedFramework[];
75
+ /** Task types this approach is applicable to */
76
+ applicableTo: TaskType[];
77
+ /** Prerequisites for this approach */
78
+ prerequisites: string[];
79
+ /** Example implementation hint */
80
+ implementationHint: string;
81
+ /** Typical file patterns created/modified */
82
+ filePatterns: string[];
83
+ /** Estimated lines of code */
84
+ estimatedLoc: {
85
+ min: number;
86
+ max: number;
87
+ };
88
+ }
89
+ /**
90
+ * A file or function that would be affected
91
+ */
92
+ export interface TouchPoint {
93
+ /** File path (relative to project root) */
94
+ file: string;
95
+ /** Action required */
96
+ action: 'create' | 'modify' | 'delete';
97
+ /** Estimated lines changed (for modify) */
98
+ linesChanged?: number;
99
+ /** Specific functions affected */
100
+ functions?: string[];
101
+ /** Reason for the change */
102
+ reason: string;
103
+ /** Confidence in this touch point (0-1) */
104
+ confidence: number;
105
+ }
106
+ /**
107
+ * Impact on the call graph
108
+ */
109
+ export interface CallGraphImpact {
110
+ /** Functions directly affected */
111
+ directlyAffected: number;
112
+ /** Functions transitively affected */
113
+ transitivelyAffected: number;
114
+ /** Entry points affected */
115
+ entryPointsAffected: number;
116
+ /** Maximum depth of impact */
117
+ maxDepth: number;
118
+ /** Affected entry point names (limited) */
119
+ affectedEntryPoints: string[];
120
+ }
121
+ /**
122
+ * Alignment with existing patterns
123
+ */
124
+ export interface PatternAlignment {
125
+ /** Patterns this approach aligns with */
126
+ alignedPatterns: Array<{
127
+ id: string;
128
+ name: string;
129
+ category: string;
130
+ confidence: number;
131
+ locationCount: number;
132
+ }>;
133
+ /** Overall alignment score (0-1) */
134
+ score: number;
135
+ /** Would this create outliers? */
136
+ createsOutliers: boolean;
137
+ /** Note about alignment */
138
+ note?: string;
139
+ }
140
+ /**
141
+ * Change in module coupling
142
+ */
143
+ export interface CouplingDelta {
144
+ /** New dependencies added */
145
+ newDependencies: string[];
146
+ /** Dependencies removed */
147
+ removedDependencies: string[];
148
+ /** Would this create a cycle? */
149
+ createsCycle: boolean;
150
+ /** Cycle details if applicable */
151
+ cycleDetails?: string;
152
+ /** Change in instability metric (-1 to 1) */
153
+ instabilityDelta: number;
154
+ /** Affected modules */
155
+ affectedModules: string[];
156
+ }
157
+ /**
158
+ * Security implications
159
+ */
160
+ export interface SecurityPath {
161
+ /** Type of security concern */
162
+ type: 'sensitive_data' | 'auth_bypass' | 'injection_risk' | 'exposure' | 'privilege_escalation';
163
+ /** Description */
164
+ description: string;
165
+ /** Severity */
166
+ severity: 'low' | 'medium' | 'high' | 'critical';
167
+ /** Affected data/paths */
168
+ affected: string[];
169
+ /** Mitigation suggestion */
170
+ mitigation?: string;
171
+ }
172
+ /**
173
+ * Test coverage for affected code
174
+ */
175
+ export interface TestCoverage {
176
+ /** Average coverage of affected files (0-1) */
177
+ averageCoverage: number;
178
+ /** Files with no test coverage */
179
+ uncoveredFiles: string[];
180
+ /** Existing tests that might need updates */
181
+ affectedTests: string[];
182
+ /** Suggested test types */
183
+ suggestedTestTypes: ('unit' | 'integration' | 'e2e')[];
184
+ /** Test files that cover affected code */
185
+ coveringTests: string[];
186
+ }
187
+ /**
188
+ * Complete simulation result for an approach
189
+ */
190
+ export interface SimulationResult {
191
+ /** Touch points */
192
+ touchPoints: TouchPoint[];
193
+ /** Call graph impact */
194
+ callGraphImpact: CallGraphImpact;
195
+ /** Pattern alignment */
196
+ patternAlignment: PatternAlignment;
197
+ /** Coupling changes */
198
+ couplingDelta: CouplingDelta;
199
+ /** Security paths */
200
+ securityPaths: SecurityPath[];
201
+ /** Test coverage */
202
+ testCoverage: TestCoverage;
203
+ }
204
+ /**
205
+ * Friction breakdown by dimension
206
+ */
207
+ export interface FrictionBreakdown {
208
+ /** Structural friction (0-100) */
209
+ structural: number;
210
+ /** Pattern alignment friction (0-100) */
211
+ pattern: number;
212
+ /** Coupling friction (0-100) */
213
+ coupling: number;
214
+ /** Security friction (0-100) */
215
+ security: number;
216
+ /** Test coverage friction (0-100) */
217
+ test: number;
218
+ }
219
+ /**
220
+ * Friction weights (must sum to 1.0)
221
+ */
222
+ export interface FrictionWeights {
223
+ structural: number;
224
+ pattern: number;
225
+ coupling: number;
226
+ security: number;
227
+ test: number;
228
+ }
229
+ /**
230
+ * Default friction weights
231
+ */
232
+ export declare const DEFAULT_FRICTION_WEIGHTS: FrictionWeights;
233
+ /**
234
+ * Effort estimation levels
235
+ */
236
+ export type EffortLevel = 'trivial' | 'small' | 'medium' | 'large';
237
+ /**
238
+ * Effort thresholds (in estimated minutes)
239
+ */
240
+ export declare const EFFORT_THRESHOLDS: Record<EffortLevel, {
241
+ min: number;
242
+ max: number;
243
+ }>;
244
+ /**
245
+ * Complete evaluation of an approach
246
+ */
247
+ export interface ApproachEvaluation {
248
+ /** The approach being evaluated */
249
+ approach: Approach;
250
+ /** Simulation results */
251
+ simulation: SimulationResult;
252
+ /** Overall friction score (0-100, lower is better) */
253
+ frictionScore: number;
254
+ /** Friction breakdown by dimension */
255
+ frictionBreakdown: FrictionBreakdown;
256
+ /** Pros of this approach */
257
+ pros: string[];
258
+ /** Cons of this approach */
259
+ cons: string[];
260
+ /** Estimated effort */
261
+ effort: EffortLevel;
262
+ /** Confidence in this evaluation (0-1) */
263
+ confidence: number;
264
+ /** Rank among evaluated approaches (1 = best) */
265
+ rank: number;
266
+ }
267
+ /**
268
+ * A trade-off to consider
269
+ */
270
+ export interface Tradeoff {
271
+ /** Condition when this trade-off applies */
272
+ if: string;
273
+ /** What to do instead */
274
+ then: string;
275
+ /** Reasoning */
276
+ because: string;
277
+ /** Which approach this favors */
278
+ favorsApproach?: string;
279
+ }
280
+ /**
281
+ * Warning about simulation
282
+ */
283
+ export interface SimulationWarning {
284
+ /** Warning type */
285
+ type: 'security' | 'breaking_change' | 'complexity' | 'missing_data' | 'low_confidence' | 'deprecated';
286
+ /** Warning message */
287
+ message: string;
288
+ /** Severity */
289
+ severity: 'info' | 'warning' | 'critical';
290
+ /** Related approach ID (if specific to one) */
291
+ approachId?: string;
292
+ }
293
+ /**
294
+ * Recommendation from the engine
295
+ */
296
+ export interface Recommendation {
297
+ /** Recommended approach ID */
298
+ approachId: string;
299
+ /** Approach name */
300
+ approachName: string;
301
+ /** Reasoning for the recommendation */
302
+ reasoning: string;
303
+ /** Confidence in recommendation (0-1) */
304
+ confidence: number;
305
+ /** How much better than alternatives (percentage) */
306
+ advantagePercent: number;
307
+ }
308
+ /**
309
+ * Input to the speculative execution engine
310
+ */
311
+ export interface SimulateInput {
312
+ /** Natural language task description */
313
+ task: string;
314
+ /** Optional: specific area to focus on (file or directory) */
315
+ focus?: string;
316
+ /** Optional: specific approach IDs to evaluate */
317
+ approaches?: string[];
318
+ /** Optional: constraints to consider */
319
+ constraints?: string[];
320
+ /** Maximum approaches to evaluate (default: 4) */
321
+ maxApproaches?: number;
322
+ /** Custom friction weights */
323
+ weights?: Partial<FrictionWeights>;
324
+ /** Target project name (for multi-project support) */
325
+ project?: string;
326
+ }
327
+ /**
328
+ * Output from the speculative execution engine
329
+ */
330
+ export interface SimulateOutput {
331
+ /** Summary of the simulation */
332
+ summary: string;
333
+ /** Parsed task */
334
+ task: ParsedTask;
335
+ /** Evaluated approaches (sorted by friction, best first) */
336
+ approaches: ApproachEvaluation[];
337
+ /** Recommendation */
338
+ recommendation: Recommendation;
339
+ /** Trade-offs to consider */
340
+ tradeoffs: Tradeoff[];
341
+ /** Warnings */
342
+ warnings: SimulationWarning[];
343
+ /** Metadata */
344
+ metadata: SimulationMetadata;
345
+ }
346
+ /**
347
+ * Simulation metadata
348
+ */
349
+ export interface SimulationMetadata {
350
+ /** Time taken in ms */
351
+ durationMs: number;
352
+ /** Data sources used */
353
+ dataSources: ('patterns' | 'callgraph' | 'coupling' | 'boundaries' | 'tests')[];
354
+ /** Engine version */
355
+ version: string;
356
+ /** Project root */
357
+ projectRoot: string;
358
+ /** Whether data was from cache */
359
+ fromCache: boolean;
360
+ }
361
+ /**
362
+ * Engine configuration
363
+ */
364
+ export interface SpeculativeEngineConfig {
365
+ /** Project root directory */
366
+ rootDir: string;
367
+ /** Maximum approaches to generate */
368
+ maxApproaches: number;
369
+ /** Maximum depth for call graph traversal */
370
+ maxCallGraphDepth: number;
371
+ /** Friction weights */
372
+ weights: FrictionWeights;
373
+ /** Enable caching */
374
+ enableCache: boolean;
375
+ /** Cache TTL in ms */
376
+ cacheTtlMs: number;
377
+ /** Minimum confidence to include an approach */
378
+ minApproachConfidence: number;
379
+ }
380
+ /**
381
+ * Default configuration
382
+ */
383
+ export declare const DEFAULT_CONFIG: SpeculativeEngineConfig;
384
+ /**
385
+ * Approach template definition
386
+ */
387
+ export interface ApproachTemplate {
388
+ /** Unique identifier */
389
+ id: string;
390
+ /** Human-readable name */
391
+ name: string;
392
+ /** Description */
393
+ description: string;
394
+ /** Strategy type */
395
+ strategy: ApproachStrategy;
396
+ /** Language */
397
+ language: SupportedLanguage;
398
+ /** Compatible frameworks (empty = all) */
399
+ frameworks: SupportedFramework[];
400
+ /** Applicable task types */
401
+ taskTypes: TaskType[];
402
+ /** Prerequisites (patterns, dependencies, etc.) */
403
+ prerequisites: string[];
404
+ /** Implementation hint */
405
+ hint: string;
406
+ /** File patterns typically created/modified */
407
+ filePatterns: string[];
408
+ /** Estimated LOC range */
409
+ locRange: [number, number];
410
+ /** Keywords that suggest this approach */
411
+ keywords: string[];
412
+ /** Priority when multiple approaches match (higher = preferred) */
413
+ priority: number;
414
+ }
415
+ /**
416
+ * Template registry interface
417
+ */
418
+ export interface TemplateRegistry {
419
+ /** Get all templates */
420
+ getAll(): ApproachTemplate[];
421
+ /** Get templates for a language */
422
+ getByLanguage(language: SupportedLanguage): ApproachTemplate[];
423
+ /** Get templates for a task type */
424
+ getByTaskType(taskType: TaskType): ApproachTemplate[];
425
+ /** Get templates matching criteria */
426
+ query(criteria: TemplateQueryCriteria): ApproachTemplate[];
427
+ /** Get a specific template by ID */
428
+ get(id: string): ApproachTemplate | undefined;
429
+ }
430
+ /**
431
+ * Criteria for querying templates
432
+ */
433
+ export interface TemplateQueryCriteria {
434
+ language?: SupportedLanguage;
435
+ framework?: SupportedFramework;
436
+ taskType?: TaskType;
437
+ strategy?: ApproachStrategy;
438
+ keywords?: string[];
439
+ maxResults?: number;
440
+ }
441
+ /**
442
+ * Dependencies required by the speculative engine
443
+ */
444
+ export interface SpeculativeEngineDependencies {
445
+ /** Pattern store for pattern alignment */
446
+ patternStore: {
447
+ initialize(): Promise<void>;
448
+ getAll(): Array<{
449
+ id: string;
450
+ name: string;
451
+ category: string;
452
+ confidence: {
453
+ score: number;
454
+ };
455
+ locations: Array<{
456
+ file: string;
457
+ line: number;
458
+ }>;
459
+ outliers: Array<{
460
+ file: string;
461
+ line: number;
462
+ }>;
463
+ }>;
464
+ };
465
+ /** Call graph store for impact analysis */
466
+ callGraphStore: {
467
+ initialize(): Promise<void>;
468
+ getGraph(): {
469
+ functions: Map<string, {
470
+ file: string;
471
+ name: string;
472
+ calls: unknown[];
473
+ calledBy: unknown[];
474
+ }>;
475
+ entryPoints: string[];
476
+ } | null;
477
+ };
478
+ /** Coupling analyzer for coupling delta */
479
+ couplingAnalyzer: {
480
+ getGraph(): {
481
+ modules: Map<string, {
482
+ imports: string[];
483
+ importedBy: string[];
484
+ }>;
485
+ cycles: Array<{
486
+ path: string[];
487
+ }>;
488
+ } | null;
489
+ };
490
+ /** Boundary store for security analysis */
491
+ boundaryStore: {
492
+ initialize(): Promise<void>;
493
+ getAccessMap(): {
494
+ sensitiveFields: Array<{
495
+ table: string;
496
+ field: string;
497
+ file: string;
498
+ }>;
499
+ } | null;
500
+ };
501
+ /** Test topology analyzer for test coverage */
502
+ testTopologyAnalyzer: {
503
+ getCoverage(file: string): {
504
+ coverage: number;
505
+ tests: string[];
506
+ } | null;
507
+ };
508
+ }
509
+ /**
510
+ * Result type for operations that can fail
511
+ */
512
+ export type Result<T, E = Error> = {
513
+ success: true;
514
+ data: T;
515
+ } | {
516
+ success: false;
517
+ error: E;
518
+ };
519
+ /**
520
+ * Async result type
521
+ */
522
+ export type AsyncResult<T, E = Error> = Promise<Result<T, E>>;
523
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/speculative/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC;AAC/F,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;AAC3E,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,gBAAgB,GAAG,YAAY,GAAG,SAAS,CAAC;AACxF,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,CAAC;AACvE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAC1B,mBAAmB,GACnB,eAAe,GACf,aAAa,GACb,eAAe,GACf,YAAY,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,EAAE,CAOnE,CAAC;AAMF;;GAEG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M,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Speculative Execution Engine Types
3
+ *
4
+ * Complete type definitions for the pre-flight simulation system.
5
+ * Supports all 6 languages: TypeScript, JavaScript, Python, Java, C#, PHP
6
+ *
7
+ * @module speculative/types
8
+ */
9
+ /**
10
+ * File extensions by language
11
+ */
12
+ export const LANGUAGE_EXTENSIONS = {
13
+ typescript: ['.ts', '.tsx', '.mts', '.cts'],
14
+ javascript: ['.js', '.jsx', '.mjs', '.cjs'],
15
+ python: ['.py', '.pyw'],
16
+ java: ['.java'],
17
+ csharp: ['.cs'],
18
+ php: ['.php'],
19
+ };
20
+ /**
21
+ * Keywords that map to task types
22
+ */
23
+ export const TASK_TYPE_KEYWORDS = {
24
+ add_api_endpoint: ['endpoint', 'route', 'api', 'rest', 'graphql', 'controller', 'handler'],
25
+ add_feature: ['feature', 'add', 'implement', 'create', 'build', 'new'],
26
+ add_auth: ['auth', 'authentication', 'authorization', 'login', 'jwt', 'oauth', 'permission', 'guard'],
27
+ add_validation: ['validation', 'validate', 'schema', 'input', 'sanitize', 'check'],
28
+ add_caching: ['cache', 'caching', 'redis', 'memcache', 'memoize', 'remember'],
29
+ add_logging: ['log', 'logging', 'logger', 'trace', 'debug', 'monitor', 'observability'],
30
+ add_error_handling: ['error', 'exception', 'catch', 'handle', 'fallback', 'retry'],
31
+ add_test: ['test', 'testing', 'spec', 'unit', 'integration', 'e2e', 'coverage'],
32
+ add_database: ['database', 'db', 'query', 'migration', 'model', 'entity', 'repository'],
33
+ add_integration: ['integration', 'webhook', 'api', 'external', 'third-party', 'service'],
34
+ fix_bug: ['fix', 'bug', 'issue', 'problem', 'broken', 'error', 'crash'],
35
+ refactor: ['refactor', 'clean', 'improve', 'restructure', 'reorganize', 'simplify'],
36
+ security_fix: ['security', 'vulnerability', 'xss', 'csrf', 'injection', 'sanitize'],
37
+ performance_opt: ['performance', 'optimize', 'speed', 'slow', 'fast', 'efficient'],
38
+ unknown: [],
39
+ };
40
+ /**
41
+ * Default friction weights
42
+ */
43
+ export const DEFAULT_FRICTION_WEIGHTS = {
44
+ structural: 0.25,
45
+ pattern: 0.30,
46
+ coupling: 0.15,
47
+ security: 0.15,
48
+ test: 0.15,
49
+ };
50
+ /**
51
+ * Effort thresholds (in estimated minutes)
52
+ */
53
+ export const EFFORT_THRESHOLDS = {
54
+ trivial: { min: 0, max: 15 },
55
+ small: { min: 15, max: 60 },
56
+ medium: { min: 60, max: 240 },
57
+ large: { min: 240, max: Infinity },
58
+ };
59
+ /**
60
+ * Default configuration
61
+ */
62
+ export const DEFAULT_CONFIG = {
63
+ rootDir: '.',
64
+ maxApproaches: 4,
65
+ maxCallGraphDepth: 10,
66
+ weights: DEFAULT_FRICTION_WEIGHTS,
67
+ enableCache: true,
68
+ cacheTtlMs: 5 * 60 * 1000, // 5 minutes
69
+ minApproachConfidence: 0.3,
70
+ };
71
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/speculative/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiCH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwC;IACtE,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IAC3C,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,MAAM,EAAE,CAAC,KAAK,CAAC;IACf,GAAG,EAAE,CAAC,MAAM,CAAC;CACd,CAAC;AA0BF;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,gBAAgB,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,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E,WAAW,EAAE,UAAU,CAAC;IACnF,eAAe,EAAE,CAAC,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC;IAClF,OAAO,EAAE,EAAE;CACZ,CAAC;AAkPF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAoB;IACvD,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI;CACX,CAAC;AAOF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAsD;IAClF,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;IAC5B,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IAC3B,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;IAC7B,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE;CACnC,CAAC;AA8JF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAA4B;IACrD,OAAO,EAAE,GAAG;IACZ,aAAa,EAAE,CAAC;IAChB,iBAAiB,EAAE,EAAE;IACrB,OAAO,EAAE,wBAAwB;IACjC,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,YAAY;IACvC,qBAAqB,EAAE,GAAG;CAC3B,CAAC"}
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * Pattern Store - Pattern persistence and querying
3
3
  *
4
+ * @deprecated This class uses the legacy status-based storage format.
5
+ * Use `UnifiedFilePatternRepository` from `@drift/core/patterns` instead,
6
+ * which provides a unified category-based storage format with better performance.
7
+ *
8
+ * Migration: Run `drift migrate-storage` to convert to the new format.
9
+ *
4
10
  * Loads and saves patterns to .drift/patterns/ directory.
5
11
  * Supports querying by category, confidence, and status.
6
12
  * Handles pattern state transitions (discovered → approved/ignored).
@@ -1 +1 @@
1
- {"version":3,"file":"pattern-store.d.ts","sourceRoot":"","sources":["../../src/store/pattern-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EACV,OAAO,EAGP,eAAe,EACf,aAAa,EAEb,mBAAmB,EACnB,kBAAkB,EAElB,kBAAkB,EAGlB,iBAAiB,EACjB,eAAe,EAEhB,MAAM,YAAY,CAAC;AA0CpB;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;aAE3B,SAAS,EAAE,MAAM;aACjB,QAAQ,CAAC,EAAE,eAAe;gBAD1B,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,eAAe,YAAA;CAK7C;AAED;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,KAAK;aAElC,SAAS,EAAE,MAAM;aACjB,UAAU,EAAE,aAAa;aACzB,QAAQ,EAAE,aAAa;gBAFvB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,aAAa,EACzB,QAAQ,EAAE,aAAa;CAK1C;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,SAAgB,UAAU,EAAE,KAAK,GAAG,SAAS,CAAC;gBAG5C,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,KAAK;CAMrB;AA4DD;;;;;;;;;;;;;GAaG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAC5C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAmC;IACnD,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,WAAW,CAA+B;gBAEtC,MAAM,GAAE,OAAO,CAAC,kBAAkB,CA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,EAAE;IAIvD;;;;OAIG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,EAAE;IAI/C;;OAEG;IACH,WAAW,IAAI,OAAO,EAAE;IAIxB;;OAEG;IACH,aAAa,IAAI,OAAO,EAAE;IAI1B;;OAEG;IACH,UAAU,IAAI,OAAO,EAAE;IAIvB;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE;IAIlC;;OAEG;IACH,eAAe,IAAI,OAAO,EAAE;IAI5B;;OAEG;IACH,iBAAiB,IAAI,OAAO,EAAE;IAQ9B;;OAEG;IACH,QAAQ,IAAI,iBAAiB;IAgD7B;;OAEG;IACH,OAAO,CAAC,SAAS;IA6BjB;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb;;OAEG;IACH,OAAO,IAAI,IAAI;CAOhB"}
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * Pattern Store - Pattern persistence and querying
3
3
  *
4
+ * @deprecated This class uses the legacy status-based storage format.
5
+ * Use `UnifiedFilePatternRepository` from `@drift/core/patterns` instead,
6
+ * which provides a unified category-based storage format with better performance.
7
+ *
8
+ * Migration: Run `drift migrate-storage` to convert to the new format.
9
+ *
4
10
  * Loads and saves patterns to .drift/patterns/ directory.
5
11
  * Supports querying by category, confidence, and status.
6
12
  * Handles pattern state transitions (discovered → approved/ignored).