@yemi33/minions 0.1.308 → 0.1.309

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.309 (2026-04-03)
4
+
5
+ ### Fixes
6
+ - per-item try-catch in discovery loops — one bad item no longer blocks tick
7
+
3
8
  ## 0.1.308 (2026-04-03)
4
9
 
5
10
  ### Features
package/engine.js CHANGED
@@ -1373,6 +1373,7 @@ function discoverFromWorkItems(config, project) {
1373
1373
  let needsWrite = false;
1374
1374
 
1375
1375
  for (const item of items) {
1376
+ try {
1376
1377
  // Re-evaluate failed items: if deps have recovered, reset to pending
1377
1378
  if (item.status === 'failed' && item.failReason === 'Dependency failed — cannot proceed') {
1378
1379
  const depStatus = areDependenciesMet(item, config);
@@ -1562,6 +1563,7 @@ function discoverFromWorkItems(config, project) {
1562
1563
  });
1563
1564
 
1564
1565
  setCooldown(key);
1566
+ } catch (err) { log('warn', `discoverFromWorkItems: skipping ${item.id}: ${err.message}`); }
1565
1567
  }
1566
1568
 
1567
1569
  // Write back updated statuses (always, since we mark items dispatched before newWork check)
@@ -1768,6 +1770,7 @@ function discoverCentralWorkItems(config) {
1768
1770
  const newWork = [];
1769
1771
 
1770
1772
  for (const item of items) {
1773
+ try {
1771
1774
  if (item.status !== 'queued' && item.status !== 'pending') continue;
1772
1775
 
1773
1776
  const key = `central-work-${item.id}`;
@@ -2001,6 +2004,7 @@ function discoverCentralWorkItems(config) {
2001
2004
  item.dispatched_to = agentId;
2002
2005
  setCooldown(key);
2003
2006
  }
2007
+ } catch (err) { log('warn', `discoverCentralWorkItems: skipping ${item.id}: ${err.message}`); }
2004
2008
  }
2005
2009
 
2006
2010
  if (newWork.length > 0) safeWrite(centralPath, items);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.308",
3
+ "version": "0.1.309",
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"