poe-code 3.0.173 → 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
package/dist/providers/kimi.js
CHANGED
|
@@ -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`,
|
|
@@ -1009,24 +1009,30 @@ import * as clack from "@clack/prompts";
|
|
|
1009
1009
|
// packages/design-system/src/prompts/primitives/cancel.ts
|
|
1010
1010
|
import chalk9 from "chalk";
|
|
1011
1011
|
|
|
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
|
+
|
|
1012
1029
|
// node_modules/@clack/core/dist/index.mjs
|
|
1013
1030
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
1014
|
-
import {
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
var
|
|
1019
|
-
var ct = new RegExp("\\p{M}+", "gu");
|
|
1020
|
-
var pt = { limit: 1 / 0, ellipsis: "" };
|
|
1021
|
-
var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
|
|
1022
|
-
var j = "\x07";
|
|
1023
|
-
var Q = "[";
|
|
1024
|
-
var dt = "]";
|
|
1025
|
-
var U = `${dt}8;;`;
|
|
1026
|
-
var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
|
|
1027
|
-
var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
1028
|
-
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 };
|
|
1029
|
-
var bt = globalThis.process.platform.startsWith("win");
|
|
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");
|
|
1030
1036
|
|
|
1031
1037
|
// packages/design-system/src/prompts/primitives/intro.ts
|
|
1032
1038
|
import chalk10 from "chalk";
|
|
@@ -1048,26 +1054,26 @@ import chalk16 from "chalk";
|
|
|
1048
1054
|
|
|
1049
1055
|
// packages/agent-spawn/src/acp/replay.ts
|
|
1050
1056
|
import path from "node:path";
|
|
1051
|
-
import { homedir } from "node:os";
|
|
1057
|
+
import { homedir as homedir2 } from "node:os";
|
|
1052
1058
|
import { open, readdir } from "node:fs/promises";
|
|
1053
1059
|
import { createInterface as createInterface2 } from "node:readline";
|
|
1054
1060
|
|
|
1055
|
-
// packages/agent-spawn/src/acp/spawn.ts
|
|
1056
|
-
import { spawn as spawnChildProcess3 } from "node:child_process";
|
|
1057
|
-
|
|
1058
1061
|
// packages/poe-acp-client/src/acp-client.ts
|
|
1059
1062
|
import { isAbsolute } from "node:path";
|
|
1060
1063
|
|
|
1061
1064
|
// packages/poe-acp-client/src/acp-transport.ts
|
|
1062
1065
|
import {
|
|
1063
|
-
spawn as
|
|
1066
|
+
spawn as spawnChildProcess3
|
|
1064
1067
|
} from "node:child_process";
|
|
1065
1068
|
|
|
1066
1069
|
// packages/poe-acp-client/src/run-report.ts
|
|
1067
1070
|
import * as fsPromises from "node:fs/promises";
|
|
1068
|
-
import { homedir
|
|
1071
|
+
import { homedir } from "node:os";
|
|
1069
1072
|
import { join } from "node:path";
|
|
1070
1073
|
|
|
1074
|
+
// packages/agent-spawn/src/acp/spawn.ts
|
|
1075
|
+
import { spawn as spawnChildProcess4 } from "node:child_process";
|
|
1076
|
+
|
|
1071
1077
|
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
1072
1078
|
import path2 from "node:path";
|
|
1073
1079
|
import { homedir as homedir3 } from "node:os";
|