@questionbase/deskfree 0.3.0-alpha.32 → 0.3.0-alpha.34
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/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4666,6 +4666,7 @@ async function deliverMessageToAgent(ctx, message, client) {
|
|
|
4666
4666
|
}
|
|
4667
4667
|
}
|
|
4668
4668
|
});
|
|
4669
|
+
sendWsThinking(message.taskId ?? getActiveTaskId() ?? void 0);
|
|
4669
4670
|
await runtime.channel.reply.dispatchReplyFromConfig({
|
|
4670
4671
|
ctx: msgCtx,
|
|
4671
4672
|
cfg,
|
|
@@ -4732,6 +4733,16 @@ function sendWsAck(messageId) {
|
|
|
4732
4733
|
}
|
|
4733
4734
|
}
|
|
4734
4735
|
}
|
|
4736
|
+
function sendWsThinking(taskId) {
|
|
4737
|
+
if (activeWs?.readyState === wrapper_default.OPEN) {
|
|
4738
|
+
try {
|
|
4739
|
+
activeWs.send(
|
|
4740
|
+
JSON.stringify({ action: "thinking", ...taskId ? { taskId } : {} })
|
|
4741
|
+
);
|
|
4742
|
+
} catch {
|
|
4743
|
+
}
|
|
4744
|
+
}
|
|
4745
|
+
}
|
|
4735
4746
|
var activeTaskId = null;
|
|
4736
4747
|
var completedTaskId = null;
|
|
4737
4748
|
var inboundThreadId = null;
|