@yemi33/minions 0.1.626 → 0.1.628
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 +7 -1
- package/dashboard/js/command-center.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.628 (2026-04-08)
|
|
4
4
|
|
|
5
5
|
### Fixes
|
|
6
|
+
- abort+queue sends queued message after brief delay, not discard
|
|
7
|
+
|
|
8
|
+
## 0.1.627 (2026-04-08)
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
- ccAbort clears queue to prevent queued messages firing after stop
|
|
6
12
|
- add test/check steps and stop condition to work-item playbook
|
|
7
13
|
|
|
8
14
|
## 0.1.625 (2026-04-08)
|
|
@@ -155,12 +155,15 @@ async function ccSend() {
|
|
|
155
155
|
_renderQueueIndicator();
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
await _ccDoSend(message);
|
|
158
|
+
const wasAborted = await _ccDoSend(message);
|
|
159
159
|
|
|
160
|
-
//
|
|
160
|
+
// Brief pause after abort — gives server time to release ccInFlight guard
|
|
161
|
+
if (wasAborted && _ccQueue.length > 0) await new Promise(r => setTimeout(r, 500));
|
|
162
|
+
|
|
163
|
+
// Drain queue — send each queued message in order
|
|
161
164
|
while (_ccQueue.length > 0) {
|
|
162
165
|
const next = _ccQueue.shift();
|
|
163
|
-
_renderQueueIndicator();
|
|
166
|
+
_renderQueueIndicator();
|
|
164
167
|
await _ccDoSend(next);
|
|
165
168
|
}
|
|
166
169
|
}
|
|
@@ -204,6 +207,7 @@ async function _ccDoSend(message, skipUserMsg) {
|
|
|
204
207
|
|
|
205
208
|
_ccSending = true;
|
|
206
209
|
_ccAbortController = new AbortController();
|
|
210
|
+
let _wasAborted = false;
|
|
207
211
|
try { localStorage.setItem('cc-sending', JSON.stringify({ sending: true, startedAt: Date.now() })); } catch {}
|
|
208
212
|
|
|
209
213
|
if (!skipUserMsg) ccAddMessage('user', escHtml(message));
|
|
@@ -355,6 +359,7 @@ async function _ccDoSend(message, skipUserMsg) {
|
|
|
355
359
|
} catch (e) {
|
|
356
360
|
if (streamDiv?.parentNode) { clearInterval(phaseTimer); streamDiv.remove(); }
|
|
357
361
|
if (e.name === 'AbortError') {
|
|
362
|
+
_wasAborted = true;
|
|
358
363
|
if (streamedText) {
|
|
359
364
|
const ccElapsed = Math.round((Date.now() - ccStartTime) / 1000);
|
|
360
365
|
ccAddMessage('assistant', renderMd(streamedText) + '<div style="font-size:9px;color:var(--muted);margin-top:6px;display:flex;justify-content:flex-end;padding-right:30px">Stopped after ' + ccElapsed + 's</div>');
|
|
@@ -378,6 +383,7 @@ async function _ccDoSend(message, skipUserMsg) {
|
|
|
378
383
|
// Show notification badge on CC button if drawer is closed
|
|
379
384
|
if (!_ccOpen) showNotifBadge(document.getElementById('cc-toggle-btn'));
|
|
380
385
|
}
|
|
386
|
+
return _wasAborted;
|
|
381
387
|
}
|
|
382
388
|
|
|
383
389
|
function ccRetryLast() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.628",
|
|
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"
|