ai-first-cli 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ai → .ai-dev}/ai_context.md +18 -11
- package/{ai → .ai-dev}/ai_rules.md +5 -3
- package/{ai → .ai-dev}/architecture.md +52 -16
- package/.ai-dev/cache.json +2349 -0
- package/.ai-dev/context/features/commands.json +18 -0
- package/.ai-dev/context/features/src.json +61 -0
- package/.ai-dev/context/features/test-projects.json +69 -0
- package/.ai-dev/context/flows/account.json +9 -0
- package/.ai-dev/context/flows/ai-first.json +9 -0
- package/.ai-dev/context/flows/api.json +9 -0
- package/.ai-dev/context/flows/auth.json +13 -0
- package/.ai-dev/context/flows/category.json +12 -0
- package/.ai-dev/context/flows/comment.json +16 -0
- package/.ai-dev/context/flows/dashboard.json +9 -0
- package/.ai-dev/context/flows/doctor.json +9 -0
- package/.ai-dev/context/flows/explore.json +9 -0
- package/.ai-dev/context/flows/login.json +9 -0
- package/.ai-dev/context/flows/opportunity.json +9 -0
- package/.ai-dev/context/flows/post.json +18 -0
- package/.ai-dev/context/flows/routes.json +19 -0
- package/.ai-dev/context/flows/user.json +20 -0
- package/.ai-dev/context/flows/users.json +9 -0
- package/.ai-dev/context/flows/views.json +14 -0
- package/.ai-dev/conventions.md +53 -0
- package/.ai-dev/dependencies.json +2946 -0
- package/{ai → .ai-dev}/entrypoints.md +10 -0
- package/.ai-dev/files.json +2944 -0
- package/.ai-dev/graph/knowledge-graph.json +44314 -0
- package/.ai-dev/graph/module-graph.json +866 -0
- package/.ai-dev/graph/symbol-graph.json +200622 -0
- package/.ai-dev/graph/symbol-references.json +6778 -0
- package/.ai-dev/hierarchy.json +20 -0
- package/.ai-dev/index-state.json +4123 -0
- package/.ai-dev/index.db +0 -0
- package/.ai-dev/modules.json +532 -0
- package/.ai-dev/project.json +30 -0
- package/.ai-dev/repo_map.json +5818 -0
- package/.ai-dev/repo_map.md +1327 -0
- package/.ai-dev/schema.json +5 -0
- package/.ai-dev/summary.md +42 -0
- package/.ai-dev/symbols.json +7 -0
- package/.ai-dev/tech_stack.md +46 -0
- package/.ai-dev/tools.json +10 -0
- package/.github/workflows/publish.yml +55 -0
- package/BUGS.md +455 -0
- package/CHANGELOG.md +218 -218
- package/PLAN_MEJORAS.md +216 -0
- package/README.es.md +82 -99
- package/README.md +70 -89
- package/STATUS_ADAPTADORES +126 -0
- package/TEST_RESULTS_PHASE1.md +420 -0
- package/ai/graph/knowledge-graph.json +6 -43639
- package/ai-context/ai_context.md +130 -0
- package/ai-context/ai_rules.md +54 -0
- package/ai-context/architecture.md +136 -0
- package/ai-context/cache.json +2349 -0
- package/ai-context/ccp/jira-123/context.json +7 -0
- package/ai-context/context/features/commands.json +18 -0
- package/ai-context/context/features/src.json +61 -0
- package/ai-context/context/features/test-projects.json +69 -0
- package/ai-context/context/flows/account.json +9 -0
- package/ai-context/context/flows/ai-first.json +9 -0
- package/ai-context/context/flows/api.json +9 -0
- package/ai-context/context/flows/auth.json +13 -0
- package/ai-context/context/flows/category.json +12 -0
- package/ai-context/context/flows/comment.json +16 -0
- package/ai-context/context/flows/dashboard.json +9 -0
- package/ai-context/context/flows/doctor.json +9 -0
- package/ai-context/context/flows/explore.json +9 -0
- package/ai-context/context/flows/login.json +9 -0
- package/ai-context/context/flows/opportunity.json +9 -0
- package/ai-context/context/flows/post.json +18 -0
- package/ai-context/context/flows/routes.json +19 -0
- package/ai-context/context/flows/user.json +20 -0
- package/ai-context/context/flows/users.json +9 -0
- package/ai-context/context/flows/views.json +14 -0
- package/ai-context/context/repo.json +56 -0
- package/ai-context/context/utils.json +7 -0
- package/ai-context/conventions.md +53 -0
- package/ai-context/dependencies.json +2946 -0
- package/ai-context/embeddings.json +23828 -0
- package/ai-context/entrypoints.md +42 -0
- package/ai-context/files.json +2944 -0
- package/ai-context/git/commit-activity.json +8646 -0
- package/ai-context/git/recent-files.json +52 -0
- package/ai-context/git/recent-flows.json +1 -0
- package/ai-context/graph/knowledge-graph.json +44314 -0
- package/ai-context/graph/module-graph.json +866 -0
- package/ai-context/graph/symbol-graph.json +200622 -0
- package/ai-context/graph/symbol-references.json +6778 -0
- package/ai-context/hierarchy.json +20 -0
- package/ai-context/index-state.json +4123 -0
- package/ai-context/index.db +0 -0
- package/ai-context/modules.json +532 -0
- package/ai-context/project.json +30 -0
- package/ai-context/repo_map.json +5818 -0
- package/ai-context/repo_map.md +1327 -0
- package/ai-context/schema.json +5 -0
- package/ai-context/summary.md +42 -0
- package/ai-context/symbols.json +7 -0
- package/ai-context/tech_stack.md +46 -0
- package/ai-context/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 +194 -6
- package/dist/analyzers/symbols.js.map +1 -1
- package/dist/commands/ai-first.d.ts.map +1 -1
- package/dist/commands/ai-first.js +63 -21
- package/dist/commands/ai-first.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/explore.js +1 -1
- package/dist/commands/explore.js.map +1 -1
- package/dist/core/ccp.js +1 -1
- package/dist/core/ccp.js.map +1 -1
- package/dist/core/embeddings.d.ts +11 -6
- package/dist/core/embeddings.d.ts.map +1 -1
- package/dist/core/embeddings.js +88 -38
- package/dist/core/embeddings.js.map +1 -1
- package/dist/core/gitAnalyzer.js +3 -3
- package/dist/core/gitAnalyzer.js.map +1 -1
- package/dist/core/incrementalAnalyzer.d.ts.map +1 -1
- package/dist/core/incrementalAnalyzer.js +76 -14
- package/dist/core/incrementalAnalyzer.js.map +1 -1
- package/dist/core/knowledgeGraphBuilder.js +1 -1
- package/dist/core/knowledgeGraphBuilder.js.map +1 -1
- package/dist/core/semanticContexts.d.ts.map +1 -1
- package/dist/core/semanticContexts.js +61 -30
- 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/docs/guide/getting-started.md +8 -8
- package/docs/guide/quick-start.md +8 -8
- package/examples/01-express-api.md +3 -3
- package/examples/02-react-app.md +3 -3
- package/examples/03-python-django.md +3 -3
- package/examples/README.md +3 -3
- package/package.json +2 -2
- package/src/analyzers/dependencies.ts +10 -20
- package/src/analyzers/symbols.ts +207 -6
- package/src/commands/ai-first.ts +67 -22
- package/src/commands/doctor.ts +1 -1
- package/src/commands/explore.ts +1 -1
- package/src/core/ccp.ts +1 -1
- package/src/core/embeddings.ts +106 -40
- package/src/core/gitAnalyzer.ts +3 -3
- package/src/core/incrementalAnalyzer.ts +101 -11
- package/src/core/knowledgeGraphBuilder.ts +1 -1
- package/src/core/semanticContexts.ts +68 -33
- package/src/core/symbolGraph.ts +16 -2
- package/src/utils/fileUtils.ts +5 -0
- package/test-projects/django-app/.ai-dev/ai_context.md +92 -0
- package/test-projects/django-app/.ai-dev/ai_rules.md +47 -0
- package/test-projects/django-app/.ai-dev/architecture.md +57 -0
- package/test-projects/django-app/.ai-dev/cache.json +169 -0
- package/test-projects/django-app/.ai-dev/context/flows/views.json +10 -0
- package/test-projects/django-app/.ai-dev/conventions.md +51 -0
- package/test-projects/django-app/.ai-dev/dependencies.json +312 -0
- package/test-projects/django-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/django-app/.ai-dev/files.json +209 -0
- package/test-projects/django-app/.ai-dev/graph/knowledge-graph.json +36 -0
- package/test-projects/django-app/.ai-dev/graph/module-graph.json +145 -0
- package/test-projects/django-app/.ai-dev/graph/symbol-graph.json +1488 -0
- package/test-projects/django-app/.ai-dev/graph/symbol-references.json +1 -0
- package/test-projects/django-app/.ai-dev/index-state.json +294 -0
- package/test-projects/django-app/.ai-dev/index.db +0 -0
- package/test-projects/django-app/.ai-dev/modules.json +35 -0
- package/test-projects/django-app/.ai-dev/project.json +11 -0
- package/test-projects/django-app/.ai-dev/repo_map.json +412 -0
- package/test-projects/django-app/.ai-dev/repo_map.md +105 -0
- package/test-projects/django-app/.ai-dev/schema.json +5 -0
- package/test-projects/django-app/.ai-dev/summary.md +15 -0
- package/test-projects/django-app/.ai-dev/symbols.json +1 -0
- package/test-projects/django-app/.ai-dev/tech_stack.md +32 -0
- package/test-projects/django-app/.ai-dev/tools.json +10 -0
- package/test-projects/django-app/README.md +91 -0
- package/test-projects/django-app/ai-context/ai_context.md +92 -0
- package/test-projects/django-app/ai-context/ai_rules.md +47 -0
- package/test-projects/django-app/ai-context/architecture.md +57 -0
- package/test-projects/django-app/ai-context/cache.json +169 -0
- package/test-projects/django-app/ai-context/context/flows/views.json +10 -0
- package/test-projects/django-app/ai-context/conventions.md +51 -0
- package/test-projects/django-app/ai-context/dependencies.json +312 -0
- package/test-projects/django-app/ai-context/entrypoints.md +4 -0
- package/test-projects/django-app/ai-context/files.json +209 -0
- package/test-projects/django-app/ai-context/graph/knowledge-graph.json +36 -0
- package/test-projects/django-app/ai-context/graph/module-graph.json +145 -0
- package/test-projects/django-app/ai-context/graph/symbol-graph.json +1488 -0
- package/test-projects/django-app/ai-context/graph/symbol-references.json +1 -0
- package/test-projects/django-app/ai-context/index-state.json +294 -0
- package/test-projects/django-app/ai-context/index.db +0 -0
- package/test-projects/django-app/ai-context/modules.json +35 -0
- package/test-projects/django-app/ai-context/project.json +11 -0
- package/test-projects/django-app/ai-context/repo_map.json +412 -0
- package/test-projects/django-app/ai-context/repo_map.md +105 -0
- package/test-projects/django-app/ai-context/schema.json +5 -0
- package/test-projects/django-app/ai-context/summary.md +15 -0
- package/test-projects/django-app/ai-context/symbols.json +1 -0
- package/test-projects/django-app/ai-context/tech_stack.md +32 -0
- package/test-projects/django-app/ai-context/tools.json +10 -0
- package/test-projects/django-app/blog/__init__.py +0 -0
- package/test-projects/django-app/blog/admin.py +31 -0
- package/test-projects/django-app/blog/models.py +55 -0
- package/test-projects/django-app/blog/serializers.py +69 -0
- package/test-projects/django-app/blog/urls.py +14 -0
- package/test-projects/django-app/blog/views.py +96 -0
- package/test-projects/django-app/django_app/__init__.py +0 -0
- package/test-projects/django-app/django_app/settings.py +90 -0
- package/test-projects/django-app/django_app/urls.py +11 -0
- package/test-projects/django-app/django_app/wsgi.py +9 -0
- package/test-projects/django-app/manage.py +23 -0
- package/test-projects/django-app/requirements.txt +3 -0
- package/test-projects/django-app/users/__init__.py +0 -0
- package/test-projects/django-app/users/admin.py +42 -0
- package/test-projects/django-app/users/models.py +54 -0
- package/test-projects/django-app/users/serializers.py +113 -0
- package/test-projects/django-app/users/urls.py +13 -0
- package/test-projects/django-app/users/views.py +135 -0
- package/test-projects/express-api/.ai-dev/ai_context.md +112 -0
- package/test-projects/express-api/.ai-dev/ai_rules.md +50 -0
- package/test-projects/express-api/.ai-dev/architecture.md +62 -0
- package/test-projects/express-api/.ai-dev/context/features/controllers.json +13 -0
- package/test-projects/express-api/.ai-dev/context/features/services.json +13 -0
- package/test-projects/express-api/.ai-dev/context/flows/auth.json +12 -0
- package/test-projects/express-api/.ai-dev/context/flows/user.json +13 -0
- package/test-projects/express-api/.ai-dev/conventions.md +51 -0
- package/test-projects/express-api/.ai-dev/dependencies.json +54 -0
- package/test-projects/express-api/.ai-dev/entrypoints.md +17 -0
- package/test-projects/express-api/.ai-dev/modules.json +30 -0
- package/test-projects/express-api/.ai-dev/project.json +15 -0
- package/test-projects/express-api/.ai-dev/repo_map.json +100 -0
- package/test-projects/express-api/.ai-dev/repo_map.md +36 -0
- package/test-projects/express-api/.ai-dev/schema.json +5 -0
- package/test-projects/express-api/.ai-dev/summary.md +14 -0
- package/test-projects/express-api/.ai-dev/symbols.json +7 -0
- package/test-projects/express-api/.ai-dev/tech_stack.md +38 -0
- package/test-projects/express-api/.ai-dev/tools.json +10 -0
- package/test-projects/express-api/ai-context/ai_context.md +112 -0
- package/test-projects/express-api/ai-context/ai_rules.md +50 -0
- package/test-projects/express-api/ai-context/architecture.md +62 -0
- package/test-projects/express-api/ai-context/context/features/controllers.json +13 -0
- package/test-projects/express-api/ai-context/context/features/services.json +13 -0
- package/test-projects/express-api/ai-context/context/flows/auth.json +12 -0
- package/test-projects/express-api/ai-context/context/flows/user.json +13 -0
- package/test-projects/express-api/ai-context/conventions.md +51 -0
- package/test-projects/express-api/ai-context/dependencies.json +54 -0
- package/test-projects/express-api/ai-context/entrypoints.md +17 -0
- package/test-projects/express-api/ai-context/modules.json +30 -0
- package/test-projects/express-api/ai-context/project.json +15 -0
- package/test-projects/express-api/ai-context/repo_map.json +100 -0
- package/test-projects/express-api/ai-context/repo_map.md +36 -0
- package/test-projects/express-api/ai-context/schema.json +5 -0
- package/test-projects/express-api/ai-context/summary.md +14 -0
- package/test-projects/express-api/ai-context/symbols.json +7 -0
- package/test-projects/express-api/ai-context/tech_stack.md +38 -0
- package/test-projects/express-api/ai-context/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 +30 -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/fastapi-app/.ai-dev/ai_context.md +89 -0
- package/test-projects/fastapi-app/.ai-dev/ai_rules.md +47 -0
- package/test-projects/fastapi-app/.ai-dev/architecture.md +39 -0
- package/test-projects/fastapi-app/.ai-dev/cache.json +125 -0
- package/test-projects/fastapi-app/.ai-dev/conventions.md +51 -0
- package/test-projects/fastapi-app/.ai-dev/dependencies.json +244 -0
- package/test-projects/fastapi-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/fastapi-app/.ai-dev/files.json +154 -0
- package/test-projects/fastapi-app/.ai-dev/graph/knowledge-graph.json +15 -0
- package/test-projects/fastapi-app/.ai-dev/graph/module-graph.json +78 -0
- package/test-projects/fastapi-app/.ai-dev/graph/symbol-graph.json +1724 -0
- package/test-projects/fastapi-app/.ai-dev/graph/symbol-references.json +51 -0
- package/test-projects/fastapi-app/.ai-dev/index-state.json +217 -0
- package/test-projects/fastapi-app/.ai-dev/index.db +0 -0
- package/test-projects/fastapi-app/.ai-dev/modules.json +16 -0
- package/test-projects/fastapi-app/.ai-dev/project.json +9 -0
- package/test-projects/fastapi-app/.ai-dev/repo_map.json +298 -0
- package/test-projects/fastapi-app/.ai-dev/repo_map.md +74 -0
- package/test-projects/fastapi-app/.ai-dev/schema.json +5 -0
- package/test-projects/fastapi-app/.ai-dev/summary.md +12 -0
- package/test-projects/fastapi-app/.ai-dev/symbols.json +1 -0
- package/test-projects/fastapi-app/.ai-dev/tech_stack.md +32 -0
- package/test-projects/fastapi-app/.ai-dev/tools.json +10 -0
- package/test-projects/fastapi-app/README.md +118 -0
- package/test-projects/fastapi-app/ai-context/ai_context.md +89 -0
- package/test-projects/fastapi-app/ai-context/ai_rules.md +47 -0
- package/test-projects/fastapi-app/ai-context/architecture.md +39 -0
- package/test-projects/fastapi-app/ai-context/cache.json +125 -0
- package/test-projects/fastapi-app/ai-context/conventions.md +51 -0
- package/test-projects/fastapi-app/ai-context/dependencies.json +244 -0
- package/test-projects/fastapi-app/ai-context/entrypoints.md +4 -0
- package/test-projects/fastapi-app/ai-context/files.json +154 -0
- package/test-projects/fastapi-app/ai-context/graph/knowledge-graph.json +15 -0
- package/test-projects/fastapi-app/ai-context/graph/module-graph.json +78 -0
- package/test-projects/fastapi-app/ai-context/graph/symbol-graph.json +1724 -0
- package/test-projects/fastapi-app/ai-context/graph/symbol-references.json +51 -0
- package/test-projects/fastapi-app/ai-context/index-state.json +217 -0
- package/test-projects/fastapi-app/ai-context/index.db +0 -0
- package/test-projects/fastapi-app/ai-context/modules.json +16 -0
- package/test-projects/fastapi-app/ai-context/project.json +9 -0
- package/test-projects/fastapi-app/ai-context/repo_map.json +298 -0
- package/test-projects/fastapi-app/ai-context/repo_map.md +74 -0
- package/test-projects/fastapi-app/ai-context/schema.json +5 -0
- package/test-projects/fastapi-app/ai-context/summary.md +12 -0
- package/test-projects/fastapi-app/ai-context/symbols.json +1 -0
- package/test-projects/fastapi-app/ai-context/tech_stack.md +32 -0
- package/test-projects/fastapi-app/ai-context/tools.json +10 -0
- package/test-projects/fastapi-app/app/database.py +21 -0
- package/test-projects/fastapi-app/app/dependencies.py +107 -0
- package/test-projects/fastapi-app/app/main.py +47 -0
- package/test-projects/fastapi-app/app/models.py +149 -0
- package/test-projects/fastapi-app/app/routers/auth.py +117 -0
- package/test-projects/fastapi-app/app/routers/posts.py +272 -0
- package/test-projects/fastapi-app/app/schemas.py +191 -0
- package/test-projects/fastapi-app/requirements.txt +10 -0
- package/test-projects/flask-app/.ai-dev/ai_context.md +94 -0
- package/test-projects/flask-app/.ai-dev/ai_rules.md +47 -0
- package/test-projects/flask-app/.ai-dev/architecture.md +49 -0
- package/test-projects/flask-app/.ai-dev/cache.json +157 -0
- package/test-projects/flask-app/.ai-dev/context/features/app.json +25 -0
- package/test-projects/flask-app/.ai-dev/context/flows/routes.json +14 -0
- package/test-projects/flask-app/.ai-dev/conventions.md +51 -0
- package/test-projects/flask-app/.ai-dev/dependencies.json +298 -0
- package/test-projects/flask-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/flask-app/.ai-dev/files.json +194 -0
- package/test-projects/flask-app/.ai-dev/graph/knowledge-graph.json +60 -0
- package/test-projects/flask-app/.ai-dev/graph/module-graph.json +95 -0
- package/test-projects/flask-app/.ai-dev/graph/symbol-graph.json +1448 -0
- package/test-projects/flask-app/.ai-dev/graph/symbol-references.json +45 -0
- package/test-projects/flask-app/.ai-dev/index-state.json +273 -0
- package/test-projects/flask-app/.ai-dev/index.db +0 -0
- package/test-projects/flask-app/.ai-dev/modules.json +21 -0
- package/test-projects/flask-app/.ai-dev/project.json +13 -0
- package/test-projects/flask-app/.ai-dev/repo_map.json +400 -0
- package/test-projects/flask-app/.ai-dev/repo_map.md +98 -0
- package/test-projects/flask-app/.ai-dev/schema.json +5 -0
- package/test-projects/flask-app/.ai-dev/summary.md +13 -0
- package/test-projects/flask-app/.ai-dev/symbols.json +1 -0
- package/test-projects/flask-app/.ai-dev/tech_stack.md +32 -0
- package/test-projects/flask-app/.ai-dev/tools.json +10 -0
- package/test-projects/flask-app/README.md +129 -0
- package/test-projects/flask-app/ai-context/ai_context.md +94 -0
- package/test-projects/flask-app/ai-context/ai_rules.md +47 -0
- package/test-projects/flask-app/ai-context/architecture.md +49 -0
- package/test-projects/flask-app/ai-context/cache.json +157 -0
- package/test-projects/flask-app/ai-context/context/features/app.json +25 -0
- package/test-projects/flask-app/ai-context/context/flows/routes.json +14 -0
- package/test-projects/flask-app/ai-context/conventions.md +51 -0
- package/test-projects/flask-app/ai-context/dependencies.json +298 -0
- package/test-projects/flask-app/ai-context/entrypoints.md +4 -0
- package/test-projects/flask-app/ai-context/files.json +194 -0
- package/test-projects/flask-app/ai-context/graph/knowledge-graph.json +60 -0
- package/test-projects/flask-app/ai-context/graph/module-graph.json +95 -0
- package/test-projects/flask-app/ai-context/graph/symbol-graph.json +1448 -0
- package/test-projects/flask-app/ai-context/graph/symbol-references.json +45 -0
- package/test-projects/flask-app/ai-context/index-state.json +273 -0
- package/test-projects/flask-app/ai-context/index.db +0 -0
- package/test-projects/flask-app/ai-context/modules.json +21 -0
- package/test-projects/flask-app/ai-context/project.json +13 -0
- package/test-projects/flask-app/ai-context/repo_map.json +400 -0
- package/test-projects/flask-app/ai-context/repo_map.md +98 -0
- package/test-projects/flask-app/ai-context/schema.json +5 -0
- package/test-projects/flask-app/ai-context/summary.md +13 -0
- package/test-projects/flask-app/ai-context/symbols.json +1 -0
- package/test-projects/flask-app/ai-context/tech_stack.md +32 -0
- package/test-projects/flask-app/ai-context/tools.json +10 -0
- package/test-projects/flask-app/app/__init__.py +46 -0
- package/test-projects/flask-app/app/api/__init__.py +7 -0
- package/test-projects/flask-app/app/api/routes.py +122 -0
- package/test-projects/flask-app/app/auth/__init__.py +7 -0
- package/test-projects/flask-app/app/auth/forms.py +52 -0
- package/test-projects/flask-app/app/auth/routes.py +68 -0
- package/test-projects/flask-app/app/blog/__init__.py +7 -0
- package/test-projects/flask-app/app/blog/forms.py +35 -0
- package/test-projects/flask-app/app/blog/routes.py +140 -0
- package/test-projects/flask-app/app/main/__init__.py +7 -0
- package/test-projects/flask-app/app/main/routes.py +88 -0
- package/test-projects/flask-app/app/models.py +177 -0
- package/test-projects/flask-app/config.py +64 -0
- package/test-projects/flask-app/requirements.txt +10 -0
- package/test-projects/laravel-app/.ai-dev/ai_context.md +97 -0
- package/test-projects/laravel-app/.ai-dev/ai_rules.md +47 -0
- package/test-projects/laravel-app/.ai-dev/architecture.md +60 -0
- package/test-projects/laravel-app/.ai-dev/cache.json +161 -0
- package/test-projects/laravel-app/.ai-dev/context/features/app.json +21 -0
- package/test-projects/laravel-app/.ai-dev/context/flows/.json +9 -0
- package/test-projects/laravel-app/.ai-dev/context/flows/category.json +12 -0
- package/test-projects/laravel-app/.ai-dev/context/flows/comment.json +12 -0
- package/test-projects/laravel-app/.ai-dev/context/flows/post.json +12 -0
- package/test-projects/laravel-app/.ai-dev/context/flows/unnamed.json +9 -0
- package/test-projects/laravel-app/.ai-dev/conventions.md +51 -0
- package/test-projects/laravel-app/.ai-dev/dependencies.json +6 -0
- package/test-projects/laravel-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/laravel-app/.ai-dev/files.json +199 -0
- package/test-projects/laravel-app/.ai-dev/graph/knowledge-graph.json +98 -0
- package/test-projects/laravel-app/.ai-dev/graph/module-graph.json +30 -0
- package/test-projects/laravel-app/.ai-dev/graph/symbol-graph.json +5 -0
- package/test-projects/laravel-app/.ai-dev/graph/symbol-references.json +1 -0
- package/test-projects/laravel-app/.ai-dev/index-state.json +280 -0
- package/test-projects/laravel-app/.ai-dev/index.db +0 -0
- package/test-projects/laravel-app/.ai-dev/modules.json +29 -0
- package/test-projects/laravel-app/.ai-dev/project.json +17 -0
- package/test-projects/laravel-app/.ai-dev/repo_map.json +419 -0
- package/test-projects/laravel-app/.ai-dev/repo_map.md +106 -0
- package/test-projects/laravel-app/.ai-dev/schema.json +5 -0
- package/test-projects/laravel-app/.ai-dev/summary.md +15 -0
- package/test-projects/laravel-app/.ai-dev/symbols.json +1 -0
- package/test-projects/laravel-app/.ai-dev/tech_stack.md +34 -0
- package/test-projects/laravel-app/.ai-dev/tools.json +10 -0
- package/test-projects/laravel-app/README.md +107 -0
- package/test-projects/laravel-app/ai-context/ai_context.md +97 -0
- package/test-projects/laravel-app/ai-context/ai_rules.md +47 -0
- package/test-projects/laravel-app/ai-context/architecture.md +60 -0
- package/test-projects/laravel-app/ai-context/cache.json +161 -0
- package/test-projects/laravel-app/ai-context/context/features/app.json +21 -0
- package/test-projects/laravel-app/ai-context/context/flows/.json +9 -0
- package/test-projects/laravel-app/ai-context/context/flows/category.json +12 -0
- package/test-projects/laravel-app/ai-context/context/flows/comment.json +12 -0
- package/test-projects/laravel-app/ai-context/context/flows/post.json +12 -0
- package/test-projects/laravel-app/ai-context/context/flows/unnamed.json +9 -0
- package/test-projects/laravel-app/ai-context/conventions.md +51 -0
- package/test-projects/laravel-app/ai-context/dependencies.json +6 -0
- package/test-projects/laravel-app/ai-context/entrypoints.md +4 -0
- package/test-projects/laravel-app/ai-context/files.json +199 -0
- package/test-projects/laravel-app/ai-context/graph/knowledge-graph.json +98 -0
- package/test-projects/laravel-app/ai-context/graph/module-graph.json +30 -0
- package/test-projects/laravel-app/ai-context/graph/symbol-graph.json +5 -0
- package/test-projects/laravel-app/ai-context/graph/symbol-references.json +1 -0
- package/test-projects/laravel-app/ai-context/index-state.json +280 -0
- package/test-projects/laravel-app/ai-context/index.db +0 -0
- package/test-projects/laravel-app/ai-context/modules.json +29 -0
- package/test-projects/laravel-app/ai-context/project.json +17 -0
- package/test-projects/laravel-app/ai-context/repo_map.json +419 -0
- package/test-projects/laravel-app/ai-context/repo_map.md +106 -0
- package/test-projects/laravel-app/ai-context/schema.json +5 -0
- package/test-projects/laravel-app/ai-context/summary.md +15 -0
- package/test-projects/laravel-app/ai-context/symbols.json +1 -0
- package/test-projects/laravel-app/ai-context/tech_stack.md +34 -0
- package/test-projects/laravel-app/ai-context/tools.json +10 -0
- package/test-projects/laravel-app/app/Http/Controllers/Api/CategoryController.php +88 -0
- package/test-projects/laravel-app/app/Http/Controllers/Api/CommentController.php +56 -0
- package/test-projects/laravel-app/app/Http/Controllers/Api/PostController.php +174 -0
- package/test-projects/laravel-app/app/Http/Controllers/Controller.php +12 -0
- package/test-projects/laravel-app/app/Models/Category.php +34 -0
- package/test-projects/laravel-app/app/Models/Comment.php +51 -0
- package/test-projects/laravel-app/app/Models/Post.php +108 -0
- package/test-projects/laravel-app/app/Models/User.php +85 -0
- package/test-projects/laravel-app/bootstrap/app.php +25 -0
- package/test-projects/laravel-app/composer.json +35 -0
- package/test-projects/laravel-app/routes/api.php +40 -0
- package/test-projects/nestjs-backend/.ai-dev/ai_context.md +111 -0
- package/test-projects/nestjs-backend/.ai-dev/ai_rules.md +52 -0
- package/test-projects/nestjs-backend/.ai-dev/architecture.md +49 -0
- package/test-projects/nestjs-backend/.ai-dev/cache.json +169 -0
- package/test-projects/nestjs-backend/.ai-dev/context/features/src.json +23 -0
- package/test-projects/nestjs-backend/.ai-dev/context/flows/auth.controller.json +14 -0
- package/test-projects/nestjs-backend/.ai-dev/context/flows/auth.json +10 -0
- package/test-projects/nestjs-backend/.ai-dev/context/flows/users..json +10 -0
- package/test-projects/nestjs-backend/.ai-dev/context/flows/users.controller.json +14 -0
- package/test-projects/nestjs-backend/.ai-dev/context/flows/users.json +10 -0
- package/test-projects/nestjs-backend/.ai-dev/conventions.md +52 -0
- package/test-projects/nestjs-backend/.ai-dev/dependencies.json +152 -0
- package/test-projects/nestjs-backend/.ai-dev/entrypoints.md +18 -0
- package/test-projects/nestjs-backend/.ai-dev/files.json +209 -0
- package/test-projects/nestjs-backend/.ai-dev/graph/knowledge-graph.json +132 -0
- package/test-projects/nestjs-backend/.ai-dev/graph/module-graph.json +29 -0
- package/test-projects/nestjs-backend/.ai-dev/graph/symbol-graph.json +304 -0
- package/test-projects/nestjs-backend/.ai-dev/graph/symbol-references.json +5 -0
- package/test-projects/nestjs-backend/.ai-dev/index-state.json +294 -0
- package/test-projects/nestjs-backend/.ai-dev/index.db +0 -0
- package/test-projects/nestjs-backend/.ai-dev/modules.json +19 -0
- package/test-projects/nestjs-backend/.ai-dev/project.json +18 -0
- package/test-projects/nestjs-backend/.ai-dev/repo_map.json +427 -0
- package/test-projects/nestjs-backend/.ai-dev/repo_map.md +104 -0
- package/test-projects/nestjs-backend/.ai-dev/schema.json +5 -0
- package/test-projects/nestjs-backend/.ai-dev/summary.md +13 -0
- package/test-projects/nestjs-backend/.ai-dev/symbols.json +1 -0
- package/{ai → test-projects/nestjs-backend/.ai-dev}/tech_stack.md +6 -7
- package/test-projects/nestjs-backend/.ai-dev/tools.json +10 -0
- package/test-projects/nestjs-backend/ai-context/ai_context.md +111 -0
- package/test-projects/nestjs-backend/ai-context/ai_rules.md +52 -0
- package/test-projects/nestjs-backend/ai-context/architecture.md +49 -0
- package/test-projects/nestjs-backend/ai-context/cache.json +169 -0
- package/test-projects/nestjs-backend/ai-context/context/features/src.json +23 -0
- package/test-projects/nestjs-backend/ai-context/context/flows/auth.controller.json +14 -0
- package/test-projects/nestjs-backend/ai-context/context/flows/auth.json +10 -0
- package/test-projects/nestjs-backend/ai-context/context/flows/users..json +10 -0
- package/test-projects/nestjs-backend/ai-context/context/flows/users.controller.json +14 -0
- package/test-projects/nestjs-backend/ai-context/context/flows/users.json +10 -0
- package/test-projects/nestjs-backend/ai-context/conventions.md +52 -0
- package/test-projects/nestjs-backend/ai-context/dependencies.json +152 -0
- package/test-projects/nestjs-backend/ai-context/entrypoints.md +18 -0
- package/test-projects/nestjs-backend/ai-context/files.json +209 -0
- package/test-projects/nestjs-backend/ai-context/graph/knowledge-graph.json +132 -0
- package/test-projects/nestjs-backend/ai-context/graph/module-graph.json +29 -0
- package/test-projects/nestjs-backend/ai-context/graph/symbol-graph.json +304 -0
- package/test-projects/nestjs-backend/ai-context/graph/symbol-references.json +5 -0
- package/test-projects/nestjs-backend/ai-context/index-state.json +294 -0
- package/test-projects/nestjs-backend/ai-context/index.db +0 -0
- package/test-projects/nestjs-backend/ai-context/modules.json +19 -0
- package/test-projects/nestjs-backend/ai-context/project.json +18 -0
- package/test-projects/nestjs-backend/ai-context/repo_map.json +427 -0
- package/test-projects/nestjs-backend/ai-context/repo_map.md +104 -0
- package/test-projects/nestjs-backend/ai-context/schema.json +5 -0
- package/test-projects/nestjs-backend/ai-context/summary.md +13 -0
- package/test-projects/nestjs-backend/ai-context/symbols.json +1 -0
- package/test-projects/nestjs-backend/ai-context/tech_stack.md +38 -0
- package/test-projects/nestjs-backend/ai-context/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/.ai-dev/ai_context.md +95 -0
- package/test-projects/python-cli/.ai-dev/ai_rules.md +47 -0
- package/test-projects/python-cli/.ai-dev/architecture.md +55 -0
- package/test-projects/python-cli/.ai-dev/cache.json +149 -0
- package/test-projects/python-cli/.ai-dev/context/features/cli.json +16 -0
- package/test-projects/python-cli/.ai-dev/context/flows/list_.json +9 -0
- package/test-projects/python-cli/.ai-dev/context/flows/remove_.json +9 -0
- package/test-projects/python-cli/.ai-dev/conventions.md +51 -0
- package/test-projects/python-cli/.ai-dev/dependencies.json +66 -0
- package/test-projects/python-cli/.ai-dev/entrypoints.md +4 -0
- package/test-projects/python-cli/.ai-dev/files.json +184 -0
- package/test-projects/python-cli/.ai-dev/graph/knowledge-graph.json +83 -0
- package/test-projects/python-cli/.ai-dev/graph/module-graph.json +31 -0
- package/test-projects/python-cli/.ai-dev/graph/symbol-graph.json +358 -0
- package/test-projects/python-cli/.ai-dev/graph/symbol-references.json +11 -0
- package/test-projects/python-cli/.ai-dev/index-state.json +259 -0
- package/test-projects/python-cli/.ai-dev/index.db +0 -0
- package/test-projects/python-cli/.ai-dev/modules.json +21 -0
- package/test-projects/python-cli/.ai-dev/project.json +15 -0
- package/test-projects/python-cli/.ai-dev/repo_map.json +367 -0
- package/test-projects/python-cli/.ai-dev/repo_map.md +93 -0
- package/test-projects/python-cli/.ai-dev/schema.json +5 -0
- package/test-projects/python-cli/.ai-dev/summary.md +14 -0
- package/test-projects/python-cli/.ai-dev/symbols.json +1 -0
- package/test-projects/python-cli/.ai-dev/tech_stack.md +32 -0
- package/test-projects/python-cli/.ai-dev/tools.json +10 -0
- package/test-projects/python-cli/__init__.py +1 -0
- package/test-projects/python-cli/ai-context/ai_context.md +95 -0
- package/test-projects/python-cli/ai-context/ai_rules.md +47 -0
- package/test-projects/python-cli/ai-context/architecture.md +55 -0
- package/test-projects/python-cli/ai-context/cache.json +149 -0
- package/test-projects/python-cli/ai-context/context/features/cli.json +16 -0
- package/test-projects/python-cli/ai-context/context/flows/list_.json +9 -0
- package/test-projects/python-cli/ai-context/context/flows/remove_.json +9 -0
- package/test-projects/python-cli/ai-context/conventions.md +51 -0
- package/test-projects/python-cli/ai-context/dependencies.json +66 -0
- package/test-projects/python-cli/ai-context/entrypoints.md +4 -0
- package/test-projects/python-cli/ai-context/files.json +184 -0
- package/test-projects/python-cli/ai-context/graph/knowledge-graph.json +83 -0
- package/test-projects/python-cli/ai-context/graph/module-graph.json +31 -0
- package/test-projects/python-cli/ai-context/graph/symbol-graph.json +358 -0
- package/test-projects/python-cli/ai-context/graph/symbol-references.json +11 -0
- package/test-projects/python-cli/ai-context/index-state.json +259 -0
- package/test-projects/python-cli/ai-context/index.db +0 -0
- package/test-projects/python-cli/ai-context/modules.json +21 -0
- package/test-projects/python-cli/ai-context/project.json +15 -0
- package/test-projects/python-cli/ai-context/repo_map.json +367 -0
- package/test-projects/python-cli/ai-context/repo_map.md +93 -0
- package/test-projects/python-cli/ai-context/schema.json +5 -0
- package/test-projects/python-cli/ai-context/summary.md +14 -0
- package/test-projects/python-cli/ai-context/symbols.json +1 -0
- package/test-projects/python-cli/ai-context/tech_stack.md +32 -0
- package/test-projects/python-cli/ai-context/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/rails-app/.ai-dev/ai_context.md +94 -0
- package/test-projects/rails-app/.ai-dev/ai_rules.md +47 -0
- package/test-projects/rails-app/.ai-dev/architecture.md +49 -0
- package/test-projects/rails-app/.ai-dev/cache.json +193 -0
- package/test-projects/rails-app/.ai-dev/context/features/app.json +24 -0
- package/test-projects/rails-app/.ai-dev/context/features/config.json +13 -0
- package/test-projects/rails-app/.ai-dev/context/flows/application.json +9 -0
- package/test-projects/rails-app/.ai-dev/context/flows/application_.json +9 -0
- package/test-projects/rails-app/.ai-dev/context/flows/comments.json +11 -0
- package/test-projects/rails-app/.ai-dev/context/flows/comments_.json +11 -0
- package/test-projects/rails-app/.ai-dev/context/flows/posts.json +11 -0
- package/test-projects/rails-app/.ai-dev/context/flows/posts_.json +11 -0
- package/test-projects/rails-app/.ai-dev/context/flows/routes.json +9 -0
- package/test-projects/rails-app/.ai-dev/context/flows/users.json +11 -0
- package/test-projects/rails-app/.ai-dev/context/flows/users_.json +11 -0
- package/test-projects/rails-app/.ai-dev/conventions.md +51 -0
- package/test-projects/rails-app/.ai-dev/dependencies.json +6 -0
- package/test-projects/rails-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/rails-app/.ai-dev/files.json +239 -0
- package/test-projects/rails-app/.ai-dev/graph/knowledge-graph.json +130 -0
- package/test-projects/rails-app/.ai-dev/graph/module-graph.json +27 -0
- package/test-projects/rails-app/.ai-dev/graph/symbol-graph.json +5 -0
- package/test-projects/rails-app/.ai-dev/graph/symbol-references.json +1 -0
- package/test-projects/rails-app/.ai-dev/index-state.json +336 -0
- package/test-projects/rails-app/.ai-dev/index.db +0 -0
- package/test-projects/rails-app/.ai-dev/modules.json +26 -0
- package/test-projects/rails-app/.ai-dev/project.json +22 -0
- package/test-projects/rails-app/.ai-dev/repo_map.json +486 -0
- package/test-projects/rails-app/.ai-dev/repo_map.md +117 -0
- package/test-projects/rails-app/.ai-dev/schema.json +5 -0
- package/test-projects/rails-app/.ai-dev/summary.md +13 -0
- package/test-projects/rails-app/.ai-dev/symbols.json +1 -0
- package/test-projects/rails-app/.ai-dev/tech_stack.md +32 -0
- package/test-projects/rails-app/.ai-dev/tools.json +10 -0
- package/test-projects/rails-app/Gemfile +38 -0
- package/test-projects/rails-app/README.md +140 -0
- package/test-projects/rails-app/Rakefile +8 -0
- package/test-projects/rails-app/ai-context/ai_context.md +94 -0
- package/test-projects/rails-app/ai-context/ai_rules.md +47 -0
- package/test-projects/rails-app/ai-context/architecture.md +49 -0
- package/test-projects/rails-app/ai-context/cache.json +193 -0
- package/test-projects/rails-app/ai-context/context/features/app.json +24 -0
- package/test-projects/rails-app/ai-context/context/features/config.json +13 -0
- package/test-projects/rails-app/ai-context/context/flows/application.json +9 -0
- package/test-projects/rails-app/ai-context/context/flows/application_.json +9 -0
- package/test-projects/rails-app/ai-context/context/flows/comments.json +11 -0
- package/test-projects/rails-app/ai-context/context/flows/comments_.json +11 -0
- package/test-projects/rails-app/ai-context/context/flows/posts.json +11 -0
- package/test-projects/rails-app/ai-context/context/flows/posts_.json +11 -0
- package/test-projects/rails-app/ai-context/context/flows/routes.json +9 -0
- package/test-projects/rails-app/ai-context/context/flows/users.json +11 -0
- package/test-projects/rails-app/ai-context/context/flows/users_.json +11 -0
- package/test-projects/rails-app/ai-context/conventions.md +51 -0
- package/test-projects/rails-app/ai-context/dependencies.json +6 -0
- package/test-projects/rails-app/ai-context/entrypoints.md +4 -0
- package/test-projects/rails-app/ai-context/files.json +239 -0
- package/test-projects/rails-app/ai-context/graph/knowledge-graph.json +130 -0
- package/test-projects/rails-app/ai-context/graph/module-graph.json +27 -0
- package/test-projects/rails-app/ai-context/graph/symbol-graph.json +5 -0
- package/test-projects/rails-app/ai-context/graph/symbol-references.json +1 -0
- package/test-projects/rails-app/ai-context/index-state.json +336 -0
- package/test-projects/rails-app/ai-context/index.db +0 -0
- package/test-projects/rails-app/ai-context/modules.json +26 -0
- package/test-projects/rails-app/ai-context/project.json +22 -0
- package/test-projects/rails-app/ai-context/repo_map.json +486 -0
- package/test-projects/rails-app/ai-context/repo_map.md +117 -0
- package/test-projects/rails-app/ai-context/schema.json +5 -0
- package/test-projects/rails-app/ai-context/summary.md +13 -0
- package/test-projects/rails-app/ai-context/symbols.json +1 -0
- package/test-projects/rails-app/ai-context/tech_stack.md +32 -0
- package/test-projects/rails-app/ai-context/tools.json +10 -0
- package/test-projects/rails-app/app/controllers/api/comments_controller.rb +75 -0
- package/test-projects/rails-app/app/controllers/api/posts_controller.rb +68 -0
- package/test-projects/rails-app/app/controllers/api/users_controller.rb +54 -0
- package/test-projects/rails-app/app/controllers/application_controller.rb +31 -0
- package/test-projects/rails-app/app/models/comment.rb +34 -0
- package/test-projects/rails-app/app/models/post.rb +36 -0
- package/test-projects/rails-app/app/models/user.rb +28 -0
- package/test-projects/rails-app/app/services/post_service.rb +92 -0
- package/test-projects/rails-app/app/services/user_service.rb +76 -0
- package/test-projects/rails-app/config/application.rb +27 -0
- package/test-projects/rails-app/config/environment.rb +7 -0
- package/test-projects/rails-app/config/routes.rb +15 -0
- package/test-projects/react-app/.ai-dev/ai_context.md +96 -0
- package/test-projects/react-app/.ai-dev/ai_rules.md +49 -0
- package/test-projects/react-app/.ai-dev/architecture.md +39 -0
- package/test-projects/react-app/.ai-dev/cache.json +153 -0
- package/test-projects/react-app/.ai-dev/context/features/src.json +18 -0
- package/test-projects/react-app/.ai-dev/context/flows/UsersPage.json +14 -0
- package/test-projects/react-app/.ai-dev/context/flows/dashboard.json +9 -0
- package/test-projects/react-app/.ai-dev/context/flows/login.json +9 -0
- package/test-projects/react-app/.ai-dev/context/flows/users.json +9 -0
- package/test-projects/react-app/.ai-dev/dependencies.json +128 -0
- package/test-projects/react-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/react-app/.ai-dev/files.json +189 -0
- package/test-projects/react-app/.ai-dev/graph/knowledge-graph.json +112 -0
- package/test-projects/react-app/.ai-dev/graph/module-graph.json +31 -0
- package/test-projects/react-app/.ai-dev/graph/symbol-graph.json +868 -0
- package/test-projects/react-app/.ai-dev/graph/symbol-references.json +31 -0
- package/test-projects/react-app/.ai-dev/index-state.json +266 -0
- package/test-projects/react-app/.ai-dev/index.db +0 -0
- package/test-projects/react-app/.ai-dev/modules.json +17 -0
- package/test-projects/react-app/.ai-dev/project.json +16 -0
- package/test-projects/react-app/.ai-dev/repo_map.json +391 -0
- package/test-projects/react-app/.ai-dev/repo_map.md +94 -0
- package/test-projects/react-app/.ai-dev/schema.json +5 -0
- package/test-projects/react-app/.ai-dev/summary.md +13 -0
- package/test-projects/react-app/.ai-dev/symbols.json +1 -0
- package/test-projects/react-app/.ai-dev/tech_stack.md +39 -0
- package/test-projects/react-app/.ai-dev/tools.json +10 -0
- package/test-projects/react-app/ai-context/ai_context.md +96 -0
- package/test-projects/react-app/ai-context/ai_rules.md +49 -0
- package/test-projects/react-app/ai-context/architecture.md +39 -0
- package/test-projects/react-app/ai-context/cache.json +153 -0
- package/test-projects/react-app/ai-context/context/features/src.json +18 -0
- package/test-projects/react-app/ai-context/context/flows/UsersPage.json +14 -0
- package/test-projects/react-app/ai-context/context/flows/dashboard.json +9 -0
- package/test-projects/react-app/ai-context/context/flows/login.json +9 -0
- package/test-projects/react-app/ai-context/context/flows/users.json +9 -0
- package/test-projects/react-app/ai-context/conventions.md +52 -0
- package/test-projects/react-app/ai-context/dependencies.json +128 -0
- package/test-projects/react-app/ai-context/entrypoints.md +4 -0
- package/test-projects/react-app/ai-context/files.json +189 -0
- package/test-projects/react-app/ai-context/graph/knowledge-graph.json +112 -0
- package/test-projects/react-app/ai-context/graph/module-graph.json +31 -0
- package/test-projects/react-app/ai-context/graph/symbol-graph.json +868 -0
- package/test-projects/react-app/ai-context/graph/symbol-references.json +31 -0
- package/test-projects/react-app/ai-context/index-state.json +266 -0
- package/test-projects/react-app/ai-context/index.db +0 -0
- package/test-projects/react-app/ai-context/modules.json +17 -0
- package/test-projects/react-app/ai-context/project.json +16 -0
- package/test-projects/react-app/ai-context/repo_map.json +391 -0
- package/test-projects/react-app/ai-context/repo_map.md +94 -0
- package/test-projects/react-app/ai-context/schema.json +5 -0
- package/test-projects/react-app/ai-context/summary.md +13 -0
- package/test-projects/react-app/ai-context/symbols.json +1 -0
- package/test-projects/react-app/ai-context/tech_stack.md +39 -0
- package/test-projects/react-app/ai-context/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/.ai-dev/ai_context.md +89 -0
- package/test-projects/salesforce-cli/.ai-dev/ai_rules.md +47 -0
- package/test-projects/salesforce-cli/.ai-dev/architecture.md +39 -0
- package/test-projects/salesforce-cli/.ai-dev/cache.json +125 -0
- package/test-projects/salesforce-cli/.ai-dev/context/features/force-app.json +14 -0
- package/test-projects/salesforce-cli/.ai-dev/context/flows/account.json +9 -0
- package/test-projects/salesforce-cli/.ai-dev/context/flows/opportunity.json +9 -0
- package/test-projects/salesforce-cli/.ai-dev/conventions.md +51 -0
- package/test-projects/salesforce-cli/.ai-dev/dependencies.json +6 -0
- package/test-projects/salesforce-cli/.ai-dev/entrypoints.md +4 -0
- package/test-projects/salesforce-cli/.ai-dev/files.json +154 -0
- package/test-projects/salesforce-cli/.ai-dev/graph/knowledge-graph.json +64 -0
- package/test-projects/salesforce-cli/.ai-dev/graph/module-graph.json +13 -0
- package/test-projects/salesforce-cli/.ai-dev/graph/symbol-graph.json +148 -0
- package/test-projects/salesforce-cli/.ai-dev/graph/symbol-references.json +1 -0
- package/test-projects/salesforce-cli/.ai-dev/index-state.json +217 -0
- package/test-projects/salesforce-cli/.ai-dev/index.db +0 -0
- package/test-projects/salesforce-cli/.ai-dev/modules.json +12 -0
- package/test-projects/salesforce-cli/.ai-dev/project.json +14 -0
- package/test-projects/salesforce-cli/.ai-dev/repo_map.json +328 -0
- package/test-projects/salesforce-cli/.ai-dev/repo_map.md +80 -0
- package/test-projects/salesforce-cli/.ai-dev/schema.json +5 -0
- package/test-projects/salesforce-cli/.ai-dev/summary.md +13 -0
- package/test-projects/salesforce-cli/.ai-dev/symbols.json +1 -0
- package/test-projects/salesforce-cli/.ai-dev/tech_stack.md +31 -0
- package/test-projects/salesforce-cli/.ai-dev/tools.json +10 -0
- package/test-projects/salesforce-cli/.forceignore +27 -0
- package/test-projects/salesforce-cli/ai-context/ai_context.md +89 -0
- package/test-projects/salesforce-cli/ai-context/ai_rules.md +47 -0
- package/test-projects/salesforce-cli/ai-context/architecture.md +39 -0
- package/test-projects/salesforce-cli/ai-context/cache.json +125 -0
- package/test-projects/salesforce-cli/ai-context/context/features/force-app.json +14 -0
- package/test-projects/salesforce-cli/ai-context/context/flows/account.json +9 -0
- package/test-projects/salesforce-cli/ai-context/context/flows/opportunity.json +9 -0
- package/test-projects/salesforce-cli/ai-context/conventions.md +51 -0
- package/test-projects/salesforce-cli/ai-context/dependencies.json +6 -0
- package/test-projects/salesforce-cli/ai-context/entrypoints.md +4 -0
- package/test-projects/salesforce-cli/ai-context/files.json +154 -0
- package/test-projects/salesforce-cli/ai-context/graph/knowledge-graph.json +64 -0
- package/test-projects/salesforce-cli/ai-context/graph/module-graph.json +13 -0
- package/test-projects/salesforce-cli/ai-context/graph/symbol-graph.json +148 -0
- package/test-projects/salesforce-cli/ai-context/graph/symbol-references.json +1 -0
- package/test-projects/salesforce-cli/ai-context/index-state.json +217 -0
- package/test-projects/salesforce-cli/ai-context/index.db +0 -0
- package/test-projects/salesforce-cli/ai-context/modules.json +12 -0
- package/test-projects/salesforce-cli/ai-context/project.json +14 -0
- package/test-projects/salesforce-cli/ai-context/repo_map.json +328 -0
- package/test-projects/salesforce-cli/ai-context/repo_map.md +80 -0
- package/test-projects/salesforce-cli/ai-context/schema.json +5 -0
- package/test-projects/salesforce-cli/ai-context/summary.md +13 -0
- package/test-projects/salesforce-cli/ai-context/symbols.json +1 -0
- package/test-projects/salesforce-cli/ai-context/tech_stack.md +31 -0
- package/test-projects/salesforce-cli/ai-context/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/test-projects/spring-boot-app/.ai-dev/ai_context.md +91 -0
- package/test-projects/spring-boot-app/.ai-dev/ai_rules.md +48 -0
- package/test-projects/spring-boot-app/.ai-dev/architecture.md +39 -0
- package/test-projects/spring-boot-app/.ai-dev/cache.json +173 -0
- package/test-projects/spring-boot-app/.ai-dev/context/features/src.json +26 -0
- package/test-projects/spring-boot-app/.ai-dev/context/flows/PostController.json +19 -0
- package/test-projects/spring-boot-app/.ai-dev/context/flows/UserController.json +19 -0
- package/test-projects/spring-boot-app/.ai-dev/context/flows/comment.json +11 -0
- package/test-projects/spring-boot-app/.ai-dev/context/flows/post.json +14 -0
- package/test-projects/spring-boot-app/.ai-dev/context/flows/user.json +14 -0
- package/test-projects/spring-boot-app/.ai-dev/conventions.md +52 -0
- package/test-projects/spring-boot-app/.ai-dev/dependencies.json +326 -0
- package/test-projects/spring-boot-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/spring-boot-app/.ai-dev/files.json +214 -0
- package/test-projects/spring-boot-app/.ai-dev/graph/knowledge-graph.json +231 -0
- package/test-projects/spring-boot-app/.ai-dev/graph/module-graph.json +22 -0
- package/test-projects/spring-boot-app/.ai-dev/graph/symbol-graph.json +794 -0
- package/test-projects/spring-boot-app/.ai-dev/graph/symbol-references.json +70 -0
- package/test-projects/spring-boot-app/.ai-dev/index-state.json +301 -0
- package/test-projects/spring-boot-app/.ai-dev/index.db +0 -0
- package/test-projects/spring-boot-app/.ai-dev/modules.json +21 -0
- package/test-projects/spring-boot-app/.ai-dev/project.json +17 -0
- package/test-projects/spring-boot-app/.ai-dev/repo_map.json +461 -0
- package/test-projects/spring-boot-app/.ai-dev/repo_map.md +109 -0
- package/test-projects/spring-boot-app/.ai-dev/schema.json +5 -0
- package/test-projects/spring-boot-app/.ai-dev/summary.md +12 -0
- package/test-projects/spring-boot-app/.ai-dev/symbols.json +1 -0
- package/test-projects/spring-boot-app/.ai-dev/tech_stack.md +32 -0
- package/test-projects/spring-boot-app/.ai-dev/tools.json +10 -0
- package/test-projects/spring-boot-app/.classpath +57 -0
- package/test-projects/spring-boot-app/.factorypath +69 -0
- package/test-projects/spring-boot-app/.project +34 -0
- package/test-projects/spring-boot-app/.settings/org.eclipse.core.resources.prefs +4 -0
- package/test-projects/spring-boot-app/.settings/org.eclipse.jdt.apt.core.prefs +4 -0
- package/test-projects/spring-boot-app/.settings/org.eclipse.jdt.core.prefs +10 -0
- package/test-projects/spring-boot-app/.settings/org.eclipse.m2e.core.prefs +4 -0
- package/test-projects/spring-boot-app/README.md +122 -0
- package/test-projects/spring-boot-app/ai-context/ai_context.md +91 -0
- package/test-projects/spring-boot-app/ai-context/ai_rules.md +48 -0
- package/test-projects/spring-boot-app/ai-context/architecture.md +39 -0
- package/test-projects/spring-boot-app/ai-context/cache.json +173 -0
- package/test-projects/spring-boot-app/ai-context/context/features/src.json +26 -0
- package/test-projects/spring-boot-app/ai-context/context/flows/PostController.json +19 -0
- package/test-projects/spring-boot-app/ai-context/context/flows/UserController.json +19 -0
- package/test-projects/spring-boot-app/ai-context/context/flows/comment.json +11 -0
- package/test-projects/spring-boot-app/ai-context/context/flows/post.json +14 -0
- package/test-projects/spring-boot-app/ai-context/context/flows/user.json +14 -0
- package/test-projects/spring-boot-app/ai-context/conventions.md +52 -0
- package/test-projects/spring-boot-app/ai-context/dependencies.json +326 -0
- package/test-projects/spring-boot-app/ai-context/entrypoints.md +4 -0
- package/test-projects/spring-boot-app/ai-context/files.json +214 -0
- package/test-projects/spring-boot-app/ai-context/graph/knowledge-graph.json +231 -0
- package/test-projects/spring-boot-app/ai-context/graph/module-graph.json +22 -0
- package/test-projects/spring-boot-app/ai-context/graph/symbol-graph.json +794 -0
- package/test-projects/spring-boot-app/ai-context/graph/symbol-references.json +70 -0
- package/test-projects/spring-boot-app/ai-context/index-state.json +301 -0
- package/test-projects/spring-boot-app/ai-context/index.db +0 -0
- package/test-projects/spring-boot-app/ai-context/modules.json +21 -0
- package/test-projects/spring-boot-app/ai-context/project.json +17 -0
- package/test-projects/spring-boot-app/ai-context/repo_map.json +461 -0
- package/test-projects/spring-boot-app/ai-context/repo_map.md +109 -0
- package/test-projects/spring-boot-app/ai-context/schema.json +5 -0
- package/test-projects/spring-boot-app/ai-context/summary.md +12 -0
- package/test-projects/spring-boot-app/ai-context/symbols.json +1 -0
- package/test-projects/spring-boot-app/ai-context/tech_stack.md +32 -0
- package/test-projects/spring-boot-app/ai-context/tools.json +10 -0
- package/test-projects/spring-boot-app/pom.xml +79 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/DemoApplication.java +12 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/controllers/CommentController.java +89 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/controllers/PostController.java +92 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/controllers/UserController.java +84 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/models/Comment.java +38 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/models/Post.java +56 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/models/User.java +44 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/repositories/CommentRepository.java +21 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/repositories/PostRepository.java +18 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/repositories/UserRepository.java +15 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/services/PostService.java +83 -0
- package/test-projects/spring-boot-app/src/main/java/com/example/demo/services/UserService.java +62 -0
- package/test-projects/spring-boot-app/src/main/resources/application.properties +22 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/DemoApplication.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/CommentController$CommentCreateRequest.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/CommentController$CommentUpdateRequest.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/CommentController.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/PostController$PostCreateRequest.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/PostController$PostUpdateRequest.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/PostController.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/UserController$UserCreateRequest.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/UserController$UserUpdateRequest.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/controllers/UserController.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/models/Comment.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/models/Post.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/models/User.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/repositories/CommentRepository.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/repositories/PostRepository.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/repositories/UserRepository.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/services/PostService.class +0 -0
- package/test-projects/spring-boot-app/target/classes/com/example/demo/services/UserService.class +0 -0
- package/test_adapters.mjs +87 -0
- package/tests/e2e/README.md +85 -0
- package/tests/e2e/run-e2e.sh +88 -0
- package/tests/phase2-fixes.test.ts +200 -0
- package/tests/semanticContexts.test.ts +23 -25
- package/ai/cache.json +0 -329
- package/ai/dependencies.json +0 -307
- package/ai/files.json +0 -1253
- package/ai/graph/module-graph.json +0 -119
- package/ai/graph/symbol-graph.json +0 -52738
- package/ai/graph/symbol-references.json +0 -1810
- package/ai/hierarchy.json +0 -28
- package/ai/index-state.json +0 -931
- package/ai/index.db +0 -0
- package/ai/modules.json +0 -73
- package/ai/repo-map.json +0 -833
- package/ai/repo_map.json +0 -833
- package/ai/repo_map.md +0 -211
- package/ai/summary.md +0 -23
- /package/{ai → .ai-dev}/ccp/jira-123/context.json +0 -0
- /package/{ai → .ai-dev}/context/repo.json +0 -0
- /package/{ai → .ai-dev}/context/utils.json +0 -0
- /package/{ai → .ai-dev}/embeddings.json +0 -0
- /package/{ai → .ai-dev}/git/commit-activity.json +0 -0
- /package/{ai → .ai-dev}/git/recent-features.json +0 -0
- /package/{ai → .ai-dev}/git/recent-files.json +0 -0
- /package/{ai → .ai-dev}/git/recent-flows.json +0 -0
- /package/{ai/symbols.json → ai-context/git/recent-features.json} +0 -0
- /package/{ai → test-projects/react-app/.ai-dev}/conventions.md +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const jwt = require('jsonwebtoken');
|
|
2
|
+
const authService = require('../services/authService');
|
|
3
|
+
|
|
4
|
+
const SECRET = process.env.JWT_SECRET || 'secret';
|
|
5
|
+
|
|
6
|
+
async function login(req, res) {
|
|
7
|
+
try {
|
|
8
|
+
const { email, password } = req.body;
|
|
9
|
+
const user = await authService.verifyCredentials(email, password);
|
|
10
|
+
|
|
11
|
+
if (!user) {
|
|
12
|
+
return res.status(401).json({ error: 'Invalid credentials' });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const token = jwt.sign({ userId: user.id }, SECRET, { expiresIn: '24h' });
|
|
16
|
+
res.json({ token, user: { id: user.id, email: user.email } });
|
|
17
|
+
} catch (error) {
|
|
18
|
+
res.status(500).json({ error: error.message });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function register(req, res) {
|
|
23
|
+
try {
|
|
24
|
+
const { email, password } = req.body;
|
|
25
|
+
const user = await authService.createUser(email, password);
|
|
26
|
+
res.status(201).json({ user });
|
|
27
|
+
} catch (error) {
|
|
28
|
+
res.status(500).json({ error: error.message });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
module.exports = { login, register };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const userService = require('../services/userService');
|
|
2
|
+
|
|
3
|
+
async function getAll(req, res) {
|
|
4
|
+
try {
|
|
5
|
+
const users = await userService.findAll();
|
|
6
|
+
res.json(users);
|
|
7
|
+
} catch (error) {
|
|
8
|
+
res.status(500).json({ error: error.message });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async function getById(req, res) {
|
|
13
|
+
try {
|
|
14
|
+
const user = await userService.findById(req.params.id);
|
|
15
|
+
if (!user) {
|
|
16
|
+
return res.status(404).json({ error: 'User not found' });
|
|
17
|
+
}
|
|
18
|
+
res.json(user);
|
|
19
|
+
} catch (error) {
|
|
20
|
+
res.status(500).json({ error: error.message });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async function create(req, res) {
|
|
25
|
+
try {
|
|
26
|
+
const user = await userService.create(req.body);
|
|
27
|
+
res.status(201).json(user);
|
|
28
|
+
} catch (error) {
|
|
29
|
+
res.status(500).json({ error: error.message });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async function update(req, res) {
|
|
34
|
+
try {
|
|
35
|
+
const user = await userService.update(req.params.id, req.body);
|
|
36
|
+
res.json(user);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
res.status(500).json({ error: error.message });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async function remove(req, res) {
|
|
43
|
+
try {
|
|
44
|
+
await userService.remove(req.params.id);
|
|
45
|
+
res.status(204).send();
|
|
46
|
+
} catch (error) {
|
|
47
|
+
res.status(500).json({ error: error.message });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
module.exports = { getAll, getById, create, update, delete: remove };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const express = require('express');
|
|
2
|
+
const authController = require('./controllers/authController');
|
|
3
|
+
const userController = require('./controllers/userController');
|
|
4
|
+
|
|
5
|
+
const app = express();
|
|
6
|
+
app.use(express.json());
|
|
7
|
+
|
|
8
|
+
app.post('/auth/login', authController.login);
|
|
9
|
+
app.post('/auth/register', authController.register);
|
|
10
|
+
app.get('/users', userController.getAll);
|
|
11
|
+
app.get('/users/:id', userController.getById);
|
|
12
|
+
app.post('/users', userController.create);
|
|
13
|
+
app.put('/users/:id', userController.update);
|
|
14
|
+
app.delete('/users/:id', userController.delete);
|
|
15
|
+
|
|
16
|
+
const PORT = process.env.PORT || 3000;
|
|
17
|
+
app.listen(PORT, () => {
|
|
18
|
+
console.log(`Server running on port ${PORT}`);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
function finalTest() {
|
|
22
|
+
return 'final';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = app;
|
|
26
|
+
|
|
27
|
+
function nuevaFuncionTest() {
|
|
28
|
+
return 'test';
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const jwt = require('jsonwebtoken');
|
|
2
|
+
|
|
3
|
+
const SECRET = process.env.JWT_SECRET || 'secret';
|
|
4
|
+
|
|
5
|
+
function authenticate(req, res, next) {
|
|
6
|
+
const token = req.headers.authorization?.split(' ')[1];
|
|
7
|
+
|
|
8
|
+
if (!token) {
|
|
9
|
+
return res.status(401).json({ error: 'No token provided' });
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
try {
|
|
13
|
+
const decoded = jwt.verify(token, SECRET);
|
|
14
|
+
req.user = decoded;
|
|
15
|
+
next();
|
|
16
|
+
} catch (error) {
|
|
17
|
+
res.status(401).json({ error: 'Invalid token' });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function authorize(roles = []) {
|
|
22
|
+
return (req, res, next) => {
|
|
23
|
+
if (!roles.includes(req.user?.role)) {
|
|
24
|
+
return res.status(403).json({ error: 'Forbidden' });
|
|
25
|
+
}
|
|
26
|
+
next();
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports = { authenticate, authorize };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const users = [];
|
|
2
|
+
|
|
3
|
+
const db = {
|
|
4
|
+
findAll: () => Promise.resolve(users),
|
|
5
|
+
findById: (id) => Promise.resolve(users.find(u => u.id === id)),
|
|
6
|
+
findByEmail: (email) => Promise.resolve(users.find(u => u.email === email)),
|
|
7
|
+
create: (data) => {
|
|
8
|
+
const user = { id: String(users.length + 1), ...data };
|
|
9
|
+
users.push(user);
|
|
10
|
+
return Promise.resolve(user);
|
|
11
|
+
},
|
|
12
|
+
update: (id, data) => {
|
|
13
|
+
const index = users.findIndex(u => u.id === id);
|
|
14
|
+
if (index === -1) return Promise.resolve(null);
|
|
15
|
+
users[index] = { ...users[index], ...data };
|
|
16
|
+
return Promise.resolve(users[index]);
|
|
17
|
+
},
|
|
18
|
+
delete: (id) => {
|
|
19
|
+
const index = users.findIndex(u => u.id === id);
|
|
20
|
+
if (index !== -1) users.splice(index, 1);
|
|
21
|
+
return Promise.resolve();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
module.exports = db;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "express-api",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Express.js API with auth and users",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "node index.js",
|
|
8
|
+
"dev": "nodemon index.js"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"express": "^4.18.2",
|
|
12
|
+
"jsonwebtoken": "^9.0.0",
|
|
13
|
+
"bcrypt": "^5.1.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"nodemon": "^3.0.0"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const bcrypt = require('bcrypt');
|
|
2
|
+
const userRepository = require('../models/userRepository');
|
|
3
|
+
|
|
4
|
+
async function verifyCredentials(email, password) {
|
|
5
|
+
const user = await userRepository.findByEmail(email);
|
|
6
|
+
if (!user) return null;
|
|
7
|
+
|
|
8
|
+
const valid = await bcrypt.compare(password, user.password);
|
|
9
|
+
return valid ? user : null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async function createUser(email, password) {
|
|
13
|
+
const hashedPassword = await bcrypt.hash(password, 10);
|
|
14
|
+
return userRepository.create({ email, password: hashedPassword });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = { verifyCredentials, createUser };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
class UserService {
|
|
2
|
+
constructor(repository) {
|
|
3
|
+
this.repository = repository;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
async findAll() {
|
|
7
|
+
return this.repository.findAll();
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async findById(id) {
|
|
11
|
+
return this.repository.findById(id);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async create(data) {
|
|
15
|
+
return this.repository.create(data);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async update(id, data) {
|
|
19
|
+
return this.repository.update(id, data);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async remove(id) {
|
|
23
|
+
return this.repository.delete(id);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const repository = require('../models/userRepository');
|
|
28
|
+
module.exports = new UserService(repository);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# AI Context
|
|
2
|
+
|
|
3
|
+
> This file provides a comprehensive overview of the repository for AI coding assistants.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Quick Overview
|
|
8
|
+
|
|
9
|
+
- **Pattern**: Flat / Simple Structure
|
|
10
|
+
- **Languages**: Markdown, JSON, Python
|
|
11
|
+
- **Frameworks**: None
|
|
12
|
+
- **Total Files**: 30
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Table of Contents
|
|
17
|
+
|
|
18
|
+
1. [Tech Stack](#tech-stack)
|
|
19
|
+
2. [Architecture](#architecture)
|
|
20
|
+
3. [Key Entrypoints](#key-entrypoints)
|
|
21
|
+
4. [Code Conventions](#code-conventions)
|
|
22
|
+
5. [AI Rules](#ai-rules)
|
|
23
|
+
6. [Repository Map](#repository-map)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Tech Stack
|
|
28
|
+
|
|
29
|
+
**Languages**: Markdown, JSON, Python
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Architecture
|
|
34
|
+
|
|
35
|
+
## Architectural Pattern
|
|
36
|
+
**Primary**: Flat / Simple Structure
|
|
37
|
+
|
|
38
|
+
## Key Modules
|
|
39
|
+
| Module | Responsibility |
|
|
40
|
+
|--------|----------------|
|
|
41
|
+
| `README.md` | Contains 0 files |
|
|
42
|
+
| `ai` | Contains 22 files |
|
|
43
|
+
| `app` | Contains 7 files |
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Key Entrypoints
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Code Conventions
|
|
53
|
+
|
|
54
|
+
## Naming Conventions
|
|
55
|
+
- **Files**: PascalCase
|
|
56
|
+
|
|
57
|
+
## Project Structure
|
|
58
|
+
|
|
59
|
+
## Code Style
|
|
60
|
+
- **Semicolons**: Required
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## AI Rules
|
|
66
|
+
|
|
67
|
+
- Language: Use Markdown, JSON, Python
|
|
68
|
+
- Architecture: Follow Flat / Simple Structure pattern
|
|
69
|
+
- File naming: PascalCase
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Repository Map
|
|
74
|
+
|
|
75
|
+
See repo_map.md for the full structure.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Notes for AI Assistants
|
|
80
|
+
|
|
81
|
+
1. Follow the established naming conventions (see conventions.md)
|
|
82
|
+
2. Use the detected frameworks and libraries
|
|
83
|
+
3. Target the correct entrypoints for modifications
|
|
84
|
+
4. Maintain the detected architecture patterns
|
|
85
|
+
5. Follow AI rules in ai_rules.md
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
*Generated by ai-first*
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# AI Rules
|
|
2
|
+
|
|
3
|
+
> Guidelines for AI assistants working on this project
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Guidelines
|
|
8
|
+
|
|
9
|
+
- Language: Use Markdown, JSON, Python
|
|
10
|
+
- Architecture: Follow Flat / Simple Structure pattern
|
|
11
|
+
- File naming: PascalCase
|
|
12
|
+
|
|
13
|
+
## Patterns
|
|
14
|
+
|
|
15
|
+
- Layer structure:
|
|
16
|
+
|
|
17
|
+
## Constraints
|
|
18
|
+
|
|
19
|
+
- Always use semicolons
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Quick Reference
|
|
24
|
+
|
|
25
|
+
| Category | Value |
|
|
26
|
+
|----------|-------|
|
|
27
|
+
| Language | Markdown, JSON, Python |
|
|
28
|
+
| Framework | N/A |
|
|
29
|
+
| Architecture | Flat / Simple Structure |
|
|
30
|
+
| Naming | PascalCase |
|
|
31
|
+
| Indentation | unknown |
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Best Practices
|
|
36
|
+
|
|
37
|
+
1. Follow the established naming conventions
|
|
38
|
+
2. Keep functions small and focused
|
|
39
|
+
3. Write tests for new features
|
|
40
|
+
4. Use descriptive variable names
|
|
41
|
+
5. Keep the architecture consistent
|
|
42
|
+
6. Document complex logic
|
|
43
|
+
7. Review code before committing
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
*Generated by ai-first*
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Architecture
|
|
2
|
+
|
|
3
|
+
## Architectural Pattern
|
|
4
|
+
**Primary**: Flat / Simple Structure
|
|
5
|
+
|
|
6
|
+
## Key Modules
|
|
7
|
+
| Module | Responsibility |
|
|
8
|
+
|--------|----------------|
|
|
9
|
+
| `README.md` | Contains 0 files |
|
|
10
|
+
| `ai` | Contains 22 files |
|
|
11
|
+
| `app` | Contains 7 files |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Module Details
|
|
15
|
+
|
|
16
|
+
### README.md
|
|
17
|
+
- **Path**: `README.md`
|
|
18
|
+
- **Responsibility**: Contains 0 files
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ai
|
|
22
|
+
- **Path**: `ai`
|
|
23
|
+
- **Responsibility**: Contains 22 files
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### app
|
|
27
|
+
- **Path**: `app`
|
|
28
|
+
- **Responsibility**: Contains 7 files
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Recommendations
|
|
33
|
+
|
|
34
|
+
- Keep the architecture consistent as the project grows
|
|
35
|
+
- Follow the established layer structure
|
|
36
|
+
- Use dependency injection to manage module relationships
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
*Generated by ai-first*
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"README.md": {
|
|
4
|
+
"hash": "bf26100b42bb769b5067306a5fb0a830",
|
|
5
|
+
"mtime": 1773848160010.3352
|
|
6
|
+
},
|
|
7
|
+
"ai/ai_context.md": {
|
|
8
|
+
"hash": "ae75965ab10eb1908719b0785e40e1a1",
|
|
9
|
+
"mtime": 1773861710066.3542
|
|
10
|
+
},
|
|
11
|
+
"ai/ai_rules.md": {
|
|
12
|
+
"hash": "d2b7ddc70e63ad287b892635b384f5ae",
|
|
13
|
+
"mtime": 1773861710065.3542
|
|
14
|
+
},
|
|
15
|
+
"ai/architecture.md": {
|
|
16
|
+
"hash": "fd551b5672ab8b719e06455a85718066",
|
|
17
|
+
"mtime": 1773861710058.3542
|
|
18
|
+
},
|
|
19
|
+
"ai/cache.json": {
|
|
20
|
+
"hash": "429adfe1177228af3779a24147bc7e1b",
|
|
21
|
+
"mtime": 1773848188957.7383
|
|
22
|
+
},
|
|
23
|
+
"ai/conventions.md": {
|
|
24
|
+
"hash": "d11ac646a8916e3c6cc376f610368317",
|
|
25
|
+
"mtime": 1773861710060.3542
|
|
26
|
+
},
|
|
27
|
+
"ai/dependencies.json": {
|
|
28
|
+
"hash": "246c5a632d3afd7fd186dc0f028157f6",
|
|
29
|
+
"mtime": 1773861710064.3542
|
|
30
|
+
},
|
|
31
|
+
"ai/entrypoints.md": {
|
|
32
|
+
"hash": "34c8965a66697d9f1d428bb0904f5d8d",
|
|
33
|
+
"mtime": 1773861710060.3542
|
|
34
|
+
},
|
|
35
|
+
"ai/files.json": {
|
|
36
|
+
"hash": "734d13fa206aea9e736eb50badde4c23",
|
|
37
|
+
"mtime": 1773861710144.3555
|
|
38
|
+
},
|
|
39
|
+
"ai/graph/module-graph.json": {
|
|
40
|
+
"hash": "dccb5b1211bf9c438fefd949ef8d280d",
|
|
41
|
+
"mtime": 1773861710135.3555
|
|
42
|
+
},
|
|
43
|
+
"ai/graph/symbol-graph.json": {
|
|
44
|
+
"hash": "dacfe5d47c55c042e7a83e970b975fd2",
|
|
45
|
+
"mtime": 1773861710144.3555
|
|
46
|
+
},
|
|
47
|
+
"ai/graph/symbol-references.json": {
|
|
48
|
+
"hash": "1cac27d66672fe0c2cf2c0f030e38795",
|
|
49
|
+
"mtime": 1773861710144.3555
|
|
50
|
+
},
|
|
51
|
+
"ai/index-state.json": {
|
|
52
|
+
"hash": "140a19ce26a2a62352b6eb6457d91fc5",
|
|
53
|
+
"mtime": 1773854929729.0337
|
|
54
|
+
},
|
|
55
|
+
"ai/modules.json": {
|
|
56
|
+
"hash": "1c7630ab9b91c57c6cb9ccb384cc3f4e",
|
|
57
|
+
"mtime": 1773861710133.3555
|
|
58
|
+
},
|
|
59
|
+
"ai/project.json": {
|
|
60
|
+
"hash": "29b067d118acceb17e83694360d27fe6",
|
|
61
|
+
"mtime": 1773861710068.3542
|
|
62
|
+
},
|
|
63
|
+
"ai/repo-map.json": {
|
|
64
|
+
"hash": "c64c668b71846bc29a16100539b84548",
|
|
65
|
+
"mtime": 1773861710133.3555
|
|
66
|
+
},
|
|
67
|
+
"ai/repo_map.json": {
|
|
68
|
+
"hash": "61358628f0bbd8e108fdca092a8a09cc",
|
|
69
|
+
"mtime": 1773861710057.3542
|
|
70
|
+
},
|
|
71
|
+
"ai/repo_map.md": {
|
|
72
|
+
"hash": "9a522402572988daf8913fe6ad4fed1b",
|
|
73
|
+
"mtime": 1773861710056.3542
|
|
74
|
+
},
|
|
75
|
+
"ai/schema.json": {
|
|
76
|
+
"hash": "2b1eabb6aae9b5fe6431d4bcff158d4a",
|
|
77
|
+
"mtime": 1773861710068.3542
|
|
78
|
+
},
|
|
79
|
+
"ai/summary.md": {
|
|
80
|
+
"hash": "2599e048b52f161bbe99c102fa0cc7db",
|
|
81
|
+
"mtime": 1773861710057.3542
|
|
82
|
+
},
|
|
83
|
+
"ai/symbols.json": {
|
|
84
|
+
"hash": "a89ac8114a5482c6128299186c367207",
|
|
85
|
+
"mtime": 1773861710062.3542
|
|
86
|
+
},
|
|
87
|
+
"ai/tech_stack.md": {
|
|
88
|
+
"hash": "876902a6b64c33c4d65f658e9fd2bb27",
|
|
89
|
+
"mtime": 1773861710059.3542
|
|
90
|
+
},
|
|
91
|
+
"ai/tools.json": {
|
|
92
|
+
"hash": "b1356e52c74e9b3b6a0d397b790a4968",
|
|
93
|
+
"mtime": 1773861710068.3542
|
|
94
|
+
},
|
|
95
|
+
"app/database.py": {
|
|
96
|
+
"hash": "119e69e1cbb98dd5dbad6dd6667c31c8",
|
|
97
|
+
"mtime": 1773847938779.2578
|
|
98
|
+
},
|
|
99
|
+
"app/dependencies.py": {
|
|
100
|
+
"hash": "a4bcf7c973d54dfba67718f52c0d1e9b",
|
|
101
|
+
"mtime": 1773848033913.5806
|
|
102
|
+
},
|
|
103
|
+
"app/main.py": {
|
|
104
|
+
"hash": "19a812c3ee021a6e96bdf3aee822ac95",
|
|
105
|
+
"mtime": 1773848130927.9304
|
|
106
|
+
},
|
|
107
|
+
"app/models.py": {
|
|
108
|
+
"hash": "a246bcc28f34e2ea398115358f06ec1e",
|
|
109
|
+
"mtime": 1773847967580.6582
|
|
110
|
+
},
|
|
111
|
+
"app/routers/auth.py": {
|
|
112
|
+
"hash": "7f51218c007b8f521b149f0801d8b145",
|
|
113
|
+
"mtime": 1773848061086.9585
|
|
114
|
+
},
|
|
115
|
+
"app/routers/posts.py": {
|
|
116
|
+
"hash": "f8db1a2d760c7e611af7c610dbab4162",
|
|
117
|
+
"mtime": 1773848113520.6882
|
|
118
|
+
},
|
|
119
|
+
"app/schemas.py": {
|
|
120
|
+
"hash": "4049102356e992bc2c4442d589cd2ced",
|
|
121
|
+
"mtime": 1773848005561.1863
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"lastIndexed": "2026-03-18T19:21:50.145Z"
|
|
125
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Code Conventions
|
|
2
|
+
|
|
3
|
+
## Naming Conventions
|
|
4
|
+
- **Files**: PascalCase
|
|
5
|
+
|
|
6
|
+
## Project Structure
|
|
7
|
+
|
|
8
|
+
## Code Style
|
|
9
|
+
- **Semicolons**: Required
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## Naming Conventions
|
|
13
|
+
|
|
14
|
+
| Element | Convention |
|
|
15
|
+
|---------|------------|
|
|
16
|
+
| Files | PascalCase |
|
|
17
|
+
| Components | unknown |
|
|
18
|
+
| Test Files | unknown |
|
|
19
|
+
| Directories | unknown |
|
|
20
|
+
|
|
21
|
+
## Project Structure
|
|
22
|
+
|
|
23
|
+
| Directory | Location |
|
|
24
|
+
|-----------|----------|
|
|
25
|
+
| Source | unknown |
|
|
26
|
+
| Tests | unknown |
|
|
27
|
+
| Config | unknown |
|
|
28
|
+
|
|
29
|
+
## Code Style
|
|
30
|
+
|
|
31
|
+
| Style Element | Value |
|
|
32
|
+
|---------------|-------|
|
|
33
|
+
| Indentation | unknown |
|
|
34
|
+
| Semicolons | Required |
|
|
35
|
+
|
|
36
|
+
## Testing
|
|
37
|
+
|
|
38
|
+
| Aspect | Value |
|
|
39
|
+
|--------|-------|
|
|
40
|
+
| Framework | unknown |
|
|
41
|
+
| Test Pattern | unknown |
|
|
42
|
+
|
|
43
|
+
## Git
|
|
44
|
+
|
|
45
|
+
| Aspect | Value |
|
|
46
|
+
|--------|-------|
|
|
47
|
+
| Branch Strategy | Trunk-based (main/master) |
|
|
48
|
+
| Commit Format | unknown |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
*Generated by ai-first*
|