@openclaw/radius-provider 2026.9.8 → 2026.10.1-beta.1

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/oauth.js CHANGED
@@ -71,13 +71,8 @@ function parseDevice(payload) {
71
71
  });
72
72
  const intervalMs = intervalSeconds === void 0 ? void 0 : Math.ceil(intervalSeconds * 1e3);
73
73
  if (typeof payload.device_code !== "string" || !payload.device_code.trim() || typeof payload.user_code !== "string" || !payload.user_code.trim() || typeof payload.verification_uri !== "string" || expiresAt === void 0 || intervalMs === void 0 || intervalMs > MAX_TIMER_TIMEOUT_MS) throw new Error("Radius OAuth returned an invalid device authorization response.");
74
- let url;
75
- try {
76
- url = new URL(payload.verification_uri);
77
- } catch {
78
- throw new Error("Radius OAuth returned an invalid verification URL.");
79
- }
80
- if (url.origin !== "https://radius.earendil.com" || url.username || url.password) throw new Error("Radius OAuth returned an invalid verification URL.");
74
+ const url = URL.parse(payload.verification_uri);
75
+ if (!url || url.origin !== "https://radius.earendil.com" || url.username || url.password) throw new Error("Radius OAuth returned an invalid verification URL.");
81
76
  return {
82
77
  deviceCode: payload.device_code,
83
78
  userCode: payload.user_code,
package/dist/stream.js CHANGED
@@ -1,7 +1,7 @@
1
1
  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
- import { buildGuardedModelFetch, createEmptyTransportUsage, failTransportStream, notifyProviderHttpResponse, parseTerminalToolCallArguments } from "openclaw/plugin-sdk/provider-transport-runtime";
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) {
@@ -214,16 +214,12 @@ async function* readEvents(body, signal) {
214
214
  function createRadiusStreamFn() {
215
215
  return (model, context, options) => {
216
216
  const stream = createAssistantMessageEventStream();
217
- const partial = {
218
- role: "assistant",
217
+ const partial = buildAssistantMessage({
218
+ model,
219
219
  content: [],
220
- api: model.api,
221
- provider: model.provider,
222
- model: model.id,
223
220
  usage: createEmptyTransportUsage(),
224
- stopReason: "stop",
225
- timestamp: Date.now()
226
- };
221
+ stopReason: "stop"
222
+ });
227
223
  const convert = createEventConverter(partial);
228
224
  (async () => {
229
225
  let response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/radius-provider",
3
- "version": "2026.9.8",
3
+ "version": "2026.10.1-beta.1",
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.9.8"
21
+ "pluginApi": ">=2026.10.1-beta.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.8",
24
+ "openclawVersion": "2026.10.1-beta.1",
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.9.8"
43
+ "openclaw": ">=2026.10.1-beta.1"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {