@yemi33/minions 0.1.203 → 0.1.205
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 +13 -0
- package/dashboard/js/render-agents.js +2 -0
- package/engine/queries.js +24 -1
- package/minions.js +17 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,8 @@ function renderAgents(agents) {
|
|
|
11
11
|
</div>
|
|
12
12
|
<div class="agent-role">${a.role}</div>
|
|
13
13
|
<div class="agent-action" title="${escHtml(a.lastAction)}">${escHtml(a.lastAction)}</div>
|
|
14
|
+
${a._warning ? `<div style="margin-top:4px;padding:4px 8px;background:rgba(210,153,34,0.15);border:1px solid rgba(210,153,34,0.3);border-radius:4px;font-size:10px;color:var(--yellow)">⚠ ${escHtml(a._warning)}</div>` : ''}
|
|
15
|
+
${a._permissionMode && a._permissionMode !== 'bypassPermissions' && !a._warning ? `<div style="margin-top:4px;font-size:9px;color:var(--muted)">Permission mode: ${escHtml(a._permissionMode)}</div>` : ''}
|
|
14
16
|
${a.resultSummary ? `<div class="agent-result" title="${escHtml(a.resultSummary)}">${renderMd(a.resultSummary.slice(0, 200))}${a.resultSummary.length > 200 ? '...' : ''}</div>` : ''}
|
|
15
17
|
</div>
|
|
16
18
|
`).join('');
|
package/engine/queries.js
CHANGED
|
@@ -118,7 +118,7 @@ function getAgentStatus(agentId) {
|
|
|
118
118
|
// Check active dispatch
|
|
119
119
|
const active = (dispatch.active || []).find(d => d.agent === agentId);
|
|
120
120
|
if (active) {
|
|
121
|
-
|
|
121
|
+
const result = {
|
|
122
122
|
status: 'working',
|
|
123
123
|
task: active.task || '',
|
|
124
124
|
dispatch_id: active.id,
|
|
@@ -126,6 +126,27 @@ function getAgentStatus(agentId) {
|
|
|
126
126
|
branch: active.meta?.branch || '',
|
|
127
127
|
started_at: active.started_at || active.created_at || null,
|
|
128
128
|
};
|
|
129
|
+
// Detect permission-waiting: check live output for non-bypass permission mode
|
|
130
|
+
try {
|
|
131
|
+
const liveLog = shared.safeRead(path.join(AGENTS_DIR, agentId, 'live-output.log'));
|
|
132
|
+
if (liveLog) {
|
|
133
|
+
// Check init message for permission mode
|
|
134
|
+
const initMatch = liveLog.match(/"permissionMode"\s*:\s*"([^"]+)"/);
|
|
135
|
+
if (initMatch && initMatch[1] !== 'bypassPermissions') {
|
|
136
|
+
result._permissionMode = initMatch[1];
|
|
137
|
+
}
|
|
138
|
+
// Check if agent has been silent for >60s (possible permission prompt wait)
|
|
139
|
+
const lastLine = liveLog.trimEnd().split('\n').pop();
|
|
140
|
+
if (lastLine && lastLine.includes('"type":"assistant"') && lastLine.includes('"tool_use"')) {
|
|
141
|
+
const liveStat = fs.statSync(path.join(AGENTS_DIR, agentId, 'live-output.log'));
|
|
142
|
+
const silentMs = Date.now() - liveStat.mtimeMs;
|
|
143
|
+
if (silentMs > 60000 && result._permissionMode) {
|
|
144
|
+
result._warning = 'Possibly waiting for permission approval — agent is not in bypass mode';
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
} catch { /* optional — don't block status */ }
|
|
149
|
+
return result;
|
|
129
150
|
}
|
|
130
151
|
|
|
131
152
|
// Check most recent completed dispatch (within last 5 minutes → show done/error)
|
|
@@ -218,6 +239,8 @@ function getAgents(config) {
|
|
|
218
239
|
...a, status: s.status, lastAction,
|
|
219
240
|
currentTask: (s.task || '').slice(0, 200),
|
|
220
241
|
resultSummary: (s.resultSummary || '').slice(0, 500),
|
|
242
|
+
_warning: s._warning || null,
|
|
243
|
+
_permissionMode: s._permissionMode || null,
|
|
221
244
|
chartered, inboxCount: inboxFiles.length
|
|
222
245
|
};
|
|
223
246
|
});
|
package/minions.js
CHANGED
|
@@ -425,21 +425,23 @@ async function initMinions({ skipScan = false, scanRoot, scanDepth } = {}) {
|
|
|
425
425
|
console.log(`\n Minions initialized at ${MINIONS_HOME}`);
|
|
426
426
|
console.log(` Config, agents, and engine defaults created.\n`);
|
|
427
427
|
|
|
428
|
-
// Preflight checks
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
428
|
+
// Preflight checks (skip if called from bin/minions.js which runs its own)
|
|
429
|
+
if (!skipScan) {
|
|
430
|
+
let preflightOk = true;
|
|
431
|
+
try { execSync('git --version', { encoding: 'utf8', timeout: 5000, stdio: 'pipe' }); console.log(' ✓ Git found'); }
|
|
432
|
+
catch { console.log(' ✗ Git not found — agents need git for worktrees and PRs'); preflightOk = false; }
|
|
433
|
+
try {
|
|
434
|
+
const isWin = process.platform === 'win32';
|
|
435
|
+
const cmd = isWin ? 'where claude 2>NUL' : 'which claude 2>/dev/null';
|
|
436
|
+
execSync(cmd, { encoding: 'utf8', timeout: 5000, stdio: 'pipe' });
|
|
437
|
+
console.log(' ✓ Claude Code CLI found');
|
|
438
|
+
} catch { console.log(' ✗ Claude Code CLI not found — install: npm i -g @anthropic-ai/claude-code (or native installer)'); preflightOk = false; }
|
|
439
|
+
const nodeVer = parseInt(process.versions.node);
|
|
440
|
+
if (nodeVer >= 18) { console.log(' ✓ Node.js ' + process.versions.node); }
|
|
441
|
+
else { console.log(' ✗ Node.js ' + process.versions.node + ' — version 18+ required'); preflightOk = false; }
|
|
442
|
+
if (!preflightOk) console.log('\n Some prerequisites missing — agents may fail until resolved.\n');
|
|
443
|
+
else console.log('');
|
|
444
|
+
}
|
|
443
445
|
if (removedPlaceholders > 0) {
|
|
444
446
|
console.log(` Removed ${removedPlaceholders} placeholder project entr${removedPlaceholders === 1 ? 'y' : 'ies'} from config.\n`);
|
|
445
447
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.205",
|
|
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"
|