@openclaw/radius-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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { fetchLiveProviderModelRows } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
2
2
|
import { asFiniteNumberInRange, asOptionalRecord, asPositiveSafeInteger, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
|
-
|
|
3
|
+
//#region extensions/radius/catalog.ts
|
|
4
4
|
const RADIUS_BASE_URL = "https://radius.pi.dev/v1";
|
|
5
5
|
const THINKING_LEVELS = [
|
|
6
6
|
"off",
|
|
@@ -107,4 +107,5 @@ async function fetchRadiusCatalog(apiKey, signal) {
|
|
|
107
107
|
models: config.models.map(readModel).filter((model) => model !== void 0)
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
+
//#endregion
|
|
110
111
|
export { RADIUS_BASE_URL, fetchRadiusCatalog };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
|
2
2
|
import { buildOauthProviderAuthResult, resolveOAuthApiKeyMarker } from "openclaw/plugin-sdk/provider-auth";
|
|
3
3
|
import { runLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
|
|
4
4
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
5
|
-
|
|
5
|
+
//#region extensions/radius/openclaw.plugin.json
|
|
6
6
|
var openclaw_plugin_default = {
|
|
7
7
|
id: "radius",
|
|
8
8
|
name: "Radius",
|
|
@@ -47,7 +47,8 @@ var openclaw_plugin_default = {
|
|
|
47
47
|
"properties": {}
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region extensions/radius/index.ts
|
|
51
52
|
const loadCatalog = createLazyRuntimeModule(() => import("./catalog.js"));
|
|
52
53
|
const loadOAuth = createLazyRuntimeModule(() => import("./oauth.js"));
|
|
53
54
|
const loadStream = createLazyRuntimeModule(() => import("./stream.js"));
|
|
@@ -165,4 +166,5 @@ var radius_default = defineSingleProviderPluginEntry({
|
|
|
165
166
|
refreshOAuth: async (credential) => (await loadOAuth()).refreshRadiusOAuthCredential(credential)
|
|
166
167
|
}
|
|
167
168
|
});
|
|
169
|
+
//#endregion
|
|
168
170
|
export { radius_default as default };
|
package/dist/oauth.js
CHANGED
|
@@ -4,7 +4,7 @@ import { readProviderJsonObjectResponse } from "openclaw/plugin-sdk/provider-htt
|
|
|
4
4
|
import { throwIfOAuthLoginAborted } from "openclaw/plugin-sdk/provider-oauth-runtime";
|
|
5
5
|
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
|
|
6
6
|
import { sleep } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
7
|
-
|
|
7
|
+
//#region extensions/radius/oauth.ts
|
|
8
8
|
const OAUTH_BASE_URL = "https://radius.pi.dev/v1/oauth";
|
|
9
9
|
const CLIENT_ID = "pi-gateway";
|
|
10
10
|
const REQUEST_TIMEOUT_MS = 3e4;
|
|
@@ -153,4 +153,5 @@ async function refreshRadiusOAuthCredential(credential) {
|
|
|
153
153
|
...parseToken(payload, credential.refresh)
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
+
//#endregion
|
|
156
157
|
export { loginRadiusOAuth, refreshRadiusOAuthCredential };
|
package/dist/stream.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
|
2
2
|
import { createProviderHttpError } from "openclaw/plugin-sdk/provider-http";
|
|
3
3
|
import { createAssistantMessageEventStream, createToolArgumentPreviewSchedule, parseStreamingJson } from "openclaw/plugin-sdk/llm";
|
|
4
4
|
import { buildAssistantMessage, buildGuardedModelFetch, createEmptyTransportUsage, failTransportStream, notifyProviderHttpResponse, parseTerminalToolCallArguments } from "openclaw/plugin-sdk/provider-transport-runtime";
|
|
5
|
-
|
|
5
|
+
//#region extensions/radius/stream.ts
|
|
6
6
|
const MAX_SSE_EVENT_BYTES = 16777216;
|
|
7
7
|
function record(value) {
|
|
8
8
|
const parsed = asOptionalRecord(value);
|
|
@@ -286,4 +286,5 @@ function createRadiusStreamFn() {
|
|
|
286
286
|
return stream;
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
|
+
//#endregion
|
|
289
290
|
export { createRadiusStreamFn };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/radius-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.2",
|
|
4
4
|
"description": "OpenClaw Radius model gateway provider plugin.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.9.4"
|
|
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":"catalog.js","source":"extensions/radius/catalog.ts"},{"output":"index.js","source":"extensions/radius/index.ts"},{"output":"oauth.js","source":"extensions/radius/oauth.ts"},{"output":"stream.js","source":"extensions/radius/stream.ts"}],"chunks":[{"output":"catalog.js","sha256":"5a6e95a33e515fd20c71586bb0ecb8694b83a30048709cf042267f68b86339cf","facadeSource":"extensions/radius/catalog.ts","sources":["extensions/radius/catalog.ts"]},{"output":"index.js","sha256":"6c696de571f6e3cac680436cef92687d24c1de63407e412ceb4aaa93b1782ccf","facadeSource":"extensions/radius/index.ts","sources":["extensions/radius/index.ts","extensions/radius/openclaw.plugin.json"]},{"output":"oauth.js","sha256":"100c3a0149011c7c8e1b6e4e030be3b6b1f294d7354cee4ce6b8cb3bfe4c0133","facadeSource":"extensions/radius/oauth.ts","sources":["extensions/radius/oauth.ts"]},{"output":"stream.js","sha256":"05d3c0d9466679792a8d0819725c7f94563cfc4165b71dec1275f6fd3f5a5eed","facadeSource":"extensions/radius/stream.ts","sources":["extensions/radius/stream.ts"]}],"unrenderedSources":[]}
|