bugzero 0.0.48 → 0.0.49

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 +15 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1805,7 +1805,8 @@ Re-run without \`--dry-run\` to let BugZero attempt a fix.
1805
1805
  success: true,
1806
1806
  attempts: 0,
1807
1807
  maxAttempts,
1808
- rawOutput: ""
1808
+ rawOutput: "",
1809
+ alreadyPassing: true
1809
1810
  });
1810
1811
  return { success: true, attempts: 0, finalOutput: "" };
1811
1812
  }
@@ -1957,7 +1958,19 @@ ${logs}
1957
1958
  }
1958
1959
  } else {
1959
1960
  const { success, attempts, maxAttempts, appliedFix, error, rawOutput, modelUsed, promptTokens, completionTokens } = data;
1960
- if (data.dryRun) {
1961
+ if (data.alreadyPassing) {
1962
+ content = `# \u{1F916} BugZero Rescue Report
1963
+
1964
+ **Date:** ${(/* @__PURE__ */ new Date()).toLocaleString()}
1965
+ **Project Path:** \`${cwd}\`
1966
+ **Framework:** \`${detectFramework2(cwd)}\`
1967
+
1968
+ ## \u{1F4CA} Repair Summary
1969
+ - **Status:** \u2705 Nothing to fix
1970
+ - **Attempts:** 0 / ${maxAttempts}
1971
+
1972
+ Your project already passes its build, lint, and tests, so BugZero made no changes and did not call an AI model.`;
1973
+ } else if (data.dryRun) {
1961
1974
  console.log("[BugZero] Calling AI to diagnose the detected errors and write report...");
1962
1975
  try {
1963
1976
  const result = await provider.invoke(buildDryRunPrompt(cwd, rawOutput ?? ""), { cwd });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugzero",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
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)",