aspectcode 0.2.1 → 0.3.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 (307) hide show
  1. package/dist/cli.d.ts +16 -56
  2. package/dist/cli.d.ts.map +1 -1
  3. package/dist/cli.js +18 -21
  4. package/dist/cli.js.map +1 -1
  5. package/dist/config.d.ts +14 -25
  6. package/dist/config.d.ts.map +1 -1
  7. package/dist/config.js +5 -61
  8. package/dist/config.js.map +1 -1
  9. package/dist/kbBuilder.d.ts +14 -0
  10. package/dist/kbBuilder.d.ts.map +1 -0
  11. package/dist/kbBuilder.js +106 -0
  12. package/dist/kbBuilder.js.map +1 -0
  13. package/dist/main.d.ts +4 -5
  14. package/dist/main.d.ts.map +1 -1
  15. package/dist/main.js +46 -145
  16. package/dist/main.js.map +1 -1
  17. package/dist/optimize.d.ts +14 -0
  18. package/dist/optimize.d.ts.map +1 -0
  19. package/dist/optimize.js +131 -0
  20. package/dist/optimize.js.map +1 -0
  21. package/dist/pipeline.d.ts +15 -0
  22. package/dist/pipeline.d.ts.map +1 -0
  23. package/dist/pipeline.js +212 -0
  24. package/dist/pipeline.js.map +1 -0
  25. package/dist/toolIngestion.d.ts +15 -0
  26. package/dist/toolIngestion.d.ts.map +1 -0
  27. package/dist/toolIngestion.js +47 -0
  28. package/dist/toolIngestion.js.map +1 -0
  29. package/dist/writer.d.ts +17 -0
  30. package/dist/writer.d.ts.map +1 -0
  31. package/dist/writer.js +26 -0
  32. package/dist/writer.js.map +1 -0
  33. package/node_modules/@aspectcode/core/dist/analysis/analyzer.d.ts +34 -0
  34. package/node_modules/@aspectcode/core/dist/analysis/analyzer.d.ts.map +1 -0
  35. package/node_modules/@aspectcode/core/dist/analysis/analyzer.js +240 -0
  36. package/node_modules/@aspectcode/core/dist/analysis/analyzer.js.map +1 -0
  37. package/node_modules/@aspectcode/core/dist/analysis/dependencyAdapters.d.ts +32 -0
  38. package/node_modules/@aspectcode/core/dist/analysis/dependencyAdapters.d.ts.map +1 -0
  39. package/node_modules/@aspectcode/core/dist/analysis/dependencyAdapters.js +133 -0
  40. package/node_modules/@aspectcode/core/dist/analysis/dependencyAdapters.js.map +1 -0
  41. package/node_modules/@aspectcode/core/dist/analysis/importParsers.d.ts +30 -0
  42. package/node_modules/@aspectcode/core/dist/analysis/importParsers.d.ts.map +1 -0
  43. package/node_modules/@aspectcode/core/dist/analysis/importParsers.js +92 -0
  44. package/node_modules/@aspectcode/core/dist/analysis/importParsers.js.map +1 -0
  45. package/node_modules/@aspectcode/core/dist/analysis/index.d.ts +9 -0
  46. package/node_modules/@aspectcode/core/dist/analysis/index.d.ts.map +1 -0
  47. package/node_modules/@aspectcode/core/dist/analysis/index.js +9 -0
  48. package/node_modules/@aspectcode/core/dist/analysis/index.js.map +1 -0
  49. package/node_modules/@aspectcode/core/dist/analysis/moduleResolver.d.ts +34 -0
  50. package/node_modules/@aspectcode/core/dist/analysis/moduleResolver.d.ts.map +1 -0
  51. package/node_modules/@aspectcode/core/dist/analysis/moduleResolver.js +240 -0
  52. package/node_modules/@aspectcode/core/dist/analysis/moduleResolver.js.map +1 -0
  53. package/node_modules/@aspectcode/core/dist/analysis/repo.d.ts +33 -0
  54. package/node_modules/@aspectcode/core/dist/analysis/repo.d.ts.map +1 -0
  55. package/node_modules/@aspectcode/core/dist/analysis/repo.js +246 -0
  56. package/node_modules/@aspectcode/core/dist/analysis/repo.js.map +1 -0
  57. package/node_modules/@aspectcode/core/dist/classifiers.d.ts +24 -0
  58. package/node_modules/@aspectcode/core/dist/classifiers.d.ts.map +1 -0
  59. package/node_modules/@aspectcode/core/dist/classifiers.js +119 -0
  60. package/node_modules/@aspectcode/core/dist/classifiers.js.map +1 -0
  61. package/node_modules/@aspectcode/core/dist/fs/exclusions.d.ts +26 -0
  62. package/node_modules/@aspectcode/core/dist/fs/exclusions.d.ts.map +1 -0
  63. package/node_modules/@aspectcode/core/dist/fs/exclusions.js +130 -0
  64. package/node_modules/@aspectcode/core/dist/fs/exclusions.js.map +1 -0
  65. package/node_modules/@aspectcode/core/dist/fs/fingerprint.d.ts +42 -0
  66. package/node_modules/@aspectcode/core/dist/fs/fingerprint.d.ts.map +1 -0
  67. package/node_modules/@aspectcode/core/dist/fs/fingerprint.js +125 -0
  68. package/node_modules/@aspectcode/core/dist/fs/fingerprint.js.map +1 -0
  69. package/node_modules/@aspectcode/core/dist/fs/index.d.ts +9 -0
  70. package/node_modules/@aspectcode/core/dist/fs/index.d.ts.map +1 -0
  71. package/node_modules/@aspectcode/core/dist/fs/index.js +26 -0
  72. package/node_modules/@aspectcode/core/dist/fs/index.js.map +1 -0
  73. package/node_modules/@aspectcode/core/dist/fs/walker.d.ts +23 -0
  74. package/node_modules/@aspectcode/core/dist/fs/walker.d.ts.map +1 -0
  75. package/node_modules/@aspectcode/core/dist/fs/walker.js +94 -0
  76. package/node_modules/@aspectcode/core/dist/fs/walker.js.map +1 -0
  77. package/node_modules/@aspectcode/core/dist/host.d.ts +38 -0
  78. package/node_modules/@aspectcode/core/dist/host.d.ts.map +1 -0
  79. package/node_modules/@aspectcode/core/dist/host.js +110 -0
  80. package/node_modules/@aspectcode/core/dist/host.js.map +1 -0
  81. package/node_modules/@aspectcode/core/dist/index.d.ts +23 -0
  82. package/node_modules/@aspectcode/core/dist/index.d.ts.map +1 -0
  83. package/node_modules/@aspectcode/core/dist/index.js +59 -0
  84. package/node_modules/@aspectcode/core/dist/index.js.map +1 -0
  85. package/node_modules/@aspectcode/core/dist/model.d.ts +90 -0
  86. package/node_modules/@aspectcode/core/dist/model.d.ts.map +1 -0
  87. package/node_modules/@aspectcode/core/dist/model.js +9 -0
  88. package/node_modules/@aspectcode/core/dist/model.js.map +1 -0
  89. package/node_modules/@aspectcode/core/dist/parsers/csharpExtractors.d.ts +17 -0
  90. package/node_modules/@aspectcode/core/dist/parsers/csharpExtractors.d.ts.map +1 -0
  91. package/node_modules/@aspectcode/core/dist/parsers/csharpExtractors.js +225 -0
  92. package/node_modules/@aspectcode/core/dist/parsers/csharpExtractors.js.map +1 -0
  93. package/node_modules/@aspectcode/core/dist/parsers/grammarLoader.d.ts +30 -0
  94. package/node_modules/@aspectcode/core/dist/parsers/grammarLoader.d.ts.map +1 -0
  95. package/node_modules/@aspectcode/core/dist/parsers/grammarLoader.js +71 -0
  96. package/node_modules/@aspectcode/core/dist/parsers/grammarLoader.js.map +1 -0
  97. package/node_modules/@aspectcode/core/dist/parsers/index.d.ts +13 -0
  98. package/node_modules/@aspectcode/core/dist/parsers/index.d.ts.map +1 -0
  99. package/node_modules/@aspectcode/core/dist/parsers/index.js +32 -0
  100. package/node_modules/@aspectcode/core/dist/parsers/index.js.map +1 -0
  101. package/node_modules/@aspectcode/core/dist/parsers/javaExtractors.d.ts +17 -0
  102. package/node_modules/@aspectcode/core/dist/parsers/javaExtractors.d.ts.map +1 -0
  103. package/node_modules/@aspectcode/core/dist/parsers/javaExtractors.js +182 -0
  104. package/node_modules/@aspectcode/core/dist/parsers/javaExtractors.js.map +1 -0
  105. package/node_modules/@aspectcode/core/dist/parsers/languages.d.ts +44 -0
  106. package/node_modules/@aspectcode/core/dist/parsers/languages.d.ts.map +1 -0
  107. package/node_modules/@aspectcode/core/dist/parsers/languages.js +64 -0
  108. package/node_modules/@aspectcode/core/dist/parsers/languages.js.map +1 -0
  109. package/node_modules/@aspectcode/core/dist/parsers/pythonExtractors.d.ts +18 -0
  110. package/node_modules/@aspectcode/core/dist/parsers/pythonExtractors.d.ts.map +1 -0
  111. package/node_modules/@aspectcode/core/dist/parsers/pythonExtractors.js +139 -0
  112. package/node_modules/@aspectcode/core/dist/parsers/pythonExtractors.js.map +1 -0
  113. package/node_modules/@aspectcode/core/dist/parsers/tsJsExtractors.d.ts +22 -0
  114. package/node_modules/@aspectcode/core/dist/parsers/tsJsExtractors.d.ts.map +1 -0
  115. package/node_modules/@aspectcode/core/dist/parsers/tsJsExtractors.js +240 -0
  116. package/node_modules/@aspectcode/core/dist/parsers/tsJsExtractors.js.map +1 -0
  117. package/node_modules/@aspectcode/core/dist/parsers/utils.d.ts +7 -0
  118. package/node_modules/@aspectcode/core/dist/parsers/utils.d.ts.map +1 -0
  119. package/node_modules/@aspectcode/core/dist/parsers/utils.js +11 -0
  120. package/node_modules/@aspectcode/core/dist/parsers/utils.js.map +1 -0
  121. package/node_modules/@aspectcode/core/dist/paths.d.ts +27 -0
  122. package/node_modules/@aspectcode/core/dist/paths.d.ts.map +1 -0
  123. package/node_modules/@aspectcode/core/dist/paths.js +45 -0
  124. package/node_modules/@aspectcode/core/dist/paths.js.map +1 -0
  125. package/node_modules/@aspectcode/core/dist/stats.d.ts +41 -0
  126. package/node_modules/@aspectcode/core/dist/stats.d.ts.map +1 -0
  127. package/node_modules/@aspectcode/core/dist/stats.js +88 -0
  128. package/node_modules/@aspectcode/core/dist/stats.js.map +1 -0
  129. package/node_modules/@aspectcode/core/package.json +41 -0
  130. package/node_modules/@aspectcode/core/parsers/c_sharp.wasm +0 -0
  131. package/node_modules/@aspectcode/core/parsers/java.wasm +0 -0
  132. package/node_modules/@aspectcode/core/parsers/javascript.wasm +0 -0
  133. package/node_modules/@aspectcode/core/parsers/python.wasm +0 -0
  134. package/node_modules/@aspectcode/core/parsers/tree-sitter.wasm +0 -0
  135. package/node_modules/@aspectcode/core/parsers/tsx.wasm +0 -0
  136. package/node_modules/@aspectcode/core/parsers/typescript.wasm +0 -0
  137. package/node_modules/@aspectcode/emitters/dist/emitter.d.ts +72 -0
  138. package/node_modules/@aspectcode/emitters/dist/emitter.d.ts.map +1 -0
  139. package/node_modules/@aspectcode/emitters/dist/emitter.js +10 -0
  140. package/node_modules/@aspectcode/emitters/dist/emitter.js.map +1 -0
  141. package/node_modules/@aspectcode/emitters/dist/host.d.ts +31 -0
  142. package/node_modules/@aspectcode/emitters/dist/host.d.ts.map +1 -0
  143. package/node_modules/@aspectcode/emitters/dist/host.js +86 -0
  144. package/node_modules/@aspectcode/emitters/dist/host.js.map +1 -0
  145. package/node_modules/@aspectcode/emitters/dist/index.d.ts +27 -0
  146. package/node_modules/@aspectcode/emitters/dist/index.d.ts.map +1 -0
  147. package/node_modules/@aspectcode/emitters/dist/index.js +116 -0
  148. package/node_modules/@aspectcode/emitters/dist/index.js.map +1 -0
  149. package/node_modules/@aspectcode/emitters/dist/instructions/content.d.ts +15 -0
  150. package/node_modules/@aspectcode/emitters/dist/instructions/content.d.ts.map +1 -0
  151. package/node_modules/@aspectcode/emitters/dist/instructions/content.js +289 -0
  152. package/node_modules/@aspectcode/emitters/dist/instructions/content.js.map +1 -0
  153. package/node_modules/@aspectcode/emitters/dist/instructions/detection.d.ts +13 -0
  154. package/node_modules/@aspectcode/emitters/dist/instructions/detection.d.ts.map +1 -0
  155. package/node_modules/@aspectcode/emitters/dist/instructions/detection.js +55 -0
  156. package/node_modules/@aspectcode/emitters/dist/instructions/detection.js.map +1 -0
  157. package/node_modules/@aspectcode/emitters/dist/instructions/formats.d.ts +17 -0
  158. package/node_modules/@aspectcode/emitters/dist/instructions/formats.d.ts.map +1 -0
  159. package/node_modules/@aspectcode/emitters/dist/instructions/formats.js +23 -0
  160. package/node_modules/@aspectcode/emitters/dist/instructions/formats.js.map +1 -0
  161. package/node_modules/@aspectcode/emitters/dist/instructions/index.d.ts +5 -0
  162. package/node_modules/@aspectcode/emitters/dist/instructions/index.d.ts.map +1 -0
  163. package/node_modules/@aspectcode/emitters/dist/instructions/index.js +12 -0
  164. package/node_modules/@aspectcode/emitters/dist/instructions/index.js.map +1 -0
  165. package/node_modules/@aspectcode/emitters/dist/instructions/instructionsEmitter.d.ts +9 -0
  166. package/node_modules/@aspectcode/emitters/dist/instructions/instructionsEmitter.d.ts.map +1 -0
  167. package/node_modules/@aspectcode/emitters/dist/instructions/instructionsEmitter.js +30 -0
  168. package/node_modules/@aspectcode/emitters/dist/instructions/instructionsEmitter.js.map +1 -0
  169. package/node_modules/@aspectcode/emitters/dist/kb/analyzers.d.ts +64 -0
  170. package/node_modules/@aspectcode/emitters/dist/kb/analyzers.d.ts.map +1 -0
  171. package/node_modules/@aspectcode/emitters/dist/kb/analyzers.js +504 -0
  172. package/node_modules/@aspectcode/emitters/dist/kb/analyzers.js.map +1 -0
  173. package/node_modules/@aspectcode/emitters/dist/kb/architectureEmitter.d.ts +24 -0
  174. package/node_modules/@aspectcode/emitters/dist/kb/architectureEmitter.d.ts.map +1 -0
  175. package/node_modules/@aspectcode/emitters/dist/kb/architectureEmitter.js +238 -0
  176. package/node_modules/@aspectcode/emitters/dist/kb/architectureEmitter.js.map +1 -0
  177. package/node_modules/@aspectcode/emitters/dist/kb/classifiers.d.ts +8 -0
  178. package/node_modules/@aspectcode/emitters/dist/kb/classifiers.d.ts.map +1 -0
  179. package/node_modules/@aspectcode/emitters/dist/kb/classifiers.js +14 -0
  180. package/node_modules/@aspectcode/emitters/dist/kb/classifiers.js.map +1 -0
  181. package/node_modules/@aspectcode/emitters/dist/kb/constants.d.ts +35 -0
  182. package/node_modules/@aspectcode/emitters/dist/kb/constants.d.ts.map +1 -0
  183. package/node_modules/@aspectcode/emitters/dist/kb/constants.js +38 -0
  184. package/node_modules/@aspectcode/emitters/dist/kb/constants.js.map +1 -0
  185. package/node_modules/@aspectcode/emitters/dist/kb/contextEmitter.d.ts +20 -0
  186. package/node_modules/@aspectcode/emitters/dist/kb/contextEmitter.d.ts.map +1 -0
  187. package/node_modules/@aspectcode/emitters/dist/kb/contextEmitter.js +155 -0
  188. package/node_modules/@aspectcode/emitters/dist/kb/contextEmitter.js.map +1 -0
  189. package/node_modules/@aspectcode/emitters/dist/kb/conventions.d.ts +52 -0
  190. package/node_modules/@aspectcode/emitters/dist/kb/conventions.d.ts.map +1 -0
  191. package/node_modules/@aspectcode/emitters/dist/kb/conventions.js +391 -0
  192. package/node_modules/@aspectcode/emitters/dist/kb/conventions.js.map +1 -0
  193. package/node_modules/@aspectcode/emitters/dist/kb/depData.d.ts +18 -0
  194. package/node_modules/@aspectcode/emitters/dist/kb/depData.d.ts.map +1 -0
  195. package/node_modules/@aspectcode/emitters/dist/kb/depData.js +31 -0
  196. package/node_modules/@aspectcode/emitters/dist/kb/depData.js.map +1 -0
  197. package/node_modules/@aspectcode/emitters/dist/kb/detectors.d.ts +18 -0
  198. package/node_modules/@aspectcode/emitters/dist/kb/detectors.d.ts.map +1 -0
  199. package/node_modules/@aspectcode/emitters/dist/kb/detectors.js +317 -0
  200. package/node_modules/@aspectcode/emitters/dist/kb/detectors.js.map +1 -0
  201. package/node_modules/@aspectcode/emitters/dist/kb/entryPoints.d.ts +33 -0
  202. package/node_modules/@aspectcode/emitters/dist/kb/entryPoints.d.ts.map +1 -0
  203. package/node_modules/@aspectcode/emitters/dist/kb/entryPoints.js +323 -0
  204. package/node_modules/@aspectcode/emitters/dist/kb/entryPoints.js.map +1 -0
  205. package/node_modules/@aspectcode/emitters/dist/kb/helpers.d.ts +27 -0
  206. package/node_modules/@aspectcode/emitters/dist/kb/helpers.d.ts.map +1 -0
  207. package/node_modules/@aspectcode/emitters/dist/kb/helpers.js +63 -0
  208. package/node_modules/@aspectcode/emitters/dist/kb/helpers.js.map +1 -0
  209. package/node_modules/@aspectcode/emitters/dist/kb/index.d.ts +27 -0
  210. package/node_modules/@aspectcode/emitters/dist/kb/index.d.ts.map +1 -0
  211. package/node_modules/@aspectcode/emitters/dist/kb/index.js +72 -0
  212. package/node_modules/@aspectcode/emitters/dist/kb/index.js.map +1 -0
  213. package/node_modules/@aspectcode/emitters/dist/kb/kbEmitter.d.ts +21 -0
  214. package/node_modules/@aspectcode/emitters/dist/kb/kbEmitter.d.ts.map +1 -0
  215. package/node_modules/@aspectcode/emitters/dist/kb/kbEmitter.js +125 -0
  216. package/node_modules/@aspectcode/emitters/dist/kb/kbEmitter.js.map +1 -0
  217. package/node_modules/@aspectcode/emitters/dist/kb/mapEmitter.d.ts +26 -0
  218. package/node_modules/@aspectcode/emitters/dist/kb/mapEmitter.d.ts.map +1 -0
  219. package/node_modules/@aspectcode/emitters/dist/kb/mapEmitter.js +255 -0
  220. package/node_modules/@aspectcode/emitters/dist/kb/mapEmitter.js.map +1 -0
  221. package/node_modules/@aspectcode/emitters/dist/kb/policy.d.ts +12 -0
  222. package/node_modules/@aspectcode/emitters/dist/kb/policy.d.ts.map +1 -0
  223. package/node_modules/@aspectcode/emitters/dist/kb/policy.js +29 -0
  224. package/node_modules/@aspectcode/emitters/dist/kb/policy.js.map +1 -0
  225. package/node_modules/@aspectcode/emitters/dist/kb/symbols.d.ts +43 -0
  226. package/node_modules/@aspectcode/emitters/dist/kb/symbols.d.ts.map +1 -0
  227. package/node_modules/@aspectcode/emitters/dist/kb/symbols.js +343 -0
  228. package/node_modules/@aspectcode/emitters/dist/kb/symbols.js.map +1 -0
  229. package/node_modules/@aspectcode/emitters/dist/manifest.d.ts +37 -0
  230. package/node_modules/@aspectcode/emitters/dist/manifest.d.ts.map +1 -0
  231. package/node_modules/@aspectcode/emitters/dist/manifest.js +50 -0
  232. package/node_modules/@aspectcode/emitters/dist/manifest.js.map +1 -0
  233. package/node_modules/@aspectcode/emitters/dist/report.d.ts +22 -0
  234. package/node_modules/@aspectcode/emitters/dist/report.d.ts.map +1 -0
  235. package/node_modules/@aspectcode/emitters/dist/report.js +3 -0
  236. package/node_modules/@aspectcode/emitters/dist/report.js.map +1 -0
  237. package/node_modules/@aspectcode/emitters/dist/stableJson.d.ts +14 -0
  238. package/node_modules/@aspectcode/emitters/dist/stableJson.d.ts.map +1 -0
  239. package/node_modules/@aspectcode/emitters/dist/stableJson.js +40 -0
  240. package/node_modules/@aspectcode/emitters/dist/stableJson.js.map +1 -0
  241. package/node_modules/@aspectcode/emitters/dist/transaction.d.ts +29 -0
  242. package/node_modules/@aspectcode/emitters/dist/transaction.d.ts.map +1 -0
  243. package/node_modules/@aspectcode/emitters/dist/transaction.js +104 -0
  244. package/node_modules/@aspectcode/emitters/dist/transaction.js.map +1 -0
  245. package/node_modules/@aspectcode/emitters/package.json +39 -0
  246. package/node_modules/@aspectcode/optimizer/dist/agent.d.ts +18 -0
  247. package/node_modules/@aspectcode/optimizer/dist/agent.d.ts.map +1 -0
  248. package/node_modules/@aspectcode/optimizer/dist/agent.js +123 -0
  249. package/node_modules/@aspectcode/optimizer/dist/agent.js.map +1 -0
  250. package/node_modules/@aspectcode/optimizer/dist/index.d.ts +15 -0
  251. package/node_modules/@aspectcode/optimizer/dist/index.d.ts.map +1 -0
  252. package/node_modules/@aspectcode/optimizer/dist/index.js +31 -0
  253. package/node_modules/@aspectcode/optimizer/dist/index.js.map +1 -0
  254. package/node_modules/@aspectcode/optimizer/dist/prompts.d.ts +39 -0
  255. package/node_modules/@aspectcode/optimizer/dist/prompts.d.ts.map +1 -0
  256. package/node_modules/@aspectcode/optimizer/dist/prompts.js +156 -0
  257. package/node_modules/@aspectcode/optimizer/dist/prompts.js.map +1 -0
  258. package/node_modules/@aspectcode/optimizer/dist/providers/anthropic.d.ts +20 -0
  259. package/node_modules/@aspectcode/optimizer/dist/providers/anthropic.d.ts.map +1 -0
  260. package/node_modules/@aspectcode/optimizer/dist/providers/anthropic.js +126 -0
  261. package/node_modules/@aspectcode/optimizer/dist/providers/anthropic.js.map +1 -0
  262. package/node_modules/@aspectcode/optimizer/dist/providers/index.d.ts +28 -0
  263. package/node_modules/@aspectcode/optimizer/dist/providers/index.d.ts.map +1 -0
  264. package/node_modules/@aspectcode/optimizer/dist/providers/index.js +142 -0
  265. package/node_modules/@aspectcode/optimizer/dist/providers/index.js.map +1 -0
  266. package/node_modules/@aspectcode/optimizer/dist/providers/openai.d.ts +19 -0
  267. package/node_modules/@aspectcode/optimizer/dist/providers/openai.d.ts.map +1 -0
  268. package/node_modules/@aspectcode/optimizer/dist/providers/openai.js +98 -0
  269. package/node_modules/@aspectcode/optimizer/dist/providers/openai.js.map +1 -0
  270. package/node_modules/@aspectcode/optimizer/dist/providers/retry.d.ts +19 -0
  271. package/node_modules/@aspectcode/optimizer/dist/providers/retry.d.ts.map +1 -0
  272. package/node_modules/@aspectcode/optimizer/dist/providers/retry.js +87 -0
  273. package/node_modules/@aspectcode/optimizer/dist/providers/retry.js.map +1 -0
  274. package/node_modules/@aspectcode/optimizer/dist/types.d.ts +93 -0
  275. package/node_modules/@aspectcode/optimizer/dist/types.d.ts.map +1 -0
  276. package/node_modules/@aspectcode/optimizer/dist/types.js +20 -0
  277. package/node_modules/@aspectcode/optimizer/dist/types.js.map +1 -0
  278. package/node_modules/@aspectcode/optimizer/package.json +41 -0
  279. package/package.json +11 -3
  280. package/dist/commands/deps.d.ts +0 -3
  281. package/dist/commands/deps.d.ts.map +0 -1
  282. package/dist/commands/deps.js +0 -39
  283. package/dist/commands/deps.js.map +0 -1
  284. package/dist/commands/generate.d.ts +0 -8
  285. package/dist/commands/generate.d.ts.map +0 -1
  286. package/dist/commands/generate.js +0 -176
  287. package/dist/commands/generate.js.map +0 -1
  288. package/dist/commands/impact.d.ts +0 -9
  289. package/dist/commands/impact.d.ts.map +0 -1
  290. package/dist/commands/impact.js +0 -162
  291. package/dist/commands/impact.js.map +0 -1
  292. package/dist/commands/init.d.ts +0 -11
  293. package/dist/commands/init.d.ts.map +0 -1
  294. package/dist/commands/init.js +0 -204
  295. package/dist/commands/init.js.map +0 -1
  296. package/dist/commands/settings.d.ts +0 -13
  297. package/dist/commands/settings.d.ts.map +0 -1
  298. package/dist/commands/settings.js +0 -196
  299. package/dist/commands/settings.js.map +0 -1
  300. package/dist/commands/watch.d.ts +0 -6
  301. package/dist/commands/watch.d.ts.map +0 -1
  302. package/dist/commands/watch.js +0 -181
  303. package/dist/commands/watch.js.map +0 -1
  304. package/dist/connections.d.ts +0 -24
  305. package/dist/connections.d.ts.map +0 -1
  306. package/dist/connections.js +0 -89
  307. package/dist/connections.js.map +0 -1
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * @aspectcode/optimizer — core types.
4
+ *
5
+ * Provider-agnostic interfaces for LLM integration, agent loop
6
+ * configuration, and optimization results.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.LLM_MODEL_ENV = exports.LLM_PROVIDER_ENV = exports.PROVIDER_ENV_KEYS = void 0;
10
+ // ── Environment / config ────────────────────────────────────
11
+ /** Supported provider keys looked up in the environment. */
12
+ exports.PROVIDER_ENV_KEYS = {
13
+ openai: 'OPENAI_API_KEY',
14
+ anthropic: 'ANTHROPIC_API_KEY',
15
+ };
16
+ /** Optional env-var to force a specific provider. */
17
+ exports.LLM_PROVIDER_ENV = 'LLM_PROVIDER';
18
+ /** Optional env-var to override the default model. */
19
+ exports.LLM_MODEL_ENV = 'LLM_MODEL';
20
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAwGH,+DAA+D;AAE/D,4DAA4D;AAC/C,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,mBAAmB;CACtB,CAAC;AAIX,qDAAqD;AACxC,QAAA,gBAAgB,GAAG,cAAc,CAAC;AAE/C,sDAAsD;AACzC,QAAA,aAAa,GAAG,WAAW,CAAC"}
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@aspectcode/optimizer",
3
+ "version": "0.3.0",
4
+ "private": true,
5
+ "description": "LLM-powered instruction optimizer for Aspect Code",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "engines": {
13
+ "node": ">=18"
14
+ },
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/asashepard/aspectcode.git",
21
+ "directory": "packages/optimizer"
22
+ },
23
+ "scripts": {
24
+ "build": "tsc",
25
+ "typecheck": "tsc --noEmit",
26
+ "prepublishOnly": "npm run build",
27
+ "test": "mocha --require ts-node/register 'test/**/*.test.ts'"
28
+ },
29
+ "dependencies": {
30
+ "openai": "^4.70.0",
31
+ "@anthropic-ai/sdk": "^0.39.0",
32
+ "dotenv": "^16.4.0"
33
+ },
34
+ "devDependencies": {
35
+ "@types/mocha": "^10.0.0",
36
+ "@types/node": "^22.0.0",
37
+ "mocha": "^10.4.0",
38
+ "ts-node": "^10.9.2",
39
+ "typescript": "^5.5.4"
40
+ }
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspectcode",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "CLI for Aspect Code — generate knowledge-base artifacts from the command line",
5
5
  "license": "MIT",
6
6
  "main": "dist/main.js",
@@ -36,11 +36,19 @@
36
36
  "build": "tsc",
37
37
  "typecheck": "tsc --noEmit",
38
38
  "prepublishOnly": "npm run build",
39
+ "prepack": "node scripts/prepack.mjs",
40
+ "postpack": "node scripts/postpack.mjs",
39
41
  "test": "mocha --require ts-node/register 'test/**/*.test.ts'"
40
42
  },
43
+ "bundledDependencies": [
44
+ "@aspectcode/core",
45
+ "@aspectcode/emitters",
46
+ "@aspectcode/optimizer"
47
+ ],
41
48
  "dependencies": {
42
- "@aspectcode/core": "0.2.1",
43
- "@aspectcode/emitters": "0.2.1",
49
+ "@aspectcode/core": "0.3.0",
50
+ "@aspectcode/emitters": "0.3.0",
51
+ "@aspectcode/optimizer": "0.3.0",
44
52
  "chokidar": "^4.0.3"
45
53
  },
46
54
  "devDependencies": {
@@ -1,3 +0,0 @@
1
- import type { CommandContext, CommandResult } from '../cli';
2
- export declare function runDepsList(ctx: CommandContext): Promise<CommandResult>;
3
- //# sourceMappingURL=deps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/commands/deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAQ5D,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAuC7E"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runDepsList = runDepsList;
4
- const cli_1 = require("../cli");
5
- const logger_1 = require("../logger");
6
- const connections_1 = require("../connections");
7
- async function runDepsList(ctx) {
8
- const { root, flags, config, log } = ctx;
9
- const allConnections = await (0, connections_1.collectConnections)(root, config, log);
10
- const filtered = (0, connections_1.filterConnectionsByFile)(allConnections, root, flags.file);
11
- const connections = filtered.connections;
12
- if (filtered.error) {
13
- log.error(filtered.error);
14
- return { exitCode: cli_1.ExitCode.USAGE };
15
- }
16
- if (filtered.fileFilter && connections.length === 0) {
17
- log.info(`No dependency connections found for ${logger_1.fmt.cyan(filtered.fileFilter)}.`);
18
- return { exitCode: cli_1.ExitCode.OK };
19
- }
20
- if (filtered.fileFilter) {
21
- log.info(`Filtering by file: ${logger_1.fmt.cyan(filtered.fileFilter)}`);
22
- }
23
- if (connections.length === 0) {
24
- log.info('No dependency connections found.');
25
- return { exitCode: cli_1.ExitCode.OK };
26
- }
27
- log.info(logger_1.fmt.bold('Dependency connections:'));
28
- for (const row of connections) {
29
- const symbols = row.symbols.length > 0 ? ` [${row.symbols.join(', ')}]` : '';
30
- const lineInfo = row.lines.length > 0 ? ` @${row.lines.join(',')}` : '';
31
- const bidi = row.bidirectional ? ' <->' : '';
32
- log.info(`${logger_1.fmt.cyan(row.source)} -> ${logger_1.fmt.cyan(row.target)} ` +
33
- `(${row.type})${bidi}${symbols}${lineInfo}`);
34
- }
35
- log.blank();
36
- log.info(`${connections.length} connections listed`);
37
- return { exitCode: cli_1.ExitCode.OK };
38
- }
39
- //# sourceMappingURL=deps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deps.js","sourceRoot":"","sources":["../../src/commands/deps.ts"],"names":[],"mappings":";;AAQA,kCAuCC;AA9CD,gCAAkC;AAClC,sCAAgC;AAChC,gDAGwB;AAEjB,KAAK,UAAU,WAAW,CAAC,GAAmB;IACnD,MAAM,EAAE,IAAI,E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AAG,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7E,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,GAAG,CAAC,IAAI,CACN,GAAG,YAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,YAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG;YACnD,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,GAAG,QAAQ,EAAE,CAC9C,CAAC;IACJ,CAAC;IAED,GAAG,CAAC,KAAK,EAAE,CAAC;IACZ,GAAG,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,MAAM,qBAAqB,CAAC,CAAC;IACrD,OAAO,EAAE,QAAQ,EAAE,cAAQ,CAAC,EAAE,EAAE,CAAC;AACnC,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * `aspectcode generate` — discover, analyze, and emit artifacts.
3
- *
4
- * Pipeline: discoverFiles → readAll → analyzeRepoWithDependencies → runEmitters → report
5
- */
6
- import type { CommandContext, CommandResult } from '../cli';
7
- export declare function runGenerate(ctx: CommandContext): Promise<CommandResult>;
8
- //# sourceMappingURL=generate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAM5D,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAoJ7E"}
@@ -1,176 +0,0 @@
1
- "use strict";
2
- /**
3
- * `aspectcode generate` — discover, analyze, and emit artifacts.
4
- *
5
- * Pipeline: discoverFiles → readAll → analyzeRepoWithDependencies → runEmitters → report
6
- */
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
- Object.defineProperty(o, "default", { enumerable: true, value: v });
20
- }) : function(o, v) {
21
- o["default"] = v;
22
- });
23
- var __importStar = (this && this.__importStar) || (function () {
24
- var ownKeys = function(o) {
25
- ownKeys = Object.getOwnPropertyNames || function (o) {
26
- var ar = [];
27
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28
- return ar;
29
- };
30
- return ownKeys(o);
31
- };
32
- return function (mod) {
33
- if (mod && mod.__esModule) return mod;
34
- var result = {};
35
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
36
- __setModuleDefault(result, mod);
37
- return result;
38
- };
39
- })();
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.runGenerate = runGenerate;
42
- const path = __importStar(require("path"));
43
- const core_1 = require("@aspectcode/core");
44
- const emitters_1 = require("@aspectcode/emitters");
45
- const cli_1 = require("../cli");
46
- const logger_1 = require("../logger");
47
- const workspace_1 = require("../workspace");
48
- const connections_1 = require("../connections");
49
- async function runGenerate(ctx) {
50
- const { root, flags, config, log } = ctx;
51
- const startMs = Date.now();
52
- // ── 1. Resolve options ────────────────────────────────────
53
- const outDir = flags.out ?? config?.outDir ?? undefined;
54
- const resolvedOut = outDir ? path.resolve(root, outDir) : root;
55
- if (!flags.json) {
56
- log.info(`Workspace: ${logger_1.fmt.cyan(root)}`);
57
- if (outDir)
58
- log.info(`Output: ${logger_1.fmt.cyan(resolvedOut)}`);
59
- log.blank();
60
- }
61
- // ── 2. Discover & read files ───────────────────────────────
62
- const workspace = await (0, workspace_1.loadWorkspaceFiles)(root, config, log, { quiet: flags.quiet });
63
- if (workspace.discoveredPaths.length === 0) {
64
- log.warn('Check your exclude patterns.');
65
- return { exitCode: cli_1.ExitCode.ERROR };
66
- }
67
- const { relativeFiles: fileContents, absoluteFiles: absoluteFileContents } = workspace;
68
- // ── 3. Analyze ────────────────────────────────────────────
69
- const spinAnalyze = (0, logger_1.createSpinner)('Analyzing…', { quiet: flags.quiet });
70
- const model = await (0, core_1.analyzeRepoWithDependencies)(root, fileContents, absoluteFileContents, workspace.host);
71
- spinAnalyze.stop(`Analyzed ${model.files.length} files, ${model.graph.edges.length} edges`);
72
- // ── 4. Resolve instruction target ─────────────────────────
73
- const host = (0, emitters_1.createNodeEmitterHost)();
74
- // Determine assistant selection: explicit flags override default.
75
- const hasExplicitAssistants = flags.copilot || flags.cursor || flags.claude || flags.other;
76
- const assistants = flags.kbOnly
77
- ? {}
78
- : hasExplicitAssistants
79
- ? {
80
- copilot: flags.copilot || undefined,
81
- cursor: flags.cursor || undefined,
82
- claude: flags.claude || undefined,
83
- other: flags.other || undefined,
84
- }
85
- : { other: true };
86
- const instructionsMode = flags.kbOnly
87
- ? 'off'
88
- : (flags.instructionsMode ?? 'safe');
89
- if (!flags.kbOnly && !flags.json) {
90
- const targets = Object.entries(assistants)
91
- .filter(([, v]) => v)
92
- .map(([k]) => k);
93
- log.info(`Instructions: ${logger_1.fmt.cyan(targets.join(', ') || '(none)')}`);
94
- }
95
- // ── 5. Emit artifacts ─────────────────────────────────────
96
- const spinEmit = (0, logger_1.createSpinner)('Writing artifacts…', { quiet: flags.quiet });
97
- const emitOpts = {
98
- workspaceRoot: root,
99
- outDir: resolvedOut,
100
- assistants,
101
- instructionsMode,
102
- fileContents,
103
- };
104
- const report = await (0, emitters_1.runEmitters)(model, host, emitOpts);
105
- spinEmit.stop(`Wrote ${report.wrote.length} files`);
106
- let connections;
107
- if (flags.listConnections || flags.json) {
108
- const spinDeps = (0, logger_1.createSpinner)('Computing dependencies…', { quiet: flags.quiet });
109
- const allConnections = await (0, connections_1.collectConnections)(root, config, log);
110
- const filtered = (0, connections_1.filterConnectionsByFile)(allConnections, root, flags.file);
111
- if (filtered.error) {
112
- spinDeps.fail('Dependency error');
113
- log.error(filtered.error);
114
- return { exitCode: cli_1.ExitCode.USAGE };
115
- }
116
- connections = filtered.connections;
117
- spinDeps.stop(`Found ${connections.length} connections`);
118
- if (filtered.fileFilter && !flags.json) {
119
- log.info(`Filtered by: ${logger_1.fmt.cyan(filtered.fileFilter)}`);
120
- }
121
- }
122
- // ── 6. Report ─────────────────────────────────────────────
123
- const elapsedMs = Date.now() - startMs;
124
- if (flags.json) {
125
- const payload = {
126
- schemaVersion: report.schemaVersion,
127
- wrote: report.wrote.map((w) => ({
128
- path: path.relative(root, w.path).replace(/\\/g, '/'),
129
- bytes: w.bytes,
130
- })),
131
- skipped: report.skipped,
132
- stats: report.stats,
133
- connections,
134
- };
135
- console.log(JSON.stringify(payload, null, 2));
136
- }
137
- else {
138
- log.blank();
139
- for (const w of report.wrote) {
140
- const rel = path.relative(root, w.path).replace(/\\/g, '/');
141
- log.success(`${rel} (${formatBytes(w.bytes)})`);
142
- }
143
- }
144
- if (report.skipped) {
145
- for (const s of report.skipped) {
146
- log.debug(` skipped: ${s.id} — ${s.reason}`);
147
- }
148
- }
149
- if (flags.listConnections && !flags.json) {
150
- log.blank();
151
- log.info(logger_1.fmt.bold('Dependency connections:'));
152
- for (const row of connections ?? []) {
153
- const symbols = row.symbols.length > 0 ? ` [${row.symbols.join(', ')}]` : '';
154
- const lineInfo = row.lines.length > 0 ? ` @${row.lines.join(',')}` : '';
155
- const bidi = row.bidirectional ? ' <->' : '';
156
- log.info(`${logger_1.fmt.cyan(row.source)} -> ${logger_1.fmt.cyan(row.target)} ` +
157
- `(${row.type})${bidi}${symbols}${lineInfo}`);
158
- }
159
- }
160
- if (!flags.json) {
161
- log.blank();
162
- log.info(logger_1.fmt.dim(`Done in ${(elapsedMs / 1000).toFixed(1)}s — `) +
163
- `${report.wrote.length} files written`);
164
- }
165
- return { exitCode: cli_1.ExitCode.OK, report };
166
- }
167
- function formatBytes(bytes) {
168
- if (bytes < 1024)
169
- return `${bytes} B`;
170
- const kb = bytes / 1024;
171
- if (kb < 1024)
172
- return `${kb.toFixed(1)} KB`;
173
- const mb = kb / 1024;
174
- return `${mb.toFixed(1)} MB`;
175
- }
176
- //# sourceMappingURL=generate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBH,kCAoJC;AAnKD,2CAA6B;AAC7B,2CAE0B;AAC1B,mDAG8B;AAG9B,gCAAkC;AAClC,sCAA+C;AAC/C,4CAAkD;AAClD,gDAA6E;AAEtE,KAAK,UAAU,WAAW,CAAC,GAAmB;IACnD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACzC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE3B,6DAA6D;IAC7D,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,IAAI,MAAM,EAAE,MAAM,IAAI,SAAS,CAAC;IACxD,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,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M,gBAAgB,CACzC,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,cAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,WAAW,CAAC,KAAa;IAChC,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAC;IACtC,MAAM,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,GAAG,IAAI;QAAE,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAC5C,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;IACrB,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AAC/B,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * `aspectcode impact` — compute a lightweight impact summary for a single file.
3
- *
4
- * Discovers workspace files, resolves dependencies, and computes how many
5
- * other files depend on the target file.
6
- */
7
- import type { CommandContext, CommandResult } from '../cli';
8
- export declare function runImpact(ctx: CommandContext): Promise<CommandResult>;
9
- //# sourceMappingURL=impact.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"impact.d.ts","sourceRoot":"","sources":["../../src/commands/impact.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EAAY,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAiBtE,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CA0F3E"}
@@ -1,162 +0,0 @@
1
- "use strict";
2
- /**
3
- * `aspectcode impact` — compute a lightweight impact summary for a single file.
4
- *
5
- * Discovers workspace files, resolves dependencies, and computes how many
6
- * other files depend on the target file.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
- Object.defineProperty(o, "default", { enumerable: true, value: v });
21
- }) : function(o, v) {
22
- o["default"] = v;
23
- });
24
- var __importStar = (this && this.__importStar) || (function () {
25
- var ownKeys = function(o) {
26
- ownKeys = Object.getOwnPropertyNames || function (o) {
27
- var ar = [];
28
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
- return ar;
30
- };
31
- return ownKeys(o);
32
- };
33
- return function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- })();
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.runImpact = runImpact;
43
- const fs = __importStar(require("fs"));
44
- const path = __importStar(require("path"));
45
- const core_1 = require("@aspectcode/core");
46
- const cli_1 = require("../cli");
47
- const logger_1 = require("../logger");
48
- const workspace_1 = require("../workspace");
49
- // ── Command handler ──────────────────────────────────────────
50
- async function runImpact(ctx) {
51
- const { root, flags, config, log } = ctx;
52
- const targetFile = flags.file;
53
- if (!targetFile) {
54
- log.error(`${logger_1.fmt.bold('--file')} is required for the impact command.`);
55
- return { exitCode: cli_1.ExitCode.USAGE };
56
- }
57
- const absoluteTarget = path.resolve(root, targetFile);
58
- // Verify the target file exists.
59
- if (!fs.existsSync(absoluteTarget)) {
60
- log.error(`File not found: ${logger_1.fmt.cyan(absoluteTarget)}`);
61
- return { exitCode: cli_1.ExitCode.ERROR };
62
- }
63
- // Discover and read files using shared helper.
64
- const workspace = await (0, workspace_1.loadWorkspaceFiles)(root, config, log, { quiet: flags.quiet });
65
- if (workspace.discoveredPaths.length === 0) {
66
- return { exitCode: cli_1.ExitCode.ERROR };
67
- }
68
- // Analyze dependencies.
69
- const analyzer = new core_1.DependencyAnalyzer();
70
- analyzer.setFileContentsCache(workspace.absoluteFiles);
71
- const links = await analyzer.analyzeDependencies(workspace.discoveredPaths, workspace.host);
72
- // Compute degree stats.
73
- const stats = new Map();
74
- for (const file of workspace.discoveredPaths) {
75
- stats.set(file, { inDegree: 0, outDegree: 0 });
76
- }
77
- for (const link of links) {
78
- const src = stats.get(link.source);
79
- const tgt = stats.get(link.target);
80
- if (src)
81
- src.outDegree++;
82
- if (tgt)
83
- tgt.inDegree++;
84
- }
85
- // Compute impact summary.
86
- const normalizedTarget = path.resolve(absoluteTarget);
87
- const targetClass = (0, core_1.classifyFile)(normalizedTarget, root);
88
- if (targetClass === 'third_party') {
89
- const summary = {
90
- file: rel(normalizedTarget, root),
91
- dependents_count: 0,
92
- top_dependents: [],
93
- generated_at: new Date().toISOString(),
94
- };
95
- return outputSummary(summary, flags, log);
96
- }
97
- const dependentAbs = dedupe(links
98
- .filter((l) => l.target && path.resolve(l.target) === normalizedTarget)
99
- .map((l) => l.source)
100
- .filter(Boolean)
101
- .filter((s) => s !== normalizedTarget)
102
- .filter((s) => (0, core_1.classifyFile)(s, root) !== 'third_party'));
103
- const appOrTestDependents = dependentAbs.filter((s) => {
104
- const c = (0, core_1.classifyFile)(s, root);
105
- return c === 'app' || c === 'test';
106
- });
107
- const dependentsToUse = appOrTestDependents.length > 0 ? appOrTestDependents : dependentAbs;
108
- const dependentsWithCounts = dependentsToUse
109
- .map((dep) => ({
110
- abs: dep,
111
- dependent_count: stats.get(dep)?.inDegree ?? 0,
112
- }))
113
- .sort((a, b) => b.dependent_count - a.dependent_count || a.abs.localeCompare(b.abs));
114
- const dependentsCount = dependentsWithCounts.length;
115
- const topDependents = dependentsWithCounts.slice(0, 5).map((d) => ({
116
- file: rel(d.abs, root),
117
- dependent_count: d.dependent_count,
118
- }));
119
- const summary = {
120
- file: rel(normalizedTarget, root),
121
- dependents_count: dependentsCount,
122
- top_dependents: topDependents,
123
- generated_at: new Date().toISOString(),
124
- };
125
- return outputSummary(summary, flags, log);
126
- }
127
- // ── Helpers ──────────────────────────────────────────────────
128
- function outputSummary(summary, flags, log) {
129
- if (flags.json) {
130
- console.log(JSON.stringify(summary, null, 2));
131
- }
132
- else {
133
- log.info(`File: ${logger_1.fmt.cyan(summary.file)}`);
134
- log.info(`Dependents: ${logger_1.fmt.bold(String(summary.dependents_count))}`);
135
- if (summary.top_dependents.length > 0) {
136
- log.info('Top dependents:');
137
- for (const dep of summary.top_dependents) {
138
- log.info(` - ${dep.file} (${dep.dependent_count} dependents)`);
139
- }
140
- }
141
- }
142
- return { exitCode: cli_1.ExitCode.OK };
143
- }
144
- function rel(absPath, workspaceRoot) {
145
- const normalized = absPath.replace(/\\/g, '/');
146
- const normalizedRoot = workspaceRoot.replace(/\\/g, '/').replace(/\/$/, '');
147
- if (normalized.startsWith(normalizedRoot)) {
148
- return normalized.substring(normalizedRoot.length).replace(/^\//, '');
149
- }
150
- return path.basename(absPath);
151
- }
152
- function dedupe(items) {
153
- const seen = new Set();
154
- return items.filter((item) => {
155
- const key = String(item);
156
- if (seen.has(key))
157
- return false;
158
- seen.add(key);
159
- return true;
160
- });
161
- }
162
- //# sourceMappingURL=impact.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"impact.js","sourceRoot":"","sources":["../../src/commands/impact.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,8BA0FC;AAjHD,uCAAyB;AACzB,2CAA6B;AAC7B,2CAG0B;AAE1B,gCAAkC;AAElC,sCAAgC;AAChC,4CAAkD;AAWlD,gEAAgE;AAEzD,KAAK,UAAU,SAAS,CAAC,GAAmB;IACjD,MAAM,EAAE,IAAI,EAAE,KAAK,EAA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AAO,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC/C,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC5E,IAAI,UAAU,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC;QAC1C,OAAO,UAAU,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,MAAM,CAAI,KAAU;IAC3B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC3B,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC;QAChC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * `aspectcode init` — create an `aspectcode.json` config file.
3
- */
4
- import type { CommandContext, CommandResult } from '../cli';
5
- import { runWatch } from './watch';
6
- interface InitDeps {
7
- runWatchFn?: typeof runWatch;
8
- }
9
- export declare function runInit(ctx: CommandContext, deps?: InitDeps): Promise<CommandResult>;
10
- export {};
11
- //# sourceMappingURL=init.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,OAAO,KAAK,EAAY,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAItE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,UAAU,QAAQ;IAChB,UAAU,CAAC,EAAE,OAAO,QAAQ,CAAC;CAC9B;AAED,wBAAsB,OAAO,CAC3B,GAAG,EAAE,cAAc,EACnB,IAAI,GAAE,QAAa,GAClB,OAAO,CAAC,aAAa,CAAC,CAmCxB"}