@yemi33/minions 0.1.1582 → 0.1.1583
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/modal-qa.js +13 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard/js/modal-qa.js
CHANGED
|
@@ -28,6 +28,7 @@ let _qaAbortController = null;
|
|
|
28
28
|
let _qaQueue = []; // queued messages while processing
|
|
29
29
|
const QA_QUEUE_CAP = 10; // max queued messages
|
|
30
30
|
let _qaSessionKey = ''; // key for current conversation (title or filePath)
|
|
31
|
+
let _qaThreadCollapsed = false; // sticky while streaming so collapse doesn't bounce open on updates
|
|
31
32
|
|
|
32
33
|
function _renderQaUserMessage(thread, message, selection) {
|
|
33
34
|
let qHtml = '<div class="modal-qa-q">' + escHtml(message);
|
|
@@ -37,7 +38,7 @@ function _renderQaUserMessage(thread, message, selection) {
|
|
|
37
38
|
qHtml += '</div>';
|
|
38
39
|
thread.insertAdjacentHTML('beforeend', qHtml);
|
|
39
40
|
thread.scrollTop = thread.scrollHeight;
|
|
40
|
-
_showThreadWrap();
|
|
41
|
+
_showThreadWrap(true);
|
|
41
42
|
}
|
|
42
43
|
const _qaSessions = new Map(); // persist conversations across modal open/close {key → {history, threadHtml}}
|
|
43
44
|
const _qaRuntime = new Map(); // key → {history, processing, abortController, queue}
|
|
@@ -290,6 +291,7 @@ function _initQaSession() {
|
|
|
290
291
|
if (!key || _qaSessionKey === key) return;
|
|
291
292
|
if (_qaSessionKey && _qaSessionKey !== key) _qaSaveActiveSessionState();
|
|
292
293
|
_qaSessionKey = key;
|
|
294
|
+
_qaThreadCollapsed = false;
|
|
293
295
|
const card = findCardForFile(_modalFilePath);
|
|
294
296
|
if (card) clearNotifBadge(card);
|
|
295
297
|
var prior = _qaSessions.get(key);
|
|
@@ -305,7 +307,7 @@ function _initQaSession() {
|
|
|
305
307
|
});
|
|
306
308
|
}
|
|
307
309
|
if (prior.filePath) _modalFilePath = prior.filePath;
|
|
308
|
-
_showThreadWrap();
|
|
310
|
+
_showThreadWrap(true);
|
|
309
311
|
requestAnimationFrame(function() {
|
|
310
312
|
var thread = document.getElementById('modal-qa-thread');
|
|
311
313
|
if (thread) thread.scrollTop = thread.scrollHeight;
|
|
@@ -331,6 +333,7 @@ function clearQaConversation() {
|
|
|
331
333
|
_qaQueue = [];
|
|
332
334
|
_qaProcessing = false;
|
|
333
335
|
_qaAbortController = null;
|
|
336
|
+
_qaThreadCollapsed = false;
|
|
334
337
|
document.getElementById('modal-qa-thread').innerHTML = '';
|
|
335
338
|
var wrap = document.getElementById('modal-qa-thread-wrap');
|
|
336
339
|
var expandBar = document.getElementById('qa-expand-bar');
|
|
@@ -671,15 +674,18 @@ function toggleDocChat() {
|
|
|
671
674
|
var expandBar = document.getElementById('qa-expand-bar');
|
|
672
675
|
if (!wrap) return;
|
|
673
676
|
var visible = wrap.style.display !== 'none';
|
|
674
|
-
|
|
675
|
-
|
|
677
|
+
var nextVisible = !visible;
|
|
678
|
+
_qaThreadCollapsed = !nextVisible;
|
|
679
|
+
wrap.style.display = nextVisible ? '' : 'none';
|
|
680
|
+
if (expandBar) expandBar.style.display = nextVisible ? 'none' : '';
|
|
676
681
|
}
|
|
677
682
|
|
|
678
|
-
function _showThreadWrap() {
|
|
683
|
+
function _showThreadWrap(forceExpand) {
|
|
679
684
|
var wrap = document.getElementById('modal-qa-thread-wrap');
|
|
680
685
|
var expandBar = document.getElementById('qa-expand-bar');
|
|
681
|
-
if (
|
|
682
|
-
if (
|
|
686
|
+
if (forceExpand) _qaThreadCollapsed = false;
|
|
687
|
+
if (wrap) wrap.style.display = _qaThreadCollapsed ? 'none' : '';
|
|
688
|
+
if (expandBar) expandBar.style.display = _qaThreadCollapsed ? '' : 'none';
|
|
683
689
|
}
|
|
684
690
|
|
|
685
691
|
// ── Drag-to-resize doc chat thread ──────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1583",
|
|
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"
|