@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 +8 -0
- package/dashboard.js +2 -2
- package/engine/spawn-agent.js +7 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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;
|
package/engine/spawn-agent.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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
|
-
//
|
|
117
|
+
// Save binary path cache on first resolution (subsequent spawns use fast path)
|
|
118
118
|
let actualArgs = cliArgs;
|
|
119
|
-
|
|
120
|
-
|
|
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
|
|
133
|
+
// Send prompt via stdin
|
|
136
134
|
try {
|
|
137
|
-
|
|
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.
|
|
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"
|