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