poe-code 3.0.177 → 3.0.178

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 (46) hide show
  1. package/dist/cli/commands/dashboard-loop-shared.d.ts +16 -0
  2. package/dist/cli/commands/dashboard-loop-shared.js +48 -0
  3. package/dist/cli/commands/dashboard-loop-shared.js.map +1 -0
  4. package/dist/cli/commands/experiment.js +211 -22
  5. package/dist/cli/commands/experiment.js.map +1 -1
  6. package/dist/cli/commands/models.js +1 -1
  7. package/dist/cli/commands/pipeline.js +353 -60
  8. package/dist/cli/commands/pipeline.js.map +1 -1
  9. package/dist/cli/commands/plan.d.ts +6 -0
  10. package/dist/cli/commands/plan.js +190 -3
  11. package/dist/cli/commands/plan.js.map +1 -1
  12. package/dist/cli/commands/ralph.js +184 -24
  13. package/dist/cli/commands/ralph.js.map +1 -1
  14. package/dist/cli/commands/spawn.js +9 -1
  15. package/dist/cli/commands/spawn.js.map +1 -1
  16. package/dist/cli/constants.d.ts +4 -4
  17. package/dist/cli/constants.js +3 -3
  18. package/dist/cli/program.js +25 -1
  19. package/dist/cli/program.js.map +1 -1
  20. package/dist/index.js +23183 -17380
  21. package/dist/index.js.map +4 -4
  22. package/dist/providers/claude-code.js +39 -30
  23. package/dist/providers/claude-code.js.map +4 -4
  24. package/dist/providers/codex.js +39 -30
  25. package/dist/providers/codex.js.map +4 -4
  26. package/dist/providers/goose.js +40 -31
  27. package/dist/providers/goose.js.map +4 -4
  28. package/dist/providers/kimi.js +39 -30
  29. package/dist/providers/kimi.js.map +4 -4
  30. package/dist/providers/opencode.js +40 -31
  31. package/dist/providers/opencode.js.map +4 -4
  32. package/dist/providers/poe-agent.js +2 -2
  33. package/dist/providers/poe-agent.js.map +1 -1
  34. package/dist/sdk/autonomous.js +2 -20
  35. package/dist/sdk/autonomous.js.map +1 -1
  36. package/dist/sdk/pipeline.js +12 -11
  37. package/dist/sdk/pipeline.js.map +1 -1
  38. package/dist/sdk/ralph.js +10 -9
  39. package/dist/sdk/ralph.js.map +1 -1
  40. package/dist/sdk/spawn.js +5 -3
  41. package/dist/sdk/spawn.js.map +1 -1
  42. package/dist/sdk/types.d.ts +11 -0
  43. package/dist/services/config.d.ts +58 -0
  44. package/dist/services/config.js +35 -1
  45. package/dist/services/config.js.map +1 -1
  46. package/package.json +3 -2
