@openclaw/cloudflare-ai-gateway-provider 2026.10.5-beta.4 → 2026.10.10-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.
- package/dist/index.js +3 -3
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { buildCloudflareAiGatewayCatalogProvider } from "./catalog-provider.js";
|
|
|
3
3
|
import { applyCloudflareAiGatewayConnectionConfig, applyCloudflareAiGatewayProviderConnectionConfig } 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,
|
|
6
|
+
import { applyAuthProfileConfig, buildApiKeyCredential, ensureAuthProfileStoreAsync, listProfilesForProvider, normalizeOptionalSecretInput } from "openclaw/plugin-sdk/provider-auth";
|
|
7
7
|
import { captureProviderApiKey, persistProviderApiKey } from "openclaw/plugin-sdk/provider-auth-api-key";
|
|
8
8
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
//#region extensions/cloudflare-ai-gateway/index.ts
|
|
@@ -80,7 +80,7 @@ var cloudflare_ai_gateway_default = definePluginEntry({
|
|
|
80
80
|
};
|
|
81
81
|
},
|
|
82
82
|
runNonInteractive: async (ctx) => {
|
|
83
|
-
const credential =
|
|
83
|
+
const credential = (await ensureAuthProfileStoreAsync(ctx.agentDir, { allowKeychainPrompt: false })).profiles[PROFILE_ID];
|
|
84
84
|
const storedMetadata = credential?.type === "api_key" ? {
|
|
85
85
|
accountId: normalizeOptionalString(credential.metadata?.accountId),
|
|
86
86
|
gatewayId: normalizeOptionalString(credential.metadata?.gatewayId)
|
|
@@ -117,7 +117,7 @@ var cloudflare_ai_gateway_default = definePluginEntry({
|
|
|
117
117
|
catalog: {
|
|
118
118
|
order: "late",
|
|
119
119
|
run: async (ctx) => {
|
|
120
|
-
const authStore =
|
|
120
|
+
const authStore = await ensureAuthProfileStoreAsync(ctx.agentDir, { allowKeychainPrompt: false });
|
|
121
121
|
const envManagedApiKey = normalizeOptionalString(ctx.env[PROVIDER_ENV_VAR]) ? PROVIDER_ENV_VAR : void 0;
|
|
122
122
|
for (const profileId of listProfilesForProvider(authStore, PROVIDER_ID)) {
|
|
123
123
|
const provider = buildCloudflareAiGatewayCatalogProvider({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cloudflare-ai-gateway-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.10-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.10.
|
|
21
|
+
"pluginApi": ">=2026.10.10-beta.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.10.
|
|
24
|
+
"openclawVersion": "2026.10.10-beta.2",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.10.
|
|
43
|
+
"openclaw": ">=2026.10.10-beta.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|