@yemi33/minions 0.1.705 → 0.1.706
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 +5 -0
- package/dashboard/js/render-plans.js +2 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -437,22 +437,6 @@ function _renderPlanModal(normalizedFile, raw, lastMod) {
|
|
|
437
437
|
const isActive = planStatus === 'approved' || planStatus === 'active';
|
|
438
438
|
const isPaused = planStatus === 'awaiting-approval' || planStatus === 'paused';
|
|
439
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
440
|
// Modal buttons mirror card logic — derive effectiveStatus the same way
|
|
457
441
|
const allPlans = window._lastStatus?.plans || [];
|
|
458
442
|
const cardPlan = allPlans.find(p => p.file === normalizedFile || p.sourcePlan === normalizedFile || (p.file?.endsWith('.json') && p.file === normalizedFile));
|
|
@@ -472,8 +456,8 @@ function _renderPlanModal(normalizedFile, raw, lastMod) {
|
|
|
472
456
|
const target = prdFile || normalizedFile;
|
|
473
457
|
const label = effectiveStatus === 'paused' ? 'Resume' : 'Approve';
|
|
474
458
|
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
|
|
459
|
+
// Re-execute: re-generate PRD from updated plan (only for .md plans with existing awaiting PRD)
|
|
460
|
+
if (effectiveStatus === 'awaiting-approval' && isMdPlan && prdFile) {
|
|
477
461
|
modalActions += '<button class="pr-pager-btn" style="' + bs + ';color:var(--green);opacity:0.7" onclick="planExecute(\'' + escHtml(normalizedFile) + '\',\'\',this)">Re-execute</button> ';
|
|
478
462
|
}
|
|
479
463
|
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.706",
|
|
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"
|