@yemi33/minions 0.1.536 → 0.1.538

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,8 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.536 (2026-04-07)
3
+ ## 0.1.538 (2026-04-07)
4
4
 
5
5
  ### Fixes
6
+ - declare onAgentClose as async (closes #454) (#456)
7
+ - handlePlansExecute dedup allows re-execute after completion
6
8
  - plan regenerate/execute always queues fresh plan-to-prd (#449)
7
9
 
8
10
  ## 0.1.535 (2026-04-07)
package/dashboard.js CHANGED
@@ -2269,7 +2269,8 @@ If nothing to do: { "duplicates": [], "reclassify": [], "remove": [] }`;
2269
2269
  const id = 'W-' + shared.uid();
2270
2270
  mutateJsonFileLocked(centralPath, (items) => {
2271
2271
  if (!Array.isArray(items)) items = [];
2272
- const existing = items.find(w => w.type === 'plan-to-prd' && w.planFile === body.file && w.status !== 'failed' && w.status !== 'cancelled');
2272
+ // Only block if actively pending/dispatched allow re-execute after completion
2273
+ const existing = items.find(w => w.type === 'plan-to-prd' && w.planFile === body.file && (w.status === 'pending' || w.status === 'dispatched'));
2273
2274
  if (existing) { existingId = existing.id; return items; }
2274
2275
  items.push({
2275
2276
  id, title: 'Convert plan to PRD: ' + body.file.replace('.md', ''),
package/engine.js CHANGED
@@ -562,7 +562,7 @@ async function spawnAgent(dispatchItem, config) {
562
562
  try { fs.appendFileSync(liveOutputPath, '[stderr] ' + chunk); } catch { /* optional */ }
563
563
  });
564
564
 
565
- function onAgentClose(code) {
565
+ async function onAgentClose(code) {
566
566
  if (heartbeatTimer) { clearInterval(heartbeatTimer); heartbeatTimer = null; }
567
567
  log('info', `Agent ${agentId} (${id}) exited with code ${code}`);
568
568
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.536",
3
+ "version": "0.1.538",
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"