@arbidocs/blocks 0.5.29 → 0.5.30
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-FDGMFTS5.js → ConnectedCallDock-AWSOPETT.js} +12 -12
- package/dist/{ConnectedCallDock-FDGMFTS5.js.map → ConnectedCallDock-AWSOPETT.js.map} +1 -1
- package/dist/{ConnectedCallDock-ZIX2ZJCD.cjs → ConnectedCallDock-GM4KOBBS.cjs} +13 -13
- package/dist/{ConnectedCallDock-ZIX2ZJCD.cjs.map → ConnectedCallDock-GM4KOBBS.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-VJIHEJ4X.js → ConnectedCallRoom-JMB74KTV.js} +12 -12
- package/dist/{ConnectedCallRoom-VJIHEJ4X.js.map → ConnectedCallRoom-JMB74KTV.js.map} +1 -1
- package/dist/{ConnectedCallRoom-WZQVXDDW.cjs → ConnectedCallRoom-QE2MMJ6M.cjs} +13 -13
- package/dist/{ConnectedCallRoom-WZQVXDDW.cjs.map → ConnectedCallRoom-QE2MMJ6M.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-KSLSDAAP.cjs → ConnectedNativeDocxComparison-P7IHRMCS.cjs} +17 -17
- package/dist/{ConnectedNativeDocxComparison-KSLSDAAP.cjs.map → ConnectedNativeDocxComparison-P7IHRMCS.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-7ZC7BRY4.js → ConnectedNativeDocxComparison-T6JRDIMR.js} +16 -16
- package/dist/{ConnectedNativeDocxComparison-7ZC7BRY4.js.map → ConnectedNativeDocxComparison-T6JRDIMR.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-5E64Q7FX.cjs → ConnectedNativeDocxEditor-HBV5EJ63.cjs} +17 -17
- package/dist/{ConnectedNativeDocxEditor-5E64Q7FX.cjs.map → ConnectedNativeDocxEditor-HBV5EJ63.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-B5KDDPRY.js → ConnectedNativeDocxEditor-X6YNPGRL.js} +15 -15
- package/dist/{ConnectedNativeDocxEditor-B5KDDPRY.js.map → ConnectedNativeDocxEditor-X6YNPGRL.js.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-RLU5VYGO.cjs → ConnectedStreamedWordArtifact-GYJEQO4M.cjs} +17 -17
- package/dist/ConnectedStreamedWordArtifact-GYJEQO4M.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-YCQSIGXL.js → ConnectedStreamedWordArtifact-X7R6PBRT.js} +16 -16
- package/dist/ConnectedStreamedWordArtifact-X7R6PBRT.js.map +1 -0
- package/dist/{WorkspaceTableView-BUWRSR42.cjs → WorkspaceTableView-FTQZJDRB.cjs} +10 -10
- package/dist/{WorkspaceTableView-BUWRSR42.cjs.map → WorkspaceTableView-FTQZJDRB.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-62PJLX7V.js → WorkspaceTableView-NWRVACJL.js} +8 -8
- package/dist/{WorkspaceTableView-62PJLX7V.js.map → WorkspaceTableView-NWRVACJL.js.map} +1 -1
- package/dist/agents/index.cjs +373 -373
- package/dist/agents/index.js +11 -11
- package/dist/calls/index.cjs +39 -39
- package/dist/calls/index.js +7 -7
- package/dist/chat/index.cjs +167 -167
- package/dist/chat/index.js +9 -9
- package/dist/{chunk-CPJ2B3QQ.cjs → chunk-24Y36OK6.cjs} +9 -9
- package/dist/{chunk-CPJ2B3QQ.cjs.map → chunk-24Y36OK6.cjs.map} +1 -1
- package/dist/{chunk-XDFH6ONO.cjs → chunk-2DO5YPDH.cjs} +16 -16
- package/dist/{chunk-XDFH6ONO.cjs.map → chunk-2DO5YPDH.cjs.map} +1 -1
- package/dist/{chunk-GJI5PEGR.js → chunk-2JARBDEK.js} +4 -4
- package/dist/{chunk-GJI5PEGR.js.map → chunk-2JARBDEK.js.map} +1 -1
- package/dist/{chunk-HT62K3UO.cjs → chunk-3YVWAYXU.cjs} +4 -4
- package/dist/{chunk-HT62K3UO.cjs.map → chunk-3YVWAYXU.cjs.map} +1 -1
- package/dist/{chunk-EJSVRT3G.js → chunk-5VSMJ674.js} +56 -66
- package/dist/chunk-5VSMJ674.js.map +1 -0
- package/dist/{chunk-XGUN44A4.js → chunk-5XG7YD4V.js} +8 -8
- package/dist/{chunk-XGUN44A4.js.map → chunk-5XG7YD4V.js.map} +1 -1
- package/dist/{chunk-EVV32AXB.cjs → chunk-62G4HK7C.cjs} +6 -6
- package/dist/{chunk-EVV32AXB.cjs.map → chunk-62G4HK7C.cjs.map} +1 -1
- package/dist/{chunk-7U2DNPMZ.cjs → chunk-63FOCF46.cjs} +12 -12
- package/dist/{chunk-7U2DNPMZ.cjs.map → chunk-63FOCF46.cjs.map} +1 -1
- package/dist/{chunk-NIS5TLOM.cjs → chunk-6LVVW6VB.cjs} +4 -4
- package/dist/{chunk-NIS5TLOM.cjs.map → chunk-6LVVW6VB.cjs.map} +1 -1
- package/dist/{chunk-JS7KJRKG.js → chunk-75Z5AUMM.js} +3 -3
- package/dist/{chunk-JS7KJRKG.js.map → chunk-75Z5AUMM.js.map} +1 -1
- package/dist/{chunk-CRUCMRFC.cjs → chunk-76G2DAOF.cjs} +18 -18
- package/dist/{chunk-CRUCMRFC.cjs.map → chunk-76G2DAOF.cjs.map} +1 -1
- package/dist/{chunk-AHYSHKPL.cjs → chunk-7THRBD42.cjs} +57 -16
- package/dist/chunk-7THRBD42.cjs.map +1 -0
- package/dist/{chunk-SBHWRN2D.js → chunk-BBSXBABG.js} +3 -3
- package/dist/{chunk-SBHWRN2D.js.map → chunk-BBSXBABG.js.map} +1 -1
- package/dist/{chunk-WG2VDUEI.cjs → chunk-BVMPP574.cjs} +4 -4
- package/dist/{chunk-WG2VDUEI.cjs.map → chunk-BVMPP574.cjs.map} +1 -1
- package/dist/{chunk-3IRIITUW.cjs → chunk-BVXI7W7Z.cjs} +9 -9
- package/dist/{chunk-3IRIITUW.cjs.map → chunk-BVXI7W7Z.cjs.map} +1 -1
- package/dist/{chunk-EVYUYVH2.cjs → chunk-C5J74Y6N.cjs} +5 -5
- package/dist/{chunk-EVYUYVH2.cjs.map → chunk-C5J74Y6N.cjs.map} +1 -1
- package/dist/{chunk-WY626DNG.cjs → chunk-CGUDTSGI.cjs} +10 -10
- package/dist/{chunk-WY626DNG.cjs.map → chunk-CGUDTSGI.cjs.map} +1 -1
- package/dist/{chunk-WBCGVEJX.js → chunk-CMTAOVUX.js} +3 -3
- package/dist/{chunk-WBCGVEJX.js.map → chunk-CMTAOVUX.js.map} +1 -1
- package/dist/{chunk-OGADWN5L.js → chunk-DHTBHALC.js} +4 -4
- package/dist/{chunk-OGADWN5L.js.map → chunk-DHTBHALC.js.map} +1 -1
- package/dist/{chunk-UXIMEFEF.js → chunk-DWERY33L.js} +8 -8
- package/dist/{chunk-UXIMEFEF.js.map → chunk-DWERY33L.js.map} +1 -1
- package/dist/{chunk-A634VUNB.js → chunk-EPNJOP2M.js} +5 -5
- package/dist/{chunk-A634VUNB.js.map → chunk-EPNJOP2M.js.map} +1 -1
- package/dist/{chunk-4RMI6D64.cjs → chunk-EZLZ3MDU.cjs} +3 -3
- package/dist/{chunk-4RMI6D64.cjs.map → chunk-EZLZ3MDU.cjs.map} +1 -1
- package/dist/{chunk-3OKBEVP3.js → chunk-FAILAFD6.js} +3 -3
- package/dist/{chunk-3OKBEVP3.js.map → chunk-FAILAFD6.js.map} +1 -1
- package/dist/{chunk-OZSAQJO4.js → chunk-FODIZWMX.js} +3 -3
- package/dist/{chunk-OZSAQJO4.js.map → chunk-FODIZWMX.js.map} +1 -1
- package/dist/{chunk-V2GEULRG.cjs → chunk-GK35JEWW.cjs} +4 -4
- package/dist/{chunk-V2GEULRG.cjs.map → chunk-GK35JEWW.cjs.map} +1 -1
- package/dist/{chunk-52GITM4V.cjs → chunk-GNWQS6S4.cjs} +144 -154
- package/dist/{chunk-EJSVRT3G.js.map → chunk-GNWQS6S4.cjs.map} +1 -1
- package/dist/{chunk-R3HZBTE3.cjs → chunk-HMEP4EZ3.cjs} +4 -4
- package/dist/{chunk-R3HZBTE3.cjs.map → chunk-HMEP4EZ3.cjs.map} +1 -1
- package/dist/{chunk-5ETT7ZIO.js → chunk-IYKGI2DQ.js} +3 -3
- package/dist/{chunk-5ETT7ZIO.js.map → chunk-IYKGI2DQ.js.map} +1 -1
- package/dist/{chunk-3PQPA5K6.cjs → chunk-J4VP2PQJ.cjs} +28 -28
- package/dist/{chunk-3PQPA5K6.cjs.map → chunk-J4VP2PQJ.cjs.map} +1 -1
- package/dist/{chunk-TY76UEFK.js → chunk-JLJVEQFN.js} +6 -6
- package/dist/{chunk-TY76UEFK.js.map → chunk-JLJVEQFN.js.map} +1 -1
- package/dist/{chunk-G3MZ5S2Q.js → chunk-KYHDMUPW.js} +3 -3
- package/dist/{chunk-G3MZ5S2Q.js.map → chunk-KYHDMUPW.js.map} +1 -1
- package/dist/{chunk-DF2GSH4D.js → chunk-L2MMIC3S.js} +3 -3
- package/dist/{chunk-DF2GSH4D.js.map → chunk-L2MMIC3S.js.map} +1 -1
- package/dist/{chunk-46XON6PW.js → chunk-L4Q7FWBQ.js} +3 -3
- package/dist/{chunk-46XON6PW.js.map → chunk-L4Q7FWBQ.js.map} +1 -1
- package/dist/{chunk-OQCUIN6Z.cjs → chunk-M6N7XJH7.cjs} +5 -5
- package/dist/{chunk-OQCUIN6Z.cjs.map → chunk-M6N7XJH7.cjs.map} +1 -1
- package/dist/{chunk-MTHAQGJB.js → chunk-MNLMPH45.js} +3 -3
- package/dist/{chunk-MTHAQGJB.js.map → chunk-MNLMPH45.js.map} +1 -1
- package/dist/{chunk-W43S7COD.js → chunk-NBQNDHOW.js} +4 -4
- package/dist/{chunk-W43S7COD.js.map → chunk-NBQNDHOW.js.map} +1 -1
- package/dist/{chunk-7YGUUUL7.cjs → chunk-NF7CGYZF.cjs} +4 -4
- package/dist/{chunk-7YGUUUL7.cjs.map → chunk-NF7CGYZF.cjs.map} +1 -1
- package/dist/{chunk-DNGA25ZA.js → chunk-NI3O4UZL.js} +5 -5
- package/dist/{chunk-DNGA25ZA.js.map → chunk-NI3O4UZL.js.map} +1 -1
- package/dist/{chunk-T3JW5BYG.cjs → chunk-OSCWFBRD.cjs} +4 -4
- package/dist/{chunk-T3JW5BYG.cjs.map → chunk-OSCWFBRD.cjs.map} +1 -1
- package/dist/{chunk-TKOP6WMD.js → chunk-OYKITGTK.js} +4 -4
- package/dist/{chunk-TKOP6WMD.js.map → chunk-OYKITGTK.js.map} +1 -1
- package/dist/{chunk-2TB4UDBH.js → chunk-PKDGP6ZH.js} +3 -3
- package/dist/{chunk-2TB4UDBH.js.map → chunk-PKDGP6ZH.js.map} +1 -1
- package/dist/{chunk-AKW4JLHQ.cjs → chunk-PO2QI2OI.cjs} +4 -4
- package/dist/{chunk-AKW4JLHQ.cjs.map → chunk-PO2QI2OI.cjs.map} +1 -1
- package/dist/{chunk-4UREQY5X.js → chunk-Q56LAJRP.js} +4 -4
- package/dist/{chunk-4UREQY5X.js.map → chunk-Q56LAJRP.js.map} +1 -1
- package/dist/{chunk-SQAVWMGV.cjs → chunk-R6GIDWEH.cjs} +59 -59
- package/dist/{chunk-SQAVWMGV.cjs.map → chunk-R6GIDWEH.cjs.map} +1 -1
- package/dist/{chunk-KKBYWVEL.js → chunk-SLGRQMHW.js} +5 -5
- package/dist/{chunk-KKBYWVEL.js.map → chunk-SLGRQMHW.js.map} +1 -1
- package/dist/{chunk-LXB756TN.cjs → chunk-SN5VHPF4.cjs} +3 -3
- package/dist/{chunk-LXB756TN.cjs.map → chunk-SN5VHPF4.cjs.map} +1 -1
- package/dist/{chunk-CJWZYK5K.cjs → chunk-SVL2OM7T.cjs} +5 -5
- package/dist/{chunk-CJWZYK5K.cjs.map → chunk-SVL2OM7T.cjs.map} +1 -1
- package/dist/{chunk-SSRFSSIT.js → chunk-TGVBLXLV.js} +52 -17
- package/dist/chunk-TGVBLXLV.js.map +1 -0
- package/dist/{chunk-DV25UPJ7.js → chunk-THNTNAYI.js} +3 -3
- package/dist/{chunk-DV25UPJ7.js.map → chunk-THNTNAYI.js.map} +1 -1
- package/dist/{chunk-AYAWG2CM.js → chunk-TNWJPTDG.js} +3 -3
- package/dist/{chunk-AYAWG2CM.js.map → chunk-TNWJPTDG.js.map} +1 -1
- package/dist/{chunk-SN7X7C7H.cjs → chunk-UAMY7KHW.cjs} +5 -5
- package/dist/{chunk-SN7X7C7H.cjs.map → chunk-UAMY7KHW.cjs.map} +1 -1
- package/dist/{chunk-H72SWOUS.js → chunk-VTGRCJLP.js} +3 -3
- package/dist/{chunk-H72SWOUS.js.map → chunk-VTGRCJLP.js.map} +1 -1
- package/dist/{chunk-W5PKYJX5.cjs → chunk-W6DDSZUD.cjs} +14 -14
- package/dist/{chunk-W5PKYJX5.cjs.map → chunk-W6DDSZUD.cjs.map} +1 -1
- package/dist/{chunk-ZXXXLYZY.cjs → chunk-WG2IPVLA.cjs} +7 -7
- package/dist/{chunk-ZXXXLYZY.cjs.map → chunk-WG2IPVLA.cjs.map} +1 -1
- package/dist/{chunk-RWU3C4MK.js → chunk-WLWY43FR.js} +3 -3
- package/dist/{chunk-RWU3C4MK.js.map → chunk-WLWY43FR.js.map} +1 -1
- package/dist/{chunk-OZRGYS3J.js → chunk-X3LM4KRW.js} +3 -3
- package/dist/{chunk-OZRGYS3J.js.map → chunk-X3LM4KRW.js.map} +1 -1
- package/dist/{chunk-IZJ3BOJO.js → chunk-XMDIXNLW.js} +3 -3
- package/dist/{chunk-IZJ3BOJO.js.map → chunk-XMDIXNLW.js.map} +1 -1
- package/dist/{chunk-7FKVJUR4.js → chunk-Y6F6UF2W.js} +3 -3
- package/dist/{chunk-7FKVJUR4.js.map → chunk-Y6F6UF2W.js.map} +1 -1
- package/dist/{chunk-F72ZD5Q2.cjs → chunk-YD3RN2FY.cjs} +3 -3
- package/dist/{chunk-F72ZD5Q2.cjs.map → chunk-YD3RN2FY.cjs.map} +1 -1
- package/dist/{chunk-QHWDV2VB.cjs → chunk-YJJNDKA3.cjs} +6 -6
- package/dist/{chunk-QHWDV2VB.cjs.map → chunk-YJJNDKA3.cjs.map} +1 -1
- package/dist/{chunk-NZCAWWV4.cjs → chunk-YP643FYT.cjs} +4 -4
- package/dist/{chunk-NZCAWWV4.cjs.map → chunk-YP643FYT.cjs.map} +1 -1
- package/dist/{chunk-BBTHGWZO.cjs → chunk-ZUOU54X3.cjs} +5 -5
- package/dist/{chunk-BBTHGWZO.cjs.map → chunk-ZUOU54X3.cjs.map} +1 -1
- package/dist/citations/index.cjs +10 -10
- package/dist/citations/index.js +2 -2
- package/dist/collaboration/index.cjs +9 -9
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +19 -19
- package/dist/connect/docx.js +15 -15
- package/dist/connect/index.cjs +1885 -1856
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +686 -659
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +83 -83
- package/dist/connect/viewer.js +18 -18
- package/dist/connection/ConnectedSettings.d.ts +1 -1
- package/dist/connection/dialogs/ConnectedGlobalDialogs.d.ts +26 -0
- package/dist/connection/dialogs/index.d.ts +1 -0
- package/dist/connection/files/upload/ConnectedUploadDropzone.d.ts +2 -1
- package/dist/connection/workspace-access/access-review.d.ts +6 -0
- package/dist/facts/index.cjs +60 -60
- package/dist/facts/index.js +7 -7
- package/dist/files/index.cjs +225 -225
- package/dist/files/index.js +5 -5
- package/dist/home/index.cjs +31 -31
- package/dist/home/index.js +6 -6
- package/dist/index.cjs +780 -756
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -27
- package/dist/provider/dialog-registry.d.ts +85 -0
- package/dist/provider/environment.d.ts +11 -11
- package/dist/retrieval/index.cjs +4 -4
- package/dist/retrieval/index.js +2 -2
- package/dist/settings/index.cjs +156 -156
- package/dist/settings/index.js +3 -3
- package/dist/shell/index.cjs +42 -42
- package/dist/shell/index.js +4 -4
- package/dist/studio/index.cjs +18 -18
- package/dist/studio/index.js +10 -10
- package/dist/workflow-canvas/index.cjs +69 -69
- package/dist/workflow-canvas/index.js +14 -14
- package/dist/workspaces/index.cjs +29 -29
- package/dist/workspaces/index.js +4 -4
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-RLU5VYGO.cjs.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-YCQSIGXL.js.map +0 -1
- package/dist/chunk-52GITM4V.cjs.map +0 -1
- package/dist/chunk-AHYSHKPL.cjs.map +0 -1
- package/dist/chunk-SSRFSSIT.js.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-MB3S2ETI.cjs');
|
|
7
|
-
var chunkSQAVWMGV_cjs = require('../chunk-SQAVWMGV.cjs');
|
|
8
|
-
var chunk52GITM4V_cjs = require('../chunk-52GITM4V.cjs');
|
|
4
|
+
var chunkR6GIDWEH_cjs = require('../chunk-R6GIDWEH.cjs');
|
|
5
|
+
var chunkGNWQS6S4_cjs = require('../chunk-GNWQS6S4.cjs');
|
|
9
6
|
require('../chunk-RFIBUWLF.cjs');
|
|
10
|
-
var
|
|
11
|
-
require('../chunk-
|
|
7
|
+
var chunkCGUDTSGI_cjs = require('../chunk-CGUDTSGI.cjs');
|
|
8
|
+
require('../chunk-YJJNDKA3.cjs');
|
|
12
9
|
require('../chunk-AQPZ4QMV.cjs');
|
|
13
10
|
require('../chunk-SIB6C7P7.cjs');
|
|
14
11
|
require('../chunk-DVUZTGVL.cjs');
|
|
15
12
|
require('../chunk-V4ISCZJ7.cjs');
|
|
16
13
|
require('../chunk-AHDJXIUB.cjs');
|
|
17
14
|
require('../chunk-2EI7NCUA.cjs');
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-MEMWZ72Y.cjs');
|
|
20
|
-
require('../chunk-ZW6FPIFC.cjs');
|
|
15
|
+
require('../chunk-6LVVW6VB.cjs');
|
|
21
16
|
require('../chunk-LKK52DEY.cjs');
|
|
22
17
|
require('../chunk-VZOOGA47.cjs');
|
|
23
|
-
var
|
|
18
|
+
var chunk62G4HK7C_cjs = require('../chunk-62G4HK7C.cjs');
|
|
19
|
+
var chunkYP643FYT_cjs = require('../chunk-YP643FYT.cjs');
|
|
20
|
+
require('../chunk-MB3S2ETI.cjs');
|
|
21
|
+
require('../chunk-MEMWZ72Y.cjs');
|
|
22
|
+
require('../chunk-ZW6FPIFC.cjs');
|
|
23
|
+
var chunkEZLZ3MDU_cjs = require('../chunk-EZLZ3MDU.cjs');
|
|
24
24
|
var chunk76L6LOP3_cjs = require('../chunk-76L6LOP3.cjs');
|
|
25
25
|
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
26
|
-
require('../chunk-
|
|
26
|
+
require('../chunk-UFEXJIEY.cjs');
|
|
27
27
|
require('../chunk-FX3K6LNZ.cjs');
|
|
28
28
|
require('../chunk-CQ2YSHIF.cjs');
|
|
29
|
-
require('../chunk-
|
|
30
|
-
var
|
|
29
|
+
require('../chunk-PPCATBOY.cjs');
|
|
30
|
+
var chunk7THRBD42_cjs = require('../chunk-7THRBD42.cjs');
|
|
31
31
|
require('../chunk-SI222Z3A.cjs');
|
|
32
32
|
require('../chunk-ULWRNGGE.cjs');
|
|
33
33
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -55,11 +55,11 @@ function withSteps(workflow, steps, layout) {
|
|
|
55
55
|
const run = workflow.run.kind === "steps" ? workflow.run : { kind: "steps", steps: [] };
|
|
56
56
|
return {
|
|
57
57
|
...workflow,
|
|
58
|
-
run: { ...run, steps:
|
|
58
|
+
run: { ...run, steps: chunkEZLZ3MDU_cjs.orderSteps(steps), layout: layout ?? run.layout }
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
var layoutOf = (workflow) => workflow.run.kind === "steps" && workflow.run.layout || {};
|
|
62
|
-
var explicit = (steps) => steps.map((s) => ({ ...s, after:
|
|
62
|
+
var explicit = (steps) => steps.map((s) => ({ ...s, after: chunkEZLZ3MDU_cjs.stepDependencies(steps, s.id) }));
|
|
63
63
|
function stepIdFor(steps, title) {
|
|
64
64
|
const base = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "") || "step";
|
|
65
65
|
const taken = new Set(steps.map((s) => s.id));
|
|
@@ -106,7 +106,7 @@ function blankStep(kind, id, title) {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function addStep(workflow, kind, options = {}) {
|
|
109
|
-
const steps = explicit(
|
|
109
|
+
const steps = explicit(chunkEZLZ3MDU_cjs.workflowSteps(workflow));
|
|
110
110
|
const title = options.title ?? DEFAULT_TITLES[kind];
|
|
111
111
|
const id = stepIdFor(steps, title);
|
|
112
112
|
const step = { ...blankStep(kind, id, title), after: options.after ? [options.after] : [] };
|
|
@@ -115,7 +115,7 @@ function addStep(workflow, kind, options = {}) {
|
|
|
115
115
|
return { workflow: withSteps(workflow, [...steps, step], layout), id };
|
|
116
116
|
}
|
|
117
117
|
function removeStep(workflow, id) {
|
|
118
|
-
const steps = explicit(
|
|
118
|
+
const steps = explicit(chunkEZLZ3MDU_cjs.workflowSteps(workflow));
|
|
119
119
|
const removed = steps.find((s) => s.id === id);
|
|
120
120
|
if (!removed) return workflow;
|
|
121
121
|
const bridged = steps.filter((s) => s.id !== id).map(
|
|
@@ -128,8 +128,8 @@ function removeStep(workflow, id) {
|
|
|
128
128
|
return withSteps(workflow, bridged, layout);
|
|
129
129
|
}
|
|
130
130
|
function connectSteps(workflow, from, to) {
|
|
131
|
-
const steps = explicit(
|
|
132
|
-
if (from === to || !steps.some((s) => s.id === from) ||
|
|
131
|
+
const steps = explicit(chunkEZLZ3MDU_cjs.workflowSteps(workflow));
|
|
132
|
+
if (from === to || !steps.some((s) => s.id === from) || chunkEZLZ3MDU_cjs.dependsOn(steps, from, to)) {
|
|
133
133
|
return workflow;
|
|
134
134
|
}
|
|
135
135
|
return withSteps(
|
|
@@ -139,16 +139,16 @@ function connectSteps(workflow, from, to) {
|
|
|
139
139
|
)
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
|
-
var wouldCycle = (workflow, from, to) => from === to ||
|
|
142
|
+
var wouldCycle = (workflow, from, to) => from === to || chunkEZLZ3MDU_cjs.dependsOn(chunkEZLZ3MDU_cjs.workflowSteps(workflow), from, to);
|
|
143
143
|
function disconnectSteps(workflow, from, to) {
|
|
144
|
-
const steps = explicit(
|
|
144
|
+
const steps = explicit(chunkEZLZ3MDU_cjs.workflowSteps(workflow));
|
|
145
145
|
return withSteps(
|
|
146
146
|
workflow,
|
|
147
147
|
steps.map((s) => s.id === to ? { ...s, after: (s.after ?? []).filter((d) => d !== from) } : s)
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
function updateStep(workflow, id, patch) {
|
|
151
|
-
const steps = explicit(
|
|
151
|
+
const steps = explicit(chunkEZLZ3MDU_cjs.workflowSteps(workflow));
|
|
152
152
|
return withSteps(
|
|
153
153
|
workflow,
|
|
154
154
|
steps.map(
|
|
@@ -162,7 +162,7 @@ var renameIn = (text, from, to) => text.replace(
|
|
|
162
162
|
);
|
|
163
163
|
function renameInput(workflow, from, to) {
|
|
164
164
|
if (from === to) return workflow;
|
|
165
|
-
const steps =
|
|
165
|
+
const steps = chunkEZLZ3MDU_cjs.workflowSteps(workflow).map((s) => {
|
|
166
166
|
if (s.kind === "agent")
|
|
167
167
|
return {
|
|
168
168
|
...s,
|
|
@@ -211,13 +211,13 @@ function renameInput(workflow, from, to) {
|
|
|
211
211
|
var renamePerson = (a, from, to) => "input" in a && a.input === from ? { input: to } : a;
|
|
212
212
|
var renameRef = (r, from, to) => "input" in r && r.input === from ? { input: to } : r;
|
|
213
213
|
function moveStep(workflow, id, position) {
|
|
214
|
-
return withSteps(workflow,
|
|
214
|
+
return withSteps(workflow, chunkEZLZ3MDU_cjs.workflowSteps(workflow), { ...layoutOf(workflow), [id]: position });
|
|
215
215
|
}
|
|
216
216
|
var COLUMN = 300;
|
|
217
217
|
var ROW = 140;
|
|
218
218
|
function autoLayout(steps) {
|
|
219
219
|
const layout = {};
|
|
220
|
-
|
|
220
|
+
chunkEZLZ3MDU_cjs.stepLevels(steps).forEach(
|
|
221
221
|
(level, x) => level.forEach((s, y) => {
|
|
222
222
|
layout[s.id] = { x: x * COLUMN, y: (y - (level.length - 1) / 2) * ROW };
|
|
223
223
|
})
|
|
@@ -225,7 +225,7 @@ function autoLayout(steps) {
|
|
|
225
225
|
return layout;
|
|
226
226
|
}
|
|
227
227
|
function layoutWithDefaults(workflow) {
|
|
228
|
-
const auto = autoLayout(
|
|
228
|
+
const auto = autoLayout(chunkEZLZ3MDU_cjs.workflowSteps(workflow));
|
|
229
229
|
return { ...auto, ...layoutOf(workflow) };
|
|
230
230
|
}
|
|
231
231
|
var DEFAULT_SIGNALS_EDITOR_LABELS = {
|
|
@@ -322,9 +322,9 @@ function SignalsEditor({
|
|
|
322
322
|
{
|
|
323
323
|
className: ui.cn(
|
|
324
324
|
"space-y-1.5 rounded-md border p-2",
|
|
325
|
-
|
|
325
|
+
chunkGNWQS6S4_cjs.isIncompleteSignal(signal) ? "border-destructive/50" : "border-border"
|
|
326
326
|
),
|
|
327
|
-
"data-incomplete":
|
|
327
|
+
"data-incomplete": chunkGNWQS6S4_cjs.isIncompleteSignal(signal) || void 0,
|
|
328
328
|
"data-testid": `${testId}-${i}`,
|
|
329
329
|
children: [
|
|
330
330
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1155,7 +1155,7 @@ function StepInspector({
|
|
|
1155
1155
|
}) {
|
|
1156
1156
|
const l = { ...DEFAULT_STEP_INSPECTOR_LABELS, ...labels };
|
|
1157
1157
|
const ol = { ...DEFAULT_FIELD_OPTIONS_EDITOR_LABELS, ...optionLabels };
|
|
1158
|
-
const steps =
|
|
1158
|
+
const steps = chunkEZLZ3MDU_cjs.workflowSteps(workflow);
|
|
1159
1159
|
const step = steps.find((s) => s.id === stepId);
|
|
1160
1160
|
const run = workflow.run.kind === "steps" ? workflow.run : void 0;
|
|
1161
1161
|
if (!step || !run) {
|
|
@@ -1182,8 +1182,8 @@ function StepInspector({
|
|
|
1182
1182
|
const patch = (p) => onChange(updateStep(workflow, step.id, p));
|
|
1183
1183
|
const al = { ...DEFAULT_STEP_ACTION_SETTINGS_LABELS, ...actionLabels };
|
|
1184
1184
|
const ctx = {
|
|
1185
|
-
earlier:
|
|
1186
|
-
fields:
|
|
1185
|
+
earlier: chunkEZLZ3MDU_cjs.upstreamSteps(steps, step.id),
|
|
1186
|
+
fields: chunkEZLZ3MDU_cjs.runFields(workflow),
|
|
1187
1187
|
people,
|
|
1188
1188
|
tags,
|
|
1189
1189
|
documents
|
|
@@ -1204,7 +1204,7 @@ function StepInspector({
|
|
|
1204
1204
|
)
|
|
1205
1205
|
);
|
|
1206
1206
|
};
|
|
1207
|
-
const deps =
|
|
1207
|
+
const deps = chunkEZLZ3MDU_cjs.stepDependencies(steps, step.id);
|
|
1208
1208
|
const titleOf = (id) => steps.find((s) => s.id === id)?.title ?? id;
|
|
1209
1209
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": `${testId}-step`, children: [
|
|
1210
1210
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
@@ -1285,7 +1285,7 @@ function StepInspector({
|
|
|
1285
1285
|
{
|
|
1286
1286
|
step,
|
|
1287
1287
|
workflows,
|
|
1288
|
-
fields:
|
|
1288
|
+
fields: chunkEZLZ3MDU_cjs.runFields(workflow).map((f) => f.name),
|
|
1289
1289
|
patch,
|
|
1290
1290
|
l,
|
|
1291
1291
|
testId
|
|
@@ -1346,7 +1346,7 @@ function StepInspector({
|
|
|
1346
1346
|
testId: `${testId}-review-grid`
|
|
1347
1347
|
}
|
|
1348
1348
|
),
|
|
1349
|
-
|
|
1349
|
+
chunkEZLZ3MDU_cjs.canAssign(step) && /* @__PURE__ */ jsxRuntime.jsx(AssigneeSettings, { step, patch, ctx, l: al, testId }),
|
|
1350
1350
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1351
1351
|
SignalsEditor,
|
|
1352
1352
|
{
|
|
@@ -1612,7 +1612,7 @@ function triggerFields(trigger, clearOthers) {
|
|
|
1612
1612
|
return {
|
|
1613
1613
|
timezone: trigger.timezone,
|
|
1614
1614
|
rrule: trigger.start === "repeat" ? trigger.rrule.trim() : none,
|
|
1615
|
-
run_at: trigger.start === "once" ?
|
|
1615
|
+
run_at: trigger.start === "once" ? chunkGNWQS6S4_cjs.localInputToIso(trigger.runAt) : none,
|
|
1616
1616
|
event_kind: trigger.start === "event" ? trigger.eventKind.trim() : none,
|
|
1617
1617
|
// A step signal is `workflow_signal` narrowed to one signal name.
|
|
1618
1618
|
event_filter: filter ?? none,
|
|
@@ -1628,7 +1628,7 @@ function plan(value, options) {
|
|
|
1628
1628
|
criteria: [],
|
|
1629
1629
|
max_passes: 3,
|
|
1630
1630
|
documents: [],
|
|
1631
|
-
steps:
|
|
1631
|
+
steps: chunkGNWQS6S4_cjs.toPlanSteps(value.workflow, options)
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -1663,7 +1663,7 @@ function builderToWorkflowUpdate(value, options = {}) {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
function workflowRecordToBuilder(record) {
|
|
1665
1665
|
const planned = record.plan?.steps ?? [];
|
|
1666
|
-
const steps = planned.length ?
|
|
1666
|
+
const steps = planned.length ? chunkGNWQS6S4_cjs.fromPlanSteps(planned) : record.prompt || record.skill_ref ? [
|
|
1667
1667
|
{
|
|
1668
1668
|
id: "work",
|
|
1669
1669
|
kind: "agent",
|
|
@@ -1671,7 +1671,7 @@ function workflowRecordToBuilder(record) {
|
|
|
1671
1671
|
...record.skill_ref ? { workflow: record.skill_ref } : { run: { kind: "prompt", promptTemplate: record.prompt } }
|
|
1672
1672
|
}
|
|
1673
1673
|
] : [];
|
|
1674
|
-
const when =
|
|
1674
|
+
const when = chunkGNWQS6S4_cjs.workflowWhen(record);
|
|
1675
1675
|
return {
|
|
1676
1676
|
workflow: {
|
|
1677
1677
|
id: record.external_id,
|
|
@@ -1680,12 +1680,12 @@ function workflowRecordToBuilder(record) {
|
|
|
1680
1680
|
inputs: [],
|
|
1681
1681
|
landing: "chat",
|
|
1682
1682
|
schedulable: false,
|
|
1683
|
-
run: { kind: "steps", steps, layout:
|
|
1683
|
+
run: { kind: "steps", steps, layout: chunkGNWQS6S4_cjs.layoutFromPlanSteps(planned ?? []) }
|
|
1684
1684
|
},
|
|
1685
1685
|
trigger: {
|
|
1686
1686
|
...DEFAULT_WORKFLOW_TRIGGER,
|
|
1687
1687
|
start: when === "now" ? "manual" : when,
|
|
1688
|
-
runAt:
|
|
1688
|
+
runAt: chunkGNWQS6S4_cjs.isoToLocalInput(record.run_at),
|
|
1689
1689
|
rrule: record.rrule ?? "",
|
|
1690
1690
|
timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,
|
|
1691
1691
|
eventKind: record.event_kind ?? "",
|
|
@@ -1741,7 +1741,7 @@ function triggerSummary(trigger, options = {}) {
|
|
|
1741
1741
|
case "once":
|
|
1742
1742
|
return trigger.runAt ? new Date(trigger.runAt).toLocaleString() : l.starts.once;
|
|
1743
1743
|
case "repeat":
|
|
1744
|
-
return trigger.rrule ?
|
|
1744
|
+
return trigger.rrule ? chunkGNWQS6S4_cjs.describeRRule(trigger.rrule) : l.starts.repeat;
|
|
1745
1745
|
case "event":
|
|
1746
1746
|
if (isSignalTrigger(trigger))
|
|
1747
1747
|
return trigger.signal ? l.signalSummary.replace("{signal}", trigger.signal) : l.stepSignals;
|
|
@@ -1800,7 +1800,7 @@ function TriggerInspector({
|
|
|
1800
1800
|
}
|
|
1801
1801
|
)
|
|
1802
1802
|
] }),
|
|
1803
|
-
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1803
|
+
trigger.start === "repeat" && /* @__PURE__ */ jsxRuntime.jsx(chunkGNWQS6S4_cjs.RecurrenceBuilder, { rrule: trigger.rrule, onChange: (rrule) => set({ rrule }) }),
|
|
1804
1804
|
trigger.start === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1805
1805
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.event }),
|
|
1806
1806
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1852,7 +1852,7 @@ function TriggerInspector({
|
|
|
1852
1852
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
1853
1853
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs", children: l.agent }),
|
|
1854
1854
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1855
|
-
|
|
1855
|
+
chunkCGUDTSGI_cjs.AgentSelect,
|
|
1856
1856
|
{
|
|
1857
1857
|
agents,
|
|
1858
1858
|
value: trigger.agentId,
|
|
@@ -1920,7 +1920,7 @@ function revealCenter(node, view, frame, reserveRight = 0) {
|
|
|
1920
1920
|
};
|
|
1921
1921
|
}
|
|
1922
1922
|
var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
1923
|
-
...
|
|
1923
|
+
...chunkEZLZ3MDU_cjs.DEFAULT_STEP_KIND_LABELS,
|
|
1924
1924
|
redline: "Tracked changes",
|
|
1925
1925
|
branch: "Branch",
|
|
1926
1926
|
kindHints: {
|
|
@@ -1951,7 +1951,7 @@ var DEFAULT_WORKFLOW_CANVAS_LABELS = {
|
|
|
1951
1951
|
fitView: "Fit view"
|
|
1952
1952
|
};
|
|
1953
1953
|
var TRIGGER_NODE = "__trigger";
|
|
1954
|
-
var KINDS =
|
|
1954
|
+
var KINDS = chunkEZLZ3MDU_cjs.WORKFLOW_STEP_KINDS;
|
|
1955
1955
|
function AddNext({
|
|
1956
1956
|
from,
|
|
1957
1957
|
onAdd,
|
|
@@ -1973,7 +1973,7 @@ function AddNext({
|
|
|
1973
1973
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.PopoverContent, { side: "right", align: "start", className: "w-60 p-1.5", children: [
|
|
1974
1974
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-2 pb-1 pt-0.5 text-xs font-medium text-muted-foreground", children: l.addNext }),
|
|
1975
1975
|
KINDS.map((kind) => {
|
|
1976
|
-
const Icon =
|
|
1976
|
+
const Icon = chunkEZLZ3MDU_cjs.STEP_KIND_ICONS[kind];
|
|
1977
1977
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1978
1978
|
"button",
|
|
1979
1979
|
{
|
|
@@ -2012,8 +2012,8 @@ function PhaseMark({ phase }) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
function StepNode({ data }) {
|
|
2014
2014
|
const { step, phase, summary, assignee, icon, l, onAdd, testId } = data;
|
|
2015
|
-
const kind =
|
|
2016
|
-
const KindIcon =
|
|
2015
|
+
const kind = chunkEZLZ3MDU_cjs.stepKindOf(step);
|
|
2016
|
+
const KindIcon = chunkEZLZ3MDU_cjs.STEP_KIND_ICONS[kind];
|
|
2017
2017
|
const redline = step.kind === "agent" && !!step.editDocument;
|
|
2018
2018
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2019
2019
|
"div",
|
|
@@ -2147,12 +2147,12 @@ function WorkflowCanvas({
|
|
|
2147
2147
|
testId = "workflow-canvas"
|
|
2148
2148
|
}) {
|
|
2149
2149
|
const l = react.useMemo(() => ({ ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...labels }), [labels]);
|
|
2150
|
-
const steps =
|
|
2150
|
+
const steps = chunkEZLZ3MDU_cjs.workflowSteps(workflow);
|
|
2151
2151
|
const editable = !!onChange;
|
|
2152
2152
|
const built = react.useMemo(() => {
|
|
2153
2153
|
const layout = layoutWithDefaults(workflow);
|
|
2154
|
-
const all =
|
|
2155
|
-
const roots = all.filter((s) =>
|
|
2154
|
+
const all = chunkEZLZ3MDU_cjs.workflowSteps(workflow);
|
|
2155
|
+
const roots = all.filter((s) => chunkEZLZ3MDU_cjs.stepDependencies(all, s.id).length === 0);
|
|
2156
2156
|
const triggerNode = trigger ? [
|
|
2157
2157
|
{
|
|
2158
2158
|
id: TRIGGER_NODE,
|
|
@@ -2201,7 +2201,7 @@ function WorkflowCanvas({
|
|
|
2201
2201
|
react.useEffect(() => setNodes(built), [built]);
|
|
2202
2202
|
const edges = react.useMemo(
|
|
2203
2203
|
() => steps.flatMap((s) => {
|
|
2204
|
-
const deps =
|
|
2204
|
+
const deps = chunkEZLZ3MDU_cjs.stepDependencies(steps, s.id);
|
|
2205
2205
|
const from = deps.length ? deps : trigger ? [TRIGGER_NODE] : [];
|
|
2206
2206
|
return from.map((d) => ({
|
|
2207
2207
|
id: `${d}->${s.id}`,
|
|
@@ -2371,7 +2371,7 @@ function WorkflowCanvas({
|
|
|
2371
2371
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold", children: l.emptyTitle }),
|
|
2372
2372
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-xs text-muted-foreground", children: l.emptyHint }),
|
|
2373
2373
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3 grid grid-cols-2 gap-2", children: KINDS.map((kind) => {
|
|
2374
|
-
const Icon =
|
|
2374
|
+
const Icon = chunkEZLZ3MDU_cjs.STEP_KIND_ICONS[kind];
|
|
2375
2375
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2376
2376
|
"button",
|
|
2377
2377
|
{
|
|
@@ -2421,7 +2421,7 @@ var DEFAULT_WORKFLOW_BUILDER_LABELS = {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
};
|
|
2423
2423
|
var PANEL_WIDTH = 344;
|
|
2424
|
-
var KINDS2 =
|
|
2424
|
+
var KINDS2 = chunkEZLZ3MDU_cjs.WORKFLOW_STEP_KINDS;
|
|
2425
2425
|
function WorkflowBuilder({
|
|
2426
2426
|
value,
|
|
2427
2427
|
onChange,
|
|
@@ -2453,12 +2453,12 @@ function WorkflowBuilder({
|
|
|
2453
2453
|
const [mode, setMode] = react.useState("design");
|
|
2454
2454
|
const [adding, setAdding] = react.useState(false);
|
|
2455
2455
|
const { workflow, trigger } = value;
|
|
2456
|
-
const steps =
|
|
2457
|
-
const problems =
|
|
2458
|
-
const missing =
|
|
2456
|
+
const steps = chunkEZLZ3MDU_cjs.workflowSteps(workflow);
|
|
2457
|
+
const problems = chunkEZLZ3MDU_cjs.validateWorkflowGraph(steps);
|
|
2458
|
+
const missing = chunkEZLZ3MDU_cjs.stepConfigProblems(steps);
|
|
2459
2459
|
const nameOf = (id) => people.find((p) => p.value === id)?.label;
|
|
2460
|
-
const fields =
|
|
2461
|
-
const assigneeOf = (step) =>
|
|
2460
|
+
const fields = chunkEZLZ3MDU_cjs.runFields(workflow);
|
|
2461
|
+
const assigneeOf = (step) => chunkEZLZ3MDU_cjs.canAssign(step) ? chunkEZLZ3MDU_cjs.assigneeName(step.assignee, { nameOf, fields }) : void 0;
|
|
2462
2462
|
const titles = react.useMemo(() => new Map(workflows.map((w) => [w.id, w.title])), [workflows]);
|
|
2463
2463
|
const setWorkflow = (next) => onChange({ ...value, workflow: next });
|
|
2464
2464
|
const addAfter = (from, kind) => {
|
|
@@ -2527,7 +2527,7 @@ function WorkflowBuilder({
|
|
|
2527
2527
|
l.addStep
|
|
2528
2528
|
] }) }),
|
|
2529
2529
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-64 p-1.5", children: KINDS2.map((kind) => {
|
|
2530
|
-
const Icon =
|
|
2530
|
+
const Icon = chunkEZLZ3MDU_cjs.STEP_KIND_ICONS[kind];
|
|
2531
2531
|
const cls = { ...DEFAULT_WORKFLOW_CANVAS_LABELS, ...canvasLabels };
|
|
2532
2532
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2533
2533
|
"button",
|
|
@@ -2689,13 +2689,13 @@ function WorkflowPreview({
|
|
|
2689
2689
|
renderIcon,
|
|
2690
2690
|
testId
|
|
2691
2691
|
}) {
|
|
2692
|
-
const run =
|
|
2692
|
+
const run = chunkR6GIDWEH_cjs.useWorkflowPreview(workflow, {
|
|
2693
2693
|
resolveWorkflow: (id) => workflows.find((w) => w.id === id),
|
|
2694
2694
|
compose,
|
|
2695
2695
|
answer
|
|
2696
2696
|
});
|
|
2697
2697
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2698
|
-
|
|
2698
|
+
chunkGNWQS6S4_cjs.WorkflowRunner,
|
|
2699
2699
|
{
|
|
2700
2700
|
workflow,
|
|
2701
2701
|
run,
|
|
@@ -2771,14 +2771,14 @@ function ConnectedWorkflowBuilder({
|
|
|
2771
2771
|
...builderProps
|
|
2772
2772
|
}) {
|
|
2773
2773
|
const l = { ...DEFAULT_CONNECTED_WORKFLOW_BUILDER_LABELS, ...connectedLabels };
|
|
2774
|
-
const { notify, openConversation } =
|
|
2775
|
-
const { workspaceId, live, ensureWorkspaceOpen } =
|
|
2774
|
+
const { notify, openConversation } = chunk7THRBD42_cjs.useBlocksEnvironment();
|
|
2775
|
+
const { workspaceId, live, ensureWorkspaceOpen } = chunkYP643FYT_cjs.useConnectedWorkspace();
|
|
2776
2776
|
const members = react$2.useWorkspaceUsers(workspaceId ?? void 0, {
|
|
2777
2777
|
enabled: live && !!workspaceId,
|
|
2778
2778
|
beforeFetch: ensureWorkspaceOpen
|
|
2779
2779
|
});
|
|
2780
|
-
const { data: tagList } =
|
|
2781
|
-
const { data: docList } =
|
|
2780
|
+
const { data: tagList } = chunk62G4HK7C_cjs.useConnectedTags();
|
|
2781
|
+
const { data: docList } = chunk62G4HK7C_cjs.useListedDocuments();
|
|
2782
2782
|
const people = (members.data ?? []).map((m) => ({
|
|
2783
2783
|
value: m.user.external_id,
|
|
2784
2784
|
label: [m.user.given_name, m.user.family_name].filter(Boolean).join(" ") || m.user.email
|
|
@@ -2791,7 +2791,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2791
2791
|
const saved = react$2.useWorkflows();
|
|
2792
2792
|
const skills = react$2.useSkills();
|
|
2793
2793
|
const agentsQuery = react$2.useAgents();
|
|
2794
|
-
const { data: conversations } =
|
|
2794
|
+
const { data: conversations } = chunk62G4HK7C_cjs.useConnectedConversations();
|
|
2795
2795
|
const create = react$2.useCreateWorkflow();
|
|
2796
2796
|
const update = react$2.useUpdateWorkflow();
|
|
2797
2797
|
const run = react$2.useRunWorkflow();
|
|
@@ -2817,7 +2817,7 @@ function ConnectedWorkflowBuilder({
|
|
|
2817
2817
|
}));
|
|
2818
2818
|
const tasks = conversations.filter((c) => c.status && c.status !== "done").map((c) => ({ value: c.external_id, label: c.title || l.untitledTask }));
|
|
2819
2819
|
const options = { resolveWorkflow: (wid) => workflows.find((w) => w.id === wid), compose };
|
|
2820
|
-
const problem = triggerProblem(value.trigger) ?? (
|
|
2820
|
+
const problem = triggerProblem(value.trigger) ?? (chunkEZLZ3MDU_cjs.validateWorkflowGraph(chunkEZLZ3MDU_cjs.workflowSteps(value.workflow)).length || chunkEZLZ3MDU_cjs.stepConfigProblems(chunkEZLZ3MDU_cjs.workflowSteps(value.workflow)).length ? "graph" : null);
|
|
2821
2821
|
const busy = !!pending || create.isPending || update.isPending || run.isPending;
|
|
2822
2822
|
const save = async () => {
|
|
2823
2823
|
if (!workspaceId) return void 0;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import '../chunk-T4P237N6.js';
|
|
5
|
-
import { useWorkflowPreview } from '../chunk-UXIMEFEF.js';
|
|
6
|
-
import { isIncompleteSignal, fromPlanSteps, workflowWhen, isoToLocalInput, layoutFromPlanSteps, describeRRule, RecurrenceBuilder, WorkflowRunner, toPlanSteps, localInputToIso } from '../chunk-EJSVRT3G.js';
|
|
2
|
+
import { useWorkflowPreview } from '../chunk-DWERY33L.js';
|
|
3
|
+
import { isIncompleteSignal, fromPlanSteps, workflowWhen, isoToLocalInput, layoutFromPlanSteps, describeRRule, RecurrenceBuilder, WorkflowRunner, toPlanSteps, localInputToIso } from '../chunk-5VSMJ674.js';
|
|
7
4
|
import '../chunk-CQCC7LE7.js';
|
|
8
|
-
import { AgentSelect } from '../chunk-
|
|
9
|
-
import '../chunk-
|
|
5
|
+
import { AgentSelect } from '../chunk-SLGRQMHW.js';
|
|
6
|
+
import '../chunk-OYKITGTK.js';
|
|
10
7
|
import '../chunk-G4GLDQLY.js';
|
|
11
8
|
import '../chunk-M4S75AEJ.js';
|
|
12
9
|
import '../chunk-5LXQPP2K.js';
|
|
13
10
|
import '../chunk-NUNKSZKU.js';
|
|
14
11
|
import '../chunk-RLWIUUQ5.js';
|
|
15
12
|
import '../chunk-YU2KUMGE.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-ABEKUV6L.js';
|
|
18
|
-
import '../chunk-P6GHJSLR.js';
|
|
13
|
+
import '../chunk-CMTAOVUX.js';
|
|
19
14
|
import '../chunk-7F5Z4K5W.js';
|
|
20
15
|
import '../chunk-WNDIVNPT.js';
|
|
21
|
-
import {
|
|
16
|
+
import { useConnectedTags, useListedDocuments, useConnectedConversations } from '../chunk-IYKGI2DQ.js';
|
|
17
|
+
import { useConnectedWorkspace } from '../chunk-XMDIXNLW.js';
|
|
18
|
+
import '../chunk-T4P237N6.js';
|
|
19
|
+
import '../chunk-ABEKUV6L.js';
|
|
20
|
+
import '../chunk-P6GHJSLR.js';
|
|
21
|
+
import { DEFAULT_STEP_KIND_LABELS, workflowSteps, dependsOn, stepLevels, runFields, upstreamSteps, stepDependencies, canAssign, WORKFLOW_STEP_KINDS, STEP_KIND_ICONS, validateWorkflowGraph, stepConfigProblems, assigneeName, orderSteps, stepKindOf } from '../chunk-THNTNAYI.js';
|
|
22
22
|
import { mergeSkillWorkflows } from '../chunk-TZGBRLPK.js';
|
|
23
23
|
import { TONE_DOT, TONES, isTone } from '../chunk-AUS3KBHJ.js';
|
|
24
|
-
import '../chunk-
|
|
24
|
+
import '../chunk-5VYJP6XD.js';
|
|
25
25
|
import '../chunk-SLSBJRWW.js';
|
|
26
26
|
import '../chunk-GAGYAHYO.js';
|
|
27
|
-
import '../chunk-
|
|
28
|
-
import { useBlocksEnvironment } from '../chunk-
|
|
27
|
+
import '../chunk-NPLYHR2E.js';
|
|
28
|
+
import { useBlocksEnvironment } from '../chunk-TGVBLXLV.js';
|
|
29
29
|
import '../chunk-U4HWVCRN.js';
|
|
30
30
|
import '../chunk-TX2ZICS7.js';
|
|
31
31
|
import '../chunk-7F6CBP3Z.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkGK35JEWW_cjs = require('../chunk-GK35JEWW.cjs');
|
|
5
5
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
6
6
|
require('../chunk-UAEYU2NN.cjs');
|
|
7
7
|
require('../chunk-C2ECYOPP.cjs');
|
|
8
8
|
var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-6LVVW6VB.cjs');
|
|
10
10
|
require('../chunk-UFEXJIEY.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-7THRBD42.cjs');
|
|
12
12
|
require('../chunk-SI222Z3A.cjs');
|
|
13
13
|
require('../chunk-ULWRNGGE.cjs');
|
|
14
14
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -63,7 +63,7 @@ function WorkspaceGallery({
|
|
|
63
63
|
const opening = workspace.id === activeOpeningId;
|
|
64
64
|
const state = { current, opening };
|
|
65
65
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
|
-
|
|
66
|
+
chunkGK35JEWW_cjs.WorkspaceCard,
|
|
67
67
|
{
|
|
68
68
|
workspace,
|
|
69
69
|
current,
|
|
@@ -86,103 +86,103 @@ function WorkspaceGallery({
|
|
|
86
86
|
|
|
87
87
|
Object.defineProperty(exports, "CommonWorkspaceToggle", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkGK35JEWW_cjs.CommonWorkspaceToggle; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_CARD_LABELS", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkGK35JEWW_cjs.DEFAULT_WORKSPACE_CARD_LABELS; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "ExpandableSection", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkGK35JEWW_cjs.ExpandableSection; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FormActions", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkGK35JEWW_cjs.FormActions; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FormErrorBanner", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkGK35JEWW_cjs.FormErrorBanner; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "ItalicNone", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkGK35JEWW_cjs.ItalicNone; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "LeaveFooter", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkGK35JEWW_cjs.LeaveFooter; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ModalActionRow", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkGK35JEWW_cjs.ModalActionRow; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "PageLoading", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkGK35JEWW_cjs.PageLoading; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "ProjectActionButton", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkGK35JEWW_cjs.ProjectActionButton; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "ProjectOptionRow", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkGK35JEWW_cjs.ProjectOptionRow; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "ProjectPicker", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkGK35JEWW_cjs.ProjectPicker; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "WorkspaceAudienceLine", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceAudienceLine; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "WorkspaceCard", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceCard; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "WorkspaceFieldsView", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceFieldsView; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "WorkspaceFormModal", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceFormModal; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "WorkspaceGroup", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceGroup; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "WorkspaceIdentityPanel", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceIdentityPanel; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "WorkspaceList", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceList; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "WorkspacePageFrame", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspacePageFrame; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "WorkspaceProjectSlot", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceProjectSlot; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "WorkspaceTypeBadge", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkGK35JEWW_cjs.WorkspaceTypeBadge; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "formatRole", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkGK35JEWW_cjs.formatRole; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "getRoleBadgeClass", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkGK35JEWW_cjs.getRoleBadgeClass; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "getRoleDescription", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkGK35JEWW_cjs.getRoleDescription; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "NO_PROJECT_GROUP_KEY", {
|
|
188
188
|
enumerable: true,
|
package/dist/workspaces/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { WorkspaceCard } from '../chunk-
|
|
3
|
-
export { CommonWorkspaceToggle, DEFAULT_WORKSPACE_CARD_LABELS, ExpandableSection, FormActions, FormErrorBanner, ItalicNone, LeaveFooter, ModalActionRow, PageLoading, ProjectActionButton, ProjectOptionRow, ProjectPicker, WorkspaceAudienceLine, WorkspaceCard, WorkspaceFieldsView, WorkspaceFormModal, WorkspaceGroup, WorkspaceIdentityPanel, WorkspaceList, WorkspacePageFrame, WorkspaceProjectSlot, WorkspaceTypeBadge, formatRole, getRoleBadgeClass, getRoleDescription } from '../chunk-
|
|
2
|
+
import { WorkspaceCard } from '../chunk-BBSXBABG.js';
|
|
3
|
+
export { CommonWorkspaceToggle, DEFAULT_WORKSPACE_CARD_LABELS, ExpandableSection, FormActions, FormErrorBanner, ItalicNone, LeaveFooter, ModalActionRow, PageLoading, ProjectActionButton, ProjectOptionRow, ProjectPicker, WorkspaceAudienceLine, WorkspaceCard, WorkspaceFieldsView, WorkspaceFormModal, WorkspaceGroup, WorkspaceIdentityPanel, WorkspaceList, WorkspacePageFrame, WorkspaceProjectSlot, WorkspaceTypeBadge, formatRole, getRoleBadgeClass, getRoleDescription } from '../chunk-BBSXBABG.js';
|
|
4
4
|
export { NO_PROJECT_GROUP_KEY, WORKSPACE_CATEGORY_FILTERS, byRecentUpdate, getHumanUserCount, getVariantBgClass, getVariantBorderClass, getWorkspaceTypeInfo, groupWorkspacesByProject, isAgentAccount, isListedWorkspace, projectFilterId, workspaceConversationCount, workspaceDocumentCount, workspaceFilterAttributes, workspaceGroupStats } from '../chunk-57CG33XJ.js';
|
|
5
5
|
import '../chunk-WZ63HE2C.js';
|
|
6
6
|
import '../chunk-FUPAGAZB.js';
|
|
7
7
|
export { RoleBadge, WorkspaceTypeBadgeView } from '../chunk-NBV56SGU.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-CMTAOVUX.js';
|
|
9
9
|
import '../chunk-5VYJP6XD.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-TGVBLXLV.js';
|
|
11
11
|
import '../chunk-U4HWVCRN.js';
|
|
12
12
|
import '../chunk-TX2ZICS7.js';
|
|
13
13
|
import '../chunk-7F6CBP3Z.js';
|