claudekit-cli 3.42.2-dev.10 → 3.42.2-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": "3.42.2-dev.10",
3
- "generatedAt": "2026-05-04T18:54:15.233Z",
2
+ "version": "3.42.2-dev.11",
3
+ "generatedAt": "2026-05-05T16:35:17.350Z",
4
4
  "commands": {
5
5
  "agents": {
6
6
  "name": "agents",
package/dist/index.js CHANGED
@@ -45102,6 +45102,12 @@ function repairClaudeNodeCommandPath(cmd, root) {
45102
45102
  if (!cmd || !isNodeClaudeCommand(cmd)) {
45103
45103
  return { command: cmd ?? "", changed: false, issue: null };
45104
45104
  }
45105
+ if (root === "$HOME" && /^node\s+"\$HOME\/\.claude\/[^"]+"/.test(cmd)) {
45106
+ return { command: cmd, changed: false, issue: null };
45107
+ }
45108
+ if (root === "$CLAUDE_PROJECT_DIR" && /^node\s+"\$CLAUDE_PROJECT_DIR"\/\.claude\/\S+/.test(cmd)) {
45109
+ return { command: cmd, changed: false, issue: null };
45110
+ }
45105
45111
  const bareRelativeMatch = cmd.match(/^(node\s+)(?:\.\/)?(\.claude[/\\][^\s"]+)(.*)$/);
45106
45112
  if (bareRelativeMatch) {
45107
45113
  const [, nodePrefix, relativePath, suffix] = bareRelativeMatch;
@@ -62343,7 +62349,7 @@ var package_default;
62343
62349
  var init_package = __esm(() => {
62344
62350
  package_default = {
62345
62351
  name: "claudekit-cli",
62346
- version: "3.42.2-dev.10",
62352
+ version: "3.42.2-dev.11",
62347
62353
  description: "CLI tool for bootstrapping and updating ClaudeKit projects",
62348
62354
  type: "module",
62349
62355
  repository: {
@@ -85136,6 +85142,9 @@ function getClaudeSettingsFiles(projectDir) {
85136
85142
  ];
85137
85143
  return candidates.filter((candidate) => existsSync54(candidate.path));
85138
85144
  }
85145
+ function isAlreadyCanonical(cmd) {
85146
+ return /^node\s+"\$HOME\/\.claude\/[^"]+"/.test(cmd) || /^node\s+"\$CLAUDE_PROJECT_DIR"\/\.claude\/\S+/.test(cmd);
85147
+ }
85139
85148
  function collectHookCommandFindings(settings, settingsFile) {
85140
85149
  if (!settings.hooks) {
85141
85150
  return [];
@@ -85144,6 +85153,8 @@ function collectHookCommandFindings(settings, settingsFile) {
85144
85153
  for (const [eventName, entries] of Object.entries(settings.hooks)) {
85145
85154
  for (const entry of entries) {
85146
85155
  if ("command" in entry && typeof entry.command === "string") {
85156
+ if (isAlreadyCanonical(entry.command))
85157
+ continue;
85147
85158
  const repair = repairClaudeNodeCommandPath(entry.command, settingsFile.root);
85148
85159
  if (repair.changed && repair.issue) {
85149
85160
  findings.push({
@@ -85163,6 +85174,8 @@ function collectHookCommandFindings(settings, settingsFile) {
85163
85174
  if (!hook.command) {
85164
85175
  continue;
85165
85176
  }
85177
+ if (isAlreadyCanonical(hook.command))
85178
+ continue;
85166
85179
  const repair = repairClaudeNodeCommandPath(hook.command, settingsFile.root);
85167
85180
  if (!repair.changed || !repair.issue) {
85168
85181
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claudekit-cli",
3
- "version": "3.42.2-dev.10",
3
+ "version": "3.42.2-dev.11",
4
4
  "description": "CLI tool for bootstrapping and updating ClaudeKit projects",
5
5
  "type": "module",
6
6
  "repository": {