ai-first-cli 1.1.2 → 1.1.5

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 (264) hide show
  1. package/ANALISIS_MEJORAS.md +327 -0
  2. package/BUGS.md +455 -0
  3. package/CHANGELOG.md +100 -225
  4. package/TEST_RESULTS.md +198 -0
  5. package/TEST_RESULTS_COMPARATIVE.md +159 -0
  6. package/TEST_RESULTS_COMPLETE.md +127 -0
  7. package/TEST_RESULTS_COMPREHENSIVE.md +208 -0
  8. package/ai/ai_context.md +17 -10
  9. package/ai/ai_rules.md +5 -3
  10. package/ai/architecture.md +28 -7
  11. package/ai/cache.json +832 -52
  12. package/ai/context/features/commands.json +18 -0
  13. package/ai/context/features/src.json +61 -0
  14. package/ai/context/features/test-projects.json +56 -0
  15. package/ai/context/flows/account.json +9 -0
  16. package/ai/context/flows/add_.json +9 -0
  17. package/ai/context/flows/ai-first.json +9 -0
  18. package/ai/context/flows/auth..json +10 -0
  19. package/ai/context/flows/auth.json +12 -0
  20. package/ai/context/flows/dashboard.json +9 -0
  21. package/ai/context/flows/doctor.json +9 -0
  22. package/ai/context/flows/explore.json +9 -0
  23. package/ai/context/flows/list_.json +9 -0
  24. package/ai/context/flows/login.json +9 -0
  25. package/ai/context/flows/opportunity.json +9 -0
  26. package/ai/context/flows/remove_.json +9 -0
  27. package/ai/context/flows/user.json +14 -0
  28. package/ai/context/flows/users..json +10 -0
  29. package/ai/context/flows/users.json +9 -0
  30. package/ai/conventions.md +3 -2
  31. package/ai/dependencies.json +429 -251
  32. package/ai/entrypoints.md +10 -0
  33. package/ai/files.json +822 -46
  34. package/ai/git/commit-activity.json +126 -39
  35. package/ai/git/recent-features.json +3 -1
  36. package/ai/git/recent-files.json +6 -6
  37. package/ai/git/recent-flows.json +3 -1
  38. package/ai/graph/knowledge-graph.json +954 -182
  39. package/ai/graph/module-graph.json +270 -0
  40. package/ai/graph/symbol-graph.json +48991 -16523
  41. package/ai/graph/symbol-references.json +953 -56
  42. package/ai/hierarchy.json +3 -24
  43. package/ai/index-state.json +1261 -253
  44. package/ai/index.db +0 -0
  45. package/ai/modules.json +226 -0
  46. package/ai/project.json +29 -0
  47. package/ai/repo-map.json +2284 -250
  48. package/ai/repo_map.json +2731 -231
  49. package/ai/repo_map.md +559 -2
  50. package/ai/schema.json +5 -0
  51. package/ai/summary.md +16 -7
  52. package/ai/tech_stack.md +4 -1
  53. package/ai/tools.json +10 -0
  54. package/dist/analyzers/dependencies.d.ts.map +1 -1
  55. package/dist/analyzers/dependencies.js +8 -16
  56. package/dist/analyzers/dependencies.js.map +1 -1
  57. package/dist/analyzers/symbols.d.ts.map +1 -1
  58. package/dist/analyzers/symbols.js +60 -0
  59. package/dist/analyzers/symbols.js.map +1 -1
  60. package/dist/commands/ai-first.d.ts +1 -0
  61. package/dist/commands/ai-first.d.ts.map +1 -1
  62. package/dist/commands/ai-first.js +29 -6
  63. package/dist/commands/ai-first.js.map +1 -1
  64. package/dist/core/semanticContexts.d.ts.map +1 -1
  65. package/dist/core/semanticContexts.js +48 -26
  66. package/dist/core/semanticContexts.js.map +1 -1
  67. package/dist/core/symbolGraph.d.ts.map +1 -1
  68. package/dist/core/symbolGraph.js +14 -2
  69. package/dist/core/symbolGraph.js.map +1 -1
  70. package/dist/utils/fileUtils.d.ts.map +1 -1
  71. package/dist/utils/fileUtils.js +5 -0
  72. package/dist/utils/fileUtils.js.map +1 -1
  73. package/package.json +2 -2
  74. package/src/analyzers/dependencies.ts +10 -20
  75. package/src/analyzers/symbols.ts +64 -0
  76. package/src/commands/ai-first.ts +32 -8
  77. package/src/core/semanticContexts.ts +54 -29
  78. package/src/core/symbolGraph.ts +16 -2
  79. package/src/utils/fileUtils.ts +5 -0
  80. package/test-projects/express-api/ai/ai_context.md +112 -0
  81. package/test-projects/express-api/ai/ai_rules.md +50 -0
  82. package/test-projects/express-api/ai/architecture.md +62 -0
  83. package/test-projects/express-api/ai/cache.json +125 -0
  84. package/test-projects/express-api/ai/context/features/controllers.json +13 -0
  85. package/test-projects/express-api/ai/context/features/services.json +13 -0
  86. package/test-projects/express-api/ai/context/flows/auth.json +12 -0
  87. package/test-projects/express-api/ai/context/flows/user.json +13 -0
  88. package/test-projects/express-api/ai/conventions.md +51 -0
  89. package/test-projects/express-api/ai/dependencies.json +54 -0
  90. package/test-projects/express-api/ai/entrypoints.md +17 -0
  91. package/test-projects/express-api/ai/files.json +169 -0
  92. package/test-projects/express-api/ai/graph/knowledge-graph.json +98 -0
  93. package/test-projects/express-api/ai/graph/module-graph.json +44 -0
  94. package/test-projects/express-api/ai/graph/symbol-graph.json +882 -0
  95. package/test-projects/express-api/ai/graph/symbol-references.json +51 -0
  96. package/test-projects/express-api/ai/index-state.json +238 -0
  97. package/test-projects/express-api/ai/index.db +0 -0
  98. package/test-projects/express-api/ai/modules.json +30 -0
  99. package/test-projects/express-api/ai/project.json +15 -0
  100. package/test-projects/express-api/ai/repo-map.json +291 -0
  101. package/test-projects/express-api/ai/repo_map.json +100 -0
  102. package/test-projects/express-api/ai/repo_map.md +36 -0
  103. package/test-projects/express-api/ai/schema.json +5 -0
  104. package/test-projects/express-api/ai/summary.md +14 -0
  105. package/test-projects/express-api/ai/symbols.json +1174 -0
  106. package/test-projects/express-api/ai/tech_stack.md +38 -0
  107. package/test-projects/express-api/ai/tools.json +10 -0
  108. package/test-projects/express-api/controllers/authController.js +32 -0
  109. package/test-projects/express-api/controllers/userController.js +51 -0
  110. package/test-projects/express-api/index.js +21 -0
  111. package/test-projects/express-api/middleware/authMiddleware.js +30 -0
  112. package/test-projects/express-api/models/userRepository.js +25 -0
  113. package/test-projects/express-api/package.json +18 -0
  114. package/test-projects/express-api/services/authService.js +17 -0
  115. package/test-projects/express-api/services/userService.js +28 -0
  116. package/test-projects/nestjs-backend/ai/ai_context.md +110 -0
  117. package/test-projects/nestjs-backend/ai/ai_rules.md +52 -0
  118. package/test-projects/nestjs-backend/ai/architecture.md +43 -0
  119. package/test-projects/nestjs-backend/ai/cache.json +137 -0
  120. package/test-projects/nestjs-backend/ai/context/features/src.json +23 -0
  121. package/test-projects/nestjs-backend/ai/context/flows/auth..json +10 -0
  122. package/test-projects/nestjs-backend/ai/context/flows/users..json +10 -0
  123. package/test-projects/nestjs-backend/ai/conventions.md +52 -0
  124. package/test-projects/nestjs-backend/ai/dependencies.json +152 -0
  125. package/test-projects/nestjs-backend/ai/entrypoints.md +18 -0
  126. package/test-projects/nestjs-backend/ai/files.json +184 -0
  127. package/test-projects/nestjs-backend/ai/graph/knowledge-graph.json +74 -0
  128. package/test-projects/nestjs-backend/ai/graph/module-graph.json +29 -0
  129. package/test-projects/nestjs-backend/ai/graph/symbol-graph.json +304 -0
  130. package/test-projects/nestjs-backend/ai/graph/symbol-references.json +5 -0
  131. package/test-projects/nestjs-backend/ai/index-state.json +259 -0
  132. package/test-projects/nestjs-backend/ai/index.db +0 -0
  133. package/test-projects/nestjs-backend/ai/modules.json +19 -0
  134. package/test-projects/nestjs-backend/ai/project.json +14 -0
  135. package/test-projects/nestjs-backend/ai/repo-map.json +323 -0
  136. package/test-projects/nestjs-backend/ai/repo_map.json +141 -0
  137. package/test-projects/nestjs-backend/ai/repo_map.md +39 -0
  138. package/test-projects/nestjs-backend/ai/schema.json +5 -0
  139. package/test-projects/nestjs-backend/ai/summary.md +11 -0
  140. package/test-projects/nestjs-backend/ai/symbols.json +527 -0
  141. package/test-projects/nestjs-backend/ai/tech_stack.md +37 -0
  142. package/test-projects/nestjs-backend/ai/tools.json +10 -0
  143. package/test-projects/nestjs-backend/package.json +22 -0
  144. package/test-projects/nestjs-backend/src/app.module.ts +8 -0
  145. package/test-projects/nestjs-backend/src/auth/auth.controller.ts +22 -0
  146. package/test-projects/nestjs-backend/src/auth/auth.module.ts +11 -0
  147. package/test-projects/nestjs-backend/src/auth/auth.service.ts +28 -0
  148. package/test-projects/nestjs-backend/src/auth/dto/login.dto.ts +4 -0
  149. package/test-projects/nestjs-backend/src/auth/strategies/jwt.strategy.ts +18 -0
  150. package/test-projects/nestjs-backend/src/main.ts +9 -0
  151. package/test-projects/nestjs-backend/src/users/users.controller.ts +32 -0
  152. package/test-projects/nestjs-backend/src/users/users.module.ts +10 -0
  153. package/test-projects/nestjs-backend/src/users/users.service.ts +42 -0
  154. package/test-projects/nestjs-backend/tsconfig.json +21 -0
  155. package/test-projects/python-cli/__init__.py +1 -0
  156. package/test-projects/python-cli/ai/ai_context.md +94 -0
  157. package/test-projects/python-cli/ai/ai_rules.md +47 -0
  158. package/test-projects/python-cli/ai/architecture.md +49 -0
  159. package/test-projects/python-cli/ai/cache.json +129 -0
  160. package/test-projects/python-cli/ai/context/features/cli.json +16 -0
  161. package/test-projects/python-cli/ai/context/flows/add_.json +9 -0
  162. package/test-projects/python-cli/ai/context/flows/list_.json +9 -0
  163. package/test-projects/python-cli/ai/context/flows/remove_.json +9 -0
  164. package/test-projects/python-cli/ai/conventions.md +51 -0
  165. package/test-projects/python-cli/ai/dependencies.json +66 -0
  166. package/test-projects/python-cli/ai/entrypoints.md +4 -0
  167. package/test-projects/python-cli/ai/files.json +174 -0
  168. package/test-projects/python-cli/ai/graph/knowledge-graph.json +83 -0
  169. package/test-projects/python-cli/ai/graph/module-graph.json +31 -0
  170. package/test-projects/python-cli/ai/graph/symbol-graph.json +358 -0
  171. package/test-projects/python-cli/ai/graph/symbol-references.json +11 -0
  172. package/test-projects/python-cli/ai/index-state.json +245 -0
  173. package/test-projects/python-cli/ai/index.db +0 -0
  174. package/test-projects/python-cli/ai/modules.json +21 -0
  175. package/test-projects/python-cli/ai/project.json +15 -0
  176. package/test-projects/python-cli/ai/repo-map.json +290 -0
  177. package/test-projects/python-cli/ai/repo_map.json +99 -0
  178. package/test-projects/python-cli/ai/repo_map.md +32 -0
  179. package/test-projects/python-cli/ai/schema.json +5 -0
  180. package/test-projects/python-cli/ai/summary.md +11 -0
  181. package/test-projects/python-cli/ai/symbols.json +475 -0
  182. package/test-projects/python-cli/ai/tech_stack.md +30 -0
  183. package/test-projects/python-cli/ai/tools.json +10 -0
  184. package/test-projects/python-cli/cli/__init__.py +1 -0
  185. package/test-projects/python-cli/cli/add_command.py +6 -0
  186. package/test-projects/python-cli/cli/list_command.py +7 -0
  187. package/test-projects/python-cli/cli/remove_command.py +6 -0
  188. package/test-projects/python-cli/main.py +34 -0
  189. package/test-projects/python-cli/models/__init__.py +2 -0
  190. package/test-projects/python-cli/models/task.py +19 -0
  191. package/test-projects/python-cli/models/task_repository.py +44 -0
  192. package/test-projects/react-app/ai/ai_context.md +95 -0
  193. package/test-projects/react-app/ai/ai_rules.md +49 -0
  194. package/test-projects/react-app/ai/architecture.md +33 -0
  195. package/test-projects/react-app/ai/cache.json +129 -0
  196. package/test-projects/react-app/ai/context/features/src.json +18 -0
  197. package/test-projects/react-app/ai/context/flows/dashboard.json +9 -0
  198. package/test-projects/react-app/ai/context/flows/login.json +9 -0
  199. package/test-projects/react-app/ai/context/flows/users.json +9 -0
  200. package/test-projects/react-app/ai/conventions.md +52 -0
  201. package/test-projects/react-app/ai/dependencies.json +128 -0
  202. package/test-projects/react-app/ai/entrypoints.md +4 -0
  203. package/test-projects/react-app/ai/files.json +174 -0
  204. package/test-projects/react-app/ai/graph/knowledge-graph.json +83 -0
  205. package/test-projects/react-app/ai/graph/module-graph.json +31 -0
  206. package/test-projects/react-app/ai/graph/symbol-graph.json +868 -0
  207. package/test-projects/react-app/ai/graph/symbol-references.json +31 -0
  208. package/test-projects/react-app/ai/index-state.json +245 -0
  209. package/test-projects/react-app/ai/index.db +0 -0
  210. package/test-projects/react-app/ai/modules.json +17 -0
  211. package/test-projects/react-app/ai/project.json +15 -0
  212. package/test-projects/react-app/ai/repo-map.json +305 -0
  213. package/test-projects/react-app/ai/repo_map.json +114 -0
  214. package/test-projects/react-app/ai/repo_map.md +31 -0
  215. package/test-projects/react-app/ai/schema.json +5 -0
  216. package/test-projects/react-app/ai/summary.md +11 -0
  217. package/test-projects/react-app/ai/symbols.json +985 -0
  218. package/test-projects/react-app/ai/tech_stack.md +38 -0
  219. package/test-projects/react-app/ai/tools.json +10 -0
  220. package/test-projects/react-app/package.json +16 -0
  221. package/test-projects/react-app/src/App.tsx +21 -0
  222. package/test-projects/react-app/src/context/AuthContext.tsx +41 -0
  223. package/test-projects/react-app/src/hooks/useAuth.ts +10 -0
  224. package/test-projects/react-app/src/main.tsx +10 -0
  225. package/test-projects/react-app/src/pages/DashboardPage.tsx +17 -0
  226. package/test-projects/react-app/src/pages/LoginPage.tsx +41 -0
  227. package/test-projects/react-app/src/pages/UsersPage.tsx +36 -0
  228. package/test-projects/react-app/src/services/userService.ts +37 -0
  229. package/test-projects/salesforce-cli/.forceignore +27 -0
  230. package/test-projects/salesforce-cli/ai/ai_context.md +88 -0
  231. package/test-projects/salesforce-cli/ai/ai_rules.md +47 -0
  232. package/test-projects/salesforce-cli/ai/architecture.md +33 -0
  233. package/test-projects/salesforce-cli/ai/cache.json +105 -0
  234. package/test-projects/salesforce-cli/ai/context/features/force-app.json +14 -0
  235. package/test-projects/salesforce-cli/ai/context/flows/account.json +9 -0
  236. package/test-projects/salesforce-cli/ai/context/flows/opportunity.json +9 -0
  237. package/test-projects/salesforce-cli/ai/conventions.md +51 -0
  238. package/test-projects/salesforce-cli/ai/dependencies.json +6 -0
  239. package/test-projects/salesforce-cli/ai/entrypoints.md +4 -0
  240. package/test-projects/salesforce-cli/ai/files.json +144 -0
  241. package/test-projects/salesforce-cli/ai/graph/knowledge-graph.json +64 -0
  242. package/test-projects/salesforce-cli/ai/graph/module-graph.json +13 -0
  243. package/test-projects/salesforce-cli/ai/graph/symbol-graph.json +148 -0
  244. package/test-projects/salesforce-cli/ai/graph/symbol-references.json +1 -0
  245. package/test-projects/salesforce-cli/ai/index-state.json +203 -0
  246. package/test-projects/salesforce-cli/ai/index.db +0 -0
  247. package/test-projects/salesforce-cli/ai/modules.json +12 -0
  248. package/test-projects/salesforce-cli/ai/project.json +14 -0
  249. package/test-projects/salesforce-cli/ai/repo-map.json +251 -0
  250. package/test-projects/salesforce-cli/ai/repo_map.json +69 -0
  251. package/test-projects/salesforce-cli/ai/repo_map.md +21 -0
  252. package/test-projects/salesforce-cli/ai/schema.json +5 -0
  253. package/test-projects/salesforce-cli/ai/summary.md +11 -0
  254. package/test-projects/salesforce-cli/ai/symbols.json +245 -0
  255. package/test-projects/salesforce-cli/ai/tech_stack.md +30 -0
  256. package/test-projects/salesforce-cli/ai/tools.json +10 -0
  257. package/test-projects/salesforce-cli/force-app/main/default/classes/AccountController.cls +24 -0
  258. package/test-projects/salesforce-cli/force-app/main/default/classes/OpportunityController.cls +25 -0
  259. package/test-projects/salesforce-cli/force-app/main/default/objects/Project__c.object.xml +45 -0
  260. package/test-projects/salesforce-cli/force-app/main/default/triggers/AccountTrigger.trigger +33 -0
  261. package/test-projects/salesforce-cli/sfdx-project.json +11 -0
  262. package/tests/e2e/README.md +85 -0
  263. package/tests/e2e/run-e2e.sh +88 -0
  264. package/tests/semanticContexts.test.ts +23 -25
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "commands",
3
+ "path": "src/commands",
4
+ "files": [
5
+ "src/commands/ai-first.ts",
6
+ "src/commands/doctor.ts",
7
+ "src/commands/explore.ts"
8
+ ],
9
+ "entrypoints": [
10
+ "src/commands/ai-first.ts",
11
+ "src/commands/doctor.ts",
12
+ "src/commands/explore.ts"
13
+ ],
14
+ "dependencies": [
15
+ "docs",
16
+ "src"
17
+ ]
18
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "src",
3
+ "path": "src",
4
+ "files": [
5
+ "src/analyzers/aiRules.ts",
6
+ "src/analyzers/androidResources.ts",
7
+ "src/analyzers/architecture.ts",
8
+ "src/analyzers/conventions.ts",
9
+ "src/analyzers/dependencies.ts",
10
+ "src/analyzers/entrypoints.ts",
11
+ "src/analyzers/gradleModules.ts",
12
+ "src/analyzers/symbols.ts",
13
+ "src/analyzers/techStack.ts",
14
+ "src/commands/ai-first.ts",
15
+ "src/commands/doctor.ts",
16
+ "src/commands/explore.ts",
17
+ "src/core/adapters/adapterRegistry.ts",
18
+ "src/core/adapters/baseAdapter.ts",
19
+ "src/core/adapters/community/fastapiAdapter.ts",
20
+ "src/core/adapters/community/index.ts",
21
+ "src/core/adapters/community/laravelAdapter.ts",
22
+ "src/core/adapters/community/nestjsAdapter.ts",
23
+ "src/core/adapters/community/phoenixAdapter.ts",
24
+ "src/core/adapters/community/springBootAdapter.ts",
25
+ "src/core/adapters/dotnetAdapter.ts",
26
+ "src/core/adapters/index.ts",
27
+ "src/core/adapters/javascriptAdapter.ts",
28
+ "src/core/adapters/pythonAdapter.ts",
29
+ "src/core/adapters/railsAdapter.ts",
30
+ "src/core/adapters/salesforceAdapter.ts",
31
+ "src/core/adapters/sdk.ts",
32
+ "src/core/aiContextGenerator.ts",
33
+ "src/core/ccp.ts",
34
+ "src/core/chunker.ts",
35
+ "src/core/contextGenerator.ts",
36
+ "src/core/contextPacket.ts",
37
+ "src/core/embeddings.ts",
38
+ "src/core/gitAnalyzer.ts",
39
+ "src/core/hierarchyGenerator.ts",
40
+ "src/core/incrementalAnalyzer.ts",
41
+ "src/core/indexState.ts",
42
+ "src/core/indexer.ts",
43
+ "src/core/knowledgeGraphBuilder.ts",
44
+ "src/core/lazyAnalyzer.ts",
45
+ "src/core/moduleGraph.ts",
46
+ "src/core/repoMapper.ts",
47
+ "src/core/repoScanner.ts",
48
+ "src/core/schema.ts",
49
+ "src/core/semanticContexts.ts",
50
+ "src/core/symbolGraph.ts",
51
+ "src/index.ts",
52
+ "src/types/sql.js.d.ts",
53
+ "src/utils/fileUtils.ts"
54
+ ],
55
+ "entrypoints": [
56
+ "src/commands/ai-first.ts",
57
+ "src/commands/doctor.ts",
58
+ "src/commands/explore.ts"
59
+ ],
60
+ "dependencies": []
61
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "test-projects",
3
+ "path": "test-projects",
4
+ "files": [
5
+ "test-projects/express-api/controllers/authController.js",
6
+ "test-projects/express-api/controllers/userController.js",
7
+ "test-projects/express-api/index.js",
8
+ "test-projects/express-api/middleware/authMiddleware.js",
9
+ "test-projects/express-api/models/userRepository.js",
10
+ "test-projects/express-api/services/authService.js",
11
+ "test-projects/express-api/services/userService.js",
12
+ "test-projects/nestjs-backend/src/app.module.ts",
13
+ "test-projects/nestjs-backend/src/auth/auth.controller.ts",
14
+ "test-projects/nestjs-backend/src/auth/auth.module.ts",
15
+ "test-projects/nestjs-backend/src/auth/auth.service.ts",
16
+ "test-projects/nestjs-backend/src/auth/dto/login.dto.ts",
17
+ "test-projects/nestjs-backend/src/auth/strategies/jwt.strategy.ts",
18
+ "test-projects/nestjs-backend/src/main.ts",
19
+ "test-projects/nestjs-backend/src/users/users.controller.ts",
20
+ "test-projects/nestjs-backend/src/users/users.module.ts",
21
+ "test-projects/nestjs-backend/src/users/users.service.ts",
22
+ "test-projects/python-cli/__init__.py",
23
+ "test-projects/python-cli/cli/__init__.py",
24
+ "test-projects/python-cli/cli/add_command.py",
25
+ "test-projects/python-cli/cli/list_command.py",
26
+ "test-projects/python-cli/cli/remove_command.py",
27
+ "test-projects/python-cli/main.py",
28
+ "test-projects/python-cli/models/__init__.py",
29
+ "test-projects/python-cli/models/task.py",
30
+ "test-projects/python-cli/models/task_repository.py",
31
+ "test-projects/react-app/src/App.tsx",
32
+ "test-projects/react-app/src/context/AuthContext.tsx",
33
+ "test-projects/react-app/src/hooks/useAuth.ts",
34
+ "test-projects/react-app/src/main.tsx",
35
+ "test-projects/react-app/src/pages/DashboardPage.tsx",
36
+ "test-projects/react-app/src/pages/LoginPage.tsx",
37
+ "test-projects/react-app/src/pages/UsersPage.tsx",
38
+ "test-projects/react-app/src/services/userService.ts",
39
+ "test-projects/salesforce-cli/force-app/main/default/classes/AccountController.cls",
40
+ "test-projects/salesforce-cli/force-app/main/default/classes/OpportunityController.cls",
41
+ "test-projects/salesforce-cli/force-app/main/default/triggers/AccountTrigger.trigger"
42
+ ],
43
+ "entrypoints": [
44
+ "test-projects/express-api/controllers/authController.js",
45
+ "test-projects/express-api/controllers/userController.js",
46
+ "test-projects/express-api/services/authService.js",
47
+ "test-projects/express-api/services/userService.js",
48
+ "test-projects/nestjs-backend/src/auth/auth.controller.ts",
49
+ "test-projects/nestjs-backend/src/auth/auth.service.ts",
50
+ "test-projects/nestjs-backend/src/users/users.controller.ts",
51
+ "test-projects/nestjs-backend/src/users/users.service.ts",
52
+ "test-projects/python-cli/cli/add_command.py",
53
+ "test-projects/python-cli/cli/list_command.py"
54
+ ],
55
+ "dependencies": []
56
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "account",
3
+ "entrypoint": "test-projects/salesforce-cli/force-app/main/default/classes/AccountController.cls",
4
+ "files": [
5
+ "test-projects/salesforce-cli/force-app/main/default/classes/AccountController.cls"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "add_",
3
+ "entrypoint": "test-projects/python-cli/cli/add_command.py",
4
+ "files": [
5
+ "test-projects/python-cli/cli/add_command.py"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "ai-first",
3
+ "entrypoint": "src/commands/ai-first.ts",
4
+ "files": [
5
+ "src/commands/ai-first.ts"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "auth.",
3
+ "entrypoint": "test-projects/nestjs-backend/src/auth/auth.controller.ts",
4
+ "files": [
5
+ "test-projects/nestjs-backend/src/auth/auth.controller.ts",
6
+ "test-projects/nestjs-backend/src/auth/auth.service.ts"
7
+ ],
8
+ "depth": 0,
9
+ "layers": []
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "auth",
3
+ "entrypoint": "test-projects/express-api/controllers/authController.js",
4
+ "files": [
5
+ "test-projects/express-api/controllers/authController.js",
6
+ "test-projects/express-api/services/authService.js"
7
+ ],
8
+ "depth": 1,
9
+ "layers": [
10
+ "service"
11
+ ]
12
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "dashboard",
3
+ "entrypoint": "test-projects/react-app/src/pages/DashboardPage.tsx",
4
+ "files": [
5
+ "test-projects/react-app/src/pages/DashboardPage.tsx"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "doctor",
3
+ "entrypoint": "src/commands/doctor.ts",
4
+ "files": [
5
+ "src/commands/doctor.ts"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "explore",
3
+ "entrypoint": "src/commands/explore.ts",
4
+ "files": [
5
+ "src/commands/explore.ts"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "list_",
3
+ "entrypoint": "test-projects/python-cli/cli/list_command.py",
4
+ "files": [
5
+ "test-projects/python-cli/cli/list_command.py"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "login",
3
+ "entrypoint": "test-projects/react-app/src/pages/LoginPage.tsx",
4
+ "files": [
5
+ "test-projects/react-app/src/pages/LoginPage.tsx"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "opportunity",
3
+ "entrypoint": "test-projects/salesforce-cli/force-app/main/default/classes/OpportunityController.cls",
4
+ "files": [
5
+ "test-projects/salesforce-cli/force-app/main/default/classes/OpportunityController.cls"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "remove_",
3
+ "entrypoint": "test-projects/python-cli/cli/remove_command.py",
4
+ "files": [
5
+ "test-projects/python-cli/cli/remove_command.py"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "user",
3
+ "entrypoint": "test-projects/express-api/controllers/userController.js",
4
+ "files": [
5
+ "test-projects/express-api/controllers/userController.js",
6
+ "test-projects/express-api/models/userRepository.js",
7
+ "test-projects/express-api/services/userService.js",
8
+ "test-projects/react-app/src/services/userService.ts"
9
+ ],
10
+ "depth": 1,
11
+ "layers": [
12
+ "service"
13
+ ]
14
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "users.",
3
+ "entrypoint": "test-projects/nestjs-backend/src/users/users.controller.ts",
4
+ "files": [
5
+ "test-projects/nestjs-backend/src/users/users.controller.ts",
6
+ "test-projects/nestjs-backend/src/users/users.service.ts"
7
+ ],
8
+ "depth": 0,
9
+ "layers": []
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "users",
3
+ "entrypoint": "test-projects/react-app/src/pages/UsersPage.tsx",
4
+ "files": [
5
+ "test-projects/react-app/src/pages/UsersPage.tsx"
6
+ ],
7
+ "depth": 0,
8
+ "layers": []
9
+ }
package/ai/conventions.md CHANGED
@@ -5,6 +5,7 @@
5
5
 
6
6
  ## Project Structure
7
7
  - **Source**: src/
8
+ - **Tests**: test/
8
9
 
9
10
  ## Code Style
10
11
  - **Semicolons**: Required
@@ -16,7 +17,7 @@
16
17
  |---------|------------|
17
18
  | Files | PascalCase |
18
19
  | Components | unknown |
19
- | Test Files | unknown |
20
+ | Test Files | *.test.{ts,js} |
20
21
  | Directories | src/ |
21
22
 
22
23
  ## Project Structure
@@ -24,7 +25,7 @@
24
25
  | Directory | Location |
25
26
  |-----------|----------|
26
27
  | Source | src/ |
27
- | Tests | unknown |
28
+ | Tests | test/ |
28
29
  | Config | unknown |
29
30
 
30
31
  ## Code Style