@yemi33/minions 0.1.837 → 0.1.839
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 +2 -1
- package/dashboard/js/modal-qa.js +26 -0
- package/dashboard/js/render-prd.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.839 (2026-04-11)
|
|
4
4
|
|
|
5
5
|
### Features
|
|
6
6
|
- per-item Re-open button on done PRD items (deterministic fallback)
|
|
7
7
|
- stale PRD shows Regenerate PRD + Resume as-is buttons
|
|
8
8
|
|
|
9
9
|
### Fixes
|
|
10
|
+
- restore text selection → doc-chat flow + regression tests
|
|
10
11
|
- use structured marker for diff-aware PRD update detection
|
|
11
12
|
- match playbook trigger phrase for diff-aware PRD updates
|
|
12
13
|
- engine only flags stale on plan revision, never auto-regenerates
|
package/dashboard/js/modal-qa.js
CHANGED
|
@@ -414,4 +414,30 @@ function _showThreadWrap() {
|
|
|
414
414
|
});
|
|
415
415
|
})();
|
|
416
416
|
|
|
417
|
+
// ── Text selection → "Ask about this" button ─────────────────────────────────
|
|
418
|
+
document.addEventListener('mouseup', function() {
|
|
419
|
+
var askBtn = document.getElementById('ask-selection-btn');
|
|
420
|
+
if (!askBtn) return;
|
|
421
|
+
// Only act inside modal body
|
|
422
|
+
var sel = window.getSelection();
|
|
423
|
+
if (!sel || sel.isCollapsed || !sel.toString().trim()) {
|
|
424
|
+
askBtn.style.display = 'none';
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
var modalBody = document.getElementById('modal-body');
|
|
428
|
+
if (!modalBody || !modalBody.contains(sel.anchorNode)) {
|
|
429
|
+
askBtn.style.display = 'none';
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
var text = sel.toString().trim();
|
|
433
|
+
if (!text) { askBtn.style.display = 'none'; return; }
|
|
434
|
+
_modalDocContext.selection = text;
|
|
435
|
+
// Position near the selection
|
|
436
|
+
var range = sel.getRangeAt(0);
|
|
437
|
+
var rect = range.getBoundingClientRect();
|
|
438
|
+
askBtn.style.top = (rect.bottom + 4) + 'px';
|
|
439
|
+
askBtn.style.left = rect.left + 'px';
|
|
440
|
+
askBtn.style.display = 'block';
|
|
441
|
+
});
|
|
442
|
+
|
|
417
443
|
window.MinionsQA = { showModalQa, modalAskAboutSelection, clearQaSelection, clearQaConversation, modalSend, qaAbort, toggleDocChat, _showThreadWrap };
|
|
@@ -776,11 +776,17 @@ async function prdItemRequeue(workItemId, source, prdFile) {
|
|
|
776
776
|
async function prdItemReopen(source, itemId) {
|
|
777
777
|
if (!confirm('Re-open this item? It will be set to "updated" and the engine will re-dispatch it on the existing branch.')) return;
|
|
778
778
|
try {
|
|
779
|
+
// Set item to "updated" + clear stale flag + approve so materializer picks it up
|
|
779
780
|
const res = await fetch('/api/prd-items/update', {
|
|
780
781
|
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
781
782
|
body: JSON.stringify({ source, itemId, status: 'updated' })
|
|
782
783
|
});
|
|
783
784
|
if (res.ok) {
|
|
785
|
+
// Also approve the plan (clears planStale so materializer runs)
|
|
786
|
+
await fetch('/api/plans/approve', {
|
|
787
|
+
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
788
|
+
body: JSON.stringify({ file: source, skipRegen: true })
|
|
789
|
+
});
|
|
784
790
|
showToast('cmd-toast', 'Item re-opened — will dispatch on next tick', true);
|
|
785
791
|
refresh();
|
|
786
792
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.839",
|
|
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"
|