poe-code 3.0.174 → 3.0.175
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 +2118 -2058
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +34 -28
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +34 -28
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/goose.js +34 -28
- package/dist/providers/goose.js.map +4 -4
- package/dist/providers/kimi.js +34 -28
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +34 -28
- package/dist/providers/opencode.js.map +4 -4
- package/package.json +1 -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`,
|
|
@@ -1045,24 +1045,30 @@ import * as clack from "@clack/prompts";
|
|
|
1045
1045
|
// packages/design-system/src/prompts/primitives/cancel.ts
|
|
1046
1046
|
import chalk9 from "chalk";
|
|
1047
1047
|
|
|
1048
|
+
// node_modules/@clack/core/dist/index.mjs
|
|
1049
|
+
import { styleText as y } from "node:util";
|
|
1050
|
+
import { stdout as S, stdin as $ } from "node:process";
|
|
1051
|
+
import * as _ from "node:readline";
|
|
1052
|
+
import P from "node:readline";
|
|
1053
|
+
|
|
1054
|
+
// node_modules/fast-string-truncated-width/dist/index.js
|
|
1055
|
+
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");
|
|
1056
|
+
var MODIFIER_RE = new RegExp("\\p{M}+", "gu");
|
|
1057
|
+
|
|
1058
|
+
// node_modules/fast-wrap-ansi/lib/main.js
|
|
1059
|
+
var ANSI_ESCAPE_BELL = "\x07";
|
|
1060
|
+
var ANSI_CSI = "[";
|
|
1061
|
+
var ANSI_OSC = "]";
|
|
1062
|
+
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
1063
|
+
var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
|
|
1064
|
+
|
|
1048
1065
|
// node_modules/@clack/core/dist/index.mjs
|
|
1049
1066
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
1050
|
-
import {
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
var
|
|
1055
|
-
var ct = new RegExp("\\p{M}+", "gu");
|
|
1056
|
-
var pt = { limit: 1 / 0, ellipsis: "" };
|
|
1057
|
-
var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
|
|
1058
|
-
var j = "\x07";
|
|
1059
|
-
var Q = "[";
|
|
1060
|
-
var dt = "]";
|
|
1061
|
-
var U = `${dt}8;;`;
|
|
1062
|
-
var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
|
|
1063
|
-
var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
1064
|
-
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 };
|
|
1065
|
-
var bt = globalThis.process.platform.startsWith("win");
|
|
1067
|
+
import { ReadStream as D } from "node:tty";
|
|
1068
|
+
var E = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
1069
|
+
var G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
1070
|
+
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)}` } } };
|
|
1071
|
+
var Y = globalThis.process.platform.startsWith("win");
|
|
1066
1072
|
|
|
1067
1073
|
// packages/design-system/src/prompts/primitives/intro.ts
|
|
1068
1074
|
import chalk10 from "chalk";
|
|
@@ -1084,26 +1090,26 @@ import chalk16 from "chalk";
|
|
|
1084
1090
|
|
|
1085
1091
|
// packages/agent-spawn/src/acp/replay.ts
|
|
1086
1092
|
import path from "node:path";
|
|
1087
|
-
import { homedir } from "node:os";
|
|
1093
|
+
import { homedir as homedir2 } from "node:os";
|
|
1088
1094
|
import { open, readdir } from "node:fs/promises";
|
|
1089
1095
|
import { createInterface as createInterface2 } from "node:readline";
|
|
1090
1096
|
|
|
1091
|
-
// packages/agent-spawn/src/acp/spawn.ts
|
|
1092
|
-
import { spawn as spawnChildProcess3 } from "node:child_process";
|
|
1093
|
-
|
|
1094
1097
|
// packages/poe-acp-client/src/acp-client.ts
|
|
1095
1098
|
import { isAbsolute } from "node:path";
|
|
1096
1099
|
|
|
1097
1100
|
// packages/poe-acp-client/src/acp-transport.ts
|
|
1098
1101
|
import {
|
|
1099
|
-
spawn as
|
|
1102
|
+
spawn as spawnChildProcess3
|
|
1100
1103
|
} from "node:child_process";
|
|
1101
1104
|
|
|
1102
1105
|
// packages/poe-acp-client/src/run-report.ts
|
|
1103
1106
|
import * as fsPromises from "node:fs/promises";
|
|
1104
|
-
import { homedir
|
|
1107
|
+
import { homedir } from "node:os";
|
|
1105
1108
|
import { join } from "node:path";
|
|
1106
1109
|
|
|
1110
|
+
// packages/agent-spawn/src/acp/spawn.ts
|
|
1111
|
+
import { spawn as spawnChildProcess4 } from "node:child_process";
|
|
1112
|
+
|
|
1107
1113
|
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
1108
1114
|
import path2 from "node:path";
|
|
1109
1115
|
import { homedir as homedir3 } from "node:os";
|