refactor: Improve all git operations, add stash support, add improved pull request flow, add worktree file copy options, address code review comments, add cherry pick options

This commit is contained in:
gsxdsm
2026-02-17 22:02:58 -08:00
parent f4e87d4c25
commit 9af63bc1ef
89 changed files with 6811 additions and 351 deletions

View File

@@ -64,7 +64,7 @@ describe('CLI Detection Framework', () => {
});
it('should handle unsupported platform', () => {
const instructions = getInstallInstructions('claude', 'unknown-platform' as any);
const instructions = getInstallInstructions('claude', 'unknown-platform' as NodeJS.Platform);
expect(instructions).toContain('No installation instructions available');
});
});
@@ -339,15 +339,17 @@ describe('Performance Tests', () => {
// Edge Cases
describe('Edge Cases', () => {
it('should handle empty CLI names', async () => {
await expect(detectCli('' as any)).rejects.toThrow();
await expect(detectCli('' as unknown as Parameters<typeof detectCli>[0])).rejects.toThrow();
});
it('should handle null CLI names', async () => {
await expect(detectCli(null as any)).rejects.toThrow();
await expect(detectCli(null as unknown as Parameters<typeof detectCli>[0])).rejects.toThrow();
});
it('should handle undefined CLI names', async () => {
await expect(detectCli(undefined as any)).rejects.toThrow();
await expect(
detectCli(undefined as unknown as Parameters<typeof detectCli>[0])
).rejects.toThrow();
});
it('should handle malformed error objects', () => {