mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-17 04:17:11 +00:00
fix(cliproxy): remove stable version cap, only v81-88 are faulty
- Set CLIPROXY_MAX_STABLE_VERSION to 9.9.999-0 (effectively no cap) - v89+ are all stable, no longer show experimental warning - Only v81-88 remain marked as faulty with known bugs - Simplified lifecycle.ts to remove redundant experimental warning
This commit is contained in:
@@ -56,21 +56,10 @@ async function handleAutoUpdate(config: BinaryManagerConfig, verbose: boolean):
|
||||
console.log(
|
||||
warn(
|
||||
`CLIProxy Plus v${currentVersion} has known bugs (v${CLIPROXY_FAULTY_RANGE.min.replace(/-\d+$/, '')}-${CLIPROXY_FAULTY_RANGE.max.replace(/-\d+$/, '')}). ` +
|
||||
`Upgrade to v${CLIPROXY_MAX_STABLE_VERSION.replace(/-\d+$/, '')} recommended.`
|
||||
)
|
||||
);
|
||||
console.log(
|
||||
info(
|
||||
`Run "ccs cliproxy install ${CLIPROXY_MAX_STABLE_VERSION.replace(/-\d+$/, '')}" to upgrade`
|
||||
)
|
||||
);
|
||||
} else if (isAboveMaxStable(currentVersion)) {
|
||||
// Version newer than max stable (experimental)
|
||||
console.log(
|
||||
warn(
|
||||
`CLIProxy Plus v${currentVersion} is experimental (above stable v${CLIPROXY_MAX_STABLE_VERSION.replace(/-\d+$/, '')})`
|
||||
`Upgrade to latest stable recommended.`
|
||||
)
|
||||
);
|
||||
console.log(info(`Run "ccs cliproxy install" to upgrade to latest stable`));
|
||||
}
|
||||
|
||||
if (!updateResult.hasUpdate) return;
|
||||
|
||||
@@ -16,10 +16,11 @@ export const CLIPROXY_FALLBACK_VERSION = '6.6.40-0';
|
||||
|
||||
/**
|
||||
* Maximum stable version cap - prevents auto-update to known unstable releases
|
||||
* v86-89 resolved the context cancellation bugs from v81-85
|
||||
* Currently set high since v89+ are all stable.
|
||||
* Only v81-88 have known bugs (see CLIPROXY_FAULTY_RANGE).
|
||||
* See: https://github.com/kaitranntt/ccs/issues/269
|
||||
*/
|
||||
export const CLIPROXY_MAX_STABLE_VERSION = '6.6.89-0';
|
||||
export const CLIPROXY_MAX_STABLE_VERSION = '9.9.999-0';
|
||||
|
||||
/**
|
||||
* Faulty version range - versions with known critical bugs
|
||||
|
||||
Reference in New Issue
Block a user