@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 +6 -0
- package/dashboard.js +5 -1
- package/engine.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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.
|
|
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"
|