claudekit-cli 3.39.0-dev.1 → 3.39.1-dev.1

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 +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -57245,7 +57245,7 @@ var package_default;
57245
57245
  var init_package = __esm(() => {
57246
57246
  package_default = {
57247
57247
  name: "claudekit-cli",
57248
- version: "3.39.0-dev.1",
57248
+ version: "3.39.1-dev.1",
57249
57249
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
57250
57250
  type: "module",
57251
57251
  repository: {
@@ -58559,13 +58559,15 @@ function redactCommandForLog(command) {
58559
58559
  const redactedRegistryFlags = command.replace(/(--registry(?:=|\s+))(['"]?)(\S+?)(\2)(?=\s|$)/g, (_match, prefix, quote, url) => `${prefix}${quote}${redactRegistryUrlForLog(url)}${quote}`);
58560
58560
  return redactedRegistryFlags.replace(/https?:\/\/[^\s"']+/g, (url) => redactRegistryUrlForLog(url));
58561
58561
  }
58562
- function buildInitCommand(isGlobal, kit, beta) {
58562
+ function buildInitCommand(isGlobal, kit, beta, yes) {
58563
58563
  const parts = ["ck init"];
58564
58564
  if (isGlobal)
58565
58565
  parts.push("-g");
58566
58566
  if (kit)
58567
58567
  parts.push(`--kit ${kit}`);
58568
- parts.push("--yes --install-skills");
58568
+ if (yes)
58569
+ parts.push("--yes");
58570
+ parts.push("--install-skills");
58569
58571
  if (beta)
58570
58572
  parts.push("--beta");
58571
58573
  return parts.join(" ");
@@ -58661,7 +58663,6 @@ async function promptKitUpdate(beta, yes, deps) {
58661
58663
  }
58662
58664
  const kitVersion = selection.kit ? selection.isGlobal ? globalMetadata?.kits?.[selection.kit]?.version : localMetadata?.kits?.[selection.kit]?.version : undefined;
58663
58665
  const isBetaInstalled = isBetaVersion(kitVersion);
58664
- const initCmd = buildInitCommand(selection.isGlobal, selection.kit, beta || isBetaInstalled);
58665
58666
  const promptMessage = selection.promptMessage;
58666
58667
  if (selection.kit && kitVersion) {
58667
58668
  logger.info(`Current kit version: ${selection.kit}@${kitVersion}`);
@@ -58699,6 +58700,7 @@ async function promptKitUpdate(beta, yes, deps) {
58699
58700
  } else {
58700
58701
  logger.verbose("Auto-proceeding with kit update (--yes flag)");
58701
58702
  }
58703
+ const initCmd = buildInitCommand(selection.isGlobal, selection.kit, beta || isBetaInstalled, yes || autoInit);
58702
58704
  logger.info(`Running: ${initCmd}`);
58703
58705
  const s = (deps?.spinnerFn ?? de)();
58704
58706
  s.start("Updating ClaudeKit content...");
@@ -59460,7 +59462,7 @@ function registerSystemRoutes(app) {
59460
59462
  const kitName = kit;
59461
59463
  const metadata = await getKitMetadata2(kitName);
59462
59464
  const isBeta = isBetaVersion(metadata?.version);
59463
- commandLine = buildInitCommand(true, kitName, isBeta);
59465
+ commandLine = buildInitCommand(true, kitName, isBeta, true);
59464
59466
  logger.debug(`Updating kit ${kitName} (beta: ${isBeta}): ${commandLine}`);
59465
59467
  res.write(`data: ${JSON.stringify({ type: "phase", name: "installing" })}
59466
59468
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.39.0-dev.1",
3
+ "version": "3.39.1-dev.1",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {