@arbidocs/react 0.4.76 → 0.4.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +6 -6
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-IQ5TYPVU.js → chunk-2JPBOZIH.js} +11 -2
- package/dist/chunk-2JPBOZIH.js.map +1 -0
- package/dist/{chunk-GE5TAR7Y.cjs → chunk-PXHRLAOX.cjs} +11 -2
- package/dist/chunk-PXHRLAOX.cjs.map +1 -0
- package/dist/index.cjs +209 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +374 -3
- package/dist/index.d.ts +374 -3
- package/dist/index.js +108 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-GE5TAR7Y.cjs.map +0 -1
- package/dist/chunk-IQ5TYPVU.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPXHRLAOX_cjs = require('./chunk-PXHRLAOX.cjs');
|
|
4
4
|
var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
|
|
5
5
|
var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
|
|
6
6
|
var chunkQJRP2LLQ_cjs = require('./chunk-QJRP2LLQ.cjs');
|
|
@@ -41,7 +41,7 @@ function useUpdateConversation() {
|
|
|
41
41
|
conversationId,
|
|
42
42
|
patch
|
|
43
43
|
}) => arbi.conversations.update(conversationId, patch),
|
|
44
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
44
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function useCreateWork() {
|
|
@@ -49,7 +49,7 @@ function useCreateWork() {
|
|
|
49
49
|
const qc = reactQuery.useQueryClient();
|
|
50
50
|
return reactQuery.useMutation({
|
|
51
51
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
52
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
52
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
function useRunConversation() {
|
|
@@ -57,7 +57,7 @@ function useRunConversation() {
|
|
|
57
57
|
const qc = reactQuery.useQueryClient();
|
|
58
58
|
return reactQuery.useMutation({
|
|
59
59
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
60
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
60
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
function useActOnStep() {
|
|
@@ -68,7 +68,20 @@ function useActOnStep() {
|
|
|
68
68
|
conversationId,
|
|
69
69
|
body
|
|
70
70
|
}) => arbi.conversations.actOnStep(conversationId, body),
|
|
71
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
71
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function useSendBackStep() {
|
|
75
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
76
|
+
const qc = reactQuery.useQueryClient();
|
|
77
|
+
return reactQuery.useMutation({
|
|
78
|
+
mutationFn: ({
|
|
79
|
+
conversationId,
|
|
80
|
+
step,
|
|
81
|
+
to,
|
|
82
|
+
note
|
|
83
|
+
}) => arbi.conversations.sendBackStep(conversationId, step, { to, note }),
|
|
84
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
72
85
|
});
|
|
73
86
|
}
|
|
74
87
|
function usePlanWork() {
|
|
@@ -80,7 +93,7 @@ function usePlanWork() {
|
|
|
80
93
|
function useConversationPendingAuth(conversationId, options) {
|
|
81
94
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
82
95
|
return reactQuery.useQuery({
|
|
83
|
-
queryKey: [...
|
|
96
|
+
queryKey: [...chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "pending-auth"],
|
|
84
97
|
queryFn: () => arbi.conversations.pendingAuth(conversationId),
|
|
85
98
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
86
99
|
retry: false
|
|
@@ -89,7 +102,7 @@ function useConversationPendingAuth(conversationId, options) {
|
|
|
89
102
|
function useConversationActivity(conversationId, options) {
|
|
90
103
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
91
104
|
return reactQuery.useQuery({
|
|
92
|
-
queryKey: [...
|
|
105
|
+
queryKey: [...chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "activity"],
|
|
93
106
|
queryFn: () => arbi.conversations.activity(conversationId),
|
|
94
107
|
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
95
108
|
refetchInterval: options?.live ? 2500 : false
|
|
@@ -98,7 +111,7 @@ function useConversationActivity(conversationId, options) {
|
|
|
98
111
|
function useWorkflows(options) {
|
|
99
112
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
100
113
|
return reactQuery.useQuery({
|
|
101
|
-
queryKey:
|
|
114
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workflows(),
|
|
102
115
|
queryFn: () => arbi.workflows.list(),
|
|
103
116
|
refetchInterval: options?.live ? 15e3 : false,
|
|
104
117
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
@@ -109,7 +122,7 @@ function useCreateWorkflow() {
|
|
|
109
122
|
const qc = reactQuery.useQueryClient();
|
|
110
123
|
return reactQuery.useMutation({
|
|
111
124
|
mutationFn: (body) => arbi.workflows.create(body),
|
|
112
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
125
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workflows() })
|
|
113
126
|
});
|
|
114
127
|
}
|
|
115
128
|
function useUpdateWorkflow() {
|
|
@@ -120,7 +133,7 @@ function useUpdateWorkflow() {
|
|
|
120
133
|
workflowId,
|
|
121
134
|
patch
|
|
122
135
|
}) => arbi.workflows.update(workflowId, patch),
|
|
123
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
136
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workflows() })
|
|
124
137
|
});
|
|
125
138
|
}
|
|
126
139
|
function useDeleteWorkflow() {
|
|
@@ -128,7 +141,7 @@ function useDeleteWorkflow() {
|
|
|
128
141
|
const qc = reactQuery.useQueryClient();
|
|
129
142
|
return reactQuery.useMutation({
|
|
130
143
|
mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
|
|
131
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
144
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workflows() })
|
|
132
145
|
});
|
|
133
146
|
}
|
|
134
147
|
function useRunWorkflow() {
|
|
@@ -137,8 +150,8 @@ function useRunWorkflow() {
|
|
|
137
150
|
return reactQuery.useMutation({
|
|
138
151
|
mutationFn: (workflowId) => arbi.workflows.run(workflowId),
|
|
139
152
|
onSuccess: () => Promise.all([
|
|
140
|
-
qc.invalidateQueries({ queryKey:
|
|
141
|
-
qc.invalidateQueries({ queryKey:
|
|
153
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workflows() }),
|
|
154
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
142
155
|
])
|
|
143
156
|
});
|
|
144
157
|
}
|
|
@@ -147,13 +160,13 @@ function useCreateAgent() {
|
|
|
147
160
|
const qc = reactQuery.useQueryClient();
|
|
148
161
|
return reactQuery.useMutation({
|
|
149
162
|
mutationFn: (name) => arbi.agents.create(name),
|
|
150
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
163
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agents() })
|
|
151
164
|
});
|
|
152
165
|
}
|
|
153
166
|
function useAgentConfig(agentExtId, options) {
|
|
154
167
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
155
168
|
return reactQuery.useQuery({
|
|
156
|
-
queryKey:
|
|
169
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agentConfig(agentExtId),
|
|
157
170
|
queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
|
|
158
171
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
159
172
|
});
|
|
@@ -161,7 +174,7 @@ function useAgentConfig(agentExtId, options) {
|
|
|
161
174
|
function useAgentModels(options) {
|
|
162
175
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
163
176
|
return reactQuery.useQuery({
|
|
164
|
-
queryKey:
|
|
177
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.models(),
|
|
165
178
|
queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
|
|
166
179
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
167
180
|
});
|
|
@@ -184,17 +197,17 @@ function useSaveAgentConfig() {
|
|
|
184
197
|
});
|
|
185
198
|
},
|
|
186
199
|
onSuccess: (_saved, { agentExtId }) => Promise.all([
|
|
187
|
-
qc.invalidateQueries({ queryKey:
|
|
188
|
-
qc.invalidateQueries({ queryKey:
|
|
200
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.configs() }),
|
|
201
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
|
|
189
202
|
// The agent list shows the pinned persona/model, so it refreshes too.
|
|
190
|
-
qc.invalidateQueries({ queryKey:
|
|
203
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agents() })
|
|
191
204
|
])
|
|
192
205
|
});
|
|
193
206
|
}
|
|
194
207
|
function useAgentWorkspaces(agentExtId, options) {
|
|
195
208
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
196
209
|
return reactQuery.useQuery({
|
|
197
|
-
queryKey:
|
|
210
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
|
|
198
211
|
queryFn: () => arbi.agents.listWorkspaces(agentExtId),
|
|
199
212
|
enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
|
|
200
213
|
});
|
|
@@ -215,7 +228,7 @@ function useGrantAgentAccess() {
|
|
|
215
228
|
if (!agent?.email) throw new Error("The agent's address is unknown.");
|
|
216
229
|
return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
|
|
217
230
|
},
|
|
218
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
231
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
219
232
|
});
|
|
220
233
|
}
|
|
221
234
|
function useRevokeAgentAccess() {
|
|
@@ -234,13 +247,13 @@ function useRevokeAgentAccess() {
|
|
|
234
247
|
if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
|
|
235
248
|
}
|
|
236
249
|
},
|
|
237
|
-
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey:
|
|
250
|
+
onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
|
|
238
251
|
});
|
|
239
252
|
}
|
|
240
253
|
function useSkills(options) {
|
|
241
254
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
242
255
|
return reactQuery.useQuery({
|
|
243
|
-
queryKey: [...
|
|
256
|
+
queryKey: [...chunkPXHRLAOX_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
|
|
244
257
|
queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
|
|
245
258
|
refetchInterval: options?.live ? 5e3 : false,
|
|
246
259
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
@@ -271,7 +284,7 @@ function useUploadSkillFiles() {
|
|
|
271
284
|
}
|
|
272
285
|
return results;
|
|
273
286
|
},
|
|
274
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
287
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.skills() })
|
|
275
288
|
});
|
|
276
289
|
}
|
|
277
290
|
function useStartWorkQuery() {
|
|
@@ -298,7 +311,7 @@ function useStartWorkQuery() {
|
|
|
298
311
|
`The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
|
|
299
312
|
);
|
|
300
313
|
},
|
|
301
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
314
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.allConversations() })
|
|
302
315
|
});
|
|
303
316
|
}
|
|
304
317
|
function useAgentSession(agentId, options) {
|
|
@@ -361,6 +374,10 @@ function toChatCitations(source) {
|
|
|
361
374
|
}
|
|
362
375
|
|
|
363
376
|
// src/chat/useArbiChat.ts
|
|
377
|
+
function workflowStepOf(tools) {
|
|
378
|
+
const marker = tools?.workflow_step;
|
|
379
|
+
return typeof marker?.workflow_step === "string" ? marker.workflow_step : void 0;
|
|
380
|
+
}
|
|
364
381
|
var counter = 0;
|
|
365
382
|
var nextId = (prefix) => `${prefix}-${Date.now().toString(36)}-${(counter++).toString(36)}`;
|
|
366
383
|
var emptyThread = () => ({
|
|
@@ -389,11 +406,13 @@ function messagesFromHistory(history, live = false) {
|
|
|
389
406
|
(m) => m.role !== "system" && (m.content.trim() !== "" || m.role === "assistant" && (isUnfinished(m) || m.status === "cancelled"))
|
|
390
407
|
).map((m) => {
|
|
391
408
|
if (m.role === "user") {
|
|
409
|
+
const workflowStep = workflowStepOf(m.tools);
|
|
392
410
|
return {
|
|
393
411
|
id: m.external_id,
|
|
394
412
|
role: "user",
|
|
395
413
|
content: m.content,
|
|
396
414
|
status: "complete",
|
|
415
|
+
...workflowStep ? { workflowStep } : {},
|
|
397
416
|
...m.created_by_ext_id ? { authorId: m.created_by_ext_id } : {},
|
|
398
417
|
...m.mentions?.length ? { mentions: m.mentions } : {}
|
|
399
418
|
};
|
|
@@ -452,8 +471,8 @@ function useArbiChat(options = {}) {
|
|
|
452
471
|
const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
|
|
453
472
|
const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
|
|
454
473
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
455
|
-
const { data: docs = [], isLoading: isLoadingDocuments, refetch } =
|
|
456
|
-
const ordinaryHistory =
|
|
474
|
+
const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkPXHRLAOX_cjs.useDocuments(workspaceId);
|
|
475
|
+
const ordinaryHistory = chunkPXHRLAOX_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
457
476
|
const agentHistory = useAgentChats(agentId);
|
|
458
477
|
const stored = React.useMemo(
|
|
459
478
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -468,7 +487,7 @@ function useArbiChat(options = {}) {
|
|
|
468
487
|
);
|
|
469
488
|
const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
|
|
470
489
|
const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
|
|
471
|
-
const query =
|
|
490
|
+
const query = chunkPXHRLAOX_cjs.useAssistantQuery();
|
|
472
491
|
const { mutateAsync } = query;
|
|
473
492
|
const [stagedFiles, setStagedFiles] = React.useState([]);
|
|
474
493
|
const [threads, setThreads] = React.useState(() => [emptyThread()]);
|
|
@@ -528,7 +547,7 @@ function useArbiChat(options = {}) {
|
|
|
528
547
|
(conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
|
|
529
548
|
) || active.messages.some((message) => message.status === "streaming");
|
|
530
549
|
const needsLoad = !!active.conversationId && !active.isLoaded;
|
|
531
|
-
const loaded =
|
|
550
|
+
const loaded = chunkPXHRLAOX_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
|
|
532
551
|
enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
|
|
533
552
|
live: liveHistory
|
|
534
553
|
});
|
|
@@ -1307,14 +1326,14 @@ function useArbiDocumentSync(workspaceId) {
|
|
|
1307
1326
|
if (!workspaceId) return;
|
|
1308
1327
|
if (client.isMessageType(msg, "batch_complete")) {
|
|
1309
1328
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1310
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1311
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1329
|
+
void queryClient.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1330
|
+
void queryClient.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
1312
1331
|
return;
|
|
1313
1332
|
}
|
|
1314
1333
|
if (client.isMessageType(msg, "task_update")) {
|
|
1315
1334
|
if (msg.workspace_ext_id !== workspaceId) return;
|
|
1316
1335
|
if (TERMINAL_STATUSES.has(msg.status)) {
|
|
1317
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1336
|
+
void queryClient.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
1318
1337
|
}
|
|
1319
1338
|
}
|
|
1320
1339
|
});
|
|
@@ -1443,7 +1462,7 @@ function useShellWorkspaces(options) {
|
|
|
1443
1462
|
}
|
|
1444
1463
|
function useArbiShellWorkspaces(options = {}) {
|
|
1445
1464
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1446
|
-
const query =
|
|
1465
|
+
const query = chunkPXHRLAOX_cjs.useWorkspaces();
|
|
1447
1466
|
const { select, ...rest } = options;
|
|
1448
1467
|
const defaultSelect = React.useCallback(
|
|
1449
1468
|
(workspace) => arbi.selectWorkspace(workspace.id),
|
|
@@ -1457,10 +1476,96 @@ function useArbiShellWorkspaces(options = {}) {
|
|
|
1457
1476
|
select: select ?? defaultSelect
|
|
1458
1477
|
});
|
|
1459
1478
|
}
|
|
1479
|
+
var selectionKey = (selection) => !selection ? "" : "parentId" in selection ? `parent:${selection.parentId}` : `tags:${selection.tagIds.join(",")}`;
|
|
1480
|
+
function invalidateTagData(qc, workspaceId) {
|
|
1481
|
+
return Promise.all([
|
|
1482
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.tags(workspaceId) }),
|
|
1483
|
+
qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.facts(workspaceId) })
|
|
1484
|
+
]);
|
|
1485
|
+
}
|
|
1486
|
+
function useInvalidateTagData() {
|
|
1487
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1488
|
+
const qc = reactQuery.useQueryClient();
|
|
1489
|
+
return React.useCallback(() => {
|
|
1490
|
+
const workspaceId = arbi.getWorkspaceId();
|
|
1491
|
+
return workspaceId ? invalidateTagData(qc, workspaceId) : Promise.resolve();
|
|
1492
|
+
}, [arbi, qc]);
|
|
1493
|
+
}
|
|
1494
|
+
function useTagMatrix(selection, options) {
|
|
1495
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1496
|
+
const workspaceId = arbi.getWorkspaceId() ?? "";
|
|
1497
|
+
const key = selectionKey(selection);
|
|
1498
|
+
const hasSelection = !!selection && ("parentId" in selection ? !!selection.parentId : selection.tagIds.length > 0);
|
|
1499
|
+
return reactQuery.useQuery({
|
|
1500
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.tagMatrix(workspaceId, key, options?.linksLimit),
|
|
1501
|
+
queryFn: () => arbi.tags.matrix(selection, options?.linksLimit),
|
|
1502
|
+
enabled: (options?.enabled ?? true) && hasSelection && !!workspaceId && arbi.hasWorkspace
|
|
1503
|
+
});
|
|
1504
|
+
}
|
|
1505
|
+
function useUpdateTagFields() {
|
|
1506
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1507
|
+
const qc = reactQuery.useQueryClient();
|
|
1508
|
+
return reactQuery.useMutation({
|
|
1509
|
+
mutationFn: ({
|
|
1510
|
+
tagId,
|
|
1511
|
+
fields,
|
|
1512
|
+
values
|
|
1513
|
+
}) => arbi.tags.updateFields(tagId, { fields, values }),
|
|
1514
|
+
onSuccess: (tag) => invalidateTagData(qc, tag.workspace_ext_id)
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
function useFilteredProjects(filters, options) {
|
|
1518
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1519
|
+
return reactQuery.useQuery({
|
|
1520
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
|
|
1521
|
+
queryFn: () => arbi.projects.list(filters),
|
|
1522
|
+
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
function useUpdateProjectFields() {
|
|
1526
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1527
|
+
const qc = reactQuery.useQueryClient();
|
|
1528
|
+
return reactQuery.useMutation({
|
|
1529
|
+
mutationFn: ({
|
|
1530
|
+
projectExtId,
|
|
1531
|
+
patch
|
|
1532
|
+
}) => arbi.projects.update(projectExtId, patch),
|
|
1533
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.projects() })
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
function useProjectEvents(projectExtId, options) {
|
|
1537
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1538
|
+
return reactQuery.useQuery({
|
|
1539
|
+
queryKey: [
|
|
1540
|
+
...chunkPXHRLAOX_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
|
|
1541
|
+
options?.kind ?? "all",
|
|
1542
|
+
options?.limit ?? "default"
|
|
1543
|
+
],
|
|
1544
|
+
queryFn: () => arbi.projects.events(projectExtId, { kind: options?.kind, limit: options?.limit }),
|
|
1545
|
+
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
function useConversationUsage(conversationId, options) {
|
|
1549
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1550
|
+
return reactQuery.useQuery({
|
|
1551
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
|
|
1552
|
+
queryFn: () => arbi.conversations.usage(conversationId),
|
|
1553
|
+
enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
|
|
1554
|
+
refetchInterval: options?.live ? 1e4 : false
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
|
|
1558
|
+
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1559
|
+
return reactQuery.useQuery({
|
|
1560
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
|
|
1561
|
+
queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
|
|
1562
|
+
enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1460
1565
|
function useContacts(options) {
|
|
1461
1566
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1462
1567
|
return reactQuery.useQuery({
|
|
1463
|
-
queryKey:
|
|
1568
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.contacts(),
|
|
1464
1569
|
queryFn: () => arbi.contacts.list(),
|
|
1465
1570
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1466
1571
|
});
|
|
@@ -1480,7 +1585,7 @@ function useAddContacts() {
|
|
|
1480
1585
|
const qc = reactQuery.useQueryClient();
|
|
1481
1586
|
return reactQuery.useMutation({
|
|
1482
1587
|
mutationFn: (emails) => arbi.contacts.add(emails),
|
|
1483
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1588
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.contacts() })
|
|
1484
1589
|
});
|
|
1485
1590
|
}
|
|
1486
1591
|
function useRemoveContacts() {
|
|
@@ -1488,7 +1593,7 @@ function useRemoveContacts() {
|
|
|
1488
1593
|
const qc = reactQuery.useQueryClient();
|
|
1489
1594
|
return reactQuery.useMutation({
|
|
1490
1595
|
mutationFn: (contactIds) => arbi.contacts.remove(contactIds),
|
|
1491
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1596
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.contacts() })
|
|
1492
1597
|
});
|
|
1493
1598
|
}
|
|
1494
1599
|
function toProfileView(profile) {
|
|
@@ -1500,7 +1605,7 @@ function toProfileView(profile) {
|
|
|
1500
1605
|
function useProfile(options) {
|
|
1501
1606
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1502
1607
|
return reactQuery.useQuery({
|
|
1503
|
-
queryKey:
|
|
1608
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.profile(),
|
|
1504
1609
|
queryFn: () => {
|
|
1505
1610
|
const profile = arbi.user.profile();
|
|
1506
1611
|
return profile ? toProfileView(profile) : null;
|
|
@@ -1523,9 +1628,9 @@ function useUpdateProfile() {
|
|
|
1523
1628
|
return profile ? toProfileView(profile) : null;
|
|
1524
1629
|
},
|
|
1525
1630
|
onSuccess: (profile) => {
|
|
1526
|
-
qc.setQueryData(
|
|
1527
|
-
void qc.invalidateQueries({ queryKey:
|
|
1528
|
-
return qc.invalidateQueries({ queryKey:
|
|
1631
|
+
qc.setQueryData(chunkPXHRLAOX_cjs.arbiQueryKeys.profile(), profile);
|
|
1632
|
+
void qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.identity() });
|
|
1633
|
+
return qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workspaces() });
|
|
1529
1634
|
}
|
|
1530
1635
|
});
|
|
1531
1636
|
}
|
|
@@ -1610,7 +1715,7 @@ function useConfirmEmailChange() {
|
|
|
1610
1715
|
mutationFn: ({ newEmail, code }) => arbi.account.confirmEmailChange(newEmail, code),
|
|
1611
1716
|
onSuccess: () => {
|
|
1612
1717
|
const profile = arbi.user.profile();
|
|
1613
|
-
qc.setQueryData(
|
|
1718
|
+
qc.setQueryData(chunkPXHRLAOX_cjs.arbiQueryKeys.profile(), profile ? toProfileView(profile) : null);
|
|
1614
1719
|
}
|
|
1615
1720
|
});
|
|
1616
1721
|
}
|
|
@@ -1779,7 +1884,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
1779
1884
|
function useUserSettings(options) {
|
|
1780
1885
|
const arbi = chunkIIT7DMQL_cjs.useArbi();
|
|
1781
1886
|
return reactQuery.useQuery({
|
|
1782
|
-
queryKey:
|
|
1887
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.userSettings(),
|
|
1783
1888
|
queryFn: () => arbi.settings.get(),
|
|
1784
1889
|
enabled: (options?.enabled ?? true) && arbi.isLoggedIn
|
|
1785
1890
|
});
|
|
@@ -1792,18 +1897,18 @@ function useNotificationPreferences(keys, options) {
|
|
|
1792
1897
|
const save = reactQuery.useMutation({
|
|
1793
1898
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
1794
1899
|
onMutate: async (patch) => {
|
|
1795
|
-
await qc.cancelQueries({ queryKey:
|
|
1796
|
-
const previous = qc.getQueryData(
|
|
1900
|
+
await qc.cancelQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.userSettings() });
|
|
1901
|
+
const previous = qc.getQueryData(chunkPXHRLAOX_cjs.arbiQueryKeys.userSettings());
|
|
1797
1902
|
qc.setQueryData(
|
|
1798
|
-
|
|
1903
|
+
chunkPXHRLAOX_cjs.arbiQueryKeys.userSettings(),
|
|
1799
1904
|
(old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
|
|
1800
1905
|
);
|
|
1801
1906
|
return { previous };
|
|
1802
1907
|
},
|
|
1803
1908
|
onError: (_err, _patch, context) => {
|
|
1804
|
-
qc.setQueryData(
|
|
1909
|
+
qc.setQueryData(chunkPXHRLAOX_cjs.arbiQueryKeys.userSettings(), context?.previous);
|
|
1805
1910
|
},
|
|
1806
|
-
onSettled: () => qc.invalidateQueries({ queryKey:
|
|
1911
|
+
onSettled: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.userSettings() })
|
|
1807
1912
|
});
|
|
1808
1913
|
const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
|
|
1809
1914
|
const setAll = React.useCallback(
|
|
@@ -1829,7 +1934,7 @@ function useTerminateSession() {
|
|
|
1829
1934
|
const qc = reactQuery.useQueryClient();
|
|
1830
1935
|
return reactQuery.useMutation({
|
|
1831
1936
|
mutationFn: (sessionId) => arbi.sessions.terminate(sessionId),
|
|
1832
|
-
onSuccess: () => qc.invalidateQueries({ queryKey:
|
|
1937
|
+
onSuccess: () => qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.sessions() })
|
|
1833
1938
|
});
|
|
1834
1939
|
}
|
|
1835
1940
|
function useLogoutAllSessions() {
|
|
@@ -1972,7 +2077,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
1972
2077
|
const apiRef = React.useRef(api);
|
|
1973
2078
|
apiRef.current = api;
|
|
1974
2079
|
const query = reactQuery.useQuery({
|
|
1975
|
-
queryKey:
|
|
2080
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.identity(),
|
|
1976
2081
|
queryFn: () => apiRef.current.status(),
|
|
1977
2082
|
enabled,
|
|
1978
2083
|
staleTime: 6e4
|
|
@@ -1990,7 +2095,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
1990
2095
|
const lastVerified = React.useRef(void 0);
|
|
1991
2096
|
const apply = React.useCallback(
|
|
1992
2097
|
(next) => {
|
|
1993
|
-
qc.setQueryData(
|
|
2098
|
+
qc.setQueryData(chunkPXHRLAOX_cjs.arbiQueryKeys.identity(), next);
|
|
1994
2099
|
if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
|
|
1995
2100
|
onVerifiedChange?.(next.verified);
|
|
1996
2101
|
}
|
|
@@ -2195,18 +2300,18 @@ function useIdentityVerification(options = {}) {
|
|
|
2195
2300
|
return useIdentityVerificationFlow(api, {
|
|
2196
2301
|
enabled: arbi.isLoggedIn,
|
|
2197
2302
|
onVerifiedChange: (verified) => {
|
|
2198
|
-
void qc.invalidateQueries({ queryKey:
|
|
2303
|
+
void qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.profile() });
|
|
2199
2304
|
onVerifiedChange?.(verified);
|
|
2200
2305
|
},
|
|
2201
2306
|
onNameAccepted: (name) => {
|
|
2202
|
-
void qc.invalidateQueries({ queryKey:
|
|
2203
|
-
void qc.invalidateQueries({ queryKey:
|
|
2307
|
+
void qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.profile() });
|
|
2308
|
+
void qc.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.workspaces() });
|
|
2204
2309
|
onNameAccepted?.(name);
|
|
2205
2310
|
}
|
|
2206
2311
|
});
|
|
2207
2312
|
}
|
|
2208
2313
|
function useWorkspaceDocs(workspaceId) {
|
|
2209
|
-
const { data: docs = [], isLoading, isError } =
|
|
2314
|
+
const { data: docs = [], isLoading, isError } = chunkPXHRLAOX_cjs.useDocuments(workspaceId);
|
|
2210
2315
|
const docIds = React.useMemo(
|
|
2211
2316
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
2212
2317
|
[docs]
|
|
@@ -2214,7 +2319,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
2214
2319
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
2215
2320
|
}
|
|
2216
2321
|
function useAiTask() {
|
|
2217
|
-
const mutation =
|
|
2322
|
+
const mutation = chunkPXHRLAOX_cjs.useAssistantQuery();
|
|
2218
2323
|
const [status, setStatus] = React.useState("idle");
|
|
2219
2324
|
const [text, setText] = React.useState("");
|
|
2220
2325
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -2807,8 +2912,8 @@ function DocumentReview({
|
|
|
2807
2912
|
onClose,
|
|
2808
2913
|
className
|
|
2809
2914
|
}) {
|
|
2810
|
-
const parsedQuery =
|
|
2811
|
-
const tagsQuery =
|
|
2915
|
+
const parsedQuery = chunkPXHRLAOX_cjs.useParsedDocument(docId, stage);
|
|
2916
|
+
const tagsQuery = chunkPXHRLAOX_cjs.useTags(workspaceId);
|
|
2812
2917
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2813
2918
|
const map = /* @__PURE__ */ new Map();
|
|
2814
2919
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3039,7 +3144,7 @@ function SemanticSearch({
|
|
|
3039
3144
|
const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
|
|
3040
3145
|
const [value, setValue] = React.useState("");
|
|
3041
3146
|
const [selected, setSelected] = React.useState(null);
|
|
3042
|
-
const { data: docs = [] } =
|
|
3147
|
+
const { data: docs = [] } = chunkPXHRLAOX_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
|
|
3043
3148
|
const docMap = React.useMemo(() => {
|
|
3044
3149
|
const map = /* @__PURE__ */ new Map();
|
|
3045
3150
|
for (const d of docs) if (d.external_id) map.set(d.external_id, d);
|
|
@@ -4143,7 +4248,7 @@ function ActivityFeed({
|
|
|
4143
4248
|
enabled,
|
|
4144
4249
|
"data-testid": testId = "activity-feed"
|
|
4145
4250
|
}) {
|
|
4146
|
-
const { data, isLoading, isError } =
|
|
4251
|
+
const { data, isLoading, isError } = chunkPXHRLAOX_cjs.useActivity({ limit, enabled });
|
|
4147
4252
|
if (isLoading) {
|
|
4148
4253
|
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: [
|
|
4149
4254
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -4294,7 +4399,7 @@ function useDirectMessages(options) {
|
|
|
4294
4399
|
enabled
|
|
4295
4400
|
});
|
|
4296
4401
|
const contactsQuery = reactQuery.useQuery({
|
|
4297
|
-
queryKey:
|
|
4402
|
+
queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.contacts(),
|
|
4298
4403
|
queryFn: () => arbi.contacts.list(),
|
|
4299
4404
|
enabled
|
|
4300
4405
|
});
|
|
@@ -5465,10 +5570,10 @@ function DocumentTable({
|
|
|
5465
5570
|
extraColumns,
|
|
5466
5571
|
className
|
|
5467
5572
|
}) {
|
|
5468
|
-
const query =
|
|
5573
|
+
const query = chunkPXHRLAOX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
5469
5574
|
const rows = documents ?? query.data ?? [];
|
|
5470
5575
|
const isLoading = !documents && query.isLoading;
|
|
5471
|
-
const tagsQuery =
|
|
5576
|
+
const tagsQuery = chunkPXHRLAOX_cjs.useTags(workspaceId);
|
|
5472
5577
|
const tagNameById = React__default.default.useMemo(() => {
|
|
5473
5578
|
const map = /* @__PURE__ */ new Map();
|
|
5474
5579
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -5649,7 +5754,7 @@ function DocumentCardMenu({
|
|
|
5649
5754
|
const invalidateDocuments = () => {
|
|
5650
5755
|
const workspaceId = arbi.getWorkspaceId();
|
|
5651
5756
|
if (workspaceId) {
|
|
5652
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5757
|
+
void queryClient.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.documents(workspaceId) });
|
|
5653
5758
|
}
|
|
5654
5759
|
};
|
|
5655
5760
|
const download = reactQuery.useMutation({
|
|
@@ -5748,10 +5853,10 @@ function DocumentGallery({
|
|
|
5748
5853
|
minTileWidth = 148,
|
|
5749
5854
|
className
|
|
5750
5855
|
}) {
|
|
5751
|
-
const query =
|
|
5856
|
+
const query = chunkPXHRLAOX_cjs.useDocuments(workspaceId, { enabled: !documents });
|
|
5752
5857
|
const rows = documents ?? query.data ?? [];
|
|
5753
5858
|
const isLoading = !documents && query.isLoading;
|
|
5754
|
-
const tagsQuery =
|
|
5859
|
+
const tagsQuery = chunkPXHRLAOX_cjs.useTags(workspaceId);
|
|
5755
5860
|
const tagNameById = React__default.default.useMemo(() => {
|
|
5756
5861
|
const map = /* @__PURE__ */ new Map();
|
|
5757
5862
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -5763,7 +5868,7 @@ function DocumentGallery({
|
|
|
5763
5868
|
() => rows.map((d) => d.external_id).filter((id) => !!id),
|
|
5764
5869
|
[rows]
|
|
5765
5870
|
);
|
|
5766
|
-
const thumbsQuery =
|
|
5871
|
+
const thumbsQuery = chunkPXHRLAOX_cjs.useThumbnails(docIds);
|
|
5767
5872
|
const thumbs = thumbsQuery.data ?? {};
|
|
5768
5873
|
const storeSelected = useArbiUiStore((s) => s.selectedDocIds);
|
|
5769
5874
|
const storeSetSelected = useArbiUiStore((s) => s.setSelectedDocIds);
|
|
@@ -5799,7 +5904,7 @@ function DocumentGallery({
|
|
|
5799
5904
|
setRenamingId(null);
|
|
5800
5905
|
const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
|
|
5801
5906
|
if (activeWorkspace) {
|
|
5802
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
5907
|
+
void queryClient.invalidateQueries({ queryKey: chunkPXHRLAOX_cjs.arbiQueryKeys.documents(activeWorkspace) });
|
|
5803
5908
|
}
|
|
5804
5909
|
}
|
|
5805
5910
|
});
|
|
@@ -6417,107 +6522,107 @@ function hasVideoTrack(blob) {
|
|
|
6417
6522
|
|
|
6418
6523
|
Object.defineProperty(exports, "DEFAULT_USD_PER_CREDIT", {
|
|
6419
6524
|
enumerable: true,
|
|
6420
|
-
get: function () { return
|
|
6525
|
+
get: function () { return chunkPXHRLAOX_cjs.DEFAULT_USD_PER_CREDIT; }
|
|
6421
6526
|
});
|
|
6422
6527
|
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
6423
6528
|
enumerable: true,
|
|
6424
|
-
get: function () { return
|
|
6529
|
+
get: function () { return chunkPXHRLAOX_cjs.arbiQueryKeys; }
|
|
6425
6530
|
});
|
|
6426
6531
|
Object.defineProperty(exports, "creditsToUsd", {
|
|
6427
6532
|
enumerable: true,
|
|
6428
|
-
get: function () { return
|
|
6533
|
+
get: function () { return chunkPXHRLAOX_cjs.creditsToUsd; }
|
|
6429
6534
|
});
|
|
6430
6535
|
Object.defineProperty(exports, "formatCredits", {
|
|
6431
6536
|
enumerable: true,
|
|
6432
|
-
get: function () { return
|
|
6537
|
+
get: function () { return chunkPXHRLAOX_cjs.formatCredits; }
|
|
6433
6538
|
});
|
|
6434
6539
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
6435
6540
|
enumerable: true,
|
|
6436
|
-
get: function () { return
|
|
6541
|
+
get: function () { return chunkPXHRLAOX_cjs.isUsageMetered; }
|
|
6437
6542
|
});
|
|
6438
6543
|
Object.defineProperty(exports, "useActivity", {
|
|
6439
6544
|
enumerable: true,
|
|
6440
|
-
get: function () { return
|
|
6545
|
+
get: function () { return chunkPXHRLAOX_cjs.useActivity; }
|
|
6441
6546
|
});
|
|
6442
6547
|
Object.defineProperty(exports, "useAgents", {
|
|
6443
6548
|
enumerable: true,
|
|
6444
|
-
get: function () { return
|
|
6549
|
+
get: function () { return chunkPXHRLAOX_cjs.useAgents; }
|
|
6445
6550
|
});
|
|
6446
6551
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
6447
6552
|
enumerable: true,
|
|
6448
|
-
get: function () { return
|
|
6553
|
+
get: function () { return chunkPXHRLAOX_cjs.useAssistantQuery; }
|
|
6449
6554
|
});
|
|
6450
6555
|
Object.defineProperty(exports, "useConfigs", {
|
|
6451
6556
|
enumerable: true,
|
|
6452
|
-
get: function () { return
|
|
6557
|
+
get: function () { return chunkPXHRLAOX_cjs.useConfigs; }
|
|
6453
6558
|
});
|
|
6454
6559
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
6455
6560
|
enumerable: true,
|
|
6456
|
-
get: function () { return
|
|
6561
|
+
get: function () { return chunkPXHRLAOX_cjs.useConversationThreads; }
|
|
6457
6562
|
});
|
|
6458
6563
|
Object.defineProperty(exports, "useConversations", {
|
|
6459
6564
|
enumerable: true,
|
|
6460
|
-
get: function () { return
|
|
6565
|
+
get: function () { return chunkPXHRLAOX_cjs.useConversations; }
|
|
6461
6566
|
});
|
|
6462
6567
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
6463
6568
|
enumerable: true,
|
|
6464
|
-
get: function () { return
|
|
6569
|
+
get: function () { return chunkPXHRLAOX_cjs.useDeleteAgents; }
|
|
6465
6570
|
});
|
|
6466
6571
|
Object.defineProperty(exports, "useDocuments", {
|
|
6467
6572
|
enumerable: true,
|
|
6468
|
-
get: function () { return
|
|
6573
|
+
get: function () { return chunkPXHRLAOX_cjs.useDocuments; }
|
|
6469
6574
|
});
|
|
6470
6575
|
Object.defineProperty(exports, "useFacts", {
|
|
6471
6576
|
enumerable: true,
|
|
6472
|
-
get: function () { return
|
|
6577
|
+
get: function () { return chunkPXHRLAOX_cjs.useFacts; }
|
|
6473
6578
|
});
|
|
6474
6579
|
Object.defineProperty(exports, "useHealth", {
|
|
6475
6580
|
enumerable: true,
|
|
6476
|
-
get: function () { return
|
|
6581
|
+
get: function () { return chunkPXHRLAOX_cjs.useHealth; }
|
|
6477
6582
|
});
|
|
6478
6583
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
6479
6584
|
enumerable: true,
|
|
6480
|
-
get: function () { return
|
|
6585
|
+
get: function () { return chunkPXHRLAOX_cjs.useParsedDocument; }
|
|
6481
6586
|
});
|
|
6482
6587
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
6483
6588
|
enumerable: true,
|
|
6484
|
-
get: function () { return
|
|
6589
|
+
get: function () { return chunkPXHRLAOX_cjs.useProjectInvoices; }
|
|
6485
6590
|
});
|
|
6486
6591
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
6487
6592
|
enumerable: true,
|
|
6488
|
-
get: function () { return
|
|
6593
|
+
get: function () { return chunkPXHRLAOX_cjs.useProjectUsage; }
|
|
6489
6594
|
});
|
|
6490
6595
|
Object.defineProperty(exports, "useProjects", {
|
|
6491
6596
|
enumerable: true,
|
|
6492
|
-
get: function () { return
|
|
6597
|
+
get: function () { return chunkPXHRLAOX_cjs.useProjects; }
|
|
6493
6598
|
});
|
|
6494
6599
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
6495
6600
|
enumerable: true,
|
|
6496
|
-
get: function () { return
|
|
6601
|
+
get: function () { return chunkPXHRLAOX_cjs.useProjectsUsage; }
|
|
6497
6602
|
});
|
|
6498
6603
|
Object.defineProperty(exports, "useSessions", {
|
|
6499
6604
|
enumerable: true,
|
|
6500
|
-
get: function () { return
|
|
6605
|
+
get: function () { return chunkPXHRLAOX_cjs.useSessions; }
|
|
6501
6606
|
});
|
|
6502
6607
|
Object.defineProperty(exports, "useTags", {
|
|
6503
6608
|
enumerable: true,
|
|
6504
|
-
get: function () { return
|
|
6609
|
+
get: function () { return chunkPXHRLAOX_cjs.useTags; }
|
|
6505
6610
|
});
|
|
6506
6611
|
Object.defineProperty(exports, "useThumbnails", {
|
|
6507
6612
|
enumerable: true,
|
|
6508
|
-
get: function () { return
|
|
6613
|
+
get: function () { return chunkPXHRLAOX_cjs.useThumbnails; }
|
|
6509
6614
|
});
|
|
6510
6615
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
6511
6616
|
enumerable: true,
|
|
6512
|
-
get: function () { return
|
|
6617
|
+
get: function () { return chunkPXHRLAOX_cjs.useUserUsageToday; }
|
|
6513
6618
|
});
|
|
6514
6619
|
Object.defineProperty(exports, "useWorkspaceUsers", {
|
|
6515
6620
|
enumerable: true,
|
|
6516
|
-
get: function () { return
|
|
6621
|
+
get: function () { return chunkPXHRLAOX_cjs.useWorkspaceUsers; }
|
|
6517
6622
|
});
|
|
6518
6623
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
6519
6624
|
enumerable: true,
|
|
6520
|
-
get: function () { return
|
|
6625
|
+
get: function () { return chunkPXHRLAOX_cjs.useWorkspaces; }
|
|
6521
6626
|
});
|
|
6522
6627
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
6523
6628
|
enumerable: true,
|
|
@@ -7344,6 +7449,7 @@ exports.getWorkspaceKind = getWorkspaceKind;
|
|
|
7344
7449
|
exports.getWorkspaceSentPhrase = getWorkspaceSentPhrase;
|
|
7345
7450
|
exports.hasVideoTrack = hasVideoTrack;
|
|
7346
7451
|
exports.identityStepFor = identityStepFor;
|
|
7452
|
+
exports.invalidateTagData = invalidateTagData;
|
|
7347
7453
|
exports.isWorkspaceNotificationType = isWorkspaceNotificationType;
|
|
7348
7454
|
exports.mountDiditVerification = mountDiditVerification;
|
|
7349
7455
|
exports.parseActivityContent = parseActivityContent;
|
|
@@ -7386,6 +7492,7 @@ exports.useConfirmEmailChange = useConfirmEmailChange;
|
|
|
7386
7492
|
exports.useContacts = useContacts;
|
|
7387
7493
|
exports.useConversationActivity = useConversationActivity;
|
|
7388
7494
|
exports.useConversationPendingAuth = useConversationPendingAuth;
|
|
7495
|
+
exports.useConversationUsage = useConversationUsage;
|
|
7389
7496
|
exports.useCreateAgent = useCreateAgent;
|
|
7390
7497
|
exports.useCreateWork = useCreateWork;
|
|
7391
7498
|
exports.useCreateWorkflow = useCreateWorkflow;
|
|
@@ -7395,9 +7502,11 @@ exports.useDeleteAccountFlow = useDeleteAccountFlow;
|
|
|
7395
7502
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
7396
7503
|
exports.useDirectMessages = useDirectMessages;
|
|
7397
7504
|
exports.useEmailChange = useEmailChange;
|
|
7505
|
+
exports.useFilteredProjects = useFilteredProjects;
|
|
7398
7506
|
exports.useGrantAgentAccess = useGrantAgentAccess;
|
|
7399
7507
|
exports.useIdentityVerification = useIdentityVerification;
|
|
7400
7508
|
exports.useIdentityVerificationFlow = useIdentityVerificationFlow;
|
|
7509
|
+
exports.useInvalidateTagData = useInvalidateTagData;
|
|
7401
7510
|
exports.useLogoutAllSessions = useLogoutAllSessions;
|
|
7402
7511
|
exports.useNameEditor = useNameEditor;
|
|
7403
7512
|
exports.useNotificationPreferences = useNotificationPreferences;
|
|
@@ -7406,6 +7515,8 @@ exports.usePasswordChangeForm = usePasswordChangeForm;
|
|
|
7406
7515
|
exports.usePendingContacts = usePendingContacts;
|
|
7407
7516
|
exports.usePlanWork = usePlanWork;
|
|
7408
7517
|
exports.useProfile = useProfile;
|
|
7518
|
+
exports.useProjectConversationUsage = useProjectConversationUsage;
|
|
7519
|
+
exports.useProjectEvents = useProjectEvents;
|
|
7409
7520
|
exports.useRemoveContacts = useRemoveContacts;
|
|
7410
7521
|
exports.useRequestEmailChange = useRequestEmailChange;
|
|
7411
7522
|
exports.useRevokeAgentAccess = useRevokeAgentAccess;
|
|
@@ -7413,13 +7524,17 @@ exports.useRunConversation = useRunConversation;
|
|
|
7413
7524
|
exports.useRunWorkflow = useRunWorkflow;
|
|
7414
7525
|
exports.useSaveAgentConfig = useSaveAgentConfig;
|
|
7415
7526
|
exports.useSemanticSearch = useSemanticSearch;
|
|
7527
|
+
exports.useSendBackStep = useSendBackStep;
|
|
7416
7528
|
exports.useShellWorkspaces = useShellWorkspaces;
|
|
7417
7529
|
exports.useSkills = useSkills;
|
|
7418
7530
|
exports.useStartAgentSession = useStartAgentSession;
|
|
7419
7531
|
exports.useStartWorkQuery = useStartWorkQuery;
|
|
7532
|
+
exports.useTagMatrix = useTagMatrix;
|
|
7420
7533
|
exports.useTerminateSession = useTerminateSession;
|
|
7421
7534
|
exports.useUpdateConversation = useUpdateConversation;
|
|
7422
7535
|
exports.useUpdateProfile = useUpdateProfile;
|
|
7536
|
+
exports.useUpdateProjectFields = useUpdateProjectFields;
|
|
7537
|
+
exports.useUpdateTagFields = useUpdateTagFields;
|
|
7423
7538
|
exports.useUpdateWorkflow = useUpdateWorkflow;
|
|
7424
7539
|
exports.useUploadSkillFiles = useUploadSkillFiles;
|
|
7425
7540
|
exports.useUserSettings = useUserSettings;
|
|
@@ -7429,5 +7544,6 @@ exports.useWorkflows = useWorkflows;
|
|
|
7429
7544
|
exports.useWorkspaceDocs = useWorkspaceDocs;
|
|
7430
7545
|
exports.userDisplayName = userDisplayName;
|
|
7431
7546
|
exports.userInitials = userInitials;
|
|
7547
|
+
exports.workflowStepOf = workflowStepOf;
|
|
7432
7548
|
//# sourceMappingURL=index.cjs.map
|
|
7433
7549
|
//# sourceMappingURL=index.cjs.map
|