@yemi33/minions 0.1.473 → 0.1.474
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 +8 -0
- package/dashboard.js +16 -6
- package/engine/lifecycle.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard.js
CHANGED
|
@@ -1511,15 +1511,25 @@ const server = http.createServer(async (req, res) => {
|
|
|
1511
1511
|
'Connection': 'keep-alive',
|
|
1512
1512
|
});
|
|
1513
1513
|
|
|
1514
|
-
// Send initial content
|
|
1514
|
+
// Send initial content — tail only (last 64KB by default) to avoid memory spikes
|
|
1515
|
+
const params = new URL(req.url, 'http://localhost').searchParams;
|
|
1516
|
+
const tailBytes = Math.max(0, parseInt(params.get('tail') || '65536', 10) || 65536);
|
|
1515
1517
|
let offset = 0;
|
|
1516
1518
|
try {
|
|
1517
|
-
const
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1519
|
+
const stat = fs.statSync(liveLogPath);
|
|
1520
|
+
const fileSize = stat.size;
|
|
1521
|
+
if (fileSize > 0) {
|
|
1522
|
+
const readStart = Math.max(0, fileSize - tailBytes);
|
|
1523
|
+
const readLen = fileSize - readStart;
|
|
1524
|
+
const fd = fs.openSync(liveLogPath, 'r');
|
|
1525
|
+
const buf = Buffer.alloc(readLen);
|
|
1526
|
+
fs.readSync(fd, buf, 0, readLen, readStart);
|
|
1527
|
+
fs.closeSync(fd);
|
|
1528
|
+
const content = buf.toString('utf8');
|
|
1529
|
+
if (content) safeWrite(`data: ${JSON.stringify(content)}\n\n`);
|
|
1530
|
+
offset = fileSize;
|
|
1521
1531
|
}
|
|
1522
|
-
} catch { /* optional */ }
|
|
1532
|
+
} catch { /* optional — file may not exist yet */ }
|
|
1523
1533
|
|
|
1524
1534
|
// Watch for changes using fs.watchFile (cross-platform, works on Windows)
|
|
1525
1535
|
const watcher = () => {
|
package/engine/lifecycle.js
CHANGED
|
@@ -712,11 +712,11 @@ function syncPrsFromOutput(output, agentId, meta, config) {
|
|
|
712
712
|
|
|
713
713
|
// ─── Post-Completion Hooks ──────────────────────────────────────────────────
|
|
714
714
|
|
|
715
|
-
function updatePrAfterReview(agentId, pr, project) {
|
|
715
|
+
function updatePrAfterReview(agentId, pr, project, config) {
|
|
716
716
|
|
|
717
717
|
if (!pr?.id) return;
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
if (!config) config = getConfig();
|
|
720
720
|
const reviewerName = config.agents[agentId]?.name || agentId;
|
|
721
721
|
const dispatch = getDispatch();
|
|
722
722
|
const completedEntry = (dispatch.completed || []).find(d => d.agent === agentId && d.type === 'review');
|
|
@@ -1322,7 +1322,7 @@ function runPostCompletionHooks(dispatchItem, agentId, code, stdout, config) {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
1324
|
|
|
1325
|
-
if (type === WORK_TYPE.REVIEW) updatePrAfterReview(agentId, meta?.pr, meta?.project);
|
|
1325
|
+
if (type === WORK_TYPE.REVIEW) updatePrAfterReview(agentId, meta?.pr, meta?.project, config);
|
|
1326
1326
|
if (type === WORK_TYPE.FIX) updatePrAfterFix(meta?.pr, meta?.project, meta?.source);
|
|
1327
1327
|
checkForLearnings(agentId, config.agents[agentId], dispatchItem.task);
|
|
1328
1328
|
if (effectiveSuccess) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.474",
|
|
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"
|