@arbidocs/react 0.4.9 → 0.4.11

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,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkE7UO2JSR_cjs = require('./chunk-E7UO2JSR.cjs');
3
+ var chunkVZLGOA4A_cjs = require('./chunk-VZLGOA4A.cjs');
4
+ var chunkPGLV23SB_cjs = require('./chunk-PGLV23SB.cjs');
4
5
  var chunkTA3IZP7I_cjs = require('./chunk-TA3IZP7I.cjs');
5
6
  var chunkWBWXP2DN_cjs = require('./chunk-WBWXP2DN.cjs');
6
- var chunkPGLV23SB_cjs = require('./chunk-PGLV23SB.cjs');
7
7
  var chunkOBNTJEEO_cjs = require('./chunk-OBNTJEEO.cjs');
8
8
  var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
9
9
  var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
@@ -104,13 +104,13 @@ var TITLE_REFRESH_DELAYS_MS = [2500, 6e3, 12e3];
104
104
  function useArbiChat(options = {}) {
105
105
  const { workspaceId, model, titleLength = 48 } = options;
106
106
  const arbi = chunkZMTLGO3K_cjs.useArbi();
107
- const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkE7UO2JSR_cjs.useDocuments(workspaceId);
107
+ const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkVZLGOA4A_cjs.useDocuments(workspaceId);
108
108
  const {
109
109
  data: stored = [],
110
110
  isLoading: isLoadingThreads,
111
111
  refetch: refetchConversations
112
- } = chunkE7UO2JSR_cjs.useConversations(workspaceId);
113
- const query = chunkE7UO2JSR_cjs.useAssistantQuery();
112
+ } = chunkVZLGOA4A_cjs.useConversations(workspaceId);
113
+ const query = chunkVZLGOA4A_cjs.useAssistantQuery();
114
114
  const { mutateAsync } = query;
115
115
  const [threads, setThreads] = React.useState(() => [emptyThread()]);
116
116
  const [activeKey, setActiveKey] = React.useState(() => threads[0].key);
@@ -159,7 +159,7 @@ function useArbiChat(options = {}) {
159
159
  ];
160
160
  }, [threads, stored]);
161
161
  const needsLoad = !!active.conversationId && !active.isLoaded;
162
- const loaded = chunkE7UO2JSR_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
162
+ const loaded = chunkVZLGOA4A_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
163
163
  enabled: needsLoad
164
164
  });
165
165
  React.useEffect(() => {
@@ -699,14 +699,14 @@ function useArbiDocumentSync(workspaceId) {
699
699
  if (!workspaceId) return;
700
700
  if (client.isMessageType(msg, "batch_complete")) {
701
701
  if (msg.workspace_ext_id !== workspaceId) return;
702
- void queryClient.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.documents(workspaceId) });
703
- void queryClient.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.tags(workspaceId) });
702
+ void queryClient.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.documents(workspaceId) });
703
+ void queryClient.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.tags(workspaceId) });
704
704
  return;
705
705
  }
706
706
  if (client.isMessageType(msg, "task_update")) {
707
707
  if (msg.workspace_ext_id !== workspaceId) return;
708
708
  if (TERMINAL_STATUSES.has(msg.status)) {
709
- void queryClient.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.documents(workspaceId) });
709
+ void queryClient.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.documents(workspaceId) });
710
710
  }
711
711
  }
712
712
  });
@@ -835,7 +835,7 @@ function useShellWorkspaces(options) {
835
835
  }
836
836
  function useArbiShellWorkspaces(options = {}) {
837
837
  const arbi = chunkZMTLGO3K_cjs.useArbi();
838
- const query = chunkE7UO2JSR_cjs.useWorkspaces();
838
+ const query = chunkVZLGOA4A_cjs.useWorkspaces();
839
839
  const { select, ...rest } = options;
840
840
  const defaultSelect = React.useCallback(
841
841
  (workspace) => arbi.selectWorkspace(workspace.id),
@@ -854,7 +854,7 @@ function useCreateTask() {
854
854
  const qc = reactQuery.useQueryClient();
855
855
  return reactQuery.useMutation({
856
856
  mutationFn: (body) => arbi.tasks.create(body),
857
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.tasks() })
857
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.tasks() })
858
858
  });
859
859
  }
860
860
  function useUpdateTask() {
@@ -862,7 +862,7 @@ function useUpdateTask() {
862
862
  const qc = reactQuery.useQueryClient();
863
863
  return reactQuery.useMutation({
864
864
  mutationFn: ({ taskId, patch }) => arbi.tasks.update(taskId, patch),
865
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.tasks() })
865
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.tasks() })
866
866
  });
867
867
  }
868
868
  function useRunTask() {
@@ -871,8 +871,8 @@ function useRunTask() {
871
871
  return reactQuery.useMutation({
872
872
  mutationFn: (taskId) => arbi.tasks.runWithAuth(taskId),
873
873
  onSuccess: (_task, taskId) => Promise.all([
874
- qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.tasks() }),
875
- qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.taskRuns(taskId) })
874
+ qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.tasks() }),
875
+ qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.taskRuns(taskId) })
876
876
  ])
877
877
  });
