openclaw-elys 1.7.5 → 1.7.7

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.
@@ -56,12 +56,15 @@ export async function monitorElysProvider(opts) {
56
56
  OriginatingTo: credentials.deviceId,
57
57
  });
58
58
  // Deliver callback: stream chunks back via MQTT
59
+ const wantStream = cmd.stream === true;
59
60
  const deliver = async (payload, info) => {
60
61
  if (payload.text) {
61
62
  fullText += payload.text;
62
- seq++;
63
- const done = info.kind === "final";
64
- mqttClient.publishStreamChunk(cmd.id, payload.text, seq, done);
63
+ if (wantStream || info.kind === "final") {
64
+ seq++;
65
+ const done = info.kind === "final";
66
+ mqttClient.publishStreamChunk(cmd.id, payload.text, seq, done);
67
+ }
65
68
  if (info.kind === "block") {
66
69
  log(`[elys] stream chunk #${seq}: ${payload.text.slice(0, 80)}...`);
67
70
  }
@@ -70,8 +73,10 @@ export async function monitorElysProvider(opts) {
70
73
  }
71
74
  }
72
75
  else if (info.kind === "final") {
73
- seq++;
74
- mqttClient.publishStreamChunk(cmd.id, "", seq, true);
76
+ if (wantStream) {
77
+ seq++;
78
+ mqttClient.publishStreamChunk(cmd.id, "", seq, true);
79
+ }
75
80
  log(`[elys] final reply delivered (empty)`);
76
81
  }
77
82
  };
@@ -175,7 +175,7 @@ export class ElysDeviceMQTTClient {
175
175
  return;
176
176
  const merged = this.mergeCommands(buffered);
177
177
  if (this.isExecuting) {
178
- // Queue for after current dispatch completes — OpenClaw processes sequentially
178
+ // Queue for after current dispatch completes — same as Discord/Slack channels
179
179
  this.log(`[elys] dispatch busy, queuing command ${merged.id}`);
180
180
  this.pendingCommands.push(merged);
181
181
  return;
@@ -24,6 +24,7 @@ export interface CommandMessage extends MQTTBaseMessage {
24
24
  type: "command";
25
25
  command: string;
26
26
  args?: Record<string, unknown>;
27
+ stream?: boolean;
27
28
  }
28
29
  export interface AckMessage extends MQTTBaseMessage {
29
30
  type: "ack";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-elys",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "OpenClaw Elys channel plugin — connects to Elys App",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",