ai-first-cli 1.2.2 → 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 (475) 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/adapters/baseAdapter.d.ts +1 -1
  13. package/dist/core/adapters/baseAdapter.d.ts.map +1 -1
  14. package/dist/core/adapters/baseAdapter.js +50 -12
  15. package/dist/core/adapters/baseAdapter.js.map +1 -1
  16. package/dist/core/analysis/architectureDetector.d.ts +37 -0
  17. package/dist/core/analysis/architectureDetector.d.ts.map +1 -0
  18. package/dist/core/analysis/architectureDetector.js +316 -0
  19. package/dist/core/analysis/architectureDetector.js.map +1 -0
  20. package/dist/core/analysis/callGraphBuilder.d.ts +37 -0
  21. package/dist/core/analysis/callGraphBuilder.d.ts.map +1 -0
  22. package/dist/core/analysis/callGraphBuilder.js +101 -0
  23. package/dist/core/analysis/callGraphBuilder.js.map +1 -0
  24. package/dist/core/analysis/dependencyAnalyzer.d.ts +45 -0
  25. package/dist/core/analysis/dependencyAnalyzer.d.ts.map +1 -0
  26. package/dist/core/analysis/dependencyAnalyzer.js +98 -0
  27. package/dist/core/analysis/dependencyAnalyzer.js.map +1 -0
  28. package/dist/core/analysis/index.d.ts +5 -0
  29. package/dist/core/analysis/index.d.ts.map +1 -0
  30. package/dist/core/analysis/index.js +5 -0
  31. package/dist/core/analysis/index.js.map +1 -0
  32. package/dist/core/analysis/inheritanceAnalyzer.d.ts +35 -0
  33. package/dist/core/analysis/inheritanceAnalyzer.d.ts.map +1 -0
  34. package/dist/core/analysis/inheritanceAnalyzer.js +115 -0
  35. package/dist/core/analysis/inheritanceAnalyzer.js.map +1 -0
  36. package/dist/core/ccp.d.ts.map +1 -1
  37. package/dist/core/ccp.js +3 -2
  38. package/dist/core/ccp.js.map +1 -1
  39. package/dist/core/generation/aiContextGenerator.d.ts +71 -0
  40. package/dist/core/generation/aiContextGenerator.d.ts.map +1 -0
  41. package/dist/core/generation/aiContextGenerator.js +217 -0
  42. package/dist/core/generation/aiContextGenerator.js.map +1 -0
  43. package/dist/core/generation/architectureGenerator.d.ts +17 -0
  44. package/dist/core/generation/architectureGenerator.d.ts.map +1 -0
  45. package/dist/core/generation/architectureGenerator.js +160 -0
  46. package/dist/core/generation/architectureGenerator.js.map +1 -0
  47. package/dist/core/generation/flowGenerator.d.ts +52 -0
  48. package/dist/core/generation/flowGenerator.d.ts.map +1 -0
  49. package/dist/core/generation/flowGenerator.js +164 -0
  50. package/dist/core/generation/flowGenerator.js.map +1 -0
  51. package/dist/core/generation/index.d.ts +4 -0
  52. package/dist/core/generation/index.d.ts.map +1 -0
  53. package/dist/core/generation/index.js +4 -0
  54. package/dist/core/generation/index.js.map +1 -0
  55. package/dist/core/hierarchyGenerator.d.ts.map +1 -1
  56. package/dist/core/hierarchyGenerator.js +3 -2
  57. package/dist/core/hierarchyGenerator.js.map +1 -1
  58. package/dist/core/parsers/index.d.ts +20 -0
  59. package/dist/core/parsers/index.d.ts.map +1 -0
  60. package/dist/core/parsers/index.js +76 -0
  61. package/dist/core/parsers/index.js.map +1 -0
  62. package/dist/core/parsers/pythonParser.d.ts +37 -0
  63. package/dist/core/parsers/pythonParser.d.ts.map +1 -0
  64. package/dist/core/parsers/pythonParser.js +229 -0
  65. package/dist/core/parsers/pythonParser.js.map +1 -0
  66. package/dist/core/parsers/typescriptParser.d.ts +54 -0
  67. package/dist/core/parsers/typescriptParser.d.ts.map +1 -0
  68. package/dist/core/parsers/typescriptParser.js +291 -0
  69. package/dist/core/parsers/typescriptParser.js.map +1 -0
  70. package/dist/core/pipeline.d.ts +42 -0
  71. package/dist/core/pipeline.d.ts.map +1 -0
  72. package/dist/core/pipeline.js +172 -0
  73. package/dist/core/pipeline.js.map +1 -0
  74. package/dist/core/semanticContexts.d.ts.map +1 -1
  75. package/dist/core/semanticContexts.js +23 -61
  76. package/dist/core/semanticContexts.js.map +1 -1
  77. package/dist/utils/constants.d.ts +46 -0
  78. package/dist/utils/constants.d.ts.map +1 -0
  79. package/dist/utils/constants.js +67 -0
  80. package/dist/utils/constants.js.map +1 -0
  81. package/install.sh +143 -17
  82. package/package.json +1 -1
  83. package/run-all-tests.sh +184 -0
  84. package/src/analyzers/symbols.ts +12 -7
  85. package/src/analyzers/techStack.ts +203 -3
  86. package/src/commands/ai-first.ts +14 -13
  87. package/src/core/adapters/baseAdapter.ts +61 -12
  88. package/src/core/analysis/architectureDetector.ts +487 -0
  89. package/src/core/analysis/callGraphBuilder.ts +158 -0
  90. package/src/core/analysis/dependencyAnalyzer.ts +167 -0
  91. package/src/core/analysis/index.ts +28 -0
  92. package/src/core/analysis/inheritanceAnalyzer.ts +169 -0
  93. package/src/core/ccp.ts +3 -2
  94. package/src/core/generation/aiContextGenerator.ts +335 -0
  95. package/src/core/generation/architectureGenerator.ts +200 -0
  96. package/src/core/generation/flowGenerator.ts +238 -0
  97. package/src/core/generation/index.ts +16 -0
  98. package/src/core/hierarchyGenerator.ts +3 -2
  99. package/src/core/parsers/index.ts +99 -0
  100. package/src/core/parsers/pythonParser.ts +302 -0
  101. package/src/core/parsers/typescriptParser.ts +445 -0
  102. package/src/core/pipeline.ts +241 -0
  103. package/src/core/semanticContexts.ts +25 -67
  104. package/src/utils/constants.ts +78 -0
  105. package/tests/analysis.test.ts +283 -0
  106. package/tests/architectureDetector.test.ts +137 -0
  107. package/tests/generation.test.ts +216 -0
  108. package/tests/parserRegistry.test.ts +139 -0
  109. package/tests/pipeline.integration.test.ts +245 -0
  110. package/tests/pythonParser.test.ts +210 -0
  111. package/tests/typescriptParser.test.ts +197 -0
  112. package/.ai-dev/index.db +0 -0
  113. package/ANALISIS_COMPLETO.md +0 -424
  114. package/ANALISIS_MEJORAS.md +0 -327
  115. package/BUGS.md +0 -455
  116. package/PLAN_MEJORAS.md +0 -216
  117. package/STATUS_ADAPTADORES +0 -126
  118. package/TEST_RESULTS.md +0 -198
  119. package/TEST_RESULTS_COMPARATIVE.md +0 -159
  120. package/TEST_RESULTS_COMPLETE.md +0 -127
  121. package/TEST_RESULTS_COMPREHENSIVE.md +0 -208
  122. package/TEST_RESULTS_PHASE1.md +0 -420
  123. package/ai-context/ai_context.md +0 -130
  124. package/ai-context/ai_rules.md +0 -54
  125. package/ai-context/architecture.md +0 -136
  126. package/ai-context/cache.json +0 -2349
  127. package/ai-context/ccp/jira-123/context.json +0 -7
  128. package/ai-context/context/features/commands.json +0 -18
  129. package/ai-context/context/features/src.json +0 -61
  130. package/ai-context/context/features/test-projects.json +0 -69
  131. package/ai-context/context/flows/account.json +0 -9
  132. package/ai-context/context/flows/ai-first.json +0 -9
  133. package/ai-context/context/flows/api.json +0 -9
  134. package/ai-context/context/flows/auth.json +0 -13
  135. package/ai-context/context/flows/category.json +0 -12
  136. package/ai-context/context/flows/comment.json +0 -16
  137. package/ai-context/context/flows/dashboard.json +0 -9
  138. package/ai-context/context/flows/doctor.json +0 -9
  139. package/ai-context/context/flows/explore.json +0 -9
  140. package/ai-context/context/flows/login.json +0 -9
  141. package/ai-context/context/flows/opportunity.json +0 -9
  142. package/ai-context/context/flows/post.json +0 -18
  143. package/ai-context/context/flows/routes.json +0 -19
  144. package/ai-context/context/flows/user.json +0 -20
  145. package/ai-context/context/flows/users.json +0 -9
  146. package/ai-context/context/flows/views.json +0 -14
  147. package/ai-context/context/repo.json +0 -56
  148. package/ai-context/context/utils.json +0 -7
  149. package/ai-context/conventions.md +0 -53
  150. package/ai-context/dependencies.json +0 -2946
  151. package/ai-context/embeddings.json +0 -23828
  152. package/ai-context/entrypoints.md +0 -42
  153. package/ai-context/files.json +0 -2944
  154. package/ai-context/git/commit-activity.json +0 -8646
  155. package/ai-context/git/recent-features.json +0 -1
  156. package/ai-context/git/recent-files.json +0 -52
  157. package/ai-context/git/recent-flows.json +0 -1
  158. package/ai-context/graph/knowledge-graph.json +0 -44314
  159. package/ai-context/graph/module-graph.json +0 -866
  160. package/ai-context/graph/symbol-graph.json +0 -200622
  161. package/ai-context/graph/symbol-references.json +0 -6778
  162. package/ai-context/hierarchy.json +0 -20
  163. package/ai-context/index-state.json +0 -4340
  164. package/ai-context/index.db +0 -0
  165. package/ai-context/modules.json +0 -532
  166. package/ai-context/project.json +0 -30
  167. package/ai-context/repo_map.json +0 -5818
  168. package/ai-context/repo_map.md +0 -1327
  169. package/ai-context/schema.json +0 -5
  170. package/ai-context/summary.md +0 -42
  171. package/ai-context/symbols.json +0 -7
  172. package/ai-context/tech_stack.md +0 -46
  173. package/ai-context/tools.json +0 -10
  174. package/test-projects/django-app/.ai-dev/index.db +0 -0
  175. package/test-projects/django-app/ai-context/ai_context.md +0 -92
  176. package/test-projects/django-app/ai-context/ai_rules.md +0 -47
  177. package/test-projects/django-app/ai-context/architecture.md +0 -57
  178. package/test-projects/django-app/ai-context/cache.json +0 -169
  179. package/test-projects/django-app/ai-context/context/flows/views.json +0 -10
  180. package/test-projects/django-app/ai-context/conventions.md +0 -51
  181. package/test-projects/django-app/ai-context/dependencies.json +0 -312
  182. package/test-projects/django-app/ai-context/entrypoints.md +0 -4
  183. package/test-projects/django-app/ai-context/files.json +0 -209
  184. package/test-projects/django-app/ai-context/graph/knowledge-graph.json +0 -36
  185. package/test-projects/django-app/ai-context/graph/module-graph.json +0 -145
  186. package/test-projects/django-app/ai-context/graph/symbol-graph.json +0 -1488
  187. package/test-projects/django-app/ai-context/graph/symbol-references.json +0 -1
  188. package/test-projects/django-app/ai-context/index-state.json +0 -294
  189. package/test-projects/django-app/ai-context/index.db +0 -0
  190. package/test-projects/django-app/ai-context/modules.json +0 -35
  191. package/test-projects/django-app/ai-context/project.json +0 -11
  192. package/test-projects/django-app/ai-context/repo_map.json +0 -412
  193. package/test-projects/django-app/ai-context/repo_map.md +0 -105
  194. package/test-projects/django-app/ai-context/schema.json +0 -5
  195. package/test-projects/django-app/ai-context/summary.md +0 -15
  196. package/test-projects/django-app/ai-context/symbols.json +0 -1
  197. package/test-projects/django-app/ai-context/tech_stack.md +0 -32
  198. package/test-projects/django-app/ai-context/tools.json +0 -10
  199. package/test-projects/express-api/ai-context/ai_context.md +0 -112
  200. package/test-projects/express-api/ai-context/ai_rules.md +0 -50
  201. package/test-projects/express-api/ai-context/architecture.md +0 -62
  202. package/test-projects/express-api/ai-context/context/features/controllers.json +0 -13
  203. package/test-projects/express-api/ai-context/context/features/services.json +0 -13
  204. package/test-projects/express-api/ai-context/context/flows/auth.json +0 -12
  205. package/test-projects/express-api/ai-context/context/flows/user.json +0 -13
  206. package/test-projects/express-api/ai-context/conventions.md +0 -51
  207. package/test-projects/express-api/ai-context/dependencies.json +0 -54
  208. package/test-projects/express-api/ai-context/entrypoints.md +0 -17
  209. package/test-projects/express-api/ai-context/modules.json +0 -30
  210. package/test-projects/express-api/ai-context/project.json +0 -15
  211. package/test-projects/express-api/ai-context/repo_map.json +0 -100
  212. package/test-projects/express-api/ai-context/repo_map.md +0 -36
  213. package/test-projects/express-api/ai-context/schema.json +0 -5
  214. package/test-projects/express-api/ai-context/summary.md +0 -14
  215. package/test-projects/express-api/ai-context/symbols.json +0 -7
  216. package/test-projects/express-api/ai-context/tech_stack.md +0 -38
  217. package/test-projects/express-api/ai-context/tools.json +0 -10
  218. package/test-projects/fastapi-app/.ai-dev/index.db +0 -0
  219. package/test-projects/fastapi-app/ai-context/ai_context.md +0 -89
  220. package/test-projects/fastapi-app/ai-context/ai_rules.md +0 -47
  221. package/test-projects/fastapi-app/ai-context/architecture.md +0 -39
  222. package/test-projects/fastapi-app/ai-context/cache.json +0 -125
  223. package/test-projects/fastapi-app/ai-context/conventions.md +0 -51
  224. package/test-projects/fastapi-app/ai-context/dependencies.json +0 -244
  225. package/test-projects/fastapi-app/ai-context/entrypoints.md +0 -4
  226. package/test-projects/fastapi-app/ai-context/files.json +0 -154
  227. package/test-projects/fastapi-app/ai-context/graph/knowledge-graph.json +0 -15
  228. package/test-projects/fastapi-app/ai-context/graph/module-graph.json +0 -78
  229. package/test-projects/fastapi-app/ai-context/graph/symbol-graph.json +0 -1724
  230. package/test-projects/fastapi-app/ai-context/graph/symbol-references.json +0 -51
  231. package/test-projects/fastapi-app/ai-context/index-state.json +0 -217
  232. package/test-projects/fastapi-app/ai-context/index.db +0 -0
  233. package/test-projects/fastapi-app/ai-context/modules.json +0 -16
  234. package/test-projects/fastapi-app/ai-context/project.json +0 -9
  235. package/test-projects/fastapi-app/ai-context/repo_map.json +0 -298
  236. package/test-projects/fastapi-app/ai-context/repo_map.md +0 -74
  237. package/test-projects/fastapi-app/ai-context/schema.json +0 -5
  238. package/test-projects/fastapi-app/ai-context/summary.md +0 -12
  239. package/test-projects/fastapi-app/ai-context/symbols.json +0 -1
  240. package/test-projects/fastapi-app/ai-context/tech_stack.md +0 -32
  241. package/test-projects/fastapi-app/ai-context/tools.json +0 -10
  242. package/test-projects/flask-app/.ai-dev/index.db +0 -0
  243. package/test-projects/flask-app/ai-context/ai_context.md +0 -94
  244. package/test-projects/flask-app/ai-context/ai_rules.md +0 -47
  245. package/test-projects/flask-app/ai-context/architecture.md +0 -49
  246. package/test-projects/flask-app/ai-context/cache.json +0 -157
  247. package/test-projects/flask-app/ai-context/context/features/app.json +0 -25
  248. package/test-projects/flask-app/ai-context/context/flows/routes.json +0 -14
  249. package/test-projects/flask-app/ai-context/conventions.md +0 -51
  250. package/test-projects/flask-app/ai-context/dependencies.json +0 -298
  251. package/test-projects/flask-app/ai-context/entrypoints.md +0 -4
  252. package/test-projects/flask-app/ai-context/files.json +0 -194
  253. package/test-projects/flask-app/ai-context/graph/knowledge-graph.json +0 -60
  254. package/test-projects/flask-app/ai-context/graph/module-graph.json +0 -95
  255. package/test-projects/flask-app/ai-context/graph/symbol-graph.json +0 -1448
  256. package/test-projects/flask-app/ai-context/graph/symbol-references.json +0 -45
  257. package/test-projects/flask-app/ai-context/index-state.json +0 -273
  258. package/test-projects/flask-app/ai-context/index.db +0 -0
  259. package/test-projects/flask-app/ai-context/modules.json +0 -21
  260. package/test-projects/flask-app/ai-context/project.json +0 -13
  261. package/test-projects/flask-app/ai-context/repo_map.json +0 -400
  262. package/test-projects/flask-app/ai-context/repo_map.md +0 -98
  263. package/test-projects/flask-app/ai-context/schema.json +0 -5
  264. package/test-projects/flask-app/ai-context/summary.md +0 -13
  265. package/test-projects/flask-app/ai-context/symbols.json +0 -1
  266. package/test-projects/flask-app/ai-context/tech_stack.md +0 -32
  267. package/test-projects/flask-app/ai-context/tools.json +0 -10
  268. package/test-projects/laravel-app/.ai-dev/index.db +0 -0
  269. package/test-projects/laravel-app/ai-context/ai_context.md +0 -97
  270. package/test-projects/laravel-app/ai-context/ai_rules.md +0 -47
  271. package/test-projects/laravel-app/ai-context/architecture.md +0 -60
  272. package/test-projects/laravel-app/ai-context/cache.json +0 -161
  273. package/test-projects/laravel-app/ai-context/context/features/app.json +0 -21
  274. package/test-projects/laravel-app/ai-context/context/flows/.json +0 -9
  275. package/test-projects/laravel-app/ai-context/context/flows/category.json +0 -12
  276. package/test-projects/laravel-app/ai-context/context/flows/comment.json +0 -12
  277. package/test-projects/laravel-app/ai-context/context/flows/post.json +0 -12
  278. package/test-projects/laravel-app/ai-context/context/flows/unnamed.json +0 -9
  279. package/test-projects/laravel-app/ai-context/conventions.md +0 -51
  280. package/test-projects/laravel-app/ai-context/dependencies.json +0 -6
  281. package/test-projects/laravel-app/ai-context/entrypoints.md +0 -4
  282. package/test-projects/laravel-app/ai-context/files.json +0 -199
  283. package/test-projects/laravel-app/ai-context/graph/knowledge-graph.json +0 -98
  284. package/test-projects/laravel-app/ai-context/graph/module-graph.json +0 -30
  285. package/test-projects/laravel-app/ai-context/graph/symbol-graph.json +0 -5
  286. package/test-projects/laravel-app/ai-context/graph/symbol-references.json +0 -1
  287. package/test-projects/laravel-app/ai-context/index-state.json +0 -280
  288. package/test-projects/laravel-app/ai-context/index.db +0 -0
  289. package/test-projects/laravel-app/ai-context/modules.json +0 -29
  290. package/test-projects/laravel-app/ai-context/project.json +0 -17
  291. package/test-projects/laravel-app/ai-context/repo_map.json +0 -419
  292. package/test-projects/laravel-app/ai-context/repo_map.md +0 -106
  293. package/test-projects/laravel-app/ai-context/schema.json +0 -5
  294. package/test-projects/laravel-app/ai-context/summary.md +0 -15
  295. package/test-projects/laravel-app/ai-context/symbols.json +0 -1
  296. package/test-projects/laravel-app/ai-context/tech_stack.md +0 -34
  297. package/test-projects/laravel-app/ai-context/tools.json +0 -10
  298. package/test-projects/nestjs-backend/.ai-dev/index.db +0 -0
  299. package/test-projects/nestjs-backend/ai-context/ai_context.md +0 -111
  300. package/test-projects/nestjs-backend/ai-context/ai_rules.md +0 -52
  301. package/test-projects/nestjs-backend/ai-context/architecture.md +0 -49
  302. package/test-projects/nestjs-backend/ai-context/cache.json +0 -169
  303. package/test-projects/nestjs-backend/ai-context/context/features/src.json +0 -23
  304. package/test-projects/nestjs-backend/ai-context/context/flows/auth.controller.json +0 -14
  305. package/test-projects/nestjs-backend/ai-context/context/flows/auth.json +0 -10
  306. package/test-projects/nestjs-backend/ai-context/context/flows/users..json +0 -10
  307. package/test-projects/nestjs-backend/ai-context/context/flows/users.controller.json +0 -14
  308. package/test-projects/nestjs-backend/ai-context/context/flows/users.json +0 -10
  309. package/test-projects/nestjs-backend/ai-context/conventions.md +0 -52
  310. package/test-projects/nestjs-backend/ai-context/dependencies.json +0 -152
  311. package/test-projects/nestjs-backend/ai-context/entrypoints.md +0 -18
  312. package/test-projects/nestjs-backend/ai-context/files.json +0 -209
  313. package/test-projects/nestjs-backend/ai-context/graph/knowledge-graph.json +0 -132
  314. package/test-projects/nestjs-backend/ai-context/graph/module-graph.json +0 -29
  315. package/test-projects/nestjs-backend/ai-context/graph/symbol-graph.json +0 -304
  316. package/test-projects/nestjs-backend/ai-context/graph/symbol-references.json +0 -5
  317. package/test-projects/nestjs-backend/ai-context/index-state.json +0 -294
  318. package/test-projects/nestjs-backend/ai-context/index.db +0 -0
  319. package/test-projects/nestjs-backend/ai-context/modules.json +0 -19
  320. package/test-projects/nestjs-backend/ai-context/project.json +0 -18
  321. package/test-projects/nestjs-backend/ai-context/repo_map.json +0 -427
  322. package/test-projects/nestjs-backend/ai-context/repo_map.md +0 -104
  323. package/test-projects/nestjs-backend/ai-context/schema.json +0 -5
  324. package/test-projects/nestjs-backend/ai-context/summary.md +0 -13
  325. package/test-projects/nestjs-backend/ai-context/symbols.json +0 -1
  326. package/test-projects/nestjs-backend/ai-context/tech_stack.md +0 -38
  327. package/test-projects/nestjs-backend/ai-context/tools.json +0 -10
  328. package/test-projects/python-cli/.ai-dev/index.db +0 -0
  329. package/test-projects/python-cli/ai-context/ai_context.md +0 -95
  330. package/test-projects/python-cli/ai-context/ai_rules.md +0 -47
  331. package/test-projects/python-cli/ai-context/architecture.md +0 -55
  332. package/test-projects/python-cli/ai-context/cache.json +0 -149
  333. package/test-projects/python-cli/ai-context/context/features/cli.json +0 -16
  334. package/test-projects/python-cli/ai-context/context/flows/list_.json +0 -9
  335. package/test-projects/python-cli/ai-context/context/flows/remove_.json +0 -9
  336. package/test-projects/python-cli/ai-context/conventions.md +0 -51
  337. package/test-projects/python-cli/ai-context/dependencies.json +0 -66
  338. package/test-projects/python-cli/ai-context/entrypoints.md +0 -4
  339. package/test-projects/python-cli/ai-context/files.json +0 -184
  340. package/test-projects/python-cli/ai-context/graph/knowledge-graph.json +0 -83
  341. package/test-projects/python-cli/ai-context/graph/module-graph.json +0 -31
  342. package/test-projects/python-cli/ai-context/graph/symbol-graph.json +0 -358
  343. package/test-projects/python-cli/ai-context/graph/symbol-references.json +0 -11
  344. package/test-projects/python-cli/ai-context/index-state.json +0 -259
  345. package/test-projects/python-cli/ai-context/index.db +0 -0
  346. package/test-projects/python-cli/ai-context/modules.json +0 -21
  347. package/test-projects/python-cli/ai-context/project.json +0 -15
  348. package/test-projects/python-cli/ai-context/repo_map.json +0 -367
  349. package/test-projects/python-cli/ai-context/repo_map.md +0 -93
  350. package/test-projects/python-cli/ai-context/schema.json +0 -5
  351. package/test-projects/python-cli/ai-context/summary.md +0 -14
  352. package/test-projects/python-cli/ai-context/symbols.json +0 -1
  353. package/test-projects/python-cli/ai-context/tech_stack.md +0 -32
  354. package/test-projects/python-cli/ai-context/tools.json +0 -10
  355. package/test-projects/rails-app/.ai-dev/index.db +0 -0
  356. package/test-projects/rails-app/ai-context/ai_context.md +0 -94
  357. package/test-projects/rails-app/ai-context/ai_rules.md +0 -47
  358. package/test-projects/rails-app/ai-context/architecture.md +0 -49
  359. package/test-projects/rails-app/ai-context/cache.json +0 -193
  360. package/test-projects/rails-app/ai-context/context/features/app.json +0 -24
  361. package/test-projects/rails-app/ai-context/context/features/config.json +0 -13
  362. package/test-projects/rails-app/ai-context/context/flows/application.json +0 -9
  363. package/test-projects/rails-app/ai-context/context/flows/application_.json +0 -9
  364. package/test-projects/rails-app/ai-context/context/flows/comments.json +0 -11
  365. package/test-projects/rails-app/ai-context/context/flows/comments_.json +0 -11
  366. package/test-projects/rails-app/ai-context/context/flows/posts.json +0 -11
  367. package/test-projects/rails-app/ai-context/context/flows/posts_.json +0 -11
  368. package/test-projects/rails-app/ai-context/context/flows/routes.json +0 -9
  369. package/test-projects/rails-app/ai-context/context/flows/users.json +0 -11
  370. package/test-projects/rails-app/ai-context/context/flows/users_.json +0 -11
  371. package/test-projects/rails-app/ai-context/conventions.md +0 -51
  372. package/test-projects/rails-app/ai-context/dependencies.json +0 -6
  373. package/test-projects/rails-app/ai-context/entrypoints.md +0 -4
  374. package/test-projects/rails-app/ai-context/files.json +0 -239
  375. package/test-projects/rails-app/ai-context/graph/knowledge-graph.json +0 -130
  376. package/test-projects/rails-app/ai-context/graph/module-graph.json +0 -27
  377. package/test-projects/rails-app/ai-context/graph/symbol-graph.json +0 -5
  378. package/test-projects/rails-app/ai-context/graph/symbol-references.json +0 -1
  379. package/test-projects/rails-app/ai-context/index-state.json +0 -336
  380. package/test-projects/rails-app/ai-context/index.db +0 -0
  381. package/test-projects/rails-app/ai-context/modules.json +0 -26
  382. package/test-projects/rails-app/ai-context/project.json +0 -22
  383. package/test-projects/rails-app/ai-context/repo_map.json +0 -486
  384. package/test-projects/rails-app/ai-context/repo_map.md +0 -117
  385. package/test-projects/rails-app/ai-context/schema.json +0 -5
  386. package/test-projects/rails-app/ai-context/summary.md +0 -13
  387. package/test-projects/rails-app/ai-context/symbols.json +0 -1
  388. package/test-projects/rails-app/ai-context/tech_stack.md +0 -32
  389. package/test-projects/rails-app/ai-context/tools.json +0 -10
  390. package/test-projects/react-app/.ai-dev/index.db +0 -0
  391. package/test-projects/react-app/ai-context/ai_context.md +0 -96
  392. package/test-projects/react-app/ai-context/ai_rules.md +0 -49
  393. package/test-projects/react-app/ai-context/architecture.md +0 -39
  394. package/test-projects/react-app/ai-context/cache.json +0 -153
  395. package/test-projects/react-app/ai-context/context/features/src.json +0 -18
  396. package/test-projects/react-app/ai-context/context/flows/UsersPage.json +0 -14
  397. package/test-projects/react-app/ai-context/context/flows/dashboard.json +0 -9
  398. package/test-projects/react-app/ai-context/context/flows/login.json +0 -9
  399. package/test-projects/react-app/ai-context/context/flows/users.json +0 -9
  400. package/test-projects/react-app/ai-context/conventions.md +0 -52
  401. package/test-projects/react-app/ai-context/dependencies.json +0 -128
  402. package/test-projects/react-app/ai-context/entrypoints.md +0 -4
  403. package/test-projects/react-app/ai-context/files.json +0 -189
  404. package/test-projects/react-app/ai-context/graph/knowledge-graph.json +0 -112
  405. package/test-projects/react-app/ai-context/graph/module-graph.json +0 -31
  406. package/test-projects/react-app/ai-context/graph/symbol-graph.json +0 -868
  407. package/test-projects/react-app/ai-context/graph/symbol-references.json +0 -31
  408. package/test-projects/react-app/ai-context/index-state.json +0 -266
  409. package/test-projects/react-app/ai-context/index.db +0 -0
  410. package/test-projects/react-app/ai-context/modules.json +0 -17
  411. package/test-projects/react-app/ai-context/project.json +0 -16
  412. package/test-projects/react-app/ai-context/repo_map.json +0 -391
  413. package/test-projects/react-app/ai-context/repo_map.md +0 -94
  414. package/test-projects/react-app/ai-context/schema.json +0 -5
  415. package/test-projects/react-app/ai-context/summary.md +0 -13
  416. package/test-projects/react-app/ai-context/symbols.json +0 -1
  417. package/test-projects/react-app/ai-context/tech_stack.md +0 -39
  418. package/test-projects/react-app/ai-context/tools.json +0 -10
  419. package/test-projects/salesforce-cli/.ai-dev/index.db +0 -0
  420. package/test-projects/salesforce-cli/ai-context/ai_context.md +0 -89
  421. package/test-projects/salesforce-cli/ai-context/ai_rules.md +0 -47
  422. package/test-projects/salesforce-cli/ai-context/architecture.md +0 -39
  423. package/test-projects/salesforce-cli/ai-context/cache.json +0 -125
  424. package/test-projects/salesforce-cli/ai-context/context/features/force-app.json +0 -14
  425. package/test-projects/salesforce-cli/ai-context/context/flows/account.json +0 -9
  426. package/test-projects/salesforce-cli/ai-context/context/flows/opportunity.json +0 -9
  427. package/test-projects/salesforce-cli/ai-context/conventions.md +0 -51
  428. package/test-projects/salesforce-cli/ai-context/dependencies.json +0 -6
  429. package/test-projects/salesforce-cli/ai-context/entrypoints.md +0 -4
  430. package/test-projects/salesforce-cli/ai-context/files.json +0 -154
  431. package/test-projects/salesforce-cli/ai-context/graph/knowledge-graph.json +0 -64
  432. package/test-projects/salesforce-cli/ai-context/graph/module-graph.json +0 -13
  433. package/test-projects/salesforce-cli/ai-context/graph/symbol-graph.json +0 -148
  434. package/test-projects/salesforce-cli/ai-context/graph/symbol-references.json +0 -1
  435. package/test-projects/salesforce-cli/ai-context/index-state.json +0 -217
  436. package/test-projects/salesforce-cli/ai-context/index.db +0 -0
  437. package/test-projects/salesforce-cli/ai-context/modules.json +0 -12
  438. package/test-projects/salesforce-cli/ai-context/project.json +0 -14
  439. package/test-projects/salesforce-cli/ai-context/repo_map.json +0 -328
  440. package/test-projects/salesforce-cli/ai-context/repo_map.md +0 -80
  441. package/test-projects/salesforce-cli/ai-context/schema.json +0 -5
  442. package/test-projects/salesforce-cli/ai-context/summary.md +0 -13
  443. package/test-projects/salesforce-cli/ai-context/symbols.json +0 -1
  444. package/test-projects/salesforce-cli/ai-context/tech_stack.md +0 -31
  445. package/test-projects/salesforce-cli/ai-context/tools.json +0 -10
  446. package/test-projects/spring-boot-app/.ai-dev/index.db +0 -0
  447. package/test-projects/spring-boot-app/ai-context/ai_context.md +0 -91
  448. package/test-projects/spring-boot-app/ai-context/ai_rules.md +0 -48
  449. package/test-projects/spring-boot-app/ai-context/architecture.md +0 -39
  450. package/test-projects/spring-boot-app/ai-context/cache.json +0 -173
  451. package/test-projects/spring-boot-app/ai-context/context/features/src.json +0 -26
  452. package/test-projects/spring-boot-app/ai-context/context/flows/PostController.json +0 -19
  453. package/test-projects/spring-boot-app/ai-context/context/flows/UserController.json +0 -19
  454. package/test-projects/spring-boot-app/ai-context/context/flows/comment.json +0 -11
  455. package/test-projects/spring-boot-app/ai-context/context/flows/post.json +0 -14
  456. package/test-projects/spring-boot-app/ai-context/context/flows/user.json +0 -14
  457. package/test-projects/spring-boot-app/ai-context/conventions.md +0 -52
  458. package/test-projects/spring-boot-app/ai-context/dependencies.json +0 -326
  459. package/test-projects/spring-boot-app/ai-context/entrypoints.md +0 -4
  460. package/test-projects/spring-boot-app/ai-context/files.json +0 -214
  461. package/test-projects/spring-boot-app/ai-context/graph/knowledge-graph.json +0 -231
  462. package/test-projects/spring-boot-app/ai-context/graph/module-graph.json +0 -22
  463. package/test-projects/spring-boot-app/ai-context/graph/symbol-graph.json +0 -794
  464. package/test-projects/spring-boot-app/ai-context/graph/symbol-references.json +0 -70
  465. package/test-projects/spring-boot-app/ai-context/index-state.json +0 -301
  466. package/test-projects/spring-boot-app/ai-context/index.db +0 -0
  467. package/test-projects/spring-boot-app/ai-context/modules.json +0 -21
  468. package/test-projects/spring-boot-app/ai-context/project.json +0 -17
  469. package/test-projects/spring-boot-app/ai-context/repo_map.json +0 -461
  470. package/test-projects/spring-boot-app/ai-context/repo_map.md +0 -109
  471. package/test-projects/spring-boot-app/ai-context/schema.json +0 -5
  472. package/test-projects/spring-boot-app/ai-context/summary.md +0 -12
  473. package/test-projects/spring-boot-app/ai-context/symbols.json +0 -1
  474. package/test-projects/spring-boot-app/ai-context/tech_stack.md +0 -32
  475. package/test-projects/spring-boot-app/ai-context/tools.json +0 -10
