@yemi33/minions 0.1.657 → 0.1.658
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 +11 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.658 (2026-04-09)
|
|
4
4
|
|
|
5
5
|
### Fixes
|
|
6
|
+
- use PowerShell instead of wmic for process kill on Windows 11
|
|
6
7
|
- bust require cache for package.json in engine start
|
|
7
8
|
- PRD discovery loop, github.js duplicate const, transcript null guards
|
|
8
9
|
|
package/bin/minions.js
CHANGED
|
@@ -50,11 +50,19 @@ function killByPort(port) {
|
|
|
50
50
|
function killMinionsProcesses(patterns) {
|
|
51
51
|
try {
|
|
52
52
|
if (process.platform === 'win32') {
|
|
53
|
-
|
|
53
|
+
// Use PowerShell Get-CimInstance (works on Win11 where wmic is removed)
|
|
54
|
+
let out;
|
|
55
|
+
try {
|
|
56
|
+
out = execSync('powershell -NoProfile -Command "Get-CimInstance Win32_Process -Filter \\"name=\'node.exe\'\\" | Select-Object ProcessId,CommandLine | ConvertTo-Csv -NoTypeInformation"', { encoding: 'utf8', timeout: 10000, windowsHide: true });
|
|
57
|
+
} catch {
|
|
58
|
+
// Fallback to wmic for older Windows
|
|
59
|
+
try { out = execSync('wmic process where "name=\'node.exe\'" get processid,commandline /format:csv', { encoding: 'utf8', timeout: 10000, windowsHide: true }); } catch { return; }
|
|
60
|
+
}
|
|
54
61
|
for (const line of out.split('\n')) {
|
|
55
62
|
if (patterns.some(p => line.includes(p))) {
|
|
56
|
-
const
|
|
57
|
-
|
|
63
|
+
const pidMatch = line.match(/(\d{2,})/);
|
|
64
|
+
const pid = pidMatch ? pidMatch[1] : null;
|
|
65
|
+
if (pid && pid !== String(process.pid)) try { execSync(`taskkill /F /T /PID ${pid}`, { stdio: 'ignore', timeout: 5000, windowsHide: true }); } catch {}
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.658",
|
|
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"
|