@yemi33/minions 0.1.705 → 0.1.707
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 +10 -0
- package/dashboard/js/render-plans.js +2 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.707 (2026-04-09)
|
|
4
|
+
|
|
5
|
+
### Other
|
|
6
|
+
- simplify: remove unused isActive, isPaused variables from plan modal
|
|
7
|
+
|
|
8
|
+
## 0.1.706 (2026-04-09)
|
|
9
|
+
|
|
10
|
+
### Other
|
|
11
|
+
- simplify: remove dead modal button variables, fix canExecute reference
|
|
12
|
+
|
|
3
13
|
## 0.1.705 (2026-04-09)
|
|
4
14
|
|
|
5
15
|
### Fixes
|
|
@@ -434,25 +434,6 @@ function _renderPlanModal(normalizedFile, raw, lastMod) {
|
|
|
434
434
|
const isMdPlan = normalizedFile.endsWith('.md');
|
|
435
435
|
let planStatus = '';
|
|
436
436
|
try { if (normalizedFile.endsWith('.json')) planStatus = JSON.parse(raw).status || ''; } catch {}
|
|
437
|
-
const isActive = planStatus === 'approved' || planStatus === 'active';
|
|
438
|
-
const isPaused = planStatus === 'awaiting-approval' || planStatus === 'paused';
|
|
439
|
-
const wi = window._lastWorkItems || [];
|
|
440
|
-
const linkedPrdFile = isMdPlan ? (window._lastStatus?.plans || []).find(p => p.sourcePlan === normalizedFile && p.format === 'prd')?.file : null;
|
|
441
|
-
const hasActiveWork = wi.some(w =>
|
|
442
|
-
(w.status === 'pending' || w.status === 'dispatched') &&
|
|
443
|
-
(w.planFile === normalizedFile || w.sourcePlan === normalizedFile ||
|
|
444
|
-
(linkedPrdFile && w.sourcePlan === linkedPrdFile))
|
|
445
|
-
);
|
|
446
|
-
const prdConversion = wi.find(w => w.type === 'plan-to-prd' && w.status === 'done' && w.planFile === normalizedFile);
|
|
447
|
-
const linkedPrd = (window._lastStatus?.plans || []).find(p => p.sourcePlan === normalizedFile && p.format === 'prd');
|
|
448
|
-
const hasPrd = !!linkedPrd;
|
|
449
|
-
// Plan-to-prd conversion done is not "completed" — the PRD still needs approval and execution
|
|
450
|
-
const prdCompleted = prdConversion && linkedPrd && linkedPrd.status === 'completed';
|
|
451
|
-
const linkedPrdAwaiting = linkedPrd && (linkedPrd.status === 'awaiting-approval' || linkedPrd.status === 'paused');
|
|
452
|
-
const modalShowResume = isPaused || linkedPrdAwaiting;
|
|
453
|
-
const canExecute = isMdPlan && !hasActiveWork && !prdCompleted;
|
|
454
|
-
const modalExecuteBtn = canExecute && !hasPrd ? '<button class="pr-pager-btn" style="font-size:10px;padding:2px 10px;color:var(--green);font-weight:600" ' +
|
|
455
|
-
'onclick="planExecute(\'' + escHtml(normalizedFile) + '\',\'\',this)">Execute</button>' : '';
|
|
456
437
|
// Modal buttons mirror card logic — derive effectiveStatus the same way
|
|
457
438
|
const allPlans = window._lastStatus?.plans || [];
|
|
458
439
|
const cardPlan = allPlans.find(p => p.file === normalizedFile || p.sourcePlan === normalizedFile || (p.file?.endsWith('.json') && p.file === normalizedFile));
|
|
@@ -472,8 +453,8 @@ function _renderPlanModal(normalizedFile, raw, lastMod) {
|
|
|
472
453
|
const target = prdFile || normalizedFile;
|
|
473
454
|
const label = effectiveStatus === 'paused' ? 'Resume' : 'Approve';
|
|
474
455
|
modalActions += '<button class="pr-pager-btn" style="' + bs + ';color:var(--green)" onclick="planApprove(\'' + escHtml(target) + '\',this)">' + label + '</button> ';
|
|
475
|
-
// Re-execute: re-generate PRD from updated plan (only for .md
|
|
476
|
-
if (effectiveStatus === 'awaiting-approval' && isMdPlan && prdFile
|
|
456
|
+
// Re-execute: re-generate PRD from updated plan (only for .md plans with existing awaiting PRD)
|
|
457
|
+
if (effectiveStatus === 'awaiting-approval' && isMdPlan && prdFile) {
|
|
477
458
|
modalActions += '<button class="pr-pager-btn" style="' + bs + ';color:var(--green);opacity:0.7" onclick="planExecute(\'' + escHtml(normalizedFile) + '\',\'\',this)">Re-execute</button> ';
|
|
478
459
|
}
|
|
479
460
|
modalActions += '<button class="pr-pager-btn" style="' + bs + ';color:var(--red)" onclick="planReject(\'' + escHtml(target) + '\')">Reject</button> ';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.707",
|
|
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"
|