poe-code 3.0.126 → 3.0.128
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/constants.d.ts +1 -1
- package/dist/cli/constants.js +1 -0
- package/dist/cli/constants.js.map +1 -1
- package/dist/index.js +33 -7
- package/dist/index.js.map +2 -2
- package/dist/providers/claude-code.js +20 -4
- package/dist/providers/claude-code.js.map +2 -2
- package/dist/providers/codex.js +20 -4
- package/dist/providers/codex.js.map +2 -2
- package/dist/providers/kimi.js +20 -4
- package/dist/providers/kimi.js.map +2 -2
- package/dist/providers/opencode.js +27 -9
- package/dist/providers/opencode.js.map +2 -2
- package/dist/providers/poe-agent.js +2 -1
- package/dist/providers/poe-agent.js.map +2 -2
- package/package.json +1 -1
package/dist/cli/constants.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare const DEFAULT_CLAUDE_CODE_MODEL: "anthropic/claude-sonnet-4.6";
|
|
|
17
17
|
export declare function stripModelNamespace(model: string): string;
|
|
18
18
|
export declare const CODEX_MODELS: readonly ["openai/gpt-5.4", "openai/gpt-5.3-codex", "openai/gpt-5.3-codex-spark", "openai/gpt-5.2-codex", "openai/gpt-5.2", "openai/gpt-5.2-chat", "openai/gpt-5.2-pro", "openai/gpt-5.1", "openai/gpt-5.1-codex-mini", "anthropic/claude-opus-4.6"];
|
|
19
19
|
export declare const DEFAULT_CODEX_MODEL: "openai/gpt-5.4";
|
|
20
|
-
export declare const KIMI_MODELS: readonly ["novitaai/kimi-k2.5", "novitaai/kimi-k2-thinking"];
|
|
20
|
+
export declare const KIMI_MODELS: readonly ["novitaai/kimi-k2.5", "novitaai/kimi-k2-thinking", "novitaai/kimi-k2.5-fw"];
|
|
21
21
|
export declare const DEFAULT_KIMI_MODEL: "novitaai/kimi-k2.5";
|
|
22
22
|
export declare const DEFAULT_REASONING = "medium";
|
|
23
23
|
export declare const PROVIDER_NAME = "poe";
|
package/dist/cli/constants.js
CHANGED
|
@@ -41,6 +41,7 @@ export const DEFAULT_CODEX_MODEL = CODEX_MODELS[0];
|
|
|
41
41
|
export const KIMI_MODELS = [
|
|
42
42
|
"novitaai/kimi-k2.5",
|
|
43
43
|
"novitaai/kimi-k2-thinking",
|
|
44
|
+
"novitaai/kimi-k2.5-fw",
|
|
44
45
|
];
|
|
45
46
|
export const DEFAULT_KIMI_MODEL = KIMI_MODELS[0];
|
|
46
47
|
export const DEFAULT_REASONING = "medium";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/cli/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,2BAA2B;IAC3B,6BAA6B;IAC7B,sBAAsB;IACtB,gBAAgB;IAChB,uBAAuB;CACf,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG,6BAA6B,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAC;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAElD,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,4BAA4B;IACnC,MAAM,EAAE,6BAA6B;IACrC,IAAI,EAAE,2BAA2B;CACzB,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,MAAM,CAAC;AAErE;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,EAAE,GAAG,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;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KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;IACnE,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,gBAAgB;IAChB,sBAAsB;IACtB,4BAA4B;IAC5B,sBAAsB;IACtB,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,2BAA2B;IAC3B,2BAA2B;CACnB,CAAC;AACX,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,oBAAoB;IACpB,2BAA2B;IAC3B,uBAAuB;CACf,CAAC;AACX,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAC1C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AACnC,MAAM,CAAC,MAAM,YAAY,GAAG,iDAAiD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2351,7 +2351,8 @@ var init_constants = __esm({
|
|
|
2351
2351
|
DEFAULT_CODEX_MODEL = CODEX_MODELS[0];
|
|
2352
2352
|
KIMI_MODELS = [
|
|
2353
2353
|
"novitaai/kimi-k2.5",
|
|
2354
|
-
"novitaai/kimi-k2-thinking"
|
|
2354
|
+
"novitaai/kimi-k2-thinking",
|
|
2355
|
+
"novitaai/kimi-k2.5-fw"
|
|
2355
2356
|
];
|
|
2356
2357
|
DEFAULT_KIMI_MODEL = KIMI_MODELS[0];
|
|
2357
2358
|
FEEDBACK_URL = "https://github.com/poe-platform/poe-code/issues";
|
|
@@ -2757,6 +2758,17 @@ function toTomlInlineTable(values) {
|
|
|
2757
2758
|
function serializeJsonMcpArgs(servers) {
|
|
2758
2759
|
return ["--mcp-config", JSON.stringify({ mcpServers: toJsonMcpServers(servers) })];
|
|
2759
2760
|
}
|
|
2761
|
+
function serializeOpenCodeMcpEnv(servers) {
|
|
2762
|
+
const mcp = {};
|
|
2763
|
+
for (const [name, server] of Object.entries(servers)) {
|
|
2764
|
+
const entry = { type: "local", command: [server.command, ...server.args ?? []] };
|
|
2765
|
+
if (server.env && Object.keys(server.env).length > 0) {
|
|
2766
|
+
entry.environment = server.env;
|
|
2767
|
+
}
|
|
2768
|
+
mcp[name] = entry;
|
|
2769
|
+
}
|
|
2770
|
+
return { OPENCODE_CONFIG_CONTENT: JSON.stringify({ mcp }) };
|
|
2771
|
+
}
|
|
2760
2772
|
function serializeCodexMcpArgs(servers) {
|
|
2761
2773
|
const args = [];
|
|
2762
2774
|
for (const [name, server] of Object.entries(servers)) {
|
|
@@ -2854,6 +2866,7 @@ var openCodeSpawnConfig;
|
|
|
2854
2866
|
var init_opencode2 = __esm({
|
|
2855
2867
|
"packages/agent-spawn/src/configs/opencode.ts"() {
|
|
2856
2868
|
"use strict";
|
|
2869
|
+
init_mcp();
|
|
2857
2870
|
openCodeSpawnConfig = {
|
|
2858
2871
|
kind: "cli",
|
|
2859
2872
|
agentId: "opencode",
|
|
@@ -2877,7 +2890,8 @@ var init_opencode2 = __esm({
|
|
|
2877
2890
|
defaultArgs: [],
|
|
2878
2891
|
promptFlag: "--prompt"
|
|
2879
2892
|
},
|
|
2880
|
-
resumeCommand: (threadId, cwd) => [cwd, "--session", threadId]
|
|
2893
|
+
resumeCommand: (threadId, cwd) => [cwd, "--session", threadId],
|
|
2894
|
+
mcpEnv: serializeOpenCodeMcpEnv
|
|
2881
2895
|
};
|
|
2882
2896
|
}
|
|
2883
2897
|
});
|
|
@@ -2927,12 +2941,12 @@ function getSpawnConfig(input) {
|
|
|
2927
2941
|
}
|
|
2928
2942
|
function supportsMcpAtSpawn(input) {
|
|
2929
2943
|
const config = getSpawnConfig(input);
|
|
2930
|
-
return !!config && config.kind === "cli" && typeof config.mcpArgs === "function";
|
|
2944
|
+
return !!config && config.kind === "cli" && (typeof config.mcpArgs === "function" || typeof config.mcpEnv === "function");
|
|
2931
2945
|
}
|
|
2932
2946
|
function listMcpSupportedAgents() {
|
|
2933
2947
|
const supported = [];
|
|
2934
2948
|
for (const config of allSpawnConfigs) {
|
|
2935
|
-
if (config.kind !== "cli" || typeof config.mcpArgs !== "function") {
|
|
2949
|
+
if (config.kind !== "cli" || typeof config.mcpArgs !== "function" && typeof config.mcpEnv !== "function") {
|
|
2936
2950
|
continue;
|
|
2937
2951
|
}
|
|
2938
2952
|
supported.push(config.agentId);
|
|
@@ -2994,11 +3008,20 @@ function getMcpArgs(config, servers) {
|
|
|
2994
3008
|
if (!hasMcpServers(servers)) {
|
|
2995
3009
|
return [];
|
|
2996
3010
|
}
|
|
2997
|
-
if (!config.mcpArgs) {
|
|
3011
|
+
if (!config.mcpArgs && !config.mcpEnv) {
|
|
2998
3012
|
throw new Error(formatUnsupportedMcpSpawnMessage(config.agentId));
|
|
2999
3013
|
}
|
|
3014
|
+
if (!config.mcpArgs) {
|
|
3015
|
+
return [];
|
|
3016
|
+
}
|
|
3000
3017
|
return config.mcpArgs(servers);
|
|
3001
3018
|
}
|
|
3019
|
+
function getMcpEnv(config, servers) {
|
|
3020
|
+
if (!hasMcpServers(servers) || !config.mcpEnv) {
|
|
3021
|
+
return {};
|
|
3022
|
+
}
|
|
3023
|
+
return config.mcpEnv(servers);
|
|
3024
|
+
}
|
|
3002
3025
|
function formatUnsupportedMcpSpawnMessage(agentId) {
|
|
3003
3026
|
const supported = listMcpSupportedAgents();
|
|
3004
3027
|
const supportedText = supported.length > 0 ? supported.join(", ") : "(none)";
|
|
@@ -4549,6 +4572,7 @@ function spawnStreaming(options) {
|
|
|
4549
4572
|
throw new Error(`Agent "${agentId}" has no binaryName.`);
|
|
4550
4573
|
}
|
|
4551
4574
|
const mcpArgs = getMcpArgs(spawnConfig, options.mcpServers);
|
|
4575
|
+
const mcpEnvVars = getMcpEnv(spawnConfig, options.mcpServers);
|
|
4552
4576
|
const args = [];
|
|
4553
4577
|
if (spawnConfig.mcpArgsBeforeCommand) {
|
|
4554
4578
|
args.push(...mcpArgs);
|
|
@@ -4577,7 +4601,8 @@ function spawnStreaming(options) {
|
|
|
4577
4601
|
}
|
|
4578
4602
|
const child = spawnChildProcess3(binaryName, args, {
|
|
4579
4603
|
cwd: options.cwd,
|
|
4580
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
4604
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
4605
|
+
env: Object.keys(mcpEnvVars).length > 0 ? { ...process.env, ...mcpEnvVars } : void 0
|
|
4581
4606
|
});
|
|
4582
4607
|
let aborted = false;
|
|
4583
4608
|
const onAbort = () => {
|
|
@@ -4939,6 +4964,7 @@ var init_src6 = __esm({
|
|
|
4939
4964
|
"use strict";
|
|
4940
4965
|
init_run_command();
|
|
4941
4966
|
init_configs();
|
|
4967
|
+
init_mcp();
|
|
4942
4968
|
init_spawn();
|
|
4943
4969
|
init_spawn();
|
|
4944
4970
|
init_spawn_interactive();
|
|
@@ -24043,7 +24069,7 @@ var init_package = __esm({
|
|
|
24043
24069
|
"package.json"() {
|
|
24044
24070
|
package_default = {
|
|
24045
24071
|
name: "poe-code",
|
|
24046
|
-
version: "3.0.
|
|
24072
|
+
version: "3.0.128",
|
|
24047
24073
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
24048
24074
|
type: "module",
|
|
24049
24075
|
main: "./dist/index.js",
|