poe-code 3.0.181 → 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.
- package/dist/cli/commands/config.js +3 -4
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/configure.js +12 -3
- package/dist/cli/commands/configure.js.map +1 -1
- package/dist/cli/commands/dashboard-loop-shared.d.ts +7 -0
- package/dist/cli/commands/dashboard-loop-shared.js +15 -0
- package/dist/cli/commands/dashboard-loop-shared.js.map +1 -1
- package/dist/cli/commands/experiment.js +41 -32
- package/dist/cli/commands/experiment.js.map +1 -1
- package/dist/cli/commands/mcp.js +7 -2
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/pipeline.js +55 -44
- package/dist/cli/commands/pipeline.js.map +1 -1
- package/dist/cli/commands/plan.js +195 -38
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/ralph.js +24 -24
- package/dist/cli/commands/ralph.js.map +1 -1
- package/dist/cli/commands/shared.d.ts +3 -0
- package/dist/cli/commands/shared.js +27 -1
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/commands/skill.js +21 -10
- package/dist/cli/commands/skill.js.map +1 -1
- package/dist/cli/commands/spawn-poe-agent.d.ts +2 -0
- package/dist/cli/commands/spawn-poe-agent.js +47 -0
- package/dist/cli/commands/spawn-poe-agent.js.map +1 -0
- package/dist/cli/commands/spawn.js +21 -1
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/cli/commands/utils-symlink-agents.d.ts +6 -0
- package/dist/cli/commands/utils-symlink-agents.js +78 -0
- package/dist/cli/commands/utils-symlink-agents.js.map +1 -0
- package/dist/cli/commands/utils-symlink-ops.d.ts +29 -0
- package/dist/cli/commands/utils-symlink-ops.js +76 -0
- package/dist/cli/commands/utils-symlink-ops.js.map +1 -0
- package/dist/cli/commands/utils-symlink-skills.d.ts +15 -0
- package/dist/cli/commands/utils-symlink-skills.js +136 -0
- package/dist/cli/commands/utils-symlink-skills.js.map +1 -0
- package/dist/cli/commands/utils-symlink.d.ts +3 -0
- package/dist/cli/commands/utils-symlink.js +40 -0
- package/dist/cli/commands/utils-symlink.js.map +1 -0
- package/dist/cli/commands/utils.js +2 -0
- package/dist/cli/commands/utils.js.map +1 -1
- package/dist/cli/constants.d.ts +2 -2
- package/dist/cli/constants.js +1 -1
- package/dist/cli/constants.js.map +1 -1
- package/dist/cli/program.js +8 -1
- package/dist/cli/program.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23269 -18158
- package/dist/index.js.map +4 -4
- package/dist/plan/document-schema.d.ts +21 -0
- package/dist/plan/document-schema.js +16 -0
- package/dist/plan/document-schema.js.map +1 -0
- package/dist/providers/claude-code.js +31 -13
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +31 -13
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/goose.js +32 -14
- package/dist/providers/goose.js.map +4 -4
- package/dist/providers/kimi.js +31 -13
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +32 -14
- package/dist/providers/opencode.js.map +4 -4
- package/dist/providers/poe-agent.d.ts +5 -0
- package/dist/providers/poe-agent.js +19812 -4438
- package/dist/providers/poe-agent.js.map +4 -4
- package/dist/sdk/container.js +4 -0
- package/dist/sdk/container.js.map +1 -1
- package/dist/sdk/spawn.js +8 -2
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/sdk/types.d.ts +5 -1
- package/dist/services/config.d.ts +29 -44
- package/dist/services/config.js +16 -25
- package/dist/services/config.js.map +1 -1
- package/dist/templates/pipeline/SKILL_plan.md +22 -8
- package/dist/templates/pipeline/steps.yaml.mustache +1 -1
- package/dist/templates/skill/poe-generate.md +47 -0
- package/dist/templates/skill/terminal-pilot.md +45 -0
- package/dist/utils/dry-run.d.ts +8 -0
- package/dist/utils/dry-run.js +16 -0
- package/dist/utils/dry-run.js.map +1 -1
- package/dist/utils/file-system.d.ts +4 -0
- package/package.json +16 -9
- package/packages/cmdkit/dist/cli.js +42 -22
- package/packages/cmdkit/dist/cli.js.map +3 -3
- package/packages/cmdkit/dist/index.js +52 -9
- package/packages/cmdkit/dist/index.js.map +2 -2
- package/packages/cmdkit/dist/mcp.d.ts +15 -0
- package/packages/cmdkit/dist/mcp.js +121 -20
- package/packages/cmdkit/dist/mcp.js.map +3 -3
- package/packages/cmdkit/dist/number-schema.d.ts +3 -0
- package/packages/cmdkit/dist/number-schema.js +8 -0
- package/packages/cmdkit/dist/schema-scope.d.ts +4 -0
- package/packages/cmdkit/dist/schema-scope.js +34 -0
- package/packages/cmdkit/dist/sdk.js +58 -3
- package/packages/cmdkit/dist/sdk.js.map +3 -3
- package/packages/cmdkit-schema/dist/index.compile-check.js +1 -0
- package/packages/cmdkit-schema/dist/index.d.ts +59 -16
- package/packages/cmdkit-schema/dist/index.js +53 -8
- package/packages/design-system/dist/dashboard/components/footer.js +2 -3
- package/packages/design-system/dist/dashboard/components/output-pane.d.ts +1 -10
- package/packages/design-system/dist/dashboard/components/output-pane.js +5 -74
- package/packages/design-system/dist/dashboard/dashboard.js +6 -26
- package/packages/design-system/dist/dashboard/keymap.js +4 -19
- package/packages/design-system/dist/dashboard/snapshot.js +1 -5
- package/packages/design-system/dist/dashboard/store.d.ts +1 -2
- package/packages/design-system/dist/dashboard/store.js +6 -62
- package/packages/design-system/dist/dashboard/terminal.d.ts +2 -0
- package/packages/design-system/dist/dashboard/terminal.js +18 -0
- package/packages/design-system/dist/dashboard/types.d.ts +1 -11
- package/packages/design-system/dist/terminal-markdown/ast.d.ts +10 -2
- package/packages/design-system/dist/terminal-markdown/parser/block.d.ts +2 -1
- package/packages/design-system/dist/terminal-markdown/parser/block.js +400 -110
- package/packages/design-system/dist/terminal-markdown/parser/frontmatter.d.ts +2 -0
- package/packages/design-system/dist/terminal-markdown/parser/frontmatter.js +28 -11
- package/packages/design-system/dist/terminal-markdown/parser/inline.d.ts +4 -0
- package/packages/design-system/dist/terminal-markdown/parser/inline.js +134 -55
- package/packages/design-system/dist/terminal-markdown/parser.js +36 -7
package/dist/providers/codex.js
CHANGED
|
@@ -219,6 +219,21 @@ var gooseAgent = {
|
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
+
// packages/agent-defs/src/agents/poe-agent.ts
|
|
223
|
+
var poeAgentAgent = {
|
|
224
|
+
id: "poe-agent",
|
|
225
|
+
name: "poe-agent",
|
|
226
|
+
label: "Poe Agent",
|
|
227
|
+
summary: "Run one-shot prompts with the built-in Poe agent runtime.",
|
|
228
|
+
configPath: "~/.poe-code/config.json",
|
|
229
|
+
branding: {
|
|
230
|
+
colors: {
|
|
231
|
+
dark: "#A465F7",
|
|
232
|
+
light: "#7A3FD3"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
|
|
222
237
|
// packages/agent-defs/src/registry.ts
|
|
223
238
|
var allAgents = [
|
|
224
239
|
claudeCodeAgent,
|
|
@@ -226,7 +241,8 @@ var allAgents = [
|
|
|
226
241
|
codexAgent,
|
|
227
242
|
openCodeAgent,
|
|
228
243
|
kimiAgent,
|
|
229
|
-
gooseAgent
|
|
244
|
+
gooseAgent,
|
|
245
|
+
poeAgentAgent
|
|
230
246
|
];
|
|
231
247
|
var lookup = /* @__PURE__ */ new Map();
|
|
232
248
|
for (const agent of allAgents) {
|
|
@@ -511,6 +527,8 @@ function listMcpSupportedAgents() {
|
|
|
511
527
|
|
|
512
528
|
// packages/agent-spawn/src/spawn.ts
|
|
513
529
|
import { spawn as spawnChildProcess } from "node:child_process";
|
|
530
|
+
import { mkdirSync, openSync, writeSync, closeSync } from "node:fs";
|
|
531
|
+
import path from "node:path";
|
|
514
532
|
|
|
515
533
|
// packages/agent-spawn/src/configs/resolve-config.ts
|
|
516
534
|
function resolveConfig(agentId) {
|
|
@@ -1062,7 +1080,7 @@ import chalk16 from "chalk";
|
|
|
1062
1080
|
var DEFAULT_ACTIVITY_TIMEOUT_MS = 10 * 60 * 1e3;
|
|
1063
1081
|
|
|
1064
1082
|
// packages/agent-spawn/src/acp/replay.ts
|
|
1065
|
-
import
|
|
1083
|
+
import path2 from "node:path";
|
|
1066
1084
|
import { homedir as homedir2 } from "node:os";
|
|
1067
1085
|
import { open, readdir } from "node:fs/promises";
|
|
1068
1086
|
import { createInterface as createInterface2 } from "node:readline";
|
|
@@ -1084,7 +1102,7 @@ import { join } from "node:path";
|
|
|
1084
1102
|
import { spawn as spawnChildProcess4 } from "node:child_process";
|
|
1085
1103
|
|
|
1086
1104
|
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
1087
|
-
import
|
|
1105
|
+
import path3 from "node:path";
|
|
1088
1106
|
import { homedir as homedir3 } from "node:os";
|
|
1089
1107
|
import { mkdir, open as open2 } from "node:fs/promises";
|
|
1090
1108
|
|
|
@@ -1553,20 +1571,20 @@ function getConfigFormat(pathOrFormat) {
|
|
|
1553
1571
|
}
|
|
1554
1572
|
return formatRegistry[formatName];
|
|
1555
1573
|
}
|
|
1556
|
-
function detectFormat(
|
|
1557
|
-
const ext = getExtension(
|
|
1574
|
+
function detectFormat(path5) {
|
|
1575
|
+
const ext = getExtension(path5);
|
|
1558
1576
|
return extensionMap[ext];
|
|
1559
1577
|
}
|
|
1560
|
-
function getExtension(
|
|
1561
|
-
const lastDot =
|
|
1578
|
+
function getExtension(path5) {
|
|
1579
|
+
const lastDot = path5.lastIndexOf(".");
|
|
1562
1580
|
if (lastDot === -1) {
|
|
1563
1581
|
return "";
|
|
1564
1582
|
}
|
|
1565
|
-
return
|
|
1583
|
+
return path5.slice(lastDot).toLowerCase();
|
|
1566
1584
|
}
|
|
1567
1585
|
|
|
1568
1586
|
// packages/config-mutations/src/execution/path-utils.ts
|
|
1569
|
-
import
|
|
1587
|
+
import path4 from "node:path";
|
|
1570
1588
|
function expandHome(targetPath, homeDir) {
|
|
1571
1589
|
if (!targetPath?.startsWith("~")) {
|
|
1572
1590
|
return targetPath;
|
|
@@ -1583,7 +1601,7 @@ function expandHome(targetPath, homeDir) {
|
|
|
1583
1601
|
remainder = remainder.slice(1);
|
|
1584
1602
|
}
|
|
1585
1603
|
}
|
|
1586
|
-
return remainder.length === 0 ? homeDir :
|
|
1604
|
+
return remainder.length === 0 ? homeDir : path4.join(homeDir, remainder);
|
|
1587
1605
|
}
|
|
1588
1606
|
function validateHomePath(targetPath) {
|
|
1589
1607
|
if (typeof targetPath !== "string" || targetPath.length === 0) {
|
|
@@ -1601,12 +1619,12 @@ function resolvePath(rawPath, homeDir, pathMapper) {
|
|
|
1601
1619
|
if (!pathMapper) {
|
|
1602
1620
|
return expanded;
|
|
1603
1621
|
}
|
|
1604
|
-
const rawDirectory =
|
|
1622
|
+
const rawDirectory = path4.dirname(expanded);
|
|
1605
1623
|
const mappedDirectory = pathMapper.mapTargetDirectory({
|
|
1606
1624
|
targetDirectory: rawDirectory
|
|
1607
1625
|
});
|
|
1608
|
-
const filename =
|
|
1609
|
-
return filename.length === 0 ? mappedDirectory :
|
|
1626
|
+
const filename = path4.basename(expanded);
|
|
1627
|
+
return filename.length === 0 ? mappedDirectory : path4.join(mappedDirectory, filename);
|
|
1610
1628
|
}
|
|
1611
1629
|
|
|
1612
1630
|
// packages/config-mutations/src/fs-utils.ts
|