@arbidocs/react 0.4.132 → 0.4.133

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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUTZZMUHI_cjs = require('./chunk-UTZZMUHI.cjs');
3
+ var chunkE5XFVK4I_cjs = require('./chunk-E5XFVK4I.cjs');
4
4
  var chunkTYUQFRHF_cjs = require('./chunk-TYUQFRHF.cjs');
5
5
  var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
6
6
  require('./chunk-VOFNX4P6.cjs');
@@ -43,7 +43,7 @@ function useUpdateConversation() {
43
43
  conversationId,
44
44
  patch
45
45
  }) => arbi.conversations.update(conversationId, patch),
46
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
46
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
54
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
62
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
73
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_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: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
86
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_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: [...chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "pending-auth"],
98
+ queryKey: [...chunkE5XFVK4I_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: [...chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations(), conversationId ?? "", "activity"],
107
+ queryKey: chunkE5XFVK4I_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,10 +113,22 @@ function useConversationActivity(conversationId, options) {
113
113
  function useWorkflows(options) {
114
114
  const arbi = chunkR2MF7YCW_cjs.useArbi();
115
115
  return reactQuery.useQuery({
116
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows(),
116
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workflows(),
117
117
  queryFn: () => arbi.workflows.list(),
118
- refetchInterval: options?.live ? 15e3 : false,
119
- enabled: options?.enabled ?? arbi.isLoggedIn
118
+ // A clock or event can fire while the list is open, without a write here.
119
+ refetchInterval: options?.live ? 1e4 : false,
120
+ enabled: (options?.enabled ?? true) && arbi.isLoggedIn
121
+ });
122
+ }
123
+ function useWorkflowRuns(workflowId) {
124
+ const arbi = chunkR2MF7YCW_cjs.useArbi();
125
+ return reactQuery.useQuery({
126
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workflowRuns(workflowId ?? ""),
127
+ queryFn: () => arbi.workflows.runs(workflowId),
128
+ enabled: !!workflowId && arbi.isLoggedIn,
129
+ refetchInterval: 3e3,
130
+ staleTime: 0,
131
+ refetchOnMount: "always"
120
132
  });
121
133
  }
122
134
  function useCreateWorkflow() {
@@ -124,7 +136,7 @@ function useCreateWorkflow() {
124
136
  const qc = reactQuery.useQueryClient();
125
137
  return reactQuery.useMutation({
126
138
  mutationFn: (body) => arbi.workflows.create(body),
127
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() })
139
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workflows() })
128
140
  });
129
141
  }
130
142
  function useUpdateWorkflow() {
@@ -135,7 +147,7 @@ function useUpdateWorkflow() {
135
147
  workflowId,
136
148
  patch
137
149
  }) => arbi.workflows.update(workflowId, patch),
138
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() })
150
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workflows() })
139
151
  });
140
152
  }
141
153
  function useDeleteWorkflow() {
@@ -143,17 +155,18 @@ function useDeleteWorkflow() {
143
155
  const qc = reactQuery.useQueryClient();
144
156
  return reactQuery.useMutation({
145
157
  mutationFn: (workflowId) => arbi.workflows.delete(workflowId),
146
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() })
158
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workflows() })
147
159
  });
148
160
  }
149
161
  function useRunWorkflow() {
150
162
  const arbi = chunkR2MF7YCW_cjs.useArbi();
151
163
  const qc = reactQuery.useQueryClient();
152
164
  return reactQuery.useMutation({
165
+ mutationKey: chunkE5XFVK4I_cjs.arbiMutationKeys.runWorkflow(),
153
166
  mutationFn: (workflowId) => arbi.workflows.run(workflowId),
154
167
  onSuccess: () => Promise.all([
155
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workflows() }),
156
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
168
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workflows() }),
169
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.allConversations() })
157
170
  ])
158
171
  });
159
172
  }
@@ -162,7 +175,7 @@ function useCreateAgent() {
162
175
  const qc = reactQuery.useQueryClient();
163
176
  return reactQuery.useMutation({
164
177
  mutationFn: (name) => arbi.agents.create(name),
165
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agents() })
178
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agents() })
166
179
  });
167
180
  }
168
181
  function useGenerateAgentAvatar() {
@@ -170,13 +183,13 @@ function useGenerateAgentAvatar() {
170
183
  const qc = reactQuery.useQueryClient();
171
184
  return reactQuery.useMutation({
172
185
  mutationFn: ({ agentExtId, prompt }) => arbi.agents.generateAvatar(agentExtId, prompt),
173
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agents() })
186
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agents() })
174
187
  });
175
188
  }
