@arbidocs/react 0.4.137 → 0.4.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +7 -7
- package/dist/artifacts/index.js +2 -2
- package/dist/{chunk-6PPWZILQ.cjs → chunk-KLPY2HUC.cjs} +92 -15
- package/dist/chunk-KLPY2HUC.cjs.map +1 -0
- package/dist/{chunk-A3EHBTBV.js → chunk-KMMBMYJQ.js} +4 -2
- package/dist/chunk-KMMBMYJQ.js.map +1 -0
- package/dist/{chunk-PPRKQK4P.js → chunk-MFMJHBJR.js} +90 -16
- package/dist/chunk-MFMJHBJR.js.map +1 -0
- package/dist/{chunk-G7NSGLUA.cjs → chunk-Q2QUWZYX.cjs} +4 -2
- package/dist/chunk-Q2QUWZYX.cjs.map +1 -0
- package/dist/{index-D8NvRj3J.d.ts → index-3E0neHf_.d.cts} +55 -19
- package/dist/{index-D8NvRj3J.d.cts → index-3E0neHf_.d.ts} +55 -19
- package/dist/index.cjs +246 -201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -3
- package/dist/index.d.ts +107 -3
- package/dist/index.js +40 -10
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +15 -7
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-6PPWZILQ.cjs.map +0 -1
- package/dist/chunk-A3EHBTBV.js.map +0 -1
- package/dist/chunk-G7NSGLUA.cjs.map +0 -1
- package/dist/chunk-PPRKQK4P.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQ2QUWZYX_cjs = require('./chunk-Q2QUWZYX.cjs');
|
|
4
|
+
var chunk65WT5PHA_cjs = require('./chunk-65WT5PHA.cjs');
|
|
5
|
+
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
4
6
|
var chunkTYUQFRHF_cjs = require('./chunk-TYUQFRHF.cjs');
|
|
5
7
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
6
8
|
require('./chunk-VOFNX4P6.cjs');
|
|
7
|
-
var chunk6PPWZILQ_cjs = require('./chunk-6PPWZILQ.cjs');
|
|
8
|
-
var chunk65WT5PHA_cjs = require('./chunk-65WT5PHA.cjs');
|
|
9
|
-
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
10
9
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
11
10
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
11
|
+
var chunkKLPY2HUC_cjs = require('./chunk-KLPY2HUC.cjs');
|
|
12
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');
|
|
@@ -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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: [...chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_cjs.arbiQueryKeys.workflows() }),
|
|
169
|
+
qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_cjs.arbiQueryKeys.configs() }),
|
|
240
|
+
qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: chunkQ2QUWZYX_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: [...chunkQ2QUWZYX_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,
|
|
@@ -313,7 +313,8 @@ function useUploadSkillFiles() {
|
|
|
313
313
|
for (const entry of entries) {
|
|
314
314
|
const result = await arbi.documents.uploadFile(entry.content, entry.fileName, {
|
|
315
315
|
folder: entry.folder,
|
|
316
|
-
wpType: "skill"
|
|
316
|
+
wpType: "skill",
|
|
317
|
+
shared: entry.shared ?? false
|
|
317
318
|
});
|
|
318
319
|
if (result.skipped?.length)
|
|
319
320
|
throw new Error(
|
|
@@ -323,7 +324,36 @@ function useUploadSkillFiles() {
|
|
|
323
324
|
}
|
|
324
325
|
return results;
|
|
325
326
|
},
|
|
326
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
327
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.skills() })
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
function useSkillSource(docExtId, options) {
|
|
331
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
332
|
+
return reactQuery.useQuery({
|
|
333
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.skillSource(docExtId ?? ""),
|
|
334
|
+
queryFn: async () => {
|
|
335
|
+
const response = await arbi.documents.download(docExtId);
|
|
336
|
+
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
337
|
+
return response.text();
|
|
338
|
+
},
|
|
339
|
+
enabled: (options?.enabled ?? true) && !!docExtId && arbi.isLoggedIn,
|
|
340
|
+
staleTime: 5 * 6e4
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
function useDeleteSkill() {
|
|
344
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
345
|
+
const qc = reactQuery.useQueryClient();
|
|
346
|
+
return reactQuery.useMutation({
|
|
347
|
+
mutationFn: (docExtId) => arbi.documents.delete([docExtId]),
|
|
348
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.skills() })
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
function useSetSkillVisibility() {
|
|
352
|
+
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
353
|
+
const qc = reactQuery.useQueryClient();
|
|
354
|
+
return reactQuery.useMutation({
|
|
355
|
+
mutationFn: ({ docExtId, visibility }) => arbi.documents.update([{ external_id: docExtId, shared: visibility === "global" }]),
|
|
356
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.skills() })
|
|
327
357
|
});
|
|
328
358
|
}
|
|
329
359
|
function useStartWorkQuery() {
|
|
@@ -350,13 +380,13 @@ function useStartWorkQuery() {
|
|
|
350
380
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
351
381
|
);
|
|
352
382
|
},
|
|
353
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
383
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.allConversations() })
|
|
354
384
|
});
|
|
355
385
|
}
|
|
356
386
|
function useAgentSession(agentId, options) {
|
|
357
387
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
358
388
|
return reactQuery.useQuery({
|
|
359
|
-
queryKey:
|
|
389
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
|
|
360
390
|
queryFn: () => arbi.agents.getSession(agentId),
|
|
361
391
|
enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
|
|
362
392
|
refetchInterval: 5e3
|
|
@@ -365,7 +395,7 @@ function useAgentSession(agentId, options) {
|
|
|
365
395
|
function useAgentChats(agentId) {
|
|
366
396
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
367
397
|
return reactQuery.useQuery({
|
|
368
|
-
queryKey:
|
|
398
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
|
|
369
399
|
queryFn: () => arbi.agents.listChats(agentId),
|
|
370
400
|
enabled: !!agentId && arbi.isLoggedIn,
|
|
371
401
|
refetchInterval: 5e3
|
|
@@ -374,10 +404,10 @@ function useAgentChats(agentId) {
|
|
|
374
404
|
function refreshAgentSession(qc, agentId) {
|
|
375
405
|
return Promise.all(
|
|
376
406
|
[
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
407
|
+
chunkQ2QUWZYX_cjs.arbiQueryKeys.agentSession(agentId),
|
|
408
|
+
chunkQ2QUWZYX_cjs.arbiQueryKeys.agentWorkspaces(agentId),
|
|
409
|
+
chunkQ2QUWZYX_cjs.arbiQueryKeys.agentChats(agentId),
|
|
410
|
+
chunkQ2QUWZYX_cjs.arbiQueryKeys.sessions()
|
|
381
411
|
].map((queryKey) => qc.invalidateQueries({ queryKey }))
|
|
382
412
|
);
|
|
383
413
|
}
|
|
@@ -524,8 +554,8 @@ function useArbiChat(options = {}) {
|
|
|
524
554
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
525
555
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
526
556
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
527
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
528
|
-
const ordinaryHistory =
|
|
557
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkQ2QUWZYX_cjs.useDocuments(workspaceId);
|
|
558
|
+
const ordinaryHistory = chunkQ2QUWZYX_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
529
559
|
const agentHistory = useAgentChats(agentId);
|
|
530
560
|
const stored = React.useMemo(
|
|
531
561
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -540,7 +570,7 @@ function useArbiChat(options = {}) {
|
|
|
540
570
|
);
|
|
541
571
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
542
572
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
543
|
-
const query =
|
|
573
|
+
const query = chunkQ2QUWZYX_cjs.useAssistantQuery();
|
|
544
574
|
const { mutateAsync } = query;
|
|
545
575
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
546
576
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -600,7 +630,7 @@ function useArbiChat(options = {}) {
|
|
|
600
630
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
601
631
|
) || active.messages.some((message) => message.status === "streaming");
|
|
602
632
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
603
|
-
const loaded =
|
|
633
|
+
const loaded = chunkQ2QUWZYX_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
604
634
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
605
635
|
live: liveHistory
|
|
606
636
|
});
|
|
@@ -1381,14 +1411,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1381
1411
|
if (!workspaceId) return;
|
|
1382
1412
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1383
1413
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1384
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1385
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1414
|
+
void queryClient.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1415
|
+
void queryClient.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1386
1416
|
return;
|
|
1387
1417
|
}
|
|
1388
1418
|
if (client.isMessageType(msg, "task_update")) {
|
|
1389
1419
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1390
1420
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1391
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1421
|
+
void queryClient.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1392
1422
|
}
|
|
1393
1423
|
}
|
|
1394
1424
|
});
|
|
@@ -1517,7 +1547,7 @@ function useShellWorkspaces(options) {
|
|
|
1517
1547
|
}
|
|
1518
1548
|
function useArbiShellWorkspaces(options = {}) {
|
|
1519
1549
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1520
|
-
const query =
|
|
1550
|
+
const query = chunkQ2QUWZYX_cjs.useWorkspaces();
|
|
1521
1551
|
const { select, ...rest } = options;
|
|
1522
1552
|
const defaultSelect = React.useCallback(
|
|
1523
1553
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1536,7 +1566,7 @@ function useFacts(workspaceId, options) {
|
|
|
1536
1566
|
const { enabled = true, ...filter } = options ?? {};
|
|
1537
1567
|
const workspace = workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : "");
|
|
1538
1568
|
return reactQuery.useQuery({
|
|
1539
|
-
queryKey: [...
|
|
1569
|
+
queryKey: [...chunkQ2QUWZYX_cjs.arbiQueryKeys.facts(workspace), filter],
|
|
1540
1570
|
queryFn: () => arbi.facts.list(filter),
|
|
1541
1571
|
enabled: enabled && !!workspace && arbi.hasWorkspace,
|
|
1542
1572
|
staleTime: 3e4
|
|
@@ -1544,7 +1574,7 @@ function useFacts(workspaceId, options) {
|
|
|
1544
1574
|
}
|
|
1545
1575
|
function useRefreshFacts() {
|
|
1546
1576
|
const qc = reactQuery.useQueryClient();
|
|
1547
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1577
|
+
return () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.allFacts() });
|
|
1548
1578
|
}
|
|
1549
1579
|
function useCreateFact() {
|
|
1550
1580
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1589,8 +1619,8 @@ function openWorkspaceId(arbi) {
|
|
|
1589
1619
|
}
|
|
1590
1620
|
function invalidateTagData(qc, workspaceId) {
|
|
1591
1621
|
return Promise.all([
|
|
1592
|
-
qc.invalidateQueries({ queryKey:
|
|
1593
|
-
qc.invalidateQueries({ queryKey:
|
|
1622
|
+
qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1623
|
+
qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1594
1624
|
]);
|
|
1595
1625
|
}
|
|
1596
1626
|
function useInvalidateTagData() {
|
|
@@ -1605,7 +1635,7 @@ function useTagKindSchema(kind, options) {
|
|
|
1605
1635
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1606
1636
|
const workspaceId = openWorkspaceId(arbi) ?? "";
|
|
1607
1637
|
return reactQuery.useQuery({
|
|
1608
|
-
queryKey:
|
|
1638
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
|
|
1609
1639
|
queryFn: () => arbi.tagKinds.get(kind),
|
|
1610
1640
|
enabled: (options?.enabled ?? true) && !!kind && !!workspaceId
|
|
1611
1641
|
});
|
|
@@ -1614,7 +1644,7 @@ function useUpdateTagKindSchema() {
|
|
|
1614
1644
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1615
1645
|
const qc = reactQuery.useQueryClient();
|
|
1616
1646
|
return reactQuery.useMutation({
|
|
1617
|
-
mutationKey:
|
|
1647
|
+
mutationKey: chunkQ2QUWZYX_cjs.arbiMutationKeys.updateTagKindSchema(),
|
|
1618
1648
|
mutationFn: ({
|
|
1619
1649
|
kind,
|
|
1620
1650
|
fields
|
|
@@ -1622,7 +1652,7 @@ function useUpdateTagKindSchema() {
|
|
|
1622
1652
|
onSuccess: (schema) => {
|
|
1623
1653
|
const workspaceId = openWorkspaceId(arbi);
|
|
1624
1654
|
if (!workspaceId) return;
|
|
1625
|
-
qc.setQueryData(
|
|
1655
|
+
qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
|
|
1626
1656
|
return invalidateTagData(qc, workspaceId);
|
|
1627
1657
|
}
|
|
1628
1658
|
});
|
|
@@ -1641,7 +1671,7 @@ function useSetTagValues() {
|
|
|
1641
1671
|
function useFilteredProjects(filters, options) {
|
|
1642
1672
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1643
1673
|
return reactQuery.useQuery({
|
|
1644
|
-
queryKey:
|
|
1674
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1645
1675
|
queryFn: () => arbi.projects.list(filters),
|
|
1646
1676
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1647
1677
|
});
|
|
@@ -1654,14 +1684,14 @@ function useUpdateProjectFields() {
|
|
|
1654
1684
|
projectExtId,
|
|
1655
1685
|
patch
|
|
1656
1686
|
}) => arbi.projects.update(projectExtId, patch),
|
|
1657
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1687
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.projects() })
|
|
1658
1688
|
});
|
|
1659
1689
|
}
|
|
1660
1690
|
function useProjectEvents(projectExtId, options) {
|
|
1661
1691
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1662
1692
|
return reactQuery.useQuery({
|
|
1663
1693
|
queryKey: [
|
|
1664
|
-
...
|
|
1694
|
+
...chunkQ2QUWZYX_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1665
1695
|
options?.kind ?? "all",
|
|
1666
1696
|
options?.limit ?? "default"
|
|
1667
1697
|
],
|
|
@@ -1672,7 +1702,7 @@ function useProjectEvents(projectExtId, options) {
|
|
|
1672
1702
|
function useConversationUsage(conversationId, options) {
|
|
1673
1703
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1674
1704
|
return reactQuery.useQuery({
|
|
1675
|
-
queryKey:
|
|
1705
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1676
1706
|
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1677
1707
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1678
1708
|
refetchInterval: options?.live ? 1e4 : false
|
|
@@ -1681,7 +1711,7 @@ function useConversationUsage(conversationId, options) {
|
|
|
1681
1711
|
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1682
1712
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1683
1713
|
return reactQuery.useQuery({
|
|
1684
|
-
queryKey:
|
|
1714
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1685
1715
|
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1686
1716
|
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1687
1717
|
});
|
|
@@ -1689,7 +1719,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
|
1689
1719
|
function useContacts(options) {
|
|
1690
1720
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
1691
1721
|
return reactQuery.useQuery({
|
|
1692
|
-
queryKey:
|
|
1722
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.contacts(),
|
|
1693
1723
|
queryFn: () => arbi.contacts.list(),
|
|
1694
1724
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1695
1725
|
});
|
|
@@ -1704,7 +1734,7 @@ function usePendingContacts(options) {
|
|
|
1704
1734
|
}
|
|
1705
1735
|
function useInvalidateContacts() {
|
|
1706
1736
|
const qc = reactQuery.useQueryClient();
|
|
1707
|
-
return () => qc.invalidateQueries({ queryKey:
|
|
1737
|
+
return () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.contacts() });
|
|
1708
1738
|
}
|
|
1709
1739
|
function useInviteContacts() {
|
|
1710
1740
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
@@ -1833,11 +1863,11 @@ function useProfile(options) {
|
|
|
1833
1863
|
const { client, enabled } = useAccountClient();
|
|
1834
1864
|
const qc = reactQuery.useQueryClient();
|
|
1835
1865
|
React.useEffect(
|
|
1836
|
-
() => client.onProfileChange(() => qc.setQueryData(
|
|
1866
|
+
() => client.onProfileChange(() => qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.profile(), client.profile())),
|
|
1837
1867
|
[client, qc]
|
|
1838
1868
|
);
|
|
1839
1869
|
return reactQuery.useQuery({
|
|
1840
|
-
queryKey:
|
|
1870
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.profile(),
|
|
1841
1871
|
queryFn: () => client.profile(),
|
|
1842
1872
|
enabled: (options?.enabled ?? true) && enabled,
|
|
1843
1873
|
staleTime: Infinity
|
|
@@ -1852,9 +1882,9 @@ function useUpdateProfile() {
|
|
|
1852
1882
|
return client.profile();
|
|
1853
1883
|
},
|
|
1854
1884
|
onSuccess: (profile) => {
|
|
1855
|
-
qc.setQueryData(
|
|
1856
|
-
void qc.invalidateQueries({ queryKey:
|
|
1857
|
-
return qc.invalidateQueries({ queryKey:
|
|
1885
|
+
qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.profile(), profile);
|
|
1886
|
+
void qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.identity() });
|
|
1887
|
+
return qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.workspaces() });
|
|
1858
1888
|
}
|
|
1859
1889
|
});
|
|
1860
1890
|
}
|
|
@@ -1937,7 +1967,7 @@ function useConfirmEmailChange() {
|
|
|
1937
1967
|
const qc = reactQuery.useQueryClient();
|
|
1938
1968
|
return reactQuery.useMutation({
|
|
1939
1969
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
1940
|
-
onSuccess: () => qc.setQueryData(
|
|
1970
|
+
onSuccess: () => qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.profile(), client.profile())
|
|
1941
1971
|
});
|
|
1942
1972
|
}
|
|
1943
1973
|
function useEmailChange({
|
|
@@ -2105,7 +2135,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
2105
2135
|
function useUserSettings(options) {
|
|
2106
2136
|
const arbi = chunkR2MF7YCW_cjs.useArbi();
|
|
2107
2137
|
return reactQuery.useQuery({
|
|
2108
|
-
queryKey:
|
|
2138
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings(),
|
|
2109
2139
|
queryFn: () => arbi.settings.get(),
|
|
2110
2140
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
2111
2141
|
});
|
|
@@ -2118,18 +2148,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
2118
2148
|
const save = reactQuery.useMutation({
|
|
2119
2149
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
2120
2150
|
onMutate: async (patch) => {
|
|
2121
|
-
await qc.cancelQueries({ queryKey:
|
|
2122
|
-
const previous = qc.getQueryData(
|
|
2151
|
+
await qc.cancelQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings() });
|
|
2152
|
+
const previous = qc.getQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings());
|
|
2123
2153
|
qc.setQueryData(
|
|
2124
|
-
|
|
2154
|
+
chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings(),
|
|
2125
2155
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
2126
2156
|
);
|
|
2127
2157
|
return { previous };
|
|
2128
2158
|
},
|
|
2129
2159
|
onError: (_err, _patch, context) => {
|
|
2130
|
-
qc.setQueryData(
|
|
2160
|
+
qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2131
2161
|
},
|
|
2132
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2162
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings() })
|
|
2133
2163
|
});
|
|
2134
2164
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
2135
2165
|
const setAll = React.useCallback(
|
|
@@ -2156,18 +2186,18 @@ function useRelevanceSave() {
|
|
|
2156
2186
|
return reactQuery.useMutation({
|
|
2157
2187
|
mutationFn: (patch) => arbi.settings.update(patch),
|
|
2158
2188
|
onMutate: async (patch) => {
|
|
2159
|
-
await qc.cancelQueries({ queryKey:
|
|
2160
|
-
const previous = qc.getQueryData(
|
|
2189
|
+
await qc.cancelQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings() });
|
|
2190
|
+
const previous = qc.getQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings());
|
|
2161
2191
|
qc.setQueryData(
|
|
2162
|
-
|
|
2192
|
+
chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings(),
|
|
2163
2193
|
(old) => old ? { ...old, ...patch } : old
|
|
2164
2194
|
);
|
|
2165
2195
|
return { previous };
|
|
2166
2196
|
},
|
|
2167
2197
|
onError: (_err, _patch, context) => {
|
|
2168
|
-
qc.setQueryData(
|
|
2198
|
+
qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
2169
2199
|
},
|
|
2170
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
2200
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings() })
|
|
2171
2201
|
});
|
|
2172
2202
|
}
|
|
2173
2203
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
@@ -2178,7 +2208,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
2178
2208
|
const setLevel = React.useCallback(
|
|
2179
2209
|
(next) => {
|
|
2180
2210
|
if (!workspaceId) return;
|
|
2181
|
-
const current = qc.getQueryData(
|
|
2211
|
+
const current = qc.getQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2182
2212
|
save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
|
|
2183
2213
|
},
|
|
2184
2214
|
[qc, save, settings.data, workspaceId]
|
|
@@ -2199,7 +2229,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2199
2229
|
const setFollowing = React.useCallback(
|
|
2200
2230
|
(on, callbacks) => {
|
|
2201
2231
|
if (!conversationId) return;
|
|
2202
|
-
const current = qc.getQueryData(
|
|
2232
|
+
const current = qc.getQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
|
|
2203
2233
|
save.mutate(
|
|
2204
2234
|
{
|
|
2205
2235
|
followed_threads: browser.settings.withMembership(
|
|
@@ -2224,7 +2254,7 @@ function useFollowThread(conversationId, options) {
|
|
|
2224
2254
|
function useSessions(options) {
|
|
2225
2255
|
const { client, enabled } = useAccountClient();
|
|
2226
2256
|
return reactQuery.useQuery({
|
|
2227
|
-
queryKey:
|
|
2257
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.sessions(),
|
|
2228
2258
|
queryFn: () => client.listSessions(),
|
|
2229
2259
|
enabled: (options?.enabled ?? true) && enabled
|
|
2230
2260
|
});
|
|
@@ -2234,7 +2264,7 @@ function useTerminateSession() {
|
|
|
2234
2264
|
const qc = reactQuery.useQueryClient();
|
|
2235
2265
|
return reactQuery.useMutation({
|
|
2236
2266
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
2237
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
2267
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.sessions() })
|
|
2238
2268
|
});
|
|
2239
2269
|
}
|
|
2240
2270
|
function useSignOut() {
|
|
@@ -2377,7 +2407,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2377
2407
|
const apiRef = React.useRef(api);
|
|
2378
2408
|
apiRef.current = api;
|
|
2379
2409
|
const query = reactQuery.useQuery({
|
|
2380
|
-
queryKey:
|
|
2410
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.identity(),
|
|
2381
2411
|
queryFn: () => apiRef.current.status(),
|
|
2382
2412
|
enabled,
|
|
2383
2413
|
staleTime: 6e4
|
|
@@ -2395,7 +2425,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
2395
2425
|
const lastVerified = React.useRef(void 0);
|
|
2396
2426
|
const apply = React.useCallback(
|
|
2397
2427
|
(next) => {
|
|
2398
|
-
qc.setQueryData(
|
|
2428
|
+
qc.setQueryData(chunkQ2QUWZYX_cjs.arbiQueryKeys.identity(), next);
|
|
2399
2429
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
2400
2430
|
onVerifiedChange?.(next.verified);
|
|
2401
2431
|
}
|
|
@@ -2590,12 +2620,12 @@ function useIdentityVerification(options = {}) {
|
|
|
2590
2620
|
enabled,
|
|
2591
2621
|
formatPrice,
|
|
2592
2622
|
onVerifiedChange: (verified) => {
|
|
2593
|
-
void qc.invalidateQueries({ queryKey:
|
|
2623
|
+
void qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.profile() });
|
|
2594
2624
|
onVerifiedChange?.(verified);
|
|
2595
2625
|
},
|
|
2596
2626
|
onNameAccepted: (name) => {
|
|
2597
|
-
void qc.invalidateQueries({ queryKey:
|
|
2598
|
-
void qc.invalidateQueries({ queryKey:
|
|
2627
|
+
void qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.profile() });
|
|
2628
|
+
void qc.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.workspaces() });
|
|
2599
2629
|
onNameAccepted?.(name);
|
|
2600
2630
|
}
|
|
2601
2631
|
});
|
|
@@ -3013,7 +3043,7 @@ function useMailDraftReplaced(draftId, onReplaced) {
|
|
|
3013
3043
|
}, [draftId]);
|
|
3014
3044
|
}
|
|
3015
3045
|
function useWorkspaceDocs(workspaceId) {
|
|
3016
|
-
const { data: docs = [], isLoading, isError } =
|
|
3046
|
+
const { data: docs = [], isLoading, isError } = chunkQ2QUWZYX_cjs.useDocuments(workspaceId);
|
|
3017
3047
|
const docIds = React.useMemo(
|
|
3018
3048
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
3019
3049
|
[docs]
|
|
@@ -3021,7 +3051,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
3021
3051
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
3022
3052
|
}
|
|
3023
3053
|
function useAiTask() {
|
|
3024
|
-
const mutation =
|
|
3054
|
+
const mutation = chunkQ2QUWZYX_cjs.useAssistantQuery();
|
|
3025
3055
|
const [status, setStatus] = React.useState("idle");
|
|
3026
3056
|
const [text, setText] = React.useState("");
|
|
3027
3057
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -3641,8 +3671,8 @@ function DocumentReview({
|
|
|
3641
3671
|
onClose,
|
|
3642
3672
|
className
|
|
3643
3673
|
}) {
|
|
3644
|
-
const parsedQuery =
|
|
3645
|
-
const tagsQuery =
|
|
3674
|
+
const parsedQuery = chunkQ2QUWZYX_cjs.useParsedDocument(docId, stage);
|
|
3675
|
+
const tagsQuery = chunkQ2QUWZYX_cjs.useTags(workspaceId);
|
|
3646
3676
|
const tagNameById = React__default.default.useMemo(() => {
|
|
3647
3677
|
const map = /* @__PURE__ */ new Map();
|
|
3648
3678
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3873,7 +3903,7 @@ function SemanticSearch({
|
|
|
3873
3903
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
3874
3904
|
const [value, setValue] = React.useState("");
|
|
3875
3905
|
const [selected, setSelected] = React.useState(null);
|
|
3876
|
-
const { data: docs = [] } =
|
|
3906
|
+
const { data: docs = [] } = chunkQ2QUWZYX_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
3877
3907
|
const docMap = React.useMemo(() => {
|
|
3878
3908
|
const map = /* @__PURE__ */ new Map();
|
|
3879
3909
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -4975,7 +5005,7 @@ function ActivityFeed({
|
|
|
4975
5005
|
enabled,
|
|
4976
5006
|
"data-testid": testId = "activity-feed"
|
|
4977
5007
|
}) {
|
|
4978
|
-
const { data, isLoading, isError } =
|
|
5008
|
+
const { data, isLoading, isError } = chunkQ2QUWZYX_cjs.useActivity({ limit, enabled });
|
|
4979
5009
|
if (isLoading) {
|
|
4980
5010
|
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: [
|
|
4981
5011
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -5133,7 +5163,7 @@ function useDirectMessages(options) {
|
|
|
5133
5163
|
enabled
|
|
5134
5164
|
});
|
|
5135
5165
|
const contactsQuery = reactQuery.useQuery({
|
|
5136
|
-
queryKey:
|
|
5166
|
+
queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.contacts(),
|
|
5137
5167
|
queryFn: () => arbi.contacts.list(),
|
|
5138
5168
|
enabled
|
|
5139
5169
|
});
|
|
@@ -5335,7 +5365,7 @@ function ConversationList({
|
|
|
5335
5365
|
children: c.subtitle ?? preview
|
|
5336
5366
|
}
|
|
5337
5367
|
),
|
|
5338
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: lastMessage ?
|
|
5368
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: lastMessage ? chunkKLPY2HUC_cjs.formatRelativeTime(lastMessage.createdAt) : "" })
|
|
5339
5369
|
] })
|
|
5340
5370
|
] })
|
|
5341
5371
|
] });
|
|
@@ -5419,7 +5449,7 @@ function MessageBubble({
|
|
|
5419
5449
|
isLastOfRun,
|
|
5420
5450
|
senderName: message.isMine ? "You" : userDisplayName(message.sender),
|
|
5421
5451
|
classNames,
|
|
5422
|
-
formatTimestamp:
|
|
5452
|
+
formatTimestamp: chunkKLPY2HUC_cjs.formatRelativeTime
|
|
5423
5453
|
}
|
|
5424
5454
|
);
|
|
5425
5455
|
}
|
|
@@ -6402,10 +6432,10 @@ function DocumentTable({
|
|
|
6402
6432
|
extraColumns,
|
|
6403
6433
|
className
|
|
6404
6434
|
}) {
|
|
6405
|
-
const query =
|
|
6435
|
+
const query = chunkQ2QUWZYX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6406
6436
|
const rows = documents ?? query.data ?? [];
|
|
6407
6437
|
const isLoading = !documents && query.isLoading;
|
|
6408
|
-
const tagsQuery =
|
|
6438
|
+
const tagsQuery = chunkQ2QUWZYX_cjs.useTags(workspaceId);
|
|
6409
6439
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6410
6440
|
const map = /* @__PURE__ */ new Map();
|
|
6411
6441
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6586,7 +6616,7 @@ function DocumentCardMenu({
|
|
|
6586
6616
|
const invalidateDocuments = () => {
|
|
6587
6617
|
const workspaceId = arbi.getWorkspaceId();
|
|
6588
6618
|
if (workspaceId) {
|
|
6589
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6619
|
+
void queryClient.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
6590
6620
|
}
|
|
6591
6621
|
};
|
|
6592
6622
|
const download = reactQuery.useMutation({
|
|
@@ -6685,10 +6715,10 @@ function DocumentGallery({
|
|
|
6685
6715
|
minTileWidth = 148,
|
|
6686
6716
|
className
|
|
6687
6717
|
}) {
|
|
6688
|
-
const query =
|
|
6718
|
+
const query = chunkQ2QUWZYX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
6689
6719
|
const rows = documents ?? query.data ?? [];
|
|
6690
6720
|
const isLoading = !documents && query.isLoading;
|
|
6691
|
-
const tagsQuery =
|
|
6721
|
+
const tagsQuery = chunkQ2QUWZYX_cjs.useTags(workspaceId);
|
|
6692
6722
|
const tagNameById = React__default.default.useMemo(() => {
|
|
6693
6723
|
const map = /* @__PURE__ */ new Map();
|
|
6694
6724
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -6700,7 +6730,7 @@ function DocumentGallery({
|
|
|
6700
6730
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
6701
6731
|
[rows]
|
|
6702
6732
|
);
|
|
6703
|
-
const thumbsQuery =
|
|
6733
|
+
const thumbsQuery = chunkQ2QUWZYX_cjs.useThumbnails(docIds);
|
|
6704
6734
|
const thumbs = thumbsQuery.data ?? {};
|
|
6705
6735
|
const session = useArbiSessionStore();
|
|
6706
6736
|
const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
|
|
@@ -6736,7 +6766,7 @@ function DocumentGallery({
|
|
|
6736
6766
|
setRenamingId(null);
|
|
6737
6767
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
6738
6768
|
if (activeWorkspace) {
|
|
6739
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
6769
|
+
void queryClient.invalidateQueries({ queryKey: chunkQ2QUWZYX_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
6740
6770
|
}
|
|
6741
6771
|
}
|
|
6742
6772
|
});
|
|
@@ -7354,183 +7384,115 @@ function hasVideoTrack(blob) {
|
|
|
7354
7384
|
|
|
7355
7385
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
7356
7386
|
enumerable: true,
|
|
7357
|
-
get: function () { return
|
|
7387
|
+
get: function () { return chunkQ2QUWZYX_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
7358
7388
|
});
|
|
7359
7389
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
7360
7390
|
enumerable: true,
|
|
7361
|
-
get: function () { return
|
|
7391
|
+
get: function () { return chunkQ2QUWZYX_cjs.arbiMutationKeys; }
|
|
7362
7392
|
});
|
|
7363
7393
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
7364
7394
|
enumerable: true,
|
|
7365
|
-
get: function () { return
|
|
7395
|
+
get: function () { return chunkQ2QUWZYX_cjs.arbiQueryKeys; }
|
|
7366
7396
|
});
|
|
7367
7397
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
7368
7398
|
enumerable: true,
|
|
7369
|
-
get: function () { return
|
|
7399
|
+
get: function () { return chunkQ2QUWZYX_cjs.isUsageMetered; }
|
|
7370
7400
|
});
|
|
7371
7401
|
Object.defineProperty(exports, "useActivity", {
|
|
7372
7402
|
enumerable: true,
|
|
7373
|
-
get: function () { return
|
|
7403
|
+
get: function () { return chunkQ2QUWZYX_cjs.useActivity; }
|
|
7374
7404
|
});
|
|
7375
7405
|
Object.defineProperty(exports, "useAgents", {
|
|
7376
7406
|
enumerable: true,
|
|
7377
|
-
get: function () { return
|
|
7407
|
+
get: function () { return chunkQ2QUWZYX_cjs.useAgents; }
|
|
7378
7408
|
});
|
|
7379
7409
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
7380
7410
|
enumerable: true,
|
|
7381
|
-
get: function () { return
|
|
7411
|
+
get: function () { return chunkQ2QUWZYX_cjs.useAssistantQuery; }
|
|
7382
7412
|
});
|
|
7383
7413
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
7384
7414
|
enumerable: true,
|
|
7385
|
-
get: function () { return
|
|
7415
|
+
get: function () { return chunkQ2QUWZYX_cjs.useCanCreateProjects; }
|
|
7386
7416
|
});
|
|
7387
7417
|
Object.defineProperty(exports, "useConfigs", {
|
|
7388
7418
|
enumerable: true,
|
|
7389
|
-
get: function () { return
|
|
7419
|
+
get: function () { return chunkQ2QUWZYX_cjs.useConfigs; }
|
|
7390
7420
|
});
|
|
7391
7421
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
7392
7422
|
enumerable: true,
|
|
7393
|
-
get: function () { return
|
|
7423
|
+
get: function () { return chunkQ2QUWZYX_cjs.useConversationThreads; }
|
|
7394
7424
|
});
|
|
7395
7425
|
Object.defineProperty(exports, "useConversations", {
|
|
7396
7426
|
enumerable: true,
|
|
7397
|
-
get: function () { return
|
|
7427
|
+
get: function () { return chunkQ2QUWZYX_cjs.useConversations; }
|
|
7398
7428
|
});
|
|
7399
7429
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
7400
7430
|
enumerable: true,
|
|
7401
|
-
get: function () { return
|
|
7431
|
+
get: function () { return chunkQ2QUWZYX_cjs.useCurrentUser; }
|
|
7402
7432
|
});
|
|
7403
7433
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
7404
7434
|
enumerable: true,
|
|
7405
|
-
get: function () { return
|
|
7435
|
+
get: function () { return chunkQ2QUWZYX_cjs.useDeleteAgents; }
|
|
7406
7436
|
});
|
|
7407
7437
|
Object.defineProperty(exports, "useDocuments", {
|
|
7408
7438
|
enumerable: true,
|
|
7409
|
-
get: function () { return
|
|
7439
|
+
get: function () { return chunkQ2QUWZYX_cjs.useDocuments; }
|
|
7410
7440
|
});
|
|
7411
7441
|
Object.defineProperty(exports, "useFirmPool", {
|
|
7412
7442
|
enumerable: true,
|
|
7413
|
-
get: function () { return
|
|
7443
|
+
get: function () { return chunkQ2QUWZYX_cjs.useFirmPool; }
|
|
7414
7444
|
});
|
|
7415
7445
|
Object.defineProperty(exports, "useHealth", {
|
|
7416
7446
|
enumerable: true,
|
|
7417
|
-
get: function () { return
|
|
7447
|
+
get: function () { return chunkQ2QUWZYX_cjs.useHealth; }
|
|
7418
7448
|
});
|
|
7419
7449
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
7420
7450
|
enumerable: true,
|
|
7421
|
-
get: function () { return
|
|
7451
|
+
get: function () { return chunkQ2QUWZYX_cjs.useParsedDocument; }
|
|
7422
7452
|
});
|
|
7423
7453
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
7424
7454
|
enumerable: true,
|
|
7425
|
-
get: function () { return
|
|
7455
|
+
get: function () { return chunkQ2QUWZYX_cjs.useProjectInvoices; }
|
|
7426
7456
|
});
|
|
7427
7457
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
7428
7458
|
enumerable: true,
|
|
7429
|
-
get: function () { return
|
|
7459
|
+
get: function () { return chunkQ2QUWZYX_cjs.useProjectUsage; }
|
|
7430
7460
|
});
|
|
7431
7461
|
Object.defineProperty(exports, "useProjects", {
|
|
7432
7462
|
enumerable: true,
|
|
7433
|
-
get: function () { return
|
|
7463
|
+
get: function () { return chunkQ2QUWZYX_cjs.useProjects; }
|
|
7434
7464
|
});
|
|
7435
7465
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
7436
7466
|
enumerable: true,
|
|
7437
|
-
get: function () { return
|
|
7467
|
+
get: function () { return chunkQ2QUWZYX_cjs.useProjectsUsage; }
|
|
7438
7468
|
});
|
|
7439
7469
|
Object.defineProperty(exports, "useTags", {
|
|
7440
7470
|
enumerable: true,
|
|
7441
|
-
get: function () { return
|
|
7471
|
+
get: function () { return chunkQ2QUWZYX_cjs.useTags; }
|
|
7442
7472
|
});
|
|
7443
7473
|
Object.defineProperty(exports, "useThumbnails", {
|
|
7444
7474
|
enumerable: true,
|
|
7445
|
-
get: function () { return
|
|
7475
|
+
get: function () { return chunkQ2QUWZYX_cjs.useThumbnails; }
|
|
7446
7476
|
});
|
|
7447
7477
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
7448
7478
|
enumerable: true,
|
|
7449
|
-
get: function () { return
|
|
7479
|
+
get: function () { return chunkQ2QUWZYX_cjs.useTopUpFirmPool; }
|
|
7450
7480
|
});
|
|
7451
7481
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
7452
7482
|
enumerable: true,
|
|
7453
|
-
get: function () { return
|
|
7483
|
+
get: function () { return chunkQ2QUWZYX_cjs.useUserUsageToday; }
|
|
7454
7484
|
});
|
|
7455
7485
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
7456
7486
|
enumerable: true,
|
|
7457
|
-
get: function () { return
|
|
7487
|
+
get: function () { return chunkQ2QUWZYX_cjs.useWorkspaceActivity; }
|
|
7458
7488
|
});
|
|
7459
7489
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
7460
7490
|
enumerable: true,
|
|
7461
|
-
get: function () { return
|
|
7491
|
+
get: function () { return chunkQ2QUWZYX_cjs.useWorkspaceUsers; }
|
|
7462
7492
|
});
|
|
7463
7493
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
7464
7494
|
enumerable: true,
|
|
7465
|
-
get: function () { return
|
|
7466
|
-
});
|
|
7467
|
-
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
7468
|
-
enumerable: true,
|
|
7469
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
7470
|
-
});
|
|
7471
|
-
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
7472
|
-
enumerable: true,
|
|
7473
|
-
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
7474
|
-
});
|
|
7475
|
-
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
7476
|
-
enumerable: true,
|
|
7477
|
-
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
7478
|
-
});
|
|
7479
|
-
Object.defineProperty(exports, "repairParsedStructure", {
|
|
7480
|
-
enumerable: true,
|
|
7481
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
7482
|
-
});
|
|
7483
|
-
Object.defineProperty(exports, "repairParsedTitle", {
|
|
7484
|
-
enumerable: true,
|
|
7485
|
-
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
7486
|
-
});
|
|
7487
|
-
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
7488
|
-
enumerable: true,
|
|
7489
|
-
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
7490
|
-
});
|
|
7491
|
-
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
7492
|
-
enumerable: true,
|
|
7493
|
-
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
7494
|
-
});
|
|
7495
|
-
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
7496
|
-
enumerable: true,
|
|
7497
|
-
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
7498
|
-
});
|
|
7499
|
-
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
7500
|
-
enumerable: true,
|
|
7501
|
-
get: function () { return chunk6PPWZILQ_cjs.DEFAULT_NOTIFY_TONE; }
|
|
7502
|
-
});
|
|
7503
|
-
Object.defineProperty(exports, "NotificationBell", {
|
|
7504
|
-
enumerable: true,
|
|
7505
|
-
get: function () { return chunk6PPWZILQ_cjs.NotificationBell; }
|
|
7506
|
-
});
|
|
7507
|
-
Object.defineProperty(exports, "Toaster", {
|
|
7508
|
-
enumerable: true,
|
|
7509
|
-
get: function () { return chunk6PPWZILQ_cjs.Toaster; }
|
|
7510
|
-
});
|
|
7511
|
-
Object.defineProperty(exports, "formatRelativeTime", {
|
|
7512
|
-
enumerable: true,
|
|
7513
|
-
get: function () { return chunk6PPWZILQ_cjs.formatRelativeTime; }
|
|
7514
|
-
});
|
|
7515
|
-
Object.defineProperty(exports, "notify", {
|
|
7516
|
-
enumerable: true,
|
|
7517
|
-
get: function () { return chunk6PPWZILQ_cjs.notify; }
|
|
7518
|
-
});
|
|
7519
|
-
Object.defineProperty(exports, "seedNotifications", {
|
|
7520
|
-
enumerable: true,
|
|
7521
|
-
get: function () { return chunk6PPWZILQ_cjs.seedNotifications; }
|
|
7522
|
-
});
|
|
7523
|
-
Object.defineProperty(exports, "selectUnread", {
|
|
7524
|
-
enumerable: true,
|
|
7525
|
-
get: function () { return chunk6PPWZILQ_cjs.selectUnread; }
|
|
7526
|
-
});
|
|
7527
|
-
Object.defineProperty(exports, "toast", {
|
|
7528
|
-
enumerable: true,
|
|
7529
|
-
get: function () { return chunk6PPWZILQ_cjs.toast; }
|
|
7530
|
-
});
|
|
7531
|
-
Object.defineProperty(exports, "useNotify", {
|
|
7532
|
-
enumerable: true,
|
|
7533
|
-
get: function () { return chunk6PPWZILQ_cjs.useNotify; }
|
|
7495
|
+
get: function () { return chunkQ2QUWZYX_cjs.useWorkspaces; }
|
|
7534
7496
|
});
|
|
7535
7497
|
Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
|
|
7536
7498
|
enumerable: true,
|
|
@@ -8132,6 +8094,38 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
8132
8094
|
enumerable: true,
|
|
8133
8095
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
8134
8096
|
});
|
|
8097
|
+
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
8098
|
+
enumerable: true,
|
|
8099
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
8100
|
+
});
|
|
8101
|
+
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
8102
|
+
enumerable: true,
|
|
8103
|
+
get: function () { return chunkZWFMFOGP_cjs.cleanDraftWithReport; }
|
|
8104
|
+
});
|
|
8105
|
+
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
8106
|
+
enumerable: true,
|
|
8107
|
+
get: function () { return chunkZWFMFOGP_cjs.promoteBoldTitle; }
|
|
8108
|
+
});
|
|
8109
|
+
Object.defineProperty(exports, "repairParsedStructure", {
|
|
8110
|
+
enumerable: true,
|
|
8111
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedStructure; }
|
|
8112
|
+
});
|
|
8113
|
+
Object.defineProperty(exports, "repairParsedTitle", {
|
|
8114
|
+
enumerable: true,
|
|
8115
|
+
get: function () { return chunkZWFMFOGP_cjs.repairParsedTitle; }
|
|
8116
|
+
});
|
|
8117
|
+
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
8118
|
+
enumerable: true,
|
|
8119
|
+
get: function () { return chunkZWFMFOGP_cjs.stripAgentPreamble; }
|
|
8120
|
+
});
|
|
8121
|
+
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
8122
|
+
enumerable: true,
|
|
8123
|
+
get: function () { return chunkZWFMFOGP_cjs.unescapeMarkdown; }
|
|
8124
|
+
});
|
|
8125
|
+
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
8126
|
+
enumerable: true,
|
|
8127
|
+
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
8128
|
+
});
|
|
8135
8129
|
Object.defineProperty(exports, "Button", {
|
|
8136
8130
|
enumerable: true,
|
|
8137
8131
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -8192,6 +8186,54 @@ Object.defineProperty(exports, "trimOpenCitation", {
|
|
|
8192
8186
|
enumerable: true,
|
|
8193
8187
|
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
8194
8188
|
});
|
|
8189
|
+
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
8190
|
+
enumerable: true,
|
|
8191
|
+
get: function () { return chunkKLPY2HUC_cjs.DEFAULT_NOTIFY_TONE; }
|
|
8192
|
+
});
|
|
8193
|
+
Object.defineProperty(exports, "MAX_SESSION_NOTIFICATIONS", {
|
|
8194
|
+
enumerable: true,
|
|
8195
|
+
get: function () { return chunkKLPY2HUC_cjs.MAX_SESSION_NOTIFICATIONS; }
|
|
8196
|
+
});
|
|
8197
|
+
Object.defineProperty(exports, "NotificationBell", {
|
|
8198
|
+
enumerable: true,
|
|
8199
|
+
get: function () { return chunkKLPY2HUC_cjs.NotificationBell; }
|
|
8200
|
+
});
|
|
8201
|
+
Object.defineProperty(exports, "Toaster", {
|
|
8202
|
+
enumerable: true,
|
|
8203
|
+
get: function () { return chunkKLPY2HUC_cjs.Toaster; }
|
|
8204
|
+
});
|
|
8205
|
+
Object.defineProperty(exports, "configureNotify", {
|
|
8206
|
+
enumerable: true,
|
|
8207
|
+
get: function () { return chunkKLPY2HUC_cjs.configureNotify; }
|
|
8208
|
+
});
|
|
8209
|
+
Object.defineProperty(exports, "formatRelativeTime", {
|
|
8210
|
+
enumerable: true,
|
|
8211
|
+
get: function () { return chunkKLPY2HUC_cjs.formatRelativeTime; }
|
|
8212
|
+
});
|
|
8213
|
+
Object.defineProperty(exports, "notify", {
|
|
8214
|
+
enumerable: true,
|
|
8215
|
+
get: function () { return chunkKLPY2HUC_cjs.notify; }
|
|
8216
|
+
});
|
|
8217
|
+
Object.defineProperty(exports, "persistNotifyHistory", {
|
|
8218
|
+
enumerable: true,
|
|
8219
|
+
get: function () { return chunkKLPY2HUC_cjs.persistNotifyHistory; }
|
|
8220
|
+
});
|
|
8221
|
+
Object.defineProperty(exports, "seedNotifications", {
|
|
8222
|
+
enumerable: true,
|
|
8223
|
+
get: function () { return chunkKLPY2HUC_cjs.seedNotifications; }
|
|
8224
|
+
});
|
|
8225
|
+
Object.defineProperty(exports, "selectUnread", {
|
|
8226
|
+
enumerable: true,
|
|
8227
|
+
get: function () { return chunkKLPY2HUC_cjs.selectUnread; }
|
|
8228
|
+
});
|
|
8229
|
+
Object.defineProperty(exports, "toast", {
|
|
8230
|
+
enumerable: true,
|
|
8231
|
+
get: function () { return chunkKLPY2HUC_cjs.toast; }
|
|
8232
|
+
});
|
|
8233
|
+
Object.defineProperty(exports, "useNotify", {
|
|
8234
|
+
enumerable: true,
|
|
8235
|
+
get: function () { return chunkKLPY2HUC_cjs.useNotify; }
|
|
8236
|
+
});
|
|
8195
8237
|
Object.defineProperty(exports, "ScrollArea", {
|
|
8196
8238
|
enumerable: true,
|
|
8197
8239
|
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
@@ -8455,6 +8497,7 @@ exports.useDeleteAccount = useDeleteAccount;
|
|
|
8455
8497
|
exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
8456
8498
|
exports.useDeleteContact = useDeleteContact;
|
|
8457
8499
|
exports.useDeleteFact = useDeleteFact;
|
|
8500
|
+
exports.useDeleteSkill = useDeleteSkill;
|
|
8458
8501
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
8459
8502
|
exports.useDirectMessages = useDirectMessages;
|
|
8460
8503
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|
|
@@ -8502,9 +8545,11 @@ exports.useSemanticSearch = useSemanticSearch;
|
|
|
8502
8545
|
exports.useSendBackStep = useSendBackStep;
|
|
8503
8546
|
exports.useSendMail = useSendMail;
|
|
8504
8547
|
exports.useSessions = useSessions;
|
|
8548
|
+
exports.useSetSkillVisibility = useSetSkillVisibility;
|
|
8505
8549
|
exports.useSetTagValues = useSetTagValues;
|
|
8506
8550
|
exports.useShellWorkspaces = useShellWorkspaces;
|
|
8507
8551
|
exports.useSignOut = useSignOut;
|
|
8552
|
+
exports.useSkillSource = useSkillSource;
|
|
8508
8553
|
exports.useSkills = useSkills;
|
|
8509
8554
|
exports.useStartAgentSession = useStartAgentSession;
|
|
8510
8555
|
exports.useStartWorkQuery = useStartWorkQuery;
|