@arbidocs/react 0.4.130 → 0.4.132
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 +9 -9
- package/dist/artifacts/index.js +2 -2
- package/dist/{chunk-XV7EOUQM.js → chunk-3TISH7QU.js} +9 -4
- package/dist/chunk-3TISH7QU.js.map +1 -0
- package/dist/{chunk-BUFDJCDS.js → chunk-CPPBN2JB.js} +9 -7
- package/dist/chunk-CPPBN2JB.js.map +1 -0
- package/dist/{chunk-XIDDXD5Y.cjs → chunk-R2MF7YCW.cjs} +9 -7
- package/dist/chunk-R2MF7YCW.cjs.map +1 -0
- package/dist/{chunk-S7J5SCTZ.cjs → chunk-TYUQFRHF.cjs} +4 -4
- package/dist/{chunk-S7J5SCTZ.cjs.map → chunk-TYUQFRHF.cjs.map} +1 -1
- package/dist/{chunk-UN3AZUXX.cjs → chunk-UTZZMUHI.cjs} +34 -29
- package/dist/chunk-UTZZMUHI.cjs.map +1 -0
- package/dist/{chunk-6JSXDLIQ.js → chunk-ZJ6NQ4M4.js} +3 -3
- package/dist/{chunk-6JSXDLIQ.js.map → chunk-ZJ6NQ4M4.js.map} +1 -1
- package/dist/document-tools/index.cjs +22 -22
- package/dist/document-tools/index.js +3 -3
- package/dist/index.cjs +227 -183
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -6
- package/dist/index.d.ts +47 -6
- package/dist/index.js +57 -16
- package/dist/index.js.map +1 -1
- package/dist/viewers/index.cjs +2 -2
- package/dist/viewers/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-BUFDJCDS.js.map +0 -1
- package/dist/chunk-UN3AZUXX.cjs.map +0 -1
- package/dist/chunk-XIDDXD5Y.cjs.map +0 -1
- package/dist/chunk-XV7EOUQM.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkUTZZMUHI_cjs = require('./chunk-UTZZMUHI.cjs');
|
|
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 chunk6PPWZILQ_cjs = require('./chunk-6PPWZILQ.cjs');
|
|
@@ -13,7 +13,7 @@ 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');
|
|
16
|
-
var
|
|
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');
|
|
@@ -36,45 +36,45 @@ var ReactMarkdown__default = /*#__PURE__*/_interopDefault(ReactMarkdown);
|
|
|
36
36
|
var Cropper__default = /*#__PURE__*/_interopDefault(Cropper);
|
|
37
37
|
|
|
38
38
|
function useUpdateConversation() {
|
|
39
|
-
const arbi =
|
|
39
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
40
40
|
const qc = reactQuery.useQueryClient();
|
|
41
41
|
return reactQuery.useMutation({
|
|
42
42
|
mutationFn: ({
|
|
43
43
|
conversationId,
|
|
44
44
|
patch
|
|
45
45
|
}) => arbi.conversations.update(conversationId, patch),
|
|
46
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
46
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function useCreateWork() {
|
|
50
|
-
const arbi =
|
|
50
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function useRunConversation() {
|
|
58
|
-
const arbi =
|
|
58
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
function useActOnStep() {
|
|
66
|
-
const arbi =
|
|
66
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
67
67
|
const qc = reactQuery.useQueryClient();
|
|
68
68
|
return reactQuery.useMutation({
|
|
69
69
|
mutationFn: ({
|
|
70
70
|
conversationId,
|
|
71
71
|
body
|
|
72
72
|
}) => arbi.conversations.actOnStep(conversationId, body),
|
|
73
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
73
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
function useSendBackStep() {
|
|
77
|
-
const arbi =
|
|
77
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
78
78
|
const qc = reactQuery.useQueryClient();
|
|
79
79
|
return reactQuery.useMutation({
|
|
80
80
|
mutationFn: ({
|
|
@@ -83,106 +83,130 @@ 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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
function usePlanWork() {
|
|
90
|
-
const arbi =
|
|
90
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
91
91
|
return reactQuery.useMutation({
|
|
92
92
|
mutationFn: (body) => arbi.conversations.plan(body)
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
function useConversationPendingAuth(conversationId, options) {
|
|
96
|
-
const arbi =
|
|
96
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
97
97
|
return reactQuery.useQuery({
|
|
98
|
-
queryKey: [...
|
|
98
|
+
queryKey: [...chunkUTZZMUHI_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
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
function useConversationActivity(conversationId, options) {
|
|
105
|
-
const arbi =
|
|
105
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
106
106
|
return reactQuery.useQuery({
|
|
107
|
-
queryKey: [...
|
|
107
|
+
queryKey: [...chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "activity"],
|
|
108
108
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
109
109
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
110
110
|
refetchInterval: options?.live ? 2500 : false
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
function useWorkflows(options) {
|
|
114
|
-
const arbi =
|
|
114
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
115
115
|
return reactQuery.useQuery({
|
|
116
|
-
queryKey:
|
|
116
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows(),
|
|
117
117
|
queryFn: () => arbi.workflows.list(),
|
|
118
118
|
refetchInterval: options?.live ? 15e3 : false,
|
|
119
119
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function useCreateWorkflow() {
|
|
123
|
-
const arbi =
|
|
123
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
124
124
|
const qc = reactQuery.useQueryClient();
|
|
125
125
|
return reactQuery.useMutation({
|
|
126
126
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
127
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
127
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() })
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
function useUpdateWorkflow() {
|
|
131
|
-
const arbi =
|
|
131
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
132
132
|
const qc = reactQuery.useQueryClient();
|
|
133
133
|
return reactQuery.useMutation({
|
|
134
134
|
mutationFn: ({
|
|
135
135
|
workflowId,
|
|
136
136
|
patch
|
|
137
137
|
}) => arbi.workflows.update(workflowId, patch),
|
|
138
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
138
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() })
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
function useDeleteWorkflow() {
|
|
142
|
-
const arbi =
|
|
142
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
143
143
|
const qc = reactQuery.useQueryClient();
|
|
144
144
|
return reactQuery.useMutation({
|
|
145
145
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
146
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
146
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() })
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function useRunWorkflow() {
|
|
150
|
-
const arbi =
|
|
150
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
151
151
|
const qc = reactQuery.useQueryClient();
|
|
152
152
|
return reactQuery.useMutation({
|
|
153
153
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
154
154
|
onSuccess: () => Promise.all([
|
|
155
|
-
qc.invalidateQueries({ queryKey:
|
|
156
|
-
qc.invalidateQueries({ queryKey:
|
|
155
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() }),
|
|
156
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
157
157
|
])
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
function useCreateAgent() {
|
|
161
|
-
const arbi =
|
|
161
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
162
162
|
const qc = reactQuery.useQueryClient();
|
|
163
163
|
return reactQuery.useMutation({
|
|
164
164
|
mutationFn: (name) => arbi.agents.create(name),
|
|
165
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
165
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agents() })
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function useGenerateAgentAvatar() {
|
|
169
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
170
|
+
const qc = reactQuery.useQueryClient();
|
|
171
|
+
return reactQuery.useMutation({
|
|
172
|
+
mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
|
|
173
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agents() })
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function useAuthorizeLimits(options) {
|
|
177
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
178
|
+
return reactQuery.useQuery({
|
|
179
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.authorizeLimits(),
|
|
180
|
+
queryFn: () => arbi.agents.authorizeLimits(),
|
|
181
|
+
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function useMcpTools(options) {
|
|
185
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
186
|
+
return reactQuery.useQuery({
|
|
187
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.mcpTools(),
|
|
188
|
+
queryFn: () => arbi.health.mcpTools(),
|
|
189
|
+
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
166
190
|
});
|
|
167
191
|
}
|
|
168
192
|
function useAgentConfig(agentExtId, options) {
|
|
169
|
-
const arbi =
|
|
193
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
170
194
|
return reactQuery.useQuery({
|
|
171
|
-
queryKey:
|
|
195
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
172
196
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
173
197
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
174
198
|
});
|
|
175
199
|
}
|
|
176
200
|
function useAgentModels(options) {
|
|
177
|
-
const arbi =
|
|
201
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
178
202
|
return reactQuery.useQuery({
|
|
179
|
-
queryKey:
|
|
203
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.models(),
|
|
180
204
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
181
205
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
182
206
|
});
|
|
183
207
|
}
|
|
184
208
|
function useSaveAgentConfig() {
|
|
185
|
-
const arbi =
|
|
209
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
186
210
|
const qc = reactQuery.useQueryClient();
|
|
187
211
|
return reactQuery.useMutation({
|
|
188
212
|
mutationFn: async ({ agentExtId, title, sections }) => {
|
|
@@ -199,23 +223,23 @@ function useSaveAgentConfig() {
|
|
|
199
223
|
});
|
|
200
224
|
},
|
|
201
225
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
202
|
-
qc.invalidateQueries({ queryKey:
|
|
203
|
-
qc.invalidateQueries({ queryKey:
|
|
226
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.configs() }),
|
|
227
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
204
228
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
205
|
-
qc.invalidateQueries({ queryKey:
|
|
229
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agents() })
|
|
206
230
|
])
|
|
207
231
|
});
|
|
208
232
|
}
|
|
209
233
|
function useAgentWorkspaces(agentExtId, options) {
|
|
210
|
-
const arbi =
|
|
234
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
211
235
|
return reactQuery.useQuery({
|
|
212
|
-
queryKey:
|
|
236
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
213
237
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
214
238
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
215
239
|
});
|
|
216
240
|
}
|
|
217
241
|
function useGrantAgentAccess() {
|
|
218
|
-
const arbi =
|
|
242
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
219
243
|
const qc = reactQuery.useQueryClient();
|
|
220
244
|
return reactQuery.useMutation({
|
|
221
245
|
mutationFn: async ({
|
|
@@ -230,11 +254,11 @@ function useGrantAgentAccess() {
|
|
|
230
254
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
231
255
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
232
256
|
},
|
|
233
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
257
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
234
258
|
});
|
|
235
259
|
}
|
|
236
260
|
function useRevokeAgentAccess() {
|
|
237
|
-
const arbi =
|
|
261
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
238
262
|
const qc = reactQuery.useQueryClient();
|
|
239
263
|
return reactQuery.useMutation({
|
|
240
264
|
mutationFn: async ({
|
|
@@ -249,13 +273,13 @@ function useRevokeAgentAccess() {
|
|
|
249
273
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
250
274
|
}
|
|
251
275
|
},
|
|
252
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
276
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
253
277
|
});
|
|
254
278
|
}
|
|
255
279
|
function useSkills(options) {
|
|
256
|
-
const arbi =
|
|
280
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
257
281
|
return reactQuery.useQuery({
|
|
258
|
-
queryKey: [...
|
|
282
|
+
queryKey: [...chunkUTZZMUHI_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
259
283
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
260
284
|
refetchInterval: options?.live ? 5e3 : false,
|
|
261
285
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -263,7 +287,7 @@ function useSkills(options) {
|
|
|
263
287
|
});
|
|
264
288
|
}
|
|
265
289
|
function useUploadSkillFiles() {
|
|
266
|
-
const arbi =
|
|
290
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
267
291
|
const qc = reactQuery.useQueryClient();
|
|
268
292
|
return reactQuery.useMutation({
|
|
269
293
|
mutationFn: async (entries) => {
|
|
@@ -286,11 +310,11 @@ function useUploadSkillFiles() {
|
|
|
286
310
|
}
|
|
287
311
|
return results;
|
|
288
312
|
},
|
|
289
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
313
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.skills() })
|
|
290
314
|
});
|
|
291
315
|
}
|
|
292
316
|
function useStartWorkQuery() {
|
|
293
|
-
const arbi =
|
|
317
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
294
318
|
const qc = reactQuery.useQueryClient();
|
|
295
319
|
return reactQuery.useMutation({
|
|
296
320
|
mutationFn: async ({
|
|
@@ -313,41 +337,51 @@ function useStartWorkQuery() {
|
|
|
313
337
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
314
338
|
);
|
|
315
339
|
},
|
|
316
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
340
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
|
|
317
341
|
});
|
|
318
342
|
}
|
|
319
343
|
function useAgentSession(agentId, options) {
|
|
320
|
-
const arbi =
|
|
344
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
321
345
|
return reactQuery.useQuery({
|
|
322
|
-
queryKey:
|
|
346
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
323
347
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
324
348
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
325
349
|
refetchInterval: 5e3
|
|
326
350
|
});
|
|
327
351
|
}
|
|
328
352
|
function useAgentChats(agentId) {
|
|
329
|
-
const arbi =
|
|
353
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
330
354
|
return reactQuery.useQuery({
|
|
331
|
-
queryKey:
|
|
355
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
332
356
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
333
357
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
334
358
|
refetchInterval: 5e3
|
|
335
359
|
});
|
|
336
360
|
}
|
|
361
|
+
function refreshAgentSession(qc, agentId) {
|
|
362
|
+
return Promise.all(
|
|
363
|
+
[
|
|
364
|
+
chunkUTZZMUHI_cjs.arbiQueryKeys.agentSession(agentId),
|
|
365
|
+
chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
366
|
+
chunkUTZZMUHI_cjs.arbiQueryKeys.agentChats(agentId),
|
|
367
|
+
chunkUTZZMUHI_cjs.arbiQueryKeys.sessions()
|
|
368
|
+
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
369
|
+
);
|
|
370
|
+
}
|
|
337
371
|
function useStartAgentSession() {
|
|
338
|
-
const arbi =
|
|
339
|
-
const
|
|
372
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
373
|
+
const qc = reactQuery.useQueryClient();
|
|
340
374
|
return reactQuery.useMutation({
|
|
341
375
|
mutationFn: ({ agentId, workspaceId }) => arbi.agents.startSession(agentId, workspaceId),
|
|
342
|
-
onSuccess: () =>
|
|
376
|
+
onSuccess: (_session, { agentId }) => refreshAgentSession(qc, agentId)
|
|
343
377
|
});
|
|
344
378
|
}
|
|
345
379
|
function useCloseAgentSession() {
|
|
346
|
-
const arbi =
|
|
347
|
-
const
|
|
380
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
381
|
+
const qc = reactQuery.useQueryClient();
|
|
348
382
|
return reactQuery.useMutation({
|
|
349
383
|
mutationFn: (agentId) => arbi.agents.closeSession(agentId),
|
|
350
|
-
onSuccess: () =>
|
|
384
|
+
onSuccess: (_result, agentId) => refreshAgentSession(qc, agentId)
|
|
351
385
|
});
|
|
352
386
|
}
|
|
353
387
|
function previewText(content) {
|
|
@@ -476,9 +510,9 @@ function useArbiChat(options = {}) {
|
|
|
476
510
|
});
|
|
477
511
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
478
512
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
479
|
-
const arbi =
|
|
480
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
481
|
-
const ordinaryHistory =
|
|
513
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
514
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkUTZZMUHI_cjs.useDocuments(workspaceId);
|
|
515
|
+
const ordinaryHistory = chunkUTZZMUHI_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
482
516
|
const agentHistory = useAgentChats(agentId);
|
|
483
517
|
const stored = React.useMemo(
|
|
484
518
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -493,7 +527,7 @@ function useArbiChat(options = {}) {
|
|
|
493
527
|
);
|
|
494
528
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
495
529
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
496
|
-
const query =
|
|
530
|
+
const query = chunkUTZZMUHI_cjs.useAssistantQuery();
|
|
497
531
|
const { mutateAsync } = query;
|
|
498
532
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
499
533
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -553,7 +587,7 @@ function useArbiChat(options = {}) {
|
|
|
553
587
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
554
588
|
) || active.messages.some((message) => message.status === "streaming");
|
|
555
589
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
556
|
-
const loaded =
|
|
590
|
+
const loaded = chunkUTZZMUHI_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
557
591
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
558
592
|
live: liveHistory
|
|
559
593
|
});
|
|
@@ -1222,7 +1256,7 @@ function useArbiWsContext() {
|
|
|
1222
1256
|
return ctx;
|
|
1223
1257
|
}
|
|
1224
1258
|
function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
1225
|
-
const arbi =
|
|
1259
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1226
1260
|
const subscribersRef = React.useRef(/* @__PURE__ */ new Set());
|
|
1227
1261
|
const setStatus = useArbiWsStore((s) => s.setStatus);
|
|
1228
1262
|
const applyTaskUpdate = useArbiWsStore((s) => s.applyTaskUpdate);
|
|
@@ -1334,14 +1368,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1334
1368
|
if (!workspaceId) return;
|
|
1335
1369
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1336
1370
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1337
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1338
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1371
|
+
void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1372
|
+
void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1339
1373
|
return;
|
|
1340
1374
|
}
|
|
1341
1375
|
if (client.isMessageType(msg, "task_update")) {
|
|
1342
1376
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1343
1377
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1344
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1378
|
+
void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1345
1379
|
}
|
|
1346
1380
|
}
|
|
1347
1381
|
});
|
|
@@ -1469,8 +1503,8 @@ function useShellWorkspaces(options) {
|
|
|
1469
1503
|
};
|
|
1470
1504
|
}
|
|
1471
1505
|
function useArbiShellWorkspaces(options = {}) {
|
|
1472
|
-
const arbi =
|
|
1473
|
-
const query =
|
|
1506
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1507
|
+
const query = chunkUTZZMUHI_cjs.useWorkspaces();
|
|
1474
1508
|
const { select, ...rest } = options;
|
|
1475
1509
|
const defaultSelect = React.useCallback(
|
|
1476
1510
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1486,12 +1520,12 @@ function useArbiShellWorkspaces(options = {}) {
|
|
|
1486
1520
|
}
|
|
1487
1521
|
function invalidateTagData(qc, workspaceId) {
|
|
1488
1522
|
return Promise.all([
|
|
1489
|
-
qc.invalidateQueries({ queryKey:
|
|
1490
|
-
qc.invalidateQueries({ queryKey:
|
|
1523
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1524
|
+
qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1491
1525
|
]);
|
|
1492
1526
|
}
|
|
1493
1527
|
function useInvalidateTagData() {
|
|
1494
|
-
const arbi =
|
|
1528
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1495
1529
|
const qc = reactQuery.useQueryClient();
|
|
1496
1530
|
return React.useCallback(() => {
|
|
1497
1531
|
const workspaceId = arbi.getWorkspaceId();
|
|
@@ -1499,16 +1533,16 @@ function useInvalidateTagData() {
|
|
|
1499
1533
|
}, [arbi, qc]);
|
|
1500
1534
|
}
|
|
1501
1535
|
function useTagKindSchema(kind, options) {
|
|
1502
|
-
const arbi =
|
|
1536
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1503
1537
|
const workspaceId = arbi.getWorkspaceId() ?? "";
|
|
1504
1538
|
return reactQuery.useQuery({
|
|
1505
|
-
queryKey:
|
|
1539
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1506
1540
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1507
1541
|
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId && arbi.hasWorkspace
|
|
1508
1542
|
});
|
|
1509
1543
|
}
|
|
1510
1544
|
function useUpdateTagKindSchema() {
|
|
1511
|
-
const arbi =
|
|
1545
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1512
1546
|
const qc = reactQuery.useQueryClient();
|
|
1513
1547
|
return reactQuery.useMutation({
|
|
1514
1548
|
mutationFn: ({
|
|
@@ -1518,13 +1552,13 @@ function useUpdateTagKindSchema() {
|
|
|
1518
1552
|
onSuccess: (schema) => {
|
|
1519
1553
|
const workspaceId = arbi.getWorkspaceId();
|
|
1520
1554
|
if (!workspaceId) return;
|
|
1521
|
-
qc.setQueryData(
|
|
1555
|
+
qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1522
1556
|
return invalidateTagData(qc, workspaceId);
|
|
1523
1557
|
}
|
|
1524
1558
|
});
|
|
1525
1559
|
}
|
|
1526
1560
|
function useSetTagValues() {
|
|
1527
|
-
const arbi =
|
|
1561
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1528
1562
|
const qc = reactQuery.useQueryClient();
|
|
1529
1563
|
return reactQuery.useMutation({
|
|
1530
1564
|
mutationFn: ({
|
|
@@ -1535,29 +1569,29 @@ function useSetTagValues() {
|
|
|
1535
1569
|
});
|
|
1536
1570
|
}
|
|
1537
1571
|
function useFilteredProjects(filters, options) {
|
|
1538
|
-
const arbi =
|
|
1572
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1539
1573
|
return reactQuery.useQuery({
|
|
1540
|
-
queryKey:
|
|
1574
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1541
1575
|
queryFn: () => arbi.projects.list(filters),
|
|
1542
1576
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1543
1577
|
});
|
|
1544
1578
|
}
|
|
1545
1579
|
function useUpdateProjectFields() {
|
|
1546
|
-
const arbi =
|
|
1580
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1547
1581
|
const qc = reactQuery.useQueryClient();
|
|
1548
1582
|
return reactQuery.useMutation({
|
|
1549
1583
|
mutationFn: ({
|
|
1550
1584
|
projectExtId,
|
|
1551
1585
|
patch
|
|
1552
1586
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1553
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1587
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.projects() })
|
|
1554
1588
|
});
|
|
1555
1589
|
}
|
|
1556
1590
|
function useProjectEvents(projectExtId, options) {
|
|
1557
|
-
const arbi =
|
|
1591
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1558
1592
|
return reactQuery.useQuery({
|
|
1559
1593
|
queryKey: [
|
|
1560
|
-
...
|
|
1594
|
+
...chunkUTZZMUHI_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1561
1595
|
options?.kind ?? "all",
|
|
1562
1596
|
options?.limit ?? "default"
|
|
1563
1597
|
],
|
|
@@ -1566,26 +1600,26 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1566
1600
|
});
|
|
1567
1601
|
}
|
|
1568
1602
|
function useConversationUsage(conversationId, options) {
|
|
1569
|
-
const arbi =
|
|
1603
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1570
1604
|
return reactQuery.useQuery({
|
|
1571
|
-
queryKey:
|
|
1605
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1572
1606
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1573
1607
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1574
1608
|
refetchInterval: options?.live ? 1e4 : false
|
|
1575
1609
|
});
|
|
1576
1610
|
}
|
|
1577
1611
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1578
|
-
const arbi =
|
|
1612
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1579
1613
|
return reactQuery.useQuery({
|
|
1580
|
-
queryKey:
|
|
1614
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1581
1615
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1582
1616
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1583
1617
|
});
|
|
1584
1618
|
}
|
|
1585
1619
|
function useContacts(options) {
|
|
1586
|
-
const arbi =
|
|
1620
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1587
1621
|
return reactQuery.useQuery({
|
|
1588
|
-
queryKey:
|
|
1622
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.contacts(),
|
|
1589
1623
|
queryFn: () => arbi.contacts.list(),
|
|
1590
1624
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1591
1625
|
});
|
|
@@ -1600,10 +1634,10 @@ function usePendingContacts(options) {
|
|
|
1600
1634
|
}
|
|
1601
1635
|
function useInvalidateContacts() {
|
|
1602
1636
|
const qc = reactQuery.useQueryClient();
|
|
1603
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1637
|
+
return () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.contacts() });
|
|
1604
1638
|
}
|
|
1605
1639
|
function useInviteContacts() {
|
|
1606
|
-
const arbi =
|
|
1640
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1607
1641
|
const invalidate = useInvalidateContacts();
|
|
1608
1642
|
return reactQuery.useMutation({
|
|
1609
1643
|
mutationFn: (emails) => arbi.contacts.invite(emails),
|
|
@@ -1611,7 +1645,7 @@ function useInviteContacts() {
|
|
|
1611
1645
|
});
|
|
1612
1646
|
}
|
|
1613
1647
|
function useCreateContact() {
|
|
1614
|
-
const arbi =
|
|
1648
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1615
1649
|
const invalidate = useInvalidateContacts();
|
|
1616
1650
|
return reactQuery.useMutation({
|
|
1617
1651
|
mutationFn: (body) => arbi.contacts.create(body),
|
|
@@ -1619,7 +1653,7 @@ function useCreateContact() {
|
|
|
1619
1653
|
});
|
|
1620
1654
|
}
|
|
1621
1655
|
function useUpdateContact() {
|
|
1622
|
-
const arbi =
|
|
1656
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1623
1657
|
const invalidate = useInvalidateContacts();
|
|
1624
1658
|
return reactQuery.useMutation({
|
|
1625
1659
|
mutationFn: ({ id, card }) => arbi.contacts.update(id, card),
|
|
@@ -1627,7 +1661,7 @@ function useUpdateContact() {
|
|
|
1627
1661
|
});
|
|
1628
1662
|
}
|
|
1629
1663
|
function useDeleteContact() {
|
|
1630
|
-
const arbi =
|
|
1664
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1631
1665
|
const invalidate = useInvalidateContacts();
|
|
1632
1666
|
return reactQuery.useMutation({
|
|
1633
1667
|
mutationFn: (contactId) => arbi.contacts.delete(contactId),
|
|
@@ -1711,7 +1745,7 @@ function AccountClientProvider({
|
|
|
1711
1745
|
}
|
|
1712
1746
|
function useAccountClient() {
|
|
1713
1747
|
const provided = React.useContext(AccountClientContext);
|
|
1714
|
-
const arbi = React.useContext(
|
|
1748
|
+
const arbi = React.useContext(chunkR2MF7YCW_cjs.ArbiContext);
|
|
1715
1749
|
const fallback = React.useMemo(() => arbi ? arbiAccountClient(arbi) : null, [arbi]);
|
|
1716
1750
|
if (provided) return provided;
|
|
1717
1751
|
if (!arbi || !fallback) return NO_ACCOUNT;
|
|
@@ -1729,11 +1763,11 @@ function useProfile(options) {
|
|
|
1729
1763
|
const { client, enabled } = useAccountClient();
|
|
1730
1764
|
const qc = reactQuery.useQueryClient();
|
|
1731
1765
|
React.useEffect(
|
|
1732
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
1766
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
1733
1767
|
[client, qc]
|
|
1734
1768
|
);
|
|
1735
1769
|
return reactQuery.useQuery({
|
|
1736
|
-
queryKey:
|
|
1770
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.profile(),
|
|
1737
1771
|
queryFn: () => client.profile(),
|
|
1738
1772
|
enabled: (options?.enabled ?? true) && enabled,
|
|
1739
1773
|
staleTime: Infinity
|
|
@@ -1748,9 +1782,9 @@ function useUpdateProfile() {
|
|
|
1748
1782
|
return client.profile();
|
|
1749
1783
|
},
|
|
1750
1784
|
onSuccess: (profile) => {
|
|
1751
|
-
qc.setQueryData(
|
|
1752
|
-
void qc.invalidateQueries({ queryKey:
|
|
1753
|
-
return qc.invalidateQueries({ queryKey:
|
|
1785
|
+
qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.profile(), profile);
|
|
1786
|
+
void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.identity() });
|
|
1787
|
+
return qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workspaces() });
|
|
1754
1788
|
}
|
|
1755
1789
|
});
|
|
1756
1790
|
}
|
|
@@ -1833,7 +1867,7 @@ function useConfirmEmailChange() {
|
|
|
1833
1867
|
const qc = reactQuery.useQueryClient();
|
|
1834
1868
|
return reactQuery.useMutation({
|
|
1835
1869
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
1836
|
-
onSuccess: () => qc.setQueryData(
|
|
1870
|
+
onSuccess: () => qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.profile(), client.profile())
|
|
1837
1871
|
});
|
|
1838
1872
|
}
|
|
1839
1873
|
function useEmailChange({
|
|
@@ -1999,33 +2033,33 @@ function toNotificationPreferences(stored, keys) {
|
|
|
1999
2033
|
};
|
|
2000
2034
|
}
|
|
2001
2035
|
function useUserSettings(options) {
|
|
2002
|
-
const arbi =
|
|
2036
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2003
2037
|
return reactQuery.useQuery({
|
|
2004
|
-
queryKey:
|
|
2038
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(),
|
|
2005
2039
|
queryFn: () => arbi.settings.get(),
|
|
2006
2040
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2007
2041
|
});
|
|
2008
2042
|
}
|
|
2009
2043
|
function useNotificationPreferences(keys, options) {
|
|
2010
|
-
const arbi =
|
|
2044
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2011
2045
|
const qc = reactQuery.useQueryClient();
|
|
2012
2046
|
const settings = useUserSettings(options);
|
|
2013
2047
|
const stored = settings.data?.email_notifications;
|
|
2014
2048
|
const save = reactQuery.useMutation({
|
|
2015
2049
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2016
2050
|
onMutate: async (patch) => {
|
|
2017
|
-
await qc.cancelQueries({ queryKey:
|
|
2018
|
-
const previous = qc.getQueryData(
|
|
2051
|
+
await qc.cancelQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() });
|
|
2052
|
+
const previous = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings());
|
|
2019
2053
|
qc.setQueryData(
|
|
2020
|
-
|
|
2054
|
+
chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(),
|
|
2021
2055
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2022
2056
|
);
|
|
2023
2057
|
return { previous };
|
|
2024
2058
|
},
|
|
2025
2059
|
onError: (_err, _patch, context) => {
|
|
2026
|
-
qc.setQueryData(
|
|
2060
|
+
qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2027
2061
|
},
|
|
2028
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2062
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() })
|
|
2029
2063
|
});
|
|
2030
2064
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2031
2065
|
const setAll = React.useCallback(
|
|
@@ -2047,23 +2081,23 @@ function useNotificationPreferences(keys, options) {
|
|
|
2047
2081
|
};
|
|
2048
2082
|
}
|
|
2049
2083
|
function useRelevanceSave() {
|
|
2050
|
-
const arbi =
|
|
2084
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2051
2085
|
const qc = reactQuery.useQueryClient();
|
|
2052
2086
|
return reactQuery.useMutation({
|
|
2053
2087
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2054
2088
|
onMutate: async (patch) => {
|
|
2055
|
-
await qc.cancelQueries({ queryKey:
|
|
2056
|
-
const previous = qc.getQueryData(
|
|
2089
|
+
await qc.cancelQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() });
|
|
2090
|
+
const previous = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings());
|
|
2057
2091
|
qc.setQueryData(
|
|
2058
|
-
|
|
2092
|
+
chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(),
|
|
2059
2093
|
(old) => old ? { ...old, ...patch } : old
|
|
2060
2094
|
);
|
|
2061
2095
|
return { previous };
|
|
2062
2096
|
},
|
|
2063
2097
|
onError: (_err, _patch, context) => {
|
|
2064
|
-
qc.setQueryData(
|
|
2098
|
+
qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2065
2099
|
},
|
|
2066
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2100
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() })
|
|
2067
2101
|
});
|
|
2068
2102
|
}
|
|
2069
2103
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2074,7 +2108,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2074
2108
|
const setLevel = React.useCallback(
|
|
2075
2109
|
(next) => {
|
|
2076
2110
|
if (!workspaceId) return;
|
|
2077
|
-
const current = qc.getQueryData(
|
|
2111
|
+
const current = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2078
2112
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2079
2113
|
},
|
|
2080
2114
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2093,12 +2127,19 @@ function useFollowThread(conversationId, options) {
|
|
|
2093
2127
|
const save = useRelevanceSave();
|
|
2094
2128
|
const following = !!conversationId && !!settings.data?.followed_threads?.includes(conversationId);
|
|
2095
2129
|
const setFollowing = React.useCallback(
|
|
2096
|
-
(on) => {
|
|
2130
|
+
(on, callbacks) => {
|
|
2097
2131
|
if (!conversationId) return;
|
|
2098
|
-
const current = qc.getQueryData(
|
|
2099
|
-
save.mutate(
|
|
2100
|
-
|
|
2101
|
-
|
|
2132
|
+
const current = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2133
|
+
save.mutate(
|
|
2134
|
+
{
|
|
2135
|
+
followed_threads: browser.settings.withMembership(
|
|
2136
|
+
current?.followed_threads,
|
|
2137
|
+
conversationId,
|
|
2138
|
+
on
|
|
2139
|
+
)
|
|
2140
|
+
},
|
|
2141
|
+
callbacks
|
|
2142
|
+
);
|
|
2102
2143
|
},
|
|
2103
2144
|
[qc, save, settings.data, conversationId]
|
|
2104
2145
|
);
|
|
@@ -2113,7 +2154,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2113
2154
|
function useSessions(options) {
|
|
2114
2155
|
const { client, enabled } = useAccountClient();
|
|
2115
2156
|
return reactQuery.useQuery({
|
|
2116
|
-
queryKey:
|
|
2157
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.sessions(),
|
|
2117
2158
|
queryFn: () => client.listSessions(),
|
|
2118
2159
|
enabled: (options?.enabled ?? true) && enabled
|
|
2119
2160
|
});
|
|
@@ -2123,7 +2164,7 @@ function useTerminateSession() {
|
|
|
2123
2164
|
const qc = reactQuery.useQueryClient();
|
|
2124
2165
|
return reactQuery.useMutation({
|
|
2125
2166
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2126
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2167
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.sessions() })
|
|
2127
2168
|
});
|
|
2128
2169
|
}
|
|
2129
2170
|
function useSignOut() {
|
|
@@ -2266,7 +2307,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2266
2307
|
const apiRef = React.useRef(api);
|
|
2267
2308
|
apiRef.current = api;
|
|
2268
2309
|
const query = reactQuery.useQuery({
|
|
2269
|
-
queryKey:
|
|
2310
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.identity(),
|
|
2270
2311
|
queryFn: () => apiRef.current.status(),
|
|
2271
2312
|
enabled,
|
|
2272
2313
|
staleTime: 6e4
|
|
@@ -2284,7 +2325,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2284
2325
|
const lastVerified = React.useRef(void 0);
|
|
2285
2326
|
const apply = React.useCallback(
|
|
2286
2327
|
(next) => {
|
|
2287
|
-
qc.setQueryData(
|
|
2328
|
+
qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.identity(), next);
|
|
2288
2329
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2289
2330
|
onVerifiedChange?.(next.verified);
|
|
2290
2331
|
}
|
|
@@ -2479,12 +2520,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2479
2520
|
enabled,
|
|
2480
2521
|
formatPrice,
|
|
2481
2522
|
onVerifiedChange: (verified) => {
|
|
2482
|
-
void qc.invalidateQueries({ queryKey:
|
|
2523
|
+
void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.profile() });
|
|
2483
2524
|
onVerifiedChange?.(verified);
|
|
2484
2525
|
},
|
|
2485
2526
|
onNameAccepted: (name) => {
|
|
2486
|
-
void qc.invalidateQueries({ queryKey:
|
|
2487
|
-
void qc.invalidateQueries({ queryKey:
|
|
2527
|
+
void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.profile() });
|
|
2528
|
+
void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workspaces() });
|
|
2488
2529
|
onNameAccepted?.(name);
|
|
2489
2530
|
}
|
|
2490
2531
|
});
|
|
@@ -2494,7 +2535,7 @@ async function downloadRecoveryFile(params) {
|
|
|
2494
2535
|
...params,
|
|
2495
2536
|
origin: params.origin ?? window.location.origin
|
|
2496
2537
|
});
|
|
2497
|
-
|
|
2538
|
+
chunkTYUQFRHF_cjs.downloadBlob(new Blob([file.html], { type: "text/html" }), file.filename);
|
|
2498
2539
|
}
|
|
2499
2540
|
|
|
2500
2541
|
// src/mail/client.ts
|
|
@@ -2604,7 +2645,7 @@ function MailClientProvider({
|
|
|
2604
2645
|
}
|
|
2605
2646
|
function useMailClient() {
|
|
2606
2647
|
const provided = React.useContext(MailClientContext);
|
|
2607
|
-
const arbi = React.useContext(
|
|
2648
|
+
const arbi = React.useContext(chunkR2MF7YCW_cjs.ArbiContext);
|
|
2608
2649
|
const fallback = React.useMemo(() => arbi ? arbiMailClient(arbi) : null, [arbi]);
|
|
2609
2650
|
if (provided) return provided;
|
|
2610
2651
|
if (!arbi || !fallback) return NO_MAIL;
|
|
@@ -2902,7 +2943,7 @@ function useMailDraftReplaced(draftId, onReplaced) {
|
|
|
2902
2943
|
}, [draftId]);
|
|
2903
2944
|
}
|
|
2904
2945
|
function useWorkspaceDocs(workspaceId) {
|
|
2905
|
-
const { data: docs = [], isLoading, isError } =
|
|
2946
|
+
const { data: docs = [], isLoading, isError } = chunkUTZZMUHI_cjs.useDocuments(workspaceId);
|
|
2906
2947
|
const docIds = React.useMemo(
|
|
2907
2948
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
2908
2949
|
[docs]
|
|
@@ -2910,7 +2951,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
2910
2951
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
2911
2952
|
}
|
|
2912
2953
|
function useAiTask() {
|
|
2913
|
-
const mutation =
|
|
2954
|
+
const mutation = chunkUTZZMUHI_cjs.useAssistantQuery();
|
|
2914
2955
|
const [status, setStatus] = React.useState("idle");
|
|
2915
2956
|
const [text, setText] = React.useState("");
|
|
2916
2957
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -3000,7 +3041,7 @@ function useAiTask() {
|
|
|
3000
3041
|
};
|
|
3001
3042
|
}
|
|
3002
3043
|
function useSemanticSearch(docIds) {
|
|
3003
|
-
const arbi =
|
|
3044
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
3004
3045
|
const [query, setQuery] = React.useState("");
|
|
3005
3046
|
const mutation = reactQuery.useMutation({
|
|
3006
3047
|
mutationFn: async ({ query: q, mode }) => {
|
|
@@ -3530,8 +3571,8 @@ function DocumentReview({
|
|
|
3530
3571
|
onClose,
|
|
3531
3572
|
className
|
|
3532
3573
|
}) {
|
|
3533
|
-
const parsedQuery =
|
|
3534
|
-
const tagsQuery =
|
|
3574
|
+
const parsedQuery = chunkUTZZMUHI_cjs.useParsedDocument(docId, stage);
|
|
3575
|
+
const tagsQuery = chunkUTZZMUHI_cjs.useTags(workspaceId);
|
|
3535
3576
|
const tagNameById = React__default.default.useMemo(() => {
|
|
3536
3577
|
const map = /* @__PURE__ */ new Map();
|
|
3537
3578
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3762,7 +3803,7 @@ function SemanticSearch({
|
|
|
3762
3803
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
3763
3804
|
const [value, setValue] = React.useState("");
|
|
3764
3805
|
const [selected, setSelected] = React.useState(null);
|
|
3765
|
-
const { data: docs = [] } =
|
|
3806
|
+
const { data: docs = [] } = chunkUTZZMUHI_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
3766
3807
|
const docMap = React.useMemo(() => {
|
|
3767
3808
|
const map = /* @__PURE__ */ new Map();
|
|
3768
3809
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -4864,7 +4905,7 @@ function ActivityFeed({
|
|
|
4864
4905
|
enabled,
|
|
4865
4906
|
"data-testid": testId = "activity-feed"
|
|
4866
4907
|
}) {
|
|
4867
|
-
const { data, isLoading, isError } =
|
|
4908
|
+
const { data, isLoading, isError } = chunkUTZZMUHI_cjs.useActivity({ limit, enabled });
|
|
4868
4909
|
if (isLoading) {
|
|
4869
4910
|
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: [
|
|
4870
4911
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -4914,7 +4955,7 @@ var workTypes = [
|
|
|
4914
4955
|
"mail_draft_ready"
|
|
4915
4956
|
];
|
|
4916
4957
|
function useWorkNotifications(options) {
|
|
4917
|
-
const arbi =
|
|
4958
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
4918
4959
|
const queries = reactQuery.useQueryClient();
|
|
4919
4960
|
const queryKey = ["work-notifications", options.apiUrl, options.userId];
|
|
4920
4961
|
const query = reactQuery.useQuery({
|
|
@@ -5010,7 +5051,7 @@ function toConversation(loaded, myExtId, pending) {
|
|
|
5010
5051
|
};
|
|
5011
5052
|
}
|
|
5012
5053
|
function useDirectMessages(options) {
|
|
5013
|
-
const arbi =
|
|
5054
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
5014
5055
|
const queryClient = reactQuery.useQueryClient();
|
|
5015
5056
|
const enabled = options?.enabled ?? arbi.isLoggedIn;
|
|
5016
5057
|
const query = reactQuery.useQuery({
|
|
@@ -5022,7 +5063,7 @@ function useDirectMessages(options) {
|
|
|
5022
5063
|
enabled
|
|
5023
5064
|
});
|
|
5024
5065
|
const contactsQuery = reactQuery.useQuery({
|
|
5025
|
-
queryKey:
|
|
5066
|
+
queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.contacts(),
|
|
5026
5067
|
queryFn: () => arbi.contacts.list(),
|
|
5027
5068
|
enabled
|
|
5028
5069
|
});
|
|
@@ -6291,10 +6332,10 @@ function DocumentTable({
|
|
|
6291
6332
|
extraColumns,
|
|
6292
6333
|
className
|
|
6293
6334
|
}) {
|
|
6294
|
-
const query =
|
|
6335
|
+
const query = chunkUTZZMUHI_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6295
6336
|
const rows = documents ?? query.data ?? [];
|
|
6296
6337
|
const isLoading = !documents && query.isLoading;
|
|
6297
|
-
const tagsQuery =
|
|
6338
|
+
const tagsQuery = chunkUTZZMUHI_cjs.useTags(workspaceId);
|
|
6298
6339
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6299
6340
|
const map = /* @__PURE__ */ new Map();
|
|
6300
6341
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6470,12 +6511,12 @@ function DocumentCardMenu({
|
|
|
6470
6511
|
canDelete = true,
|
|
6471
6512
|
testId = "document-card-menu"
|
|
6472
6513
|
}) {
|
|
6473
|
-
const arbi =
|
|
6514
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
6474
6515
|
const queryClient = reactQuery.useQueryClient();
|
|
6475
6516
|
const invalidateDocuments = () => {
|
|
6476
6517
|
const workspaceId = arbi.getWorkspaceId();
|
|
6477
6518
|
if (workspaceId) {
|
|
6478
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6519
|
+
void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
6479
6520
|
}
|
|
6480
6521
|
};
|
|
6481
6522
|
const download = reactQuery.useMutation({
|
|
@@ -6574,10 +6615,10 @@ function DocumentGallery({
|
|
|
6574
6615
|
minTileWidth = 148,
|
|
6575
6616
|
className
|
|
6576
6617
|
}) {
|
|
6577
|
-
const query =
|
|
6618
|
+
const query = chunkUTZZMUHI_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6578
6619
|
const rows = documents ?? query.data ?? [];
|
|
6579
6620
|
const isLoading = !documents && query.isLoading;
|
|
6580
|
-
const tagsQuery =
|
|
6621
|
+
const tagsQuery = chunkUTZZMUHI_cjs.useTags(workspaceId);
|
|
6581
6622
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6582
6623
|
const map = /* @__PURE__ */ new Map();
|
|
6583
6624
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6589,7 +6630,7 @@ function DocumentGallery({
|
|
|
6589
6630
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
6590
6631
|
[rows]
|
|
6591
6632
|
);
|
|
6592
|
-
const thumbsQuery =
|
|
6633
|
+
const thumbsQuery = chunkUTZZMUHI_cjs.useThumbnails(docIds);
|
|
6593
6634
|
const thumbs = thumbsQuery.data ?? {};
|
|
6594
6635
|
const session = useArbiSessionStore();
|
|
6595
6636
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -6614,7 +6655,7 @@ function DocumentGallery({
|
|
|
6614
6655
|
},
|
|
6615
6656
|
[onOpenDocument, session]
|
|
6616
6657
|
);
|
|
6617
|
-
const arbi =
|
|
6658
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
6618
6659
|
const queryClient = reactQuery.useQueryClient();
|
|
6619
6660
|
const [renamingId, setRenamingId] = React__default.default.useState(null);
|
|
6620
6661
|
const rename = reactQuery.useMutation({
|
|
@@ -6625,7 +6666,7 @@ function DocumentGallery({
|
|
|
6625
6666
|
setRenamingId(null);
|
|
6626
6667
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
6627
6668
|
if (activeWorkspace) {
|
|
6628
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6669
|
+
void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
6629
6670
|
}
|
|
6630
6671
|
}
|
|
6631
6672
|
});
|
|
@@ -7243,115 +7284,115 @@ function hasVideoTrack(blob) {
|
|
|
7243
7284
|
|
|
7244
7285
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
7245
7286
|
enumerable: true,
|
|
7246
|
-
get: function () { return
|
|
7287
|
+
get: function () { return chunkUTZZMUHI_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
7247
7288
|
});
|
|
7248
7289
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
7249
7290
|
enumerable: true,
|
|
7250
|
-
get: function () { return
|
|
7291
|
+
get: function () { return chunkUTZZMUHI_cjs.arbiQueryKeys; }
|
|
7251
7292
|
});
|
|
7252
7293
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
7253
7294
|
enumerable: true,
|
|
7254
|
-
get: function () { return
|
|
7295
|
+
get: function () { return chunkUTZZMUHI_cjs.isUsageMetered; }
|
|
7255
7296
|
});
|
|
7256
7297
|
Object.defineProperty(exports, "useActivity", {
|
|
7257
7298
|
enumerable: true,
|
|
7258
|
-
get: function () { return
|
|
7299
|
+
get: function () { return chunkUTZZMUHI_cjs.useActivity; }
|
|
7259
7300
|
});
|
|
7260
7301
|
Object.defineProperty(exports, "useAgents", {
|
|
7261
7302
|
enumerable: true,
|
|
7262
|
-
get: function () { return
|
|
7303
|
+
get: function () { return chunkUTZZMUHI_cjs.useAgents; }
|
|
7263
7304
|
});
|
|
7264
7305
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
7265
7306
|
enumerable: true,
|
|
7266
|
-
get: function () { return
|
|
7307
|
+
get: function () { return chunkUTZZMUHI_cjs.useAssistantQuery; }
|
|
7267
7308
|
});
|
|
7268
7309
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
7269
7310
|
enumerable: true,
|
|
7270
|
-
get: function () { return
|
|
7311
|
+
get: function () { return chunkUTZZMUHI_cjs.useCanCreateProjects; }
|
|
7271
7312
|
});
|
|
7272
7313
|
Object.defineProperty(exports, "useConfigs", {
|
|
7273
7314
|
enumerable: true,
|
|
7274
|
-
get: function () { return
|
|
7315
|
+
get: function () { return chunkUTZZMUHI_cjs.useConfigs; }
|
|
7275
7316
|
});
|
|
7276
7317
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
7277
7318
|
enumerable: true,
|
|
7278
|
-
get: function () { return
|
|
7319
|
+
get: function () { return chunkUTZZMUHI_cjs.useConversationThreads; }
|
|
7279
7320
|
});
|
|
7280
7321
|
Object.defineProperty(exports, "useConversations", {
|
|
7281
7322
|
enumerable: true,
|
|
7282
|
-
get: function () { return
|
|
7323
|
+
get: function () { return chunkUTZZMUHI_cjs.useConversations; }
|
|
7283
7324
|
});
|
|
7284
7325
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
7285
7326
|
enumerable: true,
|
|
7286
|
-
get: function () { return
|
|
7327
|
+
get: function () { return chunkUTZZMUHI_cjs.useCurrentUser; }
|
|
7287
7328
|
});
|
|
7288
7329
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
7289
7330
|
enumerable: true,
|
|
7290
|
-
get: function () { return
|
|
7331
|
+
get: function () { return chunkUTZZMUHI_cjs.useDeleteAgents; }
|
|
7291
7332
|
});
|
|
7292
7333
|
Object.defineProperty(exports, "useDocuments", {
|
|
7293
7334
|
enumerable: true,
|
|
7294
|
-
get: function () { return
|
|
7335
|
+
get: function () { return chunkUTZZMUHI_cjs.useDocuments; }
|
|
7295
7336
|
});
|
|
7296
7337
|
Object.defineProperty(exports, "useFacts", {
|
|
7297
7338
|
enumerable: true,
|
|
7298
|
-
get: function () { return
|
|
7339
|
+
get: function () { return chunkUTZZMUHI_cjs.useFacts; }
|
|
7299
7340
|
});
|
|
7300
7341
|
Object.defineProperty(exports, "useFirmPool", {
|
|
7301
7342
|
enumerable: true,
|
|
7302
|
-
get: function () { return
|
|
7343
|
+
get: function () { return chunkUTZZMUHI_cjs.useFirmPool; }
|
|
7303
7344
|
});
|
|
7304
7345
|
Object.defineProperty(exports, "useHealth", {
|
|
7305
7346
|
enumerable: true,
|
|
7306
|
-
get: function () { return
|
|
7347
|
+
get: function () { return chunkUTZZMUHI_cjs.useHealth; }
|
|
7307
7348
|
});
|
|
7308
7349
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
7309
7350
|
enumerable: true,
|
|
7310
|
-
get: function () { return
|
|
7351
|
+
get: function () { return chunkUTZZMUHI_cjs.useParsedDocument; }
|
|
7311
7352
|
});
|
|
7312
7353
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
7313
7354
|
enumerable: true,
|
|
7314
|
-
get: function () { return
|
|
7355
|
+
get: function () { return chunkUTZZMUHI_cjs.useProjectInvoices; }
|
|
7315
7356
|
});
|
|
7316
7357
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
7317
7358
|
enumerable: true,
|
|
7318
|
-
get: function () { return
|
|
7359
|
+
get: function () { return chunkUTZZMUHI_cjs.useProjectUsage; }
|
|
7319
7360
|
});
|
|
7320
7361
|
Object.defineProperty(exports, "useProjects", {
|
|
7321
7362
|
enumerable: true,
|
|
7322
|
-
get: function () { return
|
|
7363
|
+
get: function () { return chunkUTZZMUHI_cjs.useProjects; }
|
|
7323
7364
|
});
|
|
7324
7365
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
7325
7366
|
enumerable: true,
|
|
7326
|
-
get: function () { return
|
|
7367
|
+
get: function () { return chunkUTZZMUHI_cjs.useProjectsUsage; }
|
|
7327
7368
|
});
|
|
7328
7369
|
Object.defineProperty(exports, "useTags", {
|
|
7329
7370
|
enumerable: true,
|
|
7330
|
-
get: function () { return
|
|
7371
|
+
get: function () { return chunkUTZZMUHI_cjs.useTags; }
|
|
7331
7372
|
});
|
|
7332
7373
|
Object.defineProperty(exports, "useThumbnails", {
|
|
7333
7374
|
enumerable: true,
|
|
7334
|
-
get: function () { return
|
|
7375
|
+
get: function () { return chunkUTZZMUHI_cjs.useThumbnails; }
|
|
7335
7376
|
});
|
|
7336
7377
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
7337
7378
|
enumerable: true,
|
|
7338
|
-
get: function () { return
|
|
7379
|
+
get: function () { return chunkUTZZMUHI_cjs.useTopUpFirmPool; }
|
|
7339
7380
|
});
|
|
7340
7381
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
7341
7382
|
enumerable: true,
|
|
7342
|
-
get: function () { return
|
|
7383
|
+
get: function () { return chunkUTZZMUHI_cjs.useUserUsageToday; }
|
|
7343
7384
|
});
|
|
7344
7385
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
7345
7386
|
enumerable: true,
|
|
7346
|
-
get: function () { return
|
|
7387
|
+
get: function () { return chunkUTZZMUHI_cjs.useWorkspaceActivity; }
|
|
7347
7388
|
});
|
|
7348
7389
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
7349
7390
|
enumerable: true,
|
|
7350
|
-
get: function () { return
|
|
7391
|
+
get: function () { return chunkUTZZMUHI_cjs.useWorkspaceUsers; }
|
|
7351
7392
|
});
|
|
7352
7393
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
7353
7394
|
enumerable: true,
|
|
7354
|
-
get: function () { return
|
|
7395
|
+
get: function () { return chunkUTZZMUHI_cjs.useWorkspaces; }
|
|
7355
7396
|
});
|
|
7356
7397
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7357
7398
|
enumerable: true,
|
|
@@ -8163,15 +8204,15 @@ Object.defineProperty(exports, "cn", {
|
|
|
8163
8204
|
});
|
|
8164
8205
|
Object.defineProperty(exports, "ArbiProvider", {
|
|
8165
8206
|
enumerable: true,
|
|
8166
|
-
get: function () { return
|
|
8207
|
+
get: function () { return chunkR2MF7YCW_cjs.ArbiProvider; }
|
|
8167
8208
|
});
|
|
8168
8209
|
Object.defineProperty(exports, "useArbi", {
|
|
8169
8210
|
enumerable: true,
|
|
8170
|
-
get: function () { return
|
|
8211
|
+
get: function () { return chunkR2MF7YCW_cjs.useArbi; }
|
|
8171
8212
|
});
|
|
8172
8213
|
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
8173
8214
|
enumerable: true,
|
|
8174
|
-
get: function () { return
|
|
8215
|
+
get: function () { return chunkR2MF7YCW_cjs.useDeploymentDomain; }
|
|
8175
8216
|
});
|
|
8176
8217
|
Object.defineProperty(exports, "Arbi", {
|
|
8177
8218
|
enumerable: true,
|
|
@@ -8321,6 +8362,7 @@ exports.useArbiWsStatus = useArbiWsStatus;
|
|
|
8321
8362
|
exports.useArbiWsStore = useArbiWsStore;
|
|
8322
8363
|
exports.useArbiWsTask = useArbiWsTask;
|
|
8323
8364
|
exports.useArbiWsTasks = useArbiWsTasks;
|
|
8365
|
+
exports.useAuthorizeLimits = useAuthorizeLimits;
|
|
8324
8366
|
exports.useAvatarCrop = useAvatarCrop;
|
|
8325
8367
|
exports.useCameraStream = useCameraStream;
|
|
8326
8368
|
exports.useClaimNativeAlias = useClaimNativeAlias;
|
|
@@ -8346,6 +8388,7 @@ exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
|
8346
8388
|
exports.useEmailChange = useEmailChange;
|
|
8347
8389
|
exports.useFilteredProjects = useFilteredProjects;
|
|
8348
8390
|
exports.useFollowThread = useFollowThread;
|
|
8391
|
+
exports.useGenerateAgentAvatar = useGenerateAgentAvatar;
|
|
8349
8392
|
exports.useGrantAgentAccess = useGrantAgentAccess;
|
|
8350
8393
|
exports.useIdentityVerification = useIdentityVerification;
|
|
8351
8394
|
exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
|
|
@@ -8364,6 +8407,7 @@ exports.useMailOnline = useMailOnline;
|
|
|
8364
8407
|
exports.useMailPolicy = useMailPolicy;
|
|
8365
8408
|
exports.useMailProjects = useMailProjects;
|
|
8366
8409
|
exports.useMailUnlock = useMailUnlock;
|
|
8410
|
+
exports.useMcpTools = useMcpTools;
|
|
8367
8411
|
exports.useNameEditor = useNameEditor;
|
|
8368
8412
|
exports.useNotificationPreferences = useNotificationPreferences;
|
|
8369
8413
|
exports.usePasswordChange = usePasswordChange;
|