176
189
  function useAuthorizeLimits(options) {
177
190
  const arbi = chunkR2MF7YCW_cjs.useArbi();
178
191
  return reactQuery.useQuery({
179
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.authorizeLimits(),
192
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.authorizeLimits(),
180
193
  queryFn: () => arbi.agents.authorizeLimits(),
181
194
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
182
195
  });
@@ -184,7 +197,7 @@ function useAuthorizeLimits(options) {
184
197
  function useMcpTools(options) {
185
198
  const arbi = chunkR2MF7YCW_cjs.useArbi();
186
199
  return reactQuery.useQuery({
187
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.mcpTools(),
200
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.mcpTools(),
188
201
  queryFn: () => arbi.health.mcpTools(),
189
202
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
190
203
  });
@@ -192,7 +205,7 @@ function useMcpTools(options) {
192
205
  function useAgentConfig(agentExtId, options) {
193
206
  const arbi = chunkR2MF7YCW_cjs.useArbi();
194
207
  return reactQuery.useQuery({
195
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentConfig(agentExtId),
208
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentConfig(agentExtId),
196
209
  queryFn: async () => agentExtId ? await arbi.agents.getConfig(agentExtId) : await arbi.agentConfig.get("default"),
197
210
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
198
211
  });
@@ -200,7 +213,7 @@ function useAgentConfig(agentExtId, options) {
200
213
  function useAgentModels(options) {
201
214
  const arbi = chunkR2MF7YCW_cjs.useArbi();
202
215
  return reactQuery.useQuery({
203
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.models(),
216
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.models(),
204
217
  queryFn: async () => (await arbi.agentConfig.getModels()).models.map((m) => m.model_name),
205
218
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
206
219
  });
@@ -223,17 +236,17 @@ function useSaveAgentConfig() {
223
236
  });
224
237
  },
225
238
  onSuccess: (_saved, { agentExtId }) => Promise.all([
226
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.configs() }),
227
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
239
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.configs() }),
240
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentConfig(agentExtId) }),
228
241
  // The agent list shows the pinned persona/model, so it refreshes too.
229
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agents() })
242
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agents() })
230
243
  ])
231
244
  });
232
245
  }
233
246
  function useAgentWorkspaces(agentExtId, options) {
234
247
  const arbi = chunkR2MF7YCW_cjs.useArbi();
235
248
  return reactQuery.useQuery({
236
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
249
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentWorkspaces(agentExtId ?? ""),
237
250
  queryFn: () => arbi.agents.listWorkspaces(agentExtId),
238
251
  enabled: (options?.enabled ?? true) && !!agentExtId && arbi.isLoggedIn
239
252
  });
@@ -254,7 +267,7 @@ function useGrantAgentAccess() {
254
267
  if (!agent?.email) throw new Error("The agent's address is unknown.");
255
268
  return arbi.workspaces.grantAccess({ workspaceId, emails: [agent.email] });
256
269
  },
257
- onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
270
+ onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
258
271
  });
259
272
  }
260
273
  function useRevokeAgentAccess() {
@@ -273,13 +286,13 @@ function useRevokeAgentAccess() {
273
286
  if (previous && previous !== workspaceId) await arbi.selectWorkspace(previous);
274
287
  }
275
288
  },
276
- onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
289
+ onSuccess: (_res, { agentExtId }) => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentWorkspaces(agentExtId) })
277
290
  });
278
291
  }
279
292
  function useSkills(options) {
280
293
  const arbi = chunkR2MF7YCW_cjs.useArbi();
281
294
  return reactQuery.useQuery({
282
- queryKey: [...chunkUTZZMUHI_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
295
+ queryKey: [...chunkE5XFVK4I_cjs.arbiQueryKeys.skills(), options?.includeHidden ?? false],
283
296
  queryFn: () => arbi.assistant.listSkills({ includeHidden: options?.includeHidden }),
284
297
  refetchInterval: options?.live ? 5e3 : false,
285
298
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
@@ -310,7 +323,7 @@ function useUploadSkillFiles() {
310
323
  }
311
324
  return results;
312
325
  },
313
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.skills() })
326
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.skills() })
314
327
  });
315
328
  }
316
329
  function useStartWorkQuery() {
@@ -337,13 +350,13 @@ function useStartWorkQuery() {
337
350
  `The run ${response.id} started, but its thread is not available yet. Do not submit it again.`
338
351
  );
339
352
  },
340
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.allConversations() })
353
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.allConversations() })
341
354
  });
342
355
  }
