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,961 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Indexing Service for MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Provides reusable indexing logic for:
|
|
6
|
+
* - File indexing with chunking and embeddings
|
|
7
|
+
* - Knowledge graph building
|
|
8
|
+
* - Incremental updates
|
|
9
|
+
*
|
|
10
|
+
* This service reuses the same indexing logic as the CLI init command.
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.IndexingService = void 0;
|
|
47
|
+
const path = __importStar(require("path"));
|
|
48
|
+
const fs = __importStar(require("fs"));
|
|
49
|
+
const crypto = __importStar(require("crypto"));
|
|
50
|
+
const fast_glob_1 = require("fast-glob");
|
|
51
|
+
const storage_1 = require("../storage");
|
|
52
|
+
const embedding_service_1 = require("../cli/services/data/embedding/embedding-service");
|
|
53
|
+
const logger_1 = require("../utils/logger");
|
|
54
|
+
const csharp_parser_1 = require("../cli/services/data/semantic-graph/parsers/csharp-parser");
|
|
55
|
+
const go_parser_1 = require("../cli/services/data/semantic-graph/parsers/go-parser");
|
|
56
|
+
const python_parser_1 = require("../cli/services/data/semantic-graph/parsers/python-parser");
|
|
57
|
+
const java_parser_1 = require("../cli/services/data/semantic-graph/parsers/java-parser");
|
|
58
|
+
class IndexingService {
|
|
59
|
+
logger = logger_1.Logger.getInstance();
|
|
60
|
+
embeddingService;
|
|
61
|
+
// Language-specific parsers for proper AST extraction
|
|
62
|
+
parsers = {
|
|
63
|
+
csharp: new csharp_parser_1.CSharpParser(),
|
|
64
|
+
go: new go_parser_1.GoParser(),
|
|
65
|
+
python: new python_parser_1.PythonParser(),
|
|
66
|
+
java: new java_parser_1.JavaParser()
|
|
67
|
+
};
|
|
68
|
+
// Map file extensions to parser types
|
|
69
|
+
extensionToParser = {
|
|
70
|
+
'.cs': 'csharp',
|
|
71
|
+
'.go': 'go',
|
|
72
|
+
'.py': 'python',
|
|
73
|
+
'.java': 'java'
|
|
74
|
+
};
|
|
75
|
+
// Supported file extensions for indexing
|
|
76
|
+
SUPPORTED_EXTENSIONS = [
|
|
77
|
+
'.ts', '.tsx', '.js', '.jsx', '.mjs', '.cjs',
|
|
78
|
+
'.py', '.java', '.go', '.rs', '.rb', '.php',
|
|
79
|
+
'.c', '.cpp', '.h', '.hpp', '.cs',
|
|
80
|
+
'.json', '.yaml', '.yml', '.toml',
|
|
81
|
+
'.md', '.txt', '.rst',
|
|
82
|
+
];
|
|
83
|
+
// Directories to ignore (must match file-scanner-config.json)
|
|
84
|
+
IGNORE_DIRS = [
|
|
85
|
+
// Package managers / dependencies
|
|
86
|
+
'node_modules', 'vendor', 'packages', 'venv', 'virtualenv', '.venv',
|
|
87
|
+
// Version control
|
|
88
|
+
'.git', '.svn', '.hg',
|
|
89
|
+
// Build outputs
|
|
90
|
+
'dist', 'build', 'out', 'target', 'bin', 'obj',
|
|
91
|
+
// Caches
|
|
92
|
+
'.cache', 'tmp', 'temp', '__pycache__', '.pytest_cache', '.tox',
|
|
93
|
+
// Test outputs
|
|
94
|
+
'coverage', '.nyc_output', 'TestReports',
|
|
95
|
+
// IDE / Editor
|
|
96
|
+
'.idea', '.vscode', '.vs',
|
|
97
|
+
// Framework-specific
|
|
98
|
+
'.next', '.nuxt',
|
|
99
|
+
// Unity (critical - Library alone can have 35K+ files)
|
|
100
|
+
'Library', 'Temp', 'Logs', 'UserSettings', 'MemoryCaptures', 'Recordings', 'PackageCache',
|
|
101
|
+
// Other game engines / platforms
|
|
102
|
+
'Exec', 'DerivedData', 'Intermediate', 'Saved', 'Binaries'
|
|
103
|
+
];
|
|
104
|
+
constructor() {
|
|
105
|
+
this.embeddingService = new embedding_service_1.EmbeddingService({
|
|
106
|
+
provider: 'xenova',
|
|
107
|
+
model: 'Xenova/all-MiniLM-L6-v2'
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Index a project directory
|
|
112
|
+
* Creates vector embeddings and knowledge graph nodes/edges
|
|
113
|
+
*/
|
|
114
|
+
async indexProject(projectPath, projectId, onProgress) {
|
|
115
|
+
const startTime = Date.now();
|
|
116
|
+
const errors = [];
|
|
117
|
+
const progress = {
|
|
118
|
+
phase: 'scanning',
|
|
119
|
+
filesTotal: 0,
|
|
120
|
+
filesProcessed: 0,
|
|
121
|
+
chunksCreated: 0,
|
|
122
|
+
nodesCreated: 0,
|
|
123
|
+
edgesCreated: 0
|
|
124
|
+
};
|
|
125
|
+
try {
|
|
126
|
+
// Get storage manager
|
|
127
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
128
|
+
const vectorStore = storageManager.getVectorStore();
|
|
129
|
+
const graphStore = storageManager.getGraphStore();
|
|
130
|
+
// Phase 1: Scan for files with progress reporting
|
|
131
|
+
progress.phase = 'scanning';
|
|
132
|
+
progress.scanningStatus = { foldersScanned: 0, filesFound: 0, percentage: 0 };
|
|
133
|
+
onProgress?.(progress);
|
|
134
|
+
const files = await this.scanForFiles(projectPath, (scanStatus) => {
|
|
135
|
+
progress.scanningStatus = scanStatus;
|
|
136
|
+
onProgress?.(progress);
|
|
137
|
+
});
|
|
138
|
+
// Check file limits and generate warnings
|
|
139
|
+
const totalFiles = files.length;
|
|
140
|
+
progress.filesTotal = Math.min(totalFiles, this.FILE_LIMITS.maxFiles);
|
|
141
|
+
if (totalFiles > this.FILE_LIMITS.dbServerThreshold) {
|
|
142
|
+
progress.limitWarning = `⚠️ Large project detected: ${totalFiles.toLocaleString()} files found. ` +
|
|
143
|
+
`For projects with 100K+ files, we recommend using DB server mode (PostgreSQL + Neo4j) for optimal performance. ` +
|
|
144
|
+
`Run 'codeseeker config --storage=server' to switch. Currently indexing first ${this.FILE_LIMITS.maxFiles.toLocaleString()} files.`;
|
|
145
|
+
}
|
|
146
|
+
else if (totalFiles > this.FILE_LIMITS.maxFiles) {
|
|
147
|
+
progress.limitWarning = `ℹ️ Project has ${totalFiles.toLocaleString()} files. ` +
|
|
148
|
+
`Indexing first ${this.FILE_LIMITS.maxFiles.toLocaleString()} files. ` +
|
|
149
|
+
`To increase limits, edit .codeseeker/config.json or use DB server mode for very large projects.`;
|
|
150
|
+
}
|
|
151
|
+
onProgress?.(progress);
|
|
152
|
+
if (files.length === 0) {
|
|
153
|
+
return {
|
|
154
|
+
success: true,
|
|
155
|
+
filesIndexed: 0,
|
|
156
|
+
chunksCreated: 0,
|
|
157
|
+
nodesCreated: 0,
|
|
158
|
+
edgesCreated: 0,
|
|
159
|
+
durationMs: Date.now() - startTime,
|
|
160
|
+
errors: ['No indexable files found'],
|
|
161
|
+
warnings: []
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
// Phase 2: Index files with embeddings
|
|
165
|
+
progress.phase = 'indexing';
|
|
166
|
+
onProgress?.(progress);
|
|
167
|
+
// Apply file limit
|
|
168
|
+
const filesToIndex = files.slice(0, this.FILE_LIMITS.maxFiles);
|
|
169
|
+
for (const file of filesToIndex) {
|
|
170
|
+
try {
|
|
171
|
+
const chunksCreated = await this.indexFile(path.join(projectPath, file), file, projectId, vectorStore);
|
|
172
|
+
progress.filesProcessed++;
|
|
173
|
+
progress.chunksCreated += chunksCreated;
|
|
174
|
+
onProgress?.(progress);
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
178
|
+
errors.push(`Failed to index ${file}: ${message}`);
|
|
179
|
+
this.logger.debug(`Failed to index ${file}: ${message}`);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
// Phase 3: Build knowledge graph
|
|
183
|
+
progress.phase = 'graph';
|
|
184
|
+
onProgress?.(progress);
|
|
185
|
+
const graphResult = await this.buildKnowledgeGraph(projectPath, projectId, files, graphStore);
|
|
186
|
+
progress.nodesCreated = graphResult.nodesCreated;
|
|
187
|
+
progress.edgesCreated = graphResult.edgesCreated;
|
|
188
|
+
onProgress?.(progress);
|
|
189
|
+
// Flush to persist
|
|
190
|
+
await vectorStore.flush();
|
|
191
|
+
await graphStore.flush();
|
|
192
|
+
// Phase 4: Complete
|
|
193
|
+
progress.phase = 'complete';
|
|
194
|
+
onProgress?.(progress);
|
|
195
|
+
// Collect any warnings
|
|
196
|
+
const warnings = [];
|
|
197
|
+
if (progress.limitWarning) {
|
|
198
|
+
warnings.push(progress.limitWarning);
|
|
199
|
+
}
|
|
200
|
+
return {
|
|
201
|
+
success: true,
|
|
202
|
+
filesIndexed: progress.filesProcessed,
|
|
203
|
+
chunksCreated: progress.chunksCreated,
|
|
204
|
+
nodesCreated: progress.nodesCreated,
|
|
205
|
+
edgesCreated: progress.edgesCreated,
|
|
206
|
+
durationMs: Date.now() - startTime,
|
|
207
|
+
errors,
|
|
208
|
+
warnings
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
catch (error) {
|
|
212
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
213
|
+
errors.push(`Indexing failed: ${message}`);
|
|
214
|
+
return {
|
|
215
|
+
success: false,
|
|
216
|
+
filesIndexed: progress.filesProcessed,
|
|
217
|
+
chunksCreated: progress.chunksCreated,
|
|
218
|
+
nodesCreated: progress.nodesCreated,
|
|
219
|
+
edgesCreated: progress.edgesCreated,
|
|
220
|
+
durationMs: Date.now() - startTime,
|
|
221
|
+
errors,
|
|
222
|
+
warnings: progress.limitWarning ? [progress.limitWarning] : []
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Index a single file (for incremental updates)
|
|
228
|
+
* Uses two-stage change detection for maximum speed:
|
|
229
|
+
* 1. mtime check (~0.1ms) - if file not modified since indexing, skip
|
|
230
|
+
* 2. hash check (~1-5ms) - if mtime changed but content same, skip
|
|
231
|
+
* 3. reindex (~100-500ms) - only if content actually changed
|
|
232
|
+
*/
|
|
233
|
+
async indexSingleFile(projectPath, relativePath, projectId, options) {
|
|
234
|
+
try {
|
|
235
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
236
|
+
const vectorStore = storageManager.getVectorStore();
|
|
237
|
+
const graphStore = storageManager.getGraphStore();
|
|
238
|
+
const absolutePath = path.join(projectPath, relativePath);
|
|
239
|
+
// Two-stage change detection (unless forced)
|
|
240
|
+
if (!options?.forceReindex) {
|
|
241
|
+
// Stage 1: Fast mtime check (~0.1ms)
|
|
242
|
+
const stats = fs.statSync(absolutePath);
|
|
243
|
+
const fileMtime = stats.mtime;
|
|
244
|
+
const storedMetadata = await vectorStore.getFileMetadata(projectId, relativePath);
|
|
245
|
+
if (storedMetadata) {
|
|
246
|
+
const indexedAt = new Date(storedMetadata.indexedAt);
|
|
247
|
+
// If file hasn't been modified since indexing, skip entirely
|
|
248
|
+
if (fileMtime <= indexedAt) {
|
|
249
|
+
this.logger.debug(`Skipping ${relativePath} - mtime unchanged`);
|
|
250
|
+
return { success: true, chunksCreated: 0, skipped: true, skipReason: 'mtime' };
|
|
251
|
+
}
|
|
252
|
+
// Stage 2: mtime changed, check hash (~1-5ms)
|
|
253
|
+
const content = fs.readFileSync(absolutePath, 'utf-8');
|
|
254
|
+
const currentHash = crypto.createHash('md5').update(content).digest('hex');
|
|
255
|
+
if (storedMetadata.fileHash === currentHash) {
|
|
256
|
+
this.logger.debug(`Skipping ${relativePath} - content unchanged (hash match)`);
|
|
257
|
+
return { success: true, chunksCreated: 0, skipped: true, skipReason: 'hash' };
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
// File changed or new - delete existing embeddings and reindex
|
|
262
|
+
await this.deleteFileEmbeddings(projectId, relativePath, vectorStore);
|
|
263
|
+
// Re-index the file for vector search
|
|
264
|
+
const chunksCreated = await this.indexFile(absolutePath, relativePath, projectId, vectorStore);
|
|
265
|
+
// Also update the knowledge graph for this file
|
|
266
|
+
const nodesCreated = await this.indexFileToGraph(projectPath, relativePath, projectId, graphStore);
|
|
267
|
+
await vectorStore.flush();
|
|
268
|
+
await graphStore.flush();
|
|
269
|
+
return { success: true, chunksCreated, nodesCreated, skipped: false };
|
|
270
|
+
}
|
|
271
|
+
catch (error) {
|
|
272
|
+
this.logger.debug(`Failed to index ${relativePath}: ${error}`);
|
|
273
|
+
return { success: false, chunksCreated: 0 };
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Index a single file to the knowledge graph
|
|
278
|
+
*/
|
|
279
|
+
async indexFileToGraph(projectPath, relativePath, projectId, graphStore) {
|
|
280
|
+
const nodes = [];
|
|
281
|
+
const edges = [];
|
|
282
|
+
try {
|
|
283
|
+
const absolutePath = path.join(projectPath, relativePath);
|
|
284
|
+
const content = fs.readFileSync(absolutePath, 'utf-8');
|
|
285
|
+
// Create file node
|
|
286
|
+
const fileNodeId = `file-${projectId}-${relativePath.replace(/[\/\\]/g, '-')}`;
|
|
287
|
+
nodes.push({
|
|
288
|
+
id: fileNodeId,
|
|
289
|
+
type: 'file',
|
|
290
|
+
name: path.basename(relativePath),
|
|
291
|
+
filePath: absolutePath,
|
|
292
|
+
projectId,
|
|
293
|
+
properties: { relativePath }
|
|
294
|
+
});
|
|
295
|
+
// Link file to project root
|
|
296
|
+
const projectNodeId = `project-${projectId}`;
|
|
297
|
+
edges.push({
|
|
298
|
+
id: `contains-${projectNodeId}-${fileNodeId}`,
|
|
299
|
+
source: projectNodeId,
|
|
300
|
+
target: fileNodeId,
|
|
301
|
+
type: 'contains'
|
|
302
|
+
});
|
|
303
|
+
// Extract code elements using language-specific parser
|
|
304
|
+
const codeElements = await this.extractCodeElementsAsync(content, relativePath, projectId);
|
|
305
|
+
for (const element of codeElements) {
|
|
306
|
+
nodes.push({
|
|
307
|
+
id: element.id,
|
|
308
|
+
type: element.type,
|
|
309
|
+
name: element.name,
|
|
310
|
+
filePath: absolutePath,
|
|
311
|
+
projectId,
|
|
312
|
+
properties: { relativePath, lineNumber: element.line }
|
|
313
|
+
});
|
|
314
|
+
// Link element to file
|
|
315
|
+
edges.push({
|
|
316
|
+
id: `contains-${fileNodeId}-${element.id}`,
|
|
317
|
+
source: fileNodeId,
|
|
318
|
+
target: element.id,
|
|
319
|
+
type: 'contains'
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
// Extract import relationships (scan all project files for context)
|
|
323
|
+
const allFiles = await this.scanForFiles(projectPath);
|
|
324
|
+
const imports = this.extractImports(content, relativePath, projectId, allFiles);
|
|
325
|
+
edges.push(...imports);
|
|
326
|
+
// Upsert nodes and edges
|
|
327
|
+
if (nodes.length > 0) {
|
|
328
|
+
await graphStore.upsertNodes(nodes);
|
|
329
|
+
}
|
|
330
|
+
if (edges.length > 0) {
|
|
331
|
+
await graphStore.upsertEdges(edges);
|
|
332
|
+
}
|
|
333
|
+
return nodes.length;
|
|
334
|
+
}
|
|
335
|
+
catch (error) {
|
|
336
|
+
this.logger.debug(`Failed to index ${relativePath} to graph: ${error}`);
|
|
337
|
+
return 0;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Delete a file from the index
|
|
342
|
+
*/
|
|
343
|
+
async deleteFile(projectId, relativePath) {
|
|
344
|
+
try {
|
|
345
|
+
const storageManager = await (0, storage_1.getStorageManager)();
|
|
346
|
+
const vectorStore = storageManager.getVectorStore();
|
|
347
|
+
const graphStore = storageManager.getGraphStore();
|
|
348
|
+
// Delete vector embeddings
|
|
349
|
+
const vectorsDeleted = await this.deleteFileEmbeddings(projectId, relativePath, vectorStore);
|
|
350
|
+
// Delete graph nodes for this file
|
|
351
|
+
const nodesDeleted = await this.deleteFileGraphNodes(projectId, relativePath, graphStore);
|
|
352
|
+
await vectorStore.flush();
|
|
353
|
+
await graphStore.flush();
|
|
354
|
+
return { success: true, deleted: vectorsDeleted + nodesDeleted };
|
|
355
|
+
}
|
|
356
|
+
catch (error) {
|
|
357
|
+
this.logger.debug(`Failed to delete ${relativePath}: ${error}`);
|
|
358
|
+
return { success: false, deleted: 0 };
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
// File limits configuration
|
|
362
|
+
FILE_LIMITS = {
|
|
363
|
+
/** Maximum files to index (embedded mode). Increase for DB server mode. */
|
|
364
|
+
maxFiles: 50000,
|
|
365
|
+
/** Threshold to suggest DB server mode */
|
|
366
|
+
dbServerThreshold: 100000,
|
|
367
|
+
/** Files for knowledge graph: source folders */
|
|
368
|
+
graphSourceFiles: 30000,
|
|
369
|
+
/** Files for knowledge graph: other code */
|
|
370
|
+
graphOtherCode: 15000,
|
|
371
|
+
/** Files for knowledge graph: config/docs */
|
|
372
|
+
graphConfigFiles: 5000
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Load user-defined exclusions from .codeseeker/exclusions.json
|
|
376
|
+
*/
|
|
377
|
+
loadUserExclusions(projectPath) {
|
|
378
|
+
const exclusionsPath = path.join(projectPath, '.codeseeker', 'exclusions.json');
|
|
379
|
+
if (!fs.existsSync(exclusionsPath)) {
|
|
380
|
+
return [];
|
|
381
|
+
}
|
|
382
|
+
try {
|
|
383
|
+
const content = fs.readFileSync(exclusionsPath, 'utf-8');
|
|
384
|
+
const exclusions = JSON.parse(content);
|
|
385
|
+
if (exclusions.patterns && Array.isArray(exclusions.patterns)) {
|
|
386
|
+
return exclusions.patterns.map((p) => p.pattern);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
catch (error) {
|
|
390
|
+
this.logger.debug(`Failed to load user exclusions: ${error}`);
|
|
391
|
+
}
|
|
392
|
+
return [];
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Check if a file matches any user exclusion pattern
|
|
396
|
+
*/
|
|
397
|
+
matchesUserExclusion(filePath, exclusionPatterns) {
|
|
398
|
+
if (exclusionPatterns.length === 0) {
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
const normalizedPath = filePath.replace(/\\/g, '/').toLowerCase();
|
|
402
|
+
for (const pattern of exclusionPatterns) {
|
|
403
|
+
const normalizedPattern = pattern.replace(/\\/g, '/').toLowerCase();
|
|
404
|
+
// Direct match
|
|
405
|
+
if (normalizedPath === normalizedPattern) {
|
|
406
|
+
return true;
|
|
407
|
+
}
|
|
408
|
+
// Convert glob pattern to regex
|
|
409
|
+
let regexPattern = normalizedPattern
|
|
410
|
+
.replace(/[.+^${}()|[\]\\]/g, '\\$&')
|
|
411
|
+
.replace(/\*\*/g, '<<GLOBSTAR>>')
|
|
412
|
+
.replace(/\*/g, '[^/]*')
|
|
413
|
+
.replace(/<<GLOBSTAR>>/g, '.*')
|
|
414
|
+
.replace(/\?/g, '.');
|
|
415
|
+
// Pattern matching at start or after /
|
|
416
|
+
if (!regexPattern.startsWith('.*')) {
|
|
417
|
+
regexPattern = `(^|/)${regexPattern}`;
|
|
418
|
+
}
|
|
419
|
+
regexPattern = `${regexPattern}(/.*)?$`;
|
|
420
|
+
try {
|
|
421
|
+
const regex = new RegExp(regexPattern);
|
|
422
|
+
if (regex.test(normalizedPath)) {
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
catch {
|
|
427
|
+
// Fallback to simple includes check
|
|
428
|
+
if (normalizedPath.includes(normalizedPattern.replace(/\*/g, ''))) {
|
|
429
|
+
return true;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Scan for indexable files in a directory
|
|
437
|
+
* Reports progress during scanning via callback
|
|
438
|
+
* Respects user-defined exclusions from .codeseeker/exclusions.json
|
|
439
|
+
*/
|
|
440
|
+
async scanForFiles(projectPath, onProgress) {
|
|
441
|
+
const patterns = this.SUPPORTED_EXTENSIONS.map(ext => `**/*${ext}`);
|
|
442
|
+
// Build comprehensive ignore patterns:
|
|
443
|
+
// - `dir/**` matches top-level directory
|
|
444
|
+
// - `**/dir/**` matches nested directories
|
|
445
|
+
const ignorePatterns = this.IGNORE_DIRS.flatMap(dir => [
|
|
446
|
+
`${dir}/**`, // Top-level: Library/**, Temp/**, etc.
|
|
447
|
+
`**/${dir}/**` // Nested: foo/Library/**, src/Temp/**, etc.
|
|
448
|
+
]);
|
|
449
|
+
// Load user-defined exclusions
|
|
450
|
+
const userExclusions = this.loadUserExclusions(projectPath);
|
|
451
|
+
// Track unique folders for progress reporting
|
|
452
|
+
const foldersScanned = new Set();
|
|
453
|
+
let filesFound = 0;
|
|
454
|
+
const files = await (0, fast_glob_1.glob)(patterns, {
|
|
455
|
+
cwd: projectPath,
|
|
456
|
+
ignore: ignorePatterns,
|
|
457
|
+
onlyFiles: true,
|
|
458
|
+
followSymbolicLinks: false
|
|
459
|
+
});
|
|
460
|
+
// Double-check: filter out any files that slipped through
|
|
461
|
+
// (glob patterns can sometimes miss edge cases)
|
|
462
|
+
const excludedDirSet = new Set(this.IGNORE_DIRS.map(d => d.toLowerCase()));
|
|
463
|
+
let filteredFiles = files.filter(file => {
|
|
464
|
+
const pathParts = file.replace(/\\/g, '/').toLowerCase().split('/');
|
|
465
|
+
return !pathParts.some(part => excludedDirSet.has(part));
|
|
466
|
+
});
|
|
467
|
+
// Apply user-defined exclusions
|
|
468
|
+
if (userExclusions.length > 0) {
|
|
469
|
+
const beforeCount = filteredFiles.length;
|
|
470
|
+
filteredFiles = filteredFiles.filter(file => !this.matchesUserExclusion(file, userExclusions));
|
|
471
|
+
const excludedCount = beforeCount - filteredFiles.length;
|
|
472
|
+
if (excludedCount > 0) {
|
|
473
|
+
this.logger.debug(`User exclusions filtered out ${excludedCount} files`);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
// Report progress by analyzing discovered files
|
|
477
|
+
if (onProgress) {
|
|
478
|
+
for (const file of filteredFiles) {
|
|
479
|
+
const folder = path.dirname(file);
|
|
480
|
+
if (!foldersScanned.has(folder)) {
|
|
481
|
+
foldersScanned.add(folder);
|
|
482
|
+
// Report progress every 10 new folders
|
|
483
|
+
if (foldersScanned.size % 10 === 0) {
|
|
484
|
+
onProgress({
|
|
485
|
+
foldersScanned: foldersScanned.size,
|
|
486
|
+
filesFound: filesFound,
|
|
487
|
+
currentFolder: folder,
|
|
488
|
+
percentage: 100 // Scanning complete, just counting
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
filesFound++;
|
|
493
|
+
}
|
|
494
|
+
// Final progress report
|
|
495
|
+
onProgress({
|
|
496
|
+
foldersScanned: foldersScanned.size,
|
|
497
|
+
filesFound: filteredFiles.length,
|
|
498
|
+
percentage: 100
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
return filteredFiles;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Index a single file with chunking and embeddings
|
|
505
|
+
*/
|
|
506
|
+
async indexFile(absolutePath, relativePath, projectId, vectorStore) {
|
|
507
|
+
const content = fs.readFileSync(absolutePath, 'utf-8');
|
|
508
|
+
// Skip very small files
|
|
509
|
+
if (content.length < 50) {
|
|
510
|
+
return 0;
|
|
511
|
+
}
|
|
512
|
+
// Chunk the file content
|
|
513
|
+
const chunks = this.chunkContent(content);
|
|
514
|
+
// Generate embeddings for each chunk
|
|
515
|
+
const fileHash = crypto.createHash('md5').update(content).digest('hex');
|
|
516
|
+
let chunksCreated = 0;
|
|
517
|
+
for (let chunkIndex = 0; chunkIndex < chunks.length; chunkIndex++) {
|
|
518
|
+
const chunk = chunks[chunkIndex];
|
|
519
|
+
try {
|
|
520
|
+
// Generate embedding vector
|
|
521
|
+
const embeddingVector = await this.embeddingService.generateEmbedding(chunk.content, relativePath);
|
|
522
|
+
// Create document ID: projectId:filePath:chunkIndex
|
|
523
|
+
const docId = `${projectId}:${relativePath}:${chunkIndex}`;
|
|
524
|
+
await vectorStore.upsert({
|
|
525
|
+
id: docId,
|
|
526
|
+
projectId,
|
|
527
|
+
filePath: relativePath,
|
|
528
|
+
content: chunk.content,
|
|
529
|
+
embedding: embeddingVector,
|
|
530
|
+
metadata: {
|
|
531
|
+
fileName: path.basename(relativePath),
|
|
532
|
+
extension: path.extname(relativePath),
|
|
533
|
+
chunkIndex,
|
|
534
|
+
lineStart: chunk.lineStart,
|
|
535
|
+
lineEnd: chunk.lineEnd,
|
|
536
|
+
fileHash,
|
|
537
|
+
indexedAt: new Date().toISOString()
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
chunksCreated++;
|
|
541
|
+
}
|
|
542
|
+
catch (error) {
|
|
543
|
+
this.logger.debug(`Failed to create embedding for chunk ${chunkIndex} of ${relativePath}: ${error}`);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return chunksCreated;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Chunk file content into smaller pieces for better search granularity
|
|
550
|
+
*/
|
|
551
|
+
chunkContent(content) {
|
|
552
|
+
const lines = content.split('\n');
|
|
553
|
+
const chunks = [];
|
|
554
|
+
const CHUNK_SIZE = 25; // lines per chunk
|
|
555
|
+
const OVERLAP = 5; // overlapping lines for context
|
|
556
|
+
for (let i = 0; i < lines.length; i += (CHUNK_SIZE - OVERLAP)) {
|
|
557
|
+
const chunkLines = lines.slice(i, i + CHUNK_SIZE);
|
|
558
|
+
const chunkContent = chunkLines.join('\n');
|
|
559
|
+
// Only include chunks with meaningful content
|
|
560
|
+
if (chunkContent.trim().length > 30) {
|
|
561
|
+
chunks.push({
|
|
562
|
+
content: chunkContent,
|
|
563
|
+
lineStart: i + 1,
|
|
564
|
+
lineEnd: Math.min(i + CHUNK_SIZE, lines.length)
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return chunks;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Build knowledge graph for the project
|
|
572
|
+
*/
|
|
573
|
+
async buildKnowledgeGraph(projectPath, projectId, files, graphStore) {
|
|
574
|
+
const nodes = [];
|
|
575
|
+
const edges = [];
|
|
576
|
+
// Create project root node
|
|
577
|
+
const projectNodeId = `project-${projectId}`;
|
|
578
|
+
nodes.push({
|
|
579
|
+
id: projectNodeId,
|
|
580
|
+
type: 'file',
|
|
581
|
+
name: path.basename(projectPath),
|
|
582
|
+
filePath: projectPath,
|
|
583
|
+
projectId,
|
|
584
|
+
properties: { isProjectRoot: true }
|
|
585
|
+
});
|
|
586
|
+
// Limit files for performance (prioritize source code folders)
|
|
587
|
+
// Support multiple common source folder patterns: src/, Assets/Scripts/ (Unity), app/, lib/
|
|
588
|
+
const sourcePatterns = ['src/', 'src\\', 'Assets/Scripts/', 'Assets\\Scripts\\', 'app/', 'app\\', 'lib/', 'lib\\'];
|
|
589
|
+
const sourceFiles = files.filter(f => sourcePatterns.some(p => f.startsWith(p)));
|
|
590
|
+
const otherCodeFiles = files.filter(f => !sourcePatterns.some(p => f.startsWith(p)) &&
|
|
591
|
+
['.ts', '.tsx', '.js', '.jsx', '.py', '.java', '.go', '.cs', '.rs', '.rb', '.php', '.c', '.cpp'].some(ext => f.endsWith(ext)));
|
|
592
|
+
const configFiles = files.filter(f => !sourcePatterns.some(p => f.startsWith(p)) &&
|
|
593
|
+
['.json', '.yaml', '.yml', '.toml', '.md'].some(ext => f.endsWith(ext)));
|
|
594
|
+
// Prioritize: source folders > other code > config
|
|
595
|
+
// Use configurable limits for large project support
|
|
596
|
+
const totalGraphLimit = this.FILE_LIMITS.graphSourceFiles + this.FILE_LIMITS.graphOtherCode + this.FILE_LIMITS.graphConfigFiles;
|
|
597
|
+
const filesToProcess = [
|
|
598
|
+
...sourceFiles.slice(0, this.FILE_LIMITS.graphSourceFiles),
|
|
599
|
+
...otherCodeFiles.slice(0, this.FILE_LIMITS.graphOtherCode),
|
|
600
|
+
...configFiles.slice(0, this.FILE_LIMITS.graphConfigFiles)
|
|
601
|
+
].slice(0, totalGraphLimit);
|
|
602
|
+
for (const file of filesToProcess) {
|
|
603
|
+
try {
|
|
604
|
+
const absolutePath = path.join(projectPath, file);
|
|
605
|
+
const content = fs.readFileSync(absolutePath, 'utf-8');
|
|
606
|
+
// Create file node
|
|
607
|
+
const fileNodeId = `file-${projectId}-${file.replace(/[\/\\]/g, '-')}`;
|
|
608
|
+
nodes.push({
|
|
609
|
+
id: fileNodeId,
|
|
610
|
+
type: 'file',
|
|
611
|
+
name: path.basename(file),
|
|
612
|
+
filePath: absolutePath,
|
|
613
|
+
projectId,
|
|
614
|
+
properties: { relativePath: file }
|
|
615
|
+
});
|
|
616
|
+
// Link file to project
|
|
617
|
+
edges.push({
|
|
618
|
+
id: `contains-${projectNodeId}-${fileNodeId}`,
|
|
619
|
+
source: projectNodeId,
|
|
620
|
+
target: fileNodeId,
|
|
621
|
+
type: 'contains'
|
|
622
|
+
});
|
|
623
|
+
// Extract code elements using language-specific parser
|
|
624
|
+
const codeElements = await this.extractCodeElementsAsync(content, file, projectId);
|
|
625
|
+
for (const element of codeElements) {
|
|
626
|
+
nodes.push({
|
|
627
|
+
id: element.id,
|
|
628
|
+
type: element.type,
|
|
629
|
+
name: element.name,
|
|
630
|
+
filePath: absolutePath,
|
|
631
|
+
projectId,
|
|
632
|
+
properties: { relativePath: file, lineNumber: element.line }
|
|
633
|
+
});
|
|
634
|
+
// Link element to file
|
|
635
|
+
edges.push({
|
|
636
|
+
id: `contains-${fileNodeId}-${element.id}`,
|
|
637
|
+
source: fileNodeId,
|
|
638
|
+
target: element.id,
|
|
639
|
+
type: 'contains'
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
// Extract import relationships
|
|
643
|
+
const imports = this.extractImports(content, file, projectId, filesToProcess);
|
|
644
|
+
edges.push(...imports);
|
|
645
|
+
}
|
|
646
|
+
catch (error) {
|
|
647
|
+
this.logger.debug(`Failed to process graph for ${file}: ${error}`);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
// Batch insert nodes and edges
|
|
651
|
+
if (nodes.length > 0) {
|
|
652
|
+
await graphStore.upsertNodes(nodes);
|
|
653
|
+
}
|
|
654
|
+
if (edges.length > 0) {
|
|
655
|
+
await graphStore.upsertEdges(edges);
|
|
656
|
+
}
|
|
657
|
+
return {
|
|
658
|
+
nodesCreated: nodes.length,
|
|
659
|
+
edgesCreated: edges.length
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Extract code elements (classes, functions) from file content
|
|
664
|
+
* Uses language-specific parsers for C#, Go, Python, Java
|
|
665
|
+
* Falls back to generic regex for JS/TS
|
|
666
|
+
*/
|
|
667
|
+
async extractCodeElementsAsync(content, file, projectId) {
|
|
668
|
+
const elements = [];
|
|
669
|
+
const ext = path.extname(file).toLowerCase();
|
|
670
|
+
const parserType = this.extensionToParser[ext];
|
|
671
|
+
// Use language-specific parser if available
|
|
672
|
+
if (parserType && this.parsers[parserType]) {
|
|
673
|
+
try {
|
|
674
|
+
const parser = this.parsers[parserType];
|
|
675
|
+
const absolutePath = file; // Will be resolved by caller
|
|
676
|
+
const parsed = await parser.parse(content, absolutePath);
|
|
677
|
+
// Extract classes
|
|
678
|
+
for (const cls of parsed.classes) {
|
|
679
|
+
elements.push({
|
|
680
|
+
id: `class-${projectId}-${file.replace(/[\/\\]/g, '-')}-${cls.name}`,
|
|
681
|
+
type: 'class',
|
|
682
|
+
name: cls.name,
|
|
683
|
+
line: 1 // Line info not available from parser, could be enhanced
|
|
684
|
+
});
|
|
685
|
+
// Extract methods from classes (limit to 20 per class)
|
|
686
|
+
for (const method of cls.methods.slice(0, 20)) {
|
|
687
|
+
elements.push({
|
|
688
|
+
id: `function-${projectId}-${file.replace(/[\/\\]/g, '-')}-${cls.name}-${method}`,
|
|
689
|
+
type: 'function',
|
|
690
|
+
name: `${cls.name}.${method}`,
|
|
691
|
+
line: 1
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
// Extract standalone functions
|
|
696
|
+
for (const func of parsed.functions.slice(0, 30)) {
|
|
697
|
+
elements.push({
|
|
698
|
+
id: `function-${projectId}-${file.replace(/[\/\\]/g, '-')}-${func.name}`,
|
|
699
|
+
type: 'function',
|
|
700
|
+
name: func.name,
|
|
701
|
+
line: 1
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
// Extract interfaces (as class-like elements)
|
|
705
|
+
for (const iface of parsed.interfaces) {
|
|
706
|
+
elements.push({
|
|
707
|
+
id: `class-${projectId}-${file.replace(/[\/\\]/g, '-')}-${iface}`,
|
|
708
|
+
type: 'class',
|
|
709
|
+
name: iface,
|
|
710
|
+
line: 1
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
return elements;
|
|
714
|
+
}
|
|
715
|
+
catch (error) {
|
|
716
|
+
this.logger.debug(`Parser failed for ${file}, falling back to regex: ${error}`);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
// Fallback: generic regex parsing for JS/TS and unsupported languages
|
|
720
|
+
return this.extractCodeElementsRegex(content, file, projectId);
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* Regex-based extraction for JS/TS and fallback
|
|
724
|
+
* Also handles C# with specialized regex patterns
|
|
725
|
+
*/
|
|
726
|
+
extractCodeElementsRegex(content, file, projectId) {
|
|
727
|
+
const elements = [];
|
|
728
|
+
const lines = content.split('\n');
|
|
729
|
+
const ext = path.extname(file).toLowerCase();
|
|
730
|
+
// Use C#-aware regex for .cs files
|
|
731
|
+
if (ext === '.cs') {
|
|
732
|
+
const classRegex = /(?:public\s+|private\s+|protected\s+|internal\s+)?(?:abstract\s+|sealed\s+|static\s+|partial\s+)*(?:class|struct|interface)\s+(\w+)/g;
|
|
733
|
+
const methodRegex = /(?:public\s+|private\s+|protected\s+|internal\s+)?(?:virtual\s+|override\s+|abstract\s+|static\s+|async\s+)*(?:[\w<>\[\],\s]+)\s+(\w+)\s*\([^)]*\)\s*[{;]/g;
|
|
734
|
+
for (let i = 0; i < lines.length; i++) {
|
|
735
|
+
const line = lines[i];
|
|
736
|
+
let match;
|
|
737
|
+
classRegex.lastIndex = 0;
|
|
738
|
+
while ((match = classRegex.exec(line)) !== null) {
|
|
739
|
+
const className = match[1];
|
|
740
|
+
if (className && className.length > 1) {
|
|
741
|
+
elements.push({
|
|
742
|
+
id: `class-${projectId}-${file.replace(/[\/\\]/g, '-')}-${className}`,
|
|
743
|
+
type: 'class',
|
|
744
|
+
name: className,
|
|
745
|
+
line: i + 1
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
// Limit methods per file
|
|
750
|
+
if (elements.filter(e => e.type === 'function').length < 50) {
|
|
751
|
+
methodRegex.lastIndex = 0;
|
|
752
|
+
while ((match = methodRegex.exec(line)) !== null) {
|
|
753
|
+
const methodName = match[1];
|
|
754
|
+
if (methodName && methodName.length > 1 &&
|
|
755
|
+
!['if', 'for', 'while', 'switch', 'foreach', 'catch', 'using', 'lock', 'get', 'set'].includes(methodName)) {
|
|
756
|
+
elements.push({
|
|
757
|
+
id: `function-${projectId}-${file.replace(/[\/\\]/g, '-')}-${methodName}`,
|
|
758
|
+
type: 'function',
|
|
759
|
+
name: methodName,
|
|
760
|
+
line: i + 1
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
// Generic JS/TS regex
|
|
769
|
+
const classRegex = /class\s+(\w+)/g;
|
|
770
|
+
const functionRegex = /(?:function\s+(\w+)|(?:const|let|var)\s+(\w+)\s*=\s*(?:async\s+)?(?:\([^)]*\)|[^=]*?)\s*=>|(\w+)\s*\([^)]*\)\s*{)/g;
|
|
771
|
+
for (let i = 0; i < lines.length; i++) {
|
|
772
|
+
const line = lines[i];
|
|
773
|
+
let match;
|
|
774
|
+
classRegex.lastIndex = 0;
|
|
775
|
+
while ((match = classRegex.exec(line)) !== null) {
|
|
776
|
+
const className = match[1];
|
|
777
|
+
if (className && className.length > 1) {
|
|
778
|
+
elements.push({
|
|
779
|
+
id: `class-${projectId}-${file.replace(/[\/\\]/g, '-')}-${className}`,
|
|
780
|
+
type: 'class',
|
|
781
|
+
name: className,
|
|
782
|
+
line: i + 1
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
// Limit functions per file
|
|
787
|
+
if (elements.filter(e => e.type === 'function').length < 30) {
|
|
788
|
+
functionRegex.lastIndex = 0;
|
|
789
|
+
while ((match = functionRegex.exec(line)) !== null) {
|
|
790
|
+
const funcName = match[1] || match[2] || match[3];
|
|
791
|
+
if (funcName && funcName.length > 2 && !['if', 'for', 'while', 'switch'].includes(funcName)) {
|
|
792
|
+
elements.push({
|
|
793
|
+
id: `function-${projectId}-${file.replace(/[\/\\]/g, '-')}-${funcName}`,
|
|
794
|
+
type: 'function',
|
|
795
|
+
name: funcName,
|
|
796
|
+
line: i + 1
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return elements;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Extract import relationships from file content
|
|
807
|
+
* Supports: JS/TS imports, require(), C# using statements
|
|
808
|
+
*/
|
|
809
|
+
extractImports(content, sourceFile, projectId, allFiles) {
|
|
810
|
+
const edges = [];
|
|
811
|
+
const sourceFileNodeId = `file-${projectId}-${sourceFile.replace(/[\/\\]/g, '-')}`;
|
|
812
|
+
const ext = path.extname(sourceFile).toLowerCase();
|
|
813
|
+
let match;
|
|
814
|
+
// C# using statements - link to files in same namespace
|
|
815
|
+
if (ext === '.cs') {
|
|
816
|
+
const usingRegex = /using\s+([\w.]+);/g;
|
|
817
|
+
const namespaceMap = this.buildNamespaceMap(allFiles, projectId);
|
|
818
|
+
while ((match = usingRegex.exec(content)) !== null) {
|
|
819
|
+
const namespace = match[1];
|
|
820
|
+
// Skip System namespaces
|
|
821
|
+
if (namespace.startsWith('System') || namespace.startsWith('UnityEngine') || namespace.startsWith('UnityEditor')) {
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
// Find files in this namespace
|
|
825
|
+
const filesInNamespace = namespaceMap.get(namespace) || [];
|
|
826
|
+
for (const targetFile of filesInNamespace) {
|
|
827
|
+
if (targetFile !== sourceFile) {
|
|
828
|
+
const targetFileNodeId = `file-${projectId}-${targetFile.replace(/[\/\\]/g, '-')}`;
|
|
829
|
+
edges.push({
|
|
830
|
+
id: `imports-${sourceFileNodeId}-${targetFileNodeId}`,
|
|
831
|
+
source: sourceFileNodeId,
|
|
832
|
+
target: targetFileNodeId,
|
|
833
|
+
type: 'imports'
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
// JS/TS imports and require()
|
|
841
|
+
const importRegex = /import\s+(?:{[^}]+}|\*\s+as\s+\w+|\w+)\s+from\s+['"]([^'"]+)['"]/g;
|
|
842
|
+
const requireRegex = /require\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
843
|
+
const processImport = (importPath) => {
|
|
844
|
+
// Skip node_modules imports
|
|
845
|
+
if (!importPath.startsWith('.') && !importPath.startsWith('/')) {
|
|
846
|
+
return;
|
|
847
|
+
}
|
|
848
|
+
// Resolve relative path
|
|
849
|
+
const sourceDir = path.dirname(sourceFile);
|
|
850
|
+
let resolvedPath = path.join(sourceDir, importPath).replace(/\\/g, '/');
|
|
851
|
+
// Add extension if missing
|
|
852
|
+
if (!path.extname(resolvedPath)) {
|
|
853
|
+
const extensions = ['.ts', '.tsx', '.js', '.jsx'];
|
|
854
|
+
for (const ext of extensions) {
|
|
855
|
+
const withExt = resolvedPath + ext;
|
|
856
|
+
if (allFiles.includes(withExt)) {
|
|
857
|
+
resolvedPath = withExt;
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
// Check if target file exists in project
|
|
863
|
+
if (allFiles.includes(resolvedPath)) {
|
|
864
|
+
const targetFileNodeId = `file-${projectId}-${resolvedPath.replace(/[\/\\]/g, '-')}`;
|
|
865
|
+
edges.push({
|
|
866
|
+
id: `imports-${sourceFileNodeId}-${targetFileNodeId}`,
|
|
867
|
+
source: sourceFileNodeId,
|
|
868
|
+
target: targetFileNodeId,
|
|
869
|
+
type: 'imports'
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
while ((match = importRegex.exec(content)) !== null) {
|
|
874
|
+
processImport(match[1]);
|
|
875
|
+
}
|
|
876
|
+
while ((match = requireRegex.exec(content)) !== null) {
|
|
877
|
+
processImport(match[1]);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
return edges;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Build a map of namespace -> files for C# projects
|
|
884
|
+
* This is cached per indexing run for performance
|
|
885
|
+
*/
|
|
886
|
+
namespaceMapCache = null;
|
|
887
|
+
buildNamespaceMap(allFiles, _projectId) {
|
|
888
|
+
// Return cached map if available (reset between indexing runs)
|
|
889
|
+
if (this.namespaceMapCache) {
|
|
890
|
+
return this.namespaceMapCache;
|
|
891
|
+
}
|
|
892
|
+
const namespaceMap = new Map();
|
|
893
|
+
const csFiles = allFiles.filter(f => f.endsWith('.cs'));
|
|
894
|
+
// For performance, only scan first 200 C# files for namespace detection
|
|
895
|
+
for (const file of csFiles.slice(0, 200)) {
|
|
896
|
+
try {
|
|
897
|
+
// Infer namespace from file path (common Unity/C# convention)
|
|
898
|
+
// Assets/Scripts/UI/MenuScreen.cs -> Project.UI
|
|
899
|
+
const pathParts = file.replace(/\\/g, '/').split('/');
|
|
900
|
+
const scriptsIndex = pathParts.findIndex(p => p.toLowerCase() === 'scripts');
|
|
901
|
+
if (scriptsIndex >= 0 && pathParts.length > scriptsIndex + 1) {
|
|
902
|
+
// Build namespace from path after Scripts/
|
|
903
|
+
const namespaceParts = pathParts.slice(scriptsIndex + 1, -1); // Exclude filename
|
|
904
|
+
if (namespaceParts.length > 0) {
|
|
905
|
+
const namespace = namespaceParts.join('.');
|
|
906
|
+
const existing = namespaceMap.get(namespace) || [];
|
|
907
|
+
existing.push(file);
|
|
908
|
+
namespaceMap.set(namespace, existing);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
catch {
|
|
913
|
+
// Skip files that can't be processed
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
this.namespaceMapCache = namespaceMap;
|
|
917
|
+
return namespaceMap;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Delete embeddings for a specific file
|
|
921
|
+
*/
|
|
922
|
+
async deleteFileEmbeddings(projectId, relativePath, vectorStore) {
|
|
923
|
+
// Search for documents with this file path and delete them
|
|
924
|
+
// The document IDs are formatted as: projectId:filePath:chunkIndex
|
|
925
|
+
const results = await vectorStore.searchByText(relativePath, projectId, 100);
|
|
926
|
+
let deleted = 0;
|
|
927
|
+
for (const result of results) {
|
|
928
|
+
if (result.document.filePath === relativePath) {
|
|
929
|
+
await vectorStore.delete(result.document.id);
|
|
930
|
+
deleted++;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
return deleted;
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* Delete graph nodes for a specific file
|
|
937
|
+
*/
|
|
938
|
+
async deleteFileGraphNodes(projectId, relativePath, graphStore) {
|
|
939
|
+
// Note: IGraphStore doesn't support individual node/edge deletion
|
|
940
|
+
// Graph nodes for deleted files will be cleaned up on next full reindex
|
|
941
|
+
// This is a limitation of the current storage abstraction
|
|
942
|
+
const fileNodeId = `file-${projectId}-${relativePath.replace(/[\/\\]/g, '-')}`;
|
|
943
|
+
try {
|
|
944
|
+
// Check if the node exists (for logging purposes)
|
|
945
|
+
const node = await graphStore.getNode(fileNodeId);
|
|
946
|
+
if (node) {
|
|
947
|
+
this.logger.debug(`Graph node for ${relativePath} exists but individual deletion not supported. ` +
|
|
948
|
+
`Will be cleaned up on next full reindex.`);
|
|
949
|
+
// Count edges for informational purposes
|
|
950
|
+
const edges = await graphStore.getEdges(fileNodeId, 'both');
|
|
951
|
+
return 1 + edges.length; // Return count of what would be deleted
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
catch (error) {
|
|
955
|
+
this.logger.debug(`Failed to check graph nodes for ${relativePath}: ${error}`);
|
|
956
|
+
}
|
|
957
|
+
return 0;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
exports.IndexingService = IndexingService;
|
|
961
|
+
//# sourceMappingURL=indexing-service.js.map
|