@athenaintel/react 0.57.2 → 0.60.0

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 (852) hide show
  1. package/README.md +795 -12
  2. package/dist/agent-runtime/src/addressed-agents.cjs +16 -0
  3. package/dist/agent-runtime/src/addressed-agents.cjs.map +1 -0
  4. package/dist/agent-runtime/src/addressed-agents.d.ts +30 -0
  5. package/dist/agent-runtime/src/addressed-agents.js +16 -0
  6. package/dist/agent-runtime/src/addressed-agents.js.map +1 -0
  7. package/dist/agent-runtime/src/answer-label.cjs +4 -3
  8. package/dist/agent-runtime/src/answer-label.cjs.map +1 -1
  9. package/dist/agent-runtime/src/answer-label.d.ts +13 -6
  10. package/dist/agent-runtime/src/answer-label.js +4 -3
  11. package/dist/agent-runtime/src/answer-label.js.map +1 -1
  12. package/dist/agent-runtime/src/chat-outbox-attachments.cjs.map +1 -1
  13. package/dist/agent-runtime/src/chat-outbox-attachments.d.ts +1 -1
  14. package/dist/agent-runtime/src/chat-outbox-attachments.js.map +1 -1
  15. package/dist/agent-runtime/src/chat-outbox-entry.cjs +101 -0
  16. package/dist/agent-runtime/src/chat-outbox-entry.cjs.map +1 -0
  17. package/dist/agent-runtime/src/chat-outbox-entry.d.ts +99 -0
  18. package/dist/agent-runtime/src/chat-outbox-entry.js +101 -0
  19. package/dist/agent-runtime/src/chat-outbox-entry.js.map +1 -0
  20. package/dist/agent-runtime/src/chat-outbox-legacy.cjs +252 -0
  21. package/dist/agent-runtime/src/chat-outbox-legacy.cjs.map +1 -0
  22. package/dist/agent-runtime/src/chat-outbox-legacy.d.ts +96 -0
  23. package/dist/agent-runtime/src/chat-outbox-legacy.js +252 -0
  24. package/dist/agent-runtime/src/chat-outbox-legacy.js.map +1 -0
  25. package/dist/agent-runtime/src/chat-outbox-policy.cjs +30 -0
  26. package/dist/agent-runtime/src/chat-outbox-policy.cjs.map +1 -0
  27. package/dist/agent-runtime/src/chat-outbox-policy.d.ts +42 -0
  28. package/dist/agent-runtime/src/chat-outbox-policy.js +30 -0
  29. package/dist/agent-runtime/src/chat-outbox-policy.js.map +1 -0
  30. package/dist/agent-runtime/src/chat-outbox-storage.cjs +306 -0
  31. package/dist/agent-runtime/src/chat-outbox-storage.cjs.map +1 -0
  32. package/dist/agent-runtime/src/chat-outbox-storage.d.ts +194 -0
  33. package/dist/agent-runtime/src/chat-outbox-storage.js +306 -0
  34. package/dist/agent-runtime/src/chat-outbox-storage.js.map +1 -0
  35. package/dist/agent-runtime/src/chat-outbox-thread.cjs +21 -94
  36. package/dist/agent-runtime/src/chat-outbox-thread.cjs.map +1 -1
  37. package/dist/agent-runtime/src/chat-outbox-thread.d.ts +22 -18
  38. package/dist/agent-runtime/src/chat-outbox-thread.js +21 -94
  39. package/dist/agent-runtime/src/chat-outbox-thread.js.map +1 -1
  40. package/dist/agent-runtime/src/chat-outbox.cjs +492 -547
  41. package/dist/agent-runtime/src/chat-outbox.cjs.map +1 -1
  42. package/dist/agent-runtime/src/chat-outbox.d.ts +110 -142
  43. package/dist/agent-runtime/src/chat-outbox.js +492 -547
  44. package/dist/agent-runtime/src/chat-outbox.js.map +1 -1
  45. package/dist/agent-runtime/src/composer-markdown.cjs +0 -16
  46. package/dist/agent-runtime/src/composer-markdown.cjs.map +1 -1
  47. package/dist/agent-runtime/src/composer-markdown.d.ts +1 -1
  48. package/dist/agent-runtime/src/composer-markdown.js +1 -17
  49. package/dist/agent-runtime/src/composer-markdown.js.map +1 -1
  50. package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs +3 -1
  51. package/dist/agent-runtime/src/deep-agent-transport-recipe.cjs.map +1 -1
  52. package/dist/agent-runtime/src/deep-agent-transport-recipe.d.ts +8 -1
  53. package/dist/agent-runtime/src/deep-agent-transport-recipe.js +3 -1
  54. package/dist/agent-runtime/src/deep-agent-transport-recipe.js.map +1 -1
  55. package/dist/agent-runtime/src/dictation-preferences.d.ts +356 -0
  56. package/dist/agent-runtime/src/dictation-record.d.ts +279 -0
  57. package/dist/agent-runtime/src/dictation-session.d.ts +106 -7
  58. package/dist/agent-runtime/src/dictation-snippets.d.ts +9 -0
  59. package/dist/agent-runtime/src/dictation-transfer.d.ts +142 -0
  60. package/dist/agent-runtime/src/edit-command.cjs.map +1 -1
  61. package/dist/agent-runtime/src/edit-command.d.ts +1 -1
  62. package/dist/agent-runtime/src/edit-command.js.map +1 -1
  63. package/dist/agent-runtime/src/errors.cjs +1 -0
  64. package/dist/agent-runtime/src/errors.cjs.map +1 -1
  65. package/dist/agent-runtime/src/errors.js +1 -0
  66. package/dist/agent-runtime/src/errors.js.map +1 -1
  67. package/dist/agent-runtime/src/generated/runconfig-contract.cjs +24 -0
  68. package/dist/agent-runtime/src/generated/runconfig-contract.cjs.map +1 -1
  69. package/dist/agent-runtime/src/generated/runconfig-contract.d.ts +3 -3
  70. package/dist/agent-runtime/src/generated/runconfig-contract.js +24 -0
  71. package/dist/agent-runtime/src/generated/runconfig-contract.js.map +1 -1
  72. package/dist/agent-runtime/src/index.d.ts +14 -8
  73. package/dist/agent-runtime/src/lane-follow.cjs +289 -0
  74. package/dist/agent-runtime/src/lane-follow.cjs.map +1 -0
  75. package/dist/agent-runtime/src/lane-follow.js +289 -0
  76. package/dist/agent-runtime/src/lane-follow.js.map +1 -0
  77. package/dist/agent-runtime/src/lane-images.cjs +387 -0
  78. package/dist/agent-runtime/src/lane-images.cjs.map +1 -0
  79. package/dist/agent-runtime/src/lane-images.js +387 -0
  80. package/dist/agent-runtime/src/lane-images.js.map +1 -0
  81. package/dist/agent-runtime/src/message-window.js +1 -1
  82. package/dist/agent-runtime/src/messages.cjs +19 -1
  83. package/dist/agent-runtime/src/messages.cjs.map +1 -1
  84. package/dist/agent-runtime/src/messages.d.ts +8 -0
  85. package/dist/agent-runtime/src/messages.js +21 -3
  86. package/dist/agent-runtime/src/messages.js.map +1 -1
  87. package/dist/agent-runtime/src/named-agents.cjs +301 -0
  88. package/dist/agent-runtime/src/named-agents.cjs.map +1 -0
  89. package/dist/agent-runtime/src/named-agents.d.ts +246 -0
  90. package/dist/agent-runtime/src/named-agents.js +301 -0
  91. package/dist/agent-runtime/src/named-agents.js.map +1 -0
  92. package/dist/agent-runtime/src/offline-status.cjs.map +1 -1
  93. package/dist/agent-runtime/src/offline-status.d.ts +93 -2
  94. package/dist/agent-runtime/src/offline-status.js.map +1 -1
  95. package/dist/agent-runtime/src/ptc-subcalls.cjs +41 -0
  96. package/dist/agent-runtime/src/ptc-subcalls.cjs.map +1 -0
  97. package/dist/agent-runtime/src/ptc-subcalls.js +41 -0
  98. package/dist/agent-runtime/src/ptc-subcalls.js.map +1 -0
  99. package/dist/agent-runtime/src/queue.cjs +2 -2
  100. package/dist/agent-runtime/src/queue.cjs.map +1 -1
  101. package/dist/agent-runtime/src/queue.d.ts +20 -25
  102. package/dist/agent-runtime/src/queue.js +2 -2
  103. package/dist/agent-runtime/src/queue.js.map +1 -1
  104. package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs +314 -84
  105. package/dist/agent-runtime/src/quota-safe-local-storage-session.cjs.map +1 -1
  106. package/dist/agent-runtime/src/quota-safe-local-storage-session.d.ts +137 -40
  107. package/dist/agent-runtime/src/quota-safe-local-storage-session.js +318 -88
  108. package/dist/agent-runtime/src/quota-safe-local-storage-session.js.map +1 -1
  109. package/dist/agent-runtime/src/run-send.cjs +54 -0
  110. package/dist/agent-runtime/src/run-send.cjs.map +1 -0
  111. package/dist/agent-runtime/src/run-send.d.ts +51 -0
  112. package/dist/agent-runtime/src/run-send.js +54 -0
  113. package/dist/agent-runtime/src/run-send.js.map +1 -0
  114. package/dist/agent-runtime/src/running-tool-placeholder.cjs +6 -0
  115. package/dist/agent-runtime/src/running-tool-placeholder.cjs.map +1 -1
  116. package/dist/agent-runtime/src/running-tool-placeholder.js +6 -0
  117. package/dist/agent-runtime/src/running-tool-placeholder.js.map +1 -1
  118. package/dist/agent-runtime/src/runtime.d.ts +9 -5
  119. package/dist/agent-runtime/src/sealed-idb.cjs +64 -0
  120. package/dist/agent-runtime/src/sealed-idb.cjs.map +1 -1
  121. package/dist/agent-runtime/src/sealed-idb.d.ts +16 -0
  122. package/dist/agent-runtime/src/sealed-idb.js +64 -0
  123. package/dist/agent-runtime/src/sealed-idb.js.map +1 -1
  124. package/dist/agent-runtime/src/send-recovery.cjs +90 -118
  125. package/dist/agent-runtime/src/send-recovery.cjs.map +1 -1
  126. package/dist/agent-runtime/src/send-recovery.d.ts +25 -29
  127. package/dist/agent-runtime/src/send-recovery.js +90 -118
  128. package/dist/agent-runtime/src/send-recovery.js.map +1 -1
  129. package/dist/agent-runtime/src/statewire-diagnostics.d.ts +4 -1
  130. package/dist/agent-runtime/src/statewire-held-sends.cjs +191 -0
  131. package/dist/agent-runtime/src/statewire-held-sends.cjs.map +1 -0
  132. package/dist/agent-runtime/src/statewire-held-sends.d.ts +119 -0
  133. package/dist/agent-runtime/src/statewire-held-sends.js +191 -0
  134. package/dist/agent-runtime/src/statewire-held-sends.js.map +1 -0
  135. package/dist/agent-runtime/src/statewire-state.cjs +4 -0
  136. package/dist/agent-runtime/src/statewire-state.cjs.map +1 -1
  137. package/dist/agent-runtime/src/statewire-state.js +4 -0
  138. package/dist/agent-runtime/src/statewire-state.js.map +1 -1
  139. package/dist/agent-runtime/src/statewire-transport.cjs +8 -2
  140. package/dist/agent-runtime/src/statewire-transport.cjs.map +1 -1
  141. package/dist/agent-runtime/src/statewire-transport.d.ts +14 -5
  142. package/dist/agent-runtime/src/statewire-transport.js +8 -2
  143. package/dist/agent-runtime/src/statewire-transport.js.map +1 -1
  144. package/dist/agent-runtime/src/subagent-transcripts.cjs +1 -23
  145. package/dist/agent-runtime/src/subagent-transcripts.cjs.map +1 -1
  146. package/dist/agent-runtime/src/subagent-transcripts.js +3 -25
  147. package/dist/agent-runtime/src/subagent-transcripts.js.map +1 -1
  148. package/dist/agent-runtime/src/subagents.cjs +22 -29
  149. package/dist/agent-runtime/src/subagents.cjs.map +1 -1
  150. package/dist/agent-runtime/src/subagents.js +23 -30
  151. package/dist/agent-runtime/src/subagents.js.map +1 -1
  152. package/dist/agent-runtime/src/thread-extras.cjs +27 -19
  153. package/dist/agent-runtime/src/thread-extras.cjs.map +1 -1
  154. package/dist/agent-runtime/src/thread-extras.d.ts +19 -6
  155. package/dist/agent-runtime/src/thread-extras.js +27 -19
  156. package/dist/agent-runtime/src/thread-extras.js.map +1 -1
  157. package/dist/agent-runtime/src/thread-handoff-flow-machine.d.ts +8 -8
  158. package/dist/agent-runtime/src/tool-metadata.cjs +19 -0
  159. package/dist/agent-runtime/src/tool-metadata.cjs.map +1 -1
  160. package/dist/agent-runtime/src/tool-metadata.js +19 -0
  161. package/dist/agent-runtime/src/tool-metadata.js.map +1 -1
  162. package/dist/agent-runtime/src/tool-names.cjs +21 -0
  163. package/dist/agent-runtime/src/tool-names.cjs.map +1 -1
  164. package/dist/agent-runtime/src/tool-names.d.ts +8 -0
  165. package/dist/agent-runtime/src/tool-names.js +21 -0
  166. package/dist/agent-runtime/src/tool-names.js.map +1 -1
  167. package/dist/agent-runtime/src/typed-interrupt-kinds.cjs +247 -0
  168. package/dist/agent-runtime/src/typed-interrupt-kinds.cjs.map +1 -0
  169. package/dist/agent-runtime/src/typed-interrupt-kinds.d.ts +173 -0
  170. package/dist/agent-runtime/src/typed-interrupt-kinds.js +247 -0
  171. package/dist/agent-runtime/src/typed-interrupt-kinds.js.map +1 -0
  172. package/dist/agent-runtime/src/typed-interrupts.cjs +48 -0
  173. package/dist/agent-runtime/src/typed-interrupts.cjs.map +1 -0
  174. package/dist/agent-runtime/src/typed-interrupts.d.ts +75 -0
  175. package/dist/agent-runtime/src/typed-interrupts.js +48 -0
  176. package/dist/agent-runtime/src/typed-interrupts.js.map +1 -0
  177. package/dist/agent-runtime/src/types.d.ts +1 -1
  178. package/dist/agent-runtime/src/use-conversation-list.cjs +1 -0
  179. package/dist/agent-runtime/src/use-conversation-list.cjs.map +1 -1
  180. package/dist/agent-runtime/src/use-conversation-list.d.ts +7 -0
  181. package/dist/agent-runtime/src/use-conversation-list.js +1 -0
  182. package/dist/agent-runtime/src/use-conversation-list.js.map +1 -1
  183. package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs +46 -29
  184. package/dist/agent-runtime/src/use-deep-agent-chat-outbox.cjs.map +1 -1
  185. package/dist/agent-runtime/src/use-deep-agent-chat-outbox.d.ts +14 -22
  186. package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js +46 -29
  187. package/dist/agent-runtime/src/use-deep-agent-chat-outbox.js.map +1 -1
  188. package/dist/agent-runtime/src/use-deep-agent-runtime.cjs +78 -14
  189. package/dist/agent-runtime/src/use-deep-agent-runtime.cjs.map +1 -1
  190. package/dist/agent-runtime/src/use-deep-agent-runtime.d.ts +34 -7
  191. package/dist/agent-runtime/src/use-deep-agent-runtime.js +79 -15
  192. package/dist/agent-runtime/src/use-deep-agent-runtime.js.map +1 -1
  193. package/dist/agent-runtime/src/use-deep-agent-thread.cjs +16 -1
  194. package/dist/agent-runtime/src/use-deep-agent-thread.cjs.map +1 -1
  195. package/dist/agent-runtime/src/use-deep-agent-thread.d.ts +7 -2
  196. package/dist/agent-runtime/src/use-deep-agent-thread.js +16 -1
  197. package/dist/agent-runtime/src/use-deep-agent-thread.js.map +1 -1
  198. package/dist/agent-runtime/src/use-deep-agent-voice.cjs +30 -4
  199. package/dist/agent-runtime/src/use-deep-agent-voice.cjs.map +1 -1
  200. package/dist/agent-runtime/src/use-deep-agent-voice.d.ts +22 -4
  201. package/dist/agent-runtime/src/use-deep-agent-voice.js +30 -4
  202. package/dist/agent-runtime/src/use-deep-agent-voice.js.map +1 -1
  203. package/dist/agent-runtime/src/withdrawn-turns.d.ts +5 -4
  204. package/dist/agent-runtime/src/word-device-fit.d.ts +174 -0
  205. package/dist/agent-runtime/src/work-in.d.ts +127 -0
  206. package/dist/assets/AthenaAssetEmbed.cjs.map +1 -1
  207. package/dist/assets/AthenaAssetEmbed.d.ts +6 -1
  208. package/dist/assets/AthenaAssetEmbed.js.map +1 -1
  209. package/dist/assets/asset-panel-store.cjs +13 -5
  210. package/dist/assets/asset-panel-store.cjs.map +1 -1
  211. package/dist/assets/asset-panel-store.d.ts +33 -2
  212. package/dist/assets/asset-panel-store.js +13 -5
  213. package/dist/assets/asset-panel-store.js.map +1 -1
  214. package/dist/auth/AthenaCredentialSourceContext.cjs +11 -0
  215. package/dist/auth/AthenaCredentialSourceContext.cjs.map +1 -1
  216. package/dist/auth/AthenaCredentialSourceContext.d.ts +6 -0
  217. package/dist/auth/AthenaCredentialSourceContext.js +11 -0
  218. package/dist/auth/AthenaCredentialSourceContext.js.map +1 -1
  219. package/dist/auth/account-identity.cjs +13 -2
  220. package/dist/auth/account-identity.cjs.map +1 -1
  221. package/dist/auth/account-identity.d.ts +9 -0
  222. package/dist/auth/account-identity.js +13 -2
  223. package/dist/auth/account-identity.js.map +1 -1
  224. package/dist/auth/credential-source.cjs +20 -4
  225. package/dist/auth/credential-source.cjs.map +1 -1
  226. package/dist/auth/credential-source.d.ts +9 -0
  227. package/dist/auth/credential-source.js +20 -4
  228. package/dist/auth/credential-source.js.map +1 -1
  229. package/dist/catalog/chat-pickers.cjs +31 -0
  230. package/dist/catalog/chat-pickers.cjs.map +1 -1
  231. package/dist/catalog/chat-pickers.d.ts +17 -0
  232. package/dist/catalog/chat-pickers.js +33 -2
  233. package/dist/catalog/chat-pickers.js.map +1 -1
  234. package/dist/catalog/runtime-catalog.cjs +63 -3
  235. package/dist/catalog/runtime-catalog.cjs.map +1 -1
  236. package/dist/catalog/runtime-catalog.d.ts +63 -3
  237. package/dist/catalog/runtime-catalog.js +64 -4
  238. package/dist/catalog/runtime-catalog.js.map +1 -1
  239. package/dist/chat/AthenaChat.cjs +301 -98
  240. package/dist/chat/AthenaChat.cjs.map +1 -1
  241. package/dist/chat/AthenaChat.d.ts +80 -4
  242. package/dist/chat/AthenaChat.js +302 -99
  243. package/dist/chat/AthenaChat.js.map +1 -1
  244. package/dist/chat/StatewireApprovalCard.cjs +35 -5
  245. package/dist/chat/StatewireApprovalCard.cjs.map +1 -1
  246. package/dist/chat/StatewireApprovalCard.d.ts +55 -2
  247. package/dist/chat/StatewireApprovalCard.js +37 -7
  248. package/dist/chat/StatewireApprovalCard.js.map +1 -1
  249. package/dist/chat/StatewireQueuedMessages.cjs +17 -2
  250. package/dist/chat/StatewireQueuedMessages.cjs.map +1 -1
  251. package/dist/chat/StatewireQueuedMessages.d.ts +8 -45
  252. package/dist/chat/StatewireQueuedMessages.js +18 -3
  253. package/dist/chat/StatewireQueuedMessages.js.map +1 -1
  254. package/dist/chat/chat-agent-mentions.cjs +70 -0
  255. package/dist/chat/chat-agent-mentions.cjs.map +1 -0
  256. package/dist/chat/chat-agent-mentions.d.ts +13 -0
  257. package/dist/chat/chat-agent-mentions.js +70 -0
  258. package/dist/chat/chat-agent-mentions.js.map +1 -0
  259. package/dist/chat/composer-actions.cjs +12 -0
  260. package/dist/chat/composer-actions.cjs.map +1 -0
  261. package/dist/chat/composer-actions.d.ts +22 -0
  262. package/dist/chat/composer-actions.js +12 -0
  263. package/dist/chat/composer-actions.js.map +1 -0
  264. package/dist/chat/follow-up-suggestions.cjs +185 -0
  265. package/dist/chat/follow-up-suggestions.cjs.map +1 -0
  266. package/dist/chat/follow-up-suggestions.d.ts +64 -0
  267. package/dist/chat/follow-up-suggestions.js +185 -0
  268. package/dist/chat/follow-up-suggestions.js.map +1 -0
  269. package/dist/chat/super-grouping/ToolTimeline.cjs +4 -3
  270. package/dist/chat/super-grouping/ToolTimeline.cjs.map +1 -1
  271. package/dist/chat/super-grouping/ToolTimeline.d.ts +7 -3
  272. package/dist/chat/super-grouping/ToolTimeline.js +4 -3
  273. package/dist/chat/super-grouping/ToolTimeline.js.map +1 -1
  274. package/dist/chat/turn-changes.cjs +284 -0
  275. package/dist/chat/turn-changes.cjs.map +1 -0
  276. package/dist/chat/turn-changes.d.ts +130 -0
  277. package/dist/chat/turn-changes.js +284 -0
  278. package/dist/chat/turn-changes.js.map +1 -0
  279. package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.cjs +31 -0
  280. package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.cjs.map +1 -0
  281. package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.d.ts +31 -0
  282. package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.js +31 -0
  283. package/dist/chat/typed-interrupts/StatewireTypedInterruptCard.js.map +1 -0
  284. package/dist/chat/typed-interrupts/approval-cards.cjs +250 -0
  285. package/dist/chat/typed-interrupts/approval-cards.cjs.map +1 -0
  286. package/dist/chat/typed-interrupts/approval-cards.d.ts +22 -0
  287. package/dist/chat/typed-interrupts/approval-cards.js +250 -0
  288. package/dist/chat/typed-interrupts/approval-cards.js.map +1 -0
  289. package/dist/chat/typed-interrupts/form-cards.cjs +289 -0
  290. package/dist/chat/typed-interrupts/form-cards.cjs.map +1 -0
  291. package/dist/chat/typed-interrupts/form-cards.d.ts +6 -0
  292. package/dist/chat/typed-interrupts/form-cards.js +289 -0
  293. package/dist/chat/typed-interrupts/form-cards.js.map +1 -0
  294. package/dist/chat/typed-interrupts/interrupt-card-shell.cjs +182 -0
  295. package/dist/chat/typed-interrupts/interrupt-card-shell.cjs.map +1 -0
  296. package/dist/chat/typed-interrupts/interrupt-card-shell.d.ts +47 -0
  297. package/dist/chat/typed-interrupts/interrupt-card-shell.js +182 -0
  298. package/dist/chat/typed-interrupts/interrupt-card-shell.js.map +1 -0
  299. package/dist/chat/typed-interrupts/json-schema-form.cjs +388 -0
  300. package/dist/chat/typed-interrupts/json-schema-form.cjs.map +1 -0
  301. package/dist/chat/typed-interrupts/json-schema-form.d.ts +33 -0
  302. package/dist/chat/typed-interrupts/json-schema-form.js +388 -0
  303. package/dist/chat/typed-interrupts/json-schema-form.js.map +1 -0
  304. package/dist/chat/typed-interrupts/questionnaire-card.cjs +449 -0
  305. package/dist/chat/typed-interrupts/questionnaire-card.cjs.map +1 -0
  306. package/dist/chat/typed-interrupts/questionnaire-card.d.ts +20 -0
  307. package/dist/chat/typed-interrupts/questionnaire-card.js +449 -0
  308. package/dist/chat/typed-interrupts/questionnaire-card.js.map +1 -0
  309. package/dist/chat/typed-interrupts/request-file-card.cjs +159 -0
  310. package/dist/chat/typed-interrupts/request-file-card.cjs.map +1 -0
  311. package/dist/chat/typed-interrupts/request-file-card.d.ts +2 -0
  312. package/dist/chat/typed-interrupts/request-file-card.js +159 -0
  313. package/dist/chat/typed-interrupts/request-file-card.js.map +1 -0
  314. package/dist/chat/typed-interrupts/toolkit-selection-card.cjs +189 -0
  315. package/dist/chat/typed-interrupts/toolkit-selection-card.cjs.map +1 -0
  316. package/dist/chat/typed-interrupts/toolkit-selection-card.d.ts +23 -0
  317. package/dist/chat/typed-interrupts/toolkit-selection-card.js +189 -0
  318. package/dist/chat/typed-interrupts/toolkit-selection-card.js.map +1 -0
  319. package/dist/chat/typed-interrupts/typed-interrupt-body.cjs +26 -0
  320. package/dist/chat/typed-interrupts/typed-interrupt-body.cjs.map +1 -0
  321. package/dist/chat/typed-interrupts/typed-interrupt-body.d.ts +3 -0
  322. package/dist/chat/typed-interrupts/typed-interrupt-body.js +26 -0
  323. package/dist/chat/typed-interrupts/typed-interrupt-body.js.map +1 -0
  324. package/dist/chat/typed-interrupts/typed-interrupt-graphql.cjs +105 -0
  325. package/dist/chat/typed-interrupts/typed-interrupt-graphql.cjs.map +1 -0
  326. package/dist/chat/typed-interrupts/typed-interrupt-graphql.d.ts +29 -0
  327. package/dist/chat/typed-interrupts/typed-interrupt-graphql.js +105 -0
  328. package/dist/chat/typed-interrupts/typed-interrupt-graphql.js.map +1 -0
  329. package/dist/chat/typed-interrupts/typed-interrupt-notice.cjs +70 -0
  330. package/dist/chat/typed-interrupts/typed-interrupt-notice.cjs.map +1 -0
  331. package/dist/chat/typed-interrupts/typed-interrupt-notice.d.ts +45 -0
  332. package/dist/chat/typed-interrupts/typed-interrupt-notice.js +70 -0
  333. package/dist/chat/typed-interrupts/typed-interrupt-notice.js.map +1 -0
  334. package/dist/chat/typed-interrupts/typed-interrupt-panel.cjs +76 -0
  335. package/dist/chat/typed-interrupts/typed-interrupt-panel.cjs.map +1 -0
  336. package/dist/chat/typed-interrupts/typed-interrupt-panel.d.ts +11 -0
  337. package/dist/chat/typed-interrupts/typed-interrupt-panel.js +76 -0
  338. package/dist/chat/typed-interrupts/typed-interrupt-panel.js.map +1 -0
  339. package/dist/chat/typed-interrupts/typed-interrupt-types.d.ts +46 -0
  340. package/dist/chat/typed-interrupts/use-interrupt-draft.cjs +106 -0
  341. package/dist/chat/typed-interrupts/use-interrupt-draft.cjs.map +1 -0
  342. package/dist/chat/typed-interrupts/use-interrupt-draft.d.ts +29 -0
  343. package/dist/chat/typed-interrupts/use-interrupt-draft.js +106 -0
  344. package/dist/chat/typed-interrupts/use-interrupt-draft.js.map +1 -0
  345. package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.cjs +231 -0
  346. package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.cjs.map +1 -0
  347. package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.d.ts +66 -0
  348. package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.js +231 -0
  349. package/dist/chat/typed-interrupts/use-statewire-typed-interrupt.js.map +1 -0
  350. package/dist/chat-ui/composer/composer-named-agents.cjs +13 -0
  351. package/dist/chat-ui/composer/composer-named-agents.cjs.map +1 -0
  352. package/dist/chat-ui/composer/composer-named-agents.d.ts +20 -0
  353. package/dist/chat-ui/composer/composer-named-agents.js +13 -0
  354. package/dist/chat-ui/composer/composer-named-agents.js.map +1 -0
  355. package/dist/chat-ui/composer/slash-command-menu.cjs +143 -0
  356. package/dist/chat-ui/composer/slash-command-menu.cjs.map +1 -0
  357. package/dist/chat-ui/composer/slash-command-menu.d.ts +19 -0
  358. package/dist/chat-ui/composer/slash-command-menu.js +143 -0
  359. package/dist/chat-ui/composer/slash-command-menu.js.map +1 -0
  360. package/dist/chat-ui/composer/slash-commands-extension.cjs +51 -0
  361. package/dist/chat-ui/composer/slash-commands-extension.cjs.map +1 -0
  362. package/dist/chat-ui/composer/slash-commands-extension.d.ts +39 -0
  363. package/dist/chat-ui/composer/slash-commands-extension.js +51 -0
  364. package/dist/chat-ui/composer/slash-commands-extension.js.map +1 -0
  365. package/dist/chat-ui/composer/slash-commands.cjs +74 -0
  366. package/dist/chat-ui/composer/slash-commands.cjs.map +1 -0
  367. package/dist/chat-ui/composer/slash-commands.d.ts +82 -0
  368. package/dist/chat-ui/composer/slash-commands.js +74 -0
  369. package/dist/chat-ui/composer/slash-commands.js.map +1 -0
  370. package/dist/chat-ui/composer/tiptap-composer.cjs +135 -9
  371. package/dist/chat-ui/composer/tiptap-composer.cjs.map +1 -1
  372. package/dist/chat-ui/composer/tiptap-composer.d.ts +61 -2
  373. package/dist/chat-ui/composer/tiptap-composer.js +135 -9
  374. package/dist/chat-ui/composer/tiptap-composer.js.map +1 -1
  375. package/dist/chat-ui/index.cjs +5 -0
  376. package/dist/chat-ui/index.cjs.map +1 -1
  377. package/dist/chat-ui/index.d.ts +4 -2
  378. package/dist/chat-ui/index.js +5 -0
  379. package/dist/chat-ui/index.js.map +1 -1
  380. package/dist/chat-ui/mentions/mention-chip.cjs +10 -4
  381. package/dist/chat-ui/mentions/mention-chip.cjs.map +1 -1
  382. package/dist/chat-ui/mentions/mention-chip.js +11 -5
  383. package/dist/chat-ui/mentions/mention-chip.js.map +1 -1
  384. package/dist/chat-ui/mentions/mention-extension.cjs +8 -1
  385. package/dist/chat-ui/mentions/mention-extension.cjs.map +1 -1
  386. package/dist/chat-ui/mentions/mention-extension.js +8 -1
  387. package/dist/chat-ui/mentions/mention-extension.js.map +1 -1
  388. package/dist/chat-ui/mentions/suggestions/components/get-scope-name.cjs +1 -0
  389. package/dist/chat-ui/mentions/suggestions/components/get-scope-name.cjs.map +1 -1
  390. package/dist/chat-ui/mentions/suggestions/components/get-scope-name.js +1 -0
  391. package/dist/chat-ui/mentions/suggestions/components/get-scope-name.js.map +1 -1
  392. package/dist/chat-ui/mentions/suggestions/components/mention-icon.cjs +20 -2
  393. package/dist/chat-ui/mentions/suggestions/components/mention-icon.cjs.map +1 -1
  394. package/dist/chat-ui/mentions/suggestions/components/mention-icon.d.ts +10 -1
  395. package/dist/chat-ui/mentions/suggestions/components/mention-icon.js +22 -4
  396. package/dist/chat-ui/mentions/suggestions/components/mention-icon.js.map +1 -1
  397. package/dist/chat-ui/mentions/suggestions/components/menu-item.cjs +1 -1
  398. package/dist/chat-ui/mentions/suggestions/components/menu-item.cjs.map +1 -1
  399. package/dist/chat-ui/mentions/suggestions/components/menu-item.js +1 -1
  400. package/dist/chat-ui/mentions/suggestions/components/menu-item.js.map +1 -1
  401. package/dist/chat-ui/mentions/suggestions/data/api-client.cjs +45 -0
  402. package/dist/chat-ui/mentions/suggestions/data/api-client.cjs.map +1 -1
  403. package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +48 -0
  404. package/dist/chat-ui/mentions/suggestions/data/api-client.js +45 -0
  405. package/dist/chat-ui/mentions/suggestions/data/api-client.js.map +1 -1
  406. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icon-names.generated.cjs +89 -0
  407. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icon-names.generated.cjs.map +1 -0
  408. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icon-names.generated.d.ts +8 -0
  409. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icon-names.generated.js +89 -0
  410. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icon-names.generated.js.map +1 -0
  411. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.cjs +140 -116
  412. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.cjs.map +1 -1
  413. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.d.ts +46 -12
  414. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.js +141 -117
  415. package/dist/chat-ui/mentions/suggestions/data/sources/asset-type-icons.js.map +1 -1
  416. package/dist/chat-ui/mentions/suggestions/data/sources/index.cjs +272 -25
  417. package/dist/chat-ui/mentions/suggestions/data/sources/index.cjs.map +1 -1
  418. package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +88 -10
  419. package/dist/chat-ui/mentions/suggestions/data/sources/index.js +274 -27
  420. package/dist/chat-ui/mentions/suggestions/data/sources/index.js.map +1 -1
  421. package/dist/chat-ui/mentions/suggestions/data/types.cjs.map +1 -1
  422. package/dist/chat-ui/mentions/suggestions/data/types.d.ts +27 -1
  423. package/dist/chat-ui/mentions/suggestions/data/types.js.map +1 -1
  424. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.cjs +56 -5
  425. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.cjs.map +1 -1
  426. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +26 -6
  427. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.js +57 -6
  428. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.js.map +1 -1
  429. package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.cjs +34 -17
  430. package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.cjs.map +1 -1
  431. package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.d.ts +19 -1
  432. package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.js +35 -18
  433. package/dist/chat-ui/mentions/suggestions/mention-suggestions.extension.js.map +1 -1
  434. package/dist/chat-ui/mentions/use-asset-icon-app-url.cjs +12 -0
  435. package/dist/chat-ui/mentions/use-asset-icon-app-url.cjs.map +1 -0
  436. package/dist/chat-ui/mentions/use-asset-icon-app-url.d.ts +8 -0
  437. package/dist/chat-ui/mentions/use-asset-icon-app-url.js +12 -0
  438. package/dist/chat-ui/mentions/use-asset-icon-app-url.js.map +1 -0
  439. package/dist/chat-ui/statewire.d.ts +1 -1
  440. package/dist/chat-ui/thread/statewire-history-edge.cjs +15 -0
  441. package/dist/chat-ui/thread/statewire-history-edge.cjs.map +1 -1
  442. package/dist/chat-ui/thread/statewire-history-edge.d.ts +4 -1
  443. package/dist/chat-ui/thread/statewire-history-edge.js +15 -0
  444. package/dist/chat-ui/thread/statewire-history-edge.js.map +1 -1
  445. package/dist/collab/client.cjs +41 -6
  446. package/dist/collab/client.cjs.map +1 -1
  447. package/dist/collab/client.d.ts +38 -7
  448. package/dist/collab/client.js +41 -6
  449. package/dist/collab/client.js.map +1 -1
  450. package/dist/composer/ComposerAttachedReferences.cjs +119 -0
  451. package/dist/composer/ComposerAttachedReferences.cjs.map +1 -0
  452. package/dist/composer/ComposerAttachedReferences.d.ts +26 -0
  453. package/dist/composer/ComposerAttachedReferences.js +119 -0
  454. package/dist/composer/ComposerAttachedReferences.js.map +1 -0
  455. package/dist/composer/ComposerNamedAgents.cjs +63 -0
  456. package/dist/composer/ComposerNamedAgents.cjs.map +1 -0
  457. package/dist/composer/ComposerNamedAgents.d.ts +16 -0
  458. package/dist/composer/ComposerNamedAgents.js +63 -0
  459. package/dist/composer/ComposerNamedAgents.js.map +1 -0
  460. package/dist/composer/attached-references.cjs +159 -0
  461. package/dist/composer/attached-references.cjs.map +1 -0
  462. package/dist/composer/attached-references.d.ts +86 -0
  463. package/dist/composer/attached-references.js +159 -0
  464. package/dist/composer/attached-references.js.map +1 -0
  465. package/dist/composer/build-composed-message.cjs +14 -7
  466. package/dist/composer/build-composed-message.cjs.map +1 -1
  467. package/dist/composer/build-composed-message.d.ts +6 -1
  468. package/dist/composer/build-composed-message.js +14 -7
  469. package/dist/composer/build-composed-message.js.map +1 -1
  470. package/dist/composer/composer-handoff.cjs +6 -2
  471. package/dist/composer/composer-handoff.cjs.map +1 -1
  472. package/dist/composer/composer-handoff.d.ts +7 -1
  473. package/dist/composer/composer-handoff.js +6 -2
  474. package/dist/composer/composer-handoff.js.map +1 -1
  475. package/dist/composer/folder-upload.cjs +149 -0
  476. package/dist/composer/folder-upload.cjs.map +1 -0
  477. package/dist/composer/folder-upload.d.ts +79 -0
  478. package/dist/composer/folder-upload.js +149 -0
  479. package/dist/composer/folder-upload.js.map +1 -0
  480. package/dist/composer/index.d.ts +1 -1
  481. package/dist/composer/staged-message-metadata.cjs +12 -0
  482. package/dist/composer/staged-message-metadata.cjs.map +1 -0
  483. package/dist/composer/staged-message-metadata.d.ts +15 -0
  484. package/dist/composer/staged-message-metadata.js +12 -0
  485. package/dist/composer/staged-message-metadata.js.map +1 -0
  486. package/dist/composer/useAttachToChat.cjs +35 -0
  487. package/dist/composer/useAttachToChat.cjs.map +1 -0
  488. package/dist/composer/useAttachToChat.d.ts +54 -0
  489. package/dist/composer/useAttachToChat.js +35 -0
  490. package/dist/composer/useAttachToChat.js.map +1 -0
  491. package/dist/composer/useAttachedReferencesComposerProps.cjs +19 -0
  492. package/dist/composer/useAttachedReferencesComposerProps.cjs.map +1 -0
  493. package/dist/composer/useAttachedReferencesComposerProps.d.ts +12 -0
  494. package/dist/composer/useAttachedReferencesComposerProps.js +19 -0
  495. package/dist/composer/useAttachedReferencesComposerProps.js.map +1 -0
  496. package/dist/composer/useFileUpload.cjs +95 -7
  497. package/dist/composer/useFileUpload.cjs.map +1 -1
  498. package/dist/composer/useFileUpload.d.ts +21 -2
  499. package/dist/composer/useFileUpload.js +95 -7
  500. package/dist/composer/useFileUpload.js.map +1 -1
  501. package/dist/data/athena-api-error.cjs +125 -0
  502. package/dist/data/athena-api-error.cjs.map +1 -0
  503. package/dist/data/athena-api-error.d.ts +96 -0
  504. package/dist/data/athena-api-error.js +125 -0
  505. package/dist/data/athena-api-error.js.map +1 -0
  506. package/dist/data/athena-data-client.cjs +106 -0
  507. package/dist/data/athena-data-client.cjs.map +1 -0
  508. package/dist/data/athena-data-client.d.ts +74 -0
  509. package/dist/data/athena-data-client.js +106 -0
  510. package/dist/data/athena-data-client.js.map +1 -0
  511. package/dist/data/athena-member.cjs +93 -0
  512. package/dist/data/athena-member.cjs.map +1 -0
  513. package/dist/data/athena-member.d.ts +125 -0
  514. package/dist/data/athena-member.js +93 -0
  515. package/dist/data/athena-member.js.map +1 -0
  516. package/dist/data/athena-request.cjs +460 -0
  517. package/dist/data/athena-request.cjs.map +1 -0
  518. package/dist/data/athena-request.d.ts +120 -0
  519. package/dist/data/athena-request.js +460 -0
  520. package/dist/data/athena-request.js.map +1 -0
  521. package/dist/data/use-athena-fetch.cjs +14 -0
  522. package/dist/data/use-athena-fetch.cjs.map +1 -0
  523. package/dist/data/use-athena-fetch.d.ts +19 -0
  524. package/dist/data/use-athena-fetch.js +14 -0
  525. package/dist/data/use-athena-fetch.js.map +1 -0
  526. package/dist/data/use-athena-graphql.cjs +66 -0
  527. package/dist/data/use-athena-graphql.cjs.map +1 -0
  528. package/dist/data/use-athena-graphql.d.ts +56 -0
  529. package/dist/data/use-athena-graphql.js +66 -0
  530. package/dist/data/use-athena-graphql.js.map +1 -0
  531. package/dist/data/use-athena-rest.cjs +33 -0
  532. package/dist/data/use-athena-rest.cjs.map +1 -0
  533. package/dist/data/use-athena-rest.d.ts +21 -0
  534. package/dist/data/use-athena-rest.js +33 -0
  535. package/dist/data/use-athena-rest.js.map +1 -0
  536. package/dist/data/use-semantic-query.cjs +44 -0
  537. package/dist/data/use-semantic-query.cjs.map +1 -0
  538. package/dist/data/use-semantic-query.d.ts +92 -0
  539. package/dist/data/use-semantic-query.js +44 -0
  540. package/dist/data/use-semantic-query.js.map +1 -0
  541. package/dist/diagnostics/athena-diagnostics.cjs.map +1 -1
  542. package/dist/diagnostics/athena-diagnostics.d.ts +5 -1
  543. package/dist/diagnostics/athena-diagnostics.js.map +1 -1
  544. package/dist/diagnostics/errors.cjs +7 -0
  545. package/dist/diagnostics/errors.cjs.map +1 -1
  546. package/dist/diagnostics/errors.d.ts +7 -0
  547. package/dist/diagnostics/errors.js +7 -0
  548. package/dist/diagnostics/errors.js.map +1 -1
  549. package/dist/index.cjs +155 -11
  550. package/dist/index.cjs.map +1 -1
  551. package/dist/index.d.ts +72 -13
  552. package/dist/index.js +148 -4
  553. package/dist/index.js.map +1 -1
  554. package/dist/keryx-http/src/initial-sync.cjs +64 -16
  555. package/dist/keryx-http/src/initial-sync.cjs.map +1 -1
  556. package/dist/keryx-http/src/initial-sync.d.ts +31 -1
  557. package/dist/keryx-http/src/initial-sync.js +64 -16
  558. package/dist/keryx-http/src/initial-sync.js.map +1 -1
  559. package/dist/keryx-http/src/own-awareness.cjs +20 -0
  560. package/dist/keryx-http/src/own-awareness.cjs.map +1 -0
  561. package/dist/keryx-http/src/own-awareness.d.ts +50 -0
  562. package/dist/keryx-http/src/own-awareness.js +20 -0
  563. package/dist/keryx-http/src/own-awareness.js.map +1 -0
  564. package/dist/keryx-http/src/update-attributions.cjs +26 -1
  565. package/dist/keryx-http/src/update-attributions.cjs.map +1 -1
  566. package/dist/keryx-http/src/update-attributions.d.ts +10 -1
  567. package/dist/keryx-http/src/update-attributions.js +26 -1
  568. package/dist/keryx-http/src/update-attributions.js.map +1 -1
  569. package/dist/offline/chat-outbox.cjs +262 -26
  570. package/dist/offline/chat-outbox.cjs.map +1 -1
  571. package/dist/offline/chat-outbox.d.ts +90 -12
  572. package/dist/offline/chat-outbox.js +263 -27
  573. package/dist/offline/chat-outbox.js.map +1 -1
  574. package/dist/provider/AthenaProvider.cjs +60 -22
  575. package/dist/provider/AthenaProvider.cjs.map +1 -1
  576. package/dist/provider/AthenaProvider.d.ts +24 -8
  577. package/dist/provider/AthenaProvider.js +61 -23
  578. package/dist/provider/AthenaProvider.js.map +1 -1
  579. package/dist/react/package.json.cjs +1 -1
  580. package/dist/react/package.json.js +1 -1
  581. package/dist/references/src/anchors/parse.cjs +11 -1
  582. package/dist/references/src/anchors/parse.cjs.map +1 -1
  583. package/dist/references/src/anchors/parse.js +11 -1
  584. package/dist/references/src/anchors/parse.js.map +1 -1
  585. package/dist/references/src/anchors/schemas.d.ts +1 -0
  586. package/dist/references/src/anchors/serialize.cjs +1 -0
  587. package/dist/references/src/anchors/serialize.cjs.map +1 -1
  588. package/dist/references/src/anchors/serialize.js +1 -0
  589. package/dist/references/src/anchors/serialize.js.map +1 -1
  590. package/dist/references/src/anchors/types.cjs +5 -0
  591. package/dist/references/src/anchors/types.cjs.map +1 -1
  592. package/dist/references/src/anchors/types.d.ts +9 -0
  593. package/dist/references/src/anchors/types.js +5 -0
  594. package/dist/references/src/anchors/types.js.map +1 -1
  595. package/dist/references/src/attachable.cjs +149 -0
  596. package/dist/references/src/attachable.cjs.map +1 -0
  597. package/dist/references/src/attachable.d.ts +87 -0
  598. package/dist/references/src/attachable.js +149 -0
  599. package/dist/references/src/attachable.js.map +1 -0
  600. package/dist/references/src/schemas.d.ts +2 -0
  601. package/dist/runtime/StatewirePlanModeLaneSync.cjs +93 -0
  602. package/dist/runtime/StatewirePlanModeLaneSync.cjs.map +1 -0
  603. package/dist/runtime/StatewirePlanModeLaneSync.d.ts +34 -0
  604. package/dist/runtime/StatewirePlanModeLaneSync.js +93 -0
  605. package/dist/runtime/StatewirePlanModeLaneSync.js.map +1 -0
  606. package/dist/runtime/StatewireThreadConfigLaneSync.cjs +2 -0
  607. package/dist/runtime/StatewireThreadConfigLaneSync.cjs.map +1 -1
  608. package/dist/runtime/StatewireThreadConfigLaneSync.d.ts +4 -0
  609. package/dist/runtime/StatewireThreadConfigLaneSync.js +2 -0
  610. package/dist/runtime/StatewireThreadConfigLaneSync.js.map +1 -1
  611. package/dist/runtime/statewire-plan-mode.cjs +71 -0
  612. package/dist/runtime/statewire-plan-mode.cjs.map +1 -0
  613. package/dist/runtime/statewire-plan-mode.d.ts +88 -0
  614. package/dist/runtime/statewire-plan-mode.js +71 -0
  615. package/dist/runtime/statewire-plan-mode.js.map +1 -0
  616. package/dist/runtime/statewire-run-config.cjs +3 -1
  617. package/dist/runtime/statewire-run-config.cjs.map +1 -1
  618. package/dist/runtime/statewire-run-config.d.ts +7 -0
  619. package/dist/runtime/statewire-run-config.js +3 -1
  620. package/dist/runtime/statewire-run-config.js.map +1 -1
  621. package/dist/runtime/statewire-session-key.cjs +11 -5
  622. package/dist/runtime/statewire-session-key.cjs.map +1 -1
  623. package/dist/runtime/statewire-session-key.d.ts +22 -10
  624. package/dist/runtime/statewire-session-key.js +11 -5
  625. package/dist/runtime/statewire-session-key.js.map +1 -1
  626. package/dist/runtime/useAthenaStatewireRuntime.cjs +64 -9
  627. package/dist/runtime/useAthenaStatewireRuntime.cjs.map +1 -1
  628. package/dist/runtime/useAthenaStatewireRuntime.d.ts +26 -10
  629. package/dist/runtime/useAthenaStatewireRuntime.js +66 -11
  630. package/dist/runtime/useAthenaStatewireRuntime.js.map +1 -1
  631. package/dist/search/useAthenaAssets.cjs +394 -0
  632. package/dist/search/useAthenaAssets.cjs.map +1 -0
  633. package/dist/search/useAthenaAssets.d.ts +186 -0
  634. package/dist/search/useAthenaAssets.js +394 -0
  635. package/dist/search/useAthenaAssets.js.map +1 -0
  636. package/dist/sheet-range/index.cjs +4 -0
  637. package/dist/sheet-range/index.cjs.map +1 -1
  638. package/dist/sheet-range/index.d.ts +4 -2
  639. package/dist/sheet-range/index.js +4 -0
  640. package/dist/sheet-range/index.js.map +1 -1
  641. package/dist/sheet-range/query-range.cjs +102 -0
  642. package/dist/sheet-range/query-range.cjs.map +1 -0
  643. package/dist/sheet-range/query-range.d.ts +46 -0
  644. package/dist/sheet-range/query-range.js +102 -0
  645. package/dist/sheet-range/query-range.js.map +1 -0
  646. package/dist/styles.css +1 -1
  647. package/dist/subagents/index.cjs +49 -0
  648. package/dist/subagents/index.cjs.map +1 -0
  649. package/dist/subagents/index.d.ts +16 -0
  650. package/dist/subagents/index.js +49 -0
  651. package/dist/subagents/index.js.map +1 -0
  652. package/dist/subagents/lane-follow.cjs +19 -0
  653. package/dist/subagents/lane-follow.cjs.map +1 -0
  654. package/dist/subagents/lane-follow.d.ts +9 -0
  655. package/dist/subagents/lane-follow.js +19 -0
  656. package/dist/subagents/lane-follow.js.map +1 -0
  657. package/dist/subagents/lane-model.cjs +178 -0
  658. package/dist/subagents/lane-model.cjs.map +1 -0
  659. package/dist/subagents/lane-model.d.ts +140 -0
  660. package/dist/subagents/lane-model.js +178 -0
  661. package/dist/subagents/lane-model.js.map +1 -0
  662. package/dist/subagents/lane-parts.cjs +517 -0
  663. package/dist/subagents/lane-parts.cjs.map +1 -0
  664. package/dist/subagents/lane-parts.d.ts +130 -0
  665. package/dist/subagents/lane-parts.js +517 -0
  666. package/dist/subagents/lane-parts.js.map +1 -0
  667. package/dist/subagents/subagent-lane-group.cjs +215 -0
  668. package/dist/subagents/subagent-lane-group.cjs.map +1 -0
  669. package/dist/subagents/subagent-lane-group.d.ts +67 -0
  670. package/dist/subagents/subagent-lane-group.js +215 -0
  671. package/dist/subagents/subagent-lane-group.js.map +1 -0
  672. package/dist/subagents/subagent-transcript-drawer.cjs +431 -0
  673. package/dist/subagents/subagent-transcript-drawer.cjs.map +1 -0
  674. package/dist/subagents/subagent-transcript-drawer.d.ts +78 -0
  675. package/dist/subagents/subagent-transcript-drawer.js +431 -0
  676. package/dist/subagents/subagent-transcript-drawer.js.map +1 -0
  677. package/dist/subagents/task-subagent-group.cjs +115 -0
  678. package/dist/subagents/task-subagent-group.cjs.map +1 -0
  679. package/dist/subagents/task-subagent-group.d.ts +36 -0
  680. package/dist/subagents/task-subagent-group.js +115 -0
  681. package/dist/subagents/task-subagent-group.js.map +1 -0
  682. package/dist/subagents/use-omitted-images-in-view.cjs +68 -0
  683. package/dist/subagents/use-omitted-images-in-view.cjs.map +1 -0
  684. package/dist/subagents/use-omitted-images-in-view.d.ts +21 -0
  685. package/dist/subagents/use-omitted-images-in-view.js +68 -0
  686. package/dist/subagents/use-omitted-images-in-view.js.map +1 -0
  687. package/dist/threads/Inbox.cjs +2 -2
  688. package/dist/threads/Inbox.cjs.map +1 -1
  689. package/dist/threads/SessionList.cjs +6 -6
  690. package/dist/threads/SessionList.cjs.map +1 -1
  691. package/dist/threads/SessionsPage.cjs +13 -7
  692. package/dist/threads/SessionsPage.cjs.map +1 -1
  693. package/dist/threads/SessionsPage.d.ts +10 -1
  694. package/dist/threads/SessionsPage.js +9 -3
  695. package/dist/threads/SessionsPage.js.map +1 -1
  696. package/dist/threads/session-list-model.cjs.map +1 -1
  697. package/dist/threads/session-list-model.d.ts +2 -1
  698. package/dist/threads/session-list-model.js.map +1 -1
  699. package/dist/threads/session-row-parts.cjs +3 -3
  700. package/dist/threads/session-row-parts.cjs.map +1 -1
  701. package/dist/threads/sessions-page-model.cjs +13 -5
  702. package/dist/threads/sessions-page-model.cjs.map +1 -1
  703. package/dist/threads/sessions-page-model.d.ts +7 -0
  704. package/dist/threads/sessions-page-model.js +11 -3
  705. package/dist/threads/sessions-page-model.js.map +1 -1
  706. package/dist/threads/sessions-page-storage.cjs +8 -8
  707. package/dist/threads/sessions-page-storage.cjs.map +1 -1
  708. package/dist/threads/sessions-page-storage.d.ts +5 -1
  709. package/dist/threads/sessions-page-storage.js +8 -8
  710. package/dist/threads/sessions-page-storage.js.map +1 -1
  711. package/dist/threads/statewire-thread-list.cjs +14 -2
  712. package/dist/threads/statewire-thread-list.cjs.map +1 -1
  713. package/dist/threads/statewire-thread-list.d.ts +11 -2
  714. package/dist/threads/statewire-thread-list.js +14 -2
  715. package/dist/threads/statewire-thread-list.js.map +1 -1
  716. package/dist/threads/use-athena-sessions.cjs +1 -0
  717. package/dist/threads/use-athena-sessions.cjs.map +1 -1
  718. package/dist/threads/use-athena-sessions.d.ts +7 -0
  719. package/dist/threads/use-athena-sessions.js +1 -0
  720. package/dist/threads/use-athena-sessions.js.map +1 -1
  721. package/dist/threads/use-athena-thread-agent.cjs +31 -0
  722. package/dist/threads/use-athena-thread-agent.cjs.map +1 -0
  723. package/dist/threads/use-athena-thread-agent.d.ts +38 -0
  724. package/dist/threads/use-athena-thread-agent.js +31 -0
  725. package/dist/threads/use-athena-thread-agent.js.map +1 -0
  726. package/dist/threads/use-athena-thread-plan-mode.cjs +18 -0
  727. package/dist/threads/use-athena-thread-plan-mode.cjs.map +1 -0
  728. package/dist/threads/use-athena-thread-plan-mode.d.ts +18 -0
  729. package/dist/threads/use-athena-thread-plan-mode.js +18 -0
  730. package/dist/threads/use-athena-thread-plan-mode.js.map +1 -0
  731. package/dist/threads/use-rest-conversation-history.d.ts +1 -0
  732. package/dist/tools/agent-creations.cjs +97 -0
  733. package/dist/tools/agent-creations.cjs.map +1 -0
  734. package/dist/tools/agent-creations.d.ts +38 -0
  735. package/dist/tools/agent-creations.js +97 -0
  736. package/dist/tools/agent-creations.js.map +1 -0
  737. package/dist/tools/agent-highlights.cjs +100 -0
  738. package/dist/tools/agent-highlights.cjs.map +1 -0
  739. package/dist/tools/agent-highlights.d.ts +57 -0
  740. package/dist/tools/agent-highlights.js +100 -0
  741. package/dist/tools/agent-highlights.js.map +1 -0
  742. package/dist/tools/append-document-tool-ui.cjs +1 -0
  743. package/dist/tools/append-document-tool-ui.cjs.map +1 -1
  744. package/dist/tools/append-document-tool-ui.d.ts +7 -0
  745. package/dist/tools/append-document-tool-ui.js +2 -1
  746. package/dist/tools/append-document-tool-ui.js.map +1 -1
  747. package/dist/tools/auto-open-tools.cjs +144 -71
  748. package/dist/tools/auto-open-tools.cjs.map +1 -1
  749. package/dist/tools/auto-open-tools.d.ts +131 -1
  750. package/dist/tools/auto-open-tools.js +145 -72
  751. package/dist/tools/auto-open-tools.js.map +1 -1
  752. package/dist/tools/browser-tool-uis.cjs +594 -0
  753. package/dist/tools/browser-tool-uis.cjs.map +1 -0
  754. package/dist/tools/browser-tool-uis.d.ts +8 -0
  755. package/dist/tools/browser-tool-uis.js +594 -0
  756. package/dist/tools/browser-tool-uis.js.map +1 -0
  757. package/dist/tools/computer-asset-tool-uis.cjs +313 -0
  758. package/dist/tools/computer-asset-tool-uis.cjs.map +1 -0
  759. package/dist/tools/computer-asset-tool-uis.d.ts +5 -0
  760. package/dist/tools/computer-asset-tool-uis.js +313 -0
  761. package/dist/tools/computer-asset-tool-uis.js.map +1 -0
  762. package/dist/tools/document-edit-tool-uis.cjs +218 -0
  763. package/dist/tools/document-edit-tool-uis.cjs.map +1 -0
  764. package/dist/tools/document-edit-tool-uis.d.ts +40 -0
  765. package/dist/tools/document-edit-tool-uis.js +218 -0
  766. package/dist/tools/document-edit-tool-uis.js.map +1 -0
  767. package/dist/tools/drive-tool-uis.cjs +429 -0
  768. package/dist/tools/drive-tool-uis.cjs.map +1 -0
  769. package/dist/tools/drive-tool-uis.d.ts +121 -0
  770. package/dist/tools/drive-tool-uis.js +429 -0
  771. package/dist/tools/drive-tool-uis.js.map +1 -0
  772. package/dist/tools/email-calendar-tool-uis.cjs +789 -0
  773. package/dist/tools/email-calendar-tool-uis.cjs.map +1 -0
  774. package/dist/tools/email-calendar-tool-uis.d.ts +129 -0
  775. package/dist/tools/email-calendar-tool-uis.js +789 -0
  776. package/dist/tools/email-calendar-tool-uis.js.map +1 -0
  777. package/dist/tools/ontology-tool-uis.cjs +83 -0
  778. package/dist/tools/ontology-tool-uis.cjs.map +1 -0
  779. package/dist/tools/ontology-tool-uis.d.ts +9 -0
  780. package/dist/tools/ontology-tool-uis.js +83 -0
  781. package/dist/tools/ontology-tool-uis.js.map +1 -0
  782. package/dist/tools/orchestration-tool-uis.cjs +586 -0
  783. package/dist/tools/orchestration-tool-uis.cjs.map +1 -0
  784. package/dist/tools/orchestration-tool-uis.d.ts +141 -0
  785. package/dist/tools/orchestration-tool-uis.js +586 -0
  786. package/dist/tools/orchestration-tool-uis.js.map +1 -0
  787. package/dist/tools/presentation-edit-tool-uis.cjs +516 -0
  788. package/dist/tools/presentation-edit-tool-uis.cjs.map +1 -0
  789. package/dist/tools/presentation-edit-tool-uis.d.ts +73 -0
  790. package/dist/tools/presentation-edit-tool-uis.js +516 -0
  791. package/dist/tools/presentation-edit-tool-uis.js.map +1 -0
  792. package/dist/tools/project-tool-uis.cjs +213 -0
  793. package/dist/tools/project-tool-uis.cjs.map +1 -0
  794. package/dist/tools/project-tool-uis.d.ts +14 -0
  795. package/dist/tools/project-tool-uis.js +213 -0
  796. package/dist/tools/project-tool-uis.js.map +1 -0
  797. package/dist/tools/sandbox-tool-uis.cjs +491 -0
  798. package/dist/tools/sandbox-tool-uis.cjs.map +1 -0
  799. package/dist/tools/sandbox-tool-uis.d.ts +116 -0
  800. package/dist/tools/sandbox-tool-uis.js +491 -0
  801. package/dist/tools/sandbox-tool-uis.js.map +1 -0
  802. package/dist/tools/sheet-query-tool-ui.cjs +138 -0
  803. package/dist/tools/sheet-query-tool-ui.cjs.map +1 -0
  804. package/dist/tools/sheet-query-tool-ui.d.ts +15 -0
  805. package/dist/tools/sheet-query-tool-ui.js +138 -0
  806. package/dist/tools/sheet-query-tool-ui.js.map +1 -0
  807. package/dist/tools/studio-screenshot-tool-uis.cjs +262 -0
  808. package/dist/tools/studio-screenshot-tool-uis.cjs.map +1 -0
  809. package/dist/tools/studio-screenshot-tool-uis.d.ts +52 -0
  810. package/dist/tools/studio-screenshot-tool-uis.js +262 -0
  811. package/dist/tools/studio-screenshot-tool-uis.js.map +1 -0
  812. package/dist/tools/subagent-task-tool-ui.cjs +24 -475
  813. package/dist/tools/subagent-task-tool-ui.cjs.map +1 -1
  814. package/dist/tools/subagent-task-tool-ui.d.ts +19 -103
  815. package/dist/tools/subagent-task-tool-ui.js +28 -479
  816. package/dist/tools/subagent-task-tool-ui.js.map +1 -1
  817. package/dist/tools/tool-summary.cjs +36 -0
  818. package/dist/tools/tool-summary.cjs.map +1 -1
  819. package/dist/tools/tool-summary.js +36 -0
  820. package/dist/tools/tool-summary.js.map +1 -1
  821. package/dist/tools/tool-uis.cjs +181 -53
  822. package/dist/tools/tool-uis.cjs.map +1 -1
  823. package/dist/tools/tool-uis.d.ts +40 -0
  824. package/dist/tools/tool-uis.js +183 -55
  825. package/dist/tools/tool-uis.js.map +1 -1
  826. package/dist/typed-interrupts/index.cjs +15 -0
  827. package/dist/typed-interrupts/index.cjs.map +1 -0
  828. package/dist/typed-interrupts/index.d.ts +20 -0
  829. package/dist/typed-interrupts/index.js +15 -0
  830. package/dist/typed-interrupts/index.js.map +1 -0
  831. package/dist/version.cjs +4 -0
  832. package/dist/version.cjs.map +1 -1
  833. package/dist/version.d.ts +9 -0
  834. package/dist/version.js +4 -0
  835. package/dist/version.js.map +1 -1
  836. package/dist/workbench/live-desktop-api.cjs +2 -1
  837. package/dist/workbench/live-desktop-api.cjs.map +1 -1
  838. package/dist/workbench/live-desktop-api.js +2 -1
  839. package/dist/workbench/live-desktop-api.js.map +1 -1
  840. package/dist/workbench/session-workbench-panes.cjs +6 -6
  841. package/dist/workbench/session-workbench-panes.cjs.map +1 -1
  842. package/dist/workbench/session-workspace-api.cjs +7 -2
  843. package/dist/workbench/session-workspace-api.cjs.map +1 -1
  844. package/dist/workbench/session-workspace-api.d.ts +10 -0
  845. package/dist/workbench/session-workspace-api.js +7 -2
  846. package/dist/workbench/session-workspace-api.js.map +1 -1
  847. package/package.json +28 -6
  848. package/dist/agent-runtime/src/chat-outbox-store.cjs +0 -510
  849. package/dist/agent-runtime/src/chat-outbox-store.cjs.map +0 -1
  850. package/dist/agent-runtime/src/chat-outbox-store.d.ts +0 -210
  851. package/dist/agent-runtime/src/chat-outbox-store.js +0 -510
  852. package/dist/agent-runtime/src/chat-outbox-store.js.map +0 -1
@@ -2,6 +2,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { TiptapText } from "./tiptap-text.js";
3
3
  import { AthenaChatErrorBoundary } from "./AthenaChatErrorBoundary.js";
4
4
  import { StatewireApprovalCard } from "./StatewireApprovalCard.js";
5
+ import { statewireTypedInterrupts } from "./typed-interrupts/StatewireTypedInterruptCard.js";
5
6
  import { AthenaPlanStrip } from "./AthenaPlanStrip.js";
6
7
  import { StatewireQueuedMessages } from "./StatewireQueuedMessages.js";
7
8
  import { StatewireConnectionBanner, StatewireErrorBanner } from "./statewire-banners.js";
@@ -30,6 +31,7 @@ import { ChatComposerDock } from "../chat-ui/thread/chat-composer-dock.js";
30
31
  import { ChatThreadShell } from "../chat-ui/thread/chat-thread-shell.js";
31
32
  import { HandoffCursorReveal } from "../chat-ui/thread/handoff-cursor.js";
32
33
  import { StatewireHistoryEdge } from "../chat-ui/thread/statewire-history-edge.js";
34
+ import { DeepAgentLaneFollowScope } from "../subagents/lane-follow.js";
33
35
  import { ThreadLoadingOverlay } from "../chat-ui/thread/thread-loading-overlay.js";
34
36
  import { ComposerSendOrStop } from "../chat-ui/thread/composer-send-or-stop.js";
35
37
  import { resolveComposerAction } from "../chat-ui/composer/composer-action.js";
@@ -43,6 +45,15 @@ import { useAthenaDictationEngine } from "../dictation/use-athena-dictation-engi
43
45
  import { TiptapComposer } from "../chat-ui/composer/tiptap-composer.js";
44
46
  import { MentionAuthCtx } from "../chat-ui/mentions/suggestions/data/api-client.js";
45
47
  import { useAccountIdentity } from "../chat-ui/mentions/use-account-workspace-id.js";
48
+ import { readDeepAgentNamedAgents, keepDeepAgentNamedAgentsForIdentity } from "../agent-runtime/src/named-agents.js";
49
+ import { stageComposerNamedAgents } from "../chat-ui/composer/composer-named-agents.js";
50
+ import { useCatalogQueryClient, useAthenaViewerIsAdmin } from "../catalog/runtime-catalog.js";
51
+ import { usePendingAttachedReferences, stageThreadAttachedReferencesForSend, clearAttachedReferences, keepAttachedReferencesForIdentity } from "../composer/attached-references.js";
52
+ import { takeStagedMessageMetadata } from "../composer/staged-message-metadata.js";
53
+ import { MessageAttachedReferences, ComposerAttachedReferences } from "../composer/ComposerAttachedReferences.js";
54
+ import { useAttachedReferencesComposerProps } from "../composer/useAttachedReferencesComposerProps.js";
55
+ import { ComposerNamedAgents } from "../composer/ComposerNamedAgents.js";
56
+ import { useAthenaChatAgentsMention } from "./chat-agent-mentions.js";
46
57
  import { AnswerLabel } from "../chat-ui/messages/answer-label.js";
