@openclaw/cloudflare-ai-gateway-provider 2026.7.2-beta.7 → 2026.8.1-beta.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -3,7 +3,8 @@ import { buildCloudflareAiGatewayCatalogProvider } from "./catalog-provider.js";
3
3
  import { applyCloudflareAiGatewayConfig, buildCloudflareAiGatewayConfigPatch } from "./onboard.js";
4
4
  import { wrapCloudflareAiGatewayProviderStream } from "./stream-wrappers.js";
5
5
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
6
- import { applyAuthProfileConfig, buildApiKeyCredential, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, listProfilesForProvider, normalizeApiKeyInput, normalizeOptionalSecretInput, upsertAuthProfileWithLock, validateApiKeyInput } from "openclaw/plugin-sdk/provider-auth";
6
+ import { applyAuthProfileConfig, buildApiKeyCredential, ensureApiKeyFromOptionEnvOrPrompt, ensureAuthProfileStore, listProfilesForProvider, normalizeApiKeyInput, normalizeOptionalSecretInput, validateApiKeyInput } from "openclaw/plugin-sdk/provider-auth";
7
+ import { upsertAuthProfileWithLockOrThrow } from "openclaw/plugin-sdk/provider-auth-api-key";
7
8
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
8
9
  //#region extensions/cloudflare-ai-gateway/index.ts
9
10
  /**
@@ -13,11 +14,8 @@ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runti
13
14
  const PROVIDER_ID = "cloudflare-ai-gateway";
14
15
  const PROVIDER_ENV_VAR = "CLOUDFLARE_AI_GATEWAY_API_KEY";
15
16
  const PROFILE_ID = "cloudflare-ai-gateway:default";
16
- async function upsertAuthProfileWithLockOrThrow(params) {
17
- if (!await upsertAuthProfileWithLock(params)) throw new Error("Failed to update auth profile store; the auth store lock may be busy. Wait a moment and retry.");
18
- }
19
17
  function readRequiredTextInput(value) {
20
- return typeof value === "string" ? value.trim() : "";
18
+ return normalizeOptionalString(value) ?? "";
21
19
  }
22
20
  async function resolveCloudflareGatewayMetadataInteractive(ctx) {
23
21
  let accountId = normalizeOptionalString(ctx.accountId) ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/cloudflare-ai-gateway-provider",
3
- "version": "2026.7.2-beta.7",
3
+ "version": "2026.8.1-beta.2",
4
4
  "description": "OpenClaw Cloudflare AI Gateway provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.8"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.7.2-beta.7"
21
+ "pluginApi": ">=2026.8.1-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.7.2-beta.7",
24
+ "openclawVersion": "2026.8.1-beta.2",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.7.2-beta.7"
41
+ "openclaw": ">=2026.8.1-beta.2"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {