mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 14:16:16 +00:00
fix(cliproxy): use backend-aware labels in error messages and API
- Use checkCliproxyUpdate() in checkLatestVersion() for correct repo - Dynamic error messages based on backend in service-manager - Dynamic error messages based on backend in cliproxy-executor - Generic "CLIProxy" message in oauth-process (no backend context)
This commit is contained in:
1 parent
2794a548a5
commit
f0c845c32e
4 files changed
+16
-5
No files matched your search
@@ -75,7 +75,10 @@ export async function checkLatestVersion(backend?: CLIProxyBackend): Promise<Lat
|
||||
backend ?? loadOrCreateUnifiedConfig().cliproxy?.backend ?? DEFAULT_BACKEND;
|
||||
|
||||
try {
|
||||
const latestVersion = await fetchLatestCliproxyVersion();
|
||||
// Use checkCliproxyUpdate which is backend-aware (uses correct GitHub repo)
|
||||
const { checkCliproxyUpdate } = await import('../binary-manager');
|
||||
const updateResult = await checkCliproxyUpdate();
|
||||
const latestVersion = updateResult.latestVersion;
|
||||
const currentVersion = getInstalledCliproxyVersion(effectiveBackend);
|
||||
const updateAvailable = latestVersion !== currentVersion;
|
||||
|
||||
|
||||
Reference in new issue
Block a user