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.
- package/ANALISIS_MEJORAS.md +327 -0
- package/BUGS.md +455 -0
- package/CHANGELOG.md +100 -225
- package/TEST_RESULTS.md +198 -0
- package/TEST_RESULTS_COMPARATIVE.md +159 -0
- package/TEST_RESULTS_COMPLETE.md +127 -0
- package/TEST_RESULTS_COMPREHENSIVE.md +208 -0
- package/ai/ai_context.md +17 -10
- package/ai/ai_rules.md +5 -3
- package/ai/architecture.md +28 -7
- package/ai/cache.json +832 -52
- package/ai/context/features/commands.json +18 -0
- package/ai/context/features/src.json +61 -0
- package/ai/context/features/test-projects.json +56 -0
- package/ai/context/flows/account.json +9 -0
- package/ai/context/flows/add_.json +9 -0
- package/ai/context/flows/ai-first.json +9 -0
- package/ai/context/flows/auth..json +10 -0
- package/ai/context/flows/auth.json +12 -0
- package/ai/context/flows/dashboard.json +9 -0
- package/ai/context/flows/doctor.json +9 -0
- package/ai/context/flows/explore.json +9 -0
- package/ai/context/flows/list_.json +9 -0
- package/ai/context/flows/login.json +9 -0
- package/ai/context/flows/opportunity.json +9 -0
- package/ai/context/flows/remove_.json +9 -0
- package/ai/context/flows/user.json +14 -0
- package/ai/context/flows/users..json +10 -0
- package/ai/context/flows/users.json +9 -0
- package/ai/conventions.md +3 -2
- package/ai/dependencies.json +429 -251
- package/ai/entrypoints.md +10 -0
- package/ai/files.json +822 -46
- package/ai/git/commit-activity.json +126 -39
- package/ai/git/recent-features.json +3 -1
- package/ai/git/recent-files.json +6 -6
- package/ai/git/recent-flows.json +3 -1
- package/ai/graph/knowledge-graph.json +954 -182
- package/ai/graph/module-graph.json +270 -0
- package/ai/graph/symbol-graph.json +48991 -16523
- package/ai/graph/symbol-references.json +953 -56
- package/ai/hierarchy.json +3 -24
- package/ai/index-state.json +1261 -253
- package/ai/index.db +0 -0
- package/ai/modules.json +226 -0
- package/ai/project.json +29 -0
- package/ai/repo-map.json +2284 -250
- package/ai/repo_map.json +2731 -231
- package/ai/repo_map.md +559 -2
- package/ai/schema.json +5 -0
- package/ai/summary.md +16 -7
- package/ai/tech_stack.md +4 -1
- package/ai/tools.json +10 -0
- package/dist/analyzers/dependencies.d.ts.map +1 -1
- package/dist/analyzers/dependencies.js +8 -16
- package/dist/analyzers/dependencies.js.map +1 -1
- package/dist/analyzers/symbols.d.ts.map +1 -1
- package/dist/analyzers/symbols.js +60 -0
- package/dist/analyzers/symbols.js.map +1 -1
- package/dist/commands/ai-first.d.ts +1 -0
- package/dist/commands/ai-first.d.ts.map +1 -1
- package/dist/commands/ai-first.js +29 -6
- package/dist/commands/ai-first.js.map +1 -1
- package/dist/core/semanticContexts.d.ts.map +1 -1
- package/dist/core/semanticContexts.js +48 -26
- package/dist/core/semanticContexts.js.map +1 -1
- package/dist/core/symbolGraph.d.ts.map +1 -1
- package/dist/core/symbolGraph.js +14 -2
- package/dist/core/symbolGraph.js.map +1 -1
- package/dist/utils/fileUtils.d.ts.map +1 -1
- package/dist/utils/fileUtils.js +5 -0
- package/dist/utils/fileUtils.js.map +1 -1
- package/package.json +2 -2
- package/src/analyzers/dependencies.ts +10 -20
- package/src/analyzers/symbols.ts +64 -0
- package/src/commands/ai-first.ts +32 -8
- package/src/core/semanticContexts.ts +54 -29
- package/src/core/symbolGraph.ts +16 -2
- package/src/utils/fileUtils.ts +5 -0
- package/test-projects/express-api/ai/ai_context.md +112 -0
- package/test-projects/express-api/ai/ai_rules.md +50 -0
- package/test-projects/express-api/ai/architecture.md +62 -0
- package/test-projects/express-api/ai/cache.json +125 -0
- package/test-projects/express-api/ai/context/features/controllers.json +13 -0
- package/test-projects/express-api/ai/context/features/services.json +13 -0
- package/test-projects/express-api/ai/context/flows/auth.json +12 -0
- package/test-projects/express-api/ai/context/flows/user.json +13 -0
- package/test-projects/express-api/ai/conventions.md +51 -0
- package/test-projects/express-api/ai/dependencies.json +54 -0
- package/test-projects/express-api/ai/entrypoints.md +17 -0
- package/test-projects/express-api/ai/files.json +169 -0
- package/test-projects/express-api/ai/graph/knowledge-graph.json +98 -0
- package/test-projects/express-api/ai/graph/module-graph.json +44 -0
- package/test-projects/express-api/ai/graph/symbol-graph.json +882 -0
- package/test-projects/express-api/ai/graph/symbol-references.json +51 -0
- package/test-projects/express-api/ai/index-state.json +238 -0
- package/test-projects/express-api/ai/index.db +0 -0
- package/test-projects/express-api/ai/modules.json +30 -0
- package/test-projects/express-api/ai/project.json +15 -0
- package/test-projects/express-api/ai/repo-map.json +291 -0
- package/test-projects/express-api/ai/repo_map.json +100 -0
- package/test-projects/express-api/ai/repo_map.md +36 -0
- package/test-projects/express-api/ai/schema.json +5 -0
- package/test-projects/express-api/ai/summary.md +14 -0
- package/test-projects/express-api/ai/symbols.json +1174 -0
- package/test-projects/express-api/ai/tech_stack.md +38 -0
- package/test-projects/express-api/ai/tools.json +10 -0
- package/test-projects/express-api/controllers/authController.js +32 -0
- package/test-projects/express-api/controllers/userController.js +51 -0
- package/test-projects/express-api/index.js +21 -0
- package/test-projects/express-api/middleware/authMiddleware.js +30 -0
- package/test-projects/express-api/models/userRepository.js +25 -0
- package/test-projects/express-api/package.json +18 -0
- package/test-projects/express-api/services/authService.js +17 -0
- package/test-projects/express-api/services/userService.js +28 -0
- package/test-projects/nestjs-backend/ai/ai_context.md +110 -0
- package/test-projects/nestjs-backend/ai/ai_rules.md +52 -0
- package/test-projects/nestjs-backend/ai/architecture.md +43 -0
- package/test-projects/nestjs-backend/ai/cache.json +137 -0
- package/test-projects/nestjs-backend/ai/context/features/src.json +23 -0
- package/test-projects/nestjs-backend/ai/context/flows/auth..json +10 -0
- package/test-projects/nestjs-backend/ai/context/flows/users..json +10 -0
- package/test-projects/nestjs-backend/ai/conventions.md +52 -0
- package/test-projects/nestjs-backend/ai/dependencies.json +152 -0
- package/test-projects/nestjs-backend/ai/entrypoints.md +18 -0
- package/test-projects/nestjs-backend/ai/files.json +184 -0
- package/test-projects/nestjs-backend/ai/graph/knowledge-graph.json +74 -0
- package/test-projects/nestjs-backend/ai/graph/module-graph.json +29 -0
- package/test-projects/nestjs-backend/ai/graph/symbol-graph.json +304 -0
- package/test-projects/nestjs-backend/ai/graph/symbol-references.json +5 -0
- package/test-projects/nestjs-backend/ai/index-state.json +259 -0
- package/test-projects/nestjs-backend/ai/index.db +0 -0
- package/test-projects/nestjs-backend/ai/modules.json +19 -0
- package/test-projects/nestjs-backend/ai/project.json +14 -0
- package/test-projects/nestjs-backend/ai/repo-map.json +323 -0
- package/test-projects/nestjs-backend/ai/repo_map.json +141 -0
- package/test-projects/nestjs-backend/ai/repo_map.md +39 -0
- package/test-projects/nestjs-backend/ai/schema.json +5 -0
- package/test-projects/nestjs-backend/ai/summary.md +11 -0
- package/test-projects/nestjs-backend/ai/symbols.json +527 -0
- package/test-projects/nestjs-backend/ai/tech_stack.md +37 -0
- package/test-projects/nestjs-backend/ai/tools.json +10 -0
- package/test-projects/nestjs-backend/package.json +22 -0
- package/test-projects/nestjs-backend/src/app.module.ts +8 -0
- package/test-projects/nestjs-backend/src/auth/auth.controller.ts +22 -0
- package/test-projects/nestjs-backend/src/auth/auth.module.ts +11 -0
- package/test-projects/nestjs-backend/src/auth/auth.service.ts +28 -0
- package/test-projects/nestjs-backend/src/auth/dto/login.dto.ts +4 -0
- package/test-projects/nestjs-backend/src/auth/strategies/jwt.strategy.ts +18 -0
- package/test-projects/nestjs-backend/src/main.ts +9 -0
- package/test-projects/nestjs-backend/src/users/users.controller.ts +32 -0
- package/test-projects/nestjs-backend/src/users/users.module.ts +10 -0
- package/test-projects/nestjs-backend/src/users/users.service.ts +42 -0
- package/test-projects/nestjs-backend/tsconfig.json +21 -0
- package/test-projects/python-cli/__init__.py +1 -0
- package/test-projects/python-cli/ai/ai_context.md +94 -0
- package/test-projects/python-cli/ai/ai_rules.md +47 -0
- package/test-projects/python-cli/ai/architecture.md +49 -0
- package/test-projects/python-cli/ai/cache.json +129 -0
- package/test-projects/python-cli/ai/context/features/cli.json +16 -0
- package/test-projects/python-cli/ai/context/flows/add_.json +9 -0
- package/test-projects/python-cli/ai/context/flows/list_.json +9 -0
- package/test-projects/python-cli/ai/context/flows/remove_.json +9 -0
- package/test-projects/python-cli/ai/conventions.md +51 -0
- package/test-projects/python-cli/ai/dependencies.json +66 -0
- package/test-projects/python-cli/ai/entrypoints.md +4 -0
- package/test-projects/python-cli/ai/files.json +174 -0
- package/test-projects/python-cli/ai/graph/knowledge-graph.json +83 -0
- package/test-projects/python-cli/ai/graph/module-graph.json +31 -0
- package/test-projects/python-cli/ai/graph/symbol-graph.json +358 -0
- package/test-projects/python-cli/ai/graph/symbol-references.json +11 -0
- package/test-projects/python-cli/ai/index-state.json +245 -0
- package/test-projects/python-cli/ai/index.db +0 -0
- package/test-projects/python-cli/ai/modules.json +21 -0
- package/test-projects/python-cli/ai/project.json +15 -0
- package/test-projects/python-cli/ai/repo-map.json +290 -0
- package/test-projects/python-cli/ai/repo_map.json +99 -0
- package/test-projects/python-cli/ai/repo_map.md +32 -0
- package/test-projects/python-cli/ai/schema.json +5 -0
- package/test-projects/python-cli/ai/summary.md +11 -0
- package/test-projects/python-cli/ai/symbols.json +475 -0
- package/test-projects/python-cli/ai/tech_stack.md +30 -0
- package/test-projects/python-cli/ai/tools.json +10 -0
- package/test-projects/python-cli/cli/__init__.py +1 -0
- package/test-projects/python-cli/cli/add_command.py +6 -0
- package/test-projects/python-cli/cli/list_command.py +7 -0
- package/test-projects/python-cli/cli/remove_command.py +6 -0
- package/test-projects/python-cli/main.py +34 -0
- package/test-projects/python-cli/models/__init__.py +2 -0
- package/test-projects/python-cli/models/task.py +19 -0
- package/test-projects/python-cli/models/task_repository.py +44 -0
- package/test-projects/react-app/ai/ai_context.md +95 -0
- package/test-projects/react-app/ai/ai_rules.md +49 -0
- package/test-projects/react-app/ai/architecture.md +33 -0
- package/test-projects/react-app/ai/cache.json +129 -0
- package/test-projects/react-app/ai/context/features/src.json +18 -0
- package/test-projects/react-app/ai/context/flows/dashboard.json +9 -0
- package/test-projects/react-app/ai/context/flows/login.json +9 -0
- package/test-projects/react-app/ai/context/flows/users.json +9 -0
- package/test-projects/react-app/ai/conventions.md +52 -0
- package/test-projects/react-app/ai/dependencies.json +128 -0
- package/test-projects/react-app/ai/entrypoints.md +4 -0
- package/test-projects/react-app/ai/files.json +174 -0
- package/test-projects/react-app/ai/graph/knowledge-graph.json +83 -0
- package/test-projects/react-app/ai/graph/module-graph.json +31 -0
- package/test-projects/react-app/ai/graph/symbol-graph.json +868 -0
- package/test-projects/react-app/ai/graph/symbol-references.json +31 -0
- package/test-projects/react-app/ai/index-state.json +245 -0
- package/test-projects/react-app/ai/index.db +0 -0
- package/test-projects/react-app/ai/modules.json +17 -0
- package/test-projects/react-app/ai/project.json +15 -0
- package/test-projects/react-app/ai/repo-map.json +305 -0
- package/test-projects/react-app/ai/repo_map.json +114 -0
- package/test-projects/react-app/ai/repo_map.md +31 -0
- package/test-projects/react-app/ai/schema.json +5 -0
- package/test-projects/react-app/ai/summary.md +11 -0
- package/test-projects/react-app/ai/symbols.json +985 -0
- package/test-projects/react-app/ai/tech_stack.md +38 -0
- package/test-projects/react-app/ai/tools.json +10 -0
- package/test-projects/react-app/package.json +16 -0
- package/test-projects/react-app/src/App.tsx +21 -0
- package/test-projects/react-app/src/context/AuthContext.tsx +41 -0
- package/test-projects/react-app/src/hooks/useAuth.ts +10 -0
- package/test-projects/react-app/src/main.tsx +10 -0
- package/test-projects/react-app/src/pages/DashboardPage.tsx +17 -0
- package/test-projects/react-app/src/pages/LoginPage.tsx +41 -0
- package/test-projects/react-app/src/pages/UsersPage.tsx +36 -0
- package/test-projects/react-app/src/services/userService.ts +37 -0
- package/test-projects/salesforce-cli/.forceignore +27 -0
- package/test-projects/salesforce-cli/ai/ai_context.md +88 -0
- package/test-projects/salesforce-cli/ai/ai_rules.md +47 -0
- package/test-projects/salesforce-cli/ai/architecture.md +33 -0
- package/test-projects/salesforce-cli/ai/cache.json +105 -0
- package/test-projects/salesforce-cli/ai/context/features/force-app.json +14 -0
- package/test-projects/salesforce-cli/ai/context/flows/account.json +9 -0
- package/test-projects/salesforce-cli/ai/context/flows/opportunity.json +9 -0
- package/test-projects/salesforce-cli/ai/conventions.md +51 -0
- package/test-projects/salesforce-cli/ai/dependencies.json +6 -0
- package/test-projects/salesforce-cli/ai/entrypoints.md +4 -0
- package/test-projects/salesforce-cli/ai/files.json +144 -0
- package/test-projects/salesforce-cli/ai/graph/knowledge-graph.json +64 -0
- package/test-projects/salesforce-cli/ai/graph/module-graph.json +13 -0
- package/test-projects/salesforce-cli/ai/graph/symbol-graph.json +148 -0
- package/test-projects/salesforce-cli/ai/graph/symbol-references.json +1 -0
- package/test-projects/salesforce-cli/ai/index-state.json +203 -0
- package/test-projects/salesforce-cli/ai/index.db +0 -0
- package/test-projects/salesforce-cli/ai/modules.json +12 -0
- package/test-projects/salesforce-cli/ai/project.json +14 -0
- package/test-projects/salesforce-cli/ai/repo-map.json +251 -0
- package/test-projects/salesforce-cli/ai/repo_map.json +69 -0
- package/test-projects/salesforce-cli/ai/repo_map.md +21 -0
- package/test-projects/salesforce-cli/ai/schema.json +5 -0
- package/test-projects/salesforce-cli/ai/summary.md +11 -0
- package/test-projects/salesforce-cli/ai/symbols.json +245 -0
- package/test-projects/salesforce-cli/ai/tech_stack.md +30 -0
- package/test-projects/salesforce-cli/ai/tools.json +10 -0
- package/test-projects/salesforce-cli/force-app/main/default/classes/AccountController.cls +24 -0
- package/test-projects/salesforce-cli/force-app/main/default/classes/OpportunityController.cls +25 -0
- package/test-projects/salesforce-cli/force-app/main/default/objects/Project__c.object.xml +45 -0
- package/test-projects/salesforce-cli/force-app/main/default/triggers/AccountTrigger.trigger +33 -0
- package/test-projects/salesforce-cli/sfdx-project.json +11 -0
- package/tests/e2e/README.md +85 -0
- package/tests/e2e/run-e2e.sh +88 -0
- 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,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 @@
|
|
|
1
|
+
from . import add_command, list_command, remove_command
|
|
@@ -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,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
|
+
}
|