@yemi33/minions 0.1.2093 → 0.1.2094
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/engine/supervisor.js +11 -2
- package/package.json +1 -1
package/engine/supervisor.js
CHANGED
|
@@ -116,13 +116,21 @@ function openAppendFd(name) {
|
|
|
116
116
|
// back to a plain fs.openSync(..., 'a') when it isn't available. We re-route
|
|
117
117
|
// child stdio to engine/<name> so a respawned process produces a postmortem
|
|
118
118
|
// in the same place a CLI-spawned one would.
|
|
119
|
+
//
|
|
120
|
+
// Uses _engineDir() (lazy getter) — not the removed top-level ENGINE_DIR.
|
|
121
|
+
// The fixup commit renamed top-level ENGINE_DIR to STATIC_ENGINE_DIR and
|
|
122
|
+
// _engineDir(), and a stale ENGINE_DIR reference here silently returned
|
|
123
|
+
// 'ignore' for both stdout AND stderr, causing every supervisor-spawned
|
|
124
|
+
// dashboard and engine to lose its stdio trail entirely (the dashboard
|
|
125
|
+
// still serves HTTP 200, but you can't see anything it logs).
|
|
126
|
+
const dir = _engineDir();
|
|
119
127
|
try {
|
|
120
128
|
const shared = require('./shared');
|
|
121
129
|
if (shared && typeof shared.openAppendLogFd === 'function') {
|
|
122
|
-
return shared.openAppendLogFd(name,
|
|
130
|
+
return shared.openAppendLogFd(name, dir, { fallback: 'ignore' }).fd;
|
|
123
131
|
}
|
|
124
132
|
} catch { /* shared unavailable — fall through */ }
|
|
125
|
-
try { return fs.openSync(path.join(
|
|
133
|
+
try { return fs.openSync(path.join(dir, name), 'a'); } catch { return 'ignore'; }
|
|
126
134
|
}
|
|
127
135
|
|
|
128
136
|
function spawnEngine() {
|
|
@@ -278,6 +286,7 @@ module.exports = {
|
|
|
278
286
|
isStopIntentSet,
|
|
279
287
|
isPidAlive,
|
|
280
288
|
listeningPidsForPort,
|
|
289
|
+
openAppendFd,
|
|
281
290
|
checkEngine,
|
|
282
291
|
checkDashboard,
|
|
283
292
|
tick,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2094",
|
|
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"
|