@openclaw/radius-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/stream.js +12 -9
- package/package.json +4 -4
package/dist/stream.js
CHANGED
|
@@ -56,6 +56,7 @@ function createEventConverter(partial) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
if (type === "error" && (reason === "error" || reason === "aborted")) {
|
|
59
|
+
for (const block of partial.content) if (block.type === "toolCall") delete block.partialJson;
|
|
59
60
|
partial.stopReason = reason;
|
|
60
61
|
partial.errorMessage = event.errorMessage === void 0 ? "Radius request failed" : string(event.errorMessage);
|
|
61
62
|
return {
|
|
@@ -83,16 +84,15 @@ function createEventConverter(partial) {
|
|
|
83
84
|
thinking: ""
|
|
84
85
|
});
|
|
85
86
|
else {
|
|
86
|
-
|
|
87
|
+
const toolCall = {
|
|
87
88
|
type: "toolCall",
|
|
88
89
|
id: string(event.id),
|
|
89
90
|
name: string(event.toolName),
|
|
90
|
-
arguments: {}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
});
|
|
91
|
+
arguments: {},
|
|
92
|
+
partialJson: ""
|
|
93
|
+
};
|
|
94
|
+
partial.content.push(toolCall);
|
|
95
|
+
toolJson.set(contentIndex, createToolArgumentPreviewSchedule());
|
|
96
96
|
}
|
|
97
97
|
return {
|
|
98
98
|
type,
|
|
@@ -150,8 +150,9 @@ function createEventConverter(partial) {
|
|
|
150
150
|
const pending = toolJson.get(contentIndex);
|
|
151
151
|
if (block?.type !== "toolCall" || !pending) break;
|
|
152
152
|
const delta = string(event.delta);
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
const partialJson = (block.partialJson ?? "") + delta;
|
|
154
|
+
block.partialJson = partialJson;
|
|
155
|
+
if (pending(partialJson.length)) block.arguments = parseStreamingJson(partialJson);
|
|
155
156
|
return {
|
|
156
157
|
type,
|
|
157
158
|
contentIndex,
|
|
@@ -164,6 +165,7 @@ function createEventConverter(partial) {
|
|
|
164
165
|
const call = record(event.toolCall);
|
|
165
166
|
if (call.type !== "toolCall" || call.id !== block.id || call.name !== block.name) throw new Error("Radius terminal tool call does not match its start");
|
|
166
167
|
block.arguments = parseTerminalToolCallArguments(call.arguments);
|
|
168
|
+
delete block.partialJson;
|
|
167
169
|
if (call.thoughtSignature !== void 0) block.thoughtSignature = string(call.thoughtSignature);
|
|
168
170
|
toolJson.delete(contentIndex);
|
|
169
171
|
return {
|
|
@@ -270,6 +272,7 @@ function createRadiusStreamFn() {
|
|
|
270
272
|
}
|
|
271
273
|
throw new Error("Radius stream ended without a terminal event");
|
|
272
274
|
} catch (error) {
|
|
275
|
+
for (const block of partial.content) if (block.type === "toolCall") delete block.partialJson;
|
|
273
276
|
failTransportStream({
|
|
274
277
|
stream,
|
|
275
278
|
output: partial,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/radius-provider",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.10-beta.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.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": {
|