@arbidocs/blocks 0.5.166 → 0.5.167

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 (212) hide show
  1. package/dist/{CalendarGridImpl-ZUHFUWWA.cjs → CalendarGridImpl-2M6IPL4U.cjs} +19 -19
  2. package/dist/{CalendarGridImpl-ZUHFUWWA.cjs.map → CalendarGridImpl-2M6IPL4U.cjs.map} +1 -1
  3. package/dist/{ConnectedCallDock-RUBZWNBS.cjs → ConnectedCallDock-PFMK5OGR.cjs} +25 -25
  4. package/dist/{ConnectedCallDock-RUBZWNBS.cjs.map → ConnectedCallDock-PFMK5OGR.cjs.map} +1 -1
  5. package/dist/{ConnectedCallRoom-UE73GPNR.cjs → ConnectedCallRoom-VHU2XWLY.cjs} +18 -18
  6. package/dist/{ConnectedCallRoom-UE73GPNR.cjs.map → ConnectedCallRoom-VHU2XWLY.cjs.map} +1 -1
  7. package/dist/ConnectedMailInviteCard-S2X4XN3X.cjs +22 -0
  8. package/dist/{ConnectedMailInviteCard-HPOHLB72.cjs.map → ConnectedMailInviteCard-S2X4XN3X.cjs.map} +1 -1
  9. package/dist/{ConnectedNativeDocxComparison-P5TX46HD.cjs → ConnectedNativeDocxComparison-AOVH47RY.cjs} +17 -17
  10. package/dist/{ConnectedNativeDocxComparison-P5TX46HD.cjs.map → ConnectedNativeDocxComparison-AOVH47RY.cjs.map} +1 -1
  11. package/dist/{ConnectedPresentation-CQJB3BOB.cjs → ConnectedPresentation-PYTZBAOR.cjs} +20 -20
  12. package/dist/{ConnectedPresentation-CQJB3BOB.cjs.map → ConnectedPresentation-PYTZBAOR.cjs.map} +1 -1
  13. package/dist/{ConnectedProductionSetDialog-O5RX57PS.cjs → ConnectedProductionSetDialog-6ZGBUMOT.cjs} +5 -5
  14. package/dist/{ConnectedProductionSetDialog-O5RX57PS.cjs.map → ConnectedProductionSetDialog-6ZGBUMOT.cjs.map} +1 -1
  15. package/dist/{ConnectedSlidesTab-LEA5OW75.cjs → ConnectedSlidesTab-GT5TQPWW.cjs} +15 -15
  16. package/dist/{ConnectedSlidesTab-LEA5OW75.cjs.map → ConnectedSlidesTab-GT5TQPWW.cjs.map} +1 -1
  17. package/dist/{ConnectedStreamedWordArtifact-XO4ULCQO.cjs → ConnectedStreamedWordArtifact-2WBJZI2K.cjs} +17 -17
  18. package/dist/{ConnectedStreamedWordArtifact-XO4ULCQO.cjs.map → ConnectedStreamedWordArtifact-2WBJZI2K.cjs.map} +1 -1
  19. package/dist/{DocumentReviewCard-OHWZ6YI3.cjs → DocumentReviewCard-3E44O3F6.cjs} +16 -16
  20. package/dist/{DocumentReviewCard-OHWZ6YI3.cjs.map → DocumentReviewCard-3E44O3F6.cjs.map} +1 -1
  21. package/dist/{FilesViewerDialog-M6MRG2X7.cjs → FilesViewerDialog-JCW2SMBU.cjs} +46 -46
  22. package/dist/{FilesViewerDialog-M6MRG2X7.cjs.map → FilesViewerDialog-JCW2SMBU.cjs.map} +1 -1
  23. package/dist/{WorkspaceTableView-ZAN4C4IZ.cjs → WorkspaceTableView-ZKLEEPCF.cjs} +9 -9
  24. package/dist/{WorkspaceTableView-ZAN4C4IZ.cjs.map → WorkspaceTableView-ZKLEEPCF.cjs.map} +1 -1
  25. package/dist/agents/index.cjs +284 -284
  26. package/dist/agents/workflows/StepDocuments.d.ts +14 -1
  27. package/dist/agents/workflows/StepDocuments.js +23 -1
  28. package/dist/agents/workflows/StepDocuments.js.map +2 -2
  29. package/dist/{ai-AV4LQ5AW.cjs → ai-VXPILCGE.cjs} +29 -29
  30. package/dist/ai-VXPILCGE.cjs.map +1 -0
  31. package/dist/auth/index.cjs +12 -12
  32. package/dist/calendar/SchedulingAssistant.js +6 -1
  33. package/dist/calendar/SchedulingAssistant.js.map +2 -2
  34. package/dist/calendar/index.cjs +117 -117
  35. package/dist/calendar/labels.js +1 -0
  36. package/dist/calendar/labels.js.map +2 -2
  37. package/dist/calendar/types.d.ts +1 -0
  38. package/dist/calls/connected/CallPeoplePicker.d.ts +1 -1
  39. package/dist/calls/connected/CallPeoplePicker.js +4 -2
  40. package/dist/calls/connected/CallPeoplePicker.js.map +2 -2
  41. package/dist/calls/connected/ConnectedCallRoom.js +33 -2
  42. package/dist/calls/connected/ConnectedCallRoom.js.map +2 -2
  43. package/dist/calls/connected/DmCallButton.js +14 -6
  44. package/dist/calls/connected/DmCallButton.js.map +2 -2
  45. package/dist/calls/connected/call-people.d.ts +4 -2
  46. package/dist/calls/connected/call-people.js +4 -0
  47. package/dist/calls/connected/call-people.js.map +2 -2
  48. package/dist/calls/index.cjs +119 -119
  49. package/dist/chat/index.cjs +56 -56
  50. package/dist/{chunk-SXBQAMHV.cjs → chunk-2KGU5G6Z.cjs} +6 -6
  51. package/dist/chunk-2KGU5G6Z.cjs.map +1 -0
  52. package/dist/{chunk-W7XZKTDG.cjs → chunk-3K7V4LOF.cjs} +19 -10
  53. package/dist/chunk-3K7V4LOF.cjs.map +1 -0
  54. package/dist/{chunk-QD2XCNJH.cjs → chunk-4TJCJ74G.cjs} +54 -54
  55. package/dist/{chunk-QD2XCNJH.cjs.map → chunk-4TJCJ74G.cjs.map} +1 -1
  56. package/dist/{chunk-TKO24ZZ6.cjs → chunk-5PXK77RO.cjs} +4 -4
  57. package/dist/{chunk-TKO24ZZ6.cjs.map → chunk-5PXK77RO.cjs.map} +1 -1
  58. package/dist/{chunk-7QSZSGUQ.cjs → chunk-6CNK2C34.cjs} +6 -6
  59. package/dist/{chunk-7QSZSGUQ.cjs.map → chunk-6CNK2C34.cjs.map} +1 -1
  60. package/dist/{chunk-3QHVDOQT.cjs → chunk-6INJQAGS.cjs} +22 -22
  61. package/dist/{chunk-3QHVDOQT.cjs.map → chunk-6INJQAGS.cjs.map} +1 -1
  62. package/dist/{chunk-VDHBLDQC.cjs → chunk-6N7QT2DH.cjs} +3 -3
  63. package/dist/{chunk-VDHBLDQC.cjs.map → chunk-6N7QT2DH.cjs.map} +1 -1
  64. package/dist/{chunk-VNYMWFIT.cjs → chunk-6PKP7UT7.cjs} +8 -7
  65. package/dist/chunk-6PKP7UT7.cjs.map +1 -0
  66. package/dist/{chunk-VDT7TEAH.cjs → chunk-6ZJBUMNK.cjs} +3 -3
  67. package/dist/{chunk-VDT7TEAH.cjs.map → chunk-6ZJBUMNK.cjs.map} +1 -1
  68. package/dist/{chunk-3UCRJRNI.cjs → chunk-7NVDGD63.cjs} +3 -3
  69. package/dist/{chunk-3UCRJRNI.cjs.map → chunk-7NVDGD63.cjs.map} +1 -1
  70. package/dist/{chunk-JEHGTPS2.cjs → chunk-AHUEBRLX.cjs} +4 -4
  71. package/dist/{chunk-JEHGTPS2.cjs.map → chunk-AHUEBRLX.cjs.map} +1 -1
  72. package/dist/{chunk-5G33DATM.cjs → chunk-AKNZZGJ3.cjs} +36 -36
  73. package/dist/{chunk-5G33DATM.cjs.map → chunk-AKNZZGJ3.cjs.map} +1 -1
  74. package/dist/{chunk-5FSULBPE.cjs → chunk-B5AOYT4U.cjs} +3 -3
  75. package/dist/{chunk-5FSULBPE.cjs.map → chunk-B5AOYT4U.cjs.map} +1 -1
  76. package/dist/{chunk-3EIO4ZH5.cjs → chunk-BJRQHR7R.cjs} +6 -6
  77. package/dist/{chunk-3EIO4ZH5.cjs.map → chunk-BJRQHR7R.cjs.map} +1 -1
  78. package/dist/{chunk-ZKKSTMMI.cjs → chunk-DNHZYLPK.cjs} +3 -3
  79. package/dist/{chunk-ZKKSTMMI.cjs.map → chunk-DNHZYLPK.cjs.map} +1 -1
  80. package/dist/{chunk-LZGGR63X.cjs → chunk-DOBSQC2P.cjs} +4 -4
  81. package/dist/{chunk-LZGGR63X.cjs.map → chunk-DOBSQC2P.cjs.map} +1 -1
  82. package/dist/{chunk-N2SJR2Y7.cjs → chunk-E43TT6FH.cjs} +52 -52
  83. package/dist/{chunk-N2SJR2Y7.cjs.map → chunk-E43TT6FH.cjs.map} +1 -1
  84. package/dist/{chunk-LE4Z2UIG.cjs → chunk-EADZEEKI.cjs} +61 -61
  85. package/dist/{chunk-LE4Z2UIG.cjs.map → chunk-EADZEEKI.cjs.map} +1 -1
  86. package/dist/{chunk-6AFAYGJW.cjs → chunk-EG3DPKXM.cjs} +5 -5
  87. package/dist/{chunk-6AFAYGJW.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
  88. package/dist/{chunk-7OMRSZOJ.cjs → chunk-EXUCQ6KA.cjs} +28 -28
  89. package/dist/{chunk-7OMRSZOJ.cjs.map → chunk-EXUCQ6KA.cjs.map} +1 -1
  90. package/dist/{chunk-4M3OIBIS.cjs → chunk-FC6VMY2L.cjs} +49 -44
  91. package/dist/chunk-FC6VMY2L.cjs.map +1 -0
  92. package/dist/{chunk-6U3CYVZC.cjs → chunk-FUGQ7YQW.cjs} +3 -2
  93. package/dist/chunk-FUGQ7YQW.cjs.map +1 -0
  94. package/dist/{chunk-YTDVWIHU.cjs → chunk-GXIXNSBV.cjs} +146 -107
  95. package/dist/chunk-GXIXNSBV.cjs.map +1 -0
  96. package/dist/{chunk-SJPKXXB5.cjs → chunk-H2BUDSKT.cjs} +6 -6
  97. package/dist/{chunk-SJPKXXB5.cjs.map → chunk-H2BUDSKT.cjs.map} +1 -1
  98. package/dist/{chunk-CI777IPA.cjs → chunk-IJ4JKHEC.cjs} +18 -18
  99. package/dist/{chunk-CI777IPA.cjs.map → chunk-IJ4JKHEC.cjs.map} +1 -1
  100. package/dist/{chunk-OHWYQI3B.cjs → chunk-IPSR2PUU.cjs} +12 -12
  101. package/dist/{chunk-OHWYQI3B.cjs.map → chunk-IPSR2PUU.cjs.map} +1 -1
  102. package/dist/{chunk-PK5H5SVS.cjs → chunk-KBRDUFXG.cjs} +7 -7
  103. package/dist/{chunk-PK5H5SVS.cjs.map → chunk-KBRDUFXG.cjs.map} +1 -1
  104. package/dist/{chunk-SX6KL6UN.cjs → chunk-KTYJNF7R.cjs} +4 -4
  105. package/dist/{chunk-SX6KL6UN.cjs.map → chunk-KTYJNF7R.cjs.map} +1 -1
  106. package/dist/{chunk-WV3RNWAG.cjs → chunk-LG2IKM2G.cjs} +11 -11
  107. package/dist/{chunk-WV3RNWAG.cjs.map → chunk-LG2IKM2G.cjs.map} +1 -1
  108. package/dist/{chunk-ER2MRSLT.cjs → chunk-LJTHFTQQ.cjs} +3 -3
  109. package/dist/{chunk-ER2MRSLT.cjs.map → chunk-LJTHFTQQ.cjs.map} +1 -1
  110. package/dist/{chunk-7GVKG3G4.cjs → chunk-M3HYFFCK.cjs} +13 -13
  111. package/dist/{chunk-7GVKG3G4.cjs.map → chunk-M3HYFFCK.cjs.map} +1 -1
  112. package/dist/{chunk-ZLXTGHK3.cjs → chunk-NFVYHS3X.cjs} +85 -56
  113. package/dist/chunk-NFVYHS3X.cjs.map +1 -0
  114. package/dist/{chunk-7XR6CPCU.cjs → chunk-PIJPM5RA.cjs} +25 -3
  115. package/dist/chunk-PIJPM5RA.cjs.map +1 -0
  116. package/dist/{chunk-BNXWT3DX.cjs → chunk-PNZVCHFS.cjs} +8 -8
  117. package/dist/{chunk-BNXWT3DX.cjs.map → chunk-PNZVCHFS.cjs.map} +1 -1
  118. package/dist/{chunk-6DHDITKK.cjs → chunk-PP3KYFSS.cjs} +4 -4
  119. package/dist/{chunk-6DHDITKK.cjs.map → chunk-PP3KYFSS.cjs.map} +1 -1
  120. package/dist/{chunk-4RDXW7KP.cjs → chunk-QGCNYDHZ.cjs} +11 -11
  121. package/dist/{chunk-4RDXW7KP.cjs.map → chunk-QGCNYDHZ.cjs.map} +1 -1
  122. package/dist/{chunk-3DRBJGRR.cjs → chunk-SKQ5OMMF.cjs} +7 -7
  123. package/dist/{chunk-3DRBJGRR.cjs.map → chunk-SKQ5OMMF.cjs.map} +1 -1
  124. package/dist/{chunk-XKXKEVHH.cjs → chunk-TPYOXG5S.cjs} +6 -6
  125. package/dist/{chunk-XKXKEVHH.cjs.map → chunk-TPYOXG5S.cjs.map} +1 -1
  126. package/dist/{chunk-OIYKKUAN.cjs → chunk-TU46WKTN.cjs} +3 -3
  127. package/dist/{chunk-OIYKKUAN.cjs.map → chunk-TU46WKTN.cjs.map} +1 -1
  128. package/dist/{chunk-PYKTUGPE.cjs → chunk-U33XOC7T.cjs} +6 -6
  129. package/dist/{chunk-PYKTUGPE.cjs.map → chunk-U33XOC7T.cjs.map} +1 -1
  130. package/dist/{chunk-DI6UEQCZ.cjs → chunk-VHXGBVT6.cjs} +4 -4
  131. package/dist/{chunk-DI6UEQCZ.cjs.map → chunk-VHXGBVT6.cjs.map} +1 -1
  132. package/dist/{chunk-NAXF2KHT.cjs → chunk-VNUBBRJM.cjs} +6 -6
  133. package/dist/{chunk-NAXF2KHT.cjs.map → chunk-VNUBBRJM.cjs.map} +1 -1
  134. package/dist/{chunk-WGRXQ7PI.cjs → chunk-W6PTT27N.cjs} +17 -17
  135. package/dist/{chunk-WGRXQ7PI.cjs.map → chunk-W6PTT27N.cjs.map} +1 -1
  136. package/dist/{chunk-TLIZD6DV.cjs → chunk-W7TSEN3J.cjs} +6 -6
  137. package/dist/{chunk-TLIZD6DV.cjs.map → chunk-W7TSEN3J.cjs.map} +1 -1
  138. package/dist/{chunk-BCU65RJM.cjs → chunk-WQ2KG4LS.cjs} +3 -3
  139. package/dist/{chunk-BCU65RJM.cjs.map → chunk-WQ2KG4LS.cjs.map} +1 -1
  140. package/dist/{chunk-FUKN3PI5.cjs → chunk-WQQ6C2ML.cjs} +3 -3
  141. package/dist/{chunk-FUKN3PI5.cjs.map → chunk-WQQ6C2ML.cjs.map} +1 -1
  142. package/dist/{chunk-JFCTB5YI.cjs → chunk-XGMA7ITI.cjs} +6 -6
  143. package/dist/{chunk-JFCTB5YI.cjs.map → chunk-XGMA7ITI.cjs.map} +1 -1
  144. package/dist/{chunk-NFXHBTAO.cjs → chunk-XKOIHIVQ.cjs} +4 -4
  145. package/dist/{chunk-NFXHBTAO.cjs.map → chunk-XKOIHIVQ.cjs.map} +1 -1
  146. package/dist/{chunk-AG5XZ3AM.cjs → chunk-Y4OTUJGD.cjs} +11 -11
  147. package/dist/{chunk-AG5XZ3AM.cjs.map → chunk-Y4OTUJGD.cjs.map} +1 -1
  148. package/dist/{chunk-HH5MKRBL.cjs → chunk-ZSZI576U.cjs} +7 -7
  149. package/dist/{chunk-HH5MKRBL.cjs.map → chunk-ZSZI576U.cjs.map} +1 -1
  150. package/dist/connect/docx.cjs +20 -20
  151. package/dist/connect/index.cjs +1355 -1322
  152. package/dist/connect/index.cjs.map +1 -1
  153. package/dist/connect/viewer.cjs +34 -34
  154. package/dist/connection/ConnectedAgentChatPanel.js +5 -5
  155. package/dist/connection/ConnectedAgentChatPanel.js.map +2 -2
  156. package/dist/connection/calendar/ConnectedCalendar.js +4 -2
  157. package/dist/connection/calendar/ConnectedCalendar.js.map +2 -2
  158. package/dist/connection/calendar/EventScheduling.js +29 -4
  159. package/dist/connection/calendar/EventScheduling.js.map +2 -2
  160. package/dist/connection/conversation/AgentControlBar.js +2 -2
  161. package/dist/connection/conversation/AgentControlBar.js.map +2 -2
  162. package/dist/connection/conversation/AnswerTable.js +19 -2
  163. package/dist/connection/conversation/AnswerTable.js.map +2 -2
  164. package/dist/connection/conversation/ConversationComposer.js +29 -7
  165. package/dist/connection/conversation/ConversationComposer.js.map +2 -2
  166. package/dist/connection/files/fields/fields-manager-panel.d.ts +1 -1
  167. package/dist/connection/files/fields/fields-manager-panel.js +1 -1
  168. package/dist/connection/files/fields/fields-manager-panel.js.map +2 -2
  169. package/dist/connection/files/upload/useAddFromUrls.d.ts +1 -1
  170. package/dist/connection/files/upload/useAddFromUrls.js +1 -1
  171. package/dist/connection/files/upload/useAddFromUrls.js.map +1 -1
  172. package/dist/connection/messenger/full-variant.js +1 -1
  173. package/dist/connection/messenger/full-variant.js.map +2 -2
  174. package/dist/connection/panels/ConnectedPanelHost.js +3 -2
  175. package/dist/connection/panels/ConnectedPanelHost.js.map +2 -2
  176. package/dist/connection/report-problem/CaptureBar.d.ts +4 -5
  177. package/dist/connection/report-problem/CaptureBar.js +56 -13
  178. package/dist/connection/report-problem/CaptureBar.js.map +2 -2
  179. package/dist/connection/report-problem/ReportProblemDialog.js +3 -2
  180. package/dist/connection/report-problem/ReportProblemDialog.js.map +2 -2
  181. package/dist/connection/report-problem/SupportVideoEvidence.js +22 -49
  182. package/dist/connection/report-problem/SupportVideoEvidence.js.map +2 -2
  183. package/dist/connection/report-problem/useReportProblem.js +11 -23
  184. package/dist/connection/report-problem/useReportProblem.js.map +2 -2
  185. package/dist/connection/report-problem/useSupportVideo.d.ts +2 -0
  186. package/dist/connection/report-problem/useSupportVideo.js +1 -0
  187. package/dist/connection/report-problem/useSupportVideo.js.map +2 -2
  188. package/dist/dashboards/index.cjs +1 -1
  189. package/dist/embed/index.cjs +39 -39
  190. package/dist/facts/index.cjs +44 -44
  191. package/dist/files/index.cjs +228 -228
  192. package/dist/index.cjs +1588 -1588
  193. package/dist/pages/index.cjs +30 -30
  194. package/dist/settings/index.cjs +138 -138
  195. package/dist/shell/PanelPortal.js +4 -4
  196. package/dist/shell/PanelPortal.js.map +2 -2
  197. package/dist/shell/index.cjs +84 -84
  198. package/dist/studio/index.cjs +28 -28
  199. package/dist/styles.css +1 -1
  200. package/dist/workflow-canvas/index.cjs +65 -65
  201. package/node_modules/@arbidocs/coedit/package.json +1 -1
  202. package/package.json +5 -5
  203. package/dist/ConnectedMailInviteCard-HPOHLB72.cjs +0 -22
  204. package/dist/ai-AV4LQ5AW.cjs.map +0 -1
  205. package/dist/chunk-4M3OIBIS.cjs.map +0 -1
  206. package/dist/chunk-6U3CYVZC.cjs.map +0 -1
  207. package/dist/chunk-7XR6CPCU.cjs.map +0 -1
  208. package/dist/chunk-SXBQAMHV.cjs.map +0 -1
  209. package/dist/chunk-VNYMWFIT.cjs.map +0 -1
  210. package/dist/chunk-W7XZKTDG.cjs.map +0 -1
  211. package/dist/chunk-YTDVWIHU.cjs.map +0 -1
  212. package/dist/chunk-ZLXTGHK3.cjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkOHWYQI3B_cjs = require('./chunk-OHWYQI3B.cjs');
5
- var chunkER2MRSLT_cjs = require('./chunk-ER2MRSLT.cjs');
6
- var chunk5F4DCIHS_cjs = require('./chunk-5F4DCIHS.cjs');
4
+ var chunkIPSR2PUU_cjs = require('./chunk-IPSR2PUU.cjs');
5
+ var chunkLJTHFTQQ_cjs = require('./chunk-LJTHFTQQ.cjs');
7
6
  var chunkM55XUF4L_cjs = require('./chunk-M55XUF4L.cjs');
7
+ var chunk5F4DCIHS_cjs = require('./chunk-5F4DCIHS.cjs');
8
8
  var chunkSQCCQU3K_cjs = require('./chunk-SQCCQU3K.cjs');
9
9
  var react$1 = require('react');
10
10
  var react = require('@arbidocs/react');
@@ -19,7 +19,7 @@ function canOpenSkill(workflow, skillsEnabled) {
19
19
  return workflow.run.kind === "prompt" && (skillsEnabled || chunkM55XUF4L_cjs.isSkillPackWorkflow(workflow));
20
20
  }
21
21
  function useSlashSkillWorkflows({ landing, send }) {
22
- const { skills, skillsEnabled } = chunkER2MRSLT_cjs.useWorkflowDefinitions();
22
+ const { skills, skillsEnabled } = chunkLJTHFTQQ_cjs.useWorkflowDefinitions();
23
23
  const { commands } = react.useBuiltinCommands();
24
24
  const [active, setActive] = react$1.useState(null);
25
25
  const open = react$1.useCallback(
@@ -67,7 +67,7 @@ function useSlashSkillWorkflows({ landing, send }) {
67
67
  return field && active.text ? { [field]: active.text } : void 0;
68
68
  };
69
69
  return /* @__PURE__ */ jsxRuntime.jsx(
70
- chunkOHWYQI3B_cjs.ConnectedWorkflowStart,
70
+ chunkIPSR2PUU_cjs.ConnectedWorkflowStart,
71
71
  {
72
72
  workflows: skills,
73
73
  showTiles: false,
@@ -83,11 +83,11 @@ function useSlashSkillWorkflows({ landing, send }) {
83
83
  }
84
84
  var NO_SKILLS = [];
85
85
  function useSlashMenuItems(builtinSkills = NO_SKILLS) {
86
- const hostSkills = chunkER2MRSLT_cjs.useHostSkills();
87
- const listings = chunkER2MRSLT_cjs.useUsableSkillListings(hostSkills);
88
- const skillsEnabled = chunkER2MRSLT_cjs.useSkillsEnabled();
86
+ const hostSkills = chunkLJTHFTQQ_cjs.useHostSkills();
87
+ const listings = chunkLJTHFTQQ_cjs.useUsableSkillListings(hostSkills);
88
+ const skillsEnabled = chunkLJTHFTQQ_cjs.useSkillsEnabled();
89
89
  const { commands } = react.useBuiltinCommands();
90
- const builtins = chunkER2MRSLT_cjs.useNamedWorkflows(builtinSkills);
90
+ const builtins = chunkLJTHFTQQ_cjs.useNamedWorkflows(builtinSkills);
91
91
  const items = react$1.useMemo(() => {
92
92
  const packSlugs = new Set(hostSkills.map((w) => w.id));
93
93
  return chunk5F4DCIHS_cjs.buildSlashItems(
@@ -98,7 +98,7 @@ function useSlashMenuItems(builtinSkills = NO_SKILLS) {
98
98
  kind: "command"
99
99
  })),
100
100
  [
101
- ...hostSkills.map(chunkER2MRSLT_cjs.hostSkillItem),
101
+ ...hostSkills.map(chunkLJTHFTQQ_cjs.hostSkillItem),
102
102
  ...skillsEnabled ? skillItems(
103
103
  builtins.filter((w) => !packSlugs.has(w.id)),
104
104
  listings
@@ -106,7 +106,7 @@ function useSlashMenuItems(builtinSkills = NO_SKILLS) {
106
106
  ]
107
107
  );
108
108
  }, [commands, hostSkills, listings, skillsEnabled, builtins]);
109
- return { items, canBrowseSkills: chunkER2MRSLT_cjs.useCanBrowseSkills() };
109
+ return { items, canBrowseSkills: chunkLJTHFTQQ_cjs.useCanBrowseSkills() };
110
110
  }
111
111
  function useSlashItems(text, builtinSkills = NO_SKILLS) {
112
112
  const { items, canBrowseSkills } = useSlashMenuItems(builtinSkills);
@@ -150,5 +150,5 @@ exports.parseTypedSkill = parseTypedSkill;
150
150
  exports.useSlashItems = useSlashItems;
151
151
  exports.useSlashMenuItems = useSlashMenuItems;
152
152
  exports.useSlashSkillWorkflows = useSlashSkillWorkflows;
153
- //# sourceMappingURL=chunk-7GVKG3G4.cjs.map
154
- //# sourceMappingURL=chunk-7GVKG3G4.cjs.map
153
+ //# sourceMappingURL=chunk-M3HYFFCK.cjs.map
154
+ //# sourceMappingURL=chunk-M3HYFFCK.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/connection/workflows/useSlashSkillWorkflows.tsx","../src/connection/conversation/useSlashItems.ts"],"names":["isSkillPackWorkflow","useWorkflowDefinitions","useBuiltinCommands","useState","useCallback","useMemo","promptFieldName","jsx","ConnectedWorkflowStart","useHostSkills","useUsableSkillListings","useSkillsEnabled","useNamedWorkflows","buildSlashItems","hostSkillItem","useCanBrowseSkills","parseSlashTokenInProgress","filterSlashItems","mergeSkillWorkflows"],"mappings":";;;;;;;;;;;AAiCA,IAAM,WAAA,GAAc,qDAAA;AAGb,SAAS,gBAAgB,KAAA,EAAsD;AACpF,EAAA,MAAM,CAAA,GAAI,WAAA,CAAY,IAAA,CAAK,KAAK,CAAA;AAChC,EAAA,OAAO,CAAA,GAAI,EAAE,IAAA,EAAM,CAAA,CAAE,CAAC,CAAA,CAAE,WAAA,EAAY,EAAG,IAAA,EAAA,CAAO,EAAE,CAAC,CAAA,IAAK,EAAA,EAAI,IAAA,IAAO,GAAI,IAAA;AACvE;AAMO,SAAS,YAAA,CAAa,UAA8B,aAAA,EAAiC;AAC1F,EAAA,OAAO,SAAS,GAAA,CAAI,IAAA,KAAS,QAAA,KAAa,aAAA,IAAiBA,sCAAoB,QAAQ,CAAA,CAAA;AACzF;AAQO,SAAS,sBAAA,CAAuB,EAAE,OAAA,EAAS,IAAA,EAAK,EAiBrD;AACA,EAAA,MAAM,EAAE,MAAA,EAAQ,aAAA,EAAc,GAAIC,wCAAA,EAAuB;AACzD,EAAA,MAAM,EAAE,QAAA,EAAS,GAAIC,wBAAA,EAAmB;AACxC,EAAA,MAAM,CAAC,MAAA,EAAQ,SAAS,CAAA,GAAIC,iBAA8C,IAAI,CAAA;AAG9E,EAAA,MAAM,IAAA,GAAOC,mBAAA;AAAA,IACX,CAAC,UAA0C,IAAA,KAA0B;AACnE,M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","file":"chunk-7GVKG3G4.cjs","sourcesContent":["/**\n * Slash skills are launched prompt-first, through the one workflow launcher.\n *\n * A skill (or a prompt-style built-in such as Deep research) is run WITH a prompt, so it never\n * just executes:\n * - picking it in the slash menu opens its form (the prompt field first, focused, required);\n * - typing `/slug` and pressing Enter opens the same form with the field empty;\n * - typing `/slug some text` and pressing Enter opens it with the text already in the field.\n * The rule is the same for any recognised skill slug as the FIRST token of the draft; a backend\n * command (`/goal`, `/compact`, ...) is never a skill and is sent as typed. Nothing is sent from\n * the composer until the user starts it in the form. Without skills enabled (`show_skills`) this\n * applies to the host's skill packs only (`host.workflows.skillPacks`): the menu lists no other\n * skills and any other `/text` is sent as typed.\n *\n * The run lands where the surface says (`landing`), through the one launch handler. A chat that\n * is not the session's conversation (`ChatPage`, the document ask) passes `send`: the composed\n * prompt then goes to its own send, as a typed message would.\n */\n\nimport { useCallback, useMemo, useState, type ReactNode } from 'react'\nimport { promptFieldName } from '../../agents/workflows/workflow'\nimport { isSkillPackWorkflow } from '../../agents/workflows/skillPack'\nimport { type SlashMenuItem } from '../../chat/SlashMenu'\nimport {\n type WorkflowDefinition,\n type WorkflowInputs,\n type WorkflowLanding,\n} from '../../agents/workflows/types'\nimport { useBuiltinCommands } from '@arbidocs/react'\nimport { ConnectedWorkflowStart } from './ConnectedWorkflowStart'\nimport { useWorkflowDefinitions } from './useWorkflowDefinitions'\n\n/** `/slug` or `/slug rest of the line`: the first token and the text after it. */\nconst TYPED_SKILL = /^\\s*\\/([a-zA-Z0-9][a-zA-Z0-9_-]*)(?:\\s+([\\s\\S]*))?$/\n\n/** What the typed draft names: its slug (lower-cased) and the text after it (trimmed). */\nexport function parseTypedSkill(draft: string): { slug: string; text: string } | null {\n const m = TYPED_SKILL.exec(draft)\n return m ? { slug: m[1].toLowerCase(), text: (m[2] ?? '').trim() } : null\n}\n\n/**\n * Whether a skill opens its form from a menu (the `/` menus, the command palette): a prompt skill,\n * and with skills switched off (`show_skills`) only the host's packs. The one gate both share.\n */\nexport function canOpenSkill(workflow: WorkflowDefinition, skillsEnabled: boolean): boolean {\n return workflow.run.kind === 'prompt' && (skillsEnabled || isSkillPackWorkflow(workflow))\n}\n\nexport interface UseSlashSkillWorkflowsOptions {\n landing: WorkflowLanding\n /** Where the composed prompt goes, for a chat that is not the session's conversation. */\n send?: (prompt: string) => void\n}\n\nexport function useSlashSkillWorkflows({ landing, send }: UseSlashSkillWorkflowsOptions): {\n /** Opens the launcher for a picked menu item. True when it did (the caller then clears the draft). */\n openFor: (item: SlashMenuItem) => boolean\n /**\n * Opens the launcher for a typed `/slug text` draft, text pre-filled. True when the draft names\n * a skill (the caller then clears the draft and sends nothing).\n */\n openForDraft: (draft: string) => boolean\n /**\n * Opens the launcher for a skill by id (a surface listing the skills itself, the command\n * palette). True when it is a skill this person may run here.\n */\n openSkill: (id: string) => boolean\n /** The skills this person may open here: the host's packs, and the rest with `show_skills`. */\n openable: WorkflowDefinition[]\n /** Render once, anywhere in the surface that hosts the slash menu. */\n launcher: ReactNode\n} {\n const { skills, skillsEnabled } = useWorkflowDefinitions()\n const { commands } = useBuiltinCommands()\n const [active, setActive] = useState<{ id: string; text: string } | null>(null)\n\n // Stable while the lists are, so a surface can memoise what it builds on them.\n const open = useCallback(\n (workflow: WorkflowDefinition | undefined, text: string): boolean => {\n if (!workflow || !canOpenSkill(workflow, skillsEnabled)) return false\n setActive({ id: workflow.id, text })\n return true\n },\n [skillsEnabled]\n )\n\n const openFor = useCallback(\n (item: SlashMenuItem): boolean =>\n item.kind === 'skill' &&\n open(\n skills.find((w) => w.id === item.name),\n ''\n ),\n [open, skills]\n )\n\n const openSkill = useCallback(\n (id: string): boolean =>\n open(\n skills.find((w) => w.id === id),\n ''\n ),\n [open, skills]\n )\n\n const openable = useMemo(\n () => skills.filter((w) => canOpenSkill(w, skillsEnabled)),\n [skills, skillsEnabled]\n )\n\n const openForDraft = useCallback(\n (draft: string): boolean => {\n const typed = parseTypedSkill(draft)\n if (!typed) return false\n // A backend command wins a name collision, as in the menu: it is sent as typed.\n if (commands.some((c) => c.name.toLowerCase() === typed.slug)) return false\n return open(\n skills.find((w) => w.id.toLowerCase() === typed.slug),\n typed.text\n )\n },\n [open, skills, commands]\n )\n\n // Mounted only while a workflow is open: the ask bar lives in every page's topbar, so the\n // launcher's data hooks (files, agents, tasks) must not run until it is needed.\n const launcher = useMemo(() => {\n if (active === null) return null\n const initialInputsFor = (\n workflow: WorkflowDefinition\n ): Partial<WorkflowInputs> | undefined => {\n const field = promptFieldName(workflow)\n return field && active.text ? { [field]: active.text } : undefined\n }\n return (\n <ConnectedWorkflowStart\n workflows={skills}\n showTiles={false}\n landing={landing}\n send={send}\n activeId={active.id}\n onActiveIdChange={(id) => id === null && setActive(null)}\n initialInputsFor={initialInputsFor}\n />\n )\n }, [active, skills, landing, send])\n\n return { openFor, openForDraft, openSkill, openable, launcher }\n}\n","/**\n * The slash menu's data, in one place for every surface that hosts it (the chat composers, the\n * workspace ask bar, the document ask and `ChatPage`): the backend's built-in commands, the host's\n * skill packs and the user's skills, filtered by the slash token in progress. Commands and the\n * user's skills are typed `/<slug>` and dispatched by the backend; a skill opens its form\n * (`useSlashSkillWorkflows`).\n */\n\nimport { useMemo } from 'react'\nimport { useBuiltinCommands } from '@arbidocs/react'\nimport type { SlashMenuItem } from '../../chat/SlashMenu'\nimport { buildSlashItems, filterSlashItems, parseSlashToken } from '../../chat/slash-menu-helpers'\nimport { mergeSkillWorkflows } from '../../agents/workflows/workflow'\nimport type { WorkflowDefinition } from '../../agents/workflows/types'\nimport { useCanBrowseSkills, useSkillsEnabled } from '../workflows/useSkillsEnabled'\nimport { hostSkillItem, useHostSkills } from '../workflows/useHostSkills'\nimport { useUsableSkillListings } from '../workflows/useWorkflowDefinitions'\nimport { useNamedWorkflows } from '../workflows/useNamedWorkflows'\n\nconst NO_SKILLS: ReadonlyArray<WorkflowDefinition> = []\n\n/**\n * Every row of the menu, unfiltered: commands, then the host's packs (always: the host offers\n * them), then, for skills users (`show_skills`), the built-in skills and the user's own.\n *\n * @param builtinSkills The built-in skills to offer (prompt workflows offered as `/slug`), for a\n * surface that can open their form; default none.\n */\nexport function useSlashMenuItems(builtinSkills: ReadonlyArray<WorkflowDefinition> = NO_SKILLS): {\n items: SlashMenuItem[]\n /** The menu's \"Browse all\" footer opens the Skills browser: skills users, never guests. */\n canBrowseSkills: boolean\n} {\n const hostSkills = useHostSkills()\n const listings = useUsableSkillListings(hostSkills)\n const skillsEnabled = useSkillsEnabled()\n const { commands } = useBuiltinCommands()\n const builtins = useNamedWorkflows(builtinSkills)\n const items = useMemo<SlashMenuItem[]>(() => {\n const packSlugs = new Set(hostSkills.map((w) => w.id))\n return buildSlashItems(\n commands.map((c) => ({\n name: c.name,\n description: c.description,\n argHint: c.arg_hint,\n kind: 'command' as const,\n })),\n [\n ...hostSkills.map(hostSkillItem),\n ...(skillsEnabled\n ? skillItems(\n builtins.filter((w) => !packSlugs.has(w.id)),\n listings\n )\n : []),\n ]\n )\n }, [commands, hostSkills, listings, skillsEnabled, builtins])\n return { items, canBrowseSkills: useCanBrowseSkills() }\n}\n\n/**\n * @param text The draft.\n * @param builtinSkills The built-in skills (prompt workflows offered as `/slug`).\n */\nexport function useSlashItems(\n text: string,\n builtinSkills: ReadonlyArray<WorkflowDefinition> = NO_SKILLS\n) {\n const { items, canBrowseSkills } = useSlashMenuItems(builtinSkills)\n const slashToken = parseSlashToken(text)\n const filteredItems = useMemo(\n () => (slashToken !== null ? filterSlashItems(items, slashToken) : []),\n [items, slashToken]\n )\n return {\n slashToken,\n filteredItems,\n isOpen: slashToken !== null && filteredItems.length > 0,\n canBrowseSkills,\n }\n}\n\ntype SkillListings = ReturnType<typeof useUsableSkillListings>\n\n/**\n * Built-in skills share the list and the `/slug` path; a same-slug skill of the user's own shadows\n * the built-in, as on the backend.\n */\nfunction skillItems(\n builtinSkills: ReadonlyArray<WorkflowDefinition>,\n listings: SkillListings\n): SlashMenuItem[] {\n const { host, skills } = mergeSkillWorkflows([...builtinSkills], listings)\n const listing = new Map(listings.map((s) => [s.slug, s]))\n return [\n ...host.map((w): SlashMenuItem => ({\n name: w.id,\n description: w.description,\n argHint: w.inputs[0]?.label ?? '',\n visibility: 'global',\n kind: 'skill',\n })),\n ...skills.map((w): SlashMenuItem => {\n const s = listing.get(w.id)\n return {\n name: w.id,\n description: s?.description || (w.title !== w.id ? w.title : ''),\n argHint: s?.arg_hint ?? '',\n visibility: s?.visibility === 'global' ? 'global' : 'mine',\n kind: 'skill',\n }\n }),\n ]\n}\n"]}
1
+ {"version":3,"sources":["../src/connection/workflows/useSlashSkillWorkflows.tsx","../src/connection/conversation/useSlashItems.ts"],"names":["isSkillPackWorkflow","useWorkflowDefinitions","useBuiltinCommands","useState","useCallback","useMemo","promptFieldName","jsx","ConnectedWorkflowStart","useHostSkills","useUsableSkillListings","useSkillsEnabled","useNamedWorkflows","buildSlashItems","hostSkillItem","useCanBrowseSkills","parseSlashTokenInProgress","filterSlashItems","mergeSkillWorkflows"],"mappings":";;;;;;;;;;;AAiCA,IAAM,WAAA,GAAc,qDAAA;AAGb,SAAS,gBAAgB,KAAA,EAAsD;AACpF,EAAA,MAAM,CAAA,GAAI,WAAA,CAAY,IAAA,CAAK,KAAK,CAAA;AAChC,EAAA,OAAO,CAAA,GAAI,EAAE,IAAA,EAAM,CAAA,CAAE,CAAC,CAAA,CAAE,WAAA,EAAY,EAAG,IAAA,EAAA,CAAO,EAAE,CAAC,CAAA,IAAK,EAAA,EAAI,IAAA,IAAO,GAAI,IAAA;AACvE;AAMO,SAAS,YAAA,CAAa,UAA8B,aAAA,EAAiC;AAC1F,EAAA,OAAO,SAAS,GAAA,CAAI,IAAA,KAAS,QAAA,KAAa,aAAA,IAAiBA,sCAAoB,QAAQ,CAAA,CAAA;AACzF;AAQO,SAAS,sBAAA,CAAuB,EAAE,OAAA,EAAS,IAAA,EAAK,EAiBrD;AACA,EAAA,MAAM,EAAE,MAAA,EAAQ,aAAA,EAAc,GAAIC,wCAAA,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,EAAE,KAAA,GAAQ,EAAA,CAAA;AAAA,QAC7D,OAAA,EAAS,GAAG,QAAA,IAAY,EAAA;AAAA,QACxB,UAAA,EAAY,CAAA,EAAG,UAAA,KAAe,QAAA,GAAW,QAAA,GAAW,MAAA;AAAA,QACpD,IAAA,EAAM;AAAA,OACR;AAAA,IACF,CAAC;AAAA,GACH;AACF","file":"chunk-M3HYFFCK.cjs","sourcesContent":["/**\n * Slash skills are launched prompt-first, through the one workflow launcher.\n *\n * A skill (or a prompt-style built-in such as Deep research) is run WITH a prompt, so it never\n * just executes:\n * - picking it in the slash menu opens its form (the prompt field first, focused, required);\n * - typing `/slug` and pressing Enter opens the same form with the field empty;\n * - typing `/slug some text` and pressing Enter opens it with the text already in the field.\n * The rule is the same for any recognised skill slug as the FIRST token of the draft; a backend\n * command (`/goal`, `/compact`, ...) is never a skill and is sent as typed. Nothing is sent from\n * the composer until the user starts it in the form. Without skills enabled (`show_skills`) this\n * applies to the host's skill packs only (`host.workflows.skillPacks`): the menu lists no other\n * skills and any other `/text` is sent as typed.\n *\n * The run lands where the surface says (`landing`), through the one launch handler. A chat that\n * is not the session's conversation (`ChatPage`, the document ask) passes `send`: the composed\n * prompt then goes to its own send, as a typed message would.\n */\n\nimport { useCallback, useMemo, useState, type ReactNode } from 'react'\nimport { promptFieldName } from '../../agents/workflows/workflow'\nimport { isSkillPackWorkflow } from '../../agents/workflows/skillPack'\nimport { type SlashMenuItem } from '../../chat/SlashMenu'\nimport {\n type WorkflowDefinition,\n type WorkflowInputs,\n type WorkflowLanding,\n} from '../../agents/workflows/types'\nimport { useBuiltinCommands } from '@arbidocs/react'\nimport { ConnectedWorkflowStart } from './ConnectedWorkflowStart'\nimport { useWorkflowDefinitions } from './useWorkflowDefinitions'\n\n/** `/slug` or `/slug rest of the line`: the first token and the text after it. */\nconst TYPED_SKILL = /^\\s*\\/([a-zA-Z0-9][a-zA-Z0-9_-]*)(?:\\s+([\\s\\S]*))?$/\n\n/** What the typed draft names: its slug (lower-cased) and the text after it (trimmed). */\nexport function parseTypedSkill(draft: string): { slug: string; text: string } | null {\n const m = TYPED_SKILL.exec(draft)\n return m ? { slug: m[1].toLowerCase(), text: (m[2] ?? '').trim() } : null\n}\n\n/**\n * Whether a skill opens its form from a menu (the `/` menus, the command palette): a prompt skill,\n * and with skills switched off (`show_skills`) only the host's packs. The one gate both share.\n */\nexport function canOpenSkill(workflow: WorkflowDefinition, skillsEnabled: boolean): boolean {\n return workflow.run.kind === 'prompt' && (skillsEnabled || isSkillPackWorkflow(workflow))\n}\n\nexport interface UseSlashSkillWorkflowsOptions {\n landing: WorkflowLanding\n /** Where the composed prompt goes, for a chat that is not the session's conversation. */\n send?: (prompt: string) => void\n}\n\nexport function useSlashSkillWorkflows({ landing, send }: UseSlashSkillWorkflowsOptions): {\n /** Opens the launcher for a picked menu item. True when it did (the caller then clears the draft). */\n openFor: (item: SlashMenuItem) => boolean\n /**\n * Opens the launcher for a typed `/slug text` draft, text pre-filled. True when the draft names\n * a skill (the caller then clears the draft and sends nothing).\n */\n openForDraft: (draft: string) => boolean\n /**\n * Opens the launcher for a skill by id (a surface listing the skills itself, the command\n * palette). True when it is a skill this person may run here.\n */\n openSkill: (id: string) => boolean\n /** The skills this person may open here: the host's packs, and the rest with `show_skills`. */\n openable: WorkflowDefinition[]\n /** Render once, anywhere in the surface that hosts the slash menu. */\n launcher: ReactNode\n} {\n const { skills, skillsEnabled } = useWorkflowDefinitions()\n const { commands } = useBuiltinCommands()\n const [active, setActive] = useState<{ id: string; text: string } | null>(null)\n\n // Stable while the lists are, so a surface can memoise what it builds on them.\n const open = useCallback(\n (workflow: WorkflowDefinition | undefined, text: string): boolean => {\n if (!workflow || !canOpenSkill(workflow, skillsEnabled)) return false\n setActive({ id: workflow.id, text })\n return true\n },\n [skillsEnabled]\n )\n\n const openFor = useCallback(\n (item: SlashMenuItem): boolean =>\n item.kind === 'skill' &&\n open(\n skills.find((w) => w.id === item.name),\n ''\n ),\n [open, skills]\n )\n\n const openSkill = useCallback(\n (id: string): boolean =>\n open(\n skills.find((w) => w.id === id),\n ''\n ),\n [open, skills]\n )\n\n const openable = useMemo(\n () => skills.filter((w) => canOpenSkill(w, skillsEnabled)),\n [skills, skillsEnabled]\n )\n\n const openForDraft = useCallback(\n (draft: string): boolean => {\n const typed = parseTypedSkill(draft)\n if (!typed) return false\n // A backend command wins a name collision, as in the menu: it is sent as typed.\n if (commands.some((c) => c.name.toLowerCase() === typed.slug)) return false\n return open(\n skills.find((w) => w.id.toLowerCase() === typed.slug),\n typed.text\n )\n },\n [open, skills, commands]\n )\n\n // Mounted only while a workflow is open: the ask bar lives in every page's topbar, so the\n // launcher's data hooks (files, agents, tasks) must not run until it is needed.\n const launcher = useMemo(() => {\n if (active === null) return null\n const initialInputsFor = (\n workflow: WorkflowDefinition\n ): Partial<WorkflowInputs> | undefined => {\n const field = promptFieldName(workflow)\n return field && active.text ? { [field]: active.text } : undefined\n }\n return (\n <ConnectedWorkflowStart\n workflows={skills}\n showTiles={false}\n landing={landing}\n send={send}\n activeId={active.id}\n onActiveIdChange={(id) => id === null && setActive(null)}\n initialInputsFor={initialInputsFor}\n />\n )\n }, [active, skills, landing, send])\n\n return { openFor, openForDraft, openSkill, openable, launcher }\n}\n","/**\n * The slash menu's data, in one place for every surface that hosts it (the chat composers, the\n * workspace ask bar, the document ask and `ChatPage`): the backend's built-in commands, the host's\n * skill packs and the user's skills, filtered by the slash token in progress. Commands and the\n * user's skills are typed `/<slug>` and dispatched by the backend; a skill opens its form\n * (`useSlashSkillWorkflows`).\n */\n\nimport { useMemo } from 'react'\nimport { useBuiltinCommands } from '@arbidocs/react'\nimport type { SlashMenuItem } from '../../chat/SlashMenu'\nimport { buildSlashItems, filterSlashItems, parseSlashToken } from '../../chat/slash-menu-helpers'\nimport { mergeSkillWorkflows } from '../../agents/workflows/workflow'\nimport type { WorkflowDefinition } from '../../agents/workflows/types'\nimport { useCanBrowseSkills, useSkillsEnabled } from '../workflows/useSkillsEnabled'\nimport { hostSkillItem, useHostSkills } from '../workflows/useHostSkills'\nimport { useUsableSkillListings } from '../workflows/useWorkflowDefinitions'\nimport { useNamedWorkflows } from '../workflows/useNamedWorkflows'\n\nconst NO_SKILLS: ReadonlyArray<WorkflowDefinition> = []\n\n/**\n * Every row of the menu, unfiltered: commands, then the host's packs (always: the host offers\n * them), then, for skills users (`show_skills`), the built-in skills and the user's own.\n *\n * @param builtinSkills The built-in skills to offer (prompt workflows offered as `/slug`), for a\n * surface that can open their form; default none.\n */\nexport function useSlashMenuItems(builtinSkills: ReadonlyArray<WorkflowDefinition> = NO_SKILLS): {\n items: SlashMenuItem[]\n /** The menu's \"Browse all\" footer opens the Skills browser: skills users, never guests. */\n canBrowseSkills: boolean\n} {\n const hostSkills = useHostSkills()\n const listings = useUsableSkillListings(hostSkills)\n const skillsEnabled = useSkillsEnabled()\n const { commands } = useBuiltinCommands()\n const builtins = useNamedWorkflows(builtinSkills)\n const items = useMemo<SlashMenuItem[]>(() => {\n const packSlugs = new Set(hostSkills.map((w) => w.id))\n return buildSlashItems(\n commands.map((c) => ({\n name: c.name,\n description: c.description,\n argHint: c.arg_hint,\n kind: 'command' as const,\n })),\n [\n ...hostSkills.map(hostSkillItem),\n ...(skillsEnabled\n ? skillItems(\n builtins.filter((w) => !packSlugs.has(w.id)),\n listings\n )\n : []),\n ]\n )\n }, [commands, hostSkills, listings, skillsEnabled, builtins])\n return { items, canBrowseSkills: useCanBrowseSkills() }\n}\n\n/**\n * @param text The draft.\n * @param builtinSkills The built-in skills (prompt workflows offered as `/slug`).\n */\nexport function useSlashItems(\n text: string,\n builtinSkills: ReadonlyArray<WorkflowDefinition> = NO_SKILLS\n) {\n const { items, canBrowseSkills } = useSlashMenuItems(builtinSkills)\n const slashToken = parseSlashToken(text)\n const filteredItems = useMemo(\n () => (slashToken !== null ? filterSlashItems(items, slashToken) : []),\n [items, slashToken]\n )\n return {\n slashToken,\n filteredItems,\n isOpen: slashToken !== null && filteredItems.length > 0,\n canBrowseSkills,\n }\n}\n\ntype SkillListings = ReturnType<typeof useUsableSkillListings>\n\n/**\n * Built-in skills share the list and the `/slug` path; a same-slug skill of the user's own shadows\n * the built-in, as on the backend.\n */\nfunction skillItems(\n builtinSkills: ReadonlyArray<WorkflowDefinition>,\n listings: SkillListings\n): SlashMenuItem[] {\n const { host, skills } = mergeSkillWorkflows([...builtinSkills], listings)\n const listing = new Map(listings.map((s) => [s.slug, s]))\n return [\n ...host.map((w): SlashMenuItem => ({\n name: w.id,\n description: w.description,\n argHint: w.inputs[0]?.label ?? '',\n visibility: 'global',\n kind: 'skill',\n })),\n ...skills.map((w): SlashMenuItem => {\n const s = listing.get(w.id)\n return {\n name: w.id,\n description: s?.description || (w.title !== w.id ? w.title : ''),\n argHint: s?.arg_hint ?? '',\n visibility: s?.visibility === 'global' ? 'global' : 'mine',\n kind: 'skill',\n }\n }),\n ]\n}\n"]}
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkPK5H5SVS_cjs = require('./chunk-PK5H5SVS.cjs');
5
4
  var chunkVZOOGA47_cjs = require('./chunk-VZOOGA47.cjs');
6
- var chunkBCU65RJM_cjs = require('./chunk-BCU65RJM.cjs');
5
+ var chunkWQ2KG4LS_cjs = require('./chunk-WQ2KG4LS.cjs');
7
6
  var chunkOAIOOVFN_cjs = require('./chunk-OAIOOVFN.cjs');
8
7
  var chunk7FWP7W34_cjs = require('./chunk-7FWP7W34.cjs');
8
+ var chunkKBRDUFXG_cjs = require('./chunk-KBRDUFXG.cjs');
9
9
  var chunkZBP4ZSAJ_cjs = require('./chunk-ZBP4ZSAJ.cjs');
10
10
  var chunkHN56WWBR_cjs = require('./chunk-HN56WWBR.cjs');
11
11
  var chunkCVPV4I7Z_cjs = require('./chunk-CVPV4I7Z.cjs');
@@ -25,7 +25,7 @@ function TranscriptionToggle({
25
25
  if (!available || !canToggle) return null;
26
26
  const label = on ? "Stop transcription" : "Transcribe the call";
27
27
  return /* @__PURE__ */ jsxRuntime.jsxs(
28
- chunkBCU65RJM_cjs.CallControlButton,
28
+ chunkWQ2KG4LS_cjs.CallControlButton,
29
29
  {
30
30
  label,
31
31
  shortcut: "C",
@@ -56,7 +56,7 @@ function TranscriptionIndicator({
56
56
  }, [setIndicatorShown]);
57
57
  const by = startedByMe ? "you" : startedByName || "a participant";
58
58
  return /* @__PURE__ */ jsxRuntime.jsx(
59
- chunkBCU65RJM_cjs.TranscriptionStatusChip,
59
+ chunkWQ2KG4LS_cjs.TranscriptionStatusChip,
60
60
  {
61
61
  sentence: `Transcription on \u2014 started by ${by}`,
62
62
  short: muted ? "Transcribing \xB7 you are muted" : "Transcribing",
@@ -89,7 +89,7 @@ function CaptionsOverlay({
89
89
  })),
90
90
  [captions]
91
91
  );
92
- return /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.CaptionsStrip, { captions: entries, reserve, className });
92
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.CaptionsStrip, { captions: entries, reserve, className });
93
93
  }
94
94
  function TranscriptionSender({ transcription }) {
95
95
  const { isMicrophoneEnabled, microphoneTrack } = componentsReact.useLocalParticipant();
@@ -115,7 +115,7 @@ function RecordingControl({
115
115
  const canHost = react.useIsEntitled("host_calls");
116
116
  if (!available || !canControl || !on && !canHost) return null;
117
117
  return /* @__PURE__ */ jsxRuntime.jsx(
118
- chunkBCU65RJM_cjs.RecordControl,
118
+ chunkWQ2KG4LS_cjs.RecordControl,
119
119
  {
120
120
  on,
121
121
  busy,
@@ -179,7 +179,7 @@ function RecordingIndicator({
179
179
  }, [setIndicatorShown]);
180
180
  const by = startedByMe ? "you" : startedByName || "the host";
181
181
  return /* @__PURE__ */ jsxRuntime.jsx(
182
- chunkBCU65RJM_cjs.RecordingStatusChip,
182
+ chunkWQ2KG4LS_cjs.RecordingStatusChip,
183
183
  {
184
184
  sentence: `Recording${mode ? ` (${chunk7FWP7W34_cjs.MODE_LABEL[mode]})` : ""} \u2014 started by ${by}`,
185
185
  compact,
@@ -249,7 +249,7 @@ function CompositeRecorder({
249
249
  if (!uploader || !stage) return;
250
250
  let capture;
251
251
  try {
252
- capture = chunkBCU65RJM_cjs.startCompositeCapture(stage);
252
+ capture = chunkWQ2KG4LS_cjs.startCompositeCapture(stage);
253
253
  } catch (err) {
254
254
  console.warn("[calls] cannot record the composite", err);
255
255
  notify("This browser cannot record the call video; audio is still recorded.", "warning");
@@ -371,9 +371,9 @@ function RoomMediaControl({
371
371
  const { devices, activeDeviceId, setActiveMediaDevice } = componentsReact.useMediaDeviceSelect({
372
372
  kind: mic ? "audioinput" : "videoinput"
373
373
  });
374
- const [mirror, setMirror] = chunkBCU65RJM_cjs.useMirrorSelfView();
374
+ const [mirror, setMirror] = chunkWQ2KG4LS_cjs.useMirrorSelfView();
375
375
  return /* @__PURE__ */ jsxRuntime.jsx(
376
- chunkBCU65RJM_cjs.MediaControl,
376
+ chunkWQ2KG4LS_cjs.MediaControl,
377
377
  {
378
378
  kind: mic ? "microphone" : "camera",
379
379
  enabled,
@@ -537,15 +537,15 @@ function CallControls({
537
537
  ] : []
538
538
  ];
539
539
  return /* @__PURE__ */ jsxRuntime.jsxs(
540
- chunkBCU65RJM_cjs.CallControlBar,
540
+ chunkWQ2KG4LS_cjs.CallControlBar,
541
541
  {
542
542
  shortcuts,
543
543
  left: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
544
- full && /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.ElapsedTime, { since: startedAt, title: "Time in this call" }),
544
+ full && /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.ElapsedTime, { since: startedAt, title: "Time in this call" }),
545
545
  /* @__PURE__ */ jsxRuntime.jsx(EnableAudioButton, { compact: !full })
546
546
  ] }),
547
547
  right: /* @__PURE__ */ jsxRuntime.jsx(
548
- chunkBCU65RJM_cjs.LeaveButton,
548
+ chunkWQ2KG4LS_cjs.LeaveButton,
549
549
  {
550
550
  compact: !full,
551
551
  onLeave: () => void room.disconnect(),
@@ -553,15 +553,15 @@ function CallControls({
553
553
  }
554
554
  ),
555
555
  children: [
556
- /* @__PURE__ */ jsxRuntime.jsxs(chunkBCU65RJM_cjs.ControlGroup, { children: [
556
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkWQ2KG4LS_cjs.ControlGroup, { children: [
557
557
  /* @__PURE__ */ jsxRuntime.jsx(RoomMediaControl, { source: livekitClient.Track.Source.Microphone, shortcut: "M", testId: "call-mic-toggle" }),
558
558
  /* @__PURE__ */ jsxRuntime.jsx(RoomMediaControl, { source: livekitClient.Track.Source.Camera, shortcut: "V", testId: "call-camera-toggle" })
559
559
  ] }),
560
560
  !tiny && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
561
- /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.ControlDivider, {}),
562
- /* @__PURE__ */ jsxRuntime.jsxs(chunkBCU65RJM_cjs.ControlGroup, { children: [
561
+ /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.ControlDivider, {}),
562
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkWQ2KG4LS_cjs.ControlGroup, { children: [
563
563
  full && (share.enabled ? /* @__PURE__ */ jsxRuntime.jsx(
564
- chunkBCU65RJM_cjs.CallControlButton,
564
+ chunkWQ2KG4LS_cjs.CallControlButton,
565
565
  {
566
566
  label: "Stop sharing",
567
567
  tone: "active",
@@ -573,7 +573,7 @@ function CallControls({
573
573
  }
574
574
  ) : /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
575
575
  /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
576
- chunkBCU65RJM_cjs.CallControlButton,
576
+ chunkWQ2KG4LS_cjs.CallControlButton,
577
577
  {
578
578
  label: SHARE_LABEL,
579
579
  tooltip: false,
@@ -612,7 +612,7 @@ function CallControls({
612
612
  ] })
613
613
  ] }),
614
614
  /* @__PURE__ */ jsxRuntime.jsx(
615
- chunkBCU65RJM_cjs.MoreMenu,
615
+ chunkWQ2KG4LS_cjs.MoreMenu,
616
616
  {
617
617
  details: experimental ? /* @__PURE__ */ jsxRuntime.jsxs(
618
618
  "span",
@@ -648,12 +648,12 @@ function WebinarChat({ chat }) {
648
648
  end.current?.scrollIntoView?.({ block: "end" });
649
649
  }, [count]);
650
650
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "webinar-chat", children: [
651
- /* @__PURE__ */ jsxRuntime.jsxs(chunkPK5H5SVS_cjs.MessageListRoot, { className: "min-h-0 flex-1 overflow-y-auto py-2", testId: "webinar-chat-list", children: [
652
- count === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkPK5H5SVS_cjs.MessageListEmpty, { className: "h-32 text-sm", children: "No messages yet." }) : chat.lines.map((line, i) => {
651
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkKBRDUFXG_cjs.MessageListRoot, { className: "min-h-0 flex-1 overflow-y-auto py-2", testId: "webinar-chat-list", children: [
652
+ count === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkKBRDUFXG_cjs.MessageListEmpty, { className: "h-32 text-sm", children: "No messages yet." }) : chat.lines.map((line, i) => {
653
653
  const startsRun = !line.mine && chat.lines[i - 1]?.senderIdentity !== line.senderIdentity;
654
654
  const id = `${line.senderIdentity}-${line.id}`;
655
- return /* @__PURE__ */ jsxRuntime.jsx(chunkPK5H5SVS_cjs.MessageRoot, { role: "user", messageId: id, className: "px-3", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkPK5H5SVS_cjs.MessageContent, { role: "user", messageId: id, align: line.mine ? "end" : "start", children: [
656
- startsRun && /* @__PURE__ */ jsxRuntime.jsx(chunkPK5H5SVS_cjs.MessageAuthor, { children: /* @__PURE__ */ jsxRuntime.jsx(
655
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkKBRDUFXG_cjs.MessageRoot, { role: "user", messageId: id, className: "px-3", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkKBRDUFXG_cjs.MessageContent, { role: "user", messageId: id, align: line.mine ? "end" : "start", children: [
656
+ startsRun && /* @__PURE__ */ jsxRuntime.jsx(chunkKBRDUFXG_cjs.MessageAuthor, { children: /* @__PURE__ */ jsxRuntime.jsx(
657
657
  chunk7FWP7W34_cjs.CallUserPill,
658
658
  {
659
659
  identity: line.senderIdentity,
@@ -662,12 +662,12 @@ function WebinarChat({ chat }) {
662
662
  }
663
663
  ) }),
664
664
  /* @__PURE__ */ jsxRuntime.jsx(
665
- chunkPK5H5SVS_cjs.MessageBubble,
665
+ chunkKBRDUFXG_cjs.MessageBubble,
666
666
  {
667
667
  role: "user",
668
668
  messageId: id,
669
669
  className: line.mine ? void 0 : "border border-border bg-card",
670
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkPK5H5SVS_cjs.MessageBody, { messageId: id, className: "whitespace-pre-wrap text-sm", children: line.text })
670
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkKBRDUFXG_cjs.MessageBody, { messageId: id, className: "whitespace-pre-wrap text-sm", children: line.text })
671
671
  }
672
672
  )
673
673
  ] }) }, id);
@@ -675,7 +675,7 @@ function WebinarChat({ chat }) {
675
675
  /* @__PURE__ */ jsxRuntime.jsx("div", { ref: end })
676
676
  ] }),
677
677
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-t border-border p-3", children: /* @__PURE__ */ jsxRuntime.jsx(
678
- chunkBCU65RJM_cjs.PanelComposer,
678
+ chunkWQ2KG4LS_cjs.PanelComposer,
679
679
  {
680
680
  placeholder: "Message everyone",
681
681
  ariaLabel: "Message everyone",
@@ -737,7 +737,7 @@ function WebinarQA({ webinar }) {
737
737
  [webinar.questions]
738
738
  );
739
739
  return /* @__PURE__ */ jsxRuntime.jsx(
740
- chunkBCU65RJM_cjs.QAPanel,
740
+ chunkWQ2KG4LS_cjs.QAPanel,
741
741
  {
742
742
  questions,
743
743
  team: webinar.team,
@@ -757,7 +757,7 @@ function WebinarAudience({ webinar }) {
757
757
  return () => clearInterval(id);
758
758
  }, [refresh]);
759
759
  return /* @__PURE__ */ jsxRuntime.jsx(
760
- chunkBCU65RJM_cjs.WebinarAudiencePanel,
760
+ chunkWQ2KG4LS_cjs.WebinarAudiencePanel,
761
761
  {
762
762
  className: "min-h-0 flex-1 overflow-y-auto",
763
763
  hands: webinar.hands.map((h) => ({
@@ -791,7 +791,7 @@ function WebinarSidePanel({
791
791
  const tabs = webinarTabs(webinar, { people: !!people, unreadChat: chat.unread });
792
792
  const current = tabs.some((t) => t.id === tab) ? tab : tabs[0].id;
793
793
  return /* @__PURE__ */ jsxRuntime.jsxs(
794
- chunkBCU65RJM_cjs.CallSidePanel,
794
+ chunkWQ2KG4LS_cjs.CallSidePanel,
795
795
  {
796
796
  title: "Webinar",
797
797
  tabs,
@@ -844,7 +844,7 @@ function ConnectedCallRoom({
844
844
  ] });
845
845
  }
846
846
  if (!room) {
847
- return /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.CallStateMessage, { title: "Connecting\u2026", testId: "call-connecting" });
847
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.CallStateMessage, { title: "Connecting\u2026", testId: "call-connecting" });
848
848
  }
849
849
  return /* @__PURE__ */ jsxRuntime.jsxs(
850
850
  componentsReact.LiveKitRoom,
@@ -896,11 +896,32 @@ function ConnectedCallRoom({
896
896
  onViewerChange
897
897
  }
898
898
  ),
899
- /* @__PURE__ */ jsxRuntime.jsx(componentsReact.RoomAudioRenderer, {})
899
+ /* @__PURE__ */ jsxRuntime.jsx(componentsReact.RoomAudioRenderer, {}),
900
+ /* @__PURE__ */ jsxRuntime.jsx(AssistantNotices, {})
900
901
  ]
901
902
  }
902
903
  );
903
904
  }
905
+ function AssistantNotices() {
906
+ const room = componentsReact.useRoomContext();
907
+ const { notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
908
+ react$1.useEffect(() => {
909
+ const received = (bytes, from, _kind, topic) => {
910
+ if (topic !== "arbi.assistant" || from?.attributes["arbi.call_assistant"] !== "true") return;
911
+ try {
912
+ const event = JSON.parse(new TextDecoder().decode(bytes));
913
+ if (event.type === "error")
914
+ notify("The assistant could not complete this turn. Please try again.", "error");
915
+ } catch {
916
+ }
917
+ };
918
+ room.on(livekitClient.RoomEvent.DataReceived, received);
919
+ return () => {
920
+ room.off(livekitClient.RoomEvent.DataReceived, received);
921
+ };
922
+ }, [room, notify]);
923
+ return null;
924
+ }
904
925
  function useRoomVoiceLevels() {
905
926
  const mics = componentsReact.useTracks([{ source: livekitClient.Track.Source.Microphone, withPlaceholder: true }], {
906
927
  onlySubscribed: false
@@ -968,7 +989,7 @@ function CallBody({
968
989
  const [endConfirm, setEndConfirm] = react$1.useState(false);
969
990
  const [viewerSide, setViewerSide] = react$1.useState(null);
970
991
  const [tab, setTab] = react$1.useState("people");
971
- const [frameRef, frame] = chunkBCU65RJM_cjs.useElementSize();
992
+ const [frameRef, frame] = chunkWQ2KG4LS_cjs.useElementSize();
972
993
  const viewerSideOpen = viewerSide ?? frame.width >= VIEWER_SIDE_DOCKS_AT;
973
994
  const sideOpen = audienceView ? viewerSideOpen : teamPanelOpen;
974
995
  const chat = calls.useInCallChat({
@@ -995,9 +1016,9 @@ function CallBody({
995
1016
  const drawsComposite = recording.on && recording.canControl && recording.mode === "audio_video";
996
1017
  const density = frame.width === 0 || frame.width >= 620 ? "full" : frame.width >= 400 ? "compact" : "tiny";
997
1018
  const shortPanel = frame.height > 0 && frame.height < 520;
998
- const [mirrorSelf] = chunkBCU65RJM_cjs.useMirrorSelfView();
1019
+ const [mirrorSelf] = chunkWQ2KG4LS_cjs.useMirrorSelfView();
999
1020
  const status = (small) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1000
- webinar.enabled && webinar.live && /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.WebinarLiveChip, { compact: small }),
1021
+ webinar.enabled && webinar.live && /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.WebinarLiveChip, { compact: small }),
1001
1022
  /* @__PURE__ */ jsxRuntime.jsx(
1002
1023
  StatusChips,
1003
1024
  {
@@ -1009,7 +1030,7 @@ function CallBody({
1009
1030
  )
1010
1031
  ] });
1011
1032
  const header = !minimized && /* @__PURE__ */ jsxRuntime.jsx(
1012
- chunkBCU65RJM_cjs.CallHeader,
1033
+ chunkWQ2KG4LS_cjs.CallHeader,
1013
1034
  {
1014
1035
  title,
1015
1036
  status,
@@ -1045,9 +1066,9 @@ function CallBody({
1045
1066
  sendsMedia && /* @__PURE__ */ jsxRuntime.jsx(SpeakerRecorder, { recording, callKey: e2eeKey }),
1046
1067
  recording.canControl && recording.mode === "audio_video" && /* @__PURE__ */ jsxRuntime.jsx(CompositeRecorder, { recording, callKey: e2eeKey, stageRef }),
1047
1068
  /* @__PURE__ */ jsxRuntime.jsx(RecordingQuotaWarning, { recording }),
1048
- webinar.moderator && /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.WebinarEndConfirm, { open: endConfirm, onOpenChange: setEndConfirm, onEnd: webinar.end }),
1069
+ webinar.moderator && /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.WebinarEndConfirm, { open: endConfirm, onOpenChange: setEndConfirm, onEnd: webinar.end }),
1049
1070
  webinar.stageCheck && /* @__PURE__ */ jsxRuntime.jsx(
1050
- chunkBCU65RJM_cjs.OnStageCheck,
1071
+ chunkWQ2KG4LS_cjs.OnStageCheck,
1051
1072
  {
1052
1073
  initialChoices: react.DEFAULT_JOIN_CHOICES,
1053
1074
  open: true,
@@ -1070,7 +1091,7 @@ function CallBody({
1070
1091
  inert: minimized || void 0,
1071
1092
  "data-testid": "call-stage-frame",
1072
1093
  children: audienceView ? /* @__PURE__ */ jsxRuntime.jsx(
1073
- chunkBCU65RJM_cjs.WebinarViewer,
1094
+ chunkWQ2KG4LS_cjs.WebinarViewer,
1074
1095
  {
1075
1096
  header,
1076
1097
  stage: /* @__PURE__ */ jsxRuntime.jsx(CallTiles, { view: "speaker", includeLocal: false }),
@@ -1094,14 +1115,14 @@ function CallBody({
1094
1115
  shortcuts: !minimized
1095
1116
  }
1096
1117
  ) : /* @__PURE__ */ jsxRuntime.jsx(
1097
- chunkBCU65RJM_cjs.CallStageFrame,
1118
+ chunkWQ2KG4LS_cjs.CallStageFrame,
1098
1119
  {
1099
1120
  stageRef,
1100
1121
  header,
1101
1122
  subheader: !minimized && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1102
- webinar.team && !webinar.live && /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.BackstageBanner, { onGoLive: webinar.moderator ? webinar.goLive : void 0 }),
1103
- notices.map((n) => /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.CallNotice, { children: n }, n)),
1104
- /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.SpeakingNow, { names: speakingNames })
1123
+ webinar.team && !webinar.live && /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.BackstageBanner, { onGoLive: webinar.moderator ? webinar.goLive : void 0 }),
1124
+ notices.map((n) => /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.CallNotice, { children: n }, n)),
1125
+ /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.SpeakingNow, { names: speakingNames })
1105
1126
  ] }),
1106
1127
  stage: /* @__PURE__ */ jsxRuntime.jsx(CallTiles, { view }),
1107
1128
  stageOverlay: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -1183,7 +1204,7 @@ function webinarControls(webinar, opts) {
1183
1204
  ];
1184
1205
  return {
1185
1206
  menuGroups: [
1186
- ...webinar.moderator ? [chunkBCU65RJM_cjs.chatPermissionSection({ value: webinar.chat, onChange: webinar.setChat })] : [],
1207
+ ...webinar.moderator ? [chunkWQ2KG4LS_cjs.chatPermissionSection({ value: webinar.chat, onChange: webinar.setChat })] : [],
1187
1208
  items
1188
1209
  ],
1189
1210
  leaveOptions: webinar.moderator && webinar.live ? [
@@ -1244,7 +1265,7 @@ function StatusChips({
1244
1265
  recording.on && /* @__PURE__ */ jsxRuntime.jsx(RecordingIndicator, { recording, compact, announce: false }),
1245
1266
  transcription.on && /* @__PURE__ */ jsxRuntime.jsx(TranscriptionIndicator, { transcription, compact, announce: false }),
1246
1267
  /* @__PURE__ */ jsxRuntime.jsx(
1247
- chunkBCU65RJM_cjs.EncryptionStatusChip,
1268
+ chunkWQ2KG4LS_cjs.EncryptionStatusChip,
1248
1269
  {
1249
1270
  state: isE2ee ? encrypted ? "on" : "pending" : "off",
1250
1271
  compact
@@ -1258,6 +1279,13 @@ function RoomTile({
1258
1279
  size = "md"
1259
1280
  }) {
1260
1281
  const { participant } = trackRef;
1282
+ const { attributes } = componentsReact.useParticipantAttributes({ participant });
1283
+ const assistantState = attributes?.["arbi.call_assistant"] === "true" ? {
1284
+ listening: "Listening",
1285
+ thinking: "Thinking",
1286
+ speaking: "Speaking",
1287
+ error: "Please try again"
1288
+ }[attributes?.["arbi.assistant_state"] ?? ""] : void 0;
1261
1289
  const { elementProps } = componentsReact.useParticipantTile({ trackRef, htmlProps: {} });
1262
1290
  const screen = trackRef.source === livekitClient.Track.Source.ScreenShare;
1263
1291
  const videoMuted = componentsReact.useIsMuted(trackRef);
@@ -1267,9 +1295,9 @@ function RoomTile({
1267
1295
  const { quality } = componentsReact.useConnectionQualityIndicator({ participant });
1268
1296
  const hasVideo = componentsReact.isTrackReference(trackRef) && !!trackRef.publication.track && !videoMuted;
1269
1297
  const name = participant.name || participant.identity;
1270
- const [mirrorSelf] = chunkBCU65RJM_cjs.useMirrorSelfView();
1298
+ const [mirrorSelf] = chunkWQ2KG4LS_cjs.useMirrorSelfView();
1271
1299
  return /* @__PURE__ */ jsxRuntime.jsx(
1272
- chunkBCU65RJM_cjs.CallTile,
1300
+ chunkWQ2KG4LS_cjs.CallTile,
1273
1301
  {
1274
1302
  ...elementProps,
1275
1303
  name: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -1281,7 +1309,8 @@ function RoomTile({
1281
1309
  variant: size === "sm" ? "icon" : "pill"
1282
1310
  }
1283
1311
  ),
1284
- /* @__PURE__ */ jsxRuntime.jsx(componentsReact.ParticipantName, { participant, hidden: true })
1312
+ /* @__PURE__ */ jsxRuntime.jsx(componentsReact.ParticipantName, { participant, hidden: true }),
1313
+ assistantState && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", "data-testid": "call-assistant-state", children: assistantState })
1285
1314
  ] }),
1286
1315
  initials: chunkZBP4ZSAJ_cjs.initialsOf(name),
1287
1316
  video: hasVideo ? /* @__PURE__ */ jsxRuntime.jsx(componentsReact.VideoTrack, { trackRef }) : void 0,
@@ -1327,10 +1356,10 @@ function CallTiles({
1327
1356
  const spotlight = useSpotlightCamera(cameras);
1328
1357
  const focus = share ?? (view === "speaker" ? spotlight : void 0);
1329
1358
  if (!focus || cameras.length < 2 && !share) {
1330
- return /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.CallGrid, { items: cameras, getKey: trackKey, renderTile: (t) => /* @__PURE__ */ jsxRuntime.jsx(RoomTile, { trackRef: t }) });
1359
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.CallGrid, { items: cameras, getKey: trackKey, renderTile: (t) => /* @__PURE__ */ jsxRuntime.jsx(RoomTile, { trackRef: t }) });
1331
1360
  }
1332
1361
  return /* @__PURE__ */ jsxRuntime.jsx(
1333
- chunkBCU65RJM_cjs.CallFocus,
1362
+ chunkWQ2KG4LS_cjs.CallFocus,
1334
1363
  {
1335
1364
  focus,
1336
1365
  others: cameras.filter((t) => t !== focus),
@@ -1354,12 +1383,12 @@ function MinimisedRoom({
1354
1383
  const mic = componentsReact.useTrackToggle({ source: livekitClient.Track.Source.Microphone });
1355
1384
  const camera = componentsReact.useTrackToggle({ source: livekitClient.Track.Source.Camera });
1356
1385
  return /* @__PURE__ */ jsxRuntime.jsx(
1357
- chunkBCU65RJM_cjs.MinimisedCall,
1386
+ chunkWQ2KG4LS_cjs.MinimisedCall,
1358
1387
  {
1359
1388
  title,
1360
1389
  video: track ? /* @__PURE__ */ jsxRuntime.jsx(RoomTile, { trackRef: track, size: "sm" }) : null,
1361
1390
  status,
1362
- speaking: /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.SpeakingNow, { names: speakingNames, className: "text-xs" }),
1391
+ speaking: /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.SpeakingNow, { names: speakingNames, className: "text-xs" }),
1363
1392
  micEnabled: audience ? void 0 : mic.enabled,
1364
1393
  onToggleMic: audience ? void 0 : () => void mic.toggle(),
1365
1394
  cameraEnabled: audience ? void 0 : camera.enabled,
@@ -1408,7 +1437,7 @@ function ParticipantsList({
1408
1437
  ...participants.filter((p) => !speakingIds.includes(p.identity))
1409
1438
  ];
1410
1439
  return /* @__PURE__ */ jsxRuntime.jsx(
1411
- chunkBCU65RJM_cjs.CallParticipants,
1440
+ chunkWQ2KG4LS_cjs.CallParticipants,
1412
1441
  {
1413
1442
  className: compact ? void 0 : "flex-1",
1414
1443
  compact,
@@ -1444,7 +1473,7 @@ function Lobby({ callExtId }) {
1444
1473
  }
1445
1474
  };
1446
1475
  return /* @__PURE__ */ jsxRuntime.jsx(
1447
- chunkBCU65RJM_cjs.LobbyRequests,
1476
+ chunkWQ2KG4LS_cjs.LobbyRequests,
1448
1477
  {
1449
1478
  requests: mine.map((k) => ({
1450
1479
  id: k.knockId,
@@ -1459,9 +1488,9 @@ function ConnectingOverlay() {
1459
1488
  const state = componentsReact.useConnectionState();
1460
1489
  if (state === livekitClient.ConnectionState.Connected) return null;
1461
1490
  const label = state === livekitClient.ConnectionState.Reconnecting || state === livekitClient.ConnectionState.SignalReconnecting ? "Reconnecting\u2026" : state === livekitClient.ConnectionState.Disconnected ? "Disconnected" : "Connecting\u2026";
1462
- return /* @__PURE__ */ jsxRuntime.jsx(chunkBCU65RJM_cjs.ConnectionOverlay, { label });
1491
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWQ2KG4LS_cjs.ConnectionOverlay, { label });
1463
1492
  }
1464
1493
 
1465
1494
  exports.ConnectedCallRoom = ConnectedCallRoom;
1466
- //# sourceMappingURL=chunk-ZLXTGHK3.cjs.map
1467
- //# sourceMappingURL=chunk-ZLXTGHK3.cjs.map
1495
+ //# sourceMappingURL=chunk-NFVYHS3X.cjs.map
1496
+ //# sourceMappingURL=chunk-NFVYHS3X.cjs.map