claudekit-cli 3.35.0-dev.14 → 3.35.0-dev.16
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 +45 -36
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10868,8 +10868,8 @@ var init_provider_registry = __esm(() => {
|
|
|
10868
10868
|
nestedCommands: false
|
|
10869
10869
|
},
|
|
10870
10870
|
skills: {
|
|
10871
|
-
projectPath: ".
|
|
10872
|
-
globalPath: join(home, ".
|
|
10871
|
+
projectPath: ".agents/skills",
|
|
10872
|
+
globalPath: join(home, ".agents/skills"),
|
|
10873
10873
|
format: "direct-copy",
|
|
10874
10874
|
writeStrategy: "per-file",
|
|
10875
10875
|
fileExtension: ".md"
|
|
@@ -10883,7 +10883,7 @@ var init_provider_registry = __esm(() => {
|
|
|
10883
10883
|
},
|
|
10884
10884
|
rules: {
|
|
10885
10885
|
projectPath: "AGENTS.md",
|
|
10886
|
-
globalPath: join(home, ".codex/
|
|
10886
|
+
globalPath: join(home, ".codex/AGENTS.md"),
|
|
10887
10887
|
format: "md-strip",
|
|
10888
10888
|
writeStrategy: "merge-single",
|
|
10889
10889
|
fileExtension: ".md"
|
|
@@ -10891,12 +10891,12 @@ var init_provider_registry = __esm(() => {
|
|
|
10891
10891
|
detect: async () => hasAnyInstallSignal([
|
|
10892
10892
|
join(cwd, ".codex/config.toml"),
|
|
10893
10893
|
join(cwd, ".codex/prompts"),
|
|
10894
|
-
join(cwd, ".
|
|
10894
|
+
join(cwd, ".agents/skills"),
|
|
10895
10895
|
join(home, ".codex/config.toml"),
|
|
10896
10896
|
join(home, ".codex/AGENTS.md"),
|
|
10897
10897
|
join(home, ".codex/instructions.md"),
|
|
10898
10898
|
join(home, ".codex/prompts"),
|
|
10899
|
-
join(home, ".
|
|
10899
|
+
join(home, ".agents/skills")
|
|
10900
10900
|
])
|
|
10901
10901
|
},
|
|
10902
10902
|
cursor: {
|
|
@@ -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.16",
|
|
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;
|
|
@@ -89405,7 +89407,14 @@ async function migrateCommand(options2) {
|
|
|
89405
89407
|
}
|
|
89406
89408
|
}
|
|
89407
89409
|
console.log();
|
|
89408
|
-
const
|
|
89410
|
+
const typePriority = {
|
|
89411
|
+
config: 0,
|
|
89412
|
+
rules: 1,
|
|
89413
|
+
agent: 2,
|
|
89414
|
+
command: 3,
|
|
89415
|
+
skill: 4
|
|
89416
|
+
};
|
|
89417
|
+
const plannedExecActions = plan.actions.filter(shouldExecuteAction).sort((a3, b3) => (typePriority[a3.type] ?? 99) - (typePriority[b3.type] ?? 99));
|
|
89409
89418
|
const plannedDeleteActions = plan.actions.filter((a3) => a3.action === "delete");
|
|
89410
89419
|
if (!options2.yes) {
|
|
89411
89420
|
const totalItems = plannedExecActions.length + plannedDeleteActions.length;
|
|
@@ -91563,7 +91572,7 @@ function registerCommands(cli) {
|
|
|
91563
91572
|
}
|
|
91564
91573
|
await commandsCommand(options2);
|
|
91565
91574
|
});
|
|
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) => {
|
|
91575
|
+
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
91576
|
if (options2.agent && !Array.isArray(options2.agent)) {
|
|
91568
91577
|
options2.agent = [options2.agent];
|
|
91569
91578
|
}
|