@arbidocs/blocks 0.5.194 → 0.5.196

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.
Files changed (266) hide show
  1. package/dist/{ConnectedCallDock-7GGYYQNK.cjs → ConnectedCallDock-RRTYZERC.cjs} +29 -29
  2. package/dist/{ConnectedCallDock-7GGYYQNK.cjs.map → ConnectedCallDock-RRTYZERC.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-ZZ7RBGGY.cjs → ConnectedCallRoom-HFVIMBCN.cjs} +22 -22
  4. package/dist/{ConnectedCallRoom-ZZ7RBGGY.cjs.map → ConnectedCallRoom-HFVIMBCN.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-PPVXDQY3.cjs → ConnectedNativeDocxComparison-FSJQITYC.cjs} +18 -18
  6. package/dist/{ConnectedNativeDocxComparison-PPVXDQY3.cjs.map → ConnectedNativeDocxComparison-FSJQITYC.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-LNDESKYE.cjs → ConnectedPresentation-ZRCLFY43.cjs} +21 -21
  8. package/dist/{ConnectedPresentation-LNDESKYE.cjs.map → ConnectedPresentation-ZRCLFY43.cjs.map} +1 -1
  9. package/dist/{ConnectedProductionSetDialog-SHDI7KP6.cjs → ConnectedProductionSetDialog-KT6BPSRE.cjs} +6 -6
  10. package/dist/{ConnectedProductionSetDialog-SHDI7KP6.cjs.map → ConnectedProductionSetDialog-KT6BPSRE.cjs.map} +1 -1
  11. package/dist/{ConnectedSlidesTab-SYDDGJWM.cjs → ConnectedSlidesTab-WCPQJZ3S.cjs} +18 -18
  12. package/dist/{ConnectedSlidesTab-SYDDGJWM.cjs.map → ConnectedSlidesTab-WCPQJZ3S.cjs.map} +1 -1
  13. package/dist/{ConnectedStreamedWordArtifact-GAACBGTY.cjs → ConnectedStreamedWordArtifact-PJTPIXJU.cjs} +18 -18
  14. package/dist/{ConnectedStreamedWordArtifact-GAACBGTY.cjs.map → ConnectedStreamedWordArtifact-PJTPIXJU.cjs.map} +1 -1
  15. package/dist/{DocumentReviewCard-Q3NKJLSM.cjs → DocumentReviewCard-5LGKZ3QM.cjs} +20 -20
  16. package/dist/{DocumentReviewCard-Q3NKJLSM.cjs.map → DocumentReviewCard-5LGKZ3QM.cjs.map} +1 -1
  17. package/dist/{FilesViewerDialog-W2HPT3JS.cjs → FilesViewerDialog-GICV5UY6.cjs} +53 -51
  18. package/dist/FilesViewerDialog-GICV5UY6.cjs.map +1 -0
  19. package/dist/{WorkspaceTableView-QT63XYII.cjs → WorkspaceTableView-FEP7EXL4.cjs} +11 -11
  20. package/dist/{WorkspaceTableView-QT63XYII.cjs.map → WorkspaceTableView-FEP7EXL4.cjs.map} +1 -1
  21. package/dist/agents/index.cjs +429 -413
  22. package/dist/agents/tasks/WorkflowThreadStrip.d.ts +3 -1
  23. package/dist/agents/tasks/WorkflowThreadStrip.js +29 -0
  24. package/dist/agents/tasks/WorkflowThreadStrip.js.map +2 -2
  25. package/dist/agents/workflows/StepBarFrame.d.ts +11 -1
  26. package/dist/agents/workflows/StepBarFrame.js +40 -2
  27. package/dist/agents/workflows/StepBarFrame.js.map +2 -2
  28. package/dist/agents/workflows/WorkflowOverview.d.ts +78 -0
  29. package/dist/agents/workflows/WorkflowOverview.js +150 -0
  30. package/dist/agents/workflows/WorkflowOverview.js.map +7 -0
  31. package/dist/agents/workflows/WorkflowRunner.d.ts +2 -0
  32. package/dist/agents/workflows/WorkflowRunner.js +22 -0
  33. package/dist/agents/workflows/WorkflowRunner.js.map +2 -2
  34. package/dist/agents/workflows/WorkflowStepBar.d.ts +5 -1
  35. package/dist/agents/workflows/WorkflowStepBar.js +33 -1
  36. package/dist/agents/workflows/WorkflowStepBar.js.map +2 -2
  37. package/dist/agents/workflows/index.d.ts +1 -0
  38. package/dist/agents/workflows/index.js +10 -0
  39. package/dist/agents/workflows/index.js.map +2 -2
  40. package/dist/agents/workflows/planSteps.js +21 -4
  41. package/dist/agents/workflows/planSteps.js.map +2 -2
  42. package/dist/agents/workflows/run.js +2 -1
  43. package/dist/agents/workflows/run.js.map +2 -2
  44. package/dist/agents/workflows/suggest.d.ts +15 -0
  45. package/dist/agents/workflows/suggest.js +51 -0
  46. package/dist/agents/workflows/suggest.js.map +7 -0
  47. package/dist/agents/workflows/types.d.ts +27 -2
  48. package/dist/agents/workflows/types.js.map +1 -1
  49. package/dist/{ai-A5YTWIEC.cjs → ai-BCZZFQUB.cjs} +31 -31
  50. package/dist/ai-BCZZFQUB.cjs.map +1 -0
  51. package/dist/auth/index.cjs +12 -12
  52. package/dist/calls/index.cjs +125 -125
  53. package/dist/chat/index.cjs +77 -77
  54. package/dist/{chunk-KD37PODE.cjs → chunk-2ET34WD5.cjs} +5 -5
  55. package/dist/{chunk-KD37PODE.cjs.map → chunk-2ET34WD5.cjs.map} +1 -1
  56. package/dist/{chunk-XYN3RP5W.cjs → chunk-2FBWSMAX.cjs} +26 -8
  57. package/dist/chunk-2FBWSMAX.cjs.map +1 -0
  58. package/dist/{chunk-LYDSETR7.cjs → chunk-33VS7HH4.cjs} +11 -228
  59. package/dist/chunk-33VS7HH4.cjs.map +1 -0
  60. package/dist/{chunk-5OD6DRG7.cjs → chunk-3P6KGC46.cjs} +3 -3
  61. package/dist/{chunk-5OD6DRG7.cjs.map → chunk-3P6KGC46.cjs.map} +1 -1
  62. package/dist/{chunk-AZUPMHZI.cjs → chunk-3U6XE7SF.cjs} +4 -4
  63. package/dist/{chunk-AZUPMHZI.cjs.map → chunk-3U6XE7SF.cjs.map} +1 -1
  64. package/dist/{chunk-PIJPM5RA.cjs → chunk-3YGSCNXQ.cjs} +6 -6
  65. package/dist/{chunk-PIJPM5RA.cjs.map → chunk-3YGSCNXQ.cjs.map} +1 -1
  66. package/dist/{chunk-J46Y2L26.cjs → chunk-6CJBNRKW.cjs} +4 -4
  67. package/dist/{chunk-J46Y2L26.cjs.map → chunk-6CJBNRKW.cjs.map} +1 -1
  68. package/dist/{chunk-JEUHT7XH.cjs → chunk-6CXTLIGJ.cjs} +6 -6
  69. package/dist/{chunk-JEUHT7XH.cjs.map → chunk-6CXTLIGJ.cjs.map} +1 -1
  70. package/dist/{chunk-HS7TUDEM.cjs → chunk-6HP6SQWC.cjs} +7 -7
  71. package/dist/{chunk-HS7TUDEM.cjs.map → chunk-6HP6SQWC.cjs.map} +1 -1
  72. package/dist/{chunk-VDHBLDQC.cjs → chunk-6N7QT2DH.cjs} +3 -3
  73. package/dist/{chunk-VDHBLDQC.cjs.map → chunk-6N7QT2DH.cjs.map} +1 -1
  74. package/dist/{chunk-VDT7TEAH.cjs → chunk-6ZJBUMNK.cjs} +3 -3
  75. package/dist/{chunk-VDT7TEAH.cjs.map → chunk-6ZJBUMNK.cjs.map} +1 -1
  76. package/dist/{chunk-VJHDCYKE.cjs → chunk-AZHIZRHN.cjs} +13 -13
  77. package/dist/{chunk-VJHDCYKE.cjs.map → chunk-AZHIZRHN.cjs.map} +1 -1
  78. package/dist/{chunk-JSP3WTFF.cjs → chunk-BCVC6PG5.cjs} +114 -114
  79. package/dist/{chunk-JSP3WTFF.cjs.map → chunk-BCVC6PG5.cjs.map} +1 -1
  80. package/dist/{chunk-QDIIOZBP.cjs → chunk-BR3XQ45B.cjs} +446 -147
  81. package/dist/chunk-BR3XQ45B.cjs.map +1 -0
  82. package/dist/{chunk-RNQ3MDTR.cjs → chunk-BXHPV6QF.cjs} +9 -9
  83. package/dist/{chunk-RNQ3MDTR.cjs.map → chunk-BXHPV6QF.cjs.map} +1 -1
  84. package/dist/{chunk-EAH7LFJN.cjs → chunk-CUYELFKB.cjs} +4 -4
  85. package/dist/{chunk-EAH7LFJN.cjs.map → chunk-CUYELFKB.cjs.map} +1 -1
  86. package/dist/{chunk-3EIO4ZH5.cjs → chunk-CZOHXTHJ.cjs} +6 -6
  87. package/dist/{chunk-3EIO4ZH5.cjs.map → chunk-CZOHXTHJ.cjs.map} +1 -1
  88. package/dist/{chunk-XQPJWPWE.cjs → chunk-DJ7LSKBJ.cjs} +3 -3
  89. package/dist/{chunk-XQPJWPWE.cjs.map → chunk-DJ7LSKBJ.cjs.map} +1 -1
  90. package/dist/{chunk-5RUY5THD.cjs → chunk-DRQB5V5C.cjs} +8 -8
  91. package/dist/{chunk-5RUY5THD.cjs.map → chunk-DRQB5V5C.cjs.map} +1 -1
  92. package/dist/chunk-EEKY7VO3.cjs +58 -0
  93. package/dist/chunk-EEKY7VO3.cjs.map +1 -0
  94. package/dist/{chunk-Y3GJBLAI.cjs → chunk-FSTIAEJW.cjs} +10 -9
  95. package/dist/chunk-FSTIAEJW.cjs.map +1 -0
  96. package/dist/{chunk-GWWX3FZ7.cjs → chunk-G3SWFSPS.cjs} +69 -69
  97. package/dist/chunk-G3SWFSPS.cjs.map +1 -0
  98. package/dist/{chunk-633ZCYVN.cjs → chunk-GEVBY536.cjs} +37 -37
  99. package/dist/{chunk-633ZCYVN.cjs.map → chunk-GEVBY536.cjs.map} +1 -1
  100. package/dist/{chunk-EFV52SZ6.cjs → chunk-GY4T4JSC.cjs} +4 -4
  101. package/dist/{chunk-EFV52SZ6.cjs.map → chunk-GY4T4JSC.cjs.map} +1 -1
  102. package/dist/{chunk-HO2AURAQ.cjs → chunk-H4ZKASMT.cjs} +6 -6
  103. package/dist/{chunk-HO2AURAQ.cjs.map → chunk-H4ZKASMT.cjs.map} +1 -1
  104. package/dist/chunk-HYYYXHBK.cjs +393 -0
  105. package/dist/chunk-HYYYXHBK.cjs.map +1 -0
  106. package/dist/{chunk-HH5MKRBL.cjs → chunk-ICZBM35E.cjs} +10 -10
  107. package/dist/{chunk-HH5MKRBL.cjs.map → chunk-ICZBM35E.cjs.map} +1 -1
  108. package/dist/{chunk-GZPNBSRE.cjs → chunk-IIAJVC3L.cjs} +22 -22
  109. package/dist/{chunk-GZPNBSRE.cjs.map → chunk-IIAJVC3L.cjs.map} +1 -1
  110. package/dist/{chunk-ER2MRSLT.cjs → chunk-IRVSCMRW.cjs} +16 -16
  111. package/dist/{chunk-ER2MRSLT.cjs.map → chunk-IRVSCMRW.cjs.map} +1 -1
  112. package/dist/{chunk-7GVKG3G4.cjs → chunk-ISPDSFVM.cjs} +17 -17
  113. package/dist/{chunk-7GVKG3G4.cjs.map → chunk-ISPDSFVM.cjs.map} +1 -1
  114. package/dist/{chunk-KQJUY2OE.cjs → chunk-JGU6YLIA.cjs} +11 -11
  115. package/dist/{chunk-KQJUY2OE.cjs.map → chunk-JGU6YLIA.cjs.map} +1 -1
  116. package/dist/chunk-JOQDJRV2.cjs +25 -0
  117. package/dist/chunk-JOQDJRV2.cjs.map +1 -0
  118. package/dist/{chunk-L3MYUPSH.cjs → chunk-JYDVGZ62.cjs} +5 -5
  119. package/dist/{chunk-L3MYUPSH.cjs.map → chunk-JYDVGZ62.cjs.map} +1 -1
  120. package/dist/{chunk-VD3HI5RF.cjs → chunk-NS7PWOL7.cjs} +3 -3
  121. package/dist/{chunk-VD3HI5RF.cjs.map → chunk-NS7PWOL7.cjs.map} +1 -1
  122. package/dist/{chunk-WHU7ABQE.cjs → chunk-NYNHFDVW.cjs} +18 -18
  123. package/dist/{chunk-WHU7ABQE.cjs.map → chunk-NYNHFDVW.cjs.map} +1 -1
  124. package/dist/{chunk-65NQW4RR.cjs → chunk-PUSCVYTH.cjs} +22 -22
  125. package/dist/{chunk-65NQW4RR.cjs.map → chunk-PUSCVYTH.cjs.map} +1 -1
  126. package/dist/{chunk-M55XUF4L.cjs → chunk-QFSFTO7I.cjs} +7 -7
  127. package/dist/{chunk-M55XUF4L.cjs.map → chunk-QFSFTO7I.cjs.map} +1 -1
  128. package/dist/{chunk-SXC4ZIN4.cjs → chunk-QOTDPA62.cjs} +10 -10
  129. package/dist/{chunk-SXC4ZIN4.cjs.map → chunk-QOTDPA62.cjs.map} +1 -1
  130. package/dist/{chunk-GLNL5AL5.cjs → chunk-RR3QJM2Y.cjs} +87 -87
  131. package/dist/chunk-RR3QJM2Y.cjs.map +1 -0
  132. package/dist/{chunk-ELN3YOXF.cjs → chunk-SLVWSTFY.cjs} +28 -28
  133. package/dist/{chunk-ELN3YOXF.cjs.map → chunk-SLVWSTFY.cjs.map} +1 -1
  134. package/dist/{chunk-A7MGQMOV.cjs → chunk-SOJYSRO4.cjs} +10 -10
  135. package/dist/{chunk-A7MGQMOV.cjs.map → chunk-SOJYSRO4.cjs.map} +1 -1
  136. package/dist/{chunk-KZH6HMJL.cjs → chunk-SVHUSJFP.cjs} +4 -4
  137. package/dist/{chunk-KZH6HMJL.cjs.map → chunk-SVHUSJFP.cjs.map} +1 -1
  138. package/dist/{chunk-WDPHYI7S.cjs → chunk-T7UGI2F2.cjs} +7 -7
  139. package/dist/{chunk-WDPHYI7S.cjs.map → chunk-T7UGI2F2.cjs.map} +1 -1
  140. package/dist/{chunk-5FSULBPE.cjs → chunk-UTDLO73D.cjs} +12 -12
  141. package/dist/{chunk-5FSULBPE.cjs.map → chunk-UTDLO73D.cjs.map} +1 -1
  142. package/dist/{chunk-OHWYQI3B.cjs → chunk-UYFHTF2G.cjs} +27 -27
  143. package/dist/{chunk-OHWYQI3B.cjs.map → chunk-UYFHTF2G.cjs.map} +1 -1
  144. package/dist/chunk-VHC3B3R7.cjs +199 -0
  145. package/dist/chunk-VHC3B3R7.cjs.map +1 -0
  146. package/dist/{chunk-SQCCQU3K.cjs → chunk-VOGIYFNN.cjs} +2 -2
  147. package/dist/chunk-VOGIYFNN.cjs.map +1 -0
  148. package/dist/{chunk-2K5DLB7B.cjs → chunk-VXCZFJU7.cjs} +35 -18
  149. package/dist/chunk-VXCZFJU7.cjs.map +1 -0
  150. package/dist/{chunk-IRDL2EC6.cjs → chunk-W365ZZTM.cjs} +55 -55
  151. package/dist/{chunk-IRDL2EC6.cjs.map → chunk-W365ZZTM.cjs.map} +1 -1
  152. package/dist/{chunk-TLIZD6DV.cjs → chunk-W7TSEN3J.cjs} +6 -6
  153. package/dist/{chunk-TLIZD6DV.cjs.map → chunk-W7TSEN3J.cjs.map} +1 -1
  154. package/dist/{chunk-D4SJT3NG.cjs → chunk-WB5XAM77.cjs} +4 -4
  155. package/dist/{chunk-D4SJT3NG.cjs.map → chunk-WB5XAM77.cjs.map} +1 -1
  156. package/dist/{chunk-QSY2VW7V.cjs → chunk-WXRAU2FF.cjs} +6 -6
  157. package/dist/{chunk-QSY2VW7V.cjs.map → chunk-WXRAU2FF.cjs.map} +1 -1
  158. package/dist/{chunk-LYJFE37D.cjs → chunk-X6TSOKEP.cjs} +3 -3
  159. package/dist/{chunk-LYJFE37D.cjs.map → chunk-X6TSOKEP.cjs.map} +1 -1
  160. package/dist/{chunk-XKXKEVHH.cjs → chunk-XTEGQZM2.cjs} +6 -6
  161. package/dist/{chunk-XKXKEVHH.cjs.map → chunk-XTEGQZM2.cjs.map} +1 -1
  162. package/dist/{chunk-BH322H5B.cjs → chunk-ZLMWMAID.cjs} +6 -6
  163. package/dist/{chunk-BH322H5B.cjs.map → chunk-ZLMWMAID.cjs.map} +1 -1
  164. package/dist/collaboration/index.cjs +13 -13
  165. package/dist/connect/docx.cjs +21 -21
  166. package/dist/connect/index.cjs +1298 -1202
  167. package/dist/connect/index.cjs.map +1 -1
  168. package/dist/connect/viewer.cjs +40 -38
  169. package/dist/connection/ConnectedSignDocumentDialog.d.ts +8 -0
  170. package/dist/connection/ConnectedSignDocumentDialog.js +14 -0
  171. package/dist/connection/ConnectedSignDocumentDialog.js.map +7 -0
  172. package/dist/connection/ConnectedWorkflowBuilder.d.ts +1 -1
  173. package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
  174. package/dist/connection/WorkflowRunnerDialogs.js +2 -2
  175. package/dist/connection/WorkflowRunnerDialogs.js.map +2 -2
  176. package/dist/connection/report-problem/ConnectedReportProblem.js +3 -0
  177. package/dist/connection/report-problem/ConnectedReportProblem.js.map +2 -2
  178. package/dist/connection/report-problem/ReportProblemDialog.d.ts +4 -1
  179. package/dist/connection/report-problem/ReportProblemDialog.js +2 -0
  180. package/dist/connection/report-problem/ReportProblemDialog.js.map +2 -2
  181. package/dist/connection/report-problem/SupportVideoEvidence.d.ts +4 -1
  182. package/dist/connection/report-problem/SupportVideoEvidence.js +54 -0
  183. package/dist/connection/report-problem/SupportVideoEvidence.js.map +2 -2
  184. package/dist/connection/report-problem/useSaveRecordingToWorkspace.d.ts +16 -0
  185. package/dist/connection/report-problem/useSaveRecordingToWorkspace.js +39 -0
  186. package/dist/connection/report-problem/useSaveRecordingToWorkspace.js.map +7 -0
  187. package/dist/connection/useSigningIdentity.d.ts +10 -0
  188. package/dist/connection/useSigningIdentity.js +15 -0
  189. package/dist/connection/useSigningIdentity.js.map +7 -0
  190. package/dist/connection/viewer/ConnectedDocumentViewer.js +2 -2
  191. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  192. package/dist/connection/viewer/ConnectedSharedFileDialog.js +4 -0
  193. package/dist/connection/viewer/ConnectedSharedFileDialog.js.map +2 -2
  194. package/dist/connection/viewer/ConnectedSharedFilesPage.js +4 -0
  195. package/dist/connection/viewer/ConnectedSharedFilesPage.js.map +2 -2
  196. package/dist/dashboards/index.cjs +1 -1
  197. package/dist/document-tools/SignDocumentDialog.d.ts +10 -1
  198. package/dist/document-tools/SignDocumentDialog.js +116 -93
  199. package/dist/document-tools/SignDocumentDialog.js.map +2 -2
  200. package/dist/document-tools/index.cjs +10 -9
  201. package/dist/document-tools/useIdentityGate.d.ts +26 -0
  202. package/dist/document-tools/useIdentityGate.js +55 -0
  203. package/dist/document-tools/useIdentityGate.js.map +7 -0
  204. package/dist/document-tools/viewer/GuidedSigningViewer.d.ts +9 -1
  205. package/dist/document-tools/viewer/GuidedSigningViewer.js +19 -5
  206. package/dist/document-tools/viewer/GuidedSigningViewer.js.map +2 -2
  207. package/dist/document-tools/viewer/SharedFileView.d.ts +5 -1
  208. package/dist/document-tools/viewer/SharedFileView.js +5 -1
  209. package/dist/document-tools/viewer/SharedFileView.js.map +2 -2
  210. package/dist/document-tools/viewer/index.cjs +11 -9
  211. package/dist/document-tools/viewer/index.cjs.map +1 -1
  212. package/dist/embed/index.cjs +47 -47
  213. package/dist/facts/index.cjs +39 -39
  214. package/dist/files/index.cjs +221 -221
  215. package/dist/index.cjs +1783 -1767
  216. package/dist/office/index.cjs +5 -5
  217. package/dist/pages/index.cjs +32 -32
  218. package/dist/record/index.cjs +2 -2
  219. package/dist/record/index.cjs.map +1 -1
  220. package/dist/record/index.js +2 -2
  221. package/dist/record/index.js.map +1 -1
  222. package/dist/record/runs.d.ts +1 -1
  223. package/dist/settings/IdentityVerification.d.ts +2 -0
  224. package/dist/settings/IdentityVerification.js +8 -5
  225. package/dist/settings/IdentityVerification.js.map +2 -2
  226. package/dist/settings/index.cjs +156 -156
  227. package/dist/shell/index.cjs +81 -81
  228. package/dist/studio/index.cjs +31 -31
  229. package/dist/styles.css +1 -1
  230. package/dist/workflow-canvas/StepActionSettings.d.ts +3 -0
  231. package/dist/workflow-canvas/StepActionSettings.js +48 -2
  232. package/dist/workflow-canvas/StepActionSettings.js.map +2 -2
  233. package/dist/workflow-canvas/StepInspector.d.ts +9 -0
  234. package/dist/workflow-canvas/StepInspector.js +18 -1
  235. package/dist/workflow-canvas/StepInspector.js.map +2 -2
  236. package/dist/workflow-canvas/WorkflowBuilder.d.ts +11 -1
  237. package/dist/workflow-canvas/WorkflowBuilder.js +54 -3
  238. package/dist/workflow-canvas/WorkflowBuilder.js.map +2 -2
  239. package/dist/workflow-canvas/WorkflowOutline.d.ts +55 -0
  240. package/dist/workflow-canvas/WorkflowOutline.js +331 -0
  241. package/dist/workflow-canvas/WorkflowOutline.js.map +7 -0
  242. package/dist/workflow-canvas/edit.d.ts +7 -0
  243. package/dist/workflow-canvas/edit.js +22 -1
  244. package/dist/workflow-canvas/edit.js.map +2 -2
  245. package/dist/workflow-canvas/index.cjs +1354 -922
  246. package/dist/workflow-canvas/index.cjs.map +1 -1
  247. package/dist/workflow-canvas/index.d.ts +2 -1
  248. package/dist/workflow-canvas/index.js +10 -0
  249. package/dist/workflow-canvas/index.js.map +2 -2
  250. package/node_modules/@arbidocs/coedit/package.json +1 -1
  251. package/package.json +6 -5
  252. package/record/recording_clock.py +58 -0
  253. package/dist/FilesViewerDialog-W2HPT3JS.cjs.map +0 -1
  254. package/dist/ai-A5YTWIEC.cjs.map +0 -1
  255. package/dist/chunk-2K5DLB7B.cjs.map +0 -1
  256. package/dist/chunk-GLNL5AL5.cjs.map +0 -1
  257. package/dist/chunk-GWWX3FZ7.cjs.map +0 -1
  258. package/dist/chunk-LYDSETR7.cjs.map +0 -1
  259. package/dist/chunk-OUYBYZ7Y.cjs +0 -176
  260. package/dist/chunk-OUYBYZ7Y.cjs.map +0 -1
  261. package/dist/chunk-QDIIOZBP.cjs.map +0 -1
  262. package/dist/chunk-QQMMCXBP.cjs +0 -173
  263. package/dist/chunk-QQMMCXBP.cjs.map +0 -1
  264. package/dist/chunk-SQCCQU3K.cjs.map +0 -1
  265. package/dist/chunk-XYN3RP5W.cjs.map +0 -1
  266. package/dist/chunk-Y3GJBLAI.cjs.map +0 -1
