@yemi33/minions 0.1.749 → 0.1.750
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 +5 -0
- package/dashboard/js/command-center.js +8 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -352,10 +352,11 @@ async function ccSend() {
|
|
|
352
352
|
function _renderQueueIndicator() {
|
|
353
353
|
// Remove all existing queue indicators
|
|
354
354
|
document.querySelectorAll('.cc-queue-item').forEach(function(el) { el.remove(); });
|
|
355
|
-
|
|
355
|
+
var tab = _ccActiveTab();
|
|
356
|
+
var queue = (tab && tab._queue) || [];
|
|
357
|
+
if (queue.length === 0) return;
|
|
356
358
|
var msgs = document.getElementById('cc-messages');
|
|
357
|
-
|
|
358
|
-
_ccQueue.forEach(function(m) {
|
|
359
|
+
queue.forEach(function(m) {
|
|
359
360
|
var el = document.createElement('div');
|
|
360
361
|
el.className = 'cc-queue-item';
|
|
361
362
|
el.style.cssText = 'padding:8px 12px;border-radius:8px;font-size:12px;line-height:1.6;max-width:95%;align-self:flex-end;background:var(--blue);color:#fff;opacity:0.5;order:9999';
|
|
@@ -452,7 +453,7 @@ async function _ccDoSend(message, skipUserMsg) {
|
|
|
452
453
|
html += '<div style="margin-top:' + (streamedText ? '6px' : '0') + '">' + _getThinkingHtml() + '</div>';
|
|
453
454
|
streamDiv.innerHTML = html;
|
|
454
455
|
// Re-append queue indicators so they stay below the streaming content
|
|
455
|
-
if (
|
|
456
|
+
if (activeTab._queue && activeTab._queue.length > 0) _renderQueueIndicator();
|
|
456
457
|
if (msgs.scrollHeight - msgs.scrollTop - msgs.clientHeight < 150) msgs.scrollTop = msgs.scrollHeight;
|
|
457
458
|
}
|
|
458
459
|
// Start phase timer immediately so thinking text updates while waiting for SSE
|
|
@@ -604,8 +605,9 @@ function ccRetryLast() {
|
|
|
604
605
|
tab.messages = tab.messages.slice(0, -1); // remove error from history
|
|
605
606
|
// Resend, then drain queue
|
|
606
607
|
_ccDoSend(text.trim()).then(async function() {
|
|
607
|
-
|
|
608
|
-
|
|
608
|
+
var retryTab = _ccActiveTab();
|
|
609
|
+
while (retryTab && retryTab._queue && retryTab._queue.length > 0) {
|
|
610
|
+
var next = retryTab._queue.shift();
|
|
609
611
|
_renderQueueIndicator();
|
|
610
612
|
await _ccDoSend(next);
|
|
611
613
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.750",
|
|
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"
|