878
878
  }
@@ -882,15 +882,15 @@ function useDeleteTask() {
882
882
  return reactQuery.useMutation({
883
883
  mutationFn: (taskId) => arbi.tasks.delete(taskId),
884
884
  onSuccess: (_result, taskId) => {
885
- qc.removeQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.taskRuns(taskId) });
886
- return qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.tasks() });
885
+ qc.removeQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.taskRuns(taskId) });
886
+ return qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.tasks() });
887
887
  }
888
888
  });
889
889
  }
890
890
  function useTaskRuns(taskId, options) {
891
891
  const arbi = chunkZMTLGO3K_cjs.useArbi();
892
892
  return reactQuery.useQuery({
893
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.taskRuns(taskId ?? ""),
893
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.taskRuns(taskId ?? ""),
894
894
  queryFn: () => arbi.tasks.listRuns(taskId),
895
895
  enabled: (options?.enabled ?? true) && !!taskId && arbi.isLoggedIn,
896
896
  refetchInterval: (q) => q.state.data?.some((r) => r.status === "running") ? 3e3 : false
@@ -901,13 +901,13 @@ function useCreateAgent() {
901
901
  const qc = reactQuery.useQueryClient();
902
902
  return reactQuery.useMutation({
903
903
  mutationFn: (name) => arbi.agents.create(name),
904
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agents() })
904
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agents() })
905
905
  });
906
906
  }
907
907
  function useAgentConfig(agentExtId, options) {
908
908
  const arbi = chunkZMTLGO3K_cjs.useArbi();
909
909
  return reactQuery.useQuery({
910
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agentConfig(agentExtId),
910
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agentConfig(agentExtId),
911
911
  queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
912
912
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
913
913
  });
@@ -915,7 +915,7 @@ function useAgentConfig(agentExtId, options) {
915
915
  function useAgentModels(options) {
916
916
  const arbi = chunkZMTLGO3K_cjs.useArbi();
917
917
  return reactQuery.useQuery({
918
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.models(),
918
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.models(),
919
919
  queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
920
920
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
921
921
  });
@@ -938,17 +938,17 @@ function useSaveAgentConfig() {
938
938
  });
939
939
  },
940
940
  onSuccess: (_saved, { agentExtId }) => Promise.all([
941
- qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.configs() }),
942
- qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
941
+ qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.configs() }),
942
+ qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
943
943
  // The agent list shows the pinned persona/model, so it refreshes too.
944
- qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agents() })
944
+ qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agents() })
945
945
  ])
946
946
  });
947
947
  }
948
948
  function useAgentWorkspaces(agentExtId, options) {
949
949
  const arbi = chunkZMTLGO3K_cjs.useArbi();
950
950
  return reactQuery.useQuery({
951
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
951
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
952
952
  queryFn: () => arbi.agents.listWorkspaces(agentExtId),
953
953
  enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
954
954
  });
@@ -969,7 +969,7 @@ function useGrantAgentAccess() {
969
969
  if (!agent?.email) throw new Error("The agent's address is unknown.");
970
970
  return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
971
971
  },
972
- onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
972
+ onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
973
973
  });
974
974
  }
975
975
  function useRevokeAgentAccess() {
@@ -988,13 +988,13 @@ function useRevokeAgentAccess() {
988
988
  if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
989
989
  }
990
990
  },
991
- onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
991
+ onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
992
992
  });
993
993
  }
994
994
  function useSkills(options) {
995
995
  const arbi = chunkZMTLGO3K_cjs.useArbi();
996
996
  return reactQuery.useQuery({
997
- queryKey: [...chunkE7UO2JSR_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
997
+ queryKey: [...chunkVZLGOA4A_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
998
998
  queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
999
999
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
1000
1000
  staleTime: 3e4
@@ -1003,7 +1003,7 @@ function useSkills(options) {
1003
1003
  function useContacts(options) {
1004
1004
  const arbi = chunkZMTLGO3K_cjs.useArbi();
1005
1005
  return reactQuery.useQuery({
1006
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.contacts(),
1006
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.contacts(),
1007
1007
  queryFn: () => arbi.contacts.list(),
1008
1008
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
1009
1009
  });
@@ -1023,7 +1023,7 @@ function useAddContacts() {
1023
1023
  const qc = reactQuery.useQueryClient();
1024
1024
  return reactQuery.useMutation({
1025
1025
  mutationFn: (emails) => arbi.contacts.add(emails),
1026
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.contacts() })
1026
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.contacts() })
1027
1027
  });
1028
1028
  }
1029
1029
  function useRemoveContacts() {
@@ -1031,7 +1031,7 @@ function useRemoveContacts() {
1031
1031
  const qc = reactQuery.useQueryClient();
1032
1032
  return reactQuery.useMutation({
1033
1033
  mutationFn: (contactIds) => arbi.contacts.remove(contactIds),
1034
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.contacts() })
1034
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.contacts() })
1035
1035
  });
1036
1036
  }
