@burdenoff/fe-libs 2026.1001.1 → 2026.1001.3
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/connections/api.d.ts.map +1 -1
- package/dist/connections/api.js +4 -3
- package/dist/connections/oauthPopup.d.ts.map +1 -1
- package/dist/connections/oauthPopup.js +8 -9
- package/dist/shared/assistant/conversationDeleteCommand.d.ts +31 -0
- package/dist/shared/assistant/conversationDeleteCommand.d.ts.map +1 -0
- package/dist/shared/assistant/conversationDeleteCommand.js +14 -0
- package/dist/shared/assistant/history/historyControls.d.ts +9 -0
- package/dist/shared/assistant/history/historyControls.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyControls.js +7 -1
- package/dist/shared/assistant/history/historyList.d.ts +10 -0
- package/dist/shared/assistant/history/historyList.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyList.js +33 -28
- package/dist/shared/assistant/history/useHistoryRowControls.d.ts +13 -0
- package/dist/shared/assistant/history/useHistoryRowControls.d.ts.map +1 -0
- package/dist/shared/assistant/history/useHistoryRowControls.js +24 -0
- package/dist/shared/assistant/i18nManifest.d.ts +36 -0
- package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
- package/dist/shared/assistant/i18nManifest.js +36 -0
- package/dist/shared/assistant/index.d.ts +6 -0
- package/dist/shared/assistant/index.d.ts.map +1 -1
- package/dist/shared/assistant/localUiCommands.d.ts +8 -0
- package/dist/shared/assistant/localUiCommands.d.ts.map +1 -1
- package/dist/shared/assistant/localUiCommands.js +20 -19
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AIAssistantPanel.js +67 -66
- package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantChatArea.js +854 -809
- package/dist/shared/assistant/ui/AssistantConversationFilters.d.ts +12 -0
- package/dist/shared/assistant/ui/AssistantConversationFilters.d.ts.map +1 -0
- package/dist/shared/assistant/ui/AssistantConversationFilters.js +92 -0
- package/dist/shared/assistant/ui/AssistantConversationList.d.ts +9 -0
- package/dist/shared/assistant/ui/AssistantConversationList.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantConversationList.js +314 -214
- package/dist/shared/assistant/ui/AssistantDeleteConversationDialog.d.ts +59 -0
- package/dist/shared/assistant/ui/AssistantDeleteConversationDialog.d.ts.map +1 -0
- package/dist/shared/assistant/ui/AssistantDeleteConversationDialog.js +84 -0
- package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts +18 -0
- package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantHistoryNotices.js +76 -29
- package/dist/shared/assistant/ui/conversationDelete.d.ts +18 -0
- package/dist/shared/assistant/ui/conversationDelete.d.ts.map +1 -0
- package/dist/shared/assistant/ui/conversationDelete.js +16 -0
- package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts +32 -0
- package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts.map +1 -0
- package/dist/shared/assistant/ui/conversationDeleteDialog.js +54 -0
- package/dist/shared/assistant/ui/useVoiceSession.d.ts +5 -0
- package/dist/shared/assistant/ui/useVoiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/ui/useVoiceSession.js +129 -121
- package/dist/shared/assistant/voice/voiceSession.d.ts +10 -0
- package/dist/shared/assistant/voice/voiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/voice/voiceSession.js +6 -0
- package/dist/shared-assistant.js +170 -164
- package/package.json +1 -1
|
@@ -2,156 +2,162 @@ import { useVoiceInput as e } from "../voice/useVoiceInput.js";
|
|
|
2
2
|
import { INITIAL_SESSION as t, INTERRUPT_MAX_MS as ee, NOTHING_HEARD as n, SILENCE_SUBMIT_MS as te, advanceHeardClock as ne, isCapturing as r, isSubmittable as re, planListeningHold as ie, planReplyConsumption as ae, planVoiceAnnouncement as oe, spokenSoFar as i, voiceSessionReducer as se } from "../voice/voiceSession.js";
|
|
3
3
|
import { turnClockMs as a } from "../turnTimeline.js";
|
|
4
4
|
import { useAssistantSpeech as ce } from "./AssistantSpeechProvider.js";
|
|
5
|
-
import { useCallback as o, useEffect as s, useLayoutEffect as
|
|
5
|
+
import { useCallback as o, useEffect as s, useLayoutEffect as le, useMemo as ue, useReducer as de, useRef as c, useState as l } from "react";
|
|
6
6
|
//#region src/shared/assistant/ui/useVoiceSession.ts
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}, [
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
}, []),
|
|
7
|
+
var fe = 4e3, pe = 2500, me = 5e3, he = 12e3, ge = "data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQAAAAA=";
|
|
8
|
+
function u({ onSubmit: u, latestReply: d, language: _e }) {
|
|
9
|
+
let f = c(null), [p, m] = de(o((e, t) => se(e, t, f.current), []), t), h = ce(), { setSessionSpeaking: g, setSessionMicOpen: _, speakingMessageId: v, stop: y } = h, b = c(h.toggle), x = h.toggle;
|
|
10
|
+
le(() => {
|
|
11
|
+
b.current = x;
|
|
12
|
+
}, [x]);
|
|
13
|
+
let S = c(null), C = c({}), w = c(n), T = c(null), E = c(!1), [D, O] = l(null), [k, A] = l(!1), [j, M] = l(!1), N = c(p);
|
|
14
|
+
N.current = p;
|
|
15
|
+
let P = c([]), F = c(null), I = c(!1), L = o(() => {
|
|
16
|
+
P.current = [], F.current = null, I.current = !1;
|
|
17
|
+
}, []), R = o(() => {
|
|
18
18
|
for (;;) {
|
|
19
|
-
let e =
|
|
19
|
+
let e = P.current.shift();
|
|
20
20
|
if (!e) return !1;
|
|
21
21
|
if (!(e.stillWanted && !e.stillWanted())) {
|
|
22
|
-
|
|
22
|
+
F.current = e, f.current = f.current ? `${f.current} ${e.text}` : e.text;
|
|
23
23
|
try {
|
|
24
|
-
|
|
24
|
+
b.current(e.id, e.text, e.lang);
|
|
25
25
|
} catch {
|
|
26
|
-
|
|
26
|
+
F.current = null;
|
|
27
27
|
continue;
|
|
28
28
|
}
|
|
29
29
|
return !0;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
}, []),
|
|
32
|
+
}, []), z = c(!1), B = o((e) => {
|
|
33
33
|
let t = ie({
|
|
34
34
|
requested: e,
|
|
35
|
-
held:
|
|
36
|
-
muted:
|
|
35
|
+
held: z.current,
|
|
36
|
+
muted: N.current.muted
|
|
37
37
|
});
|
|
38
|
-
|
|
38
|
+
z.current = t.held, t.mute !== null && m({
|
|
39
39
|
type: "mute",
|
|
40
40
|
muted: t.mute
|
|
41
41
|
});
|
|
42
|
+
}, []), V = o((e) => {
|
|
43
|
+
let t = oe(N.current);
|
|
44
|
+
t !== "drop" && (F.current?.id === e.id || P.current.some((t) => t.id === e.id) || (P.current.push(e), t === "start" && !I.current && (I.current = !0, m({ type: "announce" }))));
|
|
42
45
|
}, []), H = o((e) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}, []), U = l(f);
|
|
46
|
-
U.current = f, s(() => {
|
|
47
|
-
if (m.phase === "speaking") {
|
|
48
|
-
p.current = f?.text ?? null;
|
|
46
|
+
if (N.current.phase !== "thinking") {
|
|
47
|
+
V(e);
|
|
49
48
|
return;
|
|
50
49
|
}
|
|
51
|
-
|
|
50
|
+
P.current.push(e), I.current = !0, m({ type: "answered-locally" });
|
|
51
|
+
}, [V]), U = c(d);
|
|
52
|
+
U.current = d, s(() => {
|
|
53
|
+
if (p.phase === "speaking") {
|
|
54
|
+
f.current = d?.text ?? null;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
if (f.current === null) return;
|
|
52
58
|
let e = setTimeout(() => {
|
|
53
|
-
|
|
54
|
-
},
|
|
59
|
+
f.current = null;
|
|
60
|
+
}, pe);
|
|
55
61
|
return () => clearTimeout(e);
|
|
56
|
-
}, [
|
|
62
|
+
}, [p.phase, d]);
|
|
57
63
|
let W = o((e, t) => {
|
|
58
|
-
|
|
64
|
+
m({
|
|
59
65
|
type: "speech",
|
|
60
66
|
transcript: e,
|
|
61
67
|
final: t
|
|
62
68
|
});
|
|
63
|
-
}, []), G =
|
|
64
|
-
|
|
65
|
-
}, [
|
|
69
|
+
}, []), G = c(0), K = o(() => {
|
|
70
|
+
L(), y(), G.current = Date.now(), A(!0), m({ type: "interrupt" });
|
|
71
|
+
}, [y, L]), q = e({
|
|
66
72
|
onFinalize: o((e) => W(e, !0), [W]),
|
|
67
|
-
language:
|
|
73
|
+
language: _e
|
|
68
74
|
});
|
|
69
75
|
s(() => {
|
|
70
76
|
q.interim && W(q.interim, !1);
|
|
71
77
|
}, [q.interim, W]), s(() => {
|
|
72
|
-
if (
|
|
73
|
-
let e = setTimeout(() =>
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
speechEnded:
|
|
78
|
+
if (S.current && clearTimeout(S.current), M(!1), w.current = ne(w.current, p, a()), p.phase !== "listening" || p.muted || !re(i(p))) return;
|
|
79
|
+
let e = setTimeout(() => M(!0), 800), t = a();
|
|
80
|
+
return S.current = setTimeout(() => {
|
|
81
|
+
C.current = {
|
|
82
|
+
speechEnded: w.current.at ?? t,
|
|
77
83
|
graceStarted: t,
|
|
78
84
|
graceEnded: a()
|
|
79
|
-
},
|
|
85
|
+
}, m({ type: "silence" });
|
|
80
86
|
}, te), () => {
|
|
81
|
-
clearTimeout(e),
|
|
87
|
+
clearTimeout(e), S.current && clearTimeout(S.current);
|
|
82
88
|
};
|
|
83
|
-
}, [
|
|
84
|
-
if (!
|
|
85
|
-
let e = Date.now() - G.current, t = q.isListening ? Math.max(0, 500 - e) : Math.max(0, ee - e), n = setTimeout(() =>
|
|
89
|
+
}, [p]), s(() => {
|
|
90
|
+
if (!k) return;
|
|
91
|
+
let e = Date.now() - G.current, t = q.isListening ? Math.max(0, 500 - e) : Math.max(0, ee - e), n = setTimeout(() => A(!1), t);
|
|
86
92
|
return () => clearTimeout(n);
|
|
87
|
-
}, [
|
|
88
|
-
let J =
|
|
89
|
-
|
|
90
|
-
if (
|
|
91
|
-
|
|
93
|
+
}, [k, q.isListening]);
|
|
94
|
+
let J = c("");
|
|
95
|
+
p.phase === "listening" && (J.current = i(p)), s(() => {
|
|
96
|
+
if (p.phase !== "thinking") return;
|
|
97
|
+
_(!1), L();
|
|
92
98
|
let e = J.current.trim();
|
|
93
|
-
e &&
|
|
94
|
-
}, [
|
|
95
|
-
let e = ae(
|
|
96
|
-
e.claim && (
|
|
99
|
+
e && u(e, Y.current ?? `vs-orphan-${Date.now().toString(36)}`, C.current), C.current = {}, w.current = n;
|
|
100
|
+
}, [p.phase]), s(() => {
|
|
101
|
+
let e = ae(d?.id, p.phase, T.current);
|
|
102
|
+
e.claim && (T.current = d?.id ?? null, e.advance && d && m({
|
|
97
103
|
type: "reply",
|
|
98
|
-
text:
|
|
104
|
+
text: d.text
|
|
99
105
|
}));
|
|
100
|
-
}, [
|
|
101
|
-
let e =
|
|
102
|
-
|
|
103
|
-
}, [
|
|
104
|
-
|
|
105
|
-
}, [
|
|
106
|
-
if (
|
|
106
|
+
}, [d, p.phase]), s(() => {
|
|
107
|
+
let e = v !== null;
|
|
108
|
+
E.current && !e && (F.current = null, (N.current.phase !== "speaking" || !R()) && m({ type: "speech-ended" })), E.current = e;
|
|
109
|
+
}, [v, R]), s(() => {
|
|
110
|
+
p.phase !== "listening" && O((e) => e === "nothing-heard" ? null : e);
|
|
111
|
+
}, [p.phase]), s(() => {
|
|
112
|
+
if (p.phase !== "speaking" || v !== null) return;
|
|
107
113
|
let e = setTimeout(() => {
|
|
108
|
-
|
|
109
|
-
},
|
|
114
|
+
E.current || (L(), m({ type: "speech-ended" }));
|
|
115
|
+
}, fe);
|
|
110
116
|
return () => clearTimeout(e);
|
|
111
117
|
}, [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
p.phase,
|
|
119
|
+
v,
|
|
120
|
+
L
|
|
115
121
|
]), s(() => {
|
|
116
|
-
let e = r(
|
|
117
|
-
|
|
122
|
+
let e = r(p);
|
|
123
|
+
_(e), e ? q.isActive || q.start("auto") : q.isActive && q.stop();
|
|
118
124
|
}, [
|
|
119
|
-
|
|
125
|
+
p,
|
|
120
126
|
q,
|
|
121
|
-
|
|
127
|
+
_
|
|
122
128
|
]), s(() => {
|
|
123
|
-
|
|
124
|
-
}, [
|
|
125
|
-
q.error === "not-allowed" || q.error === "audio-capture" ?
|
|
129
|
+
p.phase !== "speaking" || !I.current || (I.current = !1, R() || m({ type: "speech-ended" }));
|
|
130
|
+
}, [p.phase, R]), s(() => {
|
|
131
|
+
q.error === "not-allowed" || q.error === "audio-capture" ? m({
|
|
126
132
|
type: "fail",
|
|
127
133
|
error: "mic-denied"
|
|
128
|
-
}) : q.error === "language-not-supported" ?
|
|
134
|
+
}) : q.error === "language-not-supported" ? m({
|
|
129
135
|
type: "fail",
|
|
130
136
|
error: "no-speech-support"
|
|
131
|
-
}) : q.error === "network" ?
|
|
137
|
+
}) : q.error === "network" ? O("network") : q.error === "unknown" && O("recognition-failed");
|
|
132
138
|
}, [q.error]), s(() => {
|
|
133
|
-
q.error !== null || !q.isListening ||
|
|
139
|
+
q.error !== null || !q.isListening || O((e) => e === "network" || e === "recognition-failed" ? null : e);
|
|
134
140
|
}, [q.error, q.isListening]), s(() => {
|
|
135
|
-
if (q.isListening &&
|
|
136
|
-
let e = setTimeout(() =>
|
|
141
|
+
if (q.isListening && O((e) => e === "not-capturing" ? null : e), !r(p) || q.isListening) return;
|
|
142
|
+
let e = setTimeout(() => O("not-capturing"), me);
|
|
137
143
|
return () => clearTimeout(e);
|
|
138
|
-
}, [
|
|
139
|
-
if (
|
|
140
|
-
let e = setTimeout(() =>
|
|
144
|
+
}, [p, q.isListening]), s(() => {
|
|
145
|
+
if (p.phase !== "listening" || p.muted || !q.isListening || i(p) !== "") return;
|
|
146
|
+
let e = setTimeout(() => O("nothing-heard"), he);
|
|
141
147
|
return () => clearTimeout(e);
|
|
142
|
-
}, [
|
|
143
|
-
i(
|
|
144
|
-
}, [
|
|
145
|
-
let Y =
|
|
146
|
-
if (
|
|
147
|
-
|
|
148
|
+
}, [p, q.isListening]), s(() => {
|
|
149
|
+
i(p) !== "" && O(null);
|
|
150
|
+
}, [p]);
|
|
151
|
+
let Y = c(null), X = o(() => {
|
|
152
|
+
if (A(!1), M(!1), L(), z.current = !1, !q.isSupported) {
|
|
153
|
+
m({
|
|
148
154
|
type: "fail",
|
|
149
155
|
error: "no-speech-support"
|
|
150
156
|
});
|
|
151
157
|
return;
|
|
152
158
|
}
|
|
153
|
-
if (
|
|
154
|
-
|
|
159
|
+
if (h.isBlocked) {
|
|
160
|
+
m({
|
|
155
161
|
type: "fail",
|
|
156
162
|
error: "no-voice-support"
|
|
157
163
|
});
|
|
@@ -166,63 +172,65 @@ function d({ onSubmit: d, latestReply: f, language: ge }) {
|
|
|
166
172
|
} catch {}
|
|
167
173
|
try {
|
|
168
174
|
if (typeof window < "u" && typeof window.Audio == "function") {
|
|
169
|
-
let e = new window.Audio(
|
|
175
|
+
let e = new window.Audio(ge);
|
|
170
176
|
e.volume = 0, e.play().catch(() => {});
|
|
171
177
|
}
|
|
172
178
|
} catch {}
|
|
173
|
-
|
|
179
|
+
g(!0), O(null), T.current = U.current?.id ?? null, Y.current = `vs-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`, m({ type: "start" });
|
|
174
180
|
}, [
|
|
175
181
|
q.isSupported,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
182
|
+
h.isBlocked,
|
|
183
|
+
g,
|
|
184
|
+
L
|
|
179
185
|
]), Z = o(() => {
|
|
180
|
-
|
|
186
|
+
A(!1), M(!1), L(), z.current = !1, Y.current = null, m({ type: "end" }), y(), g(!1);
|
|
181
187
|
}, [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
y,
|
|
189
|
+
g,
|
|
190
|
+
L
|
|
185
191
|
]), Q = o((e) => Y.current === e, []), $ = o(() => {
|
|
186
|
-
|
|
192
|
+
m({
|
|
187
193
|
type: "mute",
|
|
188
|
-
muted: !
|
|
194
|
+
muted: !N.current.muted
|
|
189
195
|
});
|
|
190
196
|
}, []);
|
|
191
197
|
return s(() => () => {
|
|
192
|
-
|
|
193
|
-
}, [
|
|
194
|
-
session:
|
|
195
|
-
notice:
|
|
196
|
-
spokenChunks:
|
|
198
|
+
g(!1), _(!1);
|
|
199
|
+
}, [g, _]), ue(() => ({
|
|
200
|
+
session: p,
|
|
201
|
+
notice: D,
|
|
202
|
+
spokenChunks: h.spokenChunks,
|
|
197
203
|
capturing: q.isListening,
|
|
198
|
-
active:
|
|
199
|
-
interrupting:
|
|
200
|
-
awaitingEndpoint:
|
|
201
|
-
available: q.isSupported && !
|
|
204
|
+
active: p.phase !== "idle" && (p.phase !== "ended" || p.error !== null),
|
|
205
|
+
interrupting: k,
|
|
206
|
+
awaitingEndpoint: j,
|
|
207
|
+
available: q.isSupported && !h.isBlocked,
|
|
202
208
|
start: X,
|
|
203
209
|
end: Z,
|
|
204
210
|
isCurrentSession: Q,
|
|
205
211
|
toggleMute: $,
|
|
206
212
|
interrupt: K,
|
|
207
|
-
announce:
|
|
208
|
-
holdListening:
|
|
213
|
+
announce: V,
|
|
214
|
+
holdListening: B,
|
|
215
|
+
answerLocally: H
|
|
209
216
|
}), [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
217
|
+
p,
|
|
218
|
+
D,
|
|
219
|
+
k,
|
|
220
|
+
j,
|
|
214
221
|
q.isListening,
|
|
215
222
|
q.isSupported,
|
|
216
|
-
|
|
217
|
-
|
|
223
|
+
h.isBlocked,
|
|
224
|
+
h.spokenChunks,
|
|
218
225
|
X,
|
|
219
226
|
Z,
|
|
220
227
|
Q,
|
|
221
228
|
$,
|
|
222
229
|
K,
|
|
223
|
-
|
|
224
|
-
|
|
230
|
+
V,
|
|
231
|
+
B,
|
|
232
|
+
H
|
|
225
233
|
]);
|
|
226
234
|
}
|
|
227
235
|
//#endregion
|
|
228
|
-
export {
|
|
236
|
+
export { u as useVoiceSession };
|
|
@@ -87,6 +87,16 @@ export type VoiceSessionEvent =
|
|
|
87
87
|
*/
|
|
88
88
|
| {
|
|
89
89
|
type: 'announce';
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* ★ BOFF-8159: the turn just submitted was answered by the PANEL, with no
|
|
93
|
+
* reply message — "delete this conversation" opens a dialog and records
|
|
94
|
+
* nothing. Only a `thinking` moves, to `speaking` for the panel's own line
|
|
95
|
+
* said in the reply's place; without it the session waited in `thinking`
|
|
96
|
+
* for a reply that never comes, and never listened again.
|
|
97
|
+
*/
|
|
98
|
+
| {
|
|
99
|
+
type: 'answered-locally';
|
|
90
100
|
} | {
|
|
91
101
|
type: 'fail';
|
|
92
102
|
error: VoiceSessionError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voiceSession.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/voice/voiceSession.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;AAEzF,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,iBAAiB,CAAC;IACzB,8DAA8D;IAC9D,KAAK,EAAE,OAAO,CAAC;IACf,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACjC;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,YAAY,CAAC;AAExF,MAAM,MAAM,iBAAiB;AAC3B,u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,GAAG,UAAU,GAAG,UAAU,CAatG"}
|
|
@@ -106,6 +106,12 @@ function m(e, t, n = null) {
|
|
|
106
106
|
pending: "",
|
|
107
107
|
interim: ""
|
|
108
108
|
} : e;
|
|
109
|
+
case "answered-locally": return e.phase === "thinking" ? {
|
|
110
|
+
...e,
|
|
111
|
+
phase: "speaking",
|
|
112
|
+
pending: "",
|
|
113
|
+
interim: ""
|
|
114
|
+
} : e;
|
|
109
115
|
case "announce": return e.phase === "listening" && a(e) === "" ? {
|
|
110
116
|
...e,
|
|
111
117
|
phase: "speaking",
|