@arbidocs/react 0.4.133 → 0.4.134
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 +6 -6
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-T253I7XC.js → chunk-A3EHBTBV.js} +11 -13
- package/dist/chunk-A3EHBTBV.js.map +1 -0
- package/dist/{chunk-E5XFVK4I.cjs → chunk-G7NSGLUA.cjs} +10 -13
- package/dist/chunk-G7NSGLUA.cjs.map +1 -0
- package/dist/index.cjs +233 -174
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +113 -21
- package/dist/index.d.ts +113 -21
- package/dist/index.js +68 -11
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +9 -9
- package/dist/ui/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-E5XFVK4I.cjs.map +0 -1
- package/dist/chunk-T253I7XC.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG7NSGLUA_cjs = require('./chunk-G7NSGLUA.cjs');
|
|
4
|
+
var chunk6PPWZILQ_cjs = require('./chunk-6PPWZILQ.cjs');
|
|
4
5
|
var chunkTYUQFRHF_cjs = require('./chunk-TYUQFRHF.cjs');
|
|
5
6
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
6
7
|
require('./chunk-VOFNX4P6.cjs');
|
|
7
|
-
var chunk6PPWZILQ_cjs = require('./chunk-6PPWZILQ.cjs');
|
|
8
8
|
var chunk65WT5PHA_cjs = require('./chunk-65WT5PHA.cjs');
|
|
9
9
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
10
|
+
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
10
11
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
11
12
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
12
|
-
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
13
13
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
14
14
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
15
15
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
@@ -43,7 +43,7 @@ function useUpdateConversation() {
|
|
|
43
43
|
conversationId,
|
|
44
44
|
patch
|
|
45
45
|
}) => arbi.conversations.update(conversationId, patch),
|
|
46
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
46
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function useCreateWork() {
|
|
@@ -51,7 +51,7 @@ function useCreateWork() {
|
|
|
51
51
|
const qc = reactQuery.useQueryClient();
|
|
52
52
|
return reactQuery.useMutation({
|
|
53
53
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
54
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
54
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function useRunConversation() {
|
|
@@ -59,7 +59,7 @@ function useRunConversation() {
|
|
|
59
59
|
const qc = reactQuery.useQueryClient();
|
|
60
60
|
return reactQuery.useMutation({
|
|
61
61
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
62
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
62
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function useActOnStep() {
|
|
@@ -70,7 +70,7 @@ function useActOnStep() {
|
|
|
70
70
|
conversationId,
|
|
71
71
|
body
|
|
72
72
|
}) => arbi.conversations.actOnStep(conversationId, body),
|
|
73
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
73
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
function useSendBackStep() {
|
|
@@ -83,7 +83,7 @@ function useSendBackStep() {
|
|
|
83
83
|
to,
|
|
84
84
|
note
|
|
85
85
|
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
86
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
86
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
function usePlanWork() {
|
|
@@ -95,7 +95,7 @@ function usePlanWork() {
|
|
|
95
95
|
function useConversationPendingAuth(conversationId, options) {
|
|
96
96
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
97
97
|
return reactQuery.useQuery({
|
|
98
|
-
queryKey: [...
|
|
98
|
+
queryKey: [...chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "pending-auth"],
|
|
99
99
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
100
100
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
101
101
|
retry: false
|
|
@@ -104,7 +104,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
104
104
|
function useConversationActivity(conversationId, options) {
|
|
105
105
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
106
106
|
return reactQuery.useQuery({
|
|
107
|
-
queryKey:
|
|
107
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.conversationActivity(conversationId ?? ""),
|
|
108
108
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
109
109
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
110
110
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -113,7 +113,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
113
113
|
function useWorkflows(options) {
|
|
114
114
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
115
115
|
return reactQuery.useQuery({
|
|
116
|
-
queryKey:
|
|
116
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows(),
|
|
117
117
|
queryFn: () => arbi.workflows.list(),
|
|
118
118
|
// A clock or event can fire while the list is open, without a write here.
|
|
119
119
|
refetchInterval: options?.live ? 1e4 : false,
|
|
@@ -123,7 +123,7 @@ function useWorkflows(options) {
|
|
|
123
123
|
function useWorkflowRuns(workflowId) {
|
|
124
124
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
125
125
|
return reactQuery.useQuery({
|
|
126
|
-
queryKey:
|
|
126
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
|
|
127
127
|
queryFn: () => arbi.workflows.runs(workflowId),
|
|
128
128
|
enabled: !!workflowId && arbi.isLoggedIn,
|
|
129
129
|
refetchInterval: 3e3,
|
|
@@ -136,7 +136,7 @@ function useCreateWorkflow() {
|
|
|
136
136
|
const qc = reactQuery.useQueryClient();
|
|
137
137
|
return reactQuery.useMutation({
|
|
138
138
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
139
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
139
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() })
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
function useUpdateWorkflow() {
|
|
@@ -147,7 +147,7 @@ function useUpdateWorkflow() {
|
|
|
147
147
|
workflowId,
|
|
148
148
|
patch
|
|
149
149
|
}) => arbi.workflows.update(workflowId, patch),
|
|
150
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
150
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() })
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
function useDeleteWorkflow() {
|
|
@@ -155,18 +155,18 @@ function useDeleteWorkflow() {
|
|
|
155
155
|
const qc = reactQuery.useQueryClient();
|
|
156
156
|
return reactQuery.useMutation({
|
|
157
157
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
158
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
158
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() })
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
function useRunWorkflow() {
|
|
162
162
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
163
163
|
const qc = reactQuery.useQueryClient();
|
|
164
164
|
return reactQuery.useMutation({
|
|
165
|
-
mutationKey:
|
|
165
|
+
mutationKey: chunkG7NSGLUA_cjs.arbiMutationKeys.runWorkflow(),
|
|
166
166
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
167
167
|
onSuccess: () => Promise.all([
|
|
168
|
-
qc.invalidateQueries({ queryKey:
|
|
169
|
-
qc.invalidateQueries({ queryKey:
|
|
168
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
170
170
|
])
|
|
171
171
|
});
|
|
172
172
|
}
|
|
@@ -175,7 +175,7 @@ function useCreateAgent() {
|
|
|
175
175
|
const qc = reactQuery.useQueryClient();
|
|
176
176
|
return reactQuery.useMutation({
|
|
177
177
|
mutationFn: (name) => arbi.agents.create(name),
|
|
178
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
178
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agents() })
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
function useGenerateAgentAvatar() {
|
|
@@ -183,13 +183,13 @@ function useGenerateAgentAvatar() {
|
|
|
183
183
|
const qc = reactQuery.useQueryClient();
|
|
184
184
|
return reactQuery.useMutation({
|
|
185
185
|
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
186
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
186
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agents() })
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
function useAuthorizeLimits(options) {
|
|
190
190
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
191
191
|
return reactQuery.useQuery({
|
|
192
|
-
queryKey:
|
|
192
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.authorizeLimits(),
|
|
193
193
|
queryFn: () => arbi.agents.authorizeLimits(),
|
|
194
194
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
195
195
|
});
|
|
@@ -197,7 +197,7 @@ function useAuthorizeLimits(options) {
|
|
|
197
197
|
function useMcpTools(options) {
|
|
198
198
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
199
199
|
return reactQuery.useQuery({
|
|
200
|
-
queryKey:
|
|
200
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.mcpTools(),
|
|
201
201
|
queryFn: () => arbi.health.mcpTools(),
|
|
202
202
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
203
203
|
});
|
|
@@ -205,7 +205,7 @@ function useMcpTools(options) {
|
|
|
205
205
|
function useAgentConfig(agentExtId, options) {
|
|
206
206
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
207
207
|
return reactQuery.useQuery({
|
|
208
|
-
queryKey:
|
|
208
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
209
209
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
210
210
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
211
211
|
});
|
|
@@ -213,7 +213,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
213
213
|
function useAgentModels(options) {
|
|
214
214
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
215
215
|
return reactQuery.useQuery({
|
|
216
|
-
queryKey:
|
|
216
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.models(),
|
|
217
217
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
218
218
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
219
219
|
});
|
|
@@ -236,17 +236,17 @@ function useSaveAgentConfig() {
|
|
|
236
236
|
});
|
|
237
237
|
},
|
|
238
238
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
239
|
-
qc.invalidateQueries({ queryKey:
|
|
240
|
-
qc.invalidateQueries({ queryKey:
|
|
239
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
241
241
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
242
|
-
qc.invalidateQueries({ queryKey:
|
|
242
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agents() })
|
|
243
243
|
])
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
function useAgentWorkspaces(agentExtId, options) {
|
|
247
247
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
248
248
|
return reactQuery.useQuery({
|
|
249
|
-
queryKey:
|
|
249
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
250
250
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
251
251
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
252
252
|
});
|
|
@@ -267,7 +267,7 @@ function useGrantAgentAccess() {
|
|
|
267
267
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
268
268
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
269
269
|
},
|
|
270
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
270
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function useRevokeAgentAccess() {
|
|
@@ -286,13 +286,13 @@ function useRevokeAgentAccess() {
|
|
|
286
286
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
289
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
function useSkills(options) {
|
|
293
293
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
294
294
|
return reactQuery.useQuery({
|
|
295
|
-
queryKey: [...
|
|
295
|
+
queryKey: [...chunkG7NSGLUA_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
296
296
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
297
297
|
refetchInterval: options?.live ? 5e3 : false,
|
|
298
298
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -323,7 +323,7 @@ function useUploadSkillFiles() {
|
|
|
323
323
|
}
|
|
324
324
|
return results;
|
|
325
325
|
},
|
|
326
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
326
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.skills() })
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
function useStartWorkQuery() {
|
|
@@ -350,13 +350,13 @@ function useStartWorkQuery() {
|
|
|
350
350
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
351
351
|
);
|
|
352
352
|
},
|
|
353
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
353
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
function useAgentSession(agentId, options) {
|
|
357
357
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
358
358
|
return reactQuery.useQuery({
|
|
359
|
-
queryKey:
|
|
359
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
360
360
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
361
361
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
362
362
|
refetchInterval: 5e3
|
|
@@ -365,7 +365,7 @@ function useAgentSession(agentId, options) {
|
|
|
365
365
|
function useAgentChats(agentId) {
|
|
366
366
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
367
367
|
return reactQuery.useQuery({
|
|
368
|
-
queryKey:
|
|
368
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
369
369
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
370
370
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
371
371
|
refetchInterval: 5e3
|
|
@@ -374,10 +374,10 @@ function useAgentChats(agentId) {
|
|
|
374
374
|
function refreshAgentSession(qc, agentId) {
|
|
375
375
|
return Promise.all(
|
|
376
376
|
[
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
377
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.agentSession(agentId),
|
|
378
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
379
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.agentChats(agentId),
|
|
380
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.sessions()
|
|
381
381
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
382
382
|
);
|
|
383
383
|
}
|
|
@@ -524,8 +524,8 @@ function useArbiChat(options = {}) {
|
|
|
524
524
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
525
525
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
526
526
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
527
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
528
|
-
const ordinaryHistory =
|
|
527
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkG7NSGLUA_cjs.useDocuments(workspaceId);
|
|
528
|
+
const ordinaryHistory = chunkG7NSGLUA_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
529
529
|
const agentHistory = useAgentChats(agentId);
|
|
530
530
|
const stored = React.useMemo(
|
|
531
531
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -540,7 +540,7 @@ function useArbiChat(options = {}) {
|
|
|
540
540
|
);
|
|
541
541
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
542
542
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
543
|
-
const query =
|
|
543
|
+
const query = chunkG7NSGLUA_cjs.useAssistantQuery();
|
|
544
544
|
const { mutateAsync } = query;
|
|
545
545
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
546
546
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -600,7 +600,7 @@ function useArbiChat(options = {}) {
|
|
|
600
600
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
601
601
|
) || active.messages.some((message) => message.status === "streaming");
|
|
602
602
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
603
|
-
const loaded =
|
|
603
|
+
const loaded = chunkG7NSGLUA_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
604
604
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
605
605
|
live: liveHistory
|
|
606
606
|
});
|
|
@@ -1381,14 +1381,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1381
1381
|
if (!workspaceId) return;
|
|
1382
1382
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1383
1383
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1384
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1385
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1384
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1385
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
1388
|
if (client.isMessageType(msg, "task_update")) {
|
|
1389
1389
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1390
1390
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1391
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1391
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
});
|
|
@@ -1517,7 +1517,7 @@ function useShellWorkspaces(options) {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
function useArbiShellWorkspaces(options = {}) {
|
|
1519
1519
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1520
|
-
const query =
|
|
1520
|
+
const query = chunkG7NSGLUA_cjs.useWorkspaces();
|
|
1521
1521
|
const { select, ...rest } = options;
|
|
1522
1522
|
const defaultSelect = React.useCallback(
|
|
1523
1523
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1531,41 +1531,98 @@ function useArbiShellWorkspaces(options = {}) {
|
|
|
1531
1531
|
select: select ?? defaultSelect
|
|
1532
1532
|
});
|
|
1533
1533
|
}
|
|
1534
|
+
function useFacts(workspaceId, options) {
|
|
1535
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1536
|
+
const { enabled = true, ...filter } = options ?? {};
|
|
1537
|
+
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1538
|
+
return reactQuery.useQuery({
|
|
1539
|
+
queryKey: [...chunkG7NSGLUA_cjs.arbiQueryKeys.facts(workspace), filter],
|
|
1540
|
+
queryFn: () => arbi.facts.list(filter),
|
|
1541
|
+
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
1542
|
+
staleTime: 3e4
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
function useRefreshFacts() {
|
|
1546
|
+
const qc = reactQuery.useQueryClient();
|
|
1547
|
+
return () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allFacts() });
|
|
1548
|
+
}
|
|
1549
|
+
function useCreateFact() {
|
|
1550
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1551
|
+
const refresh = useRefreshFacts();
|
|
1552
|
+
return reactQuery.useMutation({
|
|
1553
|
+
mutationFn: (body) => arbi.facts.create(body),
|
|
1554
|
+
onSuccess: refresh
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
function useCreateFacts() {
|
|
1558
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1559
|
+
const refresh = useRefreshFacts();
|
|
1560
|
+
return reactQuery.useMutation({
|
|
1561
|
+
mutationFn: (body) => arbi.facts.createBatch(body),
|
|
1562
|
+
onSuccess: refresh
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
function useUpdateFact() {
|
|
1566
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1567
|
+
const refresh = useRefreshFacts();
|
|
1568
|
+
return reactQuery.useMutation({
|
|
1569
|
+
mutationFn: ({ factId, patch }) => arbi.facts.update(factId, patch),
|
|
1570
|
+
onSuccess: refresh
|
|
1571
|
+
});
|
|
1572
|
+
}
|
|
1573
|
+
function useDeleteFact() {
|
|
1574
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1575
|
+
const refresh = useRefreshFacts();
|
|
1576
|
+
return reactQuery.useMutation({
|
|
1577
|
+
mutationFn: (factId) => arbi.facts.delete(factId),
|
|
1578
|
+
onSuccess: refresh
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
function useSearchFacts() {
|
|
1582
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1583
|
+
return reactQuery.useMutation({
|
|
1584
|
+
mutationFn: (body) => arbi.facts.search(body)
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
function openWorkspaceId(arbi) {
|
|
1588
|
+
return arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
1589
|
+
}
|
|
1534
1590
|
function invalidateTagData(qc, workspaceId) {
|
|
1535
1591
|
return Promise.all([
|
|
1536
|
-
qc.invalidateQueries({ queryKey:
|
|
1537
|
-
qc.invalidateQueries({ queryKey:
|
|
1592
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1593
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1538
1594
|
]);
|
|
1539
1595
|
}
|
|
1540
1596
|
function useInvalidateTagData() {
|
|
1541
1597
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1542
1598
|
const qc = reactQuery.useQueryClient();
|
|
1543
1599
|
return React.useCallback(() => {
|
|
1544
|
-
const workspaceId = arbi
|
|
1600
|
+
const workspaceId = openWorkspaceId(arbi);
|
|
1545
1601
|
return workspaceId ? invalidateTagData(qc, workspaceId) : Promise.resolve();
|
|
1546
1602
|
}, [arbi, qc]);
|
|
1547
1603
|
}
|
|
1548
1604
|
function useTagKindSchema(kind, options) {
|
|
1549
1605
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1550
|
-
const workspaceId = arbi
|
|
1606
|
+
const workspaceId = openWorkspaceId(arbi) ?? "";
|
|
1551
1607
|
return reactQuery.useQuery({
|
|
1552
|
-
queryKey:
|
|
1608
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1553
1609
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1554
|
-
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1610
|
+
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1555
1611
|
});
|
|
1556
1612
|
}
|
|
1557
1613
|
function useUpdateTagKindSchema() {
|
|
1558
1614
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1559
1615
|
const qc = reactQuery.useQueryClient();
|
|
1560
1616
|
return reactQuery.useMutation({
|
|
1617
|
+
mutationKey: chunkG7NSGLUA_cjs.arbiMutationKeys.updateTagKindSchema(),
|
|
1561
1618
|
mutationFn: ({
|
|
1562
1619
|
kind,
|
|
1563
1620
|
fields
|
|
1564
1621
|
}) => arbi.tagKinds.update(kind, fields),
|
|
1565
1622
|
onSuccess: (schema) => {
|
|
1566
|
-
const workspaceId = arbi
|
|
1623
|
+
const workspaceId = openWorkspaceId(arbi);
|
|
1567
1624
|
if (!workspaceId) return;
|
|
1568
|
-
qc.setQueryData(
|
|
1625
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1569
1626
|
return invalidateTagData(qc, workspaceId);
|
|
1570
1627
|
}
|
|
1571
1628
|
});
|
|
@@ -1584,7 +1641,7 @@ function useSetTagValues() {
|
|
|
1584
1641
|
function useFilteredProjects(filters, options) {
|
|
1585
1642
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1586
1643
|
return reactQuery.useQuery({
|
|
1587
|
-
queryKey:
|
|
1644
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1588
1645
|
queryFn: () => arbi.projects.list(filters),
|
|
1589
1646
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1590
1647
|
});
|
|
@@ -1597,14 +1654,14 @@ function useUpdateProjectFields() {
|
|
|
1597
1654
|
projectExtId,
|
|
1598
1655
|
patch
|
|
1599
1656
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1600
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1657
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.projects() })
|
|
1601
1658
|
});
|
|
1602
1659
|
}
|
|
1603
1660
|
function useProjectEvents(projectExtId, options) {
|
|
1604
1661
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1605
1662
|
return reactQuery.useQuery({
|
|
1606
1663
|
queryKey: [
|
|
1607
|
-
...
|
|
1664
|
+
...chunkG7NSGLUA_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1608
1665
|
options?.kind ?? "all",
|
|
1609
1666
|
options?.limit ?? "default"
|
|
1610
1667
|
],
|
|
@@ -1615,7 +1672,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1615
1672
|
function useConversationUsage(conversationId, options) {
|
|
1616
1673
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1617
1674
|
return reactQuery.useQuery({
|
|
1618
|
-
queryKey:
|
|
1675
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1619
1676
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1620
1677
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1621
1678
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1624,7 +1681,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1624
1681
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1625
1682
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1626
1683
|
return reactQuery.useQuery({
|
|
1627
|
-
queryKey:
|
|
1684
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1628
1685
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1629
1686
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1630
1687
|
});
|
|
@@ -1632,7 +1689,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1632
1689
|
function useContacts(options) {
|
|
1633
1690
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1634
1691
|
return reactQuery.useQuery({
|
|
1635
|
-
queryKey:
|
|
1692
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.contacts(),
|
|
1636
1693
|
queryFn: () => arbi.contacts.list(),
|
|
1637
1694
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1638
1695
|
});
|
|
@@ -1647,7 +1704,7 @@ function usePendingContacts(options) {
|
|
|
1647
1704
|
}
|
|
1648
1705
|
function useInvalidateContacts() {
|
|
1649
1706
|
const qc = reactQuery.useQueryClient();
|
|
1650
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1707
|
+
return () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.contacts() });
|
|
1651
1708
|
}
|
|
1652
1709
|
function useInviteContacts() {
|
|
1653
1710
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1776,11 +1833,11 @@ function useProfile(options) {
|
|
|
1776
1833
|
const { client, enabled } = useAccountClient();
|
|
1777
1834
|
const qc = reactQuery.useQueryClient();
|
|
1778
1835
|
React.useEffect(
|
|
1779
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
1836
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
1780
1837
|
[client, qc]
|
|
1781
1838
|
);
|
|
1782
1839
|
return reactQuery.useQuery({
|
|
1783
|
-
queryKey:
|
|
1840
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.profile(),
|
|
1784
1841
|
queryFn: () => client.profile(),
|
|
1785
1842
|
enabled: (options?.enabled ?? true) && enabled,
|
|
1786
1843
|
staleTime: Infinity
|
|
@@ -1795,9 +1852,9 @@ function useUpdateProfile() {
|
|
|
1795
1852
|
return client.profile();
|
|
1796
1853
|
},
|
|
1797
1854
|
onSuccess: (profile) => {
|
|
1798
|
-
qc.setQueryData(
|
|
1799
|
-
void qc.invalidateQueries({ queryKey:
|
|
1800
|
-
return qc.invalidateQueries({ queryKey:
|
|
1855
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.profile(), profile);
|
|
1856
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.identity() });
|
|
1857
|
+
return qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workspaces() });
|
|
1801
1858
|
}
|
|
1802
1859
|
});
|
|
1803
1860
|
}
|
|
@@ -1880,7 +1937,7 @@ function useConfirmEmailChange() {
|
|
|
1880
1937
|
const qc = reactQuery.useQueryClient();
|
|
1881
1938
|
return reactQuery.useMutation({
|
|
1882
1939
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
1883
|
-
onSuccess: () => qc.setQueryData(
|
|
1940
|
+
onSuccess: () => qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.profile(), client.profile())
|
|
1884
1941
|
});
|
|
1885
1942
|
}
|
|
1886
1943
|
function useEmailChange({
|
|
@@ -2048,7 +2105,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2048
2105
|
function useUserSettings(options) {
|
|
2049
2106
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2050
2107
|
return reactQuery.useQuery({
|
|
2051
|
-
queryKey:
|
|
2108
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(),
|
|
2052
2109
|
queryFn: () => arbi.settings.get(),
|
|
2053
2110
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2054
2111
|
});
|
|
@@ -2061,18 +2118,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2061
2118
|
const save = reactQuery.useMutation({
|
|
2062
2119
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2063
2120
|
onMutate: async (patch) => {
|
|
2064
|
-
await qc.cancelQueries({ queryKey:
|
|
2065
|
-
const previous = qc.getQueryData(
|
|
2121
|
+
await qc.cancelQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() });
|
|
2122
|
+
const previous = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings());
|
|
2066
2123
|
qc.setQueryData(
|
|
2067
|
-
|
|
2124
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(),
|
|
2068
2125
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2069
2126
|
);
|
|
2070
2127
|
return { previous };
|
|
2071
2128
|
},
|
|
2072
2129
|
onError: (_err, _patch, context) => {
|
|
2073
|
-
qc.setQueryData(
|
|
2130
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2074
2131
|
},
|
|
2075
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2132
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() })
|
|
2076
2133
|
});
|
|
2077
2134
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2078
2135
|
const setAll = React.useCallback(
|
|
@@ -2099,18 +2156,18 @@ function useRelevanceSave() {
|
|
|
2099
2156
|
return reactQuery.useMutation({
|
|
2100
2157
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2101
2158
|
onMutate: async (patch) => {
|
|
2102
|
-
await qc.cancelQueries({ queryKey:
|
|
2103
|
-
const previous = qc.getQueryData(
|
|
2159
|
+
await qc.cancelQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() });
|
|
2160
|
+
const previous = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings());
|
|
2104
2161
|
qc.setQueryData(
|
|
2105
|
-
|
|
2162
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(),
|
|
2106
2163
|
(old) => old ? { ...old, ...patch } : old
|
|
2107
2164
|
);
|
|
2108
2165
|
return { previous };
|
|
2109
2166
|
},
|
|
2110
2167
|
onError: (_err, _patch, context) => {
|
|
2111
|
-
qc.setQueryData(
|
|
2168
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2112
2169
|
},
|
|
2113
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2170
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() })
|
|
2114
2171
|
});
|
|
2115
2172
|
}
|
|
2116
2173
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2121,7 +2178,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2121
2178
|
const setLevel = React.useCallback(
|
|
2122
2179
|
(next) => {
|
|
2123
2180
|
if (!workspaceId) return;
|
|
2124
|
-
const current = qc.getQueryData(
|
|
2181
|
+
const current = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2125
2182
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2126
2183
|
},
|
|
2127
2184
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2142,7 +2199,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2142
2199
|
const setFollowing = React.useCallback(
|
|
2143
2200
|
(on, callbacks) => {
|
|
2144
2201
|
if (!conversationId) return;
|
|
2145
|
-
const current = qc.getQueryData(
|
|
2202
|
+
const current = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2146
2203
|
save.mutate(
|
|
2147
2204
|
{
|
|
2148
2205
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2167,7 +2224,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2167
2224
|
function useSessions(options) {
|
|
2168
2225
|
const { client, enabled } = useAccountClient();
|
|
2169
2226
|
return reactQuery.useQuery({
|
|
2170
|
-
queryKey:
|
|
2227
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.sessions(),
|
|
2171
2228
|
queryFn: () => client.listSessions(),
|
|
2172
2229
|
enabled: (options?.enabled ?? true) && enabled
|
|
2173
2230
|
});
|
|
@@ -2177,7 +2234,7 @@ function useTerminateSession() {
|
|
|
2177
2234
|
const qc = reactQuery.useQueryClient();
|
|
2178
2235
|
return reactQuery.useMutation({
|
|
2179
2236
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2180
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2237
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.sessions() })
|
|
2181
2238
|
});
|
|
2182
2239
|
}
|
|
2183
2240
|
function useSignOut() {
|
|
@@ -2320,7 +2377,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2320
2377
|
const apiRef = React.useRef(api);
|
|
2321
2378
|
apiRef.current = api;
|
|
2322
2379
|
const query = reactQuery.useQuery({
|
|
2323
|
-
queryKey:
|
|
2380
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.identity(),
|
|
2324
2381
|
queryFn: () => apiRef.current.status(),
|
|
2325
2382
|
enabled,
|
|
2326
2383
|
staleTime: 6e4
|
|
@@ -2338,7 +2395,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2338
2395
|
const lastVerified = React.useRef(void 0);
|
|
2339
2396
|
const apply = React.useCallback(
|
|
2340
2397
|
(next) => {
|
|
2341
|
-
qc.setQueryData(
|
|
2398
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.identity(), next);
|
|
2342
2399
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2343
2400
|
onVerifiedChange?.(next.verified);
|
|
2344
2401
|
}
|
|
@@ -2533,12 +2590,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2533
2590
|
enabled,
|
|
2534
2591
|
formatPrice,
|
|
2535
2592
|
onVerifiedChange: (verified) => {
|
|
2536
|
-
void qc.invalidateQueries({ queryKey:
|
|
2593
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.profile() });
|
|
2537
2594
|
onVerifiedChange?.(verified);
|
|
2538
2595
|
},
|
|
2539
2596
|
onNameAccepted: (name) => {
|
|
2540
|
-
void qc.invalidateQueries({ queryKey:
|
|
2541
|
-
void qc.invalidateQueries({ queryKey:
|
|
2597
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.profile() });
|
|
2598
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workspaces() });
|
|
2542
2599
|
onNameAccepted?.(name);
|
|
2543
2600
|
}
|
|
2544
2601
|
});
|
|
@@ -2956,7 +3013,7 @@ function useMailDraftReplaced(draftId, onReplaced) {
|
|
|
2956
3013
|
}, [draftId]);
|
|
2957
3014
|
}
|
|
2958
3015
|
function useWorkspaceDocs(workspaceId) {
|
|
2959
|
-
const { data: docs = [], isLoading, isError } =
|
|
3016
|
+
const { data: docs = [], isLoading, isError } = chunkG7NSGLUA_cjs.useDocuments(workspaceId);
|
|
2960
3017
|
const docIds = React.useMemo(
|
|
2961
3018
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
2962
3019
|
[docs]
|
|
@@ -2964,7 +3021,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
2964
3021
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
2965
3022
|
}
|
|
2966
3023
|
function useAiTask() {
|
|
2967
|
-
const mutation =
|
|
3024
|
+
const mutation = chunkG7NSGLUA_cjs.useAssistantQuery();
|
|
2968
3025
|
const [status, setStatus] = React.useState("idle");
|
|
2969
3026
|
const [text, setText] = React.useState("");
|
|
2970
3027
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -3584,8 +3641,8 @@ function DocumentReview({
|
|
|
3584
3641
|
onClose,
|
|
3585
3642
|
className
|
|
3586
3643
|
}) {
|
|
3587
|
-
const parsedQuery =
|
|
3588
|
-
const tagsQuery =
|
|
3644
|
+
const parsedQuery = chunkG7NSGLUA_cjs.useParsedDocument(docId, stage);
|
|
3645
|
+
const tagsQuery = chunkG7NSGLUA_cjs.useTags(workspaceId);
|
|
3589
3646
|
const tagNameById = React__default.default.useMemo(() => {
|
|
3590
3647
|
const map = /* @__PURE__ */ new Map();
|
|
3591
3648
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3816,7 +3873,7 @@ function SemanticSearch({
|
|
|
3816
3873
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
3817
3874
|
const [value, setValue] = React.useState("");
|
|
3818
3875
|
const [selected, setSelected] = React.useState(null);
|
|
3819
|
-
const { data: docs = [] } =
|
|
3876
|
+
const { data: docs = [] } = chunkG7NSGLUA_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
3820
3877
|
const docMap = React.useMemo(() => {
|
|
3821
3878
|
const map = /* @__PURE__ */ new Map();
|
|
3822
3879
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -4918,7 +4975,7 @@ function ActivityFeed({
|
|
|
4918
4975
|
enabled,
|
|
4919
4976
|
"data-testid": testId = "activity-feed"
|
|
4920
4977
|
}) {
|
|
4921
|
-
const { data, isLoading, isError } =
|
|
4978
|
+
const { data, isLoading, isError } = chunkG7NSGLUA_cjs.useActivity({ limit, enabled });
|
|
4922
4979
|
if (isLoading) {
|
|
4923
4980
|
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: [
|
|
4924
4981
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5076,7 +5133,7 @@ function useDirectMessages(options) {
|
|
|
5076
5133
|
enabled
|
|
5077
5134
|
});
|
|
5078
5135
|
const contactsQuery = reactQuery.useQuery({
|
|
5079
|
-
queryKey:
|
|
5136
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.contacts(),
|
|
5080
5137
|
queryFn: () => arbi.contacts.list(),
|
|
5081
5138
|
enabled
|
|
5082
5139
|
});
|
|
@@ -6345,10 +6402,10 @@ function DocumentTable({
|
|
|
6345
6402
|
extraColumns,
|
|
6346
6403
|
className
|
|
6347
6404
|
}) {
|
|
6348
|
-
const query =
|
|
6405
|
+
const query = chunkG7NSGLUA_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6349
6406
|
const rows = documents ?? query.data ?? [];
|
|
6350
6407
|
const isLoading = !documents && query.isLoading;
|
|
6351
|
-
const tagsQuery =
|
|
6408
|
+
const tagsQuery = chunkG7NSGLUA_cjs.useTags(workspaceId);
|
|
6352
6409
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6353
6410
|
const map = /* @__PURE__ */ new Map();
|
|
6354
6411
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6529,7 +6586,7 @@ function DocumentCardMenu({
|
|
|
6529
6586
|
const invalidateDocuments = () => {
|
|
6530
6587
|
const workspaceId = arbi.getWorkspaceId();
|
|
6531
6588
|
if (workspaceId) {
|
|
6532
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6589
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
6533
6590
|
}
|
|
6534
6591
|
};
|
|
6535
6592
|
const download = reactQuery.useMutation({
|
|
@@ -6628,10 +6685,10 @@ function DocumentGallery({
|
|
|
6628
6685
|
minTileWidth = 148,
|
|
6629
6686
|
className
|
|
6630
6687
|
}) {
|
|
6631
|
-
const query =
|
|
6688
|
+
const query = chunkG7NSGLUA_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6632
6689
|
const rows = documents ?? query.data ?? [];
|
|
6633
6690
|
const isLoading = !documents && query.isLoading;
|
|
6634
|
-
const tagsQuery =
|
|
6691
|
+
const tagsQuery = chunkG7NSGLUA_cjs.useTags(workspaceId);
|
|
6635
6692
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6636
6693
|
const map = /* @__PURE__ */ new Map();
|
|
6637
6694
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6643,7 +6700,7 @@ function DocumentGallery({
|
|
|
6643
6700
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
6644
6701
|
[rows]
|
|
6645
6702
|
);
|
|
6646
|
-
const thumbsQuery =
|
|
6703
|
+
const thumbsQuery = chunkG7NSGLUA_cjs.useThumbnails(docIds);
|
|
6647
6704
|
const thumbs = thumbsQuery.data ?? {};
|
|
6648
6705
|
const session = useArbiSessionStore();
|
|
6649
6706
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -6679,7 +6736,7 @@ function DocumentGallery({
|
|
|
6679
6736
|
setRenamingId(null);
|
|
6680
6737
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
6681
6738
|
if (activeWorkspace) {
|
|
6682
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6739
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
6683
6740
|
}
|
|
6684
6741
|
}
|
|
6685
6742
|
});
|
|
@@ -7297,151 +7354,115 @@ function hasVideoTrack(blob) {
|
|
|
7297
7354
|
|
|
7298
7355
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
7299
7356
|
enumerable: true,
|
|
7300
|
-
get: function () { return
|
|
7357
|
+
get: function () { return chunkG7NSGLUA_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
7301
7358
|
});
|
|
7302
7359
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
7303
7360
|
enumerable: true,
|
|
7304
|
-
get: function () { return
|
|
7361
|
+
get: function () { return chunkG7NSGLUA_cjs.arbiMutationKeys; }
|
|
7305
7362
|
});
|
|
7306
7363
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
7307
7364
|
enumerable: true,
|
|
7308
|
-
get: function () { return
|
|
7365
|
+
get: function () { return chunkG7NSGLUA_cjs.arbiQueryKeys; }
|
|
7309
7366
|
});
|
|
7310
7367
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
7311
7368
|
enumerable: true,
|
|
7312
|
-
get: function () { return
|
|
7369
|
+
get: function () { return chunkG7NSGLUA_cjs.isUsageMetered; }
|
|
7313
7370
|
});
|
|
7314
7371
|
Object.defineProperty(exports, "useActivity", {
|
|
7315
7372
|
enumerable: true,
|
|
7316
|
-
get: function () { return
|
|
7373
|
+
get: function () { return chunkG7NSGLUA_cjs.useActivity; }
|
|
7317
7374
|
});
|
|
7318
7375
|
Object.defineProperty(exports, "useAgents", {
|
|
7319
7376
|
enumerable: true,
|
|
7320
|
-
get: function () { return
|
|
7377
|
+
get: function () { return chunkG7NSGLUA_cjs.useAgents; }
|
|
7321
7378
|
});
|
|
7322
7379
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
7323
7380
|
enumerable: true,
|
|
7324
|
-
get: function () { return
|
|
7381
|
+
get: function () { return chunkG7NSGLUA_cjs.useAssistantQuery; }
|
|
7325
7382
|
});
|
|
7326
7383
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
7327
7384
|
enumerable: true,
|
|
7328
|
-
get: function () { return
|
|
7385
|
+
get: function () { return chunkG7NSGLUA_cjs.useCanCreateProjects; }
|
|
7329
7386
|
});
|
|
7330
7387
|
Object.defineProperty(exports, "useConfigs", {
|
|
7331
7388
|
enumerable: true,
|
|
7332
|
-
get: function () { return
|
|
7389
|
+
get: function () { return chunkG7NSGLUA_cjs.useConfigs; }
|
|
7333
7390
|
});
|
|
7334
7391
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
7335
7392
|
enumerable: true,
|
|
7336
|
-
get: function () { return
|
|
7393
|
+
get: function () { return chunkG7NSGLUA_cjs.useConversationThreads; }
|
|
7337
7394
|
});
|
|
7338
7395
|
Object.defineProperty(exports, "useConversations", {
|
|
7339
7396
|
enumerable: true,
|
|
7340
|
-
get: function () { return
|
|
7397
|
+
get: function () { return chunkG7NSGLUA_cjs.useConversations; }
|
|
7341
7398
|
});
|
|
7342
7399
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
7343
7400
|
enumerable: true,
|
|
7344
|
-
get: function () { return
|
|
7401
|
+
get: function () { return chunkG7NSGLUA_cjs.useCurrentUser; }
|
|
7345
7402
|
});
|
|
7346
7403
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
7347
7404
|
enumerable: true,
|
|
7348
|
-
get: function () { return
|
|
7405
|
+
get: function () { return chunkG7NSGLUA_cjs.useDeleteAgents; }
|
|
7349
7406
|
});
|
|
7350
7407
|
Object.defineProperty(exports, "useDocuments", {
|
|
7351
7408
|
enumerable: true,
|
|
7352
|
-
get: function () { return
|
|
7353
|
-
});
|
|
7354
|
-
Object.defineProperty(exports, "useFacts", {
|
|
7355
|
-
enumerable: true,
|
|
7356
|
-
get: function () { return chunkE5XFVK4I_cjs.useFacts; }
|
|
7409
|
+
get: function () { return chunkG7NSGLUA_cjs.useDocuments; }
|
|
7357
7410
|
});
|
|
7358
7411
|
Object.defineProperty(exports, "useFirmPool", {
|
|
7359
7412
|
enumerable: true,
|
|
7360
|
-
get: function () { return
|
|
7413
|
+
get: function () { return chunkG7NSGLUA_cjs.useFirmPool; }
|
|
7361
7414
|
});
|
|
7362
7415
|
Object.defineProperty(exports, "useHealth", {
|
|
7363
7416
|
enumerable: true,
|
|
7364
|
-
get: function () { return
|
|
7417
|
+
get: function () { return chunkG7NSGLUA_cjs.useHealth; }
|
|
7365
7418
|
});
|
|
7366
7419
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
7367
7420
|
enumerable: true,
|
|
7368
|
-
get: function () { return
|
|
7421
|
+
get: function () { return chunkG7NSGLUA_cjs.useParsedDocument; }
|
|
7369
7422
|
});
|
|
7370
7423
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
7371
7424
|
enumerable: true,
|
|
7372
|
-
get: function () { return
|
|
7425
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjectInvoices; }
|
|
7373
7426
|
});
|
|
7374
7427
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
7375
7428
|
enumerable: true,
|
|
7376
|
-
get: function () { return
|
|
7429
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjectUsage; }
|
|
7377
7430
|
});
|
|
7378
7431
|
Object.defineProperty(exports, "useProjects", {
|
|
7379
7432
|
enumerable: true,
|
|
7380
|
-
get: function () { return
|
|
7433
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjects; }
|
|
7381
7434
|
});
|
|
7382
7435
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
7383
7436
|
enumerable: true,
|
|
7384
|
-
get: function () { return
|
|
7437
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjectsUsage; }
|
|
7385
7438
|
});
|
|
7386
7439
|
Object.defineProperty(exports, "useTags", {
|
|
7387
7440
|
enumerable: true,
|
|
7388
|
-
get: function () { return
|
|
7441
|
+
get: function () { return chunkG7NSGLUA_cjs.useTags; }
|
|
7389
7442
|
});
|
|
7390
7443
|
Object.defineProperty(exports, "useThumbnails", {
|
|
7391
7444
|
enumerable: true,
|
|
7392
|
-
get: function () { return
|
|
7445
|
+
get: function () { return chunkG7NSGLUA_cjs.useThumbnails; }
|
|
7393
7446
|
});
|
|
7394
7447
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
7395
7448
|
enumerable: true,
|
|
7396
|
-
get: function () { return
|
|
7449
|
+
get: function () { return chunkG7NSGLUA_cjs.useTopUpFirmPool; }
|
|
7397
7450
|
});
|
|
7398
7451
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
7399
7452
|
enumerable: true,
|
|
7400
|
-
get: function () { return
|
|
7453
|
+
get: function () { return chunkG7NSGLUA_cjs.useUserUsageToday; }
|
|
7401
7454
|
});
|
|
7402
7455
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
7403
7456
|
enumerable: true,
|
|
7404
|
-
get: function () { return
|
|
7457
|
+
get: function () { return chunkG7NSGLUA_cjs.useWorkspaceActivity; }
|
|
7405
7458
|
});
|
|
7406
7459
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
7407
7460
|
enumerable: true,
|
|
7408
|
-
get: function () { return
|
|
7461
|
+
get: function () { return chunkG7NSGLUA_cjs.useWorkspaceUsers; }
|
|
7409
7462
|
});
|
|
7410
7463
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
7411
7464
|
enumerable: true,
|
|
7412
|
-
get: function () { return
|
|
7413
|
-
});
|
|
7414
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7415
|
-
enumerable: true,
|
|
7416
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
7417
|
-
});
|
|
7418
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7419
|
-
enumerable: true,
|
|
7420
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
7421
|
-
});
|
|
7422
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7423
|
-
enumerable: true,
|
|
7424
|
-
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
7425
|
-
});
|
|
7426
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7427
|
-
enumerable: true,
|
|
7428
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
7429
|
-
});
|
|
7430
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7431
|
-
enumerable: true,
|
|
7432
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
7433
|
-
});
|
|
7434
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7435
|
-
enumerable: true,
|
|
7436
|
-
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
7437
|
-
});
|
|
7438
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7439
|
-
enumerable: true,
|
|
7440
|
-
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
7441
|
-
});
|
|
7442
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7443
|
-
enumerable: true,
|
|
7444
|
-
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
7465
|
+
get: function () { return chunkG7NSGLUA_cjs.useWorkspaces; }
|
|
7445
7466
|
});
|
|
7446
7467
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
7447
7468
|
enumerable: true,
|
|
@@ -7479,6 +7500,38 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
7479
7500
|
enumerable: true,
|
|
7480
7501
|
get: function () { return chunk6PPWZILQ_cjs.useNotify; }
|
|
7481
7502
|
});
|
|
7503
|
+
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7504
|
+
enumerable: true,
|
|
7505
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
7506
|
+
});
|
|
7507
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7508
|
+
enumerable: true,
|
|
7509
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
7510
|
+
});
|
|
7511
|
+
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7512
|
+
enumerable: true,
|
|
7513
|
+
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
7514
|
+
});
|
|
7515
|
+
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7516
|
+
enumerable: true,
|
|
7517
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
7518
|
+
});
|
|
7519
|
+
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7520
|
+
enumerable: true,
|
|
7521
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
7522
|
+
});
|
|
7523
|
+
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7524
|
+
enumerable: true,
|
|
7525
|
+
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
7526
|
+
});
|
|
7527
|
+
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7528
|
+
enumerable: true,
|
|
7529
|
+
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
7530
|
+
});
|
|
7531
|
+
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7532
|
+
enumerable: true,
|
|
7533
|
+
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
7534
|
+
});
|
|
7482
7535
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
7483
7536
|
enumerable: true,
|
|
7484
7537
|
get: function () { return chunk65WT5PHA_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -8079,6 +8132,14 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
8079
8132
|
enumerable: true,
|
|
8080
8133
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
8081
8134
|
});
|
|
8135
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
8136
|
+
enumerable: true,
|
|
8137
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
8138
|
+
});
|
|
8139
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
8140
|
+
enumerable: true,
|
|
8141
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
8142
|
+
});
|
|
8082
8143
|
Object.defineProperty(exports, "Button", {
|
|
8083
8144
|
enumerable: true,
|
|
8084
8145
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -8139,14 +8200,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
8139
8200
|
enumerable: true,
|
|
8140
8201
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
8141
8202
|
});
|
|
8142
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
8143
|
-
enumerable: true,
|
|
8144
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
8145
|
-
});
|
|
8146
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
8147
|
-
enumerable: true,
|
|
8148
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
8149
|
-
});
|
|
8150
8203
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
8151
8204
|
enumerable: true,
|
|
8152
8205
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -8393,16 +8446,20 @@ exports.useConversationPendingAuth = useConversationPendingAuth;
|
|
|
8393
8446
|
exports.useConversationUsage = useConversationUsage;
|
|
8394
8447
|
exports.useCreateAgent = useCreateAgent;
|
|
8395
8448
|
exports.useCreateContact = useCreateContact;
|
|
8449
|
+
exports.useCreateFact = useCreateFact;
|
|
8450
|
+
exports.useCreateFacts = useCreateFacts;
|
|
8396
8451
|
exports.useCreateWork = useCreateWork;
|
|
8397
8452
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
8398
8453
|
exports.useCurrentSessionId = useCurrentSessionId;
|
|
8399
8454
|
exports.useDeleteAccount = useDeleteAccount;
|
|
8400
8455
|
exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
8401
8456
|
exports.useDeleteContact = useDeleteContact;
|
|
8457
|
+
exports.useDeleteFact = useDeleteFact;
|
|
8402
8458
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
8403
8459
|
exports.useDirectMessages = useDirectMessages;
|
|
8404
8460
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
8405
8461
|
exports.useEmailChange = useEmailChange;
|
|
8462
|
+
exports.useFacts = useFacts;
|
|
8406
8463
|
exports.useFilteredProjects = useFilteredProjects;
|
|
8407
8464
|
exports.useFollowThread = useFollowThread;
|
|
8408
8465
|
exports.useGenerateAgentAvatar = useGenerateAgentAvatar;
|
|
@@ -8440,6 +8497,7 @@ exports.useRunConversation = useRunConversation;
|
|
|
8440
8497
|
exports.useRunWorkflow = useRunWorkflow;
|
|
8441
8498
|
exports.useSaveAgentConfig = useSaveAgentConfig;
|
|
8442
8499
|
exports.useSaveMailDraft = useSaveMailDraft;
|
|
8500
|
+
exports.useSearchFacts = useSearchFacts;
|
|
8443
8501
|
exports.useSemanticSearch = useSemanticSearch;
|
|
8444
8502
|
exports.useSendBackStep = useSendBackStep;
|
|
8445
8503
|
exports.useSendMail = useSendMail;
|
|
@@ -8454,6 +8512,7 @@ exports.useTagKindSchema = useTagKindSchema;
|
|
|
8454
8512
|
exports.useTerminateSession = useTerminateSession;
|
|
8455
8513
|
exports.useUpdateContact = useUpdateContact;
|
|
8456
8514
|
exports.useUpdateConversation = useUpdateConversation;
|
|
8515
|
+
exports.useUpdateFact = useUpdateFact;
|
|
8457
8516
|
exports.useUpdateMailMessage = useUpdateMailMessage;
|
|
8458
8517
|
exports.useUpdateProfile = useUpdateProfile;
|
|
8459
8518
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|