driftdetect-core 0.4.5 → 0.5.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 (578) hide show
  1. package/LICENSE +21 -0
  2. package/dist/boundaries/boundary-scanner.d.ts.map +1 -1
  3. package/dist/boundaries/boundary-scanner.js +184 -18
  4. package/dist/boundaries/boundary-scanner.js.map +1 -1
  5. package/dist/boundaries/types.d.ts +34 -2
  6. package/dist/boundaries/types.d.ts.map +1 -1
  7. package/dist/call-graph/analysis/graph-builder.d.ts +3 -0
  8. package/dist/call-graph/analysis/graph-builder.d.ts.map +1 -1
  9. package/dist/call-graph/analysis/graph-builder.js +81 -18
  10. package/dist/call-graph/analysis/graph-builder.js.map +1 -1
  11. package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts +8 -0
  12. package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts.map +1 -1
  13. package/dist/call-graph/extractors/csharp-data-access-extractor.js +18 -5
  14. package/dist/call-graph/extractors/csharp-data-access-extractor.js.map +1 -1
  15. package/dist/call-graph/extractors/csharp-extractor.d.ts +35 -0
  16. package/dist/call-graph/extractors/csharp-extractor.d.ts.map +1 -1
  17. package/dist/call-graph/extractors/csharp-extractor.js +362 -4
  18. package/dist/call-graph/extractors/csharp-extractor.js.map +1 -1
  19. package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts +37 -0
  20. package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts.map +1 -0
  21. package/dist/call-graph/extractors/csharp-hybrid-extractor.js +408 -0
  22. package/dist/call-graph/extractors/csharp-hybrid-extractor.js.map +1 -0
  23. package/dist/call-graph/extractors/data-access-extractor.d.ts +16 -2
  24. package/dist/call-graph/extractors/data-access-extractor.d.ts.map +1 -1
  25. package/dist/call-graph/extractors/data-access-extractor.js +114 -5
  26. package/dist/call-graph/extractors/data-access-extractor.js.map +1 -1
  27. package/dist/call-graph/extractors/hybrid-extractor-base.d.ts +102 -0
  28. package/dist/call-graph/extractors/hybrid-extractor-base.d.ts.map +1 -0
  29. package/dist/call-graph/extractors/hybrid-extractor-base.js +289 -0
  30. package/dist/call-graph/extractors/hybrid-extractor-base.js.map +1 -0
  31. package/dist/call-graph/extractors/index.d.ts +17 -13
  32. package/dist/call-graph/extractors/index.d.ts.map +1 -1
  33. package/dist/call-graph/extractors/index.js +24 -23
  34. package/dist/call-graph/extractors/index.js.map +1 -1
  35. package/dist/call-graph/extractors/java-data-access-extractor.d.ts +8 -0
  36. package/dist/call-graph/extractors/java-data-access-extractor.d.ts.map +1 -1
  37. package/dist/call-graph/extractors/java-data-access-extractor.js +20 -6
  38. package/dist/call-graph/extractors/java-data-access-extractor.js.map +1 -1
  39. package/dist/call-graph/extractors/java-extractor.d.ts +15 -0
  40. package/dist/call-graph/extractors/java-extractor.d.ts.map +1 -1
  41. package/dist/call-graph/extractors/java-extractor.js +120 -4
  42. package/dist/call-graph/extractors/java-extractor.js.map +1 -1
  43. package/dist/call-graph/extractors/java-hybrid-extractor.d.ts +36 -0
  44. package/dist/call-graph/extractors/java-hybrid-extractor.d.ts.map +1 -0
  45. package/dist/call-graph/extractors/java-hybrid-extractor.js +426 -0
  46. package/dist/call-graph/extractors/java-hybrid-extractor.js.map +1 -0
  47. package/dist/call-graph/extractors/php-data-access-extractor.d.ts +8 -0
  48. package/dist/call-graph/extractors/php-data-access-extractor.d.ts.map +1 -1
  49. package/dist/call-graph/extractors/php-data-access-extractor.js +20 -6
  50. package/dist/call-graph/extractors/php-data-access-extractor.js.map +1 -1
  51. package/dist/call-graph/extractors/php-extractor.d.ts +48 -1
  52. package/dist/call-graph/extractors/php-extractor.d.ts.map +1 -1
  53. package/dist/call-graph/extractors/php-extractor.js +460 -6
  54. package/dist/call-graph/extractors/php-extractor.js.map +1 -1
  55. package/dist/call-graph/extractors/php-hybrid-extractor.d.ts +35 -0
  56. package/dist/call-graph/extractors/php-hybrid-extractor.d.ts.map +1 -0
  57. package/dist/call-graph/extractors/php-hybrid-extractor.js +393 -0
  58. package/dist/call-graph/extractors/php-hybrid-extractor.js.map +1 -0
  59. package/dist/call-graph/extractors/python-data-access-extractor.d.ts +8 -0
  60. package/dist/call-graph/extractors/python-data-access-extractor.d.ts.map +1 -1
  61. package/dist/call-graph/extractors/python-data-access-extractor.js +20 -6
  62. package/dist/call-graph/extractors/python-data-access-extractor.js.map +1 -1
  63. package/dist/call-graph/extractors/python-hybrid-extractor.d.ts +85 -0
  64. package/dist/call-graph/extractors/python-hybrid-extractor.d.ts.map +1 -0
  65. package/dist/call-graph/extractors/python-hybrid-extractor.js +462 -0
  66. package/dist/call-graph/extractors/python-hybrid-extractor.js.map +1 -0
  67. package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts +154 -0
  68. package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts.map +1 -0
  69. package/dist/call-graph/extractors/regex/base-regex-extractor.js +346 -0
  70. package/dist/call-graph/extractors/regex/base-regex-extractor.js.map +1 -0
  71. package/dist/call-graph/extractors/regex/csharp-regex.d.ts +34 -0
  72. package/dist/call-graph/extractors/regex/csharp-regex.d.ts.map +1 -0
  73. package/dist/call-graph/extractors/regex/csharp-regex.js +393 -0
  74. package/dist/call-graph/extractors/regex/csharp-regex.js.map +1 -0
  75. package/dist/call-graph/extractors/regex/index.d.ts +25 -0
  76. package/dist/call-graph/extractors/regex/index.d.ts.map +1 -0
  77. package/dist/call-graph/extractors/regex/index.js +66 -0
  78. package/dist/call-graph/extractors/regex/index.js.map +1 -0
  79. package/dist/call-graph/extractors/regex/java-regex.d.ts +34 -0
  80. package/dist/call-graph/extractors/regex/java-regex.d.ts.map +1 -0
  81. package/dist/call-graph/extractors/regex/java-regex.js +327 -0
  82. package/dist/call-graph/extractors/regex/java-regex.js.map +1 -0
  83. package/dist/call-graph/extractors/regex/php-regex.d.ts +30 -0
  84. package/dist/call-graph/extractors/regex/php-regex.d.ts.map +1 -0
  85. package/dist/call-graph/extractors/regex/php-regex.js +333 -0
  86. package/dist/call-graph/extractors/regex/php-regex.js.map +1 -0
  87. package/dist/call-graph/extractors/regex/python-regex.d.ts +46 -0
  88. package/dist/call-graph/extractors/regex/python-regex.d.ts.map +1 -0
  89. package/dist/call-graph/extractors/regex/python-regex.js +380 -0
  90. package/dist/call-graph/extractors/regex/python-regex.js.map +1 -0
  91. package/dist/call-graph/extractors/regex/typescript-regex.d.ts +27 -0
  92. package/dist/call-graph/extractors/regex/typescript-regex.d.ts.map +1 -0
  93. package/dist/call-graph/extractors/regex/typescript-regex.js +349 -0
  94. package/dist/call-graph/extractors/regex/typescript-regex.js.map +1 -0
  95. package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts +11 -0
  96. package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts.map +1 -1
  97. package/dist/call-graph/extractors/semantic-data-access-scanner.js +53 -2
  98. package/dist/call-graph/extractors/semantic-data-access-scanner.js.map +1 -1
  99. package/dist/call-graph/extractors/types.d.ts +111 -0
  100. package/dist/call-graph/extractors/types.d.ts.map +1 -0
  101. package/dist/call-graph/extractors/types.js +68 -0
  102. package/dist/call-graph/extractors/types.js.map +1 -0
  103. package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts +8 -0
  104. package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts.map +1 -1
  105. package/dist/call-graph/extractors/typescript-data-access-extractor.js +31 -10
  106. package/dist/call-graph/extractors/typescript-data-access-extractor.js.map +1 -1
  107. package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts +116 -0
  108. package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts.map +1 -0
  109. package/dist/call-graph/extractors/typescript-hybrid-extractor.js +635 -0
  110. package/dist/call-graph/extractors/typescript-hybrid-extractor.js.map +1 -0
  111. package/dist/call-graph/index.d.ts +2 -4
  112. package/dist/call-graph/index.d.ts.map +1 -1
  113. package/dist/call-graph/index.js +5 -6
  114. package/dist/call-graph/index.js.map +1 -1
  115. package/dist/error-handling/error-handling-analyzer.d.ts +73 -0
  116. package/dist/error-handling/error-handling-analyzer.d.ts.map +1 -0
  117. package/dist/error-handling/error-handling-analyzer.js +706 -0
  118. package/dist/error-handling/error-handling-analyzer.js.map +1 -0
  119. package/dist/error-handling/index.d.ts +8 -0
  120. package/dist/error-handling/index.d.ts.map +1 -0
  121. package/dist/error-handling/index.js +8 -0
  122. package/dist/error-handling/index.js.map +1 -0
  123. package/dist/error-handling/types.d.ts +307 -0
  124. package/dist/error-handling/types.d.ts.map +1 -0
  125. package/dist/error-handling/types.js +7 -0
  126. package/dist/error-handling/types.js.map +1 -0
  127. package/dist/index.d.ts +18 -2
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +44 -5
  130. package/dist/index.js.map +1 -1
  131. package/dist/lake/pattern-shard-store.d.ts +6 -0
  132. package/dist/lake/pattern-shard-store.d.ts.map +1 -1
  133. package/dist/lake/pattern-shard-store.js +6 -0
  134. package/dist/lake/pattern-shard-store.js.map +1 -1
  135. package/dist/language-intelligence/base-normalizer.d.ts +68 -0
  136. package/dist/language-intelligence/base-normalizer.d.ts.map +1 -0
  137. package/dist/language-intelligence/base-normalizer.js +210 -0
  138. package/dist/language-intelligence/base-normalizer.js.map +1 -0
  139. package/dist/language-intelligence/framework-registry.d.ts +89 -0
  140. package/dist/language-intelligence/framework-registry.d.ts.map +1 -0
  141. package/dist/language-intelligence/framework-registry.js +165 -0
  142. package/dist/language-intelligence/framework-registry.js.map +1 -0
  143. package/dist/language-intelligence/frameworks/aspnet.d.ts +11 -0
  144. package/dist/language-intelligence/frameworks/aspnet.d.ts.map +1 -0
  145. package/dist/language-intelligence/frameworks/aspnet.js +325 -0
  146. package/dist/language-intelligence/frameworks/aspnet.js.map +1 -0
  147. package/dist/language-intelligence/frameworks/fastapi.d.ts +11 -0
  148. package/dist/language-intelligence/frameworks/fastapi.d.ts.map +1 -0
  149. package/dist/language-intelligence/frameworks/fastapi.js +188 -0
  150. package/dist/language-intelligence/frameworks/fastapi.js.map +1 -0
  151. package/dist/language-intelligence/frameworks/index.d.ts +32 -0
  152. package/dist/language-intelligence/frameworks/index.d.ts.map +1 -0
  153. package/dist/language-intelligence/frameworks/index.js +51 -0
  154. package/dist/language-intelligence/frameworks/index.js.map +1 -0
  155. package/dist/language-intelligence/frameworks/laravel.d.ts +12 -0
  156. package/dist/language-intelligence/frameworks/laravel.d.ts.map +1 -0
  157. package/dist/language-intelligence/frameworks/laravel.js +194 -0
  158. package/dist/language-intelligence/frameworks/laravel.js.map +1 -0
  159. package/dist/language-intelligence/frameworks/nestjs.d.ts +11 -0
  160. package/dist/language-intelligence/frameworks/nestjs.d.ts.map +1 -0
  161. package/dist/language-intelligence/frameworks/nestjs.js +307 -0
  162. package/dist/language-intelligence/frameworks/nestjs.js.map +1 -0
  163. package/dist/language-intelligence/frameworks/spring.d.ts +11 -0
  164. package/dist/language-intelligence/frameworks/spring.d.ts.map +1 -0
  165. package/dist/language-intelligence/frameworks/spring.js +369 -0
  166. package/dist/language-intelligence/frameworks/spring.js.map +1 -0
  167. package/dist/language-intelligence/index.d.ts +33 -0
  168. package/dist/language-intelligence/index.d.ts.map +1 -0
  169. package/dist/language-intelligence/index.js +37 -0
  170. package/dist/language-intelligence/index.js.map +1 -0
  171. package/dist/language-intelligence/language-intelligence.d.ts +99 -0
  172. package/dist/language-intelligence/language-intelligence.d.ts.map +1 -0
  173. package/dist/language-intelligence/language-intelligence.js +239 -0
  174. package/dist/language-intelligence/language-intelligence.js.map +1 -0
  175. package/dist/language-intelligence/normalizers/csharp-normalizer.d.ts +39 -0
  176. package/dist/language-intelligence/normalizers/csharp-normalizer.d.ts.map +1 -0
  177. package/dist/language-intelligence/normalizers/csharp-normalizer.js +86 -0
  178. package/dist/language-intelligence/normalizers/csharp-normalizer.js.map +1 -0
  179. package/dist/language-intelligence/normalizers/index.d.ts +25 -0
  180. package/dist/language-intelligence/normalizers/index.d.ts.map +1 -0
  181. package/dist/language-intelligence/normalizers/index.js +60 -0
  182. package/dist/language-intelligence/normalizers/index.js.map +1 -0
  183. package/dist/language-intelligence/normalizers/java-normalizer.d.ts +39 -0
  184. package/dist/language-intelligence/normalizers/java-normalizer.d.ts.map +1 -0
  185. package/dist/language-intelligence/normalizers/java-normalizer.js +96 -0
  186. package/dist/language-intelligence/normalizers/java-normalizer.js.map +1 -0
  187. package/dist/language-intelligence/normalizers/php-normalizer.d.ts +39 -0
  188. package/dist/language-intelligence/normalizers/php-normalizer.d.ts.map +1 -0
  189. package/dist/language-intelligence/normalizers/php-normalizer.js +86 -0
  190. package/dist/language-intelligence/normalizers/php-normalizer.js.map +1 -0
  191. package/dist/language-intelligence/normalizers/python-normalizer.d.ts +39 -0
  192. package/dist/language-intelligence/normalizers/python-normalizer.d.ts.map +1 -0
  193. package/dist/language-intelligence/normalizers/python-normalizer.js +95 -0
  194. package/dist/language-intelligence/normalizers/python-normalizer.js.map +1 -0
  195. package/dist/language-intelligence/normalizers/typescript-normalizer.d.ts +39 -0
  196. package/dist/language-intelligence/normalizers/typescript-normalizer.d.ts.map +1 -0
  197. package/dist/language-intelligence/normalizers/typescript-normalizer.js +84 -0
  198. package/dist/language-intelligence/normalizers/typescript-normalizer.js.map +1 -0
  199. package/dist/language-intelligence/types.d.ts +270 -0
  200. package/dist/language-intelligence/types.d.ts.map +1 -0
  201. package/dist/language-intelligence/types.js +9 -0
  202. package/dist/language-intelligence/types.js.map +1 -0
  203. package/dist/module-coupling/coupling-analyzer.d.ts +73 -0
  204. package/dist/module-coupling/coupling-analyzer.d.ts.map +1 -0
  205. package/dist/module-coupling/coupling-analyzer.js +668 -0
  206. package/dist/module-coupling/coupling-analyzer.js.map +1 -0
  207. package/dist/module-coupling/index.d.ts +9 -0
  208. package/dist/module-coupling/index.d.ts.map +1 -0
  209. package/dist/module-coupling/index.js +9 -0
  210. package/dist/module-coupling/index.js.map +1 -0
  211. package/dist/module-coupling/types.d.ts +273 -0
  212. package/dist/module-coupling/types.d.ts.map +1 -0
  213. package/dist/module-coupling/types.js +8 -0
  214. package/dist/module-coupling/types.js.map +1 -0
  215. package/dist/patterns/adapters/index.d.ts +11 -0
  216. package/dist/patterns/adapters/index.d.ts.map +1 -0
  217. package/dist/patterns/adapters/index.js +11 -0
  218. package/dist/patterns/adapters/index.js.map +1 -0
  219. package/dist/patterns/adapters/pattern-store-adapter.d.ts +59 -0
  220. package/dist/patterns/adapters/pattern-store-adapter.d.ts.map +1 -0
  221. package/dist/patterns/adapters/pattern-store-adapter.js +468 -0
  222. package/dist/patterns/adapters/pattern-store-adapter.js.map +1 -0
  223. package/dist/patterns/adapters/service-factory.d.ts +40 -0
  224. package/dist/patterns/adapters/service-factory.d.ts.map +1 -0
  225. package/dist/patterns/adapters/service-factory.js +144 -0
  226. package/dist/patterns/adapters/service-factory.js.map +1 -0
  227. package/dist/patterns/errors.d.ts +32 -0
  228. package/dist/patterns/errors.d.ts.map +1 -0
  229. package/dist/patterns/errors.js +45 -0
  230. package/dist/patterns/errors.js.map +1 -0
  231. package/dist/patterns/impl/cached-repository.d.ts +79 -0
  232. package/dist/patterns/impl/cached-repository.d.ts.map +1 -0
  233. package/dist/patterns/impl/cached-repository.js +296 -0
  234. package/dist/patterns/impl/cached-repository.js.map +1 -0
  235. package/dist/patterns/impl/file-repository.d.ts +75 -0
  236. package/dist/patterns/impl/file-repository.d.ts.map +1 -0
  237. package/dist/patterns/impl/file-repository.js +507 -0
  238. package/dist/patterns/impl/file-repository.js.map +1 -0
  239. package/dist/patterns/impl/index.d.ts +16 -0
  240. package/dist/patterns/impl/index.d.ts.map +1 -0
  241. package/dist/patterns/impl/index.js +21 -0
  242. package/dist/patterns/impl/index.js.map +1 -0
  243. package/dist/patterns/impl/memory-repository.d.ts +56 -0
  244. package/dist/patterns/impl/memory-repository.d.ts.map +1 -0
  245. package/dist/patterns/impl/memory-repository.js +323 -0
  246. package/dist/patterns/impl/memory-repository.js.map +1 -0
  247. package/dist/patterns/impl/pattern-service.d.ts +52 -0
  248. package/dist/patterns/impl/pattern-service.d.ts.map +1 -0
  249. package/dist/patterns/impl/pattern-service.js +382 -0
  250. package/dist/patterns/impl/pattern-service.js.map +1 -0
  251. package/dist/patterns/impl/repository-factory.d.ts +44 -0
  252. package/dist/patterns/impl/repository-factory.d.ts.map +1 -0
  253. package/dist/patterns/impl/repository-factory.js +140 -0
  254. package/dist/patterns/impl/repository-factory.js.map +1 -0
  255. package/dist/patterns/impl/unified-file-repository.d.ts +111 -0
  256. package/dist/patterns/impl/unified-file-repository.d.ts.map +1 -0
  257. package/dist/patterns/impl/unified-file-repository.js +677 -0
  258. package/dist/patterns/impl/unified-file-repository.js.map +1 -0
  259. package/dist/patterns/index.d.ts +23 -0
  260. package/dist/patterns/index.d.ts.map +1 -0
  261. package/dist/patterns/index.js +41 -0
  262. package/dist/patterns/index.js.map +1 -0
  263. package/dist/patterns/repository.d.ts +241 -0
  264. package/dist/patterns/repository.d.ts.map +1 -0
  265. package/dist/patterns/repository.js +23 -0
  266. package/dist/patterns/repository.js.map +1 -0
  267. package/dist/patterns/service.d.ts +245 -0
  268. package/dist/patterns/service.d.ts.map +1 -0
  269. package/dist/patterns/service.js +25 -0
  270. package/dist/patterns/service.js.map +1 -0
  271. package/dist/patterns/types.d.ts +227 -0
  272. package/dist/patterns/types.d.ts.map +1 -0
  273. package/dist/patterns/types.js +117 -0
  274. package/dist/patterns/types.js.map +1 -0
  275. package/dist/scanner/file-processor-worker.d.ts +66 -0
  276. package/dist/scanner/file-processor-worker.d.ts.map +1 -0
  277. package/dist/scanner/file-processor-worker.js +189 -0
  278. package/dist/scanner/file-processor-worker.js.map +1 -0
  279. package/dist/scanner/index.d.ts +2 -0
  280. package/dist/scanner/index.d.ts.map +1 -1
  281. package/dist/scanner/index.js +2 -0
  282. package/dist/scanner/index.js.map +1 -1
  283. package/dist/scanner/threaded-worker-pool.d.ts +182 -0
  284. package/dist/scanner/threaded-worker-pool.d.ts.map +1 -0
  285. package/dist/scanner/threaded-worker-pool.js +243 -0
  286. package/dist/scanner/threaded-worker-pool.js.map +1 -0
  287. package/dist/store/pattern-store.d.ts +6 -0
  288. package/dist/store/pattern-store.d.ts.map +1 -1
  289. package/dist/store/pattern-store.js +6 -0
  290. package/dist/store/pattern-store.js.map +1 -1
  291. package/dist/store/types.d.ts +6 -3
  292. package/dist/store/types.d.ts.map +1 -1
  293. package/dist/store/types.js.map +1 -1
  294. package/dist/test-topology/extractors/base-test-extractor.d.ts +89 -0
  295. package/dist/test-topology/extractors/base-test-extractor.d.ts.map +1 -0
  296. package/dist/test-topology/extractors/base-test-extractor.js +187 -0
  297. package/dist/test-topology/extractors/base-test-extractor.js.map +1 -0
  298. package/dist/test-topology/extractors/csharp-test-extractor.d.ts +23 -0
  299. package/dist/test-topology/extractors/csharp-test-extractor.d.ts.map +1 -0
  300. package/dist/test-topology/extractors/csharp-test-extractor.js +367 -0
  301. package/dist/test-topology/extractors/csharp-test-extractor.js.map +1 -0
  302. package/dist/test-topology/extractors/index.d.ts +12 -0
  303. package/dist/test-topology/extractors/index.d.ts.map +1 -0
  304. package/dist/test-topology/extractors/index.js +12 -0
  305. package/dist/test-topology/extractors/index.js.map +1 -0
  306. package/dist/test-topology/extractors/java-test-extractor.d.ts +20 -0
  307. package/dist/test-topology/extractors/java-test-extractor.d.ts.map +1 -0
  308. package/dist/test-topology/extractors/java-test-extractor.js +275 -0
  309. package/dist/test-topology/extractors/java-test-extractor.js.map +1 -0
  310. package/dist/test-topology/extractors/php-test-extractor.d.ts +24 -0
  311. package/dist/test-topology/extractors/php-test-extractor.d.ts.map +1 -0
  312. package/dist/test-topology/extractors/php-test-extractor.js +409 -0
  313. package/dist/test-topology/extractors/php-test-extractor.js.map +1 -0
  314. package/dist/test-topology/extractors/python-test-extractor.d.ts +23 -0
  315. package/dist/test-topology/extractors/python-test-extractor.d.ts.map +1 -0
  316. package/dist/test-topology/extractors/python-test-extractor.js +342 -0
  317. package/dist/test-topology/extractors/python-test-extractor.js.map +1 -0
  318. package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts +51 -0
  319. package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts.map +1 -0
  320. package/dist/test-topology/extractors/regex/csharp-test-regex.js +383 -0
  321. package/dist/test-topology/extractors/regex/csharp-test-regex.js.map +1 -0
  322. package/dist/test-topology/extractors/regex/index.d.ts +18 -0
  323. package/dist/test-topology/extractors/regex/index.d.ts.map +1 -0
  324. package/dist/test-topology/extractors/regex/index.js +43 -0
  325. package/dist/test-topology/extractors/regex/index.js.map +1 -0
  326. package/dist/test-topology/extractors/regex/java-test-regex.d.ts +50 -0
  327. package/dist/test-topology/extractors/regex/java-test-regex.d.ts.map +1 -0
  328. package/dist/test-topology/extractors/regex/java-test-regex.js +370 -0
  329. package/dist/test-topology/extractors/regex/java-test-regex.js.map +1 -0
  330. package/dist/test-topology/extractors/regex/php-test-regex.d.ts +56 -0
  331. package/dist/test-topology/extractors/regex/php-test-regex.d.ts.map +1 -0
  332. package/dist/test-topology/extractors/regex/php-test-regex.js +503 -0
  333. package/dist/test-topology/extractors/regex/php-test-regex.js.map +1 -0
  334. package/dist/test-topology/extractors/regex/python-test-regex.d.ts +57 -0
  335. package/dist/test-topology/extractors/regex/python-test-regex.d.ts.map +1 -0
  336. package/dist/test-topology/extractors/regex/python-test-regex.js +381 -0
  337. package/dist/test-topology/extractors/regex/python-test-regex.js.map +1 -0
  338. package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts +60 -0
  339. package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts.map +1 -0
  340. package/dist/test-topology/extractors/regex/typescript-test-regex.js +368 -0
  341. package/dist/test-topology/extractors/regex/typescript-test-regex.js.map +1 -0
  342. package/dist/test-topology/extractors/typescript-test-extractor.d.ts +24 -0
  343. package/dist/test-topology/extractors/typescript-test-extractor.d.ts.map +1 -0
  344. package/dist/test-topology/extractors/typescript-test-extractor.js +266 -0
  345. package/dist/test-topology/extractors/typescript-test-extractor.js.map +1 -0
  346. package/dist/test-topology/hybrid-test-topology-analyzer.d.ts +98 -0
  347. package/dist/test-topology/hybrid-test-topology-analyzer.d.ts.map +1 -0
  348. package/dist/test-topology/hybrid-test-topology-analyzer.js +555 -0
  349. package/dist/test-topology/hybrid-test-topology-analyzer.js.map +1 -0
  350. package/dist/test-topology/index.d.ts +16 -0
  351. package/dist/test-topology/index.d.ts.map +1 -0
  352. package/dist/test-topology/index.js +19 -0
  353. package/dist/test-topology/index.js.map +1 -0
  354. package/dist/test-topology/test-topology-analyzer.d.ts +85 -0
  355. package/dist/test-topology/test-topology-analyzer.d.ts.map +1 -0
  356. package/dist/test-topology/test-topology-analyzer.js +538 -0
  357. package/dist/test-topology/test-topology-analyzer.js.map +1 -0
  358. package/dist/test-topology/types.d.ts +300 -0
  359. package/dist/test-topology/types.d.ts.map +1 -0
  360. package/dist/test-topology/types.js +7 -0
  361. package/dist/test-topology/types.js.map +1 -0
  362. package/dist/unified-provider/compat/index.d.ts +11 -0
  363. package/dist/unified-provider/compat/index.d.ts.map +1 -0
  364. package/dist/unified-provider/compat/index.js +13 -0
  365. package/dist/unified-provider/compat/index.js.map +1 -0
  366. package/dist/unified-provider/compat/legacy-extractors.d.ts +63 -0
  367. package/dist/unified-provider/compat/legacy-extractors.d.ts.map +1 -0
  368. package/dist/unified-provider/compat/legacy-extractors.js +80 -0
  369. package/dist/unified-provider/compat/legacy-extractors.js.map +1 -0
  370. package/dist/unified-provider/compat/legacy-scanner.d.ts +28 -0
  371. package/dist/unified-provider/compat/legacy-scanner.d.ts.map +1 -0
  372. package/dist/unified-provider/compat/legacy-scanner.js +31 -0
  373. package/dist/unified-provider/compat/legacy-scanner.js.map +1 -0
  374. package/dist/unified-provider/index.d.ts +28 -0
  375. package/dist/unified-provider/index.d.ts.map +1 -0
  376. package/dist/unified-provider/index.js +47 -0
  377. package/dist/unified-provider/index.js.map +1 -0
  378. package/dist/unified-provider/integration/index.d.ts +9 -0
  379. package/dist/unified-provider/integration/index.d.ts.map +1 -0
  380. package/dist/unified-provider/integration/index.js +11 -0
  381. package/dist/unified-provider/integration/index.js.map +1 -0
  382. package/dist/unified-provider/integration/unified-data-access-adapter.d.ts +75 -0
  383. package/dist/unified-provider/integration/unified-data-access-adapter.d.ts.map +1 -0
  384. package/dist/unified-provider/integration/unified-data-access-adapter.js +210 -0
  385. package/dist/unified-provider/integration/unified-data-access-adapter.js.map +1 -0
  386. package/dist/unified-provider/integration/unified-scanner.d.ts +90 -0
  387. package/dist/unified-provider/integration/unified-scanner.d.ts.map +1 -0
  388. package/dist/unified-provider/integration/unified-scanner.js +369 -0
  389. package/dist/unified-provider/integration/unified-scanner.js.map +1 -0
  390. package/dist/unified-provider/matching/base-matcher.d.ts +80 -0
  391. package/dist/unified-provider/matching/base-matcher.d.ts.map +1 -0
  392. package/dist/unified-provider/matching/base-matcher.js +196 -0
  393. package/dist/unified-provider/matching/base-matcher.js.map +1 -0
  394. package/dist/unified-provider/matching/django-matcher.d.ts +32 -0
  395. package/dist/unified-provider/matching/django-matcher.d.ts.map +1 -0
  396. package/dist/unified-provider/matching/django-matcher.js +107 -0
  397. package/dist/unified-provider/matching/django-matcher.js.map +1 -0
  398. package/dist/unified-provider/matching/drizzle-matcher.d.ts +25 -0
  399. package/dist/unified-provider/matching/drizzle-matcher.d.ts.map +1 -0
  400. package/dist/unified-provider/matching/drizzle-matcher.js +123 -0
  401. package/dist/unified-provider/matching/drizzle-matcher.js.map +1 -0
  402. package/dist/unified-provider/matching/efcore-matcher.d.ts +27 -0
  403. package/dist/unified-provider/matching/efcore-matcher.d.ts.map +1 -0
  404. package/dist/unified-provider/matching/efcore-matcher.js +88 -0
  405. package/dist/unified-provider/matching/efcore-matcher.js.map +1 -0
  406. package/dist/unified-provider/matching/eloquent-matcher.d.ts +32 -0
  407. package/dist/unified-provider/matching/eloquent-matcher.d.ts.map +1 -0
  408. package/dist/unified-provider/matching/eloquent-matcher.js +162 -0
  409. package/dist/unified-provider/matching/eloquent-matcher.js.map +1 -0
  410. package/dist/unified-provider/matching/index.d.ts +19 -0
  411. package/dist/unified-provider/matching/index.d.ts.map +1 -0
  412. package/dist/unified-provider/matching/index.js +24 -0
  413. package/dist/unified-provider/matching/index.js.map +1 -0
  414. package/dist/unified-provider/matching/knex-matcher.d.ts +26 -0
  415. package/dist/unified-provider/matching/knex-matcher.d.ts.map +1 -0
  416. package/dist/unified-provider/matching/knex-matcher.js +109 -0
  417. package/dist/unified-provider/matching/knex-matcher.js.map +1 -0
  418. package/dist/unified-provider/matching/matcher-registry.d.ts +55 -0
  419. package/dist/unified-provider/matching/matcher-registry.d.ts.map +1 -0
  420. package/dist/unified-provider/matching/matcher-registry.js +130 -0
  421. package/dist/unified-provider/matching/matcher-registry.js.map +1 -0
  422. package/dist/unified-provider/matching/mongoose-matcher.d.ts +30 -0
  423. package/dist/unified-provider/matching/mongoose-matcher.d.ts.map +1 -0
  424. package/dist/unified-provider/matching/mongoose-matcher.js +132 -0
  425. package/dist/unified-provider/matching/mongoose-matcher.js.map +1 -0
  426. package/dist/unified-provider/matching/prisma-matcher.d.ts +31 -0
  427. package/dist/unified-provider/matching/prisma-matcher.d.ts.map +1 -0
  428. package/dist/unified-provider/matching/prisma-matcher.js +123 -0
  429. package/dist/unified-provider/matching/prisma-matcher.js.map +1 -0
  430. package/dist/unified-provider/matching/raw-sql-matcher.d.ts +31 -0
  431. package/dist/unified-provider/matching/raw-sql-matcher.d.ts.map +1 -0
  432. package/dist/unified-provider/matching/raw-sql-matcher.js +173 -0
  433. package/dist/unified-provider/matching/raw-sql-matcher.js.map +1 -0
  434. package/dist/unified-provider/matching/sequelize-matcher.d.ts +28 -0
  435. package/dist/unified-provider/matching/sequelize-matcher.d.ts.map +1 -0
  436. package/dist/unified-provider/matching/sequelize-matcher.js +132 -0
  437. package/dist/unified-provider/matching/sequelize-matcher.js.map +1 -0
  438. package/dist/unified-provider/matching/spring-data-matcher.d.ts +32 -0
  439. package/dist/unified-provider/matching/spring-data-matcher.d.ts.map +1 -0
  440. package/dist/unified-provider/matching/spring-data-matcher.js +112 -0
  441. package/dist/unified-provider/matching/spring-data-matcher.js.map +1 -0
  442. package/dist/unified-provider/matching/sqlalchemy-matcher.d.ts +32 -0
  443. package/dist/unified-provider/matching/sqlalchemy-matcher.d.ts.map +1 -0
  444. package/dist/unified-provider/matching/sqlalchemy-matcher.js +201 -0
  445. package/dist/unified-provider/matching/sqlalchemy-matcher.js.map +1 -0
  446. package/dist/unified-provider/matching/supabase-matcher.d.ts +27 -0
  447. package/dist/unified-provider/matching/supabase-matcher.d.ts.map +1 -0
  448. package/dist/unified-provider/matching/supabase-matcher.js +122 -0
  449. package/dist/unified-provider/matching/supabase-matcher.js.map +1 -0
  450. package/dist/unified-provider/matching/typeorm-matcher.d.ts +32 -0
  451. package/dist/unified-provider/matching/typeorm-matcher.d.ts.map +1 -0
  452. package/dist/unified-provider/matching/typeorm-matcher.js +169 -0
  453. package/dist/unified-provider/matching/typeorm-matcher.js.map +1 -0
  454. package/dist/unified-provider/migration/deprecated-extractors.d.ts +104 -0
  455. package/dist/unified-provider/migration/deprecated-extractors.d.ts.map +1 -0
  456. package/dist/unified-provider/migration/deprecated-extractors.js +129 -0
  457. package/dist/unified-provider/migration/deprecated-extractors.js.map +1 -0
  458. package/dist/unified-provider/migration/deprecated-scanner.d.ts +40 -0
  459. package/dist/unified-provider/migration/deprecated-scanner.d.ts.map +1 -0
  460. package/dist/unified-provider/migration/deprecated-scanner.js +49 -0
  461. package/dist/unified-provider/migration/deprecated-scanner.js.map +1 -0
  462. package/dist/unified-provider/migration/index.d.ts +41 -0
  463. package/dist/unified-provider/migration/index.d.ts.map +1 -0
  464. package/dist/unified-provider/migration/index.js +43 -0
  465. package/dist/unified-provider/migration/index.js.map +1 -0
  466. package/dist/unified-provider/normalization/base-normalizer.d.ts +188 -0
  467. package/dist/unified-provider/normalization/base-normalizer.d.ts.map +1 -0
  468. package/dist/unified-provider/normalization/base-normalizer.js +339 -0
  469. package/dist/unified-provider/normalization/base-normalizer.js.map +1 -0
  470. package/dist/unified-provider/normalization/csharp-normalizer.d.ts +58 -0
  471. package/dist/unified-provider/normalization/csharp-normalizer.d.ts.map +1 -0
  472. package/dist/unified-provider/normalization/csharp-normalizer.js +467 -0
  473. package/dist/unified-provider/normalization/csharp-normalizer.js.map +1 -0
  474. package/dist/unified-provider/normalization/index.d.ts +23 -0
  475. package/dist/unified-provider/normalization/index.d.ts.map +1 -0
  476. package/dist/unified-provider/normalization/index.js +62 -0
  477. package/dist/unified-provider/normalization/index.js.map +1 -0
  478. package/dist/unified-provider/normalization/java-normalizer.d.ts +54 -0
  479. package/dist/unified-provider/normalization/java-normalizer.d.ts.map +1 -0
  480. package/dist/unified-provider/normalization/java-normalizer.js +453 -0
  481. package/dist/unified-provider/normalization/java-normalizer.js.map +1 -0
  482. package/dist/unified-provider/normalization/php-normalizer.d.ts +54 -0
  483. package/dist/unified-provider/normalization/php-normalizer.d.ts.map +1 -0
  484. package/dist/unified-provider/normalization/php-normalizer.js +489 -0
  485. package/dist/unified-provider/normalization/php-normalizer.js.map +1 -0
  486. package/dist/unified-provider/normalization/python-normalizer.d.ts +61 -0
  487. package/dist/unified-provider/normalization/python-normalizer.d.ts.map +1 -0
  488. package/dist/unified-provider/normalization/python-normalizer.js +548 -0
  489. package/dist/unified-provider/normalization/python-normalizer.js.map +1 -0
  490. package/dist/unified-provider/normalization/typescript-normalizer.d.ts +60 -0
  491. package/dist/unified-provider/normalization/typescript-normalizer.d.ts.map +1 -0
  492. package/dist/unified-provider/normalization/typescript-normalizer.js +608 -0
  493. package/dist/unified-provider/normalization/typescript-normalizer.js.map +1 -0
  494. package/dist/unified-provider/parsing/index.d.ts +5 -0
  495. package/dist/unified-provider/parsing/index.d.ts.map +1 -0
  496. package/dist/unified-provider/parsing/index.js +5 -0
  497. package/dist/unified-provider/parsing/index.js.map +1 -0
  498. package/dist/unified-provider/parsing/parser-registry.d.ts +70 -0
  499. package/dist/unified-provider/parsing/parser-registry.d.ts.map +1 -0
  500. package/dist/unified-provider/parsing/parser-registry.js +260 -0
  501. package/dist/unified-provider/parsing/parser-registry.js.map +1 -0
  502. package/dist/unified-provider/provider/index.d.ts +5 -0
  503. package/dist/unified-provider/provider/index.d.ts.map +1 -0
  504. package/dist/unified-provider/provider/index.js +5 -0
  505. package/dist/unified-provider/provider/index.js.map +1 -0
  506. package/dist/unified-provider/provider/unified-language-provider.d.ts +56 -0
  507. package/dist/unified-provider/provider/unified-language-provider.d.ts.map +1 -0
  508. package/dist/unified-provider/provider/unified-language-provider.js +212 -0
  509. package/dist/unified-provider/provider/unified-language-provider.js.map +1 -0
  510. package/dist/unified-provider/types.d.ts +389 -0
  511. package/dist/unified-provider/types.d.ts.map +1 -0
  512. package/dist/unified-provider/types.js +9 -0
  513. package/dist/unified-provider/types.js.map +1 -0
  514. package/dist/wrappers/clustering/clusterer.d.ts +43 -0
  515. package/dist/wrappers/clustering/clusterer.d.ts.map +1 -0
  516. package/dist/wrappers/clustering/clusterer.js +374 -0
  517. package/dist/wrappers/clustering/clusterer.js.map +1 -0
  518. package/dist/wrappers/clustering/exclusions.d.ts +47 -0
  519. package/dist/wrappers/clustering/exclusions.d.ts.map +1 -0
  520. package/dist/wrappers/clustering/exclusions.js +318 -0
  521. package/dist/wrappers/clustering/exclusions.js.map +1 -0
  522. package/dist/wrappers/clustering/index.d.ts +6 -0
  523. package/dist/wrappers/clustering/index.d.ts.map +1 -0
  524. package/dist/wrappers/clustering/index.js +6 -0
  525. package/dist/wrappers/clustering/index.js.map +1 -0
  526. package/dist/wrappers/detection/detector.d.ts +69 -0
  527. package/dist/wrappers/detection/detector.d.ts.map +1 -0
  528. package/dist/wrappers/detection/detector.js +279 -0
  529. package/dist/wrappers/detection/detector.js.map +1 -0
  530. package/dist/wrappers/detection/index.d.ts +5 -0
  531. package/dist/wrappers/detection/index.d.ts.map +1 -0
  532. package/dist/wrappers/detection/index.js +5 -0
  533. package/dist/wrappers/detection/index.js.map +1 -0
  534. package/dist/wrappers/export/index.d.ts +5 -0
  535. package/dist/wrappers/export/index.d.ts.map +1 -0
  536. package/dist/wrappers/export/index.js +5 -0
  537. package/dist/wrappers/export/index.js.map +1 -0
  538. package/dist/wrappers/export/json.d.ts +127 -0
  539. package/dist/wrappers/export/json.d.ts.map +1 -0
  540. package/dist/wrappers/export/json.js +160 -0
  541. package/dist/wrappers/export/json.js.map +1 -0
  542. package/dist/wrappers/index.d.ts +56 -0
  543. package/dist/wrappers/index.d.ts.map +1 -0
  544. package/dist/wrappers/index.js +159 -0
  545. package/dist/wrappers/index.js.map +1 -0
  546. package/dist/wrappers/integration/adapter.d.ts +52 -0
  547. package/dist/wrappers/integration/adapter.d.ts.map +1 -0
  548. package/dist/wrappers/integration/adapter.js +209 -0
  549. package/dist/wrappers/integration/adapter.js.map +1 -0
  550. package/dist/wrappers/integration/index.d.ts +9 -0
  551. package/dist/wrappers/integration/index.d.ts.map +1 -0
  552. package/dist/wrappers/integration/index.js +12 -0
  553. package/dist/wrappers/integration/index.js.map +1 -0
  554. package/dist/wrappers/integration/pattern-adapter.d.ts +52 -0
  555. package/dist/wrappers/integration/pattern-adapter.d.ts.map +1 -0
  556. package/dist/wrappers/integration/pattern-adapter.js +192 -0
  557. package/dist/wrappers/integration/pattern-adapter.js.map +1 -0
  558. package/dist/wrappers/integration/scanner.d.ts +85 -0
  559. package/dist/wrappers/integration/scanner.d.ts.map +1 -0
  560. package/dist/wrappers/integration/scanner.js +367 -0
  561. package/dist/wrappers/integration/scanner.js.map +1 -0
  562. package/dist/wrappers/primitives/discovery.d.ts +57 -0
  563. package/dist/wrappers/primitives/discovery.d.ts.map +1 -0
  564. package/dist/wrappers/primitives/discovery.js +389 -0
  565. package/dist/wrappers/primitives/discovery.js.map +1 -0
  566. package/dist/wrappers/primitives/index.d.ts +6 -0
  567. package/dist/wrappers/primitives/index.d.ts.map +1 -0
  568. package/dist/wrappers/primitives/index.js +6 -0
  569. package/dist/wrappers/primitives/index.js.map +1 -0
  570. package/dist/wrappers/primitives/registry.d.ts +63 -0
  571. package/dist/wrappers/primitives/registry.d.ts.map +1 -0
  572. package/dist/wrappers/primitives/registry.js +447 -0
  573. package/dist/wrappers/primitives/registry.js.map +1 -0
  574. package/dist/wrappers/types.d.ts +137 -0
  575. package/dist/wrappers/types.d.ts.map +1 -0
  576. package/dist/wrappers/types.js +7 -0
  577. package/dist/wrappers/types.js.map +1 -0
  578. package/package.json +23 -18
