feat(diff-processor): Improve diff sampling and file prioritization: increase inclusion thresholds, expand sampled context, and boost priority for interface/type and entry-point files

This commit is contained in:
2025-12-02 12:17:10 +00:00
parent c24ce31b1f
commit d7ec2220a1
4 changed files with 27 additions and 7 deletions

View File

@@ -239,8 +239,20 @@ export class DiffProcessor {
return 10;
}
// Everything else - default priority
return 50;
// Start with default priority
let score = 50;
// Boost interface/type files - they're usually small but critical
if (filepath.includes('interfaces/') || filepath.includes('.types.')) {
score += 20;
}
// Boost entry points
if (filepath.endsWith('index.ts') || filepath.endsWith('mod.ts')) {
score += 15;
}
return score;
}
/**