refactor(cliproxy): remove model alias functionality

- delete model-alias-config.ts and cliproxy-alias-handler.ts

- simplify sync to use ANTHROPIC_MODEL directly

- remove alias routes, hooks, and UI components
This commit is contained in:
kaitranntt committed 2026-01-28 11:57:22 -05:00
1 parent afa3bdafce
commit 32dbd5e174
12 files changed
+92 -775

No files matched your search

+1 -10
View File
@@ -64,9 +64,8 @@ import {
installLatest,
} from '../cliproxy/services';
// Import sync and alias handlers
// Import sync handler
import { handleSync } from './cliproxy-sync-handler';
import { handleAlias } from './cliproxy-alias-handler';
// ============================================================================
// ARGUMENT PARSING
@@ -623,9 +622,6 @@ async function showHelp(): Promise<void> {
['sync', 'Sync API profiles to remote CLIProxy'],
['sync --dry-run', 'Preview sync without applying'],
['sync --force', 'Sync without confirmation prompt'],
['alias list', 'List model alias mappings'],
['alias add <profile> <from> <to>', 'Add model alias'],
['alias remove <profile> <from>', 'Remove model alias'],
],
],
[
@@ -1024,11 +1020,6 @@ export async function handleCliproxyCommand(args: string[]): Promise<void> {
return;
}
if (command === 'alias') {
await handleAlias(remainingArgs.slice(1));
return;
}
if (command === 'stop') {
await handleStop();
return;