@alfe.ai/gateway 0.9.17 → 0.9.18

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/health.js +64 -3
  2. package/package.json +1 -1
package/dist/health.js CHANGED
@@ -4551,8 +4551,47 @@ const BedrockModel = {
4551
4551
  DeepSeekV32: "deepseek.v3.2",
4552
4552
  TitanEmbedTextV2: "amazon.titan-embed-text-v2:0"
4553
4553
  };
4554
- BedrockModel.GptOss120B, BedrockModel.GptOss20B, BedrockModel.Qwen3Coder30B, BedrockModel.Glm5, BedrockModel.KimiK25, BedrockModel.DeepSeekV32;
4555
- AlfeAwsModel.Qwen3_8B, BedrockModel.GptOss120B, BedrockModel.GptOss20B, BedrockModel.Qwen3Coder30B, BedrockModel.Glm5, BedrockModel.KimiK25, BedrockModel.DeepSeekV32, BedrockModel.TitanEmbedTextV2;
4554
+ const AWS_PRIVATE_BEDROCK_CHAT_MODELS = [
4555
+ BedrockModel.GptOss120B,
4556
+ BedrockModel.GptOss20B,
4557
+ BedrockModel.Qwen3Coder30B,
4558
+ BedrockModel.Glm5,
4559
+ BedrockModel.KimiK25,
4560
+ BedrockModel.DeepSeekV32
4561
+ ];
4562
+ AWS_PRIVATE_BEDROCK_CHAT_MODELS.map((modelId) => `alfe-bedrock-${modelId}`);
4563
+ const AWS_PRIVATE_MODEL_PRICING = {
4564
+ [AlfeAwsModel.Qwen3_8B]: {
4565
+ input: .2,
4566
+ output: .6
4567
+ },
4568
+ [BedrockModel.GptOss120B]: {
4569
+ input: .1545,
4570
+ output: .618
4571
+ },
4572
+ [BedrockModel.GptOss20B]: {
4573
+ input: .0721,
4574
+ output: .309
4575
+ },
4576
+ [BedrockModel.Qwen3Coder30B]: {
4577
+ input: .1545,
4578
+ output: .618
4579
+ },
4580
+ [BedrockModel.Glm5]: {
4581
+ input: 1.03,
4582
+ output: 3.3
4583
+ },
4584
+ [BedrockModel.KimiK25]: {
4585
+ input: .618,
4586
+ output: 3.09
4587
+ },
4588
+ [BedrockModel.DeepSeekV32]: {
4589
+ input: .6386,
4590
+ output: 1.9055
4591
+ },
4592
+ [BedrockModel.TitanEmbedTextV2]: { input: .026004 }
4593
+ };
4594
+ Object.fromEntries(AWS_PRIVATE_BEDROCK_CHAT_MODELS.map((modelId) => [`alfe-bedrock-${modelId}`, AWS_PRIVATE_MODEL_PRICING[modelId]]));
4556
4595
  AnthropicModel.Opus5, AnthropicModel.Opus48, AnthropicModel.Opus47, AnthropicModel.Opus46, AnthropicModel.Sonnet5, AnthropicModel.Sonnet46, AnthropicModel.Haiku45, OpenAIModel.GPT4o, OpenAIModel.GPT4oMini, OpenAIModel.O3, OpenAIModel.GPT41, OpenAIModel.GPT41Mini, OpenAIModel.GPT41Nano, OpenAIModel.GPT54, OpenAIModel.GPT54Mini, OpenAIModel.GPT54Nano, OpenAIModel.GPT54Pro, OpenAIModel.GPT55, OpenAIModel.GPT55Pro, OpenAIModel.GPT56Sol, OpenAIModel.GPT56Terra, OpenAIModel.GPT56Luna, OpenAIModel.O3Mini, OpenAIModel.O4Mini, OpenAIModel.TextEmbedding3Small, OpenAIModel.TextEmbedding3Large, DeepSeekModel.Chat, DeepSeekModel.Reasoner, DeepSeekModel.V4Flash, DeepSeekModel.V4Pro, GoogleModel.Gemini35Flash, GoogleModel.Gemini31Pro, GoogleModel.Gemini31FlashLite, GoogleModel.Gemini25Pro, GoogleModel.Gemini25Flash, GoogleModel.Gemini25FlashLite, GoogleModel.Gemini20Flash, MiniMaxModel.M3, MiniMaxModel.M27, MiniMaxModel.M27HighSpeed, MiniMaxModel.M25, MiniMaxModel.M21, MiniMaxModel.M2, MistralModel.Large, MistralModel.Medium, MistralModel.Small, MistralModel.Codestral, MistralModel.Ministral8b, MistralModel.Ministral3b, MistralModel.MagistralMedium, MistralModel.MagistralSmall, MistralModel.DevstralMedium, XAIModel.Grok45, XAIModel.Grok43, XAIModel.Grok4, XAIModel.Grok41Fast, ZhipuModel.GLM52, ZhipuModel.GLM51, ZhipuModel.GLM46, ZhipuModel.GLM45, ZhipuModel.GLM45Air, MoonshotModel.K3, MoonshotModel.K26, MoonshotModel.K27Code, MoonshotModel.K27CodeHighSpeed, QwenModel.Qwen37Max, QwenModel.Qwen37Plus, QwenModel.Qwen36Flash, QwenModel.Qwen35Flash;
