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