@rpcbase/agents-sdk 0.0.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 (430) hide show
  1. package/dist/agents-sdk.css +3 -0
  2. package/dist/api/apiErrors.d.ts +7 -0
  3. package/dist/api/apiErrors.d.ts.map +1 -0
  4. package/dist/api/chat/handler.d.ts +22 -0
  5. package/dist/api/chat/handler.d.ts.map +1 -0
  6. package/dist/api/chat/index.d.ts +7 -0
  7. package/dist/api/chat/index.d.ts.map +1 -0
  8. package/dist/api/chat/messages/handler.d.ts +4 -0
  9. package/dist/api/chat/messages/handler.d.ts.map +1 -0
  10. package/dist/api/chat/messages/index.d.ts +7 -0
  11. package/dist/api/chat/messages/index.d.ts.map +1 -0
  12. package/dist/api/chat/messages/trailing/handler.d.ts +4 -0
  13. package/dist/api/chat/messages/trailing/handler.d.ts.map +1 -0
  14. package/dist/api/chat/messages/trailing/index.d.ts +9 -0
  15. package/dist/api/chat/messages/trailing/index.d.ts.map +1 -0
  16. package/dist/api/chat/models.d.ts +13 -0
  17. package/dist/api/chat/models.d.ts.map +1 -0
  18. package/dist/api/chat/prompts.d.ts +21 -0
  19. package/dist/api/chat/prompts.d.ts.map +1 -0
  20. package/dist/api/chat/resumableSse.d.ts +31 -0
  21. package/dist/api/chat/resumableSse.d.ts.map +1 -0
  22. package/dist/api/chat/runtimeConfig.d.ts +49 -0
  23. package/dist/api/chat/runtimeConfig.d.ts.map +1 -0
  24. package/dist/api/chat/stream/handler.d.ts +4 -0
  25. package/dist/api/chat/stream/handler.d.ts.map +1 -0
  26. package/dist/api/chat/stream/index.d.ts +7 -0
  27. package/dist/api/chat/stream/index.d.ts.map +1 -0
  28. package/dist/api/chat/titles.d.ts +5 -0
  29. package/dist/api/chat/titles.d.ts.map +1 -0
  30. package/dist/api/chat/tools.d.ts +95 -0
  31. package/dist/api/chat/tools.d.ts.map +1 -0
  32. package/dist/api/chatCtx.d.ts +11 -0
  33. package/dist/api/chatCtx.d.ts.map +1 -0
  34. package/dist/api/chatDb.d.ts +65 -0
  35. package/dist/api/chatDb.d.ts.map +1 -0
  36. package/dist/api/chatStore.d.ts +101 -0
  37. package/dist/api/chatStore.d.ts.map +1 -0
  38. package/dist/api/document/handler.d.ts +4 -0
  39. package/dist/api/document/handler.d.ts.map +1 -0
  40. package/dist/api/document/index.d.ts +7 -0
  41. package/dist/api/document/index.d.ts.map +1 -0
  42. package/dist/api/history/handler.d.ts +4 -0
  43. package/dist/api/history/handler.d.ts.map +1 -0
  44. package/dist/api/history/index.d.ts +7 -0
  45. package/dist/api/history/index.d.ts.map +1 -0
  46. package/dist/api/ping/handler.d.ts +4 -0
  47. package/dist/api/ping/handler.d.ts.map +1 -0
  48. package/dist/api/ping/index.d.ts +9 -0
  49. package/dist/api/ping/index.d.ts.map +1 -0
  50. package/dist/api/session/tenant/handler.d.ts +4 -0
  51. package/dist/api/session/tenant/handler.d.ts.map +1 -0
  52. package/dist/api/session/tenant/index.d.ts +12 -0
  53. package/dist/api/session/tenant/index.d.ts.map +1 -0
  54. package/dist/api/stream-test/handler.d.ts +4 -0
  55. package/dist/api/stream-test/handler.d.ts.map +1 -0
  56. package/dist/api/stream-test/index.d.ts +7 -0
  57. package/dist/api/stream-test/index.d.ts.map +1 -0
  58. package/dist/api/suggestions/handler.d.ts +4 -0
  59. package/dist/api/suggestions/handler.d.ts.map +1 -0
  60. package/dist/api/suggestions/index.d.ts +7 -0
  61. package/dist/api/suggestions/index.d.ts.map +1 -0
  62. package/dist/api/test/reset/handler.d.ts +4 -0
  63. package/dist/api/test/reset/handler.d.ts.map +1 -0
  64. package/dist/api/test/reset/index.d.ts +9 -0
  65. package/dist/api/test/reset/index.d.ts.map +1 -0
  66. package/dist/api/upload/handler.d.ts +4 -0
  67. package/dist/api/upload/handler.d.ts.map +1 -0
  68. package/dist/api/upload/index.d.ts +7 -0
  69. package/dist/api/upload/index.d.ts.map +1 -0
  70. package/dist/api/vote/handler.d.ts +4 -0
  71. package/dist/api/vote/handler.d.ts.map +1 -0
  72. package/dist/api/vote/index.d.ts +7 -0
  73. package/dist/api/vote/index.d.ts.map +1 -0
  74. package/dist/apiErrors-CFUx-UrE.js +18 -0
  75. package/dist/apiErrors-mOJbPi7h.js +18 -0
  76. package/dist/artifacts/actions.d.ts +4 -0
  77. package/dist/artifacts/actions.d.ts.map +1 -0
  78. package/dist/artifacts/code/client.d.ts +8 -0
  79. package/dist/artifacts/code/client.d.ts.map +1 -0
  80. package/dist/artifacts/image/client.d.ts +3 -0
  81. package/dist/artifacts/image/client.d.ts.map +1 -0
  82. package/dist/artifacts/sheet/client.d.ts +3 -0
  83. package/dist/artifacts/sheet/client.d.ts.map +1 -0
  84. package/dist/artifacts/text/client.d.ts +8 -0
  85. package/dist/artifacts/text/client.d.ts.map +1 -0
  86. package/dist/chat-models.browser.js +2 -0
  87. package/dist/chat-models.d.ts +2 -0
  88. package/dist/chat-models.d.ts.map +1 -0
  89. package/dist/chat-models.js +2 -0
  90. package/dist/chatCtx-BsPi6PAE.js +29 -0
  91. package/dist/chatCtx-DSgD1fix.js +27 -0
  92. package/dist/chatDb-CpCFaAxK.js +243 -0
  93. package/dist/chatDb-hVHCr0j0.js +243 -0
  94. package/dist/chunk-BO2N2NFS-BPN4woGc.js +19355 -0
  95. package/dist/client-routes.browser.js +136 -0
  96. package/dist/client-routes.d.ts +12 -0
  97. package/dist/client-routes.d.ts.map +1 -0
  98. package/dist/client-routes.js +136 -0
  99. package/dist/components/AppErrorExtra.d.ts +7 -0
  100. package/dist/components/AppErrorExtra.d.ts.map +1 -0
  101. package/dist/components/agents-chat-navigation.d.ts +14 -0
  102. package/dist/components/agents-chat-navigation.d.ts.map +1 -0
  103. package/dist/components/agents-chat-route-layout.d.ts +19 -0
  104. package/dist/components/agents-chat-route-layout.d.ts.map +1 -0
  105. package/dist/components/ai-elements/artifact.d.ts +24 -0
  106. package/dist/components/ai-elements/artifact.d.ts.map +1 -0
  107. package/dist/components/ai-elements/canvas.d.ts +9 -0
  108. package/dist/components/ai-elements/canvas.d.ts.map +1 -0
  109. package/dist/components/ai-elements/chain-of-thought.d.ts +30 -0
  110. package/dist/components/ai-elements/chain-of-thought.d.ts.map +1 -0
  111. package/dist/components/ai-elements/checkpoint.d.ts +12 -0
  112. package/dist/components/ai-elements/checkpoint.d.ts.map +1 -0
  113. package/dist/components/ai-elements/code-block.d.ts +18 -0
  114. package/dist/components/ai-elements/code-block.d.ts.map +1 -0
  115. package/dist/components/ai-elements/confirmation.d.ts +50 -0
  116. package/dist/components/ai-elements/confirmation.d.ts.map +1 -0
  117. package/dist/components/ai-elements/connection.d.ts +3 -0
  118. package/dist/components/ai-elements/connection.d.ts.map +1 -0
  119. package/dist/components/ai-elements/controls.d.ts +5 -0
  120. package/dist/components/ai-elements/controls.d.ts.map +1 -0
  121. package/dist/components/ai-elements/conversation.d.ts +16 -0
  122. package/dist/components/ai-elements/conversation.d.ts.map +1 -0
  123. package/dist/components/ai-elements/edge.d.ts +6 -0
  124. package/dist/components/ai-elements/edge.d.ts.map +1 -0
  125. package/dist/components/ai-elements/image.d.ts +7 -0
  126. package/dist/components/ai-elements/image.d.ts.map +1 -0
  127. package/dist/components/ai-elements/inline-citation.d.ts +39 -0
  128. package/dist/components/ai-elements/inline-citation.d.ts.map +1 -0
  129. package/dist/components/ai-elements/loader.d.ts +6 -0
  130. package/dist/components/ai-elements/loader.d.ts.map +1 -0
  131. package/dist/components/ai-elements/message.d.ts +47 -0
  132. package/dist/components/ai-elements/message.d.ts.map +1 -0
  133. package/dist/components/ai-elements/model-selector.d.ts +37 -0
  134. package/dist/components/ai-elements/model-selector.d.ts.map +1 -0
  135. package/dist/components/ai-elements/node.d.ts +22 -0
  136. package/dist/components/ai-elements/node.d.ts.map +1 -0
  137. package/dist/components/ai-elements/open-in-chat.d.ts +29 -0
  138. package/dist/components/ai-elements/open-in-chat.d.ts.map +1 -0
  139. package/dist/components/ai-elements/panel.d.ts +6 -0
  140. package/dist/components/ai-elements/panel.d.ts.map +1 -0
  141. package/dist/components/ai-elements/plan.d.ts +26 -0
  142. package/dist/components/ai-elements/plan.d.ts.map +1 -0
  143. package/dist/components/ai-elements/prompt-input.d.ts +188 -0
  144. package/dist/components/ai-elements/prompt-input.d.ts.map +1 -0
  145. package/dist/components/ai-elements/queue.d.ts +62 -0
  146. package/dist/components/ai-elements/queue.d.ts.map +1 -0
  147. package/dist/components/ai-elements/reasoning.d.ts +27 -0
  148. package/dist/components/ai-elements/reasoning.d.ts.map +1 -0
  149. package/dist/components/ai-elements/shimmer.d.ts +10 -0
  150. package/dist/components/ai-elements/shimmer.d.ts.map +1 -0
  151. package/dist/components/ai-elements/sources.d.ts +13 -0
  152. package/dist/components/ai-elements/sources.d.ts.map +1 -0
  153. package/dist/components/ai-elements/suggestion.d.ts +11 -0
  154. package/dist/components/ai-elements/suggestion.d.ts.map +1 -0
  155. package/dist/components/ai-elements/task.d.ts +15 -0
  156. package/dist/components/ai-elements/task.d.ts.map +1 -0
  157. package/dist/components/ai-elements/tool.d.ts +32 -0
  158. package/dist/components/ai-elements/tool.d.ts.map +1 -0
  159. package/dist/components/ai-elements/toolbar.d.ts +6 -0
  160. package/dist/components/ai-elements/toolbar.d.ts.map +1 -0
  161. package/dist/components/ai-elements/web-preview.d.ts +35 -0
  162. package/dist/components/ai-elements/web-preview.d.ts.map +1 -0
  163. package/dist/components/artifact-actions.d.ts +15 -0
  164. package/dist/components/artifact-actions.d.ts.map +1 -0
  165. package/dist/components/artifact-close-button.d.ts +4 -0
  166. package/dist/components/artifact-close-button.d.ts.map +1 -0
  167. package/dist/components/artifact-messages.d.ts +19 -0
  168. package/dist/components/artifact-messages.d.ts.map +1 -0
  169. package/dist/components/artifact.d.ts +44 -0
  170. package/dist/components/artifact.d.ts.map +1 -0
  171. package/dist/components/chat.d.ts +9 -0
  172. package/dist/components/chat.d.ts.map +1 -0
  173. package/dist/components/code-editor.d.ts +13 -0
  174. package/dist/components/code-editor.d.ts.map +1 -0
  175. package/dist/components/console.d.ts +17 -0
  176. package/dist/components/console.d.ts.map +1 -0
  177. package/dist/components/create-artifact.d.ts +78 -0
  178. package/dist/components/create-artifact.d.ts.map +1 -0
  179. package/dist/components/data-stream-handler.d.ts +2 -0
  180. package/dist/components/data-stream-handler.d.ts.map +1 -0
  181. package/dist/components/data-stream-provider.d.ts +13 -0
  182. package/dist/components/data-stream-provider.d.ts.map +1 -0
  183. package/dist/components/diffview.d.ts +7 -0
  184. package/dist/components/diffview.d.ts.map +1 -0
  185. package/dist/components/document-preview.d.ts +17 -0
  186. package/dist/components/document-preview.d.ts.map +1 -0
  187. package/dist/components/document-skeleton.d.ts +6 -0
  188. package/dist/components/document-skeleton.d.ts.map +1 -0
  189. package/dist/components/document.d.ts +29 -0
  190. package/dist/components/document.d.ts.map +1 -0
  191. package/dist/components/elements/actions.d.ts +10 -0
  192. package/dist/components/elements/actions.d.ts.map +1 -0
  193. package/dist/components/elements/branch.d.ts +21 -0
  194. package/dist/components/elements/branch.d.ts.map +1 -0
  195. package/dist/components/elements/code-block.d.ts +16 -0
  196. package/dist/components/elements/code-block.d.ts.map +1 -0
  197. package/dist/components/elements/conversation.d.ts +10 -0
  198. package/dist/components/elements/conversation.d.ts.map +1 -0
  199. package/dist/components/elements/image.d.ts +7 -0
  200. package/dist/components/elements/image.d.ts.map +1 -0
  201. package/dist/components/elements/inline-citation.d.ts +39 -0
  202. package/dist/components/elements/inline-citation.d.ts.map +1 -0
  203. package/dist/components/elements/loader.d.ts +6 -0
  204. package/dist/components/elements/loader.d.ts.map +1 -0
  205. package/dist/components/elements/message.d.ts +15 -0
  206. package/dist/components/elements/message.d.ts.map +1 -0
  207. package/dist/components/elements/prompt-input.d.ts +33 -0
  208. package/dist/components/elements/prompt-input.d.ts.map +1 -0
  209. package/dist/components/elements/reasoning.d.ts +17 -0
  210. package/dist/components/elements/reasoning.d.ts.map +1 -0
  211. package/dist/components/elements/response.d.ts +9 -0
  212. package/dist/components/elements/response.d.ts.map +1 -0
  213. package/dist/components/elements/source.d.ts +13 -0
  214. package/dist/components/elements/source.d.ts.map +1 -0
  215. package/dist/components/elements/suggestion.d.ts +11 -0
  216. package/dist/components/elements/suggestion.d.ts.map +1 -0
  217. package/dist/components/elements/task.d.ts +15 -0
  218. package/dist/components/elements/task.d.ts.map +1 -0
  219. package/dist/components/elements/tool.d.ts +23 -0
  220. package/dist/components/elements/tool.d.ts.map +1 -0
  221. package/dist/components/elements/web-preview.d.ts +35 -0
  222. package/dist/components/elements/web-preview.d.ts.map +1 -0
  223. package/dist/components/greeting.d.ts +2 -0
  224. package/dist/components/greeting.d.ts.map +1 -0
  225. package/dist/components/icons.d.ts +168 -0
  226. package/dist/components/icons.d.ts.map +1 -0
  227. package/dist/components/image-editor.d.ts +11 -0
  228. package/dist/components/image-editor.d.ts.map +1 -0
  229. package/dist/components/message-actions.d.ts +11 -0
  230. package/dist/components/message-actions.d.ts.map +1 -0
  231. package/dist/components/message-editor.d.ts +11 -0
  232. package/dist/components/message-editor.d.ts.map +1 -0
  233. package/dist/components/message-reasoning.d.ts +7 -0
  234. package/dist/components/message-reasoning.d.ts.map +1 -0
  235. package/dist/components/message.d.ts +19 -0
  236. package/dist/components/message.d.ts.map +1 -0
  237. package/dist/components/messages.d.ts +19 -0
  238. package/dist/components/messages.d.ts.map +1 -0
  239. package/dist/components/multimodal-input.d.ts +25 -0
  240. package/dist/components/multimodal-input.d.ts.map +1 -0
  241. package/dist/components/preview-attachment.d.ts +7 -0
  242. package/dist/components/preview-attachment.d.ts.map +1 -0
  243. package/dist/components/sheet-editor.d.ts +10 -0
  244. package/dist/components/sheet-editor.d.ts.map +1 -0
  245. package/dist/components/sidebar-history-item.d.ts +11 -0
  246. package/dist/components/sidebar-history-item.d.ts.map +1 -0
  247. package/dist/components/sidebar-history.d.ts +30 -0
  248. package/dist/components/sidebar-history.d.ts.map +1 -0
  249. package/dist/components/submit-button.d.ts +5 -0
  250. package/dist/components/submit-button.d.ts.map +1 -0
  251. package/dist/components/suggested-actions.d.ts +10 -0
  252. package/dist/components/suggested-actions.d.ts.map +1 -0
  253. package/dist/components/suggestion.d.ts +8 -0
  254. package/dist/components/suggestion.d.ts.map +1 -0
  255. package/dist/components/text-editor.d.ts +13 -0
  256. package/dist/components/text-editor.d.ts.map +1 -0
  257. package/dist/components/theme-provider.d.ts +15 -0
  258. package/dist/components/theme-provider.d.ts.map +1 -0
  259. package/dist/components/toolbar.d.ts +24 -0
  260. package/dist/components/toolbar.d.ts.map +1 -0
  261. package/dist/components/ui/alert-dialog.d.ts +30 -0
  262. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  263. package/dist/components/ui/alert.d.ts +9 -0
  264. package/dist/components/ui/alert.d.ts.map +1 -0
  265. package/dist/components/ui/avatar.d.ts +6 -0
  266. package/dist/components/ui/avatar.d.ts.map +1 -0
  267. package/dist/components/ui/badge.d.ts +10 -0
  268. package/dist/components/ui/badge.d.ts.map +1 -0
  269. package/dist/components/ui/base-ui.d.ts +10 -0
  270. package/dist/components/ui/base-ui.d.ts.map +1 -0
  271. package/dist/components/ui/button-group.d.ts +12 -0
  272. package/dist/components/ui/button-group.d.ts.map +1 -0
  273. package/dist/components/ui/button.d.ts +14 -0
  274. package/dist/components/ui/button.d.ts.map +1 -0
  275. package/dist/components/ui/card.d.ts +10 -0
  276. package/dist/components/ui/card.d.ts.map +1 -0
  277. package/dist/components/ui/carousel.d.ts +19 -0
  278. package/dist/components/ui/carousel.d.ts.map +1 -0
  279. package/dist/components/ui/collapsible.d.ts +17 -0
  280. package/dist/components/ui/collapsible.d.ts.map +1 -0
  281. package/dist/components/ui/command.d.ts +30 -0
  282. package/dist/components/ui/command.d.ts.map +1 -0
  283. package/dist/components/ui/dialog.d.ts +26 -0
  284. package/dist/components/ui/dialog.d.ts.map +1 -0
  285. package/dist/components/ui/dropdown-menu.d.ts +43 -0
  286. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  287. package/dist/components/ui/hover-card.d.ts +16 -0
  288. package/dist/components/ui/hover-card.d.ts.map +1 -0
  289. package/dist/components/ui/input-group.d.ts +17 -0
  290. package/dist/components/ui/input-group.d.ts.map +1 -0
  291. package/dist/components/ui/input.d.ts +4 -0
  292. package/dist/components/ui/input.d.ts.map +1 -0
  293. package/dist/components/ui/label.d.ts +5 -0
  294. package/dist/components/ui/label.d.ts.map +1 -0
  295. package/dist/components/ui/progress.d.ts +6 -0
  296. package/dist/components/ui/progress.d.ts.map +1 -0
  297. package/dist/components/ui/scroll-area.d.ts +5 -0
  298. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  299. package/dist/components/ui/select.d.ts +26 -0
  300. package/dist/components/ui/select.d.ts.map +1 -0
  301. package/dist/components/ui/separator.d.ts +8 -0
  302. package/dist/components/ui/separator.d.ts.map +1 -0
  303. package/dist/components/ui/sheet.d.ts +32 -0
  304. package/dist/components/ui/sheet.d.ts.map +1 -0
  305. package/dist/components/ui/sidebar.d.ts +69 -0
  306. package/dist/components/ui/sidebar.d.ts.map +1 -0
  307. package/dist/components/ui/skeleton.d.ts +3 -0
  308. package/dist/components/ui/skeleton.d.ts.map +1 -0
  309. package/dist/components/ui/textarea.d.ts +4 -0
  310. package/dist/components/ui/textarea.d.ts.map +1 -0
  311. package/dist/components/ui/tooltip.d.ts +16 -0
  312. package/dist/components/ui/tooltip.d.ts.map +1 -0
  313. package/dist/components/version-footer.d.ts +9 -0
  314. package/dist/components/version-footer.d.ts.map +1 -0
  315. package/dist/components/weather.d.ts +43 -0
  316. package/dist/components/weather.d.ts.map +1 -0
  317. package/dist/data-stream-handler-C52UbdEi.js +56614 -0
  318. package/dist/data-stream-handler-CNnuA7AX.js +56634 -0
  319. package/dist/handler-B3iF4jS4.js +59 -0
  320. package/dist/handler-B4PUL3Fm.js +21 -0
  321. package/dist/handler-BU60I9Tt.js +15 -0
  322. package/dist/handler-Bb3YEDwz.js +30 -0
  323. package/dist/handler-C2MJfgeU.js +15 -0
  324. package/dist/handler-CDFg5cLB.js +11 -0
  325. package/dist/handler-CSLr0jTM.js +18 -0
  326. package/dist/handler-CZ-GUuYr.js +40 -0
  327. package/dist/handler-Cj0HdsW_.js +18 -0
  328. package/dist/handler-CqGNfGKS.js +996 -0
  329. package/dist/handler-Ct7ZyGSn.js +18 -0
  330. package/dist/handler-CwGQ3dV4.js +40 -0
  331. package/dist/handler-CxfBBYhN.js +71 -0
  332. package/dist/handler-CzHg9puj.js +71 -0
  333. package/dist/handler-CzKTKfwA.js +19 -0
  334. package/dist/handler-DAjf6ro0.js +19 -0
  335. package/dist/handler-DBFa5_B9.js +19 -0
  336. package/dist/handler-DF3WRSDj.js +11 -0
  337. package/dist/handler-DN-H4zmz.js +19 -0
  338. package/dist/handler-DRk4qlh0.js +30 -0
  339. package/dist/handler-Df8dOV-8.js +21 -0
  340. package/dist/handler-Dmw-3E9n.js +59 -0
  341. package/dist/handler-ImeP5Thm.js +990 -0
  342. package/dist/handler-_UsjVWVA.js +19 -0
  343. package/dist/handler-oJ8qxBLd.js +19 -0
  344. package/dist/handler-uF8GJoVX.js +18 -0
  345. package/dist/highlighted-body-OFNGDK62-sht-Taf2.js +36 -0
  346. package/dist/hooks/use-artifact.d.ts +12 -0
  347. package/dist/hooks/use-artifact.d.ts.map +1 -0
  348. package/dist/hooks/use-auto-resume.d.ts +10 -0
  349. package/dist/hooks/use-auto-resume.d.ts.map +1 -0
  350. package/dist/hooks/use-controllable-state.d.ts +8 -0
  351. package/dist/hooks/use-controllable-state.d.ts.map +1 -0
  352. package/dist/hooks/use-messages.d.ts +14 -0
  353. package/dist/hooks/use-messages.d.ts.map +1 -0
  354. package/dist/hooks/use-mobile.d.ts +2 -0
  355. package/dist/hooks/use-mobile.d.ts.map +1 -0
  356. package/dist/hooks/use-scroll-to-bottom.d.ts +9 -0
  357. package/dist/hooks/use-scroll-to-bottom.d.ts.map +1 -0
  358. package/dist/index.browser.js +5 -0
  359. package/dist/index.d.ts +9 -0
  360. package/dist/index.d.ts.map +1 -0
  361. package/dist/index.js +5 -0
  362. package/dist/lib/ai/models.d.ts +11 -0
  363. package/dist/lib/ai/models.d.ts.map +1 -0
  364. package/dist/lib/ai/openai-reasoning.d.ts +10 -0
  365. package/dist/lib/ai/openai-reasoning.d.ts.map +1 -0
  366. package/dist/lib/db/schema.d.ts +42 -0
  367. package/dist/lib/db/schema.d.ts.map +1 -0
  368. package/dist/lib/editor/config.d.ts +12 -0
  369. package/dist/lib/editor/config.d.ts.map +1 -0
  370. package/dist/lib/editor/functions.d.ts +7 -0
  371. package/dist/lib/editor/functions.d.ts.map +1 -0
  372. package/dist/lib/editor/react-renderer.d.ts +6 -0
  373. package/dist/lib/editor/react-renderer.d.ts.map +1 -0
  374. package/dist/lib/editor/suggestions.d.ts +20 -0
  375. package/dist/lib/editor/suggestions.d.ts.map +1 -0
  376. package/dist/lib/errors.d.ts +14 -0
  377. package/dist/lib/errors.d.ts.map +1 -0
  378. package/dist/lib/react-external-store.d.ts +6 -0
  379. package/dist/lib/react-external-store.d.ts.map +1 -0
  380. package/dist/lib/tenant.d.ts +10 -0
  381. package/dist/lib/tenant.d.ts.map +1 -0
  382. package/dist/lib/types.d.ts +34 -0
  383. package/dist/lib/types.d.ts.map +1 -0
  384. package/dist/lib/utils.d.ts +22 -0
  385. package/dist/lib/utils.d.ts.map +1 -0
  386. package/dist/loaders/chatLoader.d.ts +12 -0
  387. package/dist/loaders/chatLoader.d.ts.map +1 -0
  388. package/dist/loaders/newChatLoader.d.ts +10 -0
  389. package/dist/loaders/newChatLoader.d.ts.map +1 -0
  390. package/dist/loaders/rootLoader.d.ts +13 -0
  391. package/dist/loaders/rootLoader.d.ts.map +1 -0
  392. package/dist/mermaid-GHXKKRXX-Sdy-PZiv.js +2 -0
  393. package/dist/models/RBAgentsChatDocument.d.ts +13 -0
  394. package/dist/models/RBAgentsChatDocument.d.ts.map +1 -0
  395. package/dist/models/RBAgentsChatMessage.d.ts +14 -0
  396. package/dist/models/RBAgentsChatMessage.d.ts.map +1 -0
  397. package/dist/models/RBAgentsChatSuggestion.d.ts +16 -0
  398. package/dist/models/RBAgentsChatSuggestion.d.ts.map +1 -0
  399. package/dist/models/RBAgentsChatThread.d.ts +13 -0
  400. package/dist/models/RBAgentsChatThread.d.ts.map +1 -0
  401. package/dist/models/RBAgentsChatVote.d.ts +11 -0
  402. package/dist/models/RBAgentsChatVote.d.ts.map +1 -0
  403. package/dist/models/RBAgentsPrompt.d.ts +11 -0
  404. package/dist/models/RBAgentsPrompt.d.ts.map +1 -0
  405. package/dist/models/index.browser.d.ts +30 -0
  406. package/dist/models/index.browser.d.ts.map +1 -0
  407. package/dist/models/index.d.ts +211 -0
  408. package/dist/models/index.d.ts.map +1 -0
  409. package/dist/models-CF61gMjU.js +29 -0
  410. package/dist/models-DUt7W9lV.js +29 -0
  411. package/dist/models.browser.js +51 -0
  412. package/dist/models.js +264 -0
  413. package/dist/openai-reasoning-ARz6ZvZ_.js +19 -0
  414. package/dist/openai-reasoning-jbPa-xup.js +19 -0
  415. package/dist/pages/ChatNewPage.d.ts +2 -0
  416. package/dist/pages/ChatNewPage.d.ts.map +1 -0
  417. package/dist/pages/ChatPage.d.ts +2 -0
  418. package/dist/pages/ChatPage.d.ts.map +1 -0
  419. package/dist/pages/NotFoundPage.d.ts +2 -0
  420. package/dist/pages/NotFoundPage.d.ts.map +1 -0
  421. package/dist/resumableSse-BRFonw_y.js +106 -0
  422. package/dist/resumableSse-DnlE4O7h.js +106 -0
  423. package/dist/routes.browser.js +18 -0
  424. package/dist/routes.d.ts +2 -0
  425. package/dist/routes.d.ts.map +1 -0
  426. package/dist/routes.js +18 -0
  427. package/dist/runtime.d.ts +20 -0
  428. package/dist/runtime.d.ts.map +1 -0
  429. package/dist/runtime.js +10 -0
  430. package/package.json +209 -0
