@openclaw/cloudflare-ai-gateway-provider 2026.10.10 → 2026.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/catalog-provider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildCloudflareAiGatewayModelDefinition, resolveCloudflareAiGatewayBaseUrl } from "./models.js";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { coerceSecretRef, resolveNonEnvSecretRefApiKeyMarker } from "openclaw/plugin-sdk/secret-input";
|
|
4
|
-
|
|
4
|
+
//#region extensions/cloudflare-ai-gateway/catalog-provider.ts
|
|
5
5
|
function resolveCloudflareAiGatewayApiKey(cred) {
|
|
6
6
|
if (!cred || cred.type !== "api_key") return;
|
|
7
7
|
const keyRef = coerceSecretRef(cred.keyRef);
|
|
@@ -30,4 +30,5 @@ function buildCloudflareAiGatewayCatalogProvider(params) {
|
|
|
30
30
|
models: [buildCloudflareAiGatewayModelDefinition()]
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
//#endregion
|
|
33
34
|
export { buildCloudflareAiGatewayCatalogProvider };
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
|
6
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
|
|
10
10
|
const PROVIDER_ID = "cloudflare-ai-gateway";
|
|
11
11
|
const PROVIDER_ENV_VAR = "CLOUDFLARE_AI_GATEWAY_API_KEY";
|
|
12
12
|
const PROFILE_ID = "cloudflare-ai-gateway:default";
|
|
@@ -135,4 +135,5 @@ var cloudflare_ai_gateway_default = definePluginEntry({
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
+
//#endregion
|
|
138
139
|
export { cloudflare_ai_gateway_default as default };
|
package/dist/models.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
//#region extensions/cloudflare-ai-gateway/models.ts
|
|
2
2
|
const CLOUDFLARE_AI_GATEWAY_PROVIDER_ID = "cloudflare-ai-gateway";
|
|
3
3
|
const CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_ID = "claude-sonnet-4-6";
|
|
4
4
|
const CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF = `${CLOUDFLARE_AI_GATEWAY_PROVIDER_ID}/${CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_ID}`;
|
|
@@ -35,4 +35,5 @@ function resolveCloudflareAiGatewayBaseUrl(params) {
|
|
|
35
35
|
if (!accountId || !gatewayId) return "";
|
|
36
36
|
return `https://gateway.ai.cloudflare.com/v1/${accountId}/${gatewayId}/anthropic`;
|
|
37
37
|
}
|
|
38
|
+
//#endregion
|
|
38
39
|
export { CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_ID, CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, CLOUDFLARE_AI_GATEWAY_PROVIDER_ID, buildCloudflareAiGatewayModelDefinition, resolveCloudflareAiGatewayBaseUrl };
|
package/dist/onboard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF, buildCloudflareAiGatewayModelDefinition, resolveCloudflareAiGatewayBaseUrl } from "./models.js";
|
|
2
2
|
import { applyAgentDefaultModelPrimary, applyProviderConfigWithDefaultModel, applyProviderConnectionConfig, createAliasOnlyPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
|
|
3
|
-
|
|
3
|
+
//#region extensions/cloudflare-ai-gateway/onboard.ts
|
|
4
4
|
const { applyProviderConfig: applyCloudflareAiGatewayAlias } = createAliasOnlyPresetAppliers({
|
|
5
5
|
modelRef: CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF,
|
|
6
6
|
alias: "Cloudflare AI Gateway"
|
|
@@ -50,4 +50,5 @@ function applyCloudflareAiGatewayProviderConnectionConfig(cfg, params) {
|
|
|
50
50
|
function applyCloudflareAiGatewayConnectionConfig(cfg, params) {
|
|
51
51
|
return applyAgentDefaultModelPrimary(applyCloudflareAiGatewayProviderConnectionConfig(cfg, params), CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF);
|
|
52
52
|
}
|
|
53
|
+
//#endregion
|
|
53
54
|
export { applyCloudflareAiGatewayConfig, applyCloudflareAiGatewayConnectionConfig, applyCloudflareAiGatewayProviderConfig, applyCloudflareAiGatewayProviderConnectionConfig, buildCloudflareAiGatewayConfigPatch };
|
package/dist/stream-wrappers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAnthropicThinkingPrefillPayloadWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
2
2
|
import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env";
|
|
3
|
-
|
|
3
|
+
//#region extensions/cloudflare-ai-gateway/stream-wrappers.ts
|
|
4
4
|
const log = createSubsystemLogger("cloudflare-ai-gateway-stream");
|
|
5
5
|
function wrapCloudflareAiGatewayProviderStream(ctx) {
|
|
6
6
|
if (ctx.model?.api !== void 0 && ctx.model.api !== "anthropic-messages") return ctx.streamFn;
|
|
@@ -8,4 +8,5 @@ function wrapCloudflareAiGatewayProviderStream(ctx) {
|
|
|
8
8
|
log.warn(`removed ${stripped} trailing assistant prefill message${stripped === 1 ? "" : "s"} because Anthropic extended thinking requires conversations to end with a user turn`);
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
+
//#endregion
|
|
11
12
|
export { wrapCloudflareAiGatewayProviderStream };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/cloudflare-ai-gateway-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.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.
|
|
21
|
+
"pluginApi": ">=2026.11.2"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.11.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.
|
|
43
|
+
"openclaw": ">=2026.11.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/cloudflare-ai-gateway/api.ts"},{"output":"catalog-provider.js","source":"extensions/cloudflare-ai-gateway/catalog-provider.ts"},{"output":"index.js","source":"extensions/cloudflare-ai-gateway/index.ts"},{"output":"models.js","source":"extensions/cloudflare-ai-gateway/models.ts"},{"output":"onboard.js","source":"extensions/cloudflare-ai-gateway/onboard.ts"},{"output":"stream-wrappers.js","source":"extensions/cloudflare-ai-gateway/stream-wrappers.ts"}],"chunks":[{"output":"api.js","sha256":"94d7aad25ae0b6246ee57dd0d17818b7a01473898590b739a28b7f1b153df6e8","facadeSource":"extensions/cloudflare-ai-gateway/api.ts","sources":[]},{"output":"catalog-provider.js","sha256":"6d6513655fa0811052a0028f11de7ccc21e30ad2aab434a738a4baf03c163eef","facadeSource":"extensions/cloudflare-ai-gateway/catalog-provider.ts","sources":["extensions/cloudflare-ai-gateway/catalog-provider.ts"]},{"output":"index.js","sha256":"dc222da7c6c1e93e095dae422fea93291ff2013873f3d55d9872166df9353ccd","facadeSource":"extensions/cloudflare-ai-gateway/index.ts","sources":["extensions/cloudflare-ai-gateway/index.ts"]},{"output":"models.js","sha256":"14deafe8b29619cbffccfae200bd669c858342eb74173a29cd0e77e98f77e905","facadeSource":"extensions/cloudflare-ai-gateway/models.ts","sources":["extensions/cloudflare-ai-gateway/models.ts"]},{"output":"onboard.js","sha256":"5c6e3d8af072798400264a89cfca9dc981ece3250db8e4f51bf92326d39f556f","facadeSource":"extensions/cloudflare-ai-gateway/onboard.ts","sources":["extensions/cloudflare-ai-gateway/onboard.ts"]},{"output":"stream-wrappers.js","sha256":"657e304f2aa356b089e8b225dc530e10021c5ed278a8a024619137be5e7176f0","facadeSource":"extensions/cloudflare-ai-gateway/stream-wrappers.ts","sources":["extensions/cloudflare-ai-gateway/stream-wrappers.ts"]}],"unrenderedSources":["extensions/cloudflare-ai-gateway/api.ts"]}
|