@arbidocs/blocks 0.5.148 → 0.5.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/arbidocs-record-take.mjs +122 -0
- package/dist/{ConnectedCallDock-6VGATAAQ.cjs → ConnectedCallDock-L3QIWXAA.cjs} +31 -31
- package/dist/{ConnectedCallDock-6VGATAAQ.cjs.map → ConnectedCallDock-L3QIWXAA.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-YBNERVTW.cjs → ConnectedCallRoom-S7INF4I5.cjs} +23 -23
- package/dist/{ConnectedCallRoom-YBNERVTW.cjs.map → ConnectedCallRoom-S7INF4I5.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-BVECWYJ5.cjs} +22 -21
- package/dist/{ConnectedNativeDocxComparison-MG54YLSO.cjs.map → ConnectedNativeDocxComparison-BVECWYJ5.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-JZQFTC5H.cjs → ConnectedPresentation-F6NYQ2X7.cjs} +24 -24
- package/dist/{ConnectedPresentation-JZQFTC5H.cjs.map → ConnectedPresentation-F6NYQ2X7.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-T5J4YLA7.cjs} +8 -8
- package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-T5J4YLA7.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-BLR762KY.cjs → ConnectedSlidesTab-WY6JCGWZ.cjs} +21 -21
- package/dist/{ConnectedSlidesTab-BLR762KY.cjs.map → ConnectedSlidesTab-WY6JCGWZ.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-7KZGQECL.cjs → ConnectedStreamedWordArtifact-ELNWWKZD.cjs} +22 -21
- package/dist/{ConnectedStreamedWordArtifact-7KZGQECL.cjs.map → ConnectedStreamedWordArtifact-ELNWWKZD.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-UDC4PNIS.cjs → DocumentReviewCard-KV2B7BD3.cjs} +22 -22
- package/dist/{DocumentReviewCard-UDC4PNIS.cjs.map → DocumentReviewCard-KV2B7BD3.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-D5GHWK4Y.cjs → FilesViewerDialog-HJABYPOA.cjs} +57 -57
- package/dist/{FilesViewerDialog-D5GHWK4Y.cjs.map → FilesViewerDialog-HJABYPOA.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-2NRV4CWP.cjs → WorkspaceTableView-XXCJ7LBO.cjs} +9 -9
- package/dist/{WorkspaceTableView-2NRV4CWP.cjs.map → WorkspaceTableView-XXCJ7LBO.cjs.map} +1 -1
- package/dist/agents/index.cjs +430 -410
- 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-RKRKOYO4.cjs} +32 -32
- package/dist/ai-RKRKOYO4.cjs.map +1 -0
- package/dist/calls/index.cjs +147 -147
- package/dist/chat/index.cjs +62 -62
- package/dist/{chunk-3VPNL4EH.cjs → chunk-2XIENKEI.cjs} +137 -119
- package/dist/chunk-2XIENKEI.cjs.map +1 -0
- 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-57LUHZLV.cjs → chunk-43D2KKWT.cjs} +8 -8
- package/dist/{chunk-57LUHZLV.cjs.map → chunk-43D2KKWT.cjs.map} +1 -1
- package/dist/{chunk-YZ25NAR3.cjs → chunk-5636X4OX.cjs} +18 -18
- package/dist/{chunk-YZ25NAR3.cjs.map → chunk-5636X4OX.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-G5YLJ2YT.cjs → chunk-6LTUUXRL.cjs} +4 -4
- package/dist/{chunk-G5YLJ2YT.cjs.map → chunk-6LTUUXRL.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-ONRUHYW3.cjs → chunk-7PUVSSXX.cjs} +4 -4
- package/dist/{chunk-ONRUHYW3.cjs.map → chunk-7PUVSSXX.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-ZOU6K6DD.cjs → chunk-AN4YKCBD.cjs} +4 -4
- package/dist/{chunk-ZOU6K6DD.cjs.map → chunk-AN4YKCBD.cjs.map} +1 -1
- package/dist/{chunk-MEWRE43W.cjs → chunk-AUEFLW3V.cjs} +108 -102
- package/dist/chunk-AUEFLW3V.cjs.map +1 -0
- package/dist/{chunk-AZQ4XIVY.cjs → chunk-BDLXTMOK.cjs} +138 -138
- package/dist/{chunk-AZQ4XIVY.cjs.map → chunk-BDLXTMOK.cjs.map} +1 -1
- package/dist/{chunk-C6RJQQLG.cjs → chunk-BL3UUWIU.cjs} +10 -10
- package/dist/{chunk-C6RJQQLG.cjs.map → chunk-BL3UUWIU.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-L5Q5PDTA.cjs → chunk-CFSLZW4Y.cjs} +4 -4
- package/dist/{chunk-L5Q5PDTA.cjs.map → chunk-CFSLZW4Y.cjs.map} +1 -1
- package/dist/{chunk-JJDJLAC7.cjs → chunk-CSN52UFI.cjs} +78 -78
- package/dist/{chunk-JJDJLAC7.cjs.map → chunk-CSN52UFI.cjs.map} +1 -1
- package/dist/{chunk-ECSOXKJQ.cjs → chunk-DEJTECAY.cjs} +6 -6
- package/dist/{chunk-ECSOXKJQ.cjs.map → chunk-DEJTECAY.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-UNWDR6GG.cjs → chunk-FE4H7Z37.cjs} +4 -4
- package/dist/{chunk-UNWDR6GG.cjs.map → chunk-FE4H7Z37.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-HWZT24TD.cjs → chunk-FVFIAQ2S.cjs} +165 -75
- package/dist/chunk-FVFIAQ2S.cjs.map +1 -0
- 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-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-IC3NREIK.cjs} +29 -29
- package/dist/{chunk-VF26CUE3.cjs.map → chunk-IC3NREIK.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-VLHBKF4P.cjs → chunk-JUFSJGTN.cjs} +6 -6
- package/dist/{chunk-VLHBKF4P.cjs.map → chunk-JUFSJGTN.cjs.map} +1 -1
- package/dist/{chunk-ZCVW63DF.cjs → chunk-KGAYY7LB.cjs} +15 -15
- package/dist/{chunk-ZCVW63DF.cjs.map → chunk-KGAYY7LB.cjs.map} +1 -1
- package/dist/{chunk-IFJBE7M5.cjs → chunk-L7QNPS52.cjs} +11 -11
- package/dist/{chunk-IFJBE7M5.cjs.map → chunk-L7QNPS52.cjs.map} +1 -1
- package/dist/{chunk-2XZ3HBAA.cjs → chunk-LW7TDQ63.cjs} +30 -30
- package/dist/{chunk-2XZ3HBAA.cjs.map → chunk-LW7TDQ63.cjs.map} +1 -1
- package/dist/{chunk-LCIMYEGX.cjs → chunk-M53KQLFA.cjs} +9 -9
- package/dist/{chunk-LCIMYEGX.cjs.map → chunk-M53KQLFA.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-VCDD763Y.cjs → chunk-N2IQSGYU.cjs} +4 -4
- package/dist/{chunk-VCDD763Y.cjs.map → chunk-N2IQSGYU.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-ORGGDQKZ.cjs → chunk-P65JMN57.cjs} +40 -40
- package/dist/{chunk-ORGGDQKZ.cjs.map → chunk-P65JMN57.cjs.map} +1 -1
- package/dist/{chunk-7AULM6LS.cjs → chunk-QRCYKBLX.cjs} +7 -7
- package/dist/{chunk-7AULM6LS.cjs.map → chunk-QRCYKBLX.cjs.map} +1 -1
- package/dist/{chunk-EYXU32D7.cjs → chunk-QVKSN3G3.cjs} +6 -6
- package/dist/{chunk-EYXU32D7.cjs.map → chunk-QVKSN3G3.cjs.map} +1 -1
- package/dist/{chunk-GF3I3SA4.cjs → chunk-RBBUKGG4.cjs} +12 -12
- package/dist/{chunk-GF3I3SA4.cjs.map → chunk-RBBUKGG4.cjs.map} +1 -1
- package/dist/{chunk-AYWY4MX2.cjs → chunk-RCUM5HQN.cjs} +28 -28
- package/dist/{chunk-AYWY4MX2.cjs.map → chunk-RCUM5HQN.cjs.map} +1 -1
- package/dist/{chunk-U6XMZG6G.cjs → chunk-RDBUQCAS.cjs} +3 -3
- package/dist/{chunk-U6XMZG6G.cjs.map → chunk-RDBUQCAS.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-YST6GVN5.cjs → chunk-TBLQCML6.cjs} +18 -18
- package/dist/{chunk-YST6GVN5.cjs.map → chunk-TBLQCML6.cjs.map} +1 -1
- package/dist/{chunk-DUNXLT63.cjs → chunk-TGZAJVDV.cjs} +4 -4
- package/dist/{chunk-DUNXLT63.cjs.map → chunk-TGZAJVDV.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-LZQ2XZOC.cjs → chunk-UBKJNCWY.cjs} +29 -29
- package/dist/{chunk-LZQ2XZOC.cjs.map → chunk-UBKJNCWY.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-2VEQKLNN.cjs → chunk-VGRLKOIZ.cjs} +8 -8
- package/dist/{chunk-2VEQKLNN.cjs.map → chunk-VGRLKOIZ.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-FHKBR55Q.cjs → chunk-VZZ2YIN4.cjs} +4 -4
- package/dist/{chunk-FHKBR55Q.cjs.map → chunk-VZZ2YIN4.cjs.map} +1 -1
- package/dist/{chunk-S5OGPQSB.cjs → chunk-WECRDCH4.cjs} +5 -5
- package/dist/{chunk-S5OGPQSB.cjs.map → chunk-WECRDCH4.cjs.map} +1 -1
- 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-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-GAA222SK.cjs → chunk-XJAPT42P.cjs} +5 -5
- package/dist/{chunk-GAA222SK.cjs.map → chunk-XJAPT42P.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-73ECBDG7.cjs → chunk-Y3OI7ZP7.cjs} +48 -14
- package/dist/chunk-Y3OI7ZP7.cjs.map +1 -0
- package/dist/{chunk-OXPIJYRU.cjs → chunk-YF5J44EA.cjs} +87 -87
- package/dist/{chunk-OXPIJYRU.cjs.map → chunk-YF5J44EA.cjs.map} +1 -1
- package/dist/{chunk-FK7MBD5H.cjs → chunk-YRU6ZJUW.cjs} +14 -14
- package/dist/{chunk-FK7MBD5H.cjs.map → chunk-YRU6ZJUW.cjs.map} +1 -1
- package/dist/{chunk-JJZOL5MG.cjs → chunk-ZNPBC4MK.cjs} +34 -10
- package/dist/chunk-ZNPBC4MK.cjs.map +1 -0
- package/dist/{chunk-MC34TXSS.cjs → chunk-ZX76KVRE.cjs} +17 -17
- package/dist/{chunk-MC34TXSS.cjs.map → chunk-ZX76KVRE.cjs.map} +1 -1
- package/dist/citations/index.cjs +8 -8
- package/dist/connect/docx.cjs +25 -24
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/index.cjs +1456 -1456
- package/dist/connect/viewer.cjs +41 -41
- 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 +19 -19
- package/dist/embed/index.cjs +50 -50
- package/dist/facts/index.cjs +44 -44
- package/dist/files/index.cjs +229 -229
- package/dist/home/index.cjs +32 -32
- package/dist/index.cjs +1645 -1625
- package/dist/office/index.cjs +5 -5
- package/dist/pages/index.cjs +13 -13
- 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/record/index.cjs +234 -3
- package/dist/record/index.cjs.map +1 -1
- package/dist/record/index.d.ts +29 -2
- package/dist/record/index.js +231 -4
- package/dist/record/index.js.map +1 -1
- package/dist/record/runs.d.ts +101 -0
- package/dist/retrieval/index.cjs +4 -4
- package/dist/settings/index.cjs +147 -147
- package/dist/shell/index.cjs +88 -88
- package/dist/studio/index.cjs +46 -46
- 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 +199 -115
- 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 +7 -5
- package/record/SKILL.md +126 -0
- 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
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
+
fromPlanInputs,
|
|
3
4
|
fromPlanSteps,
|
|
4
5
|
layoutFromPlanSteps,
|
|
6
|
+
toPlanInputs,
|
|
5
7
|
toPlanSteps
|
|
6
8
|
} from "../agents/index.js";
|
|
7
9
|
import { isoToLocalInput, localInputToIso, workflowWhen } from "../agents/index.js";
|
|
@@ -53,7 +55,9 @@ function plan(value, options) {
|
|
|
53
55
|
criteria: [],
|
|
54
56
|
max_passes: 3,
|
|
55
57
|
documents: [],
|
|
56
|
-
steps: toPlanSteps(value.workflow, options)
|
|
58
|
+
steps: toPlanSteps(value.workflow, options),
|
|
59
|
+
// What a run is started with (checked by the server when one starts).
|
|
60
|
+
inputs: toPlanInputs(value.workflow.inputs)
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
function builderToWorkflowRequest(value, workspaceId, options = {}) {
|
|
@@ -102,7 +106,7 @@ function workflowRecordToBuilder(record) {
|
|
|
102
106
|
id: record.external_id,
|
|
103
107
|
title: record.name,
|
|
104
108
|
description: record.description ?? "",
|
|
105
|
-
inputs:
|
|
109
|
+
inputs: fromPlanInputs(record.plan?.inputs),
|
|
106
110
|
landing: "chat",
|
|
107
111
|
schedulable: false,
|
|
108
112
|
run: { kind: "steps", steps, layout: layoutFromPlanSteps(planned ?? []) }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/workflow-canvas/trigger.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * What starts a workflow and who runs it: the builder's trigger node, and the mapping between a\n * builder's value (steps + trigger) and a saved workflow (`CreateWorkflowRequest` /\n * `WorkflowResponse`). The steps travel in the workflow's plan (`toPlanSteps`); every firing creates\n * a work thread that runs them.\n */\n\nimport type { components } from '@arbidocs/client'\nimport {\n fromPlanSteps,\n layoutFromPlanSteps,\n toPlanSteps,\n type StepComposeOptions,\n type WorkflowDefinition,\n} from '../agents'\nimport { isoToLocalInput, localInputToIso, workflowWhen } from '../agents'\n\ntype Schemas = components['schemas']\ntype CreateWorkflowRequest = Schemas['CreateWorkflowRequest']\ntype UpdateWorkflowRequest = Schemas['UpdateWorkflowRequest']\ntype WorkflowResponse = Schemas['WorkflowResponse']\n\n/** The event a step's signal raises (`TaskPlanStep.signals`): \"When a step signals\". */\nexport const WORKFLOW_SIGNAL_EVENT = 'workflow_signal'\n\n/**\n * When a workflow starts: `manual` when someone presses Run, `once` at a date, `repeat` on a\n * schedule, `event` when something happens in the workspace, `task` when another task is done.\n */\nexport type WorkflowStart = 'manual' | 'once' | 'repeat' | 'event' | 'task'\n\nexport interface WorkflowTrigger {\n start: WorkflowStart\n /** `once`: a `datetime-local` value. */\n runAt: string\n /** `repeat`: an RFC 5545 rule. */\n rrule: string\n timezone: string\n /** `event`: a notification type. */\n eventKind: string\n /** `event` on `workflow_signal`: the signal name it starts on (its `event_filter.signal`). */\n signal: string\n /** `event` on any other kind: the saved equality filter, kept as it was. */\n eventFilter?: Record<string, string | number | boolean> | null\n /** `task`: the task (`con-\u2026`) it waits on. */\n afterTaskId: string\n /** The agent that runs it (`agt-\u2026`); `''` = the owner's own assistant. */\n agentId: string\n /** Unattended starts: keep standing access, or ask the owner each run. */\n access: 'ask_each_run' | 'standing'\n}\n\nexport const DEFAULT_WORKFLOW_TRIGGER: WorkflowTrigger = {\n start: 'manual',\n runAt: '',\n rrule: '',\n timezone: typeof Intl !== 'undefined' ? Intl.DateTimeFormat().resolvedOptions().timeZone : 'UTC',\n eventKind: '',\n signal: '',\n afterTaskId: '',\n agentId: '',\n access: 'ask_each_run',\n}\n\n/** A builder's whole value: the steps (a stepped workflow) and what starts it. */\nexport interface WorkflowBuilderValue {\n workflow: WorkflowDefinition\n trigger: WorkflowTrigger\n}\n\n/** What is missing before the trigger can be saved; `null` when it can. */\nexport function triggerProblem(\n trigger: WorkflowTrigger\n): 'runAt' | 'rrule' | 'event' | 'signal' | 'task' | null {\n if (trigger.start === 'once' && !trigger.runAt) return 'runAt'\n if (trigger.start === 'repeat' && !trigger.rrule.trim()) return 'rrule'\n if (trigger.start === 'event' && !trigger.eventKind.trim()) return 'event'\n if (isSignalTrigger(trigger) && !trigger.signal.trim()) return 'signal'\n if (trigger.start === 'task' && !trigger.afterTaskId) return 'task'\n return null\n}\n\n/** Does the workflow start when a step (of any workflow) raises a signal? */\nexport const isSignalTrigger = (trigger: WorkflowTrigger): boolean =>\n trigger.start === 'event' && trigger.eventKind.trim() === WORKFLOW_SIGNAL_EVENT\n\nfunction eventFilter(trigger: WorkflowTrigger) {\n if (trigger.start !== 'event') return null\n if (isSignalTrigger(trigger)) return { signal: trigger.signal.trim() }\n return trigger.eventFilter && Object.keys(trigger.eventFilter).length ? trigger.eventFilter : null\n}\n\nfunction triggerFields(trigger: WorkflowTrigger, clearOthers: boolean) {\n const none = clearOthers ? null : undefined\n const filter = eventFilter(trigger)\n return {\n timezone: trigger.timezone,\n rrule: trigger.start === 'repeat' ? trigger.rrule.trim() : none,\n run_at: trigger.start === 'once' ? localInputToIso(trigger.runAt) : none,\n event_kind: trigger.start === 'event' ? trigger.eventKind.trim() : none,\n // A step signal is `workflow_signal` narrowed to one signal name.\n event_filter: filter ?? none,\n after_conversation_ext_id: trigger.start === 'task' ? trigger.afterTaskId : none,\n on_demand: trigger.start === 'manual',\n }\n}\n\nconst authMode = (trigger: WorkflowTrigger) =>\n trigger.start === 'manual'\n ? ('run_now_temp' as const)\n : trigger.access === 'standing'\n ? ('scheduled_permanent' as const)\n : ('scheduled_require_auth' as const)\n\nconst withoutUndefined = <T extends object>(o: T): T =>\n Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined)) as T\n\nfunction plan(value: WorkflowBuilderValue, options: StepComposeOptions) {\n return {\n goal: value.workflow.description,\n criteria: [],\n max_passes: 3,\n documents: [],\n steps: toPlanSteps(value.workflow, options),\n }\n}\n\n/** A new saved workflow: its steps in the plan (prompts keep `{{field}}` for each run to fill). */\nexport function builderToWorkflowRequest(\n value: WorkflowBuilderValue,\n workspaceId: string,\n options: StepComposeOptions = {}\n): CreateWorkflowRequest {\n return withoutUndefined({\n workspace_ext_id: workspaceId,\n name: value.workflow.title,\n description: value.workflow.description,\n active: true,\n shared: true,\n ...triggerFields(value.trigger, false),\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n plan: plan(value, options),\n }) as CreateWorkflowRequest\n}\n\n/** An edit of a saved workflow: the steps and the trigger as the builder now has them. */\nexport function builderToWorkflowUpdate(\n value: WorkflowBuilderValue,\n options: StepComposeOptions = {}\n): UpdateWorkflowRequest {\n return withoutUndefined({\n name: value.workflow.title,\n description: value.workflow.description,\n ...triggerFields(value.trigger, true),\n // The steps are what runs (a classic automation's single prompt or skill becomes its one step).\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n plan: plan(value, options),\n }) as UpdateWorkflowRequest\n}\n\n/**\n * A saved workflow back in the builder. A classic automation (one prompt or one skill, no steps)\n * opens as a workflow of that one agent step; saving it keeps it as steps.\n */\nexport function workflowRecordToBuilder(record: WorkflowResponse): WorkflowBuilderValue {\n const planned = (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>\n const steps = planned.length\n ? fromPlanSteps(planned)\n : record.prompt || record.skill_ref\n ? [\n {\n id: 'work',\n kind: 'agent' as const,\n title: record.name,\n ...(record.skill_ref\n ? { workflow: record.skill_ref }\n : { run: { kind: 'prompt' as const, promptTemplate: record.prompt } }),\n },\n ]\n : []\n const when = workflowWhen(record)\n return {\n workflow: {\n id: record.external_id,\n title: record.name,\n description: record.description ?? '',\n inputs:
|
|
5
|
-
"mappings": ";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EAC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ACX,cAAc;AAAA,IACd,cAAc,MAAM,QAAQ,WAAW;AAAA,IACvC,WAAW,SAAS,MAAM,OAAO;AAAA,IACjC,MAAM,KAAK,OAAO,OAAO;AAAA,EAC3B,CAAC;AACH;AAMO,SAAS,wBAAwB,QAAgD;AACtF,QAAM,UAAW,OAAO,MAAM,SAAS,CAAC;AACxC,QAAM,QAAQ,QAAQ,SAClB,cAAc,OAAO,IACrB,OAAO,UAAU,OAAO,YACtB;AAAA,IACE;AAAA,MACE,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,OAAO,OAAO;AAAA,MACd,GAAI,OAAO,YACP,EAAE,UAAU,OAAO,UAAU,IAC7B,EAAE,KAAK,EAAE,MAAM,UAAmB,gBAAgB,OAAO,OAAO,EAAE;AAAA,IACxE;AAAA,EACF,IACA,CAAC;AACP,QAAM,OAAO,aAAa,MAAM;AAChC,SAAO;AAAA,IACL,UAAU;AAAA,MACR,IAAI,OAAO;AAAA,MACX,OAAO,OAAO;AAAA,MACd,aAAa,OAAO,eAAe;AAAA,MACnC,QAAQ,
|
|
4
|
+
"sourcesContent": ["/**\n * What starts a workflow and who runs it: the builder's trigger node, and the mapping between a\n * builder's value (steps + trigger) and a saved workflow (`CreateWorkflowRequest` /\n * `WorkflowResponse`). The steps travel in the workflow's plan (`toPlanSteps`); every firing creates\n * a work thread that runs them.\n */\n\nimport type { components } from '@arbidocs/client'\nimport {\n fromPlanInputs,\n fromPlanSteps,\n layoutFromPlanSteps,\n toPlanInputs,\n toPlanSteps,\n type StepComposeOptions,\n type WorkflowDefinition,\n} from '../agents'\nimport { isoToLocalInput, localInputToIso, workflowWhen } from '../agents'\n\ntype Schemas = components['schemas']\ntype CreateWorkflowRequest = Schemas['CreateWorkflowRequest']\ntype UpdateWorkflowRequest = Schemas['UpdateWorkflowRequest']\ntype WorkflowResponse = Schemas['WorkflowResponse']\n\n/** The event a step's signal raises (`TaskPlanStep.signals`): \"When a step signals\". */\nexport const WORKFLOW_SIGNAL_EVENT = 'workflow_signal'\n\n/**\n * When a workflow starts: `manual` when someone presses Run, `once` at a date, `repeat` on a\n * schedule, `event` when something happens in the workspace, `task` when another task is done.\n */\nexport type WorkflowStart = 'manual' | 'once' | 'repeat' | 'event' | 'task'\n\nexport interface WorkflowTrigger {\n start: WorkflowStart\n /** `once`: a `datetime-local` value. */\n runAt: string\n /** `repeat`: an RFC 5545 rule. */\n rrule: string\n timezone: string\n /** `event`: a notification type. */\n eventKind: string\n /** `event` on `workflow_signal`: the signal name it starts on (its `event_filter.signal`). */\n signal: string\n /** `event` on any other kind: the saved equality filter, kept as it was. */\n eventFilter?: Record<string, string | number | boolean> | null\n /** `task`: the task (`con-\u2026`) it waits on. */\n afterTaskId: string\n /** The agent that runs it (`agt-\u2026`); `''` = the owner's own assistant. */\n agentId: string\n /** Unattended starts: keep standing access, or ask the owner each run. */\n access: 'ask_each_run' | 'standing'\n}\n\nexport const DEFAULT_WORKFLOW_TRIGGER: WorkflowTrigger = {\n start: 'manual',\n runAt: '',\n rrule: '',\n timezone: typeof Intl !== 'undefined' ? Intl.DateTimeFormat().resolvedOptions().timeZone : 'UTC',\n eventKind: '',\n signal: '',\n afterTaskId: '',\n agentId: '',\n access: 'ask_each_run',\n}\n\n/** A builder's whole value: the steps (a stepped workflow) and what starts it. */\nexport interface WorkflowBuilderValue {\n workflow: WorkflowDefinition\n trigger: WorkflowTrigger\n}\n\n/** What is missing before the trigger can be saved; `null` when it can. */\nexport function triggerProblem(\n trigger: WorkflowTrigger\n): 'runAt' | 'rrule' | 'event' | 'signal' | 'task' | null {\n if (trigger.start === 'once' && !trigger.runAt) return 'runAt'\n if (trigger.start === 'repeat' && !trigger.rrule.trim()) return 'rrule'\n if (trigger.start === 'event' && !trigger.eventKind.trim()) return 'event'\n if (isSignalTrigger(trigger) && !trigger.signal.trim()) return 'signal'\n if (trigger.start === 'task' && !trigger.afterTaskId) return 'task'\n return null\n}\n\n/** Does the workflow start when a step (of any workflow) raises a signal? */\nexport const isSignalTrigger = (trigger: WorkflowTrigger): boolean =>\n trigger.start === 'event' && trigger.eventKind.trim() === WORKFLOW_SIGNAL_EVENT\n\nfunction eventFilter(trigger: WorkflowTrigger) {\n if (trigger.start !== 'event') return null\n if (isSignalTrigger(trigger)) return { signal: trigger.signal.trim() }\n return trigger.eventFilter && Object.keys(trigger.eventFilter).length ? trigger.eventFilter : null\n}\n\nfunction triggerFields(trigger: WorkflowTrigger, clearOthers: boolean) {\n const none = clearOthers ? null : undefined\n const filter = eventFilter(trigger)\n return {\n timezone: trigger.timezone,\n rrule: trigger.start === 'repeat' ? trigger.rrule.trim() : none,\n run_at: trigger.start === 'once' ? localInputToIso(trigger.runAt) : none,\n event_kind: trigger.start === 'event' ? trigger.eventKind.trim() : none,\n // A step signal is `workflow_signal` narrowed to one signal name.\n event_filter: filter ?? none,\n after_conversation_ext_id: trigger.start === 'task' ? trigger.afterTaskId : none,\n on_demand: trigger.start === 'manual',\n }\n}\n\nconst authMode = (trigger: WorkflowTrigger) =>\n trigger.start === 'manual'\n ? ('run_now_temp' as const)\n : trigger.access === 'standing'\n ? ('scheduled_permanent' as const)\n : ('scheduled_require_auth' as const)\n\nconst withoutUndefined = <T extends object>(o: T): T =>\n Object.fromEntries(Object.entries(o).filter(([, v]) => v !== undefined)) as T\n\nfunction plan(value: WorkflowBuilderValue, options: StepComposeOptions) {\n return {\n goal: value.workflow.description,\n criteria: [],\n max_passes: 3,\n documents: [],\n steps: toPlanSteps(value.workflow, options),\n // What a run is started with (checked by the server when one starts).\n inputs: toPlanInputs(value.workflow.inputs),\n }\n}\n\n/** A new saved workflow: its steps in the plan (prompts keep `{{field}}` for each run to fill). */\nexport function builderToWorkflowRequest(\n value: WorkflowBuilderValue,\n workspaceId: string,\n options: StepComposeOptions = {}\n): CreateWorkflowRequest {\n return withoutUndefined({\n workspace_ext_id: workspaceId,\n name: value.workflow.title,\n description: value.workflow.description,\n active: true,\n shared: true,\n ...triggerFields(value.trigger, false),\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n plan: plan(value, options),\n }) as CreateWorkflowRequest\n}\n\n/** An edit of a saved workflow: the steps and the trigger as the builder now has them. */\nexport function builderToWorkflowUpdate(\n value: WorkflowBuilderValue,\n options: StepComposeOptions = {}\n): UpdateWorkflowRequest {\n return withoutUndefined({\n name: value.workflow.title,\n description: value.workflow.description,\n ...triggerFields(value.trigger, true),\n // The steps are what runs (a classic automation's single prompt or skill becomes its one step).\n prompt: '',\n skill_ref: null,\n skill_inputs: null,\n agent_ext_id: value.trigger.agentId || null,\n auth_mode: authMode(value.trigger),\n plan: plan(value, options),\n }) as UpdateWorkflowRequest\n}\n\n/**\n * A saved workflow back in the builder. A classic automation (one prompt or one skill, no steps)\n * opens as a workflow of that one agent step; saving it keeps it as steps.\n */\nexport function workflowRecordToBuilder(record: WorkflowResponse): WorkflowBuilderValue {\n const planned = (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>\n const steps = planned.length\n ? fromPlanSteps(planned)\n : record.prompt || record.skill_ref\n ? [\n {\n id: 'work',\n kind: 'agent' as const,\n title: record.name,\n ...(record.skill_ref\n ? { workflow: record.skill_ref }\n : { run: { kind: 'prompt' as const, promptTemplate: record.prompt } }),\n },\n ]\n : []\n const when = workflowWhen(record)\n return {\n workflow: {\n id: record.external_id,\n title: record.name,\n description: record.description ?? '',\n inputs: fromPlanInputs(record.plan?.inputs),\n landing: 'chat',\n schedulable: false,\n run: { kind: 'steps', steps, layout: layoutFromPlanSteps(planned ?? []) },\n },\n trigger: {\n ...DEFAULT_WORKFLOW_TRIGGER,\n start: when === 'now' ? 'manual' : when,\n runAt: isoToLocalInput(record.run_at),\n rrule: record.rrule ?? '',\n timezone: record.timezone || DEFAULT_WORKFLOW_TRIGGER.timezone,\n eventKind: record.event_kind ?? '',\n signal:\n record.event_kind === WORKFLOW_SIGNAL_EVENT &&\n typeof record.event_filter?.signal === 'string'\n ? record.event_filter.signal\n : '',\n eventFilter:\n record.event_kind && record.event_kind !== WORKFLOW_SIGNAL_EVENT && record.event_filter\n ? (record.event_filter as WorkflowTrigger['eventFilter'])\n : undefined,\n afterTaskId: record.after_conversation_ext_id ?? '',\n agentId: record.agent_ext_id ?? '',\n access: record.auth_mode === 'scheduled_permanent' ? 'standing' : 'ask_each_run',\n },\n }\n}\n\n/** A signal a firm's workflow declares, as the \"When a step signals\" picker offers it. */\nexport interface DeclaredSignal {\n value: string\n /** Where it is raised: `<workflow> \u203A <step>` (the first place, when several raise it). */\n label: string\n}\n\n/**\n * Every signal the given workflows' steps declare (saved records, plus the one being built), each\n * name once, in the order first seen: the picker's options. Free text stays allowed.\n */\nexport function declaredSignals(\n records: ReadonlyArray<Pick<WorkflowResponse, 'name' | 'plan'>>,\n current?: WorkflowDefinition\n): DeclaredSignal[] {\n const out = new Map<string, DeclaredSignal>()\n const add = (\n workflow: string,\n steps: ReadonlyArray<{ title: string; signals?: Array<{ name: string }> | null }>\n ) => {\n for (const step of steps)\n for (const signal of step.signals ?? [])\n if (signal.name && !out.has(signal.name))\n out.set(signal.name, { value: signal.name, label: `${workflow} \u203A ${step.title}` })\n }\n for (const record of records)\n add(record.name, (record.plan?.steps ?? []) as NonNullable<Parameters<typeof fromPlanSteps>[0]>)\n if (current?.run.kind === 'steps') add(current.title, current.run.steps)\n return [...out.values()]\n}\n"],
|
|
5
|
+
"mappings": ";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,iBAAiB,iBAAiB,oBAAoB;AAQxD,MAAM,wBAAwB;AA6B9B,MAAM,2BAA4C;AAAA,EACvD,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,UAAU,OAAO,SAAS,cAAc,KAAK,eAAe,EAAE,gBAAgB,EAAE,WAAW;AAAA,EAC3F,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,SAAS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,OAAO,QAAQ,CAAC,IAAI,IAAI,OAAO,IAAI;AACrC,cAAI,IAAI,OAAO,MAAM,EAAE,OAAO,OAAO,MAAM,OAAO,GAAG,QAAQ,WAAM,KAAK,KAAK,GAAG,CAAC;AAAA,EACzF;AACA,aAAW,UAAU;AACnB,QAAI,OAAO,MAAO,OAAO,MAAM,SAAS,CAAC,CAAsD;AACjG,MAAI,SAAS,IAAI,SAAS,QAAS,KAAI,QAAQ,OAAO,QAAQ,IAAI,KAAK;AACvE,SAAO,CAAC,GAAG,IAAI,OAAO,CAAC;AACzB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkHZF3YPEG_cjs = require('../chunk-HZF3YPEG.cjs');
|
|
5
5
|
var chunk32W2S6DE_cjs = require('../chunk-32W2S6DE.cjs');
|
|
6
6
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
7
7
|
require('../chunk-UMMZNZV3.cjs');
|
|
@@ -9,9 +9,9 @@ require('../chunk-AEQT2QQX.cjs');
|
|
|
9
9
|
require('../chunk-I6GEQWIV.cjs');
|
|
10
10
|
var chunk7G2LJMUG_cjs = require('../chunk-7G2LJMUG.cjs');
|
|
11
11
|
var chunkCYN66TBO_cjs = require('../chunk-CYN66TBO.cjs');
|
|
12
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-GAVQFR6P.cjs');
|
|
13
13
|
require('../chunk-IPSHAMO2.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-VMXTOIXB.cjs');
|
|
15
15
|
require('../chunk-YZBDHBKI.cjs');
|
|
16
16
|
require('../chunk-CVPV4I7Z.cjs');
|
|
17
17
|
require('../chunk-PLIF5CUV.cjs');
|
|
@@ -65,7 +65,7 @@ function WorkspaceGallery({
|
|
|
65
65
|
const opening = workspace.id === activeOpeningId;
|
|
66
66
|
const state = { current, opening };
|
|
67
67
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
68
|
-
|
|
68
|
+
chunkHZF3YPEG_cjs.WorkspaceCard,
|
|
69
69
|
{
|
|
70
70
|
workspace,
|
|
71
71
|
current,
|
|
@@ -88,59 +88,59 @@ function WorkspaceGallery({
|
|
|
88
88
|
|
|
89
89
|
Object.defineProperty(exports, "CommonWorkspaceToggle", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkHZF3YPEG_cjs.CommonWorkspaceToggle; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "DEFAULT_WORKSPACE_CARD_LABELS", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkHZF3YPEG_cjs.DEFAULT_WORKSPACE_CARD_LABELS; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ExpandableSection", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkHZF3YPEG_cjs.ExpandableSection; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "ItalicNone", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkHZF3YPEG_cjs.ItalicNone; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "LeaveFooter", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkHZF3YPEG_cjs.LeaveFooter; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "PageLoading", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkHZF3YPEG_cjs.PageLoading; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "WorkspaceAudienceLine", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceAudienceLine; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "WorkspaceCard", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceCard; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "WorkspaceGroup", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceGroup; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "WorkspaceIdentityPanel", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceIdentityPanel; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "WorkspaceList", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceList; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "WorkspacePageFrame", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspacePageFrame; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "WorkspaceProjectSlot", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceProjectSlot; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "WorkspaceTypeBadge", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkHZF3YPEG_cjs.WorkspaceTypeBadge; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "FormActions", {
|
|
146
146
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/coedit",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.150",
|
|
4
4
|
"description": "Real-time collaboration for the ARBI native DOCX editor: a Yjs mirror of the canonical OOXML package, session, and server runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/blocks",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.150",
|
|
4
4
|
"description": "Composable, domain-neutral UI blocks for ARBI apps, organised by capability (retrieval, facts, agents, workspaces, citations, collaboration) plus shell, theme and site primitives, on top of @arbidocs/react.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"bin": {
|
|
10
10
|
"arbidocs-copy-pdf-assets": "./bin/arbidocs-copy-pdf-assets.mjs",
|
|
11
|
+
"arbidocs-record-take": "./bin/arbidocs-record-take.mjs",
|
|
11
12
|
"arbidocs-render-take": "./bin/arbidocs-render-take.mjs"
|
|
12
13
|
},
|
|
13
14
|
"exports": {
|
|
@@ -319,6 +320,7 @@
|
|
|
319
320
|
"files": [
|
|
320
321
|
"bin",
|
|
321
322
|
"dist",
|
|
323
|
+
"record/SKILL.md",
|
|
322
324
|
"record/render-overlays.mjs",
|
|
323
325
|
"record/render-take.py",
|
|
324
326
|
"src/tokens.css",
|
|
@@ -349,9 +351,9 @@
|
|
|
349
351
|
"custom-site:test:e2e": "playwright test -c examples/custom-site/playwright.config.ts"
|
|
350
352
|
},
|
|
351
353
|
"dependencies": {
|
|
352
|
-
"@arbidocs/client": "0.5.
|
|
353
|
-
"@arbidocs/coedit": "0.5.
|
|
354
|
-
"@arbidocs/sdk": "0.5.
|
|
354
|
+
"@arbidocs/client": "0.5.150",
|
|
355
|
+
"@arbidocs/coedit": "0.5.150",
|
|
356
|
+
"@arbidocs/sdk": "0.5.150",
|
|
355
357
|
"@auth0/auth0-react": "^2.19.0",
|
|
356
358
|
"@dnd-kit/core": "^6.3.1",
|
|
357
359
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -402,7 +404,7 @@
|
|
|
402
404
|
"y-protocols": "^1.0.6"
|
|
403
405
|
},
|
|
404
406
|
"peerDependencies": {
|
|
405
|
-
"@arbidocs/react": "0.5.
|
|
407
|
+
"@arbidocs/react": "0.5.150",
|
|
406
408
|
"@lexical/html": "0.35.0",
|
|
407
409
|
"@lexical/link": "0.35.0",
|
|
408
410
|
"@lexical/list": "0.35.0",
|
package/record/SKILL.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arbi-record-demo-video
|
|
3
|
+
description: Record a custom site's demo video with @arbidocs/blocks/record — prepare a disposable workspace, drive the story with Playwright against the deployed backend, render the cut/zoomed/branded 1080p edit, check it, and deliver it to OVH. Use when asked to record, re-record or fix a demo/client video of any ARBI custom site (Clarum and the sites after it).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Recording a custom site's demo video
|
|
7
|
+
|
|
8
|
+
Every custom site (a site = kits + config + content) records its demo videos the same way, with
|
|
9
|
+
`@arbidocs/blocks/record`:
|
|
10
|
+
|
|
11
|
+
| Piece | What it does |
|
|
12
|
+
|-------|--------------|
|
|
13
|
+
| `createCinematic({ brand, testIds })` | the stage: a cursor that glides, click ripples, `caption`, `chapter`/`cover`/`uncover`, `lowerThird`, `focusOn`, `readDown`; `click` waits for toasts first; `signInAs` |
|
|
14
|
+
| `cine.take(page, { name, dir })` / `Take` | the take's clock: logs waits (`take.wait`) and the focus timeline for the edit |
|
|
15
|
+
| `createRunKit(cine, { prefix })` | following a workflow run: `driveRun`, `whileWorking`, `approveStep`, `pickTile`, `stepChip`, `currentStep`, `resumeRun` |
|
|
16
|
+
| `openWordById`, `spaGo`, `fillSecret` | open a document by id in Word, navigate without a reload, type a password without recording it |
|
|
17
|
+
| `arbidocs-record-take` (bin) | one take end to end: prepare → record → render → upload |
|
|
18
|
+
| `arbidocs-render-take` (bin, `record/render-take.py`) | the edit alone: cut long waits, zoom/pan, picture-in-picture, brand overlays, 1080p H.264 |
|
|
19
|
+
|
|
20
|
+
The site keeps only what is its own: its brand (`CinematicBrand` from its theme tokens and font
|
|
21
|
+
files), its stories (`e2e/record/*.record.ts`), its fixtures and its workspace prepare script.
|
|
22
|
+
Labels on screen (chapter cards, lower-thirds, captions) come from the story, never from the kit.
|
|
23
|
+
|
|
24
|
+
## Prerequisites
|
|
25
|
+
|
|
26
|
+
- **A disposable workspace** on the site and the **CI tester accounts** (`ci+…@arbi.city` /
|
|
27
|
+
`agent+…@arbi.city`) as its members. Never a customer's workspace or a real person's account;
|
|
28
|
+
the site's prepare script must refuse any other account.
|
|
29
|
+
- **A deployed backend** (the site itself, or the site's dev server proxied to the deployed
|
|
30
|
+
backend). Never a local mock: the video shows the real AI.
|
|
31
|
+
- For the render: `python3` with `numpy` and `opencv-python` (`RENDER_VENV=<venv>` puts a venv's
|
|
32
|
+
python first), `ffmpeg`, and Playwright's Chromium (it draws the overlays).
|
|
33
|
+
- For delivery: the aws CLI with the OVH S3 keys in its environment (`AWS_ACCESS_KEY_ID` /
|
|
34
|
+
`AWS_SECRET_ACCESS_KEY`; they are `vault_s3_access_key` / `vault_s3_secret_key` in
|
|
35
|
+
arbicity/ansible's vault — extract those two keys with a regex, never pipe the vault into a
|
|
36
|
+
YAML parser).
|
|
37
|
+
- Heavy work (long takes, renders) on a box meant for it, not a shared dev box.
|
|
38
|
+
|
|
39
|
+
## The one command
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx arbidocs-record-take --site <site> --story <file stem> --grep "<test title>" \
|
|
43
|
+
--prepare "node e2e/record/tools/prepare-workspace.mjs --seed" --upload
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
It runs the prepare command (skipped for a resumed take), then
|
|
47
|
+
`npx playwright test --config=playwright.record.config.ts -g "<test title>"`, renders
|
|
48
|
+
`<videos>/<site>-<story>.webm` with its `.waits.json` / `.focus.json` to `<site>-<story>.cut.mp4`,
|
|
49
|
+
and with `--upload` copies a passed, non-resumed take to
|
|
50
|
+
`s3://arbi-archive/demo-videos/<site>/<YYYY-MM-DD>-<story>.mp4` (OVH UK,
|
|
51
|
+
`https://s3.uk.io.cloud.ovh.net`) and prints a 7-day presigned link. Options: `--config`,
|
|
52
|
+
`--videos` (default `e2e/videos`), `--name`, `--out`, `--date`, and renderer flags after `--`
|
|
53
|
+
(`-- --max-zoom 1.6 --no-pip`). It exits with the recording's status: a failed take still renders
|
|
54
|
+
what it recorded, to see where it stopped.
|
|
55
|
+
|
|
56
|
+
A site usually wraps it in a two-line script (Clarum: `e2e/record/tools/take.sh`).
|
|
57
|
+
|
|
58
|
+
## Writing a story
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
const cine = createCinematic({ brand: SITE_BRAND, testIds: { email: 'email-input', … } })
|
|
62
|
+
const runs = createRunKit(cine, { prefix: 'run' }) // the runner's testIdPrefix
|
|
63
|
+
|
|
64
|
+
test('Client onboarding', async ({ page }) => {
|
|
65
|
+
const take = await cine.take(page, { name: 'site-20-onboarding', dir: 'e2e/videos' })
|
|
66
|
+
await cine.installStage(page)
|
|
67
|
+
await take.markSync() // before the first navigation
|
|
68
|
+
await page.goto('/app/login')
|
|
69
|
+
await cine.chapter(page, { kicker: 'Onboarding', title: '…' }) // setup behind the card
|
|
70
|
+
… sign in, open the workspace …
|
|
71
|
+
await cine.uncover(page)
|
|
72
|
+
if (!(await runs.resumeRun(page, { readyTestId: 'page-run' }))) { … start the run … }
|
|
73
|
+
await runs.driveRun(take, { ai: ['conflicts'], captions: { … }, handlers: { … } })
|
|
74
|
+
})
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The record config: `video: { mode: 'on', size: { width: 1600, height: 900 } }` and the same
|
|
78
|
+
viewport, `workers: 1`, a long `timeout`; the edit scales 1600x900 to 1080p.
|
|
79
|
+
|
|
80
|
+
## Lessons (learned the hard way; keep them)
|
|
81
|
+
|
|
82
|
+
- **A clean workspace every take.** What earlier takes left (register rows, documents) changes what
|
|
83
|
+
the AI finds: a conflict search reported six earlier takes as real conflicts, and the AI read
|
|
84
|
+
another take's KYC papers. The prepare step deletes it and seeds fixtures once per workspace.
|
|
85
|
+
- **Resume to try later steps.** A take is 10–30 minutes of live AI. `E2E_RESUME_RUN=
|
|
86
|
+
"/app/run/<workflow>?run=con-…"` starts the story at a run already under way (`resumeRun`), so a
|
|
87
|
+
later step can be fixed in minutes. A resumed take is for trying steps, never delivered.
|
|
88
|
+
- **Read state from what the page shows.** Step chips (`<prefix>-step-<id>`, and
|
|
89
|
+
`workflow-thread-step-<id>` once the run has its thread) carry `aria-current` and `data-phase`;
|
|
90
|
+
a done AI step stays current until Continue, so wait on `data-phase="done"`, not on "the current
|
|
91
|
+
step changed". Open documents by id (the step's own `?doc=` link, or the POST that stored them:
|
|
92
|
+
`openWordById`), never by searching a documents table (it renders only the rows in view). Never
|
|
93
|
+
wait on a heading or phrase the AI writes.
|
|
94
|
+
- **Sign-out timing.** Sign in again only once the server's `POST /v1/user/logout` has returned;
|
|
95
|
+
before that a sign-in fails with "The session ended". `signInAs` waits for it.
|
|
96
|
+
- **Toasts.** A toast over a button takes the click, and a cursor resting on it pauses its
|
|
97
|
+
dismissal. `cine.click` moves the cursor clear and waits for toasts to go.
|
|
98
|
+
- **A review step's form opens on Approve.** Fill a review step's fields in `approveStep`'s `fill`,
|
|
99
|
+
after its panel shows.
|
|
100
|
+
- **Live AI fails sometimes.** `whileWorking` presses the current-step panel's "Try again" (twice
|
|
101
|
+
at most), as an operator would; the render cuts the wait. A step that fails after that is a real
|
|
102
|
+
failure: look at the run, don't re-roll until lucky.
|
|
103
|
+
- **Check the answer, not just the exit code.** Before delivering, look at the frames where the AI
|
|
104
|
+
answers (`--stills <dir>` on the renderer, or scrub the cut): e.g. the conflict search must say
|
|
105
|
+
"Checked all N requests". A take can pass while the AI's answer says it read nothing.
|
|
106
|
+
- **Deliver to OVH.** Every finished video goes to
|
|
107
|
+
`s3://arbi-archive/demo-videos/<site>/<YYYY-MM-DD>-<story>.mp4`, shared with a presigned link. A
|
|
108
|
+
dev box's localhost or a local file is not delivery.
|
|
109
|
+
- **Waits are UI states.** Never sleep a fixed time for the app; the pauses that remain (`beat`,
|
|
110
|
+
caption holds) are pacing so a viewer can read.
|
|
111
|
+
- **Secrets.** Type passwords with `fillSecret` (a `fill` puts the value in reports and traces).
|
|
112
|
+
|
|
113
|
+
## Consistent styling across sites
|
|
114
|
+
|
|
115
|
+
- **Brand from tokens.** Build the site's `CinematicBrand` from its shipped theme (the stylesheet
|
|
116
|
+
that paints the app), not hand-copied colours, and give `fontFiles` for its display and sans
|
|
117
|
+
fonts (the edit draws overlays where those fonts may not be installed). The take writes the
|
|
118
|
+
brand into `focus.json`; the overlays are drawn from it.
|
|
119
|
+
- **1600x900 → 1080p.** Record at 1600x900 CSS pixels (video size = viewport); `render-take.py`
|
|
120
|
+
outputs 1920x1080 H.264 at 25 fps. A take of another shape is letterboxed.
|
|
121
|
+
- **Overlays from the edit.** With a take running, captions, chapter cards, lower-thirds and
|
|
122
|
+
callouts are drawn by `render-take.py` (`render-overlays.mjs` PNGs), outside any zoom — never
|
|
123
|
+
painted in the page. Check one still of each kind against the site's look: the card gradient
|
|
124
|
+
(`cover`), the accent rule and kicker, the caption bar (`ink`), the cursor colour.
|
|
125
|
+
- **The camera.** Zoom at most `maxZoom` (default 1.8), picture-in-picture for long typing; turn
|
|
126
|
+
either off per story in `cine.take` (`zoom: false`, `pip: false`) rather than per render.
|
package/src/blocks.css
CHANGED
|
@@ -450,6 +450,7 @@
|
|
|
450
450
|
.wf-kind-email_draft { --wf-accent: var(--wf-email); }
|
|
451
451
|
.wf-kind-tabular_review { --wf-accent: var(--wf-grid); }
|
|
452
452
|
.wf-kind-approval { --wf-accent: var(--wf-approval); }
|
|
453
|
+
.wf-kind-create_project { --wf-accent: var(--wf-start); }
|
|
453
454
|
.wf-kind-adhoc { --wf-accent: var(--wf-adhoc); }
|
|
454
455
|
|
|
455
456
|
.wf-badge {
|
package/dist/ai-VLIPYNWP.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"ai-VLIPYNWP.cjs"}
|