@yemi33/minions 0.1.571 → 0.1.572

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,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.571 (2026-04-08)
3
+ ## 0.1.572 (2026-04-08)
4
4
 
5
5
  ### Features
6
6
  - include agent dispatches in LLM Call Performance tile
@@ -9,6 +9,7 @@
9
9
  - add ccModel/ccEffort settings and agent runtime tracking
10
10
 
11
11
  ### Fixes
12
+ - always use --system-prompt-file, remove spawnSync --help check
12
13
  - remove dead Context Pressure tile from engine page
13
14
 
14
15
  ### Other
@@ -114,38 +114,12 @@ if (!claudeBin) {
114
114
  process.exit(78); // 78 = configuration error (distinct from runtime failures)
115
115
  }
116
116
 
117
- // Check if --system-prompt-file is supported (cached alongside binary path above)
117
+ // --system-prompt-file is supported in all Claude CLI versions (not listed in --help but works)
118
118
  let actualArgs = cliArgs;
119
+ // Save binary path cache (no capability check needed — spawnSync for --help was a bottleneck)
119
120
  if (_sysPromptFileSupported === null) {
120
- try {
121
- const { spawnSync } = require('child_process');
122
- const testResult = claudeIsNative
123
- ? spawnSync(claudeBin, ['--help'], { encoding: 'utf8', timeout: 10000, windowsHide: true })
124
- : spawnSync(process.execPath, [claudeBin, '--help'], { encoding: 'utf8', timeout: 10000, windowsHide: true });
125
- _sysPromptFileSupported = (testResult.stdout || '').includes('system-prompt-file');
126
- } catch { _sysPromptFileSupported = true; /* assume supported */ }
127
- // Save binary path + capability flag together
128
- try { safeWrite(capsCachePath, { claudeBin, claudeIsNative, sysPromptFile: _sysPromptFileSupported }); } catch {}
129
- }
130
- if (!isResume) try {
131
- if (!_sysPromptFileSupported) {
132
- // Not supported — fall back to inline but safe: use --append-system-prompt with chunking
133
- // or just inline if under 30KB
134
- fs.unlinkSync(sysTmpPath);
135
- if (Buffer.byteLength(sysPrompt) < 30000) {
136
- actualArgs = ['-p', '--system-prompt', sysPrompt, ...extraArgs];
137
- } else {
138
- // Too large for inline — split: short identity as --system-prompt, rest prepended to user prompt
139
- // Extract first section (agent identity) as the system prompt, rest goes into user context
140
- const splitIdx = sysPrompt.indexOf('\n---\n');
141
- const shortSys = splitIdx > 0 && splitIdx < 2000
142
- ? sysPrompt.slice(0, splitIdx)
143
- : sysPrompt.slice(0, 1500) + '\n\n[System prompt truncated for CLI arg limit — full context provided below in user message]';
144
- actualArgs = ['-p', '--system-prompt', shortSys, ...extraArgs];
145
- }
146
- }
147
- } catch {
148
- // If help check fails, try file approach anyway
121
+ _sysPromptFileSupported = true;
122
+ try { safeWrite(capsCachePath, { claudeBin, claudeIsNative, sysPromptFile: true }); } catch {}
149
123
  }
150
124
 
151
125
  const proc = claudeIsNative
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.571",
3
+ "version": "0.1.572",
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"