poe-code 3.0.144 → 3.0.145

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 (29) hide show
  1. package/dist/cli/commands/pipeline.js +15 -1
  2. package/dist/cli/commands/pipeline.js.map +1 -1
  3. package/dist/cli/commands/spawn.js +3 -3
  4. package/dist/cli/commands/spawn.js.map +1 -1
  5. package/dist/index.js +3647 -313
  6. package/dist/index.js.map +4 -4
  7. package/dist/providers/claude-code.js +27 -33
  8. package/dist/providers/claude-code.js.map +4 -4
  9. package/dist/providers/codex.js +27 -33
  10. package/dist/providers/codex.js.map +4 -4
  11. package/dist/providers/kimi.js +27 -33
  12. package/dist/providers/kimi.js.map +4 -4
  13. package/dist/providers/opencode.js +27 -33
  14. package/dist/providers/opencode.js.map +4 -4
  15. package/dist/workflow-templates/fix-vulnerabilities.caller.yml +18 -0
  16. package/dist/workflow-templates/fix-vulnerabilities.ejected.yml +36 -0
  17. package/dist/workflow-templates/github-issue-comment-created.caller.yml +25 -0
  18. package/dist/workflow-templates/github-issue-comment-created.ejected.yml +155 -0
  19. package/dist/workflow-templates/github-issue-opened.caller.yml +20 -0
  20. package/dist/workflow-templates/github-issue-opened.ejected.yml +42 -0
  21. package/dist/workflow-templates/github-pull-request-opened.caller.yml +19 -0
  22. package/dist/workflow-templates/github-pull-request-opened.ejected.yml +37 -0
  23. package/dist/workflow-templates/github-pull-request-synchronized.caller.yml +17 -0
  24. package/dist/workflow-templates/github-pull-request-synchronized.ejected.yml +35 -0
  25. package/dist/workflow-templates/update-dependencies.caller.yml +17 -0
  26. package/dist/workflow-templates/update-dependencies.ejected.yml +35 -0
  27. package/dist/workflow-templates/update-documentation.caller.yml +17 -0
  28. package/dist/workflow-templates/update-documentation.ejected.yml +36 -0
  29. 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, 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`,
@@ -662,7 +662,7 @@ function detectThemeFromEnv(env) {
662
662
  return void 0;
663
663
  }
664
664
  function resolveThemeName(env = process.env) {
665
- const raw = env.POE_CODE_THEME?.toLowerCase();
665
+ const raw = (env.POE_CODE_THEME ?? env.POE_THEME)?.toLowerCase();
666
666
  if (raw === "light" || raw === "dark") {
667
667
  return raw;
668
668
  }
@@ -947,30 +947,24 @@ 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
-
967
950
  // node_modules/@clack/core/dist/index.mjs
968
951
  var import_sisteransi = __toESM(require_src(), 1);
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");
952
+ import { stdout as R, stdin as q } from "node:process";
953
+ import * as k from "node:readline";
954
+ import ot from "node:readline";
955
+ import { ReadStream as J } from "node:tty";
956
+ 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");
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");
974
968
 
975
969
  // packages/design-system/src/prompts/primitives/intro.ts
976
970
  import chalk9 from "chalk";
@@ -1188,7 +1182,7 @@ import * as jsonc from "jsonc-parser";
1188
1182
  function isConfigObject(value) {
1189
1183
  return typeof value === "object" && value !== null && !Array.isArray(value);
1190
1184
  }
1191
- function parse2(content) {
1185
+ function parse3(content) {
1192
1186
  if (!content || content.trim() === "") {
1193
1187
  return {};
1194
1188
  }
@@ -1261,7 +1255,7 @@ function prune2(obj, shape) {
1261
1255
  return { changed, result };
1262
1256
  }
1263
1257
  var jsonFormat = {
1264
- parse: parse2,
1258
+ parse: parse3,
1265
1259
  serialize,
1266
1260
  merge: merge2,
1267
1261
  prune: prune2
@@ -1272,7 +1266,7 @@ import { parse as parseToml, stringify as stringifyToml } from "smol-toml";
1272
1266
  function isConfigObject2(value) {
1273
1267
  return typeof value === "object" && value !== null && !Array.isArray(value);
1274
1268
  }
1275
- function parse3(content) {
1269
+ function parse4(content) {
1276
1270
  if (!content || content.trim() === "") {
1277
1271
  return {};
1278
1272
  }
@@ -1336,7 +1330,7 @@ function prune3(obj, shape) {
1336
1330
  return { changed, result };
1337
1331
  }
1338
1332
  var tomlFormat = {
1339
- parse: parse3,
1333
+ parse: parse4,
1340
1334
  serialize: serialize2,
1341
1335
  merge: merge3,
1342
1336
  prune: prune3