@gonzih/cc-discord 0.2.33 → 0.2.34
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.
|
@@ -300,7 +300,9 @@ function spawnPersistentSession(ns, token, wire, onExit) {
|
|
|
300
300
|
console.log(`[meta-agent-manager] spawning persistent session (ns=${ns})`);
|
|
301
301
|
const proc = spawn(claudeBin, [
|
|
302
302
|
"--continue",
|
|
303
|
+
"-p",
|
|
303
304
|
"--output-format", "stream-json",
|
|
305
|
+
"--input-format", "stream-json",
|
|
304
306
|
"--verbose",
|
|
305
307
|
"--dangerously-skip-permissions",
|
|
306
308
|
], { cwd: wsPath, env, stdio: ["pipe", "pipe", "pipe"] });
|
|
@@ -346,7 +348,9 @@ export function createMetaAgentManager() {
|
|
|
346
348
|
if (!session)
|
|
347
349
|
return;
|
|
348
350
|
try {
|
|
349
|
-
|
|
351
|
+
// --input-format stream-json expects: {"role":"user","content":"..."}
|
|
352
|
+
const payload = JSON.stringify({ role: "user", content: line });
|
|
353
|
+
session.proc.stdin.write(`${payload}\n`);
|
|
350
354
|
}
|
|
351
355
|
catch (err) {
|
|
352
356
|
console.warn(`[meta-agent-manager] stdin write failed (ns=${ns}):`, err.message);
|