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,251 @@
1
+ {
2
+ "generated": "2026-03-18T01:15:17.706Z",
3
+ "totalFiles": 22,
4
+ "structure": {
5
+ "ai": {
6
+ "type": "directory",
7
+ "children": {
8
+ "ai_context.md": {
9
+ "type": "file",
10
+ "extension": "md"
11
+ },
12
+ "ai_rules.md": {
13
+ "type": "file",
14
+ "extension": "md"
15
+ },
16
+ "architecture.md": {
17
+ "type": "file",
18
+ "extension": "md"
19
+ },
20
+ "context": {
21
+ "type": "directory",
22
+ "children": {
23
+ "features": {
24
+ "type": "directory",
25
+ "children": {
26
+ "force-app.json": {
27
+ "type": "file",
28
+ "extension": "json"
29
+ }
30
+ }
31
+ },
32
+ "flows": {
33
+ "type": "directory",
34
+ "children": {
35
+ "account.json": {
36
+ "type": "file",
37
+ "extension": "json"
38
+ },
39
+ "opportunity.json": {
40
+ "type": "file",
41
+ "extension": "json"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ },
47
+ "conventions.md": {
48
+ "type": "file",
49
+ "extension": "md"
50
+ },
51
+ "dependencies.json": {
52
+ "type": "file",
53
+ "extension": "json"
54
+ },
55
+ "entrypoints.md": {
56
+ "type": "file",
57
+ "extension": "md"
58
+ },
59
+ "modules.json": {
60
+ "type": "file",
61
+ "extension": "json"
62
+ },
63
+ "project.json": {
64
+ "type": "file",
65
+ "extension": "json"
66
+ },
67
+ "repo_map.json": {
68
+ "type": "file",
69
+ "extension": "json"
70
+ },
71
+ "repo_map.md": {
72
+ "type": "file",
73
+ "extension": "md"
74
+ },
75
+ "schema.json": {
76
+ "type": "file",
77
+ "extension": "json"
78
+ },
79
+ "summary.md": {
80
+ "type": "file",
81
+ "extension": "md"
82
+ },
83
+ "symbols.json": {
84
+ "type": "file",
85
+ "extension": "json"
86
+ },
87
+ "tech_stack.md": {
88
+ "type": "file",
89
+ "extension": "md"
90
+ },
91
+ "tools.json": {
92
+ "type": "file",
93
+ "extension": "json"
94
+ }
95
+ }
96
+ },
97
+ "force-app": {
98
+ "type": "directory",
99
+ "children": {
100
+ "main": {
101
+ "type": "directory",
102
+ "children": {
103
+ "default": {
104
+ "type": "directory",
105
+ "children": {
106
+ "classes": {
107
+ "type": "directory",
108
+ "children": {
109
+ "AccountController.cls": {
110
+ "type": "file",
111
+ "extension": "cls"
112
+ },
113
+ "OpportunityController.cls": {
114
+ "type": "file",
115
+ "extension": "cls"
116
+ }
117
+ }
118
+ },
119
+ "triggers": {
120
+ "type": "directory",
121
+ "children": {
122
+ "AccountTrigger.trigger": {
123
+ "type": "file",
124
+ "extension": "trigger"
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ },
134
+ "sfdx-project.json": {
135
+ "type": "file",
136
+ "extension": "json"
137
+ }
138
+ },
139
+ "files": [
140
+ {
141
+ "path": "ai/ai_context.md",
142
+ "name": "ai_context.md",
143
+ "extension": "md"
144
+ },
145
+ {
146
+ "path": "ai/ai_rules.md",
147
+ "name": "ai_rules.md",
148
+ "extension": "md"
149
+ },
150
+ {
151
+ "path": "ai/architecture.md",
152
+ "name": "architecture.md",
153
+ "extension": "md"
154
+ },
155
+ {
156
+ "path": "ai/context/features/force-app.json",
157
+ "name": "force-app.json",
158
+ "extension": "json"
159
+ },
160
+ {
161
+ "path": "ai/context/flows/account.json",
162
+ "name": "account.json",
163
+ "extension": "json"
164
+ },
165
+ {
166
+ "path": "ai/context/flows/opportunity.json",
167
+ "name": "opportunity.json",
168
+ "extension": "json"
169
+ },
170
+ {
171
+ "path": "ai/conventions.md",
172
+ "name": "conventions.md",
173
+ "extension": "md"
174
+ },
175
+ {
176
+ "path": "ai/dependencies.json",
177
+ "name": "dependencies.json",
178
+ "extension": "json"
179
+ },
180
+ {
181
+ "path": "ai/entrypoints.md",
182
+ "name": "entrypoints.md",
183
+ "extension": "md"
184
+ },
185
+ {
186
+ "path": "ai/modules.json",
187
+ "name": "modules.json",
188
+ "extension": "json"
189
+ },
190
+ {
191
+ "path": "ai/project.json",
192
+ "name": "project.json",
193
+ "extension": "json"
194
+ },
195
+ {
196
+ "path": "ai/repo_map.json",
197
+ "name": "repo_map.json",
198
+ "extension": "json"
199
+ },
200
+ {
201
+ "path": "ai/repo_map.md",
202
+ "name": "repo_map.md",
203
+ "extension": "md"
204
+ },
205
+ {
206
+ "path": "ai/schema.json",
207
+ "name": "schema.json",
208
+ "extension": "json"
209
+ },
210
+ {
211
+ "path": "ai/summary.md",
212
+ "name": "summary.md",
213
+ "extension": "md"
214
+ },
215
+ {
216
+ "path": "ai/symbols.json",
217
+ "name": "symbols.json",
218
+ "extension": "json"
219
+ },
220
+ {
221
+ "path": "ai/tech_stack.md",
222
+ "name": "tech_stack.md",
223
+ "extension": "md"
224
+ },
225
+ {
226
+ "path": "ai/tools.json",
227
+ "name": "tools.json",
228
+ "extension": "json"
229
+ },
230
+ {
231
+ "path": "force-app/main/default/classes/AccountController.cls",
232
+ "name": "AccountController.cls",
233
+ "extension": "cls"
234
+ },
235
+ {
236
+ "path": "force-app/main/default/classes/OpportunityController.cls",
237
+ "name": "OpportunityController.cls",
238
+ "extension": "cls"
239
+ },
240
+ {
241
+ "path": "force-app/main/default/triggers/AccountTrigger.trigger",
242
+ "name": "AccountTrigger.trigger",
243
+ "extension": "trigger"
244
+ },
245
+ {
246
+ "path": "sfdx-project.json",
247
+ "name": "sfdx-project.json",
248
+ "extension": "json"
249
+ }
250
+ ]
251
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "generated": "2026-03-18T01:14:52.668Z",
3
+ "totalFiles": 4,
4
+ "structure": {
5
+ "force-app": {
6
+ "type": "directory",
7
+ "children": {
8
+ "main": {
9
+ "type": "directory",
10
+ "children": {
11
+ "default": {
12
+ "type": "directory",
13
+ "children": {
14
+ "classes": {
15
+ "type": "directory",
16
+ "children": {
17
+ "AccountController.cls": {
18
+ "type": "file",
19
+ "extension": "cls"
20
+ },
21
+ "OpportunityController.cls": {
22
+ "type": "file",
23
+ "extension": "cls"
24
+ }
25
+ }
26
+ },
27
+ "triggers": {
28
+ "type": "directory",
29
+ "children": {
30
+ "AccountTrigger.trigger": {
31
+ "type": "file",
32
+ "extension": "trigger"
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ },
42
+ "sfdx-project.json": {
43
+ "type": "file",
44
+ "extension": "json"
45
+ }
46
+ },
47
+ "files": [
48
+ {
49
+ "path": "force-app/main/default/classes/AccountController.cls",
50
+ "name": "AccountController.cls",
51
+ "extension": "cls"
52
+ },
53
+ {
54
+ "path": "force-app/main/default/classes/OpportunityController.cls",
55
+ "name": "OpportunityController.cls",
56
+ "extension": "cls"
57
+ },
58
+ {
59
+ "path": "force-app/main/default/triggers/AccountTrigger.trigger",
60
+ "name": "AccountTrigger.trigger",
61
+ "extension": "trigger"
62
+ },
63
+ {
64
+ "path": "sfdx-project.json",
65
+ "name": "sfdx-project.json",
66
+ "extension": "json"
67
+ }
68
+ ]
69
+ }
@@ -0,0 +1,21 @@
1
+ # Repository Map
2
+ ## force-app
3
+ - AccountController.cls
4
+ - AccountTrigger.trigger
5
+ - OpportunityController.cls
6
+
7
+ ## sfdx-project.json
8
+ - sfdx-project.json
9
+
10
+
11
+
12
+ # Repository Structure (Tree View)
13
+ ├── force-app/
14
+ │ └── main/
15
+ │ └── default/
16
+ │ ├── classes/
17
+ │ │ ├── AccountController.cls
18
+ │ │ └── OpportunityController.cls
19
+ │ └── triggers/
20
+ │ └── AccountTrigger.trigger
21
+ └── sfdx-project.json
@@ -0,0 +1,5 @@
1
+ {
2
+ "schemaVersion": "1.0",
3
+ "generatedBy": "ai-first",
4
+ "generatedAt": "2026-03-18T01:14:52.676Z"
5
+ }
@@ -0,0 +1,11 @@
1
+ # Repository Summary
2
+ - **Total files**: 4
3
+
4
+ ## Files by Extension
5
+ - .cls: 2
6
+ - .json: 1
7
+ - .trigger: 1
8
+
9
+ ## Files by Directory
10
+ - force-app: 3
11
+ - sfdx-project.json: 1
@@ -0,0 +1,245 @@
1
+ {
2
+ "symbols": {
3
+ "force-app/main/default/classes/AccountController.cls#AccountController": {
4
+ "name": "AccountController",
5
+ "type": "class",
6
+ "file": "force-app/main/default/classes/AccountController.cls",
7
+ "line": 1,
8
+ "module": "force-app",
9
+ "export": true
10
+ },
11
+ "force-app/main/default/classes/AccountController.cls#createAccount": {
12
+ "name": "createAccount",
13
+ "type": "function",
14
+ "file": "force-app/main/default/classes/AccountController.cls",
15
+ "line": 12,
16
+ "module": "force-app",
17
+ "export": true
18
+ },
19
+ "force-app/main/default/classes/AccountController.cls#updateAccountRating": {
20
+ "name": "updateAccountRating",
21
+ "type": "function",
22
+ "file": "force-app/main/default/classes/AccountController.cls",
23
+ "line": 19,
24
+ "module": "force-app",
25
+ "export": true
26
+ },
27
+ "force-app/main/default/classes/OpportunityController.cls#OpportunityController": {
28
+ "name": "OpportunityController",
29
+ "type": "class",
30
+ "file": "force-app/main/default/classes/OpportunityController.cls",
31
+ "line": 1,
32
+ "module": "force-app",
33
+ "export": true
34
+ },
35
+ "force-app/main/default/classes/OpportunityController.cls#closeWon": {
36
+ "name": "closeWon",
37
+ "type": "function",
38
+ "file": "force-app/main/default/classes/OpportunityController.cls",
39
+ "line": 13,
40
+ "module": "force-app",
41
+ "export": true
42
+ },
43
+ "force-app/main/default/classes/OpportunityController.cls#validateOpportunity": {
44
+ "name": "validateOpportunity",
45
+ "type": "function",
46
+ "file": "force-app/main/default/classes/OpportunityController.cls",
47
+ "line": 20,
48
+ "module": "force-app",
49
+ "export": true
50
+ },
51
+ "force-app/main/default/triggers/AccountTrigger.trigger#AccountTrigger": {
52
+ "name": "AccountTrigger",
53
+ "type": "function",
54
+ "file": "force-app/main/default/triggers/AccountTrigger.trigger",
55
+ "line": 1,
56
+ "module": "force-app",
57
+ "export": true
58
+ }
59
+ },
60
+ "total": 7,
61
+ "byType": {
62
+ "class": [
63
+ {
64
+ "id": "force-app/main/default/classes/AccountController.cls#AccountController",
65
+ "name": "AccountController",
66
+ "type": "class",
67
+ "file": "force-app/main/default/classes/AccountController.cls",
68
+ "line": 1,
69
+ "export": true
70
+ },
71
+ {
72
+ "id": "force-app/main/default/classes/OpportunityController.cls#OpportunityController",
73
+ "name": "OpportunityController",
74
+ "type": "class",
75
+ "file": "force-app/main/default/classes/OpportunityController.cls",
76
+ "line": 1,
77
+ "export": true
78
+ }
79
+ ],
80
+ "function": [
81
+ {
82
+ "id": "force-app/main/default/classes/AccountController.cls#createAccount",
83
+ "name": "createAccount",
84
+ "type": "function",
85
+ "file": "force-app/main/default/classes/AccountController.cls",
86
+ "line": 12,
87
+ "export": true
88
+ },
89
+ {
90
+ "id": "force-app/main/default/classes/AccountController.cls#updateAccountRating",
91
+ "name": "updateAccountRating",
92
+ "type": "function",
93
+ "file": "force-app/main/default/classes/AccountController.cls",
94
+ "line": 19,
95
+ "export": true
96
+ },
97
+ {
98
+ "id": "force-app/main/default/classes/OpportunityController.cls#closeWon",
99
+ "name": "closeWon",
100
+ "type": "function",
101
+ "file": "force-app/main/default/classes/OpportunityController.cls",
102
+ "line": 13,
103
+ "export": true
104
+ },
105
+ {
106
+ "id": "force-app/main/default/classes/OpportunityController.cls#validateOpportunity",
107
+ "name": "validateOpportunity",
108
+ "type": "function",
109
+ "file": "force-app/main/default/classes/OpportunityController.cls",
110
+ "line": 20,
111
+ "export": true
112
+ },
113
+ {
114
+ "id": "force-app/main/default/triggers/AccountTrigger.trigger#AccountTrigger",
115
+ "name": "AccountTrigger",
116
+ "type": "function",
117
+ "file": "force-app/main/default/triggers/AccountTrigger.trigger",
118
+ "line": 1,
119
+ "export": true
120
+ }
121
+ ]
122
+ },
123
+ "byFile": {
124
+ "force-app/main/default/classes/AccountController.cls": [
125
+ {
126
+ "id": "force-app/main/default/classes/AccountController.cls#AccountController",
127
+ "name": "AccountController",
128
+ "type": "class",
129
+ "file": "force-app/main/default/classes/AccountController.cls",
130
+ "line": 1,
131
+ "export": true
132
+ },
133
+ {
134
+ "id": "force-app/main/default/classes/AccountController.cls#createAccount",
135
+ "name": "createAccount",
136
+ "type": "function",
137
+ "file": "force-app/main/default/classes/AccountController.cls",
138
+ "line": 12,
139
+ "export": true
140
+ },
141
+ {
142
+ "id": "force-app/main/default/classes/AccountController.cls#updateAccountRating",
143
+ "name": "updateAccountRating",
144
+ "type": "function",
145
+ "file": "force-app/main/default/classes/AccountController.cls",
146
+ "line": 19,
147
+ "export": true
148
+ }
149
+ ],
150
+ "force-app/main/default/classes/OpportunityController.cls": [
151
+ {
152
+ "id": "force-app/main/default/classes/OpportunityController.cls#OpportunityController",
153
+ "name": "OpportunityController",
154
+ "type": "class",
155
+ "file": "force-app/main/default/classes/OpportunityController.cls",
156
+ "line": 1,
157
+ "export": true
158
+ },
159
+ {
160
+ "id": "force-app/main/default/classes/OpportunityController.cls#closeWon",
161
+ "name": "closeWon",
162
+ "type": "function",
163
+ "file": "force-app/main/default/classes/OpportunityController.cls",
164
+ "line": 13,
165
+ "export": true
166
+ },
167
+ {
168
+ "id": "force-app/main/default/classes/OpportunityController.cls#validateOpportunity",
169
+ "name": "validateOpportunity",
170
+ "type": "function",
171
+ "file": "force-app/main/default/classes/OpportunityController.cls",
172
+ "line": 20,
173
+ "export": true
174
+ }
175
+ ],
176
+ "force-app/main/default/triggers/AccountTrigger.trigger": [
177
+ {
178
+ "id": "force-app/main/default/triggers/AccountTrigger.trigger#AccountTrigger",
179
+ "name": "AccountTrigger",
180
+ "type": "function",
181
+ "file": "force-app/main/default/triggers/AccountTrigger.trigger",
182
+ "line": 1,
183
+ "export": true
184
+ }
185
+ ]
186
+ },
187
+ "exported": [
188
+ {
189
+ "id": "force-app/main/default/classes/AccountController.cls#AccountController",
190
+ "name": "AccountController",
191
+ "type": "class",
192
+ "file": "force-app/main/default/classes/AccountController.cls",
193
+ "line": 1,
194
+ "export": true
195
+ },
196
+ {
197
+ "id": "force-app/main/default/classes/AccountController.cls#createAccount",
198
+ "name": "createAccount",
199
+ "type": "function",
200
+ "file": "force-app/main/default/classes/AccountController.cls",
201
+ "line": 12,
202
+ "export": true
203
+ },
204
+ {
205
+ "id": "force-app/main/default/classes/AccountController.cls#updateAccountRating",
206
+ "name": "updateAccountRating",
207
+ "type": "function",
208
+ "file": "force-app/main/default/classes/AccountController.cls",
209
+ "line": 19,
210
+ "export": true
211
+ },
212
+ {
213
+ "id": "force-app/main/default/classes/OpportunityController.cls#OpportunityController",
214
+ "name": "OpportunityController",
215
+ "type": "class",
216
+ "file": "force-app/main/default/classes/OpportunityController.cls",
217
+ "line": 1,
218
+ "export": true
219
+ },
220
+ {
221
+ "id": "force-app/main/default/classes/OpportunityController.cls#closeWon",
222
+ "name": "closeWon",
223
+ "type": "function",
224
+ "file": "force-app/main/default/classes/OpportunityController.cls",
225
+ "line": 13,
226
+ "export": true
227
+ },
228
+ {
229
+ "id": "force-app/main/default/classes/OpportunityController.cls#validateOpportunity",
230
+ "name": "validateOpportunity",
231
+ "type": "function",
232
+ "file": "force-app/main/default/classes/OpportunityController.cls",
233
+ "line": 20,
234
+ "export": true
235
+ },
236
+ {
237
+ "id": "force-app/main/default/triggers/AccountTrigger.trigger#AccountTrigger",
238
+ "name": "AccountTrigger",
239
+ "type": "function",
240
+ "file": "force-app/main/default/triggers/AccountTrigger.trigger",
241
+ "line": 1,
242
+ "export": true
243
+ }
244
+ ]
245
+ }
@@ -0,0 +1,30 @@
1
+ # Technology Stack
2
+
3
+ **Languages**: JSON
4
+
5
+ ## Languages
6
+ - JSON
7
+
8
+ ## Frameworks
9
+ - None detected
10
+
11
+ ## Key Libraries
12
+ - None detected
13
+
14
+ ## Development Tools
15
+ - None detected
16
+
17
+ ## Package Managers
18
+ - None detected
19
+
20
+ ## Testing
21
+ - None detected
22
+
23
+ ## Linters
24
+ - None detected
25
+
26
+ ## Formatters
27
+ - None detected
28
+
29
+ ---
30
+ *Generated by ai-first*
@@ -0,0 +1,10 @@
1
+ {
2
+ "compatibleAgents": [
3
+ "ai-first-bridge",
4
+ "opencode",
5
+ "cursor",
6
+ "windsurf",
7
+ "cline"
8
+ ],
9
+ "schemaVersion": "1.0"
10
+ }
@@ -0,0 +1,24 @@
1
+ public with sharing class AccountController {
2
+
3
+ @AuraEnabled(cacheable=true)
4
+ public static List<Account> getAccounts() {
5
+ return [SELECT Id, Name, Industry, BillingCity
6
+ FROM Account
7
+ ORDER BY Name
8
+ LIMIT 100];
9
+ }
10
+
11
+ @AuraEnabled
12
+ public static Account createAccount(String name, String industry) {
13
+ Account acc = new Account(Name = name, Industry = industry);
14
+ insert acc;
15
+ return acc;
16
+ }
17
+
18
+ @AuraEnabled
19
+ public static void updateAccountRating(String accountId, String rating) {
20
+ Account acc = [SELECT Id FROM Account WHERE Id = :accountId];
21
+ acc.Rating = rating;
22
+ update acc;
23
+ }
24
+ }