@@ -0,0 +1,279 @@
1
+ /**
2
+ * Wrapper Detection
3
+ *
4
+ * Detects functions that wrap framework primitives (direct and transitive).
5
+ */
6
+ const DEFAULT_OPTIONS = {
7
+ maxDepth: 10,
8
+ includeTestFiles: true,
9
+ minUsageCount: 0,
10
+ };
11
+ // =============================================================================
12
+ // Main Detection
13
+ // =============================================================================
14
+ /**
15
+ * Detect all wrapper functions in the codebase
16
+ */
17
+ export function detectWrappers(context, options = {}) {
18
+ const maxDepth = options.maxDepth ?? DEFAULT_OPTIONS.maxDepth;
19
+ const includeTestFiles = options.includeTestFiles ?? DEFAULT_OPTIONS.includeTestFiles;
20
+ const minUsageCount = options.minUsageCount ?? DEFAULT_OPTIONS.minUsageCount;
21
+ const primitiveNames = new Set(context.primitives.map((p) => p.name));
22
+ const wrappers = new Map();
23
+ // Pass 1: Find direct wrappers (depth 1)
24
+ for (const func of context.functions) {
25
+ if (!includeTestFiles && isTestFile(func.file))
26
+ continue;
27
+ const calledPrimitives = func.calls
28
+ .filter((c) => primitiveNames.has(c.calleeName))
29
+ .map((c) => c.calleeName);
30
+ if (calledPrimitives.length > 0) {
31
+ const uniquePrimitives = [...new Set(calledPrimitives)];
32
+ wrappers.set(func.qualifiedName, createWrapper(func, {
33
+ directPrimitives: uniquePrimitives,
34
+ transitivePrimitives: [],
35
+ primitiveSignature: uniquePrimitives.sort(),
36
+ depth: 1,
37
+ callsWrappers: [],
38
+ }));
39
+ }
40
+ }
41
+ // Pass 2+: Find transitive wrappers (depth 2+)
42
+ let changed = true;
43
+ let currentDepth = 1;
44
+ while (changed && currentDepth < maxDepth) {
45
+ changed = false;
46
+ currentDepth++;
47
+ // Collect new wrappers for this depth (don't add to map until end of pass)
48
+ const newWrappers = [];
49
+ for (const func of context.functions) {
50
+ if (wrappers.has(func.qualifiedName))
51
+ continue;
52
+ if (!includeTestFiles && isTestFile(func.file))
53
+ continue;
54
+ const calledWrappers = func.calls
55
+ .filter((c) => wrappers.has(c.calleeName) || wrappers.has(c.calleeQualifiedName || ''))
56
+ .map((c) => c.calleeQualifiedName || c.calleeName);
57
+ if (calledWrappers.length > 0) {
58
+ // Collect transitive primitives from all called wrappers
59
+ const transitive = new Set();
60
+ for (const wrapperName of calledWrappers) {
61
+ const wrapper = wrappers.get(wrapperName);
62
+ if (wrapper) {
63
+ wrapper.directPrimitives.forEach((p) => transitive.add(p));
64
+ wrapper.transitivePrimitives.forEach((p) => transitive.add(p));
65
+ }
66
+ }
67
+ // Also check if this function directly calls any primitives
68
+ const directPrimitives = func.calls
69
+ .filter((c) => primitiveNames.has(c.calleeName))
70
+ .map((c) => c.calleeName);
71
+ const allPrimitives = new Set([...transitive, ...directPrimitives]);
72
+ newWrappers.push([func.qualifiedName, createWrapper(func, {
73
+ directPrimitives: [...new Set(directPrimitives)],
74
+ transitivePrimitives: [...transitive],
75
+ primitiveSignature: [...allPrimitives].sort(),
76
+ depth: currentDepth,
77
+ callsWrappers: calledWrappers,
78
+ })]);
79
+ changed = true;
80
+ }
81
+ }
82
+ // Add all new wrappers at once (after processing all functions)
83
+ for (const [key, wrapper] of newWrappers) {
84
+ wrappers.set(key, wrapper);
85
+ }
86
+ }
87
+ // Pass 3: Build reverse edges (calledBy)
88
+ for (const func of context.functions) {
89
+ for (const call of func.calls) {
90
+ const wrapper = wrappers.get(call.calleeName) || wrappers.get(call.calleeQualifiedName || '');
91
+ if (wrapper && !wrapper.calledBy.includes(func.qualifiedName)) {
92
+ wrapper.calledBy.push(func.qualifiedName);
93
+ }
94
+ }
95
+ }
96
+ // Filter by minimum usage
97
+ const result = [...wrappers.values()].filter((w) => w.calledBy.length >= minUsageCount);
98
+ return result;
99
+ }
100
+ function createWrapper(func, data) {
101
+ return {
102
+ name: func.name,
103
+ qualifiedName: func.qualifiedName,
104
+ file: func.file,
105
+ line: func.startLine,
106
+ language: func.language,
107
+ directPrimitives: data.directPrimitives,
108
+ transitivePrimitives: data.transitivePrimitives,
109
+ primitiveSignature: data.primitiveSignature,
110
+ depth: data.depth,
111
+ callsWrappers: data.callsWrappers,
112
+ calledBy: [],
113
+ isFactory: detectFactoryPattern(func),
114
+ isHigherOrder: detectHigherOrderPattern(func),
115
+ isDecorator: detectDecoratorPattern(func),
116
+ isAsync: func.isAsync,
117
+ returnType: func.returnType,
118
+ parameterSignature: func.parameters?.map((p) => p.type || p.name),
119
+ };
120
+ }
121
+ // =============================================================================
122
+ // Pattern Detection
123
+ // =============================================================================
124
+ /**
125
+ * Detect if function is a factory (returns a function)
126
+ */
127
+ function detectFactoryPattern(func) {
128
+ // Check return type
129
+ if (func.returnType) {
130
+ const rt = func.returnType.toLowerCase();
131
+ if (rt.includes('=>') || rt.includes('function') || rt.includes('callable')) {
132
+ return true;
133
+ }
134
+ // React hook factory pattern
135
+ if (rt.startsWith('use')) {
136
+ return true;
137
+ }
138
+ }
139
+ // Check name patterns
140
+ const factoryPatterns = /^(create|make|build|get|with)[A-Z]/;
141
+ if (factoryPatterns.test(func.name)) {
142
+ return true;
143
+ }
144
+ // Check if name contains "factory"
145
+ if (func.name.toLowerCase().includes('factory')) {
146
+ return true;
147
+ }
148
+ return false;
149
+ }
150
+ /**
151
+ * Detect if function is higher-order (takes function as parameter)
152
+ */
153
+ function detectHigherOrderPattern(func) {
154
+ if (!func.parameters)
155
+ return false;
156
+ return func.parameters.some((p) => {
157
+ const type = p.type?.toLowerCase() || '';
158
+ const name = p.name.toLowerCase();
159
+ // Type-based detection
160
+ if (type.includes('=>') || type.includes('function') || type.includes('callable')) {
161
+ return true;
162
+ }
163
+ // Name-based detection
164
+ if (name.includes('callback') || name.includes('handler') || name === 'fn' || name === 'func') {
165
+ return true;
166
+ }
167
+ return false;
168
+ });
169
+ }
170
+ /**
171
+ * Detect if function is a decorator pattern
172
+ */
173
+ function detectDecoratorPattern(func) {
174
+ // Python decorator: takes function, returns function
175
+ if (func.language === 'python') {
176
+ if (func.parameters?.length === 1) {
177
+ const param = func.parameters[0];
178
+ if (param && (param.name === 'func' || param.name === 'fn' || param.type?.includes('Callable'))) {
179
+ return true;
180
+ }
181
+ }
182
+ }
183
+ // TypeScript/JavaScript decorator
184
+ if (func.language === 'typescript') {
185
+ if (func.decorators && func.decorators.length > 0) {
186
+ return true;
187
+ }
188
+ }
189
+ // Check if function has decorator-like structure
190
+ if (func.name.toLowerCase().includes('decorator') || func.name.toLowerCase().includes('wrapper')) {
191
+ return true;
192
+ }
193
+ return false;
194
+ }
195
+ // =============================================================================
196
+ // Utility Functions
197
+ // =============================================================================
198
+ function isTestFile(filePath) {
199
+ const testPatterns = [
200
+ /\.test\.[jt]sx?$/,
201
+ /\.spec\.[jt]sx?$/,
202
+ /_test\.(py|go|java|cs|php)$/,
203
+ /Test\.(java|cs)$/,
204
+ /Tests?\//,
205
+ /__tests__\//,
206
+ /test_.*\.py$/,
207
+ ];
208
+ return testPatterns.some((pattern) => pattern.test(filePath));
209
+ }
210
+ /**
211
+ * Get wrappers by depth
212
+ */
213
+ export function getWrappersByDepth(wrappers) {
214
+ const byDepth = new Map();
215
+ for (const wrapper of wrappers) {
216
+ const existing = byDepth.get(wrapper.depth) || [];
217
+ byDepth.set(wrapper.depth, [...existing, wrapper]);
218
+ }
219
+ return byDepth;
220
+ }
221
+ /**
222
+ * Get wrappers that wrap a specific primitive
223
+ */
224
+ export function getWrappersForPrimitive(wrappers, primitiveName) {
225
+ return wrappers.filter((w) => w.directPrimitives.includes(primitiveName) ||
226
+ w.transitivePrimitives.includes(primitiveName));
227
+ }
228
+ /**
229
+ * Get the wrapper call chain (from wrapper to primitives)
230
+ */
231
+ export function getWrapperCallChain(wrapper, allWrappers) {
232
+ const chains = [];
233
+ const wrapperMap = new Map(allWrappers.map((w) => [w.qualifiedName, w]));
234
+ function buildChain(current, chain) {
235
+ const newChain = [...chain, current.name];
236
+ if (current.directPrimitives.length > 0) {
237
+ // Reached primitives
238
+ for (const primitive of current.directPrimitives) {
239
+ chains.push([...newChain, primitive]);
240
+ }
241
+ }
242
+ // Continue through called wrappers
243
+ for (const calledWrapper of current.callsWrappers) {
244
+ const called = wrapperMap.get(calledWrapper);
245
+ if (called && !chain.includes(called.name)) {
246
+ buildChain(called, newChain);
247
+ }
248
+ }
249
+ }
250
+ buildChain(wrapper, []);
251
+ return chains;
252
+ }
253
+ /**
254
+ * Calculate wrapper statistics
255
+ */
256
+ export function calculateWrapperStats(wrappers) {
257
+ if (wrappers.length === 0) {
258
+ return {
259
+ totalWrappers: 0,
260
+ avgDepth: 0,
261
+ maxDepth: 0,
262
+ factoryCount: 0,
263
+ higherOrderCount: 0,
264
+ decoratorCount: 0,
265
+ asyncCount: 0,
266
+ };
267
+ }
268
+ const depths = wrappers.map((w) => w.depth);
269
+ return {
270
+ totalWrappers: wrappers.length,
271
+ avgDepth: depths.reduce((a, b) => a + b, 0) / depths.length,
272
+ maxDepth: Math.max(...depths),
273
+ factoryCount: wrappers.filter((w) => w.isFactory).length,
274
+ higherOrderCount: wrappers.filter((w) => w.isHigherOrder).length,
275
+ decoratorCount: wrappers.filter((w) => w.isDecorator).length,
276
+ asyncCount: wrappers.filter((w) => w.isAsync).length,
277
+ };
278
+ }
279
+ //# sourceMappingURL=detector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detector.js","sourceRoot":"","sources":["../../../src/wrappers/detection/detector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAyDH,MAAM,eAAe,GAAsB;IACzC,QAAQ,EAAE,EAAE;IACZ,gBAAgB,EAAE,IAAI;IACtB,aAAa,EAAE,CAAC;CACjB,CAAC;AAEF,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,UAAU,cAAc,CAC5B,OAAyB,EACzB,UAA4B,EAAE;IA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AAE,CAAC;YACnB,cAAc,EAAE,CAAC;YACjB,UAAU,EAAE,CAAC;SACd,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO;QACL,aAAa,EAAE,QAAQ,CAAC,MAAM;QAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM;QAC3D,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;QAC7B,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM;QACxD,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,MAAM;QAChE,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,MAAM;QAC5D,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM;KACrD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Wrapper Detection Module
3
+ */
4
+ export * from './detector.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wrappers/detection/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Wrapper Detection Module
3
+ */
4
+ export * from './detector.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wrappers/detection/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Wrapper Export Module
3
+ */
4
+ export * from './json.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wrappers/export/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Wrapper Export Module
3
+ */
4
+ export * from './json.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/wrappers/export/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * JSON Export Format for Wrapper Analysis
3
+ *
4
+ * Provides structured JSON output for wrapper detection results.
5
+ */
6
+ import type { WrapperAnalysisResult, WrapperCategory, SupportedLanguage } from '../types.js';
7
+ export interface WrapperExportOptions {
8
+ /** Include full wrapper details (default: true) */
9
+ includeWrappers?: boolean | undefined;
10
+ /** Include primitive details (default: true) */
11
+ includePrimitives?: boolean | undefined;
12
+ /** Include cluster details (default: true) */
13
+ includeClusters?: boolean | undefined;
14
+ /** Include summary statistics (default: true) */
15
+ includeSummary?: boolean | undefined;
16
+ /** Pretty print JSON (default: false) */
17
+ prettyPrint?: boolean | undefined;
18
+ /** Indent size for pretty print (default: 2) */
19
+ indentSize?: number | undefined;
20
+ }
21
+ export interface WrapperExportResult {
22
+ /** Export format version */
23
+ version: string;
24
+ /** Export timestamp */
25
+ exportedAt: string;
26
+ /** Project metadata */
27
+ project: ProjectMetadata;
28
+ /** Framework information */
29
+ frameworks: FrameworkExport[];
30
+ /** Detected primitives */
31
+ primitives?: PrimitiveExport[] | undefined;
32
+ /** Detected wrappers */
33
+ wrappers?: WrapperExport[] | undefined;
34
+ /** Wrapper clusters */
35
+ clusters?: ClusterExport[] | undefined;
36
+ /** Summary statistics */
37
+ summary?: SummaryExport | undefined;
38
+ }
39
+ export interface ProjectMetadata {
40
+ /** Project root path */
41
+ path?: string | undefined;
42
+ /** Primary language */
43
+ language: SupportedLanguage;
44
+ /** Total files analyzed */
45
+ filesAnalyzed?: number | undefined;
46
+ }
47
+ export interface FrameworkExport {
48
+ name: string;
49
+ version?: string | undefined;
50
+ primitiveCount: number;
51
+ language: SupportedLanguage;
52
+ }
53
+ export interface PrimitiveExport {
54
+ name: string;
55
+ framework: string;
56
+ category: string;
57
+ usageCount: number;
58
+ confidence: number;
59
+ }
60
+ export interface WrapperExport {
61
+ name: string;
62
+ qualifiedName: string;
63
+ file: string;
64
+ line: number;
65
+ depth: number;
66
+ primitives: string[];
67
+ calledBy: string[];
68
+ callsWrappers: string[];
69
+ flags: WrapperFlags;
70
+ }
71
+ export interface WrapperFlags {
72
+ isFactory: boolean;
73
+ isHigherOrder: boolean;
74
+ isDecorator: boolean;
75
+ isAsync: boolean;
76
+ }
77
+ export interface ClusterExport {
78
+ id: string;
79
+ name: string;
80
+ description: string;
81
+ category: WrapperCategory;
82
+ confidence: number;
83
+ primitiveSignature: string[];
84
+ wrapperCount: number;
85
+ wrappers: string[];
86
+ metrics: ClusterMetrics;
87
+ suggestedNames: string[];
88
+ }
89
+ export interface ClusterMetrics {
90
+ avgDepth: number;
91
+ maxDepth: number;
92
+ totalUsages: number;
93
+ fileSpread: number;
94
+ }
95
+ export interface SummaryExport {
96
+ totalWrappers: number;
97
+ totalClusters: number;
98
+ avgDepth: number;
99
+ maxDepth: number;
100
+ mostWrappedPrimitive: string;
101
+ mostUsedWrapper: string;
102
+ wrappersByLanguage: Record<SupportedLanguage, number>;
103
+ wrappersByCategory: Record<WrapperCategory, number>;
104
+ }
105
+ /**
106
+ * Export wrapper analysis results to JSON format
107
+ */
108
+ export declare function exportToJson(result: WrapperAnalysisResult, options?: WrapperExportOptions): string;
109
+ /**
110
+ * Build the export result object
111
+ */
112
+ export declare function buildExportResult(result: WrapperAnalysisResult, options: {
113
+ includeWrappers: boolean;
114
+ includePrimitives: boolean;
115
+ includeClusters: boolean;
116
+ includeSummary: boolean;
117
+ }): WrapperExportResult;
118
+ /**
119
+ * Parse JSON export back to analysis result
120
+ * Note: This is a partial reconstruction - some data may be lost
121
+ */
122
+ export declare function parseJsonExport(json: string): Partial<WrapperExportResult>;
123
+ /**
124
+ * Validate export format
125
+ */
126
+ export declare function validateExport(data: unknown): data is WrapperExportResult;
127
+ //# sourceMappingURL=json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/wrappers/export/json.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,qBAAqB,EAKrB,eAAe,EACf,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAMrB,MAAM,WAAW,oBAAoB;IACnC,mDAAmD;IACnD,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,iDAAiD;IACjD,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,4BAA4B;IAC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O,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;CACzB,GACA,mBAAmB,CA6BrB;AA4FD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAS1E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,mBAAmB,CAWzE"}
@@ -0,0 +1,160 @@
1
+ /**
2
+ * JSON Export Format for Wrapper Analysis
3
+ *
4
+ * Provides structured JSON output for wrapper detection results.
5
+ */
6
+ // =============================================================================
7
+ // Export Functions
8
+ // =============================================================================
9
+ const EXPORT_VERSION = '1.0.0';
10
+ /**
11
+ * Export wrapper analysis results to JSON format
12
+ */
13
+ export function exportToJson(result, options = {}) {
14
+ const { includeWrappers = true, includePrimitives = true, includeClusters = true, includeSummary = true, prettyPrint = false, indentSize = 2, } = options;
15
+ const exportResult = buildExportResult(result, {
16
+ includeWrappers,
17
+ includePrimitives,
18
+ includeClusters,
19
+ includeSummary,
20
+ });
21
+ return prettyPrint
22
+ ? JSON.stringify(exportResult, null, indentSize)
23
+ : JSON.stringify(exportResult);
24
+ }
25
+ /**
26
+ * Build the export result object
27
+ */
28
+ export function buildExportResult(result, options) {
29
+ const language = result.frameworks[0]?.language ?? 'typescript';
30
+ const exportResult = {
31
+ version: EXPORT_VERSION,
32
+ exportedAt: new Date().toISOString(),
33
+ project: {
34
+ language,
35
+ },
36
+ frameworks: result.frameworks.map(exportFramework),
37
+ };
38
+ if (options.includePrimitives) {
39
+ exportResult.primitives = result.primitives.map(exportPrimitive);
40
+ }
41
+ if (options.includeWrappers) {
42
+ exportResult.wrappers = result.wrappers.map(exportWrapper);
43
+ }
44
+ if (options.includeClusters) {
45
+ exportResult.clusters = result.clusters.map(exportCluster);
46
+ }
47
+ if (options.includeSummary) {
48
+ exportResult.summary = exportSummary(result.summary);
49
+ }
50
+ return exportResult;
51
+ }
52
+ /**
53
+ * Export a framework info object
54
+ */
55
+ function exportFramework(fw) {
56
+ return {
57
+ name: fw.name,
58
+ version: fw.version,
59
+ primitiveCount: fw.primitiveCount,
60
+ language: fw.language,
61
+ };
62
+ }
63
+ /**
64
+ * Export a primitive object
65
+ */
66
+ function exportPrimitive(p) {
67
+ return {
68
+ name: p.name,
69
+ framework: p.framework,
70
+ category: p.category,
71
+ usageCount: p.usageCount,
72
+ confidence: p.source.confidence,
73
+ };
74
+ }
75
+ /**
76
+ * Export a wrapper function object
77
+ */
78
+ function exportWrapper(w) {
79
+ return {
80
+ name: w.name,
81
+ qualifiedName: w.qualifiedName,
82
+ file: w.file,
83
+ line: w.line,
84
+ depth: w.depth,
85
+ primitives: w.primitiveSignature,
86
+ calledBy: w.calledBy,
87
+ callsWrappers: w.callsWrappers,
88
+ flags: {
89
+ isFactory: w.isFactory,
90
+ isHigherOrder: w.isHigherOrder,
91
+ isDecorator: w.isDecorator,
92
+ isAsync: w.isAsync,
93
+ },
94
+ };
95
+ }
96
+ /**
97
+ * Export a cluster object
98
+ */
99
+ function exportCluster(c) {
100
+ return {
101
+ id: c.id,
102
+ name: c.name,
103
+ description: c.description,
104
+ category: c.category,
105
+ confidence: c.confidence,
106
+ primitiveSignature: c.primitiveSignature,
107
+ wrapperCount: c.wrappers.length,
108
+ wrappers: c.wrappers.map((w) => w.qualifiedName),
109
+ metrics: {
110
+ avgDepth: c.avgDepth,
111
+ maxDepth: c.maxDepth,
112
+ totalUsages: c.totalUsages,
113
+ fileSpread: c.fileSpread,
114
+ },
115
+ suggestedNames: c.suggestedNames,
116
+ };
117
+ }
118
+ /**
119
+ * Export summary statistics
120
+ */
121
+ function exportSummary(s) {
122
+ return {
123
+ totalWrappers: s.totalWrappers,
124
+ totalClusters: s.totalClusters,
125
+ avgDepth: s.avgDepth,
126
+ maxDepth: s.maxDepth,
127
+ mostWrappedPrimitive: s.mostWrappedPrimitive,
128
+ mostUsedWrapper: s.mostUsedWrapper,
129
+ wrappersByLanguage: { ...s.wrappersByLanguage },
130
+ wrappersByCategory: { ...s.wrappersByCategory },
131
+ };
132
+ }
133
+ // =============================================================================
134
+ // Import Functions (for loading saved results)
135
+ // =============================================================================
136
+ /**
137
+ * Parse JSON export back to analysis result
138
+ * Note: This is a partial reconstruction - some data may be lost
139
+ */
140
+ export function parseJsonExport(json) {
141
+ const parsed = JSON.parse(json);
142
+ // Validate version
143
+ if (!parsed.version) {
144
+ throw new Error('Invalid export format: missing version');
145
+ }
146
+ return parsed;
147
+ }
148
+ /**
149
+ * Validate export format
150
+ */
151
+ export function validateExport(data) {
152
+ if (typeof data !== 'object' || data === null)
153
+ return false;
154
+ const obj = data;
155
+ return (typeof obj['version'] === 'string' &&
156
+ typeof obj['exportedAt'] === 'string' &&
157
+ typeof obj['project'] === 'object' &&
158
+ Array.isArray(obj['frameworks']));
159
+ }
160
+ //# sourceMappingURL=json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.js","sourceRoot":"","sources":["../../../src/wrappers/export/json.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA4HH,gFAAgF;AAChF,mBAAmB;AACnB,gFAAgF;AAEhF,MAAM,cAAc,GAAG,OAAO,CAAC;AAE/B;;GAEG;AACH,MAAM,UAAU,YAAY,CAC1B,MAA6B,EAC7B,UAAgC,EAAE;IAElC,MAAM,EACJ,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,eAAe,GAAG,IAAI,EACtB,cAAc,GAAG,IAAI,EACrB,WAAW,GAAG,KAAK,EACnB,UAAU,GAAG,CAAC,GACf,GAAG,OAAO,CAAC;IAEZ,MAAM,YAAY,GAAG,iBAAiB,CAAC,MAAM,EAAE;QAC7C,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,WAAW;QAChB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,UAAU,CAAC;QAChD,CAAC,CAAC,IAAI,CAAC,SAAS,C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