claudekit-cli 3.30.0-dev.2 → 3.30.0-dev.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/dist/index.js +21 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7762,6 +7762,7 @@ var init_commands = __esm(() => {
7762
7762
  release: exports_external.string().optional(),
7763
7763
  check: exports_external.boolean().default(false),
7764
7764
  yes: exports_external.boolean().default(false),
7765
+ dev: exports_external.boolean().default(false),
7765
7766
  beta: exports_external.boolean().default(false),
7766
7767
  registry: exports_external.string().url().optional()
7767
7768
  }).merge(GlobalOutputOptionsSchema);
@@ -43650,19 +43651,22 @@ class NpmRegistryClient {
43650
43651
  }
43651
43652
  }
43652
43653
  static async getBetaVersion(packageName, registryUrl) {
43654
+ return NpmRegistryClient.getDevVersion(packageName, registryUrl);
43655
+ }
43656
+ static async getDevVersion(packageName, registryUrl) {
43653
43657
  try {
43654
43658
  const info = await NpmRegistryClient.getPackageInfo(packageName, registryUrl);
43655
43659
  if (!info)
43656
43660
  return null;
43657
- const betaVersion = info["dist-tags"]?.beta || info["dist-tags"]?.next;
43658
- if (!betaVersion) {
43659
- logger.debug(`No beta version found for ${packageName}`);
43661
+ const devVersion = info["dist-tags"]?.dev || info["dist-tags"]?.beta || info["dist-tags"]?.next;
43662
+ if (!devVersion) {
43663
+ logger.debug(`No dev version found for ${packageName}`);
43660
43664
  return null;
43661
43665
  }
43662
- return betaVersion;
43666
+ return devVersion;
43663
43667
  } catch (error) {
43664
43668
  const message = error instanceof Error ? error.message : "Unknown error";
43665
- logger.debug(`Failed to get beta version for ${packageName}: ${message}`);
43669
+ logger.debug(`Failed to get dev version for ${packageName}: ${message}`);
43666
43670
  return null;
43667
43671
  }
43668
43672
  }
@@ -43726,7 +43730,7 @@ var import_fs_extra37 = __toESM(require_lib(), 1);
43726
43730
  // package.json
43727
43731
  var package_default = {
43728
43732
  name: "claudekit-cli",
43729
- version: "3.30.0-dev.2",
43733
+ version: "3.30.0-dev.3",
43730
43734
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
43731
43735
  type: "module",
43732
43736
  repository: {
@@ -43840,7 +43844,7 @@ function buildInitCommand(isGlobal, kit, beta) {
43840
43844
  function isBetaVersion(version) {
43841
43845
  if (!version)
43842
43846
  return false;
43843
- return /-(beta|alpha|rc)[.\d]/i.test(version);
43847
+ return /-(beta|alpha|rc|dev)[.\d]/i.test(version);
43844
43848
  }
43845
43849
  function selectKitForUpdate(params) {
43846
43850
  const { hasLocal, hasGlobal, localKits, globalKits } = params;
@@ -43961,14 +43965,14 @@ async function updateCliCommand(options) {
43961
43965
  }
43962
43966
  targetVersion = opts.release;
43963
43967
  s.stop(`Target version: ${targetVersion}`);
43964
- } else if (opts.beta) {
43965
- targetVersion = await NpmRegistryClient.getBetaVersion(PACKAGE_NAME, opts.registry);
43968
+ } else if (opts.dev || opts.beta) {
43969
+ targetVersion = await NpmRegistryClient.getDevVersion(PACKAGE_NAME, opts.registry);
43966
43970
  if (!targetVersion) {
43967
- s.stop("No beta version available");
43968
- logger.warning("No beta version found. Using latest stable version instead.");
43971
+ s.stop("No dev version available");
43972
+ logger.warning("No dev version found. Using latest stable version instead.");
43969
43973
  targetVersion = await NpmRegistryClient.getLatestVersion(PACKAGE_NAME, opts.registry);
43970
43974
  } else {
43971
- s.stop(`Latest beta version: ${targetVersion}`);
43975
+ s.stop(`Latest dev version: ${targetVersion}`);
43972
43976
  }
43973
43977
  } else {
43974
43978
  targetVersion = await NpmRegistryClient.getLatestVersion(PACKAGE_NAME, opts.registry);
@@ -43980,7 +43984,7 @@ async function updateCliCommand(options) {
43980
43984
  const comparison = import_compare_versions3.compareVersions(currentVersion, targetVersion);
43981
43985
  if (comparison === 0) {
43982
43986
  outro(`[+] Already on the latest CLI version (${currentVersion})`);
43983
- await promptKitUpdate(opts.beta);
43987
+ await promptKitUpdate(opts.dev || opts.beta);
43984
43988
  return;
43985
43989
  }
43986
43990
  if (comparison > 0 && !opts.release) {
@@ -43994,7 +43998,7 @@ async function updateCliCommand(options) {
43994
43998
  note(`CLI update available: ${currentVersion} -> ${targetVersion}
43995
43999
 
43996
44000
  Run 'ck update' to install`, "Update Check");
43997
- await promptKitUpdate(opts.beta);
44001
+ await promptKitUpdate(opts.dev || opts.beta);
43998
44002
  outro("Check complete");
43999
44003
  return;
44000
44004
  }
@@ -44034,11 +44038,11 @@ Manual update: ${updateCmd}`);
44034
44038
  const newVersion = newVersionMatch ? newVersionMatch[1] : targetVersion;
44035
44039
  s.stop(`Installed version: ${newVersion}`);
44036
44040
  outro(`[+] Successfully updated ClaudeKit CLI to ${newVersion}`);
44037
- await promptKitUpdate(opts.beta);
44041
+ await promptKitUpdate(opts.dev || opts.beta);
44038
44042
  } catch {
44039
44043
  s.stop("Verification completed");
44040
44044
  outro(`[+] Update completed. Please restart your terminal to use CLI ${targetVersion}`);
44041
- await promptKitUpdate(opts.beta);
44045
+ await promptKitUpdate(opts.dev || opts.beta);
44042
44046
  }
44043
44047
  } catch (error) {
44044
44048
  if (error instanceof CliUpdateError) {
@@ -44166,7 +44170,7 @@ function registerCommands(cli) {
44166
44170
  }
44167
44171
  await initCommand(options);
44168
44172
  });
44169
- cli.command("update", "Update ClaudeKit CLI to the latest version").option("-r, --release <version>", "Update to a specific version").option("--check", "Check for updates without installing").option("-y, --yes", "Non-interactive mode with sensible defaults (skip all prompts)").option("--beta", "Update to the latest beta version").option("--registry <url>", "Custom npm registry URL").option("--kit <kit>", "[DEPRECATED] Use 'ck init --kit <kit>' instead").option("-g, --global", "[DEPRECATED] Use 'ck init --global' instead").action(async (options) => {
44173
+ cli.command("update", "Update ClaudeKit CLI to the latest version").option("-r, --release <version>", "Update to a specific version").option("--check", "Check for updates without installing").option("-y, --yes", "Non-interactive mode with sensible defaults (skip all prompts)").option("-d, --dev", "Update to the latest dev version").option("--beta", "Alias for --dev (deprecated)").option("--registry <url>", "Custom npm registry URL").option("--kit <kit>", "[DEPRECATED] Use 'ck init --kit <kit>' instead").option("-g, --global", "[DEPRECATED] Use 'ck init --global' instead").action(async (options) => {
44170
44174
  if (options.kit || options.global) {
44171
44175
  console.log();
44172
44176
  const deprecatedFlags = [options.kit && "--kit", options.global && "--global"].filter(Boolean).join(" and ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.30.0-dev.2",
3
+ "version": "3.30.0-dev.3",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {