@arbidocs/blocks 0.5.129 → 0.5.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedCallDock-XJOYVVAH.cjs → ConnectedCallDock-CJ7RWP5B.cjs} +12 -12
- package/dist/{ConnectedCallDock-XJOYVVAH.cjs.map → ConnectedCallDock-CJ7RWP5B.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-CUDYAPQK.cjs → ConnectedCallRoom-JPJCXP6X.cjs} +12 -12
- package/dist/{ConnectedCallRoom-CUDYAPQK.cjs.map → ConnectedCallRoom-JPJCXP6X.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs → ConnectedNativeDocxComparison-5TZAIR4V.cjs} +13 -13
- package/dist/{ConnectedNativeDocxComparison-7KTAOUE3.cjs.map → ConnectedNativeDocxComparison-5TZAIR4V.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-SI3L77J4.cjs → ConnectedPresentation-SEUUNFUA.cjs} +13 -13
- package/dist/{ConnectedPresentation-SI3L77J4.cjs.map → ConnectedPresentation-SEUUNFUA.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-4EAY6KAZ.cjs → ConnectedProductionSetDialog-LHB4VQWC.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-4EAY6KAZ.cjs.map → ConnectedProductionSetDialog-LHB4VQWC.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-E76OVY34.cjs → ConnectedSlidesTab-3ATAKNSJ.cjs} +13 -13
- package/dist/{ConnectedSlidesTab-E76OVY34.cjs.map → ConnectedSlidesTab-3ATAKNSJ.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs} +13 -13
- package/dist/{ConnectedStreamedWordArtifact-J4MYBABA.cjs.map → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs.map} +1 -1
- package/dist/DocumentReviewCard-M53XFLI2.cjs +1 -1
- package/dist/{FilesViewerDialog-GGF4WMU4.cjs → FilesViewerDialog-EFRMXIM5.cjs} +27 -27
- package/dist/{FilesViewerDialog-GGF4WMU4.cjs.map → FilesViewerDialog-EFRMXIM5.cjs.map} +1 -1
- package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs → StreamedArtifactEditor-RSPUSZ2B.cjs} +5 -5
- package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs.map → StreamedArtifactEditor-RSPUSZ2B.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-CUCTCA2O.cjs → WorkspaceTableView-QPROJRCF.cjs} +3 -3
- package/dist/{WorkspaceTableView-CUCTCA2O.cjs.map → WorkspaceTableView-QPROJRCF.cjs.map} +1 -1
- package/dist/agents/index.cjs +363 -363
- package/dist/agents/workflows/StepParts.d.ts +3 -0
- package/dist/agents/workflows/StepParts.js +20 -3
- package/dist/agents/workflows/StepParts.js.map +2 -2
- package/dist/agents/workflows/WorkflowStepAction.js +14 -3
- package/dist/agents/workflows/WorkflowStepAction.js.map +2 -2
- package/dist/agents/workflows/planSteps.js +6 -1
- package/dist/agents/workflows/planSteps.js.map +2 -2
- package/dist/agents/workflows/workflow.d.ts +11 -2
- package/dist/agents/workflows/workflow.js +16 -1
- package/dist/agents/workflows/workflow.js.map +2 -2
- package/dist/{ai-IEIR7SC2.cjs → ai-4XJ2VFNS.cjs} +24 -24
- package/dist/ai-4XJ2VFNS.cjs.map +1 -0
- package/dist/artifacts/VersionTimeline.d.ts +5 -1
- package/dist/artifacts/VersionTimeline.js +15 -0
- package/dist/artifacts/VersionTimeline.js.map +2 -2
- package/dist/artifacts/index.cjs +24 -24
- package/dist/calls/index.cjs +3 -3
- package/dist/chat/index.cjs +59 -59
- package/dist/{chunk-XF355M7O.cjs → chunk-2Z25MUAY.cjs} +17 -17
- package/dist/{chunk-XF355M7O.cjs.map → chunk-2Z25MUAY.cjs.map} +1 -1
- package/dist/{chunk-7JLJH5CW.cjs → chunk-5A6T4W46.cjs} +7 -7
- package/dist/{chunk-7JLJH5CW.cjs.map → chunk-5A6T4W46.cjs.map} +1 -1
- package/dist/{chunk-L4CIFLCU.cjs → chunk-7LEN65YI.cjs} +9 -9
- package/dist/{chunk-L4CIFLCU.cjs.map → chunk-7LEN65YI.cjs.map} +1 -1
- package/dist/{chunk-IDCD5TEZ.cjs → chunk-A6GBPE5E.cjs} +18 -18
- package/dist/{chunk-IDCD5TEZ.cjs.map → chunk-A6GBPE5E.cjs.map} +1 -1
- package/dist/{chunk-XGTMC54Q.cjs → chunk-AFXLRO6E.cjs} +4 -4
- package/dist/{chunk-XGTMC54Q.cjs.map → chunk-AFXLRO6E.cjs.map} +1 -1
- package/dist/{chunk-KNGZZC4O.cjs → chunk-B3BZ6MNI.cjs} +6 -6
- package/dist/{chunk-KNGZZC4O.cjs.map → chunk-B3BZ6MNI.cjs.map} +1 -1
- package/dist/{chunk-WAV762GP.cjs → chunk-DBN6GBRQ.cjs} +6 -6
- package/dist/{chunk-WAV762GP.cjs.map → chunk-DBN6GBRQ.cjs.map} +1 -1
- package/dist/{chunk-QGVOT7E4.cjs → chunk-EQTZQD66.cjs} +8 -8
- package/dist/{chunk-QGVOT7E4.cjs.map → chunk-EQTZQD66.cjs.map} +1 -1
- package/dist/{chunk-CNLIXB6S.cjs → chunk-ERRXU2HL.cjs} +3 -3
- package/dist/{chunk-CNLIXB6S.cjs.map → chunk-ERRXU2HL.cjs.map} +1 -1
- package/dist/{chunk-M2FOXGJU.cjs → chunk-F6CEPWIF.cjs} +7 -7
- package/dist/{chunk-M2FOXGJU.cjs.map → chunk-F6CEPWIF.cjs.map} +1 -1
- package/dist/{chunk-VWBYE3XY.cjs → chunk-FQRJCAT2.cjs} +6 -6
- package/dist/{chunk-VWBYE3XY.cjs.map → chunk-FQRJCAT2.cjs.map} +1 -1
- package/dist/{chunk-HH5RDNO5.cjs → chunk-GOQV6NOK.cjs} +74 -74
- package/dist/{chunk-HH5RDNO5.cjs.map → chunk-GOQV6NOK.cjs.map} +1 -1
- package/dist/{chunk-XCKHOXRP.cjs → chunk-H4ID6S4P.cjs} +6 -6
- package/dist/{chunk-XCKHOXRP.cjs.map → chunk-H4ID6S4P.cjs.map} +1 -1
- package/dist/{chunk-UFT22LAB.cjs → chunk-HBUHOCWF.cjs} +16 -16
- package/dist/{chunk-UFT22LAB.cjs.map → chunk-HBUHOCWF.cjs.map} +1 -1
- package/dist/{chunk-U7D6ZDR2.cjs → chunk-HORAMB52.cjs} +96 -36
- package/dist/chunk-HORAMB52.cjs.map +1 -0
- package/dist/{chunk-3IH55CDE.cjs → chunk-IZBAWZTB.cjs} +16 -2
- package/dist/chunk-IZBAWZTB.cjs.map +1 -0
- package/dist/{chunk-QRAQZTJE.cjs → chunk-JN5YMHGI.cjs} +18 -3
- package/dist/chunk-JN5YMHGI.cjs.map +1 -0
- package/dist/{chunk-LXFCED4Z.cjs → chunk-KWHGYHRC.cjs} +7 -7
- package/dist/{chunk-LXFCED4Z.cjs.map → chunk-KWHGYHRC.cjs.map} +1 -1
- package/dist/{chunk-EG7EJFUE.cjs → chunk-MHIG6GGS.cjs} +17 -2
- package/dist/chunk-MHIG6GGS.cjs.map +1 -0
- package/dist/{chunk-I3A6KKWY.cjs → chunk-MI3N3ZOT.cjs} +86 -76
- package/dist/chunk-MI3N3ZOT.cjs.map +1 -0
- package/dist/{chunk-ENOPKX7E.cjs → chunk-MXBXZXXQ.cjs} +3 -3
- package/dist/{chunk-ENOPKX7E.cjs.map → chunk-MXBXZXXQ.cjs.map} +1 -1
- package/dist/{chunk-7NLO7ASW.cjs → chunk-MXGXKUSW.cjs} +17 -17
- package/dist/{chunk-7NLO7ASW.cjs.map → chunk-MXGXKUSW.cjs.map} +1 -1
- package/dist/{chunk-ZCU72Q76.cjs → chunk-NM7RWZ4E.cjs} +10 -10
- package/dist/{chunk-ZCU72Q76.cjs.map → chunk-NM7RWZ4E.cjs.map} +1 -1
- package/dist/{chunk-NQML7IUC.cjs → chunk-OD6NGGL3.cjs} +134 -107
- package/dist/chunk-OD6NGGL3.cjs.map +1 -0
- package/dist/{chunk-TP5PGWIO.cjs → chunk-QFXOTJ6G.cjs} +20 -15
- package/dist/chunk-QFXOTJ6G.cjs.map +1 -0
- package/dist/{chunk-7L4X6QN2.cjs → chunk-QXMPATG6.cjs} +8 -8
- package/dist/{chunk-7L4X6QN2.cjs.map → chunk-QXMPATG6.cjs.map} +1 -1
- package/dist/{chunk-WXUU3COI.cjs → chunk-SUOHAB7N.cjs} +11 -11
- package/dist/{chunk-WXUU3COI.cjs.map → chunk-SUOHAB7N.cjs.map} +1 -1
- package/dist/{chunk-I7J3ED6P.cjs → chunk-TDA6KESI.cjs} +4 -4
- package/dist/{chunk-I7J3ED6P.cjs.map → chunk-TDA6KESI.cjs.map} +1 -1
- package/dist/{chunk-5GA65VBW.cjs → chunk-TZYB22FM.cjs} +9 -9
- package/dist/{chunk-5GA65VBW.cjs.map → chunk-TZYB22FM.cjs.map} +1 -1
- package/dist/{chunk-HSLPFBK2.cjs → chunk-VL7ZX4KQ.cjs} +6 -6
- package/dist/{chunk-HSLPFBK2.cjs.map → chunk-VL7ZX4KQ.cjs.map} +1 -1
- package/dist/{chunk-2F57IO7S.cjs → chunk-XCW6OY7E.cjs} +27 -27
- package/dist/{chunk-2F57IO7S.cjs.map → chunk-XCW6OY7E.cjs.map} +1 -1
- package/dist/{chunk-NG2EE7HR.cjs → chunk-YWHUWIHP.cjs} +9 -9
- package/dist/{chunk-NG2EE7HR.cjs.map → chunk-YWHUWIHP.cjs.map} +1 -1
- package/dist/connect/docx.cjs +16 -16
- package/dist/connect/index.cjs +1168 -416
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -0
- package/dist/connect/index.js +12 -0
- package/dist/connect/index.js.map +2 -2
- package/dist/connect/viewer.cjs +16 -16
- package/dist/connection/ConnectedWorkflowBuilder.d.ts +12 -0
- package/dist/connection/ConnectedWorkflowBuilder.js +6 -1
- package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
- package/dist/connection/assistant/AssistantDrafts.d.ts +21 -0
- package/dist/connection/assistant/AssistantDrafts.js +158 -0
- package/dist/connection/assistant/AssistantDrafts.js.map +7 -0
- package/dist/connection/assistant/AssistantPlan.d.ts +16 -0
- package/dist/connection/assistant/AssistantPlan.js +72 -0
- package/dist/connection/assistant/AssistantPlan.js.map +7 -0
- package/dist/connection/assistant/AssistantStatusPanel.d.ts +28 -0
- package/dist/connection/assistant/AssistantStatusPanel.js +206 -0
- package/dist/connection/assistant/AssistantStatusPanel.js.map +7 -0
- package/dist/connection/assistant/ConnectedAssistantPage.d.ts +39 -0
- package/dist/connection/assistant/ConnectedAssistantPage.js +377 -0
- package/dist/connection/assistant/ConnectedAssistantPage.js.map +7 -0
- package/dist/connection/conversation/AgentSteps.js +19 -2
- package/dist/connection/conversation/AgentSteps.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +22 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/useDocumentVersionRestore.d.ts +14 -0
- package/dist/connection/viewer/useDocumentVersionRestore.js +48 -0
- package/dist/connection/viewer/useDocumentVersionRestore.js.map +7 -0
- package/dist/connection/viewer/useViewerTabs.d.ts +1 -1
- package/dist/connection/viewer/useViewerTabs.js +6 -3
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/document-tools/VersionSnapshotBar.d.ts +4 -1
- package/dist/document-tools/VersionSnapshotBar.js +14 -0
- package/dist/document-tools/VersionSnapshotBar.js.map +2 -2
- package/dist/document-tools/index.cjs +13 -13
- package/dist/embed/index.cjs +25 -25
- package/dist/facts/index.cjs +43 -43
- package/dist/index.cjs +530 -530
- package/dist/office/index.cjs +5 -5
- package/dist/settings/index.cjs +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/studio/index.cjs +16 -16
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/TriggerInspector.d.ts +7 -0
- package/dist/workflow-canvas/TriggerInspector.js +56 -0
- package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
- package/dist/workflow-canvas/index.cjs +142 -81
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ai-IEIR7SC2.cjs.map +0 -1
- package/dist/chunk-3IH55CDE.cjs.map +0 -1
- package/dist/chunk-EG7EJFUE.cjs.map +0 -1
- package/dist/chunk-I3A6KKWY.cjs.map +0 -1
- package/dist/chunk-NQML7IUC.cjs.map +0 -1
- package/dist/chunk-QRAQZTJE.cjs.map +0 -1
- package/dist/chunk-TP5PGWIO.cjs.map +0 -1
- package/dist/chunk-U7D6ZDR2.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -1,35 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkFQRJCAT2_cjs = require('../chunk-FQRJCAT2.cjs');
|
|
5
5
|
var chunk6OK7ESTL_cjs = require('../chunk-6OK7ESTL.cjs');
|
|
6
6
|
var chunkGEZB3OEC_cjs = require('../chunk-GEZB3OEC.cjs');
|
|
7
7
|
var chunkVWTOIGX4_cjs = require('../chunk-VWTOIGX4.cjs');
|
|
8
8
|
var chunkMLA2BJ2Y_cjs = require('../chunk-MLA2BJ2Y.cjs');
|
|
9
9
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
10
10
|
var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
|
|
11
|
-
var
|
|
12
|
-
var chunkHH5RDNO5_cjs = require('../chunk-HH5RDNO5.cjs');
|
|
11
|
+
var chunkQXMPATG6_cjs = require('../chunk-QXMPATG6.cjs');
|
|
13
12
|
var chunkCMGNRMPA_cjs = require('../chunk-CMGNRMPA.cjs');
|
|
13
|
+
var chunkGOQV6NOK_cjs = require('../chunk-GOQV6NOK.cjs');
|
|
14
14
|
var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
|
|
15
15
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
16
|
+
var chunkMI3N3ZOT_cjs = require('../chunk-MI3N3ZOT.cjs');
|
|
17
|
+
var chunk2Z25MUAY_cjs = require('../chunk-2Z25MUAY.cjs');
|
|
18
|
+
var chunkXCW6OY7E_cjs = require('../chunk-XCW6OY7E.cjs');
|
|
19
|
+
var chunkMXGXKUSW_cjs = require('../chunk-MXGXKUSW.cjs');
|
|
20
20
|
var chunk7PN3YENO_cjs = require('../chunk-7PN3YENO.cjs');
|
|
21
|
-
var
|
|
21
|
+
var chunkHBUHOCWF_cjs = require('../chunk-HBUHOCWF.cjs');
|
|
22
|
+
var chunkMXBXZXXQ_cjs = require('../chunk-MXBXZXXQ.cjs');
|
|
23
|
+
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
22
24
|
var chunkH7PHOTX2_cjs = require('../chunk-H7PHOTX2.cjs');
|
|
23
25
|
var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
|
|
24
26
|
require('../chunk-UMMZNZV3.cjs');
|
|
25
27
|
require('../chunk-AEQT2QQX.cjs');
|
|
26
|
-
var chunkENOPKX7E_cjs = require('../chunk-ENOPKX7E.cjs');
|
|
27
|
-
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
28
28
|
var chunkSFRKKPBB_cjs = require('../chunk-SFRKKPBB.cjs');
|
|
29
29
|
require('../chunk-XNW62J54.cjs');
|
|
30
|
-
var chunk4M3OIBIS_cjs = require('../chunk-4M3OIBIS.cjs');
|
|
31
|
-
var chunk6U3CYVZC_cjs = require('../chunk-6U3CYVZC.cjs');
|
|
32
|
-
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
33
30
|
var chunkVG5XNE4H_cjs = require('../chunk-VG5XNE4H.cjs');
|
|
34
31
|
var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
|
|
35
32
|
var chunk4CIVQWAX_cjs = require('../chunk-4CIVQWAX.cjs');
|
|
@@ -37,18 +34,18 @@ var chunkPL7HUTM3_cjs = require('../chunk-PL7HUTM3.cjs');
|
|
|
37
34
|
var chunkQWVUBTW3_cjs = require('../chunk-QWVUBTW3.cjs');
|
|
38
35
|
var chunkJVEDKKNO_cjs = require('../chunk-JVEDKKNO.cjs');
|
|
39
36
|
var chunkADDQKZ5I_cjs = require('../chunk-ADDQKZ5I.cjs');
|
|
40
|
-
var
|
|
37
|
+
var chunkERRXU2HL_cjs = require('../chunk-ERRXU2HL.cjs');
|
|
41
38
|
var chunk5QERK4PK_cjs = require('../chunk-5QERK4PK.cjs');
|
|
42
39
|
var chunkT73BHNQX_cjs = require('../chunk-T73BHNQX.cjs');
|
|
43
40
|
require('../chunk-HYUKPHCT.cjs');
|
|
44
41
|
var chunkALK3PUUB_cjs = require('../chunk-ALK3PUUB.cjs');
|
|
45
42
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
46
43
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
47
|
-
var
|
|
48
|
-
var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
|
|
49
|
-
var chunkWAV762GP_cjs = require('../chunk-WAV762GP.cjs');
|
|
44
|
+
var chunkTZYB22FM_cjs = require('../chunk-TZYB22FM.cjs');
|
|
50
45
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
51
46
|
require('../chunk-V3KLUWQQ.cjs');
|
|
47
|
+
var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
|
|
48
|
+
var chunkDBN6GBRQ_cjs = require('../chunk-DBN6GBRQ.cjs');
|
|
52
49
|
var chunkLVIQWRC5_cjs = require('../chunk-LVIQWRC5.cjs');
|
|
53
50
|
var chunkUZHWXKS6_cjs = require('../chunk-UZHWXKS6.cjs');
|
|
54
51
|
require('../chunk-PBPO54KZ.cjs');
|
|
@@ -58,19 +55,18 @@ require('../chunk-JH6JTI76.cjs');
|
|
|
58
55
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
59
56
|
require('../chunk-DTMBAFIL.cjs');
|
|
60
57
|
require('../chunk-ZESMRGDV.cjs');
|
|
61
|
-
var
|
|
58
|
+
var chunkKWHGYHRC_cjs = require('../chunk-KWHGYHRC.cjs');
|
|
62
59
|
var chunkSGYSDABK_cjs = require('../chunk-SGYSDABK.cjs');
|
|
63
60
|
require('../chunk-NEGFHF3V.cjs');
|
|
64
|
-
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
65
61
|
var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
|
|
62
|
+
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
66
63
|
var chunk4B6HYQTW_cjs = require('../chunk-4B6HYQTW.cjs');
|
|
67
|
-
require('../chunk-PCB2BPN3.cjs');
|
|
68
64
|
var chunkADMNU2CR_cjs = require('../chunk-ADMNU2CR.cjs');
|
|
65
|
+
require('../chunk-PCB2BPN3.cjs');
|
|
69
66
|
var chunkNX56DIG3_cjs = require('../chunk-NX56DIG3.cjs');
|
|
70
67
|
var chunkGNX3FBBX_cjs = require('../chunk-GNX3FBBX.cjs');
|
|
71
68
|
var chunkTXP2N3DC_cjs = require('../chunk-TXP2N3DC.cjs');
|
|
72
69
|
require('../chunk-7G2LJMUG.cjs');
|
|
73
|
-
var chunkZKKSTMMI_cjs = require('../chunk-ZKKSTMMI.cjs');
|
|
74
70
|
var chunkUKOYN2WD_cjs = require('../chunk-UKOYN2WD.cjs');
|
|
75
71
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
76
72
|
var chunkIWHP7FAB_cjs = require('../chunk-IWHP7FAB.cjs');
|
|
@@ -83,6 +79,8 @@ require('../chunk-WQMR3O2D.cjs');
|
|
|
83
79
|
var chunkORELHENJ_cjs = require('../chunk-ORELHENJ.cjs');
|
|
84
80
|
require('../chunk-NWNVWO6L.cjs');
|
|
85
81
|
require('../chunk-SK6HQ46Q.cjs');
|
|
82
|
+
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
83
|
+
var chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
86
84
|
require('../chunk-TG2GM7WJ.cjs');
|
|
87
85
|
var chunkZYGAXD3N_cjs = require('../chunk-ZYGAXD3N.cjs');
|
|
88
86
|
var chunkULPTSXXO_cjs = require('../chunk-ULPTSXXO.cjs');
|
|
@@ -90,11 +88,11 @@ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
|
90
88
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
91
89
|
require('../chunk-OEJQFPWO.cjs');
|
|
92
90
|
require('../chunk-BQOL4XNZ.cjs');
|
|
93
|
-
var
|
|
91
|
+
var chunkOD6NGGL3_cjs = require('../chunk-OD6NGGL3.cjs');
|
|
94
92
|
var chunkQECKDZ47_cjs = require('../chunk-QECKDZ47.cjs');
|
|
95
|
-
var
|
|
93
|
+
var chunkQFXOTJ6G_cjs = require('../chunk-QFXOTJ6G.cjs');
|
|
96
94
|
require('../chunk-I4IS6ST6.cjs');
|
|
97
|
-
var
|
|
95
|
+
var chunk5A6T4W46_cjs = require('../chunk-5A6T4W46.cjs');
|
|
98
96
|
require('../chunk-EVZH6Z5O.cjs');
|
|
99
97
|
var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
|
|
100
98
|
require('../chunk-S237ORM3.cjs');
|
|
@@ -102,18 +100,22 @@ require('../chunk-II2OEXHW.cjs');
|
|
|
102
100
|
require('../chunk-JJZOL5MG.cjs');
|
|
103
101
|
require('../chunk-3YEXZX4H.cjs');
|
|
104
102
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
105
|
-
require('../chunk-
|
|
103
|
+
require('../chunk-SUOHAB7N.cjs');
|
|
106
104
|
require('../chunk-AHDJXIUB.cjs');
|
|
107
|
-
var chunkYVCOQHCE_cjs = require('../chunk-YVCOQHCE.cjs');
|
|
108
105
|
var chunkRL2HI6NP_cjs = require('../chunk-RL2HI6NP.cjs');
|
|
109
106
|
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
110
|
-
var
|
|
107
|
+
var chunkYVCOQHCE_cjs = require('../chunk-YVCOQHCE.cjs');
|
|
111
108
|
var chunkJV5TVUOU_cjs = require('../chunk-JV5TVUOU.cjs');
|
|
112
109
|
var chunkZVEW3JBT_cjs = require('../chunk-ZVEW3JBT.cjs');
|
|
113
110
|
var chunkU2FFG2B3_cjs = require('../chunk-U2FFG2B3.cjs');
|
|
114
111
|
var chunkJOUMBLGL_cjs = require('../chunk-JOUMBLGL.cjs');
|
|
115
112
|
var chunkV6C2MBFY_cjs = require('../chunk-V6C2MBFY.cjs');
|
|
116
113
|
var chunkM74FWYNL_cjs = require('../chunk-M74FWYNL.cjs');
|
|
114
|
+
var chunk4M3OIBIS_cjs = require('../chunk-4M3OIBIS.cjs');
|
|
115
|
+
var chunk6U3CYVZC_cjs = require('../chunk-6U3CYVZC.cjs');
|
|
116
|
+
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
117
|
+
var chunkZKKSTMMI_cjs = require('../chunk-ZKKSTMMI.cjs');
|
|
118
|
+
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
117
119
|
var chunkBQ5RIWWT_cjs = require('../chunk-BQ5RIWWT.cjs');
|
|
118
120
|
require('../chunk-OAIOOVFN.cjs');
|
|
119
121
|
var chunkVJCSEMXT_cjs = require('../chunk-VJCSEMXT.cjs');
|
|
@@ -128,11 +130,11 @@ var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
|
|
|
128
130
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
129
131
|
require('../chunk-ZT5MIFLC.cjs');
|
|
130
132
|
var chunkKLMNCBLY_cjs = require('../chunk-KLMNCBLY.cjs');
|
|
131
|
-
var
|
|
133
|
+
var chunkB3BZ6MNI_cjs = require('../chunk-B3BZ6MNI.cjs');
|
|
132
134
|
require('../chunk-5SKHK3BG.cjs');
|
|
133
|
-
var
|
|
135
|
+
var chunkA6GBPE5E_cjs = require('../chunk-A6GBPE5E.cjs');
|
|
134
136
|
var chunkJHDCDEXY_cjs = require('../chunk-JHDCDEXY.cjs');
|
|
135
|
-
var
|
|
137
|
+
var chunkF6CEPWIF_cjs = require('../chunk-F6CEPWIF.cjs');
|
|
136
138
|
require('../chunk-5F4DCIHS.cjs');
|
|
137
139
|
require('../chunk-DEXUL3T6.cjs');
|
|
138
140
|
require('../chunk-AFQTQC7A.cjs');
|
|
@@ -143,20 +145,18 @@ require('../chunk-MCXS6X37.cjs');
|
|
|
143
145
|
require('../chunk-KQF7POTG.cjs');
|
|
144
146
|
require('../chunk-75BNMCUX.cjs');
|
|
145
147
|
require('../chunk-IN6ILI5A.cjs');
|
|
146
|
-
require('../chunk-
|
|
148
|
+
require('../chunk-VL7ZX4KQ.cjs');
|
|
147
149
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
148
|
-
var
|
|
149
|
-
var
|
|
150
|
+
var chunkEQTZQD66_cjs = require('../chunk-EQTZQD66.cjs');
|
|
151
|
+
var chunkJN5YMHGI_cjs = require('../chunk-JN5YMHGI.cjs');
|
|
150
152
|
require('../chunk-UDSHVNU3.cjs');
|
|
151
153
|
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
152
154
|
var chunkZBP4ZSAJ_cjs = require('../chunk-ZBP4ZSAJ.cjs');
|
|
153
155
|
require('../chunk-PPCATBOY.cjs');
|
|
154
|
-
var chunkLJJJ6CYH_cjs = require('../chunk-LJJJ6CYH.cjs');
|
|
155
|
-
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
156
|
-
var chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
157
156
|
var chunkTKHCIHE2_cjs = require('../chunk-TKHCIHE2.cjs');
|
|
158
157
|
var chunkJDFBEGQO_cjs = require('../chunk-JDFBEGQO.cjs');
|
|
159
158
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
159
|
+
var chunkLJJJ6CYH_cjs = require('../chunk-LJJJ6CYH.cjs');
|
|
160
160
|
require('../chunk-PLIF5CUV.cjs');
|
|
161
161
|
var react = require('@arbidocs/react');
|
|
162
162
|
var ui = require('@arbidocs/react/ui');
|
|
@@ -265,7 +265,7 @@ function ConnectedWorkspaceActivity({
|
|
|
265
265
|
[feed.data]
|
|
266
266
|
);
|
|
267
267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
-
|
|
268
|
+
chunkKWHGYHRC_cjs.WorkspaceActivityList,
|
|
269
269
|
{
|
|
270
270
|
...listProps,
|
|
271
271
|
items,
|
|
@@ -1587,7 +1587,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1587
1587
|
onChange: (e) => {
|
|
1588
1588
|
const file = e.target.files?.[0];
|
|
1589
1589
|
e.target.value = "";
|
|
1590
|
-
if (file) void add(() =>
|
|
1590
|
+
if (file) void add(() => chunkOD6NGGL3_cjs.importSkillFile(file));
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
),
|
|
@@ -1612,7 +1612,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1612
1612
|
className: "space-y-2",
|
|
1613
1613
|
onSubmit: (e) => {
|
|
1614
1614
|
e.preventDefault();
|
|
1615
|
-
if (url.trim()) void add(() =>
|
|
1615
|
+
if (url.trim()) void add(() => chunkOD6NGGL3_cjs.importSkillFromUrl(url));
|
|
1616
1616
|
},
|
|
1617
1617
|
children: [
|
|
1618
1618
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1665,9 +1665,9 @@ function ConnectedSkillsLibrary({
|
|
|
1665
1665
|
const arbi = react.useArbi();
|
|
1666
1666
|
const { confirm, notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
1667
1667
|
const { data: allListings } = react.useSkills();
|
|
1668
|
-
const isExternal2 =
|
|
1668
|
+
const isExternal2 = chunkHBUHOCWF_cjs.useIsExternalAccount();
|
|
1669
1669
|
const listings = react$1.useMemo(
|
|
1670
|
-
() => isExternal2 && allListings ?
|
|
1670
|
+
() => isExternal2 && allListings ? chunkHBUHOCWF_cjs.withoutMarketplace(allListings) : allListings,
|
|
1671
1671
|
[allListings, isExternal2]
|
|
1672
1672
|
);
|
|
1673
1673
|
const save = react.useSaveSkill();
|
|
@@ -1680,9 +1680,9 @@ function ConnectedSkillsLibrary({
|
|
|
1680
1680
|
const [type, setType] = react$1.useState("all");
|
|
1681
1681
|
const [view, setView] = react$1.useState("gallery");
|
|
1682
1682
|
const [isBusy, setIsBusy] = react$1.useState(false);
|
|
1683
|
-
const all = react$1.useMemo(() =>
|
|
1683
|
+
const all = react$1.useMemo(() => chunkOD6NGGL3_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1684
1684
|
const shown = react$1.useMemo(
|
|
1685
|
-
() =>
|
|
1685
|
+
() => chunkOD6NGGL3_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1686
1686
|
[all, query, source, type]
|
|
1687
1687
|
);
|
|
1688
1688
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1693,21 +1693,21 @@ function ConnectedSkillsLibrary({
|
|
|
1693
1693
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1694
1694
|
const sourceOptions = [
|
|
1695
1695
|
{ id: "all", label: "All", count: all.length },
|
|
1696
|
-
{ id: "builtin", label:
|
|
1697
|
-
{ id: "mine", label:
|
|
1698
|
-
{ id: "shared", label:
|
|
1696
|
+
{ id: "builtin", label: chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1697
|
+
{ id: "mine", label: chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1698
|
+
{ id: "shared", label: chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1699
1699
|
];
|
|
1700
1700
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1701
1701
|
const typeOptions = [
|
|
1702
1702
|
{ id: "all", label: "Any kind" },
|
|
1703
|
-
...types.map((t) => ({ id: t, label:
|
|
1703
|
+
...types.map((t) => ({ id: t, label: chunkOD6NGGL3_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1704
1704
|
];
|
|
1705
1705
|
const pick = (slug) => {
|
|
1706
1706
|
setSelected(slug);
|
|
1707
1707
|
setMode("detail");
|
|
1708
1708
|
};
|
|
1709
1709
|
const markdownOf = async (skill) => {
|
|
1710
|
-
if (!skill.docExtId) return
|
|
1710
|
+
if (!skill.docExtId) return chunkOD6NGGL3_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1711
1711
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1712
1712
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1713
1713
|
return response.text();
|
|
@@ -1771,7 +1771,7 @@ function ConnectedSkillsLibrary({
|
|
|
1771
1771
|
try {
|
|
1772
1772
|
documentTools.downloadBlob(
|
|
1773
1773
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1774
|
-
|
|
1774
|
+
chunkOD6NGGL3_cjs.SKILL_MAIN_FILENAME
|
|
1775
1775
|
);
|
|
1776
1776
|
} catch (error) {
|
|
1777
1777
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1812,10 +1812,10 @@ function ConnectedSkillsLibrary({
|
|
|
1812
1812
|
}
|
|
1813
1813
|
)
|
|
1814
1814
|
] }),
|
|
1815
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1815
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1816
1816
|
] }),
|
|
1817
1817
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1818
|
-
|
|
1818
|
+
chunkOD6NGGL3_cjs.SkillFilterChips,
|
|
1819
1819
|
{
|
|
1820
1820
|
label: "Show",
|
|
1821
1821
|
value: source,
|
|
@@ -1824,7 +1824,7 @@ function ConnectedSkillsLibrary({
|
|
|
1824
1824
|
}
|
|
1825
1825
|
),
|
|
1826
1826
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1827
|
-
|
|
1827
|
+
chunkOD6NGGL3_cjs.SkillFilterChips,
|
|
1828
1828
|
{
|
|
1829
1829
|
label: "Kind",
|
|
1830
1830
|
value: type,
|
|
@@ -1871,12 +1871,12 @@ function ConnectedSkillsLibrary({
|
|
|
1871
1871
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1872
1872
|
),
|
|
1873
1873
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1874
|
-
|
|
1874
|
+
chunkOD6NGGL3_cjs.SkillTile,
|
|
1875
1875
|
{
|
|
1876
1876
|
name: skill.title,
|
|
1877
1877
|
testId: `skill-tile-${skill.slug}`,
|
|
1878
1878
|
description: skill.description,
|
|
1879
|
-
sourceLabel: skill.isShared ? `${
|
|
1879
|
+
sourceLabel: skill.isShared ? `${chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1880
1880
|
type: skill.type,
|
|
1881
1881
|
icon,
|
|
1882
1882
|
layout: view,
|
|
@@ -1911,7 +1911,7 @@ function ConnectedSkillsLibrary({
|
|
|
1911
1911
|
}
|
|
1912
1912
|
),
|
|
1913
1913
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1914
|
-
|
|
1914
|
+
chunkOD6NGGL3_cjs.SkillGenerateForm,
|
|
1915
1915
|
{
|
|
1916
1916
|
icon,
|
|
1917
1917
|
onGenerate: (desc) => {
|
|
@@ -1938,11 +1938,11 @@ function ConnectedSkillsLibrary({
|
|
|
1938
1938
|
),
|
|
1939
1939
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1940
1940
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1941
|
-
|
|
1941
|
+
chunkOD6NGGL3_cjs.SkillLibraryDetail,
|
|
1942
1942
|
{
|
|
1943
1943
|
skill: current,
|
|
1944
1944
|
icon,
|
|
1945
|
-
instructions: current.docExtId ? currentText ?
|
|
1945
|
+
instructions: current.docExtId ? currentText ? chunkOD6NGGL3_cjs.parseSkillFrontmatter(currentText, chunkOD6NGGL3_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1946
1946
|
isLoading: !!current.docExtId && textLoading,
|
|
1947
1947
|
actions: {
|
|
1948
1948
|
onRun: () => onRun(current.slug),
|
|
@@ -1977,7 +1977,7 @@ function SkillEditor({
|
|
|
1977
1977
|
const [seeded, setSeeded] = react$1.useState(!isEditing);
|
|
1978
1978
|
const [nameError, setNameError] = react$1.useState(null);
|
|
1979
1979
|
if (isEditing && !seeded && text !== void 0) {
|
|
1980
|
-
const parsed =
|
|
1980
|
+
const parsed = chunkOD6NGGL3_cjs.parseSkillFrontmatter(text, chunkOD6NGGL3_cjs.SKILL_MAIN_FILENAME);
|
|
1981
1981
|
setDescription(parsed.description ?? "");
|
|
1982
1982
|
setBody(parsed.content ?? "");
|
|
1983
1983
|
setSeeded(true);
|
|
@@ -1991,15 +1991,15 @@ function SkillEditor({
|
|
|
1991
1991
|
notify19("Add a short description.", "error");
|
|
1992
1992
|
return;
|
|
1993
1993
|
}
|
|
1994
|
-
const slug =
|
|
1994
|
+
const slug = chunkOD6NGGL3_cjs.skillSlug(name);
|
|
1995
1995
|
try {
|
|
1996
|
-
await onSave(slug,
|
|
1996
|
+
await onSave(slug, chunkOD6NGGL3_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1997
1997
|
} catch (err) {
|
|
1998
1998
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
2001
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2002
|
-
|
|
2002
|
+
chunkOD6NGGL3_cjs.SkillEditForm,
|
|
2003
2003
|
{
|
|
2004
2004
|
name,
|
|
2005
2005
|
onNameChange: setName,
|
|
@@ -2038,11 +2038,11 @@ var DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS = {
|
|
|
2038
2038
|
function ConnectedSkillsBrowser({
|
|
2039
2039
|
props,
|
|
2040
2040
|
onClose: close,
|
|
2041
|
-
builtins: givenBuiltins =
|
|
2041
|
+
builtins: givenBuiltins = chunk5A6T4W46_cjs.BUILTIN_SKILLS,
|
|
2042
2042
|
renderEditor,
|
|
2043
2043
|
labels
|
|
2044
2044
|
}) {
|
|
2045
|
-
const builtins =
|
|
2045
|
+
const builtins = chunkHBUHOCWF_cjs.useNamedWorkflows(givenBuiltins);
|
|
2046
2046
|
const l = { ...DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS, ...labels };
|
|
2047
2047
|
const isOpen = props !== null;
|
|
2048
2048
|
const session = react.useArbiSessionStore();
|
|
@@ -2092,7 +2092,7 @@ function ConnectedSkillsBrowser({
|
|
|
2092
2092
|
}
|
|
2093
2093
|
) }),
|
|
2094
2094
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2095
|
-
|
|
2095
|
+
chunkGOQV6NOK_cjs.ConnectedTaskComposer,
|
|
2096
2096
|
{
|
|
2097
2097
|
kind: "workflow",
|
|
2098
2098
|
open: true,
|
|
@@ -2116,9 +2116,9 @@ function ConnectedAgentCreator({
|
|
|
2116
2116
|
agent,
|
|
2117
2117
|
initialName,
|
|
2118
2118
|
onSaved,
|
|
2119
|
-
capabilities =
|
|
2120
|
-
templates =
|
|
2121
|
-
types =
|
|
2119
|
+
capabilities = chunkOD6NGGL3_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2120
|
+
templates = chunkOD6NGGL3_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2121
|
+
types = chunkOD6NGGL3_cjs.DEFAULT_AGENT_TYPES,
|
|
2122
2122
|
canRevokeWorkspaces = false,
|
|
2123
2123
|
labels
|
|
2124
2124
|
}) {
|
|
@@ -2160,7 +2160,7 @@ function ConnectedAgentCreator({
|
|
|
2160
2160
|
const initialValues = react$1.useMemo(
|
|
2161
2161
|
() => ({
|
|
2162
2162
|
name: agent?.given_name ?? initialName ?? "",
|
|
2163
|
-
persona: isEdit ?
|
|
2163
|
+
persona: isEdit ? chunkOD6NGGL3_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2164
2164
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2165
2165
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2166
2166
|
type: "builtin",
|
|
@@ -2179,7 +2179,7 @@ function ConnectedAgentCreator({
|
|
|
2179
2179
|
try {
|
|
2180
2180
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2181
2181
|
if (!agentExtId) {
|
|
2182
|
-
if (!
|
|
2182
|
+
if (!chunkOD6NGGL3_cjs.isValidAgentName(values.name)) {
|
|
2183
2183
|
notify19("Give the agent a name first.", "error");
|
|
2184
2184
|
return;
|
|
2185
2185
|
}
|
|
@@ -2215,7 +2215,7 @@ function ConnectedAgentCreator({
|
|
|
2215
2215
|
title: `agent-${name}`,
|
|
2216
2216
|
sections: {
|
|
2217
2217
|
Agents: {
|
|
2218
|
-
PERSONA:
|
|
2218
|
+
PERSONA: chunkOD6NGGL3_cjs.composePersona(name, values.persona),
|
|
2219
2219
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2220
2220
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2221
2221
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2238,7 +2238,7 @@ function ConnectedAgentCreator({
|
|
|
2238
2238
|
};
|
|
2239
2239
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2240
2240
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2241
|
-
|
|
2241
|
+
chunkOD6NGGL3_cjs.AgentCreator,
|
|
2242
2242
|
{
|
|
2243
2243
|
open: ready,
|
|
2244
2244
|
onOpenChange,
|
|
@@ -2254,11 +2254,11 @@ function ConnectedAgentCreator({
|
|
|
2254
2254
|
) : void 0,
|
|
2255
2255
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2256
2256
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2257
|
-
|
|
2257
|
+
chunkOD6NGGL3_cjs.AgentAvatarField,
|
|
2258
2258
|
{
|
|
2259
2259
|
picture,
|
|
2260
2260
|
isBusy: avatarBusy,
|
|
2261
|
-
canGenerate: isEdit ||
|
|
2261
|
+
canGenerate: isEdit || chunkOD6NGGL3_cjs.isValidAgentName(values.name),
|
|
2262
2262
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2263
2263
|
}
|
|
2264
2264
|
),
|
|
@@ -2310,7 +2310,7 @@ function ConnectedAgentCreator({
|
|
|
2310
2310
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2311
2311
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2312
2312
|
] }),
|
|
2313
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2313
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2314
2314
|
]
|
|
2315
2315
|
}
|
|
2316
2316
|
) })
|
|
@@ -2437,7 +2437,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
2437
2437
|
/* @__PURE__ */ jsxRuntime.jsx("ol", { className: "mt-2 space-y-1", children: activity.map((name, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap break-all", children: name }) }, i)) })
|
|
2438
2438
|
] }),
|
|
2439
2439
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2440
|
-
|
|
2440
|
+
chunkA6GBPE5E_cjs.ChatPage,
|
|
2441
2441
|
{
|
|
2442
2442
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
2443
2443
|
surface: "dock",
|
|
@@ -2457,7 +2457,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
2457
2457
|
placeholder: "Ask your agent\u2026",
|
|
2458
2458
|
conversations: "Agent chats"
|
|
2459
2459
|
},
|
|
2460
|
-
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2460
|
+
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkERRXU2HL_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkERRXU2HL_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
|
|
2461
2461
|
}
|
|
2462
2462
|
)
|
|
2463
2463
|
] });
|
|
@@ -2702,7 +2702,7 @@ function useMemoryCount(enabled) {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2704
2704
|
const { notify: notify19, openConversation, openDocument } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2705
|
-
const people =
|
|
2705
|
+
const people = chunkGOQV6NOK_cjs.useTaskPeople();
|
|
2706
2706
|
const canEditShared = react.useCanEditShared();
|
|
2707
2707
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2708
2708
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2728,7 +2728,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2728
2728
|
}, [documents]);
|
|
2729
2729
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2730
2730
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2731
|
-
|
|
2731
|
+
chunkOD6NGGL3_cjs.TaskTable,
|
|
2732
2732
|
{
|
|
2733
2733
|
tasks,
|
|
2734
2734
|
isLoading,
|
|
@@ -2755,7 +2755,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
),
|
|
2757
2757
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2758
|
-
|
|
2758
|
+
chunkGOQV6NOK_cjs.ConnectedTaskActivityDialog,
|
|
2759
2759
|
{
|
|
2760
2760
|
conversationId: activityFor.external_id,
|
|
2761
2761
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2771,12 +2771,12 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2771
2771
|
const { notify: notify19, openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2772
2772
|
const { workspaceId, ensureWorkspaceOpen } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
2773
2773
|
const { data: skills = [] } = react.useSkills({ enabled: !!workspaceId, live: true });
|
|
2774
|
-
const workflowTasks =
|
|
2774
|
+
const workflowTasks = chunkHBUHOCWF_cjs.useWorkflowTasks();
|
|
2775
2775
|
const launchable = react$1.useMemo(
|
|
2776
2776
|
() => [
|
|
2777
2777
|
...workflows,
|
|
2778
2778
|
...skills.map((s) => {
|
|
2779
|
-
const workflow =
|
|
2779
|
+
const workflow = chunkJN5YMHGI_cjs.skillToWorkflow({
|
|
2780
2780
|
name: s.name,
|
|
2781
2781
|
slug: s.slug,
|
|
2782
2782
|
description: s.description,
|
|
@@ -2794,7 +2794,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2794
2794
|
[workflows, skills, l.skillFiles]
|
|
2795
2795
|
);
|
|
2796
2796
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2797
|
-
const values =
|
|
2797
|
+
const values = chunkOD6NGGL3_cjs.defaultTaskComposerValues(launchable, {
|
|
2798
2798
|
workflowId: workflow.id,
|
|
2799
2799
|
assignee: "agent",
|
|
2800
2800
|
inputs,
|
|
@@ -2815,7 +2815,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
};
|
|
2817
2817
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2818
|
-
|
|
2818
|
+
chunkDBN6GBRQ_cjs.ConnectedWorkflowLauncher,
|
|
2819
2819
|
{
|
|
2820
2820
|
workflows: launchable,
|
|
2821
2821
|
onLaunch: launch,
|
|
@@ -2914,7 +2914,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2914
2914
|
children,
|
|
2915
2915
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2916
2916
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2917
|
-
|
|
2917
|
+
chunkGOQV6NOK_cjs.ConnectedTaskComposer,
|
|
2918
2918
|
{
|
|
2919
2919
|
open: true,
|
|
2920
2920
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2936,7 +2936,7 @@ function AgentsGallery() {
|
|
|
2936
2936
|
cardTestIds
|
|
2937
2937
|
} = agentOptions;
|
|
2938
2938
|
const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2939
|
-
const tasksByAgent = react$1.useMemo(() =>
|
|
2939
|
+
const tasksByAgent = react$1.useMemo(() => chunkOD6NGGL3_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2940
2940
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2941
2941
|
const { agents } = management;
|
|
2942
2942
|
const cardDetails = (agent) => details.map(
|
|
@@ -2951,7 +2951,7 @@ function AgentsGallery() {
|
|
|
2951
2951
|
) : detail === "workspaces" ? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkspaceAccess, { agentExtId: agent.external_id, labels: l }, detail) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: behaviour.behaviourOf(agent.given_name) }, detail)
|
|
2952
2952
|
);
|
|
2953
2953
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2954
|
-
|
|
2954
|
+
chunkOD6NGGL3_cjs.AgentGallery,
|
|
2955
2955
|
{
|
|
2956
2956
|
count: agents.length,
|
|
2957
2957
|
onCreate: management.create,
|
|
@@ -2961,9 +2961,9 @@ function AgentsGallery() {
|
|
|
2961
2961
|
const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
|
|
2962
2962
|
const running = agentTasks.filter((t) => t.in_progress);
|
|
2963
2963
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2964
|
-
const progress = agentTasks[0] ?
|
|
2964
|
+
const progress = agentTasks[0] ? chunkOD6NGGL3_cjs.goalProgress(agentTasks[0]) : null;
|
|
2965
2965
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2966
|
-
|
|
2966
|
+
chunkOD6NGGL3_cjs.AgentCard,
|
|
2967
2967
|
{
|
|
2968
2968
|
name: displayName(agent),
|
|
2969
2969
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -3071,7 +3071,7 @@ function AgentsSectionBody({ id }) {
|
|
|
3071
3071
|
) });
|
|
3072
3072
|
case "scheduled":
|
|
3073
3073
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3074
|
-
|
|
3074
|
+
chunkTZYB22FM_cjs.ConnectedWorkflowsTable,
|
|
3075
3075
|
{
|
|
3076
3076
|
filter: "scheduled",
|
|
3077
3077
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3156,7 +3156,7 @@ function ConnectedAgentsPage({
|
|
|
3156
3156
|
}
|
|
3157
3157
|
) });
|
|
3158
3158
|
}
|
|
3159
|
-
var StreamedArtifactEditor = react$1.lazy(() => import('../StreamedArtifactEditor-
|
|
3159
|
+
var StreamedArtifactEditor = react$1.lazy(() => import('../StreamedArtifactEditor-RSPUSZ2B.cjs'));
|
|
3160
3160
|
function StreamedArtifact({
|
|
3161
3161
|
artifacts: artifacts$1,
|
|
3162
3162
|
workspaceId,
|
|
@@ -3375,7 +3375,7 @@ function ConnectedTagTable({
|
|
|
3375
3375
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3376
3376
|
const snapshot2 = (data) => {
|
|
3377
3377
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3378
|
-
const bytes =
|
|
3378
|
+
const bytes = chunkKWHGYHRC_cjs.tagTableDocx(data, {
|
|
3379
3379
|
title,
|
|
3380
3380
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3381
3381
|
});
|
|
@@ -3384,7 +3384,7 @@ function ConnectedTagTable({
|
|
|
3384
3384
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3385
3385
|
};
|
|
3386
3386
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3387
|
-
|
|
3387
|
+
chunkKWHGYHRC_cjs.TagTable,
|
|
3388
3388
|
{
|
|
3389
3389
|
...props,
|
|
3390
3390
|
table,
|
|
@@ -3427,6 +3427,754 @@ function ConnectedTagTable({
|
|
|
3427
3427
|
}
|
|
3428
3428
|
);
|
|
3429
3429
|
}
|
|
3430
|
+
var DEFAULT_ASSISTANT_DRAFT_LABELS = {
|
|
3431
|
+
draftInGmail: "Draft in Gmail",
|
|
3432
|
+
draftInArbiMail: "Draft in ARBI Mail",
|
|
3433
|
+
openDraft: "Open draft",
|
|
3434
|
+
noSubject: "(no subject)",
|
|
3435
|
+
messageTo: (name) => `Message to ${name}`,
|
|
3436
|
+
send: "Send",
|
|
3437
|
+
sent: "Sent",
|
|
3438
|
+
openChat: "Open chat",
|
|
3439
|
+
sendFailed: "Could not send the message",
|
|
3440
|
+
sentNotRecorded: "The message was sent, but it may be offered again"
|
|
3441
|
+
};
|
|
3442
|
+
function MessageDraftRow({
|
|
3443
|
+
workspaceId,
|
|
3444
|
+
arrivalId,
|
|
3445
|
+
index,
|
|
3446
|
+
draft,
|
|
3447
|
+
labels
|
|
3448
|
+
}) {
|
|
3449
|
+
const { notify: notify19, openDirectChat } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
3450
|
+
const post = react.useChatPost();
|
|
3451
|
+
const markSent = react.useMarkMessageDraftSent(workspaceId);
|
|
3452
|
+
const [text, setText] = react$1.useState(draft.text);
|
|
3453
|
+
const [state, setState] = react$1.useState("idle");
|
|
3454
|
+
const sent = state === "sent" || !!draft.sent_at;
|
|
3455
|
+
const key = `${arrivalId}-${index}`;
|
|
3456
|
+
const send = async () => {
|
|
3457
|
+
setState("sending");
|
|
3458
|
+
try {
|
|
3459
|
+
await post({ chat: null, peerExtId: draft.to_user_ext_id }, { text: text.trim() });
|
|
3460
|
+
} catch (err) {
|
|
3461
|
+
setState("idle");
|
|
3462
|
+
notify19(browser.refusalReason(err, labels.sendFailed), "error");
|
|
3463
|
+
return;
|
|
3464
|
+
}
|
|
3465
|
+
setState("sent");
|
|
3466
|
+
markSent.mutate(
|
|
3467
|
+
{ arrivalExtId: arrivalId, index },
|
|
3468
|
+
{ onError: () => notify19(labels.sentNotRecorded, "error") }
|
|
3469
|
+
);
|
|
3470
|
+
};
|
|
3471
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", "data-testid": `assistant-message-draft-${key}`, children: [
|
|
3472
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: labels.messageTo(draft.to_name || draft.to_user_ext_id) }),
|
|
3473
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3474
|
+
ui.Textarea,
|
|
3475
|
+
{
|
|
3476
|
+
rows: 3,
|
|
3477
|
+
value: text,
|
|
3478
|
+
disabled: sent || state !== "idle",
|
|
3479
|
+
onChange: (e) => setText(e.target.value),
|
|
3480
|
+
"data-testid": `assistant-message-text-${key}`
|
|
3481
|
+
}
|
|
3482
|
+
),
|
|
3483
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
3484
|
+
sent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3485
|
+
"span",
|
|
3486
|
+
{
|
|
3487
|
+
className: "text-sm text-muted-foreground",
|
|
3488
|
+
"data-testid": `assistant-message-sent-${key}`,
|
|
3489
|
+
children: labels.sent
|
|
3490
|
+
}
|
|
3491
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3492
|
+
ui.Button,
|
|
3493
|
+
{
|
|
3494
|
+
size: "sm",
|
|
3495
|
+
disabled: state === "sending" || !text.trim(),
|
|
3496
|
+
onClick: send,
|
|
3497
|
+
"data-testid": `assistant-message-send-${key}`,
|
|
3498
|
+
children: labels.send
|
|
3499
|
+
}
|
|
3500
|
+
),
|
|
3501
|
+
openDirectChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3502
|
+
ui.Button,
|
|
3503
|
+
{
|
|
3504
|
+
variant: "ghost",
|
|
3505
|
+
size: "sm",
|
|
3506
|
+
onClick: () => openDirectChat(draft.to_user_ext_id),
|
|
3507
|
+
"data-testid": `assistant-message-open-chat-${key}`,
|
|
3508
|
+
children: labels.openChat
|
|
3509
|
+
}
|
|
3510
|
+
)
|
|
3511
|
+
] })
|
|
3512
|
+
] });
|
|
3513
|
+
}
|
|
3514
|
+
function AssistantDrafts({
|
|
3515
|
+
arrival,
|
|
3516
|
+
labels,
|
|
3517
|
+
workspaceId
|
|
3518
|
+
}) {
|
|
3519
|
+
const { openMail } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
3520
|
+
const emails = arrival.email_drafts ?? [];
|
|
3521
|
+
const messages = arrival.message_drafts ?? [];
|
|
3522
|
+
if (!emails.length && !messages.length) return null;
|
|
3523
|
+
const id = arrival.external_id;
|
|
3524
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 space-y-3 border-t pt-2", "data-testid": `assistant-drafts-${id}`, children: [
|
|
3525
|
+
emails.map((email, i) => {
|
|
3526
|
+
const gmail = email.provider === "gmail";
|
|
3527
|
+
const link = gmail ? chunkJN5YMHGI_cjs.gmailLink(email.url) : void 0;
|
|
3528
|
+
const subject = email.subject || labels.noSubject;
|
|
3529
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3530
|
+
"div",
|
|
3531
|
+
{
|
|
3532
|
+
className: "flex flex-wrap items-center gap-2 text-sm",
|
|
3533
|
+
"data-testid": `assistant-email-draft-${id}-${i}`,
|
|
3534
|
+
children: [
|
|
3535
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: gmail ? labels.draftInGmail : labels.draftInArbiMail }),
|
|
3536
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate text-muted-foreground", children: subject }),
|
|
3537
|
+
link ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3538
|
+
"a",
|
|
3539
|
+
{
|
|
3540
|
+
href: link,
|
|
3541
|
+
target: "_blank",
|
|
3542
|
+
rel: "noopener noreferrer",
|
|
3543
|
+
className: "text-primary underline",
|
|
3544
|
+
"data-testid": `assistant-email-link-${id}-${i}`,
|
|
3545
|
+
children: labels.openDraft
|
|
3546
|
+
}
|
|
3547
|
+
) : !gmail && openMail && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3548
|
+
ui.Button,
|
|
3549
|
+
{
|
|
3550
|
+
variant: "outline",
|
|
3551
|
+
size: "sm",
|
|
3552
|
+
onClick: () => openMail({ draftId: email.draft_id }),
|
|
3553
|
+
"data-testid": `assistant-email-open-${id}-${i}`,
|
|
3554
|
+
children: labels.openDraft
|
|
3555
|
+
}
|
|
3556
|
+
)
|
|
3557
|
+
]
|
|
3558
|
+
},
|
|
3559
|
+
`${email.draft_id}-${i}`
|
|
3560
|
+
);
|
|
3561
|
+
}),
|
|
3562
|
+
messages.map((draft, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3563
|
+
MessageDraftRow,
|
|
3564
|
+
{
|
|
3565
|
+
workspaceId,
|
|
3566
|
+
arrivalId: id,
|
|
3567
|
+
index: i,
|
|
3568
|
+
draft,
|
|
3569
|
+
labels
|
|
3570
|
+
},
|
|
3571
|
+
`${draft.to_user_ext_id}-${i}`
|
|
3572
|
+
))
|
|
3573
|
+
] });
|
|
3574
|
+
}
|
|
3575
|
+
var DEFAULT_ASSISTANT_STATUS_LABELS = {
|
|
3576
|
+
statusOff: "The Assistant is off",
|
|
3577
|
+
statusOffHint: "Switch it on to have it react to new uploads, emails and files.",
|
|
3578
|
+
statusIdle: "Watching this workspace \u2014 I'll react to new uploads, emails and files.",
|
|
3579
|
+
statusIdleProcessing: (n) => n === 1 ? "1 file is processing \u2014 I'll look at it once it's ready." : `${n} files are processing \u2014 I'll look at them once they're ready.`,
|
|
3580
|
+
statusWaiting: (n) => `${n} ${n === 1 ? "item" : "items"} waiting`,
|
|
3581
|
+
statusStartsIn: "I'll start in",
|
|
3582
|
+
statusStartingSoon: "Starting on the next check (\u226430 s)\u2026",
|
|
3583
|
+
statusQuiet: "Quiet for 1 minute since the last arrival",
|
|
3584
|
+
statusQuietIn: "quiet in",
|
|
3585
|
+
statusDocsDone: "All documents finished processing",
|
|
3586
|
+
statusDocsWaiting: (n) => `Waiting for ${n} ${n === 1 ? "file" : "files"}`,
|
|
3587
|
+
statusPrivateFile: "a private file",
|
|
3588
|
+
statusHidden: (n) => `+${n} ${n === 1 ? "file" : "files"} you can't see`,
|
|
3589
|
+
statusAtLatest: "At the latest",
|
|
3590
|
+
statusAtLatestHint: "(starts even if files are still processing)",
|
|
3591
|
+
statusWorking: (n) => `Working on ${n} ${n === 1 ? "item" : "items"}\u2026`,
|
|
3592
|
+
statusOpenThread: "Open the thread it is working in",
|
|
3593
|
+
statusRetrying: "A reaction failed; retrying in",
|
|
3594
|
+
statusDocStatuses: { uploading: "Uploading", queued: "Queued", processing: "Processing" }
|
|
3595
|
+
};
|
|
3596
|
+
var ms = (iso) => iso ? Date.parse(iso) : null;
|
|
3597
|
+
function clock(remainingMs) {
|
|
3598
|
+
const s = Math.max(0, Math.ceil(remainingMs / 1e3));
|
|
3599
|
+
return `${String(Math.floor(s / 60)).padStart(2, "0")}:${String(s % 60).padStart(2, "0")}`;
|
|
3600
|
+
}
|
|
3601
|
+
function coarse(remainingMs) {
|
|
3602
|
+
const s = Math.max(0, Math.ceil(remainingMs / 1e3));
|
|
3603
|
+
return s < 60 ? "less than a minute" : `about ${Math.ceil(s / 60)} minutes`;
|
|
3604
|
+
}
|
|
3605
|
+
function Countdown({ remaining }) {
|
|
3606
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3607
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", "data-testid": "assistant-status-countdown", children: clock(remaining) }),
|
|
3608
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: coarse(remaining) })
|
|
3609
|
+
] });
|
|
3610
|
+
}
|
|
3611
|
+
function Condition({
|
|
3612
|
+
ok,
|
|
3613
|
+
children,
|
|
3614
|
+
testId
|
|
3615
|
+
}) {
|
|
3616
|
+
const Icon = ok ? lucideReact.Check : lucideReact.Circle;
|
|
3617
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-2", "data-testid": testId, "data-done": ok, children: [
|
|
3618
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3619
|
+
Icon,
|
|
3620
|
+
{
|
|
3621
|
+
className: `mt-0.5 h-4 w-4 shrink-0 ${ok ? "text-green-600" : "text-muted-foreground"}`,
|
|
3622
|
+
"aria-hidden": "true"
|
|
3623
|
+
}
|
|
3624
|
+
),
|
|
3625
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children })
|
|
3626
|
+
] });
|
|
3627
|
+
}
|
|
3628
|
+
function ProcessingList({
|
|
3629
|
+
docs,
|
|
3630
|
+
hidden,
|
|
3631
|
+
labels
|
|
3632
|
+
}) {
|
|
3633
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "mt-1 space-y-1", children: [
|
|
3634
|
+
docs.map((d) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3635
|
+
"li",
|
|
3636
|
+
{
|
|
3637
|
+
className: "flex items-center gap-2",
|
|
3638
|
+
"data-testid": `assistant-status-processing-${d.doc_ext_id}`,
|
|
3639
|
+
children: [
|
|
3640
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: d.name ?? labels.statusPrivateFile }),
|
|
3641
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { variant: "outline", children: labels.statusDocStatuses[d.status] ?? d.status })
|
|
3642
|
+
]
|
|
3643
|
+
},
|
|
3644
|
+
d.doc_ext_id
|
|
3645
|
+
)),
|
|
3646
|
+
hidden > 0 && /* @__PURE__ */ jsxRuntime.jsx("li", { className: "text-muted-foreground", "data-testid": "assistant-status-hidden", children: labels.statusHidden(hidden) })
|
|
3647
|
+
] });
|
|
3648
|
+
}
|
|
3649
|
+
function Idle({ s, labels }) {
|
|
3650
|
+
const processing = s.processing ?? [];
|
|
3651
|
+
if (processing.length === 0) {
|
|
3652
|
+
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", "aria-live": "polite", children: labels.statusIdle });
|
|
3653
|
+
}
|
|
3654
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
3655
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium", "aria-live": "polite", "data-testid": "assistant-status-headline", children: labels.statusIdleProcessing(processing.length) }),
|
|
3656
|
+
/* @__PURE__ */ jsxRuntime.jsx(ProcessingList, { docs: processing, hidden: 0, labels })
|
|
3657
|
+
] });
|
|
3658
|
+
}
|
|
3659
|
+
function Body({
|
|
3660
|
+
s,
|
|
3661
|
+
now,
|
|
3662
|
+
labels,
|
|
3663
|
+
onOpenThread
|
|
3664
|
+
}) {
|
|
3665
|
+
if (s.state === "working") {
|
|
3666
|
+
const thread = s.conversation_ext_id;
|
|
3667
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [
|
|
3668
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2", "aria-live": "polite", children: [
|
|
3669
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }),
|
|
3670
|
+
labels.statusWorking(s.working)
|
|
3671
|
+
] }),
|
|
3672
|
+
thread && onOpenThread && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3673
|
+
"button",
|
|
3674
|
+
{
|
|
3675
|
+
type: "button",
|
|
3676
|
+
className: "text-sm underline underline-offset-2 hover:text-foreground",
|
|
3677
|
+
onClick: () => onOpenThread(thread),
|
|
3678
|
+
"data-testid": "assistant-status-open-thread",
|
|
3679
|
+
children: labels.statusOpenThread
|
|
3680
|
+
}
|
|
3681
|
+
)
|
|
3682
|
+
] });
|
|
3683
|
+
}
|
|
3684
|
+
if (s.state === "retrying") {
|
|
3685
|
+
const at = ms(s.retry_at);
|
|
3686
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("p", { "aria-live": "polite", children: [
|
|
3687
|
+
labels.statusRetrying,
|
|
3688
|
+
" ",
|
|
3689
|
+
at !== null && /* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: at - now })
|
|
3690
|
+
] });
|
|
3691
|
+
}
|
|
3692
|
+
const starts = ms(s.starts_at);
|
|
3693
|
+
const quiet = ms(s.quiet_until);
|
|
3694
|
+
const maxWait = ms(s.max_wait_until);
|
|
3695
|
+
const due = starts !== null && starts <= now;
|
|
3696
|
+
const quietOk = quiet === null || quiet <= now;
|
|
3697
|
+
const docsOk = (s.processing ?? []).length === 0 && (s.processing_hidden ?? 0) === 0;
|
|
3698
|
+
const processing = s.processing ?? [];
|
|
3699
|
+
const hidden = s.processing_hidden ?? 0;
|
|
3700
|
+
const waitingFiles = processing.length + hidden;
|
|
3701
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
3702
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "font-medium", "aria-live": "polite", "data-testid": "assistant-status-headline", children: [
|
|
3703
|
+
labels.statusWaiting(s.pending),
|
|
3704
|
+
" \u2014 ",
|
|
3705
|
+
due || starts === null ? labels.statusStartingSoon : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3706
|
+
labels.statusStartsIn,
|
|
3707
|
+
" ",
|
|
3708
|
+
/* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: starts - now })
|
|
3709
|
+
] })
|
|
3710
|
+
] }),
|
|
3711
|
+
/* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "space-y-1 text-sm", "data-testid": "assistant-status-conditions", children: [
|
|
3712
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Condition, { ok: quietOk, testId: "assistant-status-quiet", children: [
|
|
3713
|
+
labels.statusQuiet,
|
|
3714
|
+
!quietOk && quiet !== null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3715
|
+
" \u2014 ",
|
|
3716
|
+
labels.statusQuietIn,
|
|
3717
|
+
" ",
|
|
3718
|
+
/* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: quiet - now })
|
|
3719
|
+
] })
|
|
3720
|
+
] }),
|
|
3721
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Condition, { ok: docsOk, testId: "assistant-status-docs", children: [
|
|
3722
|
+
docsOk ? labels.statusDocsDone : labels.statusDocsWaiting(waitingFiles),
|
|
3723
|
+
!docsOk && /* @__PURE__ */ jsxRuntime.jsx(ProcessingList, { docs: processing, hidden, labels })
|
|
3724
|
+
] }),
|
|
3725
|
+
maxWait !== null && /* @__PURE__ */ jsxRuntime.jsxs(Condition, { ok: maxWait <= now, testId: "assistant-status-max-wait", children: [
|
|
3726
|
+
labels.statusAtLatest,
|
|
3727
|
+
": ",
|
|
3728
|
+
/* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: maxWait - now }),
|
|
3729
|
+
" ",
|
|
3730
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: labels.statusAtLatestHint })
|
|
3731
|
+
] })
|
|
3732
|
+
] })
|
|
3733
|
+
] });
|
|
3734
|
+
}
|
|
3735
|
+
function AssistantStatusPanel({
|
|
3736
|
+
workspaceId,
|
|
3737
|
+
labels: labelOverrides,
|
|
3738
|
+
onOpenThread
|
|
3739
|
+
}) {
|
|
3740
|
+
const labels = { ...DEFAULT_ASSISTANT_STATUS_LABELS, ...labelOverrides };
|
|
3741
|
+
const { data, dataUpdatedAt } = react.useAssistantStatus(workspaceId);
|
|
3742
|
+
const offset = react$1.useMemo(
|
|
3743
|
+
() => data ? Date.parse(data.now) - dataUpdatedAt : 0,
|
|
3744
|
+
[data, dataUpdatedAt]
|
|
3745
|
+
);
|
|
3746
|
+
const [, setTick] = react$1.useState(0);
|
|
3747
|
+
const ticking = data?.state === "waiting" || data?.state === "retrying";
|
|
3748
|
+
react$1.useEffect(() => {
|
|
3749
|
+
if (!ticking) return;
|
|
3750
|
+
const t = setInterval(() => setTick((n) => n + 1), 1e3);
|
|
3751
|
+
return () => clearInterval(t);
|
|
3752
|
+
}, [ticking]);
|
|
3753
|
+
if (!data) return null;
|
|
3754
|
+
const now = Date.now() + offset;
|
|
3755
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3756
|
+
"section",
|
|
3757
|
+
{
|
|
3758
|
+
className: "rounded-md border bg-muted/30 p-3 text-sm",
|
|
3759
|
+
"data-testid": `assistant-status-${data.state}`,
|
|
3760
|
+
children: data.state === "off" ? /* @__PURE__ */ jsxRuntime.jsxs("p", { "aria-live": "polite", children: [
|
|
3761
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: labels.statusOff }),
|
|
3762
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
|
|
3763
|
+
" \u2014 ",
|
|
3764
|
+
labels.statusOffHint
|
|
3765
|
+
] })
|
|
3766
|
+
] }) : data.state === "idle" ? /* @__PURE__ */ jsxRuntime.jsx(Idle, { s: data, labels }) : /* @__PURE__ */ jsxRuntime.jsx(Body, { s: data, now, labels, onOpenThread })
|
|
3767
|
+
}
|
|
3768
|
+
);
|
|
3769
|
+
}
|
|
3770
|
+
var DEFAULT_ASSISTANT_PLAN_LABELS = {
|
|
3771
|
+
planGoal: "Goal",
|
|
3772
|
+
planWhy: "Why",
|
|
3773
|
+
planChanged: "Changed course:",
|
|
3774
|
+
planShowSteps: (count2) => `Show ${count2} steps`,
|
|
3775
|
+
planHideSteps: "Hide steps",
|
|
3776
|
+
planSameReaction: "Same reaction as above"
|
|
3777
|
+
};
|
|
3778
|
+
var COLLAPSE_AFTER = 3;
|
|
3779
|
+
function AssistantPlan({
|
|
3780
|
+
arrival,
|
|
3781
|
+
labels,
|
|
3782
|
+
sameAsAbove
|
|
3783
|
+
}) {
|
|
3784
|
+
const id = arrival.external_id;
|
|
3785
|
+
const plan = arrival.plan;
|
|
3786
|
+
const steps = plan?.steps ?? [];
|
|
3787
|
+
const changes = arrival.plan_changes ?? [];
|
|
3788
|
+
const [toggled, setToggled] = react$1.useState(null);
|
|
3789
|
+
if (!plan) return null;
|
|
3790
|
+
if (sameAsAbove) {
|
|
3791
|
+
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-xs text-muted-foreground", "data-testid": `assistant-plan-same-${id}`, children: labels.planSameReaction });
|
|
3792
|
+
}
|
|
3793
|
+
const collapsible = steps.length > COLLAPSE_AFTER;
|
|
3794
|
+
const open = !collapsible || (toggled ?? arrival.working);
|
|
3795
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 space-y-1 text-sm", "data-testid": `assistant-plan-${id}`, children: [
|
|
3796
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "font-medium", "data-testid": `assistant-plan-goal-${id}`, children: [
|
|
3797
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sr-only", children: [
|
|
3798
|
+
labels.planGoal,
|
|
3799
|
+
": "
|
|
3800
|
+
] }),
|
|
3801
|
+
plan.goal
|
|
3802
|
+
] }),
|
|
3803
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", "data-testid": `assistant-plan-why-${id}`, children: [
|
|
3804
|
+
labels.planWhy,
|
|
3805
|
+
": ",
|
|
3806
|
+
plan.why
|
|
3807
|
+
] }),
|
|
3808
|
+
steps.length > 0 && open && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3809
|
+
"ol",
|
|
3810
|
+
{
|
|
3811
|
+
className: "list-decimal space-y-0.5 pl-5 text-muted-foreground",
|
|
3812
|
+
"data-testid": `assistant-plan-steps-${id}`,
|
|
3813
|
+
children: steps.map((step, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: step }, i))
|
|
3814
|
+
}
|
|
3815
|
+
),
|
|
3816
|
+
collapsible && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3817
|
+
"button",
|
|
3818
|
+
{
|
|
3819
|
+
type: "button",
|
|
3820
|
+
className: "text-xs text-muted-foreground underline",
|
|
3821
|
+
"aria-expanded": open,
|
|
3822
|
+
"data-testid": `assistant-plan-toggle-${id}`,
|
|
3823
|
+
onClick: () => setToggled(!open),
|
|
3824
|
+
children: open ? labels.planHideSteps : labels.planShowSteps(steps.length)
|
|
3825
|
+
}
|
|
3826
|
+
),
|
|
3827
|
+
changes.map((change, i) => /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-amber-600", "data-testid": `assistant-plan-change-${id}-${i}`, children: [
|
|
3828
|
+
labels.planChanged,
|
|
3829
|
+
" ",
|
|
3830
|
+
change
|
|
3831
|
+
] }, i))
|
|
3832
|
+
] });
|
|
3833
|
+
}
|
|
3834
|
+
var DEFAULT_ASSISTANT_LABELS = {
|
|
3835
|
+
...DEFAULT_ASSISTANT_DRAFT_LABELS,
|
|
3836
|
+
...DEFAULT_ASSISTANT_PLAN_LABELS,
|
|
3837
|
+
...DEFAULT_ASSISTANT_STATUS_LABELS,
|
|
3838
|
+
title: "Assistant",
|
|
3839
|
+
intro: "Your Assistant reacts to everything that arrives in this workspace \u2014 uploads, synced emails and files \u2014 following these instructions. It only drafts: it never sends, signs, shares or deletes.",
|
|
3840
|
+
briefLabel: "Instructions",
|
|
3841
|
+
briefPlaceholder: "When Dmitri Evseev writes, draft a reply in Gmail using our documents.\nInvoices: tag them Finance.\nAnything else: file it; tell me only if it looks urgent.",
|
|
3842
|
+
activeLabel: "On",
|
|
3843
|
+
dailyCapLabel: "Daily limit",
|
|
3844
|
+
save: "Save",
|
|
3845
|
+
saved: "Instructions saved",
|
|
3846
|
+
version: (n) => `Version ${n}`,
|
|
3847
|
+
noAccess: "The Assistant needs access to this workspace to react while you're away.",
|
|
3848
|
+
noAccessOwnerOnly: "Only the workspace owner can give it access.",
|
|
3849
|
+
grantAccess: "Give it access",
|
|
3850
|
+
accessGranted: "The Assistant can now open this workspace",
|
|
3851
|
+
grantAccessFailed: "Could not give the Assistant access",
|
|
3852
|
+
openInbox: "Open inbox thread",
|
|
3853
|
+
activityTitle: "Activity",
|
|
3854
|
+
activityEmpty: "Nothing has arrived yet.",
|
|
3855
|
+
waiting: "Waiting",
|
|
3856
|
+
working: "Working\u2026",
|
|
3857
|
+
retrying: "Retrying",
|
|
3858
|
+
markWrong: "That was wrong",
|
|
3859
|
+
markedWrong: "Marked wrong",
|
|
3860
|
+
backfill: "Existing",
|
|
3861
|
+
loadFailed: "Could not load the Assistant",
|
|
3862
|
+
saveFailed: "Could not save the instructions",
|
|
3863
|
+
outcomes: {
|
|
3864
|
+
acted: "Acted",
|
|
3865
|
+
asked: "Asked you",
|
|
3866
|
+
ignored: "Ignored",
|
|
3867
|
+
summarised: "Summarised",
|
|
3868
|
+
capped: "Over daily limit",
|
|
3869
|
+
failed: "Failed"
|
|
3870
|
+
},
|
|
3871
|
+
sources: {
|
|
3872
|
+
upload: "Upload",
|
|
3873
|
+
gmail: "Gmail",
|
|
3874
|
+
outlook: "Outlook",
|
|
3875
|
+
gdrive: "Google Drive",
|
|
3876
|
+
onedrive: "OneDrive",
|
|
3877
|
+
sharepoint: "SharePoint",
|
|
3878
|
+
box: "Box",
|
|
3879
|
+
dropbox: "Dropbox",
|
|
3880
|
+
clio: "Clio",
|
|
3881
|
+
onenote: "OneNote",
|
|
3882
|
+
mail: "Mail"
|
|
3883
|
+
}
|
|
3884
|
+
};
|
|
3885
|
+
var OUTCOME_VARIANT = {
|
|
3886
|
+
acted: "default",
|
|
3887
|
+
asked: "accent",
|
|
3888
|
+
ignored: "secondary",
|
|
3889
|
+
summarised: "secondary",
|
|
3890
|
+
capped: "outline",
|
|
3891
|
+
failed: "destructive"
|
|
3892
|
+
};
|
|
3893
|
+
function turnLeads(items) {
|
|
3894
|
+
const leads = /* @__PURE__ */ new Map();
|
|
3895
|
+
for (const arrival of items) {
|
|
3896
|
+
if (arrival.response_id && !leads.has(arrival.response_id)) {
|
|
3897
|
+
leads.set(arrival.response_id, arrival);
|
|
3898
|
+
}
|
|
3899
|
+
}
|
|
3900
|
+
return leads;
|
|
3901
|
+
}
|
|
3902
|
+
function sharesPlan(lead, arrival) {
|
|
3903
|
+
return !!lead.plan && !!arrival.plan && JSON.stringify(lead.plan) === JSON.stringify(arrival.plan);
|
|
3904
|
+
}
|
|
3905
|
+
function ActivityItem({
|
|
3906
|
+
arrival,
|
|
3907
|
+
workspaceId,
|
|
3908
|
+
labels,
|
|
3909
|
+
onOpen,
|
|
3910
|
+
onWrong,
|
|
3911
|
+
wrongPending,
|
|
3912
|
+
sameAsAbove,
|
|
3913
|
+
showDrafts
|
|
3914
|
+
}) {
|
|
3915
|
+
const id = arrival.external_id;
|
|
3916
|
+
const conversationId = arrival.conversation_ext_id;
|
|
3917
|
+
const outcome = arrival.status === "pending" ? null : arrival.outcome;
|
|
3918
|
+
const chip = outcome ? labels.outcomes[outcome] ?? outcome : arrival.working ? labels.working : arrival.status === "dead" ? labels.outcomes.failed ?? "failed" : arrival.last_error ? labels.retrying : labels.waiting;
|
|
3919
|
+
const variant = outcome ? OUTCOME_VARIANT[outcome] ?? "secondary" : arrival.status === "dead" ? "destructive" : "outline";
|
|
3920
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "rounded-md border p-3", "data-testid": `assistant-activity-item-${id}`, children: [
|
|
3921
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
3922
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
3923
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3924
|
+
"div",
|
|
3925
|
+
{
|
|
3926
|
+
className: conversationId ? "cursor-pointer" : void 0,
|
|
3927
|
+
role: conversationId ? "button" : void 0,
|
|
3928
|
+
tabIndex: conversationId ? 0 : void 0,
|
|
3929
|
+
onClick: conversationId ? () => onOpen(conversationId) : void 0,
|
|
3930
|
+
onKeyDown: conversationId ? (e) => {
|
|
3931
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
3932
|
+
e.preventDefault();
|
|
3933
|
+
onOpen(conversationId);
|
|
3934
|
+
}
|
|
3935
|
+
} : void 0,
|
|
3936
|
+
children: [
|
|
3937
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
3938
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate font-medium", children: arrival.name || arrival.doc_ext_id }),
|
|
3939
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { variant: "outline", "data-testid": `assistant-source-${id}`, children: labels.sources[arrival.source] ?? arrival.source }),
|
|
3940
|
+
arrival.is_backfill && /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { variant: "secondary", children: labels.backfill }),
|
|
3941
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Badge, { variant, "data-testid": `assistant-outcome-${id}`, children: [
|
|
3942
|
+
!outcome && arrival.working && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3943
|
+
lucideReact.Loader2,
|
|
3944
|
+
{
|
|
3945
|
+
className: "mr-1 h-3 w-3 animate-spin",
|
|
3946
|
+
"aria-hidden": "true",
|
|
3947
|
+
"data-testid": `assistant-working-${id}`
|
|
3948
|
+
}
|
|
3949
|
+
),
|
|
3950
|
+
chip
|
|
3951
|
+
] })
|
|
3952
|
+
] }),
|
|
3953
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: [arrival.sender, new Date(arrival.created_at).toLocaleString()].filter(Boolean).join(" \xB7 ") })
|
|
3954
|
+
]
|
|
3955
|
+
}
|
|
3956
|
+
),
|
|
3957
|
+
/* @__PURE__ */ jsxRuntime.jsx(AssistantPlan, { arrival, labels, sameAsAbove }),
|
|
3958
|
+
arrival.reason && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm", children: arrival.reason }),
|
|
3959
|
+
arrival.last_error && arrival.status !== "done" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3960
|
+
"p",
|
|
3961
|
+
{
|
|
3962
|
+
className: "mt-1 truncate text-sm text-destructive",
|
|
3963
|
+
title: arrival.last_error,
|
|
3964
|
+
"data-testid": `assistant-error-${id}`,
|
|
3965
|
+
children: arrival.last_error
|
|
3966
|
+
}
|
|
3967
|
+
)
|
|
3968
|
+
] }),
|
|
3969
|
+
arrival.marked_wrong ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-sm text-muted-foreground", children: labels.markedWrong }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3970
|
+
ui.Button,
|
|
3971
|
+
{
|
|
3972
|
+
variant: "ghost",
|
|
3973
|
+
size: "sm",
|
|
3974
|
+
className: "shrink-0",
|
|
3975
|
+
disabled: wrongPending,
|
|
3976
|
+
"data-testid": `assistant-mark-wrong-${id}`,
|
|
3977
|
+
onClick: () => onWrong(id),
|
|
3978
|
+
children: labels.markWrong
|
|
3979
|
+
}
|
|
3980
|
+
)
|
|
3981
|
+
] }),
|
|
3982
|
+
showDrafts && /* @__PURE__ */ jsxRuntime.jsx(AssistantDrafts, { arrival, labels, workspaceId })
|
|
3983
|
+
] });
|
|
3984
|
+
}
|
|
3985
|
+
function ConnectedAssistantPage({
|
|
3986
|
+
labels: labelOverrides,
|
|
3987
|
+
workspaceId: workspaceProp
|
|
3988
|
+
}) {
|
|
3989
|
+
const labels = { ...DEFAULT_ASSISTANT_LABELS, ...labelOverrides };
|
|
3990
|
+
const { workspaceId: selected } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
3991
|
+
const workspaceId = workspaceProp ?? selected;
|
|
3992
|
+
const { notify: notify19, openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
3993
|
+
const brief = react.useAssistantBrief(workspaceId);
|
|
3994
|
+
const arrivals = react.useAssistantArrivals(workspaceId);
|
|
3995
|
+
const update = react.useUpdateAssistantBrief();
|
|
3996
|
+
const markWrong = react.useMarkArrivalWrong(workspaceId);
|
|
3997
|
+
const grant = react.useGrantAgentAccess();
|
|
3998
|
+
const current = react.useCurrentWorkspace();
|
|
3999
|
+
const [draft, setDraft] = react$1.useState(null);
|
|
4000
|
+
const data = brief.data;
|
|
4001
|
+
const canGrant = !!data?.agent_ext_id && current.workspaceId === workspaceId && current.role === "owner";
|
|
4002
|
+
const text = draft?.text ?? data?.text ?? "";
|
|
4003
|
+
const active = draft?.active ?? data?.active ?? true;
|
|
4004
|
+
const cap = draft?.cap ?? data?.daily_cap ?? 50;
|
|
4005
|
+
const capValid = Number.isInteger(cap) && cap >= 1 && cap <= 500;
|
|
4006
|
+
const dirty = !!data && (text !== data.text || active !== data.active || cap !== data.daily_cap);
|
|
4007
|
+
const edit = (patch) => setDraft({ text, active, cap, ...patch });
|
|
4008
|
+
const save = () => {
|
|
4009
|
+
if (!workspaceId) return;
|
|
4010
|
+
update.mutate(
|
|
4011
|
+
{ workspace_ext_id: workspaceId, text, active, daily_cap: cap },
|
|
4012
|
+
{
|
|
4013
|
+
onSuccess: () => {
|
|
4014
|
+
setDraft(null);
|
|
4015
|
+
notify19(labels.saved, "success");
|
|
4016
|
+
},
|
|
4017
|
+
onError: (err) => notify19(browser.refusalReason(err, labels.saveFailed), "error")
|
|
4018
|
+
}
|
|
4019
|
+
);
|
|
4020
|
+
};
|
|
4021
|
+
const wrong = (id) => markWrong.mutate(id, {
|
|
4022
|
+
onError: (err) => notify19(browser.refusalReason(err, labels.saveFailed), "error")
|
|
4023
|
+
});
|
|
4024
|
+
const giveAccess = () => {
|
|
4025
|
+
if (!workspaceId || !data?.agent_ext_id) return;
|
|
4026
|
+
grant.mutate(
|
|
4027
|
+
{ agentExtId: data.agent_ext_id, workspaceId },
|
|
4028
|
+
{
|
|
4029
|
+
onSuccess: () => {
|
|
4030
|
+
void brief.refetch();
|
|
4031
|
+
notify19(labels.accessGranted, "success");
|
|
4032
|
+
},
|
|
4033
|
+
onError: (err) => notify19(browser.refusalReason(err, labels.grantAccessFailed), "error")
|
|
4034
|
+
}
|
|
4035
|
+
);
|
|
4036
|
+
};
|
|
4037
|
+
const inboxId = data?.inbox_conversation_ext_id;
|
|
4038
|
+
const items = [...arrivals.data ?? []].sort((a, b) => b.created_at.localeCompare(a.created_at));
|
|
4039
|
+
const leads = turnLeads(items);
|
|
4040
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4041
|
+
"div",
|
|
4042
|
+
{
|
|
4043
|
+
className: "mx-auto w-full max-w-3xl space-y-6 overflow-y-auto p-6",
|
|
4044
|
+
"data-testid": "assistant-page",
|
|
4045
|
+
children: [
|
|
4046
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
4047
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-semibold", children: labels.title }),
|
|
4048
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: labels.intro })
|
|
4049
|
+
] }),
|
|
4050
|
+
brief.error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: browser.refusalReason(brief.error, labels.loadFailed) }),
|
|
4051
|
+
data && !data.agent_has_access && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4052
|
+
"div",
|
|
4053
|
+
{
|
|
4054
|
+
role: "alert",
|
|
4055
|
+
className: "flex flex-wrap items-center gap-3 rounded-md border border-amber-500/50 bg-amber-500/10 p-3 text-sm",
|
|
4056
|
+
"data-testid": "assistant-no-access",
|
|
4057
|
+
children: [
|
|
4058
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
4059
|
+
labels.noAccess,
|
|
4060
|
+
!canGrant && !!current.workspace && ` ${labels.noAccessOwnerOnly}`
|
|
4061
|
+
] }),
|
|
4062
|
+
canGrant && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4063
|
+
ui.Button,
|
|
4064
|
+
{
|
|
4065
|
+
size: "sm",
|
|
4066
|
+
disabled: grant.isPending,
|
|
4067
|
+
"data-testid": "assistant-grant-access",
|
|
4068
|
+
onClick: giveAccess,
|
|
4069
|
+
children: [
|
|
4070
|
+
grant.isPending && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "mr-1 h-3 w-3 animate-spin", "aria-hidden": "true" }),
|
|
4071
|
+
labels.grantAccess
|
|
4072
|
+
]
|
|
4073
|
+
}
|
|
4074
|
+
)
|
|
4075
|
+
]
|
|
4076
|
+
}
|
|
4077
|
+
),
|
|
4078
|
+
data && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4079
|
+
AssistantStatusPanel,
|
|
4080
|
+
{
|
|
4081
|
+
workspaceId,
|
|
4082
|
+
labels,
|
|
4083
|
+
onOpenThread: openConversation
|
|
4084
|
+
}
|
|
4085
|
+
),
|
|
4086
|
+
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "space-y-3", children: [
|
|
4087
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assistant-brief-input", children: labels.briefLabel }),
|
|
4088
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4089
|
+
ui.Textarea,
|
|
4090
|
+
{
|
|
4091
|
+
id: "assistant-brief-input",
|
|
4092
|
+
rows: 8,
|
|
4093
|
+
maxLength: 2e4,
|
|
4094
|
+
value: text,
|
|
4095
|
+
placeholder: labels.briefPlaceholder,
|
|
4096
|
+
disabled: !data,
|
|
4097
|
+
onChange: (e) => edit({ text: e.target.value }),
|
|
4098
|
+
"data-testid": "assistant-brief-input"
|
|
4099
|
+
}
|
|
4100
|
+
),
|
|
4101
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
4102
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4103
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4104
|
+
ui.Switch,
|
|
4105
|
+
{
|
|
4106
|
+
id: "assistant-active-switch",
|
|
4107
|
+
checked: active,
|
|
4108
|
+
disabled: !data,
|
|
4109
|
+
onCheckedChange: (checked) => edit({ active: checked }),
|
|
4110
|
+
"data-testid": "assistant-active-switch"
|
|
4111
|
+
}
|
|
4112
|
+
),
|
|
4113
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assistant-active-switch", children: labels.activeLabel })
|
|
4114
|
+
] }),
|
|
4115
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4116
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assistant-daily-cap-input", children: labels.dailyCapLabel }),
|
|
4117
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4118
|
+
ui.Input,
|
|
4119
|
+
{
|
|
4120
|
+
id: "assistant-daily-cap-input",
|
|
4121
|
+
type: "number",
|
|
4122
|
+
min: 1,
|
|
4123
|
+
max: 500,
|
|
4124
|
+
className: "w-24",
|
|
4125
|
+
value: Number.isNaN(cap) ? "" : cap,
|
|
4126
|
+
disabled: !data,
|
|
4127
|
+
onChange: (e) => edit({ cap: e.target.valueAsNumber }),
|
|
4128
|
+
"data-testid": "assistant-daily-cap-input"
|
|
4129
|
+
}
|
|
4130
|
+
)
|
|
4131
|
+
] }),
|
|
4132
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4133
|
+
ui.Button,
|
|
4134
|
+
{
|
|
4135
|
+
onClick: save,
|
|
4136
|
+
disabled: !dirty || !capValid || update.isPending,
|
|
4137
|
+
"data-testid": "assistant-brief-save",
|
|
4138
|
+
children: labels.save
|
|
4139
|
+
}
|
|
4140
|
+
),
|
|
4141
|
+
data && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", "data-testid": "assistant-version", children: labels.version(data.version) }),
|
|
4142
|
+
inboxId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4143
|
+
ui.Button,
|
|
4144
|
+
{
|
|
4145
|
+
variant: "outline",
|
|
4146
|
+
onClick: () => openConversation(inboxId),
|
|
4147
|
+
"data-testid": "assistant-open-inbox",
|
|
4148
|
+
children: labels.openInbox
|
|
4149
|
+
}
|
|
4150
|
+
)
|
|
4151
|
+
] })
|
|
4152
|
+
] }),
|
|
4153
|
+
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "space-y-2", children: [
|
|
4154
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: labels.activityTitle }),
|
|
4155
|
+
items.length === 0 && !arrivals.isPending ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: labels.activityEmpty }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2", "data-testid": "assistant-activity-list", children: items.map((arrival) => {
|
|
4156
|
+
const lead = arrival.response_id ? leads.get(arrival.response_id) : void 0;
|
|
4157
|
+
const later = !!lead && lead !== arrival;
|
|
4158
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4159
|
+
ActivityItem,
|
|
4160
|
+
{
|
|
4161
|
+
arrival,
|
|
4162
|
+
workspaceId,
|
|
4163
|
+
labels,
|
|
4164
|
+
onOpen: (id) => openConversation(id),
|
|
4165
|
+
onWrong: wrong,
|
|
4166
|
+
wrongPending: markWrong.isPending,
|
|
4167
|
+
sameAsAbove: later && sharesPlan(lead, arrival),
|
|
4168
|
+
showDrafts: !later
|
|
4169
|
+
},
|
|
4170
|
+
arrival.external_id
|
|
4171
|
+
);
|
|
4172
|
+
}) })
|
|
4173
|
+
] })
|
|
4174
|
+
]
|
|
4175
|
+
}
|
|
4176
|
+
);
|
|
4177
|
+
}
|
|
3430
4178
|
|
|
3431
4179
|
// src/connection/files/review/reviewProgress.ts
|
|
3432
4180
|
function reviewProgress(answered, empty, total) {
|
|
@@ -3761,9 +4509,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3761
4509
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3762
4510
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3763
4511
|
const download = (format) => {
|
|
3764
|
-
const entries =
|
|
3765
|
-
const blob = format === "docx" ? new Blob([
|
|
3766
|
-
documentTools.downloadBlob(blob,
|
|
4512
|
+
const entries = chunkKWHGYHRC_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
4513
|
+
const blob = format === "docx" ? new Blob([chunkKWHGYHRC_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkKWHGYHRC_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
4514
|
+
documentTools.downloadBlob(blob, chunkKWHGYHRC_cjs.glossaryFileName(title, format));
|
|
3767
4515
|
};
|
|
3768
4516
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3769
4517
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4292,7 +5040,7 @@ function KindSection({
|
|
|
4292
5040
|
{
|
|
4293
5041
|
testId: `tags-kind-${kind}`,
|
|
4294
5042
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4295
|
-
description:
|
|
5043
|
+
description: chunkKWHGYHRC_cjs.tagKindDescription(kind),
|
|
4296
5044
|
children: [
|
|
4297
5045
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4298
5046
|
"p",
|
|
@@ -4302,9 +5050,9 @@ function KindSection({
|
|
|
4302
5050
|
children: [
|
|
4303
5051
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4304
5052
|
"Extracting ",
|
|
4305
|
-
|
|
5053
|
+
chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase(),
|
|
4306
5054
|
" from ",
|
|
4307
|
-
|
|
5055
|
+
chunkKWHGYHRC_cjs.documentCount(extractingCount),
|
|
4308
5056
|
"\u2026"
|
|
4309
5057
|
]
|
|
4310
5058
|
}
|
|
@@ -4322,7 +5070,7 @@ function KindSection({
|
|
|
4322
5070
|
onOpenTag: ctx.onOpenTag,
|
|
4323
5071
|
onOpenRow: ctx.onOpenTag,
|
|
4324
5072
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4325
|
-
labels:
|
|
5073
|
+
labels: chunkKWHGYHRC_cjs.tagTableLabels(kind),
|
|
4326
5074
|
testId: `tags-table-${kind}`
|
|
4327
5075
|
}
|
|
4328
5076
|
)
|
|
@@ -4430,15 +5178,15 @@ function TagSection({
|
|
|
4430
5178
|
onOpenTag: ctx.onOpenTag,
|
|
4431
5179
|
onOpenRow: ctx.onOpenTag,
|
|
4432
5180
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4433
|
-
labels:
|
|
5181
|
+
labels: chunkKWHGYHRC_cjs.tagTableLabels(tag.kind),
|
|
4434
5182
|
testId: "tags-rows"
|
|
4435
5183
|
}
|
|
4436
5184
|
),
|
|
4437
5185
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4438
|
-
|
|
5186
|
+
chunkKWHGYHRC_cjs.TagDetail,
|
|
4439
5187
|
{
|
|
4440
5188
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4441
|
-
fieldLabels:
|
|
5189
|
+
fieldLabels: chunkKWHGYHRC_cjs.tagTableLabels(tag.kind),
|
|
4442
5190
|
row: detailRow,
|
|
4443
5191
|
fields: schema.data?.fields ?? [],
|
|
4444
5192
|
isLoading: detail.isLoading,
|
|
@@ -4452,7 +5200,7 @@ function TagSection({
|
|
|
4452
5200
|
throw e;
|
|
4453
5201
|
})
|
|
4454
5202
|
),
|
|
4455
|
-
labels:
|
|
5203
|
+
labels: chunkKWHGYHRC_cjs.tagDetailLabels(),
|
|
4456
5204
|
testId: "tags-detail"
|
|
4457
5205
|
}
|
|
4458
5206
|
)
|
|
@@ -4527,7 +5275,7 @@ function ConnectedTagsPage() {
|
|
|
4527
5275
|
const onDelete = async (t) => {
|
|
4528
5276
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
4529
5277
|
const uses = browser.tagUseCount(t);
|
|
4530
|
-
const n2 =
|
|
5278
|
+
const n2 = chunkKWHGYHRC_cjs.tagsPageNouns();
|
|
4531
5279
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
4532
5280
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
4533
5281
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -4548,11 +5296,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4548
5296
|
try {
|
|
4549
5297
|
await extract.mutateAsync(docIds);
|
|
4550
5298
|
notify19(
|
|
4551
|
-
`Extracting ${
|
|
5299
|
+
`Extracting ${chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase()} from ${chunkKWHGYHRC_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
4552
5300
|
"info"
|
|
4553
5301
|
);
|
|
4554
5302
|
} catch (error) {
|
|
4555
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
5303
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
4556
5304
|
throw error;
|
|
4557
5305
|
}
|
|
4558
5306
|
};
|
|
@@ -4566,10 +5314,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4566
5314
|
onOpenTag: openTag,
|
|
4567
5315
|
onOpenTaggedItems
|
|
4568
5316
|
};
|
|
4569
|
-
const n =
|
|
5317
|
+
const n = chunkKWHGYHRC_cjs.tagsPageNouns();
|
|
4570
5318
|
const action = view === "person" || view === "organisation" ? {
|
|
4571
5319
|
label: "Extract",
|
|
4572
|
-
title: `Extract ${
|
|
5320
|
+
title: `Extract ${chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
4573
5321
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
4574
5322
|
run: () => setExtracting(true),
|
|
4575
5323
|
testId: "tags-extract-entities"
|
|
@@ -4738,7 +5486,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4738
5486
|
}
|
|
4739
5487
|
),
|
|
4740
5488
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4741
|
-
|
|
5489
|
+
chunkKWHGYHRC_cjs.ExtractEntitiesDialog,
|
|
4742
5490
|
{
|
|
4743
5491
|
open: extracting,
|
|
4744
5492
|
onOpenChange: setExtracting,
|
|
@@ -6098,7 +6846,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6098
6846
|
const runSearch = () => search().catch(() => notify19(`Could not search ${factsWord}. Please try again.`, "error"));
|
|
6099
6847
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "facts-smart-search", children: [
|
|
6100
6848
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6101
|
-
|
|
6849
|
+
chunkMXBXZXXQ_cjs.FactSearchBar,
|
|
6102
6850
|
{
|
|
6103
6851
|
query,
|
|
6104
6852
|
onQueryChange: setQuery,
|
|
@@ -6107,7 +6855,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6107
6855
|
isSearching
|
|
6108
6856
|
}
|
|
6109
6857
|
),
|
|
6110
|
-
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6858
|
+
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkMXBXZXXQ_cjs.FactSearchTotals, { children: [
|
|
6111
6859
|
hits.length.toLocaleString(),
|
|
6112
6860
|
" ",
|
|
6113
6861
|
hits.length === 1 ? factWord : factsWord,
|
|
@@ -6115,18 +6863,18 @@ function ConnectedFactsSmartSearch({
|
|
|
6115
6863
|
lastQuery,
|
|
6116
6864
|
"\u201D"
|
|
6117
6865
|
] }),
|
|
6118
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6866
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunkMXBXZXXQ_cjs.FactSearchPending, { children: [
|
|
6119
6867
|
"Searching ",
|
|
6120
6868
|
factsWord,
|
|
6121
6869
|
"\u2026"
|
|
6122
|
-
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6870
|
+
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkMXBXZXXQ_cjs.FactSearchNoMatches, { children: [
|
|
6123
6871
|
"No ",
|
|
6124
6872
|
factsWord,
|
|
6125
6873
|
" matched \u201C",
|
|
6126
6874
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: lastQuery }),
|
|
6127
6875
|
"\u201D."
|
|
6128
6876
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: hits.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6129
|
-
|
|
6877
|
+
chunkMXBXZXXQ_cjs.FactSearchResult,
|
|
6130
6878
|
{
|
|
6131
6879
|
id: h.external_id,
|
|
6132
6880
|
rank: i + 1,
|
|
@@ -6226,7 +6974,7 @@ function FactSourcesPopover({
|
|
|
6226
6974
|
const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
|
|
6227
6975
|
const cited = passagesOf(docId);
|
|
6228
6976
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6229
|
-
|
|
6977
|
+
chunkMXBXZXXQ_cjs.FactSourceGroup,
|
|
6230
6978
|
{
|
|
6231
6979
|
docId,
|
|
6232
6980
|
isViewing,
|
|
@@ -6315,7 +7063,7 @@ function FactMarkdownEditor({
|
|
|
6315
7063
|
const editorRef = react$1.useRef(null);
|
|
6316
7064
|
react$1.useEffect(() => {
|
|
6317
7065
|
if (!editorRef.current) return;
|
|
6318
|
-
return
|
|
7066
|
+
return chunkMXBXZXXQ_cjs.enableFactTableColumnResize(editorRef.current);
|
|
6319
7067
|
}, []);
|
|
6320
7068
|
react$1.useEffect(() => {
|
|
6321
7069
|
if (!editing) return;
|
|
@@ -6954,7 +7702,7 @@ function useFactFilters(notes, view, chat) {
|
|
|
6954
7702
|
const makeTagPicker = react$1.useCallback(
|
|
6955
7703
|
(selected, setSelected, opts) => {
|
|
6956
7704
|
const applied = new Set(selected);
|
|
6957
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7705
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6958
7706
|
chunkALK3PUUB_cjs.FieldLabelsSelect,
|
|
6959
7707
|
{
|
|
6960
7708
|
options: labelOptions,
|
|
@@ -7146,14 +7894,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
|
|
|
7146
7894
|
}
|
|
7147
7895
|
function renderSourcesCell(params) {
|
|
7148
7896
|
const fact = params.data;
|
|
7149
|
-
const count2 =
|
|
7897
|
+
const count2 = chunkMXBXZXXQ_cjs.sourceDocCount(fact);
|
|
7150
7898
|
if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
|
|
7151
7899
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7152
7900
|
"button",
|
|
7153
7901
|
{
|
|
7154
7902
|
type: "button",
|
|
7155
7903
|
onClick: () => params.context?.openEdit?.(fact),
|
|
7156
|
-
title:
|
|
7904
|
+
title: chunkMXBXZXXQ_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
|
|
7157
7905
|
"data-testid": `facts-grid-sources-${fact.external_id}`,
|
|
7158
7906
|
className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
|
|
7159
7907
|
children: [
|
|
@@ -7210,14 +7958,14 @@ function createFactPageColumns({
|
|
|
7210
7958
|
onToggleConfirmed,
|
|
7211
7959
|
onToggleShared
|
|
7212
7960
|
}) {
|
|
7213
|
-
const columns =
|
|
7961
|
+
const columns = chunkMXBXZXXQ_cjs.createFactColumns({
|
|
7214
7962
|
onToggleInChat,
|
|
7215
7963
|
isInChat,
|
|
7216
7964
|
renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
|
|
7217
7965
|
renderRowActions: (fact, params) => {
|
|
7218
7966
|
const ctx = params.context;
|
|
7219
7967
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7220
|
-
|
|
7968
|
+
chunkMXBXZXXQ_cjs.FactRowActions,
|
|
7221
7969
|
{
|
|
7222
7970
|
onEdit: () => ctx?.openEdit?.(fact),
|
|
7223
7971
|
canEdit: ctx?.canRewrite?.(fact) !== false,
|
|
@@ -7346,7 +8094,7 @@ function useFactsGrid({
|
|
|
7346
8094
|
);
|
|
7347
8095
|
const renderFactTags = react$1.useCallback(
|
|
7348
8096
|
(fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7349
|
-
|
|
8097
|
+
chunkMXBXZXXQ_cjs.FactLabelsCell,
|
|
7350
8098
|
{
|
|
7351
8099
|
options: labelOptions,
|
|
7352
8100
|
selectedIds: fact.tags.map((t) => t.tag_ext_id),
|
|
@@ -7711,7 +8459,7 @@ function ConnectedFactsPage() {
|
|
|
7711
8459
|
};
|
|
7712
8460
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
|
|
7713
8461
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7714
|
-
|
|
8462
|
+
chunkMXBXZXXQ_cjs.FactsToolbar,
|
|
7715
8463
|
{
|
|
7716
8464
|
count: filteredNotes.length,
|
|
7717
8465
|
hasActiveFilters: filters.hasActiveFilters,
|
|
@@ -7740,7 +8488,7 @@ function ConnectedFactsPage() {
|
|
|
7740
8488
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7741
8489
|
navSlotRef: setNavSlot,
|
|
7742
8490
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7743
|
-
|
|
8491
|
+
chunkKWHGYHRC_cjs.GridRowNavigator,
|
|
7744
8492
|
{
|
|
7745
8493
|
gridApi,
|
|
7746
8494
|
selectedId: editingId,
|
|
@@ -7751,7 +8499,7 @@ function ConnectedFactsPage() {
|
|
|
7751
8499
|
) : null,
|
|
7752
8500
|
showToolbarRow: view !== "smart_search",
|
|
7753
8501
|
tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7754
|
-
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8502
|
+
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
7755
8503
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7756
8504
|
chunkALK3PUUB_cjs.RowDensityControl,
|
|
7757
8505
|
{
|
|
@@ -7789,7 +8537,7 @@ function ConnectedFactsPage() {
|
|
|
7789
8537
|
}
|
|
7790
8538
|
) }),
|
|
7791
8539
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7792
|
-
|
|
8540
|
+
chunkMXBXZXXQ_cjs.FactComposer,
|
|
7793
8541
|
{
|
|
7794
8542
|
isOpen: composing,
|
|
7795
8543
|
isEditing: !!editingId,
|
|
@@ -7819,7 +8567,7 @@ function ConnectedFactsPage() {
|
|
|
7819
8567
|
reserveSourcesSpace: view === "gantt" || view === "calendar",
|
|
7820
8568
|
citationContainer: factSection,
|
|
7821
8569
|
renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7822
|
-
|
|
8570
|
+
chunkMXBXZXXQ_cjs.FactSourcesRow,
|
|
7823
8571
|
{
|
|
7824
8572
|
toggle: sourcesToggle,
|
|
7825
8573
|
picker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7865,7 +8613,7 @@ function ConnectedFactsPage() {
|
|
|
7865
8613
|
}
|
|
7866
8614
|
),
|
|
7867
8615
|
dateInput: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7868
|
-
|
|
8616
|
+
chunkMXBXZXXQ_cjs.FactDateInput,
|
|
7869
8617
|
{
|
|
7870
8618
|
value: composer.draftDateFields,
|
|
7871
8619
|
onChange: composer.setDraftDateFields,
|
|
@@ -7875,7 +8623,7 @@ function ConnectedFactsPage() {
|
|
|
7875
8623
|
}
|
|
7876
8624
|
),
|
|
7877
8625
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
|
|
7878
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8626
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
|
|
7879
8627
|
// Searches facts only (never documents). Kept before the empty-state guard so the
|
|
7880
8628
|
// search UI is reachable even in an empty workspace.
|
|
7881
8629
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7888,7 +8636,7 @@ function ConnectedFactsPage() {
|
|
|
7888
8636
|
)
|
|
7889
8637
|
) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
|
|
7890
8638
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7891
|
-
|
|
8639
|
+
chunkMXBXZXXQ_cjs.FactsEmptyState,
|
|
7892
8640
|
{
|
|
7893
8641
|
onUseExample: (text) => {
|
|
7894
8642
|
composer.setDraft(text);
|
|
@@ -7899,7 +8647,7 @@ function ConnectedFactsPage() {
|
|
|
7899
8647
|
),
|
|
7900
8648
|
/* @__PURE__ */ jsxRuntime.jsx(FactsFindInDocuments, {})
|
|
7901
8649
|
] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7902
|
-
|
|
8650
|
+
chunkMXBXZXXQ_cjs.FactsCalendar,
|
|
7903
8651
|
{
|
|
7904
8652
|
facts: filteredNotes,
|
|
7905
8653
|
onSelect: (n) => openEditIfAllowed(n),
|
|
@@ -7908,7 +8656,7 @@ function ConnectedFactsPage() {
|
|
|
7908
8656
|
navigatorTotal: filteredNotes.length
|
|
7909
8657
|
}
|
|
7910
8658
|
) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7911
|
-
|
|
8659
|
+
chunkMXBXZXXQ_cjs.FactsGanttPane,
|
|
7912
8660
|
{
|
|
7913
8661
|
items: ganttItems,
|
|
7914
8662
|
labelWidth: pageView.labelWidth,
|
|
@@ -7958,7 +8706,7 @@ function ConnectedFactsPage() {
|
|
|
7958
8706
|
)
|
|
7959
8707
|
] }),
|
|
7960
8708
|
selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7961
|
-
|
|
8709
|
+
chunkMXBXZXXQ_cjs.FactsBulkBar,
|
|
7962
8710
|
{
|
|
7963
8711
|
count: selection.selectedFacts.length,
|
|
7964
8712
|
onClear: selection.clearSelection,
|
|
@@ -8017,7 +8765,7 @@ function useConnectedShellWorkspaces(options = {}) {
|
|
|
8017
8765
|
function ConnectedSsoDisconnect() {
|
|
8018
8766
|
const { client } = react.useAccountClient();
|
|
8019
8767
|
const { data: profile } = react.useProfile();
|
|
8020
|
-
const auth =
|
|
8768
|
+
const auth = chunkMI3N3ZOT_cjs.useAuthPages();
|
|
8021
8769
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
8022
8770
|
const [open, setOpen] = react$1.useState(false);
|
|
8023
8771
|
const [step, setStep] = react$1.useState("email");
|
|
@@ -8195,14 +8943,14 @@ function ConnectedAccountSettings({
|
|
|
8195
8943
|
}) {
|
|
8196
8944
|
const [logoutOpen, setLogoutOpen] = react$1.useState(false);
|
|
8197
8945
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
|
|
8198
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8946
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
|
|
8199
8947
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
|
|
8200
8948
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
|
|
8201
8949
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
|
|
8202
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8950
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedSecuritySection, { children: securityRows }),
|
|
8203
8951
|
moreSettings,
|
|
8204
8952
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8205
|
-
|
|
8953
|
+
chunkMI3N3ZOT_cjs.ConnectedIdentityVerification,
|
|
8206
8954
|
{
|
|
8207
8955
|
collapsible: true,
|
|
8208
8956
|
onManageBilling,
|
|
@@ -8212,7 +8960,7 @@ function ConnectedAccountSettings({
|
|
|
8212
8960
|
] }),
|
|
8213
8961
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
|
|
8214
8962
|
connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
|
|
8215
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8963
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedSessionsRow, { renderSessionIcon }),
|
|
8216
8964
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8217
8965
|
ui.Button,
|
|
8218
8966
|
{
|
|
@@ -8229,9 +8977,9 @@ function ConnectedAccountSettings({
|
|
|
8229
8977
|
}
|
|
8230
8978
|
) })
|
|
8231
8979
|
] }) }),
|
|
8232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8980
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
|
|
8233
8981
|
!onLogout && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8234
|
-
|
|
8982
|
+
chunkMI3N3ZOT_cjs.ConnectedLogoutDialog,
|
|
8235
8983
|
{
|
|
8236
8984
|
open: logoutOpen,
|
|
8237
8985
|
onClose: () => setLogoutOpen(false),
|
|
@@ -8574,7 +9322,7 @@ function ConnectedPrivacySettings({
|
|
|
8574
9322
|
}
|
|
8575
9323
|
)
|
|
8576
9324
|
] }) }),
|
|
8577
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9325
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedNotificationPreferences, {})
|
|
8578
9326
|
] });
|
|
8579
9327
|
}
|
|
8580
9328
|
var PROVIDER_NAMES = {
|
|
@@ -10381,7 +11129,7 @@ function CallsRow({ row: row2 }) {
|
|
|
10381
11129
|
}
|
|
10382
11130
|
function ConnectedAccountAccessBadge() {
|
|
10383
11131
|
const { data: user } = react.useCurrentUser();
|
|
10384
|
-
const status = !user ? null : user.is_deployment_admin || user.user_type === "admin" ? ["Deployment administrator", "You can manage users and deployment settings."] :
|
|
11132
|
+
const status = !user ? null : user.is_deployment_admin || user.user_type === "admin" ? ["Deployment administrator", "You can manage users and deployment settings."] : chunkHBUHOCWF_cjs.isExternalAccount(user) ? [
|
|
10385
11133
|
"External user",
|
|
10386
11134
|
"Temporary access to shared workspaces. Ask an owner to renew access after it expires."
|
|
10387
11135
|
] : user.user_type === "manager" ? [
|
|
@@ -10570,7 +11318,7 @@ function ConnectedRecoveryKeyDialog({
|
|
|
10570
11318
|
const arbi = react.useArbi();
|
|
10571
11319
|
const { user, isSso: isSsoMode } = react.useArbiSession();
|
|
10572
11320
|
const userEmail = user?.email;
|
|
10573
|
-
const sso =
|
|
11321
|
+
const sso = chunkMI3N3ZOT_cjs.useSsoSignIn();
|
|
10574
11322
|
const handleVerify = async () => {
|
|
10575
11323
|
setError(null);
|
|
10576
11324
|
if (!password) {
|
|
@@ -10731,7 +11479,7 @@ function ConnectedRemoteControlSwitch() {
|
|
|
10731
11479
|
}
|
|
10732
11480
|
function RemoteControlSwitch() {
|
|
10733
11481
|
const enabled = react.useRemoteControl((state) => state.enabled);
|
|
10734
|
-
const remote =
|
|
11482
|
+
const remote = chunkMI3N3ZOT_cjs.useRemoteControlActions();
|
|
10735
11483
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10736
11484
|
chunkQQMMCXBP_cjs.SettingsRow,
|
|
10737
11485
|
{
|
|
@@ -12761,13 +13509,13 @@ function ConnectedWorkspaceSettings({
|
|
|
12761
13509
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
12762
13510
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
12763
13511
|
if (!workspace) {
|
|
12764
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13512
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
12765
13513
|
}
|
|
12766
13514
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12767
13515
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspacePageFrame, { testId, children: [
|
|
12768
13516
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspaceIdentityPanel, { children: [
|
|
12769
13517
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12770
|
-
|
|
13518
|
+
chunkKWHGYHRC_cjs.EntityIdentityBar,
|
|
12771
13519
|
{
|
|
12772
13520
|
testId: "workspace-identity-bar",
|
|
12773
13521
|
canEdit: isOwner,
|
|
@@ -12784,7 +13532,7 @@ function ConnectedWorkspaceSettings({
|
|
|
12784
13532
|
label: "Name",
|
|
12785
13533
|
value: workspace.name,
|
|
12786
13534
|
placeholder: "Untitled",
|
|
12787
|
-
maxLength:
|
|
13535
|
+
maxLength: chunkKWHGYHRC_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
12788
13536
|
valueClassName: "truncate text-base font-semibold",
|
|
12789
13537
|
testId: "workspace-home-title",
|
|
12790
13538
|
hideLabel: true,
|
|
@@ -14469,36 +15217,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
14469
15217
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
14470
15218
|
const { apiBaseUrl } = chunkTKHCIHE2_cjs.useBlocksEnvironment().runtimeConfig;
|
|
14471
15219
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
14472
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15220
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentCard, { size: "md", children: [
|
|
14473
15221
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14474
|
-
|
|
15222
|
+
chunkOD6NGGL3_cjs.ConsentHeader,
|
|
14475
15223
|
{
|
|
14476
15224
|
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
14477
15225
|
title: "Approve ARBI for SharePoint access",
|
|
14478
15226
|
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."
|
|
14479
15227
|
}
|
|
14480
15228
|
),
|
|
14481
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14482
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14483
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15229
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_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." }),
|
|
15230
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_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." }),
|
|
15231
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
14484
15232
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14485
|
-
|
|
15233
|
+
chunkOD6NGGL3_cjs.ConsentBulletList,
|
|
14486
15234
|
{
|
|
14487
15235
|
items: [
|
|
14488
15236
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14489
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15237
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
14490
15238
|
" \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."
|
|
14491
15239
|
] }),
|
|
14492
15240
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14493
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15241
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
14494
15242
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
14495
15243
|
] })
|
|
14496
15244
|
]
|
|
14497
15245
|
}
|
|
14498
15246
|
),
|
|
14499
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15247
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_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." }),
|
|
14500
15248
|
/* @__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" }) }),
|
|
14501
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15249
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_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." })
|
|
14502
15250
|
] })
|
|
14503
15251
|
] }) });
|
|
14504
15252
|
}
|
|
@@ -17172,7 +17920,7 @@ function useConnectedWorkspaceList({
|
|
|
17172
17920
|
};
|
|
17173
17921
|
}
|
|
17174
17922
|
var WorkspaceTableView = react$1.lazy(
|
|
17175
|
-
() => import('../WorkspaceTableView-
|
|
17923
|
+
() => import('../WorkspaceTableView-QPROJRCF.cjs').then((m) => ({ default: m.WorkspaceTableView }))
|
|
17176
17924
|
);
|
|
17177
17925
|
var WORKSPACES_TAB_ID = "workspaces";
|
|
17178
17926
|
var renderMember = (user, size) => /* @__PURE__ */ jsxRuntime.jsx(chunkQMIHLJMH_cjs.ConnectedUserEntity, { user, size, variant: "icon" });
|
|
@@ -17232,7 +17980,7 @@ function ConnectedWorkspaceList({
|
|
|
17232
17980
|
}
|
|
17233
17981
|
);
|
|
17234
17982
|
}
|
|
17235
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17983
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
17236
17984
|
if (list.error) {
|
|
17237
17985
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17238
17986
|
chunkH7PHOTX2_cjs.HomeLoadError,
|
|
@@ -17305,7 +18053,7 @@ function ConnectedWorkspaceList({
|
|
|
17305
18053
|
workspaceState
|
|
17306
18054
|
}
|
|
17307
18055
|
) })
|
|
17308
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18056
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17309
18057
|
WorkspaceTableView,
|
|
17310
18058
|
{
|
|
17311
18059
|
list,
|
|
@@ -17495,7 +18243,7 @@ function ConnectedProjectsListPage({
|
|
|
17495
18243
|
};
|
|
17496
18244
|
const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17497
18245
|
const [search, setSearch] = react$1.useState("");
|
|
17498
|
-
const { projects, isLoading } =
|
|
18246
|
+
const { projects, isLoading } = chunkGOQV6NOK_cjs.useProjectSummaries();
|
|
17499
18247
|
const rows = react$1.useMemo(() => {
|
|
17500
18248
|
const q = search.trim().toLowerCase();
|
|
17501
18249
|
if (!q) return projects;
|
|
@@ -17566,7 +18314,7 @@ function ConnectedProjectsListPage({
|
|
|
17566
18314
|
}
|
|
17567
18315
|
),
|
|
17568
18316
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17569
|
-
|
|
18317
|
+
chunkKWHGYHRC_cjs.Toolbar,
|
|
17570
18318
|
{
|
|
17571
18319
|
search,
|
|
17572
18320
|
onSearch: setSearch,
|
|
@@ -17628,7 +18376,7 @@ function ProjectDetailsForm({
|
|
|
17628
18376
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
17629
18377
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17630
18378
|
const update = react.useUpdateProjectFields();
|
|
17631
|
-
const workspace =
|
|
18379
|
+
const workspace = chunkGOQV6NOK_cjs.primaryProjectWorkspace(project);
|
|
17632
18380
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
17633
18381
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
17634
18382
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -17753,7 +18501,7 @@ var COMPACT_BELOW = 132;
|
|
|
17753
18501
|
var NO_DOCUMENTS = [];
|
|
17754
18502
|
function useFilesWorkspace() {
|
|
17755
18503
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
17756
|
-
const { members, role } =
|
|
18504
|
+
const { members, role } = chunkTZYB22FM_cjs.useConnectedWorkspaceRole();
|
|
17757
18505
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
17758
18506
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
17759
18507
|
return {
|
|
@@ -18513,7 +19261,7 @@ function ProjectChronology({
|
|
|
18513
19261
|
})),
|
|
18514
19262
|
[facts]
|
|
18515
19263
|
);
|
|
18516
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
19264
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
|
|
18517
19265
|
}
|
|
18518
19266
|
function ProjectThreads({
|
|
18519
19267
|
projectId,
|
|
@@ -18690,11 +19438,11 @@ function ConnectedProjectPage({
|
|
|
18690
19438
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
18691
19439
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
18692
19440
|
};
|
|
18693
|
-
const { project, usage, isLoading } =
|
|
19441
|
+
const { project, usage, isLoading } = chunkGOQV6NOK_cjs.useProjectSummary(projectId);
|
|
18694
19442
|
const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
18695
19443
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
18696
|
-
const selectWorkspace =
|
|
18697
|
-
const workspace = project ?
|
|
19444
|
+
const selectWorkspace = chunkMXGXKUSW_cjs.useSelectWorkspace();
|
|
19445
|
+
const workspace = project ? chunkGOQV6NOK_cjs.primaryProjectWorkspace(project) : void 0;
|
|
18698
19446
|
const open = !!workspace && workspace.id === workspaceId;
|
|
18699
19447
|
react$1.useEffect(() => {
|
|
18700
19448
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -19723,7 +20471,7 @@ function ChatAttachmentList({ files, error }) {
|
|
|
19723
20471
|
] });
|
|
19724
20472
|
}
|
|
19725
20473
|
function MessageText({ message }) {
|
|
19726
|
-
const workspaceId =
|
|
20474
|
+
const workspaceId = chunkERRXU2HL_cjs.useDocumentWorkspace();
|
|
19727
20475
|
const selectedWorkspaceId = react.useArbiSessionState((s) => s.workspaceId);
|
|
19728
20476
|
const documentIds = react$1.useMemo(
|
|
19729
20477
|
() => workspaceId === selectedWorkspaceId ? Array.from(
|
|
@@ -19738,11 +20486,11 @@ function MessageText({ message }) {
|
|
|
19738
20486
|
);
|
|
19739
20487
|
const thumbnails = react.useDocumentThumbnails(documentIds);
|
|
19740
20488
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
19741
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20489
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkERRXU2HL_cjs.ConnectedMarkdown, { children: message }),
|
|
19742
20490
|
workspaceId && documentIds.map((docId) => {
|
|
19743
20491
|
const thumbnail = thumbnails.get(docId);
|
|
19744
20492
|
return thumbnail ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
19745
|
-
|
|
20493
|
+
chunkERRXU2HL_cjs.WorkspaceDocumentReference,
|
|
19746
20494
|
{
|
|
19747
20495
|
workspaceId,
|
|
19748
20496
|
docId,
|
|
@@ -19763,7 +20511,7 @@ function MessageText({ message }) {
|
|
|
19763
20511
|
}
|
|
19764
20512
|
function ConnectedChatMessageBody({ text, workspaceId }) {
|
|
19765
20513
|
const documentWorkspace = workspaceId ?? Array.from(text.matchAll(/\/(wrk-[a-zA-Z0-9]{8})\/con-[a-zA-Z0-9]{8}/g)).at(-1)?.[1] ?? null;
|
|
19766
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
20514
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkERRXU2HL_cjs.DocumentWorkspaceContext.Provider, { value: documentWorkspace, children: /* @__PURE__ */ jsxRuntime.jsx(MessageText, { message: text }) });
|
|
19767
20515
|
}
|
|
19768
20516
|
function renderMessengerUser(user, variant) {
|
|
19769
20517
|
switch (variant) {
|
|
@@ -20011,7 +20759,7 @@ function ConnectedChatThread({
|
|
|
20011
20759
|
}
|
|
20012
20760
|
return /* @__PURE__ */ jsxRuntime.jsxs(react$1.Fragment, { children: [
|
|
20013
20761
|
isFirstOfDay && /* @__PURE__ */ jsxRuntime.jsx(react.DateSeparator, { children: formatDay(msg.created_at) }),
|
|
20014
|
-
!isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
20762
|
+
!isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.MessageAuthor, { children: renderMessengerUser(memberById(msg.sender_ext_id) ?? null, "author") }),
|
|
20015
20763
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20016
20764
|
react.ChatBubble,
|
|
20017
20765
|
{
|
|
@@ -21401,10 +22149,10 @@ function ConnectedContactsPanel({
|
|
|
21401
22149
|
function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
21402
22150
|
const hasModels = !!availableModels && availableModels.length > 0;
|
|
21403
22151
|
const renderModelSelect = react$1.useCallback(
|
|
21404
|
-
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
22152
|
+
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
21405
22153
|
[]
|
|
21406
22154
|
);
|
|
21407
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22155
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
21408
22156
|
}
|
|
21409
22157
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
21410
22158
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
@@ -21521,7 +22269,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21521
22269
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
21522
22270
|
if (editAgent) {
|
|
21523
22271
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21524
|
-
|
|
22272
|
+
chunkOD6NGGL3_cjs.AgentEditView,
|
|
21525
22273
|
{
|
|
21526
22274
|
agentName: editAgent.name,
|
|
21527
22275
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21537,7 +22285,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21537
22285
|
}
|
|
21538
22286
|
if (view === "main") {
|
|
21539
22287
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21540
|
-
|
|
22288
|
+
chunkOD6NGGL3_cjs.AgentMainView,
|
|
21541
22289
|
{
|
|
21542
22290
|
onConnectExternal: () => setView("connect"),
|
|
21543
22291
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21553,11 +22301,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21553
22301
|
}
|
|
21554
22302
|
if (result) {
|
|
21555
22303
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21556
|
-
|
|
22304
|
+
chunkOD6NGGL3_cjs.AgentCreatedView,
|
|
21557
22305
|
{
|
|
21558
22306
|
email: result.email,
|
|
21559
22307
|
signingKey: result.signingKey,
|
|
21560
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22308
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
21561
22309
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
21562
22310
|
isConfigOpen: configOpen,
|
|
21563
22311
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -21566,7 +22314,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21566
22314
|
);
|
|
21567
22315
|
}
|
|
21568
22316
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21569
|
-
|
|
22317
|
+
chunkOD6NGGL3_cjs.AgentCreateView,
|
|
21570
22318
|
{
|
|
21571
22319
|
name,
|
|
21572
22320
|
onNameChange: setName,
|
|
@@ -21761,13 +22509,13 @@ function ConnectedNewThreadDialog({
|
|
|
21761
22509
|
});
|
|
21762
22510
|
const parentOptions = react$1.useMemo(() => {
|
|
21763
22511
|
const leaf = { external_id: "__new__" };
|
|
21764
|
-
return
|
|
22512
|
+
return chunkOD6NGGL3_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
21765
22513
|
id: t.external_id,
|
|
21766
22514
|
name: t.title?.trim() || "Untitled task"
|
|
21767
22515
|
}));
|
|
21768
22516
|
}, [tasks]);
|
|
21769
22517
|
const submit = async (values) => {
|
|
21770
|
-
const request =
|
|
22518
|
+
const request = chunk5A6T4W46_cjs.newThreadToRequest(values);
|
|
21771
22519
|
try {
|
|
21772
22520
|
if (!workspaceId) throw new Error("Open a workspace to add a task.");
|
|
21773
22521
|
if (!request.startAssistant && request.todo) {
|
|
@@ -21808,7 +22556,7 @@ function ConnectedNewThreadDialog({
|
|
|
21808
22556
|
}
|
|
21809
22557
|
};
|
|
21810
22558
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21811
|
-
|
|
22559
|
+
chunkOD6NGGL3_cjs.NewThreadDialog,
|
|
21812
22560
|
{
|
|
21813
22561
|
open,
|
|
21814
22562
|
onOpenChange,
|
|
@@ -21929,12 +22677,12 @@ var TILE_TEST_IDS = {
|
|
|
21929
22677
|
annotate: "workspace-dashboard-quick-action-annotate"
|
|
21930
22678
|
};
|
|
21931
22679
|
function DashboardStart({ addMenu, onCreateNew }) {
|
|
21932
|
-
const { dashboard: workflows } =
|
|
22680
|
+
const { dashboard: workflows } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
|
|
21933
22681
|
const { isMember, role } = react.useCurrentWorkspace();
|
|
21934
22682
|
const canWrite2 = isMember && role !== "guest";
|
|
21935
22683
|
const [activeId, setActiveId] = react$1.useState(null);
|
|
21936
22684
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21937
|
-
|
|
22685
|
+
chunkXCW6OY7E_cjs.ConnectedWorkflowStart,
|
|
21938
22686
|
{
|
|
21939
22687
|
workflows,
|
|
21940
22688
|
caption: "Start",
|
|
@@ -21955,7 +22703,7 @@ function DashboardStart({ addMenu, onCreateNew }) {
|
|
|
21955
22703
|
}
|
|
21956
22704
|
] : void 0,
|
|
21957
22705
|
tileTestId: (workflow) => TILE_TEST_IDS[workflow.id],
|
|
21958
|
-
disabledReason: (workflow) => !canWrite2 && workflow.id ===
|
|
22706
|
+
disabledReason: (workflow) => !canWrite2 && workflow.id === chunk5A6T4W46_cjs.ANNOTATE_ID ? "Only workspace members can annotate files" : void 0
|
|
21959
22707
|
}
|
|
21960
22708
|
);
|
|
21961
22709
|
}
|
|
@@ -21986,7 +22734,7 @@ function recentConversations(conversations) {
|
|
|
21986
22734
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
21987
22735
|
id: c.external_id,
|
|
21988
22736
|
title: c.title?.trim() || "Untitled thread",
|
|
21989
|
-
subtitle: c.status ? [
|
|
22737
|
+
subtitle: c.status ? [chunkOD6NGGL3_cjs.STATUS_LABELS[chunkOD6NGGL3_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"}`,
|
|
21990
22738
|
time: timeAndDate(c.updated_at)
|
|
21991
22739
|
}));
|
|
21992
22740
|
}
|
|
@@ -22372,7 +23120,7 @@ function ConnectedAskField({
|
|
|
22372
23120
|
setPageFilter("");
|
|
22373
23121
|
}, [setPageFilter]);
|
|
22374
23122
|
const inputRef = react$1.useRef(null);
|
|
22375
|
-
const slash =
|
|
23123
|
+
const slash = chunkFQRJCAT2_cjs.useSlashField({ text, setText, inputRef, landing: "chat" });
|
|
22376
23124
|
if (!workspaceId) return null;
|
|
22377
23125
|
const submitTo = (handler) => (question) => {
|
|
22378
23126
|
handler(question);
|
|
@@ -22443,7 +23191,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22443
23191
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
22444
23192
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
22445
23193
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
22446
|
-
|
|
23194
|
+
chunkOD6NGGL3_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
22447
23195
|
};
|
|
22448
23196
|
const setFilesView = (mode) => () => chunkADDQKZ5I_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
22449
23197
|
const actions = [
|
|
@@ -22811,7 +23559,7 @@ function ConnectedCommandPalette({
|
|
|
22811
23559
|
isFeatureOn: react.useFeatureCheck()
|
|
22812
23560
|
};
|
|
22813
23561
|
const { ask, search } = useWorkspaceAsk();
|
|
22814
|
-
const skillLauncher =
|
|
23562
|
+
const skillLauncher = chunk2Z25MUAY_cjs.useSlashSkillWorkflows({ landing: "chat" });
|
|
22815
23563
|
react$1.useEffect(() => {
|
|
22816
23564
|
const onKey = (event) => {
|
|
22817
23565
|
if (!isPaletteShortcut(event)) return;
|
|
@@ -22845,8 +23593,8 @@ function ConnectedCommandPalette({
|
|
|
22845
23593
|
const skills = !workspaceId ? [] : text ? skillLauncher.openable.filter(
|
|
22846
23594
|
(w) => matches(text, w.title, w.description, w.id, w.category)
|
|
22847
23595
|
) : [
|
|
22848
|
-
...skillLauncher.openable.filter(
|
|
22849
|
-
...skillLauncher.openable.filter((w) => !
|
|
23596
|
+
...skillLauncher.openable.filter(chunk5A6T4W46_cjs.isSkillPackWorkflow),
|
|
23597
|
+
...skillLauncher.openable.filter((w) => !chunk5A6T4W46_cjs.isSkillPackWorkflow(w))
|
|
22850
23598
|
].slice(0, EMPTY_QUERY_SKILLS);
|
|
22851
23599
|
const choose = (run) => {
|
|
22852
23600
|
setOpen(false);
|
|
@@ -23004,7 +23752,7 @@ function ConnectedRemoteControlConsent() {
|
|
|
23004
23752
|
}
|
|
23005
23753
|
function ConsentPrompt() {
|
|
23006
23754
|
const pending = react.useRemoteControl((s) => s.pending);
|
|
23007
|
-
const remote =
|
|
23755
|
+
const remote = chunkMI3N3ZOT_cjs.useRemoteControlActions();
|
|
23008
23756
|
const onceRef = react$1.useRef(null);
|
|
23009
23757
|
chunkORELHENJ_cjs.useMountedSurface("consent");
|
|
23010
23758
|
const handleOpenChange = (next) => {
|
|
@@ -23097,7 +23845,7 @@ function Indicator() {
|
|
|
23097
23845
|
const enabled = react.useRemoteControl((s) => s.enabled);
|
|
23098
23846
|
const sharing = react.useRemoteControl((s) => !!s.sharing);
|
|
23099
23847
|
const controllingAgent = react.useRemoteControl((s) => s.controllingAgent);
|
|
23100
|
-
const remote =
|
|
23848
|
+
const remote = chunkMI3N3ZOT_cjs.useRemoteControlActions();
|
|
23101
23849
|
if (!enabled && !controllingAgent) return null;
|
|
23102
23850
|
const isActive = controllingAgent !== null;
|
|
23103
23851
|
const label = sharing ? controllingAgent ? `${controllingAgent.name} \xB7 screen sharing and control on` : "Sharing screen \xB7 remote control on" : isActive ? `${controllingAgent.name} is controlling your screen` : "Remote control on";
|
|
@@ -26988,7 +27736,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
26988
27736
|
}) {
|
|
26989
27737
|
const authenticated = react.useArbiSession().status === "signed-in";
|
|
26990
27738
|
const { openMail } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
26991
|
-
const { loading } =
|
|
27739
|
+
const { loading } = chunkMI3N3ZOT_cjs.useAuthPages();
|
|
26992
27740
|
const claim = react.useClaimSecureMail();
|
|
26993
27741
|
const [, setFirstLoginWorkspaces] = react.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
|
|
26994
27742
|
const [failure, setFailure] = react$1.useState(null);
|
|
@@ -27028,7 +27776,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27028
27776
|
}
|
|
27029
27777
|
})();
|
|
27030
27778
|
}, [authenticated, claimId, key]);
|
|
27031
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
27779
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
27032
27780
|
return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
|
|
27033
27781
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
27034
27782
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -28428,7 +29176,7 @@ function EventEditorDialog({
|
|
|
28428
29176
|
const { notify: notify19, runtimeConfig } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
28429
29177
|
const attachmentDocuments = documents.map((document2) => ({
|
|
28430
29178
|
doc_id: document2.external_id,
|
|
28431
|
-
title:
|
|
29179
|
+
title: chunkDBN6GBRQ_cjs.toWorkflowFieldDocument(document2).title,
|
|
28432
29180
|
url: chunkLJJJ6CYH_cjs.buildDeepLinkUrl(
|
|
28433
29181
|
{ workspaceId: workspaceId ?? void 0, documentId: document2.external_id },
|
|
28434
29182
|
runtimeConfig.deploymentDomain
|
|
@@ -30680,7 +31428,7 @@ function EmailProviderRow({
|
|
|
30680
31428
|
react.useRefreshConnectorsOnRunEnd(running);
|
|
30681
31429
|
const busy = syncPending;
|
|
30682
31430
|
const kickProgressPolling = () => {
|
|
30683
|
-
[500, 1400, 2800].forEach((
|
|
31431
|
+
[500, 1400, 2800].forEach((ms2) => window.setTimeout(() => void refetchProgress(), ms2));
|
|
30684
31432
|
};
|
|
30685
31433
|
const syncNow = () => {
|
|
30686
31434
|
void runSync({ vendorKey: catalog.vendor_key, workspaceExtId, workspaceLabel: workspaceName });
|
|
@@ -31066,7 +31814,7 @@ function OneDriveProviderRow({
|
|
|
31066
31814
|
}
|
|
31067
31815
|
};
|
|
31068
31816
|
const kickProgressPolling = () => {
|
|
31069
|
-
[500, 1400, 2800].forEach((
|
|
31817
|
+
[500, 1400, 2800].forEach((ms2) => window.setTimeout(() => void refetchProgress(), ms2));
|
|
31070
31818
|
};
|
|
31071
31819
|
const syncNow = () => {
|
|
31072
31820
|
void runSync({
|
|
@@ -31075,7 +31823,7 @@ function OneDriveProviderRow({
|
|
|
31075
31823
|
workspaceLabel: workspaceName
|
|
31076
31824
|
});
|
|
31077
31825
|
kickProgressPolling();
|
|
31078
|
-
[1500, 4e3].forEach((
|
|
31826
|
+
[1500, 4e3].forEach((ms2) => window.setTimeout(() => void refetchEstimate(), ms2));
|
|
31079
31827
|
};
|
|
31080
31828
|
const stopSync = () => cancelSync.mutate(
|
|
31081
31829
|
{ vendorKey: catalog.vendor_key },
|
|
@@ -33158,7 +33906,7 @@ function useBatchCompleteToasts() {
|
|
|
33158
33906
|
}
|
|
33159
33907
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
33160
33908
|
} else if (message.batch_type === "entity_extract") {
|
|
33161
|
-
say(`${
|
|
33909
|
+
say(`${chunkKWHGYHRC_cjs.entitiesPhrase()} extracted from ${chunkKWHGYHRC_cjs.documentCount(docIds.length)}`, "success", {
|
|
33162
33910
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
33163
33911
|
});
|
|
33164
33912
|
} else if (message.batch_type === "upload") {
|
|
@@ -33973,10 +34721,10 @@ var DocumentReviewCard = react$1.lazy(
|
|
|
33973
34721
|
() => import('../DocumentReviewCard-M53XFLI2.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
33974
34722
|
);
|
|
33975
34723
|
var FilesViewerDialog = react$1.lazy(
|
|
33976
|
-
() => import('../FilesViewerDialog-
|
|
34724
|
+
() => import('../FilesViewerDialog-EFRMXIM5.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
33977
34725
|
);
|
|
33978
34726
|
function defaultReviewCard(props) {
|
|
33979
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34727
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
33980
34728
|
}
|
|
33981
34729
|
function ConnectedFilesPage({
|
|
33982
34730
|
isModal = false,
|
|
@@ -34019,7 +34767,7 @@ function ConnectedFilesPage({
|
|
|
34019
34767
|
const deleteDocuments = react.useDeleteDocuments();
|
|
34020
34768
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
34021
34769
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
34022
|
-
const { role, members } =
|
|
34770
|
+
const { role, members } = chunkTZYB22FM_cjs.useConnectedWorkspaceRole();
|
|
34023
34771
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
34024
34772
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
34025
34773
|
const workspaceName = workspace?.name;
|
|
@@ -34051,7 +34799,7 @@ function ConnectedFilesPage({
|
|
|
34051
34799
|
[setPrefsViewMode, prefsKey]
|
|
34052
34800
|
);
|
|
34053
34801
|
const ownsViewer = !hostToggleDocument;
|
|
34054
|
-
const viewerTabs = viewer?.tabs ??
|
|
34802
|
+
const viewerTabs = viewer?.tabs ?? chunkFQRJCAT2_cjs.DEFAULT_DOCUMENT_VIEWER_TABS;
|
|
34055
34803
|
const [dialog, setDialog] = react$1.useState(null);
|
|
34056
34804
|
const isDocumentViewerEnabled = ownsViewer ? dialog !== null : hostViewerDocumentId !== null;
|
|
34057
34805
|
const shownPlaceRef = react$1.useRef(null);
|
|
@@ -34554,7 +35302,7 @@ function ConnectedFilesPage({
|
|
|
34554
35302
|
viewMode === "grid" ? (
|
|
34555
35303
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
34556
35304
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34557
|
-
|
|
35305
|
+
chunkKWHGYHRC_cjs.GridRowNavigator,
|
|
34558
35306
|
{
|
|
34559
35307
|
gridApi,
|
|
34560
35308
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -34857,7 +35605,7 @@ function ProcessingSection({
|
|
|
34857
35605
|
tasks,
|
|
34858
35606
|
onDelete
|
|
34859
35607
|
}) {
|
|
34860
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35608
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
34861
35609
|
}
|
|
34862
35610
|
function ConnectedDocumentProcessingPanel({
|
|
34863
35611
|
workspaceId,
|
|
@@ -36988,10 +37736,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
|
|
|
36988
37736
|
var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
|
|
36989
37737
|
var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
|
|
36990
37738
|
function GuidedRuns() {
|
|
36991
|
-
|
|
37739
|
+
chunkMI3N3ZOT_cjs.useRemoteControlSessionReset();
|
|
36992
37740
|
const { cursorMark } = chunkORELHENJ_cjs.useGuidedRuns();
|
|
36993
37741
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36994
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37742
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
36995
37743
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
36996
37744
|
] });
|
|
36997
37745
|
}
|
|
@@ -37025,7 +37773,7 @@ function ConnectedAppRuntime({
|
|
|
37025
37773
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
37026
37774
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
37027
37775
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
37028
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
37776
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkKWHGYHRC_cjs.KIT_CHUNK_LOADERS] }),
|
|
37029
37777
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
37030
37778
|
] });
|
|
37031
37779
|
}
|
|
@@ -37490,7 +38238,7 @@ async function renderAnnotatedScreenshot(image, marks, text) {
|
|
|
37490
38238
|
)
|
|
37491
38239
|
);
|
|
37492
38240
|
}
|
|
37493
|
-
return
|
|
38241
|
+
return chunkMI3N3ZOT_cjs.canvasToBlob(canvas);
|
|
37494
38242
|
}
|
|
37495
38243
|
function ReportProblemDialog({
|
|
37496
38244
|
open,
|
|
@@ -37784,7 +38532,7 @@ function ReportProblemDialog({
|
|
|
37784
38532
|
hidden: ticketId !== null,
|
|
37785
38533
|
children: [
|
|
37786
38534
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "No screenshot attached." }),
|
|
37787
|
-
|
|
38535
|
+
chunkMI3N3ZOT_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
|
|
37788
38536
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "mr-1 size-4" }),
|
|
37789
38537
|
" Take a screenshot"
|
|
37790
38538
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "inline-flex cursor-pointer items-center gap-1 font-medium text-primary", children: [
|
|
@@ -37848,10 +38596,10 @@ function useReportProblem(options = {}) {
|
|
|
37848
38596
|
setPhase("capturing");
|
|
37849
38597
|
await new Promise((resolve) => window.setTimeout(resolve, 200));
|
|
37850
38598
|
try {
|
|
37851
|
-
setFrame(await
|
|
38599
|
+
setFrame(await chunkMI3N3ZOT_cjs.captureCurrentTab());
|
|
37852
38600
|
setImage(null);
|
|
37853
38601
|
} catch (error) {
|
|
37854
|
-
const code = error instanceof
|
|
38602
|
+
const code = error instanceof chunkMI3N3ZOT_cjs.ScreenCaptureError ? error.code : "failed";
|
|
37855
38603
|
if (code === "failed") {
|
|
37856
38604
|
notify19("Couldn't capture the screen. You can still describe the problem.", "error");
|
|
37857
38605
|
}
|
|
@@ -37972,21 +38720,21 @@ function suppliedKinds(context) {
|
|
|
37972
38720
|
return kinds;
|
|
37973
38721
|
}
|
|
37974
38722
|
function resolveLaunchInputs(workflow, request) {
|
|
37975
|
-
const fromContext = request.context ?
|
|
38723
|
+
const fromContext = request.context ? chunkJN5YMHGI_cjs.inputsFromContext(workflow, request.context) : {};
|
|
37976
38724
|
const fileField = workflow.inputs.find((f) => f.type === "scope" || f.type === "documents");
|
|
37977
38725
|
const fromScope = request.scope && fileField ? { [fileField.name]: request.scope } : {};
|
|
37978
38726
|
return { ...fromContext, ...fromScope, ...request.inputs };
|
|
37979
38727
|
}
|
|
37980
38728
|
function useWorkflowLaunch() {
|
|
37981
|
-
const { skills } =
|
|
38729
|
+
const { skills } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
|
|
37982
38730
|
const launch = react$1.useCallback(
|
|
37983
|
-
(workflowId, options = {}) =>
|
|
38731
|
+
(workflowId, options = {}) => chunkOD6NGGL3_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
37984
38732
|
[]
|
|
37985
38733
|
);
|
|
37986
38734
|
const itemsFor = react$1.useCallback(
|
|
37987
38735
|
(context, options = {}) => {
|
|
37988
38736
|
const { fileField, ...launchOptions } = options;
|
|
37989
|
-
return
|
|
38737
|
+
return chunkJN5YMHGI_cjs.workflowsAccepting(skills, suppliedKinds(context)).filter(
|
|
37990
38738
|
(w) => !fileField || w.inputs.some((f) => f.type === fileField && f.context !== void 0)
|
|
37991
38739
|
).map((w) => ({
|
|
37992
38740
|
id: w.id,
|
|
@@ -38009,17 +38757,17 @@ function useWorkflowLaunch() {
|
|
|
38009
38757
|
return { launch, itemsFor, scopeItemsFor };
|
|
38010
38758
|
}
|
|
38011
38759
|
function Inner() {
|
|
38012
|
-
const request =
|
|
38013
|
-
const close =
|
|
38014
|
-
const { skills } =
|
|
38015
|
-
const run =
|
|
38760
|
+
const request = chunkOD6NGGL3_cjs.useWorkflowLaunchRequest();
|
|
38761
|
+
const close = chunkOD6NGGL3_cjs.closeWorkflowLaunch;
|
|
38762
|
+
const { skills } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
|
|
38763
|
+
const run = chunkXCW6OY7E_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
38016
38764
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
38017
38765
|
const inputs = react$1.useMemo(
|
|
38018
38766
|
() => workflow && request ? resolveLaunchInputs(workflow, request) : void 0,
|
|
38019
38767
|
[workflow, request]
|
|
38020
38768
|
);
|
|
38021
38769
|
const complete = Boolean(
|
|
38022
|
-
workflow && inputs && !Object.keys(
|
|
38770
|
+
workflow && inputs && !Object.keys(chunkJN5YMHGI_cjs.validateInputs(workflow, { ...chunkJN5YMHGI_cjs.defaultInputs(workflow), ...inputs })).length
|
|
38023
38771
|
);
|
|
38024
38772
|
const autoStart = Boolean(request?.autoStart && complete);
|
|
38025
38773
|
react$1.useEffect(() => {
|
|
@@ -38030,13 +38778,13 @@ function Inner() {
|
|
|
38030
38778
|
if (!autoStart) return;
|
|
38031
38779
|
close();
|
|
38032
38780
|
void Promise.resolve(
|
|
38033
|
-
run(
|
|
38781
|
+
run(chunkJN5YMHGI_cjs.buildLaunch(workflow, { ...chunkJN5YMHGI_cjs.defaultInputs(workflow), ...inputs }))
|
|
38034
38782
|
).catch(() => {
|
|
38035
38783
|
});
|
|
38036
38784
|
}, [request, workflow, autoStart]);
|
|
38037
38785
|
if (!request || !workflow || autoStart) return null;
|
|
38038
38786
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38039
|
-
|
|
38787
|
+
chunkXCW6OY7E_cjs.ConnectedWorkflowStart,
|
|
38040
38788
|
{
|
|
38041
38789
|
workflows: skills,
|
|
38042
38790
|
showTiles: false,
|
|
@@ -38048,7 +38796,7 @@ function Inner() {
|
|
|
38048
38796
|
);
|
|
38049
38797
|
}
|
|
38050
38798
|
function WorkflowLaunchHost() {
|
|
38051
|
-
return
|
|
38799
|
+
return chunkOD6NGGL3_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
38052
38800
|
}
|
|
38053
38801
|
function isNeedsConfirmationDetail(detail) {
|
|
38054
38802
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -38357,7 +39105,7 @@ function ConnectedConversationSettings() {
|
|
|
38357
39105
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38358
39106
|
chunkT73BHNQX_cjs.ModelSelectionSection,
|
|
38359
39107
|
{
|
|
38360
|
-
selector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39108
|
+
selector: /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedModelSelector, {}),
|
|
38361
39109
|
onUseDefaults: settings.resetToDefaults
|
|
38362
39110
|
}
|
|
38363
39111
|
)
|
|
@@ -38383,7 +39131,7 @@ function ConnectedConversationSettingsDialog({
|
|
|
38383
39131
|
}
|
|
38384
39132
|
) });
|
|
38385
39133
|
}
|
|
38386
|
-
var ConnectedProductionSetDialog = react$1.lazy(() => import('../ConnectedProductionSetDialog-
|
|
39134
|
+
var ConnectedProductionSetDialog = react$1.lazy(() => import('../ConnectedProductionSetDialog-LHB4VQWC.cjs'));
|
|
38387
39135
|
var BUILTIN_GLOBAL_DIALOGS = {
|
|
38388
39136
|
support: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38389
39137
|
ConnectedSupportTicketsDialog,
|
|
@@ -38416,7 +39164,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
|
|
|
38416
39164
|
testId: "workspace-transfer-modal"
|
|
38417
39165
|
}
|
|
38418
39166
|
),
|
|
38419
|
-
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39167
|
+
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
|
|
38420
39168
|
conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
|
|
38421
39169
|
unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
|
|
38422
39170
|
productionSet: ConnectedProductionSetDialog,
|
|
@@ -38466,7 +39214,7 @@ var ConversationEntity = react$1.memo(function ConversationEntity2({
|
|
|
38466
39214
|
);
|
|
38467
39215
|
const icon2 = /* @__PURE__ */ jsxRuntime.jsx(ui.ThreadVisibilityIcon, { shared: isShared, className: "w-4 h-4 shrink-0" });
|
|
38468
39216
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38469
|
-
|
|
39217
|
+
chunkQFXOTJ6G_cjs.EntityChip,
|
|
38470
39218
|
{
|
|
38471
39219
|
icon: icon2,
|
|
38472
39220
|
label: title,
|
|
@@ -38485,22 +39233,22 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
38485
39233
|
});
|
|
38486
39234
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
38487
39235
|
const me = react.useArbiSession().user?.external_id;
|
|
38488
|
-
const steps =
|
|
38489
|
-
const states =
|
|
39236
|
+
const steps = chunkQFXOTJ6G_cjs.fromPlanSteps(conversation.plan?.steps ?? []);
|
|
39237
|
+
const states = chunkEQTZQD66_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
38490
39238
|
const nameOf = (id) => {
|
|
38491
39239
|
if (id === me) return "you";
|
|
38492
39240
|
const person = members.find((m) => m.user.external_id === id)?.user;
|
|
38493
39241
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
38494
39242
|
};
|
|
38495
39243
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38496
|
-
|
|
39244
|
+
chunkOD6NGGL3_cjs.WorkflowRunStatus,
|
|
38497
39245
|
{
|
|
38498
39246
|
steps,
|
|
38499
39247
|
states,
|
|
38500
|
-
assigneeOf: (step) =>
|
|
39248
|
+
assigneeOf: (step) => chunkEQTZQD66_cjs.canAssign(step) ? chunkEQTZQD66_cjs.assigneeName(step.assignee, {
|
|
38501
39249
|
nameOf,
|
|
38502
39250
|
inputs: conversation.skill_inputs ?? {},
|
|
38503
|
-
fields:
|
|
39251
|
+
fields: chunkEQTZQD66_cjs.runFieldsOf(steps),
|
|
38504
39252
|
announcedTo: states[step.id]?.announcedTo
|
|
38505
39253
|
}) : void 0,
|
|
38506
39254
|
isLoading: activity.isLoading,
|
|
@@ -38527,7 +39275,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
38527
39275
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
38528
39276
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
38529
39277
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38530
|
-
|
|
39278
|
+
chunkOD6NGGL3_cjs.ThreadStatusLine,
|
|
38531
39279
|
{
|
|
38532
39280
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
38533
39281
|
className: "h-full",
|
|
@@ -38833,7 +39581,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38833
39581
|
const [draft, setDraft] = react$1.useState("");
|
|
38834
39582
|
const input = react$1.useRef(null);
|
|
38835
39583
|
const { openNewConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
38836
|
-
const slashWorkflows =
|
|
39584
|
+
const slashWorkflows = chunk2Z25MUAY_cjs.useSlashSkillWorkflows({ landing: "chat" });
|
|
38837
39585
|
const skills = react$1.useMemo(() => ({ openFor: slashWorkflows.openFor }), [slashWorkflows.openFor]);
|
|
38838
39586
|
react$1.useEffect(() => {
|
|
38839
39587
|
if (autoFocus) input.current?.focus();
|
|
@@ -38843,10 +39591,10 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38843
39591
|
if (!slashWorkflows.openForDraft(draft)) openNewConversation({ prompt: draft });
|
|
38844
39592
|
setDraft("");
|
|
38845
39593
|
};
|
|
38846
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39594
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkF6CEPWIF_cjs.ComposerDock, { children: [
|
|
38847
39595
|
slashWorkflows.launcher,
|
|
38848
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38849
|
-
|
|
39596
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39597
|
+
chunkMI3N3ZOT_cjs.ConversationComposer,
|
|
38850
39598
|
{
|
|
38851
39599
|
value: draft,
|
|
38852
39600
|
onValueChange: setDraft,
|
|
@@ -38855,8 +39603,8 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38855
39603
|
isConversationEmpty: true,
|
|
38856
39604
|
shouldOfferFollowUp: false,
|
|
38857
39605
|
skills,
|
|
38858
|
-
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38859
|
-
rightButton: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39606
|
+
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedModelSelector, { variant: "compact" }),
|
|
39607
|
+
rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
|
|
38860
39608
|
}
|
|
38861
39609
|
) })
|
|
38862
39610
|
] });
|
|
@@ -38864,9 +39612,9 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38864
39612
|
var START_VISIBLE = 8;
|
|
38865
39613
|
var START_SEARCH_ABOVE = 8;
|
|
38866
39614
|
function ConnectedConversationStart() {
|
|
38867
|
-
const { start } =
|
|
39615
|
+
const { start } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
|
|
38868
39616
|
const { openSkillsBrowser } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
38869
|
-
const canBrowse =
|
|
39617
|
+
const canBrowse = chunkHBUHOCWF_cjs.useCanBrowseSkills();
|
|
38870
39618
|
const [query, setQuery] = react$1.useState("");
|
|
38871
39619
|
const q = query.trim().toLowerCase();
|
|
38872
39620
|
const shown = react$1.useMemo(() => {
|
|
@@ -38880,7 +39628,7 @@ function ConnectedConversationStart() {
|
|
|
38880
39628
|
const browse = openSkillsBrowser && canBrowse ? [
|
|
38881
39629
|
{
|
|
38882
39630
|
id: "browse-all",
|
|
38883
|
-
iconNode:
|
|
39631
|
+
iconNode: chunk5A6T4W46_cjs.renderWorkflowIcon("library"),
|
|
38884
39632
|
title: "Browse all",
|
|
38885
39633
|
description: "See every skill, make a copy, add your own",
|
|
38886
39634
|
onSelect: () => openSkillsBrowser(),
|
|
@@ -38904,7 +39652,7 @@ function ConnectedConversationStart() {
|
|
|
38904
39652
|
)
|
|
38905
39653
|
] }),
|
|
38906
39654
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38907
|
-
|
|
39655
|
+
chunkXCW6OY7E_cjs.ConnectedWorkflowStart,
|
|
38908
39656
|
{
|
|
38909
39657
|
workflows: start,
|
|
38910
39658
|
tileWorkflows: shown,
|
|
@@ -38986,7 +39734,7 @@ function AgentBarShell({
|
|
|
38986
39734
|
}, [isStepsExpanded, steps]);
|
|
38987
39735
|
const visibleStepCount = react$1.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
38988
39736
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38989
|
-
|
|
39737
|
+
chunkOD6NGGL3_cjs.AgentBar,
|
|
38990
39738
|
{
|
|
38991
39739
|
className,
|
|
38992
39740
|
testId,
|
|
@@ -38998,7 +39746,7 @@ function AgentBarShell({
|
|
|
38998
39746
|
drawerRef: scrollRef,
|
|
38999
39747
|
onDrawerScroll: handleDrawerScroll,
|
|
39000
39748
|
drawer: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39001
|
-
|
|
39749
|
+
chunkMI3N3ZOT_cjs.AgentSteps,
|
|
39002
39750
|
{
|
|
39003
39751
|
steps: stepList,
|
|
39004
39752
|
isStreaming,
|
|
@@ -39042,7 +39790,7 @@ function AgentControlBar({
|
|
|
39042
39790
|
const isPaused = controlState === "paused" || controlState === "resuming";
|
|
39043
39791
|
const steps = agentSteps ?? [];
|
|
39044
39792
|
const currentStep = browser.getCurrentStep(steps);
|
|
39045
|
-
const currentPresentation =
|
|
39793
|
+
const currentPresentation = chunkQFXOTJ6G_cjs.getCurrentAgentStepPresentation(steps);
|
|
39046
39794
|
const CurrentStepIcon = currentPresentation?.Icon;
|
|
39047
39795
|
const stepLabel2 = currentPresentation?.description ?? "Agent working\u2026";
|
|
39048
39796
|
const runningLanes = browser.extractSubagentLanes(steps).filter((l) => l.status === "running");
|
|
@@ -39050,7 +39798,7 @@ function AgentControlBar({
|
|
|
39050
39798
|
const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
|
|
39051
39799
|
const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
|
|
39052
39800
|
const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39053
|
-
|
|
39801
|
+
chunkMI3N3ZOT_cjs.MessageLiveSeconds,
|
|
39054
39802
|
{
|
|
39055
39803
|
...liveTimer,
|
|
39056
39804
|
offsetSeconds: currentStep?.t ?? 0,
|
|
@@ -39059,7 +39807,7 @@ function AgentControlBar({
|
|
|
39059
39807
|
}
|
|
39060
39808
|
);
|
|
39061
39809
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
39062
|
-
|
|
39810
|
+
chunkOD6NGGL3_cjs.AgentBarStatus,
|
|
39063
39811
|
{
|
|
39064
39812
|
state: showState ? controlState : void 0,
|
|
39065
39813
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -39101,7 +39849,7 @@ function AgentControlBar({
|
|
|
39101
39849
|
];
|
|
39102
39850
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39103
39851
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39104
|
-
|
|
39852
|
+
chunkOD6NGGL3_cjs.AgentBarIconButton,
|
|
39105
39853
|
{
|
|
39106
39854
|
onClick: onStop,
|
|
39107
39855
|
title: "Stop",
|
|
@@ -39110,22 +39858,22 @@ function AgentControlBar({
|
|
|
39110
39858
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
39111
39859
|
}
|
|
39112
39860
|
),
|
|
39113
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39861
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentBarMenu, { items: menuItems })
|
|
39114
39862
|
] });
|
|
39115
39863
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
39116
39864
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
39117
39865
|
);
|
|
39118
39866
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
39119
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39867
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.AgentBarNotes, { children: [
|
|
39120
39868
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39121
|
-
|
|
39869
|
+
chunkOD6NGGL3_cjs.AgentBarQueuedNote,
|
|
39122
39870
|
{
|
|
39123
39871
|
text: message.content ?? "",
|
|
39124
39872
|
isAcknowledged: message.acknowledged
|
|
39125
39873
|
},
|
|
39126
39874
|
index
|
|
39127
39875
|
)),
|
|
39128
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39876
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
39129
39877
|
] }) : null;
|
|
39130
39878
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39131
39879
|
AgentBarShell,
|
|
@@ -39152,7 +39900,7 @@ var ConversationSendButton = react$1.memo(function ConversationSendButton2({
|
|
|
39152
39900
|
const recipients = react.assistantLabels(assistantName);
|
|
39153
39901
|
const showRetryIcon = hasOrphanedMessage && draftMessage === "";
|
|
39154
39902
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39155
|
-
|
|
39903
|
+
chunkF6CEPWIF_cjs.ComposerSend,
|
|
39156
39904
|
{
|
|
39157
39905
|
onSend: onClick,
|
|
39158
39906
|
isRetry: showRetryIcon,
|
|
@@ -39214,7 +39962,7 @@ var MicButton = react$1.memo(function MicButton2({
|
|
|
39214
39962
|
const isBusy = isTranscribing;
|
|
39215
39963
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39216
39964
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39217
|
-
|
|
39965
|
+
chunkF6CEPWIF_cjs.ComposerVoiceButton,
|
|
39218
39966
|
{
|
|
39219
39967
|
isRecording,
|
|
39220
39968
|
isBusy,
|
|
@@ -39253,7 +40001,7 @@ function ConnectedConversationEmpty({
|
|
|
39253
40001
|
below
|
|
39254
40002
|
}) {
|
|
39255
40003
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39256
|
-
|
|
40004
|
+
chunkA6GBPE5E_cjs.ConversationEmpty,
|
|
39257
40005
|
{
|
|
39258
40006
|
hasDocuments,
|
|
39259
40007
|
prompts: EXAMPLE_PROMPTS,
|
|
@@ -39308,7 +40056,7 @@ function ConversationAlert({
|
|
|
39308
40056
|
}, [message, onRetryOrphaned, notify19]);
|
|
39309
40057
|
if (type === "send-failed") {
|
|
39310
40058
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39311
|
-
|
|
40059
|
+
chunkA6GBPE5E_cjs.MessageAlert,
|
|
39312
40060
|
{
|
|
39313
40061
|
title: "Message failed to send",
|
|
39314
40062
|
description: errorMessage2 || "An error occurred while sending your message.",
|
|
@@ -39337,7 +40085,7 @@ function ConversationAlert({
|
|
|
39337
40085
|
);
|
|
39338
40086
|
}
|
|
39339
40087
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39340
|
-
|
|
40088
|
+
chunkA6GBPE5E_cjs.MessageAlert,
|
|
39341
40089
|
{
|
|
39342
40090
|
title: type === "backend-failed" ? "Response Failed" : "Response Incomplete",
|
|
39343
40091
|
description: type === "backend-failed" ? "The assistant's response failed. Use Retry to try again." : "Use Retry to try again, or type a new query.",
|
|
@@ -39734,7 +40482,7 @@ function useThreadScroll({
|
|
|
39734
40482
|
const events = ["wheel", "touchstart", "keydown", "pointerdown"];
|
|
39735
40483
|
events.forEach((e) => container.addEventListener(e, stop, { once: true, passive: true }));
|
|
39736
40484
|
[500, 1e3, 1600, 2400].forEach(
|
|
39737
|
-
(
|
|
40485
|
+
(ms2, i, all) => setTimeout(() => {
|
|
39738
40486
|
const el = document.querySelector(`[data-message-id="${messageId}"]`);
|
|
39739
40487
|
if (!stopped && el) {
|
|
39740
40488
|
const box = el.getBoundingClientRect();
|
|
@@ -39743,7 +40491,7 @@ function useThreadScroll({
|
|
|
39743
40491
|
if (Math.abs(off) > 48) el.scrollIntoView({ behavior: "auto", block: "center" });
|
|
39744
40492
|
}
|
|
39745
40493
|
if (i === all.length - 1) events.forEach((e) => container.removeEventListener(e, stop));
|
|
39746
|
-
},
|
|
40494
|
+
}, ms2)
|
|
39747
40495
|
);
|
|
39748
40496
|
}, []);
|
|
39749
40497
|
react$1.useEffect(() => {
|
|
@@ -40134,7 +40882,7 @@ function ConversationThread({
|
|
|
40134
40882
|
react$1.useEffect(() => {
|
|
40135
40883
|
if (!isGenerating) setFirstTurnPrompt(null);
|
|
40136
40884
|
}, [isGenerating]);
|
|
40137
|
-
const slashWorkflows =
|
|
40885
|
+
const slashWorkflows = chunk2Z25MUAY_cjs.useSlashSkillWorkflows({ landing: "current-chat" });
|
|
40138
40886
|
const composerSkills = react$1.useMemo(
|
|
40139
40887
|
() => ({ openFor: slashWorkflows.openFor }),
|
|
40140
40888
|
[slashWorkflows.openFor]
|
|
@@ -40240,7 +40988,7 @@ function ConversationThread({
|
|
|
40240
40988
|
useStartRequestedDraft();
|
|
40241
40989
|
const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
|
|
40242
40990
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
|
|
40243
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40991
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkVJCSEMXT_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
|
|
40244
40992
|
meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40245
40993
|
chunkZBP4ZSAJ_cjs.ConversationFilter,
|
|
40246
40994
|
{
|
|
@@ -40258,7 +41006,7 @@ function ConversationThread({
|
|
|
40258
41006
|
]
|
|
40259
41007
|
}
|
|
40260
41008
|
) }),
|
|
40261
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41009
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
|
|
40262
41010
|
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40263
41011
|
] }) }) : meetingCallExtId ? (
|
|
40264
41012
|
// A meeting thread with nothing yet: call-aware, not the upload prompt.
|
|
@@ -40266,7 +41014,7 @@ function ConversationThread({
|
|
|
40266
41014
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
40267
41015
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40268
41016
|
] })
|
|
40269
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
41017
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
40270
41018
|
ConnectedConversationEmpty,
|
|
40271
41019
|
{
|
|
40272
41020
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -40281,17 +41029,17 @@ function ConversationThread({
|
|
|
40281
41029
|
}
|
|
40282
41030
|
) }),
|
|
40283
41031
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40284
|
-
|
|
41032
|
+
chunkF6CEPWIF_cjs.ComposerDock,
|
|
40285
41033
|
{
|
|
40286
41034
|
floating: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40287
|
-
|
|
41035
|
+
chunkF6CEPWIF_cjs.ScrollToBottom,
|
|
40288
41036
|
{
|
|
40289
41037
|
className: "left-auto right-3 translate-x-0",
|
|
40290
41038
|
show: showScrollToBottom,
|
|
40291
41039
|
onClick: scrollToBottom
|
|
40292
41040
|
}
|
|
40293
41041
|
),
|
|
40294
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
41042
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkF6CEPWIF_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: [
|
|
40295
41043
|
orphanedMessage ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40296
41044
|
ConversationAlert,
|
|
40297
41045
|
{
|
|
@@ -40364,7 +41112,7 @@ function ConversationThread({
|
|
|
40364
41112
|
}
|
|
40365
41113
|
),
|
|
40366
41114
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40367
|
-
|
|
41115
|
+
chunkMI3N3ZOT_cjs.ConversationComposer,
|
|
40368
41116
|
{
|
|
40369
41117
|
handleSendMessage: handleUserSend,
|
|
40370
41118
|
placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
|
|
@@ -40709,7 +41457,7 @@ function ConnectedThreadsPage({
|
|
|
40709
41457
|
};
|
|
40710
41458
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
40711
41459
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40712
|
-
|
|
41460
|
+
chunkOD6NGGL3_cjs.ConversationListView,
|
|
40713
41461
|
{
|
|
40714
41462
|
showHeader,
|
|
40715
41463
|
conversations: tasks,
|
|
@@ -40728,7 +41476,7 @@ function ConnectedThreadsPage({
|
|
|
40728
41476
|
renderLabels: threadLabels.renderLabels,
|
|
40729
41477
|
labelText: threadLabels.labelText,
|
|
40730
41478
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
40731
|
-
|
|
41479
|
+
chunkOD6NGGL3_cjs.ConversationTurnSpeaker,
|
|
40732
41480
|
{
|
|
40733
41481
|
variant: "icon",
|
|
40734
41482
|
role: row2.last_message_role,
|
|
@@ -41384,7 +42132,7 @@ function ConnectedChatContextButton({
|
|
|
41384
42132
|
};
|
|
41385
42133
|
const documentNoun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL").toLowerCase();
|
|
41386
42134
|
const chip = /* @__PURE__ */ jsxRuntime.jsx(
|
|
41387
|
-
|
|
42135
|
+
chunkA6GBPE5E_cjs.ContextChip,
|
|
41388
42136
|
{
|
|
41389
42137
|
count: count2,
|
|
41390
42138
|
label: `${count2} ${documentNoun} in this chat`,
|
|
@@ -41609,7 +42357,7 @@ function ConnectedConversationPage({
|
|
|
41609
42357
|
);
|
|
41610
42358
|
const { data: workspaceTags = [] } = react.useTags();
|
|
41611
42359
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
41612
|
-
const historyCount =
|
|
42360
|
+
const historyCount = chunkOD6NGGL3_cjs.filterConversationRows(
|
|
41613
42361
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
41614
42362
|
threadFilter,
|
|
41615
42363
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -41691,7 +42439,7 @@ function ConnectedConversationPage({
|
|
|
41691
42439
|
] })
|
|
41692
42440
|
}
|
|
41693
42441
|
),
|
|
41694
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42442
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkGOQV6NOK_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
41695
42443
|
] }),
|
|
41696
42444
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41697
42445
|
ConversationThread,
|
|
@@ -41900,7 +42648,7 @@ function SsoResendVerificationButton({
|
|
|
41900
42648
|
onClick: async () => handleResendEmailVerification(),
|
|
41901
42649
|
disabled: loading || disabled,
|
|
41902
42650
|
"aria-label": "Resend verification email",
|
|
41903
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
42651
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
41904
42652
|
"Didn't get a verification email? ",
|
|
41905
42653
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
41906
42654
|
] })
|
|
@@ -41911,16 +42659,16 @@ function SsoResendVerificationButton({
|
|
|
41911
42659
|
}
|
|
41912
42660
|
var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
|
|
41913
42661
|
function ConnectedSsoCallback() {
|
|
41914
|
-
const sso =
|
|
42662
|
+
const sso = chunkMI3N3ZOT_cjs.useSsoSignIn();
|
|
41915
42663
|
const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
|
|
41916
|
-
const auth =
|
|
42664
|
+
const auth = chunkMI3N3ZOT_cjs.useAuthPages();
|
|
41917
42665
|
const { notify: notify19, navigate } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
41918
42666
|
const passwordRules = auth.passwordRules;
|
|
41919
42667
|
const isProcessing = react$1.useRef(false);
|
|
41920
42668
|
const hasCheckedStatus = react$1.useRef(false);
|
|
41921
42669
|
const [accessToken, setAccessToken] = react$1.useState(null);
|
|
41922
42670
|
const [ssoStatus, setSsoStatus] = react$1.useState(null);
|
|
41923
|
-
const ssoName = react$1.useMemo(() =>
|
|
42671
|
+
const ssoName = react$1.useMemo(() => chunkMI3N3ZOT_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
|
|
41924
42672
|
const [password, setPassword] = react$1.useState("");
|
|
41925
42673
|
const [confirmPassword, setConfirmPassword] = react$1.useState("");
|
|
41926
42674
|
const [error, setError] = react$1.useState(null);
|
|
@@ -42098,7 +42846,7 @@ function ConnectedSsoCallback() {
|
|
|
42098
42846
|
setIsCheckingStatus(true);
|
|
42099
42847
|
try {
|
|
42100
42848
|
console.info("[SSO] Checking user status...");
|
|
42101
|
-
const response = await
|
|
42849
|
+
const response = await chunkMI3N3ZOT_cjs.ssoAccountStatus(arbi, accessToken, user);
|
|
42102
42850
|
console.info("[SSO] User status:", response.status);
|
|
42103
42851
|
setSsoStatus(response);
|
|
42104
42852
|
} catch (error2) {
|
|
@@ -42142,7 +42890,7 @@ function ConnectedSsoCallback() {
|
|
|
42142
42890
|
setIsSubmitting(true);
|
|
42143
42891
|
setError(null);
|
|
42144
42892
|
try {
|
|
42145
|
-
const { login, registered, linked } = await
|
|
42893
|
+
const { login, registered, linked } = await chunkMI3N3ZOT_cjs.completeSsoSignIn(arbi, {
|
|
42146
42894
|
token: accessToken,
|
|
42147
42895
|
user,
|
|
42148
42896
|
status: ssoStatus,
|
|
@@ -42424,7 +43172,7 @@ function ConnectedSsoCallback() {
|
|
|
42424
43172
|
ssoStatus.status !== "new_user" && auth.footer
|
|
42425
43173
|
] }),
|
|
42426
43174
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42427
|
-
|
|
43175
|
+
chunkMI3N3ZOT_cjs.ConnectedForgotPassword,
|
|
42428
43176
|
{
|
|
42429
43177
|
open: showForgotPasswordModal,
|
|
42430
43178
|
onOpenChange: setShowForgotPasswordModal,
|
|
@@ -42432,7 +43180,7 @@ function ConnectedSsoCallback() {
|
|
|
42432
43180
|
}
|
|
42433
43181
|
),
|
|
42434
43182
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42435
|
-
|
|
43183
|
+
chunkMI3N3ZOT_cjs.ConnectedPasswordChangeDialog,
|
|
42436
43184
|
{
|
|
42437
43185
|
open: showChangePasswordModal,
|
|
42438
43186
|
onClose: () => setShowChangePasswordModal(false),
|
|
@@ -42591,27 +43339,27 @@ function ConnectedOAuthConsentPage({
|
|
|
42591
43339
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
42592
43340
|
}
|
|
42593
43341
|
if (error && !params) {
|
|
42594
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43342
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
42595
43343
|
}
|
|
42596
43344
|
if (!params) {
|
|
42597
43345
|
return null;
|
|
42598
43346
|
}
|
|
42599
43347
|
if (clientInfo?.isLocalAgentFlow) {
|
|
42600
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43348
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_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." }) });
|
|
42601
43349
|
}
|
|
42602
43350
|
if (!isAuthenticated2) {
|
|
42603
43351
|
return null;
|
|
42604
43352
|
}
|
|
42605
43353
|
if (callbackUrl) {
|
|
42606
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42607
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43354
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentCard, { size: "md", children: [
|
|
43355
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
42608
43356
|
"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",
|
|
42609
43357
|
" ",
|
|
42610
43358
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
42611
43359
|
] }),
|
|
42612
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42613
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42614
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43360
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
43361
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
43362
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentText, { variant: "hint", children: [
|
|
42615
43363
|
"In Claude Code, paste the URL at the prompt that says",
|
|
42616
43364
|
" ",
|
|
42617
43365
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -42620,17 +43368,17 @@ function ConnectedOAuthConsentPage({
|
|
|
42620
43368
|
] })
|
|
42621
43369
|
] }) });
|
|
42622
43370
|
}
|
|
42623
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42624
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42625
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43371
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentCard, { children: [
|
|
43372
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
43373
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
42626
43374
|
" is requesting access to your ",
|
|
42627
43375
|
appName,
|
|
42628
43376
|
" workspace."
|
|
42629
43377
|
] }),
|
|
42630
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42631
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42632
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42633
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43378
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
43379
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
43380
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
43381
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentFootnote, { children: footnote })
|
|
42634
43382
|
] }) });
|
|
42635
43383
|
}
|
|
42636
43384
|
function ConnectedSharedFilesPage({
|
|
@@ -42978,7 +43726,7 @@ function ConnectedShellTopbar({
|
|
|
42978
43726
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkXJEXFEWG_cjs.Shell.Topbar, { actions, children: landing });
|
|
42979
43727
|
}
|
|
42980
43728
|
var ConnectedAssistantDock2 = react$1.lazy(
|
|
42981
|
-
() => import('../ai-
|
|
43729
|
+
() => import('../ai-4XJ2VFNS.cjs').then((m) => ({ default: m.ConnectedAssistantDock }))
|
|
42982
43730
|
);
|
|
42983
43731
|
var DOCK_TOGGLE_LABEL = "Assistant chat";
|
|
42984
43732
|
var DOCK_TOGGLE_TEST_ID = "shell-dock-toggle";
|
|
@@ -42994,8 +43742,8 @@ function RoutedShellSidebar({
|
|
|
42994
43742
|
const navigation = useShellNavigation();
|
|
42995
43743
|
const { workspace } = react.useCurrentWorkspace();
|
|
42996
43744
|
const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
|
|
42997
|
-
const assistantDock =
|
|
42998
|
-
const { isDockAvailable } =
|
|
43745
|
+
const assistantDock = chunkB3BZ6MNI_cjs.useAssistantDock();
|
|
43746
|
+
const { isDockAvailable } = chunkA6GBPE5E_cjs.useChatSurface();
|
|
42999
43747
|
const tools = [
|
|
43000
43748
|
...hostTools.map((tool) => ({
|
|
43001
43749
|
id: tool.id,
|
|
@@ -43062,7 +43810,7 @@ function RoutedShellTopbar({
|
|
|
43062
43810
|
] }),
|
|
43063
43811
|
ask: ask !== false ? (props) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedAskField, { ...props, labels: ask?.labels }) : void 0,
|
|
43064
43812
|
actions: dock !== false && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43065
|
-
|
|
43813
|
+
chunkB3BZ6MNI_cjs.AssistantDockToggle,
|
|
43066
43814
|
{
|
|
43067
43815
|
label: dock?.toggleLabel ?? DOCK_TOGGLE_LABEL,
|
|
43068
43816
|
testId: DOCK_TOGGLE_TEST_ID
|
|
@@ -43086,7 +43834,7 @@ function RoutedShellTabBar({
|
|
|
43086
43834
|
}
|
|
43087
43835
|
function RoutedShellDock({ dock }) {
|
|
43088
43836
|
const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
|
|
43089
|
-
const { isOpen } =
|
|
43837
|
+
const { isOpen } = chunkB3BZ6MNI_cjs.useAssistantDock();
|
|
43090
43838
|
const [opened, setOpened] = react$1.useState(isOpen);
|
|
43091
43839
|
if (isOpen && !opened) setOpened(true);
|
|
43092
43840
|
if (dock === false || !opened) return null;
|
|
@@ -43171,7 +43919,7 @@ function ShellNavigationProvider({
|
|
|
43171
43919
|
);
|
|
43172
43920
|
}
|
|
43173
43921
|
var ConnectedPresentation = react$1.lazy(
|
|
43174
|
-
() => import('../ConnectedPresentation-
|
|
43922
|
+
() => import('../ConnectedPresentation-SEUUNFUA.cjs').then((m) => ({ default: m.ConnectedPresentation }))
|
|
43175
43923
|
);
|
|
43176
43924
|
function PresentationSlot() {
|
|
43177
43925
|
const session = react.useArbiSessionStore();
|
|
@@ -43344,7 +44092,7 @@ function ConnectedTipBar({
|
|
|
43344
44092
|
className,
|
|
43345
44093
|
revealOnHover = false
|
|
43346
44094
|
}) {
|
|
43347
|
-
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } =
|
|
44095
|
+
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkMI3N3ZOT_cjs.useContextualHints();
|
|
43348
44096
|
const { dismissed, dismissTip } = react.useDismissedTips();
|
|
43349
44097
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
43350
44098
|
const { data: workspaces } = react.useWorkspaces();
|
|
@@ -43355,7 +44103,7 @@ function ConnectedTipBar({
|
|
|
43355
44103
|
workspaceOpen,
|
|
43356
44104
|
...state
|
|
43357
44105
|
};
|
|
43358
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
44106
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkKWHGYHRC_cjs.useTipsPlacement({
|
|
43359
44107
|
registry,
|
|
43360
44108
|
context,
|
|
43361
44109
|
state: situation,
|
|
@@ -43433,7 +44181,7 @@ function useGettingStarted({
|
|
|
43433
44181
|
const { user } = react.useArbiSession();
|
|
43434
44182
|
const userExtId = user?.external_id;
|
|
43435
44183
|
const temporaryOnly = user?.temporary_access_only === true;
|
|
43436
|
-
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } =
|
|
44184
|
+
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkMI3N3ZOT_cjs.useContextualHints();
|
|
43437
44185
|
const { dismissed, loaded: dismissedLoaded, dismissTip } = react.useDismissedTips();
|
|
43438
44186
|
const welcomeJourneyEnabled = react.useFeature("welcomeJourney");
|
|
43439
44187
|
const session = react.useArbiSessionStore();
|
|
@@ -43655,15 +44403,15 @@ function ChromeInstallDialog({
|
|
|
43655
44403
|
|
|
43656
44404
|
Object.defineProperty(exports, "DEFAULT_ASK_SUGGESTIONS", {
|
|
43657
44405
|
enumerable: true,
|
|
43658
|
-
get: function () { return
|
|
44406
|
+
get: function () { return chunkFQRJCAT2_cjs.DEFAULT_ASK_SUGGESTIONS; }
|
|
43659
44407
|
});
|
|
43660
44408
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_LABELS", {
|
|
43661
44409
|
enumerable: true,
|
|
43662
|
-
get: function () { return
|
|
44410
|
+
get: function () { return chunkFQRJCAT2_cjs.DEFAULT_DOCUMENT_VIEWER_LABELS; }
|
|
43663
44411
|
});
|
|
43664
44412
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_TABS", {
|
|
43665
44413
|
enumerable: true,
|
|
43666
|
-
get: function () { return
|
|
44414
|
+
get: function () { return chunkFQRJCAT2_cjs.DEFAULT_DOCUMENT_VIEWER_TABS; }
|
|
43667
44415
|
});
|
|
43668
44416
|
Object.defineProperty(exports, "ConnectedPanelHost", {
|
|
43669
44417
|
enumerable: true,
|
|
@@ -43743,343 +44491,343 @@ Object.defineProperty(exports, "useMemberLookup", {
|
|
|
43743
44491
|
});
|
|
43744
44492
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
43745
44493
|
enumerable: true,
|
|
43746
|
-
get: function () { return
|
|
44494
|
+
get: function () { return chunkQXMPATG6_cjs.ConnectedAssistantDock; }
|
|
43747
44495
|
});
|
|
43748
44496
|
Object.defineProperty(exports, "redlineStats", {
|
|
43749
44497
|
enumerable: true,
|
|
43750
|
-
get: function () { return
|
|
44498
|
+
get: function () { return chunkQXMPATG6_cjs.redlineStats; }
|
|
43751
44499
|
});
|
|
43752
44500
|
Object.defineProperty(exports, "textToArtifact", {
|
|
43753
44501
|
enumerable: true,
|
|
43754
|
-
get: function () { return
|
|
44502
|
+
get: function () { return chunkQXMPATG6_cjs.textToArtifact; }
|
|
43755
44503
|
});
|
|
43756
44504
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
43757
44505
|
enumerable: true,
|
|
43758
|
-
get: function () { return
|
|
44506
|
+
get: function () { return chunkQXMPATG6_cjs.toRedlineMarkdown; }
|
|
43759
44507
|
});
|
|
43760
44508
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
43761
44509
|
enumerable: true,
|
|
43762
|
-
get: function () { return
|
|
44510
|
+
get: function () { return chunkQXMPATG6_cjs.useConnectedAiTask; }
|
|
43763
44511
|
});
|
|
43764
44512
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
43765
44513
|
enumerable: true,
|
|
43766
|
-
get: function () { return
|
|
44514
|
+
get: function () { return chunkQXMPATG6_cjs.useConnectedChat; }
|
|
43767
44515
|
});
|
|
43768
44516
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
43769
44517
|
enumerable: true,
|
|
43770
|
-
get: function () { return
|
|
44518
|
+
get: function () { return chunkQXMPATG6_cjs.useSemanticSearch; }
|
|
43771
44519
|
});
|
|
43772
44520
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
43773
44521
|
enumerable: true,
|
|
43774
|
-
get: function () { return
|
|
44522
|
+
get: function () { return chunkQXMPATG6_cjs.useWorkspaceDocs; }
|
|
43775
44523
|
});
|
|
43776
44524
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
43777
44525
|
enumerable: true,
|
|
43778
|
-
get: function () { return
|
|
44526
|
+
get: function () { return chunkGOQV6NOK_cjs.ConnectedTaskActivityDialog; }
|
|
43779
44527
|
});
|
|
43780
44528
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
43781
44529
|
enumerable: true,
|
|
43782
|
-
get: function () { return
|
|
44530
|
+
get: function () { return chunkGOQV6NOK_cjs.ConnectedTaskComposer; }
|
|
43783
44531
|
});
|
|
43784
44532
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
43785
44533
|
enumerable: true,
|
|
43786
|
-
get: function () { return
|
|
44534
|
+
get: function () { return chunkGOQV6NOK_cjs.ConnectedThreadTaskBar; }
|
|
43787
44535
|
});
|
|
43788
44536
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
43789
44537
|
enumerable: true,
|
|
43790
|
-
get: function () { return
|
|
44538
|
+
get: function () { return chunkGOQV6NOK_cjs.ConnectedWorkflowHistory; }
|
|
43791
44539
|
});
|
|
43792
44540
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
43793
44541
|
enumerable: true,
|
|
43794
|
-
get: function () { return
|
|
44542
|
+
get: function () { return chunkGOQV6NOK_cjs.ConnectedWorkflowRunPage; }
|
|
43795
44543
|
});
|
|
43796
44544
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
43797
44545
|
enumerable: true,
|
|
43798
|
-
get: function () { return
|
|
44546
|
+
get: function () { return chunkGOQV6NOK_cjs.ConnectedWorkflowRunner; }
|
|
43799
44547
|
});
|
|
43800
44548
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
43801
44549
|
enumerable: true,
|
|
43802
|
-
get: function () { return
|
|
44550
|
+
get: function () { return chunkGOQV6NOK_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
43803
44551
|
});
|
|
43804
44552
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
43805
44553
|
enumerable: true,
|
|
43806
|
-
get: function () { return
|
|
44554
|
+
get: function () { return chunkGOQV6NOK_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
43807
44555
|
});
|
|
43808
44556
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
43809
44557
|
enumerable: true,
|
|
43810
|
-
get: function () { return
|
|
44558
|
+
get: function () { return chunkGOQV6NOK_cjs.WorkflowRunThread; }
|
|
43811
44559
|
});
|
|
43812
44560
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
43813
44561
|
enumerable: true,
|
|
43814
|
-
get: function () { return
|
|
44562
|
+
get: function () { return chunkGOQV6NOK_cjs.WorkflowRunWorkspaceChangedError; }
|
|
43815
44563
|
});
|
|
43816
44564
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
43817
44565
|
enumerable: true,
|
|
43818
|
-
get: function () { return
|
|
44566
|
+
get: function () { return chunkGOQV6NOK_cjs.buildProjectSummaries; }
|
|
43819
44567
|
});
|
|
43820
44568
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
43821
44569
|
enumerable: true,
|
|
43822
|
-
get: function () { return
|
|
44570
|
+
get: function () { return chunkGOQV6NOK_cjs.primaryProjectWorkspace; }
|
|
43823
44571
|
});
|
|
43824
44572
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
43825
44573
|
enumerable: true,
|
|
43826
|
-
get: function () { return
|
|
44574
|
+
get: function () { return chunkGOQV6NOK_cjs.useEnsureRequiredLabels; }
|
|
43827
44575
|
});
|
|
43828
44576
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
43829
44577
|
enumerable: true,
|
|
43830
|
-
get: function () { return
|
|
44578
|
+
get: function () { return chunkGOQV6NOK_cjs.useProjectSummaries; }
|
|
43831
44579
|
});
|
|
43832
44580
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
43833
44581
|
enumerable: true,
|
|
43834
|
-
get: function () { return
|
|
44582
|
+
get: function () { return chunkGOQV6NOK_cjs.useProjectSummary; }
|
|
43835
44583
|
});
|
|
43836
44584
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
43837
44585
|
enumerable: true,
|
|
43838
|
-
get: function () { return
|
|
44586
|
+
get: function () { return chunkGOQV6NOK_cjs.useRenderTaskPerson; }
|
|
43839
44587
|
});
|
|
43840
44588
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
43841
44589
|
enumerable: true,
|
|
43842
|
-
get: function () { return
|
|
44590
|
+
get: function () { return chunkGOQV6NOK_cjs.useRequiredLabels; }
|
|
43843
44591
|
});
|
|
43844
44592
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
43845
44593
|
enumerable: true,
|
|
43846
|
-
get: function () { return
|
|
44594
|
+
get: function () { return chunkGOQV6NOK_cjs.useTaskPeople; }
|
|
43847
44595
|
});
|
|
43848
44596
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
43849
44597
|
enumerable: true,
|
|
43850
|
-
get: function () { return
|
|
44598
|
+
get: function () { return chunkGOQV6NOK_cjs.useWorkflowsPageState; }
|
|
43851
44599
|
});
|
|
43852
44600
|
Object.defineProperty(exports, "workflowRunView", {
|
|
43853
44601
|
enumerable: true,
|
|
43854
|
-
get: function () { return
|
|
44602
|
+
get: function () { return chunkGOQV6NOK_cjs.workflowRunView; }
|
|
43855
44603
|
});
|
|
43856
44604
|
Object.defineProperty(exports, "AgentSteps", {
|
|
43857
44605
|
enumerable: true,
|
|
43858
|
-
get: function () { return
|
|
44606
|
+
get: function () { return chunkMI3N3ZOT_cjs.AgentSteps; }
|
|
43859
44607
|
});
|
|
43860
44608
|
Object.defineProperty(exports, "AnswerTable", {
|
|
43861
44609
|
enumerable: true,
|
|
43862
|
-
get: function () { return
|
|
44610
|
+
get: function () { return chunkMI3N3ZOT_cjs.AnswerTable; }
|
|
43863
44611
|
});
|
|
43864
44612
|
Object.defineProperty(exports, "ArbiChat", {
|
|
43865
44613
|
enumerable: true,
|
|
43866
|
-
get: function () { return
|
|
44614
|
+
get: function () { return chunkMI3N3ZOT_cjs.ArbiChat; }
|
|
43867
44615
|
});
|
|
43868
44616
|
Object.defineProperty(exports, "AskAgainContext", {
|
|
43869
44617
|
enumerable: true,
|
|
43870
|
-
get: function () { return
|
|
44618
|
+
get: function () { return chunkMI3N3ZOT_cjs.AskAgainContext; }
|
|
43871
44619
|
});
|
|
43872
44620
|
Object.defineProperty(exports, "ConnectedBranchControls", {
|
|
43873
44621
|
enumerable: true,
|
|
43874
|
-
get: function () { return
|
|
44622
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedBranchControls; }
|
|
43875
44623
|
});
|
|
43876
44624
|
Object.defineProperty(exports, "ConnectedCitationRenderer", {
|
|
43877
44625
|
enumerable: true,
|
|
43878
|
-
get: function () { return
|
|
44626
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedCitationRenderer; }
|
|
43879
44627
|
});
|
|
43880
44628
|
Object.defineProperty(exports, "ConnectedCompactConversation", {
|
|
43881
44629
|
enumerable: true,
|
|
43882
|
-
get: function () { return
|
|
44630
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedCompactConversation; }
|
|
43883
44631
|
});
|
|
43884
44632
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
43885
44633
|
enumerable: true,
|
|
43886
|
-
get: function () { return
|
|
44634
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedCompactLogin; }
|
|
43887
44635
|
});
|
|
43888
44636
|
Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
|
|
43889
44637
|
enumerable: true,
|
|
43890
|
-
get: function () { return
|
|
44638
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedConversationDocumentPicker; }
|
|
43891
44639
|
});
|
|
43892
44640
|
Object.defineProperty(exports, "ConnectedDangerZone", {
|
|
43893
44641
|
enumerable: true,
|
|
43894
|
-
get: function () { return
|
|
44642
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedDangerZone; }
|
|
43895
44643
|
});
|
|
43896
44644
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
43897
44645
|
enumerable: true,
|
|
43898
|
-
get: function () { return
|
|
44646
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedEmbeddedChat; }
|
|
43899
44647
|
});
|
|
43900
44648
|
Object.defineProperty(exports, "ConnectedForgotPassword", {
|
|
43901
44649
|
enumerable: true,
|
|
43902
|
-
get: function () { return
|
|
44650
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedForgotPassword; }
|
|
43903
44651
|
});
|
|
43904
44652
|
Object.defineProperty(exports, "ConnectedIdentityVerification", {
|
|
43905
44653
|
enumerable: true,
|
|
43906
|
-
get: function () { return
|
|
44654
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedIdentityVerification; }
|
|
43907
44655
|
});
|
|
43908
44656
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
43909
44657
|
enumerable: true,
|
|
43910
|
-
get: function () { return
|
|
44658
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedLoginPage; }
|
|
43911
44659
|
});
|
|
43912
44660
|
Object.defineProperty(exports, "ConnectedLogoutDialog", {
|
|
43913
44661
|
enumerable: true,
|
|
43914
|
-
get: function () { return
|
|
44662
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedLogoutDialog; }
|
|
43915
44663
|
});
|
|
43916
44664
|
Object.defineProperty(exports, "ConnectedMessage", {
|
|
43917
44665
|
enumerable: true,
|
|
43918
|
-
get: function () { return
|
|
44666
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedMessage; }
|
|
43919
44667
|
});
|
|
43920
44668
|
Object.defineProperty(exports, "ConnectedMessageArea", {
|
|
43921
44669
|
enumerable: true,
|
|
43922
|
-
get: function () { return
|
|
44670
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedMessageArea; }
|
|
43923
44671
|
});
|
|
43924
44672
|
Object.defineProperty(exports, "ConnectedMessageList", {
|
|
43925
44673
|
enumerable: true,
|
|
43926
|
-
get: function () { return
|
|
44674
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedMessageList; }
|
|
43927
44675
|
});
|
|
43928
44676
|
Object.defineProperty(exports, "ConnectedModelSelector", {
|
|
43929
44677
|
enumerable: true,
|
|
43930
|
-
get: function () { return
|
|
44678
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedModelSelector; }
|
|
43931
44679
|
});
|
|
43932
44680
|
Object.defineProperty(exports, "ConnectedNotificationPreferences", {
|
|
43933
44681
|
enumerable: true,
|
|
43934
|
-
get: function () { return
|
|
44682
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedNotificationPreferences; }
|
|
43935
44683
|
});
|
|
43936
44684
|
Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
|
|
43937
44685
|
enumerable: true,
|
|
43938
|
-
get: function () { return
|
|
44686
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedPasswordChangeDialog; }
|
|
43939
44687
|
});
|
|
43940
44688
|
Object.defineProperty(exports, "ConnectedProfileCard", {
|
|
43941
44689
|
enumerable: true,
|
|
43942
|
-
get: function () { return
|
|
44690
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedProfileCard; }
|
|
43943
44691
|
});
|
|
43944
44692
|
Object.defineProperty(exports, "ConnectedSecuritySection", {
|
|
43945
44693
|
enumerable: true,
|
|
43946
|
-
get: function () { return
|
|
44694
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedSecuritySection; }
|
|
43947
44695
|
});
|
|
43948
44696
|
Object.defineProperty(exports, "ConnectedSessionsRow", {
|
|
43949
44697
|
enumerable: true,
|
|
43950
|
-
get: function () { return
|
|
44698
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedSessionsRow; }
|
|
43951
44699
|
});
|
|
43952
44700
|
Object.defineProperty(exports, "ConnectedThreadsPreview", {
|
|
43953
44701
|
enumerable: true,
|
|
43954
|
-
get: function () { return
|
|
44702
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConnectedThreadsPreview; }
|
|
43955
44703
|
});
|
|
43956
44704
|
Object.defineProperty(exports, "ConversationComposer", {
|
|
43957
44705
|
enumerable: true,
|
|
43958
|
-
get: function () { return
|
|
44706
|
+
get: function () { return chunkMI3N3ZOT_cjs.ConversationComposer; }
|
|
43959
44707
|
});
|
|
43960
44708
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
43961
44709
|
enumerable: true,
|
|
43962
|
-
get: function () { return
|
|
44710
|
+
get: function () { return chunkMI3N3ZOT_cjs.EmbeddedChatPanel; }
|
|
43963
44711
|
});
|
|
43964
44712
|
Object.defineProperty(exports, "MessageDetailsModal", {
|
|
43965
44713
|
enumerable: true,
|
|
43966
|
-
get: function () { return
|
|
44714
|
+
get: function () { return chunkMI3N3ZOT_cjs.MessageDetailsModal; }
|
|
43967
44715
|
});
|
|
43968
44716
|
Object.defineProperty(exports, "MessageLiveSeconds", {
|
|
43969
44717
|
enumerable: true,
|
|
43970
|
-
get: function () { return
|
|
44718
|
+
get: function () { return chunkMI3N3ZOT_cjs.MessageLiveSeconds; }
|
|
43971
44719
|
});
|
|
43972
44720
|
Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
|
|
43973
44721
|
enumerable: true,
|
|
43974
|
-
get: function () { return
|
|
44722
|
+
get: function () { return chunkMI3N3ZOT_cjs.PENDING_RECOVERY_KEY; }
|
|
43975
44723
|
});
|
|
43976
44724
|
Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
|
|
43977
44725
|
enumerable: true,
|
|
43978
|
-
get: function () { return
|
|
44726
|
+
get: function () { return chunkMI3N3ZOT_cjs.PREMIUM_TIER_TAG; }
|
|
43979
44727
|
});
|
|
43980
44728
|
Object.defineProperty(exports, "RunningSubagents", {
|
|
43981
44729
|
enumerable: true,
|
|
43982
|
-
get: function () { return
|
|
44730
|
+
get: function () { return chunkMI3N3ZOT_cjs.RunningSubagents; }
|
|
43983
44731
|
});
|
|
43984
44732
|
Object.defineProperty(exports, "STANDARD_TIER_TAG", {
|
|
43985
44733
|
enumerable: true,
|
|
43986
|
-
get: function () { return
|
|
44734
|
+
get: function () { return chunkMI3N3ZOT_cjs.STANDARD_TIER_TAG; }
|
|
43987
44735
|
});
|
|
43988
44736
|
Object.defineProperty(exports, "WorkflowStepMessage", {
|
|
43989
44737
|
enumerable: true,
|
|
43990
|
-
get: function () { return
|
|
44738
|
+
get: function () { return chunkMI3N3ZOT_cjs.WorkflowStepMessage; }
|
|
43991
44739
|
});
|
|
43992
44740
|
Object.defineProperty(exports, "backUpOnSignup", {
|
|
43993
44741
|
enumerable: true,
|
|
43994
|
-
get: function () { return
|
|
44742
|
+
get: function () { return chunkMI3N3ZOT_cjs.backUpOnSignup; }
|
|
43995
44743
|
});
|
|
43996
44744
|
Object.defineProperty(exports, "createRemoteControl", {
|
|
43997
44745
|
enumerable: true,
|
|
43998
|
-
get: function () { return
|
|
44746
|
+
get: function () { return chunkMI3N3ZOT_cjs.createRemoteControl; }
|
|
43999
44747
|
});
|
|
44000
44748
|
Object.defineProperty(exports, "defaultHost", {
|
|
44001
44749
|
enumerable: true,
|
|
44002
|
-
get: function () { return
|
|
44750
|
+
get: function () { return chunkMI3N3ZOT_cjs.defaultHost; }
|
|
44003
44751
|
});
|
|
44004
44752
|
Object.defineProperty(exports, "renderConnectedUser", {
|
|
44005
44753
|
enumerable: true,
|
|
44006
|
-
get: function () { return
|
|
44754
|
+
get: function () { return chunkMI3N3ZOT_cjs.renderConnectedUser; }
|
|
44007
44755
|
});
|
|
44008
44756
|
Object.defineProperty(exports, "renderSessionStatusIcon", {
|
|
44009
44757
|
enumerable: true,
|
|
44010
|
-
get: function () { return
|
|
44758
|
+
get: function () { return chunkMI3N3ZOT_cjs.renderSessionStatusIcon; }
|
|
44011
44759
|
});
|
|
44012
44760
|
Object.defineProperty(exports, "resolveSsoName", {
|
|
44013
44761
|
enumerable: true,
|
|
44014
|
-
get: function () { return
|
|
44762
|
+
get: function () { return chunkMI3N3ZOT_cjs.resolveSsoName; }
|
|
44015
44763
|
});
|
|
44016
44764
|
Object.defineProperty(exports, "useAuthPages", {
|
|
44017
44765
|
enumerable: true,
|
|
44018
|
-
get: function () { return
|
|
44766
|
+
get: function () { return chunkMI3N3ZOT_cjs.useAuthPages; }
|
|
44019
44767
|
});
|
|
44020
44768
|
Object.defineProperty(exports, "useContextualHints", {
|
|
44021
44769
|
enumerable: true,
|
|
44022
|
-
get: function () { return
|
|
44770
|
+
get: function () { return chunkMI3N3ZOT_cjs.useContextualHints; }
|
|
44023
44771
|
});
|
|
44024
44772
|
Object.defineProperty(exports, "useModelPicker", {
|
|
44025
44773
|
enumerable: true,
|
|
44026
|
-
get: function () { return
|
|
44774
|
+
get: function () { return chunkMI3N3ZOT_cjs.useModelPicker; }
|
|
44027
44775
|
});
|
|
44028
44776
|
Object.defineProperty(exports, "useOpenChunk", {
|
|
44029
44777
|
enumerable: true,
|
|
44030
|
-
get: function () { return
|
|
44778
|
+
get: function () { return chunkMI3N3ZOT_cjs.useOpenChunk; }
|
|
44031
44779
|
});
|
|
44032
44780
|
Object.defineProperty(exports, "useOpenWorkspaceIcon", {
|
|
44033
44781
|
enumerable: true,
|
|
44034
|
-
get: function () { return
|
|
44782
|
+
get: function () { return chunkMI3N3ZOT_cjs.useOpenWorkspaceIcon; }
|
|
44035
44783
|
});
|
|
44036
44784
|
Object.defineProperty(exports, "useRemoteControlActions", {
|
|
44037
44785
|
enumerable: true,
|
|
44038
|
-
get: function () { return
|
|
44786
|
+
get: function () { return chunkMI3N3ZOT_cjs.useRemoteControlActions; }
|
|
44039
44787
|
});
|
|
44040
44788
|
Object.defineProperty(exports, "useRemoteControlHandlers", {
|
|
44041
44789
|
enumerable: true,
|
|
44042
|
-
get: function () { return
|
|
44790
|
+
get: function () { return chunkMI3N3ZOT_cjs.useRemoteControlHandlers; }
|
|
44043
44791
|
});
|
|
44044
44792
|
Object.defineProperty(exports, "useSsoSignIn", {
|
|
44045
44793
|
enumerable: true,
|
|
44046
|
-
get: function () { return
|
|
44794
|
+
get: function () { return chunkMI3N3ZOT_cjs.useSsoSignIn; }
|
|
44047
44795
|
});
|
|
44048
44796
|
Object.defineProperty(exports, "useWorkspaceDocTitles", {
|
|
44049
44797
|
enumerable: true,
|
|
44050
|
-
get: function () { return
|
|
44798
|
+
get: function () { return chunkMI3N3ZOT_cjs.useWorkspaceDocTitles; }
|
|
44051
44799
|
});
|
|
44052
44800
|
Object.defineProperty(exports, "parseTypedSkill", {
|
|
44053
44801
|
enumerable: true,
|
|
44054
|
-
get: function () { return
|
|
44802
|
+
get: function () { return chunk2Z25MUAY_cjs.parseTypedSkill; }
|
|
44055
44803
|
});
|
|
44056
44804
|
Object.defineProperty(exports, "useSlashItems", {
|
|
44057
44805
|
enumerable: true,
|
|
44058
|
-
get: function () { return
|
|
44806
|
+
get: function () { return chunk2Z25MUAY_cjs.useSlashItems; }
|
|
44059
44807
|
});
|
|
44060
44808
|
Object.defineProperty(exports, "useSlashMenuItems", {
|
|
44061
44809
|
enumerable: true,
|
|
44062
|
-
get: function () { return
|
|
44810
|
+
get: function () { return chunk2Z25MUAY_cjs.useSlashMenuItems; }
|
|
44063
44811
|
});
|
|
44064
44812
|
Object.defineProperty(exports, "useSlashSkillWorkflows", {
|
|
44065
44813
|
enumerable: true,
|
|
44066
|
-
get: function () { return
|
|
44814
|
+
get: function () { return chunk2Z25MUAY_cjs.useSlashSkillWorkflows; }
|
|
44067
44815
|
});
|
|
44068
44816
|
Object.defineProperty(exports, "ConnectedWorkflowStart", {
|
|
44069
44817
|
enumerable: true,
|
|
44070
|
-
get: function () { return
|
|
44818
|
+
get: function () { return chunkXCW6OY7E_cjs.ConnectedWorkflowStart; }
|
|
44071
44819
|
});
|
|
44072
44820
|
Object.defineProperty(exports, "PROMPT_BINDINGS", {
|
|
44073
44821
|
enumerable: true,
|
|
44074
|
-
get: function () { return
|
|
44822
|
+
get: function () { return chunkXCW6OY7E_cjs.PROMPT_BINDINGS; }
|
|
44075
44823
|
});
|
|
44076
44824
|
Object.defineProperty(exports, "useLaunchWorkflow", {
|
|
44077
44825
|
enumerable: true,
|
|
44078
|
-
get: function () { return
|
|
44826
|
+
get: function () { return chunkXCW6OY7E_cjs.useLaunchWorkflow; }
|
|
44079
44827
|
});
|
|
44080
44828
|
Object.defineProperty(exports, "useConnectedThreadActivity", {
|
|
44081
44829
|
enumerable: true,
|
|
44082
|
-
get: function () { return
|
|
44830
|
+
get: function () { return chunkMXGXKUSW_cjs.useConnectedThreadActivity; }
|
|
44083
44831
|
});
|
|
44084
44832
|
Object.defineProperty(exports, "DocumentUser", {
|
|
44085
44833
|
enumerable: true,
|
|
@@ -44087,23 +44835,23 @@ Object.defineProperty(exports, "DocumentUser", {
|
|
|
44087
44835
|
});
|
|
44088
44836
|
Object.defineProperty(exports, "useCanBrowseSkills", {
|
|
44089
44837
|
enumerable: true,
|
|
44090
|
-
get: function () { return
|
|
44838
|
+
get: function () { return chunkHBUHOCWF_cjs.useCanBrowseSkills; }
|
|
44091
44839
|
});
|
|
44092
44840
|
Object.defineProperty(exports, "useIsExternalAccount", {
|
|
44093
44841
|
enumerable: true,
|
|
44094
|
-
get: function () { return
|
|
44842
|
+
get: function () { return chunkHBUHOCWF_cjs.useIsExternalAccount; }
|
|
44095
44843
|
});
|
|
44096
44844
|
Object.defineProperty(exports, "useSkillsEnabled", {
|
|
44097
44845
|
enumerable: true,
|
|
44098
|
-
get: function () { return
|
|
44846
|
+
get: function () { return chunkHBUHOCWF_cjs.useSkillsEnabled; }
|
|
44099
44847
|
});
|
|
44100
44848
|
Object.defineProperty(exports, "useWorkflowDefinitions", {
|
|
44101
44849
|
enumerable: true,
|
|
44102
|
-
get: function () { return
|
|
44850
|
+
get: function () { return chunkHBUHOCWF_cjs.useWorkflowDefinitions; }
|
|
44103
44851
|
});
|
|
44104
44852
|
Object.defineProperty(exports, "useWorkflowTasks", {
|
|
44105
44853
|
enumerable: true,
|
|
44106
|
-
get: function () { return
|
|
44854
|
+
get: function () { return chunkHBUHOCWF_cjs.useWorkflowTasks; }
|
|
44107
44855
|
});
|
|
44108
44856
|
Object.defineProperty(exports, "EMBEDDED_SELECTED_DOCS_KEY", {
|
|
44109
44857
|
enumerable: true,
|
|
@@ -44171,31 +44919,31 @@ Object.defineProperty(exports, "usePendingFolders", {
|
|
|
44171
44919
|
});
|
|
44172
44920
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
44173
44921
|
enumerable: true,
|
|
44174
|
-
get: function () { return
|
|
44922
|
+
get: function () { return chunkERRXU2HL_cjs.ConnectedMarkdown; }
|
|
44175
44923
|
});
|
|
44176
44924
|
Object.defineProperty(exports, "DocumentWorkspaceContext", {
|
|
44177
44925
|
enumerable: true,
|
|
44178
|
-
get: function () { return
|
|
44926
|
+
get: function () { return chunkERRXU2HL_cjs.DocumentWorkspaceContext; }
|
|
44179
44927
|
});
|
|
44180
44928
|
Object.defineProperty(exports, "ExternalLink", {
|
|
44181
44929
|
enumerable: true,
|
|
44182
|
-
get: function () { return
|
|
44930
|
+
get: function () { return chunkERRXU2HL_cjs.ExternalLink; }
|
|
44183
44931
|
});
|
|
44184
44932
|
Object.defineProperty(exports, "InternalDocLink", {
|
|
44185
44933
|
enumerable: true,
|
|
44186
|
-
get: function () { return
|
|
44934
|
+
get: function () { return chunkERRXU2HL_cjs.InternalDocLink; }
|
|
44187
44935
|
});
|
|
44188
44936
|
Object.defineProperty(exports, "MermaidDiagram", {
|
|
44189
44937
|
enumerable: true,
|
|
44190
|
-
get: function () { return
|
|
44938
|
+
get: function () { return chunkERRXU2HL_cjs.MermaidDiagram; }
|
|
44191
44939
|
});
|
|
44192
44940
|
Object.defineProperty(exports, "WorkspaceDocumentReference", {
|
|
44193
44941
|
enumerable: true,
|
|
44194
|
-
get: function () { return
|
|
44942
|
+
get: function () { return chunkERRXU2HL_cjs.WorkspaceDocumentReference; }
|
|
44195
44943
|
});
|
|
44196
44944
|
Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
44197
44945
|
enumerable: true,
|
|
44198
|
-
get: function () { return
|
|
44946
|
+
get: function () { return chunkERRXU2HL_cjs.useDocumentWorkspace; }
|
|
44199
44947
|
});
|
|
44200
44948
|
Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
|
|
44201
44949
|
enumerable: true,
|
|
@@ -44263,23 +45011,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
|
|
|
44263
45011
|
});
|
|
44264
45012
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
44265
45013
|
enumerable: true,
|
|
44266
|
-
get: function () { return
|
|
45014
|
+
get: function () { return chunkTZYB22FM_cjs.ConnectedWorkflowsTable; }
|
|
44267
45015
|
});
|
|
44268
45016
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
44269
45017
|
enumerable: true,
|
|
44270
|
-
get: function () { return
|
|
45018
|
+
get: function () { return chunkTZYB22FM_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
44271
45019
|
});
|
|
44272
45020
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
44273
45021
|
enumerable: true,
|
|
44274
|
-
get: function () { return
|
|
45022
|
+
get: function () { return chunkTZYB22FM_cjs.useConnectedWorkspaceRole; }
|
|
44275
45023
|
});
|
|
44276
45024
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
44277
45025
|
enumerable: true,
|
|
44278
|
-
get: function () { return
|
|
45026
|
+
get: function () { return chunkTZYB22FM_cjs.useDocxCommentTarget; }
|
|
44279
45027
|
});
|
|
44280
45028
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
44281
45029
|
enumerable: true,
|
|
44282
|
-
get: function () { return
|
|
45030
|
+
get: function () { return chunkTZYB22FM_cjs.useNativeDocxSupport; }
|
|
44283
45031
|
});
|
|
44284
45032
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
44285
45033
|
enumerable: true,
|
|
@@ -44287,19 +45035,19 @@ Object.defineProperty(exports, "useOpenWorkflow", {
|
|
|
44287
45035
|
});
|
|
44288
45036
|
Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
|
|
44289
45037
|
enumerable: true,
|
|
44290
|
-
get: function () { return
|
|
45038
|
+
get: function () { return chunkDBN6GBRQ_cjs.ConnectedWorkflowDocumentsField; }
|
|
44291
45039
|
});
|
|
44292
45040
|
Object.defineProperty(exports, "ConnectedWorkflowLauncher", {
|
|
44293
45041
|
enumerable: true,
|
|
44294
|
-
get: function () { return
|
|
45042
|
+
get: function () { return chunkDBN6GBRQ_cjs.ConnectedWorkflowLauncher; }
|
|
44295
45043
|
});
|
|
44296
45044
|
Object.defineProperty(exports, "toWorkflowFieldDocument", {
|
|
44297
45045
|
enumerable: true,
|
|
44298
|
-
get: function () { return
|
|
45046
|
+
get: function () { return chunkDBN6GBRQ_cjs.toWorkflowFieldDocument; }
|
|
44299
45047
|
});
|
|
44300
45048
|
Object.defineProperty(exports, "useConnectedWorkflowScopeSource", {
|
|
44301
45049
|
enumerable: true,
|
|
44302
|
-
get: function () { return
|
|
45050
|
+
get: function () { return chunkDBN6GBRQ_cjs.useConnectedWorkflowScopeSource; }
|
|
44303
45051
|
});
|
|
44304
45052
|
Object.defineProperty(exports, "useMeetingThreadMessages", {
|
|
44305
45053
|
enumerable: true,
|
|
@@ -44369,6 +45117,7 @@ exports.AddAddonDialog = AddAddonDialog;
|
|
|
44369
45117
|
exports.AddFromAccountsButton = AddFromAccountsButton;
|
|
44370
45118
|
exports.AgentBarShell = AgentBarShell;
|
|
44371
45119
|
exports.AgentControlBar = AgentControlBar;
|
|
45120
|
+
exports.AssistantStatusPanel = AssistantStatusPanel;
|
|
44372
45121
|
exports.BACKFILL_OPTIONS = BACKFILL_OPTIONS;
|
|
44373
45122
|
exports.BUILTIN_GLOBAL_DIALOGS = BUILTIN_GLOBAL_DIALOGS;
|
|
44374
45123
|
exports.BULK_REPROCESS_LIMIT = BULK_REPROCESS_LIMIT;
|
|
@@ -44397,6 +45146,7 @@ exports.ConnectedAppShell = ConnectedAppShell;
|
|
|
44397
45146
|
exports.ConnectedAppsSettings = ConnectedAppsSettings;
|
|
44398
45147
|
exports.ConnectedArchiveWorkspaceButton = ConnectedArchiveWorkspaceButton;
|
|
44399
45148
|
exports.ConnectedAskField = ConnectedAskField;
|
|
45149
|
+
exports.ConnectedAssistantPage = ConnectedAssistantPage;
|
|
44400
45150
|
exports.ConnectedAuthorizeAgent = ConnectedAuthorizeAgent;
|
|
44401
45151
|
exports.ConnectedBulkTagCrumbs = ConnectedBulkTagCrumbs;
|
|
44402
45152
|
exports.ConnectedBulkTagEditor = ConnectedBulkTagEditor;
|
|
@@ -44543,6 +45293,8 @@ exports.ConversationSendButton = ConversationSendButton;
|
|
|
44543
45293
|
exports.ConversationStatusCell = ConversationStatusCell;
|
|
44544
45294
|
exports.DEFAULT_AGENTS_PAGE_SECTIONS = DEFAULT_AGENTS_PAGE_SECTIONS;
|
|
44545
45295
|
exports.DEFAULT_AGENT_CHAT_CARD_LABELS = DEFAULT_AGENT_CHAT_CARD_LABELS;
|
|
45296
|
+
exports.DEFAULT_ASSISTANT_LABELS = DEFAULT_ASSISTANT_LABELS;
|
|
45297
|
+
exports.DEFAULT_ASSISTANT_STATUS_LABELS = DEFAULT_ASSISTANT_STATUS_LABELS;
|
|
44546
45298
|
exports.DEFAULT_CONNECTED_AGENTS_PAGE_LABELS = DEFAULT_CONNECTED_AGENTS_PAGE_LABELS;
|
|
44547
45299
|
exports.DEFAULT_CONNECTED_SEARCH_PAGE_LABELS = DEFAULT_CONNECTED_SEARCH_PAGE_LABELS;
|
|
44548
45300
|
exports.DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS = DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS;
|