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.
@@ -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(path2) {
1013
- const ext = getExtension(path2);
1017
+ function detectFormat(path3) {
1018
+ const ext = getExtension(path3);
1014
1019
  return extensionMap[ext];
1015
1020
  }
1016
- function getExtension(path2) {
1017
- const lastDot = path2.lastIndexOf(".");
1021
+ function getExtension(path3) {
1022
+ const lastDot = path3.lastIndexOf(".");
1018
1023
  if (lastDot === -1) {
1019
1024
  return "";
1020
1025
  }
1021
- return path2.slice(lastDot).toLowerCase();
1026
+ return path3.slice(lastDot).toLowerCase();
1022
1027
  }
1023
1028
 
1024
1029
  // packages/config-mutations/src/execution/path-utils.ts
1025
- import path from "node:path";
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 : path.join(homeDir, remainder);
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 = path.dirname(expanded);
1065
+ const rawDirectory = path2.dirname(expanded);
1061
1066
  const mappedDirectory = pathMapper.mapTargetDirectory({
1062
1067
  targetDirectory: rawDirectory
1063
1068
  });
1064
- const filename = path.basename(expanded);
1065
- return filename.length === 0 ? mappedDirectory : path.join(mappedDirectory, filename);
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