mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-05 18:16:28 +00:00
fix(cliproxy): address sync review feedback
- Fix auto_sync JSDoc to say (default: true) matching actual default - Add unlink event handler for profile deletion sync - Add debug logging for sync failures in api-command
This commit is contained in:
@@ -277,8 +277,13 @@ async function handleCreate(args: string[]): Promise<void> {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Trigger sync to local CLIProxy config (best-effort, ignore result)
|
||||
syncToLocalConfig();
|
||||
// Trigger sync to local CLIProxy config (best-effort)
|
||||
try {
|
||||
syncToLocalConfig();
|
||||
} catch (err) {
|
||||
const message = err instanceof Error ? err.message : 'Unknown error';
|
||||
console.log(`[i] Auto-sync to CLIProxy config skipped: ${message}`);
|
||||
}
|
||||
|
||||
// Display success
|
||||
console.log('');
|
||||
|
||||
Reference in New Issue
Block a user