@vite-hub/ui 0.1.0 → 0.3.1

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 (308) hide show
  1. package/README.md +244 -18
  2. package/dist/attachments-BzTwqRTU.js +90 -0
  3. package/dist/choices-input-ByXJvDn1.d.ts +94 -0
  4. package/dist/{code-view-J4OsgEdh.js → code-view-D0bqhogi.js} +20 -4
  5. package/dist/colors-BghReA9C-CjF9gnmy.js +28 -0
  6. package/dist/comment-composer-Cc8Jvu6u.d.ts +243 -0
  7. package/dist/comment-composer-jYv2ULNP.js +591 -0
  8. package/dist/comment-layer-ClH4MLj4.d.ts +165 -0
  9. package/dist/comment-list-B8hphLfS.d.ts +62 -0
  10. package/dist/comment-marks.css +234 -0
  11. package/dist/comment-panel-fcKSKwLC.d.ts +197 -0
  12. package/dist/comment-person-CLPlW_SS.js +40 -0
  13. package/dist/comment-pin-CvwgRSDR.d.ts +68 -0
  14. package/dist/comment-row-Bbm9WwuF.js +39 -0
  15. package/dist/comment-thread-CoTLrdal.d.ts +368 -0
  16. package/dist/comment-visibility-DsVuVndP.d.ts +40 -0
  17. package/dist/{comments-ChNJkV1d.d.ts → comments-Bx2WRsYy.d.ts} +69 -7
  18. package/dist/{comments-C08J3z4e.js → comments-CkWc2Khc.js} +155 -60
  19. package/dist/comments-context-C2lOZyQ5.js +38 -0
  20. package/dist/config-DgxBW013.d.ts +80 -0
  21. package/dist/config-Dk67emQt.js +63 -0
  22. package/dist/copy-button-CRN3kmSD.js +253 -0
  23. package/dist/draw-DzSmD7uo-Dwz8zoH2.js +72976 -0
  24. package/dist/editor-C_wt4RRV.js +582 -0
  25. package/dist/error-diagnostics-SXtnk6bz.js +38 -0
  26. package/dist/{file-tree-C1pv4_AI.js → file-tree-C4OYgbV-.js} +292 -145
  27. package/dist/{file-tree-Ctb8hZ_g.d.ts → file-tree-DlT9RGhu.d.ts} +51 -15
  28. package/dist/format-Du58PlsG.js +18 -0
  29. package/dist/handlers-DMl-Na3x.js +182 -0
  30. package/dist/headless.d.ts +5 -176
  31. package/dist/headless.js +5 -3
  32. package/dist/icon-swap.css +69 -0
  33. package/dist/{image-preview-VfknBEFu.js → image-preview-C9tdkmEj.js} +8 -5
  34. package/dist/{index-DcH0QSI5.d.ts → index-BD1e8vx5.d.ts} +8 -0
  35. package/dist/{code-view-vDM-hph-.d.ts → index-CNY1uNTh.d.ts} +14 -228
  36. package/dist/index.d.ts +53 -56
  37. package/dist/index.js +677 -25
  38. package/dist/markdown-editor-CMbNZOdN.js +2394 -0
  39. package/dist/markdown-editor-DqdZfIEn.d.ts +195 -0
  40. package/dist/markdown-editor.d.ts +108 -0
  41. package/dist/markdown-editor.js +3 -0
  42. package/dist/message-scroller-Bm1YWTeY.d.ts +175 -0
  43. package/dist/nuxt-ui-DSQFzq3s.js +38 -0
  44. package/dist/nuxt.d.ts +84 -2
  45. package/dist/nuxt.js +237 -35
  46. package/dist/parts/components/agent-session.d.ts +254 -0
  47. package/dist/parts/components/agent-session.js +640 -0
  48. package/dist/{attachment-BBndG9_P.d.ts → parts/components/attachment.d.ts} +13 -14
  49. package/dist/{attachment-B3dXC7jM.js → parts/components/attachment.js} +6 -4
  50. package/dist/{avatar-stack.d.ts → parts/components/avatar-stack.d.ts} +1 -1
  51. package/dist/{avatar-stack-DM6HRnc0.js → parts/components/avatar-stack.js} +2 -5
  52. package/dist/{bubble-BJH2rfii.d.ts → parts/components/bubble.d.ts} +8 -9
  53. package/dist/{bubble-BPyFQlW7.js → parts/components/bubble.js} +2 -2
  54. package/dist/{chat-message-mpDmZbIC.d.ts → parts/components/chat-message.d.ts} +2 -3
  55. package/dist/{chat-message-BNK9G7xF.js → parts/components/chat-message.js} +4 -4
  56. package/dist/{chat-session-D6C7VJBR.d.ts → parts/components/chat-session.d.ts} +3 -4
  57. package/dist/{chat-session-DYEHB1HC.js → parts/components/chat-session.js} +2 -2
  58. package/dist/{chat-B9HlZWA2.d.ts → parts/components/chat.d.ts} +8 -4
  59. package/dist/{chat-BoFHlu9V.js → parts/components/chat.js} +42 -9
  60. package/dist/{highlighted-code-Dzf6o54i.d.ts → parts/components/code-block.d.ts} +16 -24
  61. package/dist/{code-block-Br-02hn-.js → parts/components/code-block.js} +9 -38
  62. package/dist/parts/components/code-view.d.ts +270 -0
  63. package/dist/parts/components/code-view.js +2 -0
  64. package/dist/parts/components/comment-composer.d.ts +2 -0
  65. package/dist/parts/components/comment-composer.js +2 -0
  66. package/dist/parts/components/comment-layer.d.ts +2 -0
  67. package/dist/parts/components/comment-layer.js +618 -0
  68. package/dist/parts/components/comment-list.d.ts +2 -0
  69. package/dist/parts/components/comment-list.js +167 -0
  70. package/dist/parts/components/comment-panel.d.ts +2 -0
  71. package/dist/parts/components/comment-panel.js +299 -0
  72. package/dist/parts/components/comment-pin.d.ts +2 -0
  73. package/dist/parts/components/comment-pin.js +75 -0
  74. package/dist/parts/components/comment-thread.d.ts +2 -0
  75. package/dist/parts/components/comment-thread.js +571 -0
  76. package/dist/parts/components/comments.d.ts +7 -0
  77. package/dist/parts/components/comments.js +8 -0
  78. package/dist/{connection-status-DjGBw6xX.d.ts → parts/components/connection-status.d.ts} +6 -7
  79. package/dist/{connection-status-CzuWBENf.js → parts/components/connection-status.js} +1 -1
  80. package/dist/parts/components/copy-button.d.ts +118 -0
  81. package/dist/parts/components/copy-button.js +2 -0
  82. package/dist/parts/components/device-frame.d.ts +130 -0
  83. package/dist/parts/components/device-frame.js +471 -0
  84. package/dist/parts/components/file-tree.d.ts +2 -0
  85. package/dist/parts/components/file-tree.js +2 -0
  86. package/dist/parts/components/filter-search.d.ts +47 -0
  87. package/dist/parts/components/filter-search.js +58 -0
  88. package/dist/parts/components/markdown-editor.d.ts +2 -0
  89. package/dist/parts/components/markdown-editor.js +2 -0
  90. package/dist/parts/components/markdown-renderer.d.ts +52 -0
  91. package/dist/parts/components/markdown-renderer.js +23077 -0
  92. package/dist/{markdown-Dse5ldJe.d.ts → parts/components/markdown.d.ts} +7 -7
  93. package/dist/parts/components/markdown.js +47 -0
  94. package/dist/{marker-ea-tvx-J.d.ts → parts/components/marker.d.ts} +5 -6
  95. package/dist/{marker-Di2ZG_k1.js → parts/components/marker.js} +2 -2
  96. package/dist/{message-parts-BBFUkluC.d.ts → parts/components/message-parts.d.ts} +2 -3
  97. package/dist/{message-parts-DQnfioAH.js → parts/components/message-parts.js} +6 -6
  98. package/dist/{message-CW_paC1k.d.ts → parts/components/message.d.ts} +8 -9
  99. package/dist/{message-DiyBthIq.js → parts/components/message.js} +2 -2
  100. package/dist/parts/components/patch-parsers.d.ts +2 -0
  101. package/dist/parts/components/patch-parsers.js +2 -0
  102. package/dist/{prompt-input-Cy_Ue6B5.d.ts → parts/components/prompt-input.d.ts} +54 -11
  103. package/dist/{prompt-input-BbnCb80O.js → parts/components/prompt-input.js} +66 -111
  104. package/dist/parts/components/relative-time.d.ts +73 -0
  105. package/dist/parts/components/relative-time.js +2 -0
  106. package/dist/parts/components/status.d.ts +60 -0
  107. package/dist/parts/components/status.js +48 -0
  108. package/dist/{sync-status-refELOZn.d.ts → parts/components/sync-status.d.ts} +5 -6
  109. package/dist/{sync-status-BpxYdZIJ.js → parts/components/sync-status.js} +1 -1
  110. package/dist/{tool-list-E7CA52rz.d.ts → parts/components/tool-list.d.ts} +3 -4
  111. package/dist/{tool-list-BdSr5CT4.js → parts/components/tool-list.js} +7 -38
  112. package/dist/{trace-run-COeXn46Z.d.ts → parts/components/trace-run.d.ts} +3 -4
  113. package/dist/{trace-run-BIQ17CED.js → parts/components/trace-run.js} +15 -23
  114. package/dist/{trace-V7rM3Pyd.d.ts → parts/components/trace.d.ts} +10 -11
  115. package/dist/{trace-llBCDiSW.js → parts/components/trace.js} +20 -13
  116. package/dist/parts/composables/attachments.d.ts +32 -0
  117. package/dist/parts/composables/attachments.js +2 -0
  118. package/dist/parts/composables/highlighted-code.d.ts +9 -0
  119. package/dist/{highlighted-code-Ck4zexJX.js → parts/composables/highlighted-code.js} +5 -2
  120. package/dist/parts/headless/choices-input.d.ts +2 -0
  121. package/dist/parts/headless/choices-input.js +162 -0
  122. package/dist/parts/headless/comment-visibility.d.ts +2 -0
  123. package/dist/parts/headless/comment-visibility.js +128 -0
  124. package/dist/parts/headless/comments.d.ts +2 -0
  125. package/dist/parts/headless/comments.js +2 -0
  126. package/dist/parts/headless/message-scroller.d.ts +2 -0
  127. package/dist/{message-scroller-CX6NJTdm.js → parts/headless/message-scroller.js} +2 -2
  128. package/dist/parts/playground/highlight.d.ts +5 -0
  129. package/dist/parts/playground/highlight.js +23 -0
  130. package/dist/parts/playground/paths.d.ts +4 -0
  131. package/dist/parts/playground/paths.js +7 -0
  132. package/dist/parts/playground/playground-render.d.ts +126 -0
  133. package/dist/parts/playground/playground-render.js +356 -0
  134. package/dist/parts/playground/share.d.ts +2 -0
  135. package/dist/parts/playground/share.js +92 -0
  136. package/dist/parts/playground/zip.d.ts +6 -0
  137. package/dist/parts/playground/zip.js +76 -0
  138. package/dist/parts/workspace/browser-support-notice.d.ts +76 -0
  139. package/dist/parts/workspace/browser-support-notice.js +105 -0
  140. package/dist/parts/workspace/codemirror.d.ts +16 -0
  141. package/dist/parts/workspace/codemirror.js +243 -0
  142. package/dist/parts/workspace/connect-panel.d.ts +129 -0
  143. package/dist/parts/workspace/connect-panel.js +285 -0
  144. package/dist/parts/workspace/connect-store.d.ts +26 -0
  145. package/dist/parts/workspace/connect-store.js +59 -0
  146. package/dist/parts/workspace/icons.d.ts +34 -0
  147. package/dist/parts/workspace/icons.js +46 -0
  148. package/dist/parts/workspace/playground-container.d.ts +192 -0
  149. package/dist/parts/workspace/playground-container.js +603 -0
  150. package/dist/parts/workspace/workspace-boot-status.d.ts +75 -0
  151. package/dist/parts/workspace/workspace-boot-status.js +207 -0
  152. package/dist/parts/workspace/workspace-editor.d.ts +43 -0
  153. package/dist/parts/workspace/workspace-editor.js +54 -0
  154. package/dist/parts/workspace/workspace-file-tree.d.ts +53 -0
  155. package/dist/parts/workspace/workspace-file-tree.js +68 -0
  156. package/dist/parts/workspace/workspace-preview.d.ts +72 -0
  157. package/dist/parts/workspace/workspace-preview.js +307 -0
  158. package/dist/parts/workspace/workspace-shell.d.ts +88 -0
  159. package/dist/parts/workspace/workspace-shell.js +291 -0
  160. package/dist/parts/workspace/workspace-terminal.d.ts +39 -0
  161. package/dist/parts/workspace/workspace-terminal.js +130 -0
  162. package/dist/payload-text-sjkYAwvw.js +32 -0
  163. package/dist/{pierre-code-view-T7V67hwT.js → pierre-code-view-xgBL6DO7.js} +209 -86
  164. package/dist/{pierre-dark-DDWDl8g6.js → pierre-dark-CzUmjETS.js} +3 -1
  165. package/dist/{pierre-light-CWhW4NrH.js → pierre-light-Dn6E0sWv.js} +3 -1
  166. package/dist/playground.d.ts +4 -0
  167. package/dist/playground.js +4 -0
  168. package/dist/relative-time-BVmjOsYG.js +309 -0
  169. package/dist/rolldown-runtime-C9mWXvCC.js +29 -0
  170. package/dist/runtime/nuxt-plugin.js +23 -4
  171. package/dist/sankey-CAYwt82B-D4uDQoMR.js +2887 -0
  172. package/dist/share-DM4eNy4q.d.ts +37 -0
  173. package/dist/{slot-part-C7Ocxn3b.js → slot-part-Doic71uh.js} +7 -1
  174. package/dist/styles.css +2465 -594
  175. package/dist/temml-BilSAAws.js +12362 -0
  176. package/dist/theme-focus-ring.css +42 -0
  177. package/dist/theme.css +376 -0
  178. package/dist/theme.d.ts +355 -0
  179. package/dist/theme.js +265 -0
  180. package/dist/{types-CqDwuJAm.d.ts → types-Dyr6CfBW.d.ts} +1 -1
  181. package/dist/vue-BDmSCtay.js +30779 -0
  182. package/dist/vue-DGstVdGn.js +2492 -0
  183. package/dist/workspace.d.ts +15 -0
  184. package/dist/workspace.js +12 -0
  185. package/package.json +136 -150
  186. package/dist/andromeeda-BASpqCeJ.js +0 -4
  187. package/dist/attachment.d.ts +0 -2
  188. package/dist/attachment.js +0 -2
  189. package/dist/aurora-x-DugsLcii.js +0 -4
  190. package/dist/avatar-stack.js +0 -2
  191. package/dist/ayu-dark-BT3qdi3o.js +0 -4
  192. package/dist/ayu-light-BVZyHoh9.js +0 -4
  193. package/dist/ayu-mirage-XFwUVZQZ.js +0 -4
  194. package/dist/bubble.d.ts +0 -2
  195. package/dist/bubble.js +0 -2
  196. package/dist/catppuccin-frappe-D20KODDN.js +0 -4
  197. package/dist/catppuccin-latte-eGLVHIUJ.js +0 -4
  198. package/dist/catppuccin-macchiato-bQGch4PY.js +0 -4
  199. package/dist/catppuccin-mocha-Bes8-0Mr.js +0 -4
  200. package/dist/chat-message.d.ts +0 -2
  201. package/dist/chat-message.js +0 -2
  202. package/dist/chat-session.d.ts +0 -2
  203. package/dist/chat-session.js +0 -2
  204. package/dist/chat.d.ts +0 -2
  205. package/dist/chat.js +0 -2
  206. package/dist/code-block.d.ts +0 -2
  207. package/dist/code-block.js +0 -3
  208. package/dist/code-view.d.ts +0 -2
  209. package/dist/code-view.js +0 -2
  210. package/dist/comment-layer-CBlxJ8eK.js +0 -1113
  211. package/dist/comments-Cq5eewsu.d.ts +0 -537
  212. package/dist/comments.d.ts +0 -2
  213. package/dist/comments.js +0 -2
  214. package/dist/config-Bux_AJzm.d.ts +0 -29
  215. package/dist/config-bHqE4JOs.js +0 -38
  216. package/dist/connection-status.d.ts +0 -2
  217. package/dist/connection-status.js +0 -2
  218. package/dist/dark-plus-BGuiqa1B.js +0 -4
  219. package/dist/dracula-0CVA2XY5.js +0 -4
  220. package/dist/dracula-soft-Dk9bpbVU.js +0 -4
  221. package/dist/error-diagnostics-B4hMpJRL.js +0 -13
  222. package/dist/everforest-dark-CRjTbhh5.js +0 -4
  223. package/dist/everforest-light-CEeYFLn8.js +0 -4
  224. package/dist/file-diff.d.ts +0 -2
  225. package/dist/file-diff.js +0 -2
  226. package/dist/file-tree.d.ts +0 -2
  227. package/dist/file-tree.js +0 -2
  228. package/dist/file-view.d.ts +0 -2
  229. package/dist/file-view.js +0 -2
  230. package/dist/github-dark-BXgKmOw_.js +0 -4
  231. package/dist/github-dark-default-DzJQXksd.js +0 -4
  232. package/dist/github-dark-dimmed-B1pEmGtS.js +0 -4
  233. package/dist/github-dark-high-contrast-BkHIa6jc.js +0 -4
  234. package/dist/github-light-BKRlUbaB.js +0 -4
  235. package/dist/github-light-default-BU3eYkzs.js +0 -4
  236. package/dist/github-light-high-contrast-B3MumDcI.js +0 -4
  237. package/dist/gruvbox-dark-hard-B0ecF443.js +0 -4
  238. package/dist/gruvbox-dark-medium-BQnpC39k.js +0 -4
  239. package/dist/gruvbox-dark-soft-DFZUgESr.js +0 -4
  240. package/dist/gruvbox-light-hard-CuB_LOJr.js +0 -4
  241. package/dist/gruvbox-light-medium-idDHgxjs.js +0 -4
  242. package/dist/gruvbox-light-soft-CfWH49MY.js +0 -4
  243. package/dist/horizon-bright-Ba6M8QSV.js +0 -4
  244. package/dist/horizon-h92C5OlZ.js +0 -4
  245. package/dist/houston-EQnPegWq.js +0 -4
  246. package/dist/kanagawa-dragon-DgDvwi3B.js +0 -4
  247. package/dist/kanagawa-lotus-BgoQro20.js +0 -4
  248. package/dist/kanagawa-wave-DgXEowHs.js +0 -4
  249. package/dist/laserwave-IxBH_3yW.js +0 -4
  250. package/dist/light-plus-S8JBx6is.js +0 -4
  251. package/dist/markdown-BoLBN0qH.js +0 -197
  252. package/dist/markdown.d.ts +0 -2
  253. package/dist/markdown.js +0 -2
  254. package/dist/marker.d.ts +0 -2
  255. package/dist/marker.js +0 -2
  256. package/dist/material-theme-D1f3HBq-.js +0 -4
  257. package/dist/material-theme-darker-ExzYhT0j.js +0 -4
  258. package/dist/material-theme-lighter-D6gH9nnA.js +0 -4
  259. package/dist/material-theme-ocean-D1w5BPAa.js +0 -4
  260. package/dist/material-theme-palenight-CkqWmVpF.js +0 -4
  261. package/dist/message-parts.d.ts +0 -2
  262. package/dist/message-parts.js +0 -2
  263. package/dist/message.d.ts +0 -2
  264. package/dist/message.js +0 -2
  265. package/dist/min-dark-npsJH98j.js +0 -4
  266. package/dist/min-light-DUk1XsVt.js +0 -4
  267. package/dist/monokai-CfFRWUNl.js +0 -4
  268. package/dist/multi-file-diff.d.ts +0 -2
  269. package/dist/multi-file-diff.js +0 -2
  270. package/dist/night-owl-BS7V-av_.js +0 -4
  271. package/dist/night-owl-light-CZtRawYE.js +0 -4
  272. package/dist/nord-BFh54Nqz.js +0 -4
  273. package/dist/one-dark-pro-zDovGosB.js +0 -4
  274. package/dist/one-light-gmHK3iK6.js +0 -4
  275. package/dist/patch-diff.d.ts +0 -2
  276. package/dist/patch-diff.js +0 -2
  277. package/dist/plastic-DtdaCjub.js +0 -4
  278. package/dist/poimandres-Hdda6aHK.js +0 -4
  279. package/dist/primitive-rail.d.ts +0 -222
  280. package/dist/primitive-rail.js +0 -348
  281. package/dist/prompt-input.d.ts +0 -2
  282. package/dist/prompt-input.js +0 -2
  283. package/dist/red-VqZFRByZ.js +0 -4
  284. package/dist/rose-pine-DiTkEueR.js +0 -4
  285. package/dist/rose-pine-dawn-tfo5y2X0.js +0 -4
  286. package/dist/rose-pine-moon-C0gON9XN.js +0 -4
  287. package/dist/runtime-type-DlCscMfw.js +0 -59
  288. package/dist/slack-dark-v8P_eXr6.js +0 -4
  289. package/dist/slack-ochin-D8SyEdKz.js +0 -4
  290. package/dist/snazzy-light-BtkQkvXb.js +0 -4
  291. package/dist/solarized-dark-B8nAdMfM.js +0 -4
  292. package/dist/solarized-light-B-3F1INj.js +0 -4
  293. package/dist/sync-status.d.ts +0 -2
  294. package/dist/sync-status.js +0 -2
  295. package/dist/synthwave-84-DcsXCF_c.js +0 -4
  296. package/dist/tokyo-night-Bvpqduda.js +0 -4
  297. package/dist/tool-list.d.ts +0 -2
  298. package/dist/tool-list.js +0 -2
  299. package/dist/trace-run.d.ts +0 -2
  300. package/dist/trace-run.js +0 -2
  301. package/dist/trace.d.ts +0 -2
  302. package/dist/trace.js +0 -2
  303. package/dist/unresolved-file.d.ts +0 -2
  304. package/dist/unresolved-file.js +0 -2
  305. package/dist/vesper-CfxmMOy3.js +0 -4
  306. package/dist/vitesse-black-D9-_1mjV.js +0 -4
  307. package/dist/vitesse-dark-DlSMLlr9.js +0 -4
  308. package/dist/vitesse-light-KRWWWztf.js +0 -4
