poe-code 3.0.186 → 3.0.188

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 (90) hide show
  1. package/dist/cli/commands/experiment.js +1 -1
  2. package/dist/cli/commands/experiment.js.map +1 -1
  3. package/dist/cli/commands/pipeline-init.js +1 -1
  4. package/dist/cli/commands/pipeline-init.js.map +1 -1
  5. package/dist/cli/commands/pipeline.js +1 -1
  6. package/dist/cli/commands/pipeline.js.map +1 -1
  7. package/dist/cli/commands/spawn.js +2 -1
  8. package/dist/cli/commands/spawn.js.map +1 -1
  9. package/dist/cli/program.js +6 -6
  10. package/dist/cli/program.js.map +1 -1
  11. package/dist/index.js +122 -225
  12. package/dist/index.js.map +4 -4
  13. package/dist/providers/claude-code.js +2 -76
  14. package/dist/providers/claude-code.js.map +4 -4
  15. package/dist/providers/codex.js +2 -76
  16. package/dist/providers/codex.js.map +4 -4
  17. package/dist/providers/goose.js +2 -76
  18. package/dist/providers/goose.js.map +4 -4
  19. package/dist/providers/kimi.js +2 -76
  20. package/dist/providers/kimi.js.map +4 -4
  21. package/dist/providers/opencode.js +2 -76
  22. package/dist/providers/opencode.js.map +4 -4
  23. package/dist/providers/poe-agent.js +23 -107
  24. package/dist/providers/poe-agent.js.map +4 -4
  25. package/dist/sdk/experiment.js +1 -1
  26. package/dist/sdk/experiment.js.map +1 -1
  27. package/package.json +10 -30
  28. package/packages/design-system/dist/prompts/primitives/cancel.d.ts +1 -1
  29. package/packages/design-system/dist/prompts/primitives/cancel.js +1 -1
  30. package/packages/cmdkit/dist/cli.compile-check.d.ts +0 -1
  31. package/packages/cmdkit/dist/cli.compile-check.js +0 -26
  32. package/packages/cmdkit/dist/cli.d.ts +0 -12
  33. package/packages/cmdkit/dist/cli.js +0 -2331
  34. package/packages/cmdkit/dist/cli.js.map +0 -7
  35. package/packages/cmdkit/dist/index.compile-check.d.ts +0 -1
  36. package/packages/cmdkit/dist/index.compile-check.js +0 -50
  37. package/packages/cmdkit/dist/index.d.ts +0 -164
  38. package/packages/cmdkit/dist/index.js +0 -561
  39. package/packages/cmdkit/dist/index.js.map +0 -7
  40. package/packages/cmdkit/dist/mcp.compile-check.d.ts +0 -1
  41. package/packages/cmdkit/dist/mcp.compile-check.js +0 -26
  42. package/packages/cmdkit/dist/mcp.d.ts +0 -31
  43. package/packages/cmdkit/dist/mcp.js +0 -1254
  44. package/packages/cmdkit/dist/mcp.js.map +0 -7
  45. package/packages/cmdkit/dist/number-schema.d.ts +0 -3
  46. package/packages/cmdkit/dist/number-schema.js +0 -8
  47. package/packages/cmdkit/dist/renderer.d.ts +0 -5
  48. package/packages/cmdkit/dist/renderer.js +0 -164
  49. package/packages/cmdkit/dist/renderer.js.map +0 -7
  50. package/packages/cmdkit/dist/schema-scope.d.ts +0 -4
  51. package/packages/cmdkit/dist/schema-scope.js +0 -34
  52. package/packages/cmdkit/dist/sdk.compile-check.d.ts +0 -1
  53. package/packages/cmdkit/dist/sdk.compile-check.js +0 -79
  54. package/packages/cmdkit/dist/sdk.d.ts +0 -63
  55. package/packages/cmdkit/dist/sdk.js +0 -369
  56. package/packages/cmdkit/dist/sdk.js.map +0 -7
  57. package/packages/cmdkit-openapi/dist/api-command.d.ts +0 -7
  58. package/packages/cmdkit-openapi/dist/api-command.js +0 -4
  59. package/packages/cmdkit-openapi/dist/auth/bearer-token-auth.d.ts +0 -8
  60. package/packages/cmdkit-openapi/dist/auth/bearer-token-auth.js +0 -216
  61. package/packages/cmdkit-openapi/dist/auth/types.d.ts +0 -9
  62. package/packages/cmdkit-openapi/dist/auth/types.js +0 -1
  63. package/packages/cmdkit-openapi/dist/bin/generate.d.ts +0 -40
  64. package/packages/cmdkit-openapi/dist/bin/generate.js +0 -248
  65. package/packages/cmdkit-openapi/dist/define-client.d.ts +0 -20
  66. package/packages/cmdkit-openapi/dist/define-client.js +0 -148
  67. package/packages/cmdkit-openapi/dist/generate.d.ts +0 -210
  68. package/packages/cmdkit-openapi/dist/generate.js +0 -1091
  69. package/packages/cmdkit-openapi/dist/group-by-noun.d.ts +0 -6
  70. package/packages/cmdkit-openapi/dist/group-by-noun.js +0 -17
  71. package/packages/cmdkit-openapi/dist/http.d.ts +0 -26
  72. package/packages/cmdkit-openapi/dist/http.js +0 -123
  73. package/packages/cmdkit-openapi/dist/index.d.ts +0 -12
  74. package/packages/cmdkit-openapi/dist/index.js +0 -6
  75. package/packages/cmdkit-openapi/dist/interpreter.d.ts +0 -6
  76. package/packages/cmdkit-openapi/dist/interpreter.js +0 -289
  77. package/packages/cmdkit-openapi/dist/lock.d.ts +0 -14
  78. package/packages/cmdkit-openapi/dist/lock.js +0 -48
  79. package/packages/cmdkit-openapi/dist/naming.d.ts +0 -24
  80. package/packages/cmdkit-openapi/dist/naming.js +0 -218
  81. package/packages/cmdkit-openapi/dist/request-shape.d.ts +0 -15
  82. package/packages/cmdkit-openapi/dist/request-shape.js +0 -5
  83. package/packages/cmdkit-openapi/dist/runtime.d.ts +0 -13
  84. package/packages/cmdkit-openapi/dist/runtime.js +0 -94
  85. package/packages/cmdkit-openapi/dist/spec-source.d.ts +0 -11
  86. package/packages/cmdkit-openapi/dist/spec-source.js +0 -63
  87. package/packages/cmdkit-schema/dist/index.compile-check.d.ts +0 -1
  88. package/packages/cmdkit-schema/dist/index.compile-check.js +0 -12
  89. package/packages/cmdkit-schema/dist/index.d.ts +0 -124
  90. package/packages/cmdkit-schema/dist/index.js +0 -175
