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,32 @@
1
+ # Repository Map
2
+ ## __init__.py
3
+ - __init__.py
4
+
5
+ ## cli
6
+ - __init__.py
7
+ - add_command.py
8
+ - list_command.py
9
+ - remove_command.py
10
+
11
+ ## main.py
12
+ - main.py
13
+
14
+ ## models
15
+ - __init__.py
16
+ - task_repository.py
17
+ - task.py
18
+
19
+
20
+
21
+ # Repository Structure (Tree View)
22
+ ├── cli/
23
+ │ ├── __init__.py
24
+ │ ├── add_command.py
25
+ │ ├── list_command.py
26
+ │ └── remove_command.py
27
+ ├── models/
28
+ │ ├── __init__.py
29
+ │ ├── task.py
30
+ │ └── task_repository.py
31
+ ├── __init__.py
32
+ └── main.py
@@ -0,0 +1,5 @@
1
+ {
2
+ "schemaVersion": "1.0",
3
+ "generatedBy": "ai-first",
4
+ "generatedAt": "2026-03-18T01:14:52.513Z"
5
+ }
@@ -0,0 +1,11 @@
1
+ # Repository Summary
2
+ - **Total files**: 9
3
+
4
+ ## Files by Extension
5
+ - .py: 9
6
+
7
+ ## Files by Directory
8
+ - __init__.py: 1
9
+ - cli: 4
10
+ - main.py: 1
11
+ - models: 3
@@ -0,0 +1,475 @@
1
+ {
2
+ "symbols": {
3
+ "cli/add_command.py#execute": {
4
+ "name": "execute",
5
+ "type": "function",
6
+ "file": "cli/add_command.py",
7
+ "line": 1,
8
+ "module": "cli",
9
+ "export": true
10
+ },
11
+ "cli/list_command.py#execute": {
12
+ "name": "execute",
13
+ "type": "function",
14
+ "file": "cli/list_command.py",
15
+ "line": 1,
16
+ "module": "cli",
17
+ "export": true
18
+ },
19
+ "cli/remove_command.py#execute": {
20
+ "name": "execute",
21
+ "type": "function",
22
+ "file": "cli/remove_command.py",
23
+ "line": 1,
24
+ "module": "cli",
25
+ "export": true
26
+ },
27
+ "main.py#main": {
28
+ "name": "main",
29
+ "type": "function",
30
+ "file": "main.py",
31
+ "line": 5,
32
+ "module": "main.py",
33
+ "export": true
34
+ },
35
+ "models/task.py#Task": {
36
+ "name": "Task",
37
+ "type": "class",
38
+ "file": "models/task.py",
39
+ "line": 4,
40
+ "module": "models",
41
+ "export": true
42
+ },
43
+ "models/task.py#__init__": {
44
+ "name": "__init__",
45
+ "type": "function",
46
+ "file": "models/task.py",
47
+ "line": 5,
48
+ "module": "models",
49
+ "export": true
50
+ },
51
+ "models/task.py#to_dict": {
52
+ "name": "to_dict",
53
+ "type": "function",
54
+ "file": "models/task.py",
55
+ "line": 12,
56
+ "module": "models",
57
+ "export": true
58
+ },
59
+ "models/task_repository.py#TaskRepository": {
60
+ "name": "TaskRepository",
61
+ "type": "class",
62
+ "file": "models/task_repository.py",
63
+ "line": 5,
64
+ "module": "models",
65
+ "export": true
66
+ },
67
+ "models/task_repository.py#__init__": {
68
+ "name": "__init__",
69
+ "type": "function",
70
+ "file": "models/task_repository.py",
71
+ "line": 6,
72
+ "module": "models",
73
+ "export": true
74
+ },
75
+ "models/task_repository.py#create": {
76
+ "name": "create",
77
+ "type": "function",
78
+ "file": "models/task_repository.py",
79
+ "line": 10,
80
+ "module": "models",
81
+ "export": true
82
+ },
83
+ "models/task_repository.py#find_all": {
84
+ "name": "find_all",
85
+ "type": "function",
86
+ "file": "models/task_repository.py",
87
+ "line": 16,
88
+ "module": "models",
89
+ "export": true
90
+ },
91
+ "models/task_repository.py#find_by_id": {
92
+ "name": "find_by_id",
93
+ "type": "function",
94
+ "file": "models/task_repository.py",
95
+ "line": 21,
96
+ "module": "models",
97
+ "export": true
98
+ },
99
+ "models/task_repository.py#update": {
100
+ "name": "update",
101
+ "type": "function",
102
+ "file": "models/task_repository.py",
103
+ "line": 27,
104
+ "module": "models",
105
+ "export": true
106
+ },
107
+ "models/task_repository.py#delete": {
108
+ "name": "delete",
109
+ "type": "function",
110
+ "file": "models/task_repository.py",
111
+ "line": 39,
112
+ "module": "models",
113
+ "export": true
114
+ }
115
+ },
116
+ "total": 14,
117
+ "byType": {
118
+ "function": [
119
+ {
120
+ "id": "cli/add_command.py#execute",
121
+ "name": "execute",
122
+ "type": "function",
123
+ "file": "cli/add_command.py",
124
+ "line": 1,
125
+ "export": true
126
+ },
127
+ {
128
+ "id": "cli/list_command.py#execute",
129
+ "name": "execute",
130
+ "type": "function",
131
+ "file": "cli/list_command.py",
132
+ "line": 1,
133
+ "export": true
134
+ },
135
+ {
136
+ "id": "cli/remove_command.py#execute",
137
+ "name": "execute",
138
+ "type": "function",
139
+ "file": "cli/remove_command.py",
140
+ "line": 1,
141
+ "export": true
142
+ },
143
+ {
144
+ "id": "main.py#main",
145
+ "name": "main",
146
+ "type": "function",
147
+ "file": "main.py",
148
+ "line": 5,
149
+ "export": true
150
+ },
151
+ {
152
+ "id": "models/task.py#__init__",
153
+ "name": "__init__",
154
+ "type": "function",
155
+ "file": "models/task.py",
156
+ "line": 5,
157
+ "export": true
158
+ },
159
+ {
160
+ "id": "models/task.py#to_dict",
161
+ "name": "to_dict",
162
+ "type": "function",
163
+ "file": "models/task.py",
164
+ "line": 12,
165
+ "export": true
166
+ },
167
+ {
168
+ "id": "models/task_repository.py#__init__",
169
+ "name": "__init__",
170
+ "type": "function",
171
+ "file": "models/task_repository.py",
172
+ "line": 6,
173
+ "export": true
174
+ },
175
+ {
176
+ "id": "models/task_repository.py#create",
177
+ "name": "create",
178
+ "type": "function",
179
+ "file": "models/task_repository.py",
180
+ "line": 10,
181
+ "export": true
182
+ },
183
+ {
184
+ "id": "models/task_repository.py#find_all",
185
+ "name": "find_all",
186
+ "type": "function",
187
+ "file": "models/task_repository.py",
188
+ "line": 16,
189
+ "export": true
190
+ },
191
+ {
192
+ "id": "models/task_repository.py#find_by_id",
193
+ "name": "find_by_id",
194
+ "type": "function",
195
+ "file": "models/task_repository.py",
196
+ "line": 21,
197
+ "export": true
198
+ },
199
+ {
200
+ "id": "models/task_repository.py#update",
201
+ "name": "update",
202
+ "type": "function",
203
+ "file": "models/task_repository.py",
204
+ "line": 27,
205
+ "export": true
206
+ },
207
+ {
208
+ "id": "models/task_repository.py#delete",
209
+ "name": "delete",
210
+ "type": "function",
211
+ "file": "models/task_repository.py",
212
+ "line": 39,
213
+ "export": true
214
+ }
215
+ ],
216
+ "class": [
217
+ {
218
+ "id": "models/task.py#Task",
219
+ "name": "Task",
220
+ "type": "class",
221
+ "file": "models/task.py",
222
+ "line": 4,
223
+ "export": true
224
+ },
225
+ {
226
+ "id": "models/task_repository.py#TaskRepository",
227
+ "name": "TaskRepository",
228
+ "type": "class",
229
+ "file": "models/task_repository.py",
230
+ "line": 5,
231
+ "export": true
232
+ }
233
+ ]
234
+ },
235
+ "byFile": {
236
+ "cli/add_command.py": [
237
+ {
238
+ "id": "cli/add_command.py#execute",
239
+ "name": "execute",
240
+ "type": "function",
241
+ "file": "cli/add_command.py",
242
+ "line": 1,
243
+ "export": true
244
+ }
245
+ ],
246
+ "cli/list_command.py": [
247
+ {
248
+ "id": "cli/list_command.py#execute",
249
+ "name": "execute",
250
+ "type": "function",
251
+ "file": "cli/list_command.py",
252
+ "line": 1,
253
+ "export": true
254
+ }
255
+ ],
256
+ "cli/remove_command.py": [
257
+ {
258
+ "id": "cli/remove_command.py#execute",
259
+ "name": "execute",
260
+ "type": "function",
261
+ "file": "cli/remove_command.py",
262
+ "line": 1,
263
+ "export": true
264
+ }
265
+ ],
266
+ "main.py": [
267
+ {
268
+ "id": "main.py#main",
269
+ "name": "main",
270
+ "type": "function",
271
+ "file": "main.py",
272
+ "line": 5,
273
+ "export": true
274
+ }
275
+ ],
276
+ "models/task.py": [
277
+ {
278
+ "id": "models/task.py#Task",
279
+ "name": "Task",
280
+ "type": "class",
281
+ "file": "models/task.py",
282
+ "line": 4,
283
+ "export": true
284
+ },
285
+ {
286
+ "id": "models/task.py#__init__",
287
+ "name": "__init__",
288
+ "type": "function",
289
+ "file": "models/task.py",
290
+ "line": 5,
291
+ "export": true
292
+ },
293
+ {
294
+ "id": "models/task.py#to_dict",
295
+ "name": "to_dict",
296
+ "type": "function",
297
+ "file": "models/task.py",
298
+ "line": 12,
299
+ "export": true
300
+ }
301
+ ],
302
+ "models/task_repository.py": [
303
+ {
304
+ "id": "models/task_repository.py#TaskRepository",
305
+ "name": "TaskRepository",
306
+ "type": "class",
307
+ "file": "models/task_repository.py",
308
+ "line": 5,
309
+ "export": true
310
+ },
311
+ {
312
+ "id": "models/task_repository.py#__init__",
313
+ "name": "__init__",
314
+ "type": "function",
315
+ "file": "models/task_repository.py",
316
+ "line": 6,
317
+ "export": true
318
+ },
319
+ {
320
+ "id": "models/task_repository.py#create",
321
+ "name": "create",
322
+ "type": "function",
323
+ "file": "models/task_repository.py",
324
+ "line": 10,
325
+ "export": true
326
+ },
327
+ {
328
+ "id": "models/task_repository.py#find_all",
329
+ "name": "find_all",
330
+ "type": "function",
331
+ "file": "models/task_repository.py",
332
+ "line": 16,
333
+ "export": true
334
+ },
335
+ {
336
+ "id": "models/task_repository.py#find_by_id",
337
+ "name": "find_by_id",
338
+ "type": "function",
339
+ "file": "models/task_repository.py",
340
+ "line": 21,
341
+ "export": true
342
+ },
343
+ {
344
+ "id": "models/task_repository.py#update",
345
+ "name": "update",
346
+ "type": "function",
347
+ "file": "models/task_repository.py",
348
+ "line": 27,
349
+ "export": true
350
+ },
351
+ {
352
+ "id": "models/task_repository.py#delete",
353
+ "name": "delete",
354
+ "type": "function",
355
+ "file": "models/task_repository.py",
356
+ "line": 39,
357
+ "export": true
358
+ }
359
+ ]
360
+ },
361
+ "exported": [
362
+ {
363
+ "id": "cli/add_command.py#execute",
364
+ "name": "execute",
365
+ "type": "function",
366
+ "file": "cli/add_command.py",
367
+ "line": 1,
368
+ "export": true
369
+ },
370
+ {
371
+ "id": "cli/list_command.py#execute",
372
+ "name": "execute",
373
+ "type": "function",
374
+ "file": "cli/list_command.py",
375
+ "line": 1,
376
+ "export": true
377
+ },
378
+ {
379
+ "id": "cli/remove_command.py#execute",
380
+ "name": "execute",
381
+ "type": "function",
382
+ "file": "cli/remove_command.py",
383
+ "line": 1,
384
+ "export": true
385
+ },
386
+ {
387
+ "id": "main.py#main",
388
+ "name": "main",
389
+ "type": "function",
390
+ "file": "main.py",
391
+ "line": 5,
392
+ "export": true
393
+ },
394
+ {
395
+ "id": "models/task.py#Task",
396
+ "name": "Task",
397
+ "type": "class",
398
+ "file": "models/task.py",
399
+ "line": 4,
400
+ "export": true
401
+ },
402
+ {
403
+ "id": "models/task.py#__init__",
404
+ "name": "__init__",
405
+ "type": "function",
406
+ "file": "models/task.py",
407
+ "line": 5,
408
+ "export": true
409
+ },
410
+ {
411
+ "id": "models/task.py#to_dict",
412
+ "name": "to_dict",
413
+ "type": "function",
414
+ "file": "models/task.py",
415
+ "line": 12,
416
+ "export": true
417
+ },
418
+ {
419
+ "id": "models/task_repository.py#TaskRepository",
420
+ "name": "TaskRepository",
421
+ "type": "class",
422
+ "file": "models/task_repository.py",
423
+ "line": 5,
424
+ "export": true
425
+ },
426
+ {
427
+ "id": "models/task_repository.py#__init__",
428
+ "name": "__init__",
429
+ "type": "function",
430
+ "file": "models/task_repository.py",
431
+ "line": 6,
432
+ "export": true
433
+ },
434
+ {
435
+ "id": "models/task_repository.py#create",
436
+ "name": "create",
437
+ "type": "function",
438
+ "file": "models/task_repository.py",
439
+ "line": 10,
440
+ "export": true
441
+ },
442
+ {
443
+ "id": "models/task_repository.py#find_all",
444
+ "name": "find_all",
445
+ "type": "function",
446
+ "file": "models/task_repository.py",
447
+ "line": 16,
448
+ "export": true
449
+ },
450
+ {
451
+ "id": "models/task_repository.py#find_by_id",
452
+ "name": "find_by_id",
453
+ "type": "function",
454
+ "file": "models/task_repository.py",
455
+ "line": 21,
456
+ "export": true
457
+ },
458
+ {
459
+ "id": "models/task_repository.py#update",
460
+ "name": "update",
461
+ "type": "function",
462
+ "file": "models/task_repository.py",
463
+ "line": 27,
464
+ "export": true
465
+ },
466
+ {
467
+ "id": "models/task_repository.py#delete",
468
+ "name": "delete",
469
+ "type": "function",
470
+ "file": "models/task_repository.py",
471
+ "line": 39,
472
+ "export": true
473
+ }
474
+ ]
475
+ }
@@ -0,0 +1,30 @@
1
+ # Technology Stack
2
+
3
+ **Languages**: Python
4
+
5
+ ## Languages
6
+ - Python
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 @@
1
+ from . import add_command, list_command, remove_command
@@ -0,0 +1,6 @@
1
+ def execute(title, description):
2
+ from models.task_repository import TaskRepository
3
+
4
+ repo = TaskRepository()
5
+ task = repo.create(title, description)
6
+ print(f"Task created: {task['id']} - {task['title']}")
@@ -0,0 +1,7 @@
1
+ def execute(status_filter=None):
2
+ from models.task_repository import TaskRepository
3
+
4
+ repo = TaskRepository()
5
+ tasks = repo.find_all(status_filter)
6
+ for task in tasks:
7
+ print(f"{task['id']}: {task['title']} [{task['status']}]")
@@ -0,0 +1,6 @@
1
+ def execute(task_id):
2
+ from models.task_repository import TaskRepository
3
+
4
+ repo = TaskRepository()
5
+ repo.delete(task_id)
6
+ print(f"Task {task_id} removed")
@@ -0,0 +1,34 @@
1
+ import argparse
2
+ from cli.commands import add_command, list_command, remove_command
3
+
4
+
5
+ def main():
6
+ parser = argparse.ArgumentParser(description="Task Manager CLI")
7
+ subparsers = parser.add_subparsers(dest="command", help="Available commands")
8
+
9
+ add_parser = subparsers.add_parser("add", help="Add a new task")
10
+ add_parser.add_argument("title", help="Task title")
11
+ add_parser.add_argument("--description", help="Task description")
12
+
13
+ list_parser = subparsers.add_parser("list", help="List all tasks")
14
+ list_parser.add_argument(
15
+ "--status", choices=["pending", "completed"], help="Filter by status"
16
+ )
17
+
18
+ remove_parser = subparsers.add_parser("remove", help="Remove a task")
19
+ remove_parser.add_argument("id", type=int, help="Task ID")
20
+
21
+ args = parser.parse_args()
22
+
23
+ if args.command == "add":
24
+ add_command.execute(args.title, args.description)
25
+ elif args.command == "list":
26
+ list_command.execute(args.status)
27
+ elif args.command == "remove":
28
+ remove_command.execute(args.id)
29
+ else:
30
+ parser.print_help()
31
+
32
+
33
+ if __name__ == "__main__":
34
+ main()
@@ -0,0 +1,2 @@
1
+ from .task import Task
2
+ from .task_repository import TaskRepository
@@ -0,0 +1,19 @@
1
+ from datetime import datetime
2
+
3
+
4
+ class Task:
5
+ def __init__(self, id, title, description, status="pending", created_at=None):
6
+ self.id = id
7
+ self.title = title
8
+ self.description = description
9
+ self.status = status
10
+ self.created_at = created_at or datetime.now()
11
+
12
+ def to_dict(self):
13
+ return {
14
+ "id": self.id,
15
+ "title": self.title,
16
+ "description": self.description,
17
+ "status": self.status,
18
+ "created_at": self.created_at.isoformat(),
19
+ }