poe-code 3.0.180 → 3.0.182

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 (125) hide show
  1. package/dist/cli/commands/config.js +3 -4
  2. package/dist/cli/commands/config.js.map +1 -1
  3. package/dist/cli/commands/configure.js +12 -3
  4. package/dist/cli/commands/configure.js.map +1 -1
  5. package/dist/cli/commands/dashboard-loop-shared.d.ts +7 -0
  6. package/dist/cli/commands/dashboard-loop-shared.js +15 -0
  7. package/dist/cli/commands/dashboard-loop-shared.js.map +1 -1
  8. package/dist/cli/commands/experiment.js +41 -32
  9. package/dist/cli/commands/experiment.js.map +1 -1
  10. package/dist/cli/commands/mcp.js +7 -2
  11. package/dist/cli/commands/mcp.js.map +1 -1
  12. package/dist/cli/commands/pipeline.js +55 -44
  13. package/dist/cli/commands/pipeline.js.map +1 -1
  14. package/dist/cli/commands/plan.js +195 -38
  15. package/dist/cli/commands/plan.js.map +1 -1
  16. package/dist/cli/commands/ralph.js +24 -24
  17. package/dist/cli/commands/ralph.js.map +1 -1
  18. package/dist/cli/commands/shared.d.ts +3 -0
  19. package/dist/cli/commands/shared.js +27 -1
  20. package/dist/cli/commands/shared.js.map +1 -1
  21. package/dist/cli/commands/skill.js +21 -10
  22. package/dist/cli/commands/skill.js.map +1 -1
  23. package/dist/cli/commands/spawn-poe-agent.d.ts +2 -0
  24. package/dist/cli/commands/spawn-poe-agent.js +47 -0
  25. package/dist/cli/commands/spawn-poe-agent.js.map +1 -0
  26. package/dist/cli/commands/spawn.js +21 -1
  27. package/dist/cli/commands/spawn.js.map +1 -1
  28. package/dist/cli/commands/utils-symlink-agents.d.ts +6 -0
  29. package/dist/cli/commands/utils-symlink-agents.js +78 -0
  30. package/dist/cli/commands/utils-symlink-agents.js.map +1 -0
  31. package/dist/cli/commands/utils-symlink-ops.d.ts +29 -0
  32. package/dist/cli/commands/utils-symlink-ops.js +76 -0
  33. package/dist/cli/commands/utils-symlink-ops.js.map +1 -0
  34. package/dist/cli/commands/utils-symlink-skills.d.ts +15 -0
  35. package/dist/cli/commands/utils-symlink-skills.js +136 -0
  36. package/dist/cli/commands/utils-symlink-skills.js.map +1 -0
  37. package/dist/cli/commands/utils-symlink.d.ts +3 -0
  38. package/dist/cli/commands/utils-symlink.js +40 -0
  39. package/dist/cli/commands/utils-symlink.js.map +1 -0
  40. package/dist/cli/commands/utils.js +2 -0
  41. package/dist/cli/commands/utils.js.map +1 -1
  42. package/dist/cli/constants.d.ts +2 -2
  43. package/dist/cli/constants.js +1 -1
  44. package/dist/cli/constants.js.map +1 -1
  45. package/dist/cli/program.js +8 -1
  46. package/dist/cli/program.js.map +1 -1
  47. package/dist/index.d.ts +1 -0
  48. package/dist/index.js +23173 -18054
  49. package/dist/index.js.map +4 -4
  50. package/dist/plan/document-schema.d.ts +21 -0
  51. package/dist/plan/document-schema.js +16 -0
  52. package/dist/plan/document-schema.js.map +1 -0
  53. package/dist/providers/claude-code.js +31 -13
  54. package/dist/providers/claude-code.js.map +4 -4
  55. package/dist/providers/codex.js +31 -13
  56. package/dist/providers/codex.js.map +4 -4
  57. package/dist/providers/goose.js +32 -14
  58. package/dist/providers/goose.js.map +4 -4
  59. package/dist/providers/kimi.js +31 -13
  60. package/dist/providers/kimi.js.map +4 -4
  61. package/dist/providers/opencode.js +32 -14
  62. package/dist/providers/opencode.js.map +4 -4
  63. package/dist/providers/poe-agent.d.ts +5 -0
  64. package/dist/providers/poe-agent.js +19812 -4438
  65. package/dist/providers/poe-agent.js.map +4 -4
  66. package/dist/sdk/container.js +4 -0
  67. package/dist/sdk/container.js.map +1 -1
  68. package/dist/sdk/spawn.js +8 -2
  69. package/dist/sdk/spawn.js.map +1 -1
  70. package/dist/sdk/types.d.ts +5 -1
  71. package/dist/services/config.d.ts +29 -44
  72. package/dist/services/config.js +16 -25
  73. package/dist/services/config.js.map +1 -1
  74. package/dist/templates/pipeline/SKILL_plan.md +22 -8
  75. package/dist/templates/pipeline/steps.yaml.mustache +1 -1
  76. package/dist/templates/skill/poe-generate.md +47 -0
  77. package/dist/templates/skill/terminal-pilot.md +45 -0
  78. package/dist/utils/dry-run.d.ts +8 -0
  79. package/dist/utils/dry-run.js +16 -0
  80. package/dist/utils/dry-run.js.map +1 -1
  81. package/dist/utils/file-system.d.ts +4 -0
  82. package/dist/workflow-templates/fix-vulnerabilities.ejected.yml +8 -0
  83. package/dist/workflow-templates/github-issue-comment-created.ejected.yml +8 -0
  84. package/dist/workflow-templates/github-issue-opened.ejected.yml +8 -0
  85. package/dist/workflow-templates/github-pull-request-comment-created.ejected.yml +8 -0
  86. package/dist/workflow-templates/github-pull-request-opened.ejected.yml +8 -0
  87. package/dist/workflow-templates/github-pull-request-synchronized.ejected.yml +8 -0
  88. package/dist/workflow-templates/update-dependencies.ejected.yml +8 -0
  89. package/dist/workflow-templates/update-documentation.ejected.yml +8 -0
  90. package/package.json +16 -9
  91. package/packages/cmdkit/dist/cli.js +42 -22
  92. package/packages/cmdkit/dist/cli.js.map +3 -3
  93. package/packages/cmdkit/dist/index.js +52 -9
  94. package/packages/cmdkit/dist/index.js.map +2 -2
  95. package/packages/cmdkit/dist/mcp.d.ts +15 -0
  96. package/packages/cmdkit/dist/mcp.js +121 -20
  97. package/packages/cmdkit/dist/mcp.js.map +3 -3
  98. package/packages/cmdkit/dist/number-schema.d.ts +3 -0
  99. package/packages/cmdkit/dist/number-schema.js +8 -0
  100. package/packages/cmdkit/dist/schema-scope.d.ts +4 -0
  101. package/packages/cmdkit/dist/schema-scope.js +34 -0
  102. package/packages/cmdkit/dist/sdk.js +58 -3
  103. package/packages/cmdkit/dist/sdk.js.map +3 -3
  104. package/packages/cmdkit-schema/dist/index.compile-check.js +1 -0
  105. package/packages/cmdkit-schema/dist/index.d.ts +59 -16
  106. package/packages/cmdkit-schema/dist/index.js +53 -8
  107. package/packages/design-system/dist/dashboard/components/footer.js +2 -3
  108. package/packages/design-system/dist/dashboard/components/output-pane.d.ts +1 -10
  109. package/packages/design-system/dist/dashboard/components/output-pane.js +5 -74
  110. package/packages/design-system/dist/dashboard/dashboard.js +6 -26
  111. package/packages/design-system/dist/dashboard/keymap.js +4 -19
  112. package/packages/design-system/dist/dashboard/snapshot.js +1 -5
  113. package/packages/design-system/dist/dashboard/store.d.ts +1 -2
  114. package/packages/design-system/dist/dashboard/store.js +6 -62
  115. package/packages/design-system/dist/dashboard/terminal.d.ts +2 -0
  116. package/packages/design-system/dist/dashboard/terminal.js +18 -0
  117. package/packages/design-system/dist/dashboard/types.d.ts +1 -11
  118. package/packages/design-system/dist/terminal-markdown/ast.d.ts +10 -2
  119. package/packages/design-system/dist/terminal-markdown/parser/block.d.ts +2 -1
  120. package/packages/design-system/dist/terminal-markdown/parser/block.js +400 -110
  121. package/packages/design-system/dist/terminal-markdown/parser/frontmatter.d.ts +2 -0
  122. package/packages/design-system/dist/terminal-markdown/parser/frontmatter.js +28 -11
  123. package/packages/design-system/dist/terminal-markdown/parser/inline.d.ts +4 -0
  124. package/packages/design-system/dist/terminal-markdown/parser/inline.js +134 -55
  125. package/packages/design-system/dist/terminal-markdown/parser.js +36 -7