package/dist/index.js CHANGED
@@ -1,27 +1,679 @@
1
- import { a as MessageScrollerViewport, i as MessageScrollerItem, n as MessageScrollerButton, o as calculatePrependScrollTop, r as MessageScrollerContent, s as useMessageScroller, t as MessageScroller } from "./message-scroller-CX6NJTdm.js";
2
- import { i as useViteHubUI, n as createViteHubUI, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-bHqE4JOs.js";
3
- import { i as BubbleReactions, n as BubbleContent, r as BubbleGroup, t as Bubble } from "./bubble-BPyFQlW7.js";
4
- import { a as MessageGroup, i as MessageFooter, n as MessageAvatar, o as MessageHeader, r as MessageContent, t as Message } from "./message-DiyBthIq.js";
5
- import { t as Markdown } from "./markdown-BoLBN0qH.js";
6
- import { t as MessageParts } from "./message-parts-DQnfioAH.js";
7
- import { t as ChatMessage } from "./chat-message-BNK9G7xF.js";
8
- import { t as Chat } from "./chat-BoFHlu9V.js";
9
- import { i as useAgentAttachments, n as fileToDataUrl, r as fileToUIPart, t as PromptInput } from "./prompt-input-BbnCb80O.js";
10
- import { a as AttachmentDescription, c as AttachmentTitle, i as AttachmentContent, l as AttachmentTrigger, n as AttachmentAction, o as AttachmentGroup, r as AttachmentActions, s as AttachmentMedia, t as Attachment } from "./attachment-B3dXC7jM.js";
11
- import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "./code-view-J4OsgEdh.js";
1
+ import { r as useUIComponent } from "./nuxt-ui-DSQFzq3s.js";
2
+ import { a as useViteHubUIIcons, i as useViteHubUI, n as createViteHubUI, r as resolveViteHubUIDefaults, t as ViteHubUIInjectionKey } from "./config-Dk67emQt.js";
3
+ import { Markdown } from "./parts/components/markdown.js";
4
+ import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup } from "./parts/components/agent-session.js";
5
+ import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger } from "./parts/components/attachment.js";
6
+ import { AvatarStack } from "./parts/components/avatar-stack.js";
7
+ import { Bubble, BubbleContent, BubbleGroup, BubbleReactions } from "./parts/components/bubble.js";
8
+ import { Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./parts/components/message.js";
9
+ import { MessageParts } from "./parts/components/message-parts.js";
10
+ import { ChatMessage } from "./parts/components/chat-message.js";
11
+ import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller } from "./parts/headless/message-scroller.js";
12
+ import { Chat, chatActivity } from "./parts/components/chat.js";
13
+ import { ChatSession } from "./parts/components/chat-session.js";
14
+ import { n as useCopy, t as CopyButton } from "./copy-button-CRN3kmSD.js";
15
+ import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle } from "./parts/components/code-block.js";
16
+ import { a as PatchDiff, i as MultiFileDiff, n as FileDiff, o as UnresolvedFile, r as FileView, t as CodeView } from "./code-view-D0bqhogi.js";
17
+ import { t as CommentComposer } from "./comment-composer-jYv2ULNP.js";
18
+ import { n as fileToUIPart, r as useAgentAttachments, t as fileToDataUrl } from "./attachments-BzTwqRTU.js";
19
+ import { PromptInput } from "./parts/components/prompt-input.js";
20
+ import { commentLeaveMs, createCommentVisibility } from "./parts/headless/comment-visibility.js";
21
+ import { a as useCommentsContext, i as useComments, n as draftPositionKey, o as messagesSinceResolved, r as provideComments, s as repliedSinceResolved, t as defaultCommentCan } from "./comments-CkWc2Khc.js";
22
+ import { n as provideRelativeNow, t as RelativeTime } from "./relative-time-BVmjOsYG.js";
23
+ import { CommentFilters, CommentList, CommentToolbar } from "./parts/components/comment-list.js";
24
+ import { CommentPin } from "./parts/components/comment-pin.js";
25
+ import { Marker, MarkerContent, MarkerIcon } from "./parts/components/marker.js";
26
+ import { CommentReply, CommentThread } from "./parts/components/comment-thread.js";
27
+ import { CommentLayer } from "./parts/components/comment-layer.js";
28
+ import { CommentPanel } from "./parts/components/comment-panel.js";
29
+ import "./parts/components/comments.js";
30
+ import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel } from "./parts/components/connection-status.js";
31
+ import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame } from "./parts/components/device-frame.js";
32
+ import { n as useFileTree, r as useFileTreeSelection, t as FileTree } from "./file-tree-C4OYgbV-.js";
33
+ import { ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus } from "./parts/headless/choices-input.js";
34
+ import { FilterSearch } from "./parts/components/filter-search.js";
12
35
  import { a as parsePatchFiles, n as parseDiffFromFile, t as getSingularPatch } from "./getSingularPatch-Dsb8EgxR.js";
