@yemi33/minions 0.1.611 → 0.1.612
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 +4 -1
- package/dashboard/js/render-pinned.js +21 -6
- package/dashboard/js/render-skills.js +12 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,15 +8,17 @@ function renderPinned(entries) {
|
|
|
8
8
|
el.innerHTML = '<p class="empty">No pinned notes. Pin important context that all agents should see.</p>';
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
// Store entries for click-to-view (full content available in status response)
|
|
12
|
+
window._pinnedEntries = entries;
|
|
13
|
+
el.innerHTML = entries.map((e, i) =>
|
|
14
|
+
'<div class="pinned-card" data-file="pinned:' + escHtml(e.title) + '" style="padding:8px 12px;margin-bottom:6px;background:var(--surface2);border-left:3px solid ' +
|
|
13
15
|
(e.level === 'critical' ? 'var(--red)' : e.level === 'warning' ? 'var(--yellow)' : 'var(--blue)') +
|
|
14
|
-
';border-radius:4px">' +
|
|
16
|
+
';border-radius:4px;cursor:pointer" onclick="openPinnedView(' + i + ')">' +
|
|
15
17
|
'<div style="display:flex;justify-content:space-between;align-items:center">' +
|
|
16
18
|
'<strong style="font-size:var(--text-md)">' + escHtml(e.title) + '</strong>' +
|
|
17
|
-
'<button class="pr-pager-btn" style="font-size:9px;padding:1px 6px;color:var(--red);border-color:var(--red)" data-pin-title="' + escHtml(e.title) + '" onclick="removePinnedNote(this.dataset.pinTitle)">Unpin</button>' +
|
|
19
|
+
'<button class="pr-pager-btn" style="font-size:9px;padding:1px 6px;color:var(--red);border-color:var(--red)" data-pin-title="' + escHtml(e.title) + '" onclick="event.stopPropagation();removePinnedNote(this.dataset.pinTitle)">Unpin</button>' +
|
|
18
20
|
'</div>' +
|
|
19
|
-
'<div style="font-size:var(--text-sm);color:var(--muted);margin-top:4px">' + renderMd(e.content.slice(0, 200)) + '</div>' +
|
|
21
|
+
'<div style="font-size:var(--text-sm);color:var(--muted);margin-top:4px">' + renderMd(e.content.slice(0, 200)) + (e.content.length > 200 ? '...' : '') + '</div>' +
|
|
20
22
|
'</div>'
|
|
21
23
|
).join('');
|
|
22
24
|
}
|
|
@@ -57,4 +59,17 @@ async function removePinnedNote(title) {
|
|
|
57
59
|
} catch (e) { alert('Error: ' + e.message); refresh(); }
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
function openPinnedView(idx) {
|
|
63
|
+
const entry = (window._pinnedEntries || [])[idx];
|
|
64
|
+
if (!entry) return;
|
|
65
|
+
document.getElementById('modal-title').textContent = entry.title;
|
|
66
|
+
document.getElementById('modal-body').innerHTML = renderMd(entry.content);
|
|
67
|
+
document.getElementById('modal-body').style.fontFamily = "'Segoe UI', system-ui, sans-serif";
|
|
68
|
+
document.getElementById('modal-body').style.whiteSpace = 'normal';
|
|
69
|
+
document.getElementById('modal').classList.add('open');
|
|
70
|
+
_modalDocContext = { title: entry.title, content: entry.content, selection: '' };
|
|
71
|
+
_modalFilePath = 'pinned.md';
|
|
72
|
+
showModalQa();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
window.MinionsPinned = { renderPinned, openPinNoteModal, submitPinnedNote, removePinnedNote, openPinnedView };
|
|
@@ -76,16 +76,23 @@ function renderSkills(skills) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
function openSkill(file, source, dir) {
|
|
79
|
+
document.getElementById('modal-title').textContent = file;
|
|
80
|
+
document.getElementById('modal-body').innerHTML = '<p style="color:var(--muted)">Loading...</p>';
|
|
81
|
+
document.getElementById('modal').classList.add('open');
|
|
79
82
|
fetch('/api/skill?file=' + encodeURIComponent(file) + '&source=' + encodeURIComponent(source || 'claude-code') + (dir ? '&dir=' + encodeURIComponent(dir) : ''))
|
|
80
83
|
.then(r => r.text())
|
|
81
84
|
.then(content => {
|
|
82
85
|
document.getElementById('modal-title').textContent = file;
|
|
83
|
-
document.getElementById('modal-body').
|
|
84
|
-
document.getElementById('modal-body').style.fontFamily = '
|
|
85
|
-
document.getElementById('modal-body').style.whiteSpace = '
|
|
86
|
-
|
|
86
|
+
document.getElementById('modal-body').innerHTML = renderMd(content);
|
|
87
|
+
document.getElementById('modal-body').style.fontFamily = "'Segoe UI', system-ui, sans-serif";
|
|
88
|
+
document.getElementById('modal-body').style.whiteSpace = 'normal';
|
|
89
|
+
_modalDocContext = { title: file, content: content, selection: '' };
|
|
90
|
+
_modalFilePath = (dir ? dir + '/' : 'skills/') + file;
|
|
91
|
+
showModalQa();
|
|
87
92
|
})
|
|
88
|
-
.catch(() => {
|
|
93
|
+
.catch(() => {
|
|
94
|
+
document.getElementById('modal-body').innerHTML = '<p style="color:var(--red)">Failed to load skill.</p>';
|
|
95
|
+
});
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
window.MinionsSkills = { renderSkills, openSkill };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.612",
|
|
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"
|