343
356
  function useAgentSession(agentId, options) {
344
357
  const arbi = chunkR2MF7YCW_cjs.useArbi();
345
358
  return reactQuery.useQuery({
346
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
359
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentSession(agentId ?? ""),
347
360
  queryFn: () => arbi.agents.getSession(agentId),
348
361
  enabled: !!agentId && arbi.isLoggedIn && (options?.enabled ?? true),
349
362
  refetchInterval: 5e3
@@ -352,7 +365,7 @@ function useAgentSession(agentId, options) {
352
365
  function useAgentChats(agentId) {
353
366
  const arbi = chunkR2MF7YCW_cjs.useArbi();
354
367
  return reactQuery.useQuery({
355
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
368
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.agentChats(agentId ?? ""),
356
369
  queryFn: () => arbi.agents.listChats(agentId),
357
370
  enabled: !!agentId && arbi.isLoggedIn,
358
371
  refetchInterval: 5e3
@@ -361,10 +374,10 @@ function useAgentChats(agentId) {
361
374
  function refreshAgentSession(qc, agentId) {
362
375
  return Promise.all(
363
376
  [
364
- chunkUTZZMUHI_cjs.arbiQueryKeys.agentSession(agentId),
365
- chunkUTZZMUHI_cjs.arbiQueryKeys.agentWorkspaces(agentId),
366
- chunkUTZZMUHI_cjs.arbiQueryKeys.agentChats(agentId),
367
- chunkUTZZMUHI_cjs.arbiQueryKeys.sessions()
377
+ chunkE5XFVK4I_cjs.arbiQueryKeys.agentSession(agentId),
378
+ chunkE5XFVK4I_cjs.arbiQueryKeys.agentWorkspaces(agentId),
379
+ chunkE5XFVK4I_cjs.arbiQueryKeys.agentChats(agentId),
380
+ chunkE5XFVK4I_cjs.arbiQueryKeys.sessions()
368
381
  ].map((queryKey) => qc.invalidateQueries({ queryKey }))
369
382
  );
370
383
  }
@@ -511,8 +524,8 @@ function useArbiChat(options = {}) {
511
524
  const recoveryIntervalMs = streamRecovery?.intervalMs ?? 3e3;
512
525
  const recoveryTimeoutMs = streamRecovery?.timeoutMs ?? 12e4;
513
526
  const arbi = chunkR2MF7YCW_cjs.useArbi();
514
- const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkUTZZMUHI_cjs.useDocuments(workspaceId);
515
- const ordinaryHistory = chunkUTZZMUHI_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
527
+ const { data: docs = [], isLoading: isLoadingDocuments, refetch } = chunkE5XFVK4I_cjs.useDocuments(workspaceId);
528
+ const ordinaryHistory = chunkE5XFVK4I_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
516
529
  const agentHistory = useAgentChats(agentId);
517
530
  const stored = React.useMemo(
518
531
  () => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
@@ -527,7 +540,7 @@ function useArbiChat(options = {}) {
527
540
  );
528
541
  const isLoadingThreads = agentId ? agentHistory.isLoading : ordinaryHistory.isLoading;
529
542
  const refetchConversations = agentId ? agentHistory.refetch : ordinaryHistory.refetch;
530
- const query = chunkUTZZMUHI_cjs.useAssistantQuery();
543
+ const query = chunkE5XFVK4I_cjs.useAssistantQuery();
531
544
  const { mutateAsync } = query;
532
545
  const [stagedFiles, setStagedFiles] = React.useState([]);
533
546
  const [threads, setThreads] = React.useState(() => [emptyThread()]);
@@ -587,7 +600,7 @@ function useArbiChat(options = {}) {
587
600
  (conversation) => conversation.external_id === active.conversationId && conversation.status === "generating"
588
601
  ) || active.messages.some((message) => message.status === "streaming");
589
602
  const needsLoad = !!active.conversationId && !active.isLoaded;
590
- const loaded = chunkUTZZMUHI_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
603
+ const loaded = chunkE5XFVK4I_cjs.useConversationThreads(workspaceId, active.conversationId ?? void 0, {
591
604
  enabled: needsLoad || liveHistory && !isRunning && !isPostingComment,
592
605
  live: liveHistory
593
606
  });
@@ -1368,14 +1381,14 @@ function useArbiDocumentSync(workspaceId) {
1368
1381
  if (!workspaceId) return;
1369
1382
  if (client.isMessageType(msg, "batch_complete")) {
1370
1383
  if (msg.workspace_ext_id !== workspaceId) return;
1371
- void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(workspaceId) });
1372
- void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.tags(workspaceId) });
1384
+ void queryClient.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.documents(workspaceId) });
1385
+ void queryClient.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.tags(workspaceId) });
1373
1386
  return;
1374
1387
  }
1375
1388
  if (client.isMessageType(msg, "task_update")) {
1376
1389
  if (msg.workspace_ext_id !== workspaceId) return;
1377
1390
  if (TERMINAL_STATUSES.has(msg.status)) {
1378
- void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(workspaceId) });
1391
+ void queryClient.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.documents(workspaceId) });
1379
1392
  }
1380
1393
  }
1381
1394
  });
@@ -1504,7 +1517,7 @@ function useShellWorkspaces(options) {
1504
1517
  }
1505
1518
  function useArbiShellWorkspaces(options = {}) {
1506
1519
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1507
- const query = chunkUTZZMUHI_cjs.useWorkspaces();
1520
+ const query = chunkE5XFVK4I_cjs.useWorkspaces();
1508
1521
  const { select, ...rest } = options;
1509
1522
  const defaultSelect = React.useCallback(
1510
1523
  (workspace) => arbi.selectWorkspace(workspace.id),
@@ -1520,8 +1533,8 @@ function useArbiShellWorkspaces(options = {}) {
1520
1533
  }
1521
1534
  function invalidateTagData(qc, workspaceId) {
1522
1535
  return Promise.all([
1523
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.tags(workspaceId) }),
1524
- qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.facts(workspaceId) })
1536
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.tags(workspaceId) }),
1537
+ qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.facts(workspaceId) })
1525
1538
  ]);
1526
1539
  }
1527
1540
  function useInvalidateTagData() {
@@ -1536,7 +1549,7 @@ function useTagKindSchema(kind, options) {
1536
1549
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1537
1550
  const workspaceId = arbi.getWorkspaceId() ?? "";
1538
1551
  return reactQuery.useQuery({
1539
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
1552
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.tagKind(workspaceId, kind ?? ""),
1540
1553
  queryFn: () => arbi.tagKinds.get(kind),
1541
1554
  enabled: (options?.enabled ?? true) && !!kind && !!workspaceId && arbi.hasWorkspace
1542
1555
  });
@@ -1552,7 +1565,7 @@ function useUpdateTagKindSchema() {
1552
1565
  onSuccess: (schema) => {
1553
1566
  const workspaceId = arbi.getWorkspaceId();
1554
1567
  if (!workspaceId) return;
1555
- qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
1568
+ qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.tagKind(workspaceId, schema.kind), schema);
1556
1569
  return invalidateTagData(qc, workspaceId);
1557
1570
  }
1558
1571
  });
