mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 18:15:23 +00:00
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:
1 parent
ab9bbedfa9
commit
c3f85bc4a8
7 files changed
+356
-15
No files matched your search
@@ -186,3 +186,14 @@ export function getAutoSyncStatus(): {
|
||||
syncing: isSyncing,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset watcher state for test cleanup.
|
||||
* Stops watcher and clears all singleton state.
|
||||
*/
|
||||
export async function resetWatcherState(): Promise<void> {
|
||||
await stopAutoSyncWatcher();
|
||||
watcherInstance = null;
|
||||
syncTimeout = null;
|
||||
isSyncing = false;
|
||||
}
|
||||
@@ -617,9 +617,9 @@ async function showHelp(): Promise<void> {
|
||||
],
|
||||
],
|
||||
[
|
||||
'Remote Sync:',
|
||||
'Local Sync:',
|
||||
[
|
||||
['sync', 'Sync API profiles to remote CLIProxy'],
|
||||
['sync', 'Sync API profiles to local CLIProxy config'],
|
||||
['sync --dry-run', 'Preview sync without applying'],
|
||||
['sync --force', 'Sync without confirmation prompt'],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user