@liveblocks/core 2.25.0-aiprivatebeta12 → 2.25.0-aiprivatebeta13
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3702,21 +3702,21 @@ type AiToolDescription = {
|
|
|
3702
3702
|
type AiToolInvocationPart<A extends JsonObject = JsonObject, R extends ToolResultData = ToolResultData> = Relax<AiReceivingToolInvocationPart | AiExecutingToolInvocationPart<A> | AiExecutedToolInvocationPart<A, R>>;
|
|
3703
3703
|
type AiReceivingToolInvocationPart = {
|
|
3704
3704
|
type: "tool-invocation";
|
|
3705
|
-
|
|
3705
|
+
stage: "receiving";
|
|
3706
3706
|
invocationId: string;
|
|
3707
3707
|
name: string;
|
|
3708
3708
|
partialArgs: Json;
|
|
3709
3709
|
};
|
|
3710
3710
|
type AiExecutingToolInvocationPart<A extends JsonObject = JsonObject> = {
|
|
3711
3711
|
type: "tool-invocation";
|
|
3712
|
-
|
|
3712
|
+
stage: "executing";
|
|
3713
3713
|
invocationId: string;
|
|
3714
3714
|
name: string;
|
|
3715
3715
|
args: A;
|
|
3716
3716
|
};
|
|
3717
3717
|
type AiExecutedToolInvocationPart<A extends JsonObject = JsonObject, R extends ToolResultData = ToolResultData> = {
|
|
3718
3718
|
type: "tool-invocation";
|
|
3719
|
-
|
|
3719
|
+
stage: "executed";
|
|
3720
3720
|
invocationId: string;
|
|
3721
3721
|
name: string;
|
|
3722
3722
|
args: A;
|
package/dist/index.d.ts
CHANGED
|
@@ -3702,21 +3702,21 @@ type AiToolDescription = {
|
|
|
3702
3702
|
type AiToolInvocationPart<A extends JsonObject = JsonObject, R extends ToolResultData = ToolResultData> = Relax<AiReceivingToolInvocationPart | AiExecutingToolInvocationPart<A> | AiExecutedToolInvocationPart<A, R>>;
|
|
3703
3703
|
type AiReceivingToolInvocationPart = {
|
|
3704
3704
|
type: "tool-invocation";
|
|
3705
|
-
|
|
3705
|
+
stage: "receiving";
|
|
3706
3706
|
invocationId: string;
|
|
3707
3707
|
name: string;
|
|
3708
3708
|
partialArgs: Json;
|
|
3709
3709
|
};
|
|
3710
3710
|
type AiExecutingToolInvocationPart<A extends JsonObject = JsonObject> = {
|
|
3711
3711
|
type: "tool-invocation";
|
|
3712
|
-
|
|
3712
|
+
stage: "executing";
|
|
3713
3713
|
invocationId: string;
|
|
3714
3714
|
name: string;
|
|
3715
3715
|
args: A;
|
|
3716
3716
|
};
|
|
3717
3717
|
type AiExecutedToolInvocationPart<A extends JsonObject = JsonObject, R extends ToolResultData = ToolResultData> = {
|
|
3718
3718
|
type: "tool-invocation";
|
|
3719
|
-
|
|
3719
|
+
stage: "executed";
|
|
3720
3720
|
invocationId: string;
|
|
3721
3721
|
name: string;
|
|
3722
3722
|
args: A;
|
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 = "2.25.0-
|
|
9
|
+
var PKG_VERSION = "2.25.0-aiprivatebeta13";
|
|
10
10
|
var PKG_FORMAT = "esm";
|
|
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;
|
|
@@ -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") {
|