hataraku
Version:
An autonomous coding agent for building AI-powered development tools. The name "Hataraku" (働く) means "to work" in Japanese.
19 lines • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SearchReplaceDiffStrategy = exports.UnifiedDiffStrategy = void 0;
exports.getDiffStrategy = getDiffStrategy;
const unified_1 = require("./strategies/unified");
Object.defineProperty(exports, "UnifiedDiffStrategy", { enumerable: true, get: function () { return unified_1.UnifiedDiffStrategy; } });
const search_replace_1 = require("./strategies/search-replace");
Object.defineProperty(exports, "SearchReplaceDiffStrategy", { enumerable: true, get: function () { return search_replace_1.SearchReplaceDiffStrategy; } });
/**
* 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
*/
function getDiffStrategy(model, fuzzyMatchThreshold) {
// For now, return SearchReplaceDiffStrategy for all models
// This architecture allows for future optimizations based on model capabilities
return new search_replace_1.SearchReplaceDiffStrategy(fuzzyMatchThreshold ?? 1.0);
}
//# sourceMappingURL=DiffStrategy.js.map