@yemi33/minions 0.1.266 → 0.1.268
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 -1
- package/dashboard/js/command-center.js +36 -5
- package/dashboard.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.268 (2026-04-03)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
- CC streaming shows cumulative tool list with loading dots
|
|
7
7
|
|
|
8
|
+
### Fixes
|
|
9
|
+
- process remaining SSE buffer after stream ends + fallback finalization
|
|
10
|
+
- Thinking... indicator shows alongside tool calls until text arrives
|
|
11
|
+
- use safeJson instead of JSON.parse(safeRead()) in trigger-verify handler
|
|
12
|
+
|
|
8
13
|
## 0.1.265 (2026-04-03)
|
|
9
14
|
|
|
10
15
|
### Features
|
|
@@ -203,16 +203,15 @@ async function _ccDoSend(message, skipUserMsg) {
|
|
|
203
203
|
function updateStreamDiv() {
|
|
204
204
|
var html = '';
|
|
205
205
|
if (toolsUsed.length > 0) {
|
|
206
|
-
html += '<div style="margin-bottom:
|
|
207
|
-
toolsUsed.forEach(function(t
|
|
208
|
-
|
|
209
|
-
html += '<div style="color:var(--blue);font-size:11px">\uD83D\uDD27 ' + escHtml(t) + (isLast ? dotPulse : '') + '</div>';
|
|
206
|
+
html += '<div style="margin-bottom:6px">';
|
|
207
|
+
toolsUsed.forEach(function(t) {
|
|
208
|
+
html += '<div style="color:var(--blue);font-size:11px">\uD83D\uDD27 ' + escHtml(t) + '</div>';
|
|
210
209
|
});
|
|
211
210
|
html += '</div>';
|
|
212
211
|
}
|
|
213
212
|
if (streamedText) {
|
|
214
213
|
html += renderMd(streamedText);
|
|
215
|
-
} else
|
|
214
|
+
} else {
|
|
216
215
|
html += '<span style="color:var(--muted);font-size:11px">Thinking...' + dotPulse + '</span>';
|
|
217
216
|
}
|
|
218
217
|
streamDiv.innerHTML = html;
|
|
@@ -259,6 +258,38 @@ async function _ccDoSend(message, skipUserMsg) {
|
|
|
259
258
|
} catch { /* incomplete JSON */ }
|
|
260
259
|
}
|
|
261
260
|
}
|
|
261
|
+
// Process any remaining buffered data after stream ends
|
|
262
|
+
if (buf.trim()) {
|
|
263
|
+
for (const line of buf.split('\n')) {
|
|
264
|
+
if (!line.startsWith('data: ')) continue;
|
|
265
|
+
try {
|
|
266
|
+
const evt = JSON.parse(line.slice(6));
|
|
267
|
+
if (evt.type === 'done') {
|
|
268
|
+
streamDiv.remove();
|
|
269
|
+
_ccMessages.pop();
|
|
270
|
+
const ccElapsed = Math.round((Date.now() - ccStartTime) / 1000);
|
|
271
|
+
const rendered = renderMd(evt.text || streamedText || '');
|
|
272
|
+
ccAddMessage('assistant', rendered + '<div style="font-size:9px;color:var(--muted);margin-top:6px;display:flex;justify-content:flex-end;padding-right:30px">' + ccElapsed + 's</div>');
|
|
273
|
+
if (evt.sessionId) { _ccSessionId = evt.sessionId; ccSaveState(); ccUpdateSessionIndicator(); }
|
|
274
|
+
if (evt.actions && evt.actions.length > 0) {
|
|
275
|
+
for (const action of evt.actions) { await ccExecuteAction(action); }
|
|
276
|
+
}
|
|
277
|
+
} else if (evt.type === 'chunk') {
|
|
278
|
+
streamedText = evt.text;
|
|
279
|
+
updateStreamDiv();
|
|
280
|
+
}
|
|
281
|
+
} catch {}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
// If stream ended without a 'done' event, finalize with whatever we have
|
|
285
|
+
if (streamDiv.parentNode) {
|
|
286
|
+
streamDiv.remove();
|
|
287
|
+
_ccMessages.pop();
|
|
288
|
+
if (streamedText) {
|
|
289
|
+
const ccElapsed = Math.round((Date.now() - ccStartTime) / 1000);
|
|
290
|
+
ccAddMessage('assistant', renderMd(streamedText) + '<div style="font-size:9px;color:var(--muted);margin-top:6px;display:flex;justify-content:flex-end;padding-right:30px">' + ccElapsed + 's</div>');
|
|
291
|
+
}
|
|
292
|
+
}
|
|
262
293
|
} catch (e) {
|
|
263
294
|
clearInterval(ccTimer);
|
|
264
295
|
try { thinking.remove(); } catch { /* may already be removed */ }
|
package/dashboard.js
CHANGED
|
@@ -831,7 +831,8 @@ const server = http.createServer(async (req, res) => {
|
|
|
831
831
|
// If archived, temporarily restore to active so checkPlanCompletion can find it
|
|
832
832
|
const activePath = path.join(prdDir, body.file);
|
|
833
833
|
if (fromArchive) {
|
|
834
|
-
const plan =
|
|
834
|
+
const plan = safeJson(prdPath);
|
|
835
|
+
if (!plan) return jsonReply(res, 500, { error: 'Could not parse PRD file' });
|
|
835
836
|
plan.status = 'approved';
|
|
836
837
|
delete plan.completedAt;
|
|
837
838
|
safeWrite(activePath, plan);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.268",
|
|
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"
|