@arbidocs/react 0.4.109 → 0.4.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkAFGE55RQ_cjs = require('./chunk-AFGE55RQ.cjs');
4
- var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
5
4
  var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
6
- var chunkEEW2SH76_cjs = require('./chunk-EEW2SH76.cjs');
7
- var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
5
+ var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
6
+ var chunkXD4P4KRH_cjs = require('./chunk-XD4P4KRH.cjs');
8
7
  var chunkTBELZWGV_cjs = require('./chunk-TBELZWGV.cjs');
9
- var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
10
8
  var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
9
+ var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
10
+ var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
11
11
  var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
12
12
  var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
13
13
  var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
@@ -1585,27 +1585,45 @@ function useContacts(options) {
1585
1585
  function usePendingContacts(options) {
1586
1586
  const contacts = useContacts(options);
1587
1587
  const pending = React.useMemo(
1588
- () => (contacts.data ?? []).filter(
1589
- (c) => c.status === "invitation_pending" || c.status === "invitation_expired"
1590
- ),
1588
+ () => (contacts.data ?? []).filter((c) => c.status === "invited" || c.status === "expired"),
1591
1589
  [contacts.data]
1592
1590
  );
1593
1591
  return { ...contacts, pending };
1594
1592
  }
1595
- function useAddContacts() {
1596
- const arbi = chunkXIDDXD5Y_cjs.useArbi();
1593
+ function useInvalidateContacts() {
1597
1594
  const qc = reactQuery.useQueryClient();
1595
+ return () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.contacts() });
1596
+ }
1597
+ function useInviteContacts() {
1598
+ const arbi = chunkXIDDXD5Y_cjs.useArbi();
1599
+ const invalidate = useInvalidateContacts();
1598
1600
  return reactQuery.useMutation({
1599
- mutationFn: (emails) => arbi.contacts.add(emails),
1600
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.contacts() })
1601
+ mutationFn: (emails) => arbi.contacts.invite(emails),
1602
+ onSuccess: () => invalidate()
1601
1603
  });
1602
1604
  }
1603
- function useRemoveContacts() {
1605
+ function useCreateContact() {
1604
1606
  const arbi = chunkXIDDXD5Y_cjs.useArbi();
1605
- const qc = reactQuery.useQueryClient();
1607
+ const invalidate = useInvalidateContacts();
1606
1608
  return reactQuery.useMutation({
1607
- mutationFn: (contactIds) => arbi.contacts.remove(contactIds),
1608
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkAFGE55RQ_cjs.arbiQueryKeys.contacts() })
1609
+ mutationFn: (body) => arbi.contacts.create(body),
1610
+ onSuccess: () => invalidate()
1611
+ });
1612
+ }
1613
+ function useUpdateContact() {
1614
+ const arbi = chunkXIDDXD5Y_cjs.useArbi();
1615
+ const invalidate = useInvalidateContacts();
1616
+ return reactQuery.useMutation({
1617
+ mutationFn: ({ id, card }) => arbi.contacts.update(id, card),
1618
+ onSuccess: () => invalidate()
1619
+ });
1620
+ }
1621
+ function useDeleteContact() {
1622
+ const arbi = chunkXIDDXD5Y_cjs.useArbi();
1623
+ const invalidate = useInvalidateContacts();
1624
+ return reactQuery.useMutation({
1625
+ mutationFn: (contactId) => arbi.contacts.delete(contactId),
1626
+ onSuccess: () => invalidate()
1609
1627
  });
1610
1628
  }
1611
1629
  function toProfileView(profile) {
@@ -3014,7 +3032,7 @@ function AiAnswer({
3014
3032
  }
3015
3033
  ),
3016
3034
  hasText && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3017
- /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.AiMarkdown, { isStreaming: running, children: text }),
3035
+ /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.AiMarkdown, { isStreaming: running, children: text }),
3018
3036
  !running && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-t border-border pt-2.5", children: [
3019
3037
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-muted-foreground", children: [
3020
3038
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "size-3.5 text-ai-accent" }),
@@ -3059,7 +3077,7 @@ function AiActionCard({
3059
3077
  const p = typeof prompt === "function" ? prompt() : prompt;
3060
3078
  void task.run(p, docIds);
3061
3079
  };
3062
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkEEW2SH76_cjs.Card, { variant: "elevated", className: "rounded-xl p-5", "data-testid": testId, children: [
3080
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Card, { variant: "elevated", className: "rounded-xl p-5", "data-testid": testId, children: [
3063
3081
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
3064
3082
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
3065
3083
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-9 shrink-0 items-center justify-center rounded-lg bg-ai-accent-soft text-ai-accent", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "size-4" }) }),
@@ -3201,11 +3219,11 @@ function ArtifactCanvas({
3201
3219
  children: active.title
3202
3220
  }
3203
3221
  ),
3204
- isRedline && /* @__PURE__ */ jsxRuntime.jsxs(chunkEEW2SH76_cjs.Badge, { variant: "accent", className: "gap-1", children: [
3222
+ isRedline && /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "accent", className: "gap-1", children: [
3205
3223
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GitCompareArrows, { className: "size-3" }),
3206
3224
  " Redline"
3207
3225
  ] }),
3208
- /* @__PURE__ */ jsxRuntime.jsxs(chunkEEW2SH76_cjs.Badge, { variant: "secondary", children: [
3226
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: [
3209
3227
  "v",
3210
3228
  active.version
3211
3229
  ] }),
@@ -3261,7 +3279,7 @@ function ArtifactCanvas({
3261
3279
  animate: { opacity: 1, y: 0 },
3262
3280
  transition: { duration: 0.2 },
3263
3281
  className: "mx-auto max-w-2xl rounded-lg bg-card p-8 shadow-sm ring-1 ring-border",
3264
- children: active.mode === "html" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", dangerouslySetInnerHTML: { __html: active.content } }) : active.mode === "text" ? /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap font-mono text-xs text-foreground", children: active.content }) : /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.AiMarkdown, { children: active.content })
3282
+ children: active.mode === "html" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm", dangerouslySetInnerHTML: { __html: active.content } }) : active.mode === "text" ? /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap font-mono text-xs text-foreground", children: active.content }) : /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.AiMarkdown, { children: active.content })
3265
3283
  },
3266
3284
  active.doc_ext_id
3267
3285
  ) }) })
