@yemi33/minions 0.1.856 → 0.1.857

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,9 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.856 (2026-04-11)
3
+ ## 0.1.857 (2026-04-11)
4
4
 
5
5
  ### Fixes
6
+ - pipeline modal refresh was silently broken — API returns array not object
6
7
  - pipeline modal now auto-updates on all action buttons
7
8
  - pipeline modal buttons stuck on loading state after success
8
9
 
@@ -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 */ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.856",
3
+ "version": "0.1.857",
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"