@agentclientprotocol/codex-acp 2.2.2-preview.1 → 2.2.3-preview.1

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 (2) hide show
  1. package/dist/index.js +11 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -34378,7 +34378,7 @@ var package_default = {
34378
34378
  publishConfig: {
34379
34379
  access: "public"
34380
34380
  },
34381
- version: "2.2.2-preview.1",
34381
+ version: "2.2.3-preview.1",
34382
34382
  description: "",
34383
34383
  main: "dist/index.js",
34384
34384
  bin: {
@@ -39609,6 +39609,8 @@ function authStatusCapability() {
39609
39609
  }
39610
39610
  var NOT_LOGGED_IN_LABEL = "Not logged in";
39611
39611
  var DEFAULT_GATEWAY_LABEL = "Custom model gateway";
39612
+ var AIR_GATEWAY_PROVIDER_ID = "wire";
39613
+ var AIR_GATEWAY_LABEL = "JetBrains Air Gateway";
39612
39614
  var PLAN_DISPLAY_NAMES = {
39613
39615
  free: "Free",
39614
39616
  go: "Go",
@@ -39640,6 +39642,12 @@ function gatewayStatus(providerName) {
39640
39642
  ...detail === void 0 ? {} : { detail }
39641
39643
  };
39642
39644
  }
39645
+ function agentConfiguredProviderStatus(providerId) {
39646
+ if (providerId?.trim().toLowerCase() === AIR_GATEWAY_PROVIDER_ID) {
39647
+ return { kind: "gateway", label: AIR_GATEWAY_LABEL };
39648
+ }
39649
+ return gatewayStatus(providerId);
39650
+ }
39643
39651
  function unauthenticatedStatus() {
39644
39652
  return {
39645
39653
  kind: "none",
@@ -43560,7 +43568,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
43560
43568
  }
43561
43569
  const modelProvider = await this.runWithProcessCheck(() => this.codexAcpClient.getAgentConfiguredModelProvider());
43562
43570
  if (!this.authProviderUsesOpenAiAccount(modelProvider)) {
43563
- return gatewayStatus(modelProvider);
43571
+ return agentConfiguredProviderStatus(modelProvider);
43564
43572
  }
43565
43573
  const accountResponse = await this.runWithProcessCheck(() => this.codexAcpClient.getAccount());
43566
43574
  this.lastReadAccount = accountResponse.account;
@@ -43585,7 +43593,7 @@ Check ${configPath} and project .codex directories, especially their config.toml
43585
43593
  await this.publishAuthStatusRead();
43586
43594
  return;
43587
43595
  }
43588
- await this.setAuthStatus(gatewayStatus(authProvider));
43596
+ await this.setAuthStatus(agentConfiguredProviderStatus(authProvider));
43589
43597
  }
43590
43598
  /**
43591
43599
  * Handles the app-server `account/updated` push: the free freshness channel
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.2.2-preview.1",
6
+ "version": "2.2.3-preview.1",
7
7
  "description": "",
8
8
  "main": "dist/index.js",
9
9
  "bin": {