poe-code 3.0.98 → 3.0.99-beta.1
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 +3319 -2912
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +15 -10
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +15 -10
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/kimi.js +15 -10
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +15 -10
- package/dist/providers/opencode.js.map +4 -4
- package/dist/providers/poe-agent.d.ts +2 -1
- package/dist/providers/poe-agent.js +67 -13
- 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
package/dist/providers/codex.js
CHANGED
|
@@ -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>";
|
|
@@ -1043,20 +1048,20 @@ function getConfigFormat(pathOrFormat) {
|
|
|
1043
1048
|
}
|
|
1044
1049
|
return formatRegistry[formatName];
|
|
1045
1050
|
}
|
|
1046
|
-
function detectFormat(
|
|
1047
|
-
const ext = getExtension(
|
|
1051
|
+
function detectFormat(path3) {
|
|
1052
|
+
const ext = getExtension(path3);
|
|
1048
1053
|
return extensionMap[ext];
|
|
1049
1054
|
}
|
|
1050
|
-
function getExtension(
|
|
1051
|
-
const lastDot =
|
|
1055
|
+
function getExtension(path3) {
|
|
1056
|
+
const lastDot = path3.lastIndexOf(".");
|
|
1052
1057
|
if (lastDot === -1) {
|
|
1053
1058
|
return "";
|
|
1054
1059
|
}
|
|
1055
|
-
return
|
|
1060
|
+
return path3.slice(lastDot).toLowerCase();
|
|
1056
1061
|
}
|
|
1057
1062
|
|
|
1058
1063
|
// packages/config-mutations/src/execution/path-utils.ts
|
|
1059
|
-
import
|
|
1064
|
+
import path2 from "node:path";
|
|
1060
1065
|
function expandHome(targetPath, homeDir) {
|
|
1061
1066
|
if (!targetPath?.startsWith("~")) {
|
|
1062
1067
|
return targetPath;
|
|
@@ -1073,7 +1078,7 @@ function expandHome(targetPath, homeDir) {
|
|
|
1073
1078
|
remainder = remainder.slice(1);
|
|
1074
1079
|
}
|
|
1075
1080
|
}
|
|
1076
|
-
return remainder.length === 0 ? homeDir :
|
|
1081
|
+
return remainder.length === 0 ? homeDir : path2.join(homeDir, remainder);
|
|
1077
1082
|
}
|
|
1078
1083
|
function validateHomePath(targetPath) {
|
|
1079
1084
|
if (typeof targetPath !== "string" || targetPath.length === 0) {
|
|
@@ -1091,12 +1096,12 @@ function resolvePath(rawPath, homeDir, pathMapper) {
|
|
|
1091
1096
|
if (!pathMapper) {
|
|
1092
1097
|
return expanded;
|
|
1093
1098
|
}
|
|
1094
|
-
const rawDirectory =
|
|
1099
|
+
const rawDirectory = path2.dirname(expanded);
|
|
1095
1100
|
const mappedDirectory = pathMapper.mapTargetDirectory({
|
|
1096
1101
|
targetDirectory: rawDirectory
|
|
1097
1102
|
});
|
|
1098
|
-
const filename =
|
|
1099
|
-
return filename.length === 0 ? mappedDirectory :
|
|
1103
|
+
const filename = path2.basename(expanded);
|
|
1104
|
+
return filename.length === 0 ? mappedDirectory : path2.join(mappedDirectory, filename);
|
|
1100
1105
|
}
|
|
1101
1106
|
|
|
1102
1107
|
// packages/config-mutations/src/fs-utils.ts
|