claudekit-cli 3.24.0 → 3.24.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.
- package/dist/index.js +24 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42800,7 +42800,7 @@ var import_picocolors24 = __toESM(require_picocolors(), 1);
|
|
|
42800
42800
|
// package.json
|
|
42801
42801
|
var package_default = {
|
|
42802
42802
|
name: "claudekit-cli",
|
|
42803
|
-
version: "3.24.
|
|
42803
|
+
version: "3.24.1",
|
|
42804
42804
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
42805
42805
|
type: "module",
|
|
42806
42806
|
repository: {
|
|
@@ -42901,13 +42901,15 @@ class CliUpdateError extends ClaudeKitError {
|
|
|
42901
42901
|
}
|
|
42902
42902
|
var PACKAGE_NAME2 = "claudekit-cli";
|
|
42903
42903
|
var KIT_UPDATE_REMINDER_HEADER = "Note: 'ck update' only updates the CLI tool itself.";
|
|
42904
|
-
function buildInitCommand(isGlobal, kit) {
|
|
42904
|
+
function buildInitCommand(isGlobal, kit, beta) {
|
|
42905
42905
|
const parts = ["ck init"];
|
|
42906
42906
|
if (isGlobal)
|
|
42907
42907
|
parts.push("-g");
|
|
42908
42908
|
if (kit)
|
|
42909
42909
|
parts.push(`--kit ${kit}`);
|
|
42910
42910
|
parts.push("--yes --install-skills");
|
|
42911
|
+
if (beta)
|
|
42912
|
+
parts.push("--beta");
|
|
42911
42913
|
return parts.join(" ");
|
|
42912
42914
|
}
|
|
42913
42915
|
async function readMetadataFile(claudeDir) {
|
|
@@ -42922,7 +42924,7 @@ async function readMetadataFile(claudeDir) {
|
|
|
42922
42924
|
return null;
|
|
42923
42925
|
}
|
|
42924
42926
|
}
|
|
42925
|
-
async function displayKitUpdateReminder() {
|
|
42927
|
+
async function displayKitUpdateReminder(beta) {
|
|
42926
42928
|
try {
|
|
42927
42929
|
const setup = await getClaudeKitSetup();
|
|
42928
42930
|
const hasLocal = !!setup.project.metadata;
|
|
@@ -42960,7 +42962,7 @@ async function displayKitUpdateReminder() {
|
|
|
42960
42962
|
const commands = [];
|
|
42961
42963
|
if (localKits.length > 0) {
|
|
42962
42964
|
for (const kit of localKits) {
|
|
42963
|
-
const cmd = buildInitCommand(false, kit);
|
|
42965
|
+
const cmd = buildInitCommand(false, kit, beta);
|
|
42964
42966
|
const version = localMetadata?.kits?.[kit]?.version || localMetadata?.version;
|
|
42965
42967
|
commands.push({
|
|
42966
42968
|
cmd,
|
|
@@ -42969,13 +42971,16 @@ async function displayKitUpdateReminder() {
|
|
|
42969
42971
|
});
|
|
42970
42972
|
}
|
|
42971
42973
|
} else if (hasLocal) {
|
|
42972
|
-
commands.push({ cmd: "ck init", desc: "Update local project" });
|
|
42974
|
+
commands.push({ cmd: beta ? "ck init --beta" : "ck init", desc: "Update local project" });
|
|
42973
42975
|
} else {
|
|
42974
|
-
commands.push({
|
|
42976
|
+
commands.push({
|
|
42977
|
+
cmd: beta ? "ck init --beta" : "ck init",
|
|
42978
|
+
desc: "Initialize in current project"
|
|
42979
|
+
});
|
|
42975
42980
|
}
|
|
42976
42981
|
if (globalKits.length > 0) {
|
|
42977
42982
|
for (const kit of globalKits) {
|
|
42978
|
-
const cmd = buildInitCommand(true, kit);
|
|
42983
|
+
const cmd = buildInitCommand(true, kit, beta);
|
|
42979
42984
|
const version = globalMetadata?.kits?.[kit]?.version || globalMetadata?.version;
|
|
42980
42985
|
commands.push({
|
|
42981
42986
|
cmd,
|
|
@@ -42984,9 +42989,15 @@ async function displayKitUpdateReminder() {
|
|
|
42984
42989
|
});
|
|
42985
42990
|
}
|
|
42986
42991
|
} else if (hasGlobal) {
|
|
42987
|
-
commands.push({
|
|
42992
|
+
commands.push({
|
|
42993
|
+
cmd: beta ? "ck init -g --beta" : "ck init -g",
|
|
42994
|
+
desc: "Update global ~/.claude"
|
|
42995
|
+
});
|
|
42988
42996
|
} else {
|
|
42989
|
-
commands.push({
|
|
42997
|
+
commands.push({
|
|
42998
|
+
cmd: beta ? "ck init -g --beta" : "ck init -g",
|
|
42999
|
+
desc: "Initialize global ~/.claude"
|
|
43000
|
+
});
|
|
42990
43001
|
}
|
|
42991
43002
|
const maxCmdLen = Math.max(...commands.map((c2) => c2.cmd.length));
|
|
42992
43003
|
const pad = (cmd) => cmd.padEnd(maxCmdLen);
|
|
@@ -43052,7 +43063,7 @@ async function updateCliCommand(options) {
|
|
|
43052
43063
|
const comparison = import_compare_versions5.compareVersions(currentVersion, targetVersion);
|
|
43053
43064
|
if (comparison === 0) {
|
|
43054
43065
|
outro(`[+] Already on the latest CLI version (${currentVersion})`);
|
|
43055
|
-
await displayKitUpdateReminder();
|
|
43066
|
+
await displayKitUpdateReminder(opts.beta);
|
|
43056
43067
|
return;
|
|
43057
43068
|
}
|
|
43058
43069
|
if (comparison > 0 && !opts.release) {
|
|
@@ -43066,7 +43077,7 @@ async function updateCliCommand(options) {
|
|
|
43066
43077
|
note(`CLI update available: ${currentVersion} -> ${targetVersion}
|
|
43067
43078
|
|
|
43068
43079
|
Run 'ck update' to install`, "Update Check");
|
|
43069
|
-
await displayKitUpdateReminder();
|
|
43080
|
+
await displayKitUpdateReminder(opts.beta);
|
|
43070
43081
|
outro("Check complete");
|
|
43071
43082
|
return;
|
|
43072
43083
|
}
|
|
@@ -43106,11 +43117,11 @@ Manual update: ${updateCmd}`);
|
|
|
43106
43117
|
const newVersion = newVersionMatch ? newVersionMatch[1] : targetVersion;
|
|
43107
43118
|
s.stop(`Installed version: ${newVersion}`);
|
|
43108
43119
|
outro(`[+] Successfully updated ClaudeKit CLI to ${newVersion}`);
|
|
43109
|
-
await displayKitUpdateReminder();
|
|
43120
|
+
await displayKitUpdateReminder(opts.beta);
|
|
43110
43121
|
} catch {
|
|
43111
43122
|
s.stop("Verification completed");
|
|
43112
43123
|
outro(`[+] Update completed. Please restart your terminal to use CLI ${targetVersion}`);
|
|
43113
|
-
await displayKitUpdateReminder();
|
|
43124
|
+
await displayKitUpdateReminder(opts.beta);
|
|
43114
43125
|
}
|
|
43115
43126
|
} catch (error) {
|
|
43116
43127
|
if (error instanceof CliUpdateError) {
|