ai-first-cli 1.2.3 → 1.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 (470) hide show
  1. package/CHANGELOG.md +292 -6
  2. package/README.md +24 -4
  3. package/dist/analyzers/symbols.d.ts.map +1 -1
  4. package/dist/analyzers/symbols.js +9 -7
  5. package/dist/analyzers/symbols.js.map +1 -1
  6. package/dist/analyzers/techStack.d.ts.map +1 -1
  7. package/dist/analyzers/techStack.js +198 -3
  8. package/dist/analyzers/techStack.js.map +1 -1
  9. package/dist/commands/ai-first.d.ts.map +1 -1
  10. package/dist/commands/ai-first.js +14 -13
  11. package/dist/commands/ai-first.js.map +1 -1
  12. package/dist/core/analysis/architectureDetector.d.ts +37 -0
  13. package/dist/core/analysis/architectureDetector.d.ts.map +1 -0
  14. package/dist/core/analysis/architectureDetector.js +316 -0
  15. package/dist/core/analysis/architectureDetector.js.map +1 -0
  16. package/dist/core/analysis/callGraphBuilder.d.ts +37 -0
  17. package/dist/core/analysis/callGraphBuilder.d.ts.map +1 -0
  18. package/dist/core/analysis/callGraphBuilder.js +101 -0
  19. package/dist/core/analysis/callGraphBuilder.js.map +1 -0
  20. package/dist/core/analysis/dependencyAnalyzer.d.ts +45 -0
  21. package/dist/core/analysis/dependencyAnalyzer.d.ts.map +1 -0
  22. package/dist/core/analysis/dependencyAnalyzer.js +98 -0
  23. package/dist/core/analysis/dependencyAnalyzer.js.map +1 -0
  24. package/dist/core/analysis/index.d.ts +5 -0
  25. package/dist/core/analysis/index.d.ts.map +1 -0
  26. package/dist/core/analysis/index.js +5 -0
  27. package/dist/core/analysis/index.js.map +1 -0
  28. package/dist/core/analysis/inheritanceAnalyzer.d.ts +35 -0
  29. package/dist/core/analysis/inheritanceAnalyzer.d.ts.map +1 -0
  30. package/dist/core/analysis/inheritanceAnalyzer.js +115 -0
  31. package/dist/core/analysis/inheritanceAnalyzer.js.map +1 -0
  32. package/dist/core/ccp.d.ts.map +1 -1
  33. package/dist/core/ccp.js +3 -2
  34. package/dist/core/ccp.js.map +1 -1
  35. package/dist/core/generation/aiContextGenerator.d.ts +71 -0
  36. package/dist/core/generation/aiContextGenerator.d.ts.map +1 -0
  37. package/dist/core/generation/aiContextGenerator.js +217 -0
  38. package/dist/core/generation/aiContextGenerator.js.map +1 -0
  39. package/dist/core/generation/architectureGenerator.d.ts +17 -0
  40. package/dist/core/generation/architectureGenerator.d.ts.map +1 -0
  41. package/dist/core/generation/architectureGenerator.js +160 -0
  42. package/dist/core/generation/architectureGenerator.js.map +1 -0
  43. package/dist/core/generation/flowGenerator.d.ts +52 -0
  44. package/dist/core/generation/flowGenerator.d.ts.map +1 -0
  45. package/dist/core/generation/flowGenerator.js +164 -0
  46. package/dist/core/generation/flowGenerator.js.map +1 -0
  47. package/dist/core/generation/index.d.ts +4 -0
  48. package/dist/core/generation/index.d.ts.map +1 -0
  49. package/dist/core/generation/index.js +4 -0
  50. package/dist/core/generation/index.js.map +1 -0
  51. package/dist/core/hierarchyGenerator.d.ts.map +1 -1
  52. package/dist/core/hierarchyGenerator.js +3 -2
  53. package/dist/core/hierarchyGenerator.js.map +1 -1
  54. package/dist/core/parsers/index.d.ts +20 -0
  55. package/dist/core/parsers/index.d.ts.map +1 -0
  56. package/dist/core/parsers/index.js +76 -0
  57. package/dist/core/parsers/index.js.map +1 -0
  58. package/dist/core/parsers/pythonParser.d.ts +37 -0
  59. package/dist/core/parsers/pythonParser.d.ts.map +1 -0
  60. package/dist/core/parsers/pythonParser.js +229 -0
  61. package/dist/core/parsers/pythonParser.js.map +1 -0
  62. package/dist/core/parsers/typescriptParser.d.ts +54 -0
  63. package/dist/core/parsers/typescriptParser.d.ts.map +1 -0
  64. package/dist/core/parsers/typescriptParser.js +291 -0
  65. package/dist/core/parsers/typescriptParser.js.map +1 -0
  66. package/dist/core/pipeline.d.ts +42 -0
  67. package/dist/core/pipeline.d.ts.map +1 -0
  68. package/dist/core/pipeline.js +172 -0
  69. package/dist/core/pipeline.js.map +1 -0
  70. package/dist/core/semanticContexts.js +1 -1
  71. package/dist/core/semanticContexts.js.map +1 -1
  72. package/dist/utils/constants.d.ts +46 -0
  73. package/dist/utils/constants.d.ts.map +1 -0
  74. package/dist/utils/constants.js +67 -0
  75. package/dist/utils/constants.js.map +1 -0
  76. package/package.json +1 -1
  77. package/run-all-tests.sh +184 -0
  78. package/src/analyzers/symbols.ts +12 -7
  79. package/src/analyzers/techStack.ts +203 -3
  80. package/src/commands/ai-first.ts +14 -13
  81. package/src/core/analysis/architectureDetector.ts +487 -0
  82. package/src/core/analysis/callGraphBuilder.ts +158 -0
  83. package/src/core/analysis/dependencyAnalyzer.ts +167 -0
  84. package/src/core/analysis/index.ts +28 -0
  85. package/src/core/analysis/inheritanceAnalyzer.ts +169 -0
  86. package/src/core/ccp.ts +3 -2
  87. package/src/core/generation/aiContextGenerator.ts +335 -0
  88. package/src/core/generation/architectureGenerator.ts +200 -0
  89. package/src/core/generation/flowGenerator.ts +238 -0
  90. package/src/core/generation/index.ts +16 -0
  91. package/src/core/hierarchyGenerator.ts +3 -2
  92. package/src/core/parsers/index.ts +99 -0
  93. package/src/core/parsers/pythonParser.ts +302 -0
  94. package/src/core/parsers/typescriptParser.ts +445 -0
  95. package/src/core/pipeline.ts +241 -0
  96. package/src/core/semanticContexts.ts +1 -1
  97. package/src/utils/constants.ts +78 -0
  98. package/tests/analysis.test.ts +283 -0
  99. package/tests/architectureDetector.test.ts +137 -0
  100. package/tests/generation.test.ts +216 -0
  101. package/tests/parserRegistry.test.ts +139 -0
  102. package/tests/pipeline.integration.test.ts +245 -0
  103. package/tests/pythonParser.test.ts +210 -0
  104. package/tests/typescriptParser.test.ts +197 -0
  105. package/.ai-dev/index.db +0 -0
  106. package/ANALISIS_COMPLETO.md +0 -424
  107. package/ANALISIS_MEJORAS.md +0 -327
  108. package/BUGS.md +0 -455
  109. package/PLAN_MEJORAS.md +0 -216
  110. package/STATUS_ADAPTADORES +0 -126
  111. package/TEST_RESULTS.md +0 -198
  112. package/TEST_RESULTS_COMPARATIVE.md +0 -159
  113. package/TEST_RESULTS_COMPLETE.md +0 -127
  114. package/TEST_RESULTS_COMPREHENSIVE.md +0 -208
  115. package/TEST_RESULTS_PHASE1.md +0 -420
  116. package/ai/dependencies.json +0 -15
  117. package/ai/graph/knowledge-graph.json +0 -12
  118. package/ai-context/ai_context.md +0 -130
  119. package/ai-context/ai_rules.md +0 -54
  120. package/ai-context/architecture.md +0 -136
  121. package/ai-context/cache.json +0 -2349
  122. package/ai-context/ccp/jira-123/context.json +0 -7
  123. package/ai-context/context/features/commands.json +0 -18
  124. package/ai-context/context/features/src.json +0 -61
  125. package/ai-context/context/features/test-projects.json +0 -69
  126. package/ai-context/context/flows/account.json +0 -9
  127. package/ai-context/context/flows/ai-first.json +0 -9
  128. package/ai-context/context/flows/api.json +0 -9
  129. package/ai-context/context/flows/auth.json +0 -13
  130. package/ai-context/context/flows/category.json +0 -12
  131. package/ai-context/context/flows/comment.json +0 -16
  132. package/ai-context/context/flows/dashboard.json +0 -9
  133. package/ai-context/context/flows/doctor.json +0 -9
  134. package/ai-context/context/flows/explore.json +0 -9
  135. package/ai-context/context/flows/login.json +0 -9
  136. package/ai-context/context/flows/opportunity.json +0 -9
  137. package/ai-context/context/flows/post.json +0 -18
  138. package/ai-context/context/flows/routes.json +0 -19
  139. package/ai-context/context/flows/user.json +0 -20
  140. package/ai-context/context/flows/users.json +0 -9
  141. package/ai-context/context/flows/views.json +0 -14
  142. package/ai-context/context/repo.json +0 -56
  143. package/ai-context/context/utils.json +0 -7
  144. package/ai-context/conventions.md +0 -53
  145. package/ai-context/dependencies.json +0 -2978
  146. package/ai-context/embeddings.json +0 -23828
  147. package/ai-context/entrypoints.md +0 -42
  148. package/ai-context/files.json +0 -2944
  149. package/ai-context/git/commit-activity.json +0 -8646
  150. package/ai-context/git/recent-features.json +0 -1
  151. package/ai-context/git/recent-files.json +0 -52
  152. package/ai-context/git/recent-flows.json +0 -1
  153. package/ai-context/graph/knowledge-graph.json +0 -44129
  154. package/ai-context/graph/module-graph.json +0 -866
  155. package/ai-context/graph/symbol-graph.json +0 -200622
  156. package/ai-context/graph/symbol-references.json +0 -6778
  157. package/ai-context/hierarchy.json +0 -20
  158. package/ai-context/index-state.json +0 -4487
  159. package/ai-context/index.db +0 -0
  160. package/ai-context/modules.json +0 -933
  161. package/ai-context/project.json +0 -30
  162. package/ai-context/repo_map.json +0 -9116
  163. package/ai-context/repo_map.md +0 -2061
  164. package/ai-context/schema.json +0 -5
  165. package/ai-context/summary.md +0 -47
  166. package/ai-context/symbols.json +0 -65351
  167. package/ai-context/tech_stack.md +0 -47
  168. package/ai-context/tools.json +0 -10
  169. package/test-projects/django-app/.ai-dev/index.db +0 -0
  170. package/test-projects/django-app/ai-context/ai_context.md +0 -92
  171. package/test-projects/django-app/ai-context/ai_rules.md +0 -47
  172. package/test-projects/django-app/ai-context/architecture.md +0 -57
  173. package/test-projects/django-app/ai-context/cache.json +0 -169
  174. package/test-projects/django-app/ai-context/context/flows/views.json +0 -10
  175. package/test-projects/django-app/ai-context/conventions.md +0 -51
  176. package/test-projects/django-app/ai-context/dependencies.json +0 -312
  177. package/test-projects/django-app/ai-context/entrypoints.md +0 -4
  178. package/test-projects/django-app/ai-context/files.json +0 -209
  179. package/test-projects/django-app/ai-context/graph/knowledge-graph.json +0 -36
  180. package/test-projects/django-app/ai-context/graph/module-graph.json +0 -145
  181. package/test-projects/django-app/ai-context/graph/symbol-graph.json +0 -1488
  182. package/test-projects/django-app/ai-context/graph/symbol-references.json +0 -1
  183. package/test-projects/django-app/ai-context/index-state.json +0 -294
  184. package/test-projects/django-app/ai-context/index.db +0 -0
  185. package/test-projects/django-app/ai-context/modules.json +0 -35
  186. package/test-projects/django-app/ai-context/project.json +0 -11
  187. package/test-projects/django-app/ai-context/repo_map.json +0 -412
  188. package/test-projects/django-app/ai-context/repo_map.md +0 -105
  189. package/test-projects/django-app/ai-context/schema.json +0 -5
  190. package/test-projects/django-app/ai-context/summary.md +0 -15
  191. package/test-projects/django-app/ai-context/symbols.json +0 -1
  192. package/test-projects/django-app/ai-context/tech_stack.md +0 -32
  193. package/test-projects/django-app/ai-context/tools.json +0 -10
  194. package/test-projects/express-api/ai-context/ai_context.md +0 -112
  195. package/test-projects/express-api/ai-context/ai_rules.md +0 -50
  196. package/test-projects/express-api/ai-context/architecture.md +0 -62
  197. package/test-projects/express-api/ai-context/context/features/controllers.json +0 -13
  198. package/test-projects/express-api/ai-context/context/features/services.json +0 -13
  199. package/test-projects/express-api/ai-context/context/flows/auth.json +0 -12
  200. package/test-projects/express-api/ai-context/context/flows/user.json +0 -13
  201. package/test-projects/express-api/ai-context/conventions.md +0 -51
  202. package/test-projects/express-api/ai-context/dependencies.json +0 -54
  203. package/test-projects/express-api/ai-context/entrypoints.md +0 -17
  204. package/test-projects/express-api/ai-context/modules.json +0 -30
  205. package/test-projects/express-api/ai-context/project.json +0 -15
  206. package/test-projects/express-api/ai-context/repo_map.json +0 -100
  207. package/test-projects/express-api/ai-context/repo_map.md +0 -36
  208. package/test-projects/express-api/ai-context/schema.json +0 -5
  209. package/test-projects/express-api/ai-context/summary.md +0 -14
  210. package/test-projects/express-api/ai-context/symbols.json +0 -7
  211. package/test-projects/express-api/ai-context/tech_stack.md +0 -38
  212. package/test-projects/express-api/ai-context/tools.json +0 -10
  213. package/test-projects/fastapi-app/.ai-dev/index.db +0 -0
  214. package/test-projects/fastapi-app/ai-context/ai_context.md +0 -89
  215. package/test-projects/fastapi-app/ai-context/ai_rules.md +0 -47
  216. package/test-projects/fastapi-app/ai-context/architecture.md +0 -39
  217. package/test-projects/fastapi-app/ai-context/cache.json +0 -125
  218. package/test-projects/fastapi-app/ai-context/conventions.md +0 -51
  219. package/test-projects/fastapi-app/ai-context/dependencies.json +0 -244
  220. package/test-projects/fastapi-app/ai-context/entrypoints.md +0 -4
  221. package/test-projects/fastapi-app/ai-context/files.json +0 -154
  222. package/test-projects/fastapi-app/ai-context/graph/knowledge-graph.json +0 -15
  223. package/test-projects/fastapi-app/ai-context/graph/module-graph.json +0 -78
  224. package/test-projects/fastapi-app/ai-context/graph/symbol-graph.json +0 -1724
  225. package/test-projects/fastapi-app/ai-context/graph/symbol-references.json +0 -51
  226. package/test-projects/fastapi-app/ai-context/index-state.json +0 -217
  227. package/test-projects/fastapi-app/ai-context/index.db +0 -0
  228. package/test-projects/fastapi-app/ai-context/modules.json +0 -16
  229. package/test-projects/fastapi-app/ai-context/project.json +0 -9
  230. package/test-projects/fastapi-app/ai-context/repo_map.json +0 -298
  231. package/test-projects/fastapi-app/ai-context/repo_map.md +0 -74
  232. package/test-projects/fastapi-app/ai-context/schema.json +0 -5
  233. package/test-projects/fastapi-app/ai-context/summary.md +0 -12
  234. package/test-projects/fastapi-app/ai-context/symbols.json +0 -1
  235. package/test-projects/fastapi-app/ai-context/tech_stack.md +0 -32
  236. package/test-projects/fastapi-app/ai-context/tools.json +0 -10
  237. package/test-projects/flask-app/.ai-dev/index.db +0 -0
  238. package/test-projects/flask-app/ai-context/ai_context.md +0 -94
  239. package/test-projects/flask-app/ai-context/ai_rules.md +0 -47
  240. package/test-projects/flask-app/ai-context/architecture.md +0 -49
  241. package/test-projects/flask-app/ai-context/cache.json +0 -157
  242. package/test-projects/flask-app/ai-context/context/features/app.json +0 -25
  243. package/test-projects/flask-app/ai-context/context/flows/routes.json +0 -14
  244. package/test-projects/flask-app/ai-context/conventions.md +0 -51
  245. package/test-projects/flask-app/ai-context/dependencies.json +0 -298
  246. package/test-projects/flask-app/ai-context/entrypoints.md +0 -4
  247. package/test-projects/flask-app/ai-context/files.json +0 -194
  248. package/test-projects/flask-app/ai-context/graph/knowledge-graph.json +0 -60
  249. package/test-projects/flask-app/ai-context/graph/module-graph.json +0 -95
  250. package/test-projects/flask-app/ai-context/graph/symbol-graph.json +0 -1448
  251. package/test-projects/flask-app/ai-context/graph/symbol-references.json +0 -45
  252. package/test-projects/flask-app/ai-context/index-state.json +0 -273
  253. package/test-projects/flask-app/ai-context/index.db +0 -0
  254. package/test-projects/flask-app/ai-context/modules.json +0 -21
  255. package/test-projects/flask-app/ai-context/project.json +0 -13
  256. package/test-projects/flask-app/ai-context/repo_map.json +0 -400
  257. package/test-projects/flask-app/ai-context/repo_map.md +0 -98
  258. package/test-projects/flask-app/ai-context/schema.json +0 -5
  259. package/test-projects/flask-app/ai-context/summary.md +0 -13
  260. package/test-projects/flask-app/ai-context/symbols.json +0 -1
  261. package/test-projects/flask-app/ai-context/tech_stack.md +0 -32
  262. package/test-projects/flask-app/ai-context/tools.json +0 -10
  263. package/test-projects/laravel-app/.ai-dev/index.db +0 -0
  264. package/test-projects/laravel-app/ai-context/ai_context.md +0 -97
  265. package/test-projects/laravel-app/ai-context/ai_rules.md +0 -47
  266. package/test-projects/laravel-app/ai-context/architecture.md +0 -60
  267. package/test-projects/laravel-app/ai-context/cache.json +0 -161
  268. package/test-projects/laravel-app/ai-context/context/features/app.json +0 -21
  269. package/test-projects/laravel-app/ai-context/context/flows/.json +0 -9
  270. package/test-projects/laravel-app/ai-context/context/flows/category.json +0 -12
  271. package/test-projects/laravel-app/ai-context/context/flows/comment.json +0 -12
  272. package/test-projects/laravel-app/ai-context/context/flows/post.json +0 -12
  273. package/test-projects/laravel-app/ai-context/context/flows/unnamed.json +0 -9
  274. package/test-projects/laravel-app/ai-context/conventions.md +0 -51
  275. package/test-projects/laravel-app/ai-context/dependencies.json +0 -6
  276. package/test-projects/laravel-app/ai-context/entrypoints.md +0 -4
  277. package/test-projects/laravel-app/ai-context/files.json +0 -199
  278. package/test-projects/laravel-app/ai-context/graph/knowledge-graph.json +0 -98
  279. package/test-projects/laravel-app/ai-context/graph/module-graph.json +0 -30
  280. package/test-projects/laravel-app/ai-context/graph/symbol-graph.json +0 -5
  281. package/test-projects/laravel-app/ai-context/graph/symbol-references.json +0 -1
  282. package/test-projects/laravel-app/ai-context/index-state.json +0 -280
  283. package/test-projects/laravel-app/ai-context/index.db +0 -0
  284. package/test-projects/laravel-app/ai-context/modules.json +0 -29
  285. package/test-projects/laravel-app/ai-context/project.json +0 -17
  286. package/test-projects/laravel-app/ai-context/repo_map.json +0 -419
  287. package/test-projects/laravel-app/ai-context/repo_map.md +0 -106
  288. package/test-projects/laravel-app/ai-context/schema.json +0 -5
  289. package/test-projects/laravel-app/ai-context/summary.md +0 -15
  290. package/test-projects/laravel-app/ai-context/symbols.json +0 -1
  291. package/test-projects/laravel-app/ai-context/tech_stack.md +0 -34
  292. package/test-projects/laravel-app/ai-context/tools.json +0 -10
  293. package/test-projects/nestjs-backend/.ai-dev/index.db +0 -0
  294. package/test-projects/nestjs-backend/ai-context/ai_context.md +0 -111
  295. package/test-projects/nestjs-backend/ai-context/ai_rules.md +0 -52
  296. package/test-projects/nestjs-backend/ai-context/architecture.md +0 -49
  297. package/test-projects/nestjs-backend/ai-context/cache.json +0 -169
  298. package/test-projects/nestjs-backend/ai-context/context/features/src.json +0 -23
  299. package/test-projects/nestjs-backend/ai-context/context/flows/auth.controller.json +0 -14
  300. package/test-projects/nestjs-backend/ai-context/context/flows/auth.json +0 -10
  301. package/test-projects/nestjs-backend/ai-context/context/flows/users..json +0 -10
  302. package/test-projects/nestjs-backend/ai-context/context/flows/users.controller.json +0 -14
  303. package/test-projects/nestjs-backend/ai-context/context/flows/users.json +0 -10
  304. package/test-projects/nestjs-backend/ai-context/conventions.md +0 -52
  305. package/test-projects/nestjs-backend/ai-context/dependencies.json +0 -152
  306. package/test-projects/nestjs-backend/ai-context/entrypoints.md +0 -18
  307. package/test-projects/nestjs-backend/ai-context/files.json +0 -209
  308. package/test-projects/nestjs-backend/ai-context/graph/knowledge-graph.json +0 -132
  309. package/test-projects/nestjs-backend/ai-context/graph/module-graph.json +0 -29
  310. package/test-projects/nestjs-backend/ai-context/graph/symbol-graph.json +0 -304
  311. package/test-projects/nestjs-backend/ai-context/graph/symbol-references.json +0 -5
  312. package/test-projects/nestjs-backend/ai-context/index-state.json +0 -294
  313. package/test-projects/nestjs-backend/ai-context/index.db +0 -0
  314. package/test-projects/nestjs-backend/ai-context/modules.json +0 -19
  315. package/test-projects/nestjs-backend/ai-context/project.json +0 -18
  316. package/test-projects/nestjs-backend/ai-context/repo_map.json +0 -427
  317. package/test-projects/nestjs-backend/ai-context/repo_map.md +0 -104
  318. package/test-projects/nestjs-backend/ai-context/schema.json +0 -5
  319. package/test-projects/nestjs-backend/ai-context/summary.md +0 -13
  320. package/test-projects/nestjs-backend/ai-context/symbols.json +0 -1
  321. package/test-projects/nestjs-backend/ai-context/tech_stack.md +0 -38
  322. package/test-projects/nestjs-backend/ai-context/tools.json +0 -10
  323. package/test-projects/python-cli/.ai-dev/index.db +0 -0
  324. package/test-projects/python-cli/ai-context/ai_context.md +0 -95
  325. package/test-projects/python-cli/ai-context/ai_rules.md +0 -47
  326. package/test-projects/python-cli/ai-context/architecture.md +0 -55
  327. package/test-projects/python-cli/ai-context/cache.json +0 -149
  328. package/test-projects/python-cli/ai-context/context/features/cli.json +0 -16
  329. package/test-projects/python-cli/ai-context/context/flows/list_.json +0 -9
  330. package/test-projects/python-cli/ai-context/context/flows/remove_.json +0 -9
  331. package/test-projects/python-cli/ai-context/conventions.md +0 -51
  332. package/test-projects/python-cli/ai-context/dependencies.json +0 -66
  333. package/test-projects/python-cli/ai-context/entrypoints.md +0 -4
  334. package/test-projects/python-cli/ai-context/files.json +0 -184
  335. package/test-projects/python-cli/ai-context/graph/knowledge-graph.json +0 -83
  336. package/test-projects/python-cli/ai-context/graph/module-graph.json +0 -31
  337. package/test-projects/python-cli/ai-context/graph/symbol-graph.json +0 -358
  338. package/test-projects/python-cli/ai-context/graph/symbol-references.json +0 -11
  339. package/test-projects/python-cli/ai-context/index-state.json +0 -259
  340. package/test-projects/python-cli/ai-context/index.db +0 -0
  341. package/test-projects/python-cli/ai-context/modules.json +0 -21
  342. package/test-projects/python-cli/ai-context/project.json +0 -15
  343. package/test-projects/python-cli/ai-context/repo_map.json +0 -367
  344. package/test-projects/python-cli/ai-context/repo_map.md +0 -93
  345. package/test-projects/python-cli/ai-context/schema.json +0 -5
  346. package/test-projects/python-cli/ai-context/summary.md +0 -14
  347. package/test-projects/python-cli/ai-context/symbols.json +0 -1
  348. package/test-projects/python-cli/ai-context/tech_stack.md +0 -32
  349. package/test-projects/python-cli/ai-context/tools.json +0 -10
  350. package/test-projects/rails-app/.ai-dev/index.db +0 -0
  351. package/test-projects/rails-app/ai-context/ai_context.md +0 -94
  352. package/test-projects/rails-app/ai-context/ai_rules.md +0 -47
  353. package/test-projects/rails-app/ai-context/architecture.md +0 -49
  354. package/test-projects/rails-app/ai-context/cache.json +0 -193
  355. package/test-projects/rails-app/ai-context/context/features/app.json +0 -24
  356. package/test-projects/rails-app/ai-context/context/features/config.json +0 -13
  357. package/test-projects/rails-app/ai-context/context/flows/application.json +0 -9
  358. package/test-projects/rails-app/ai-context/context/flows/application_.json +0 -9
  359. package/test-projects/rails-app/ai-context/context/flows/comments.json +0 -11
  360. package/test-projects/rails-app/ai-context/context/flows/comments_.json +0 -11
  361. package/test-projects/rails-app/ai-context/context/flows/posts.json +0 -11
  362. package/test-projects/rails-app/ai-context/context/flows/posts_.json +0 -11
  363. package/test-projects/rails-app/ai-context/context/flows/routes.json +0 -9
  364. package/test-projects/rails-app/ai-context/context/flows/users.json +0 -11
  365. package/test-projects/rails-app/ai-context/context/flows/users_.json +0 -11
  366. package/test-projects/rails-app/ai-context/conventions.md +0 -51
  367. package/test-projects/rails-app/ai-context/dependencies.json +0 -6
  368. package/test-projects/rails-app/ai-context/entrypoints.md +0 -4
  369. package/test-projects/rails-app/ai-context/files.json +0 -239
  370. package/test-projects/rails-app/ai-context/graph/knowledge-graph.json +0 -130
  371. package/test-projects/rails-app/ai-context/graph/module-graph.json +0 -27
  372. package/test-projects/rails-app/ai-context/graph/symbol-graph.json +0 -5
  373. package/test-projects/rails-app/ai-context/graph/symbol-references.json +0 -1
  374. package/test-projects/rails-app/ai-context/index-state.json +0 -336
  375. package/test-projects/rails-app/ai-context/index.db +0 -0
  376. package/test-projects/rails-app/ai-context/modules.json +0 -26
  377. package/test-projects/rails-app/ai-context/project.json +0 -22
  378. package/test-projects/rails-app/ai-context/repo_map.json +0 -486
  379. package/test-projects/rails-app/ai-context/repo_map.md +0 -117
  380. package/test-projects/rails-app/ai-context/schema.json +0 -5
  381. package/test-projects/rails-app/ai-context/summary.md +0 -13
  382. package/test-projects/rails-app/ai-context/symbols.json +0 -1
  383. package/test-projects/rails-app/ai-context/tech_stack.md +0 -32
  384. package/test-projects/rails-app/ai-context/tools.json +0 -10
  385. package/test-projects/react-app/.ai-dev/index.db +0 -0
  386. package/test-projects/react-app/ai-context/ai_context.md +0 -96
  387. package/test-projects/react-app/ai-context/ai_rules.md +0 -49
  388. package/test-projects/react-app/ai-context/architecture.md +0 -39
  389. package/test-projects/react-app/ai-context/cache.json +0 -153
  390. package/test-projects/react-app/ai-context/context/features/src.json +0 -18
  391. package/test-projects/react-app/ai-context/context/flows/UsersPage.json +0 -14
  392. package/test-projects/react-app/ai-context/context/flows/dashboard.json +0 -9
  393. package/test-projects/react-app/ai-context/context/flows/login.json +0 -9
  394. package/test-projects/react-app/ai-context/context/flows/users.json +0 -9
  395. package/test-projects/react-app/ai-context/conventions.md +0 -52
  396. package/test-projects/react-app/ai-context/dependencies.json +0 -128
  397. package/test-projects/react-app/ai-context/entrypoints.md +0 -4
  398. package/test-projects/react-app/ai-context/files.json +0 -189
  399. package/test-projects/react-app/ai-context/graph/knowledge-graph.json +0 -112
  400. package/test-projects/react-app/ai-context/graph/module-graph.json +0 -31
  401. package/test-projects/react-app/ai-context/graph/symbol-graph.json +0 -868
  402. package/test-projects/react-app/ai-context/graph/symbol-references.json +0 -31
  403. package/test-projects/react-app/ai-context/index-state.json +0 -266
  404. package/test-projects/react-app/ai-context/index.db +0 -0
  405. package/test-projects/react-app/ai-context/modules.json +0 -17
  406. package/test-projects/react-app/ai-context/project.json +0 -16
  407. package/test-projects/react-app/ai-context/repo_map.json +0 -391
  408. package/test-projects/react-app/ai-context/repo_map.md +0 -94
  409. package/test-projects/react-app/ai-context/schema.json +0 -5
  410. package/test-projects/react-app/ai-context/summary.md +0 -13
  411. package/test-projects/react-app/ai-context/symbols.json +0 -1
  412. package/test-projects/react-app/ai-context/tech_stack.md +0 -39
  413. package/test-projects/react-app/ai-context/tools.json +0 -10
  414. package/test-projects/salesforce-cli/.ai-dev/index.db +0 -0
  415. package/test-projects/salesforce-cli/ai-context/ai_context.md +0 -89
  416. package/test-projects/salesforce-cli/ai-context/ai_rules.md +0 -47
  417. package/test-projects/salesforce-cli/ai-context/architecture.md +0 -39
  418. package/test-projects/salesforce-cli/ai-context/cache.json +0 -125
  419. package/test-projects/salesforce-cli/ai-context/context/features/force-app.json +0 -14
  420. package/test-projects/salesforce-cli/ai-context/context/flows/account.json +0 -9
  421. package/test-projects/salesforce-cli/ai-context/context/flows/opportunity.json +0 -9
  422. package/test-projects/salesforce-cli/ai-context/conventions.md +0 -51
  423. package/test-projects/salesforce-cli/ai-context/dependencies.json +0 -6
  424. package/test-projects/salesforce-cli/ai-context/entrypoints.md +0 -4
  425. package/test-projects/salesforce-cli/ai-context/files.json +0 -154
  426. package/test-projects/salesforce-cli/ai-context/graph/knowledge-graph.json +0 -64
  427. package/test-projects/salesforce-cli/ai-context/graph/module-graph.json +0 -13
  428. package/test-projects/salesforce-cli/ai-context/graph/symbol-graph.json +0 -148
  429. package/test-projects/salesforce-cli/ai-context/graph/symbol-references.json +0 -1
  430. package/test-projects/salesforce-cli/ai-context/index-state.json +0 -217
  431. package/test-projects/salesforce-cli/ai-context/index.db +0 -0
  432. package/test-projects/salesforce-cli/ai-context/modules.json +0 -12
  433. package/test-projects/salesforce-cli/ai-context/project.json +0 -14
  434. package/test-projects/salesforce-cli/ai-context/repo_map.json +0 -328
  435. package/test-projects/salesforce-cli/ai-context/repo_map.md +0 -80
  436. package/test-projects/salesforce-cli/ai-context/schema.json +0 -5
  437. package/test-projects/salesforce-cli/ai-context/summary.md +0 -13
  438. package/test-projects/salesforce-cli/ai-context/symbols.json +0 -1
  439. package/test-projects/salesforce-cli/ai-context/tech_stack.md +0 -31
  440. package/test-projects/salesforce-cli/ai-context/tools.json +0 -10
  441. package/test-projects/spring-boot-app/.ai-dev/index.db +0 -0
  442. package/test-projects/spring-boot-app/ai-context/ai_context.md +0 -91
  443. package/test-projects/spring-boot-app/ai-context/ai_rules.md +0 -48
  444. package/test-projects/spring-boot-app/ai-context/architecture.md +0 -39
  445. package/test-projects/spring-boot-app/ai-context/cache.json +0 -173
  446. package/test-projects/spring-boot-app/ai-context/context/features/src.json +0 -26
  447. package/test-projects/spring-boot-app/ai-context/context/flows/PostController.json +0 -19
  448. package/test-projects/spring-boot-app/ai-context/context/flows/UserController.json +0 -19
  449. package/test-projects/spring-boot-app/ai-context/context/flows/comment.json +0 -11
  450. package/test-projects/spring-boot-app/ai-context/context/flows/post.json +0 -14
  451. package/test-projects/spring-boot-app/ai-context/context/flows/user.json +0 -14
  452. package/test-projects/spring-boot-app/ai-context/conventions.md +0 -52
  453. package/test-projects/spring-boot-app/ai-context/dependencies.json +0 -326
  454. package/test-projects/spring-boot-app/ai-context/entrypoints.md +0 -4
  455. package/test-projects/spring-boot-app/ai-context/files.json +0 -214
  456. package/test-projects/spring-boot-app/ai-context/graph/knowledge-graph.json +0 -231
  457. package/test-projects/spring-boot-app/ai-context/graph/module-graph.json +0 -22
  458. package/test-projects/spring-boot-app/ai-context/graph/symbol-graph.json +0 -794
  459. package/test-projects/spring-boot-app/ai-context/graph/symbol-references.json +0 -70
  460. package/test-projects/spring-boot-app/ai-context/index-state.json +0 -301
  461. package/test-projects/spring-boot-app/ai-context/index.db +0 -0
  462. package/test-projects/spring-boot-app/ai-context/modules.json +0 -21
  463. package/test-projects/spring-boot-app/ai-context/project.json +0 -17
  464. package/test-projects/spring-boot-app/ai-context/repo_map.json +0 -461
  465. package/test-projects/spring-boot-app/ai-context/repo_map.md +0 -109
  466. package/test-projects/spring-boot-app/ai-context/schema.json +0 -5
  467. package/test-projects/spring-boot-app/ai-context/summary.md +0 -12
  468. package/test-projects/spring-boot-app/ai-context/symbols.json +0 -1
  469. package/test-projects/spring-boot-app/ai-context/tech_stack.md +0 -32
  470. package/test-projects/spring-boot-app/ai-context/tools.json +0 -10
@@ -1,208 +0,0 @@
1
- # ai-first-cli - PRUEBAS EXHAUSTIVAS COMPLETAS
2
- ## Fecha: 2026-03-17
3
- ## Proyectos: 5 | Comandos: 12 | Total pruebas: 60
4
-
5
- ---
6
-
7
- ## 📊 RESUMEN EJECUTIVO
8
-
9
- | Comando | express-api | nestjs-backend | python-cli | react-app | salesforce-cli | Estado |
10
- |---------|-------------|---------------|------------|-----------|----------------|--------|
11
- | **init** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
12
- | **map** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
13
- | **doctor** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
14
- | **index** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
15
- | **graph** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
16
- | **query** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
17
- | **context** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
18
- | **explore** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
19
- | **summarize** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
20
- | **update** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
21
- | **adapters** | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ 0 | ✅ FUNCIONA |
22
- | **git** | ❌ 1 | ❌ 1 | ❌ 1 | ❌ 1 | ❌ 1 | ⚠️ ESPERADO* |
23
-
24
- *git requiere repositorio git real (no test projects)
25
-
26
- ---
27
-
28
- ## 📋 DETALLE POR PROYECTO
29
-
30
- ### 1. express-api (JavaScript/Express)
31
-
32
- | Comando | Exit Code | Métricas |
33
- |---------|-----------|----------|
34
- | **init** | 0 | 2 features, 2 flows |
35
- | **map** | 0 | 49 symbols, 42 relationships |
36
- | **doctor** | 0 | 33 files, PARTIALLY READY |
37
- | **index** | 0 | index.db (33 files, 49 symbols) |
38
- | **graph** | 0 | 4 nodes, 9 edges |
39
- | **query** | 0 | Found: login |
40
- | **context** | 0 | login: Imports 1, Related 1 |
41
- | **explore** | 0 | 4 modules (controllers, middleware, models, services) |
42
- | **summarize** | 0 | 4 folders, 7 files |
43
- | **update** | 0 | 0 changed files |
44
- | **adapters** | 0 | 16 adapters available |
45
- | **git** | 1 | ❌ Not a git repo |
46
-
47
- **Archivos generados:**
48
- - ✅ ai/symbols.json (30,291 bytes) - JSON válido
49
- - ✅ ai/graph/knowledge-graph.json (1,809 bytes) - JSON válido
50
- - ✅ ai/graph/symbol-graph.json (23,692 bytes) - JSON válido
51
- - ✅ ai/index.db (45,056 bytes) - SQLite válido
52
- - ✅ ai/context/features/controllers.json - JSON válido
53
- - ✅ ai/context/flows/auth.json - JSON válido
54
-
55
- ---
56
-
57
- ### 2. nestjs-backend (TypeScript/NestJS)
58
-
59
- | Comando | Exit Code | Métricas |
60
- |---------|-----------|----------|
61
- | **init** | 0 | 1 feature, 2 flows |
62
- | **map** | 0 | 18 symbols, 13 relationships |
63
- | **doctor** | 0 | 36 files, PARTIALLY READY |
64
- | **index** | 0 | index.db (36 files, 18 symbols) |
65
- | **graph** | 0 | 3 nodes, 6 edges |
66
- | **query** | 0 | Found: AuthController |
67
- | **context** | 0 | AuthController: Exports 1 |
68
- | **explore** | 0 | 1 module (src) |
69
- | **summarize** | 0 | 1 folder, 10 files |
70
- | **update** | 0 | 0 changed files |
71
- | **adapters** | 0 | 16 adapters available |
72
- | **git** | 1 | ❌ Not a git repo |
73
-
74
- **Archivos generados:**
75
- - ✅ ai/symbols.json - JSON válido
76
- - ✅ ai/graph/knowledge-graph.json - JSON válido
77
- - ✅ ai/graph/symbol-graph.json - JSON válido
78
- - ✅ ai/index.db - SQLite válido
79
-
80
- ---
81
-
82
- ### 3. python-cli (Python)
83
-
84
- | Comando | Exit Code | Métricas |
85
- |---------|-----------|----------|
86
- | **init** | 0 | 1 feature, 3 flows |
87
- | **map** | 0 | 14 symbols, 21 relationships |
88
- | **doctor** | 0 | 34 files, PARTIALLY READY |
89
- | **index** | 0 | index.db (34 files, 14 symbols) |
90
- | **graph** | 0 | 4 nodes, 6 edges |
91
- | **query** | 0 | Found: main |
92
- | **context** | 0 | main: Exports 1 |
93
- | **explore** | 0 | 2 modules (cli, models) |
94
- | **summarize** | 0 | 2 folders, 9 files |
95
- | **update** | 0 | 0 changed files |
96
- | **adapters** | 0 | 16 adapters available |
97
- | **git** | 1 | ❌ Not a git repo |
98
-
99
- ---
100
-
101
- ### 4. react-app (React/TypeScript)
102
-
103
- | Comando | Exit Code | Métricas |
104
- |---------|-----------|----------|
105
- | **init** | 0 | 1 feature, 3 flows |
106
- | **map** | 0 | 40 symbols, 50 relationships |
107
- | **doctor** | 0 | 34 files, PARTIALLY READY |
108
- | **index** | 0 | index.db (34 files, 40 symbols) |
109
- | **graph** | 0 | 4 nodes, 6 edges |
110
- | **query** | 0 | Found: App |
111
- | **context** | 0 | App: Called by 1, Imports 8, Related 6 |
112
- | **explore** | 0 | 1 module (src) |
113
- | **summarize** | 0 | 1 folder, 8 files |
114
- | **update** | 0 | 0 changed files |
115
- | **adapters** | 0 | 16 adapters available |
116
- | **git** | 1 | ❌ Not a git repo |
117
-
118
- ---
119
-
120
- ### 5. salesforce-cli (Apex/Salesforce)
121
-
122
- | Comando | Exit Code | Métricas |
123
- |---------|-----------|----------|
124
- | **init** | 0 | 1 feature, 2 flows |
125
- | **map** | 0 | 7 symbols, 7 relationships |
126
- | **doctor** | 0 | 28 files, PARTIALLY READY |
127
- | **index** | 0 | index.db (28 files, 2 symbols) |
128
- | **graph** | 0 | 3 nodes, 4 edges |
129
- | **query** | 0 | Found: AccountController |
130
- | **context** | 0 | AccountController: Exports 1 |
131
- | **explore** | 0 | 1 module (force-app) |
132
- | **summarize** | 0 | 1 folder, 0 files |
133
- | **update** | 0 | 0 changed files |
134
- | **adapters** | 0 | 16 adapters available |
135
- | **git** | 1 | ❌ Not a git repo |
136
-
137
- ---
138
-
139
- ## 📈 MÉTRICAS CONSOLIDADAS
140
-
141
- | Métrica | express-api | nestjs-backend | python-cli | react-app | salesforce-cli |
142
- |---------|-------------|----------------|------------|-----------|----------------|
143
- | **Symbols** | 49 | 18 | 14 | 40 | 7 |
144
- | **Relationships** | 42 | 13 | 21 | 50 | 7 |
145
- | **Features** | 2 | 1 | 1 | 1 | 1 |
146
- | **Flows** | 2 | 2 | 3 | 3 | 2 |
147
- | **Modules** | 4 | 1 | 2 | 1 | 1 |
148
- | **Index DB Size** | 45KB | 45KB | 45KB | 45KB | 45KB |
149
-
150
- ---
151
-
152
- ## ✅ VERIFICACIÓN DE ARCHIVOS
153
-
154
- ### JSON Files - Validación
155
- | Archivo | express-api | nestjs-backend | python-cli | react-app | salesforce-cli |
156
- |---------|--------------|----------------|------------|-----------|----------------|
157
- | symbols.json | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido |
158
- | knowledge-graph.json | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido |
159
- | symbol-graph.json | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido |
160
- | context/*.json | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido | ✅ Válido |
161
-
162
- ### SQLite Database
163
- | Archivo | express-api | nestjs-backend | python-cli | react-app | salesforce-cli |
164
- |---------|--------------|----------------|------------|-----------|----------------|
165
- | index.db | ✅ SQLite | ✅ SQLite | ✅ SQLite | ✅ SQLite | ✅ SQLite |
166
-
167
- ---
168
-
169
- ## 🎯 CONCLUSIONES
170
-
171
- ### Estado: ✅ 100% FUNCIONAL
172
-
173
- - **60 pruebas ejecutadas** (12 comandos × 5 proyectos)
174
- - **55 exitosas** (92%)
175
- - **5 fallidas** (8%) - git en proyectos sin repo git (esperado)
176
-
177
- ### Comandos funcionando: 12/12
178
-
179
- | # | Comando | Estado | Notas |
180
- |---|---------|--------|-------|
181
- | 1 | init | ✅ | 100% proyectos |
182
- | 2 | map | ✅ | 100% proyectos |
183
- | 3 | doctor | ✅ | 100% proyectos |
184
- | 4 | index | ✅ | 100% proyectos |
185
- | 5 | graph | ✅ | 100% proyectos |
186
- | 6 | query | ✅ | 100% proyectos |
187
- | 7 | context | ✅ | 100% proyectos |
188
- | 8 | explore | ✅ | 100% proyectos |
189
- | 9 | summarize | ✅ | 100% proyectos |
190
- | 10 | update | ✅ | 100% proyectos |
191
- | 11 | adapters | ✅ | 100% proyectos |
192
- | 12 | git | ⚠️ | Esperado* |
193
-
194
- *git requiere repositorio git real
195
-
196
- ---
197
-
198
- ## 🔧 BUGS CORREGIDOS (Verificación)
199
-
200
- | Bug | Descripción | Estado Verificado |
201
- |-----|-------------|-------------------|
202
- | A | index genera index.db en path correcto | ✅ VERIFICADO |
203
- | B | graph funciona sin git | ✅ VERIFICADO |
204
- | C | query encuentra símbolos | ✅ VERIFICADO |
205
-
206
- ---
207
-
208
- *Documento generado: 2026-03-17*
@@ -1,420 +0,0 @@
1
- # 📊 RESULTADOS DETALLADOS - PHASE 1 (FINAL)
2
- ## Fecha: 2026-03-18
3
-
4
- ---
5
-
6
- ## 🔧 BUGS ARREGLADOS EN PHASE 1
7
-
8
- ### 1. Parser Ruby Agregado ✅
9
- **Problema:** rails-app tenía 0 símbolos porque no había parser para Ruby
10
- **Solución:** Se agregó función `parseRuby()` en `src/analyzers/symbols.ts`
11
- **Resultado:** rails-app ahora tiene **74 símbolos** y **74 relaciones**
12
-
13
- ### 2. Flow Names Sanitización ✅
14
- **Problema:** Flows con nombres malformados (`auth..json`, `add_.json`, `users_.json`)
15
- **Solución:** Se agregó función `sanitizeFileName()` en `src/core/semanticContexts.ts`
16
- **Resultado:** Todos los flows ahora tienen nombres válidos
17
-
18
- ### 3. Laravel Relationships ✅
19
- **Problema:** laravel-app tenía 0 relaciones
20
- **Solución:** PHP ya estaba incluido en análisis de relaciones, las relaciones ahora funcionan
21
- **Resultado:** laravel-app ahora tiene **3 relaciones** (antes 0)
22
-
23
- ---
24
-
25
- ## ⚠️ BUGS ENCONTRADOS EN PRUEBAS POSTERIORES
26
-
27
- ### 4. Update Command - Símbolos no se Actualizan ❌
28
- **Fecha:** 2026-03-18
29
- **Problema:** El comando `update` no extrae nuevos símbolos cuando se modifica un archivo
30
- **Prueba realizada:**
31
- 1. Se añadió una nueva función `healthCheck()` a `index.js`
32
- 2. Se ejecutó `ai-first update --no-git`
33
- 3. El output mostró:
34
- ```
35
- 📁 Changed files: 4
36
- modified: index.js
37
- 🔧 Updated:
38
- Symbols: 0 ← INCORRECTO
39
- Dependencies: 6
40
- ```
41
- 4. Se verificó en `symbols.json` - la función `healthCheck` NO aparece
42
-
43
- **Comportamiento esperado:** Symbols debería mostrar "1" y la función debería estar en symbols.json
44
- **Comportamiento real:** Symbols muestra "0" y el nuevo símbolo no se añade
45
- **Severidad:** 🔴 Alta - El update command no funciona correctamente para símbolos
46
-
47
- ---
48
-
49
- ## 📊 RESULTADOS ESPERADOS VS OBTENIDOS - FINAL
50
-
51
- | Proyecto | Símbolos (Esp) | Símbolos (Obt) | Relaciones (Esp) | Relaciones (Obt) | Estado |
52
- |----------|----------------|----------------|-----------------|-----------------|--------|
53
- | express-api | >0 | 49 | >0 | 42 | ✅ |
54
- | nestjs-backend | >0 | 18 | >0 | 13 | ✅ |
55
- | python-cli | >0 | 14 | >0 | 21 | ✅ |
56
- | react-app | >0 | 40 | >0 | 50 | ✅ |
57
- | salesforce-cli | >0 | 7 | >0 | 7 | ✅ |
58
- | django-app | >0 | 69 | >0 | 42 | ✅ |
59
- | laravel-app | >0 | 44 | >0 | 3 | ✅ |
60
- | fastapi-app | >0 | 60 | >0 | 109 | ✅ |
61
- | flask-app | >0 | 25 | >0 | 35 | ✅ |
62
- | rails-app | >0 | **74** | >0 | **74** | ✅ |
63
- | spring-boot-app | >0 | 32 | >0 | 52 | ✅ |
64
-
65
- ---
66
-
67
- ## 📈 MÉTRICAS POR PROYECTO (ACTUALIZADAS)
68
-
69
- | Proyecto | Archivos | Símbolos | Relaciones | Features | Flows |
70
- |----------|----------|----------|-----------|---------|-------|
71
- | express-api | 45 | 49 | 42 | 2 | 2 |
72
- | nestjs-backend | 25 | 18 | 13 | 1 | 2 |
73
- | python-cli | 20 | 14 | 21 | 1 | 3 |
74
- | react-app | 40 | 40 | 50 | 1 | 3 |
75
- | salesforce-cli | 25 | 7 | 7 | 1 | 2 |
76
- | django-app | 40 | 69 | 42 | 2 | 2 |
77
- | laravel-app | 37 | 44 | 3 | 1 | 4 |
78
- | fastapi-app | 29 | 60 | 109 | 1 | 3 |
79
- | flask-app | 30 | 25 | 35 | 1 | 1 |
80
- | rails-app | 13 | **74** | **74** | 2 | 5 |
81
- | spring-boot-app | 13 | 32 | 52 | 1 | 3 |
82
-
83
- ---
84
-
85
- ## ✅ CHECKLIST FINAL PHASE 1
86
-
87
- - [x] 6 nuevos test projects creados
88
- - [x] Parser Ruby implementado
89
- - [x] Flow sanitization implementada
90
- - [x] Todos los proyectos tienen ai/ generado
91
- - [x] Todos los comandos funcionan (exit code 0)
92
- - [x] Archivos JSON válidos
93
- - [x] SQLite databases creados
94
- - [x] Features y Flows detectados
95
- - [x] Símbolos > 0 en todos los proyectos
96
- - [x] Relaciones > 0 en todos los proyectos
97
- - [x] Flows con nombres válidos (sin `..json`, `_json`, etc.)
98
- - [x] Commit y push a GitHub
99
-
100
- ---
101
-
102
- ## 📁 COMMITS REALIZADOS
103
-
104
- 1. `e07730c` - Django test project
105
- 2. `b288e30` - Laravel test project
106
- 3. `0572f51` - FastAPI test project
107
- 4. `8f1d85d` - Flask test project
108
- 5. `a5562f1` - Rails + Spring Boot test projects
109
- 6. `HEAD` - Fixes: Ruby parser, flow sanitization, PHP relationships
110
-
111
- ---
112
-
113
- *Phase 1 Testing Infrastructure - COMPLETADO: 2026-03-18*
114
- *Commit final: Bugs fixed (Ruby parser, flow sanitization)*
115
- *Branch: feature/phase-1-testing-infrastructure*
116
-
117
- ---
118
-
119
- ## 📋 COMANDOS PROBADOS
120
-
121
- | # | Comando | Descripción |
122
- |---|---------|-------------|
123
- | 1 | `init` | Genera contexto inicial de AI |
124
- | 2 | `map` | Genera grafos de símbolos y módulos |
125
- | 3 | `index` | Genera índice SQLite |
126
- | 4 | `doctor` | Verifica salud del repositorio |
127
- | 5 | `graph` | Genera knowledge graph |
128
- | 6 | `summarize` | Genera resumen jerárquico |
129
- | 7 | `update` | Actualización incremental |
130
- | 8 | `explore` | Explora dependencias de módulos |
131
- | 9 | `query` | Consulta símbolos en BD |
132
- | 10 | `context` | Extrae contexto de símbolo |
133
- | 11 | `adapters` | Lista adapters disponibles |
134
- | 12 | `git` | Análisis de git (requiere repo git) |
135
-
136
- ---
137
-
138
- ## 📊 RESULTADOS ESPERADOS VS OBTENIDOS
139
-
140
- ### COMANDO: `init`
141
-
142
- | Proyecto | Esperado | Obtenido | Estado |
143
- |----------|----------|----------|--------|
144
- | express-api | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
145
- | nestjs-backend | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
146
- | python-cli | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
147
- | react-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
148
- | salesforce-cli | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
149
- | django-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
150
- | laravel-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
151
- | fastapi-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
152
- | flask-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
153
- | rails-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
154
- | spring-boot-app | Genera ai/ con 11+ archivos | ✅ 11 archivos | ✅ PASS |
155
-
156
- **Resultado:** 11/11 PASS ✅
157
-
158
- ---
159
-
160
- ### COMANDO: `map`
161
-
162
- | Proyecto | Esperado | Obtenido | Estado |
163
- |----------|----------|----------|--------|
164
- | express-api | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
165
- | nestjs-backend | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
166
- | python-cli | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
167
- | react-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
168
- | salesforce-cli | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
169
- | django-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
170
- | laravel-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
171
- | fastapi-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
172
- | flask-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
173
- | rails-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
174
- | spring-boot-app | graph/module-graph.json, symbol-graph.json | ✅ Ambos generados | ✅ PASS |
175
-
176
- **Resultado:** 11/11 PASS ✅
177
-
178
- ---
179
-
180
- ### COMANDO: `index`
181
-
182
- | Proyecto | Esperado | Obtenido | Estado |
183
- |----------|----------|----------|--------|
184
- | express-api | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
185
- | nestjs-backend | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
186
- | python-cli | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
187
- | react-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
188
- | salesforce-cli | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
189
- | django-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
190
- | laravel-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
191
- | fastapi-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
192
- | flask-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
193
- | rails-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
194
- | spring-boot-app | ai/index.db SQLite creado | ✅ 45KB | ✅ PASS |
195
-
196
- **Resultado:** 11/11 PASS ✅
197
-
198
- ---
199
-
200
- ### COMANDO: `doctor`
201
-
202
- | Proyecto | Esperado | Obtenido | Estado |
203
- |----------|----------|----------|--------|
204
- | express-api | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
205
- | nestjs-backend | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
206
- | python-cli | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
207
- | react-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
208
- | salesforce-cli | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
209
- | django-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
210
- | laravel-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
211
- | fastapi-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
212
- | flask-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
213
- | rails-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
214
- | spring-boot-app | 6 passed, 1 warnings | ✅ 6 passed, 1 warnings | ✅ PASS |
215
-
216
- **Resultado:** 11/11 PASS ✅
217
-
218
- **Warning esperado:** "Semantic index: Not found" (no se ejecutó `index --semantic`)
219
-
220
- ---
221
-
222
- ### COMANDO: `graph`
223
-
224
- | Proyecto | Esperado | Obtenido | Estado |
225
- |----------|----------|----------|--------|
226
- | express-api | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
227
- | nestjs-backend | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
228
- | python-cli | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
229
- | react-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
230
- | salesforce-cli | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
231
- | django-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
232
- | laravel-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
233
- | fastapi-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
234
- | flask-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
235
- | rails-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
236
- | spring-boot-app | ai/graph/knowledge-graph.json | ✅ Generado | ✅ PASS |
237
-
238
- **Resultado:** 11/11 PASS ✅
239
-
240
- ---
241
-
242
- ### COMANDO: `summarize`
243
-
244
- | Proyecto | Esperado | Obtenido | Estado |
245
- |----------|----------|----------|--------|
246
- | express-api | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
247
- | nestjs-backend | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
248
- | python-cli | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
249
- | react-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
250
- | salesforce-cli | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
251
- | django-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
252
- | laravel-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
253
- | fastapi-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
254
- | flask-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
255
- | rails-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
256
- | spring-boot-app | ai/hierarchy.json generado | ✅ Generado | ✅ PASS |
257
-
258
- **Resultado:** 11/11 PASS ✅
259
-
260
- ---
261
-
262
- ### COMANDO: `update`
263
-
264
- | Proyecto | Esperado | Obtenido | Estado |
265
- |----------|----------|----------|--------|
266
- | express-api (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
267
- | nestjs-backend (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
268
- | python-cli (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
269
- | react-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
270
- | salesforce-cli (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
271
- | django-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
272
- | laravel-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
273
- | fastapi-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
274
- | flask-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
275
- | rails-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
276
- | spring-boot-app (sin cambios) | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
277
-
278
- **Resultado:** 11/11 PASS (sin cambios) ✅
279
-
280
- **⚠️ PRUEBA INCREMENTAL FALLIDA:**
281
- | Proyecto | Acción | Esperado | Obtenido | Estado |
282
- |----------|--------|----------|----------|--------|
283
- | express-api | Añadir función `healthCheck()` a index.js | Nuevo símbolo detectado | Symbols: 0, función NO en symbols.json | ❌ FAIL |
284
-
285
- **Conclusión:** El comando `update` detecta archivos modificados pero NO extrae nuevos símbolos. Bug encontrado.
286
- | spring-boot-app | No errors, 0 files changed | ✅ 0 files changed | ✅ PASS |
287
-
288
- **Resultado:** 11/11 PASS ✅
289
-
290
- ---
291
-
292
- ### COMANDO: `explore`
293
-
294
- | Proyecto | Esperado | Obtenido | Estado |
295
- |----------|----------|----------|--------|
296
- | express-api | Lista módulos | ✅ 4 modules | ✅ PASS |
297
- | nestjs-backend | Lista módulos | ✅ 3 modules | ✅ PASS |
298
- | python-cli | Lista módulos | ✅ 4 modules | ✅ PASS |
299
- | react-app | Lista módulos | ✅ 4 modules | ✅ PASS |
300
- | salesforce-cli | Lista módulos | ✅ 3 modules | ✅ PASS |
301
- | django-app | Lista módulos | ✅ 4 modules | ✅ PASS |
302
- | laravel-app | Lista módulos | ✅ 3 modules | ✅ PASS |
303
- | fastapi-app | Lista módulos | ✅ 3 modules | ✅ PASS |
304
- | flask-app | Lista módulos | ✅ 3 modules | ✅ PASS |
305
- | rails-app | Lista módulos | ✅ 2 modules | ✅ PASS |
306
- | spring-boot-app | Lista módulos | ✅ 1 module | ✅ PASS |
307
-
308
- **Resultado:** 11/11 PASS ✅
309
-
310
- ---
311
-
312
- ### COMANDO: `adapters`
313
-
314
- | Proyecto | Esperado | Obtenido | Estado |
315
- |----------|----------|----------|--------|
316
- | Todos | Lista 16 adapters | ✅ 16 adapters listados | ✅ PASS |
317
-
318
- **Resultado:** 1/1 PASS ✅
319
-
320
- ---
321
-
322
- ## 📊 MÉTRICAS POR PROYECTO
323
-
324
- | Proyecto | Archivos | Símbolos | Relaciones | Features | Flows | Módulos |
325
- |----------|----------|----------|-----------|---------|-------|---------|
326
- | express-api | 45 | 49 | 42 | 2 | 2 | 4 |
327
- | nestjs-backend | 25 | 18 | 13 | 1 | 2 | 3 |
328
- | python-cli | 20 | 14 | 21 | 1 | 3 | 4 |
329
- | react-app | 40 | 40 | 50 | 1 | 3 | 4 |
330
- | salesforce-cli | 25 | 7 | 7 | 1 | 2 | 3 |
331
- | django-app | 40 | 69 | 42 | 2 | 2 | 4 |
332
- | laravel-app | 37 | 44 | - | 2 | 5 | 3 |
333
- | fastapi-app | 29 | 60 | 109 | 1 | 3 | 3 |
334
- | flask-app | 30 | 25 | 35 | 1 | 1 | 3 |
335
- | rails-app | 13 | 0 | 0 | 2 | 5 | 2 |
336
- | spring-boot-app | 13 | 32 | 52 | 1 | 3 | 1 |
337
-
338
- ---
339
-
340
- ## ⚠️ PROBLEMAS ENCONTRADOS
341
-
342
- ### 1. Flow Names Malformados (BUG)
343
-
344
- | Proyecto | Archivo | Problema |
345
- |----------|---------|----------|
346
- | nestjs-backend | `auth..json` | Doble punto |
347
- | nestjs-backend | `users..json` | Doble punto |
348
- | python-cli | `add_.json` | Guion bajo final |
349
- | python-cli | `remove_.json` | Guion bajo final |
350
- | python-cli | `list_.json` | Guion bajo final |
351
- | rails-app | `application_.json` | Guion bajo final |
352
- | rails-app | `comments_.json` | Guion bajo final |
353
- | rails-app | `posts_.json` | Guion bajo final |
354
- | rails-app | `users_.json` | Guion bajo final |
355
- | laravel-app | `.json` | Nombre vacío |
356
-
357
- **Causa raíz:** `src/core/semanticContexts.ts` línea 595 no sanitiza el nombre del flow
358
-
359
- **Impacto:** Bajo - los archivos se crean pero con nombres inválidos
360
-
361
- **Solución:** Phase 2 - sanitizar nombres en semanticContexts.ts
362
-
363
- ### 2. Rails Symbols = 0 (BUG)
364
-
365
- | Proyecto | Símbolos Esperados | Símbolos Obtenidos |
366
- |----------|--------------------|--------------------|
367
- | rails-app | >5 | 0 |
368
-
369
- **Causa raíz:** El parser de Ruby no extrae símbolos correctamente, o los archivos Ruby no fueron detectados
370
-
371
- **Impacto:** Alto - No se genera symbol-graph.json correctamente
372
-
373
- **Solución:** Phase 2 - Revisar parser de Ruby en symbols.ts
374
-
375
- ### 3. Laravel Relationships = 0 (BUG)
376
-
377
- | Proyecto | Relaciones Esperadas | Relaciones Obtenidas |
378
- |----------|--------------------|--------------------|
379
- | laravel-app | >10 | 0 |
380
-
381
- **Causa raíz:** El parser PHP no detecta imports/relaciones
382
-
383
- **Impacto:** Medio - Flow detection no funciona correctamente
384
-
385
- **Solución:** Phase 2 - Mejorar parser PHP para detectar dependencias
386
-
387
- ---
388
-
389
- ## 📈 RESUMEN ESTADÍSTICO
390
-
391
- ### Pruebas Totales:
392
- - **Comandos ejecutados:** 121 (11 comandos × 11 proyectos)
393
- - ** exitosos:** 120
394
- - ** fallidos:** 1 (rails-app symbols)
395
- - **Tasa de éxito:** 99.2%
396
-
397
- ### Issues Identificados:
398
- - **Críticos:** 0
399
- - **Altos:** 1 (rails symbols)
400
- - **Medios:** 1 (laravel relationships)
401
- - **Bajos:** 1 (malformed flow names)
402
-
403
- ---
404
-
405
- ## ✅ CHECKLIST FINAL PHASE 1
406
-
407
- - [x] 6 nuevos test projects creados
408
- - [x] Todos los proyectos tienen ai/ generado
409
- - [x] Todos los comandos funcionan (exit code 0)
410
- - [x] Archivos JSON válidos
411
- - [x] SQLite databases creados
412
- - [x] Features y Flows detectados
413
- - [x] Commit y push a GitHub
414
- - [x] Documentación actualizada
415
-
416
- ---
417
-
418
- *Phase 1 Testing Infrastructure - Completado: 2026-03-18*
419
- *Commit: a5562f1*
420
- *Branch: feature/phase-1-testing-infrastructure*
@@ -1,15 +0,0 @@
1
- {
2
- "dependencies": {
3
- "chokidar": "^5.0.0",
4
- "ora": "^9.3.0",
5
- "sql.js": "^1.10.0"
6
- },
7
- "devDependencies": {
8
- "@types/node": "^20.0.0",
9
- "@vitejs/plugin-vue": "^6.0.4",
10
- "typescript": "^5.0.0",
11
- "vitepress": "^1.6.4",
12
- "vitest": "^4.1.0",
13
- "vue": "^3.5.30"
14
- }
15
- }
@@ -1,12 +0,0 @@
1
- {
2
- "nodes": [],
3
- "edges": [],
4
- "metadata": {
5
- "generated": "2026-03-19T23:03:11.170Z",
6
- "sources": [
7
- "dependencies"
8
- ],
9
- "nodeCount": 0,
10
- "edgeCount": 0
11
- }
12
- }