@@ -1,424 +0,0 @@
1
- # 📊 ANÁLISIS COMPLETO DE PROBLEMAS Y MEJORAS - ai-first-cli v1.1.5
2
- ## Fecha: 2026-03-17
3
- ## Análisis realizado después del release v1.1.5
4
-
5
- ---
6
-
7
- ## ✅ PUNTO 1: RELEASE v1.1.5 COMPLETADO
8
-
9
- ### Acciones Realizadas:
10
- - ✅ Versión actualizada a 1.1.5
11
- - ✅ CHANGELOG.md actualizado (ENG)
12
- - ✅ BUGS.md actualizado con 7 nuevos issues identificados
13
- - ✅ Build TypeScript exitoso
14
- - ✅ Commit: f983ba8
15
- - ✅ Push a GitHub: https://github.com/julianperezpesce/ai-first/commit/f983ba8
16
- - ✅ Publicado en NPM: https://www.npmjs.com/package/ai-first-cli/v/1.1.5
17
-
18
- ### Notas sobre documentación:
19
- - El CHANGELOG.md está en inglés (no existe versión en español actualmente)
20
- - El README.md tiene versión en español (README.es.md) pero no está sincronizada con los últimos cambios
21
- - Se recomienda crear un CHANGELOG.es.md para mantener consistencia
22
-
23
- ---
24
-
25
- ## 🔍 PUNTO 2: SOPORTE PARA DIVERSOS TIPOS DE PROYECTOS - TESTING GAPS
26
-
27
- ### Adaptadores Soportados (16 total):
28
-
29
- | Framework | Tipo | ¿Testeado? | Prioridad |
30
- |-----------|------|:----------:|:---------:|
31
- | **JavaScript/TypeScript** | Lenguaje base | ✅ Express, React | Alta |
32
- | **NestJS** | Node.js Framework | ✅ SÍ | Alta |
33
- | **Rails** | Ruby Framework | ❌ NO | Media |
34
- | **Ruby** | Lenguaje | ❌ NO | Baja |
35
- | **Django** | Python Framework | ❌ NO | Alta |
36
- | **Flask** | Python Micro-framework | ❌ NO | Media |
37
- | **Python** | Lenguaje | ✅ CLI | Alta |
38
- | **FastAPI** | Python Framework | ❌ NO | Alta |
39
- | **Laravel** | PHP Framework | ❌ NO | Media |
40
- | **Phoenix** | Elixir Framework | ❌ NO | Baja |
41
- | **Spring Boot** | Java Framework | ❌ NO | Media |
42
- | **SFDX** | Salesforce CLI | ❌ NO | Media |
43
- | **Salesforce** | CRM Platform | ✅ SÍ | Media |
44
- | **Blazor** | .NET Frontend | ❌ NO | Baja |
45
- | **ASP.NET Core** | C# Framework | ❌ NO | Media |
46
- | **.NET** | Plataforma | ❌ NO | Baja |
47
-
48
- ### Estadísticas:
49
- - **Total adaptadores:** 16
50
- - **Con tests:** 5 (31%)
51
- - **Sin tests:** 11 (69%)
52
-
53
- ### Test Projects Existentes:
54
- ```
55
- test-projects/
56
- ├── express-api/ ← JavaScript/TypeScript ✅
57
- ├── nestjs-backend/ ← NestJS ✅
58
- ├── python-cli/ ← Python ✅
59
- ├── react-app/ ← React ✅
60
- └── salesforce-cli/ ← Salesforce ✅
61
- ```
62
-
63
- ### Test Projects Faltantes (Recomendados):
64
- ```
65
- test-projects/
66
- ├── laravel-app/ ← PHP Laravel (Alta prioridad)
67
- ├── django-app/ ← Python Django (Alta prioridad)
68
- ├── fastapi-app/ ← Python FastAPI (Alta prioridad)
69
- ├── rails-app/ ← Ruby on Rails (Media prioridad)
70
- ├── spring-boot-app/ ← Java Spring Boot (Media prioridad)
71
- ├── flask-app/ ← Python Flask (Media prioridad)
72
- └── aspnet-core-app/ ← C# ASP.NET Core (Baja prioridad)
73
- ```
74
-
75
- ### Impacto de no tener tests:
76
- 1. **Riesgo de regressions:** Cambios pueden romper frameworks no testeados
77
- 2. **Calidad incierta:** No se garantiza que funcionen correctamente
78
- 3. **Soporte limitado:** Difícil identificar problemas específicos de frameworks
79
- 4. **Documentación incompleta:** No hay ejemplos reales para usuarios
80
-
81
- ---
82
-
83
- ## 🔍 PUNTO 3: ARCHIVOS DUPLICADOS
84
-
85
- ### Problema Identificado:
86
-
87
- Se generan múltiples archivos con el mismo propósito pero diferentes nombres:
88
-
89
- ```
90
- ai/
91
- ├── repo-map.json ← kebab-case
92
- ├── repo_map.json ← snake_case (DUPLICADO!)
93
- ├── repo_map.md ← snake_case
94
- ```
95
-
96
- ### Ubicaciones en el código donde se generan:
97
-
98
- **Archivo 1: repo_map.json (snake_case)**
99
- - Ubicación: `src/commands/ai-first.ts` líneas 81-87
100
- - Función: `runAIFirst()`
101
-
102
- **Archivo 2: repo-map.json (kebab-case)**
103
- - Ubicación: `src/commands/ai-first.ts` línea 1122
104
- - Función: `generateMap()` en comando `map`
105
-
106
- **Archivo 3: repo_map.md (snake_case)**
107
- - Ubicación: `src/commands/ai-first.ts` líneas 72-79
108
- - Función: `runAIFirst()`
109
-
110
- ### Contenido comparado:
111
-
112
- **repo_map.json** (generado por init):
113
- ```json
114
- {
115
- "folders": ["controllers", "middleware", "models", "services"],
116
- "files": ["controllers/authController.js", "index.js"],
117
- "structure": { ... }
118
- }
119
- ```
120
-
121
- **repo-map.json** (generado por map):
122
- ```json
123
- {
124
- "root": ".",
125
- "modules": ["controllers", "services"],
126
- "dependencies": [ ... ]
127
- }
128
- ```
129
-
130
- **⚠️ PROBLEMA:** Aunque tienen nombres similares, contienen datos DIFERENTES:
131
- - `repo_map.json`: Estructura de carpetas/archivos (legible)
132
- - `repo-map.json`: Módulos y dependencias (máquina)
133
- - `repo_map.md`: Documentación en Markdown
134
-
135
- ### Solución Recomendada:
136
-
137
- **Opción A: Consolidar nombres (Recomendada)**
138
- ```
139
- ai/
140
- ├── repo_structure.json ← Antes: repo_map.json
141
- ├── repo_structure.md ← Antes: repo_map.md
142
- └── repo_modules.json ← Antes: repo-map.json
143
- ```
144
-
145
- **Opción B: Eliminar duplicado**
146
- - Mantener solo `repo_map.json` y eliminar `repo-map.json`
147
- - Mover la funcionalidad de `repo-map.json` a `repo_map.json`
148
-
149
- ---
150
-
151
- ## 🔍 PUNTO 4: INCONSISTENCIAS DE NOMENCLATURA
152
-
153
- ### Convenciones Actuales (Mixtas):
154
-
155
- | Archivo | Convención | Consistencia |
156
- |---------|------------|:------------:|
157
- | `ai_context.md` | snake_case | ✅ Correcto |
158
- | `tech_stack.md` | snake_case | ✅ Correcto |
159
- | `repo_map.md` | snake_case | ✅ Correcto |
160
- | `repo_map.json` | snake_case | ✅ Correcto |
161
- | `repo-map.json` | kebab-case | ❌ Inconsistente |
162
- | `module-graph.json` | kebab-case | ❌ Inconsistente |
163
- | `symbol-graph.json` | kebab-case | ❌ Inconsistente |
164
- | `knowledge-graph.json` | kebab-case | ❌ Inconsistente |
165
- | `symbol-references.json` | kebab-case | ❌ Inconsistente |
166
- | `index-state.json` | kebab-case | ❌ Inconsistente |
167
-
168
- ### Archivos que deberían cambiar a snake_case:
169
-
170
- ```
171
- Antes: Después:
172
- repo-map.json → repo_map.json (o repo_modules.json)
173
- module-graph.json → module_graph.json
174
- symbol-graph.json → symbol_graph.json
175
- knowledge-graph.json → knowledge_graph.json
176
- symbol-references.json → symbol_references.json
177
- index-state.json → index_state.json
178
- ```
179
-
180
- ### En el código fuente:
181
-
182
- **Ubicaciones donde se definen los nombres:**
183
-
184
- 1. **src/commands/ai-first.ts**
185
- - Línea 1122: `repo-map.json`
186
- - Línea 1150: `module-graph.json`
187
- - Línea 1177: `symbol-graph.json`
188
- - Línea 1178: `symbol-references.json`
189
- - Línea 1275: `knowledge-graph.json`
190
- - Línea 1311: `index-state.json`
191
-
192
- 2. **src/core/indexer.ts**
193
- - Posiblemente genera `index-state.json`
194
-
195
- ### Convenciones detectadas en convenciones.ts:
196
-
197
- El analizador detecta automáticamente:
198
- - `camelCase` para variables
199
- - `kebab-case` o `snake_case` para archivos
200
- - `PascalCase` para clases
201
-
202
- **⚠️ IRONÍA:** El propio CLI tiene inconsistencias en sus convenciones de archivos.
203
-
204
- ---
205
-
206
- ## 🔍 PUNTO 5: ORGANIZACIÓN DE CARPETA ai/
207
-
208
- ### Problema Actual:
209
-
210
- La carpeta `ai/` mezcla:
211
- 1. ✅ Archivos esenciales generados
212
- 2. ⚠️ Archivos temporales/cache
213
- 3. ❌ Archivos que deberían estar en subcarpetas
214
-
215
- ### Estructura Actual (Problemas):
216
-
217
- ```
218
- ai/
219
- ├── ai_context.md ← ✅ Esencial
220
- ├── ai_rules.md ← ✅ Esencial
221
- ├── architecture.md ← ✅ Esencial
222
- ├── conventions.md ← ✅ Esencial
223
- ├── dependencies.json ← ✅ Esencial
224
- ├── entrypoints.md ← ✅ Esencial
225
- ├── symbols.json ← ✅ Esencial
226
- ├── tech_stack.md ← ✅ Esencial
227
- ├── cache.json ← ⚠️ Temporal (37KB)
228
- ├── embeddings.json ← ⚠️ Temporal (706KB!)
229
- ├── index-state.json ← ⚠️ Temporal (69KB)
230
- ├── hierarchy.json ← ⚠️ Temporal
231
- ├── files.json ← ⚠️ Podría ser temporal
232
- ├── modules.json ← ⚠️ Podría ser temporal
233
- ├── project.json ← ⚠️ Podría ser temporal
234
- ├── schema.json ← ⚠️ Podría ser temporal
235
- ├── tools.json ← ⚠️ Podría ser temporal
236
- ├── index.db ← ✅ Base de datos SQLite
237
- ├── repo_map.json ← ✅ Esencial
238
- ├── repo_map.md ← ✅ Esencial
239
- ├── repo-map.json ← ❌ Duplicado (ver punto 3)
240
- ├── summary.md ← ✅ Esencial
241
- ├── context/ ← ✅ Subcarpeta correcta
242
- │ ├── features/
243
- │ └── flows/
244
- ├── graph/ ← ✅ Subcarpeta correcta
245
- │ ├── knowledge-graph.json
246
- │ ├── module-graph.json
247
- │ └── symbol-graph.json
248
- └── git/ ← ⚠️ Debería ser .ai-git/ o similar
249
- ├── commit-activity.json
250
- ├── recent-features.json
251
- ├── recent-files.json
252
- └── recent-flows.json
253
- ```
254
-
255
- ### Solución Recomendada - Estructura Limpia:
256
-
257
- ```
258
- ai/ ← Solo archivos esenciales
259
- ├── ai_context.md ← Contexto principal
260
- ├── ai_rules.md ← Reglas del proyecto
261
- ├── architecture.md ← Arquitectura
262
- ├── conventions.md ← Convenciones
263
- ├── dependencies.json ← Dependencias
264
- ├── entrypoints.md ← Entrypoints
265
- ├── repo_structure.json ← Estructura (repo_map.json)
266
- ├── repo_structure.md ← Estructura legible
267
- ├── symbols.json ← Símbolos
268
- ├── tech_stack.md ← Stack tecnológico
269
- ├── index.db ← Base de datos SQLite
270
- ├── context/ ← Contextos
271
- │ ├── features/
272
- │ └── flows/
273
- └── graph/ ← Grafos
274
- ├── knowledge_graph.json
275
- ├── module_graph.json
276
- └── symbol_graph.json
277
-
278
- .ai-cache/ ← Nueva carpeta (en .gitignore)
279
- ├── cache.json
280
- ├── embeddings.json
281
- ├── index_state.json
282
- ├── files.json
283
- ├── modules.json
284
- ├── project.json
285
- ├── schema.json
286
- └── tools.json
287
-
288
- .ai-git/ ← Nueva carpeta (en .gitignore)
289
- ├── commit-activity.json
290
- ├── recent-features.json
291
- ├── recent-files.json
292
- └── recent-flows.json
293
- ```
294
-
295
- ### Archivos que deberían estar en .gitignore:
296
-
297
- ```gitignore
298
- # AI-First CLI cache and temporary files
299
- .ai-cache/
300
- .ai-git/
301
- ai/.cache/
302
- ai/*.json~ # Backup files
303
- ai/*.tmp
304
- ```
305
-
306
- ---
307
-
308
- ## 🔍 PROBLEMAS ADICIONALES DESCUBIERTOS
309
-
310
- ### 6. TAMAÑO DE EMBEDDINGS.JSON
311
-
312
- **Problema:** `embeddings.json` es extremadamente grande (706KB en el ejemplo).
313
-
314
- **Impacto:**
315
- - Lentitud al leer/escribir
316
- - Ocupación innecesaria de disco
317
- - Problemas de rendimiento en repos grandes
318
-
319
- **Solución:**
320
- 1. Mover a SQLite en lugar de JSON
321
- 2. O usar compresión
322
- 3. O dividir en chunks
323
-
324
- ### 7. NOMENCLATURA DE FLOWS INCONSISTENTE
325
-
326
- **Problema:** Algunos flows tienen nombres con puntos o guiones bajos raros:
327
- ```
328
- ai/context/flows/
329
- ├── auth..json ← Doble punto
330
- ├── users..json ← Doble punto
331
- ├── add_.json ← Guion bajo al final
332
- ├── list_.json ← Guion bajo al final
333
- ├── remove_.json ← Guion bajo al final
334
- ```
335
-
336
- **Causa:** Probablemente la función que genera nombres de archivos no sanitiza correctamente.
337
-
338
- **Ubicación:** `src/core/semanticContexts.ts`
339
-
340
- ### 8. SÍMBOLOS VACÍOS
341
-
342
- **Problema:** `ai/symbols.json` tiene 2 bytes (vacío).
343
-
344
- **Ubicación:** En el repositorio principal (no en test-projects).
345
-
346
- **Causa:** Probablemente se generó en el directorio incorrecto o con errores.
347
-
348
- ### 9. DUPLICACIÓN DE CARPETAS CONTEXT
349
-
350
- **Problema:** Hay dos carpetas context:
351
- ```
352
- ai/
353
- ├── context/ ← Generada por CLI
354
- │ ├── features/
355
- │ └── flows/
356
- └── ccp/ ← Context Control Packs
357
- └── jira-123/
358
- └── context.json
359
- ```
360
-
361
- **Confusión:** Los usuarios no saben cuál usar.
362
-
363
- **Solución:** Consolidar o documentar claramente la diferencia.
364
-
365
- ### 10. DOCUMENTACIÓN DESACTUALIZADA
366
-
367
- **README.es.md:**
368
- - Probablemente no está sincronizado con README.md
369
- - No menciona los nuevos comandos (update, graph, git)
370
- - No menciona los bugs corregidos
371
-
372
- **CHANGELOG:**
373
- - Solo existe en inglés
374
- - Debería tener versión en español
375
-
376
- ### 11. CONSOLA MUESTRA MENSAJES DUPLICADOS
377
-
378
- **Problema:** Al ejecutar `init`, se muestra:
379
- ```
380
- ✨ Done! Created the following files:
381
- ✨ Done! Created the following files:
382
- ✨ Done! Created the following files:
383
- ```
384
-
385
- **Causa:** Probablemente el console.log está en un loop o se llama múltiples veces.
386
-
387
- **Ubicación:** `src/commands/ai-first.ts`
388
-
389
- ---
390
-
391
- ## 📋 RESUMEN DE PRIORIDADES
392
-
393
- ### 🔴 CRÍTICO (Para v1.1.6)
394
- 1. Crear test projects para Django y Laravel (frameworks populares sin test)
395
- 2. Corregir mensajes duplicados en consola
396
- 3. Sanitizar nombres de archivos de flows
397
-
398
- ### 🟠 ALTA (Para v1.2.0)
399
- 4. Reorganizar estructura de ai/ (mover temporales a .ai-cache/)
400
- 5. Consolidar archivos duplicados (repo-map vs repo_map)
401
- 6. Estandarizar nomenclatura a snake_case
402
-
403
- ### 🟡 MEDIA (Para v1.2.x)
404
- 7. Optimizar embeddings.json (mover a SQLite)
405
- 8. Crear test projects para Rails, Flask, Spring Boot
406
- 9. Mejorar manejo de errores en comando git
407
-
408
- ### 🟢 BAJA (Para v1.3.0)
409
- 10. Crear CHANGELOG.es.md
410
- 11. Sincronizar README.es.md
411
- 12. Consolidar carpetas context/ vs ccp/
412
-
413
- ---
414
-
415
- ## 📁 ARCHIVOS CREADOS EN ESTE ANÁLISIS
416
-
417
- 1. **BUGS.md** - Actualizado con 7 issues nuevos
418
- 2. **ANALISIS_MEJORAS.md** - Análisis detallado completo
419
- 3. **TEST_RESULTS_*.md** - Resultados de pruebas exhaustivas
420
-
421
- ---
422
-
423
- *Análisis completado: 2026-03-17*
424
- *Versión analizada: 1.1.5*