@d-id/client-sdk 3.0.0-staging.421 → 3.0.0-staging.424
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-DGM79eYJ.js → index-DevXbquF.js} +49 -50
- package/dist/{index-DGM79eYJ.js.map → index-DevXbquF.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/{livekit-manager-BxRnZa2O.js → livekit-manager-Bfdgu_0H.js} +2 -2
- package/dist/{livekit-manager-BxRnZa2O.js.map → livekit-manager-Bfdgu_0H.js.map} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var It = Object.defineProperty;
|
|
2
2
|
var Et = (e, t, r) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var x = (e, t, r) => Et(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
var Ie = /* @__PURE__ */ ((e) => (e.Chat = "lk.chat", e.Speak = "did.speak", e.Interrupt = "did.interrupt", e.SttLanguage = "did.stt-language", e.Presentation = "did.presentation", e))(Ie || {}), L = /* @__PURE__ */ ((e) => (e.Functional = "Functional", e.TextOnly = "TextOnly", e.Maintenance = "Maintenance", e.Playground = "Playground", e.DirectPlayback = "DirectPlayback", e.Off = "Off", e))(L || {}), F = /* @__PURE__ */ ((e) => (e.Embed = "embed", e.Query = "query", e.Partial = "partial", e.Answer = "answer", e.Transcribe = "transcribe", e.Complete = "done", e))(F || {}), pe = /* @__PURE__ */ ((e) => (e.Clip = "clip", e.Talk = "talk", e.Expressive = "expressive", e))(pe || {}), C = /* @__PURE__ */ ((e) => (e.Start = "START", e.Stop = "STOP", e))(C || {}), me = /* @__PURE__ */ ((e) => (e.Strong = "STRONG", e.Weak = "WEAK", e.Unknown = "UNKNOWN", e))(me || {}), ye = /* @__PURE__ */ ((e) => (e.Idle = "IDLE", e.Loading = "LOADING", e.Talking = "TALKING", e.ToolActive = "TOOL_ACTIVE", e))(ye || {}),
|
|
4
|
+
var Ie = /* @__PURE__ */ ((e) => (e.Chat = "lk.chat", e.Speak = "did.speak", e.Interrupt = "did.interrupt", e.SttLanguage = "did.stt-language", e.Presentation = "did.presentation", e))(Ie || {}), L = /* @__PURE__ */ ((e) => (e.Functional = "Functional", e.TextOnly = "TextOnly", e.Maintenance = "Maintenance", e.Playground = "Playground", e.DirectPlayback = "DirectPlayback", e.Off = "Off", e))(L || {}), F = /* @__PURE__ */ ((e) => (e.Embed = "embed", e.Query = "query", e.Partial = "partial", e.Answer = "answer", e.Transcribe = "transcribe", e.Complete = "done", e))(F || {}), pe = /* @__PURE__ */ ((e) => (e.Clip = "clip", e.Talk = "talk", e.Expressive = "expressive", e))(pe || {}), C = /* @__PURE__ */ ((e) => (e.Start = "START", e.Stop = "STOP", e))(C || {}), me = /* @__PURE__ */ ((e) => (e.Strong = "STRONG", e.Weak = "WEAK", e.Unknown = "UNKNOWN", e))(me || {}), ye = /* @__PURE__ */ ((e) => (e.Idle = "IDLE", e.Loading = "LOADING", e.Talking = "TALKING", e.ToolActive = "TOOL_ACTIVE", e))(ye || {}), k = /* @__PURE__ */ ((e) => (e.ChatAnswer = "chat/answer", e.ChatPartial = "chat/partial", e.ChatAudioTranscribed = "chat/audio-transcribed", e.StreamDone = "stream/done", e.StreamStarted = "stream/started", e.StreamFailed = "stream/error", e.StreamReady = "stream/ready", e.StreamInterrupt = "stream/interrupt", e.StreamVideoCreated = "stream-video/started", e.StreamVideoDone = "stream-video/done", e.StreamVideoError = "stream-video/error", e.StreamVideoRejected = "stream-video/rejected", e.ToolCallStarted = "tool-call/started", e.ToolCallDone = "tool-call/done", e.ToolCallError = "tool-call/error", e.TurnStarted = "turn/started", e.TurnEnded = "turn/ended", e))(k || {}), je = /* @__PURE__ */ ((e) => (e.Started = "tool-call/started", e.Done = "tool-call/done", e.Error = "tool-call/error", e))(je || {}), kt = /* @__PURE__ */ ((e) => (e.Presentation = "did.presentation", e))(kt || {}), I = /* @__PURE__ */ ((e) => (e.New = "new", e.Fail = "fail", e.Connected = "connected", e.Connecting = "connecting", e.Closed = "closed", e.Completed = "completed", e.Disconnecting = "disconnecting", e.Disconnected = "disconnected", e))(I || {}), H = /* @__PURE__ */ ((e) => (e.Legacy = "legacy", e.Fluent = "fluent", e))(H || {}), ge = /* @__PURE__ */ ((e) => (e.Ok = "ok", e.UnknownError = "unknown_error", e.NetworkIssue = "network_issue", e.MessageLimit = "message_limit", e.TimeLimit = "time_limit", e.Inactivity = "inactivity", e.EndedByAgent = "ended_by_agent", e))(ge || {}), Fe = /* @__PURE__ */ ((e) => (e.Livekit = "livekit", e))(Fe || {}), Tt = /* @__PURE__ */ ((e) => (e.Amazon = "amazon", e.AzureOpenAi = "azure-openai", e.Microsoft = "microsoft", e.Elevenlabs = "elevenlabs", e.Cartesia = "cartesia", e))(Tt || {}), _t = /* @__PURE__ */ ((e) => (e.Public = "public", e.Premium = "premium", e.Private = "private", e.ExternalPrivate = "external-private", e))(_t || {});
|
|
5
5
|
const Jn = (...e) => {
|
|
6
6
|
}, ft = (e) => new Promise((t) => setTimeout(t, e)), Z = (e = 16) => {
|
|
7
7
|
const t = new Uint8Array(e);
|
|
@@ -531,7 +531,7 @@ function nt(e) {
|
|
|
531
531
|
function be(e) {
|
|
532
532
|
return e instanceof q ? e.toJson() : { kind: "UnknownError", message: qt(e) || "UnknownError" };
|
|
533
533
|
}
|
|
534
|
-
const Zt = "3.0.0-staging.
|
|
534
|
+
const Zt = "3.0.0-staging.424", en = "https://api-js.mixpanel.com/track/?verbose=1&ip=1", St = 50, Q = [];
|
|
535
535
|
let xe = !1;
|
|
536
536
|
async function Ct(e) {
|
|
537
537
|
const t = await fetch(en, {
|
|
@@ -692,10 +692,10 @@ function dn(e) {
|
|
|
692
692
|
return cn[e.close_reason] ?? e.close_reason;
|
|
693
693
|
}
|
|
694
694
|
const un = [
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
], at = [
|
|
695
|
+
k.StreamVideoDone,
|
|
696
|
+
k.StreamVideoError,
|
|
697
|
+
k.StreamVideoRejected
|
|
698
|
+
], at = [k.StreamFailed, k.StreamVideoError, k.StreamVideoRejected];
|
|
699
699
|
function it(e) {
|
|
700
700
|
if (e.answer !== void 0)
|
|
701
701
|
return e.answer;
|
|
@@ -769,7 +769,7 @@ function mn(e, t, r, a, o) {
|
|
|
769
769
|
onMessage: (d, h) => {
|
|
770
770
|
var f, g, l;
|
|
771
771
|
if ("content" in h) {
|
|
772
|
-
const p = d ===
|
|
772
|
+
const p = d === k.ChatAnswer ? F.Answer : d === k.ChatAudioTranscribed ? F.Transcribe : d;
|
|
773
773
|
fn(
|
|
774
774
|
p,
|
|
775
775
|
h,
|
|
@@ -784,7 +784,7 @@ function mn(e, t, r, a, o) {
|
|
|
784
784
|
mode: t.chatMode
|
|
785
785
|
});
|
|
786
786
|
} else {
|
|
787
|
-
const p =
|
|
787
|
+
const p = k;
|
|
788
788
|
if (d = d, d === p.StreamVideoCreated) {
|
|
789
789
|
const D = tt(h, a, { mode: t.chatMode });
|
|
790
790
|
if (e.linkTrack("agent-video", D, p.StreamVideoCreated, ["start"]), h.sentiment) {
|
|
@@ -845,7 +845,7 @@ function gn(e, t, r, a) {
|
|
|
845
845
|
};
|
|
846
846
|
},
|
|
847
847
|
close(s, i) {
|
|
848
|
-
return o.delete(`/streams/${s}`, { session_id: i });
|
|
848
|
+
return o.delete(`/streams/${s}`, { session_id: i }, { skipErrorHandler: !0 });
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
851
|
}
|
|
@@ -1122,7 +1122,7 @@ function ot(e) {
|
|
|
1122
1122
|
return I.New;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const kn = (e) => (t) => {
|
|
1126
1126
|
const [r, a = ""] = t.split(/:(.+)/);
|
|
1127
1127
|
try {
|
|
1128
1128
|
const o = JSON.parse(a);
|
|
@@ -1131,7 +1131,7 @@ const Tn = (e) => (t) => {
|
|
|
1131
1131
|
return e("Failed to parse data channel message, returning data as string", { subject: r, rawData: a, error: o }), { subject: r, data: a };
|
|
1132
1132
|
}
|
|
1133
1133
|
};
|
|
1134
|
-
function
|
|
1134
|
+
function Tn({
|
|
1135
1135
|
statsSignal: e,
|
|
1136
1136
|
dataChannelSignal: t,
|
|
1137
1137
|
onVideoStateChange: r,
|
|
@@ -1159,7 +1159,7 @@ function ct({
|
|
|
1159
1159
|
report: s,
|
|
1160
1160
|
log: i
|
|
1161
1161
|
}) {
|
|
1162
|
-
o === H.Legacy ?
|
|
1162
|
+
o === H.Legacy ? Tn({ statsSignal: e, dataChannelSignal: t, onVideoStateChange: r, report: s, log: i }) : o === H.Fluent && _n({
|
|
1163
1163
|
statsSignal: e,
|
|
1164
1164
|
dataChannelSignal: t,
|
|
1165
1165
|
onVideoStateChange: r,
|
|
@@ -1170,7 +1170,7 @@ function ct({
|
|
|
1170
1170
|
}
|
|
1171
1171
|
async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee, analytics: i }, u) {
|
|
1172
1172
|
var le;
|
|
1173
|
-
const n = hn(r, "WebRTCStreamingManager"), d =
|
|
1173
|
+
const n = hn(r, "WebRTCStreamingManager"), d = kn(n);
|
|
1174
1174
|
let h = !1, f = !1, g = C.Stop, l = C.Stop;
|
|
1175
1175
|
const { startConnection: p, sendStreamRequest: D, close: S, createStream: P, addIceCandidate: U } = gn(
|
|
1176
1176
|
o,
|
|
@@ -1191,7 +1191,7 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1191
1191
|
const ae = (w) => {
|
|
1192
1192
|
var v;
|
|
1193
1193
|
return (v = a.onError) == null ? void 0 : v.call(a, w, { streamId: j });
|
|
1194
|
-
},
|
|
1194
|
+
}, T = new (En())({ iceServers: re }), G = T.createDataChannel("JanusDataChannel"), B = ee ? H.Fluent : H.Legacy;
|
|
1195
1195
|
i.enrich({
|
|
1196
1196
|
"stream-type": B
|
|
1197
1197
|
});
|
|
@@ -1199,7 +1199,7 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1199
1199
|
var w;
|
|
1200
1200
|
h = !0, f && (n("CALLBACK: onConnectionStateChange(Connected)"), (w = a.onConnectionStateChange) == null || w.call(a, I.Connected));
|
|
1201
1201
|
}, Y = In(
|
|
1202
|
-
() =>
|
|
1202
|
+
() => T.getStats(),
|
|
1203
1203
|
ve,
|
|
1204
1204
|
ie,
|
|
1205
1205
|
(w, v) => ct({
|
|
@@ -1216,7 +1216,7 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1216
1216
|
return (v = a.onConnectivityStateChange) == null ? void 0 : v.call(a, w);
|
|
1217
1217
|
}
|
|
1218
1218
|
);
|
|
1219
|
-
Y.start(),
|
|
1219
|
+
Y.start(), T.onicecandidate = (w) => {
|
|
1220
1220
|
n("peerConnection.onicecandidate", w);
|
|
1221
1221
|
try {
|
|
1222
1222
|
w.candidate && w.candidate.sdpMid && w.candidate.sdpMLineIndex !== null ? U(
|
|
@@ -1241,11 +1241,11 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1241
1241
|
V = w, (v = a.onVideoIdChange) == null || v.call(a, w);
|
|
1242
1242
|
};
|
|
1243
1243
|
function Se(w, v) {
|
|
1244
|
-
if (w ===
|
|
1244
|
+
if (w === k.StreamStarted && typeof v == "object" && "metadata" in v) {
|
|
1245
1245
|
const c = v.metadata;
|
|
1246
1246
|
se(c.videoId);
|
|
1247
1247
|
}
|
|
1248
|
-
w ===
|
|
1248
|
+
w === k.StreamDone && se(null), g = w === k.StreamStarted ? C.Start : C.Stop, ct({
|
|
1249
1249
|
statsSignal: B === H.Legacy ? l : void 0,
|
|
1250
1250
|
dataChannelSignal: g,
|
|
1251
1251
|
onVideoStateChange: a.onVideoStateChange,
|
|
@@ -1260,25 +1260,25 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1260
1260
|
c && i.enrich({ streamMetadata: c }), (m = a.onStreamReady) == null || m.call(a);
|
|
1261
1261
|
}
|
|
1262
1262
|
const ce = {
|
|
1263
|
-
[
|
|
1264
|
-
[
|
|
1265
|
-
[
|
|
1263
|
+
[k.StreamStarted]: Se,
|
|
1264
|
+
[k.StreamDone]: Se,
|
|
1265
|
+
[k.StreamReady]: oe
|
|
1266
1266
|
};
|
|
1267
1267
|
G.onmessage = (w) => {
|
|
1268
1268
|
var m;
|
|
1269
1269
|
const { subject: v, data: c } = d(w.data);
|
|
1270
1270
|
(m = ce[v]) == null || m.call(ce, v, c);
|
|
1271
|
-
},
|
|
1271
|
+
}, T.oniceconnectionstatechange = () => {
|
|
1272
1272
|
var v;
|
|
1273
|
-
n("peerConnection.oniceconnectionstatechange => " +
|
|
1274
|
-
const w = ot(
|
|
1275
|
-
w !== I.Connected && ((v = a.onConnectionStateChange) == null || v.call(a, w, `webrtc:ice-${
|
|
1276
|
-
},
|
|
1273
|
+
n("peerConnection.oniceconnectionstatechange => " + T.iceConnectionState);
|
|
1274
|
+
const w = ot(T.iceConnectionState);
|
|
1275
|
+
w !== I.Connected && ((v = a.onConnectionStateChange) == null || v.call(a, w, `webrtc:ice-${T.iceConnectionState}`));
|
|
1276
|
+
}, T.ontrack = (w) => {
|
|
1277
1277
|
var v;
|
|
1278
1278
|
n("peerConnection.ontrack", w), n("CALLBACK: onSrcObjectReady"), (v = a.onSrcObjectReady) == null || v.call(a, w.streams[0]);
|
|
1279
|
-
}, await
|
|
1280
|
-
const de = await
|
|
1281
|
-
n("create answer OK"), await
|
|
1279
|
+
}, await T.setRemoteDescription(ne), n("set remote description OK");
|
|
1280
|
+
const de = await T.createAnswer();
|
|
1281
|
+
n("create answer OK"), await T.setLocalDescription(de), n("set local description OK"), await p(j, de, N, u), n("start connection OK");
|
|
1282
1282
|
async function ue(w, v) {
|
|
1283
1283
|
if (!h || G.readyState !== "open") {
|
|
1284
1284
|
n("Data channel is not ready for sending messages"), ae(new pt("Data channel is not ready for sending messages"));
|
|
@@ -1304,17 +1304,16 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1304
1304
|
async disconnect() {
|
|
1305
1305
|
var w;
|
|
1306
1306
|
if (j) {
|
|
1307
|
-
const v = ot(
|
|
1308
|
-
if (
|
|
1307
|
+
const v = ot(T.iceConnectionState);
|
|
1308
|
+
if (T) {
|
|
1309
1309
|
if (v === I.New) {
|
|
1310
1310
|
Y.stop();
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
|
-
|
|
1313
|
+
T.close(), T.oniceconnectionstatechange = null, T.onnegotiationneeded = null, T.onicecandidate = null, T.ontrack = null;
|
|
1314
1314
|
}
|
|
1315
1315
|
try {
|
|
1316
|
-
v === I.Connected && await S(j, N)
|
|
1317
|
-
});
|
|
1316
|
+
v === I.Connected && await S(j, N);
|
|
1318
1317
|
} catch (c) {
|
|
1319
1318
|
n("Error on close stream connection", c);
|
|
1320
1319
|
}
|
|
@@ -1337,7 +1336,7 @@ async function An(e, t, { debug: r = !1, callbacks: a, auth: o, baseURL: s = Ee,
|
|
|
1337
1336
|
if (!we || B !== H.Fluent || !V || !h || G.readyState !== "open")
|
|
1338
1337
|
return !1;
|
|
1339
1338
|
const v = {
|
|
1340
|
-
type:
|
|
1339
|
+
type: k.StreamInterrupt,
|
|
1341
1340
|
videoId: V,
|
|
1342
1341
|
timestamp: Date.now()
|
|
1343
1342
|
};
|
|
@@ -1357,7 +1356,7 @@ async function Pn(e, t, r, a) {
|
|
|
1357
1356
|
const { version: s, ...i } = t;
|
|
1358
1357
|
switch (i.transport.provider) {
|
|
1359
1358
|
case Fe.Livekit:
|
|
1360
|
-
const { createLiveKitStreamingManager: u } = await import("./livekit-manager-
|
|
1359
|
+
const { createLiveKitStreamingManager: u } = await import("./livekit-manager-Bfdgu_0H.js");
|
|
1361
1360
|
return u(o, i, r);
|
|
1362
1361
|
default:
|
|
1363
1362
|
throw new Error(`Unsupported transport provider: ${i.transport.provider}`);
|
|
@@ -1406,7 +1405,7 @@ function Nn(e, t, r, a, o) {
|
|
|
1406
1405
|
}
|
|
1407
1406
|
function dt(e, t, r, a, o) {
|
|
1408
1407
|
e === C.Start ? r.linkTrack("agent-video", { event: "start", ...o, "stream-type": a }, "start", [
|
|
1409
|
-
|
|
1408
|
+
k.StreamVideoCreated
|
|
1410
1409
|
]) : e === C.Stop && r.linkTrack(
|
|
1411
1410
|
"agent-video",
|
|
1412
1411
|
{
|
|
@@ -1414,7 +1413,7 @@ function dt(e, t, r, a, o) {
|
|
|
1414
1413
|
"stream-type": a
|
|
1415
1414
|
},
|
|
1416
1415
|
"done",
|
|
1417
|
-
[
|
|
1416
|
+
[k.StreamVideoDone]
|
|
1418
1417
|
);
|
|
1419
1418
|
}
|
|
1420
1419
|
function On(e, t, r, a, o) {
|
|
@@ -1422,7 +1421,7 @@ function On(e, t, r, a, o) {
|
|
|
1422
1421
|
"agent-video",
|
|
1423
1422
|
{ event: "start", latency: K.get(!0), "stream-type": o },
|
|
1424
1423
|
"start",
|
|
1425
|
-
[
|
|
1424
|
+
[k.StreamVideoCreated]
|
|
1426
1425
|
) : e === C.Stop && a.linkTrack(
|
|
1427
1426
|
"agent-video",
|
|
1428
1427
|
{
|
|
@@ -1431,7 +1430,7 @@ function On(e, t, r, a, o) {
|
|
|
1431
1430
|
...r
|
|
1432
1431
|
},
|
|
1433
1432
|
"done",
|
|
1434
|
-
[
|
|
1433
|
+
[k.StreamVideoDone]
|
|
1435
1434
|
);
|
|
1436
1435
|
}
|
|
1437
1436
|
function zn(e, t, r) {
|
|
@@ -1601,7 +1600,7 @@ async function Kn(e, t) {
|
|
|
1601
1600
|
const P = Ve(S.avatar.type);
|
|
1602
1601
|
if (P && te(u))
|
|
1603
1602
|
throw new R(Le);
|
|
1604
|
-
P && import("./livekit-manager-
|
|
1603
|
+
P && import("./livekit-manager-Bfdgu_0H.js").then(({ preloadLiveKit: c }) => c()).catch(() => {
|
|
1605
1604
|
}), d.enrich(Kt(S));
|
|
1606
1605
|
const { onMessage: U, clearQueue: j } = mn(d, n, p, S, (c) => {
|
|
1607
1606
|
var m, y;
|
|
@@ -1642,7 +1641,7 @@ async function Kn(e, t) {
|
|
|
1642
1641
|
const y = !N.has(c);
|
|
1643
1642
|
N.set(c, m), y && ((E = (M = n.streamingManager) == null ? void 0 : M.registerRpcMethod) == null || E.call(M, c, ee(c)));
|
|
1644
1643
|
}
|
|
1645
|
-
function
|
|
1644
|
+
function T(c) {
|
|
1646
1645
|
var m, y;
|
|
1647
1646
|
N.delete(c), (y = (m = n.streamingManager) == null ? void 0 : m.unregisterRpcMethod) == null || y.call(m, c);
|
|
1648
1647
|
}
|
|
@@ -1660,10 +1659,10 @@ async function Kn(e, t) {
|
|
|
1660
1659
|
return B || ve(() => Y(c));
|
|
1661
1660
|
}
|
|
1662
1661
|
async function Y(c) {
|
|
1663
|
-
var J,
|
|
1662
|
+
var J, ke, Te, $;
|
|
1664
1663
|
if (X)
|
|
1665
1664
|
return;
|
|
1666
|
-
n.streamingManager && await V(), At(), (J = l.onConnectionStateChange) == null || J.call(l, I.Connecting), K.reset(), c && !a && (delete n.chat, (
|
|
1665
|
+
n.streamingManager && await V(), At(), (J = l.onConnectionStateChange) == null || J.call(l, I.Connecting), K.reset(), c && !a && (delete n.chat, (ke = l.onNewMessage) == null || ke.call(l, [...n.messages], "answer"));
|
|
1667
1666
|
const m = se(n.chatMode) ? on(
|
|
1668
1667
|
p.auth,
|
|
1669
1668
|
s,
|
|
@@ -1697,7 +1696,7 @@ async function Kn(e, t) {
|
|
|
1697
1696
|
var Ce;
|
|
1698
1697
|
throw m.then((W) => W == null ? void 0 : W.disconnect()).catch(() => {
|
|
1699
1698
|
}), await oe(L.Maintenance), (Ce = l.onConnectionStateChange) == null || Ce.call(l, I.Fail), z;
|
|
1700
|
-
}), M = (
|
|
1699
|
+
}), M = (Te = n.chat) == null ? void 0 : Te.id, [E, { streamingManager: O, chat: _ }] = await Promise.all([m, y]), b = !!_ && _.id !== M;
|
|
1701
1700
|
if (_ && b && (($ = l.onNewChat) == null || $.call(l, _.id)), n.streamingManager = O, n.socketManager = E, n.chat = _, X) {
|
|
1702
1701
|
await V();
|
|
1703
1702
|
return;
|
|
@@ -2021,7 +2020,7 @@ async function Kn(e, t) {
|
|
|
2021
2020
|
},
|
|
2022
2021
|
interrupt: re,
|
|
2023
2022
|
registerClientTool: ae,
|
|
2024
|
-
unregisterClientTool:
|
|
2023
|
+
unregisterClientTool: T
|
|
2025
2024
|
};
|
|
2026
2025
|
}
|
|
2027
2026
|
function qn(e) {
|
|
@@ -2031,12 +2030,12 @@ export {
|
|
|
2031
2030
|
ye as A,
|
|
2032
2031
|
q as B,
|
|
2033
2032
|
F as C,
|
|
2034
|
-
|
|
2033
|
+
kt as D,
|
|
2035
2034
|
ht as H,
|
|
2036
2035
|
Ie as I,
|
|
2037
2036
|
Nt as N,
|
|
2038
|
-
|
|
2039
|
-
|
|
2037
|
+
Tt as P,
|
|
2038
|
+
k as S,
|
|
2040
2039
|
je as T,
|
|
2041
2040
|
R as V,
|
|
2042
2041
|
Ot as W,
|
|
@@ -2064,4 +2063,4 @@ export {
|
|
|
2064
2063
|
Hn as v,
|
|
2065
2064
|
wt as w
|
|
2066
2065
|
};
|
|
2067
|
-
//# sourceMappingURL=index-
|
|
2066
|
+
//# sourceMappingURL=index-DevXbquF.js.map
|