@yemi33/minions 0.1.1652 → 0.1.1653

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1653 (2026-05-01)
4
+
5
+ ### Fixes
6
+ - exempt fix/test work items from PR contract when meta.pr is set
7
+
3
8
  ## 0.1.1652 (2026-05-01)
4
9
 
5
10
  ### Other
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "runtime": "copilot",
3
3
  "models": null,
4
- "cachedAt": "2026-05-01T02:33:34.697Z"
4
+ "cachedAt": "2026-05-01T02:44:10.693Z"
5
5
  }
@@ -924,6 +924,15 @@ function isPrAttachmentRequired(type, item, meta = {}) {
924
924
  || item.requiresPullRequest === true
925
925
  || item.itemType === 'pr';
926
926
  if (meta.branchStrategy === 'shared-branch' && item.itemType !== 'pr' && !explicit) return false;
927
+
928
+ // Fix/test work items dispatched against an existing PR don't produce a new
929
+ // PR — the agent updates meta.pr in place. Only require fresh PR attachment
930
+ // when there's NO existing PR to operate on (rare: standalone fix dispatched
931
+ // from CC without a PR target). The meta.pr short-circuit beats the
932
+ // explicit-flag fallthrough so a legacy requiresPr:true fix doesn't trigger
933
+ // the contract when there's already a PR attached.
934
+ if ((type === WORK_TYPE.FIX || type === WORK_TYPE.TEST) && meta?.pr) return false;
935
+
927
936
  return explicit
928
937
  || type === WORK_TYPE.IMPLEMENT
929
938
  || type === WORK_TYPE.IMPLEMENT_LARGE
@@ -2558,4 +2567,5 @@ module.exports = {
2558
2567
  diagnoseEmptyOutput,
2559
2568
  processPendingRebases,
2560
2569
  findDependentActivePrs,
2570
+ isPrAttachmentRequired,
2561
2571
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.1652",
3
+ "version": "0.1.1653",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"