claudekit-cli 4.3.1-dev.10 → 4.3.1-dev.11

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": "4.3.1-dev.10",
3
- "generatedAt": "2026-05-21T01:08:27.917Z",
2
+ "version": "4.3.1-dev.11",
3
+ "generatedAt": "2026-05-21T01:29:33.371Z",
4
4
  "commands": {
5
5
  "agents": {
6
6
  "name": "agents",
package/dist/index.js CHANGED
@@ -63357,7 +63357,7 @@ var package_default;
63357
63357
  var init_package = __esm(() => {
63358
63358
  package_default = {
63359
63359
  name: "claudekit-cli",
63360
- version: "4.3.1-dev.10",
63360
+ version: "4.3.1-dev.11",
63361
63361
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
63362
63362
  type: "module",
63363
63363
  repository: {
@@ -63903,7 +63903,10 @@ function isLegacyDescriptiveNamePrompt(entry) {
63903
63903
  const prompt = entry.prompt;
63904
63904
  if (entry.type !== "prompt" || typeof prompt !== "string")
63905
63905
  return false;
63906
- return prompt.includes("Use kebab-case file naming") && prompt.includes("self-documenting") && prompt.includes("Grep, Glob, Search");
63906
+ const lowerPrompt = prompt.toLowerCase();
63907
+ const isOriginalLegacyPrompt = prompt.includes("Use kebab-case file naming") && prompt.includes("self-documenting") && prompt.includes("Grep, Glob, Search");
63908
+ const isDescriptiveNameKebabPrompt = lowerPrompt.includes("descriptive-name") && lowerPrompt.includes("kebab-case") && (lowerPrompt.includes("file") || lowerPrompt.includes("filename"));
63909
+ return isOriginalLegacyPrompt || isDescriptiveNameKebabPrompt;
63907
63910
  }
63908
63911
  function extractHookFilePath(command, hookDir) {
63909
63912
  if (!command)
@@ -108487,6 +108490,19 @@ async function repairMissingHookFileReferencesAfterInit(ctx) {
108487
108490
  logger.debug(`Hook file reference repair skipped after init: ${error instanceof Error ? error.message : "unknown"}`);
108488
108491
  }
108489
108492
  }
108493
+ async function repairLegacyHookPromptsAfterInit(ctx) {
108494
+ if (!ctx.resolvedDir)
108495
+ return;
108496
+ const projectDir = ctx.options.global ? process.cwd() : ctx.resolvedDir;
108497
+ try {
108498
+ const repaired = await repairLegacyHookPrompts(projectDir);
108499
+ if (repaired > 0) {
108500
+ logger.info(`Pruned ${repaired} legacy hook prompt(s)`);
108501
+ }
108502
+ } catch (error) {
108503
+ logger.debug(`Legacy hook prompt repair skipped after init: ${error instanceof Error ? error.message : "unknown"}`);
108504
+ }
108505
+ }
108490
108506
  async function executeInit(options2, prompts) {
108491
108507
  let ctx = createInitContext(options2, prompts);
108492
108508
  ctx = await resolveOptions(ctx);
@@ -108560,6 +108576,7 @@ async function executeInit(options2, prompts) {
108560
108576
  Installed ${installedKits.length} kits: ${installedKits.map((k2) => AVAILABLE_KITS[k2].name).join(", ")}`);
108561
108577
  }
108562
108578
  if (!isSyncMode) {
108579
+ await repairLegacyHookPromptsAfterInit(ctx);
108563
108580
  await repairMissingHookFileReferencesAfterInit(ctx);
108564
108581
  }
108565
108582
  prompts.outro(`Project initialized successfully at ${ctx.resolvedDir}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "4.3.1-dev.10",
3
+ "version": "4.3.1-dev.11",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {