@arbidocs/react 0.4.140 → 0.4.142
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 +7 -7
- package/dist/artifacts/index.js +2 -2
- package/dist/{chunk-QXGGFMMX.cjs → chunk-6LWNEI3A.cjs} +15 -5
- package/dist/chunk-6LWNEI3A.cjs.map +1 -0
- package/dist/{chunk-2NDXBQAT.js → chunk-ETHLYTV4.js} +15 -5
- package/dist/chunk-ETHLYTV4.js.map +1 -0
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/index.cjs +261 -159
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -20
- package/dist/index.d.ts +132 -20
- package/dist/index.js +112 -18
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2NDXBQAT.js.map +0 -1
- package/dist/chunk-QXGGFMMX.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6LWNEI3A_cjs = require('./chunk-6LWNEI3A.cjs');
|
|
4
4
|
var chunkTYUQFRHF_cjs = require('./chunk-TYUQFRHF.cjs');
|
|
5
5
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
6
6
|
require('./chunk-VOFNX4P6.cjs');
|
|
7
7
|
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.cjs');
|
|
8
|
-
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
9
|
-
var chunkR2MF7YCW_cjs = require('./chunk-R2MF7YCW.cjs');
|
|
10
8
|
var chunk65WT5PHA_cjs = require('./chunk-65WT5PHA.cjs');
|
|
11
9
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
12
10
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
@@ -14,6 +12,8 @@ var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
|
14
12
|
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
15
13
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
16
14
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
15
|
+
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
16
|
+
var chunkR2MF7YCW_cjs = require('./chunk-R2MF7YCW.cjs');
|
|
17
17
|
var React = require('react');
|
|
18
18
|
var reactQuery = require('@tanstack/react-query');
|
|
19
19
|
var browser = require('@arbidocs/sdk/browser');
|
|
@@ -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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: [...chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: [...chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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: chunk6LWNEI3A_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
|
+
chunk6LWNEI3A_cjs.arbiQueryKeys.agentSession(agentId),
|
|
408
|
+
chunk6LWNEI3A_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
409
|
+
chunk6LWNEI3A_cjs.arbiQueryKeys.agentChats(agentId),
|
|
410
|
+
chunk6LWNEI3A_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 } = chunk6LWNEI3A_cjs.useDocuments(workspaceId);
|
|
558
|
+
const ordinaryHistory = chunk6LWNEI3A_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 = chunk6LWNEI3A_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 = chunk6LWNEI3A_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: chunk6LWNEI3A_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1415
|
+
void queryClient.invalidateQueries({ queryKey: chunk6LWNEI3A_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: chunk6LWNEI3A_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 = chunk6LWNEI3A_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: [...chunk6LWNEI3A_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: chunk6LWNEI3A_cjs.arbiQueryKeys.allFacts() });
|
|
1578
1578
|
}
|
|
1579
1579
|
function useCreateFact() {
|
|
1580
1580
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1617,10 +1617,20 @@ function useSearchFacts() {
|
|
|
1617
1617
|
function openWorkspaceId(arbi) {
|
|
1618
1618
|
return arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
1619
1619
|
}
|
|
1620
|
+
function patchWorkspaceTags(qc, workspaceId, reducer) {
|
|
1621
|
+
const key = chunk6LWNEI3A_cjs.arbiQueryKeys.tags(workspaceId);
|
|
1622
|
+
const current = qc.getQueryData(key);
|
|
1623
|
+
if (!current) return;
|
|
1624
|
+
const next = reducer(current);
|
|
1625
|
+
if (next !== current) qc.setQueryData(key, next);
|
|
1626
|
+
}
|
|
1627
|
+
function invalidateTagTables(qc, workspaceId) {
|
|
1628
|
+
return qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.tagLists(workspaceId) });
|
|
1629
|
+
}
|
|
1620
1630
|
function invalidateTagData(qc, workspaceId) {
|
|
1621
1631
|
return Promise.all([
|
|
1622
|
-
qc.invalidateQueries({ queryKey:
|
|
1623
|
-
qc.invalidateQueries({ queryKey:
|
|
1632
|
+
qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1633
|
+
qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1624
1634
|
]);
|
|
1625
1635
|
}
|
|
1626
1636
|
function useInvalidateTagData() {
|
|
@@ -1631,11 +1641,94 @@ function useInvalidateTagData() {
|
|
|
1631
1641
|
return workspaceId ? invalidateTagData(qc, workspaceId) : Promise.resolve();
|
|
1632
1642
|
}, [arbi, qc]);
|
|
1633
1643
|
}
|
|
1644
|
+
function settleCreatedTag(qc, created) {
|
|
1645
|
+
const workspaceId = created.workspace_ext_id;
|
|
1646
|
+
patchWorkspaceTags(
|
|
1647
|
+
qc,
|
|
1648
|
+
workspaceId,
|
|
1649
|
+
(old) => old.some((t) => t.external_id === created.external_id) ? old : [...old, created]
|
|
1650
|
+
);
|
|
1651
|
+
return invalidateTagTables(qc, workspaceId);
|
|
1652
|
+
}
|
|
1653
|
+
function settleChangedTag(qc, tag) {
|
|
1654
|
+
const workspaceId = tag.workspace_ext_id;
|
|
1655
|
+
patchWorkspaceTags(
|
|
1656
|
+
qc,
|
|
1657
|
+
workspaceId,
|
|
1658
|
+
(old) => old.map((t) => t.external_id === tag.external_id ? { ...t, ...tag } : t)
|
|
1659
|
+
);
|
|
1660
|
+
return invalidateTagTables(qc, workspaceId);
|
|
1661
|
+
}
|
|
1662
|
+
var replayableTagMutations = [
|
|
1663
|
+
{
|
|
1664
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.createTag(),
|
|
1665
|
+
run: (client, input) => browser.tags.createTag(client, input),
|
|
1666
|
+
settle: (qc, created) => settleCreatedTag(qc, created)
|
|
1667
|
+
}
|
|
1668
|
+
];
|
|
1669
|
+
function useCreateTag() {
|
|
1670
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1671
|
+
const qc = reactQuery.useQueryClient();
|
|
1672
|
+
return reactQuery.useMutation({
|
|
1673
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.createTag(),
|
|
1674
|
+
mutationFn: (input) => arbi.tags.create(input),
|
|
1675
|
+
onSuccess: (created) => settleCreatedTag(qc, created)
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
function useUpdateTag() {
|
|
1679
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1680
|
+
const qc = reactQuery.useQueryClient();
|
|
1681
|
+
return reactQuery.useMutation({
|
|
1682
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.updateTag(),
|
|
1683
|
+
mutationFn: ({ tagId, change }) => arbi.tags.update(tagId, change),
|
|
1684
|
+
onSuccess: (tag) => settleChangedTag(qc, tag)
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
function useSetTagValues() {
|
|
1688
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1689
|
+
const qc = reactQuery.useQueryClient();
|
|
1690
|
+
return reactQuery.useMutation({
|
|
1691
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.updateTag(),
|
|
1692
|
+
mutationFn: ({
|
|
1693
|
+
tagId,
|
|
1694
|
+
values
|
|
1695
|
+
}) => arbi.tags.setValues(tagId, values),
|
|
1696
|
+
onSuccess: (tag) => settleChangedTag(qc, tag)
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
function useDeleteTag() {
|
|
1700
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1701
|
+
const qc = reactQuery.useQueryClient();
|
|
1702
|
+
return reactQuery.useMutation({
|
|
1703
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.deleteTag(),
|
|
1704
|
+
mutationFn: (tagId) => arbi.tags.delete(tagId),
|
|
1705
|
+
onSuccess: (_data, tagId) => {
|
|
1706
|
+
const workspaceId = openWorkspaceId(arbi);
|
|
1707
|
+
if (!workspaceId) return;
|
|
1708
|
+
patchWorkspaceTags(
|
|
1709
|
+
qc,
|
|
1710
|
+
workspaceId,
|
|
1711
|
+
(old) => old.filter((t) => t.external_id !== tagId).map((t) => t.parent_ext_id === tagId ? { ...t, parent_ext_id: null } : t)
|
|
1712
|
+
);
|
|
1713
|
+
return Promise.all([
|
|
1714
|
+
invalidateTagTables(qc, workspaceId),
|
|
1715
|
+
qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1716
|
+
]);
|
|
1717
|
+
}
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
function useExtractEntities() {
|
|
1721
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1722
|
+
return reactQuery.useMutation({
|
|
1723
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.extractEntities(),
|
|
1724
|
+
mutationFn: (docIds) => arbi.tags.extractEntities(docIds)
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1634
1727
|
function useTagKindSchema(kind, options) {
|
|
1635
1728
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1636
1729
|
const workspaceId = openWorkspaceId(arbi) ?? "";
|
|
1637
1730
|
return reactQuery.useQuery({
|
|
1638
|
-
queryKey:
|
|
1731
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1639
1732
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1640
1733
|
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1641
1734
|
});
|
|
@@ -1644,7 +1737,7 @@ function useUpdateTagKindSchema() {
|
|
|
1644
1737
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1645
1738
|
const qc = reactQuery.useQueryClient();
|
|
1646
1739
|
return reactQuery.useMutation({
|
|
1647
|
-
mutationKey:
|
|
1740
|
+
mutationKey: chunk6LWNEI3A_cjs.arbiMutationKeys.updateTagKindSchema(),
|
|
1648
1741
|
mutationFn: ({
|
|
1649
1742
|
kind,
|
|
1650
1743
|
fields
|
|
@@ -1652,26 +1745,27 @@ function useUpdateTagKindSchema() {
|
|
|
1652
1745
|
onSuccess: (schema) => {
|
|
1653
1746
|
const workspaceId = openWorkspaceId(arbi);
|
|
1654
1747
|
if (!workspaceId) return;
|
|
1655
|
-
qc.setQueryData(
|
|
1748
|
+
qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1656
1749
|
return invalidateTagData(qc, workspaceId);
|
|
1657
1750
|
}
|
|
1658
1751
|
});
|
|
1659
1752
|
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1753
|
+
var REPLAYABLE = [...replayableTagMutations];
|
|
1754
|
+
function isReplayableArbiMutation(mutationKey) {
|
|
1755
|
+
return !!mutationKey && REPLAYABLE.some((m) => reactQuery.partialMatchKey(mutationKey, m.mutationKey));
|
|
1756
|
+
}
|
|
1757
|
+
function registerArbiMutationDefaults(queryClient, client) {
|
|
1758
|
+
for (const m of REPLAYABLE) {
|
|
1759
|
+
queryClient.setMutationDefaults(m.mutationKey, {
|
|
1760
|
+
mutationFn: (variables) => m.run(client(), variables),
|
|
1761
|
+
onSuccess: (data, variables) => m.settle(queryClient, data, variables)
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1670
1764
|
}
|
|
1671
1765
|
function useFilteredProjects(filters, options) {
|
|
1672
1766
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1673
1767
|
return reactQuery.useQuery({
|
|
1674
|
-
queryKey:
|
|
1768
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1675
1769
|
queryFn: () => arbi.projects.list(filters),
|
|
1676
1770
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1677
1771
|
});
|
|
@@ -1684,14 +1778,14 @@ function useUpdateProjectFields() {
|
|
|
1684
1778
|
projectExtId,
|
|
1685
1779
|
patch
|
|
1686
1780
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1687
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1781
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.projects() })
|
|
1688
1782
|
});
|
|
1689
1783
|
}
|
|
1690
1784
|
function useProjectEvents(projectExtId, options) {
|
|
1691
1785
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1692
1786
|
return reactQuery.useQuery({
|
|
1693
1787
|
queryKey: [
|
|
1694
|
-
...
|
|
1788
|
+
...chunk6LWNEI3A_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1695
1789
|
options?.kind ?? "all",
|
|
1696
1790
|
options?.limit ?? "default"
|
|
1697
1791
|
],
|
|
@@ -1702,7 +1796,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1702
1796
|
function useConversationUsage(conversationId, options) {
|
|
1703
1797
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1704
1798
|
return reactQuery.useQuery({
|
|
1705
|
-
queryKey:
|
|
1799
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1706
1800
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1707
1801
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1708
1802
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1711,7 +1805,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1711
1805
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1712
1806
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1713
1807
|
return reactQuery.useQuery({
|
|
1714
|
-
queryKey:
|
|
1808
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1715
1809
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1716
1810
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1717
1811
|
});
|
|
@@ -1719,7 +1813,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1719
1813
|
function useContacts(options) {
|
|
1720
1814
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1721
1815
|
return reactQuery.useQuery({
|
|
1722
|
-
queryKey:
|
|
1816
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.contacts(),
|
|
1723
1817
|
queryFn: () => arbi.contacts.list(),
|
|
1724
1818
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1725
1819
|
});
|
|
@@ -1734,7 +1828,7 @@ function usePendingContacts(options) {
|
|
|
1734
1828
|
}
|
|
1735
1829
|
function useInvalidateContacts() {
|
|
1736
1830
|
const qc = reactQuery.useQueryClient();
|
|
1737
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1831
|
+
return () => qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.contacts() });
|
|
1738
1832
|
}
|
|
1739
1833
|
function useInviteContacts() {
|
|
1740
1834
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1772,7 +1866,7 @@ function useSearchContacts(q, { debounceMs = 200 } = {}) {
|
|
|
1772
1866
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1773
1867
|
const term = useDebounced(q.trim(), debounceMs);
|
|
1774
1868
|
return reactQuery.useQuery({
|
|
1775
|
-
queryKey: [...
|
|
1869
|
+
queryKey: [...chunk6LWNEI3A_cjs.arbiQueryKeys.contacts(), "search", term],
|
|
1776
1870
|
queryFn: () => arbi.contacts.search(term),
|
|
1777
1871
|
enabled: term.length > 0 && arbi.isLoggedIn,
|
|
1778
1872
|
staleTime: 6e4,
|
|
@@ -1883,11 +1977,11 @@ function useProfile(options) {
|
|
|
1883
1977
|
const { client, enabled } = useAccountClient();
|
|
1884
1978
|
const qc = reactQuery.useQueryClient();
|
|
1885
1979
|
React.useEffect(
|
|
1886
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
1980
|
+
() => client.onProfileChange(() => qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
1887
1981
|
[client, qc]
|
|
1888
1982
|
);
|
|
1889
1983
|
return reactQuery.useQuery({
|
|
1890
|
-
queryKey:
|
|
1984
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.profile(),
|
|
1891
1985
|
queryFn: () => client.profile(),
|
|
1892
1986
|
enabled: (options?.enabled ?? true) && enabled,
|
|
1893
1987
|
staleTime: Infinity
|
|
@@ -1902,9 +1996,9 @@ function useUpdateProfile() {
|
|
|
1902
1996
|
return client.profile();
|
|
1903
1997
|
},
|
|
1904
1998
|
onSuccess: (profile) => {
|
|
1905
|
-
qc.setQueryData(
|
|
1906
|
-
void qc.invalidateQueries({ queryKey:
|
|
1907
|
-
return qc.invalidateQueries({ queryKey:
|
|
1999
|
+
qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.profile(), profile);
|
|
2000
|
+
void qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.identity() });
|
|
2001
|
+
return qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.workspaces() });
|
|
1908
2002
|
}
|
|
1909
2003
|
});
|
|
1910
2004
|
}
|
|
@@ -1987,7 +2081,7 @@ function useConfirmEmailChange() {
|
|
|
1987
2081
|
const qc = reactQuery.useQueryClient();
|
|
1988
2082
|
return reactQuery.useMutation({
|
|
1989
2083
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
1990
|
-
onSuccess: () => qc.setQueryData(
|
|
2084
|
+
onSuccess: () => qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.profile(), client.profile())
|
|
1991
2085
|
});
|
|
1992
2086
|
}
|
|
1993
2087
|
function useEmailChange({
|
|
@@ -2155,7 +2249,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2155
2249
|
function useUserSettings(options) {
|
|
2156
2250
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2157
2251
|
return reactQuery.useQuery({
|
|
2158
|
-
queryKey:
|
|
2252
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings(),
|
|
2159
2253
|
queryFn: () => arbi.settings.get(),
|
|
2160
2254
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2161
2255
|
});
|
|
@@ -2168,18 +2262,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2168
2262
|
const save = reactQuery.useMutation({
|
|
2169
2263
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2170
2264
|
onMutate: async (patch) => {
|
|
2171
|
-
await qc.cancelQueries({ queryKey:
|
|
2172
|
-
const previous = qc.getQueryData(
|
|
2265
|
+
await qc.cancelQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings() });
|
|
2266
|
+
const previous = qc.getQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings());
|
|
2173
2267
|
qc.setQueryData(
|
|
2174
|
-
|
|
2268
|
+
chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings(),
|
|
2175
2269
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2176
2270
|
);
|
|
2177
2271
|
return { previous };
|
|
2178
2272
|
},
|
|
2179
2273
|
onError: (_err, _patch, context) => {
|
|
2180
|
-
qc.setQueryData(
|
|
2274
|
+
qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2181
2275
|
},
|
|
2182
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2276
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings() })
|
|
2183
2277
|
});
|
|
2184
2278
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2185
2279
|
const setAll = React.useCallback(
|
|
@@ -2206,18 +2300,18 @@ function useRelevanceSave() {
|
|
|
2206
2300
|
return reactQuery.useMutation({
|
|
2207
2301
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2208
2302
|
onMutate: async (patch) => {
|
|
2209
|
-
await qc.cancelQueries({ queryKey:
|
|
2210
|
-
const previous = qc.getQueryData(
|
|
2303
|
+
await qc.cancelQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings() });
|
|
2304
|
+
const previous = qc.getQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings());
|
|
2211
2305
|
qc.setQueryData(
|
|
2212
|
-
|
|
2306
|
+
chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings(),
|
|
2213
2307
|
(old) => old ? { ...old, ...patch } : old
|
|
2214
2308
|
);
|
|
2215
2309
|
return { previous };
|
|
2216
2310
|
},
|
|
2217
2311
|
onError: (_err, _patch, context) => {
|
|
2218
|
-
qc.setQueryData(
|
|
2312
|
+
qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2219
2313
|
},
|
|
2220
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2314
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings() })
|
|
2221
2315
|
});
|
|
2222
2316
|
}
|
|
2223
2317
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2228,7 +2322,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2228
2322
|
const setLevel = React.useCallback(
|
|
2229
2323
|
(next) => {
|
|
2230
2324
|
if (!workspaceId) return;
|
|
2231
|
-
const current = qc.getQueryData(
|
|
2325
|
+
const current = qc.getQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2232
2326
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2233
2327
|
},
|
|
2234
2328
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2249,7 +2343,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2249
2343
|
const setFollowing = React.useCallback(
|
|
2250
2344
|
(on, callbacks) => {
|
|
2251
2345
|
if (!conversationId) return;
|
|
2252
|
-
const current = qc.getQueryData(
|
|
2346
|
+
const current = qc.getQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2253
2347
|
save.mutate(
|
|
2254
2348
|
{
|
|
2255
2349
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2274,7 +2368,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2274
2368
|
function useSessions(options) {
|
|
2275
2369
|
const { client, enabled } = useAccountClient();
|
|
2276
2370
|
return reactQuery.useQuery({
|
|
2277
|
-
queryKey:
|
|
2371
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.sessions(),
|
|
2278
2372
|
queryFn: () => client.listSessions(),
|
|
2279
2373
|
enabled: (options?.enabled ?? true) && enabled
|
|
2280
2374
|
});
|
|
@@ -2284,7 +2378,7 @@ function useTerminateSession() {
|
|
|
2284
2378
|
const qc = reactQuery.useQueryClient();
|
|
2285
2379
|
return reactQuery.useMutation({
|
|
2286
2380
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2287
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2381
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.sessions() })
|
|
2288
2382
|
});
|
|
2289
2383
|
}
|
|
2290
2384
|
function useSignOut() {
|
|
@@ -2427,7 +2521,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2427
2521
|
const apiRef = React.useRef(api);
|
|
2428
2522
|
apiRef.current = api;
|
|
2429
2523
|
const query = reactQuery.useQuery({
|
|
2430
|
-
queryKey:
|
|
2524
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.identity(),
|
|
2431
2525
|
queryFn: () => apiRef.current.status(),
|
|
2432
2526
|
enabled,
|
|
2433
2527
|
staleTime: 6e4
|
|
@@ -2445,7 +2539,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2445
2539
|
const lastVerified = React.useRef(void 0);
|
|
2446
2540
|
const apply = React.useCallback(
|
|
2447
2541
|
(next) => {
|
|
2448
|
-
qc.setQueryData(
|
|
2542
|
+
qc.setQueryData(chunk6LWNEI3A_cjs.arbiQueryKeys.identity(), next);
|
|
2449
2543
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2450
2544
|
onVerifiedChange?.(next.verified);
|
|
2451
2545
|
}
|
|
@@ -2640,12 +2734,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2640
2734
|
enabled,
|
|
2641
2735
|
formatPrice,
|
|
2642
2736
|
onVerifiedChange: (verified) => {
|
|
2643
|
-
void qc.invalidateQueries({ queryKey:
|
|
2737
|
+
void qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.profile() });
|
|
2644
2738
|
onVerifiedChange?.(verified);
|
|
2645
2739
|
},
|
|
2646
2740
|
onNameAccepted: (name) => {
|
|
2647
|
-
void qc.invalidateQueries({ queryKey:
|
|
2648
|
-
void qc.invalidateQueries({ queryKey:
|
|
2741
|
+
void qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.profile() });
|
|
2742
|
+
void qc.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.workspaces() });
|
|
2649
2743
|
onNameAccepted?.(name);
|
|
2650
2744
|
}
|
|
2651
2745
|
});
|
|
@@ -3708,7 +3802,7 @@ function useDeleteBookingPage() {
|
|
|
3708
3802
|
});
|
|
3709
3803
|
}
|
|
3710
3804
|
function useWorkspaceDocs(workspaceId) {
|
|
3711
|
-
const { data: docs = [], isLoading, isError } =
|
|
3805
|
+
const { data: docs = [], isLoading, isError } = chunk6LWNEI3A_cjs.useDocuments(workspaceId);
|
|
3712
3806
|
const docIds = React.useMemo(
|
|
3713
3807
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
3714
3808
|
[docs]
|
|
@@ -3716,7 +3810,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
3716
3810
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
3717
3811
|
}
|
|
3718
3812
|
function useAiTask() {
|
|
3719
|
-
const mutation =
|
|
3813
|
+
const mutation = chunk6LWNEI3A_cjs.useAssistantQuery();
|
|
3720
3814
|
const [status, setStatus] = React.useState("idle");
|
|
3721
3815
|
const [text, setText] = React.useState("");
|
|
3722
3816
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -4336,8 +4430,8 @@ function DocumentReview({
|
|
|
4336
4430
|
onClose,
|
|
4337
4431
|
className
|
|
4338
4432
|
}) {
|
|
4339
|
-
const parsedQuery =
|
|
4340
|
-
const tagsQuery =
|
|
4433
|
+
const parsedQuery = chunk6LWNEI3A_cjs.useParsedDocument(docId, stage);
|
|
4434
|
+
const tagsQuery = chunk6LWNEI3A_cjs.useTags(workspaceId);
|
|
4341
4435
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4342
4436
|
const map = /* @__PURE__ */ new Map();
|
|
4343
4437
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4568,7 +4662,7 @@ function SemanticSearch({
|
|
|
4568
4662
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
4569
4663
|
const [value, setValue] = React.useState("");
|
|
4570
4664
|
const [selected, setSelected] = React.useState(null);
|
|
4571
|
-
const { data: docs = [] } =
|
|
4665
|
+
const { data: docs = [] } = chunk6LWNEI3A_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
4572
4666
|
const docMap = React.useMemo(() => {
|
|
4573
4667
|
const map = /* @__PURE__ */ new Map();
|
|
4574
4668
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -5670,7 +5764,7 @@ function ActivityFeed({
|
|
|
5670
5764
|
enabled,
|
|
5671
5765
|
"data-testid": testId = "activity-feed"
|
|
5672
5766
|
}) {
|
|
5673
|
-
const { data, isLoading, isError } =
|
|
5767
|
+
const { data, isLoading, isError } = chunk6LWNEI3A_cjs.useActivity({ limit, enabled });
|
|
5674
5768
|
if (isLoading) {
|
|
5675
5769
|
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: [
|
|
5676
5770
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5747,12 +5841,12 @@ function useNotifications(options = {}) {
|
|
|
5747
5841
|
React.useEffect(
|
|
5748
5842
|
() => ws?.subscribe((message) => {
|
|
5749
5843
|
if ("sender" in message && "recipient" in message)
|
|
5750
|
-
void queries.invalidateQueries({ queryKey:
|
|
5844
|
+
void queries.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.allNotifications() });
|
|
5751
5845
|
}),
|
|
5752
5846
|
[ws, queries]
|
|
5753
5847
|
);
|
|
5754
5848
|
return reactQuery.useQuery({
|
|
5755
|
-
queryKey:
|
|
5849
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.notifications(limit),
|
|
5756
5850
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
5757
5851
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
5758
5852
|
});
|
|
@@ -5762,7 +5856,7 @@ function useDeleteNotifications() {
|
|
|
5762
5856
|
const queries = reactQuery.useQueryClient();
|
|
5763
5857
|
return reactQuery.useMutation({
|
|
5764
5858
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
5765
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
5859
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.allNotifications() })
|
|
5766
5860
|
});
|
|
5767
5861
|
}
|
|
5768
5862
|
function useMarkNotificationsRead() {
|
|
@@ -5770,7 +5864,7 @@ function useMarkNotificationsRead() {
|
|
|
5770
5864
|
const queries = reactQuery.useQueryClient();
|
|
5771
5865
|
return reactQuery.useMutation({
|
|
5772
5866
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
5773
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
5867
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.allNotifications() })
|
|
5774
5868
|
});
|
|
5775
5869
|
}
|
|
5776
5870
|
|
|
@@ -6223,7 +6317,7 @@ function useDirectMessages(options) {
|
|
|
6223
6317
|
enabled
|
|
6224
6318
|
});
|
|
6225
6319
|
const contactsQuery = reactQuery.useQuery({
|
|
6226
|
-
queryKey:
|
|
6320
|
+
queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.contacts(),
|
|
6227
6321
|
queryFn: () => arbi.contacts.list(),
|
|
6228
6322
|
enabled
|
|
6229
6323
|
});
|
|
@@ -7492,10 +7586,10 @@ function DocumentTable({
|
|
|
7492
7586
|
extraColumns,
|
|
7493
7587
|
className
|
|
7494
7588
|
}) {
|
|
7495
|
-
const query =
|
|
7589
|
+
const query = chunk6LWNEI3A_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7496
7590
|
const rows = documents ?? query.data ?? [];
|
|
7497
7591
|
const isLoading = !documents && query.isLoading;
|
|
7498
|
-
const tagsQuery =
|
|
7592
|
+
const tagsQuery = chunk6LWNEI3A_cjs.useTags(workspaceId);
|
|
7499
7593
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7500
7594
|
const map = /* @__PURE__ */ new Map();
|
|
7501
7595
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7676,7 +7770,7 @@ function DocumentCardMenu({
|
|
|
7676
7770
|
const invalidateDocuments = () => {
|
|
7677
7771
|
const workspaceId = arbi.getWorkspaceId();
|
|
7678
7772
|
if (workspaceId) {
|
|
7679
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7773
|
+
void queryClient.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
7680
7774
|
}
|
|
7681
7775
|
};
|
|
7682
7776
|
const download = reactQuery.useMutation({
|
|
@@ -7775,10 +7869,10 @@ function DocumentGallery({
|
|
|
7775
7869
|
minTileWidth = 148,
|
|
7776
7870
|
className
|
|
7777
7871
|
}) {
|
|
7778
|
-
const query =
|
|
7872
|
+
const query = chunk6LWNEI3A_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7779
7873
|
const rows = documents ?? query.data ?? [];
|
|
7780
7874
|
const isLoading = !documents && query.isLoading;
|
|
7781
|
-
const tagsQuery =
|
|
7875
|
+
const tagsQuery = chunk6LWNEI3A_cjs.useTags(workspaceId);
|
|
7782
7876
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7783
7877
|
const map = /* @__PURE__ */ new Map();
|
|
7784
7878
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7790,7 +7884,7 @@ function DocumentGallery({
|
|
|
7790
7884
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
7791
7885
|
[rows]
|
|
7792
7886
|
);
|
|
7793
|
-
const thumbsQuery =
|
|
7887
|
+
const thumbsQuery = chunk6LWNEI3A_cjs.useThumbnails(docIds);
|
|
7794
7888
|
const thumbs = thumbsQuery.data ?? {};
|
|
7795
7889
|
const session = useArbiSessionStore();
|
|
7796
7890
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -7826,7 +7920,7 @@ function DocumentGallery({
|
|
|
7826
7920
|
setRenamingId(null);
|
|
7827
7921
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
7828
7922
|
if (activeWorkspace) {
|
|
7829
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7923
|
+
void queryClient.invalidateQueries({ queryKey: chunk6LWNEI3A_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
7830
7924
|
}
|
|
7831
7925
|
}
|
|
7832
7926
|
});
|
|
@@ -8444,115 +8538,115 @@ function hasVideoTrack(blob) {
|
|
|
8444
8538
|
|
|
8445
8539
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
8446
8540
|
enumerable: true,
|
|
8447
|
-
get: function () { return
|
|
8541
|
+
get: function () { return chunk6LWNEI3A_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
8448
8542
|
});
|
|
8449
8543
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
8450
8544
|
enumerable: true,
|
|
8451
|
-
get: function () { return
|
|
8545
|
+
get: function () { return chunk6LWNEI3A_cjs.arbiMutationKeys; }
|
|
8452
8546
|
});
|
|
8453
8547
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
8454
8548
|
enumerable: true,
|
|
8455
|
-
get: function () { return
|
|
8549
|
+
get: function () { return chunk6LWNEI3A_cjs.arbiQueryKeys; }
|
|
8456
8550
|
});
|
|
8457
8551
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
8458
8552
|
enumerable: true,
|
|
8459
|
-
get: function () { return
|
|
8553
|
+
get: function () { return chunk6LWNEI3A_cjs.isUsageMetered; }
|
|
8460
8554
|
});
|
|
8461
8555
|
Object.defineProperty(exports, "useActivity", {
|
|
8462
8556
|
enumerable: true,
|
|
8463
|
-
get: function () { return
|
|
8557
|
+
get: function () { return chunk6LWNEI3A_cjs.useActivity; }
|
|
8464
8558
|
});
|
|
8465
8559
|
Object.defineProperty(exports, "useAgents", {
|
|
8466
8560
|
enumerable: true,
|
|
8467
|
-
get: function () { return
|
|
8561
|
+
get: function () { return chunk6LWNEI3A_cjs.useAgents; }
|
|
8468
8562
|
});
|
|
8469
8563
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
8470
8564
|
enumerable: true,
|
|
8471
|
-
get: function () { return
|
|
8565
|
+
get: function () { return chunk6LWNEI3A_cjs.useAssistantQuery; }
|
|
8472
8566
|
});
|
|
8473
8567
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
8474
8568
|
enumerable: true,
|
|
8475
|
-
get: function () { return
|
|
8569
|
+
get: function () { return chunk6LWNEI3A_cjs.useCanCreateProjects; }
|
|
8476
8570
|
});
|
|
8477
8571
|
Object.defineProperty(exports, "useConfigs", {
|
|
8478
8572
|
enumerable: true,
|
|
8479
|
-
get: function () { return
|
|
8573
|
+
get: function () { return chunk6LWNEI3A_cjs.useConfigs; }
|
|
8480
8574
|
});
|
|
8481
8575
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
8482
8576
|
enumerable: true,
|
|
8483
|
-
get: function () { return
|
|
8577
|
+
get: function () { return chunk6LWNEI3A_cjs.useConversationThreads; }
|
|
8484
8578
|
});
|
|
8485
8579
|
Object.defineProperty(exports, "useConversations", {
|
|
8486
8580
|
enumerable: true,
|
|
8487
|
-
get: function () { return
|
|
8581
|
+
get: function () { return chunk6LWNEI3A_cjs.useConversations; }
|
|
8488
8582
|
});
|
|
8489
8583
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
8490
8584
|
enumerable: true,
|
|
8491
|
-
get: function () { return
|
|
8585
|
+
get: function () { return chunk6LWNEI3A_cjs.useCurrentUser; }
|
|
8492
8586
|
});
|
|
8493
8587
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
8494
8588
|
enumerable: true,
|
|
8495
|
-
get: function () { return
|
|
8589
|
+
get: function () { return chunk6LWNEI3A_cjs.useDeleteAgents; }
|
|
8496
8590
|
});
|
|
8497
8591
|
Object.defineProperty(exports, "useDocuments", {
|
|
8498
8592
|
enumerable: true,
|
|
8499
|
-
get: function () { return
|
|
8593
|
+
get: function () { return chunk6LWNEI3A_cjs.useDocuments; }
|
|
8500
8594
|
});
|
|
8501
8595
|
Object.defineProperty(exports, "useFirmPool", {
|
|
8502
8596
|
enumerable: true,
|
|
8503
|
-
get: function () { return
|
|
8597
|
+
get: function () { return chunk6LWNEI3A_cjs.useFirmPool; }
|
|
8504
8598
|
});
|
|
8505
8599
|
Object.defineProperty(exports, "useHealth", {
|
|
8506
8600
|
enumerable: true,
|
|
8507
|
-
get: function () { return
|
|
8601
|
+
get: function () { return chunk6LWNEI3A_cjs.useHealth; }
|
|
8508
8602
|
});
|
|
8509
8603
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
8510
8604
|
enumerable: true,
|
|
8511
|
-
get: function () { return
|
|
8605
|
+
get: function () { return chunk6LWNEI3A_cjs.useParsedDocument; }
|
|
8512
8606
|
});
|
|
8513
8607
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
8514
8608
|
enumerable: true,
|
|
8515
|
-
get: function () { return
|
|
8609
|
+
get: function () { return chunk6LWNEI3A_cjs.useProjectInvoices; }
|
|
8516
8610
|
});
|
|
8517
8611
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
8518
8612
|
enumerable: true,
|
|
8519
|
-
get: function () { return
|
|
8613
|
+
get: function () { return chunk6LWNEI3A_cjs.useProjectUsage; }
|
|
8520
8614
|
});
|
|
8521
8615
|
Object.defineProperty(exports, "useProjects", {
|
|
8522
8616
|
enumerable: true,
|
|
8523
|
-
get: function () { return
|
|
8617
|
+
get: function () { return chunk6LWNEI3A_cjs.useProjects; }
|
|
8524
8618
|
});
|
|
8525
8619
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
8526
8620
|
enumerable: true,
|
|
8527
|
-
get: function () { return
|
|
8621
|
+
get: function () { return chunk6LWNEI3A_cjs.useProjectsUsage; }
|
|
8528
8622
|
});
|
|
8529
8623
|
Object.defineProperty(exports, "useTags", {
|
|
8530
8624
|
enumerable: true,
|
|
8531
|
-
get: function () { return
|
|
8625
|
+
get: function () { return chunk6LWNEI3A_cjs.useTags; }
|
|
8532
8626
|
});
|
|
8533
8627
|
Object.defineProperty(exports, "useThumbnails", {
|
|
8534
8628
|
enumerable: true,
|
|
8535
|
-
get: function () { return
|
|
8629
|
+
get: function () { return chunk6LWNEI3A_cjs.useThumbnails; }
|
|
8536
8630
|
});
|
|
8537
8631
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
8538
8632
|
enumerable: true,
|
|
8539
|
-
get: function () { return
|
|
8633
|
+
get: function () { return chunk6LWNEI3A_cjs.useTopUpFirmPool; }
|
|
8540
8634
|
});
|
|
8541
8635
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
8542
8636
|
enumerable: true,
|
|
8543
|
-
get: function () { return
|
|
8637
|
+
get: function () { return chunk6LWNEI3A_cjs.useUserUsageToday; }
|
|
8544
8638
|
});
|
|
8545
8639
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
8546
8640
|
enumerable: true,
|
|
8547
|
-
get: function () { return
|
|
8641
|
+
get: function () { return chunk6LWNEI3A_cjs.useWorkspaceActivity; }
|
|
8548
8642
|
});
|
|
8549
8643
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
8550
8644
|
enumerable: true,
|
|
8551
|
-
get: function () { return
|
|
8645
|
+
get: function () { return chunk6LWNEI3A_cjs.useWorkspaceUsers; }
|
|
8552
8646
|
});
|
|
8553
8647
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
8554
8648
|
enumerable: true,
|
|
8555
|
-
get: function () { return
|
|
8649
|
+
get: function () { return chunk6LWNEI3A_cjs.useWorkspaces; }
|
|
8556
8650
|
});
|
|
8557
8651
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8558
8652
|
enumerable: true,
|
|
@@ -8634,18 +8728,6 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
8634
8728
|
enumerable: true,
|
|
8635
8729
|
get: function () { return chunkKLPY2HUC_cjs.useNotify; }
|
|
8636
8730
|
});
|
|
8637
|
-
Object.defineProperty(exports, "ArbiProvider", {
|
|
8638
|
-
enumerable: true,
|
|
8639
|
-
get: function () { return chunkR2MF7YCW_cjs.ArbiProvider; }
|
|
8640
|
-
});
|
|
8641
|
-
Object.defineProperty(exports, "useArbi", {
|
|
8642
|
-
enumerable: true,
|
|
8643
|
-
get: function () { return chunkR2MF7YCW_cjs.useArbi; }
|
|
8644
|
-
});
|
|
8645
|
-
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
8646
|
-
enumerable: true,
|
|
8647
|
-
get: function () { return chunkR2MF7YCW_cjs.useDeploymentDomain; }
|
|
8648
|
-
});
|
|
8649
8731
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
8650
8732
|
enumerable: true,
|
|
8651
8733
|
get: function () { return chunk65WT5PHA_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -9386,6 +9468,18 @@ Object.defineProperty(exports, "cn", {
|
|
|
9386
9468
|
enumerable: true,
|
|
9387
9469
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
9388
9470
|
});
|
|
9471
|
+
Object.defineProperty(exports, "ArbiProvider", {
|
|
9472
|
+
enumerable: true,
|
|
9473
|
+
get: function () { return chunkR2MF7YCW_cjs.ArbiProvider; }
|
|
9474
|
+
});
|
|
9475
|
+
Object.defineProperty(exports, "useArbi", {
|
|
9476
|
+
enumerable: true,
|
|
9477
|
+
get: function () { return chunkR2MF7YCW_cjs.useArbi; }
|
|
9478
|
+
});
|
|
9479
|
+
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
9480
|
+
enumerable: true,
|
|
9481
|
+
get: function () { return chunkR2MF7YCW_cjs.useDeploymentDomain; }
|
|
9482
|
+
});
|
|
9389
9483
|
Object.defineProperty(exports, "ACCOUNT_VENDOR", {
|
|
9390
9484
|
enumerable: true,
|
|
9391
9485
|
get: function () { return browser.ACCOUNT_VENDOR; }
|
|
@@ -9534,9 +9628,11 @@ exports.inputRequestTitle = inputRequestTitle;
|
|
|
9534
9628
|
exports.invalidateCalendarEvents = invalidateCalendarEvents;
|
|
9535
9629
|
exports.invalidateCalendars = invalidateCalendars;
|
|
9536
9630
|
exports.invalidateTagData = invalidateTagData;
|
|
9631
|
+
exports.invalidateTagTables = invalidateTagTables;
|
|
9537
9632
|
exports.isAliasTakenError = isAliasTakenError;
|
|
9538
9633
|
exports.isDeploymentUserNotification = isDeploymentUserNotification;
|
|
9539
9634
|
exports.isQueuedCalendarWrite = isQueuedCalendarWrite;
|
|
9635
|
+
exports.isReplayableArbiMutation = isReplayableArbiMutation;
|
|
9540
9636
|
exports.isSignatureNotificationType = isSignatureNotificationType;
|
|
9541
9637
|
exports.isWorkspaceNotificationType = isWorkspaceNotificationType;
|
|
9542
9638
|
exports.mailDraftIdFromContent = mailDraftIdFromContent;
|
|
@@ -9548,8 +9644,10 @@ exports.nextViewingDocument = nextViewingDocument;
|
|
|
9548
9644
|
exports.notificationUserName = notificationUserName;
|
|
9549
9645
|
exports.parseActivityContent = parseActivityContent;
|
|
9550
9646
|
exports.parseDeleteAccountBlockers = parseDeleteAccountBlockers;
|
|
9647
|
+
exports.patchWorkspaceTags = patchWorkspaceTags;
|
|
9551
9648
|
exports.pickRecentWorkspaces = pickRecentWorkspaces;
|
|
9552
9649
|
exports.redlineStats = redlineStats;
|
|
9650
|
+
exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
|
|
9553
9651
|
exports.resetCalendarAccountSyncState = resetCalendarAccountSyncState;
|
|
9554
9652
|
exports.resolveActiveWorkspace = resolveActiveWorkspace;
|
|
9555
9653
|
exports.safePortalUrl = safePortalUrl;
|
|
@@ -9623,6 +9721,7 @@ exports.useCreateFact = useCreateFact;
|
|
|
9623
9721
|
exports.useCreateFacts = useCreateFacts;
|
|
9624
9722
|
exports.useCreateFeed = useCreateFeed;
|
|
9625
9723
|
exports.useCreateRoom = useCreateRoom;
|
|
9724
|
+
exports.useCreateTag = useCreateTag;
|
|
9626
9725
|
exports.useCreateWork = useCreateWork;
|
|
9627
9726
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
9628
9727
|
exports.useCurrentSessionId = useCurrentSessionId;
|
|
@@ -9636,11 +9735,13 @@ exports.useDeleteEvent = useDeleteEvent;
|
|
|
9636
9735
|
exports.useDeleteFact = useDeleteFact;
|
|
9637
9736
|
exports.useDeleteNotifications = useDeleteNotifications;
|
|
9638
9737
|
exports.useDeleteSkill = useDeleteSkill;
|
|
9738
|
+
exports.useDeleteTag = useDeleteTag;
|
|
9639
9739
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
9640
9740
|
exports.useDirectMessages = useDirectMessages;
|
|
9641
9741
|
exports.useDisconnectCalendarAccount = useDisconnectCalendarAccount;
|
|
9642
9742
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
9643
9743
|
exports.useEmailChange = useEmailChange;
|
|
9744
|
+
exports.useExtractEntities = useExtractEntities;
|
|
9644
9745
|
exports.useFacts = useFacts;
|
|
9645
9746
|
exports.useFetchCalendarEvent = useFetchCalendarEvent;
|
|
9646
9747
|
exports.useFilteredProjects = useFilteredProjects;
|
|
@@ -9727,6 +9828,7 @@ exports.useUpdateFact = useUpdateFact;
|
|
|
9727
9828
|
exports.useUpdateMailMessage = useUpdateMailMessage;
|
|
9728
9829
|
exports.useUpdateProfile = useUpdateProfile;
|
|
9729
9830
|
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
9831
|
+
exports.useUpdateTag = useUpdateTag;
|
|
9730
9832
|
exports.useUpdateTagKindSchema = useUpdateTagKindSchema;
|
|
9731
9833
|
exports.useUpdateWorkflow = useUpdateWorkflow;
|
|
9732
9834
|
exports.useUploadSkillFiles = useUploadSkillFiles;
|