@arbidocs/react 0.4.143 → 0.4.144
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-5RYBYTCF.cjs → chunk-CVJ25DFD.cjs} +2 -13
- package/dist/chunk-CVJ25DFD.cjs.map +1 -0
- package/dist/{chunk-GQ5TA4BM.js → chunk-E4VILXG5.js} +3 -13
- package/dist/chunk-E4VILXG5.js.map +1 -0
- package/dist/index.cjs +195 -220
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -91
- package/dist/index.d.ts +20 -91
- package/dist/index.js +15 -35
- 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-5RYBYTCF.cjs.map +0 -1
- package/dist/chunk-GQ5TA4BM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCVJ25DFD_cjs = require('./chunk-CVJ25DFD.cjs');
|
|
4
|
+
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.cjs');
|
|
4
5
|
var chunkL57RRAII_cjs = require('./chunk-L57RRAII.cjs');
|
|
5
6
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
6
7
|
require('./chunk-VOFNX4P6.cjs');
|
|
7
|
-
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: [...chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: chunkCVJ25DFD_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: [...chunkCVJ25DFD_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,
|
|
@@ -324,13 +324,13 @@ function useUploadSkillFiles() {
|
|
|
324
324
|
}
|
|
325
325
|
return results;
|
|
326
326
|
},
|
|
327
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
327
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.skills() })
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
function useSkillSource(docExtId, options) {
|
|
331
331
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
332
332
|
return reactQuery.useQuery({
|
|
333
|
-
queryKey:
|
|
333
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
|
|
334
334
|
queryFn: async () => {
|
|
335
335
|
const response = await arbi.documents.download(docExtId);
|
|
336
336
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
@@ -345,7 +345,7 @@ function useDeleteSkill() {
|
|
|
345
345
|
const qc = reactQuery.useQueryClient();
|
|
346
346
|
return reactQuery.useMutation({
|
|
347
347
|
mutationFn: (docExtId) => arbi.documents.delete([docExtId]),
|
|
348
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
348
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.skills() })
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
function useSetSkillVisibility() {
|
|
@@ -353,7 +353,7 @@ function useSetSkillVisibility() {
|
|
|
353
353
|
const qc = reactQuery.useQueryClient();
|
|
354
354
|
return reactQuery.useMutation({
|
|
355
355
|
mutationFn: ({ docExtId, visibility }) => arbi.documents.update([{ external_id: docExtId, shared: visibility === "global" }]),
|
|
356
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
356
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.skills() })
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function useStartWorkQuery() {
|
|
@@ -380,13 +380,13 @@ function useStartWorkQuery() {
|
|
|
380
380
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
381
381
|
);
|
|
382
382
|
},
|
|
383
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
383
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allConversations() })
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
function useAgentSession(agentId, options) {
|
|
387
387
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
388
388
|
return reactQuery.useQuery({
|
|
389
|
-
queryKey:
|
|
389
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
390
390
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
391
391
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
392
392
|
refetchInterval: 5e3
|
|
@@ -395,7 +395,7 @@ function useAgentSession(agentId, options) {
|
|
|
395
395
|
function useAgentChats(agentId) {
|
|
396
396
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
397
397
|
return reactQuery.useQuery({
|
|
398
|
-
queryKey:
|
|
398
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
399
399
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
400
400
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
401
401
|
refetchInterval: 5e3
|
|
@@ -404,10 +404,10 @@ function useAgentChats(agentId) {
|
|
|
404
404
|
function refreshAgentSession(qc, agentId) {
|
|
405
405
|
return Promise.all(
|
|
406
406
|
[
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
407
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.agentSession(agentId),
|
|
408
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
409
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.agentChats(agentId),
|
|
410
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.sessions()
|
|
411
411
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
412
412
|
);
|
|
413
413
|
}
|
|
@@ -554,8 +554,8 @@ function useArbiChat(options = {}) {
|
|
|
554
554
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
555
555
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
556
556
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
557
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
558
|
-
const ordinaryHistory =
|
|
557
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkCVJ25DFD_cjs.useDocuments(workspaceId);
|
|
558
|
+
const ordinaryHistory = chunkCVJ25DFD_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
559
559
|
const agentHistory = useAgentChats(agentId);
|
|
560
560
|
const stored = React.useMemo(
|
|
561
561
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -570,7 +570,7 @@ function useArbiChat(options = {}) {
|
|
|
570
570
|
);
|
|
571
571
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
572
572
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
573
|
-
const query =
|
|
573
|
+
const query = chunkCVJ25DFD_cjs.useAssistantQuery();
|
|
574
574
|
const { mutateAsync } = query;
|
|
575
575
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
576
576
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -630,7 +630,7 @@ function useArbiChat(options = {}) {
|
|
|
630
630
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
631
631
|
) || active.messages.some((message) => message.status === "streaming");
|
|
632
632
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
633
|
-
const loaded =
|
|
633
|
+
const loaded = chunkCVJ25DFD_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
634
634
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
635
635
|
live: liveHistory
|
|
636
636
|
});
|
|
@@ -1411,14 +1411,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1411
1411
|
if (!workspaceId) return;
|
|
1412
1412
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1413
1413
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1414
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1415
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1414
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1415
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1416
1416
|
return;
|
|
1417
1417
|
}
|
|
1418
1418
|
if (client.isMessageType(msg, "task_update")) {
|
|
1419
1419
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1420
1420
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1421
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1421
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
});
|
|
@@ -1547,7 +1547,7 @@ function useShellWorkspaces(options) {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
function useArbiShellWorkspaces(options = {}) {
|
|
1549
1549
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1550
|
-
const query =
|
|
1550
|
+
const query = chunkCVJ25DFD_cjs.useWorkspaces();
|
|
1551
1551
|
const { select, ...rest } = options;
|
|
1552
1552
|
const defaultSelect = React.useCallback(
|
|
1553
1553
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1566,7 +1566,7 @@ function useFacts(workspaceId, options) {
|
|
|
1566
1566
|
const { enabled = true, ...filter } = options ?? {};
|
|
1567
1567
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1568
1568
|
return reactQuery.useQuery({
|
|
1569
|
-
queryKey: [...
|
|
1569
|
+
queryKey: [...chunkCVJ25DFD_cjs.arbiQueryKeys.facts(workspace), filter],
|
|
1570
1570
|
queryFn: () => arbi.facts.list(filter),
|
|
1571
1571
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
1572
1572
|
staleTime: 3e4
|
|
@@ -1574,7 +1574,7 @@ function useFacts(workspaceId, options) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
function useRefreshFacts() {
|
|
1576
1576
|
const qc = reactQuery.useQueryClient();
|
|
1577
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1577
|
+
return () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allFacts() });
|
|
1578
1578
|
}
|
|
1579
1579
|
function useCreateFact() {
|
|
1580
1580
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1618,19 +1618,19 @@ function openWorkspaceId(arbi) {
|
|
|
1618
1618
|
return arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
1619
1619
|
}
|
|
1620
1620
|
function patchWorkspaceTags(qc, workspaceId, reducer) {
|
|
1621
|
-
const key =
|
|
1621
|
+
const key = chunkCVJ25DFD_cjs.arbiQueryKeys.tags(workspaceId);
|
|
1622
1622
|
const current = qc.getQueryData(key);
|
|
1623
1623
|
if (!current) return;
|
|
1624
1624
|
const next = reducer(current);
|
|
1625
1625
|
if (next !== current) qc.setQueryData(key, next);
|
|
1626
1626
|
}
|
|
1627
1627
|
function invalidateTagTables(qc, workspaceId) {
|
|
1628
|
-
return qc.invalidateQueries({ queryKey:
|
|
1628
|
+
return qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.tagLists(workspaceId) });
|
|
1629
1629
|
}
|
|
1630
1630
|
function invalidateTagData(qc, workspaceId) {
|
|
1631
1631
|
return Promise.all([
|
|
1632
|
-
qc.invalidateQueries({ queryKey:
|
|
1633
|
-
qc.invalidateQueries({ queryKey:
|
|
1632
|
+
qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1633
|
+
qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1634
1634
|
]);
|
|
1635
1635
|
}
|
|
1636
1636
|
function useInvalidateTagData() {
|
|
@@ -1661,7 +1661,7 @@ function settleChangedTag(qc, tag) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
var replayableTagMutations = [
|
|
1663
1663
|
{
|
|
1664
|
-
mutationKey:
|
|
1664
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.createTag(),
|
|
1665
1665
|
run: (client, input) => browser.tags.createTag(client, input),
|
|
1666
1666
|
settle: (qc, created) => settleCreatedTag(qc, created)
|
|
1667
1667
|
}
|
|
@@ -1670,7 +1670,7 @@ function useCreateTag() {
|
|
|
1670
1670
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1671
1671
|
const qc = reactQuery.useQueryClient();
|
|
1672
1672
|
return reactQuery.useMutation({
|
|
1673
|
-
mutationKey:
|
|
1673
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.createTag(),
|
|
1674
1674
|
mutationFn: (input) => arbi.tags.create(input),
|
|
1675
1675
|
onSuccess: (created) => settleCreatedTag(qc, created)
|
|
1676
1676
|
});
|
|
@@ -1679,7 +1679,7 @@ function useUpdateTag() {
|
|
|
1679
1679
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1680
1680
|
const qc = reactQuery.useQueryClient();
|
|
1681
1681
|
return reactQuery.useMutation({
|
|
1682
|
-
mutationKey:
|
|
1682
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.updateTag(),
|
|
1683
1683
|
mutationFn: ({ tagId, change }) => arbi.tags.update(tagId, change),
|
|
1684
1684
|
onSuccess: (tag) => settleChangedTag(qc, tag)
|
|
1685
1685
|
});
|
|
@@ -1688,7 +1688,7 @@ function useSetTagValues() {
|
|
|
1688
1688
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1689
1689
|
const qc = reactQuery.useQueryClient();
|
|
1690
1690
|
return reactQuery.useMutation({
|
|
1691
|
-
mutationKey:
|
|
1691
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.updateTag(),
|
|
1692
1692
|
mutationFn: ({
|
|
1693
1693
|
tagId,
|
|
1694
1694
|
values
|
|
@@ -1700,7 +1700,7 @@ function useDeleteTag() {
|
|
|
1700
1700
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1701
1701
|
const qc = reactQuery.useQueryClient();
|
|
1702
1702
|
return reactQuery.useMutation({
|
|
1703
|
-
mutationKey:
|
|
1703
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.deleteTag(),
|
|
1704
1704
|
mutationFn: (tagId) => arbi.tags.delete(tagId),
|
|
1705
1705
|
onSuccess: (_data, tagId) => {
|
|
1706
1706
|
const workspaceId = openWorkspaceId(arbi);
|
|
@@ -1712,7 +1712,7 @@ function useDeleteTag() {
|
|
|
1712
1712
|
);
|
|
1713
1713
|
return Promise.all([
|
|
1714
1714
|
invalidateTagTables(qc, workspaceId),
|
|
1715
|
-
qc.invalidateQueries({ queryKey:
|
|
1715
|
+
qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1716
1716
|
]);
|
|
1717
1717
|
}
|
|
1718
1718
|
});
|
|
@@ -1720,7 +1720,7 @@ function useDeleteTag() {
|
|
|
1720
1720
|
function useExtractEntities() {
|
|
1721
1721
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1722
1722
|
return reactQuery.useMutation({
|
|
1723
|
-
mutationKey:
|
|
1723
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.extractEntities(),
|
|
1724
1724
|
mutationFn: (docIds) => arbi.tags.extractEntities(docIds)
|
|
1725
1725
|
});
|
|
1726
1726
|
}
|
|
@@ -1728,7 +1728,7 @@ function useTagKindSchema(kind, options) {
|
|
|
1728
1728
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1729
1729
|
const workspaceId = openWorkspaceId(arbi) ?? "";
|
|
1730
1730
|
return reactQuery.useQuery({
|
|
1731
|
-
queryKey:
|
|
1731
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1732
1732
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1733
1733
|
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1734
1734
|
});
|
|
@@ -1737,7 +1737,7 @@ function useUpdateTagKindSchema() {
|
|
|
1737
1737
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1738
1738
|
const qc = reactQuery.useQueryClient();
|
|
1739
1739
|
return reactQuery.useMutation({
|
|
1740
|
-
mutationKey:
|
|
1740
|
+
mutationKey: chunkCVJ25DFD_cjs.arbiMutationKeys.updateTagKindSchema(),
|
|
1741
1741
|
mutationFn: ({
|
|
1742
1742
|
kind,
|
|
1743
1743
|
fields
|
|
@@ -1745,7 +1745,7 @@ function useUpdateTagKindSchema() {
|
|
|
1745
1745
|
onSuccess: (schema) => {
|
|
1746
1746
|
const workspaceId = openWorkspaceId(arbi);
|
|
1747
1747
|
if (!workspaceId) return;
|
|
1748
|
-
qc.setQueryData(
|
|
1748
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1749
1749
|
return invalidateTagData(qc, workspaceId);
|
|
1750
1750
|
}
|
|
1751
1751
|
});
|
|
@@ -1765,7 +1765,7 @@ function registerArbiMutationDefaults(queryClient, client) {
|
|
|
1765
1765
|
function useFilteredProjects(filters, options) {
|
|
1766
1766
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1767
1767
|
return reactQuery.useQuery({
|
|
1768
|
-
queryKey:
|
|
1768
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1769
1769
|
queryFn: () => arbi.projects.list(filters),
|
|
1770
1770
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1771
1771
|
});
|
|
@@ -1778,14 +1778,14 @@ function useUpdateProjectFields() {
|
|
|
1778
1778
|
projectExtId,
|
|
1779
1779
|
patch
|
|
1780
1780
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1781
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1781
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.projects() })
|
|
1782
1782
|
});
|
|
1783
1783
|
}
|
|
1784
1784
|
function useProjectEvents(projectExtId, options) {
|
|
1785
1785
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1786
1786
|
return reactQuery.useQuery({
|
|
1787
1787
|
queryKey: [
|
|
1788
|
-
...
|
|
1788
|
+
...chunkCVJ25DFD_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1789
1789
|
options?.kind ?? "all",
|
|
1790
1790
|
options?.limit ?? "default"
|
|
1791
1791
|
],
|
|
@@ -1796,7 +1796,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1796
1796
|
function useConversationUsage(conversationId, options) {
|
|
1797
1797
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1798
1798
|
return reactQuery.useQuery({
|
|
1799
|
-
queryKey:
|
|
1799
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1800
1800
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1801
1801
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1802
1802
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1805,7 +1805,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1805
1805
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1806
1806
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1807
1807
|
return reactQuery.useQuery({
|
|
1808
|
-
queryKey:
|
|
1808
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1809
1809
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1810
1810
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1811
1811
|
});
|
|
@@ -1813,7 +1813,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1813
1813
|
function useContacts(options) {
|
|
1814
1814
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1815
1815
|
return reactQuery.useQuery({
|
|
1816
|
-
queryKey:
|
|
1816
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.contacts(),
|
|
1817
1817
|
queryFn: () => arbi.contacts.list(),
|
|
1818
1818
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1819
1819
|
});
|
|
@@ -1828,7 +1828,7 @@ function usePendingContacts(options) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
function useInvalidateContacts() {
|
|
1830
1830
|
const qc = reactQuery.useQueryClient();
|
|
1831
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1831
|
+
return () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.contacts() });
|
|
1832
1832
|
}
|
|
1833
1833
|
function useInviteContacts() {
|
|
1834
1834
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1866,7 +1866,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
1866
1866
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1867
1867
|
const term = useDebounced(q.trim(), debounceMs);
|
|
1868
1868
|
return reactQuery.useQuery({
|
|
1869
|
-
queryKey: [...
|
|
1869
|
+
queryKey: [...chunkCVJ25DFD_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
1870
1870
|
queryFn: () => arbi.contacts.search(term),
|
|
1871
1871
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
1872
1872
|
staleTime: 6e4,
|
|
@@ -1885,7 +1885,7 @@ function useDebounced(value, ms) {
|
|
|
1885
1885
|
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
1886
1886
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1887
1887
|
return reactQuery.useQuery({
|
|
1888
|
-
queryKey:
|
|
1888
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
1889
1889
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
1890
1890
|
staleTime,
|
|
1891
1891
|
queryFn: () => arbi.houseTemplates.candidates()
|
|
@@ -1896,7 +1896,7 @@ function useSetWorkspaceHouseTemplate() {
|
|
|
1896
1896
|
const queryClient = reactQuery.useQueryClient();
|
|
1897
1897
|
return reactQuery.useMutation({
|
|
1898
1898
|
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
1899
|
-
onSuccess: () => queryClient.invalidateQueries({ queryKey:
|
|
1899
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.workspaces() })
|
|
1900
1900
|
});
|
|
1901
1901
|
}
|
|
1902
1902
|
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
@@ -1997,11 +1997,11 @@ function useProfile(options) {
|
|
|
1997
1997
|
const { client, enabled } = useAccountClient();
|
|
1998
1998
|
const qc = reactQuery.useQueryClient();
|
|
1999
1999
|
React.useEffect(
|
|
2000
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
2000
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
2001
2001
|
[client, qc]
|
|
2002
2002
|
);
|
|
2003
2003
|
return reactQuery.useQuery({
|
|
2004
|
-
queryKey:
|
|
2004
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.profile(),
|
|
2005
2005
|
queryFn: () => client.profile(),
|
|
2006
2006
|
enabled: (options?.enabled ?? true) && enabled,
|
|
2007
2007
|
staleTime: Infinity
|
|
@@ -2016,9 +2016,9 @@ function useUpdateProfile() {
|
|
|
2016
2016
|
return client.profile();
|
|
2017
2017
|
},
|
|
2018
2018
|
onSuccess: (profile) => {
|
|
2019
|
-
qc.setQueryData(
|
|
2020
|
-
void qc.invalidateQueries({ queryKey:
|
|
2021
|
-
return qc.invalidateQueries({ queryKey:
|
|
2019
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.profile(), profile);
|
|
2020
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.identity() });
|
|
2021
|
+
return qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.workspaces() });
|
|
2022
2022
|
}
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
@@ -2101,7 +2101,7 @@ function useConfirmEmailChange() {
|
|
|
2101
2101
|
const qc = reactQuery.useQueryClient();
|
|
2102
2102
|
return reactQuery.useMutation({
|
|
2103
2103
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
2104
|
-
onSuccess: () => qc.setQueryData(
|
|
2104
|
+
onSuccess: () => qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.profile(), client.profile())
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
2107
|
function useEmailChange({
|
|
@@ -2257,34 +2257,6 @@ function usePasswordChangeForm({
|
|
|
2257
2257
|
}
|
|
2258
2258
|
};
|
|
2259
2259
|
}
|
|
2260
|
-
function useUserSettings(options) {
|
|
2261
|
-
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2262
|
-
return reactQuery.useQuery({
|
|
2263
|
-
queryKey: chunk5RYBYTCF_cjs.arbiQueryKeys.userSettings(),
|
|
2264
|
-
queryFn: () => arbi.settings.get(),
|
|
2265
|
-
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
function useUpdateUserSettings() {
|
|
2269
|
-
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2270
|
-
const qc = reactQuery.useQueryClient();
|
|
2271
|
-
return reactQuery.useMutation({
|
|
2272
|
-
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2273
|
-
onMutate: async (patch) => {
|
|
2274
|
-
await qc.cancelQueries({ queryKey: chunk5RYBYTCF_cjs.arbiQueryKeys.userSettings() });
|
|
2275
|
-
const previous = qc.getQueryData(chunk5RYBYTCF_cjs.arbiQueryKeys.userSettings());
|
|
2276
|
-
qc.setQueryData(
|
|
2277
|
-
chunk5RYBYTCF_cjs.arbiQueryKeys.userSettings(),
|
|
2278
|
-
(old) => old ? { ...old, ...patch } : old
|
|
2279
|
-
);
|
|
2280
|
-
return { previous };
|
|
2281
|
-
},
|
|
2282
|
-
onError: (_err, _patch, context) => {
|
|
2283
|
-
qc.setQueryData(chunk5RYBYTCF_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2284
|
-
},
|
|
2285
|
-
onSettled: () => qc.invalidateQueries({ queryKey: chunk5RYBYTCF_cjs.arbiQueryKeys.userSettings() })
|
|
2286
|
-
});
|
|
2287
|
-
}
|
|
2288
2260
|
function toNotificationPreferences(stored, keys) {
|
|
2289
2261
|
const checked = Object.fromEntries(keys.map((key) => [key, stored?.[key] ?? true]));
|
|
2290
2262
|
return {
|
|
@@ -2294,6 +2266,14 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2294
2266
|
categoryPatch: (key, value) => ({ [key]: value })
|
|
2295
2267
|
};
|
|
2296
2268
|
}
|
|
2269
|
+
function useUserSettings(options) {
|
|
2270
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2271
|
+
return reactQuery.useQuery({
|
|
2272
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2273
|
+
queryFn: () => arbi.settings.get(),
|
|
2274
|
+
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2275
|
+
});
|
|
2276
|
+
}
|
|
2297
2277
|
function useNotificationPreferences(keys, options) {
|
|
2298
2278
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2299
2279
|
const qc = reactQuery.useQueryClient();
|
|
@@ -2302,18 +2282,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2302
2282
|
const save = reactQuery.useMutation({
|
|
2303
2283
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2304
2284
|
onMutate: async (patch) => {
|
|
2305
|
-
await qc.cancelQueries({ queryKey:
|
|
2306
|
-
const previous = qc.getQueryData(
|
|
2285
|
+
await qc.cancelQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() });
|
|
2286
|
+
const previous = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings());
|
|
2307
2287
|
qc.setQueryData(
|
|
2308
|
-
|
|
2288
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2309
2289
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2310
2290
|
);
|
|
2311
2291
|
return { previous };
|
|
2312
2292
|
},
|
|
2313
2293
|
onError: (_err, _patch, context) => {
|
|
2314
|
-
qc.setQueryData(
|
|
2294
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2315
2295
|
},
|
|
2316
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2296
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() })
|
|
2317
2297
|
});
|
|
2318
2298
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2319
2299
|
const setAll = React.useCallback(
|
|
@@ -2340,18 +2320,18 @@ function useRelevanceSave() {
|
|
|
2340
2320
|
return reactQuery.useMutation({
|
|
2341
2321
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2342
2322
|
onMutate: async (patch) => {
|
|
2343
|
-
await qc.cancelQueries({ queryKey:
|
|
2344
|
-
const previous = qc.getQueryData(
|
|
2323
|
+
await qc.cancelQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() });
|
|
2324
|
+
const previous = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings());
|
|
2345
2325
|
qc.setQueryData(
|
|
2346
|
-
|
|
2326
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2347
2327
|
(old) => old ? { ...old, ...patch } : old
|
|
2348
2328
|
);
|
|
2349
2329
|
return { previous };
|
|
2350
2330
|
},
|
|
2351
2331
|
onError: (_err, _patch, context) => {
|
|
2352
|
-
qc.setQueryData(
|
|
2332
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2353
2333
|
},
|
|
2354
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2334
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() })
|
|
2355
2335
|
});
|
|
2356
2336
|
}
|
|
2357
2337
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2362,7 +2342,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2362
2342
|
const setLevel = React.useCallback(
|
|
2363
2343
|
(next) => {
|
|
2364
2344
|
if (!workspaceId) return;
|
|
2365
|
-
const current = qc.getQueryData(
|
|
2345
|
+
const current = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2366
2346
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2367
2347
|
},
|
|
2368
2348
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2383,7 +2363,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2383
2363
|
const setFollowing = React.useCallback(
|
|
2384
2364
|
(on, callbacks) => {
|
|
2385
2365
|
if (!conversationId) return;
|
|
2386
|
-
const current = qc.getQueryData(
|
|
2366
|
+
const current = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2387
2367
|
save.mutate(
|
|
2388
2368
|
{
|
|
2389
2369
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2408,7 +2388,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2408
2388
|
function useSessions(options) {
|
|
2409
2389
|
const { client, enabled } = useAccountClient();
|
|
2410
2390
|
return reactQuery.useQuery({
|
|
2411
|
-
queryKey:
|
|
2391
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.sessions(),
|
|
2412
2392
|
queryFn: () => client.listSessions(),
|
|
2413
2393
|
enabled: (options?.enabled ?? true) && enabled
|
|
2414
2394
|
});
|
|
@@ -2418,7 +2398,7 @@ function useTerminateSession() {
|
|
|
2418
2398
|
const qc = reactQuery.useQueryClient();
|
|
2419
2399
|
return reactQuery.useMutation({
|
|
2420
2400
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2421
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2401
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.sessions() })
|
|
2422
2402
|
});
|
|
2423
2403
|
}
|
|
2424
2404
|
function useSignOut() {
|
|
@@ -2561,7 +2541,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2561
2541
|
const apiRef = React.useRef(api);
|
|
2562
2542
|
apiRef.current = api;
|
|
2563
2543
|
const query = reactQuery.useQuery({
|
|
2564
|
-
queryKey:
|
|
2544
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.identity(),
|
|
2565
2545
|
queryFn: () => apiRef.current.status(),
|
|
2566
2546
|
enabled,
|
|
2567
2547
|
staleTime: 6e4
|
|
@@ -2579,7 +2559,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2579
2559
|
const lastVerified = React.useRef(void 0);
|
|
2580
2560
|
const apply = React.useCallback(
|
|
2581
2561
|
(next) => {
|
|
2582
|
-
qc.setQueryData(
|
|
2562
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.identity(), next);
|
|
2583
2563
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2584
2564
|
onVerifiedChange?.(next.verified);
|
|
2585
2565
|
}
|
|
@@ -2774,12 +2754,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2774
2754
|
enabled,
|
|
2775
2755
|
formatPrice,
|
|
2776
2756
|
onVerifiedChange: (verified) => {
|
|
2777
|
-
void qc.invalidateQueries({ queryKey:
|
|
2757
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.profile() });
|
|
2778
2758
|
onVerifiedChange?.(verified);
|
|
2779
2759
|
},
|
|
2780
2760
|
onNameAccepted: (name) => {
|
|
2781
|
-
void qc.invalidateQueries({ queryKey:
|
|
2782
|
-
void qc.invalidateQueries({ queryKey:
|
|
2761
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.profile() });
|
|
2762
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.workspaces() });
|
|
2783
2763
|
onNameAccepted?.(name);
|
|
2784
2764
|
}
|
|
2785
2765
|
});
|
|
@@ -3842,7 +3822,7 @@ function useDeleteBookingPage() {
|
|
|
3842
3822
|
});
|
|
3843
3823
|
}
|
|
3844
3824
|
function useWorkspaceDocs(workspaceId) {
|
|
3845
|
-
const { data: docs = [], isLoading, isError } =
|
|
3825
|
+
const { data: docs = [], isLoading, isError } = chunkCVJ25DFD_cjs.useDocuments(workspaceId);
|
|
3846
3826
|
const docIds = React.useMemo(
|
|
3847
3827
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
3848
3828
|
[docs]
|
|
@@ -3850,7 +3830,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
3850
3830
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
3851
3831
|
}
|
|
3852
3832
|
function useAiTask() {
|
|
3853
|
-
const mutation =
|
|
3833
|
+
const mutation = chunkCVJ25DFD_cjs.useAssistantQuery();
|
|
3854
3834
|
const [status, setStatus] = React.useState("idle");
|
|
3855
3835
|
const [text, setText] = React.useState("");
|
|
3856
3836
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -4470,8 +4450,8 @@ function DocumentReview({
|
|
|
4470
4450
|
onClose,
|
|
4471
4451
|
className
|
|
4472
4452
|
}) {
|
|
4473
|
-
const parsedQuery =
|
|
4474
|
-
const tagsQuery =
|
|
4453
|
+
const parsedQuery = chunkCVJ25DFD_cjs.useParsedDocument(docId, stage);
|
|
4454
|
+
const tagsQuery = chunkCVJ25DFD_cjs.useTags(workspaceId);
|
|
4475
4455
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4476
4456
|
const map = /* @__PURE__ */ new Map();
|
|
4477
4457
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4702,7 +4682,7 @@ function SemanticSearch({
|
|
|
4702
4682
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
4703
4683
|
const [value, setValue] = React.useState("");
|
|
4704
4684
|
const [selected, setSelected] = React.useState(null);
|
|
4705
|
-
const { data: docs = [] } =
|
|
4685
|
+
const { data: docs = [] } = chunkCVJ25DFD_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
4706
4686
|
const docMap = React.useMemo(() => {
|
|
4707
4687
|
const map = /* @__PURE__ */ new Map();
|
|
4708
4688
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -5804,7 +5784,7 @@ function ActivityFeed({
|
|
|
5804
5784
|
enabled,
|
|
5805
5785
|
"data-testid": testId = "activity-feed"
|
|
5806
5786
|
}) {
|
|
5807
|
-
const { data, isLoading, isError } =
|
|
5787
|
+
const { data, isLoading, isError } = chunkCVJ25DFD_cjs.useActivity({ limit, enabled });
|
|
5808
5788
|
if (isLoading) {
|
|
5809
5789
|
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: [
|
|
5810
5790
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5881,12 +5861,12 @@ function useNotifications(options = {}) {
|
|
|
5881
5861
|
React.useEffect(
|
|
5882
5862
|
() => ws?.subscribe((message) => {
|
|
5883
5863
|
if ("sender" in message && "recipient" in message)
|
|
5884
|
-
void queries.invalidateQueries({ queryKey:
|
|
5864
|
+
void queries.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allNotifications() });
|
|
5885
5865
|
}),
|
|
5886
5866
|
[ws, queries]
|
|
5887
5867
|
);
|
|
5888
5868
|
return reactQuery.useQuery({
|
|
5889
|
-
queryKey:
|
|
5869
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.notifications(limit),
|
|
5890
5870
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
5891
5871
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
5892
5872
|
});
|
|
@@ -5896,7 +5876,7 @@ function useDeleteNotifications() {
|
|
|
5896
5876
|
const queries = reactQuery.useQueryClient();
|
|
5897
5877
|
return reactQuery.useMutation({
|
|
5898
5878
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
5899
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
5879
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allNotifications() })
|
|
5900
5880
|
});
|
|
5901
5881
|
}
|
|
5902
5882
|
function useMarkNotificationsRead() {
|
|
@@ -5904,7 +5884,7 @@ function useMarkNotificationsRead() {
|
|
|
5904
5884
|
const queries = reactQuery.useQueryClient();
|
|
5905
5885
|
return reactQuery.useMutation({
|
|
5906
5886
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
5907
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
5887
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allNotifications() })
|
|
5908
5888
|
});
|
|
5909
5889
|
}
|
|
5910
5890
|
|
|
@@ -6357,7 +6337,7 @@ function useDirectMessages(options) {
|
|
|
6357
6337
|
enabled
|
|
6358
6338
|
});
|
|
6359
6339
|
const contactsQuery = reactQuery.useQuery({
|
|
6360
|
-
queryKey:
|
|
6340
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.contacts(),
|
|
6361
6341
|
queryFn: () => arbi.contacts.list(),
|
|
6362
6342
|
enabled
|
|
6363
6343
|
});
|
|
@@ -7626,10 +7606,10 @@ function DocumentTable({
|
|
|
7626
7606
|
extraColumns,
|
|
7627
7607
|
className
|
|
7628
7608
|
}) {
|
|
7629
|
-
const query =
|
|
7609
|
+
const query = chunkCVJ25DFD_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7630
7610
|
const rows = documents ?? query.data ?? [];
|
|
7631
7611
|
const isLoading = !documents && query.isLoading;
|
|
7632
|
-
const tagsQuery =
|
|
7612
|
+
const tagsQuery = chunkCVJ25DFD_cjs.useTags(workspaceId);
|
|
7633
7613
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7634
7614
|
const map = /* @__PURE__ */ new Map();
|
|
7635
7615
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7810,7 +7790,7 @@ function DocumentCardMenu({
|
|
|
7810
7790
|
const invalidateDocuments = () => {
|
|
7811
7791
|
const workspaceId = arbi.getWorkspaceId();
|
|
7812
7792
|
if (workspaceId) {
|
|
7813
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7793
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
7814
7794
|
}
|
|
7815
7795
|
};
|
|
7816
7796
|
const download = reactQuery.useMutation({
|
|
@@ -7909,10 +7889,10 @@ function DocumentGallery({
|
|
|
7909
7889
|
minTileWidth = 148,
|
|
7910
7890
|
className
|
|
7911
7891
|
}) {
|
|
7912
|
-
const query =
|
|
7892
|
+
const query = chunkCVJ25DFD_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7913
7893
|
const rows = documents ?? query.data ?? [];
|
|
7914
7894
|
const isLoading = !documents && query.isLoading;
|
|
7915
|
-
const tagsQuery =
|
|
7895
|
+
const tagsQuery = chunkCVJ25DFD_cjs.useTags(workspaceId);
|
|
7916
7896
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7917
7897
|
const map = /* @__PURE__ */ new Map();
|
|
7918
7898
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7924,7 +7904,7 @@ function DocumentGallery({
|
|
|
7924
7904
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
7925
7905
|
[rows]
|
|
7926
7906
|
);
|
|
7927
|
-
const thumbsQuery =
|
|
7907
|
+
const thumbsQuery = chunkCVJ25DFD_cjs.useThumbnails(docIds);
|
|
7928
7908
|
const thumbs = thumbsQuery.data ?? {};
|
|
7929
7909
|
const session = useArbiSessionStore();
|
|
7930
7910
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -7960,7 +7940,7 @@ function DocumentGallery({
|
|
|
7960
7940
|
setRenamingId(null);
|
|
7961
7941
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
7962
7942
|
if (activeWorkspace) {
|
|
7963
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7943
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
7964
7944
|
}
|
|
7965
7945
|
}
|
|
7966
7946
|
});
|
|
@@ -8578,151 +8558,115 @@ function hasVideoTrack(blob) {
|
|
|
8578
8558
|
|
|
8579
8559
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
8580
8560
|
enumerable: true,
|
|
8581
|
-
get: function () { return
|
|
8561
|
+
get: function () { return chunkCVJ25DFD_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
8582
8562
|
});
|
|
8583
8563
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
8584
8564
|
enumerable: true,
|
|
8585
|
-
get: function () { return
|
|
8565
|
+
get: function () { return chunkCVJ25DFD_cjs.arbiMutationKeys; }
|
|
8586
8566
|
});
|
|
8587
8567
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
8588
8568
|
enumerable: true,
|
|
8589
|
-
get: function () { return
|
|
8569
|
+
get: function () { return chunkCVJ25DFD_cjs.arbiQueryKeys; }
|
|
8590
8570
|
});
|
|
8591
8571
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
8592
8572
|
enumerable: true,
|
|
8593
|
-
get: function () { return
|
|
8573
|
+
get: function () { return chunkCVJ25DFD_cjs.isUsageMetered; }
|
|
8594
8574
|
});
|
|
8595
8575
|
Object.defineProperty(exports, "useActivity", {
|
|
8596
8576
|
enumerable: true,
|
|
8597
|
-
get: function () { return
|
|
8577
|
+
get: function () { return chunkCVJ25DFD_cjs.useActivity; }
|
|
8598
8578
|
});
|
|
8599
8579
|
Object.defineProperty(exports, "useAgents", {
|
|
8600
8580
|
enumerable: true,
|
|
8601
|
-
get: function () { return
|
|
8581
|
+
get: function () { return chunkCVJ25DFD_cjs.useAgents; }
|
|
8602
8582
|
});
|
|
8603
8583
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
8604
8584
|
enumerable: true,
|
|
8605
|
-
get: function () { return
|
|
8606
|
-
});
|
|
8607
|
-
Object.defineProperty(exports, "useAvailableModels", {
|
|
8608
|
-
enumerable: true,
|
|
8609
|
-
get: function () { return chunk5RYBYTCF_cjs.useAvailableModels; }
|
|
8585
|
+
get: function () { return chunkCVJ25DFD_cjs.useAssistantQuery; }
|
|
8610
8586
|
});
|
|
8611
8587
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
8612
8588
|
enumerable: true,
|
|
8613
|
-
get: function () { return
|
|
8589
|
+
get: function () { return chunkCVJ25DFD_cjs.useCanCreateProjects; }
|
|
8614
8590
|
});
|
|
8615
8591
|
Object.defineProperty(exports, "useConfigs", {
|
|
8616
8592
|
enumerable: true,
|
|
8617
|
-
get: function () { return
|
|
8593
|
+
get: function () { return chunkCVJ25DFD_cjs.useConfigs; }
|
|
8618
8594
|
});
|
|
8619
8595
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
8620
8596
|
enumerable: true,
|
|
8621
|
-
get: function () { return
|
|
8597
|
+
get: function () { return chunkCVJ25DFD_cjs.useConversationThreads; }
|
|
8622
8598
|
});
|
|
8623
8599
|
Object.defineProperty(exports, "useConversations", {
|
|
8624
8600
|
enumerable: true,
|
|
8625
|
-
get: function () { return
|
|
8601
|
+
get: function () { return chunkCVJ25DFD_cjs.useConversations; }
|
|
8626
8602
|
});
|
|
8627
8603
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
8628
8604
|
enumerable: true,
|
|
8629
|
-
get: function () { return
|
|
8605
|
+
get: function () { return chunkCVJ25DFD_cjs.useCurrentUser; }
|
|
8630
8606
|
});
|
|
8631
8607
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
8632
8608
|
enumerable: true,
|
|
8633
|
-
get: function () { return
|
|
8609
|
+
get: function () { return chunkCVJ25DFD_cjs.useDeleteAgents; }
|
|
8634
8610
|
});
|
|
8635
8611
|
Object.defineProperty(exports, "useDocuments", {
|
|
8636
8612
|
enumerable: true,
|
|
8637
|
-
get: function () { return
|
|
8613
|
+
get: function () { return chunkCVJ25DFD_cjs.useDocuments; }
|
|
8638
8614
|
});
|
|
8639
8615
|
Object.defineProperty(exports, "useFirmPool", {
|
|
8640
8616
|
enumerable: true,
|
|
8641
|
-
get: function () { return
|
|
8617
|
+
get: function () { return chunkCVJ25DFD_cjs.useFirmPool; }
|
|
8642
8618
|
});
|
|
8643
8619
|
Object.defineProperty(exports, "useHealth", {
|
|
8644
8620
|
enumerable: true,
|
|
8645
|
-
get: function () { return
|
|
8621
|
+
get: function () { return chunkCVJ25DFD_cjs.useHealth; }
|
|
8646
8622
|
});
|
|
8647
8623
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
8648
8624
|
enumerable: true,
|
|
8649
|
-
get: function () { return
|
|
8625
|
+
get: function () { return chunkCVJ25DFD_cjs.useParsedDocument; }
|
|
8650
8626
|
});
|
|
8651
8627
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
8652
8628
|
enumerable: true,
|
|
8653
|
-
get: function () { return
|
|
8629
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjectInvoices; }
|
|
8654
8630
|
});
|
|
8655
8631
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
8656
8632
|
enumerable: true,
|
|
8657
|
-
get: function () { return
|
|
8633
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjectUsage; }
|
|
8658
8634
|
});
|
|
8659
8635
|
Object.defineProperty(exports, "useProjects", {
|
|
8660
8636
|
enumerable: true,
|
|
8661
|
-
get: function () { return
|
|
8637
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjects; }
|
|
8662
8638
|
});
|
|
8663
8639
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
8664
8640
|
enumerable: true,
|
|
8665
|
-
get: function () { return
|
|
8641
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjectsUsage; }
|
|
8666
8642
|
});
|
|
8667
8643
|
Object.defineProperty(exports, "useTags", {
|
|
8668
8644
|
enumerable: true,
|
|
8669
|
-
get: function () { return
|
|
8645
|
+
get: function () { return chunkCVJ25DFD_cjs.useTags; }
|
|
8670
8646
|
});
|
|
8671
8647
|
Object.defineProperty(exports, "useThumbnails", {
|
|
8672
8648
|
enumerable: true,
|
|
8673
|
-
get: function () { return
|
|
8649
|
+
get: function () { return chunkCVJ25DFD_cjs.useThumbnails; }
|
|
8674
8650
|
});
|
|
8675
8651
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
8676
8652
|
enumerable: true,
|
|
8677
|
-
get: function () { return
|
|
8653
|
+
get: function () { return chunkCVJ25DFD_cjs.useTopUpFirmPool; }
|
|
8678
8654
|
});
|
|
8679
8655
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
8680
8656
|
enumerable: true,
|
|
8681
|
-
get: function () { return
|
|
8657
|
+
get: function () { return chunkCVJ25DFD_cjs.useUserUsageToday; }
|
|
8682
8658
|
});
|
|
8683
8659
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
8684
8660
|
enumerable: true,
|
|
8685
|
-
get: function () { return
|
|
8661
|
+
get: function () { return chunkCVJ25DFD_cjs.useWorkspaceActivity; }
|
|
8686
8662
|
});
|
|
8687
8663
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
8688
8664
|
enumerable: true,
|
|
8689
|
-
get: function () { return
|
|
8665
|
+
get: function () { return chunkCVJ25DFD_cjs.useWorkspaceUsers; }
|
|
8690
8666
|
});
|
|
8691
8667
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
8692
8668
|
enumerable: true,
|
|
8693
|
-
get: function () { return
|
|
8694
|
-
});
|
|
8695
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8696
|
-
enumerable: true,
|
|
8697
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
8698
|
-
});
|
|
8699
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
8700
|
-
enumerable: true,
|
|
8701
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
8702
|
-
});
|
|
8703
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
8704
|
-
enumerable: true,
|
|
8705
|
-
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
8706
|
-
});
|
|
8707
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
8708
|
-
enumerable: true,
|
|
8709
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
8710
|
-
});
|
|
8711
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
8712
|
-
enumerable: true,
|
|
8713
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
8714
|
-
});
|
|
8715
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
8716
|
-
enumerable: true,
|
|
8717
|
-
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
8718
|
-
});
|
|
8719
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
8720
|
-
enumerable: true,
|
|
8721
|
-
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
8722
|
-
});
|
|
8723
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
8724
|
-
enumerable: true,
|
|
8725
|
-
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
8669
|
+
get: function () { return chunkCVJ25DFD_cjs.useWorkspaces; }
|
|
8726
8670
|
});
|
|
8727
8671
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
8728
8672
|
enumerable: true,
|
|
@@ -8772,6 +8716,38 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
8772
8716
|
enumerable: true,
|
|
8773
8717
|
get: function () { return chunkKLPY2HUC_cjs.useNotify; }
|
|
8774
8718
|
});
|
|
8719
|
+
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8720
|
+
enumerable: true,
|
|
8721
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
8722
|
+
});
|
|
8723
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
8724
|
+
enumerable: true,
|
|
8725
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
8726
|
+
});
|
|
8727
|
+
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
8728
|
+
enumerable: true,
|
|
8729
|
+
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
8730
|
+
});
|
|
8731
|
+
Object.defineProperty(exports, "repairParsedStructure", {
|
|
8732
|
+
enumerable: true,
|
|
8733
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
8734
|
+
});
|
|
8735
|
+
Object.defineProperty(exports, "repairParsedTitle", {
|
|
8736
|
+
enumerable: true,
|
|
8737
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
8738
|
+
});
|
|
8739
|
+
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
8740
|
+
enumerable: true,
|
|
8741
|
+
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
8742
|
+
});
|
|
8743
|
+
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
8744
|
+
enumerable: true,
|
|
8745
|
+
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
8746
|
+
});
|
|
8747
|
+
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
8748
|
+
enumerable: true,
|
|
8749
|
+
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
8750
|
+
});
|
|
8775
8751
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
8776
8752
|
enumerable: true,
|
|
8777
8753
|
get: function () { return chunk65WT5PHA_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -9372,6 +9348,14 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
9372
9348
|
enumerable: true,
|
|
9373
9349
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
9374
9350
|
});
|
|
9351
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
9352
|
+
enumerable: true,
|
|
9353
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
9354
|
+
});
|
|
9355
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
9356
|
+
enumerable: true,
|
|
9357
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
9358
|
+
});
|
|
9375
9359
|
Object.defineProperty(exports, "Button", {
|
|
9376
9360
|
enumerable: true,
|
|
9377
9361
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -9432,14 +9416,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
9432
9416
|
enumerable: true,
|
|
9433
9417
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
9434
9418
|
});
|
|
9435
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
9436
|
-
enumerable: true,
|
|
9437
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
9438
|
-
});
|
|
9439
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
9440
|
-
enumerable: true,
|
|
9441
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
9442
|
-
});
|
|
9443
9419
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
9444
9420
|
enumerable: true,
|
|
9445
9421
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -9878,7 +9854,6 @@ exports.useUpdateProfile = useUpdateProfile;
|
|
|
9878
9854
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
9879
9855
|
exports.useUpdateTag = useUpdateTag;
|
|
9880
9856
|
exports.useUpdateTagKindSchema = useUpdateTagKindSchema;
|
|
9881
|
-
exports.useUpdateUserSettings = useUpdateUserSettings;
|
|
9882
9857
|
exports.useUpdateWorkflow = useUpdateWorkflow;
|
|
9883
9858
|
exports.useUploadSkillFiles = useUploadSkillFiles;
|
|
9884
9859
|
exports.useUserSettings = useUserSettings;
|