@yemi33/minions 0.1.618 → 0.1.620

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,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.620 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - import safeUnlink in engine.js spawn cleanup path (closes #575) (#576)
7
+ - engine stuck in stopped state after dashboard restart (closes #564) (#573)
8
+
3
9
  ## 0.1.618 (2026-04-08)
4
10
 
5
11
  ### Fixes
package/dashboard.js CHANGED
@@ -907,7 +907,11 @@ function cleanDispatchEntries(matchFn) {
907
907
 
908
908
  function spawnEngine() {
909
909
  const controlPath = path.join(ENGINE_DIR, 'control.json');
910
- safeWrite(controlPath, { state: 'stopped', pid: null, restarted_at: new Date().toISOString() });
910
+ // Don't pre-write 'stopped' let the new engine process own its state transition.
911
+ // The engine start code already handles state:'running' with a dead PID gracefully.
912
+ // Only set restarted_at + clear stale pid so dashboard shows the restart timestamp.
913
+ const control = safeJson(controlPath) || {};
914
+ safeWrite(controlPath, { ...control, pid: null, restarted_at: new Date().toISOString() });
911
915
  const { spawn: cpSpawn } = require('child_process');
912
916
  const childEnv = { ...process.env };
913
917
  for (const key of Object.keys(childEnv)) {
package/engine.js CHANGED
@@ -91,6 +91,7 @@ const { getProjects, projectRoot, projectStateDir, projectWorkItemsPath, project
91
91
  const safeJson = shared.safeJson;
92
92
  const safeRead = shared.safeRead;
93
93
  const safeWrite = shared.safeWrite;
94
+ const safeUnlink = shared.safeUnlink;
94
95
  const mutateJsonFileLocked = shared.mutateJsonFileLocked;
95
96
  const mutateWorkItems = shared.mutateWorkItems;
96
97
  const mutatePullRequests = shared.mutatePullRequests;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.618",
3
+ "version": "0.1.620",
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"