openclaw-lark-multi-agent 1.0.3 → 1.0.4
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/openclaw-client.js +11 -4
- package/package.json +1 -1
package/dist/openclaw-client.js
CHANGED
|
@@ -60,8 +60,8 @@ export class OpenClawClient {
|
|
|
60
60
|
id: "connect-1",
|
|
61
61
|
method: "connect",
|
|
62
62
|
params: {
|
|
63
|
-
minProtocol:
|
|
64
|
-
maxProtocol:
|
|
63
|
+
minProtocol: 4,
|
|
64
|
+
maxProtocol: 99,
|
|
65
65
|
client: {
|
|
66
66
|
id: "gateway-client",
|
|
67
67
|
version: "1.0.0",
|
|
@@ -348,8 +348,15 @@ export class OpenClawClient {
|
|
|
348
348
|
lifecycleStartedLogged = true;
|
|
349
349
|
console.log(`[OpenClaw] lifecycle start for runId=${runId} after ${Date.now() - collectStartedAt}ms`);
|
|
350
350
|
}
|
|
351
|
-
if (ev.stream === "assistant" && ev.data?.delta) {
|
|
352
|
-
|
|
351
|
+
if (ev.stream === "assistant" && (ev.data?.deltaText || ev.data?.delta)) {
|
|
352
|
+
const chunk = ev.data.deltaText || ev.data.delta;
|
|
353
|
+
if (ev.data?.replace) {
|
|
354
|
+
// v4: non-prefix replacement — deltaText is the full replacement
|
|
355
|
+
text = chunk;
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
text += chunk;
|
|
359
|
+
}
|
|
353
360
|
}
|
|
354
361
|
if (ev.stream === "chatFinal") {
|
|
355
362
|
chatFinalText = ev.data?.text || "";
|