@jvittechs/j 1.0.42 → 1.0.43

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/dist/cli.js CHANGED
@@ -149,7 +149,7 @@ import { basename as basename5 } from "path";
149
149
  // package.json
150
150
  var package_default = {
151
151
  name: "@jvittechs/j",
152
- version: "1.0.42",
152
+ version: "1.0.43",
153
153
  description: "A unified CLI tool for JV-IT TECHS developers to manage Jai1 Framework. Supports both `j` and `jai1` commands. Please contact TeamAI for usage instructions.",
154
154
  type: "module",
155
155
  bin: {
@@ -14261,7 +14261,7 @@ var colors2 = {
14261
14261
  bold: "\x1B[1m"
14262
14262
  };
14263
14263
  function createUpgradeCommand() {
14264
- return new Command79("upgrade").description("Upgrade CLI client to the latest version").option("--check", "Only check for updates without installing").option("--force", "Force upgrade without confirmation").action(async (options) => {
14264
+ return new Command79("upgrade").description("Upgrade CLI client to the latest version").option("--check", "Only check for updates without installing").option("-y, --force", "Upgrade without confirmation prompt (skip if already latest)").action(async (options) => {
14265
14265
  await handleUpgrade(options);
14266
14266
  });
14267
14267
  }
@@ -14291,8 +14291,13 @@ ${colors2.bold}Current version:${colors2.reset} ${currentVersion}`);
14291
14291
  console.log(`${colors2.bold}Latest version:${colors2.reset} ${latestVersion}
14292
14292
  `);
14293
14293
  if (!isNewerVersion2(latestVersion, currentVersion)) {
14294
- console.log(`${colors2.green}\u2705 You're already on the latest version!${colors2.reset}
14294
+ if (options.force) {
14295
+ console.log(`${colors2.green}\u2705 Already on the latest version (${currentVersion}). No upgrade needed.${colors2.reset}
14295
14296
  `);
14297
+ } else {
14298
+ console.log(`${colors2.green}\u2705 You're already on the latest version!${colors2.reset}
14299
+ `);
14300
+ }
14296
14301
  return;
14297
14302
  }
14298
14303
  console.log(`${colors2.yellow}\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E${colors2.reset}`);