1037
1037
  function toProfileView(profile) {
@@ -1043,7 +1043,7 @@ function toProfileView(profile) {
1043
1043
  function useProfile(options) {
1044
1044
  const arbi = chunkZMTLGO3K_cjs.useArbi();
1045
1045
  return reactQuery.useQuery({
1046
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.profile(),
1046
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.profile(),
1047
1047
  queryFn: () => {
1048
1048
  const profile = arbi.user.profile();
1049
1049
  return profile ? toProfileView(profile) : null;
@@ -1066,8 +1066,8 @@ function useUpdateProfile() {
1066
1066
  return profile ? toProfileView(profile) : null;
1067
1067
  },
1068
1068
  onSuccess: (profile) => {
1069
- qc.setQueryData(chunkE7UO2JSR_cjs.arbiQueryKeys.profile(), profile);
1070
- return qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.workspaces() });
1069
+ qc.setQueryData(chunkVZLGOA4A_cjs.arbiQueryKeys.profile(), profile);
1070
+ return qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.workspaces() });
1071
1071
  }
1072
1072
  });
1073
1073
  }
@@ -1152,7 +1152,7 @@ function useConfirmEmailChange() {
1152
1152
  mutationFn: ({ newEmail, code }) => arbi.account.confirmEmailChange(newEmail, code),
1153
1153
  onSuccess: () => {
1154
1154
  const profile = arbi.user.profile();
1155
- qc.setQueryData(chunkE7UO2JSR_cjs.arbiQueryKeys.profile(), profile ? toProfileView(profile) : null);
1155
+ qc.setQueryData(chunkVZLGOA4A_cjs.arbiQueryKeys.profile(), profile ? toProfileView(profile) : null);
1156
1156
  }
1157
1157
  });
1158
1158
  }
@@ -1321,7 +1321,7 @@ function toNotificationPreferences(stored, keys) {
1321
1321
  function useUserSettings(options) {
1322
1322
  const arbi = chunkZMTLGO3K_cjs.useArbi();
1323
1323
  return reactQuery.useQuery({
1324
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.userSettings(),
1324
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.userSettings(),
1325
1325
  queryFn: () => arbi.settings.get(),
1326
1326
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
1327
1327
  });
@@ -1334,18 +1334,18 @@ function useNotificationPreferences(keys, options) {
1334
1334
  const save = reactQuery.useMutation({
1335
1335
  mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
1336
1336
  onMutate: async (patch) => {
1337
- await qc.cancelQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.userSettings() });
1338
- const previous = qc.getQueryData(chunkE7UO2JSR_cjs.arbiQueryKeys.userSettings());
1337
+ await qc.cancelQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.userSettings() });
1338
+ const previous = qc.getQueryData(chunkVZLGOA4A_cjs.arbiQueryKeys.userSettings());
1339
1339
  qc.setQueryData(
1340
- chunkE7UO2JSR_cjs.arbiQueryKeys.userSettings(),
1340
+ chunkVZLGOA4A_cjs.arbiQueryKeys.userSettings(),
1341
1341
  (old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
1342
1342
  );
1343
1343
  return { previous };
1344
1344
  },
1345
1345
  onError: (_err, _patch, context) => {
1346
- qc.setQueryData(chunkE7UO2JSR_cjs.arbiQueryKeys.userSettings(), context?.previous);
1346
+ qc.setQueryData(chunkVZLGOA4A_cjs.arbiQueryKeys.userSettings(), context?.previous);
1347
1347
  },
1348
- onSettled: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.userSettings() })
1348
+ onSettled: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.userSettings() })
1349
1349
  });
1350
1350
  const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
1351
1351
  const setAll = React.useCallback(
@@ -1371,7 +1371,7 @@ function useTerminateSession() {
1371
1371
  const qc = reactQuery.useQueryClient();
1372
1372
  return reactQuery.useMutation({
1373
1373
  mutationFn: (sessionId) => arbi.sessions.terminate(sessionId),
1374
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.sessions() })
1374
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.sessions() })
1375
1375
  });
1376
1376
  }
