muse-crew 0.7.9 → 0.7.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muse-crew",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "description": "Opinionated orchestration for Muse — workflows, identities, and tooling for autonomous software development.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -1469,11 +1469,15 @@ while (i < STEPS.length) {
1469
1469
  if (/^rename from /m.test(mergeDiff)) {
1470
1470
  return await parkTask("Publish diff contains a rename — the diff transport cannot carry renames. Human attention needed.");
1471
1471
  }
1472
- var mergeDiffLines = mergeDiff.split("\n").length;
1473
- if (mergeDiffLines > 200) {
1474
- return await parkTask("Publish diff is " + mergeDiffLines + " lines (budget 200) — too large for the diff transport. Human attention needed.");
1475
- }
1476
1472
  var expectedChanges = parseUnifiedDiff(mergeDiff);
1473
+ // Budget counts CHANGED lines (added + removed), not raw unified-diff
1474
+ // output lines: context lines and file headers inflated the old
1475
+ // split("\n").length count ~2x, parking a 95-line change against a
1476
+ // 200-line budget (Gate 1 Journey 3 attempt 3, 2026-09-13).
1477
+ var mergeDiffChangedLines = expectedChanges.reduce(function (n, f) { return n + f.added.length + f.removed.length; }, 0);
1478
+ if (mergeDiffChangedLines > 200) {
1479
+ return await parkTask("Publish diff changes " + mergeDiffChangedLines + " lines (budget 200) — too large for the diff transport. Human attention needed.");
1480
+ }
1477
1481
  if (expectedChanges.length === 0) {
1478
1482
  return await parkTask("Publish diff parsed to zero files for commit " + (mergeCommitForPublish || "unknown") + " — cannot verify application. Human attention needed.");
1479
1483
  }
@@ -1458,11 +1458,15 @@ while (i < STEPS.length) {
1458
1458
  if (/^rename from /m.test(mergeDiff)) {
1459
1459
  return await parkTask("Publish diff contains a rename — the diff transport cannot carry renames. Human attention needed.");
1460
1460
  }
1461
- var mergeDiffLines = mergeDiff.split("\n").length;
1462
- if (mergeDiffLines > 200) {
1463
- return await parkTask("Publish diff is " + mergeDiffLines + " lines (budget 200) — too large for the diff transport. Human attention needed.");
1464
- }
1465
1461
  var expectedChanges = parseUnifiedDiff(mergeDiff);
1462
+ // Budget counts CHANGED lines (added + removed), not raw unified-diff
1463
+ // output lines: context lines and file headers inflated the old
1464
+ // split("\n").length count ~2x, parking a 95-line change against a
1465
+ // 200-line budget (Gate 1 Journey 3 attempt 3, 2026-09-13).
1466
+ var mergeDiffChangedLines = expectedChanges.reduce(function (n, f) { return n + f.added.length + f.removed.length; }, 0);
1467
+ if (mergeDiffChangedLines > 200) {
1468
+ return await parkTask("Publish diff changes " + mergeDiffChangedLines + " lines (budget 200) — too large for the diff transport. Human attention needed.");
1469
+ }
1466
1470
  if (expectedChanges.length === 0) {
1467
1471
  return await parkTask("Publish diff parsed to zero files for commit " + (mergeCommitForPublish || "unknown") + " — cannot verify application. Human attention needed.");
1468
1472
  }
@@ -1441,11 +1441,15 @@ while (i < STEPS.length) {
1441
1441
  if (/^rename from /m.test(mergeDiff)) {
1442
1442
  return await parkTask("Publish diff contains a rename — the diff transport cannot carry renames. Human attention needed.");
1443
1443
  }
1444
- var mergeDiffLines = mergeDiff.split("\n").length;
1445
- if (mergeDiffLines > 200) {
1446
- return await parkTask("Publish diff is " + mergeDiffLines + " lines (budget 200) — too large for the diff transport. Human attention needed.");
1447
- }
1448
1444
  var expectedChanges = parseUnifiedDiff(mergeDiff);
1445
+ // Budget counts CHANGED lines (added + removed), not raw unified-diff
1446
+ // output lines: context lines and file headers inflated the old
1447
+ // split("\n").length count ~2x, parking a 95-line change against a
1448
+ // 200-line budget (Gate 1 Journey 3 attempt 3, 2026-09-13).
1449
+ var mergeDiffChangedLines = expectedChanges.reduce(function (n, f) { return n + f.added.length + f.removed.length; }, 0);
1450
+ if (mergeDiffChangedLines > 200) {
1451
+ return await parkTask("Publish diff changes " + mergeDiffChangedLines + " lines (budget 200) — too large for the diff transport. Human attention needed.");
1452
+ }
1449
1453
  if (expectedChanges.length === 0) {
1450
1454
  return await parkTask("Publish diff parsed to zero files for commit " + (mergeCommitForPublish || "unknown") + " — cannot verify application. Human attention needed.");
1451
1455
  }