@@ -1571,7 +1584,7 @@ function useSetTagValues() {
1571
1584
  function useFilteredProjects(filters, options) {
1572
1585
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1573
1586
  return reactQuery.useQuery({
1574
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
1587
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.projectsFiltered(filters.stage, filters.leadUser),
1575
1588
  queryFn: () => arbi.projects.list(filters),
1576
1589
  enabled: options?.enabled ?? arbi.isLoggedIn
1577
1590
  });
@@ -1584,14 +1597,14 @@ function useUpdateProjectFields() {
1584
1597
  projectExtId,
1585
1598
  patch
1586
1599
  }) => arbi.projects.update(projectExtId, patch),
1587
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.projects() })
1600
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.projects() })
1588
1601
  });
1589
1602
  }
1590
1603
  function useProjectEvents(projectExtId, options) {
1591
1604
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1592
1605
  return reactQuery.useQuery({
1593
1606
  queryKey: [
1594
- ...chunkUTZZMUHI_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
1607
+ ...chunkE5XFVK4I_cjs.arbiQueryKeys.projectEvents(projectExtId ?? ""),
1595
1608
  options?.kind ?? "all",
1596
1609
  options?.limit ?? "default"
1597
1610
  ],
@@ -1602,7 +1615,7 @@ function useProjectEvents(projectExtId, options) {
1602
1615
  function useConversationUsage(conversationId, options) {
1603
1616
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1604
1617
  return reactQuery.useQuery({
1605
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
1618
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.conversationUsage(conversationId ?? ""),
1606
1619
  queryFn: () => arbi.conversations.usage(conversationId),
1607
1620
  enabled: (options?.enabled ?? true) && !!conversationId && arbi.isLoggedIn,
1608
1621
  refetchInterval: options?.live ? 1e4 : false
@@ -1611,7 +1624,7 @@ function useConversationUsage(conversationId, options) {
1611
1624
  function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
1612
1625
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1613
1626
  return reactQuery.useQuery({
1614
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
1627
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.projectConversationUsage(projectExtId ?? "", monthsBack),
1615
1628
  queryFn: () => arbi.projects.usageByConversation(projectExtId, monthsBack),
1616
1629
  enabled: (options?.enabled ?? true) && !!projectExtId && arbi.isLoggedIn
1617
1630
  });
@@ -1619,7 +1632,7 @@ function useProjectConversationUsage(projectExtId, monthsBack = 0, options) {
1619
1632
  function useContacts(options) {
1620
1633
  const arbi = chunkR2MF7YCW_cjs.useArbi();
1621
1634
  return reactQuery.useQuery({
1622
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.contacts(),
1635
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.contacts(),
1623
1636
  queryFn: () => arbi.contacts.list(),
1624
1637
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
1625
1638
  });
@@ -1634,7 +1647,7 @@ function usePendingContacts(options) {
1634
1647
  }
1635
1648
  function useInvalidateContacts() {
1636
1649
  const qc = reactQuery.useQueryClient();
1637
- return () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.contacts() });
1650
+ return () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.contacts() });
1638
1651
  }
1639
1652
  function useInviteContacts() {
1640
1653
  const arbi = chunkR2MF7YCW_cjs.useArbi();
@@ -1763,11 +1776,11 @@ function useProfile(options) {
1763
1776
  const { client, enabled } = useAccountClient();
1764
1777
  const qc = reactQuery.useQueryClient();
1765
1778
  React.useEffect(
1766
- () => client.onProfileChange(() => qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.profile(), client.profile())),
1779
+ () => client.onProfileChange(() => qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.profile(), client.profile())),
1767
1780
  [client, qc]
1768
1781
  );
1769
1782
  return reactQuery.useQuery({
1770
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.profile(),
1783
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.profile(),
1771
1784
  queryFn: () => client.profile(),
1772
1785
  enabled: (options?.enabled ?? true) && enabled,
1773
1786
  staleTime: Infinity
@@ -1782,9 +1795,9 @@ function useUpdateProfile() {
1782
1795
  return client.profile();
1783
1796
  },
1784
1797
  onSuccess: (profile) => {
1785
- qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.profile(), profile);
1786
- void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.identity() });
1787
- return qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workspaces() });
1798
+ qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.profile(), profile);
1799
+ void qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.identity() });
1800
+ return qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workspaces() });
1788
1801
  }
1789
1802
  });
1790
1803
  }
@@ -1867,7 +1880,7 @@ function useConfirmEmailChange() {
1867
1880
  const qc = reactQuery.useQueryClient();
1868
1881
  return reactQuery.useMutation({
1869
1882
  mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
1870
- onSuccess: () => qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.profile(), client.profile())
1883
+ onSuccess: () => qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.profile(), client.profile())
1871
1884
  });
1872
1885
  }
1873
1886
  function useEmailChange({
@@ -2035,7 +2048,7 @@ function toNotificationPreferences(stored, keys) {
2035
2048
  function useUserSettings(options) {
2036
2049
  const arbi = chunkR2MF7YCW_cjs.useArbi();
2037
2050
  return reactQuery.useQuery({
2038
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(),
2051
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings(),
2039
2052
  queryFn: () => arbi.settings.get(),
2040
2053
  enabled: (options?.enabled ?? true) && arbi.isLoggedIn
2041
2054
  });
@@ -2048,18 +2061,18 @@ function useNotificationPreferences(keys, options) {
2048
2061
  const save = reactQuery.useMutation({
2049
2062
  mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
2050
2063
  onMutate: async (patch) => {
2051
- await qc.cancelQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() });
2052
- const previous = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings());
2064
+ await qc.cancelQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings() });
2065
+ const previous = qc.getQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings());
2053
2066
  qc.setQueryData(
2054
- chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(),
2067
+ chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings(),
2055
2068
  (old) => old ? { ...old, email_notifications: { ...old.email_notifications, ...patch } } : old
2056
2069
  );
2057
2070
  return { previous };
2058
2071
  },
2059
2072
  onError: (_err, _patch, context) => {
2060
- qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(), context?.previous);
2073
+ qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings(), context?.previous);
2061
2074
  },
