@yemi33/minions 0.1.856 → 0.1.858

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,8 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.856 (2026-04-11)
3
+ ## 0.1.858 (2026-04-11)
4
4
 
5
5
  ### Fixes
6
+ - _continuePipeline now calls refresh() to update card list
7
+ - pipeline modal refresh was silently broken — API returns array not object
6
8
  - pipeline modal now auto-updates on all action buttons
7
9
  - pipeline modal buttons stuck on loading state after success
8
10
 
@@ -411,7 +411,8 @@ function openPipelineDetail(id) {
411
411
  }
412
412
  fetch('/api/pipelines').then(function(r) { return r.json(); }).then(function(d) {
413
413
  if (_pipelinePollId !== id) return;
414
- var fresh = (d.pipelines || []).find(function(x) { return x.id === id; });
414
+ var list = Array.isArray(d) ? d : (d.pipelines || []);
415
+ var fresh = list.find(function(x) { return x.id === id; });
415
416
  if (fresh) {
416
417
  // Only re-render if data changed
417
418
  var newHash = JSON.stringify({ runs: fresh.runs || [], enabled: fresh.enabled, _stoppedBy: fresh._stoppedBy, _stopReason: fresh._stopReason });
@@ -435,10 +436,11 @@ async function _refreshPipelineDetail(id) {
435
436
  try {
436
437
  var res = await fetch('/api/pipelines');
437
438
  var d = await res.json();
438
- var fresh = (d.pipelines || []).find(function(x) { return x.id === id; });
439
+ var list = Array.isArray(d) ? d : (d.pipelines || []);
440
+ var fresh = list.find(function(x) { return x.id === id; });
439
441
  if (fresh) {
440
442
  _pipelinesData = _pipelinesData.map(function(x) { return x.id === id ? fresh : x; });
441
- _pipelinePollHash = JSON.stringify(fresh.runs || []);
443
+ _pipelinePollHash = JSON.stringify({ runs: fresh.runs || [], enabled: fresh.enabled, _stoppedBy: fresh._stoppedBy, _stopReason: fresh._stopReason });
442
444
  openPipelineDetail(id);
443
445
  }
444
446
  } catch (e) { /* silent — next poll will catch up */ }
@@ -500,7 +502,7 @@ async function _continuePipeline(id, stageId, btn) {
500
502
  var res = await fetch('/api/pipelines/continue', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id: id, stageId: stageId }) });
501
503
  if (res.ok) {
502
504
  if (btn) { btn.textContent = '\u2713 Continued'; btn.style.color = 'var(--green)'; btn.style.borderColor = 'var(--green)'; btn.style.opacity = '1'; }
503
- // Immediate refresh — no waiting for 4s poll
505
+ refresh();
504
506
  await _refreshPipelineDetail(id);
505
507
  } else {
506
508
  var d = await res.json().catch(function() { return {}; }); showToast('cmd-toast', 'Failed: ' + (d.error || 'unknown'), false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.856",
3
+ "version": "0.1.858",
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"