bugzero 0.0.45 → 0.0.46
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/dist/index.js +14 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1352,6 +1352,15 @@ var require_dist6 = __commonJS({
|
|
|
1352
1352
|
},
|
|
1353
1353
|
default: () => null
|
|
1354
1354
|
}),
|
|
1355
|
+
/**
|
|
1356
|
+
* True when the current attempt's patch could not be applied, so there is nothing new to verify.
|
|
1357
|
+
* Every attempt sets it afresh. (This used to be inferred from a warning left in `logs`, which stayed
|
|
1358
|
+
* there after the failure and made every later attempt skip verification too.)
|
|
1359
|
+
*/
|
|
1360
|
+
patchFailed: (0, import_langgraph.Annotation)({
|
|
1361
|
+
reducer: (_, value) => value,
|
|
1362
|
+
default: () => false
|
|
1363
|
+
}),
|
|
1355
1364
|
/** Number of fix attempts made so far */
|
|
1356
1365
|
attempts: (0, import_langgraph.Annotation)({
|
|
1357
1366
|
reducer: (_, value) => value,
|
|
@@ -1430,7 +1439,7 @@ var require_dist6 = __commonJS({
|
|
|
1430
1439
|
async function applyFixNode(state) {
|
|
1431
1440
|
if (!state.fixSuggestion) {
|
|
1432
1441
|
console.warn("[BugZero] No fix suggestion available \u2014 skipping patch.");
|
|
1433
|
-
return {};
|
|
1442
|
+
return { patchFailed: false };
|
|
1434
1443
|
}
|
|
1435
1444
|
const { patches, explanation } = state.fixSuggestion;
|
|
1436
1445
|
const fileList = patches.map((p) => p.filePath).join(", ");
|
|
@@ -1446,7 +1455,8 @@ var require_dist6 = __commonJS({
|
|
|
1446
1455
|
|
|
1447
1456
|
Any other files from that same suggestion were rolled back to keep the change atomic. Please check if the file path(s) are correct relative to the project root and make sure you target the correct file(s) that contain the build error.`;
|
|
1448
1457
|
return {
|
|
1449
|
-
logs: updatedLogs
|
|
1458
|
+
logs: updatedLogs,
|
|
1459
|
+
patchFailed: true
|
|
1450
1460
|
};
|
|
1451
1461
|
}
|
|
1452
1462
|
for (const applied of result.applied) {
|
|
@@ -1455,10 +1465,10 @@ Any other files from that same suggestion were rolled back to keep the change at
|
|
|
1455
1465
|
console.log(`[BugZero] Note: exact match failed for ${applied.filePath} \u2014 patch applied via ${applied.matchStrategy} matching.`);
|
|
1456
1466
|
}
|
|
1457
1467
|
}
|
|
1458
|
-
return { appliedFix: state.fixSuggestion };
|
|
1468
|
+
return { appliedFix: state.fixSuggestion, patchFailed: false };
|
|
1459
1469
|
}
|
|
1460
1470
|
async function verifyNode(state) {
|
|
1461
|
-
if (state.
|
|
1471
|
+
if (state.patchFailed) {
|
|
1462
1472
|
console.log("[BugZero] Skipping validation pipeline because the patch failed to apply.");
|
|
1463
1473
|
return {
|
|
1464
1474
|
success: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bugzero",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
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)",
|