2062
- onSettled: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() })
2075
+ onSettled: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings() })
2063
2076
  });
2064
2077
  const model = React.useMemo(() => toNotificationPreferences(stored, keys), [stored, keys]);
2065
2078
  const setAll = React.useCallback(
@@ -2086,18 +2099,18 @@ function useRelevanceSave() {
2086
2099
  return reactQuery.useMutation({
2087
2100
  mutationFn: (patch) => arbi.settings.update(patch),
2088
2101
  onMutate: async (patch) => {
2089
- await qc.cancelQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() });
2090
- const previous = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings());
2102
+ await qc.cancelQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings() });
2103
+ const previous = qc.getQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings());
2091
2104
  qc.setQueryData(
2092
- chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(),
2105
+ chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings(),
2093
2106
  (old) => old ? { ...old, ...patch } : old
2094
2107
  );
2095
2108
  return { previous };
2096
2109
  },
2097
2110
  onError: (_err, _patch, context) => {
2098
- qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings(), context?.previous);
2111
+ qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings(), context?.previous);
2099
2112
  },
2100
- onSettled: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings() })
2113
+ onSettled: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings() })
2101
2114
  });
2102
2115
  }
2103
2116
  function useWorkspaceNotificationLevel(workspaceId, options) {
@@ -2108,7 +2121,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
2108
2121
  const setLevel = React.useCallback(
2109
2122
  (next) => {
2110
2123
  if (!workspaceId) return;
2111
- const current = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2124
+ const current = qc.getQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2112
2125
  save.mutate(browser.settings.workspaceLevelPatch(current, workspaceId, next));
2113
2126
  },
2114
2127
  [qc, save, settings.data, workspaceId]
@@ -2129,7 +2142,7 @@ function useFollowThread(conversationId, options) {
2129
2142
  const setFollowing = React.useCallback(
2130
2143
  (on, callbacks) => {
2131
2144
  if (!conversationId) return;
2132
- const current = qc.getQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2145
+ const current = qc.getQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.userSettings()) ?? settings.data;
2133
2146
  save.mutate(
2134
2147
  {
2135
2148
  followed_threads: browser.settings.withMembership(
@@ -2154,7 +2167,7 @@ function useFollowThread(conversationId, options) {
2154
2167
  function useSessions(options) {
2155
2168
  const { client, enabled } = useAccountClient();
2156
2169
  return reactQuery.useQuery({
2157
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.sessions(),
2170
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.sessions(),
2158
2171
  queryFn: () => client.listSessions(),
2159
2172
  enabled: (options?.enabled ?? true) && enabled
2160
2173
  });
@@ -2164,7 +2177,7 @@ function useTerminateSession() {
2164
2177
  const qc = reactQuery.useQueryClient();
2165
2178
  return reactQuery.useMutation({
2166
2179
  mutationFn: (sessionId) => client.terminateSession(sessionId),
2167
- onSuccess: () => qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.sessions() })
2180
+ onSuccess: () => qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.sessions() })
2168
2181
  });
2169
2182
  }
2170
2183
  function useSignOut() {
@@ -2307,7 +2320,7 @@ function useIdentityVerificationFlow(api, {
2307
2320
  const apiRef = React.useRef(api);
2308
2321
  apiRef.current = api;
2309
2322
  const query = reactQuery.useQuery({
2310
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.identity(),
2323
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.identity(),
2311
2324
  queryFn: () => apiRef.current.status(),
2312
2325
  enabled,
2313
2326
  staleTime: 6e4
@@ -2325,7 +2338,7 @@ function useIdentityVerificationFlow(api, {
2325
2338
  const lastVerified = React.useRef(void 0);
2326
2339
  const apply = React.useCallback(
2327
2340
  (next) => {
2328
- qc.setQueryData(chunkUTZZMUHI_cjs.arbiQueryKeys.identity(), next);
2341
+ qc.setQueryData(chunkE5XFVK4I_cjs.arbiQueryKeys.identity(), next);
2329
2342
  if (lastVerified.current !== void 0 && lastVerified.current !== next.verified) {
2330
2343
  onVerifiedChange?.(next.verified);
2331
2344
  }
@@ -2520,12 +2533,12 @@ function useIdentityVerification(options = {}) {
2520
2533
  enabled,
2521
2534
  formatPrice,
2522
2535
  onVerifiedChange: (verified) => {
2523
- void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.profile() });
2536
+ void qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.profile() });
2524
2537
  onVerifiedChange?.(verified);
2525
2538
  },
2526
2539
  onNameAccepted: (name) => {
2527
- void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.profile() });
2528
- void qc.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.workspaces() });
2540
+ void qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.profile() });
2541
+ void qc.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.workspaces() });
2529
2542
  onNameAccepted?.(name);
2530
2543
  }
2531
2544
  });
@@ -2943,7 +2956,7 @@ function useMailDraftReplaced(draftId, onReplaced) {
2943
2956
  }, [draftId]);
2944
2957
  }
