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>";
@@ -1043,20 +1048,20 @@ function getConfigFormat(pathOrFormat) {
1043
1048
  }
1044
1049
  return formatRegistry[formatName];
1045
1050
  }
1046
- function detectFormat(path2) {
1047
- const ext = getExtension(path2);
1051
+ function detectFormat(path3) {
1052
+ const ext = getExtension(path3);
1048
1053
  return extensionMap[ext];
1049
1054
  }
1050
- function getExtension(path2) {
1051
- const lastDot = path2.lastIndexOf(".");
1055
+ function getExtension(path3) {
1056
+ const lastDot = path3.lastIndexOf(".");
1052
1057
  if (lastDot === -1) {
1053
1058
  return "";
1054
1059
  }
1055
- return path2.slice(lastDot).toLowerCase();
1060
+ return path3.slice(lastDot).toLowerCase();
1056
1061
  }
1057
1062
 
1058
1063
  // packages/config-mutations/src/execution/path-utils.ts
1059
- import path from "node:path";
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 : path.join(homeDir, remainder);
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 = path.dirname(expanded);
1099
+ const rawDirectory = path2.dirname(expanded);
1095
1100
  const mappedDirectory = pathMapper.mapTargetDirectory({
1096
1101
  targetDirectory: rawDirectory
1097
1102
  });
1098
- const filename = path.basename(expanded);
1099
- return filename.length === 0 ? mappedDirectory : path.join(mappedDirectory, filename);
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