poe-code 3.0.223 → 3.0.224

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.
Files changed (38) hide show
  1. package/dist/cli/commands/configure-payload.js +52 -12
  2. package/dist/cli/commands/configure-payload.js.map +1 -1
  3. package/dist/cli/commands/configure.js +2 -2
  4. package/dist/cli/commands/configure.js.map +1 -1
  5. package/dist/cli/commands/provider.d.ts +1 -0
  6. package/dist/cli/commands/provider.js +94 -3
  7. package/dist/cli/commands/provider.js.map +1 -1
  8. package/dist/cli/commands/shared.d.ts +4 -1
  9. package/dist/cli/commands/shared.js +55 -5
  10. package/dist/cli/commands/shared.js.map +1 -1
  11. package/dist/cli/constants.d.ts +1 -2
  12. package/dist/cli/constants.js +1 -13
  13. package/dist/cli/constants.js.map +1 -1
  14. package/dist/cli/options.d.ts +1 -1
  15. package/dist/cli/options.js +10 -1
  16. package/dist/cli/options.js.map +1 -1
  17. package/dist/cli/prompt-runner.js +4 -2
  18. package/dist/cli/prompt-runner.js.map +1 -1
  19. package/dist/cli/prompts.d.ts +3 -1
  20. package/dist/cli/prompts.js +13 -0
  21. package/dist/cli/prompts.js.map +1 -1
  22. package/dist/index.js +244 -39
  23. package/dist/index.js.map +3 -3
  24. package/dist/providers/claude-code.js +11 -22
  25. package/dist/providers/claude-code.js.map +2 -2
  26. package/dist/providers/codex.js +19 -29
  27. package/dist/providers/codex.js.map +2 -2
  28. package/dist/providers/goose.js +11 -22
  29. package/dist/providers/goose.js.map +2 -2
  30. package/dist/providers/kimi.js +11 -22
  31. package/dist/providers/kimi.js.map +2 -2
  32. package/dist/providers/opencode.js +11 -22
  33. package/dist/providers/opencode.js.map +2 -2
  34. package/dist/providers/poe-agent.js +11 -22
  35. package/dist/providers/poe-agent.js.map +2 -2
  36. package/package.json +1 -1
  37. package/packages/memory/dist/index.js +10 -8
  38. package/packages/memory/dist/index.js.map +2 -2
