openmagic 0.36.0 → 0.36.1

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/dist/cli.js CHANGED
@@ -1531,6 +1531,7 @@ async function chatClaudeCode(messages, context, onChunk, onDone, onError) {
1531
1531
  "-p",
1532
1532
  "--output-format",
1533
1533
  "stream-json",
1534
+ "--verbose",
1534
1535
  "--max-turns",
1535
1536
  "1"
1536
1537
  // Single turn — OpenMagic manages its own retry loop
@@ -1629,13 +1630,10 @@ async function chatCodexCli(messages, context, onChunk, onDone, onError) {
1629
1630
  const fullPrompt = `${SYSTEM_PROMPT}
1630
1631
 
1631
1632
  ${buildUserMessage(userPrompt, contextParts)}`;
1632
- const proc = spawn2("codex", ["-q"], {
1633
- stdio: ["pipe", "pipe", "pipe"],
1634
- cwd: process.cwd(),
1635
- env: { ...process.env, CODEX_QUIET_MODE: "1" }
1633
+ const proc = spawn2("codex", ["--full-auto", fullPrompt], {
1634
+ stdio: ["ignore", "pipe", "pipe"],
1635
+ cwd: process.cwd()
1636
1636
  });
1637
- proc.stdin.write(fullPrompt);
1638
- proc.stdin.end();
1639
1637
  let fullContent = "";
1640
1638
  let errOutput = "";
1641
1639
  proc.stdout.on("data", (data) => {