47
58
  import { useMessageArrivalAnimation, MESSAGE_ARRIVAL_ANIMATION_CLASS } from "../chat-ui/messages/arrival-animation.js";
48
59
  import { MessageImagePart, MessageImageGallery } from "../chat-ui/messages/message-images.js";
@@ -53,6 +64,7 @@ import { useAthenaRunLive } from "./use-athena-run-live.js";
53
64
  import { DEFAULT_WELCOME_SUGGESTIONS, AthenaChatWelcomeSuggestions, AthenaChatWelcome, welcomeEntrance, welcomeComposerDelayMs } from "./athena-chat-welcome.js";
54
65
  import { AthenaComposerSendButton, ATHENA_COMPOSER_COMPONENTS, AthenaComposerMentionButton } from "./athena-composer-controls.js";
55
66
  import { useComposerKeyboardHint, ComposerKeyboardHint } from "./composer-keyboard-hint.js";
67
+ import { FollowUpSuggestions } from "./follow-up-suggestions.js";
56
68
  import { usePrefersReducedMotion } from "../lib/use-prefers-reduced-motion.js";
57
69
  import { useStatewireSessionLane } from "../runtime/statewire-session-lane.js";
58
70
  import { AthenaAuthContext } from "../auth/AthenaAuthContext.js";
