@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.
@@ -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 ee, getWorkspaceId as te } from "../../utils/assistantContext.js";
9
- import { buildPromptParts as ne, buildPromptWithAttachments as re, countInlineImageCandidates as ie, countInlinedImageParts as ae, toMessageAttachment as y } from "../../utils/assistantAttachments.js";
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 oe } from "./composer/AssistantComposer.js";
15
- import { AssistantVoiceSession as se } from "./voice/AssistantVoiceSession.js";
16
- import { useVoiceSession as ce } from "../../hooks/useVoiceSession.js";
17
- import { useAssistantApiAccess as le } from "../../hooks/useAssistantApiAccess.js";
18
- import { isQuotaExhaustedError as ue } from "../../utils/quotaUtils.js";
19
- import { dispatchAssistantQuotaExhausted as de, notifyAiCreditsUpdated as fe } from "../../utils/aiCredits.js";
20
- import { buildPromptForMode as pe } from "../../utils/assistantPrompt.js";
21
- import { isMultimodalBodyRejection as me, isRecoverableAssistantError as he } from "../../utils/assistantTransportErrors.js";
22
- import { pollDelayMs as ge } from "../../utils/assistantPollSchedule.js";
23
- import { useCallback as w, useEffect as T, useMemo as E, useRef as _e, useState as ve } from "react";
24
- import { useI18n as ye } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
25
- import { jsx as D, jsxs as be } from "react/jsx-runtime";
26
- import { useGatewayClient as xe } from "@burdenoff/fe-libs/shared/graphql";
27
- import { useAuthToken as Se } from "@burdenoff/fe-libs/shared/providers/shell";
28
- import { getAssistantMedia as O } from "@burdenoff/fe-libs/shared/assistant";
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 = O(r.parts), o = j(r.parts);
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: O = !0 }) => {
80
- let A = t(), j = xe("workspace"), { getAccessToken: M, getWorkspaceToken: ke, userId: Ae } = Se(), { locale: N } = ye(), P = e((e) => e.assistantLanguage), je = E(() => g(P, N).english, [P, N]), Me = h(P) !== null, F = E(() => g(P, N).code, [P, N]), { conversations: Ne, activeConversationId: I, mode: L, processingByConversationId: Pe, setMode: R, setConversationMode: z, setActiveConversation: Fe, createConversation: B, addMessage: Ie, updateMessage: Le, patchMessage: V, setConversationProcessing: H, clearConversationProcessing: Re, setBackendSessionId: ze, clearBackendSessionId: U, setSandbox: W, clearSandbox: Be, acknowledgeApiCalls: Ve } = e(), G = Ne.find((e) => e.id === I)?.messages ?? [], K = I ? Pe[I] : void 0, q = _(K?.status), He = q ? K?.messageId ?? null : null, Ue = K?.status === "error" ? K.messageId : null, { canUseApiCalls: J, loading: We } = le(ee()), Ge = E(() => S.filter((e) => !e.requiresAdmin || J), [J]), [Ke, qe] = ve(null), Je = _e({}), Ye = _e(/* @__PURE__ */ new Set());
81
- T(() => {
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 === L);
84
- (!e || e.requiresAdmin && !J) && L !== "assistant" && R("assistant");
83
+ let e = S.find((e) => e.id === I);
84
+ (!e || e.requiresAdmin && !J) && I !== "assistant" && L("assistant");
85
85
  }, [
86
- L,
86
+ I,
87
87
  J,
88
88
  We,
89
- R
89
+ L
90
90
  ]);