13
- import { n as useFileTree, r as useFileTreeSelection, t as FileTree } from "./file-tree-C1pv4_AI.js";
14
- import { t as ChatSession } from "./chat-session-DYEHB1HC.js";
15
- import { t as ToolList } from "./tool-list-BdSr5CT4.js";
16
- import { a as CodeBlockFooter, c as CodeBlockTitle, i as CodeBlockCopyButton, n as CodeBlockActions, o as CodeBlockHeader, r as CodeBlockContent, s as CodeBlockLine, t as CodeBlock } from "./code-block-Br-02hn-.js";
17
- import { a as TraceDescription, c as TraceTitle, i as TraceCollapsibleTrigger, n as TraceCollapsible, o as TraceIcon, r as TraceCollapsibleContent, s as TraceLine, t as Trace } from "./trace-llBCDiSW.js";
18
- import { t as TraceRun } from "./trace-run-BIQ17CED.js";
19
- import { t as AvatarStack } from "./avatar-stack-DM6HRnc0.js";
20
- import { t as useHighlightedCode } from "./highlighted-code-Ck4zexJX.js";
21
- import { i as useCommentsContext, n as provideComments, r as useComments, t as draftPositionKey } from "./comments-C08J3z4e.js";
22
- import { a as CommentFilters, c as CommentComposer, i as CommentPin, n as CommentReply, o as CommentList, r as CommentThread, s as CommentToolbar, t as CommentLayer } from "./comment-layer-CBlxJ8eK.js";
23
- import { n as MarkerContent, r as MarkerIcon, t as Marker } from "./marker-Di2ZG_k1.js";
24
- import { n as ConnectionStatusIndicator, r as ConnectionStatusLabel, t as ConnectionStatus } from "./connection-status-CzuWBENf.js";
25
- import { n as SyncStatusIndicator, r as SyncStatusLabel, t as SyncStatus } from "./sync-status-BpxYdZIJ.js";
36
+ import "./parts/components/patch-parsers.js";
37
+ import { Status } from "./parts/components/status.js";
38
+ import { SyncStatus, SyncStatusIndicator, SyncStatusLabel } from "./parts/components/sync-status.js";
39
+ import { ToolList } from "./parts/components/tool-list.js";
40
+ import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle } from "./parts/components/trace.js";
41
+ import { TraceRun } from "./parts/components/trace-run.js";
42
+ import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
43
+ import { PlaygroundRender } from "./parts/playground/playground-render.js";
26
44
  import "./headless.js";
