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.
@@ -60,8 +60,8 @@ export class OpenClawClient {
60
60
  id: "connect-1",
61
61
  method: "connect",
62
62
  params: {
63
- minProtocol: 3,
64
- maxProtocol: 3,
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
- text += ev.data.delta;
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 || "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-lark-multi-agent",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Multi-bot Lark/Feishu bridge for OpenClaw, with per-bot model routing and isolated sessions",
5
5
  "type": "module",
6
6
  "scripts": {