@supercheck/cli 0.1.1-rc.2 → 0.1.1-rc.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.
@@ -222,7 +222,7 @@ function requireTriggerKey() {
222
222
  }
223
223
 
224
224
  // src/version.ts
225
- var CLI_VERSION = true ? "0.1.1-rc.2" : "0.0.0-dev";
225
+ var CLI_VERSION = true ? "0.1.1-rc.3" : "0.0.0-dev";
226
226
 
227
227
  // src/utils/proxy.ts
228
228
  import { ProxyAgent } from "undici";
@@ -5079,7 +5079,7 @@ var doctorCommand = new Command19("doctor").description("Check that all dependen
5079
5079
  import { Command as Command20 } from "commander";
5080
5080
  import { spawn as spawn2 } from "child_process";
5081
5081
  var PACKAGE_NAME = "@supercheck/cli";
5082
- var TAG_PATTERN = /^[a-z0-9][a-z0-9._-]*$/i;
5082
+ var RELEASE_TARGET_PATTERN = /^(latest|v?\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?)$/;
5083
5083
  function normalizeTag(tag) {
5084
5084
  const trimmed = tag.trim();
5085
5085
  if (trimmed.startsWith("v") && trimmed.length > 1 && /\d/.test(trimmed[1])) {
@@ -5125,12 +5125,12 @@ function runInstallCommand(command, args) {
5125
5125
  child.on("close", (code) => resolve10(code ?? 0));
5126
5126
  });
5127
5127
  }
5128
- var upgradeCommand = new Command20("upgrade").description("Upgrade the Supercheck CLI to the latest version").option("--tag <tag>", "NPM dist-tag or version (latest, next, canary, 0.1.1-beta.1)").option("--package-manager <pm>", "Package manager to use (npm, yarn, pnpm, bun)").option("-y, --yes", "Skip confirmation prompt").option("--dry-run", "Print the upgrade command without running it").action(async (options) => {
5128
+ var upgradeCommand = new Command20("upgrade").description("Upgrade the Supercheck CLI to the latest version").option("--tag <tag>", "Release target to install (latest or explicit version)").option("--package-manager <pm>", "Package manager to use (npm, yarn, pnpm, bun)").option("-y, --yes", "Skip confirmation prompt").option("--dry-run", "Print the upgrade command without running it").action(async (options) => {
5129
5129
  const format = getOutputFormat();
5130
5130
  const tag = normalizeTag(options.tag ?? getDefaultTag());
5131
- if (!TAG_PATTERN.test(tag)) {
5131
+ if (!RELEASE_TARGET_PATTERN.test(tag)) {
5132
5132
  throw new CLIError(
5133
- `Invalid tag "${tag}". Use a valid dist-tag (latest, next, canary) or version (0.1.1-beta.1).`,
5133
+ `Invalid target "${tag}". Use "latest" or an explicit version (for example 0.1.1-rc.2).`,
5134
5134
  3 /* ConfigError */
5135
5135
  );
5136
5136
  }