@arbidocs/blocks 0.5.147 → 0.5.149
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-6VGATAAQ.cjs → ConnectedCallDock-EASMNJXB.cjs} +20 -20
- package/dist/{ConnectedCallDock-6VGATAAQ.cjs.map → ConnectedCallDock-EASMNJXB.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-YBNERVTW.cjs → ConnectedCallRoom-BWZ2FHXN.cjs} +19 -19
- package/dist/{ConnectedCallRoom-YBNERVTW.cjs.map → ConnectedCallRoom-BWZ2FHXN.cjs.map} +1 -1
- package/dist/{ConnectedMailInviteCard-AJI7JZYJ.cjs → ConnectedMailInviteCard-ITMZRPIP.cjs} +5 -5
- package/dist/{ConnectedMailInviteCard-AJI7JZYJ.cjs.map → ConnectedMailInviteCard-ITMZRPIP.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-MG54YLSO.cjs → ConnectedNativeDocxComparison-4FAJDXPT.cjs} +22 -21
- package/dist/{ConnectedNativeDocxComparison-MG54YLSO.cjs.map → ConnectedNativeDocxComparison-4FAJDXPT.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-JZQFTC5H.cjs → ConnectedPresentation-EIWVV7ON.cjs} +22 -22
- package/dist/{ConnectedPresentation-JZQFTC5H.cjs.map → ConnectedPresentation-EIWVV7ON.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-SDHD5KTG.cjs} +9 -9
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-SDHD5KTG.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-BLR762KY.cjs → ConnectedSlidesTab-4FN5ZRRI.cjs} +21 -21
- package/dist/{ConnectedSlidesTab-BLR762KY.cjs.map → ConnectedSlidesTab-4FN5ZRRI.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-7KZGQECL.cjs → ConnectedStreamedWordArtifact-D7EZFIJ7.cjs} +22 -21
- package/dist/{ConnectedStreamedWordArtifact-7KZGQECL.cjs.map → ConnectedStreamedWordArtifact-D7EZFIJ7.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-UDC4PNIS.cjs → DocumentReviewCard-7MVNPVZC.cjs} +24 -24
- package/dist/{DocumentReviewCard-UDC4PNIS.cjs.map → DocumentReviewCard-7MVNPVZC.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-D5GHWK4Y.cjs → FilesViewerDialog-6363IOTL.cjs} +47 -47
- package/dist/{FilesViewerDialog-D5GHWK4Y.cjs.map → FilesViewerDialog-6363IOTL.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-2NRV4CWP.cjs → WorkspaceTableView-HHATEV2H.cjs} +10 -10
- package/dist/{WorkspaceTableView-2NRV4CWP.cjs.map → WorkspaceTableView-HHATEV2H.cjs.map} +1 -1
- package/dist/agents/index.cjs +398 -378
- package/dist/agents/tasks/WorkflowsTable.d.ts +5 -0
- package/dist/agents/tasks/WorkflowsTable.js +38 -7
- package/dist/agents/tasks/WorkflowsTable.js.map +2 -2
- package/dist/agents/tasks/workflowTableLabels.d.ts +2 -0
- package/dist/agents/tasks/workflowTableLabels.js +2 -1
- package/dist/agents/tasks/workflowTableLabels.js.map +2 -2
- package/dist/agents/workflows/StepParts.d.ts +4 -0
- package/dist/agents/workflows/StepParts.js +6 -1
- package/dist/agents/workflows/StepParts.js.map +2 -2
- package/dist/agents/workflows/index.d.ts +2 -2
- package/dist/agents/workflows/index.js +11 -1
- package/dist/agents/workflows/index.js.map +2 -2
- package/dist/agents/workflows/planSteps.d.ts +10 -1
- package/dist/agents/workflows/planSteps.js +34 -0
- package/dist/agents/workflows/planSteps.js.map +2 -2
- package/dist/agents/workflows/requiredLabels.d.ts +10 -0
- package/dist/agents/workflows/requiredLabels.js +14 -1
- package/dist/agents/workflows/requiredLabels.js.map +2 -2
- package/dist/agents/workflows/run.d.ts +1 -1
- package/dist/agents/workflows/run.js +2 -0
- package/dist/agents/workflows/run.js.map +2 -2
- package/dist/agents/workflows/stepKinds.d.ts +6 -2
- package/dist/agents/workflows/stepKinds.js +15 -3
- package/dist/agents/workflows/stepKinds.js.map +2 -2
- package/dist/agents/workflows/types.d.ts +26 -1
- package/dist/agents/workflows/types.js.map +1 -1
- package/dist/{ai-VLIPYNWP.cjs → ai-NC4ZE3UT.cjs} +30 -30
- package/dist/ai-NC4ZE3UT.cjs.map +1 -0
- package/dist/auth/index.cjs +1 -1
- package/dist/calls/index.cjs +50 -50
- package/dist/chat/index.cjs +80 -80
- package/dist/{chunk-AYWY4MX2.cjs → chunk-2E5AODIC.cjs} +28 -28
- package/dist/{chunk-AYWY4MX2.cjs.map → chunk-2E5AODIC.cjs.map} +1 -1
- package/dist/{chunk-XZMYSDU4.cjs → chunk-2XZJBPBV.cjs} +4 -4
- package/dist/{chunk-XZMYSDU4.cjs.map → chunk-2XZJBPBV.cjs.map} +1 -1
- package/dist/{chunk-ORGGDQKZ.cjs → chunk-2ZH4KVAZ.cjs} +40 -40
- package/dist/{chunk-ORGGDQKZ.cjs.map → chunk-2ZH4KVAZ.cjs.map} +1 -1
- package/dist/{chunk-EYXU32D7.cjs → chunk-3WXAGCUL.cjs} +6 -6
- package/dist/{chunk-EYXU32D7.cjs.map → chunk-3WXAGCUL.cjs.map} +1 -1
- package/dist/{chunk-57LUHZLV.cjs → chunk-43D2KKWT.cjs} +8 -8
- package/dist/{chunk-57LUHZLV.cjs.map → chunk-43D2KKWT.cjs.map} +1 -1
- package/dist/{chunk-L5Q5PDTA.cjs → chunk-43GIESOM.cjs} +4 -4
- package/dist/{chunk-L5Q5PDTA.cjs.map → chunk-43GIESOM.cjs.map} +1 -1
- package/dist/{chunk-ONRUHYW3.cjs → chunk-47NBCI3E.cjs} +4 -4
- package/dist/{chunk-ONRUHYW3.cjs.map → chunk-47NBCI3E.cjs.map} +1 -1
- package/dist/{chunk-MEWRE43W.cjs → chunk-54Y4LWTA.cjs} +107 -101
- package/dist/chunk-54Y4LWTA.cjs.map +1 -0
- package/dist/{chunk-LCIMYEGX.cjs → chunk-5QEPUONH.cjs} +9 -9
- package/dist/{chunk-LCIMYEGX.cjs.map → chunk-5QEPUONH.cjs.map} +1 -1
- package/dist/{chunk-K3ZZ6IH3.cjs → chunk-6IS6TZ7F.cjs} +4 -4
- package/dist/{chunk-K3ZZ6IH3.cjs.map → chunk-6IS6TZ7F.cjs.map} +1 -1
- package/dist/{chunk-C6RJQQLG.cjs → chunk-6KT6BEP4.cjs} +10 -10
- package/dist/{chunk-C6RJQQLG.cjs.map → chunk-6KT6BEP4.cjs.map} +1 -1
- package/dist/{chunk-OA3AN6WW.cjs → chunk-7KSOMWCS.cjs} +4 -4
- package/dist/{chunk-OA3AN6WW.cjs.map → chunk-7KSOMWCS.cjs.map} +1 -1
- package/dist/{chunk-KMOIE2XH.cjs → chunk-7XR6CPCU.cjs} +10 -8
- package/dist/chunk-7XR6CPCU.cjs.map +1 -0
- package/dist/{chunk-MC34TXSS.cjs → chunk-A5ZNAZ7Q.cjs} +17 -17
- package/dist/{chunk-MC34TXSS.cjs.map → chunk-A5ZNAZ7Q.cjs.map} +1 -1
- package/dist/{chunk-ZOU6K6DD.cjs → chunk-AN4YKCBD.cjs} +4 -4
- package/dist/{chunk-ZOU6K6DD.cjs.map → chunk-AN4YKCBD.cjs.map} +1 -1
- package/dist/{chunk-JZQ47OW5.cjs → chunk-C36NH6PR.cjs} +6 -6
- package/dist/{chunk-JZQ47OW5.cjs.map → chunk-C36NH6PR.cjs.map} +1 -1
- package/dist/{chunk-OXPIJYRU.cjs → chunk-C7EGCNLV.cjs} +86 -86
- package/dist/{chunk-OXPIJYRU.cjs.map → chunk-C7EGCNLV.cjs.map} +1 -1
- package/dist/{chunk-LZQ2XZOC.cjs → chunk-CFJAWCVX.cjs} +29 -29
- package/dist/{chunk-LZQ2XZOC.cjs.map → chunk-CFJAWCVX.cjs.map} +1 -1
- package/dist/{chunk-HWZT24TD.cjs → chunk-CRN64MYK.cjs} +165 -75
- package/dist/chunk-CRN64MYK.cjs.map +1 -0
- package/dist/{chunk-UNWDR6GG.cjs → chunk-DHQH4EYB.cjs} +4 -4
- package/dist/{chunk-UNWDR6GG.cjs.map → chunk-DHQH4EYB.cjs.map} +1 -1
- package/dist/{chunk-SD7GUB44.cjs → chunk-F4ULSAOA.cjs} +4 -4
- package/dist/{chunk-SD7GUB44.cjs.map → chunk-F4ULSAOA.cjs.map} +1 -1
- package/dist/{chunk-2VEQKLNN.cjs → chunk-FHNWK5RO.cjs} +8 -8
- package/dist/{chunk-2VEQKLNN.cjs.map → chunk-FHNWK5RO.cjs.map} +1 -1
- package/dist/{chunk-ZM6B5WJW.cjs → chunk-FPSHZW4W.cjs} +4 -4
- package/dist/{chunk-ZM6B5WJW.cjs.map → chunk-FPSHZW4W.cjs.map} +1 -1
- package/dist/{chunk-GAA222SK.cjs → chunk-FZASPI2Q.cjs} +5 -5
- package/dist/{chunk-GAA222SK.cjs.map → chunk-FZASPI2Q.cjs.map} +1 -1
- package/dist/{chunk-OUGRCQM7.cjs → chunk-GAVQFR6P.cjs} +4 -4
- package/dist/{chunk-OUGRCQM7.cjs.map → chunk-GAVQFR6P.cjs.map} +1 -1
- package/dist/{chunk-VCDD763Y.cjs → chunk-GPP7E3OQ.cjs} +4 -4
- package/dist/{chunk-VCDD763Y.cjs.map → chunk-GPP7E3OQ.cjs.map} +1 -1
- package/dist/{chunk-VLHBKF4P.cjs → chunk-H5ITWXUA.cjs} +5 -5
- package/dist/{chunk-VLHBKF4P.cjs.map → chunk-H5ITWXUA.cjs.map} +1 -1
- package/dist/{chunk-AGL7Z6Y2.cjs → chunk-H7SGZN33.cjs} +21 -21
- package/dist/{chunk-AGL7Z6Y2.cjs.map → chunk-H7SGZN33.cjs.map} +1 -1
- package/dist/{chunk-WNAZM2YS.cjs → chunk-HZF3YPEG.cjs} +4 -4
- package/dist/{chunk-WNAZM2YS.cjs.map → chunk-HZF3YPEG.cjs.map} +1 -1
- package/dist/{chunk-VF26CUE3.cjs → chunk-IIOFQKQV.cjs} +28 -28
- package/dist/{chunk-VF26CUE3.cjs.map → chunk-IIOFQKQV.cjs.map} +1 -1
- package/dist/{chunk-7AULM6LS.cjs → chunk-J5YEEWZT.cjs} +7 -7
- package/dist/{chunk-7AULM6LS.cjs.map → chunk-J5YEEWZT.cjs.map} +1 -1
- package/dist/{chunk-73ECBDG7.cjs → chunk-JARBYN6Z.cjs} +48 -14
- package/dist/chunk-JARBYN6Z.cjs.map +1 -0
- package/dist/{chunk-YZ25NAR3.cjs → chunk-JARRHAQW.cjs} +17 -17
- package/dist/{chunk-YZ25NAR3.cjs.map → chunk-JARRHAQW.cjs.map} +1 -1
- package/dist/{chunk-6THN5ZGA.cjs → chunk-JOYB727S.cjs} +4 -4
- package/dist/{chunk-6THN5ZGA.cjs.map → chunk-JOYB727S.cjs.map} +1 -1
- package/dist/{chunk-ECSOXKJQ.cjs → chunk-JZWLIOTP.cjs} +6 -6
- package/dist/{chunk-ECSOXKJQ.cjs.map → chunk-JZWLIOTP.cjs.map} +1 -1
- package/dist/{chunk-ZCVW63DF.cjs → chunk-LXQMTVAB.cjs} +15 -15
- package/dist/{chunk-ZCVW63DF.cjs.map → chunk-LXQMTVAB.cjs.map} +1 -1
- package/dist/{chunk-7D4WXUBS.cjs → chunk-M55XUF4L.cjs} +7 -7
- package/dist/{chunk-7D4WXUBS.cjs.map → chunk-M55XUF4L.cjs.map} +1 -1
- package/dist/{chunk-S5OGPQSB.cjs → chunk-MHGZZ6IJ.cjs} +6 -6
- package/dist/{chunk-S5OGPQSB.cjs.map → chunk-MHGZZ6IJ.cjs.map} +1 -1
- package/dist/{chunk-FK7MBD5H.cjs → chunk-MIYEIACV.cjs} +14 -14
- package/dist/{chunk-FK7MBD5H.cjs.map → chunk-MIYEIACV.cjs.map} +1 -1
- package/dist/{chunk-G5YLJ2YT.cjs → chunk-MKJBEL4W.cjs} +4 -4
- package/dist/{chunk-G5YLJ2YT.cjs.map → chunk-MKJBEL4W.cjs.map} +1 -1
- package/dist/{chunk-F6F375V7.cjs → chunk-NVECYF2N.cjs} +7 -7
- package/dist/{chunk-F6F375V7.cjs.map → chunk-NVECYF2N.cjs.map} +1 -1
- package/dist/{chunk-YKOPKLYP.cjs → chunk-P2K4XL4T.cjs} +4 -4
- package/dist/{chunk-YKOPKLYP.cjs.map → chunk-P2K4XL4T.cjs.map} +1 -1
- package/dist/{chunk-KWV4VC74.cjs → chunk-SDGE2F77.cjs} +6 -6
- package/dist/{chunk-KWV4VC74.cjs.map → chunk-SDGE2F77.cjs.map} +1 -1
- package/dist/{chunk-P5TQOSKA.cjs → chunk-SK6BONXE.cjs} +6 -6
- package/dist/{chunk-P5TQOSKA.cjs.map → chunk-SK6BONXE.cjs.map} +1 -1
- package/dist/{chunk-XPQR2PJX.cjs → chunk-SQCCQU3K.cjs} +2 -2
- package/dist/chunk-SQCCQU3K.cjs.map +1 -0
- package/dist/{chunk-AZQ4XIVY.cjs → chunk-SQHR7564.cjs} +134 -134
- package/dist/{chunk-AZQ4XIVY.cjs.map → chunk-SQHR7564.cjs.map} +1 -1
- package/dist/{chunk-JJDJLAC7.cjs → chunk-STFIBNND.cjs} +34 -34
- package/dist/{chunk-JJDJLAC7.cjs.map → chunk-STFIBNND.cjs.map} +1 -1
- package/dist/{chunk-DUNXLT63.cjs → chunk-TJDCTRB5.cjs} +3 -3
- package/dist/{chunk-DUNXLT63.cjs.map → chunk-TJDCTRB5.cjs.map} +1 -1
- package/dist/{chunk-CENMN32L.cjs → chunk-U2HDSS5R.cjs} +6 -6
- package/dist/{chunk-CENMN32L.cjs.map → chunk-U2HDSS5R.cjs.map} +1 -1
- package/dist/{chunk-EF2QQBDV.cjs → chunk-UGSN47YE.cjs} +5 -5
- package/dist/{chunk-EF2QQBDV.cjs.map → chunk-UGSN47YE.cjs.map} +1 -1
- package/dist/{chunk-6RC6GYIW.cjs → chunk-UHEOY35C.cjs} +4 -4
- package/dist/{chunk-6RC6GYIW.cjs.map → chunk-UHEOY35C.cjs.map} +1 -1
- package/dist/{chunk-2XZ3HBAA.cjs → chunk-UHT2Q6IF.cjs} +30 -30
- package/dist/{chunk-2XZ3HBAA.cjs.map → chunk-UHT2Q6IF.cjs.map} +1 -1
- package/dist/{chunk-5RMVFFVW.cjs → chunk-VHD5DZW4.cjs} +7 -7
- package/dist/{chunk-5RMVFFVW.cjs.map → chunk-VHD5DZW4.cjs.map} +1 -1
- package/dist/{chunk-LIKDQBNJ.cjs → chunk-VMXTOIXB.cjs} +8 -3
- package/dist/chunk-VMXTOIXB.cjs.map +1 -0
- package/dist/{chunk-SK6LFIU2.cjs → chunk-WREXDEOM.cjs} +11 -11
- package/dist/{chunk-SK6LFIU2.cjs.map → chunk-WREXDEOM.cjs.map} +1 -1
- package/dist/{chunk-FHKBR55Q.cjs → chunk-WSUHF676.cjs} +5 -5
- package/dist/{chunk-FHKBR55Q.cjs.map → chunk-WSUHF676.cjs.map} +1 -1
- package/dist/{chunk-JJZOL5MG.cjs → chunk-WXMD4AA4.cjs} +34 -10
- package/dist/chunk-WXMD4AA4.cjs.map +1 -0
- package/dist/{chunk-GF3I3SA4.cjs → chunk-X5H2STK4.cjs} +12 -12
- package/dist/{chunk-GF3I3SA4.cjs.map → chunk-X5H2STK4.cjs.map} +1 -1
- package/dist/{chunk-5TT6J67U.cjs → chunk-X6QGVLMV.cjs} +21 -21
- package/dist/{chunk-5TT6J67U.cjs.map → chunk-X6QGVLMV.cjs.map} +1 -1
- package/dist/{chunk-T6WA6S5T.cjs → chunk-XFZKPEUD.cjs} +4 -4
- package/dist/{chunk-T6WA6S5T.cjs.map → chunk-XFZKPEUD.cjs.map} +1 -1
- package/dist/{chunk-I2LJ7RZ2.cjs → chunk-Y3GJBLAI.cjs} +10 -8
- package/dist/chunk-Y3GJBLAI.cjs.map +1 -0
- package/dist/{chunk-IFJBE7M5.cjs → chunk-YV36BZE7.cjs} +10 -10
- package/dist/{chunk-IFJBE7M5.cjs.map → chunk-YV36BZE7.cjs.map} +1 -1
- package/dist/{chunk-3VPNL4EH.cjs → chunk-ZLJP6447.cjs} +135 -117
- package/dist/chunk-ZLJP6447.cjs.map +1 -0
- package/dist/{chunk-YST6GVN5.cjs → chunk-ZUYY3JRO.cjs} +18 -18
- package/dist/{chunk-YST6GVN5.cjs.map → chunk-ZUYY3JRO.cjs.map} +1 -1
- package/dist/citations/index.cjs +8 -8
- package/dist/collaboration/index.cjs +13 -13
- package/dist/connect/docx.cjs +25 -24
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/index.cjs +1453 -1453
- package/dist/connect/viewer.cjs +32 -32
- package/dist/connection/ConnectedWorkflowsTable.js +77 -52
- package/dist/connection/ConnectedWorkflowsTable.js.map +2 -2
- package/dist/connection/useWorkflowThread.d.ts +6 -0
- package/dist/connection/useWorkflowThread.js +10 -3
- package/dist/connection/useWorkflowThread.js.map +2 -2
- package/dist/connection/workflows/ConnectedSavedWorkflowRun.d.ts +29 -0
- package/dist/connection/workflows/ConnectedSavedWorkflowRun.js +48 -0
- package/dist/connection/workflows/ConnectedSavedWorkflowRun.js.map +7 -0
- package/dist/connection/workflows/ConnectedWorkflowsPage.js +29 -1
- package/dist/connection/workflows/ConnectedWorkflowsPage.js.map +2 -2
- package/dist/connection/workflows/StartWorkflowInDialog.d.ts +23 -0
- package/dist/connection/workflows/StartWorkflowInDialog.js +75 -0
- package/dist/connection/workflows/StartWorkflowInDialog.js.map +7 -0
- package/dist/connection/workflows/useWorkflowsPageState.d.ts +3 -0
- package/dist/dashboards/index.cjs +18 -18
- package/dist/embed/index.cjs +46 -46
- package/dist/facts/index.cjs +45 -45
- package/dist/files/index.cjs +229 -229
- package/dist/home/index.cjs +33 -33
- package/dist/index.cjs +707 -687
- package/dist/office/index.cjs +5 -5
- package/dist/pages/index.cjs +14 -14
- package/dist/provider/environment.d.ts +5 -0
- package/dist/provider/environment.js +6 -1
- package/dist/provider/environment.js.map +2 -2
- package/dist/provider/requests.d.ts +2 -0
- package/dist/provider/requests.js.map +2 -2
- package/dist/retrieval/index.cjs +4 -4
- package/dist/settings/index.cjs +148 -148
- package/dist/shell/index.cjs +56 -56
- package/dist/studio/index.cjs +39 -39
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/WorkflowBuilder.js +2 -1
- package/dist/workflow-canvas/WorkflowBuilder.js.map +2 -2
- package/dist/workflow-canvas/WorkflowCanvas.d.ts +1 -0
- package/dist/workflow-canvas/WorkflowCanvas.js +3 -1
- package/dist/workflow-canvas/WorkflowCanvas.js.map +2 -2
- package/dist/workflow-canvas/edit.js +17 -1
- package/dist/workflow-canvas/edit.js.map +2 -2
- package/dist/workflow-canvas/index.cjs +196 -112
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/trigger.js +6 -2
- package/dist/workflow-canvas/trigger.js.map +2 -2
- package/dist/workspaces/index.cjs +18 -18
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/blocks.css +1 -0
- package/dist/ai-VLIPYNWP.cjs.map +0 -1
- package/dist/chunk-3VPNL4EH.cjs.map +0 -1
- package/dist/chunk-73ECBDG7.cjs.map +0 -1
- package/dist/chunk-HWZT24TD.cjs.map +0 -1
- package/dist/chunk-I2LJ7RZ2.cjs.map +0 -1
- package/dist/chunk-JJZOL5MG.cjs.map +0 -1
- package/dist/chunk-KMOIE2XH.cjs.map +0 -1
- package/dist/chunk-LIKDQBNJ.cjs.map +0 -1
- package/dist/chunk-MEWRE43W.cjs.map +0 -1
- package/dist/chunk-XPQR2PJX.cjs.map +0 -1
|
@@ -3,31 +3,31 @@
|
|
|
3
3
|
|
|
4
4
|
var chunk32W2S6DE_cjs = require('./chunk-32W2S6DE.cjs');
|
|
5
5
|
var chunkKWJW5TMH_cjs = require('./chunk-KWJW5TMH.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
6
|
+
var chunkCFJAWCVX_cjs = require('./chunk-CFJAWCVX.cjs');
|
|
7
|
+
var chunk47NBCI3E_cjs = require('./chunk-47NBCI3E.cjs');
|
|
8
|
+
var chunkZUYY3JRO_cjs = require('./chunk-ZUYY3JRO.cjs');
|
|
9
|
+
var chunkTJDCTRB5_cjs = require('./chunk-TJDCTRB5.cjs');
|
|
10
|
+
var chunkCRN64MYK_cjs = require('./chunk-CRN64MYK.cjs');
|
|
11
|
+
var chunk7KSOMWCS_cjs = require('./chunk-7KSOMWCS.cjs');
|
|
12
|
+
var chunkMIYEIACV_cjs = require('./chunk-MIYEIACV.cjs');
|
|
13
|
+
var chunkU2HDSS5R_cjs = require('./chunk-U2HDSS5R.cjs');
|
|
14
|
+
var chunkP2K4XL4T_cjs = require('./chunk-P2K4XL4T.cjs');
|
|
13
15
|
var chunkOUYBYZ7Y_cjs = require('./chunk-OUYBYZ7Y.cjs');
|
|
14
16
|
var chunkZ3LFF3YT_cjs = require('./chunk-Z3LFF3YT.cjs');
|
|
15
17
|
var chunkNSD37OF5_cjs = require('./chunk-NSD37OF5.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
18
|
+
var chunkZLJP6447_cjs = require('./chunk-ZLJP6447.cjs');
|
|
19
|
+
var chunkJARBYN6Z_cjs = require('./chunk-JARBYN6Z.cjs');
|
|
20
|
+
var chunkM55XUF4L_cjs = require('./chunk-M55XUF4L.cjs');
|
|
21
|
+
var chunkWXMD4AA4_cjs = require('./chunk-WXMD4AA4.cjs');
|
|
22
|
+
var chunkJARRHAQW_cjs = require('./chunk-JARRHAQW.cjs');
|
|
21
23
|
var chunkQUMUAJ2P_cjs = require('./chunk-QUMUAJ2P.cjs');
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var chunkI2LJ7RZ2_cjs = require('./chunk-I2LJ7RZ2.cjs');
|
|
28
|
-
var chunkXPQR2PJX_cjs = require('./chunk-XPQR2PJX.cjs');
|
|
24
|
+
var chunk2XZJBPBV_cjs = require('./chunk-2XZJBPBV.cjs');
|
|
25
|
+
var chunkX6QGVLMV_cjs = require('./chunk-X6QGVLMV.cjs');
|
|
26
|
+
var chunk7XR6CPCU_cjs = require('./chunk-7XR6CPCU.cjs');
|
|
27
|
+
var chunkY3GJBLAI_cjs = require('./chunk-Y3GJBLAI.cjs');
|
|
28
|
+
var chunkSQCCQU3K_cjs = require('./chunk-SQCCQU3K.cjs');
|
|
29
29
|
var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
|
|
30
|
-
var
|
|
30
|
+
var chunkVMXTOIXB_cjs = require('./chunk-VMXTOIXB.cjs');
|
|
31
31
|
var chunkCVPV4I7Z_cjs = require('./chunk-CVPV4I7Z.cjs');
|
|
32
32
|
var react = require('@arbidocs/react');
|
|
33
33
|
var react$1 = require('react');
|
|
@@ -64,13 +64,13 @@ function ConnectedTaskComposer({
|
|
|
64
64
|
initialAgentExtId,
|
|
65
65
|
initialParentTaskExtId
|
|
66
66
|
}) {
|
|
67
|
-
const { notify, openConversation, openUpload } =
|
|
68
|
-
const openWorkflow =
|
|
67
|
+
const { notify, openConversation, openUpload } = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
68
|
+
const openWorkflow = chunk7KSOMWCS_cjs.useOpenWorkflow();
|
|
69
69
|
const automationsEnabled = openWorkflow !== void 0;
|
|
70
70
|
const startLater = startLaterProp && automationsEnabled;
|
|
71
71
|
const isWorkflow = kind === "workflow";
|
|
72
72
|
const isEdit = isWorkflow ? !!editingWorkflow : !!task;
|
|
73
|
-
const { forTasks: baseSkills, skills } =
|
|
73
|
+
const { forTasks: baseSkills, skills } = chunkZUYY3JRO_cjs.useWorkflowDefinitions();
|
|
74
74
|
const { data: reviewFields = [] } = react.useTags();
|
|
75
75
|
const scheduledSkills = react$1.useMemo(
|
|
76
76
|
() => [
|
|
@@ -129,8 +129,8 @@ function ConnectedTaskComposer({
|
|
|
129
129
|
const { data: workspaces = [] } = react.useWorkspaces();
|
|
130
130
|
const { tasks: allTasks } = react.useWorkItems();
|
|
131
131
|
const { data: documents = [] } = react.useDocuments();
|
|
132
|
-
const { create, update, updateWorkflow, isPending } =
|
|
133
|
-
const scopeSource =
|
|
132
|
+
const { create, update, updateWorkflow, isPending } = chunkZUYY3JRO_cjs.useWorkflowTasks();
|
|
133
|
+
const scopeSource = chunkMIYEIACV_cjs.useConnectedWorkflowScopeSource();
|
|
134
134
|
const activeWorkspaceId = react.useArbiSessionState((s) => s.workspaceId);
|
|
135
135
|
const planWork = react.usePlanWork(activeWorkspaceId);
|
|
136
136
|
const activeWorkspace = react$1.useMemo(
|
|
@@ -148,7 +148,7 @@ function ConnectedTaskComposer({
|
|
|
148
148
|
const label = (t) => t.title?.trim() || "Untitled task";
|
|
149
149
|
if (isWorkflow) return allTasks.map((t) => ({ id: t.external_id, name: label(t) }));
|
|
150
150
|
const subject = task ?? { external_id: "__new__" };
|
|
151
|
-
return
|
|
151
|
+
return chunkZLJP6447_cjs.moveTargets(
|
|
152
152
|
[...allTasks.filter((t) => t.external_id !== subject.external_id), subject],
|
|
153
153
|
subject
|
|
154
154
|
).map((t) => ({ id: t.external_id, name: label(t) }));
|
|
@@ -163,33 +163,33 @@ function ConnectedTaskComposer({
|
|
|
163
163
|
);
|
|
164
164
|
const initialValues = react$1.useMemo(() => {
|
|
165
165
|
const ids = {
|
|
166
|
-
customWorkflowId:
|
|
167
|
-
reminderWorkflowId:
|
|
166
|
+
customWorkflowId: chunkM55XUF4L_cjs.CUSTOM_TASK_ID,
|
|
167
|
+
reminderWorkflowId: chunkM55XUF4L_cjs.REMIND_TASK_ID,
|
|
168
168
|
definitions: forTasks
|
|
169
169
|
};
|
|
170
170
|
const base = launchWorkflow ? {
|
|
171
|
-
...
|
|
171
|
+
...chunkM55XUF4L_cjs.workflowToComposerValues(launchWorkflow, ids),
|
|
172
172
|
when: "once",
|
|
173
173
|
runAt: "",
|
|
174
174
|
rrule: "",
|
|
175
175
|
eventKind: "",
|
|
176
176
|
afterTaskId: "",
|
|
177
177
|
name: ""
|
|
178
|
-
} : editingWorkflow ?
|
|
178
|
+
} : editingWorkflow ? chunkM55XUF4L_cjs.workflowToComposerValues(editingWorkflow, ids) : task ? chunkM55XUF4L_cjs.taskToComposerValues(task, ids) : isWorkflow ? {
|
|
179
179
|
// Run now is the default start; scheduling is the fallback in the same field.
|
|
180
180
|
assignee: "agent",
|
|
181
|
-
workflowId: initialWorkflowId ??
|
|
181
|
+
workflowId: initialWorkflowId ?? chunkM55XUF4L_cjs.CUSTOM_TASK_ID,
|
|
182
182
|
when: startLater ? "once" : "now",
|
|
183
183
|
...initialPrompt ? {
|
|
184
184
|
inputs: {
|
|
185
|
-
[initialWorkflowId ===
|
|
185
|
+
[initialWorkflowId === chunkM55XUF4L_cjs.REMIND_TASK_ID ? "message" : "instruction"]: initialPrompt
|
|
186
186
|
}
|
|
187
187
|
} : {},
|
|
188
188
|
// A scheduled run needs an agent: the owner's Assistant unless another is picked.
|
|
189
189
|
...startLater && defaultAgentId ? { agentId: defaultAgentId } : {}
|
|
190
190
|
} : initialAgentExtId ? (
|
|
191
191
|
// Assigning an agent means agentic work: the free instruction, and tell me when done.
|
|
192
|
-
{ agentId: initialAgentExtId, workflowId:
|
|
192
|
+
{ agentId: initialAgentExtId, workflowId: chunkM55XUF4L_cjs.CUSTOM_TASK_ID, notifyOnComplete: true }
|
|
193
193
|
) : {};
|
|
194
194
|
return {
|
|
195
195
|
timezone: chunkQUMUAJ2P_cjs.detectTimeZone(),
|
|
@@ -250,7 +250,7 @@ function ConnectedTaskComposer({
|
|
|
250
250
|
const ctx = {
|
|
251
251
|
workflow: chosen,
|
|
252
252
|
values: submitted,
|
|
253
|
-
plan: chosen.id ===
|
|
253
|
+
plan: chosen.id === chunkM55XUF4L_cjs.CUSTOM_TASK_ID ? plan : null
|
|
254
254
|
};
|
|
255
255
|
try {
|
|
256
256
|
if (isWorkflow && editingWorkflow && !options?.runOnce) {
|
|
@@ -286,7 +286,7 @@ function ConnectedTaskComposer({
|
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
288
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
289
|
-
|
|
289
|
+
chunkZLJP6447_cjs.TaskComposer,
|
|
290
290
|
{
|
|
291
291
|
open,
|
|
292
292
|
onOpenChange,
|
|
@@ -300,15 +300,15 @@ function ConnectedTaskComposer({
|
|
|
300
300
|
tasks: taskOptions,
|
|
301
301
|
initialValues,
|
|
302
302
|
timezones,
|
|
303
|
-
eventOptions:
|
|
303
|
+
eventOptions: chunkJARBYN6Z_cjs.AUTOMATION_EVENTS,
|
|
304
304
|
eventWorkflowOptions: workspaceAutomations.filter((item) => item.external_id !== editingWorkflow?.external_id).map((item) => ({ id: item.external_id, label: item.name })),
|
|
305
305
|
isPending,
|
|
306
306
|
planDrafting: planWork.isPending,
|
|
307
307
|
hasPlan: plan !== null,
|
|
308
|
-
renderIcon:
|
|
308
|
+
renderIcon: chunkM55XUF4L_cjs.renderWorkflowIcon,
|
|
309
309
|
scopeSource,
|
|
310
310
|
renderDocuments: (field, value, onChange) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
311
|
-
|
|
311
|
+
chunkMIYEIACV_cjs.ConnectedWorkflowDocumentsField,
|
|
312
312
|
{
|
|
313
313
|
field,
|
|
314
314
|
value,
|
|
@@ -339,8 +339,8 @@ function ConnectedTaskComposer({
|
|
|
339
339
|
...plan ? { addAndStart: "Approve plan and start", addAndSchedule: "Approve plan and schedule" } : {}
|
|
340
340
|
},
|
|
341
341
|
onSubmit: submit,
|
|
342
|
-
goal: (values) => values.workflowId ===
|
|
343
|
-
|
|
342
|
+
goal: (values) => values.workflowId === chunkM55XUF4L_cjs.CUSTOM_TASK_ID ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
343
|
+
chunkZLJP6447_cjs.TaskPlan,
|
|
344
344
|
{
|
|
345
345
|
plan,
|
|
346
346
|
onChange: setPlan,
|
|
@@ -383,10 +383,10 @@ function ConnectedWorkflowHistory({
|
|
|
383
383
|
renderErrorReport,
|
|
384
384
|
labels
|
|
385
385
|
}) {
|
|
386
|
-
const { openConversation } =
|
|
386
|
+
const { openConversation } = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
387
387
|
const { data: runs = [], isLoading } = react.useWorkflowRuns(workflow?.external_id);
|
|
388
388
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
389
|
-
|
|
389
|
+
chunkZLJP6447_cjs.TaskRunsDialog,
|
|
390
390
|
{
|
|
391
391
|
inline,
|
|
392
392
|
hideHeader,
|
|
@@ -420,15 +420,15 @@ function ConnectedTaskActivityDialog({
|
|
|
420
420
|
}) {
|
|
421
421
|
const activity = react.useConversationActivity(conversationId, { live });
|
|
422
422
|
const { data: agents = [] } = react.useAgents();
|
|
423
|
-
const { userId } =
|
|
424
|
-
const { members } =
|
|
423
|
+
const { userId } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
424
|
+
const { members } = chunkCRN64MYK_cjs.useConnectedWorkspaceRole();
|
|
425
425
|
const renderPerson = react$1.useCallback(
|
|
426
426
|
(id) => {
|
|
427
427
|
const isMe = !!id && id === userId;
|
|
428
428
|
const member = members.find((m) => m.user.external_id === id)?.user;
|
|
429
429
|
const name = member && [member.given_name, member.family_name].filter(Boolean).join(" ") || member?.email;
|
|
430
430
|
const person = { id, label: isMe ? "You" : name || "Someone", isMe };
|
|
431
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkWXMD4AA4_cjs.PersonPill, { person });
|
|
432
432
|
},
|
|
433
433
|
[userId, members]
|
|
434
434
|
);
|
|
@@ -437,7 +437,7 @@ function ConnectedTaskActivityDialog({
|
|
|
437
437
|
[agents]
|
|
438
438
|
);
|
|
439
439
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
-
|
|
440
|
+
chunkZLJP6447_cjs.TaskActivityDialog,
|
|
441
441
|
{
|
|
442
442
|
open: true,
|
|
443
443
|
onOpenChange: (open) => !open && onClose(),
|
|
@@ -474,7 +474,7 @@ function useRenderTaskPerson() {
|
|
|
474
474
|
return react$1.useCallback(
|
|
475
475
|
(person) => {
|
|
476
476
|
const user = person.id ? byId.get(person.id) : void 0;
|
|
477
|
-
return user ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
477
|
+
return user ? /* @__PURE__ */ jsxRuntime.jsx(chunk47NBCI3E_cjs.DocumentUser, { user, variant: "pill" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkWXMD4AA4_cjs.PersonPill, { person });
|
|
478
478
|
},
|
|
479
479
|
[byId]
|
|
480
480
|
);
|
|
@@ -487,7 +487,7 @@ function ConnectedThreadTaskBar({
|
|
|
487
487
|
renderIcon
|
|
488
488
|
}) {
|
|
489
489
|
const { conversations } = react.useConversationItems();
|
|
490
|
-
const { activity, items, related, signals, startedBy } =
|
|
490
|
+
const { activity, items, related, signals, startedBy } = chunkCFJAWCVX_cjs.useConnectedThreadActivity(conversationId);
|
|
491
491
|
const canEditShared = react.useCanEditShared();
|
|
492
492
|
const update = react.useUpdateConversation();
|
|
493
493
|
const actOnStep = react.useActOnStep();
|
|
@@ -501,7 +501,7 @@ function ConnectedThreadTaskBar({
|
|
|
501
501
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
502
502
|
const { data: documents = [] } = react.useDocuments();
|
|
503
503
|
const me = react.useArbiSession().user?.external_id;
|
|
504
|
-
const { notify, openDatabases, openDocument, openFiles, openMail } =
|
|
504
|
+
const { notify, openDatabases, openDocument, openFiles, openMail } = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
505
505
|
const [, openRequestAt] = react.useTransientView(react.DATABASES_OPEN_VIEW, null);
|
|
506
506
|
const task = conversations.find((c) => c.external_id === conversationId);
|
|
507
507
|
if (!conversationId) return null;
|
|
@@ -509,8 +509,8 @@ function ConnectedThreadTaskBar({
|
|
|
509
509
|
const person = members.find((m) => m.user.external_id === id)?.user;
|
|
510
510
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
511
511
|
};
|
|
512
|
-
const steps =
|
|
513
|
-
const states =
|
|
512
|
+
const steps = chunkJARBYN6Z_cjs.fromPlanSteps(task?.plan?.steps ?? []);
|
|
513
|
+
const states = chunkY3GJBLAI_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
514
514
|
const runInputs = task?.skill_inputs ?? {};
|
|
515
515
|
const stepCall = (body) => actOnStep.mutateAsync({ conversationId, body });
|
|
516
516
|
const uploadToRun = async (files) => {
|
|
@@ -536,18 +536,18 @@ function ConnectedThreadTaskBar({
|
|
|
536
536
|
).finally(() => setBusy(false));
|
|
537
537
|
};
|
|
538
538
|
const strip = /* @__PURE__ */ jsxRuntime.jsx(
|
|
539
|
-
|
|
539
|
+
chunkZLJP6447_cjs.WorkflowThreadStrip,
|
|
540
540
|
{
|
|
541
541
|
renderIcon,
|
|
542
542
|
...variant === "steps" ? { maxSpan: 3, current: currentStepId, onSelectStep } : {},
|
|
543
543
|
steps,
|
|
544
544
|
states,
|
|
545
545
|
items,
|
|
546
|
-
assigneeOf: (step) =>
|
|
546
|
+
assigneeOf: (step) => chunkY3GJBLAI_cjs.canAssign(step) ? chunkY3GJBLAI_cjs.assigneeName(step.assignee, {
|
|
547
547
|
// A step that is the viewer's own reads "Waiting for you".
|
|
548
548
|
nameOf: (id) => id === me ? "you" : nameOf(id),
|
|
549
549
|
inputs: runInputs,
|
|
550
|
-
fields:
|
|
550
|
+
fields: chunkY3GJBLAI_cjs.runFieldsOf(steps),
|
|
551
551
|
announcedTo: states[step.id]?.announcedTo
|
|
552
552
|
}) : void 0,
|
|
553
553
|
signals,
|
|
@@ -556,7 +556,7 @@ function ConnectedThreadTaskBar({
|
|
|
556
556
|
const doc = documents.find((d) => d.external_id === id);
|
|
557
557
|
return doc ? ui.getDocumentTitle(doc) : void 0;
|
|
558
558
|
},
|
|
559
|
-
onOpenDocument: (ref) => openDocument(
|
|
559
|
+
onOpenDocument: (ref) => openDocument(chunkY3GJBLAI_cjs.splitDocRef(ref).id),
|
|
560
560
|
inputs: runInputs,
|
|
561
561
|
nameOf: (id) => id === me ? "you" : nameOf(id),
|
|
562
562
|
onSkip: canEdit ? (step) => void actOnStep.mutateAsync({ conversationId, body: { step, action: "skip" } }).catch(
|
|
@@ -565,7 +565,7 @@ function ConnectedThreadTaskBar({
|
|
|
565
565
|
renderStepAction: (step, phase) => (
|
|
566
566
|
// A signer or a draft's person acts on their step even on a thread they cannot edit.
|
|
567
567
|
canEdit || phase === "waiting" || phase === "done" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
568
|
-
|
|
568
|
+
chunkZLJP6447_cjs.WorkflowStepAction,
|
|
569
569
|
{
|
|
570
570
|
step,
|
|
571
571
|
phase,
|
|
@@ -607,8 +607,8 @@ function ConnectedThreadTaskBar({
|
|
|
607
607
|
// A workflow run: its named steps, with what happened in the thread under each.
|
|
608
608
|
strip
|
|
609
609
|
) : items.length || startedBy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
610
|
-
startedBy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
611
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
610
|
+
startedBy && /* @__PURE__ */ jsxRuntime.jsx(chunkZLJP6447_cjs.WorkflowThreadStartedBy, { origin: startedBy }),
|
|
611
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkJARBYN6Z_cjs.TaskFlow, { items: items.filter((item) => !item.step) })
|
|
612
612
|
] }) : (
|
|
613
613
|
// Ordinary chats record no activity events, so an empty ribbon says nothing rather than
|
|
614
614
|
// "No recorded activity yet" while the answer and its steps are right there in the thread.
|
|
@@ -693,7 +693,7 @@ function ConnectedThreadTaskBar({
|
|
|
693
693
|
] }),
|
|
694
694
|
error && /* @__PURE__ */ jsxRuntime.jsx("span", { role: "alert", className: "text-xs text-destructive", children: error }),
|
|
695
695
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
696
|
-
|
|
696
|
+
chunkTJDCTRB5_cjs.RenameDialog,
|
|
697
697
|
{
|
|
698
698
|
open: renameOpen,
|
|
699
699
|
onClose: () => setRenameOpen(false),
|
|
@@ -726,7 +726,7 @@ ${labels.map((l) => `${l.key}=${l.name}`).join("\n")}`;
|
|
|
726
726
|
if (known) return known;
|
|
727
727
|
const setUp = (async () => {
|
|
728
728
|
const existing = await arbi.tags.list({ workspaceId });
|
|
729
|
-
const { ids, missing } =
|
|
729
|
+
const { ids, missing } = chunkZLJP6447_cjs.matchRequiredLabels(labels, existing);
|
|
730
730
|
for (const label of missing) {
|
|
731
731
|
const tag = await createTag({
|
|
732
732
|
name: label.name,
|
|
@@ -976,9 +976,9 @@ function useWorkflowRunTarget({
|
|
|
976
976
|
workspaceId: fixedWorkspace,
|
|
977
977
|
onProjectCreated
|
|
978
978
|
}) {
|
|
979
|
-
const { workspaceId: open } =
|
|
979
|
+
const { workspaceId: open } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
980
980
|
const session = react.useArbiSessionStore();
|
|
981
|
-
const selectWorkspace =
|
|
981
|
+
const selectWorkspace = chunkCFJAWCVX_cjs.useSelectWorkspace();
|
|
982
982
|
const createProject = react.useCreateProject();
|
|
983
983
|
const { mutateAsync: updateProject } = react.useUpdateProjectFields();
|
|
984
984
|
const { mutateAsync: updateWorkspace } = react.useUpdateWorkspace();
|
|
@@ -1130,13 +1130,13 @@ function WorkflowRunProjectChooser({
|
|
|
1130
1130
|
landing: "chat"
|
|
1131
1131
|
};
|
|
1132
1132
|
const [adding, setAdding] = react$1.useState(false);
|
|
1133
|
-
const [values, setValues] = react$1.useState(() =>
|
|
1133
|
+
const [values, setValues] = react$1.useState(() => chunkSQCCQU3K_cjs.defaultInputs(form));
|
|
1134
1134
|
const [error, setError] = react$1.useState(null);
|
|
1135
1135
|
const formRef = react$1.useRef(null);
|
|
1136
1136
|
react$1.useEffect(() => {
|
|
1137
1137
|
if (adding) formRef.current?.querySelector("input, textarea")?.focus();
|
|
1138
1138
|
}, [adding]);
|
|
1139
|
-
const problems =
|
|
1139
|
+
const problems = chunkSQCCQU3K_cjs.validateInputs(form, values);
|
|
1140
1140
|
const complete = Object.keys(problems).length === 0;
|
|
1141
1141
|
const missing = fields.filter((f) => problems[f.name]).map((f) => f.label);
|
|
1142
1142
|
const options = react$1.useMemo(
|
|
@@ -1185,7 +1185,7 @@ function WorkflowRunProjectChooser({
|
|
|
1185
1185
|
"data-testid": `${testId}-new-project`,
|
|
1186
1186
|
children: [
|
|
1187
1187
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1188
|
-
|
|
1188
|
+
chunkJARRHAQW_cjs.SchemaForm,
|
|
1189
1189
|
{
|
|
1190
1190
|
fields,
|
|
1191
1191
|
values,
|
|
@@ -1358,7 +1358,7 @@ function RunThread({
|
|
|
1358
1358
|
}) {
|
|
1359
1359
|
const chat = react.useConversation({ workspaceId });
|
|
1360
1360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1361
|
-
|
|
1361
|
+
chunkX6QGVLMV_cjs.ChatPage,
|
|
1362
1362
|
{
|
|
1363
1363
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
1364
1364
|
singleThread: true,
|
|
@@ -1375,7 +1375,7 @@ function RunThread({
|
|
|
1375
1375
|
}
|
|
1376
1376
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
1377
1377
|
function formValues(step, inputs) {
|
|
1378
|
-
const fields =
|
|
1378
|
+
const fields = chunkY3GJBLAI_cjs.stepFields(step);
|
|
1379
1379
|
if (!fields.length) return void 0;
|
|
1380
1380
|
if (step.kind === "form")
|
|
1381
1381
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -1409,15 +1409,16 @@ function useAnswerRetry(missing, refetch) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
function useWorkflowThread(workflow, options = {}) {
|
|
1411
1411
|
const arbi = react.useArbi();
|
|
1412
|
-
const { ensureWorkspaceOpen, live, workspaceId } =
|
|
1412
|
+
const { ensureWorkspaceOpen, live, workspaceId } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
1413
1413
|
const wsId = workspaceId ?? void 0;
|
|
1414
1414
|
const [threadId, setThreadId] = react$1.useState(options.conversationId);
|
|
1415
1415
|
const [localInputs, setLocalInputs] = react$1.useState(
|
|
1416
|
-
() =>
|
|
1416
|
+
() => chunkY3GJBLAI_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
1417
1417
|
);
|
|
1418
1418
|
const [edits, setEdits] = react$1.useState({});
|
|
1419
1419
|
const [localStates, setLocalStates] = react$1.useState({});
|
|
1420
1420
|
const createWork = react.useCreateWork();
|
|
1421
|
+
const startWorkflow = react.useStartWorkflow();
|
|
1421
1422
|
const actOnStep = react.useActOnStep();
|
|
1422
1423
|
const conversations = react.useConversations(wsId, { enabled: !!threadId, live: true });
|
|
1423
1424
|
const members = react.useWorkspaceUsers(wsId, {
|
|
@@ -1433,12 +1434,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1433
1434
|
);
|
|
1434
1435
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
1435
1436
|
const steps = react$1.useMemo(
|
|
1436
|
-
() =>
|
|
1437
|
+
() => chunkY3GJBLAI_cjs.workflowSteps(workflow).length > 0 ? chunkY3GJBLAI_cjs.workflowSteps(workflow) : chunkJARBYN6Z_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
1437
1438
|
[workflow, conversation?.plan?.steps]
|
|
1438
1439
|
);
|
|
1439
1440
|
const activity = react.useConversationActivity(threadId, { live: !!threadId });
|
|
1440
1441
|
const serverStates = react$1.useMemo(
|
|
1441
|
-
() =>
|
|
1442
|
+
() => chunkY3GJBLAI_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
1442
1443
|
[activity.data]
|
|
1443
1444
|
);
|
|
1444
1445
|
const working = steps.some(
|
|
@@ -1480,9 +1481,14 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1480
1481
|
const createThread = react$1.useCallback(
|
|
1481
1482
|
async (values, done) => {
|
|
1482
1483
|
const prepared = await options.beforeStart?.();
|
|
1483
|
-
const planned = prepared?.labelIds ?
|
|
1484
|
-
const created = await
|
|
1485
|
-
|
|
1484
|
+
const planned = prepared?.labelIds ? chunkZLJP6447_cjs.withLabelIds(workflow, prepared.labelIds) : workflow;
|
|
1485
|
+
const created = options.workflowId ? await startWorkflow.mutateAsync({
|
|
1486
|
+
workflowId: options.workflowId,
|
|
1487
|
+
// Its review columns are run inputs: this workspace's labels (`withLabelInputs`).
|
|
1488
|
+
inputs: { ...values, ...chunkZLJP6447_cjs.labelInputs(prepared?.labelIds ?? {}) },
|
|
1489
|
+
title: chunkY3GJBLAI_cjs.runThreadTitle(workflow, values)
|
|
1490
|
+
}) : await createWork.mutateAsync({
|
|
1491
|
+
title: chunkY3GJBLAI_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
1486
1492
|
description: workflow.description || null,
|
|
1487
1493
|
prompt: null,
|
|
1488
1494
|
skill_ref: null,
|
|
@@ -1494,7 +1500,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1494
1500
|
criteria: [],
|
|
1495
1501
|
max_passes: 3,
|
|
1496
1502
|
documents: [],
|
|
1497
|
-
steps:
|
|
1503
|
+
steps: chunkJARBYN6Z_cjs.toPlanSteps(planned, {
|
|
1498
1504
|
inputs: values,
|
|
1499
1505
|
resolveWorkflow: options.resolveWorkflow,
|
|
1500
1506
|
compose: options.compose
|
|
@@ -1513,7 +1519,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1513
1519
|
});
|
|
1514
1520
|
return id;
|
|
1515
1521
|
},
|
|
1516
|
-
[createWork, workflow, options, localStates, actOnStep]
|
|
1522
|
+
[createWork, startWorkflow, workflow, options, localStates, actOnStep]
|
|
1517
1523
|
);
|
|
1518
1524
|
const complete = react$1.useCallback(
|
|
1519
1525
|
async (step) => {
|
|
@@ -1581,7 +1587,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
1581
1587
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
1582
1588
|
const needsStart = !threadId || idle && !anyRunning;
|
|
1583
1589
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
1584
|
-
const view =
|
|
1590
|
+
const view = chunkZLJP6447_cjs.useWorkflowView({
|
|
1585
1591
|
steps,
|
|
1586
1592
|
states,
|
|
1587
1593
|
inputs,
|
|
@@ -1628,9 +1634,9 @@ function WorkflowSignDialog({
|
|
|
1628
1634
|
labels
|
|
1629
1635
|
}) {
|
|
1630
1636
|
const arbi = react.useArbi();
|
|
1631
|
-
const { user, ensureWorkspaceOpen } =
|
|
1637
|
+
const { user, ensureWorkspaceOpen } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
1632
1638
|
const tools = documentTools.useOptionalDocumentTools();
|
|
1633
|
-
const { id, version: stepVersion } =
|
|
1639
|
+
const { id, version: stepVersion } = chunkY3GJBLAI_cjs.splitDocRef(docRef);
|
|
1634
1640
|
const [version, setVersion] = react$1.useState(stepVersion);
|
|
1635
1641
|
const [pdf, setPdf] = react$1.useState(null);
|
|
1636
1642
|
const [preparing, setPreparing] = react$1.useState(false);
|
|
@@ -1708,7 +1714,7 @@ function WorkflowWordDialog({
|
|
|
1708
1714
|
onClose,
|
|
1709
1715
|
labels
|
|
1710
1716
|
}) {
|
|
1711
|
-
const { id } =
|
|
1717
|
+
const { id } = chunkY3GJBLAI_cjs.splitDocRef(docRef);
|
|
1712
1718
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1713
1719
|
chunkCVPV4I7Z_cjs.ModalScaffold,
|
|
1714
1720
|
{
|
|
@@ -1717,7 +1723,7 @@ function WorkflowWordDialog({
|
|
|
1717
1723
|
title: title ?? labels.wordTitle,
|
|
1718
1724
|
size: "xl",
|
|
1719
1725
|
testId: "workflow-word-dialog",
|
|
1720
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkCVPV4I7Z_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1726
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkCVPV4I7Z_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkCRN64MYK_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
1721
1727
|
}
|
|
1722
1728
|
);
|
|
1723
1729
|
}
|
|
@@ -1728,7 +1734,7 @@ function WorkflowReviewGridDialog({
|
|
|
1728
1734
|
onOpenDocument,
|
|
1729
1735
|
labels
|
|
1730
1736
|
}) {
|
|
1731
|
-
const { workspaceId } =
|
|
1737
|
+
const { workspaceId } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
1732
1738
|
const allTags = react.useTags(workspaceId ?? void 0);
|
|
1733
1739
|
const all = react.useDocuments(workspaceId ?? void 0);
|
|
1734
1740
|
const isLoading = allTags.isLoading || all.isLoading || all.isFetching && !all.isFetchedAfterMount;
|
|
@@ -1853,7 +1859,7 @@ function WorkflowRunBody({
|
|
|
1853
1859
|
...runnerProps
|
|
1854
1860
|
}) {
|
|
1855
1861
|
const l = { ...DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS, ...connectedLabels };
|
|
1856
|
-
const environment =
|
|
1862
|
+
const environment = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
1857
1863
|
const openInEnvironment = react$1.useCallback(
|
|
1858
1864
|
(id, version, page2) => environment.openDocument(id, { ...version && { version }, ...page2 && { page: page2 } }),
|
|
1859
1865
|
[environment]
|
|
@@ -1865,15 +1871,15 @@ function WorkflowRunBody({
|
|
|
1865
1871
|
[openMail]
|
|
1866
1872
|
);
|
|
1867
1873
|
const onOpenDraft = hostOpenDraft ?? draftInMail;
|
|
1868
|
-
const citationInEnvironment =
|
|
1874
|
+
const citationInEnvironment = chunk2XZJBPBV_cjs.useOpenCitation();
|
|
1869
1875
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
1870
1876
|
const arbi = react.useArbi();
|
|
1871
|
-
const { ensureWorkspaceOpen, userId, workspaceId } =
|
|
1877
|
+
const { ensureWorkspaceOpen, userId, workspaceId } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
1872
1878
|
const wsId = workspaceId ?? void 0;
|
|
1873
1879
|
const session = react.useArbiSessionStore();
|
|
1874
1880
|
const openRef = react$1.useRef(workspaceId);
|
|
1875
1881
|
openRef.current = workspaceId;
|
|
1876
|
-
const required =
|
|
1882
|
+
const required = chunkZLJP6447_cjs.requiredLabelsOf(given);
|
|
1877
1883
|
const ownEnsureLabels = useEnsureRequiredLabels();
|
|
1878
1884
|
const ensureLabels = page?.ensureLabels ?? ownEnsureLabels;
|
|
1879
1885
|
const [startedLabelIds, setStartedLabelIds] = react$1.useState({});
|
|
@@ -1888,7 +1894,7 @@ function WorkflowRunBody({
|
|
|
1888
1894
|
const fromStep = pageTarget ? projectStepOf(projectFrom) : void 0;
|
|
1889
1895
|
const projectStep = fromStep?.step;
|
|
1890
1896
|
const workflow = react$1.useMemo(
|
|
1891
|
-
() => withCommitStep(
|
|
1897
|
+
() => withCommitStep(chunkZLJP6447_cjs.withLabelIds(given, labelIds), projectStep),
|
|
1892
1898
|
[given, labelIds, projectStep]
|
|
1893
1899
|
);
|
|
1894
1900
|
const hostBeforeStart = options?.beforeStart;
|
|
@@ -1933,7 +1939,7 @@ function WorkflowRunBody({
|
|
|
1933
1939
|
[project, inputsFromProject, createdInputs, hostInitial]
|
|
1934
1940
|
);
|
|
1935
1941
|
const { data: docs = [], refetch } = react.useDocuments(wsId);
|
|
1936
|
-
const documentFilter =
|
|
1942
|
+
const documentFilter = chunkU2HDSS5R_cjs.useDocumentFilter();
|
|
1937
1943
|
const [sending, setSending] = react$1.useState([]);
|
|
1938
1944
|
const [added, setAdded] = react$1.useState({});
|
|
1939
1945
|
const [addedNames, setAddedNames] = react$1.useState({});
|
|
@@ -1962,7 +1968,7 @@ function WorkflowRunBody({
|
|
|
1962
1968
|
() => ({
|
|
1963
1969
|
me: userId,
|
|
1964
1970
|
openDocument: onOpenDocument && ((ref) => {
|
|
1965
|
-
const { id, version } =
|
|
1971
|
+
const { id, version } = chunkY3GJBLAI_cjs.splitDocRef(ref);
|
|
1966
1972
|
onOpenDocument(id, version);
|
|
1967
1973
|
}),
|
|
1968
1974
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -1972,7 +1978,7 @@ function WorkflowRunBody({
|
|
|
1972
1978
|
const w = state.waiting;
|
|
1973
1979
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
1974
1980
|
}),
|
|
1975
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
1981
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunkY3GJBLAI_cjs.splitDocRef(ref).id) ?? "" })),
|
|
1976
1982
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
1977
1983
|
}),
|
|
1978
1984
|
[userId, onOpenDocument, onOpenDraft, hostActions, nameOfDoc]
|
|
@@ -2081,7 +2087,7 @@ function WorkflowRunBody({
|
|
|
2081
2087
|
) : null;
|
|
2082
2088
|
};
|
|
2083
2089
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2084
|
-
|
|
2090
|
+
chunkZLJP6447_cjs.WorkflowRunner,
|
|
2085
2091
|
{
|
|
2086
2092
|
people,
|
|
2087
2093
|
...runnerProps,
|
|
@@ -2142,10 +2148,10 @@ function WorkflowRunBody({
|
|
|
2142
2148
|
pageBar,
|
|
2143
2149
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2144
2150
|
!page && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2145
|
-
|
|
2151
|
+
chunkZLJP6447_cjs.WorkflowStepBar,
|
|
2146
2152
|
{
|
|
2147
2153
|
run: view,
|
|
2148
|
-
levels:
|
|
2154
|
+
levels: chunkY3GJBLAI_cjs.stepLevels(view.steps),
|
|
2149
2155
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
2150
2156
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
2151
2157
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -2166,13 +2172,13 @@ function WorkflowRunBody({
|
|
|
2166
2172
|
return state ? [[s.id, state]] : [];
|
|
2167
2173
|
})
|
|
2168
2174
|
);
|
|
2169
|
-
const ref =
|
|
2175
|
+
const ref = chunk7XR6CPCU_cjs.stepDocuments(view.steps, states, id).at(-1);
|
|
2170
2176
|
const open = actions.openDocument ?? actions.openRedline;
|
|
2171
2177
|
return {
|
|
2172
2178
|
title: step.title,
|
|
2173
|
-
kind:
|
|
2179
|
+
kind: chunk7XR6CPCU_cjs.stepKindOf(step),
|
|
2174
2180
|
phase: view.phaseOf(id),
|
|
2175
|
-
document: ref && open ? { name: nameOfDoc(
|
|
2181
|
+
document: ref && open ? { name: nameOfDoc(chunkY3GJBLAI_cjs.splitDocRef(ref).id) ?? ref, onOpen: () => open(ref) } : void 0
|
|
2176
2182
|
};
|
|
2177
2183
|
},
|
|
2178
2184
|
targetMessageId: target,
|
|
@@ -2249,7 +2255,7 @@ function ReviewNotify({
|
|
|
2249
2255
|
testId
|
|
2250
2256
|
}) {
|
|
2251
2257
|
const arbi = react.useArbi();
|
|
2252
|
-
const { live, userId, ensureWorkspaceOpen } =
|
|
2258
|
+
const { live, userId, ensureWorkspaceOpen } = chunkP2K4XL4T_cjs.useConnectedWorkspace();
|
|
2253
2259
|
const { data: members = [] } = react.useWorkspaceUsers(workspaceId, {
|
|
2254
2260
|
enabled: live && !!workspaceId,
|
|
2255
2261
|
beforeFetch: ensureWorkspaceOpen
|
|
@@ -2374,7 +2380,7 @@ function ConnectedWorkflowRunPage({
|
|
|
2374
2380
|
}) {
|
|
2375
2381
|
const { workflow, testIdPrefix = "workflow-run" } = runner;
|
|
2376
2382
|
const l = { ...DEFAULT_WORKFLOW_RUN_PAGE_LABELS, ...pageLabels };
|
|
2377
|
-
const { openProject } =
|
|
2383
|
+
const { openProject } = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
2378
2384
|
const target = useWorkflowRunTarget({
|
|
2379
2385
|
projectFrom,
|
|
2380
2386
|
projectId,
|
|
@@ -2382,7 +2388,7 @@ function ConnectedWorkflowRunPage({
|
|
|
2382
2388
|
workspaceId,
|
|
2383
2389
|
onProjectCreated
|
|
2384
2390
|
});
|
|
2385
|
-
const required =
|
|
2391
|
+
const required = chunkZLJP6447_cjs.requiredLabelsOf(workflow);
|
|
2386
2392
|
const ensure = useEnsureRequiredLabels();
|
|
2387
2393
|
const labels = useRequiredLabels(required, target.target, ensure, target.stage === "ready");
|
|
2388
2394
|
const fromStep = !!projectStepOf(projectFrom);
|
|
@@ -2507,5 +2513,5 @@ exports.useRequiredLabels = useRequiredLabels;
|
|
|
2507
2513
|
exports.useTaskPeople = useTaskPeople;
|
|
2508
2514
|
exports.useWorkflowsPageState = useWorkflowsPageState;
|
|
2509
2515
|
exports.workflowRunView = workflowRunView;
|
|
2510
|
-
//# sourceMappingURL=chunk-
|
|
2511
|
-
//# sourceMappingURL=chunk-
|
|
2516
|
+
//# sourceMappingURL=chunk-54Y4LWTA.cjs.map
|
|
2517
|
+
//# sourceMappingURL=chunk-54Y4LWTA.cjs.map
|