@@ -48,7 +48,7 @@ var require_requirements_txt = __commonJS({
48
48
  // src/templates/codex/config.toml.mustache
49
49
  var require_config_toml = __commonJS({
50
50
  "src/templates/codex/config.toml.mustache"(exports, module) {
51
- module.exports = 'model_provider = "{{providerId}}"\n\n[profiles."{{{profileName}}}"]\nmodel = "{{{model}}}"\nmodel_provider = "{{providerId}}"\nmodel_reasoning_effort = "{{reasoningEffort}}"\nmodel_verbosity = "medium"\n\n[model_providers.{{providerId}}]\nname = "{{providerId}}"\nbase_url = "{{{baseUrl}}}"\nwire_api = "responses"\nexperimental_bearer_token = "{{apiKey}}"\nrequires_openai_auth = false\nsupports_websockets = false\n';
51
+ module.exports = 'model_provider = "{{providerId}}"\nmodel = "{{{model}}}"\nmodel_reasoning_effort = "{{reasoningEffort}}"\nmodel_verbosity = "medium"\n\n[profiles."{{{profileName}}}"]\nmodel = "{{{model}}}"\nmodel_provider = "{{providerId}}"\nmodel_reasoning_effort = "{{reasoningEffort}}"\nmodel_verbosity = "medium"\n\n[model_providers.{{providerId}}]\nname = "{{providerId}}"\nbase_url = "{{{baseUrl}}}"\nwire_api = "responses"\nexperimental_bearer_token = "{{apiKey}}"\nrequires_openai_auth = false\nsupports_websockets = false\n';
52
52
  }
53
53
  });
54
54
 
@@ -4975,30 +4975,32 @@ var anthropicProvider = {
4975
4975
  var cloudflareProvider = {
4976
4976
  id: "cloudflare",
4977
4977
  label: "Cloudflare AI Gateway",
4978
- summary: "Route through the Poe Cloudflare gateway with BYOK keys.",
4979
- baseUrl: "https://poe-ai-gateway.poe-dev.workers.dev",
4978
+ summary: "Route coding agents through Cloudflare AI Gateway.",
4979
+ baseUrlEnvVar: "CF_AIG_BASE_URL",
4980
+ requiresBaseUrl: true,
4981
+ modelInput: { kind: "freeform" },
4980
4982
  auth: {
4981
4983
  kind: "api-key",
4982
- envVar: "CLOUDFLARE_API_KEY",
4984
+ envVar: "CF_AIG_TOKEN",
4983
4985
  storageKey: "provider:cloudflare",
4984
- prompt: { title: "Cloudflare API key" }
4986
+ prompt: { title: "Cloudflare AI Gateway token" }
4985
4987
  },
4986
4988
  apiShapes: [
4987
4989
  {
4988
4990
  id: "openai-chat-completions",
4989
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/openai/v1"
4991
+ baseUrlPath: "compat"
4990
4992
  },
4991
4993
  {
4992
4994
  id: "openai-responses",
4993
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/openai/v1"
4995
+ baseUrlPath: "openai"
4994
4996
  },
4995
4997
  {
4996
4998
  id: "anthropic-messages",
4997
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/anthropic"
4999
+ baseUrlPath: "anthropic"
4998
5000
  },
4999
5001
  {
5000
5002
  id: "google-generations",
5001
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/google-ai-studio"
5003
+ baseUrlPath: "google-ai-studio"
5002
5004
  }
5003
5005
  ]
5004
5006
  };
@@ -8841,19 +8843,7 @@ function stripModelNamespace2(model) {
8841
8843
  const id = slashIndex === -1 ? model : model.slice(slashIndex + 1);
8842
8844
  return id.toLowerCase();
8843
8845
  }
8844
- var CODEX_MODELS = [
8845
- "openai/gpt-5.5",
8846
- "openai/gpt-5.4",
8847
- "openai/gpt-5.3-codex",
8848
- "openai/gpt-5.2-codex",
8849
- "openai/gpt-5.2",
8850
- "openai/gpt-5.2-chat",
8851
- "openai/gpt-5.2-pro",
8852
- "openai/gpt-5.1",
8853
- "openai/gpt-5.1-codex-mini",
8854
- "anthropic/claude-opus-4.7"
8855
- ];
8856
- var DEFAULT_CODEX_MODEL = CODEX_MODELS[0];
8846
+ var DEFAULT_CODEX_MODEL = "openai/gpt-5.5";
8857
8847
  var KIMI_MODELS = [
8858
8848
  "novitaai/kimi-k2.5",
8859
8849
  "novitaai/kimi-k2-thinking",
@@ -8873,6 +8863,10 @@ function deriveCodexProfileName(model) {
8873
8863
  }
8874
8864
  return stripped;
8875
8865
  }
8866
+ function resolveCodexConfigModel(options) {
8867
+ const model = options.model ?? DEFAULT_CODEX_MODEL;
8868
+ return options.provider?.modelInput?.kind === "freeform" ? model : stripModelNamespace2(model);
8869
+ }
8876
8870
  var CODEX_INSTALL_DEFINITION = {
8877
8871
  id: "codex",
8878
8872
  summary: "Codex CLI",
@@ -8963,11 +8957,7 @@ var codexService = createProvider({
8963
8957
  configurePrompts: {
8964
8958
  model: {
8965
8959
  label: "Codex model",
8966
- defaultValue: DEFAULT_CODEX_MODEL,
8967
- choices: CODEX_MODELS.map((id) => ({
8968
- title: id,
8969
- value: id
8970
- }))
8960
+ defaultValue: DEFAULT_CODEX_MODEL
8971
8961
  },
8972
8962
  reasoningEffort: {
8973
8963
  label: "Codex reasoning effort",
@@ -9007,11 +8997,11 @@ var codexService = createProvider({
9007
8997
  templateId: "codex/config.toml.mustache",
9008
8998
  context: (ctx) => {
9009
8999
  const options = ctx;
9010
- const model = options.model ?? DEFAULT_CODEX_MODEL;
9000
+ const model = resolveCodexConfigModel(options);
9011
9001
  return {
9012
9002
  apiKey: options.provider?.credential,
9013
9003
  baseUrl: options.provider?.baseUrl ?? "",
9014
- model: stripModelNamespace2(model),
9004
+ model,
9015
9005
  providerId: options.provider?.id ?? PROVIDER_NAME,
9016
9006
  reasoningEffort: options.reasoningEffort,
9017
9007
  profileName: deriveCodexProfileName(model)