@yemi33/minions 0.1.165 → 0.1.167

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.167 (2026-04-02)
4
+
5
+ ### Engine
6
+ - engine.js
7
+
8
+ ### Other
9
+ - CLAUDE.md
10
+ - minions.js
11
+
12
+ ## 0.1.166 (2026-04-02)
13
+
14
+ ### Engine
15
+ - engine.js
16
+
3
17
  ## 0.1.165 (2026-04-02)
4
18
 
5
19
  ### Engine
package/engine.js CHANGED
@@ -787,8 +787,7 @@ function detectDependencyCycles(items) {
787
787
  // writeInboxAlert — now in engine/dispatch.js
788
788
 
789
789
  // Reconciles work items against known PRs.
790
- // Primary linkage comes from prdItems in pull-requests.json; fallback linkage
791
- // uses engine/pr-links.json so matching does not depend on branch/title parsing.
790
+ // Primary linkage comes from prdItems in pull-requests.json (via getPrLinks()).
792
791
  // onlyIds: if provided, only items whose ID is in this Set are eligible.
793
792
  function reconcileItemsWithPrs(items, allPrs, { onlyIds } = {}) {
794
793
  const prLinks = shared.getPrLinks();
@@ -1521,6 +1520,7 @@ function discoverFromWorkItems(config, project) {
1521
1520
  ].filter(Boolean).join('\n');
1522
1521
  vars.checkpoint_context = cpSummary;
1523
1522
  log('info', `Injecting checkpoint context for ${item.id} (resume #${cpCount})`);
1523
+ try { fs.unlinkSync(cpPath); } catch (ue) { log('warn', `checkpoint cleanup for ${item.id}: ${ue.message}`); }
1524
1524
  }
1525
1525
  } catch (e) { log('warn', `checkpoint read for ${item.id}: ${e.message}`); }
1526
1526
 
@@ -1834,6 +1834,7 @@ function discoverCentralWorkItems(config) {
1834
1834
  ].filter(Boolean).join('\n');
1835
1835
  fanOutCheckpointContext = fanCpSummary;
1836
1836
  log('info', `Injecting checkpoint context for ${item.id} (resume #${fanCpCount})`);
1837
+ try { fs.unlinkSync(fanCpPath); } catch (ue) { log('warn', `checkpoint cleanup for ${item.id}: ${ue.message}`); }
1837
1838
  }
1838
1839
  } catch (e) { log('warn', `checkpoint read for ${item.id}: ${e.message}`); }
1839
1840
 
@@ -1917,6 +1918,7 @@ function discoverCentralWorkItems(config) {
1917
1918
  item.dispatched_to = idleAgents.map(a => a.id).join(', ');
1918
1919
  item.scope = 'fan-out';
1919
1920
  item.fanOutAgents = idleAgents.map(a => a.id);
1921
+ delete item._pendingReason;
1920
1922
  needsWrite = true;
1921
1923
  setCooldown(key);
1922
1924
  log('info', `Fan-out: ${item.id} dispatched to ${idleAgents.length} agents: ${idleAgents.map(a => a.name).join(', ')}`);
@@ -1985,6 +1987,7 @@ function discoverCentralWorkItems(config) {
1985
1987
  ].filter(Boolean).join('\n');
1986
1988
  vars.checkpoint_context = cpSummary;
1987
1989
  log('info', `Injecting checkpoint context for ${item.id} (resume #${cpCount})`);
1990
+ try { fs.unlinkSync(cpPath); } catch (ue) { log('warn', `checkpoint cleanup for ${item.id}: ${ue.message}`); }
1988
1991
  }
1989
1992
  } catch (e) { log('warn', `checkpoint read for ${item.id}: ${e.message}`); }
1990
1993
 
@@ -2067,6 +2070,7 @@ function discoverCentralWorkItems(config) {
2067
2070
  item.status = 'dispatched';
2068
2071
  item.dispatched_at = ts();
2069
2072
  item.dispatched_to = agentId;
2073
+ delete item._pendingReason;
2070
2074
  needsWrite = true;
2071
2075
  setCooldown(key);
2072
2076
  }
package/minions.js CHANGED
@@ -480,7 +480,7 @@ function nukeMinions() {
480
480
  console.log('\n Cleaning runtime state...');
481
481
  const runtimeDirs = ['projects', 'plans', 'prd', 'knowledge', 'skills', 'notes', 'identity'];
482
482
  const runtimeFiles = ['config.json', 'work-items.json', 'notes.md', 'routing.md'];
483
- const engineRuntimeFiles = ['control.json', 'dispatch.json', 'log.json', 'metrics.json', 'cooldowns.json', 'pr-links.json', 'kb-checkpoint.json', 'cc-session.json', 'doc-sessions.json'];
483
+ const engineRuntimeFiles = ['control.json', 'dispatch.json', 'log.json', 'metrics.json', 'cooldowns.json', 'kb-checkpoint.json', 'cc-session.json', 'doc-sessions.json'];
484
484
 
485
485
  for (const dir of runtimeDirs) {
486
486
  const p = path.join(MINIONS_HOME, dir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.165",
3
+ "version": "0.1.167",
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"