2945
2958
  function useWorkspaceDocs(workspaceId) {
2946
- const { data: docs = [], isLoading, isError } = chunkUTZZMUHI_cjs.useDocuments(workspaceId);
2959
+ const { data: docs = [], isLoading, isError } = chunkE5XFVK4I_cjs.useDocuments(workspaceId);
2947
2960
  const docIds = React.useMemo(
2948
2961
  () => docs.map((d) => d.external_id).filter((id) => !!id),
2949
2962
  [docs]
@@ -2951,7 +2964,7 @@ function useWorkspaceDocs(workspaceId) {
2951
2964
  return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
2952
2965
  }
2953
2966
  function useAiTask() {
2954
- const mutation = chunkUTZZMUHI_cjs.useAssistantQuery();
2967
+ const mutation = chunkE5XFVK4I_cjs.useAssistantQuery();
2955
2968
  const [status, setStatus] = React.useState("idle");
2956
2969
  const [text, setText] = React.useState("");
2957
2970
  const [stepCount, setStepCount] = React.useState(0);
@@ -3571,8 +3584,8 @@ function DocumentReview({
3571
3584
  onClose,
3572
3585
  className
3573
3586
  }) {
3574
- const parsedQuery = chunkUTZZMUHI_cjs.useParsedDocument(docId, stage);
3575
- const tagsQuery = chunkUTZZMUHI_cjs.useTags(workspaceId);
3587
+ const parsedQuery = chunkE5XFVK4I_cjs.useParsedDocument(docId, stage);
3588
+ const tagsQuery = chunkE5XFVK4I_cjs.useTags(workspaceId);
3576
3589
  const tagNameById = React__default.default.useMemo(() => {
3577
3590
  const map = /* @__PURE__ */ new Map();
3578
3591
  for (const t of tagsQuery.data ?? []) {
@@ -3803,7 +3816,7 @@ function SemanticSearch({
3803
3816
  const { results, status, error, search, isRunning, query } = useSemanticSearch(docIds);
3804
3817
  const [value, setValue] = React.useState("");
3805
3818
  const [selected, setSelected] = React.useState(null);
3806
- const { data: docs = [] } = chunkUTZZMUHI_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
3819
+ const { data: docs = [] } = chunkE5XFVK4I_cjs.useDocuments(workspaceId, { enabled: !!workspaceId });
3807
3820
  const docMap = React.useMemo(() => {
3808
3821
  const map = /* @__PURE__ */ new Map();
3809
3822
  for (const d of docs) if (d.external_id) map.set(d.external_id, d);
@@ -4905,7 +4918,7 @@ function ActivityFeed({
4905
4918
  enabled,
4906
4919
  "data-testid": testId = "activity-feed"
4907
4920
  }) {
4908
- const { data, isLoading, isError } = chunkUTZZMUHI_cjs.useActivity({ limit, enabled });
4921
+ const { data, isLoading, isError } = chunkE5XFVK4I_cjs.useActivity({ limit, enabled });
4909
4922
  if (isLoading) {
4910
4923
  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: [
4911
4924
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
@@ -5063,7 +5076,7 @@ function useDirectMessages(options) {
5063
5076
  enabled
5064
5077
  });
5065
5078
  const contactsQuery = reactQuery.useQuery({
5066
- queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.contacts(),
5079
+ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.contacts(),
5067
5080
  queryFn: () => arbi.contacts.list(),
5068
5081
  enabled
5069
5082
  });
@@ -6332,10 +6345,10 @@ function DocumentTable({
6332
6345
  extraColumns,
6333
6346
  className
6334
6347
  }) {
6335
- const query = chunkUTZZMUHI_cjs.useDocuments(workspaceId, { enabled: !documents });
6348
+ const query = chunkE5XFVK4I_cjs.useDocuments(workspaceId, { enabled: !documents });
6336
6349
  const rows = documents ?? query.data ?? [];
6337
6350
  const isLoading = !documents && query.isLoading;
6338
- const tagsQuery = chunkUTZZMUHI_cjs.useTags(workspaceId);
6351
+ const tagsQuery = chunkE5XFVK4I_cjs.useTags(workspaceId);
6339
6352
  const tagNameById = React__default.default.useMemo(() => {
6340
6353
  const map = /* @__PURE__ */ new Map();
6341
6354
  for (const t of tagsQuery.data ?? []) {
@@ -6516,7 +6529,7 @@ function DocumentCardMenu({
6516
6529
  const invalidateDocuments = () => {
6517
6530
  const workspaceId = arbi.getWorkspaceId();
6518
6531
  if (workspaceId) {
6519
- void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(workspaceId) });
6532
+ void queryClient.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.documents(workspaceId) });
6520
6533
  }
6521
6534
  };
6522
6535
  const download = reactQuery.useMutation({
@@ -6615,10 +6628,10 @@ function DocumentGallery({
6615
6628
  minTileWidth = 148,
6616
6629
  className
6617
6630
  }) {
6618
- const query = chunkUTZZMUHI_cjs.useDocuments(workspaceId, { enabled: !documents });
6631
+ const query = chunkE5XFVK4I_cjs.useDocuments(workspaceId, { enabled: !documents });
6619
6632
  const rows = documents ?? query.data ?? [];
6620
6633
  const isLoading = !documents && query.isLoading;
6621
- const tagsQuery = chunkUTZZMUHI_cjs.useTags(workspaceId);
6634
+ const tagsQuery = chunkE5XFVK4I_cjs.useTags(workspaceId);
6622
6635
  const tagNameById = React__default.default.useMemo(() => {
6623
6636
  const map = /* @__PURE__ */ new Map();
6624
6637
  for (const t of tagsQuery.data ?? []) {
@@ -6630,7 +6643,7 @@ function DocumentGallery({
6630
6643
  () => rows.map((d) => d.external_id).filter((id) => !!id),
6631
6644
  [rows]
6632
6645
  );
6633
- const thumbsQuery = chunkUTZZMUHI_cjs.useThumbnails(docIds);
6646
+ const thumbsQuery = chunkE5XFVK4I_cjs.useThumbnails(docIds);
6634
6647
  const thumbs = thumbsQuery.data ?? {};
6635
6648
  const session = useArbiSessionStore();
6636
6649
  const storeSelected = useArbiSessionState((s) => s.selectedDocumentIds);
@@ -6666,7 +6679,7 @@ function DocumentGallery({
6666
6679
  setRenamingId(null);
6667
6680
  const activeWorkspace = workspaceId ?? arbi.getWorkspaceId();
6668
6681
  if (activeWorkspace) {
6669
- void queryClient.invalidateQueries({ queryKey: chunkUTZZMUHI_cjs.arbiQueryKeys.documents(activeWorkspace) });
6682
+ void queryClient.invalidateQueries({ queryKey: chunkE5XFVK4I_cjs.arbiQueryKeys.documents(activeWorkspace) });
6670
6683
  }
6671
6684
  }
6672
6685
  });
@@ -7284,115 +7297,119 @@ function hasVideoTrack(blob) {
7284
7297
 
7285
7298
  Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
7286
7299
  enumerable: true,
7287
- get: function () { return chunkUTZZMUHI_cjs.PROJECT_CREATION_DENIED_REASON; }
7300
+ get: function () { return chunkE5XFVK4I_cjs.PROJECT_CREATION_DENIED_REASON; }
7301
+ });
7302
+ Object.defineProperty(exports, "arbiMutationKeys", {
7303
+ enumerable: true,
7304
+ get: function () { return chunkE5XFVK4I_cjs.arbiMutationKeys; }
7288
7305
  });
7289
7306
  Object.defineProperty(exports, "arbiQueryKeys", {
7290
7307
  enumerable: true,
7291
- get: function () { return chunkUTZZMUHI_cjs.arbiQueryKeys; }
7308
+ get: function () { return chunkE5XFVK4I_cjs.arbiQueryKeys; }
7292
7309
  });
7293
7310
  Object.defineProperty(exports, "isUsageMetered", {
7294
7311
  enumerable: true,
7295
- get: function () { return chunkUTZZMUHI_cjs.isUsageMetered; }
7312
+ get: function () { return chunkE5XFVK4I_cjs.isUsageMetered; }
7296
7313
  });
7297
7314
  Object.defineProperty(exports, "useActivity", {
7298
7315
  enumerable: true,
7299
- get: function () { return chunkUTZZMUHI_cjs.useActivity; }
7316
+ get: function () { return chunkE5XFVK4I_cjs.useActivity; }
7300
7317
  });
7301
7318
  Object.defineProperty(exports, "useAgents", {
7302
7319
  enumerable: true,
7303
- get: function () { return chunkUTZZMUHI_cjs.useAgents; }
7320
+ get: function () { return chunkE5XFVK4I_cjs.useAgents; }
7304
7321
  });
7305
7322
  Object.defineProperty(exports, "useAssistantQuery", {
7306
7323
  enumerable: true,
7307
- get: function () { return chunkUTZZMUHI_cjs.useAssistantQuery; }
7324
+ get: function () { return chunkE5XFVK4I_cjs.useAssistantQuery; }
7308
7325
  });
7309
7326
  Object.defineProperty(exports, "useCanCreateProjects", {
7310
7327
  enumerable: true,
7311
- get: function () { return chunkUTZZMUHI_cjs.useCanCreateProjects; }
7328
+ get: function () { return chunkE5XFVK4I_cjs.useCanCreateProjects; }
7312
7329
  });
7313
7330
  Object.defineProperty(exports, "useConfigs", {
7314
7331
  enumerable: true,
7315
- get: function () { return chunkUTZZMUHI_cjs.useConfigs; }
7332
+ get: function () { return chunkE5XFVK4I_cjs.useConfigs; }
7316
7333
  });
7317
7334
  Object.defineProperty(exports, "useConversationThreads", {
7318
7335
  enumerable: true,
7319
- get: function () { return chunkUTZZMUHI_cjs.useConversationThreads; }
7336
+ get: function () { return chunkE5XFVK4I_cjs.useConversationThreads; }
7320
7337
  });
7321
7338
  Object.defineProperty(exports, "useConversations", {
7322
7339
  enumerable: true,
7323
- get: function () { return chunkUTZZMUHI_cjs.useConversations; }
7340
+ get: function () { return chunkE5XFVK4I_cjs.useConversations; }
7324
7341
  });
7325
7342
  Object.defineProperty(exports, "useCurrentUser", {
7326
7343
  enumerable: true,
7327
- get: function () { return chunkUTZZMUHI_cjs.useCurrentUser; }
7344
+ get: function () { return chunkE5XFVK4I_cjs.useCurrentUser; }
7328
7345
  });
7329
7346
  Object.defineProperty(exports, "useDeleteAgents", {
7330
7347
  enumerable: true,
7331
- get: function () { return chunkUTZZMUHI_cjs.useDeleteAgents; }
7348
+ get: function () { return chunkE5XFVK4I_cjs.useDeleteAgents; }
7332
7349
  });
7333
7350
  Object.defineProperty(exports, "useDocuments", {
7334
7351
  enumerable: true,
7335
- get: function () { return chunkUTZZMUHI_cjs.useDocuments; }
7352
+ get: function () { return chunkE5XFVK4I_cjs.useDocuments; }
7336
7353
  });
7337
7354
  Object.defineProperty(exports, "useFacts", {
7338
7355
  enumerable: true,
7339
- get: function () { return chunkUTZZMUHI_cjs.useFacts; }
7356
+ get: function () { return chunkE5XFVK4I_cjs.useFacts; }
7340
7357
  });
7341
7358
  Object.defineProperty(exports, "useFirmPool", {
7342
7359
  enumerable: true,
7343
- get: function () { return chunkUTZZMUHI_cjs.useFirmPool; }
7360
+ get: function () { return chunkE5XFVK4I_cjs.useFirmPool; }
7344
7361
  });
7345
7362
  Object.defineProperty(exports, "useHealth", {
7346
7363
  enumerable: true,
7347
- get: function () { return chunkUTZZMUHI_cjs.useHealth; }
7364
+ get: function () { return chunkE5XFVK4I_cjs.useHealth; }
7348
7365
  });
7349
7366
  Object.defineProperty(exports, "useParsedDocument", {
7350
7367
  enumerable: true,
7351
- get: function () { return chunkUTZZMUHI_cjs.useParsedDocument; }
7368
+ get: function () { return chunkE5XFVK4I_cjs.useParsedDocument; }
7352
7369
  });
7353
7370
  Object.defineProperty(exports, "useProjectInvoices", {
7354
7371
  enumerable: true,
7355
- get: function () { return chunkUTZZMUHI_cjs.useProjectInvoices; }
7372
+ get: function () { return chunkE5XFVK4I_cjs.useProjectInvoices; }
7356
7373
  });
7357
7374
  Object.defineProperty(exports, "useProjectUsage", {
7358
7375
  enumerable: true,
7359
- get: function () { return chunkUTZZMUHI_cjs.useProjectUsage; }
7376
+ get: function () { return chunkE5XFVK4I_cjs.useProjectUsage; }
7360
7377
  });
7361
7378
  Object.defineProperty(exports, "useProjects", {
7362
7379
  enumerable: true,
7363
- get: function () { return chunkUTZZMUHI_cjs.useProjects; }
7380
+ get: function () { return chunkE5XFVK4I_cjs.useProjects; }
7364
7381
  });
7365
7382
  Object.defineProperty(exports, "useProjectsUsage", {
7366
7383
  enumerable: true,
7367
- get: function () { return chunkUTZZMUHI_cjs.useProjectsUsage; }
7384
+ get: function () { return chunkE5XFVK4I_cjs.useProjectsUsage; }
7368
7385
  });
7369
7386
  Object.defineProperty(exports, "useTags", {
7370
7387
  enumerable: true,
7371
- get: function () { return chunkUTZZMUHI_cjs.useTags; }
7388
+ get: function () { return chunkE5XFVK4I_cjs.useTags; }
7372
7389
  });
7373
7390
  Object.defineProperty(exports, "useThumbnails", {
7374
7391
  enumerable: true,
7375
- get: function () { return chunkUTZZMUHI_cjs.useThumbnails; }
7392
+ get: function () { return chunkE5XFVK4I_cjs.useThumbnails; }
7376
7393
  });
7377
7394
  Object.defineProperty(exports, "useTopUpFirmPool", {
7378
7395
  enumerable: true,
7379
- get: function () { return chunkUTZZMUHI_cjs.useTopUpFirmPool; }
7396
+ get: function () { return chunkE5XFVK4I_cjs.useTopUpFirmPool; }
7380
7397
  });
7381
7398
  Object.defineProperty(exports, "useUserUsageToday", {
7382
7399
  enumerable: true,
7383
- get: function () { return chunkUTZZMUHI_cjs.useUserUsageToday; }
7400
+ get: function () { return chunkE5XFVK4I_cjs.useUserUsageToday; }
7384
7401
  });
7385
7402
  Object.defineProperty(exports, "useWorkspaceActivity", {
7386
7403
  enumerable: true,
7387
- get: function () { return chunkUTZZMUHI_cjs.useWorkspaceActivity; }
7404
+ get: function () { return chunkE5XFVK4I_cjs.useWorkspaceActivity; }
7388
7405
  });
7389
7406
  Object.defineProperty(exports, "useWorkspaceUsers", {
7390
7407
  enumerable: true,
7391
- get: function () { return chunkUTZZMUHI_cjs.useWorkspaceUsers; }
7408
+ get: function () { return chunkE5XFVK4I_cjs.useWorkspaceUsers; }
7392
7409
  });
7393
7410
  Object.defineProperty(exports, "useWorkspaces", {
7394
7411
  enumerable: true,
7395
- get: function () { return chunkUTZZMUHI_cjs.useWorkspaces; }
7412
+ get: function () { return chunkE5XFVK4I_cjs.useWorkspaces; }
7396
7413
  });
7397
7414
  Object.defineProperty(exports, "cleanDraftMarkdown", {
7398
7415
  enumerable: true,
@@ -8446,6 +8463,7 @@ exports.useUploadSkillFiles = useUploadSkillFiles;
8446
8463
  exports.useUserSettings = useUserSettings;
8447
8464
  exports.useVideoRecorder = useVideoRecorder;
8448
8465
  exports.useWorkNotifications = useWorkNotifications;
8466
+ exports.useWorkflowRuns = useWorkflowRuns;
8449
8467
  exports.useWorkflows = useWorkflows;
8450
8468
  exports.useWorkspaceDocs = useWorkspaceDocs;
8451
8469
  exports.useWorkspaceNotificationLevel = useWorkspaceNotificationLevel;