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`,
@@ -239,6 +239,9 @@ function toJsonMcpServers(servers) {
239
239
  if (server.env && Object.keys(server.env).length > 0) {
240
240
  mapped.env = server.env;
241
241
  }
242
+ if (server.timeout !== void 0) {
243
+ mapped.timeout = server.timeout;
244
+ }
242
245
  out[name] = mapped;
243
246
  }
244
247
  return out;
@@ -282,6 +285,9 @@ function serializeCodexMcpArgs(servers) {
282
285
  if (server.env && Object.keys(server.env).length > 0) {
283
286
  args.push("-c", `${prefix}.env=${toTomlInlineTable(server.env)}`);
284
287
  }
288
+ if (server.timeout !== void 0) {
289
+ args.push("-c", `${prefix}.timeout=${server.timeout}`);
290
+ }
285
291
  }
286
292
  return args;
287
293
  }
@@ -837,6 +843,12 @@ import { Table } from "console-table-printer";
837
843
 
838
844
  // packages/design-system/src/acp/components.ts
839
845
  import chalk7 from "chalk";
846
+
847
+ // packages/design-system/src/acp/writer.ts
848
+ import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
849
+ var storage = new AsyncLocalStorage2();
850
+
851
+ // packages/design-system/src/acp/components.ts
840
852
  var AGENT_PREFIX = `${chalk7.green.bold("\u2713")} agent: `;
841
853
 
842
854
  // packages/design-system/src/dashboard/buffer.ts
@@ -853,30 +865,24 @@ import * as clack from "@clack/prompts";
853
865
  // packages/design-system/src/prompts/primitives/cancel.ts
854
866
  import chalk9 from "chalk";
855
867
 
856
- // node_modules/@clack/core/dist/index.mjs
857
- import { styleText as y } from "node:util";
858
- import { stdout as S, stdin as $ } from "node:process";
859
- import * as _ from "node:readline";
860
- import P from "node:readline";
861
-
862
- // node_modules/fast-string-truncated-width/dist/index.js
863
- 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");
864
- var MODIFIER_RE = new RegExp("\\p{M}+", "gu");
865
-
866
- // node_modules/fast-wrap-ansi/lib/main.js
867
- var ANSI_ESCAPE_BELL = "\x07";
868
- var ANSI_CSI = "[";
869
- var ANSI_OSC = "]";
870
- var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
871
- var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
872
-
873
868
  // node_modules/@clack/core/dist/index.mjs
874
869
  var import_sisteransi = __toESM(require_src(), 1);
875
- import { ReadStream as D } from "node:tty";
876
- var E = ["up", "down", "left", "right", "space", "enter", "cancel"];
877
- var G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
878
- 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)}` } } };
879
- var Y = globalThis.process.platform.startsWith("win");
870
+ import { stdout as R, stdin as q } from "node:process";
871
+ import * as k from "node:readline";
872
+ import ot from "node:readline";
873
+ import { ReadStream as J } from "node:tty";
874
+ 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");
875
+ var ct = new RegExp("\\p{M}+", "gu");
876
+ var pt = { limit: 1 / 0, ellipsis: "" };
877
+ var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
878
+ var j = "\x07";
879
+ var Q = "[";
880
+ var dt = "]";
881
+ var U = `${dt}8;;`;
882
+ var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
883
+ var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
884
+ 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 };
885
+ var bt = globalThis.process.platform.startsWith("win");
880
886
 
881
887
  // packages/design-system/src/prompts/primitives/intro.ts
882
888
  import chalk10 from "chalk";
@@ -896,6 +902,9 @@ import chalk13 from "chalk";
896
902
  // packages/design-system/src/static/menu.ts
897
903
  import chalk16 from "chalk";
898
904
 
905
+ // packages/agent-spawn/src/autonomous.ts
906
+ var DEFAULT_ACTIVITY_TIMEOUT_MS = 10 * 60 * 1e3;
907
+
899
908
  // packages/agent-spawn/src/acp/replay.ts
900
909
  import path from "node:path";
901
910
  import { homedir as homedir2 } from "node:os";
@@ -2216,7 +2225,7 @@ function createInstallRunner(definition) {
2216
2225
 
2217
2226
  // src/cli/constants.ts
2218
2227
  var FRONTIER_MODELS = [
2219
- "anthropic/claude-opus-4.6",
2228
+ "anthropic/claude-opus-4.7",
2220
2229
  "anthropic/claude-sonnet-4.6",
2221
2230
  "openai/gpt-5.3-codex",
2222
2231
  "openai/gpt-5.4",
@@ -2226,7 +2235,7 @@ var DEFAULT_FRONTIER_MODEL = "anthropic/claude-sonnet-4.6";
2226
2235
  var CLAUDE_CODE_VARIANTS = {
2227
2236
  haiku: "anthropic/claude-haiku-4.5",
2228
2237
  sonnet: "anthropic/claude-sonnet-4.6",
2229
- opus: "anthropic/claude-opus-4.6"
2238
+ opus: "anthropic/claude-opus-4.7"
2230
2239
  };
2231
2240
  var DEFAULT_CLAUDE_CODE_MODEL = CLAUDE_CODE_VARIANTS.sonnet;
2232
2241
  function stripModelNamespace2(model) {
@@ -2244,7 +2253,7 @@ var CODEX_MODELS = [
2244
2253
  "openai/gpt-5.2-pro",
2245
2254
  "openai/gpt-5.1",
2246
2255
  "openai/gpt-5.1-codex-mini",
2247
- "anthropic/claude-opus-4.6"
2256
+ "anthropic/claude-opus-4.7"
2248
2257
  ];
2249
2258
  var DEFAULT_CODEX_MODEL = CODEX_MODELS[0];
2250
2259
  var KIMI_MODELS = [