@arbidocs/react 0.4.13 → 0.4.14
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/artifacts/index.cjs +34 -15
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.cts +13 -4
- package/dist/artifacts/index.d.ts +13 -4
- package/dist/artifacts/index.js +20 -5
- package/dist/artifacts/index.js.map +1 -1
- package/dist/{chunk-EX4X2VTR.js → chunk-4XWSLFMN.js} +79 -25
- package/dist/chunk-4XWSLFMN.js.map +1 -0
- package/dist/{chunk-3MFESAPI.cjs → chunk-MQRBPFOZ.cjs} +79 -24
- package/dist/chunk-MQRBPFOZ.cjs.map +1 -0
- package/dist/index.cjs +91 -87
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/{stored-markdown-BWTkS6wX.d.cts → stored-markdown-Bp18vrbr.d.cts} +53 -15
- package/dist/{stored-markdown-BWTkS6wX.d.ts → stored-markdown-Bp18vrbr.d.ts} +53 -15
- package/package.json +3 -3
- package/dist/chunk-3MFESAPI.cjs.map +0 -1
- package/dist/chunk-EX4X2VTR.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMQRBPFOZ_cjs = require('./chunk-MQRBPFOZ.cjs');
|
|
4
4
|
var chunkPGLV23SB_cjs = require('./chunk-PGLV23SB.cjs');
|
|
5
5
|
var chunkTA3IZP7I_cjs = require('./chunk-TA3IZP7I.cjs');
|
|
6
6
|
var chunkWBWXP2DN_cjs = require('./chunk-WBWXP2DN.cjs');
|
|
@@ -122,13 +122,13 @@ function useArbiChat(options = {}) {
|
|
|
122
122
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
123
123
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
124
124
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
125
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
125
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkMQRBPFOZ_cjs.useDocuments(workspaceId);
|
|
126
126
|
const {
|
|
127
127
|
data: stored = [],
|
|
128
128
|
isLoading: isLoadingThreads,
|
|
129
129
|
refetch: refetchConversations
|
|
130
|
-
} =
|
|
131
|
-
const query =
|
|
130
|
+
} = chunkMQRBPFOZ_cjs.useConversations(workspaceId);
|
|
131
|
+
const query = chunkMQRBPFOZ_cjs.useAssistantQuery();
|
|
132
132
|
const { mutateAsync } = query;
|
|
133
133
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
134
134
|
const [activeKey, setActiveKey] = React.useState(() => threads[0].key);
|
|
@@ -177,7 +177,7 @@ function useArbiChat(options = {}) {
|
|
|
177
177
|
];
|
|
178
178
|
}, [threads, stored]);
|
|
179
179
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
180
|
-
const loaded =
|
|
180
|
+
const loaded = chunkMQRBPFOZ_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
181
181
|
enabled: needsLoad
|
|
182
182
|
});
|
|
183
183
|
React.useEffect(() => {
|
|
@@ -784,14 +784,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
784
784
|
if (!workspaceId) return;
|
|
785
785
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
786
786
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
787
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
788
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
787
|
+
void queryClient.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
788
|
+
void queryClient.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
791
791
|
if (client.isMessageType(msg, "task_update")) {
|
|
792
792
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
793
793
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
794
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
794
|
+
void queryClient.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
});
|
|
@@ -920,7 +920,7 @@ function useShellWorkspaces(options) {
|
|
|
920
920
|
}
|
|
921
921
|
function useArbiShellWorkspaces(options = {}) {
|
|
922
922
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
923
|
-
const query =
|
|
923
|
+
const query = chunkMQRBPFOZ_cjs.useWorkspaces();
|
|
924
924
|
const { select, ...rest } = options;
|
|
925
925
|
const defaultSelect = React.useCallback(
|
|
926
926
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -939,7 +939,7 @@ function useCreateTask() {
|
|
|
939
939
|
const qc = reactQuery.useQueryClient();
|
|
940
940
|
return reactQuery.useMutation({
|
|
941
941
|
mutationFn: (body) => arbi.tasks.create(body),
|
|
942
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
942
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.tasks() })
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
945
|
function useUpdateTask() {
|
|
@@ -947,7 +947,7 @@ function useUpdateTask() {
|
|
|
947
947
|
const qc = reactQuery.useQueryClient();
|
|
948
948
|
return reactQuery.useMutation({
|
|
949
949
|
mutationFn: ({ taskId, patch }) => arbi.tasks.update(taskId, patch),
|
|
950
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
950
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.tasks() })
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
function useRunTask() {
|
|
@@ -956,8 +956,8 @@ function useRunTask() {
|
|
|
956
956
|
return reactQuery.useMutation({
|
|
957
957
|
mutationFn: (taskId) => arbi.tasks.runWithAuth(taskId),
|
|
958
958
|
onSuccess: (_task, taskId) => Promise.all([
|
|
959
|
-
qc.invalidateQueries({ queryKey:
|
|
960
|
-
qc.invalidateQueries({ queryKey:
|
|
959
|
+
qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.tasks() }),
|
|
960
|
+
qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.taskRuns(taskId) })
|
|
961
961
|
])
|
|
962
962
|
});
|
|
963
963
|
}
|
|
@@ -967,15 +967,15 @@ function useDeleteTask() {
|
|
|
967
967
|
return reactQuery.useMutation({
|
|
968
968
|
mutationFn: (taskId) => arbi.tasks.delete(taskId),
|
|
969
969
|
onSuccess: (_result, taskId) => {
|
|
970
|
-
qc.removeQueries({ queryKey:
|
|
971
|
-
return qc.invalidateQueries({ queryKey:
|
|
970
|
+
qc.removeQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.taskRuns(taskId) });
|
|
971
|
+
return qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.tasks() });
|
|
972
972
|
}
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
975
|
function useTaskRuns(taskId, options) {
|
|
976
976
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
977
977
|
return reactQuery.useQuery({
|
|
978
|
-
queryKey:
|
|
978
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.taskRuns(taskId ?? ""),
|
|
979
979
|
queryFn: () => arbi.tasks.listRuns(taskId),
|
|
980
980
|
enabled: (options?.enabled ?? true) && !!taskId && arbi.isLoggedIn,
|
|
981
981
|
refetchInterval: (q) => q.state.data?.some((r) => r.status === "running") ? 3e3 : false
|
|
@@ -986,13 +986,13 @@ function useCreateAgent() {
|
|
|
986
986
|
const qc = reactQuery.useQueryClient();
|
|
987
987
|
return reactQuery.useMutation({
|
|
988
988
|
mutationFn: (name) => arbi.agents.create(name),
|
|
989
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
989
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agents() })
|
|
990
990
|
});
|
|
991
991
|
}
|
|
992
992
|
function useAgentConfig(agentExtId, options) {
|
|
993
993
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
994
994
|
return reactQuery.useQuery({
|
|
995
|
-
queryKey:
|
|
995
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
996
996
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
997
997
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
998
998
|
});
|
|
@@ -1000,7 +1000,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
1000
1000
|
function useAgentModels(options) {
|
|
1001
1001
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
1002
1002
|
return reactQuery.useQuery({
|
|
1003
|
-
queryKey:
|
|
1003
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.models(),
|
|
1004
1004
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
1005
1005
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1006
1006
|
});
|
|
@@ -1023,17 +1023,17 @@ function useSaveAgentConfig() {
|
|
|
1023
1023
|
});
|
|
1024
1024
|
},
|
|
1025
1025
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
1026
|
-
qc.invalidateQueries({ queryKey:
|
|
1027
|
-
qc.invalidateQueries({ queryKey:
|
|
1026
|
+
qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.configs() }),
|
|
1027
|
+
qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
1028
1028
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
1029
|
-
qc.invalidateQueries({ queryKey:
|
|
1029
|
+
qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agents() })
|
|
1030
1030
|
])
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
function useAgentWorkspaces(agentExtId, options) {
|
|
1034
1034
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
1035
1035
|
return reactQuery.useQuery({
|
|
1036
|
-
queryKey:
|
|
1036
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
1037
1037
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
1038
1038
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
1039
1039
|
});
|
|
@@ -1054,7 +1054,7 @@ function useGrantAgentAccess() {
|
|
|
1054
1054
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
1055
1055
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
1056
1056
|
},
|
|
1057
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
1057
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
1060
|
function useRevokeAgentAccess() {
|
|
@@ -1073,13 +1073,13 @@ function useRevokeAgentAccess() {
|
|
|
1073
1073
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
1074
1074
|
}
|
|
1075
1075
|
},
|
|
1076
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
1076
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
function useSkills(options) {
|
|
1080
1080
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
1081
1081
|
return reactQuery.useQuery({
|
|
1082
|
-
queryKey: [...
|
|
1082
|
+
queryKey: [...chunkMQRBPFOZ_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
1083
1083
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
1084
1084
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
1085
1085
|
staleTime: 3e4
|
|
@@ -1088,7 +1088,7 @@ function useSkills(options) {
|
|
|
1088
1088
|
function useContacts(options) {
|
|
1089
1089
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
1090
1090
|
return reactQuery.useQuery({
|
|
1091
|
-
queryKey:
|
|
1091
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.contacts(),
|
|
1092
1092
|
queryFn: () => arbi.contacts.list(),
|
|
1093
1093
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1094
1094
|
});
|
|
@@ -1108,7 +1108,7 @@ function useAddContacts() {
|
|
|
1108
1108
|
const qc = reactQuery.useQueryClient();
|
|
1109
1109
|
return reactQuery.useMutation({
|
|
1110
1110
|
mutationFn: (emails) => arbi.contacts.add(emails),
|
|
1111
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1111
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.contacts() })
|
|
1112
1112
|
});
|
|
1113
1113
|
}
|
|
1114
1114
|
function useRemoveContacts() {
|
|
@@ -1116,7 +1116,7 @@ function useRemoveContacts() {
|
|
|
1116
1116
|
const qc = reactQuery.useQueryClient();
|
|
1117
1117
|
return reactQuery.useMutation({
|
|
1118
1118
|
mutationFn: (contactIds) => arbi.contacts.remove(contactIds),
|
|
1119
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1119
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.contacts() })
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
1122
|
function toProfileView(profile) {
|
|
@@ -1128,7 +1128,7 @@ function toProfileView(profile) {
|
|
|
1128
1128
|
function useProfile(options) {
|
|
1129
1129
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
1130
1130
|
return reactQuery.useQuery({
|
|
1131
|
-
queryKey:
|
|
1131
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.profile(),
|
|
1132
1132
|
queryFn: () => {
|
|
1133
1133
|
const profile = arbi.user.profile();
|
|
1134
1134
|
return profile ? toProfileView(profile) : null;
|
|
@@ -1151,8 +1151,8 @@ function useUpdateProfile() {
|
|
|
1151
1151
|
return profile ? toProfileView(profile) : null;
|
|
1152
1152
|
},
|
|
1153
1153
|
onSuccess: (profile) => {
|
|
1154
|
-
qc.setQueryData(
|
|
1155
|
-
return qc.invalidateQueries({ queryKey:
|
|
1154
|
+
qc.setQueryData(chunkMQRBPFOZ_cjs.arbiQueryKeys.profile(), profile);
|
|
1155
|
+
return qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.workspaces() });
|
|
1156
1156
|
}
|
|
1157
1157
|
});
|
|
1158
1158
|
}
|
|
@@ -1237,7 +1237,7 @@ function useConfirmEmailChange() {
|
|
|
1237
1237
|
mutationFn: ({ newEmail, code }) => arbi.account.confirmEmailChange(newEmail, code),
|
|
1238
1238
|
onSuccess: () => {
|
|
1239
1239
|
const profile = arbi.user.profile();
|
|
1240
|
-
qc.setQueryData(
|
|
1240
|
+
qc.setQueryData(chunkMQRBPFOZ_cjs.arbiQueryKeys.profile(), profile ? toProfileView(profile) : null);
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
1243
|
}
|
|
@@ -1406,7 +1406,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
1406
1406
|
function useUserSettings(options) {
|
|
1407
1407
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
1408
1408
|
return reactQuery.useQuery({
|
|
1409
|
-
queryKey:
|
|
1409
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.userSettings(),
|
|
1410
1410
|
queryFn: () => arbi.settings.get(),
|
|
1411
1411
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1412
1412
|
});
|
|
@@ -1419,18 +1419,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
1419
1419
|
const save = reactQuery.useMutation({
|
|
1420
1420
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
1421
1421
|
onMutate: async (patch) => {
|
|
1422
|
-
await qc.cancelQueries({ queryKey:
|
|
1423
|
-
const previous = qc.getQueryData(
|
|
1422
|
+
await qc.cancelQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.userSettings() });
|
|
1423
|
+
const previous = qc.getQueryData(chunkMQRBPFOZ_cjs.arbiQueryKeys.userSettings());
|
|
1424
1424
|
qc.setQueryData(
|
|
1425
|
-
|
|
1425
|
+
chunkMQRBPFOZ_cjs.arbiQueryKeys.userSettings(),
|
|
1426
1426
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
1427
1427
|
);
|
|
1428
1428
|
return { previous };
|
|
1429
1429
|
},
|
|
1430
1430
|
onError: (_err, _patch, context) => {
|
|
1431
|
-
qc.setQueryData(
|
|
1431
|
+
qc.setQueryData(chunkMQRBPFOZ_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1432
1432
|
},
|
|
1433
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1433
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.userSettings() })
|
|
1434
1434
|
});
|
|
1435
1435
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
1436
1436
|
const setAll = React.useCallback(
|
|
@@ -1456,7 +1456,7 @@ function useTerminateSession() {
|
|
|
1456
1456
|
const qc = reactQuery.useQueryClient();
|
|
1457
1457
|
return reactQuery.useMutation({
|
|
1458
1458
|
mutationFn: (sessionId) => arbi.sessions.terminate(sessionId),
|
|
1459
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1459
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.sessions() })
|
|
1460
1460
|
});
|
|
1461
1461
|
}
|
|
1462
1462
|
function useLogoutAllSessions() {
|
|
@@ -1532,7 +1532,7 @@ function useDeleteAccountFlow({
|
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
1534
|
function useWorkspaceDocs(workspaceId) {
|
|
1535
|
-
const { data: docs = [], isLoading, isError } =
|
|
1535
|
+
const { data: docs = [], isLoading, isError } = chunkMQRBPFOZ_cjs.useDocuments(workspaceId);
|
|
1536
1536
|
const docIds = React.useMemo(
|
|
1537
1537
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
1538
1538
|
[docs]
|
|
@@ -1540,7 +1540,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
1540
1540
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
1541
1541
|
}
|
|
1542
1542
|
function useAiTask() {
|
|
1543
|
-
const mutation =
|
|
1543
|
+
const mutation = chunkMQRBPFOZ_cjs.useAssistantQuery();
|
|
1544
1544
|
const [status, setStatus] = React.useState("idle");
|
|
1545
1545
|
const [text, setText] = React.useState("");
|
|
1546
1546
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -2132,8 +2132,8 @@ function DocumentReview({
|
|
|
2132
2132
|
onClose,
|
|
2133
2133
|
className
|
|
2134
2134
|
}) {
|
|
2135
|
-
const parsedQuery =
|
|
2136
|
-
const tagsQuery =
|
|
2135
|
+
const parsedQuery = chunkMQRBPFOZ_cjs.useParsedDocument(docId, stage);
|
|
2136
|
+
const tagsQuery = chunkMQRBPFOZ_cjs.useTags(workspaceId);
|
|
2137
2137
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2138
2138
|
const map = /* @__PURE__ */ new Map();
|
|
2139
2139
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -2364,7 +2364,7 @@ function SemanticSearch({
|
|
|
2364
2364
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
2365
2365
|
const [value, setValue] = React.useState("");
|
|
2366
2366
|
const [selected, setSelected] = React.useState(null);
|
|
2367
|
-
const { data: docs = [] } =
|
|
2367
|
+
const { data: docs = [] } = chunkMQRBPFOZ_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
2368
2368
|
const docMap = React.useMemo(() => {
|
|
2369
2369
|
const map = /* @__PURE__ */ new Map();
|
|
2370
2370
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -3647,7 +3647,7 @@ function ActivityFeed({
|
|
|
3647
3647
|
enabled,
|
|
3648
3648
|
"data-testid": testId = "activity-feed"
|
|
3649
3649
|
}) {
|
|
3650
|
-
const { data, isLoading, isError } =
|
|
3650
|
+
const { data, isLoading, isError } = chunkMQRBPFOZ_cjs.useActivity({ limit, enabled });
|
|
3651
3651
|
if (isLoading) {
|
|
3652
3652
|
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: [
|
|
3653
3653
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -3771,7 +3771,7 @@ function useDirectMessages(options) {
|
|
|
3771
3771
|
enabled
|
|
3772
3772
|
});
|
|
3773
3773
|
const contactsQuery = reactQuery.useQuery({
|
|
3774
|
-
queryKey:
|
|
3774
|
+
queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.contacts(),
|
|
3775
3775
|
queryFn: () => arbi.contacts.list(),
|
|
3776
3776
|
enabled
|
|
3777
3777
|
});
|
|
@@ -4806,10 +4806,10 @@ function DocumentTable({
|
|
|
4806
4806
|
extraColumns,
|
|
4807
4807
|
className
|
|
4808
4808
|
}) {
|
|
4809
|
-
const query =
|
|
4809
|
+
const query = chunkMQRBPFOZ_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
4810
4810
|
const rows = documents ?? query.data ?? [];
|
|
4811
4811
|
const isLoading = !documents && query.isLoading;
|
|
4812
|
-
const tagsQuery =
|
|
4812
|
+
const tagsQuery = chunkMQRBPFOZ_cjs.useTags(workspaceId);
|
|
4813
4813
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4814
4814
|
const map = /* @__PURE__ */ new Map();
|
|
4815
4815
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4990,7 +4990,7 @@ function DocumentCardMenu({
|
|
|
4990
4990
|
const invalidateDocuments = () => {
|
|
4991
4991
|
const workspaceId = arbi.getWorkspaceId();
|
|
4992
4992
|
if (workspaceId) {
|
|
4993
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
4993
|
+
void queryClient.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
4994
4994
|
}
|
|
4995
4995
|
};
|
|
4996
4996
|
const download = reactQuery.useMutation({
|
|
@@ -5089,10 +5089,10 @@ function DocumentGallery({
|
|
|
5089
5089
|
minTileWidth = 148,
|
|
5090
5090
|
className
|
|
5091
5091
|
}) {
|
|
5092
|
-
const query =
|
|
5092
|
+
const query = chunkMQRBPFOZ_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
5093
5093
|
const rows = documents ?? query.data ?? [];
|
|
5094
5094
|
const isLoading = !documents && query.isLoading;
|
|
5095
|
-
const tagsQuery =
|
|
5095
|
+
const tagsQuery = chunkMQRBPFOZ_cjs.useTags(workspaceId);
|
|
5096
5096
|
const tagNameById = React__default.default.useMemo(() => {
|
|
5097
5097
|
const map = /* @__PURE__ */ new Map();
|
|
5098
5098
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -5104,7 +5104,7 @@ function DocumentGallery({
|
|
|
5104
5104
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
5105
5105
|
[rows]
|
|
5106
5106
|
);
|
|
5107
|
-
const thumbsQuery =
|
|
5107
|
+
const thumbsQuery = chunkMQRBPFOZ_cjs.useThumbnails(docIds);
|
|
5108
5108
|
const thumbs = thumbsQuery.data ?? {};
|
|
5109
5109
|
const storeSelected = useArbiUiStore((s) => s.selectedDocIds);
|
|
5110
5110
|
const storeSetSelected = useArbiUiStore((s) => s.setSelectedDocIds);
|
|
@@ -5140,7 +5140,7 @@ function DocumentGallery({
|
|
|
5140
5140
|
setRenamingId(null);
|
|
5141
5141
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
5142
5142
|
if (activeWorkspace) {
|
|
5143
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5143
|
+
void queryClient.invalidateQueries({ queryKey: chunkMQRBPFOZ_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
5144
5144
|
}
|
|
5145
5145
|
}
|
|
5146
5146
|
});
|
|
@@ -5758,135 +5758,139 @@ function hasVideoTrack(blob) {
|
|
|
5758
5758
|
|
|
5759
5759
|
Object.defineProperty(exports, "DEFAULT_USD_PER_CREDIT", {
|
|
5760
5760
|
enumerable: true,
|
|
5761
|
-
get: function () { return
|
|
5761
|
+
get: function () { return chunkMQRBPFOZ_cjs.DEFAULT_USD_PER_CREDIT; }
|
|
5762
5762
|
});
|
|
5763
5763
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
5764
5764
|
enumerable: true,
|
|
5765
|
-
get: function () { return
|
|
5765
|
+
get: function () { return chunkMQRBPFOZ_cjs.arbiQueryKeys; }
|
|
5766
5766
|
});
|
|
5767
5767
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
5768
5768
|
enumerable: true,
|
|
5769
|
-
get: function () { return
|
|
5769
|
+
get: function () { return chunkMQRBPFOZ_cjs.cleanDraftMarkdown; }
|
|
5770
|
+
});
|
|
5771
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
5772
|
+
enumerable: true,
|
|
5773
|
+
get: function () { return chunkMQRBPFOZ_cjs.cleanDraftWithReport; }
|
|
5770
5774
|
});
|
|
5771
5775
|
Object.defineProperty(exports, "creditsToUsd", {
|
|
5772
5776
|
enumerable: true,
|
|
5773
|
-
get: function () { return
|
|
5777
|
+
get: function () { return chunkMQRBPFOZ_cjs.creditsToUsd; }
|
|
5774
5778
|
});
|
|
5775
5779
|
Object.defineProperty(exports, "formatCredits", {
|
|
5776
5780
|
enumerable: true,
|
|
5777
|
-
get: function () { return
|
|
5781
|
+
get: function () { return chunkMQRBPFOZ_cjs.formatCredits; }
|
|
5778
5782
|
});
|
|
5779
5783
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
5780
5784
|
enumerable: true,
|
|
5781
|
-
get: function () { return
|
|
5785
|
+
get: function () { return chunkMQRBPFOZ_cjs.isUsageMetered; }
|
|
5782
5786
|
});
|
|
5783
5787
|
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
5784
5788
|
enumerable: true,
|
|
5785
|
-
get: function () { return
|
|
5789
|
+
get: function () { return chunkMQRBPFOZ_cjs.promoteBoldTitle; }
|
|
5786
5790
|
});
|
|
5787
5791
|
Object.defineProperty(exports, "repairParsedStructure", {
|
|
5788
5792
|
enumerable: true,
|
|
5789
|
-
get: function () { return
|
|
5793
|
+
get: function () { return chunkMQRBPFOZ_cjs.repairParsedStructure; }
|
|
5790
5794
|
});
|
|
5791
5795
|
Object.defineProperty(exports, "repairParsedTitle", {
|
|
5792
5796
|
enumerable: true,
|
|
5793
|
-
get: function () { return
|
|
5797
|
+
get: function () { return chunkMQRBPFOZ_cjs.repairParsedTitle; }
|
|
5794
5798
|
});
|
|
5795
5799
|
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
5796
5800
|
enumerable: true,
|
|
5797
|
-
get: function () { return
|
|
5801
|
+
get: function () { return chunkMQRBPFOZ_cjs.stripAgentPreamble; }
|
|
5798
5802
|
});
|
|
5799
5803
|
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
5800
5804
|
enumerable: true,
|
|
5801
|
-
get: function () { return
|
|
5805
|
+
get: function () { return chunkMQRBPFOZ_cjs.unescapeMarkdown; }
|
|
5802
5806
|
});
|
|
5803
5807
|
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
5804
5808
|
enumerable: true,
|
|
5805
|
-
get: function () { return
|
|
5809
|
+
get: function () { return chunkMQRBPFOZ_cjs.unwrapCitationLinks; }
|
|
5806
5810
|
});
|
|
5807
5811
|
Object.defineProperty(exports, "useActivity", {
|
|
5808
5812
|
enumerable: true,
|
|
5809
|
-
get: function () { return
|
|
5813
|
+
get: function () { return chunkMQRBPFOZ_cjs.useActivity; }
|
|
5810
5814
|
});
|
|
5811
5815
|
Object.defineProperty(exports, "useAgents", {
|
|
5812
5816
|
enumerable: true,
|
|
5813
|
-
get: function () { return
|
|
5817
|
+
get: function () { return chunkMQRBPFOZ_cjs.useAgents; }
|
|
5814
5818
|
});
|
|
5815
5819
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
5816
5820
|
enumerable: true,
|
|
5817
|
-
get: function () { return
|
|
5821
|
+
get: function () { return chunkMQRBPFOZ_cjs.useAssistantQuery; }
|
|
5818
5822
|
});
|
|
5819
5823
|
Object.defineProperty(exports, "useConfigs", {
|
|
5820
5824
|
enumerable: true,
|
|
5821
|
-
get: function () { return
|
|
5825
|
+
get: function () { return chunkMQRBPFOZ_cjs.useConfigs; }
|
|
5822
5826
|
});
|
|
5823
5827
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
5824
5828
|
enumerable: true,
|
|
5825
|
-
get: function () { return
|
|
5829
|
+
get: function () { return chunkMQRBPFOZ_cjs.useConversationThreads; }
|
|
5826
5830
|
});
|
|
5827
5831
|
Object.defineProperty(exports, "useConversations", {
|
|
5828
5832
|
enumerable: true,
|
|
5829
|
-
get: function () { return
|
|
5833
|
+
get: function () { return chunkMQRBPFOZ_cjs.useConversations; }
|
|
5830
5834
|
});
|
|
5831
5835
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
5832
5836
|
enumerable: true,
|
|
5833
|
-
get: function () { return
|
|
5837
|
+
get: function () { return chunkMQRBPFOZ_cjs.useDeleteAgents; }
|
|
5834
5838
|
});
|
|
5835
5839
|
Object.defineProperty(exports, "useDocuments", {
|
|
5836
5840
|
enumerable: true,
|
|
5837
|
-
get: function () { return
|
|
5841
|
+
get: function () { return chunkMQRBPFOZ_cjs.useDocuments; }
|
|
5838
5842
|
});
|
|
5839
5843
|
Object.defineProperty(exports, "useFacts", {
|
|
5840
5844
|
enumerable: true,
|
|
5841
|
-
get: function () { return
|
|
5845
|
+
get: function () { return chunkMQRBPFOZ_cjs.useFacts; }
|
|
5842
5846
|
});
|
|
5843
5847
|
Object.defineProperty(exports, "useHealth", {
|
|
5844
5848
|
enumerable: true,
|
|
5845
|
-
get: function () { return
|
|
5849
|
+
get: function () { return chunkMQRBPFOZ_cjs.useHealth; }
|
|
5846
5850
|
});
|
|
5847
5851
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
5848
5852
|
enumerable: true,
|
|
5849
|
-
get: function () { return
|
|
5853
|
+
get: function () { return chunkMQRBPFOZ_cjs.useParsedDocument; }
|
|
5850
5854
|
});
|
|
5851
5855
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
5852
5856
|
enumerable: true,
|
|
5853
|
-
get: function () { return
|
|
5857
|
+
get: function () { return chunkMQRBPFOZ_cjs.useProjectInvoices; }
|
|
5854
5858
|
});
|
|
5855
5859
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
5856
5860
|
enumerable: true,
|
|
5857
|
-
get: function () { return
|
|
5861
|
+
get: function () { return chunkMQRBPFOZ_cjs.useProjectUsage; }
|
|
5858
5862
|
});
|
|
5859
5863
|
Object.defineProperty(exports, "useProjects", {
|
|
5860
5864
|
enumerable: true,
|
|
5861
|
-
get: function () { return
|
|
5865
|
+
get: function () { return chunkMQRBPFOZ_cjs.useProjects; }
|
|
5862
5866
|
});
|
|
5863
5867
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
5864
5868
|
enumerable: true,
|
|
5865
|
-
get: function () { return
|
|
5869
|
+
get: function () { return chunkMQRBPFOZ_cjs.useProjectsUsage; }
|
|
5866
5870
|
});
|
|
5867
5871
|
Object.defineProperty(exports, "useSessions", {
|
|
5868
5872
|
enumerable: true,
|
|
5869
|
-
get: function () { return
|
|
5873
|
+
get: function () { return chunkMQRBPFOZ_cjs.useSessions; }
|
|
5870
5874
|
});
|
|
5871
5875
|
Object.defineProperty(exports, "useTags", {
|
|
5872
5876
|
enumerable: true,
|
|
5873
|
-
get: function () { return
|
|
5877
|
+
get: function () { return chunkMQRBPFOZ_cjs.useTags; }
|
|
5874
5878
|
});
|
|
5875
5879
|
Object.defineProperty(exports, "useTasks", {
|
|
5876
5880
|
enumerable: true,
|
|
5877
|
-
get: function () { return
|
|
5881
|
+
get: function () { return chunkMQRBPFOZ_cjs.useTasks; }
|
|
5878
5882
|
});
|
|
5879
5883
|
Object.defineProperty(exports, "useThumbnails", {
|
|
5880
5884
|
enumerable: true,
|
|
5881
|
-
get: function () { return
|
|
5885
|
+
get: function () { return chunkMQRBPFOZ_cjs.useThumbnails; }
|
|
5882
5886
|
});
|
|
5883
5887
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
5884
5888
|
enumerable: true,
|
|
5885
|
-
get: function () { return
|
|
5889
|
+
get: function () { return chunkMQRBPFOZ_cjs.useUserUsageToday; }
|
|
5886
5890
|
});
|
|
5887
5891
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
5888
5892
|
enumerable: true,
|
|
5889
|
-
get: function () { return
|
|
5893
|
+
get: function () { return chunkMQRBPFOZ_cjs.useWorkspaces; }
|
|
5890
5894
|
});
|
|
5891
5895
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
5892
5896
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -12,7 +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 repairParsedStructure,
|
|
15
|
+
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.cjs';
|
|
16
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';
|
|
17
17
|
import { ColDef } from 'ag-grid-community';
|
|
18
18
|
export { ToasterProps, toast } from 'sonner';
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +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 repairParsedStructure,
|
|
15
|
+
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.js';
|
|
16
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';
|
|
17
17
|
import { ColDef } from 'ag-grid-community';
|
|
18
18
|
export { ToasterProps, toast } from 'sonner';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useDocuments, useConversations, useAssistantQuery, useConversationThreads, arbiQueryKeys, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-
|
|
2
|
-
export { DEFAULT_USD_PER_CREDIT, arbiQueryKeys, cleanDraftMarkdown, creditsToUsd, formatCredits, isUsageMetered, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks, useActivity, useAgents, useAssistantQuery, useConfigs, useConversationThreads, useConversations, useDeleteAgents, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaces } from './chunk-
|
|
1
|
+
import { useDocuments, useConversations, useAssistantQuery, useConversationThreads, arbiQueryKeys, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-4XWSLFMN.js';
|
|
2
|
+
export { DEFAULT_USD_PER_CREDIT, arbiQueryKeys, cleanDraftMarkdown, cleanDraftWithReport, creditsToUsd, formatCredits, isUsageMetered, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks, useActivity, useAgents, useAssistantQuery, useConfigs, useConversationThreads, useConversations, useDeleteAgents, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useTasks, useThumbnails, useUserUsageToday, useWorkspaces } from './chunk-4XWSLFMN.js';
|
|
3
3
|
import { formatRelativeTime } from './chunk-FSMIN5VX.js';
|
|
4
4
|
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-FSMIN5VX.js';
|
|
5
5
|
import { MarkMenu, AiMarkdown, Card, Button, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-RTULVZOS.js';
|