bortexcode 1.2.2 → 1.2.4
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/bortex.js +9 -6
- package/package.json +1 -1
package/bin/bortex.js
CHANGED
|
@@ -170,7 +170,7 @@ function usage() {
|
|
|
170
170
|
console.log(' -h, --help Show help');
|
|
171
171
|
console.log('');
|
|
172
172
|
console.log('REPL commands: /agent on|off, /status, /exit, /help, /llm-config');
|
|
173
|
-
console.log('Local tools: /pwd, /cd, /ls, /tree, /read, /write, /append, /mkdir, /git, /ssh-status, /sh');
|
|
173
|
+
console.log('Local tools: /pwd, /cd, /ls, /tree, /read, /write, /append, /mkdir, /git, /ssh-status, /sys-status, /process-status, /port-status, /tool, /sh');
|
|
174
174
|
console.log('');
|
|
175
175
|
console.log('Environment:');
|
|
176
176
|
console.log(' BORTEX_URL Server URL');
|
|
@@ -427,16 +427,15 @@ async function maybePromptForCliUpdate(opts = {}) {
|
|
|
427
427
|
const installTarget = latest.installTarget || 'bortexcode';
|
|
428
428
|
const installCommand = latest.installCommand || `npm install -g ${installTarget}`;
|
|
429
429
|
|
|
430
|
-
if (shouldSkipUpdatePrompt(latest.version) && !opts.forceUpdateCheck) {
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
430
|
console.log(`Update available: Bortex Code ${CLI_VERSION} -> ${latest.version}`);
|
|
435
431
|
console.log(`Install command: ${installCommand}`);
|
|
436
432
|
|
|
433
|
+
if (!process.stdin?.isTTY || !process.stdout?.isTTY) {
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
437
|
const shouldInstall = await promptYesNo('Install update now?', true);
|
|
438
438
|
if (!shouldInstall) {
|
|
439
|
-
rememberDeclinedUpdate(latest.version);
|
|
440
439
|
return;
|
|
441
440
|
}
|
|
442
441
|
|
|
@@ -6394,6 +6393,10 @@ function printWelcomeCard(opts) {
|
|
|
6394
6393
|
}
|
|
6395
6394
|
|
|
6396
6395
|
async function runSinglePrompt(opts) {
|
|
6396
|
+
if (String(opts.prompt || '').trim().startsWith('/')) {
|
|
6397
|
+
const localResult = await handleLocalCommand(opts, opts.prompt);
|
|
6398
|
+
if (localResult.handled) return;
|
|
6399
|
+
}
|
|
6397
6400
|
const localIntent = classifyLocalPromptIntent(opts.prompt);
|
|
6398
6401
|
if (localIntent?.command) {
|
|
6399
6402
|
const localResult = await handleLocalCommand(opts, localIntent.command);
|