bugzero 0.0.56 → 0.0.58
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/README.md +25 -1
- package/dist/index.js +1422 -1109
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,12 +212,20 @@ bugzero hunt --no-ai-report
|
|
|
212
212
|
### `bugzero rescue`
|
|
213
213
|
Run the full AI-powered repair loop. Detects build failures, generates precise code patches, applies them, and verifies the result.
|
|
214
214
|
|
|
215
|
-
When it fixes your project, `rescue` prints a diff of exactly what changed in each file, so you can review it at once. The original of every edited file is kept next to it as `<file>.opspilot.bak
|
|
215
|
+
When it fixes your project, `rescue` prints a diff of exactly what changed in each file, so you can review it at once. The original of every edited file is kept next to it as `<file>.opspilot.bak`, and `bugzero undo` puts everything back.
|
|
216
216
|
|
|
217
217
|
```bash
|
|
218
218
|
bugzero rescue --path /path/to/your/project
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
+
**Review each fix first with `--approve`.** BugZero shows the AI's proposed change as a diff and asks before it writes anything:
|
|
222
|
+
|
|
223
|
+
```text
|
|
224
|
+
Apply this change? [y] yes [n] no [m] no, and leave a note for the AI (Enter = no):
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
The whole proposed fix is shown at once, because a fix that spans several files is applied together or not at all. Answer `y` to apply it. Answer `n` (or just press Enter) to decline: nothing is changed, and the AI is told you declined and asked for a different fix, which uses up one attempt. Answer `m` to decline and type a short note that is sent to the AI, such as "leave the config file alone". `--approve` needs an interactive terminal; without one (in CI, or with piped input) it stops immediately, before running anything. It has no effect with `--dry-run` or `--print-prompt`, which never write.
|
|
228
|
+
|
|
221
229
|
<details>
|
|
222
230
|
<summary><strong>Options for <code>rescue</code></strong></summary>
|
|
223
231
|
|
|
@@ -227,11 +235,27 @@ bugzero rescue --path /path/to/your/project
|
|
|
227
235
|
| `--max-attempts <n>` | `-n` | `3` | Maximum AI fix iterations before giving up |
|
|
228
236
|
| `--timeout <seconds>` | `-t` | none | Stop any build, lint, or test command that runs longer than this many seconds |
|
|
229
237
|
| `--dry-run` | | `false` | Analyze only — no files will be written |
|
|
238
|
+
| `--approve` | | `false` | Show each proposed fix as a diff and ask before writing it. Needs an interactive terminal |
|
|
230
239
|
| `--print-prompt` | | `false` | Print the exact prompt that would be sent to the AI model, then stop. Nothing is sent and no files are written |
|
|
231
240
|
| `--json` | | `false` | Print the result as one JSON document on stdout (logs go to stderr) |
|
|
232
241
|
|
|
233
242
|
</details>
|
|
234
243
|
|
|
244
|
+
### `bugzero undo`
|
|
245
|
+
Puts back every file BugZero changed, from the backups saved next to them, and removes those backups.
|
|
246
|
+
|
|
247
|
+
```bash
|
|
248
|
+
bugzero undo --path /path/to/your/project
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
`rescue` tells you to run it after it changes files, including when it changes files and still fails. A file you edited after BugZero fixed it is left alone and reported, with its backup kept, so your own work is not lost; add `--force` to restore it anyway. Use `--dry-run` to see what would be restored without changing anything. Backups inside `node_modules` and `.git` are ignored. `undo` exits with 1 if any file was left as it was.
|
|
252
|
+
|
|
253
|
+
| Flag | Short | Default | Description |
|
|
254
|
+
|---|---|---|---|
|
|
255
|
+
| `--path <dir>` | `-p` | `.` | Path to the target project |
|
|
256
|
+
| `--dry-run` | | `false` | Show what would be restored without changing anything |
|
|
257
|
+
| `--force` | | `false` | Also restore files edited after BugZero fixed them (those edits are lost) |
|
|
258
|
+
|
|
235
259
|
### `bugzero vibe`
|
|
236
260
|
Interactively select which AI model to use. Fetches the current model list from OpenRouter, lets you pick one, and saves the selection to a local `.bugzerorc` config file.
|
|
237
261
|
|