fix(cliproxy): correct sync terminology and add unit tests

- Fix "Remote" → "Local" in sync-dialog.tsx and CLI help text
- Add resetWatcherState() export for test cleanup
- Add unit tests for profile-mapper, local-config-sync, auto-sync-watcher
- Remove unused ModelAlias and AliasesResponse types from hooks
This commit is contained in:
kaitranntt committed 2026-01-28 13:26:40 -05:00
1 parent ab9bbedfa9
commit c3f85bc4a8
7 files changed
+356 -15

No files matched your search

@@ -45,10 +45,10 @@ export function SyncDialog({ open, onOpenChange }: SyncDialogProps) {
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
<Upload className="w-5 h-5" />
Sync Profiles to Remote CLIProxy
Sync Profiles to Local CLIProxy
</DialogTitle>
<DialogDescription>
Push your CCS API profiles to the remote CLIProxy server.
Sync your CCS API profiles to the local CLIProxy config.yaml.
</DialogDescription>
</DialogHeader>
-11
View File
@@ -49,17 +49,6 @@ export interface SyncResult {
message?: string;
}
/** Model alias */
export interface ModelAlias {
from: string;
to: string;
}
/** Aliases response */
export interface AliasesResponse {
aliases: Record<string, ModelAlias[]>;
}
/**
* Fetch sync status from API
*/