@arbidocs/react 0.4.132 → 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-3TISH7QU.js → chunk-A3EHBTBV.js} +17 -12
- package/dist/chunk-A3EHBTBV.js.map +1 -0
- package/dist/{chunk-UTZZMUHI.cjs → chunk-G7NSGLUA.cjs} +17 -12
- package/dist/chunk-G7NSGLUA.cjs.map +1 -0
- package/dist/index.cjs +250 -173
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +139 -21
- package/dist/index.d.ts +139 -21
- package/dist/index.js +84 -14
- 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-3TISH7QU.js.map +0 -1
- package/dist/chunk-UTZZMUHI.cjs.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,10 +113,22 @@ 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
|
-
|
|
119
|
-
|
|
118
|
+
// A clock or event can fire while the list is open, without a write here.
|
|
119
|
+
refetchInterval: options?.live ? 1e4 : false,
|
|
120
|
+
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function useWorkflowRuns(workflowId) {
|
|
124
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
125
|
+
return reactQuery.useQuery({
|
|
126
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
|
|
127
|
+
queryFn: () => arbi.workflows.runs(workflowId),
|
|
128
|
+
enabled: !!workflowId && arbi.isLoggedIn,
|
|
129
|
+
refetchInterval: 3e3,
|
|
130
|
+
staleTime: 0,
|
|
131
|
+
refetchOnMount: "always"
|
|
120
132
|
});
|
|
121
133
|
}
|
|
122
134
|
function useCreateWorkflow() {
|
|
@@ -124,7 +136,7 @@ function useCreateWorkflow() {
|
|
|
124
136
|
const qc = reactQuery.useQueryClient();
|
|
125
137
|
return reactQuery.useMutation({
|
|
126
138
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
127
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
139
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() })
|
|
128
140
|
});
|
|
129
141
|
}
|
|
130
142
|
function useUpdateWorkflow() {
|
|
@@ -135,7 +147,7 @@ function useUpdateWorkflow() {
|
|
|
135
147
|
workflowId,
|
|
136
148
|
patch
|
|
137
149
|
}) => arbi.workflows.update(workflowId, patch),
|
|
138
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
150
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() })
|
|
139
151
|
});
|
|
140
152
|
}
|
|
141
153
|
function useDeleteWorkflow() {
|
|
@@ -143,17 +155,18 @@ function useDeleteWorkflow() {
|
|
|
143
155
|
const qc = reactQuery.useQueryClient();
|
|
144
156
|
return reactQuery.useMutation({
|
|
145
157
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
146
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
158
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() })
|
|
147
159
|
});
|
|
148
160
|
}
|
|
149
161
|
function useRunWorkflow() {
|
|
150
162
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
151
163
|
const qc = reactQuery.useQueryClient();
|
|
152
164
|
return reactQuery.useMutation({
|
|
165
|
+
mutationKey: chunkG7NSGLUA_cjs.arbiMutationKeys.runWorkflow(),
|
|
153
166
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
154
167
|
onSuccess: () => Promise.all([
|
|
155
|
-
qc.invalidateQueries({ queryKey:
|
|
156
|
-
qc.invalidateQueries({ queryKey:
|
|
168
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
157
170
|
])
|
|
158
171
|
});
|
|
159
172
|
}
|
|
@@ -162,7 +175,7 @@ function useCreateAgent() {
|
|
|
162
175
|
const qc = reactQuery.useQueryClient();
|
|
163
176
|
return reactQuery.useMutation({
|
|
164
177
|
mutationFn: (name) => arbi.agents.create(name),
|
|
165
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
178
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agents() })
|
|
166
179
|
});
|
|
167
180
|
}
|
|
168
181
|
function useGenerateAgentAvatar() {
|
|
@@ -170,13 +183,13 @@ function useGenerateAgentAvatar() {
|
|
|
170
183
|
const qc = reactQuery.useQueryClient();
|
|
171
184
|
return reactQuery.useMutation({
|
|
172
185
|
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
173
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
186
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agents() })
|
|
174
187
|
});
|
|
175
188
|
}
|
|
176
189
|
function useAuthorizeLimits(options) {
|
|
177
190
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
178
191
|
return reactQuery.useQuery({
|
|
179
|
-
queryKey:
|
|
192
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.authorizeLimits(),
|
|
180
193
|
queryFn: () => arbi.agents.authorizeLimits(),
|
|
181
194
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
182
195
|
});
|
|
@@ -184,7 +197,7 @@ function useAuthorizeLimits(options) {
|
|
|
184
197
|
function useMcpTools(options) {
|
|
185
198
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
186
199
|
return reactQuery.useQuery({
|
|
187
|
-
queryKey:
|
|
200
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.mcpTools(),
|
|
188
201
|
queryFn: () => arbi.health.mcpTools(),
|
|
189
202
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
190
203
|
});
|
|
@@ -192,7 +205,7 @@ function useMcpTools(options) {
|
|
|
192
205
|
function useAgentConfig(agentExtId, options) {
|
|
193
206
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
194
207
|
return reactQuery.useQuery({
|
|
195
|
-
queryKey:
|
|
208
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
196
209
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
197
210
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
198
211
|
});
|
|
@@ -200,7 +213,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
200
213
|
function useAgentModels(options) {
|
|
201
214
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
202
215
|
return reactQuery.useQuery({
|
|
203
|
-
queryKey:
|
|
216
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.models(),
|
|
204
217
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
205
218
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
206
219
|
});
|
|
@@ -223,17 +236,17 @@ function useSaveAgentConfig() {
|
|
|
223
236
|
});
|
|
224
237
|
},
|
|
225
238
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
226
|
-
qc.invalidateQueries({ queryKey:
|
|
227
|
-
qc.invalidateQueries({ queryKey:
|
|
239
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
228
241
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
229
|
-
qc.invalidateQueries({ queryKey:
|
|
242
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agents() })
|
|
230
243
|
])
|
|
231
244
|
});
|
|
232
245
|
}
|
|
233
246
|
function useAgentWorkspaces(agentExtId, options) {
|
|
234
247
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
235
248
|
return reactQuery.useQuery({
|
|
236
|
-
queryKey:
|
|
249
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
237
250
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
238
251
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
239
252
|
});
|
|
@@ -254,7 +267,7 @@ function useGrantAgentAccess() {
|
|
|
254
267
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
255
268
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
256
269
|
},
|
|
257
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
270
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
258
271
|
});
|
|
259
272
|
}
|
|
260
273
|
function useRevokeAgentAccess() {
|
|
@@ -273,13 +286,13 @@ function useRevokeAgentAccess() {
|
|
|
273
286
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
274
287
|
}
|
|
275
288
|
},
|
|
276
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
289
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
277
290
|
});
|
|
278
291
|
}
|
|
279
292
|
function useSkills(options) {
|
|
280
293
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
281
294
|
return reactQuery.useQuery({
|
|
282
|
-
queryKey: [...
|
|
295
|
+
queryKey: [...chunkG7NSGLUA_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
283
296
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
284
297
|
refetchInterval: options?.live ? 5e3 : false,
|
|
285
298
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -310,7 +323,7 @@ function useUploadSkillFiles() {
|
|
|
310
323
|
}
|
|
311
324
|
return results;
|
|
312
325
|
},
|
|
313
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
326
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.skills() })
|
|
314
327
|
});
|
|
315
328
|
}
|
|
316
329
|
function useStartWorkQuery() {
|
|
@@ -337,13 +350,13 @@ function useStartWorkQuery() {
|
|
|
337
350
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
338
351
|
);
|
|
339
352
|
},
|
|
340
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
353
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.allConversations() })
|
|
341
354
|
});
|
|
342
355
|
}
|
|
343
356
|
function useAgentSession(agentId, options) {
|
|
344
357
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
345
358
|
return reactQuery.useQuery({
|
|
346
|
-
queryKey:
|
|
359
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
347
360
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
348
361
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
349
362
|
refetchInterval: 5e3
|
|
@@ -352,7 +365,7 @@ function useAgentSession(agentId, options) {
|
|
|
352
365
|
function useAgentChats(agentId) {
|
|
353
366
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
354
367
|
return reactQuery.useQuery({
|
|
355
|
-
queryKey:
|
|
368
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
356
369
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
357
370
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
358
371
|
refetchInterval: 5e3
|
|
@@ -361,10 +374,10 @@ function useAgentChats(agentId) {
|
|
|
361
374
|
function refreshAgentSession(qc, agentId) {
|
|
362
375
|
return Promise.all(
|
|
363
376
|
[
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
377
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.agentSession(agentId),
|
|
378
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
379
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.agentChats(agentId),
|
|
380
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.sessions()
|
|
368
381
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
369
382
|
);
|
|
370
383
|
}
|
|
@@ -511,8 +524,8 @@ function useArbiChat(options = {}) {
|
|
|
511
524
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
512
525
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
513
526
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
514
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
515
|
-
const ordinaryHistory =
|
|
527
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkG7NSGLUA_cjs.useDocuments(workspaceId);
|
|
528
|
+
const ordinaryHistory = chunkG7NSGLUA_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
516
529
|
const agentHistory = useAgentChats(agentId);
|
|
517
530
|
const stored = React.useMemo(
|
|
518
531
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -527,7 +540,7 @@ function useArbiChat(options = {}) {
|
|
|
527
540
|
);
|
|
528
541
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
529
542
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
530
|
-
const query =
|
|
543
|
+
const query = chunkG7NSGLUA_cjs.useAssistantQuery();
|
|
531
544
|
const { mutateAsync } = query;
|
|
532
545
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
533
546
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -587,7 +600,7 @@ function useArbiChat(options = {}) {
|
|
|
587
600
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
588
601
|
) || active.messages.some((message) => message.status === "streaming");
|
|
589
602
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
590
|
-
const loaded =
|
|
603
|
+
const loaded = chunkG7NSGLUA_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
591
604
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
592
605
|
live: liveHistory
|
|
593
606
|
});
|
|
@@ -1368,14 +1381,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1368
1381
|
if (!workspaceId) return;
|
|
1369
1382
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1370
1383
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1371
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1372
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1384
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1385
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1373
1386
|
return;
|
|
1374
1387
|
}
|
|
1375
1388
|
if (client.isMessageType(msg, "task_update")) {
|
|
1376
1389
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1377
1390
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1378
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1391
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1379
1392
|
}
|
|
1380
1393
|
}
|
|
1381
1394
|
});
|
|
@@ -1504,7 +1517,7 @@ function useShellWorkspaces(options) {
|
|
|
1504
1517
|
}
|
|
1505
1518
|
function useArbiShellWorkspaces(options = {}) {
|
|
1506
1519
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1507
|
-
const query =
|
|
1520
|
+
const query = chunkG7NSGLUA_cjs.useWorkspaces();
|
|
1508
1521
|
const { select, ...rest } = options;
|
|
1509
1522
|
const defaultSelect = React.useCallback(
|
|
1510
1523
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1518,41 +1531,98 @@ function useArbiShellWorkspaces(options = {}) {
|
|
|
1518
1531
|
select: select ?? defaultSelect
|
|
1519
1532
|
});
|
|
1520
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
|
+
}
|
|
1521
1590
|
function invalidateTagData(qc, workspaceId) {
|
|
1522
1591
|
return Promise.all([
|
|
1523
|
-
qc.invalidateQueries({ queryKey:
|
|
1524
|
-
qc.invalidateQueries({ queryKey:
|
|
1592
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1593
|
+
qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1525
1594
|
]);
|
|
1526
1595
|
}
|
|
1527
1596
|
function useInvalidateTagData() {
|
|
1528
1597
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1529
1598
|
const qc = reactQuery.useQueryClient();
|
|
1530
1599
|
return React.useCallback(() => {
|
|
1531
|
-
const workspaceId = arbi
|
|
1600
|
+
const workspaceId = openWorkspaceId(arbi);
|
|
1532
1601
|
return workspaceId ? invalidateTagData(qc, workspaceId) : Promise.resolve();
|
|
1533
1602
|
}, [arbi, qc]);
|
|
1534
1603
|
}
|
|
1535
1604
|
function useTagKindSchema(kind, options) {
|
|
1536
1605
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1537
|
-
const workspaceId = arbi
|
|
1606
|
+
const workspaceId = openWorkspaceId(arbi) ?? "";
|
|
1538
1607
|
return reactQuery.useQuery({
|
|
1539
|
-
queryKey:
|
|
1608
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1540
1609
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1541
|
-
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1610
|
+
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1542
1611
|
});
|
|
1543
1612
|
}
|
|
1544
1613
|
function useUpdateTagKindSchema() {
|
|
1545
1614
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1546
1615
|
const qc = reactQuery.useQueryClient();
|
|
1547
1616
|
return reactQuery.useMutation({
|
|
1617
|
+
mutationKey: chunkG7NSGLUA_cjs.arbiMutationKeys.updateTagKindSchema(),
|
|
1548
1618
|
mutationFn: ({
|
|
1549
1619
|
kind,
|
|
1550
1620
|
fields
|
|
1551
1621
|
}) => arbi.tagKinds.update(kind, fields),
|
|
1552
1622
|
onSuccess: (schema) => {
|
|
1553
|
-
const workspaceId = arbi
|
|
1623
|
+
const workspaceId = openWorkspaceId(arbi);
|
|
1554
1624
|
if (!workspaceId) return;
|
|
1555
|
-
qc.setQueryData(
|
|
1625
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1556
1626
|
return invalidateTagData(qc, workspaceId);
|
|
1557
1627
|
}
|
|
1558
1628
|
});
|
|
@@ -1571,7 +1641,7 @@ function useSetTagValues() {
|
|
|
1571
1641
|
function useFilteredProjects(filters, options) {
|
|
1572
1642
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1573
1643
|
return reactQuery.useQuery({
|
|
1574
|
-
queryKey:
|
|
1644
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1575
1645
|
queryFn: () => arbi.projects.list(filters),
|
|
1576
1646
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1577
1647
|
});
|
|
@@ -1584,14 +1654,14 @@ function useUpdateProjectFields() {
|
|
|
1584
1654
|
projectExtId,
|
|
1585
1655
|
patch
|
|
1586
1656
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1587
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1657
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.projects() })
|
|
1588
1658
|
});
|
|
1589
1659
|
}
|
|
1590
1660
|
function useProjectEvents(projectExtId, options) {
|
|
1591
1661
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1592
1662
|
return reactQuery.useQuery({
|
|
1593
1663
|
queryKey: [
|
|
1594
|
-
...
|
|
1664
|
+
...chunkG7NSGLUA_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1595
1665
|
options?.kind ?? "all",
|
|
1596
1666
|
options?.limit ?? "default"
|
|
1597
1667
|
],
|
|
@@ -1602,7 +1672,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1602
1672
|
function useConversationUsage(conversationId, options) {
|
|
1603
1673
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1604
1674
|
return reactQuery.useQuery({
|
|
1605
|
-
queryKey:
|
|
1675
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1606
1676
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1607
1677
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1608
1678
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1611,7 +1681,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1611
1681
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1612
1682
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1613
1683
|
return reactQuery.useQuery({
|
|
1614
|
-
queryKey:
|
|
1684
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1615
1685
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1616
1686
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1617
1687
|
});
|
|
@@ -1619,7 +1689,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1619
1689
|
function useContacts(options) {
|
|
1620
1690
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1621
1691
|
return reactQuery.useQuery({
|
|
1622
|
-
queryKey:
|
|
1692
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.contacts(),
|
|
1623
1693
|
queryFn: () => arbi.contacts.list(),
|
|
1624
1694
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1625
1695
|
});
|
|
@@ -1634,7 +1704,7 @@ function usePendingContacts(options) {
|
|
|
1634
1704
|
}
|
|
1635
1705
|
function useInvalidateContacts() {
|
|
1636
1706
|
const qc = reactQuery.useQueryClient();
|
|
1637
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1707
|
+
return () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.contacts() });
|
|
1638
1708
|
}
|
|
1639
1709
|
function useInviteContacts() {
|
|
1640
1710
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1763,11 +1833,11 @@ function useProfile(options) {
|
|
|
1763
1833
|
const { client, enabled } = useAccountClient();
|
|
1764
1834
|
const qc = reactQuery.useQueryClient();
|
|
1765
1835
|
React.useEffect(
|
|
1766
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
1836
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
1767
1837
|
[client, qc]
|
|
1768
1838
|
);
|
|
1769
1839
|
return reactQuery.useQuery({
|
|
1770
|
-
queryKey:
|
|
1840
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.profile(),
|
|
1771
1841
|
queryFn: () => client.profile(),
|
|
1772
1842
|
enabled: (options?.enabled ?? true) && enabled,
|
|
1773
1843
|
staleTime: Infinity
|
|
@@ -1782,9 +1852,9 @@ function useUpdateProfile() {
|
|
|
1782
1852
|
return client.profile();
|
|
1783
1853
|
},
|
|
1784
1854
|
onSuccess: (profile) => {
|
|
1785
|
-
qc.setQueryData(
|
|
1786
|
-
void qc.invalidateQueries({ queryKey:
|
|
1787
|
-
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() });
|
|
1788
1858
|
}
|
|
1789
1859
|
});
|
|
1790
1860
|
}
|
|
@@ -1867,7 +1937,7 @@ function useConfirmEmailChange() {
|
|
|
1867
1937
|
const qc = reactQuery.useQueryClient();
|
|
1868
1938
|
return reactQuery.useMutation({
|
|
1869
1939
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
1870
|
-
onSuccess: () => qc.setQueryData(
|
|
1940
|
+
onSuccess: () => qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.profile(), client.profile())
|
|
1871
1941
|
});
|
|
1872
1942
|
}
|
|
1873
1943
|
function useEmailChange({
|
|
@@ -2035,7 +2105,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2035
2105
|
function useUserSettings(options) {
|
|
2036
2106
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2037
2107
|
return reactQuery.useQuery({
|
|
2038
|
-
queryKey:
|
|
2108
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(),
|
|
2039
2109
|
queryFn: () => arbi.settings.get(),
|
|
2040
2110
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2041
2111
|
});
|
|
@@ -2048,18 +2118,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2048
2118
|
const save = reactQuery.useMutation({
|
|
2049
2119
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2050
2120
|
onMutate: async (patch) => {
|
|
2051
|
-
await qc.cancelQueries({ queryKey:
|
|
2052
|
-
const previous = qc.getQueryData(
|
|
2121
|
+
await qc.cancelQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() });
|
|
2122
|
+
const previous = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings());
|
|
2053
2123
|
qc.setQueryData(
|
|
2054
|
-
|
|
2124
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(),
|
|
2055
2125
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2056
2126
|
);
|
|
2057
2127
|
return { previous };
|
|
2058
2128
|
},
|
|
2059
2129
|
onError: (_err, _patch, context) => {
|
|
2060
|
-
qc.setQueryData(
|
|
2130
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2061
2131
|
},
|
|
2062
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2132
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() })
|
|
2063
2133
|
});
|
|
2064
2134
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2065
2135
|
const setAll = React.useCallback(
|
|
@@ -2086,18 +2156,18 @@ function useRelevanceSave() {
|
|
|
2086
2156
|
return reactQuery.useMutation({
|
|
2087
2157
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2088
2158
|
onMutate: async (patch) => {
|
|
2089
|
-
await qc.cancelQueries({ queryKey:
|
|
2090
|
-
const previous = qc.getQueryData(
|
|
2159
|
+
await qc.cancelQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() });
|
|
2160
|
+
const previous = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings());
|
|
2091
2161
|
qc.setQueryData(
|
|
2092
|
-
|
|
2162
|
+
chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(),
|
|
2093
2163
|
(old) => old ? { ...old, ...patch } : old
|
|
2094
2164
|
);
|
|
2095
2165
|
return { previous };
|
|
2096
2166
|
},
|
|
2097
2167
|
onError: (_err, _patch, context) => {
|
|
2098
|
-
qc.setQueryData(
|
|
2168
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2099
2169
|
},
|
|
2100
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2170
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings() })
|
|
2101
2171
|
});
|
|
2102
2172
|
}
|
|
2103
2173
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2108,7 +2178,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2108
2178
|
const setLevel = React.useCallback(
|
|
2109
2179
|
(next) => {
|
|
2110
2180
|
if (!workspaceId) return;
|
|
2111
|
-
const current = qc.getQueryData(
|
|
2181
|
+
const current = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2112
2182
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2113
2183
|
},
|
|
2114
2184
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2129,7 +2199,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2129
2199
|
const setFollowing = React.useCallback(
|
|
2130
2200
|
(on, callbacks) => {
|
|
2131
2201
|
if (!conversationId) return;
|
|
2132
|
-
const current = qc.getQueryData(
|
|
2202
|
+
const current = qc.getQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2133
2203
|
save.mutate(
|
|
2134
2204
|
{
|
|
2135
2205
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2154,7 +2224,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2154
2224
|
function useSessions(options) {
|
|
2155
2225
|
const { client, enabled } = useAccountClient();
|
|
2156
2226
|
return reactQuery.useQuery({
|
|
2157
|
-
queryKey:
|
|
2227
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.sessions(),
|
|
2158
2228
|
queryFn: () => client.listSessions(),
|
|
2159
2229
|
enabled: (options?.enabled ?? true) && enabled
|
|
2160
2230
|
});
|
|
@@ -2164,7 +2234,7 @@ function useTerminateSession() {
|
|
|
2164
2234
|
const qc = reactQuery.useQueryClient();
|
|
2165
2235
|
return reactQuery.useMutation({
|
|
2166
2236
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2167
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2237
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.sessions() })
|
|
2168
2238
|
});
|
|
2169
2239
|
}
|
|
2170
2240
|
function useSignOut() {
|
|
@@ -2307,7 +2377,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2307
2377
|
const apiRef = React.useRef(api);
|
|
2308
2378
|
apiRef.current = api;
|
|
2309
2379
|
const query = reactQuery.useQuery({
|
|
2310
|
-
queryKey:
|
|
2380
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.identity(),
|
|
2311
2381
|
queryFn: () => apiRef.current.status(),
|
|
2312
2382
|
enabled,
|
|
2313
2383
|
staleTime: 6e4
|
|
@@ -2325,7 +2395,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2325
2395
|
const lastVerified = React.useRef(void 0);
|
|
2326
2396
|
const apply = React.useCallback(
|
|
2327
2397
|
(next) => {
|
|
2328
|
-
qc.setQueryData(
|
|
2398
|
+
qc.setQueryData(chunkG7NSGLUA_cjs.arbiQueryKeys.identity(), next);
|
|
2329
2399
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2330
2400
|
onVerifiedChange?.(next.verified);
|
|
2331
2401
|
}
|
|
@@ -2520,12 +2590,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2520
2590
|
enabled,
|
|
2521
2591
|
formatPrice,
|
|
2522
2592
|
onVerifiedChange: (verified) => {
|
|
2523
|
-
void qc.invalidateQueries({ queryKey:
|
|
2593
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.profile() });
|
|
2524
2594
|
onVerifiedChange?.(verified);
|
|
2525
2595
|
},
|
|
2526
2596
|
onNameAccepted: (name) => {
|
|
2527
|
-
void qc.invalidateQueries({ queryKey:
|
|
2528
|
-
void qc.invalidateQueries({ queryKey:
|
|
2597
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.profile() });
|
|
2598
|
+
void qc.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.workspaces() });
|
|
2529
2599
|
onNameAccepted?.(name);
|
|
2530
2600
|
}
|
|
2531
2601
|
});
|
|
@@ -2943,7 +3013,7 @@ function useMailDraftReplaced(draftId, onReplaced) {
|
|
|
2943
3013
|
}, [draftId]);
|
|
2944
3014
|
}
|
|
2945
3015
|
function useWorkspaceDocs(workspaceId) {
|
|
2946
|
-
const { data: docs = [], isLoading, isError } =
|
|
3016
|
+
const { data: docs = [], isLoading, isError } = chunkG7NSGLUA_cjs.useDocuments(workspaceId);
|
|
2947
3017
|
const docIds = React.useMemo(
|
|
2948
3018
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
2949
3019
|
[docs]
|
|
@@ -2951,7 +3021,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
2951
3021
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
2952
3022
|
}
|
|
2953
3023
|
function useAiTask() {
|
|
2954
|
-
const mutation =
|
|
3024
|
+
const mutation = chunkG7NSGLUA_cjs.useAssistantQuery();
|
|
2955
3025
|
const [status, setStatus] = React.useState("idle");
|
|
2956
3026
|
const [text, setText] = React.useState("");
|
|
2957
3027
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -3571,8 +3641,8 @@ function DocumentReview({
|
|
|
3571
3641
|
onClose,
|
|
3572
3642
|
className
|
|
3573
3643
|
}) {
|
|
3574
|
-
const parsedQuery =
|
|
3575
|
-
const tagsQuery =
|
|
3644
|
+
const parsedQuery = chunkG7NSGLUA_cjs.useParsedDocument(docId, stage);
|
|
3645
|
+
const tagsQuery = chunkG7NSGLUA_cjs.useTags(workspaceId);
|
|
3576
3646
|
const tagNameById = React__default.default.useMemo(() => {
|
|
3577
3647
|
const map = /* @__PURE__ */ new Map();
|
|
3578
3648
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3803,7 +3873,7 @@ function SemanticSearch({
|
|
|
3803
3873
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
3804
3874
|
const [value, setValue] = React.useState("");
|
|
3805
3875
|
const [selected, setSelected] = React.useState(null);
|
|
3806
|
-
const { data: docs = [] } =
|
|
3876
|
+
const { data: docs = [] } = chunkG7NSGLUA_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
3807
3877
|
const docMap = React.useMemo(() => {
|
|
3808
3878
|
const map = /* @__PURE__ */ new Map();
|
|
3809
3879
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -4905,7 +4975,7 @@ function ActivityFeed({
|
|
|
4905
4975
|
enabled,
|
|
4906
4976
|
"data-testid": testId = "activity-feed"
|
|
4907
4977
|
}) {
|
|
4908
|
-
const { data, isLoading, isError } =
|
|
4978
|
+
const { data, isLoading, isError } = chunkG7NSGLUA_cjs.useActivity({ limit, enabled });
|
|
4909
4979
|
if (isLoading) {
|
|
4910
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: [
|
|
4911
4981
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5063,7 +5133,7 @@ function useDirectMessages(options) {
|
|
|
5063
5133
|
enabled
|
|
5064
5134
|
});
|
|
5065
5135
|
const contactsQuery = reactQuery.useQuery({
|
|
5066
|
-
queryKey:
|
|
5136
|
+
queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.contacts(),
|
|
5067
5137
|
queryFn: () => arbi.contacts.list(),
|
|
5068
5138
|
enabled
|
|
5069
5139
|
});
|
|
@@ -6332,10 +6402,10 @@ function DocumentTable({
|
|
|
6332
6402
|
extraColumns,
|
|
6333
6403
|
className
|
|
6334
6404
|
}) {
|
|
6335
|
-
const query =
|
|
6405
|
+
const query = chunkG7NSGLUA_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6336
6406
|
const rows = documents ?? query.data ?? [];
|
|
6337
6407
|
const isLoading = !documents && query.isLoading;
|
|
6338
|
-
const tagsQuery =
|
|
6408
|
+
const tagsQuery = chunkG7NSGLUA_cjs.useTags(workspaceId);
|
|
6339
6409
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6340
6410
|
const map = /* @__PURE__ */ new Map();
|
|
6341
6411
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6516,7 +6586,7 @@ function DocumentCardMenu({
|
|
|
6516
6586
|
const invalidateDocuments = () => {
|
|
6517
6587
|
const workspaceId = arbi.getWorkspaceId();
|
|
6518
6588
|
if (workspaceId) {
|
|
6519
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6589
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
6520
6590
|
}
|
|
6521
6591
|
};
|
|
6522
6592
|
const download = reactQuery.useMutation({
|
|
@@ -6615,10 +6685,10 @@ function DocumentGallery({
|
|
|
6615
6685
|
minTileWidth = 148,
|
|
6616
6686
|
className
|
|
6617
6687
|
}) {
|
|
6618
|
-
const query =
|
|
6688
|
+
const query = chunkG7NSGLUA_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6619
6689
|
const rows = documents ?? query.data ?? [];
|
|
6620
6690
|
const isLoading = !documents && query.isLoading;
|
|
6621
|
-
const tagsQuery =
|
|
6691
|
+
const tagsQuery = chunkG7NSGLUA_cjs.useTags(workspaceId);
|
|
6622
6692
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6623
6693
|
const map = /* @__PURE__ */ new Map();
|
|
6624
6694
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6630,7 +6700,7 @@ function DocumentGallery({
|
|
|
6630
6700
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
6631
6701
|
[rows]
|
|
6632
6702
|
);
|
|
6633
|
-
const thumbsQuery =
|
|
6703
|
+
const thumbsQuery = chunkG7NSGLUA_cjs.useThumbnails(docIds);
|
|
6634
6704
|
const thumbs = thumbsQuery.data ?? {};
|
|
6635
6705
|
const session = useArbiSessionStore();
|
|
6636
6706
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -6666,7 +6736,7 @@ function DocumentGallery({
|
|
|
6666
6736
|
setRenamingId(null);
|
|
6667
6737
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
6668
6738
|
if (activeWorkspace) {
|
|
6669
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6739
|
+
void queryClient.invalidateQueries({ queryKey: chunkG7NSGLUA_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
6670
6740
|
}
|
|
6671
6741
|
}
|
|
6672
6742
|
});
|
|
@@ -7284,147 +7354,115 @@ function hasVideoTrack(blob) {
|
|
|
7284
7354
|
|
|
7285
7355
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
7286
7356
|
enumerable: true,
|
|
7287
|
-
get: function () { return
|
|
7357
|
+
get: function () { return chunkG7NSGLUA_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
7358
|
+
});
|
|
7359
|
+
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
7360
|
+
enumerable: true,
|
|
7361
|
+
get: function () { return chunkG7NSGLUA_cjs.arbiMutationKeys; }
|
|
7288
7362
|
});
|
|
7289
7363
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
7290
7364
|
enumerable: true,
|
|
7291
|
-
get: function () { return
|
|
7365
|
+
get: function () { return chunkG7NSGLUA_cjs.arbiQueryKeys; }
|
|
7292
7366
|
});
|
|
7293
7367
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
7294
7368
|
enumerable: true,
|
|
7295
|
-
get: function () { return
|
|
7369
|
+
get: function () { return chunkG7NSGLUA_cjs.isUsageMetered; }
|
|
7296
7370
|
});
|
|
7297
7371
|
Object.defineProperty(exports, "useActivity", {
|
|
7298
7372
|
enumerable: true,
|
|
7299
|
-
get: function () { return
|
|
7373
|
+
get: function () { return chunkG7NSGLUA_cjs.useActivity; }
|
|
7300
7374
|
});
|
|
7301
7375
|
Object.defineProperty(exports, "useAgents", {
|
|
7302
7376
|
enumerable: true,
|
|
7303
|
-
get: function () { return
|
|
7377
|
+
get: function () { return chunkG7NSGLUA_cjs.useAgents; }
|
|
7304
7378
|
});
|
|
7305
7379
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
7306
7380
|
enumerable: true,
|
|
7307
|
-
get: function () { return
|
|
7381
|
+
get: function () { return chunkG7NSGLUA_cjs.useAssistantQuery; }
|
|
7308
7382
|
});
|
|
7309
7383
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
7310
7384
|
enumerable: true,
|
|
7311
|
-
get: function () { return
|
|
7385
|
+
get: function () { return chunkG7NSGLUA_cjs.useCanCreateProjects; }
|
|
7312
7386
|
});
|
|
7313
7387
|
Object.defineProperty(exports, "useConfigs", {
|
|
7314
7388
|
enumerable: true,
|
|
7315
|
-
get: function () { return
|
|
7389
|
+
get: function () { return chunkG7NSGLUA_cjs.useConfigs; }
|
|
7316
7390
|
});
|
|
7317
7391
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
7318
7392
|
enumerable: true,
|
|
7319
|
-
get: function () { return
|
|
7393
|
+
get: function () { return chunkG7NSGLUA_cjs.useConversationThreads; }
|
|
7320
7394
|
});
|
|
7321
7395
|
Object.defineProperty(exports, "useConversations", {
|
|
7322
7396
|
enumerable: true,
|
|
7323
|
-
get: function () { return
|
|
7397
|
+
get: function () { return chunkG7NSGLUA_cjs.useConversations; }
|
|
7324
7398
|
});
|
|
7325
7399
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
7326
7400
|
enumerable: true,
|
|
7327
|
-
get: function () { return
|
|
7401
|
+
get: function () { return chunkG7NSGLUA_cjs.useCurrentUser; }
|
|
7328
7402
|
});
|
|
7329
7403
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
7330
7404
|
enumerable: true,
|
|
7331
|
-
get: function () { return
|
|
7405
|
+
get: function () { return chunkG7NSGLUA_cjs.useDeleteAgents; }
|
|
7332
7406
|
});
|
|
7333
7407
|
Object.defineProperty(exports, "useDocuments", {
|
|
7334
7408
|
enumerable: true,
|
|
7335
|
-
get: function () { return
|
|
7336
|
-
});
|
|
7337
|
-
Object.defineProperty(exports, "useFacts", {
|
|
7338
|
-
enumerable: true,
|
|
7339
|
-
get: function () { return chunkUTZZMUHI_cjs.useFacts; }
|
|
7409
|
+
get: function () { return chunkG7NSGLUA_cjs.useDocuments; }
|
|
7340
7410
|
});
|
|
7341
7411
|
Object.defineProperty(exports, "useFirmPool", {
|
|
7342
7412
|
enumerable: true,
|
|
7343
|
-
get: function () { return
|
|
7413
|
+
get: function () { return chunkG7NSGLUA_cjs.useFirmPool; }
|
|
7344
7414
|
});
|
|
7345
7415
|
Object.defineProperty(exports, "useHealth", {
|
|
7346
7416
|
enumerable: true,
|
|
7347
|
-
get: function () { return
|
|
7417
|
+
get: function () { return chunkG7NSGLUA_cjs.useHealth; }
|
|
7348
7418
|
});
|
|
7349
7419
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
7350
7420
|
enumerable: true,
|
|
7351
|
-
get: function () { return
|
|
7421
|
+
get: function () { return chunkG7NSGLUA_cjs.useParsedDocument; }
|
|
7352
7422
|
});
|
|
7353
7423
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
7354
7424
|
enumerable: true,
|
|
7355
|
-
get: function () { return
|
|
7425
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjectInvoices; }
|
|
7356
7426
|
});
|
|
7357
7427
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
7358
7428
|
enumerable: true,
|
|
7359
|
-
get: function () { return
|
|
7429
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjectUsage; }
|
|
7360
7430
|
});
|
|
7361
7431
|
Object.defineProperty(exports, "useProjects", {
|
|
7362
7432
|
enumerable: true,
|
|
7363
|
-
get: function () { return
|
|
7433
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjects; }
|
|
7364
7434
|
});
|
|
7365
7435
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
7366
7436
|
enumerable: true,
|
|
7367
|
-
get: function () { return
|
|
7437
|
+
get: function () { return chunkG7NSGLUA_cjs.useProjectsUsage; }
|
|
7368
7438
|
});
|
|
7369
7439
|
Object.defineProperty(exports, "useTags", {
|
|
7370
7440
|
enumerable: true,
|
|
7371
|
-
get: function () { return
|
|
7441
|
+
get: function () { return chunkG7NSGLUA_cjs.useTags; }
|
|
7372
7442
|
});
|
|
7373
7443
|
Object.defineProperty(exports, "useThumbnails", {
|
|
7374
7444
|
enumerable: true,
|
|
7375
|
-
get: function () { return
|
|
7445
|
+
get: function () { return chunkG7NSGLUA_cjs.useThumbnails; }
|
|
7376
7446
|
});
|
|
7377
7447
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
7378
7448
|
enumerable: true,
|
|
7379
|
-
get: function () { return
|
|
7449
|
+
get: function () { return chunkG7NSGLUA_cjs.useTopUpFirmPool; }
|
|
7380
7450
|
});
|
|
7381
7451
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
7382
7452
|
enumerable: true,
|
|
7383
|
-
get: function () { return
|
|
7453
|
+
get: function () { return chunkG7NSGLUA_cjs.useUserUsageToday; }
|
|
7384
7454
|
});
|
|
7385
7455
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
7386
7456
|
enumerable: true,
|
|
7387
|
-
get: function () { return
|
|
7457
|
+
get: function () { return chunkG7NSGLUA_cjs.useWorkspaceActivity; }
|
|
7388
7458
|
});
|
|
7389
7459
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
7390
7460
|
enumerable: true,
|
|
7391
|
-
get: function () { return
|
|
7461
|
+
get: function () { return chunkG7NSGLUA_cjs.useWorkspaceUsers; }
|
|
7392
7462
|
});
|
|
7393
7463
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
7394
7464
|
enumerable: true,
|
|
7395
|
-
get: function () { return
|
|
7396
|
-
});
|
|
7397
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7398
|
-
enumerable: true,
|
|
7399
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
7400
|
-
});
|
|
7401
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7402
|
-
enumerable: true,
|
|
7403
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
7404
|
-
});
|
|
7405
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7406
|
-
enumerable: true,
|
|
7407
|
-
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
7408
|
-
});
|
|
7409
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7410
|
-
enumerable: true,
|
|
7411
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
7412
|
-
});
|
|
7413
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7414
|
-
enumerable: true,
|
|
7415
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
7416
|
-
});
|
|
7417
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7418
|
-
enumerable: true,
|
|
7419
|
-
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
7420
|
-
});
|
|
7421
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7422
|
-
enumerable: true,
|
|
7423
|
-
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
7424
|
-
});
|
|
7425
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7426
|
-
enumerable: true,
|
|
7427
|
-
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
7465
|
+
get: function () { return chunkG7NSGLUA_cjs.useWorkspaces; }
|
|
7428
7466
|
});
|
|
7429
7467
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
7430
7468
|
enumerable: true,
|
|
@@ -7462,6 +7500,38 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
7462
7500
|
enumerable: true,
|
|
7463
7501
|
get: function () { return chunk6PPWZILQ_cjs.useNotify; }
|
|
7464
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
|
+
});
|
|
7465
7535
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
7466
7536
|
enumerable: true,
|
|
7467
7537
|
get: function () { return chunk65WT5PHA_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -8062,6 +8132,14 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
8062
8132
|
enumerable: true,
|
|
8063
8133
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
8064
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
|
+
});
|
|
8065
8143
|
Object.defineProperty(exports, "Button", {
|
|
8066
8144
|
enumerable: true,
|
|
8067
8145
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -8122,14 +8200,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
8122
8200
|
enumerable: true,
|
|
8123
8201
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
8124
8202
|
});
|
|
8125
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
8126
|
-
enumerable: true,
|
|
8127
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
8128
|
-
});
|
|
8129
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
8130
|
-
enumerable: true,
|
|
8131
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
8132
|
-
});
|
|
8133
8203
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
8134
8204
|
enumerable: true,
|
|
8135
8205
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -8376,16 +8446,20 @@ exports.useConversationPendingAuth = useConversationPendingAuth;
|
|
|
8376
8446
|
exports.useConversationUsage = useConversationUsage;
|
|
8377
8447
|
exports.useCreateAgent = useCreateAgent;
|
|
8378
8448
|
exports.useCreateContact = useCreateContact;
|
|
8449
|
+
exports.useCreateFact = useCreateFact;
|
|
8450
|
+
exports.useCreateFacts = useCreateFacts;
|
|
8379
8451
|
exports.useCreateWork = useCreateWork;
|
|
8380
8452
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
8381
8453
|
exports.useCurrentSessionId = useCurrentSessionId;
|
|
8382
8454
|
exports.useDeleteAccount = useDeleteAccount;
|
|
8383
8455
|
exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
8384
8456
|
exports.useDeleteContact = useDeleteContact;
|
|
8457
|
+
exports.useDeleteFact = useDeleteFact;
|
|
8385
8458
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
8386
8459
|
exports.useDirectMessages = useDirectMessages;
|
|
8387
8460
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
8388
8461
|
exports.useEmailChange = useEmailChange;
|
|
8462
|
+
exports.useFacts = useFacts;
|
|
8389
8463
|
exports.useFilteredProjects = useFilteredProjects;
|
|
8390
8464
|
exports.useFollowThread = useFollowThread;
|
|
8391
8465
|
exports.useGenerateAgentAvatar = useGenerateAgentAvatar;
|
|
@@ -8423,6 +8497,7 @@ exports.useRunConversation = useRunConversation;
|
|
|
8423
8497
|
exports.useRunWorkflow = useRunWorkflow;
|
|
8424
8498
|
exports.useSaveAgentConfig = useSaveAgentConfig;
|
|
8425
8499
|
exports.useSaveMailDraft = useSaveMailDraft;
|
|
8500
|
+
exports.useSearchFacts = useSearchFacts;
|
|
8426
8501
|
exports.useSemanticSearch = useSemanticSearch;
|
|
8427
8502
|
exports.useSendBackStep = useSendBackStep;
|
|
8428
8503
|
exports.useSendMail = useSendMail;
|
|
@@ -8437,6 +8512,7 @@ exports.useTagKindSchema = useTagKindSchema;
|
|
|
8437
8512
|
exports.useTerminateSession = useTerminateSession;
|
|
8438
8513
|
exports.useUpdateContact = useUpdateContact;
|
|
8439
8514
|
exports.useUpdateConversation = useUpdateConversation;
|
|
8515
|
+
exports.useUpdateFact = useUpdateFact;
|
|
8440
8516
|
exports.useUpdateMailMessage = useUpdateMailMessage;
|
|
8441
8517
|
exports.useUpdateProfile = useUpdateProfile;
|
|
8442
8518
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
@@ -8446,6 +8522,7 @@ exports.useUploadSkillFiles = useUploadSkillFiles;
|
|
|
8446
8522
|
exports.useUserSettings = useUserSettings;
|
|
8447
8523
|
exports.useVideoRecorder = useVideoRecorder;
|
|
8448
8524
|
exports.useWorkNotifications = useWorkNotifications;
|
|
8525
|
+
exports.useWorkflowRuns = useWorkflowRuns;
|
|
8449
8526
|
exports.useWorkflows = useWorkflows;
|
|
8450
8527
|
exports.useWorkspaceDocs = useWorkspaceDocs;
|
|
8451
8528
|
exports.useWorkspaceNotificationLevel = useWorkspaceNotificationLevel;
|