@@ -208,6 +208,21 @@ var gooseAgent = {
208
208
  }
209
209
  };
210
210
 
211
+ // packages/agent-defs/src/agents/poe-agent.ts
212
+ var poeAgentAgent = {
213
+ id: "poe-agent",
214
+ name: "poe-agent",
215
+ label: "Poe Agent",
216
+ summary: "Run one-shot prompts with the built-in Poe agent runtime.",
217
+ configPath: "~/.poe-code/config.json",
218
+ branding: {
219
+ colors: {
220
+ dark: "#A465F7",
221
+ light: "#7A3FD3"
222
+ }
223
+ }
224
+ };
225
+
211
226
  // packages/agent-defs/src/registry.ts
212
227
  var allAgents = [
213
228
  claudeCodeAgent,
@@ -215,7 +230,8 @@ var allAgents = [
215
230
  codexAgent,
216
231
  openCodeAgent,
217
232
  kimiAgent,
218
- gooseAgent
233
+ gooseAgent,
234
+ poeAgentAgent
219
235
  ];
220
236
  var lookup = /* @__PURE__ */ new Map();
221
237
  for (const agent of allAgents) {
@@ -477,6 +493,8 @@ acpLookup.set(gooseAcpSpawnConfig.agentId, gooseAcpSpawnConfig);
477
493
 
478
494
  // packages/agent-spawn/src/spawn.ts
479
495
  import { spawn as spawnChildProcess } from "node:child_process";
496
+ import { mkdirSync, openSync, writeSync, closeSync } from "node:fs";
497
+ import path from "node:path";
480
498
 
481
499
  // packages/agent-spawn/src/spawn-interactive.ts
482
500
  import { spawn as spawnChildProcess2 } from "node:child_process";
@@ -906,7 +924,7 @@ import chalk16 from "chalk";
906
924
  var DEFAULT_ACTIVITY_TIMEOUT_MS = 10 * 60 * 1e3;
907
925
 
908
926
  // packages/agent-spawn/src/acp/replay.ts
909
- import path from "node:path";
927
+ import path2 from "node:path";
910
928
  import { homedir as homedir2 } from "node:os";
911
929
  import { open, readdir } from "node:fs/promises";
912
930
  import { createInterface as createInterface2 } from "node:readline";
@@ -928,7 +946,7 @@ import { join } from "node:path";
928
946
  import { spawn as spawnChildProcess4 } from "node:child_process";
929
947
 
930
948
  // packages/agent-spawn/src/acp/middlewares/spawn-log.ts
931
- import path2 from "node:path";
949
+ import path3 from "node:path";
932
950
  import { homedir as homedir3 } from "node:os";
933
951
  import { mkdir, open as open2 } from "node:fs/promises";
934
952
 
@@ -1411,20 +1429,20 @@ function getConfigFormat(pathOrFormat) {
1411
1429
  }
1412
1430
  return formatRegistry[formatName];
1413
1431
  }
1414
- function detectFormat(path4) {
1415
- const ext = getExtension(path4);
1432
+ function detectFormat(path5) {
1433
+ const ext = getExtension(path5);
1416
1434
  return extensionMap[ext];
1417
1435
  }
1418
- function getExtension(path4) {
1419
- const lastDot = path4.lastIndexOf(".");
1436
+ function getExtension(path5) {
1437
+ const lastDot = path5.lastIndexOf(".");
1420
1438
  if (lastDot === -1) {
1421
1439
  return "";
1422
1440
  }
1423
- return path4.slice(lastDot).toLowerCase();
1441
+ return path5.slice(lastDot).toLowerCase();
1424
1442
  }
1425
1443
 
1426
1444
  // packages/config-mutations/src/execution/path-utils.ts
1427
- import path3 from "node:path";
1445
+ import path4 from "node:path";
1428
1446
  function expandHome(targetPath, homeDir) {
1429
1447
  if (!targetPath?.startsWith("~")) {
1430
1448
  return targetPath;
@@ -1441,7 +1459,7 @@ function expandHome(targetPath, homeDir) {
1441
1459
  remainder = remainder.slice(1);
1442
1460
  }
1443
1461
  }
1444
- return remainder.length === 0 ? homeDir : path3.join(homeDir, remainder);
1462
+ return remainder.length === 0 ? homeDir : path4.join(homeDir, remainder);
1445
1463
  }
1446
1464
  function validateHomePath(targetPath) {
1447
1465
  if (typeof targetPath !== "string" || targetPath.length === 0) {
@@ -1459,12 +1477,12 @@ function resolvePath(rawPath, homeDir, pathMapper) {
1459
1477
  if (!pathMapper) {
1460
1478
  return expanded;
1461
1479
  }
1462
- const rawDirectory = path3.dirname(expanded);
1480
+ const rawDirectory = path4.dirname(expanded);
1463
1481
  const mappedDirectory = pathMapper.mapTargetDirectory({
1464
1482
  targetDirectory: rawDirectory
1465
1483
  });
1466
- const filename = path3.basename(expanded);
1467
- return filename.length === 0 ? mappedDirectory : path3.join(mappedDirectory, filename);
1484
+ const filename = path4.basename(expanded);
1485
+ return filename.length === 0 ? mappedDirectory : path4.join(mappedDirectory, filename);
1468
1486
  }
1469
1487
 
1470
1488
  // packages/config-mutations/src/fs-utils.ts
@@ -2231,7 +2249,7 @@ var FRONTIER_MODELS = [
2231
2249
  "openai/gpt-5.4",
2232
2250
  "google/gemini-3.1-pro"
2233
2251
  ];
2234
- var DEFAULT_FRONTIER_MODEL = "anthropic/claude-sonnet-4.6";
2252
+ var DEFAULT_FRONTIER_MODEL = "anthropic/claude-opus-4.7";
2235
2253
  var CLAUDE_CODE_VARIANTS = {
2236
2254
  haiku: "anthropic/claude-haiku-4.5",
2237
2255
  sonnet: "anthropic/claude-sonnet-4.6",