@alfe.ai/gateway 0.11.0 → 0.11.2

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.
package/dist/health.js CHANGED
@@ -3749,7 +3749,7 @@ function superRefine(fn) {
3749
3749
  * `PINNED_OPENCLAW_VERSION` — there is no `services/compute/Dockerfile` mirror to
3750
3750
  * keep in sync.
3751
3751
  */
3752
- const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.15";
3752
+ const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.17";
3753
3753
  /**
3754
3754
  * The `@anthropic-ai/claude-code` (the `claude` CLI) version Alfe installs for
3755
3755
  * the claude-code runtime: always on managed VMs (`alfe setup --managed`), and
@@ -4396,14 +4396,14 @@ function isClerkReverificationResponse(value) {
4396
4396
  //#region ../../packages-internal/types/dist/models.js
4397
4397
  const AnthropicModel = {
4398
4398
  Opus55: "claude-opus-5-5",
4399
+ Sonnet55: "claude-sonnet-5-5",
4400
+ Haiku55: "claude-haiku-5-5",
4399
4401
  Opus5: "claude-opus-5",
4402
+ Sonnet5: "claude-sonnet-5",
4400
4403
  Opus48: "claude-opus-4-8",
4401
4404
  Opus47: "claude-opus-4-7",
4402
4405
  Opus46: "claude-opus-4-6",
4403
- Sonnet55: "claude-sonnet-5-5",
4404
- Sonnet5: "claude-sonnet-5",
4405
4406
  Sonnet46: "claude-sonnet-4-6",
4406
- Haiku55: "claude-haiku-5-5",
4407
4407
  Haiku45: "claude-haiku-4-5"
4408
4408
  };
4409
4409
  const ANTHROPIC_MODELS = enumValues(AnthropicModel);
@@ -4412,23 +4412,23 @@ const OpenAIModel = {
4412
4412
  GPT61Sol: "gpt-6.1-sol",
4413
4413
  GPT6Sol: "gpt-6-sol",
4414
4414
  GPT6Luna: "gpt-6-luna",
4415
- GPT4o: "gpt-4o",
4416
- GPT4oMini: "gpt-4o-mini",
4417
- O3: "o3",
4418
- GPT41: "gpt-4.1",
4419
- GPT41Mini: "gpt-4.1-mini",
4420
- GPT41Nano: "gpt-4.1-nano",
4421
- GPT54: "gpt-5.4",
4422
- GPT54Mini: "gpt-5.4-mini",
4423
- GPT54Nano: "gpt-5.4-nano",
4424
- GPT54Pro: "gpt-5.4-pro",
4425
- GPT55: "gpt-5.5",
4426
- GPT55Pro: "gpt-5.5-pro",
4427
4415
  GPT56Sol: "gpt-5.6-sol",
4428
4416
  GPT56Terra: "gpt-5.6-terra",
4429
4417
  GPT56Luna: "gpt-5.6-luna",
4430
- O3Mini: "o3-mini",
4418
+ GPT55Pro: "gpt-5.5-pro",
4419
+ GPT55: "gpt-5.5",
4420
+ GPT54Pro: "gpt-5.4-pro",
4421
+ GPT54: "gpt-5.4",
4422
+ GPT54Mini: "gpt-5.4-mini",
4423
+ GPT54Nano: "gpt-5.4-nano",
4431
4424
  O4Mini: "o4-mini",
4425
+ O3: "o3",
4426
+ O3Mini: "o3-mini",
4427
+ GPT41: "gpt-4.1",
4428
+ GPT41Mini: "gpt-4.1-mini",
4429
+ GPT41Nano: "gpt-4.1-nano",
4430
+ GPT4o: "gpt-4o",
4431
+ GPT4oMini: "gpt-4o-mini",
4432
4432
  TextEmbedding3Small: "text-embedding-3-small",
4433
4433
  TextEmbedding3Large: "text-embedding-3-large"
4434
4434
  };
@@ -4441,8 +4441,8 @@ const DeepSeekModel = {
4441
4441
  const DEEPSEEK_MODELS = enumValues(DeepSeekModel);
4442
4442
  const GoogleModel = {
4443
4443
  Gemini38Flash: "gemini-3.8-flash",
4444
- Gemini36Flash: "gemini-3.6-flash",
4445
4444
  Gemini37Flash: "gemini-3.7-flash",
4445
+ Gemini36Flash: "gemini-3.6-flash",
4446
4446
  Gemini35Flash: "gemini-3.5-flash",
4447
4447
  Gemini35FlashLite: "gemini-3.5-flash-lite",
4448
4448
  Gemini31Pro: "gemini-3.1-pro-preview",
@@ -4472,11 +4472,11 @@ const MISTRAL_MODELS = enumValues(MistralModel);
4472
4472
  const XAIModel = {
4473
4473
  Grok47: "grok-4.7",
4474
4474
  Grok46: "grok-4.6",
4475
+ GrokBuild01: "grok-build-0.1",
4475
4476
  Grok45: "grok-4.5",
4476
4477
  Grok43: "grok-4.3",
4477
- GrokBuild01: "grok-build-0.1",
4478
- Grok4: "grok-4",
4479
- Grok41Fast: "grok-4.1-fast"
4478
+ Grok41Fast: "grok-4.1-fast",
4479
+ Grok4: "grok-4"
4480
4480
  };
4481
4481
  const XAI_MODELS = enumValues(XAIModel);
4482
4482
  const ZhipuModel = {
@@ -4492,9 +4492,9 @@ const ZhipuModel = {
4492
4492
  const ZHIPU_MODELS = enumValues(ZhipuModel);
4493
4493
  const MoonshotModel = {
4494
4494
  K3: "kimi-k3",
4495
- K26: "kimi-k2.6",
4496
4495
  K27Code: "kimi-k2.7-code",
4497
- K27CodeHighSpeed: "kimi-k2.7-code-highspeed"
4496
+ K27CodeHighSpeed: "kimi-k2.7-code-highspeed",
4497
+ K26: "kimi-k2.6"
4498
4498
  };
4499
4499
  const MOONSHOT_MODELS = enumValues(MoonshotModel);
4500
4500
  const QwenModel = {
@@ -4742,6 +4742,31 @@ function isRetryAfterSeconds(value) {
4742
4742
  function isProfileErrorList(value) {
4743
4743
  return Array.isArray(value) && value.length > 0 && value.every((entry) => typeof entry === "object" && entry !== null && typeof entry.profile === "string" && typeof entry.message === "string");
4744
4744
  }
4745
+ /**
4746
+ * The integrations service's 409 `CLI_TOO_OLD` names the Alfe CLI the target
4747
+ * integration version needs and the agent's current one. Forward only those
4748
+ * two non-empty strings, and only alongside that code.
4749
+ */
4750
+ function cliTooOldFields(errBody) {
4751
+ if (errBody?.code !== "CLI_TOO_OLD") return {};
4752
+ const { requiredCliVersion, currentCliVersion } = errBody;
4753
+ return {
4754
+ ...typeof requiredCliVersion === "string" && requiredCliVersion !== "" ? { requiredCliVersion } : {},
4755
+ ...typeof currentCliVersion === "string" && currentCliVersion !== "" ? { currentCliVersion } : {}
4756
+ };
4757
+ }
4758
+ function isSharedAgentAudience(value) {
4759
+ return value === "public" || value === "team" || value === "scope";
4760
+ }
4761
+ /**
4762
+ * Connect's 409 `shared_use_confirmation_required` (an `alfe aws share` push
4763
+ * to an agent other people can use) says who. Forward only that enum value,
4764
+ * and only alongside that code.
4765
+ */
4766
+ function sharedUseFields(errBody) {
4767
+ if (errBody?.code !== "shared_use_confirmation_required") return {};
4768
+ return isSharedAgentAudience(errBody.sharedWith) ? { sharedWith: errBody.sharedWith } : {};
4769
+ }
4745
4770
  var AlfeApiClient = class {
4746
4771
  apiBaseUrl;
4747
4772
  getToken;
@@ -4819,7 +4844,9 @@ var AlfeApiClient = class {
4819
4844
  profile,
4820
4845
  message
4821
4846
  })) } : {},
