@arbidocs/blocks 0.5.32 → 0.5.34
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/README.md +2 -0
- package/dist/{ConnectedNativeDocxComparison-X6NTNHHM.cjs → ConnectedNativeDocxComparison-4R5WW7IU.cjs} +9 -9
- package/dist/{ConnectedNativeDocxComparison-X6NTNHHM.cjs.map → ConnectedNativeDocxComparison-4R5WW7IU.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-4RHC6KCE.js → ConnectedNativeDocxComparison-AH6KR4CZ.js} +8 -8
- package/dist/{ConnectedNativeDocxComparison-4RHC6KCE.js.map → ConnectedNativeDocxComparison-AH6KR4CZ.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-S5AT2UAH.js → ConnectedNativeDocxEditor-ETEJM7GN.js} +7 -7
- package/dist/{ConnectedNativeDocxEditor-S5AT2UAH.js.map → ConnectedNativeDocxEditor-ETEJM7GN.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-U75VOJBC.cjs → ConnectedNativeDocxEditor-MJVE2I33.cjs} +9 -9
- package/dist/{ConnectedNativeDocxEditor-U75VOJBC.cjs.map → ConnectedNativeDocxEditor-MJVE2I33.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-7XU5RSX2.js → ConnectedStreamedWordArtifact-JJI3HR7U.js} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-7XU5RSX2.js.map → ConnectedStreamedWordArtifact-JJI3HR7U.js.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-QAZ5VQZS.cjs → ConnectedStreamedWordArtifact-S7EQ4FM2.cjs} +9 -9
- package/dist/ConnectedStreamedWordArtifact-S7EQ4FM2.cjs.map +1 -0
- package/dist/agents/index.cjs +326 -326
- package/dist/agents/index.js +4 -4
- package/dist/calls/index.cjs +33 -33
- package/dist/calls/index.js +5 -5
- package/dist/{chunk-2MCHQGVY.js → chunk-24H5WTGM.js} +4 -4
- package/dist/{chunk-2MCHQGVY.js.map → chunk-24H5WTGM.js.map} +1 -1
- package/dist/{chunk-D57MPMTZ.js → chunk-2YCCCXYV.js} +12 -3
- package/dist/chunk-2YCCCXYV.js.map +1 -0
- package/dist/{chunk-BNOP4REH.js → chunk-5JEM3BWT.js} +3 -3
- package/dist/{chunk-BNOP4REH.js.map → chunk-5JEM3BWT.js.map} +1 -1
- package/dist/{chunk-XBY36SIJ.js → chunk-AL4GAWD3.js} +3 -3
- package/dist/{chunk-XBY36SIJ.js.map → chunk-AL4GAWD3.js.map} +1 -1
- package/dist/{chunk-PUX4M22Q.cjs → chunk-B426HYRI.cjs} +49 -49
- package/dist/{chunk-PUX4M22Q.cjs.map → chunk-B426HYRI.cjs.map} +1 -1
- package/dist/{chunk-ZIURNTTS.cjs → chunk-BIWPXSGS.cjs} +7 -7
- package/dist/{chunk-ZIURNTTS.cjs.map → chunk-BIWPXSGS.cjs.map} +1 -1
- package/dist/{chunk-EPQ3364Q.cjs → chunk-C3YIVBTU.cjs} +6 -6
- package/dist/{chunk-EPQ3364Q.cjs.map → chunk-C3YIVBTU.cjs.map} +1 -1
- package/dist/{chunk-JBR3QNHC.cjs → chunk-EFSL4O3B.cjs} +4 -4
- package/dist/{chunk-JBR3QNHC.cjs.map → chunk-EFSL4O3B.cjs.map} +1 -1
- package/dist/{chunk-FHB4G77H.js → chunk-G5ISXB5I.js} +3 -3
- package/dist/{chunk-FHB4G77H.js.map → chunk-G5ISXB5I.js.map} +1 -1
- package/dist/{chunk-6EQSP77K.cjs → chunk-J6U6DIZK.cjs} +5 -5
- package/dist/{chunk-6EQSP77K.cjs.map → chunk-J6U6DIZK.cjs.map} +1 -1
- package/dist/{chunk-SBTRXXJF.cjs → chunk-JVXHVFUA.cjs} +11 -2
- package/dist/chunk-JVXHVFUA.cjs.map +1 -0
- package/dist/{chunk-2RFXSBPD.cjs → chunk-KBISVJPU.cjs} +4 -4
- package/dist/{chunk-2RFXSBPD.cjs.map → chunk-KBISVJPU.cjs.map} +1 -1
- package/dist/{chunk-B5G3AZ3O.js → chunk-N3HVTMQK.js} +3 -3
- package/dist/{chunk-B5G3AZ3O.js.map → chunk-N3HVTMQK.js.map} +1 -1
- package/dist/{chunk-3ES6VWRB.cjs → chunk-NOKTUWTN.cjs} +7 -7
- package/dist/{chunk-3ES6VWRB.cjs.map → chunk-NOKTUWTN.cjs.map} +1 -1
- package/dist/{chunk-EZSYYENN.js → chunk-O76V2TUY.js} +5 -5
- package/dist/{chunk-EZSYYENN.js.map → chunk-O76V2TUY.js.map} +1 -1
- package/dist/{chunk-7CHI36EP.js → chunk-OPK6GYYR.js} +3 -3
- package/dist/{chunk-7CHI36EP.js.map → chunk-OPK6GYYR.js.map} +1 -1
- package/dist/{chunk-FY4C7HU5.cjs → chunk-POU4O4D7.cjs} +9 -9
- package/dist/{chunk-FY4C7HU5.cjs.map → chunk-POU4O4D7.cjs.map} +1 -1
- package/dist/{chunk-ULA6YWWD.cjs → chunk-QU77RRZP.cjs} +21 -21
- package/dist/{chunk-ULA6YWWD.cjs.map → chunk-QU77RRZP.cjs.map} +1 -1
- package/dist/{chunk-L22MGRKB.cjs → chunk-R3QNE46Z.cjs} +4 -4
- package/dist/{chunk-L22MGRKB.cjs.map → chunk-R3QNE46Z.cjs.map} +1 -1
- package/dist/{chunk-EOLQ5YBP.js → chunk-RFQ2FGL4.js} +3 -3
- package/dist/{chunk-EOLQ5YBP.js.map → chunk-RFQ2FGL4.js.map} +1 -1
- package/dist/{chunk-2QDNQM63.cjs → chunk-SSYRPBL5.cjs} +3 -3
- package/dist/{chunk-2QDNQM63.cjs.map → chunk-SSYRPBL5.cjs.map} +1 -1
- package/dist/{chunk-NQWP5PWA.js → chunk-SXYXFCHN.js} +5 -5
- package/dist/{chunk-NQWP5PWA.js.map → chunk-SXYXFCHN.js.map} +1 -1
- package/dist/{chunk-4DKI37QQ.js → chunk-UWXCT3ON.js} +3 -3
- package/dist/{chunk-4DKI37QQ.js.map → chunk-UWXCT3ON.js.map} +1 -1
- package/dist/{chunk-DY2Z3DP7.js → chunk-VPWCARVO.js} +3 -3
- package/dist/{chunk-DY2Z3DP7.js.map → chunk-VPWCARVO.js.map} +1 -1
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/docx.js +7 -7
- package/dist/connect/index.cjs +368 -353
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +31 -17
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +25 -25
- package/dist/connect/viewer.js +8 -8
- package/dist/connection/files/ConnectedGridView.d.ts +2 -0
- package/dist/connection/files/index.d.ts +1 -0
- package/dist/index.cjs +395 -395
- package/dist/index.js +6 -6
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +23 -23
- package/dist/workflow-canvas/index.js +6 -6
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-QAZ5VQZS.cjs.map +0 -1
- package/dist/chunk-D57MPMTZ.js.map +0 -1
- package/dist/chunk-SBTRXXJF.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -9,10 +9,10 @@ var chunkYD3RN2FY_cjs = require('../chunk-YD3RN2FY.cjs');
|
|
|
9
9
|
var chunkH6K7EWL2_cjs = require('../chunk-H6K7EWL2.cjs');
|
|
10
10
|
var chunkOU3RGQFX_cjs = require('../chunk-OU3RGQFX.cjs');
|
|
11
11
|
require('../chunk-UAEYU2NN.cjs');
|
|
12
|
+
var chunkNOKTUWTN_cjs = require('../chunk-NOKTUWTN.cjs');
|
|
12
13
|
var chunkFEVJA4BP_cjs = require('../chunk-FEVJA4BP.cjs');
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var chunkJBR3QNHC_cjs = require('../chunk-JBR3QNHC.cjs');
|
|
14
|
+
var chunkQU77RRZP_cjs = require('../chunk-QU77RRZP.cjs');
|
|
15
|
+
var chunkEFSL4O3B_cjs = require('../chunk-EFSL4O3B.cjs');
|
|
16
16
|
var chunkWALADS2S_cjs = require('../chunk-WALADS2S.cjs');
|
|
17
17
|
var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
|
|
18
18
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
@@ -23,15 +23,15 @@ require('../chunk-464YPRAE.cjs');
|
|
|
23
23
|
require('../chunk-PICGTGEB.cjs');
|
|
24
24
|
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
25
25
|
require('../chunk-ZESMRGDV.cjs');
|
|
26
|
-
var
|
|
26
|
+
var chunkJ6U6DIZK_cjs = require('../chunk-J6U6DIZK.cjs');
|
|
27
27
|
var chunkC2ECYOPP_cjs = require('../chunk-C2ECYOPP.cjs');
|
|
28
28
|
var chunkGOWXP5KT_cjs = require('../chunk-GOWXP5KT.cjs');
|
|
29
29
|
var chunkHV7XHZLW_cjs = require('../chunk-HV7XHZLW.cjs');
|
|
30
|
-
var chunkQZTNTP75_cjs = require('../chunk-QZTNTP75.cjs');
|
|
31
30
|
var chunkRGWROTJ2_cjs = require('../chunk-RGWROTJ2.cjs');
|
|
32
31
|
var chunkKUQOHPKP_cjs = require('../chunk-KUQOHPKP.cjs');
|
|
33
32
|
var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
|
|
34
33
|
require('../chunk-PCB2BPN3.cjs');
|
|
34
|
+
var chunkQZTNTP75_cjs = require('../chunk-QZTNTP75.cjs');
|
|
35
35
|
require('../chunk-NWNVWO6L.cjs');
|
|
36
36
|
var chunkWUG24K7P_cjs = require('../chunk-WUG24K7P.cjs');
|
|
37
37
|
require('../chunk-7G2LJMUG.cjs');
|
|
@@ -43,9 +43,9 @@ require('../chunk-VLCY46K6.cjs');
|
|
|
43
43
|
require('../chunk-D54JXTPG.cjs');
|
|
44
44
|
var chunkJIOHDVWH_cjs = require('../chunk-JIOHDVWH.cjs');
|
|
45
45
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
46
|
-
var
|
|
46
|
+
var chunkPOU4O4D7_cjs = require('../chunk-POU4O4D7.cjs');
|
|
47
47
|
var chunkRFIBUWLF_cjs = require('../chunk-RFIBUWLF.cjs');
|
|
48
|
-
var
|
|
48
|
+
var chunkSSYRPBL5_cjs = require('../chunk-SSYRPBL5.cjs');
|
|
49
49
|
var chunk3ZLNI7ZA_cjs = require('../chunk-3ZLNI7ZA.cjs');
|
|
50
50
|
var chunkAQPZ4QMV_cjs = require('../chunk-AQPZ4QMV.cjs');
|
|
51
51
|
require('../chunk-SIB6C7P7.cjs');
|
|
@@ -61,14 +61,14 @@ var chunkCG757WKY_cjs = require('../chunk-CG757WKY.cjs');
|
|
|
61
61
|
var chunkW3PSIIMN_cjs = require('../chunk-W3PSIIMN.cjs');
|
|
62
62
|
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
63
63
|
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
64
|
-
var
|
|
64
|
+
var chunkBIWPXSGS_cjs = require('../chunk-BIWPXSGS.cjs');
|
|
65
65
|
var chunkEGSSLWNZ_cjs = require('../chunk-EGSSLWNZ.cjs');
|
|
66
|
-
var
|
|
67
|
-
var
|
|
66
|
+
var chunkC3YIVBTU_cjs = require('../chunk-C3YIVBTU.cjs');
|
|
67
|
+
var chunkJVXHVFUA_cjs = require('../chunk-JVXHVFUA.cjs');
|
|
68
68
|
var chunkMOIZ2R5X_cjs = require('../chunk-MOIZ2R5X.cjs');
|
|
69
69
|
var chunkMB3S2ETI_cjs = require('../chunk-MB3S2ETI.cjs');
|
|
70
|
-
var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
71
70
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
71
|
+
var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
72
72
|
var chunkLTO4JYU3_cjs = require('../chunk-LTO4JYU3.cjs');
|
|
73
73
|
var chunkLNYEYR7W_cjs = require('../chunk-LNYEYR7W.cjs');
|
|
74
74
|
var chunkZ2XZ2D4N_cjs = require('../chunk-Z2XZ2D4N.cjs');
|
|
@@ -132,7 +132,7 @@ var ConnectedUserEntity = React9.memo(function ConnectedUserEntity2({
|
|
|
132
132
|
hasUnreadMessages = false,
|
|
133
133
|
selfLabel
|
|
134
134
|
}) {
|
|
135
|
-
const { userId: currentUserId } =
|
|
135
|
+
const { userId: currentUserId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
136
136
|
const { openDirectChat, openSettings } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
137
137
|
const isMe = !!(user && currentUserId && user.external_id === currentUserId);
|
|
138
138
|
const displayStatus = useDisplayStatus(user, isMe, showPresence);
|
|
@@ -163,9 +163,9 @@ var ConnectedUserEntity = React9.memo(function ConnectedUserEntity2({
|
|
|
163
163
|
if (isMe) openSettings();
|
|
164
164
|
else openDirectChat?.(user.external_id);
|
|
165
165
|
};
|
|
166
|
-
const tooltipContent = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
166
|
+
const tooltipContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6U6DIZK_cjs.EntityTooltip, { children: [
|
|
167
167
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
168
|
-
|
|
168
|
+
chunkJ6U6DIZK_cjs.EntityTooltipHeader,
|
|
169
169
|
{
|
|
170
170
|
lead: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
171
171
|
ui.Avatar,
|
|
@@ -196,13 +196,13 @@ var ConnectedUserEntity = React9.memo(function ConnectedUserEntity2({
|
|
|
196
196
|
subtitle: user.email
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
|
-
userIsAgent && agentOwner && /* @__PURE__ */ jsxRuntime.jsx(
|
|
199
|
+
userIsAgent && agentOwner && /* @__PURE__ */ jsxRuntime.jsx(chunkJ6U6DIZK_cjs.EntityTooltipSection, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6U6DIZK_cjs.EntityTooltipHint, { icon: /* @__PURE__ */ jsxRuntime.jsx(react.ArbiBotHeadIcon, { className: "w-3.5 h-3.5 flex-shrink-0" }), children: [
|
|
200
200
|
"Agent of",
|
|
201
201
|
" ",
|
|
202
202
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-foreground", children: ui.getUserDisplayName(agentOwner) })
|
|
203
203
|
] }) }),
|
|
204
204
|
sharedWorkspaces.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
205
|
-
|
|
205
|
+
chunkJ6U6DIZK_cjs.EntityTooltipSection,
|
|
206
206
|
{
|
|
207
207
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Users, { className: "w-3.5 h-3.5 flex-shrink-0" }),
|
|
208
208
|
heading: "Shared Workspaces",
|
|
@@ -233,7 +233,7 @@ var ConnectedUserEntity = React9.memo(function ConnectedUserEntity2({
|
|
|
233
233
|
] })
|
|
234
234
|
}
|
|
235
235
|
),
|
|
236
|
-
interactive && variant === "pill" && canChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
236
|
+
interactive && variant === "pill" && canChat && /* @__PURE__ */ jsxRuntime.jsx(chunkJ6U6DIZK_cjs.EntityTooltipHint, { isRuled: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageCircleMore, { className: "w-3 h-3" }), children: "Click to send message" })
|
|
237
237
|
] });
|
|
238
238
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
239
239
|
ui.UserEntity,
|
|
@@ -268,7 +268,7 @@ var renderConnectedUser = (user, { tooltip, variant = "icon" }) => /* @__PURE__
|
|
|
268
268
|
}
|
|
269
269
|
);
|
|
270
270
|
function ConnectionBoundWebSocket({ children }) {
|
|
271
|
-
const { status } =
|
|
271
|
+
const { status } = chunkJVXHVFUA_cjs.useConnection();
|
|
272
272
|
return /* @__PURE__ */ jsxRuntime.jsx(react.ArbiWebSocketProvider, { enabled: status === "authenticated", children });
|
|
273
273
|
}
|
|
274
274
|
function defaultHost(config, { queryClient } = {}) {
|
|
@@ -289,7 +289,7 @@ function defaultHost(config, { queryClient } = {}) {
|
|
|
289
289
|
sessionStorage: config.apiUrl ? client.browserSessionStateStorage() : void 0
|
|
290
290
|
});
|
|
291
291
|
function DefaultHostConnection({ children }) {
|
|
292
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: client$1, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
292
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: client$1, children: /* @__PURE__ */ jsxRuntime.jsx(chunkJVXHVFUA_cjs.ConnectionProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ConnectionBoundWebSocket, { children }) }) });
|
|
293
293
|
}
|
|
294
294
|
return {
|
|
295
295
|
arbi,
|
|
@@ -310,7 +310,7 @@ function useSessionSidebar() {
|
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
function ConnectedTaskAccessRequest({ conversationId }) {
|
|
313
|
-
const { workspaceId } =
|
|
313
|
+
const { workspaceId } = chunkJVXHVFUA_cjs.useConnection();
|
|
314
314
|
const tasks = react.useConversations(workspaceId ?? void 0, { live: true });
|
|
315
315
|
const run = react.useRunConversation();
|
|
316
316
|
const task = tasks.data?.find((item) => item.external_id === conversationId);
|
|
@@ -359,7 +359,7 @@ function ConnectedWorkspaceActivity({
|
|
|
359
359
|
pageSize,
|
|
360
360
|
...listProps
|
|
361
361
|
}) {
|
|
362
|
-
const { workspaceId: selected, status, ensureWorkspaceOpen } =
|
|
362
|
+
const { workspaceId: selected, status, ensureWorkspaceOpen } = chunkJVXHVFUA_cjs.useConnection();
|
|
363
363
|
const openTarget = useOpenWorkspaceActivityTarget();
|
|
364
364
|
const workspaceId = workspaceProp ?? selected ?? void 0;
|
|
365
365
|
const live = status === "authenticated" && !!workspaceId;
|
|
@@ -387,7 +387,7 @@ function ConnectedWorkspaceActivity({
|
|
|
387
387
|
[feed.data]
|
|
388
388
|
);
|
|
389
389
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
390
|
-
|
|
390
|
+
chunkJ6U6DIZK_cjs.WorkspaceActivityList,
|
|
391
391
|
{
|
|
392
392
|
...listProps,
|
|
393
393
|
items,
|
|
@@ -665,7 +665,7 @@ function useOpenNotificationTarget() {
|
|
|
665
665
|
const arbi = react.useArbi();
|
|
666
666
|
const queryClient = reactQuery.useQueryClient();
|
|
667
667
|
const session = react.useArbiSessionStore();
|
|
668
|
-
const connection =
|
|
668
|
+
const connection = chunkJVXHVFUA_cjs.useOptionalConnection();
|
|
669
669
|
const setWorkspace = connection?.setWorkspace;
|
|
670
670
|
return React9.useCallback(
|
|
671
671
|
(target) => createNotificationTargetOpener({
|
|
@@ -1371,7 +1371,7 @@ function useNotificationBellEntry({ onOpen } = {}) {
|
|
|
1371
1371
|
);
|
|
1372
1372
|
}
|
|
1373
1373
|
function useConnectedNotificationBell(options2 = {}) {
|
|
1374
|
-
const { userId } =
|
|
1374
|
+
const { userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
1375
1375
|
const { data: notifications = [] } = react.useNotifications({ enabled: !!userId });
|
|
1376
1376
|
const { mutate: markRead } = react.useMarkNotificationsRead();
|
|
1377
1377
|
const toEntry = useNotificationBellEntry(options2);
|
|
@@ -1541,7 +1541,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
1541
1541
|
...menuProps
|
|
1542
1542
|
}) {
|
|
1543
1543
|
const { notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
1544
|
-
const { workspaceId: selected, live } =
|
|
1544
|
+
const { workspaceId: selected, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
1545
1545
|
const workspaceId = workspaceProp ?? selected;
|
|
1546
1546
|
const { level, setLevel, isLoading, isSaving, error } = react.useWorkspaceNotificationLevel(
|
|
1547
1547
|
workspaceId,
|
|
@@ -1552,7 +1552,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
1552
1552
|
}, [error, notify17]);
|
|
1553
1553
|
if (!workspaceId) return null;
|
|
1554
1554
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1555
|
-
|
|
1555
|
+
chunkJ6U6DIZK_cjs.WorkspaceNotificationMenu,
|
|
1556
1556
|
{
|
|
1557
1557
|
...menuProps,
|
|
1558
1558
|
level,
|
|
@@ -1566,12 +1566,12 @@ function ConnectedThreadFollow({
|
|
|
1566
1566
|
as = "button",
|
|
1567
1567
|
...props
|
|
1568
1568
|
}) {
|
|
1569
|
-
const { live } =
|
|
1569
|
+
const { live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
1570
1570
|
const { following, setFollowing, isLoading, isSaving } = react.useFollowThread(conversationId, {
|
|
1571
1571
|
enabled: live
|
|
1572
1572
|
});
|
|
1573
1573
|
if (!conversationId) return null;
|
|
1574
|
-
const Control = as === "menu-item" ?
|
|
1574
|
+
const Control = as === "menu-item" ? chunkJ6U6DIZK_cjs.ThreadFollowMenuItem : chunkJ6U6DIZK_cjs.ThreadFollowButton;
|
|
1575
1575
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1576
1576
|
Control,
|
|
1577
1577
|
{
|
|
@@ -1644,7 +1644,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1644
1644
|
onChange: (e) => {
|
|
1645
1645
|
const file = e.target.files?.[0];
|
|
1646
1646
|
e.target.value = "";
|
|
1647
|
-
if (file) void add(() =>
|
|
1647
|
+
if (file) void add(() => chunkPOU4O4D7_cjs.importSkillFile(file));
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
1650
|
),
|
|
@@ -1669,7 +1669,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1669
1669
|
className: "space-y-2",
|
|
1670
1670
|
onSubmit: (e) => {
|
|
1671
1671
|
e.preventDefault();
|
|
1672
|
-
if (url.trim()) void add(() =>
|
|
1672
|
+
if (url.trim()) void add(() => chunkPOU4O4D7_cjs.importSkillFromUrl(url));
|
|
1673
1673
|
},
|
|
1674
1674
|
children: [
|
|
1675
1675
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1732,9 +1732,9 @@ function ConnectedSkillsLibrary({
|
|
|
1732
1732
|
const [type, setType] = React9.useState("all");
|
|
1733
1733
|
const [view, setView] = React9.useState("gallery");
|
|
1734
1734
|
const [isBusy, setIsBusy] = React9.useState(false);
|
|
1735
|
-
const all = React9.useMemo(() =>
|
|
1735
|
+
const all = React9.useMemo(() => chunkPOU4O4D7_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1736
1736
|
const shown = React9.useMemo(
|
|
1737
|
-
() =>
|
|
1737
|
+
() => chunkPOU4O4D7_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1738
1738
|
[all, query, source, type]
|
|
1739
1739
|
);
|
|
1740
1740
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1745,21 +1745,21 @@ function ConnectedSkillsLibrary({
|
|
|
1745
1745
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1746
1746
|
const sourceOptions = [
|
|
1747
1747
|
{ id: "all", label: "All", count: all.length },
|
|
1748
|
-
{ id: "builtin", label:
|
|
1749
|
-
{ id: "mine", label:
|
|
1750
|
-
{ id: "shared", label:
|
|
1748
|
+
{ id: "builtin", label: chunkPOU4O4D7_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1749
|
+
{ id: "mine", label: chunkPOU4O4D7_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1750
|
+
{ id: "shared", label: chunkPOU4O4D7_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1751
1751
|
];
|
|
1752
1752
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1753
1753
|
const typeOptions = [
|
|
1754
1754
|
{ id: "all", label: "Any kind" },
|
|
1755
|
-
...types.map((t) => ({ id: t, label:
|
|
1755
|
+
...types.map((t) => ({ id: t, label: chunkPOU4O4D7_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1756
1756
|
];
|
|
1757
1757
|
const pick = (slug) => {
|
|
1758
1758
|
setSelected(slug);
|
|
1759
1759
|
setMode("detail");
|
|
1760
1760
|
};
|
|
1761
1761
|
const markdownOf = async (skill) => {
|
|
1762
|
-
if (!skill.docExtId) return
|
|
1762
|
+
if (!skill.docExtId) return chunkPOU4O4D7_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1763
1763
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1764
1764
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1765
1765
|
return response.text();
|
|
@@ -1823,7 +1823,7 @@ function ConnectedSkillsLibrary({
|
|
|
1823
1823
|
try {
|
|
1824
1824
|
documentTools.downloadBlob(
|
|
1825
1825
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1826
|
-
|
|
1826
|
+
chunkPOU4O4D7_cjs.SKILL_MAIN_FILENAME
|
|
1827
1827
|
);
|
|
1828
1828
|
} catch (error) {
|
|
1829
1829
|
notify17(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1864,10 +1864,10 @@ function ConnectedSkillsLibrary({
|
|
|
1864
1864
|
}
|
|
1865
1865
|
)
|
|
1866
1866
|
] }),
|
|
1867
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1867
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1868
1868
|
] }),
|
|
1869
1869
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1870
|
-
|
|
1870
|
+
chunkPOU4O4D7_cjs.SkillFilterChips,
|
|
1871
1871
|
{
|
|
1872
1872
|
label: "Show",
|
|
1873
1873
|
value: source,
|
|
@@ -1876,7 +1876,7 @@ function ConnectedSkillsLibrary({
|
|
|
1876
1876
|
}
|
|
1877
1877
|
),
|
|
1878
1878
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1879
|
-
|
|
1879
|
+
chunkPOU4O4D7_cjs.SkillFilterChips,
|
|
1880
1880
|
{
|
|
1881
1881
|
label: "Kind",
|
|
1882
1882
|
value: type,
|
|
@@ -1923,12 +1923,12 @@ function ConnectedSkillsLibrary({
|
|
|
1923
1923
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1924
1924
|
),
|
|
1925
1925
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1926
|
-
|
|
1926
|
+
chunkPOU4O4D7_cjs.SkillTile,
|
|
1927
1927
|
{
|
|
1928
1928
|
name: skill.title,
|
|
1929
1929
|
testId: `skill-tile-${skill.slug}`,
|
|
1930
1930
|
description: skill.description,
|
|
1931
|
-
sourceLabel: skill.isShared ? `${
|
|
1931
|
+
sourceLabel: skill.isShared ? `${chunkPOU4O4D7_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkPOU4O4D7_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1932
1932
|
type: skill.type,
|
|
1933
1933
|
icon,
|
|
1934
1934
|
layout: view,
|
|
@@ -1963,7 +1963,7 @@ function ConnectedSkillsLibrary({
|
|
|
1963
1963
|
}
|
|
1964
1964
|
),
|
|
1965
1965
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1966
|
-
|
|
1966
|
+
chunkPOU4O4D7_cjs.SkillGenerateForm,
|
|
1967
1967
|
{
|
|
1968
1968
|
icon,
|
|
1969
1969
|
onGenerate: (desc) => {
|
|
@@ -1990,11 +1990,11 @@ function ConnectedSkillsLibrary({
|
|
|
1990
1990
|
),
|
|
1991
1991
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1992
1992
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1993
|
-
|
|
1993
|
+
chunkPOU4O4D7_cjs.SkillLibraryDetail,
|
|
1994
1994
|
{
|
|
1995
1995
|
skill: current,
|
|
1996
1996
|
icon,
|
|
1997
|
-
instructions: current.docExtId ? currentText ?
|
|
1997
|
+
instructions: current.docExtId ? currentText ? chunkPOU4O4D7_cjs.parseSkillFrontmatter(currentText, chunkPOU4O4D7_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1998
1998
|
isLoading: !!current.docExtId && textLoading,
|
|
1999
1999
|
actions: {
|
|
2000
2000
|
onRun: () => onRun(current.slug),
|
|
@@ -2029,7 +2029,7 @@ function SkillEditor({
|
|
|
2029
2029
|
const [seeded, setSeeded] = React9.useState(!isEditing);
|
|
2030
2030
|
const [nameError, setNameError] = React9.useState(null);
|
|
2031
2031
|
if (isEditing && !seeded && text2 !== void 0) {
|
|
2032
|
-
const parsed =
|
|
2032
|
+
const parsed = chunkPOU4O4D7_cjs.parseSkillFrontmatter(text2, chunkPOU4O4D7_cjs.SKILL_MAIN_FILENAME);
|
|
2033
2033
|
setDescription(parsed.description ?? "");
|
|
2034
2034
|
setBody(parsed.content ?? "");
|
|
2035
2035
|
setSeeded(true);
|
|
@@ -2043,15 +2043,15 @@ function SkillEditor({
|
|
|
2043
2043
|
notify17("Add a short description.", "error");
|
|
2044
2044
|
return;
|
|
2045
2045
|
}
|
|
2046
|
-
const slug =
|
|
2046
|
+
const slug = chunkPOU4O4D7_cjs.skillSlug(name);
|
|
2047
2047
|
try {
|
|
2048
|
-
await onSave(slug,
|
|
2048
|
+
await onSave(slug, chunkPOU4O4D7_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
2049
2049
|
} catch (err) {
|
|
2050
2050
|
notify17(errorText(err, "Could not save the skill"), "error");
|
|
2051
2051
|
}
|
|
2052
2052
|
};
|
|
2053
2053
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2054
|
-
|
|
2054
|
+
chunkPOU4O4D7_cjs.SkillEditForm,
|
|
2055
2055
|
{
|
|
2056
2056
|
name,
|
|
2057
2057
|
onNameChange: setName,
|
|
@@ -2087,9 +2087,9 @@ function ConnectedAgentCreator({
|
|
|
2087
2087
|
agent,
|
|
2088
2088
|
initialName,
|
|
2089
2089
|
onSaved,
|
|
2090
|
-
capabilities =
|
|
2091
|
-
templates =
|
|
2092
|
-
types =
|
|
2090
|
+
capabilities = chunkPOU4O4D7_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2091
|
+
templates = chunkPOU4O4D7_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2092
|
+
types = chunkPOU4O4D7_cjs.DEFAULT_AGENT_TYPES,
|
|
2093
2093
|
canRevokeWorkspaces = false,
|
|
2094
2094
|
labels
|
|
2095
2095
|
}) {
|
|
@@ -2131,7 +2131,7 @@ function ConnectedAgentCreator({
|
|
|
2131
2131
|
const initialValues = React9.useMemo(
|
|
2132
2132
|
() => ({
|
|
2133
2133
|
name: agent?.given_name ?? initialName ?? "",
|
|
2134
|
-
persona: isEdit ?
|
|
2134
|
+
persona: isEdit ? chunkPOU4O4D7_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2135
2135
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2136
2136
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2137
2137
|
type: "builtin",
|
|
@@ -2150,7 +2150,7 @@ function ConnectedAgentCreator({
|
|
|
2150
2150
|
try {
|
|
2151
2151
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2152
2152
|
if (!agentExtId) {
|
|
2153
|
-
if (!
|
|
2153
|
+
if (!chunkPOU4O4D7_cjs.isValidAgentName(values.name)) {
|
|
2154
2154
|
notify17("Give the agent a name first.", "error");
|
|
2155
2155
|
return;
|
|
2156
2156
|
}
|
|
@@ -2186,7 +2186,7 @@ function ConnectedAgentCreator({
|
|
|
2186
2186
|
title: `agent-${name}`,
|
|
2187
2187
|
sections: {
|
|
2188
2188
|
Agents: {
|
|
2189
|
-
PERSONA:
|
|
2189
|
+
PERSONA: chunkPOU4O4D7_cjs.composePersona(name, values.persona),
|
|
2190
2190
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2191
2191
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2192
2192
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2209,7 +2209,7 @@ function ConnectedAgentCreator({
|
|
|
2209
2209
|
};
|
|
2210
2210
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2211
2211
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2212
|
-
|
|
2212
|
+
chunkPOU4O4D7_cjs.AgentCreator,
|
|
2213
2213
|
{
|
|
2214
2214
|
open: ready,
|
|
2215
2215
|
onOpenChange,
|
|
@@ -2225,11 +2225,11 @@ function ConnectedAgentCreator({
|
|
|
2225
2225
|
) : void 0,
|
|
2226
2226
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2227
2227
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2228
|
-
|
|
2228
|
+
chunkPOU4O4D7_cjs.AgentAvatarField,
|
|
2229
2229
|
{
|
|
2230
2230
|
picture,
|
|
2231
2231
|
isBusy: avatarBusy,
|
|
2232
|
-
canGenerate: isEdit ||
|
|
2232
|
+
canGenerate: isEdit || chunkPOU4O4D7_cjs.isValidAgentName(values.name),
|
|
2233
2233
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2234
2234
|
}
|
|
2235
2235
|
),
|
|
@@ -2281,7 +2281,7 @@ function ConnectedAgentCreator({
|
|
|
2281
2281
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2282
2282
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2283
2283
|
] }),
|
|
2284
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2284
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2285
2285
|
]
|
|
2286
2286
|
}
|
|
2287
2287
|
) })
|
|
@@ -2318,7 +2318,7 @@ function ConnectedWorkflowHistory({
|
|
|
2318
2318
|
const { openConversation } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
2319
2319
|
const { data: runs = [], isLoading } = react.useWorkflowRuns(workflow?.external_id);
|
|
2320
2320
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2321
|
-
|
|
2321
|
+
chunkPOU4O4D7_cjs.TaskRunsDialog,
|
|
2322
2322
|
{
|
|
2323
2323
|
inline,
|
|
2324
2324
|
hideHeader,
|
|
@@ -2353,15 +2353,15 @@ function ConnectedTaskActivityDialog({
|
|
|
2353
2353
|
}) {
|
|
2354
2354
|
const activity = react.useConversationActivity(conversationId, { live });
|
|
2355
2355
|
const { data: agents = [] } = react.useAgents();
|
|
2356
|
-
const { userId } =
|
|
2357
|
-
const { members } =
|
|
2356
|
+
const { userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
2357
|
+
const { members } = chunkQU77RRZP_cjs.useConnectedWorkspaceRole();
|
|
2358
2358
|
const renderPerson = React9.useCallback(
|
|
2359
2359
|
(id) => {
|
|
2360
2360
|
const isMe = !!id && id === userId;
|
|
2361
2361
|
const member = members.find((m) => m.user.external_id === id)?.user;
|
|
2362
2362
|
const name = member && [member.given_name, member.family_name].filter(Boolean).join(" ") || member?.email;
|
|
2363
2363
|
const person = { id, label: isMe ? "You" : name || "Someone", isMe };
|
|
2364
|
-
return renderTaskPerson ? renderTaskPerson(person) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2364
|
+
return renderTaskPerson ? renderTaskPerson(person) : /* @__PURE__ */ jsxRuntime.jsx(chunkSSYRPBL5_cjs.PersonPill, { person });
|
|
2365
2365
|
},
|
|
2366
2366
|
[renderTaskPerson, userId, members]
|
|
2367
2367
|
);
|
|
@@ -2370,7 +2370,7 @@ function ConnectedTaskActivityDialog({
|
|
|
2370
2370
|
[agents]
|
|
2371
2371
|
);
|
|
2372
2372
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2373
|
-
|
|
2373
|
+
chunkPOU4O4D7_cjs.TaskActivityDialog,
|
|
2374
2374
|
{
|
|
2375
2375
|
open: true,
|
|
2376
2376
|
onOpenChange: (open) => !open && onClose(),
|
|
@@ -2492,7 +2492,7 @@ function useAnswerRetry(missing, refetch) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
function useWorkflowThread(workflow, options2 = {}) {
|
|
2494
2494
|
const arbi = react.useArbi();
|
|
2495
|
-
const { ensureWorkspaceOpen, live, workspaceId } =
|
|
2495
|
+
const { ensureWorkspaceOpen, live, workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
2496
2496
|
const wsId = workspaceId ?? void 0;
|
|
2497
2497
|
const [threadId, setThreadId] = React9.useState(options2.conversationId);
|
|
2498
2498
|
const [localInputs, setLocalInputs] = React9.useState(
|
|
@@ -2516,7 +2516,7 @@ function useWorkflowThread(workflow, options2 = {}) {
|
|
|
2516
2516
|
);
|
|
2517
2517
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
2518
2518
|
const steps = React9.useMemo(
|
|
2519
|
-
() => chunkEZLZ3MDU_cjs.workflowSteps(workflow).length > 0 ? chunkEZLZ3MDU_cjs.workflowSteps(workflow) :
|
|
2519
|
+
() => chunkEZLZ3MDU_cjs.workflowSteps(workflow).length > 0 ? chunkEZLZ3MDU_cjs.workflowSteps(workflow) : chunkPOU4O4D7_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
2520
2520
|
[workflow, conversation?.plan?.steps]
|
|
2521
2521
|
);
|
|
2522
2522
|
const activity = react.useConversationActivity(threadId, { live: !!threadId });
|
|
@@ -2576,7 +2576,7 @@ function useWorkflowThread(workflow, options2 = {}) {
|
|
|
2576
2576
|
criteria: [],
|
|
2577
2577
|
max_passes: 3,
|
|
2578
2578
|
documents: [],
|
|
2579
|
-
steps:
|
|
2579
|
+
steps: chunkPOU4O4D7_cjs.toPlanSteps(workflow, {
|
|
2580
2580
|
inputs: values,
|
|
2581
2581
|
resolveWorkflow: options2.resolveWorkflow,
|
|
2582
2582
|
compose: options2.compose
|
|
@@ -2663,7 +2663,7 @@ function useWorkflowThread(workflow, options2 = {}) {
|
|
|
2663
2663
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
2664
2664
|
const needsStart = !threadId || idle && !anyRunning;
|
|
2665
2665
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
2666
|
-
const view =
|
|
2666
|
+
const view = chunkPOU4O4D7_cjs.useWorkflowView({
|
|
2667
2667
|
steps,
|
|
2668
2668
|
states,
|
|
2669
2669
|
inputs,
|
|
@@ -2740,7 +2740,7 @@ function WorkflowSignDialog({
|
|
|
2740
2740
|
labels
|
|
2741
2741
|
}) {
|
|
2742
2742
|
const arbi = react.useArbi();
|
|
2743
|
-
const { user, ensureWorkspaceOpen } =
|
|
2743
|
+
const { user, ensureWorkspaceOpen } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
2744
2744
|
const tools = documentTools.useOptionalDocumentTools();
|
|
2745
2745
|
const { id, version: stepVersion } = chunkEZLZ3MDU_cjs.splitDocRef(docRef);
|
|
2746
2746
|
const [version, setVersion] = React9.useState(stepVersion);
|
|
@@ -2829,7 +2829,7 @@ function WorkflowWordDialog({
|
|
|
2829
2829
|
title: title ?? labels.wordTitle,
|
|
2830
2830
|
size: "xl",
|
|
2831
2831
|
testId: "workflow-word-dialog",
|
|
2832
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2832
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQU77RRZP_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
2833
2833
|
}
|
|
2834
2834
|
);
|
|
2835
2835
|
}
|
|
@@ -2840,7 +2840,7 @@ function WorkflowReviewGridDialog({
|
|
|
2840
2840
|
onOpenDocument,
|
|
2841
2841
|
labels
|
|
2842
2842
|
}) {
|
|
2843
|
-
const { workspaceId } =
|
|
2843
|
+
const { workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
2844
2844
|
const allTags = react.useTags(workspaceId ?? void 0);
|
|
2845
2845
|
const all = react.useDocuments(workspaceId ?? void 0);
|
|
2846
2846
|
const isLoading = allTags.isLoading || all.isLoading || all.isFetching && !all.isFetchedAfterMount;
|
|
@@ -2980,10 +2980,10 @@ function ConnectedWorkflowRunner({
|
|
|
2980
2980
|
const citationInEnvironment = chunkLTO4JYU3_cjs.useOpenCitation();
|
|
2981
2981
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
2982
2982
|
const arbi = react.useArbi();
|
|
2983
|
-
const { ensureWorkspaceOpen, userId, workspaceId } =
|
|
2983
|
+
const { ensureWorkspaceOpen, userId, workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
2984
2984
|
const wsId = workspaceId ?? void 0;
|
|
2985
2985
|
const { data: docs = [], refetch } = react.useDocuments(wsId);
|
|
2986
|
-
const documentFilter =
|
|
2986
|
+
const documentFilter = chunkC3YIVBTU_cjs.useDocumentFilter();
|
|
2987
2987
|
const [sending, setSending] = React9.useState([]);
|
|
2988
2988
|
const [added, setAdded] = React9.useState({});
|
|
2989
2989
|
const [addedNames, setAddedNames] = React9.useState({});
|
|
@@ -3151,7 +3151,7 @@ function ConnectedWorkflowRunner({
|
|
|
3151
3151
|
);
|
|
3152
3152
|
};
|
|
3153
3153
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3154
|
-
|
|
3154
|
+
chunkPOU4O4D7_cjs.WorkflowRunner,
|
|
3155
3155
|
{
|
|
3156
3156
|
people,
|
|
3157
3157
|
...runnerProps,
|
|
@@ -3197,7 +3197,7 @@ function ConnectedWorkflowRunner({
|
|
|
3197
3197
|
) }),
|
|
3198
3198
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3199
3199
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3200
|
-
|
|
3200
|
+
chunkPOU4O4D7_cjs.WorkflowStepBar,
|
|
3201
3201
|
{
|
|
3202
3202
|
run: view,
|
|
3203
3203
|
levels: chunkEZLZ3MDU_cjs.stepLevels(view.steps),
|
|
@@ -3293,7 +3293,7 @@ function ReviewNotify({
|
|
|
3293
3293
|
testId
|
|
3294
3294
|
}) {
|
|
3295
3295
|
const arbi = react.useArbi();
|
|
3296
|
-
const { live, userId, ensureWorkspaceOpen } =
|
|
3296
|
+
const { live, userId, ensureWorkspaceOpen } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
3297
3297
|
const { data: members = [] } = react.useWorkspaceUsers(workspaceId, {
|
|
3298
3298
|
enabled: live && !!workspaceId,
|
|
3299
3299
|
beforeFetch: ensureWorkspaceOpen
|
|
@@ -3488,7 +3488,7 @@ function ConnectedTagTable({
|
|
|
3488
3488
|
const fail = (fallback) => (e) => notify17(browser.refusalReason(e, fallback), "error");
|
|
3489
3489
|
const snapshot2 = (data) => {
|
|
3490
3490
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3491
|
-
const bytes =
|
|
3491
|
+
const bytes = chunkJ6U6DIZK_cjs.tagTableDocx(data, {
|
|
3492
3492
|
title,
|
|
3493
3493
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3494
3494
|
});
|
|
@@ -3497,7 +3497,7 @@ function ConnectedTagTable({
|
|
|
3497
3497
|
return { blob: new Blob([bytes], { type: chunkJIOHDVWH_cjs.DOCX_MIME_TYPE }), name };
|
|
3498
3498
|
};
|
|
3499
3499
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3500
|
-
|
|
3500
|
+
chunkJ6U6DIZK_cjs.TagTable,
|
|
3501
3501
|
{
|
|
3502
3502
|
...props,
|
|
3503
3503
|
table,
|
|
@@ -3635,9 +3635,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3635
3635
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3636
3636
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3637
3637
|
const download = (format) => {
|
|
3638
|
-
const entries =
|
|
3639
|
-
const blob = format === "docx" ? new Blob([
|
|
3640
|
-
documentTools.downloadBlob(blob,
|
|
3638
|
+
const entries = chunkJ6U6DIZK_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
3639
|
+
const blob = format === "docx" ? new Blob([chunkJ6U6DIZK_cjs.glossaryDocx(entries, { title })], { type: chunkJIOHDVWH_cjs.DOCX_MIME_TYPE }) : new Blob([chunkJ6U6DIZK_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
3640
|
+
documentTools.downloadBlob(blob, chunkJ6U6DIZK_cjs.glossaryFileName(title, format));
|
|
3641
3641
|
};
|
|
3642
3642
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3643
3643
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4423,7 +4423,7 @@ var DocumentSharedCell = React9.memo(function DocumentSharedCell2({
|
|
|
4423
4423
|
[document2.external_id, onToggle]
|
|
4424
4424
|
);
|
|
4425
4425
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4426
|
-
|
|
4426
|
+
chunkJ6U6DIZK_cjs.SharedCell,
|
|
4427
4427
|
{
|
|
4428
4428
|
item: document2,
|
|
4429
4429
|
onToggle: handleToggle,
|
|
@@ -5134,7 +5134,7 @@ function KindSection({
|
|
|
5134
5134
|
{
|
|
5135
5135
|
testId: `tags-kind-${kind}`,
|
|
5136
5136
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
5137
|
-
description:
|
|
5137
|
+
description: chunkJ6U6DIZK_cjs.tagKindDescription(kind),
|
|
5138
5138
|
actions: picker,
|
|
5139
5139
|
children: [
|
|
5140
5140
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5145,9 +5145,9 @@ function KindSection({
|
|
|
5145
5145
|
children: [
|
|
5146
5146
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
5147
5147
|
"Extracting ",
|
|
5148
|
-
|
|
5148
|
+
chunkJ6U6DIZK_cjs.entitiesPhrase().toLowerCase(),
|
|
5149
5149
|
" from ",
|
|
5150
|
-
|
|
5150
|
+
chunkJ6U6DIZK_cjs.documentCount(extractingCount),
|
|
5151
5151
|
"\u2026"
|
|
5152
5152
|
]
|
|
5153
5153
|
}
|
|
@@ -5165,7 +5165,7 @@ function KindSection({
|
|
|
5165
5165
|
onOpenDocument: (id) => openDocument(id),
|
|
5166
5166
|
onOpenFact: ctx.onOpenFact,
|
|
5167
5167
|
onOpenThread: (id) => openConversation(id),
|
|
5168
|
-
labels:
|
|
5168
|
+
labels: chunkJ6U6DIZK_cjs.tagTableLabels(kind),
|
|
5169
5169
|
testId: `tags-table-${kind}`
|
|
5170
5170
|
}
|
|
5171
5171
|
)
|
|
@@ -5267,12 +5267,12 @@ function TagSection({
|
|
|
5267
5267
|
onOpenDocument: (id) => openDocument(id),
|
|
5268
5268
|
onOpenFact: ctx.onOpenFact,
|
|
5269
5269
|
onOpenThread: (id) => openConversation(id),
|
|
5270
|
-
labels:
|
|
5270
|
+
labels: chunkJ6U6DIZK_cjs.tagTableLabels(tag.kind),
|
|
5271
5271
|
testId: "tags-rows"
|
|
5272
5272
|
}
|
|
5273
5273
|
),
|
|
5274
5274
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5275
|
-
|
|
5275
|
+
chunkJ6U6DIZK_cjs.TagDetail,
|
|
5276
5276
|
{
|
|
5277
5277
|
row: detailRow && narrowTagRow(detailRow, ctx.filter.matches),
|
|
5278
5278
|
fields: schema.data?.fields ?? [],
|
|
@@ -5284,10 +5284,10 @@ function TagSection({
|
|
|
5284
5284
|
onOpenDocument: (id) => openDocument(id),
|
|
5285
5285
|
onOpenFact: ctx.onOpenFact,
|
|
5286
5286
|
onOpenThread: (id) => openConversation(id),
|
|
5287
|
-
noteLabel:
|
|
5287
|
+
noteLabel: chunkJ6U6DIZK_cjs.tagNoteLabel(tag.kind),
|
|
5288
5288
|
noteIsValue: tag.kind === "annotation",
|
|
5289
5289
|
renderPassages: (d, label) => renderPassages(d.doc_ext_id, label),
|
|
5290
|
-
labels:
|
|
5290
|
+
labels: chunkJ6U6DIZK_cjs.tagDetailLabels(),
|
|
5291
5291
|
testId: "tags-detail"
|
|
5292
5292
|
}
|
|
5293
5293
|
)
|
|
@@ -5313,9 +5313,9 @@ function ConnectedTagsPage({
|
|
|
5313
5313
|
onReview
|
|
5314
5314
|
}) {
|
|
5315
5315
|
const { confirm, notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
5316
|
-
const { data: tags } =
|
|
5317
|
-
const { data: documents } =
|
|
5318
|
-
const { data: threads } =
|
|
5316
|
+
const { data: tags } = chunkC3YIVBTU_cjs.useConnectedTags();
|
|
5317
|
+
const { data: documents } = chunkC3YIVBTU_cjs.useConnectedDocuments();
|
|
5318
|
+
const { data: threads } = chunkC3YIVBTU_cjs.useConnectedConversations();
|
|
5319
5319
|
const { data: facts = [] } = react.useFacts();
|
|
5320
5320
|
const createTag = react.useCreateTag();
|
|
5321
5321
|
const deleteTag = react.useDeleteTag();
|
|
@@ -5375,7 +5375,7 @@ function ConnectedTagsPage({
|
|
|
5375
5375
|
const onDelete = async (t) => {
|
|
5376
5376
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
5377
5377
|
const uses = browser.tagUseCount(t);
|
|
5378
|
-
const n2 =
|
|
5378
|
+
const n2 = chunkJ6U6DIZK_cjs.tagsPageNouns();
|
|
5379
5379
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
5380
5380
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
5381
5381
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -5396,16 +5396,16 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5396
5396
|
try {
|
|
5397
5397
|
await extract.mutateAsync(docIds);
|
|
5398
5398
|
notify17(
|
|
5399
|
-
`Extracting ${
|
|
5399
|
+
`Extracting ${chunkJ6U6DIZK_cjs.entitiesPhrase().toLowerCase()} from ${chunkJ6U6DIZK_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
5400
5400
|
"info"
|
|
5401
5401
|
);
|
|
5402
5402
|
} catch (error) {
|
|
5403
|
-
notify17(browser.refusalReason(error, `Could not extract ${
|
|
5403
|
+
notify17(browser.refusalReason(error, `Could not extract ${chunkJ6U6DIZK_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
5404
5404
|
throw error;
|
|
5405
5405
|
}
|
|
5406
5406
|
};
|
|
5407
5407
|
const picker = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5408
|
-
|
|
5408
|
+
chunkJ6U6DIZK_cjs.TagPicker,
|
|
5409
5409
|
{
|
|
5410
5410
|
tags: viewTags,
|
|
5411
5411
|
selectedId: tag?.external_id,
|
|
@@ -5419,10 +5419,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5419
5419
|
onOpenTag: openTag,
|
|
5420
5420
|
onOpenFact
|
|
5421
5421
|
};
|
|
5422
|
-
const n =
|
|
5422
|
+
const n = chunkJ6U6DIZK_cjs.tagsPageNouns();
|
|
5423
5423
|
const action = view === "person" || view === "organisation" ? {
|
|
5424
5424
|
label: "Extract",
|
|
5425
|
-
title: `Extract ${
|
|
5425
|
+
title: `Extract ${chunkJ6U6DIZK_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
5426
5426
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
5427
5427
|
run: () => setExtracting(true),
|
|
5428
5428
|
testId: "tags-extract-entities"
|
|
@@ -5572,7 +5572,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5572
5572
|
}
|
|
5573
5573
|
),
|
|
5574
5574
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5575
|
-
|
|
5575
|
+
chunkJ6U6DIZK_cjs.ExtractEntitiesDialog,
|
|
5576
5576
|
{
|
|
5577
5577
|
open: extracting,
|
|
5578
5578
|
onOpenChange: setExtracting,
|
|
@@ -6240,7 +6240,7 @@ function useFactFilters(notes, view, chat) {
|
|
|
6240
6240
|
const createTag = react.useCreateTag();
|
|
6241
6241
|
const createTagAsync = createTag.mutateAsync;
|
|
6242
6242
|
const createTagStable = React9.useMemo(() => ({ mutateAsync: createTagAsync }), [createTagAsync]);
|
|
6243
|
-
const currentUserId =
|
|
6243
|
+
const currentUserId = chunkJVXHVFUA_cjs.useConnectedWorkspace().userId;
|
|
6244
6244
|
const chatFactIdSet = React9.useMemo(() => new Set(chat?.factIds ?? NO_IDS), [chat?.factIds]);
|
|
6245
6245
|
const factFilterIds = React9.useMemo(
|
|
6246
6246
|
() => [
|
|
@@ -7030,7 +7030,7 @@ function ConnectedExportPanel({
|
|
|
7030
7030
|
initialMode
|
|
7031
7031
|
}) {
|
|
7032
7032
|
const { notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
7033
|
-
const { workspaceId: currentWorkspaceId, userId, user, live } =
|
|
7033
|
+
const { workspaceId: currentWorkspaceId, userId, user, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
7034
7034
|
const { data: workspaces = [] } = react.useWorkspaces({ enabled: live });
|
|
7035
7035
|
const { data: workspaceTags = [] } = react.useTags(currentWorkspaceId ?? void 0);
|
|
7036
7036
|
const { data: workspaceDocuments = [] } = react.useDocuments(currentWorkspaceId ?? void 0);
|
|
@@ -7338,7 +7338,7 @@ function OpenExportDialog({
|
|
|
7338
7338
|
initialMode,
|
|
7339
7339
|
testId = "export-entities-modal"
|
|
7340
7340
|
}) {
|
|
7341
|
-
const { workspaceId, live } =
|
|
7341
|
+
const { workspaceId, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
7342
7342
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
7343
7343
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
7344
7344
|
const wholeWorkspace = entityType === "WORKSPACE";
|
|
@@ -7425,9 +7425,9 @@ function ConnectedFactsPage({
|
|
|
7425
7425
|
const FACT_LABELS = React9.useMemo(factNouns, []);
|
|
7426
7426
|
const ownView = useFactsPageView();
|
|
7427
7427
|
const pageView = hostView ?? ownView;
|
|
7428
|
-
const { workspaceId, userId } =
|
|
7428
|
+
const { workspaceId, userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
7429
7429
|
const { data: notes = [], isLoading, isError, refetch } = react.useFacts();
|
|
7430
|
-
const { data: documents } =
|
|
7430
|
+
const { data: documents } = chunkC3YIVBTU_cjs.useConnectedDocuments();
|
|
7431
7431
|
const members = react.useWorkspaceUsers(workspaceId ?? void 0);
|
|
7432
7432
|
const gridApiRef = React9.useRef(null);
|
|
7433
7433
|
const [gridApi, setGridApi] = React9.useState(null);
|
|
@@ -7575,7 +7575,7 @@ function ConnectedFactsPage({
|
|
|
7575
7575
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7576
7576
|
navSlotRef: setNavSlot,
|
|
7577
7577
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7578
|
-
|
|
7578
|
+
chunkJ6U6DIZK_cjs.GridRowNavigator,
|
|
7579
7579
|
{
|
|
7580
7580
|
gridApi,
|
|
7581
7581
|
selectedId: editingId,
|
|
@@ -7811,7 +7811,7 @@ function ConnectedFactsPage({
|
|
|
7811
7811
|
] });
|
|
7812
7812
|
}
|
|
7813
7813
|
function useConnectedShellWorkspaces(options2 = {}) {
|
|
7814
|
-
const { workspaceId, setWorkspace } =
|
|
7814
|
+
const { workspaceId, setWorkspace } = chunkJVXHVFUA_cjs.useConnection();
|
|
7815
7815
|
const query = react.useWorkspaces();
|
|
7816
7816
|
return react.useShellWorkspaces({
|
|
7817
7817
|
...options2,
|
|
@@ -10048,7 +10048,7 @@ function ConnectionSettings({
|
|
|
10048
10048
|
rows,
|
|
10049
10049
|
icon: icon2
|
|
10050
10050
|
}) {
|
|
10051
|
-
const connection =
|
|
10051
|
+
const connection = chunkJVXHVFUA_cjs.useOptionalConnection();
|
|
10052
10052
|
if (!connection) return null;
|
|
10053
10053
|
const { apiUrl, workspaceId, status, user, mode } = connection;
|
|
10054
10054
|
const connected = status === "authenticated" || status === "demo";
|
|
@@ -10354,7 +10354,7 @@ ${emails.join("\n")}`}
|
|
|
10354
10354
|
Invite them by email? Once they sign up, they'll usually get access to this ${workspaceWord()} automatically \u2014 if not, they can request it themselves.`;
|
|
10355
10355
|
function useConnectedWorkspaceSettings(workspaceId, { onLeft } = {}) {
|
|
10356
10356
|
const { notify: notify17, confirm } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
10357
|
-
const { workspaceId: openWorkspaceId, userId } =
|
|
10357
|
+
const { workspaceId: openWorkspaceId, userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
10358
10358
|
const { data: workspaces } = react.useWorkspaces();
|
|
10359
10359
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
10360
10360
|
const update = react.useUpdateWorkspace();
|
|
@@ -10739,7 +10739,7 @@ function ConnectedWorkspaceSettings({
|
|
|
10739
10739
|
}) {
|
|
10740
10740
|
const settings = useConnectedWorkspaceSettings(workspaceId, { onLeft });
|
|
10741
10741
|
const { workspace, members, isOwner, isMember } = settings;
|
|
10742
|
-
const { userId } =
|
|
10742
|
+
const { userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
10743
10743
|
const { data: userSettings } = react.useUserSettings();
|
|
10744
10744
|
const isDeveloper = userSettings?.developer === true;
|
|
10745
10745
|
const showAgents = userSettings?.show_agent_sessions ?? false;
|
|
@@ -10750,13 +10750,13 @@ function ConnectedWorkspaceSettings({
|
|
|
10750
10750
|
const [membersExpanded, setMembersExpanded] = React9.useState(false);
|
|
10751
10751
|
const [shareOpen, setShareOpen] = React9.useState(false);
|
|
10752
10752
|
if (!workspace) {
|
|
10753
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkQ7BS7EOU_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
10753
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQ7BS7EOU_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkJ6U6DIZK_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
10754
10754
|
}
|
|
10755
10755
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
10756
10756
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQ7BS7EOU_cjs.WorkspacePageFrame, { testId, children: [
|
|
10757
10757
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQ7BS7EOU_cjs.WorkspaceIdentityPanel, { children: [
|
|
10758
10758
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10759
|
-
|
|
10759
|
+
chunkJ6U6DIZK_cjs.EntityIdentityBar,
|
|
10760
10760
|
{
|
|
10761
10761
|
testId: "workspace-identity-bar",
|
|
10762
10762
|
canEdit: isOwner,
|
|
@@ -10773,7 +10773,7 @@ function ConnectedWorkspaceSettings({
|
|
|
10773
10773
|
label: "Name",
|
|
10774
10774
|
value: workspace.name,
|
|
10775
10775
|
placeholder: "Untitled",
|
|
10776
|
-
maxLength:
|
|
10776
|
+
maxLength: chunkJ6U6DIZK_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
10777
10777
|
valueClassName: "truncate text-base font-semibold",
|
|
10778
10778
|
testId: "workspace-home-title",
|
|
10779
10779
|
hideLabel: true,
|
|
@@ -11529,36 +11529,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
11529
11529
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
11530
11530
|
const { apiBaseUrl } = chunkB3NYBMDR_cjs.useBlocksEnvironment().runtimeConfig;
|
|
11531
11531
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
11532
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11532
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentCard, { size: "md", children: [
|
|
11533
11533
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11534
|
-
|
|
11534
|
+
chunkPOU4O4D7_cjs.ConsentHeader,
|
|
11535
11535
|
{
|
|
11536
11536
|
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkWALADS2S_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
11537
11537
|
title: "Approve ARBI for SharePoint access",
|
|
11538
11538
|
children: "A member of your organization uses ARBI and wants to sync documents from SharePoint. Your Microsoft 365 organization requires an administrator to approve this once for the whole organization."
|
|
11539
11539
|
}
|
|
11540
11540
|
),
|
|
11541
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11542
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11543
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11541
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentNotice, { tone: "success", title: "Access approved \u2014 you\u2019re all set.", className: "mt-4", children: "People in your organization can now connect SharePoint from their own ARBI account. Nothing is synced until each user connects and chooses what to import." }),
|
|
11542
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentNotice, { tone: "warning", title: "The approval didn\u2019t complete.", className: "mt-4", children: "The request was declined or canceled on the Microsoft screen. You can try again below \u2014 you must sign in with a Microsoft 365 administrator account of your organization." }),
|
|
11543
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
11544
11544
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11545
|
-
|
|
11545
|
+
chunkPOU4O4D7_cjs.ConsentBulletList,
|
|
11546
11546
|
{
|
|
11547
11547
|
items: [
|
|
11548
11548
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11549
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11549
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
11550
11550
|
" \u2014 lets each user who connects their own account import documents from sites they already have access to. ARBI never gets more access than the user has."
|
|
11551
11551
|
] }),
|
|
11552
11552
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11553
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11553
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
11554
11554
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
11555
11555
|
] })
|
|
11556
11556
|
]
|
|
11557
11557
|
}
|
|
11558
11558
|
),
|
|
11559
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11559
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentText, { children: "Approving does not sync anything by itself and grants ARBI no standing access to your tenant. Each user still connects their own Microsoft account, and their tokens are end-to-end encrypted so ARBI\u2019s servers cannot read them at rest." }),
|
|
11560
11560
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, className: "w-full pointer-coarse:h-11", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: consentUrl, children: "Review and approve in Microsoft" }) }),
|
|
11561
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11561
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentText, { variant: "footnote", children: "You\u2019ll sign in at login.microsoftonline.com and see Microsoft\u2019s own summary of these permissions before anything is granted." })
|
|
11562
11562
|
] })
|
|
11563
11563
|
] }) });
|
|
11564
11564
|
}
|
|
@@ -14757,7 +14757,7 @@ function useConnectedWorkspaceList({
|
|
|
14757
14757
|
} = {}) {
|
|
14758
14758
|
const recentlyDeletedHint = labels?.recentlyDeletedHint ?? DEFAULT_WORKSPACE_LIST_LABELS.recentlyDeletedHint;
|
|
14759
14759
|
const { confirm, notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
14760
|
-
const { userId: selfId } =
|
|
14760
|
+
const { userId: selfId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
14761
14761
|
const workspacesQuery = react.useWorkspaces();
|
|
14762
14762
|
const { data: projects } = react.useProjects();
|
|
14763
14763
|
const { data: settings } = react.useUserSettings();
|
|
@@ -14893,7 +14893,7 @@ function ConnectedWorkspaceList({
|
|
|
14893
14893
|
}) {
|
|
14894
14894
|
const list = useConnectedWorkspaceList({ filters, onFiltersChange, labels });
|
|
14895
14895
|
const { openProject } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
14896
|
-
const { workspaceId: currentWorkspaceId, openWorkspace } =
|
|
14896
|
+
const { workspaceId: currentWorkspaceId, openWorkspace } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
14897
14897
|
const [localView, setLocalView] = React9.useState("cards");
|
|
14898
14898
|
const view = controlledView ?? localView;
|
|
14899
14899
|
const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
|
|
@@ -14909,7 +14909,7 @@ function ConnectedWorkspaceList({
|
|
|
14909
14909
|
else void openWorkspace(workspace.external_id, { name: workspace.name });
|
|
14910
14910
|
};
|
|
14911
14911
|
const createDisabledReason = list.canCreateProjects === false ? react.PROJECT_CREATION_DENIED_REASON : void 0;
|
|
14912
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14912
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkJ6U6DIZK_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
14913
14913
|
if (list.error) {
|
|
14914
14914
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14915
14915
|
chunkH6K7EWL2_cjs.HomeLoadError,
|
|
@@ -14982,7 +14982,7 @@ function ConnectedWorkspaceList({
|
|
|
14982
14982
|
workspaceState
|
|
14983
14983
|
}
|
|
14984
14984
|
) })
|
|
14985
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(React9.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14985
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(React9.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkJ6U6DIZK_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH6K7EWL2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14986
14986
|
WorkspaceTableView,
|
|
14987
14987
|
{
|
|
14988
14988
|
list,
|
|
@@ -15224,7 +15224,7 @@ function ProjectsListPage({
|
|
|
15224
15224
|
}
|
|
15225
15225
|
),
|
|
15226
15226
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15227
|
-
|
|
15227
|
+
chunkJ6U6DIZK_cjs.Toolbar,
|
|
15228
15228
|
{
|
|
15229
15229
|
search,
|
|
15230
15230
|
onSearch: setSearch,
|
|
@@ -15285,7 +15285,7 @@ function ProjectsPanel({
|
|
|
15285
15285
|
);
|
|
15286
15286
|
const { data: projects } = react.useProjects();
|
|
15287
15287
|
const canCreateProjects = react.useCanCreateProjects();
|
|
15288
|
-
const { userId } =
|
|
15288
|
+
const { userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
15289
15289
|
const { stripeEnabled } = chunkG4VUVOHZ_cjs.useBillingSupport();
|
|
15290
15290
|
const billingPortal = useOpenBillingPortal();
|
|
15291
15291
|
const [newProjectOpen, setNewProjectOpen] = React9.useState(false);
|
|
@@ -15643,8 +15643,8 @@ var TILE_DEFAULT = 200;
|
|
|
15643
15643
|
var COMPACT_BELOW = 132;
|
|
15644
15644
|
var NO_DOCUMENTS = [];
|
|
15645
15645
|
function useFilesWorkspace() {
|
|
15646
|
-
const { workspaceId, userId, live } =
|
|
15647
|
-
const { members, role } =
|
|
15646
|
+
const { workspaceId, userId, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
15647
|
+
const { members, role } = chunkQU77RRZP_cjs.useConnectedWorkspaceRole();
|
|
15648
15648
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
15649
15649
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
15650
15650
|
return {
|
|
@@ -16478,7 +16478,7 @@ function ProjectDocuments({
|
|
|
16478
16478
|
testId
|
|
16479
16479
|
}) {
|
|
16480
16480
|
const { data: docs = [], isLoading } = react.useDocuments(workspaceId);
|
|
16481
|
-
const documentFilter =
|
|
16481
|
+
const documentFilter = chunkC3YIVBTU_cjs.useDocumentFilter();
|
|
16482
16482
|
const shown = React9.useMemo(() => docs.filter(documentFilter), [docs, documentFilter]);
|
|
16483
16483
|
const { openDocument } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
16484
16484
|
const [selectedIds, setSelectedIds] = React9.useState([]);
|
|
@@ -16559,7 +16559,7 @@ var DEFAULT_PROJECT_PAGE_LABELS = {
|
|
|
16559
16559
|
activity: "Activity"
|
|
16560
16560
|
};
|
|
16561
16561
|
function useSelectWorkspace() {
|
|
16562
|
-
const connection =
|
|
16562
|
+
const connection = chunkJVXHVFUA_cjs.useOptionalConnection();
|
|
16563
16563
|
const { switchWorkspace } = react.useSwitchWorkspace();
|
|
16564
16564
|
return async (id) => {
|
|
16565
16565
|
if (connection) return connection.setWorkspace(id);
|
|
@@ -16587,7 +16587,7 @@ function ConnectedProjectPage({
|
|
|
16587
16587
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
16588
16588
|
};
|
|
16589
16589
|
const { project, usage, isLoading } = useProjectSummary(projectId);
|
|
16590
|
-
const { workspaceId } =
|
|
16590
|
+
const { workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
16591
16591
|
const { notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
16592
16592
|
const selectWorkspace = useSelectWorkspace();
|
|
16593
16593
|
const workspace = project ? primaryProjectWorkspace(project) : void 0;
|
|
@@ -17428,7 +17428,7 @@ function recentConversations(conversations) {
|
|
|
17428
17428
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
17429
17429
|
id: c.external_id,
|
|
17430
17430
|
title: c.title?.trim() || "Untitled thread",
|
|
17431
|
-
subtitle: c.status ? [
|
|
17431
|
+
subtitle: c.status ? [chunkPOU4O4D7_cjs.STATUS_LABELS[chunkPOU4O4D7_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
|
|
17432
17432
|
time: timeAndDate(c.updated_at)
|
|
17433
17433
|
}));
|
|
17434
17434
|
}
|
|
@@ -17465,9 +17465,9 @@ function ConnectedWorkspaceDashboard({
|
|
|
17465
17465
|
testId = "workspace-dashboard"
|
|
17466
17466
|
}) {
|
|
17467
17467
|
const { openDocument, openConversation, hrefFor } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
17468
|
-
const { workspaceId } =
|
|
17469
|
-
const { data: documents } =
|
|
17470
|
-
const { data: conversations } =
|
|
17468
|
+
const { workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
17469
|
+
const { data: documents } = chunkC3YIVBTU_cjs.useListedDocuments();
|
|
17470
|
+
const { data: conversations } = chunkC3YIVBTU_cjs.useConnectedConversations();
|
|
17471
17471
|
const { data: facts = [] } = react.useFacts(workspaceId);
|
|
17472
17472
|
const conversationIcon = /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "CONVERSATION", className: "mt-0.5 size-5 shrink-0" });
|
|
17473
17473
|
const chatRows = React9.useMemo(
|
|
@@ -17742,8 +17742,8 @@ function ConnectedSearchPage({
|
|
|
17742
17742
|
}) {
|
|
17743
17743
|
const l = React9.useMemo(() => ({ ...DEFAULT_CONNECTED_SEARCH_PAGE_LABELS, ...labels }), [labels]);
|
|
17744
17744
|
const { notify: notify17, openDocument } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
17745
|
-
const { workspaceId, live } =
|
|
17746
|
-
const { data: documents } =
|
|
17745
|
+
const { workspaceId, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
17746
|
+
const { data: documents } = chunkC3YIVBTU_cjs.useConnectedDocuments();
|
|
17747
17747
|
const { data: settings } = react.useUserSettings({ enabled: live });
|
|
17748
17748
|
const isOnline = documentTools.useIsOnline();
|
|
17749
17749
|
const scopeDocIds = scope?.docIds ?? null;
|
|
@@ -21179,14 +21179,14 @@ function EventEditorDialog({
|
|
|
21179
21179
|
}) {
|
|
21180
21180
|
const [attendeeQuery, setAttendeeQuery] = React9.useState("");
|
|
21181
21181
|
const people = react.useSearchContacts(editor ? attendeeQuery : "");
|
|
21182
|
-
const { workspaceId, live } =
|
|
21183
|
-
const { data: documents } =
|
|
21182
|
+
const { workspaceId, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
21183
|
+
const { data: documents } = chunkC3YIVBTU_cjs.useConnectedDocuments();
|
|
21184
21184
|
const { data: workspaces = [] } = react.useWorkspaces({ enabled: live });
|
|
21185
21185
|
const uploadFiles = react.useUploadFiles();
|
|
21186
21186
|
const { notify: notify17, runtimeConfig } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
21187
21187
|
const attachmentDocuments = documents.map((document2) => ({
|
|
21188
21188
|
doc_id: document2.external_id,
|
|
21189
|
-
title:
|
|
21189
|
+
title: chunkQU77RRZP_cjs.toWorkflowFieldDocument(document2).title,
|
|
21190
21190
|
url: chunk725OETK3_cjs.buildDeepLinkUrl(
|
|
21191
21191
|
{ workspaceId: workspaceId ?? void 0, documentId: document2.external_id },
|
|
21192
21192
|
runtimeConfig.deploymentDomain
|
|
@@ -21806,7 +21806,7 @@ function useConnectedCalendarCalls() {
|
|
|
21806
21806
|
const canSchedule = react.useCanHostCalls();
|
|
21807
21807
|
const openCallMeetingChat = react.useOpenCallMeetingChat();
|
|
21808
21808
|
const { users: knownUsers } = react.usePeople();
|
|
21809
|
-
const { userId } =
|
|
21809
|
+
const { userId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
21810
21810
|
const me = userId ?? null;
|
|
21811
21811
|
const known = React9.useMemo(
|
|
21812
21812
|
() => knownUsers.map((u) => ({
|
|
@@ -23346,7 +23346,7 @@ function useAddFromUrls({
|
|
|
23346
23346
|
onZipFiles
|
|
23347
23347
|
} = {}) {
|
|
23348
23348
|
const { notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
23349
|
-
const { workspaceId } =
|
|
23349
|
+
const { workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
23350
23350
|
const uploadFromUrls = react.useUploadFromUrls();
|
|
23351
23351
|
return React9.useCallback(
|
|
23352
23352
|
async (urls) => {
|
|
@@ -23435,7 +23435,7 @@ function ConnectedUpload({
|
|
|
23435
23435
|
}) {
|
|
23436
23436
|
const { notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
23437
23437
|
const { openUpgrade } = react.useDocumentHostActions();
|
|
23438
|
-
const { workspaceId, live } =
|
|
23438
|
+
const { workspaceId, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
23439
23439
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
23440
23440
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name ?? "this workspace";
|
|
23441
23441
|
const uploadFiles = react.useUploadFiles();
|
|
@@ -23705,9 +23705,9 @@ function ConnectedTagEntity({
|
|
|
23705
23705
|
onEditClick();
|
|
23706
23706
|
}
|
|
23707
23707
|
};
|
|
23708
|
-
const tooltipContent = showTooltip ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23708
|
+
const tooltipContent = showTooltip ? /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6U6DIZK_cjs.EntityTooltip, { children: [
|
|
23709
23709
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23710
|
-
|
|
23710
|
+
chunkJ6U6DIZK_cjs.EntityTooltipHeader,
|
|
23711
23711
|
{
|
|
23712
23712
|
lead: /* @__PURE__ */ jsxRuntime.jsx(
|
|
23713
23713
|
"span",
|
|
@@ -25199,7 +25199,7 @@ function useDocumentGridSync({
|
|
|
25199
25199
|
const [gridReadyTick, setGridReadyTick] = React9.useState(0);
|
|
25200
25200
|
const [gridApi, setGridApi] = React9.useState(null);
|
|
25201
25201
|
const syncingGridRef = React9.useRef(false);
|
|
25202
|
-
const { userId, workspaceId } =
|
|
25202
|
+
const { userId, workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
25203
25203
|
const hostActions = react.useDocumentHostActions();
|
|
25204
25204
|
const viewingDocumentId = react.useOpenViewerDocumentId();
|
|
25205
25205
|
const familyMeta = React9.useMemo(
|
|
@@ -25428,7 +25428,7 @@ function useDocumentFilters({
|
|
|
25428
25428
|
}) {
|
|
25429
25429
|
const inConversationDocsRef = React9.useRef(inConversationDocuments);
|
|
25430
25430
|
inConversationDocsRef.current = inConversationDocuments;
|
|
25431
|
-
const { userId: currentUserId, workspaceId: selectedWorkspaceId } =
|
|
25431
|
+
const { userId: currentUserId, workspaceId: selectedWorkspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
25432
25432
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
25433
25433
|
const user = members.find((m) => m.user.external_id === currentUserId)?.user;
|
|
25434
25434
|
const offlineIds = react.useOfflineDocumentIds();
|
|
@@ -26162,9 +26162,9 @@ function ConnectedWorkspaceEntity({
|
|
|
26162
26162
|
);
|
|
26163
26163
|
const documentCount2 = (workspace.shared_document_count ?? 0) + (workspace.private_document_count ?? 0);
|
|
26164
26164
|
const conversationCount = (workspace.shared_conversation_count ?? 0) + (workspace.private_conversation_count ?? 0);
|
|
26165
|
-
const tooltipContent = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26165
|
+
const tooltipContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6U6DIZK_cjs.EntityTooltip, { children: [
|
|
26166
26166
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26167
|
-
|
|
26167
|
+
chunkJ6U6DIZK_cjs.EntityTooltipHeader,
|
|
26168
26168
|
{
|
|
26169
26169
|
lead: /* @__PURE__ */ jsxRuntime.jsx(
|
|
26170
26170
|
ui.ShieldIcon,
|
|
@@ -26181,7 +26181,7 @@ function ConnectedWorkspaceEntity({
|
|
|
26181
26181
|
}
|
|
26182
26182
|
),
|
|
26183
26183
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26184
|
-
|
|
26184
|
+
chunkJ6U6DIZK_cjs.EntityTooltipStats,
|
|
26185
26185
|
{
|
|
26186
26186
|
stats: [
|
|
26187
26187
|
{
|
|
@@ -26205,11 +26205,11 @@ function ConnectedWorkspaceEntity({
|
|
|
26205
26205
|
]
|
|
26206
26206
|
}
|
|
26207
26207
|
),
|
|
26208
|
-
workspace.updated_at && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26208
|
+
workspace.updated_at && /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6U6DIZK_cjs.EntityTooltipHint, { children: [
|
|
26209
26209
|
"Updated ",
|
|
26210
26210
|
ui.formatFriendlyDate(workspace.updated_at)
|
|
26211
26211
|
] }),
|
|
26212
|
-
interactive && variant !== "icon" && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26212
|
+
interactive && variant !== "icon" && /* @__PURE__ */ jsxRuntime.jsxs(chunkJ6U6DIZK_cjs.EntityTooltipHint, { icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "WORKSPACE", className: "w-3 h-3" }), children: [
|
|
26213
26213
|
"Click to open ",
|
|
26214
26214
|
ui.getEntityLabel("WORKSPACE").toLowerCase(),
|
|
26215
26215
|
" settings"
|
|
@@ -26250,7 +26250,7 @@ function OpenableWorkspacePill({
|
|
|
26250
26250
|
className,
|
|
26251
26251
|
labelMaxWidth
|
|
26252
26252
|
}) {
|
|
26253
|
-
const { openWorkspace } =
|
|
26253
|
+
const { openWorkspace } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
26254
26254
|
const onClick = React9.useCallback(
|
|
26255
26255
|
(e) => {
|
|
26256
26256
|
e.stopPropagation();
|
|
@@ -26325,7 +26325,7 @@ function useBatchCompleteToasts() {
|
|
|
26325
26325
|
}
|
|
26326
26326
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
26327
26327
|
} else if (message.batch_type === "entity_extract") {
|
|
26328
|
-
say(`${
|
|
26328
|
+
say(`${chunkJ6U6DIZK_cjs.entitiesPhrase()} extracted from ${chunkJ6U6DIZK_cjs.documentCount(docIds.length)}`, "success", {
|
|
26329
26329
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
26330
26330
|
});
|
|
26331
26331
|
} else if (message.batch_type === "upload") {
|
|
@@ -27624,7 +27624,7 @@ function withMissingTableViews(all, views, workspaceId, table) {
|
|
|
27624
27624
|
function useTableViews(table) {
|
|
27625
27625
|
const { data: userSettings, isSuccess: settingsLoaded } = react.useUserSettings();
|
|
27626
27626
|
const updateUserSettings = react.useUpdateUserSettings();
|
|
27627
|
-
const { workspaceId } =
|
|
27627
|
+
const { workspaceId } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
27628
27628
|
const all = userSettings?.tableviews;
|
|
27629
27629
|
const savedViews = React9.useMemo(() => viewsOfTable(all, workspaceId, table), [all, workspaceId, table]);
|
|
27630
27630
|
const writeViews = React9.useCallback(
|
|
@@ -28062,16 +28062,16 @@ function ConnectedFilesPage({
|
|
|
28062
28062
|
}) {
|
|
28063
28063
|
const { openDocument } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
28064
28064
|
const { data: rawDocuments, isLoading } = react.useDocuments();
|
|
28065
|
-
const documentFilter =
|
|
28065
|
+
const documentFilter = chunkC3YIVBTU_cjs.useDocumentFilter();
|
|
28066
28066
|
const documents = React9.useMemo(
|
|
28067
|
-
() =>
|
|
28067
|
+
() => chunkC3YIVBTU_cjs.listedDocuments(rawDocuments ?? NO_DOCUMENTS3, documentFilter),
|
|
28068
28068
|
[rawDocuments, documentFilter]
|
|
28069
28069
|
);
|
|
28070
28070
|
const isProgressiveLoading = react.useDocumentsLoading();
|
|
28071
28071
|
const deleteDocuments = react.useDeleteDocuments();
|
|
28072
28072
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
28073
|
-
const { workspaceId, userId, live } =
|
|
28074
|
-
const { role, members } =
|
|
28073
|
+
const { workspaceId, userId, live } = chunkJVXHVFUA_cjs.useConnectedWorkspace();
|
|
28074
|
+
const { role, members } = chunkQU77RRZP_cjs.useConnectedWorkspaceRole();
|
|
28075
28075
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
28076
28076
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
28077
28077
|
const isMember = role != null;
|
|
@@ -28486,7 +28486,7 @@ function ConnectedFilesPage({
|
|
|
28486
28486
|
viewMode === "grid" ? (
|
|
28487
28487
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
28488
28488
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28489
|
-
|
|
28489
|
+
chunkJ6U6DIZK_cjs.GridRowNavigator,
|
|
28490
28490
|
{
|
|
28491
28491
|
gridApi,
|
|
28492
28492
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -28717,6 +28717,20 @@ function ConnectedAiReviewHost(props) {
|
|
|
28717
28717
|
const setOpen = useAiReviewStore((s) => s.setOpen);
|
|
28718
28718
|
return /* @__PURE__ */ jsxRuntime.jsx(ConnectedAiReview, { open, onOpenChange: setOpen, ...props });
|
|
28719
28719
|
}
|
|
28720
|
+
function ConnectedGridView(props) {
|
|
28721
|
+
const { persistState, gridId } = props;
|
|
28722
|
+
const session = react.useArbiSessionStore();
|
|
28723
|
+
const { setGridState } = session;
|
|
28724
|
+
const gridState = persistState && gridId ? session.getState().grid.states[gridId] : void 0;
|
|
28725
|
+
const onGridStateChange = React9.useCallback(
|
|
28726
|
+
(state) => {
|
|
28727
|
+
if (!persistState || !gridId) return;
|
|
28728
|
+
setGridState(gridId, state);
|
|
28729
|
+
},
|
|
28730
|
+
[persistState, gridId, setGridState]
|
|
28731
|
+
);
|
|
28732
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkLKK52DEY_cjs.GridView, { ...props, gridState, onGridStateChange });
|
|
28733
|
+
}
|
|
28720
28734
|
function WatchOne({ transferId }) {
|
|
28721
28735
|
const { data: job } = react.useWorkspaceTransfer(transferId);
|
|
28722
28736
|
const { data: workspaces = [] } = react.useWorkspaces();
|
|
@@ -30043,7 +30057,7 @@ function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
|
30043
30057
|
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
30044
30058
|
[]
|
|
30045
30059
|
);
|
|
30046
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30060
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
30047
30061
|
}
|
|
30048
30062
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
30049
30063
|
const { notify: notify17 } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
@@ -30160,7 +30174,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
30160
30174
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify17]);
|
|
30161
30175
|
if (editAgent) {
|
|
30162
30176
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30163
|
-
|
|
30177
|
+
chunkPOU4O4D7_cjs.AgentEditView,
|
|
30164
30178
|
{
|
|
30165
30179
|
agentName: editAgent.name,
|
|
30166
30180
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -30176,7 +30190,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
30176
30190
|
}
|
|
30177
30191
|
if (view === "main") {
|
|
30178
30192
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30179
|
-
|
|
30193
|
+
chunkPOU4O4D7_cjs.AgentMainView,
|
|
30180
30194
|
{
|
|
30181
30195
|
onConnectExternal: () => setView("connect"),
|
|
30182
30196
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -30192,11 +30206,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
30192
30206
|
}
|
|
30193
30207
|
if (result) {
|
|
30194
30208
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30195
|
-
|
|
30209
|
+
chunkPOU4O4D7_cjs.AgentCreatedView,
|
|
30196
30210
|
{
|
|
30197
30211
|
email: result.email,
|
|
30198
30212
|
signingKey: result.signingKey,
|
|
30199
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30213
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
30200
30214
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
30201
30215
|
isConfigOpen: configOpen,
|
|
30202
30216
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -30205,7 +30219,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
30205
30219
|
);
|
|
30206
30220
|
}
|
|
30207
30221
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30208
|
-
|
|
30222
|
+
chunkPOU4O4D7_cjs.AgentCreateView,
|
|
30209
30223
|
{
|
|
30210
30224
|
name,
|
|
30211
30225
|
onNameChange: setName,
|
|
@@ -31904,14 +31918,14 @@ var referencesOf = (inputs) => {
|
|
|
31904
31918
|
return value?.documents ?? [];
|
|
31905
31919
|
};
|
|
31906
31920
|
var PROMPT_BINDINGS = {
|
|
31907
|
-
[
|
|
31921
|
+
[chunkPOU4O4D7_cjs.GENERATE_IMAGE_ID]: {
|
|
31908
31922
|
attachScope: false,
|
|
31909
31923
|
tools: (inputs) => {
|
|
31910
31924
|
const aspectRatio = typeof inputs.aspect_ratio === "string" ? inputs.aspect_ratio : "";
|
|
31911
31925
|
return {
|
|
31912
31926
|
retrieval_chunk: browser.buildRetrievalChunkTool([]),
|
|
31913
31927
|
retrieval_full_context: browser.buildRetrievalFullContextTool(referencesOf(inputs)),
|
|
31914
|
-
...aspectRatio && aspectRatio !==
|
|
31928
|
+
...aspectRatio && aspectRatio !== chunkPOU4O4D7_cjs.IMAGE_ASPECT_AUTO ? {
|
|
31915
31929
|
image_generation: {
|
|
31916
31930
|
name: "image_generation",
|
|
31917
31931
|
description: "image generation",
|
|
@@ -31947,7 +31961,7 @@ function useWorkflowTasks() {
|
|
|
31947
31961
|
);
|
|
31948
31962
|
const create4 = React9.useCallback(
|
|
31949
31963
|
async (ctx, forceWorkflow = false) => {
|
|
31950
|
-
const request =
|
|
31964
|
+
const request = chunkPOU4O4D7_cjs.taskComposerToCreateRequest(
|
|
31951
31965
|
{ ...ctx, documentTitles, plan: ctx.plan ?? null },
|
|
31952
31966
|
activeWorkspaceId ?? void 0,
|
|
31953
31967
|
forceWorkflow
|
|
@@ -31989,7 +32003,7 @@ function useWorkflowTasks() {
|
|
|
31989
32003
|
);
|
|
31990
32004
|
const update = React9.useCallback(
|
|
31991
32005
|
async (task, ctx) => {
|
|
31992
|
-
const patch =
|
|
32006
|
+
const patch = chunkPOU4O4D7_cjs.taskComposerToUpdateRequest({ ...ctx, plan: ctx.plan ?? null });
|
|
31993
32007
|
if (task.is_owner === false) delete patch.shared;
|
|
31994
32008
|
await updateConversation.mutateAsync({ conversationId: task.external_id, patch });
|
|
31995
32009
|
},
|
|
@@ -31997,7 +32011,7 @@ function useWorkflowTasks() {
|
|
|
31997
32011
|
);
|
|
31998
32012
|
const updateWorkflow = React9.useCallback(
|
|
31999
32013
|
async (workflow, ctx) => {
|
|
32000
|
-
const patch =
|
|
32014
|
+
const patch = chunkPOU4O4D7_cjs.composerToWorkflowUpdate({ ...ctx, documentTitles, plan: ctx.plan ?? null });
|
|
32001
32015
|
if (workflow.is_owner === false) delete patch.shared;
|
|
32002
32016
|
const workspaceId = workflow.workspace_ext_id ?? activeWorkspaceId;
|
|
32003
32017
|
const updated = await updateWorkflowMutation.mutateAsync({
|
|
@@ -32027,7 +32041,7 @@ var text = (inputs, name) => {
|
|
|
32027
32041
|
function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
32028
32042
|
const { data: documents = [] } = react.useDocuments();
|
|
32029
32043
|
const { data: workspaceTags = [] } = react.useTags();
|
|
32030
|
-
const tags = React9.useMemo(() =>
|
|
32044
|
+
const tags = React9.useMemo(() => chunkSSYRPBL5_cjs.documentScopeLabels(workspaceTags), [workspaceTags]);
|
|
32031
32045
|
const createTag = react.useCreateTag();
|
|
32032
32046
|
const updateTag = react.useUpdateTag();
|
|
32033
32047
|
const generate = react.useGenerateDocTags();
|
|
@@ -32038,8 +32052,8 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
32038
32052
|
const annotate = React9.useCallback(
|
|
32039
32053
|
async ({ inputs, scope }) => {
|
|
32040
32054
|
const description = text(inputs, "description");
|
|
32041
|
-
const name = text(inputs, "name") ||
|
|
32042
|
-
const matching =
|
|
32055
|
+
const name = text(inputs, "name") || chunkPOU4O4D7_cjs.deriveAnnotationName(description);
|
|
32056
|
+
const matching = chunkSSYRPBL5_cjs.matchWorkflowScope(documents, scope);
|
|
32043
32057
|
if (!name || !description || matching.length === 0) return;
|
|
32044
32058
|
try {
|
|
32045
32059
|
const existing = tags.find((t) => t.name.toLowerCase() === name.toLowerCase());
|
|
@@ -32082,9 +32096,9 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
32082
32096
|
async (launch) => {
|
|
32083
32097
|
const { workflow, inputs, scope, agentId } = launch;
|
|
32084
32098
|
if (workflow.run.kind === "operation") {
|
|
32085
|
-
if (workflow.id ===
|
|
32099
|
+
if (workflow.id === chunkPOU4O4D7_cjs.ANNOTATE_ID) {
|
|
32086
32100
|
await annotate(launch);
|
|
32087
|
-
|
|
32101
|
+
chunkPOU4O4D7_cjs.recordWorkflowUse(workflow.id);
|
|
32088
32102
|
return;
|
|
32089
32103
|
}
|
|
32090
32104
|
throw new Error(`No host handler for workflow "${workflow.id}"`);
|
|
@@ -32094,7 +32108,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
32094
32108
|
);
|
|
32095
32109
|
const prompt = chunk76L6LOP3_cjs.composeWorkflowPrompt(workflow, inputs, { documentTitles });
|
|
32096
32110
|
if (!prompt) return;
|
|
32097
|
-
|
|
32111
|
+
chunkPOU4O4D7_cjs.recordWorkflowUse(workflow.id);
|
|
32098
32112
|
if (agentId) {
|
|
32099
32113
|
try {
|
|
32100
32114
|
const created = await createTask({
|
|
@@ -32139,7 +32153,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
32139
32153
|
const binding = PROMPT_BINDINGS[workflow.id];
|
|
32140
32154
|
if (!inPlace) openNewConversation();
|
|
32141
32155
|
if (binding?.attachScope !== false && !chunk76L6LOP3_cjs.isEmptyWorkflowScope(scope)) {
|
|
32142
|
-
const ids =
|
|
32156
|
+
const ids = chunkSSYRPBL5_cjs.matchWorkflowScope(documents, scope).map((d) => d.external_id);
|
|
32143
32157
|
if (ids.length > 0) {
|
|
32144
32158
|
session.setConversationDocuments(
|
|
32145
32159
|
inPlace ? session.getState().conversationId ?? "new" : "new",
|
|
@@ -32174,30 +32188,30 @@ function ConnectedWorkflowStart({
|
|
|
32174
32188
|
const onLaunch = useLaunchWorkflow({ landing });
|
|
32175
32189
|
const { openUpload } = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
32176
32190
|
const { data: workspaceTags = [] } = react.useTags();
|
|
32177
|
-
const tags = React9.useMemo(() =>
|
|
32191
|
+
const tags = React9.useMemo(() => chunkSSYRPBL5_cjs.documentScopeLabels(workspaceTags), [workspaceTags]);
|
|
32178
32192
|
const fieldPlaceholder = React9.useCallback(
|
|
32179
32193
|
(field, inputs, workflow) => {
|
|
32180
|
-
if (workflow.id !==
|
|
32181
|
-
const derived =
|
|
32194
|
+
if (workflow.id !== chunkPOU4O4D7_cjs.ANNOTATE_ID || field.name !== "name") return void 0;
|
|
32195
|
+
const derived = chunkPOU4O4D7_cjs.deriveAnnotationName(String(inputs.description ?? ""));
|
|
32182
32196
|
return derived ? `Otherwise \u201C${derived}\u201D` : "Taken from the description";
|
|
32183
32197
|
},
|
|
32184
32198
|
[]
|
|
32185
32199
|
);
|
|
32186
32200
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32187
|
-
|
|
32201
|
+
chunkQU77RRZP_cjs.ConnectedWorkflowLauncher,
|
|
32188
32202
|
{
|
|
32189
32203
|
...rest,
|
|
32190
32204
|
workflows,
|
|
32191
32205
|
onLaunch,
|
|
32192
|
-
renderIcon:
|
|
32206
|
+
renderIcon: chunkPOU4O4D7_cjs.renderWorkflowIcon,
|
|
32193
32207
|
onAddFiles: openUpload,
|
|
32194
32208
|
agentLabels: AGENT_LABELS,
|
|
32195
32209
|
addFilesAction,
|
|
32196
32210
|
fieldPlaceholder,
|
|
32197
|
-
submitLabel: ({ workflow, matchedCount }) => workflow.id ===
|
|
32211
|
+
submitLabel: ({ workflow, matchedCount }) => workflow.id === chunkPOU4O4D7_cjs.ANNOTATE_ID && matchedCount !== null ? `Annotate ${matchedCount} document${matchedCount !== 1 ? "s" : ""}` : void 0,
|
|
32198
32212
|
renderNotice: ({ workflow, inputs }) => {
|
|
32199
|
-
if (workflow.id !==
|
|
32200
|
-
const name = String(inputs.name ?? "").trim() ||
|
|
32213
|
+
if (workflow.id !== chunkPOU4O4D7_cjs.ANNOTATE_ID) return null;
|
|
32214
|
+
const name = String(inputs.name ?? "").trim() || chunkPOU4O4D7_cjs.deriveAnnotationName(String(inputs.description ?? ""));
|
|
32201
32215
|
const existing = name ? tags.find((t) => t.name.toLowerCase() === name.toLowerCase()) : void 0;
|
|
32202
32216
|
if (!existing) return null;
|
|
32203
32217
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -32228,25 +32242,25 @@ function useSkillsEnabled() {
|
|
|
32228
32242
|
// src/connection/workflows/useWorkflowDefinitions.ts
|
|
32229
32243
|
function useWorkflowDefinitions() {
|
|
32230
32244
|
const { data: listings } = react.useSkills();
|
|
32231
|
-
const usage =
|
|
32245
|
+
const usage = chunkPOU4O4D7_cjs.useWorkflowUsage();
|
|
32232
32246
|
const skillsEnabled = useSkillsEnabled();
|
|
32233
32247
|
return React9.useMemo(() => {
|
|
32234
32248
|
const { host: builtins, skills: fromServer } = chunk76L6LOP3_cjs.mergeSkillWorkflows(
|
|
32235
|
-
|
|
32249
|
+
chunkPOU4O4D7_cjs.WEB_WORKFLOWS,
|
|
32236
32250
|
listings ?? []
|
|
32237
32251
|
);
|
|
32238
32252
|
const all = [...builtins, ...fromServer];
|
|
32239
32253
|
const byId = new Map(all.map((w) => [w.id, w]));
|
|
32240
|
-
const pinned =
|
|
32254
|
+
const pinned = chunkPOU4O4D7_cjs.DASHBOARD_PINNED.flatMap((id) => {
|
|
32241
32255
|
const w = byId.get(id);
|
|
32242
32256
|
return w ? [w] : [];
|
|
32243
32257
|
});
|
|
32244
32258
|
return {
|
|
32245
32259
|
skills: all,
|
|
32246
32260
|
skillsEnabled,
|
|
32247
|
-
start: skillsEnabled ? [...builtins, ...
|
|
32248
|
-
dashboard: [...pinned, ...
|
|
32249
|
-
forTasks: [
|
|
32261
|
+
start: skillsEnabled ? [...builtins, ...chunkPOU4O4D7_cjs.sortByRecentUse(fromServer, usage)] : [],
|
|
32262
|
+
dashboard: [...pinned, ...chunkPOU4O4D7_cjs.DASHBOARD_OPERATIONS],
|
|
32263
|
+
forTasks: [chunkPOU4O4D7_cjs.CUSTOM_TASK, ...all.filter((w) => w.schedulable), chunkPOU4O4D7_cjs.REMIND_TASK]
|
|
32250
32264
|
};
|
|
32251
32265
|
}, [listings, usage, skillsEnabled]);
|
|
32252
32266
|
}
|
|
@@ -32268,7 +32282,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
32268
32282
|
function useWorkflowLaunch() {
|
|
32269
32283
|
const { skills } = useWorkflowDefinitions();
|
|
32270
32284
|
const launch = React9.useCallback(
|
|
32271
|
-
(workflowId, options2 = {}) =>
|
|
32285
|
+
(workflowId, options2 = {}) => chunkPOU4O4D7_cjs.openWorkflowLaunch({ workflowId, ...options2 }),
|
|
32272
32286
|
[]
|
|
32273
32287
|
);
|
|
32274
32288
|
const itemsFor = React9.useCallback(
|
|
@@ -32297,8 +32311,8 @@ function useWorkflowLaunch() {
|
|
|
32297
32311
|
return { launch, itemsFor, scopeItemsFor };
|
|
32298
32312
|
}
|
|
32299
32313
|
function Inner() {
|
|
32300
|
-
const request =
|
|
32301
|
-
const close =
|
|
32314
|
+
const request = chunkPOU4O4D7_cjs.useWorkflowLaunchRequest();
|
|
32315
|
+
const close = chunkPOU4O4D7_cjs.closeWorkflowLaunch;
|
|
32302
32316
|
const { skills } = useWorkflowDefinitions();
|
|
32303
32317
|
const run = useLaunchWorkflow({ landing: request?.landing });
|
|
32304
32318
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -32336,7 +32350,7 @@ function Inner() {
|
|
|
32336
32350
|
);
|
|
32337
32351
|
}
|
|
32338
32352
|
function WorkflowLaunchHost() {
|
|
32339
|
-
return
|
|
32353
|
+
return chunkPOU4O4D7_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
32340
32354
|
}
|
|
32341
32355
|
var BUILTIN_GLOBAL_DIALOGS = {
|
|
32342
32356
|
quota: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedQuotaDialog, { info: props, onClose }),
|
|
@@ -32395,7 +32409,7 @@ var ConversationEntity = React9.memo(function ConversationEntity2({
|
|
|
32395
32409
|
);
|
|
32396
32410
|
const icon2 = /* @__PURE__ */ jsxRuntime.jsx(ui.ThreadVisibilityIcon, { shared: isShared, className: `${iconSizeClass} shrink-0` });
|
|
32397
32411
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32398
|
-
|
|
32412
|
+
chunkPOU4O4D7_cjs.EntityChip,
|
|
32399
32413
|
{
|
|
32400
32414
|
variant,
|
|
32401
32415
|
icon: icon2,
|
|
@@ -32417,7 +32431,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
32417
32431
|
});
|
|
32418
32432
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
32419
32433
|
const me = react.useArbiSession().user?.external_id;
|
|
32420
|
-
const steps =
|
|
32434
|
+
const steps = chunkPOU4O4D7_cjs.fromPlanSteps(conversation.plan?.steps ?? []);
|
|
32421
32435
|
const states = chunkEZLZ3MDU_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
32422
32436
|
const nameOf = (id) => {
|
|
32423
32437
|
if (id === me) return "you";
|
|
@@ -32425,7 +32439,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
32425
32439
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
32426
32440
|
};
|
|
32427
32441
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32428
|
-
|
|
32442
|
+
chunkPOU4O4D7_cjs.WorkflowRunStatus,
|
|
32429
32443
|
{
|
|
32430
32444
|
steps,
|
|
32431
32445
|
states,
|
|
@@ -32459,7 +32473,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
32459
32473
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
32460
32474
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
32461
32475
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32462
|
-
|
|
32476
|
+
chunkPOU4O4D7_cjs.ThreadStatusLine,
|
|
32463
32477
|
{
|
|
32464
32478
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
32465
32479
|
className: "h-full",
|
|
@@ -32791,16 +32805,16 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32791
32805
|
const openWorkflow = chunkB3NYBMDR_cjs.useOpenWorkflow();
|
|
32792
32806
|
const workspaceExtId = react.useArbiSessionState((s) => s.workspaceId);
|
|
32793
32807
|
const task = conversations.find((c) => c.external_id === conversationId);
|
|
32794
|
-
const latestMessageAt =
|
|
32808
|
+
const latestMessageAt = chunkPOU4O4D7_cjs.latestMessageTime(messageHistory);
|
|
32795
32809
|
const events = (activity.data ?? []).filter(
|
|
32796
|
-
(event) => !
|
|
32810
|
+
(event) => !chunkPOU4O4D7_cjs.isSupersededStop(event, latestMessageAt)
|
|
32797
32811
|
);
|
|
32798
32812
|
const personName = (extId) => {
|
|
32799
32813
|
const person = members.find((m) => m.user.external_id === extId)?.user;
|
|
32800
32814
|
return person ? ui.getUserDisplayName(person) : "someone";
|
|
32801
32815
|
};
|
|
32802
|
-
const planSteps =
|
|
32803
|
-
const entries =
|
|
32816
|
+
const planSteps = chunkPOU4O4D7_cjs.fromPlanSteps(task?.plan?.steps ?? []);
|
|
32817
|
+
const entries = chunkPOU4O4D7_cjs.compactThreadActivity(events, (id) => planSteps.find((s) => s.id === id)?.title);
|
|
32804
32818
|
const items = entries.map(({ event, label, recipients }) => {
|
|
32805
32819
|
const messageActivity = [
|
|
32806
32820
|
"created",
|
|
@@ -32826,7 +32840,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32826
32840
|
const messageId = sourceMessage ?? [...messageHistory].reverse().find((message) => Date.parse(message.created_at ?? "") <= Date.parse(event.created_at))?.external_id ?? messageHistory[0]?.external_id;
|
|
32827
32841
|
const doc = docId ? docs.find((d) => d.external_id === docId) : void 0;
|
|
32828
32842
|
const mailDraftId = event.kind === "notified" && event.detail?.event === "mail_draft_ready" && typeof event.detail?.mail_id === "string" ? event.detail.mail_id : void 0;
|
|
32829
|
-
const missed = event.kind === "notified" && recipients.length ?
|
|
32843
|
+
const missed = event.kind === "notified" && recipients.length ? chunkPOU4O4D7_cjs.unnotifiedMentions(
|
|
32830
32844
|
messageHistory.find((message) => message.external_id === sourceMessage)?.mentions,
|
|
32831
32845
|
recipients,
|
|
32832
32846
|
event.actor_ext_id
|
|
@@ -32841,7 +32855,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32841
32855
|
step: typeof event.detail?.step === "string" ? event.detail.step : void 0,
|
|
32842
32856
|
createdAt: event.created_at,
|
|
32843
32857
|
card: callDetail ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
32844
|
-
|
|
32858
|
+
chunkBIWPXSGS_cjs.ThreadCallLogCard,
|
|
32845
32859
|
{
|
|
32846
32860
|
detail: callDetail,
|
|
32847
32861
|
name: personName,
|
|
@@ -32849,7 +32863,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32849
32863
|
time: ui.formatRelativeTime(event.created_at, { style: "short" })
|
|
32850
32864
|
}
|
|
32851
32865
|
) : recordingCall ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
32852
|
-
|
|
32866
|
+
chunkBIWPXSGS_cjs.RecordingCard,
|
|
32853
32867
|
{
|
|
32854
32868
|
callExtId: recordingCall,
|
|
32855
32869
|
recordingExtId: recordingId,
|
|
@@ -32859,7 +32873,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32859
32873
|
) : void 0,
|
|
32860
32874
|
docId,
|
|
32861
32875
|
docTitle: doc ? ui.getDocumentTitle(doc) : void 0,
|
|
32862
|
-
label: mailDraftId ? "Left a draft email" : event.kind === "notified" && recipients.length ?
|
|
32876
|
+
label: mailDraftId ? "Left a draft email" : event.kind === "notified" && recipients.length ? chunkPOU4O4D7_cjs.notifiedLabel(recipients.map(personName), missed.map(personName)) : label,
|
|
32863
32877
|
description: [
|
|
32864
32878
|
name,
|
|
32865
32879
|
label,
|
|
@@ -32873,7 +32887,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32873
32887
|
stepChip: eventStep ? stepChipOf(eventStep, event.kind, stepDocument) : void 0,
|
|
32874
32888
|
// No avatar tooltip: the entry is already a button (or titled row) that carries the same
|
|
32875
32889
|
// details, and a tooltip trigger inside it would be a nested <button>.
|
|
32876
|
-
avatar: assistant ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
32890
|
+
avatar: assistant ? /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.AssistantEntity, { variant: "icon", size: 20, showTooltip: false }) : member ? /* @__PURE__ */ jsxRuntime.jsx(DocumentUser, { user: member, tooltip: false }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "size-4 text-muted-foreground" }),
|
|
32877
32891
|
time: ui.formatRelativeTime(event.created_at, { style: "short" }),
|
|
32878
32892
|
exactTime: ui.formatFriendlyDate(event.created_at),
|
|
32879
32893
|
onOpenDocument: docId && doc ? () => openDocument(docId) : void 0,
|
|
@@ -32922,7 +32936,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32922
32936
|
onSelect: () => navigateToConversation(source)
|
|
32923
32937
|
});
|
|
32924
32938
|
}
|
|
32925
|
-
const links =
|
|
32939
|
+
const links = chunkPOU4O4D7_cjs.linkedRunsFromActivity(activity.data);
|
|
32926
32940
|
const threadName = (id, workflowId) => conversations.find((c) => c.external_id === id)?.title || workflows.find((w) => w.external_id === workflowId)?.name || "Linked thread";
|
|
32927
32941
|
const signals = links.raised.map((raised) => ({
|
|
32928
32942
|
step: raised.step,
|
|
@@ -32937,7 +32951,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
32937
32951
|
if (links.startedBy) {
|
|
32938
32952
|
const { conversationId: parentId, step, signal } = links.startedBy;
|
|
32939
32953
|
const parent = conversations.find((c) => c.external_id === parentId);
|
|
32940
|
-
const parentSteps =
|
|
32954
|
+
const parentSteps = chunkPOU4O4D7_cjs.fromPlanSteps(parent?.plan?.steps ?? []);
|
|
32941
32955
|
startedBy = {
|
|
32942
32956
|
stepTitle: parentSteps.find((s) => s.id === step)?.title ?? step ?? "a step",
|
|
32943
32957
|
threadTitle: parent?.title || "another thread",
|
|
@@ -32970,7 +32984,7 @@ function ConnectedThreadTaskBar({
|
|
|
32970
32984
|
const person = members.find((m) => m.user.external_id === id)?.user;
|
|
32971
32985
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
32972
32986
|
};
|
|
32973
|
-
const steps =
|
|
32987
|
+
const steps = chunkPOU4O4D7_cjs.fromPlanSteps(task?.plan?.steps ?? []);
|
|
32974
32988
|
const states = chunkEZLZ3MDU_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
32975
32989
|
const runInputs = task?.skill_inputs ?? {};
|
|
32976
32990
|
const stepCall = (body) => actOnStep.mutateAsync({ conversationId, body });
|
|
@@ -32996,7 +33010,7 @@ function ConnectedThreadTaskBar({
|
|
|
32996
33010
|
task?.plan?.steps?.length ? (
|
|
32997
33011
|
// A workflow run: its named steps, with what happened in the thread under each.
|
|
32998
33012
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32999
|
-
|
|
33013
|
+
chunkPOU4O4D7_cjs.WorkflowThreadStrip,
|
|
33000
33014
|
{
|
|
33001
33015
|
steps,
|
|
33002
33016
|
states,
|
|
@@ -33023,7 +33037,7 @@ function ConnectedThreadTaskBar({
|
|
|
33023
33037
|
renderStepAction: (step, phase) => (
|
|
33024
33038
|
// A signer or a draft's person acts on their step even on a thread they cannot edit.
|
|
33025
33039
|
canEdit || phase === "waiting" || phase === "done" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33026
|
-
|
|
33040
|
+
chunkPOU4O4D7_cjs.WorkflowStepAction,
|
|
33027
33041
|
{
|
|
33028
33042
|
step,
|
|
33029
33043
|
phase,
|
|
@@ -33044,8 +33058,8 @@ function ConnectedThreadTaskBar({
|
|
|
33044
33058
|
}
|
|
33045
33059
|
)
|
|
33046
33060
|
) : items.length || startedBy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
33047
|
-
startedBy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33048
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33061
|
+
startedBy && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.WorkflowThreadStartedBy, { origin: startedBy }),
|
|
33062
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.TaskFlow, { items: items.filter((item) => !item.step) })
|
|
33049
33063
|
] }) : (
|
|
33050
33064
|
// Ordinary chats record no activity events, so an empty ribbon says nothing rather than
|
|
33051
33065
|
// "No recorded activity yet" while the answer and its steps are right there in the thread.
|
|
@@ -33079,7 +33093,7 @@ function ConnectedThreadTaskBar({
|
|
|
33079
33093
|
) }),
|
|
33080
33094
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuContent, { align: "end", children: [
|
|
33081
33095
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33082
|
-
|
|
33096
|
+
chunkJ6U6DIZK_cjs.ThreadFollowMenuItem,
|
|
33083
33097
|
{
|
|
33084
33098
|
following: follow.following,
|
|
33085
33099
|
onFollowingChange: (on) => (
|
|
@@ -33244,7 +33258,7 @@ function ConnectedTaskComposer({
|
|
|
33244
33258
|
const { tasks: allTasks } = react.useWorkItems();
|
|
33245
33259
|
const { data: documents = [] } = react.useDocuments();
|
|
33246
33260
|
const { create: create4, update, updateWorkflow, isPending } = useWorkflowTasks();
|
|
33247
|
-
const scopeSource =
|
|
33261
|
+
const scopeSource = chunkQU77RRZP_cjs.useConnectedWorkflowScopeSource();
|
|
33248
33262
|
const activeWorkspaceId = react.useArbiSessionState((s) => s.workspaceId);
|
|
33249
33263
|
const activeWorkspace = React9.useMemo(
|
|
33250
33264
|
() => workspaces.find((w) => w.external_id === activeWorkspaceId) ?? null,
|
|
@@ -33261,7 +33275,7 @@ function ConnectedTaskComposer({
|
|
|
33261
33275
|
const label = (t) => t.title?.trim() || "Untitled task";
|
|
33262
33276
|
if (isWorkflow) return allTasks.map((t) => ({ id: t.external_id, name: label(t) }));
|
|
33263
33277
|
const subject = task ?? { external_id: "__new__" };
|
|
33264
|
-
return
|
|
33278
|
+
return chunkPOU4O4D7_cjs.moveTargets(
|
|
33265
33279
|
[...allTasks.filter((t) => t.external_id !== subject.external_id), subject],
|
|
33266
33280
|
subject
|
|
33267
33281
|
).map((t) => ({ id: t.external_id, name: label(t) }));
|
|
@@ -33276,33 +33290,33 @@ function ConnectedTaskComposer({
|
|
|
33276
33290
|
);
|
|
33277
33291
|
const initialValues = React9.useMemo(() => {
|
|
33278
33292
|
const ids = {
|
|
33279
|
-
customWorkflowId:
|
|
33280
|
-
reminderWorkflowId:
|
|
33293
|
+
customWorkflowId: chunkPOU4O4D7_cjs.CUSTOM_TASK_ID,
|
|
33294
|
+
reminderWorkflowId: chunkPOU4O4D7_cjs.REMIND_TASK_ID,
|
|
33281
33295
|
definitions: forTasks
|
|
33282
33296
|
};
|
|
33283
33297
|
const base = launchWorkflow ? {
|
|
33284
|
-
...
|
|
33298
|
+
...chunkPOU4O4D7_cjs.workflowToComposerValues(launchWorkflow, ids),
|
|
33285
33299
|
when: "once",
|
|
33286
33300
|
runAt: "",
|
|
33287
33301
|
rrule: "",
|
|
33288
33302
|
eventKind: "",
|
|
33289
33303
|
afterTaskId: "",
|
|
33290
33304
|
name: ""
|
|
33291
|
-
} : editingWorkflow ?
|
|
33305
|
+
} : editingWorkflow ? chunkPOU4O4D7_cjs.workflowToComposerValues(editingWorkflow, ids) : task ? chunkPOU4O4D7_cjs.taskToComposerValues(task, ids) : isWorkflow ? {
|
|
33292
33306
|
// Run now is the default start; scheduling is the fallback in the same field.
|
|
33293
33307
|
assignee: "agent",
|
|
33294
|
-
workflowId: initialWorkflowId ??
|
|
33308
|
+
workflowId: initialWorkflowId ?? chunkPOU4O4D7_cjs.CUSTOM_TASK_ID,
|
|
33295
33309
|
when: startLater ? "once" : "now",
|
|
33296
33310
|
...initialPrompt ? {
|
|
33297
33311
|
inputs: {
|
|
33298
|
-
[initialWorkflowId ===
|
|
33312
|
+
[initialWorkflowId === chunkPOU4O4D7_cjs.REMIND_TASK_ID ? "message" : "instruction"]: initialPrompt
|
|
33299
33313
|
}
|
|
33300
33314
|
} : {},
|
|
33301
33315
|
// A scheduled run needs an agent: the owner's Assistant unless another is picked.
|
|
33302
33316
|
...startLater && defaultAgentId ? { agentId: defaultAgentId } : {}
|
|
33303
33317
|
} : initialAgentExtId ? (
|
|
33304
33318
|
// Assigning an agent means agentic work: the free instruction, and tell me when done.
|
|
33305
|
-
{ agentId: initialAgentExtId, workflowId:
|
|
33319
|
+
{ agentId: initialAgentExtId, workflowId: chunkPOU4O4D7_cjs.CUSTOM_TASK_ID, notifyOnComplete: true }
|
|
33306
33320
|
) : {};
|
|
33307
33321
|
return {
|
|
33308
33322
|
timezone: chunkQUMUAJ2P_cjs.detectTimeZone(),
|
|
@@ -33363,7 +33377,7 @@ function ConnectedTaskComposer({
|
|
|
33363
33377
|
const ctx = {
|
|
33364
33378
|
workflow: chosen,
|
|
33365
33379
|
values: submitted,
|
|
33366
|
-
plan: chosen.id ===
|
|
33380
|
+
plan: chosen.id === chunkPOU4O4D7_cjs.CUSTOM_TASK_ID ? plan : null
|
|
33367
33381
|
};
|
|
33368
33382
|
try {
|
|
33369
33383
|
if (isWorkflow && editingWorkflow && !options2?.runOnce) {
|
|
@@ -33399,7 +33413,7 @@ function ConnectedTaskComposer({
|
|
|
33399
33413
|
}
|
|
33400
33414
|
};
|
|
33401
33415
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33402
|
-
|
|
33416
|
+
chunkPOU4O4D7_cjs.TaskComposer,
|
|
33403
33417
|
{
|
|
33404
33418
|
open,
|
|
33405
33419
|
onOpenChange,
|
|
@@ -33413,15 +33427,15 @@ function ConnectedTaskComposer({
|
|
|
33413
33427
|
tasks: taskOptions,
|
|
33414
33428
|
initialValues,
|
|
33415
33429
|
timezones,
|
|
33416
|
-
eventOptions:
|
|
33430
|
+
eventOptions: chunkPOU4O4D7_cjs.AUTOMATION_EVENTS,
|
|
33417
33431
|
eventWorkflowOptions: workspaceAutomations.filter((item) => item.external_id !== editingWorkflow?.external_id).map((item) => ({ id: item.external_id, label: item.name })),
|
|
33418
33432
|
isPending,
|
|
33419
33433
|
planDrafting: planWork.isPending,
|
|
33420
33434
|
hasPlan: plan !== null,
|
|
33421
|
-
renderIcon:
|
|
33435
|
+
renderIcon: chunkPOU4O4D7_cjs.renderWorkflowIcon,
|
|
33422
33436
|
scopeSource,
|
|
33423
33437
|
renderDocuments: (field, value, onChange) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
33424
|
-
|
|
33438
|
+
chunkQU77RRZP_cjs.ConnectedWorkflowDocumentsField,
|
|
33425
33439
|
{
|
|
33426
33440
|
field,
|
|
33427
33441
|
value,
|
|
@@ -33452,8 +33466,8 @@ function ConnectedTaskComposer({
|
|
|
33452
33466
|
...plan ? { addAndStart: "Approve plan and start", addAndSchedule: "Approve plan and schedule" } : {}
|
|
33453
33467
|
},
|
|
33454
33468
|
onSubmit: submit,
|
|
33455
|
-
goal: (values) => values.workflowId ===
|
|
33456
|
-
|
|
33469
|
+
goal: (values) => values.workflowId === chunkPOU4O4D7_cjs.CUSTOM_TASK_ID ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33470
|
+
chunkPOU4O4D7_cjs.TaskPlan,
|
|
33457
33471
|
{
|
|
33458
33472
|
plan,
|
|
33459
33473
|
onChange: setPlan,
|
|
@@ -33653,7 +33667,7 @@ function ConnectedTaskStartDialog({
|
|
|
33653
33667
|
};
|
|
33654
33668
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
33655
33669
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33656
|
-
|
|
33670
|
+
chunkPOU4O4D7_cjs.TaskStartDialog,
|
|
33657
33671
|
{
|
|
33658
33672
|
open: open && !later,
|
|
33659
33673
|
onOpenChange: (next) => {
|
|
@@ -33685,7 +33699,7 @@ function ConnectedTaskStartDialog({
|
|
|
33685
33699
|
kind: "workflow",
|
|
33686
33700
|
startLater: true,
|
|
33687
33701
|
initialPrompt: later.prompt,
|
|
33688
|
-
initialWorkflowId: later.todo ?
|
|
33702
|
+
initialWorkflowId: later.todo ? chunkPOU4O4D7_cjs.REMIND_TASK_ID : void 0,
|
|
33689
33703
|
initialShared: later.shared,
|
|
33690
33704
|
launchWorkflow: later.workflow
|
|
33691
33705
|
}
|
|
@@ -33699,7 +33713,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
33699
33713
|
const [later, setLater] = React9.useState(null);
|
|
33700
33714
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
33701
33715
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33702
|
-
|
|
33716
|
+
chunkPOU4O4D7_cjs.ThreadLauncher,
|
|
33703
33717
|
{
|
|
33704
33718
|
workflows: task.workflows,
|
|
33705
33719
|
people: task.people,
|
|
@@ -33736,7 +33750,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
33736
33750
|
kind: "workflow",
|
|
33737
33751
|
startLater: true,
|
|
33738
33752
|
initialPrompt: later.prompt,
|
|
33739
|
-
initialWorkflowId: later.todo ?
|
|
33753
|
+
initialWorkflowId: later.todo ? chunkPOU4O4D7_cjs.REMIND_TASK_ID : void 0,
|
|
33740
33754
|
initialShared: later.shared,
|
|
33741
33755
|
launchWorkflow: later.workflow
|
|
33742
33756
|
}
|
|
@@ -33765,13 +33779,13 @@ function ConnectedNewThreadDialog({
|
|
|
33765
33779
|
});
|
|
33766
33780
|
const parentOptions = React9.useMemo(() => {
|
|
33767
33781
|
const leaf = { external_id: "__new__" };
|
|
33768
|
-
return
|
|
33782
|
+
return chunkPOU4O4D7_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
33769
33783
|
id: t.external_id,
|
|
33770
33784
|
name: t.title?.trim() || "Untitled task"
|
|
33771
33785
|
}));
|
|
33772
33786
|
}, [tasks]);
|
|
33773
33787
|
const submit = async (values) => {
|
|
33774
|
-
const request =
|
|
33788
|
+
const request = chunkPOU4O4D7_cjs.newThreadToRequest(values);
|
|
33775
33789
|
try {
|
|
33776
33790
|
if (!workspaceId) throw new Error("Open a workspace to add a task.");
|
|
33777
33791
|
if (!request.startAssistant && request.todo) {
|
|
@@ -33812,7 +33826,7 @@ function ConnectedNewThreadDialog({
|
|
|
33812
33826
|
}
|
|
33813
33827
|
};
|
|
33814
33828
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33815
|
-
|
|
33829
|
+
chunkPOU4O4D7_cjs.NewThreadDialog,
|
|
33816
33830
|
{
|
|
33817
33831
|
open,
|
|
33818
33832
|
onOpenChange,
|
|
@@ -33847,7 +33861,7 @@ function useRenderTaskPerson() {
|
|
|
33847
33861
|
return React9.useCallback(
|
|
33848
33862
|
(person) => {
|
|
33849
33863
|
const user = person.id ? byId.get(person.id) : void 0;
|
|
33850
|
-
return user ? /* @__PURE__ */ jsxRuntime.jsx(DocumentUser, { user, variant: "pill" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
33864
|
+
return user ? /* @__PURE__ */ jsxRuntime.jsx(DocumentUser, { user, variant: "pill" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkSSYRPBL5_cjs.PersonPill, { person });
|
|
33851
33865
|
},
|
|
33852
33866
|
[byId]
|
|
33853
33867
|
);
|
|
@@ -33870,7 +33884,7 @@ function ConnectedConversationStart() {
|
|
|
33870
33884
|
const browse = openSkillsBrowser ? [
|
|
33871
33885
|
{
|
|
33872
33886
|
id: "browse-all",
|
|
33873
|
-
iconNode:
|
|
33887
|
+
iconNode: chunkPOU4O4D7_cjs.renderWorkflowIcon("library"),
|
|
33874
33888
|
title: "Browse all",
|
|
33875
33889
|
description: "See every skill, make a copy, add your own",
|
|
33876
33890
|
onSelect: () => openSkillsBrowser(),
|
|
@@ -33983,7 +33997,7 @@ function getToolParams(detail) {
|
|
|
33983
33997
|
return params;
|
|
33984
33998
|
}
|
|
33985
33999
|
function StepModelIcon({ modelName, tag }) {
|
|
33986
|
-
const cfg = tag === "Premium" ? null :
|
|
34000
|
+
const cfg = tag === "Premium" ? null : chunkPOU4O4D7_cjs.getModelIcon(modelName, tag);
|
|
33987
34001
|
if (tag !== "Premium" && !cfg) return null;
|
|
33988
34002
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
33989
34003
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", children: tag === "Premium" ? /* @__PURE__ */ jsxRuntime.jsx(ui.ProviderIcon, { modelName: modelName ?? void 0, size: 11 }) : cfg && /* @__PURE__ */ jsxRuntime.jsx(cfg.icon, { className: cfg.className, style: { width: 11, height: 11 } }) }) }),
|
|
@@ -34098,15 +34112,15 @@ var AgentStepsComponent = ({
|
|
|
34098
34112
|
const lastStepIndex = mergedSteps[mergedSteps.length - 1].index;
|
|
34099
34113
|
const renderRow = (step, depth, isLastInList) => {
|
|
34100
34114
|
const i = posByIndex.get(step.index);
|
|
34101
|
-
const presentation =
|
|
34115
|
+
const presentation = chunkPOU4O4D7_cjs.getAgentStepPresentation(step, docInfo);
|
|
34102
34116
|
const { tool, Icon } = presentation;
|
|
34103
34117
|
const { label, summary, isMultiLine, details } = browser.getStepDisplay(step, docInfo);
|
|
34104
|
-
const accent =
|
|
34118
|
+
const accent = chunkPOU4O4D7_cjs.stepAccent(step, tool);
|
|
34105
34119
|
const duration = stepDurations[i];
|
|
34106
34120
|
const isLastStep = step.index === lastStepIndex;
|
|
34107
34121
|
const isActive = step.index === currentStepIndex;
|
|
34108
34122
|
const tier = step.step === "goal" ? step.model_recommendation : null;
|
|
34109
|
-
const TierIcon = tier ?
|
|
34123
|
+
const TierIcon = tier ? chunkPOU4O4D7_cjs.MODEL_TIER_ICON_MAP[tier] : null;
|
|
34110
34124
|
const useLiveDuration = isLastStep && liveTimer != null && step.t != null;
|
|
34111
34125
|
const durationNode = useLiveDuration ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
34112
34126
|
MessageLiveSeconds,
|
|
@@ -34130,7 +34144,7 @@ var AgentStepsComponent = ({
|
|
|
34130
34144
|
})) : null;
|
|
34131
34145
|
const folded = childrenByParent.get(step.index);
|
|
34132
34146
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34133
|
-
|
|
34147
|
+
chunkPOU4O4D7_cjs.StepRow,
|
|
34134
34148
|
{
|
|
34135
34149
|
index: step.index,
|
|
34136
34150
|
number: displayNumber.get(step.index) ?? String(i + 1),
|
|
@@ -34144,7 +34158,7 @@ var AgentStepsComponent = ({
|
|
|
34144
34158
|
titleTestId: isActive ? "agent-expanded-current-step-description" : void 0,
|
|
34145
34159
|
badge: TierIcon ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
34146
34160
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex shrink-0 items-center self-center", children: /* @__PURE__ */ jsxRuntime.jsx(TierIcon, { size: 12, className: accent.fg, "aria-hidden": true }) }) }),
|
|
34147
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { side: "top", children:
|
|
34161
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { side: "top", children: chunkPOU4O4D7_cjs.MODEL_TIER_LABELS[tier] ?? tier })
|
|
34148
34162
|
] }) : void 0,
|
|
34149
34163
|
meta: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
34150
34164
|
isDeveloper && /* @__PURE__ */ jsxRuntime.jsx(StepModelIcon, { modelName: step.usage?.model, tag: getModelTag(step.usage?.model) }),
|
|
@@ -34159,14 +34173,14 @@ var AgentStepsComponent = ({
|
|
|
34159
34173
|
summary && !isActive && (step.narration ? (
|
|
34160
34174
|
/* Narration is PROSE (headings, bold, lists): render markdown, not raw asterisks.
|
|
34161
34175
|
Tool summaries stay plain text: one-line headlines where a clamp matters. */
|
|
34162
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34163
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
34164
|
-
details.map((d, di) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
34165
|
-
showOutcome && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34166
|
-
toolParams.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34167
|
-
criteriaView && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34176
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.StepNarration, { index: step.index, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.ConnectedMarkdown, { isStreaming: false, children: summary }) })
|
|
34177
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.StepSummary, { index: step.index, multiLine: isMultiLine, children: summary })),
|
|
34178
|
+
details.map((d, di) => /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.StepDetail, { index: step.index, children: d }, di)),
|
|
34179
|
+
showOutcome && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.StepOutcome, { index: step.index, failed: outcomeFailed, children: step.outcome }),
|
|
34180
|
+
toolParams.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.StepParams, { children: toolParams.map((p) => `${p.key}=${p.value}`).join(" ") }),
|
|
34181
|
+
criteriaView && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.GoalCriteria, { criteria: criteriaView }),
|
|
34168
34182
|
folded && folded.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34169
|
-
|
|
34183
|
+
chunkPOU4O4D7_cjs.SubStepGroup,
|
|
34170
34184
|
{
|
|
34171
34185
|
parentIndex: step.index,
|
|
34172
34186
|
summary: summariseSubSteps(folded),
|
|
@@ -34192,7 +34206,7 @@ var AgentStepsComponent = ({
|
|
|
34192
34206
|
leftParts.push(`${browser.formatTokens(totalInputTokens)} in`);
|
|
34193
34207
|
if (totalOutputTokens > 0) leftParts.push(`${browser.formatTokens(totalOutputTokens)} out`);
|
|
34194
34208
|
summaryNode = /* @__PURE__ */ jsxRuntime.jsx(
|
|
34195
|
-
|
|
34209
|
+
chunkPOU4O4D7_cjs.StepTraceSummary,
|
|
34196
34210
|
{
|
|
34197
34211
|
left: leftParts.join(" \xB7 "),
|
|
34198
34212
|
isNearBudget: browser.isNearAiUsageBudget(contextUsage),
|
|
@@ -34200,7 +34214,7 @@ var AgentStepsComponent = ({
|
|
|
34200
34214
|
}
|
|
34201
34215
|
);
|
|
34202
34216
|
}
|
|
34203
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34217
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.StepTrace, { className, summary: summaryNode, children: displayRows.map((row2, i) => {
|
|
34204
34218
|
if (row2.lane) {
|
|
34205
34219
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34206
34220
|
LaneBinding,
|
|
@@ -34237,7 +34251,7 @@ function LaneBinding({
|
|
|
34237
34251
|
const running = !closed && isStreaming;
|
|
34238
34252
|
const latest = inner[inner.length - 1];
|
|
34239
34253
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34240
|
-
|
|
34254
|
+
chunkPOU4O4D7_cjs.SubAgentLane,
|
|
34241
34255
|
{
|
|
34242
34256
|
handle,
|
|
34243
34257
|
number,
|
|
@@ -34360,7 +34374,7 @@ function AgentBarShell({
|
|
|
34360
34374
|
}, [isStepsExpanded, steps]);
|
|
34361
34375
|
const visibleStepCount = React9.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
34362
34376
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34363
|
-
|
|
34377
|
+
chunkPOU4O4D7_cjs.AgentBar,
|
|
34364
34378
|
{
|
|
34365
34379
|
className,
|
|
34366
34380
|
testId,
|
|
@@ -34416,7 +34430,7 @@ function AgentControlBar({
|
|
|
34416
34430
|
const isPaused = controlState === "paused" || controlState === "resuming";
|
|
34417
34431
|
const steps = agentSteps ?? [];
|
|
34418
34432
|
const currentStep = browser.getCurrentStep(steps);
|
|
34419
|
-
const currentPresentation =
|
|
34433
|
+
const currentPresentation = chunkPOU4O4D7_cjs.getCurrentAgentStepPresentation(steps);
|
|
34420
34434
|
const CurrentStepIcon = currentPresentation?.Icon;
|
|
34421
34435
|
const stepLabel2 = currentPresentation?.description ?? "Agent working\u2026";
|
|
34422
34436
|
const runningLanes = browser.extractSubagentLanes(steps).filter((l) => l.status === "running");
|
|
@@ -34433,7 +34447,7 @@ function AgentControlBar({
|
|
|
34433
34447
|
}
|
|
34434
34448
|
);
|
|
34435
34449
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
34436
|
-
|
|
34450
|
+
chunkPOU4O4D7_cjs.AgentBarStatus,
|
|
34437
34451
|
{
|
|
34438
34452
|
state: showState ? controlState : void 0,
|
|
34439
34453
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -34475,7 +34489,7 @@ function AgentControlBar({
|
|
|
34475
34489
|
];
|
|
34476
34490
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
34477
34491
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34478
|
-
|
|
34492
|
+
chunkPOU4O4D7_cjs.AgentBarIconButton,
|
|
34479
34493
|
{
|
|
34480
34494
|
onClick: onStop,
|
|
34481
34495
|
title: "Stop",
|
|
@@ -34484,22 +34498,22 @@ function AgentControlBar({
|
|
|
34484
34498
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
34485
34499
|
}
|
|
34486
34500
|
),
|
|
34487
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34501
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.AgentBarMenu, { items: menuItems })
|
|
34488
34502
|
] });
|
|
34489
34503
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
34490
34504
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
34491
34505
|
);
|
|
34492
34506
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
34493
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34507
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.AgentBarNotes, { children: [
|
|
34494
34508
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
34495
|
-
|
|
34509
|
+
chunkPOU4O4D7_cjs.AgentBarQueuedNote,
|
|
34496
34510
|
{
|
|
34497
34511
|
text: message.content ?? "",
|
|
34498
34512
|
isAcknowledged: message.acknowledged
|
|
34499
34513
|
},
|
|
34500
34514
|
index
|
|
34501
34515
|
)),
|
|
34502
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34516
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
34503
34517
|
] }) : null;
|
|
34504
34518
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34505
34519
|
AgentBarShell,
|
|
@@ -34556,7 +34570,7 @@ function RunningSubagentsRoster({
|
|
|
34556
34570
|
if (leafId) selectThread(leafId);
|
|
34557
34571
|
};
|
|
34558
34572
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34559
|
-
|
|
34573
|
+
chunkPOU4O4D7_cjs.SubagentRoster,
|
|
34560
34574
|
{
|
|
34561
34575
|
lanes: rosterLanes,
|
|
34562
34576
|
className,
|
|
@@ -34719,13 +34733,13 @@ function withAnswerTable(components) {
|
|
|
34719
34733
|
}
|
|
34720
34734
|
return merged;
|
|
34721
34735
|
}
|
|
34722
|
-
var renderMarkdown = ({ components, isStreaming, children }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
34736
|
+
var renderMarkdown = ({ components, isStreaming, children }) => /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.ConnectedMarkdown, { components: withAnswerTable(components), isStreaming, children });
|
|
34723
34737
|
function LinkInAnswer({ href, children, ...props }) {
|
|
34724
34738
|
const docId = chunkZ2XZ2D4N_cjs.workspaceDocIdFromHref(href, chunkB3NYBMDR_cjs.useBlocksEnvironment().runtimeConfig.deploymentDomain);
|
|
34725
34739
|
if (docId) {
|
|
34726
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34740
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.InternalDocLink, { docId, href, ...props, children });
|
|
34727
34741
|
}
|
|
34728
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34742
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.ExternalLink, { href, ...props, children });
|
|
34729
34743
|
}
|
|
34730
34744
|
var ConnectedCitationRendererComponent = ({
|
|
34731
34745
|
alwaysInteractive,
|
|
@@ -35298,7 +35312,7 @@ function WorkflowStepMessage({
|
|
|
35298
35312
|
const { conversations } = react.useConversationItems();
|
|
35299
35313
|
const activity = react.useConversationActivity(conversationId ?? void 0, { live: true });
|
|
35300
35314
|
const plan = conversations.find((c) => c.external_id === conversationId)?.plan;
|
|
35301
|
-
const steps =
|
|
35315
|
+
const steps = chunkPOU4O4D7_cjs.fromPlanSteps(plan?.steps ?? []);
|
|
35302
35316
|
const found = steps.find((s) => s.id === step);
|
|
35303
35317
|
const states = chunkEZLZ3MDU_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
35304
35318
|
const { data: documents = [] } = react.useDocuments();
|
|
@@ -35470,7 +35484,7 @@ var MessageComponent = ({
|
|
|
35470
35484
|
const isQueuedAnswer = !isUser && message.status === "queued" && !isGenerating;
|
|
35471
35485
|
const isAwaitingAnswer = (isGenerating || isRunningOnServer) && !isStopped && !!message.pendingUserInput;
|
|
35472
35486
|
const showWorkingIndicator = (isGenerating || isRunningOnServer) && !isQueuedAnswer && !responseContent.trim() && !linkedArtifact && !isAwaitingAnswer;
|
|
35473
|
-
const workingStepLabel = showWorkingIndicator ?
|
|
35487
|
+
const workingStepLabel = showWorkingIndicator ? chunkPOU4O4D7_cjs.getCurrentAgentStepPresentation(message.agentSteps ?? [])?.description : void 0;
|
|
35474
35488
|
const workingStepStart = showWorkingIndicator ? browser.getCurrentStep(message.agentSteps ?? [])?.t ?? 0 : 0;
|
|
35475
35489
|
const showEmptyAnswer = !isUser && !isGenerating && !isRunningOnServer && !isFailed && !isStopped && !responseContent.trim() && !linkedArtifact;
|
|
35476
35490
|
const isEmptyStopped = isStopped && !responseContent.trim();
|
|
@@ -35635,7 +35649,7 @@ var MessageComponent = ({
|
|
|
35635
35649
|
const statusLabel = isFailed ? "Response failed" : isStopped ? "Stopped" : finalElapsedSeconds >= 0.05 ? `Answered in ${finalElapsedSeconds.toFixed(1)}s` : "Complete";
|
|
35636
35650
|
const timeLabel = ui.formatFriendlyDate(message.created_at || "");
|
|
35637
35651
|
const messageId = message.external_id;
|
|
35638
|
-
const transcriptRuns =
|
|
35652
|
+
const transcriptRuns = chunkBIWPXSGS_cjs.useTranscriptRuns();
|
|
35639
35653
|
const messageRole = isUser ? "user" : "assistant";
|
|
35640
35654
|
const menuItems = [
|
|
35641
35655
|
...isUser ? [
|
|
@@ -35774,7 +35788,7 @@ var MessageComponent = ({
|
|
|
35774
35788
|
},
|
|
35775
35789
|
"data-testid": `message-model-${messageId}`,
|
|
35776
35790
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35777
|
-
|
|
35791
|
+
chunkPOU4O4D7_cjs.AssistantEntity,
|
|
35778
35792
|
{
|
|
35779
35793
|
name: modelDisplayName,
|
|
35780
35794
|
modelName,
|
|
@@ -35843,7 +35857,7 @@ var MessageComponent = ({
|
|
|
35843
35857
|
const speakerName = speaker ? ui.getUserDisplayName(speaker) : null;
|
|
35844
35858
|
const isMe = transcriptSegment.speaker_ext_id === currentUser?.external_id;
|
|
35845
35859
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35846
|
-
|
|
35860
|
+
chunkBIWPXSGS_cjs.TranscriptEntry,
|
|
35847
35861
|
{
|
|
35848
35862
|
speakerId: transcriptSegment.speaker_ext_id,
|
|
35849
35863
|
speakerName: isMe ? "Me" : speakerName || "Former member",
|
|
@@ -35887,7 +35901,7 @@ var MessageComponent = ({
|
|
|
35887
35901
|
// Stays the ARBI identity while streaming: the model name arrives
|
|
35888
35902
|
// with the first step that reports one and would swap the author
|
|
35889
35903
|
// mid-answer. The model is shown in the footer once settled.
|
|
35890
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35904
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.AssistantEntity, { size: 16, pillSize: "sm" })
|
|
35891
35905
|
),
|
|
35892
35906
|
timeLabel,
|
|
35893
35907
|
isSettled: settledForHeader,
|
|
@@ -35897,7 +35911,7 @@ var MessageComponent = ({
|
|
|
35897
35911
|
),
|
|
35898
35912
|
subagentTaskRecord && /* @__PURE__ */ jsxRuntime.jsx(chunkLNYEYR7W_cjs.MessageSubagentBadge, { messageId }),
|
|
35899
35913
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkLNYEYR7W_cjs.MessageBody, { messageId, children: [
|
|
35900
|
-
settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(chunkLNYEYR7W_cjs.MessageNarration, { messageId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35914
|
+
settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(chunkLNYEYR7W_cjs.MessageNarration, { messageId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.ConnectedMarkdown, { isStreaming: false, children: settledNarration }) }) : null,
|
|
35901
35915
|
liveContent ? role === "assistant" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
35902
35916
|
ConnectedCitationRenderer,
|
|
35903
35917
|
{
|
|
@@ -35907,7 +35921,7 @@ var MessageComponent = ({
|
|
|
35907
35921
|
messageId: message.external_id || "unknown",
|
|
35908
35922
|
isStreaming: isGenerating
|
|
35909
35923
|
}
|
|
35910
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
35924
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.ConnectedMarkdown, { isStreaming: isGenerating, children: shell.linkMentions(
|
|
35911
35925
|
isUser && liveContent.startsWith("/pa ") ? liveContent.slice(4) : liveContent,
|
|
35912
35926
|
message.mentions
|
|
35913
35927
|
) }) : null,
|
|
@@ -36352,7 +36366,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
36352
36366
|
start: virtualItem.start,
|
|
36353
36367
|
messageId: entry.id,
|
|
36354
36368
|
setSize: transcript.length,
|
|
36355
|
-
children: entry.item.card ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
36369
|
+
children: entry.item.card ?? /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ThreadActivity, { item: entry.item, children: entry.item.onOpenDocument && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36356
36370
|
"button",
|
|
36357
36371
|
{
|
|
36358
36372
|
className: "mt-1 hover:underline text-primary",
|
|
@@ -37094,7 +37108,7 @@ function ConnectedConversation({
|
|
|
37094
37108
|
const isGuest = react.useWorkspaceRole() === "guest";
|
|
37095
37109
|
const meetingReadOnly = isGuest && !!currentTask?.meeting_call_ext_id;
|
|
37096
37110
|
const meetingCallExtId = currentTask?.meeting_call_ext_id ?? null;
|
|
37097
|
-
const threadMessages =
|
|
37111
|
+
const threadMessages = chunkBIWPXSGS_cjs.useMeetingThreadMessages(meetingCallExtId, messageHistory);
|
|
37098
37112
|
const [firstTurnPrompt, setFirstTurnPrompt] = React9.useState(null);
|
|
37099
37113
|
const currentUserExtId = react.useArbiSession().user?.external_id ?? "";
|
|
37100
37114
|
const pendingFirstTurn = React9.useMemo(
|
|
@@ -37142,7 +37156,7 @@ function ConnectedConversation({
|
|
|
37142
37156
|
return shownThreadMessages.slice(0, editIndex);
|
|
37143
37157
|
}, [shownThreadMessages, editingMessageId]);
|
|
37144
37158
|
const transcriptRunInfo = React9.useMemo(
|
|
37145
|
-
() =>
|
|
37159
|
+
() => chunkBIWPXSGS_cjs.threadTranscriptRuns(meetingCallExtId ? visibleMessages : []),
|
|
37146
37160
|
[meetingCallExtId, visibleMessages]
|
|
37147
37161
|
);
|
|
37148
37162
|
const threadLines = React9.useMemo(
|
|
@@ -37157,7 +37171,7 @@ function ConnectedConversation({
|
|
|
37157
37171
|
}),
|
|
37158
37172
|
[threadMessages]
|
|
37159
37173
|
);
|
|
37160
|
-
const provisionalSpeakers =
|
|
37174
|
+
const provisionalSpeakers = chunkBIWPXSGS_cjs.useProvisionalSpeakers(meetingCallExtId, threadLines);
|
|
37161
37175
|
const showProvisional = !!meetingCallExtId && meetingView !== "chat";
|
|
37162
37176
|
const latestContextUsage = React9.useMemo(() => {
|
|
37163
37177
|
const messages = messageHistory;
|
|
@@ -37247,7 +37261,7 @@ function ConnectedConversation({
|
|
|
37247
37261
|
}, [isGenerating]);
|
|
37248
37262
|
const slashWorkflows = useSlashSkillWorkflows({ landing: "current-chat" });
|
|
37249
37263
|
const composerSkills = React9.useMemo(
|
|
37250
|
-
() => ({ builtin:
|
|
37264
|
+
() => ({ builtin: chunkPOU4O4D7_cjs.BUILTIN_SKILLS, openFor: slashWorkflows.openFor }),
|
|
37251
37265
|
[slashWorkflows.openFor]
|
|
37252
37266
|
);
|
|
37253
37267
|
const browseSkills = React9.useMemo(
|
|
@@ -37296,7 +37310,7 @@ function ConnectedConversation({
|
|
|
37296
37310
|
useStartRequestedDraft();
|
|
37297
37311
|
const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
|
|
37298
37312
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkLTO4JYU3_cjs.ConversationBody, { children: [
|
|
37299
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkLTO4JYU3_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkLTO4JYU3_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
37313
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLTO4JYU3_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkLTO4JYU3_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkBIWPXSGS_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
|
|
37300
37314
|
meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37301
37315
|
chunkNXHETIOB_cjs.ConversationFilter,
|
|
37302
37316
|
{
|
|
@@ -37315,14 +37329,14 @@ function ConnectedConversation({
|
|
|
37315
37329
|
}
|
|
37316
37330
|
) }),
|
|
37317
37331
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
|
|
37318
|
-
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(
|
|
37332
|
+
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkBIWPXSGS_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
37319
37333
|
] }) }) : meetingCallExtId ? (
|
|
37320
37334
|
// A meeting thread with nothing yet: call-aware, not the upload prompt.
|
|
37321
37335
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
37322
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37323
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37336
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBIWPXSGS_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
37337
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBIWPXSGS_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
37324
37338
|
] })
|
|
37325
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
37339
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
37326
37340
|
ConnectedConversationEmpty,
|
|
37327
37341
|
{
|
|
37328
37342
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -37635,7 +37649,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
37635
37649
|
placeholder: "Ask your agent\u2026",
|
|
37636
37650
|
conversations: "Agent chats"
|
|
37637
37651
|
},
|
|
37638
|
-
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
37652
|
+
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEFSL4O3B_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
|
|
37639
37653
|
}
|
|
37640
37654
|
)
|
|
37641
37655
|
] });
|
|
@@ -37958,7 +37972,7 @@ function useLoginActions({
|
|
|
37958
37972
|
onError
|
|
37959
37973
|
}) {
|
|
37960
37974
|
const arbi = react.useArbi();
|
|
37961
|
-
const signInLayer =
|
|
37975
|
+
const signInLayer = chunkJVXHVFUA_cjs.useOptionalConnection();
|
|
37962
37976
|
const sso = useSsoSignIn();
|
|
37963
37977
|
const environment = chunkB3NYBMDR_cjs.useBlocksEnvironment();
|
|
37964
37978
|
const environmentNotify = environment.notify;
|
|
@@ -39182,7 +39196,7 @@ function SsoResendVerificationButton({
|
|
|
39182
39196
|
onClick: async () => handleResendEmailVerification(),
|
|
39183
39197
|
disabled: loading || disabled,
|
|
39184
39198
|
"aria-label": "Resend verification email",
|
|
39185
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
39199
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkJ6U6DIZK_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39186
39200
|
"Didn't get a verification email? ",
|
|
39187
39201
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
39188
39202
|
] })
|
|
@@ -40076,27 +40090,27 @@ function ConnectedOAuthConsentPage({
|
|
|
40076
40090
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
40077
40091
|
}
|
|
40078
40092
|
if (error && !params) {
|
|
40079
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40093
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
40080
40094
|
}
|
|
40081
40095
|
if (!params) {
|
|
40082
40096
|
return null;
|
|
40083
40097
|
}
|
|
40084
40098
|
if (clientInfo?.isLocalAgentFlow) {
|
|
40085
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40099
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentMessage, { tone: "warning", title: "Close this tab", children: "This tab opened alongside the correct authorization page. Please close this tab and complete the connection in the other tab that opened at the same time." }) });
|
|
40086
40100
|
}
|
|
40087
40101
|
if (!isAuthenticated2) {
|
|
40088
40102
|
return null;
|
|
40089
40103
|
}
|
|
40090
40104
|
if (callbackUrl) {
|
|
40091
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40092
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
40105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentCard, { size: "md", children: [
|
|
40106
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
40093
40107
|
"A new tab has opened to complete the connection. If it succeeded, you can close this page. If you see a connection error there, paste the URL below into Claude Cowork \u2014",
|
|
40094
40108
|
" ",
|
|
40095
40109
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
40096
40110
|
] }),
|
|
40097
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
40098
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40099
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
40111
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
40112
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
40113
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentText, { variant: "hint", children: [
|
|
40100
40114
|
"In Claude Code, paste the URL at the prompt that says",
|
|
40101
40115
|
" ",
|
|
40102
40116
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -40105,17 +40119,17 @@ function ConnectedOAuthConsentPage({
|
|
|
40105
40119
|
] })
|
|
40106
40120
|
] }) });
|
|
40107
40121
|
}
|
|
40108
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40109
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
40110
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40122
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentCard, { children: [
|
|
40123
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkPOU4O4D7_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
40124
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
40111
40125
|
" is requesting access to your ",
|
|
40112
40126
|
appName,
|
|
40113
40127
|
" workspace."
|
|
40114
40128
|
] }),
|
|
40115
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40116
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
40117
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40118
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40129
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
40130
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
40131
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
40132
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPOU4O4D7_cjs.ConsentFootnote, { children: footnote })
|
|
40119
40133
|
] }) });
|
|
40120
40134
|
}
|
|
40121
40135
|
function ConnectedSharedFilesPage({
|
|
@@ -40267,179 +40281,179 @@ Object.defineProperty(exports, "useRewardBalance", {
|
|
|
40267
40281
|
});
|
|
40268
40282
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
40269
40283
|
enumerable: true,
|
|
40270
|
-
get: function () { return
|
|
40284
|
+
get: function () { return chunkNOKTUWTN_cjs.ConnectedAssistantDock; }
|
|
40271
40285
|
});
|
|
40272
40286
|
Object.defineProperty(exports, "redlineStats", {
|
|
40273
40287
|
enumerable: true,
|
|
40274
|
-
get: function () { return
|
|
40288
|
+
get: function () { return chunkNOKTUWTN_cjs.redlineStats; }
|
|
40275
40289
|
});
|
|
40276
40290
|
Object.defineProperty(exports, "textToArtifact", {
|
|
40277
40291
|
enumerable: true,
|
|
40278
|
-
get: function () { return
|
|
40292
|
+
get: function () { return chunkNOKTUWTN_cjs.textToArtifact; }
|
|
40279
40293
|
});
|
|
40280
40294
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
40281
40295
|
enumerable: true,
|
|
40282
|
-
get: function () { return
|
|
40296
|
+
get: function () { return chunkNOKTUWTN_cjs.toRedlineMarkdown; }
|
|
40283
40297
|
});
|
|
40284
40298
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
40285
40299
|
enumerable: true,
|
|
40286
|
-
get: function () { return
|
|
40300
|
+
get: function () { return chunkNOKTUWTN_cjs.useConnectedAiTask; }
|
|
40287
40301
|
});
|
|
40288
40302
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
40289
40303
|
enumerable: true,
|
|
40290
|
-
get: function () { return
|
|
40304
|
+
get: function () { return chunkNOKTUWTN_cjs.useConnectedChat; }
|
|
40291
40305
|
});
|
|
40292
40306
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
40293
40307
|
enumerable: true,
|
|
40294
|
-
get: function () { return
|
|
40308
|
+
get: function () { return chunkNOKTUWTN_cjs.useSemanticSearch; }
|
|
40295
40309
|
});
|
|
40296
40310
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
40297
40311
|
enumerable: true,
|
|
40298
|
-
get: function () { return
|
|
40312
|
+
get: function () { return chunkNOKTUWTN_cjs.useWorkspaceDocs; }
|
|
40299
40313
|
});
|
|
40300
40314
|
Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
|
|
40301
40315
|
enumerable: true,
|
|
40302
|
-
get: function () { return
|
|
40316
|
+
get: function () { return chunkQU77RRZP_cjs.ConnectedWorkflowDocumentsField; }
|
|
40303
40317
|
});
|
|
40304
40318
|
Object.defineProperty(exports, "ConnectedWorkflowLauncher", {
|
|
40305
40319
|
enumerable: true,
|
|
40306
|
-
get: function () { return
|
|
40320
|
+
get: function () { return chunkQU77RRZP_cjs.ConnectedWorkflowLauncher; }
|
|
40307
40321
|
});
|
|
40308
40322
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
40309
40323
|
enumerable: true,
|
|
40310
|
-
get: function () { return
|
|
40324
|
+
get: function () { return chunkQU77RRZP_cjs.ConnectedWorkflowsTable; }
|
|
40311
40325
|
});
|
|
40312
40326
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
40313
40327
|
enumerable: true,
|
|
40314
|
-
get: function () { return
|
|
40328
|
+
get: function () { return chunkQU77RRZP_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
40315
40329
|
});
|
|
40316
40330
|
Object.defineProperty(exports, "toWorkflowFieldDocument", {
|
|
40317
40331
|
enumerable: true,
|
|
40318
|
-
get: function () { return
|
|
40332
|
+
get: function () { return chunkQU77RRZP_cjs.toWorkflowFieldDocument; }
|
|
40319
40333
|
});
|
|
40320
40334
|
Object.defineProperty(exports, "useConnectedAgentOptions", {
|
|
40321
40335
|
enumerable: true,
|
|
40322
|
-
get: function () { return
|
|
40336
|
+
get: function () { return chunkQU77RRZP_cjs.useConnectedAgentOptions; }
|
|
40323
40337
|
});
|
|
40324
40338
|
Object.defineProperty(exports, "useConnectedWorkflowScopeSource", {
|
|
40325
40339
|
enumerable: true,
|
|
40326
|
-
get: function () { return
|
|
40340
|
+
get: function () { return chunkQU77RRZP_cjs.useConnectedWorkflowScopeSource; }
|
|
40327
40341
|
});
|
|
40328
40342
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
40329
40343
|
enumerable: true,
|
|
40330
|
-
get: function () { return
|
|
40344
|
+
get: function () { return chunkQU77RRZP_cjs.useConnectedWorkspaceRole; }
|
|
40331
40345
|
});
|
|
40332
40346
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
40333
40347
|
enumerable: true,
|
|
40334
|
-
get: function () { return
|
|
40348
|
+
get: function () { return chunkQU77RRZP_cjs.useDocxCommentTarget; }
|
|
40335
40349
|
});
|
|
40336
40350
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
40337
40351
|
enumerable: true,
|
|
40338
|
-
get: function () { return
|
|
40352
|
+
get: function () { return chunkQU77RRZP_cjs.useNativeDocxSupport; }
|
|
40339
40353
|
});
|
|
40340
40354
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
40341
40355
|
enumerable: true,
|
|
40342
|
-
get: function () { return
|
|
40356
|
+
get: function () { return chunkEFSL4O3B_cjs.ConnectedDocumentToolsProvider; }
|
|
40343
40357
|
});
|
|
40344
40358
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
40345
40359
|
enumerable: true,
|
|
40346
|
-
get: function () { return
|
|
40360
|
+
get: function () { return chunkEFSL4O3B_cjs.ConnectedMarkdown; }
|
|
40347
40361
|
});
|
|
40348
40362
|
Object.defineProperty(exports, "DocumentChip", {
|
|
40349
40363
|
enumerable: true,
|
|
40350
|
-
get: function () { return
|
|
40364
|
+
get: function () { return chunkEFSL4O3B_cjs.DocumentChip; }
|
|
40351
40365
|
});
|
|
40352
40366
|
Object.defineProperty(exports, "DocumentWorkspaceContext", {
|
|
40353
40367
|
enumerable: true,
|
|
40354
|
-
get: function () { return
|
|
40368
|
+
get: function () { return chunkEFSL4O3B_cjs.DocumentWorkspaceContext; }
|
|
40355
40369
|
});
|
|
40356
40370
|
Object.defineProperty(exports, "ExternalLink", {
|
|
40357
40371
|
enumerable: true,
|
|
40358
|
-
get: function () { return
|
|
40372
|
+
get: function () { return chunkEFSL4O3B_cjs.ExternalLink; }
|
|
40359
40373
|
});
|
|
40360
40374
|
Object.defineProperty(exports, "InternalDocLink", {
|
|
40361
40375
|
enumerable: true,
|
|
40362
|
-
get: function () { return
|
|
40376
|
+
get: function () { return chunkEFSL4O3B_cjs.InternalDocLink; }
|
|
40363
40377
|
});
|
|
40364
40378
|
Object.defineProperty(exports, "MailChip", {
|
|
40365
40379
|
enumerable: true,
|
|
40366
|
-
get: function () { return
|
|
40380
|
+
get: function () { return chunkEFSL4O3B_cjs.MailChip; }
|
|
40367
40381
|
});
|
|
40368
40382
|
Object.defineProperty(exports, "MermaidDiagram", {
|
|
40369
40383
|
enumerable: true,
|
|
40370
|
-
get: function () { return
|
|
40384
|
+
get: function () { return chunkEFSL4O3B_cjs.MermaidDiagram; }
|
|
40371
40385
|
});
|
|
40372
40386
|
Object.defineProperty(exports, "WorkspaceDocumentReference", {
|
|
40373
40387
|
enumerable: true,
|
|
40374
|
-
get: function () { return
|
|
40388
|
+
get: function () { return chunkEFSL4O3B_cjs.WorkspaceDocumentReference; }
|
|
40375
40389
|
});
|
|
40376
40390
|
Object.defineProperty(exports, "useDocumentViewerSupport", {
|
|
40377
40391
|
enumerable: true,
|
|
40378
|
-
get: function () { return
|
|
40392
|
+
get: function () { return chunkEFSL4O3B_cjs.useDocumentViewerSupport; }
|
|
40379
40393
|
});
|
|
40380
40394
|
Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
40381
40395
|
enumerable: true,
|
|
40382
|
-
get: function () { return
|
|
40396
|
+
get: function () { return chunkEFSL4O3B_cjs.useDocumentWorkspace; }
|
|
40383
40397
|
});
|
|
40384
40398
|
Object.defineProperty(exports, "useViewerDraftDocument", {
|
|
40385
40399
|
enumerable: true,
|
|
40386
|
-
get: function () { return
|
|
40400
|
+
get: function () { return chunkEFSL4O3B_cjs.useViewerDraftDocument; }
|
|
40387
40401
|
});
|
|
40388
40402
|
Object.defineProperty(exports, "useViewerIsDetached", {
|
|
40389
40403
|
enumerable: true,
|
|
40390
|
-
get: function () { return
|
|
40404
|
+
get: function () { return chunkEFSL4O3B_cjs.useViewerIsDetached; }
|
|
40391
40405
|
});
|
|
40392
40406
|
Object.defineProperty(exports, "useViewerPassageCitation", {
|
|
40393
40407
|
enumerable: true,
|
|
40394
|
-
get: function () { return
|
|
40408
|
+
get: function () { return chunkEFSL4O3B_cjs.useViewerPassageCitation; }
|
|
40395
40409
|
});
|
|
40396
40410
|
Object.defineProperty(exports, "useViewerStreamingDocument", {
|
|
40397
40411
|
enumerable: true,
|
|
40398
|
-
get: function () { return
|
|
40412
|
+
get: function () { return chunkEFSL4O3B_cjs.useViewerStreamingDocument; }
|
|
40399
40413
|
});
|
|
40400
40414
|
Object.defineProperty(exports, "useMeetingThreadMessages", {
|
|
40401
40415
|
enumerable: true,
|
|
40402
|
-
get: function () { return
|
|
40416
|
+
get: function () { return chunkBIWPXSGS_cjs.useMeetingThreadMessages; }
|
|
40403
40417
|
});
|
|
40404
40418
|
Object.defineProperty(exports, "isListedDocument", {
|
|
40405
40419
|
enumerable: true,
|
|
40406
|
-
get: function () { return
|
|
40420
|
+
get: function () { return chunkC3YIVBTU_cjs.isListedDocument; }
|
|
40407
40421
|
});
|
|
40408
40422
|
Object.defineProperty(exports, "useConnectedConversations", {
|
|
40409
40423
|
enumerable: true,
|
|
40410
|
-
get: function () { return
|
|
40424
|
+
get: function () { return chunkC3YIVBTU_cjs.useConnectedConversations; }
|
|
40411
40425
|
});
|
|
40412
40426
|
Object.defineProperty(exports, "useConnectedDocuments", {
|
|
40413
40427
|
enumerable: true,
|
|
40414
|
-
get: function () { return
|
|
40428
|
+
get: function () { return chunkC3YIVBTU_cjs.useConnectedDocuments; }
|
|
40415
40429
|
});
|
|
40416
40430
|
Object.defineProperty(exports, "useConnectedTags", {
|
|
40417
40431
|
enumerable: true,
|
|
40418
|
-
get: function () { return
|
|
40432
|
+
get: function () { return chunkC3YIVBTU_cjs.useConnectedTags; }
|
|
40419
40433
|
});
|
|
40420
40434
|
Object.defineProperty(exports, "useDocumentFilter", {
|
|
40421
40435
|
enumerable: true,
|
|
40422
|
-
get: function () { return
|
|
40436
|
+
get: function () { return chunkC3YIVBTU_cjs.useDocumentFilter; }
|
|
40423
40437
|
});
|
|
40424
40438
|
Object.defineProperty(exports, "useListedDocuments", {
|
|
40425
40439
|
enumerable: true,
|
|
40426
|
-
get: function () { return
|
|
40440
|
+
get: function () { return chunkC3YIVBTU_cjs.useListedDocuments; }
|
|
40427
40441
|
});
|
|
40428
40442
|
Object.defineProperty(exports, "SESSION_EXPIRED_MESSAGE", {
|
|
40429
40443
|
enumerable: true,
|
|
40430
|
-
get: function () { return
|
|
40444
|
+
get: function () { return chunkJVXHVFUA_cjs.SESSION_EXPIRED_MESSAGE; }
|
|
40431
40445
|
});
|
|
40432
40446
|
Object.defineProperty(exports, "isAuthenticated", {
|
|
40433
40447
|
enumerable: true,
|
|
40434
|
-
get: function () { return
|
|
40448
|
+
get: function () { return chunkJVXHVFUA_cjs.isAuthenticated; }
|
|
40435
40449
|
});
|
|
40436
40450
|
Object.defineProperty(exports, "useConnectedWorkspace", {
|
|
40437
40451
|
enumerable: true,
|
|
40438
|
-
get: function () { return
|
|
40452
|
+
get: function () { return chunkJVXHVFUA_cjs.useConnectedWorkspace; }
|
|
40439
40453
|
});
|
|
40440
40454
|
Object.defineProperty(exports, "useConnection", {
|
|
40441
40455
|
enumerable: true,
|
|
40442
|
-
get: function () { return
|
|
40456
|
+
get: function () { return chunkJVXHVFUA_cjs.useConnection; }
|
|
40443
40457
|
});
|
|
40444
40458
|
Object.defineProperty(exports, "requestCalendarComposer", {
|
|
40445
40459
|
enumerable: true,
|
|
@@ -40508,6 +40522,7 @@ exports.ConnectedFilesPage = ConnectedFilesPage;
|
|
|
40508
40522
|
exports.ConnectedForgotPassword = ConnectedForgotPassword;
|
|
40509
40523
|
exports.ConnectedGlobalDialogs = ConnectedGlobalDialogs;
|
|
40510
40524
|
exports.ConnectedGrantWorkspaceAccessDialog = ConnectedGrantWorkspaceAccessDialog;
|
|
40525
|
+
exports.ConnectedGridView = ConnectedGridView;
|
|
40511
40526
|
exports.ConnectedGroupMembers = ConnectedGroupMembers;
|
|
40512
40527
|
exports.ConnectedIdentityVerification = ConnectedIdentityVerification;
|
|
40513
40528
|
exports.ConnectedLoginPage = ConnectedLoginPage;
|