@yemi33/minions 0.1.450 → 0.1.451

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,11 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.450 (2026-04-07)
3
+ ## 0.1.451 (2026-04-07)
4
4
 
5
5
  ### Features
6
6
  - notification dot on Notes & KB sidebar when sweep completes/fails
7
7
 
8
8
  ### Fixes
9
+ - plan archive/unarchive now optimistic — immediate UI feedback
9
10
  - meeting conclude timeout synthesizes conclusion instead of null
10
11
  - track ADO head commit for push detection — unblocks re-review cycle
11
12
  - block all fix dispatches while awaiting re-review after a fix
@@ -550,18 +550,18 @@ async function planDelete(file) {
550
550
 
551
551
  async function planArchive(file, btn) {
552
552
  _stopPlanPoll();
553
- if (btn) { btn.dataset.origText = btn.textContent; btn.textContent = 'Archiving...'; btn.style.pointerEvents = 'none'; btn.style.opacity = '0.6'; }
554
- function resetBtn() { if (btn) { btn.textContent = btn.dataset.origText || 'Archive'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } }
553
+ markDeleted('plan:' + file);
554
+ try { closeModal(); } catch { /* may not be open */ }
555
+ showToast('cmd-toast', 'Plan archived', true);
555
556
  try {
556
557
  const res = await fetch('/api/plans/archive', {
557
558
  method: 'POST', headers: { 'Content-Type': 'application/json' },
558
559
  body: JSON.stringify({ file })
559
560
  });
560
561
  const ct = res.headers.get('content-type') || '';
561
- if (!ct.includes('json')) { resetBtn(); alert('Archive failed — dashboard may need a restart'); return; }
562
+ if (!ct.includes('json')) { refresh(); return; }
562
563
  const d = await res.json().catch(() => ({}));
563
564
  if (res.ok && d.ok) {
564
- try { closeModal(); } catch { /* may not be open */ }
565
565
  var msg = 'Archived';
566
566
  if (d.archivedSource) msg += ' PRD + source plan (' + d.archivedSource + ')';
567
567
  if (d.cancelledItems) msg += ', cancelled ' + d.cancelledItems + ' pending item(s)';
@@ -721,25 +721,16 @@ async function triggerVerify(file, btn) {
721
721
  }
722
722
 
723
723
  async function planUnarchive(file, btn) {
724
- if (btn) { btn.dataset.origText = btn.textContent; btn.textContent = 'Restoring...'; btn.style.pointerEvents = 'none'; btn.style.opacity = '0.6'; }
725
- function resetBtn() { if (btn) { btn.textContent = btn.dataset.origText || 'Unarchive'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } }
724
+ try { closeModal(); } catch {}
725
+ showToast('cmd-toast', 'Restored from archive', true);
726
726
  try {
727
727
  const res = await fetch('/api/plans/unarchive', {
728
728
  method: 'POST', headers: { 'Content-Type': 'application/json' },
729
729
  body: JSON.stringify({ file })
730
730
  });
731
- const ct = res.headers.get('content-type') || '';
732
- if (!ct.includes('json')) { resetBtn(); alert('Unarchive failed dashboard may need a restart'); return; }
733
- const d = await res.json().catch(() => ({}));
734
- if (res.ok && d.ok) {
735
- showToast('cmd-toast', 'Restored from archive', true);
736
- refreshPlans();
737
- refresh();
738
- } else {
739
- resetBtn();
740
- alert('Unarchive failed: ' + (d.error || 'unknown'));
741
- }
742
- } catch (e) { resetBtn(); alert('Error: ' + e.message); }
731
+ if (res.ok) { refreshPlans(); refresh(); }
732
+ else { const d = await res.json().catch(() => ({})); alert('Unarchive failed: ' + (d.error || 'unknown')); refresh(); }
733
+ } catch (e) { alert('Error: ' + e.message); refresh(); }
743
734
  }
744
735
 
745
736
  window.MinionsPlans = { openCreatePlanModal, refreshPlans, derivePlanStatus, renderPlans, openArchivedPlansModal, planExecute, planSubmitRevise, planShowRevise, planHideRevise, planView, planApprove, planArchive, planUnarchive, planDelete, planPause, planReject, planDiscuss, planOpenInDocChat, planRegeneratePRD, openVerifyGuide, triggerVerify };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.450",
3
+ "version": "0.1.451",
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"