@yemi33/minions 0.1.545 → 0.1.546
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 +2 -1
- package/bin/minions.js +5 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.546 (2026-04-07)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
- add DEFAULT_AGENT_METRICS constant to shared.js (#464)
|
|
7
7
|
- remove inline require('fs') calls from engine/shared.js (#463)
|
|
8
8
|
|
|
9
9
|
### Fixes
|
|
10
|
+
- make restart reliably kill orphan processes on all OS
|
|
10
11
|
- make discoverFromPrs/discoverWork async to match await usage
|
|
11
12
|
- await checkLiveReviewStatus in pre-dispatch vote check (closes #462) (#469)
|
|
12
13
|
|
package/bin/minions.js
CHANGED
|
@@ -39,7 +39,7 @@ function killByPort(port) {
|
|
|
39
39
|
const pid = line.trim().split(/\s+/).pop();
|
|
40
40
|
if (pid && /^\d+$/.test(pid) && pid !== '0' && pid !== String(process.pid)) pids.add(pid);
|
|
41
41
|
}
|
|
42
|
-
for (const pid of pids) try {
|
|
42
|
+
for (const pid of pids) try { execSync(`taskkill /F /PID ${pid}`, { stdio: 'ignore', timeout: 5000, windowsHide: true }); } catch {}
|
|
43
43
|
} else {
|
|
44
44
|
execSync(`lsof -ti:${port} | xargs kill -9 2>/dev/null`, { timeout: 5000 });
|
|
45
45
|
}
|
|
@@ -54,7 +54,7 @@ function killMinionsProcesses(patterns) {
|
|
|
54
54
|
for (const line of out.split('\n')) {
|
|
55
55
|
if (patterns.some(p => line.includes(p))) {
|
|
56
56
|
const pid = line.split(',').pop()?.trim();
|
|
57
|
-
if (pid && /^\d+$/.test(pid) && pid !== String(process.pid)) try {
|
|
57
|
+
if (pid && /^\d+$/.test(pid) && pid !== String(process.pid)) try { execSync(`taskkill /F /PID ${pid}`, { stdio: 'ignore', timeout: 5000, windowsHide: true }); } catch {}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
} else {
|
|
@@ -529,10 +529,11 @@ if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
|
|
|
529
529
|
} else if (cmd === 'restart') {
|
|
530
530
|
// Start both engine and dashboard — the go-to command after a reboot
|
|
531
531
|
ensureInstalled();
|
|
532
|
-
// Stop engine if running
|
|
532
|
+
// Stop engine if running (graceful attempt)
|
|
533
533
|
try { execSync(`node "${path.join(MINIONS_HOME, 'engine.js')}" stop`, { stdio: 'ignore', cwd: MINIONS_HOME }); } catch {}
|
|
534
|
-
// Kill existing dashboard —
|
|
534
|
+
// Kill all existing engine/dashboard processes — handles crashed engines and orphan dashboards
|
|
535
535
|
killByPort(7331);
|
|
536
|
+
killMinionsProcesses(['engine.js', 'dashboard.js']);
|
|
536
537
|
const engineProc = spawn(process.execPath, [path.join(MINIONS_HOME, 'engine.js'), 'start'], {
|
|
537
538
|
cwd: MINIONS_HOME, stdio: 'ignore', detached: true, windowsHide: true
|
|
538
539
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.546",
|
|
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"
|