ai-first-cli 1.1.3 → 1.1.6
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 +54 -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-first-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "CLI tool that prepares any repository to be used effectively by AI coding agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@vitejs/plugin-vue": "^6.0.4",
|
|
45
45
|
"typescript": "^5.0.0",
|
|
46
46
|
"vitepress": "^1.6.4",
|
|
47
|
-
"vitest": "^
|
|
47
|
+
"vitest": "^4.1.0",
|
|
48
48
|
"vue": "^3.5.30"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import path from "path";
|
|
1
2
|
import { FileInfo } from "../core/repoScanner.js";
|
|
2
3
|
import { readFile } from "../utils/fileUtils.js";
|
|
3
4
|
|
|
@@ -232,27 +233,16 @@ function parseJavaImports(content: string, sourceFile: string): Dependency[] {
|
|
|
232
233
|
* Normalize import path to relative file path
|
|
233
234
|
*/
|
|
234
235
|
function normalizeImportPath(importPath: string, sourceFile: string): string | null {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
// Scoped package - keep as is
|
|
238
|
-
return importPath;
|
|
236
|
+
if (!importPath.startsWith(".")) {
|
|
237
|
+
return null;
|
|
239
238
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
if (!target.endsWith(".js") && !target.endsWith(".ts")) {
|
|
248
|
-
target = target + "/index";
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
return target;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
// Internal non-relative import
|
|
255
|
-
return importPath;
|
|
239
|
+
|
|
240
|
+
const sourceDir = sourceFile.split("/").slice(0, -1).join("/");
|
|
241
|
+
let target = path.join(sourceDir, importPath);
|
|
242
|
+
target = path.normalize(target);
|
|
243
|
+
target = target.replace(/^\//, "");
|
|
244
|
+
|
|
245
|
+
return target;
|
|
256
246
|
}
|
|
257
247
|
|
|
258
248
|
/**
|
package/src/analyzers/symbols.ts
CHANGED
|
@@ -66,18 +66,24 @@ function parseFileForSymbols(file: FileInfo): Symbol[] {
|
|
|
66
66
|
const content = readFile(file.path);
|
|
67
67
|
const lines = content.split("\n");
|
|
68
68
|
|
|
69
|
-
if (file.extension === "ts" || file.extension === "tsx" || file.extension === "js" || file.extension === "jsx") {
|
|
69
|
+
if (file.extension === ".ts" || file.extension === ".tsx" || file.extension === ".js" || file.extension === ".jsx") {
|
|
70
70
|
parseJavaScriptTypeScript(file, content, lines, symbols);
|
|
71
|
-
} else if (file.extension === "py") {
|
|
71
|
+
} else if (file.extension === ".py") {
|
|
72
72
|
parsePython(file, content, lines, symbols);
|
|
73
|
-
} else if (file.extension === "go") {
|
|
73
|
+
} else if (file.extension === ".go") {
|
|
74
74
|
parseGo(file, content, lines, symbols);
|
|
75
|
-
} else if (file.extension === "rs") {
|
|
75
|
+
} else if (file.extension === ".rs") {
|
|
76
76
|
parseRust(file, content, lines, symbols);
|
|
77
|
-
} else if (file.extension === "java") {
|
|
77
|
+
} else if (file.extension === ".java") {
|
|
78
78
|
parseJava(file, content, lines, symbols);
|
|
79
|
-
} else if (file.extension === "cs") {
|
|
79
|
+
} else if (file.extension === ".cs") {
|
|
80
80
|
parseCSharp(file, content, lines, symbols);
|
|
81
|
+
} else if (file.extension === ".cls" || file.extension === ".trigger") {
|
|
82
|
+
parseApex(file, content, lines, symbols);
|
|
83
|
+
} else if (file.extension === ".php") {
|
|
84
|
+
parsePHP(file, content, lines, symbols);
|
|
85
|
+
} else if (file.extension === ".rb") {
|
|
86
|
+
parseRuby(file, content, lines, symbols);
|
|
81
87
|
}
|
|
82
88
|
} catch {}
|
|
83
89
|
|
|
@@ -309,6 +315,201 @@ function parseJava(file: FileInfo, content: string, lines: string[], symbols: Sy
|
|
|
309
315
|
}
|
|
310
316
|
}
|
|
311
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Parse PHP files
|
|
320
|
+
*/
|
|
321
|
+
function parsePHP(file: FileInfo, content: string, lines: string[], symbols: Symbol[]): void {
|
|
322
|
+
for (let i = 0; i < lines.length; i++) {
|
|
323
|
+
const line = lines[i].trim();
|
|
324
|
+
|
|
325
|
+
// Classes: class ClassName, public class ClassName
|
|
326
|
+
const classMatch = line.match(/^(?:public\s+|private\s+|protected\s+)?class\s+(\w+)/);
|
|
327
|
+
if (classMatch) {
|
|
328
|
+
symbols.push({
|
|
329
|
+
id: generateSymbolId(file.relativePath, classMatch[1]),
|
|
330
|
+
name: classMatch[1],
|
|
331
|
+
type: "class",
|
|
332
|
+
file: file.relativePath,
|
|
333
|
+
line: i + 1,
|
|
334
|
+
export: true,
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
// Interfaces: interface InterfaceName
|
|
339
|
+
const interfaceMatch = line.match(/^(?:public\s+)?interface\s+(\w+)/);
|
|
340
|
+
if (interfaceMatch) {
|
|
341
|
+
symbols.push({
|
|
342
|
+
id: generateSymbolId(file.relativePath, interfaceMatch[1]),
|
|
343
|
+
name: interfaceMatch[1],
|
|
344
|
+
type: "interface",
|
|
345
|
+
file: file.relativePath,
|
|
346
|
+
line: i + 1,
|
|
347
|
+
export: true,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// Functions: function functionName
|
|
352
|
+
const funcMatch = line.match(/^(?:public\s+|private\s+|protected\s+)?function\s+(\w+)/);
|
|
353
|
+
if (funcMatch) {
|
|
354
|
+
symbols.push({
|
|
355
|
+
id: generateSymbolId(file.relativePath, funcMatch[1]),
|
|
356
|
+
name: funcMatch[1],
|
|
357
|
+
type: "function",
|
|
358
|
+
file: file.relativePath,
|
|
359
|
+
line: i + 1,
|
|
360
|
+
export: true,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// Constants: const CONST_NAME
|
|
365
|
+
const constMatch = line.match(/^const\s+(\w+)/);
|
|
366
|
+
if (constMatch) {
|
|
367
|
+
symbols.push({
|
|
368
|
+
id: generateSymbolId(file.relativePath, constMatch[1]),
|
|
369
|
+
name: constMatch[1],
|
|
370
|
+
type: "const",
|
|
371
|
+
file: file.relativePath,
|
|
372
|
+
line: i + 1,
|
|
373
|
+
export: true,
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Parse Ruby files
|
|
381
|
+
*/
|
|
382
|
+
function parseRuby(file: FileInfo, content: string, lines: string[], symbols: Symbol[]): void {
|
|
383
|
+
for (let i = 0; i < lines.length; i++) {
|
|
384
|
+
const line = lines[i].trim();
|
|
385
|
+
|
|
386
|
+
// Classes: class ClassName
|
|
387
|
+
const classMatch = line.match(/^class\s+(\w+)/);
|
|
388
|
+
if (classMatch) {
|
|
389
|
+
symbols.push({
|
|
390
|
+
id: generateSymbolId(file.relativePath, classMatch[1]),
|
|
391
|
+
name: classMatch[1],
|
|
392
|
+
type: "class",
|
|
393
|
+
file: file.relativePath,
|
|
394
|
+
line: i + 1,
|
|
395
|
+
export: true,
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// Modules: module ModuleName
|
|
400
|
+
const moduleMatch = line.match(/^module\s+(\w+)/);
|
|
401
|
+
if (moduleMatch) {
|
|
402
|
+
symbols.push({
|
|
403
|
+
id: generateSymbolId(file.relativePath, moduleMatch[1]),
|
|
404
|
+
name: moduleMatch[1],
|
|
405
|
+
type: "module",
|
|
406
|
+
file: file.relativePath,
|
|
407
|
+
line: i + 1,
|
|
408
|
+
export: true,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
const methodMatch = line.match(/^def\s+(\w+)/);
|
|
413
|
+
if (methodMatch) {
|
|
414
|
+
symbols.push({
|
|
415
|
+
id: generateSymbolId(file.relativePath, methodMatch[1]),
|
|
416
|
+
name: methodMatch[1],
|
|
417
|
+
type: "function",
|
|
418
|
+
file: file.relativePath,
|
|
419
|
+
line: i + 1,
|
|
420
|
+
export: true,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const classMethodMatch = line.match(/^def\s+self\.(\w+)/);
|
|
425
|
+
if (classMethodMatch) {
|
|
426
|
+
symbols.push({
|
|
427
|
+
id: generateSymbolId(file.relativePath, classMethodMatch[1]),
|
|
428
|
+
name: classMethodMatch[1],
|
|
429
|
+
type: "function",
|
|
430
|
+
file: file.relativePath,
|
|
431
|
+
line: i + 1,
|
|
432
|
+
export: true,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// Constants: CONST_NAME =
|
|
437
|
+
const constMatch = line.match(/^([A-Z][A-Z0-9_]*)\s*=/);
|
|
438
|
+
if (constMatch) {
|
|
439
|
+
symbols.push({
|
|
440
|
+
id: generateSymbolId(file.relativePath, constMatch[1]),
|
|
441
|
+
name: constMatch[1],
|
|
442
|
+
type: "const",
|
|
443
|
+
file: file.relativePath,
|
|
444
|
+
line: i + 1,
|
|
445
|
+
export: true,
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Parse Apex (Salesforce) files
|
|
453
|
+
*/
|
|
454
|
+
function parseApex(file: FileInfo, content: string, lines: string[], symbols: Symbol[]): void {
|
|
455
|
+
for (let i = 0; i < lines.length; i++) {
|
|
456
|
+
const line = lines[i].trim();
|
|
457
|
+
|
|
458
|
+
// Classes: public with sharing class ClassName, public class ClassName, etc.
|
|
459
|
+
const classMatch = line.match(/^(?:public\s+(?:with\s+sharing|without\s+sharing|inherited\s+sharing)\s+)?class\s+(\w+)/);
|
|
460
|
+
if (classMatch) {
|
|
461
|
+
symbols.push({
|
|
462
|
+
id: generateSymbolId(file.relativePath, classMatch[1]),
|
|
463
|
+
name: classMatch[1],
|
|
464
|
+
type: "class",
|
|
465
|
+
file: file.relativePath,
|
|
466
|
+
line: i + 1,
|
|
467
|
+
export: true,
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// Interfaces
|
|
472
|
+
const interfaceMatch = line.match(/^(?:public\s+)?interface\s+(\w+)/);
|
|
473
|
+
if (interfaceMatch) {
|
|
474
|
+
symbols.push({
|
|
475
|
+
id: generateSymbolId(file.relativePath, interfaceMatch[1]),
|
|
476
|
+
name: interfaceMatch[1],
|
|
477
|
+
type: "interface",
|
|
478
|
+
file: file.relativePath,
|
|
479
|
+
line: i + 1,
|
|
480
|
+
export: true,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// Methods: public static ReturnType methodName(
|
|
485
|
+
// Also handles @AuraEnabled public static ReturnType methodName(
|
|
486
|
+
const methodMatch = line.match(/^(?:@\w+\s+)?(?:public|private|protected|global)\s+(?:static\s+)?(?:\w+)\s+(\w+)\s*\(/);
|
|
487
|
+
if (methodMatch && !["if", "for", "while", "switch"].includes(methodMatch[1])) {
|
|
488
|
+
symbols.push({
|
|
489
|
+
id: generateSymbolId(file.relativePath, methodMatch[1]),
|
|
490
|
+
name: methodMatch[1],
|
|
491
|
+
type: "function",
|
|
492
|
+
file: file.relativePath,
|
|
493
|
+
line: i + 1,
|
|
494
|
+
export: line.includes("public") || line.includes("global"),
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// Triggers: trigger TriggerName on ObjectName
|
|
499
|
+
const triggerMatch = line.match(/^trigger\s+(\w+)\s+on\s+(\w+)/);
|
|
500
|
+
if (triggerMatch) {
|
|
501
|
+
symbols.push({
|
|
502
|
+
id: generateSymbolId(file.relativePath, triggerMatch[1]),
|
|
503
|
+
name: triggerMatch[1],
|
|
504
|
+
type: "function",
|
|
505
|
+
file: file.relativePath,
|
|
506
|
+
line: i + 1,
|
|
507
|
+
export: true,
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
|
|
312
513
|
/**
|
|
313
514
|
* Parse C# files
|
|
314
515
|
*/
|
package/src/commands/ai-first.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { generateAIRules, generateAIRulesFile } from "../analyzers/aiRules.js";
|
|
|
18
18
|
import { generateModuleGraph } from "../core/moduleGraph.js";
|
|
19
19
|
import { loadIndexState, computeFileHash, getFilesToIndex, getChangedFilesGit } from "../core/indexState.js";
|
|
20
20
|
import { chunkFiles } from "../core/chunker.js";
|
|
21
|
-
import { generateEmbeddings, saveEmbeddings } from "../core/embeddings.js";
|
|
21
|
+
import { generateEmbeddings, saveEmbeddings, createEmbeddingsTable } from "../core/embeddings.js";
|
|
22
22
|
import { generateContextModules, createCCP, listCCPs, getCCP } from "../core/ccp.js";
|
|
23
23
|
import { generateSemanticContexts } from "../core/semanticContexts.js";
|
|
24
24
|
import { doctorMain } from "./doctor.js";
|
|
@@ -28,6 +28,7 @@ import { detectGitRepository, generateGitContext, analyzeGitActivity, getRecentF
|
|
|
28
28
|
import { buildKnowledgeGraph, loadKnowledgeGraph } from "../core/knowledgeGraphBuilder.js";
|
|
29
29
|
import { runIncrementalUpdate, detectChangedFiles } from "../core/incrementalAnalyzer.js";
|
|
30
30
|
import { generateAllSchema } from "../core/schema.js";
|
|
31
|
+
import { Database } from "sql.js";
|
|
31
32
|
import ora from "ora";
|
|
32
33
|
import process from "process";
|
|
33
34
|
|
|
@@ -53,7 +54,7 @@ export interface AIFirstResult {
|
|
|
53
54
|
export async function runAIFirst(options: AIFirstOptions = {}): Promise<AIFirstResult> {
|
|
54
55
|
const {
|
|
55
56
|
rootDir = process.cwd(),
|
|
56
|
-
outputDir = path.join(rootDir, "ai"),
|
|
57
|
+
outputDir = path.join(rootDir, "ai-context"),
|
|
57
58
|
} = options;
|
|
58
59
|
|
|
59
60
|
const filesCreated: string[] = [];
|
|
@@ -158,6 +159,20 @@ export async function runAIFirst(options: AIFirstOptions = {}): Promise<AIFirstR
|
|
|
158
159
|
console.log(" ✅ Created ai_context.md");
|
|
159
160
|
|
|
160
161
|
// Generate semantic contexts (features and flows)
|
|
162
|
+
// First generate modules.json which is required for feature/flow detection
|
|
163
|
+
console.log("📦 Generating modules...");
|
|
164
|
+
const modules: Record<string, { path: string; files: string[] }> = {};
|
|
165
|
+
for (const file of scanResult.files) {
|
|
166
|
+
const parts = file.relativePath.split('/');
|
|
167
|
+
if (parts.length > 1 && parts[0] !== 'ai') {
|
|
168
|
+
if (!modules[parts[0]]) modules[parts[0]] = { path: parts[0], files: [] };
|
|
169
|
+
modules[parts[0]].files.push(file.relativePath);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
const modulesPath = path.join(outputDir, "modules.json");
|
|
173
|
+
fs.writeFileSync(modulesPath, JSON.stringify({ modules }, null, 2));
|
|
174
|
+
console.log(" ✅ modules.json");
|
|
175
|
+
|
|
161
176
|
try {
|
|
162
177
|
const { features, flows } = generateSemanticContexts(outputDir);
|
|
163
178
|
console.log(` ✅ Created ${features.length} features, ${flows.length} flows`);
|
|
@@ -356,7 +371,7 @@ if (isMain) {
|
|
|
356
371
|
// Index command - generate SQLite database
|
|
357
372
|
args.shift();
|
|
358
373
|
let rootDir = process.cwd();
|
|
359
|
-
let outputPath
|
|
374
|
+
let outputPath: string | null = null;
|
|
360
375
|
let semanticMode = false;
|
|
361
376
|
|
|
362
377
|
for (let i = 0; i < args.length; i++) {
|
|
@@ -401,8 +416,17 @@ Example queries (for AI agents):
|
|
|
401
416
|
}
|
|
402
417
|
}
|
|
403
418
|
|
|
404
|
-
|
|
419
|
+
if (!outputPath) {
|
|
420
|
+
outputPath = path.join(rootDir, "ai", "index.db");
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const aiDir = path.join(rootDir, "ai-context");
|
|
405
424
|
|
|
425
|
+
// Create output directory if it doesn't exist
|
|
426
|
+
if (!fs.existsSync(aiDir)) {
|
|
427
|
+
fs.mkdirSync(aiDir, { recursive: true });
|
|
428
|
+
}
|
|
429
|
+
|
|
406
430
|
// Load existing index state for incremental indexing
|
|
407
431
|
const existingState = loadIndexState(aiDir);
|
|
408
432
|
|
|
@@ -498,7 +522,23 @@ Example queries (for AI agents):
|
|
|
498
522
|
console.log(` Created ${chunks.length} chunks`);
|
|
499
523
|
|
|
500
524
|
const { embeddings, model } = await generateEmbeddings(chunks);
|
|
501
|
-
|
|
525
|
+
|
|
526
|
+
const initSqlJs = (await import("sql.js")).default;
|
|
527
|
+
const SQL = await initSqlJs();
|
|
528
|
+
const dbPath = outputPath || path.join(rootDir, "ai", "index.db");
|
|
529
|
+
let db: Database;
|
|
530
|
+
if (fs.existsSync(dbPath)) {
|
|
531
|
+
const fileBuffer = fs.readFileSync(dbPath);
|
|
532
|
+
db = new SQL.Database(fileBuffer);
|
|
533
|
+
} else {
|
|
534
|
+
db = new SQL.Database();
|
|
535
|
+
}
|
|
536
|
+
createEmbeddingsTable(db);
|
|
537
|
+
saveEmbeddings(db, embeddings, model, 384);
|
|
538
|
+
const data = db.export();
|
|
539
|
+
const buffer = Buffer.from(data);
|
|
540
|
+
fs.writeFileSync(dbPath, buffer);
|
|
541
|
+
db.close();
|
|
502
542
|
console.log(" ✅ Semantic indexing complete");
|
|
503
543
|
} catch (error) {
|
|
504
544
|
console.log(" ⚠️ Semantic indexing failed:", error);
|
|
@@ -596,7 +636,7 @@ Features:
|
|
|
596
636
|
// Context command - generate AI context files OR symbol-specific context packet
|
|
597
637
|
args.shift();
|
|
598
638
|
let rootDir = process.cwd();
|
|
599
|
-
let outputDir = path.join(rootDir, "ai");
|
|
639
|
+
let outputDir = path.join(rootDir, "ai-context");
|
|
600
640
|
let symbolArg: string | undefined;
|
|
601
641
|
let depth = 1;
|
|
602
642
|
let maxSymbols = 50;
|
|
@@ -610,7 +650,7 @@ Features:
|
|
|
610
650
|
case "--root":
|
|
611
651
|
case "-r":
|
|
612
652
|
rootDir = args[++i];
|
|
613
|
-
outputDir = path.join(rootDir, "ai");
|
|
653
|
+
outputDir = path.join(rootDir, "ai-context");
|
|
614
654
|
break;
|
|
615
655
|
case "--output":
|
|
616
656
|
case "-o":
|
|
@@ -688,7 +728,8 @@ Examples:
|
|
|
688
728
|
console.log(` Calls: ${packet.relationships.calls.length}`);
|
|
689
729
|
console.log(` Called by: ${packet.callers.length}`);
|
|
690
730
|
console.log(` Imports: ${packet.relationships.imports.length}`);
|
|
691
|
-
console.log(`
|
|
731
|
+
console.log(` Exports: ${packet.relationships.exports?.length || 0}`);
|
|
732
|
+
console.log(` References: ${packet.relationships.references?.length || 0}`);
|
|
692
733
|
console.log(` Related symbols: ${packet.relatedSymbols.length}`);
|
|
693
734
|
console.log(`\n📝 Summary: ${packet.summary}`);
|
|
694
735
|
}
|
|
@@ -1079,7 +1120,7 @@ Options:
|
|
|
1079
1120
|
|
|
1080
1121
|
console.log("\n🗺️ Generating repository map...\n");
|
|
1081
1122
|
const scan = scanRepo(rootDir);
|
|
1082
|
-
const aiDir = path.join(rootDir, "ai");
|
|
1123
|
+
const aiDir = path.join(rootDir, "ai-context");
|
|
1083
1124
|
|
|
1084
1125
|
// files.json
|
|
1085
1126
|
const filesJson = { files: scan.files.map(f => ({ path: f.relativePath, name: f.name, ext: f.extension })) };
|
|
@@ -1100,8 +1141,8 @@ Options:
|
|
|
1100
1141
|
|
|
1101
1142
|
// repo-map.json (use local generateRepoMapJson function)
|
|
1102
1143
|
const repoMapData = JSON.parse(generateRepoMapJson(scan.files.map(f => ({ relativePath: f.relativePath, name: f.name, extension: f.extension }))));
|
|
1103
|
-
fs.writeFileSync(path.join(aiDir, "
|
|
1104
|
-
console.log(" ✅
|
|
1144
|
+
fs.writeFileSync(path.join(aiDir, "repo_map.json"), JSON.stringify(repoMapData, null, 2));
|
|
1145
|
+
console.log(" ✅ repo_map.json");
|
|
1105
1146
|
|
|
1106
1147
|
// module-graph.json
|
|
1107
1148
|
const { generateModuleGraph } = await import("../core/moduleGraph.js");
|
|
@@ -1164,7 +1205,7 @@ Examples:
|
|
|
1164
1205
|
args.shift();
|
|
1165
1206
|
|
|
1166
1207
|
let rootDir = process.cwd();
|
|
1167
|
-
let aiDir = path.join(rootDir, "ai");
|
|
1208
|
+
let aiDir = path.join(rootDir, "ai-context");
|
|
1168
1209
|
let limit = 50;
|
|
1169
1210
|
let showActivity = false;
|
|
1170
1211
|
let showJson = false;
|
|
@@ -1175,7 +1216,7 @@ Examples:
|
|
|
1175
1216
|
case "--root":
|
|
1176
1217
|
case "-r":
|
|
1177
1218
|
rootDir = args[++i];
|
|
1178
|
-
aiDir = path.join(rootDir, "ai");
|
|
1219
|
+
aiDir = path.join(rootDir, "ai-context");
|
|
1179
1220
|
break;
|
|
1180
1221
|
case "--limit":
|
|
1181
1222
|
case "-n":
|
|
@@ -1271,7 +1312,7 @@ Examples:
|
|
|
1271
1312
|
args.shift();
|
|
1272
1313
|
|
|
1273
1314
|
let rootDir = process.cwd();
|
|
1274
|
-
let aiDir = path.join(rootDir, "ai");
|
|
1315
|
+
let aiDir = path.join(rootDir, "ai-context");
|
|
1275
1316
|
let showJson = false;
|
|
1276
1317
|
let showStats = false;
|
|
1277
1318
|
|
|
@@ -1281,7 +1322,7 @@ Examples:
|
|
|
1281
1322
|
case "--root":
|
|
1282
1323
|
case "-r":
|
|
1283
1324
|
rootDir = args[++i];
|
|
1284
|
-
aiDir = path.join(rootDir, "ai");
|
|
1325
|
+
aiDir = path.join(rootDir, "ai-context");
|
|
1285
1326
|
break;
|
|
1286
1327
|
case "--json":
|
|
1287
1328
|
showJson = true;
|
|
@@ -1290,6 +1331,8 @@ Examples:
|
|
|
1290
1331
|
case "-s":
|
|
1291
1332
|
showStats = true;
|
|
1292
1333
|
break;
|
|
1334
|
+
case "--no-git":
|
|
1335
|
+
break;
|
|
1293
1336
|
case "--help":
|
|
1294
1337
|
case "-h":
|
|
1295
1338
|
console.log(`
|
|
@@ -1300,20 +1343,22 @@ Usage: ai-first graph [options]
|
|
|
1300
1343
|
Options:
|
|
1301
1344
|
-r, --root <dir> Root directory (default: current directory)
|
|
1302
1345
|
-s, --stats Show graph statistics
|
|
1303
|
-
--
|
|
1346
|
+
--no-git Skip git history analysis
|
|
1347
|
+
--json Output as JSON
|
|
1304
1348
|
-h, --help Show help message
|
|
1305
1349
|
|
|
1306
1350
|
Examples:
|
|
1307
1351
|
ai-first graph
|
|
1308
1352
|
ai-first graph --stats
|
|
1353
|
+
ai-first graph --no-git
|
|
1309
1354
|
`);
|
|
1310
1355
|
process.exit(0);
|
|
1311
1356
|
}
|
|
1312
1357
|
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1358
|
+
|
|
1359
|
+
const hasGit = detectGitRepository(rootDir);
|
|
1360
|
+
if (!hasGit) {
|
|
1361
|
+
console.log("⚠️ Not a git repository - generating graph from static analysis only");
|
|
1317
1362
|
}
|
|
1318
1363
|
|
|
1319
1364
|
console.log(`\n🕸️ Building knowledge graph in: ${rootDir}\n`);
|
|
@@ -1350,7 +1395,7 @@ Examples:
|
|
|
1350
1395
|
args.shift();
|
|
1351
1396
|
|
|
1352
1397
|
let rootDir = process.cwd();
|
|
1353
|
-
let aiDir = path.join(rootDir, "ai");
|
|
1398
|
+
let aiDir = path.join(rootDir, "ai-context");
|
|
1354
1399
|
let useGit = true;
|
|
1355
1400
|
let showJson = false;
|
|
1356
1401
|
|
|
@@ -1360,7 +1405,7 @@ Examples:
|
|
|
1360
1405
|
case "--root":
|
|
1361
1406
|
case "-r":
|
|
1362
1407
|
rootDir = args[++i];
|
|
1363
|
-
aiDir = path.join(rootDir, "ai");
|
|
1408
|
+
aiDir = path.join(rootDir, "ai-context");
|
|
1364
1409
|
break;
|
|
1365
1410
|
case "--no-git":
|
|
1366
1411
|
useGit = false;
|
package/src/commands/doctor.ts
CHANGED
|
@@ -30,7 +30,7 @@ export async function runDoctor(rootDir: string, fixMode: boolean): Promise<Doct
|
|
|
30
30
|
const largeFiles = scanResult.files.filter(f => { try { return fs.statSync(f.path).size > 1024 * 1024; } catch { return false; } });
|
|
31
31
|
checks.push({ name: 'Large files', status: largeFiles.length === 0 ? 'pass' : 'warn', message: largeFiles.length === 0 ? 'No large files' : `${largeFiles.length} large files` });
|
|
32
32
|
|
|
33
|
-
const aiDir = path.join(rootDir, "ai");
|
|
33
|
+
const aiDir = path.join(rootDir, "ai-context");
|
|
34
34
|
checks.push({ name: 'AI directory', status: fs.existsSync(aiDir) ? 'pass' : 'warn', message: fs.existsSync(aiDir) ? 'Found' : 'Not found' });
|
|
35
35
|
checks.push({ name: 'Semantic index', status: fs.existsSync(path.join(aiDir, "index")) ? 'pass' : 'warn', message: fs.existsSync(path.join(aiDir, "index")) ? 'Found' : 'Not found' });
|
|
36
36
|
checks.push({ name: 'Module graph', status: fs.existsSync(path.join(aiDir, "graph", "module-graph.json")) ? 'pass' : 'warn', message: 'Run ai-first explore all' });
|
package/src/commands/explore.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { generateModuleGraph } from "../core/moduleGraph.js";
|
|
|
6
6
|
export interface ExploreResult { success: boolean; modules?: string[]; dependencies?: string[]; error?: string; }
|
|
7
7
|
|
|
8
8
|
export async function runExplore(rootDir: string, moduleName: string | undefined): Promise<ExploreResult> {
|
|
9
|
-
const aiDir = path.join(rootDir, "ai");
|
|
9
|
+
const aiDir = path.join(rootDir, "ai-context");
|
|
10
10
|
const graphFile = path.join(aiDir, "graph", "module-graph.json");
|
|
11
11
|
|
|
12
12
|
if (!moduleName || moduleName === 'all') {
|
package/src/core/ccp.ts
CHANGED
|
@@ -147,7 +147,7 @@ export function createCCP(
|
|
|
147
147
|
include?: string[];
|
|
148
148
|
} = {}
|
|
149
149
|
): { success: boolean; path: string; error?: string } {
|
|
150
|
-
const aiDir = path.join(rootDir, "ai");
|
|
150
|
+
const aiDir = path.join(rootDir, "ai-context");
|
|
151
151
|
const ccpDir = path.join(aiDir, "ccp", name);
|
|
152
152
|
|
|
153
153
|
try {
|