Improve strategies and confidence system

This commit is contained in:
Daniel Riccio
2025-01-08 12:28:31 -05:00
parent 594481643b
commit 995692c48e
4 changed files with 265 additions and 81 deletions

View File

@@ -162,7 +162,8 @@ Your diff here
): Promise<DiffResult> {
const MIN_CONFIDENCE = 0.9
const parsedDiff = this.parseUnifiedDiff(diffContent)
let result = originalContent.split("\n")
const originalLines = originalContent.split("\n")
let result = [...originalLines]
for (const hunk of parsedDiff.hunks) {
const contextStr = prepareSearchString(hunk.changes)