@yemi33/minions 0.1.838 → 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 CHANGED
@@ -1,12 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.838 (2026-04-11)
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
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.838",
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"