@liveblocks/core 3.3.3 → 3.3.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/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "3.3.
|
|
9
|
+
var PKG_VERSION = "3.3.4";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -4063,7 +4063,10 @@ function createStore_forChatMessages(toolsStore, setToolResultFn) {
|
|
|
4063
4063
|
}
|
|
4064
4064
|
}
|
|
4065
4065
|
} else {
|
|
4066
|
-
|
|
4066
|
+
if (message.role === "assistant" && message.status === "generating") {
|
|
4067
|
+
} else {
|
|
4068
|
+
myMessages.delete(message.id);
|
|
4069
|
+
}
|
|
4067
4070
|
}
|
|
4068
4071
|
});
|
|
4069
4072
|
}
|
|
@@ -4520,6 +4523,7 @@ function createAi(config) {
|
|
|
4520
4523
|
const requestKnowledge = options?.knowledge || [];
|
|
4521
4524
|
const combinedKnowledge = [...globalKnowledge, ...requestKnowledge];
|
|
4522
4525
|
const tools = context.toolsStore.getToolDescriptions(chatId);
|
|
4526
|
+
messagesStore.markMine(targetMessageId);
|
|
4523
4527
|
const resp = await sendClientMsgWithResponse({
|
|
4524
4528
|
cmd: "ask-in-chat",
|
|
4525
4529
|
chatId,
|
|
@@ -4534,7 +4538,6 @@ function createAi(config) {
|
|
|
4534
4538
|
tools: tools.length > 0 ? tools : void 0
|
|
4535
4539
|
}
|
|
4536
4540
|
});
|
|
4537
|
-
messagesStore.markMine(resp.targetMessage.id);
|
|
4538
4541
|
return resp;
|
|
4539
4542
|
},
|
|
4540
4543
|
abort: (messageId) => sendClientMsgWithResponse({ cmd: "abort-ai", messageId }),
|