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.
- package/dist/src/monitor.js +10 -5
- package/dist/src/mqtt-client.js +1 -1
- package/dist/src/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/src/monitor.js
CHANGED
|
@@ -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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
74
|
-
|
|
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
|
};
|
package/dist/src/mqtt-client.js
CHANGED
|
@@ -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 —
|
|
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;
|
package/dist/src/types.d.ts
CHANGED