@yemi33/minions 0.1.215 → 0.1.217

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
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.217 (2026-04-02)
4
+
5
+ ### Engine
6
+ - engine/preflight.js
7
+
8
+ ## 0.1.216 (2026-04-02)
9
+
10
+ ### Engine
11
+ - engine/preflight.js
12
+
13
+ ### Other
14
+ - test/unit.test.js
15
+
3
16
  ## 0.1.215 (2026-04-02)
4
17
 
5
18
  ### Dashboard
@@ -101,14 +101,7 @@ function runPreflight(opts = {}) {
101
101
  allOk = false;
102
102
  }
103
103
 
104
- // 4. Anthropic API key or Claude Max (best-effort warning)
105
- const hasApiKey = !!process.env.ANTHROPIC_API_KEY;
106
- if (hasApiKey) {
107
- results.push({ name: 'Anthropic auth', ok: true, message: 'ANTHROPIC_API_KEY set' });
108
- } else {
109
- // Not fatal — user may have Claude Max subscription
110
- results.push({ name: 'Anthropic auth', ok: 'warn', message: 'ANTHROPIC_API_KEY not set — agents need an API key or Claude Max subscription' });
111
- }
104
+ // Auth is handled by Claude Code itself (API key, Claude Max, etc.) — no check needed here.
112
105
 
113
106
  return { passed: allOk, results };
114
107
  }
@@ -229,12 +222,13 @@ function doctor(minionsHome) {
229
222
 
230
223
  // Check playbooks
231
224
  const playbooksDir = path.join(minionsHome, 'playbooks');
232
- const required = ['implement.md', 'review.md', 'fix.md'];
233
- const missing = required.filter(f => !fs.existsSync(path.join(playbooksDir, f)));
234
- if (missing.length === 0) {
235
- runtimeResults.push({ name: 'Playbooks', ok: true, message: `${required.length} required playbooks present` });
225
+ // Discover all .md playbooks in the directory — don't hardcode
226
+ let playbooks = [];
227
+ try { playbooks = fs.readdirSync(playbooksDir).filter(f => f.endsWith('.md')); } catch { /* dir may not exist */ }
228
+ if (playbooks.length > 0) {
229
+ runtimeResults.push({ name: 'Playbooks', ok: true, message: `${playbooks.length} playbooks found` });
236
230
  } else {
237
- runtimeResults.push({ name: 'Playbooks', ok: false, message: `missing: ${missing.join(', ')} — run: minions init --force` });
231
+ runtimeResults.push({ name: 'Playbooks', ok: false, message: 'no playbooks found in playbooks/ — run: minions init --force' });
238
232
  }
239
233
 
240
234
  // Check port 7331 availability (only if dashboard isn't running)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.215",
3
+ "version": "0.1.217",
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"