@autohq/cli 0.1.241 → 0.1.243

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.
@@ -23340,7 +23340,7 @@ Object.assign(lookup, {
23340
23340
  // package.json
23341
23341
  var package_default = {
23342
23342
  name: "@autohq/cli",
23343
- version: "0.1.241",
23343
+ version: "0.1.243",
23344
23344
  license: "SEE LICENSE IN README.md",
23345
23345
  publishConfig: {
23346
23346
  access: "public"
@@ -49123,6 +49123,7 @@ var CODEX_DEFAULT_MODEL = "gpt-5.3-codex";
49123
49123
  var CODEX_HTTP_PROVIDER_ID = "openai-responses-http";
49124
49124
  var CODEX_OPENAI_BASE_URL = "https://api.openai.com/v1";
49125
49125
  var CODEX_API_KEY_ENV = "OPENAI_API_KEY";
49126
+ var MODEL_GATEWAY_OPENAI_BASE_URL_ENV = "AUTO_MODEL_GATEWAY_OPENAI_BASE_URL";
49126
49127
  var CODEX_RUNTIME_PROCESS_ENV_KEYS = ["PATH", "HOME"];
49127
49128
  function codexLaunchOptions(config2) {
49128
49129
  return {
@@ -49150,7 +49151,9 @@ function renderCodexConfigToml(config2) {
49150
49151
  lines.push("");
49151
49152
  lines.push(`[model_providers.${CODEX_HTTP_PROVIDER_ID}]`);
49152
49153
  lines.push('name = "OpenAI"');
49153
- lines.push(`base_url = ${tomlString(CODEX_OPENAI_BASE_URL)}`);
49154
+ lines.push(
49155
+ `base_url = ${tomlString(openaiBaseUrlForCodexConfig(config2.env))}`
49156
+ );
49154
49157
  lines.push('wire_api = "responses"');
49155
49158
  lines.push(`env_key = ${tomlString(CODEX_API_KEY_ENV)}`);
49156
49159
  lines.push("supports_websockets = false");
@@ -49178,6 +49181,9 @@ function codexProcessEnv(env) {
49178
49181
  ...env
49179
49182
  };
49180
49183
  }
49184
+ function openaiBaseUrlForCodexConfig(env) {
49185
+ return env[MODEL_GATEWAY_OPENAI_BASE_URL_ENV] ?? CODEX_OPENAI_BASE_URL;
49186
+ }
49181
49187
  function codexHomeDir() {
49182
49188
  const home = process.env.HOME;
49183
49189
  if (!home) {
package/dist/index.js CHANGED
@@ -22411,7 +22411,7 @@ var init_package = __esm({
22411
22411
  "package.json"() {
22412
22412
  package_default = {
22413
22413
  name: "@autohq/cli",
22414
- version: "0.1.241",
22414
+ version: "0.1.243",
22415
22415
  license: "SEE LICENSE IN README.md",
22416
22416
  publishConfig: {
22417
22417
  access: "public"
@@ -34375,6 +34375,7 @@ var CODEX_DEFAULT_MODEL = "gpt-5.3-codex";
34375
34375
  var CODEX_HTTP_PROVIDER_ID = "openai-responses-http";
34376
34376
  var CODEX_OPENAI_BASE_URL = "https://api.openai.com/v1";
34377
34377
  var CODEX_API_KEY_ENV = "OPENAI_API_KEY";
34378
+ var MODEL_GATEWAY_OPENAI_BASE_URL_ENV = "AUTO_MODEL_GATEWAY_OPENAI_BASE_URL";
34378
34379
  var CODEX_RUNTIME_PROCESS_ENV_KEYS = ["PATH", "HOME"];
34379
34380
  function codexLaunchOptions(config2) {
34380
34381
  return {
@@ -34402,7 +34403,9 @@ function renderCodexConfigToml(config2) {
34402
34403
  lines.push("");
34403
34404
  lines.push(`[model_providers.${CODEX_HTTP_PROVIDER_ID}]`);
34404
34405
  lines.push('name = "OpenAI"');
34405
- lines.push(`base_url = ${tomlString(CODEX_OPENAI_BASE_URL)}`);
34406
+ lines.push(
34407
+ `base_url = ${tomlString(openaiBaseUrlForCodexConfig(config2.env))}`
34408
+ );
34406
34409
  lines.push('wire_api = "responses"');
34407
34410
  lines.push(`env_key = ${tomlString(CODEX_API_KEY_ENV)}`);
34408
34411
  lines.push("supports_websockets = false");
@@ -34430,6 +34433,9 @@ function codexProcessEnv(env) {
34430
34433
  ...env
34431
34434
  };
34432
34435
  }
34436
+ function openaiBaseUrlForCodexConfig(env) {
34437
+ return env[MODEL_GATEWAY_OPENAI_BASE_URL_ENV] ?? CODEX_OPENAI_BASE_URL;
34438
+ }
34433
34439
  function codexHomeDir() {
34434
34440
  const home = process.env.HOME;
34435
34441
  if (!home) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.241",
3
+ "version": "0.1.243",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"