@yemi33/minions 0.1.552 → 0.1.553

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.553 (2026-04-07)
4
+
5
+ ### Features
6
+ - add pin/unpin button to inbox and KB document modals
7
+
3
8
  ## 0.1.552 (2026-04-07)
4
9
 
5
10
  ### Features
@@ -216,9 +216,13 @@ async function kbOpenItem(category, file) {
216
216
  try {
217
217
  const content = await fetch('/api/knowledge/' + category + '/' + encodeURIComponent(file)).then(r => r.text());
218
218
  const display = content.replace(/^---[\s\S]*?---\n*/m, '');
219
+ var pk = kbPinKey(category, file);
220
+ var pinned = isPinned(pk);
219
221
  document.getElementById('modal-title').textContent = file;
220
222
  const modalBody = document.getElementById('modal-body');
221
- modalBody.innerHTML = renderMd(display);
223
+ modalBody.innerHTML =
224
+ '<div style="margin-bottom:12px"><button class="pr-pager-btn pin-btn' + (pinned ? ' pinned' : '') + '" style="font-size:10px;padding:3px 10px" data-pin-key="' + escHtml(pk) + '" onclick="_togglePinAndRefresh(this.dataset.pinKey,\'kb\');kbOpenItem(\'' + escHtml(category) + '\',\'' + escHtml(file) + '\')">' + (pinned ? 'Unpin' : 'Pin to top') + '</button></div>' +
225
+ renderMd(display);
222
226
  _modalDocContext = { title: file, content: display, selection: '' };
223
227
  _modalFilePath = 'knowledge/' + category + '/' + file; showModalQa();
224
228
  // Clear notification badge when opening this document
@@ -91,9 +91,14 @@ function openAllPrs() {
91
91
  function openModal(i) {
92
92
  const item = inboxData[i];
93
93
  if (!item) return;
94
+ var pk = inboxPinKey(item.name);
95
+ var pinned = isPinned(pk);
94
96
  document.getElementById('modal-title').textContent = item.name;
95
97
  document.getElementById('modal-body').innerHTML =
96
- '<div style="margin-bottom:12px"><button class="pr-pager-btn" style="font-size:10px;padding:3px 10px" onclick="promoteToKB(\'' + escHtml(item.name) + '\')">Add to Knowledge Base</button></div>' +
98
+ '<div style="margin-bottom:12px;display:flex;gap:8px;align-items:center">' +
99
+ '<button class="pr-pager-btn pin-btn' + (pinned ? ' pinned' : '') + '" style="font-size:10px;padding:3px 10px" data-pin-key="' + escHtml(pk) + '" onclick="_togglePinAndRefresh(this.dataset.pinKey,\'inbox\');openModal(' + i + ')">' + (pinned ? 'Unpin' : 'Pin to top') + '</button>' +
100
+ '<button class="pr-pager-btn" style="font-size:10px;padding:3px 10px" onclick="promoteToKB(\'' + escHtml(item.name) + '\')">Add to Knowledge Base</button>' +
101
+ '</div>' +
97
102
  '<div style="font-size:12px;line-height:1.7;color:var(--muted)">' + renderMd(item.content) + '</div>';
98
103
  _modalDocContext = { title: item.name, content: item.content, selection: '' };
99
104
  _modalFilePath = 'notes/inbox/' + item.name; showModalQa();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.552",
3
+ "version": "0.1.553",
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"