@@ -2807,7 +2807,7 @@ function toToolErrorText(value) {
2807
2807
  async function waitForToolAck(options) {
2808
2808
  assertNotAborted(options.signal);
2809
2809
  let abortListener;
2810
- const abortPromise = new Promise((_2, reject) => {
2810
+ const abortPromise = new Promise((_, reject) => {
2811
2811
  abortListener = () => {
2812
2812
  reject(new AbortError("Run aborted.", options.signal.reason));
2813
2813
  };
@@ -7669,7 +7669,7 @@ var init_internal = __esm({
7669
7669
  }
7670
7670
  const signal = options.signal;
7671
7671
  let abortListener;
7672
- const abortPromise = new Promise((_2, reject) => {
7672
+ const abortPromise = new Promise((_, reject) => {
7673
7673
  const rejectWithAbortReason = () => {
7674
7674
  if (requestId !== void 0) {
7675
7675
  messageLayer.sendNotification("notifications/cancelled", { requestId });
@@ -11190,8 +11190,8 @@ function parseDelimiter(input, start, marker) {
11190
11190
  }
11191
11191
  function matchDelimiterPairs(delimiters) {
11192
11192
  const pairs = [];
11193
- const previous = delimiters.map((_2, index) => index - 1);
11194
- const next = delimiters.map((_2, index) => index + 1 < delimiters.length ? index + 1 : -1);
11193
+ const previous = delimiters.map((_, index) => index - 1);
11194
+ const next = delimiters.map((_, index) => index + 1 < delimiters.length ? index + 1 : -1);
11195
11195
  const active = delimiters.map(() => true);
11196
11196
  let sequence = 0;
11197
11197
  let closerIndex = 0;
@@ -13922,14 +13922,14 @@ function renderTable(node, context) {
13922
13922
  return "";
13923
13923
  }
13924
13924
  const renderedRows = rows.map(
13925
- (row) => Array.from({ length: columnCount }, (_2, columnIndex) => {
13925
+ (row) => Array.from({ length: columnCount }, (_, columnIndex) => {
13926
13926
  const cell = row.children[columnIndex];
13927
13927
  return cell?.type === "tableCell" ? renderTableCell(cell, context) : "";
13928
13928
  })
13929
13929
  );
13930
13930
  const columnWidths = Array.from(
13931
13931
  { length: columnCount },
13932
- (_2, columnIndex) => Math.max(...renderedRows.map((row) => stripAnsi(row[columnIndex] ?? "").length), 0)
13932
+ (_, columnIndex) => Math.max(...renderedRows.map((row) => stripAnsi(row[columnIndex] ?? "").length), 0)
13933
13933
  );
13934
13934
  if (getRenderedTableWidth(columnWidths) > context.width) {
13935
13935
  return renderStackedTable(rows, columnCount, context);
@@ -13967,7 +13967,7 @@ function renderStackedTable(rows, columnCount, context) {
13967
13967
  if (dataRows.length === 0) {
13968
13968
  const headerLines = Array.from(
13969
13969
  { length: columnCount },
13970
- (_2, columnIndex) => tokenizeText(getStackedTableLabel(headerRow.children[columnIndex], columnIndex, context), [typography.bold])
13970
+ (_, columnIndex) => tokenizeText(getStackedTableLabel(headerRow.children[columnIndex], columnIndex, context), [typography.bold])
13971
13971
  ).flatMap((tokens) => wrapTokens(tokens, context.width));
13972
13972
  return headerLines.length === 0 ? "" : `${headerLines.join("\n")}
13973
13973
 
@@ -13976,7 +13976,7 @@ function renderStackedTable(rows, columnCount, context) {
13976
13976
  const blocks = dataRows.map(
13977
13977
  (row) => Array.from(
13978
13978
  { length: columnCount },
13979
- (_2, columnIndex) => renderStackedTableField(headerRow.children[columnIndex], row.children[columnIndex], columnIndex, context)
13979
+ (_, columnIndex) => renderStackedTableField(headerRow.children[columnIndex], row.children[columnIndex], columnIndex, context)
13980
13980
  ).filter((field) => field.length > 0).join("\n")
13981
13981
  ).filter((block) => block.length > 0);
13982
13982
  return blocks.length === 0 ? "" : `${blocks.join("\n\n")}
@@ -16344,92 +16344,9 @@ var init_dashboard2 = __esm({
16344
16344
  }
16345
16345
  });
16346
16346
 
16347
- // node_modules/sisteransi/src/index.js
16348
- var require_src = __commonJS({
16349
- "node_modules/sisteransi/src/index.js"(exports, module) {
16350
- "use strict";
16351
- var ESC2 = "\x1B";
16352
- var CSI = `${ESC2}[`;
16353
- var beep = "\x07";
16354
- var cursor = {
16355
- to(x, y) {
16356
- if (!y) return `${CSI}${x + 1}G`;
16357
- return `${CSI}${y + 1};${x + 1}H`;
16358
- },
16359
- move(x, y) {
16360
- let ret = "";
16361
- if (x < 0) ret += `${CSI}${-x}D`;
16362
- else if (x > 0) ret += `${CSI}${x}C`;
16363
- if (y < 0) ret += `${CSI}${-y}A`;
16364
- else if (y > 0) ret += `${CSI}${y}B`;
16365
- return ret;
16366
- },
16367
- up: (count = 1) => `${CSI}${count}A`,
16368
- down: (count = 1) => `${CSI}${count}B`,
16369
- forward: (count = 1) => `${CSI}${count}C`,
16370
- backward: (count = 1) => `${CSI}${count}D`,
16371
- nextLine: (count = 1) => `${CSI}E`.repeat(count),
16372
- prevLine: (count = 1) => `${CSI}F`.repeat(count),
16373
- left: `${CSI}G`,
16374
- hide: `${CSI}?25l`,
16375
- show: `${CSI}?25h`,
16376
- save: `${ESC2}7`,
16377
- restore: `${ESC2}8`
16378
- };
16379
- var scroll = {
16380
- up: (count = 1) => `${CSI}S`.repeat(count),
16381
- down: (count = 1) => `${CSI}T`.repeat(count)
16382
- };
16383
- var erase = {
16384
- screen: `${CSI}2J`,
16385
- up: (count = 1) => `${CSI}1J`.repeat(count),
16386
- down: (count = 1) => `${CSI}J`.repeat(count),
16387
- line: `${CSI}2K`,
16388
- lineEnd: `${CSI}K`,
16389
- lineStart: `${CSI}1K`,
16390
- lines(count) {
16391
- let clear = "";
16392
- for (let i = 0; i < count; i++)
16393
- clear += this.line + (i < count - 1 ? cursor.up() : "");
16394
- if (count)
16395
- clear += cursor.left;
16396
- return clear;
16397
- }
16398
- };
16399
- module.exports = { cursor, scroll, erase, beep };
16400
- }
16401
- });
16402
-
16403
- // node_modules/@clack/core/dist/index.mjs
16404
- import { stdout as R, stdin as q } from "node:process";
16405
- import * as k from "node:readline";
16406
- import ot from "node:readline";
16407
- import { ReadStream as J } from "node:tty";
16408
- function Ct(t) {
16409
- return t === z;
16410
- }
16411
- var import_sisteransi, P, ct, pt, ft, j, Q, dt, U, et, At, _, bt, z;
16412
- var init_dist = __esm({
16413
- "node_modules/@clack/core/dist/index.mjs"() {
16414
- import_sisteransi = __toESM(require_src(), 1);
16415
- 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");
16416
- ct = new RegExp("\\p{M}+", "gu");
16417
- pt = { limit: 1 / 0, ellipsis: "" };
16418
- ft = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 };
16419
- j = "\x07";
16420
- Q = "[";
16421
- dt = "]";
16422
- U = `${dt}8;;`;
16423
- et = new RegExp(`(?:\\${Q}(?<code>\\d+)m|\\${U}(?<uri>.*)${j})`, "y");
16424
- At = ["up", "down", "left", "right", "space", "enter", "cancel"];
16425
- _ = { 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 };
16426
- bt = globalThis.process.platform.startsWith("win");
16427
- z = /* @__PURE__ */ Symbol("clack:cancel");
16428
- }
16429
- });
16430
-
16431
16347
  // packages/design-system/src/prompts/primitives/cancel.ts
16432
16348
  import chalk9 from "chalk";
16349
+ import { isCancel } from "@clack/prompts";
16433
16350
  function cancel(msg = "") {
16434
16351
  if (resolveOutputFormat() !== "terminal") {
16435
16352
  return;
@@ -16441,7 +16358,6 @@ function cancel(msg = "") {
16441
16358
  var init_cancel = __esm({
16442
16359
  "packages/design-system/src/prompts/primitives/cancel.ts"() {
16443
16360
  "use strict";
16444
- init_dist();
16445
16361
  init_output_format();
16446
16362
  }
16447
16363
  });
@@ -16691,7 +16607,7 @@ var init_autonomous = __esm({
16691
16607
  import path14 from "node:path";
16692
16608
  import { homedir as homedir3 } from "node:os";
16693
16609
  import { open, readdir } from "node:fs/promises";
16694
- import { createInterface as createInterface2 } from "node:readline";
16610
+ import { createInterface } from "node:readline";
16695
16611
  var init_replay = __esm({
16696
16612
  "packages/agent-spawn/src/acp/replay.ts"() {
16697
16613
  "use strict";
@@ -20336,7 +20252,7 @@ function extractText(node) {
20336
20252
  import path21 from "node:path";
20337
20253
  import * as fsPromises6 from "node:fs/promises";
20338
20254
 
20339
- // packages/agent-kit/src/paths.ts
20255
+ // packages/agent-harness-tools/src/paths.ts
20340
20256
  import path18 from "node:path";
20341
20257
  function resolveWorkflowPath(inputPath, cwd, homeDir) {
20342
20258
  if (inputPath.startsWith("~/")) {
@@ -20348,10 +20264,10 @@ function resolveWorkflowPath(inputPath, cwd, homeDir) {
20348
20264
  return path18.isAbsolute(inputPath) ? inputPath : path18.resolve(cwd, inputPath);
20349
20265
  }
20350
20266
 
20351
- // packages/agent-kit/src/participant.ts
20267
+ // packages/agent-harness-tools/src/participant.ts
20352
20268
  init_src4();
20353
20269
 
20354
- // packages/agent-kit/src/lock.ts
20270
+ // packages/agent-harness-tools/src/lock.ts
20355
20271
  import * as fsPromises5 from "node:fs/promises";
20356
20272
  function createAbortError3() {
20357
20273
  const error2 = new Error("The operation was aborted.");
@@ -20459,7 +20375,7 @@ async function lockWorkflow(docPath, options = {}) {
20459
20375
  throw new Error(`Failed to acquire lock on "${docPath}".`);
20460
20376
  }
20461
20377
 
20462
- // packages/agent-kit/src/run-logs.ts
20378
+ // packages/agent-harness-tools/src/run-logs.ts
20463
20379
  import path19 from "node:path";
20464
20380
  function resolveRunLogDir(options) {
20465
20381
  const slug = slugifyPlanPath(options.planPath);
@@ -20517,7 +20433,7 @@ function pad2(value, width) {
20517
20433
  return String(value).padStart(width, "0");
20518
20434
  }
20519
20435
 
20520
- // packages/agent-kit/src/skill-config.ts
20436
+ // packages/agent-harness-tools/src/skill-config.ts
20521
20437
  function skillPlanConfigSection(subcommand) {
20522
20438
  return `## Plan Directory
20523
20439
 
@@ -21780,10 +21696,10 @@ async function withInjectedAgentRunner(options, operation) {
21780
21696
  }
21781
21697
  }
21782
21698
 
21783
- // packages/cmdkit/src/index.ts
21699
+ // packages/toolcraft/src/index.ts
21784
21700
  import { fileURLToPath as fileURLToPath2 } from "node:url";
21785
21701
 
21786
- // packages/cmdkit-schema/src/index.ts
21702
+ // packages/toolcraft-schema/src/index.ts
21787
21703
  function assertValidEnumValues(values) {
21788
21704
  if (values.length === 0) {
21789
21705
  throw new Error("Enum schema requires at least one value");
@@ -21842,10 +21758,10 @@ var S = {
21842
21758
  }
21843
21759
  };
21844
21760
 
21845
- // packages/cmdkit/src/index.ts
21846
- var commandConfigSymbol = /* @__PURE__ */ Symbol("cmdkit.command.config");
21847
- var groupConfigSymbol = /* @__PURE__ */ Symbol("cmdkit.group.config");
21848
- var commandSourcePathSymbol = /* @__PURE__ */ Symbol("cmdkit.command.sourcePath");
21761
+ // packages/toolcraft/src/index.ts
21762
+ var commandConfigSymbol = /* @__PURE__ */ Symbol("toolcraft.command.config");
21763
+ var groupConfigSymbol = /* @__PURE__ */ Symbol("toolcraft.group.config");
21764
+ var commandSourcePathSymbol = /* @__PURE__ */ Symbol("toolcraft.command.sourcePath");
21849
21765
  var UserError = class extends Error {
21850
21766
  constructor(message2) {
21851
21767
  super(message2);
@@ -21923,7 +21839,7 @@ function inferCommandSourcePath() {
21923
21839
  if (candidate === void 0) {
21924
21840
  continue;
21925
21841
  }
21926
- if (candidate.includes("/packages/cmdkit/src/index.ts") || candidate.includes("/packages/cmdkit/dist/index.js")) {
21842
+ if (candidate.includes("/packages/toolcraft/src/index.ts") || candidate.includes("/packages/toolcraft/dist/index.js") || candidate.includes("/node_modules/toolcraft/dist/index.js")) {
21927
21843
  continue;
21928
21844
  }
21929
21845
  return candidate;
@@ -23246,7 +23162,7 @@ async function resolveDocPath(options) {
23246
23162
  })),
23247
23163
  initialValue: docs[0]
23248
23164
  });
23249
- if (Ct(selected)) {
23165
+ if (isCancel(selected)) {
23250
23166
  cancel("Operation cancelled.");
23251
23167
  throw new UserError("Operation cancelled.");
23252
23168
  }