@yemi33/minions 0.1.2156 → 0.1.2157

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.
@@ -885,8 +885,26 @@ function viewAgentOutput(logPath) {
885
885
  function openInboxNote(filename) {
886
886
  var idx = (inboxData || []).findIndex(function(item) { return item.name === filename; });
887
887
  if (idx >= 0) { openModal(idx); return; }
888
- closeModal();
889
- switchPage('inbox');
888
+ // Not in the live inbox — it's an archived note (the common case for a
889
+ // completed work item's note pill, which the rewriter re-encodes as an
890
+ // 'archive:<name>' token). Fetch it from notes/archive/ and show it in the
891
+ // modal instead of bouncing to the inbox page. Falls back to the inbox page
892
+ // only if the file is genuinely gone (e.g. merged into notes.md).
893
+ fetch('/state/notes/archive/' + encodeURIComponent(filename))
894
+ .then(function(r) { if (!r.ok) throw new Error('HTTP ' + r.status); return r.text(); })
895
+ .then(function(content) {
896
+ var titleEl = document.getElementById('modal-title');
897
+ var bodyEl = document.getElementById('modal-body');
898
+ if (!titleEl || !bodyEl) return;
899
+ titleEl.textContent = filename + ' (archived)';
900
+ // eslint-disable-next-line no-unsanitized/property -- reason: renderMd() escapes note content before assembling HTML; filename is set via textContent
901
+ bodyEl.innerHTML = '<div style="font-size:var(--text-md);line-height:1.7;color:var(--muted)">' + renderMd(content) + '</div>';
902
+ document.getElementById('modal').classList.add('open');
903
+ })
904
+ .catch(function() {
905
+ closeModal();
906
+ switchPage('inbox');
907
+ });
890
908
  }
891
909
 
892
910
  if (typeof window !== 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.2156",
3
+ "version": "0.1.2157",
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"