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.
- package/.turbo/turbo-build.log +4 -4
- package/dist/index.js +12 -2
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> bugzero@0.0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
|
-
[32mCJS[39m [1mdist\index.js [22m[32m62.
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
10
|
+
[32mCJS[39m [1mdist\index.js [22m[32m62.76 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 217ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1999ms
|
|
14
14
|
[32mDTS[39m [1mdist\index.d.ts [22m[32m20.00 B[39m
|
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(
|
|
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
|
}
|