4557
4596
  enumValues({
4558
4597
  Standard: "standard",
@@ -4910,6 +4949,17 @@ var AuthService = class {
4910
4949
  body: JSON.stringify({ token })
4911
4950
  });
4912
4951
  }
4952
+ listAccountConnectorGrants(params) {
4953
+ const query = new URLSearchParams();
4954
+ if (params?.cursor !== void 0) query.set("cursor", params.cursor);
4955
+ if (params?.limit !== void 0) query.set("limit", String(params.limit));
4956
+ const queryString = query.toString();
4957
+ const suffix = queryString ? `?${queryString}` : "";
4958
+ return this.client.request(`${this.prefix}/account-connectors/grants${suffix}`);
4959
+ }
4960
+ revokeAccountConnectorGrant(grantId) {
4961
+ return this.client.request(`${this.prefix}/account-connectors/grants/${encodeURIComponent(grantId)}`, { method: "DELETE" });
4962
+ }
4913
4963
  listTokens() {
4914
4964
  return this.client.request(`${this.prefix}/tokens`);
4915
4965
  }
@@ -5210,6 +5260,16 @@ var IntegrationsService = class {
5210
5260
  })
5211
5261
  });
5212
5262
  }
5263
+ /**
5264
+ * The EFFECTIVE set (`effective: true`) resolves connection-/channel-/custom-
5265
+ * driven integrations that have no install row and returns the narrower
5266
+ * {@link EffectiveIntegration} shape (NO `config`). Use it for status/overview
5267
+ * surfaces only. Omit `effective` for config-editing surfaces — the default
5268
+ * path returns full {@link IntegrationInstall} rows including `config`.
5269
+ */
5270
+ listAgentOperationalStatus(agentId) {
5271
+ return this.client.request(`${this.agentIntegrationsPath(agentId)}/status`);
5272
+ }
5213
5273
  listIntegrations(agentId, options) {
5214
5274
  const params = new URLSearchParams();
5215
5275
  if (options?.includeInherited !== void 0) params.set("includeInherited", String(options.includeInherited));
@@ -23861,7 +23921,8 @@ var RuntimeProcess = class {
23861
23921
  cwd: this.options.workspace,
23862
23922
  env: {
23863
23923
  ...process.env,
23864
- ...this.options.env
23924
+ ...this.options.env,
23925
+ ...this.options.runtime === "openclaw" ? { OPENCLAW_SESSION_CACHE_TTL_MS: "0" } : {}
23865
23926
  },
23866
23927
  stdio: [
23867
23928
  "ignore",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.9.17",
3
+ "version": "0.9.18",
4
4
  "description": "Alfe local gateway daemon — persistent control plane for agent integrations",
5
5
  "type": "module",
6
6
  "bin": {