poe-code 3.0.98 → 3.0.99
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/pipeline.js +9 -2
- package/dist/cli/commands/pipeline.js.map +1 -1
- package/dist/cli/container.js +2 -4
- package/dist/cli/container.js.map +1 -1
- package/dist/cli/environment.d.ts +1 -0
- package/dist/cli/environment.js +4 -0
- package/dist/cli/environment.js.map +1 -1
- package/dist/cli/oauth-login.js +1 -1
- package/dist/cli/oauth-login.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3320 -2913
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +16 -11
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +16 -11
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/kimi.js +16 -11
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +16 -11
- package/dist/providers/opencode.js.map +4 -4
- package/dist/providers/poe-agent.d.ts +2 -1
- package/dist/providers/poe-agent.js +68 -14
- package/dist/providers/poe-agent.js.map +3 -3
- package/dist/sdk/container.js +1 -1
- package/dist/sdk/container.js.map +1 -1
- package/dist/sdk/credentials.d.ts +1 -1
- package/dist/sdk/credentials.js +2 -2
- package/dist/sdk/credentials.js.map +1 -1
- package/dist/sdk/pipeline.d.ts +1 -1
- package/dist/sdk/pipeline.js +1 -0
- package/dist/sdk/pipeline.js.map +1 -1
- package/dist/sdk/spawn.js +52 -6
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/sdk/types.d.ts +12 -0
- package/package.json +2 -2
|
@@ -48,7 +48,7 @@ var require_requirements_txt = __commonJS({
|
|
|
48
48
|
// src/templates/codex/config.toml.hbs
|
|
49
49
|
var require_config_toml = __commonJS({
|
|
50
50
|
"src/templates/codex/config.toml.hbs"(exports, module) {
|
|
51
|
-
module.exports = 'model_provider = "poe"\n\n[profiles."{{{profileName}}}"]\nmodel = "{{{model}}}"\nmodel_provider = "poe"\nmodel_reasoning_effort = "{{reasoningEffort}}"\nmodel_verbosity = "medium"\n\n[model_providers.poe]\nname = "poe"\nbase_url = "{{{baseUrl}}}"\nwire_api = "responses"\nexperimental_bearer_token = "{{apiKey}}"\n';
|
|
51
|
+
module.exports = 'model_provider = "poe"\n\n[profiles."{{{profileName}}}"]\nmodel = "{{{model}}}"\nmodel_provider = "poe"\nmodel_reasoning_effort = "{{reasoningEffort}}"\nmodel_verbosity = "medium"\n\n[model_providers.poe]\nname = "poe"\nbase_url = "{{{baseUrl}}}"\nwire_api = "responses"\nexperimental_bearer_token = "{{apiKey}}"\nrequires_openai_auth = false\nsupports_websockets = false\n';
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -656,6 +656,11 @@ import chalk8 from "chalk";
|
|
|
656
656
|
// packages/agent-spawn/src/acp/spawn.ts
|
|
657
657
|
import { spawn as spawnChildProcess3 } from "node:child_process";
|
|
658
658
|
|
|
659
|
+
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
660
|
+
import path from "node:path";
|
|
661
|
+
import { homedir } from "node:os";
|
|
662
|
+
import { mkdir, open } from "node:fs/promises";
|
|
663
|
+
|
|
659
664
|
// src/utils/command-checks.ts
|
|
660
665
|
function formatCommandRunnerResult(result) {
|
|
661
666
|
const stdout = result.stdout.length > 0 ? result.stdout : "<empty>";
|
|
@@ -1009,20 +1014,20 @@ function getConfigFormat(pathOrFormat) {
|
|
|
1009
1014
|
}
|
|
1010
1015
|
return formatRegistry[formatName];
|
|
1011
1016
|
}
|
|
1012
|
-
function detectFormat(
|
|
1013
|
-
const ext = getExtension(
|
|
1017
|
+
function detectFormat(path3) {
|
|
1018
|
+
const ext = getExtension(path3);
|
|
1014
1019
|
return extensionMap[ext];
|
|
1015
1020
|
}
|
|
1016
|
-
function getExtension(
|
|
1017
|
-
const lastDot =
|
|
1021
|
+
function getExtension(path3) {
|
|
1022
|
+
const lastDot = path3.lastIndexOf(".");
|
|
1018
1023
|
if (lastDot === -1) {
|
|
1019
1024
|
return "";
|
|
1020
1025
|
}
|
|
1021
|
-
return
|
|
1026
|
+
return path3.slice(lastDot).toLowerCase();
|
|
1022
1027
|
}
|
|
1023
1028
|
|
|
1024
1029
|
// packages/config-mutations/src/execution/path-utils.ts
|
|
1025
|
-
import
|
|
1030
|
+
import path2 from "node:path";
|
|
1026
1031
|
function expandHome(targetPath, homeDir) {
|
|
1027
1032
|
if (!targetPath?.startsWith("~")) {
|
|
1028
1033
|
return targetPath;
|
|
@@ -1039,7 +1044,7 @@ function expandHome(targetPath, homeDir) {
|
|
|
1039
1044
|
remainder = remainder.slice(1);
|
|
1040
1045
|
}
|
|
1041
1046
|
}
|
|
1042
|
-
return remainder.length === 0 ? homeDir :
|
|
1047
|
+
return remainder.length === 0 ? homeDir : path2.join(homeDir, remainder);
|
|
1043
1048
|
}
|
|
1044
1049
|
function validateHomePath(targetPath) {
|
|
1045
1050
|
if (typeof targetPath !== "string" || targetPath.length === 0) {
|
|
@@ -1057,12 +1062,12 @@ function resolvePath(rawPath, homeDir, pathMapper) {
|
|
|
1057
1062
|
if (!pathMapper) {
|
|
1058
1063
|
return expanded;
|
|
1059
1064
|
}
|
|
1060
|
-
const rawDirectory =
|
|
1065
|
+
const rawDirectory = path2.dirname(expanded);
|
|
1061
1066
|
const mappedDirectory = pathMapper.mapTargetDirectory({
|
|
1062
1067
|
targetDirectory: rawDirectory
|
|
1063
1068
|
});
|
|
1064
|
-
const filename =
|
|
1065
|
-
return filename.length === 0 ? mappedDirectory :
|
|
1069
|
+
const filename = path2.basename(expanded);
|
|
1070
|
+
return filename.length === 0 ? mappedDirectory : path2.join(mappedDirectory, filename);
|
|
1066
1071
|
}
|
|
1067
1072
|
|
|
1068
1073
|
// packages/config-mutations/src/fs-utils.ts
|