feat: Address review comments, add stage/unstage functionality, conflict resolution improvements, support for Sonnet 4.6

This commit is contained in:
gsxdsm
2026-02-18 18:58:33 -08:00
parent df9a6314da
commit 983eb21faa
66 changed files with 2317 additions and 823 deletions

View File

@@ -2259,6 +2259,17 @@ function createMockWorktreeAPI(): WorktreeAPI {
};
},
stageFiles: async (worktreePath: string, files: string[], operation: 'stage' | 'unstage') => {
console.log('[Mock] Stage files:', { worktreePath, files, operation });
return {
success: true,
result: {
operation,
filesCount: files.length,
},
};
},
pull: async (worktreePath: string, remote?: string, stashIfNeeded?: boolean) => {
const targetRemote = remote || 'origin';
console.log('[Mock] Pulling latest changes for:', {
@@ -2760,6 +2771,28 @@ function createMockWorktreeAPI(): WorktreeAPI {
},
};
},
abortOperation: async (worktreePath: string) => {
console.log('[Mock] Abort operation:', { worktreePath });
return {
success: true,
result: {
operation: 'merge',
message: 'Merge aborted successfully',
},
};
},
continueOperation: async (worktreePath: string) => {
console.log('[Mock] Continue operation:', { worktreePath });
return {
success: true,
result: {
operation: 'merge',
message: 'Merge continued successfully',
},
};
},
};
}
@@ -2787,6 +2820,17 @@ function createMockGitAPI(): GitAPI {
filePath,
};
},
stageFiles: async (projectPath: string, files: string[], operation: 'stage' | 'unstage') => {
console.log('[Mock] Git stage files:', { projectPath, files, operation });
return {
success: true,
result: {
operation,
filesCount: files.length,
},
};
},
};
}