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
 
@@ -4936,30 +4936,32 @@ var anthropicProvider = {
4936
4936
  var cloudflareProvider = {
4937
4937
  id: "cloudflare",
4938
4938
  label: "Cloudflare AI Gateway",
4939
- summary: "Route through the Poe Cloudflare gateway with BYOK keys.",
4940
- baseUrl: "https://poe-ai-gateway.poe-dev.workers.dev",
4939
+ summary: "Route coding agents through Cloudflare AI Gateway.",
4940
+ baseUrlEnvVar: "CF_AIG_BASE_URL",
4941
+ requiresBaseUrl: true,
4942
+ modelInput: { kind: "freeform" },
4941
4943
  auth: {
4942
4944
  kind: "api-key",
4943
- envVar: "CLOUDFLARE_API_KEY",
4945
+ envVar: "CF_AIG_TOKEN",
4944
4946
  storageKey: "provider:cloudflare",
4945
- prompt: { title: "Cloudflare API key" }
4947
+ prompt: { title: "Cloudflare AI Gateway token" }
4946
4948
  },
4947
4949
  apiShapes: [
4948
4950
  {
4949
4951
  id: "openai-chat-completions",
4950
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/openai/v1"
4952
+ baseUrlPath: "compat"
4951
4953
  },
4952
4954
  {
4953
4955
  id: "openai-responses",
4954
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/openai/v1"
4956
+ baseUrlPath: "openai"
4955
4957
  },
4956
4958
  {
4957
4959
  id: "anthropic-messages",
4958
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/anthropic"
4960
+ baseUrlPath: "anthropic"
4959
4961
  },
4960
4962
  {
4961
4963
  id: "google-generations",
4962
- defaultBaseUrl: "https://poe-ai-gateway.poe-dev.workers.dev/google-ai-studio"
4964
+ baseUrlPath: "google-ai-studio"
4963
4965
  }
4964
4966
  ]
4965
4967
  };
@@ -8648,19 +8650,6 @@ function stripModelNamespace2(model) {
8648
8650
  const id = slashIndex === -1 ? model : model.slice(slashIndex + 1);
8649
8651
  return id.toLowerCase();
8650
8652
  }
8651
- var CODEX_MODELS = [
8652
- "openai/gpt-5.5",
8653
- "openai/gpt-5.4",
8654
- "openai/gpt-5.3-codex",
8655
- "openai/gpt-5.2-codex",
8656
- "openai/gpt-5.2",
8657
- "openai/gpt-5.2-chat",
8658
- "openai/gpt-5.2-pro",
8659
- "openai/gpt-5.1",
8660
- "openai/gpt-5.1-codex-mini",
8661
- "anthropic/claude-opus-4.7"
8662
- ];
8663
- var DEFAULT_CODEX_MODEL = CODEX_MODELS[0];
8664
8653
  var KIMI_MODELS = [
8665
8654
  "novitaai/kimi-k2.5",
8666
8655
  "novitaai/kimi-k2-thinking",