aiblueprint-cli 1.4.26 → 1.4.28
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 +23 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -32956,13 +32956,23 @@ async function installScriptsDependencies(claudeDir) {
|
|
|
32956
32956
|
console.log(source_default.yellow(`
|
|
32957
32957
|
Installing scripts dependencies...`));
|
|
32958
32958
|
try {
|
|
32959
|
-
execSync("bun install", {
|
|
32959
|
+
execSync("bun install --no-save", {
|
|
32960
32960
|
cwd: scriptsDir,
|
|
32961
|
-
stdio: "inherit"
|
|
32961
|
+
stdio: "inherit",
|
|
32962
|
+
timeout: 60000,
|
|
32963
|
+
env: {
|
|
32964
|
+
...process.env,
|
|
32965
|
+
CI: "true"
|
|
32966
|
+
}
|
|
32962
32967
|
});
|
|
32963
32968
|
console.log(source_default.green(" ✓ Scripts dependencies installed"));
|
|
32964
32969
|
} catch (error) {
|
|
32965
|
-
|
|
32970
|
+
const isTimeout = error instanceof Error && error.message.includes("ETIMEDOUT");
|
|
32971
|
+
if (isTimeout) {
|
|
32972
|
+
console.log(source_default.yellow(" ⚠ Bun install timed out. Please run 'bun install' manually in ~/.claude/scripts"));
|
|
32973
|
+
} else {
|
|
32974
|
+
console.log(source_default.yellow(" ⚠ Failed to install scripts dependencies. Please run 'bun install' manually in ~/.claude/scripts"));
|
|
32975
|
+
}
|
|
32966
32976
|
}
|
|
32967
32977
|
}
|
|
32968
32978
|
async function installStatuslineDependencies(claudeDir) {
|
|
@@ -34957,7 +34967,16 @@ function getTokenFilePath() {
|
|
|
34957
34967
|
}
|
|
34958
34968
|
async function saveToken(githubToken) {
|
|
34959
34969
|
const tokenFile = getTokenFilePath();
|
|
34960
|
-
|
|
34970
|
+
const configDir = path11.dirname(tokenFile);
|
|
34971
|
+
try {
|
|
34972
|
+
await import_fs_extra9.default.ensureDir(configDir);
|
|
34973
|
+
} catch (error) {
|
|
34974
|
+
if (error.code === "EACCES") {
|
|
34975
|
+
throw new Error(`Permission denied creating config directory: ${configDir}
|
|
34976
|
+
` + `Please create the directory manually: mkdir -p ${configDir}`);
|
|
34977
|
+
}
|
|
34978
|
+
throw error;
|
|
34979
|
+
}
|
|
34961
34980
|
await import_fs_extra9.default.writeFile(tokenFile, githubToken, { mode: 384 });
|
|
34962
34981
|
}
|
|
34963
34982
|
async function getToken() {
|