mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
feat(cliproxy): auto-sync on profile create
This commit is contained in:
@@ -39,6 +39,7 @@ import {
|
||||
getPresetIds,
|
||||
type ModelMapping,
|
||||
} from '../api/services';
|
||||
import { syncToLocalConfig } from '../cliproxy/sync/local-config-sync';
|
||||
|
||||
interface ApiCommandArgs {
|
||||
name?: string;
|
||||
@@ -276,6 +277,9 @@ async function handleCreate(args: string[]): Promise<void> {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Trigger sync to local CLIProxy config (best-effort, ignore result)
|
||||
syncToLocalConfig();
|
||||
|
||||
// Display success
|
||||
console.log('');
|
||||
const hasCustomMapping = opusModel !== model || sonnetModel !== model || haikuModel !== model;
|
||||
|
||||
Reference in New Issue
Block a user