aiblueprint-cli 1.4.55 → 1.4.56
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/cli.js +15 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33321,6 +33321,20 @@ async function replacePathPlaceholdersInDir(dir, claudeDir) {
|
|
|
33321
33321
|
}
|
|
33322
33322
|
}
|
|
33323
33323
|
}
|
|
33324
|
+
async function applyPathPlaceholders(target, claudeDir) {
|
|
33325
|
+
const stat = await import_fs_extra5.default.stat(target).catch(() => null);
|
|
33326
|
+
if (!stat)
|
|
33327
|
+
return;
|
|
33328
|
+
if (stat.isDirectory()) {
|
|
33329
|
+
await replacePathPlaceholdersInDir(target, claudeDir);
|
|
33330
|
+
} else if (isTextFile(target)) {
|
|
33331
|
+
const content = await import_fs_extra5.default.readFile(target, "utf-8");
|
|
33332
|
+
const replaced = replaceClaudePathPlaceholder(content, claudeDir);
|
|
33333
|
+
if (replaced !== content) {
|
|
33334
|
+
await import_fs_extra5.default.writeFile(target, replaced, "utf-8");
|
|
33335
|
+
}
|
|
33336
|
+
}
|
|
33337
|
+
}
|
|
33324
33338
|
function transformFileContent(content, claudeDir) {
|
|
33325
33339
|
let transformed = content;
|
|
33326
33340
|
transformed = replaceClaudePathPlaceholder(transformed, claudeDir);
|
|
@@ -33424,20 +33438,6 @@ async function flushTelemetry() {
|
|
|
33424
33438
|
var import_fs_extra6 = __toESM(require_lib4(), 1);
|
|
33425
33439
|
import os9 from "os";
|
|
33426
33440
|
import path9 from "path";
|
|
33427
|
-
async function applyPathPlaceholders(target, claudeDir) {
|
|
33428
|
-
const stat = await import_fs_extra6.default.stat(target).catch(() => null);
|
|
33429
|
-
if (!stat)
|
|
33430
|
-
return;
|
|
33431
|
-
if (stat.isDirectory()) {
|
|
33432
|
-
await replacePathPlaceholdersInDir(target, claudeDir);
|
|
33433
|
-
} else if (isTextFile(target)) {
|
|
33434
|
-
const content = await import_fs_extra6.default.readFile(target, "utf-8");
|
|
33435
|
-
const replaced = replaceClaudePathPlaceholder(content, claudeDir);
|
|
33436
|
-
if (replaced !== content) {
|
|
33437
|
-
await import_fs_extra6.default.writeFile(target, replaced, "utf-8");
|
|
33438
|
-
}
|
|
33439
|
-
}
|
|
33440
|
-
}
|
|
33441
33441
|
var AGENT_CATEGORIES = ["skills", "agents"];
|
|
33442
33442
|
async function platformSymlink(source, target) {
|
|
33443
33443
|
await import_fs_extra6.default.ensureDir(path9.dirname(target));
|
|
@@ -35203,7 +35203,7 @@ async function copyAgentCategory(sourceCategoryDir, category, agentsDir, claudeD
|
|
|
35203
35203
|
continue;
|
|
35204
35204
|
}
|
|
35205
35205
|
await import_fs_extra10.default.copy(src, dst, { overwrite: true });
|
|
35206
|
-
await
|
|
35206
|
+
await applyPathPlaceholders(dst, claudeDir);
|
|
35207
35207
|
onProgress?.(`${category}/${entry.name}`, entry.isDirectory() ? "directory" : "file");
|
|
35208
35208
|
}
|
|
35209
35209
|
}
|