@@ -0,0 +1,15 @@
1
+ /**
2
+ * AI-suggested form values: a form step can name an earlier agent step (`suggestFrom`) whose answer
3
+ * ends with one fenced `json` object keyed by the form's field names. The runner opens the form with
4
+ * those values in the fields the person has not filled; submitting the form is the confirmation. The
5
+ * suggestions are never stored anywhere new: they are the agent's own answer in the thread. Pure.
6
+ */
7
+ import type { WorkflowField, WorkflowInputValue } from './types';
8
+ /** The last fenced `json` object of an answer, parsed; none when absent or invalid. */
9
+ export declare function lastJsonBlock(text: string | undefined): Record<string, unknown> | undefined;
10
+ /**
11
+ * What to put in `fields` from an agent's answer: only the fields it names with a usable value, and
12
+ * only those the person has not filled (`current` blank). Unknown keys and unusable values are
13
+ * dropped, so a bad block simply leaves the form as it was.
14
+ */
15
+ export declare function suggestedValues(fields: WorkflowField[], answer: string | undefined, current: Record<string, WorkflowInputValue | undefined>): Record<string, WorkflowInputValue>;
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ function lastJsonBlock(text) {
3
+ if (!text) return void 0;
4
+ const blocks = [...text.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/gi)];
5
+ for (let i = blocks.length - 1; i >= 0; i--) {
6
+ try {
7
+ const v = JSON.parse(blocks[i][1]);
8
+ if (v && typeof v === "object" && !Array.isArray(v)) return v;
9
+ } catch {
10
+ }
11
+ }
12
+ return void 0;
13
+ }
14
+ function coerce(field, v) {
15
+ if (v === null || v === void 0) return void 0;
16
+ switch (field.type) {
17
+ case "text":
18
+ case "longtext":
19
+ case "date":
20
+ return typeof v === "string" || typeof v === "number" ? String(v).trim() || void 0 : void 0;
21
+ case "number": {
22
+ const n = typeof v === "number" ? v : typeof v === "string" ? Number(v) : NaN;
23
+ return Number.isFinite(n) ? n : void 0;
24
+ }
25
+ case "boolean":
26
+ return typeof v === "boolean" ? v : void 0;
27
+ case "select": {
28
+ const s = String(v).toLowerCase();
29
+ return field.options?.find((o) => o.value.toLowerCase() === s || o.label.toLowerCase() === s)?.value;
30
+ }
31
+ default:
32
+ return void 0;
33
+ }
34
+ }
35
+ const isBlank = (v) => v === void 0 || v === "";
36
+ function suggestedValues(fields, answer, current) {
37
+ const block = lastJsonBlock(answer);
38
+ const out = {};
39
+ if (!block) return out;
40
+ for (const f of fields) {
41
+ if (!isBlank(current[f.name]) || !(f.name in block)) continue;
42
+ const v = coerce(f, block[f.name]);
43
+ if (v !== void 0) out[f.name] = v;
44
+ }
45
+ return out;
46
+ }
47
+ export {
48
+ lastJsonBlock,
49
+ suggestedValues
50
+ };
51
+ //# sourceMappingURL=suggest.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/agents/workflows/suggest.ts"],
4
+ "sourcesContent": ["/**\n * AI-suggested form values: a form step can name an earlier agent step (`suggestFrom`) whose answer\n * ends with one fenced `json` object keyed by the form's field names. The runner opens the form with\n * those values in the fields the person has not filled; submitting the form is the confirmation. The\n * suggestions are never stored anywhere new: they are the agent's own answer in the thread. Pure.\n */\n\nimport type { WorkflowField, WorkflowInputValue } from './types'\n\n/** The last fenced `json` object of an answer, parsed; none when absent or invalid. */\nexport function lastJsonBlock(text: string | undefined): Record<string, unknown> | undefined {\n if (!text) return undefined\n const blocks = [...text.matchAll(/```(?:json)?\\s*\\n([\\s\\S]*?)```/gi)]\n for (let i = blocks.length - 1; i >= 0; i--) {\n try {\n const v: unknown = JSON.parse(blocks[i][1])\n if (v && typeof v === 'object' && !Array.isArray(v)) return v as Record<string, unknown>\n } catch {\n // Not JSON: try the block before it.\n }\n }\n return undefined\n}\n\nfunction coerce(field: WorkflowField, v: unknown): WorkflowInputValue | undefined {\n if (v === null || v === undefined) return undefined\n switch (field.type) {\n case 'text':\n case 'longtext':\n case 'date':\n return typeof v === 'string' || typeof v === 'number'\n ? String(v).trim() || undefined\n : undefined\n case 'number': {\n const n = typeof v === 'number' ? v : typeof v === 'string' ? Number(v) : NaN\n return Number.isFinite(n) ? n : undefined\n }\n case 'boolean':\n return typeof v === 'boolean' ? v : undefined\n case 'select': {\n const s = String(v).toLowerCase()\n return field.options?.find((o) => o.value.toLowerCase() === s || o.label.toLowerCase() === s)\n ?.value\n }\n default:\n return undefined\n }\n}\n\nconst isBlank = (v: WorkflowInputValue | undefined) => v === undefined || v === ''\n\n/**\n * What to put in `fields` from an agent's answer: only the fields it names with a usable value, and\n * only those the person has not filled (`current` blank). Unknown keys and unusable values are\n * dropped, so a bad block simply leaves the form as it was.\n */\nexport function suggestedValues(\n fields: WorkflowField[],\n answer: string | undefined,\n current: Record<string, WorkflowInputValue | undefined>\n): Record<string, WorkflowInputValue> {\n const block = lastJsonBlock(answer)\n const out: Record<string, WorkflowInputValue> = {}\n if (!block) return out\n for (const f of fields) {\n if (!isBlank(current[f.name]) || !(f.name in block)) continue\n const v = coerce(f, block[f.name])\n if (v !== undefined) out[f.name] = v\n }\n return out\n}\n"],
5
+ "mappings": ";AAUO,SAAS,cAAc,MAA+D;AAC3F,MAAI,CAAC,KAAM,QAAO;AAClB,QAAM,SAAS,CAAC,GAAG,KAAK,SAAS,kCAAkC,CAAC;AACpE,WAAS,IAAI,OAAO,SAAS,GAAG,KAAK,GAAG,KAAK;AAC3C,QAAI;AACF,YAAM,IAAa,KAAK,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC;AAC1C,UAAI,KAAK,OAAO,MAAM,YAAY,CAAC,MAAM,QAAQ,CAAC,EAAG,QAAO;AAAA,IAC9D,QAAQ;AAAA,IAER;AAAA,EACF;AACA,SAAO;AACT;AAEA,SAAS,OAAO,OAAsB,GAA4C;AAChF,MAAI,MAAM,QAAQ,MAAM,OAAW,QAAO;AAC1C,UAAQ,MAAM,MAAM;AAAA,IAClB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO,OAAO,MAAM,YAAY,OAAO,MAAM,WACzC,OAAO,CAAC,EAAE,KAAK,KAAK,SACpB;AAAA,IACN,KAAK,UAAU;AACb,YAAM,IAAI,OAAO,MAAM,WAAW,IAAI,OAAO,MAAM,WAAW,OAAO,CAAC,IAAI;AAC1E,aAAO,OAAO,SAAS,CAAC,IAAI,IAAI;AAAA,IAClC;AAAA,IACA,KAAK;AACH,aAAO,OAAO,MAAM,YAAY,IAAI;AAAA,IACtC,KAAK,UAAU;AACb,YAAM,IAAI,OAAO,CAAC,EAAE,YAAY;AAChC,aAAO,MAAM,SAAS,KAAK,CAAC,MAAM,EAAE,MAAM,YAAY,MAAM,KAAK,EAAE,MAAM,YAAY,MAAM,CAAC,GACxF;AAAA,IACN;AAAA,IACA;AACE,aAAO;AAAA,EACX;AACF;AAEA,MAAM,UAAU,CAAC,MAAsC,MAAM,UAAa,MAAM;AAOzE,SAAS,gBACd,QACA,QACA,SACoC;AACpC,QAAM,QAAQ,cAAc,MAAM;AAClC,QAAM,MAA0C,CAAC;AACjD,MAAI,CAAC,MAAO,QAAO;AACnB,aAAW,KAAK,QAAQ;AACtB,QAAI,CAAC,QAAQ,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,QAAQ,OAAQ;AACrD,UAAM,IAAI,OAAO,GAAG,MAAM,EAAE,IAAI,CAAC;AACjC,QAAI,MAAM,OAAW,KAAI,EAAE,IAAI,IAAI;AAAA,EACrC;AACA,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -181,11 +181,23 @@ export type WorkflowDocumentRef = {
181
181
  } | {
182
182
  id: string;
183
183
  };
184
- /** Ask people to e-sign a document. The step waits until every signer has signed. */
184
+ /**
185
+ * Who signs: a person as a step's assignee is named (a member, the run owner, the person a form's
186
+ * field names, the project lead), or a client by `email` (a template over the run, e.g.
187
+ * `{{client_email}}`: invited and signing through a signature request). `requireIdentityVerification`
188
+ * asks that signer, and only them, to verify their identity first (the server's
189
+ * `require_identity_verification`; workstream B, arbicity/ARBI#4161, is making it per signer).
190
+ */
191
+ export type WorkflowSigner = (WorkflowAssignee | {
192
+ email: string;
193
+ }) & {
194
+ requireIdentityVerification?: boolean;
195
+ };
196
+ /** Ask people to e-sign a document. The step waits until every signer has signed (any order). */
185
197
  export interface WorkflowSignAction {
186
198
  type: 'sign';
187
199
  document?: WorkflowDocumentRef;
188
- signers: WorkflowAssignee[];
200
+ signers: WorkflowSigner[];
189
201
  /** Shown to the signers. */
190
202
  message?: string;
191
203
  /** Unsigned this long after it starts, the step fails. */
@@ -266,6 +278,12 @@ export type WorkflowActionType = WorkflowAction['type'];
266
278
  export interface WorkflowFormStep extends WorkflowStepBase {
267
279
  kind: 'form';
268
280
  inputs: WorkflowField[];
281
+ /**
282
+ * An earlier agent step whose answer prefills this form: it ends with one fenced `json` object
283
+ * keyed by the field names (`suggestedValues`). The form opens with those values in its blank
284
+ * fields, marked as the AI's; the person checks them and continues, which confirms them.
285
+ */
286
+ suggestFrom?: string;
269
287
  }
270
288
  /** Add files to the run's workspace. Skippable unless `required`. */
271
289
  export interface WorkflowUploadStep extends WorkflowStepBase {
@@ -299,6 +317,13 @@ export interface WorkflowAgentStep extends WorkflowStepBase {
299
317
  }>;
300
318
  /** What the step shows: the answer (default) or the drafted document. */
301
319
  output?: 'answer' | 'artifact';
320
+ /**
321
+ * A goal-driven step: what to achieve, and the lines that must be true before it may finish. The
322
+ * agent plans, works and checks every criterion (the server's `TaskPlan` `goal` / `criteria` /
323
+ * `max_passes`); with a goal, the prompt is optional.
324
+ */
325
+ goal?: string;
326
+ criteria?: string[];
302
327
  /** Runs off the thread's main line and delivers only its result to it. */
303
328
  branch?: boolean;
304
329
  /**
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/agents/workflows/types.ts"],
4
- "sourcesContent": ["/**\n * The one workflow model: a skill with a declared input schema. Everything launchable (a quick\n * action, a slash skill, a task body, an agent's job) is a `WorkflowDefinition`.\n *\n * The shape maps 1:1 onto future SKILL.md frontmatter (`inputs:` etc., snake_case on disk; see\n * `workflowFromFrontmatter`), so the backend can adopt it without a UI change. Blocks hold no\n * domain wording: titles, labels and prompt text are data supplied by the host.\n */\n\nimport type { Tone } from '../../components/tones'\n\nexport type WorkflowFieldType =\n | 'text'\n | 'longtext'\n | 'boolean'\n | 'select'\n | 'number'\n | 'date'\n | 'scope'\n | 'documents'\n /** A workspace member (`usr-\u2026` / `agt-\u2026`): what a step's assignee or a signer can name. */\n | 'person'\n\n/**\n * What a launching surface can hand a workflow without asking the user: the files it is looking at\n * (`documents`), the text the user selected (`selection`), or the image on screen (`image`, a file\n * id). A field binds to one with `context`; a surface offers a workflow when it can supply one of\n * the kinds the workflow declares (`workflowAccepts`).\n */\nexport type WorkflowContextKind = 'documents' | 'selection' | 'image'\n\n/** Where the user ends up after launching. `current-chat` sends into the chat already on screen. */\nexport type WorkflowLanding = 'chat' | 'current-chat' | 'files'\n\n/** Which files a run is limited to. Empty folders and labels = every file. */\nexport interface WorkflowScope {\n /** Folder paths; `''` is the unfiled bucket. */\n folders: string[]\n /** Label (tag) ids. */\n labels: string[]\n /** Exactly these files (ids). When present it wins over folders and labels: a `documents` field or a context launch. */\n documents?: string[]\n}\n\nexport const EMPTY_WORKFLOW_SCOPE: WorkflowScope = { folders: [], labels: [] }\n\nexport type WorkflowInputValue = string | number | boolean | WorkflowScope\n\nexport interface WorkflowFieldOption {\n value: string\n label: string\n description?: string\n /** Prompt fragment substituted for `{{name}}` when chosen (falls back to the label). */\n text?: string\n /** Key into the host's icon map. */\n icon?: string\n /**\n * Colours the option's choice tile (e.g. a risk rating: low `success`, medium `warning`, high\n * `danger`), chosen or not. The label always shows, so the tone is never the only cue.\n */\n tone?: Tone\n}\n\nexport interface WorkflowField {\n /** Key in `inputs`; also the `{{placeholder}}` in the prompt template. */\n name: string\n type: WorkflowFieldType\n label: string\n description?: string\n placeholder?: string\n required?: boolean\n default?: WorkflowInputValue\n /** `select` only. */\n options?: WorkflowFieldOption[]\n /** `number` only. */\n min?: number\n max?: number\n /** `boolean`: prompt fragments substituted for `{{name}}`. */\n trueText?: string\n falseText?: string\n /** Fold behind a disclosure: advanced wording the common run does not need. */\n advanced?: boolean\n /** `scope` only: which dimensions are offered. Default both. */\n by?: Array<'folders' | 'labels'>\n /** `documents` only: what kind of file is offered; `max` is how many may be picked (default 1). */\n accept?: 'image'\n /** Prefilled by a launching surface that supplies this kind of context (see `WorkflowContextKind`). */\n context?: WorkflowContextKind\n}\n\nexport type WorkflowRun =\n /** Compose a message from `promptTemplate` and send it. */\n | { kind: 'prompt'; promptTemplate: string }\n /** The host performs it (bound by workflow id), e.g. create a label then generate. */\n | { kind: 'operation' }\n /**\n * A guided run of named steps that form a graph. A run is a work thread on the server: the\n * thread's plan carries the steps (`toPlanSteps`), its activity log records each step's progress,\n * and the work runner starts each agent step as a turn in the thread. A person does the form,\n * upload and review steps (`useWorkflowThread` / `WorkflowRunner`). Not schedulable from a single\n * form: a workflow (automation) carries the steps and its trigger (`WorkflowBuilder`).\n */\n | {\n kind: 'steps'\n /** The run thread's title, a template over the run's inputs; defaults to the workflow's. */\n threadTitle?: string\n /** In dependency order: a step only waits for steps listed before it (`orderSteps`). */\n steps: WorkflowStep[]\n completion?: WorkflowCompletion\n /** Where each step sits on the builder's canvas, by step id. */\n layout?: Record<string, { x: number; y: number }>\n }\n\n/* ------------------------------- steps ------------------------------- */\n\n/**\n * When a step's signal is raised, tested against the step's outcome once it is done (a skipped or\n * failed step never signals): a form field equals a value (case-insensitive text), the agent's\n * answer contains a phrase or matches a regex, or a review is approved. Absent = whenever it is done.\n */\nexport type WorkflowSignalWhen =\n | { field: string; equals: string | number | boolean }\n | { contains: string }\n | { matches: string }\n | { approved: true }\n\n/**\n * A named signal a step raises when it is done and its condition holds. Another workflow starts on\n * it (\"When a step signals\") as its own thread linked to this one, so the if/then between\n * workflows lives in the link and each workflow stays short.\n */\nexport interface WorkflowSignal {\n /** A slug (`[a-z0-9][a-z0-9_.-]*`), e.g. `risk-high`: what a linked workflow listens for. */\n name: string\n when?: WorkflowSignalWhen\n}\n\ninterface WorkflowStepBase {\n /** Unique within the workflow (`[a-z][a-z0-9_-]*`): the thread's progress is keyed by it. */\n id: string\n /** The step's name: the stepper and the thread's top bar show it. */\n title: string\n /** One line under the step's heading. */\n description?: string\n /** Key into the host's icon map. */\n icon?: string\n /**\n * The host commits this step before the run moves on (`commit[id]`), e.g. creates the record\n * later steps work in. Once committed the step's inputs are locked.\n */\n commit?: boolean\n /** Primary button text while on this step (until it is committed); defaults to \"Continue\". */\n nextLabel?: string\n /**\n * The steps this one waits for. Absent: the step before it in the list, so a plain list is a\n * sequence. `[]`: it starts with the run. A step waiting for several waits for them all.\n */\n after?: string[]\n /** Signals the step raises when it is done and their condition holds. */\n signals?: WorkflowSignal[]\n /**\n * Who the step is for (a person step, or a signature or email step): they are told when it is\n * ready, and only they (or the run's owner) can do it. Absent: whoever is on the run.\n */\n assignee?: WorkflowAssignee\n /** A person step left this many hours is announced again (once). */\n remindAfterHours?: number\n}\n\n/**\n * Who a step is for: a named member (`usr-\u2026` / `agt-\u2026`), whoever started the run, the person a\n * form's `person` field names (`input`: its name), or the project's lead.\n */\nexport type WorkflowAssignee =\n { user: string } | { runOwner: true } | { input: string } | { projectLead: true }\n\n/**\n * A document a step works on, named by where it comes from: what an earlier step produced or was\n * given (an upload's files, an agent's draft, a signed copy, an edited version), what a run input\n * names (a document pick), or one document by id (`doc-\u2026`, optionally `@v<n>`).\n */\nexport type WorkflowDocumentRef = { step: string } | { input: string } | { id: string }\n\n/** Ask people to e-sign a document. The step waits until every signer has signed. */\nexport interface WorkflowSignAction {\n type: 'sign'\n document?: WorkflowDocumentRef\n signers: WorkflowAssignee[]\n /** Shown to the signers. */\n message?: string\n /** Unsigned this long after it starts, the step fails. */\n expiresAfterHours?: number\n}\n\n/**\n * Prepare an email in native mail, never sent by itself: its person sends it, and the step is done\n * when they say so (or send it). Every text is a template over the run (`{{field}}`,\n * `{{step.answer}}`).\n */\nexport interface WorkflowEmailDraftAction {\n type: 'email_draft'\n to: string[]\n cc?: string[]\n subject: string\n body: string\n attachments?: WorkflowDocumentRef[]\n}\n\n/** Run review columns (labels with instructions) over documents, then open the grid. */\nexport interface WorkflowTabularReviewAction {\n type: 'tabular_review'\n /** Label (tag) ids: the columns. */\n tags: string[]\n /** Every file the run's uploads took, every document of the workspace, or these documents. */\n documents: 'run_uploads' | 'workspace' | WorkflowDocumentRef[]\n /** Fill cells that already have a value again. */\n overwrite?: boolean\n}\n\n/**\n * Submit a request for approval as a row of a database: the step writes the row (shared, linked to\n * the run) with `values` filled from the run, then waits until one of the people its `decision`\n * column lists (that column's edit rule) sets the decision on the row. `approve` finishes the step,\n * `sendBack` reopens the step it waits for (resubmitting updates the same row), `reject` fails it.\n */\nexport interface WorkflowApprovalAction {\n type: 'approval'\n /** The requests database (`dbs-\u2026`, this workspace). */\n database: string\n /** Its decision column (id or name): a column only the listed approvers may set. */\n decision: string\n /** Column (id or name) \u2192 template over the run (`{{client}}`). */\n values?: Record<string, string>\n /** The decision words (default Approved / Sent back / Rejected), matched case-insensitively. */\n approve?: string\n sendBack?: string\n reject?: string\n /** Where Sent back returns the work: a step this one waits on (default: the step just before it). */\n sendBackTo?: string\n}\n\n/**\n * Open a project (the host's word: a matter, a case\u2026) on the server as soon as the step is ready,\n * wherever the step before it was completed: its details are templates over the run\n * (`{{client}}`), a detail that fills blank is left out, and with `workspace` (default) its first\n * workspace is made too. The step is done with the project's id (`{{<step>.project_ext_id}}`) and\n * its workspace's (`{{<step>.workspace_ext_id}}`).\n */\nexport interface WorkflowCreateProjectAction {\n type: 'create_project'\n name: string\n client?: string\n clientRef?: string\n stage?: string\n /** A person (`usr-\u2026`), e.g. `{{partner}}`. */\n leadUser?: string\n /** Host-defined project fields: key \u2192 template. */\n fields?: Record<string, string>\n /** `amount` is a template giving the amount in major units (pounds). */\n budget?: { amount: string; currency?: string }\n workspace?: boolean\n workspaceDescription?: string\n}\n\nexport type WorkflowAction =\n | WorkflowSignAction\n | WorkflowEmailDraftAction\n | WorkflowTabularReviewAction\n | WorkflowApprovalAction\n | WorkflowCreateProjectAction\nexport type WorkflowActionType = WorkflowAction['type']\n\n/** Ask for inputs. Every step's fields share the run's one input namespace (`{{name}}`). */\nexport interface WorkflowFormStep extends WorkflowStepBase {\n kind: 'form'\n inputs: WorkflowField[]\n}\n\n/** Add files to the run's workspace. Skippable unless `required`. */\nexport interface WorkflowUploadStep extends WorkflowStepBase {\n kind: 'upload'\n required?: boolean\n /** `accept` of the file picker, e.g. `.pdf,.docx`. */\n accept?: string\n /** Small muted line under the drop target. */\n hint?: string\n}\n\n/**\n * A turn the assistant takes in the run's thread. It runs a skill or another workflow\n * (`workflow`, its inputs filled from `with`) or its own `run`. It continues the thread's main\n * line, so it sees everything before it; a `branch` step runs off the main line instead and\n * delivers only its result back to it.\n */\nexport interface WorkflowAgentStep extends WorkflowStepBase {\n kind: 'agent'\n /** Id of the skill or workflow this step runs; its inputs come from `with`. */\n workflow?: string\n /**\n * The named workflow's inputs, each a template over the run's inputs: `{{client}}`, with\n * `{{a || b}}` falling back to `b` when `a` is blank. A bare `{{name}}` passes the value as is.\n */\n with?: Record<string, string>\n /** Used when no `workflow` is named. `operation`: the host composes the prompt (`compose`). */\n run?: Extract<WorkflowRun, { kind: 'prompt' } | { kind: 'operation' }>\n /** What the step shows: the answer (default) or the drafted document. */\n output?: 'answer' | 'artifact'\n /** Runs off the thread's main line and delivers only its result to it. */\n branch?: boolean\n /**\n * Edit this Word document with tracked changes (the instruction says what to change); the\n * edited copy is its next version, to accept or reject change by change. Main line only.\n */\n editDocument?: WorkflowDocumentRef\n}\n\n/** A person's review or approval: whoever completes it on the thread approves it. */\nexport interface WorkflowReviewStep extends WorkflowStepBase {\n kind: 'review'\n /** What to review, a template over the run's inputs. */\n instructions?: string\n /** What the approver fills in when approving (e.g. a rating): they join the run's inputs. */\n fields?: WorkflowField[]\n}\n\n/**\n * A step that uses a platform feature rather than producing text: an e-signature, an email draft\n * or a tabular review. It starts by itself; a signature and an email then wait for their people.\n */\nexport interface WorkflowActionStep extends WorkflowStepBase {\n kind: 'action'\n action: WorkflowAction\n}\n\nexport type WorkflowStep =\n | WorkflowFormStep\n | WorkflowUploadStep\n | WorkflowAgentStep\n | WorkflowReviewStep\n | WorkflowActionStep\n\n/** The finish screen of a stepped run. */\nexport interface WorkflowCompletion {\n title: string\n description?: string\n icon?: string\n}\n\n/**\n * Where a step of a run is, as the thread records it: not reached yet (`pending`), `running`,\n * `waiting` (an action step waiting on its signers or on its email being sent), `done`,\n * `skipped`, or `failed` (it can be retried or skipped).\n */\nexport type WorkflowStepStatus = 'pending' | 'running' | 'waiting' | 'done' | 'skipped' | 'failed'\n\n/** What a waiting step waits on (ids only), as its latest event says. */\nexport interface WorkflowActionWaiting {\n /** An agent step: the documents to finish processing before its turn starts. */\n documents?: string[]\n /** A signature: the document and version to sign, who signs, who has signed. */\n doc_ext_id?: string\n version?: number\n signers?: string[]\n signed?: string[]\n expires_at?: string\n /** An email: the draft in native mail and whose mailbox it is in. */\n draft_id?: string\n mailbox?: string\n [key: string]: unknown\n}\n\n/** What a review recorded it approved: each step it waited for, as it stood then. */\nexport interface WorkflowApprovalEvidence {\n step: string\n status: string\n /** That step's answer (a message in the thread). */\n response_id?: string\n /** The document versions it had (`doc-\u2026@v<n>`). */\n documents?: string[]\n output?: Record<string, unknown>\n}\n\nexport interface WorkflowStepState {\n status: WorkflowStepStatus\n /** The step's answer in the thread (an agent step), or the result a branch delivered. */\n responseId?: string | null\n /** The answer's text, once read. */\n text?: string\n error?: string | null\n /**\n * Skipped while it stood failed (`error` keeps why it failed): what waits for it goes on\n * without its result.\n */\n skippedAfterFailure?: boolean\n /** When it started running (ISO), for the elapsed time while it runs. */\n startedAt?: string\n /** An action step's type, once it has started. */\n action?: WorkflowActionType\n /** What a `waiting` step waits on (an action step's people, an agent step's documents). */\n waiting?: WorkflowActionWaiting\n /** What a done action step produced (ids: the signed version, the draft, the reviewed labels). */\n output?: Record<string, unknown>\n /** The document versions the step produced or was given (`doc-\u2026@v<n>`). */\n documents?: string[]\n /** Reopened by a send-back to this step and not touched since (`hasNote`: with a note). */\n sentBack?: boolean\n hasNote?: boolean\n /** Who was told the step is ready (`usr-\u2026` / `agt-\u2026`), since it last changed. */\n announcedTo?: string | null\n /** Who finished it (completed, approved, skipped, declined). */\n by?: string | null\n /** When it finished (ISO). */\n at?: string\n /** A review: what it approved. */\n approved?: WorkflowApprovalEvidence[]\n /** A declined signature: who declined. */\n declinedBy?: string\n}\n\n/** A label a workflow needs, by the key its steps name it with. */\nexport interface WorkflowRequiredLabel {\n /** What the steps name it by (`labelRef(key)`). */\n key: string\n /** Its name in the workspace: an existing label of this name (any case) is used. */\n name: string\n /** How an AI review fills it in. */\n instruction?: string\n /** Its format (default: a checkbox). */\n format?: {\n type: 'checkbox' | 'text' | 'number' | 'select' | 'date'\n options?: string[]\n }\n /** Shared with the workspace's members (default: true). */\n shared?: boolean\n}\n\nexport interface WorkflowDefinition {\n /** Execute a document operation directly, without creating a chat. */\n documentAction?: 'annotate_documents' | 'email_documents'\n\n /** The skill slug. */\n id: string\n title: string\n /** One line: the tile text and the task picker's hint. */\n description: string\n /** Longer explanation shown in the dialog header; defaults to `description`. */\n details?: string\n /** Key into the host's icon map. */\n icon?: string\n /** The host's grouping of it (a skill pack's category): menus sort by it, then by title. */\n category?: string\n /** Primary button text; defaults to the dialog's generic \"Start\". */\n startLabel?: string\n /** Shipped with the app/deployment (pinned, not deletable, forkable into the user's own skills). */\n builtin?: boolean\n /** Backed by a server skill (its slug): a task runs it as a skill rather than as a prompt. */\n skill?: string\n inputs: WorkflowField[]\n run: WorkflowRun\n /** Where the user ends up after launching by default; a launch may override it. */\n landing: WorkflowLanding\n /** A model this run asks for (a run option the host applies, e.g. a stronger one for summaries). */\n model?: string\n /** Only offered by this host (e.g. `'word'`); absent = offered everywhere. */\n host?: string\n /** Needs workspace files to make sense: the dialog offers the host's add-files slot when none. */\n requiresFiles?: boolean\n /** Default agent; absent = the user's own assistant. */\n defaultAgentId?: string\n /** A free-form entry (\"my own instruction\", \"remind me\"), not a named skill: it does not name the dialog. */\n generic?: boolean\n /** Can be the body of a task (unattended). `action` workflows are not. */\n schedulable?: boolean\n /** Run options the form offers (all shown by default). */\n options?: { agent?: boolean }\n /**\n * The labels its steps need in the workspace it runs in (a tabular review's columns): found by\n * name or created before the run starts, and named in the steps by `labelRef(key)`.\n */\n requiredLabels?: WorkflowRequiredLabel[]\n}\n\n/** What `onLaunch` receives. The host performs the launch (chat, scoping, send). */\nexport interface WorkflowLaunch {\n workflow: WorkflowDefinition\n inputs: Record<string, WorkflowInputValue>\n /** The first `scope` field's value, hoisted: the host scopes documents with it. */\n scope: WorkflowScope\n /** `undefined` = the user's own assistant, in this chat. */\n agentId?: string\n /** Overrides `workflow.landing` for this launch (the empty chat sends in place). */\n landing?: WorkflowLanding\n}\n\nexport type OnWorkflowLaunch = (launch: WorkflowLaunch) => void | Promise<void>\n\nexport type WorkflowInputs = Record<string, WorkflowInputValue>\n\n/** Validation problem of one field: the dialog maps the code to a label. */\nexport type WorkflowFieldError = 'required' | 'min' | 'max' | 'number'\nexport type WorkflowErrors = Record<string, WorkflowFieldError>\n"],
4
+ "sourcesContent": ["/**\n * The one workflow model: a skill with a declared input schema. Everything launchable (a quick\n * action, a slash skill, a task body, an agent's job) is a `WorkflowDefinition`.\n *\n * The shape maps 1:1 onto future SKILL.md frontmatter (`inputs:` etc., snake_case on disk; see\n * `workflowFromFrontmatter`), so the backend can adopt it without a UI change. Blocks hold no\n * domain wording: titles, labels and prompt text are data supplied by the host.\n */\n\nimport type { Tone } from '../../components/tones'\n\nexport type WorkflowFieldType =\n | 'text'\n | 'longtext'\n | 'boolean'\n | 'select'\n | 'number'\n | 'date'\n | 'scope'\n | 'documents'\n /** A workspace member (`usr-\u2026` / `agt-\u2026`): what a step's assignee or a signer can name. */\n | 'person'\n\n/**\n * What a launching surface can hand a workflow without asking the user: the files it is looking at\n * (`documents`), the text the user selected (`selection`), or the image on screen (`image`, a file\n * id). A field binds to one with `context`; a surface offers a workflow when it can supply one of\n * the kinds the workflow declares (`workflowAccepts`).\n */\nexport type WorkflowContextKind = 'documents' | 'selection' | 'image'\n\n/** Where the user ends up after launching. `current-chat` sends into the chat already on screen. */\nexport type WorkflowLanding = 'chat' | 'current-chat' | 'files'\n\n/** Which files a run is limited to. Empty folders and labels = every file. */\nexport interface WorkflowScope {\n /** Folder paths; `''` is the unfiled bucket. */\n folders: string[]\n /** Label (tag) ids. */\n labels: string[]\n /** Exactly these files (ids). When present it wins over folders and labels: a `documents` field or a context launch. */\n documents?: string[]\n}\n\nexport const EMPTY_WORKFLOW_SCOPE: WorkflowScope = { folders: [], labels: [] }\n\nexport type WorkflowInputValue = string | number | boolean | WorkflowScope\n\nexport interface WorkflowFieldOption {\n value: string\n label: string\n description?: string\n /** Prompt fragment substituted for `{{name}}` when chosen (falls back to the label). */\n text?: string\n /** Key into the host's icon map. */\n icon?: string\n /**\n * Colours the option's choice tile (e.g. a risk rating: low `success`, medium `warning`, high\n * `danger`), chosen or not. The label always shows, so the tone is never the only cue.\n */\n tone?: Tone\n}\n\nexport interface WorkflowField {\n /** Key in `inputs`; also the `{{placeholder}}` in the prompt template. */\n name: string\n type: WorkflowFieldType\n label: string\n description?: string\n placeholder?: string\n required?: boolean\n default?: WorkflowInputValue\n /** `select` only. */\n options?: WorkflowFieldOption[]\n /** `number` only. */\n min?: number\n max?: number\n /** `boolean`: prompt fragments substituted for `{{name}}`. */\n trueText?: string\n falseText?: string\n /** Fold behind a disclosure: advanced wording the common run does not need. */\n advanced?: boolean\n /** `scope` only: which dimensions are offered. Default both. */\n by?: Array<'folders' | 'labels'>\n /** `documents` only: what kind of file is offered; `max` is how many may be picked (default 1). */\n accept?: 'image'\n /** Prefilled by a launching surface that supplies this kind of context (see `WorkflowContextKind`). */\n context?: WorkflowContextKind\n}\n\nexport type WorkflowRun =\n /** Compose a message from `promptTemplate` and send it. */\n | { kind: 'prompt'; promptTemplate: string }\n /** The host performs it (bound by workflow id), e.g. create a label then generate. */\n | { kind: 'operation' }\n /**\n * A guided run of named steps that form a graph. A run is a work thread on the server: the\n * thread's plan carries the steps (`toPlanSteps`), its activity log records each step's progress,\n * and the work runner starts each agent step as a turn in the thread. A person does the form,\n * upload and review steps (`useWorkflowThread` / `WorkflowRunner`). Not schedulable from a single\n * form: a workflow (automation) carries the steps and its trigger (`WorkflowBuilder`).\n */\n | {\n kind: 'steps'\n /** The run thread's title, a template over the run's inputs; defaults to the workflow's. */\n threadTitle?: string\n /** In dependency order: a step only waits for steps listed before it (`orderSteps`). */\n steps: WorkflowStep[]\n completion?: WorkflowCompletion\n /** Where each step sits on the builder's canvas, by step id. */\n layout?: Record<string, { x: number; y: number }>\n }\n\n/* ------------------------------- steps ------------------------------- */\n\n/**\n * When a step's signal is raised, tested against the step's outcome once it is done (a skipped or\n * failed step never signals): a form field equals a value (case-insensitive text), the agent's\n * answer contains a phrase or matches a regex, or a review is approved. Absent = whenever it is done.\n */\nexport type WorkflowSignalWhen =\n | { field: string; equals: string | number | boolean }\n | { contains: string }\n | { matches: string }\n | { approved: true }\n\n/**\n * A named signal a step raises when it is done and its condition holds. Another workflow starts on\n * it (\"When a step signals\") as its own thread linked to this one, so the if/then between\n * workflows lives in the link and each workflow stays short.\n */\nexport interface WorkflowSignal {\n /** A slug (`[a-z0-9][a-z0-9_.-]*`), e.g. `risk-high`: what a linked workflow listens for. */\n name: string\n when?: WorkflowSignalWhen\n}\n\ninterface WorkflowStepBase {\n /** Unique within the workflow (`[a-z][a-z0-9_-]*`): the thread's progress is keyed by it. */\n id: string\n /** The step's name: the stepper and the thread's top bar show it. */\n title: string\n /** One line under the step's heading. */\n description?: string\n /** Key into the host's icon map. */\n icon?: string\n /**\n * The host commits this step before the run moves on (`commit[id]`), e.g. creates the record\n * later steps work in. Once committed the step's inputs are locked.\n */\n commit?: boolean\n /** Primary button text while on this step (until it is committed); defaults to \"Continue\". */\n nextLabel?: string\n /**\n * The steps this one waits for. Absent: the step before it in the list, so a plain list is a\n * sequence. `[]`: it starts with the run. A step waiting for several waits for them all.\n */\n after?: string[]\n /** Signals the step raises when it is done and their condition holds. */\n signals?: WorkflowSignal[]\n /**\n * Who the step is for (a person step, or a signature or email step): they are told when it is\n * ready, and only they (or the run's owner) can do it. Absent: whoever is on the run.\n */\n assignee?: WorkflowAssignee\n /** A person step left this many hours is announced again (once). */\n remindAfterHours?: number\n}\n\n/**\n * Who a step is for: a named member (`usr-\u2026` / `agt-\u2026`), whoever started the run, the person a\n * form's `person` field names (`input`: its name), or the project's lead.\n */\nexport type WorkflowAssignee =\n { user: string } | { runOwner: true } | { input: string } | { projectLead: true }\n\n/**\n * A document a step works on, named by where it comes from: what an earlier step produced or was\n * given (an upload's files, an agent's draft, a signed copy, an edited version), what a run input\n * names (a document pick), or one document by id (`doc-\u2026`, optionally `@v<n>`).\n */\nexport type WorkflowDocumentRef = { step: string } | { input: string } | { id: string }\n\n/**\n * Who signs: a person as a step's assignee is named (a member, the run owner, the person a form's\n * field names, the project lead), or a client by `email` (a template over the run, e.g.\n * `{{client_email}}`: invited and signing through a signature request). `requireIdentityVerification`\n * asks that signer, and only them, to verify their identity first (the server's\n * `require_identity_verification`; workstream B, arbicity/ARBI#4161, is making it per signer).\n */\nexport type WorkflowSigner = (WorkflowAssignee | { email: string }) & {\n requireIdentityVerification?: boolean\n}\n\n/** Ask people to e-sign a document. The step waits until every signer has signed (any order). */\nexport interface WorkflowSignAction {\n type: 'sign'\n document?: WorkflowDocumentRef\n signers: WorkflowSigner[]\n /** Shown to the signers. */\n message?: string\n /** Unsigned this long after it starts, the step fails. */\n expiresAfterHours?: number\n}\n\n/**\n * Prepare an email in native mail, never sent by itself: its person sends it, and the step is done\n * when they say so (or send it). Every text is a template over the run (`{{field}}`,\n * `{{step.answer}}`).\n */\nexport interface WorkflowEmailDraftAction {\n type: 'email_draft'\n to: string[]\n cc?: string[]\n subject: string\n body: string\n attachments?: WorkflowDocumentRef[]\n}\n\n/** Run review columns (labels with instructions) over documents, then open the grid. */\nexport interface WorkflowTabularReviewAction {\n type: 'tabular_review'\n /** Label (tag) ids: the columns. */\n tags: string[]\n /** Every file the run's uploads took, every document of the workspace, or these documents. */\n documents: 'run_uploads' | 'workspace' | WorkflowDocumentRef[]\n /** Fill cells that already have a value again. */\n overwrite?: boolean\n}\n\n/**\n * Submit a request for approval as a row of a database: the step writes the row (shared, linked to\n * the run) with `values` filled from the run, then waits until one of the people its `decision`\n * column lists (that column's edit rule) sets the decision on the row. `approve` finishes the step,\n * `sendBack` reopens the step it waits for (resubmitting updates the same row), `reject` fails it.\n */\nexport interface WorkflowApprovalAction {\n type: 'approval'\n /** The requests database (`dbs-\u2026`, this workspace). */\n database: string\n /** Its decision column (id or name): a column only the listed approvers may set. */\n decision: string\n /** Column (id or name) \u2192 template over the run (`{{client}}`). */\n values?: Record<string, string>\n /** The decision words (default Approved / Sent back / Rejected), matched case-insensitively. */\n approve?: string\n sendBack?: string\n reject?: string\n /** Where Sent back returns the work: a step this one waits on (default: the step just before it). */\n sendBackTo?: string\n}\n\n/**\n * Open a project (the host's word: a matter, a case\u2026) on the server as soon as the step is ready,\n * wherever the step before it was completed: its details are templates over the run\n * (`{{client}}`), a detail that fills blank is left out, and with `workspace` (default) its first\n * workspace is made too. The step is done with the project's id (`{{<step>.project_ext_id}}`) and\n * its workspace's (`{{<step>.workspace_ext_id}}`).\n */\nexport interface WorkflowCreateProjectAction {\n type: 'create_project'\n name: string\n client?: string\n clientRef?: string\n stage?: string\n /** A person (`usr-\u2026`), e.g. `{{partner}}`. */\n leadUser?: string\n /** Host-defined project fields: key \u2192 template. */\n fields?: Record<string, string>\n /** `amount` is a template giving the amount in major units (pounds). */\n budget?: { amount: string; currency?: string }\n workspace?: boolean\n workspaceDescription?: string\n}\n\nexport type WorkflowAction =\n | WorkflowSignAction\n | WorkflowEmailDraftAction\n | WorkflowTabularReviewAction\n | WorkflowApprovalAction\n | WorkflowCreateProjectAction\nexport type WorkflowActionType = WorkflowAction['type']\n\n/** Ask for inputs. Every step's fields share the run's one input namespace (`{{name}}`). */\nexport interface WorkflowFormStep extends WorkflowStepBase {\n kind: 'form'\n inputs: WorkflowField[]\n /**\n * An earlier agent step whose answer prefills this form: it ends with one fenced `json` object\n * keyed by the field names (`suggestedValues`). The form opens with those values in its blank\n * fields, marked as the AI's; the person checks them and continues, which confirms them.\n */\n suggestFrom?: string\n}\n\n/** Add files to the run's workspace. Skippable unless `required`. */\nexport interface WorkflowUploadStep extends WorkflowStepBase {\n kind: 'upload'\n required?: boolean\n /** `accept` of the file picker, e.g. `.pdf,.docx`. */\n accept?: string\n /** Small muted line under the drop target. */\n hint?: string\n}\n\n/**\n * A turn the assistant takes in the run's thread. It runs a skill or another workflow\n * (`workflow`, its inputs filled from `with`) or its own `run`. It continues the thread's main\n * line, so it sees everything before it; a `branch` step runs off the main line instead and\n * delivers only its result back to it.\n */\nexport interface WorkflowAgentStep extends WorkflowStepBase {\n kind: 'agent'\n /** Id of the skill or workflow this step runs; its inputs come from `with`. */\n workflow?: string\n /**\n * The named workflow's inputs, each a template over the run's inputs: `{{client}}`, with\n * `{{a || b}}` falling back to `b` when `a` is blank. A bare `{{name}}` passes the value as is.\n */\n with?: Record<string, string>\n /** Used when no `workflow` is named. `operation`: the host composes the prompt (`compose`). */\n run?: Extract<WorkflowRun, { kind: 'prompt' } | { kind: 'operation' }>\n /** What the step shows: the answer (default) or the drafted document. */\n output?: 'answer' | 'artifact'\n /**\n * A goal-driven step: what to achieve, and the lines that must be true before it may finish. The\n * agent plans, works and checks every criterion (the server's `TaskPlan` `goal` / `criteria` /\n * `max_passes`); with a goal, the prompt is optional.\n */\n goal?: string\n criteria?: string[]\n /** Runs off the thread's main line and delivers only its result to it. */\n branch?: boolean\n /**\n * Edit this Word document with tracked changes (the instruction says what to change); the\n * edited copy is its next version, to accept or reject change by change. Main line only.\n */\n editDocument?: WorkflowDocumentRef\n}\n\n/** A person's review or approval: whoever completes it on the thread approves it. */\nexport interface WorkflowReviewStep extends WorkflowStepBase {\n kind: 'review'\n /** What to review, a template over the run's inputs. */\n instructions?: string\n /** What the approver fills in when approving (e.g. a rating): they join the run's inputs. */\n fields?: WorkflowField[]\n}\n\n/**\n * A step that uses a platform feature rather than producing text: an e-signature, an email draft\n * or a tabular review. It starts by itself; a signature and an email then wait for their people.\n */\nexport interface WorkflowActionStep extends WorkflowStepBase {\n kind: 'action'\n action: WorkflowAction\n}\n\nexport type WorkflowStep =\n | WorkflowFormStep\n | WorkflowUploadStep\n | WorkflowAgentStep\n | WorkflowReviewStep\n | WorkflowActionStep\n\n/** The finish screen of a stepped run. */\nexport interface WorkflowCompletion {\n title: string\n description?: string\n icon?: string\n}\n\n/**\n * Where a step of a run is, as the thread records it: not reached yet (`pending`), `running`,\n * `waiting` (an action step waiting on its signers or on its email being sent), `done`,\n * `skipped`, or `failed` (it can be retried or skipped).\n */\nexport type WorkflowStepStatus = 'pending' | 'running' | 'waiting' | 'done' | 'skipped' | 'failed'\n\n/** What a waiting step waits on (ids only), as its latest event says. */\nexport interface WorkflowActionWaiting {\n /** An agent step: the documents to finish processing before its turn starts. */\n documents?: string[]\n /** A signature: the document and version to sign, who signs, who has signed. */\n doc_ext_id?: string\n version?: number\n signers?: string[]\n signed?: string[]\n expires_at?: string\n /** An email: the draft in native mail and whose mailbox it is in. */\n draft_id?: string\n mailbox?: string\n [key: string]: unknown\n}\n\n/** What a review recorded it approved: each step it waited for, as it stood then. */\nexport interface WorkflowApprovalEvidence {\n step: string\n status: string\n /** That step's answer (a message in the thread). */\n response_id?: string\n /** The document versions it had (`doc-\u2026@v<n>`). */\n documents?: string[]\n output?: Record<string, unknown>\n}\n\nexport interface WorkflowStepState {\n status: WorkflowStepStatus\n /** The step's answer in the thread (an agent step), or the result a branch delivered. */\n responseId?: string | null\n /** The answer's text, once read. */\n text?: string\n error?: string | null\n /**\n * Skipped while it stood failed (`error` keeps why it failed): what waits for it goes on\n * without its result.\n */\n skippedAfterFailure?: boolean\n /** When it started running (ISO), for the elapsed time while it runs. */\n startedAt?: string\n /** An action step's type, once it has started. */\n action?: WorkflowActionType\n /** What a `waiting` step waits on (an action step's people, an agent step's documents). */\n waiting?: WorkflowActionWaiting\n /** What a done action step produced (ids: the signed version, the draft, the reviewed labels). */\n output?: Record<string, unknown>\n /** The document versions the step produced or was given (`doc-\u2026@v<n>`). */\n documents?: string[]\n /** Reopened by a send-back to this step and not touched since (`hasNote`: with a note). */\n sentBack?: boolean\n hasNote?: boolean\n /** Who was told the step is ready (`usr-\u2026` / `agt-\u2026`), since it last changed. */\n announcedTo?: string | null\n /** Who finished it (completed, approved, skipped, declined). */\n by?: string | null\n /** When it finished (ISO). */\n at?: string\n /** A review: what it approved. */\n approved?: WorkflowApprovalEvidence[]\n /** A declined signature: who declined. */\n declinedBy?: string\n}\n\n/** A label a workflow needs, by the key its steps name it with. */\nexport interface WorkflowRequiredLabel {\n /** What the steps name it by (`labelRef(key)`). */\n key: string\n /** Its name in the workspace: an existing label of this name (any case) is used. */\n name: string\n /** How an AI review fills it in. */\n instruction?: string\n /** Its format (default: a checkbox). */\n format?: {\n type: 'checkbox' | 'text' | 'number' | 'select' | 'date'\n options?: string[]\n }\n /** Shared with the workspace's members (default: true). */\n shared?: boolean\n}\n\nexport interface WorkflowDefinition {\n /** Execute a document operation directly, without creating a chat. */\n documentAction?: 'annotate_documents' | 'email_documents'\n\n /** The skill slug. */\n id: string\n title: string\n /** One line: the tile text and the task picker's hint. */\n description: string\n /** Longer explanation shown in the dialog header; defaults to `description`. */\n details?: string\n /** Key into the host's icon map. */\n icon?: string\n /** The host's grouping of it (a skill pack's category): menus sort by it, then by title. */\n category?: string\n /** Primary button text; defaults to the dialog's generic \"Start\". */\n startLabel?: string\n /** Shipped with the app/deployment (pinned, not deletable, forkable into the user's own skills). */\n builtin?: boolean\n /** Backed by a server skill (its slug): a task runs it as a skill rather than as a prompt. */\n skill?: string\n inputs: WorkflowField[]\n run: WorkflowRun\n /** Where the user ends up after launching by default; a launch may override it. */\n landing: WorkflowLanding\n /** A model this run asks for (a run option the host applies, e.g. a stronger one for summaries). */\n model?: string\n /** Only offered by this host (e.g. `'word'`); absent = offered everywhere. */\n host?: string\n /** Needs workspace files to make sense: the dialog offers the host's add-files slot when none. */\n requiresFiles?: boolean\n /** Default agent; absent = the user's own assistant. */\n defaultAgentId?: string\n /** A free-form entry (\"my own instruction\", \"remind me\"), not a named skill: it does not name the dialog. */\n generic?: boolean\n /** Can be the body of a task (unattended). `action` workflows are not. */\n schedulable?: boolean\n /** Run options the form offers (all shown by default). */\n options?: { agent?: boolean }\n /**\n * The labels its steps need in the workspace it runs in (a tabular review's columns): found by\n * name or created before the run starts, and named in the steps by `labelRef(key)`.\n */\n requiredLabels?: WorkflowRequiredLabel[]\n}\n\n/** What `onLaunch` receives. The host performs the launch (chat, scoping, send). */\nexport interface WorkflowLaunch {\n workflow: WorkflowDefinition\n inputs: Record<string, WorkflowInputValue>\n /** The first `scope` field's value, hoisted: the host scopes documents with it. */\n scope: WorkflowScope\n /** `undefined` = the user's own assistant, in this chat. */\n agentId?: string\n /** Overrides `workflow.landing` for this launch (the empty chat sends in place). */\n landing?: WorkflowLanding\n}\n\nexport type OnWorkflowLaunch = (launch: WorkflowLaunch) => void | Promise<void>\n\nexport type WorkflowInputs = Record<string, WorkflowInputValue>\n\n/** Validation problem of one field: the dialog maps the code to a label. */\nexport type WorkflowFieldError = 'required' | 'min' | 'max' | 'number'\nexport type WorkflowErrors = Record<string, WorkflowFieldError>\n"],
5
5
  "mappings": ";AA4CO,MAAM,uBAAsC,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,EAAE;",
6
6
  "names": []
7
7
  }
@@ -1,36 +1,36 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunk5RUY5THD_cjs = require('./chunk-5RUY5THD.cjs');
5
- require('./chunk-7GVKG3G4.cjs');
6
- require('./chunk-OHWYQI3B.cjs');
7
- require('./chunk-ER2MRSLT.cjs');
8
- require('./chunk-3EIO4ZH5.cjs');
9
- require('./chunk-HO2AURAQ.cjs');
10
- require('./chunk-WHU7ABQE.cjs');
11
- require('./chunk-HS7TUDEM.cjs');
4
+ var chunkDRQB5V5C_cjs = require('./chunk-DRQB5V5C.cjs');
5
+ require('./chunk-ISPDSFVM.cjs');
6
+ require('./chunk-UYFHTF2G.cjs');
7
+ require('./chunk-IRVSCMRW.cjs');
8
+ require('./chunk-CZOHXTHJ.cjs');
9
+ require('./chunk-GD5OYIOV.cjs');
10
+ require('./chunk-VWSOHZK2.cjs');
11
+ require('./chunk-3YZKDCWY.cjs');
12
+ require('./chunk-QFSFTO7I.cjs');
13
+ require('./chunk-EVZH6Z5O.cjs');
14
+ require('./chunk-UTDLO73D.cjs');
15
+ require('./chunk-AHDJXIUB.cjs');
16
+ require('./chunk-IXCWZ4HC.cjs');
17
+ require('./chunk-ZQQVXRYZ.cjs');
18
+ require('./chunk-VZOOGA47.cjs');
19
+ require('./chunk-H4ZKASMT.cjs');
20
+ require('./chunk-NYNHFDVW.cjs');
21
+ require('./chunk-6HP6SQWC.cjs');
12
22
  require('./chunk-5F4DCIHS.cjs');
13
23
  require('./chunk-AFQTQC7A.cjs');
14
24
  require('./chunk-XJEXFEWG.cjs');
15
25
  require('./chunk-YZSQ7F5K.cjs');
16
26
  require('./chunk-KQF7POTG.cjs');
17
27
  require('./chunk-75BNMCUX.cjs');
18
- require('./chunk-M55XUF4L.cjs');
19
- require('./chunk-EVZH6Z5O.cjs');
20
28
  require('./chunk-IN6ILI5A.cjs');
21
- require('./chunk-PIJPM5RA.cjs');
22
- require('./chunk-5FSULBPE.cjs');
23
- require('./chunk-AHDJXIUB.cjs');
24
- require('./chunk-IXCWZ4HC.cjs');
25
- require('./chunk-Y3GJBLAI.cjs');
26
- require('./chunk-SQCCQU3K.cjs');
29
+ require('./chunk-3YGSCNXQ.cjs');
30
+ require('./chunk-FSTIAEJW.cjs');
31
+ require('./chunk-VOGIYFNN.cjs');
27
32
  require('./chunk-UDSHVNU3.cjs');
28
- require('./chunk-ZQQVXRYZ.cjs');
29
33
  require('./chunk-IPSHAMO2.cjs');
30
- require('./chunk-VZOOGA47.cjs');
31
- require('./chunk-GD5OYIOV.cjs');
32
- require('./chunk-VWSOHZK2.cjs');
33
- require('./chunk-3YZKDCWY.cjs');
34
34
  require('./chunk-HN56WWBR.cjs');
35
35
  require('./chunk-K67VMSOX.cjs');
36
36
  require('./chunk-CVPV4I7Z.cjs');
@@ -41,35 +41,35 @@ require('./chunk-PLIF5CUV.cjs');
41
41
 
42
42
  Object.defineProperty(exports, "ConnectedAssistantDock", {
43
43
  enumerable: true,
44
- get: function () { return chunk5RUY5THD_cjs.ConnectedAssistantDock; }
44
+ get: function () { return chunkDRQB5V5C_cjs.ConnectedAssistantDock; }
45
45
  });
46
46
  Object.defineProperty(exports, "redlineStats", {
47
47
  enumerable: true,
48
- get: function () { return chunk5RUY5THD_cjs.redlineStats; }
48
+ get: function () { return chunkDRQB5V5C_cjs.redlineStats; }
49
49
  });
50
50
  Object.defineProperty(exports, "textToArtifact", {
51
51
  enumerable: true,
52
- get: function () { return chunk5RUY5THD_cjs.textToArtifact; }
52
+ get: function () { return chunkDRQB5V5C_cjs.textToArtifact; }
53
53
  });
54
54
  Object.defineProperty(exports, "toRedlineMarkdown", {
55
55
  enumerable: true,
56
- get: function () { return chunk5RUY5THD_cjs.toRedlineMarkdown; }
56
+ get: function () { return chunkDRQB5V5C_cjs.toRedlineMarkdown; }
57
57
  });
58
58
  Object.defineProperty(exports, "useConnectedAiTask", {
59
59
  enumerable: true,
60
- get: function () { return chunk5RUY5THD_cjs.useConnectedAiTask; }
60
+ get: function () { return chunkDRQB5V5C_cjs.useConnectedAiTask; }
61
61
  });
62
62
  Object.defineProperty(exports, "useConnectedChat", {
63
63
  enumerable: true,
64
- get: function () { return chunk5RUY5THD_cjs.useConnectedChat; }
64
+ get: function () { return chunkDRQB5V5C_cjs.useConnectedChat; }
65
65
  });
66
66
  Object.defineProperty(exports, "useSemanticSearch", {
67
67
  enumerable: true,
68
- get: function () { return chunk5RUY5THD_cjs.useSemanticSearch; }
68
+ get: function () { return chunkDRQB5V5C_cjs.useSemanticSearch; }
69
69
  });
70
70
  Object.defineProperty(exports, "useWorkspaceDocs", {
71
71
  enumerable: true,
72
- get: function () { return chunk5RUY5THD_cjs.useWorkspaceDocs; }
72
+ get: function () { return chunkDRQB5V5C_cjs.useWorkspaceDocs; }
73
73
  });
74
- //# sourceMappingURL=ai-A5YTWIEC.cjs.map
75
- //# sourceMappingURL=ai-A5YTWIEC.cjs.map
74
+ //# sourceMappingURL=ai-BCZZFQUB.cjs.map
75
+ //# sourceMappingURL=ai-BCZZFQUB.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"ai-BCZZFQUB.cjs"}
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkQSY2VW7V_cjs = require('../chunk-QSY2VW7V.cjs');
4
+ var chunkWXRAU2FF_cjs = require('../chunk-WXRAU2FF.cjs');
5
5
  var chunkV6C2MBFY_cjs = require('../chunk-V6C2MBFY.cjs');
6
6
  require('../chunk-KKYNTWDU.cjs');
7
- require('../chunk-5OD6DRG7.cjs');
7
+ require('../chunk-3P6KGC46.cjs');
8
8
  var chunkM74FWYNL_cjs = require('../chunk-M74FWYNL.cjs');
9
- require('../chunk-PIKTGP55.cjs');
10
9
  require('../chunk-ZT5MIFLC.cjs');
10
+ require('../chunk-PIKTGP55.cjs');
11
11
  require('../chunk-LJJJ6CYH.cjs');
12
12
  require('../chunk-PLIF5CUV.cjs');
13
13
 
@@ -15,39 +15,39 @@ require('../chunk-PLIF5CUV.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "DEFAULT_SSO_LOGIN_BUTTON_LABELS", {
17
17
  enumerable: true,
18
- get: function () { return chunkQSY2VW7V_cjs.DEFAULT_SSO_LOGIN_BUTTON_LABELS; }
18
+ get: function () { return chunkWXRAU2FF_cjs.DEFAULT_SSO_LOGIN_BUTTON_LABELS; }
19
19
  });
