hataraku
Version:
An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.
14 lines • 722 B
JavaScript
import { UnifiedDiffStrategy } from './strategies/unified';
import { SearchReplaceDiffStrategy } from './strategies/search-replace';
/**
* Get the appropriate diff strategy for the given model
* @param model The name of the model being used (e.g., 'gpt-4', 'claude-3-7-sonnet')
* @returns The appropriate diff strategy for the model
*/
export function getDiffStrategy(model, fuzzyMatchThreshold) {
// For now, return SearchReplaceDiffStrategy for all models
// This architecture allows for future optimizations based on model capabilities
return new SearchReplaceDiffStrategy(fuzzyMatchThreshold ?? 1.0);
}
export { UnifiedDiffStrategy, SearchReplaceDiffStrategy };
//# sourceMappingURL=DiffStrategy.js.map