claudekit-cli 3.5.0 → 3.5.1
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 +20 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14750,7 +14750,7 @@ var cac = (name = "") => new CAC(name);
|
|
|
14750
14750
|
// package.json
|
|
14751
14751
|
var package_default = {
|
|
14752
14752
|
name: "claudekit-cli",
|
|
14753
|
-
version: "3.5.
|
|
14753
|
+
version: "3.5.1",
|
|
14754
14754
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
14755
14755
|
type: "module",
|
|
14756
14756
|
repository: {
|
|
@@ -16092,6 +16092,7 @@ class ClaudekitChecker {
|
|
|
16092
16092
|
return results;
|
|
16093
16093
|
}
|
|
16094
16094
|
async checkCliInstallMethod() {
|
|
16095
|
+
if (false) {}
|
|
16095
16096
|
const pm = await PackageManagerDetector.detect();
|
|
16096
16097
|
const pmVersion = await PackageManagerDetector.getVersion(pm);
|
|
16097
16098
|
const displayName = PackageManagerDetector.getDisplayName(pm);
|
|
@@ -28958,7 +28959,7 @@ class FileMerger {
|
|
|
28958
28959
|
}
|
|
28959
28960
|
logger.debug(`Copying user config file (first-time setup): ${normalizedRelativePath}`);
|
|
28960
28961
|
}
|
|
28961
|
-
if (normalizedRelativePath === "settings.json") {
|
|
28962
|
+
if (normalizedRelativePath === "settings.json" || normalizedRelativePath === ".claude/settings.json") {
|
|
28962
28963
|
await this.processSettingsJson(file, destPath);
|
|
28963
28964
|
this.trackInstalledFile(normalizedRelativePath);
|
|
28964
28965
|
copiedCount++;
|
|
@@ -28977,14 +28978,15 @@ class FileMerger {
|
|
|
28977
28978
|
let processedContent = content;
|
|
28978
28979
|
if (this.isGlobal) {
|
|
28979
28980
|
const homeVar = isWindows5 ? "%USERPROFILE%" : "$HOME";
|
|
28980
|
-
processedContent =
|
|
28981
|
+
processedContent = this.transformClaudePaths(content, homeVar);
|
|
28981
28982
|
if (processedContent !== content) {
|
|
28982
|
-
logger.debug(`
|
|
28983
|
+
logger.debug(`Transformed .claude/ paths to ${homeVar}/.claude/ in settings.json for global installation`);
|
|
28983
28984
|
}
|
|
28984
|
-
} else
|
|
28985
|
-
|
|
28985
|
+
} else {
|
|
28986
|
+
const projectDirVar = isWindows5 ? '"%CLAUDE_PROJECT_DIR%"' : '"$CLAUDE_PROJECT_DIR"';
|
|
28987
|
+
processedContent = this.transformClaudePaths(content, projectDirVar);
|
|
28986
28988
|
if (processedContent !== content) {
|
|
28987
|
-
logger.debug(
|
|
28989
|
+
logger.debug(`Transformed .claude/ paths to ${projectDirVar}/.claude/ in settings.json for local installation`);
|
|
28988
28990
|
}
|
|
28989
28991
|
}
|
|
28990
28992
|
await import_fs_extra6.writeFile(destFile, processedContent, "utf-8");
|
|
@@ -28993,6 +28995,16 @@ class FileMerger {
|
|
|
28993
28995
|
await import_fs_extra6.copy(sourceFile, destFile, { overwrite: true });
|
|
28994
28996
|
}
|
|
28995
28997
|
}
|
|
28998
|
+
transformClaudePaths(content, prefix) {
|
|
28999
|
+
let transformed = content;
|
|
29000
|
+
const jsonSafePrefix = prefix.includes('"') ? prefix.replace(/"/g, "\\\"") : prefix;
|
|
29001
|
+
transformed = transformed.replace(/(node\s+)(?:\.\/)?\.claude\//g, `$1${jsonSafePrefix}/.claude/`);
|
|
29002
|
+
if (prefix.includes("HOME") || prefix.includes("USERPROFILE")) {
|
|
29003
|
+
transformed = transformed.replace(/\$CLAUDE_PROJECT_DIR/g, prefix);
|
|
29004
|
+
transformed = transformed.replace(/%CLAUDE_PROJECT_DIR%/g, prefix);
|
|
29005
|
+
}
|
|
29006
|
+
return transformed;
|
|
29007
|
+
}
|
|
28996
29008
|
async getFiles(dir, baseDir = dir) {
|
|
28997
29009
|
const files = [];
|
|
28998
29010
|
const entries = await import_fs_extra6.readdir(dir, { encoding: "utf8" });
|
|
@@ -32279,7 +32291,7 @@ import { promisify as promisify6 } from "node:util";
|
|
|
32279
32291
|
// package.json
|
|
32280
32292
|
var package_default2 = {
|
|
32281
32293
|
name: "claudekit-cli",
|
|
32282
|
-
version: "3.5.
|
|
32294
|
+
version: "3.5.1",
|
|
32283
32295
|
description: "CLI tool for bootstrapping and updating ClaudeKit projects",
|
|
32284
32296
|
type: "module",
|
|
32285
32297
|
repository: {
|