20
20
  Object.defineProperty(exports, "InstallInstructionsDialog", {
21
21
  enumerable: true,
22
- get: function () { return chunkQSY2VW7V_cjs.InstallInstructionsDialog; }
22
+ get: function () { return chunkWXRAU2FF_cjs.InstallInstructionsDialog; }
23
23
  });
24
24
  Object.defineProperty(exports, "SsoLoginButton", {
25
25
  enumerable: true,
26
- get: function () { return chunkQSY2VW7V_cjs.SsoLoginButton; }
26
+ get: function () { return chunkWXRAU2FF_cjs.SsoLoginButton; }
27
27
  });
28
28
  Object.defineProperty(exports, "isAuthRoutePath", {
29
29
  enumerable: true,
30
- get: function () { return chunkQSY2VW7V_cjs.isAuthRoutePath; }
30
+ get: function () { return chunkWXRAU2FF_cjs.isAuthRoutePath; }
31
31
  });
32
32
  Object.defineProperty(exports, "normalizeAuthPath", {
33
33
  enumerable: true,
34
- get: function () { return chunkQSY2VW7V_cjs.normalizeAuthPath; }
34
+ get: function () { return chunkWXRAU2FF_cjs.normalizeAuthPath; }
35
35
  });
36
36
  Object.defineProperty(exports, "preserveAuthReturnUrl", {
37
37
  enumerable: true,
38
- get: function () { return chunkQSY2VW7V_cjs.preserveAuthReturnUrl; }
38
+ get: function () { return chunkWXRAU2FF_cjs.preserveAuthReturnUrl; }
39
39
  });
40
40
  Object.defineProperty(exports, "resolveAuthReturn", {
41
41
  enumerable: true,
42
- get: function () { return chunkQSY2VW7V_cjs.resolveAuthReturn; }
42
+ get: function () { return chunkWXRAU2FF_cjs.resolveAuthReturn; }
43
43
  });
44
44
  Object.defineProperty(exports, "signInRedirect", {
45
45
  enumerable: true,
46
- get: function () { return chunkQSY2VW7V_cjs.signInRedirect; }
46
+ get: function () { return chunkWXRAU2FF_cjs.signInRedirect; }
47
47
  });
48
48
  Object.defineProperty(exports, "takeAuthReturnUrl", {
49
49
  enumerable: true,
50
- get: function () { return chunkQSY2VW7V_cjs.takeAuthReturnUrl; }
50
+ get: function () { return chunkWXRAU2FF_cjs.takeAuthReturnUrl; }
51
51
  });
52
52
  Object.defineProperty(exports, "AccountRecoveryDialog", {
53
53
  enumerable: true,