@yemi33/minions 0.1.368 → 0.1.369

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,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.369 (2026-04-06)
4
+
5
+ ### Fixes
6
+ - copy button preserves markdown formatting
7
+
3
8
  ## 0.1.368 (2026-04-06)
4
9
 
5
10
  ### Fixes
@@ -49,7 +49,9 @@ function closeModal() {
49
49
  function copyModalContent() {
50
50
  const body = document.getElementById('modal-body');
51
51
  const btn = document.getElementById('modal-copy-btn');
52
- navigator.clipboard.writeText(body.textContent).then(() => {
52
+ // Prefer raw markdown source if available, fall back to rendered text
53
+ const text = (typeof _modalDocContext !== 'undefined' && _modalDocContext.content) ? _modalDocContext.content : body.textContent;
54
+ navigator.clipboard.writeText(text).then(() => {
53
55
  btn.classList.add('copied');
54
56
  btn.innerHTML = '<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"/></svg> Copied';
55
57
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.368",
3
+ "version": "0.1.369",
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"