4822
- ...isRetryAfterSeconds(errBody?.retryAfterSeconds) ? { retryAfterSeconds: errBody.retryAfterSeconds } : {}
4847
+ ...isRetryAfterSeconds(errBody?.retryAfterSeconds) ? { retryAfterSeconds: errBody.retryAfterSeconds } : {},
4848
+ ...cliTooOldFields(errBody),
4849
+ ...sharedUseFields(errBody)
4823
4850
  }
4824
4851
  };
4825
4852
  }
@@ -7288,7 +7315,8 @@ function buildRuntimeEnv(input) {
7288
7315
  ...input.managed ? {
7289
7316
  ALFE_MANAGED: "1",
7290
7317
  DISABLE_AUTOUPDATER: "1"
7291
- } : {}
7318
+ } : {},
7319
+ ...input.localAiProxyUrl ? { ALFE_LOCAL_AI_PROXY_URL: input.localAiProxyUrl } : {}
7292
7320
  };
7293
7321
  }
7294
7322
  /**
@@ -10442,7 +10470,8 @@ async function startDaemon() {
10442
10470
  env: buildRuntimeEnv({
10443
10471
  runtime: config.runtime,
10444
10472
  ...config.defaultModel ? { defaultModel: config.defaultModel } : {},
10445
- managed
10473
+ managed,
10474
+ ...aiProxyUrl ? { localAiProxyUrl: aiProxyUrl } : {}
10446
10475
  })
10447
10476
  });
10448
10477
  runtimeProcess.setTurnActivityProbe(turnActivityProbe);
@@ -10661,7 +10690,7 @@ async function executeCloudCommand(command) {
10661
10690
  pinnedVersion: target.version
10662
10691
  }, "runtime.update requested an OpenClaw version above the pin — upgrading to the pin instead");
10663
10692
  version = target.version;
10664
- } else version = payload?.version ?? (runtime === "claude-code" ? "0.1.15" : void 0);
10693
+ } else version = payload?.version ?? (runtime === "claude-code" ? "0.1.17" : void 0);
10665
10694
  upgradingRuntime = true;
10666
10695
  setTimeout(() => {
10667
10696
  (async () => {
@@ -150,7 +150,7 @@ declare function remediateManagedNode(runCommand: RemediationCommandRunner, base
150
150
  * `PINNED_OPENCLAW_VERSION` — there is no `services/compute/Dockerfile` mirror to
151
151
  * keep in sync.
152
152
  */
153
- declare const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.15";
153
+ declare const PINNED_CLAUDE_CODE_HOST_VERSION = "0.1.17";
154
154
  /**
155
155
  * The `@anthropic-ai/claude-code` (the `claude` CLI) version Alfe installs for
156
156
  * the claude-code runtime: always on managed VMs (`alfe setup --managed`), and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Alfe local gateway daemon — persistent control plane for agent integrations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,11 +23,11 @@
23
23
  "pino-roll": "^1.2.0",
24
24
  "smol-toml": ">=1.6.1",
25
25
  "ws": "^8.18.0",
26
- "@alfe.ai/agent-api-client": "^0.21.0",
26
+ "@alfe.ai/agent-api-client": "^0.21.2",
27
27
  "@alfe.ai/ai-proxy-local": "^0.0.17",
28
28
  "@alfe.ai/config": "^0.4.2",
29
- "@alfe.ai/integration-manifest": "^0.5.0",
30
- "@alfe.ai/integrations": "^0.7.0",
29
+ "@alfe.ai/integration-manifest": "^0.6.0",
30
+ "@alfe.ai/integrations": "^0.7.1",
31
31
  "@alfe.ai/mcp-bundler": "^0.4.3"
32
32
  },
33
33
  "license": "UNLICENSED",