feat(context): Add intelligent DiffProcessor to summarize and prioritize git diffs and integrate it into the commit context pipeline

This commit is contained in:
2025-11-04 02:19:57 +00:00
parent f84a65217d
commit 4bf0c02618
7 changed files with 698 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ import { ContextTrimmer } from './context-trimmer.js';
import { LazyFileLoader } from './lazy-file-loader.js';
import { ContextCache } from './context-cache.js';
import { ContextAnalyzer } from './context-analyzer.js';
import { DiffProcessor } from './diff-processor.js';
import type {
ContextMode,
IContextConfig,
@@ -24,7 +25,10 @@ import type {
IFileAnalysis,
IAnalysisResult,
IIterativeConfig,
IIterativeContextResult
IIterativeContextResult,
IDiffFileInfo,
IProcessedDiff,
IDiffProcessorOptions
} from './types.js';
export {
@@ -36,6 +40,7 @@ export {
LazyFileLoader,
ContextCache,
ContextAnalyzer,
DiffProcessor,
};
// Types
@@ -58,5 +63,8 @@ export type {
IFileAnalysis,
IAnalysisResult,
IIterativeConfig,
IIterativeContextResult
IIterativeContextResult,
IDiffFileInfo,
IProcessedDiff,
IDiffProcessorOptions
};