@yemi33/minions 0.1.381 → 0.1.383

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.383 (2026-04-06)
4
+
5
+ ### Fixes
6
+ - SyntaxError — await in non-async discoverWork function
7
+ - branch regex missed W- and PL- work item IDs — wrong PR agent attribution
8
+
3
9
  ## 0.1.381 (2026-04-06)
4
10
 
5
11
  ### Fixes
package/engine/ado.js CHANGED
@@ -379,8 +379,8 @@ async function reconcilePrs(config) {
379
379
  const branch = (adoPr.sourceRefName || '').replace('refs/heads/', '');
380
380
  const title = adoPr.title || '';
381
381
  // Extract item ID from branch name or PR title (e.g., feat(P-2cafdc2a): ...)
382
- const branchMatch = branch.match(/(P-[a-z0-9]{6,})/i) || branch.match(/(PL-W\d+)/i);
383
- const titleMatch = title.match(/\((P-[a-z0-9]{6,})\)/) || title.match(/\((PL-W\d+)\)/);
382
+ const branchMatch = branch.match(/(P-[a-z0-9]{6,})/i) || branch.match(/(W-[a-z0-9]{6,})/i) || branch.match(/(PL-[a-z0-9]{6,})/i);
383
+ const titleMatch = title.match(/\((P-[a-z0-9]{6,})\)/) || title.match(/\((W-[a-z0-9]{6,})\)/) || title.match(/\((W-[a-z0-9]{6,})\)/) || title.match(/\((PL-[a-z0-9]{6,})\)/);
384
384
  const linkedItemId = branchMatch?.[1] || titleMatch?.[1] || null;
385
385
  const linkedItem = linkedItemId ? allItems.find(i => i.id === linkedItemId) : null;
386
386
  const confirmedItemId = linkedItem ? linkedItemId : null;
package/engine/github.js CHANGED
@@ -379,7 +379,7 @@ async function reconcilePrs(config) {
379
379
  for (const ghPr of ghPrs) {
380
380
  const prId = `PR-${ghPr.number}`;
381
381
  const branch = ghPr.head?.ref || '';
382
- const wiMatch = branch.match(/(P-[a-z0-9]{6,})/i) || branch.match(/(PL-W\d+)/i);
382
+ const wiMatch = branch.match(/(P-[a-z0-9]{6,})/i) || branch.match(/(W-[a-z0-9]{6,})/i) || branch.match(/(PL-[a-z0-9]{6,})/i);
383
383
  const linkedItemId = wiMatch ? wiMatch[1] : null;
384
384
  const linkedItem = linkedItemId ? allItems.find(i => i.id === linkedItemId) : null;
385
385
  const confirmedItemId = linkedItem ? linkedItemId : null;
@@ -805,7 +805,7 @@ async function handlePostMerge(pr, project, config, newStatus) {
805
805
  // Resolve linked work item from pr-links or PR branch name
806
806
  let mergedItemId = getPrLinks()[pr.id];
807
807
  if (!mergedItemId && pr.branch) {
808
- const branchMatch = pr.branch.match(/(P-[a-z0-9]{6,})/i) || pr.branch.match(/(W-[a-z0-9]+)/i);
808
+ const branchMatch = pr.branch.match(/(P-[a-z0-9]{6,})/i) || pr.branch.match(/(W-[a-z0-9]{6,})/i) || pr.branch.match(/(PL-[a-z0-9]{6,})/i);
809
809
  if (branchMatch) mergedItemId = branchMatch[1];
810
810
  }
811
811
 
package/engine.js CHANGED
@@ -2106,7 +2106,7 @@ function discoverWork(config) {
2106
2106
  // Pipeline orchestration — check stage completions and start ready stages
2107
2107
  try {
2108
2108
  const { discoverPipelineWork } = require('./engine/pipeline');
2109
- await discoverPipelineWork(config);
2109
+ discoverPipelineWork(config).catch(e => log('warn', 'discover pipeline work: ' + e.message));
2110
2110
  } catch (e) { log('warn', 'discover pipeline work: ' + e.message); }
2111
2111
 
2112
2112
  // Periodic plan completion sweep — catch PRDs that completed while engine was down
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.381",
3
+ "version": "0.1.383",
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"