bugzero 0.0.33 → 0.0.34
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 +3 -3
- package/README.md +13 -9
- package/demo.svg +81 -0
- 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.34 build /home/runner/work/Bugzero/Bugzero/apps/bugzero
|
|
3
3
|
> tsup src/index.ts --format cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[32mCJS[39m [1mdist/index.js [22m[32m77.80 KB[39m
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 57ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1273ms
|
|
14
14
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m20.00 B[39m
|
package/README.md
CHANGED
|
@@ -13,11 +13,15 @@
|
|
|
13
13
|
|
|
14
14
|
**BugZero** is an autonomous, AI-powered CLI that detects and repairs build, lint, and test failures — locally or as a GitHub Action that opens the fix as a pull request.
|
|
15
15
|
|
|
16
|
+
<img src="https://raw.githubusercontent.com/Saksham1800t/Bugzero/main/apps/bugzero/demo.svg" alt="Animated terminal demo of bugzero rescue detecting and fixing a TypeScript build error" width="700" />
|
|
17
|
+
|
|
18
|
+
<sub>Illustrative animation of a <code>bugzero rescue</code> run using the tool's real log output format.</sub>
|
|
19
|
+
|
|
16
20
|
</div>
|
|
17
21
|
|
|
18
22
|
---
|
|
19
23
|
|
|
20
|
-
##
|
|
24
|
+
## Quick Start
|
|
21
25
|
|
|
22
26
|
```bash
|
|
23
27
|
npm install -g bugzero
|
|
@@ -33,11 +37,11 @@ That's it — BugZero runs your build, diagnoses the failure, generates a patch,
|
|
|
33
37
|
|
|
34
38
|
Modern applications fail at build and deployment time for reasons that are repetitive, predictable, and ultimately fixable by a knowledgeable agent. BugZero bridges the gap between raw compiler output and working code — automatically.
|
|
35
39
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
40
|
+
- **No more debugging the same TypeScript error twice.** The agent reads the error, finds the file, generates the fix, and verifies it.
|
|
41
|
+
- **Safe by design.** Every modified file gets a `.opspilot.bak` backup, and a multi-file fix is applied and rolled back as one atomic unit.
|
|
42
|
+
- **Forgiving, not brittle.** If the AI's suggested patch doesn't match the file byte-for-byte, BugZero falls back to whitespace-normalized and similarity-scored matching before giving up.
|
|
43
|
+
- **Model agnostic.** DeepSeek, Claude, Gemini, GPT-4o, Llama, or any model on OpenRouter.
|
|
44
|
+
- **CI-native.** Run it as a GitHub Action instead of a local CLI, and let it open the fix as a PR.
|
|
41
45
|
|
|
42
46
|
---
|
|
43
47
|
|
|
@@ -84,7 +88,7 @@ bugzero rescue
|
|
|
84
88
|
|
|
85
89
|
---
|
|
86
90
|
|
|
87
|
-
##
|
|
91
|
+
## Key Features
|
|
88
92
|
|
|
89
93
|
| Feature | Description |
|
|
90
94
|
|---|---|
|
|
@@ -102,7 +106,7 @@ bugzero rescue
|
|
|
102
106
|
|
|
103
107
|
---
|
|
104
108
|
|
|
105
|
-
##
|
|
109
|
+
## GitHub Action Mode
|
|
106
110
|
|
|
107
111
|
Instead of running BugZero on your machine, run it in CI: when a check fails, it opens a pull request with the fix instead of patching your local checkout.
|
|
108
112
|
|
|
@@ -260,7 +264,7 @@ BugZero provides clear, actionable output for common failure modes:
|
|
|
260
264
|
---
|
|
261
265
|
|
|
262
266
|
<details>
|
|
263
|
-
<summary><strong
|
|
267
|
+
<summary><strong>Development Setup</strong> (contributing to BugZero itself)</summary>
|
|
264
268
|
|
|
265
269
|
Clone the repository and install dependencies. This project uses a pnpm monorepo managed by Turborepo, with a Vitest test suite and GitHub Actions CI.
|
|
266
270
|
|
package/demo.svg
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<svg viewBox="0 0 700 520" xmlns="http://www.w3.org/2000/svg" font-family="SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace">
|
|
2
|
+
<title>bugzero rescue demo</title>
|
|
3
|
+
<desc>Illustrative animation of "bugzero rescue" fixing a small TypeScript error. Log lines are the tool's real output format; the example error is a stand-in, not a captured recording.</desc>
|
|
4
|
+
|
|
5
|
+
<style>
|
|
6
|
+
text { font-size: 13px; }
|
|
7
|
+
.prompt { fill: #58a6ff; }
|
|
8
|
+
.out { fill: #c9d1d9; }
|
|
9
|
+
.ok { fill: #3fb950; }
|
|
10
|
+
.dim { fill: #8b949e; }
|
|
11
|
+
.dot { }
|
|
12
|
+
.titlebar-label { fill: #8b949e; font-size: 12px; }
|
|
13
|
+
|
|
14
|
+
@keyframes gA { 0% { opacity: 0; } 2% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
15
|
+
@keyframes gB { 0%, 6% { opacity: 0; } 9% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
16
|
+
@keyframes gC { 0%, 16% { opacity: 0; } 19% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
17
|
+
@keyframes gD { 0%, 26% { opacity: 0; } 29% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
18
|
+
@keyframes gE { 0%, 38% { opacity: 0; } 41% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
19
|
+
@keyframes gF { 0%, 48% { opacity: 0; } 50% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
20
|
+
@keyframes gG { 0%, 56% { opacity: 0; } 59% { opacity: 1; } 90% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 0; } }
|
|
21
|
+
|
|
22
|
+
.groupA { animation: gA 14s ease-in-out infinite; }
|
|
23
|
+
.groupB { animation: gB 14s ease-in-out infinite; }
|
|
24
|
+
.groupC { animation: gC 14s ease-in-out infinite; }
|
|
25
|
+
.groupD { animation: gD 14s ease-in-out infinite; }
|
|
26
|
+
.groupE { animation: gE 14s ease-in-out infinite; }
|
|
27
|
+
.groupF { animation: gF 14s ease-in-out infinite; }
|
|
28
|
+
.groupG { animation: gG 14s ease-in-out infinite; }
|
|
29
|
+
</style>
|
|
30
|
+
|
|
31
|
+
<rect x="0" y="0" width="700" height="520" rx="10" fill="#0d1117" />
|
|
32
|
+
<rect x="0" y="0" width="700" height="34" rx="10" fill="#161b22" />
|
|
33
|
+
<rect x="0" y="24" width="700" height="10" fill="#161b22" />
|
|
34
|
+
|
|
35
|
+
<circle class="dot" cx="20" cy="17" r="6" fill="#ff5f56" />
|
|
36
|
+
<circle class="dot" cx="40" cy="17" r="6" fill="#ffbd2e" />
|
|
37
|
+
<circle class="dot" cx="60" cy="17" r="6" fill="#27c93f" />
|
|
38
|
+
<text class="titlebar-label" x="350" y="21" text-anchor="middle">bugzero rescue</text>
|
|
39
|
+
|
|
40
|
+
<g class="groupA">
|
|
41
|
+
<text class="prompt" x="18" y="54">$ bugzero rescue --path ./demo-project</text>
|
|
42
|
+
</g>
|
|
43
|
+
|
|
44
|
+
<g class="groupB">
|
|
45
|
+
<text class="out" x="18" y="83">🤖 BugZero Fix</text>
|
|
46
|
+
<text class="out" x="18" y="102"> Path: ./demo-project</text>
|
|
47
|
+
<text class="out" x="18" y="121"> Framework: typescript</text>
|
|
48
|
+
<text class="out" x="18" y="140"> Max attempts: 3</text>
|
|
49
|
+
</g>
|
|
50
|
+
|
|
51
|
+
<g class="groupC">
|
|
52
|
+
<text class="out" x="18" y="169">[BugZero] Running validation pipeline in: ./demo-project</text>
|
|
53
|
+
<text class="out" x="18" y="188">[BugZero] Running build...</text>
|
|
54
|
+
<text class="out" x="18" y="207">[BugZero] Detected 1 error(s) (type: typescript)</text>
|
|
55
|
+
</g>
|
|
56
|
+
|
|
57
|
+
<g class="groupD">
|
|
58
|
+
<text class="out" x="18" y="236">[BugZero] Attempt 1/3 — asking AI…</text>
|
|
59
|
+
</g>
|
|
60
|
+
|
|
61
|
+
<g class="groupE">
|
|
62
|
+
<text class="out" x="18" y="265">[BugZero] Patching 1 file: src/sum.ts</text>
|
|
63
|
+
<text class="out" x="18" y="284">[BugZero] Reason: Fixed subtraction typo in the sum() function</text>
|
|
64
|
+
<text class="out" x="18" y="303">[BugZero] Backup saved to: src/sum.ts.opspilot.bak</text>
|
|
65
|
+
<text class="out" x="18" y="322">[BugZero] Re-running validation pipeline to verify fix…</text>
|
|
66
|
+
</g>
|
|
67
|
+
|
|
68
|
+
<g class="groupF">
|
|
69
|
+
<text class="ok" x="18" y="351">[BugZero] ✅ Validation succeeded!</text>
|
|
70
|
+
</g>
|
|
71
|
+
|
|
72
|
+
<g class="groupG">
|
|
73
|
+
<text class="dim" x="18" y="380">──────────────────────────────────────────────</text>
|
|
74
|
+
<text class="ok" x="18" y="399">✅ Build fixed after 1 attempt(s)!</text>
|
|
75
|
+
<text class="out" x="18" y="418"> Model: deepseek/deepseek-chat</text>
|
|
76
|
+
<text class="out" x="18" y="437"> Tokens: Prompt: 812 | Completion: 96 | Total: 908</text>
|
|
77
|
+
<text class="out" x="18" y="456"> File: src/sum.ts</text>
|
|
78
|
+
<text class="out" x="18" y="475"> Reason: Fixed subtraction typo in the sum() function</text>
|
|
79
|
+
<text class="out" x="18" y="494"> Root cause: sum() used the - operator instead of +</text>
|
|
80
|
+
</g>
|
|
81
|
+
</svg>
|