@yemi33/minions 0.1.854 → 0.1.856
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 +6 -0
- package/dashboard/js/render-pipelines.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -414,7 +414,7 @@ function openPipelineDetail(id) {
|
|
|
414
414
|
var fresh = (d.pipelines || []).find(function(x) { return x.id === id; });
|
|
415
415
|
if (fresh) {
|
|
416
416
|
// Only re-render if data changed
|
|
417
|
-
var newHash = JSON.stringify(fresh.runs || []);
|
|
417
|
+
var newHash = JSON.stringify({ runs: fresh.runs || [], enabled: fresh.enabled, _stoppedBy: fresh._stoppedBy, _stopReason: fresh._stopReason });
|
|
418
418
|
if (newHash !== _pipelinePollHash) {
|
|
419
419
|
_pipelinePollHash = newHash;
|
|
420
420
|
_pipelinesData = _pipelinesData.map(function(x) { return x.id === id ? fresh : x; });
|
|
@@ -449,7 +449,7 @@ async function _triggerPipeline(id, btn) {
|
|
|
449
449
|
showToast('cmd-toast', 'Pipeline triggered', true);
|
|
450
450
|
try {
|
|
451
451
|
var res = await fetch('/api/pipelines/trigger', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id: id }) });
|
|
452
|
-
if (res.ok) { refresh(); await _refreshPipelineDetail(id); }
|
|
452
|
+
if (res.ok) { if (btn) { btn.textContent = 'Run Now'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } refresh(); await _refreshPipelineDetail(id); }
|
|
453
453
|
else { var d = await res.json().catch(function() { return {}; }); if (btn) { btn.textContent = 'Run Now'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } showToast('cmd-toast', 'Failed: ' + (d.error || 'unknown'), false); }
|
|
454
454
|
} catch (e) { if (btn) { btn.textContent = 'Run Now'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } showToast('cmd-toast', 'Error: ' + e.message, false); }
|
|
455
455
|
}
|
|
@@ -461,6 +461,7 @@ async function _abortPipeline(id, btn) {
|
|
|
461
461
|
try {
|
|
462
462
|
var res = await fetch('/api/pipelines/abort', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id: id }) });
|
|
463
463
|
if (res.ok) {
|
|
464
|
+
if (btn) { btn.textContent = 'Abort'; btn.style.pointerEvents = ''; btn.style.opacity = ''; }
|
|
464
465
|
refresh();
|
|
465
466
|
await _refreshPipelineDetail(id);
|
|
466
467
|
} else { var d = await res.json().catch(function() { return {}; }); showToast('cmd-toast', 'Abort failed: ' + (d.error || 'unknown'), false); if (btn) { btn.textContent = 'Abort'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } }
|
|
@@ -474,6 +475,7 @@ async function _retriggerPipeline(id, btn) {
|
|
|
474
475
|
try {
|
|
475
476
|
var res = await fetch('/api/pipelines/retrigger', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id: id }) });
|
|
476
477
|
if (res.ok) {
|
|
478
|
+
if (btn) { btn.textContent = 'Retrigger'; btn.style.pointerEvents = ''; btn.style.opacity = ''; }
|
|
477
479
|
refresh();
|
|
478
480
|
await _refreshPipelineDetail(id);
|
|
479
481
|
} else { var d = await res.json().catch(function() { return {}; }); showToast('cmd-toast', 'Retrigger failed: ' + (d.error || 'unknown'), false); if (btn) { btn.textContent = 'Retrigger'; btn.style.pointerEvents = ''; btn.style.opacity = ''; } }
|
|
@@ -485,7 +487,7 @@ async function _togglePipelineEnabled(id, enabled, btn) {
|
|
|
485
487
|
showToast('cmd-toast', enabled ? 'Pipeline enabled' : 'Pipeline disabled', true);
|
|
486
488
|
try {
|
|
487
489
|
var res = await fetch('/api/pipelines/update', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id: id, enabled: enabled }) });
|
|
488
|
-
if (res.ok) { refresh(); }
|
|
490
|
+
if (res.ok) { refresh(); await _refreshPipelineDetail(id); }
|
|
489
491
|
else { showToast('cmd-toast', 'Failed to ' + (enabled ? 'enable' : 'disable') + ' pipeline', false); }
|
|
490
492
|
} catch (e) { showToast('cmd-toast', 'Error: ' + e.message, false); }
|
|
491
493
|
if (btn) { btn.textContent = enabled ? 'Disable' : 'Enable'; btn.style.pointerEvents = ''; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.856",
|
|
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"
|