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/goose.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`,
|
|
@@ -853,24 +853,30 @@ import * as clack from "@clack/prompts";
|
|
|
853
853
|
// packages/design-system/src/prompts/primitives/cancel.ts
|
|
854
854
|
import chalk9 from "chalk";
|
|
855
855
|
|
|
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
|
+
|
|
856
873
|
// node_modules/@clack/core/dist/index.mjs
|
|
857
874
|
var import_sisteransi = __toESM(require_src(), 1);
|
|
858
|
-
import {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
var
|
|
863
|
-
var ct = new RegExp("\\p{M}+", "gu");
|
|
864
|
-
var pt = { limit: 1 / 0, ellipsis: "" };
|
|
865
|
-
var ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
|
|
866
|
-
var j = "\x07";
|
|
867
|
-
var Q = "[";
|
|
868
|
-
var dt = "]";
|
|
869
|
-
var U = `${dt}8;;`;
|
|
870
|
-
var et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
|
|
871
|
-
var At = ["up", "down", "left", "right", "space", "enter", "cancel"];
|
|
872
|
-
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 };
|
|
873
|
-
var bt = globalThis.process.platform.startsWith("win");
|
|
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");
|
|
874
880
|
|
|
875
881
|
// packages/design-system/src/prompts/primitives/intro.ts
|
|
876
882
|
import chalk10 from "chalk";
|
|
@@ -892,26 +898,26 @@ import chalk16 from "chalk";
|
|
|
892
898
|
|
|
893
899
|
// packages/agent-spawn/src/acp/replay.ts
|
|
894
900
|
import path from "node:path";
|
|
895
|
-
import { homedir } from "node:os";
|
|
901
|
+
import { homedir as homedir2 } from "node:os";
|
|
896
902
|
import { open, readdir } from "node:fs/promises";
|
|
897
903
|
import { createInterface as createInterface2 } from "node:readline";
|
|
898
904
|
|
|
899
|
-
// packages/agent-spawn/src/acp/spawn.ts
|
|
900
|
-
import { spawn as spawnChildProcess3 } from "node:child_process";
|
|
901
|
-
|
|
902
905
|
// packages/poe-acp-client/src/acp-client.ts
|
|
903
906
|
import { isAbsolute } from "node:path";
|
|
904
907
|
|
|
905
908
|
// packages/poe-acp-client/src/acp-transport.ts
|
|
906
909
|
import {
|
|
907
|
-
spawn as
|
|
910
|
+
spawn as spawnChildProcess3
|
|
908
911
|
} from "node:child_process";
|
|
909
912
|
|
|
910
913
|
// packages/poe-acp-client/src/run-report.ts
|
|
911
914
|
import * as fsPromises from "node:fs/promises";
|
|
912
|
-
import { homedir
|
|
915
|
+
import { homedir } from "node:os";
|
|
913
916
|
import { join } from "node:path";
|
|
914
917
|
|
|
918
|
+
// packages/agent-spawn/src/acp/spawn.ts
|
|
919
|
+
import { spawn as spawnChildProcess4 } from "node:child_process";
|
|
920
|
+
|
|
915
921
|
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
916
922
|
import path2 from "node:path";
|
|
917
923
|
import { homedir as homedir3 } from "node:os";
|