@@ -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, y2) {
36
- if (!y2) return `${CSI}${x + 1}G`;
37
- return `${CSI}${y2 + 1};${x + 1}H`;
35
+ to(x, y) {
36
+ if (!y) return `${CSI}${x + 1}G`;
37
+ return `${CSI}${y + 1};${x + 1}H`;
38
38
  },
39
- move(x, y2) {
39
+ move(x, y) {
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 (y2 < 0) ret += `${CSI}${-y2}A`;
44
- else if (y2 > 0) ret += `${CSI}${y2}B`;
43
+ if (y < 0) ret += `${CSI}${-y}A`;
44
+ else if (y > 0) ret += `${CSI}${y}B`;
45
45
  return ret;
46
46
  },
47
47
  up: (count = 1) => `${CSI}${count}A`,
@@ -256,6 +256,9 @@ function toJsonMcpServers(servers) {
256
256
  if (server.env && Object.keys(server.env).length > 0) {
257
257
  mapped.env = server.env;
258
258
  }
259
+ if (server.timeout !== void 0) {
260
+ mapped.timeout = server.timeout;
261
+ }
259
262
  out[name] = mapped;
260
263
  }
261
264
  return out;
@@ -299,6 +302,9 @@ function serializeCodexMcpArgs(servers) {
299
302
  if (server.env && Object.keys(server.env).length > 0) {
300
303
  args.push("-c", `${prefix}.env=${toTomlInlineTable(server.env)}`);
301
304
  }
305
+ if (server.timeout !== void 0) {
306
+ args.push("-c", `${prefix}.timeout=${server.timeout}`);
307
+ }
302
308
  }
303
309
  return args;
304
310
  }
@@ -993,6 +999,12 @@ import { Table } from "console-table-printer";
993
999
 
994
1000
  // packages/design-system/src/acp/components.ts
995
1001
  import chalk7 from "chalk";
1002
+
1003
+ // packages/design-system/src/acp/writer.ts
1004
+ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
1005
+ var storage = new AsyncLocalStorage2();
1006
+
1007
+ // packages/design-system/src/acp/components.ts
996
1008
  var AGENT_PREFIX = `${chalk7.green.bold("\u2713")} agent: `;
997
1009
 
998
1010
  // packages/design-system/src/dashboard/buffer.ts
@@ -1009,30 +1021,24 @@ import * as clack from "@clack/prompts";
1009
1021
  // packages/design-system/src/prompts/primitives/cancel.ts
1010
1022
  import chalk9 from "chalk";
1011
1023
 
1012
- // node_modules/@clack/core/dist/index.mjs
1013
- import { styleText as y } from "node:util";
1014
- import { stdout as S, stdin as $ } from "node:process";
1015
- import * as _ from "node:readline";
1016
- import P from "node:readline";
1017
-
1018
- // node_modules/fast-string-truncated-width/dist/index.js
1019
- 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");
1020
- var MODIFIER_RE = new RegExp("\\p{M}+", "gu");
1021
-
1022
- // node_modules/fast-wrap-ansi/lib/main.js
1023
- var ANSI_ESCAPE_BELL = "\x07";
1024
- var ANSI_CSI = "[";
1025
- var ANSI_OSC = "]";
1026
- var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1027
- var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
1028
-
1029
1024
  // node_modules/@clack/core/dist/index.mjs
1030
1025
  var import_sisteransi = __toESM(require_src(), 1);
1031
- import { ReadStream as D } from "node:tty";
1032
- var E = ["up", "down", "left", "right", "space", "enter", "cancel"];
1033
- var G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
1034
- 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)}` } } };
1035
- var Y = globalThis.process.platform.startsWith("win");
1026
+ import { stdout as R, stdin as q } from "node:process";
1027
+ import * as k from "node:readline";
1028
+ import ot from "node:readline";
1029
+ import { ReadStream as J } from "node:tty";
1030
+ 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");
1031
+ var ct = new RegExp("\\p{M}+", "gu");
1032
+ var pt = { limit: 1 / 0, ellipsis: "" };
1033
+ var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
1034
+ var j = "\x07";
1035
+ var Q = "[";
1036
+ var dt = "]";
1037
+ var U = `${dt}8;;`;
1038
+ var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
1039
+ var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
1040
+ 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 };
1041
+ var bt = globalThis.process.platform.startsWith("win");
1036
1042
 
1037
1043
  // packages/design-system/src/prompts/primitives/intro.ts
1038
1044
  import chalk10 from "chalk";
@@ -1052,6 +1058,9 @@ import chalk13 from "chalk";
1052
1058
  // packages/design-system/src/static/menu.ts
1053
1059
  import chalk16 from "chalk";
1054
1060
 
1061
+ // packages/agent-spawn/src/autonomous.ts
1062
+ var DEFAULT_ACTIVITY_TIMEOUT_MS = 10 * 60 * 1e3;
1063
+
1055
1064
  // packages/agent-spawn/src/acp/replay.ts
1056
1065
  import path from "node:path";
1057
1066
  import { homedir as homedir2 } from "node:os";
@@ -2173,7 +2182,7 @@ var originalEscape = Mustache2.escape;
2173
2182
  var CLAUDE_CODE_VARIANTS = {
2174
2183
  haiku: "anthropic/claude-haiku-4.5",
2175
2184
  sonnet: "anthropic/claude-sonnet-4.6",
2176
- opus: "anthropic/claude-opus-4.6"
2185
+ opus: "anthropic/claude-opus-4.7"
2177
2186
  };
2178
2187
  var DEFAULT_CLAUDE_CODE_MODEL = CLAUDE_CODE_VARIANTS.sonnet;
2179
2188
  function stripModelNamespace2(model) {
@@ -2191,7 +2200,7 @@ var CODEX_MODELS = [
2191
2200
  "openai/gpt-5.2-pro",
2192
2201
  "openai/gpt-5.1",
2193
2202
  "openai/gpt-5.1-codex-mini",
2194
- "anthropic/claude-opus-4.6"
2203
+ "anthropic/claude-opus-4.7"
2195
2204
  ];
2196
2205
  var DEFAULT_CODEX_MODEL = CODEX_MODELS[0];
2197
2206
  var KIMI_MODELS = [