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.
- package/README.md +33 -3
- package/dist/cli/commands/spawn.js +154 -150
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/cli/poe-agent-main.js +10 -9
- package/dist/cli/poe-agent-main.js.map +1 -1
- package/dist/cli/program.js +0 -2
- package/dist/cli/program.js.map +1 -1
- package/dist/index.js +1113 -1087
- package/dist/index.js.map +4 -4
- package/dist/prompts/github-issue-opened.md +20 -1
- package/dist/providers/claude-code.js +29 -23
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +29 -23
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/kimi.js +29 -23
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +29 -23
- package/dist/providers/opencode.js.map +4 -4
- package/dist/sdk/launch.js +17 -1
- package/dist/sdk/launch.js.map +1 -1
- package/dist/sdk/spawn-core.d.ts +1 -1
- package/dist/sdk/spawn-core.js +54 -57
- package/dist/sdk/spawn-core.js.map +1 -1
- package/dist/sdk/spawn.js +31 -12
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/sdk/types.d.ts +3 -3
- package/dist/workspace/resolve-spawn-workspace.d.ts +15 -0
- package/dist/workspace/resolve-spawn-workspace.js +28 -0
- package/dist/workspace/resolve-spawn-workspace.js.map +1 -0
- package/package.json +2 -1
- package/dist/cli/commands/research.d.ts +0 -13
- package/dist/cli/commands/research.js +0 -158
- package/dist/cli/commands/research.js.map +0 -1
- package/dist/sdk/research.d.ts +0 -62
- package/dist/sdk/research.js +0 -343
- package/dist/sdk/research.js.map +0 -1
|
@@ -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,
|
|
36
|
-
if (!
|
|
37
|
-
return `${CSI}${
|
|
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,
|
|
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 (
|
|
44
|
-
else if (
|
|
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`,
|
|
@@ -283,7 +283,7 @@ function toTomlInlineTable(values) {
|
|
|
283
283
|
return `{${parts.join(", ")}}`;
|
|
284
284
|
}
|
|
285
285
|
function serializeJsonMcpArgs(servers) {
|
|
286
|
-
return ["--mcp-
|
|
286
|
+
return ["--mcp-servers", JSON.stringify({ mcpServers: toJsonMcpServers(servers) })];
|
|
287
287
|
}
|
|
288
288
|
function serializeOpenCodeMcpEnv(servers) {
|
|
289
289
|
const mcp = {};
|
|
@@ -947,24 +947,30 @@ import * as clack from "@clack/prompts";
|
|
|
947
947
|
// packages/design-system/src/prompts/primitives/cancel.ts
|
|
948
948
|
import chalk8 from "chalk";
|
|
949
949
|
|
|
950
|
+
// node_modules/@clack/core/dist/index.mjs
|
|
951
|
+
import { styleText as y } from "node:util";
|
|
952
|
+
import { stdout as S, stdin as $ } from "node:process";
|
|
953
|
+
import * as _ from "node:readline";
|
|
954
|
+
import P from "node:readline";
|
|
955
|
+
|
|
956
|
+
// node_modules/fast-string-truncated-width/dist/index.js
|
|
957
|
+
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");
|
|
958
|
+
var MODIFIER_RE = new RegExp("\\p{M}+", "gu");
|
|
959
|
+
|
|
960
|
+
// node_modules/fast-wrap-ansi/lib/main.js
|
|
961
|
+
var ANSI_ESCAPE_BELL = "\x07";
|
|
962
|
+
var ANSI_CSI = "[";
|
|
963
|
+
var ANSI_OSC = "]";
|
|
964
|
+
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
965
|
+
var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
|
|
966
|
+
|
|
950
967
|
// node_modules/@clack/core/dist/index.mjs
|
|
951
968
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
952
|
-
import {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
var
|
|
957
|
-
var ct = new RegExp("\\p{M}+", "gu");
|
|
958
|
-
var pt = { limit: 1 / 0, ellipsis: "" };
|
|
959
|
-
var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
|
|
960
|
-
var j = "\x07";
|
|
961
|
-
var Q = "[";
|
|
962
|
-
var dt = "]";
|
|
963
|
-
var U = `${dt}8;;`;
|
|
964
|
-
var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
|
|
965
|
-
var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
966
|
-
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 };
|
|
967
|
-
var bt = globalThis.process.platform.startsWith("win");
|
|
969
|
+
import { ReadStream as D } from "node:tty";
|
|
970
|
+
var E = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
971
|
+
var G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
972
|
+
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)}` } } };
|
|
973
|
+
var Y = globalThis.process.platform.startsWith("win");
|
|
968
974
|
|
|
969
975
|
// packages/design-system/src/prompts/primitives/intro.ts
|
|
970
976
|
import chalk9 from "chalk";
|