@epam/ai-dial-chat-hooks 1.3.0-dev.288 → 1.3.0-dev.289
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/api-error/api-error.d.ts +2 -0
- package/api-error/api-error.d.ts.map +1 -1
- package/api-error/api-error.js +31 -23
- package/catalog/map-skill-to-catalog-item.js +19 -19
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts +2 -4
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.d.ts.map +1 -1
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +94 -112
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts +41 -0
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.d.ts.map +1 -0
- package/catalog/useCatalogItemDelete/useCatalogItemDelete.js +37 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -0
- package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
- package/catalog/usePublishFolders/usePublishFolders.js +32 -29
- package/catalog.js +11 -10
- package/conversation/conversation-title-stream.d.ts +33 -0
- package/conversation/conversation-title-stream.d.ts.map +1 -0
- package/conversation/conversation-title-stream.js +103 -0
- package/conversation/useConversationExport/useConversationExport.js +46 -46
- package/conversation/useConversationHandlers/useConversationHandlers.js +39 -39
- package/conversation/useConversationStream/useConversationStream.js +93 -93
- package/conversation.js +5 -4
- package/entry-points/catalog.d.ts +1 -0
- package/entry-points/catalog.d.ts.map +1 -1
- package/entry-points/conversation.d.ts +1 -0
- package/entry-points/conversation.d.ts.map +1 -1
- package/files/dial-file-manager-copy-move.util.js +16 -16
- package/files/dial-file-manager-mapping.util.js +17 -17
- package/files/useDialFileListing/useDialFileListing.js +113 -113
- package/files/useDialFileMutations/useDialFileMutations.js +47 -47
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +213 -211
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts +7 -1
- package/oauth/useToolsetLogin/useToolsetLogin.d.ts.map +1 -1
- package/oauth/useToolsetLogin/useToolsetLogin.js +40 -21
- package/offline-credentials/useOfflineCredentialsGate/useOfflineCredentialsGate.js +10 -10
- package/package.json +18 -18
- package/project/project-mapping.js +12 -12
- package/project/use-project-actions.js +12 -12
- package/project/use-project-watch.js +12 -12
- package/prompt/prompt.d.ts +11 -0
- package/prompt/prompt.d.ts.map +1 -1
- package/prompt/prompt.js +7 -3
- package/scheduled-task/use-scheduled-task-runs.js +13 -13
- package/usage/map-user-usage-to-model-limits.js +21 -21
- package/useShareLink/useShareLink.js +18 -18
- package/utils.js +21 -21
|
@@ -4,34 +4,34 @@ import { createMessagePair as n } from "./message-factory.js";
|
|
|
4
4
|
import { hasActiveToolConfig as r, shouldRerunGenerationOnEdit as i, withToolConfiguration as a } from "./message-utils.js";
|
|
5
5
|
import { getStarterDisplayText as o, getStarterSubmitText as s } from "./starter-option.js";
|
|
6
6
|
import { getConversationPath as c } from "../useConversationStream/conversation-path.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { SendCompletionDtoModeEnum as l } from "@epam/ai-dial-chat-api-client";
|
|
8
|
+
import { MessageRole as u, generateUUID as d } from "@epam/ai-dial-chat-shared";
|
|
9
|
+
import { useCallback as f, useState as p } from "react";
|
|
10
10
|
//#region src/conversation/useConversationHandlers/useConversationHandlers.ts
|
|
11
11
|
var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startStream: v, state: { setConversation: y, conversationRef: b }, filesApi: x, conversationsApi: S, rateApi: C, resolveModelId: w, onConversationDeleted: T, showNetworkError: E, toolConfigurationValue: D }) => {
|
|
12
|
-
let [O, k] =
|
|
12
|
+
let [O, k] = p(null), [A, j] = p(/* @__PURE__ */ new Set()), [M, N] = p(null), { handleUploadAttachment: P } = e({
|
|
13
13
|
filesApi: x,
|
|
14
14
|
bucket: g,
|
|
15
15
|
onNetworkError: E
|
|
16
|
-
}), F =
|
|
16
|
+
}), F = f(async (e, i, a) => {
|
|
17
17
|
if (!h || !m) return;
|
|
18
18
|
let o = t(i), s = r(D), c = o?.length || s || a?.length ? {
|
|
19
19
|
...o?.length ? { attachments: o } : {},
|
|
20
20
|
...s ? { configuration_value: D } : {},
|
|
21
21
|
...a?.length ? { skills: a } : {}
|
|
22
|
-
} : void 0,
|
|
22
|
+
} : void 0, u = w(), { userMessage: f, assistantMessage: p } = n(e, c, u);
|
|
23
23
|
y((e) => {
|
|
24
24
|
if (!e) return e;
|
|
25
25
|
let t = {
|
|
26
26
|
...e,
|
|
27
27
|
messages: [
|
|
28
28
|
...e.messages,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
f,
|
|
30
|
+
p
|
|
31
31
|
]
|
|
32
32
|
};
|
|
33
33
|
return b.current = t, t;
|
|
34
|
-
}), v(h, e, m.messages.length + 1,
|
|
34
|
+
}), v(h, e, m.messages.length + 1, u, c, d(), l.Append);
|
|
35
35
|
}, [
|
|
36
36
|
m,
|
|
37
37
|
h,
|
|
@@ -40,11 +40,11 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
40
40
|
y,
|
|
41
41
|
v,
|
|
42
42
|
D
|
|
43
|
-
]), I =
|
|
43
|
+
]), I = f((e) => {
|
|
44
44
|
let t = b.current;
|
|
45
|
-
if (_ || !h || !t || e === -1 || t.messages[e]?.role !==
|
|
45
|
+
if (_ || !h || !t || e === -1 || t.messages[e]?.role !== u.Assistant) return;
|
|
46
46
|
let n = t.messages[e - 1];
|
|
47
|
-
if (!n || n.role !==
|
|
47
|
+
if (!n || n.role !== u.User) return;
|
|
48
48
|
let r = w(), i = a(n.custom_content, D), o = {
|
|
49
49
|
...t.messages[e],
|
|
50
50
|
content: "",
|
|
@@ -64,7 +64,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
64
64
|
o
|
|
65
65
|
]
|
|
66
66
|
};
|
|
67
|
-
b.current = s, y(s), j((t) => new Set([...t].filter((t) => t < e))), v(h, n.content, e, r, i,
|
|
67
|
+
b.current = s, y(s), j((t) => new Set([...t].filter((t) => t < e))), v(h, n.content, e, r, i, d(), l.Regenerate);
|
|
68
68
|
}, [
|
|
69
69
|
h,
|
|
70
70
|
b,
|
|
@@ -73,16 +73,16 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
73
73
|
y,
|
|
74
74
|
v,
|
|
75
75
|
D
|
|
76
|
-
]), L =
|
|
76
|
+
]), L = f((e) => {
|
|
77
77
|
_ || k(e);
|
|
78
|
-
}, [_]), R =
|
|
78
|
+
}, [_]), R = f(() => {
|
|
79
79
|
if (!h || O == null) return;
|
|
80
80
|
let e = O;
|
|
81
81
|
k(null);
|
|
82
82
|
let t = b.current;
|
|
83
83
|
if (!t || e === -1) return;
|
|
84
|
-
let n = c(h), r = t.messages[e + 1]?.role ===
|
|
85
|
-
if (r.length === 0 || r.length === 1 && r[0].role ===
|
|
84
|
+
let n = c(h), r = t.messages[e + 1]?.role === u.Assistant ? t.messages.filter((t, n) => n !== e && n !== e + 1) : t.messages.filter((t, n) => n !== e);
|
|
85
|
+
if (r.length === 0 || r.length === 1 && r[0].role === u.Status) {
|
|
86
86
|
S.deleteConversation({ path: n }), T?.();
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
@@ -101,7 +101,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
101
101
|
T,
|
|
102
102
|
O,
|
|
103
103
|
y
|
|
104
|
-
]), z =
|
|
104
|
+
]), z = f(async (e, t, n) => {
|
|
105
105
|
let r = b.current;
|
|
106
106
|
if (!h || !r) return !1;
|
|
107
107
|
let i = r.messages[e];
|
|
@@ -148,12 +148,12 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
148
148
|
S,
|
|
149
149
|
C,
|
|
150
150
|
y
|
|
151
|
-
]), B =
|
|
151
|
+
]), B = f((e, t, i) => {
|
|
152
152
|
let a = b.current;
|
|
153
153
|
if (!h || !a) return;
|
|
154
|
-
let c = o(e, i),
|
|
155
|
-
...
|
|
156
|
-
...
|
|
154
|
+
let c = o(e, i), u = s(e, i), f = t ? { [t]: e.const } : void 0, p = r(D), m = f || p ? {
|
|
155
|
+
...f ? { form_value: f } : {},
|
|
156
|
+
...p ? { configuration_value: D } : {}
|
|
157
157
|
} : void 0, g = w(), { userMessage: _, assistantMessage: x } = n(c, m, g);
|
|
158
158
|
y((e) => {
|
|
159
159
|
if (!e) return e;
|
|
@@ -166,7 +166,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
166
166
|
]
|
|
167
167
|
};
|
|
168
168
|
return b.current = t, t;
|
|
169
|
-
}), v(h,
|
|
169
|
+
}), v(h, u, a.messages.length + 1, g, m, d(), l.Append);
|
|
170
170
|
}, [
|
|
171
171
|
h,
|
|
172
172
|
b,
|
|
@@ -182,7 +182,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
182
182
|
handleDeleteMessage: L,
|
|
183
183
|
handleConfirmDelete: R,
|
|
184
184
|
handleRateMessage: z,
|
|
185
|
-
handleButtonSelect:
|
|
185
|
+
handleButtonSelect: f((e, t, n) => {
|
|
186
186
|
let r = b.current;
|
|
187
187
|
h && r && !_ && (e["dial:widgetOptions"].confirmationMessage ? N({
|
|
188
188
|
starter: e,
|
|
@@ -195,52 +195,52 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
195
195
|
_,
|
|
196
196
|
B
|
|
197
197
|
]),
|
|
198
|
-
handleConfirmStarter:
|
|
198
|
+
handleConfirmStarter: f(() => {
|
|
199
199
|
if (!M) return;
|
|
200
200
|
let { starter: e, propertyKey: t, description: n } = M;
|
|
201
201
|
N(null), B(e, t, n);
|
|
202
202
|
}, [M, B]),
|
|
203
|
-
handleStartEdit:
|
|
203
|
+
handleStartEdit: f((e) => {
|
|
204
204
|
j((t) => /* @__PURE__ */ new Set([...t, e]));
|
|
205
205
|
}, []),
|
|
206
|
-
handleCancelEdit:
|
|
206
|
+
handleCancelEdit: f((e) => {
|
|
207
207
|
j((t) => {
|
|
208
208
|
let n = new Set(t);
|
|
209
209
|
return n.delete(e), n;
|
|
210
210
|
});
|
|
211
211
|
}, []),
|
|
212
|
-
handleEditMessage:
|
|
212
|
+
handleEditMessage: f(async (e, n, r, o, s) => {
|
|
213
213
|
let c = b.current;
|
|
214
214
|
if (_ || !h || !c) return;
|
|
215
|
-
let
|
|
216
|
-
if (
|
|
217
|
-
let
|
|
218
|
-
if (!i(c.messages,
|
|
215
|
+
let f = e;
|
|
216
|
+
if (f === -1 || c.messages[f].role !== u.User) return;
|
|
217
|
+
let p = c.messages[f];
|
|
218
|
+
if (!i(c.messages, f, n, r, o, s)) {
|
|
219
219
|
j((e) => {
|
|
220
220
|
let t = new Set(e);
|
|
221
|
-
return t.delete(
|
|
221
|
+
return t.delete(f), t;
|
|
222
222
|
});
|
|
223
223
|
return;
|
|
224
224
|
}
|
|
225
|
-
let m = t(o), g = new Set(r.map((e) => e.id)), x = [...(
|
|
225
|
+
let m = t(o), g = new Set(r.map((e) => e.id)), x = [...(p.custom_content?.attachments ?? []).filter((e) => {
|
|
226
226
|
let t = e.url ?? e.data ?? e.title;
|
|
227
227
|
return g.has(t);
|
|
228
|
-
}), ...m ?? []], { attachments: S, skills: C, ...T } =
|
|
228
|
+
}), ...m ?? []], { attachments: S, skills: C, ...T } = p.custom_content ?? {}, E = s ?? C, O;
|
|
229
229
|
O = x.length > 0 || E?.length ? {
|
|
230
230
|
...T,
|
|
231
231
|
...x.length > 0 ? { attachments: x } : {},
|
|
232
232
|
...E?.length ? { skills: E } : {}
|
|
233
233
|
} : Object.keys(T).length > 0 ? T : void 0, O = a(O, D);
|
|
234
234
|
let k = {
|
|
235
|
-
...
|
|
235
|
+
...p,
|
|
236
236
|
content: n,
|
|
237
237
|
custom_content: O
|
|
238
238
|
}, A = Date.now(), M = {
|
|
239
|
-
role:
|
|
239
|
+
role: u.Assistant,
|
|
240
240
|
content: "",
|
|
241
241
|
timestamp: new Date(A).toISOString()
|
|
242
242
|
}, N = [
|
|
243
|
-
...c.messages.slice(0,
|
|
243
|
+
...c.messages.slice(0, f),
|
|
244
244
|
k,
|
|
245
245
|
M
|
|
246
246
|
], P = {
|
|
@@ -249,7 +249,7 @@ var m = ({ conversation: m, conversationId: h, bucket: g, isStreaming: _, startS
|
|
|
249
249
|
};
|
|
250
250
|
b.current = P, y(P);
|
|
251
251
|
let F = w();
|
|
252
|
-
v(h, n, N.length - 1, F, O,
|
|
252
|
+
v(h, n, N.length - 1, F, O, d(), l.Edit), j(/* @__PURE__ */ new Set());
|
|
253
253
|
}, [
|
|
254
254
|
h,
|
|
255
255
|
b,
|
|
@@ -5,89 +5,89 @@ import { applyChunkToMessages as l } from "./apply-chunk.js";
|
|
|
5
5
|
import { restoreBufferedMessage as u } from "./buffered-generation.js";
|
|
6
6
|
import { createResumeIfAwaitingGeneration as ee, fetchConversationForRecovery as te, findPendingBackgroundMessageIndex as d, hasGeneratedPayload as ne, isAwaitingGenerationResume as f } from "./generation-resume.js";
|
|
7
7
|
import { createFrameScheduler as re } from "./frame-scheduler.js";
|
|
8
|
-
import {
|
|
8
|
+
import { SendCompletionDtoModeEnum as ie } from "@epam/ai-dial-chat-api-client";
|
|
9
|
+
import { MessageRole as ae, generateUUID as oe } from "@epam/ai-dial-chat-shared";
|
|
9
10
|
import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
|
|
10
|
-
import { SendCompletionDtoModeEnum as oe } from "@epam/ai-dial-chat-api-client";
|
|
11
11
|
//#region src/conversation/useConversationStream/useConversationStream.ts
|
|
12
12
|
var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceof i ? n : e instanceof r ? t : e instanceof s ? e.message : "", x = (e) => {
|
|
13
13
|
if (!e) return;
|
|
14
14
|
let t = d(e);
|
|
15
15
|
return t === -1 ? void 0 : e.messages[t].backgroundGeneration?.generationId;
|
|
16
16
|
}, S = ({ conversationId: s, state: { setConversation: S, conversationRef: C }, transport: w, generation: { startGeneration: ue, completeGeneration: de }, channel: T, overlay: E, onStopError: fe, generationConflictMessage: pe = t, generationPersistenceErrorMessage: D = n, onStreamError: O, batchChunksPerFrame: k = !1 }) => {
|
|
17
|
-
let
|
|
17
|
+
let A = g(O);
|
|
18
18
|
m(() => {
|
|
19
|
-
|
|
19
|
+
A.current = O;
|
|
20
20
|
}, [O]);
|
|
21
|
-
let
|
|
21
|
+
let me = g(k);
|
|
22
22
|
m(() => {
|
|
23
|
-
|
|
23
|
+
me.current = k;
|
|
24
24
|
}, [k]);
|
|
25
|
-
let [
|
|
26
|
-
|
|
27
|
-
let [
|
|
28
|
-
m(() => (
|
|
29
|
-
|
|
25
|
+
let [j] = _(re), [M, N] = _(() => /* @__PURE__ */ new Set()), P = g(M);
|
|
26
|
+
P.current = M;
|
|
27
|
+
let [F, he] = _(() => /* @__PURE__ */ new Set()), I = g(/* @__PURE__ */ new Map()), L = g(/* @__PURE__ */ new Map()), R = g(/* @__PURE__ */ new Set()), z = g(/* @__PURE__ */ new Map()), B = g(/* @__PURE__ */ new Set()), V = g(/* @__PURE__ */ new Set()), ge = g(/* @__PURE__ */ new Map()), H = g(!0), U = g(/* @__PURE__ */ new Map()), [_e, ve] = _(U.current), W = g(/* @__PURE__ */ new Set()), [ye, be] = _(W.current);
|
|
28
|
+
m(() => (H.current = !0, () => {
|
|
29
|
+
H.current = !1;
|
|
30
30
|
}), []);
|
|
31
31
|
let G = p((e) => {
|
|
32
|
-
if (!
|
|
33
|
-
let t = new Map(
|
|
34
|
-
t.delete(e),
|
|
32
|
+
if (!U.current.has(e)) return;
|
|
33
|
+
let t = new Map(U.current);
|
|
34
|
+
t.delete(e), U.current = t, H.current && ve(t);
|
|
35
35
|
}, []), K = p((e, t, n) => {
|
|
36
|
-
if (!
|
|
37
|
-
let r = new Map(
|
|
36
|
+
if (!H.current || !n()) return;
|
|
37
|
+
let r = new Map(U.current);
|
|
38
38
|
r.set(e, {
|
|
39
39
|
retry: t,
|
|
40
40
|
isCurrent: n
|
|
41
|
-
}),
|
|
41
|
+
}), U.current = r, ve(r);
|
|
42
42
|
}, []), xe = p(async () => {
|
|
43
43
|
if (!s) return;
|
|
44
|
-
let e =
|
|
44
|
+
let e = U.current.get(c(s));
|
|
45
45
|
if (e && e.isCurrent() && !W.current.has(e)) {
|
|
46
46
|
W.current.add(e), be(new Set(W.current));
|
|
47
47
|
try {
|
|
48
48
|
await e.retry();
|
|
49
49
|
} finally {
|
|
50
|
-
W.current.delete(e),
|
|
50
|
+
W.current.delete(e), H.current && be(new Set(W.current));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}, [s]), Se = g(s);
|
|
54
|
-
m(() => (Se.current = s, () =>
|
|
55
|
-
let q = p((e) =>
|
|
56
|
-
G(e),
|
|
54
|
+
m(() => (Se.current = s, () => j.cancelAll()), [s, j]);
|
|
55
|
+
let q = p((e) => H.current && c(Se.current ?? "") === e, []), J = p((e) => {
|
|
56
|
+
G(e), N((t) => {
|
|
57
57
|
if (t.has(e)) return t;
|
|
58
58
|
let n = new Set(t);
|
|
59
59
|
return n.add(e), n;
|
|
60
60
|
});
|
|
61
61
|
}, [G]), Y = p((e) => {
|
|
62
|
-
|
|
62
|
+
N((t) => {
|
|
63
63
|
if (!t.has(e)) return t;
|
|
64
64
|
let n = new Set(t);
|
|
65
65
|
return n.delete(e), n;
|
|
66
66
|
});
|
|
67
67
|
}, []), X = p((e, t) => {
|
|
68
|
-
|
|
68
|
+
he((n) => {
|
|
69
69
|
if (n.has(e) === t) return n;
|
|
70
70
|
let r = new Set(n);
|
|
71
71
|
return t ? r.add(e) : r.delete(e), r;
|
|
72
72
|
});
|
|
73
73
|
}, []), Ce = p((e, t) => {
|
|
74
|
-
|
|
74
|
+
I.current.get(e) === t && (I.current.delete(e), X(e, !1));
|
|
75
75
|
}, [X]), we = p((e, t) => {
|
|
76
|
-
|
|
76
|
+
I.current.has(e) || (L.current.set(e, t), X(e, !0));
|
|
77
77
|
}, [X]), Te = p((e, t) => {
|
|
78
|
-
|
|
78
|
+
L.current.get(e) === t && (L.current.delete(e), I.current.has(e) || X(e, !1));
|
|
79
79
|
}, [X]), Z = h(() => ee({
|
|
80
80
|
transport: w,
|
|
81
81
|
setConversation: S,
|
|
82
82
|
conversationRef: C,
|
|
83
|
-
resumingPathsRef:
|
|
84
|
-
bufferedGenerationsRef:
|
|
83
|
+
resumingPathsRef: R,
|
|
84
|
+
bufferedGenerationsRef: z,
|
|
85
85
|
addStreamingPath: J,
|
|
86
86
|
removeStreamingPath: Y,
|
|
87
87
|
isPathDisplayed: q,
|
|
88
88
|
generationPersistenceErrorMessage: D,
|
|
89
|
-
frameScheduler: k ?
|
|
90
|
-
stoppedGenerationIdsRef:
|
|
89
|
+
frameScheduler: k ? j : void 0,
|
|
90
|
+
stoppedGenerationIdsRef: B,
|
|
91
91
|
rememberResumedGenerationId: we,
|
|
92
92
|
forgetResumedGenerationId: Te,
|
|
93
93
|
onReloadError: K,
|
|
@@ -99,43 +99,43 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
99
99
|
w,
|
|
100
100
|
D,
|
|
101
101
|
k,
|
|
102
|
-
|
|
102
|
+
j,
|
|
103
103
|
we,
|
|
104
104
|
Te,
|
|
105
105
|
K,
|
|
106
106
|
G
|
|
107
|
-
]), Ee = p((t, n, a, s, ee, re, p =
|
|
108
|
-
let h = re ??
|
|
109
|
-
|
|
107
|
+
]), Ee = p((t, n, a, s, ee, re, p = ie.Append, m = {}) => {
|
|
108
|
+
let h = re ?? oe(), g = c(t);
|
|
109
|
+
j.flush(g), R.current.delete(g), I.current.set(g, h), ge.current.set(g, h), X(g, !0);
|
|
110
110
|
let _;
|
|
111
|
-
p ===
|
|
112
|
-
let v = () =>
|
|
113
|
-
b ?
|
|
111
|
+
p === ie.Regenerate ? _ = a : p === ie.Edit && (_ = a - 1);
|
|
112
|
+
let v = () => ge.current.get(g) !== h, y = ue(g, h), b = C.current?.messages[a];
|
|
113
|
+
b ? z.current.set(g, {
|
|
114
114
|
generationId: h,
|
|
115
115
|
messageIndex: a,
|
|
116
116
|
message: b
|
|
117
|
-
}) :
|
|
117
|
+
}) : z.current.delete(g), J(g), E?.notifyGenerationStart?.(), T?.ensureConnected();
|
|
118
118
|
let x = () => {
|
|
119
119
|
v() || Y(g), Ce(g, h), de(g, h), T?.notifyGenerationSettled?.();
|
|
120
120
|
}, fe = () => {
|
|
121
121
|
if (v()) return;
|
|
122
|
-
let e =
|
|
122
|
+
let e = z.current.get(g);
|
|
123
123
|
e && e.generationId === h && (e.message = {
|
|
124
124
|
...e.message,
|
|
125
125
|
streamErrorMessage: D
|
|
126
|
-
},
|
|
126
|
+
}, A.current?.(new i()), q(g) && S((t) => {
|
|
127
127
|
if (!t || v() || !q(g)) return t;
|
|
128
128
|
let n = u(t, e);
|
|
129
129
|
return C.current = n, n;
|
|
130
130
|
}));
|
|
131
|
-
}, O =
|
|
131
|
+
}, O = z.current.get(g), k = () => H.current && !v() && z.current.get(g) === O, M = async () => {
|
|
132
132
|
if (k()) {
|
|
133
|
-
if (!q(g)) O &&
|
|
133
|
+
if (!q(g)) O && z.current.delete(g);
|
|
134
134
|
else try {
|
|
135
135
|
let n = await w.getConversation(e(t));
|
|
136
136
|
if (!k()) return;
|
|
137
137
|
if (G(g), !q(g)) {
|
|
138
|
-
O &&
|
|
138
|
+
O && z.current.delete(g);
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
if (d(n) !== -1) {
|
|
@@ -146,22 +146,22 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
146
146
|
fe();
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
|
-
O &&
|
|
149
|
+
O && z.current.delete(g), S(n), C.current = n;
|
|
150
150
|
} catch {
|
|
151
|
-
k() && K(g,
|
|
151
|
+
k() && K(g, M, k);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
},
|
|
154
|
+
}, N = {
|
|
155
155
|
signal: y.signal,
|
|
156
156
|
onChunk: (e) => {
|
|
157
157
|
if (v()) return;
|
|
158
|
-
let t =
|
|
158
|
+
let t = z.current.get(g);
|
|
159
159
|
if (t?.generationId === h) {
|
|
160
160
|
let n = l([t.message], 0, e);
|
|
161
161
|
n && (t.message = n[0]);
|
|
162
162
|
}
|
|
163
|
-
q(g) && (
|
|
164
|
-
let e =
|
|
163
|
+
q(g) && (me.current && t?.generationId === h ? j.schedule(g, () => {
|
|
164
|
+
let e = z.current.get(g);
|
|
165
165
|
if (v() || !q(g) || e?.generationId !== h) return;
|
|
166
166
|
let t = { ...e };
|
|
167
167
|
S((e) => {
|
|
@@ -171,7 +171,7 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
171
171
|
});
|
|
172
172
|
}) : S((t) => {
|
|
173
173
|
if (!t) return t;
|
|
174
|
-
let n =
|
|
174
|
+
let n = z.current.get(g), r;
|
|
175
175
|
if (n?.generationId === h) r = u(t, n);
|
|
176
176
|
else {
|
|
177
177
|
let n = l(t.messages, a, e);
|
|
@@ -185,15 +185,15 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
185
185
|
}));
|
|
186
186
|
},
|
|
187
187
|
onComplete: async () => {
|
|
188
|
-
|
|
188
|
+
j.flush(g), x(), B.current.has(h) ? B.current.delete(h) : v() || E?.notifyGenerationEnd?.(), await M();
|
|
189
189
|
},
|
|
190
190
|
onError: (e) => {
|
|
191
|
-
|
|
191
|
+
j.flush(g), A.current?.(e), e instanceof o && !v() ? V(e) : e instanceof r && m.resumeOnConflict && !v() ? U(e) : P(e);
|
|
192
192
|
}
|
|
193
|
-
},
|
|
194
|
-
let t =
|
|
195
|
-
n && !(e instanceof i) &&
|
|
196
|
-
},
|
|
193
|
+
}, P = (e) => {
|
|
194
|
+
let t = z.current.get(g), n = t?.generationId === h ? t : void 0;
|
|
195
|
+
n && !(e instanceof i) && z.current.delete(g), x(), n && w.saveConversation && e instanceof i && e.status === ce ? he(e, n, w.saveConversation.bind(w)) : F(e, n);
|
|
196
|
+
}, F = (e, t) => {
|
|
197
197
|
if (t && e instanceof i && (t.message = {
|
|
198
198
|
...t.message,
|
|
199
199
|
streamErrorMessage: D
|
|
@@ -210,13 +210,13 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
210
210
|
};
|
|
211
211
|
return C.current = i, i;
|
|
212
212
|
});
|
|
213
|
-
},
|
|
214
|
-
let a = () =>
|
|
213
|
+
}, he = async (n, r, i) => {
|
|
214
|
+
let a = () => H.current && !v() && z.current.get(g) === r;
|
|
215
215
|
try {
|
|
216
216
|
let o = await w.getConversation(e(t));
|
|
217
217
|
if (!a()) return;
|
|
218
218
|
if (r.messageIndex !== o.messages.length - 1 || !f(o)) {
|
|
219
|
-
|
|
219
|
+
F(n, r);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
let s = n.terminalMarker ? {
|
|
@@ -226,48 +226,48 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
226
226
|
...n.terminalMarker
|
|
227
227
|
}
|
|
228
228
|
} : r, c = await i(g, u(o, s));
|
|
229
|
-
if (!a() || (
|
|
229
|
+
if (!a() || (z.current.delete(g), !q(g))) return;
|
|
230
230
|
S(c), C.current = c;
|
|
231
231
|
} catch {
|
|
232
|
-
a() &&
|
|
232
|
+
a() && F(n, r);
|
|
233
233
|
}
|
|
234
|
-
},
|
|
235
|
-
x(),
|
|
236
|
-
},
|
|
237
|
-
|
|
234
|
+
}, L = () => {
|
|
235
|
+
x(), B.current.has(h) ? B.current.delete(h) : v() || E?.notifyGenerationEnd?.();
|
|
236
|
+
}, V = async (n) => {
|
|
237
|
+
R.current.add(g);
|
|
238
238
|
let r = await te(() => w.getConversation(e(t)), v);
|
|
239
|
-
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
let r = await te(() => w.getConversation(e(t)), v, (e) => e.messages.length === a && e.messages.at(-1)?.role ===
|
|
243
|
-
|
|
244
|
-
},
|
|
239
|
+
_e(r, n, !1);
|
|
240
|
+
}, U = async (n) => {
|
|
241
|
+
I.current.get(g) === h && X(g, !1), R.current.add(g);
|
|
242
|
+
let r = await te(() => w.getConversation(e(t)), v, (e) => e.messages.length === a && e.messages.at(-1)?.role === ae.User);
|
|
243
|
+
_e(r, n, !0);
|
|
244
|
+
}, _e = (e, n, r) => {
|
|
245
245
|
if (v()) {
|
|
246
246
|
x();
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
|
-
let i = e?.messages[e.messages.length - 1], o = e != null && e.messages.length - 1 === a && i?.role ===
|
|
249
|
+
let i = e?.messages[e.messages.length - 1], o = e != null && e.messages.length - 1 === a && i?.role === ae.Assistant, s = r && e != null && d(e) !== -1;
|
|
250
250
|
if (!e || !o && !s) {
|
|
251
|
-
|
|
251
|
+
R.current.delete(g), P(n);
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
|
-
let c =
|
|
254
|
+
let c = z.current.get(g), l = c?.generationId === h ? c : void 0;
|
|
255
255
|
f(e) ? Z(t, e, {
|
|
256
256
|
seedMessage: o ? l?.message : void 0,
|
|
257
257
|
skipDedupe: !0,
|
|
258
|
-
onSettled:
|
|
259
|
-
}) : (
|
|
258
|
+
onSettled: L
|
|
259
|
+
}) : (R.current.delete(g), l && z.current.delete(g), q(g) && (S(e), C.current = e), L());
|
|
260
260
|
};
|
|
261
261
|
(async () => {
|
|
262
262
|
try {
|
|
263
|
-
let e = T?.channelId ?? await T?.waitForChannel(se) ?? void 0, t =
|
|
263
|
+
let e = T?.channelId ?? await T?.waitForChannel(se) ?? void 0, t = B.current.has(h);
|
|
264
264
|
if (y.signal.aborted || v() || t) {
|
|
265
|
-
|
|
265
|
+
z.current.get(g)?.generationId === h && z.current.delete(g), v() || Y(g), Ce(g, h), de(g, h), T?.notifyGenerationSettled?.(), t ? B.current.delete(h) : v() || E?.notifyGenerationEnd?.();
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
w.streamCompletion(g, n, s,
|
|
268
|
+
w.streamCompletion(g, n, s, N, ee, h, p, _, e);
|
|
269
269
|
} catch (e) {
|
|
270
|
-
|
|
270
|
+
N.onError(e instanceof Error ? e : Error(String(e)));
|
|
271
271
|
}
|
|
272
272
|
})();
|
|
273
273
|
}, [
|
|
@@ -287,21 +287,21 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
287
287
|
Z,
|
|
288
288
|
pe,
|
|
289
289
|
D,
|
|
290
|
-
|
|
290
|
+
j,
|
|
291
291
|
K,
|
|
292
292
|
G
|
|
293
293
|
]), De = p((e, t) => {
|
|
294
|
-
let n = c(e), r =
|
|
295
|
-
return
|
|
294
|
+
let n = c(e), r = z.current.get(n);
|
|
295
|
+
return U.current.get(n)?.isCurrent() && r && t.messages.length - 1 >= r.messageIndex && t.messages[r.messageIndex].role === ae.Assistant && !f(t) ? (G(n), z.current.delete(n), t) : r ? u(t, r) : t;
|
|
296
296
|
}, [G]), Oe = p(() => {
|
|
297
297
|
if (!s) return;
|
|
298
|
-
let e = c(s), t =
|
|
299
|
-
if (!n ||
|
|
300
|
-
|
|
301
|
-
let r =
|
|
298
|
+
let e = c(s), t = I.current.get(e), n = t ?? x(C.current) ?? L.current.get(e);
|
|
299
|
+
if (!n || V.current.has(n)) return;
|
|
300
|
+
V.current.add(n), B.current.add(n), j.flush(e), E?.notifyStopGenerating?.();
|
|
301
|
+
let r = z.current.get(e)?.message.content, i = () => I.current.get(e) === n || t == null && P.current.has(e), o = async () => {
|
|
302
302
|
let e = y / b;
|
|
303
303
|
for (let t = 0; t < e; t++) {
|
|
304
|
-
if (!i() || !
|
|
304
|
+
if (!i() || !H.current) return !0;
|
|
305
305
|
await new Promise((e) => setTimeout(e, b));
|
|
306
306
|
}
|
|
307
307
|
return !i();
|
|
@@ -316,19 +316,19 @@ var se = 2e4, ce = 401, v = 404, y = 2e3, b = 100, le = (e, t, n) => e instanceo
|
|
|
316
316
|
} catch (e) {
|
|
317
317
|
let t = e instanceof Error ? e : Error(String(e));
|
|
318
318
|
if (t instanceof a && t.status === v && await o()) return;
|
|
319
|
-
|
|
319
|
+
V.current.delete(n), fe?.(t);
|
|
320
320
|
}
|
|
321
321
|
})();
|
|
322
322
|
}, [
|
|
323
323
|
s,
|
|
324
324
|
C,
|
|
325
|
-
|
|
325
|
+
j,
|
|
326
326
|
fe,
|
|
327
327
|
E,
|
|
328
328
|
w
|
|
329
329
|
]), ke = p((e, t) => {
|
|
330
|
-
|
|
331
|
-
}, [Z]), Ae = s != null &&
|
|
330
|
+
I.current.has(c(e)) || Z(e, t, { trackAttachGenerationId: !0 });
|
|
331
|
+
}, [Z]), Ae = s != null && M.has(c(s)), Q = s == null ? null : c(s), je = Q != null && (F.has(Q) || Ae && x(C.current) != null), $ = Q ? _e.get(Q) : void 0, Me = $?.isCurrent() ?? !1;
|
|
332
332
|
return {
|
|
333
333
|
hasConversationReloadError: Me,
|
|
334
334
|
isReloadingConversation: !!$ && Me && ye.has($),
|
package/conversation.js
CHANGED
|
@@ -37,7 +37,8 @@ import { useConversationDiscovery as be } from "./conversation/useConversationDi
|
|
|
37
37
|
import { EntityPreselectionOutcome as xe, EntityPreselectionSource as Se, useEntityPreselection as Ce } from "./conversation/useEntityPreselection/useEntityPreselection.js";
|
|
38
38
|
import { ClientGenerationStatus as we, createGenerationRegistry as Te } from "./conversation/generation-registry.js";
|
|
39
39
|
import { ConversationTitleRequestEnd as Ee, useConversationTitleEnrichmentController as De } from "./conversation/useConversationTitleEnrichmentController.js";
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
|
|
40
|
+
import { CONVERSATION_TITLE_STREAM_MAX_FRAME_BYTES as Oe, CONVERSATION_TITLE_STREAM_MAX_IDS as ke, CONVERSATION_TITLE_STREAM_MAX_ID_BYTES as Ae, ConversationTitleStreamProtocolError as je, createSseFrameDecoder as Me, isConversationTitleStreamUnsupported as Ne, parseConversationTitleStreamEvent as Pe, readConversationTitleStream as Fe } from "./conversation/conversation-title-stream.js";
|
|
41
|
+
import { useVisibleConversationIdsReporter as Ie } from "./conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter.js";
|
|
42
|
+
import { isTotalDeletionFailure as Le, resolveConversationPinChange as Re } from "./conversation/conversation-list.js";
|
|
43
|
+
import { useDeploymentChangeTracking as ze } from "./conversation/useDeploymentChangeTracking.js";
|
|
44
|
+
export { J as AudioTranscriptionError, Y as AudioTranscriptionErrorReason, Oe as CONVERSATION_TITLE_STREAM_MAX_FRAME_BYTES, ke as CONVERSATION_TITLE_STREAM_MAX_IDS, Ae as CONVERSATION_TITLE_STREAM_MAX_ID_BYTES, we as ClientGenerationStatus, Ee as ConversationTitleRequestEnd, je as ConversationTitleStreamProtocolError, me as DEFAULT_CHAT_SETTINGS, s as DEFAULT_GENERATION_CONFLICT_MESSAGE, c as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, l as DEFAULT_STREAM_IDLE_TIMEOUT_MS, xe as EntityPreselectionOutcome, Se as EntityPreselectionSource, u as GenerationConflictError, d as GenerationPersistenceError, f as StopCompletionError, p as StreamInterruptedError, m as StreamUpstreamError, X as UploadMimeTypePolicy, _e as applyActiveScheduledTaskRun, ue as applyChunkToMessages, Q as attachmentToDto, $ as attachmentsToDtos, e as buildAnnouncementSignature, ve as collapseScheduledTaskConversations, h as createChatStreamApi, C as createDeploymentChangedMessage, Te as createGenerationRegistry, a as createMemoryConversationDraftStore, ee as createMessagePair, Me as createSseFrameDecoder, o as createWebStorageConversationDraftStore, R as deriveConversationRowActionState, y as findDeploymentForConversationId, _ as formatAppVersion, ce as getConversationPath, U as getConversationSource, w as getEffectiveDeploymentIds, T as getFormSchemaToolSyncKey, E as getLastDeploymentId, D as getLastUserMessageToolConfiguration, O as getLatestToolConfiguration, b as getModelIdCandidatesFromConversationId, x as getModelIdFromConversationId, N as getQuickAppConversationStarters, ae as getStarterConversationText, oe as getStarterDisplayText, I as getStarterPopulateText, se as getStarterSubmitText, L as getStartersFromSchema, S as getTimeOfDayGreeting, k as getToolConfigurationFromFormSchema, ye as groupScheduledTaskConversations, te as hasActiveToolConfig, t as hasAnnouncementContent, n as hasStructuredAnnouncement, ne as isAnswerIncomplete, fe as isAwaitingGenerationResume, Ne as isConversationTitleStreamUnsupported, re as isMessageChanged, A as isMessageStreaming, Le as isTotalDeletionFailure, P as mapStages, de as mergeStages, j as messageHasStages, M as normalizeResponseFormat, Pe as parseConversationTitleStreamEvent, Fe as readConversationTitleStream, Re as resolveConversationPinChange, r as sanitizeAnnouncementHtml, i as sanitizeAnnouncementMessageHtml, v as sanitizeFooterHtml, ie as shouldRerunGenerationOnEdit, g as shouldWatchForDisplayNameUpdate, F as toStage, z as useActiveConversationSync, B as useAsyncConfirmDialog, q as useAttachmentUpload, he as useChatSettingsFormConfig, V as useConversationComposerDraft, be as useConversationDiscovery, le as useConversationHandlers, H as useConversationLookupMaps, W as useConversationPanelItems, pe as useConversationStream, De as useConversationTitleEnrichmentController, ze as useDeploymentChangeTracking, Ce as useEntityPreselection, G as useImportFilePicker, K as useMessageSelectionReply, ge as useToolsMenu, Z as useTranscribeAudio, Ie as useVisibleConversationIdsReporter };
|
|
@@ -17,6 +17,7 @@ export * from '../catalog/catalog-preferences';
|
|
|
17
17
|
export * from '../catalog/usage-limit-rows';
|
|
18
18
|
export * from '../catalog/catalog-primary-action';
|
|
19
19
|
export * from '../catalog/useCatalogEditNavigation/useCatalogEditNavigation';
|
|
20
|
+
export * from '../catalog/useCatalogItemDelete/useCatalogItemDelete';
|
|
20
21
|
export * from '../catalog/useCatalogItemDetails';
|
|
21
22
|
export * from '../catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials';
|
|
22
23
|
export * from '../catalog/application-credentials';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/entry-points/catalog.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,kCAAkC,CAAC;AACjD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oCAAoC,CAAC;AACnD,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/entry-points/catalog.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8DAA8D,CAAC;AAC7E,cAAc,sDAAsD,CAAC;AACrE,cAAc,kCAAkC,CAAC;AACjD,cAAc,sEAAsE,CAAC;AACrF,cAAc,oCAAoC,CAAC;AACnD,cAAc,gEAAgE,CAAC;AAC/E,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
|
|
@@ -38,6 +38,7 @@ export * from '../conversation/useConversationDiscovery/useConversationDiscovery
|
|
|
38
38
|
export * from '../conversation/useEntityPreselection/useEntityPreselection';
|
|
39
39
|
export * from '../conversation/generation-registry';
|
|
40
40
|
export * from '../conversation/useConversationTitleEnrichmentController';
|
|
41
|
+
export * from '../conversation/conversation-title-stream';
|
|
41
42
|
export * from '../conversation/useVisibleConversationIdsReporter/useVisibleConversationIdsReporter';
|
|
42
43
|
export * from '../conversation/conversation-list';
|
|
43
44
|
export * from '../conversation/useDeploymentChangeTracking';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/entry-points/conversation.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,uDAAuD,CAAC;AACtE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mEAAmE,CAAC;AAClF,cAAc,iDAAiD,CAAC;AAChE,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mFAAmF,CAAC;AAClG,cAAc,qEAAqE,CAAC;AACpF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,qEAAqE,CAAC;AACpF,cAAc,qEAAqE,CAAC;AACpF,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,uDAAuD,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,GACjB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,2BAA2B,GAC5B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,wDAAwD,CAAC;AAChE,cAAc,iEAAiE,CAAC;AAChF,OAAO,EACL,oBAAoB,EACpB,WAAW,GACZ,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AACrG,cAAc,6DAA6D,CAAC;AAC5E,cAAc,wDAAwD,CAAC;AACvE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mEAAmE,CAAC;AAClF,cAAc,6DAA6D,CAAC;AAE5E,cAAc,qCAAqC,CAAC;AAEpD,cAAc,0DAA0D,CAAC;AACzE,cAAc,qFAAqF,CAAC;AACpG,cAAc,mCAAmC,CAAC;AAElD,cAAc,6CAA6C,CAAC"}
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/entry-points/conversation.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,uDAAuD,CAAC;AACtE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,wCAAwC,CAAC;AACvD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mEAAmE,CAAC;AAClF,cAAc,iDAAiD,CAAC;AAChE,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mFAAmF,CAAC;AAClG,cAAc,qEAAqE,CAAC;AACpF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,qEAAqE,CAAC;AACpF,cAAc,qEAAqE,CAAC;AACpF,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC;AACxE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,uDAAuD,CAAC;AACtE,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,GACjB,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,2BAA2B,GAC5B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,wDAAwD,CAAC;AAChE,cAAc,iEAAiE,CAAC;AAChF,OAAO,EACL,oBAAoB,EACpB,WAAW,GACZ,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AACrG,cAAc,6DAA6D,CAAC;AAC5E,cAAc,wDAAwD,CAAC;AACvE,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,mEAAmE,CAAC;AAClF,cAAc,6DAA6D,CAAC;AAE5E,cAAc,qCAAqC,CAAC;AAEpD,cAAc,0DAA0D,CAAC;AACzE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qFAAqF,CAAC;AACpG,cAAc,mCAAmC,CAAC;AAElD,cAAc,6CAA6C,CAAC"}
|