break up the huge context_extractor into smaller files

This commit is contained in:
perf3ct
2025-03-11 18:39:59 +00:00
parent 0985cec8d6
commit 71b3b04c53
12 changed files with 2212 additions and 882 deletions

View File

@@ -4,7 +4,7 @@ import { OpenAIService } from './providers/openai_service.js';
import { AnthropicService } from './providers/anthropic_service.js';
import { OllamaService } from './providers/ollama_service.js';
import log from '../log.js';
import contextExtractor from './context_extractor.js';
import { ContextExtractor } from './context/index.js';
import semanticContextService from './semantic_context_service.js';
type ServiceProviders = 'openai' | 'anthropic' | 'ollama';
@@ -216,3 +216,6 @@ export default {
return getInstance().getSemanticContextService();
}
};
// Create an instance of ContextExtractor for backward compatibility
const contextExtractor = new ContextExtractor();