@ia-ccun/code-agent-cli 0.0.23 → 0.0.24
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 +1 -1
- package/package.json +1 -1
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);
|