poe-code 3.0.229 → 3.0.230

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/index.js CHANGED
@@ -54585,6 +54585,18 @@ var init_mcp2 = __esm({
54585
54585
  }
54586
54586
  });
54587
54587
 
54588
+ // packages/agent-code-review/src/prompt-transport.ts
54589
+ function shouldUseTextStdinForCodeReview(agent3) {
54590
+ const config = getSpawnConfig(agent3);
54591
+ return config?.kind === "cli" && (config.agentId === "codex" || config.agentId === "claude-code");
54592
+ }
54593
+ var init_prompt_transport2 = __esm({
54594
+ "packages/agent-code-review/src/prompt-transport.ts"() {
54595
+ "use strict";
54596
+ init_src15();
54597
+ }
54598
+ });
54599
+
54588
54600
  // packages/agent-code-review/src/mcp.ts
54589
54601
  function parseCodeReviewAgentMcpArgs(argv) {
54590
54602
  const values = /* @__PURE__ */ new Map();
@@ -54977,7 +54989,11 @@ async function runCodeReviewAgentMcp(context) {
54977
54989
  });
54978
54990
  }
54979
54991
  async function spawnWithPoeCode2(agent3, prompt, options) {
54980
- return spawn5(agent3, { prompt, ...options });
54992
+ return spawn5(agent3, {
54993
+ prompt,
54994
+ ...options,
54995
+ ...shouldUseTextStdinForCodeReview(agent3) ? { useStdin: true } : {}
54996
+ });
54981
54997
  }
54982
54998
  function renderSubagentPrompt(input) {
54983
54999
  return `${input.template}
@@ -55064,6 +55080,7 @@ var init_mcp3 = __esm({
55064
55080
  init_mcp2();
55065
55081
  init_assets();
55066
55082
  init_document_schemas();
55083
+ init_prompt_transport2();
55067
55084
  init_review_store();
55068
55085
  CODE_REVIEW_AGENT_MCP_ROLES = ["agent", "orchestrator", "subagent"];
55069
55086
  inlineCommentSchema = S.Object({
@@ -55225,7 +55242,11 @@ function fetchCommentsWithCwd(prUrl, cwd) {
55225
55242
  return fetchPullRequestReviewActivity(prUrl, { cwd });
55226
55243
  }
55227
55244
  async function spawnWithPoeCode3(agent3, prompt, options) {
55228
- return spawn5(agent3, { prompt, ...options });
55245
+ return spawn5(agent3, {
55246
+ prompt,
55247
+ ...options,
55248
+ ...shouldUseTextStdinForCodeReview(agent3) ? { useStdin: true } : {}
55249
+ });
55229
55250
  }
55230
55251
  var ORCHESTRATOR_WORKFLOW_PROMPT;
55231
55252
  var init_review2 = __esm({
@@ -55236,6 +55257,7 @@ var init_review2 = __esm({
55236
55257
  init_assets();
55237
55258
  init_config4();
55238
55259
  init_mcp3();
55260
+ init_prompt_transport2();
55239
55261
  init_review_store();
55240
55262
  ORCHESTRATOR_WORKFLOW_PROMPT = `
55241
55263
  REQUIRED ORCHESTRATION FLOW
@@ -122342,7 +122364,7 @@ var init_package2 = __esm({
122342
122364
  "package.json"() {
122343
122365
  package_default2 = {
122344
122366
  name: "poe-code",
122345
- version: "3.0.229",
122367
+ version: "3.0.230",
122346
122368
  description: "CLI tool to configure Poe API for developer workflows.",
122347
122369
  type: "module",
122348
122370
  main: "./dist/index.js",