@gonzih/cc-discord 0.2.31 → 0.2.32
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,6 +300,7 @@ 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",
|
|
304
305
|
"--input-format", "stream-json",
|
|
305
306
|
"--verbose",
|
|
@@ -347,8 +348,8 @@ export function createMetaAgentManager() {
|
|
|
347
348
|
if (!session)
|
|
348
349
|
return;
|
|
349
350
|
try {
|
|
350
|
-
// --input-format stream-json expects JSON lines: {"
|
|
351
|
-
const payload = JSON.stringify({
|
|
351
|
+
// --input-format stream-json expects JSON lines: {"role":"user","content":"..."}
|
|
352
|
+
const payload = JSON.stringify({ role: "user", content: line });
|
|
352
353
|
session.proc.stdin.write(`${payload}\n`);
|
|
353
354
|
}
|
|
354
355
|
catch (err) {
|