bugzero 0.0.24 → 0.0.25

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > bugzero@0.0.24 build D:\WD projects\OpsPilot\packages\cli
2
+ > bugzero@0.0.25 build D:\WD projects\OpsPilot\packages\cli
3
3
  > tsup src/index.ts --format cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -7,8 +7,8 @@
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  CJS Build start
10
- CJS dist\index.js 62.01 KB
11
- CJS ⚡️ Build success in 117ms
10
+ CJS dist\index.js 62.76 KB
11
+ CJS ⚡️ Build success in 217ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 2050ms
13
+ DTS ⚡️ Build success in 1999ms
14
14
  DTS dist\index.d.ts 20.00 B
package/dist/index.js CHANGED
@@ -659,8 +659,18 @@ var require_dist3 = __commonJS({
659
659
  \u274C [BugZero] OpenRouter API Error: ${msg}`);
660
660
  if (error.response?.status === 401) {
661
661
  console.error(`\u{1F449} Please check if your OPENROUTER_API_KEY is correct and active.`);
662
- } else if (error.response?.status === 429) {
663
- console.error(`\u{1F449} Rate limit exceeded or insufficient credits. Please check your OpenRouter balance.`);
662
+ } else if (error.response?.status === 429 || error.response?.status === 402 || /credit/i.test(msg) || /token/i.test(msg)) {
663
+ console.error(`
664
+ \u{1F449} You have insufficient OpenRouter credits (or too low balance) for the selected model.`);
665
+ console.error(`\u{1F449} We suggest using the 'bugzero vibe' command to change to a FREE model:`);
666
+ console.error(` 1. Run the command: npx bugzero@latest vibe (or bugzero vibe)`);
667
+ console.error(` 2. Select "Custom Model" and enter one of these free model IDs:`);
668
+ console.error(` - google/gemma-2-9b-it:free`);
669
+ console.error(` - meta-llama/llama-3-8b-instruct:free`);
670
+ console.error(` - mistralai/mistral-7b-instruct:free`);
671
+ console.error(` - microsoft/phi-3-medium-128k-instruct:free`);
672
+ console.error(` - nvidia/llama-3.1-nemotron-70b-instruct:free
673
+ `);
664
674
  }
665
675
  throw new Error(`OpenRouter API failed: ${msg}`);
666
676
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugzero",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "bin": {
5
5
  "bugzero": "dist/index.js"
6
6
  },