limbo-ai 1.23.6 → 1.24.1
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/cli.js +6 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1788,6 +1788,8 @@ function selfUpdateCli() {
|
|
|
1788
1788
|
log(`Updating CLI: ${pkg.version} → ${latest}...`);
|
|
1789
1789
|
execSync('npm install -g limbo-ai@latest', { stdio: 'inherit', timeout: 60000 });
|
|
1790
1790
|
ok(`CLI updated to ${latest}.`);
|
|
1791
|
+
// Clear update-check cache so notifyUpdate() won't show a stale banner
|
|
1792
|
+
try { fs.unlinkSync(UPDATE_CHECK_FILE); } catch {}
|
|
1791
1793
|
} else {
|
|
1792
1794
|
// npx served a stale cached version — clear it
|
|
1793
1795
|
warn(`CLI is outdated (${pkg.version} → ${latest}). npx served a cached version.`);
|
|
@@ -2068,7 +2070,7 @@ if (require.main === module) {
|
|
|
2068
2070
|
const [,, cmd = 'start'] = process.argv;
|
|
2069
2071
|
|
|
2070
2072
|
(async () => {
|
|
2071
|
-
checkForUpdateInBackground();
|
|
2073
|
+
if (cmd !== 'update') checkForUpdateInBackground();
|
|
2072
2074
|
|
|
2073
2075
|
switch (cmd) {
|
|
2074
2076
|
case 'start':
|
|
@@ -2078,6 +2080,9 @@ if (require.main === module) {
|
|
|
2078
2080
|
case 'update': cmdUpdate(); break;
|
|
2079
2081
|
case 'status': cmdStatus(); break;
|
|
2080
2082
|
case 'config': cmdConfig(); break;
|
|
2083
|
+
case 'version':
|
|
2084
|
+
case '--version':
|
|
2085
|
+
case '-v': console.log(require('./package.json').version); break;
|
|
2081
2086
|
case 'help':
|
|
2082
2087
|
case '--help':
|
|
2083
2088
|
case '-h': cmdHelp(); break;
|