@arbidocs/blocks 0.5.153 → 0.5.154

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 (265) hide show
  1. package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs → ConnectedNativeDocxComparison-2DAQX5GX.cjs} +9 -9
  2. package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs.map → ConnectedNativeDocxComparison-2DAQX5GX.cjs.map} +1 -1
  3. package/dist/{ConnectedPresentation-JUXIXKYN.cjs → ConnectedPresentation-J42JPUVR.cjs} +13 -13
  4. package/dist/{ConnectedPresentation-JUXIXKYN.cjs.map → ConnectedPresentation-J42JPUVR.cjs.map} +1 -1
  5. package/dist/{ConnectedSlidesTab-JA3VB66W.cjs → ConnectedSlidesTab-BYS7HFNK.cjs} +12 -12
  6. package/dist/{ConnectedSlidesTab-JA3VB66W.cjs.map → ConnectedSlidesTab-BYS7HFNK.cjs.map} +1 -1
  7. package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs → ConnectedStreamedWordArtifact-LTYB62VM.cjs} +9 -9
  8. package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs.map → ConnectedStreamedWordArtifact-LTYB62VM.cjs.map} +1 -1
  9. package/dist/{DocumentReviewCard-5W2QQWKA.cjs → DocumentReviewCard-ILDLYZ5A.cjs} +15 -13
  10. package/dist/DocumentReviewCard-ILDLYZ5A.cjs.map +1 -0
  11. package/dist/{FilesViewerDialog-63QUTG4L.cjs → FilesViewerDialog-YLD5YFP2.cjs} +25 -22
  12. package/dist/FilesViewerDialog-YLD5YFP2.cjs.map +1 -0
  13. package/dist/{RechartsRenderer-NU6WUZJS.cjs → RechartsRenderer-EPVL5QZA.cjs} +2 -2
  14. package/dist/{RechartsRenderer-NU6WUZJS.cjs.map → RechartsRenderer-EPVL5QZA.cjs.map} +1 -1
  15. package/dist/{SpotlightStrip-HXQFPAAL.cjs → SpotlightStrip-JE6MXUBT.cjs} +6 -6
  16. package/dist/{SpotlightStrip-HXQFPAAL.cjs.map → SpotlightStrip-JE6MXUBT.cjs.map} +1 -1
  17. package/dist/{WorkspaceTableView-2QP2HJLK.cjs → WorkspaceTableView-V3N64LJG.cjs} +13 -11
  18. package/dist/WorkspaceTableView-V3N64LJG.cjs.map +1 -0
  19. package/dist/agents/index.cjs +245 -244
  20. package/dist/agents/workflows/WorkflowLauncher.d.ts +3 -1
  21. package/dist/agents/workflows/WorkflowLauncher.js +2 -0
  22. package/dist/agents/workflows/WorkflowLauncher.js.map +2 -2
  23. package/dist/{ai-ODGRIL6Y.cjs → ai-QFY4LYQZ.cjs} +16 -16
  24. package/dist/ai-QFY4LYQZ.cjs.map +1 -0
  25. package/dist/calls/index.cjs +25 -24
  26. package/dist/calls/index.cjs.map +1 -1
  27. package/dist/{chunk-MAKCWF45.cjs → chunk-6GKCGCMT.cjs} +4 -4
  28. package/dist/{chunk-MAKCWF45.cjs.map → chunk-6GKCGCMT.cjs.map} +1 -1
  29. package/dist/{chunk-LYKT336H.cjs → chunk-6I5HHWCD.cjs} +5 -5
  30. package/dist/{chunk-LYKT336H.cjs.map → chunk-6I5HHWCD.cjs.map} +1 -1
  31. package/dist/{chunk-KWJW5TMH.cjs → chunk-6OPDKROP.cjs} +4 -41
  32. package/dist/chunk-6OPDKROP.cjs.map +1 -0
  33. package/dist/{chunk-QWOPEBH2.cjs → chunk-6P4U63HO.cjs} +4 -4
  34. package/dist/{chunk-QWOPEBH2.cjs.map → chunk-6P4U63HO.cjs.map} +1 -1
  35. package/dist/{chunk-QKCFV36K.cjs → chunk-7UPEFZCV.cjs} +9 -9
  36. package/dist/{chunk-QKCFV36K.cjs.map → chunk-7UPEFZCV.cjs.map} +1 -1
  37. package/dist/{chunk-DUNXLT63.cjs → chunk-AHUEBRLX.cjs} +2 -238
  38. package/dist/chunk-AHUEBRLX.cjs.map +1 -0
  39. package/dist/{chunk-B5BGVPQ5.cjs → chunk-AURL2KT5.cjs} +4 -4
  40. package/dist/{chunk-B5BGVPQ5.cjs.map → chunk-AURL2KT5.cjs.map} +1 -1
  41. package/dist/chunk-BH322H5B.cjs +594 -0
  42. package/dist/chunk-BH322H5B.cjs.map +1 -0
  43. package/dist/{chunk-ZCQXQIBA.cjs → chunk-BNDIMTWJ.cjs} +28 -28
  44. package/dist/{chunk-ZCQXQIBA.cjs.map → chunk-BNDIMTWJ.cjs.map} +1 -1
  45. package/dist/{chunk-AG6KAGAX.cjs → chunk-BTQ7IAOH.cjs} +4 -4
  46. package/dist/{chunk-AG6KAGAX.cjs.map → chunk-BTQ7IAOH.cjs.map} +1 -1
  47. package/dist/{chunk-FCT62ZPE.cjs → chunk-BZVK7JW5.cjs} +5 -5
  48. package/dist/{chunk-FCT62ZPE.cjs.map → chunk-BZVK7JW5.cjs.map} +1 -1
  49. package/dist/{chunk-WUM76MJU.cjs → chunk-CNBYM5Q7.cjs} +7 -7
  50. package/dist/{chunk-WUM76MJU.cjs.map → chunk-CNBYM5Q7.cjs.map} +1 -1
  51. package/dist/{chunk-HNLNRAEU.cjs → chunk-DSLMJ24E.cjs} +2 -261
  52. package/dist/chunk-DSLMJ24E.cjs.map +1 -0
  53. package/dist/chunk-DWRUGOTQ.cjs +35 -0
  54. package/dist/chunk-DWRUGOTQ.cjs.map +1 -0
  55. package/dist/{chunk-GAA222SK.cjs → chunk-EG3DPKXM.cjs} +5 -5
  56. package/dist/{chunk-GAA222SK.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
  57. package/dist/chunk-FEAHTNTY.cjs +1447 -0
  58. package/dist/chunk-FEAHTNTY.cjs.map +1 -0
  59. package/dist/{chunk-VSDD5TH5.cjs → chunk-G3MRW4WB.cjs} +10 -8
  60. package/dist/chunk-G3MRW4WB.cjs.map +1 -0
  61. package/dist/{chunk-TFRCNIUY.cjs → chunk-GF6AYAMI.cjs} +9 -9
  62. package/dist/{chunk-TFRCNIUY.cjs.map → chunk-GF6AYAMI.cjs.map} +1 -1
  63. package/dist/{chunk-4ZR4O5SP.cjs → chunk-GK3U3FWY.cjs} +60 -28
  64. package/dist/chunk-GK3U3FWY.cjs.map +1 -0
  65. package/dist/{chunk-3CJTO6RV.cjs → chunk-GXRD5OSU.cjs} +8 -8
  66. package/dist/{chunk-3CJTO6RV.cjs.map → chunk-GXRD5OSU.cjs.map} +1 -1
  67. package/dist/{chunk-JLNKD56X.cjs → chunk-GYI4UXX6.cjs} +4 -4
  68. package/dist/{chunk-JLNKD56X.cjs.map → chunk-GYI4UXX6.cjs.map} +1 -1
  69. package/dist/{chunk-4I2PCP7O.cjs → chunk-I3XTTTPZ.cjs} +41 -40
  70. package/dist/chunk-I3XTTTPZ.cjs.map +1 -0
  71. package/dist/chunk-JWCVA4LC.cjs +248 -0
  72. package/dist/chunk-JWCVA4LC.cjs.map +1 -0
  73. package/dist/{chunk-UM3EWCDE.cjs → chunk-K5F2VNCX.cjs} +35 -10
  74. package/dist/chunk-K5F2VNCX.cjs.map +1 -0
  75. package/dist/chunk-KD66CBYO.cjs +44 -0
  76. package/dist/chunk-KD66CBYO.cjs.map +1 -0
  77. package/dist/chunk-LLVE5TST.cjs +318 -0
  78. package/dist/chunk-LLVE5TST.cjs.map +1 -0
  79. package/dist/{chunk-JCFXS336.cjs → chunk-NRGLF4J4.cjs} +2 -466
  80. package/dist/chunk-NRGLF4J4.cjs.map +1 -0
  81. package/dist/{chunk-CVVQHFLR.cjs → chunk-O7U6KL2W.cjs} +72 -650
  82. package/dist/chunk-O7U6KL2W.cjs.map +1 -0
  83. package/dist/{chunk-Z3N32LL4.cjs → chunk-OOANNOH4.cjs} +35 -33
  84. package/dist/chunk-OOANNOH4.cjs.map +1 -0
  85. package/dist/chunk-SGYURQ23.cjs +271 -0
  86. package/dist/chunk-SGYURQ23.cjs.map +1 -0
  87. package/dist/{chunk-A5SKK3CU.cjs → chunk-SLCH5JRI.cjs} +64 -35
  88. package/dist/chunk-SLCH5JRI.cjs.map +1 -0
  89. package/dist/chunk-T26UYA6Q.cjs +64 -0
  90. package/dist/chunk-T26UYA6Q.cjs.map +1 -0
  91. package/dist/chunk-T3Y3LZ4Y.cjs +477 -0
  92. package/dist/chunk-T3Y3LZ4Y.cjs.map +1 -0
  93. package/dist/{chunk-4XNP27N4.cjs → chunk-T7BUGVSG.cjs} +36 -36
  94. package/dist/{chunk-4XNP27N4.cjs.map → chunk-T7BUGVSG.cjs.map} +1 -1
  95. package/dist/{chunk-SMO4SPPB.cjs → chunk-TD5V5BZ3.cjs} +5 -5
  96. package/dist/{chunk-SMO4SPPB.cjs.map → chunk-TD5V5BZ3.cjs.map} +1 -1
  97. package/dist/{chunk-IXTDOPSB.cjs → chunk-TSAZWUPZ.cjs} +4 -4
  98. package/dist/{chunk-IXTDOPSB.cjs.map → chunk-TSAZWUPZ.cjs.map} +1 -1
  99. package/dist/{chunk-5DGNJ6VJ.cjs → chunk-UD3LPATQ.cjs} +6 -6
  100. package/dist/{chunk-5DGNJ6VJ.cjs.map → chunk-UD3LPATQ.cjs.map} +1 -1
  101. package/dist/{chunk-OF7KMG6R.cjs → chunk-UJHQ4DA4.cjs} +5 -5
  102. package/dist/{chunk-OF7KMG6R.cjs.map → chunk-UJHQ4DA4.cjs.map} +1 -1
  103. package/dist/{chunk-NUFZFWHZ.cjs → chunk-W5QSKW7T.cjs} +3 -29
  104. package/dist/chunk-W5QSKW7T.cjs.map +1 -0
  105. package/dist/{chunk-NNZFZYTI.cjs → chunk-WOVNXJK5.cjs} +4 -54
  106. package/dist/chunk-WOVNXJK5.cjs.map +1 -0
  107. package/dist/{chunk-E6BM5ENI.cjs → chunk-WRTEKOQP.cjs} +2 -309
  108. package/dist/chunk-WRTEKOQP.cjs.map +1 -0
  109. package/dist/{chunk-KRQCUVH7.cjs → chunk-YSAUOJA7.cjs} +9 -3
  110. package/dist/chunk-YSAUOJA7.cjs.map +1 -0
  111. package/dist/{chunk-6ZZWQ3OL.cjs → chunk-YXY52OGU.cjs} +4 -4
  112. package/dist/{chunk-6ZZWQ3OL.cjs.map → chunk-YXY52OGU.cjs.map} +1 -1
  113. package/dist/{chunk-D5DOK2AE.cjs → chunk-ZW2ZFC3Q.cjs} +58 -58
  114. package/dist/{chunk-D5DOK2AE.cjs.map → chunk-ZW2ZFC3Q.cjs.map} +1 -1
  115. package/dist/components/gestures/usePointerGesture.d.ts +13 -1
  116. package/dist/components/gestures/usePointerGesture.js +33 -8
  117. package/dist/components/gestures/usePointerGesture.js.map +2 -2
  118. package/dist/connect/docx.cjs +12 -12
  119. package/dist/connect/index.cjs +1281 -2346
  120. package/dist/connect/index.cjs.map +1 -1
  121. package/dist/connect/index.d.ts +1 -0
  122. package/dist/connect/index.js +1 -0
  123. package/dist/connect/index.js.map +2 -2
  124. package/dist/connect/viewer.cjs +15 -12
  125. package/dist/connection/dashboards/DashboardPanel.d.ts +2 -0
  126. package/dist/connection/dashboards/DashboardPanel.js +4 -0
  127. package/dist/connection/dashboards/DashboardPanel.js.map +2 -2
  128. package/dist/connection/dashboards/index.d.ts +1 -1
  129. package/dist/connection/dashboards/index.js +2 -0
  130. package/dist/connection/dashboards/index.js.map +2 -2
  131. package/dist/connection/dashboards/templates.d.ts +10 -5
  132. package/dist/connection/dashboards/templates.js +7 -1
  133. package/dist/connection/dashboards/templates.js.map +2 -2
  134. package/dist/connection/live-blocks/ConnectedAgendaBlock.d.ts +13 -0
  135. package/dist/connection/live-blocks/ConnectedAgendaBlock.js +19 -0
  136. package/dist/connection/live-blocks/ConnectedAgendaBlock.js.map +7 -0
  137. package/dist/connection/live-blocks/ConnectedCarouselBlock.d.ts +7 -0
  138. package/dist/connection/live-blocks/ConnectedCarouselBlock.js +84 -0
  139. package/dist/connection/live-blocks/ConnectedCarouselBlock.js.map +7 -0
  140. package/dist/connection/live-blocks/ConnectedListBlock.d.ts +29 -0
  141. package/dist/connection/live-blocks/ConnectedListBlock.js +193 -0
  142. package/dist/connection/live-blocks/ConnectedListBlock.js.map +7 -0
  143. package/dist/connection/live-blocks/ConnectedStartBlock.d.ts +7 -0
  144. package/dist/connection/live-blocks/ConnectedStartBlock.js +16 -0
  145. package/dist/connection/live-blocks/ConnectedStartBlock.js.map +7 -0
  146. package/dist/connection/live-blocks/DashboardAgenda.d.ts +10 -0
  147. package/dist/connection/{workspace-dashboard → live-blocks}/DashboardAgenda.js +10 -2
  148. package/dist/connection/live-blocks/DashboardAgenda.js.map +7 -0
  149. package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js.map +1 -1
  150. package/dist/connection/live-blocks/LiveBlockRoot.d.ts +11 -0
  151. package/dist/connection/live-blocks/LiveBlockRoot.js +22 -0
  152. package/dist/connection/live-blocks/LiveBlockRoot.js.map +7 -0
  153. package/dist/connection/live-blocks/index.d.ts +5 -0
  154. package/dist/connection/live-blocks/index.js +20 -0
  155. package/dist/connection/live-blocks/index.js.map +7 -0
  156. package/dist/connection/{workspace-dashboard/dashboard-rows.d.ts → live-blocks/list-rows.d.ts} +22 -4
  157. package/dist/connection/{workspace-dashboard/dashboard-rows.js → live-blocks/list-rows.js} +13 -8
  158. package/dist/connection/live-blocks/list-rows.js.map +7 -0
  159. package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js.map +1 -1
  160. package/dist/connection/live-blocks/workspace-dashboard-blocks.d.ts +23 -0
  161. package/dist/connection/live-blocks/workspace-dashboard-blocks.js +58 -0
  162. package/dist/connection/live-blocks/workspace-dashboard-blocks.js.map +7 -0
  163. package/dist/connection/pages/BlockEditor.d.ts +3 -1
  164. package/dist/connection/pages/BlockEditor.js +18 -1
  165. package/dist/connection/pages/BlockEditor.js.map +2 -2
  166. package/dist/connection/pages/ConnectedPagesPage.d.ts +5 -4
  167. package/dist/connection/pages/ConnectedPagesPage.js +122 -46
  168. package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
  169. package/dist/connection/pages/EditablePageGrid.d.ts +25 -15
  170. package/dist/connection/pages/EditablePageGrid.js +145 -50
  171. package/dist/connection/pages/EditablePageGrid.js.map +2 -2
  172. package/dist/connection/pages/LiveBlockEditor.d.ts +30 -0
  173. package/dist/connection/pages/LiveBlockEditor.js +175 -0
  174. package/dist/connection/pages/LiveBlockEditor.js.map +7 -0
  175. package/dist/connection/pages/PageBlockView.d.ts +5 -3
  176. package/dist/connection/pages/PageBlockView.js +69 -4
  177. package/dist/connection/pages/PageBlockView.js.map +2 -2
  178. package/dist/connection/pages/PageGrid.d.ts +4 -3
  179. package/dist/connection/pages/PageGrid.js +4 -2
  180. package/dist/connection/pages/PageGrid.js.map +2 -2
  181. package/dist/connection/pages/PagesList.d.ts +4 -3
  182. package/dist/connection/pages/PagesList.js.map +2 -2
  183. package/dist/connection/pages/grid-layout.d.ts +44 -12
  184. package/dist/connection/pages/grid-layout.js +71 -27
  185. package/dist/connection/pages/grid-layout.js.map +2 -2
  186. package/dist/connection/pages/index.d.ts +4 -2
  187. package/dist/connection/pages/index.js +34 -5
  188. package/dist/connection/pages/index.js.map +2 -2
  189. package/dist/connection/pages/labels.js +5 -1
  190. package/dist/connection/pages/labels.js.map +2 -2
  191. package/dist/connection/pages/page-templates.d.ts +10 -0
  192. package/dist/connection/pages/page-templates.js +16 -0
  193. package/dist/connection/pages/page-templates.js.map +7 -0
  194. package/dist/connection/workflows/ConnectedWorkflowStart.d.ts +2 -0
  195. package/dist/connection/workflows/ConnectedWorkflowStart.js.map +2 -2
  196. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.d.ts +10 -7
  197. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js +31 -171
  198. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js.map +3 -3
  199. package/dist/dashboards/ChartRenderer.d.ts +5 -3
  200. package/dist/dashboards/ChartRenderer.js +29 -18
  201. package/dist/dashboards/ChartRenderer.js.map +2 -2
  202. package/dist/dashboards/PanelView.d.ts +6 -1
  203. package/dist/dashboards/PanelView.js +24 -7
  204. package/dist/dashboards/PanelView.js.map +2 -2
  205. package/dist/dashboards/RechartsRenderer.d.ts +2 -1
  206. package/dist/dashboards/RechartsRenderer.js.map +2 -2
  207. package/dist/dashboards/index.cjs +25 -21
  208. package/dist/embed/index.cjs +23 -20
  209. package/dist/files/index.cjs +250 -249
  210. package/dist/home/FactsStrip.d.ts +3 -1
  211. package/dist/home/FactsStrip.js +3 -2
  212. package/dist/home/FactsStrip.js.map +2 -2
  213. package/dist/home/RecentList.d.ts +4 -2
  214. package/dist/home/RecentList.js +3 -2
  215. package/dist/home/RecentList.js.map +2 -2
  216. package/dist/home/StartTiles.d.ts +6 -1
  217. package/dist/home/StartTiles.js +55 -33
  218. package/dist/home/StartTiles.js.map +2 -2
  219. package/dist/home/index.cjs +62 -57
  220. package/dist/home/index.d.ts +1 -1
  221. package/dist/home/index.js +2 -1
  222. package/dist/home/index.js.map +2 -2
  223. package/dist/home/sections.d.ts +5 -0
  224. package/dist/home/sections.js +7 -0
  225. package/dist/home/sections.js.map +2 -2
  226. package/dist/index.cjs +339 -337
  227. package/dist/index.cjs.map +1 -1
  228. package/dist/pages/index.cjs +620 -139
  229. package/dist/pages/index.cjs.map +1 -1
  230. package/dist/settings/index.cjs +170 -169
  231. package/dist/shell/index.cjs +35 -34
  232. package/dist/studio/index.cjs +12 -12
  233. package/dist/styles.css +1 -1
  234. package/dist/workflow-canvas/index.cjs +33 -29
  235. package/dist/workflow-canvas/index.cjs.map +1 -1
  236. package/dist/workspaces/index.cjs +49 -47
  237. package/dist/workspaces/index.cjs.map +1 -1
  238. package/node_modules/@arbidocs/coedit/package.json +1 -1
  239. package/package.json +5 -5
  240. package/dist/DocumentReviewCard-5W2QQWKA.cjs.map +0 -1
  241. package/dist/FilesViewerDialog-63QUTG4L.cjs.map +0 -1
  242. package/dist/WorkspaceTableView-2QP2HJLK.cjs.map +0 -1
  243. package/dist/ai-ODGRIL6Y.cjs.map +0 -1
  244. package/dist/chunk-4I2PCP7O.cjs.map +0 -1
  245. package/dist/chunk-4ZR4O5SP.cjs.map +0 -1
  246. package/dist/chunk-A5SKK3CU.cjs.map +0 -1
  247. package/dist/chunk-CVVQHFLR.cjs.map +0 -1
  248. package/dist/chunk-DUNXLT63.cjs.map +0 -1
  249. package/dist/chunk-E6BM5ENI.cjs.map +0 -1
  250. package/dist/chunk-HNLNRAEU.cjs.map +0 -1
  251. package/dist/chunk-JCFXS336.cjs.map +0 -1
  252. package/dist/chunk-KRQCUVH7.cjs.map +0 -1
  253. package/dist/chunk-KWJW5TMH.cjs.map +0 -1
  254. package/dist/chunk-NNZFZYTI.cjs.map +0 -1
  255. package/dist/chunk-NUFZFWHZ.cjs.map +0 -1
  256. package/dist/chunk-UM3EWCDE.cjs.map +0 -1
  257. package/dist/chunk-VSDD5TH5.cjs.map +0 -1
  258. package/dist/chunk-Z3N32LL4.cjs.map +0 -1
  259. package/dist/connection/workspace-dashboard/DashboardAgenda.d.ts +0 -1
  260. package/dist/connection/workspace-dashboard/DashboardAgenda.js.map +0 -7
  261. package/dist/connection/workspace-dashboard/dashboard-rows.js.map +0 -7
  262. /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.d.ts +0 -0
  263. /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js +0 -0
  264. /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.d.ts +0 -0
  265. /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js +0 -0
@@ -4,17 +4,18 @@
4
4
  var chunkCYN66TBO_cjs = require('./chunk-CYN66TBO.cjs');
5
5
  var chunkJARBYN6Z_cjs = require('./chunk-JARBYN6Z.cjs');
6
6
  var chunkI4IS6ST6_cjs = require('./chunk-I4IS6ST6.cjs');
7
+ var chunkBH322H5B_cjs = require('./chunk-BH322H5B.cjs');
7
8
  var chunkM55XUF4L_cjs = require('./chunk-M55XUF4L.cjs');
8
9
  var chunkOYXWQTHF_cjs = require('./chunk-OYXWQTHF.cjs');
9
10
  var chunkS237ORM3_cjs = require('./chunk-S237ORM3.cjs');
10
11
  var chunkII2OEXHW_cjs = require('./chunk-II2OEXHW.cjs');
11
12
  var chunkKWWGUQJV_cjs = require('./chunk-KWWGUQJV.cjs');
12
13
  var chunk3YEXZX4H_cjs = require('./chunk-3YEXZX4H.cjs');
13
- var chunkVSDD5TH5_cjs = require('./chunk-VSDD5TH5.cjs');
14
- var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
15
14
  var chunkRL2HI6NP_cjs = require('./chunk-RL2HI6NP.cjs');
16
15
  var chunk6UZC4XVV_cjs = require('./chunk-6UZC4XVV.cjs');
17
- var chunkA5SKK3CU_cjs = require('./chunk-A5SKK3CU.cjs');
16
+ var chunkG3MRW4WB_cjs = require('./chunk-G3MRW4WB.cjs');
17
+ var chunkAHDJXIUB_cjs = require('./chunk-AHDJXIUB.cjs');
18
+ var chunkSLCH5JRI_cjs = require('./chunk-SLCH5JRI.cjs');
18
19
  var chunkDKY67DA6_cjs = require('./chunk-DKY67DA6.cjs');
19
20
  var chunkYA6GXWC2_cjs = require('./chunk-YA6GXWC2.cjs');
20
21
  var chunkZVEW3JBT_cjs = require('./chunk-ZVEW3JBT.cjs');
@@ -42,7 +43,7 @@ function defaultScopeRenderer(scopeSource) {
42
43
  if (!scopeSource) return void 0;
43
44
  return function renderScope(_field, value, onChange) {
44
45
  return /* @__PURE__ */ jsxRuntime.jsx(
45
- chunkA5SKK3CU_cjs.ScopePicker,
46
+ chunkSLCH5JRI_cjs.ScopePicker,
46
47
  {
47
48
  folders: scopeSource.folders,
48
49
  unfiledCount: scopeSource.unfiledCount,
@@ -1471,7 +1472,7 @@ function WorkflowRunner({
1471
1472
  /* @__PURE__ */ jsxRuntime.jsx(SentBackNote, { state: run.stateOf(step.id), l: pl, testId: tid(step.id) }),
1472
1473
  /* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
1473
1474
  /* @__PURE__ */ jsxRuntime.jsx("fieldset", { disabled: run.isLocked(step.id), className: "contents", children: /* @__PURE__ */ jsxRuntime.jsx(
1474
- chunkVSDD5TH5_cjs.SchemaForm,
1475
+ chunkG3MRW4WB_cjs.SchemaForm,
1475
1476
  {
1476
1477
  fields: step.inputs,
1477
1478
  values: run.inputs,
@@ -1521,7 +1522,7 @@ function WorkflowRunner({
1521
1522
  /* @__PURE__ */ jsxRuntime.jsx(AssigneeLine, { run, stepId: step.id, l: pl, testId: tid(step.id) }),
1522
1523
  !(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 }),
1523
1524
  (step.fields ?? []).length > 0 && run.phaseOf(step.id) === "ready" && /* @__PURE__ */ jsxRuntime.jsx(
1524
- chunkVSDD5TH5_cjs.SchemaForm,
1525
+ chunkG3MRW4WB_cjs.SchemaForm,
1525
1526
  {
1526
1527
  fields: step.fields ?? [],
1527
1528
  values: run.inputs,
@@ -2303,7 +2304,7 @@ function StepAction({
2303
2304
  const errors = chunkSQCCQU3K_cjs.validateInputs(asForm(step), values);
2304
2305
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 p-1", "data-testid": tid, children: [
2305
2306
  /* @__PURE__ */ jsxRuntime.jsx(
2306
- chunkVSDD5TH5_cjs.SchemaForm,
2307
+ chunkG3MRW4WB_cjs.SchemaForm,
2307
2308
  {
2308
2309
  fields,
2309
2310
  values,
@@ -3002,7 +3003,7 @@ function AgentCreator({
3002
3003
  ] })
3003
3004
  ] }),
3004
3005
  /* @__PURE__ */ jsxRuntime.jsx(
3005
- chunkA5SKK3CU_cjs.FoldSection,
3006
+ chunkSLCH5JRI_cjs.FoldSection,
3006
3007
  {
3007
3008
  label: l.advanced,
3008
3009
  open: advancedOpen,
@@ -4668,37 +4669,6 @@ function RecurrenceBuilder({ rrule, onChange, testIds, labels }) {
4668
4669
  }
4669
4670
  );
4670
4671
  }
4671
-
4672
- // src/agents/tasks/taskLabels.ts
4673
- var TRIGGER_LABELS = {
4674
- one_time: "One-time",
4675
- recurring: "Recurring",
4676
- event: "Event",
4677
- after: "After a task",
4678
- on_demand: "On demand"
4679
- };
4680
- var STATUS_LABELS = {
4681
- todo: "To do",
4682
- generating: "Generating",
4683
- done: "Done",
4684
- chat: "Chat"
4685
- };
4686
- var STATUS_ORDER = ["generating", "todo", "done", "chat"];
4687
- var STATUS_TONE = {
4688
- todo: "neutral",
4689
- generating: "ai",
4690
- done: "success",
4691
- chat: "neutral"
4692
- };
4693
- function asTaskStatus(status) {
4694
- if (!status) return "chat";
4695
- return STATUS_ORDER.includes(status) ? status : "todo";
4696
- }
4697
- function goalProgress(task) {
4698
- const gs = task.goal_state;
4699
- if (!gs || gs.criteria_total == null) return null;
4700
- return { met: gs.criteria_met ?? 0, total: gs.criteria_total, done: gs.done === true };
4701
- }
4702
4672
  var DEFAULT_TASK_OUTPUTS_CELL_LABELS = {
4703
4673
  none: "\u2014",
4704
4674
  open: (count) => `${count} ${count === 1 ? "output" : "outputs"}`,
@@ -4860,12 +4830,12 @@ function TaskStatusPill({
4860
4830
  hint
4861
4831
  }) {
4862
4832
  const l = { ...DEFAULT_TASK_STATUS_PILL_LABELS, ...labels };
4863
- const key = asTaskStatus(status);
4833
+ const key = chunkBH322H5B_cjs.asTaskStatus(status);
4864
4834
  const generating = key === "generating";
4865
4835
  const now = useNow(generating && Boolean(runStartedAt));
4866
4836
  const started = runStartedAt ? Date.parse(runStartedAt) : NaN;
4867
- let text = STATUS_LABELS[key];
4868
- let tone = STATUS_TONE[key];
4837
+ let text = chunkBH322H5B_cjs.STATUS_LABELS[key];
4838
+ let tone = chunkBH322H5B_cjs.STATUS_TONE[key];
4869
4839
  if (awaitingAccess) {
4870
4840
  text = l.waitingForAccess;
4871
4841
  tone = "danger";
@@ -5016,144 +4986,6 @@ function createTaskColumns(o) {
5016
4986
  ];
5017
4987
  }
5018
4988
 
5019
- // src/agents/tasks/taskRows.ts
5020
- var MAX_TASK_DEPTH = 5;
5021
- var ownerExtId = (task) => task.owner_ext_id || task.created_by_ext_id || null;
5022
- var isPlainTodo = (task) => !task.agent_ext_id && !task.has_agent_action && !task.skill_ref;
5023
- function indexTasks(tasks) {
5024
- const byId = new Map(tasks.map((t) => [t.external_id, t]));
5025
- const kids = /* @__PURE__ */ new Map();
5026
- const parentOf = /* @__PURE__ */ new Map();
5027
- for (const task of tasks) {
5028
- const parent = task.parent_conversation_ext_id;
5029
- if (parent && parent !== task.external_id && byId.has(parent)) {
5030
- parentOf.set(task.external_id, parent);
5031
- const list = kids.get(parent);
5032
- if (list) list.push(task);
5033
- else kids.set(parent, [task]);
5034
- }
5035
- }
5036
- return { byId, kids, parentOf };
5037
- }
5038
- function descendantIds(tree, id) {
5039
- const out = [];
5040
- const seen = /* @__PURE__ */ new Set([id]);
5041
- const stack = [id];
5042
- while (stack.length) {
5043
- for (const child of tree.kids.get(stack.pop()) ?? []) {
5044
- if (seen.has(child.external_id)) continue;
5045
- seen.add(child.external_id);
5046
- out.push(child.external_id);
5047
- stack.push(child.external_id);
5048
- }
5049
- }
5050
- return out;
5051
- }
5052
- function subtreeLevels(tree, id, seen = /* @__PURE__ */ new Set()) {
5053
- if (seen.has(id)) return 0;
5054
- const next = new Set(seen).add(id);
5055
- let deepest = 0;
5056
- for (const child of tree.kids.get(id) ?? []) {
5057
- deepest = Math.max(deepest, subtreeLevels(tree, child.external_id, next));
5058
- }
5059
- return 1 + deepest;
5060
- }
5061
- function levelOf(tree, id) {
5062
- let level = 1;
5063
- const seen = /* @__PURE__ */ new Set([id]);
5064
- for (let at = tree.parentOf.get(id); at && !seen.has(at); at = tree.parentOf.get(at)) {
5065
- seen.add(at);
5066
- level += 1;
5067
- }
5068
- return level;
5069
- }
5070
- function moveTargets(tasks, task) {
5071
- const tree = indexTasks(tasks);
5072
- const banned = /* @__PURE__ */ new Set([task.external_id, ...descendantIds(tree, task.external_id)]);
5073
- const height = subtreeLevels(tree, task.external_id);
5074
- return tasks.filter(
5075
- (t) => !banned.has(t.external_id) && levelOf(tree, t.external_id) + height <= MAX_TASK_DEPTH
5076
- );
5077
- }
5078
- var sameStats = (a, b) => a === b || a !== void 0 && b !== void 0 && a.done === b.done && a.total === b.total;
5079
- function buildTaskRows(tasks, filter, collapsed, compare, options = {}) {
5080
- const tree = indexTasks(tasks);
5081
- const { kids, parentOf } = tree;
5082
- const sorted = (list) => compare ? [...list].sort(compare) : list;
5083
- const query = options.query?.trim().toLowerCase() ?? "";
5084
- const titleOf = options.titleOf ?? ((t) => t.title ?? "");
5085
- let included = null;
5086
- let matched = null;
5087
- if (filter !== "all" || query) {
5088
- matched = /* @__PURE__ */ new Set();
5089
- included = /* @__PURE__ */ new Set();
5090
- for (const task of tasks) {
5091
- const statusOk = filter === "all" || asTaskStatus(task.status) === filter;
5092
- const textOk = !query || `${titleOf(task)} ${task.description ?? ""}`.toLowerCase().includes(query);
5093
- if (!statusOk || !textOk) continue;
5094
- matched.add(task.external_id);
5095
- for (let at = task.external_id; at && !included.has(at); at = parentOf.get(at)) {
5096
- included.add(at);
5097
- }
5098
- }
5099
- }
5100
- const shown = (list) => included ? list.filter((t) => included.has(t.external_id)) : list;
5101
- const build = (task, depth, seen) => {
5102
- const nextSeen = new Set(seen).add(task.external_id);
5103
- return {
5104
- task,
5105
- depth,
5106
- context: matched ? !matched.has(task.external_id) : false,
5107
- children: sorted(shown(kids.get(task.external_id) ?? [])).filter((child) => !nextSeen.has(child.external_id)).map((child) => build(child, depth + 1, nextSeen))
5108
- };
5109
- };
5110
- const sections = new Map([
5111
- ...STATUS_ORDER.map((s) => [s, []]),
5112
- ["sorted", []]
5113
- ]);
5114
- const sectionOf = (task) => compare ? "sorted" : asTaskStatus(task.status);
5115
- const roots = tasks.filter((t) => !parentOf.has(t.external_id));
5116
- for (const task of sorted(shown(roots))) {
5117
- sections.get(sectionOf(task))?.push(build(task, 0, /* @__PURE__ */ new Set()));
5118
- }
5119
- const cache = options.cache;
5120
- const used = /* @__PURE__ */ new Set();
5121
- const rows = [];
5122
- const walk = (node, parentId, setSize, posInSet) => {
5123
- const id = node.task.external_id;
5124
- const expanded = !collapsed.has(id);
5125
- const all = kids.get(id);
5126
- const childStats = all ? { done: all.filter((c) => asTaskStatus(c.status) === "done").length, total: all.length } : void 0;
5127
- let row = {
5128
- external_id: id,
5129
- task: node.task,
5130
- depth: node.depth,
5131
- childStats,
5132
- expanded,
5133
- parentId,
5134
- setSize,
5135
- posInSet,
5136
- context: node.context
5137
- };
5138
- const prev = cache?.get(id);
5139
- if (prev && prev.task === row.task && prev.depth === row.depth && prev.expanded === row.expanded && prev.parentId === row.parentId && prev.setSize === row.setSize && prev.posInSet === row.posInSet && prev.context === row.context && sameStats(prev.childStats, row.childStats)) {
5140
- row = prev;
5141
- }
5142
- used.add(id);
5143
- cache?.set(id, row);
5144
- rows.push(row);
5145
- if (expanded) {
5146
- node.children.forEach((child, i) => walk(child, id, node.children.length, i + 1));
5147
- }
5148
- };
5149
- const ordered = [...STATUS_ORDER, "sorted"].flatMap((s) => sections.get(s) ?? []);
5150
- ordered.forEach((node, i) => walk(node, null, ordered.length, i + 1));
5151
- if (cache) {
5152
- for (const id of [...cache.keys()]) if (!used.has(id)) cache.delete(id);
5153
- }
5154
- return rows;
5155
- }
5156
-
5157
4989
  // src/agents/tasks/taskTableLabels.ts
5158
4990
  var DEFAULT_TASK_LIST_LABELS = {
5159
4991
  filterAll: "All",
@@ -5344,9 +5176,9 @@ var WIDTH_RULES = [
5344
5176
  function statusHint(task, ctx) {
5345
5177
  const { props: p, l } = ctx;
5346
5178
  if (!p.formatRelative || !task.updated_at) return void 0;
5347
- const key = asTaskStatus(task.status);
5179
+ const key = chunkBH322H5B_cjs.asTaskStatus(task.status);
5348
5180
  const pill = { ...DEFAULT_TASK_STATUS_PILL_LABELS, ...p.statusPillLabels };
5349
- const label = task.pending_auth_request_id ? pill.waitingForAccess : STATUS_LABELS[key];
5181
+ const label = task.pending_auth_request_id ? pill.waitingForAccess : chunkBH322H5B_cjs.STATUS_LABELS[key];
5350
5182
  return l.statusHint(label, p.formatRelative(task.updated_at));
5351
5183
  }
5352
5184
  function TaskTable(props) {
@@ -5354,7 +5186,7 @@ function TaskTable(props) {
5354
5186
  const l = {
5355
5187
  ...DEFAULT_TASK_LIST_LABELS,
5356
5188
  ...props.labels,
5357
- status: { ...STATUS_LABELS, ...props.labels?.status }
5189
+ status: { ...chunkBH322H5B_cjs.STATUS_LABELS, ...props.labels?.status }
5358
5190
  };
5359
5191
  const [filter, setFilter] = react.useState("all");
5360
5192
  const [query, setQuery] = react.useState("");
@@ -5366,14 +5198,14 @@ function TaskTable(props) {
5366
5198
  const apiRef = react.useRef(null);
5367
5199
  const [narrow, setNarrow] = react.useState(false);
5368
5200
  const rowCache = react.useRef(/* @__PURE__ */ new Map());
5369
- const tree = react.useMemo(() => indexTasks(tasks), [tasks]);
5201
+ const tree = react.useMemo(() => chunkBH322H5B_cjs.indexTasks(tasks), [tasks]);
5370
5202
  const peopleNames = react.useMemo(
5371
5203
  () => new Map((props.people ?? []).map((p) => [p.id, p.label])),
5372
5204
  [props.people]
5373
5205
  );
5374
5206
  const nameOf = (task) => task.title?.trim() || task.workflow_ext_id && props.workflowNames?.[task.workflow_ext_id] || l.untitled;
5375
5207
  const owner = (task) => {
5376
- const id = ownerExtId(task);
5208
+ const id = chunkBH322H5B_cjs.ownerExtId(task);
5377
5209
  const mine = task.is_owner !== false;
5378
5210
  return {
5379
5211
  id,
@@ -5393,13 +5225,13 @@ function TaskTable(props) {
5393
5225
  const renderPerson = (person) => /* @__PURE__ */ jsxRuntime.jsx(chunkKWWGUQJV_cjs.PersonPill, { person });
5394
5226
  const q = (query.trim() || (props.filterText ?? "").trim()).toLowerCase();
5395
5227
  const counts = react.useMemo(() => {
5396
- const map = new Map(STATUS_ORDER.map((s) => [s, 0]));
5228
+ const map = new Map(chunkBH322H5B_cjs.STATUS_ORDER.map((s) => [s, 0]));
5397
5229
  let all = 0;
5398
5230
  for (const task of tasks) {
5399
5231
  const text = `${nameOf(task)} ${task.description ?? ""}`.toLowerCase();
5400
5232
  if (q && !text.includes(q)) continue;
5401
5233
  all += 1;
5402
- const s = asTaskStatus(task.status);
5234
+ const s = chunkBH322H5B_cjs.asTaskStatus(task.status);
5403
5235
  map.set(s, (map.get(s) ?? 0) + 1);
5404
5236
  }
5405
5237
  map.set("all", all);
@@ -5421,7 +5253,7 @@ function TaskTable(props) {
5421
5253
  case "due":
5422
5254
  return t.due_at ? Date.parse(t.due_at) : Number.POSITIVE_INFINITY;
5423
5255
  default:
5424
- return STATUS_ORDER.indexOf(asTaskStatus(t.status));
5256
+ return chunkBH322H5B_cjs.STATUS_ORDER.indexOf(chunkBH322H5B_cjs.asTaskStatus(t.status));
5425
5257
  }
5426
5258
  };
5427
5259
  const key = (t) => {
@@ -5449,7 +5281,7 @@ function TaskTable(props) {
5449
5281
  l.untitled
5450
5282
  ]);
5451
5283
  const rows = react.useMemo(
5452
- () => buildTaskRows(tasks, filter, collapsed, compare, {
5284
+ () => chunkBH322H5B_cjs.buildTaskRows(tasks, filter, collapsed, compare, {
5453
5285
  query: query.trim() || props.filterText,
5454
5286
  titleOf: nameOf,
5455
5287
  cache: rowCache.current
@@ -5474,7 +5306,7 @@ function TaskTable(props) {
5474
5306
  [selectedTasks, selectedIds, tree]
5475
5307
  );
5476
5308
  const markable = selectedTasks.filter(
5477
- (t) => t.status != null && (t.is_owner !== false || props.canEditShared) && isPlainTodo(t) && asTaskStatus(t.status) !== "done"
5309
+ (t) => t.status != null && (t.is_owner !== false || props.canEditShared) && chunkBH322H5B_cjs.isPlainTodo(t) && chunkBH322H5B_cjs.asTaskStatus(t.status) !== "done"
5478
5310
  );
5479
5311
  const deletable = selectedTasks.filter((t) => chunkDKY67DA6_cjs.canDeleteThread(t, Boolean(props.isWorkspaceOwner)));
5480
5312
  const rowsRef = react.useRef(rows);
@@ -5489,11 +5321,11 @@ function TaskTable(props) {
5489
5321
  const next = new Set(prev);
5490
5322
  for (const id of added) {
5491
5323
  next.add(id);
5492
- for (const d of descendantIds(tree, id)) next.add(d);
5324
+ for (const d of chunkBH322H5B_cjs.descendantIds(tree, id)) next.add(d);
5493
5325
  }
5494
5326
  for (const id of removed) {
5495
5327
  next.delete(id);
5496
- for (const d of descendantIds(tree, id)) next.delete(d);
5328
+ for (const d of chunkBH322H5B_cjs.descendantIds(tree, id)) next.delete(d);
5497
5329
  for (let at = tree.parentOf.get(id); at; at = tree.parentOf.get(at)) next.delete(at);
5498
5330
  }
5499
5331
  return next;
@@ -5520,8 +5352,8 @@ function TaskTable(props) {
5520
5352
  const { l: lb, props: p, nameOf: name } = latest.current;
5521
5353
  const { task, depth, childStats, expanded } = row;
5522
5354
  const id = task.external_id;
5523
- const status = asTaskStatus(task.status);
5524
- const goal = goalProgress(task);
5355
+ const status = chunkBH322H5B_cjs.asTaskStatus(task.status);
5356
+ const goal = chunkBH322H5B_cjs.goalProgress(task);
5525
5357
  const workflowName = task.workflow_ext_id ? p.workflowNames?.[task.workflow_ext_id] : null;
5526
5358
  return /* @__PURE__ */ jsxRuntime.jsxs(
5527
5359
  "div",
@@ -5620,7 +5452,7 @@ function TaskTable(props) {
5620
5452
  const { l: lb, props: p } = latest.current;
5621
5453
  const { task } = row;
5622
5454
  const dueMs = task.due_at ? Date.parse(task.due_at) : NaN;
5623
- const overdue = asTaskStatus(task.status) !== "done" && !Number.isNaN(dueMs) && dueMs < Date.now();
5455
+ const overdue = chunkBH322H5B_cjs.asTaskStatus(task.status) !== "done" && !Number.isNaN(dueMs) && dueMs < Date.now();
5624
5456
  return /* @__PURE__ */ jsxRuntime.jsx(
5625
5457
  "span",
5626
5458
  {
@@ -5667,7 +5499,7 @@ function TaskTable(props) {
5667
5499
  TaskStatusPill,
5668
5500
  {
5669
5501
  id: row.external_id,
5670
- status: asTaskStatus(row.task.status),
5502
+ status: chunkBH322H5B_cjs.asTaskStatus(row.task.status),
5671
5503
  runStartedAt: row.task.run_started_at,
5672
5504
  lastError: row.task.last_error,
5673
5505
  awaitingAccess: Boolean(row.task.pending_auth_request_id),
@@ -5679,7 +5511,7 @@ function TaskTable(props) {
5679
5511
  const { l: lb, props: p } = latest.current;
5680
5512
  const { task } = row;
5681
5513
  const id = task.external_id;
5682
- const status = asTaskStatus(task.status);
5514
+ const status = chunkBH322H5B_cjs.asTaskStatus(task.status);
5683
5515
  const busy = p.busyId === id;
5684
5516
  const isOwner = task.is_owner !== false;
5685
5517
  const canEdit = isOwner || Boolean(p.canEditShared);
@@ -5794,7 +5626,7 @@ function TaskTable(props) {
5794
5626
  [animate]
5795
5627
  );
5796
5628
  const clearSelection = () => setSelectedIds(/* @__PURE__ */ new Set());
5797
- const filterKeys = ["all", ...STATUS_ORDER].filter(
5629
+ const filterKeys = ["all", ...chunkBH322H5B_cjs.STATUS_ORDER].filter(
5798
5630
  (key) => key !== "chat" || (counts.get(key) ?? 0) > 0
5799
5631
  );
5800
5632
  const hasChildren = tree.kids.size > 0;
@@ -5952,7 +5784,7 @@ function TaskTable(props) {
5952
5784
  {
5953
5785
  open: true,
5954
5786
  onOpenChange: (open) => !open && setMoving(null),
5955
- options: moveTargets(tasks, moving).map((t) => ({ id: t.external_id, label: nameOf(t) })),
5787
+ options: chunkBH322H5B_cjs.moveTargets(tasks, moving).map((t) => ({ id: t.external_id, label: nameOf(t) })),
5956
5788
  currentParentId: moving.parent_conversation_ext_id,
5957
5789
  onPick: (parentId) => props.onMove?.(moving, parentId),
5958
5790
  labels: {
@@ -6251,399 +6083,6 @@ function ConversationListView(p) {
6251
6083
  )
6252
6084
  ] });
6253
6085
  }
6254
- var DEFAULT_PILL_SELECT_LABELS = {
6255
- search: "Search\u2026",
6256
- empty: "No match."
6257
- };
6258
- function PillSelect({
6259
- icon,
6260
- prefix,
6261
- value,
6262
- options,
6263
- onChange,
6264
- noneOption,
6265
- searchable = false,
6266
- disabled = false,
6267
- testId,
6268
- labels,
6269
- className
6270
- }) {
6271
- const l = { ...DEFAULT_PILL_SELECT_LABELS, ...labels };
6272
- const [open, setOpen] = react.useState(false);
6273
- const all = noneOption ? [noneOption, ...options] : options;
6274
- const chosen = all.find((o) => o.id === value);
6275
- const id = chunkPLIF5CUV_cjs.testIdOr(testId, { testId: "pill-select" });
6276
- const choose = (next) => {
6277
- onChange(next);
6278
- setOpen(false);
6279
- };
6280
- return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { open, onOpenChange: setOpen, children: [
6281
- /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
6282
- ui.EntityPill,
6283
- {
6284
- icon: chosen?.icon ?? icon,
6285
- label: `${prefix}: ${chosen?.label ?? ""}`.replace(/: $/, ""),
6286
- secondaryText: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "size-3", "aria-hidden": true }),
6287
- size: "sm",
6288
- disabled,
6289
- labelMaxWidth: "max-w-[220px]",
6290
- className: ui.cn("h-7 pointer-coarse:min-h-11", className),
6291
- "data-testid": id
6292
- }
6293
- ) }),
6294
- /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-64 p-0", "data-testid": `${id}-list`, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Command, { children: [
6295
- searchable && /* @__PURE__ */ jsxRuntime.jsx(ui.CommandInput, { placeholder: l.search, "data-testid": `${id}-search` }),
6296
- /* @__PURE__ */ jsxRuntime.jsxs(ui.CommandList, { children: [
6297
- /* @__PURE__ */ jsxRuntime.jsx(ui.CommandEmpty, { children: l.empty }),
6298
- all.map((o) => /* @__PURE__ */ jsxRuntime.jsxs(
6299
- ui.CommandItem,
6300
- {
6301
- value: `${o.label} ${o.description ?? ""}`,
6302
- onSelect: () => choose(o.id),
6303
- "data-testid": `${id}-option-${o.id || "none"}`,
6304
- children: [
6305
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mr-2 flex size-4 shrink-0 items-center justify-center", children: o.icon }),
6306
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate", children: o.label }),
6307
- o.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-2 shrink-0 text-xs text-muted-foreground", children: o.description }),
6308
- o.id === value && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "ml-2 size-4 shrink-0", "aria-hidden": true })
6309
- ]
6310
- },
6311
- o.id || "__none__"
6312
- ))
6313
- ] })
6314
- ] }) })
6315
- ] });
6316
- }
6317
- var DEFAULT_DUE_DATE_MENU_LABELS = {
6318
- today: "Today",
6319
- tomorrow: "Tomorrow",
6320
- nextMonday: "Next Monday",
6321
- inAWeek: "In a week",
6322
- pick: "Or pick a date and time",
6323
- clear: "Clear date"
6324
- };
6325
- var END_OF_DAY_HOUR = 17;
6326
- var pad = (n) => String(n).padStart(2, "0");
6327
- function toLocalInput(date) {
6328
- return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}`;
6329
- }
6330
- function duePresets(now = /* @__PURE__ */ new Date()) {
6331
- const at = (daysAhead) => {
6332
- const d = new Date(now);
6333
- d.setDate(d.getDate() + daysAhead);
6334
- d.setHours(END_OF_DAY_HOUR, 0, 0, 0);
6335
- return d;
6336
- };
6337
- const untilMonday = (8 - now.getDay()) % 7 || 7;
6338
- const presets = [];
6339
- if (now.getHours() < END_OF_DAY_HOUR) presets.push({ id: "today", value: toLocalInput(at(0)) });
6340
- presets.push(
6341
- { id: "tomorrow", value: toLocalInput(at(1)) },
6342
- { id: "nextMonday", value: toLocalInput(at(untilMonday)) },
6343
- { id: "inAWeek", value: toLocalInput(at(7)) }
6344
- );
6345
- return presets;
6346
- }
6347
- function DueDateMenu({ value, onChange, id, label, labels }) {
6348
- const l = { ...DEFAULT_DUE_DATE_MENU_LABELS, ...labels };
6349
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", "data-testid": `${id}-menu`, children: [
6350
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1.5", children: duePresets().map((preset) => /* @__PURE__ */ jsxRuntime.jsx(
6351
- ui.Button,
6352
- {
6353
- type: "button",
6354
- variant: value === preset.value ? "secondary" : "outline",
6355
- size: "sm",
6356
- className: "h-8 pointer-coarse:h-11",
6357
- onClick: () => onChange(preset.value),
6358
- "data-testid": `${id}-preset-${preset.id}`,
6359
- children: l[preset.id]
6360
- },
6361
- preset.id
6362
- )) }),
6363
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
6364
- /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: `${id}-input`, className: "sr-only", children: label }),
6365
- /* @__PURE__ */ jsxRuntime.jsx(
6366
- ui.Input,
6367
- {
6368
- id: `${id}-input`,
6369
- type: "datetime-local",
6370
- "aria-label": l.pick,
6371
- value,
6372
- onChange: (e) => onChange(e.target.value),
6373
- "data-testid": id
6374
- }
6375
- ),
6376
- value && /* @__PURE__ */ jsxRuntime.jsx(
6377
- ui.Button,
6378
- {
6379
- type: "button",
6380
- variant: "ghost",
6381
- size: "icon",
6382
- "aria-label": l.clear,
6383
- onClick: () => onChange(""),
6384
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-4", "aria-hidden": true })
6385
- }
6386
- )
6387
- ] })
6388
- ] });
6389
- }
6390
- var ARBI = shell.assistantCopy();
6391
- var DEFAULT_NEW_THREAD_DIALOG_LABELS = {
6392
- title: "New",
6393
- description: "Ask for anything, like a normal chat: the assistant gets on it. Add a due date if it matters.",
6394
- promptLabel: "What do you want to ask or get done?",
6395
- promptPlaceholder: "Ask a question, or describe what needs doing\u2026",
6396
- titleLabel: "Title",
6397
- titlePlaceholder: "Made from your prompt unless you write one",
6398
- visibility: "Shared with",
6399
- taskDetails: "Task details",
6400
- files: (count) => count === 0 ? "No files in this workspace yet: answers come from general knowledge." : `Can use the ${count} file${count === 1 ? "" : "s"} in this workspace.`,
6401
- taskDetailsHint: "Optional.",
6402
- due: "Due",
6403
- dueNone: "No date",
6404
- dueClear: "Clear date",
6405
- parentTask: "Part of",
6406
- parentTaskNone: "Nothing (top-level)",
6407
- search: "Search\u2026",
6408
- empty: "No match.",
6409
- cancel: "Cancel",
6410
- createTask: ARBI.startWith,
6411
- assistantStart: "Assistant starts on it now",
6412
- assistantStartHint: "Switch off to just keep track of it as a to-do.",
6413
- addTodo: "Add to-do",
6414
- saving: "Creating\u2026"
6415
- };
6416
- var GLYPH = "size-3.5 shrink-0";
6417
- function formatDue(local) {
6418
- const d = new Date(local);
6419
- if (Number.isNaN(d.getTime())) return local;
6420
- return d.toLocaleString(void 0, {
6421
- weekday: "short",
6422
- day: "numeric",
6423
- month: "short",
6424
- hour: "2-digit",
6425
- minute: "2-digit"
6426
- });
6427
- }
6428
- function NewThreadDialog({
6429
- open,
6430
- onOpenChange,
6431
- tasks = [],
6432
- initialValues,
6433
- fileCount,
6434
- isPending,
6435
- onSubmit,
6436
- labels,
6437
- testId
6438
- }) {
6439
- const assistant = shell.useAssistantCopy();
6440
- const l = {
6441
- ...DEFAULT_NEW_THREAD_DIALOG_LABELS,
6442
- createTask: assistant.startWith,
6443
- ...labels
6444
- };
6445
- const seed = react.useMemo(
6446
- () => ({ ...chunkM55XUF4L_cjs.EMPTY_NEW_THREAD, ...initialValues }),
6447
- // Seeded once per open.
6448
- // eslint-disable-next-line react-hooks/exhaustive-deps
6449
- [open]
6450
- );
6451
- const [values, setValues] = react.useState(seed);
6452
- const [detailsOpen, setDetailsOpen] = react.useState(chunkM55XUF4L_cjs.hasTaskFields(seed));
6453
- const [submitError, setSubmitError] = react.useState(null);
6454
- const id = chunkPLIF5CUV_cjs.testIdOr(testId, { testId: "new-thread" });
6455
- const set = (key, value) => setValues((v) => ({ ...v, [key]: value }));
6456
- const canSubmit = values.prompt.trim() !== "" && !isPending;
6457
- const pillLabels = { search: l.search, empty: l.empty };
6458
- const taskOptions = tasks.map((t) => ({
6459
- id: t.id,
6460
- label: t.name,
6461
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH, "aria-hidden": true })
6462
- }));
6463
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { modal: false, open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
6464
- ui.DialogContent,
6465
- {
6466
- presentation: "right",
6467
- onInteractOutside: (event) => event.preventDefault(),
6468
- className: "flex flex-col overflow-hidden p-0",
6469
- "data-testid": id,
6470
- children: [
6471
- /* @__PURE__ */ jsxRuntime.jsxs(chunkCVPV4I7Z_cjs.ModalHeader, { children: [
6472
- /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: l.title }),
6473
- /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { className: "sr-only", children: l.description })
6474
- ] }),
6475
- /* @__PURE__ */ jsxRuntime.jsxs(
6476
- "form",
6477
- {
6478
- className: "flex min-h-0 flex-1 flex-col",
6479
- onSubmit: async (event) => {
6480
- event.preventDefault();
6481
- if (!canSubmit) return;
6482
- setSubmitError(null);
6483
- try {
6484
- await onSubmit(values);
6485
- setValues(chunkM55XUF4L_cjs.EMPTY_NEW_THREAD);
6486
- setDetailsOpen(false);
6487
- } catch (error) {
6488
- setSubmitError(error instanceof Error ? error.message : "Could not create the thread");
6489
- }
6490
- },
6491
- children: [
6492
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-6 pb-4", children: [
6493
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
6494
- /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "new-thread-prompt", className: "sr-only", children: l.promptLabel }),
6495
- /* @__PURE__ */ jsxRuntime.jsx(
6496
- ui.Textarea,
6497
- {
6498
- id: "new-thread-prompt",
6499
- value: values.prompt,
6500
- placeholder: l.promptPlaceholder,
6501
- rows: 4,
6502
- onChange: (e) => set("prompt", e.target.value),
6503
- onKeyDown: (e) => {
6504
- if (e.key === "Enter" && (e.metaKey || e.ctrlKey) && canSubmit) onSubmit(values);
6505
- },
6506
- autoFocus: true,
6507
- className: "min-h-24 text-base",
6508
- "data-testid": `${id}-prompt`
6509
- }
6510
- ),
6511
- /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "flex items-center gap-2 text-sm", "data-testid": `${id}-assistant`, children: [
6512
- /* @__PURE__ */ jsxRuntime.jsx(
6513
- ui.Switch,
6514
- {
6515
- checked: values.assistant,
6516
- onCheckedChange: (on) => set("assistant", on),
6517
- "data-testid": `${id}-assistant-switch`
6518
- }
6519
- ),
6520
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: l.assistantStart }),
6521
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: l.assistantStartHint })
6522
- ] }),
6523
- fileCount !== void 0 && values.assistant && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", "data-testid": `${id}-files`, children: l.files(fileCount) })
6524
- ] }),
6525
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
6526
- ui.VisibilityToggle,
6527
- {
6528
- items: { shared: values.shared },
6529
- onToggle: (share) => set("shared", share),
6530
- label: l.visibility,
6531
- presentation: "select",
6532
- "data-testid": `${id}-visibility`
6533
- }
6534
- ) }),
6535
- /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-3", children: [
6536
- /* @__PURE__ */ jsxRuntime.jsxs(
6537
- ui.Button,
6538
- {
6539
- type: "button",
6540
- variant: "ghost",
6541
- size: "sm",
6542
- className: "h-8 gap-1 self-start px-2 pointer-coarse:h-11",
6543
- onClick: () => setDetailsOpen((v) => !v),
6544
- "aria-expanded": detailsOpen,
6545
- "data-testid": `${id}-details-toggle`,
6546
- children: [
6547
- l.taskDetails,
6548
- /* @__PURE__ */ jsxRuntime.jsx(
6549
- lucideReact.ChevronDown,
6550
- {
6551
- className: ui.cn("size-3.5 transition-transform", detailsOpen && "rotate-180"),
6552
- "aria-hidden": true
6553
- }
6554
- )
6555
- ]
6556
- }
6557
- ),
6558
- detailsOpen && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3", "data-testid": `${id}-details`, children: [
6559
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.taskDetailsHint }),
6560
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
6561
- /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { children: [
6562
- /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
6563
- ui.EntityPill,
6564
- {
6565
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CalendarClock, { className: GLYPH, "aria-hidden": true }),
6566
- label: `${l.due}: ${values.dueAt ? formatDue(values.dueAt) : l.dueNone}`,
6567
- secondaryText: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "size-3", "aria-hidden": true }),
6568
- size: "sm",
6569
- className: "h-7 pointer-coarse:min-h-11",
6570
- "data-testid": `${id}-due-pill`
6571
- }
6572
- ) }),
6573
- /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ jsxRuntime.jsx(
6574
- DueDateMenu,
6575
- {
6576
- id: `${id}-due`,
6577
- label: l.due,
6578
- value: values.dueAt,
6579
- onChange: (v) => set("dueAt", v),
6580
- labels: { clear: l.dueClear }
6581
- }
6582
- ) })
6583
- ] }),
6584
- tasks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
6585
- PillSelect,
6586
- {
6587
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH, "aria-hidden": true }),
6588
- prefix: l.parentTask,
6589
- value: values.parentId,
6590
- options: taskOptions,
6591
- noneOption: { id: "", label: l.parentTaskNone },
6592
- onChange: (v) => set("parentId", v),
6593
- searchable: true,
6594
- labels: pillLabels,
6595
- testId: `${id}-parent`
6596
- }
6597
- )
6598
- ] }),
6599
- /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "new-thread-title", className: "sr-only", children: l.titleLabel }),
6600
- /* @__PURE__ */ jsxRuntime.jsx(
6601
- ui.Input,
6602
- {
6603
- id: "new-thread-title",
6604
- value: values.title,
6605
- placeholder: l.titlePlaceholder,
6606
- onChange: (e) => set("title", e.target.value),
6607
- "data-testid": `${id}-title`
6608
- }
6609
- )
6610
- ] })
6611
- ] })
6612
- ] }),
6613
- submitError && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "px-6 pb-2 text-sm text-destructive", children: submitError }),
6614
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col-reverse gap-2 border-t border-border px-6 py-3 sm:flex-row sm:justify-end", children: [
6615
- /* @__PURE__ */ jsxRuntime.jsx(
6616
- ui.Button,
6617
- {
6618
- type: "button",
6619
- variant: "outline",
6620
- onClick: () => onOpenChange(false),
6621
- "data-testid": `${id}-cancel`,
6622
- className: "pointer-coarse:min-h-11",
6623
- children: l.cancel
6624
- }
6625
- ),
6626
- /* @__PURE__ */ jsxRuntime.jsxs(
6627
- ui.Button,
6628
- {
6629
- type: "submit",
6630
- disabled: !canSubmit,
6631
- "data-testid": `${id}-submit`,
6632
- className: "gap-1.5 pointer-coarse:min-h-11",
6633
- children: [
6634
- isPending && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
6635
- isPending ? l.saving : !values.assistant ? l.addTodo : l.createTask
6636
- ]
6637
- }
6638
- )
6639
- ] })
6640
- ]
6641
- }
6642
- )
6643
- ]
6644
- }
6645
- ) });
6646
- }
6647
6086
  var DEFAULT_TASK_ACTIVITY_LABELS = {
6648
6087
  title: "Activity",
6649
6088
  empty: "Nothing has happened yet.",
@@ -7625,7 +7064,7 @@ function defaultTaskComposerValues(workflows, initial) {
7625
7064
  ...initial
7626
7065
  };
7627
7066
  }
7628
- var GLYPH2 = "size-3.5 shrink-0";
7067
+ var GLYPH = "size-3.5 shrink-0";
7629
7068
  function missingWhen(values, runAtPast) {
7630
7069
  if (values.when === "now" || values.when === "manual") return null;
7631
7070
  if (values.when === "once") return !values.runAt || runAtPast ? "needRunAt" : null;
@@ -7769,7 +7208,7 @@ function WorkflowComposer({
7769
7208
  const taskOptions = tasks.map((t) => ({
7770
7209
  id: t.id,
7771
7210
  label: t.name,
7772
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true })
7211
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH, "aria-hidden": true })
7773
7212
  }));
7774
7213
  const whenOptions = [
7775
7214
  { id: "manual", label: "Start now" },
@@ -7832,9 +7271,9 @@ function WorkflowComposer({
7832
7271
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-what`, children: [
7833
7272
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: l.what }),
7834
7273
  /* @__PURE__ */ jsxRuntime.jsx(
7835
- PillSelect,
7274
+ chunkBH322H5B_cjs.PillSelect,
7836
7275
  {
7837
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH2, "aria-hidden": true }),
7276
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH, "aria-hidden": true }),
7838
7277
  prefix: l.template,
7839
7278
  value: values.workflowId,
7840
7279
  options: workflows.map((w) => ({ id: w.id, label: w.title })),
@@ -7855,7 +7294,7 @@ function WorkflowComposer({
7855
7294
  },
7856
7295
  "data-testid": `${id}-dropzone`,
7857
7296
  children: /* @__PURE__ */ jsxRuntime.jsx(
7858
- chunkA5SKK3CU_cjs.AddFilesFirst,
7297
+ chunkSLCH5JRI_cjs.AddFilesFirst,
7859
7298
  {
7860
7299
  reason: l.addFilesReason,
7861
7300
  action: addFilesAction,
@@ -7865,7 +7304,7 @@ function WorkflowComposer({
7865
7304
  }
7866
7305
  ),
7867
7306
  !noFiles && workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
7868
- chunkVSDD5TH5_cjs.SchemaForm,
7307
+ chunkG3MRW4WB_cjs.SchemaForm,
7869
7308
  {
7870
7309
  fields,
7871
7310
  values: values.inputs,
@@ -7912,9 +7351,9 @@ function WorkflowComposer({
7912
7351
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-when-section`, children: [
7913
7352
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: l.whenHeading }),
7914
7353
  /* @__PURE__ */ jsxRuntime.jsx(
7915
- PillSelect,
7354
+ chunkBH322H5B_cjs.PillSelect,
7916
7355
  {
7917
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH2, "aria-hidden": true }),
7356
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH, "aria-hidden": true }),
7918
7357
  prefix: l.start,
7919
7358
  value: values.when === "once" || values.when === "repeat" ? "schedule" : values.when === "task" ? "event" : values.when === "now" ? "manual" : values.when,
7920
7359
  options: whenOptions,
@@ -7925,9 +7364,9 @@ function WorkflowComposer({
7925
7364
  }
7926
7365
  ),
7927
7366
  (values.when === "once" || values.when === "repeat") && /* @__PURE__ */ jsxRuntime.jsx(
7928
- PillSelect,
7367
+ chunkBH322H5B_cjs.PillSelect,
7929
7368
  {
7930
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH2, "aria-hidden": true }),
7369
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH, "aria-hidden": true }),
7931
7370
  prefix: "Schedule",
7932
7371
  value: values.when,
7933
7372
  options: [
@@ -7984,9 +7423,9 @@ function WorkflowComposer({
7984
7423
  values.when === "event" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
7985
7424
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "task-composer-event", className: "sr-only", children: l.event }),
7986
7425
  eventOptions ? /* @__PURE__ */ jsxRuntime.jsx(
7987
- PillSelect,
7426
+ chunkBH322H5B_cjs.PillSelect,
7988
7427
  {
7989
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: GLYPH2, "aria-hidden": true }),
7428
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: GLYPH, "aria-hidden": true }),
7990
7429
  prefix: l.event,
7991
7430
  value: values.eventKind,
7992
7431
  options: eventOptions.some((option) => option.id === values.eventKind) || !values.eventKind ? [...eventOptions] : [
@@ -8015,9 +7454,9 @@ function WorkflowComposer({
8015
7454
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.eventHint })
8016
7455
  ] }),
8017
7456
  values.when === "event" && values.eventKind === "workflow_completed" && eventWorkflowOptions && /* @__PURE__ */ jsxRuntime.jsx(
8018
- PillSelect,
7457
+ chunkBH322H5B_cjs.PillSelect,
8019
7458
  {
8020
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: GLYPH2, "aria-hidden": true }),
7459
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { className: GLYPH, "aria-hidden": true }),
8021
7460
  prefix: "Automation",
8022
7461
  value: typeof values.eventFilter?.workflow_ext_id === "string" ? values.eventFilter.workflow_ext_id : "",
8023
7462
  options: [{ id: "", label: "Any automation" }, ...eventWorkflowOptions],
@@ -8031,9 +7470,9 @@ function WorkflowComposer({
8031
7470
  }
8032
7471
  ),
8033
7472
  values.when === "task" && /* @__PURE__ */ jsxRuntime.jsx(
8034
- PillSelect,
7473
+ chunkBH322H5B_cjs.PillSelect,
8035
7474
  {
8036
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true }),
7475
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH, "aria-hidden": true }),
8037
7476
  prefix: l.afterTask,
8038
7477
  value: values.afterTaskId,
8039
7478
  options: taskOptions,
@@ -8082,9 +7521,9 @@ function WorkflowComposer({
8082
7521
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-who`, children: [
8083
7522
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-sm font-medium", children: l.whoHeading }),
8084
7523
  /* @__PURE__ */ jsxRuntime.jsx(
8085
- PillSelect,
7524
+ chunkBH322H5B_cjs.PillSelect,
8086
7525
  {
8087
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH2, "aria-hidden": true }),
7526
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH, "aria-hidden": true }),
8088
7527
  prefix: l.runAs,
8089
7528
  value: values.agentId,
8090
7529
  options: assistantOptions,
@@ -8114,9 +7553,9 @@ function WorkflowComposer({
8114
7553
  ] }),
8115
7554
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-2", "data-testid": `${id}-config`, children: [
8116
7555
  /* @__PURE__ */ jsxRuntime.jsx(
8117
- PillSelect,
7556
+ chunkBH322H5B_cjs.PillSelect,
8118
7557
  {
8119
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, { className: GLYPH2, "aria-hidden": true }),
7558
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, { className: GLYPH, "aria-hidden": true }),
8120
7559
  prefix: l.permission,
8121
7560
  value: values.access,
8122
7561
  options: Object.keys(l.accessOptions).map(
@@ -8241,7 +7680,7 @@ function WorkflowComposer({
8241
7680
  ) });
8242
7681
  }
8243
7682
  var WHEN_ORDER = ["now", "once", "repeat", "event", "task"];
8244
- function formatDue2(local) {
7683
+ function formatDue(local) {
8245
7684
  const d = new Date(local);
8246
7685
  if (Number.isNaN(d.getTime())) return local;
8247
7686
  return d.toLocaleString(void 0, {
@@ -8252,7 +7691,7 @@ function formatDue2(local) {
8252
7691
  minute: "2-digit"
8253
7692
  });
8254
7693
  }
8255
- var GLYPH3 = "size-3.5 shrink-0";
7694
+ var GLYPH2 = "size-3.5 shrink-0";
8256
7695
  function WorkTaskComposer({
8257
7696
  open,
8258
7697
  onOpenChange,
@@ -8333,7 +7772,7 @@ function WorkTaskComposer({
8333
7772
  const taskOptions = tasks.map((t) => ({
8334
7773
  id: t.id,
8335
7774
  label: t.name,
8336
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH3, "aria-hidden": true })
7775
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true })
8337
7776
  }));
8338
7777
  const whenOptions = WHEN_ORDER.map((mode) => ({
8339
7778
  id: mode,
@@ -8394,8 +7833,8 @@ function WorkTaskComposer({
8394
7833
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
8395
7834
  ui.EntityPill,
8396
7835
  {
8397
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CalendarClock, { className: GLYPH3, "aria-hidden": true }),
8398
- label: `${l.due}: ${values.dueAt ? formatDue2(values.dueAt) : l.dueNone}`,
7836
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CalendarClock, { className: GLYPH2, "aria-hidden": true }),
7837
+ label: `${l.due}: ${values.dueAt ? formatDue(values.dueAt) : l.dueNone}`,
8399
7838
  secondaryText: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "size-3", "aria-hidden": true }),
8400
7839
  size: "sm",
8401
7840
  className: "h-7 pointer-coarse:min-h-11",
@@ -8403,7 +7842,7 @@ function WorkTaskComposer({
8403
7842
  }
8404
7843
  ) }),
8405
7844
  /* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { align: "start", className: "w-auto p-2", children: /* @__PURE__ */ jsxRuntime.jsx(
8406
- DueDateMenu,
7845
+ chunkBH322H5B_cjs.DueDateMenu,
8407
7846
  {
8408
7847
  id: `${id}-due`,
8409
7848
  label: l.due,
@@ -8414,9 +7853,9 @@ function WorkTaskComposer({
8414
7853
  ) })
8415
7854
  ] }),
8416
7855
  tasks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
8417
- PillSelect,
7856
+ chunkBH322H5B_cjs.PillSelect,
8418
7857
  {
8419
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH3, "aria-hidden": true }),
7858
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true }),
8420
7859
  prefix: l.parentTask,
8421
7860
  value: values.parentTaskId,
8422
7861
  options: taskOptions,
@@ -8483,9 +7922,9 @@ function WorkTaskComposer({
8483
7922
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
8484
7923
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { className: "text-xs text-muted-foreground", children: l.what }),
8485
7924
  /* @__PURE__ */ jsxRuntime.jsx(
8486
- PillSelect,
7925
+ chunkBH322H5B_cjs.PillSelect,
8487
7926
  {
8488
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH3, "aria-hidden": true }),
7927
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH2, "aria-hidden": true }),
8489
7928
  prefix: l.template,
8490
7929
  value: values.workflowId,
8491
7930
  options: workflows.map((w) => ({ id: w.id, label: w.title })),
@@ -8497,7 +7936,7 @@ function WorkTaskComposer({
8497
7936
  )
8498
7937
  ] }),
8499
7938
  workflow && fields.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
8500
- chunkVSDD5TH5_cjs.SchemaForm,
7939
+ chunkG3MRW4WB_cjs.SchemaForm,
8501
7940
  {
8502
7941
  fields,
8503
7942
  values: values.inputs,
@@ -8518,9 +7957,9 @@ function WorkTaskComposer({
8518
7957
  ] }),
8519
7958
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
8520
7959
  /* @__PURE__ */ jsxRuntime.jsx(
8521
- PillSelect,
7960
+ chunkBH322H5B_cjs.PillSelect,
8522
7961
  {
8523
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH3, "aria-hidden": true }),
7962
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Play, { className: GLYPH2, "aria-hidden": true }),
8524
7963
  prefix: l.start,
8525
7964
  value: values.when === "manual" ? "now" : values.when,
8526
7965
  options: whenOptions,
@@ -8531,9 +7970,9 @@ function WorkTaskComposer({
8531
7970
  }
8532
7971
  ),
8533
7972
  agents.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
8534
- PillSelect,
7973
+ chunkBH322H5B_cjs.PillSelect,
8535
7974
  {
8536
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH3, "aria-hidden": true }),
7975
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bot, { className: GLYPH2, "aria-hidden": true }),
8537
7976
  prefix: l.which,
8538
7977
  value: values.agentId,
8539
7978
  options: assistantOptions,
@@ -8546,9 +7985,9 @@ function WorkTaskComposer({
8546
7985
  }
8547
7986
  ),
8548
7987
  unattended && /* @__PURE__ */ jsxRuntime.jsx(
8549
- PillSelect,
7988
+ chunkBH322H5B_cjs.PillSelect,
8550
7989
  {
8551
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, { className: GLYPH3, "aria-hidden": true }),
7990
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, { className: GLYPH2, "aria-hidden": true }),
8552
7991
  prefix: l.permission,
8553
7992
  value: values.access,
8554
7993
  options: Object.keys(l.accessOptions).map(
@@ -8603,9 +8042,9 @@ function WorkTaskComposer({
8603
8042
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.eventHint })
8604
8043
  ] }),
8605
8044
  values.when === "task" && /* @__PURE__ */ jsxRuntime.jsx(
8606
- PillSelect,
8045
+ chunkBH322H5B_cjs.PillSelect,
8607
8046
  {
8608
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH3, "aria-hidden": true }),
8047
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CornerDownRight, { className: GLYPH2, "aria-hidden": true }),
8609
8048
  prefix: l.afterTask,
8610
8049
  value: values.afterTaskId,
8611
8050
  options: taskOptions,
@@ -9985,8 +9424,6 @@ exports.DEFAULT_CONFIG_FIELD_LABELS = DEFAULT_CONFIG_FIELD_LABELS;
9985
9424
  exports.DEFAULT_CONFIG_FORM_LABELS = DEFAULT_CONFIG_FORM_LABELS;
9986
9425
  exports.DEFAULT_CONSENT_ACTIONS_LABELS = DEFAULT_CONSENT_ACTIONS_LABELS;
9987
9426
  exports.DEFAULT_COPYABLE_URL_LABELS = DEFAULT_COPYABLE_URL_LABELS;
9988
- exports.DEFAULT_NEW_THREAD_DIALOG_LABELS = DEFAULT_NEW_THREAD_DIALOG_LABELS;
9989
- exports.DEFAULT_PILL_SELECT_LABELS = DEFAULT_PILL_SELECT_LABELS;
9990
9427
  exports.DEFAULT_RECURRENCE_BUILDER_LABELS = DEFAULT_RECURRENCE_BUILDER_LABELS;
9991
9428
  exports.DEFAULT_SKILL_EDIT_FORM_LABELS = DEFAULT_SKILL_EDIT_FORM_LABELS;
9992
9429
  exports.DEFAULT_SKILL_GENERATE_FORM_LABELS = DEFAULT_SKILL_GENERATE_FORM_LABELS;
@@ -10007,18 +9444,12 @@ exports.DEFAULT_WORKFLOW_RUNNER_LABELS = DEFAULT_WORKFLOW_RUNNER_LABELS;
10007
9444
  exports.DEFAULT_WORKFLOW_RUN_STATUS_LABELS = DEFAULT_WORKFLOW_RUN_STATUS_LABELS;
10008
9445
  exports.DEFAULT_WORKFLOW_STEP_PARTS_LABELS = DEFAULT_WORKFLOW_STEP_PARTS_LABELS;
10009
9446
  exports.DEFAULT_WORKFLOW_THREAD_STRIP_LABELS = DEFAULT_WORKFLOW_THREAD_STRIP_LABELS;
10010
- exports.MAX_TASK_DEPTH = MAX_TASK_DEPTH;
10011
- exports.NewThreadDialog = NewThreadDialog;
10012
- exports.PillSelect = PillSelect;
10013
9447
  exports.RecurrenceBuilder = RecurrenceBuilder;
10014
9448
  exports.SKILL_FIELD_TYPE_LABELS = SKILL_FIELD_TYPE_LABELS;
10015
9449
  exports.SKILL_MAIN_FILENAME = SKILL_MAIN_FILENAME;
10016
9450
  exports.SKILL_SOURCE_LABELS = SKILL_SOURCE_LABELS;
10017
9451
  exports.SKILL_TYPES = SKILL_TYPES;
10018
9452
  exports.SKILL_TYPE_LABELS = SKILL_TYPE_LABELS;
10019
- exports.STATUS_LABELS = STATUS_LABELS;
10020
- exports.STATUS_ORDER = STATUS_ORDER;
10021
- exports.STATUS_TONE = STATUS_TONE;
10022
9453
  exports.SendBackControl = SendBackControl;
10023
9454
  exports.SkillDetail = SkillDetail;
10024
9455
  exports.SkillDetailSection = SkillDetailSection;
@@ -10029,7 +9460,6 @@ exports.SkillLibraryDetail = SkillLibraryDetail;
10029
9460
  exports.SkillTile = SkillTile;
10030
9461
  exports.SkillViewToggle = SkillViewToggle;
10031
9462
  exports.TASK_COLUMN_ORDER = TASK_COLUMN_ORDER;
10032
- exports.TRIGGER_LABELS = TRIGGER_LABELS;
10033
9463
  exports.TaskActivityDialog = TaskActivityDialog;
10034
9464
  exports.TaskActivityTimeline = TaskActivityTimeline;
10035
9465
  exports.TaskComposer = TaskComposer;
@@ -10053,9 +9483,7 @@ exports.WorkflowThreadStrip = WorkflowThreadStrip;
10053
9483
  exports.activeStepId = activeStepId;
10054
9484
  exports.agentConfigSectionToValues = agentConfigSectionToValues;
10055
9485
  exports.agentCreatorToConfigSection = agentCreatorToConfigSection;
10056
- exports.asTaskStatus = asTaskStatus;
10057
9486
  exports.buildLibrarySkills = buildLibrarySkills;
10058
- exports.buildTaskRows = buildTaskRows;
10059
9487
  exports.buildZipSkillImport = buildZipSkillImport;
10060
9488
  exports.closeWorkflowLaunch = closeWorkflowLaunch;
10061
9489
  exports.composePersona = composePersona;
@@ -10063,32 +9491,26 @@ exports.createTaskColumns = createTaskColumns;
10063
9491
  exports.defaultScopeRenderer = defaultScopeRenderer;
10064
9492
  exports.defaultTaskComposerValues = defaultTaskComposerValues;
10065
9493
  exports.deriveAgentName = deriveAgentName;
10066
- exports.descendantIds = descendantIds;
10067
9494
  exports.filterConversationRows = filterConversationRows;
10068
9495
  exports.filterLibrarySkills = filterLibrarySkills;
10069
9496
  exports.formatElapsed = formatElapsed2;
10070
- exports.goalProgress = goalProgress;
10071
9497
  exports.groupAgentTasks = groupAgentTasks;
10072
9498
  exports.groupThreadActivity = groupThreadActivity;
10073
9499
  exports.humanizeSection = humanizeSection;
10074
9500
  exports.importMarkdownSkill = importMarkdownSkill;
10075
9501
  exports.importSkillFile = importSkillFile;
10076
9502
  exports.importSkillFromUrl = importSkillFromUrl;
10077
- exports.indexTasks = indexTasks;
10078
9503
  exports.inferType = inferType;
10079
9504
  exports.isMainSkillFile = isMainSkillFile;
10080
9505
  exports.isOutOfBounds = isOutOfBounds;
10081
- exports.isPlainTodo = isPlainTodo;
10082
9506
  exports.isValidAgentName = isValidAgentName;
10083
9507
  exports.labelInputName = labelInputName;
10084
9508
  exports.labelInputs = labelInputs;
10085
9509
  exports.labelRef = labelRef;
10086
9510
  exports.labelRefKey = labelRefKey;
10087
9511
  exports.matchRequiredLabels = matchRequiredLabels;
10088
- exports.moveTargets = moveTargets;
10089
9512
  exports.nextCriterionId = nextCriterionId;
10090
9513
  exports.openWorkflowLaunch = openWorkflowLaunch;
10091
- exports.ownerExtId = ownerExtId;
10092
9514
  exports.parseSkillFrontmatter = parseSkillFrontmatter;
10093
9515
  exports.prettifyKey = prettifyKey;
10094
9516
  exports.readSkillArchive = readSkillArchive;
@@ -10108,5 +9530,5 @@ exports.withLabelIds = withLabelIds;
10108
9530
  exports.withLabelInputs = withLabelInputs;
10109
9531
  exports.workflowFromSkillMarkdown = workflowFromSkillMarkdown;
10110
9532
  exports.workflowToSkillMarkdown = workflowToSkillMarkdown;
10111
- //# sourceMappingURL=chunk-CVVQHFLR.cjs.map
10112
- //# sourceMappingURL=chunk-CVVQHFLR.cjs.map
9533
+ //# sourceMappingURL=chunk-O7U6KL2W.cjs.map
9534
+ //# sourceMappingURL=chunk-O7U6KL2W.cjs.map