@liveblocks/core 2.25.0-aiprivatebeta12 → 2.25.0-aiprivatebeta14
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
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 = "2.25.0-
|
|
9
|
+
var PKG_VERSION = "2.25.0-aiprivatebeta14";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -3918,7 +3918,7 @@ function createStore_forChatMessages(toolsStore, setToolResult) {
|
|
|
3918
3918
|
}
|
|
3919
3919
|
if (message.role === "assistant" && message.status === "awaiting-tool") {
|
|
3920
3920
|
for (const toolCall of message.contentSoFar.filter(
|
|
3921
|
-
(part) => part.type === "tool-invocation" && part.
|
|
3921
|
+
(part) => part.type === "tool-invocation" && part.stage === "executing"
|
|
3922
3922
|
)) {
|
|
3923
3923
|
if (seenToolCallIds.has(toolCall.invocationId)) {
|
|
3924
3924
|
continue;
|
|
@@ -3930,7 +3930,7 @@ function createStore_forChatMessages(toolsStore, setToolResult) {
|
|
|
3930
3930
|
message.chatId,
|
|
3931
3931
|
message.id,
|
|
3932
3932
|
toolCall.invocationId,
|
|
3933
|
-
result
|
|
3933
|
+
result.data
|
|
3934
3934
|
// TODO Pass in AiGenerationOptions here, or make the backend use the same options
|
|
3935
3935
|
).catch((err) => {
|
|
3936
3936
|
error2(
|
|
@@ -4459,7 +4459,7 @@ function makeCreateSocketDelegateForAi(baseUrl, WebSocketPolyfill) {
|
|
|
4459
4459
|
}
|
|
4460
4460
|
const url2 = new URL(baseUrl);
|
|
4461
4461
|
url2.protocol = url2.protocol === "http:" ? "ws" : "wss";
|
|
4462
|
-
url2.pathname = "/ai/
|
|
4462
|
+
url2.pathname = "/ai/v3";
|
|
4463
4463
|
if (authValue.type === "secret") {
|
|
4464
4464
|
url2.searchParams.set("tok", authValue.token.raw);
|
|
4465
4465
|
} else if (authValue.type === "public") {
|