@yemi33/minions 0.1.365 → 0.1.366
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
|
@@ -255,7 +255,7 @@ function renderPlans(plans) {
|
|
|
255
255
|
'<div><div class="plan-card-title">' + escHtml(p.summary || p.file) + versionBadge + '</div>' +
|
|
256
256
|
'<div class="plan-card-meta">' +
|
|
257
257
|
'<span style="font-weight:600;color:' + (statusColors[effectiveStatus] || 'var(--muted)') + '">' + label + '</span>' +
|
|
258
|
-
'<span>' + escHtml(p.project) + '</span>' +
|
|
258
|
+
(p.project ? '<span>' + escHtml(p.project) + '</span>' : '') +
|
|
259
259
|
'<span>' + p.itemCount + ' items</span>' +
|
|
260
260
|
(p.updatedAt ? '<span title="Last updated: ' + p.updatedAt + '">Updated ' + timeAgo(p.updatedAt) + '</span>' : '') +
|
|
261
261
|
(p.completedAt ? '<span>' + p.completedAt.slice(0, 10) + '</span>' : '') +
|
|
@@ -370,6 +370,7 @@ async function planSubmitRevise(file) {
|
|
|
370
370
|
try {
|
|
371
371
|
const res = await fetch('/api/plans/revise', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ file, feedback }) });
|
|
372
372
|
const data = await res.json();
|
|
373
|
+
if (!res.ok) { showToast('cmd-toast', 'Revision failed: ' + (data.error || 'unknown'), false); return; }
|
|
373
374
|
showToast('cmd-toast', 'Revision requested — agent will update the plan (' + data.workItemId + ')', true);
|
|
374
375
|
planHideRevise(file);
|
|
375
376
|
refreshPlans();
|
|
@@ -96,9 +96,10 @@ function openModal(i) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
function openAddPrModal() {
|
|
99
|
-
const projOpts = (typeof cmdProjects !== 'undefined' ? cmdProjects : []).map(p =>
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
const projOpts = (typeof cmdProjects !== 'undefined' ? cmdProjects : []).map(p => {
|
|
100
|
+
const name = typeof p === 'object' ? p.name : p;
|
|
101
|
+
return '<option value="' + escHtml(name) + '">' + escHtml(name) + '</option>';
|
|
102
|
+
}).join('');
|
|
102
103
|
const 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';
|
|
103
104
|
|
|
104
105
|
document.getElementById('modal-title').textContent = 'Link Pull Request';
|
|
@@ -484,6 +484,7 @@ function openEditScheduleModal(id) {
|
|
|
484
484
|
document.getElementById('modal-body').innerHTML = _scheduleFormHtml(sched, true);
|
|
485
485
|
window._editScheduleId = id;
|
|
486
486
|
document.getElementById('modal').classList.add('open');
|
|
487
|
+
_updateCronPreview();
|
|
487
488
|
}
|
|
488
489
|
|
|
489
490
|
async function submitSchedule(isEdit) {
|
|
@@ -84,7 +84,7 @@ function renderWorkItems(items) {
|
|
|
84
84
|
allWorkItems = items;
|
|
85
85
|
const el = document.getElementById('work-items-content');
|
|
86
86
|
const countEl = document.getElementById('wi-count');
|
|
87
|
-
countEl.textContent = items.length;
|
|
87
|
+
if (countEl) countEl.textContent = items.length;
|
|
88
88
|
if (!items.length) {
|
|
89
89
|
el.innerHTML = '<p class="empty">No work items. Add tasks via Command Center above.</p>';
|
|
90
90
|
return;
|
package/dashboard/js/utils.js
CHANGED
|
@@ -38,7 +38,7 @@ function timeAgo(isoStr) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
function statusColor(s) {
|
|
41
|
-
return s === 'working' ? 'working' : s === 'done' ? 'done' : '';
|
|
41
|
+
return s === 'working' ? 'working' : s === 'done' ? 'done' : s === 'error' ? 'error' : '';
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
function llmCopyBtn() {
|
package/dashboard.js
CHANGED
|
@@ -959,15 +959,18 @@ const server = http.createServer(async (req, res) => {
|
|
|
959
959
|
}
|
|
960
960
|
if (!wiPath) return jsonReply(res, 404, { error: 'source not found' });
|
|
961
961
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
962
|
+
let item = null;
|
|
963
|
+
let found = false;
|
|
964
|
+
mutateJsonFileLocked(wiPath, (items) => {
|
|
965
|
+
if (!Array.isArray(items)) return items;
|
|
966
|
+
const idx = items.findIndex(i => i.id === id);
|
|
967
|
+
if (idx === -1) return items;
|
|
968
|
+
item = items[idx];
|
|
969
|
+
items.splice(idx, 1);
|
|
970
|
+
found = true;
|
|
971
|
+
return items;
|
|
972
|
+
}, { defaultValue: [] });
|
|
973
|
+
if (!found) return jsonReply(res, 404, { error: 'item not found' });
|
|
971
974
|
|
|
972
975
|
// Clean dispatch entries + kill running agent
|
|
973
976
|
const dispatchRemoved = cleanDispatchEntries(d =>
|
|
@@ -1080,6 +1083,7 @@ const server = http.createServer(async (req, res) => {
|
|
|
1080
1083
|
if (body.agents) item.agents = body.agents;
|
|
1081
1084
|
if (body.references) item.references = body.references;
|
|
1082
1085
|
if (body.acceptanceCriteria) item.acceptanceCriteria = body.acceptanceCriteria;
|
|
1086
|
+
if (body.skipPr) item.skipPr = true;
|
|
1083
1087
|
items.push(item);
|
|
1084
1088
|
safeWrite(wiPath, items);
|
|
1085
1089
|
return jsonReply(res, 200, { ok: true, id });
|
|
@@ -3297,6 +3301,8 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
3297
3301
|
config.claude = { ...shared.DEFAULT_CLAUDE };
|
|
3298
3302
|
config.agents = { ...shared.DEFAULT_AGENTS };
|
|
3299
3303
|
safeWrite(path.join(MINIONS_DIR, 'config.json'), config);
|
|
3304
|
+
reloadConfig();
|
|
3305
|
+
invalidateStatusCache();
|
|
3300
3306
|
return jsonReply(res, 200, { ok: true });
|
|
3301
3307
|
} catch (e) { return jsonReply(res, 500, { error: e.message }); }
|
|
3302
3308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.366",
|
|
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"
|