Skip to content

Commit a3d10de

Browse files
authored
Merge pull request #111 from RooVetGit/fuzzy_matching
Support fuzzy matching for apply_diff
2 parents 85acffd + f3b77c9 commit a3d10de

File tree

6 files changed

+141
-292
lines changed

6 files changed

+141
-292
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Roo Cline Changelog
22

3+
## [2.2.6]
4+
5+
- Add a fuzzy match tolerance when applying diffs
6+
37
## [2.2.5]
48

59
- Allow MCP servers to be enabled/disabled

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Roo Cline",
44
"description": "A fork of Cline, an autonomous coding agent, with some added experimental configuration and automation features.",
55
"publisher": "RooVeterinaryInc",
6-
"version": "2.2.5",
6+
"version": "2.2.6",
77
"icon": "assets/icons/rocket.png",
88
"galleryBanner": {
99
"color": "#617A91",

src/core/diff/DiffStrategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { SearchReplaceDiffStrategy } from './strategies/search-replace'
77
* @returns The appropriate diff strategy for the model
88
*/
99
export function getDiffStrategy(model: string): DiffStrategy {
10-
// For now, return SearchReplaceDiffStrategy for all models
10+
// For now, return SearchReplaceDiffStrategy for all models (with a fuzzy threshold of 0.9)
1111
// This architecture allows for future optimizations based on model capabilities
12-
return new SearchReplaceDiffStrategy()
12+
return new SearchReplaceDiffStrategy(0.9)
1313
}
1414

1515
export type { DiffStrategy }

0 commit comments

Comments
 (0)