@arbidocs/blocks 0.5.148 → 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 +1454 -1454
- 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 +712 -692
- 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
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkCYN66TBO_cjs = require('./chunk-CYN66TBO.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkJARBYN6Z_cjs = require('./chunk-JARBYN6Z.cjs');
|
|
6
6
|
var chunkI4IS6ST6_cjs = require('./chunk-I4IS6ST6.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkM55XUF4L_cjs = require('./chunk-M55XUF4L.cjs');
|
|
8
8
|
var chunkOYXWQTHF_cjs = require('./chunk-OYXWQTHF.cjs');
|
|
9
9
|
var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
|
|
10
10
|
var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
|
|
11
|
-
var
|
|
12
|
-
var chunkJJZOL5MG_cjs = require('./chunk-JJZOL5MG.cjs');
|
|
11
|
+
var chunkWXMD4AA4_cjs = require('./chunk-WXMD4AA4.cjs');
|
|
13
12
|
var chunk3YEXZX4H_cjs = require('./chunk-3YEXZX4H.cjs');
|
|
14
|
-
var
|
|
13
|
+
var chunkJARRHAQW_cjs = require('./chunk-JARRHAQW.cjs');
|
|
15
14
|
var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
|
|
15
|
+
var chunkMHGZZ6IJ_cjs = require('./chunk-MHGZZ6IJ.cjs');
|
|
16
16
|
var chunkRL2HI6NP_cjs = require('./chunk-RL2HI6NP.cjs');
|
|
17
17
|
var chunk6UZC4XVV_cjs = require('./chunk-6UZC4XVV.cjs');
|
|
18
|
-
var
|
|
19
|
-
var chunkOUGRCQM7_cjs = require('./chunk-OUGRCQM7.cjs');
|
|
20
|
-
var chunkZVEW3JBT_cjs = require('./chunk-ZVEW3JBT.cjs');
|
|
18
|
+
var chunkDKY67DA6_cjs = require('./chunk-DKY67DA6.cjs');
|
|
21
19
|
var chunkSJSGSHIT_cjs = require('./chunk-SJSGSHIT.cjs');
|
|
20
|
+
var chunkGAVQFR6P_cjs = require('./chunk-GAVQFR6P.cjs');
|
|
22
21
|
var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
|
|
22
|
+
var chunkZVEW3JBT_cjs = require('./chunk-ZVEW3JBT.cjs');
|
|
23
23
|
var chunkIN6ILI5A_cjs = require('./chunk-IN6ILI5A.cjs');
|
|
24
|
-
var
|
|
24
|
+
var chunk7XR6CPCU_cjs = require('./chunk-7XR6CPCU.cjs');
|
|
25
25
|
var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var chunkY3GJBLAI_cjs = require('./chunk-Y3GJBLAI.cjs');
|
|
27
|
+
var chunkSQCCQU3K_cjs = require('./chunk-SQCCQU3K.cjs');
|
|
28
28
|
var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
|
|
29
|
-
var
|
|
29
|
+
var chunkVMXTOIXB_cjs = require('./chunk-VMXTOIXB.cjs');
|
|
30
30
|
var chunkYZBDHBKI_cjs = require('./chunk-YZBDHBKI.cjs');
|
|
31
31
|
var chunkCVPV4I7Z_cjs = require('./chunk-CVPV4I7Z.cjs');
|
|
32
32
|
var chunkPLIF5CUV_cjs = require('./chunk-PLIF5CUV.cjs');
|
|
@@ -42,7 +42,7 @@ function defaultScopeRenderer(scopeSource) {
|
|
|
42
42
|
if (!scopeSource) return void 0;
|
|
43
43
|
return function renderScope(_field, value, onChange) {
|
|
44
44
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
-
|
|
45
|
+
chunkMHGZZ6IJ_cjs.ScopePicker,
|
|
46
46
|
{
|
|
47
47
|
folders: scopeSource.folders,
|
|
48
48
|
unfiledCount: scopeSource.unfiledCount,
|
|
@@ -61,7 +61,7 @@ function resolveScopeInputs(workflow, inputs, scopeSource) {
|
|
|
61
61
|
for (const field of workflow.inputs) {
|
|
62
62
|
if (field.type !== "scope") continue;
|
|
63
63
|
const raw = inputs[field.name];
|
|
64
|
-
const scope =
|
|
64
|
+
const scope = chunkSQCCQU3K_cjs.isWorkflowScope(raw) ? raw : { folders: [], labels: [] };
|
|
65
65
|
next[field.name] = { ...scope, documents: scopeSource.resolveDocuments(scope) };
|
|
66
66
|
}
|
|
67
67
|
return next;
|
|
@@ -83,7 +83,7 @@ function workflowToSkillMarkdown(workflow) {
|
|
|
83
83
|
if (workflow.landing !== "chat") lines.push(`landing: ${workflow.landing}`);
|
|
84
84
|
if (workflow.requiresFiles) lines.push("requires_files: true");
|
|
85
85
|
if (workflow.inputs.length > 0) {
|
|
86
|
-
lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(
|
|
86
|
+
lines.push(`inputs: ${JSON.stringify(workflow.inputs.map(chunkSQCCQU3K_cjs.fieldToFrontmatter))}`);
|
|
87
87
|
}
|
|
88
88
|
lines.push("---", "", run.promptTemplate.trim(), "");
|
|
89
89
|
return lines.join("\n");
|
|
@@ -105,12 +105,12 @@ function workflowFromSkillMarkdown(id, text) {
|
|
|
105
105
|
} else if (value === "true" || value === "false") frontmatter[key] = value === "true";
|
|
106
106
|
else frontmatter[key] = value;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
108
|
+
return chunkSQCCQU3K_cjs.workflowFromFrontmatter(id, frontmatter, body);
|
|
109
109
|
}
|
|
110
110
|
var errorMessage = (e) => e instanceof Error ? e.message : typeof e === "string" ? e : "Something went wrong.";
|
|
111
111
|
function firstOpen(steps, states) {
|
|
112
112
|
const open = steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? "pending"));
|
|
113
|
-
return open?.id ?? (steps.length &&
|
|
113
|
+
return open?.id ?? (steps.length && chunkY3GJBLAI_cjs.isRunFinished(steps, states) ? null : steps[0]?.id ?? null);
|
|
114
114
|
}
|
|
115
115
|
function useWorkflowView(options) {
|
|
116
116
|
const { steps, states, inputs, setInput, loaded = true } = options;
|
|
@@ -161,11 +161,11 @@ function useWorkflowView(options) {
|
|
|
161
161
|
}),
|
|
162
162
|
[]
|
|
163
163
|
);
|
|
164
|
-
const action = busy ? "wait" :
|
|
164
|
+
const action = busy ? "wait" : chunkY3GJBLAI_cjs.nextAction(steps, states, current, actionOptions(options));
|
|
165
165
|
const next = react.useCallback(async () => {
|
|
166
166
|
const { steps: s, states: st, inputs: values } = optionsRef.current;
|
|
167
167
|
const at = s.find((x) => x.id === current);
|
|
168
|
-
const act2 =
|
|
168
|
+
const act2 = chunkY3GJBLAI_cjs.nextAction(s, st, current, actionOptions(optionsRef.current));
|
|
169
169
|
if (!at || act2 === "wait" || busy) return;
|
|
170
170
|
setActionError(null);
|
|
171
171
|
if (act2 === "finish") return setCurrent(null);
|
|
@@ -176,7 +176,7 @@ function useWorkflowView(options) {
|
|
|
176
176
|
await (act2 === "start" ? optionsRef.current.start?.() : optionsRef.current.retry?.(at.id));
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
if (Object.keys(
|
|
179
|
+
if (Object.keys(chunkY3GJBLAI_cjs.validateStep(at, values)).length > 0) {
|
|
180
180
|
setShowErrors(true);
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
@@ -277,10 +277,10 @@ function useWorkflowView(options) {
|
|
|
277
277
|
inputs,
|
|
278
278
|
setInput,
|
|
279
279
|
stateOf: (id) => states[id],
|
|
280
|
-
phaseOf: (id) =>
|
|
281
|
-
failedUpstreamOf: (id) =>
|
|
280
|
+
phaseOf: (id) => chunkY3GJBLAI_cjs.stepPhase(steps, states, id),
|
|
281
|
+
failedUpstreamOf: (id) => chunkY3GJBLAI_cjs.failedUpstream(steps, states, id),
|
|
282
282
|
isLocked,
|
|
283
|
-
errors: showErrors && step && !isLocked(step.id) ?
|
|
283
|
+
errors: showErrors && step && !isLocked(step.id) ? chunkY3GJBLAI_cjs.validateStep(step, inputs) : {},
|
|
284
284
|
busy,
|
|
285
285
|
actionError,
|
|
286
286
|
isRunning: Object.values(states).some((s) => s.status === "running"),
|
|
@@ -298,11 +298,11 @@ function useWorkflowView(options) {
|
|
|
298
298
|
nameOf: options.nameOf,
|
|
299
299
|
assigneeOf: (id) => {
|
|
300
300
|
const s = steps.find((x) => x.id === id);
|
|
301
|
-
if (!s || !
|
|
302
|
-
return
|
|
301
|
+
if (!s || !chunkY3GJBLAI_cjs.canAssign(s)) return void 0;
|
|
302
|
+
return chunkY3GJBLAI_cjs.assigneeName(s.assignee, {
|
|
303
303
|
nameOf: options.nameOf,
|
|
304
304
|
inputs,
|
|
305
|
-
fields:
|
|
305
|
+
fields: chunkY3GJBLAI_cjs.runFieldsOf(steps),
|
|
306
306
|
announcedTo: states[id]?.announcedTo
|
|
307
307
|
});
|
|
308
308
|
},
|
|
@@ -518,7 +518,7 @@ function StepBarFrame({
|
|
|
518
518
|
phase === "blocked" && "opacity-60"
|
|
519
519
|
),
|
|
520
520
|
"aria-hidden": true,
|
|
521
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
521
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunk7XR6CPCU_cjs.StepBadgeMark, { phase, icon: icon?.(s) })
|
|
522
522
|
}
|
|
523
523
|
),
|
|
524
524
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", title: s.title, children: s.title }),
|
|
@@ -634,7 +634,7 @@ function StepBarFrame({
|
|
|
634
634
|
phase: kind === "working" ? "running" : "failed",
|
|
635
635
|
className: "min-w-0 shrink",
|
|
636
636
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
637
|
-
|
|
637
|
+
chunk7XR6CPCU_cjs.StepChip,
|
|
638
638
|
{
|
|
639
639
|
kind: kindOf(s),
|
|
640
640
|
phase: kind === "working" ? "running" : "failed",
|
|
@@ -801,6 +801,9 @@ var DEFAULT_WORKFLOW_STEP_PARTS_LABELS = {
|
|
|
801
801
|
openInGmail: "Open in Gmail",
|
|
802
802
|
emailSent: "Sent.",
|
|
803
803
|
reviewRunning: "Reviewing the documents\u2026",
|
|
804
|
+
projectWillOpen: `Opens the ${ui.getEntityLabel("PROJECT").toLowerCase()} when the steps before it are done`,
|
|
805
|
+
projectOpening: `Opening the ${ui.getEntityLabel("PROJECT").toLowerCase()}\u2026`,
|
|
806
|
+
projectOpened: `The ${ui.getEntityLabel("PROJECT").toLowerCase()} is open`,
|
|
804
807
|
reviewDone: "Reviewed {docs} documents in {cols} columns.",
|
|
805
808
|
openReview: "Open the review",
|
|
806
809
|
openInEditor: "Open in Editor",
|
|
@@ -808,7 +811,7 @@ var DEFAULT_WORKFLOW_STEP_PARTS_LABELS = {
|
|
|
808
811
|
someone: "someone"
|
|
809
812
|
};
|
|
810
813
|
var docName = (ref, nameOfDoc) => {
|
|
811
|
-
const { id, version } =
|
|
814
|
+
const { id, version } = chunkY3GJBLAI_cjs.splitDocRef(ref);
|
|
812
815
|
const name = nameOfDoc?.(id) ?? id;
|
|
813
816
|
return version ? `${name} \xB7 v${version}` : name;
|
|
814
817
|
};
|
|
@@ -890,7 +893,7 @@ function SendBackControl({
|
|
|
890
893
|
const states = Object.fromEntries(
|
|
891
894
|
run.steps.map((s) => [s.id, run.stateOf(s.id) ?? { status: "pending" }])
|
|
892
895
|
);
|
|
893
|
-
const targets =
|
|
896
|
+
const targets = chunkY3GJBLAI_cjs.sendBackTargets(run.steps, states, step.id);
|
|
894
897
|
const [open, setOpen] = react.useState(false);
|
|
895
898
|
const [to, setTo] = react.useState(targets[0]?.id ?? "");
|
|
896
899
|
const [note, setNote] = react.useState("");
|
|
@@ -980,7 +983,7 @@ function ApprovalEvidence({
|
|
|
980
983
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex flex-wrap items-center gap-1.5 text-sm font-medium", children: [
|
|
981
984
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShieldCheck, { className: "size-4 text-primary" }),
|
|
982
985
|
approver ? l.approvedBy.replace("{name}", approver) : null,
|
|
983
|
-
state.at && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-normal text-muted-foreground", children: l.approvedAt.replace("{date}",
|
|
986
|
+
state.at && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-normal text-muted-foreground", children: l.approvedAt.replace("{date}", chunk7XR6CPCU_cjs.formatDate(state.at)) })
|
|
984
987
|
] }),
|
|
985
988
|
evidence.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1.5", children: [
|
|
986
989
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: l.approvedWhat }),
|
|
@@ -1013,7 +1016,7 @@ function ApprovalEvidence({
|
|
|
1013
1016
|
] }),
|
|
1014
1017
|
(step.fields ?? []).length > 0 && /* @__PURE__ */ jsxRuntime.jsx("dl", { className: "grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 text-xs", children: (step.fields ?? []).map((f) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "contents", children: [
|
|
1015
1018
|
/* @__PURE__ */ jsxRuntime.jsx("dt", { className: "text-muted-foreground", children: f.label }),
|
|
1016
|
-
/* @__PURE__ */ jsxRuntime.jsx("dd", { "data-testid": `${testId}-evidence-field-${f.name}`, children:
|
|
1019
|
+
/* @__PURE__ */ jsxRuntime.jsx("dd", { "data-testid": `${testId}-evidence-field-${f.name}`, children: chunk7XR6CPCU_cjs.shownValue(run.inputs[f.name], f, run.nameOf) })
|
|
1017
1020
|
] }, f.name)) })
|
|
1018
1021
|
] });
|
|
1019
1022
|
}
|
|
@@ -1109,7 +1112,7 @@ function ActionStepBody({
|
|
|
1109
1112
|
waiting?.expires_at && phase === "waiting" && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
1110
1113
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "size-3.5" }),
|
|
1111
1114
|
" ",
|
|
1112
|
-
l.expires.replace("{date}",
|
|
1115
|
+
l.expires.replace("{date}", chunk7XR6CPCU_cjs.formatDate(waiting.expires_at))
|
|
1113
1116
|
] }),
|
|
1114
1117
|
phase === "waiting" && mine && !declining && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
1115
1118
|
actions?.sign && state && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1188,7 +1191,7 @@ function ActionStepBody({
|
|
|
1188
1191
|
] });
|
|
1189
1192
|
} else if (a.type === "email_draft") {
|
|
1190
1193
|
const draftId = state?.waiting?.draft_id ?? (typeof state?.output?.draft_id === "string" ? state.output.draft_id : void 0);
|
|
1191
|
-
const gmailUrl =
|
|
1194
|
+
const gmailUrl = chunkSQCCQU3K_cjs.gmailDraftUrl(state?.waiting);
|
|
1192
1195
|
body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1193
1196
|
underWay && working(l.preparingDraft),
|
|
1194
1197
|
phase === "waiting" && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: gmailUrl ? l.draftReadyInGmail : l.draftReady }),
|
|
@@ -1228,6 +1231,8 @@ function ActionStepBody({
|
|
|
1228
1231
|
} else if (a.type === "approval") {
|
|
1229
1232
|
const decided = state?.output?.decision;
|
|
1230
1233
|
body = /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": `${testId}-approval`, children: phase === "done" ? `Decided: ${decided ?? "approved"}` : phase === "waiting" || underWay ? "Waiting for a decision on the request" : "Submits a request for approval" });
|
|
1234
|
+
} else if (a.type === "create_project") {
|
|
1235
|
+
body = /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": `${testId}-project`, children: phase === "done" ? l.projectOpened : underWay ? l.projectOpening : l.projectWillOpen });
|
|
1231
1236
|
} else {
|
|
1232
1237
|
const tags = state?.output?.tag_ext_ids ?? a.tags;
|
|
1233
1238
|
const docs = state?.output?.doc_ext_ids ?? [];
|
|
@@ -1284,7 +1289,7 @@ function WorkflowStepBar({
|
|
|
1284
1289
|
const name = `${title} (${l.phases[phase]})`;
|
|
1285
1290
|
if (s.id === DONE)
|
|
1286
1291
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1287
|
-
|
|
1292
|
+
chunk7XR6CPCU_cjs.StepChip,
|
|
1288
1293
|
{
|
|
1289
1294
|
inert: true,
|
|
1290
1295
|
kind: "start",
|
|
@@ -1298,17 +1303,17 @@ function WorkflowStepBar({
|
|
|
1298
1303
|
"data-testid": tid("step-done")
|
|
1299
1304
|
}
|
|
1300
1305
|
);
|
|
1301
|
-
const kind =
|
|
1302
|
-
const KindIcon =
|
|
1306
|
+
const kind = chunk7XR6CPCU_cjs.stepKindOf(s);
|
|
1307
|
+
const KindIcon = chunk7XR6CPCU_cjs.STEP_KIND_ICONS[kind];
|
|
1303
1308
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1304
|
-
|
|
1309
|
+
chunk7XR6CPCU_cjs.StepChip,
|
|
1305
1310
|
{
|
|
1306
1311
|
kind,
|
|
1307
1312
|
phase,
|
|
1308
1313
|
icon: icon(s.icon) ?? /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {}),
|
|
1309
1314
|
label: s.title,
|
|
1310
1315
|
current: isCurrent,
|
|
1311
|
-
heading:
|
|
1316
|
+
heading: chunk7XR6CPCU_cjs.DEFAULT_STEP_KIND_LABELS[kind],
|
|
1312
1317
|
labelClassName: isCurrent ? STEP_LABEL_CURRENT : ui.cn(STEP_LABEL, STEP_LABEL_MAX),
|
|
1313
1318
|
labelTestId: tid(`step-${s.id}-label`),
|
|
1314
1319
|
onClick: () => run.goTo(s.id),
|
|
@@ -1341,7 +1346,7 @@ function WorkflowStepBar({
|
|
|
1341
1346
|
isSelectable: (id) => id !== DONE,
|
|
1342
1347
|
renderStep: (s) => pill(s),
|
|
1343
1348
|
icon: (s) => s.id === DONE ? doneIcon : icon(s.icon),
|
|
1344
|
-
kindOf: (s) => s.id === DONE ? "start" :
|
|
1349
|
+
kindOf: (s) => s.id === DONE ? "start" : chunk7XR6CPCU_cjs.stepKindOf(s),
|
|
1345
1350
|
disabled: run.busy,
|
|
1346
1351
|
labels,
|
|
1347
1352
|
tid,
|
|
@@ -1420,7 +1425,7 @@ function WorkflowRunner({
|
|
|
1420
1425
|
const { steps, step, isComplete, action } = run;
|
|
1421
1426
|
const completion = workflow.run.kind === "steps" ? workflow.run.completion : void 0;
|
|
1422
1427
|
const tid = (suffix) => `${testIdPrefix}-${suffix}`;
|
|
1423
|
-
const levels =
|
|
1428
|
+
const levels = chunkY3GJBLAI_cjs.stepLevels(steps);
|
|
1424
1429
|
const icon = (key) => key && renderIcon ? renderIcon(key) : void 0;
|
|
1425
1430
|
const added = step?.kind === "upload" ? (files ?? []).filter((f) => f.addedFor === step.id) : [];
|
|
1426
1431
|
const unread = added.filter((f) => f.status === "processing").length;
|
|
@@ -1428,7 +1433,7 @@ function WorkflowRunner({
|
|
|
1428
1433
|
const sending = added.filter((f) => f.status === "uploading").length;
|
|
1429
1434
|
const unsent = added.filter((f) => f.status === "upload-failed").length;
|
|
1430
1435
|
const uploadHold = step?.kind === "upload" && (sending > 0 || uploading || unsent > 0);
|
|
1431
|
-
const docsWait = !!step &&
|
|
1436
|
+
const docsWait = !!step && chunkY3GJBLAI_cjs.waitingDocuments(run.stateOf(step.id)).length > 0;
|
|
1432
1437
|
const nextLabel = sending ? sending === 1 ? l.uploadingFile : l.uploadingFiles.replace("{count}", String(sending)) : uploadHold && uploading ? l.uploadingAny : uploadHold ? unsent === 1 ? l.uploadFailed : l.uploadsFailed.replace("{count}", String(unsent)) : reading ? l.readingFiles.replace("{current}", String(Math.min(added.length - unread + 1, added.length))).replace("{count}", String(added.length)) : action === "start" ? l.start : action === "retry" ? l.retry : action === "finish" ? l.finish : action === "complete" && step?.kind === "review" ? l.approve : action === "complete" && step?.kind === "action" ? l.markSent : action === "wait" && (run.isRunning || run.busy || docsWait) ? l.working : (step && !run.isLocked(step.id) ? step.nextLabel : void 0) ?? l.next;
|
|
1433
1438
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn(compact ? "space-y-3" : "space-y-6", className), "data-testid": testIdPrefix, children: [
|
|
1434
1439
|
!hideStepBar && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1460,13 +1465,13 @@ function WorkflowRunner({
|
|
|
1460
1465
|
/* @__PURE__ */ jsxRuntime.jsx(StepNotices, { run, step, l, tid }),
|
|
1461
1466
|
run.phaseOf(step.id) === "blocked" ? /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: ui.cn(box, "p-6"), "data-testid": tid(step.id), children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", "data-testid": tid(`${step.id}-blocked`), children: l.blocked.replace(
|
|
1462
1467
|
"{steps}",
|
|
1463
|
-
|
|
1468
|
+
chunkY3GJBLAI_cjs.stepDependencies(steps, step.id).map((d) => steps.find((s) => s.id === d)?.title ?? d).join(", ")
|
|
1464
1469
|
) }) }) : step.kind === "form" ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { className: ui.cn(box, "space-y-4"), "data-testid": tid(step.id), children: [
|
|
1465
1470
|
/* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon: icon(step.icon), testId: tid(`${step.id}-title`) }),
|
|
1466
1471
|
/* @__PURE__ */ jsxRuntime.jsx(SentBackNote, { state: run.stateOf(step.id), l: pl, testId: tid(step.id) }),
|
|
1467
1472
|
/* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
|
|
1468
1473
|
/* @__PURE__ */ jsxRuntime.jsx("fieldset", { disabled: run.isLocked(step.id), className: "contents", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1469
|
-
|
|
1474
|
+
chunkJARRHAQW_cjs.SchemaForm,
|
|
1470
1475
|
{
|
|
1471
1476
|
fields: step.inputs,
|
|
1472
1477
|
values: run.inputs,
|
|
@@ -1512,11 +1517,11 @@ function WorkflowRunner({
|
|
|
1512
1517
|
] }) : step.kind === "review" ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Card, { className: ui.cn(box, "space-y-4"), "data-testid": tid(step.id), children: [
|
|
1513
1518
|
/* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon: icon(step.icon) }),
|
|
1514
1519
|
/* @__PURE__ */ jsxRuntime.jsx(SentBackNote, { state: run.stateOf(step.id), l: pl, testId: tid(step.id) }),
|
|
1515
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "whitespace-pre-line text-sm text-muted-foreground", children:
|
|
1520
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "whitespace-pre-line text-sm text-muted-foreground", children: chunkY3GJBLAI_cjs.reviewInstructions(step, run.inputs) }),
|
|
1516
1521
|
/* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
|
|
1517
1522
|
!(run.phaseOf(step.id) === "done" && run.stateOf(step.id)?.by) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", "data-testid": tid(`${step.id}-status`), children: run.phaseOf(step.id) === "done" ? l.approved : run.phaseOf(step.id) === "skipped" ? l.skipped : l.awaitingReview }),
|
|
1518
1523
|
(step.fields ?? []).length > 0 && run.phaseOf(step.id) === "ready" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1519
|
-
|
|
1524
|
+
chunkJARRHAQW_cjs.SchemaForm,
|
|
1520
1525
|
{
|
|
1521
1526
|
fields: step.fields ?? [],
|
|
1522
1527
|
values: run.inputs,
|
|
@@ -1773,8 +1778,8 @@ function AgentStepBody({
|
|
|
1773
1778
|
}) {
|
|
1774
1779
|
const state = run.stateOf(step.id);
|
|
1775
1780
|
const phase = run.phaseOf(step.id);
|
|
1776
|
-
const pending =
|
|
1777
|
-
const pendingNames = pending.flatMap((ref) => nameOfDoc?.(
|
|
1781
|
+
const pending = chunkY3GJBLAI_cjs.waitingDocuments(state);
|
|
1782
|
+
const pendingNames = pending.flatMap((ref) => nameOfDoc?.(chunkY3GJBLAI_cjs.splitDocRef(ref).id) ?? []);
|
|
1778
1783
|
const header = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
1779
1784
|
/* @__PURE__ */ jsxRuntime.jsx(StepHeading, { step, icon }),
|
|
1780
1785
|
phase === "failed" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: run.retry && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1857,7 +1862,7 @@ function StepNotices({
|
|
|
1857
1862
|
l,
|
|
1858
1863
|
tid
|
|
1859
1864
|
}) {
|
|
1860
|
-
const notStarted = !
|
|
1865
|
+
const notStarted = !chunkY3GJBLAI_cjs.isPersonStep(step) && run.needsStart && run.phaseOf(step.id) === "ready";
|
|
1861
1866
|
const failed = run.failedUpstreamOf(step.id);
|
|
1862
1867
|
if (!notStarted && failed.length === 0) return null;
|
|
1863
1868
|
const why = (error) => error ? `: ${error}` : "";
|
|
@@ -1913,7 +1918,7 @@ var asForm = (step) => ({
|
|
|
1913
1918
|
id: step.id,
|
|
1914
1919
|
title: step.title,
|
|
1915
1920
|
description: "",
|
|
1916
|
-
inputs:
|
|
1921
|
+
inputs: chunkY3GJBLAI_cjs.stepFields(step),
|
|
1917
1922
|
run: { kind: "operation" },
|
|
1918
1923
|
landing: "chat"
|
|
1919
1924
|
});
|
|
@@ -2090,13 +2095,13 @@ function StepAction({
|
|
|
2090
2095
|
onOpenReview,
|
|
2091
2096
|
onOpenRequest
|
|
2092
2097
|
}) {
|
|
2093
|
-
const fields =
|
|
2098
|
+
const fields = chunkY3GJBLAI_cjs.stepFields(step);
|
|
2094
2099
|
const [values, setValues] = react.useState(
|
|
2095
|
-
() => fields.length ? { ...
|
|
2100
|
+
() => fields.length ? { ...chunkSQCCQU3K_cjs.defaultInputs(asForm(step)), ...inputs } : {}
|
|
2096
2101
|
);
|
|
2097
2102
|
const [open, setOpen] = react.useState(null);
|
|
2098
2103
|
const [note, setNote] = react.useState("");
|
|
2099
|
-
const targets =
|
|
2104
|
+
const targets = chunkY3GJBLAI_cjs.sendBackTargets(steps, states, step.id);
|
|
2100
2105
|
const [to, setTo] = react.useState(targets[0]?.id ?? "");
|
|
2101
2106
|
const [busy, setBusy] = react.useState(false);
|
|
2102
2107
|
const [error, setError] = react.useState(null);
|
|
@@ -2133,7 +2138,7 @@ function StepAction({
|
|
|
2133
2138
|
const waiting = state?.waiting;
|
|
2134
2139
|
if (phase !== "waiting") return null;
|
|
2135
2140
|
if (step.action.type === "email_draft") {
|
|
2136
|
-
const gmailUrl =
|
|
2141
|
+
const gmailUrl = chunkSQCCQU3K_cjs.gmailDraftUrl(waiting);
|
|
2137
2142
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1 p-1", "data-testid": tid, children: [
|
|
2138
2143
|
gmailUrl ? /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { size: "sm", variant: "outline", className: "w-full", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2139
2144
|
"a",
|
|
@@ -2295,10 +2300,10 @@ function StepAction({
|
|
|
2295
2300
|
] });
|
|
2296
2301
|
}
|
|
2297
2302
|
if (fields.length && open === "form") {
|
|
2298
|
-
const errors =
|
|
2303
|
+
const errors = chunkSQCCQU3K_cjs.validateInputs(asForm(step), values);
|
|
2299
2304
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 p-1", "data-testid": tid, children: [
|
|
2300
2305
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2301
|
-
|
|
2306
|
+
chunkJARRHAQW_cjs.SchemaForm,
|
|
2302
2307
|
{
|
|
2303
2308
|
fields,
|
|
2304
2309
|
values,
|
|
@@ -2366,7 +2371,7 @@ function requiredLabelsOf(workflow) {
|
|
|
2366
2371
|
return workflow.requiredLabels ?? [];
|
|
2367
2372
|
}
|
|
2368
2373
|
function unresolvedLabelRefs(workflow, ids = {}) {
|
|
2369
|
-
return
|
|
2374
|
+
return chunkY3GJBLAI_cjs.workflowSteps(workflow).flatMap(
|
|
2370
2375
|
(step) => step.kind === "action" && step.action.type === "tabular_review" ? step.action.tags.filter((t) => {
|
|
2371
2376
|
const key = labelRefKey(t);
|
|
2372
2377
|
return key !== void 0 && !ids[key];
|
|
@@ -2385,6 +2390,16 @@ function withLabelIds(workflow, ids) {
|
|
|
2385
2390
|
});
|
|
2386
2391
|
return changed ? { ...workflow, run: { ...workflow.run, steps } } : workflow;
|
|
2387
2392
|
}
|
|
2393
|
+
var labelInputName = (key) => `column_${key.replace(/[^a-zA-Z0-9_]/g, "_")}`;
|
|
2394
|
+
function withLabelInputs(workflow) {
|
|
2395
|
+
const ids = Object.fromEntries(
|
|
2396
|
+
requiredLabelsOf(workflow).map((l) => [l.key, `{{${labelInputName(l.key)}}}`])
|
|
2397
|
+
);
|
|
2398
|
+
return withLabelIds(workflow, ids);
|
|
2399
|
+
}
|
|
2400
|
+
function labelInputs(ids) {
|
|
2401
|
+
return Object.fromEntries(Object.entries(ids).map(([key, id]) => [labelInputName(key), id]));
|
|
2402
|
+
}
|
|
2388
2403
|
var COLUMN_KINDS = /* @__PURE__ */ new Set(["label", "annotation"]);
|
|
2389
2404
|
var norm = (name) => name.trim().toLowerCase();
|
|
2390
2405
|
function matchRequiredLabels(required, existing) {
|
|
@@ -2456,7 +2471,7 @@ function AgentCard({
|
|
|
2456
2471
|
] }),
|
|
2457
2472
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
2458
2473
|
href ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2459
|
-
|
|
2474
|
+
chunkGAVQFR6P_cjs.ActionLink,
|
|
2460
2475
|
{
|
|
2461
2476
|
href,
|
|
2462
2477
|
onSelect,
|
|
@@ -2987,7 +3002,7 @@ function AgentCreator({
|
|
|
2987
3002
|
] })
|
|
2988
3003
|
] }),
|
|
2989
3004
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2990
|
-
|
|
3005
|
+
chunkMHGZZ6IJ_cjs.FoldSection,
|
|
2991
3006
|
{
|
|
2992
3007
|
label: l.advanced,
|
|
2993
3008
|
open: advancedOpen,
|
|
@@ -3234,7 +3249,7 @@ var DEFAULT_AGENT_TYPES = [
|
|
|
3234
3249
|
}
|
|
3235
3250
|
];
|
|
3236
3251
|
function AgentConnectInstructions({ email, signingKey }) {
|
|
3237
|
-
const { notify, runtimeConfig } =
|
|
3252
|
+
const { notify, runtimeConfig } = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
3238
3253
|
const [agentBackend, setAgentBackend] = react.useState("claude");
|
|
3239
3254
|
const [copied, setCopied] = react.useState(false);
|
|
3240
3255
|
const setupScript = react.useMemo(
|
|
@@ -3878,7 +3893,7 @@ var SKILL_FIELD_TYPE_LABELS = {
|
|
|
3878
3893
|
person: "A person"
|
|
3879
3894
|
};
|
|
3880
3895
|
function buildLibrarySkills(builtins, listings) {
|
|
3881
|
-
const { host, skills } =
|
|
3896
|
+
const { host, skills } = chunkSQCCQU3K_cjs.mergeSkillWorkflows(builtins, listings);
|
|
3882
3897
|
const builtinIds = new Set(builtins.map((w) => w.id));
|
|
3883
3898
|
const stored = new Map(listings.filter((s) => s.doc_ext_id).map((s) => [s.slug, s]));
|
|
3884
3899
|
return [...host, ...skills].flatMap((workflow) => {
|
|
@@ -4505,16 +4520,16 @@ var DEFAULT_RECURRENCE_BUILDER_LABELS = {
|
|
|
4505
4520
|
var pad2 = (n) => String(n).padStart(2, "0");
|
|
4506
4521
|
function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
|
|
4507
4522
|
const l = { ...DEFAULT_RECURRENCE_BUILDER_LABELS, ...labels };
|
|
4508
|
-
const [advanced, setAdvanced] = react.useState(() => !!rrule &&
|
|
4523
|
+
const [advanced, setAdvanced] = react.useState(() => !!rrule && chunkJARBYN6Z_cjs.parseRRule(rrule) === null);
|
|
4509
4524
|
const [preset, setPreset] = react.useState(
|
|
4510
|
-
() =>
|
|
4525
|
+
() => chunkJARBYN6Z_cjs.parseRRule(rrule) ?? chunkJARBYN6Z_cjs.DEFAULT_RECURRENCE
|
|
4511
4526
|
);
|
|
4512
4527
|
react.useEffect(() => {
|
|
4513
|
-
if (!rrule) onChange(
|
|
4528
|
+
if (!rrule) onChange(chunkJARBYN6Z_cjs.buildRRule(chunkJARBYN6Z_cjs.DEFAULT_RECURRENCE));
|
|
4514
4529
|
}, []);
|
|
4515
4530
|
const update = (next) => {
|
|
4516
4531
|
setPreset(next);
|
|
4517
|
-
onChange(
|
|
4532
|
+
onChange(chunkJARBYN6Z_cjs.buildRRule(next));
|
|
4518
4533
|
};
|
|
4519
4534
|
const toggleWeekday = (day) => {
|
|
4520
4535
|
const has = preset.weekdays.includes(day);
|
|
@@ -4544,9 +4559,9 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
|
|
|
4544
4559
|
type: "button",
|
|
4545
4560
|
className: "text-sm text-muted-foreground hover:text-foreground",
|
|
4546
4561
|
onClick: () => {
|
|
4547
|
-
const parsed =
|
|
4548
|
-
setPreset(parsed ??
|
|
4549
|
-
if (!parsed) onChange(
|
|
4562
|
+
const parsed = chunkJARBYN6Z_cjs.parseRRule(rrule);
|
|
4563
|
+
setPreset(parsed ?? chunkJARBYN6Z_cjs.DEFAULT_RECURRENCE);
|
|
4564
|
+
if (!parsed) onChange(chunkJARBYN6Z_cjs.buildRRule(chunkJARBYN6Z_cjs.DEFAULT_RECURRENCE));
|
|
4550
4565
|
setAdvanced(false);
|
|
4551
4566
|
},
|
|
4552
4567
|
"data-testid": chunkPLIF5CUV_cjs.testIdOr(testIds?.simple, { testId: "task-recurrence-simple" }),
|
|
@@ -4624,7 +4639,7 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
|
|
|
4624
4639
|
] }),
|
|
4625
4640
|
preset.frequency === "weekly" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
4626
4641
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { children: l.on }),
|
|
4627
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children:
|
|
4642
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-1", children: chunkJARBYN6Z_cjs.WEEKDAYS.map((day) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4628
4643
|
ui.Button,
|
|
4629
4644
|
{
|
|
4630
4645
|
type: "button",
|
|
@@ -5375,7 +5390,7 @@ function TaskTable(props) {
|
|
|
5375
5390
|
isMe: mine
|
|
5376
5391
|
};
|
|
5377
5392
|
};
|
|
5378
|
-
const renderPerson = (person) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5393
|
+
const renderPerson = (person) => /* @__PURE__ */ jsxRuntime.jsx(chunkWXMD4AA4_cjs.PersonPill, { person });
|
|
5379
5394
|
const q = (query.trim() || (props.filterText ?? "").trim()).toLowerCase();
|
|
5380
5395
|
const counts = react.useMemo(() => {
|
|
5381
5396
|
const map = new Map(STATUS_ORDER.map((s) => [s, 0]));
|
|
@@ -6059,7 +6074,7 @@ function ConversationListView(p) {
|
|
|
6059
6074
|
}
|
|
6060
6075
|
),
|
|
6061
6076
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-0", children: liveProps.current.renderThread ? liveProps.current.renderThread(data) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
6062
|
-
|
|
6077
|
+
chunkJARBYN6Z_cjs.EntityChip,
|
|
6063
6078
|
{
|
|
6064
6079
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { className: "size-4", "aria-hidden": true }),
|
|
6065
6080
|
label: data.title?.trim() || "Untitled thread",
|
|
@@ -6428,13 +6443,13 @@ function NewThreadDialog({
|
|
|
6428
6443
|
...labels
|
|
6429
6444
|
};
|
|
6430
6445
|
const seed = react.useMemo(
|
|
6431
|
-
() => ({ ...
|
|
6446
|
+
() => ({ ...chunkM55XUF4L_cjs.EMPTY_NEW_THREAD, ...initialValues }),
|
|
6432
6447
|
// Seeded once per open.
|
|
6433
6448
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6434
6449
|
[open]
|
|
6435
6450
|
);
|
|
6436
6451
|
const [values, setValues] = react.useState(seed);
|
|
6437
|
-
const [detailsOpen, setDetailsOpen] = react.useState(
|
|
6452
|
+
const [detailsOpen, setDetailsOpen] = react.useState(chunkM55XUF4L_cjs.hasTaskFields(seed));
|
|
6438
6453
|
const [submitError, setSubmitError] = react.useState(null);
|
|
6439
6454
|
const id = chunkPLIF5CUV_cjs.testIdOr(testId, { testId: "new-thread" });
|
|
6440
6455
|
const set = (key, value) => setValues((v) => ({ ...v, [key]: value }));
|
|
@@ -6467,7 +6482,7 @@ function NewThreadDialog({
|
|
|
6467
6482
|
setSubmitError(null);
|
|
6468
6483
|
try {
|
|
6469
6484
|
await onSubmit(values);
|
|
6470
|
-
setValues(
|
|
6485
|
+
setValues(chunkM55XUF4L_cjs.EMPTY_NEW_THREAD);
|
|
6471
6486
|
setDetailsOpen(false);
|
|
6472
6487
|
} catch (error) {
|
|
6473
6488
|
setSubmitError(error instanceof Error ? error.message : "Could not create the thread");
|
|
@@ -6715,12 +6730,12 @@ function taskActivityHeadline(e, labels = DEFAULT_TASK_ACTIVITY_LABELS, agentNam
|
|
|
6715
6730
|
case "step_skipped":
|
|
6716
6731
|
return "Step skipped";
|
|
6717
6732
|
case "step_waiting": {
|
|
6718
|
-
const documents =
|
|
6719
|
-
return documents ?
|
|
6733
|
+
const documents = chunkY3GJBLAI_cjs.eventWaitingDocuments(detail);
|
|
6734
|
+
return documents ? chunkY3GJBLAI_cjs.waitingForDocumentsText(documents.length) : "Waiting on people";
|
|
6720
6735
|
}
|
|
6721
6736
|
case "step_progress": {
|
|
6722
|
-
const documents =
|
|
6723
|
-
return documents ?
|
|
6737
|
+
const documents = chunkY3GJBLAI_cjs.eventWaitingDocuments(detail);
|
|
6738
|
+
return documents ? chunkY3GJBLAI_cjs.waitingForDocumentsText(documents.length) : detail.signed ? "Signed" : "Step moved on";
|
|
6724
6739
|
}
|
|
6725
6740
|
case "step_sent_back":
|
|
6726
6741
|
return "Sent the work back";
|
|
@@ -6875,10 +6890,10 @@ function WorkflowRunStatus({
|
|
|
6875
6890
|
testId = "workflow-run-status"
|
|
6876
6891
|
}) {
|
|
6877
6892
|
const l = { ...DEFAULT_WORKFLOW_RUN_STATUS_LABELS, ...labels };
|
|
6878
|
-
const ordered =
|
|
6879
|
-
const phaseOf = (id) => isLoading ? "blocked" :
|
|
6880
|
-
const finished = !isLoading &&
|
|
6881
|
-
const atId = finished || isLoading ? void 0 : activeStepId(
|
|
6893
|
+
const ordered = chunkY3GJBLAI_cjs.stepLevels(steps).flat();
|
|
6894
|
+
const phaseOf = (id) => isLoading ? "blocked" : chunkY3GJBLAI_cjs.stepPhase(steps, states, id);
|
|
6895
|
+
const finished = !isLoading && chunkY3GJBLAI_cjs.isRunFinished(steps, states);
|
|
6896
|
+
const atId = finished || isLoading ? void 0 : activeStepId(chunkY3GJBLAI_cjs.stepLevels(steps), phaseOf);
|
|
6882
6897
|
const at = ordered.find((s) => s.id === atId);
|
|
6883
6898
|
const phase = at ? phaseOf(at.id) : "done";
|
|
6884
6899
|
const assignee = at && ["ready", "waiting"].includes(phase) ? assigneeOf?.(at) : void 0;
|
|
@@ -6910,7 +6925,7 @@ function WorkflowRunStatus({
|
|
|
6910
6925
|
"span",
|
|
6911
6926
|
{
|
|
6912
6927
|
className: ui.cn(
|
|
6913
|
-
`wf-kind-${
|
|
6928
|
+
`wf-kind-${chunk7XR6CPCU_cjs.stepKindOf(s)}`,
|
|
6914
6929
|
"h-1.5 w-3 shrink-0 rounded-full",
|
|
6915
6930
|
SEGMENT[phaseOf(s.id)],
|
|
6916
6931
|
s.id === atId && "w-5"
|
|
@@ -6956,7 +6971,7 @@ function groupThreadActivity(steps, items) {
|
|
|
6956
6971
|
continue;
|
|
6957
6972
|
}
|
|
6958
6973
|
if (current === void 0) out.before.push(item);
|
|
6959
|
-
else if (
|
|
6974
|
+
else if (chunkY3GJBLAI_cjs.isRunFinished(steps, states)) out.after.push(item);
|
|
6960
6975
|
else {
|
|
6961
6976
|
const status = states[current]?.status;
|
|
6962
6977
|
const at = status === "done" || status === "skipped" ? steps.find((s) => !["done", "skipped"].includes(states[s.id]?.status ?? ""))?.id ?? current : current;
|
|
@@ -6979,9 +6994,9 @@ var DEFAULT_WORKFLOW_THREAD_STRIP_LABELS = {
|
|
|
6979
6994
|
after: "After",
|
|
6980
6995
|
beforeSteps: "Before the first step",
|
|
6981
6996
|
afterSteps: "After the last step",
|
|
6982
|
-
kinds:
|
|
6983
|
-
documents:
|
|
6984
|
-
record:
|
|
6997
|
+
kinds: chunk7XR6CPCU_cjs.DEFAULT_STEP_KIND_LABELS,
|
|
6998
|
+
documents: chunk7XR6CPCU_cjs.DEFAULT_STEP_DOCUMENT_LABELS,
|
|
6999
|
+
record: chunk7XR6CPCU_cjs.DEFAULT_STEP_RECORD_LABELS
|
|
6985
7000
|
};
|
|
6986
7001
|
function WorkflowThreadStartedBy({
|
|
6987
7002
|
origin,
|
|
@@ -7112,7 +7127,7 @@ function EntriesChip({
|
|
|
7112
7127
|
const latest = items.at(-1);
|
|
7113
7128
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { children: [
|
|
7114
7129
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7115
|
-
|
|
7130
|
+
chunk7XR6CPCU_cjs.StepChip,
|
|
7116
7131
|
{
|
|
7117
7132
|
kind,
|
|
7118
7133
|
phase: "ready",
|
|
@@ -7163,17 +7178,17 @@ function WorkflowThreadStrip({
|
|
|
7163
7178
|
setOpen(id);
|
|
7164
7179
|
onSelectStep?.(id);
|
|
7165
7180
|
};
|
|
7166
|
-
const phaseOf = (id) =>
|
|
7181
|
+
const phaseOf = (id) => chunkY3GJBLAI_cjs.stepPhase(steps, states, id);
|
|
7167
7182
|
const iconOf = (step) => step.icon && renderIcon ? renderIcon(step.icon) : void 0;
|
|
7168
7183
|
const glyphOf = (step) => {
|
|
7169
|
-
const KindIcon =
|
|
7184
|
+
const KindIcon = chunk7XR6CPCU_cjs.STEP_KIND_ICONS[chunk7XR6CPCU_cjs.stepKindOf(step)];
|
|
7170
7185
|
return iconOf(step) ?? /* @__PURE__ */ jsxRuntime.jsx(KindIcon, {});
|
|
7171
7186
|
};
|
|
7172
7187
|
const waitingOf = (id) => {
|
|
7173
7188
|
const step = steps.find((s) => s.id === id);
|
|
7174
7189
|
const phase = phaseOf(id);
|
|
7175
|
-
const documents =
|
|
7176
|
-
if (documents.length) return
|
|
7190
|
+
const documents = chunkY3GJBLAI_cjs.waitingDocuments(states[id]);
|
|
7191
|
+
if (documents.length) return chunkY3GJBLAI_cjs.waitingForDocumentsText(documents.length);
|
|
7177
7192
|
const name = step && (phase === "ready" || phase === "waiting") ? assigneeOf?.(step) : void 0;
|
|
7178
7193
|
return name ? l.waitingFor.replace("{name}", name) : void 0;
|
|
7179
7194
|
};
|
|
@@ -7183,8 +7198,8 @@ function WorkflowThreadStrip({
|
|
|
7183
7198
|
const assignee = phase === "ready" || phase === "waiting" ? assigneeOf?.(step) : void 0;
|
|
7184
7199
|
const waiting = waitingOf(step.id);
|
|
7185
7200
|
const sentBack = states[step.id]?.sentBack;
|
|
7186
|
-
const kind =
|
|
7187
|
-
const documents =
|
|
7201
|
+
const kind = chunk7XR6CPCU_cjs.stepKindOf(step);
|
|
7202
|
+
const documents = chunk7XR6CPCU_cjs.stepDocuments(steps, states, step.id);
|
|
7188
7203
|
const latestDoc = onOpenDocument ? documents.at(-1) : void 0;
|
|
7189
7204
|
const finished = ["done", "skipped", "failed"].includes(phase);
|
|
7190
7205
|
const chip = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -7197,7 +7212,7 @@ function WorkflowThreadStrip({
|
|
|
7197
7212
|
},
|
|
7198
7213
|
children: [
|
|
7199
7214
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7200
|
-
|
|
7215
|
+
chunk7XR6CPCU_cjs.StepChip,
|
|
7201
7216
|
{
|
|
7202
7217
|
kind,
|
|
7203
7218
|
phase,
|
|
@@ -7246,7 +7261,7 @@ function WorkflowThreadStrip({
|
|
|
7246
7261
|
),
|
|
7247
7262
|
sentBack && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "px-1 text-xs text-amber-700 dark:text-amber-300", children: l.sentBack }),
|
|
7248
7263
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7249
|
-
|
|
7264
|
+
chunk7XR6CPCU_cjs.StepDocumentCards,
|
|
7250
7265
|
{
|
|
7251
7266
|
refs: documents,
|
|
7252
7267
|
heading: step.kind === "review" ? phase === "done" ? l.documents.approved : l.documents.toApprove : l.documents.produced,
|
|
@@ -7257,7 +7272,7 @@ function WorkflowThreadStrip({
|
|
|
7257
7272
|
}
|
|
7258
7273
|
),
|
|
7259
7274
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7260
|
-
|
|
7275
|
+
chunk7XR6CPCU_cjs.StepRecord,
|
|
7261
7276
|
{
|
|
7262
7277
|
step,
|
|
7263
7278
|
state: states[step.id],
|
|
@@ -7290,10 +7305,10 @@ function WorkflowThreadStrip({
|
|
|
7290
7305
|
return latestDoc ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center", children: [
|
|
7291
7306
|
chip,
|
|
7292
7307
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7293
|
-
|
|
7308
|
+
chunk7XR6CPCU_cjs.StepDocumentButton,
|
|
7294
7309
|
{
|
|
7295
7310
|
kind,
|
|
7296
|
-
name: nameOfDoc?.(
|
|
7311
|
+
name: nameOfDoc?.(chunkY3GJBLAI_cjs.splitDocRef(latestDoc).id) ?? latestDoc,
|
|
7297
7312
|
onOpen: () => onOpenDocument?.(latestDoc),
|
|
7298
7313
|
testId: `workflow-thread-step-${step.id}-open-document`
|
|
7299
7314
|
}
|
|
@@ -7326,17 +7341,17 @@ function WorkflowThreadStrip({
|
|
|
7326
7341
|
),
|
|
7327
7342
|
strays.map((s) => /* @__PURE__ */ jsxRuntime.jsx(SignalPill, { signal: s, l }, `${s.step}-${s.signal}`))
|
|
7328
7343
|
] }) : null;
|
|
7329
|
-
const at = steps.find((s) => s.id === (selected ?? activeStepId(
|
|
7330
|
-
const headingPx = (step) => `${l.kinds[
|
|
7344
|
+
const at = steps.find((s) => s.id === (selected ?? activeStepId(chunkY3GJBLAI_cjs.stepLevels(steps), phaseOf)));
|
|
7345
|
+
const headingPx = (step) => `${l.kinds[chunk7XR6CPCU_cjs.stepKindOf(step)]} \xB7 ${waitingOf(step.id) ?? ""}`.length * 5.6 - step.title.length * 6.5;
|
|
7331
7346
|
const reserve = {
|
|
7332
|
-
always: (at ? Math.max(0, headingPx(at)) : 0) + steps.filter((s) => grouped.byStep[s.id]?.length).length * BEADS_PX + (onOpenDocument ? steps.filter((s) =>
|
|
7347
|
+
always: (at ? Math.max(0, headingPx(at)) : 0) + steps.filter((s) => grouped.byStep[s.id]?.length).length * BEADS_PX + (onOpenDocument ? steps.filter((s) => chunk7XR6CPCU_cjs.stepDocuments(steps, states, s.id).length).length * DOC_BUTTON_PX : 0),
|
|
7333
7348
|
leading: leading ? 150 : 0,
|
|
7334
7349
|
trailing: trailing ? 120 : 0
|
|
7335
7350
|
};
|
|
7336
7351
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: ui.cn("min-w-0 flex-1", className), "data-testid": "workflow-thread-strip", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7337
7352
|
StepBarFrame,
|
|
7338
7353
|
{
|
|
7339
|
-
levels:
|
|
7354
|
+
levels: chunkY3GJBLAI_cjs.stepLevels(steps),
|
|
7340
7355
|
phaseOf,
|
|
7341
7356
|
current: selected,
|
|
7342
7357
|
onSelect: setSelected,
|
|
@@ -7347,7 +7362,7 @@ function WorkflowThreadStrip({
|
|
|
7347
7362
|
reservePx: reserve,
|
|
7348
7363
|
maxSpan,
|
|
7349
7364
|
icon: glyphOf,
|
|
7350
|
-
kindOf:
|
|
7365
|
+
kindOf: chunk7XR6CPCU_cjs.stepKindOf,
|
|
7351
7366
|
labels: { waitingFor: l.waitingFor, ...barLabels },
|
|
7352
7367
|
tid: (suffix) => `workflow-thread-${suffix}`
|
|
7353
7368
|
}
|
|
@@ -7413,7 +7428,7 @@ function TaskRunsDialog({
|
|
|
7413
7428
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full items-center gap-2", children: [
|
|
7414
7429
|
run.error && renderErrorReport?.(run),
|
|
7415
7430
|
(run.conversationId || run.resultId && onOpenResult) && /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, variant: "ghost", size: "sm", className: "h-7 gap-1.5", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7416
|
-
|
|
7431
|
+
chunkGAVQFR6P_cjs.ActionLink,
|
|
7417
7432
|
{
|
|
7418
7433
|
href: getRunHref?.(run),
|
|
7419
7434
|
onSelect: () => {
|
|
@@ -7592,7 +7607,7 @@ function defaultTaskComposerValues(workflows, initial) {
|
|
|
7592
7607
|
return {
|
|
7593
7608
|
assignee: "me",
|
|
7594
7609
|
workflowId,
|
|
7595
|
-
inputs: workflow ? { ...
|
|
7610
|
+
inputs: workflow ? { ...chunkSQCCQU3K_cjs.defaultInputs(workflow), ...initial?.inputs } : { ...initial?.inputs },
|
|
7596
7611
|
when: "manual",
|
|
7597
7612
|
runAt: "",
|
|
7598
7613
|
rrule: "",
|
|
@@ -7700,19 +7715,19 @@ function WorkflowComposer({
|
|
|
7700
7715
|
return !docs?.length;
|
|
7701
7716
|
})
|
|
7702
7717
|
);
|
|
7703
|
-
const whatMissing = !workflow || Object.keys(
|
|
7718
|
+
const whatMissing = !workflow || Object.keys(chunkSQCCQU3K_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs)).length > 0;
|
|
7704
7719
|
const runAtPast = values.when === "once" && values.runAt !== "" && values.runAt !== initialValues?.runAt && new Date(values.runAt).getTime() <= Date.now();
|
|
7705
7720
|
const whenMissing = missingWhen(values, runAtPast);
|
|
7706
7721
|
const scheduled = values.when !== "now" && values.when !== "manual";
|
|
7707
7722
|
const agentMissing = scheduled && values.agentId === "";
|
|
7708
7723
|
const canSubmit = !whatMissing && !noFiles && whenMissing === null && !agentMissing && !isPending && !planDrafting;
|
|
7709
|
-
const derivedName = workflow ?
|
|
7724
|
+
const derivedName = workflow ? chunkM55XUF4L_cjs.deriveWorkflowName(workflow, values.inputs) : "";
|
|
7710
7725
|
const pickWorkflow = (next) => {
|
|
7711
7726
|
const def = workflows.find((w) => w.id === next);
|
|
7712
7727
|
setValues({
|
|
7713
7728
|
...values,
|
|
7714
7729
|
workflowId: next,
|
|
7715
|
-
inputs: def ?
|
|
7730
|
+
inputs: def ? chunkSQCCQU3K_cjs.defaultInputs(def) : {},
|
|
7716
7731
|
...def?.documentAction ? { access: "standing" } : {}
|
|
7717
7732
|
});
|
|
7718
7733
|
};
|
|
@@ -7840,7 +7855,7 @@ function WorkflowComposer({
|
|
|
7840
7855
|
},
|
|
7841
7856
|
"data-testid": `${id}-dropzone`,
|
|
7842
7857
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7843
|
-
|
|
7858
|
+
chunkMHGZZ6IJ_cjs.AddFilesFirst,
|
|
7844
7859
|
{
|
|
7845
7860
|
reason: l.addFilesReason,
|
|
7846
7861
|
action: addFilesAction,
|
|
@@ -7850,7 +7865,7 @@ function WorkflowComposer({
|
|
|
7850
7865
|
}
|
|
7851
7866
|
),
|
|
7852
7867
|
!noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7853
|
-
|
|
7868
|
+
chunkJARRHAQW_cjs.SchemaForm,
|
|
7854
7869
|
{
|
|
7855
7870
|
fields,
|
|
7856
7871
|
values: values.inputs,
|
|
@@ -8288,7 +8303,7 @@ function WorkTaskComposer({
|
|
|
8288
8303
|
}, [open]);
|
|
8289
8304
|
const workflow = workflows.find((w) => w.id === values.workflowId);
|
|
8290
8305
|
const fields = workflow?.inputs ?? [];
|
|
8291
|
-
const errors = workflow ?
|
|
8306
|
+
const errors = workflow ? chunkSQCCQU3K_cjs.validateInputs({ ...workflow, inputs: fields }, values.inputs) : {};
|
|
8292
8307
|
const hasWork = configOpen && Boolean(workflow) && Object.keys(errors).length === 0;
|
|
8293
8308
|
const unattended = hasWork && values.when !== "now" && values.when !== "manual";
|
|
8294
8309
|
const canConfigure = !isEdit || seed.assignee === "agent";
|
|
@@ -8296,7 +8311,7 @@ function WorkTaskComposer({
|
|
|
8296
8311
|
const set = (key, value) => setValues({ ...values, [key]: value });
|
|
8297
8312
|
const pickWorkflow = (id2) => {
|
|
8298
8313
|
const next = workflows.find((w) => w.id === id2);
|
|
8299
|
-
setValues({ ...values, workflowId: id2, inputs: next ?
|
|
8314
|
+
setValues({ ...values, workflowId: id2, inputs: next ? chunkSQCCQU3K_cjs.defaultInputs(next) : {} });
|
|
8300
8315
|
};
|
|
8301
8316
|
const openConfigure = () => {
|
|
8302
8317
|
setConfigOpen(true);
|
|
@@ -8482,7 +8497,7 @@ function WorkTaskComposer({
|
|
|
8482
8497
|
)
|
|
8483
8498
|
] }),
|
|
8484
8499
|
workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8485
|
-
|
|
8500
|
+
chunkJARRHAQW_cjs.SchemaForm,
|
|
8486
8501
|
{
|
|
8487
8502
|
fields,
|
|
8488
8503
|
values: values.inputs,
|
|
@@ -8936,7 +8951,7 @@ function ConfigFieldComponent({
|
|
|
8936
8951
|
const fieldTestId = chunkPLIF5CUV_cjs.testIdOr(testIds?.field?.(section, fieldName), {
|
|
8937
8952
|
testId: `config-field-${section}-${fieldName.replace(/\./g, "-")}`
|
|
8938
8953
|
});
|
|
8939
|
-
const { notify } =
|
|
8954
|
+
const { notify } = chunkVMXTOIXB_cjs.useBlocksEnvironment();
|
|
8940
8955
|
const fieldId = `${section}-${fieldName}`;
|
|
8941
8956
|
const label = fieldSchema.title || prettifyKey(fieldName.split(".").pop() ?? fieldName);
|
|
8942
8957
|
const description = fieldSchema.description || "";
|
|
@@ -10065,6 +10080,8 @@ exports.isMainSkillFile = isMainSkillFile;
|
|
|
10065
10080
|
exports.isOutOfBounds = isOutOfBounds;
|
|
10066
10081
|
exports.isPlainTodo = isPlainTodo;
|
|
10067
10082
|
exports.isValidAgentName = isValidAgentName;
|
|
10083
|
+
exports.labelInputName = labelInputName;
|
|
10084
|
+
exports.labelInputs = labelInputs;
|
|
10068
10085
|
exports.labelRef = labelRef;
|
|
10069
10086
|
exports.labelRefKey = labelRefKey;
|
|
10070
10087
|
exports.matchRequiredLabels = matchRequiredLabels;
|
|
@@ -10088,7 +10105,8 @@ exports.unresolvedLabelRefs = unresolvedLabelRefs;
|
|
|
10088
10105
|
exports.useWorkflowLaunchRequest = useWorkflowLaunchRequest;
|
|
10089
10106
|
exports.useWorkflowView = useWorkflowView;
|
|
10090
10107
|
exports.withLabelIds = withLabelIds;
|
|
10108
|
+
exports.withLabelInputs = withLabelInputs;
|
|
10091
10109
|
exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
|
|
10092
10110
|
exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
|
|
10093
|
-
//# sourceMappingURL=chunk-
|
|
10094
|
-
//# sourceMappingURL=chunk-
|
|
10111
|
+
//# sourceMappingURL=chunk-ZLJP6447.cjs.map
|
|
10112
|
+
//# sourceMappingURL=chunk-ZLJP6447.cjs.map
|