@ia-ccun/code-agent-cli 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js
CHANGED
|
@@ -160,7 +160,7 @@ async function checkForUpdates() {
|
|
|
160
160
|
|
|
161
161
|
// 获取当前 registry
|
|
162
162
|
const registry = execSync('npm config get registry', { encoding: 'utf8', stdio: 'pipe' }).trim();
|
|
163
|
-
const latestVersion = execSync(`npm view @
|
|
163
|
+
const latestVersion = execSync(`npm view @ia-ccun/code-agent-cli version --registry=${registry}`, { encoding: 'utf8', stdio: 'pipe' }).trim();
|
|
164
164
|
|
|
165
165
|
// 比较版本号
|
|
166
166
|
const localParts = localVersion.split('.').map(Number);
|
|
@@ -17,8 +17,8 @@ function fmtTokens(n: number): string {
|
|
|
17
17
|
return `${(n / 1000000).toFixed(1)}M`;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
//
|
|
21
|
-
const gold = (s: string) => `\x1b[38;2;
|
|
20
|
+
// #49bccf
|
|
21
|
+
const gold = (s: string) => `\x1b[38;2;73;188;207m${s}\x1b[0m`;
|
|
22
22
|
|
|
23
23
|
// 获取版本信息(从环境变量和缓存文件)
|
|
24
24
|
function getVersionInfo() {
|