@yemi33/minions 0.1.309 → 0.1.310

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.310 (2026-04-03)
4
+
5
+ ### Fixes
6
+ - wrap all tickInner phases in try-catch for resilient dispatch
7
+
3
8
  ## 0.1.309 (2026-04-03)
4
9
 
5
10
  ### Fixes
package/engine.js CHANGED
@@ -2183,9 +2183,9 @@ async function tickInner() {
2183
2183
  tickCount++;
2184
2184
 
2185
2185
  // 1. Check for timed-out agents, steering messages, and idle threshold
2186
- checkTimeouts(config);
2187
- checkSteering(config);
2188
- checkIdleThreshold(config);
2186
+ try { checkTimeouts(config); } catch (e) { log('warn', 'checkTimeouts: ' + e.message); }
2187
+ try { checkSteering(config); } catch (e) { log('warn', 'checkSteering: ' + e.message); }
2188
+ try { checkIdleThreshold(config); } catch (e) { log('warn', 'checkIdleThreshold: ' + e.message); }
2189
2189
 
2190
2190
  // 1b. Check for meeting round timeouts
2191
2191
  try {
@@ -2200,11 +2200,11 @@ async function tickInner() {
2200
2200
  }
2201
2201
 
2202
2202
  // 2. Consolidate inbox
2203
- consolidateInbox(config);
2203
+ try { consolidateInbox(config); } catch (e) { log('warn', 'consolidateInbox: ' + e.message); }
2204
2204
 
2205
2205
  // 2.5. Periodic cleanup + MCP sync (every 10 ticks = ~5 minutes)
2206
2206
  if (tickCount % 10 === 0) {
2207
- runCleanup(config);
2207
+ try { runCleanup(config); } catch (e) { log('warn', 'runCleanup: ' + e.message); }
2208
2208
  }
2209
2209
 
2210
2210
  // 2.6. Poll PR status: build, review, merge (every 6 ticks = ~3 minutes)
@@ -2335,12 +2335,13 @@ async function tickInner() {
2335
2335
  }
2336
2336
 
2337
2337
  // 3. Discover new work from sources
2338
- discoverWork(config);
2338
+ try { discoverWork(config); } catch (e) { log('warn', 'discoverWork: ' + e.message); }
2339
2339
 
2340
2340
  // 4. Update snapshot
2341
- updateSnapshot(config);
2341
+ try { updateSnapshot(config); } catch (e) { log('warn', 'updateSnapshot: ' + e.message); }
2342
2342
 
2343
2343
  // 5. Process pending dispatches — auto-spawn agents
2344
+ try {
2344
2345
  const dispatch = getDispatch();
2345
2346
  const activeCount = (dispatch.active || []).length;
2346
2347
  const maxConcurrent = config.engine?.maxConcurrent || 5;
@@ -2448,6 +2449,7 @@ async function tickInner() {
2448
2449
  if (skipReasonChanged) {
2449
2450
  mutateDispatch((dp) => { dp.pending = postDispatch.pending; return dp; });
2450
2451
  }
2452
+ } catch (e) { log('warn', 'dispatch: ' + e.message); }
2451
2453
  }
2452
2454
 
2453
2455
  // ─── Exports (for engine/cli.js and other modules) ──────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.309",
3
+ "version": "0.1.310",
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"