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
|
@@ -691,6 +691,11 @@ import chalk8 from "chalk";
|
|
|
691
691
|
// packages/agent-spawn/src/acp/spawn.ts
|
|
692
692
|
import { spawn as spawnChildProcess3 } from "node:child_process";
|
|
693
693
|
|
|
694
|
+
// packages/agent-spawn/src/acp/middlewares/spawn-log.ts
|
|
695
|
+
import path from "node:path";
|
|
696
|
+
import { homedir } from "node:os";
|
|
697
|
+
import { mkdir, open } from "node:fs/promises";
|
|
698
|
+
|
|
694
699
|
// src/utils/command-checks.ts
|
|
695
700
|
function formatCommandRunnerResult(result) {
|
|
696
701
|
const stdout = result.stdout.length > 0 ? result.stdout : "<empty>";
|
|
@@ -1044,20 +1049,20 @@ function getConfigFormat(pathOrFormat) {
|
|
|
1044
1049
|
}
|
|
1045
1050
|
return formatRegistry[formatName];
|
|
1046
1051
|
}
|
|
1047
|
-
function detectFormat(
|
|
1048
|
-
const ext = getExtension(
|
|
1052
|
+
function detectFormat(path3) {
|
|
1053
|
+
const ext = getExtension(path3);
|
|
1049
1054
|
return extensionMap[ext];
|
|
1050
1055
|
}
|
|
1051
|
-
function getExtension(
|
|
1052
|
-
const lastDot =
|
|
1056
|
+
function getExtension(path3) {
|
|
1057
|
+
const lastDot = path3.lastIndexOf(".");
|
|
1053
1058
|
if (lastDot === -1) {
|
|
1054
1059
|
return "";
|
|
1055
1060
|
}
|
|
1056
|
-
return
|
|
1061
|
+
return path3.slice(lastDot).toLowerCase();
|
|
1057
1062
|
}
|
|
1058
1063
|
|
|
1059
1064
|
// packages/config-mutations/src/execution/path-utils.ts
|
|
1060
|
-
import
|
|
1065
|
+
import path2 from "node:path";
|
|
1061
1066
|
function expandHome(targetPath, homeDir) {
|
|
1062
1067
|
if (!targetPath?.startsWith("~")) {
|
|
1063
1068
|
return targetPath;
|
|
@@ -1074,7 +1079,7 @@ function expandHome(targetPath, homeDir) {
|
|
|
1074
1079
|
remainder = remainder.slice(1);
|
|
1075
1080
|
}
|
|
1076
1081
|
}
|
|
1077
|
-
return remainder.length === 0 ? homeDir :
|
|
1082
|
+
return remainder.length === 0 ? homeDir : path2.join(homeDir, remainder);
|
|
1078
1083
|
}
|
|
1079
1084
|
function validateHomePath(targetPath) {
|
|
1080
1085
|
if (typeof targetPath !== "string" || targetPath.length === 0) {
|
|
@@ -1092,12 +1097,12 @@ function resolvePath(rawPath, homeDir, pathMapper) {
|
|
|
1092
1097
|
if (!pathMapper) {
|
|
1093
1098
|
return expanded;
|
|
1094
1099
|
}
|
|
1095
|
-
const rawDirectory =
|
|
1100
|
+
const rawDirectory = path2.dirname(expanded);
|
|
1096
1101
|
const mappedDirectory = pathMapper.mapTargetDirectory({
|
|
1097
1102
|
targetDirectory: rawDirectory
|
|
1098
1103
|
});
|
|
1099
|
-
const filename =
|
|
1100
|
-
return filename.length === 0 ? mappedDirectory :
|
|
1104
|
+
const filename = path2.basename(expanded);
|
|
1105
|
+
return filename.length === 0 ? mappedDirectory : path2.join(mappedDirectory, filename);
|
|
1101
1106
|
}
|
|
1102
1107
|
|
|
1103
1108
|
// packages/config-mutations/src/fs-utils.ts
|