@arbidocs/react 0.5.125 → 0.5.127
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 +81 -38
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.ts +3 -0
- package/dist/artifacts/useArtifactSession.js +48 -4
- package/dist/artifacts/useArtifactSession.js.map +2 -2
- package/dist/artifacts/versions.js +2 -1
- package/dist/artifacts/versions.js.map +2 -2
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/chat/turn-flush.js +3 -3
- package/dist/chat/turn-flush.js.map +2 -2
- package/dist/{chunk-WUYSVTKE.cjs → chunk-6RRKO4ZK.cjs} +4 -4
- package/dist/{chunk-WUYSVTKE.cjs.map → chunk-6RRKO4ZK.cjs.map} +1 -1
- package/dist/{chunk-FAJLJDWS.cjs → chunk-FOBB5U4Y.cjs} +5 -5
- package/dist/{chunk-FAJLJDWS.cjs.map → chunk-FOBB5U4Y.cjs.map} +1 -1
- package/dist/{chunk-3JAEX57E.cjs → chunk-G5DYDBQN.cjs} +4 -4
- package/dist/{chunk-3JAEX57E.cjs.map → chunk-G5DYDBQN.cjs.map} +1 -1
- package/dist/{chunk-7L7QRIQ2.cjs → chunk-H3XHBIZ6.cjs} +5 -5
- package/dist/{chunk-7L7QRIQ2.cjs.map → chunk-H3XHBIZ6.cjs.map} +1 -1
- package/dist/{chunk-NDIKMOBJ.cjs → chunk-KULS4YWP.cjs} +4 -3
- package/dist/chunk-KULS4YWP.cjs.map +1 -0
- package/dist/{chunk-GKGAPU6T.cjs → chunk-NK5KFHXP.cjs} +17 -2
- package/dist/chunk-NK5KFHXP.cjs.map +1 -0
- package/dist/{chunk-K6ELFSG6.cjs → chunk-TNJ5T2MV.cjs} +25 -25
- package/dist/{chunk-K6ELFSG6.cjs.map → chunk-TNJ5T2MV.cjs.map} +1 -1
- package/dist/document-tools/core.cjs +97 -97
- package/dist/document-tools/core.d.ts +1 -0
- package/dist/document-tools/index.cjs +99 -99
- package/dist/index.cjs +809 -806
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -11
- package/dist/remote-control.js +12 -2
- package/dist/remote-control.js.map +2 -2
- package/dist/shell/index.cjs +38 -38
- package/package.json +3 -3
- package/dist/chunk-GKGAPU6T.cjs.map +0 -1
- package/dist/chunk-NDIKMOBJ.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var chunkFOBB5U4Y_cjs = require('./chunk-FOBB5U4Y.cjs');
|
|
5
|
+
var chunkNK5KFHXP_cjs = require('./chunk-NK5KFHXP.cjs');
|
|
6
|
+
var chunkH3XHBIZ6_cjs = require('./chunk-H3XHBIZ6.cjs');
|
|
7
|
+
var chunkG5DYDBQN_cjs = require('./chunk-G5DYDBQN.cjs');
|
|
8
8
|
var chunkO32T7XRD_cjs = require('./chunk-O32T7XRD.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunk6RRKO4ZK_cjs = require('./chunk-6RRKO4ZK.cjs');
|
|
10
10
|
var chunkIX4HOS5Z_cjs = require('./chunk-IX4HOS5Z.cjs');
|
|
11
11
|
var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkKULS4YWP_cjs = require('./chunk-KULS4YWP.cjs');
|
|
13
13
|
require('./chunk-VOFNX4P6.cjs');
|
|
14
14
|
var chunk4NGWDVHD_cjs = require('./chunk-4NGWDVHD.cjs');
|
|
15
15
|
var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
@@ -41,12 +41,12 @@ var ReactMarkdown__default = /*#__PURE__*/_interopDefault(ReactMarkdown);
|
|
|
41
41
|
var Cropper__default = /*#__PURE__*/_interopDefault(Cropper);
|
|
42
42
|
|
|
43
43
|
// src/host/index.ts
|
|
44
|
-
var ArbiHost2 =
|
|
44
|
+
var ArbiHost2 = chunk6RRKO4ZK_cjs.ArbiHost;
|
|
45
45
|
function useCurrentWorkspace() {
|
|
46
|
-
const workspaceId =
|
|
47
|
-
const workspaceStatus =
|
|
48
|
-
const userId =
|
|
49
|
-
const { data: workspaces } =
|
|
46
|
+
const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
47
|
+
const workspaceStatus = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
48
|
+
const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? null;
|
|
49
|
+
const { data: workspaces } = chunkH3XHBIZ6_cjs.useWorkspaces();
|
|
50
50
|
const workspace = workspaceId ? workspaces?.find((w) => w.external_id === workspaceId) : void 0;
|
|
51
51
|
const membership = userId ? workspace?.users?.find((member) => member.user.external_id === userId) : void 0;
|
|
52
52
|
const role = membership?.role ?? null;
|
|
@@ -86,9 +86,9 @@ function holdListPoll(refetch) {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
function useConversationItems() {
|
|
89
|
-
const workspaceId =
|
|
90
|
-
const open =
|
|
91
|
-
const query =
|
|
89
|
+
const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
90
|
+
const open = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
|
|
91
|
+
const query = chunkH3XHBIZ6_cjs.useConversations(workspaceId ?? void 0, { enabled: open });
|
|
92
92
|
const { refetch } = query;
|
|
93
93
|
const all = query.data;
|
|
94
94
|
const tasks = React.useMemo(() => (all ?? []).filter((c) => c.status != null), [all]);
|
|
@@ -109,7 +109,7 @@ function useConversationItems() {
|
|
|
109
109
|
return { conversations: all ?? [], tasks, isLoading: query.isLoading, refetch };
|
|
110
110
|
}
|
|
111
111
|
function useConversationIsShared() {
|
|
112
|
-
const id =
|
|
112
|
+
const id = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
|
|
113
113
|
const { conversations } = useConversationItems();
|
|
114
114
|
return conversations.find((conversation) => conversation.external_id === id)?.is_shared ?? false;
|
|
115
115
|
}
|
|
@@ -140,7 +140,7 @@ var THREAD_LOOKUP_DELAY_MS = 500;
|
|
|
140
140
|
function useStartTaskQuery() {
|
|
141
141
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
142
142
|
const queryClient = reactQuery.useQueryClient();
|
|
143
|
-
const chatModel =
|
|
143
|
+
const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.chatModel);
|
|
144
144
|
const post = reactQuery.useMutation({
|
|
145
145
|
mutationFn: (query) => {
|
|
146
146
|
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.userSettings() }).map(([, settings]) => settings?.last_config).find(Boolean);
|
|
@@ -174,7 +174,7 @@ function useStartTaskQuery() {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
if (!conversationId) return null;
|
|
177
|
-
await
|
|
177
|
+
await chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
178
178
|
return { conversationId };
|
|
179
179
|
};
|
|
180
180
|
return {
|
|
@@ -203,8 +203,8 @@ function useUpdateConversation() {
|
|
|
203
203
|
}) => arbi.conversations.update(conversationId, patch),
|
|
204
204
|
// The list takes the server's version of the row; what hangs off it is read again.
|
|
205
205
|
onSuccess: (updated, { conversationId }) => {
|
|
206
|
-
|
|
207
|
-
return
|
|
206
|
+
chunkFOBB5U4Y_cjs.patchConversation(qc, conversationId, updated);
|
|
207
|
+
return chunkFOBB5U4Y_cjs.invalidateConversationDetails(qc, conversationId);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
@@ -213,7 +213,7 @@ function useDeleteConversation() {
|
|
|
213
213
|
const qc = reactQuery.useQueryClient();
|
|
214
214
|
return reactQuery.useMutation({
|
|
215
215
|
mutationFn: (conversationId) => arbi.conversations.delete(conversationId),
|
|
216
|
-
onSuccess: (_res, conversationId) =>
|
|
216
|
+
onSuccess: (_res, conversationId) => chunkFOBB5U4Y_cjs.removeConversationFromLists(qc, conversationId)
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
function workWorkspace(arbi, workspaceId) {
|
|
@@ -236,7 +236,7 @@ function useCreateWork(options) {
|
|
|
236
236
|
mutationFn: async (body) => {
|
|
237
237
|
const workspaceId = workWorkspace(arbi, named);
|
|
238
238
|
const created = await arbi.conversations.createWork(body, { workspaceId });
|
|
239
|
-
|
|
239
|
+
chunkFOBB5U4Y_cjs.addConversationToList(qc, workspaceId ?? null, created);
|
|
240
240
|
return created;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -248,7 +248,7 @@ function useRunConversation() {
|
|
|
248
248
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
249
249
|
// The server's version replaces the listed one; everything under the conversation is re-read.
|
|
250
250
|
onSuccess: (updated) => {
|
|
251
|
-
if (updated?.external_id)
|
|
251
|
+
if (updated?.external_id) chunkFOBB5U4Y_cjs.patchConversation(qc, updated.external_id, updated);
|
|
252
252
|
return qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allConversations() });
|
|
253
253
|
}
|
|
254
254
|
});
|
|
@@ -264,7 +264,7 @@ function useActOnStep() {
|
|
|
264
264
|
// The server's version of the conversation replaces the listed one; its history is re-read.
|
|
265
265
|
onSuccess: (updated) => {
|
|
266
266
|
if (!updated?.external_id) return;
|
|
267
|
-
|
|
267
|
+
chunkFOBB5U4Y_cjs.patchConversation(qc, updated.external_id, updated);
|
|
268
268
|
invalidateConversationActivity(qc, updated.external_id);
|
|
269
269
|
}
|
|
270
270
|
});
|
|
@@ -1270,9 +1270,9 @@ function assistantLabels(assistantName = ASSISTANT_MENTION_LABEL) {
|
|
|
1270
1270
|
return assistantName.toLowerCase() === ASSISTANT_MENTION_LABEL.toLowerCase() ? [assistantName] : [assistantName, ASSISTANT_MENTION_LABEL];
|
|
1271
1271
|
}
|
|
1272
1272
|
function useLinkMentions() {
|
|
1273
|
-
const assistantName =
|
|
1273
|
+
const assistantName = chunk6RRKO4ZK_cjs.useAssistantName();
|
|
1274
1274
|
return React.useCallback(
|
|
1275
|
-
(content, mentions) =>
|
|
1275
|
+
(content, mentions) => chunk6RRKO4ZK_cjs.linkMentions(content, mentions, [assistantName]),
|
|
1276
1276
|
[assistantName]
|
|
1277
1277
|
);
|
|
1278
1278
|
}
|
|
@@ -1294,28 +1294,15 @@ function cachedAssistantMode(queryClient, conversationId, newMode) {
|
|
|
1294
1294
|
if (!conversationId) return newMode;
|
|
1295
1295
|
const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
|
|
1296
1296
|
if (threads?.assistant_mode) return threads.assistant_mode;
|
|
1297
|
-
return
|
|
1297
|
+
return chunkFOBB5U4Y_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
|
|
1298
1298
|
}
|
|
1299
1299
|
function isCommentToPeople(queryClient, conversationId, content, candidates) {
|
|
1300
|
-
const mentioned =
|
|
1300
|
+
const mentioned = chunk6RRKO4ZK_cjs.extractMentions(content, candidates);
|
|
1301
1301
|
if (mentioned.some((c) => c.kind === "assistant")) return false;
|
|
1302
|
-
if (
|
|
1302
|
+
if (chunkFOBB5U4Y_cjs.isConversationShared(queryClient, conversationId)) return true;
|
|
1303
1303
|
if (mentioned.some((c) => c.kind === "user")) return true;
|
|
1304
1304
|
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned";
|
|
1305
1305
|
}
|
|
1306
|
-
|
|
1307
|
-
// src/chat/turn-flush.ts
|
|
1308
|
-
var flushes = /* @__PURE__ */ new Map();
|
|
1309
|
-
function registerDocumentTurnFlush(documentId, flush) {
|
|
1310
|
-
flushes.set(documentId, flush);
|
|
1311
|
-
return () => {
|
|
1312
|
-
if (flushes.get(documentId) === flush) flushes.delete(documentId);
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
|
-
function flushDocumentForTurn(documentId) {
|
|
1316
|
-
const flush = documentId ? flushes.get(documentId) : void 0;
|
|
1317
|
-
return flush ? flush() : null;
|
|
1318
|
-
}
|
|
1319
1306
|
function isFullConfig(config) {
|
|
1320
1307
|
return config != null && "QueryLLM" in config;
|
|
1321
1308
|
}
|
|
@@ -1404,12 +1391,12 @@ function useSaveConfigField(baseConfigId) {
|
|
|
1404
1391
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
1405
1392
|
const queryClient = reactQuery.useQueryClient();
|
|
1406
1393
|
const saveConfig = useSaveConfig();
|
|
1407
|
-
const { data: defaultConfig } =
|
|
1408
|
-
const chatModel =
|
|
1409
|
-
const { data: userSettings } =
|
|
1394
|
+
const { data: defaultConfig } = chunkH3XHBIZ6_cjs.useConfig("default");
|
|
1395
|
+
const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.chatModel);
|
|
1396
|
+
const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
|
|
1410
1397
|
const activeConfigId = baseConfigId || chatModel || userSettings?.last_config || "default";
|
|
1411
|
-
const { data: activeConfigData } =
|
|
1412
|
-
const session =
|
|
1398
|
+
const { data: activeConfigData } = chunkH3XHBIZ6_cjs.useConfig(activeConfigId);
|
|
1399
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
1413
1400
|
const chain2 = React.useRef(null);
|
|
1414
1401
|
const buildDelta = (changes) => deltaOnto(
|
|
1415
1402
|
changes,
|
|
@@ -1480,8 +1467,8 @@ function pendingChatModelSave(session) {
|
|
|
1480
1467
|
return chatModelSaves.get(session);
|
|
1481
1468
|
}
|
|
1482
1469
|
function useApplyChatModel() {
|
|
1483
|
-
const session =
|
|
1484
|
-
const { data: availableModels } =
|
|
1470
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
1471
|
+
const { data: availableModels } = chunkH3XHBIZ6_cjs.useAvailableModels();
|
|
1485
1472
|
const configField = useSaveConfigField();
|
|
1486
1473
|
return React.useCallback(
|
|
1487
1474
|
async (model, label) => {
|
|
@@ -1529,11 +1516,11 @@ async function agentChatOwnerOf(queryClient, listAgents, conversationId) {
|
|
|
1529
1516
|
|
|
1530
1517
|
// src/chat/thread-binding.ts
|
|
1531
1518
|
function threadBinding(queryClient, conversationId) {
|
|
1532
|
-
if (!conversationId) return
|
|
1533
|
-
const row =
|
|
1534
|
-
if (row) return
|
|
1519
|
+
if (!conversationId) return chunk6RRKO4ZK_cjs.UNBOUND;
|
|
1520
|
+
const row = chunkFOBB5U4Y_cjs.findConversation(queryClient, conversationId);
|
|
1521
|
+
if (row) return chunk6RRKO4ZK_cjs.bindingOfRow(row);
|
|
1535
1522
|
const threads = queryClient.getQueryData(getThreadsQueryKey(conversationId));
|
|
1536
|
-
return
|
|
1523
|
+
return chunk6RRKO4ZK_cjs.bindingOfRow(threads ? { external_id: conversationId, ...threads } : null);
|
|
1537
1524
|
}
|
|
1538
1525
|
function boundDocumentOf(queryClient, state) {
|
|
1539
1526
|
return state.conversationId ? threadBinding(queryClient, state.conversationId).documentId : state.newChatDocumentId;
|
|
@@ -1543,7 +1530,7 @@ function cacheThreadBinding(queryClient, conversationId, binding) {
|
|
|
1543
1530
|
bound_document_ext_id: binding.documentId,
|
|
1544
1531
|
bound_document_unavailable: binding.unavailable
|
|
1545
1532
|
};
|
|
1546
|
-
|
|
1533
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, fields);
|
|
1547
1534
|
queryClient.setQueryData(
|
|
1548
1535
|
getThreadsQueryKey(conversationId),
|
|
1549
1536
|
(old) => old ? { ...old, ...fields } : old
|
|
@@ -1579,8 +1566,8 @@ async function performBindingWrite(arbi, queryClient, conversationId, documentId
|
|
|
1579
1566
|
const saved = await arbi.conversations.update(conversationId, {
|
|
1580
1567
|
bound_document_ext_id: documentId
|
|
1581
1568
|
});
|
|
1582
|
-
|
|
1583
|
-
cacheThreadBinding(queryClient, conversationId,
|
|
1569
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, saved);
|
|
1570
|
+
cacheThreadBinding(queryClient, conversationId, chunk6RRKO4ZK_cjs.bindingOfRow(saved));
|
|
1584
1571
|
} catch (error) {
|
|
1585
1572
|
cacheThreadBinding(queryClient, conversationId, before);
|
|
1586
1573
|
throw error;
|
|
@@ -1592,14 +1579,14 @@ function adoptNewChatDocument(session, queryClient, conversationId, documentId =
|
|
|
1592
1579
|
if (session.getState().newChatDocumentId === documentId) session.setNewChatDocumentId(null);
|
|
1593
1580
|
}
|
|
1594
1581
|
async function migrateLegacyThreadDocuments(arbi, queryClient, conversations) {
|
|
1595
|
-
const legacy =
|
|
1582
|
+
const legacy = chunk6RRKO4ZK_cjs.readLegacyThreadDocuments();
|
|
1596
1583
|
const listed = conversations.filter(
|
|
1597
1584
|
(c) => c.external_id in legacy && "bound_document_unavailable" in c
|
|
1598
1585
|
);
|
|
1599
1586
|
if (listed.length === 0) return;
|
|
1600
1587
|
await Promise.all(
|
|
1601
1588
|
listed.map(async (row) => {
|
|
1602
|
-
const server =
|
|
1589
|
+
const server = chunk6RRKO4ZK_cjs.bindingOfRow(row);
|
|
1603
1590
|
if (server.documentId || server.unavailable) return;
|
|
1604
1591
|
try {
|
|
1605
1592
|
await bindThreadDocument(arbi, queryClient, row.external_id, legacy[row.external_id]);
|
|
@@ -1607,7 +1594,7 @@ async function migrateLegacyThreadDocuments(arbi, queryClient, conversations) {
|
|
|
1607
1594
|
}
|
|
1608
1595
|
})
|
|
1609
1596
|
);
|
|
1610
|
-
|
|
1597
|
+
chunk6RRKO4ZK_cjs.forgetLegacyThreadDocuments(listed.map((c) => c.external_id));
|
|
1611
1598
|
}
|
|
1612
1599
|
function resolveReplyTarget(queryClient, conversationId, parentId) {
|
|
1613
1600
|
if (!parentId) return null;
|
|
@@ -1691,11 +1678,11 @@ var SNAPSHOT_MS = 500;
|
|
|
1691
1678
|
function applyTaskEvent(queryClient, arbi, message, me) {
|
|
1692
1679
|
const workspaceId = message.workspace_ext_id;
|
|
1693
1680
|
if (!workspaceId) return;
|
|
1694
|
-
if (
|
|
1695
|
-
void
|
|
1681
|
+
if (chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(message.status)) {
|
|
1682
|
+
void chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, [message.doc_ext_id]);
|
|
1696
1683
|
return;
|
|
1697
1684
|
}
|
|
1698
|
-
const cached =
|
|
1685
|
+
const cached = chunkNK5KFHXP_cjs.getCachedDocuments(queryClient, workspaceId);
|
|
1699
1686
|
if (!cached || cached.some((d) => d.external_id === message.doc_ext_id)) return;
|
|
1700
1687
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1701
1688
|
const placeholder = {
|
|
@@ -1712,7 +1699,7 @@ function applyTaskEvent(queryClient, arbi, message, me) {
|
|
|
1712
1699
|
created_at: now,
|
|
1713
1700
|
updated_at: now
|
|
1714
1701
|
};
|
|
1715
|
-
|
|
1702
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
1716
1703
|
queryClient,
|
|
1717
1704
|
(old) => old.some((d) => d.external_id === message.doc_ext_id) ? old : [...old, placeholder],
|
|
1718
1705
|
workspaceId
|
|
@@ -1721,14 +1708,14 @@ function applyTaskEvent(queryClient, arbi, message, me) {
|
|
|
1721
1708
|
function useWorkspaceProcessing(workspaceId) {
|
|
1722
1709
|
const queryClient = reactQuery.useQueryClient();
|
|
1723
1710
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
1724
|
-
const [snapshot, setSnapshot] = React.useState(() =>
|
|
1711
|
+
const [snapshot, setSnapshot] = React.useState(() => chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks);
|
|
1725
1712
|
React.useEffect(() => {
|
|
1726
1713
|
let timer = null;
|
|
1727
|
-
const unsubscribe =
|
|
1714
|
+
const unsubscribe = chunkNK5KFHXP_cjs.useArbiWsStore.subscribe((state, previous) => {
|
|
1728
1715
|
if (state.tasks === previous.tasks || timer) return;
|
|
1729
1716
|
timer = setTimeout(() => {
|
|
1730
1717
|
timer = null;
|
|
1731
|
-
setSnapshot(
|
|
1718
|
+
setSnapshot(chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks);
|
|
1732
1719
|
}, SNAPSHOT_MS);
|
|
1733
1720
|
});
|
|
1734
1721
|
return () => {
|
|
@@ -1738,13 +1725,13 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1738
1725
|
}, []);
|
|
1739
1726
|
React.useEffect(() => {
|
|
1740
1727
|
if (!workspaceId) return;
|
|
1741
|
-
const store2 =
|
|
1742
|
-
const documents2 =
|
|
1728
|
+
const store2 = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
|
|
1729
|
+
const documents2 = chunkNK5KFHXP_cjs.getCachedDocuments(queryClient, workspaceId) ?? [];
|
|
1743
1730
|
store2.settleTasks(documents2);
|
|
1744
1731
|
const listed = new Set(documents2.map((d) => d.external_id));
|
|
1745
1732
|
const now = Date.now();
|
|
1746
|
-
for (const task of Object.values(
|
|
1747
|
-
if (task.workspace_ext_id !== workspaceId || !
|
|
1733
|
+
for (const task of Object.values(chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks)) {
|
|
1734
|
+
if (task.workspace_ext_id !== workspaceId || !chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(task.status))
|
|
1748
1735
|
continue;
|
|
1749
1736
|
const since = task.startTime ?? task.endTime;
|
|
1750
1737
|
const age = since == null ? null : now - since;
|
|
@@ -1757,16 +1744,16 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1757
1744
|
if (!workspaceId) return;
|
|
1758
1745
|
const unsubscribeReads = subscribeDocumentReads(
|
|
1759
1746
|
queryClient,
|
|
1760
|
-
(rows) =>
|
|
1747
|
+
(rows) => chunkNK5KFHXP_cjs.useArbiWsStore.getState().settleTasks(rows)
|
|
1761
1748
|
);
|
|
1762
1749
|
const recheck = async () => {
|
|
1763
|
-
const ids2 = Object.values(
|
|
1764
|
-
(t) => t.workspace_ext_id === workspaceId &&
|
|
1750
|
+
const ids2 = Object.values(chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks).filter(
|
|
1751
|
+
(t) => t.workspace_ext_id === workspaceId && chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(t.status)
|
|
1765
1752
|
).map((t) => t.doc_ext_id);
|
|
1766
|
-
if (ids2.length) await
|
|
1753
|
+
if (ids2.length) await chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, ids2);
|
|
1767
1754
|
};
|
|
1768
|
-
let wasConnected =
|
|
1769
|
-
const unsubscribeStatus =
|
|
1755
|
+
let wasConnected = chunkNK5KFHXP_cjs.useArbiWsStore.getState().status === "connected";
|
|
1756
|
+
const unsubscribeStatus = chunkNK5KFHXP_cjs.useArbiWsStore.subscribe((state) => {
|
|
1770
1757
|
const connected = state.status === "connected";
|
|
1771
1758
|
if (connected && !wasConnected) void recheck();
|
|
1772
1759
|
wasConnected = connected;
|
|
@@ -1781,11 +1768,11 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1781
1768
|
const count = (statuses) => allTasks.filter(
|
|
1782
1769
|
(t) => Array.isArray(statuses) ? statuses.includes(t.status) : statuses.has(t.status)
|
|
1783
1770
|
).length;
|
|
1784
|
-
const { clearTask, clearFinishedTasks } =
|
|
1771
|
+
const { clearTask, clearFinishedTasks } = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
|
|
1785
1772
|
return {
|
|
1786
1773
|
tasks: Object.fromEntries(allTasks.map((t) => [t.doc_ext_id, t])),
|
|
1787
1774
|
allTasks,
|
|
1788
|
-
processingCount: count(
|
|
1775
|
+
processingCount: count(chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES),
|
|
1789
1776
|
completedCount: count(["completed", "low-content"]),
|
|
1790
1777
|
failedCount: count(["failed"]),
|
|
1791
1778
|
skippedCount: count(["skipped"]),
|
|
@@ -1797,7 +1784,7 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1797
1784
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1798
1785
|
const byId = new Map(updates.map((update2) => [update2.external_id, update2]));
|
|
1799
1786
|
const previous = [];
|
|
1800
|
-
|
|
1787
|
+
chunkNK5KFHXP_cjs.patchDocuments(qc, (old) => {
|
|
1801
1788
|
let changed = false;
|
|
1802
1789
|
const next = old.map((doc) => {
|
|
1803
1790
|
const update2 = byId.get(doc.external_id);
|
|
@@ -1812,7 +1799,7 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1812
1799
|
const own = qc.getQueryData(
|
|
1813
1800
|
chunkO32T7XRD_cjs.arbiQueryKeys.document(update2.external_id)
|
|
1814
1801
|
);
|
|
1815
|
-
if (own)
|
|
1802
|
+
if (own) chunkNK5KFHXP_cjs.setCachedDocument(qc, { ...own, ...update2 });
|
|
1816
1803
|
return [update2.external_id, own];
|
|
1817
1804
|
});
|
|
1818
1805
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1822,7 +1809,7 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1822
1809
|
if (!edit?.optimistic) return;
|
|
1823
1810
|
if (edit.previous.length) {
|
|
1824
1811
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1825
|
-
|
|
1812
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
1826
1813
|
qc,
|
|
1827
1814
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1828
1815
|
);
|
|
@@ -1832,19 +1819,19 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1832
1819
|
function settleUpdatedDocuments(qc, updated) {
|
|
1833
1820
|
if (!updated.length) return;
|
|
1834
1821
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1835
|
-
|
|
1822
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
1836
1823
|
qc,
|
|
1837
1824
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1838
1825
|
);
|
|
1839
|
-
for (const doc of updated)
|
|
1826
|
+
for (const doc of updated) chunkNK5KFHXP_cjs.setCachedDocument(qc, doc);
|
|
1840
1827
|
}
|
|
1841
1828
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1842
1829
|
const ids2 = new Set(docIds);
|
|
1843
|
-
|
|
1830
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
1844
1831
|
qc,
|
|
1845
1832
|
(old) => old.some((doc) => ids2.has(doc.external_id)) ? old.map((doc) => ids2.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1846
1833
|
);
|
|
1847
|
-
for (const id of ids2)
|
|
1834
|
+
for (const id of ids2) chunkNK5KFHXP_cjs.patchCachedDocument(qc, id, reducer);
|
|
1848
1835
|
}
|
|
1849
1836
|
function workspaceOf(qc, docId) {
|
|
1850
1837
|
for (const [, docs] of qc.getQueriesData({
|
|
@@ -1871,7 +1858,7 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1871
1858
|
...doc,
|
|
1872
1859
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1873
1860
|
}));
|
|
1874
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1861
|
+
for (const [workspaceId, delta] of workspaces) chunkNK5KFHXP_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1875
1862
|
}
|
|
1876
1863
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1877
1864
|
const ids2 = new Set(docIds);
|
|
@@ -1893,7 +1880,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1893
1880
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1894
1881
|
}));
|
|
1895
1882
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1896
|
-
|
|
1883
|
+
chunkNK5KFHXP_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1897
1884
|
}
|
|
1898
1885
|
function settleUpdatedDocTag(qc, updated) {
|
|
1899
1886
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1901,23 +1888,23 @@ function settleUpdatedDocTag(qc, updated) {
|
|
|
1901
1888
|
doctags: (doc.doctags ?? []).map((dt) => dt.tag_ext_id === updated.tag_ext_id ? updated : dt)
|
|
1902
1889
|
}));
|
|
1903
1890
|
}
|
|
1904
|
-
var sendUpdateDocuments = (client, input) =>
|
|
1905
|
-
|
|
1891
|
+
var sendUpdateDocuments = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
1892
|
+
chunkNK5KFHXP_cjs.primeOnClient(client),
|
|
1906
1893
|
input.workspaceId,
|
|
1907
1894
|
() => browser.documents.updateDocuments(client, input.documents)
|
|
1908
1895
|
);
|
|
1909
|
-
var sendAssignDocTags = (client, input) =>
|
|
1910
|
-
|
|
1896
|
+
var sendAssignDocTags = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
1897
|
+
chunkNK5KFHXP_cjs.primeOnClient(client),
|
|
1911
1898
|
input.workspaceId,
|
|
1912
1899
|
() => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations)
|
|
1913
1900
|
);
|
|
1914
|
-
var sendRemoveDocTags = (client, input) =>
|
|
1915
|
-
|
|
1901
|
+
var sendRemoveDocTags = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
1902
|
+
chunkNK5KFHXP_cjs.primeOnClient(client),
|
|
1916
1903
|
input.workspaceId,
|
|
1917
1904
|
() => browser.doctags.removeDocTags(client, input.tagId, input.docIds)
|
|
1918
1905
|
);
|
|
1919
|
-
var sendUpdateDocTag = (client, input) =>
|
|
1920
|
-
|
|
1906
|
+
var sendUpdateDocTag = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
1907
|
+
chunkNK5KFHXP_cjs.primeOnClient(client),
|
|
1921
1908
|
input.workspaceId,
|
|
1922
1909
|
() => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
|
|
1923
1910
|
note: input.note,
|
|
@@ -1970,7 +1957,7 @@ function useMarkDocumentShared() {
|
|
|
1970
1957
|
const qc = reactQuery.useQueryClient();
|
|
1971
1958
|
return React.useCallback(
|
|
1972
1959
|
(documentExtId) => {
|
|
1973
|
-
|
|
1960
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
1974
1961
|
qc,
|
|
1975
1962
|
(old) => old.map((doc) => doc.external_id === documentExtId ? { ...doc, shared: true } : doc)
|
|
1976
1963
|
);
|
|
@@ -1986,21 +1973,21 @@ function useUpdateDocuments() {
|
|
|
1986
1973
|
(input) => input.documents[0]?.external_id
|
|
1987
1974
|
);
|
|
1988
1975
|
return resolvingOffline(
|
|
1989
|
-
|
|
1976
|
+
chunkNK5KFHXP_cjs.useCapturingWorkspace(
|
|
1990
1977
|
reactQuery.useMutation({
|
|
1991
1978
|
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateDocuments(),
|
|
1992
|
-
mutationFn: (input) =>
|
|
1993
|
-
|
|
1979
|
+
mutationFn: (input) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
1980
|
+
chunkNK5KFHXP_cjs.primeOnArbi(arbi),
|
|
1994
1981
|
input.workspaceId,
|
|
1995
1982
|
() => arbi.documents.update(input.documents)
|
|
1996
1983
|
),
|
|
1997
1984
|
onMutate: ({ documents: documents2 }) => reactQuery.onlineManager.isOnline() || !documents2.length ? void 0 : applyOptimisticDocumentEdit(qc, documents2),
|
|
1998
1985
|
// Not sent because its workspace can't be opened: the edit stays, listed as not sent.
|
|
1999
1986
|
onError: (error, _input, context) => {
|
|
2000
|
-
if (!
|
|
1987
|
+
if (!chunkNK5KFHXP_cjs.isWorkspaceUnavailable(error)) rollbackOptimisticDocumentEdit(qc, context);
|
|
2001
1988
|
},
|
|
2002
1989
|
onSuccess: (updated) => settleUpdatedDocuments(qc, updated),
|
|
2003
|
-
...
|
|
1990
|
+
...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
|
|
2004
1991
|
}),
|
|
2005
1992
|
capture
|
|
2006
1993
|
)
|
|
@@ -2026,7 +2013,7 @@ function useRenameFolder() {
|
|
|
2026
2013
|
return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
|
|
2027
2014
|
});
|
|
2028
2015
|
if (updates.length > 0) await mutateAsync({ documents: updates });
|
|
2029
|
-
|
|
2016
|
+
chunkNK5KFHXP_cjs.patchDocuments(qc, (rows) => {
|
|
2030
2017
|
let changed = false;
|
|
2031
2018
|
const next = rows.map((doc) => {
|
|
2032
2019
|
const folder = moved(doc.folder);
|
|
@@ -2049,19 +2036,19 @@ function useDeleteDocuments() {
|
|
|
2049
2036
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
2050
2037
|
onSuccess: (_data, docIds) => {
|
|
2051
2038
|
const gone = new Set(docIds);
|
|
2052
|
-
|
|
2039
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
2053
2040
|
qc,
|
|
2054
2041
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
2055
2042
|
);
|
|
2056
|
-
|
|
2057
|
-
const { clearTask } =
|
|
2043
|
+
chunkNK5KFHXP_cjs.forgetDocuments(qc, docIds);
|
|
2044
|
+
const { clearTask } = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
|
|
2058
2045
|
for (const id of docIds) clearTask(id);
|
|
2059
2046
|
return qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() });
|
|
2060
2047
|
}
|
|
2061
2048
|
});
|
|
2062
2049
|
}
|
|
2063
2050
|
async function settleUpload(qc, arbi, docIds) {
|
|
2064
|
-
if (docIds?.length) await
|
|
2051
|
+
if (docIds?.length) await chunkNK5KFHXP_cjs.refreshDocuments(qc, arbi, docIds);
|
|
2065
2052
|
await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() });
|
|
2066
2053
|
}
|
|
2067
2054
|
function useUploadDocuments() {
|
|
@@ -2091,16 +2078,16 @@ function useAssignDocTags() {
|
|
|
2091
2078
|
const qc = reactQuery.useQueryClient();
|
|
2092
2079
|
const capture = useDocumentWriteWorkspace((input) => input.docIds[0]);
|
|
2093
2080
|
return resolvingOffline(
|
|
2094
|
-
|
|
2081
|
+
chunkNK5KFHXP_cjs.useCapturingWorkspace(
|
|
2095
2082
|
reactQuery.useMutation({
|
|
2096
2083
|
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.assignDocTags(),
|
|
2097
|
-
mutationFn: ({ workspaceId, tagId, docIds, note, citations }) =>
|
|
2098
|
-
|
|
2084
|
+
mutationFn: ({ workspaceId, tagId, docIds, note, citations }) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
2085
|
+
chunkNK5KFHXP_cjs.primeOnArbi(arbi),
|
|
2099
2086
|
workspaceId,
|
|
2100
2087
|
() => arbi.doctags.assign(tagId, docIds, note, citations)
|
|
2101
2088
|
),
|
|
2102
2089
|
onSuccess: (created) => settleAssignedDocTags(qc, created),
|
|
2103
|
-
...
|
|
2090
|
+
...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
|
|
2104
2091
|
}),
|
|
2105
2092
|
capture
|
|
2106
2093
|
)
|
|
@@ -2111,12 +2098,12 @@ function useRemoveDocTags() {
|
|
|
2111
2098
|
const qc = reactQuery.useQueryClient();
|
|
2112
2099
|
const capture = useDocumentWriteWorkspace((input) => input.docIds[0]);
|
|
2113
2100
|
return resolvingOffline(
|
|
2114
|
-
|
|
2101
|
+
chunkNK5KFHXP_cjs.useCapturingWorkspace(
|
|
2115
2102
|
reactQuery.useMutation({
|
|
2116
2103
|
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.removeDocTags(),
|
|
2117
|
-
mutationFn: ({ workspaceId, tagId, docIds }) =>
|
|
2104
|
+
mutationFn: ({ workspaceId, tagId, docIds }) => chunkNK5KFHXP_cjs.inWorkspace(chunkNK5KFHXP_cjs.primeOnArbi(arbi), workspaceId, () => arbi.doctags.remove(tagId, docIds)),
|
|
2118
2105
|
onSuccess: (_data, input) => settleRemovedDocTags(qc, input),
|
|
2119
|
-
...
|
|
2106
|
+
...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
|
|
2120
2107
|
}),
|
|
2121
2108
|
capture
|
|
2122
2109
|
)
|
|
@@ -2127,23 +2114,23 @@ function useUpdateDocTag() {
|
|
|
2127
2114
|
const qc = reactQuery.useQueryClient();
|
|
2128
2115
|
const capture = useDocumentWriteWorkspace((input) => input.docId);
|
|
2129
2116
|
return resolvingOffline(
|
|
2130
|
-
|
|
2117
|
+
chunkNK5KFHXP_cjs.useCapturingWorkspace(
|
|
2131
2118
|
reactQuery.useMutation({
|
|
2132
2119
|
mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateDocTag(),
|
|
2133
|
-
mutationFn: ({ workspaceId, tagId, docId, note, citations }) =>
|
|
2134
|
-
|
|
2120
|
+
mutationFn: ({ workspaceId, tagId, docId, note, citations }) => chunkNK5KFHXP_cjs.inWorkspace(
|
|
2121
|
+
chunkNK5KFHXP_cjs.primeOnArbi(arbi),
|
|
2135
2122
|
workspaceId,
|
|
2136
2123
|
() => arbi.doctags.update(tagId, docId, { note, citations })
|
|
2137
2124
|
),
|
|
2138
2125
|
onSuccess: (updated) => settleUpdatedDocTag(qc, updated),
|
|
2139
|
-
...
|
|
2126
|
+
...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
|
|
2140
2127
|
}),
|
|
2141
2128
|
capture
|
|
2142
2129
|
)
|
|
2143
2130
|
);
|
|
2144
2131
|
}
|
|
2145
2132
|
function queueProcessing(documents2) {
|
|
2146
|
-
const store2 =
|
|
2133
|
+
const store2 = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
|
|
2147
2134
|
const previous = documents2.map(({ docId }) => [docId, store2.tasks[docId]]);
|
|
2148
2135
|
const now = Date.now();
|
|
2149
2136
|
for (const doc of documents2)
|
|
@@ -2156,7 +2143,7 @@ function queueProcessing(documents2) {
|
|
|
2156
2143
|
progress: 0,
|
|
2157
2144
|
startTime: now
|
|
2158
2145
|
});
|
|
2159
|
-
return () =>
|
|
2146
|
+
return () => chunkNK5KFHXP_cjs.useArbiWsStore.setState((state) => {
|
|
2160
2147
|
const tasks = { ...state.tasks };
|
|
2161
2148
|
for (const [docId, task] of previous) {
|
|
2162
2149
|
if (task) tasks[docId] = task;
|
|
@@ -2175,7 +2162,7 @@ function useGenerateDocTags() {
|
|
|
2175
2162
|
if (!docIds.length) return void 0;
|
|
2176
2163
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
2177
2164
|
const listed = new Map(
|
|
2178
|
-
(
|
|
2165
|
+
(chunkNK5KFHXP_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
2179
2166
|
);
|
|
2180
2167
|
return {
|
|
2181
2168
|
undo: queueProcessing(
|
|
@@ -2196,7 +2183,7 @@ function useFinaliseTranslation() {
|
|
|
2196
2183
|
const qc = reactQuery.useQueryClient();
|
|
2197
2184
|
return reactQuery.useMutation({
|
|
2198
2185
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
2199
|
-
onSuccess: (result) => void
|
|
2186
|
+
onSuccess: (result) => void chunkNK5KFHXP_cjs.refreshDocuments(qc, arbi, [result.document_ext_id])
|
|
2200
2187
|
});
|
|
2201
2188
|
}
|
|
2202
2189
|
|
|
@@ -2206,10 +2193,10 @@ function useDocumentsSupport() {
|
|
|
2206
2193
|
return chunkO32T7XRD_cjs.useArbiHost().documents ?? NO_SUPPORT;
|
|
2207
2194
|
}
|
|
2208
2195
|
function useProcessingTasks() {
|
|
2209
|
-
return
|
|
2196
|
+
return chunkNK5KFHXP_cjs.useArbiWsStore((state) => state.tasks);
|
|
2210
2197
|
}
|
|
2211
2198
|
function useProcessingTask(docId) {
|
|
2212
|
-
return
|
|
2199
|
+
return chunkNK5KFHXP_cjs.useArbiWsStore((state) => state.tasks[docId]);
|
|
2213
2200
|
}
|
|
2214
2201
|
var NO_ACTIONS = {};
|
|
2215
2202
|
function useDocumentHostActions() {
|
|
@@ -2272,7 +2259,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
|
|
|
2272
2259
|
const [isDownloading, setIsDownloading] = React.useState(false);
|
|
2273
2260
|
const fetchNamedFile = React.useCallback(
|
|
2274
2261
|
async (doc) => {
|
|
2275
|
-
const blob = await
|
|
2262
|
+
const blob = await chunkG5DYDBQN_cjs.fetchDocumentFile(arbi.getClient().fetch, doc.external_id);
|
|
2276
2263
|
return { blob, name: blob instanceof File && blob.name ? blob.name : fallbackFileName(doc) };
|
|
2277
2264
|
},
|
|
2278
2265
|
[arbi]
|
|
@@ -2314,7 +2301,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
|
|
|
2314
2301
|
);
|
|
2315
2302
|
}
|
|
2316
2303
|
const zipFileName = archiveName(workspaceName, `${successCount}_documents`);
|
|
2317
|
-
|
|
2304
|
+
chunkG5DYDBQN_cjs.downloadBlob(await zip.generateAsync({ type: "blob" }), zipFileName);
|
|
2318
2305
|
const documentsLabel = `${successCount} document${successCount !== 1 ? "s" : ""}`;
|
|
2319
2306
|
const contents = includeMetadataCsv ? `${documentsLabel} and index.csv in ${zipFileName}` : `${documentsLabel} in ${zipFileName}`;
|
|
2320
2307
|
if (failedDocs.length === 0) chunkIX4HOS5Z_cjs.notify.success(`Successfully downloaded ${contents}`);
|
|
@@ -2333,7 +2320,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
|
|
|
2333
2320
|
setIsDownloading(true);
|
|
2334
2321
|
try {
|
|
2335
2322
|
const file = await fetchNamedFile(doc);
|
|
2336
|
-
|
|
2323
|
+
chunkG5DYDBQN_cjs.downloadBlob(file.blob, file.name);
|
|
2337
2324
|
chunkIX4HOS5Z_cjs.notify.success(`Successfully downloaded ${file.name}`);
|
|
2338
2325
|
} catch (error) {
|
|
2339
2326
|
console.error("Failed to download document", error);
|
|
@@ -2403,7 +2390,7 @@ function useDocumentThumbnails(visibleIds) {
|
|
|
2403
2390
|
for (const id of visibleIds)
|
|
2404
2391
|
if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
|
|
2405
2392
|
const ready = visibleIds.filter(
|
|
2406
|
-
(id) => !resolvedRef.current.has(id) &&
|
|
2393
|
+
(id) => !resolvedRef.current.has(id) && chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
|
|
2407
2394
|
);
|
|
2408
2395
|
if (ready.length > 0) void fetchMissing(ready);
|
|
2409
2396
|
}, [tasks, idsKey, fetchMissing]);
|
|
@@ -2425,20 +2412,20 @@ function DocumentReview({
|
|
|
2425
2412
|
onClose,
|
|
2426
2413
|
className
|
|
2427
2414
|
}) {
|
|
2428
|
-
const processingInProp = !!doc?.status && !
|
|
2429
|
-
const { data: polled } =
|
|
2415
|
+
const processingInProp = !!doc?.status && !chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(doc.status);
|
|
2416
|
+
const { data: polled } = chunkNK5KFHXP_cjs.useDocument(docId, {
|
|
2430
2417
|
enabled: processingInProp,
|
|
2431
2418
|
pollWhileProcessing: true
|
|
2432
2419
|
});
|
|
2433
2420
|
const status = processingInProp ? polled?.status ?? doc?.status : doc?.status;
|
|
2434
2421
|
const noTextYet = stage === "final" && !!status && !PARSED_STATUSES.has(status);
|
|
2435
|
-
const parsedQuery =
|
|
2422
|
+
const parsedQuery = chunkH3XHBIZ6_cjs.useParsedDocument(docId, stage, { enabled: !noTextYet });
|
|
2436
2423
|
const { isError: parsedFailed, refetch: refetchParsed } = parsedQuery;
|
|
2437
2424
|
const readable = !!status && !noTextYet;
|
|
2438
2425
|
React__default.default.useEffect(() => {
|
|
2439
2426
|
if (readable && parsedFailed) void refetchParsed();
|
|
2440
2427
|
}, [readable]);
|
|
2441
|
-
const tagsQuery =
|
|
2428
|
+
const tagsQuery = chunkH3XHBIZ6_cjs.useTags(workspaceId);
|
|
2442
2429
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2443
2430
|
const map = /* @__PURE__ */ new Map();
|
|
2444
2431
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3343,7 +3330,7 @@ function useUploadFiles() {
|
|
|
3343
3330
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
3344
3331
|
const qc = reactQuery.useQueryClient();
|
|
3345
3332
|
const { resolveWorkspaceKey } = useDocumentsSupport();
|
|
3346
|
-
const { data: settings } =
|
|
3333
|
+
const { data: settings } = chunkFOBB5U4Y_cjs.useUserSettings();
|
|
3347
3334
|
const { mutateAsync: generateDocTags } = useGenerateDocTags();
|
|
3348
3335
|
const direct = settings?.use_s3_direct_upload === true;
|
|
3349
3336
|
return React.useCallback(
|
|
@@ -3433,7 +3420,7 @@ function useUploadFiles() {
|
|
|
3433
3420
|
if (docIds2.length > 0) {
|
|
3434
3421
|
for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
|
|
3435
3422
|
const made = new Set(docIds2);
|
|
3436
|
-
|
|
3423
|
+
chunkNK5KFHXP_cjs.patchDocuments(
|
|
3437
3424
|
qc,
|
|
3438
3425
|
(rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
|
|
3439
3426
|
workspaceId
|
|
@@ -3450,7 +3437,7 @@ function useUploadFiles() {
|
|
|
3450
3437
|
const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
|
|
3451
3438
|
const skipped = results.flatMap((result) => result.skipped ?? []);
|
|
3452
3439
|
if (docIds.length > 0) {
|
|
3453
|
-
const read = await
|
|
3440
|
+
const read = await chunkNK5KFHXP_cjs.refreshDocuments(qc, arbi, docIds);
|
|
3454
3441
|
for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
|
|
3455
3442
|
}
|
|
3456
3443
|
await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() });
|
|
@@ -3544,7 +3531,7 @@ function getRelatedLabels(related) {
|
|
|
3544
3531
|
return parts;
|
|
3545
3532
|
}
|
|
3546
3533
|
function useRelatedDocuments(documents2) {
|
|
3547
|
-
const { data: similarData } =
|
|
3534
|
+
const { data: similarData } = chunkNK5KFHXP_cjs.useSimilarDocuments();
|
|
3548
3535
|
const structuralKey = React.useMemo(() => {
|
|
3549
3536
|
const parts = [];
|
|
3550
3537
|
for (const doc of documents2) {
|
|
@@ -3624,7 +3611,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3624
3611
|
}
|
|
3625
3612
|
if (similarData?.pairs) {
|
|
3626
3613
|
for (const pair of similarData.pairs) {
|
|
3627
|
-
if (pair.similarity <
|
|
3614
|
+
if (pair.similarity < chunkNK5KFHXP_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
|
|
3628
3615
|
const docA = docById.get(pair.doc_a.external_id);
|
|
3629
3616
|
const docB = docById.get(pair.doc_b.external_id);
|
|
3630
3617
|
if (docA && docB) {
|
|
@@ -3644,7 +3631,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3644
3631
|
}, [documents2, similarData, structuralKey]);
|
|
3645
3632
|
}
|
|
3646
3633
|
var REPLAYABLE = [
|
|
3647
|
-
...
|
|
3634
|
+
...chunkNK5KFHXP_cjs.replayableTagMutations,
|
|
3648
3635
|
...replayableDocumentMutations
|
|
3649
3636
|
];
|
|
3650
3637
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -3658,7 +3645,7 @@ function registerArbiMutationDefaults(queryClient, client) {
|
|
|
3658
3645
|
// kept as not sent.
|
|
3659
3646
|
mutationFn: (variables) => m.run(client(), variables),
|
|
3660
3647
|
onSuccess: (data, variables) => m.settle(queryClient, data, variables),
|
|
3661
|
-
...
|
|
3648
|
+
...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
|
|
3662
3649
|
});
|
|
3663
3650
|
}
|
|
3664
3651
|
}
|
|
@@ -3686,7 +3673,7 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
3686
3673
|
const docs = Array.isArray(data) ? data : [data];
|
|
3687
3674
|
return !docs.some((doc) => {
|
|
3688
3675
|
const status = doc?.status;
|
|
3689
|
-
return !!status && !
|
|
3676
|
+
return !!status && !chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
3690
3677
|
});
|
|
3691
3678
|
}
|
|
3692
3679
|
|
|
@@ -3785,7 +3772,7 @@ function buildPendingSyncItem(raw, docNameById, tagNameById) {
|
|
|
3785
3772
|
status: raw.status,
|
|
3786
3773
|
at: raw.at,
|
|
3787
3774
|
docIds,
|
|
3788
|
-
...raw.blocked ? { notice:
|
|
3775
|
+
...raw.blocked ? { notice: chunkNK5KFHXP_cjs.QUEUED_WRITE_BLOCKED_MESSAGE } : {}
|
|
3789
3776
|
};
|
|
3790
3777
|
}
|
|
3791
3778
|
var PENDING_SYNC_PREDICATE = (m) => (
|
|
@@ -3800,11 +3787,11 @@ var PENDING_SYNC_PREDICATE = (m) => (
|
|
|
3800
3787
|
// flash "pending/syncing" while fully online. `error` is kept so a failed
|
|
3801
3788
|
// sync stays visible to review/undo.
|
|
3802
3789
|
// A write held back because its workspace can't be opened (tried again meanwhile) is waiting too.
|
|
3803
|
-
isReplayableArbiMutation(m.options.mutationKey) && (m.state.isPaused || m.state.status === "error" ||
|
|
3790
|
+
isReplayableArbiMutation(m.options.mutationKey) && (m.state.isPaused || m.state.status === "error" || chunkNK5KFHXP_cjs.isBlockedOnWorkspace(m))
|
|
3804
3791
|
);
|
|
3805
3792
|
function usePendingSyncItems() {
|
|
3806
|
-
const { data: documents2 } =
|
|
3807
|
-
const { data: tags } =
|
|
3793
|
+
const { data: documents2 } = chunkNK5KFHXP_cjs.useDocuments();
|
|
3794
|
+
const { data: tags } = chunkH3XHBIZ6_cjs.useTags();
|
|
3808
3795
|
const raw = reactQuery.useMutationState({
|
|
3809
3796
|
filters: { predicate: PENDING_SYNC_PREDICATE },
|
|
3810
3797
|
select: (m) => ({
|
|
@@ -3812,9 +3799,9 @@ function usePendingSyncItems() {
|
|
|
3812
3799
|
kind: kindOf(m.options.mutationKey) ?? "fields",
|
|
3813
3800
|
variables: m.state.variables,
|
|
3814
3801
|
context: m.state.context,
|
|
3815
|
-
status: statusOf(m.state.isPaused, m.state.status,
|
|
3802
|
+
status: statusOf(m.state.isPaused, m.state.status, chunkNK5KFHXP_cjs.isBlockedOnWorkspace(m)),
|
|
3816
3803
|
at: m.state.submittedAt,
|
|
3817
|
-
blocked:
|
|
3804
|
+
blocked: chunkNK5KFHXP_cjs.isBlockedOnWorkspace(m)
|
|
3818
3805
|
})
|
|
3819
3806
|
});
|
|
3820
3807
|
return React.useMemo(() => {
|
|
@@ -3958,7 +3945,7 @@ async function keepDocumentsOffline(client$1, docs) {
|
|
|
3958
3945
|
if (!keypair) throw new Error("Could not derive an encryption key for the offline copy.");
|
|
3959
3946
|
for (const doc of docs) {
|
|
3960
3947
|
const original = chunk4NGWDVHD_cjs.usesOriginalBytesForViewer(doc.file_name);
|
|
3961
|
-
const blob = original ? await
|
|
3948
|
+
const blob = original ? await chunkG5DYDBQN_cjs.fetchDocumentFile(client$1, doc.external_id) : await chunkG5DYDBQN_cjs.fetchDocumentPdf(client$1, doc.external_id);
|
|
3962
3949
|
const plain = new Uint8Array(await blob.arrayBuffer());
|
|
3963
3950
|
await putOfflineDocument({
|
|
3964
3951
|
docExtId: doc.external_id,
|
|
@@ -3989,7 +3976,7 @@ function useKeepDocumentsOffline() {
|
|
|
3989
3976
|
return reactQuery.useMutation({
|
|
3990
3977
|
mutationFn: async (docs) => {
|
|
3991
3978
|
await keepDocumentsOffline(arbi.getClient().fetch, docs);
|
|
3992
|
-
for (const doc of docs)
|
|
3979
|
+
for (const doc of docs) chunkNK5KFHXP_cjs.setCachedDocument(queryClient, doc);
|
|
3993
3980
|
await onKeptOffline?.();
|
|
3994
3981
|
return docs.length;
|
|
3995
3982
|
},
|
|
@@ -4024,11 +4011,11 @@ function createStreamHandlers(ctx, params) {
|
|
|
4024
4011
|
const clientId = streamState.queuedClientId;
|
|
4025
4012
|
if (!clientId || queuedEntryRetired) return;
|
|
4026
4013
|
queuedEntryRetired = true;
|
|
4027
|
-
const entry =
|
|
4014
|
+
const entry = chunkH3XHBIZ6_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
|
|
4028
4015
|
if (!entry) return;
|
|
4029
4016
|
const remainingVisibility = Math.max(
|
|
4030
4017
|
0,
|
|
4031
|
-
|
|
4018
|
+
chunkH3XHBIZ6_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
|
|
4032
4019
|
);
|
|
4033
4020
|
if (remainingVisibility === 0) {
|
|
4034
4021
|
session.removeQueuedMessage(clientId);
|
|
@@ -4044,7 +4031,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
4044
4031
|
session.moveConversation("new", serverConversationId);
|
|
4045
4032
|
const userExtId = ctx.userId();
|
|
4046
4033
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
4047
|
-
|
|
4034
|
+
chunkFOBB5U4Y_cjs.patchConversationList(
|
|
4048
4035
|
queryClient,
|
|
4049
4036
|
streamState.workspaceId ?? session.getState().workspaceId,
|
|
4050
4037
|
(old) => old.some((c) => c.external_id === serverConversationId) ? old : [
|
|
@@ -4166,7 +4153,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
4166
4153
|
ensureAssistantMessageLoading(queryClient, conversationId, answerId);
|
|
4167
4154
|
});
|
|
4168
4155
|
}
|
|
4169
|
-
void
|
|
4156
|
+
void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
4170
4157
|
session.setCursor(streamState.assistantId);
|
|
4171
4158
|
};
|
|
4172
4159
|
let firstTokenSeen = false;
|
|
@@ -4366,7 +4353,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
4366
4353
|
}
|
|
4367
4354
|
function useStreamHandlers() {
|
|
4368
4355
|
const queryClient = reactQuery.useQueryClient();
|
|
4369
|
-
const session =
|
|
4356
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
4370
4357
|
const config = chunkO32T7XRD_cjs.useArbiHost();
|
|
4371
4358
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
4372
4359
|
return React.useCallback(
|
|
@@ -4382,7 +4369,7 @@ function useStreamHandlers() {
|
|
|
4382
4369
|
return "";
|
|
4383
4370
|
}
|
|
4384
4371
|
},
|
|
4385
|
-
refreshDocuments: (ids2) =>
|
|
4372
|
+
refreshDocuments: (ids2) => chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, ids2)
|
|
4386
4373
|
},
|
|
4387
4374
|
params
|
|
4388
4375
|
),
|
|
@@ -4459,7 +4446,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
|
4459
4446
|
// src/chat/useConversationActions.ts
|
|
4460
4447
|
var RECONCILE_TIMEOUT_MS = 5e3;
|
|
4461
4448
|
function draftAfterSend(queryClient, session, wasComment, assistantName) {
|
|
4462
|
-
const shared =
|
|
4449
|
+
const shared = chunkFOBB5U4Y_cjs.isConversationShared(queryClient, session.getState().conversationId);
|
|
4463
4450
|
return shared && !wasComment ? `@${assistantName} ` : "";
|
|
4464
4451
|
}
|
|
4465
4452
|
function failQueuedContinuation(queryClient, session, streamState) {
|
|
@@ -4492,7 +4479,7 @@ function useConversationActions({
|
|
|
4492
4479
|
lastFailedMessage
|
|
4493
4480
|
}) {
|
|
4494
4481
|
const queryClient = reactQuery.useQueryClient();
|
|
4495
|
-
const session =
|
|
4482
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
4496
4483
|
const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
|
|
4497
4484
|
const invalidateUserWorkspaces = React.useCallback(
|
|
4498
4485
|
() => void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() }),
|
|
@@ -4502,7 +4489,7 @@ function useConversationActions({
|
|
|
4502
4489
|
React.useState(() => watchConversationWorkspaces(queryClient, session));
|
|
4503
4490
|
const createHandlers = useStreamHandlers();
|
|
4504
4491
|
const chatHost = chunkO32T7XRD_cjs.useArbiHost().chat;
|
|
4505
|
-
const assistantName =
|
|
4492
|
+
const assistantName = chunk6RRKO4ZK_cjs.useAssistantName();
|
|
4506
4493
|
const mentionCandidates = React.useCallback(
|
|
4507
4494
|
() => cachedMentionCandidates(
|
|
4508
4495
|
queryClient,
|
|
@@ -4523,10 +4510,10 @@ function useConversationActions({
|
|
|
4523
4510
|
const convId = conversationId === void 0 ? state.conversationId : conversationId;
|
|
4524
4511
|
const { newConversationAssistantMode } = state;
|
|
4525
4512
|
const candidates = mentionCandidates();
|
|
4526
|
-
const mentioned =
|
|
4513
|
+
const mentioned = chunk6RRKO4ZK_cjs.extractMentions(content, candidates);
|
|
4527
4514
|
const assistantMode = cachedAssistantMode(queryClient, convId, newConversationAssistantMode);
|
|
4528
4515
|
const isComment = isCommentToPeople(queryClient, convId, content, candidates);
|
|
4529
|
-
const mentions =
|
|
4516
|
+
const mentions = chunk6RRKO4ZK_cjs.toMessageMentions(mentioned);
|
|
4530
4517
|
if (!isComment && assistantMode === "mentioned" && !mentions.some((m) => m.type === "assistant")) {
|
|
4531
4518
|
mentions.push({ type: "assistant" });
|
|
4532
4519
|
}
|
|
@@ -4557,7 +4544,7 @@ function useConversationActions({
|
|
|
4557
4544
|
const bindTo = session.getState().newChatDocumentId;
|
|
4558
4545
|
session.moveConversation("new", conversationId);
|
|
4559
4546
|
if (bindTo) session.setNewChatDocumentId(null);
|
|
4560
|
-
|
|
4547
|
+
chunkFOBB5U4Y_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
|
|
4561
4548
|
{
|
|
4562
4549
|
external_id: conversationId,
|
|
4563
4550
|
title: content.slice(0, 40),
|
|
@@ -4579,14 +4566,14 @@ function useConversationActions({
|
|
|
4579
4566
|
);
|
|
4580
4567
|
invalidateUserWorkspaces();
|
|
4581
4568
|
} else {
|
|
4582
|
-
|
|
4569
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, (c) => ({
|
|
4583
4570
|
...c,
|
|
4584
4571
|
message_count: c.message_count + 1,
|
|
4585
4572
|
updated_at: nowIso
|
|
4586
4573
|
}));
|
|
4587
4574
|
}
|
|
4588
4575
|
if (mentions.some((m) => m.type === "user")) {
|
|
4589
|
-
await
|
|
4576
|
+
await chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
4590
4577
|
}
|
|
4591
4578
|
await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
4592
4579
|
session.setCursor(saved.external_id);
|
|
@@ -4594,7 +4581,7 @@ function useConversationActions({
|
|
|
4594
4581
|
chunkIX4HOS5Z_cjs.notify.error(
|
|
4595
4582
|
error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
|
|
4596
4583
|
);
|
|
4597
|
-
if (!
|
|
4584
|
+
if (!chunkH3XHBIZ6_cjs.selectDraft(session.getState())) session.setDraft(content);
|
|
4598
4585
|
}
|
|
4599
4586
|
},
|
|
4600
4587
|
[arbi, session, queryClient, invalidateUserWorkspaces]
|
|
@@ -4634,12 +4621,12 @@ function useConversationActions({
|
|
|
4634
4621
|
const resolvedConfigId = newConfigId || (agentExtId ? void 0 : lastConfigId);
|
|
4635
4622
|
const isPaMode = !agentExtId && state.paMode;
|
|
4636
4623
|
const threadDocumentId = boundDocumentOf(queryClient, { ...state, conversationId: convId });
|
|
4637
|
-
const activeArtifactExtId = isPaMode ? null :
|
|
4624
|
+
const activeArtifactExtId = isPaMode ? null : chunk6RRKO4ZK_cjs.takeDocumentForTurn({
|
|
4638
4625
|
boundDocumentId: threadDocumentId,
|
|
4639
4626
|
conversationId: convId,
|
|
4640
4627
|
workspaceId: turnWorkspaceId
|
|
4641
4628
|
});
|
|
4642
|
-
const flushing = flushDocumentForTurn(activeArtifactExtId);
|
|
4629
|
+
const flushing = chunkNK5KFHXP_cjs.flushDocumentForTurn(activeArtifactExtId);
|
|
4643
4630
|
if (flushing) await flushing;
|
|
4644
4631
|
const pendingTools = state.pendingTools;
|
|
4645
4632
|
if (pendingTools) session.setPendingTools(null);
|
|
@@ -4667,7 +4654,7 @@ function useConversationActions({
|
|
|
4667
4654
|
session.setConversationGenerating(convKey, true, abortController);
|
|
4668
4655
|
}
|
|
4669
4656
|
if (!queuedContinuation) {
|
|
4670
|
-
|
|
4657
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
|
|
4671
4658
|
}
|
|
4672
4659
|
const streamState = {
|
|
4673
4660
|
conversationId: convKey,
|
|
@@ -4778,7 +4765,7 @@ function useConversationActions({
|
|
|
4778
4765
|
void queryClient.invalidateQueries({
|
|
4779
4766
|
queryKey: getThreadsQueryKey(streamState.conversationId)
|
|
4780
4767
|
});
|
|
4781
|
-
void
|
|
4768
|
+
void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
4782
4769
|
}
|
|
4783
4770
|
return;
|
|
4784
4771
|
}
|
|
@@ -4806,7 +4793,7 @@ function useConversationActions({
|
|
|
4806
4793
|
}
|
|
4807
4794
|
if (ownsGeneration) {
|
|
4808
4795
|
const lastStatus = streamState.serverError ? "failed" : "completed";
|
|
4809
|
-
|
|
4796
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4810
4797
|
last_message_status: lastStatus
|
|
4811
4798
|
});
|
|
4812
4799
|
}
|
|
@@ -4839,7 +4826,7 @@ function useConversationActions({
|
|
|
4839
4826
|
});
|
|
4840
4827
|
if (ownsActiveGeneration()) {
|
|
4841
4828
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4842
|
-
|
|
4829
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4843
4830
|
last_message_status: "completed"
|
|
4844
4831
|
});
|
|
4845
4832
|
}
|
|
@@ -4862,10 +4849,10 @@ function useConversationActions({
|
|
|
4862
4849
|
if (ownsActiveGeneration()) {
|
|
4863
4850
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4864
4851
|
}
|
|
4865
|
-
void
|
|
4852
|
+
void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
4866
4853
|
return;
|
|
4867
4854
|
}
|
|
4868
|
-
|
|
4855
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4869
4856
|
last_message_status: "failed"
|
|
4870
4857
|
});
|
|
4871
4858
|
const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
|
|
@@ -4900,8 +4887,8 @@ function useConversationActions({
|
|
|
4900
4887
|
);
|
|
4901
4888
|
const handleSendMessage = React.useCallback(
|
|
4902
4889
|
async (options) => {
|
|
4903
|
-
const currentMessage =
|
|
4904
|
-
if (!selectedWorkspaceId || !
|
|
4890
|
+
const currentMessage = chunkH3XHBIZ6_cjs.selectDraft(session.getState()).trim();
|
|
4891
|
+
if (!selectedWorkspaceId || !chunk6RRKO4ZK_cjs.hasMessageBody(currentMessage, assistantLabels(assistantName)))
|
|
4905
4892
|
return;
|
|
4906
4893
|
session.setSuggestedQuery(null);
|
|
4907
4894
|
if (refuseChatWhenOffline()) return;
|
|
@@ -5015,7 +5002,7 @@ function useConversationActions({
|
|
|
5015
5002
|
if (!replyTo && currentConversationId) {
|
|
5016
5003
|
try {
|
|
5017
5004
|
await arbi.conversations.delete(currentConversationId);
|
|
5018
|
-
|
|
5005
|
+
chunkFOBB5U4Y_cjs.removeConversationFromLists(queryClient, currentConversationId);
|
|
5019
5006
|
session.startNewConversation();
|
|
5020
5007
|
} catch (error) {
|
|
5021
5008
|
console.error("Failed to delete conversation with orphaned first message:", error);
|
|
@@ -5083,16 +5070,16 @@ function selectThread(session, leafId) {
|
|
|
5083
5070
|
if (session.getState().cursor !== leafId) session.setCursor(leafId);
|
|
5084
5071
|
}
|
|
5085
5072
|
function useConversationData() {
|
|
5086
|
-
const session =
|
|
5087
|
-
const selectedWorkspaceId =
|
|
5088
|
-
const currentConversationId =
|
|
5089
|
-
const parentMessageId =
|
|
5090
|
-
const deepLinkMessageId =
|
|
5073
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
5074
|
+
const selectedWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5075
|
+
const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5076
|
+
const parentMessageId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.cursor);
|
|
5077
|
+
const deepLinkMessageId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
|
|
5091
5078
|
const {
|
|
5092
5079
|
data: threadsData,
|
|
5093
5080
|
isLoading: threadsLoading,
|
|
5094
5081
|
error: threadsError
|
|
5095
|
-
} =
|
|
5082
|
+
} = chunkH3XHBIZ6_cjs.useConversationThreads(currentConversationId || void 0);
|
|
5096
5083
|
const processedDeepLinkRef = React.useRef(null);
|
|
5097
5084
|
const prevConversationIdRef = React.useRef(null);
|
|
5098
5085
|
React.useEffect(() => {
|
|
@@ -5285,7 +5272,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
|
|
|
5285
5272
|
var RECONNECT_DELAY_MS = 2e3;
|
|
5286
5273
|
var MAX_RECONNECTS = 5;
|
|
5287
5274
|
function useConnectRunStream(conversationId, messages) {
|
|
5288
|
-
const generation =
|
|
5275
|
+
const generation = chunkH3XHBIZ6_cjs.useArbiSessionState(
|
|
5289
5276
|
(s) => conversationId ? s.generating[conversationId] : void 0
|
|
5290
5277
|
);
|
|
5291
5278
|
const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
|
|
@@ -5293,7 +5280,7 @@ function useConnectRunStream(conversationId, messages) {
|
|
|
5293
5280
|
}
|
|
5294
5281
|
function useAttachRun(conversationId, responseId) {
|
|
5295
5282
|
const queryClient = reactQuery.useQueryClient();
|
|
5296
|
-
const session =
|
|
5283
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
5297
5284
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
5298
5285
|
const arbiRef = React.useRef(arbi);
|
|
5299
5286
|
arbiRef.current = arbi;
|
|
@@ -5533,14 +5520,14 @@ function useConversation(options = {}) {
|
|
|
5533
5520
|
const { agentId, model, titleLength = 48 } = options;
|
|
5534
5521
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
5535
5522
|
const queryClient = reactQuery.useQueryClient();
|
|
5536
|
-
const session =
|
|
5537
|
-
const sessionWorkspaceId =
|
|
5523
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
5524
|
+
const sessionWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5538
5525
|
const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
|
|
5539
|
-
const conversationId =
|
|
5526
|
+
const conversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5540
5527
|
const conversationKey2 = conversationId ?? NEW;
|
|
5541
|
-
const generation =
|
|
5542
|
-
const newConversationMode =
|
|
5543
|
-
const queuedMessages2 =
|
|
5528
|
+
const generation = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
|
|
5529
|
+
const newConversationMode = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
|
|
5530
|
+
const queuedMessages2 = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.queuedMessages);
|
|
5544
5531
|
const isRunning = !!generation?.isGenerating;
|
|
5545
5532
|
React.useEffect(() => {
|
|
5546
5533
|
if (workspaceId && session.getState().workspaceId !== workspaceId)
|
|
@@ -5552,8 +5539,8 @@ function useConversation(options = {}) {
|
|
|
5552
5539
|
React.useEffect(() => {
|
|
5553
5540
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
5554
5541
|
}, [session, agentId, workspaceId, conversationId]);
|
|
5555
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
5556
|
-
const ordinaryHistory =
|
|
5542
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkNK5KFHXP_cjs.useDocuments(workspaceId);
|
|
5543
|
+
const ordinaryHistory = chunkH3XHBIZ6_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
5557
5544
|
const agentHistory = useAgentChats(agentId);
|
|
5558
5545
|
const stored = React.useMemo(
|
|
5559
5546
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -5660,7 +5647,7 @@ function useConversation(options = {}) {
|
|
|
5660
5647
|
[agentId, stagedFiles, deselected]
|
|
5661
5648
|
);
|
|
5662
5649
|
const { handleSendMessage, handleCreateBranch } = actions;
|
|
5663
|
-
const assistantName =
|
|
5650
|
+
const assistantName = chunk6RRKO4ZK_cjs.useAssistantName();
|
|
5664
5651
|
const send = React.useCallback(
|
|
5665
5652
|
async (text2) => {
|
|
5666
5653
|
const trimmed = text2.trim();
|
|
@@ -5791,7 +5778,7 @@ function useConversation(options = {}) {
|
|
|
5791
5778
|
void (async () => {
|
|
5792
5779
|
try {
|
|
5793
5780
|
await arbi.conversations.delete(id);
|
|
5794
|
-
|
|
5781
|
+
chunkFOBB5U4Y_cjs.removeConversationFromLists(queryClient, id);
|
|
5795
5782
|
if (session.getState().conversationId === id) session.startNewConversation();
|
|
5796
5783
|
} catch (e) {
|
|
5797
5784
|
setHistoryError(messageOf(e, "The conversation could not be deleted."));
|
|
@@ -5830,7 +5817,7 @@ function useConversation(options = {}) {
|
|
|
5830
5817
|
uploaded.push(...result.doc_ext_ids ?? []);
|
|
5831
5818
|
}
|
|
5832
5819
|
}
|
|
5833
|
-
if (uploaded.length) await
|
|
5820
|
+
if (uploaded.length) await chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
5834
5821
|
} catch (e) {
|
|
5835
5822
|
setUploadError(messageOf(e, "The upload failed."));
|
|
5836
5823
|
} finally {
|
|
@@ -5879,10 +5866,10 @@ function ConversationScope({
|
|
|
5879
5866
|
conversationId,
|
|
5880
5867
|
children
|
|
5881
5868
|
}) {
|
|
5882
|
-
const outerWorkspaceId =
|
|
5869
|
+
const outerWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5883
5870
|
const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
|
|
5884
5871
|
const [session] = React.useState(
|
|
5885
|
-
() =>
|
|
5872
|
+
() => chunkH3XHBIZ6_cjs.createArbiSessionStore({
|
|
5886
5873
|
workspaceId: scopeWorkspaceId,
|
|
5887
5874
|
conversationId: conversationId ?? null
|
|
5888
5875
|
})
|
|
@@ -5898,7 +5885,7 @@ function ConversationScope({
|
|
|
5898
5885
|
}
|
|
5899
5886
|
function useConversationWorkspace(conversationId) {
|
|
5900
5887
|
const queryClient = reactQuery.useQueryClient();
|
|
5901
|
-
const sessionWorkspaceId =
|
|
5888
|
+
const sessionWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5902
5889
|
return conversationWorkspaceOf(queryClient, conversationId) ?? sessionWorkspaceId;
|
|
5903
5890
|
}
|
|
5904
5891
|
|
|
@@ -5908,11 +5895,11 @@ async function applyConversationEvent(queryClient, event) {
|
|
|
5908
5895
|
if (e.type === "response_complete") return applyRunEnded(queryClient, e);
|
|
5909
5896
|
if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
|
|
5910
5897
|
if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
|
|
5911
|
-
|
|
5898
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
|
|
5912
5899
|
}
|
|
5913
5900
|
if (e.type === "conversation.document_binding_changed" && e.conversation_ext_id) {
|
|
5914
5901
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(e.conversation_ext_id) });
|
|
5915
|
-
void
|
|
5902
|
+
void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
5916
5903
|
}
|
|
5917
5904
|
}
|
|
5918
5905
|
function applyRunEnded(queryClient, e) {
|
|
@@ -5929,10 +5916,10 @@ function applyRunEnded(queryClient, e) {
|
|
|
5929
5916
|
);
|
|
5930
5917
|
}
|
|
5931
5918
|
if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
|
|
5932
|
-
|
|
5919
|
+
chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, {
|
|
5933
5920
|
last_message_status: failed ? "failed" : "completed"
|
|
5934
5921
|
});
|
|
5935
|
-
void
|
|
5922
|
+
void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
5936
5923
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
5937
5924
|
if (!failed) void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.userUsageToday() });
|
|
5938
5925
|
}
|
|
@@ -5940,7 +5927,7 @@ async function applyMessagePosted(queryClient, e) {
|
|
|
5940
5927
|
if (!e.conversation_ext_id) return;
|
|
5941
5928
|
const queryKey = getThreadsQueryKey(e.conversation_ext_id);
|
|
5942
5929
|
const refreshed = queryClient.invalidateQueries({ queryKey });
|
|
5943
|
-
void
|
|
5930
|
+
void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
|
|
5944
5931
|
await refreshed;
|
|
5945
5932
|
const cached = queryClient.getQueryData(
|
|
5946
5933
|
queryKey
|
|
@@ -5953,10 +5940,10 @@ var migratedWorkspaces = /* @__PURE__ */ new Set();
|
|
|
5953
5940
|
function useThreadDocument() {
|
|
5954
5941
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
5955
5942
|
const queryClient = reactQuery.useQueryClient();
|
|
5956
|
-
const session =
|
|
5957
|
-
const conversationId =
|
|
5958
|
-
const workspaceId =
|
|
5959
|
-
const newChatDocumentId =
|
|
5943
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
5944
|
+
const conversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5945
|
+
const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5946
|
+
const newChatDocumentId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.newChatDocumentId);
|
|
5960
5947
|
const subscribe = React.useCallback(
|
|
5961
5948
|
(onChange) => queryClient.getQueryCache().subscribe(onChange),
|
|
5962
5949
|
[queryClient]
|
|
@@ -5971,7 +5958,7 @@ function useThreadDocument() {
|
|
|
5971
5958
|
() => threadBinding(queryClient, conversationId).unavailable,
|
|
5972
5959
|
() => false
|
|
5973
5960
|
);
|
|
5974
|
-
const { data: conversations, isPlaceholderData } =
|
|
5961
|
+
const { data: conversations, isPlaceholderData } = chunkH3XHBIZ6_cjs.useConversations(workspaceId ?? void 0);
|
|
5975
5962
|
React.useEffect(() => {
|
|
5976
5963
|
if (!workspaceId || !conversations || isPlaceholderData || migratedWorkspaces.has(workspaceId))
|
|
5977
5964
|
return;
|
|
@@ -6025,9 +6012,9 @@ function useConversationTurn({
|
|
|
6025
6012
|
selectedWorkspaceId,
|
|
6026
6013
|
parentMessageId
|
|
6027
6014
|
}) {
|
|
6028
|
-
const currentConversationId =
|
|
6015
|
+
const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
|
|
6029
6016
|
const conversationKey2 = currentConversationId || "new";
|
|
6030
|
-
const generationState =
|
|
6017
|
+
const generationState = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
|
|
6031
6018
|
const isGenerating = generationState?.isGenerating ?? false;
|
|
6032
6019
|
const generationError = generationState?.error ?? null;
|
|
6033
6020
|
const lastFailedMessage = generationState?.lastFailedMessage ?? null;
|
|
@@ -6047,10 +6034,10 @@ function useConversationTurn({
|
|
|
6047
6034
|
};
|
|
6048
6035
|
}
|
|
6049
6036
|
function useActiveConfigId() {
|
|
6050
|
-
const chatModel =
|
|
6051
|
-
const cursor =
|
|
6037
|
+
const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.chatModel);
|
|
6038
|
+
const cursor = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.cursor);
|
|
6052
6039
|
const { messageHistory } = useConversationData();
|
|
6053
|
-
const { data: userSettings } =
|
|
6040
|
+
const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
|
|
6054
6041
|
return React.useMemo(() => {
|
|
6055
6042
|
if (chatModel) return chatModel;
|
|
6056
6043
|
const parent = cursor ? messageHistory?.find((m) => m.external_id === cursor) : void 0;
|
|
@@ -6060,12 +6047,12 @@ function useActiveConfigId() {
|
|
|
6060
6047
|
}
|
|
6061
6048
|
var EMPTY_DOCS = [];
|
|
6062
6049
|
function useConversationDocuments() {
|
|
6063
|
-
const currentConversationId =
|
|
6050
|
+
const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
|
|
6064
6051
|
const convKey = currentConversationId || "new";
|
|
6065
|
-
const inConversationDocuments =
|
|
6052
|
+
const inConversationDocuments = chunkH3XHBIZ6_cjs.useArbiSessionState(
|
|
6066
6053
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
6067
6054
|
);
|
|
6068
|
-
const { data: documents2 = [], isLoading: isLoadingDocs } =
|
|
6055
|
+
const { data: documents2 = [], isLoading: isLoadingDocs } = chunkNK5KFHXP_cjs.useDocuments();
|
|
6069
6056
|
const conversationDocuments = React__default.default.useMemo(() => {
|
|
6070
6057
|
if (inConversationDocuments.length === 0) {
|
|
6071
6058
|
return [];
|
|
@@ -6097,8 +6084,8 @@ function useDocumentAutoAdd({
|
|
|
6097
6084
|
allWorkspaceDocuments,
|
|
6098
6085
|
hasContent = false
|
|
6099
6086
|
}) {
|
|
6100
|
-
const session =
|
|
6101
|
-
const currentConversationId =
|
|
6087
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6088
|
+
const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
|
|
6102
6089
|
const convKey = currentConversationId || "new";
|
|
6103
6090
|
const observedRef = React.useRef(null);
|
|
6104
6091
|
const offeredRef = React.useRef(/* @__PURE__ */ new Set());
|
|
@@ -6159,12 +6146,12 @@ function useDocumentAutoAdd({
|
|
|
6159
6146
|
}, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
|
|
6160
6147
|
}
|
|
6161
6148
|
function useAutoSendDraft(sendDraft, ready = true, canSend) {
|
|
6162
|
-
const session =
|
|
6163
|
-
const autoSendDraft =
|
|
6149
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6150
|
+
const autoSendDraft = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.autoSendDraft);
|
|
6164
6151
|
React.useEffect(() => {
|
|
6165
6152
|
if (!autoSendDraft || !ready || canSend && !canSend()) return;
|
|
6166
6153
|
session.setAutoSendDraft(false);
|
|
6167
|
-
if (
|
|
6154
|
+
if (chunkH3XHBIZ6_cjs.selectDraft(session.getState()).trim()) {
|
|
6168
6155
|
sendDraft();
|
|
6169
6156
|
}
|
|
6170
6157
|
}, [autoSendDraft, ready, canSend, sendDraft, session]);
|
|
@@ -6251,18 +6238,18 @@ function useAnswerAgentQuestion() {
|
|
|
6251
6238
|
}
|
|
6252
6239
|
var TITLE_MAX = 50;
|
|
6253
6240
|
function useConversationSettings() {
|
|
6254
|
-
const session =
|
|
6255
|
-
const conversationId =
|
|
6256
|
-
const chatModel =
|
|
6257
|
-
const parentMessageId =
|
|
6258
|
-
const currentUser =
|
|
6241
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6242
|
+
const conversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
|
|
6243
|
+
const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.chatModel);
|
|
6244
|
+
const parentMessageId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.cursor);
|
|
6245
|
+
const currentUser = chunkH3XHBIZ6_cjs.useArbiSession().user;
|
|
6259
6246
|
const { messageHistory } = useConversationData();
|
|
6260
6247
|
const { conversations } = useConversationItems();
|
|
6261
|
-
const { data: userSettings } =
|
|
6248
|
+
const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
|
|
6262
6249
|
const parentMessage = messageHistory?.find((m) => m.external_id === parentMessageId);
|
|
6263
6250
|
const configToLoad = chatModel || parentMessage?.config_ext_id || userSettings?.last_config || "default";
|
|
6264
|
-
const { data: activeConfig } =
|
|
6265
|
-
const { refetch: refetchSystemDefaults } =
|
|
6251
|
+
const { data: activeConfig } = chunkH3XHBIZ6_cjs.useConfig(configToLoad);
|
|
6252
|
+
const { refetch: refetchSystemDefaults } = chunkH3XHBIZ6_cjs.useConfig("default");
|
|
6266
6253
|
const conversation = conversations.find((c) => c.external_id === conversationId);
|
|
6267
6254
|
const isOwner = !!conversation && conversation.created_by_ext_id === currentUser?.external_id;
|
|
6268
6255
|
const isShared = conversation?.is_shared ?? false;
|
|
@@ -6315,7 +6302,7 @@ function useConversationSettings() {
|
|
|
6315
6302
|
};
|
|
6316
6303
|
}
|
|
6317
6304
|
function useAskAgain(options) {
|
|
6318
|
-
const session =
|
|
6305
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6319
6306
|
const optionsRef = React.useRef(options);
|
|
6320
6307
|
React.useEffect(() => {
|
|
6321
6308
|
optionsRef.current = options;
|
|
@@ -6407,11 +6394,11 @@ function useMessageTimer({
|
|
|
6407
6394
|
isUser,
|
|
6408
6395
|
isGenerating
|
|
6409
6396
|
}) {
|
|
6410
|
-
const session =
|
|
6397
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6411
6398
|
const convId = conversationId || "new";
|
|
6412
6399
|
const timerKey = `${convId}:${messageId}`;
|
|
6413
|
-
const generationStartTime =
|
|
6414
|
-
const storedElapsed =
|
|
6400
|
+
const generationStartTime = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
|
|
6401
|
+
const storedElapsed = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
|
|
6415
6402
|
const [elapsedTime, setElapsedTime] = React.useState(0);
|
|
6416
6403
|
const lastElapsedRef = React.useRef(0);
|
|
6417
6404
|
React.useEffect(() => {
|
|
@@ -6436,7 +6423,7 @@ function useMessageTimer({
|
|
|
6436
6423
|
}
|
|
6437
6424
|
function useAgentRunControl(assistantMessageExtId) {
|
|
6438
6425
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
6439
|
-
const session =
|
|
6426
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6440
6427
|
const send = React.useCallback(
|
|
6441
6428
|
(command) => {
|
|
6442
6429
|
if (!assistantMessageExtId) return;
|
|
@@ -6796,8 +6783,8 @@ var WORK_OFFLINE_VIEW = "app.workOffline";
|
|
|
6796
6783
|
var isWorkingOffline = (session) => session.getState().views.transient[WORK_OFFLINE_VIEW] === true;
|
|
6797
6784
|
var setWorkOfflineIn = (session, on) => session.setTransientView(WORK_OFFLINE_VIEW, on || void 0);
|
|
6798
6785
|
function useWorkOffline() {
|
|
6799
|
-
const session =
|
|
6800
|
-
const on =
|
|
6786
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6787
|
+
const on = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.views.transient[WORK_OFFLINE_VIEW] === true);
|
|
6801
6788
|
const set2 = React.useCallback((next) => setWorkOfflineIn(session, next), [session]);
|
|
6802
6789
|
return [on, set2];
|
|
6803
6790
|
}
|
|
@@ -6809,9 +6796,9 @@ function computeOnline(wsStatus, isAuthenticated, workOffline, wsEverConnected)
|
|
|
6809
6796
|
return navOnline && wsOnline;
|
|
6810
6797
|
}
|
|
6811
6798
|
function useOnlineSync() {
|
|
6812
|
-
const session =
|
|
6813
|
-
const wsStatus =
|
|
6814
|
-
const signedIn2 =
|
|
6799
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6800
|
+
const wsStatus = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.status);
|
|
6801
|
+
const signedIn2 = chunkH3XHBIZ6_cjs.useArbiSession().status === "signed-in";
|
|
6815
6802
|
const [workOffline] = useWorkOffline();
|
|
6816
6803
|
const wsEverConnected = React.useRef(false);
|
|
6817
6804
|
if (wsStatus === "connected") wsEverConnected.current = true;
|
|
@@ -6823,7 +6810,7 @@ function useOnlineSync() {
|
|
|
6823
6810
|
React.useEffect(() => {
|
|
6824
6811
|
const update2 = () => reactQuery.onlineManager.setOnline(
|
|
6825
6812
|
computeOnline(
|
|
6826
|
-
|
|
6813
|
+
chunkNK5KFHXP_cjs.useArbiWsStore.getState().status,
|
|
6827
6814
|
signedInRef.current,
|
|
6828
6815
|
isWorkingOffline(session),
|
|
6829
6816
|
wsEverConnected.current
|
|
@@ -6838,7 +6825,7 @@ function useOnlineSync() {
|
|
|
6838
6825
|
}, [session]);
|
|
6839
6826
|
}
|
|
6840
6827
|
function useReconnect() {
|
|
6841
|
-
const session =
|
|
6828
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
6842
6829
|
return React.useCallback(() => {
|
|
6843
6830
|
if (isWorkingOffline(session)) {
|
|
6844
6831
|
setWorkOfflineIn(session, false);
|
|
@@ -7016,53 +7003,53 @@ async function nativeThreadKeys(secret, message) {
|
|
|
7016
7003
|
|
|
7017
7004
|
// src/mail/offline/mailbox.ts
|
|
7018
7005
|
var keyOf = {
|
|
7019
|
-
accounts: () =>
|
|
7020
|
-
policy: () =>
|
|
7021
|
-
folders: (accountId) =>
|
|
7022
|
-
header: (accountId, folderId, messageId) =>
|
|
7023
|
-
body: (accountId, messageId) =>
|
|
7024
|
-
attachment: (accountId, messageId, attachmentId) =>
|
|
7006
|
+
accounts: () => chunkFOBB5U4Y_cjs.blind("accounts"),
|
|
7007
|
+
policy: () => chunkFOBB5U4Y_cjs.blind("policy"),
|
|
7008
|
+
folders: (accountId) => chunkFOBB5U4Y_cjs.blind("folders", accountId),
|
|
7009
|
+
header: (accountId, folderId, messageId) => chunkFOBB5U4Y_cjs.blind("header", accountId, folderId, messageId),
|
|
7010
|
+
body: (accountId, messageId) => chunkFOBB5U4Y_cjs.blind("body", accountId, messageId),
|
|
7011
|
+
attachment: (accountId, messageId, attachmentId) => chunkFOBB5U4Y_cjs.blind("attachment", accountId, messageId, attachmentId)
|
|
7025
7012
|
};
|
|
7026
7013
|
var bucketOf = {
|
|
7027
|
-
global: () =>
|
|
7028
|
-
folder: (accountId, folderId) =>
|
|
7029
|
-
account: (accountId) =>
|
|
7014
|
+
global: () => chunkFOBB5U4Y_cjs.blind("bucket", "global"),
|
|
7015
|
+
folder: (accountId, folderId) => chunkFOBB5U4Y_cjs.blind("bucket", "folder", accountId, folderId),
|
|
7016
|
+
account: (accountId) => chunkFOBB5U4Y_cjs.blind("bucket", "account", accountId)
|
|
7030
7017
|
};
|
|
7031
7018
|
async function put(kind, key, bucket3, data, sortAt = Date.now()) {
|
|
7032
7019
|
const now = Date.now();
|
|
7033
|
-
await
|
|
7020
|
+
await chunkFOBB5U4Y_cjs.putRecord({ key, kind, bucket: bucket3, sortAt, size: data.byteLength, lastAccess: now, data });
|
|
7034
7021
|
}
|
|
7035
7022
|
async function readJson(record) {
|
|
7036
7023
|
if (!record) return void 0;
|
|
7037
7024
|
try {
|
|
7038
|
-
return await
|
|
7025
|
+
return await chunkFOBB5U4Y_cjs.openJson(record.data);
|
|
7039
7026
|
} catch {
|
|
7040
7027
|
return void 0;
|
|
7041
7028
|
}
|
|
7042
7029
|
}
|
|
7043
7030
|
var receivedAt = (m) => m.received_at ? Date.parse(m.received_at) || 0 : 0;
|
|
7044
7031
|
async function saveAccounts(accounts) {
|
|
7045
|
-
await put("accounts", await keyOf.accounts(), await bucketOf.global(), await
|
|
7032
|
+
await put("accounts", await keyOf.accounts(), await bucketOf.global(), await chunkFOBB5U4Y_cjs.sealJson(accounts));
|
|
7046
7033
|
}
|
|
7047
7034
|
async function loadAccounts() {
|
|
7048
|
-
return readJson(await
|
|
7035
|
+
return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.accounts()));
|
|
7049
7036
|
}
|
|
7050
7037
|
async function savePolicy(policy) {
|
|
7051
|
-
await put("policy", await keyOf.policy(), await bucketOf.global(), await
|
|
7038
|
+
await put("policy", await keyOf.policy(), await bucketOf.global(), await chunkFOBB5U4Y_cjs.sealJson(policy));
|
|
7052
7039
|
}
|
|
7053
7040
|
async function loadPolicy() {
|
|
7054
|
-
return readJson(await
|
|
7041
|
+
return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.policy()));
|
|
7055
7042
|
}
|
|
7056
7043
|
async function saveFolders(accountId, folders) {
|
|
7057
7044
|
await put(
|
|
7058
7045
|
"folders",
|
|
7059
7046
|
await keyOf.folders(accountId),
|
|
7060
7047
|
await bucketOf.account(accountId),
|
|
7061
|
-
await
|
|
7048
|
+
await chunkFOBB5U4Y_cjs.sealJson(folders)
|
|
7062
7049
|
);
|
|
7063
7050
|
}
|
|
7064
7051
|
async function loadFolders(accountId) {
|
|
7065
|
-
return readJson(await
|
|
7052
|
+
return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.folders(accountId)));
|
|
7066
7053
|
}
|
|
7067
7054
|
function toHeader(message) {
|
|
7068
7055
|
return {
|
|
@@ -7078,12 +7065,12 @@ async function saveHeader(accountId, folderId, message) {
|
|
|
7078
7065
|
"header",
|
|
7079
7066
|
await keyOf.header(accountId, folderId, message.id),
|
|
7080
7067
|
await bucketOf.folder(accountId, folderId),
|
|
7081
|
-
await
|
|
7068
|
+
await chunkFOBB5U4Y_cjs.sealJson(toHeader(message)),
|
|
7082
7069
|
receivedAt(message)
|
|
7083
7070
|
);
|
|
7084
7071
|
}
|
|
7085
7072
|
async function loadHeaders(accountId, folderId) {
|
|
7086
|
-
const records = await
|
|
7073
|
+
const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.folder(accountId, folderId));
|
|
7087
7074
|
const out = [];
|
|
7088
7075
|
for (const record of records) {
|
|
7089
7076
|
if (record.kind !== "header") continue;
|
|
@@ -7093,7 +7080,7 @@ async function loadHeaders(accountId, folderId) {
|
|
|
7093
7080
|
return out.sort((a, b) => b.sortAt - a.sortAt);
|
|
7094
7081
|
}
|
|
7095
7082
|
async function hasFolder(accountId) {
|
|
7096
|
-
return
|
|
7083
|
+
return chunkFOBB5U4Y_cjs.hasRecord(await keyOf.folders(accountId));
|
|
7097
7084
|
}
|
|
7098
7085
|
async function saveBody(accountId, message) {
|
|
7099
7086
|
const stripped = {
|
|
@@ -7104,42 +7091,42 @@ async function saveBody(accountId, message) {
|
|
|
7104
7091
|
"body",
|
|
7105
7092
|
await keyOf.body(accountId, message.id),
|
|
7106
7093
|
await bucketOf.account(accountId),
|
|
7107
|
-
await
|
|
7094
|
+
await chunkFOBB5U4Y_cjs.sealJson(stripped),
|
|
7108
7095
|
receivedAt(message)
|
|
7109
7096
|
);
|
|
7110
7097
|
}
|
|
7111
7098
|
async function hasBody(accountId, messageId) {
|
|
7112
|
-
return
|
|
7099
|
+
return chunkFOBB5U4Y_cjs.hasRecord(await keyOf.body(accountId, messageId));
|
|
7113
7100
|
}
|
|
7114
7101
|
async function loadBody(accountId, messageId) {
|
|
7115
|
-
return readJson(await
|
|
7102
|
+
return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.body(accountId, messageId)));
|
|
7116
7103
|
}
|
|
7117
7104
|
async function saveAttachment(accountId, messageId, attachmentId, bytes, sortAt) {
|
|
7118
7105
|
await put(
|
|
7119
7106
|
"attachment",
|
|
7120
7107
|
await keyOf.attachment(accountId, messageId, attachmentId),
|
|
7121
7108
|
await bucketOf.account(accountId),
|
|
7122
|
-
await
|
|
7109
|
+
await chunkFOBB5U4Y_cjs.sealBytes(bytes),
|
|
7123
7110
|
sortAt || void 0
|
|
7124
7111
|
);
|
|
7125
7112
|
}
|
|
7126
7113
|
async function hasAttachment(accountId, messageId, attachmentId) {
|
|
7127
|
-
return
|
|
7114
|
+
return chunkFOBB5U4Y_cjs.hasRecord(await keyOf.attachment(accountId, messageId, attachmentId));
|
|
7128
7115
|
}
|
|
7129
7116
|
async function loadAttachment(accountId, messageId, attachmentId) {
|
|
7130
7117
|
const key = await keyOf.attachment(accountId, messageId, attachmentId);
|
|
7131
|
-
const record = await
|
|
7118
|
+
const record = await chunkFOBB5U4Y_cjs.getRecord(key);
|
|
7132
7119
|
if (!record) return void 0;
|
|
7133
7120
|
try {
|
|
7134
|
-
const bytes = await
|
|
7135
|
-
void
|
|
7121
|
+
const bytes = await chunkFOBB5U4Y_cjs.openBytes(record.data);
|
|
7122
|
+
void chunkFOBB5U4Y_cjs.touchRecord(key);
|
|
7136
7123
|
return bytes;
|
|
7137
7124
|
} catch {
|
|
7138
7125
|
return void 0;
|
|
7139
7126
|
}
|
|
7140
7127
|
}
|
|
7141
7128
|
async function removeKeys(keys) {
|
|
7142
|
-
await
|
|
7129
|
+
await chunkFOBB5U4Y_cjs.deleteRecords(keys);
|
|
7143
7130
|
}
|
|
7144
7131
|
function bodyText(body) {
|
|
7145
7132
|
const html = body.text ? "" : (body.html ?? "").replace(/<[^>]*>/g, " ");
|
|
@@ -7184,27 +7171,27 @@ function isBrowserOffline() {
|
|
|
7184
7171
|
// src/mail/offline/changes.ts
|
|
7185
7172
|
var isFiling = (change) => change.kind === "file";
|
|
7186
7173
|
var MAX_ATTEMPTS = 5;
|
|
7187
|
-
var bucket = () =>
|
|
7188
|
-
var keyFor = (id) =>
|
|
7174
|
+
var bucket = () => chunkFOBB5U4Y_cjs.blind("bucket", "changes");
|
|
7175
|
+
var keyFor = (id) => chunkFOBB5U4Y_cjs.blind("change", id);
|
|
7189
7176
|
async function write(item) {
|
|
7190
|
-
await
|
|
7177
|
+
await chunkFOBB5U4Y_cjs.putRecord({
|
|
7191
7178
|
key: await keyFor(item.id),
|
|
7192
7179
|
kind: "change",
|
|
7193
7180
|
bucket: await bucket(),
|
|
7194
7181
|
sortAt: item.seq,
|
|
7195
7182
|
size: 0,
|
|
7196
7183
|
lastAccess: Date.now(),
|
|
7197
|
-
data: await
|
|
7184
|
+
data: await chunkFOBB5U4Y_cjs.sealJson(item)
|
|
7198
7185
|
});
|
|
7199
7186
|
}
|
|
7200
7187
|
async function drop(item) {
|
|
7201
|
-
await
|
|
7188
|
+
await chunkFOBB5U4Y_cjs.deleteRecords([await keyFor(item.id)]);
|
|
7202
7189
|
}
|
|
7203
7190
|
async function readHeader(accountId, folderId, messageId) {
|
|
7204
|
-
const record = await
|
|
7191
|
+
const record = await chunkFOBB5U4Y_cjs.getRecord(await keyOf.header(accountId, folderId, messageId));
|
|
7205
7192
|
if (!record) return void 0;
|
|
7206
7193
|
try {
|
|
7207
|
-
return await
|
|
7194
|
+
return await chunkFOBB5U4Y_cjs.openJson(record.data);
|
|
7208
7195
|
} catch {
|
|
7209
7196
|
return void 0;
|
|
7210
7197
|
}
|
|
@@ -7286,9 +7273,9 @@ function combine(pending, next) {
|
|
|
7286
7273
|
}
|
|
7287
7274
|
async function listMailChanges() {
|
|
7288
7275
|
const items = [];
|
|
7289
|
-
for (const record of await
|
|
7276
|
+
for (const record of await chunkFOBB5U4Y_cjs.recordsInBucket(await bucket())) {
|
|
7290
7277
|
try {
|
|
7291
|
-
items.push(await
|
|
7278
|
+
items.push(await chunkFOBB5U4Y_cjs.openJson(record.data));
|
|
7292
7279
|
} catch {
|
|
7293
7280
|
}
|
|
7294
7281
|
}
|
|
@@ -7343,14 +7330,14 @@ function serially(fn) {
|
|
|
7343
7330
|
}
|
|
7344
7331
|
async function queueMailChange(input) {
|
|
7345
7332
|
await serially(() => queue(input));
|
|
7346
|
-
|
|
7347
|
-
|
|
7333
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("changes");
|
|
7334
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("mailbox");
|
|
7348
7335
|
}
|
|
7349
7336
|
async function readChange(id) {
|
|
7350
|
-
const record = await
|
|
7337
|
+
const record = await chunkFOBB5U4Y_cjs.getRecord(await keyFor(id));
|
|
7351
7338
|
if (!record) return void 0;
|
|
7352
7339
|
try {
|
|
7353
|
-
return await
|
|
7340
|
+
return await chunkFOBB5U4Y_cjs.openJson(record.data);
|
|
7354
7341
|
} catch {
|
|
7355
7342
|
return void 0;
|
|
7356
7343
|
}
|
|
@@ -7423,13 +7410,13 @@ async function applyMailChangesOnce(sender, isOnline) {
|
|
|
7423
7410
|
result.interrupted = true;
|
|
7424
7411
|
}
|
|
7425
7412
|
}
|
|
7426
|
-
if (result.applied + result.gone + result.refused.length > 0)
|
|
7413
|
+
if (result.applied + result.gone + result.refused.length > 0) chunkFOBB5U4Y_cjs.notifyOfflineMailChange("changes");
|
|
7427
7414
|
return result;
|
|
7428
7415
|
}
|
|
7429
7416
|
var NO_PRIMER = () => void 0;
|
|
7430
7417
|
async function sendMailFile(fetch2, prime, account, messageId, request) {
|
|
7431
7418
|
const { threadId } = request;
|
|
7432
|
-
return
|
|
7419
|
+
return chunkNK5KFHXP_cjs.inWorkspace(prime, request.workspaceExtId, async () => {
|
|
7433
7420
|
if (!threadId) return browser.mail.fileMessage(fetch2, messageId, request.workspaceExtId, account.id);
|
|
7434
7421
|
const { filed } = await browser.mail.fileConversation(fetch2, {
|
|
7435
7422
|
accountId: account.id,
|
|
@@ -7442,7 +7429,7 @@ async function sendMailFile(fetch2, prime, account, messageId, request) {
|
|
|
7442
7429
|
}
|
|
7443
7430
|
function useMailWorkspacePrimer() {
|
|
7444
7431
|
const { arbi } = chunkO32T7XRD_cjs.useArbiHost();
|
|
7445
|
-
return arbi ?
|
|
7432
|
+
return arbi ? chunkNK5KFHXP_cjs.primeOnArbi(arbi) : NO_PRIMER;
|
|
7446
7433
|
}
|
|
7447
7434
|
function useMailFiling(account, messageIds, threadIds, options = {}) {
|
|
7448
7435
|
const { client } = useMailClient();
|
|
@@ -7476,7 +7463,7 @@ function useSetNativeMailFiling() {
|
|
|
7476
7463
|
const prime = useMailWorkspacePrimer();
|
|
7477
7464
|
const queryClient = reactQuery.useQueryClient();
|
|
7478
7465
|
return reactQuery.useMutation({
|
|
7479
|
-
mutationFn: (input) =>
|
|
7466
|
+
mutationFn: (input) => chunkNK5KFHXP_cjs.inWorkspace(prime, input.workspaceExtId, () => browser.mail.setNativeFiling(client.fetch, input)),
|
|
7480
7467
|
onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.mailQueryKeys.allFiling() })
|
|
7481
7468
|
});
|
|
7482
7469
|
}
|
|
@@ -7539,26 +7526,26 @@ function useConnectedMailFiling(account, messages) {
|
|
|
7539
7526
|
}
|
|
7540
7527
|
|
|
7541
7528
|
// src/mail/offline/drafts.ts
|
|
7542
|
-
var keyFor2 = (id) =>
|
|
7529
|
+
var keyFor2 = (id) => chunkFOBB5U4Y_cjs.blind("draft", id);
|
|
7543
7530
|
async function saveLocalDraft(accountId, compose, id = crypto.randomUUID()) {
|
|
7544
7531
|
const draft = { id, accountId, compose, updatedAt: Date.now() };
|
|
7545
|
-
await
|
|
7532
|
+
await chunkFOBB5U4Y_cjs.putRecord({
|
|
7546
7533
|
key: await keyFor2(id),
|
|
7547
7534
|
kind: "draft",
|
|
7548
|
-
bucket: await
|
|
7535
|
+
bucket: await chunkFOBB5U4Y_cjs.blind("bucket", "drafts", accountId),
|
|
7549
7536
|
sortAt: draft.updatedAt,
|
|
7550
7537
|
size: 0,
|
|
7551
7538
|
lastAccess: draft.updatedAt,
|
|
7552
|
-
data: await
|
|
7539
|
+
data: await chunkFOBB5U4Y_cjs.sealJson(draft)
|
|
7553
7540
|
});
|
|
7554
|
-
|
|
7541
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("drafts");
|
|
7555
7542
|
return draft;
|
|
7556
7543
|
}
|
|
7557
7544
|
async function listLocalDrafts(accountId) {
|
|
7558
7545
|
const drafts = [];
|
|
7559
|
-
for (const record of await
|
|
7546
|
+
for (const record of await chunkFOBB5U4Y_cjs.recordsOfKind("draft")) {
|
|
7560
7547
|
try {
|
|
7561
|
-
const draft = await
|
|
7548
|
+
const draft = await chunkFOBB5U4Y_cjs.openJson(record.data);
|
|
7562
7549
|
if (!accountId || draft.accountId === accountId) drafts.push(draft);
|
|
7563
7550
|
} catch {
|
|
7564
7551
|
}
|
|
@@ -7566,8 +7553,8 @@ async function listLocalDrafts(accountId) {
|
|
|
7566
7553
|
return drafts.sort((a, b) => b.updatedAt - a.updatedAt);
|
|
7567
7554
|
}
|
|
7568
7555
|
async function deleteLocalDraft(id) {
|
|
7569
|
-
await
|
|
7570
|
-
|
|
7556
|
+
await chunkFOBB5U4Y_cjs.deleteRecords([await keyFor2(id)]);
|
|
7557
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("drafts");
|
|
7571
7558
|
}
|
|
7572
7559
|
async function syncLocalDrafts(save) {
|
|
7573
7560
|
let uploaded = 0;
|
|
@@ -7580,27 +7567,27 @@ async function syncLocalDrafts(save) {
|
|
|
7580
7567
|
} catch (error) {
|
|
7581
7568
|
const status = error.status;
|
|
7582
7569
|
if (isNetworkFailure(error) || status === void 0 || status === 401 || status >= 500) break;
|
|
7583
|
-
await
|
|
7570
|
+
await chunkFOBB5U4Y_cjs.putRecord({
|
|
7584
7571
|
key: await keyFor2(draft.id),
|
|
7585
7572
|
kind: "draft",
|
|
7586
|
-
bucket: await
|
|
7573
|
+
bucket: await chunkFOBB5U4Y_cjs.blind("bucket", "drafts", draft.accountId),
|
|
7587
7574
|
sortAt: draft.updatedAt,
|
|
7588
7575
|
size: 0,
|
|
7589
7576
|
lastAccess: Date.now(),
|
|
7590
|
-
data: await
|
|
7577
|
+
data: await chunkFOBB5U4Y_cjs.sealJson({
|
|
7591
7578
|
...draft,
|
|
7592
7579
|
error: error instanceof Error ? error.message : "The server refused this draft"
|
|
7593
7580
|
})
|
|
7594
7581
|
});
|
|
7595
|
-
|
|
7582
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("drafts");
|
|
7596
7583
|
}
|
|
7597
7584
|
}
|
|
7598
7585
|
return uploaded;
|
|
7599
7586
|
}
|
|
7600
7587
|
|
|
7601
7588
|
// src/mail/offline/outbox.ts
|
|
7602
|
-
var bucket2 = () =>
|
|
7603
|
-
var keyFor3 = (id) =>
|
|
7589
|
+
var bucket2 = () => chunkFOBB5U4Y_cjs.blind("bucket", "outbox");
|
|
7590
|
+
var keyFor3 = (id) => chunkFOBB5U4Y_cjs.blind("outbox", id);
|
|
7604
7591
|
function outboxProblem(compose) {
|
|
7605
7592
|
const missing = compose.attachments.find((a) => a.content_base64 == null);
|
|
7606
7593
|
if (missing)
|
|
@@ -7609,22 +7596,22 @@ function outboxProblem(compose) {
|
|
|
7609
7596
|
}
|
|
7610
7597
|
var seqCounter = 0;
|
|
7611
7598
|
async function write2(item) {
|
|
7612
|
-
await
|
|
7599
|
+
await chunkFOBB5U4Y_cjs.putRecord({
|
|
7613
7600
|
key: await keyFor3(item.id),
|
|
7614
7601
|
kind: "outbox",
|
|
7615
7602
|
bucket: await bucket2(),
|
|
7616
7603
|
sortAt: item.seq,
|
|
7617
7604
|
size: 0,
|
|
7618
7605
|
lastAccess: Date.now(),
|
|
7619
|
-
data: await
|
|
7606
|
+
data: await chunkFOBB5U4Y_cjs.sealJson(item)
|
|
7620
7607
|
});
|
|
7621
7608
|
}
|
|
7622
7609
|
async function listOutbox() {
|
|
7623
|
-
const records = await
|
|
7610
|
+
const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucket2());
|
|
7624
7611
|
const items = [];
|
|
7625
7612
|
for (const record of records) {
|
|
7626
7613
|
try {
|
|
7627
|
-
items.push(await
|
|
7614
|
+
items.push(await chunkFOBB5U4Y_cjs.openJson(record.data));
|
|
7628
7615
|
} catch {
|
|
7629
7616
|
}
|
|
7630
7617
|
}
|
|
@@ -7648,18 +7635,18 @@ async function enqueueOutbox(input) {
|
|
|
7648
7635
|
seq: seqCounter
|
|
7649
7636
|
};
|
|
7650
7637
|
await write2(item);
|
|
7651
|
-
|
|
7638
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
|
|
7652
7639
|
return item;
|
|
7653
7640
|
}
|
|
7654
7641
|
async function update(item, patch) {
|
|
7655
7642
|
const next = { ...item, ...patch };
|
|
7656
7643
|
await write2(next);
|
|
7657
|
-
|
|
7644
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
|
|
7658
7645
|
return next;
|
|
7659
7646
|
}
|
|
7660
7647
|
async function deleteOutboxItem(id) {
|
|
7661
|
-
await
|
|
7662
|
-
|
|
7648
|
+
await chunkFOBB5U4Y_cjs.deleteRecords([await keyFor3(id)]);
|
|
7649
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
|
|
7663
7650
|
}
|
|
7664
7651
|
async function retryOutboxItem(id) {
|
|
7665
7652
|
const item = (await listOutbox()).find((i) => i.id === id);
|
|
@@ -7750,14 +7737,14 @@ async function purgeSentOutbox(olderThanMs = 0) {
|
|
|
7750
7737
|
const cutoff = Date.now() - olderThanMs;
|
|
7751
7738
|
const done = (await listOutbox()).filter((i) => i.status === "sent" && (i.sentAt ?? 0) <= cutoff);
|
|
7752
7739
|
if (done.length === 0) return;
|
|
7753
|
-
await
|
|
7754
|
-
|
|
7740
|
+
await chunkFOBB5U4Y_cjs.deleteRecords(await Promise.all(done.map((i) => keyFor3(i.id))));
|
|
7741
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
|
|
7755
7742
|
}
|
|
7756
7743
|
var STATUS_KEY = "status";
|
|
7757
7744
|
var FULL_SYNC_EVERY_MS = 60 * 60 * 1e3;
|
|
7758
7745
|
var MAX_PAGES = 200;
|
|
7759
7746
|
async function getOfflineMailStatus() {
|
|
7760
|
-
return await
|
|
7747
|
+
return await chunkFOBB5U4Y_cjs.getMeta(STATUS_KEY) ?? { messages: 0, bytes: 0, skipped: [] };
|
|
7761
7748
|
}
|
|
7762
7749
|
var MB = 1024 * 1024;
|
|
7763
7750
|
var time = (m) => m.received_at ? Date.parse(m.received_at) || 0 : 0;
|
|
@@ -7848,23 +7835,23 @@ async function collectGarbage(accounts) {
|
|
|
7848
7835
|
expected.add(await keyOf.attachment(account.id, message.id, attachment.id));
|
|
7849
7836
|
}
|
|
7850
7837
|
}
|
|
7851
|
-
const orphans = (await
|
|
7838
|
+
const orphans = (await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.account(account.id))).filter((r) => (r.kind === "body" || r.kind === "attachment") && !expected.has(r.key)).map((r) => r.key);
|
|
7852
7839
|
await removeKeys(orphans);
|
|
7853
7840
|
}
|
|
7854
7841
|
}
|
|
7855
7842
|
async function forgetAccount(accountId) {
|
|
7856
7843
|
for (const folder of await loadFolders(accountId) ?? []) {
|
|
7857
|
-
const records2 = await
|
|
7844
|
+
const records2 = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.folder(accountId, folder.id));
|
|
7858
7845
|
await removeKeys(records2.map((r) => r.key));
|
|
7859
7846
|
}
|
|
7860
|
-
const records = await
|
|
7847
|
+
const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.account(accountId));
|
|
7861
7848
|
await removeKeys(records.filter((r) => r.kind !== "draft").map((r) => r.key));
|
|
7862
7849
|
}
|
|
7863
7850
|
async function enforceQuota(quotaBytes) {
|
|
7864
|
-
let used = (await
|
|
7851
|
+
let used = (await chunkFOBB5U4Y_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0);
|
|
7865
7852
|
if (used <= quotaBytes) return used;
|
|
7866
7853
|
for (const kind of ["attachment", "body"]) {
|
|
7867
|
-
const records = (await
|
|
7854
|
+
const records = (await chunkFOBB5U4Y_cjs.recordsOfKind(kind)).sort(
|
|
7868
7855
|
(a, b) => kind === "attachment" ? a.lastAccess - b.lastAccess : a.sortAt - b.sortAt
|
|
7869
7856
|
);
|
|
7870
7857
|
const evict = [];
|
|
@@ -7880,34 +7867,34 @@ async function enforceQuota(quotaBytes) {
|
|
|
7880
7867
|
}
|
|
7881
7868
|
var CONTENT_KINDS = ["header", "body", "attachment"];
|
|
7882
7869
|
async function trimOfflineMailbox(settings, now = Date.now()) {
|
|
7883
|
-
const windowStart =
|
|
7870
|
+
const windowStart = chunkFOBB5U4Y_cjs.offlineWindowStart(settings, now);
|
|
7884
7871
|
const kinds = settings.enabled ? CONTENT_KINDS : [...CONTENT_KINDS, "folders"];
|
|
7885
7872
|
for (const kind of kinds) {
|
|
7886
|
-
const records = await
|
|
7873
|
+
const records = await chunkFOBB5U4Y_cjs.recordsOfKind(kind);
|
|
7887
7874
|
const old = settings.enabled ? records.filter((r) => r.sortAt > 0 && r.sortAt < windowStart) : records;
|
|
7888
7875
|
await removeKeys(old.map((r) => r.key));
|
|
7889
7876
|
}
|
|
7890
7877
|
const previous = await getOfflineMailStatus();
|
|
7891
7878
|
const status = {
|
|
7892
7879
|
...previous,
|
|
7893
|
-
messages: (await
|
|
7894
|
-
bytes: (await
|
|
7880
|
+
messages: (await chunkFOBB5U4Y_cjs.recordsOfKind("header")).length,
|
|
7881
|
+
bytes: (await chunkFOBB5U4Y_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0),
|
|
7895
7882
|
// A shorter window no longer covers what the last full pass fetched: growing it again (even
|
|
7896
7883
|
// before the next hourly full pass) makes the next pass a full one.
|
|
7897
|
-
windowDays: settings.enabled && previous.windowDays !== void 0 ? Math.min(previous.windowDays,
|
|
7884
|
+
windowDays: settings.enabled && previous.windowDays !== void 0 ? Math.min(previous.windowDays, chunkFOBB5U4Y_cjs.SCOPE_DAYS[settings.scope]) : void 0,
|
|
7898
7885
|
// Off: nothing is saved, so turning it back on starts with a full pass.
|
|
7899
7886
|
...!settings.enabled && { lastSyncedAt: void 0, lastFullSyncAt: void 0 }
|
|
7900
7887
|
};
|
|
7901
|
-
await
|
|
7902
|
-
|
|
7888
|
+
await chunkFOBB5U4Y_cjs.setMeta(STATUS_KEY, status);
|
|
7889
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
|
|
7903
7890
|
return status;
|
|
7904
7891
|
}
|
|
7905
7892
|
async function syncMailbox(transport, settings, options = {}) {
|
|
7906
7893
|
const now = options.now ?? Date.now();
|
|
7907
7894
|
const previous = await getOfflineMailStatus();
|
|
7908
|
-
const days =
|
|
7895
|
+
const days = chunkFOBB5U4Y_cjs.SCOPE_DAYS[settings.scope];
|
|
7909
7896
|
const full = options.full || !previous.lastFullSyncAt || now - previous.lastFullSyncAt > FULL_SYNC_EVERY_MS || (previous.windowDays ?? 0) < days;
|
|
7910
|
-
const windowStart =
|
|
7897
|
+
const windowStart = chunkFOBB5U4Y_cjs.offlineWindowStart(settings, now);
|
|
7911
7898
|
const quota = settings.quotaMb * MB;
|
|
7912
7899
|
const skipped = [];
|
|
7913
7900
|
let error;
|
|
@@ -7919,7 +7906,7 @@ async function syncMailbox(transport, settings, options = {}) {
|
|
|
7919
7906
|
for (const gone of before.filter((b) => !accounts.some((a) => a.id === b.id)))
|
|
7920
7907
|
await forgetAccount(gone.id);
|
|
7921
7908
|
const budget = new Budget(
|
|
7922
|
-
(await
|
|
7909
|
+
(await chunkFOBB5U4Y_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0),
|
|
7923
7910
|
quota
|
|
7924
7911
|
);
|
|
7925
7912
|
for (const account of accounts) {
|
|
@@ -7933,12 +7920,12 @@ async function syncMailbox(transport, settings, options = {}) {
|
|
|
7933
7920
|
const oldFolders = await loadFolders(account.id) ?? [];
|
|
7934
7921
|
await saveFolders(account.id, folders);
|
|
7935
7922
|
for (const gone of oldFolders.filter((o) => !folders.some((f) => f.id === o.id))) {
|
|
7936
|
-
const records = await
|
|
7923
|
+
const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.folder(account.id, gone.id));
|
|
7937
7924
|
await removeKeys(records.map((r) => r.key));
|
|
7938
7925
|
}
|
|
7939
7926
|
for (const folder of folders.filter((f) => !isVirtualFolder(f)))
|
|
7940
7927
|
await syncFolder(transport, account, folder, settings, windowStart, full, budget);
|
|
7941
|
-
|
|
7928
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("mailbox");
|
|
7942
7929
|
} catch (accountError) {
|
|
7943
7930
|
if (accountError.status === void 0) throw accountError;
|
|
7944
7931
|
client.logger.warn("[offline-mail] account sync failed", accountError);
|
|
@@ -7956,19 +7943,19 @@ async function syncMailbox(transport, settings, options = {}) {
|
|
|
7956
7943
|
const trimmed = await trimOfflineMailbox(current, now);
|
|
7957
7944
|
if (!current.enabled) return trimmed;
|
|
7958
7945
|
const bytes = await enforceQuota(current.quotaMb * MB);
|
|
7959
|
-
const messages = (await
|
|
7946
|
+
const messages = (await chunkFOBB5U4Y_cjs.recordsOfKind("header")).length;
|
|
7960
7947
|
const fullDone = !error && full;
|
|
7961
7948
|
const status = {
|
|
7962
7949
|
lastSyncedAt: error ? previous.lastSyncedAt : now,
|
|
7963
7950
|
lastFullSyncAt: fullDone ? now : previous.lastFullSyncAt,
|
|
7964
|
-
windowDays: fullDone ? Math.min(days,
|
|
7951
|
+
windowDays: fullDone ? Math.min(days, chunkFOBB5U4Y_cjs.SCOPE_DAYS[current.scope]) : trimmed.windowDays,
|
|
7965
7952
|
messages,
|
|
7966
7953
|
bytes,
|
|
7967
7954
|
error,
|
|
7968
7955
|
skipped
|
|
7969
7956
|
};
|
|
7970
|
-
await
|
|
7971
|
-
|
|
7957
|
+
await chunkFOBB5U4Y_cjs.setMeta(STATUS_KEY, status);
|
|
7958
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
|
|
7972
7959
|
return status;
|
|
7973
7960
|
}
|
|
7974
7961
|
|
|
@@ -8060,7 +8047,7 @@ function liveChangeSender(arbi) {
|
|
|
8060
8047
|
const { kind: _, ...request } = change;
|
|
8061
8048
|
await sendMailFile(
|
|
8062
8049
|
(p, i) => arbi.mail.fetch(p, i),
|
|
8063
|
-
|
|
8050
|
+
chunkNK5KFHXP_cjs.primeOnArbi(arbi),
|
|
8064
8051
|
account,
|
|
8065
8052
|
messageId,
|
|
8066
8053
|
request
|
|
@@ -8167,20 +8154,20 @@ function isMailSyncRunning() {
|
|
|
8167
8154
|
return syncing;
|
|
8168
8155
|
}
|
|
8169
8156
|
async function syncOfflineMailbox({ arbi }, options = {}) {
|
|
8170
|
-
const latest = () =>
|
|
8157
|
+
const latest = () => chunkFOBB5U4Y_cjs.getOfflineMailSettings(sessionUser(arbi));
|
|
8171
8158
|
const settings = latest();
|
|
8172
8159
|
if (!settings.enabled || !canReachMail(arbi)) return;
|
|
8173
8160
|
void requestPersistentStorage();
|
|
8174
8161
|
await exclusive("arbi-mail-sync", async () => {
|
|
8175
8162
|
syncing = true;
|
|
8176
|
-
|
|
8163
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
|
|
8177
8164
|
try {
|
|
8178
8165
|
await syncMailbox(liveTransport(arbi), latest(), { ...options, latest });
|
|
8179
8166
|
} catch (error) {
|
|
8180
8167
|
client.logger.error("[offline-mail] sync failed", error);
|
|
8181
8168
|
} finally {
|
|
8182
8169
|
syncing = false;
|
|
8183
|
-
|
|
8170
|
+
chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
|
|
8184
8171
|
}
|
|
8185
8172
|
});
|
|
8186
8173
|
}
|
|
@@ -8211,9 +8198,9 @@ async function savedFolder(accountId, folderId) {
|
|
|
8211
8198
|
}
|
|
8212
8199
|
function offlineMailReads(getArbi, { keepsMail = () => true } = {}) {
|
|
8213
8200
|
const call = (path) => mailJson((p, i) => getArbi().mail.fetch(p, i), path);
|
|
8214
|
-
const settings = () =>
|
|
8201
|
+
const settings = () => chunkFOBB5U4Y_cjs.getOfflineMailSettings(sessionUser(getArbi()));
|
|
8215
8202
|
const storeEnabled = () => settings().enabled;
|
|
8216
|
-
const keeps = (message) =>
|
|
8203
|
+
const keeps = (message) => chunkFOBB5U4Y_cjs.inOfflineWindow(settings(), message.received_at);
|
|
8217
8204
|
const remember = (write3) => {
|
|
8218
8205
|
if (!keepsMail()) return;
|
|
8219
8206
|
write3().catch((error) => client.logger.warn("[offline-mail] could not save for offline use", error));
|
|
@@ -8749,7 +8736,7 @@ function applyRunFinished(queryClient, arbi, session, message, onQuotaExceeded)
|
|
|
8749
8736
|
if (!conversationId) return;
|
|
8750
8737
|
session.setConversationGenerating(conversationId, false, null);
|
|
8751
8738
|
if (message.doc_ext_ids?.length) {
|
|
8752
|
-
|
|
8739
|
+
chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, message.doc_ext_ids).catch(
|
|
8753
8740
|
(error) => client.logger.error("[WebSocket] Failed to refresh task outputs:", error)
|
|
8754
8741
|
);
|
|
8755
8742
|
}
|
|
@@ -8807,22 +8794,22 @@ function ArbiWebSocketProvider({
|
|
|
8807
8794
|
arbiRef.current = arbi;
|
|
8808
8795
|
const queryClient = reactQuery.useQueryClient();
|
|
8809
8796
|
const subscribersRef = React.useRef(/* @__PURE__ */ new Set());
|
|
8810
|
-
const setStatus =
|
|
8811
|
-
const applyTaskUpdate =
|
|
8812
|
-
const applyPresence =
|
|
8813
|
-
const reset =
|
|
8814
|
-
const setEvicted =
|
|
8797
|
+
const setStatus = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.setStatus);
|
|
8798
|
+
const applyTaskUpdate = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.applyTaskUpdate);
|
|
8799
|
+
const applyPresence = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.applyPresence);
|
|
8800
|
+
const reset = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.reset);
|
|
8801
|
+
const setEvicted = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.setEvicted);
|
|
8815
8802
|
const onAuthenticatedRef = React.useRef(onAuthenticated);
|
|
8816
8803
|
onAuthenticatedRef.current = onAuthenticated;
|
|
8817
8804
|
const handlersRef = React.useRef(handlers);
|
|
8818
8805
|
handlersRef.current = handlers;
|
|
8819
|
-
const session =
|
|
8806
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
8820
8807
|
const sessionRef = React.useRef(session);
|
|
8821
8808
|
sessionRef.current = session;
|
|
8822
8809
|
const host = chunkO32T7XRD_cjs.useArbiHost();
|
|
8823
8810
|
const hostRef = React.useRef(host);
|
|
8824
8811
|
hostRef.current = host;
|
|
8825
|
-
const acceptRings =
|
|
8812
|
+
const acceptRings = chunkFOBB5U4Y_cjs.useFeature("calls");
|
|
8826
8813
|
const acceptRingsRef = React.useRef(acceptRings);
|
|
8827
8814
|
acceptRingsRef.current = acceptRings;
|
|
8828
8815
|
useOnlineSync();
|
|
@@ -8866,18 +8853,18 @@ function ArbiWebSocketProvider({
|
|
|
8866
8853
|
client.logger.error("[WebSocket] Server error:", msg.message);
|
|
8867
8854
|
else if (client.isMessageType(msg, "batch_complete")) {
|
|
8868
8855
|
if (msg.batch_type === "entity_extract") {
|
|
8869
|
-
|
|
8856
|
+
chunkNK5KFHXP_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
|
|
8870
8857
|
void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allFacts() });
|
|
8871
8858
|
}
|
|
8872
8859
|
if (msg.batch_type === "upload" || msg.batch_type === "entity_extract") {
|
|
8873
8860
|
if (msg.doc_ext_ids?.length)
|
|
8874
|
-
void
|
|
8861
|
+
void chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbiRef.current, msg.doc_ext_ids);
|
|
8875
8862
|
void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allTags() });
|
|
8876
8863
|
}
|
|
8877
8864
|
} else if (type.startsWith("chat.") || type === "agent_dm_status")
|
|
8878
|
-
void
|
|
8865
|
+
void chunkFOBB5U4Y_cjs.applyChatEvent(arbiRef.current, queryClient, msg);
|
|
8879
8866
|
else if (type.startsWith("call."))
|
|
8880
|
-
|
|
8867
|
+
chunkFOBB5U4Y_cjs.applyCallEvent(queryClient, msg, { me: me(), acceptRings: acceptRingsRef.current });
|
|
8881
8868
|
else if (isNotificationRow(msg)) applyNotificationRow(queryClient, msg, me());
|
|
8882
8869
|
else void applyLiveUpdate(queryClient, msg);
|
|
8883
8870
|
try {
|
|
@@ -8988,7 +8975,7 @@ function useArbiWsMessage(type, handler) {
|
|
|
8988
8975
|
);
|
|
8989
8976
|
}
|
|
8990
8977
|
function useArbiWsStatus() {
|
|
8991
|
-
return
|
|
8978
|
+
return chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.status);
|
|
8992
8979
|
}
|
|
8993
8980
|
|
|
8994
8981
|
// src/workspaces/shell-workspaces.ts
|
|
@@ -9253,7 +9240,7 @@ function useSwitchWorkspace() {
|
|
|
9253
9240
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
9254
9241
|
const arbiRef = React.useRef(arbi);
|
|
9255
9242
|
arbiRef.current = arbi;
|
|
9256
|
-
const session =
|
|
9243
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
9257
9244
|
const queryClient = reactQuery.useQueryClient();
|
|
9258
9245
|
React.useEffect(
|
|
9259
9246
|
() => arbi.onSigningOut?.(() => {
|
|
@@ -9270,11 +9257,11 @@ function useSwitchWorkspace() {
|
|
|
9270
9257
|
function useOpenSelectedWorkspace() {
|
|
9271
9258
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
9272
9259
|
const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
|
|
9273
|
-
const workspaceId =
|
|
9274
|
-
const status =
|
|
9275
|
-
const session =
|
|
9260
|
+
const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
9261
|
+
const status = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
9262
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
9276
9263
|
const queryClient = reactQuery.useQueryClient();
|
|
9277
|
-
const { data: workspaces, isLoading: listing, isFetching } =
|
|
9264
|
+
const { data: workspaces, isLoading: listing, isFetching } = chunkH3XHBIZ6_cjs.useWorkspaces();
|
|
9278
9265
|
const listed = workspaces;
|
|
9279
9266
|
const archived = listed?.find((w) => w.external_id === workspaceId && w.archive);
|
|
9280
9267
|
const reads = queryClient.getQueryState(chunkO32T7XRD_cjs.arbiQueryKeys.workspaces())?.dataUpdateCount ?? 0;
|
|
@@ -9580,12 +9567,12 @@ function useWorkspaceExportDownload({
|
|
|
9580
9567
|
const client = arbi.getClient().fetch;
|
|
9581
9568
|
const archive = await buildWorkspaceArchive({
|
|
9582
9569
|
exportData: data,
|
|
9583
|
-
fetchFile: async (docExtId, version, kind) => kind === "markup" ? (await
|
|
9570
|
+
fetchFile: async (docExtId, version, kind) => kind === "markup" ? (await chunkG5DYDBQN_cjs.fetchMarkupPdf(client, docExtId, version, workspaceId)).blob : chunkG5DYDBQN_cjs.fetchDocumentFile(client, docExtId, { version, workspaceExtId: workspaceId }),
|
|
9584
9571
|
metadataCsv,
|
|
9585
9572
|
onProgress: (done, total) => setProgress({ done, total })
|
|
9586
9573
|
});
|
|
9587
9574
|
const fileName = archiveName(workspaceName, "export");
|
|
9588
|
-
|
|
9575
|
+
chunkG5DYDBQN_cjs.downloadBlob(archive.blob, fileName);
|
|
9589
9576
|
const files = `${archive.fileCount} file${archive.fileCount !== 1 ? "s" : ""}`;
|
|
9590
9577
|
if (archive.failed.length === 0) {
|
|
9591
9578
|
chunkIX4HOS5Z_cjs.notify.success(`Successfully downloaded ${files} and data in ${fileName}`);
|
|
@@ -9741,9 +9728,9 @@ var EMPTY2 = { query: "", lastQuery: "", hits: null, workspaceId: null };
|
|
|
9741
9728
|
function useFactsSearch(options = {}) {
|
|
9742
9729
|
const { mode = "hybrid", limit = 30 } = options;
|
|
9743
9730
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
9744
|
-
const session =
|
|
9731
|
+
const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
|
|
9745
9732
|
const workspaceId = options.workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : null);
|
|
9746
|
-
const [kept, setKept] =
|
|
9733
|
+
const [kept, setKept] = chunkH3XHBIZ6_cjs.useTransientView(FACTS_SEARCH_VIEW, EMPTY2);
|
|
9747
9734
|
const searchFacts = useSearchFacts(workspaceId);
|
|
9748
9735
|
const run2 = React.useRef(0);
|
|
9749
9736
|
const foreign = !!kept.workspaceId && !!workspaceId && kept.workspaceId !== workspaceId;
|
|
@@ -10335,7 +10322,7 @@ function namesOfWorkspaces(workspaces) {
|
|
|
10335
10322
|
return names;
|
|
10336
10323
|
}
|
|
10337
10324
|
function useNames(enabled = true) {
|
|
10338
|
-
const { data } =
|
|
10325
|
+
const { data } = chunkH3XHBIZ6_cjs.useWorkspaces({ enabled });
|
|
10339
10326
|
return React.useMemo(() => {
|
|
10340
10327
|
const names = namesOfWorkspaces(data);
|
|
10341
10328
|
return (id) => id ? names.get(id) ?? id : null;
|
|
@@ -10396,8 +10383,8 @@ function createWorkflowsSource(labels) {
|
|
|
10396
10383
|
description: l.description,
|
|
10397
10384
|
useFields: staticFields(fields),
|
|
10398
10385
|
useRows(_params, enabled) {
|
|
10399
|
-
const on =
|
|
10400
|
-
const workspaceId =
|
|
10386
|
+
const on = chunkFOBB5U4Y_cjs.useFeature("workflows");
|
|
10387
|
+
const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
10401
10388
|
const query = useWorkflows({ enabled: enabled && on });
|
|
10402
10389
|
const nameOf = useNames(enabled);
|
|
10403
10390
|
const rows = React.useMemo(
|
|
@@ -10465,9 +10452,9 @@ function createActivitySource(labels) {
|
|
|
10465
10452
|
useFields: staticFields(fields),
|
|
10466
10453
|
useRows(_params, enabled) {
|
|
10467
10454
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
10468
|
-
const workspaceId =
|
|
10455
|
+
const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId) ?? void 0;
|
|
10469
10456
|
const { settled, openSelectedWorkspace } = useSwitchWorkspace();
|
|
10470
|
-
const feed =
|
|
10457
|
+
const feed = chunkH3XHBIZ6_cjs.useWorkspaceActivity(workspaceId, {
|
|
10471
10458
|
enabled: enabled && arbi.isLoggedIn,
|
|
10472
10459
|
limit: ENTRIES,
|
|
10473
10460
|
beforeFetch: async () => {
|
|
@@ -10535,7 +10522,7 @@ function createConversationsSource(labels) {
|
|
|
10535
10522
|
useRows(params, enabled) {
|
|
10536
10523
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
10537
10524
|
const workspaceId = typeof params.workspaceId === "string" && params.workspaceId ? params.workspaceId : arbi.hasWorkspace ? arbi.getWorkspaceId() : void 0;
|
|
10538
|
-
const query =
|
|
10525
|
+
const query = chunkH3XHBIZ6_cjs.useConversations(workspaceId, { enabled });
|
|
10539
10526
|
const nameOf = useNames(enabled);
|
|
10540
10527
|
const rows = React.useMemo(() => {
|
|
10541
10528
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -10643,7 +10630,7 @@ function createDatabaseSource(labels) {
|
|
|
10643
10630
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
10644
10631
|
const databaseId = text(params.databaseId);
|
|
10645
10632
|
const viewName = text(params.view);
|
|
10646
|
-
const settings =
|
|
10633
|
+
const settings = chunkFOBB5U4Y_cjs.useUserSettings({ enabled: Boolean(viewName) });
|
|
10647
10634
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
10648
10635
|
return React.useMemo(
|
|
10649
10636
|
() => viewName && databaseId ? viewsOfTable(settings.data?.tableviews, workspaceId, databaseId).find(
|
|
@@ -10725,7 +10712,7 @@ function createDatabaseSource(labels) {
|
|
|
10725
10712
|
useOptions(params) {
|
|
10726
10713
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
10727
10714
|
const databaseId = text(params.databaseId);
|
|
10728
|
-
const settings =
|
|
10715
|
+
const settings = chunkFOBB5U4Y_cjs.useUserSettings({ enabled: Boolean(databaseId) });
|
|
10729
10716
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
|
|
10730
10717
|
const options = React.useMemo(
|
|
10731
10718
|
() => databaseId ? viewsOfTable(settings.data?.tableviews, workspaceId, databaseId).map((v) => ({
|
|
@@ -10801,7 +10788,7 @@ function createDocumentsSource(labels) {
|
|
|
10801
10788
|
description: l.description,
|
|
10802
10789
|
useFields: staticFields(fields),
|
|
10803
10790
|
useRows(params, enabled) {
|
|
10804
|
-
const query =
|
|
10791
|
+
const query = chunkNK5KFHXP_cjs.useDocuments(workspaceOf2(params), { enabled });
|
|
10805
10792
|
const nameOf = useNames(enabled);
|
|
10806
10793
|
const rows = React.useMemo(
|
|
10807
10794
|
() => query.data?.map((d) => ({
|
|
@@ -10934,7 +10921,7 @@ function createProjectsSource(options = {}) {
|
|
|
10934
10921
|
label: l.source,
|
|
10935
10922
|
description: l.description,
|
|
10936
10923
|
useFields() {
|
|
10937
|
-
const query =
|
|
10924
|
+
const query = chunkH3XHBIZ6_cjs.useProjects();
|
|
10938
10925
|
const fields = React.useMemo(
|
|
10939
10926
|
() => fieldsOf(query.data),
|
|
10940
10927
|
[query.data]
|
|
@@ -10942,7 +10929,7 @@ function createProjectsSource(options = {}) {
|
|
|
10942
10929
|
return { fields, isLoading: query.isLoading, error: query.error };
|
|
10943
10930
|
},
|
|
10944
10931
|
useRows(_params, enabled) {
|
|
10945
|
-
const query =
|
|
10932
|
+
const query = chunkH3XHBIZ6_cjs.useProjects({ enabled });
|
|
10946
10933
|
const nameOf = useNames(enabled);
|
|
10947
10934
|
const rows = React.useMemo(() => {
|
|
10948
10935
|
const projects = query.data;
|
|
@@ -11019,7 +11006,7 @@ function createTagsSource(labels) {
|
|
|
11019
11006
|
description: l.description,
|
|
11020
11007
|
useFields: staticFields(fields),
|
|
11021
11008
|
useRows(_params, enabled) {
|
|
11022
|
-
const query =
|
|
11009
|
+
const query = chunkH3XHBIZ6_cjs.useTags(void 0, { enabled });
|
|
11023
11010
|
const nameOf = useNames(enabled);
|
|
11024
11011
|
const rows = React.useMemo(
|
|
11025
11012
|
() => query.data?.map((t) => ({
|
|
@@ -11144,8 +11131,8 @@ function useUsageResponses(params, enabled) {
|
|
|
11144
11131
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
11145
11132
|
const monthsBack = monthsBackOf(params);
|
|
11146
11133
|
const only = projectOf(params);
|
|
11147
|
-
const projects =
|
|
11148
|
-
const user =
|
|
11134
|
+
const projects = chunkH3XHBIZ6_cjs.useProjects({ enabled });
|
|
11135
|
+
const user = chunkH3XHBIZ6_cjs.useCurrentUser({ enabled: enabled && arbi.isLoggedIn && !only });
|
|
11149
11136
|
const me = user.data?.external_id;
|
|
11150
11137
|
const list = React.useMemo(() => {
|
|
11151
11138
|
const all = projects.data ?? [];
|
|
@@ -11201,8 +11188,8 @@ function usageParams(l) {
|
|
|
11201
11188
|
placeholder: l.allProjects,
|
|
11202
11189
|
useOptions() {
|
|
11203
11190
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
11204
|
-
const projects =
|
|
11205
|
-
const user =
|
|
11191
|
+
const projects = chunkH3XHBIZ6_cjs.useProjects();
|
|
11192
|
+
const user = chunkH3XHBIZ6_cjs.useCurrentUser({ enabled: arbi.isLoggedIn });
|
|
11206
11193
|
const me = user.data?.external_id;
|
|
11207
11194
|
const options = React.useMemo(
|
|
11208
11195
|
() => ownedBy(projects.data, me).map((p) => ({ value: p.external_id, label: p.name })),
|
|
@@ -11273,7 +11260,7 @@ function createUsageBreakdownSource(labels) {
|
|
|
11273
11260
|
useRows(params, enabled) {
|
|
11274
11261
|
const by = breakdownOf(params);
|
|
11275
11262
|
const { usages, isLoading, error } = useUsageResponses(params, enabled);
|
|
11276
|
-
const workspaces =
|
|
11263
|
+
const workspaces = chunkH3XHBIZ6_cjs.useWorkspaces({
|
|
11277
11264
|
enabled: enabled && (by === "user" || by === "workspace")
|
|
11278
11265
|
});
|
|
11279
11266
|
const names = React.useMemo(
|
|
@@ -11322,8 +11309,8 @@ function createWorkspacesSource(labels) {
|
|
|
11322
11309
|
description: l.description,
|
|
11323
11310
|
useFields: staticFields(fields),
|
|
11324
11311
|
useRows(_params, enabled) {
|
|
11325
|
-
const workspaces =
|
|
11326
|
-
const projects =
|
|
11312
|
+
const workspaces = chunkH3XHBIZ6_cjs.useWorkspaces({ enabled });
|
|
11313
|
+
const projects = chunkH3XHBIZ6_cjs.useProjects({ enabled });
|
|
11327
11314
|
const rows = React.useMemo(() => {
|
|
11328
11315
|
const list = workspaces.data;
|
|
11329
11316
|
if (!list) return void 0;
|
|
@@ -12238,8 +12225,8 @@ function usePeople() {
|
|
|
12238
12225
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
12239
12226
|
const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
|
|
12240
12227
|
const { data: contacts = [] } = useContacts();
|
|
12241
|
-
const { data: workspaces = [] } =
|
|
12242
|
-
const { data: agents = [] } =
|
|
12228
|
+
const { data: workspaces = [] } = chunkH3XHBIZ6_cjs.useWorkspaces();
|
|
12229
|
+
const { data: agents = [] } = chunkH3XHBIZ6_cjs.useAgents();
|
|
12243
12230
|
return React.useMemo(() => {
|
|
12244
12231
|
const people = [];
|
|
12245
12232
|
const contactOf = /* @__PURE__ */ new Map();
|
|
@@ -12339,7 +12326,7 @@ var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
|
12339
12326
|
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
12340
12327
|
function useModelConnections() {
|
|
12341
12328
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
12342
|
-
const userId =
|
|
12329
|
+
const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? void 0;
|
|
12343
12330
|
return reactQuery.useQuery({
|
|
12344
12331
|
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.modelConnections(userId),
|
|
12345
12332
|
queryFn: () => arbi.modelConnections.list(),
|
|
@@ -12348,7 +12335,7 @@ function useModelConnections() {
|
|
|
12348
12335
|
}
|
|
12349
12336
|
function useDirectModelUsage() {
|
|
12350
12337
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
12351
|
-
const userId =
|
|
12338
|
+
const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? void 0;
|
|
12352
12339
|
return reactQuery.useQuery({
|
|
12353
12340
|
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.directModelUsage(userId),
|
|
12354
12341
|
queryFn: () => arbi.modelConnections.usage(),
|
|
@@ -12357,7 +12344,7 @@ function useDirectModelUsage() {
|
|
|
12357
12344
|
}
|
|
12358
12345
|
function useRefreshModelConnections() {
|
|
12359
12346
|
const qc = reactQuery.useQueryClient();
|
|
12360
|
-
const userId =
|
|
12347
|
+
const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? void 0;
|
|
12361
12348
|
return async () => {
|
|
12362
12349
|
await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.modelConnections(userId) });
|
|
12363
12350
|
await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.availableModels() });
|
|
@@ -12384,13 +12371,13 @@ function useUnlockModelConnections() {
|
|
|
12384
12371
|
return reactQuery.useMutation({ mutationFn: () => arbi.modelConnections.unlock() });
|
|
12385
12372
|
}
|
|
12386
12373
|
function useRequestEmailChange() {
|
|
12387
|
-
const { client } =
|
|
12374
|
+
const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12388
12375
|
return reactQuery.useMutation({
|
|
12389
12376
|
mutationFn: (newEmail) => client.requestEmailChange(newEmail)
|
|
12390
12377
|
});
|
|
12391
12378
|
}
|
|
12392
12379
|
function useConfirmEmailChange() {
|
|
12393
|
-
const { client } =
|
|
12380
|
+
const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12394
12381
|
const qc = reactQuery.useQueryClient();
|
|
12395
12382
|
return reactQuery.useMutation({
|
|
12396
12383
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
@@ -12458,7 +12445,7 @@ function useEmailChange({
|
|
|
12458
12445
|
};
|
|
12459
12446
|
}
|
|
12460
12447
|
function usePasswordChange() {
|
|
12461
|
-
const { client } =
|
|
12448
|
+
const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12462
12449
|
return reactQuery.useMutation({
|
|
12463
12450
|
mutationFn: (vars) => client.changePassword(vars)
|
|
12464
12451
|
});
|
|
@@ -12552,8 +12539,8 @@ function usePasswordChangeForm({
|
|
|
12552
12539
|
}
|
|
12553
12540
|
function useDismissedTips() {
|
|
12554
12541
|
const queryClient = reactQuery.useQueryClient();
|
|
12555
|
-
const { data: userSettings } =
|
|
12556
|
-
const { mutate: updateUserSettings } =
|
|
12542
|
+
const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
|
|
12543
|
+
const { mutate: updateUserSettings } = chunkFOBB5U4Y_cjs.useUpdateUserSettings();
|
|
12557
12544
|
const loaded = userSettings !== void 0;
|
|
12558
12545
|
const dismissed = userSettings?.dismissed_tips ?? [];
|
|
12559
12546
|
const dismissTip = React.useCallback(
|
|
@@ -12587,7 +12574,7 @@ function toNotificationPreferences(stored, keys) {
|
|
|
12587
12574
|
function useNotificationPreferences(keys, options) {
|
|
12588
12575
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
12589
12576
|
const qc = reactQuery.useQueryClient();
|
|
12590
|
-
const settings =
|
|
12577
|
+
const settings = chunkFOBB5U4Y_cjs.useUserSettings(options);
|
|
12591
12578
|
const stored = settings.data?.email_notifications;
|
|
12592
12579
|
const save = reactQuery.useMutation({
|
|
12593
12580
|
mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
|
|
@@ -12646,7 +12633,7 @@ function useRelevanceSave() {
|
|
|
12646
12633
|
}
|
|
12647
12634
|
function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
12648
12635
|
const qc = reactQuery.useQueryClient();
|
|
12649
|
-
const settings =
|
|
12636
|
+
const settings = chunkFOBB5U4Y_cjs.useUserSettings(options);
|
|
12650
12637
|
const save = useRelevanceSave();
|
|
12651
12638
|
const level = workspaceId ? browser.settings.workspaceNotificationLevel(settings.data, workspaceId) : "default";
|
|
12652
12639
|
const setLevel = React.useCallback(
|
|
@@ -12667,7 +12654,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
|
|
|
12667
12654
|
}
|
|
12668
12655
|
function useFollowThread(conversationId, options) {
|
|
12669
12656
|
const qc = reactQuery.useQueryClient();
|
|
12670
|
-
const settings =
|
|
12657
|
+
const settings = chunkFOBB5U4Y_cjs.useUserSettings(options);
|
|
12671
12658
|
const save = useRelevanceSave();
|
|
12672
12659
|
const following = !!conversationId && !!settings.data?.followed_threads?.includes(conversationId);
|
|
12673
12660
|
const setFollowing = React.useCallback(
|
|
@@ -12696,7 +12683,7 @@ function useFollowThread(conversationId, options) {
|
|
|
12696
12683
|
};
|
|
12697
12684
|
}
|
|
12698
12685
|
function useSessions(options) {
|
|
12699
|
-
const { client, enabled } =
|
|
12686
|
+
const { client, enabled } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12700
12687
|
return reactQuery.useQuery({
|
|
12701
12688
|
queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.sessions(),
|
|
12702
12689
|
queryFn: () => client.listSessions(),
|
|
@@ -12704,7 +12691,7 @@ function useSessions(options) {
|
|
|
12704
12691
|
});
|
|
12705
12692
|
}
|
|
12706
12693
|
function useTerminateSession() {
|
|
12707
|
-
const { client } =
|
|
12694
|
+
const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12708
12695
|
const qc = reactQuery.useQueryClient();
|
|
12709
12696
|
return reactQuery.useMutation({
|
|
12710
12697
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
@@ -12712,7 +12699,7 @@ function useTerminateSession() {
|
|
|
12712
12699
|
});
|
|
12713
12700
|
}
|
|
12714
12701
|
function useSignOut() {
|
|
12715
|
-
const { client } =
|
|
12702
|
+
const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12716
12703
|
const qc = reactQuery.useQueryClient();
|
|
12717
12704
|
return reactQuery.useMutation({
|
|
12718
12705
|
mutationFn: (options = {}) => client.signOut(options),
|
|
@@ -12720,7 +12707,7 @@ function useSignOut() {
|
|
|
12720
12707
|
});
|
|
12721
12708
|
}
|
|
12722
12709
|
function useCurrentSessionId() {
|
|
12723
|
-
return
|
|
12710
|
+
return chunkFOBB5U4Y_cjs.useAccountClient().client.currentSessionId();
|
|
12724
12711
|
}
|
|
12725
12712
|
function parseDeleteAccountBlockers(error) {
|
|
12726
12713
|
const body = error?.apiError ?? error;
|
|
@@ -12735,7 +12722,7 @@ function parseDeleteAccountBlockers(error) {
|
|
|
12735
12722
|
return [];
|
|
12736
12723
|
}
|
|
12737
12724
|
function useDeleteAccount() {
|
|
12738
|
-
const { client } =
|
|
12725
|
+
const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
12739
12726
|
return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
|
|
12740
12727
|
}
|
|
12741
12728
|
function useDeleteAccountFlow({
|
|
@@ -13057,7 +13044,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
13057
13044
|
};
|
|
13058
13045
|
}
|
|
13059
13046
|
function useIdentityVerification(options = {}) {
|
|
13060
|
-
const { client, enabled } =
|
|
13047
|
+
const { client, enabled } = chunkFOBB5U4Y_cjs.useAccountClient();
|
|
13061
13048
|
const qc = reactQuery.useQueryClient();
|
|
13062
13049
|
const { onVerifiedChange, onNameAccepted, formatPrice } = options;
|
|
13063
13050
|
return useIdentityVerificationFlow(client.identity, {
|
|
@@ -13079,7 +13066,7 @@ async function downloadRecoveryFile(params) {
|
|
|
13079
13066
|
...params,
|
|
13080
13067
|
origin: params.origin ?? window.location.origin
|
|
13081
13068
|
});
|
|
13082
|
-
|
|
13069
|
+
chunkG5DYDBQN_cjs.downloadBlob(new Blob([file.html], { type: "text/html" }), file.filename);
|
|
13083
13070
|
}
|
|
13084
13071
|
async function documentMailAttachment(arbi, doc, maxBytes, version) {
|
|
13085
13072
|
const older = version && version !== (doc.current_version ?? 1) ? version : null;
|
|
@@ -13155,15 +13142,15 @@ function useNativeThreadKeys(account, messages) {
|
|
|
13155
13142
|
var SYNC_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13156
13143
|
var NEW_MAIL_DEBOUNCE_MS = 5e3;
|
|
13157
13144
|
function useOfflineMailActive() {
|
|
13158
|
-
const { user, status } =
|
|
13159
|
-
const mailEnabled =
|
|
13160
|
-
const entitled =
|
|
13145
|
+
const { user, status } = chunkH3XHBIZ6_cjs.useArbiSession();
|
|
13146
|
+
const mailEnabled = chunkFOBB5U4Y_cjs.useFeature("mail");
|
|
13147
|
+
const entitled = chunkFOBB5U4Y_cjs.useIsEntitled("mail");
|
|
13161
13148
|
const eligible = status === "signed-in" && !!user?.external_id && mailEnabled && entitled;
|
|
13162
13149
|
const { data: policy } = useMailPolicy({ enabled: eligible });
|
|
13163
13150
|
return eligible && !!policy?.enabled && (policy.native_enabled || policy.enabled_providers.length > 0);
|
|
13164
13151
|
}
|
|
13165
13152
|
function useOfflineMailRuntime({ openOutbox } = {}) {
|
|
13166
|
-
const { user, serverSessionKey } =
|
|
13153
|
+
const { user, serverSessionKey } = chunkH3XHBIZ6_cjs.useArbiSession();
|
|
13167
13154
|
const userExtId = user?.external_id;
|
|
13168
13155
|
const hasSession = !!serverSessionKey;
|
|
13169
13156
|
const active = useOfflineMailActive();
|
|
@@ -13173,15 +13160,15 @@ function useOfflineMailRuntime({ openOutbox } = {}) {
|
|
|
13173
13160
|
latest.current = { arbi, queryClient, openOutbox };
|
|
13174
13161
|
React.useEffect(() => {
|
|
13175
13162
|
if (!active || !userExtId) return;
|
|
13176
|
-
|
|
13163
|
+
chunkFOBB5U4Y_cjs.claimOfflineMail(userExtId).catch(
|
|
13177
13164
|
(error) => client.logger.warn("[offline-mail] could not bind the store", error)
|
|
13178
13165
|
);
|
|
13179
13166
|
}, [active, userExtId]);
|
|
13180
13167
|
React.useEffect(() => {
|
|
13181
13168
|
if (!active || !userExtId) return;
|
|
13182
|
-
return
|
|
13169
|
+
return chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
|
|
13183
13170
|
if (change !== "settings") return;
|
|
13184
|
-
trimOfflineMailbox(
|
|
13171
|
+
trimOfflineMailbox(chunkFOBB5U4Y_cjs.getOfflineMailSettings(userExtId)).then(
|
|
13185
13172
|
() => latest.current.queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.mailQueryKeys.allMessages() })
|
|
13186
13173
|
).catch((error) => client.logger.warn("[offline-mail] could not trim the device copy", error));
|
|
13187
13174
|
});
|
|
@@ -13206,7 +13193,7 @@ function useOfflineMailRuntime({ openOutbox } = {}) {
|
|
|
13206
13193
|
const interval = setInterval(() => {
|
|
13207
13194
|
if (document.visibilityState === "visible") run2();
|
|
13208
13195
|
}, SYNC_INTERVAL_MS);
|
|
13209
|
-
const enabled = () =>
|
|
13196
|
+
const enabled = () => chunkFOBB5U4Y_cjs.getOfflineMailSettings(sessionUser(context().arbi)).enabled;
|
|
13210
13197
|
let newMailTimer = null;
|
|
13211
13198
|
const offCache = queryClient.getQueryCache().subscribe((event) => {
|
|
13212
13199
|
if (event.type !== "updated" || event.action.type !== "invalidate") return;
|
|
@@ -13214,7 +13201,7 @@ function useOfflineMailRuntime({ openOutbox } = {}) {
|
|
|
13214
13201
|
if (newMailTimer) clearTimeout(newMailTimer);
|
|
13215
13202
|
newMailTimer = setTimeout(() => void syncOfflineMailbox(context()), NEW_MAIL_DEBOUNCE_MS);
|
|
13216
13203
|
});
|
|
13217
|
-
const offSettings =
|
|
13204
|
+
const offSettings = chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
|
|
13218
13205
|
if (change === "settings" && enabled()) void syncOfflineMailbox(context(), { full: true });
|
|
13219
13206
|
if (change === "outbox") void flushOutbox(context());
|
|
13220
13207
|
if (change === "changes") void flushOutbox(context());
|
|
@@ -13236,7 +13223,7 @@ function useStoreValue(load, initial, changes) {
|
|
|
13236
13223
|
let alive = true;
|
|
13237
13224
|
const read = () => load().then((next) => alive && setValue(next)).catch((error) => client.logger.warn("[offline-mail] read failed", error));
|
|
13238
13225
|
void read();
|
|
13239
|
-
const off =
|
|
13226
|
+
const off = chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
|
|
13240
13227
|
if (change === "wiped") setValue(initial);
|
|
13241
13228
|
if (change === "wiped" || key.split(",").includes(change)) void read();
|
|
13242
13229
|
});
|
|
@@ -13248,20 +13235,20 @@ function useStoreValue(load, initial, changes) {
|
|
|
13248
13235
|
return value;
|
|
13249
13236
|
}
|
|
13250
13237
|
function useOfflineMailSettings() {
|
|
13251
|
-
const userExtId =
|
|
13238
|
+
const userExtId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id;
|
|
13252
13239
|
const subscribe = React.useCallback(
|
|
13253
|
-
(onChange) =>
|
|
13240
|
+
(onChange) => chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
|
|
13254
13241
|
if (change === "settings") onChange();
|
|
13255
13242
|
}),
|
|
13256
13243
|
[]
|
|
13257
13244
|
);
|
|
13258
13245
|
const raw = React.useSyncExternalStore(
|
|
13259
13246
|
subscribe,
|
|
13260
|
-
() => JSON.stringify([userExtId,
|
|
13247
|
+
() => JSON.stringify([userExtId, chunkFOBB5U4Y_cjs.getOfflineMailSettings(userExtId)])
|
|
13261
13248
|
);
|
|
13262
13249
|
const settings = React.useMemo(() => JSON.parse(raw)[1], [raw]);
|
|
13263
13250
|
const update2 = React.useCallback(
|
|
13264
|
-
(patch) => void
|
|
13251
|
+
(patch) => void chunkFOBB5U4Y_cjs.setOfflineMailSettings(userExtId, patch),
|
|
13265
13252
|
[userExtId]
|
|
13266
13253
|
);
|
|
13267
13254
|
return [settings, update2];
|
|
@@ -13271,7 +13258,7 @@ function useOfflineMailStatus() {
|
|
|
13271
13258
|
const status = useStoreValue(getOfflineMailStatus, EMPTY_STATUS, ["status", "mailbox"]);
|
|
13272
13259
|
const [syncing2, setSyncing] = React.useState(isMailSyncRunning);
|
|
13273
13260
|
React.useEffect(
|
|
13274
|
-
() =>
|
|
13261
|
+
() => chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
|
|
13275
13262
|
if (change === "status") setSyncing(isMailSyncRunning());
|
|
13276
13263
|
}),
|
|
13277
13264
|
[]
|
|
@@ -13313,7 +13300,7 @@ function useSyncOfflineMailbox() {
|
|
|
13313
13300
|
async function storeExists() {
|
|
13314
13301
|
try {
|
|
13315
13302
|
const databases = await indexedDB.databases?.();
|
|
13316
|
-
return databases ? databases.some((d) => d.name ===
|
|
13303
|
+
return databases ? databases.some((d) => d.name === chunkFOBB5U4Y_cjs.OFFLINE_MAIL_DB) : true;
|
|
13317
13304
|
} catch {
|
|
13318
13305
|
return true;
|
|
13319
13306
|
}
|
|
@@ -13371,7 +13358,7 @@ function useDisconnectConnector() {
|
|
|
13371
13358
|
);
|
|
13372
13359
|
}
|
|
13373
13360
|
function useConnectorVendorVisibility() {
|
|
13374
|
-
const { data: settings } =
|
|
13361
|
+
const { data: settings } = chunkFOBB5U4Y_cjs.useUserSettings();
|
|
13375
13362
|
return (vendorKey) => browser.isConnectorVendorVisible(settings, vendorKey);
|
|
13376
13363
|
}
|
|
13377
13364
|
function connectorReturnTo(reopen) {
|
|
@@ -13543,7 +13530,7 @@ function checkNowAndOnFocus(check) {
|
|
|
13543
13530
|
function useConnectorAutoSync(workspaceExtId, opened) {
|
|
13544
13531
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
13545
13532
|
const qc = reactQuery.useQueryClient();
|
|
13546
|
-
const hasMail =
|
|
13533
|
+
const hasMail = chunkFOBB5U4Y_cjs.useIsEntitled("mail");
|
|
13547
13534
|
React.useEffect(() => {
|
|
13548
13535
|
if (!opened || !workspaceExtId || !arbi.isLoggedIn) return;
|
|
13549
13536
|
return checkNowAndOnFocus(() => {
|
|
@@ -14161,7 +14148,7 @@ var OfflineCalendarLockedError = class extends Error {
|
|
|
14161
14148
|
this.name = "OfflineCalendarLockedError";
|
|
14162
14149
|
}
|
|
14163
14150
|
};
|
|
14164
|
-
var store =
|
|
14151
|
+
var store = chunkFOBB5U4Y_cjs.createRecordStore(OFFLINE_CALENDAR_DB);
|
|
14165
14152
|
var sealer = client.createOfflineSealer("arbi-offline-calendar-v1", {
|
|
14166
14153
|
locked: () => new OfflineCalendarLockedError()
|
|
14167
14154
|
});
|
|
@@ -14440,7 +14427,7 @@ async function replay(arbi, queryClient) {
|
|
|
14440
14427
|
);
|
|
14441
14428
|
}
|
|
14442
14429
|
function useCalendarOfflineRuntime() {
|
|
14443
|
-
const { status, serverSessionKey, user } =
|
|
14430
|
+
const { status, serverSessionKey, user } = chunkH3XHBIZ6_cjs.useArbiSession();
|
|
14444
14431
|
const userExtId = user?.external_id;
|
|
14445
14432
|
const authenticated = status === "signed-in";
|
|
14446
14433
|
const hasSession = !!serverSessionKey;
|
|
@@ -14489,7 +14476,7 @@ function useCalendarOfflineRuntime() {
|
|
|
14489
14476
|
}, [ready, arbi, queryClient]);
|
|
14490
14477
|
}
|
|
14491
14478
|
function useWorkspaceDocs(workspaceId) {
|
|
14492
|
-
const { data: docs = [], isLoading, isError } =
|
|
14479
|
+
const { data: docs = [], isLoading, isError } = chunkNK5KFHXP_cjs.useDocuments(workspaceId);
|
|
14493
14480
|
const docIds = React.useMemo(
|
|
14494
14481
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
14495
14482
|
[docs]
|
|
@@ -14497,7 +14484,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
14497
14484
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
14498
14485
|
}
|
|
14499
14486
|
function useAiTask() {
|
|
14500
|
-
const mutation =
|
|
14487
|
+
const mutation = chunkH3XHBIZ6_cjs.useAssistantQuery();
|
|
14501
14488
|
const [status, setStatus] = React.useState("idle");
|
|
14502
14489
|
const [text2, setText] = React.useState("");
|
|
14503
14490
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -15358,7 +15345,7 @@ var IDLE = {
|
|
|
15358
15345
|
};
|
|
15359
15346
|
function useSemanticSearch(docIds = [], options = {}) {
|
|
15360
15347
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
15361
|
-
const [ownSession] = React.useState(
|
|
15348
|
+
const [ownSession] = React.useState(chunk6RRKO4ZK_cjs.createSearchSession);
|
|
15362
15349
|
const session = options.session ?? ownSession;
|
|
15363
15350
|
const { model, workspaceId } = options;
|
|
15364
15351
|
const state = React.useSyncExternalStore(session.subscribe, session.getState, session.getState);
|
|
@@ -15367,7 +15354,7 @@ function useSemanticSearch(docIds = [], options = {}) {
|
|
|
15367
15354
|
if (!workspaceId) return;
|
|
15368
15355
|
const current = session.getState().workspaceId;
|
|
15369
15356
|
if (current !== workspaceId) {
|
|
15370
|
-
if (current)
|
|
15357
|
+
if (current) chunk6RRKO4ZK_cjs.clearSearchSession(workspaceId, session);
|
|
15371
15358
|
else session.setState({ workspaceId });
|
|
15372
15359
|
}
|
|
15373
15360
|
}, [session, workspaceId]);
|
|
@@ -15375,7 +15362,7 @@ function useSemanticSearch(docIds = [], options = {}) {
|
|
|
15375
15362
|
async (query, mode = "hybrid") => {
|
|
15376
15363
|
const trimmed = query.trim();
|
|
15377
15364
|
if (!trimmed) {
|
|
15378
|
-
|
|
15365
|
+
chunk6RRKO4ZK_cjs.clearSearchSession(void 0, session);
|
|
15379
15366
|
return;
|
|
15380
15367
|
}
|
|
15381
15368
|
const run2 = session.getState().run + 1;
|
|
@@ -15406,7 +15393,7 @@ function useSemanticSearch(docIds = [], options = {}) {
|
|
|
15406
15393
|
},
|
|
15407
15394
|
[arbi, docIds, model, session, workspaceId]
|
|
15408
15395
|
);
|
|
15409
|
-
const clear = React.useCallback(() =>
|
|
15396
|
+
const clear = React.useCallback(() => chunk6RRKO4ZK_cjs.clearSearchSession(void 0, session), [session]);
|
|
15410
15397
|
const shown = foreign ? IDLE : state;
|
|
15411
15398
|
return {
|
|
15412
15399
|
query: shown.query,
|
|
@@ -15661,7 +15648,7 @@ function ActivityFeed({
|
|
|
15661
15648
|
enabled,
|
|
15662
15649
|
"data-testid": testId = "activity-feed"
|
|
15663
15650
|
}) {
|
|
15664
|
-
const { data, isLoading, isError } =
|
|
15651
|
+
const { data, isLoading, isError } = chunkH3XHBIZ6_cjs.useActivity({ limit, enabled });
|
|
15665
15652
|
if (isLoading) {
|
|
15666
15653
|
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: [
|
|
15667
15654
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -16268,7 +16255,7 @@ function isAgentUser(user) {
|
|
|
16268
16255
|
return user.external_id.startsWith("agt-");
|
|
16269
16256
|
}
|
|
16270
16257
|
function DmAvatar({ user, className, size = "lg" }) {
|
|
16271
|
-
const presence =
|
|
16258
|
+
const presence = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.presence[user.external_id]);
|
|
16272
16259
|
const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
|
|
16273
16260
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16274
16261
|
chunk4NGWDVHD_cjs.UserEntity,
|
|
@@ -16639,7 +16626,7 @@ function useChatUnreadTotal() {
|
|
|
16639
16626
|
function useUnreadByPeer() {
|
|
16640
16627
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
16641
16628
|
const { data = [] } = useChats();
|
|
16642
|
-
const me =
|
|
16629
|
+
const me = chunkFOBB5U4Y_cjs.myChatId(arbi);
|
|
16643
16630
|
return React.useMemo(() => {
|
|
16644
16631
|
const out = /* @__PURE__ */ new Map();
|
|
16645
16632
|
for (const c of data) {
|
|
@@ -16729,13 +16716,13 @@ function useChatPost() {
|
|
|
16729
16716
|
const queryClient = reactQuery.useQueryClient();
|
|
16730
16717
|
return React.useCallback(
|
|
16731
16718
|
async (target, post) => {
|
|
16732
|
-
const me =
|
|
16719
|
+
const me = chunkFOBB5U4Y_cjs.myChatId(arbi);
|
|
16733
16720
|
if (!me) throw new Error("No active session");
|
|
16734
16721
|
let chat = target.chat;
|
|
16735
16722
|
if (!chat) {
|
|
16736
16723
|
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
16737
16724
|
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
16738
|
-
|
|
16725
|
+
chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat);
|
|
16739
16726
|
queryClient.setQueryData(
|
|
16740
16727
|
chunkO32T7XRD_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
16741
16728
|
(old) => old ?? { messages: [], hasMore: false }
|
|
@@ -16758,7 +16745,7 @@ function useChatPost() {
|
|
|
16758
16745
|
updated_at: now,
|
|
16759
16746
|
optimistic: true
|
|
16760
16747
|
};
|
|
16761
|
-
|
|
16748
|
+
chunkFOBB5U4Y_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
16762
16749
|
try {
|
|
16763
16750
|
let attachments = [];
|
|
16764
16751
|
if (files.length) {
|
|
@@ -16778,15 +16765,15 @@ function useChatPost() {
|
|
|
16778
16765
|
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
16779
16766
|
contextOnly: !!post.contextOnly
|
|
16780
16767
|
});
|
|
16781
|
-
|
|
16782
|
-
|
|
16768
|
+
chunkFOBB5U4Y_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
16769
|
+
chunkFOBB5U4Y_cjs.upsertChat(queryClient, {
|
|
16783
16770
|
...chat,
|
|
16784
16771
|
last_message: message,
|
|
16785
16772
|
last_message_at: message.created_at
|
|
16786
16773
|
});
|
|
16787
16774
|
return { chat, message };
|
|
16788
16775
|
} catch (err) {
|
|
16789
|
-
|
|
16776
|
+
chunkFOBB5U4Y_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
16790
16777
|
void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.chatList() });
|
|
16791
16778
|
throw err;
|
|
16792
16779
|
}
|
|
@@ -16798,7 +16785,7 @@ function useDeleteChatMessage() {
|
|
|
16798
16785
|
const arbi = chunkO32T7XRD_cjs.useArbi();
|
|
16799
16786
|
const queryClient = reactQuery.useQueryClient();
|
|
16800
16787
|
return React.useCallback(
|
|
16801
|
-
(chatExtId, messageExtId) =>
|
|
16788
|
+
(chatExtId, messageExtId) => chunkFOBB5U4Y_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
16802
16789
|
[arbi, queryClient]
|
|
16803
16790
|
);
|
|
16804
16791
|
}
|
|
@@ -16807,7 +16794,7 @@ function useMarkChatRead() {
|
|
|
16807
16794
|
const queryClient = reactQuery.useQueryClient();
|
|
16808
16795
|
return React.useCallback(
|
|
16809
16796
|
(chat, messageExtId) => {
|
|
16810
|
-
|
|
16797
|
+
chunkFOBB5U4Y_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
16811
16798
|
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
16812
16799
|
() => void 0,
|
|
16813
16800
|
() => void 0
|
|
@@ -16821,7 +16808,7 @@ function useCreateGroupChat() {
|
|
|
16821
16808
|
const queryClient = reactQuery.useQueryClient();
|
|
16822
16809
|
return reactQuery.useMutation({
|
|
16823
16810
|
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
16824
|
-
onSuccess: (chat) =>
|
|
16811
|
+
onSuccess: (chat) => chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat)
|
|
16825
16812
|
});
|
|
16826
16813
|
}
|
|
16827
16814
|
function useRenameChat() {
|
|
@@ -16829,7 +16816,7 @@ function useRenameChat() {
|
|
|
16829
16816
|
const queryClient = reactQuery.useQueryClient();
|
|
16830
16817
|
return reactQuery.useMutation({
|
|
16831
16818
|
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
16832
|
-
onSuccess: (chat) =>
|
|
16819
|
+
onSuccess: (chat) => chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat)
|
|
16833
16820
|
});
|
|
16834
16821
|
}
|
|
16835
16822
|
function useAddChatMembers() {
|
|
@@ -16837,7 +16824,7 @@ function useAddChatMembers() {
|
|
|
16837
16824
|
const queryClient = reactQuery.useQueryClient();
|
|
16838
16825
|
return reactQuery.useMutation({
|
|
16839
16826
|
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
16840
|
-
onSuccess: (chat) =>
|
|
16827
|
+
onSuccess: (chat) => chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat)
|
|
16841
16828
|
});
|
|
16842
16829
|
}
|
|
16843
16830
|
function useRemoveChatMember() {
|
|
@@ -16846,7 +16833,7 @@ function useRemoveChatMember() {
|
|
|
16846
16833
|
return reactQuery.useMutation({
|
|
16847
16834
|
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
16848
16835
|
onSuccess: (_data, vars) => {
|
|
16849
|
-
if (vars.userExtId ===
|
|
16836
|
+
if (vars.userExtId === chunkFOBB5U4Y_cjs.myChatId(arbi)) chunkFOBB5U4Y_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
16850
16837
|
else return queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.chatList() });
|
|
16851
16838
|
}
|
|
16852
16839
|
});
|
|
@@ -16856,11 +16843,11 @@ function useChatArrivals(onArrival) {
|
|
|
16856
16843
|
const queryClient = reactQuery.useQueryClient();
|
|
16857
16844
|
useArbiWsMessage("chat.message", (message) => {
|
|
16858
16845
|
const senderId = message.message.sender_ext_id;
|
|
16859
|
-
if (!senderId || senderId ===
|
|
16860
|
-
if (message.message.kind !== "text" ||
|
|
16846
|
+
if (!senderId || senderId === chunkFOBB5U4Y_cjs.myChatId(arbi)) return;
|
|
16847
|
+
if (message.message.kind !== "text" || chunkFOBB5U4Y_cjs.getOpenChat() === message.chat_ext_id) return;
|
|
16861
16848
|
const muted = queryClient.getQueriesData({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.userSettings() }).map(([, data]) => data).find(Boolean)?.muted_users;
|
|
16862
16849
|
if (muted?.includes(senderId)) return;
|
|
16863
|
-
const chat =
|
|
16850
|
+
const chat = chunkFOBB5U4Y_cjs.cachedChat(queryClient, message.chat_ext_id);
|
|
16864
16851
|
const sender = chat?.members.find((m) => m.user.external_id === senderId)?.user;
|
|
16865
16852
|
onArrival({
|
|
16866
16853
|
chatId: message.chat_ext_id,
|
|
@@ -17076,7 +17063,7 @@ var REMOTE_CONTROL_VIEW = "actions.remoteControl";
|
|
|
17076
17063
|
var OFF = { enabled: false, pending: null, controllingAgent: null };
|
|
17077
17064
|
var remoteControlStateOf = (state) => state.views.transient[REMOTE_CONTROL_VIEW] ?? OFF;
|
|
17078
17065
|
function useRemoteControl(selector) {
|
|
17079
|
-
return
|
|
17066
|
+
return chunkH3XHBIZ6_cjs.useArbiSessionState((state) => selector(remoteControlStateOf(state)));
|
|
17080
17067
|
}
|
|
17081
17068
|
function remoteControlActions(session) {
|
|
17082
17069
|
const update2 = (change) => {
|
|
@@ -17094,6 +17081,7 @@ function remoteControlActions(session) {
|
|
|
17094
17081
|
/** Directly set the session enabled flag. Turning it OFF revokes immediately: clears any
|
|
17095
17082
|
* pending prompt and the controlling banner (GUARANTEE #5). */
|
|
17096
17083
|
setEnabled: (enabled) => update2(() => enabled ? { enabled } : { enabled, pending: null, controllingAgent: null }),
|
|
17084
|
+
setSharing: (sharing) => update2(() => ({ sharing })),
|
|
17097
17085
|
/** Set (or clear) the agent whose run is currently executing. */
|
|
17098
17086
|
setControllingAgent: (agent) => update2(() => ({ controllingAgent: agent })),
|
|
17099
17087
|
/** Back to the session start: off, nothing pending, nobody driving (a sign-in or sign-out). */
|
|
@@ -17116,7 +17104,7 @@ function toGuidedSteps(steps) {
|
|
|
17116
17104
|
function toRemoteControlRequest(msg, isSequenceId) {
|
|
17117
17105
|
const steps = hasRunnableSteps(msg.steps) ? toGuidedSteps(msg.steps) : void 0;
|
|
17118
17106
|
const sequenceId = typeof msg.sequence_id === "string" && isSequenceId(msg.sequence_id) ? msg.sequence_id : void 0;
|
|
17119
|
-
if (!steps && !sequenceId) {
|
|
17107
|
+
if (!steps && !sequenceId && !(msg.screen_request_id && msg.workspace_ext_id)) {
|
|
17120
17108
|
client.logger.warn("[RemoteControl] Ignoring message with no runnable action", msg.sequence_id);
|
|
17121
17109
|
return null;
|
|
17122
17110
|
}
|
|
@@ -17126,7 +17114,16 @@ function toRemoteControlRequest(msg, isSequenceId) {
|
|
|
17126
17114
|
agentName: msg.agent_name.trim() || "An assistant",
|
|
17127
17115
|
agentExtId: msg.agent_ext_id ?? void 0,
|
|
17128
17116
|
sequenceId,
|
|
17129
|
-
steps
|
|
17117
|
+
steps,
|
|
17118
|
+
...msg.action_request_id ? {
|
|
17119
|
+
actionRequestId: msg.action_request_id,
|
|
17120
|
+
workspaceExtId: msg.workspace_ext_id ?? void 0
|
|
17121
|
+
} : {},
|
|
17122
|
+
...msg.screen_request_id ? {
|
|
17123
|
+
screenRequestId: msg.screen_request_id,
|
|
17124
|
+
screenQuestion: msg.screen_question ?? void 0,
|
|
17125
|
+
workspaceExtId: msg.workspace_ext_id ?? void 0
|
|
17126
|
+
} : {}
|
|
17130
17127
|
};
|
|
17131
17128
|
}
|
|
17132
17129
|
function useSupportTickets(options = {}) {
|
|
@@ -17158,1271 +17155,1279 @@ function useRateSupportTicket() {
|
|
|
17158
17155
|
|
|
17159
17156
|
Object.defineProperty(exports, "AUDIENCE_CHOICES", {
|
|
17160
17157
|
enumerable: true,
|
|
17161
|
-
get: function () { return
|
|
17158
|
+
get: function () { return chunkFOBB5U4Y_cjs.AUDIENCE_CHOICES; }
|
|
17162
17159
|
});
|
|
17163
17160
|
Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
|
|
17164
17161
|
enumerable: true,
|
|
17165
|
-
get: function () { return
|
|
17162
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_CAPTION_TOPIC; }
|
|
17166
17163
|
});
|
|
17167
17164
|
Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
|
|
17168
17165
|
enumerable: true,
|
|
17169
|
-
get: function () { return
|
|
17166
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_CHAT_MAX_CHARS; }
|
|
17170
17167
|
});
|
|
17171
17168
|
Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
|
|
17172
17169
|
enumerable: true,
|
|
17173
|
-
get: function () { return
|
|
17170
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_CHAT_TOPIC; }
|
|
17174
17171
|
});
|
|
17175
17172
|
Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
|
|
17176
17173
|
enumerable: true,
|
|
17177
|
-
get: function () { return
|
|
17174
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_MODERATION_TOPIC; }
|
|
17178
17175
|
});
|
|
17179
17176
|
Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
|
|
17180
17177
|
enumerable: true,
|
|
17181
|
-
get: function () { return
|
|
17178
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_RECORDING_TOPIC; }
|
|
17182
17179
|
});
|
|
17183
17180
|
Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
|
|
17184
17181
|
enumerable: true,
|
|
17185
|
-
get: function () { return
|
|
17182
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_TRANSCRIPTION_TOPIC; }
|
|
17186
17183
|
});
|
|
17187
17184
|
Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
|
|
17188
17185
|
enumerable: true,
|
|
17189
|
-
get: function () { return
|
|
17186
|
+
get: function () { return chunkFOBB5U4Y_cjs.CALL_WEBINAR_TOPIC; }
|
|
17190
17187
|
});
|
|
17191
17188
|
Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
|
|
17192
17189
|
enumerable: true,
|
|
17193
|
-
get: function () { return
|
|
17190
|
+
get: function () { return chunkFOBB5U4Y_cjs.CAPTION_MAX_CHARS; }
|
|
17194
17191
|
});
|
|
17195
17192
|
Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
|
|
17196
17193
|
enumerable: true,
|
|
17197
|
-
get: function () { return
|
|
17194
|
+
get: function () { return chunkFOBB5U4Y_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
|
|
17198
17195
|
});
|
|
17199
17196
|
Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
|
|
17200
17197
|
enumerable: true,
|
|
17201
|
-
get: function () { return
|
|
17198
|
+
get: function () { return chunkFOBB5U4Y_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
|
|
17202
17199
|
});
|
|
17203
17200
|
Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
|
|
17204
17201
|
enumerable: true,
|
|
17205
|
-
get: function () { return
|
|
17202
|
+
get: function () { return chunkFOBB5U4Y_cjs.DEFAULT_JOIN_CHOICES; }
|
|
17206
17203
|
});
|
|
17207
17204
|
Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
|
|
17208
17205
|
enumerable: true,
|
|
17209
|
-
get: function () { return
|
|
17206
|
+
get: function () { return chunkFOBB5U4Y_cjs.EMPTY_CALL_SESSION; }
|
|
17210
17207
|
});
|
|
17211
17208
|
Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
|
|
17212
17209
|
enumerable: true,
|
|
17213
|
-
get: function () { return
|
|
17210
|
+
get: function () { return chunkFOBB5U4Y_cjs.EXPORT_SAMPLE_RATE; }
|
|
17214
17211
|
});
|
|
17215
17212
|
Object.defineProperty(exports, "HISTORY_LIMIT", {
|
|
17216
17213
|
enumerable: true,
|
|
17217
|
-
get: function () { return
|
|
17214
|
+
get: function () { return chunkFOBB5U4Y_cjs.HISTORY_LIMIT; }
|
|
17218
17215
|
});
|
|
17219
17216
|
Object.defineProperty(exports, "LIVE_SEGMENTER", {
|
|
17220
17217
|
enumerable: true,
|
|
17221
|
-
get: function () { return
|
|
17218
|
+
get: function () { return chunkFOBB5U4Y_cjs.LIVE_SEGMENTER; }
|
|
17222
17219
|
});
|
|
17223
17220
|
Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
|
|
17224
17221
|
enumerable: true,
|
|
17225
|
-
get: function () { return
|
|
17222
|
+
get: function () { return chunkFOBB5U4Y_cjs.MAX_AVATAR_FILE_BYTES; }
|
|
17226
17223
|
});
|
|
17227
17224
|
Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
|
|
17228
17225
|
enumerable: true,
|
|
17229
|
-
get: function () { return
|
|
17226
|
+
get: function () { return chunkFOBB5U4Y_cjs.MUTED_DEDUPE_MS; }
|
|
17230
17227
|
});
|
|
17231
17228
|
Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
|
|
17232
17229
|
enumerable: true,
|
|
17233
|
-
get: function () { return
|
|
17230
|
+
get: function () { return chunkFOBB5U4Y_cjs.PLAYBACK_LOOKAHEAD_MS; }
|
|
17234
17231
|
});
|
|
17235
17232
|
Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
|
|
17236
17233
|
enumerable: true,
|
|
17237
|
-
get: function () { return
|
|
17234
|
+
get: function () { return chunkFOBB5U4Y_cjs.READ_ONLY_MEETING_TEXT; }
|
|
17238
17235
|
});
|
|
17239
17236
|
Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
|
|
17240
17237
|
enumerable: true,
|
|
17241
|
-
get: function () { return
|
|
17238
|
+
get: function () { return chunkFOBB5U4Y_cjs.RECORDING_CHUNK_MS; }
|
|
17242
17239
|
});
|
|
17243
17240
|
Object.defineProperty(exports, "RECORDING_SEGMENTER", {
|
|
17244
17241
|
enumerable: true,
|
|
17245
|
-
get: function () { return
|
|
17242
|
+
get: function () { return chunkFOBB5U4Y_cjs.RECORDING_SEGMENTER; }
|
|
17246
17243
|
});
|
|
17247
17244
|
Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
|
|
17248
17245
|
enumerable: true,
|
|
17249
|
-
get: function () { return
|
|
17246
|
+
get: function () { return chunkFOBB5U4Y_cjs.SEGMENT_FRAME_MS; }
|
|
17250
17247
|
});
|
|
17251
17248
|
Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
|
|
17252
17249
|
enumerable: true,
|
|
17253
|
-
get: function () { return
|
|
17250
|
+
get: function () { return chunkFOBB5U4Y_cjs.SEGMENT_ID_PATTERN; }
|
|
17254
17251
|
});
|
|
17255
17252
|
Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
|
|
17256
17253
|
enumerable: true,
|
|
17257
|
-
get: function () { return
|
|
17254
|
+
get: function () { return chunkFOBB5U4Y_cjs.SEGMENT_PRE_ROLL_MS; }
|
|
17258
17255
|
});
|
|
17259
17256
|
Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
|
|
17260
17257
|
enumerable: true,
|
|
17261
|
-
get: function () { return
|
|
17258
|
+
get: function () { return chunkFOBB5U4Y_cjs.SHORT_PIECE_MERGE_GAP_MS; }
|
|
17262
17259
|
});
|
|
17263
17260
|
Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
|
|
17264
17261
|
enumerable: true,
|
|
17265
|
-
get: function () { return
|
|
17262
|
+
get: function () { return chunkFOBB5U4Y_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
|
|
17266
17263
|
});
|
|
17267
17264
|
Object.defineProperty(exports, "TrackUploader", {
|
|
17268
17265
|
enumerable: true,
|
|
17269
|
-
get: function () { return
|
|
17266
|
+
get: function () { return chunkFOBB5U4Y_cjs.TrackUploader; }
|
|
17270
17267
|
});
|
|
17271
17268
|
Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
|
|
17272
17269
|
enumerable: true,
|
|
17273
|
-
get: function () { return
|
|
17270
|
+
get: function () { return chunkFOBB5U4Y_cjs.UPLOAD_ATTEMPTS; }
|
|
17274
17271
|
});
|
|
17275
17272
|
Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
|
|
17276
17273
|
enumerable: true,
|
|
17277
|
-
get: function () { return
|
|
17274
|
+
get: function () { return chunkFOBB5U4Y_cjs.UPLOAD_BACKOFF_MS; }
|
|
17278
17275
|
});
|
|
17279
17276
|
Object.defineProperty(exports, "acceptRing", {
|
|
17280
17277
|
enumerable: true,
|
|
17281
|
-
get: function () { return
|
|
17278
|
+
get: function () { return chunkFOBB5U4Y_cjs.acceptRing; }
|
|
17282
17279
|
});
|
|
17283
17280
|
Object.defineProperty(exports, "addConversationToList", {
|
|
17284
17281
|
enumerable: true,
|
|
17285
|
-
get: function () { return
|
|
17282
|
+
get: function () { return chunkFOBB5U4Y_cjs.addConversationToList; }
|
|
17286
17283
|
});
|
|
17287
17284
|
Object.defineProperty(exports, "appendToThread", {
|
|
17288
17285
|
enumerable: true,
|
|
17289
|
-
get: function () { return
|
|
17286
|
+
get: function () { return chunkFOBB5U4Y_cjs.appendToThread; }
|
|
17290
17287
|
});
|
|
17291
17288
|
Object.defineProperty(exports, "applyAgentDmStatus", {
|
|
17292
17289
|
enumerable: true,
|
|
17293
|
-
get: function () { return
|
|
17290
|
+
get: function () { return chunkFOBB5U4Y_cjs.applyAgentDmStatus; }
|
|
17294
17291
|
});
|
|
17295
17292
|
Object.defineProperty(exports, "applyCallEvent", {
|
|
17296
17293
|
enumerable: true,
|
|
17297
|
-
get: function () { return
|
|
17294
|
+
get: function () { return chunkFOBB5U4Y_cjs.applyCallEvent; }
|
|
17298
17295
|
});
|
|
17299
17296
|
Object.defineProperty(exports, "applyChatEvent", {
|
|
17300
17297
|
enumerable: true,
|
|
17301
|
-
get: function () { return
|
|
17298
|
+
get: function () { return chunkFOBB5U4Y_cjs.applyChatEvent; }
|
|
17302
17299
|
});
|
|
17303
17300
|
Object.defineProperty(exports, "applyChatMessage", {
|
|
17304
17301
|
enumerable: true,
|
|
17305
|
-
get: function () { return
|
|
17302
|
+
get: function () { return chunkFOBB5U4Y_cjs.applyChatMessage; }
|
|
17306
17303
|
});
|
|
17307
17304
|
Object.defineProperty(exports, "applyChatRead", {
|
|
17308
17305
|
enumerable: true,
|
|
17309
|
-
get: function () { return
|
|
17306
|
+
get: function () { return chunkFOBB5U4Y_cjs.applyChatRead; }
|
|
17310
17307
|
});
|
|
17311
17308
|
Object.defineProperty(exports, "applyChatUpdated", {
|
|
17312
17309
|
enumerable: true,
|
|
17313
|
-
get: function () { return
|
|
17310
|
+
get: function () { return chunkFOBB5U4Y_cjs.applyChatUpdated; }
|
|
17314
17311
|
});
|
|
17315
17312
|
Object.defineProperty(exports, "arbiAccountClient", {
|
|
17316
17313
|
enumerable: true,
|
|
17317
|
-
get: function () { return
|
|
17314
|
+
get: function () { return chunkFOBB5U4Y_cjs.arbiAccountClient; }
|
|
17318
17315
|
});
|
|
17319
17316
|
Object.defineProperty(exports, "buildMeetingChatBody", {
|
|
17320
17317
|
enumerable: true,
|
|
17321
|
-
get: function () { return
|
|
17318
|
+
get: function () { return chunkFOBB5U4Y_cjs.buildMeetingChatBody; }
|
|
17322
17319
|
});
|
|
17323
17320
|
Object.defineProperty(exports, "cachedChat", {
|
|
17324
17321
|
enumerable: true,
|
|
17325
|
-
get: function () { return
|
|
17322
|
+
get: function () { return chunkFOBB5U4Y_cjs.cachedChat; }
|
|
17326
17323
|
});
|
|
17327
17324
|
Object.defineProperty(exports, "cachedChats", {
|
|
17328
17325
|
enumerable: true,
|
|
17329
|
-
get: function () { return
|
|
17326
|
+
get: function () { return chunkFOBB5U4Y_cjs.cachedChats; }
|
|
17330
17327
|
});
|
|
17331
17328
|
Object.defineProperty(exports, "callLink", {
|
|
17332
17329
|
enumerable: true,
|
|
17333
|
-
get: function () { return
|
|
17330
|
+
get: function () { return chunkFOBB5U4Y_cjs.callLink; }
|
|
17334
17331
|
});
|
|
17335
17332
|
Object.defineProperty(exports, "callMemberKeys", {
|
|
17336
17333
|
enumerable: true,
|
|
17337
|
-
get: function () { return
|
|
17334
|
+
get: function () { return chunkFOBB5U4Y_cjs.callMemberKeys; }
|
|
17338
17335
|
});
|
|
17339
17336
|
Object.defineProperty(exports, "callSession", {
|
|
17340
17337
|
enumerable: true,
|
|
17341
|
-
get: function () { return
|
|
17338
|
+
get: function () { return chunkFOBB5U4Y_cjs.callSession; }
|
|
17342
17339
|
});
|
|
17343
17340
|
Object.defineProperty(exports, "chatByExtId", {
|
|
17344
17341
|
enumerable: true,
|
|
17345
|
-
get: function () { return
|
|
17342
|
+
get: function () { return chunkFOBB5U4Y_cjs.chatByExtId; }
|
|
17346
17343
|
});
|
|
17347
17344
|
Object.defineProperty(exports, "chatHasLiveCall", {
|
|
17348
17345
|
enumerable: true,
|
|
17349
|
-
get: function () { return
|
|
17346
|
+
get: function () { return chunkFOBB5U4Y_cjs.chatHasLiveCall; }
|
|
17350
17347
|
});
|
|
17351
17348
|
Object.defineProperty(exports, "chatLiveCallId", {
|
|
17352
17349
|
enumerable: true,
|
|
17353
|
-
get: function () { return
|
|
17350
|
+
get: function () { return chunkFOBB5U4Y_cjs.chatLiveCallId; }
|
|
17354
17351
|
});
|
|
17355
17352
|
Object.defineProperty(exports, "chatTranscriptRef", {
|
|
17356
17353
|
enumerable: true,
|
|
17357
|
-
get: function () { return
|
|
17354
|
+
get: function () { return chunkFOBB5U4Y_cjs.chatTranscriptRef; }
|
|
17358
17355
|
});
|
|
17359
17356
|
Object.defineProperty(exports, "clearMeetingChatCache", {
|
|
17360
17357
|
enumerable: true,
|
|
17361
|
-
get: function () { return
|
|
17358
|
+
get: function () { return chunkFOBB5U4Y_cjs.clearMeetingChatCache; }
|
|
17362
17359
|
});
|
|
17363
17360
|
Object.defineProperty(exports, "clearTrackUploaders", {
|
|
17364
17361
|
enumerable: true,
|
|
17365
|
-
get: function () { return
|
|
17362
|
+
get: function () { return chunkFOBB5U4Y_cjs.clearTrackUploaders; }
|
|
17366
17363
|
});
|
|
17367
17364
|
Object.defineProperty(exports, "clockTime", {
|
|
17368
17365
|
enumerable: true,
|
|
17369
|
-
get: function () { return
|
|
17366
|
+
get: function () { return chunkFOBB5U4Y_cjs.clockTime; }
|
|
17370
17367
|
});
|
|
17371
17368
|
Object.defineProperty(exports, "compositeFiles", {
|
|
17372
17369
|
enumerable: true,
|
|
17373
|
-
get: function () { return
|
|
17370
|
+
get: function () { return chunkFOBB5U4Y_cjs.compositeFiles; }
|
|
17374
17371
|
});
|
|
17375
17372
|
Object.defineProperty(exports, "compositeTrack", {
|
|
17376
17373
|
enumerable: true,
|
|
17377
|
-
get: function () { return
|
|
17374
|
+
get: function () { return chunkFOBB5U4Y_cjs.compositeTrack; }
|
|
17378
17375
|
});
|
|
17379
17376
|
Object.defineProperty(exports, "conversationKeyForCall", {
|
|
17380
17377
|
enumerable: true,
|
|
17381
|
-
get: function () { return
|
|
17378
|
+
get: function () { return chunkFOBB5U4Y_cjs.conversationKeyForCall; }
|
|
17382
17379
|
});
|
|
17383
17380
|
Object.defineProperty(exports, "createLocalFeatureStore", {
|
|
17384
17381
|
enumerable: true,
|
|
17385
|
-
get: function () { return
|
|
17382
|
+
get: function () { return chunkFOBB5U4Y_cjs.createLocalFeatureStore; }
|
|
17386
17383
|
});
|
|
17387
17384
|
Object.defineProperty(exports, "createMutedNotifier", {
|
|
17388
17385
|
enumerable: true,
|
|
17389
|
-
get: function () { return
|
|
17386
|
+
get: function () { return chunkFOBB5U4Y_cjs.createMutedNotifier; }
|
|
17390
17387
|
});
|
|
17391
17388
|
Object.defineProperty(exports, "createTrackCutter", {
|
|
17392
17389
|
enumerable: true,
|
|
17393
|
-
get: function () { return
|
|
17390
|
+
get: function () { return chunkFOBB5U4Y_cjs.createTrackCutter; }
|
|
17394
17391
|
});
|
|
17395
17392
|
Object.defineProperty(exports, "cutAtPauses", {
|
|
17396
17393
|
enumerable: true,
|
|
17397
|
-
get: function () { return
|
|
17394
|
+
get: function () { return chunkFOBB5U4Y_cjs.cutAtPauses; }
|
|
17398
17395
|
});
|
|
17399
17396
|
Object.defineProperty(exports, "declineRing", {
|
|
17400
17397
|
enumerable: true,
|
|
17401
|
-
get: function () { return
|
|
17398
|
+
get: function () { return chunkFOBB5U4Y_cjs.declineRing; }
|
|
17402
17399
|
});
|
|
17403
17400
|
Object.defineProperty(exports, "decodeCallChatPacket", {
|
|
17404
17401
|
enumerable: true,
|
|
17405
|
-
get: function () { return
|
|
17402
|
+
get: function () { return chunkFOBB5U4Y_cjs.decodeCallChatPacket; }
|
|
17406
17403
|
});
|
|
17407
17404
|
Object.defineProperty(exports, "decodeCaptionPacket", {
|
|
17408
17405
|
enumerable: true,
|
|
17409
|
-
get: function () { return
|
|
17406
|
+
get: function () { return chunkFOBB5U4Y_cjs.decodeCaptionPacket; }
|
|
17410
17407
|
});
|
|
17411
17408
|
Object.defineProperty(exports, "decodeMono16k", {
|
|
17412
17409
|
enumerable: true,
|
|
17413
|
-
get: function () { return
|
|
17410
|
+
get: function () { return chunkFOBB5U4Y_cjs.decodeMono16k; }
|
|
17414
17411
|
});
|
|
17415
17412
|
Object.defineProperty(exports, "decryptPart", {
|
|
17416
17413
|
enumerable: true,
|
|
17417
|
-
get: function () { return
|
|
17414
|
+
get: function () { return chunkFOBB5U4Y_cjs.decryptPart; }
|
|
17418
17415
|
});
|
|
17419
17416
|
Object.defineProperty(exports, "encodeCallChatPacket", {
|
|
17420
17417
|
enumerable: true,
|
|
17421
|
-
get: function () { return
|
|
17418
|
+
get: function () { return chunkFOBB5U4Y_cjs.encodeCallChatPacket; }
|
|
17422
17419
|
});
|
|
17423
17420
|
Object.defineProperty(exports, "encodeCaptionPacket", {
|
|
17424
17421
|
enumerable: true,
|
|
17425
|
-
get: function () { return
|
|
17422
|
+
get: function () { return chunkFOBB5U4Y_cjs.encodeCaptionPacket; }
|
|
17426
17423
|
});
|
|
17427
17424
|
Object.defineProperty(exports, "encodeWav", {
|
|
17428
17425
|
enumerable: true,
|
|
17429
|
-
get: function () { return
|
|
17426
|
+
get: function () { return chunkFOBB5U4Y_cjs.encodeWav; }
|
|
17430
17427
|
});
|
|
17431
17428
|
Object.defineProperty(exports, "encryptPart", {
|
|
17432
17429
|
enumerable: true,
|
|
17433
|
-
get: function () { return
|
|
17430
|
+
get: function () { return chunkFOBB5U4Y_cjs.encryptPart; }
|
|
17434
17431
|
});
|
|
17435
17432
|
Object.defineProperty(exports, "ensureMeetingChat", {
|
|
17436
17433
|
enumerable: true,
|
|
17437
|
-
get: function () { return
|
|
17434
|
+
get: function () { return chunkFOBB5U4Y_cjs.ensureMeetingChat; }
|
|
17438
17435
|
});
|
|
17439
17436
|
Object.defineProperty(exports, "entitlementRefusal", {
|
|
17440
17437
|
enumerable: true,
|
|
17441
|
-
get: function () { return
|
|
17438
|
+
get: function () { return chunkFOBB5U4Y_cjs.entitlementRefusal; }
|
|
17442
17439
|
});
|
|
17443
17440
|
Object.defineProperty(exports, "extensionFor", {
|
|
17444
17441
|
enumerable: true,
|
|
17445
|
-
get: function () { return
|
|
17442
|
+
get: function () { return chunkFOBB5U4Y_cjs.extensionFor; }
|
|
17446
17443
|
});
|
|
17447
17444
|
Object.defineProperty(exports, "fetchPart", {
|
|
17448
17445
|
enumerable: true,
|
|
17449
|
-
get: function () { return
|
|
17446
|
+
get: function () { return chunkFOBB5U4Y_cjs.fetchPart; }
|
|
17450
17447
|
});
|
|
17451
17448
|
Object.defineProperty(exports, "fileSafe", {
|
|
17452
17449
|
enumerable: true,
|
|
17453
|
-
get: function () { return
|
|
17450
|
+
get: function () { return chunkFOBB5U4Y_cjs.fileSafe; }
|
|
17454
17451
|
});
|
|
17455
17452
|
Object.defineProperty(exports, "findConversation", {
|
|
17456
17453
|
enumerable: true,
|
|
17457
|
-
get: function () { return
|
|
17454
|
+
get: function () { return chunkFOBB5U4Y_cjs.findConversation; }
|
|
17458
17455
|
});
|
|
17459
17456
|
Object.defineProperty(exports, "floatToWav", {
|
|
17460
17457
|
enumerable: true,
|
|
17461
|
-
get: function () { return
|
|
17458
|
+
get: function () { return chunkFOBB5U4Y_cjs.floatToWav; }
|
|
17462
17459
|
});
|
|
17463
17460
|
Object.defineProperty(exports, "formatTranscriptMarkdown", {
|
|
17464
17461
|
enumerable: true,
|
|
17465
|
-
get: function () { return
|
|
17462
|
+
get: function () { return chunkFOBB5U4Y_cjs.formatTranscriptMarkdown; }
|
|
17466
17463
|
});
|
|
17467
17464
|
Object.defineProperty(exports, "getOpenChat", {
|
|
17468
17465
|
enumerable: true,
|
|
17469
|
-
get: function () { return
|
|
17466
|
+
get: function () { return chunkFOBB5U4Y_cjs.getOpenChat; }
|
|
17470
17467
|
});
|
|
17471
17468
|
Object.defineProperty(exports, "hasRecordingTranscript", {
|
|
17472
17469
|
enumerable: true,
|
|
17473
|
-
get: function () { return
|
|
17470
|
+
get: function () { return chunkFOBB5U4Y_cjs.hasRecordingTranscript; }
|
|
17474
17471
|
});
|
|
17475
17472
|
Object.defineProperty(exports, "invalidateCall", {
|
|
17476
17473
|
enumerable: true,
|
|
17477
|
-
get: function () { return
|
|
17474
|
+
get: function () { return chunkFOBB5U4Y_cjs.invalidateCall; }
|
|
17478
17475
|
});
|
|
17479
17476
|
Object.defineProperty(exports, "invalidateConversationDetails", {
|
|
17480
17477
|
enumerable: true,
|
|
17481
|
-
get: function () { return
|
|
17478
|
+
get: function () { return chunkFOBB5U4Y_cjs.invalidateConversationDetails; }
|
|
17482
17479
|
});
|
|
17483
17480
|
Object.defineProperty(exports, "invalidateConversationLists", {
|
|
17484
17481
|
enumerable: true,
|
|
17485
|
-
get: function () { return
|
|
17482
|
+
get: function () { return chunkFOBB5U4Y_cjs.invalidateConversationLists; }
|
|
17486
17483
|
});
|
|
17487
17484
|
Object.defineProperty(exports, "isConversationListKey", {
|
|
17488
17485
|
enumerable: true,
|
|
17489
|
-
get: function () { return
|
|
17486
|
+
get: function () { return chunkFOBB5U4Y_cjs.isConversationListKey; }
|
|
17490
17487
|
});
|
|
17491
17488
|
Object.defineProperty(exports, "isConversationShared", {
|
|
17492
17489
|
enumerable: true,
|
|
17493
|
-
get: function () { return
|
|
17490
|
+
get: function () { return chunkFOBB5U4Y_cjs.isConversationShared; }
|
|
17494
17491
|
});
|
|
17495
17492
|
Object.defineProperty(exports, "isRecordingOver", {
|
|
17496
17493
|
enumerable: true,
|
|
17497
|
-
get: function () { return
|
|
17494
|
+
get: function () { return chunkFOBB5U4Y_cjs.isRecordingOver; }
|
|
17498
17495
|
});
|
|
17499
17496
|
Object.defineProperty(exports, "isRecordingSegmentId", {
|
|
17500
17497
|
enumerable: true,
|
|
17501
|
-
get: function () { return
|
|
17498
|
+
get: function () { return chunkFOBB5U4Y_cjs.isRecordingSegmentId; }
|
|
17502
17499
|
});
|
|
17503
17500
|
Object.defineProperty(exports, "isRetryable", {
|
|
17504
17501
|
enumerable: true,
|
|
17505
|
-
get: function () { return
|
|
17502
|
+
get: function () { return chunkFOBB5U4Y_cjs.isRetryable; }
|
|
17506
17503
|
});
|
|
17507
17504
|
Object.defineProperty(exports, "isWorkspaceGuestOf", {
|
|
17508
17505
|
enumerable: true,
|
|
17509
|
-
get: function () { return
|
|
17506
|
+
get: function () { return chunkFOBB5U4Y_cjs.isWorkspaceGuestOf; }
|
|
17510
17507
|
});
|
|
17511
17508
|
Object.defineProperty(exports, "joinFromPreJoin", {
|
|
17512
17509
|
enumerable: true,
|
|
17513
|
-
get: function () { return
|
|
17510
|
+
get: function () { return chunkFOBB5U4Y_cjs.joinFromPreJoin; }
|
|
17514
17511
|
});
|
|
17515
17512
|
Object.defineProperty(exports, "knownMeetingChat", {
|
|
17516
17513
|
enumerable: true,
|
|
17517
|
-
get: function () { return
|
|
17514
|
+
get: function () { return chunkFOBB5U4Y_cjs.knownMeetingChat; }
|
|
17518
17515
|
});
|
|
17519
17516
|
Object.defineProperty(exports, "loadMeetingHistory", {
|
|
17520
17517
|
enumerable: true,
|
|
17521
|
-
get: function () { return
|
|
17518
|
+
get: function () { return chunkFOBB5U4Y_cjs.loadMeetingHistory; }
|
|
17522
17519
|
});
|
|
17523
17520
|
Object.defineProperty(exports, "markRejoining", {
|
|
17524
17521
|
enumerable: true,
|
|
17525
|
-
get: function () { return
|
|
17522
|
+
get: function () { return chunkFOBB5U4Y_cjs.markRejoining; }
|
|
17526
17523
|
});
|
|
17527
17524
|
Object.defineProperty(exports, "meetingChatRefFrom", {
|
|
17528
17525
|
enumerable: true,
|
|
17529
|
-
get: function () { return
|
|
17526
|
+
get: function () { return chunkFOBB5U4Y_cjs.meetingChatRefFrom; }
|
|
17530
17527
|
});
|
|
17531
17528
|
Object.defineProperty(exports, "meetingRefForCall", {
|
|
17532
17529
|
enumerable: true,
|
|
17533
|
-
get: function () { return
|
|
17530
|
+
get: function () { return chunkFOBB5U4Y_cjs.meetingRefForCall; }
|
|
17534
17531
|
});
|
|
17535
17532
|
Object.defineProperty(exports, "mergeChatLines", {
|
|
17536
17533
|
enumerable: true,
|
|
17537
|
-
get: function () { return
|
|
17534
|
+
get: function () { return chunkFOBB5U4Y_cjs.mergeChatLines; }
|
|
17538
17535
|
});
|
|
17539
17536
|
Object.defineProperty(exports, "mutedNoticeFromEvent", {
|
|
17540
17537
|
enumerable: true,
|
|
17541
|
-
get: function () { return
|
|
17538
|
+
get: function () { return chunkFOBB5U4Y_cjs.mutedNoticeFromEvent; }
|
|
17542
17539
|
});
|
|
17543
17540
|
Object.defineProperty(exports, "mutedNoticeFromPacket", {
|
|
17544
17541
|
enumerable: true,
|
|
17545
|
-
get: function () { return
|
|
17542
|
+
get: function () { return chunkFOBB5U4Y_cjs.mutedNoticeFromPacket; }
|
|
17546
17543
|
});
|
|
17547
17544
|
Object.defineProperty(exports, "mutedNoticeText", {
|
|
17548
17545
|
enumerable: true,
|
|
17549
|
-
get: function () { return
|
|
17546
|
+
get: function () { return chunkFOBB5U4Y_cjs.mutedNoticeText; }
|
|
17550
17547
|
});
|
|
17551
17548
|
Object.defineProperty(exports, "myChatId", {
|
|
17552
17549
|
enumerable: true,
|
|
17553
|
-
get: function () { return
|
|
17550
|
+
get: function () { return chunkFOBB5U4Y_cjs.myChatId; }
|
|
17554
17551
|
});
|
|
17555
17552
|
Object.defineProperty(exports, "newPacketId", {
|
|
17556
17553
|
enumerable: true,
|
|
17557
|
-
get: function () { return
|
|
17554
|
+
get: function () { return chunkFOBB5U4Y_cjs.newPacketId; }
|
|
17558
17555
|
});
|
|
17559
17556
|
Object.defineProperty(exports, "newSegmentId", {
|
|
17560
17557
|
enumerable: true,
|
|
17561
|
-
get: function () { return
|
|
17558
|
+
get: function () { return chunkFOBB5U4Y_cjs.newSegmentId; }
|
|
17562
17559
|
});
|
|
17563
17560
|
Object.defineProperty(exports, "newTrackKey", {
|
|
17564
17561
|
enumerable: true,
|
|
17565
|
-
get: function () { return
|
|
17562
|
+
get: function () { return chunkFOBB5U4Y_cjs.newTrackKey; }
|
|
17566
17563
|
});
|
|
17567
17564
|
Object.defineProperty(exports, "nextSeqAfter", {
|
|
17568
17565
|
enumerable: true,
|
|
17569
|
-
get: function () { return
|
|
17566
|
+
get: function () { return chunkFOBB5U4Y_cjs.nextSeqAfter; }
|
|
17570
17567
|
});
|
|
17571
17568
|
Object.defineProperty(exports, "onCallEvent", {
|
|
17572
17569
|
enumerable: true,
|
|
17573
|
-
get: function () { return
|
|
17570
|
+
get: function () { return chunkFOBB5U4Y_cjs.onCallEvent; }
|
|
17574
17571
|
});
|
|
17575
17572
|
Object.defineProperty(exports, "openCall", {
|
|
17576
17573
|
enumerable: true,
|
|
17577
|
-
get: function () { return
|
|
17574
|
+
get: function () { return chunkFOBB5U4Y_cjs.openCall; }
|
|
17578
17575
|
});
|
|
17579
17576
|
Object.defineProperty(exports, "openQuestion", {
|
|
17580
17577
|
enumerable: true,
|
|
17581
|
-
get: function () { return
|
|
17578
|
+
get: function () { return chunkFOBB5U4Y_cjs.openQuestion; }
|
|
17582
17579
|
});
|
|
17583
17580
|
Object.defineProperty(exports, "openRecording", {
|
|
17584
17581
|
enumerable: true,
|
|
17585
|
-
get: function () { return
|
|
17582
|
+
get: function () { return chunkFOBB5U4Y_cjs.openRecording; }
|
|
17586
17583
|
});
|
|
17587
17584
|
Object.defineProperty(exports, "parseWebinarPacket", {
|
|
17588
17585
|
enumerable: true,
|
|
17589
|
-
get: function () { return
|
|
17586
|
+
get: function () { return chunkFOBB5U4Y_cjs.parseWebinarPacket; }
|
|
17590
17587
|
});
|
|
17591
17588
|
Object.defineProperty(exports, "partKey", {
|
|
17592
17589
|
enumerable: true,
|
|
17593
|
-
get: function () { return
|
|
17590
|
+
get: function () { return chunkFOBB5U4Y_cjs.partKey; }
|
|
17594
17591
|
});
|
|
17595
17592
|
Object.defineProperty(exports, "partOffsetMs", {
|
|
17596
17593
|
enumerable: true,
|
|
17597
|
-
get: function () { return
|
|
17594
|
+
get: function () { return chunkFOBB5U4Y_cjs.partOffsetMs; }
|
|
17598
17595
|
});
|
|
17599
17596
|
Object.defineProperty(exports, "partsDue", {
|
|
17600
17597
|
enumerable: true,
|
|
17601
|
-
get: function () { return
|
|
17598
|
+
get: function () { return chunkFOBB5U4Y_cjs.partsDue; }
|
|
17602
17599
|
});
|
|
17603
17600
|
Object.defineProperty(exports, "patchConversation", {
|
|
17604
17601
|
enumerable: true,
|
|
17605
|
-
get: function () { return
|
|
17602
|
+
get: function () { return chunkFOBB5U4Y_cjs.patchConversation; }
|
|
17606
17603
|
});
|
|
17607
17604
|
Object.defineProperty(exports, "patchConversationList", {
|
|
17608
17605
|
enumerable: true,
|
|
17609
|
-
get: function () { return
|
|
17606
|
+
get: function () { return chunkFOBB5U4Y_cjs.patchConversationList; }
|
|
17610
17607
|
});
|
|
17611
17608
|
Object.defineProperty(exports, "persistMeetingMessage", {
|
|
17612
17609
|
enumerable: true,
|
|
17613
|
-
get: function () { return
|
|
17610
|
+
get: function () { return chunkFOBB5U4Y_cjs.persistMeetingMessage; }
|
|
17614
17611
|
});
|
|
17615
17612
|
Object.defineProperty(exports, "persistTranscriptSegment", {
|
|
17616
17613
|
enumerable: true,
|
|
17617
|
-
get: function () { return
|
|
17614
|
+
get: function () { return chunkFOBB5U4Y_cjs.persistTranscriptSegment; }
|
|
17618
17615
|
});
|
|
17619
17616
|
Object.defineProperty(exports, "playheadAt", {
|
|
17620
17617
|
enumerable: true,
|
|
17621
|
-
get: function () { return
|
|
17618
|
+
get: function () { return chunkFOBB5U4Y_cjs.playheadAt; }
|
|
17622
17619
|
});
|
|
17623
17620
|
Object.defineProperty(exports, "postRecordingDocsToThread", {
|
|
17624
17621
|
enumerable: true,
|
|
17625
|
-
get: function () { return
|
|
17622
|
+
get: function () { return chunkFOBB5U4Y_cjs.postRecordingDocsToThread; }
|
|
17626
17623
|
});
|
|
17627
17624
|
Object.defineProperty(exports, "postTranscriptToThread", {
|
|
17628
17625
|
enumerable: true,
|
|
17629
|
-
get: function () { return
|
|
17626
|
+
get: function () { return chunkFOBB5U4Y_cjs.postTranscriptToThread; }
|
|
17630
17627
|
});
|
|
17631
17628
|
Object.defineProperty(exports, "readLocalFeature", {
|
|
17632
17629
|
enumerable: true,
|
|
17633
|
-
get: function () { return
|
|
17630
|
+
get: function () { return chunkFOBB5U4Y_cjs.readLocalFeature; }
|
|
17634
17631
|
});
|
|
17635
17632
|
Object.defineProperty(exports, "recordingFiles", {
|
|
17636
17633
|
enumerable: true,
|
|
17637
|
-
get: function () { return
|
|
17634
|
+
get: function () { return chunkFOBB5U4Y_cjs.recordingFiles; }
|
|
17638
17635
|
});
|
|
17639
17636
|
Object.defineProperty(exports, "recordingWindowsOf", {
|
|
17640
17637
|
enumerable: true,
|
|
17641
|
-
get: function () { return
|
|
17638
|
+
get: function () { return chunkFOBB5U4Y_cjs.recordingWindowsOf; }
|
|
17642
17639
|
});
|
|
17643
17640
|
Object.defineProperty(exports, "rejoinAsAudience", {
|
|
17644
17641
|
enumerable: true,
|
|
17645
|
-
get: function () { return
|
|
17642
|
+
get: function () { return chunkFOBB5U4Y_cjs.rejoinAsAudience; }
|
|
17646
17643
|
});
|
|
17647
17644
|
Object.defineProperty(exports, "removeChat", {
|
|
17648
17645
|
enumerable: true,
|
|
17649
|
-
get: function () { return
|
|
17646
|
+
get: function () { return chunkFOBB5U4Y_cjs.removeChat; }
|
|
17650
17647
|
});
|
|
17651
17648
|
Object.defineProperty(exports, "removeConversationFromLists", {
|
|
17652
17649
|
enumerable: true,
|
|
17653
|
-
get: function () { return
|
|
17650
|
+
get: function () { return chunkFOBB5U4Y_cjs.removeConversationFromLists; }
|
|
17654
17651
|
});
|
|
17655
17652
|
Object.defineProperty(exports, "resetCallSession", {
|
|
17656
17653
|
enumerable: true,
|
|
17657
|
-
get: function () { return
|
|
17654
|
+
get: function () { return chunkFOBB5U4Y_cjs.resetCallSession; }
|
|
17658
17655
|
});
|
|
17659
17656
|
Object.defineProperty(exports, "resolveMeetingChat", {
|
|
17660
17657
|
enumerable: true,
|
|
17661
|
-
get: function () { return
|
|
17658
|
+
get: function () { return chunkFOBB5U4Y_cjs.resolveMeetingChat; }
|
|
17662
17659
|
});
|
|
17663
17660
|
Object.defineProperty(exports, "saveRecordingFilesToThread", {
|
|
17664
17661
|
enumerable: true,
|
|
17665
|
-
get: function () { return
|
|
17662
|
+
get: function () { return chunkFOBB5U4Y_cjs.saveRecordingFilesToThread; }
|
|
17666
17663
|
});
|
|
17667
17664
|
Object.defineProperty(exports, "schedulePart", {
|
|
17668
17665
|
enumerable: true,
|
|
17669
|
-
get: function () { return
|
|
17666
|
+
get: function () { return chunkFOBB5U4Y_cjs.schedulePart; }
|
|
17670
17667
|
});
|
|
17671
17668
|
Object.defineProperty(exports, "sealQuestionText", {
|
|
17672
17669
|
enumerable: true,
|
|
17673
|
-
get: function () { return
|
|
17670
|
+
get: function () { return chunkFOBB5U4Y_cjs.sealQuestionText; }
|
|
17674
17671
|
});
|
|
17675
17672
|
Object.defineProperty(exports, "serverCallsExperimental", {
|
|
17676
17673
|
enumerable: true,
|
|
17677
|
-
get: function () { return
|
|
17674
|
+
get: function () { return chunkFOBB5U4Y_cjs.serverCallsExperimental; }
|
|
17678
17675
|
});
|
|
17679
17676
|
Object.defineProperty(exports, "setOpenChat", {
|
|
17680
17677
|
enumerable: true,
|
|
17681
|
-
get: function () { return
|
|
17678
|
+
get: function () { return chunkFOBB5U4Y_cjs.setOpenChat; }
|
|
17682
17679
|
});
|
|
17683
17680
|
Object.defineProperty(exports, "sortTranscriptMessages", {
|
|
17684
17681
|
enumerable: true,
|
|
17685
|
-
get: function () { return
|
|
17682
|
+
get: function () { return chunkFOBB5U4Y_cjs.sortTranscriptMessages; }
|
|
17686
17683
|
});
|
|
17687
17684
|
Object.defineProperty(exports, "sortedParts", {
|
|
17688
17685
|
enumerable: true,
|
|
17689
|
-
get: function () { return
|
|
17686
|
+
get: function () { return chunkFOBB5U4Y_cjs.sortedParts; }
|
|
17690
17687
|
});
|
|
17691
17688
|
Object.defineProperty(exports, "speakerTracks", {
|
|
17692
17689
|
enumerable: true,
|
|
17693
|
-
get: function () { return
|
|
17690
|
+
get: function () { return chunkFOBB5U4Y_cjs.speakerTracks; }
|
|
17694
17691
|
});
|
|
17695
17692
|
Object.defineProperty(exports, "speakerWav", {
|
|
17696
17693
|
enumerable: true,
|
|
17697
|
-
get: function () { return
|
|
17694
|
+
get: function () { return chunkFOBB5U4Y_cjs.speakerWav; }
|
|
17698
17695
|
});
|
|
17699
17696
|
Object.defineProperty(exports, "splitIntoFiles", {
|
|
17700
17697
|
enumerable: true,
|
|
17701
|
-
get: function () { return
|
|
17698
|
+
get: function () { return chunkFOBB5U4Y_cjs.splitIntoFiles; }
|
|
17702
17699
|
});
|
|
17703
17700
|
Object.defineProperty(exports, "standalone", {
|
|
17704
17701
|
enumerable: true,
|
|
17705
|
-
get: function () { return
|
|
17702
|
+
get: function () { return chunkFOBB5U4Y_cjs.standalone; }
|
|
17706
17703
|
});
|
|
17707
17704
|
Object.defineProperty(exports, "startChatCall", {
|
|
17708
17705
|
enumerable: true,
|
|
17709
|
-
get: function () { return
|
|
17706
|
+
get: function () { return chunkFOBB5U4Y_cjs.startChatCall; }
|
|
17710
17707
|
});
|
|
17711
17708
|
Object.defineProperty(exports, "startContactsCall", {
|
|
17712
17709
|
enumerable: true,
|
|
17713
|
-
get: function () { return
|
|
17710
|
+
get: function () { return chunkFOBB5U4Y_cjs.startContactsCall; }
|
|
17714
17711
|
});
|
|
17715
17712
|
Object.defineProperty(exports, "startDmCall", {
|
|
17716
17713
|
enumerable: true,
|
|
17717
|
-
get: function () { return
|
|
17714
|
+
get: function () { return chunkFOBB5U4Y_cjs.startDmCall; }
|
|
17718
17715
|
});
|
|
17719
17716
|
Object.defineProperty(exports, "startThreadCall", {
|
|
17720
17717
|
enumerable: true,
|
|
17721
|
-
get: function () { return
|
|
17718
|
+
get: function () { return chunkFOBB5U4Y_cjs.startThreadCall; }
|
|
17722
17719
|
});
|
|
17723
17720
|
Object.defineProperty(exports, "startsMediaFile", {
|
|
17724
17721
|
enumerable: true,
|
|
17725
|
-
get: function () { return
|
|
17722
|
+
get: function () { return chunkFOBB5U4Y_cjs.startsMediaFile; }
|
|
17726
17723
|
});
|
|
17727
17724
|
Object.defineProperty(exports, "storeTranscriptSegment", {
|
|
17728
17725
|
enumerable: true,
|
|
17729
|
-
get: function () { return
|
|
17726
|
+
get: function () { return chunkFOBB5U4Y_cjs.storeTranscriptSegment; }
|
|
17730
17727
|
});
|
|
17731
17728
|
Object.defineProperty(exports, "stripSpeakerPrefix", {
|
|
17732
17729
|
enumerable: true,
|
|
17733
|
-
get: function () { return
|
|
17730
|
+
get: function () { return chunkFOBB5U4Y_cjs.stripSpeakerPrefix; }
|
|
17734
17731
|
});
|
|
17735
17732
|
Object.defineProperty(exports, "supersedeLiveTranscript", {
|
|
17736
17733
|
enumerable: true,
|
|
17737
|
-
get: function () { return
|
|
17734
|
+
get: function () { return chunkFOBB5U4Y_cjs.supersedeLiveTranscript; }
|
|
17738
17735
|
});
|
|
17739
17736
|
Object.defineProperty(exports, "supersededTranscriptLines", {
|
|
17740
17737
|
enumerable: true,
|
|
17741
|
-
get: function () { return
|
|
17738
|
+
get: function () { return chunkFOBB5U4Y_cjs.supersededTranscriptLines; }
|
|
17742
17739
|
});
|
|
17743
17740
|
Object.defineProperty(exports, "threadHasLiveCall", {
|
|
17744
17741
|
enumerable: true,
|
|
17745
|
-
get: function () { return
|
|
17742
|
+
get: function () { return chunkFOBB5U4Y_cjs.threadHasLiveCall; }
|
|
17746
17743
|
});
|
|
17747
17744
|
Object.defineProperty(exports, "threadLiveCallId", {
|
|
17748
17745
|
enumerable: true,
|
|
17749
|
-
get: function () { return
|
|
17746
|
+
get: function () { return chunkFOBB5U4Y_cjs.threadLiveCallId; }
|
|
17750
17747
|
});
|
|
17751
17748
|
Object.defineProperty(exports, "threadTranscriptLines", {
|
|
17752
17749
|
enumerable: true,
|
|
17753
|
-
get: function () { return
|
|
17750
|
+
get: function () { return chunkFOBB5U4Y_cjs.threadTranscriptLines; }
|
|
17754
17751
|
});
|
|
17755
17752
|
Object.defineProperty(exports, "threadTranscriptRef", {
|
|
17756
17753
|
enumerable: true,
|
|
17757
|
-
get: function () { return
|
|
17754
|
+
get: function () { return chunkFOBB5U4Y_cjs.threadTranscriptRef; }
|
|
17758
17755
|
});
|
|
17759
17756
|
Object.defineProperty(exports, "threadTranscriptText", {
|
|
17760
17757
|
enumerable: true,
|
|
17761
|
-
get: function () { return
|
|
17758
|
+
get: function () { return chunkFOBB5U4Y_cjs.threadTranscriptText; }
|
|
17762
17759
|
});
|
|
17763
17760
|
Object.defineProperty(exports, "timelineDurationMs", {
|
|
17764
17761
|
enumerable: true,
|
|
17765
|
-
get: function () { return
|
|
17762
|
+
get: function () { return chunkFOBB5U4Y_cjs.timelineDurationMs; }
|
|
17766
17763
|
});
|
|
17767
17764
|
Object.defineProperty(exports, "timelineOf", {
|
|
17768
17765
|
enumerable: true,
|
|
17769
|
-
get: function () { return
|
|
17766
|
+
get: function () { return chunkFOBB5U4Y_cjs.timelineOf; }
|
|
17770
17767
|
});
|
|
17771
17768
|
Object.defineProperty(exports, "toProfileView", {
|
|
17772
17769
|
enumerable: true,
|
|
17773
|
-
get: function () { return
|
|
17770
|
+
get: function () { return chunkFOBB5U4Y_cjs.toProfileView; }
|
|
17774
17771
|
});
|
|
17775
17772
|
Object.defineProperty(exports, "trackUploaderFor", {
|
|
17776
17773
|
enumerable: true,
|
|
17777
|
-
get: function () { return
|
|
17774
|
+
get: function () { return chunkFOBB5U4Y_cjs.trackUploaderFor; }
|
|
17778
17775
|
});
|
|
17779
17776
|
Object.defineProperty(exports, "transcribeRecording", {
|
|
17780
17777
|
enumerable: true,
|
|
17781
|
-
get: function () { return
|
|
17778
|
+
get: function () { return chunkFOBB5U4Y_cjs.transcribeRecording; }
|
|
17782
17779
|
});
|
|
17783
17780
|
Object.defineProperty(exports, "transcriptPersistRole", {
|
|
17784
17781
|
enumerable: true,
|
|
17785
|
-
get: function () { return
|
|
17782
|
+
get: function () { return chunkFOBB5U4Y_cjs.transcriptPersistRole; }
|
|
17786
17783
|
});
|
|
17787
17784
|
Object.defineProperty(exports, "transcriptSegmentOf", {
|
|
17788
17785
|
enumerable: true,
|
|
17789
|
-
get: function () { return
|
|
17786
|
+
get: function () { return chunkFOBB5U4Y_cjs.transcriptSegmentOf; }
|
|
17790
17787
|
});
|
|
17791
17788
|
Object.defineProperty(exports, "unwrapTrackKey", {
|
|
17792
17789
|
enumerable: true,
|
|
17793
|
-
get: function () { return
|
|
17790
|
+
get: function () { return chunkFOBB5U4Y_cjs.unwrapTrackKey; }
|
|
17794
17791
|
});
|
|
17795
17792
|
Object.defineProperty(exports, "upsertChat", {
|
|
17796
17793
|
enumerable: true,
|
|
17797
|
-
get: function () { return
|
|
17794
|
+
get: function () { return chunkFOBB5U4Y_cjs.upsertChat; }
|
|
17798
17795
|
});
|
|
17799
17796
|
Object.defineProperty(exports, "useAccountClient", {
|
|
17800
17797
|
enumerable: true,
|
|
17801
|
-
get: function () { return
|
|
17798
|
+
get: function () { return chunkFOBB5U4Y_cjs.useAccountClient; }
|
|
17802
17799
|
});
|
|
17803
17800
|
Object.defineProperty(exports, "useAvatarCrop", {
|
|
17804
17801
|
enumerable: true,
|
|
17805
|
-
get: function () { return
|
|
17802
|
+
get: function () { return chunkFOBB5U4Y_cjs.useAvatarCrop; }
|
|
17806
17803
|
});
|
|
17807
17804
|
Object.defineProperty(exports, "useCall", {
|
|
17808
17805
|
enumerable: true,
|
|
17809
|
-
get: function () { return
|
|
17806
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCall; }
|
|
17810
17807
|
});
|
|
17811
17808
|
Object.defineProperty(exports, "useCallInviteLinks", {
|
|
17812
17809
|
enumerable: true,
|
|
17813
|
-
get: function () { return
|
|
17810
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallInviteLinks; }
|
|
17814
17811
|
});
|
|
17815
17812
|
Object.defineProperty(exports, "useCallRecording", {
|
|
17816
17813
|
enumerable: true,
|
|
17817
|
-
get: function () { return
|
|
17814
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallRecording; }
|
|
17818
17815
|
});
|
|
17819
17816
|
Object.defineProperty(exports, "useCallRecordings", {
|
|
17820
17817
|
enumerable: true,
|
|
17821
|
-
get: function () { return
|
|
17818
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallRecordings; }
|
|
17822
17819
|
});
|
|
17823
17820
|
Object.defineProperty(exports, "useCallSession", {
|
|
17824
17821
|
enumerable: true,
|
|
17825
|
-
get: function () { return
|
|
17822
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallSession; }
|
|
17826
17823
|
});
|
|
17827
17824
|
Object.defineProperty(exports, "useCallTranscriptionAvailable", {
|
|
17828
17825
|
enumerable: true,
|
|
17829
|
-
get: function () { return
|
|
17826
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallTranscriptionAvailable; }
|
|
17830
17827
|
});
|
|
17831
17828
|
Object.defineProperty(exports, "useCallsConfig", {
|
|
17832
17829
|
enumerable: true,
|
|
17833
|
-
get: function () { return
|
|
17830
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallsConfig; }
|
|
17834
17831
|
});
|
|
17835
17832
|
Object.defineProperty(exports, "useCallsEnabled", {
|
|
17836
17833
|
enumerable: true,
|
|
17837
|
-
get: function () { return
|
|
17834
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCallsEnabled; }
|
|
17838
17835
|
});
|
|
17839
17836
|
Object.defineProperty(exports, "useCanHostCalls", {
|
|
17840
17837
|
enumerable: true,
|
|
17841
|
-
get: function () { return
|
|
17838
|
+
get: function () { return chunkFOBB5U4Y_cjs.useCanHostCalls; }
|
|
17842
17839
|
});
|
|
17843
17840
|
Object.defineProperty(exports, "useEntitlements", {
|
|
17844
17841
|
enumerable: true,
|
|
17845
|
-
get: function () { return
|
|
17842
|
+
get: function () { return chunkFOBB5U4Y_cjs.useEntitlements; }
|
|
17846
17843
|
});
|
|
17847
17844
|
Object.defineProperty(exports, "useFeature", {
|
|
17848
17845
|
enumerable: true,
|
|
17849
|
-
get: function () { return
|
|
17846
|
+
get: function () { return chunkFOBB5U4Y_cjs.useFeature; }
|
|
17850
17847
|
});
|
|
17851
17848
|
Object.defineProperty(exports, "useFeatureCheck", {
|
|
17852
17849
|
enumerable: true,
|
|
17853
|
-
get: function () { return
|
|
17850
|
+
get: function () { return chunkFOBB5U4Y_cjs.useFeatureCheck; }
|
|
17854
17851
|
});
|
|
17855
17852
|
Object.defineProperty(exports, "useFeatureSwitch", {
|
|
17856
17853
|
enumerable: true,
|
|
17857
|
-
get: function () { return
|
|
17854
|
+
get: function () { return chunkFOBB5U4Y_cjs.useFeatureSwitch; }
|
|
17858
17855
|
});
|
|
17859
17856
|
Object.defineProperty(exports, "useInvalidateEntitlements", {
|
|
17860
17857
|
enumerable: true,
|
|
17861
|
-
get: function () { return
|
|
17858
|
+
get: function () { return chunkFOBB5U4Y_cjs.useInvalidateEntitlements; }
|
|
17862
17859
|
});
|
|
17863
17860
|
Object.defineProperty(exports, "useIsEntitled", {
|
|
17864
17861
|
enumerable: true,
|
|
17865
|
-
get: function () { return
|
|
17862
|
+
get: function () { return chunkFOBB5U4Y_cjs.useIsEntitled; }
|
|
17866
17863
|
});
|
|
17867
17864
|
Object.defineProperty(exports, "useMeetingReadOnly", {
|
|
17868
17865
|
enumerable: true,
|
|
17869
|
-
get: function () { return
|
|
17866
|
+
get: function () { return chunkFOBB5U4Y_cjs.useMeetingReadOnly; }
|
|
17870
17867
|
});
|
|
17871
17868
|
Object.defineProperty(exports, "useNameEditor", {
|
|
17872
17869
|
enumerable: true,
|
|
17873
|
-
get: function () { return
|
|
17870
|
+
get: function () { return chunkFOBB5U4Y_cjs.useNameEditor; }
|
|
17874
17871
|
});
|
|
17875
17872
|
Object.defineProperty(exports, "useOpenCallMeetingChat", {
|
|
17876
17873
|
enumerable: true,
|
|
17877
|
-
get: function () { return
|
|
17874
|
+
get: function () { return chunkFOBB5U4Y_cjs.useOpenCallMeetingChat; }
|
|
17878
17875
|
});
|
|
17879
17876
|
Object.defineProperty(exports, "useProfile", {
|
|
17880
17877
|
enumerable: true,
|
|
17881
|
-
get: function () { return
|
|
17878
|
+
get: function () { return chunkFOBB5U4Y_cjs.useProfile; }
|
|
17882
17879
|
});
|
|
17883
17880
|
Object.defineProperty(exports, "useRecordingActions", {
|
|
17884
17881
|
enumerable: true,
|
|
17885
|
-
get: function () { return
|
|
17882
|
+
get: function () { return chunkFOBB5U4Y_cjs.useRecordingActions; }
|
|
17886
17883
|
});
|
|
17887
17884
|
Object.defineProperty(exports, "useRecordingWindows", {
|
|
17888
17885
|
enumerable: true,
|
|
17889
|
-
get: function () { return
|
|
17886
|
+
get: function () { return chunkFOBB5U4Y_cjs.useRecordingWindows; }
|
|
17890
17887
|
});
|
|
17891
17888
|
Object.defineProperty(exports, "useRevokeCallInviteLink", {
|
|
17892
17889
|
enumerable: true,
|
|
17893
|
-
get: function () { return
|
|
17890
|
+
get: function () { return chunkFOBB5U4Y_cjs.useRevokeCallInviteLink; }
|
|
17894
17891
|
});
|
|
17895
17892
|
Object.defineProperty(exports, "useSaveToThread", {
|
|
17896
17893
|
enumerable: true,
|
|
17897
|
-
get: function () { return
|
|
17894
|
+
get: function () { return chunkFOBB5U4Y_cjs.useSaveToThread; }
|
|
17898
17895
|
});
|
|
17899
17896
|
Object.defineProperty(exports, "useServerCallsEnabled", {
|
|
17900
17897
|
enumerable: true,
|
|
17901
|
-
get: function () { return
|
|
17898
|
+
get: function () { return chunkFOBB5U4Y_cjs.useServerCallsEnabled; }
|
|
17902
17899
|
});
|
|
17903
17900
|
Object.defineProperty(exports, "useServerCallsExperimental", {
|
|
17904
17901
|
enumerable: true,
|
|
17905
|
-
get: function () { return
|
|
17902
|
+
get: function () { return chunkFOBB5U4Y_cjs.useServerCallsExperimental; }
|
|
17906
17903
|
});
|
|
17907
17904
|
Object.defineProperty(exports, "useUpdateProfile", {
|
|
17908
17905
|
enumerable: true,
|
|
17909
|
-
get: function () { return
|
|
17906
|
+
get: function () { return chunkFOBB5U4Y_cjs.useUpdateProfile; }
|
|
17910
17907
|
});
|
|
17911
17908
|
Object.defineProperty(exports, "useUpdateUserSettings", {
|
|
17912
17909
|
enumerable: true,
|
|
17913
|
-
get: function () { return
|
|
17910
|
+
get: function () { return chunkFOBB5U4Y_cjs.useUpdateUserSettings; }
|
|
17914
17911
|
});
|
|
17915
17912
|
Object.defineProperty(exports, "useUserSettings", {
|
|
17916
17913
|
enumerable: true,
|
|
17917
|
-
get: function () { return
|
|
17914
|
+
get: function () { return chunkFOBB5U4Y_cjs.useUserSettings; }
|
|
17918
17915
|
});
|
|
17919
17916
|
Object.defineProperty(exports, "wipeOfflineMail", {
|
|
17920
17917
|
enumerable: true,
|
|
17921
|
-
get: function () { return
|
|
17918
|
+
get: function () { return chunkFOBB5U4Y_cjs.wipeOfflineMail; }
|
|
17922
17919
|
});
|
|
17923
17920
|
Object.defineProperty(exports, "wrapTrackKey", {
|
|
17924
17921
|
enumerable: true,
|
|
17925
|
-
get: function () { return
|
|
17922
|
+
get: function () { return chunkFOBB5U4Y_cjs.wrapTrackKey; }
|
|
17926
17923
|
});
|
|
17927
17924
|
Object.defineProperty(exports, "writeSamples", {
|
|
17928
17925
|
enumerable: true,
|
|
17929
|
-
get: function () { return
|
|
17926
|
+
get: function () { return chunkFOBB5U4Y_cjs.writeSamples; }
|
|
17930
17927
|
});
|
|
17931
17928
|
Object.defineProperty(exports, "DISMISSED_TASK_TTL_MS", {
|
|
17932
17929
|
enumerable: true,
|
|
17933
|
-
get: function () { return
|
|
17930
|
+
get: function () { return chunkNK5KFHXP_cjs.DISMISSED_TASK_TTL_MS; }
|
|
17934
17931
|
});
|
|
17935
17932
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
17936
17933
|
enumerable: true,
|
|
17937
|
-
get: function () { return
|
|
17934
|
+
get: function () { return chunkNK5KFHXP_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
17938
17935
|
});
|
|
17939
17936
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
17940
17937
|
enumerable: true,
|
|
17941
|
-
get: function () { return
|
|
17938
|
+
get: function () { return chunkNK5KFHXP_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
17942
17939
|
});
|
|
17943
17940
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
17944
17941
|
enumerable: true,
|
|
17945
|
-
get: function () { return
|
|
17942
|
+
get: function () { return chunkNK5KFHXP_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
17946
17943
|
});
|
|
17947
17944
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
17948
17945
|
enumerable: true,
|
|
17949
|
-
get: function () { return
|
|
17946
|
+
get: function () { return chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
17950
17947
|
});
|
|
17951
17948
|
Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
|
|
17952
17949
|
enumerable: true,
|
|
17953
|
-
get: function () { return
|
|
17950
|
+
get: function () { return chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
|
|
17954
17951
|
});
|
|
17955
17952
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
17956
17953
|
enumerable: true,
|
|
17957
|
-
get: function () { return
|
|
17954
|
+
get: function () { return chunkNK5KFHXP_cjs.SIMILARITY_THRESHOLD; }
|
|
17958
17955
|
});
|
|
17959
17956
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
17960
17957
|
enumerable: true,
|
|
17961
|
-
get: function () { return
|
|
17958
|
+
get: function () { return chunkNK5KFHXP_cjs.adjustTagCounts; }
|
|
17962
17959
|
});
|
|
17963
17960
|
Object.defineProperty(exports, "dropTagFromCachedDocuments", {
|
|
17964
17961
|
enumerable: true,
|
|
17965
|
-
get: function () { return
|
|
17962
|
+
get: function () { return chunkNK5KFHXP_cjs.dropTagFromCachedDocuments; }
|
|
17966
17963
|
});
|
|
17967
17964
|
Object.defineProperty(exports, "finishEntityExtraction", {
|
|
17968
17965
|
enumerable: true,
|
|
17969
|
-
get: function () { return
|
|
17966
|
+
get: function () { return chunkNK5KFHXP_cjs.finishEntityExtraction; }
|
|
17967
|
+
});
|
|
17968
|
+
Object.defineProperty(exports, "flushDocumentForTurn", {
|
|
17969
|
+
enumerable: true,
|
|
17970
|
+
get: function () { return chunkNK5KFHXP_cjs.flushDocumentForTurn; }
|
|
17970
17971
|
});
|
|
17971
17972
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
17972
17973
|
enumerable: true,
|
|
17973
|
-
get: function () { return
|
|
17974
|
+
get: function () { return chunkNK5KFHXP_cjs.forgetDocuments; }
|
|
17974
17975
|
});
|
|
17975
17976
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
17976
17977
|
enumerable: true,
|
|
17977
|
-
get: function () { return
|
|
17978
|
+
get: function () { return chunkNK5KFHXP_cjs.getCachedDocuments; }
|
|
17978
17979
|
});
|
|
17979
17980
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
17980
17981
|
enumerable: true,
|
|
17981
|
-
get: function () { return
|
|
17982
|
+
get: function () { return chunkNK5KFHXP_cjs.invalidateTagData; }
|
|
17982
17983
|
});
|
|
17983
17984
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
17984
17985
|
enumerable: true,
|
|
17985
|
-
get: function () { return
|
|
17986
|
+
get: function () { return chunkNK5KFHXP_cjs.invalidateTagTables; }
|
|
17986
17987
|
});
|
|
17987
17988
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
17988
17989
|
enumerable: true,
|
|
17989
|
-
get: function () { return
|
|
17990
|
+
get: function () { return chunkNK5KFHXP_cjs.isDocumentsLoading; }
|
|
17990
17991
|
});
|
|
17991
17992
|
Object.defineProperty(exports, "isRowNewer", {
|
|
17992
17993
|
enumerable: true,
|
|
17993
|
-
get: function () { return
|
|
17994
|
+
get: function () { return chunkNK5KFHXP_cjs.isRowNewer; }
|
|
17994
17995
|
});
|
|
17995
17996
|
Object.defineProperty(exports, "isStaleTaskUpdate", {
|
|
17996
17997
|
enumerable: true,
|
|
17997
|
-
get: function () { return
|
|
17998
|
+
get: function () { return chunkNK5KFHXP_cjs.isStaleTaskUpdate; }
|
|
17998
17999
|
});
|
|
17999
18000
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
18000
18001
|
enumerable: true,
|
|
18001
|
-
get: function () { return
|
|
18002
|
+
get: function () { return chunkNK5KFHXP_cjs.patchCachedDocument; }
|
|
18002
18003
|
});
|
|
18003
18004
|
Object.defineProperty(exports, "patchDocuments", {
|
|
18004
18005
|
enumerable: true,
|
|
18005
|
-
get: function () { return
|
|
18006
|
+
get: function () { return chunkNK5KFHXP_cjs.patchDocuments; }
|
|
18006
18007
|
});
|
|
18007
18008
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
18008
18009
|
enumerable: true,
|
|
18009
|
-
get: function () { return
|
|
18010
|
+
get: function () { return chunkNK5KFHXP_cjs.patchWorkspaceTags; }
|
|
18010
18011
|
});
|
|
18011
18012
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
18012
18013
|
enumerable: true,
|
|
18013
|
-
get: function () { return
|
|
18014
|
+
get: function () { return chunkNK5KFHXP_cjs.refreshDocuments; }
|
|
18015
|
+
});
|
|
18016
|
+
Object.defineProperty(exports, "registerDocumentTurnFlush", {
|
|
18017
|
+
enumerable: true,
|
|
18018
|
+
get: function () { return chunkNK5KFHXP_cjs.registerDocumentTurnFlush; }
|
|
18014
18019
|
});
|
|
18015
18020
|
Object.defineProperty(exports, "resolveDocumentStatus", {
|
|
18016
18021
|
enumerable: true,
|
|
18017
|
-
get: function () { return
|
|
18022
|
+
get: function () { return chunkNK5KFHXP_cjs.resolveDocumentStatus; }
|
|
18018
18023
|
});
|
|
18019
18024
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
18020
18025
|
enumerable: true,
|
|
18021
|
-
get: function () { return
|
|
18026
|
+
get: function () { return chunkNK5KFHXP_cjs.setCachedDocument; }
|
|
18022
18027
|
});
|
|
18023
18028
|
Object.defineProperty(exports, "settledByRows", {
|
|
18024
18029
|
enumerable: true,
|
|
18025
|
-
get: function () { return
|
|
18030
|
+
get: function () { return chunkNK5KFHXP_cjs.settledByRows; }
|
|
18026
18031
|
});
|
|
18027
18032
|
Object.defineProperty(exports, "startEntityExtraction", {
|
|
18028
18033
|
enumerable: true,
|
|
18029
|
-
get: function () { return
|
|
18034
|
+
get: function () { return chunkNK5KFHXP_cjs.startEntityExtraction; }
|
|
18030
18035
|
});
|
|
18031
18036
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
18032
18037
|
enumerable: true,
|
|
18033
|
-
get: function () { return
|
|
18038
|
+
get: function () { return chunkNK5KFHXP_cjs.stopDocumentsLoading; }
|
|
18034
18039
|
});
|
|
18035
18040
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
18036
18041
|
enumerable: true,
|
|
18037
|
-
get: function () { return
|
|
18042
|
+
get: function () { return chunkNK5KFHXP_cjs.subscribeDocumentRows; }
|
|
18038
18043
|
});
|
|
18039
18044
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
18040
18045
|
enumerable: true,
|
|
18041
|
-
get: function () { return
|
|
18046
|
+
get: function () { return chunkNK5KFHXP_cjs.upsertDocuments; }
|
|
18042
18047
|
});
|
|
18043
18048
|
Object.defineProperty(exports, "useArbiWsStore", {
|
|
18044
18049
|
enumerable: true,
|
|
18045
|
-
get: function () { return
|
|
18050
|
+
get: function () { return chunkNK5KFHXP_cjs.useArbiWsStore; }
|
|
18046
18051
|
});
|
|
18047
18052
|
Object.defineProperty(exports, "useCreateTag", {
|
|
18048
18053
|
enumerable: true,
|
|
18049
|
-
get: function () { return
|
|
18054
|
+
get: function () { return chunkNK5KFHXP_cjs.useCreateTag; }
|
|
18050
18055
|
});
|
|
18051
18056
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
18052
18057
|
enumerable: true,
|
|
18053
|
-
get: function () { return
|
|
18058
|
+
get: function () { return chunkNK5KFHXP_cjs.useDeleteTag; }
|
|
18054
18059
|
});
|
|
18055
18060
|
Object.defineProperty(exports, "useDocument", {
|
|
18056
18061
|
enumerable: true,
|
|
18057
|
-
get: function () { return
|
|
18062
|
+
get: function () { return chunkNK5KFHXP_cjs.useDocument; }
|
|
18058
18063
|
});
|
|
18059
18064
|
Object.defineProperty(exports, "useDocuments", {
|
|
18060
18065
|
enumerable: true,
|
|
18061
|
-
get: function () { return
|
|
18066
|
+
get: function () { return chunkNK5KFHXP_cjs.useDocuments; }
|
|
18062
18067
|
});
|
|
18063
18068
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
18064
18069
|
enumerable: true,
|
|
18065
|
-
get: function () { return
|
|
18070
|
+
get: function () { return chunkNK5KFHXP_cjs.useDocumentsLoading; }
|
|
18066
18071
|
});
|
|
18067
18072
|
Object.defineProperty(exports, "useEntityExtractionDocIds", {
|
|
18068
18073
|
enumerable: true,
|
|
18069
|
-
get: function () { return
|
|
18074
|
+
get: function () { return chunkNK5KFHXP_cjs.useEntityExtractionDocIds; }
|
|
18070
18075
|
});
|
|
18071
18076
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
18072
18077
|
enumerable: true,
|
|
18073
|
-
get: function () { return
|
|
18078
|
+
get: function () { return chunkNK5KFHXP_cjs.useExtractEntities; }
|
|
18074
18079
|
});
|
|
18075
18080
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
18076
18081
|
enumerable: true,
|
|
18077
|
-
get: function () { return
|
|
18082
|
+
get: function () { return chunkNK5KFHXP_cjs.useInvalidateTagData; }
|
|
18078
18083
|
});
|
|
18079
18084
|
Object.defineProperty(exports, "useIsCreatingTag", {
|
|
18080
18085
|
enumerable: true,
|
|
18081
|
-
get: function () { return
|
|
18086
|
+
get: function () { return chunkNK5KFHXP_cjs.useIsCreatingTag; }
|
|
18082
18087
|
});
|
|
18083
18088
|
Object.defineProperty(exports, "useRefreshDocuments", {
|
|
18084
18089
|
enumerable: true,
|
|
18085
|
-
get: function () { return
|
|
18090
|
+
get: function () { return chunkNK5KFHXP_cjs.useRefreshDocuments; }
|
|
18086
18091
|
});
|
|
18087
18092
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
18088
18093
|
enumerable: true,
|
|
18089
|
-
get: function () { return
|
|
18094
|
+
get: function () { return chunkNK5KFHXP_cjs.useSetTagValues; }
|
|
18090
18095
|
});
|
|
18091
18096
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
18092
18097
|
enumerable: true,
|
|
18093
|
-
get: function () { return
|
|
18098
|
+
get: function () { return chunkNK5KFHXP_cjs.useSimilarDocuments; }
|
|
18094
18099
|
});
|
|
18095
18100
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
18096
18101
|
enumerable: true,
|
|
18097
|
-
get: function () { return
|
|
18102
|
+
get: function () { return chunkNK5KFHXP_cjs.useTagKindSchema; }
|
|
18098
18103
|
});
|
|
18099
18104
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
18100
18105
|
enumerable: true,
|
|
18101
|
-
get: function () { return
|
|
18106
|
+
get: function () { return chunkNK5KFHXP_cjs.useUpdateTag; }
|
|
18102
18107
|
});
|
|
18103
18108
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
18104
18109
|
enumerable: true,
|
|
18105
|
-
get: function () { return
|
|
18110
|
+
get: function () { return chunkNK5KFHXP_cjs.useUpdateTagKindSchema; }
|
|
18106
18111
|
});
|
|
18107
18112
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
18108
18113
|
enumerable: true,
|
|
18109
|
-
get: function () { return
|
|
18114
|
+
get: function () { return chunkH3XHBIZ6_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
|
|
18110
18115
|
});
|
|
18111
18116
|
Object.defineProperty(exports, "DOCUMENT_VIEWER_PANEL", {
|
|
18112
18117
|
enumerable: true,
|
|
18113
|
-
get: function () { return
|
|
18118
|
+
get: function () { return chunkH3XHBIZ6_cjs.DOCUMENT_VIEWER_PANEL; }
|
|
18114
18119
|
});
|
|
18115
18120
|
Object.defineProperty(exports, "EMPTY_CHAT_STATE", {
|
|
18116
18121
|
enumerable: true,
|
|
18117
|
-
get: function () { return
|
|
18122
|
+
get: function () { return chunkH3XHBIZ6_cjs.EMPTY_CHAT_STATE; }
|
|
18118
18123
|
});
|
|
18119
18124
|
Object.defineProperty(exports, "EMPTY_DOCUMENT_STATE", {
|
|
18120
18125
|
enumerable: true,
|
|
18121
|
-
get: function () { return
|
|
18126
|
+
get: function () { return chunkH3XHBIZ6_cjs.EMPTY_DOCUMENT_STATE; }
|
|
18122
18127
|
});
|
|
18123
18128
|
Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
|
|
18124
18129
|
enumerable: true,
|
|
18125
|
-
get: function () { return
|
|
18130
|
+
get: function () { return chunkH3XHBIZ6_cjs.EMPTY_SESSION_STATE; }
|
|
18126
18131
|
});
|
|
18127
18132
|
Object.defineProperty(exports, "MAX_THREAD_TABS", {
|
|
18128
18133
|
enumerable: true,
|
|
18129
|
-
get: function () { return
|
|
18134
|
+
get: function () { return chunkH3XHBIZ6_cjs.MAX_THREAD_TABS; }
|
|
18130
18135
|
});
|
|
18131
18136
|
Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
|
|
18132
18137
|
enumerable: true,
|
|
18133
|
-
get: function () { return
|
|
18138
|
+
get: function () { return chunkH3XHBIZ6_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
|
|
18134
18139
|
});
|
|
18135
18140
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
18136
18141
|
enumerable: true,
|
|
18137
|
-
get: function () { return
|
|
18142
|
+
get: function () { return chunkH3XHBIZ6_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
18138
18143
|
});
|
|
18139
18144
|
Object.defineProperty(exports, "WORKSPACE_LAST_OPENED_KEY", {
|
|
18140
18145
|
enumerable: true,
|
|
18141
|
-
get: function () { return
|
|
18146
|
+
get: function () { return chunkH3XHBIZ6_cjs.WORKSPACE_LAST_OPENED_KEY; }
|
|
18142
18147
|
});
|
|
18143
18148
|
Object.defineProperty(exports, "WORKSPACE_STORAGE_KEY", {
|
|
18144
18149
|
enumerable: true,
|
|
18145
|
-
get: function () { return
|
|
18150
|
+
get: function () { return chunkH3XHBIZ6_cjs.WORKSPACE_STORAGE_KEY; }
|
|
18146
18151
|
});
|
|
18147
18152
|
Object.defineProperty(exports, "agentControl", {
|
|
18148
18153
|
enumerable: true,
|
|
18149
|
-
get: function () { return
|
|
18154
|
+
get: function () { return chunkH3XHBIZ6_cjs.agentControl; }
|
|
18150
18155
|
});
|
|
18151
18156
|
Object.defineProperty(exports, "browserWorkspaceStorage", {
|
|
18152
18157
|
enumerable: true,
|
|
18153
|
-
get: function () { return
|
|
18158
|
+
get: function () { return chunkH3XHBIZ6_cjs.browserWorkspaceStorage; }
|
|
18154
18159
|
});
|
|
18155
18160
|
Object.defineProperty(exports, "clearSealedDrafts", {
|
|
18156
18161
|
enumerable: true,
|
|
18157
|
-
get: function () { return
|
|
18162
|
+
get: function () { return chunkH3XHBIZ6_cjs.clearSealedDrafts; }
|
|
18158
18163
|
});
|
|
18159
18164
|
Object.defineProperty(exports, "closePanelIn", {
|
|
18160
18165
|
enumerable: true,
|
|
18161
|
-
get: function () { return
|
|
18166
|
+
get: function () { return chunkH3XHBIZ6_cjs.closePanelIn; }
|
|
18162
18167
|
});
|
|
18163
18168
|
Object.defineProperty(exports, "composeArbiSessionStore", {
|
|
18164
18169
|
enumerable: true,
|
|
18165
|
-
get: function () { return
|
|
18170
|
+
get: function () { return chunkH3XHBIZ6_cjs.composeArbiSessionStore; }
|
|
18166
18171
|
});
|
|
18167
18172
|
Object.defineProperty(exports, "conversationKey", {
|
|
18168
18173
|
enumerable: true,
|
|
18169
|
-
get: function () { return
|
|
18174
|
+
get: function () { return chunkH3XHBIZ6_cjs.conversationKey; }
|
|
18170
18175
|
});
|
|
18171
18176
|
Object.defineProperty(exports, "createArbiChatStore", {
|
|
18172
18177
|
enumerable: true,
|
|
18173
|
-
get: function () { return
|
|
18178
|
+
get: function () { return chunkH3XHBIZ6_cjs.createArbiChatStore; }
|
|
18174
18179
|
});
|
|
18175
18180
|
Object.defineProperty(exports, "createArbiDocumentSessionStore", {
|
|
18176
18181
|
enumerable: true,
|
|
18177
|
-
get: function () { return
|
|
18182
|
+
get: function () { return chunkH3XHBIZ6_cjs.createArbiDocumentSessionStore; }
|
|
18178
18183
|
});
|
|
18179
18184
|
Object.defineProperty(exports, "createArbiLayoutStore", {
|
|
18180
18185
|
enumerable: true,
|
|
18181
|
-
get: function () { return
|
|
18186
|
+
get: function () { return chunkH3XHBIZ6_cjs.createArbiLayoutStore; }
|
|
18182
18187
|
});
|
|
18183
18188
|
Object.defineProperty(exports, "createArbiSessionStore", {
|
|
18184
18189
|
enumerable: true,
|
|
18185
|
-
get: function () { return
|
|
18190
|
+
get: function () { return chunkH3XHBIZ6_cjs.createArbiSessionStore; }
|
|
18186
18191
|
});
|
|
18187
18192
|
Object.defineProperty(exports, "createArbiWorkspaceStore", {
|
|
18188
18193
|
enumerable: true,
|
|
18189
|
-
get: function () { return
|
|
18194
|
+
get: function () { return chunkH3XHBIZ6_cjs.createArbiWorkspaceStore; }
|
|
18190
18195
|
});
|
|
18191
18196
|
Object.defineProperty(exports, "createDebouncedWriter", {
|
|
18192
18197
|
enumerable: true,
|
|
18193
|
-
get: function () { return
|
|
18198
|
+
get: function () { return chunkH3XHBIZ6_cjs.createDebouncedWriter; }
|
|
18194
18199
|
});
|
|
18195
18200
|
Object.defineProperty(exports, "createSealedDraftStorage", {
|
|
18196
18201
|
enumerable: true,
|
|
18197
|
-
get: function () { return
|
|
18202
|
+
get: function () { return chunkH3XHBIZ6_cjs.createSealedDraftStorage; }
|
|
18198
18203
|
});
|
|
18199
18204
|
Object.defineProperty(exports, "createStoragePersist", {
|
|
18200
18205
|
enumerable: true,
|
|
18201
|
-
get: function () { return
|
|
18206
|
+
get: function () { return chunkH3XHBIZ6_cjs.createStoragePersist; }
|
|
18202
18207
|
});
|
|
18203
18208
|
Object.defineProperty(exports, "createUiStateStorage", {
|
|
18204
18209
|
enumerable: true,
|
|
18205
|
-
get: function () { return
|
|
18210
|
+
get: function () { return chunkH3XHBIZ6_cjs.createUiStateStorage; }
|
|
18206
18211
|
});
|
|
18207
18212
|
Object.defineProperty(exports, "defaultLayoutState", {
|
|
18208
18213
|
enumerable: true,
|
|
18209
|
-
get: function () { return
|
|
18214
|
+
get: function () { return chunkH3XHBIZ6_cjs.defaultLayoutState; }
|
|
18210
18215
|
});
|
|
18211
18216
|
Object.defineProperty(exports, "dmTabId", {
|
|
18212
18217
|
enumerable: true,
|
|
18213
|
-
get: function () { return
|
|
18218
|
+
get: function () { return chunkH3XHBIZ6_cjs.dmTabId; }
|
|
18214
18219
|
});
|
|
18215
18220
|
Object.defineProperty(exports, "flushOnPageExit", {
|
|
18216
18221
|
enumerable: true,
|
|
18217
|
-
get: function () { return
|
|
18222
|
+
get: function () { return chunkH3XHBIZ6_cjs.flushOnPageExit; }
|
|
18218
18223
|
});
|
|
18219
18224
|
Object.defineProperty(exports, "isPanelOpen", {
|
|
18220
18225
|
enumerable: true,
|
|
18221
|
-
get: function () { return
|
|
18226
|
+
get: function () { return chunkH3XHBIZ6_cjs.isPanelOpen; }
|
|
18222
18227
|
});
|
|
18223
18228
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
18224
18229
|
enumerable: true,
|
|
18225
|
-
get: function () { return
|
|
18230
|
+
get: function () { return chunkH3XHBIZ6_cjs.isUsageMetered; }
|
|
18226
18231
|
});
|
|
18227
18232
|
Object.defineProperty(exports, "layoutActionsOf", {
|
|
18228
18233
|
enumerable: true,
|
|
18229
|
-
get: function () { return
|
|
18234
|
+
get: function () { return chunkH3XHBIZ6_cjs.layoutActionsOf; }
|
|
18230
18235
|
});
|
|
18231
18236
|
Object.defineProperty(exports, "nextViewingDocument", {
|
|
18232
18237
|
enumerable: true,
|
|
18233
|
-
get: function () { return
|
|
18238
|
+
get: function () { return chunkH3XHBIZ6_cjs.nextViewingDocument; }
|
|
18234
18239
|
});
|
|
18235
18240
|
Object.defineProperty(exports, "openPanelIn", {
|
|
18236
18241
|
enumerable: true,
|
|
18237
|
-
get: function () { return
|
|
18242
|
+
get: function () { return chunkH3XHBIZ6_cjs.openPanelIn; }
|
|
18238
18243
|
});
|
|
18239
18244
|
Object.defineProperty(exports, "panelPlace", {
|
|
18240
18245
|
enumerable: true,
|
|
18241
|
-
get: function () { return
|
|
18246
|
+
get: function () { return chunkH3XHBIZ6_cjs.panelPlace; }
|
|
18242
18247
|
});
|
|
18243
18248
|
Object.defineProperty(exports, "parseSavedChat", {
|
|
18244
18249
|
enumerable: true,
|
|
18245
|
-
get: function () { return
|
|
18250
|
+
get: function () { return chunkH3XHBIZ6_cjs.parseSavedChat; }
|
|
18246
18251
|
});
|
|
18247
18252
|
Object.defineProperty(exports, "parseSavedDocuments", {
|
|
18248
18253
|
enumerable: true,
|
|
18249
|
-
get: function () { return
|
|
18254
|
+
get: function () { return chunkH3XHBIZ6_cjs.parseSavedDocuments; }
|
|
18250
18255
|
});
|
|
18251
18256
|
Object.defineProperty(exports, "parseSavedLayout", {
|
|
18252
18257
|
enumerable: true,
|
|
18253
|
-
get: function () { return
|
|
18258
|
+
get: function () { return chunkH3XHBIZ6_cjs.parseSavedLayout; }
|
|
18254
18259
|
});
|
|
18255
18260
|
Object.defineProperty(exports, "queuedMessages", {
|
|
18256
18261
|
enumerable: true,
|
|
18257
|
-
get: function () { return
|
|
18262
|
+
get: function () { return chunkH3XHBIZ6_cjs.queuedMessages; }
|
|
18258
18263
|
});
|
|
18259
18264
|
Object.defineProperty(exports, "readWorkspaceLastOpened", {
|
|
18260
18265
|
enumerable: true,
|
|
18261
|
-
get: function () { return
|
|
18266
|
+
get: function () { return chunkH3XHBIZ6_cjs.readWorkspaceLastOpened; }
|
|
18262
18267
|
});
|
|
18263
18268
|
Object.defineProperty(exports, "restoreLayout", {
|
|
18264
18269
|
enumerable: true,
|
|
18265
|
-
get: function () { return
|
|
18270
|
+
get: function () { return chunkH3XHBIZ6_cjs.restoreLayout; }
|
|
18266
18271
|
});
|
|
18267
18272
|
Object.defineProperty(exports, "restoreSavedDocuments", {
|
|
18268
18273
|
enumerable: true,
|
|
18269
|
-
get: function () { return
|
|
18274
|
+
get: function () { return chunkH3XHBIZ6_cjs.restoreSavedDocuments; }
|
|
18270
18275
|
});
|
|
18271
18276
|
Object.defineProperty(exports, "savedChatOf", {
|
|
18272
18277
|
enumerable: true,
|
|
18273
|
-
get: function () { return
|
|
18278
|
+
get: function () { return chunkH3XHBIZ6_cjs.savedChatOf; }
|
|
18274
18279
|
});
|
|
18275
18280
|
Object.defineProperty(exports, "savedDocumentsOf", {
|
|
18276
18281
|
enumerable: true,
|
|
18277
|
-
get: function () { return
|
|
18282
|
+
get: function () { return chunkH3XHBIZ6_cjs.savedDocumentsOf; }
|
|
18278
18283
|
});
|
|
18279
18284
|
Object.defineProperty(exports, "savedLayoutOf", {
|
|
18280
18285
|
enumerable: true,
|
|
18281
|
-
get: function () { return
|
|
18286
|
+
get: function () { return chunkH3XHBIZ6_cjs.savedLayoutOf; }
|
|
18282
18287
|
});
|
|
18283
18288
|
Object.defineProperty(exports, "selectDraft", {
|
|
18284
18289
|
enumerable: true,
|
|
18285
|
-
get: function () { return
|
|
18290
|
+
get: function () { return chunkH3XHBIZ6_cjs.selectDraft; }
|
|
18286
18291
|
});
|
|
18287
18292
|
Object.defineProperty(exports, "selectIsGenerating", {
|
|
18288
18293
|
enumerable: true,
|
|
18289
|
-
get: function () { return
|
|
18294
|
+
get: function () { return chunkH3XHBIZ6_cjs.selectIsGenerating; }
|
|
18290
18295
|
});
|
|
18291
18296
|
Object.defineProperty(exports, "selectViewingDocumentId", {
|
|
18292
18297
|
enumerable: true,
|
|
18293
|
-
get: function () { return
|
|
18298
|
+
get: function () { return chunkH3XHBIZ6_cjs.selectViewingDocumentId; }
|
|
18294
18299
|
});
|
|
18295
18300
|
Object.defineProperty(exports, "threadTabId", {
|
|
18296
18301
|
enumerable: true,
|
|
18297
|
-
get: function () { return
|
|
18302
|
+
get: function () { return chunkH3XHBIZ6_cjs.threadTabId; }
|
|
18298
18303
|
});
|
|
18299
18304
|
Object.defineProperty(exports, "useActivity", {
|
|
18300
18305
|
enumerable: true,
|
|
18301
|
-
get: function () { return
|
|
18306
|
+
get: function () { return chunkH3XHBIZ6_cjs.useActivity; }
|
|
18302
18307
|
});
|
|
18303
18308
|
Object.defineProperty(exports, "useAgents", {
|
|
18304
18309
|
enumerable: true,
|
|
18305
|
-
get: function () { return
|
|
18310
|
+
get: function () { return chunkH3XHBIZ6_cjs.useAgents; }
|
|
18306
18311
|
});
|
|
18307
18312
|
Object.defineProperty(exports, "useArbiSession", {
|
|
18308
18313
|
enumerable: true,
|
|
18309
|
-
get: function () { return
|
|
18314
|
+
get: function () { return chunkH3XHBIZ6_cjs.useArbiSession; }
|
|
18310
18315
|
});
|
|
18311
18316
|
Object.defineProperty(exports, "useArbiSessionState", {
|
|
18312
18317
|
enumerable: true,
|
|
18313
|
-
get: function () { return
|
|
18318
|
+
get: function () { return chunkH3XHBIZ6_cjs.useArbiSessionState; }
|
|
18314
18319
|
});
|
|
18315
18320
|
Object.defineProperty(exports, "useArbiSessionStore", {
|
|
18316
18321
|
enumerable: true,
|
|
18317
|
-
get: function () { return
|
|
18322
|
+
get: function () { return chunkH3XHBIZ6_cjs.useArbiSessionStore; }
|
|
18318
18323
|
});
|
|
18319
18324
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
18320
18325
|
enumerable: true,
|
|
18321
|
-
get: function () { return
|
|
18326
|
+
get: function () { return chunkH3XHBIZ6_cjs.useAssistantQuery; }
|
|
18322
18327
|
});
|
|
18323
18328
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
18324
18329
|
enumerable: true,
|
|
18325
|
-
get: function () { return
|
|
18330
|
+
get: function () { return chunkH3XHBIZ6_cjs.useAvailableModels; }
|
|
18326
18331
|
});
|
|
18327
18332
|
Object.defineProperty(exports, "useBoxRole", {
|
|
18328
18333
|
enumerable: true,
|
|
18329
|
-
get: function () { return
|
|
18334
|
+
get: function () { return chunkH3XHBIZ6_cjs.useBoxRole; }
|
|
18330
18335
|
});
|
|
18331
18336
|
Object.defineProperty(exports, "useBuiltinCommands", {
|
|
18332
18337
|
enumerable: true,
|
|
18333
|
-
get: function () { return
|
|
18338
|
+
get: function () { return chunkH3XHBIZ6_cjs.useBuiltinCommands; }
|
|
18334
18339
|
});
|
|
18335
18340
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
18336
18341
|
enumerable: true,
|
|
18337
|
-
get: function () { return
|
|
18342
|
+
get: function () { return chunkH3XHBIZ6_cjs.useCanCreateProjects; }
|
|
18338
18343
|
});
|
|
18339
18344
|
Object.defineProperty(exports, "useConfig", {
|
|
18340
18345
|
enumerable: true,
|
|
18341
|
-
get: function () { return
|
|
18346
|
+
get: function () { return chunkH3XHBIZ6_cjs.useConfig; }
|
|
18342
18347
|
});
|
|
18343
18348
|
Object.defineProperty(exports, "useConfigs", {
|
|
18344
18349
|
enumerable: true,
|
|
18345
|
-
get: function () { return
|
|
18350
|
+
get: function () { return chunkH3XHBIZ6_cjs.useConfigs; }
|
|
18346
18351
|
});
|
|
18347
18352
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
18348
18353
|
enumerable: true,
|
|
18349
|
-
get: function () { return
|
|
18354
|
+
get: function () { return chunkH3XHBIZ6_cjs.useConversationThreads; }
|
|
18350
18355
|
});
|
|
18351
18356
|
Object.defineProperty(exports, "useConversations", {
|
|
18352
18357
|
enumerable: true,
|
|
18353
|
-
get: function () { return
|
|
18358
|
+
get: function () { return chunkH3XHBIZ6_cjs.useConversations; }
|
|
18354
18359
|
});
|
|
18355
18360
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
18356
18361
|
enumerable: true,
|
|
18357
|
-
get: function () { return
|
|
18362
|
+
get: function () { return chunkH3XHBIZ6_cjs.useCurrentUser; }
|
|
18358
18363
|
});
|
|
18359
18364
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
18360
18365
|
enumerable: true,
|
|
18361
|
-
get: function () { return
|
|
18366
|
+
get: function () { return chunkH3XHBIZ6_cjs.useDeleteAgents; }
|
|
18362
18367
|
});
|
|
18363
18368
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
18364
18369
|
enumerable: true,
|
|
18365
|
-
get: function () { return
|
|
18370
|
+
get: function () { return chunkH3XHBIZ6_cjs.useDocumentVersionList; }
|
|
18366
18371
|
});
|
|
18367
18372
|
Object.defineProperty(exports, "useHealth", {
|
|
18368
18373
|
enumerable: true,
|
|
18369
|
-
get: function () { return
|
|
18374
|
+
get: function () { return chunkH3XHBIZ6_cjs.useHealth; }
|
|
18370
18375
|
});
|
|
18371
18376
|
Object.defineProperty(exports, "useMessageDetails", {
|
|
18372
18377
|
enumerable: true,
|
|
18373
|
-
get: function () { return
|
|
18378
|
+
get: function () { return chunkH3XHBIZ6_cjs.useMessageDetails; }
|
|
18374
18379
|
});
|
|
18375
18380
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
18376
18381
|
enumerable: true,
|
|
18377
|
-
get: function () { return
|
|
18382
|
+
get: function () { return chunkH3XHBIZ6_cjs.useParsedDocument; }
|
|
18378
18383
|
});
|
|
18379
18384
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
18380
18385
|
enumerable: true,
|
|
18381
|
-
get: function () { return
|
|
18386
|
+
get: function () { return chunkH3XHBIZ6_cjs.useProjectInvoices; }
|
|
18382
18387
|
});
|
|
18383
18388
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
18384
18389
|
enumerable: true,
|
|
18385
|
-
get: function () { return
|
|
18390
|
+
get: function () { return chunkH3XHBIZ6_cjs.useProjectUsage; }
|
|
18386
18391
|
});
|
|
18387
18392
|
Object.defineProperty(exports, "useProjects", {
|
|
18388
18393
|
enumerable: true,
|
|
18389
|
-
get: function () { return
|
|
18394
|
+
get: function () { return chunkH3XHBIZ6_cjs.useProjects; }
|
|
18390
18395
|
});
|
|
18391
18396
|
Object.defineProperty(exports, "useSessionPageTab", {
|
|
18392
18397
|
enumerable: true,
|
|
18393
|
-
get: function () { return
|
|
18398
|
+
get: function () { return chunkH3XHBIZ6_cjs.useSessionPageTab; }
|
|
18394
18399
|
});
|
|
18395
18400
|
Object.defineProperty(exports, "useSessionView", {
|
|
18396
18401
|
enumerable: true,
|
|
18397
|
-
get: function () { return
|
|
18402
|
+
get: function () { return chunkH3XHBIZ6_cjs.useSessionView; }
|
|
18398
18403
|
});
|
|
18399
18404
|
Object.defineProperty(exports, "useSignedInSession", {
|
|
18400
18405
|
enumerable: true,
|
|
18401
|
-
get: function () { return
|
|
18406
|
+
get: function () { return chunkH3XHBIZ6_cjs.useSignedInSession; }
|
|
18402
18407
|
});
|
|
18403
18408
|
Object.defineProperty(exports, "useTags", {
|
|
18404
18409
|
enumerable: true,
|
|
18405
|
-
get: function () { return
|
|
18410
|
+
get: function () { return chunkH3XHBIZ6_cjs.useTags; }
|
|
18406
18411
|
});
|
|
18407
18412
|
Object.defineProperty(exports, "useThumbnails", {
|
|
18408
18413
|
enumerable: true,
|
|
18409
|
-
get: function () { return
|
|
18414
|
+
get: function () { return chunkH3XHBIZ6_cjs.useThumbnails; }
|
|
18410
18415
|
});
|
|
18411
18416
|
Object.defineProperty(exports, "useTransientView", {
|
|
18412
18417
|
enumerable: true,
|
|
18413
|
-
get: function () { return
|
|
18418
|
+
get: function () { return chunkH3XHBIZ6_cjs.useTransientView; }
|
|
18414
18419
|
});
|
|
18415
18420
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
18416
18421
|
enumerable: true,
|
|
18417
|
-
get: function () { return
|
|
18422
|
+
get: function () { return chunkH3XHBIZ6_cjs.useUserUsageToday; }
|
|
18418
18423
|
});
|
|
18419
18424
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
18420
18425
|
enumerable: true,
|
|
18421
|
-
get: function () { return
|
|
18426
|
+
get: function () { return chunkH3XHBIZ6_cjs.useWorkspaceActivity; }
|
|
18422
18427
|
});
|
|
18423
18428
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
18424
18429
|
enumerable: true,
|
|
18425
|
-
get: function () { return
|
|
18430
|
+
get: function () { return chunkH3XHBIZ6_cjs.useWorkspaces; }
|
|
18426
18431
|
});
|
|
18427
18432
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
18428
18433
|
enumerable: true,
|
|
@@ -18466,143 +18471,143 @@ Object.defineProperty(exports, "useDeploymentDomain", {
|
|
|
18466
18471
|
});
|
|
18467
18472
|
Object.defineProperty(exports, "DEFAULT_ASSISTANT_NAME", {
|
|
18468
18473
|
enumerable: true,
|
|
18469
|
-
get: function () { return
|
|
18474
|
+
get: function () { return chunk6RRKO4ZK_cjs.DEFAULT_ASSISTANT_NAME; }
|
|
18470
18475
|
});
|
|
18471
18476
|
Object.defineProperty(exports, "LEGACY_THREAD_DOCUMENTS_KEY", {
|
|
18472
18477
|
enumerable: true,
|
|
18473
|
-
get: function () { return
|
|
18478
|
+
get: function () { return chunk6RRKO4ZK_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
|
|
18474
18479
|
});
|
|
18475
18480
|
Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
|
|
18476
18481
|
enumerable: true,
|
|
18477
|
-
get: function () { return
|
|
18482
|
+
get: function () { return chunk6RRKO4ZK_cjs.MENTION_HREF_PREFIX; }
|
|
18478
18483
|
});
|
|
18479
18484
|
Object.defineProperty(exports, "NotificationBell", {
|
|
18480
18485
|
enumerable: true,
|
|
18481
|
-
get: function () { return
|
|
18486
|
+
get: function () { return chunk6RRKO4ZK_cjs.NotificationBell; }
|
|
18482
18487
|
});
|
|
18483
18488
|
Object.defineProperty(exports, "Toaster", {
|
|
18484
18489
|
enumerable: true,
|
|
18485
|
-
get: function () { return
|
|
18490
|
+
get: function () { return chunk6RRKO4ZK_cjs.Toaster; }
|
|
18486
18491
|
});
|
|
18487
18492
|
Object.defineProperty(exports, "UNBOUND", {
|
|
18488
18493
|
enumerable: true,
|
|
18489
|
-
get: function () { return
|
|
18494
|
+
get: function () { return chunk6RRKO4ZK_cjs.UNBOUND; }
|
|
18490
18495
|
});
|
|
18491
18496
|
Object.defineProperty(exports, "assistantCopy", {
|
|
18492
18497
|
enumerable: true,
|
|
18493
|
-
get: function () { return
|
|
18498
|
+
get: function () { return chunk6RRKO4ZK_cjs.assistantCopy; }
|
|
18494
18499
|
});
|
|
18495
18500
|
Object.defineProperty(exports, "bindingOfRow", {
|
|
18496
18501
|
enumerable: true,
|
|
18497
|
-
get: function () { return
|
|
18502
|
+
get: function () { return chunk6RRKO4ZK_cjs.bindingOfRow; }
|
|
18498
18503
|
});
|
|
18499
18504
|
Object.defineProperty(exports, "clearSearchSession", {
|
|
18500
18505
|
enumerable: true,
|
|
18501
|
-
get: function () { return
|
|
18506
|
+
get: function () { return chunk6RRKO4ZK_cjs.clearSearchSession; }
|
|
18502
18507
|
});
|
|
18503
18508
|
Object.defineProperty(exports, "createSearchSession", {
|
|
18504
18509
|
enumerable: true,
|
|
18505
|
-
get: function () { return
|
|
18510
|
+
get: function () { return chunk6RRKO4ZK_cjs.createSearchSession; }
|
|
18506
18511
|
});
|
|
18507
18512
|
Object.defineProperty(exports, "extractMentions", {
|
|
18508
18513
|
enumerable: true,
|
|
18509
|
-
get: function () { return
|
|
18514
|
+
get: function () { return chunk6RRKO4ZK_cjs.extractMentions; }
|
|
18510
18515
|
});
|
|
18511
18516
|
Object.defineProperty(exports, "filterMentionCandidates", {
|
|
18512
18517
|
enumerable: true,
|
|
18513
|
-
get: function () { return
|
|
18518
|
+
get: function () { return chunk6RRKO4ZK_cjs.filterMentionCandidates; }
|
|
18514
18519
|
});
|
|
18515
18520
|
Object.defineProperty(exports, "findMentionQuery", {
|
|
18516
18521
|
enumerable: true,
|
|
18517
|
-
get: function () { return
|
|
18522
|
+
get: function () { return chunk6RRKO4ZK_cjs.findMentionQuery; }
|
|
18518
18523
|
});
|
|
18519
18524
|
Object.defineProperty(exports, "forgetLegacyThreadDocuments", {
|
|
18520
18525
|
enumerable: true,
|
|
18521
|
-
get: function () { return
|
|
18526
|
+
get: function () { return chunk6RRKO4ZK_cjs.forgetLegacyThreadDocuments; }
|
|
18522
18527
|
});
|
|
18523
18528
|
Object.defineProperty(exports, "hasMessageBody", {
|
|
18524
18529
|
enumerable: true,
|
|
18525
|
-
get: function () { return
|
|
18530
|
+
get: function () { return chunk6RRKO4ZK_cjs.hasMessageBody; }
|
|
18526
18531
|
});
|
|
18527
18532
|
Object.defineProperty(exports, "insertMention", {
|
|
18528
18533
|
enumerable: true,
|
|
18529
|
-
get: function () { return
|
|
18534
|
+
get: function () { return chunk6RRKO4ZK_cjs.insertMention; }
|
|
18530
18535
|
});
|
|
18531
18536
|
Object.defineProperty(exports, "isSlideDeck", {
|
|
18532
18537
|
enumerable: true,
|
|
18533
|
-
get: function () { return
|
|
18538
|
+
get: function () { return chunk6RRKO4ZK_cjs.isSlideDeck; }
|
|
18534
18539
|
});
|
|
18535
18540
|
Object.defineProperty(exports, "latestThreadOfDocument", {
|
|
18536
18541
|
enumerable: true,
|
|
18537
|
-
get: function () { return
|
|
18542
|
+
get: function () { return chunk6RRKO4ZK_cjs.latestThreadOfDocument; }
|
|
18538
18543
|
});
|
|
18539
18544
|
Object.defineProperty(exports, "linkMentions", {
|
|
18540
18545
|
enumerable: true,
|
|
18541
|
-
get: function () { return
|
|
18546
|
+
get: function () { return chunk6RRKO4ZK_cjs.linkMentions; }
|
|
18542
18547
|
});
|
|
18543
18548
|
Object.defineProperty(exports, "mentionFromHref", {
|
|
18544
18549
|
enumerable: true,
|
|
18545
|
-
get: function () { return
|
|
18550
|
+
get: function () { return chunk6RRKO4ZK_cjs.mentionFromHref; }
|
|
18546
18551
|
});
|
|
18547
18552
|
Object.defineProperty(exports, "openDocumentId", {
|
|
18548
18553
|
enumerable: true,
|
|
18549
|
-
get: function () { return
|
|
18554
|
+
get: function () { return chunk6RRKO4ZK_cjs.openDocumentId; }
|
|
18550
18555
|
});
|
|
18551
18556
|
Object.defineProperty(exports, "opensInWord", {
|
|
18552
18557
|
enumerable: true,
|
|
18553
|
-
get: function () { return
|
|
18558
|
+
get: function () { return chunk6RRKO4ZK_cjs.opensInWord; }
|
|
18554
18559
|
});
|
|
18555
18560
|
Object.defineProperty(exports, "persistSearchSession", {
|
|
18556
18561
|
enumerable: true,
|
|
18557
|
-
get: function () { return
|
|
18562
|
+
get: function () { return chunk6RRKO4ZK_cjs.persistSearchSession; }
|
|
18558
18563
|
});
|
|
18559
18564
|
Object.defineProperty(exports, "readLegacyThreadDocuments", {
|
|
18560
18565
|
enumerable: true,
|
|
18561
|
-
get: function () { return
|
|
18566
|
+
get: function () { return chunk6RRKO4ZK_cjs.readLegacyThreadDocuments; }
|
|
18562
18567
|
});
|
|
18563
18568
|
Object.defineProperty(exports, "requestSearch", {
|
|
18564
18569
|
enumerable: true,
|
|
18565
|
-
get: function () { return
|
|
18570
|
+
get: function () { return chunk6RRKO4ZK_cjs.requestSearch; }
|
|
18566
18571
|
});
|
|
18567
18572
|
Object.defineProperty(exports, "savedDocumentIdFor", {
|
|
18568
18573
|
enumerable: true,
|
|
18569
|
-
get: function () { return
|
|
18574
|
+
get: function () { return chunk6RRKO4ZK_cjs.savedDocumentIdFor; }
|
|
18570
18575
|
});
|
|
18571
18576
|
Object.defineProperty(exports, "sharedSearchSession", {
|
|
18572
18577
|
enumerable: true,
|
|
18573
|
-
get: function () { return
|
|
18578
|
+
get: function () { return chunk6RRKO4ZK_cjs.sharedSearchSession; }
|
|
18574
18579
|
});
|
|
18575
18580
|
Object.defineProperty(exports, "takeDocumentForTurn", {
|
|
18576
18581
|
enumerable: true,
|
|
18577
|
-
get: function () { return
|
|
18582
|
+
get: function () { return chunk6RRKO4ZK_cjs.takeDocumentForTurn; }
|
|
18578
18583
|
});
|
|
18579
18584
|
Object.defineProperty(exports, "takePendingSearch", {
|
|
18580
18585
|
enumerable: true,
|
|
18581
|
-
get: function () { return
|
|
18586
|
+
get: function () { return chunk6RRKO4ZK_cjs.takePendingSearch; }
|
|
18582
18587
|
});
|
|
18583
18588
|
Object.defineProperty(exports, "toMessageMentions", {
|
|
18584
18589
|
enumerable: true,
|
|
18585
|
-
get: function () { return
|
|
18590
|
+
get: function () { return chunk6RRKO4ZK_cjs.toMessageMentions; }
|
|
18586
18591
|
});
|
|
18587
18592
|
Object.defineProperty(exports, "useAssistantCopy", {
|
|
18588
18593
|
enumerable: true,
|
|
18589
|
-
get: function () { return
|
|
18594
|
+
get: function () { return chunk6RRKO4ZK_cjs.useAssistantCopy; }
|
|
18590
18595
|
});
|
|
18591
18596
|
Object.defineProperty(exports, "useAssistantName", {
|
|
18592
18597
|
enumerable: true,
|
|
18593
|
-
get: function () { return
|
|
18598
|
+
get: function () { return chunk6RRKO4ZK_cjs.useAssistantName; }
|
|
18594
18599
|
});
|
|
18595
18600
|
Object.defineProperty(exports, "useOpenDocumentId", {
|
|
18596
18601
|
enumerable: true,
|
|
18597
|
-
get: function () { return
|
|
18602
|
+
get: function () { return chunk6RRKO4ZK_cjs.useOpenDocumentId; }
|
|
18598
18603
|
});
|
|
18599
18604
|
Object.defineProperty(exports, "useRegisterOpenDocument", {
|
|
18600
18605
|
enumerable: true,
|
|
18601
|
-
get: function () { return
|
|
18606
|
+
get: function () { return chunk6RRKO4ZK_cjs.useRegisterOpenDocument; }
|
|
18602
18607
|
});
|
|
18603
18608
|
Object.defineProperty(exports, "useTurnDocumentId", {
|
|
18604
18609
|
enumerable: true,
|
|
18605
|
-
get: function () { return
|
|
18610
|
+
get: function () { return chunk6RRKO4ZK_cjs.useTurnDocumentId; }
|
|
18606
18611
|
});
|
|
18607
18612
|
Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
|
|
18608
18613
|
enumerable: true,
|
|
@@ -18670,35 +18675,35 @@ Object.defineProperty(exports, "mergeHostConfig", {
|
|
|
18670
18675
|
});
|
|
18671
18676
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
18672
18677
|
enumerable: true,
|
|
18673
|
-
get: function () { return
|
|
18678
|
+
get: function () { return chunkKULS4YWP_cjs.cleanDraftMarkdown; }
|
|
18674
18679
|
});
|
|
18675
18680
|
Object.defineProperty(exports, "cleanDraftWithReport", {
|
|
18676
18681
|
enumerable: true,
|
|
18677
|
-
get: function () { return
|
|
18682
|
+
get: function () { return chunkKULS4YWP_cjs.cleanDraftWithReport; }
|
|
18678
18683
|
});
|
|
18679
18684
|
Object.defineProperty(exports, "promoteBoldTitle", {
|
|
18680
18685
|
enumerable: true,
|
|
18681
|
-
get: function () { return
|
|
18686
|
+
get: function () { return chunkKULS4YWP_cjs.promoteBoldTitle; }
|
|
18682
18687
|
});
|
|
18683
18688
|
Object.defineProperty(exports, "repairParsedStructure", {
|
|
18684
18689
|
enumerable: true,
|
|
18685
|
-
get: function () { return
|
|
18690
|
+
get: function () { return chunkKULS4YWP_cjs.repairParsedStructure; }
|
|
18686
18691
|
});
|
|
18687
18692
|
Object.defineProperty(exports, "repairParsedTitle", {
|
|
18688
18693
|
enumerable: true,
|
|
18689
|
-
get: function () { return
|
|
18694
|
+
get: function () { return chunkKULS4YWP_cjs.repairParsedTitle; }
|
|
18690
18695
|
});
|
|
18691
18696
|
Object.defineProperty(exports, "stripAgentPreamble", {
|
|
18692
18697
|
enumerable: true,
|
|
18693
|
-
get: function () { return
|
|
18698
|
+
get: function () { return chunkKULS4YWP_cjs.stripAgentPreamble; }
|
|
18694
18699
|
});
|
|
18695
18700
|
Object.defineProperty(exports, "unescapeMarkdown", {
|
|
18696
18701
|
enumerable: true,
|
|
18697
|
-
get: function () { return
|
|
18702
|
+
get: function () { return chunkKULS4YWP_cjs.unescapeMarkdown; }
|
|
18698
18703
|
});
|
|
18699
18704
|
Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
18700
18705
|
enumerable: true,
|
|
18701
|
-
get: function () { return
|
|
18706
|
+
get: function () { return chunkKULS4YWP_cjs.unwrapCitationLinks; }
|
|
18702
18707
|
});
|
|
18703
18708
|
Object.defineProperty(exports, "ARBI_MARK_SRC", {
|
|
18704
18709
|
enumerable: true,
|
|
@@ -19921,7 +19926,6 @@ exports.fileAttachment = fileAttachment;
|
|
|
19921
19926
|
exports.filesFromDrop = filesFromDrop;
|
|
19922
19927
|
exports.fillTimeGaps = fillTimeGaps;
|
|
19923
19928
|
exports.filterRows = filterRows;
|
|
19924
|
-
exports.flushDocumentForTurn = flushDocumentForTurn;
|
|
19925
19929
|
exports.flushStreamingTokens = flushStreamingTokens;
|
|
19926
19930
|
exports.forgetUploadedDocumentFolder = forgetUploadedDocumentFolder;
|
|
19927
19931
|
exports.formatConfigValidationError = formatConfigValidationError;
|
|
@@ -19997,7 +20001,6 @@ exports.redlineStats = redlineStats;
|
|
|
19997
20001
|
exports.refuseChatWhenOffline = refuseChatWhenOffline;
|
|
19998
20002
|
exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
|
|
19999
20003
|
exports.registerAttachedRun = registerAttachedRun;
|
|
20000
|
-
exports.registerDocumentTurnFlush = registerDocumentTurnFlush;
|
|
20001
20004
|
exports.remoteControlActions = remoteControlActions;
|
|
20002
20005
|
exports.remoteControlStateOf = remoteControlStateOf;
|
|
20003
20006
|
exports.removeSettledNarration = removeSettledNarration;
|