@@ -60,7 +72,7 @@ import { useAuiState, ActionBarPrimitive, ActionBarMorePrimitive, MessagePrimiti
60
72
  import { MoreHorizontalIcon, DownloadIcon, ExternalLinkIcon, BrainIcon, ChevronRightIcon, CheckIcon, CopyIcon, RefreshCwIcon, AlertCircleIcon, ArrowUpIcon, PencilIcon } from "lucide-react";
61
73
  import { useMemo, useContext, useState, useRef, useEffect, createContext, useCallback } from "react";
62
74
  import { useAthenaThreadId, AthenaStatewireThreadIdContext, useAthenaStatewireThreadId } from "../threads/thread-id-context.js";
63
- import { useAthenaStatewireThreadList } from "../threads/statewire-thread-list.js";
75
+ import { useAthenaStatewireThreadList, AthenaThreadListAppendedSendContext } from "../threads/statewire-thread-list.js";
64
76
  import { MarkViewedThreadRead } from "../threads/mark-viewed-thread-read.js";
65
77
  import { FileUploadButton } from "../composer/FileUploadButton.js";
66
78
  import { ComposerQuotePreview } from "../composer/ComposerQuotePreview.js";
@@ -70,6 +82,7 @@ import { QuoteProvider, useQuoteFromPostMessage, useQuote } from "../composer/Qu
70
82
  import { AttachmentProvider, useAttachments } from "../composer/AttachmentContext.js";
71
83
  import { buildComposedSend, holdComposedSend } from "../composer/build-composed-message.js";
72
84
  import { useAttachFiles } from "../composer/useAttachFiles.js";
85
+ import { AthenaChatComposerActionsContext } from "./composer-actions.js";
73
86
  import { useAthenaConfig } from "../provider/AthenaContext.js";
74
87
  import { createAthenaSpacesUrl } from "../lib/athena-urls.js";
75
88
  import { isRecord } from "../lib/utils.js";
@@ -77,8 +90,8 @@ import { getToolkitDisplayInfo } from "../toolkits/index.js";
77
90
  import { runActivityKey, runActivityVerb, isToolCallInFlight, runActivityLabel, runProgressKey, runElapsedLabel, isRunActivityStalled } from "./run-activity.js";
78
91
  import { readMessageCreatedAt, parseMessageTime, isSameCalendarDay, formatDayLabel, formatMessageTime, formatMessageDateTime } from "./message-time.js";
79
92
  import { ThreadScrollToBottom } from "./thread-scroll-to-bottom.js";
93
+ import { AthenaTurnChangesSlot, AthenaTurnChangesContext } from "./turn-changes.js";
80
94
  import { QueryClientProvider } from "@tanstack/react-query";
81
- import { useCatalogQueryClient } from "../catalog/runtime-catalog.js";
82
95
  import { isStatewireChannelLive } from "../runtime/statewire-lifecycle.js";
83
96
  import { useComposerChatVoice, ChatVoiceButton, ChatVoiceStatus, ChatVoiceContinueOffer } from "./chat-voice-controls.js";
84
97
  import { TASK_TOOL_NAME } from "../agent-runtime/src/tool-names.js";
@@ -87,6 +100,7 @@ import { readSoleRuntimeMessageKind, readRuntimeMessageFromSourceMessages } from
87
100
  import { isGithubWakeMessage } from "../agent-runtime/src/github-wake-event.js";
88
101
  import { isSubscriptionWakeMessage } from "../agent-runtime/src/subscription-wake-event.js";
89
102
  import { useDeepAgentConnection, readRunLive } from "../agent-runtime/src/thread-status.js";
103
+ import { autoComposerSendOptions } from "../agent-runtime/src/run-send.js";
90
104
  import { useChatOutboxReachable, useDeepAgentChatOutboxContext } from "../agent-runtime/src/use-deep-agent-chat-outbox.js";
91
105
  import { CHAT_EDIT_UNREACHABLE_LABEL } from "../agent-runtime/src/chat-outbox.js";
92
106
  import { cn } from "cnfast";
@@ -174,17 +188,21 @@ const AthenaChatContent = ({
174
188
  confirmDecision,
175
189
  toolUIs,
176
190
  mentionTools,
191
+ mentionCategories = ATHENA_CHAT_MENTION_CATEGORIES,
177
192
  welcomeSuggestions = DEFAULT_WELCOME_SUGGESTIONS,
178
193
  components,
179
194
  groupToolCalls = true,
180
195
  composer: composerSlots,
181
196
  dictation = true,
182
197
  voice = true,
183
- continueByVoice = null
198
+ continueByVoice = null,
199
+ turnChanges = null,
200
+ followUpSuggestions = false
184
201
  }) => {
185
202
  var _a, _b, _c, _d, _e, _f;
186
203
  const athenaConfig = useAthenaConfig();
187
204
  const authState = useContext(AthenaAuthContext);
205
+ const namesAgents = mentionCategories.includes("agents");
188
206
  const statewireThreadId = useContext(AthenaStatewireThreadIdContext);
189
207
  const startNewSession = (_a = useAthenaStatewireThreadList()) == null ? void 0 : _a.newThread;
190
208
  const mentionCredentials = useMemo(
@@ -213,6 +231,13 @@ const AthenaChatContent = ({
213
231
  );
214
232
  const account = useAccountIdentity(mentionCredentials, { tokenGetter: athenaConfig.getToken });
215
233
  const accountWorkspaceId = account.workspaceId;
234
+ const accountUserId = account.userId;
235
+ useEffect(() => {
236
+ if (namesAgents && accountUserId) keepDeepAgentNamedAgentsForIdentity(accountUserId);
237
+ }, [accountUserId, namesAgents]);
238
+ useEffect(() => {
239
+ if (accountUserId) keepAttachedReferencesForIdentity(accountUserId);
240
+ }, [accountUserId]);
216
241
  const mentionAuth = useMemo(
217
242
  () => ({
218
243
  ...mentionCredentials,
@@ -272,6 +297,21 @@ const AthenaChatContent = ({
272
297
  userTextComponent
273
298
  ]
274
299
  );
300
+ const turnChangesEnabled = (turnChanges == null ? void 0 : turnChanges.enabled) === true;
301
+ const turnChangesScope = turnChanges == null ? void 0 : turnChanges.reviewScope;
302
+ const turnChangesRead = turnChanges == null ? void 0 : turnChanges.read;
303
+ const turnChangesView = turnChanges == null ? void 0 : turnChanges.onView;
304
+ const turnChangesUndo = turnChanges == null ? void 0 : turnChanges.onUndo;
305
+ const turnChangesValue = useMemo(
306
+ () => turnChangesEnabled && turnChangesRead && turnChangesView && turnChangesUndo ? {
307
+ enabled: true,
308
+ ...turnChangesScope !== void 0 && { reviewScope: turnChangesScope },
309
+ read: turnChangesRead,
310
+ onView: turnChangesView,
311
+ onUndo: turnChangesUndo
312
+ } : null,
313
+ [turnChangesEnabled, turnChangesScope, turnChangesRead, turnChangesView, turnChangesUndo]
314
+ );
275
315
  const AssistantMessageComponent = (components == null ? void 0 : components.AssistantMessage) ?? AthenaDefaultAssistantMessage;
276
316
  const UserMessageComponent = (components == null ? void 0 : components.UserMessage) ?? AthenaDefaultUserMessage;
277
317
  const messageComponents = useMemo(
@@ -281,7 +321,7 @@ const AthenaChatContent = ({
281
321
  }),
282
322
  [AssistantMessageComponent, UserMessageComponent]
283
323
  );
284
- return /* @__PURE__ */ jsx(AthenaChatDefaultComponentsContext.Provider, { value: defaultComponentsContextValue, children: /* @__PURE__ */ jsx(AthenaChatErrorBoundary, { children: /* @__PURE__ */ jsx(StatewireApprovalWaitProvider, { children: /* @__PURE__ */ jsx(ToolFallbackAppearanceProvider, { appearance: "thread", children: /* @__PURE__ */ jsx(MentionAuthCtx.Provider, { value: mentionAuth, children: /* @__PURE__ */ jsx(
324
+ return /* @__PURE__ */ jsx(AthenaChatDefaultComponentsContext.Provider, { value: defaultComponentsContextValue, children: /* @__PURE__ */ jsx(AthenaTurnChangesContext.Provider, { value: turnChangesValue, children: /* @__PURE__ */ jsx(AthenaChatErrorBoundary, { children: /* @__PURE__ */ jsx(StatewireApprovalWaitProvider, { children: /* @__PURE__ */ jsx(DeepAgentLaneFollowScope, { children: /* @__PURE__ */ jsx(ToolFallbackAppearanceProvider, { appearance: "thread", children: /* @__PURE__ */ jsx(MentionAuthCtx.Provider, { value: mentionAuth, children: /* @__PURE__ */ jsx(
285
325
  ChatThreadShell,
286
326
  {
287
327
  overlay: /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -319,7 +359,13 @@ const AthenaChatContent = ({
319
359
  /* @__PURE__ */ jsx(StatewireConnectionBanner, {}),
320
360
  /* @__PURE__ */ jsx(StatewireErrorBanner, { onStartNewSession: startNewSession }),
321
361
  /* @__PURE__ */ jsx(StatewireRunRefusalNotice, { onStartNewSession: startNewSession }),
322
- /* @__PURE__ */ jsx(StatewireApprovalCard, { confirmDecision }),
362
+ /* @__PURE__ */ jsx(
363
+ StatewireApprovalCard,
364
+ {
365
+ confirmDecision,
366
+ typedInterrupts: statewireTypedInterrupts
367
+ }
368
+ ),
323
369
  plan === void 0 ? /* @__PURE__ */ jsx(AthenaPlanStrip, { className: "mx-3" }) : plan,
324
370
  /* @__PURE__ */ jsx(StatewireQueuedMessages, {}),
325
371
  /* @__PURE__ */ jsx(AttachmentProvider, { children: /* @__PURE__ */ jsxs(QuoteProvider, { children: [
@@ -328,17 +374,19 @@ const AthenaChatContent = ({
328
374
  AthenaChatComposer,
329
375
  {
330
376
  tools,
377
+ mentionCategories,
331
378
  slots: composerSlots,
332
379
  dictation,
333
380
  voice: readOnly ? false : voice,
334
381
  continueByVoice: readOnly ? null : continueByVoice,
335
- welcomeSuggestionCount: welcomeSuggestions.length
382
+ welcomeSuggestionCount: welcomeSuggestions.length,
383
+ followUpSuggestions: followUpSuggestions && !readOnly
336
384
  }
337
385
  )
338
386
  ] }) })
339
387
  ] })
340
388
  }
341
- ) }) }) }) }, statewireThreadId ?? void 0) });
389
+ ) }) }) }) }) }, statewireThreadId ?? void 0) }) });
342
390
  };
343
391
  const THREAD_VIEWPORT_ATTR = "data-aui-thread-viewport";
344
392
  const useScrollToTop = () => {
@@ -397,12 +445,36 @@ const ATHENA_CHAT_MENTION_CATEGORIES = [
397
445
  "projects",
398
446
  "folders"
399
447
  ];
400
- const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, continueByVoice, welcomeSuggestionCount }) => {
448
+ const ATHENA_CHAT_MENTION_ORDER = [
449
+ "favorites",
450
+ "assets",
451
+ "projects",
452
+ "browse_profiles",
453
+ "folders",
454
+ "toolkits",
455
+ "tools",
456
+ "team",
457
+ "agents",
458
+ "drives"
459
+ ];
460
+ const AthenaChatComposer = ({
461
+ tools,
462
+ mentionCategories,
463
+ slots,
464
+ dictation,
465
+ voice: voiceOptions,
466
+ continueByVoice,
467
+ welcomeSuggestionCount,
468
+ followUpSuggestions
469
+ }) => {
401
470
  const aui = useAui();
402
471
  const threadId = useAthenaStatewireThreadId();
472
+ const noteAppendedSend = useContext(AthenaThreadListAppendedSendContext);
403
473
  const { appUrl } = useAthenaConfig();
404
474
  const { attachments, clearAttachments, isUploading, notice: attachNotice, setNotice: setAttachNotice } = useAttachments();
405
475
  const { quote, clearQuote } = useQuote();
476
+ const attachedReferences = usePendingAttachedReferences(threadId);
477
+ const attachedReferencesComposerProps = useAttachedReferencesComposerProps(threadId);
406
478
  const { attachFiles } = useAttachFiles();
407
479
  const sessionLane = useStatewireSessionLane();
408
480
  const composerRef = useRef(null);
@@ -442,9 +514,9 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
442
514
  const appendSpokenText = useCallback(
443
515
  (spoken) => {
444
516
  if (!spoken) return;
445
- const composer = composerRef.current;
446
- if (composer == null ? void 0 : composer.appendText) {
447
- composer.appendText(spoken);
517
+ const composer2 = composerRef.current;
518
+ if (composer2 == null ? void 0 : composer2.appendText) {
519
+ composer2.appendText(spoken);
448
520
  return;
449
521
  }
450
522
  aui.composer.setText(composeDictationDraft(aui.composer.getState().text ?? "", spoken));
@@ -466,16 +538,74 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
466
538
  if (!dictationEnabled && dictationActive) cancelDictation();
467
539
  }, [cancelDictation, dictationActive, dictationEnabled]);
468
540
  const rootCategories = useMemo(() => {
469
- const categories = [...ATHENA_CHAT_MENTION_CATEGORIES];
470
- if (tools.some((tool) => tool.type === "toolkit")) categories.push("toolkits");
471
- if (tools.some((tool) => tool.type === "tool")) categories.push("tools");
472
- return categories;
473
- }, [tools]);
541
+ const offered = new Set(mentionCategories);
542
+ if (tools.some((tool) => tool.type === "toolkit")) offered.add("toolkits");
543
+ if (tools.some((tool) => tool.type === "tool")) offered.add("tools");
544
+ return ATHENA_CHAT_MENTION_ORDER.filter((category) => offered.has(category));
545
+ }, [mentionCategories, tools]);
546
+ const namesAgents = rootCategories.includes("agents");
547
+ const viewerIsAdmin = useAthenaViewerIsAdmin({
548
+ enabled: namesAgents || rootCategories.includes("team")
549
+ });
550
+ const sayNamedAgentsLimit = useCallback((message) => {
551
+ queueMicrotask(() => setComposerNotice(message));
552
+ }, []);
553
+ const chatAgents = useAthenaChatAgentsMention({
554
+ threadId,
555
+ enabled: namesAgents,
556
+ isAdmin: viewerIsAdmin,
557
+ onLimit: sayNamedAgentsLimit
558
+ });
559
+ const focusComposer = useCallback(() => {
560
+ var _a, _b;
561
+ return (_b = (_a = composerRef.current) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
562
+ }, []);
563
+ const filePickerRef = useRef(null);
564
+ const composerActions = useMemo(
565
+ () => ({
566
+ openFilePicker: () => {
567
+ var _a;
568
+ if (needsConnectionReason) return;
569
+ (_a = filePickerRef.current) == null ? void 0 : _a.click();
570
+ },
571
+ openMentionMenu: () => {
572
+ var _a, _b;
573
+ return (_b = (_a = composerRef.current) == null ? void 0 : _a.openMentionMenu) == null ? void 0 : _b.call(_a);
574
+ },
575
+ needsConnectionReason
576
+ }),
577
+ [needsConnectionReason]
578
+ );
579
+ const pickFollowUp = useCallback(
580
+ (text) => {
581
+ var _a;
582
+ const composer2 = composerRef.current;
583
+ if (composer2 == null ? void 0 : composer2.appendText) composer2.appendText(text);
584
+ else aui.composer.setText(text);
585
+ (_a = composer2 == null ? void 0 : composer2.focus) == null ? void 0 : _a.call(composer2);
586
+ },
587
+ [aui]
588
+ );
474
589
  const attachmentsRef = useRef(attachments);
475
590
  attachmentsRef.current = attachments;
476
591
  const quoteRef = useRef(quote);
477
592
  quoteRef.current = quote;
593
+ const attachedReferencesRef = useRef(attachedReferences);
594
+ attachedReferencesRef.current = attachedReferences;
478
595
  const hasExtras = attachments.length > 0 || quote !== null;
596
+ const sendStateRef = useRef({ isRunning, liveVoice: false });
597
+ sendStateRef.current = { isRunning, liveVoice: voice.phase === "live" && !hasExtras };
598
+ const onBeforeSend = slots == null ? void 0 : slots.onBeforeSend;
599
+ const beforeSubmit = useCallback(
600
+ async ({ text }) => {
601
+ if (!onBeforeSend) return;
602
+ const { isRunning: running, liveVoice } = sendStateRef.current;
603
+ const action = liveVoice ? "send" : resolveComposerAction({ hasDraft: true, isRunning: running });
604
+ if (action === "stop") return;
605
+ await onBeforeSend({ action, text });
606
+ },
607
+ [onBeforeSend]
608
+ );
479
609
  const isUploadingRef = useRef(isUploading);
480
610
  isUploadingRef.current = isUploading;
481
611
  const uploadWaitersRef = useRef([]);
@@ -501,13 +631,31 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
501
631
  });
502
632
  if (!send) return false;
503
633
  prepareComposerSend({ threadId, ...send });
504
- aui.composer.setText(send.text);
505
- aui.composer.send({ steer: false });
634
+ if (namesAgents) {
635
+ stageComposerNamedAgents({
636
+ threadId,
637
+ text: send.text,
638
+ agents: readDeepAgentNamedAgents(threadId)
639
+ });
640
+ }
641
+ const references = stageThreadAttachedReferencesForSend({ threadId, text: send.text });
642
+ if (references.length > 0) {
643
+ aui.thread().append({
644
+ role: "user",
645
+ content: [{ type: "text", text: send.text }],
646
+ metadata: { custom: takeStagedMessageMetadata(threadId) ?? {} }
647
+ });
648
+ aui.composer.setText("");
649
+ noteAppendedSend == null ? void 0 : noteAppendedSend(send.text);
650
+ } else {
651
+ aui.composer.setText(send.text);
652
+ aui.composer.send(autoComposerSendOptions(aui.thread().getState().isRunning));
653
+ }
506
654
  clearAttachments();
507
655
  clearQuote();
508
656
  return true;
509
657
  },
510
- [appUrl, aui, clearAttachments, clearQuote, threadId]
658
+ [appUrl, aui, clearAttachments, clearQuote, namesAgents, noteAppendedSend, threadId]
511
659
  );
512
660
  const continueByVoiceRef = useRef(continueByVoice);
513
661
  continueByVoiceRef.current = continueByVoice;
@@ -522,7 +670,7 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
522
670
  }, [onKeyboardHintSubmitted, settleContinueByVoice]);
523
671
  const interceptSubmit = useCallback(
524
672
  async (text, draftMarkdown) => {
525
- if (attachmentsRef.current.length > 0 || quoteRef.current !== null) {
673
+ if (attachmentsRef.current.length > 0 || quoteRef.current !== null || attachedReferencesRef.current.length > 0 && text.length > 0) {
526
674
  return sendComposed({ text, draftMarkdown });
527
675
  }
528
676
  return voice.phase === "live" && text.length > 0 ? voice.sendUserText(text) : false;
@@ -530,14 +678,18 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
530
678
  [sendComposed, voice.phase, voice.sendUserText]
531
679
  );
532
680
  const hasPendingExtras = useCallback(
533
- () => attachmentsRef.current.length > 0 || quoteRef.current !== null,
534
- []
681
+ () => {
682
+ var _a, _b, _c;
683
+ return attachmentsRef.current.length > 0 || quoteRef.current !== null || attachedReferencesRef.current.length > 0 && Boolean(((_c = (_b = (_a = composerRef.current) == null ? void 0 : _a.captureSend) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.text) ?? aui.composer.getState().text);
684
+ },
685
+ [aui]
535
686
  );
536
687
  const holdPendingExtras = useCallback(
537
688
  ({
538
689
  outbox,
539
690
  send,
540
- attachments: attachments2
691
+ attachments: attachments2,
692
+ addressedAgents
541
693
  }) => {
542
694
  const held = holdComposedSend({
543
695
  outbox,
@@ -545,14 +697,19 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
545
697
  carried: attachments2,
546
698
  quote: quoteRef.current,
547
699
  send,
548
- appUrl
700
+ appUrl,
701
+ // The agents it names ride its message.
702
+ ...addressedAgents && { addressedAgents },
703
+ // So do the references attached to it.
704
+ attachedReferences: attachedReferencesRef.current
549
705
  });
550
706
  if (!held) return false;
551
707
  clearAttachments();
552
708
  clearQuote();
709
+ clearAttachedReferences(threadId);
553
710
  return true;
554
711
  },
555
- [appUrl, clearAttachments, clearQuote]
712
+ [appUrl, clearAttachments, clearQuote, threadId]
556
713
  );
557
714
  const fileIntake = useMemo(
558
715
  () => ({
@@ -575,12 +732,12 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
575
732
  text: aui.composer.getState().text ?? "",
576
733
  draftMarkdown: aui.composer.getState().text ?? ""
577
734
  };
578
- const extras = attachmentsRef.current.length > 0 || quoteRef.current !== null;
735
+ const extras = attachmentsRef.current.length > 0 || quoteRef.current !== null || attachedReferencesRef.current.length > 0 && send.text.length > 0;
579
736
  if (!send.text && !extras) return;
580
737
  const action = resolveComposerAction({ hasDraft: true, isRunning });
581
738
  if (action === "stop") return;
582
739
  try {
583
- await ((_c = slots == null ? void 0 : slots.onBeforeSend) == null ? void 0 : _c.call(slots, { action }));
740
+ await ((_c = slots == null ? void 0 : slots.onBeforeSend) == null ? void 0 : _c.call(slots, { action, text: send.text }));
584
741
  } catch (error2) {
585
742
  athenaDiagnostics.emit("composer.dictation", {
586
743
  level: "warn",
@@ -591,27 +748,47 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
591
748
  });
592
749
  return;
593
750
  }
751
+ const namedAgents = namesAgents ? readDeepAgentNamedAgents(threadId) : [];
594
752
  settleContinueByVoice();
595
753
  if (extras) {
596
754
  sendComposed(send);
597
755
  return;
598
756
  }
599
757
  prepareComposerSend({ threadId, ...send });
758
+ if (namesAgents) stageComposerNamedAgents({ threadId, text: send.text, agents: namedAgents });
600
759
  aui.composer.setText(send.text);
601
- aui.composer.send({ steer: false });
760
+ aui.composer.send(autoComposerSendOptions(aui.thread().getState().isRunning));
602
761
  }, [
603
762
  appendSpokenText,
604
763
  aui,
605
764
  dictationCtl,
606
765
  isRunning,
766
+ namesAgents,
607
767
  sendComposed,
608
768
  sessionLane,
609
769
  settleContinueByVoice,
610
770
  slots,
611
771
  threadId
612
772
  ]);
613
- return /* @__PURE__ */ jsxs(ComposerDropZone, { onDragActiveChange: setDragActive, children: [
773
+ const composer = /* @__PURE__ */ jsxs(ComposerDropZone, { onDragActiveChange: setDragActive, children: [
614
774
  /* @__PURE__ */ jsx("audio", { ref: audioRef, autoPlay: true, playsInline: true }),
775
+ /* @__PURE__ */ jsx(
776
+ "input",
777
+ {
778
+ ref: filePickerRef,
779
+ type: "file",
780
+ multiple: true,
781
+ className: "hidden",
782
+ "aria-hidden": true,
783
+ tabIndex: -1,
784
+ onChange: (event) => {
785
+ const input = event.currentTarget;
786
+ const files = input.files ? Array.from(input.files) : [];
787
+ input.value = "";
788
+ if (files.length > 0) void attachFiles(files, "paperclip");
789
+ }
790
+ }
791
+ ),
615
792
  /* @__PURE__ */ jsx(
616
793
  "div",
617
794
  {
@@ -623,6 +800,15 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
623
800
  {
624
801
  appearance: "paper",
625
802
  dragActive,
803
+ aboveSurface: /* @__PURE__ */ jsx(
804
+ FollowUpSuggestions,
805
+ {
806
+ enabled: followUpSuggestions,
807
+ threadId,
808
+ hasDraft: hasText || hasExtras,
809
+ onPick: pickFollowUp
810
+ }
811
+ ),
626
812
  beforeEditor: /* @__PURE__ */ jsxs(Fragment, { children: [
627
813
  slots == null ? void 0 : slots.aboveEditor,
628
814
  /* @__PURE__ */ jsx(
@@ -643,6 +829,8 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
643
829
  disabledReason: needsConnectionReason
644
830
  }
645
831
  ),
832
+ namesAgents ? /* @__PURE__ */ jsx(ComposerNamedAgents, { threadId, onEmptied: focusComposer }) : null,
833
+ /* @__PURE__ */ jsx(ComposerAttachedReferences, { threadId, onEmptied: focusComposer }),
646
834
  /* @__PURE__ */ jsx(ComposerQuotePreview, {}),
647
835
  /* @__PURE__ */ jsx(ComposerAttachmentPreview, {})
648
836
  ] }),
@@ -652,19 +840,24 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
652
840
  {
653
841
  ref: composerRef,
654
842
  threadId,
843
+ ...attachedReferencesComposerProps,
655
844
  appearance: "paper",
656
845
  placeholder: (runLive ? slots == null ? void 0 : slots.runningPlaceholder : void 0) ?? (slots == null ? void 0 : slots.placeholder) ?? DEFAULT_COMPOSER_PLACEHOLDER,
657
846
  tools,
658
847
  rootCategories,
848
+ chatAgents,
849
+ viewerIsAdmin,
659
850
  onDraftStateChange,
660
851
  mentionSearchUnavailable: needsConnectionReason ? NEEDS_CONNECTION : null,
661
852
  waitForHostUploads,
662
853
  interceptSubmit,
854
+ beforeSubmit: onBeforeSend ? beforeSubmit : void 0,
663
855
  hasPendingExtras,
664
856
  holdPendingExtras,
665
857
  onAttachmentError: setComposerNotice,
666
858
  fileIntake,
667
- onSubmitted: handleComposerSubmitted
859
+ onSubmitted: handleComposerSubmitted,
860
+ slashCommands: slots == null ? void 0 : slots.slashCommands
668
861
  }
669
862
  ) }),
670
863
  notice && /* @__PURE__ */ jsx("p", { className: "aui-composer-notice px-1.5 pb-1 text-destructive text-xs", role: "alert", children: notice }),
@@ -679,81 +872,89 @@ const AthenaChatComposer = ({ tools, slots, dictation, voice: voiceOptions, cont
679
872
  ),
680
873
  dictationEnabled && dictationCtl.status === DICTATION_STATUSES.error && dictationCtl.error && /* @__PURE__ */ jsx("p", { className: "aui-dictation-error px-1.5 pb-1 text-destructive text-xs", role: "alert", children: dictationCtl.error.message })
681
874
  ] }),
682
- toolbarStart: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: recording ? /* @__PURE__ */ jsx(DictationCancelButton, { onClick: dictationCtl.cancel }) : /* @__PURE__ */ jsxs(Fragment, { children: [
683
- /* @__PURE__ */ jsx(
684
- FileUploadButton,
685
- {
686
- className: "aui-composer-attach size-8 rounded-full p-0 disabled:opacity-30",
687
- disabledReason: needsConnectionReason
688
- }
689
- ),
690
- /* @__PURE__ */ jsx(
691
- AthenaComposerMentionButton,
692
- {
693
- onClick: () => {
694
- var _a, _b;
695
- return (_b = (_a = composerRef.current) == null ? void 0 : _a.openMentionMenu) == null ? void 0 : _b.call(_a);
696
- },
697
- disabledReason: needsConnectionReason
698
- }
699
- ),
700
- /* @__PURE__ */ jsx(AthenaChatModeMenu, {}),
701
- slots == null ? void 0 : slots.toolbarStart
702
- ] }) }),
703
- toolbarEnd: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-1", children: recording ? /* @__PURE__ */ jsxs(Fragment, { children: [
704
- /* @__PURE__ */ jsx(
705
- DictationStopButton,
706
- {
707
- onClick: () => void stopDictation(),
708
- disabled: dictationCtl.status === DICTATION_STATUSES.stopping
709
- }
710
- ),
711
- /* @__PURE__ */ jsx(
712
- AthenaComposerSendButton,
713
- {
714
- action: isRunning ? "queue" : "send",
715
- onSend: () => void sendDictation(),
716
- disabled: dictationCtl.status !== DICTATION_STATUSES.listening || isUploading,
717
- title: isUploading ? "Upload in progress..." : void 0
718
- }
719
- )
720
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
721
- slots == null ? void 0 : slots.toolbarEnd,
722
- showMic && /* @__PURE__ */ jsx(
723
- DictationMicButton,
724
- {
725
- onClick: dictationCtl.start,
726
- disabled: isUploading,
727
- disabledReason: needsConnectionReason
728
- }
729
- ),
730
- voiceEnabled && /* @__PURE__ */ jsx(
731
- ChatVoiceButton,
732
- {
733
- voice,
734
- disabled: isUploading || dictationCtl.isActive || !isStatewireChannelLive(connection),
735
- disabledReason: needsConnectionReason
736
- }
737
- ),
738
- /* @__PURE__ */ jsx(
739
- ComposerSendOrStop,
740
- {
741
- composerRef,
742
- hasDraft: hasText || hasExtras,
743
- liveVoice: voice.phase === "live" && !hasExtras,
744
- liveSession: voiceActive ? voice : null,
745
- sendBlockedReason: isUploading ? "Upload in progress..." : null,
746
- onBeforeSend: slots == null ? void 0 : slots.onBeforeSend,
747
- components: ATHENA_COMPOSER_COMPONENTS
748
- }
749
- )
750
- ] }) }),
875
+ toolbarStart: (
876
+ // `min-w-0 flex-wrap`: when the chips are wider than the composer (a narrow pane, or a
877
+ // host's own chips), they wrap onto another row instead of pushing voice and Send past
878
+ // its edge. A toolbar that fits lays out as before.
879
+ /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-wrap items-center gap-1", children: recording ? /* @__PURE__ */ jsx(DictationCancelButton, { onClick: dictationCtl.cancel }) : /* @__PURE__ */ jsxs(Fragment, { children: [
880
+ (slots == null ? void 0 : slots.attachButton) === false ? null : /* @__PURE__ */ jsx(
881
+ FileUploadButton,
882
+ {
883
+ className: "aui-composer-attach size-8 rounded-full p-0 disabled:opacity-30",
884
+ disabledReason: needsConnectionReason
885
+ }
886
+ ),
887
+ (slots == null ? void 0 : slots.mentionButton) === false ? null : /* @__PURE__ */ jsx(
888
+ AthenaComposerMentionButton,
889
+ {
890
+ onClick: () => {
891
+ var _a, _b;
892
+ return (_b = (_a = composerRef.current) == null ? void 0 : _a.openMentionMenu) == null ? void 0 : _b.call(_a);
893
+ },
894
+ disabledReason: needsConnectionReason
895
+ }
896
+ ),
897
+ /* @__PURE__ */ jsx(AthenaChatModeMenu, {}),
898
+ slots == null ? void 0 : slots.toolbarStart
899
+ ] }) })
900
+ ),
901
+ toolbarEnd: (
902
+ // Never shrinks, and sits at the last row's end once the chips wrap.
903
+ /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-1 self-end", children: recording ? /* @__PURE__ */ jsxs(Fragment, { children: [
904
+ /* @__PURE__ */ jsx(
905
+ DictationStopButton,
906
+ {
907
+ onClick: () => void stopDictation(),
908
+ disabled: dictationCtl.status === DICTATION_STATUSES.stopping
909
+ }
910
+ ),
911
+ /* @__PURE__ */ jsx(
912
+ AthenaComposerSendButton,
913
+ {
914
+ action: isRunning ? "queue" : "send",
915
+ onSend: () => void sendDictation(),
916
+ disabled: dictationCtl.status !== DICTATION_STATUSES.listening || isUploading,
917
+ title: isUploading ? "Upload in progress..." : void 0
918
+ }
919
+ )
920
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
921
+ slots == null ? void 0 : slots.toolbarEnd,
922
+ showMic && /* @__PURE__ */ jsx(
923
+ DictationMicButton,
924
+ {
925
+ onClick: dictationCtl.start,
926
+ disabled: isUploading,
927
+ disabledReason: needsConnectionReason
928
+ }
929
+ ),
930
+ voiceEnabled && /* @__PURE__ */ jsx(
931
+ ChatVoiceButton,
932
+ {
933
+ voice,
934
+ disabled: isUploading || dictationCtl.isActive || !isStatewireChannelLive(connection),
935
+ disabledReason: needsConnectionReason
936
+ }
937
+ ),
938
+ /* @__PURE__ */ jsx(
939
+ ComposerSendOrStop,
940
+ {
941
+ composerRef,
942
+ hasDraft: hasText || hasExtras,
943
+ liveVoice: voice.phase === "live" && !hasExtras,
944
+ liveSession: voiceActive ? voice : null,
945
+ sendBlockedReason: isUploading ? "Upload in progress..." : null,
946
+ components: ATHENA_COMPOSER_COMPONENTS
947
+ }
948
+ )
949
+ ] }) })
950
+ ),
751
951
  belowSurface: /* @__PURE__ */ jsx(ComposerKeyboardHint, { visible: keyboardHint.visible })
