mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +00:00
feat(cliproxy): auto-sync on profile create
This commit is contained in:
1 parent
28b0e89b34
commit
b2ba402d0f
1 file changed
+4
@@ -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