27
- export { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, FileDiff, FileTree, FileView, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PromptInput, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, createViteHubUI, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, parseDiffFromFile, parsePatchFiles, provideComments, resolveViteHubUIDefaults, useAgentAttachments, useComments, useCommentsContext, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI };
45
+ import { Tabs, TabsList, TabsTab } from "@ui-sdk/vue/tabs";
46
+ import { cloneVNode, computed, defineAsyncComponent, defineComponent, h, isVNode, nextTick, onMounted, ref } from "vue";
47
+ import { Button } from "@ui-sdk/vue/button";
48
+ import { Dialog, DialogBackdrop, DialogClose, DialogContent, DialogDescription, DialogTitle, DialogTrigger } from "@ui-sdk/vue/dialog";
49
+ import { Input, InputGroup } from "@ui-sdk/vue/input";
50
+ import { Menu, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuItemIcon, MenuSeparator, MenuTrigger } from "@ui-sdk/vue/menu";
51
+ //#region src/internal/icon-shapes.ts
52
+ /** The stroke of every Lucide icon. An icon drawn from shapes without it sets it on its `<svg>`. */
53
+ const lucideStroke = {
54
+ fill: "none",
55
+ stroke: "currentColor",
56
+ "stroke-linecap": "round",
57
+ "stroke-linejoin": "round",
58
+ "stroke-width": "2"
59
+ };
60
+ //#endregion
61
+ //#region src/ui-sdk/icons.ts
62
+ const uiSdkIcons = {
63
+ "i-lucide-arrow-down": [["path", { "d": "M12 5v14m7-7l-7 7l-7-7" }]],
64
+ "i-lucide-arrow-left": [["path", { "d": "m12 19l-7-7l7-7m7 7H5" }]],
65
+ "i-lucide-arrow-right": [["path", { "d": "M5 12h14m-7-7l7 7l-7 7" }]],
66
+ "i-lucide-arrow-up": [["path", { "d": "m5 12l7-7l7 7m-7 7V5" }]],
67
+ "i-lucide-arrow-up-right": [["path", { "d": "M7 7h10v10M7 17L17 7" }]],
68
+ "i-lucide-bold": [["path", { "d": "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" }]],
69
+ "i-lucide-box": [["path", { "d": "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" }], ["path", { "d": "m3.3 7l8.7 5l8.7-5M12 22V12" }]],
70
+ "i-lucide-brain": [
71
+ ["path", { "d": "M12 18V5m3 8a4.17 4.17 0 0 1-3-4a4.17 4.17 0 0 1-3 4m8.598-6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" }],
72
+ ["path", { "d": "M17.997 5.125a4 4 0 0 1 2.526 5.77" }],
73
+ ["path", { "d": "M18 18a4 4 0 0 0 2-7.464" }],
74
+ ["path", { "d": "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" }],
75
+ ["path", { "d": "M6 18a4 4 0 0 1-2-7.464" }],
76
+ ["path", { "d": "M6.003 5.125a4 4 0 0 0-2.526 5.77" }]
77
+ ],
78
+ "i-lucide-check": [["path", { "d": "M20 6L9 17l-5-5" }]],
79
+ "i-lucide-chevron-down": [["path", { "d": "m6 9l6 6l6-6" }]],
80
+ "i-lucide-chevron-left": [["path", { "d": "m15 18l-6-6l6-6" }]],
81
+ "i-lucide-chevron-right": [["path", { "d": "m9 18l6-6l-6-6" }]],
82
+ "i-lucide-chevron-up": [["path", { "d": "m18 15l-6-6l-6 6" }]],
83
+ "i-lucide-chevrons-left": [["path", { "d": "m11 17l-5-5l5-5m7 10l-5-5l5-5" }]],
84
+ "i-lucide-chevrons-right": [["path", { "d": "m6 17l5-5l-5-5m7 10l5-5l-5-5" }]],
85
+ "i-lucide-circle": [["circle", {
86
+ "cx": "12",
87
+ "cy": "12",
88
+ "r": "10"
89
+ }]],
90
+ "i-lucide-circle-alert": [["circle", {
91
+ "cx": "12",
92
+ "cy": "12",
93
+ "r": "10"
94
+ }], ["path", { "d": "M12 8v4m0 4h.01" }]],
95
+ "i-lucide-circle-check": [["circle", {
96
+ "cx": "12",
97
+ "cy": "12",
98
+ "r": "10"
99
+ }], ["path", { "d": "m16 9l-5.5 5.5L8 12" }]],
100
+ "i-lucide-circle-dashed": [["path", { "d": "M10.1 2.182a10 10 0 0 1 3.8 0m0 19.636a10 10 0 0 1-3.8 0m7.509-18.097a10 10 0 0 1 2.69 2.7M2.182 13.9a10 10 0 0 1 0-3.8m18.097 7.509a10 10 0 0 1-2.7 2.69M21.818 10.1a10 10 0 0 1 0 3.8M3.721 6.391a10 10 0 0 1 2.7-2.69m-.03 16.578a10 10 0 0 1-2.69-2.7" }]],
101
+ "i-lucide-circle-minus": [["circle", {
102
+ "cx": "12",
103
+ "cy": "12",
104
+ "r": "10"
105
+ }], ["path", { "d": "M8 12h8" }]],
106
+ "i-lucide-circle-x": [["circle", {
107
+ "cx": "12",
108
+ "cy": "12",
109
+ "r": "10"
110
+ }], ["path", { "d": "m15 9l-6 6m0-6l6 6" }]],
111
+ "i-lucide-code": [["path", { "d": "m16 18l6-6l-6-6M8 6l-6 6l6 6" }]],
112
+ "i-lucide-copy": [["rect", {
113
+ "width": "14",
114
+ "height": "14",
115
+ "x": "8",
116
+ "y": "8",
117
+ "rx": "2",
118
+ "ry": "2"
119
+ }], ["path", { "d": "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]],
120
+ "i-lucide-database": [
121
+ ["ellipse", {
122
+ "cx": "12",
123
+ "cy": "5",
124
+ "rx": "9",
125
+ "ry": "3"
126
+ }],
127
+ ["path", { "d": "M3 5v14a9 3 0 0 0 18 0V5" }],
128
+ ["path", { "d": "M3 12a9 3 0 0 0 18 0" }]
129
+ ],
130
+ "i-lucide-download": [["path", { "d": "M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { "d": "m7 10l5 5l5-5" }]],
131
+ "i-lucide-ellipsis": [
132
+ ["circle", {
133
+ "cx": "12",
134
+ "cy": "12",
135
+ "r": "1"
136
+ }],
137
+ ["circle", {
138
+ "cx": "19",
139
+ "cy": "12",
140
+ "r": "1"
141
+ }],
142
+ ["circle", {
143
+ "cx": "5",
144
+ "cy": "12",
145
+ "r": "1"
146
+ }]
147
+ ],
148
+ "i-lucide-external-link": [["path", { "d": "M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]],
149
+ "i-lucide-eye": [["path", { "d": "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }], ["circle", {
150
+ "cx": "12",
151
+ "cy": "12",
152
+ "r": "3"
153
+ }]],
154
+ "i-lucide-eye-off": [["path", { "d": "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242" }], ["path", { "d": "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20" }]],
155
+ "i-lucide-file": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5" }]],
156
+ "i-lucide-file-pen-line": [["path", { "d": "M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004zm.123-5.776A1 1 0 0 1 14 7V2" }], ["path", { "d": "M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516M8 18h1" }]],
157
+ "i-lucide-file-text": [["path", { "d": "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { "d": "M14 2v5a1 1 0 0 0 1 1h5M10 9H8m8 4H8m8 4H8" }]],
158
+ "i-lucide-files": [["path", { "d": "M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" }], ["path", { "d": "M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706zM5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" }]],
159
+ "i-lucide-folder": [["path", { "d": "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]],
160
+ "i-lucide-folder-open": [["path", { "d": "m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" }]],
161
+ "i-lucide-globe": [["circle", {
162
+ "cx": "12",
163
+ "cy": "12",
164
+ "r": "10"
165
+ }], ["path", { "d": "M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20" }]],
166
+ "i-lucide-grip-vertical": [
167
+ ["circle", {
168
+ "cx": "9",
169
+ "cy": "12",
170
+ "r": "1"
171
+ }],
172
+ ["circle", {
173
+ "cx": "9",
174
+ "cy": "5",
175
+ "r": "1"
176
+ }],
177
+ ["circle", {
178
+ "cx": "9",
179
+ "cy": "19",
180
+ "r": "1"
181
+ }],
182
+ ["circle", {
183
+ "cx": "15",
184
+ "cy": "12",
185
+ "r": "1"
186
+ }],
187
+ ["circle", {
188
+ "cx": "15",
189
+ "cy": "5",
190
+ "r": "1"
191
+ }],
192
+ ["circle", {
193
+ "cx": "15",
194
+ "cy": "19",
195
+ "r": "1"
196
+ }]
197
+ ],
198
+ "i-lucide-hash": [["path", { "d": "M4 9h16M4 15h16M10 3L8 21m8-18l-2 18" }]],
199
+ "i-lucide-heading-1": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5 6l3-2v8" }]],
200
+ "i-lucide-heading-2": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m9 12h-4c0-4 4-3 4-6c0-1.5-2-2.5-4-1" }]],
201
+ "i-lucide-heading-3": [["path", { "d": "M4 12h8m-8 6V6m8 12V6m5.5 4.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2m-2 3.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2" }]],
202
+ "i-lucide-image": [
203
+ ["rect", {
204
+ "width": "18",
205
+ "height": "18",
206
+ "x": "3",
207
+ "y": "3",
208
+ "rx": "2",
209
+ "ry": "2"
210
+ }],
211
+ ["circle", {
212
+ "cx": "9",
213
+ "cy": "9",
214
+ "r": "2"
215
+ }],
216
+ ["path", { "d": "m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
217
+ ],
218
+ "i-lucide-info": [["circle", {
219
+ "cx": "12",
220
+ "cy": "12",
221
+ "r": "10"
222
+ }], ["path", { "d": "M12 16v-4m0-4h.01" }]],
223
+ "i-lucide-italic": [["path", { "d": "M19 4h-9m4 16H5M15 4L9 20" }]],
224
+ "i-lucide-layout-template": [
225
+ ["rect", {
226
+ "width": "18",
227
+ "height": "7",
228
+ "x": "3",
229
+ "y": "3",
230
+ "rx": "1"
231
+ }],
232
+ ["rect", {
233
+ "width": "9",
234
+ "height": "7",
235
+ "x": "3",
236
+ "y": "14",
237
+ "rx": "1"
238
+ }],
239
+ ["rect", {
240
+ "width": "5",
241
+ "height": "7",
242
+ "x": "16",
243
+ "y": "14",
244
+ "rx": "1"
245
+ }]
246
+ ],
247
+ "i-lucide-lightbulb": [["path", { "d": "M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4" }]],
248
+ "i-lucide-link": [["path", { "d": "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { "d": "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]],
249
+ "i-lucide-list": [["path", { "d": "M3 5h.01M3 12h.01M3 19h.01M8 5h13M8 12h13M8 19h13" }]],
250
+ "i-lucide-list-checks": [["path", { "d": "M13 5h8m-8 7h8m-8 7h8M3 17l2 2l4-4M3 7l2 2l4-4" }]],
251
+ "i-lucide-list-ordered": [["path", { "d": "M11 5h10m-10 7h10m-10 7h10M4 4h1v5M4 9h2m.5 11H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" }]],
252
+ "i-lucide-loader-circle": [["path", { "d": "M21 12a9 9 0 1 1-6.219-8.56" }]],
253
+ "i-lucide-maximize-2": [["path", { "d": "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6" }]],
254
+ "i-lucide-menu": [["path", { "d": "M4 5h16M4 12h16M4 19h16" }]],
255
+ "i-lucide-message-circle": [["path", { "d": "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092a10 10 0 1 0-4.777-4.719" }]],
256
+ "i-lucide-minimize-2": [["path", { "d": "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6" }]],
257
+ "i-lucide-minus": [["path", { "d": "M5 12h14" }]],
258
+ "i-lucide-monitor": [["rect", {
259
+ "width": "20",
260
+ "height": "14",
261
+ "x": "2",
262
+ "y": "3",
263
+ "rx": "2"
264
+ }], ["path", { "d": "M8 21h8m-4-4v4" }]],
265
+ "i-lucide-moon": [["path", { "d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]],
266
+ "i-lucide-panel-left-close": [["rect", {
267
+ "width": "18",
268
+ "height": "18",
269
+ "x": "3",
270
+ "y": "3",
271
+ "rx": "2"
272
+ }], ["path", { "d": "M9 3v18m7-6l-3-3l3-3" }]],
273
+ "i-lucide-panel-left-open": [["rect", {
274
+ "width": "18",
275
+ "height": "18",
276
+ "x": "3",
277
+ "y": "3",
278
+ "rx": "2"
279
+ }], ["path", { "d": "M9 3v18m5-12l3 3l-3 3" }]],
280
+ "i-lucide-panel-right": [["rect", {
281
+ "width": "18",
282
+ "height": "18",
283
+ "x": "3",
284
+ "y": "3",
285
+ "rx": "2"
286
+ }], ["path", { "d": "M15 3v18" }]],
287
+ "i-lucide-pencil": [["path", { "d": "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497zM15 5l4 4" }]],
288
+ "i-lucide-play": [["path", { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]],
289
+ "i-lucide-plug": [["path", { "d": "M12 22v-5m3-9V2m2 6a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1zM9 8V2" }]],
290
+ "i-lucide-plus": [["path", { "d": "M5 12h14m-7-7v14" }]],
291
+ "i-lucide-quote": [["path", { "d": "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2zM5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2a1 1 0 0 1 1 1v1a2 2 0 0 1-2 2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1a6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }]],
292
+ "i-lucide-refresh-cw": [
293
+ ["path", { "d": "M3 12a9 9 0 0 1 9-9a9.75 9.75 0 0 1 6.74 2.74L21 8" }],
294
+ ["path", { "d": "M21 3v5h-5m5 4a9 9 0 0 1-9 9a9.75 9.75 0 0 1-6.74-2.74L3 16" }],
295
+ ["path", { "d": "M8 16H3v5" }]
296
+ ],
297
+ "i-lucide-rotate-ccw": [["path", { "d": "M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]],
298
+ "i-lucide-search": [["path", { "d": "m21 21l-4.34-4.34" }], ["circle", {
299
+ "cx": "11",
300
+ "cy": "11",
301
+ "r": "8"
302
+ }]],
303
+ "i-lucide-sparkles": [["path", { "d": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594zM20 2v4m2-2h-4" }], ["circle", {
304
+ "cx": "4",
305
+ "cy": "20",
306
+ "r": "2"
307
+ }]],
308
+ "i-lucide-square": [["rect", {
309
+ "width": "18",
310
+ "height": "18",
311
+ "x": "3",
312
+ "y": "3",
313
+ "rx": "2"
314
+ }]],
315
+ "i-lucide-square-code": [["path", { "d": "m10 9l-3 3l3 3m4 0l3-3l-3-3" }], ["rect", {
316
+ "width": "18",
317
+ "height": "18",
318
+ "x": "3",
319
+ "y": "3",
320
+ "rx": "2"
321
+ }]],
322
+ "i-lucide-square-menu": [["rect", {
323
+ "width": "18",
324
+ "height": "18",
325
+ "x": "3",
326
+ "y": "3",
327
+ "rx": "2"
328
+ }], ["path", { "d": "M7 8h10M7 12h10M7 16h10" }]],
329
+ "i-lucide-square-pen": [["path", { "d": "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }], ["path", { "d": "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" }]],
330
+ "i-lucide-star": [["path", { "d": "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z" }]],
331
+ "i-lucide-strikethrough": [["path", { "d": "M16 4H9a3 3 0 0 0-2.83 4M14 12a4 4 0 0 1 0 8H6m-2-8h16" }]],
332
+ "i-lucide-sun": [["circle", {
333
+ "cx": "12",
334
+ "cy": "12",
335
+ "r": "4"
336
+ }], ["path", { "d": "M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" }]],
337
+ "i-lucide-terminal": [["path", { "d": "M12 19h8M4 17l6-6l-6-6" }]],
338
+ "i-lucide-trash-2": [["path", { "d": "M10 11v6m4-6v6m5-11v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]],
339
+ "i-lucide-triangle-alert": [["path", { "d": "m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01" }]],
340
+ "i-lucide-type": [["path", { "d": "M12 4v16M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2M9 20h6" }]],
341
+ "i-lucide-upload": [["path", { "d": "M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]],
342
+ "i-lucide-wrench": [["path", { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }]],
343
+ "i-lucide-x": [["path", { "d": "M18 6L6 18M6 6l12 12" }]]
344
+ };
345
+ //#endregion
346
+ //#region src/ui-sdk/components.ts
347
+ /**
348
+ * The parts render Nuxt UI components by name (see `internal/nuxt-ui.ts`). These take the same props that the parts
349
+ * pass, render ui-sdk parts, and carry the `data-slot` and `data-variant` names that the kit style family
350
+ * (`@vite-hub/kit/styles/default.css`) styles.
351
+ */
352
+ /** Draws the Lucide icons that the parts use, from shapes in the bundle. Another name draws an empty icon. */
353
+ const UIcon = defineComponent({
354
+ name: "UIcon",
355
+ inheritAttrs: false,
356
+ props: { name: {
357
+ default: "",
358
+ type: String
359
+ } },
360
+ setup(props, { attrs }) {
361
+ return () => h("svg", {
362
+ ...lucideStroke,
363
+ "aria-hidden": "true",
364
+ ...attrs,
365
+ height: "1em",
366
+ viewBox: "0 0 24 24",
367
+ width: "1em"
368
+ }, uiSdkIcons[props.name]?.map(([tag, shape]) => h(tag, shape)));
369
+ }
370
+ });
371
+ const text = (value) => typeof value === "string" ? value : void 0;
372
+ const Button$1 = Button;
373
+ function buttonVariant(color, variant) {
374
+ if (variant === "ghost" || variant === "link") return variant;
375
+ if (color === "error") return "destructive";
376
+ if (variant === "soft" || variant === "subtle") return "soft";
377
+ return variant === "solid" ? "solid" : void 0;
378
+ }
379
+ /**
380
+ * Nuxt UI's `UButton` as the parts use it. A part that names its button, such as `data-slot="copy-button"`, finds the
381
+ * name in `data-part`, because `data-slot="button"` is what the kit styles.
382
+ */
383
+ const UButton = defineComponent({
384
+ name: "UButton",
385
+ inheritAttrs: false,
386
+ props: {
387
+ color: {
388
+ default: "primary",
389
+ type: String
390
+ },
391
+ disabled: {
392
+ default: false,
393
+ type: Boolean
394
+ },
395
+ /** Nuxt UI opens `to` in the same tab unless `target` says otherwise. A plain link does the same. */
396
+ external: {
397
+ default: void 0,
398
+ type: Boolean
399
+ },
400
+ icon: { type: String },
401
+ label: { type: String },
402
+ loading: {
403
+ default: false,
404
+ type: Boolean
405
+ },
406
+ size: {
407
+ default: "md",
408
+ type: String
409
+ },
410
+ square: {
411
+ default: false,
412
+ type: Boolean
413
+ },
414
+ to: { type: String },
415
+ trailingIcon: { type: String },
416
+ type: {
417
+ default: "button",
418
+ type: String
419
+ },
420
+ ui: { type: Object },
421
+ variant: {
422
+ default: "solid",
423
+ type: String
424
+ }
425
+ },
426
+ setup(props, { attrs, slots }) {
427
+ const UIcon = useUIComponent("UIcon");
428
+ return () => {
429
+ const shared = {
430
+ ...attrs,
431
+ "aria-busy": props.loading ? "true" : text(attrs["aria-busy"]),
432
+ "data-part": text(attrs["data-slot"]),
433
+ "data-size": props.size,
434
+ "data-slot": "button",
435
+ "data-variant": buttonVariant(props.color, props.variant)
436
+ };
437
+ const leading = props.loading ? "i-lucide-loader-circle" : props.icon;
438
+ const content = () => [
439
+ slots.leading ? slots.leading({}) : leading ? h(UIcon, {
440
+ "data-slot": props.loading ? "spinner" : void 0,
441
+ name: leading
442
+ }) : null,
443
+ slots.default ? slots.default() : props.label ? h("span", props.label) : null,
444
+ props.trailingIcon ? h(UIcon, { name: props.trailingIcon }) : null
445
+ ];
446
+ if (props.to) return h("a", {
447
+ ...shared,
448
+ href: props.to
449
+ }, content());
450
+ return h(Button$1, {
451
+ ...shared,
452
+ disabled: props.disabled || props.loading,
453
+ type: props.type
454
+ }, content);
455
+ };
456
+ }
457
+ });
458
+ /**
459
+ * Nuxt UI's `UInput`: a frame with the `leading` and `trailing` slots around the input. `class` goes to the frame, and
460
+ * a part's `data-slot` goes to `data-part` of the input, as on `UButton`.
461
+ */
462
+ const UInput = defineComponent({
463
+ name: "UInput",
464
+ inheritAttrs: false,
465
+ props: {
466
+ autofocus: {
467
+ default: false,
468
+ type: Boolean
469
+ },
470
+ disabled: {
471
+ default: false,
472
+ type: Boolean
473
+ },
474
+ modelValue: { type: [String, Number] },
475
+ size: {
476
+ default: "md",
477
+ type: String
478
+ },
479
+ type: {
480
+ default: "text",
481
+ type: String
482
+ },
483
+ ui: { type: Object }
484
+ },
485
+ emits: { "update:modelValue": (_value) => true },
486
+ setup(props, { attrs, emit, slots }) {
487
+ const input = ref(null);
488
+ onMounted(() => {
489
+ if (props.autofocus) nextTick(() => (input.value?.$el)?.focus());
490
+ });
491
+ return () => {
492
+ const { class: frameClass, "data-slot": part, style, ...field } = attrs;
493
+ return h(InputGroup, {
494
+ class: frameClass,
495
+ "data-size": props.size,
496
+ style
497
+ }, () => [
498
+ slots.leading?.(),
499
+ h(Input, {
500
+ ...field,
501
+ "data-part": text(part),
502
+ disabled: props.disabled,
503
+ ref: input,
504
+ type: props.type,
505
+ value: props.modelValue === void 0 ? "" : String(props.modelValue),
506
+ "onUpdate:value": (value) => emit("update:modelValue", value)
507
+ }),
508
+ slots.trailing?.()
509
+ ]);
510
+ };
511
+ }
512
+ });
513
+ function asTrigger(children, props) {
514
+ const vnode = children?.find(isVNode);
515
+ if (!vnode) return null;
516
+ const { "data-slot": _slot, ...trigger } = props;
517
+ return cloneVNode(vnode, trigger, true);
518
+ }
519
+ /**
520
+ * Nuxt UI's `UModal`: the default slot opens it, and `content` replaces the title, the description, `body`, and
521
+ * `footer`. `open` with `update:open` controls it. `ui.overlay` and `ui.content` style the backdrop and the dialog.
522
+ */
523
+ const UModal = defineComponent({
524
+ name: "UModal",
525
+ inheritAttrs: false,
526
+ props: {
527
+ close: {
528
+ default: true,
529
+ type: Boolean
530
+ },
531
+ description: { type: String },
532
+ dismissible: {
533
+ default: true,
534
+ type: Boolean
535
+ },
536
+ open: {
537
+ default: void 0,
538
+ type: Boolean
539
+ },
540
+ title: { type: String },
541
+ transition: {
542
+ default: true,
543
+ type: Boolean
544
+ },
545
+ ui: {
546
+ default: () => ({}),
547
+ type: Object
548
+ }
549
+ },
550
+ emits: { "update:open": (_open) => true },
551
+ setup(props, { emit, slots }) {
552
+ const UIcon = useUIComponent("UIcon");
553
+ const icons = useViteHubUIIcons();
554
+ const inner = ref(false);
555
+ const open = computed(() => props.open ?? inner.value);
556
+ const setOpen = (value) => {
557
+ inner.value = value;
558
+ emit("update:open", value);
559
+ };
560
+ const close = () => setOpen(false);
561
+ return () => h(Dialog, {
562
+ dismissible: props.dismissible,
563
+ open: open.value,
564
+ onOpenChange: setOpen
565
+ }, () => [
566
+ slots.default ? h(DialogTrigger, null, { render: ({ props: trigger }) => asTrigger(slots.default?.(), trigger) }) : null,
567
+ h(DialogBackdrop, { class: props.ui.overlay }),
568
+ h(DialogContent, {
569
+ "aria-label": slots.content ? props.title : void 0,
570
+ class: props.ui.content
571
+ }, () => slots.content ? slots.content({ close }) : [
572
+ props.title ? h(DialogTitle, () => props.title) : null,
573
+ props.description ? h(DialogDescription, () => props.description) : null,
574
+ slots.body?.({ close }),
575
+ slots.footer ? h("div", { "data-slot": "dialog-footer" }, slots.footer({ close })) : null,
576
+ props.close ? h(DialogClose, { "aria-label": "Close" }, () => h(UIcon, { name: icons.value.close })) : null
577
+ ])
578
+ ]);
579
+ }
580
+ });
581
+ /** Nuxt UI's `UTabs` with `content: false`, as the parts use it: a tab list from `items`, with `v-model`. */
582
+ const UTabs = defineComponent({
583
+ name: "UTabs",
584
+ inheritAttrs: false,
585
+ props: {
586
+ content: {
587
+ default: true,
588
+ type: Boolean
589
+ },
590
+ items: {
591
+ default: () => [],
592
+ type: Array
593
+ },
594
+ modelValue: { type: [String, Number] }
595
+ },
596
+ emits: { "update:modelValue": (_value) => true },
597
+ setup(props, { attrs, emit }) {
598
+ const UIcon = useUIComponent("UIcon");
599
+ return () => {
600
+ const { "aria-label": label, ...root } = attrs;
601
+ return h(Tabs, {
602
+ ...root,
603
+ value: props.modelValue === void 0 ? void 0 : String(props.modelValue),
604
+ "onUpdate:value": (value) => {
605
+ const item = props.items.find((entry) => String(entry.value) === value);
606
+ if (item) emit("update:modelValue", item.value);
607
+ }
608
+ }, () => h(TabsList, { "aria-label": text(label) }, () => props.items.map((item) => h(TabsTab, {
609
+ disabled: item.disabled,
610
+ key: item.value,
611
+ value: String(item.value)
612
+ }, () => [
613
+ item.icon ? h(UIcon, { name: item.icon }) : null,
614
+ item.label,
615
+ item.badge === void 0 || item.badge === false ? null : h("span", { "data-slot": "tabs-tab-badge" }, item.badge === true ? "" : String(item.badge))
616
+ ]))));
617
+ };
618
+ }
619
+ });
620
+ /**
621
+ * The components that the parts render, on ui-sdk instead of Nuxt UI. Give them to `createViteHubUI({ components })`
622
+ * and load the kit style family. `UIcon` draws the icons that the parts use; to show other icons, such as your own in
623
+ * `createViteHubUI({ icons })`, pass your own `UIcon` next to these.
624
+ */
625
+ const uiSdkComponents = {
626
+ UButton,
627
+ UDropdownMenu: defineComponent({
628
+ name: "UDropdownMenu",
629
+ inheritAttrs: false,
630
+ props: {
631
+ content: {
632
+ default: () => ({}),
633
+ type: Object
634
+ },
635
+ items: {
636
+ default: () => [],
637
+ type: Array
638
+ },
639
+ ui: {
640
+ default: () => ({}),
641
+ type: Object
642
+ }
643
+ },
644
+ emits: { "update:open": (_open) => true },
645
+ setup(props, { emit, slots }) {
646
+ const UIcon = useUIComponent("UIcon");
647
+ const entry = (item, index) => {
648
+ if (item.type === "label") return h(MenuGroupLabel, { key: index }, () => item.label);
649
+ if (item.type === "separator") return h(MenuSeparator, { key: index });
650
+ return h(MenuItem, {
651
+ disabled: item.disabled,
652
+ key: index,
653
+ label: item.label,
654
+ onSelect: item.onSelect
655
+ }, () => [
656
+ item.icon ? h(MenuItemIcon, () => h(UIcon, { name: item.icon })) : null,
657
+ h("span", item.label),
658
+ item.description ? h("span", { "data-slot": "menu-item-description" }, item.description) : null
659
+ ]);
660
+ };
661
+ return () => {
662
+ const groups = props.items.length && Array.isArray(props.items[0]) ? props.items : [props.items];
663
+ return h(Menu, { onOpenChange: (open) => emit("update:open", open) }, () => [h(MenuTrigger, null, { render: ({ props: trigger }) => asTrigger(slots.default?.(), trigger) }), h(MenuContent, {
664
+ ...props.content,
665
+ class: props.ui.content
666
+ }, () => groups.flatMap((group, index) => [index ? h(MenuSeparator, { key: `separator-${index}` }) : null, h(MenuGroup, { key: `group-${index}` }, () => group.map(entry))]))]);
667
+ };
668
+ }
669
+ }),
670
+ UEditorDragHandle: defineAsyncComponent(() => import("./editor-C_wt4RRV.js").then((parts) => parts.UEditorDragHandle)),
671
+ UEditorSuggestionMenu: defineAsyncComponent(() => import("./editor-C_wt4RRV.js").then((parts) => parts.UEditorSuggestionMenu)),
672
+ UEditorToolbar: defineAsyncComponent(() => import("./editor-C_wt4RRV.js").then((parts) => parts.UEditorToolbar)),
673
+ UIcon,
674
+ UInput,
675
+ UModal,
676
+ UTabs
677
+ };
678
+ //#endregion
679
+ export { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionTimeline, AgentSessionWorkGroup, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, AvatarStack, Bubble, BubbleContent, BubbleGroup, BubbleReactions, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockTitle, CodeView, CommentComposer, CommentFilters, CommentLayer, CommentList, CommentPanel, CommentPin, CommentReply, CommentThread, CommentToolbar, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, CopyButton, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, FileDiff, FileTree, FileView, FilterSearch, Markdown, Marker, MarkerContent, MarkerIcon, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PlaygroundRender, PromptInput, RelativeTime, Status, SyncStatus, SyncStatusIndicator, SyncStatusLabel, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceRun, TraceTitle, UnresolvedFile, ViteHubUIInjectionKey, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, uiSdkComponents, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons };