poe-code 3.0.131 → 3.0.133

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.
Files changed (36) hide show
  1. package/README.md +33 -3
  2. package/dist/cli/commands/spawn.js +154 -150
  3. package/dist/cli/commands/spawn.js.map +1 -1
  4. package/dist/cli/poe-agent-main.js +10 -9
  5. package/dist/cli/poe-agent-main.js.map +1 -1
  6. package/dist/cli/program.js +0 -2
  7. package/dist/cli/program.js.map +1 -1
  8. package/dist/index.js +1113 -1087
  9. package/dist/index.js.map +4 -4
  10. package/dist/prompts/github-issue-opened.md +20 -1
  11. package/dist/providers/claude-code.js +29 -23
  12. package/dist/providers/claude-code.js.map +4 -4
  13. package/dist/providers/codex.js +29 -23
  14. package/dist/providers/codex.js.map +4 -4
  15. package/dist/providers/kimi.js +29 -23
  16. package/dist/providers/kimi.js.map +4 -4
  17. package/dist/providers/opencode.js +29 -23
  18. package/dist/providers/opencode.js.map +4 -4
  19. package/dist/sdk/launch.js +17 -1
  20. package/dist/sdk/launch.js.map +1 -1
  21. package/dist/sdk/spawn-core.d.ts +1 -1
  22. package/dist/sdk/spawn-core.js +54 -57
  23. package/dist/sdk/spawn-core.js.map +1 -1
  24. package/dist/sdk/spawn.js +31 -12
  25. package/dist/sdk/spawn.js.map +1 -1
  26. package/dist/sdk/types.d.ts +3 -3
  27. package/dist/workspace/resolve-spawn-workspace.d.ts +15 -0
  28. package/dist/workspace/resolve-spawn-workspace.js +28 -0
  29. package/dist/workspace/resolve-spawn-workspace.js.map +1 -0
  30. package/package.json +2 -1
  31. package/dist/cli/commands/research.d.ts +0 -13
  32. package/dist/cli/commands/research.js +0 -158
  33. package/dist/cli/commands/research.js.map +0 -1
  34. package/dist/sdk/research.d.ts +0 -62
  35. package/dist/sdk/research.js +0 -343
  36. package/dist/sdk/research.js.map +0 -1
@@ -6,4 +6,23 @@ label: "GitHub: Issue Handler"
6
6
  # {{issue.number}} - issue number
7
7
  # {{issue.title}} - issue title
8
8
  ---
9
- Read {{url}} and implement the requested changes.
9
+ You are an automated issue resolver. Your job is to read a GitHub issue, implement the requested changes, and open a pull request.
10
+
11
+ ## Instructions
12
+
13
+ 1. Read the issue at {{url}} including all comments to fully understand the request.
14
+ 2. Create a new branch from the default branch: `git checkout -b issue-{{issue.number}}`
15
+ 3. Investigate the codebase to understand the relevant code before making changes.
16
+ 4. Implement the requested changes. Follow any project instructions (e.g. CLAUDE.md).
17
+ 5. Run the project's test suite and fix any failures your changes introduce.
18
+ 6. Commit your changes. Reference the issue in the commit body.
19
+ 7. Push the branch and create a pull request that closes #{{issue.number}}.
20
+ - Use a clear, descriptive PR title.
21
+ - Summarize what was changed and why in the PR body.
22
+ 8. If the issue is unclear or cannot be resolved, comment on the issue explaining what's blocking.
23
+
24
+ ## Guidelines
25
+
26
+ - Keep changes minimal and focused on what the issue requests.
27
+ - Do not make unrelated changes, refactors, or "improvements" beyond the scope.
28
+ - If tests exist, ensure they pass. If the change warrants new tests, add them.
@@ -32,16 +32,16 @@ var require_src = __commonJS({
32
32
  var CSI = `${ESC}[`;
33
33
  var beep = "\x07";
34
34
  var cursor = {
35
- to(x, y) {
36
- if (!y) return `${CSI}${x + 1}G`;
37
- return `${CSI}${y + 1};${x + 1}H`;
35
+ to(x, y2) {
36
+ if (!y2) return `${CSI}${x + 1}G`;
37
+ return `${CSI}${y2 + 1};${x + 1}H`;
38
38
  },
39
- move(x, y) {
39
+ move(x, y2) {
40
40
  let ret = "";
41
41
  if (x < 0) ret += `${CSI}${-x}D`;
42
42
  else if (x > 0) ret += `${CSI}${x}C`;
43
- if (y < 0) ret += `${CSI}${-y}A`;
44
- else if (y > 0) ret += `${CSI}${y}B`;
43
+ if (y2 < 0) ret += `${CSI}${-y2}A`;
44
+ else if (y2 > 0) ret += `${CSI}${y2}B`;
45
45
  return ret;
46
46
  },
47
47
  up: (count = 1) => `${CSI}${count}A`,
@@ -247,7 +247,7 @@ function toTomlInlineTable(values) {
247
247
  return `{${parts.join(", ")}}`;
248
248
  }
249
249
  function serializeJsonMcpArgs(servers) {
250
- return ["--mcp-config", JSON.stringify({ mcpServers: toJsonMcpServers(servers) })];
250
+ return ["--mcp-servers", JSON.stringify({ mcpServers: toJsonMcpServers(servers) })];
251
251
  }
252
252
  function serializeOpenCodeMcpEnv(servers) {
253
253
  const mcp = {};
@@ -911,24 +911,30 @@ import * as clack from "@clack/prompts";
911
911
  // packages/design-system/src/prompts/primitives/cancel.ts
912
912
  import chalk8 from "chalk";
913
913
 
914
+ // node_modules/@clack/core/dist/index.mjs
915
+ import { styleText as y } from "node:util";
916
+ import { stdout as S, stdin as $ } from "node:process";
917
+ import * as _ from "node:readline";
918
+ import P from "node:readline";
919
+
920
+ // node_modules/fast-string-truncated-width/dist/index.js
921
+ var EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
922
+ var MODIFIER_RE = new RegExp("\\p{M}+", "gu");
923
+
924
+ // node_modules/fast-wrap-ansi/lib/main.js
925
+ var ANSI_ESCAPE_BELL = "\x07";
926
+ var ANSI_CSI = "[";
927
+ var ANSI_OSC = "]";
928
+ var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
929
+ var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
930
+
914
931
  // node_modules/@clack/core/dist/index.mjs
915
932
  var import_sisteransi = __toESM(require_src(), 1);
916
- import { stdout as R, stdin as q } from "node:process";
917
- import * as k from "node:readline";
918
- import ot from "node:readline";
919
- import { ReadStream as J } from "node:tty";
920
- var P = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
921
- var ct = new RegExp("\\p{M}+", "gu");
922
- var pt = { limit: 1 / 0, ellipsis: "" };
923
- var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
924
- var j = "\x07";
925
- var Q = "[";
926
- var dt = "]";
927
- var U = `${dt}8;;`;
928
- var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
929
- var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
930
- var _ = { actions: new Set(At), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true };
931
- var bt = globalThis.process.platform.startsWith("win");
933
+ import { ReadStream as D } from "node:tty";
934
+ var E = ["up", "down", "left", "right", "space", "enter", "cancel"];
935
+ var G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
936
+ var u = { actions: new Set(E), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true, date: { monthNames: [...G], messages: { required: "Please enter a valid date", invalidMonth: "There are only 12 months in a year", invalidDay: (r, t) => `There are only ${r} days in ${t}`, afterMin: (r) => `Date must be on or after ${r.toISOString().slice(0, 10)}`, beforeMax: (r) => `Date must be on or before ${r.toISOString().slice(0, 10)}` } } };
937
+ var Y = globalThis.process.platform.startsWith("win");
932
938
 
933
939
  // packages/design-system/src/prompts/primitives/intro.ts
934
940
  import chalk9 from "chalk";