codeseeker 1.4.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/LICENSE +21 -0
- package/README.md +388 -0
- package/bin/codeseeker.js +171 -0
- package/dist/cli/analyzers/change-analyzer.d.ts +7 -0
- package/dist/cli/analyzers/change-analyzer.d.ts.map +1 -0
- package/dist/cli/analyzers/change-analyzer.js +22 -0
- package/dist/cli/analyzers/change-analyzer.js.map +1 -0
- package/dist/cli/analyzers/configuration-analyzer.d.ts +7 -0
- package/dist/cli/analyzers/configuration-analyzer.d.ts.map +1 -0
- package/dist/cli/analyzers/configuration-analyzer.js +67 -0
- package/dist/cli/analyzers/configuration-analyzer.js.map +1 -0
- package/dist/cli/analyzers/documentation-analyzer.d.ts +7 -0
- package/dist/cli/analyzers/documentation-analyzer.d.ts.map +1 -0
- package/dist/cli/analyzers/documentation-analyzer.js +59 -0
- package/dist/cli/analyzers/documentation-analyzer.js.map +1 -0
- package/dist/cli/analyzers/project-structure-analyzer.d.ts +7 -0
- package/dist/cli/analyzers/project-structure-analyzer.d.ts.map +1 -0
- package/dist/cli/analyzers/project-structure-analyzer.js +68 -0
- package/dist/cli/analyzers/project-structure-analyzer.js.map +1 -0
- package/dist/cli/codemind-workflow-orchestrator.d.ts +19 -0
- package/dist/cli/codemind-workflow-orchestrator.d.ts.map +1 -0
- package/dist/cli/codemind-workflow-orchestrator.js +26 -0
- package/dist/cli/codemind-workflow-orchestrator.js.map +1 -0
- package/dist/cli/codeseeker-cli.d.ts +156 -0
- package/dist/cli/codeseeker-cli.d.ts.map +1 -0
- package/dist/cli/codeseeker-cli.js +937 -0
- package/dist/cli/codeseeker-cli.js.map +1 -0
- package/dist/cli/codeseeker-workflow-orchestrator.d.ts +19 -0
- package/dist/cli/codeseeker-workflow-orchestrator.d.ts.map +1 -0
- package/dist/cli/codeseeker-workflow-orchestrator.js +26 -0
- package/dist/cli/codeseeker-workflow-orchestrator.js.map +1 -0
- package/dist/cli/commands/base-command-handler.d.ts +31 -0
- package/dist/cli/commands/base-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/base-command-handler.js +110 -0
- package/dist/cli/commands/base-command-handler.js.map +1 -0
- package/dist/cli/commands/command-context.d.ts +27 -0
- package/dist/cli/commands/command-context.d.ts.map +1 -0
- package/dist/cli/commands/command-context.js +8 -0
- package/dist/cli/commands/command-context.js.map +1 -0
- package/dist/cli/commands/command-router.d.ts +135 -0
- package/dist/cli/commands/command-router.d.ts.map +1 -0
- package/dist/cli/commands/command-router.js +497 -0
- package/dist/cli/commands/command-router.js.map +1 -0
- package/dist/cli/commands/handlers/analyze-command-handler.d.ts +99 -0
- package/dist/cli/commands/handlers/analyze-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/analyze-command-handler.js +704 -0
- package/dist/cli/commands/handlers/analyze-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/dedup-command-handler.d.ts +10 -0
- package/dist/cli/commands/handlers/dedup-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/dedup-command-handler.js +19 -0
- package/dist/cli/commands/handlers/dedup-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/docs-command-handler.d.ts +10 -0
- package/dist/cli/commands/handlers/docs-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/docs-command-handler.js +19 -0
- package/dist/cli/commands/handlers/docs-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/infrastructure-setup-handler.d.ts +21 -0
- package/dist/cli/commands/handlers/infrastructure-setup-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/infrastructure-setup-handler.js +71 -0
- package/dist/cli/commands/handlers/infrastructure-setup-handler.js.map +1 -0
- package/dist/cli/commands/handlers/install-command-handler.d.ts +80 -0
- package/dist/cli/commands/handlers/install-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/install-command-handler.js +466 -0
- package/dist/cli/commands/handlers/install-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/instructions-command-handler.d.ts +10 -0
- package/dist/cli/commands/handlers/instructions-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/instructions-command-handler.js +19 -0
- package/dist/cli/commands/handlers/instructions-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/project-command-handler.d.ts +42 -0
- package/dist/cli/commands/handlers/project-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/project-command-handler.js +257 -0
- package/dist/cli/commands/handlers/project-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/search-command-handler.d.ts +50 -0
- package/dist/cli/commands/handlers/search-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/search-command-handler.js +500 -0
- package/dist/cli/commands/handlers/search-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/setup-command-handler.d.ts +103 -0
- package/dist/cli/commands/handlers/setup-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/setup-command-handler.js +1135 -0
- package/dist/cli/commands/handlers/setup-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/solid-command-handler.d.ts +10 -0
- package/dist/cli/commands/handlers/solid-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/solid-command-handler.js +19 -0
- package/dist/cli/commands/handlers/solid-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/sync-command-handler.d.ts +10 -0
- package/dist/cli/commands/handlers/sync-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/sync-command-handler.js +19 -0
- package/dist/cli/commands/handlers/sync-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/synonyms-command-handler.d.ts +23 -0
- package/dist/cli/commands/handlers/synonyms-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/synonyms-command-handler.js +201 -0
- package/dist/cli/commands/handlers/synonyms-command-handler.js.map +1 -0
- package/dist/cli/commands/handlers/watcher-command-handler.d.ts +10 -0
- package/dist/cli/commands/handlers/watcher-command-handler.d.ts.map +1 -0
- package/dist/cli/commands/handlers/watcher-command-handler.js +19 -0
- package/dist/cli/commands/handlers/watcher-command-handler.js.map +1 -0
- package/dist/cli/commands/reconcile.d.ts +8 -0
- package/dist/cli/commands/reconcile.d.ts.map +1 -0
- package/dist/cli/commands/reconcile.js +220 -0
- package/dist/cli/commands/reconcile.js.map +1 -0
- package/dist/cli/commands/semantic-search.d.ts +8 -0
- package/dist/cli/commands/semantic-search.d.ts.map +1 -0
- package/dist/cli/commands/semantic-search.js +219 -0
- package/dist/cli/commands/semantic-search.js.map +1 -0
- package/dist/cli/commands/services/claude-intent-analyzer.d.ts +109 -0
- package/dist/cli/commands/services/claude-intent-analyzer.d.ts.map +1 -0
- package/dist/cli/commands/services/claude-intent-analyzer.js +405 -0
- package/dist/cli/commands/services/claude-intent-analyzer.js.map +1 -0
- package/dist/cli/commands/services/context-aware-clarification-service.d.ts +99 -0
- package/dist/cli/commands/services/context-aware-clarification-service.d.ts.map +1 -0
- package/dist/cli/commands/services/context-aware-clarification-service.js +414 -0
- package/dist/cli/commands/services/context-aware-clarification-service.js.map +1 -0
- package/dist/cli/commands/services/context-builder.d.ts +90 -0
- package/dist/cli/commands/services/context-builder.d.ts.map +1 -0
- package/dist/cli/commands/services/context-builder.js +330 -0
- package/dist/cli/commands/services/context-builder.js.map +1 -0
- package/dist/cli/commands/services/graph-analysis-service.d.ts +157 -0
- package/dist/cli/commands/services/graph-analysis-service.d.ts.map +1 -0
- package/dist/cli/commands/services/graph-analysis-service.js +722 -0
- package/dist/cli/commands/services/graph-analysis-service.js.map +1 -0
- package/dist/cli/commands/services/natural-language-processor.d.ts +41 -0
- package/dist/cli/commands/services/natural-language-processor.d.ts.map +1 -0
- package/dist/cli/commands/services/natural-language-processor.js +77 -0
- package/dist/cli/commands/services/natural-language-processor.js.map +1 -0
- package/dist/cli/commands/services/search-quality-metrics.d.ts +85 -0
- package/dist/cli/commands/services/search-quality-metrics.d.ts.map +1 -0
- package/dist/cli/commands/services/search-quality-metrics.js +214 -0
- package/dist/cli/commands/services/search-quality-metrics.js.map +1 -0
- package/dist/cli/commands/services/semantic-search-orchestrator.d.ts +85 -0
- package/dist/cli/commands/services/semantic-search-orchestrator.d.ts.map +1 -0
- package/dist/cli/commands/services/semantic-search-orchestrator.js +331 -0
- package/dist/cli/commands/services/semantic-search-orchestrator.js.map +1 -0
- package/dist/cli/commands/services/task-decomposition-service.d.ts +114 -0
- package/dist/cli/commands/services/task-decomposition-service.d.ts.map +1 -0
- package/dist/cli/commands/services/task-decomposition-service.js +364 -0
- package/dist/cli/commands/services/task-decomposition-service.js.map +1 -0
- package/dist/cli/commands/services/unified-query-analyzer.d.ts +75 -0
- package/dist/cli/commands/services/unified-query-analyzer.d.ts.map +1 -0
- package/dist/cli/commands/services/unified-query-analyzer.js +282 -0
- package/dist/cli/commands/services/unified-query-analyzer.js.map +1 -0
- package/dist/cli/commands/services/user-interaction-service.d.ts +326 -0
- package/dist/cli/commands/services/user-interaction-service.d.ts.map +1 -0
- package/dist/cli/commands/services/user-interaction-service.js +1987 -0
- package/dist/cli/commands/services/user-interaction-service.js.map +1 -0
- package/dist/cli/commands/services/workflow-orchestrator.d.ts +171 -0
- package/dist/cli/commands/services/workflow-orchestrator.d.ts.map +1 -0
- package/dist/cli/commands/services/workflow-orchestrator.js +660 -0
- package/dist/cli/commands/services/workflow-orchestrator.js.map +1 -0
- package/dist/cli/context-optimizer.d.ts +96 -0
- package/dist/cli/context-optimizer.d.ts.map +1 -0
- package/dist/cli/context-optimizer.js +582 -0
- package/dist/cli/context-optimizer.js.map +1 -0
- package/dist/cli/features/code-graph/graph-builder.d.ts +119 -0
- package/dist/cli/features/code-graph/graph-builder.d.ts.map +1 -0
- package/dist/cli/features/code-graph/graph-builder.js +532 -0
- package/dist/cli/features/code-graph/graph-builder.js.map +1 -0
- package/dist/cli/features/compilation/verifier.d.ts +69 -0
- package/dist/cli/features/compilation/verifier.d.ts.map +1 -0
- package/dist/cli/features/compilation/verifier.js +431 -0
- package/dist/cli/features/compilation/verifier.js.map +1 -0
- package/dist/cli/features/database/database-documentation-generator.d.ts +103 -0
- package/dist/cli/features/database/database-documentation-generator.d.ts.map +1 -0
- package/dist/cli/features/database/database-documentation-generator.js +386 -0
- package/dist/cli/features/database/database-documentation-generator.js.map +1 -0
- package/dist/cli/features/database/database-schema-tool.d.ts +160 -0
- package/dist/cli/features/database/database-schema-tool.d.ts.map +1 -0
- package/dist/cli/features/database/database-schema-tool.js +437 -0
- package/dist/cli/features/database/database-schema-tool.js.map +1 -0
- package/dist/cli/features/documentation/map-analyzer.d.ts +95 -0
- package/dist/cli/features/documentation/map-analyzer.d.ts.map +1 -0
- package/dist/cli/features/documentation/map-analyzer.js +320 -0
- package/dist/cli/features/documentation/map-analyzer.js.map +1 -0
- package/dist/cli/features/duplication/detector.d.ts +28 -0
- package/dist/cli/features/duplication/detector.d.ts.map +1 -0
- package/dist/cli/features/duplication/detector.js +228 -0
- package/dist/cli/features/duplication/detector.js.map +1 -0
- package/dist/cli/features/duplication/interfaces/index.d.ts +134 -0
- package/dist/cli/features/duplication/interfaces/index.d.ts.map +1 -0
- package/dist/cli/features/duplication/interfaces/index.js +31 -0
- package/dist/cli/features/duplication/interfaces/index.js.map +1 -0
- package/dist/cli/features/duplication/services/duplication-detection-service.d.ts +27 -0
- package/dist/cli/features/duplication/services/duplication-detection-service.d.ts.map +1 -0
- package/dist/cli/features/duplication/services/duplication-detection-service.js +316 -0
- package/dist/cli/features/duplication/services/duplication-detection-service.js.map +1 -0
- package/dist/cli/features/duplication/services/file-analysis-service.d.ts +24 -0
- package/dist/cli/features/duplication/services/file-analysis-service.d.ts.map +1 -0
- package/dist/cli/features/duplication/services/file-analysis-service.js +340 -0
- package/dist/cli/features/duplication/services/file-analysis-service.js.map +1 -0
- package/dist/cli/features/duplication/services/refactoring-advisor-service.d.ts +33 -0
- package/dist/cli/features/duplication/services/refactoring-advisor-service.d.ts.map +1 -0
- package/dist/cli/features/duplication/services/refactoring-advisor-service.js +378 -0
- package/dist/cli/features/duplication/services/refactoring-advisor-service.js.map +1 -0
- package/dist/cli/features/duplication/services/statistics-service.d.ts +24 -0
- package/dist/cli/features/duplication/services/statistics-service.d.ts.map +1 -0
- package/dist/cli/features/duplication/services/statistics-service.js +285 -0
- package/dist/cli/features/duplication/services/statistics-service.js.map +1 -0
- package/dist/cli/features/semantic-graph/semantic-graph-tool.d.ts +38 -0
- package/dist/cli/features/semantic-graph/semantic-graph-tool.d.ts.map +1 -0
- package/dist/cli/features/semantic-graph/semantic-graph-tool.js +340 -0
- package/dist/cli/features/semantic-graph/semantic-graph-tool.js.map +1 -0
- package/dist/cli/features/solid-principles/analyzer.d.ts +40 -0
- package/dist/cli/features/solid-principles/analyzer.d.ts.map +1 -0
- package/dist/cli/features/solid-principles/analyzer.js +163 -0
- package/dist/cli/features/solid-principles/analyzer.js.map +1 -0
- package/dist/cli/features/tree-navigation/navigator.d.ts +23 -0
- package/dist/cli/features/tree-navigation/navigator.d.ts.map +1 -0
- package/dist/cli/features/tree-navigation/navigator.js +94 -0
- package/dist/cli/features/tree-navigation/navigator.js.map +1 -0
- package/dist/cli/git/change-detector.d.ts +61 -0
- package/dist/cli/git/change-detector.d.ts.map +1 -0
- package/dist/cli/git/change-detector.js +380 -0
- package/dist/cli/git/change-detector.js.map +1 -0
- package/dist/cli/git/git-commit-utils.d.ts +12 -0
- package/dist/cli/git/git-commit-utils.d.ts.map +1 -0
- package/dist/cli/git/git-commit-utils.js +210 -0
- package/dist/cli/git/git-commit-utils.js.map +1 -0
- package/dist/cli/git/git-database-utils.d.ts +10 -0
- package/dist/cli/git/git-database-utils.d.ts.map +1 -0
- package/dist/cli/git/git-database-utils.js +105 -0
- package/dist/cli/git/git-database-utils.js.map +1 -0
- package/dist/cli/git/git-integration.d.ts +53 -0
- package/dist/cli/git/git-integration.d.ts.map +1 -0
- package/dist/cli/git/git-integration.js +152 -0
- package/dist/cli/git/git-integration.js.map +1 -0
- package/dist/cli/git/in-memory-git-store.d.ts +10 -0
- package/dist/cli/git/in-memory-git-store.d.ts.map +1 -0
- package/dist/cli/git/in-memory-git-store.js +35 -0
- package/dist/cli/git/in-memory-git-store.js.map +1 -0
- package/dist/cli/git/interfaces.d.ts +82 -0
- package/dist/cli/git/interfaces.d.ts.map +1 -0
- package/dist/cli/git/interfaces.js +7 -0
- package/dist/cli/git/interfaces.js.map +1 -0
- package/dist/cli/git/services/git-analysis-service.d.ts +21 -0
- package/dist/cli/git/services/git-analysis-service.d.ts.map +1 -0
- package/dist/cli/git/services/git-analysis-service.js +169 -0
- package/dist/cli/git/services/git-analysis-service.js.map +1 -0
- package/dist/cli/git/services/git-autocommit-service.d.ts +19 -0
- package/dist/cli/git/services/git-autocommit-service.d.ts.map +1 -0
- package/dist/cli/git/services/git-autocommit-service.js +205 -0
- package/dist/cli/git/services/git-autocommit-service.js.map +1 -0
- package/dist/cli/git/services/git-database-service.d.ts +23 -0
- package/dist/cli/git/services/git-database-service.d.ts.map +1 -0
- package/dist/cli/git/services/git-database-service.js +255 -0
- package/dist/cli/git/services/git-database-service.js.map +1 -0
- package/dist/cli/git/services/git-operations-service.d.ts +22 -0
- package/dist/cli/git/services/git-operations-service.d.ts.map +1 -0
- package/dist/cli/git/services/git-operations-service.js +237 -0
- package/dist/cli/git/services/git-operations-service.js.map +1 -0
- package/dist/cli/integration/context-builder.d.ts +8 -0
- package/dist/cli/integration/context-builder.d.ts.map +1 -0
- package/dist/cli/integration/context-builder.js +103 -0
- package/dist/cli/integration/context-builder.js.map +1 -0
- package/dist/cli/integration/knowledge-base-updater.d.ts +12 -0
- package/dist/cli/integration/knowledge-base-updater.d.ts.map +1 -0
- package/dist/cli/integration/knowledge-base-updater.js +156 -0
- package/dist/cli/integration/knowledge-base-updater.js.map +1 -0
- package/dist/cli/integration/result-improver.d.ts +7 -0
- package/dist/cli/integration/result-improver.d.ts.map +1 -0
- package/dist/cli/integration/result-improver.js +26 -0
- package/dist/cli/integration/result-improver.js.map +1 -0
- package/dist/cli/integration/result-integrator.d.ts +7 -0
- package/dist/cli/integration/result-integrator.d.ts.map +1 -0
- package/dist/cli/integration/result-integrator.js +31 -0
- package/dist/cli/integration/result-integrator.js.map +1 -0
- package/dist/cli/integration/task-decomposer.d.ts +10 -0
- package/dist/cli/integration/task-decomposer.d.ts.map +1 -0
- package/dist/cli/integration/task-decomposer.js +32 -0
- package/dist/cli/integration/task-decomposer.js.map +1 -0
- package/dist/cli/integration/task-executor.d.ts +12 -0
- package/dist/cli/integration/task-executor.d.ts.map +1 -0
- package/dist/cli/integration/task-executor.js +76 -0
- package/dist/cli/integration/task-executor.js.map +1 -0
- package/dist/cli/knowledge/analyzers/interfaces.d.ts +55 -0
- package/dist/cli/knowledge/analyzers/interfaces.d.ts.map +1 -0
- package/dist/cli/knowledge/analyzers/interfaces.js +8 -0
- package/dist/cli/knowledge/analyzers/interfaces.js.map +1 -0
- package/dist/cli/knowledge/analyzers/semantic-analyzer.d.ts +27 -0
- package/dist/cli/knowledge/analyzers/semantic-analyzer.d.ts.map +1 -0
- package/dist/cli/knowledge/analyzers/semantic-analyzer.js +227 -0
- package/dist/cli/knowledge/analyzers/semantic-analyzer.js.map +1 -0
- package/dist/cli/knowledge/analyzers/services/ast-analysis-service.d.ts +23 -0
- package/dist/cli/knowledge/analyzers/services/ast-analysis-service.d.ts.map +1 -0
- package/dist/cli/knowledge/analyzers/services/ast-analysis-service.js +137 -0
- package/dist/cli/knowledge/analyzers/services/ast-analysis-service.js.map +1 -0
- package/dist/cli/knowledge/analyzers/services/file-discovery-service.d.ts +15 -0
- package/dist/cli/knowledge/analyzers/services/file-discovery-service.d.ts.map +1 -0
- package/dist/cli/knowledge/analyzers/services/file-discovery-service.js +110 -0
- package/dist/cli/knowledge/analyzers/services/file-discovery-service.js.map +1 -0
- package/dist/cli/knowledge/analyzers/services/pattern-detection-service.d.ts +21 -0
- package/dist/cli/knowledge/analyzers/services/pattern-detection-service.d.ts.map +1 -0
- package/dist/cli/knowledge/analyzers/services/pattern-detection-service.js +190 -0
- package/dist/cli/knowledge/analyzers/services/pattern-detection-service.js.map +1 -0
- package/dist/cli/knowledge/graph/knowledge-graph.d.ts +109 -0
- package/dist/cli/knowledge/graph/knowledge-graph.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/knowledge-graph.js +281 -0
- package/dist/cli/knowledge/graph/knowledge-graph.js.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-mutation-manager.d.ts +69 -0
- package/dist/cli/knowledge/graph/managers/graph-mutation-manager.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-mutation-manager.js +445 -0
- package/dist/cli/knowledge/graph/managers/graph-mutation-manager.js.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-query-manager.d.ts +86 -0
- package/dist/cli/knowledge/graph/managers/graph-query-manager.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-query-manager.js +306 -0
- package/dist/cli/knowledge/graph/managers/graph-query-manager.js.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-state-manager.d.ts +70 -0
- package/dist/cli/knowledge/graph/managers/graph-state-manager.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-state-manager.js +249 -0
- package/dist/cli/knowledge/graph/managers/graph-state-manager.js.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-traversal-manager.d.ts +72 -0
- package/dist/cli/knowledge/graph/managers/graph-traversal-manager.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/managers/graph-traversal-manager.js +414 -0
- package/dist/cli/knowledge/graph/managers/graph-traversal-manager.js.map +1 -0
- package/dist/cli/knowledge/graph/services/architectural-insight-detector.d.ts +43 -0
- package/dist/cli/knowledge/graph/services/architectural-insight-detector.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/services/architectural-insight-detector.js +536 -0
- package/dist/cli/knowledge/graph/services/architectural-insight-detector.js.map +1 -0
- package/dist/cli/knowledge/graph/services/graph-analyzer.d.ts +24 -0
- package/dist/cli/knowledge/graph/services/graph-analyzer.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/services/graph-analyzer.js +262 -0
- package/dist/cli/knowledge/graph/services/graph-analyzer.js.map +1 -0
- package/dist/cli/knowledge/graph/services/graph-database-service.d.ts +61 -0
- package/dist/cli/knowledge/graph/services/graph-database-service.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/services/graph-database-service.js +593 -0
- package/dist/cli/knowledge/graph/services/graph-database-service.js.map +1 -0
- package/dist/cli/knowledge/graph/services/graph-utility-service.d.ts +41 -0
- package/dist/cli/knowledge/graph/services/graph-utility-service.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/services/graph-utility-service.js +208 -0
- package/dist/cli/knowledge/graph/services/graph-utility-service.js.map +1 -0
- package/dist/cli/knowledge/graph/types.d.ts +272 -0
- package/dist/cli/knowledge/graph/types.d.ts.map +1 -0
- package/dist/cli/knowledge/graph/types.js +127 -0
- package/dist/cli/knowledge/graph/types.js.map +1 -0
- package/dist/cli/knowledge/repository/knowledge-repository.d.ts +121 -0
- package/dist/cli/knowledge/repository/knowledge-repository.d.ts.map +1 -0
- package/dist/cli/knowledge/repository/knowledge-repository.js +642 -0
- package/dist/cli/knowledge/repository/knowledge-repository.js.map +1 -0
- package/dist/cli/managers/claude-code-forwarder.d.ts +68 -0
- package/dist/cli/managers/claude-code-forwarder.d.ts.map +1 -0
- package/dist/cli/managers/claude-code-forwarder.js +214 -0
- package/dist/cli/managers/claude-code-forwarder.js.map +1 -0
- package/dist/cli/managers/command-processor.d.ts +75 -0
- package/dist/cli/managers/command-processor.d.ts.map +1 -0
- package/dist/cli/managers/command-processor.js +117 -0
- package/dist/cli/managers/command-processor.js.map +1 -0
- package/dist/cli/managers/database-manager.d.ts +147 -0
- package/dist/cli/managers/database-manager.d.ts.map +1 -0
- package/dist/cli/managers/database-manager.js +218 -0
- package/dist/cli/managers/database-manager.js.map +1 -0
- package/dist/cli/managers/interrupt-manager.d.ts +75 -0
- package/dist/cli/managers/interrupt-manager.d.ts.map +1 -0
- package/dist/cli/managers/interrupt-manager.js +197 -0
- package/dist/cli/managers/interrupt-manager.js.map +1 -0
- package/dist/cli/managers/project-manager.d.ts +82 -0
- package/dist/cli/managers/project-manager.d.ts.map +1 -0
- package/dist/cli/managers/project-manager.js +257 -0
- package/dist/cli/managers/project-manager.js.map +1 -0
- package/dist/cli/managers/user-interface.d.ts +74 -0
- package/dist/cli/managers/user-interface.d.ts.map +1 -0
- package/dist/cli/managers/user-interface.js +529 -0
- package/dist/cli/managers/user-interface.js.map +1 -0
- package/dist/cli/managers/workflow-orchestration-adapter.d.ts +24 -0
- package/dist/cli/managers/workflow-orchestration-adapter.d.ts.map +1 -0
- package/dist/cli/managers/workflow-orchestration-adapter.js +136 -0
- package/dist/cli/managers/workflow-orchestration-adapter.js.map +1 -0
- package/dist/cli/orchestration/cli-orchestrator.d.ts +92 -0
- package/dist/cli/orchestration/cli-orchestrator.d.ts.map +1 -0
- package/dist/cli/orchestration/cli-orchestrator.js +195 -0
- package/dist/cli/orchestration/cli-orchestrator.js.map +1 -0
- package/dist/cli/quality/compilation-checker.d.ts +13 -0
- package/dist/cli/quality/compilation-checker.d.ts.map +1 -0
- package/dist/cli/quality/compilation-checker.js +78 -0
- package/dist/cli/quality/compilation-checker.js.map +1 -0
- package/dist/cli/quality/interfaces/index.d.ts +104 -0
- package/dist/cli/quality/interfaces/index.d.ts.map +1 -0
- package/dist/cli/quality/interfaces/index.js +7 -0
- package/dist/cli/quality/interfaces/index.js.map +1 -0
- package/dist/cli/quality/interfaces.d.ts +79 -0
- package/dist/cli/quality/interfaces.d.ts.map +1 -0
- package/dist/cli/quality/interfaces.js +7 -0
- package/dist/cli/quality/interfaces.js.map +1 -0
- package/dist/cli/quality/quality-orchestrator.d.ts +19 -0
- package/dist/cli/quality/quality-orchestrator.d.ts.map +1 -0
- package/dist/cli/quality/quality-orchestrator.js +109 -0
- package/dist/cli/quality/quality-orchestrator.js.map +1 -0
- package/dist/cli/quality/services/architecture-service.d.ts +17 -0
- package/dist/cli/quality/services/architecture-service.d.ts.map +1 -0
- package/dist/cli/quality/services/architecture-service.js +267 -0
- package/dist/cli/quality/services/architecture-service.js.map +1 -0
- package/dist/cli/quality/services/compilation-service.d.ts +16 -0
- package/dist/cli/quality/services/compilation-service.d.ts.map +1 -0
- package/dist/cli/quality/services/compilation-service.js +177 -0
- package/dist/cli/quality/services/compilation-service.js.map +1 -0
- package/dist/cli/quality/services/quality-score-calculator.d.ts +12 -0
- package/dist/cli/quality/services/quality-score-calculator.d.ts.map +1 -0
- package/dist/cli/quality/services/quality-score-calculator.js +120 -0
- package/dist/cli/quality/services/quality-score-calculator.js.map +1 -0
- package/dist/cli/quality/services/security-service.d.ts +15 -0
- package/dist/cli/quality/services/security-service.d.ts.map +1 -0
- package/dist/cli/quality/services/security-service.js +214 -0
- package/dist/cli/quality/services/security-service.js.map +1 -0
- package/dist/cli/quality/services/testing-service.d.ts +19 -0
- package/dist/cli/quality/services/testing-service.d.ts.map +1 -0
- package/dist/cli/quality/services/testing-service.js +251 -0
- package/dist/cli/quality/services/testing-service.js.map +1 -0
- package/dist/cli/quality/test-runner.d.ts +15 -0
- package/dist/cli/quality/test-runner.d.ts.map +1 -0
- package/dist/cli/quality/test-runner.js +148 -0
- package/dist/cli/quality/test-runner.js.map +1 -0
- package/dist/cli/quality-checker.d.ts +41 -0
- package/dist/cli/quality-checker.d.ts.map +1 -0
- package/dist/cli/quality-checker.js +216 -0
- package/dist/cli/quality-checker.js.map +1 -0
- package/dist/cli/scripts/start-tool-api.d.ts +7 -0
- package/dist/cli/scripts/start-tool-api.d.ts.map +1 -0
- package/dist/cli/scripts/start-tool-api.js +44 -0
- package/dist/cli/scripts/start-tool-api.js.map +1 -0
- package/dist/cli/services/analysis/coding-patterns-analyzer.d.ts +78 -0
- package/dist/cli/services/analysis/coding-patterns-analyzer.d.ts.map +1 -0
- package/dist/cli/services/analysis/coding-patterns-analyzer.js +588 -0
- package/dist/cli/services/analysis/coding-patterns-analyzer.js.map +1 -0
- package/dist/cli/services/analysis/coding-standards-generator.d.ts +66 -0
- package/dist/cli/services/analysis/coding-standards-generator.d.ts.map +1 -0
- package/dist/cli/services/analysis/coding-standards-generator.js +223 -0
- package/dist/cli/services/analysis/coding-standards-generator.js.map +1 -0
- package/dist/cli/services/analysis/deduplication/code-consolidation-handler.d.ts +70 -0
- package/dist/cli/services/analysis/deduplication/code-consolidation-handler.d.ts.map +1 -0
- package/dist/cli/services/analysis/deduplication/code-consolidation-handler.js +326 -0
- package/dist/cli/services/analysis/deduplication/code-consolidation-handler.js.map +1 -0
- package/dist/cli/services/analysis/deduplication/dedup-detector.d.ts +77 -0
- package/dist/cli/services/analysis/deduplication/dedup-detector.d.ts.map +1 -0
- package/dist/cli/services/analysis/deduplication/dedup-detector.js +302 -0
- package/dist/cli/services/analysis/deduplication/dedup-detector.js.map +1 -0
- package/dist/cli/services/analysis/deduplication/deduplication-service.d.ts +107 -0
- package/dist/cli/services/analysis/deduplication/deduplication-service.d.ts.map +1 -0
- package/dist/cli/services/analysis/deduplication/deduplication-service.js +380 -0
- package/dist/cli/services/analysis/deduplication/deduplication-service.js.map +1 -0
- package/dist/cli/services/analysis/deduplication/duplicate-code-detector.d.ts +100 -0
- package/dist/cli/services/analysis/deduplication/duplicate-code-detector.d.ts.map +1 -0
- package/dist/cli/services/analysis/deduplication/duplicate-code-detector.js +406 -0
- package/dist/cli/services/analysis/deduplication/duplicate-code-detector.js.map +1 -0
- package/dist/cli/services/analysis/deduplication/hash-change-detector.d.ts +57 -0
- package/dist/cli/services/analysis/deduplication/hash-change-detector.d.ts.map +1 -0
- package/dist/cli/services/analysis/deduplication/hash-change-detector.js +185 -0
- package/dist/cli/services/analysis/deduplication/hash-change-detector.js.map +1 -0
- package/dist/cli/services/analysis/solid/solid-analyzer-service.d.ts +87 -0
- package/dist/cli/services/analysis/solid/solid-analyzer-service.d.ts.map +1 -0
- package/dist/cli/services/analysis/solid/solid-analyzer-service.js +426 -0
- package/dist/cli/services/analysis/solid/solid-analyzer-service.js.map +1 -0
- package/dist/cli/services/analysis/user-intentions/assumption-detector.d.ts +76 -0
- package/dist/cli/services/analysis/user-intentions/assumption-detector.d.ts.map +1 -0
- package/dist/cli/services/analysis/user-intentions/assumption-detector.js +394 -0
- package/dist/cli/services/analysis/user-intentions/assumption-detector.js.map +1 -0
- package/dist/cli/services/analysis/user-intentions/intent-analyzer.d.ts +41 -0
- package/dist/cli/services/analysis/user-intentions/intent-analyzer.d.ts.map +1 -0
- package/dist/cli/services/analysis/user-intentions/intent-analyzer.js +257 -0
- package/dist/cli/services/analysis/user-intentions/intent-analyzer.js.map +1 -0
- package/dist/cli/services/analysis/user-intentions/intention-clarification-service.d.ts +73 -0
- package/dist/cli/services/analysis/user-intentions/intention-clarification-service.d.ts.map +1 -0
- package/dist/cli/services/analysis/user-intentions/intention-clarification-service.js +246 -0
- package/dist/cli/services/analysis/user-intentions/intention-clarification-service.js.map +1 -0
- package/dist/cli/services/analysis/user-intentions/llm-intention-detector.d.ts +64 -0
- package/dist/cli/services/analysis/user-intentions/llm-intention-detector.d.ts.map +1 -0
- package/dist/cli/services/analysis/user-intentions/llm-intention-detector.js +269 -0
- package/dist/cli/services/analysis/user-intentions/llm-intention-detector.js.map +1 -0
- package/dist/cli/services/analysis/user-intentions/user-clarification-service.d.ts +52 -0
- package/dist/cli/services/analysis/user-intentions/user-clarification-service.d.ts.map +1 -0
- package/dist/cli/services/analysis/user-intentions/user-clarification-service.js +239 -0
- package/dist/cli/services/analysis/user-intentions/user-clarification-service.js.map +1 -0
- package/dist/cli/services/claude/claude-code-executor.d.ts +37 -0
- package/dist/cli/services/claude/claude-code-executor.d.ts.map +1 -0
- package/dist/cli/services/claude/claude-code-executor.js +190 -0
- package/dist/cli/services/claude/claude-code-executor.js.map +1 -0
- package/dist/cli/services/data/code-parsing/file-parser.d.ts +27 -0
- package/dist/cli/services/data/code-parsing/file-parser.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/file-parser.js +336 -0
- package/dist/cli/services/data/code-parsing/file-parser.js.map +1 -0
- package/dist/cli/services/data/code-parsing/interfaces/index.d.ts +102 -0
- package/dist/cli/services/data/code-parsing/interfaces/index.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/interfaces/index.js +7 -0
- package/dist/cli/services/data/code-parsing/interfaces/index.js.map +1 -0
- package/dist/cli/services/data/code-parsing/interfaces.d.ts +77 -0
- package/dist/cli/services/data/code-parsing/interfaces.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/interfaces.js +7 -0
- package/dist/cli/services/data/code-parsing/interfaces.js.map +1 -0
- package/dist/cli/services/data/code-parsing/relationship-analyzer.d.ts +13 -0
- package/dist/cli/services/data/code-parsing/relationship-analyzer.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/relationship-analyzer.js +118 -0
- package/dist/cli/services/data/code-parsing/relationship-analyzer.js.map +1 -0
- package/dist/cli/services/data/code-parsing/services/file-parsing-service.d.ts +21 -0
- package/dist/cli/services/data/code-parsing/services/file-parsing-service.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/services/file-parsing-service.js +394 -0
- package/dist/cli/services/data/code-parsing/services/file-parsing-service.js.map +1 -0
- package/dist/cli/services/data/code-parsing/services/graph-population-service.d.ts +21 -0
- package/dist/cli/services/data/code-parsing/services/graph-population-service.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/services/graph-population-service.js +426 -0
- package/dist/cli/services/data/code-parsing/services/graph-population-service.js.map +1 -0
- package/dist/cli/services/data/code-parsing/services/project-structure-service.d.ts +33 -0
- package/dist/cli/services/data/code-parsing/services/project-structure-service.d.ts.map +1 -0
- package/dist/cli/services/data/code-parsing/services/project-structure-service.js +310 -0
- package/dist/cli/services/data/code-parsing/services/project-structure-service.js.map +1 -0
- package/dist/cli/services/data/code-relationship-parser.d.ts +58 -0
- package/dist/cli/services/data/code-relationship-parser.d.ts.map +1 -0
- package/dist/cli/services/data/code-relationship-parser.js +204 -0
- package/dist/cli/services/data/code-relationship-parser.js.map +1 -0
- package/dist/cli/services/data/content-processing/content-processor.d.ts +141 -0
- package/dist/cli/services/data/content-processing/content-processor.d.ts.map +1 -0
- package/dist/cli/services/data/content-processing/content-processor.js +661 -0
- package/dist/cli/services/data/content-processing/content-processor.js.map +1 -0
- package/dist/cli/services/data/database/postgresql-initializer.d.ts +67 -0
- package/dist/cli/services/data/database/postgresql-initializer.d.ts.map +1 -0
- package/dist/cli/services/data/database/postgresql-initializer.js +612 -0
- package/dist/cli/services/data/database/postgresql-initializer.js.map +1 -0
- package/dist/cli/services/data/documentation-service.d.ts +123 -0
- package/dist/cli/services/data/documentation-service.d.ts.map +1 -0
- package/dist/cli/services/data/documentation-service.js +531 -0
- package/dist/cli/services/data/documentation-service.js.map +1 -0
- package/dist/cli/services/data/embedding/embedding-service.d.ts +67 -0
- package/dist/cli/services/data/embedding/embedding-service.d.ts.map +1 -0
- package/dist/cli/services/data/embedding/embedding-service.js +258 -0
- package/dist/cli/services/data/embedding/embedding-service.js.map +1 -0
- package/dist/cli/services/data/embedding/interfaces.d.ts +104 -0
- package/dist/cli/services/data/embedding/interfaces.d.ts.map +1 -0
- package/dist/cli/services/data/embedding/interfaces.js +8 -0
- package/dist/cli/services/data/embedding/interfaces.js.map +1 -0
- package/dist/cli/services/data/embedding/providers/local-provider.d.ts +15 -0
- package/dist/cli/services/data/embedding/providers/local-provider.d.ts.map +1 -0
- package/dist/cli/services/data/embedding/providers/local-provider.js +99 -0
- package/dist/cli/services/data/embedding/providers/local-provider.js.map +1 -0
- package/dist/cli/services/data/embedding/providers/openai-provider.d.ts +16 -0
- package/dist/cli/services/data/embedding/providers/openai-provider.d.ts.map +1 -0
- package/dist/cli/services/data/embedding/providers/openai-provider.js +70 -0
- package/dist/cli/services/data/embedding/providers/openai-provider.js.map +1 -0
- package/dist/cli/services/data/embedding/providers/xenova-provider.d.ts +17 -0
- package/dist/cli/services/data/embedding/providers/xenova-provider.d.ts.map +1 -0
- package/dist/cli/services/data/embedding/providers/xenova-provider.js +95 -0
- package/dist/cli/services/data/embedding/providers/xenova-provider.js.map +1 -0
- package/dist/cli/services/data/embedding/services/file-processor.d.ts +20 -0
- package/dist/cli/services/data/embedding/services/file-processor.d.ts.map +1 -0
- package/dist/cli/services/data/embedding/services/file-processor.js +306 -0
- package/dist/cli/services/data/embedding/services/file-processor.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/builders/node-builder.d.ts +54 -0
- package/dist/cli/services/data/semantic-graph/builders/node-builder.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/builders/node-builder.js +209 -0
- package/dist/cli/services/data/semantic-graph/builders/node-builder.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/builders/relationship-builder.d.ts +61 -0
- package/dist/cli/services/data/semantic-graph/builders/relationship-builder.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/builders/relationship-builder.js +316 -0
- package/dist/cli/services/data/semantic-graph/builders/relationship-builder.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/claude-code-proxy.d.ts +43 -0
- package/dist/cli/services/data/semantic-graph/claude-code-proxy.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/claude-code-proxy.js +296 -0
- package/dist/cli/services/data/semantic-graph/claude-code-proxy.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.d.ts +63 -0
- package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.js +340 -0
- package/dist/cli/services/data/semantic-graph/code-relationship-orchestrator.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/interfaces/index.d.ts +134 -0
- package/dist/cli/services/data/semantic-graph/interfaces/index.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/interfaces/index.js +7 -0
- package/dist/cli/services/data/semantic-graph/interfaces/index.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/language-detector.d.ts +60 -0
- package/dist/cli/services/data/semantic-graph/language-detector.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/language-detector.js +345 -0
- package/dist/cli/services/data/semantic-graph/language-detector.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.d.ts +68 -0
- package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.js +298 -0
- package/dist/cli/services/data/semantic-graph/neo4j-graph-storage.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.d.ts +19 -0
- package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.js +220 -0
- package/dist/cli/services/data/semantic-graph/parsers/csharp-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/generic-parser.d.ts +20 -0
- package/dist/cli/services/data/semantic-graph/parsers/generic-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/generic-parser.js +193 -0
- package/dist/cli/services/data/semantic-graph/parsers/generic-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/go-parser.d.ts +20 -0
- package/dist/cli/services/data/semantic-graph/parsers/go-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/go-parser.js +192 -0
- package/dist/cli/services/data/semantic-graph/parsers/go-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.d.ts +71 -0
- package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.js +35 -0
- package/dist/cli/services/data/semantic-graph/parsers/ilanguage-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/java-parser.d.ts +18 -0
- package/dist/cli/services/data/semantic-graph/parsers/java-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/java-parser.js +164 -0
- package/dist/cli/services/data/semantic-graph/parsers/java-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/python-parser.d.ts +15 -0
- package/dist/cli/services/data/semantic-graph/parsers/python-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/python-parser.js +172 -0
- package/dist/cli/services/data/semantic-graph/parsers/python-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.d.ts +26 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.js +312 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-java-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.d.ts +29 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.js +346 -0
- package/dist/cli/services/data/semantic-graph/parsers/tree-sitter-python-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.d.ts +19 -0
- package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.js +258 -0
- package/dist/cli/services/data/semantic-graph/parsers/typescript-parser.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/processors/index.d.ts +24 -0
- package/dist/cli/services/data/semantic-graph/processors/index.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/processors/index.js +153 -0
- package/dist/cli/services/data/semantic-graph/processors/index.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/semantic-graph.d.ts +75 -0
- package/dist/cli/services/data/semantic-graph/semantic-graph.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/semantic-graph.js +191 -0
- package/dist/cli/services/data/semantic-graph/semantic-graph.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/services/file-processing-service.d.ts +29 -0
- package/dist/cli/services/data/semantic-graph/services/file-processing-service.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/services/file-processing-service.js +175 -0
- package/dist/cli/services/data/semantic-graph/services/file-processing-service.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/services/graph-query-service.d.ts +34 -0
- package/dist/cli/services/data/semantic-graph/services/graph-query-service.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/services/graph-query-service.js +285 -0
- package/dist/cli/services/data/semantic-graph/services/graph-query-service.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/services/graph-storage-service.d.ts +35 -0
- package/dist/cli/services/data/semantic-graph/services/graph-storage-service.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/services/graph-storage-service.js +321 -0
- package/dist/cli/services/data/semantic-graph/services/graph-storage-service.js.map +1 -0
- package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.d.ts +85 -0
- package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.d.ts.map +1 -0
- package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.js +375 -0
- package/dist/cli/services/data/semantic-graph/tree-sitter-semantic-builder.js.map +1 -0
- package/dist/cli/services/integration/codemind-instruction-service.d.ts +76 -0
- package/dist/cli/services/integration/codemind-instruction-service.d.ts.map +1 -0
- package/dist/cli/services/integration/codemind-instruction-service.js +331 -0
- package/dist/cli/services/integration/codemind-instruction-service.js.map +1 -0
- package/dist/cli/services/integration/codeseeker-instruction-service.d.ts +82 -0
- package/dist/cli/services/integration/codeseeker-instruction-service.d.ts.map +1 -0
- package/dist/cli/services/integration/codeseeker-instruction-service.js +372 -0
- package/dist/cli/services/integration/codeseeker-instruction-service.js.map +1 -0
- package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.d.ts +135 -0
- package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.d.ts.map +1 -0
- package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.js +298 -0
- package/dist/cli/services/integration/workflow-integration/claude-context-enhancer.js.map +1 -0
- package/dist/cli/services/llm/claude-llm-executor.d.ts +84 -0
- package/dist/cli/services/llm/claude-llm-executor.d.ts.map +1 -0
- package/dist/cli/services/llm/claude-llm-executor.js +448 -0
- package/dist/cli/services/llm/claude-llm-executor.js.map +1 -0
- package/dist/cli/services/llm/index.d.ts +41 -0
- package/dist/cli/services/llm/index.d.ts.map +1 -0
- package/dist/cli/services/llm/index.js +53 -0
- package/dist/cli/services/llm/index.js.map +1 -0
- package/dist/cli/services/llm/interfaces/index.d.ts +211 -0
- package/dist/cli/services/llm/interfaces/index.d.ts.map +1 -0
- package/dist/cli/services/llm/interfaces/index.js +15 -0
- package/dist/cli/services/llm/interfaces/index.js.map +1 -0
- package/dist/cli/services/llm/llm-executor-registry.d.ts +118 -0
- package/dist/cli/services/llm/llm-executor-registry.d.ts.map +1 -0
- package/dist/cli/services/llm/llm-executor-registry.js +226 -0
- package/dist/cli/services/llm/llm-executor-registry.js.map +1 -0
- package/dist/cli/services/llm/mock-llm-executor.d.ts +118 -0
- package/dist/cli/services/llm/mock-llm-executor.d.ts.map +1 -0
- package/dist/cli/services/llm/mock-llm-executor.js +324 -0
- package/dist/cli/services/llm/mock-llm-executor.js.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.d.ts +49 -0
- package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.js +172 -0
- package/dist/cli/services/monitoring/file-scanning/configurable-exclusion-filter.js.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/directory-scanner.d.ts +12 -0
- package/dist/cli/services/monitoring/file-scanning/directory-scanner.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/directory-scanner.js +126 -0
- package/dist/cli/services/monitoring/file-scanning/directory-scanner.js.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.d.ts +33 -0
- package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.js +7 -0
- package/dist/cli/services/monitoring/file-scanning/file-scanner-interfaces.js.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/file-type-detector.d.ts +17 -0
- package/dist/cli/services/monitoring/file-scanning/file-type-detector.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/file-type-detector.js +109 -0
- package/dist/cli/services/monitoring/file-scanning/file-type-detector.js.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/index.d.ts +10 -0
- package/dist/cli/services/monitoring/file-scanning/index.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/index.js +34 -0
- package/dist/cli/services/monitoring/file-scanning/index.js.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/project-file-scanner.d.ts +31 -0
- package/dist/cli/services/monitoring/file-scanning/project-file-scanner.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-scanning/project-file-scanner.js +52 -0
- package/dist/cli/services/monitoring/file-scanning/project-file-scanner.js.map +1 -0
- package/dist/cli/services/monitoring/file-watcher-service.d.ts +82 -0
- package/dist/cli/services/monitoring/file-watcher-service.d.ts.map +1 -0
- package/dist/cli/services/monitoring/file-watcher-service.js +314 -0
- package/dist/cli/services/monitoring/file-watcher-service.js.map +1 -0
- package/dist/cli/services/monitoring/initialization/initialization-status-tracker.d.ts +72 -0
- package/dist/cli/services/monitoring/initialization/initialization-status-tracker.d.ts.map +1 -0
- package/dist/cli/services/monitoring/initialization/initialization-status-tracker.js +242 -0
- package/dist/cli/services/monitoring/initialization/initialization-status-tracker.js.map +1 -0
- package/dist/cli/services/platform-detector.d.ts +41 -0
- package/dist/cli/services/platform-detector.d.ts.map +1 -0
- package/dist/cli/services/platform-detector.js +302 -0
- package/dist/cli/services/platform-detector.js.map +1 -0
- package/dist/cli/services/project/language-manager.d.ts +16 -0
- package/dist/cli/services/project/language-manager.d.ts.map +1 -0
- package/dist/cli/services/project/language-manager.js +149 -0
- package/dist/cli/services/project/language-manager.js.map +1 -0
- package/dist/cli/services/project/language-support-service.d.ts +63 -0
- package/dist/cli/services/project/language-support-service.d.ts.map +1 -0
- package/dist/cli/services/project/language-support-service.js +357 -0
- package/dist/cli/services/project/language-support-service.js.map +1 -0
- package/dist/cli/services/project/project-detector.d.ts +10 -0
- package/dist/cli/services/project/project-detector.d.ts.map +1 -0
- package/dist/cli/services/project/project-detector.js +92 -0
- package/dist/cli/services/project/project-detector.js.map +1 -0
- package/dist/cli/services/project/project-registry.d.ts +16 -0
- package/dist/cli/services/project/project-registry.d.ts.map +1 -0
- package/dist/cli/services/project/project-registry.js +103 -0
- package/dist/cli/services/project/project-registry.js.map +1 -0
- package/dist/cli/services/project-identity-service.d.ts +87 -0
- package/dist/cli/services/project-identity-service.d.ts.map +1 -0
- package/dist/cli/services/project-identity-service.js +332 -0
- package/dist/cli/services/project-identity-service.js.map +1 -0
- package/dist/cli/services/search/content-chunker.d.ts +23 -0
- package/dist/cli/services/search/content-chunker.d.ts.map +1 -0
- package/dist/cli/services/search/content-chunker.js +265 -0
- package/dist/cli/services/search/content-chunker.js.map +1 -0
- package/dist/cli/services/search/embedding-generator-adapter.d.ts +17 -0
- package/dist/cli/services/search/embedding-generator-adapter.d.ts.map +1 -0
- package/dist/cli/services/search/embedding-generator-adapter.js +61 -0
- package/dist/cli/services/search/embedding-generator-adapter.js.map +1 -0
- package/dist/cli/services/search/search-index-storage.d.ts +22 -0
- package/dist/cli/services/search/search-index-storage.d.ts.map +1 -0
- package/dist/cli/services/search/search-index-storage.js +154 -0
- package/dist/cli/services/search/search-index-storage.js.map +1 -0
- package/dist/cli/services/search/search-query-processor.d.ts +16 -0
- package/dist/cli/services/search/search-query-processor.d.ts.map +1 -0
- package/dist/cli/services/search/search-query-processor.js +125 -0
- package/dist/cli/services/search/search-query-processor.js.map +1 -0
- package/dist/cli/services/search/semantic-search.d.ts +86 -0
- package/dist/cli/services/search/semantic-search.d.ts.map +1 -0
- package/dist/cli/services/search/semantic-search.js +300 -0
- package/dist/cli/services/search/semantic-search.js.map +1 -0
- package/dist/cli/services/setup/container-detector.d.ts +15 -0
- package/dist/cli/services/setup/container-detector.d.ts.map +1 -0
- package/dist/cli/services/setup/container-detector.js +175 -0
- package/dist/cli/services/setup/container-detector.js.map +1 -0
- package/dist/cli/services/setup/container-manager.d.ts +14 -0
- package/dist/cli/services/setup/container-manager.d.ts.map +1 -0
- package/dist/cli/services/setup/container-manager.js +147 -0
- package/dist/cli/services/setup/container-manager.js.map +1 -0
- package/dist/cli/services/setup/database-initializer.d.ts +24 -0
- package/dist/cli/services/setup/database-initializer.d.ts.map +1 -0
- package/dist/cli/services/setup/database-initializer.js +291 -0
- package/dist/cli/services/setup/database-initializer.js.map +1 -0
- package/dist/cli/services/setup/interfaces/setup-interfaces.d.ts +72 -0
- package/dist/cli/services/setup/interfaces/setup-interfaces.d.ts.map +1 -0
- package/dist/cli/services/setup/interfaces/setup-interfaces.js +7 -0
- package/dist/cli/services/setup/interfaces/setup-interfaces.js.map +1 -0
- package/dist/cli/services/setup/prerequisite-checker.d.ts +10 -0
- package/dist/cli/services/setup/prerequisite-checker.d.ts.map +1 -0
- package/dist/cli/services/setup/prerequisite-checker.js +119 -0
- package/dist/cli/services/setup/prerequisite-checker.js.map +1 -0
- package/dist/cli/services/setup/setup-orchestrator.d.ts +27 -0
- package/dist/cli/services/setup/setup-orchestrator.d.ts.map +1 -0
- package/dist/cli/services/setup/setup-orchestrator.js +230 -0
- package/dist/cli/services/setup/setup-orchestrator.js.map +1 -0
- package/dist/cli/services/setup/setup-reporter.d.ts +14 -0
- package/dist/cli/services/setup/setup-reporter.d.ts.map +1 -0
- package/dist/cli/services/setup/setup-reporter.js +143 -0
- package/dist/cli/services/setup/setup-reporter.js.map +1 -0
- package/dist/cli/services/setup/setup-service-factory.d.ts +19 -0
- package/dist/cli/services/setup/setup-service-factory.d.ts.map +1 -0
- package/dist/cli/services/setup/setup-service-factory.js +43 -0
- package/dist/cli/services/setup/setup-service-factory.js.map +1 -0
- package/dist/cli/services/setup/unified-database-initializer.d.ts +61 -0
- package/dist/cli/services/setup/unified-database-initializer.d.ts.map +1 -0
- package/dist/cli/services/setup/unified-database-initializer.js +264 -0
- package/dist/cli/services/setup/unified-database-initializer.js.map +1 -0
- package/dist/cli/task-splitter.d.ts +59 -0
- package/dist/cli/task-splitter.d.ts.map +1 -0
- package/dist/cli/task-splitter.js +556 -0
- package/dist/cli/task-splitter.js.map +1 -0
- package/dist/cli/tools/context-optimizer-tool.d.ts +25 -0
- package/dist/cli/tools/context-optimizer-tool.d.ts.map +1 -0
- package/dist/cli/tools/context-optimizer-tool.js +169 -0
- package/dist/cli/tools/context-optimizer-tool.js.map +1 -0
- package/dist/cli/ui/theme.d.ts +148 -0
- package/dist/cli/ui/theme.d.ts.map +1 -0
- package/dist/cli/ui/theme.js +302 -0
- package/dist/cli/ui/theme.js.map +1 -0
- package/dist/cli/ui/welcome-display.d.ts +20 -0
- package/dist/cli/ui/welcome-display.d.ts.map +1 -0
- package/dist/cli/ui/welcome-display.js +50 -0
- package/dist/cli/ui/welcome-display.js.map +1 -0
- package/dist/cli/workflow/interfaces/index.d.ts +191 -0
- package/dist/cli/workflow/interfaces/index.d.ts.map +1 -0
- package/dist/cli/workflow/interfaces/index.js +7 -0
- package/dist/cli/workflow/interfaces/index.js.map +1 -0
- package/dist/cli/workflow/services/context-gathering-service.d.ts +23 -0
- package/dist/cli/workflow/services/context-gathering-service.d.ts.map +1 -0
- package/dist/cli/workflow/services/context-gathering-service.js +145 -0
- package/dist/cli/workflow/services/context-gathering-service.js.map +1 -0
- package/dist/cli/workflow/services/database-sync-service.d.ts +63 -0
- package/dist/cli/workflow/services/database-sync-service.d.ts.map +1 -0
- package/dist/cli/workflow/services/database-sync-service.js +250 -0
- package/dist/cli/workflow/services/database-sync-service.js.map +1 -0
- package/dist/cli/workflow/services/git-workflow-service.d.ts +29 -0
- package/dist/cli/workflow/services/git-workflow-service.d.ts.map +1 -0
- package/dist/cli/workflow/services/git-workflow-service.js +226 -0
- package/dist/cli/workflow/services/git-workflow-service.js.map +1 -0
- package/dist/cli/workflow/services/intent-analysis-service.d.ts +20 -0
- package/dist/cli/workflow/services/intent-analysis-service.d.ts.map +1 -0
- package/dist/cli/workflow/services/intent-analysis-service.js +137 -0
- package/dist/cli/workflow/services/intent-analysis-service.js.map +1 -0
- package/dist/cli/workflow/services/quality-assurance-service.d.ts +41 -0
- package/dist/cli/workflow/services/quality-assurance-service.d.ts.map +1 -0
- package/dist/cli/workflow/services/quality-assurance-service.js +341 -0
- package/dist/cli/workflow/services/quality-assurance-service.js.map +1 -0
- package/dist/cli/workflow/services/task-orchestration-service.d.ts +31 -0
- package/dist/cli/workflow/services/task-orchestration-service.d.ts.map +1 -0
- package/dist/cli/workflow/services/task-orchestration-service.js +254 -0
- package/dist/cli/workflow/services/task-orchestration-service.js.map +1 -0
- package/dist/cli/workflow/workflow-orchestrator.d.ts +47 -0
- package/dist/cli/workflow/workflow-orchestrator.d.ts.map +1 -0
- package/dist/cli/workflow/workflow-orchestrator.js +248 -0
- package/dist/cli/workflow/workflow-orchestrator.js.map +1 -0
- package/dist/config/database-config.d.ts +40 -0
- package/dist/config/database-config.d.ts.map +1 -0
- package/dist/config/database-config.js +192 -0
- package/dist/config/database-config.js.map +1 -0
- package/dist/core/factories/command-service-factory.d.ts +26 -0
- package/dist/core/factories/command-service-factory.d.ts.map +1 -0
- package/dist/core/factories/command-service-factory.js +72 -0
- package/dist/core/factories/command-service-factory.js.map +1 -0
- package/dist/core/factories/error-factory.d.ts +19 -0
- package/dist/core/factories/error-factory.d.ts.map +1 -0
- package/dist/core/factories/error-factory.js +100 -0
- package/dist/core/factories/error-factory.js.map +1 -0
- package/dist/core/factories/error-handling-factory.d.ts +33 -0
- package/dist/core/factories/error-handling-factory.d.ts.map +1 -0
- package/dist/core/factories/error-handling-factory.js +59 -0
- package/dist/core/factories/error-handling-factory.js.map +1 -0
- package/dist/core/factories/project-service-factory.d.ts +38 -0
- package/dist/core/factories/project-service-factory.d.ts.map +1 -0
- package/dist/core/factories/project-service-factory.js +66 -0
- package/dist/core/factories/project-service-factory.js.map +1 -0
- package/dist/core/factories/search-service-factory.d.ts +42 -0
- package/dist/core/factories/search-service-factory.d.ts.map +1 -0
- package/dist/core/factories/search-service-factory.js +76 -0
- package/dist/core/factories/search-service-factory.js.map +1 -0
- package/dist/core/interfaces/command-interfaces.d.ts +82 -0
- package/dist/core/interfaces/command-interfaces.d.ts.map +1 -0
- package/dist/core/interfaces/command-interfaces.js +7 -0
- package/dist/core/interfaces/command-interfaces.js.map +1 -0
- package/dist/core/interfaces/error-interfaces.d.ts +95 -0
- package/dist/core/interfaces/error-interfaces.d.ts.map +1 -0
- package/dist/core/interfaces/error-interfaces.js +8 -0
- package/dist/core/interfaces/error-interfaces.js.map +1 -0
- package/dist/core/interfaces/orchestrator-interfaces.d.ts +62 -0
- package/dist/core/interfaces/orchestrator-interfaces.d.ts.map +1 -0
- package/dist/core/interfaces/orchestrator-interfaces.js +8 -0
- package/dist/core/interfaces/orchestrator-interfaces.js.map +1 -0
- package/dist/core/interfaces/project-interfaces.d.ts +57 -0
- package/dist/core/interfaces/project-interfaces.d.ts.map +1 -0
- package/dist/core/interfaces/project-interfaces.js +7 -0
- package/dist/core/interfaces/project-interfaces.js.map +1 -0
- package/dist/core/interfaces/search-interfaces.d.ts +76 -0
- package/dist/core/interfaces/search-interfaces.d.ts.map +1 -0
- package/dist/core/interfaces/search-interfaces.js +6 -0
- package/dist/core/interfaces/search-interfaces.js.map +1 -0
- package/dist/core/interfaces.d.ts +109 -0
- package/dist/core/interfaces.d.ts.map +1 -0
- package/dist/core/interfaces.js +6 -0
- package/dist/core/interfaces.js.map +1 -0
- package/dist/core/services/error-handler.d.ts +33 -0
- package/dist/core/services/error-handler.d.ts.map +1 -0
- package/dist/core/services/error-handler.js +187 -0
- package/dist/core/services/error-handler.js.map +1 -0
- package/dist/core/types.d.ts +197 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +89 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/utils/error-utils.d.ts +36 -0
- package/dist/core/utils/error-utils.d.ts.map +1 -0
- package/dist/core/utils/error-utils.js +173 -0
- package/dist/core/utils/error-utils.js.map +1 -0
- package/dist/database/adapters/base.d.ts +88 -0
- package/dist/database/adapters/base.d.ts.map +1 -0
- package/dist/database/adapters/base.js +27 -0
- package/dist/database/adapters/base.js.map +1 -0
- package/dist/database/adapters/interfaces.d.ts +64 -0
- package/dist/database/adapters/interfaces.d.ts.map +1 -0
- package/dist/database/adapters/interfaces.js +7 -0
- package/dist/database/adapters/interfaces.js.map +1 -0
- package/dist/database/adapters/postgresql.d.ts +54 -0
- package/dist/database/adapters/postgresql.d.ts.map +1 -0
- package/dist/database/adapters/postgresql.js +838 -0
- package/dist/database/adapters/postgresql.js.map +1 -0
- package/dist/database/adapters/services/connection-manager.d.ts +22 -0
- package/dist/database/adapters/services/connection-manager.d.ts.map +1 -0
- package/dist/database/adapters/services/connection-manager.js +107 -0
- package/dist/database/adapters/services/connection-manager.js.map +1 -0
- package/dist/database/adapters/services/project-service.d.ts +22 -0
- package/dist/database/adapters/services/project-service.d.ts.map +1 -0
- package/dist/database/adapters/services/project-service.js +193 -0
- package/dist/database/adapters/services/project-service.js.map +1 -0
- package/dist/database/database.d.ts +71 -0
- package/dist/database/database.d.ts.map +1 -0
- package/dist/database/database.js +312 -0
- package/dist/database/database.js.map +1 -0
- package/dist/database/factory.d.ts +10 -0
- package/dist/database/factory.d.ts.map +1 -0
- package/dist/database/factory.js +38 -0
- package/dist/database/factory.js.map +1 -0
- package/dist/database/migrations/002_phase2_features.d.ts +24 -0
- package/dist/database/migrations/002_phase2_features.d.ts.map +1 -0
- package/dist/database/migrations/002_phase2_features.js +224 -0
- package/dist/database/migrations/002_phase2_features.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/claude/claude-cli-integration.d.ts +85 -0
- package/dist/integrations/claude/claude-cli-integration.d.ts.map +1 -0
- package/dist/integrations/claude/claude-cli-integration.js +278 -0
- package/dist/integrations/claude/claude-cli-integration.js.map +1 -0
- package/dist/integrations/claude/conversation-manager.d.ts +81 -0
- package/dist/integrations/claude/conversation-manager.d.ts.map +1 -0
- package/dist/integrations/claude/conversation-manager.js +378 -0
- package/dist/integrations/claude/conversation-manager.js.map +1 -0
- package/dist/integrations/claude/interceptor.d.ts +75 -0
- package/dist/integrations/claude/interceptor.d.ts.map +1 -0
- package/dist/integrations/claude/interceptor.js +173 -0
- package/dist/integrations/claude/interceptor.js.map +1 -0
- package/dist/integrations/claude/interfaces/index.d.ts +128 -0
- package/dist/integrations/claude/interfaces/index.d.ts.map +1 -0
- package/dist/integrations/claude/interfaces/index.js +7 -0
- package/dist/integrations/claude/interfaces/index.js.map +1 -0
- package/dist/integrations/claude/outcome-analyzer.d.ts +90 -0
- package/dist/integrations/claude/outcome-analyzer.d.ts.map +1 -0
- package/dist/integrations/claude/outcome-analyzer.js +394 -0
- package/dist/integrations/claude/outcome-analyzer.js.map +1 -0
- package/dist/integrations/claude/services/claude-execution-service.d.ts +26 -0
- package/dist/integrations/claude/services/claude-execution-service.d.ts.map +1 -0
- package/dist/integrations/claude/services/claude-execution-service.js +136 -0
- package/dist/integrations/claude/services/claude-execution-service.js.map +1 -0
- package/dist/integrations/claude/services/claude-response-parser.d.ts +30 -0
- package/dist/integrations/claude/services/claude-response-parser.d.ts.map +1 -0
- package/dist/integrations/claude/services/claude-response-parser.js +235 -0
- package/dist/integrations/claude/services/claude-response-parser.js.map +1 -0
- package/dist/integrations/claude/services/project-analysis-service.d.ts +22 -0
- package/dist/integrations/claude/services/project-analysis-service.d.ts.map +1 -0
- package/dist/integrations/claude/services/project-analysis-service.js +298 -0
- package/dist/integrations/claude/services/project-analysis-service.js.map +1 -0
- package/dist/integrations/claude/services/project-context-builder.d.ts +34 -0
- package/dist/integrations/claude/services/project-context-builder.d.ts.map +1 -0
- package/dist/integrations/claude/services/project-context-builder.js +304 -0
- package/dist/integrations/claude/services/project-context-builder.js.map +1 -0
- package/dist/integrations/claude/services/prompt-processing-service.d.ts +24 -0
- package/dist/integrations/claude/services/prompt-processing-service.d.ts.map +1 -0
- package/dist/integrations/claude/services/prompt-processing-service.js +266 -0
- package/dist/integrations/claude/services/prompt-processing-service.js.map +1 -0
- package/dist/integrations/claude/services/request-processing-service.d.ts +34 -0
- package/dist/integrations/claude/services/request-processing-service.d.ts.map +1 -0
- package/dist/integrations/claude/services/request-processing-service.js +254 -0
- package/dist/integrations/claude/services/request-processing-service.js.map +1 -0
- package/dist/integrations/claude/services/session-management-service.d.ts +49 -0
- package/dist/integrations/claude/services/session-management-service.d.ts.map +1 -0
- package/dist/integrations/claude/services/session-management-service.js +214 -0
- package/dist/integrations/claude/services/session-management-service.js.map +1 -0
- package/dist/mcp/index.d.ts +8 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +13 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/indexing-service.d.ts +137 -0
- package/dist/mcp/indexing-service.d.ts.map +1 -0
- package/dist/mcp/indexing-service.js +961 -0
- package/dist/mcp/indexing-service.js.map +1 -0
- package/dist/mcp/mcp-server.d.ts +100 -0
- package/dist/mcp/mcp-server.d.ts.map +1 -0
- package/dist/mcp/mcp-server.js +1827 -0
- package/dist/mcp/mcp-server.js.map +1 -0
- package/dist/orchestrator/claude-tool-orchestrator.d.ts +128 -0
- package/dist/orchestrator/claude-tool-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/claude-tool-orchestrator.js +490 -0
- package/dist/orchestrator/claude-tool-orchestrator.js.map +1 -0
- package/dist/orchestrator/intelligent-task-orchestrator.d.ts +131 -0
- package/dist/orchestrator/intelligent-task-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/intelligent-task-orchestrator.js +493 -0
- package/dist/orchestrator/intelligent-task-orchestrator.js.map +1 -0
- package/dist/orchestrator/interfaces.d.ts +59 -0
- package/dist/orchestrator/interfaces.d.ts.map +1 -0
- package/dist/orchestrator/interfaces.js +7 -0
- package/dist/orchestrator/interfaces.js.map +1 -0
- package/dist/orchestrator/messaging/redis-messaging.d.ts +84 -0
- package/dist/orchestrator/messaging/redis-messaging.d.ts.map +1 -0
- package/dist/orchestrator/messaging/redis-messaging.js +384 -0
- package/dist/orchestrator/messaging/redis-messaging.js.map +1 -0
- package/dist/orchestrator/messaging/redis-queue.d.ts +89 -0
- package/dist/orchestrator/messaging/redis-queue.d.ts.map +1 -0
- package/dist/orchestrator/messaging/redis-queue.js +243 -0
- package/dist/orchestrator/messaging/redis-queue.js.map +1 -0
- package/dist/orchestrator/semantic-orchestrator.d.ts +43 -0
- package/dist/orchestrator/semantic-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/semantic-orchestrator.js +285 -0
- package/dist/orchestrator/semantic-orchestrator.js.map +1 -0
- package/dist/orchestrator/sequential-workflow-orchestrator.d.ts +128 -0
- package/dist/orchestrator/sequential-workflow-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/sequential-workflow-orchestrator.js +406 -0
- package/dist/orchestrator/sequential-workflow-orchestrator.js.map +1 -0
- package/dist/orchestrator/services/code-duplications-service.d.ts +14 -0
- package/dist/orchestrator/services/code-duplications-service.d.ts.map +1 -0
- package/dist/orchestrator/services/code-duplications-service.js +116 -0
- package/dist/orchestrator/services/code-duplications-service.js.map +1 -0
- package/dist/orchestrator/services/database-connection-service.d.ts +14 -0
- package/dist/orchestrator/services/database-connection-service.d.ts.map +1 -0
- package/dist/orchestrator/services/database-connection-service.js +46 -0
- package/dist/orchestrator/services/database-connection-service.js.map +1 -0
- package/dist/orchestrator/services/semantic-search-service.d.ts +15 -0
- package/dist/orchestrator/services/semantic-search-service.d.ts.map +1 -0
- package/dist/orchestrator/services/semantic-search-service.js +154 -0
- package/dist/orchestrator/services/semantic-search-service.js.map +1 -0
- package/dist/orchestrator/services/tool-data-service.d.ts +14 -0
- package/dist/orchestrator/services/tool-data-service.d.ts.map +1 -0
- package/dist/orchestrator/services/tool-data-service.js +76 -0
- package/dist/orchestrator/services/tool-data-service.js.map +1 -0
- package/dist/orchestrator/tool-database-api.d.ts +47 -0
- package/dist/orchestrator/tool-database-api.d.ts.map +1 -0
- package/dist/orchestrator/tool-database-api.js +200 -0
- package/dist/orchestrator/tool-database-api.js.map +1 -0
- package/dist/orchestrator/types.d.ts +98 -0
- package/dist/orchestrator/types.d.ts.map +1 -0
- package/dist/orchestrator/types.js +6 -0
- package/dist/orchestrator/types.js.map +1 -0
- package/dist/orchestrator/workflow-definitions.d.ts +9 -0
- package/dist/orchestrator/workflow-definitions.d.ts.map +1 -0
- package/dist/orchestrator/workflow-definitions.js +169 -0
- package/dist/orchestrator/workflow-definitions.js.map +1 -0
- package/dist/orchestrator/workflow-visualizer.d.ts +54 -0
- package/dist/orchestrator/workflow-visualizer.d.ts.map +1 -0
- package/dist/orchestrator/workflow-visualizer.js +355 -0
- package/dist/orchestrator/workflow-visualizer.js.map +1 -0
- package/dist/services/managers/quality-manager.d.ts +108 -0
- package/dist/services/managers/quality-manager.d.ts.map +1 -0
- package/dist/services/managers/quality-manager.js +763 -0
- package/dist/services/managers/quality-manager.js.map +1 -0
- package/dist/services/managers/sync-manager.d.ts +106 -0
- package/dist/services/managers/sync-manager.d.ts.map +1 -0
- package/dist/services/managers/sync-manager.js +573 -0
- package/dist/services/managers/sync-manager.js.map +1 -0
- package/dist/shared/analysis-repository-consolidated.d.ts +155 -0
- package/dist/shared/analysis-repository-consolidated.d.ts.map +1 -0
- package/dist/shared/analysis-repository-consolidated.js +587 -0
- package/dist/shared/analysis-repository-consolidated.js.map +1 -0
- package/dist/shared/analysis-repository.d.ts +48 -0
- package/dist/shared/analysis-repository.d.ts.map +1 -0
- package/dist/shared/analysis-repository.js +183 -0
- package/dist/shared/analysis-repository.js.map +1 -0
- package/dist/shared/analytics-export-pipeline.d.ts +32 -0
- package/dist/shared/analytics-export-pipeline.d.ts.map +1 -0
- package/dist/shared/analytics-export-pipeline.js +307 -0
- package/dist/shared/analytics-export-pipeline.js.map +1 -0
- package/dist/shared/ast/analyzer.d.ts +59 -0
- package/dist/shared/ast/analyzer.d.ts.map +1 -0
- package/dist/shared/ast/analyzer.js +202 -0
- package/dist/shared/ast/analyzer.js.map +1 -0
- package/dist/shared/change-assessment-system.d.ts +111 -0
- package/dist/shared/change-assessment-system.d.ts.map +1 -0
- package/dist/shared/change-assessment-system.js +465 -0
- package/dist/shared/change-assessment-system.js.map +1 -0
- package/dist/shared/codebase-analyzer.d.ts +41 -0
- package/dist/shared/codebase-analyzer.d.ts.map +1 -0
- package/dist/shared/codebase-analyzer.js +60 -0
- package/dist/shared/codebase-analyzer.js.map +1 -0
- package/dist/shared/codemind-memory-system.d.ts +75 -0
- package/dist/shared/codemind-memory-system.d.ts.map +1 -0
- package/dist/shared/codemind-memory-system.js +222 -0
- package/dist/shared/codemind-memory-system.js.map +1 -0
- package/dist/shared/codeseeker-memory-system.d.ts +75 -0
- package/dist/shared/codeseeker-memory-system.d.ts.map +1 -0
- package/dist/shared/codeseeker-memory-system.js +222 -0
- package/dist/shared/codeseeker-memory-system.js.map +1 -0
- package/dist/shared/comprehensive-impact-analyzer.d.ts +94 -0
- package/dist/shared/comprehensive-impact-analyzer.d.ts.map +1 -0
- package/dist/shared/comprehensive-impact-analyzer.js +534 -0
- package/dist/shared/comprehensive-impact-analyzer.js.map +1 -0
- package/dist/shared/context-provider.d.ts +110 -0
- package/dist/shared/context-provider.d.ts.map +1 -0
- package/dist/shared/context-provider.js +392 -0
- package/dist/shared/context-provider.js.map +1 -0
- package/dist/shared/database-responsibility-guide.d.ts +183 -0
- package/dist/shared/database-responsibility-guide.d.ts.map +1 -0
- package/dist/shared/database-responsibility-guide.js +201 -0
- package/dist/shared/database-responsibility-guide.js.map +1 -0
- package/dist/shared/documentation-rag-service.d.ts +149 -0
- package/dist/shared/documentation-rag-service.d.ts.map +1 -0
- package/dist/shared/documentation-rag-service.js +586 -0
- package/dist/shared/documentation-rag-service.js.map +1 -0
- package/dist/shared/file-hash-tracker.d.ts +145 -0
- package/dist/shared/file-hash-tracker.d.ts.map +1 -0
- package/dist/shared/file-hash-tracker.js +387 -0
- package/dist/shared/file-hash-tracker.js.map +1 -0
- package/dist/shared/file-synchronization-system.d.ts +143 -0
- package/dist/shared/file-synchronization-system.d.ts.map +1 -0
- package/dist/shared/file-synchronization-system.js +642 -0
- package/dist/shared/file-synchronization-system.js.map +1 -0
- package/dist/shared/four-layer-memory-architecture.d.ts +372 -0
- package/dist/shared/four-layer-memory-architecture.d.ts.map +1 -0
- package/dist/shared/four-layer-memory-architecture.js +353 -0
- package/dist/shared/four-layer-memory-architecture.js.map +1 -0
- package/dist/shared/hybrid-file-discovery.d.ts +86 -0
- package/dist/shared/hybrid-file-discovery.d.ts.map +1 -0
- package/dist/shared/hybrid-file-discovery.js +270 -0
- package/dist/shared/hybrid-file-discovery.js.map +1 -0
- package/dist/shared/intelligent-cycle/interfaces.d.ts +73 -0
- package/dist/shared/intelligent-cycle/interfaces.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle/interfaces.js +7 -0
- package/dist/shared/intelligent-cycle/interfaces.js.map +1 -0
- package/dist/shared/intelligent-cycle/services/code-extraction-service.d.ts +29 -0
- package/dist/shared/intelligent-cycle/services/code-extraction-service.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle/services/code-extraction-service.js +191 -0
- package/dist/shared/intelligent-cycle/services/code-extraction-service.js.map +1 -0
- package/dist/shared/intelligent-cycle/services/intent-analysis-service.d.ts +17 -0
- package/dist/shared/intelligent-cycle/services/intent-analysis-service.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle/services/intent-analysis-service.js +151 -0
- package/dist/shared/intelligent-cycle/services/intent-analysis-service.js.map +1 -0
- package/dist/shared/intelligent-cycle/services/security-scanning-service.d.ts +16 -0
- package/dist/shared/intelligent-cycle/services/security-scanning-service.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle/services/security-scanning-service.js +171 -0
- package/dist/shared/intelligent-cycle/services/security-scanning-service.js.map +1 -0
- package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.d.ts +15 -0
- package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.js +116 -0
- package/dist/shared/intelligent-cycle/services/semantic-deduplication-service.js.map +1 -0
- package/dist/shared/intelligent-cycle/services/similarity-matching-service.d.ts +13 -0
- package/dist/shared/intelligent-cycle/services/similarity-matching-service.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle/services/similarity-matching-service.js +64 -0
- package/dist/shared/intelligent-cycle/services/similarity-matching-service.js.map +1 -0
- package/dist/shared/intelligent-cycle-features.d.ts +41 -0
- package/dist/shared/intelligent-cycle-features.d.ts.map +1 -0
- package/dist/shared/intelligent-cycle-features.js +102 -0
- package/dist/shared/intelligent-cycle-features.js.map +1 -0
- package/dist/shared/intelligent-tool-selector.d.ts +90 -0
- package/dist/shared/intelligent-tool-selector.d.ts.map +1 -0
- package/dist/shared/intelligent-tool-selector.js +357 -0
- package/dist/shared/intelligent-tool-selector.js.map +1 -0
- package/dist/shared/logger.d.ts +2 -0
- package/dist/shared/logger.d.ts.map +1 -0
- package/dist/shared/logger.js +9 -0
- package/dist/shared/logger.js.map +1 -0
- package/dist/shared/managers/cache-manager.d.ts +147 -0
- package/dist/shared/managers/cache-manager.d.ts.map +1 -0
- package/dist/shared/managers/cache-manager.js +408 -0
- package/dist/shared/managers/cache-manager.js.map +1 -0
- package/dist/shared/managers/database-update-manager.d.ts +142 -0
- package/dist/shared/managers/database-update-manager.d.ts.map +1 -0
- package/dist/shared/managers/database-update-manager.js +747 -0
- package/dist/shared/managers/database-update-manager.js.map +1 -0
- package/dist/shared/managers/git-branch-manager.d.ts +104 -0
- package/dist/shared/managers/git-branch-manager.d.ts.map +1 -0
- package/dist/shared/managers/git-branch-manager.js +435 -0
- package/dist/shared/managers/git-branch-manager.js.map +1 -0
- package/dist/shared/memory-architecture-integration.d.ts +124 -0
- package/dist/shared/memory-architecture-integration.d.ts.map +1 -0
- package/dist/shared/memory-architecture-integration.js +247 -0
- package/dist/shared/memory-architecture-integration.js.map +1 -0
- package/dist/shared/memory-orchestrator-integration.d.ts +86 -0
- package/dist/shared/memory-orchestrator-integration.d.ts.map +1 -0
- package/dist/shared/memory-orchestrator-integration.js +325 -0
- package/dist/shared/memory-orchestrator-integration.js.map +1 -0
- package/dist/shared/memory-system/interfaces/index.d.ts +255 -0
- package/dist/shared/memory-system/interfaces/index.d.ts.map +1 -0
- package/dist/shared/memory-system/interfaces/index.js +7 -0
- package/dist/shared/memory-system/interfaces/index.js.map +1 -0
- package/dist/shared/memory-system/memory-system.d.ts +69 -0
- package/dist/shared/memory-system/memory-system.d.ts.map +1 -0
- package/dist/shared/memory-system/memory-system.js +219 -0
- package/dist/shared/memory-system/memory-system.js.map +1 -0
- package/dist/shared/memory-system/services/memory-analytics-service.d.ts +26 -0
- package/dist/shared/memory-system/services/memory-analytics-service.d.ts.map +1 -0
- package/dist/shared/memory-system/services/memory-analytics-service.js +101 -0
- package/dist/shared/memory-system/services/memory-analytics-service.js.map +1 -0
- package/dist/shared/memory-system/services/memory-optimization-service.d.ts +21 -0
- package/dist/shared/memory-system/services/memory-optimization-service.d.ts.map +1 -0
- package/dist/shared/memory-system/services/memory-optimization-service.js +282 -0
- package/dist/shared/memory-system/services/memory-optimization-service.js.map +1 -0
- package/dist/shared/memory-system/services/memory-retrieval-service.d.ts +30 -0
- package/dist/shared/memory-system/services/memory-retrieval-service.d.ts.map +1 -0
- package/dist/shared/memory-system/services/memory-retrieval-service.js +430 -0
- package/dist/shared/memory-system/services/memory-retrieval-service.js.map +1 -0
- package/dist/shared/memory-system/services/memory-storage-service.d.ts +47 -0
- package/dist/shared/memory-system/services/memory-storage-service.d.ts.map +1 -0
- package/dist/shared/memory-system/services/memory-storage-service.js +450 -0
- package/dist/shared/memory-system/services/memory-storage-service.js.map +1 -0
- package/dist/shared/multi-level-cache.d.ts +106 -0
- package/dist/shared/multi-level-cache.d.ts.map +1 -0
- package/dist/shared/multi-level-cache.js +423 -0
- package/dist/shared/multi-level-cache.js.map +1 -0
- package/dist/shared/offline-first-cache.d.ts +69 -0
- package/dist/shared/offline-first-cache.d.ts.map +1 -0
- package/dist/shared/offline-first-cache.js +312 -0
- package/dist/shared/offline-first-cache.js.map +1 -0
- package/dist/shared/performance-monitor.d.ts +69 -0
- package/dist/shared/performance-monitor.d.ts.map +1 -0
- package/dist/shared/performance-monitor.js +226 -0
- package/dist/shared/performance-monitor.js.map +1 -0
- package/dist/shared/platform-utils.d.ts +105 -0
- package/dist/shared/platform-utils.d.ts.map +1 -0
- package/dist/shared/platform-utils.js +299 -0
- package/dist/shared/platform-utils.js.map +1 -0
- package/dist/shared/post-execution-integration.d.ts +99 -0
- package/dist/shared/post-execution-integration.d.ts.map +1 -0
- package/dist/shared/post-execution-integration.js +504 -0
- package/dist/shared/post-execution-integration.js.map +1 -0
- package/dist/shared/postgresql-analytics-database.d.ts +54 -0
- package/dist/shared/postgresql-analytics-database.d.ts.map +1 -0
- package/dist/shared/postgresql-analytics-database.js +333 -0
- package/dist/shared/postgresql-analytics-database.js.map +1 -0
- package/dist/shared/project-intelligence.d.ts +45 -0
- package/dist/shared/project-intelligence.d.ts.map +1 -0
- package/dist/shared/project-intelligence.js +176 -0
- package/dist/shared/project-intelligence.js.map +1 -0
- package/dist/shared/prompt-chunking-system.d.ts +39 -0
- package/dist/shared/prompt-chunking-system.d.ts.map +1 -0
- package/dist/shared/prompt-chunking-system.js +233 -0
- package/dist/shared/prompt-chunking-system.js.map +1 -0
- package/dist/shared/reconciliation-system.d.ts +105 -0
- package/dist/shared/reconciliation-system.d.ts.map +1 -0
- package/dist/shared/reconciliation-system.js +430 -0
- package/dist/shared/reconciliation-system.js.map +1 -0
- package/dist/shared/redis-cache-adapter.d.ts +73 -0
- package/dist/shared/redis-cache-adapter.d.ts.map +1 -0
- package/dist/shared/redis-cache-adapter.js +294 -0
- package/dist/shared/redis-cache-adapter.js.map +1 -0
- package/dist/shared/redis-file-change-sync.d.ts +126 -0
- package/dist/shared/redis-file-change-sync.d.ts.map +1 -0
- package/dist/shared/redis-file-change-sync.js +779 -0
- package/dist/shared/redis-file-change-sync.js.map +1 -0
- package/dist/shared/semantic-enhancement-engine.d.ts +70 -0
- package/dist/shared/semantic-enhancement-engine.d.ts.map +1 -0
- package/dist/shared/semantic-enhancement-engine.js +127 -0
- package/dist/shared/semantic-enhancement-engine.js.map +1 -0
- package/dist/shared/task-specific-file-orchestrator.d.ts +107 -0
- package/dist/shared/task-specific-file-orchestrator.d.ts.map +1 -0
- package/dist/shared/task-specific-file-orchestrator.js +492 -0
- package/dist/shared/task-specific-file-orchestrator.js.map +1 -0
- package/dist/shared/tool-adapter.d.ts +27 -0
- package/dist/shared/tool-adapter.d.ts.map +1 -0
- package/dist/shared/tool-adapter.js +147 -0
- package/dist/shared/tool-adapter.js.map +1 -0
- package/dist/shared/tool-config-repository.d.ts +41 -0
- package/dist/shared/tool-config-repository.d.ts.map +1 -0
- package/dist/shared/tool-config-repository.js +178 -0
- package/dist/shared/tool-config-repository.js.map +1 -0
- package/dist/shared/tool-interface.d.ts +220 -0
- package/dist/shared/tool-interface.d.ts.map +1 -0
- package/dist/shared/tool-interface.js +357 -0
- package/dist/shared/tool-interface.js.map +1 -0
- package/dist/shared/tool-registry-initializer.d.ts +32 -0
- package/dist/shared/tool-registry-initializer.d.ts.map +1 -0
- package/dist/shared/tool-registry-initializer.js +173 -0
- package/dist/shared/tool-registry-initializer.js.map +1 -0
- package/dist/shared/types.d.ts +48 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +6 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/shared/validation-cycle/interfaces/index.d.ts +102 -0
- package/dist/shared/validation-cycle/interfaces/index.d.ts.map +1 -0
- package/dist/shared/validation-cycle/interfaces/index.js +7 -0
- package/dist/shared/validation-cycle/interfaces/index.js.map +1 -0
- package/dist/shared/validation-cycle/services/core-safety-service.d.ts +21 -0
- package/dist/shared/validation-cycle/services/core-safety-service.d.ts.map +1 -0
- package/dist/shared/validation-cycle/services/core-safety-service.js +339 -0
- package/dist/shared/validation-cycle/services/core-safety-service.js.map +1 -0
- package/dist/shared/validation-cycle/services/quality-validation-service.d.ts +24 -0
- package/dist/shared/validation-cycle/services/quality-validation-service.d.ts.map +1 -0
- package/dist/shared/validation-cycle/services/quality-validation-service.js +368 -0
- package/dist/shared/validation-cycle/services/quality-validation-service.js.map +1 -0
- package/dist/shared/validation-cycle/services/validation-aggregator-service.d.ts +28 -0
- package/dist/shared/validation-cycle/services/validation-aggregator-service.d.ts.map +1 -0
- package/dist/shared/validation-cycle/services/validation-aggregator-service.js +214 -0
- package/dist/shared/validation-cycle/services/validation-aggregator-service.js.map +1 -0
- package/dist/shared/validation-cycle/services/validation-report-service.d.ts +29 -0
- package/dist/shared/validation-cycle/services/validation-report-service.d.ts.map +1 -0
- package/dist/shared/validation-cycle/services/validation-report-service.js +304 -0
- package/dist/shared/validation-cycle/services/validation-report-service.js.map +1 -0
- package/dist/shared/validation-cycle/validation-cycle.d.ts +64 -0
- package/dist/shared/validation-cycle/validation-cycle.d.ts.map +1 -0
- package/dist/shared/validation-cycle/validation-cycle.js +226 -0
- package/dist/shared/validation-cycle/validation-cycle.js.map +1 -0
- package/dist/shared/validation-cycle.d.ts +12 -0
- package/dist/shared/validation-cycle.d.ts.map +1 -0
- package/dist/shared/validation-cycle.js +20 -0
- package/dist/shared/validation-cycle.js.map +1 -0
- package/dist/storage/embedded/graphology-graph-store.d.ts +39 -0
- package/dist/storage/embedded/graphology-graph-store.d.ts.map +1 -0
- package/dist/storage/embedded/graphology-graph-store.js +357 -0
- package/dist/storage/embedded/graphology-graph-store.js.map +1 -0
- package/dist/storage/embedded/index.d.ts +40 -0
- package/dist/storage/embedded/index.d.ts.map +1 -0
- package/dist/storage/embedded/index.js +154 -0
- package/dist/storage/embedded/index.js.map +1 -0
- package/dist/storage/embedded/lru-cache-store.d.ts +44 -0
- package/dist/storage/embedded/lru-cache-store.d.ts.map +1 -0
- package/dist/storage/embedded/lru-cache-store.js +232 -0
- package/dist/storage/embedded/lru-cache-store.js.map +1 -0
- package/dist/storage/embedded/minisearch-text-store.d.ts +62 -0
- package/dist/storage/embedded/minisearch-text-store.d.ts.map +1 -0
- package/dist/storage/embedded/minisearch-text-store.js +521 -0
- package/dist/storage/embedded/minisearch-text-store.js.map +1 -0
- package/dist/storage/embedded/sqlite-project-store.d.ts +29 -0
- package/dist/storage/embedded/sqlite-project-store.d.ts.map +1 -0
- package/dist/storage/embedded/sqlite-project-store.js +193 -0
- package/dist/storage/embedded/sqlite-project-store.js.map +1 -0
- package/dist/storage/embedded/sqlite-vector-store.d.ts +48 -0
- package/dist/storage/embedded/sqlite-vector-store.d.ts.map +1 -0
- package/dist/storage/embedded/sqlite-vector-store.js +462 -0
- package/dist/storage/embedded/sqlite-vector-store.js.map +1 -0
- package/dist/storage/index.d.ts +64 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +84 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/interfaces.d.ts +259 -0
- package/dist/storage/interfaces.d.ts.map +1 -0
- package/dist/storage/interfaces.js +12 -0
- package/dist/storage/interfaces.js.map +1 -0
- package/dist/storage/server/elasticsearch-text-store.d.ts +82 -0
- package/dist/storage/server/elasticsearch-text-store.d.ts.map +1 -0
- package/dist/storage/server/elasticsearch-text-store.js +177 -0
- package/dist/storage/server/elasticsearch-text-store.js.map +1 -0
- package/dist/storage/server/index.d.ts +42 -0
- package/dist/storage/server/index.d.ts.map +1 -0
- package/dist/storage/server/index.js +109 -0
- package/dist/storage/server/index.js.map +1 -0
- package/dist/storage/server/neo4j-graph-store.d.ts +49 -0
- package/dist/storage/server/neo4j-graph-store.d.ts.map +1 -0
- package/dist/storage/server/neo4j-graph-store.js +357 -0
- package/dist/storage/server/neo4j-graph-store.js.map +1 -0
- package/dist/storage/server/postgres-project-store.d.ts +30 -0
- package/dist/storage/server/postgres-project-store.d.ts.map +1 -0
- package/dist/storage/server/postgres-project-store.js +146 -0
- package/dist/storage/server/postgres-project-store.js.map +1 -0
- package/dist/storage/server/postgres-vector-store.d.ts +51 -0
- package/dist/storage/server/postgres-vector-store.d.ts.map +1 -0
- package/dist/storage/server/postgres-vector-store.js +306 -0
- package/dist/storage/server/postgres-vector-store.js.map +1 -0
- package/dist/storage/server/redis-cache-store.d.ts +61 -0
- package/dist/storage/server/redis-cache-store.d.ts.map +1 -0
- package/dist/storage/server/redis-cache-store.js +209 -0
- package/dist/storage/server/redis-cache-store.js.map +1 -0
- package/dist/storage/storage-manager.d.ts +121 -0
- package/dist/storage/storage-manager.d.ts.map +1 -0
- package/dist/storage/storage-manager.js +444 -0
- package/dist/storage/storage-manager.js.map +1 -0
- package/dist/storage/storage-provider.d.ts +62 -0
- package/dist/storage/storage-provider.d.ts.map +1 -0
- package/dist/storage/storage-provider.js +257 -0
- package/dist/storage/storage-provider.js.map +1 -0
- package/dist/utils/cache.d.ts +66 -0
- package/dist/utils/cache.d.ts.map +1 -0
- package/dist/utils/cache.js +254 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/cli-logger.d.ts +75 -0
- package/dist/utils/cli-logger.d.ts.map +1 -0
- package/dist/utils/cli-logger.js +217 -0
- package/dist/utils/cli-logger.js.map +1 -0
- package/dist/utils/colored-logger.d.ts +40 -0
- package/dist/utils/colored-logger.d.ts.map +1 -0
- package/dist/utils/colored-logger.js +233 -0
- package/dist/utils/colored-logger.js.map +1 -0
- package/dist/utils/config.d.ts +61 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +230 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/file-system.d.ts +30 -0
- package/dist/utils/file-system.d.ts.map +1 -0
- package/dist/utils/file-system.js +207 -0
- package/dist/utils/file-system.js.map +1 -0
- package/dist/utils/hash.d.ts +79 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +172 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/logger.d.ts +39 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +106 -0
- package/dist/utils/logger.js.map +1 -0
- package/package.json +150 -0
|
@@ -0,0 +1,1135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Project Initialization Command Handler - Fully Implemented
|
|
4
|
+
* Single Responsibility: Handle project initialization commands (per-project setup)
|
|
5
|
+
* Implements project registration, indexing, and knowledge graph creation
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function(o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.SetupCommandHandler = void 0;
|
|
42
|
+
const base_command_handler_1 = require("../base-command-handler");
|
|
43
|
+
const theme_1 = require("../../ui/theme");
|
|
44
|
+
const analysis_repository_consolidated_1 = require("../../../shared/analysis-repository-consolidated");
|
|
45
|
+
const pg_1 = require("pg");
|
|
46
|
+
const fs = __importStar(require("fs/promises"));
|
|
47
|
+
const path = __importStar(require("path"));
|
|
48
|
+
const logger_1 = require("../../../utils/logger");
|
|
49
|
+
const search_command_handler_1 = require("./search-command-handler");
|
|
50
|
+
const platform_detector_1 = require("../../services/platform-detector");
|
|
51
|
+
const storage_1 = require("../../../storage");
|
|
52
|
+
const coding_standards_generator_1 = require("../../services/analysis/coding-standards-generator");
|
|
53
|
+
class SetupCommandHandler extends base_command_handler_1.BaseCommandHandler {
|
|
54
|
+
// NOTE: This handler is for PROJECT initialization, not infrastructure setup
|
|
55
|
+
// For infrastructure setup (Docker, databases), see InfrastructureSetupHandler
|
|
56
|
+
logger = logger_1.Logger.getInstance().child('SetupCommandHandler');
|
|
57
|
+
/**
|
|
58
|
+
* Handle setup/init commands
|
|
59
|
+
*/
|
|
60
|
+
async handle(args) {
|
|
61
|
+
const isReset = args.includes('--reset');
|
|
62
|
+
const isQuick = args.includes('--quick');
|
|
63
|
+
const isNewConfig = args.includes('--new-config');
|
|
64
|
+
// Check for stale project.json path mismatch
|
|
65
|
+
const pathMismatchResult = await this.checkProjectPathMismatch(isNewConfig);
|
|
66
|
+
if (!pathMismatchResult.success) {
|
|
67
|
+
return pathMismatchResult;
|
|
68
|
+
}
|
|
69
|
+
if (isReset) {
|
|
70
|
+
console.log('🗑️ Detected --reset flag - performing complete cleanup...');
|
|
71
|
+
return await this.handleCompleteReset();
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
console.log('🚀 Initializing CodeSeeker project...');
|
|
75
|
+
try {
|
|
76
|
+
// First ensure the consolidated schema is applied
|
|
77
|
+
const schemaResult = await this.applyConsolidatedSchema();
|
|
78
|
+
if (!schemaResult.success) {
|
|
79
|
+
return schemaResult;
|
|
80
|
+
}
|
|
81
|
+
// Then run the init process (with or without indexing)
|
|
82
|
+
return await this.handleInit(isQuick);
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
return {
|
|
86
|
+
success: false,
|
|
87
|
+
message: `Command failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if project.json has a path mismatch with current directory
|
|
94
|
+
* This happens when a project folder is copied from another location
|
|
95
|
+
*/
|
|
96
|
+
async checkProjectPathMismatch(forceReset) {
|
|
97
|
+
// Use CODESEEKER_USER_CWD if available (set at CLI startup before any chdir)
|
|
98
|
+
const currentPath = process.env.CODESEEKER_USER_CWD || process.env.CODESEEKER_USER_CWD || process.cwd();
|
|
99
|
+
const configPath = path.join(currentPath, '.codeseeker', 'project.json');
|
|
100
|
+
// Debug: show what paths we're comparing
|
|
101
|
+
this.logger.debug(`Checking path mismatch - userCwd: ${currentPath}, configPath: ${configPath}`);
|
|
102
|
+
try {
|
|
103
|
+
// Check if project.json exists
|
|
104
|
+
const configContent = await fs.readFile(configPath, 'utf-8');
|
|
105
|
+
const config = JSON.parse(configContent);
|
|
106
|
+
this.logger.debug(`Config projectPath: ${config.projectPath}`);
|
|
107
|
+
// Normalize paths for comparison (handle Windows path differences)
|
|
108
|
+
const normalizedCurrentPath = currentPath.replace(/\\/g, '/').toLowerCase();
|
|
109
|
+
const normalizedConfigPath = (config.projectPath || '').replace(/\\/g, '/').toLowerCase();
|
|
110
|
+
if (normalizedConfigPath && normalizedCurrentPath !== normalizedConfigPath) {
|
|
111
|
+
console.log(theme_1.Theme.colors.warning('\n⚠️ Project path mismatch detected!'));
|
|
112
|
+
console.log(theme_1.Theme.colors.muted(` Config path: ${config.projectPath}`));
|
|
113
|
+
console.log(theme_1.Theme.colors.muted(` Current path: ${currentPath}`));
|
|
114
|
+
if (forceReset) {
|
|
115
|
+
console.log(theme_1.Theme.colors.info('\n🔄 --new-config flag detected, resetting project configuration...'));
|
|
116
|
+
// Delete the stale project.json so init creates a fresh one
|
|
117
|
+
await fs.unlink(configPath);
|
|
118
|
+
console.log(theme_1.Theme.colors.success('✅ Removed stale project.json'));
|
|
119
|
+
return { success: true, message: 'Stale config removed, proceeding with fresh init' };
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
console.log(theme_1.Theme.colors.warning('\n💡 This project folder appears to be copied from another location.'));
|
|
123
|
+
console.log(theme_1.Theme.colors.info(' The existing configuration points to a different path.'));
|
|
124
|
+
console.log(theme_1.Theme.colors.info('\n Options:'));
|
|
125
|
+
console.log(theme_1.Theme.colors.primary(' • Run "codeseeker init --new-config" to create fresh config for this location'));
|
|
126
|
+
console.log(theme_1.Theme.colors.primary(' • Run "codeseeker init --reset" for complete database cleanup'));
|
|
127
|
+
return {
|
|
128
|
+
success: false,
|
|
129
|
+
message: `Path mismatch: config points to "${config.projectPath}" but current directory is "${currentPath}". Use --new-config to reset.`
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// No mismatch, continue normally
|
|
134
|
+
return { success: true, message: 'Project path verified' };
|
|
135
|
+
}
|
|
136
|
+
catch (error) {
|
|
137
|
+
// No project.json exists or can't be read - this is fine for new projects
|
|
138
|
+
return { success: true, message: 'No existing config, will create new' };
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Perform complete database cleanup and reinitialization
|
|
143
|
+
* Uses storage abstraction for both embedded and server modes
|
|
144
|
+
*/
|
|
145
|
+
async handleCompleteReset() {
|
|
146
|
+
const projectPath = this.context.currentProject?.projectPath || process.cwd();
|
|
147
|
+
console.log(theme_1.Theme.colors.warning(`🗑️ Resetting CodeSeeker project: ${path.basename(projectPath)}`));
|
|
148
|
+
console.log(theme_1.Theme.colors.warning('⚠️ This will delete ALL project data'));
|
|
149
|
+
try {
|
|
150
|
+
console.log(theme_1.Theme.colors.info('\n🧹 Cleaning up existing data...'));
|
|
151
|
+
// Use storage abstraction for cleanup
|
|
152
|
+
if ((0, storage_1.isUsingEmbeddedStorage)()) {
|
|
153
|
+
// Embedded mode - use storage manager
|
|
154
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
155
|
+
const projectStore = storageManager.getProjectStore();
|
|
156
|
+
const vectorStore = storageManager.getVectorStore();
|
|
157
|
+
const graphStore = storageManager.getGraphStore();
|
|
158
|
+
// Find project by path
|
|
159
|
+
const project = await projectStore.findByPath(projectPath);
|
|
160
|
+
if (project) {
|
|
161
|
+
// Delete all related data
|
|
162
|
+
await vectorStore.deleteByProject(project.id);
|
|
163
|
+
await graphStore.deleteByProject(project.id);
|
|
164
|
+
await projectStore.delete(project.id);
|
|
165
|
+
console.log(theme_1.Theme.colors.success('✅ Deleted all embedded project data'));
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
console.log(theme_1.Theme.colors.muted(' No existing project found'));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
// Server mode - use PostgreSQL directly
|
|
173
|
+
const pool = new pg_1.Pool({
|
|
174
|
+
host: process.env.DB_HOST || 'localhost',
|
|
175
|
+
port: parseInt(process.env.DB_PORT || '5432'),
|
|
176
|
+
database: process.env.DB_NAME || 'codeseeker',
|
|
177
|
+
user: process.env.DB_USER || 'codeseeker',
|
|
178
|
+
password: process.env.DB_PASSWORD || 'codeseeker123'
|
|
179
|
+
});
|
|
180
|
+
const client = await pool.connect();
|
|
181
|
+
try {
|
|
182
|
+
// Delete all data related to this project path
|
|
183
|
+
await client.query('DELETE FROM semantic_search_embeddings WHERE project_id IN (SELECT id FROM projects WHERE project_path = $1)', [projectPath]);
|
|
184
|
+
await client.query('DELETE FROM analysis_results WHERE project_id IN (SELECT id FROM projects WHERE project_path = $1)', [projectPath]);
|
|
185
|
+
await client.query('DELETE FROM initialization_progress WHERE project_id IN (SELECT id FROM projects WHERE project_path = $1)', [projectPath]);
|
|
186
|
+
await client.query('DELETE FROM projects WHERE project_path = $1', [projectPath]);
|
|
187
|
+
console.log(theme_1.Theme.colors.success('✅ Deleted all PostgreSQL project data'));
|
|
188
|
+
}
|
|
189
|
+
finally {
|
|
190
|
+
client.release();
|
|
191
|
+
await pool.end();
|
|
192
|
+
}
|
|
193
|
+
// Clean up Neo4j knowledge graph data (server mode only)
|
|
194
|
+
console.log(theme_1.Theme.colors.info('\n🕸️ Cleaning up Neo4j knowledge graph...'));
|
|
195
|
+
await this.cleanupNeo4jData(projectPath);
|
|
196
|
+
}
|
|
197
|
+
// Apply fresh schema to ensure everything is correct
|
|
198
|
+
console.log(theme_1.Theme.colors.info('\n🔄 Applying fresh database schema...'));
|
|
199
|
+
await this.applyConsolidatedSchema();
|
|
200
|
+
// Initialize fresh project
|
|
201
|
+
console.log(theme_1.Theme.colors.info('\n🚀 Initializing fresh project...'));
|
|
202
|
+
const initResult = await this.handleInit();
|
|
203
|
+
if (initResult.success) {
|
|
204
|
+
console.log(theme_1.Theme.colors.success('\n🎉 Complete reset successful!'));
|
|
205
|
+
console.log(theme_1.Theme.colors.muted('💡 Next steps:'));
|
|
206
|
+
console.log(theme_1.Theme.colors.muted(' • Run "/search --index" to index your codebase'));
|
|
207
|
+
console.log(theme_1.Theme.colors.muted(' • Try "/analyze <question>" for AI assistance'));
|
|
208
|
+
}
|
|
209
|
+
return initResult;
|
|
210
|
+
}
|
|
211
|
+
catch (error) {
|
|
212
|
+
console.error(theme_1.Theme.colors.error(`❌ Reset failed: ${error instanceof Error ? error.message : 'Unknown error'}`));
|
|
213
|
+
return {
|
|
214
|
+
success: false,
|
|
215
|
+
message: `Reset failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Clean up Neo4j knowledge graph data for a project
|
|
221
|
+
*/
|
|
222
|
+
async cleanupNeo4jData(projectPath) {
|
|
223
|
+
try {
|
|
224
|
+
// For MVP, we'll use a simple approach - try to clean up if Neo4j is available
|
|
225
|
+
const neo4j = require('neo4j-driver');
|
|
226
|
+
const driver = neo4j.driver(process.env.NEO4J_URI || 'bolt://localhost:7687', neo4j.auth.basic(process.env.NEO4J_USER || 'neo4j', process.env.NEO4J_PASSWORD || 'codeseeker123'));
|
|
227
|
+
const session = driver.session();
|
|
228
|
+
try {
|
|
229
|
+
// Delete all nodes and relationships related to this project path
|
|
230
|
+
// This is a simplified approach for MVP
|
|
231
|
+
const result = await session.run(`
|
|
232
|
+
MATCH (n {projectPath: $projectPath})-[r*0..]->(m)
|
|
233
|
+
DETACH DELETE n, m
|
|
234
|
+
`, { projectPath });
|
|
235
|
+
// Also clean up any orphaned relationships
|
|
236
|
+
await session.run(`
|
|
237
|
+
MATCH ()-[r]-()
|
|
238
|
+
WHERE r.projectPath = $projectPath
|
|
239
|
+
DELETE r
|
|
240
|
+
`, { projectPath });
|
|
241
|
+
console.log(theme_1.Theme.colors.success('✅ Cleaned up Neo4j knowledge graph data'));
|
|
242
|
+
}
|
|
243
|
+
finally {
|
|
244
|
+
await session.close();
|
|
245
|
+
await driver.close();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
// Neo4j cleanup is not critical for MVP - warn but continue
|
|
250
|
+
console.log(theme_1.Theme.colors.warning(`⚠️ Neo4j cleanup skipped: ${error instanceof Error ? error.message : 'Connection failed'}`));
|
|
251
|
+
console.log(theme_1.Theme.colors.muted(' (Knowledge graph will be rebuilt on next analysis)'));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Initialize a CodeSeeker project
|
|
256
|
+
*/
|
|
257
|
+
async handleInit(skipIndexing = false) {
|
|
258
|
+
try {
|
|
259
|
+
// Use CODESEEKER_USER_CWD (set at CLI startup before chdir) to get the actual user's directory
|
|
260
|
+
const projectPath = process.env.CODESEEKER_USER_CWD || process.env.CODESEEKER_USER_CWD || process.cwd();
|
|
261
|
+
console.log(`📁 Project path: ${projectPath}`);
|
|
262
|
+
// Step 1: Initialize database schema
|
|
263
|
+
console.log(theme_1.Theme.colors.info('\n📊 Setting up database...'));
|
|
264
|
+
const dbResult = await this.initializeDatabase();
|
|
265
|
+
if (!dbResult.success) {
|
|
266
|
+
return dbResult;
|
|
267
|
+
}
|
|
268
|
+
// Step 2: Create or update project in database
|
|
269
|
+
console.log(theme_1.Theme.colors.info('\n📋 Registering project...'));
|
|
270
|
+
const projectResult = await this.initializeProject(projectPath);
|
|
271
|
+
if (!projectResult.success) {
|
|
272
|
+
return projectResult;
|
|
273
|
+
}
|
|
274
|
+
// Step 3: Index codebase for semantic search (unless --quick flag is used)
|
|
275
|
+
if (!skipIndexing) {
|
|
276
|
+
console.log(theme_1.Theme.colors.info('\n🔍 Indexing codebase for semantic search...'));
|
|
277
|
+
try {
|
|
278
|
+
const indexingResult = await this.indexCodebase(projectResult.data.projectId, projectPath);
|
|
279
|
+
if (indexingResult.success) {
|
|
280
|
+
console.log(theme_1.Theme.colors.success(`✅ Indexed ${indexingResult.data.filesProcessed} files, ${indexingResult.data.segmentsCreated} code segments`));
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
console.log(theme_1.Theme.colors.warning(`⚠️ Indexing failed: ${indexingResult.message}`));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
console.log(theme_1.Theme.colors.warning(`⚠️ Indexing skipped: ${error instanceof Error ? error.message : 'Unknown error'}`));
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
console.log(theme_1.Theme.colors.info('\n⚡ Skipping indexing (--quick mode)'));
|
|
292
|
+
console.log(theme_1.Theme.colors.muted(' Run "search --index" later to enable semantic search'));
|
|
293
|
+
}
|
|
294
|
+
// Step 3.5: Build initial knowledge graph
|
|
295
|
+
console.log(theme_1.Theme.colors.info('\n🕸️ Building knowledge graph...'));
|
|
296
|
+
try {
|
|
297
|
+
await this.buildInitialKnowledgeGraph(projectPath, projectResult.data.projectId);
|
|
298
|
+
console.log(theme_1.Theme.colors.success('✅ Knowledge graph created with triads'));
|
|
299
|
+
}
|
|
300
|
+
catch (error) {
|
|
301
|
+
console.log(theme_1.Theme.colors.warning(`⚠️ Knowledge graph creation skipped: ${error instanceof Error ? error.message : 'Unknown error'}`));
|
|
302
|
+
}
|
|
303
|
+
// Step 3.6: Generate coding standards (if project is indexed)
|
|
304
|
+
if (!skipIndexing) {
|
|
305
|
+
console.log(theme_1.Theme.colors.info('\n📐 Generating coding standards...'));
|
|
306
|
+
try {
|
|
307
|
+
await this.generateCodingStandards(projectResult.data.projectId, projectPath);
|
|
308
|
+
}
|
|
309
|
+
catch (error) {
|
|
310
|
+
console.log(theme_1.Theme.colors.warning(`⚠️ Coding standards generation skipped: ${error instanceof Error ? error.message : 'Unknown error'}`));
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
// Step 4: Create CODESEEKER.md if it doesn't exist
|
|
314
|
+
console.log(theme_1.Theme.colors.info('\n📝 Setting up project instructions...'));
|
|
315
|
+
await this.createInstructionsFile(projectPath);
|
|
316
|
+
// Step 5: Add CodeSeeker MCP guidance to all agent instruction files
|
|
317
|
+
// (CLAUDE.md, AGENTS.md, .cursorrules, COPILOT.md, GEMINI.md, GROK.md, etc.)
|
|
318
|
+
console.log(theme_1.Theme.colors.info('\n🤖 Configuring AI agent instruction files...'));
|
|
319
|
+
await this.updateAgentInstructionFiles(projectPath);
|
|
320
|
+
console.log(theme_1.Theme.colors.success('\n🎉 CodeSeeker project initialized successfully!'));
|
|
321
|
+
if (!skipIndexing) {
|
|
322
|
+
console.log(theme_1.Theme.colors.muted('\n💡 Ready to use:'));
|
|
323
|
+
console.log(theme_1.Theme.colors.muted(' • Ask questions: "what is this project about?"'));
|
|
324
|
+
console.log(theme_1.Theme.colors.muted(' • Analyze code: "show me all the classes"'));
|
|
325
|
+
console.log(theme_1.Theme.colors.muted(' • Request changes: "add authentication to the API"'));
|
|
326
|
+
console.log(theme_1.Theme.colors.muted(' • Run "sync" to update after manual code changes'));
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
console.log(theme_1.Theme.colors.muted('\n💡 Next steps:'));
|
|
330
|
+
console.log(theme_1.Theme.colors.muted(' • Run "search --index" to enable semantic search'));
|
|
331
|
+
console.log(theme_1.Theme.colors.muted(' • Then try: "what is this project about?"'));
|
|
332
|
+
}
|
|
333
|
+
return {
|
|
334
|
+
success: true,
|
|
335
|
+
message: 'Project initialized successfully',
|
|
336
|
+
data: projectResult.data
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
catch (error) {
|
|
340
|
+
this.logger.error('Project initialization failed:', error);
|
|
341
|
+
return {
|
|
342
|
+
success: false,
|
|
343
|
+
message: `Initialization failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Setup system-wide configuration
|
|
349
|
+
*/
|
|
350
|
+
async handleSetup() {
|
|
351
|
+
console.log(theme_1.Theme.colors.primary('⚙️ Setting up CodeSeeker system configuration...'));
|
|
352
|
+
try {
|
|
353
|
+
// Initialize database schema
|
|
354
|
+
console.log(theme_1.Theme.colors.info('\n📊 Applying database schema...'));
|
|
355
|
+
const dbResult = await this.initializeDatabase();
|
|
356
|
+
if (!dbResult.success) {
|
|
357
|
+
return dbResult;
|
|
358
|
+
}
|
|
359
|
+
// Apply consolidated schema
|
|
360
|
+
console.log(theme_1.Theme.colors.info('\n🔄 Applying consolidated schema...'));
|
|
361
|
+
const schemaResult = await this.applyConsolidatedSchema();
|
|
362
|
+
if (!schemaResult.success) {
|
|
363
|
+
return schemaResult;
|
|
364
|
+
}
|
|
365
|
+
console.log(theme_1.Theme.colors.success('\n✅ System setup completed successfully!'));
|
|
366
|
+
console.log(theme_1.Theme.colors.muted('\n💡 Next steps:'));
|
|
367
|
+
console.log(theme_1.Theme.colors.muted(' • Run "codeseeker init" in your project directory'));
|
|
368
|
+
console.log(theme_1.Theme.colors.muted(' • Check database connections with "codeseeker status"'));
|
|
369
|
+
return {
|
|
370
|
+
success: true,
|
|
371
|
+
message: 'System setup completed successfully'
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
catch (error) {
|
|
375
|
+
this.logger.error('System setup failed:', error);
|
|
376
|
+
return {
|
|
377
|
+
success: false,
|
|
378
|
+
message: `Setup failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Initialize database connection and basic tables
|
|
384
|
+
*/
|
|
385
|
+
async initializeDatabase() {
|
|
386
|
+
try {
|
|
387
|
+
// In embedded mode, skip PostgreSQL entirely
|
|
388
|
+
if ((0, storage_1.isUsingEmbeddedStorage)()) {
|
|
389
|
+
// Just initialize the embedded storage manager
|
|
390
|
+
await (0, storage_1.getStorageManager)();
|
|
391
|
+
console.log(theme_1.Theme.colors.success('✅ Embedded storage initialized'));
|
|
392
|
+
return { success: true, message: 'Embedded storage initialized' };
|
|
393
|
+
}
|
|
394
|
+
// Server mode: Initialize the consolidated analysis repository (PostgreSQL)
|
|
395
|
+
await analysis_repository_consolidated_1.analysisRepository.initialize();
|
|
396
|
+
console.log(theme_1.Theme.colors.success('✅ Database connection established'));
|
|
397
|
+
// Test database connectivity (server mode only)
|
|
398
|
+
const pool = new pg_1.Pool({
|
|
399
|
+
host: process.env.DB_HOST || 'localhost',
|
|
400
|
+
port: parseInt(process.env.DB_PORT || '5432'),
|
|
401
|
+
database: process.env.DB_NAME || 'codeseeker',
|
|
402
|
+
user: process.env.DB_USER || 'codeseeker',
|
|
403
|
+
password: process.env.DB_PASSWORD || 'codeseeker123'
|
|
404
|
+
});
|
|
405
|
+
// Test connection
|
|
406
|
+
const client = await pool.connect();
|
|
407
|
+
await client.query('SELECT 1');
|
|
408
|
+
client.release();
|
|
409
|
+
await pool.end();
|
|
410
|
+
console.log(theme_1.Theme.colors.success('✅ PostgreSQL connection verified'));
|
|
411
|
+
return { success: true, message: 'Database initialized' };
|
|
412
|
+
}
|
|
413
|
+
catch (error) {
|
|
414
|
+
this.logger.error('Database initialization failed:', error);
|
|
415
|
+
console.log(theme_1.Theme.colors.error('❌ Database initialization failed'));
|
|
416
|
+
console.log(theme_1.Theme.colors.warning('💡 Please ensure PostgreSQL is running and credentials are correct'));
|
|
417
|
+
console.log(theme_1.Theme.colors.muted(' Check your .env file or environment variables'));
|
|
418
|
+
return {
|
|
419
|
+
success: false,
|
|
420
|
+
message: `Database initialization failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Build initial knowledge graph for the project
|
|
426
|
+
* Uses embedded Graphology store by default, Neo4j if in server mode
|
|
427
|
+
*/
|
|
428
|
+
async buildInitialKnowledgeGraph(projectPath, projectId) {
|
|
429
|
+
try {
|
|
430
|
+
// Get the appropriate graph store based on storage mode
|
|
431
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
432
|
+
const graphStore = storageManager.getGraphStore();
|
|
433
|
+
// First, delete any existing data for this project to ensure clean state
|
|
434
|
+
await graphStore.deleteByProject(projectId);
|
|
435
|
+
// Scan for code files and create basic nodes and relationships
|
|
436
|
+
const { glob } = require('fast-glob');
|
|
437
|
+
const files = await glob(['**/*.{ts,js,jsx,tsx}'], {
|
|
438
|
+
cwd: projectPath,
|
|
439
|
+
ignore: ['**/node_modules/**', '**/dist/**', '**/build/**']
|
|
440
|
+
});
|
|
441
|
+
const nodesToCreate = [];
|
|
442
|
+
const edgesToCreate = [];
|
|
443
|
+
// Create a project "file" node to represent the project root
|
|
444
|
+
const projectNodeId = `project-${projectId}`;
|
|
445
|
+
nodesToCreate.push({
|
|
446
|
+
id: projectNodeId,
|
|
447
|
+
type: 'file',
|
|
448
|
+
name: path.basename(projectPath),
|
|
449
|
+
filePath: projectPath,
|
|
450
|
+
projectId,
|
|
451
|
+
properties: {
|
|
452
|
+
isProjectRoot: true,
|
|
453
|
+
createdAt: new Date().toISOString()
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
for (const file of files.slice(0, 20)) { // Limit to 20 files for performance
|
|
457
|
+
const filePath = path.join(projectPath, file);
|
|
458
|
+
const content = await fs.readFile(filePath, 'utf-8');
|
|
459
|
+
// Create file node
|
|
460
|
+
const fileNodeId = `file-${projectId}-${file}`;
|
|
461
|
+
nodesToCreate.push({
|
|
462
|
+
id: fileNodeId,
|
|
463
|
+
type: 'file',
|
|
464
|
+
name: path.basename(file),
|
|
465
|
+
filePath: filePath,
|
|
466
|
+
projectId,
|
|
467
|
+
properties: {
|
|
468
|
+
relativePath: file
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
// Create edge from project to file
|
|
472
|
+
edgesToCreate.push({
|
|
473
|
+
id: `contains-${projectNodeId}-${fileNodeId}`,
|
|
474
|
+
source: projectNodeId,
|
|
475
|
+
target: fileNodeId,
|
|
476
|
+
type: 'contains'
|
|
477
|
+
});
|
|
478
|
+
// Extract basic code elements (classes, functions)
|
|
479
|
+
const classMatches = content.match(/class\s+(\w+)/g) || [];
|
|
480
|
+
const functionMatches = content.match(/(?:function\s+(\w+)|(\w+)\s*=\s*(?:async\s+)?(?:\(.*?\)|[^=]*?)\s*=>)/g) || [];
|
|
481
|
+
for (const classMatch of classMatches) {
|
|
482
|
+
const className = classMatch.match(/class\s+(\w+)/)?.[1];
|
|
483
|
+
if (className) {
|
|
484
|
+
const classNodeId = `class-${projectId}-${file}-${className}`;
|
|
485
|
+
nodesToCreate.push({
|
|
486
|
+
id: classNodeId,
|
|
487
|
+
type: 'class',
|
|
488
|
+
name: className,
|
|
489
|
+
filePath: filePath,
|
|
490
|
+
projectId,
|
|
491
|
+
properties: {
|
|
492
|
+
relativePath: file
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
// Create edge from file to class
|
|
496
|
+
edgesToCreate.push({
|
|
497
|
+
id: `defines-${fileNodeId}-${classNodeId}`,
|
|
498
|
+
source: fileNodeId,
|
|
499
|
+
target: classNodeId,
|
|
500
|
+
type: 'contains'
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
for (const funcMatch of functionMatches.slice(0, 5)) { // Limit functions per file
|
|
505
|
+
const functionName = funcMatch.match(/function\s+(\w+)/)?.[1] ||
|
|
506
|
+
funcMatch.match(/(\w+)\s*=/)?.[1];
|
|
507
|
+
if (functionName && functionName.length > 1) {
|
|
508
|
+
const funcNodeId = `function-${projectId}-${file}-${functionName}`;
|
|
509
|
+
nodesToCreate.push({
|
|
510
|
+
id: funcNodeId,
|
|
511
|
+
type: 'function',
|
|
512
|
+
name: functionName,
|
|
513
|
+
filePath: filePath,
|
|
514
|
+
projectId,
|
|
515
|
+
properties: {
|
|
516
|
+
relativePath: file
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
// Create edge from file to function
|
|
520
|
+
edgesToCreate.push({
|
|
521
|
+
id: `defines-${fileNodeId}-${funcNodeId}`,
|
|
522
|
+
source: fileNodeId,
|
|
523
|
+
target: funcNodeId,
|
|
524
|
+
type: 'contains'
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
// Bulk insert all nodes and edges
|
|
530
|
+
if (nodesToCreate.length > 0) {
|
|
531
|
+
await graphStore.upsertNodes(nodesToCreate);
|
|
532
|
+
}
|
|
533
|
+
if (edgesToCreate.length > 0) {
|
|
534
|
+
await graphStore.upsertEdges(edgesToCreate);
|
|
535
|
+
}
|
|
536
|
+
// Flush to persist to disk
|
|
537
|
+
await graphStore.flush();
|
|
538
|
+
const nodeCount = nodesToCreate.length;
|
|
539
|
+
const relationshipCount = edgesToCreate.length;
|
|
540
|
+
console.log(theme_1.Theme.colors.success(` 📊 Created ${nodeCount} nodes and ${relationshipCount} relationships`));
|
|
541
|
+
}
|
|
542
|
+
catch (error) {
|
|
543
|
+
// Re-throw to be handled by caller
|
|
544
|
+
throw error;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Generate coding standards file from detected patterns
|
|
549
|
+
*/
|
|
550
|
+
async generateCodingStandards(projectId, projectPath) {
|
|
551
|
+
try {
|
|
552
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
553
|
+
const vectorStore = storageManager.getVectorStore();
|
|
554
|
+
const generator = new coding_standards_generator_1.CodingStandardsGenerator(vectorStore);
|
|
555
|
+
await generator.generateStandards(projectId, projectPath);
|
|
556
|
+
console.log(theme_1.Theme.colors.success(' ✓ Coding standards file created'));
|
|
557
|
+
}
|
|
558
|
+
catch (error) {
|
|
559
|
+
// Re-throw to be handled by caller
|
|
560
|
+
throw error;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* Apply the consolidated database schema
|
|
565
|
+
* Uses embedded storage by default (no Docker required)
|
|
566
|
+
*/
|
|
567
|
+
async applyConsolidatedSchema() {
|
|
568
|
+
try {
|
|
569
|
+
// Check if we're using embedded storage (default, no Docker needed)
|
|
570
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
571
|
+
if ((0, storage_1.isUsingEmbeddedStorage)()) {
|
|
572
|
+
// Embedded mode - SQLite + Graphology + LRU-cache
|
|
573
|
+
// Schema is automatically created by the storage providers
|
|
574
|
+
const status = storageManager.getStatus();
|
|
575
|
+
console.log(theme_1.Theme.colors.success('📦 Using embedded storage (no Docker required)'));
|
|
576
|
+
console.log(theme_1.Theme.colors.muted(` Data directory: ${status.dataDir}`));
|
|
577
|
+
console.log(theme_1.Theme.colors.muted(` Vector store: SQLite + FTS5`));
|
|
578
|
+
console.log(theme_1.Theme.colors.muted(` Graph store: Graphology (in-memory + JSON)`));
|
|
579
|
+
console.log(theme_1.Theme.colors.muted(` Cache: LRU-cache (in-memory + JSON)`));
|
|
580
|
+
return { success: true, message: 'Embedded storage ready' };
|
|
581
|
+
}
|
|
582
|
+
// Server mode - use PostgreSQL (legacy behavior)
|
|
583
|
+
console.log(theme_1.Theme.colors.info('🔌 Using server storage mode (PostgreSQL + Neo4j + Redis)'));
|
|
584
|
+
const pool = new pg_1.Pool({
|
|
585
|
+
host: process.env.DB_HOST || 'localhost',
|
|
586
|
+
port: parseInt(process.env.DB_PORT || '5432'),
|
|
587
|
+
database: process.env.DB_NAME || 'codeseeker',
|
|
588
|
+
user: process.env.DB_USER || 'codeseeker',
|
|
589
|
+
password: process.env.DB_PASSWORD || 'codeseeker123'
|
|
590
|
+
});
|
|
591
|
+
// Check if consolidated schema is properly applied
|
|
592
|
+
const client = await pool.connect();
|
|
593
|
+
try {
|
|
594
|
+
// Check if semantic_search_embeddings has the content_type column
|
|
595
|
+
const embeddingsSchemaCheck = await client.query(`
|
|
596
|
+
SELECT column_name FROM information_schema.columns
|
|
597
|
+
WHERE table_name = 'semantic_search_embeddings' AND column_name = 'content_type'
|
|
598
|
+
`);
|
|
599
|
+
if (embeddingsSchemaCheck.rows.length > 0) {
|
|
600
|
+
console.log(theme_1.Theme.colors.success('✅ Consolidated schema already applied correctly'));
|
|
601
|
+
return { success: true, message: 'Schema already up to date' };
|
|
602
|
+
}
|
|
603
|
+
console.log(theme_1.Theme.colors.warning('⚠️ Semantic search table needs schema update...'));
|
|
604
|
+
// Drop and recreate the semantic_search_embeddings table to ensure correct schema
|
|
605
|
+
console.log(theme_1.Theme.colors.info('🗑️ Dropping old semantic_search_embeddings table...'));
|
|
606
|
+
await client.query('DROP TABLE IF EXISTS semantic_search_embeddings CASCADE');
|
|
607
|
+
// Read and apply the consolidated schema
|
|
608
|
+
const schemaPath = path.join(process.env.CODESEEKER_PROJECT_ROOT || process.env.CODESEEKER_PROJECT_ROOT || __dirname, '..', '..', '..', 'database', 'schema.consolidated.sql');
|
|
609
|
+
try {
|
|
610
|
+
const schemaSQL = await fs.readFile(schemaPath, 'utf8');
|
|
611
|
+
await client.query(schemaSQL);
|
|
612
|
+
console.log(theme_1.Theme.colors.success('✅ Consolidated schema applied successfully'));
|
|
613
|
+
}
|
|
614
|
+
catch (fileError) {
|
|
615
|
+
console.log(theme_1.Theme.colors.warning('⚠️ Schema file not found, creating basic tables manually'));
|
|
616
|
+
await this.createBasicTables(client);
|
|
617
|
+
}
|
|
618
|
+
return { success: true, message: 'Schema applied successfully' };
|
|
619
|
+
}
|
|
620
|
+
finally {
|
|
621
|
+
client.release();
|
|
622
|
+
await pool.end();
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
catch (error) {
|
|
626
|
+
// If server connection fails, fall back to embedded mode
|
|
627
|
+
if (String(error).includes('ECONNREFUSED') || String(error).includes('connection')) {
|
|
628
|
+
console.log(theme_1.Theme.colors.warning('⚠️ Server databases not available, using embedded storage'));
|
|
629
|
+
try {
|
|
630
|
+
// Force embedded mode
|
|
631
|
+
process.env.CODESEEKER_STORAGE_MODE = 'embedded';
|
|
632
|
+
const storageManager = await (0, storage_1.getStorageManager)({ mode: 'embedded' });
|
|
633
|
+
const status = storageManager.getStatus();
|
|
634
|
+
console.log(theme_1.Theme.colors.success('📦 Embedded storage initialized'));
|
|
635
|
+
console.log(theme_1.Theme.colors.muted(` Data directory: ${status.dataDir}`));
|
|
636
|
+
return { success: true, message: 'Using embedded storage (fallback)' };
|
|
637
|
+
}
|
|
638
|
+
catch (embeddedError) {
|
|
639
|
+
this.logger.error('Embedded storage fallback failed:', embeddedError);
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
this.logger.error('Schema application failed:', error);
|
|
643
|
+
return {
|
|
644
|
+
success: false,
|
|
645
|
+
message: `Schema application failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* Create basic tables if schema file is not available
|
|
651
|
+
*/
|
|
652
|
+
async createBasicTables(client) {
|
|
653
|
+
// Create essential tables manually
|
|
654
|
+
const basicSchema = `
|
|
655
|
+
-- Enable extensions
|
|
656
|
+
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
657
|
+
CREATE EXTENSION IF NOT EXISTS vector;
|
|
658
|
+
|
|
659
|
+
-- Projects table
|
|
660
|
+
CREATE TABLE IF NOT EXISTS projects (
|
|
661
|
+
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
662
|
+
project_path TEXT UNIQUE NOT NULL,
|
|
663
|
+
project_name TEXT NOT NULL,
|
|
664
|
+
project_type TEXT DEFAULT 'unknown',
|
|
665
|
+
languages JSONB DEFAULT '[]'::jsonb,
|
|
666
|
+
frameworks JSONB DEFAULT '[]'::jsonb,
|
|
667
|
+
total_files INTEGER DEFAULT 0,
|
|
668
|
+
total_lines INTEGER DEFAULT 0,
|
|
669
|
+
status TEXT DEFAULT 'active',
|
|
670
|
+
metadata JSONB DEFAULT '{}'::jsonb,
|
|
671
|
+
created_at TIMESTAMPTZ DEFAULT NOW(),
|
|
672
|
+
updated_at TIMESTAMPTZ DEFAULT NOW()
|
|
673
|
+
);
|
|
674
|
+
|
|
675
|
+
-- Analysis results table
|
|
676
|
+
CREATE TABLE IF NOT EXISTS analysis_results (
|
|
677
|
+
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
678
|
+
project_id UUID REFERENCES projects(id) ON DELETE CASCADE,
|
|
679
|
+
file_path TEXT NOT NULL,
|
|
680
|
+
file_hash TEXT NOT NULL,
|
|
681
|
+
analysis_type TEXT NOT NULL,
|
|
682
|
+
analysis_subtype TEXT,
|
|
683
|
+
analysis_result JSONB NOT NULL,
|
|
684
|
+
confidence_score DECIMAL(3,2),
|
|
685
|
+
severity TEXT DEFAULT 'info',
|
|
686
|
+
status TEXT DEFAULT 'detected',
|
|
687
|
+
metadata JSONB DEFAULT '{}'::jsonb,
|
|
688
|
+
tags JSONB DEFAULT '[]'::jsonb,
|
|
689
|
+
created_at TIMESTAMPTZ DEFAULT NOW(),
|
|
690
|
+
updated_at TIMESTAMPTZ DEFAULT NOW()
|
|
691
|
+
);
|
|
692
|
+
|
|
693
|
+
-- Semantic search embeddings table
|
|
694
|
+
CREATE TABLE IF NOT EXISTS semantic_search_embeddings (
|
|
695
|
+
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
696
|
+
project_id UUID REFERENCES projects(id) ON DELETE CASCADE,
|
|
697
|
+
file_path TEXT NOT NULL,
|
|
698
|
+
chunk_index INTEGER DEFAULT 0,
|
|
699
|
+
content_type TEXT DEFAULT 'code',
|
|
700
|
+
content_text TEXT NOT NULL,
|
|
701
|
+
content_hash TEXT NOT NULL,
|
|
702
|
+
embedding VECTOR(384),
|
|
703
|
+
metadata JSONB DEFAULT '{}'::jsonb,
|
|
704
|
+
created_at TIMESTAMPTZ DEFAULT NOW(),
|
|
705
|
+
updated_at TIMESTAMPTZ DEFAULT NOW(),
|
|
706
|
+
UNIQUE(project_id, file_path, chunk_index, content_hash)
|
|
707
|
+
);
|
|
708
|
+
|
|
709
|
+
-- Create indexes
|
|
710
|
+
CREATE INDEX IF NOT EXISTS idx_projects_path ON projects(project_path);
|
|
711
|
+
CREATE INDEX IF NOT EXISTS idx_analysis_project_type ON analysis_results(project_id, analysis_type);
|
|
712
|
+
CREATE INDEX IF NOT EXISTS idx_semantic_embeddings_project ON semantic_search_embeddings(project_id);
|
|
713
|
+
`;
|
|
714
|
+
await client.query(basicSchema);
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Initialize project record in database
|
|
718
|
+
* Uses embedded storage by default, PostgreSQL in server mode
|
|
719
|
+
*/
|
|
720
|
+
async initializeProject(projectPath) {
|
|
721
|
+
try {
|
|
722
|
+
const projectName = path.basename(projectPath);
|
|
723
|
+
// Generate proper UUID for project ID
|
|
724
|
+
const crypto = await Promise.resolve().then(() => __importStar(require('crypto')));
|
|
725
|
+
const projectId = crypto.randomUUID();
|
|
726
|
+
// Check if we're using embedded storage (default)
|
|
727
|
+
if ((0, storage_1.isUsingEmbeddedStorage)()) {
|
|
728
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
729
|
+
const projectStore = storageManager.getProjectStore();
|
|
730
|
+
// Upsert project in embedded storage
|
|
731
|
+
const project = await projectStore.upsert({
|
|
732
|
+
id: projectId,
|
|
733
|
+
name: projectName,
|
|
734
|
+
path: projectPath,
|
|
735
|
+
metadata: {
|
|
736
|
+
initialized_at: new Date().toISOString(),
|
|
737
|
+
cli_version: '2.0.0'
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
console.log(theme_1.Theme.colors.success(`✅ Project registered: ${project.name} (${project.id})`));
|
|
741
|
+
// Update local config file
|
|
742
|
+
await this.updateLocalProjectConfig(projectPath, {
|
|
743
|
+
projectId: project.id,
|
|
744
|
+
projectName: project.name,
|
|
745
|
+
projectPath,
|
|
746
|
+
createdAt: new Date().toISOString(),
|
|
747
|
+
languages: ['javascript'],
|
|
748
|
+
primaryLanguage: 'javascript',
|
|
749
|
+
installedParsers: []
|
|
750
|
+
});
|
|
751
|
+
return {
|
|
752
|
+
success: true,
|
|
753
|
+
message: 'Project registered successfully',
|
|
754
|
+
data: { projectId: project.id, projectName: project.name, projectPath }
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
// Server mode - use PostgreSQL
|
|
758
|
+
const pool = new pg_1.Pool({
|
|
759
|
+
host: process.env.DB_HOST || 'localhost',
|
|
760
|
+
port: parseInt(process.env.DB_PORT || '5432'),
|
|
761
|
+
database: process.env.DB_NAME || 'codeseeker',
|
|
762
|
+
user: process.env.DB_USER || 'codeseeker',
|
|
763
|
+
password: process.env.DB_PASSWORD || 'codeseeker123'
|
|
764
|
+
});
|
|
765
|
+
const client = await pool.connect();
|
|
766
|
+
try {
|
|
767
|
+
// Insert or update project
|
|
768
|
+
const result = await client.query(`
|
|
769
|
+
INSERT INTO projects (id, project_path, project_name, status, metadata)
|
|
770
|
+
VALUES ($1, $2, $3, 'active', $4)
|
|
771
|
+
ON CONFLICT (project_path) DO UPDATE SET
|
|
772
|
+
project_name = EXCLUDED.project_name,
|
|
773
|
+
status = 'active',
|
|
774
|
+
updated_at = NOW()
|
|
775
|
+
RETURNING id, project_name, project_path
|
|
776
|
+
`, [projectId, projectPath, projectName, JSON.stringify({
|
|
777
|
+
initialized_at: new Date().toISOString(),
|
|
778
|
+
cli_version: '2.0.0'
|
|
779
|
+
})]);
|
|
780
|
+
// Use the actual ID from the database (could be existing or new)
|
|
781
|
+
const actualProjectId = result.rows[0].id;
|
|
782
|
+
const actualProjectName = result.rows[0].project_name;
|
|
783
|
+
console.log(theme_1.Theme.colors.success(`✅ Project registered: ${actualProjectName} (${actualProjectId})`));
|
|
784
|
+
// Update local config file with the actual project ID from database
|
|
785
|
+
await this.updateLocalProjectConfig(projectPath, {
|
|
786
|
+
projectId: actualProjectId,
|
|
787
|
+
projectName: actualProjectName,
|
|
788
|
+
projectPath,
|
|
789
|
+
createdAt: new Date().toISOString(),
|
|
790
|
+
languages: ['javascript'], // Default for now
|
|
791
|
+
primaryLanguage: 'javascript',
|
|
792
|
+
installedParsers: []
|
|
793
|
+
});
|
|
794
|
+
return {
|
|
795
|
+
success: true,
|
|
796
|
+
message: 'Project registered successfully',
|
|
797
|
+
data: { projectId: actualProjectId, projectName: actualProjectName, projectPath }
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
finally {
|
|
801
|
+
client.release();
|
|
802
|
+
await pool.end();
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
catch (error) {
|
|
806
|
+
this.logger.error('Project initialization failed:', error);
|
|
807
|
+
return {
|
|
808
|
+
success: false,
|
|
809
|
+
message: `Project initialization failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Generate initial embeddings for the project (basic implementation)
|
|
815
|
+
*/
|
|
816
|
+
async generateInitialEmbeddings(projectId, projectPath) {
|
|
817
|
+
try {
|
|
818
|
+
// For now, just create a placeholder to avoid blocking initialization
|
|
819
|
+
// The real embedding generation will happen when user runs "search --index"
|
|
820
|
+
console.log(theme_1.Theme.colors.muted(' Creating embedding placeholders...'));
|
|
821
|
+
return {
|
|
822
|
+
success: true,
|
|
823
|
+
message: 'Initial embeddings prepared',
|
|
824
|
+
data: { count: 0 }
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
catch (error) {
|
|
828
|
+
return {
|
|
829
|
+
success: false,
|
|
830
|
+
message: `Embedding generation failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Create CODESEEKER.md instructions file with detected platforms
|
|
836
|
+
*/
|
|
837
|
+
async createInstructionsFile(projectPath) {
|
|
838
|
+
const instructionsPath = path.join(projectPath, 'CODESEEKER.md');
|
|
839
|
+
try {
|
|
840
|
+
// Check if file already exists
|
|
841
|
+
await fs.access(instructionsPath);
|
|
842
|
+
console.log(theme_1.Theme.colors.success('✅ CODESEEKER.md already exists'));
|
|
843
|
+
// Even if file exists, try to append platform detection if not already present
|
|
844
|
+
const existingContent = await fs.readFile(instructionsPath, 'utf-8');
|
|
845
|
+
if (!existingContent.includes('## Detected Platforms')) {
|
|
846
|
+
await this.appendPlatformDetection(projectPath, instructionsPath, existingContent);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
catch {
|
|
850
|
+
// Create new instructions file with platform detection
|
|
851
|
+
console.log(theme_1.Theme.colors.info('🔍 Detecting platforms...'));
|
|
852
|
+
const platforms = await platform_detector_1.platformDetector.detectPlatforms(projectPath);
|
|
853
|
+
const platformsSection = platform_detector_1.platformDetector.formatPlatformsMarkdown(platforms);
|
|
854
|
+
if (platforms.length > 0) {
|
|
855
|
+
console.log(theme_1.Theme.colors.success(` Found ${platforms.length} platforms: ${platforms.map(p => p.name).join(', ')}`));
|
|
856
|
+
}
|
|
857
|
+
const defaultInstructions = `# CODESEEKER.md - ${path.basename(projectPath)}
|
|
858
|
+
|
|
859
|
+
This file provides instructions to CodeSeeker for analyzing and working with this project.
|
|
860
|
+
|
|
861
|
+
## Project Overview
|
|
862
|
+
|
|
863
|
+
**Project**: ${path.basename(projectPath)}
|
|
864
|
+
**Type**: api_service
|
|
865
|
+
**Description**: Your project description here
|
|
866
|
+
**Languages**: JavaScript, TypeScript
|
|
867
|
+
**Architecture**: Add your architecture pattern
|
|
868
|
+
**Testing Strategy**: Unit + Integration Testing
|
|
869
|
+
**Coding Standards**: ESLint/Prettier
|
|
870
|
+
|
|
871
|
+
${platformsSection}
|
|
872
|
+
## Development Guidelines
|
|
873
|
+
|
|
874
|
+
### Architecture Principles
|
|
875
|
+
- Follow SOLID principles consistently
|
|
876
|
+
- Use dependency injection patterns
|
|
877
|
+
- Maintain clear separation of concerns
|
|
878
|
+
|
|
879
|
+
### Code Quality Standards
|
|
880
|
+
- High Performance, High Reliability, Secure
|
|
881
|
+
- Comprehensive error handling
|
|
882
|
+
- Proper logging and monitoring
|
|
883
|
+
|
|
884
|
+
### Important Files and Patterns
|
|
885
|
+
- Add important file patterns here
|
|
886
|
+
- Document coding conventions
|
|
887
|
+
- List key dependencies and their purposes
|
|
888
|
+
|
|
889
|
+
## CodeSeeker Instructions
|
|
890
|
+
|
|
891
|
+
- Analyze code for SOLID principles violations
|
|
892
|
+
- Focus on maintainability and scalability
|
|
893
|
+
- Suggest improvements for performance and security
|
|
894
|
+
- Help with refactoring and code organization
|
|
895
|
+
|
|
896
|
+
Generated by CodeSeeker CLI v2.0.0
|
|
897
|
+
`;
|
|
898
|
+
await fs.writeFile(instructionsPath, defaultInstructions);
|
|
899
|
+
console.log(theme_1.Theme.colors.success('✅ Created CODESEEKER.md with platform detection'));
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Append platform detection to existing CODESEEKER.md
|
|
904
|
+
*/
|
|
905
|
+
async appendPlatformDetection(projectPath, instructionsPath, existingContent) {
|
|
906
|
+
try {
|
|
907
|
+
console.log(theme_1.Theme.colors.info('🔍 Detecting platforms for existing CODESEEKER.md...'));
|
|
908
|
+
const platforms = await platform_detector_1.platformDetector.detectPlatforms(projectPath);
|
|
909
|
+
if (platforms.length === 0) {
|
|
910
|
+
return;
|
|
911
|
+
}
|
|
912
|
+
console.log(theme_1.Theme.colors.success(` Found ${platforms.length} platforms: ${platforms.map(p => p.name).join(', ')}`));
|
|
913
|
+
const platformsSection = platform_detector_1.platformDetector.formatPlatformsMarkdown(platforms);
|
|
914
|
+
// Insert before "## Development Guidelines" or at the end if not found
|
|
915
|
+
let newContent;
|
|
916
|
+
if (existingContent.includes('## Development Guidelines')) {
|
|
917
|
+
newContent = existingContent.replace('## Development Guidelines', `${platformsSection}\n## Development Guidelines`);
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
newContent = existingContent + '\n\n' + platformsSection;
|
|
921
|
+
}
|
|
922
|
+
await fs.writeFile(instructionsPath, newContent);
|
|
923
|
+
console.log(theme_1.Theme.colors.success('✅ Added platform detection to CODESEEKER.md'));
|
|
924
|
+
}
|
|
925
|
+
catch (error) {
|
|
926
|
+
// Don't fail the entire init for this
|
|
927
|
+
console.log(theme_1.Theme.colors.warning(`⚠️ Could not append platforms: ${error instanceof Error ? error.message : 'Unknown error'}`));
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Unified CodeSeeker MCP guidance section for ALL agent instruction files
|
|
932
|
+
* Used for CLAUDE.md, AGENTS.md, .cursorrules, COPILOT.md, GEMINI.md, GROK.md, etc.
|
|
933
|
+
* This tells AI assistants to prefer CodeSeeker MCP tools over grep/glob
|
|
934
|
+
*/
|
|
935
|
+
CODESEEKER_MCP_GUIDANCE = `
|
|
936
|
+
## CodeSeeker MCP Tools (Preferred over grep/glob)
|
|
937
|
+
|
|
938
|
+
This project is indexed with CodeSeeker for semantic code search.
|
|
939
|
+
|
|
940
|
+
**IMPORTANT: Use CodeSeeker MCP tools instead of grep/glob for code discovery:**
|
|
941
|
+
|
|
942
|
+
| Task | Use This | Not This |
|
|
943
|
+
|------|----------|----------|
|
|
944
|
+
| Find code by meaning | \`search_code("authentication logic")\` | \`grep -r "auth"\` |
|
|
945
|
+
| Search + read files | \`find_and_read("error handling")\` | \`grep\` then \`cat\` |
|
|
946
|
+
| Show dependencies | \`get_code_relationships({filepath})\` | Manual file reading |
|
|
947
|
+
| Find patterns | \`get_coding_standards({project})\` | Searching manually |
|
|
948
|
+
|
|
949
|
+
**When to use grep/glob instead:**
|
|
950
|
+
- Exact literal string matches (e.g., specific error codes, UUIDs)
|
|
951
|
+
- Regex pattern matching (e.g., \`grep -E "v[0-9]+\\.[0-9]+"\`)
|
|
952
|
+
- You already know the exact file path
|
|
953
|
+
|
|
954
|
+
**Examples:**
|
|
955
|
+
- ❌ \`grep -r "error handling" src/\` → finds literal text only
|
|
956
|
+
- ✅ \`search_code("how errors are handled")\` → finds try-catch, error responses, validation
|
|
957
|
+
- ❌ \`grep -r "auth" && cat file.ts\` → two steps, text-only matching
|
|
958
|
+
- ✅ \`find_and_read("authentication flow")\` → one step, semantic search + file content
|
|
959
|
+
|
|
960
|
+
**Available CodeSeeker MCP tools:**
|
|
961
|
+
- \`search_code(query)\` - Semantic search across all indexed files
|
|
962
|
+
- \`find_and_read(query)\` - Search and read matching files in one call
|
|
963
|
+
- \`get_code_relationships({filepath})\` - Show imports, exports, calls, dependencies
|
|
964
|
+
- \`get_file_context({filepath})\` - Read file with related code context
|
|
965
|
+
- \`get_coding_standards({project})\` - Show detected coding patterns
|
|
966
|
+
- \`index_project({path})\` - Index/reindex a project
|
|
967
|
+
- \`notify_file_changes({changes})\` - Update index after file changes
|
|
968
|
+
|
|
969
|
+
`;
|
|
970
|
+
/**
|
|
971
|
+
* Common agent instruction files to check and update with CodeSeeker MCP guidance
|
|
972
|
+
* These are files that AI tools (Claude, Cursor, Copilot, Gemini, Grok, etc.) use for instructions
|
|
973
|
+
* All agents get the same unified CODESEEKER_MCP_GUIDANCE template
|
|
974
|
+
*/
|
|
975
|
+
AGENT_INSTRUCTION_FILES = [
|
|
976
|
+
// Claude Code
|
|
977
|
+
'CLAUDE.md',
|
|
978
|
+
// Generic AI agent instructions
|
|
979
|
+
'AGENTS.md',
|
|
980
|
+
'.agents/AGENTS.md',
|
|
981
|
+
'AI_INSTRUCTIONS.md',
|
|
982
|
+
'.ai/instructions.md',
|
|
983
|
+
// Cursor
|
|
984
|
+
'.cursor/rules',
|
|
985
|
+
'.cursorrules',
|
|
986
|
+
// GitHub Copilot
|
|
987
|
+
'COPILOT.md',
|
|
988
|
+
'.github/copilot-instructions.md',
|
|
989
|
+
// Windsurf
|
|
990
|
+
'WINDSURF.md',
|
|
991
|
+
'.windsurf/rules.md',
|
|
992
|
+
// Gemini / Google AI Studio
|
|
993
|
+
'GEMINI.md',
|
|
994
|
+
'.gemini/instructions.md',
|
|
995
|
+
// Grok / xAI
|
|
996
|
+
'GROK.md',
|
|
997
|
+
'.grok/instructions.md',
|
|
998
|
+
// Amazon Q / CodeWhisperer
|
|
999
|
+
'CODEWHISPERER.md',
|
|
1000
|
+
'.aws/q-instructions.md',
|
|
1001
|
+
// Codeium
|
|
1002
|
+
'CODEIUM.md',
|
|
1003
|
+
'.codeium/instructions.md',
|
|
1004
|
+
// Tabnine
|
|
1005
|
+
'TABNINE.md',
|
|
1006
|
+
'.tabnine/instructions.md',
|
|
1007
|
+
// Continue.dev
|
|
1008
|
+
'.continue/config.json', // Note: JSON format, may need different handling
|
|
1009
|
+
// Sourcegraph Cody
|
|
1010
|
+
'CODY.md',
|
|
1011
|
+
'.sourcegraph/cody-instructions.md',
|
|
1012
|
+
];
|
|
1013
|
+
/**
|
|
1014
|
+
* Update agent instruction files (AGENTS.md, .cursorrules, etc.) with CodeSeeker guidance
|
|
1015
|
+
* Only updates files that already exist - doesn't create new ones
|
|
1016
|
+
* Uses the same unified CODESEEKER_MCP_GUIDANCE as CLAUDE.md
|
|
1017
|
+
* If no files found, prompts user to create or specify one
|
|
1018
|
+
*/
|
|
1019
|
+
async updateAgentInstructionFiles(projectPath) {
|
|
1020
|
+
const marker = '## CodeSeeker MCP Tools';
|
|
1021
|
+
let updatedCount = 0;
|
|
1022
|
+
let alreadyHasGuidance = 0;
|
|
1023
|
+
for (const relativeFilePath of this.AGENT_INSTRUCTION_FILES) {
|
|
1024
|
+
// Skip JSON files - they require different handling
|
|
1025
|
+
if (relativeFilePath.endsWith('.json')) {
|
|
1026
|
+
continue;
|
|
1027
|
+
}
|
|
1028
|
+
const filePath = path.join(projectPath, relativeFilePath);
|
|
1029
|
+
try {
|
|
1030
|
+
// Check if file exists
|
|
1031
|
+
const existingContent = await fs.readFile(filePath, 'utf-8');
|
|
1032
|
+
// Skip if already has CodeSeeker guidance
|
|
1033
|
+
if (existingContent.includes(marker)) {
|
|
1034
|
+
console.log(theme_1.Theme.colors.muted(` ✓ ${relativeFilePath} already has CodeSeeker guidance`));
|
|
1035
|
+
alreadyHasGuidance++;
|
|
1036
|
+
continue;
|
|
1037
|
+
}
|
|
1038
|
+
// Append CodeSeeker guidance to the file (same guidance as CLAUDE.md)
|
|
1039
|
+
const newContent = existingContent.trimEnd() + '\n' + this.CODESEEKER_MCP_GUIDANCE;
|
|
1040
|
+
await fs.writeFile(filePath, newContent);
|
|
1041
|
+
console.log(theme_1.Theme.colors.success(` ✅ Added CodeSeeker guidance to ${relativeFilePath}`));
|
|
1042
|
+
updatedCount++;
|
|
1043
|
+
}
|
|
1044
|
+
catch {
|
|
1045
|
+
// File doesn't exist - that's fine, we only update existing files
|
|
1046
|
+
// Don't log anything to avoid noise
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
if (updatedCount === 0 && alreadyHasGuidance === 0) {
|
|
1050
|
+
// No agent instruction files found - provide guidance to user
|
|
1051
|
+
console.log(theme_1.Theme.colors.warning(' ⚠️ No AI agent instruction files found'));
|
|
1052
|
+
console.log(theme_1.Theme.colors.info('\n To enable CodeSeeker MCP tools in your AI assistant, create one of these files:'));
|
|
1053
|
+
console.log(theme_1.Theme.colors.muted(' • AGENTS.md - Generic AI agent instructions'));
|
|
1054
|
+
console.log(theme_1.Theme.colors.muted(' • .cursorrules - Cursor IDE rules'));
|
|
1055
|
+
console.log(theme_1.Theme.colors.muted(' • .github/copilot-instructions.md - GitHub Copilot'));
|
|
1056
|
+
console.log(theme_1.Theme.colors.muted(' • GEMINI.md - Google Gemini'));
|
|
1057
|
+
console.log(theme_1.Theme.colors.muted(' • GROK.md - xAI Grok'));
|
|
1058
|
+
console.log(theme_1.Theme.colors.muted(' • CODY.md - Sourcegraph Cody'));
|
|
1059
|
+
console.log(theme_1.Theme.colors.info('\n Then run "codeseeker init" again to add MCP tool guidance.'));
|
|
1060
|
+
console.log(theme_1.Theme.colors.info(' Or manually add the following to your AI instructions file:\n'));
|
|
1061
|
+
console.log(theme_1.Theme.colors.muted(this.CODESEEKER_MCP_GUIDANCE.trim()));
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Update local project configuration file
|
|
1066
|
+
*/
|
|
1067
|
+
async updateLocalProjectConfig(projectPath, config) {
|
|
1068
|
+
try {
|
|
1069
|
+
const fs = await Promise.resolve().then(() => __importStar(require('fs/promises')));
|
|
1070
|
+
const path = await Promise.resolve().then(() => __importStar(require('path')));
|
|
1071
|
+
const codeseekerDir = path.join(projectPath, '.codeseeker');
|
|
1072
|
+
const configPath = path.join(codeseekerDir, 'project.json');
|
|
1073
|
+
// Ensure .codeseeker directory exists
|
|
1074
|
+
try {
|
|
1075
|
+
await fs.mkdir(codeseekerDir, { recursive: true });
|
|
1076
|
+
}
|
|
1077
|
+
catch (error) {
|
|
1078
|
+
// Directory might already exist, ignore
|
|
1079
|
+
}
|
|
1080
|
+
// Write updated config
|
|
1081
|
+
await fs.writeFile(configPath, JSON.stringify(config, null, 2));
|
|
1082
|
+
console.log(theme_1.Theme.colors.info(`✅ Updated local project config: ${configPath}`));
|
|
1083
|
+
}
|
|
1084
|
+
catch (error) {
|
|
1085
|
+
this.logger.warn('Failed to update local project config:', error);
|
|
1086
|
+
// Don't fail the entire operation for this
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Index codebase for semantic search by delegating to search handler
|
|
1091
|
+
*/
|
|
1092
|
+
async indexCodebase(projectId, projectPath) {
|
|
1093
|
+
try {
|
|
1094
|
+
// Update context with the correct project ID before creating the search handler
|
|
1095
|
+
// This ensures the search handler uses the newly registered project ID
|
|
1096
|
+
const updatedContext = {
|
|
1097
|
+
...this.context,
|
|
1098
|
+
currentProject: {
|
|
1099
|
+
...this.context.currentProject,
|
|
1100
|
+
projectId: projectId,
|
|
1101
|
+
projectPath: projectPath
|
|
1102
|
+
}
|
|
1103
|
+
};
|
|
1104
|
+
// Create a search handler instance with updated context
|
|
1105
|
+
const searchHandler = new search_command_handler_1.SearchCommandHandler(updatedContext);
|
|
1106
|
+
// Call the indexing functionality (reuse existing search --index logic)
|
|
1107
|
+
const result = await searchHandler.handle('--index');
|
|
1108
|
+
if (result.success) {
|
|
1109
|
+
return {
|
|
1110
|
+
success: true,
|
|
1111
|
+
message: 'Codebase indexed successfully',
|
|
1112
|
+
data: {
|
|
1113
|
+
filesProcessed: result.data?.filesProcessed || 'unknown',
|
|
1114
|
+
segmentsCreated: result.data?.segmentsCreated || 'unknown'
|
|
1115
|
+
}
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
else {
|
|
1119
|
+
return {
|
|
1120
|
+
success: false,
|
|
1121
|
+
message: result.message || 'Indexing failed'
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
catch (error) {
|
|
1126
|
+
this.logger.error('Codebase indexing failed:', error);
|
|
1127
|
+
return {
|
|
1128
|
+
success: false,
|
|
1129
|
+
message: `Indexing failed: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
exports.SetupCommandHandler = SetupCommandHandler;
|
|
1135
|
+
//# sourceMappingURL=setup-command-handler.js.map
|