@yemi33/minions 0.1.572 → 0.1.574

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.574 (2026-04-08)
4
+
5
+ ### Fixes
6
+ - remove dead stdin prepend path, clean up spawn-agent cache logic
7
+
8
+ ### Other
9
+ - perf: skip preamble on streaming session resume
10
+
3
11
  ## 0.1.572 (2026-04-08)
4
12
 
5
13
  ### Features
package/dashboard.js CHANGED
@@ -3374,8 +3374,8 @@ What would you like to discuss or change? When you're happy, say "approve" and I
3374
3374
  }
3375
3375
  const wasResume = !!(ccSessionValid() && ccSession.sessionId);
3376
3376
  const sessionId = wasResume ? ccSession.sessionId : null;
3377
- const preamble = buildCCStatePreamble();
3378
- const prompt = preamble + '\n\n---\n\n' + body.message;
3377
+ const preamble = wasResume ? '' : buildCCStatePreamble();
3378
+ const prompt = (preamble ? preamble + '\n\n---\n\n' : '') + body.message;
3379
3379
 
3380
3380
  const { callLLMStreaming, trackEngineUsage: trackUsage } = require('./engine/llm');
3381
3381
  const streamModel = CONFIG.engine?.ccModel || shared.ENGINE_DEFAULTS.ccModel;
@@ -26,14 +26,14 @@ const env = cleanChildEnv();
26
26
  let claudeBin;
27
27
  let claudeIsNative = false; // true = native binary, false = node cli.js
28
28
  const capsCachePath = path.join(__dirname, 'claude-caps.json');
29
- let _sysPromptFileSupported = null;
29
+ let _cacheHit = false;
30
30
 
31
31
  // Fast path: use cached binary path if it still exists on disk
32
32
  const caps = safeJson(capsCachePath);
33
33
  if (caps?.claudeBin && fs.existsSync(caps.claudeBin)) {
34
34
  claudeBin = caps.claudeBin;
35
35
  claudeIsNative = !!caps.claudeIsNative;
36
- _sysPromptFileSupported = caps.sysPromptFile ?? null;
36
+ _cacheHit = true;
37
37
  }
38
38
 
39
39
  // Strategy 1: Check if `claude` is on PATH (native installer or npm global bin)
@@ -114,12 +114,10 @@ if (!claudeBin) {
114
114
  process.exit(78); // 78 = configuration error (distinct from runtime failures)
115
115
  }
116
116
 
117
- // --system-prompt-file is supported in all Claude CLI versions (not listed in --help but works)
117
+ // Save binary path cache on first resolution (subsequent spawns use fast path)
118
118
  let actualArgs = cliArgs;
119
- // Save binary path cache (no capability check needed — spawnSync for --help was a bottleneck)
120
- if (_sysPromptFileSupported === null) {
121
- _sysPromptFileSupported = true;
122
- try { safeWrite(capsCachePath, { claudeBin, claudeIsNative, sysPromptFile: true }); } catch {}
119
+ if (!_cacheHit) {
120
+ try { safeWrite(capsCachePath, { claudeBin, claudeIsNative }); } catch {}
123
121
  }
124
122
 
125
123
  const proc = claudeIsNative
@@ -132,14 +130,9 @@ fs.appendFile(debugPath, `PID=${proc.pid || 'none'}\nargs=${actualArgs.join(' ')
132
130
  const pidFile = promptFile.replace(/prompt-/, 'pid-').replace(/\.md$/, '.pid');
133
131
  fs.writeFileSync(pidFile, String(proc.pid || ''));
134
132
 
135
- // Send prompt via stdin — if system prompt was truncated, prepend the full context
133
+ // Send prompt via stdin
136
134
  try {
137
- if (!isResume && Buffer.byteLength(sysPrompt) >= 30000) {
138
- // System prompt was too large for CLI — prepend full context to user prompt
139
- proc.stdin.write(`## Full Agent Context\n\n${sysPrompt}\n\n---\n\n## Your Task\n\n${prompt}`);
140
- } else {
141
- proc.stdin.write(prompt);
142
- }
135
+ proc.stdin.write(prompt);
143
136
  proc.stdin.end();
144
137
  } catch (err) {
145
138
  console.error(`FATAL: stdin write failed (broken pipe): ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.572",
3
+ "version": "0.1.574",
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"