@yemi33/minions 0.1.2388 → 0.1.2389
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.
|
@@ -627,7 +627,7 @@ function _renderPlanModal(normalizedFile, raw, lastMod) {
|
|
|
627
627
|
text = 'Project: ' + (plan.project || '?') +
|
|
628
628
|
'\nStrategy: ' + (plan.branch_strategy || 'parallel') +
|
|
629
629
|
'\nBranch: ' + (plan.feature_branch || 'per-item') +
|
|
630
|
-
'\nStatus: ' + (plan.status || 'active') +
|
|
630
|
+
'\nStatus: ' + (plan.status || (plan.requires_approval && !plan.approvedAt ? 'awaiting-approval' : 'active')) +
|
|
631
631
|
'\nGenerated by: ' + (plan.generated_by || '?') + ' on ' + (plan.generated_at || '?') +
|
|
632
632
|
'\n\n--- Items (' + (plan.missing_features || []).length + ') ---\n\n' + items +
|
|
633
633
|
(plan.open_questions?.length ? '\n\n--- Open Questions ---\n\n' + plan.open_questions.map(q => '\u2022 ' + q).join('\n') : '');
|
package/engine/check-status.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
|
-
const dir = path.resolve(__dirname, '..');
|
|
4
3
|
const { safeJson, MINIONS_DIR, DONE_STATUSES } = require('./shared');
|
|
5
4
|
|
|
6
5
|
console.log('=== Work Items (non-done) ===');
|
|
@@ -12,8 +11,7 @@ items.filter(i => !DONE_STATUSES.has(i.status)).forEach(i => {
|
|
|
12
11
|
|
|
13
12
|
console.log('\n=== Agent Status (derived from dispatch) ===');
|
|
14
13
|
const { getAgentStatus } = require('./queries');
|
|
15
|
-
|
|
16
|
-
try { config = safeJson(path.join(MINIONS_DIR, 'config.json')) || {}; } catch {}
|
|
14
|
+
const config = safeJson(path.join(MINIONS_DIR, 'config.json')) || {};
|
|
17
15
|
const agents = Object.keys(config.agents || {});
|
|
18
16
|
if (agents.length === 0) {
|
|
19
17
|
console.log('(no agents configured)');
|
|
@@ -26,6 +24,6 @@ if (agents.length === 0) {
|
|
|
26
24
|
|
|
27
25
|
console.log('\n=== Inbox ===');
|
|
28
26
|
try {
|
|
29
|
-
const inbox = fs.readdirSync(path.join(
|
|
27
|
+
const inbox = fs.readdirSync(path.join(MINIONS_DIR, 'notes', 'inbox')).filter(f => f.endsWith('.md'));
|
|
30
28
|
console.log(inbox.length + ' files:', inbox.join(', '));
|
|
31
29
|
} catch { console.log('empty'); }
|
package/engine/consolidation.js
CHANGED
|
@@ -42,7 +42,7 @@ function _capNotesPreservingOverflow(newContent) {
|
|
|
42
42
|
// No section boundary before the cap — fall back to keeping header + the
|
|
43
43
|
// most recent sections, archiving the middle.
|
|
44
44
|
const sections = newContent.split('\n---\n\n### ');
|
|
45
|
-
if (sections.length >
|
|
45
|
+
if (sections.length > 9) {
|
|
46
46
|
kept = sections[0] + '\n---\n\n### ' + sections.slice(-8).join('\n---\n\n### ');
|
|
47
47
|
const middle = sections.slice(1, -8);
|
|
48
48
|
if (middle.length) dropped = '\n---\n\n### ' + middle.join('\n---\n\n### ');
|
package/engine/queries.js
CHANGED
|
@@ -2176,7 +2176,7 @@ function getPrdInfo(config) {
|
|
|
2176
2176
|
}
|
|
2177
2177
|
existingPrds.push({
|
|
2178
2178
|
file: pf,
|
|
2179
|
-
status: plan.status || 'active',
|
|
2179
|
+
status: plan.status || (plan.requires_approval && !plan.approvedAt ? 'awaiting-approval' : 'active'),
|
|
2180
2180
|
planStale: planStale || plan.planStale || false,
|
|
2181
2181
|
completedAt: plan.completedAt || '',
|
|
2182
2182
|
_archived: isArch,
|
|
@@ -2195,7 +2195,7 @@ function getPrdInfo(config) {
|
|
|
2195
2195
|
? (prdItemIdByKey.get(`${archived ? 1 : 0} ${pf} ${f.id}`) ?? null)
|
|
2196
2196
|
: null;
|
|
2197
2197
|
allPrdItems.push({
|
|
2198
|
-
...f, _source: pf, _planStatus: plan.status || 'active',
|
|
2198
|
+
...f, _source: pf, _planStatus: plan.status || (plan.requires_approval && !plan.approvedAt ? 'awaiting-approval' : 'active'),
|
|
2199
2199
|
_planSummary: plan.plan_summary || pf, _planProject: plan.project || '',
|
|
2200
2200
|
_archived: isArch, _sourcePlan: plan.source_plan || '',
|
|
2201
2201
|
_branchStrategy: plan.branch_strategy || 'parallel',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2389",
|
|
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"
|