@yemi33/minions 0.1.765 → 0.1.766

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,10 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.765 (2026-04-10)
3
+ ## 0.1.766 (2026-04-10)
4
4
 
5
5
  ### Features
6
6
  - id/kill endpoint
7
7
 
8
+ ### Fixes
9
+ - harden agent kill endpoint — use killGracefully, clean steer.md, remove dead var
10
+
8
11
  ## 0.1.764 (2026-04-10)
9
12
 
10
13
  ### Features
package/dashboard.js CHANGED
@@ -1472,24 +1472,20 @@ const server = http.createServer(async (req, res) => {
1472
1472
  try {
1473
1473
  const pid = parseInt(shared.safeRead(pidPath) || '', 10);
1474
1474
  if (pid) {
1475
- const safePid = shared.validatePid(pid);
1476
- if (process.platform === 'win32') {
1477
- require('child_process').execFileSync('taskkill', ['/PID', String(safePid), '/F', '/T'], { stdio: 'pipe', timeout: 5000, windowsHide: true });
1478
- } else {
1479
- process.kill(safePid, 'SIGTERM');
1480
- }
1475
+ shared.validatePid(pid); // throws if not numeric
1476
+ shared.killGracefully({ pid }, 3000);
1481
1477
  }
1482
1478
  } catch { /* process already dead or no pid file */ }
1483
1479
  try { fs.unlinkSync(pidPath); } catch { /* optional */ }
1484
1480
 
1485
- // 2. Clear session.json so retry starts fresh
1481
+ // 2. Clear session.json and steer.md so retry starts fresh
1486
1482
  try { fs.unlinkSync(path.join(agentDir, 'session.json')); } catch { /* optional */ }
1483
+ try { fs.unlinkSync(path.join(agentDir, 'steer.md')); } catch { /* optional */ }
1487
1484
 
1488
1485
  // 3. Remove all active dispatch entries for this agent
1489
1486
  const dispatchPath = path.join(MINIONS_DIR, 'engine', 'dispatch.json');
1490
1487
  const removedIds = [];
1491
1488
  mutateJsonFileLocked(dispatchPath, (dp) => {
1492
- const before = (dp.active || []).length;
1493
1489
  const removed = (dp.active || []).filter(d => d.agent === agentId);
1494
1490
  removed.forEach(d => removedIds.push(d.id));
1495
1491
  dp.active = (dp.active || []).filter(d => d.agent !== agentId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.765",
3
+ "version": "0.1.766",
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"