@yemi33/minions 0.1.1795 → 0.1.1797
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 +10 -0
- package/dashboard/js/modal-qa.js +11 -0
- package/engine/copilot-models.json +1 -1
- package/engine/timeout.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dashboard/js/modal-qa.js
CHANGED
|
@@ -113,6 +113,14 @@ function _qaBuildTranscript(history, currentMessage) {
|
|
|
113
113
|
return out.slice(-QA_TRANSCRIPT_MAX_TURNS);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
function _qaRecordAbortedPartial(runtime, message, partialText) {
|
|
117
|
+
const text = typeof partialText === 'string' ? partialText.trim() : '';
|
|
118
|
+
if (!runtime || !text) return false;
|
|
119
|
+
runtime.history.push({ role: 'user', text: message });
|
|
120
|
+
runtime.history.push({ role: 'assistant', text });
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
|
|
116
124
|
function _qaSummarizeActionContext(actions, actionResults) {
|
|
117
125
|
if (!Array.isArray(actions) || actions.length === 0) return '';
|
|
118
126
|
const lines = [];
|
|
@@ -860,6 +868,9 @@ async function _processQaMessage(message, selection, opts) {
|
|
|
860
868
|
if (loadingEl) loadingEl.remove();
|
|
861
869
|
_qaInsertBeforeQueued(tmp, messageHtml);
|
|
862
870
|
});
|
|
871
|
+
if (e.name === 'AbortError' && _qaRecordAbortedPartial(runtime, message, streamedText) && _qaIsActiveSession(sessionKey)) {
|
|
872
|
+
_qaHistory = runtime.history.slice();
|
|
873
|
+
}
|
|
863
874
|
_qaFlushPersistDebounce(sessionKey);
|
|
864
875
|
_qaPersistSession(sessionKey, {
|
|
865
876
|
threadHtml: updatedThreadHtml,
|
package/engine/timeout.js
CHANGED
|
@@ -451,7 +451,8 @@ function checkTimeouts(config) {
|
|
|
451
451
|
_logState = `logExists=true logSize=${lst.size} pidPresent=${pidPresent}`;
|
|
452
452
|
} catch { /* ENOENT — keep default */ }
|
|
453
453
|
|
|
454
|
-
|
|
454
|
+
const confirmedDeadAtRestart = engineRestartGraceExempt?.has(item.id);
|
|
455
|
+
if (!processAlive && (confirmedDeadAtRestart || silentMs > staleOrphanTimeout) && (Date.now() > engineRestartGraceUntil || confirmedDeadAtRestart)) {
|
|
455
456
|
// Last-resort PID check: lost tracked handle but OS process may still be alive.
|
|
456
457
|
if (isOsPidAliveForDispatch(item.id)) {
|
|
457
458
|
log('info', `Orphan check: ${item.agent} (${item.id}) silent ${silentSec}s but OS PID is alive — keeping [${_logState}]`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1797",
|
|
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"
|