bugzero 0.0.38 → 0.0.39

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/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1865,7 +1865,9 @@ program.command("rescue").description("Detect build failures and automatically a
1865
1865
  console.log();
1866
1866
  const result = await (0, import_core.orchestrateAndFix)({ cwd, maxAttempts, dryRun });
1867
1867
  console.log("\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
1868
- if (result.success) {
1868
+ if (result.success && result.attempts === 0) {
1869
+ console.log("\u2705 Nothing to fix \u2014 your project already passes its build, lint, and tests.");
1870
+ } else if (result.success) {
1869
1871
  console.log(`\u2705 Build fixed after ${result.attempts} attempt(s)!`);
1870
1872
  console.log(` Model: ${result.modelUsed || "unknown"}`);
1871
1873
  if (result.promptTokens !== void 0 && result.completionTokens !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugzero",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "description": "Autonomous AI-powered CLI and GitHub Action that detects build, lint, and test failures, generates multi-file patches, applies them atomically with fuzzy matching, and re-verifies until your project is green.",
5
5
  "license": "MIT",
6
6
  "author": "Saksham Agarwal (https://github.com/Saksham1800t)",