@burdenoff/microfe-healthybowl 2026.831.10 → 2026.901.2
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/components/assistant/AssistantChatArea.js +125 -125
- package/dist/components/assistant/AssistantChatArea.js.map +1 -1
- package/dist/hooks/useVoiceSession.js +94 -93
- package/dist/hooks/useVoiceSession.js.map +1 -1
- package/dist/utils/assistantPrompt.js +10 -5
- package/dist/utils/assistantPrompt.js.map +1 -1
- package/dist/utils/voiceSession.js +15 -6
- package/dist/utils/voiceSession.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,27 +5,27 @@ import { gatherPageContext as m } from "../../utils/pageContext.js";
|
|
|
5
5
|
import { findAssistantLanguage as h, resolveAssistantLanguage as g } from "../../config/assistantLanguages.js";
|
|
6
6
|
import { isTurnInFlight as _ } from "../../utils/assistantTurnState.js";
|
|
7
7
|
import { parseToolActivity as v } from "./AssistantToolActivity.js";
|
|
8
|
-
import { getOrganizationId as
|
|
9
|
-
import { buildPromptParts as
|
|
8
|
+
import { getOrganizationId as y, getWorkspaceId as ee } from "../../utils/assistantContext.js";
|
|
9
|
+
import { buildPromptParts as te, buildPromptWithAttachments as ne, countInlineImageCandidates as re, countInlinedImageParts as ie, toMessageAttachment as ae } from "../../utils/assistantAttachments.js";
|
|
10
10
|
import { AssistantMessageList as b } from "./AssistantMessageList.js";
|
|
11
11
|
import { AssistantApiCallsConsentDialog as x } from "./AssistantApiCallsConsentDialog.js";
|
|
12
12
|
import { ASSISTANT_MODES as S } from "../../types/assistant.js";
|
|
13
13
|
import { AssistantEmptyState as C } from "./AssistantEmptyState.js";
|
|
14
|
-
import { AssistantComposer as
|
|
15
|
-
import { AssistantVoiceSession as
|
|
16
|
-
import { useVoiceSession as
|
|
17
|
-
import { useAssistantApiAccess as
|
|
18
|
-
import { isQuotaExhaustedError as
|
|
19
|
-
import { dispatchAssistantQuotaExhausted as
|
|
20
|
-
import { buildPromptForMode as
|
|
21
|
-
import { isMultimodalBodyRejection as
|
|
22
|
-
import { pollDelayMs as
|
|
23
|
-
import { useCallback as
|
|
24
|
-
import { useI18n as
|
|
25
|
-
import { jsx as
|
|
26
|
-
import { useGatewayClient as
|
|
27
|
-
import { useAuthToken as
|
|
28
|
-
import { getAssistantMedia as
|
|
14
|
+
import { AssistantComposer as w } from "./composer/AssistantComposer.js";
|
|
15
|
+
import { AssistantVoiceSession as oe } from "./voice/AssistantVoiceSession.js";
|
|
16
|
+
import { useVoiceSession as se } from "../../hooks/useVoiceSession.js";
|
|
17
|
+
import { useAssistantApiAccess as ce } from "../../hooks/useAssistantApiAccess.js";
|
|
18
|
+
import { isQuotaExhaustedError as le } from "../../utils/quotaUtils.js";
|
|
19
|
+
import { dispatchAssistantQuotaExhausted as ue, notifyAiCreditsUpdated as de } from "../../utils/aiCredits.js";
|
|
20
|
+
import { buildPromptForMode as fe } from "../../utils/assistantPrompt.js";
|
|
21
|
+
import { isMultimodalBodyRejection as pe, isRecoverableAssistantError as me } from "../../utils/assistantTransportErrors.js";
|
|
22
|
+
import { pollDelayMs as he } from "../../utils/assistantPollSchedule.js";
|
|
23
|
+
import { useCallback as T, useEffect as E, useMemo as D, useRef as ge, useState as _e } from "react";
|
|
24
|
+
import { useI18n as ve } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
25
|
+
import { jsx as O, jsxs as ye } from "react/jsx-runtime";
|
|
26
|
+
import { useGatewayClient as be } from "@burdenoff/fe-libs/shared/graphql";
|
|
27
|
+
import { useAuthToken as xe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
28
|
+
import { getAssistantMedia as Se } from "@burdenoff/fe-libs/shared/assistant";
|
|
29
29
|
//#region src/components/assistant/AssistantChatArea.tsx
|
|
30
30
|
var Ce = {
|
|
31
31
|
general: 18e4,
|
|
@@ -57,7 +57,7 @@ function De(e, t) {
|
|
|
57
57
|
content: "Thinking...",
|
|
58
58
|
done: !1
|
|
59
59
|
};
|
|
60
|
-
let r = n[n.length - 1], i = A(r.parts), a =
|
|
60
|
+
let r = n[n.length - 1], i = A(r.parts), a = Se(r.parts), o = j(r.parts);
|
|
61
61
|
return {
|
|
62
62
|
content: [
|
|
63
63
|
i,
|
|
@@ -76,21 +76,21 @@ function Oe(e) {
|
|
|
76
76
|
default: return "";
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
var M = ({ visible:
|
|
80
|
-
let A = t(), j =
|
|
81
|
-
|
|
79
|
+
var M = ({ visible: Se = !0 }) => {
|
|
80
|
+
let A = t(), j = be("workspace"), { getAccessToken: M, getWorkspaceToken: ke, userId: Ae } = xe(), { locale: N } = ve(), P = e((e) => e.assistantLanguage), je = D(() => g(P, N).english, [P, N]), Me = h(P) !== null, Ne = D(() => g(P, N).code, [P, N]), { conversations: Pe, activeConversationId: F, mode: I, processingByConversationId: Fe, setMode: L, setConversationMode: R, setActiveConversation: Ie, createConversation: z, addMessage: B, updateMessage: Le, patchMessage: V, setConversationProcessing: H, clearConversationProcessing: Re, setBackendSessionId: ze, clearBackendSessionId: U, setSandbox: W, clearSandbox: Be, acknowledgeApiCalls: Ve } = e(), G = Pe.find((e) => e.id === F)?.messages ?? [], K = F ? Fe[F] : void 0, q = _(K?.status), He = q ? K?.messageId ?? null : null, Ue = K?.status === "error" ? K.messageId : null, { canUseApiCalls: J, loading: We } = ce(y()), Ge = D(() => S.filter((e) => !e.requiresAdmin || J), [J]), [Ke, qe] = _e(null), Je = ge({}), Ye = ge(/* @__PURE__ */ new Set());
|
|
81
|
+
E(() => {
|
|
82
82
|
if (We) return;
|
|
83
|
-
let e = S.find((e) => e.id ===
|
|
84
|
-
(!e || e.requiresAdmin && !J) &&
|
|
83
|
+
let e = S.find((e) => e.id === I);
|
|
84
|
+
(!e || e.requiresAdmin && !J) && I !== "assistant" && L("assistant");
|
|
85
85
|
}, [
|
|
86
|
-
|
|
86
|
+
I,
|
|
87
87
|
J,
|
|
88
88
|
We,
|
|
89
|
-
|
|
89
|
+
L
|
|
90
90
|
]);
|
|
91
|
-
let Y =
|
|
91
|
+
let Y = T((e, t, n, r) => {
|
|
92
92
|
H(e, n, t, null), r ? Le(e, t, r) : Le(e, t, Oe(n));
|
|
93
|
-
}, [H, Le]), Xe =
|
|
93
|
+
}, [H, Le]), Xe = T(async (t, n, a, s, c) => {
|
|
94
94
|
let u = e.getState().sandboxesByMode[a]?.sandboxId ?? null, d = async (e) => {
|
|
95
95
|
try {
|
|
96
96
|
return await p(j, e, s, c, 3e5, (e) => Y(t, n, "provisioning", e)), await f(j, e, s, c, 9e4, (e) => Y(t, n, "connecting", e)), !0;
|
|
@@ -126,140 +126,140 @@ var M = ({ visible: O = !0 }) => {
|
|
|
126
126
|
ze,
|
|
127
127
|
W,
|
|
128
128
|
Y
|
|
129
|
-
]), X =
|
|
130
|
-
let
|
|
131
|
-
if (
|
|
132
|
-
let
|
|
133
|
-
if (
|
|
134
|
-
Je.current[
|
|
135
|
-
let
|
|
129
|
+
]), X = T(async (t, r = [], i = {}) => {
|
|
130
|
+
let o = e.getState(), l = o.activeConversationId ?? F;
|
|
131
|
+
if (l && (_(o.processingByConversationId[l]?.status) || Ye.current.has(l))) return;
|
|
132
|
+
let f = o.mode, p = F, h = p ? e.getState().conversations.find((e) => e.id === p) : void 0;
|
|
133
|
+
if (p ? h && h.mode !== f && (h.messages.length > 0 || h.backendSessionId) ? p = z(void 0, f) : h && h.mode !== f && R(p, f) : p = z(void 0, f), !p) return;
|
|
134
|
+
Je.current[p] = r;
|
|
135
|
+
let g = ee(), v = {
|
|
136
136
|
accessToken: M(),
|
|
137
137
|
workspaceToken: ke(),
|
|
138
138
|
userId: Ae,
|
|
139
|
-
organizationId:
|
|
140
|
-
},
|
|
139
|
+
organizationId: y()
|
|
140
|
+
}, b = {
|
|
141
141
|
id: Te(),
|
|
142
142
|
role: "user",
|
|
143
143
|
content: t,
|
|
144
144
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
145
|
-
metadata: r.length ? { attachments: r.map(
|
|
145
|
+
metadata: r.length ? { attachments: r.map(ae) } : void 0
|
|
146
146
|
};
|
|
147
|
-
|
|
148
|
-
let
|
|
149
|
-
|
|
150
|
-
id:
|
|
147
|
+
B(p, b);
|
|
148
|
+
let x = Te();
|
|
149
|
+
B(p, {
|
|
150
|
+
id: x,
|
|
151
151
|
role: "assistant",
|
|
152
152
|
content: "",
|
|
153
153
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
154
|
-
metadata: { lang:
|
|
155
|
-
}), H(
|
|
156
|
-
let
|
|
157
|
-
V(
|
|
154
|
+
metadata: { lang: Ne }
|
|
155
|
+
}), H(p, "provisioning", x, null);
|
|
156
|
+
let S = (e, t, n, r, i = Ne) => {
|
|
157
|
+
V(p, x, {
|
|
158
158
|
content: Ee(e),
|
|
159
159
|
metadata: {
|
|
160
160
|
lang: i,
|
|
161
161
|
...t?.length ? { artifacts: t } : {},
|
|
162
|
-
...t?.length || n || r ? { mode:
|
|
162
|
+
...t?.length || n || r ? { mode: f } : {},
|
|
163
163
|
...n ? { sessionId: n } : {},
|
|
164
164
|
...r ? { sandboxId: r } : {}
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
|
-
},
|
|
168
|
-
let
|
|
167
|
+
}, C = async (e = 1) => {
|
|
168
|
+
let o = !1;
|
|
169
169
|
try {
|
|
170
|
-
await n(j,
|
|
170
|
+
await n(j, g, v);
|
|
171
171
|
} catch (e) {
|
|
172
|
-
if (
|
|
173
|
-
|
|
172
|
+
if (le(e)) {
|
|
173
|
+
ue("ai-credits"), S("You've run out of AI credits for this billing cycle. Upgrade your plan to keep chatting.", void 0, void 0, void 0, "en"), H(p, "error", x, null);
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
console.warn("[assistant] AI-credit pre-flight check failed with a non-quota error; proceeding — gateway @usage(checkQuota) still enforces the real budget downstream", e);
|
|
177
177
|
}
|
|
178
178
|
try {
|
|
179
|
-
let { sandboxId: e, sessionId: n } = await Xe(
|
|
180
|
-
Y(
|
|
181
|
-
let
|
|
182
|
-
|
|
179
|
+
let { sandboxId: e, sessionId: n } = await Xe(p, x, f, g, v), l = (await c(j, e, g, n, v, 50).catch(() => [])).reduce((e, t) => Math.max(e, k(t)), 0);
|
|
180
|
+
Y(p, x, "streaming", "Thinking...");
|
|
181
|
+
let h = fe(f, ne(t, r), je, Me, i.dictated === !0), _ = te(h, r), y = ie(_), ee = y > 0, ae = m();
|
|
182
|
+
o = re(r) > y;
|
|
183
183
|
try {
|
|
184
|
-
await d(j, e,
|
|
184
|
+
await d(j, e, g, n, h, f, ae, v, _);
|
|
185
185
|
} catch (t) {
|
|
186
|
-
if (!_ || !
|
|
187
|
-
await d(j, e,
|
|
186
|
+
if (!_ || !pe(t)) throw t;
|
|
187
|
+
await d(j, e, g, n, h, f, ae, v, void 0), o ||= ee;
|
|
188
188
|
}
|
|
189
|
-
let
|
|
190
|
-
for (; Date.now() <
|
|
191
|
-
if (!
|
|
192
|
-
let se =
|
|
193
|
-
if (
|
|
194
|
-
...
|
|
195
|
-
content: `${
|
|
196
|
-
}),
|
|
197
|
-
...
|
|
198
|
-
content: `${
|
|
199
|
-
}),
|
|
200
|
-
V(
|
|
189
|
+
let b = De([], l), C = Date.now() + (Ce[f] ?? we), w = Date.now(), oe = Date.now();
|
|
190
|
+
for (; Date.now() < C && (b = De(await c(j, e, g, n, v, 50), l), V(p, x, { content: Ee(b.content) }), !b.done);) Date.now() - w > 3e4 && (await a(j, e, g, 600, v).catch(() => void 0), w = Date.now()), await new Promise((e) => setTimeout(e, he(Date.now() - oe)));
|
|
191
|
+
if (!b.done && f !== "vibe-plugins") throw Error("Assistant response timed out while streaming progress");
|
|
192
|
+
let se = f === "vibe-plugins" ? await s(j, e, g, n, v).catch(() => []) : void 0;
|
|
193
|
+
if (b.done || (b = {
|
|
194
|
+
...b,
|
|
195
|
+
content: `${b.content}\n\n_Still building in the background — any artifacts below will finish shortly. Re-open this conversation to pick up the completed plugin._`
|
|
196
|
+
}), o && (b = {
|
|
197
|
+
...b,
|
|
198
|
+
content: `${b.content}\n\n${A("healthybowl.assistant.attachments.imagesNotSent", "_Your photo was too large to include with this message, so the answer above is from the text and the file link only. Try a smaller or more tightly cropped photo._")}`
|
|
199
|
+
}), S(b.content, se, n, e), b.tokens) {
|
|
200
|
+
V(p, x, { tokens: b.tokens });
|
|
201
201
|
try {
|
|
202
|
-
await u(j,
|
|
202
|
+
await u(j, g, n, b.tokens, v), de();
|
|
203
203
|
} catch {}
|
|
204
204
|
}
|
|
205
|
-
H(
|
|
205
|
+
H(p, "complete", x, null);
|
|
206
206
|
} catch (t) {
|
|
207
|
-
if (e === 1 &&
|
|
207
|
+
if (e === 1 && me(t)) return U(p), Be(f), C(2);
|
|
208
208
|
throw t;
|
|
209
209
|
}
|
|
210
|
-
},
|
|
211
|
-
Ye.current.add(
|
|
210
|
+
}, w = p;
|
|
211
|
+
Ye.current.add(w);
|
|
212
212
|
try {
|
|
213
|
-
if (!
|
|
214
|
-
await
|
|
213
|
+
if (!g) throw Error("Assistant backend is unavailable without an active workspace context.");
|
|
214
|
+
await C();
|
|
215
215
|
} catch (e) {
|
|
216
|
-
if (
|
|
217
|
-
|
|
216
|
+
if (le(e)) {
|
|
217
|
+
ue("sandbox"), S("You've reached your sandbox limit on the current plan. Upgrade to start the AI assistant.", void 0, void 0, void 0, "en"), H(p, "error", x, null);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
let t = e instanceof Error ? e.message : "Something went wrong";
|
|
221
|
-
H(
|
|
221
|
+
H(p, "error", x, t), V(p, x, {
|
|
222
222
|
content: `Sorry, an error occurred: ${t}. Please try again.`,
|
|
223
223
|
metadata: { lang: "en" }
|
|
224
224
|
});
|
|
225
225
|
} finally {
|
|
226
|
-
Ye.current.delete(
|
|
226
|
+
Ye.current.delete(w);
|
|
227
227
|
}
|
|
228
228
|
}, [
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
F,
|
|
230
|
+
B,
|
|
231
231
|
j,
|
|
232
232
|
U,
|
|
233
233
|
Be,
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
Pe,
|
|
235
|
+
z,
|
|
236
236
|
Xe,
|
|
237
237
|
M,
|
|
238
238
|
ke,
|
|
239
239
|
V,
|
|
240
240
|
Me,
|
|
241
|
-
|
|
241
|
+
Ne,
|
|
242
242
|
je,
|
|
243
243
|
ze,
|
|
244
|
-
|
|
244
|
+
R,
|
|
245
245
|
H,
|
|
246
246
|
A,
|
|
247
247
|
Y,
|
|
248
248
|
Ae
|
|
249
|
-
]), Ze =
|
|
249
|
+
]), Ze = T((e) => {
|
|
250
250
|
X(e);
|
|
251
|
-
}, [X]), Qe =
|
|
252
|
-
let e = [...G].reverse().find((e) => e.role === "user"), t =
|
|
251
|
+
}, [X]), Qe = T(() => {
|
|
252
|
+
let e = [...G].reverse().find((e) => e.role === "user"), t = F ? Je.current[F] ?? [] : [];
|
|
253
253
|
e && X(e.content, t);
|
|
254
254
|
}, [
|
|
255
255
|
G,
|
|
256
256
|
X,
|
|
257
|
-
|
|
258
|
-
]), Z =
|
|
259
|
-
|
|
257
|
+
F
|
|
258
|
+
]), Z = ge(X);
|
|
259
|
+
E(() => {
|
|
260
260
|
Z.current = X;
|
|
261
261
|
}, [X]);
|
|
262
|
-
let $e =
|
|
262
|
+
let $e = D(() => {
|
|
263
263
|
if (q) return null;
|
|
264
264
|
for (let e = G.length - 1; e >= 0; --e) {
|
|
265
265
|
let t = G[e];
|
|
@@ -271,20 +271,20 @@ var M = ({ visible: O = !0 }) => {
|
|
|
271
271
|
} : null;
|
|
272
272
|
}
|
|
273
273
|
return null;
|
|
274
|
-
}, [G, q]), et =
|
|
274
|
+
}, [G, q]), et = D(() => G.filter((e) => e.role === "user" || e.role === "assistant").slice(-6).map((e) => ({
|
|
275
275
|
id: e.id,
|
|
276
276
|
role: e.role,
|
|
277
277
|
text: v(e.content).text.trim()
|
|
278
|
-
})).filter((e) => e.text.length > 0), [G]), Q =
|
|
279
|
-
onSubmit:
|
|
280
|
-
Z.current(e);
|
|
278
|
+
})).filter((e) => e.text.length > 0), [G]), Q = se({
|
|
279
|
+
onSubmit: T((e) => {
|
|
280
|
+
Z.current(e, [], { dictated: !0 });
|
|
281
281
|
}, []),
|
|
282
282
|
latestReply: $e,
|
|
283
283
|
language: g(P, N).tag
|
|
284
284
|
});
|
|
285
|
-
|
|
286
|
-
!
|
|
287
|
-
}, [
|
|
285
|
+
E(() => {
|
|
286
|
+
!Se && Q.active && Q.end();
|
|
287
|
+
}, [Se, Q]), E(() => {
|
|
288
288
|
let t = e.getState().consumePendingPrompt();
|
|
289
289
|
return t && Z.current(t), e.subscribe((t, n) => {
|
|
290
290
|
if (t.pendingPrompt && t.pendingPrompt !== n.pendingPrompt) {
|
|
@@ -293,65 +293,65 @@ var M = ({ visible: O = !0 }) => {
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
}, []);
|
|
296
|
-
let $ =
|
|
297
|
-
let n =
|
|
296
|
+
let $ = T((t) => {
|
|
297
|
+
let n = F ? e.getState().conversations.find((e) => e.id === F) : void 0;
|
|
298
298
|
if (n && (n.messages.length > 0 || n.backendSessionId)) {
|
|
299
299
|
if (n.mode !== t) {
|
|
300
300
|
let n = e.getState().conversations.find((n) => n.mode === t && n.messages.length === 0 && !n.backendSessionId && !e.getState().processingByConversationId[n.id]);
|
|
301
|
-
n ?
|
|
301
|
+
n ? Ie(n.id) : z(void 0, t);
|
|
302
302
|
}
|
|
303
|
-
} else
|
|
304
|
-
|
|
303
|
+
} else F && R(F, t);
|
|
304
|
+
L(t);
|
|
305
305
|
}, [
|
|
306
|
-
|
|
307
|
-
B,
|
|
308
|
-
Fe,
|
|
306
|
+
F,
|
|
309
307
|
z,
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
Ie,
|
|
309
|
+
R,
|
|
310
|
+
L
|
|
311
|
+
]), tt = T((t) => {
|
|
312
312
|
if (S.find((e) => e.id === t)?.writeCapable && !e.getState().apiCallsAcknowledged) {
|
|
313
313
|
qe(t);
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
$(t);
|
|
317
|
-
}, [$]), nt =
|
|
317
|
+
}, [$]), nt = T(() => {
|
|
318
318
|
let e = Ke;
|
|
319
319
|
qe(null), Ve(), e && $(e);
|
|
320
320
|
}, [
|
|
321
321
|
Ke,
|
|
322
322
|
Ve,
|
|
323
323
|
$
|
|
324
|
-
]), rt =
|
|
324
|
+
]), rt = T(() => {
|
|
325
325
|
qe(null);
|
|
326
326
|
}, []);
|
|
327
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ ye("div", {
|
|
328
328
|
className: "relative flex flex-1 flex-col overflow-hidden",
|
|
329
329
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ ye("div", {
|
|
331
331
|
className: "contents",
|
|
332
332
|
inert: Q.active || void 0,
|
|
333
|
-
children: [G.length === 0 ? /* @__PURE__ */
|
|
334
|
-
mode:
|
|
333
|
+
children: [G.length === 0 ? /* @__PURE__ */ O(C, {
|
|
334
|
+
mode: I,
|
|
335
335
|
onSuggestionClick: Ze
|
|
336
|
-
}) : /* @__PURE__ */
|
|
336
|
+
}) : /* @__PURE__ */ O("div", {
|
|
337
337
|
className: "flex min-h-0 flex-1 flex-col",
|
|
338
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ O(b, {
|
|
339
339
|
messages: G,
|
|
340
340
|
streamingMessageId: He,
|
|
341
341
|
failedMessageId: Ue,
|
|
342
342
|
onRetry: Qe
|
|
343
343
|
})
|
|
344
|
-
}), /* @__PURE__ */
|
|
345
|
-
onStartVoiceSession: Q.available &&
|
|
344
|
+
}), /* @__PURE__ */ O(w, {
|
|
345
|
+
onStartVoiceSession: Q.available && I !== "api-calls" ? Q.start : void 0,
|
|
346
346
|
onSend: (e, t) => void X(e, t),
|
|
347
347
|
disabled: q,
|
|
348
|
-
placeholder:
|
|
349
|
-
mode:
|
|
348
|
+
placeholder: I === "api-calls" ? A("healthybowl.assistant.chatArea.placeholderActions", "What would you like me to do?") : A("healthybowl.assistant.chatArea.placeholderGeneral", "Ask HealthyBowl anything…"),
|
|
349
|
+
mode: I,
|
|
350
350
|
availableModes: Ge,
|
|
351
351
|
onModeChange: tt
|
|
352
352
|
})]
|
|
353
353
|
}),
|
|
354
|
-
Q.active && /* @__PURE__ */
|
|
354
|
+
Q.active && /* @__PURE__ */ O(oe, {
|
|
355
355
|
session: Q.session,
|
|
356
356
|
notice: Q.notice,
|
|
357
357
|
turns: et,
|
|
@@ -360,7 +360,7 @@ var M = ({ visible: O = !0 }) => {
|
|
|
360
360
|
onToggleMute: Q.toggleMute,
|
|
361
361
|
onEnd: Q.end
|
|
362
362
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ O(x, {
|
|
364
364
|
open: Ke !== null,
|
|
365
365
|
onConfirm: nt,
|
|
366
366
|
onCancel: rt
|