@@ -0,0 +1,39 @@
1
+ import { type ComponentProps } from "react";
2
+ import { Badge } from "@/components/ui/badge";
3
+ import { Carousel } from "@/components/ui/carousel";
4
+ import { HoverCard } from "@/components/ui/hover-card";
5
+ export type InlineCitationProps = ComponentProps<"span">;
6
+ export declare const InlineCitation: ({ className, ...props }: InlineCitationProps) => import("react").JSX.Element;
7
+ export type InlineCitationTextProps = ComponentProps<"span">;
8
+ export declare const InlineCitationText: ({ className, ...props }: InlineCitationTextProps) => import("react").JSX.Element;
9
+ export type InlineCitationCardProps = ComponentProps<typeof HoverCard>;
10
+ export declare const InlineCitationCard: (props: InlineCitationCardProps) => import("react").JSX.Element;
11
+ export type InlineCitationCardTriggerProps = ComponentProps<typeof Badge> & {
12
+ sources: string[];
13
+ };
14
+ export declare const InlineCitationCardTrigger: ({ sources, className, ...props }: InlineCitationCardTriggerProps) => import("react").JSX.Element;
15
+ export type InlineCitationCardBodyProps = ComponentProps<"div">;
16
+ export declare const InlineCitationCardBody: ({ className, ...props }: InlineCitationCardBodyProps) => import("react").JSX.Element;
17
+ export type InlineCitationCarouselProps = ComponentProps<typeof Carousel>;
18
+ export declare const InlineCitationCarousel: ({ className, children, ...props }: InlineCitationCarouselProps) => import("react").JSX.Element;
19
+ export type InlineCitationCarouselContentProps = ComponentProps<"div">;
20
+ export declare const InlineCitationCarouselContent: (props: InlineCitationCarouselContentProps) => import("react").JSX.Element;
21
+ export type InlineCitationCarouselItemProps = ComponentProps<"div">;
22
+ export declare const InlineCitationCarouselItem: ({ className, ...props }: InlineCitationCarouselItemProps) => import("react").JSX.Element;
23
+ export type InlineCitationCarouselHeaderProps = ComponentProps<"div">;
24
+ export declare const InlineCitationCarouselHeader: ({ className, ...props }: InlineCitationCarouselHeaderProps) => import("react").JSX.Element;
25
+ export type InlineCitationCarouselIndexProps = ComponentProps<"div">;
26
+ export declare const InlineCitationCarouselIndex: ({ children, className, ...props }: InlineCitationCarouselIndexProps) => import("react").JSX.Element;
27
+ export type InlineCitationCarouselPrevProps = ComponentProps<"button">;
28
+ export declare const InlineCitationCarouselPrev: ({ className, ...props }: InlineCitationCarouselPrevProps) => import("react").JSX.Element;
29
+ export type InlineCitationCarouselNextProps = ComponentProps<"button">;
30
+ export declare const InlineCitationCarouselNext: ({ className, ...props }: InlineCitationCarouselNextProps) => import("react").JSX.Element;
31
+ export type InlineCitationSourceProps = ComponentProps<"div"> & {
32
+ title?: string;
33
+ url?: string;
34
+ description?: string;
35
+ };
36
+ export declare const InlineCitationSource: ({ title, url, description, className, children, ...props }: InlineCitationSourceProps) => import("react").JSX.Element;
37
+ export type InlineCitationQuoteProps = ComponentProps<"blockquote">;
38
+ export declare const InlineCitationQuote: ({ children, className, ...props }: InlineCitationQuoteProps) => import("react").JSX.Element;
39
+ //# sourceMappingURL=inline-citation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inline-citation.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/inline-citation.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EACL,QAAQ,EAIT,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,SAAS,EAGV,MAAM,4BAA4B,CAAA;AAInC,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,GAAI,yBAG5B,mBAAmB,gCAKrB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,kBAAkB,GAAI,yBAGhC,uBAAuB,gCAKzB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEvE,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,gCAEhE,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,cAAc,CAAC,OAAO,KAAK,CAAC,GAAG;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,kCAIvC,8BAA8B,gCAiBhC,CAAA;AAED,MAAM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yBAAyB,gCAe3B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;AAEpE,eAAO,MAAM,mBAAmB,GAAI,mCAIjC,wBAAwB,gCAU1B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export type LoaderProps = HTMLAttributes<HTMLDivElement> & {
3
+ size?: number;
4
+ };
5
+ export declare const Loader: ({ className, size, ...props }: LoaderProps) => import("react").JSX.Element;
6
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAmF3C,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,+BAAoC,WAAW,gCAUrE,CAAA"}
@@ -0,0 +1,47 @@
1
+ import type { FileUIPart, UIMessage } from "ai";
2
+ import type { ComponentProps, HTMLAttributes } from "react";
3
+ import { Streamdown } from "streamdown";
4
+ import { Button } from "@/components/ui/button";
5
+ export type MessageProps = HTMLAttributes<HTMLDivElement> & {
6
+ from: UIMessage["role"];
7
+ };
8
+ export declare const Message: ({ className, from, ...props }: MessageProps) => import("react").JSX.Element;
9
+ export type MessageContentProps = HTMLAttributes<HTMLDivElement>;
10
+ export declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => import("react").JSX.Element;
11
+ export type MessageActionsProps = ComponentProps<"div">;
12
+ export declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => import("react").JSX.Element;
13
+ export type MessageActionProps = ComponentProps<typeof Button> & {
14
+ tooltip?: string;
15
+ label?: string;
16
+ };
17
+ export declare const MessageAction: ({ tooltip, children, label, variant, size, ...props }: MessageActionProps) => import("react").JSX.Element;
18
+ export type MessageBranchProps = HTMLAttributes<HTMLDivElement> & {
19
+ defaultBranch?: number;
20
+ onBranchChange?: (branchIndex: number) => void;
21
+ };
22
+ export declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => import("react").JSX.Element;
23
+ export type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
24
+ export declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => import("react").JSX.Element[];
25
+ export type MessageBranchSelectorProps = HTMLAttributes<HTMLDivElement> & {
26
+ from: UIMessage["role"];
27
+ };
28
+ export declare const MessageBranchSelector: ({ className, from, ...props }: MessageBranchSelectorProps) => import("react").JSX.Element | null;
29
+ export type MessageBranchPreviousProps = ComponentProps<typeof Button>;
30
+ export declare const MessageBranchPrevious: ({ children, ...props }: MessageBranchPreviousProps) => import("react").JSX.Element;
31
+ export type MessageBranchNextProps = ComponentProps<typeof Button>;
32
+ export declare const MessageBranchNext: ({ children, className, ...props }: MessageBranchNextProps) => import("react").JSX.Element;
33
+ export type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
34
+ export declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => import("react").JSX.Element;
35
+ export type MessageResponseProps = ComponentProps<typeof Streamdown>;
36
+ export declare const MessageResponse: import("react").MemoExoticComponent<({ className, ...props }: MessageResponseProps) => import("react").JSX.Element>;
37
+ export type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
38
+ data: FileUIPart;
39
+ className?: string;
40
+ onRemove?: () => void;
41
+ };
42
+ export declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps): import("react").JSX.Element;
43
+ export type MessageAttachmentsProps = ComponentProps<"div">;
44
+ export declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): import("react").JSX.Element | null;
45
+ export type MessageToolbarProps = ComponentProps<"div">;
46
+ export declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => import("react").JSX.Element;
47
+ //# sourceMapp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T,GAAG,KAAK,EACT,EAAE,uBAAuB,sCAgBzB;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAUrB,CAAA"}
@@ -0,0 +1,37 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import { CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "@/components/ui/command";
3
+ import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
4
+ export type ModelSelectorProps = ComponentProps<typeof Dialog>;
5
+ export declare const ModelSelector: (props: ModelSelectorProps) => import("react").JSX.Element;
6
+ export type ModelSelectorTriggerProps = ComponentProps<typeof DialogTrigger>;
7
+ export declare const ModelSelectorTrigger: (props: ModelSelectorTriggerProps) => import("react").JSX.Element;
8
+ export type ModelSelectorContentProps = ComponentProps<typeof DialogContent> & {
9
+ title?: ReactNode;
10
+ };
11
+ export declare const ModelSelectorContent: ({ className, children, title, ...props }: ModelSelectorContentProps) => import("react").JSX.Element;
12
+ export type ModelSelectorDialogProps = ComponentProps<typeof CommandDialog>;
13
+ export declare const ModelSelectorDialog: (props: ModelSelectorDialogProps) => import("react").JSX.Element;
14
+ export type ModelSelectorInputProps = ComponentProps<typeof CommandInput>;
15
+ export declare const ModelSelectorInput: ({ className, ...props }: ModelSelectorInputProps) => import("react").JSX.Element;
16
+ export type ModelSelectorListProps = ComponentProps<typeof CommandList>;
17
+ export declare const ModelSelectorList: (props: ModelSelectorListProps) => import("react").JSX.Element;
18
+ export type ModelSelectorEmptyProps = ComponentProps<typeof CommandEmpty>;
19
+ export declare const ModelSelectorEmpty: (props: ModelSelectorEmptyProps) => import("react").JSX.Element;
20
+ export type ModelSelectorGroupProps = ComponentProps<typeof CommandGroup>;
21
+ export declare const ModelSelectorGroup: (props: ModelSelectorGroupProps) => import("react").JSX.Element;
22
+ export type ModelSelectorItemProps = ComponentProps<typeof CommandItem>;
23
+ export declare const ModelSelectorItem: (props: ModelSelectorItemProps) => import("react").JSX.Element;
24
+ export type ModelSelectorShortcutProps = ComponentProps<typeof CommandShortcut>;
25
+ export declare const ModelSelectorShortcut: (props: ModelSelectorShortcutProps) => import("react").JSX.Element;
26
+ export type ModelSelectorSeparatorProps = ComponentProps<typeof CommandSeparator>;
27
+ export declare const ModelSelectorSeparator: (props: ModelSelectorSeparatorProps) => import("react").JSX.Element;
28
+ export type ModelSelectorLogoProps = {
29
+ className?: string;
30
+ provider: "moonshotai-cn" | "lucidquery" | "moonshotai" | "zai-coding-plan" | "alibaba" | "xai" | "vultr" | "nvidia" | "upstage" | "groq" | "github-copilot" | "mistral" | "vercel" | "nebius" | "deepseek" | "alibaba-cn" | "google-vertex-anthropic" | "venice" | "chutes" | "cortecs" | "github-models" | "togetherai" | "azure" | "baseten" | "huggingface" | "opencode" | "fastrouter" | "google" | "google-vertex" | "cloudflare-workers-ai" | "inception" | "wandb" | "openai" | "zhipuai-coding-plan" | "perplexity" | "openrouter" | "zenmux" | "v0" | "iflowcn" | "synthetic" | "deepinfra" | "zhipuai" | "submodel" | "zai" | "inference" | "requesty" | "morph" | "lmstudio" | "anthropic" | "aihubmix" | "fireworks-ai" | "modelscope" | "llama" | "scaleway" | "amazon-bedrock" | "cerebras" | (string & {});
31
+ };
32
+ export declare const ModelSelectorLogo: ({ provider, className, }: ModelSelectorLogoProps) => import("react").JSX.Element;
33
+ export type ModelSelectorLogoGroupProps = ComponentProps<"div">;
34
+ export declare const ModelSelectorLogoGroup: ({ className, ...props }: ModelSelectorLogoGroupProps) => import("react").JSX.Element;
35
+ export type ModelSelectorNameProps = ComponentProps<"span">;
36
+ export declare const ModelSelectorName: ({ className, ...props }: ModelSelectorNameProps) => import("react").JSX.Element;
37
+ //# sourceMappingURL=model-selector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-selector.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/model-selector.tsx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,UAAU,GACV,gBAAgB,GAChB,UAAU,GACV,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,0BAG/B,sBAAsB,gCAQxB,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEhE,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,gCAQ7B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB,GAAI,yBAG/B,sBAAsB,gCAExB,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { ComponentProps } from "react";
2
+ import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@/components/ui/card";
3
+ export type NodeProps = ComponentProps<typeof Card> & {
4
+ handles: {
5
+ target: boolean;
6
+ source: boolean;
7
+ };
8
+ };
9
+ export declare const Node: ({ handles, className, ...props }: NodeProps) => import("react").JSX.Element;
10
+ export type NodeHeaderProps = ComponentProps<typeof CardHeader>;
11
+ export declare const NodeHeader: ({ className, ...props }: NodeHeaderProps) => import("react").JSX.Element;
12
+ export type NodeTitleProps = ComponentProps<typeof CardTitle>;
13
+ export declare const NodeTitle: (props: NodeTitleProps) => import("react").JSX.Element;
14
+ export type NodeDescriptionProps = ComponentProps<typeof CardDescription>;
15
+ export declare const NodeDescription: (props: NodeDescriptionProps) => import("react").JSX.Element;
16
+ export type NodeActionProps = ComponentProps<typeof CardAction>;
17
+ export declare const NodeAction: (props: NodeActionProps) => import("react").JSX.Element;
18
+ export type NodeContentProps = ComponentProps<typeof CardContent>;
19
+ export declare const NodeContent: ({ className, ...props }: NodeContentProps) => import("react").JSX.Element;
20
+ export type NodeFooterProps = ComponentProps<typeof CardFooter>;
21
+ export declare const NodeFooter: ({ className, ...props }: NodeFooterProps) => import("react").JSX.Element;
22
+ //# sourceMappingURL=node.d.ts.map
@@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KlE,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { type ComponentProps } from "react";
2
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
3
+ export type OpenInProps = ComponentProps<typeof DropdownMenu> & {
4
+ query: string;
5
+ };
6
+ export declare const OpenIn: ({ query, ...props }: OpenInProps) => import("react").JSX.Element;
7
+ export type OpenInContentProps = ComponentProps<typeof DropdownMenuContent>;
8
+ export declare const OpenInContent: ({ className, ...props }: OpenInContentProps) => import("react").JSX.Element;
9
+ export type OpenInItemProps = ComponentProps<typeof DropdownMenuItem>;
10
+ export declare const OpenInItem: (props: OpenInItemProps) => import("react").JSX.Element;
11
+ export type OpenInLabelProps = ComponentProps<typeof DropdownMenuLabel>;
12
+ export declare const OpenInLabel: (props: OpenInLabelProps) => import("react").JSX.Element;
13
+ export type OpenInSeparatorProps = ComponentProps<typeof DropdownMenuSeparator>;
14
+ export declare const OpenInSeparator: (props: OpenInSeparatorProps) => import("react").JSX.Element;
15
+ export type OpenInTriggerProps = ComponentProps<typeof DropdownMenuTrigger>;
16
+ export declare const OpenInTrigger: ({ children, ...props }: OpenInTriggerProps) => import("react").JSX.Element;
17
+ export type OpenInChatGPTProps = ComponentProps<typeof DropdownMenuItem>;
18
+ export declare const OpenInChatGPT: (props: OpenInChatGPTProps) => import("react").JSX.Element;
19
+ export type OpenInClaudeProps = ComponentProps<typeof DropdownMenuItem>;
20
+ export declare const OpenInClaude: (props: OpenInClaudeProps) => import("react").JSX.Element;
21
+ export type OpenInT3Props = ComponentProps<typeof DropdownMenuItem>;
22
+ export declare const OpenInT3: (props: OpenInT3Props) => import("react").JSX.Element;
23
+ export type OpenInSciraProps = ComponentProps<typeof DropdownMenuItem>;
24
+ export declare const OpenInScira: (props: OpenInSciraProps) => import("react").JSX.Element;
25
+ export type OpenInv0Props = ComponentProps<typeof DropdownMenuItem>;
26
+ export declare const OpenInv0: (props: OpenInv0Props) => import("react").JSX.Element;
27
+ export type OpenInCursorProps = ComponentProps<typeof DropdownMenuItem>;
28
+ export declare const OpenInCursor: (props: OpenInCursorProps) => import("react").JSX.Element;
29
+ //# sourceMappingURL=open-in-chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-in-chat.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/open-in-chat.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,OAAO,CAAA;AAGtE,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,+BAA+B,CAAA;AAoLtC,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,GAAG;IAC9D,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,qBAAqB,WAAW,gCAItD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa,GAAI,yBAAyB,kBAAkB,gCAMxE,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEtE,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,gCAEhD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAExE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,gCAElD,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEhF,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,gCAE1D,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,gCASvE,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEzE,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,gCAgBtD,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,gCAgBpD,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,gCAgB5C,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEvE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,gCAgBlD,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEpE,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,gCAgB5C,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAExE,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,gCAgBpD,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { Panel as PanelPrimitive } from "@xyflow/react";
2
+ import type { ComponentProps } from "react";
3
+ type PanelProps = ComponentProps<typeof PanelPrimitive>;
4
+ export declare const Panel: ({ className, ...props }: PanelProps) => import("react").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/panel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAK3C,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,eAAO,MAAM,KAAK,GAAI,yBAAyB,UAAU,gCAQxD,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { ComponentProps } from "react";
2
+ import { CardAction, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
3
+ import { Collapsible, CollapsibleTrigger } from "@/components/ui/collapsible";
4
+ export type PlanProps = ComponentProps<typeof Collapsible> & {
5
+ isStreaming?: boolean;
6
+ };
7
+ export declare const Plan: ({ className, isStreaming, children, ...props }: PlanProps) => import("react").JSX.Element;
8
+ export type PlanHeaderProps = ComponentProps<typeof CardHeader>;
9
+ export declare const PlanHeader: ({ className, ...props }: PlanHeaderProps) => import("react").JSX.Element;
10
+ export type PlanTitleProps = Omit<ComponentProps<typeof CardTitle>, "children"> & {
11
+ children: string;
12
+ };
13
+ export declare const PlanTitle: ({ children, ...props }: PlanTitleProps) => import("react").JSX.Element;
14
+ export type PlanDescriptionProps = Omit<ComponentProps<typeof CardDescription>, "children"> & {
15
+ children: string;
16
+ };
17
+ export declare const PlanDescription: ({ className, children, ...props }: PlanDescriptionProps) => import("react").JSX.Element;
18
+ export type PlanActionProps = ComponentProps<typeof CardAction>;
19
+ export declare const PlanAction: (props: PlanActionProps) => import("react").JSX.Element;
20
+ export type PlanContentProps = ComponentProps<typeof CardContent>;
21
+ export declare const PlanContent: (props: PlanContentProps) => import("react").JSX.Element;
22
+ export type PlanFooterProps = ComponentProps<"div">;
23
+ export declare const PlanFooter: (props: PlanFooterProps) => import("react").JSX.Element;
24
+ export type PlanTriggerProps = ComponentProps<typeof CollapsibleTrigger>;
25
+ export declare const PlanTrigger: ({ className, ...props }: PlanTriggerProps) => import("react").JSX.Element;
26
+ //# sourceMappingURL=plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/plan.tsx"],"names":[],"mappings":"AACA,OAAO,K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GAAI,OAAO,eAAe,gCAEhD,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,eAAO,MAAM,WAAW,GAAI,yBAAyB,gBAAgB,gCAapE,CAAA"}
@@ -0,0 +1,188 @@
1
+ import type { ChatStatus, FileUIPart } from "ai";
2
+ import { type ComponentProps, type FormEvent, type HTMLAttributes, type PropsWithChildren, type ReactNode, type RefObject } from "react";
3
+ import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from "@/components/ui/command";
4
+ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem } from "@/components/ui/dropdown-menu";
5
+ import { HoverCard, HoverCardContent, HoverCardTrigger } from "@/components/ui/hover-card";
6
+ import { InputGroupAddon, InputGroupButton, InputGroupTextarea } from "@/components/ui/input-group";
7
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
8
+ export type AttachmentsContext = {
9
+ files: (FileUIPart & {
10
+ id: string;
11
+ })[];
12
+ add: (files: File[] | FileList) => void;
13
+ remove: (id: string) => void;
14
+ clear: () => void;
15
+ openFileDialog: () => void;
16
+ fileInputRef: RefObject<HTMLInputElement | null>;
17
+ };
18
+ export type TextInputContext = {
19
+ value: string;
20
+ setInput: (v: string) => void;
21
+ clear: () => void;
22
+ };
23
+ export type PromptInputControllerProps = {
24
+ textInput: TextInputContext;
25
+ attachments: AttachmentsContext;
26
+ /** INTERNAL: Allows PromptInput to register its file textInput + "open" callback */
27
+ __registerFileInput: (ref: RefObject<HTMLInputElement | null>, open: () => void) => void;
28
+ };
29
+ export declare const usePromptInputController: () => PromptInputControllerProps;
30
+ export declare const useProviderAttachments: () => AttachmentsContext;
31
+ export type PromptInputProviderProps = PropsWithChildren<{
32
+ initialInput?: string;
33
+ }>;
34
+ /**
35
+ * Optional global provider that lifts PromptInput state outside of PromptInput.
36
+ * If you don't use it, PromptInput stays fully self-managed.
37
+ */
38
+ export declare function PromptInputProvider({ initialInput: initialTextInput, children, }: PromptInputProviderProps): import("react").JSX.Element;
39
+ export declare const usePromptInputAttachments: () => AttachmentsContext;
40
+ export type PromptInputAttachmentProps = HTMLAttributes<HTMLDivElement> & {
41
+ data: FileUIPart & {
42
+ id: string;
43
+ };
44
+ className?: string;
45
+ };
46
+ export declare function PromptInputAttachment({ data, className, ...props }: PromptInputAttachmentProps): import("react").JSX.Element;
47
+ export type PromptInputAttachmentsProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
48
+ children: (attachment: FileUIPart & {
49
+ id: string;
50
+ }) => ReactNode;
51
+ };
52
+ export declare function PromptInputAttachments({ children, className, ...props }: PromptInputAttachmentsProps): import("react").JSX.Element | null;
53
+ export type PromptInputActionAddAttachmentsProps = ComponentProps<typeof DropdownMenuItem> & {
54
+ label?: string;
55
+ };
56
+ export declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => import("react").JSX.Element;
57
+ export type PromptInputMessage = {
58
+ text: string;
59
+ files: FileUIPart[];
60
+ };
61
+ export type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, "onSubmit" | "onError"> & {
62
+ accept?: string;
63
+ multiple?: boolean;
64
+ globalDrop?: boolean;
65
+ syncHiddenInput?: boolean;
66
+ maxFiles?: number;
67
+ maxFileSize?: number;
68
+ onError?: (err: {
69
+ code: "max_files" | "max_file_size" | "accept";
70
+ message: string;
71
+ }) => void;
72
+ onSubmit: (message: PromptInputMessage, event: FormEvent<HTMLFormElement>) => void | Promise<void>;
73
+ };
74
+ export declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => import("react").JSX.Element;
75
+ export type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
76
+ export declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => import("react").JSX.Element;
77
+ export type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
78
+ export declare const PromptInputTextarea: ({ onChange, className, placeholder, ...props }: PromptInputTextareaProps) => import("react").JSX.Element;
79
+ export type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
80
+ export declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => import("react").JSX.Element;
81
+ export type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
82
+ export declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => import("react").JSX.Element;
83
+ export type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
84
+ export declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => import("react").JSX.Element;
85
+ export type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
86
+ export declare const PromptInputButton: ({ variant, className, size, ...props }: PromptInputButtonProps) => import("react").JSX.Element;
87
+ export type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
88
+ export declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => import("react").JSX.Element;
89
+ export type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
90
+ export declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => import("react").JSX.Element;
91
+ export type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
92
+ export declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => import("react").JSX.Element;
93
+ export type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
94
+ export declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => import("react").JSX.Element;
95
+ export type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
96
+ status?: ChatStatus;
97
+ };
98
+ export declare const PromptInputSubmit: ({ className, variant, size, status, children, ...props }: PromptInputSubmitProps) => import("react").JSX.Element;
99
+ interface SpeechRecognition extends EventTarget {
100
+ continuous: boolean;
101
+ interimResults: boolean;
102
+ lang: string;
103
+ start(): void;
104
+ stop(): void;
105
+ onstart: ((this: SpeechRecognition, ev: Event) => void) | null;
106
+ onend: ((this: SpeechRecognition, ev: Event) => void) | null;
107
+ onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => void) | null;
108
+ onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => void) | null;
109
+ }
110
+ interface SpeechRecognitionEvent extends Event {
111
+ results: SpeechRecognitionResultList;
112
+ resultIndex: number;
113
+ }
114
+ type SpeechRecognitionResultList = {
115
+ readonly length: number;
116
+ item(index: number): SpeechRecognitionResult;
117
+ [index: number]: SpeechRecognitionResult;
118
+ };
119
+ type SpeechRecognitionResult = {
120
+ readonly length: number;
121
+ item(index: number): SpeechRecognitionAlternative;
122
+ [index: number]: SpeechRecognitionAlternative;
123
+ isFinal: boolean;
124
+ };
125
+ type SpeechRecognitionAlternative = {
126
+ transcript: string;
127
+ confidence: number;
128
+ };
129
+ interface SpeechRecognitionErrorEvent extends Event {
130
+ error: string;
131
+ }
132
+ declare global {
133
+ interface Window {
134
+ SpeechRecognition: {
135
+ new (): SpeechRecognition;
136
+ };
137
+ webkitSpeechRecognition: {
138
+ new (): SpeechRecognition;
139
+ };
140
+ }
141
+ }
142
+ export type PromptInputSpeechButtonProps = ComponentProps<typeof PromptInputButton> & {
143
+ textareaRef?: RefObject<HTMLTextAreaElement | null>;
144
+ onTranscriptionChange?: (text: string) => void;
145
+ };
146
+ export declare const PromptInputSpeechButton: ({ className, textareaRef, onTranscriptionChange, ...props }: PromptInputSpeechButtonProps) => import("react").JSX.Element;
147
+ export type PromptInputSelectProps = ComponentProps<typeof Select>;
148
+ export declare const PromptInputSelect: (props: PromptInputSelectProps) => import("react").JSX.Element;
149
+ export type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
150
+ export declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => import("react").JSX.Element;
151
+ export type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
152
+ export declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => import("react").JSX.Element;
153
+ export type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
154
+ export declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => import("react").JSX.Element;
155
+ export type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
156
+ export declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => import("react").JSX.Element;
157
+ export type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
158
+ export declare const PromptInputHoverCard: ({ openDelay, closeDelay, ...props }: PromptInputHoverCardProps) => import("react").JSX.Element;
159
+ export type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
160
+ export declare const PromptInputHoverCardTrigger: (props: PromptInputHoverCardTriggerProps) => import("react").JSX.Element;
161
+ export type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
162
+ export declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => import("react").JSX.Element;
163
+ export type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
164
+ export declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => import("react").JSX.Element;
165
+ export type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
166
+ export declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => import("react").JSX.Element;
167
+ export type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
168
+ export declare const PromptInputTabLabel: ({ className, ...props }: PromptInputTabLabelProps) => import("react").JSX.Element;
169
+ export type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
170
+ export declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => import("react").JSX.Element;
171
+ export type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
172
+ export declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => import("react").JSX.Element;
173
+ export type PromptInputCommandProps = ComponentProps<typeof Command>;
174
+ export declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => import("react").JSX.Element;
175
+ export type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
176
+ export declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => import("react").JSX.Element;
177
+ export type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
178
+ export declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => import("react").JSX.Element;
179
+ export type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
180
+ export declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => import("react").JSX.Element;
181
+ export type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
182
+ export declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => import("react").JSX.Element;
183
+ export type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
184
+ export declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => import("react").JSX.Element;
185
+ export type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
186
+ export declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => import("react").JSX.Element;
187
+ export {};
188
+ //# sourceMappingURL=prompt-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-input.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/prompt-input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AAYhD,OAAO,EAKL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAGd,KAAK,cAAc,EAEnB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAGd,OAAO,EACL,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,E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,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,gCAE9B,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,gCAE7B,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAC3D,OAAO,gBAAgB,CACxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,yBAGzC,gCAAgC,gCAElC,CAAA"}
@@ -0,0 +1,62 @@
1
+ import type { ComponentProps } from "react";
2
+ import { Button } from "@/components/ui/button";
3
+ import { Collapsible, CollapsibleContent } from "@/components/ui/collapsible";
4
+ import { ScrollArea } from "@/components/ui/scroll-area";
5
+ export type QueueMessagePart = {
6
+ type: string;
7
+ text?: string;
8
+ url?: string;
9
+ filename?: string;
10
+ mediaType?: string;
11
+ };
12
+ export type QueueMessage = {
13
+ id: string;
14
+ parts: QueueMessagePart[];
15
+ };
16
+ export type QueueTodo = {
17
+ id: string;
18
+ title: string;
19
+ description?: string;
20
+ status?: "pending" | "completed";
21
+ };
22
+ export type QueueItemProps = ComponentProps<"li">;
23
+ export declare const QueueItem: ({ className, ...props }: QueueItemProps) => import("react").JSX.Element;
24
+ export type QueueItemIndicatorProps = ComponentProps<"span"> & {
25
+ completed?: boolean;
26
+ };
27
+ export declare const QueueItemIndicator: ({ completed, className, ...props }: QueueItemIndicatorProps) => import("react").JSX.Element;
28
+ export type QueueItemContentProps = ComponentProps<"span"> & {
29
+ completed?: boolean;
30
+ };
31
+ export declare const QueueItemContent: ({ completed, className, ...props }: QueueItemContentProps) => import("react").JSX.Element;
32
+ export type QueueItemDescriptionProps = ComponentProps<"div"> & {
33
+ completed?: boolean;
34
+ };
35
+ export declare const QueueItemDescription: ({ completed, className, ...props }: QueueItemDescriptionProps) => import("react").JSX.Element;
36
+ export type QueueItemActionsProps = ComponentProps<"div">;
37
+ export declare const QueueItemActions: ({ className, ...props }: QueueItemActionsProps) => import("react").JSX.Element;
38
+ export type QueueItemActionProps = Omit<ComponentProps<typeof Button>, "variant" | "size">;
39
+ export declare const QueueItemAction: ({ className, ...props }: QueueItemActionProps) => import("react").JSX.Element;
40
+ export type QueueItemAttachmentProps = ComponentProps<"div">;
41
+ export declare const QueueItemAttachment: ({ className, ...props }: QueueItemAttachmentProps) => import("react").JSX.Element;
42
+ export type QueueItemImageProps = ComponentProps<"img">;
43
+ export declare const QueueItemImage: ({ className, ...props }: QueueItemImageProps) => import("react").JSX.Element;
44
+ export type QueueItemFileProps = ComponentProps<"span">;
45
+ export declare const QueueItemFile: ({ children, className, ...props }: QueueItemFileProps) => import("react").JSX.Element;
46
+ export type QueueListProps = ComponentProps<typeof ScrollArea>;
47
+ export declare const QueueList: ({ children, className, ...props }: QueueListProps) => import("react").JSX.Element;
48
+ export type QueueSectionProps = ComponentProps<typeof Collapsible>;
49
+ export declare const QueueSection: ({ className, defaultOpen, ...props }: QueueSectionProps) => import("react").JSX.Element;
50
+ export type QueueSectionTriggerProps = ComponentProps<"button">;
51
+ export declare const QueueSectionTrigger: ({ children, className, ...props }: QueueSectionTriggerProps) => import("react").JSX.Element;
52
+ export type QueueSectionLabelProps = ComponentProps<"span"> & {
53
+ count?: number;
54
+ label: string;
55
+ icon?: React.ReactNode;
56
+ };
57
+ export declare const QueueSectionLabel: ({ count, label, icon, className, ...props }: QueueSectionLabelProps) => import("react").JSX.Element;
58
+ export type QueueSectionContentProps = ComponentProps<typeof CollapsibleContent>;
59
+ export declare const QueueSectionContent: ({ className, ...props }: QueueSectionContentProps) => import("react").JSX.Element;
60
+ export type QueueProps = ComponentProps<"div">;
61
+ export declare const Queue: ({ className, ...props }: QueueProps) => import("react").JSX.Element;
62
+ //# sourceMappingURL=queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/queue.tsx"],"names":[],"mapp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G,cAAc,CAAC,MAAM,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,6CAM/B,sBAAsB,gCAQxB,CAAA;AAGD,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,kBAAkB,CAC1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,gCAE1B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/C,eAAO,MAAM,KAAK,GAAI,yBAAyB,UAAU,gCAQxD,CAAA"}
@@ -0,0 +1,27 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
3
+ type ReasoningContextValue = {
4
+ isStreaming: boolean;
5
+ isOpen: boolean;
6
+ setIsOpen: (open: boolean) => void;
7
+ duration: number | undefined;
8
+ };
9
+ export declare const useReasoning: () => ReasoningContextValue;
10
+ export type ReasoningProps = ComponentProps<typeof Collapsible> & {
11
+ isStreaming?: boolean;
12
+ open?: boolean;
13
+ defaultOpen?: boolean;
14
+ onOpenChange?: (open: boolean) => void;
15
+ duration?: number;
16
+ };
17
+ export declare const Reasoning: import("react").MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, children, ...props }: ReasoningProps) => import("react").JSX.Element>;
18
+ export type ReasoningTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
19
+ getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode;
20
+ };
21
+ export declare const ReasoningTrigger: import("react").MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) => import("react").JSX.Element>;
22
+ export type ReasoningContentProps = ComponentProps<typeof CollapsibleContent> & {
23
+ children: string;
24
+ };
25
+ export declare const ReasoningContent: import("react").MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => import("react").JSX.Element>;
26
+ export {};
27
+ //# sourceMappingURL=reasoning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reasoning.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/reasoning.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,6BAA6B,CAAA;AAOpC,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,YAAY,6BAMxB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,GAAG;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,eAAO,MAAM,SAAS,gJAUjB,cAAc,iCA0DlB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAChD,OAAO,kBAAkB,CAC1B,GAAG;IACF,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;CAC7E,CAAC;AAYF,eAAO,MAAM,gBAAgB,8FAMxB,qBAAqB,iCA0BzB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAChD,OAAO,kBAAkB,CAC1B,GAAG;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0EACS,qBAAqB,iCAmB1D,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { type ElementType, type JSX } from "react";
2
+ export type TextShimmerProps = {
3
+ children: string;
4
+ as?: ElementType;
5
+ className?: string;
6
+ duration?: number;
7
+ spread?: number;
8
+ };
9
+ export declare const Shimmer: import("react").MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => JSX.Element>;
10
+ //# sourceMappingURL=shimmer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../../src/components/ai-elements/shimmer.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,GAAG,EAGT,MAAM,OAAO,CAAA;AAKd,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA6CF,eAAO,MAAM,OAAO,kGArCjB,gBAAgB,iBAqC0B,CAAA"}