@yemi33/minions 0.1.1785 → 0.1.1786
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
|
@@ -81,6 +81,15 @@ function _getPipelineEmptyRunCopy(pipeline) {
|
|
|
81
81
|
return 'No runs yet. Use Run Now to start this pipeline.';
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
function _getPipelineDisplayTitle(pipeline) {
|
|
85
|
+
var title = pipeline && pipeline.title != null ? String(pipeline.title).trim() : '';
|
|
86
|
+
if (title && title.toLowerCase() !== 'undefined' && title.toLowerCase() !== 'null') return title;
|
|
87
|
+
var id = pipeline && pipeline.id != null ? String(pipeline.id).trim() : '';
|
|
88
|
+
var human = id.replace(/[_-]+/g, ' ').replace(/\s+/g, ' ').trim();
|
|
89
|
+
if (human) return human.charAt(0).toUpperCase() + human.slice(1);
|
|
90
|
+
return 'Untitled pipeline';
|
|
91
|
+
}
|
|
92
|
+
|
|
84
93
|
/**
|
|
85
94
|
* Render clickable artifact links for a pipeline stage.
|
|
86
95
|
* Each artifact type gets an icon and navigates to the relevant detail view.
|
|
@@ -301,6 +310,7 @@ function renderPipelines(pipelines) {
|
|
|
301
310
|
if ((p.stages || []).length > 0) {
|
|
302
311
|
progressHtml = _buildNodeChain(p.stages || [], displayRun, { compact: true, pipeline: p });
|
|
303
312
|
}
|
|
313
|
+
var displayTitle = _getPipelineDisplayTitle(p);
|
|
304
314
|
|
|
305
315
|
// Monitored resources (pipeline-level + stage-level, compact on card)
|
|
306
316
|
var allResources = _collectMonitoredResources(p);
|
|
@@ -309,7 +319,7 @@ function renderPipelines(pipelines) {
|
|
|
309
319
|
return '<div class="pipeline-card" onclick="if(shouldIgnoreSelectionClick(event))return;openPipelineDetail(\'' + escHtml(p.id) + '\')">' +
|
|
310
320
|
'<div class="pipeline-card-header">' +
|
|
311
321
|
'<div class="pipeline-card-main">' +
|
|
312
|
-
'<strong class="pipeline-card-title">' + escHtml(
|
|
322
|
+
'<strong class="pipeline-card-title">' + escHtml(displayTitle) + '</strong>' +
|
|
313
323
|
'<div class="pipeline-card-meta">' +
|
|
314
324
|
'<span>' + escHtml(p.id) + '</span>' +
|
|
315
325
|
'<span>' + escHtml(_getPipelineStageLabel(p)) + '</span>' +
|
|
@@ -332,6 +342,7 @@ function openPipelineDetail(id) {
|
|
|
332
342
|
_stopPipelinePoll();
|
|
333
343
|
var p = _pipelinesData.find(function(x) { return x.id === id; });
|
|
334
344
|
if (!p) { alert('Pipeline not found'); return; }
|
|
345
|
+
var displayTitle = _getPipelineDisplayTitle(p);
|
|
335
346
|
|
|
336
347
|
var html = '<div style="display:flex;flex-direction:column;gap:12px">';
|
|
337
348
|
|
|
@@ -426,7 +437,7 @@ function openPipelineDetail(id) {
|
|
|
426
437
|
|
|
427
438
|
html += '</div>';
|
|
428
439
|
|
|
429
|
-
document.getElementById('modal-title').textContent = 'Pipeline: ' +
|
|
440
|
+
document.getElementById('modal-title').textContent = 'Pipeline: ' + displayTitle;
|
|
430
441
|
document.getElementById('modal-body').innerHTML = html;
|
|
431
442
|
document.getElementById('modal').classList.add('open');
|
|
432
443
|
|
|
@@ -663,6 +674,7 @@ async function _submitCreatePipeline() {
|
|
|
663
674
|
function openEditPipelineModal(id) {
|
|
664
675
|
var p = _pipelinesData.find(function(x) { return x.id === id; });
|
|
665
676
|
if (!p) return;
|
|
677
|
+
var displayTitle = _getPipelineDisplayTitle(p);
|
|
666
678
|
var inputStyle = 'display:block;width:100%;margin-top:4px;padding:6px 8px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);font-size:var(--text-md);font-family:inherit';
|
|
667
679
|
var pillStyle = 'display:inline-block;padding:4px 10px;margin:2px;border:1px solid var(--border);border-radius:12px;cursor:pointer;font-size:11px;color:var(--text);background:var(--bg);user-select:none;transition:all 0.15s';
|
|
668
680
|
var linkStyle = 'font-size:10px;color:var(--blue);cursor:pointer;text-decoration:underline;margin-right:8px';
|
|
@@ -686,7 +698,7 @@ function openEditPipelineModal(id) {
|
|
|
686
698
|
|
|
687
699
|
window._editPipelineId = id;
|
|
688
700
|
|
|
689
|
-
document.getElementById('modal-title').textContent = 'Edit Pipeline: ' +
|
|
701
|
+
document.getElementById('modal-title').textContent = 'Edit Pipeline: ' + displayTitle;
|
|
690
702
|
document.getElementById('modal-body').innerHTML =
|
|
691
703
|
'<div style="display:flex;flex-direction:column;gap:10px">' +
|
|
692
704
|
'<div style="color:var(--muted);font-size:11px">ID: <strong style="color:var(--text)">' + escHtml(id) + '</strong></div>' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1786",
|
|
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"
|