claudekit-cli 3.35.0-dev.14 → 3.35.0-dev.15
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 +32 -30
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49405,10 +49405,11 @@ function determineAction(source, providerConfig, input, targetStateIndex, delete
|
|
|
49405
49405
|
const targetState = lookupTargetState(targetStateIndex, registryEntry.path);
|
|
49406
49406
|
const targetChangeState = getTargetChangeState(targetState, registeredTargetChecksum);
|
|
49407
49407
|
if (targetChangeState === "deleted") {
|
|
49408
|
+
const forceReinstall = input.force && !sourceChanged;
|
|
49408
49409
|
return {
|
|
49409
49410
|
...common,
|
|
49410
|
-
action: sourceChanged ? "install" : "skip",
|
|
49411
|
-
reason: sourceChanged ? "Target was deleted, CK has updates — reinstalling" : "Target was deleted by user, CK unchanged — respecting deletion",
|
|
49411
|
+
action: sourceChanged || forceReinstall ? "install" : "skip",
|
|
49412
|
+
reason: sourceChanged ? "Target was deleted, CK has updates — reinstalling" : forceReinstall ? "Force reinstall (target was deleted)" : "Target was deleted by user, CK unchanged — respecting deletion",
|
|
49412
49413
|
sourceChecksum: convertedChecksum,
|
|
49413
49414
|
registeredSourceChecksum
|
|
49414
49415
|
};
|
|
@@ -49437,8 +49438,8 @@ function determineAction(source, providerConfig, input, targetStateIndex, delete
|
|
|
49437
49438
|
if (!sourceChanged && targetChanged) {
|
|
49438
49439
|
return {
|
|
49439
49440
|
...common,
|
|
49440
|
-
action: "skip",
|
|
49441
|
-
reason: "User edited, CK unchanged — preserving edits",
|
|
49441
|
+
action: input.force ? "install" : "skip",
|
|
49442
|
+
reason: input.force ? "Force overwrite (user edits)" : "User edited, CK unchanged — preserving edits",
|
|
49442
49443
|
sourceChecksum: convertedChecksum,
|
|
49443
49444
|
registeredSourceChecksum,
|
|
49444
49445
|
currentTargetChecksum: normalizeChecksum(targetState?.currentChecksum),
|
|
@@ -52946,7 +52947,7 @@ var package_default;
|
|
|
52946
52947
|
var init_package = __esm(() => {
|
|
52947
52948
|
package_default = {
|
|
52948
52949
|
name: "claudekit-cli",
|
|
52949
|
-
version: "3.35.0-dev.
|
|
52950
|
+
version: "3.35.0-dev.15",
|
|
52950
52951
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
52951
52952
|
type: "module",
|
|
52952
52953
|
repository: {
|
|
@@ -64039,6 +64040,10 @@ var init_migrate_command_help = __esm(() => {
|
|
|
64039
64040
|
{
|
|
64040
64041
|
flags: "-y, --yes",
|
|
64041
64042
|
description: "Skip confirmation prompts"
|
|
64043
|
+
},
|
|
64044
|
+
{
|
|
64045
|
+
flags: "-f, --force",
|
|
64046
|
+
description: "Force reinstall deleted/edited items"
|
|
64042
64047
|
}
|
|
64043
64048
|
]
|
|
64044
64049
|
},
|
|
@@ -89065,29 +89070,25 @@ function displayMigrationSummary(plan, results, options2) {
|
|
|
89065
89070
|
console.log();
|
|
89066
89071
|
const { summary } = plan;
|
|
89067
89072
|
const resultSummary = summarizeExecutionResults(results);
|
|
89068
|
-
|
|
89069
|
-
|
|
89070
|
-
|
|
89071
|
-
|
|
89072
|
-
|
|
89073
|
-
|
|
89074
|
-
}
|
|
89075
|
-
|
|
89076
|
-
|
|
89077
|
-
}
|
|
89078
|
-
}
|
|
89079
|
-
|
|
89080
|
-
|
|
89081
|
-
|
|
89082
|
-
|
|
89083
|
-
|
|
89084
|
-
|
|
89085
|
-
|
|
89086
|
-
|
|
89087
|
-
}
|
|
89088
|
-
if (summary.delete > 0) {
|
|
89089
|
-
console.log(` ${options2.color ? import_picocolors24.default.dim("[-]") : "[-]"} ${summary.delete} delete (planned)`);
|
|
89090
|
-
}
|
|
89073
|
+
const installed = summary.install;
|
|
89074
|
+
const updated = summary.update;
|
|
89075
|
+
const skipped = summary.skip;
|
|
89076
|
+
const deleted = summary.delete;
|
|
89077
|
+
const failed = resultSummary.failed;
|
|
89078
|
+
if (installed > 0) {
|
|
89079
|
+
console.log(` ${options2.color ? import_picocolors24.default.green("[OK]") : "[OK]"} ${installed} installed`);
|
|
89080
|
+
}
|
|
89081
|
+
if (updated > 0) {
|
|
89082
|
+
console.log(` ${options2.color ? import_picocolors24.default.green("[OK]") : "[OK]"} ${updated} updated`);
|
|
89083
|
+
}
|
|
89084
|
+
if (skipped > 0) {
|
|
89085
|
+
console.log(` ${options2.color ? import_picocolors24.default.dim("[i]") : "[i]"} ${skipped} skipped`);
|
|
89086
|
+
}
|
|
89087
|
+
if (deleted > 0) {
|
|
89088
|
+
console.log(` ${options2.color ? import_picocolors24.default.dim("[-]") : "[-]"} ${deleted} deleted`);
|
|
89089
|
+
}
|
|
89090
|
+
if (failed > 0) {
|
|
89091
|
+
console.log(` ${options2.color ? import_picocolors24.default.red("[X]") : "[X]"} ${failed} failed`);
|
|
89091
89092
|
}
|
|
89092
89093
|
const conflicts = plan.actions.filter((a3) => a3.action === "conflict");
|
|
89093
89094
|
if (conflicts.length > 0) {
|
|
@@ -89372,7 +89373,8 @@ async function migrateCommand(options2) {
|
|
|
89372
89373
|
sourceItems: sourceStates,
|
|
89373
89374
|
registry,
|
|
89374
89375
|
targetStates,
|
|
89375
|
-
providerConfigs
|
|
89376
|
+
providerConfigs,
|
|
89377
|
+
force: options2.force
|
|
89376
89378
|
});
|
|
89377
89379
|
reconcileSpinner.stop("Plan computed");
|
|
89378
89380
|
const useColor = process.stdout.isTTY && !process.env.NO_COLOR;
|
|
@@ -91563,7 +91565,7 @@ function registerCommands(cli) {
|
|
|
91563
91565
|
}
|
|
91564
91566
|
await commandsCommand(options2);
|
|
91565
91567
|
});
|
|
91566
|
-
cli.command("migrate", "Migrate agents, commands, skills, config, and rules to other providers").option("-a, --agent <agents...>", "Target providers (cursor, codex, opencode, etc.)").option("-g, --global", "Install globally instead of project-level").option("--all", "Migrate to all supported providers").option("-y, --yes", "Skip confirmation prompts").option("--config", "Migrate CLAUDE.md config only").option("--rules", "Migrate .claude/rules/ only").option("--skip-config", "Skip config migration").option("--skip-rules", "Skip rules migration").option("--source <path>", "Custom CLAUDE.md source path (config only, not agents/commands/skills)").option("--dry-run", "Preview migration targets without writing files").action(async (options2) => {
|
|
91568
|
+
cli.command("migrate", "Migrate agents, commands, skills, config, and rules to other providers").option("-a, --agent <agents...>", "Target providers (cursor, codex, opencode, etc.)").option("-g, --global", "Install globally instead of project-level").option("--all", "Migrate to all supported providers").option("-y, --yes", "Skip confirmation prompts").option("--config", "Migrate CLAUDE.md config only").option("--rules", "Migrate .claude/rules/ only").option("--skip-config", "Skip config migration").option("--skip-rules", "Skip rules migration").option("--source <path>", "Custom CLAUDE.md source path (config only, not agents/commands/skills)").option("--dry-run", "Preview migration targets without writing files").option("-f, --force", "Force reinstall deleted/edited items").action(async (options2) => {
|
|
91567
91569
|
if (options2.agent && !Array.isArray(options2.agent)) {
|
|
91568
91570
|
options2.agent = [options2.agent];
|
|
91569
91571
|
}
|