driftdetect-core 0.5.0 → 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 (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,200 @@
1
+ /**
2
+ * Speculative Execution Engine - Type Definitions
3
+ *
4
+ * Simulates multiple implementation approaches BEFORE code generation,
5
+ * scoring them by friction, impact, and pattern alignment.
6
+ *
7
+ * @module simulation/types
8
+ */
9
+ import type { CallGraphLanguage } from '../call-graph/types.js';
10
+ /** Task categories (auto-detected from description) */
11
+ export type TaskCategory = 'rate-limiting' | 'authentication' | 'authorization' | 'api-endpoint' | 'data-access' | 'error-handling' | 'caching' | 'logging' | 'testing' | 'validation' | 'middleware' | 'refactoring' | 'generic';
12
+ /** Constraint types */
13
+ export type ConstraintType = 'must-work-with' | 'avoid-changing' | 'max-files' | 'pattern-required' | 'framework-required' | 'custom';
14
+ /** A constraint that must be satisfied */
15
+ export interface SimulationConstraint {
16
+ type: ConstraintType;
17
+ value: string;
18
+ description?: string;
19
+ required?: boolean;
20
+ }
21
+ /** Task description for simulation */
22
+ export interface SimulationTask {
23
+ description: string;
24
+ category?: TaskCategory | undefined;
25
+ target?: string | undefined;
26
+ constraints?: SimulationConstraint[] | undefined;
27
+ scope?: 'function' | 'file' | 'module' | 'codebase' | undefined;
28
+ }
29
+ /** Implementation strategy (language-agnostic) */
30
+ export type ApproachStrategy = 'middleware' | 'decorator' | 'wrapper' | 'per-route' | 'per-function' | 'centralized' | 'distributed' | 'aspect' | 'filter' | 'interceptor' | 'guard' | 'policy' | 'dependency' | 'mixin' | 'custom';
31
+ /** A single implementation approach to simulate */
32
+ export interface SimulationApproach {
33
+ id: string;
34
+ name: string;
35
+ description: string;
36
+ strategy: ApproachStrategy;
37
+ language: CallGraphLanguage;
38
+ framework?: string;
39
+ targetFiles: string[];
40
+ targetFunctions?: string[];
41
+ newFiles?: string[];
42
+ followsPatterns?: string[];
43
+ estimatedLinesAdded?: number;
44
+ estimatedLinesModified?: number;
45
+ template?: string;
46
+ frameworkNotes?: string;
47
+ }
48
+ export type RiskLevel = 'critical' | 'high' | 'medium' | 'low';
49
+ export type Severity = 'error' | 'warning' | 'info';
50
+ /** Friction metrics breakdown */
51
+ export interface FrictionBreakdown {
52
+ metric: string;
53
+ value: number;
54
+ weight: number;
55
+ contribution: number;
56
+ reason?: string;
57
+ }
58
+ /** Friction metrics for an approach */
59
+ export interface FrictionMetrics {
60
+ codeChurn: number;
61
+ patternDeviation: number;
62
+ testingEffort: number;
63
+ refactoringRequired: number;
64
+ learningCurve: number;
65
+ overall: number;
66
+ breakdown: FrictionBreakdown[];
67
+ }
68
+ /** Impact metrics for an approach */
69
+ export interface ImpactMetrics {
70
+ filesAffected: number;
71
+ functionsAffected: number;
72
+ entryPointsAffected: number;
73
+ sensitiveDataPaths: number;
74
+ riskScore: number;
75
+ riskLevel: RiskLevel;
76
+ breakingChanges: boolean;
77
+ breakingChangeRisks: string[];
78
+ maxDepthAffected: number;
79
+ }
80
+ /** Aligned pattern info */
81
+ export interface AlignedPattern {
82
+ id: string;
83
+ name: string;
84
+ category: string;
85
+ alignmentScore: number;
86
+ reason: string;
87
+ exampleFile?: string | undefined;
88
+ }
89
+ /** Conflicting pattern info */
90
+ export interface ConflictingPattern {
91
+ id: string;
92
+ name: string;
93
+ category: string;
94
+ conflictReason: string;
95
+ severity: Severity;
96
+ }
97
+ /** Pattern alignment metrics */
98
+ export interface PatternAlignmentMetrics {
99
+ alignmentScore: number;
100
+ alignedPatterns: AlignedPattern[];
101
+ conflictingPatterns: ConflictingPattern[];
102
+ createsNewPattern: boolean;
103
+ wouldBeOutlier: boolean;
104
+ suggestedPatterns: string[];
105
+ }
106
+ /** Data access implication */
107
+ export interface DataAccessImplication {
108
+ table: string;
109
+ fields: string[];
110
+ operation: 'read' | 'write' | 'delete' | 'unknown';
111
+ sensitivity: 'credentials' | 'financial' | 'health' | 'pii' | 'unknown';
112
+ throughFunction?: string | undefined;
113
+ }
114
+ /** Security warning */
115
+ export interface SecurityWarning {
116
+ type: string;
117
+ message: string;
118
+ severity: RiskLevel;
119
+ recommendation?: string;
120
+ }
121
+ /** Security metrics */
122
+ export interface SecurityMetrics {
123
+ securityRisk: number;
124
+ dataAccessImplications: DataAccessImplication[];
125
+ authImplications: string[];
126
+ warnings: SecurityWarning[];
127
+ }
128
+ /** Complete simulation result for a single approach */
129
+ export interface SimulatedApproach {
130
+ approach: SimulationApproach;
131
+ friction: FrictionMetrics;
132
+ impact: ImpactMetrics;
133
+ patternAlignment: PatternAlignmentMetrics;
134
+ security: SecurityMetrics;
135
+ score: number;
136
+ rank: number;
137
+ reasoning: string;
138
+ pros: string[];
139
+ cons: string[];
140
+ warnings: string[];
141
+ nextSteps: string[];
142
+ satisfiedConstraints: string[];
143
+ unsatisfiedConstraints: string[];
144
+ }
145
+ /** Trade-off comparison between approaches */
146
+ export interface ApproachTradeoff {
147
+ approach1: string;
148
+ approach2: string;
149
+ comparison: string;
150
+ winner?: string;
151
+ dimensions: {
152
+ dimension: string;
153
+ approach1Value: number;
154
+ approach2Value: number;
155
+ better: string;
156
+ }[];
157
+ }
158
+ /** Confidence assessment */
159
+ export interface SimulationConfidence {
160
+ score: number;
161
+ limitations: string[];
162
+ dataSources: string[];
163
+ }
164
+ /** Execution metadata */
165
+ export interface SimulationMetadata {
166
+ executionTimeMs: number;
167
+ approachesSimulated: number;
168
+ approachesGenerated: number;
169
+ dataSourcesUsed: string[];
170
+ cacheHits?: number;
171
+ }
172
+ /** Complete simulation result */
173
+ export interface SimulationResult {
174
+ task: SimulationTask;
175
+ approaches: SimulatedApproach[];
176
+ recommended: SimulatedApproach;
177
+ summary: string;
178
+ tradeoffs: ApproachTradeoff[];
179
+ confidence: SimulationConfidence;
180
+ metadata: SimulationMetadata;
181
+ }
182
+ /** Options for simulation */
183
+ export interface SimulationOptions {
184
+ maxApproaches?: number;
185
+ maxDepth?: number;
186
+ includeSecurityAnalysis?: boolean;
187
+ minPatternConfidence?: number;
188
+ timeout?: number;
189
+ enableCache?: boolean;
190
+ }
191
+ /** Scoring weights */
192
+ export interface ScoringWeights {
193
+ friction: number;
194
+ impact: number;
195
+ patternAlignment: number;
196
+ security: number;
197
+ }
198
+ export declare const DEFAULT_SCORING_WEIGHTS: ScoringWeights;
199
+ export declare const DEFAULT_SIMULATION_OPTIONS: Required<SimulationOptions>;
200
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/simulation/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,iBAAiB,E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EAAE,CAAC;CACvB;AAED,yBAAyB;AACzB,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iCAAiC;AACjC,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,UAAU,EAAE,oBAAoB,CAAC;IACjC,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAMD,6BAA6B;AAC7B,MAAM,WAAW,iBAAiB;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,sBAAsB;AACtB,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,EAAE,cAKrC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,iBAAiB,CAOlE,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Speculative Execution Engine - Type Definitions
3
+ *
4
+ * Simulates multiple implementation approaches BEFORE code generation,
5
+ * scoring them by friction, impact, and pattern alignment.
6
+ *
7
+ * @module simulation/types
8
+ */
9
+ export const DEFAULT_SCORING_WEIGHTS = {
10
+ friction: 0.30,
11
+ impact: 0.25,
12
+ patternAlignment: 0.30,
13
+ security: 0.15,
14
+ };
15
+ export const DEFAULT_SIMULATION_OPTIONS = {
16
+ maxApproaches: 5,
17
+ maxDepth: 10,
18
+ includeSecurityAnalysis: true,
19
+ minPatternConfidence: 0.5,
20
+ timeout: 30000,
21
+ enableCache: true,
22
+ };
23
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/simulation/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA+QH,MAAM,CAAC,MAAM,uBAAuB,GAAmB;IACrD,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;IACZ,gBAAgB,EAAE,IAAI;IACtB,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAgC;IACrE,aAAa,EAAE,CAAC;IAChB,QAAQ,EAAE,EAAE;IACZ,uBAAuB,EAAE,IAAI;IAC7B,oBAAoB,EAAE,GAAG;IACzB,OAAO,EAAE,KAAK;IACd,WAAW,EAAE,IAAI;CAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=approach-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approach-generator.d.ts","sourceRoot":"","sources":["../../src/speculative/approach-generator.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=approach-generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approach-generator.js","sourceRoot":"","sources":["../../src/speculative/approach-generator.ts"],"names":[],"mappings":""}
@@ -0,0 +1,133 @@
1
+ /**
2
+ * Template System Types
3
+ *
4
+ * Types for the approach template system that provides
5
+ * language-specific implementation strategies.
6
+ *
7
+ * @module speculative/templates/types
8
+ */
9
+ import type { SupportedLanguage, SupportedFramework, TaskType, ApproachStrategy, ApproachTemplate } from '../types.js';
10
+ /**
11
+ * Builder for creating approach templates
12
+ */
13
+ export interface TemplateBuilder {
14
+ /** Set the template ID */
15
+ id(id: string): TemplateBuilder;
16
+ /** Set the template name */
17
+ name(name: string): TemplateBuilder;
18
+ /** Set the description */
19
+ description(desc: string): TemplateBuilder;
20
+ /** Set the strategy */
21
+ strategy(strategy: ApproachStrategy): TemplateBuilder;
22
+ /** Set the language */
23
+ language(lang: SupportedLanguage): TemplateBuilder;
24
+ /** Add compatible frameworks */
25
+ frameworks(...frameworks: SupportedFramework[]): TemplateBuilder;
26
+ /** Add applicable task types */
27
+ taskTypes(...types: TaskType[]): TemplateBuilder;
28
+ /** Add prerequisites */
29
+ prerequisites(...prereqs: string[]): TemplateBuilder;
30
+ /** Set implementation hint */
31
+ hint(hint: string): TemplateBuilder;
32
+ /** Add file patterns */
33
+ filePatterns(...patterns: string[]): TemplateBuilder;
34
+ /** Set LOC range */
35
+ locRange(min: number, max: number): TemplateBuilder;
36
+ /** Add keywords */
37
+ keywords(...keywords: string[]): TemplateBuilder;
38
+ /** Set priority */
39
+ priority(priority: number): TemplateBuilder;
40
+ /** Build the template */
41
+ build(): ApproachTemplate;
42
+ }
43
+ /**
44
+ * Create a new template builder
45
+ */
46
+ export declare function createTemplateBuilder(): TemplateBuilder;
47
+ /**
48
+ * A collection of templates for a specific language
49
+ */
50
+ export interface LanguageTemplateCollection {
51
+ /** Language this collection is for */
52
+ language: SupportedLanguage;
53
+ /** All templates in this collection */
54
+ templates: ApproachTemplate[];
55
+ /** Get templates by task type */
56
+ getByTaskType(taskType: TaskType): ApproachTemplate[];
57
+ /** Get templates by framework */
58
+ getByFramework(framework: SupportedFramework): ApproachTemplate[];
59
+ /** Get templates by strategy */
60
+ getByStrategy(strategy: ApproachStrategy): ApproachTemplate[];
61
+ }
62
+ /**
63
+ * Create a language template collection
64
+ */
65
+ export declare function createLanguageCollection(language: SupportedLanguage, templates: ApproachTemplate[]): LanguageTemplateCollection;
66
+ /**
67
+ * Score for how well a template matches a task
68
+ */
69
+ export interface TemplateMatchScore {
70
+ /** The template */
71
+ template: ApproachTemplate;
72
+ /** Overall match score (0-1) */
73
+ score: number;
74
+ /** Breakdown of score components */
75
+ breakdown: {
76
+ /** Task type match (0-1) */
77
+ taskType: number;
78
+ /** Framework match (0-1) */
79
+ framework: number;
80
+ /** Keyword match (0-1) */
81
+ keywords: number;
82
+ /** Priority bonus (0-1) */
83
+ priority: number;
84
+ };
85
+ /** Reasons for the score */
86
+ reasons: string[];
87
+ }
88
+ /**
89
+ * Options for template matching
90
+ */
91
+ export interface TemplateMatchOptions {
92
+ /** Minimum score to include (0-1) */
93
+ minScore?: number;
94
+ /** Maximum results */
95
+ maxResults?: number;
96
+ /** Boost templates matching these keywords */
97
+ boostKeywords?: string[];
98
+ /** Prefer templates with these strategies */
99
+ preferStrategies?: ApproachStrategy[];
100
+ }
101
+ /**
102
+ * Framework detection result
103
+ */
104
+ export interface FrameworkDetection {
105
+ /** Detected framework */
106
+ framework: SupportedFramework;
107
+ /** Confidence (0-1) */
108
+ confidence: number;
109
+ /** Evidence for detection */
110
+ evidence: string[];
111
+ }
112
+ /**
113
+ * Framework detection patterns
114
+ */
115
+ export interface FrameworkPattern {
116
+ /** Framework this pattern detects */
117
+ framework: SupportedFramework;
118
+ /** Language this framework belongs to */
119
+ language: SupportedLanguage;
120
+ /** File patterns that indicate this framework */
121
+ filePatterns: string[];
122
+ /** Import patterns that indicate this framework */
123
+ importPatterns: string[];
124
+ /** Config file patterns */
125
+ configPatterns: string[];
126
+ /** Package/dependency names */
127
+ dependencies: string[];
128
+ }
129
+ /**
130
+ * Framework detection patterns for all supported frameworks
131
+ */
132
+ export declare const FRAMEWORK_PATTERNS: FrameworkPattern[];
133
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/speculative/templates/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OA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M,WAAW,kBAAkB;IACjC,yBAAyB;IACzB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qCAAqC;IACrC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,yCAAyC;IACzC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,iDAAiD;IACjD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,mDAAmD;IACnD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,2BAA2B;IAC3B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,+BAA+B;IAC/B,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAsGhD,CAAC"}
@@ -0,0 +1,208 @@
1
+ /**
2
+ * Template System Types
3
+ *
4
+ * Types for the approach template system that provides
5
+ * language-specific implementation strategies.
6
+ *
7
+ * @module speculative/templates/types
8
+ */
9
+ /**
10
+ * Create a new template builder
11
+ */
12
+ export function createTemplateBuilder() {
13
+ const template = {
14
+ frameworks: [],
15
+ taskTypes: [],
16
+ prerequisites: [],
17
+ filePatterns: [],
18
+ keywords: [],
19
+ locRange: [10, 50],
20
+ priority: 50,
21
+ };
22
+ const builder = {
23
+ id(id) {
24
+ template.id = id;
25
+ return builder;
26
+ },
27
+ name(name) {
28
+ template.name = name;
29
+ return builder;
30
+ },
31
+ description(desc) {
32
+ template.description = desc;
33
+ return builder;
34
+ },
35
+ strategy(strategy) {
36
+ template.strategy = strategy;
37
+ return builder;
38
+ },
39
+ language(lang) {
40
+ template.language = lang;
41
+ return builder;
42
+ },
43
+ frameworks(...frameworks) {
44
+ template.frameworks = frameworks;
45
+ return builder;
46
+ },
47
+ taskTypes(...types) {
48
+ template.taskTypes = types;
49
+ return builder;
50
+ },
51
+ prerequisites(...prereqs) {
52
+ template.prerequisites = prereqs;
53
+ return builder;
54
+ },
55
+ hint(hint) {
56
+ template.hint = hint;
57
+ return builder;
58
+ },
59
+ filePatterns(...patterns) {
60
+ template.filePatterns = patterns;
61
+ return builder;
62
+ },
63
+ locRange(min, max) {
64
+ template.locRange = [min, max];
65
+ return builder;
66
+ },
67
+ keywords(...keywords) {
68
+ template.keywords = keywords;
69
+ return builder;
70
+ },
71
+ priority(priority) {
72
+ template.priority = priority;
73
+ return builder;
74
+ },
75
+ build() {
76
+ if (!template.id || !template.name || !template.language || !template.strategy) {
77
+ throw new Error('Template missing required fields: id, name, language, strategy');
78
+ }
79
+ return template;
80
+ },
81
+ };
82
+ return builder;
83
+ }
84
+ /**
85
+ * Create a language template collection
86
+ */
87
+ export function createLanguageCollection(language, templates) {
88
+ return {
89
+ language,
90
+ templates,
91
+ getByTaskType(taskType) {
92
+ return templates.filter(t => t.taskTypes.includes(taskType));
93
+ },
94
+ getByFramework(framework) {
95
+ return templates.filter(t => t.frameworks.length === 0 || t.frameworks.includes(framework));
96
+ },
97
+ getByStrategy(strategy) {
98
+ return templates.filter(t => t.strategy === strategy);
99
+ },
100
+ };
101
+ }
102
+ /**
103
+ * Framework detection patterns for all supported frameworks
104
+ */
105
+ export const FRAMEWORK_PATTERNS = [
106
+ // TypeScript/JavaScript
107
+ {
108
+ framework: 'express',
109
+ language: 'typescript',
110
+ filePatterns: ['**/routes/**', '**/middleware/**'],
111
+ importPatterns: ['express', '@types/express'],
112
+ configPatterns: [],
113
+ dependencies: ['express'],
114
+ },
115
+ {
116
+ framework: 'nestjs',
117
+ language: 'typescript',
118
+ filePatterns: ['**/*.controller.ts', '**/*.module.ts', '**/*.service.ts'],
119
+ importPatterns: ['@nestjs/common', '@nestjs/core'],
120
+ configPatterns: ['nest-cli.json'],
121
+ dependencies: ['@nestjs/core'],
122
+ },
123
+ {
124
+ framework: 'nextjs',
125
+ language: 'typescript',
126
+ filePatterns: ['**/pages/**', '**/app/**', '**/api/**'],
127
+ importPatterns: ['next', 'next/server'],
128
+ configPatterns: ['next.config.js', 'next.config.mjs', 'next.config.ts'],
129
+ dependencies: ['next'],
130
+ },
131
+ {
132
+ framework: 'fastify',
133
+ language: 'typescript',
134
+ filePatterns: ['**/routes/**', '**/plugins/**'],
135
+ importPatterns: ['fastify', '@fastify/*'],
136
+ configPatterns: [],
137
+ dependencies: ['fastify'],
138
+ },
139
+ // Python
140
+ {
141
+ framework: 'django',
142
+ language: 'python',
143
+ filePatterns: ['**/views.py', '**/models.py', '**/urls.py', '**/admin.py'],
144
+ importPatterns: ['django', 'rest_framework'],
145
+ configPatterns: ['manage.py', 'settings.py'],
146
+ dependencies: ['django', 'djangorestframework'],
147
+ },
148
+ {
149
+ framework: 'fastapi',
150
+ language: 'python',
151
+ filePatterns: ['**/routers/**', '**/routes/**'],
152
+ importPatterns: ['fastapi', 'pydantic'],
153
+ configPatterns: [],
154
+ dependencies: ['fastapi', 'uvicorn'],
155
+ },
156
+ {
157
+ framework: 'flask',
158
+ language: 'python',
159
+ filePatterns: ['**/routes/**', '**/blueprints/**'],
160
+ importPatterns: ['flask', 'flask_*'],
161
+ configPatterns: [],
162
+ dependencies: ['flask'],
163
+ },
164
+ // Java
165
+ {
166
+ framework: 'spring-boot',
167
+ language: 'java',
168
+ filePatterns: ['**/*Controller.java', '**/*Service.java', '**/*Repository.java'],
169
+ importPatterns: ['org.springframework', 'spring-boot'],
170
+ configPatterns: ['application.properties', 'application.yml', 'pom.xml', 'build.gradle'],
171
+ dependencies: ['spring-boot-starter'],
172
+ },
173
+ // C#
174
+ {
175
+ framework: 'aspnet-core',
176
+ language: 'csharp',
177
+ filePatterns: ['**/*Controller.cs', '**/Program.cs', '**/Startup.cs'],
178
+ importPatterns: ['Microsoft.AspNetCore', 'Microsoft.Extensions'],
179
+ configPatterns: ['appsettings.json', '*.csproj'],
180
+ dependencies: ['Microsoft.AspNetCore'],
181
+ },
182
+ {
183
+ framework: 'minimal-api',
184
+ language: 'csharp',
185
+ filePatterns: ['**/Program.cs', '**/Endpoints/**'],
186
+ importPatterns: ['Microsoft.AspNetCore.Builder'],
187
+ configPatterns: [],
188
+ dependencies: ['Microsoft.AspNetCore'],
189
+ },
190
+ // PHP
191
+ {
192
+ framework: 'laravel',
193
+ language: 'php',
194
+ filePatterns: ['**/Controllers/**', '**/Models/**', '**/routes/**'],
195
+ importPatterns: ['Illuminate\\', 'App\\'],
196
+ configPatterns: ['artisan', 'composer.json'],
197
+ dependencies: ['laravel/framework'],
198
+ },
199
+ {
200
+ framework: 'symfony',
201
+ language: 'php',
202
+ filePatterns: ['**/Controller/**', '**/Entity/**'],
203
+ importPatterns: ['Symfony\\', 'Doctrine\\'],
204
+ configPatterns: ['symfony.lock', 'config/bundles.php'],
205
+ dependencies: ['symfony/framework-bundle'],
206
+ },
207
+ ];
208
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/speculative/templates/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgDH;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,MAAM,QAAQ,GAA8B;QAC1C,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,EAAE;QACjB,YAAY,EAAE,EAAE;QAChB,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;QAClB,QAAQ,EAAE,EAAE;KACb,CAAC;IAEF,MAAM,OAAO,GAAoB;QAC/B,EAAE,CAAC,EAAE;YACH,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;YACjB,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,IAAI,CAAC,IAAI;YACP,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;YACrB,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,WAAW,CAAC,IAAI;YACd,QAAQ,CAAC,WAAW,GAAG,IAAI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