1377
1377
  function useLogoutAllSessions() {
@@ -1447,7 +1447,7 @@ function useDeleteAccountFlow({
1447
1447
  };
1448
1448
  }
1449
1449
  function useWorkspaceDocs(workspaceId) {
1450
- const { data: docs = [], isLoading, isError } = chunkE7UO2JSR_cjs.useDocuments(workspaceId);
1450
+ const { data: docs = [], isLoading, isError } = chunkVZLGOA4A_cjs.useDocuments(workspaceId);
1451
1451
  const docIds = React.useMemo(
1452
1452
  () => docs.map((d) => d.external_id).filter((id) => !!id),
1453
1453
  [docs]
@@ -1455,7 +1455,7 @@ function useWorkspaceDocs(workspaceId) {
1455
1455
  return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
1456
1456
  }
1457
1457
  function useAiTask() {
1458
- const mutation = chunkE7UO2JSR_cjs.useAssistantQuery();
1458
+ const mutation = chunkVZLGOA4A_cjs.useAssistantQuery();
1459
1459
  const [status, setStatus] = React.useState("idle");
1460
1460
  const [text, setText] = React.useState("");
1461
1461
  const [stepCount, setStepCount] = React.useState(0);
@@ -2047,8 +2047,8 @@ function DocumentReview({
2047
2047
  onClose,
2048
2048
  className
2049
2049
  }) {
2050
- const parsedQuery = chunkE7UO2JSR_cjs.useParsedDocument(docId, stage);
2051
- const tagsQuery = chunkE7UO2JSR_cjs.useTags(workspaceId);
2050
+ const parsedQuery = chunkVZLGOA4A_cjs.useParsedDocument(docId, stage);
2051
+ const tagsQuery = chunkVZLGOA4A_cjs.useTags(workspaceId);
2052
2052
  const tagNameById = React__default.default.useMemo(() => {
2053
2053
  const map = /* @__PURE__ */ new Map();
2054
2054
  for (const t of tagsQuery.data ?? []) {
@@ -2279,7 +2279,7 @@ function SemanticSearch({
2279
2279
  const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
2280
2280
  const [value, setValue] = React.useState("");
2281
2281
  const [selected, setSelected] = React.useState(null);
2282
- const { data: docs = [] } = chunkE7UO2JSR_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
2282
+ const { data: docs = [] } = chunkVZLGOA4A_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
2283
2283
  const docMap = React.useMemo(() => {
2284
2284
  const map = /* @__PURE__ */ new Map();
2285
2285
  for (const d of docs) if (d.external_id) map.set(d.external_id, d);
@@ -3562,7 +3562,7 @@ function ActivityFeed({
3562
3562
  enabled,
3563
3563
  "data-testid": testId = "activity-feed"
3564
3564
  }) {
3565
- const { data, isLoading, isError } = chunkE7UO2JSR_cjs.useActivity({ limit, enabled });
3565
+ const { data, isLoading, isError } = chunkVZLGOA4A_cjs.useActivity({ limit, enabled });
3566
3566
  if (isLoading) {
3567
3567
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn("space-y-2", className), "data-testid": testId, "aria-busy": "true", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 py-1.5", children: [
3568
3568
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
@@ -3686,7 +3686,7 @@ function useDirectMessages(options) {
3686
3686
  enabled
3687
3687
  });
3688
3688
  const contactsQuery = reactQuery.useQuery({
3689
- queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.contacts(),
3689
+ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.contacts(),
3690
3690
  queryFn: () => arbi.contacts.list(),
3691
3691
  enabled
3692
3692
  });
@@ -4721,10 +4721,10 @@ function DocumentTable({
4721
4721
  extraColumns,
4722
4722
  className
4723
4723
  }) {
4724
- const query = chunkE7UO2JSR_cjs.useDocuments(workspaceId, { enabled: !documents });
4724
+ const query = chunkVZLGOA4A_cjs.useDocuments(workspaceId, { enabled: !documents });
4725
4725
  const rows = documents ?? query.data ?? [];
4726
4726
  const isLoading = !documents && query.isLoading;
4727
- const tagsQuery = chunkE7UO2JSR_cjs.useTags(workspaceId);
4727
+ const tagsQuery = chunkVZLGOA4A_cjs.useTags(workspaceId);
4728
4728
  const tagNameById = React__default.default.useMemo(() => {
4729
4729
  const map = /* @__PURE__ */ new Map();
4730
4730
  for (const t of tagsQuery.data ?? []) {
@@ -4905,7 +4905,7 @@ function DocumentCardMenu({
4905
4905
  const invalidateDocuments = () => {
4906
4906
  const workspaceId = arbi.getWorkspaceId();
4907
4907
  if (workspaceId) {
4908
- void queryClient.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.documents(workspaceId) });
4908
+ void queryClient.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.documents(workspaceId) });
4909
4909
  }
4910
4910
  };
4911
4911
  const download = reactQuery.useMutation({
@@ -5004,10 +5004,10 @@ function DocumentGallery({
5004
5004
  minTileWidth = 148,
5005
5005
  className
5006
5006
  }) {
5007
- const query = chunkE7UO2JSR_cjs.useDocuments(workspaceId, { enabled: !documents });
5007
+ const query = chunkVZLGOA4A_cjs.useDocuments(workspaceId, { enabled: !documents });
5008
5008
  const rows = documents ?? query.data ?? [];
5009
5009
  const isLoading = !documents && query.isLoading;
5010
- const tagsQuery = chunkE7UO2JSR_cjs.useTags(workspaceId);
5010
+ const tagsQuery = chunkVZLGOA4A_cjs.useTags(workspaceId);
5011
5011
  const tagNameById = React__default.default.useMemo(() => {
5012
5012
  const map = /* @__PURE__ */ new Map();
5013
5013
  for (const t of tagsQuery.data ?? []) {
@@ -5019,7 +5019,7 @@ function DocumentGallery({
5019
5019
  () => rows.map((d) => d.external_id).filter((id) => !!id),
5020
5020
  [rows]
5021
5021
  );
5022
- const thumbsQuery = chunkE7UO2JSR_cjs.useThumbnails(docIds);
5022
+ const thumbsQuery = chunkVZLGOA4A_cjs.useThumbnails(docIds);
5023
5023
  const thumbs = thumbsQuery.data ?? {};
5024
5024
  const storeSelected = useArbiUiStore((s) => s.selectedDocIds);
5025
5025
  const storeSetSelected = useArbiUiStore((s) => s.setSelectedDocIds);
@@ -5055,7 +5055,7 @@ function DocumentGallery({
5055
5055
  setRenamingId(null);
5056
5056
  const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
5057
5057
  if (activeWorkspace) {
5058
- void queryClient.invalidateQueries({ queryKey: chunkE7UO2JSR_cjs.arbiQueryKeys.documents(activeWorkspace) });
5058
+ void queryClient.invalidateQueries({ queryKey: chunkVZLGOA4A_cjs.arbiQueryKeys.documents(activeWorkspace) });
5059
5059
  }
5060
5060
  }
5061
5061
  });
@@ -5673,107 +5673,167 @@ function hasVideoTrack(blob) {
5673
5673
 
5674
5674
  Object.defineProperty(exports, "DEFAULT_USD_PER_CREDIT", {
5675
5675
  enumerable: true,
5676
- get: function () { return chunkE7UO2JSR_cjs.DEFAULT_USD_PER_CREDIT; }
5676
+ get: function () { return chunkVZLGOA4A_cjs.DEFAULT_USD_PER_CREDIT; }
5677
5677
  });
5678
5678
  Object.defineProperty(exports, "arbiQueryKeys", {
5679
5679
  enumerable: true,
5680
- get: function () { return chunkE7UO2JSR_cjs.arbiQueryKeys; }
5680
+ get: function () { return chunkVZLGOA4A_cjs.arbiQueryKeys; }
5681
+ });
5682
+ Object.defineProperty(exports, "cleanDraftMarkdown", {
5683
+ enumerable: true,
5684
+ get: function () { return chunkVZLGOA4A_cjs.cleanDraftMarkdown; }
5681
5685
  });
5682
5686
  Object.defineProperty(exports, "creditsToUsd", {
5683
5687
  enumerable: true,
5684
- get: function () { return chunkE7UO2JSR_cjs.creditsToUsd; }
5688
+ get: function () { return chunkVZLGOA4A_cjs.creditsToUsd; }
5685
5689
  });
5686
5690
  Object.defineProperty(exports, "formatCredits", {
5687
5691
  enumerable: true,
5688
- get: function () { return chunkE7UO2JSR_cjs.formatCredits; }
5692
+ get: function () { return chunkVZLGOA4A_cjs.formatCredits; }
5689
5693
  });
5690
5694
  Object.defineProperty(exports, "isUsageMetered", {
5691
5695
  enumerable: true,
5692
- get: function () { return chunkE7UO2JSR_cjs.isUsageMetered; }
5696
+ get: function () { return chunkVZLGOA4A_cjs.isUsageMetered; }
5697
+ });
5698
+ Object.defineProperty(exports, "promoteBoldTitle", {
5699
+ enumerable: true,
5700
+ get: function () { return chunkVZLGOA4A_cjs.promoteBoldTitle; }
5701
+ });
5702
+ Object.defineProperty(exports, "repairParsedTitle", {
5703
+ enumerable: true,
5704
+ get: function () { return chunkVZLGOA4A_cjs.repairParsedTitle; }
5705
+ });
5706
+ Object.defineProperty(exports, "stripAgentPreamble", {
5707
+ enumerable: true,
5708
+ get: function () { return chunkVZLGOA4A_cjs.stripAgentPreamble; }
5709
+ });
5710
+ Object.defineProperty(exports, "unescapeMarkdown", {
5711
+ enumerable: true,
5712
+ get: function () { return chunkVZLGOA4A_cjs.unescapeMarkdown; }
5713
+ });
5714
+ Object.defineProperty(exports, "unwrapCitationLinks", {
5715
+ enumerable: true,
5716
+ get: function () { return chunkVZLGOA4A_cjs.unwrapCitationLinks; }
5693
5717
  });
5694
5718
  Object.defineProperty(exports, "useActivity", {
5695
5719
  enumerable: true,
5696
- get: function () { return chunkE7UO2JSR_cjs.useActivity; }
5720
+ get: function () { return chunkVZLGOA4A_cjs.useActivity; }
5697
5721
  });
5698
5722
  Object.defineProperty(exports, "useAgents", {
5699
5723
  enumerable: true,
5700
- get: function () { return chunkE7UO2JSR_cjs.useAgents; }
5724
+ get: function () { return chunkVZLGOA4A_cjs.useAgents; }
5701
5725
  });
5702
5726
  Object.defineProperty(exports, "useAssistantQuery", {
5703
5727
  enumerable: true,
5704
- get: function () { return chunkE7UO2JSR_cjs.useAssistantQuery; }
5728
+ get: function () { return chunkVZLGOA4A_cjs.useAssistantQuery; }
5705
5729
  });
5706
5730
  Object.defineProperty(exports, "useConfigs", {
5707
5731
  enumerable: true,
5708
- get: function () { return chunkE7UO2JSR_cjs.useConfigs; }
5732
+ get: function () { return chunkVZLGOA4A_cjs.useConfigs; }
5709
5733
  });
5710
5734
  Object.defineProperty(exports, "useConversationThreads", {
5711
5735
  enumerable: true,
5712
- get: function () { return chunkE7UO2JSR_cjs.useConversationThreads; }
5736
+ get: function () { return chunkVZLGOA4A_cjs.useConversationThreads; }
5713
5737
  });
5714
5738
  Object.defineProperty(exports, "useConversations", {
5715
5739
  enumerable: true,
5716
- get: function () { return chunkE7UO2JSR_cjs.useConversations; }
5740
+ get: function () { return chunkVZLGOA4A_cjs.useConversations; }
5717
5741
  });
5718
5742
  Object.defineProperty(exports, "useDeleteAgents", {
5719
5743
  enumerable: true,
5720
- get: function () { return chunkE7UO2JSR_cjs.useDeleteAgents; }
5744
+ get: function () { return chunkVZLGOA4A_cjs.useDeleteAgents; }
5721
5745
  });
5722
5746
  Object.defineProperty(exports, "useDocuments", {
5723
5747
  enumerable: true,
5724
- get: function () { return chunkE7UO2JSR_cjs.useDocuments; }
5748
+ get: function () { return chunkVZLGOA4A_cjs.useDocuments; }
5725
5749
  });
5726
5750
  Object.defineProperty(exports, "useFacts", {
5727
5751
  enumerable: true,
5728
- get: function () { return chunkE7UO2JSR_cjs.useFacts; }
5752
+ get: function () { return chunkVZLGOA4A_cjs.useFacts; }
5729
5753
  });
5730
5754
  Object.defineProperty(exports, "useHealth", {
5731
5755
  enumerable: true,
5732
- get: function () { return chunkE7UO2JSR_cjs.useHealth; }
5756
+ get: function () { return chunkVZLGOA4A_cjs.useHealth; }
5733
5757
  });
5734
5758
  Object.defineProperty(exports, "useParsedDocument", {
5735
5759
  enumerable: true,
5736
- get: function () { return chunkE7UO2JSR_cjs.useParsedDocument; }
5760
+ get: function () { return chunkVZLGOA4A_cjs.useParsedDocument; }
5737
5761
  });
5738
5762
  Object.defineProperty(exports, "useProjectInvoices", {
5739
5763
  enumerable: true,
5740
- get: function () { return chunkE7UO2JSR_cjs.useProjectInvoices; }
5764
+ get: function () { return chunkVZLGOA4A_cjs.useProjectInvoices; }
5741
5765
  });
5742
5766
  Object.defineProperty(exports, "useProjectUsage", {
5743
5767
  enumerable: true,
5744
- get: function () { return chunkE7UO2JSR_cjs.useProjectUsage; }
5768
+ get: function () { return chunkVZLGOA4A_cjs.useProjectUsage; }
5745
5769
  });
5746
5770
  Object.defineProperty(exports, "useProjects", {
5747
5771
  enumerable: true,
5748
- get: function () { return chunkE7UO2JSR_cjs.useProjects; }
5772
+ get: function () { return chunkVZLGOA4A_cjs.useProjects; }
5749
5773
  });
5750
5774
  Object.defineProperty(exports, "useProjectsUsage", {
5751
5775
  enumerable: true,
5752
- get: function () { return chunkE7UO2JSR_cjs.useProjectsUsage; }
5776
+ get: function () { return chunkVZLGOA4A_cjs.useProjectsUsage; }
5753
5777
  });
5754
5778
  Object.defineProperty(exports, "useSessions", {
5755
5779
  enumerable: true,
5756
- get: function () { return chunkE7UO2JSR_cjs.useSessions; }
5780
+ get: function () { return chunkVZLGOA4A_cjs.useSessions; }
5757
5781
  });
5758
5782
  Object.defineProperty(exports, "useTags", {
5759
5783
  enumerable: true,
5760
- get: function () { return chunkE7UO2JSR_cjs.useTags; }
5784
+ get: function () { return chunkVZLGOA4A_cjs.useTags; }
5761
5785
  });
5762
5786
  Object.defineProperty(exports, "useTasks", {
5763
5787
  enumerable: true,
5764
- get: function () { return chunkE7UO2JSR_cjs.useTasks; }
5788
+ get: function () { return chunkVZLGOA4A_cjs.useTasks; }
5765
5789
  });
5766
5790
  Object.defineProperty(exports, "useThumbnails", {
5767
5791
  enumerable: true,
5768
- get: function () { return chunkE7UO2JSR_cjs.useThumbnails; }
5792
+ get: function () { return chunkVZLGOA4A_cjs.useThumbnails; }
5769
5793
  });
5770
5794
  Object.defineProperty(exports, "useUserUsageToday", {
5771
5795
  enumerable: true,
5772
- get: function () { return chunkE7UO2JSR_cjs.useUserUsageToday; }
5796
+ get: function () { return chunkVZLGOA4A_cjs.useUserUsageToday; }
5773
5797
  });
5774
5798
  Object.defineProperty(exports, "useWorkspaces", {
5775
5799
  enumerable: true,
5776
- get: function () { return chunkE7UO2JSR_cjs.useWorkspaces; }
5800
+ get: function () { return chunkVZLGOA4A_cjs.useWorkspaces; }
5801
+ });
5802
+ Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
5803
+ enumerable: true,
5804
+ get: function () { return chunkPGLV23SB_cjs.DEFAULT_NOTIFY_TONE; }
5805
+ });
5806
+ Object.defineProperty(exports, "NotificationBell", {
5807
+ enumerable: true,
5808
+ get: function () { return chunkPGLV23SB_cjs.NotificationBell; }
5809
+ });
5810
+ Object.defineProperty(exports, "Toaster", {
5811
+ enumerable: true,
5812
+ get: function () { return chunkPGLV23SB_cjs.Toaster; }
5813
+ });
5814
+ Object.defineProperty(exports, "formatRelativeTime", {
5815
+ enumerable: true,
5816
+ get: function () { return chunkPGLV23SB_cjs.formatRelativeTime; }
5817
+ });
5818
+ Object.defineProperty(exports, "notify", {
5819
+ enumerable: true,
5820
+ get: function () { return chunkPGLV23SB_cjs.notify; }
5821
+ });
5822
+ Object.defineProperty(exports, "seedNotifications", {
5823
+ enumerable: true,
5824
+ get: function () { return chunkPGLV23SB_cjs.seedNotifications; }
5825
+ });
5826
+ Object.defineProperty(exports, "selectUnread", {
5827
+ enumerable: true,
5828
+ get: function () { return chunkPGLV23SB_cjs.selectUnread; }
5829
+ });
5830
+ Object.defineProperty(exports, "toast", {
5831
+ enumerable: true,
5832
+ get: function () { return chunkPGLV23SB_cjs.toast; }
5833
+ });
5834
+ Object.defineProperty(exports, "useNotify", {
5835
+ enumerable: true,
5836
+ get: function () { return chunkPGLV23SB_cjs.useNotify; }
5777
5837
  });
5778
5838
  Object.defineProperty(exports, "AgentBadge", {
5779
5839
  enumerable: true,
@@ -6335,42 +6395,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
6335
6395
  enumerable: true,
6336
6396
  get: function () { return chunkWBWXP2DN_cjs.trimOpenCitation; }
6337
6397
  });
6338
- Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
6339
- enumerable: true,
6340
- get: function () { return chunkPGLV23SB_cjs.DEFAULT_NOTIFY_TONE; }
6341
- });
6342
- Object.defineProperty(exports, "NotificationBell", {
6343
- enumerable: true,
6344
- get: function () { return chunkPGLV23SB_cjs.NotificationBell; }
6345
- });
6346
- Object.defineProperty(exports, "Toaster", {
6347
- enumerable: true,
6348
- get: function () { return chunkPGLV23SB_cjs.Toaster; }
6349
- });
6350
- Object.defineProperty(exports, "formatRelativeTime", {
6351
- enumerable: true,
6352
- get: function () { return chunkPGLV23SB_cjs.formatRelativeTime; }
6353
- });
6354
- Object.defineProperty(exports, "notify", {
6355
- enumerable: true,
6356
- get: function () { return chunkPGLV23SB_cjs.notify; }
6357
- });
6358
- Object.defineProperty(exports, "seedNotifications", {
6359
- enumerable: true,
6360
- get: function () { return chunkPGLV23SB_cjs.seedNotifications; }
6361
- });
6362
- Object.defineProperty(exports, "selectUnread", {
6363
- enumerable: true,
6364
- get: function () { return chunkPGLV23SB_cjs.selectUnread; }
6365
- });
6366
- Object.defineProperty(exports, "toast", {
6367
- enumerable: true,
6368
- get: function () { return chunkPGLV23SB_cjs.toast; }
6369
- });
6370
- Object.defineProperty(exports, "useNotify", {
6371
- enumerable: true,
6372
- get: function () { return chunkPGLV23SB_cjs.useNotify; }
6373
- });
6374
6398
  Object.defineProperty(exports, "DropdownMenu", {
6375
6399
  enumerable: true,
6376
6400
  get: function () { return chunkOBNTJEEO_cjs.DropdownMenu; }
package/dist/index.d.cts CHANGED
@@ -12,6 +12,7 @@ import { ab as EntityIconComponent } from './index-4WLy-KDK.cjs';
12
12
  export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PresenceDisplayStatus, aC as PresenceLabel, aD as Progress, aE as ProjectEntity, aF as ProjectEntityProps, aG as ProjectRelation, aH as RadioGroup, aI as RadioGroupItem, aJ as Rag, aK as RagDot, aL as RelevanceDot, aM as ScrollArea, aN as ScrollBar, aO as Select, aP as SelectContent, aQ as SelectGroup, aR as SelectItem, aS as SelectLabel, aT as SelectScrollDownButton, aU as SelectScrollUpButton, aV as SelectSeparator, aW as SelectTrigger, aX as SelectValue, aY as Separator, aZ as Slider, a_ as StatusBadgeComponent, a$ as StatusBadgeProps, b0 as StatusPill, b1 as StatusPillProps, b2 as StatusVariant, b3 as Switch, b4 as TAG_TYPE_ICONS, b5 as TAG_TYPE_LABELS, b6 as Table, b7 as TableBody, b8 as TableCaption, b9 as TableCell, ba as TableFooter, bb as TableHead, bc as TableHeader, bd as TableRow, be as Tabs, bf as TabsContent, bg as TabsList, bh as TabsTrigger, bi as TagEntity, bj as TagEntityProps, bk as TagLike, bl as Textarea, bm as TextareaProps, bn as Toggle, bo as ToggleGroup, bp as ToggleGroupItem, bq as Tooltip, br as TooltipContent, bs as TooltipProvider, bt as TooltipTrigger, bu as UserEntity, bv as UserEntityProps, bw as UserMenu, bx as UserMenuItem, by as UserMenuProps, bz as UserMenuStatus, bA as VISIBILITY_ICONS, bB as VisibilityIcon, bC as badgeVariants, bD as buttonVariants, bE as cardVariants, bF as closeOpenEmphasis, bG as cn, bH as configureEntityRegistry, bI as configureRagLabels, bJ as configureStatusRegistry, bK as getDocIcon, bL as getEntityColor, bM as getEntityColorStyles, bN as getEntityIcon, bO as getEntityLabel, bP as getStatusVariant, bQ as getTagTypeIcon, bR as getTagTypeLabel, bS as getWorkspaceColor, bT as markdownBaseComponents, bU as normalizeCitationMarkup, bV as splitMarkdownBlocks, bW as toggleVariants, bX as trimOpenCitation } from './index-4WLy-KDK.cjs';
13
13
  import { LucideIcon } from 'lucide-react';
14
14
  import { Components } from 'react-markdown';
15
+ export { c as cleanDraftMarkdown, p as promoteBoldTitle, r as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, a as unwrapCitationLinks } from './stored-markdown-DMwFzWhc.cjs';
15
16
  export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-CcbVSNSP.cjs';
16
17
  import { ColDef } from 'ag-grid-community';
17
18
  export { ToasterProps, toast } from 'sonner';
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import { ab as EntityIconComponent } from './index-4WLy-KDK.js';
12
12
  export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PresenceDisplayStatus, aC as PresenceLabel, aD as Progress, aE as ProjectEntity, aF as ProjectEntityProps, aG as ProjectRelation, aH as RadioGroup, aI as RadioGroupItem, aJ as Rag, aK as RagDot, aL as RelevanceDot, aM as ScrollArea, aN as ScrollBar, aO as Select, aP as SelectContent, aQ as SelectGroup, aR as SelectItem, aS as SelectLabel, aT as SelectScrollDownButton, aU as SelectScrollUpButton, aV as SelectSeparator, aW as SelectTrigger, aX as SelectValue, aY as Separator, aZ as Slider, a_ as StatusBadgeComponent, a$ as StatusBadgeProps, b0 as StatusPill, b1 as StatusPillProps, b2 as StatusVariant, b3 as Switch, b4 as TAG_TYPE_ICONS, b5 as TAG_TYPE_LABELS, b6 as Table, b7 as TableBody, b8 as TableCaption, b9 as TableCell, ba as TableFooter, bb as TableHead, bc as TableHeader, bd as TableRow, be as Tabs, bf as TabsContent, bg as TabsList, bh as TabsTrigger, bi as TagEntity, bj as TagEntityProps, bk as TagLike, bl as Textarea, bm as TextareaProps, bn as Toggle, bo as ToggleGroup, bp as ToggleGroupItem, bq as Tooltip, br as TooltipContent, bs as TooltipProvider, bt as TooltipTrigger, bu as UserEntity, bv as UserEntityProps, bw as UserMenu, bx as UserMenuItem, by as UserMenuProps, bz as UserMenuStatus, bA as VISIBILITY_ICONS, bB as VisibilityIcon, bC as badgeVariants, bD as buttonVariants, bE as cardVariants, bF as closeOpenEmphasis, bG as cn, bH as configureEntityRegistry, bI as configureRagLabels, bJ as configureStatusRegistry, bK as getDocIcon, bL as getEntityColor, bM as getEntityColorStyles, bN as getEntityIcon, bO as getEntityLabel, bP as getStatusVariant, bQ as getTagTypeIcon, bR as getTagTypeLabel, bS as getWorkspaceColor, bT as markdownBaseComponents, bU as normalizeCitationMarkup, bV as splitMarkdownBlocks, bW as toggleVariants, bX as trimOpenCitation } from './index-4WLy-KDK.js';
13
13
  import { LucideIcon } from 'lucide-react';
14
14
  import { Components } from 'react-markdown';
15
+ export { c as cleanDraftMarkdown, p as promoteBoldTitle, r as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, a as unwrapCitationLinks } from './stored-markdown-DMwFzWhc.js';
15
16
  export { A as AppNotification, D as DEFAULT_NOTIFY_TONE, N as NotificationBell, a as NotificationBellProps, b as NotificationBellTriggerState, c as NotifyOptions, d as NotifyVariant, T as Toaster, n as notify, s as seedNotifications, e as selectUnread, u as useNotify } from './index-CcbVSNSP.js';
16
17
  import { ColDef } from 'ag-grid-community';
17
18
  export { ToasterProps, toast } from 'sonner';