ai-first-cli 1.1.5 → 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 +8 -8
- package/{ai → .ai-dev}/ai_rules.md +2 -2
- package/{ai → .ai-dev}/architecture.md +38 -23
- package/.ai-dev/cache.json +2349 -0
- package/.ai-dev/context/features/test-projects.json +69 -0
- package/.ai-dev/context/flows/api.json +9 -0
- package/{ai → .ai-dev}/context/flows/auth.json +2 -1
- package/.ai-dev/context/flows/category.json +12 -0
- package/.ai-dev/context/flows/comment.json +16 -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/views.json +14 -0
- package/.ai-dev/dependencies.json +2946 -0
- package/.ai-dev/files.json +2944 -0
- package/{ai → .ai-dev}/git/commit-activity.json +39 -126
- package/{ai → .ai-dev}/git/recent-files.json +6 -6
- package/.ai-dev/git/recent-flows.json +1 -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 → .ai-dev}/project.json +8 -7
- package/{ai → .ai-dev}/repo_map.json +3403 -918
- package/{ai → .ai-dev}/repo_map.md +604 -45
- package/{test-projects/nestjs-backend/ai → .ai-dev}/schema.json +1 -1
- package/{ai → .ai-dev}/summary.md +15 -5
- package/.ai-dev/symbols.json +7 -0
- package/{ai → .ai-dev}/tech_stack.md +7 -3
- package/.github/workflows/publish.yml +55 -0
- package/CHANGELOG.md +125 -0
- 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 -44411
- 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-features.json +1 -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/{test-projects/python-cli/ai → ai-context}/schema.json +1 -1
- package/ai-context/summary.md +42 -0
- package/ai-context/symbols.json +7 -0
- package/ai-context/tech_stack.md +46 -0
- package/dist/analyzers/symbols.d.ts.map +1 -1
- package/dist/analyzers/symbols.js +135 -7
- package/dist/analyzers/symbols.js.map +1 -1
- package/dist/commands/ai-first.d.ts.map +1 -1
- package/dist/commands/ai-first.js +35 -15
- 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 +13 -4
- package/dist/core/semanticContexts.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 +1 -1
- package/src/analyzers/symbols.ts +144 -7
- package/src/commands/ai-first.ts +37 -15
- 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 +14 -4
- 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/dependencies.json +312 -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/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/{express-api/ai → django-app/.ai-dev}/schema.json +1 -1
- 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/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/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/{ai → test-projects/django-app/ai-context}/schema.json +1 -1
- 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/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 → .ai-dev}/project.json +2 -2
- package/test-projects/express-api/{ai → .ai-dev}/repo_map.json +1 -1
- package/test-projects/express-api/.ai-dev/schema.json +5 -0
- package/test-projects/express-api/.ai-dev/symbols.json +7 -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/index.js +9 -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/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/{express-api/ai/repo-map.json → fastapi-app/.ai-dev/repo_map.json} +121 -114
- 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/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 → .ai-dev}/ai_context.md +7 -6
- package/test-projects/nestjs-backend/{ai → .ai-dev}/ai_rules.md +4 -4
- package/test-projects/nestjs-backend/{ai → .ai-dev}/architecture.md +6 -0
- package/test-projects/nestjs-backend/{ai → .ai-dev}/cache.json +65 -33
- package/test-projects/nestjs-backend/.ai-dev/context/flows/auth.controller.json +14 -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 → .ai-dev}/files.json +25 -0
- package/test-projects/nestjs-backend/.ai-dev/graph/knowledge-graph.json +132 -0
- package/test-projects/nestjs-backend/{ai → .ai-dev}/index-state.json +122 -87
- package/{ai → test-projects/nestjs-backend/.ai-dev}/index.db +0 -0
- package/test-projects/nestjs-backend/{ai → .ai-dev}/project.json +6 -2
- package/test-projects/nestjs-backend/{ai/repo-map.json → .ai-dev/repo_map.json} +106 -2
- 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 → .ai-dev}/summary.md +4 -2
- package/test-projects/nestjs-backend/.ai-dev/symbols.json +1 -0
- package/test-projects/nestjs-backend/{ai → .ai-dev}/tech_stack.md +2 -1
- 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/python-cli/{ai → .ai-dev}/ai_context.md +5 -4
- package/test-projects/python-cli/{ai → .ai-dev}/ai_rules.md +2 -2
- package/test-projects/python-cli/{ai → .ai-dev}/architecture.md +6 -0
- package/test-projects/python-cli/{ai → .ai-dev}/cache.json +53 -33
- package/test-projects/python-cli/.ai-dev/entrypoints.md +4 -0
- package/test-projects/python-cli/{ai → .ai-dev}/files.json +10 -0
- package/test-projects/python-cli/{ai → .ai-dev}/graph/knowledge-graph.json +1 -1
- package/test-projects/python-cli/{ai → .ai-dev}/index-state.json +97 -83
- package/test-projects/python-cli/{ai → .ai-dev}/index.db +0 -0
- package/test-projects/python-cli/{ai → .ai-dev}/project.json +1 -1
- package/test-projects/python-cli/{ai/repo-map.json → .ai-dev/repo_map.json} +79 -2
- 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 → .ai-dev}/summary.md +4 -1
- 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/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/{nestjs-backend/ai → 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/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 → .ai-dev}/ai_context.md +5 -4
- package/test-projects/react-app/{ai → .ai-dev}/ai_rules.md +2 -2
- package/test-projects/react-app/{ai → .ai-dev}/architecture.md +6 -0
- package/test-projects/react-app/{ai → .ai-dev}/cache.json +57 -33
- package/test-projects/react-app/.ai-dev/context/flows/UsersPage.json +14 -0
- package/test-projects/react-app/.ai-dev/entrypoints.md +4 -0
- package/test-projects/react-app/{ai → .ai-dev}/files.json +15 -0
- package/test-projects/react-app/{ai → .ai-dev}/graph/knowledge-graph.json +32 -3
- package/test-projects/react-app/{ai → .ai-dev}/index-state.json +105 -84
- package/test-projects/react-app/{ai → .ai-dev}/index.db +0 -0
- package/test-projects/react-app/{ai → .ai-dev}/project.json +2 -1
- package/test-projects/react-app/{ai/repo-map.json → .ai-dev/repo_map.json} +88 -2
- 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 → .ai-dev}/summary.md +4 -2
- package/test-projects/react-app/.ai-dev/symbols.json +1 -0
- package/test-projects/react-app/{ai → .ai-dev}/tech_stack.md +2 -1
- 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/{nestjs-backend/ai → react-app/ai-context}/conventions.md +2 -2
- 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/salesforce-cli/{ai → .ai-dev}/ai_context.md +5 -4
- package/test-projects/salesforce-cli/{ai → .ai-dev}/ai_rules.md +2 -2
- package/test-projects/salesforce-cli/{ai → .ai-dev}/architecture.md +6 -0
- package/test-projects/salesforce-cli/{ai → .ai-dev}/cache.json +52 -32
- 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 → .ai-dev}/files.json +10 -0
- package/test-projects/salesforce-cli/{ai → .ai-dev}/graph/knowledge-graph.json +1 -1
- package/test-projects/salesforce-cli/.ai-dev/graph/symbol-references.json +1 -0
- package/test-projects/salesforce-cli/{ai → .ai-dev}/index-state.json +90 -76
- package/test-projects/salesforce-cli/{ai → .ai-dev}/index.db +0 -0
- package/test-projects/salesforce-cli/{ai → .ai-dev}/project.json +1 -1
- package/test-projects/salesforce-cli/{ai/repo-map.json → .ai-dev/repo_map.json} +79 -2
- 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 → .ai-dev}/summary.md +4 -2
- package/test-projects/salesforce-cli/.ai-dev/symbols.json +1 -0
- package/test-projects/salesforce-cli/{ai → .ai-dev}/tech_stack.md +2 -1
- package/test-projects/salesforce-cli/.ai-dev/tools.json +10 -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/{express-api/ai → salesforce-cli/ai-context}/files.json +27 -42
- 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/{express-api/ai → 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/{python-cli/ai → salesforce-cli/ai-context}/tech_stack.md +3 -2
- package/test-projects/salesforce-cli/ai-context/tools.json +10 -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 +20 -20
- package/tests/phase2-fixes.test.ts +200 -0
- package/ANALISIS_MEJORAS.md +0 -327
- package/TEST_RESULTS.md +0 -198
- package/TEST_RESULTS_COMPARATIVE.md +0 -159
- package/TEST_RESULTS_COMPLETE.md +0 -127
- package/TEST_RESULTS_COMPREHENSIVE.md +0 -208
- package/ai/cache.json +0 -1109
- package/ai/context/features/test-projects.json +0 -56
- package/ai/context/flows/add_.json +0 -9
- package/ai/context/flows/auth..json +0 -10
- package/ai/context/flows/list_.json +0 -9
- package/ai/context/flows/remove_.json +0 -9
- package/ai/context/flows/user.json +0 -14
- package/ai/context/flows/users..json +0 -10
- package/ai/dependencies.json +0 -485
- package/ai/files.json +0 -2029
- package/ai/git/recent-features.json +0 -3
- package/ai/git/recent-flows.json +0 -3
- package/ai/graph/module-graph.json +0 -389
- package/ai/graph/symbol-graph.json +0 -85206
- package/ai/graph/symbol-references.json +0 -2707
- package/ai/hierarchy.json +0 -7
- package/ai/index-state.json +0 -1939
- package/ai/modules.json +0 -299
- package/ai/repo-map.json +0 -2867
- package/test-projects/express-api/ai/cache.json +0 -125
- package/test-projects/express-api/ai/graph/knowledge-graph.json +0 -98
- package/test-projects/express-api/ai/graph/module-graph.json +0 -44
- package/test-projects/express-api/ai/graph/symbol-graph.json +0 -882
- package/test-projects/express-api/ai/graph/symbol-references.json +0 -51
- package/test-projects/express-api/ai/index-state.json +0 -238
- package/test-projects/express-api/ai/symbols.json +0 -1174
- package/test-projects/nestjs-backend/ai/graph/knowledge-graph.json +0 -74
- package/test-projects/nestjs-backend/ai/repo_map.json +0 -141
- package/test-projects/nestjs-backend/ai/repo_map.md +0 -39
- package/test-projects/nestjs-backend/ai/symbols.json +0 -527
- package/test-projects/python-cli/ai/context/flows/add_.json +0 -9
- package/test-projects/python-cli/ai/repo_map.json +0 -99
- package/test-projects/python-cli/ai/repo_map.md +0 -32
- package/test-projects/python-cli/ai/symbols.json +0 -475
- package/test-projects/react-app/ai/repo_map.json +0 -114
- package/test-projects/react-app/ai/repo_map.md +0 -31
- package/test-projects/react-app/ai/schema.json +0 -5
- package/test-projects/react-app/ai/symbols.json +0 -985
- package/test-projects/salesforce-cli/ai/repo_map.json +0 -69
- package/test-projects/salesforce-cli/ai/repo_map.md +0 -21
- package/test-projects/salesforce-cli/ai/schema.json +0 -5
- package/test-projects/salesforce-cli/ai/symbols.json +0 -245
- /package/{ai → .ai-dev}/ccp/jira-123/context.json +0 -0
- /package/{ai → .ai-dev}/context/features/commands.json +0 -0
- /package/{ai → .ai-dev}/context/features/src.json +0 -0
- /package/{ai → .ai-dev}/context/flows/account.json +0 -0
- /package/{ai → .ai-dev}/context/flows/ai-first.json +0 -0
- /package/{ai → .ai-dev}/context/flows/dashboard.json +0 -0
- /package/{ai → .ai-dev}/context/flows/doctor.json +0 -0
- /package/{ai → .ai-dev}/context/flows/explore.json +0 -0
- /package/{ai → .ai-dev}/context/flows/login.json +0 -0
- /package/{ai → .ai-dev}/context/flows/opportunity.json +0 -0
- /package/{ai → .ai-dev}/context/flows/users.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}/conventions.md +0 -0
- /package/{ai → .ai-dev}/embeddings.json +0 -0
- /package/{ai → .ai-dev}/entrypoints.md +0 -0
- /package/{ai/symbols.json → .ai-dev/git/recent-features.json} +0 -0
- /package/{ai → .ai-dev}/tools.json +0 -0
- /package/{test-projects/express-api/ai → ai-context}/tools.json +0 -0
- /package/test-projects/{salesforce-cli/ai → django-app/.ai-dev}/conventions.md +0 -0
- /package/test-projects/{python-cli/ai → django-app/.ai-dev}/entrypoints.md +0 -0
- /package/test-projects/{salesforce-cli/ai → django-app/.ai-dev}/graph/symbol-references.json +0 -0
- /package/test-projects/{nestjs-backend/ai → django-app/.ai-dev}/tools.json +0 -0
- /package/test-projects/{react-app/ai → django-app/ai-context}/entrypoints.md +0 -0
- /package/test-projects/{python-cli/ai → django-app/ai-context}/tools.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/ai_context.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/ai_rules.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/architecture.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/context/features/controllers.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/context/features/services.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/context/flows/auth.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/context/flows/user.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/conventions.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/dependencies.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/entrypoints.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/modules.json +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/repo_map.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/summary.md +0 -0
- /package/test-projects/express-api/{ai → .ai-dev}/tech_stack.md +0 -0
- /package/test-projects/{react-app/ai → express-api/.ai-dev}/tools.json +0 -0
- /package/test-projects/{salesforce-cli/ai → express-api/ai-context}/tools.json +0 -0
- /package/test-projects/{salesforce-cli/ai → fastapi-app/.ai-dev}/entrypoints.md +0 -0
- /package/test-projects/{salesforce-cli/ai → laravel-app/.ai-dev}/dependencies.json +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/context/features/src.json +0 -0
- /package/test-projects/nestjs-backend/{ai/context/flows/auth..json → .ai-dev/context/flows/auth.json} +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/context/flows/users..json +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/dependencies.json +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/entrypoints.md +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/graph/module-graph.json +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/graph/symbol-graph.json +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/graph/symbol-references.json +0 -0
- /package/test-projects/nestjs-backend/{ai → .ai-dev}/modules.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/context/features/cli.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/context/flows/list_.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/context/flows/remove_.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/conventions.md +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/dependencies.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/graph/module-graph.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/graph/symbol-graph.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/graph/symbol-references.json +0 -0
- /package/test-projects/python-cli/{ai → .ai-dev}/modules.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/context/features/src.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/context/flows/dashboard.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/context/flows/login.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/context/flows/users.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/conventions.md +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/dependencies.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/graph/module-graph.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/graph/symbol-graph.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/graph/symbol-references.json +0 -0
- /package/test-projects/react-app/{ai → .ai-dev}/modules.json +0 -0
- /package/test-projects/salesforce-cli/{ai → .ai-dev}/context/features/force-app.json +0 -0
- /package/test-projects/salesforce-cli/{ai → .ai-dev}/context/flows/account.json +0 -0
- /package/test-projects/salesforce-cli/{ai → .ai-dev}/context/flows/opportunity.json +0 -0
- /package/test-projects/salesforce-cli/{ai → .ai-dev}/graph/module-graph.json +0 -0
- /package/test-projects/salesforce-cli/{ai → .ai-dev}/graph/symbol-graph.json +0 -0
- /package/test-projects/salesforce-cli/{ai → .ai-dev}/modules.json +0 -0
package/README.es.md
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
```
|
|
26
26
|
$ npx ai-first init
|
|
27
|
-
✅ Generated ai/ai_context.md (0.3s)
|
|
28
|
-
✅ Generated ai/symbols.json (0.1s)
|
|
29
|
-
✅ Generated ai/dependencies.json (0.1s)
|
|
27
|
+
✅ Generated ai-context/ai_context.md (0.3s)
|
|
28
|
+
✅ Generated ai-context/symbols.json (0.1s)
|
|
29
|
+
✅ Generated ai-context/dependencies.json (0.1s)
|
|
30
30
|
✅ Generated 11 context files
|
|
31
31
|
|
|
32
|
-
🎉 Ready! Give ai/ai_context.md to your AI assistant.
|
|
32
|
+
🎉 Ready! Give ai-context/ai_context.md to your AI assistant.
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
**Resultado:** La IA comprende tu proyecto en ~500 tokens en lugar de 50,000.
|
|
@@ -114,13 +114,13 @@ ai-first init
|
|
|
114
114
|
### 1. Agentes de Código IA (OpenCode, Cursor, Claude Code)
|
|
115
115
|
```bash
|
|
116
116
|
ai-first init
|
|
117
|
-
# Luego pregunta a la IA: "Lee ai/ai_context.md y ayúdame a agregar una característica"
|
|
117
|
+
# Luego pregunta a la IA: "Lee ai-context/ai_context.md y ayúdame a agregar una característica"
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
### 2. Incorporación de Nuevos Desarrolladores
|
|
121
121
|
```bash
|
|
122
122
|
ai-first init
|
|
123
|
-
# El nuevo desarrollador lee ai/ai_context.md → comprende el proyecto en 2 minutos
|
|
123
|
+
# El nuevo desarrollador lee ai-context/ai_context.md → comprende el proyecto en 2 minutos
|
|
124
124
|
```
|
|
125
125
|
|
|
126
126
|
### 3. Documentación del Proyecto
|
|
@@ -148,7 +148,7 @@ Resultado: Código roto, tokens desperdiciados
|
|
|
148
148
|
```
|
|
149
149
|
$ ai-first init
|
|
150
150
|
|
|
151
|
-
Tú: "Lee ai/ai_context.md, luego agrega autenticación"
|
|
151
|
+
Tú: "Lee ai-context/ai_context.md, luego agrega autenticación"
|
|
152
152
|
IA: *lee 1 archivo (0.5s)*
|
|
153
153
|
IA: "Veo que usas Express + JWT con auth en src/middleware/auth.ts"
|
|
154
154
|
IA: "Agregaré autenticación siguiendo tus convenciones..."
|
|
@@ -238,7 +238,7 @@ AI-First CLI
|
|
|
238
238
|
## 📁 Archivos Generados
|
|
239
239
|
|
|
240
240
|
```
|
|
241
|
-
ai/
|
|
241
|
+
ai-context/
|
|
242
242
|
├── ai_context.md # ⭐ Empieza aquí — vista general unificada
|
|
243
243
|
├── repo_map.json # Estructura legible por máquina
|
|
244
244
|
├── symbols.json # Funciones/clases extraídas
|
|
@@ -268,7 +268,7 @@ ai/
|
|
|
268
268
|
| Agente | Cómo Usarlo |
|
|
269
269
|
|--------|-------------|
|
|
270
270
|
| **OpenCode** | `~/.config/opencode/commands/ai-first.md` |
|
|
271
|
-
| **Cursor** | Referencia `ai/ai_context.md` en prompts |
|
|
271
|
+
| **Cursor** | Referencia `ai-context/ai_context.md` en prompts |
|
|
272
272
|
| **Claude Code** | Incluye contexto en el prompt del sistema |
|
|
273
273
|
| **Windsurf** | Comprensión del proyecto |
|
|
274
274
|
| **GitHub Copilot** | Sugerencias conscientes del contexto |
|
|
@@ -289,60 +289,25 @@ ai-first init --output ./docs/ai
|
|
|
289
289
|
|
|
290
290
|
# Directorio raíz personalizado
|
|
291
291
|
ai-first init --root ./my-project
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
TH|ai-first ccp list
|
|
312
|
-
TH|
|
|
313
|
-
TH|# Mostrar detalles del CCP
|
|
314
|
-
TH|ai-first ccp show tarea-auth
|
|
315
|
-
TH|```
|
|
316
|
-
TH|
|
|
317
|
-
TH|### Estructura CCP
|
|
318
|
-
TH|
|
|
319
|
-
TH|```
|
|
320
|
-
TH|ai/
|
|
321
|
-
TH|├── context/ # Módulos de contexto (auto-generados)
|
|
322
|
-
TH|│ ├── repo.json # Contexto base del repositorio
|
|
323
|
-
TH|│ ├── auth.json # Contexto de autenticación
|
|
324
|
-
TH|│ └── <feature>.json
|
|
325
|
-
TH|│
|
|
326
|
-
TH|└── ccp/ # Definiciones de CCP
|
|
327
|
-
TH| └── <nombre>/
|
|
328
|
-
TH| └── context.json
|
|
329
|
-
TH|```
|
|
330
|
-
TH|
|
|
331
|
-
TH|Ejemplo CCP (context.json)
|
|
332
|
-
TH|
|
|
333
|
-
TH|```json
|
|
334
|
-
TH|{
|
|
335
|
-
TH| "task": "auth-feature",
|
|
336
|
-
TH| "description": "Trabajo en autenticación",
|
|
337
|
-
TH| "includes": [
|
|
338
|
-
TH| "../../context/repo.json",
|
|
339
|
-
TH| "../../context/auth.json",
|
|
340
|
-
TH| "../../context/api.json"
|
|
341
|
-
TH| ]
|
|
342
|
-
TH|}
|
|
343
|
-
TH|```
|
|
344
|
-
TH|
|
|
345
|
-
Caso de uso: Crea contextos específicos como `"fix-bug"`, `"add-feature"`, `"refactor"`, etc.
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 📦 Context Control Packs (CCP)
|
|
297
|
+
|
|
298
|
+
CCP (Context Control Packs) te permite crear contextos reutilizables y específicos para diferentes flujos de trabajo de IA.
|
|
299
|
+
|
|
300
|
+
### Cómo Funciona
|
|
301
|
+
|
|
302
|
+
1. **Generar Módulos de Contexto**: `ai-first init` crea módulos en `ai-context/context/`
|
|
303
|
+
2. **Crear un CCP**: Define qué módulos incluir para una tarea específica
|
|
304
|
+
3. **Usar en IA**: Referencia el CCP al trabajar con agentes de IA
|
|
305
|
+
|
|
306
|
+
### Ejemplo
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
ai-first ccp create tarea-auth --include repo,auth,api --description "Trabajo en autenticación"
|
|
310
|
+
```
|
|
346
311
|
|
|
347
312
|
---
|
|
348
313
|
|
|
@@ -360,7 +325,7 @@ Los features representan módulos de negocio detectados desde la estructura del
|
|
|
360
325
|
- Excluidos: utils, helpers, types, interfaces, constants, config, models, dto, common
|
|
361
326
|
|
|
362
327
|
```json
|
|
363
|
-
// ai/context/features/<modulo>.json
|
|
328
|
+
// ai-context/context/features/<modulo>.json
|
|
364
329
|
{
|
|
365
330
|
"feature": "auth",
|
|
366
331
|
"files": ["src/auth/controller.js", "src/auth/service.js"],
|
|
@@ -378,7 +343,7 @@ Los flows representan cadenas de ejecución de negocio desde entrypoints.
|
|
|
378
343
|
- Debe iniciar desde un entrypoint (Controller, Route, Command, Handler)
|
|
379
344
|
|
|
380
345
|
```json
|
|
381
|
-
// ai/context/flows/<nombre>.json
|
|
346
|
+
// ai-context/context/flows/<nombre>.json
|
|
382
347
|
{
|
|
383
348
|
"name": "login",
|
|
384
349
|
"entrypoint": "src/auth/controller.js",
|
|
@@ -392,35 +357,50 @@ Los flows representan cadenas de ejecución de negocio desde entrypoints.
|
|
|
392
357
|
|
|
393
358
|
---
|
|
394
359
|
|
|
395
|
-
##
|
|
396
|
-
TH|
|
|
397
|
-
TH|---
|
|
360
|
+
## 🤖 Soporte Android/Kotlin
|
|
398
361
|
|
|
399
|
-
|
|
362
|
+
ai-first detecta e indexa automáticamente proyectos Android/Kotlin:
|
|
400
363
|
|
|
401
|
-
|
|
364
|
+
- **Detección de lenguaje**: Kotlin (.kt)
|
|
365
|
+
- **Detección de framework**: Android (vía build.gradle, AndroidManifest.xml)
|
|
366
|
+
- **Análisis de dependencias**: Dependencias Gradle (implementation, api, compile)
|
|
367
|
+
- **Puntos de entrada**: Activities, Services, BroadcastReceivers desde AndroidManifest.xml
|
|
368
|
+
- **Recursos**: Indexa res/layout, res/drawable, res/values
|
|
369
|
+
- **Multi-módulo**: Detecta módulos Gradle desde settings.gradle
|
|
402
370
|
|
|
403
|
-
|
|
371
|
+
### Archivos generados para proyectos Android
|
|
404
372
|
|
|
405
|
-
|
|
406
|
-
|
|
373
|
+
- `ai-context/tech_stack.md` - Muestra Android con versiones de SDK
|
|
374
|
+
- `ai-context/dependencies.json` - Dependencias Gradle en formato group:artifact:version
|
|
375
|
+
- `ai-context/entrypoints.md` - Activities, services, permisos de Android
|
|
376
|
+
- `ai-context/android-resources.json` - Layouts, drawables, values (si existe res/)
|
|
377
|
+
- `ai-context/gradle-modules.json` - Estructura multi-módulo (si existe settings.gradle)
|
|
407
378
|
|
|
408
379
|
---
|
|
409
380
|
|
|
410
381
|
## 📋 Roadmap
|
|
411
382
|
|
|
412
|
-
###
|
|
413
|
-
-
|
|
414
|
-
|
|
383
|
+
### Phase 1 ✅ (Completado)
|
|
384
|
+
- Infraestructura de testing con 11 proyectos de prueba
|
|
385
|
+
|
|
386
|
+
### Phase 2 ✅ (Completado)
|
|
387
|
+
- Fixes de calidad: extracción de símbolos, sanitización de nombres de flows
|
|
388
|
+
- Soporte para parsers PHP y Ruby agregado
|
|
389
|
+
- 11 adapters funcionando (100% cobertura)
|
|
415
390
|
|
|
416
|
-
###
|
|
417
|
-
- [ ]
|
|
418
|
-
- [ ]
|
|
391
|
+
### Phase 3 (Planificado)
|
|
392
|
+
- [ ] Indexación semántica mejorada
|
|
393
|
+
- [ ] Sistema de plugins para analizadores custom
|
|
394
|
+
- [ ] Soporte Scala
|
|
395
|
+
- [ ] Soporte de archivo de configuración (`ai-first.config.json`)
|
|
396
|
+
- [ ] Sistema de reglas/plugins custom
|
|
397
|
+
- [ ] Plantillas de integración CI/CD
|
|
419
398
|
|
|
420
|
-
###
|
|
421
|
-
- [ ]
|
|
422
|
-
- [ ]
|
|
423
|
-
- [ ]
|
|
399
|
+
### Phase 4 (Futuro)
|
|
400
|
+
- [ ] Integración con Git (analizar cambios recientes)
|
|
401
|
+
- [ ] Contexto aware de diff (qué cambió desde última ejecución)
|
|
402
|
+
- [ ] Modo interactivo
|
|
403
|
+
- [ ] Extensión de VS Code
|
|
424
404
|
|
|
425
405
|
---
|
|
426
406
|
|
|
@@ -460,27 +440,30 @@ Ver [docs/architecture.md](./docs/architecture.md) para arquitectura interna.
|
|
|
460
440
|
¡Danos una ⭐ si este proyecto te ayudó!
|
|
461
441
|
|
|
462
442
|
---
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
443
|
+
|
|
444
|
+
## 🤖 Soporte Android/Kotlin
|
|
445
|
+
|
|
446
|
+
ai-first detecta e indexa automáticamente proyectos Android/Kotlin:
|
|
447
|
+
|
|
448
|
+
- **Detección de lenguaje**: Kotlin (.kt)
|
|
469
449
|
- **Detección de framework**: Android (vía build.gradle, AndroidManifest.xml)
|
|
470
450
|
- **Análisis de dependencias**: Dependencias Gradle (implementation, api, compile)
|
|
471
451
|
- **Puntos de entrada**: Activities, Services, BroadcastReceivers desde AndroidManifest.xml
|
|
472
452
|
- **Recursos**: Indexa res/layout, res/drawable, res/values
|
|
473
453
|
- **Multi-módulo**: Detecta módulos Gradle desde settings.gradle
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
- `ai/dependencies.json` - Dependencias Gradle en formato group:artifact:version
|
|
479
|
-
- `ai/entrypoints.md` - Activities, services, permisos de Android
|
|
480
|
-
- `ai/android-resources.json` - Layouts, drawables, values (si existe res/)
|
|
481
|
-
- `ai/gradle-modules.json` - Estructura multi-módulo (si existe settings.gradle)
|
|
482
|
-
|
|
483
|
-
|
|
454
|
+
|
|
455
|
+
### Archivos generados para proyectos Android
|
|
456
|
+
|
|
457
|
+
- `ai-context/tech_stack.md` - Muestra Android con versiones de SDK
|
|
458
|
+
- `ai-context/dependencies.json` - Dependencias Gradle en formato group:artifact:version
|
|
459
|
+
- `ai-context/entrypoints.md` - Activities, services, permisos de Android
|
|
460
|
+
- `ai-context/android-resources.json` - Layouts, drawables, values (si existe res/)
|
|
461
|
+
- `ai-context/gradle-modules.json` - Estructura multi-módulo (si existe settings.gradle)
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
484
465
|
## 📄 Licencia
|
|
485
466
|
|
|
486
467
|
MIT © [Julian Perez Pesce](https://github.com/julianperezpesce)
|
|
468
|
+
|
|
469
|
+
MIT © [Julian Perez Pesce](https://github.com/julianperezpesce)
|
package/README.md
CHANGED
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
|
|
23
23
|
```
|
|
24
24
|
$ npx ai-first init
|
|
25
|
-
✅ Generated ai/ai_context.md (0.3s)
|
|
26
|
-
✅ Generated ai/symbols.json (0.1s)
|
|
27
|
-
✅ Generated ai/dependencies.json (0.1s)
|
|
25
|
+
✅ Generated ai-context/ai_context.md (0.3s)
|
|
26
|
+
✅ Generated ai-context/symbols.json (0.1s)
|
|
27
|
+
✅ Generated ai-context/dependencies.json (0.1s)
|
|
28
28
|
✅ Generated 11 context files
|
|
29
29
|
|
|
30
|
-
🎉 Ready! Give ai/ai_context.md to your AI assistant.
|
|
30
|
+
🎉 Ready! Give ai-context/ai_context.md to your AI assistant.
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
**Result:** AI understands your project in ~500 tokens instead of 50,000.
|
|
@@ -113,13 +113,13 @@ ai-first init
|
|
|
113
113
|
### 1. AI Coding Agents (OpenCode, Cursor, Claude Code)
|
|
114
114
|
```bash
|
|
115
115
|
ai-first init
|
|
116
|
-
# Then ask AI: "Read ai/ai_context.md and help me add a feature"
|
|
116
|
+
# Then ask AI: "Read ai-context/ai_context.md and help me add a feature"
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
### 2. Onboarding New Developers
|
|
120
120
|
```bash
|
|
121
121
|
ai-first init
|
|
122
|
-
# New dev reads ai/ai_context.md → understands project in 2 minutes
|
|
122
|
+
# New dev reads ai-context/ai_context.md → understands project in 2 minutes
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
### 3. Project Documentation
|
|
@@ -147,7 +147,7 @@ Result: Broken code, wasted tokens
|
|
|
147
147
|
```
|
|
148
148
|
$ ai-first init
|
|
149
149
|
|
|
150
|
-
You: "Read ai/ai_context.md, then add authentication"
|
|
150
|
+
You: "Read ai-context/ai_context.md, then add authentication"
|
|
151
151
|
AI: *reads 1 file (0.5s)*
|
|
152
152
|
AI: "I see you're using Express + JWT with auth in src/middleware/auth.ts"
|
|
153
153
|
AI: "I'll add authentication following your conventions..."
|
|
@@ -239,9 +239,9 @@ AI-First CLI
|
|
|
239
239
|
## 📁 Generated Files
|
|
240
240
|
|
|
241
241
|
```
|
|
242
|
-
ai/
|
|
242
|
+
ai-context/
|
|
243
243
|
├── ai_context.md # ⭐ Start here — unified overview
|
|
244
|
-
├── repo_map.json
|
|
244
|
+
├── repo_map.json # Machine-readable structure
|
|
245
245
|
├── symbols.json # Extracted functions/classes with unique IDs
|
|
246
246
|
├── dependencies.json # Import relationships
|
|
247
247
|
├── architecture.md # Architecture pattern
|
|
@@ -276,7 +276,7 @@ ai/
|
|
|
276
276
|
| Agent | How to Use |
|
|
277
277
|
|-------|------------|
|
|
278
278
|
| **OpenCode** | `~/.config/opencode/commands/ai-first.md` |
|
|
279
|
-
| **Cursor** | Reference `ai/ai_context.md` in prompts |
|
|
279
|
+
| **Cursor** | Reference `ai-context/ai_context.md` in prompts |
|
|
280
280
|
| **Claude Code** | Include context in system prompt |
|
|
281
281
|
| **Windsurf** | Project understanding |
|
|
282
282
|
| **GitHub Copilot** | Context-aware suggestions |
|
|
@@ -351,62 +351,10 @@ ai-first explore src
|
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
The explore command generates a module dependency graph based on imports.
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
QB|CCP (Context Control Packs) allow you to create reusable, task-specific contexts for different AI workflows.
|
|
359
|
-
QB|
|
|
360
|
-
QB|### How It Works
|
|
361
|
-
QB|
|
|
362
|
-
QB|1. **Generate Context Modules**: `ai-first init` creates context modules in `ai/context/`
|
|
363
|
-
QB|2. **Create a CCP**: Define which modules to include for a specific task
|
|
364
|
-
QB|3. **Use in AI**: Reference the CCP when working with AI agents
|
|
365
|
-
QB|
|
|
366
|
-
QB|### CCP Commands
|
|
367
|
-
QB|
|
|
368
|
-
QB|```bash
|
|
369
|
-
QB|# Create a new CCP with specific context modules
|
|
370
|
-
QB|ai-first ccp create auth-task --include repo,auth,api --description "Authentication feature work"
|
|
371
|
-
QB|
|
|
372
|
-
QB|# List all available CCPs
|
|
373
|
-
QB|ai-first ccp list
|
|
374
|
-
QB|
|
|
375
|
-
QB|# Show CCP details
|
|
376
|
-
QB|ai-first ccp show auth-task
|
|
377
|
-
QB|```
|
|
378
|
-
QB|
|
|
379
|
-
QB|### CCP Structure
|
|
380
|
-
QB|
|
|
381
|
-
QB|```
|
|
382
|
-
QB|ai/
|
|
383
|
-
QB|├── context/ # Context modules (auto-generated)
|
|
384
|
-
QB|│ ├── repo.json # Base repository context
|
|
385
|
-
QB|│ ├── auth.json # Auth feature context
|
|
386
|
-
QB|│ └── <feature>.json
|
|
387
|
-
QB|│
|
|
388
|
-
QB|└── ccp/ # CCP definitions
|
|
389
|
-
QB| └── <name>/
|
|
390
|
-
QB| └── context.json
|
|
391
|
-
QB|```
|
|
392
|
-
QB|
|
|
393
|
-
QB|### Example CCP (context.json)
|
|
394
|
-
QB|
|
|
395
|
-
QB|```json
|
|
396
|
-
QB|{
|
|
397
|
-
QB| "task": "auth-feature",
|
|
398
|
-
QB| "description": "Work on authentication feature",
|
|
399
|
-
QB| "includes": [
|
|
400
|
-
QB| "../../context/repo.json",
|
|
401
|
-
QB| "../../context/auth.json",
|
|
402
|
-
QB| "../../context/api.json"
|
|
403
|
-
QB| ]
|
|
404
|
-
QB|}
|
|
405
|
-
QB|```
|
|
406
|
-
QB|
|
|
407
|
-
QB|Use case: Create task-specific contexts like `"fix-bug"`, `"add-feature"`, `"refactor"`, etc.
|
|
408
|
-
QB|
|
|
409
|
-
QB|---
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
## 📦 Context Control Packs (CCP)
|
|
410
358
|
QB|
|
|
411
359
|
---
|
|
412
360
|
|
|
@@ -419,7 +367,14 @@ For large repositories (>2000 files), semantic indexing is automatically enabled
|
|
|
419
367
|
ai-first index --semantic
|
|
420
368
|
```
|
|
421
369
|
|
|
422
|
-
|
|
370
|
+
For large repositories (>2000 files), semantic indexing is automatically enabled:
|
|
371
|
+
|
|
372
|
+
```bash
|
|
373
|
+
# Force semantic indexing
|
|
374
|
+
ai-first index --semantic
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
---
|
|
423
378
|
|
|
424
379
|
## 🎯 Semantic Contexts (Features & Flows)
|
|
425
380
|
|
|
@@ -435,7 +390,7 @@ Features represent real business modules detected from your project structure.
|
|
|
435
390
|
- Excluded: utils, helpers, types, interfaces, constants, config, models, dto, common
|
|
436
391
|
|
|
437
392
|
```json
|
|
438
|
-
// ai/context/features/<module>.json
|
|
393
|
+
// ai-context/context/features/<module>.json
|
|
439
394
|
{
|
|
440
395
|
"feature": "auth",
|
|
441
396
|
"files": ["src/auth/controller.js", "src/auth/service.js"],
|
|
@@ -453,7 +408,7 @@ Flows represent business execution chains starting from entrypoints.
|
|
|
453
408
|
- Must start from an entrypoint (Controller, Route, Command, Handler)
|
|
454
409
|
|
|
455
410
|
```json
|
|
456
|
-
// ai/context/flows/<name>.json
|
|
411
|
+
// ai-context/context/flows/<name>.json
|
|
457
412
|
{
|
|
458
413
|
"name": "login",
|
|
459
414
|
"entrypoint": "src/auth/controller.js",
|
|
@@ -471,43 +426,69 @@ Flows represent business execution chains starting from entrypoints.
|
|
|
471
426
|
|
|
472
427
|
---
|
|
473
428
|
|
|
474
|
-
## 🌍 Multi-Language Support
|
|
429
|
+
## 🌍 Multi-Language & Framework Support
|
|
430
|
+
|
|
431
|
+
### Languages
|
|
475
432
|
|
|
476
433
|
| Category | Languages |
|
|
477
434
|
|----------|-----------|
|
|
478
435
|
| **Web** | JavaScript, TypeScript, Python, Go, Rust |
|
|
479
436
|
| **Backend** | Java, C#, PHP, Ruby, Go, Rust, Kotlin |
|
|
480
|
-
|
|
437
|
+
| **Mobile** | Swift, Kotlin, Android |
|
|
481
438
|
| **Frontend** | Vue, Svelte, React, HTML, CSS, SCSS |
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
439
|
+
| **Testing** | Jest, Vitest, pytest, Mocha, RSpec |
|
|
440
|
+
|
|
441
|
+
### Frameworks (Tested)
|
|
442
|
+
|
|
443
|
+
| Framework | Language | Test Project |
|
|
444
|
+
|-----------|----------|-------------|
|
|
445
|
+
| **Django** | Python | `test-projects/django-app` |
|
|
446
|
+
| **FastAPI** | Python | `test-projects/fastapi-app` |
|
|
447
|
+
| **Flask** | Python | `test-projects/flask-app` |
|
|
448
|
+
| **Laravel** | PHP | `test-projects/laravel-app` |
|
|
449
|
+
| **Rails** | Ruby | `test-projects/rails-app` |
|
|
450
|
+
| **Spring Boot** | Java | `test-projects/spring-boot-app` |
|
|
451
|
+
| Express.js | JavaScript | `test-projects/express-api` |
|
|
452
|
+
| NestJS | TypeScript | `test-projects/nestjs-backend` |
|
|
453
|
+
| React | JavaScript | `test-projects/react-app` |
|
|
454
|
+
| Python CLI | Python | `test-projects/python-cli` |
|
|
455
|
+
| Salesforce DX | Apex | `test-projects/salesforce-cli` |
|
|
456
|
+
|
|
457
|
+
ai-first automatically detects and indexes Android/Kotlin projects:
|
|
458
|
+
|
|
459
|
+
- **Language Detection**: Kotlin (.kt files)
|
|
489
460
|
- **Framework Detection**: Android (via build.gradle, AndroidManifest.xml)
|
|
490
461
|
- **Dependency Parsing**: Gradle dependencies (implementation, api, compile)
|
|
491
462
|
- **Entry Points**: Activities, Services, BroadcastReceivers from AndroidManifest.xml
|
|
492
463
|
- **Resources**: Indexes res/layout, res/drawable, res/values
|
|
493
464
|
- **Multi-module**: Detects Gradle modules from settings.gradle
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
- `ai/dependencies.json` - Gradle dependencies with group:artifact:version
|
|
499
|
-
- `ai/entrypoints.md` - Android activities, services, permissions
|
|
500
|
-
- `ai/android-resources.json` - Layouts, drawables, values (if res/ exists)
|
|
501
|
-
- `ai/gradle-modules.json` - Multi-module structure (if settings.gradle exists)
|
|
502
|
-
HM|
|
|
503
|
-
NM|---
|
|
465
|
+
|
|
466
|
+
### Generated Files for Android Projects
|
|
467
|
+
|
|
468
|
+
- `ai-context/tech_stack.md` - Shows Android framework with SDK versions
|
|
469
|
+
- `ai-context/dependencies.json` - Gradle dependencies with group:artifact:version
|
|
470
|
+
- `ai-context/entrypoints.md` - Android activities, services, permissions
|
|
471
|
+
- `ai-context/android-resources.json` - Layouts, drawables, values (if res/ exists)
|
|
472
|
+
- `ai-context/gradle-modules.json` - Multi-module structure (if settings.gradle exists)
|
|
504
473
|
|
|
505
474
|
---
|
|
506
475
|
|
|
507
476
|
## 📋 Roadmap
|
|
508
477
|
|
|
478
|
+
### Phase 1 ✅ (Completed)
|
|
479
|
+
- Testing infrastructure with 11 test projects
|
|
480
|
+
|
|
481
|
+
### Phase 2 ✅ (Completed)
|
|
482
|
+
- Code quality fixes: symbol extraction, flow name sanitization
|
|
483
|
+
- PHP and Ruby parser support added
|
|
484
|
+
- All 11 adapters now working (100% coverage)
|
|
485
|
+
|
|
509
486
|
### Phase 3 (Planned)
|
|
510
|
-
- [ ]
|
|
487
|
+
- [ ] Enhanced semantic indexing
|
|
488
|
+
- [ ] Plugin system for custom analyzers
|
|
489
|
+
- [ ] PHP support (Laravel test project)
|
|
490
|
+
- [ ] Ruby support (Rails test project)
|
|
491
|
+
- [ ] Scala support
|
|
511
492
|
- [ ] Configuration file support (`ai-first.config.json`)
|
|
512
493
|
- [ ] Custom rules/plugins system
|
|
513
494
|
- [ ] CI/CD integration templates
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# 📊 ESTADO DE ADAPTADORES - Phase 2 Completado
|
|
2
|
+
|
|
3
|
+
## ✅ PROGRESO PHASE 2 - COMPLETADO ✅
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📋 Test Results - Symbol Extraction (11/11 PASS)
|
|
8
|
+
|
|
9
|
+
| # | Adapter | Extension | Test File | Symbols | Status |
|
|
10
|
+
|---|---------|-----------|-----------|---------|--------|
|
|
11
|
+
| 1 | Django | .py | blog/models.py | 10 | ✅ PASS |
|
|
12
|
+
| 2 | Laravel | .php | Controller.php | 1 | ✅ PASS |
|
|
13
|
+
| 3 | FastAPI | .py | app/main.py | 2 | ✅ PASS |
|
|
14
|
+
| 4 | Flask | .py | app/models.py | 17 | ✅ PASS |
|
|
15
|
+
| 5 | Rails | .rb | app/models/user.rb | 4 | ✅ PASS |
|
|
16
|
+
| 6 | Spring Boot | .java | DemoApplication.java | 2 | ✅ PASS |
|
|
17
|
+
| 7 | NestJS | .ts | src/main.ts | 2 | ✅ PASS |
|
|
18
|
+
| 8 | Express | .js | index.js | 7 | ✅ PASS |
|
|
19
|
+
| 9 | React | .tsx | src/App.tsx | 1 | ✅ PASS |
|
|
20
|
+
| 10 | Salesforce | .cls | AccountController.cls | 3 | ✅ PASS |
|
|
21
|
+
| 11 | Python CLI | .py | main.py | 1 | ✅ PASS |
|
|
22
|
+
|
|
23
|
+
**Total: 11/11 Adapters Passing (100%)** ✅
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 🐛 Bugs Fixed in Phase 2
|
|
28
|
+
|
|
29
|
+
### 1. PHP Parser - Laravel Adapter ✅
|
|
30
|
+
**Previously:** 0 symbols extracted
|
|
31
|
+
**Fixed:** Added `parsePHP()` function in `src/analyzers/symbols.ts`
|
|
32
|
+
**Test:** Controller.php now extracts 1 symbol (Controller class)
|
|
33
|
+
|
|
34
|
+
### 2. Ruby Parser - Rails Adapter ✅
|
|
35
|
+
**Previously:** 0 symbols extracted
|
|
36
|
+
**Fixed:** Added `parseRuby()` function in `src/analyzers/symbols.ts`
|
|
37
|
+
**Test:** user.rb now extracts 4 symbols (User, full_name, deactivate, activate)
|
|
38
|
+
|
|
39
|
+
### 3. Extension Format Bug ✅
|
|
40
|
+
**Previously:** Extension checks used `"js"` instead of `".js"`
|
|
41
|
+
**Fixed:** All extension checks now use format with dot
|
|
42
|
+
**Impact:** All JS/TS symbol extraction was broken
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 📊 Cobertura Total de Adapters: 11/16 (68.75%)
|
|
47
|
+
|
|
48
|
+
| Adapter | Test Project | Status | Notes |
|
|
49
|
+
|---------|--------------|--------|-------|
|
|
50
|
+
| JavaScript/TypeScript | express-api, react-app | ✅ | |
|
|
51
|
+
| NestJS | nestjs-backend | ✅ | |
|
|
52
|
+
| Python | python-cli, django-app, fastapi-app, flask-app | ✅ | |
|
|
53
|
+
| Django | django-app | ✅ | |
|
|
54
|
+
| FastAPI | fastapi-app | ✅ | |
|
|
55
|
+
| Flask | flask-app | ✅ | |
|
|
56
|
+
| Laravel | laravel-app | ✅ | Fixed PHP parser |
|
|
57
|
+
| Rails | rails-app | ✅ | Fixed Ruby parser |
|
|
58
|
+
| Spring Boot | spring-boot-app | ✅ | |
|
|
59
|
+
| Salesforce | salesforce-cli | ✅ | |
|
|
60
|
+
| PHP | laravel-app | ✅ | |
|
|
61
|
+
| Ruby | rails-app | ✅ | |
|
|
62
|
+
| Elixir Phoenix | - | ❌ | |
|
|
63
|
+
| .NET | - | ❌ | |
|
|
64
|
+
| ASP.NET Core | - | ❌ | |
|
|
65
|
+
| Blazor | - | ❌ | |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 🔧 Test Projects
|
|
70
|
+
|
|
71
|
+
| # | Framework | Path | AI Context Status |
|
|
72
|
+
|---|-----------|------|-------------------|
|
|
73
|
+
| 1 | Django | test-projects/django-app | ✅ |
|
|
74
|
+
| 2 | Laravel | test-projects/laravel-app | ✅ |
|
|
75
|
+
| 3 | FastAPI | test-projects/fastapi-app | ✅ |
|
|
76
|
+
| 4 | Flask | test-projects/flask-app | ✅ |
|
|
77
|
+
| 5 | Rails | test-projects/rails-app | ✅ |
|
|
78
|
+
| 6 | Spring Boot | test-projects/spring-boot-app | ✅ |
|
|
79
|
+
| 7 | NestJS | test-projects/nestjs-backend | ✅ |
|
|
80
|
+
| 8 | Express | test-projects/express-api | ✅ |
|
|
81
|
+
| 9 | React | test-projects/react-app | ✅ |
|
|
82
|
+
| 10 | Salesforce | test-projects/salesforce-cli | ✅ |
|
|
83
|
+
| 11 | Python CLI | test-projects/python-cli | ✅ |
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## 📁 Scripts de Prueba
|
|
88
|
+
|
|
89
|
+
### test_adapters.mjs
|
|
90
|
+
Ejecuta pruebas de extracción de símbolos para todos los adapters:
|
|
91
|
+
```bash
|
|
92
|
+
node test_adapters.mjs
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### tests/phase2-fixes.test.ts
|
|
96
|
+
Pruebas funcionales para los fixes de Phase 2:
|
|
97
|
+
- Symbol extraction con extensiones correctas
|
|
98
|
+
- Flow name sanitization
|
|
99
|
+
- repo_map.json consolidation
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## ✅ Criterios de Éxito - Phase 2
|
|
104
|
+
|
|
105
|
+
- [x] 11/11 adapters extraen símbolos correctamente
|
|
106
|
+
- [x] No hay archivos duplicados (repo-map vs repo_map)
|
|
107
|
+
- [x] Nombres de flows sanitizados (sin .. o _)
|
|
108
|
+
- [x] Tests funcionales pasando
|
|
109
|
+
- [x] Documentación actualizada
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 📝 Commits Realizados
|
|
114
|
+
|
|
115
|
+
- `b9d50bc` - fix: Add PHP and Ruby parsers for symbol extraction
|
|
116
|
+
- `9fb4196` - test: Add functional tests for Phase 2 fixes
|
|
117
|
+
- `c6a8a31` - chore: Regenerate main project AI context with sanitized flow names
|
|
118
|
+
- `a9bf9df` - chore: Regenerate test project AI contexts and clean up malformed files
|
|
119
|
+
- `2b4f1a2` - fix(Phase 2): Core code fixes for symbol extraction and flow names
|
|
120
|
+
- `0559783` - fix(Phase 2): Multiple code quality improvements
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
*Estado actualizado: 2026-03-18*
|
|
125
|
+
*Phase 2: ✅ COMPLETADO*
|
|
126
|
+
*Branch: feature/phase-2-code-quality*
|