poe-code 3.0.229 → 3.0.231

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.
@@ -47021,6 +47021,13 @@ async function runMCP(roots, options) {
47021
47021
  await server.listen();
47022
47022
  }
47023
47023
 
47024
+ // packages/agent-code-review/src/prompt-transport.ts
47025
+ init_src16();
47026
+ function shouldUseTextStdinForCodeReview(agent2) {
47027
+ const config = getSpawnConfig(agent2);
47028
+ return config?.kind === "cli" && (config.agentId === "codex" || config.agentId === "claude-code");
47029
+ }
47030
+
47024
47031
  // packages/agent-code-review/src/mcp.ts
47025
47032
  var CODE_REVIEW_AGENT_MCP_ROLES = ["agent", "orchestrator", "subagent"];
47026
47033
  var inlineCommentSchema = S.Object({
@@ -47423,7 +47430,11 @@ async function runCodeReviewAgentMcp(context) {
47423
47430
  });
47424
47431
  }
47425
47432
  async function spawnWithPoeCode2(agent2, prompt, options) {
47426
- return spawn7(agent2, { prompt, ...options });
47433
+ return spawn7(agent2, {
47434
+ prompt,
47435
+ ...options,
47436
+ ...shouldUseTextStdinForCodeReview(agent2) ? { useStdin: true } : {}
47437
+ });
47427
47438
  }
47428
47439
  function renderSubagentPrompt(input) {
47429
47440
  return `${input.template}
@@ -47658,7 +47669,11 @@ function fetchCommentsWithCwd(prUrl, cwd) {
47658
47669
  return fetchPullRequestReviewActivity(prUrl, { cwd });
47659
47670
  }
47660
47671
  async function spawnWithPoeCode3(agent2, prompt, options) {
47661
- return spawn7(agent2, { prompt, ...options });
47672
+ return spawn7(agent2, {
47673
+ prompt,
47674
+ ...options,
47675
+ ...shouldUseTextStdinForCodeReview(agent2) ? { useStdin: true } : {}
47676
+ });
47662
47677
  }
47663
47678
 
47664
47679
  // packages/agent-code-review/src/cli.ts