@@ -3305,7 +3323,7 @@ function MessageArtifactCard({
3305
3323
  const labels = labelsFor(mode);
3306
3324
  const Icon = labels.Icon;
3307
3325
  return /* @__PURE__ */ jsxRuntime.jsxs(
3308
- chunkEEW2SH76_cjs.Card,
3326
+ chunkXD4P4KRH_cjs.Card,
3309
3327
  {
3310
3328
  variant: "outline",
3311
3329
  className: "mt-3 flex items-center gap-3 px-3 py-2.5",
@@ -3381,7 +3399,7 @@ function DocSearch({
3381
3399
  status === "done" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", "data-testid": "doc-search-results", children: [
3382
3400
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: results.length === 0 ? `No passages matched \u201C${query}\u201D.` : `${results.length} passage${results.length === 1 ? "" : "s"} for \u201C${query}\u201D` }),
3383
3401
  results.slice(0, 8).map((r, i) => /* @__PURE__ */ jsxRuntime.jsxs(
3384
- chunkEEW2SH76_cjs.Card,
3402
+ chunkXD4P4KRH_cjs.Card,
3385
3403
  {
3386
3404
  variant: "elevated",
3387
3405
  className: chunkS6A6FSG7_cjs.cn(
@@ -3394,7 +3412,7 @@ function DocSearch({
3394
3412
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-1 flex items-center gap-2", children: [
3395
3413
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-3.5 text-ai-accent" }),
3396
3414
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs font-medium text-foreground", children: r.docTitle ?? "Document" }),
3397
- r.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkEEW2SH76_cjs.Badge, { variant: "secondary", children: [
3415
+ r.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: [
3398
3416
  "p.",
3399
3417
  r.page
3400
3418
  ] }),
@@ -3488,7 +3506,7 @@ function DocumentReview({
3488
3506
  findings.length ? ` \xB7 ${findings.length} findings` : ""
3489
3507
  ] })
3490
3508
  ] }),
3491
- doc?.status ? /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.Badge, { variant: "secondary", children: doc.status }) : null,
3509
+ doc?.status ? /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: doc.status }) : null,
3492
3510
  onClose ? /* @__PURE__ */ jsxRuntime.jsx(
3493
3511
  "button",
3494
3512
  {
@@ -3525,7 +3543,7 @@ function DocumentReview({
3525
3543
  className: "w-full cursor-pointer rounded-md border p-2 text-left text-xs transition hover:border-ring hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3526
3544
  children: [
3527
3545
  /* @__PURE__ */ jsxRuntime.jsx(
3528
- chunkEEW2SH76_cjs.TagEntity,
3546
+ chunkXD4P4KRH_cjs.TagEntity,
3529
3547
  {
3530
3548
  size: "sm",
3531
3549
  tag: {
@@ -3570,7 +3588,7 @@ function DocumentReview({
3570
3588
  ),
3571
3589
  children: [
3572
3590
  highlighted ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1", children: /* @__PURE__ */ jsxRuntime.jsx(
3573
- chunkEEW2SH76_cjs.TagEntity,
3591
+ chunkXD4P4KRH_cjs.TagEntity,
3574
3592
  {
3575
3593
  size: "sm",
3576
3594
  tag: {
@@ -3619,7 +3637,7 @@ function ResultRow({
3619
3637
  onSelect
3620
3638
  }) {
3621
3639
  return /* @__PURE__ */ jsxRuntime.jsx(
3622
- chunkEEW2SH76_cjs.PassageCard,
3640
+ chunkXD4P4KRH_cjs.PassageCard,
3623
3641
  {
3624
3642
  onClick: onSelect,
3625
3643
  active: isActive,
@@ -3628,7 +3646,7 @@ function ResultRow({
3628
3646
  header: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3629
3647
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-3.5 shrink-0 text-ai-accent" }),
3630
3648
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-xs font-medium text-foreground", children: result.docTitle ?? "Document" }),
3631
- result.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkEEW2SH76_cjs.Badge, { variant: "secondary", children: [
3649
+ result.page != null && /* @__PURE__ */ jsxRuntime.jsxs(chunkXD4P4KRH_cjs.Badge, { variant: "secondary", children: [
3632
3650
  "p.",
3633
3651
  result.page
3634
3652
  ] })
@@ -3797,7 +3815,7 @@ Question: ${question}`,
3797
3815
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 space-y-3", "data-testid": "doc-qa", children: [
3798
3816
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
3799
3817
  /* @__PURE__ */ jsxRuntime.jsx(
3800
- chunkEEW2SH76_cjs.Input,
3818
+ chunkXD4P4KRH_cjs.Input,
3801
3819
  {
3802
3820
  value: q,
3803
3821
  onChange: (e) => setQ(e.target.value),
@@ -3999,7 +4017,7 @@ var CitationPopover = ({
3999
4017
  return () => {
4000
4018
  if (!restoreFocusRef.current) return;
4001
4019
  restoreFocusRef.current = false;
4002
- if (triggerRef.current) chunkEEW2SH76_cjs.returnFocusToMark(triggerRef.current);
4020
+ if (triggerRef.current) chunkXD4P4KRH_cjs.returnFocusToMark(triggerRef.current);
4003
4021
  };
4004
4022
  }, [open]);
4005
4023
  React.useEffect(() => {
@@ -4200,7 +4218,7 @@ var CitationLink = ({
4200
4218
  triggerRef,
4201
4219
  children
4202
4220
  }) => /* @__PURE__ */ jsxRuntime.jsxs(
4203
- chunkEEW2SH76_cjs.MarkMenu,
4221
+ chunkXD4P4KRH_cjs.MarkMenu,
4204
4222
  {
4205
4223
  triggerRef,
4206
4224
  items,
@@ -4241,8 +4259,8 @@ var FileIcon = ({ size = 16, className = "" }) => {
4241
4259
  "path",
4242
4260
  {
4243
4261
  d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z",
4244
- fill: chunkEEW2SH76_cjs.FILE_TYPE_COLORS.generic,
4245
- stroke: chunkEEW2SH76_cjs.FILE_TYPE_COLORS.generic,
4262
+ fill: chunkXD4P4KRH_cjs.FILE_TYPE_COLORS.generic,
4263
+ stroke: chunkXD4P4KRH_cjs.FILE_TYPE_COLORS.generic,
4246
4264
  strokeWidth: "1",
4247
4265
  strokeLinecap: "round",
4248
4266
  strokeLinejoin: "round"
@@ -4253,7 +4271,7 @@ var FileIcon = ({ size = 16, className = "" }) => {
4253
4271
  {
4254
4272
  d: "M14 2v6h6",
4255
4273
  fill: "none",
4256
- stroke: chunkEEW2SH76_cjs.FILE_TYPE_COLORS.white,
4274
+ stroke: chunkXD4P4KRH_cjs.FILE_TYPE_COLORS.white,
4257
4275
  strokeWidth: "1",
4258
4276
  strokeLinecap: "round",
4259
4277
  strokeLinejoin: "round"
@@ -4609,12 +4627,10 @@ var ArbiBotIcon = ({ size = 24, className = "" }) => {
4609
4627
  );
4610
4628
  };
4611
4629
  function getNotificationTypeMeta(type) {
4612
- const WorkspaceIcon = chunkEEW2SH76_cjs.getEntityIcon("WORKSPACE");
4630
+ const WorkspaceIcon = chunkXD4P4KRH_cjs.getEntityIcon("WORKSPACE");
4613
4631
  switch (type) {
4614
4632
  case "agent_input_requested":
4615
4633
  return { Icon: lucideReact.MessageCircleMore, iconClassName: "text-primary", label: "Input needed" };
4616
- case "user_message":
4617
- return { Icon: lucideReact.MessageCircleMore, iconClassName: "text-primary", label: "Message" };
4618
4634
  case "workspaceuser_added_owner":
4619
4635
  case "workspaceuser_added_collaborator":
4620
4636
  case "workspaceuser_added_guest":
@@ -4739,7 +4755,7 @@ function describeActivity(content) {
4739
4755
  }
4740
4756
  default:
4741
4757
  return {
4742
- Icon: parsed.workspace_ext_id ? chunkEEW2SH76_cjs.getEntityIcon("WORKSPACE") : lucideReact.Activity,
4758
+ Icon: parsed.workspace_ext_id ? chunkXD4P4KRH_cjs.getEntityIcon("WORKSPACE") : lucideReact.Activity,
4743
4759
  iconClassName: "text-muted-foreground",
4744
4760
  title: humaniseEvent(parsed.event)
4745
4761
  };
@@ -4856,6 +4872,7 @@ function isAgentUser(user) {
4856
4872
  return user.external_id.startsWith("agt-");
4857
4873
  }
4858
4874
  var DM_QUERY_KEY = ["arbi", "directMessages"];
4875
+ var THREAD_LIMIT = 100;
4859
4876
  function mergeContacts(threads, contacts) {
4860
4877
  const byPeer = /* @__PURE__ */ new Map();
4861
4878
  for (const t of threads) byPeer.set(t.peer.external_id, t);
@@ -4873,43 +4890,45 @@ function mergeContacts(threads, contacts) {
4873
4890
  return userDisplayName(a.peer).localeCompare(userDisplayName(b.peer));
4874
4891
  });
4875
4892
  }
4876
- function groupConversations(notifications, myExtId) {
4877
- const messagesByPeer = /* @__PURE__ */ new Map();
4878
- const peers = /* @__PURE__ */ new Map();
4879
- for (const n of notifications) {
4880
- if (n.type !== "user_message") continue;
4881
- if (n.sender.external_id === n.recipient.external_id) continue;
4882
- const isMine = n.sender.external_id === myExtId;
4883
- const peer = isMine ? n.recipient : n.sender;
4884
- if (!peer?.external_id) continue;
4885
- const message = {
4886
- externalId: n.external_id,
4887
- body: n.content ?? "",
4888
- createdAt: n.created_at,
4893
+ function toConversation(loaded, myExtId, pending) {
4894
+ const { chat } = loaded;
4895
+ const peerMember = chat.members.find((m) => m.user.external_id !== myExtId);
4896
+ if (!peerMember) return null;
4897
+ const meMember = chat.members.find((m) => m.user.external_id === myExtId);
4898
+ const peer = peerMember.user;
4899
+ const userById = new Map(chat.members.map((m) => [m.user.external_id, m.user]));
4900
+ const seen = new Set(loaded.messages.map((m) => m.external_id));
4901
+ const rows = [
4902
+ ...loaded.messages,
4903
+ ...pending.filter((m) => m.chat_ext_id === chat.external_id && !seen.has(m.external_id))
4904
+ ].filter((m) => m.kind === "text" && !m.context_only);
4905
+ const messages = rows.map((m) => {
4906
+ const isMine = m.sender_ext_id === myExtId;
4907
+ const sender = userById.get(m.sender_ext_id ?? "") ?? { external_id: m.sender_ext_id ?? "usr-unknown" };
4908
+ return {
4909
+ externalId: m.external_id,
4910
+ // A tombstone (deleted) has no content: it renders as "Message deleted".
4911
+ body: m.deleted ? "" : m.content ?? "",
4912
+ createdAt: m.created_at,
4889
4913
  isMine,
4890
- read: n.read,
4891
- sender: n.sender,
4892
- recipient: n.recipient
4914
+ // Mine: has the peer read it? Theirs: have I?
4915
+ read: browser.chats.hasRead(isMine ? peerMember : meMember, m),
4916
+ sender,
4917
+ recipient: isMine ? peer : meMember?.user,
4918
+ chatExtId: chat.external_id,
4919
+ ...m.deleted ? { deleted: true } : {}
4893
4920
  };
4894
- if (!messagesByPeer.has(peer.external_id)) {
4895
- messagesByPeer.set(peer.external_id, []);
4896
- peers.set(peer.external_id, peer);
4897
- }
4898
- messagesByPeer.get(peer.external_id).push(message);
4899
- }
4900
- const conversations = [];
4901
- for (const [peerId, messages] of messagesByPeer) {
4902
- messages.sort((a, b) => a.createdAt.localeCompare(b.createdAt));
4903
- const unreadCount = messages.filter((m) => !m.isMine && !m.read).length;
4904
- conversations.push({
4905
- peer: peers.get(peerId),
4906
- messages,
4907
- lastMessage: messages[messages.length - 1],
4908
- unreadCount
4909
- });
4910
- }
4911
- conversations.sort((a, b) => b.lastMessage.createdAt.localeCompare(a.lastMessage.createdAt));
4912
- return conversations;
4921
+ });
4922
+ messages.sort((a, b) => a.createdAt.localeCompare(b.createdAt));
4923
+ if (messages.length === 0) return null;
4924
+ const shown = messages.filter((m) => !m.deleted);
4925
+ return {
4926
+ peer,
4927
+ chatExtId: chat.external_id,
4928
+ messages,
4929
+ lastMessage: shown[shown.length - 1],
4930
+ unreadCount: chat.unread_count ?? 0
4931
+ };
4913
4932
  }
4914
4933
  function useDirectMessages(options) {
4915
4934
  const arbi = chunkXIDDXD5Y_cjs.useArbi();
@@ -4917,7 +4936,10 @@ function useDirectMessages(options) {
4917
4936
  const enabled = options?.enabled ?? arbi.isLoggedIn;
4918
4937
  const query = reactQuery.useQuery({
4919
4938
  queryKey: DM_QUERY_KEY,
4920
- queryFn: () => arbi.dm.list(),
4939
+ queryFn: async () => {
4940
+ const direct = await arbi.chats.list("direct");
4941
+ return Promise.all(direct.map((c) => arbi.chats.load(c.external_id, { limit: THREAD_LIMIT })));
4942
+ },
4921
4943
  enabled
4922
4944
  });
4923
4945
  const contactsQuery = reactQuery.useQuery({
@@ -4925,9 +4947,10 @@ function useDirectMessages(options) {
4925
4947
  queryFn: () => arbi.contacts.list(),
4926
4948
  enabled
4927
4949
  });
4928
- useArbiWsMessage("user_message", () => {
4929
- queryClient.invalidateQueries({ queryKey: DM_QUERY_KEY });
4930
- });
4950
+ const invalidate = () => queryClient.invalidateQueries({ queryKey: DM_QUERY_KEY });
4951
+ useArbiWsMessage("chat.message", () => void invalidate());
4952
+ useArbiWsMessage("chat.read", () => void invalidate());
4953
+ useArbiWsMessage("chat.updated", () => void invalidate());
4931
4954
  let myExtId = null;
4932
4955
  try {
4933
4956
  myExtId = arbi.user.identity()?.externalId ?? null;
@@ -4936,33 +4959,56 @@ function useDirectMessages(options) {
4936
4959
  }
4937
4960
  const [pendingSent, setPendingSent] = React.useState([]);
4938
4961
  const serverIds = React.useMemo(
4939
- () => new Set((query.data ?? []).map((n) => n.external_id)),
4962
+ () => new Set((query.data ?? []).flatMap((c) => c.messages.map((m) => m.external_id))),
4940
4963
  [query.data]
4941
4964
  );
4942
4965
  React.useEffect(() => {
4943
4966
  setPendingSent(
4944
- (pending) => pending.some((n) => serverIds.has(n.external_id)) ? pending.filter((n) => !serverIds.has(n.external_id)) : pending
4967
+ (pending) => pending.some((p) => serverIds.has(p.message.external_id)) ? pending.filter((p) => !serverIds.has(p.message.external_id)) : pending
4945
4968
  );
4946
4969
  }, [serverIds]);
4947
4970
  const conversations = React.useMemo(() => {
4948
- const all = [...pendingSent.filter((n) => !serverIds.has(n.external_id)), ...query.data ?? []];
4949
- return mergeContacts(groupConversations(all, myExtId), contactsQuery.data ?? []);
4971
+ const pending = pendingSent.filter((p) => !serverIds.has(p.message.external_id));
4972
+ const pendingMessages = pending.map((p) => p.message);
4973
+ const threads = (query.data ?? []).map((loaded) => toConversation(loaded, myExtId, pendingMessages)).filter((c) => c !== null);
4974
+ const merged = mergeContacts(threads, contactsQuery.data ?? []);
4975
+ return merged.map((c) => {
4976
+ if (c.chatExtId) return c;
4977
+ const mine = pending.filter((p) => p.peerExtId === c.peer.external_id);
4978
+ if (!mine.length) return c;
4979
+ const messages = mine.map(({ message: m }) => ({
4980
+ externalId: m.external_id,
4981
+ body: m.content ?? "",
4982
+ createdAt: m.created_at,
4983
+ isMine: true,
4984
+ read: false,
4985
+ sender: { external_id: myExtId ?? "usr-me" },
4986
+ recipient: c.peer,
4987
+ chatExtId: m.chat_ext_id
4988
+ })).sort((a, b) => a.createdAt.localeCompare(b.createdAt));
4989
+ return {
4990
+ ...c,
4991
+ isContactOnly: false,
4992
+ chatExtId: messages[0].chatExtId,
4993
+ messages,
4994
+ lastMessage: messages[messages.length - 1]
4995
+ };
4996
+ });
4950
4997
  }, [query.data, serverIds, pendingSent, contactsQuery.data, myExtId]);
4951
- const invalidate = () => queryClient.invalidateQueries({ queryKey: DM_QUERY_KEY });
4952
- const absorbSent = (created) => {
4953
- setPendingSent((pending) => [...created, ...pending]);
4954
- invalidate();
4998
+ const absorbSent = (message, peerExtId) => {
4999
+ setPendingSent((pending) => [{ message, peerExtId }, ...pending]);
5000
+ void invalidate();
4955
5001
  };
4956
5002
  const sendMutation = reactQuery.useMutation({
4957
- mutationFn: (vars) => arbi.dm.sendTo(vars.recipientExtId, vars.recipientPublicKey, vars.text),
4958
- onSuccess: absorbSent
5003
+ mutationFn: (vars) => arbi.dm.sendTo(vars.recipientExtId, vars.text),
5004
+ onSuccess: (message, vars) => absorbSent(message, vars.recipientExtId)
4959
5005
  });
4960
5006
  const sendToMutation = reactQuery.useMutation({
4961
5007
  mutationFn: (vars) => arbi.dm.send(vars.recipient, vars.text),
4962
- onSuccess: absorbSent
5008
+ onSuccess: (message, vars) => absorbSent(message, vars.recipient.includes("@") ? void 0 : vars.recipient)
4963
5009
  });
4964
5010
  const markReadMutation = reactQuery.useMutation({
4965
- mutationFn: (messageIds) => arbi.dm.markRead(messageIds),
5011
+ mutationFn: (vars) => arbi.chats.markRead(vars.chatExtId, vars.messageExtId),
4966
5012
  onSuccess: invalidate
4967
5013
  });
4968
5014
  return {
@@ -4971,19 +5017,19 @@ function useDirectMessages(options) {
4971
5017
  isLoading: (query.isLoading || contactsQuery.isLoading) && enabled,
4972
5018
  isError: query.isError,
4973
5019
  error: query.error,
4974
- refetch: () => query.refetch(),
4975
- sendMessage: (recipientExtId, recipientPublicKey, text) => sendMutation.mutateAsync({ recipientExtId, recipientPublicKey, text }),
5020
+ refetch: () => void query.refetch(),
5021
+ sendMessage: (recipientExtId, _recipientPublicKey, text) => sendMutation.mutateAsync({ recipientExtId, text }),
4976
5022
  sendMessageTo: (recipient, text) => sendToMutation.mutateAsync({ recipient, text }),
4977
5023
  isSending: sendMutation.isPending || sendToMutation.isPending,
4978
5024
  sendError: sendMutation.error ?? sendToMutation.error,
4979
- markRead: (messageIds) => markReadMutation.mutateAsync(messageIds)
5025
+ markRead: (chatExtId, messageExtId) => markReadMutation.mutateAsync({ chatExtId, messageExtId })
4980
5026
  };
4981
5027
  }
4982
5028
  function DmAvatar({ user, className, size = "lg" }) {
4983
5029
  const presence = useArbiWsStore((s) => s.presence[user.external_id]);
4984
5030
  const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
4985
5031
  return /* @__PURE__ */ jsxRuntime.jsx(
4986
- chunkEEW2SH76_cjs.UserEntity,
5032
+ chunkXD4P4KRH_cjs.UserEntity,
4987
5033
  {
4988
5034
  variant: "icon",
4989
5035
  size,
@@ -4993,7 +5039,7 @@ function DmAvatar({ user, className, size = "lg" }) {
4993
5039
  initials: userInitials(user),
4994
5040
  displayName: userDisplayName(user),
4995
5041
  picture: user.picture,
4996
- avatarStyle: chunkEEW2SH76_cjs.getEntityColorStyles(user.external_id),
5042
+ avatarStyle: chunkXD4P4KRH_cjs.getEntityColorStyles(user.external_id),
4997
5043
  isAgent: isAgentUser(user),
4998
5044
  displayStatus
4999
5045
  }
@@ -5029,8 +5075,9 @@ function ConversationList({
5029
5075
  lead,
5030
5076
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: conversations.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-6 text-xs text-muted-foreground", children: emptyState ?? "No conversations yet." }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "w-full", children: conversations.map((c, i) => {
5031
5077
  const { peer, lastMessage, unreadCount } = c;
5078
+ const rowId = c.id ?? peer.external_id;
5032
5079
  const newSection = c.sectionLabel && c.sectionLabel !== conversations[i - 1]?.sectionLabel;
5033
- const active = peer.external_id === selectedPeerId;
5080
+ const active = rowId === selectedPeerId;
5034
5081
  const preview = lastMessage?.body ?? "No messages yet \u2014 say hello";
5035
5082
  const unread = unreadCount > 0;
5036
5083
  const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -5045,13 +5092,13 @@ function ConversationList({
5045
5092
  "truncate text-sm text-foreground",
5046
5093
  unread ? "font-bold" : "font-semibold"
5047
5094
  ),
5048
- children: userDisplayName(peer)
5095
+ children: c.title ?? userDisplayName(peer)
5049
5096
  }
5050
5097
  ),
5051
- c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.AgentBadge, {}) : null)
5098
+ c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.AgentBadge, {}) : null)
5052
5099
  ] }),
5053
5100
  c.statusLabel ? /* @__PURE__ */ jsxRuntime.jsx(
5054
- chunkEEW2SH76_cjs.Badge,
5101
+ chunkXD4P4KRH_cjs.Badge,
5055
5102
  {
5056
5103
  variant: "outline",
5057
5104
  className: "shrink-0 rounded-full px-2 py-0 text-xs font-medium text-muted-foreground",
@@ -5062,7 +5109,7 @@ function ConversationList({
5062
5109
  // shouted louder than the message it was counting.
5063
5110
  // Enough to catch the eye scanning the list, no more.
5064
5111
  /* @__PURE__ */ jsxRuntime.jsx(
5065
- chunkEEW2SH76_cjs.Badge,
5112
+ chunkXD4P4KRH_cjs.Badge,
5066
5113
  {
5067
5114
  variant: "accent",
5068
5115
  className: chunkS6A6FSG7_cjs.cn(
@@ -5118,27 +5165,20 @@ function ConversationList({
5118
5165
  children: c.sectionLabel
5119
5166
  }
5120
5167
  ),
5121
- c.disabled ? /* @__PURE__ */ jsxRuntime.jsxs(
5122
- "div",
5123
- {
5124
- "data-testid": `arbi-dm-conversation-${peer.external_id}`,
5125
- className: rowClass,
5126
- children: [
5127
- body,
5128
- c.trailing
5129
- ]
5130
- }
5131
- ) : /* @__PURE__ */ jsxRuntime.jsx(
5168
+ c.disabled ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `arbi-dm-conversation-${rowId}`, className: rowClass, children: [
5169
+ body,
5170
+ c.trailing
5171
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(
5132
5172
  "button",
5133
5173
  {
5134
5174
  type: "button",
5135
- onClick: () => onSelect(peer.external_id),
5136
- "data-testid": `arbi-dm-conversation-${peer.external_id}`,
5175
+ onClick: () => onSelect(rowId),
5176
+ "data-testid": `arbi-dm-conversation-${rowId}`,
5137
5177
  className: rowClass,
5138
5178
  children: body
5139
5179
  }
5140
5180
  )
5141
- ] }, peer.external_id);
5181
+ ] }, rowId);
5142
5182
  }) }) })
5143
5183
  ]
5144
5184
  }
@@ -5202,8 +5242,7 @@ function MessageThread({
5202
5242
  classNames,
5203
5243
  emptyState,
5204
5244
  formatDay,
5205
- onDeleteMessage,
5206
- deletedIds
5245
+ onDeleteMessage
5207
5246
  }) {
5208
5247
  const bottomRef = React.useRef(null);
5209
5248
  const items = React.useMemo(
@@ -5212,7 +5251,7 @@ function MessageThread({
5212
5251
  );
5213
5252
  React.useEffect(() => {
5214
5253
  bottomRef.current?.scrollIntoView({ block: "end" });
5215
- }, [conversation?.peer.external_id, conversation?.messages.length]);
5254
+ }, [conversation?.id, conversation?.peer.external_id, conversation?.messages.length]);
5216
5255
  if (!conversation) {
5217
5256
  return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5218
5257
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-14 items-center justify-center rounded-full bg-accent", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessagesSquare, { className: "size-6 text-muted-foreground" }) }),
@@ -5222,13 +5261,13 @@ function MessageThread({
5222
5261
  ] })
5223
5262
  ] }) });
5224
5263
  }
5225
- const { peer } = conversation;
5264
+ const { peer, title, memberCount } = conversation;
5226
5265
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5227
5266
  /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex items-center gap-3 border-b border-border px-4 py-3", children: [
5228
5267
  /* @__PURE__ */ jsxRuntime.jsx(DmAvatar, { user: peer, className: "size-9" }),
5229
5268
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
5230
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-semibold text-foreground", children: userDisplayName(peer) }),
5231
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: peer.email })
5269
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-semibold text-foreground", children: title ?? userDisplayName(peer) }),
5270
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: memberCount != null ? `${memberCount} members` : peer.email })
5232
5271
  ] })
5233
5272
  ] }),
5234
5273
  /* @__PURE__ */ jsxRuntime.jsx(chunkHUZB36QU_cjs.ScrollArea, { className: "min-h-0 flex-1 bg-background", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col px-4 py-4", "data-testid": "arbi-dm-thread", children: [
@@ -5240,8 +5279,8 @@ function MessageThread({
5240
5279
  message: m,
5241
5280
  classNames,
5242
5281
  isLastOfRun,
5243
- deleted: deletedIds?.has(m.externalId),
5244
- onDelete: onDeleteMessage ? () => onDeleteMessage(m) : void 0
5282
+ deleted: m.deleted,
5283
+ onDelete: onDeleteMessage && !m.deleted ? () => onDeleteMessage(m) : void 0
5245
5284
  }
5246
5285
  )
5247
5286
  ] }, m.externalId)),
@@ -5269,7 +5308,7 @@ function DmComposer({
5269
5308
  if (!allowAttachments || added.length === 0) return;
5270
5309
  const next = [...files, ...added];
5271
5310
  try {
5272
- browser.dm.checkDmAttachmentLimits(next);
5311
+ browser.chats.checkChatAttachmentLimits(next);
5273
5312
  setFiles(next);
5274
5313
  setAttachError(null);
5275
5314
  } catch (err) {
@@ -5395,7 +5434,7 @@ function DmComposer({
5395
5434
  )
5396
5435
  ] }),
5397
5436
  /* @__PURE__ */ jsxRuntime.jsx(
5398
- chunkEEW2SH76_cjs.Textarea,
5437
+ chunkXD4P4KRH_cjs.Textarea,
5399
5438
  {
5400
5439
  ref: inputRef,
5401
5440
  value: draft,
@@ -5489,9 +5528,9 @@ function StartByEmail({
5489
5528
  void submit();
5490
5529
  },
5491
5530
  children: [
5492
- /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.Label, { htmlFor: `${uid}-email`, children: l.email }),
5531
+ /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Label, { htmlFor: `${uid}-email`, children: l.email }),
5493
5532
  /* @__PURE__ */ jsxRuntime.jsx(
5494
- chunkEEW2SH76_cjs.Input,
5533
+ chunkXD4P4KRH_cjs.Input,
5495
5534
  {
5496
5535
  id: `${uid}-email`,
5497
5536
  type: "email",
@@ -5505,9 +5544,9 @@ function StartByEmail({
5505
5544
  }
5506
5545
  ),
5507
5546
  email !== "" && !valid && /* @__PURE__ */ jsxRuntime.jsx("p", { id: `${uid}-bad`, className: "text-xs text-destructive", children: l.invalidEmail }),
5508
- /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.Label, { htmlFor: `${uid}-text`, children: l.message }),
5547
+ /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Label, { htmlFor: `${uid}-text`, children: l.message }),
5509
5548
  /* @__PURE__ */ jsxRuntime.jsx(
5510
- chunkEEW2SH76_cjs.Textarea,
5549
+ chunkXD4P4KRH_cjs.Textarea,
5511
5550
  {
5512
5551
  id: `${uid}-text`,
5513
5552
  value: text,
@@ -5559,31 +5598,35 @@ function DirectMessages({
5559
5598
  markRead
5560
5599
  } = useDirectMessages();
5561
5600
  const [selectedPeerId, setSelectedPeerId] = React.useState(null);
5601
+ const [startedChatId, setStartedChatId] = React.useState(null);
5562
5602
  const conversations = React.useMemo(
5563
5603
  () => hideOwnContact && myExtId ? allConversations.filter((c) => c.peer.external_id !== myExtId) : allConversations,
5564
5604
  [allConversations, hideOwnContact, myExtId]
5565
5605
  );
5566
5606
  const openStarted = (created) => {
5567
- const peer = Array.isArray(created) ? created[0]?.recipient?.external_id : void 0;
5568
- if (peer) setSelectedPeerId(peer);
5607
+ const chatId = created?.chat_ext_id;
5608
+ if (chatId) setStartedChatId(chatId);
5569
5609
  };
5610
+ React.useEffect(() => {
5611
+ if (!startedChatId) return;
5612
+ const started = conversations.find((c) => c.chatExtId === startedChatId);
5613
+ if (started) {
5614
+ setSelectedPeerId(started.id ?? started.peer.external_id);
5615
+ setStartedChatId(null);
5616
+ }
5617
+ }, [conversations, startedChatId]);
5570
5618
  const loadError = isError ? error instanceof Error ? error.message : "Couldn\u2019t load messages." : null;
5571
5619
  const selected = React.useMemo(
5572
- () => conversations.find((c) => c.peer.external_id === selectedPeerId) ?? null,
5620
+ () => conversations.find((c) => (c.id ?? c.peer.external_id) === selectedPeerId) ?? null,
5573
5621
  [conversations, selectedPeerId]
5574
5622
  );
5575
5623
  React.useEffect(() => {
5576
- if (!selected || selected.unreadCount === 0) return;
5577
- const unreadIds = selected.messages.filter((m) => !m.isMine && !m.read).map((m) => m.externalId);
5578
- if (unreadIds.length) void markRead(unreadIds);
5579
- }, [selected?.peer.external_id, selected?.unreadCount]);
5624
+ if (!selected?.chatExtId || selected.unreadCount === 0) return;
5625
+ void markRead(selected.chatExtId);
5626
+ }, [selected?.chatExtId, selected?.unreadCount]);
5580
5627
  const handleSend = async (text) => {
5581
5628
  if (!selected) return;
5582
- if (selected.peer.encryption_public_key) {
5583
- await sendMessage(selected.peer.external_id, selected.peer.encryption_public_key, text);
5584
- } else {
5585
- await sendMessageTo(selected.peer.external_id, text);
5586
- }
5629
+ await sendMessage(selected.peer.external_id, selected.peer.encryption_public_key, text);
5587
5630
  };
5588
5631
  return /* @__PURE__ */ jsxRuntime.jsxs(
5589
5632
  "div",
@@ -5607,7 +5650,7 @@ function DirectMessages({
5607
5650
  ConversationList,
5608
5651
  {
5609
5652
  conversations,
5610
- selectedPeerId: selected?.peer.external_id ?? null,
5653
+ selectedPeerId: selected ? selected.id ?? selected.peer.external_id : null,
5611
5654
  onSelect: setSelectedPeerId,
5612
5655
  classNames,
5613
5656
  emptyState: isLoading ? "Loading messages\u2026" : emptyList,
@@ -5631,7 +5674,7 @@ function DirectMessages({
5631
5674
  selected ? /* @__PURE__ */ jsxRuntime.jsx(
5632
5675
  DmComposer,
5633
5676
  {
5634
- placeholder: `Message ${userDisplayName(selected.peer).split(" ")[0]}\u2026`,
5677
+ placeholder: `Message ${(selected.title ?? userDisplayName(selected.peer)).split(" ")[0]}\u2026`,
5635
5678
  onSend: handleSend,
5636
5679
  error: sendError?.message ?? null,
5637
5680
  classNames
@@ -5720,7 +5763,7 @@ function ImageCropper({
5720
5763
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
5721
5764
  /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: "Zoom" }),
5722
5765
  /* @__PURE__ */ jsxRuntime.jsx(
5723
- chunkEEW2SH76_cjs.Slider,
5766
+ chunkXD4P4KRH_cjs.Slider,
5724
5767
  {
5725
5768
  value: [zoom],
5726
5769
  onValueChange: ([v]) => setZoom(v ?? 1),
@@ -6155,7 +6198,7 @@ function DocumentTable({
6155
6198
  const doc = p.data;
6156
6199
  if (!doc) return null;
6157
6200
  return /* @__PURE__ */ jsxRuntime.jsx(
6158
- chunkEEW2SH76_cjs.DocumentEntity,
6201
+ chunkXD4P4KRH_cjs.DocumentEntity,
6159
6202
  {
6160
6203
  doc,
6161
6204
  size: "base",
@@ -6178,7 +6221,7 @@ function DocumentTable({
6178
6221
  cellRenderer: (p) => {
6179
6222
  const status = p.data?.status;
6180
6223
  if (!status) return null;
6181
- return /* @__PURE__ */ jsxRuntime.jsx(chunkEEW2SH76_cjs.Badge, { variant: STATUS_VARIANTS[status.toLowerCase()] ?? "secondary", children: status });
6224
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkXD4P4KRH_cjs.Badge, { variant: STATUS_VARIANTS[status.toLowerCase()] ?? "secondary", children: status });
6182
6225
  }
6183
6226
  },
6184
6227
  {
@@ -6192,7 +6235,7 @@ function DocumentTable({
6192
6235
  const doctags = p.data?.doctags ?? [];
6193
6236
  if (doctags.length === 0) return null;
6194
6237
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-1 py-1", children: doctags.map((dt) => /* @__PURE__ */ jsxRuntime.jsx(
6195
- chunkEEW2SH76_cjs.TagEntity,
6238
+ chunkXD4P4KRH_cjs.TagEntity,
6196
6239
  {
6197
6240
  size: "sm",
6198
6241
  tag: {
@@ -6468,7 +6511,7 @@ function DocumentGallery({
6468
6511
  (dt) => tagNameById.get(dt.tag_ext_id) ?? dt.tag_ext_id.slice(0, 8)
6469
6512
  );
6470
6513
  return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-doc-id": id, "data-testid": "document-gallery-card", children: /* @__PURE__ */ jsxRuntime.jsx(
6471
- chunkEEW2SH76_cjs.DocumentCard,
6514
+ chunkXD4P4KRH_cjs.DocumentCard,
6472
6515
  {
6473
6516
  doc,
6474
6517
  thumbnailUrl: thumbs[id],
@@ -6505,7 +6548,7 @@ function VoiceNoteRecorder({
6505
6548
  isSaving = false,
6506
6549
  transcribe
6507
6550
  }) {
6508
- const recorder = chunkEEW2SH76_cjs.useAudioRecorder();
6551
+ const recorder = chunkXD4P4KRH_cjs.useAudioRecorder();
6509
6552
  const [transcript, setTranscript] = React.useState(null);
6510
6553
  const [isTranscribing, setIsTranscribing] = React.useState(false);
6511
6554
  React.useEffect(() => {
@@ -6551,7 +6594,7 @@ function VoiceNoteRecorder({
6551
6594
  ] }),
6552
6595
  (recorder.state === "recording" || recorder.state === "paused") && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6553
6596
  /* @__PURE__ */ jsxRuntime.jsx(
6554
- chunkEEW2SH76_cjs.MicWaveformIndicator,
6597
+ chunkXD4P4KRH_cjs.MicWaveformIndicator,
6555
6598
  {
6556
6599
  level: recorder.level,
6557
6600
  elapsedMs: recorder.elapsedMs,
@@ -6673,7 +6716,7 @@ function DraftTitleControls({
6673
6716
  }
6674
6717
  ),
6675
6718
  /* @__PURE__ */ jsxRuntime.jsx(
6676
- chunkEEW2SH76_cjs.IconToggle,
6719
+ chunkXD4P4KRH_cjs.IconToggle,
6677
6720
  {
6678
6721
  icon: lucideReact.Sparkles,
6679
6722
  isActive: autoRename,
@@ -6707,7 +6750,7 @@ function useCameraStream(constraints = { video: true, audio: false }) {
6707
6750
  streamRef.current = media;
6708
6751
  setStream(media);
6709
6752
  } catch (err) {
6710
- setError(chunkEEW2SH76_cjs.classifyMediaError(err, "camera"));
6753
+ setError(chunkXD4P4KRH_cjs.classifyMediaError(err, "camera"));
6711
6754
  } finally {
6712
6755
  setIsStarting(false);
6713
6756
  }
@@ -6943,7 +6986,7 @@ function VideoCapture({ onSave, onDiscard, onError, isSaving = false }) {
6943
6986
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-red-500" })
6944
6987
  ] }),
6945
6988
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold uppercase tracking-wide text-red-500", children: "Rec" }),
6946
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-xs tabular-nums text-muted-foreground", children: chunkEEW2SH76_cjs.formatElapsed(recorder.elapsedMs) })
6989
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-xs tabular-nums text-muted-foreground", children: chunkXD4P4KRH_cjs.formatElapsed(recorder.elapsedMs) })
6947
6990
  ] }),
6948
6991
  recorder.state === "recording" ? /* @__PURE__ */ jsxRuntime.jsx(
6949
6992
  chunkWYZJLZ67_cjs.Button,
@@ -7158,38 +7201,6 @@ Object.defineProperty(exports, "useWorkspaces", {
7158
7201
  enumerable: true,
7159
7202
  get: function () { return chunkAFGE55RQ_cjs.useWorkspaces; }
7160
7203
  });
7161
- Object.defineProperty(exports, "cleanDraftMarkdown", {
7162
- enumerable: true,
7163
- get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
7164
- });
7165
- Object.defineProperty(exports, "cleanDraftWithReport", {
7166
- enumerable: true,
7167
- get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
7168
- });
7169
- Object.defineProperty(exports, "promoteBoldTitle", {
7170
- enumerable: true,
7171
- get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
7172
- });
7173
- Object.defineProperty(exports, "repairParsedStructure", {
7174
- enumerable: true,
7175
- get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
7176
- });
7177
- Object.defineProperty(exports, "repairParsedTitle", {
7178
- enumerable: true,
7179
- get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
7180
- });
7181
- Object.defineProperty(exports, "stripAgentPreamble", {
7182
- enumerable: true,
7183
- get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
7184
- });
7185
- Object.defineProperty(exports, "unescapeMarkdown", {
7186
- enumerable: true,
7187
- get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
7188
- });
7189
- Object.defineProperty(exports, "unwrapCitationLinks", {
7190
- enumerable: true,
7191
- get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
7192
- });
7193
7204
  Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
7194
7205
  enumerable: true,
7195
7206
  get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
@@ -7226,521 +7237,613 @@ Object.defineProperty(exports, "useNotify", {
7226
7237
  enumerable: true,
7227
7238
  get: function () { return chunkF7KQVVD2_cjs.useNotify; }
7228
7239
  });
7240
+ Object.defineProperty(exports, "cleanDraftMarkdown", {
7241
+ enumerable: true,
7242
+ get: function () { return chunk5DCRIWCA_cjs.cleanDraftMarkdown; }
7243
+ });
7244
+ Object.defineProperty(exports, "cleanDraftWithReport", {
7245
+ enumerable: true,
7246
+ get: function () { return chunk5DCRIWCA_cjs.cleanDraftWithReport; }
7247
+ });
7248
+ Object.defineProperty(exports, "promoteBoldTitle", {
7249
+ enumerable: true,
7250
+ get: function () { return chunk5DCRIWCA_cjs.promoteBoldTitle; }
7251
+ });
7252
+ Object.defineProperty(exports, "repairParsedStructure", {
7253
+ enumerable: true,
7254
+ get: function () { return chunk5DCRIWCA_cjs.repairParsedStructure; }
7255
+ });
7256
+ Object.defineProperty(exports, "repairParsedTitle", {
7257
+ enumerable: true,
7258
+ get: function () { return chunk5DCRIWCA_cjs.repairParsedTitle; }
7259
+ });
7260
+ Object.defineProperty(exports, "stripAgentPreamble", {
7261
+ enumerable: true,
7262
+ get: function () { return chunk5DCRIWCA_cjs.stripAgentPreamble; }
7263
+ });
7264
+ Object.defineProperty(exports, "unescapeMarkdown", {
7265
+ enumerable: true,
7266
+ get: function () { return chunk5DCRIWCA_cjs.unescapeMarkdown; }
7267
+ });
7268
+ Object.defineProperty(exports, "unwrapCitationLinks", {
7269
+ enumerable: true,
7270
+ get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
7271
+ });
7272
+ Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
7273
+ enumerable: true,
7274
+ get: function () { return chunkXD4P4KRH_cjs.AUDIO_MIME_PREFERENCE; }
7275
+ });
7229
7276
  Object.defineProperty(exports, "AgentBadge", {
7230
7277
  enumerable: true,
7231
- get: function () { return chunkEEW2SH76_cjs.AgentBadge; }
7278
+ get: function () { return chunkXD4P4KRH_cjs.AgentBadge; }
7232
7279
  });
7233
7280
  Object.defineProperty(exports, "AiMarkdown", {
7234
7281
  enumerable: true,
7235
- get: function () { return chunkEEW2SH76_cjs.AiMarkdown; }
7282
+ get: function () { return chunkXD4P4KRH_cjs.AiMarkdown; }
7236
7283
  });
7237
7284
  Object.defineProperty(exports, "ArbiBotHeadIcon", {
7238
7285
  enumerable: true,
7239
- get: function () { return chunkEEW2SH76_cjs.ArbiBotHeadIcon; }
7286
+ get: function () { return chunkXD4P4KRH_cjs.ArbiBotHeadIcon; }
7240
7287
  });
7241
7288
  Object.defineProperty(exports, "AudIcon", {
7242
7289
  enumerable: true,
7243
- get: function () { return chunkEEW2SH76_cjs.AudIcon; }
7290
+ get: function () { return chunkXD4P4KRH_cjs.AudIcon; }
7244
7291
  });
7245
7292
  Object.defineProperty(exports, "Avatar", {
7246
7293
  enumerable: true,
7247
- get: function () { return chunkEEW2SH76_cjs.Avatar; }
7294
+ get: function () { return chunkXD4P4KRH_cjs.Avatar; }
7248
7295
  });
7249
7296
  Object.defineProperty(exports, "AvatarFallback", {
7250
7297
  enumerable: true,
7251
- get: function () { return chunkEEW2SH76_cjs.AvatarFallback; }
7298
+ get: function () { return chunkXD4P4KRH_cjs.AvatarFallback; }
7252
7299
  });
7253
7300
  Object.defineProperty(exports, "AvatarImage", {
7254
7301
  enumerable: true,
7255
- get: function () { return chunkEEW2SH76_cjs.AvatarImage; }
7302
+ get: function () { return chunkXD4P4KRH_cjs.AvatarImage; }
7256
7303
  });
7257
7304
  Object.defineProperty(exports, "BASE_COLORS", {
7258
7305
  enumerable: true,
7259
- get: function () { return chunkEEW2SH76_cjs.BASE_COLORS; }
7306
+ get: function () { return chunkXD4P4KRH_cjs.BASE_COLORS; }
7260
7307
  });
7261
7308
  Object.defineProperty(exports, "Badge", {
7262
7309
  enumerable: true,
7263
- get: function () { return chunkEEW2SH76_cjs.Badge; }
7310
+ get: function () { return chunkXD4P4KRH_cjs.Badge; }
7264
7311
  });
7265
7312
  Object.defineProperty(exports, "Card", {
7266
7313
  enumerable: true,
7267
- get: function () { return chunkEEW2SH76_cjs.Card; }
7314
+ get: function () { return chunkXD4P4KRH_cjs.Card; }
7268
7315
  });
7269
7316
  Object.defineProperty(exports, "CardContent", {
7270
7317
  enumerable: true,
7271
- get: function () { return chunkEEW2SH76_cjs.CardContent; }
7318
+ get: function () { return chunkXD4P4KRH_cjs.CardContent; }
7272
7319
  });
7273
7320
  Object.defineProperty(exports, "CardDescription", {
7274
7321
  enumerable: true,
7275
- get: function () { return chunkEEW2SH76_cjs.CardDescription; }
7322
+ get: function () { return chunkXD4P4KRH_cjs.CardDescription; }
7276
7323
  });
7277
7324
  Object.defineProperty(exports, "CardFooter", {
7278
7325
  enumerable: true,
7279
- get: function () { return chunkEEW2SH76_cjs.CardFooter; }
7326
+ get: function () { return chunkXD4P4KRH_cjs.CardFooter; }
7280
7327
  });
7281
7328
  Object.defineProperty(exports, "CardHeader", {
7282
7329
  enumerable: true,
7283
- get: function () { return chunkEEW2SH76_cjs.CardHeader; }
7330
+ get: function () { return chunkXD4P4KRH_cjs.CardHeader; }
7284
7331
  });
7285
7332
  Object.defineProperty(exports, "CardTitle", {
7286
7333
  enumerable: true,
7287
- get: function () { return chunkEEW2SH76_cjs.CardTitle; }
7334
+ get: function () { return chunkXD4P4KRH_cjs.CardTitle; }
7288
7335
  });
7289
7336
  Object.defineProperty(exports, "Checkbox", {
7290
7337
  enumerable: true,
7291
- get: function () { return chunkEEW2SH76_cjs.Checkbox; }
7338
+ get: function () { return chunkXD4P4KRH_cjs.Checkbox; }
7292
7339
  });
7293
7340
  Object.defineProperty(exports, "Collapsible", {
7294
7341
  enumerable: true,
7295
- get: function () { return chunkEEW2SH76_cjs.Collapsible; }
7342
+ get: function () { return chunkXD4P4KRH_cjs.Collapsible; }
7296
7343
  });
7297
7344
  Object.defineProperty(exports, "CollapsibleContent", {
7298
7345
  enumerable: true,
7299
- get: function () { return chunkEEW2SH76_cjs.CollapsibleContent; }
7346
+ get: function () { return chunkXD4P4KRH_cjs.CollapsibleContent; }
7300
7347
  });
7301
7348
  Object.defineProperty(exports, "CollapsibleTrigger", {
7302
7349
  enumerable: true,
7303
- get: function () { return chunkEEW2SH76_cjs.CollapsibleTrigger; }
7350
+ get: function () { return chunkXD4P4KRH_cjs.CollapsibleTrigger; }
7304
7351
  });
7305
7352
  Object.defineProperty(exports, "Command", {
7306
7353
  enumerable: true,
7307
- get: function () { return chunkEEW2SH76_cjs.Command; }
7354
+ get: function () { return chunkXD4P4KRH_cjs.Command; }
7308
7355
  });
7309
7356
  Object.defineProperty(exports, "CommandDialog", {
7310
7357
  enumerable: true,
7311
- get: function () { return chunkEEW2SH76_cjs.CommandDialog; }
7358
+ get: function () { return chunkXD4P4KRH_cjs.CommandDialog; }
7312
7359
  });
7313
7360
  Object.defineProperty(exports, "CommandEmpty", {
7314
7361
  enumerable: true,
7315
- get: function () { return chunkEEW2SH76_cjs.CommandEmpty; }
7362
+ get: function () { return chunkXD4P4KRH_cjs.CommandEmpty; }
7316
7363
  });
7317
7364
  Object.defineProperty(exports, "CommandGroup", {
7318
7365
  enumerable: true,
7319
- get: function () { return chunkEEW2SH76_cjs.CommandGroup; }
7366
+ get: function () { return chunkXD4P4KRH_cjs.CommandGroup; }
7320
7367
  });
7321
7368
  Object.defineProperty(exports, "CommandInput", {
7322
7369
  enumerable: true,
7323
- get: function () { return chunkEEW2SH76_cjs.CommandInput; }
7370
+ get: function () { return chunkXD4P4KRH_cjs.CommandInput; }
7324
7371
  });
7325
7372
  Object.defineProperty(exports, "CommandItem", {
7326
7373
  enumerable: true,
7327
- get: function () { return chunkEEW2SH76_cjs.CommandItem; }
7374
+ get: function () { return chunkXD4P4KRH_cjs.CommandItem; }
7328
7375
  });
7329
7376
  Object.defineProperty(exports, "CommandList", {
7330
7377
  enumerable: true,
7331
- get: function () { return chunkEEW2SH76_cjs.CommandList; }
7378
+ get: function () { return chunkXD4P4KRH_cjs.CommandList; }
7332
7379
  });
7333
7380
  Object.defineProperty(exports, "CommandSeparator", {
7334
7381
  enumerable: true,
7335
- get: function () { return chunkEEW2SH76_cjs.CommandSeparator; }
7382
+ get: function () { return chunkXD4P4KRH_cjs.CommandSeparator; }
7336
7383
  });
7337
7384
  Object.defineProperty(exports, "CommandShortcut", {
7338
7385
  enumerable: true,
7339
- get: function () { return chunkEEW2SH76_cjs.CommandShortcut; }
7386
+ get: function () { return chunkXD4P4KRH_cjs.CommandShortcut; }
7387
+ });
7388
+ Object.defineProperty(exports, "DEFAULT_SEGMENTER_CONFIG", {
7389
+ enumerable: true,
7390
+ get: function () { return chunkXD4P4KRH_cjs.DEFAULT_SEGMENTER_CONFIG; }
7340
7391
  });
7341
7392
  Object.defineProperty(exports, "DictateProvider", {
7342
7393
  enumerable: true,
7343
- get: function () { return chunkEEW2SH76_cjs.DictateProvider; }
7394
+ get: function () { return chunkXD4P4KRH_cjs.DictateProvider; }
7344
7395
  });
7345
7396
  Object.defineProperty(exports, "DocIcon", {
7346
7397
  enumerable: true,
7347
- get: function () { return chunkEEW2SH76_cjs.DocIcon; }
7398
+ get: function () { return chunkXD4P4KRH_cjs.DocIcon; }
7348
7399
  });
7349
7400
  Object.defineProperty(exports, "DocumentCard", {
7350
7401
  enumerable: true,
7351
- get: function () { return chunkEEW2SH76_cjs.DocumentCard; }
7402
+ get: function () { return chunkXD4P4KRH_cjs.DocumentCard; }
7352
7403
  });
7353
7404
  Object.defineProperty(exports, "DocumentEntity", {
7354
7405
  enumerable: true,
7355
- get: function () { return chunkEEW2SH76_cjs.DocumentEntity; }
7406
+ get: function () { return chunkXD4P4KRH_cjs.DocumentEntity; }
7356
7407
  });
7357
7408
  Object.defineProperty(exports, "ENTITY_MAPPINGS", {
7358
7409
  enumerable: true,
7359
- get: function () { return chunkEEW2SH76_cjs.ENTITY_MAPPINGS; }
7410
+ get: function () { return chunkXD4P4KRH_cjs.ENTITY_MAPPINGS; }
7360
7411
  });
7361
7412
  Object.defineProperty(exports, "EmlIcon", {
7362
7413
  enumerable: true,
7363
- get: function () { return chunkEEW2SH76_cjs.EmlIcon; }
7414
+ get: function () { return chunkXD4P4KRH_cjs.EmlIcon; }
7364
7415
  });
7365
7416
  Object.defineProperty(exports, "EntityIcon", {
7366
7417
  enumerable: true,
7367
- get: function () { return chunkEEW2SH76_cjs.EntityIcon; }
7418
+ get: function () { return chunkXD4P4KRH_cjs.EntityIcon; }
7368
7419
  });
7369
7420
  Object.defineProperty(exports, "EntityPill", {
7370
7421
  enumerable: true,
7371
- get: function () { return chunkEEW2SH76_cjs.EntityPill; }
7422
+ get: function () { return chunkXD4P4KRH_cjs.EntityPill; }
7372
7423
  });
7373
7424
  Object.defineProperty(exports, "FILE_TYPE_COLORS", {
7374
7425
  enumerable: true,
7375
- get: function () { return chunkEEW2SH76_cjs.FILE_TYPE_COLORS; }
7426
+ get: function () { return chunkXD4P4KRH_cjs.FILE_TYPE_COLORS; }
7376
7427
  });
7377
7428
  Object.defineProperty(exports, "HoverCard", {
7378
7429
  enumerable: true,
7379
- get: function () { return chunkEEW2SH76_cjs.HoverCard; }
7430
+ get: function () { return chunkXD4P4KRH_cjs.HoverCard; }
7380
7431
  });
7381
7432
  Object.defineProperty(exports, "HoverCardContent", {
7382
7433
  enumerable: true,
7383
- get: function () { return chunkEEW2SH76_cjs.HoverCardContent; }
7434
+ get: function () { return chunkXD4P4KRH_cjs.HoverCardContent; }
7384
7435
  });
7385
7436
  Object.defineProperty(exports, "HoverCardTrigger", {
7386
7437
  enumerable: true,
7387
- get: function () { return chunkEEW2SH76_cjs.HoverCardTrigger; }
7438
+ get: function () { return chunkXD4P4KRH_cjs.HoverCardTrigger; }
7388
7439
  });
7389
7440
  Object.defineProperty(exports, "HtmlIcon", {
7390
7441
  enumerable: true,
7391
- get: function () { return chunkEEW2SH76_cjs.HtmlIcon; }
7442
+ get: function () { return chunkXD4P4KRH_cjs.HtmlIcon; }
7443
+ });
7444
+ Object.defineProperty(exports, "INITIAL_SEGMENTER_STATE", {
7445
+ enumerable: true,
7446
+ get: function () { return chunkXD4P4KRH_cjs.INITIAL_SEGMENTER_STATE; }
7392
7447
  });
7393
7448
  Object.defineProperty(exports, "IconToggle", {
7394
7449
  enumerable: true,
7395
- get: function () { return chunkEEW2SH76_cjs.IconToggle; }
7450
+ get: function () { return chunkXD4P4KRH_cjs.IconToggle; }
7396
7451
  });
7397
7452
  Object.defineProperty(exports, "ImgIcon", {
7398
7453
  enumerable: true,
7399
- get: function () { return chunkEEW2SH76_cjs.ImgIcon; }
7454
+ get: function () { return chunkXD4P4KRH_cjs.ImgIcon; }
7400
7455
  });
7401
7456
  Object.defineProperty(exports, "InlineMicButton", {
7402
7457
  enumerable: true,
7403
- get: function () { return chunkEEW2SH76_cjs.InlineMicButton; }
7458
+ get: function () { return chunkXD4P4KRH_cjs.InlineMicButton; }
7404
7459
  });
7405
7460
  Object.defineProperty(exports, "Input", {
7406
7461
  enumerable: true,
7407
- get: function () { return chunkEEW2SH76_cjs.Input; }
7462
+ get: function () { return chunkXD4P4KRH_cjs.Input; }
7408
7463
  });
7409
7464
  Object.defineProperty(exports, "Label", {
7410
7465
  enumerable: true,
7411
- get: function () { return chunkEEW2SH76_cjs.Label; }
7466
+ get: function () { return chunkXD4P4KRH_cjs.Label; }
7412
7467
  });
7413
7468
  Object.defineProperty(exports, "MarkMenu", {
7414
7469
  enumerable: true,
7415
- get: function () { return chunkEEW2SH76_cjs.MarkMenu; }
7470
+ get: function () { return chunkXD4P4KRH_cjs.MarkMenu; }
7416
7471
  });
7417
7472
  Object.defineProperty(exports, "MicRecordingOverlay", {
7418
7473
  enumerable: true,
7419
- get: function () { return chunkEEW2SH76_cjs.MicRecordingOverlay; }
7474
+ get: function () { return chunkXD4P4KRH_cjs.MicRecordingOverlay; }
7420
7475
  });
7421
7476
  Object.defineProperty(exports, "MicWaveformIndicator", {
7422
7477
  enumerable: true,
7423
- get: function () { return chunkEEW2SH76_cjs.MicWaveformIndicator; }
7478
+ get: function () { return chunkXD4P4KRH_cjs.MicWaveformIndicator; }
7424
7479
  });
7425
7480
  Object.defineProperty(exports, "NEUTRAL_GRAY", {
7426
7481
  enumerable: true,
7427
- get: function () { return chunkEEW2SH76_cjs.NEUTRAL_GRAY; }
7482
+ get: function () { return chunkXD4P4KRH_cjs.NEUTRAL_GRAY; }
7428
7483
  });
7429
7484
  Object.defineProperty(exports, "PLACEHOLDER_COLOR", {
7430
7485
  enumerable: true,
7431
- get: function () { return chunkEEW2SH76_cjs.PLACEHOLDER_COLOR; }
7486
+ get: function () { return chunkXD4P4KRH_cjs.PLACEHOLDER_COLOR; }
7432
7487
  });
7433
7488
  Object.defineProperty(exports, "PassageCard", {
7434
7489
  enumerable: true,
7435
- get: function () { return chunkEEW2SH76_cjs.PassageCard; }
7490
+ get: function () { return chunkXD4P4KRH_cjs.PassageCard; }
7436
7491
  });
7437
7492
  Object.defineProperty(exports, "PdfIcon", {
7438
7493
  enumerable: true,
7439
- get: function () { return chunkEEW2SH76_cjs.PdfIcon; }
7494
+ get: function () { return chunkXD4P4KRH_cjs.PdfIcon; }
7440
7495
  });
7441
7496
  Object.defineProperty(exports, "Popover", {
7442
7497
  enumerable: true,
7443
- get: function () { return chunkEEW2SH76_cjs.Popover; }
7498
+ get: function () { return chunkXD4P4KRH_cjs.Popover; }
7444
7499
  });
7445
7500
  Object.defineProperty(exports, "PopoverAnchor", {
7446
7501
  enumerable: true,
7447
- get: function () { return chunkEEW2SH76_cjs.PopoverAnchor; }
7502
+ get: function () { return chunkXD4P4KRH_cjs.PopoverAnchor; }
7448
7503
  });
7449
7504
  Object.defineProperty(exports, "PopoverContent", {
7450
7505
  enumerable: true,
7451
- get: function () { return chunkEEW2SH76_cjs.PopoverContent; }
7506
+ get: function () { return chunkXD4P4KRH_cjs.PopoverContent; }
7452
7507
  });
7453
7508
  Object.defineProperty(exports, "PopoverTrigger", {
7454
7509
  enumerable: true,
7455
- get: function () { return chunkEEW2SH76_cjs.PopoverTrigger; }
7510
+ get: function () { return chunkXD4P4KRH_cjs.PopoverTrigger; }
7456
7511
  });
7457
7512
  Object.defineProperty(exports, "PresenceLabel", {
7458
7513
  enumerable: true,
7459
- get: function () { return chunkEEW2SH76_cjs.PresenceLabel; }
7514
+ get: function () { return chunkXD4P4KRH_cjs.PresenceLabel; }
7460
7515
  });
7461
7516
  Object.defineProperty(exports, "Progress", {
7462
7517
  enumerable: true,
7463
- get: function () { return chunkEEW2SH76_cjs.Progress; }
7518
+ get: function () { return chunkXD4P4KRH_cjs.Progress; }
7464
7519
  });
7465
7520
  Object.defineProperty(exports, "ProjectEntity", {
7466
7521
  enumerable: true,
7467
- get: function () { return chunkEEW2SH76_cjs.ProjectEntity; }
7522
+ get: function () { return chunkXD4P4KRH_cjs.ProjectEntity; }
7468
7523
  });
7469
7524
  Object.defineProperty(exports, "RadioGroup", {
7470
7525
  enumerable: true,
7471
- get: function () { return chunkEEW2SH76_cjs.RadioGroup; }
7526
+ get: function () { return chunkXD4P4KRH_cjs.RadioGroup; }
7472
7527
  });
7473
7528
  Object.defineProperty(exports, "RadioGroupItem", {
7474
7529
  enumerable: true,
7475
- get: function () { return chunkEEW2SH76_cjs.RadioGroupItem; }
7530
+ get: function () { return chunkXD4P4KRH_cjs.RadioGroupItem; }
7476
7531
  });
7477
7532
  Object.defineProperty(exports, "RagDot", {
7478
7533
  enumerable: true,
7479
- get: function () { return chunkEEW2SH76_cjs.RagDot; }
7534
+ get: function () { return chunkXD4P4KRH_cjs.RagDot; }
7480
7535
  });
7481
7536
  Object.defineProperty(exports, "RelevanceDot", {
7482
7537
  enumerable: true,
7483
- get: function () { return chunkEEW2SH76_cjs.RelevanceDot; }
7538
+ get: function () { return chunkXD4P4KRH_cjs.RelevanceDot; }
7484
7539
  });
7485
7540
  Object.defineProperty(exports, "Select", {
7486
7541
  enumerable: true,
7487
- get: function () { return chunkEEW2SH76_cjs.Select; }
7542
+ get: function () { return chunkXD4P4KRH_cjs.Select; }
7488
7543
  });
7489
7544
  Object.defineProperty(exports, "SelectContent", {
7490
7545
  enumerable: true,
7491
- get: function () { return chunkEEW2SH76_cjs.SelectContent; }
7546
+ get: function () { return chunkXD4P4KRH_cjs.SelectContent; }
7492
7547
  });
7493
7548
  Object.defineProperty(exports, "SelectGroup", {
7494
7549
  enumerable: true,
7495
- get: function () { return chunkEEW2SH76_cjs.SelectGroup; }
7550
+ get: function () { return chunkXD4P4KRH_cjs.SelectGroup; }
7496
7551
  });
7497
7552
  Object.defineProperty(exports, "SelectItem", {
7498
7553
  enumerable: true,
7499
- get: function () { return chunkEEW2SH76_cjs.SelectItem; }
7554
+ get: function () { return chunkXD4P4KRH_cjs.SelectItem; }
7500
7555
  });
7501
7556
  Object.defineProperty(exports, "SelectLabel", {
7502
7557
  enumerable: true,
7503
- get: function () { return chunkEEW2SH76_cjs.SelectLabel; }
7558
+ get: function () { return chunkXD4P4KRH_cjs.SelectLabel; }
7504
7559
  });
7505
7560
  Object.defineProperty(exports, "SelectScrollDownButton", {
7506
7561
  enumerable: true,
7507
- get: function () { return chunkEEW2SH76_cjs.SelectScrollDownButton; }
7562
+ get: function () { return chunkXD4P4KRH_cjs.SelectScrollDownButton; }
7508
7563
  });
7509
7564
  Object.defineProperty(exports, "SelectScrollUpButton", {
7510
7565
  enumerable: true,
7511
- get: function () { return chunkEEW2SH76_cjs.SelectScrollUpButton; }
7566
+ get: function () { return chunkXD4P4KRH_cjs.SelectScrollUpButton; }
7512
7567
  });
7513
7568
  Object.defineProperty(exports, "SelectSeparator", {
7514
7569
  enumerable: true,
7515
- get: function () { return chunkEEW2SH76_cjs.SelectSeparator; }
7570
+ get: function () { return chunkXD4P4KRH_cjs.SelectSeparator; }
7516
7571
  });
7517
7572
  Object.defineProperty(exports, "SelectTrigger", {
7518
7573
  enumerable: true,
7519
- get: function () { return chunkEEW2SH76_cjs.SelectTrigger; }
7574
+ get: function () { return chunkXD4P4KRH_cjs.SelectTrigger; }
7520
7575
  });
7521
7576
  Object.defineProperty(exports, "SelectValue", {
7522
7577
  enumerable: true,
7523
- get: function () { return chunkEEW2SH76_cjs.SelectValue; }
7578
+ get: function () { return chunkXD4P4KRH_cjs.SelectValue; }
7524
7579
  });
7525
7580
  Object.defineProperty(exports, "Separator", {
7526
7581
  enumerable: true,
7527
- get: function () { return chunkEEW2SH76_cjs.Separator; }
7582
+ get: function () { return chunkXD4P4KRH_cjs.Separator; }
7528
7583
  });
7529
7584
  Object.defineProperty(exports, "Slider", {
7530
7585
  enumerable: true,
7531
- get: function () { return chunkEEW2SH76_cjs.Slider; }
7586
+ get: function () { return chunkXD4P4KRH_cjs.Slider; }
7532
7587
  });
7533
7588
  Object.defineProperty(exports, "StatusPill", {
7534
7589
  enumerable: true,
7535
- get: function () { return chunkEEW2SH76_cjs.StatusPill; }
7590
+ get: function () { return chunkXD4P4KRH_cjs.StatusPill; }
7536
7591
  });
7537
7592
  Object.defineProperty(exports, "Switch", {
7538
7593
  enumerable: true,
7539
- get: function () { return chunkEEW2SH76_cjs.Switch; }
7594
+ get: function () { return chunkXD4P4KRH_cjs.Switch; }
7540
7595
  });
7541
7596
  Object.defineProperty(exports, "TAG_TYPE_ICONS", {
7542
7597
  enumerable: true,
7543
- get: function () { return chunkEEW2SH76_cjs.TAG_TYPE_ICONS; }
7598
+ get: function () { return chunkXD4P4KRH_cjs.TAG_TYPE_ICONS; }
7544
7599
  });
7545
7600
  Object.defineProperty(exports, "TAG_TYPE_LABELS", {
7546
7601
  enumerable: true,
7547
- get: function () { return chunkEEW2SH76_cjs.TAG_TYPE_LABELS; }
7602
+ get: function () { return chunkXD4P4KRH_cjs.TAG_TYPE_LABELS; }
7548
7603
  });
7549
7604
  Object.defineProperty(exports, "Table", {
7550
7605
  enumerable: true,
7551
- get: function () { return chunkEEW2SH76_cjs.Table; }
7606
+ get: function () { return chunkXD4P4KRH_cjs.Table; }
7552
7607
  });
7553
7608
  Object.defineProperty(exports, "TableBody", {
7554
7609
  enumerable: true,
7555
- get: function () { return chunkEEW2SH76_cjs.TableBody; }
7610
+ get: function () { return chunkXD4P4KRH_cjs.TableBody; }
7556
7611
  });
7557
7612
  Object.defineProperty(exports, "TableCaption", {
7558
7613
  enumerable: true,
7559
- get: function () { return chunkEEW2SH76_cjs.TableCaption; }
7614
+ get: function () { return chunkXD4P4KRH_cjs.TableCaption; }
7560
7615
  });
7561
7616
  Object.defineProperty(exports, "TableCell", {
7562
7617
  enumerable: true,
7563
- get: function () { return chunkEEW2SH76_cjs.TableCell; }
7618
+ get: function () { return chunkXD4P4KRH_cjs.TableCell; }
7564
7619
  });
7565
7620
  Object.defineProperty(exports, "TableFooter", {
7566
7621
  enumerable: true,
7567
- get: function () { return chunkEEW2SH76_cjs.TableFooter; }
7622
+ get: function () { return chunkXD4P4KRH_cjs.TableFooter; }
7568
7623
  });
7569
7624
  Object.defineProperty(exports, "TableHead", {
7570
7625
  enumerable: true,
7571
- get: function () { return chunkEEW2SH76_cjs.TableHead; }
7626
+ get: function () { return chunkXD4P4KRH_cjs.TableHead; }
7572
7627
  });
7573
7628
  Object.defineProperty(exports, "TableHeader", {
7574
7629
  enumerable: true,
7575
- get: function () { return chunkEEW2SH76_cjs.TableHeader; }
7630
+ get: function () { return chunkXD4P4KRH_cjs.TableHeader; }
7576
7631
  });
7577
7632
  Object.defineProperty(exports, "TableRow", {
7578
7633
  enumerable: true,
7579
- get: function () { return chunkEEW2SH76_cjs.TableRow; }
7634
+ get: function () { return chunkXD4P4KRH_cjs.TableRow; }
7580
7635
  });
7581
7636
  Object.defineProperty(exports, "Tabs", {
7582
7637
  enumerable: true,
7583
- get: function () { return chunkEEW2SH76_cjs.Tabs; }
7638
+ get: function () { return chunkXD4P4KRH_cjs.Tabs; }
7584
7639
  });
7585
7640
  Object.defineProperty(exports, "TabsContent", {
7586
7641
  enumerable: true,
7587
- get: function () { return chunkEEW2SH76_cjs.TabsContent; }
7642
+ get: function () { return chunkXD4P4KRH_cjs.TabsContent; }
7588
7643
  });
7589
7644
  Object.defineProperty(exports, "TabsList", {
7590
7645
  enumerable: true,
7591
- get: function () { return chunkEEW2SH76_cjs.TabsList; }
7646
+ get: function () { return chunkXD4P4KRH_cjs.TabsList; }
7592
7647
  });
7593
7648
  Object.defineProperty(exports, "TabsTrigger", {
7594
7649
  enumerable: true,
7595
- get: function () { return chunkEEW2SH76_cjs.TabsTrigger; }
7650
+ get: function () { return chunkXD4P4KRH_cjs.TabsTrigger; }
7596
7651
  });
7597
7652
  Object.defineProperty(exports, "TagEntity", {
7598
7653
  enumerable: true,
7599
- get: function () { return chunkEEW2SH76_cjs.TagEntity; }
7654
+ get: function () { return chunkXD4P4KRH_cjs.TagEntity; }
7600
7655
  });
7601
7656
  Object.defineProperty(exports, "Textarea", {
7602
7657
  enumerable: true,
7603
- get: function () { return chunkEEW2SH76_cjs.Textarea; }
7658
+ get: function () { return chunkXD4P4KRH_cjs.Textarea; }
7604
7659
  });
7605
7660
  Object.defineProperty(exports, "ThreadVisibilityIcon", {
7606
7661
  enumerable: true,
7607
- get: function () { return chunkEEW2SH76_cjs.ThreadVisibilityIcon; }
7662
+ get: function () { return chunkXD4P4KRH_cjs.ThreadVisibilityIcon; }
7608
7663
  });
7609
7664
  Object.defineProperty(exports, "Toggle", {
7610
7665
  enumerable: true,
7611
- get: function () { return chunkEEW2SH76_cjs.Toggle; }
7666
+ get: function () { return chunkXD4P4KRH_cjs.Toggle; }
7612
7667
  });
7613
7668
  Object.defineProperty(exports, "ToggleGroup", {
7614
7669
  enumerable: true,
7615
- get: function () { return chunkEEW2SH76_cjs.ToggleGroup; }
7670
+ get: function () { return chunkXD4P4KRH_cjs.ToggleGroup; }
7616
7671
  });
7617
7672
  Object.defineProperty(exports, "ToggleGroupItem", {
7618
7673
  enumerable: true,
7619
- get: function () { return chunkEEW2SH76_cjs.ToggleGroupItem; }
7674
+ get: function () { return chunkXD4P4KRH_cjs.ToggleGroupItem; }
7620
7675
  });
7621
7676
  Object.defineProperty(exports, "Tooltip", {
7622
7677
  enumerable: true,
7623
- get: function () { return chunkEEW2SH76_cjs.Tooltip; }
7678
+ get: function () { return chunkXD4P4KRH_cjs.Tooltip; }
7624
7679
  });
7625
7680
  Object.defineProperty(exports, "TooltipContent", {
7626
7681
  enumerable: true,
7627
- get: function () { return chunkEEW2SH76_cjs.TooltipContent; }
7682
+ get: function () { return chunkXD4P4KRH_cjs.TooltipContent; }
7628
7683
  });
7629
7684
  Object.defineProperty(exports, "TooltipProvider", {
7630
7685
  enumerable: true,
7631
- get: function () { return chunkEEW2SH76_cjs.TooltipProvider; }
7686
+ get: function () { return chunkXD4P4KRH_cjs.TooltipProvider; }
7632
7687
  });
7633
7688
  Object.defineProperty(exports, "TooltipTrigger", {
7634
7689
  enumerable: true,
7635
- get: function () { return chunkEEW2SH76_cjs.TooltipTrigger; }
7690
+ get: function () { return chunkXD4P4KRH_cjs.TooltipTrigger; }
7636
7691
  });
7637
7692
  Object.defineProperty(exports, "TxtIcon", {
7638
7693
  enumerable: true,
7639
- get: function () { return chunkEEW2SH76_cjs.TxtIcon; }
7694
+ get: function () { return chunkXD4P4KRH_cjs.TxtIcon; }
7640
7695
  });
7641
7696
  Object.defineProperty(exports, "UserEntity", {
7642
7697
  enumerable: true,
7643
- get: function () { return chunkEEW2SH76_cjs.UserEntity; }
7698
+ get: function () { return chunkXD4P4KRH_cjs.UserEntity; }
7644
7699
  });
7645
7700
  Object.defineProperty(exports, "UserMenu", {
7646
7701
  enumerable: true,
7647
- get: function () { return chunkEEW2SH76_cjs.UserMenu; }
7702
+ get: function () { return chunkXD4P4KRH_cjs.UserMenu; }
7703
+ });
7704
+ Object.defineProperty(exports, "VIDEO_MIME_PREFERENCE", {
7705
+ enumerable: true,
7706
+ get: function () { return chunkXD4P4KRH_cjs.VIDEO_MIME_PREFERENCE; }
7648
7707
  });
7649
7708
  Object.defineProperty(exports, "VISIBILITY_ICONS", {
7650
7709
  enumerable: true,
7651
- get: function () { return chunkEEW2SH76_cjs.VISIBILITY_ICONS; }
7710
+ get: function () { return chunkXD4P4KRH_cjs.VISIBILITY_ICONS; }
7652
7711
  });
7653
7712
  Object.defineProperty(exports, "VerifiedBadge", {
7654
7713
  enumerable: true,
7655
- get: function () { return chunkEEW2SH76_cjs.VerifiedBadge; }
7714
+ get: function () { return chunkXD4P4KRH_cjs.VerifiedBadge; }
7656
7715
  });
7657
7716
  Object.defineProperty(exports, "VidIcon", {
7658
7717
  enumerable: true,
7659
- get: function () { return chunkEEW2SH76_cjs.VidIcon; }
7718
+ get: function () { return chunkXD4P4KRH_cjs.VidIcon; }
7660
7719
  });
7661
7720
  Object.defineProperty(exports, "VisibilityIcon", {
7662
7721
  enumerable: true,
7663
- get: function () { return chunkEEW2SH76_cjs.VisibilityIcon; }
7722
+ get: function () { return chunkXD4P4KRH_cjs.VisibilityIcon; }
7664
7723
  });
7665
7724
  Object.defineProperty(exports, "VisibilityToggle", {
7666
7725
  enumerable: true,
7667
- get: function () { return chunkEEW2SH76_cjs.VisibilityToggle; }
7726
+ get: function () { return chunkXD4P4KRH_cjs.VisibilityToggle; }
7668
7727
  });
7669
7728
  Object.defineProperty(exports, "XlsIcon", {
7670
7729
  enumerable: true,
7671
- get: function () { return chunkEEW2SH76_cjs.XlsIcon; }
7730
+ get: function () { return chunkXD4P4KRH_cjs.XlsIcon; }
7672
7731
  });
7673
7732
  Object.defineProperty(exports, "badgeVariants", {
7674
7733
  enumerable: true,
7675
- get: function () { return chunkEEW2SH76_cjs.badgeVariants; }
7734
+ get: function () { return chunkXD4P4KRH_cjs.badgeVariants; }
7676
7735
  });
7677
7736
  Object.defineProperty(exports, "cardVariants", {
7678
7737
  enumerable: true,
7679
- get: function () { return chunkEEW2SH76_cjs.cardVariants; }
7738
+ get: function () { return chunkXD4P4KRH_cjs.cardVariants; }
7680
7739
  });
7681
7740
  Object.defineProperty(exports, "classifyMediaError", {
7682
7741
  enumerable: true,
7683
- get: function () { return chunkEEW2SH76_cjs.classifyMediaError; }
7742
+ get: function () { return chunkXD4P4KRH_cjs.classifyMediaError; }
7684
7743
  });
7685
7744
  Object.defineProperty(exports, "configureEntityRegistry", {
7686
7745
  enumerable: true,
7687
- get: function () { return chunkEEW2SH76_cjs.configureEntityRegistry; }
7746
+ get: function () { return chunkXD4P4KRH_cjs.configureEntityRegistry; }
7688
7747
  });
7689
7748
  Object.defineProperty(exports, "configureRagLabels", {
7690
7749
  enumerable: true,
7691
- get: function () { return chunkEEW2SH76_cjs.configureRagLabels; }
7750
+ get: function () { return chunkXD4P4KRH_cjs.configureRagLabels; }
7692
7751
  });
7693
7752
  Object.defineProperty(exports, "configureStatusRegistry", {
7694
7753
  enumerable: true,
7695
- get: function () { return chunkEEW2SH76_cjs.configureStatusRegistry; }
7754
+ get: function () { return chunkXD4P4KRH_cjs.configureStatusRegistry; }
7755
+ });
7756
+ Object.defineProperty(exports, "createChunkedRecorder", {
7757
+ enumerable: true,
7758
+ get: function () { return chunkXD4P4KRH_cjs.createChunkedRecorder; }
7759
+ });
7760
+ Object.defineProperty(exports, "flushSegmenter", {
7761
+ enumerable: true,
7762
+ get: function () { return chunkXD4P4KRH_cjs.flushSegmenter; }
7696
7763
  });
7697
7764
  Object.defineProperty(exports, "formatElapsed", {
7698
7765
  enumerable: true,
7699
- get: function () { return chunkEEW2SH76_cjs.formatElapsed; }
7766
+ get: function () { return chunkXD4P4KRH_cjs.formatElapsed; }
7700
7767
  });
7701
7768
  Object.defineProperty(exports, "getDocIcon", {
7702
7769
  enumerable: true,
7703
- get: function () { return chunkEEW2SH76_cjs.getDocIcon; }
7770
+ get: function () { return chunkXD4P4KRH_cjs.getDocIcon; }
7704
7771
  });
7705
7772
  Object.defineProperty(exports, "getEntityColor", {
7706
7773
  enumerable: true,
7707
- get: function () { return chunkEEW2SH76_cjs.getEntityColor; }
7774
+ get: function () { return chunkXD4P4KRH_cjs.getEntityColor; }
7708
7775
  });
7709
7776
  Object.defineProperty(exports, "getEntityColorStyles", {
7710
7777
  enumerable: true,
7711
- get: function () { return chunkEEW2SH76_cjs.getEntityColorStyles; }
7778
+ get: function () { return chunkXD4P4KRH_cjs.getEntityColorStyles; }
7712
7779
  });
7713
7780
  Object.defineProperty(exports, "getEntityIcon", {
7714
7781
  enumerable: true,
7715
- get: function () { return chunkEEW2SH76_cjs.getEntityIcon; }
7782
+ get: function () { return chunkXD4P4KRH_cjs.getEntityIcon; }
7716
7783
  });
7717
7784
  Object.defineProperty(exports, "getEntityLabel", {
7718
7785
  enumerable: true,
7719
- get: function () { return chunkEEW2SH76_cjs.getEntityLabel; }
7786
+ get: function () { return chunkXD4P4KRH_cjs.getEntityLabel; }
7720
7787
  });
7721
7788
  Object.defineProperty(exports, "getStatusVariant", {
7722
7789
  enumerable: true,
7723
- get: function () { return chunkEEW2SH76_cjs.getStatusVariant; }
7790
+ get: function () { return chunkXD4P4KRH_cjs.getStatusVariant; }
7724
7791
  });
7725
7792
  Object.defineProperty(exports, "getTagTypeIcon", {
7726
7793
  enumerable: true,
7727
- get: function () { return chunkEEW2SH76_cjs.getTagTypeIcon; }
7794
+ get: function () { return chunkXD4P4KRH_cjs.getTagTypeIcon; }
7728
7795
  });
7729
7796
  Object.defineProperty(exports, "getTagTypeLabel", {
7730
7797
  enumerable: true,
7731
- get: function () { return chunkEEW2SH76_cjs.getTagTypeLabel; }
7798
+ get: function () { return chunkXD4P4KRH_cjs.getTagTypeLabel; }
7732
7799
  });
7733
7800
  Object.defineProperty(exports, "getWorkspaceColor", {
7734
7801
  enumerable: true,
7735
- get: function () { return chunkEEW2SH76_cjs.getWorkspaceColor; }
7802
+ get: function () { return chunkXD4P4KRH_cjs.getWorkspaceColor; }
7803
+ });
7804
+ Object.defineProperty(exports, "levelFromRms", {
7805
+ enumerable: true,
7806
+ get: function () { return chunkXD4P4KRH_cjs.levelFromRms; }
7807
+ });
7808
+ Object.defineProperty(exports, "pickRecorderMimeType", {
7809
+ enumerable: true,
7810
+ get: function () { return chunkXD4P4KRH_cjs.pickRecorderMimeType; }
7811
+ });
7812
+ Object.defineProperty(exports, "stepSegmenter", {
7813
+ enumerable: true,
7814
+ get: function () { return chunkXD4P4KRH_cjs.stepSegmenter; }
7736
7815
  });
7737
7816
  Object.defineProperty(exports, "toggleVariants", {
7738
7817
  enumerable: true,
7739
- get: function () { return chunkEEW2SH76_cjs.toggleVariants; }
7818
+ get: function () { return chunkXD4P4KRH_cjs.toggleVariants; }
7740
7819
  });
7741
7820
  Object.defineProperty(exports, "useAudioRecorder", {
7742
7821
  enumerable: true,
7743
- get: function () { return chunkEEW2SH76_cjs.useAudioRecorder; }
7822
+ get: function () { return chunkXD4P4KRH_cjs.useAudioRecorder; }
7823
+ });
7824
+ Object.defineProperty(exports, "MarkdownRenderer", {
7825
+ enumerable: true,
7826
+ get: function () { return chunkTBELZWGV_cjs.MarkdownRenderer; }
7827
+ });
7828
+ Object.defineProperty(exports, "MarkdownStreamingContext", {
7829
+ enumerable: true,
7830
+ get: function () { return chunkTBELZWGV_cjs.MarkdownStreamingContext; }
7831
+ });
7832
+ Object.defineProperty(exports, "markdownBaseComponents", {
7833
+ enumerable: true,
7834
+ get: function () { return chunkTBELZWGV_cjs.markdownBaseComponents; }
7835
+ });
7836
+ Object.defineProperty(exports, "splitMarkdownBlocks", {
7837
+ enumerable: true,
7838
+ get: function () { return chunkTBELZWGV_cjs.splitMarkdownBlocks; }
7839
+ });
7840
+ Object.defineProperty(exports, "ScrollArea", {
7841
+ enumerable: true,
7842
+ get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
7843
+ });
7844
+ Object.defineProperty(exports, "ScrollBar", {
7845
+ enumerable: true,
7846
+ get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
7744
7847
  });
7745
7848
  Object.defineProperty(exports, "Button", {
7746
7849
  enumerable: true,
@@ -7790,22 +7893,6 @@ Object.defineProperty(exports, "buttonVariants", {
7790
7893
  enumerable: true,
7791
7894
  get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
7792
7895
  });
7793
- Object.defineProperty(exports, "MarkdownRenderer", {
7794
- enumerable: true,
7795
- get: function () { return chunkTBELZWGV_cjs.MarkdownRenderer; }
7796
- });
7797
- Object.defineProperty(exports, "MarkdownStreamingContext", {
7798
- enumerable: true,
7799
- get: function () { return chunkTBELZWGV_cjs.MarkdownStreamingContext; }
7800
- });
7801
- Object.defineProperty(exports, "markdownBaseComponents", {
7802
- enumerable: true,
7803
- get: function () { return chunkTBELZWGV_cjs.markdownBaseComponents; }
7804
- });
7805
- Object.defineProperty(exports, "splitMarkdownBlocks", {
7806
- enumerable: true,
7807
- get: function () { return chunkTBELZWGV_cjs.splitMarkdownBlocks; }
7808
- });
7809
7896
  Object.defineProperty(exports, "closeOpenEmphasis", {
7810
7897
  enumerable: true,
7811
7898
  get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
@@ -7818,14 +7905,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
7818
7905
  enumerable: true,
7819
7906
  get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
7820
7907
  });
7821
- Object.defineProperty(exports, "ScrollArea", {
7822
- enumerable: true,
7823
- get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
7824
- });
7825
- Object.defineProperty(exports, "ScrollBar", {
7826
- enumerable: true,
7827
- get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
7828
- });
7829
7908
  Object.defineProperty(exports, "DropdownMenu", {
7830
7909
  enumerable: true,
7831
7910
  get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
@@ -8030,7 +8109,6 @@ exports.toProfileView = toProfileView;
8030
8109
  exports.toRedlineMarkdown = toRedlineMarkdown;
8031
8110
  exports.toShellWorkspace = toShellWorkspace;
8032
8111
  exports.useActOnStep = useActOnStep;
8033
- exports.useAddContacts = useAddContacts;
8034
8112
  exports.useAgentChats = useAgentChats;
8035
8113
  exports.useAgentConfig = useAgentConfig;
8036
8114
  exports.useAgentModels = useAgentModels;
@@ -8061,11 +8139,13 @@ exports.useConversationActivity = useConversationActivity;
8061
8139
  exports.useConversationPendingAuth = useConversationPendingAuth;
8062
8140
  exports.useConversationUsage = useConversationUsage;
8063
8141
  exports.useCreateAgent = useCreateAgent;
8142
+ exports.useCreateContact = useCreateContact;
8064
8143
  exports.useCreateWork = useCreateWork;
8065
8144
  exports.useCreateWorkflow = useCreateWorkflow;
8066
8145
  exports.useCurrentSessionId = useCurrentSessionId;
8067
8146
  exports.useDeleteAccount = useDeleteAccount;
8068
8147
  exports.useDeleteAccountFlow = useDeleteAccountFlow;
8148
+ exports.useDeleteContact = useDeleteContact;
8069
8149
  exports.useDeleteWorkflow = useDeleteWorkflow;
8070
8150
  exports.useDirectMessages = useDirectMessages;
8071
8151
  exports.useDisconnectMailAccount = useDisconnectMailAccount;
@@ -8076,6 +8156,7 @@ exports.useGrantAgentAccess = useGrantAgentAccess;
8076
8156
  exports.useIdentityVerification = useIdentityVerification;
8077
8157
  exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
8078
8158
  exports.useInvalidateTagData = useInvalidateTagData;
8159
+ exports.useInviteContacts = useInviteContacts;
8079
8160
  exports.useLogoutAllSessions = useLogoutAllSessions;
8080
8161
  exports.useMailAccounts = useMailAccounts;
8081
8162
  exports.useMailCache = useMailCache;
@@ -8099,7 +8180,6 @@ exports.usePlanWork = usePlanWork;
8099
8180
  exports.useProfile = useProfile;
8100
8181
  exports.useProjectConversationUsage = useProjectConversationUsage;
8101
8182
  exports.useProjectEvents = useProjectEvents;
8102
- exports.useRemoveContacts = useRemoveContacts;
8103
8183
  exports.useRequestEmailChange = useRequestEmailChange;
8104
8184
  exports.useRevokeAgentAccess = useRevokeAgentAccess;
8105
8185
  exports.useRunConversation = useRunConversation;
@@ -8116,6 +8196,7 @@ exports.useStartAgentSession = useStartAgentSession;
8116
8196
  exports.useStartWorkQuery = useStartWorkQuery;
8117
8197
  exports.useTagKindSchema = useTagKindSchema;
8118
8198
  exports.useTerminateSession = useTerminateSession;
8199
+ exports.useUpdateContact = useUpdateContact;
8119
8200
  exports.useUpdateConversation = useUpdateConversation;
8120
8201
  exports.useUpdateMailMessage = useUpdateMailMessage;
8121
8202
  exports.useUpdateProfile = useUpdateProfile;