752
952
  }
753
953
  )
754
954
  }
755
955
  )
756
956
  ] });
957
+ return /* @__PURE__ */ jsx(AthenaChatComposerActionsContext.Provider, { value: composerActions, children: composer });
757
958
  };
758
959
  const MessageError = () => /* @__PURE__ */ jsx(MessagePrimitive.Error, { children: /* @__PURE__ */ jsxs(ErrorPrimitive.Root, { className: "aui-message-error-root mt-2 flex items-start gap-2 rounded-md border border-destructive bg-destructive/10 p-3 text-destructive text-sm dark:bg-destructive/5 dark:text-red-200", children: [
759
960
  /* @__PURE__ */ jsx(AlertCircleIcon, { className: "mt-0.5 size-4 shrink-0" }),
@@ -1144,6 +1345,7 @@ const AthenaAssistantMessage = ({
1144
1345
  ] }) }),
1145
1346
  /* @__PURE__ */ jsx(MessageError, {})
1146
1347
  ] }) }),
1348
+ /* @__PURE__ */ jsx(AthenaTurnChangesSlot, { className: "mx-2" }),
1147
1349
  /* @__PURE__ */ jsxs("div", { className: "aui-assistant-message-footer mt-1 ml-2 flex items-center gap-1", children: [
1148
1350
  /* @__PURE__ */ jsx(BranchPicker, {}),
1149
1351
  /* @__PURE__ */ jsx(ActionBarComponent, {}),
@@ -1311,6 +1513,7 @@ const AthenaUserMessage = ({
1311
1513
  /* @__PURE__ */ jsx(MessageDaySeparator, {}),
1312
1514
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 max-w-[75%] flex-col items-end gap-1", children: [
1313
1515
  /* @__PURE__ */ jsx(InboundChannelLine, {}),
1516
+ /* @__PURE__ */ jsx(MessageAttachedReferences, {}),
1314
1517
  /* @__PURE__ */ jsxs("div", { className: "aui-user-message-content wrap-break-word min-w-0 max-w-full rounded-2xl bg-muted/70 px-4 py-2.5 text-foreground", children: [
1315
1518
  /* @__PURE__ */ jsx(InboundChannelSubject, {}),
1316
1519
  /* @__PURE__ */ jsx(MessageImageGallery, { children: /* @__PURE__ */ jsx(MessagePrimitive.Parts, { components: partComponents }) })