@arbidocs/react 0.4.142 → 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-6LWNEI3A.cjs → chunk-CVJ25DFD.cjs} +5 -3
- package/dist/chunk-CVJ25DFD.cjs.map +1 -0
- package/dist/{chunk-ETHLYTV4.js → chunk-E4VILXG5.js} +5 -3
- package/dist/chunk-E4VILXG5.js.map +1 -0
- package/dist/{chunk-TYUQFRHF.cjs → chunk-L57RRAII.cjs} +2 -2
- package/dist/chunk-L57RRAII.cjs.map +1 -0
- package/dist/{chunk-ZJ6NQ4M4.js → chunk-YYTX3W6C.js} +2 -2
- package/dist/chunk-YYTX3W6C.js.map +1 -0
- package/dist/document-tools/index.cjs +21 -21
- package/dist/document-tools/index.d.cts +3 -1
- package/dist/document-tools/index.d.ts +3 -1
- package/dist/document-tools/index.js +2 -2
- package/dist/index.cjs +213 -188
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +29 -9
- 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-6LWNEI3A.cjs.map +0 -1
- package/dist/chunk-ETHLYTV4.js.map +0 -1
- package/dist/chunk-TYUQFRHF.cjs.map +0 -1
- package/dist/chunk-ZJ6NQ4M4.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCVJ25DFD_cjs = require('./chunk-CVJ25DFD.cjs');
|
|
4
|
+
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.cjs');
|
|
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,
|
|
@@ -1882,6 +1882,26 @@ function useDebounced(value, ms) {
|
|
|
1882
1882
|
}, [value, ms]);
|
|
1883
1883
|
return debounced;
|
|
1884
1884
|
}
|
|
1885
|
+
function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
1886
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1887
|
+
return reactQuery.useQuery({
|
|
1888
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
1889
|
+
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
1890
|
+
staleTime,
|
|
1891
|
+
queryFn: () => arbi.houseTemplates.candidates()
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
function useSetWorkspaceHouseTemplate() {
|
|
1895
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1896
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1897
|
+
return reactQuery.useMutation({
|
|
1898
|
+
mutationFn: (documentId) => arbi.houseTemplates.setWorkspace(documentId),
|
|
1899
|
+
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.workspaces() })
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
1903
|
+
var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
1904
|
+
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
1885
1905
|
var AccountClientContext = React.createContext(null);
|
|
1886
1906
|
function arbiProfile(arbi) {
|
|
1887
1907
|
const profile = arbi.user.profile();
|
|
@@ -1977,11 +1997,11 @@ function useProfile(options) {
|
|
|
1977
1997
|
const { client, enabled } = useAccountClient();
|
|
1978
1998
|
const qc = reactQuery.useQueryClient();
|
|
1979
1999
|
React.useEffect(
|
|
1980
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
2000
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
1981
2001
|
[client, qc]
|
|
1982
2002
|
);
|
|
1983
2003
|
return reactQuery.useQuery({
|
|
1984
|
-
queryKey:
|
|
2004
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.profile(),
|
|
1985
2005
|
queryFn: () => client.profile(),
|
|
1986
2006
|
enabled: (options?.enabled ?? true) && enabled,
|
|
1987
2007
|
staleTime: Infinity
|
|
@@ -1996,9 +2016,9 @@ function useUpdateProfile() {
|
|
|
1996
2016
|
return client.profile();
|
|
1997
2017
|
},
|
|
1998
2018
|
onSuccess: (profile) => {
|
|
1999
|
-
qc.setQueryData(
|
|
2000
|
-
void qc.invalidateQueries({ queryKey:
|
|
2001
|
-
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() });
|
|
2002
2022
|
}
|
|
2003
2023
|
});
|
|
2004
2024
|
}
|
|
@@ -2081,7 +2101,7 @@ function useConfirmEmailChange() {
|
|
|
2081
2101
|
const qc = reactQuery.useQueryClient();
|
|
2082
2102
|
return reactQuery.useMutation({
|
|
2083
2103
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
2084
|
-
onSuccess: () => qc.setQueryData(
|
|
2104
|
+
onSuccess: () => qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.profile(), client.profile())
|
|
2085
2105
|
});
|
|
2086
2106
|
}
|
|
2087
2107
|
function useEmailChange({
|
|
@@ -2249,7 +2269,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2249
2269
|
function useUserSettings(options) {
|
|
2250
2270
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2251
2271
|
return reactQuery.useQuery({
|
|
2252
|
-
queryKey:
|
|
2272
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2253
2273
|
queryFn: () => arbi.settings.get(),
|
|
2254
2274
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2255
2275
|
});
|
|
@@ -2262,18 +2282,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2262
2282
|
const save = reactQuery.useMutation({
|
|
2263
2283
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2264
2284
|
onMutate: async (patch) => {
|
|
2265
|
-
await qc.cancelQueries({ queryKey:
|
|
2266
|
-
const previous = qc.getQueryData(
|
|
2285
|
+
await qc.cancelQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() });
|
|
2286
|
+
const previous = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings());
|
|
2267
2287
|
qc.setQueryData(
|
|
2268
|
-
|
|
2288
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2269
2289
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2270
2290
|
);
|
|
2271
2291
|
return { previous };
|
|
2272
2292
|
},
|
|
2273
2293
|
onError: (_err, _patch, context) => {
|
|
2274
|
-
qc.setQueryData(
|
|
2294
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2275
2295
|
},
|
|
2276
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2296
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() })
|
|
2277
2297
|
});
|
|
2278
2298
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2279
2299
|
const setAll = React.useCallback(
|
|
@@ -2300,18 +2320,18 @@ function useRelevanceSave() {
|
|
|
2300
2320
|
return reactQuery.useMutation({
|
|
2301
2321
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2302
2322
|
onMutate: async (patch) => {
|
|
2303
|
-
await qc.cancelQueries({ queryKey:
|
|
2304
|
-
const previous = qc.getQueryData(
|
|
2323
|
+
await qc.cancelQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() });
|
|
2324
|
+
const previous = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings());
|
|
2305
2325
|
qc.setQueryData(
|
|
2306
|
-
|
|
2326
|
+
chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(),
|
|
2307
2327
|
(old) => old ? { ...old, ...patch } : old
|
|
2308
2328
|
);
|
|
2309
2329
|
return { previous };
|
|
2310
2330
|
},
|
|
2311
2331
|
onError: (_err, _patch, context) => {
|
|
2312
|
-
qc.setQueryData(
|
|
2332
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2313
2333
|
},
|
|
2314
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2334
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings() })
|
|
2315
2335
|
});
|
|
2316
2336
|
}
|
|
2317
2337
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2322,7 +2342,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2322
2342
|
const setLevel = React.useCallback(
|
|
2323
2343
|
(next) => {
|
|
2324
2344
|
if (!workspaceId) return;
|
|
2325
|
-
const current = qc.getQueryData(
|
|
2345
|
+
const current = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2326
2346
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2327
2347
|
},
|
|
2328
2348
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2343,7 +2363,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2343
2363
|
const setFollowing = React.useCallback(
|
|
2344
2364
|
(on, callbacks) => {
|
|
2345
2365
|
if (!conversationId) return;
|
|
2346
|
-
const current = qc.getQueryData(
|
|
2366
|
+
const current = qc.getQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2347
2367
|
save.mutate(
|
|
2348
2368
|
{
|
|
2349
2369
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2368,7 +2388,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2368
2388
|
function useSessions(options) {
|
|
2369
2389
|
const { client, enabled } = useAccountClient();
|
|
2370
2390
|
return reactQuery.useQuery({
|
|
2371
|
-
queryKey:
|
|
2391
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.sessions(),
|
|
2372
2392
|
queryFn: () => client.listSessions(),
|
|
2373
2393
|
enabled: (options?.enabled ?? true) && enabled
|
|
2374
2394
|
});
|
|
@@ -2378,7 +2398,7 @@ function useTerminateSession() {
|
|
|
2378
2398
|
const qc = reactQuery.useQueryClient();
|
|
2379
2399
|
return reactQuery.useMutation({
|
|
2380
2400
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2381
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2401
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.sessions() })
|
|
2382
2402
|
});
|
|
2383
2403
|
}
|
|
2384
2404
|
function useSignOut() {
|
|
@@ -2521,7 +2541,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2521
2541
|
const apiRef = React.useRef(api);
|
|
2522
2542
|
apiRef.current = api;
|
|
2523
2543
|
const query = reactQuery.useQuery({
|
|
2524
|
-
queryKey:
|
|
2544
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.identity(),
|
|
2525
2545
|
queryFn: () => apiRef.current.status(),
|
|
2526
2546
|
enabled,
|
|
2527
2547
|
staleTime: 6e4
|
|
@@ -2539,7 +2559,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2539
2559
|
const lastVerified = React.useRef(void 0);
|
|
2540
2560
|
const apply = React.useCallback(
|
|
2541
2561
|
(next) => {
|
|
2542
|
-
qc.setQueryData(
|
|
2562
|
+
qc.setQueryData(chunkCVJ25DFD_cjs.arbiQueryKeys.identity(), next);
|
|
2543
2563
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2544
2564
|
onVerifiedChange?.(next.verified);
|
|
2545
2565
|
}
|
|
@@ -2734,12 +2754,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2734
2754
|
enabled,
|
|
2735
2755
|
formatPrice,
|
|
2736
2756
|
onVerifiedChange: (verified) => {
|
|
2737
|
-
void qc.invalidateQueries({ queryKey:
|
|
2757
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.profile() });
|
|
2738
2758
|
onVerifiedChange?.(verified);
|
|
2739
2759
|
},
|
|
2740
2760
|
onNameAccepted: (name) => {
|
|
2741
|
-
void qc.invalidateQueries({ queryKey:
|
|
2742
|
-
void qc.invalidateQueries({ queryKey:
|
|
2761
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.profile() });
|
|
2762
|
+
void qc.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.workspaces() });
|
|
2743
2763
|
onNameAccepted?.(name);
|
|
2744
2764
|
}
|
|
2745
2765
|
});
|
|
@@ -2749,7 +2769,7 @@ async function downloadRecoveryFile(params) {
|
|
|
2749
2769
|
...params,
|
|
2750
2770
|
origin: params.origin ?? window.location.origin
|
|
2751
2771
|
});
|
|
2752
|
-
|
|
2772
|
+
chunkL57RRAII_cjs.downloadBlob(new Blob([file.html], { type: "text/html" }), file.filename);
|
|
2753
2773
|
}
|
|
2754
2774
|
|
|
2755
2775
|
// src/mail/client.ts
|
|
@@ -3802,7 +3822,7 @@ function useDeleteBookingPage() {
|
|
|
3802
3822
|
});
|
|
3803
3823
|
}
|
|
3804
3824
|
function useWorkspaceDocs(workspaceId) {
|
|
3805
|
-
const { data: docs = [], isLoading, isError } =
|
|
3825
|
+
const { data: docs = [], isLoading, isError } = chunkCVJ25DFD_cjs.useDocuments(workspaceId);
|
|
3806
3826
|
const docIds = React.useMemo(
|
|
3807
3827
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
3808
3828
|
[docs]
|
|
@@ -3810,7 +3830,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
3810
3830
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
3811
3831
|
}
|
|
3812
3832
|
function useAiTask() {
|
|
3813
|
-
const mutation =
|
|
3833
|
+
const mutation = chunkCVJ25DFD_cjs.useAssistantQuery();
|
|
3814
3834
|
const [status, setStatus] = React.useState("idle");
|
|
3815
3835
|
const [text, setText] = React.useState("");
|
|
3816
3836
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -4430,8 +4450,8 @@ function DocumentReview({
|
|
|
4430
4450
|
onClose,
|
|
4431
4451
|
className
|
|
4432
4452
|
}) {
|
|
4433
|
-
const parsedQuery =
|
|
4434
|
-
const tagsQuery =
|
|
4453
|
+
const parsedQuery = chunkCVJ25DFD_cjs.useParsedDocument(docId, stage);
|
|
4454
|
+
const tagsQuery = chunkCVJ25DFD_cjs.useTags(workspaceId);
|
|
4435
4455
|
const tagNameById = React__default.default.useMemo(() => {
|
|
4436
4456
|
const map = /* @__PURE__ */ new Map();
|
|
4437
4457
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -4662,7 +4682,7 @@ function SemanticSearch({
|
|
|
4662
4682
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
4663
4683
|
const [value, setValue] = React.useState("");
|
|
4664
4684
|
const [selected, setSelected] = React.useState(null);
|
|
4665
|
-
const { data: docs = [] } =
|
|
4685
|
+
const { data: docs = [] } = chunkCVJ25DFD_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
4666
4686
|
const docMap = React.useMemo(() => {
|
|
4667
4687
|
const map = /* @__PURE__ */ new Map();
|
|
4668
4688
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -5764,7 +5784,7 @@ function ActivityFeed({
|
|
|
5764
5784
|
enabled,
|
|
5765
5785
|
"data-testid": testId = "activity-feed"
|
|
5766
5786
|
}) {
|
|
5767
|
-
const { data, isLoading, isError } =
|
|
5787
|
+
const { data, isLoading, isError } = chunkCVJ25DFD_cjs.useActivity({ limit, enabled });
|
|
5768
5788
|
if (isLoading) {
|
|
5769
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: [
|
|
5770
5790
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5841,12 +5861,12 @@ function useNotifications(options = {}) {
|
|
|
5841
5861
|
React.useEffect(
|
|
5842
5862
|
() => ws?.subscribe((message) => {
|
|
5843
5863
|
if ("sender" in message && "recipient" in message)
|
|
5844
|
-
void queries.invalidateQueries({ queryKey:
|
|
5864
|
+
void queries.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allNotifications() });
|
|
5845
5865
|
}),
|
|
5846
5866
|
[ws, queries]
|
|
5847
5867
|
);
|
|
5848
5868
|
return reactQuery.useQuery({
|
|
5849
|
-
queryKey:
|
|
5869
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.notifications(limit),
|
|
5850
5870
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
5851
5871
|
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
5852
5872
|
});
|
|
@@ -5856,7 +5876,7 @@ function useDeleteNotifications() {
|
|
|
5856
5876
|
const queries = reactQuery.useQueryClient();
|
|
5857
5877
|
return reactQuery.useMutation({
|
|
5858
5878
|
mutationFn: (ids) => arbi.notifications.delete(ids),
|
|
5859
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
5879
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allNotifications() })
|
|
5860
5880
|
});
|
|
5861
5881
|
}
|
|
5862
5882
|
function useMarkNotificationsRead() {
|
|
@@ -5864,7 +5884,7 @@ function useMarkNotificationsRead() {
|
|
|
5864
5884
|
const queries = reactQuery.useQueryClient();
|
|
5865
5885
|
return reactQuery.useMutation({
|
|
5866
5886
|
mutationFn: (ids) => arbi.notifications.markRead(ids),
|
|
5867
|
-
onSuccess: () => queries.invalidateQueries({ queryKey:
|
|
5887
|
+
onSuccess: () => queries.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.allNotifications() })
|
|
5868
5888
|
});
|
|
5869
5889
|
}
|
|
5870
5890
|
|
|
@@ -6317,7 +6337,7 @@ function useDirectMessages(options) {
|
|
|
6317
6337
|
enabled
|
|
6318
6338
|
});
|
|
6319
6339
|
const contactsQuery = reactQuery.useQuery({
|
|
6320
|
-
queryKey:
|
|
6340
|
+
queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.contacts(),
|
|
6321
6341
|
queryFn: () => arbi.contacts.list(),
|
|
6322
6342
|
enabled
|
|
6323
6343
|
});
|
|
@@ -7586,10 +7606,10 @@ function DocumentTable({
|
|
|
7586
7606
|
extraColumns,
|
|
7587
7607
|
className
|
|
7588
7608
|
}) {
|
|
7589
|
-
const query =
|
|
7609
|
+
const query = chunkCVJ25DFD_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7590
7610
|
const rows = documents ?? query.data ?? [];
|
|
7591
7611
|
const isLoading = !documents && query.isLoading;
|
|
7592
|
-
const tagsQuery =
|
|
7612
|
+
const tagsQuery = chunkCVJ25DFD_cjs.useTags(workspaceId);
|
|
7593
7613
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7594
7614
|
const map = /* @__PURE__ */ new Map();
|
|
7595
7615
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7770,7 +7790,7 @@ function DocumentCardMenu({
|
|
|
7770
7790
|
const invalidateDocuments = () => {
|
|
7771
7791
|
const workspaceId = arbi.getWorkspaceId();
|
|
7772
7792
|
if (workspaceId) {
|
|
7773
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7793
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
7774
7794
|
}
|
|
7775
7795
|
};
|
|
7776
7796
|
const download = reactQuery.useMutation({
|
|
@@ -7869,10 +7889,10 @@ function DocumentGallery({
|
|
|
7869
7889
|
minTileWidth = 148,
|
|
7870
7890
|
className
|
|
7871
7891
|
}) {
|
|
7872
|
-
const query =
|
|
7892
|
+
const query = chunkCVJ25DFD_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
7873
7893
|
const rows = documents ?? query.data ?? [];
|
|
7874
7894
|
const isLoading = !documents && query.isLoading;
|
|
7875
|
-
const tagsQuery =
|
|
7895
|
+
const tagsQuery = chunkCVJ25DFD_cjs.useTags(workspaceId);
|
|
7876
7896
|
const tagNameById = React__default.default.useMemo(() => {
|
|
7877
7897
|
const map = /* @__PURE__ */ new Map();
|
|
7878
7898
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -7884,7 +7904,7 @@ function DocumentGallery({
|
|
|
7884
7904
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
7885
7905
|
[rows]
|
|
7886
7906
|
);
|
|
7887
|
-
const thumbsQuery =
|
|
7907
|
+
const thumbsQuery = chunkCVJ25DFD_cjs.useThumbnails(docIds);
|
|
7888
7908
|
const thumbs = thumbsQuery.data ?? {};
|
|
7889
7909
|
const session = useArbiSessionStore();
|
|
7890
7910
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -7920,7 +7940,7 @@ function DocumentGallery({
|
|
|
7920
7940
|
setRenamingId(null);
|
|
7921
7941
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
7922
7942
|
if (activeWorkspace) {
|
|
7923
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
7943
|
+
void queryClient.invalidateQueries({ queryKey: chunkCVJ25DFD_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
7924
7944
|
}
|
|
7925
7945
|
}
|
|
7926
7946
|
});
|
|
@@ -8538,147 +8558,115 @@ function hasVideoTrack(blob) {
|
|
|
8538
8558
|
|
|
8539
8559
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
8540
8560
|
enumerable: true,
|
|
8541
|
-
get: function () { return
|
|
8561
|
+
get: function () { return chunkCVJ25DFD_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
8542
8562
|
});
|
|
8543
8563
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
8544
8564
|
enumerable: true,
|
|
8545
|
-
get: function () { return
|
|
8565
|
+
get: function () { return chunkCVJ25DFD_cjs.arbiMutationKeys; }
|
|
8546
8566
|
});
|
|
8547
8567
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
8548
8568
|
enumerable: true,
|
|
8549
|
-
get: function () { return
|
|
8569
|
+
get: function () { return chunkCVJ25DFD_cjs.arbiQueryKeys; }
|
|
8550
8570
|
});
|
|
8551
8571
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
8552
8572
|
enumerable: true,
|
|
8553
|
-
get: function () { return
|
|
8573
|
+
get: function () { return chunkCVJ25DFD_cjs.isUsageMetered; }
|
|
8554
8574
|
});
|
|
8555
8575
|
Object.defineProperty(exports, "useActivity", {
|
|
8556
8576
|
enumerable: true,
|
|
8557
|
-
get: function () { return
|
|
8577
|
+
get: function () { return chunkCVJ25DFD_cjs.useActivity; }
|
|
8558
8578
|
});
|
|
8559
8579
|
Object.defineProperty(exports, "useAgents", {
|
|
8560
8580
|
enumerable: true,
|
|
8561
|
-
get: function () { return
|
|
8581
|
+
get: function () { return chunkCVJ25DFD_cjs.useAgents; }
|
|
8562
8582
|
});
|
|
8563
8583
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
8564
8584
|
enumerable: true,
|
|
8565
|
-
get: function () { return
|
|
8585
|
+
get: function () { return chunkCVJ25DFD_cjs.useAssistantQuery; }
|
|
8566
8586
|
});
|
|
8567
8587
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
8568
8588
|
enumerable: true,
|
|
8569
|
-
get: function () { return
|
|
8589
|
+
get: function () { return chunkCVJ25DFD_cjs.useCanCreateProjects; }
|
|
8570
8590
|
});
|
|
8571
8591
|
Object.defineProperty(exports, "useConfigs", {
|
|
8572
8592
|
enumerable: true,
|
|
8573
|
-
get: function () { return
|
|
8593
|
+
get: function () { return chunkCVJ25DFD_cjs.useConfigs; }
|
|
8574
8594
|
});
|
|
8575
8595
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
8576
8596
|
enumerable: true,
|
|
8577
|
-
get: function () { return
|
|
8597
|
+
get: function () { return chunkCVJ25DFD_cjs.useConversationThreads; }
|
|
8578
8598
|
});
|
|
8579
8599
|
Object.defineProperty(exports, "useConversations", {
|
|
8580
8600
|
enumerable: true,
|
|
8581
|
-
get: function () { return
|
|
8601
|
+
get: function () { return chunkCVJ25DFD_cjs.useConversations; }
|
|
8582
8602
|
});
|
|
8583
8603
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
8584
8604
|
enumerable: true,
|
|
8585
|
-
get: function () { return
|
|
8605
|
+
get: function () { return chunkCVJ25DFD_cjs.useCurrentUser; }
|
|
8586
8606
|
});
|
|
8587
8607
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
8588
8608
|
enumerable: true,
|
|
8589
|
-
get: function () { return
|
|
8609
|
+
get: function () { return chunkCVJ25DFD_cjs.useDeleteAgents; }
|
|
8590
8610
|
});
|
|
8591
8611
|
Object.defineProperty(exports, "useDocuments", {
|
|
8592
8612
|
enumerable: true,
|
|
8593
|
-
get: function () { return
|
|
8613
|
+
get: function () { return chunkCVJ25DFD_cjs.useDocuments; }
|
|
8594
8614
|
});
|
|
8595
8615
|
Object.defineProperty(exports, "useFirmPool", {
|
|
8596
8616
|
enumerable: true,
|
|
8597
|
-
get: function () { return
|
|
8617
|
+
get: function () { return chunkCVJ25DFD_cjs.useFirmPool; }
|
|
8598
8618
|
});
|
|
8599
8619
|
Object.defineProperty(exports, "useHealth", {
|
|
8600
8620
|
enumerable: true,
|
|
8601
|
-
get: function () { return
|
|
8621
|
+
get: function () { return chunkCVJ25DFD_cjs.useHealth; }
|
|
8602
8622
|
});
|
|
8603
8623
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
8604
8624
|
enumerable: true,
|
|
8605
|
-
get: function () { return
|
|
8625
|
+
get: function () { return chunkCVJ25DFD_cjs.useParsedDocument; }
|
|
8606
8626
|
});
|
|
8607
8627
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
8608
8628
|
enumerable: true,
|
|
8609
|
-
get: function () { return
|
|
8629
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjectInvoices; }
|
|
8610
8630
|
});
|
|
8611
8631
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
8612
8632
|
enumerable: true,
|
|
8613
|
-
get: function () { return
|
|
8633
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjectUsage; }
|
|
8614
8634
|
});
|
|
8615
8635
|
Object.defineProperty(exports, "useProjects", {
|
|
8616
8636
|
enumerable: true,
|
|
8617
|
-
get: function () { return
|
|
8637
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjects; }
|
|
8618
8638
|
});
|
|
8619
8639
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
8620
8640
|
enumerable: true,
|
|
8621
|
-
get: function () { return
|
|
8641
|
+
get: function () { return chunkCVJ25DFD_cjs.useProjectsUsage; }
|
|
8622
8642
|
});
|
|
8623
8643
|
Object.defineProperty(exports, "useTags", {
|
|
8624
8644
|
enumerable: true,
|
|
8625
|
-
get: function () { return
|
|
8645
|
+
get: function () { return chunkCVJ25DFD_cjs.useTags; }
|
|
8626
8646
|
});
|
|
8627
8647
|
Object.defineProperty(exports, "useThumbnails", {
|
|
8628
8648
|
enumerable: true,
|
|
8629
|
-
get: function () { return
|
|
8649
|
+
get: function () { return chunkCVJ25DFD_cjs.useThumbnails; }
|
|
8630
8650
|
});
|
|
8631
8651
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
8632
8652
|
enumerable: true,
|
|
8633
|
-
get: function () { return
|
|
8653
|
+
get: function () { return chunkCVJ25DFD_cjs.useTopUpFirmPool; }
|
|
8634
8654
|
});
|
|
8635
8655
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
8636
8656
|
enumerable: true,
|
|
8637
|
-
get: function () { return
|
|
8657
|
+
get: function () { return chunkCVJ25DFD_cjs.useUserUsageToday; }
|
|
8638
8658
|
});
|
|
8639
8659
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
8640
8660
|
enumerable: true,
|
|
8641
|
-
get: function () { return
|
|
8661
|
+
get: function () { return chunkCVJ25DFD_cjs.useWorkspaceActivity; }
|
|
8642
8662
|
});
|
|
8643
8663
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
8644
8664
|
enumerable: true,
|
|
8645
|
-
get: function () { return
|
|
8665
|
+
get: function () { return chunkCVJ25DFD_cjs.useWorkspaceUsers; }
|
|
8646
8666
|
});
|
|
8647
8667
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
8648
8668
|
enumerable: true,
|
|
8649
|
-
get: function () { return
|
|
8650
|
-
});
|
|
8651
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8652
|
-
enumerable: true,
|
|
8653
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
8654
|
-
});
|
|
8655
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
8656
|
-
enumerable: true,
|
|
8657
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
8658
|
-
});
|
|
8659
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
8660
|
-
enumerable: true,
|
|
8661
|
-
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
8662
|
-
});
|
|
8663
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
8664
|
-
enumerable: true,
|
|
8665
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
8666
|
-
});
|
|
8667
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
8668
|
-
enumerable: true,
|
|
8669
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
8670
|
-
});
|
|
8671
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
8672
|
-
enumerable: true,
|
|
8673
|
-
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
8674
|
-
});
|
|
8675
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
8676
|
-
enumerable: true,
|
|
8677
|
-
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
8678
|
-
});
|
|
8679
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
8680
|
-
enumerable: true,
|
|
8681
|
-
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
8669
|
+
get: function () { return chunkCVJ25DFD_cjs.useWorkspaces; }
|
|
8682
8670
|
});
|
|
8683
8671
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
8684
8672
|
enumerable: true,
|
|
@@ -8728,6 +8716,38 @@ Object.defineProperty(exports, "useNotify", {
|
|
|
8728
8716
|
enumerable: true,
|
|
8729
8717
|
get: function () { return chunkKLPY2HUC_cjs.useNotify; }
|
|
8730
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
|
+
});
|
|
8731
8751
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
8732
8752
|
enumerable: true,
|
|
8733
8753
|
get: function () { return chunk65WT5PHA_cjs.AUDIO_MIME_PREFERENCE; }
|
|
@@ -9328,6 +9348,14 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
9328
9348
|
enumerable: true,
|
|
9329
9349
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
9330
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
|
+
});
|
|
9331
9359
|
Object.defineProperty(exports, "Button", {
|
|
9332
9360
|
enumerable: true,
|
|
9333
9361
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -9388,14 +9416,6 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
9388
9416
|
enumerable: true,
|
|
9389
9417
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
9390
9418
|
});
|
|
9391
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
9392
|
-
enumerable: true,
|
|
9393
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
9394
|
-
});
|
|
9395
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
9396
|
-
enumerable: true,
|
|
9397
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
9398
|
-
});
|
|
9399
9419
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
9400
9420
|
enumerable: true,
|
|
9401
9421
|
get: function () { return chunkHJDR5HEO_cjs.DropdownMenu; }
|
|
@@ -9630,6 +9650,7 @@ exports.invalidateCalendars = invalidateCalendars;
|
|
|
9630
9650
|
exports.invalidateTagData = invalidateTagData;
|
|
9631
9651
|
exports.invalidateTagTables = invalidateTagTables;
|
|
9632
9652
|
exports.isAliasTakenError = isAliasTakenError;
|
|
9653
|
+
exports.isDeploymentAdmin = isDeploymentAdmin;
|
|
9633
9654
|
exports.isDeploymentUserNotification = isDeploymentUserNotification;
|
|
9634
9655
|
exports.isQueuedCalendarWrite = isQueuedCalendarWrite;
|
|
9635
9656
|
exports.isReplayableArbiMutation = isReplayableArbiMutation;
|
|
@@ -9655,6 +9676,7 @@ exports.selectIsGenerating = selectIsGenerating;
|
|
|
9655
9676
|
exports.selectViewingDocumentId = selectViewingDocumentId;
|
|
9656
9677
|
exports.signatureNotificationPhrase = signatureNotificationPhrase;
|
|
9657
9678
|
exports.signatureRequestMeta = signatureRequestMeta;
|
|
9679
|
+
exports.supportsHouseTemplates = supportsHouseTemplates;
|
|
9658
9680
|
exports.textToArtifact = textToArtifact;
|
|
9659
9681
|
exports.titleFromQuestion = titleFromQuestion;
|
|
9660
9682
|
exports.toChatCitations = toChatCitations;
|
|
@@ -9751,6 +9773,7 @@ exports.useFreeBusy = useFreeBusy;
|
|
|
9751
9773
|
exports.useGenerateAgentAvatar = useGenerateAgentAvatar;
|
|
9752
9774
|
exports.useGrantAgentAccess = useGrantAgentAccess;
|
|
9753
9775
|
exports.useHolidayCountries = useHolidayCountries;
|
|
9776
|
+
exports.useHouseTemplateCandidates = useHouseTemplateCandidates;
|
|
9754
9777
|
exports.useIdentityVerification = useIdentityVerification;
|
|
9755
9778
|
exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
|
|
9756
9779
|
exports.useImportCalendar = useImportCalendar;
|
|
@@ -9805,6 +9828,7 @@ exports.useSendMail = useSendMail;
|
|
|
9805
9828
|
exports.useSessions = useSessions;
|
|
9806
9829
|
exports.useSetSkillVisibility = useSetSkillVisibility;
|
|
9807
9830
|
exports.useSetTagValues = useSetTagValues;
|
|
9831
|
+
exports.useSetWorkspaceHouseTemplate = useSetWorkspaceHouseTemplate;
|
|
9808
9832
|
exports.useShareCalendar = useShareCalendar;
|
|
9809
9833
|
exports.useShellWorkspaces = useShellWorkspaces;
|
|
9810
9834
|
exports.useSignOut = useSignOut;
|
|
@@ -9842,5 +9866,6 @@ exports.useWorkspaceNotificationLevel = useWorkspaceNotificationLevel;
|
|
|
9842
9866
|
exports.userDisplayName = userDisplayName;
|
|
9843
9867
|
exports.userInitials = userInitials;
|
|
9844
9868
|
exports.workflowStepOf = workflowStepOf;
|
|
9869
|
+
exports.workspaceHouseTemplateId = workspaceHouseTemplateId;
|
|
9845
9870
|
//# sourceMappingURL=index.cjs.map
|
|
9846
9871
|
//# sourceMappingURL=index.cjs.map
|