bortexcode 1.2.2 → 1.2.3

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.
Files changed (2) hide show
  1. package/bin/bortex.js +4 -5
  2. package/package.json +1 -1
package/bin/bortex.js CHANGED
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bortexcode",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Bortex Code CLI - AI coding assistant powered by bortex.site",
5
5
  "homepage": "https://bortex.site",
6
6
  "license": "UNLICENSED",