aiblueprint-cli 1.4.27 → 1.4.29

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.
Files changed (2) hide show
  1. package/dist/cli.js +33 -11
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -32932,22 +32932,34 @@ async function checkAndInstallDependencies() {
32932
32932
  return false;
32933
32933
  }
32934
32934
  };
32935
- if (!checkCommand("bun")) {
32935
+ if (checkCommand("bun")) {
32936
+ console.log(source_default.gray(" bun already installed, skipping..."));
32937
+ } else {
32936
32938
  console.log(source_default.yellow(`
32937
32939
  Installing bun...`));
32938
32940
  try {
32939
- execSync("npm install -g bun", { stdio: "inherit" });
32940
- } catch (error) {
32941
- console.log(source_default.red(" Failed to install bun. Please install it manually: npm install -g bun"));
32941
+ execSync("npm install -g bun", {
32942
+ stdio: "inherit",
32943
+ timeout: 60000,
32944
+ env: { ...process.env, CI: "true" }
32945
+ });
32946
+ } catch {
32947
+ console.log(source_default.yellow(" ⚠ Failed to install bun. Please install it manually: npm install -g bun"));
32942
32948
  }
32943
32949
  }
32944
- if (!checkCommand("ccusage")) {
32950
+ if (checkCommand("ccusage")) {
32951
+ console.log(source_default.gray(" ccusage already installed, skipping..."));
32952
+ } else {
32945
32953
  console.log(source_default.yellow(`
32946
32954
  Installing ccusage...`));
32947
32955
  try {
32948
- execSync("npm install -g ccusage", { stdio: "inherit" });
32949
- } catch (error) {
32950
- console.log(source_default.red(" Failed to install ccusage. Please install it manually: npm install -g ccusage"));
32956
+ execSync("npm install -g ccusage", {
32957
+ stdio: "inherit",
32958
+ timeout: 60000,
32959
+ env: { ...process.env, CI: "true" }
32960
+ });
32961
+ } catch {
32962
+ console.log(source_default.yellow(" ⚠ Failed to install ccusage. Please install it manually: npm install -g ccusage"));
32951
32963
  }
32952
32964
  }
32953
32965
  }
@@ -32956,13 +32968,23 @@ async function installScriptsDependencies(claudeDir) {
32956
32968
  console.log(source_default.yellow(`
32957
32969
  Installing scripts dependencies...`));
32958
32970
  try {
32959
- execSync("bun install", {
32971
+ execSync("bun install --no-save", {
32960
32972
  cwd: scriptsDir,
32961
- stdio: "inherit"
32973
+ stdio: "inherit",
32974
+ timeout: 60000,
32975
+ env: {
32976
+ ...process.env,
32977
+ CI: "true"
32978
+ }
32962
32979
  });
32963
32980
  console.log(source_default.green(" ✓ Scripts dependencies installed"));
32964
32981
  } catch (error) {
32965
- console.log(source_default.red(" Failed to install scripts dependencies. Please run 'bun install' manually in ~/.claude/scripts"));
32982
+ const isTimeout = error instanceof Error && error.message.includes("ETIMEDOUT");
32983
+ if (isTimeout) {
32984
+ console.log(source_default.yellow(" ⚠ Bun install timed out. Please run 'bun install' manually in ~/.claude/scripts"));
32985
+ } else {
32986
+ console.log(source_default.yellow(" ⚠ Failed to install scripts dependencies. Please run 'bun install' manually in ~/.claude/scripts"));
32987
+ }
32966
32988
  }
32967
32989
  }
32968
32990
  async function installStatuslineDependencies(claudeDir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.4.27",
3
+ "version": "1.4.29",
4
4
  "description": "AIBlueprint CLI for setting up Claude Code configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",