claudekit-cli 3.42.2-dev.1 → 3.42.2-dev.3

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/cli-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "3.42.2-dev.1",
3
- "generatedAt": "2026-04-28T19:38:14.540Z",
2
+ "version": "3.42.2-dev.3",
3
+ "generatedAt": "2026-04-29T14:54:46.000Z",
4
4
  "commands": {
5
5
  "agents": {
6
6
  "name": "agents",
@@ -1320,6 +1320,18 @@
1320
1320
  {
1321
1321
  "title": "Content Selection",
1322
1322
  "options": [
1323
+ {
1324
+ "flags": "--only-agents",
1325
+ "description": "Migrate agents only"
1326
+ },
1327
+ {
1328
+ "flags": "--only-commands",
1329
+ "description": "Migrate commands only"
1330
+ },
1331
+ {
1332
+ "flags": "--only-skills",
1333
+ "description": "Migrate skills only"
1334
+ },
1323
1335
  {
1324
1336
  "flags": "--config",
1325
1337
  "description": "Migrate CLAUDE.md config only"
@@ -1332,6 +1344,18 @@
1332
1344
  "flags": "--hooks",
1333
1345
  "description": "Migrate .claude/hooks only"
1334
1346
  },
1347
+ {
1348
+ "flags": "--skip-agents",
1349
+ "description": "Skip agents migration"
1350
+ },
1351
+ {
1352
+ "flags": "--skip-commands",
1353
+ "description": "Skip commands migration"
1354
+ },
1355
+ {
1356
+ "flags": "--skip-skills",
1357
+ "description": "Skip skills migration (preserve symlinks/custom layouts)"
1358
+ },
1335
1359
  {
1336
1360
  "flags": "--skip-config",
1337
1361
  "description": "Skip config migration"
package/dist/index.js CHANGED
@@ -15123,7 +15123,7 @@ function normalizeCkConfigInput(value) {
15123
15123
  }
15124
15124
  return normalized;
15125
15125
  }
15126
- var PlanValidationModeSchema, PlanFocusAreaSchema, PlanResolutionOrderSchema, ProjectTypeSchema, PackageManagerSchema, FrameworkSchema, GEMINI_MODEL_VALUES, LEGACY_GEMINI_MODEL_ALIASES, GeminiModelSchema, StatuslineModeSchema, StatuslineSectionIdSchema, StatuslineSectionConfigSchema, StatuslineThemeSchema, StatuslineLayoutSchema, CodingLevelSchema, PlanResolutionSchema, PlanValidationSchema, CkPlanConfigSchema, CkDocsConfigSchema, CkPathsConfigSchema, CkLocaleConfigSchema, CkTrustConfigSchema, CkProjectConfigSchema, CkGeminiConfigSchema, CkSkillsConfigSchema, UpdatePipelineSchema, ResolvedModelConfigSchema, ModelTierMapSchema, CkModelTaxonomySchema, CkAssertionSchema, CkHooksConfigSchema, CkSimplifyConfigSchema, CkConfigSchema, DEFAULT_CK_CONFIG, CK_HOOK_NAMES;
15126
+ var PlanValidationModeSchema, PlanFocusAreaSchema, PlanResolutionOrderSchema, ProjectTypeSchema, PackageManagerSchema, FrameworkSchema, GEMINI_MODEL_VALUES, LEGACY_GEMINI_MODEL_ALIASES, GeminiModelSchema, StatuslineModeSchema, StatuslineSectionIdSchema, StatuslineSectionConfigSchema, StatuslineThemeSchema, StatuslineLayoutSchema, CodingLevelSchema, PlanResolutionSchema, PlanValidationSchema, CkPlanConfigSchema, CkDocsConfigSchema, CkPathsConfigSchema, CkLocaleConfigSchema, CkTrustConfigSchema, CkProjectConfigSchema, CkGeminiConfigSchema, CkSkillsConfigSchema, MigrateScopeConfigSchema, UpdatePipelineSchema, ResolvedModelConfigSchema, ModelTierMapSchema, CkModelTaxonomySchema, CkAssertionSchema, CkHooksConfigSchema, CkSimplifyConfigSchema, CkConfigSchema, DEFAULT_CK_CONFIG, CK_HOOK_NAMES;
15127
15127
  var init_ck_config = __esm(() => {
15128
15128
  init_zod();
15129
15129
  PlanValidationModeSchema = exports_external.enum(["prompt", "auto", "strict", "none"]);
@@ -15261,10 +15261,19 @@ var init_ck_config = __esm(() => {
15261
15261
  useGemini: exports_external.boolean().optional()
15262
15262
  }).passthrough().optional()
15263
15263
  }).passthrough();
15264
+ MigrateScopeConfigSchema = exports_external.object({
15265
+ agents: exports_external.boolean().optional(),
15266
+ commands: exports_external.boolean().optional(),
15267
+ skills: exports_external.boolean().optional(),
15268
+ config: exports_external.boolean().optional(),
15269
+ rules: exports_external.boolean().optional(),
15270
+ hooks: exports_external.boolean().optional()
15271
+ });
15264
15272
  UpdatePipelineSchema = exports_external.object({
15265
15273
  autoInitAfterUpdate: exports_external.boolean().default(false),
15266
15274
  autoMigrateAfterUpdate: exports_external.boolean().default(false),
15267
- migrateProviders: exports_external.union([exports_external.literal("auto"), exports_external.array(exports_external.string())]).default("auto")
15275
+ migrateProviders: exports_external.union([exports_external.literal("auto"), exports_external.array(exports_external.string())]).default("auto"),
15276
+ migrateScope: MigrateScopeConfigSchema.optional()
15268
15277
  });
15269
15278
  ResolvedModelConfigSchema = exports_external.object({
15270
15279
  model: exports_external.string(),
@@ -62244,7 +62253,7 @@ var package_default;
62244
62253
  var init_package = __esm(() => {
62245
62254
  package_default = {
62246
62255
  name: "claudekit-cli",
62247
- version: "3.42.2-dev.1",
62256
+ version: "3.42.2-dev.3",
62248
62257
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
62249
62258
  type: "module",
62250
62259
  repository: {
@@ -64379,11 +64388,13 @@ async function promptMigrateUpdate(deps) {
64379
64388
  }
64380
64389
  let autoMigrate = false;
64381
64390
  let migrateProviders = "auto";
64391
+ let migrateScope;
64382
64392
  try {
64383
64393
  const ckConfig = await loadFullConfigFn(null);
64384
64394
  const pipeline = ckConfig.config.updatePipeline;
64385
64395
  autoMigrate = pipeline?.autoMigrateAfterUpdate ?? false;
64386
64396
  migrateProviders = pipeline?.migrateProviders ?? "auto";
64397
+ migrateScope = pipeline?.migrateScope;
64387
64398
  } catch {}
64388
64399
  if (!autoMigrate)
64389
64400
  return;
@@ -64419,6 +64430,20 @@ async function promptMigrateUpdate(deps) {
64419
64430
  for (const p of safeProviders) {
64420
64431
  parts.push("--agent", p);
64421
64432
  }
64433
+ if (migrateScope) {
64434
+ if (migrateScope.agents === false)
64435
+ parts.push("--skip-agents");
64436
+ if (migrateScope.commands === false)
64437
+ parts.push("--skip-commands");
64438
+ if (migrateScope.skills === false)
64439
+ parts.push("--skip-skills");
64440
+ if (migrateScope.config === false)
64441
+ parts.push("--skip-config");
64442
+ if (migrateScope.rules === false)
64443
+ parts.push("--skip-rules");
64444
+ if (migrateScope.hooks === false)
64445
+ parts.push("--skip-hooks");
64446
+ }
64422
64447
  parts.push("--yes");
64423
64448
  const cmd = parts.join(" ");
64424
64449
  logger.info(`Auto-migrating to: ${providerNames}`);
@@ -77474,6 +77499,18 @@ var init_migrate_command_help = __esm(() => {
77474
77499
  {
77475
77500
  title: "Content Selection",
77476
77501
  options: [
77502
+ {
77503
+ flags: "--only-agents",
77504
+ description: "Migrate agents only"
77505
+ },
77506
+ {
77507
+ flags: "--only-commands",
77508
+ description: "Migrate commands only"
77509
+ },
77510
+ {
77511
+ flags: "--only-skills",
77512
+ description: "Migrate skills only"
77513
+ },
77477
77514
  {
77478
77515
  flags: "--config",
77479
77516
  description: "Migrate CLAUDE.md config only"
@@ -77486,6 +77523,18 @@ var init_migrate_command_help = __esm(() => {
77486
77523
  flags: "--hooks",
77487
77524
  description: "Migrate .claude/hooks only"
77488
77525
  },
77526
+ {
77527
+ flags: "--skip-agents",
77528
+ description: "Skip agents migration"
77529
+ },
77530
+ {
77531
+ flags: "--skip-commands",
77532
+ description: "Skip commands migration"
77533
+ },
77534
+ {
77535
+ flags: "--skip-skills",
77536
+ description: "Skip skills migration (preserve symlinks/custom layouts)"
77537
+ },
77489
77538
  {
77490
77539
  flags: "--skip-config",
77491
77540
  description: "Skip config migration"
@@ -107476,28 +107525,40 @@ function createTtyProgressSink(total, context) {
107476
107525
  // src/commands/migrate/migrate-scope-resolver.ts
107477
107526
  function resolveMigrationScope(argv, options2) {
107478
107527
  const argSet = new Set(argv);
107528
+ const hasAgentsArg = argSet.has("--only-agents");
107529
+ const hasCommandsArg = argSet.has("--only-commands");
107530
+ const hasSkillsArg = argSet.has("--only-skills");
107479
107531
  const hasConfigArg = argSet.has("--config");
107480
107532
  const hasRulesArg = argSet.has("--rules");
107481
107533
  const hasHooksArg = argSet.has("--hooks");
107534
+ const hasNoAgentsArg = argSet.has("--no-agents") || argSet.has("--skip-agents");
107535
+ const hasNoCommandsArg = argSet.has("--no-commands") || argSet.has("--skip-commands");
107536
+ const hasNoSkillsArg = argSet.has("--no-skills") || argSet.has("--skip-skills");
107482
107537
  const hasNoConfigArg = argSet.has("--no-config") || argSet.has("--skip-config");
107483
107538
  const hasNoRulesArg = argSet.has("--no-rules") || argSet.has("--skip-rules");
107484
107539
  const hasNoHooksArg = argSet.has("--no-hooks") || argSet.has("--skip-hooks");
107485
- const hasNoToggleArgs = !hasConfigArg && !hasRulesArg && !hasHooksArg && !hasNoConfigArg && !hasNoRulesArg && !hasNoHooksArg;
107540
+ const hasNoToggleArgs = !hasAgentsArg && !hasCommandsArg && !hasSkillsArg && !hasConfigArg && !hasRulesArg && !hasHooksArg && !hasNoAgentsArg && !hasNoCommandsArg && !hasNoSkillsArg && !hasNoConfigArg && !hasNoRulesArg && !hasNoHooksArg;
107486
107541
  const fallbackConfigOnly = hasNoToggleArgs && options2.config === true && options2.rules !== true && options2.hooks !== true;
107487
107542
  const fallbackRulesOnly = hasNoToggleArgs && options2.rules === true && options2.config !== true && options2.hooks !== true;
107488
107543
  const fallbackHooksOnly = hasNoToggleArgs && options2.hooks === true && options2.config !== true && options2.rules !== true;
107489
107544
  const fallbackOnlyModeWithHooks = hasNoToggleArgs && options2.hooks === true && (options2.config === true || options2.rules === true);
107490
- const hasOnlyFlag = hasConfigArg || hasRulesArg || hasHooksArg || fallbackConfigOnly || fallbackRulesOnly || fallbackHooksOnly || fallbackOnlyModeWithHooks;
107545
+ const hasOnlyFlag = hasAgentsArg || hasCommandsArg || hasSkillsArg || hasConfigArg || hasRulesArg || hasHooksArg || fallbackConfigOnly || fallbackRulesOnly || fallbackHooksOnly || fallbackOnlyModeWithHooks;
107546
+ const skipAgents = hasNoAgentsArg || options2.skipAgents === true || options2.agents === false;
107547
+ const skipCommands = hasNoCommandsArg || options2.skipCommands === true || options2.commands === false;
107548
+ const skipSkills = hasNoSkillsArg || options2.skipSkills === true || options2.skills === false;
107491
107549
  const skipConfig = hasNoConfigArg || options2.skipConfig === true || options2.config === false;
107492
107550
  const skipRules = hasNoRulesArg || options2.skipRules === true || options2.rules === false;
107493
107551
  const skipHooks = hasNoHooksArg || options2.skipHooks === true || options2.hooks === false;
107552
+ const migrateAgentsOnly = hasAgentsArg;
107553
+ const migrateCommandsOnly = hasCommandsArg;
107554
+ const migrateSkillsOnly = hasSkillsArg;
107494
107555
  const migrateConfigOnly = hasConfigArg || fallbackConfigOnly || fallbackOnlyModeWithHooks && options2.config === true;
107495
107556
  const migrateRulesOnly = hasRulesArg || fallbackRulesOnly || fallbackOnlyModeWithHooks && options2.rules === true;
107496
107557
  const migrateHooksOnly = hasHooksArg || fallbackHooksOnly || fallbackOnlyModeWithHooks;
107497
107558
  return {
107498
- agents: !hasOnlyFlag,
107499
- commands: !hasOnlyFlag,
107500
- skills: !hasOnlyFlag,
107559
+ agents: hasOnlyFlag ? migrateAgentsOnly && !skipAgents : !skipAgents,
107560
+ commands: hasOnlyFlag ? migrateCommandsOnly && !skipCommands : !skipCommands,
107561
+ skills: hasOnlyFlag ? migrateSkillsOnly && !skipSkills : !skipSkills,
107501
107562
  config: hasOnlyFlag ? migrateConfigOnly && !skipConfig : !skipConfig,
107502
107563
  rules: hasOnlyFlag ? migrateRulesOnly && !skipRules : !skipRules,
107503
107564
  hooks: hasOnlyFlag ? migrateHooksOnly && !skipHooks : !skipHooks
@@ -113346,7 +113407,7 @@ function registerCommands(cli) {
113346
113407
  cli.command("api [action] [service] [path]", "Interact with ClaudeKit API and proxy services").option("--method <method>", "HTTP method for proxy requests (default: GET)").option("--body <json>", "Request body as JSON string (proxy only)").option("--query <json>", "Query params as JSON string (proxy only)").option("--key <key>", "API key to use (setup only)").option("--force", "Force re-setup even if key exists (setup only)").option("--json", "Output raw JSON instead of formatted display").option("--locale <locale>", "Locale for vidcap summary/caption (default: en)").option("--max-results <n>", "Max results for vidcap search").option("--second <s>", "Timestamp in seconds for vidcap screenshot").option("--order <order>", "Sort order for vidcap comments (time/relevance)").option("--format <fmt>", "Summary format for reviewweb (bullet/paragraph)").option("--max-length <n>", "Max summary length for reviewweb").option("--instructions <text>", "Extraction instructions for reviewweb extract").option("--template <json>", "JSON template for reviewweb extract").option("--type <type>", "Link type filter for reviewweb links (web/image/file/all)").option("--country <code>", "Country code for reviewweb SEO commands").action(async (action, service, path16, options2) => {
113347
113408
  await apiCommand(action, service, path16, options2);
113348
113409
  });
113349
- cli.command("migrate", "Migrate agents, commands, skills, config, rules, and hooks to other providers").option("-a, --agent <agents...>", "Target providers (cursor, codex, droid, 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("--hooks", "Migrate .claude/hooks/ only").option("--skip-config", "Skip config migration").option("--skip-rules", "Skip rules migration").option("--skip-hooks", "Skip hooks migration").option("--source <path>", "Custom CLAUDE.md source path (config only, not agents/commands/skills/hooks)").option("--dry-run", "Preview migration targets without writing files").option("-f, --force", "Force reinstall deleted/edited items").option("--install", "Opt-in install picker mode (select specific items to install)").option("--reconcile", "Force reconcile mode (current default when registry is valid)").option("--reinstall-empty-dirs", "Reinstall all items when their type directory is empty (default: true)").option("--respect-deletions", "Preserve deletion even when type directory is empty (disables reinstall-empty-dirs)").action(async (options2) => {
113410
+ cli.command("migrate", "Migrate agents, commands, skills, config, rules, and hooks to other providers").option("-a, --agent <agents...>", "Target providers (cursor, codex, droid, 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("--only-agents", "Migrate agents only").option("--only-commands", "Migrate commands only").option("--only-skills", "Migrate skills only").option("--config", "Migrate CLAUDE.md config only").option("--rules", "Migrate .claude/rules/ only").option("--hooks", "Migrate .claude/hooks/ only").option("--skip-agents", "Skip agents migration").option("--skip-commands", "Skip commands migration").option("--skip-skills", "Skip skills migration (preserve symlinks/custom layouts)").option("--skip-config", "Skip config migration").option("--skip-rules", "Skip rules migration").option("--skip-hooks", "Skip hooks migration").option("--source <path>", "Custom CLAUDE.md source path (config only, not agents/commands/skills/hooks)").option("--dry-run", "Preview migration targets without writing files").option("-f, --force", "Force reinstall deleted/edited items").option("--install", "Opt-in install picker mode (select specific items to install)").option("--reconcile", "Force reconcile mode (current default when registry is valid)").option("--reinstall-empty-dirs", "Reinstall all items when their type directory is empty (default: true)").option("--respect-deletions", "Preserve deletion even when type directory is empty (disables reinstall-empty-dirs)").action(async (options2) => {
113350
113411
  if (options2.agent && !Array.isArray(options2.agent)) {
113351
113412
  options2.agent = [options2.agent];
113352
113413
  }