91
- let Y = w((e, t, n, r) => {
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 = w(async (t, n, a, s, c) => {
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 = w(async (t, r = []) => {
130
- let i = e.getState(), o = i.activeConversationId ?? I;
131
- if (o && (_(i.processingByConversationId[o]?.status) || Ye.current.has(o))) return;
132
- let l = i.mode, f = I, p = f ? e.getState().conversations.find((e) => e.id === f) : void 0;
133
- if (f ? p && p.mode !== l && (p.messages.length > 0 || p.backendSessionId) ? f = B(void 0, l) : p && p.mode !== l && z(f, l) : f = B(void 0, l), !f) return;
134
- Je.current[f] = r;
135
- let h = te(), g = {
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: ee()
140
- }, v = {
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(y) } : void 0
145
+ metadata: r.length ? { attachments: r.map(ae) } : void 0
146
146
  };
147
- Ie(f, v);
148
- let b = Te();
149
- Ie(f, {
150
- id: b,
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: F }
155
- }), H(f, "provisioning", b, null);
156
- let x = (e, t, n, r, i = F) => {
157
- V(f, b, {
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: l } : {},
162
+ ...t?.length || n || r ? { mode: f } : {},
163
163
  ...n ? { sessionId: n } : {},
164
164
  ...r ? { sandboxId: r } : {}
165
165
  }
166
166
  });
167
- }, S = async (e = 1) => {
168
- let i = !1;
167
+ }, C = async (e = 1) => {
168
+ let o = !1;
169
169
  try {
170
- await n(j, h, g);
170
+ await n(j, g, v);
171
171
  } catch (e) {
172
- if (ue(e)) {
173
- de("ai-credits"), x("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(f, "error", b, null);
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(f, b, l, h, g), o = (await c(j, e, h, n, g, 50).catch(() => [])).reduce((e, t) => Math.max(e, k(t)), 0);
180
- Y(f, b, "streaming", "Thinking...");
181
- let p = pe(l, re(t, r), je, Me), _ = ne(p, r), v = ae(_), ee = v > 0, te = m();
182
- i = ie(r) > v;
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, h, n, p, l, te, g, _);
184
+ await d(j, e, g, n, h, f, ae, v, _);
185
185
  } catch (t) {
186
- if (!_ || !me(t)) throw t;
187
- await d(j, e, h, n, p, l, te, g, void 0), i ||= ee;
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 y = De([], o), S = Date.now() + (Ce[l] ?? we), C = Date.now(), oe = Date.now();
190
- for (; Date.now() < S && (y = De(await c(j, e, h, n, g, 50), o), V(f, b, { content: Ee(y.content) }), !y.done);) Date.now() - C > 3e4 && (await a(j, e, h, 600, g).catch(() => void 0), C = Date.now()), await new Promise((e) => setTimeout(e, ge(Date.now() - oe)));
191
- if (!y.done && l !== "vibe-plugins") throw Error("Assistant response timed out while streaming progress");
192
- let se = l === "vibe-plugins" ? await s(j, e, h, n, g).catch(() => []) : void 0;
193
- if (y.done || (y = {
194
- ...y,
195
- content: `${y.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
- }), i && (y = {
197
- ...y,
198
- content: `${y.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
- }), x(y.content, se, n, e), y.tokens) {
200
- V(f, b, { tokens: y.tokens });
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, h, n, y.tokens, g), fe();
202
+ await u(j, g, n, b.tokens, v), de();
203
203
  } catch {}
204
204
  }
205
- H(f, "complete", b, null);
205
+ H(p, "complete", x, null);
206
206
  } catch (t) {
207
- if (e === 1 && he(t)) return U(f), Be(l), S(2);
207
+ if (e === 1 && me(t)) return U(p), Be(f), C(2);
208
208
  throw t;
209
209
  }
210
- }, C = f;
211
- Ye.current.add(C);
210
+ }, w = p;
211
+ Ye.current.add(w);
212
212
  try {
213
- if (!h) throw Error("Assistant backend is unavailable without an active workspace context.");
214
- await S();
213
+ if (!g) throw Error("Assistant backend is unavailable without an active workspace context.");
214
+ await C();
215
215
  } catch (e) {
216
- if (ue(e)) {
217
- de("sandbox"), x("You've reached your sandbox limit on the current plan. Upgrade to start the AI assistant.", void 0, void 0, void 0, "en"), H(f, "error", b, null);
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(f, "error", b, t), V(f, b, {
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(C);
226
+ Ye.current.delete(w);
227
227
  }
228
228
  }, [
229
- I,
230
- Ie,
229
+ F,
230
+ B,
231
231
  j,
232
232
  U,
233
233
  Be,
234
- Ne,
235
- B,
234
+ Pe,
235
+ z,
236
236
  Xe,
237
237
  M,
238
238
  ke,
239
239
  V,
240
240
  Me,
241
- F,
241
+ Ne,
242
242
  je,
243
243
  ze,
244
- z,
244
+ R,
245
245
  H,
246
246
  A,
247
247
  Y,
248
248
  Ae
249
- ]), Ze = w((e) => {
249
+ ]), Ze = T((e) => {
250
250
  X(e);
251
- }, [X]), Qe = w(() => {
252
- let e = [...G].reverse().find((e) => e.role === "user"), t = I ? Je.current[I] ?? [] : [];
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
- I
258
- ]), Z = _e(X);
259
- T(() => {
257
+ F
258
+ ]), Z = ge(X);
259
+ E(() => {
260
260
  Z.current = X;
261
261
  }, [X]);
262
- let $e = 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 = E(() => G.filter((e) => e.role === "user" || e.role === "assistant").slice(-6).map((e) => ({
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 = ce({
279
- onSubmit: w((e) => {
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
- T(() => {
286
- !O && Q.active && Q.end();
287
- }, [O, Q]), T(() => {
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 $ = w((t) => {
297
- let n = I ? e.getState().conversations.find((e) => e.id === I) : void 0;
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 ? Fe(n.id) : B(void 0, t);
301
+ n ? Ie(n.id) : z(void 0, t);
302
302
  }
303
- } else I && z(I, t);
304
- R(t);
303
+ } else F && R(F, t);
304
+ L(t);
305
305
  }, [
306
- I,
307
- B,
308
- Fe,
306
+ F,
309
307
  z,
310
- R
311
- ]), tt = w((t) => {
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 = w(() => {
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 = w(() => {
324
+ ]), rt = T(() => {
325
325
  qe(null);
326
326
  }, []);
327
- return /* @__PURE__ */ be("div", {
327
+ return /* @__PURE__ */ ye("div", {
328
328
  className: "relative flex flex-1 flex-col overflow-hidden",
329
329
  children: [
330
- /* @__PURE__ */ be("div", {
330
+ /* @__PURE__ */ ye("div", {
331
331
  className: "contents",
332
332
  inert: Q.active || void 0,
333
- children: [G.length === 0 ? /* @__PURE__ */ D(C, {
334
- mode: L,
333
+ children: [G.length === 0 ? /* @__PURE__ */ O(C, {
334
+ mode: I,
335
335
  onSuggestionClick: Ze
336
- }) : /* @__PURE__ */ D("div", {
336
+ }) : /* @__PURE__ */ O("div", {
337
337
  className: "flex min-h-0 flex-1 flex-col",
338
- children: /* @__PURE__ */ D(b, {
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__ */ D(oe, {
345
- onStartVoiceSession: Q.available && L !== "api-calls" ? Q.start : void 0,
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: L === "api-calls" ? A("healthybowl.assistant.chatArea.placeholderActions", "What would you like me to do?") : A("healthybowl.assistant.chatArea.placeholderGeneral", "Ask HealthyBowl anything…"),
349
- mode: L,
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__ */ D(se, {
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__ */ D(x, {
363
+ /* @__PURE__ */ O(x, {
364
364
  open: Ke !== null,
365
365
  onConfirm: nt,
366
366
  onCancel: rt