@yemi33/minions 0.1.616 → 0.1.617
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 +4 -1
- package/engine/cleanup.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.617 (2026-04-08)
|
|
4
4
|
|
|
5
5
|
### Fixes
|
|
6
6
|
- audit fixes for _killProcessInWorktree
|
|
7
7
|
|
|
8
|
+
### Other
|
|
9
|
+
- simplify: remove redundant alias, avoid Set spread in hot loop
|
|
10
|
+
|
|
8
11
|
## 0.1.615 (2026-04-08)
|
|
9
12
|
|
|
10
13
|
### Features
|
package/engine/cleanup.js
CHANGED
|
@@ -43,9 +43,8 @@ function worktreeDirMatchesBranch(dirLower, branch) {
|
|
|
43
43
|
* Kill orphaned processes whose dispatch ID appears in the worktree dir name.
|
|
44
44
|
* Only kills processes NOT in the active dispatch queue — never kills live agents.
|
|
45
45
|
*/
|
|
46
|
-
function _killProcessInWorktree(dir, activeProcesses,
|
|
46
|
+
function _killProcessInWorktree(dir, activeProcesses, activeIds) {
|
|
47
47
|
const dirLower = dir.toLowerCase();
|
|
48
|
-
const activeIds = activeDispatchIds;
|
|
49
48
|
|
|
50
49
|
// Check tracked in-memory processes — only kill if dispatch is no longer active
|
|
51
50
|
for (const [id, info] of activeProcesses.entries()) {
|
|
@@ -64,7 +63,8 @@ function _killProcessInWorktree(dir, activeProcesses, activeDispatchIds) {
|
|
|
64
63
|
const pidFileName = f.replace(/^pid-/, '').replace(/\.pid$/, '');
|
|
65
64
|
if (!dirLower.includes(pidFileName.slice(-8))) continue;
|
|
66
65
|
// Verify this PID file's dispatch is not active
|
|
67
|
-
|
|
66
|
+
let isActive = false;
|
|
67
|
+
for (const id of activeIds) { if (pidFileName.includes(id.slice(-8))) { isActive = true; break; } }
|
|
68
68
|
if (isActive) continue; // still active — do not kill
|
|
69
69
|
const pid = parseInt(fs.readFileSync(path.join(tmpDir, f), 'utf8').trim(), 10);
|
|
70
70
|
if (pid > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.617",
|
|
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"
|