claudekit-cli 3.32.1-dev.1 → 3.32.2-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.
- package/dist/index.js +19 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22905,7 +22905,7 @@ var init_update_command_help = __esm(() => {
|
|
|
22905
22905
|
},
|
|
22906
22906
|
{
|
|
22907
22907
|
flags: "-y, --yes",
|
|
22908
|
-
description: "Skip confirmation
|
|
22908
|
+
description: "Skip all confirmation prompts (CLI and kit content update)"
|
|
22909
22909
|
},
|
|
22910
22910
|
{
|
|
22911
22911
|
flags: "--beta",
|
|
@@ -22942,7 +22942,7 @@ var init_update_command_help = __esm(() => {
|
|
|
22942
22942
|
sections: [
|
|
22943
22943
|
{
|
|
22944
22944
|
title: "Note",
|
|
22945
|
-
content: "'ck update' updates the CLI tool only. To update kit content (skills, commands, rules), use 'ck init' for local or 'ck init -g' for global."
|
|
22945
|
+
content: "'ck update' updates the CLI tool only. To update kit content (skills, commands, rules), use 'ck init' for local or 'ck init -g' for global. Use --yes to skip all prompts (both CLI and kit content update) for non-interactive/CI usage."
|
|
22946
22946
|
}
|
|
22947
22947
|
]
|
|
22948
22948
|
};
|
|
@@ -49895,7 +49895,7 @@ var import_fs_extra37 = __toESM(require_lib(), 1);
|
|
|
49895
49895
|
// package.json
|
|
49896
49896
|
var package_default = {
|
|
49897
49897
|
name: "claudekit-cli",
|
|
49898
|
-
version: "3.32.
|
|
49898
|
+
version: "3.32.2-dev.1",
|
|
49899
49899
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
49900
49900
|
type: "module",
|
|
49901
49901
|
repository: {
|
|
@@ -50063,7 +50063,7 @@ async function readMetadataFile(claudeDir) {
|
|
|
50063
50063
|
return null;
|
|
50064
50064
|
}
|
|
50065
50065
|
}
|
|
50066
|
-
async function promptKitUpdate(beta) {
|
|
50066
|
+
async function promptKitUpdate(beta, yes) {
|
|
50067
50067
|
try {
|
|
50068
50068
|
const setup = await getClaudeKitSetup();
|
|
50069
50069
|
const hasLocal = !!setup.project.metadata;
|
|
@@ -50081,13 +50081,17 @@ async function promptKitUpdate(beta) {
|
|
|
50081
50081
|
const isBetaInstalled = isBetaVersion(kitVersion);
|
|
50082
50082
|
const initCmd = buildInitCommand(selection.isGlobal, selection.kit, beta || isBetaInstalled);
|
|
50083
50083
|
const promptMessage = selection.promptMessage;
|
|
50084
|
-
|
|
50085
|
-
|
|
50086
|
-
|
|
50087
|
-
|
|
50088
|
-
|
|
50089
|
-
|
|
50090
|
-
|
|
50084
|
+
if (!yes) {
|
|
50085
|
+
logger.info("");
|
|
50086
|
+
const shouldUpdate = await se({
|
|
50087
|
+
message: promptMessage
|
|
50088
|
+
});
|
|
50089
|
+
if (lD(shouldUpdate) || !shouldUpdate) {
|
|
50090
|
+
log.info("Skipped kit content update");
|
|
50091
|
+
return;
|
|
50092
|
+
}
|
|
50093
|
+
} else {
|
|
50094
|
+
logger.verbose("Auto-proceeding with kit update (--yes flag)");
|
|
50091
50095
|
}
|
|
50092
50096
|
logger.info(`Running: ${initCmd}`);
|
|
50093
50097
|
const s = de();
|
|
@@ -50152,7 +50156,7 @@ async function updateCliCommand(options2) {
|
|
|
50152
50156
|
const comparison = import_compare_versions3.compareVersions(currentVersion, targetVersion);
|
|
50153
50157
|
if (comparison === 0) {
|
|
50154
50158
|
outro(`[+] Already on the latest CLI version (${currentVersion})`);
|
|
50155
|
-
await promptKitUpdate(opts.dev || opts.beta);
|
|
50159
|
+
await promptKitUpdate(opts.dev || opts.beta, opts.yes);
|
|
50156
50160
|
return;
|
|
50157
50161
|
}
|
|
50158
50162
|
const isDevChannelSwitch = (opts.dev || opts.beta) && isBetaVersion(targetVersion) && !isBetaVersion(currentVersion);
|
|
@@ -50167,7 +50171,7 @@ async function updateCliCommand(options2) {
|
|
|
50167
50171
|
note(`CLI update available: ${currentVersion} -> ${targetVersion}
|
|
50168
50172
|
|
|
50169
50173
|
Run 'ck update' to install`, "Update Check");
|
|
50170
|
-
await promptKitUpdate(opts.dev || opts.beta);
|
|
50174
|
+
await promptKitUpdate(opts.dev || opts.beta, opts.yes);
|
|
50171
50175
|
outro("Check complete");
|
|
50172
50176
|
return;
|
|
50173
50177
|
}
|
|
@@ -50207,11 +50211,11 @@ Manual update: ${updateCmd}`);
|
|
|
50207
50211
|
const newVersion = newVersionMatch ? newVersionMatch[1] : targetVersion;
|
|
50208
50212
|
s.stop(`Installed version: ${newVersion}`);
|
|
50209
50213
|
outro(`[+] Successfully updated ClaudeKit CLI to ${newVersion}`);
|
|
50210
|
-
await promptKitUpdate(opts.dev || opts.beta);
|
|
50214
|
+
await promptKitUpdate(opts.dev || opts.beta, opts.yes);
|
|
50211
50215
|
} catch {
|
|
50212
50216
|
s.stop("Verification completed");
|
|
50213
50217
|
outro(`[+] Update completed. Please restart your terminal to use CLI ${targetVersion}`);
|
|
50214
|
-
await promptKitUpdate(opts.dev || opts.beta);
|
|
50218
|
+
await promptKitUpdate(opts.dev || opts.beta, opts.yes);
|
|
50215
50219
|
}
|
|
50216
50220
|
} catch (error) {
|
|
50217
50221
|
if (error instanceof CliUpdateError) {
|