@vite-hub/ui 0.1.0 → 0.4.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 (314) hide show
  1. package/README.md +247 -21
  2. package/dist/attachments-BzTwqRTU.js +90 -0
  3. package/dist/{avatar-stack-DXmCQhxd.d.ts → avatar-stack-DPRFuezh.d.ts} +1 -1
  4. package/dist/choices-input-ByXJvDn1.d.ts +94 -0
  5. package/dist/{code-view-J4OsgEdh.js → code-view-DsU-xzic.js} +20 -4
  6. package/dist/colors-BghReA9C-CjF9gnmy.js +28 -0
  7. package/dist/comment-attachments-C4yNbcx5.js +20 -0
  8. package/dist/comment-composer-fINL5bxo.d.ts +243 -0
  9. package/dist/comment-composer-jYv2ULNP.js +591 -0
  10. package/dist/comment-layer-C_sbPIR5.d.ts +176 -0
  11. package/dist/comment-list-BcSaLngS.d.ts +62 -0
  12. package/dist/comment-marks.css +234 -0
  13. package/dist/comment-panel-CfvdRUMX.d.ts +208 -0
  14. package/dist/comment-person-CLPlW_SS.js +40 -0
  15. package/dist/comment-pin-DHOdRvUw.d.ts +68 -0
  16. package/dist/comment-row-Bn3nr8l5.js +39 -0
  17. package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
  18. package/dist/comment-thread-DKJjmWN0.d.ts +385 -0
  19. package/dist/comment-visibility-DsVuVndP.d.ts +40 -0
  20. package/dist/{comments-C08J3z4e.js → comments-D0d26ghV.js} +210 -59
  21. package/dist/comments-D8hulVPy.d.ts +198 -0
  22. package/dist/comments-context-C2lOZyQ5.js +38 -0
  23. package/dist/config-DgxBW013.d.ts +80 -0
  24. package/dist/config-Dk67emQt.js +63 -0
  25. package/dist/copy-button-CRN3kmSD.js +253 -0
  26. package/dist/draw-DzSmD7uo-Dwz8zoH2.js +72976 -0
  27. package/dist/editor-C_wt4RRV.js +582 -0
  28. package/dist/error-diagnostics-SXtnk6bz.js +38 -0
  29. package/dist/{file-tree-C1pv4_AI.js → file-tree-C4OYgbV-.js} +292 -145
  30. package/dist/{file-tree-Ctb8hZ_g.d.ts → file-tree-DlT9RGhu.d.ts} +51 -15
  31. package/dist/format-orwcdZL_.js +39 -0
  32. package/dist/handlers-DMl-Na3x.js +182 -0
  33. package/dist/headless.d.ts +5 -176
  34. package/dist/headless.js +5 -3
  35. package/dist/icon-swap.css +69 -0
  36. package/dist/{image-preview-VfknBEFu.js → image-preview-C9tdkmEj.js} +8 -5
  37. package/dist/{index-DcH0QSI5.d.ts → index-BYRFQfCd.d.ts} +14 -0
  38. package/dist/{code-view-vDM-hph-.d.ts → index-CNY1uNTh.d.ts} +14 -228
  39. package/dist/index.d.ts +55 -57
  40. package/dist/index.js +678 -25
  41. package/dist/markdown-editor-CMbNZOdN.js +2394 -0
  42. package/dist/markdown-editor-wQF0yD5o.d.ts +195 -0
  43. package/dist/markdown-editor.d.ts +108 -0
  44. package/dist/markdown-editor.js +3 -0
  45. package/dist/message-scroller-jrYN9dG9.d.ts +175 -0
  46. package/dist/nuxt-ui-DSQFzq3s.js +38 -0
  47. package/dist/nuxt.d.ts +84 -2
  48. package/dist/nuxt.js +243 -35
  49. package/dist/parts/components/agent-session.d.ts +254 -0
  50. package/dist/parts/components/agent-session.js +640 -0
  51. package/dist/{attachment-BBndG9_P.d.ts → parts/components/attachment.d.ts} +14 -15
  52. package/dist/{attachment-B3dXC7jM.js → parts/components/attachment.js} +6 -4
  53. package/dist/{avatar-stack.d.ts → parts/components/avatar-stack.d.ts} +1 -1
  54. package/dist/{avatar-stack-DM6HRnc0.js → parts/components/avatar-stack.js} +2 -5
  55. package/dist/{bubble-BJH2rfii.d.ts → parts/components/bubble.d.ts} +7 -8
  56. package/dist/{bubble-BPyFQlW7.js → parts/components/bubble.js} +2 -2
  57. package/dist/{chat-message-mpDmZbIC.d.ts → parts/components/chat-message.d.ts} +2 -3
  58. package/dist/{chat-message-BNK9G7xF.js → parts/components/chat-message.js} +4 -4
  59. package/dist/{chat-session-D6C7VJBR.d.ts → parts/components/chat-session.d.ts} +3 -4
  60. package/dist/{chat-session-DYEHB1HC.js → parts/components/chat-session.js} +2 -2
  61. package/dist/{chat-B9HlZWA2.d.ts → parts/components/chat.d.ts} +8 -4
  62. package/dist/{chat-BoFHlu9V.js → parts/components/chat.js} +42 -9
  63. package/dist/{highlighted-code-Dzf6o54i.d.ts → parts/components/code-block.d.ts} +15 -23
  64. package/dist/{code-block-Br-02hn-.js → parts/components/code-block.js} +9 -38
  65. package/dist/parts/components/code-view.d.ts +270 -0
  66. package/dist/parts/components/code-view.js +2 -0
  67. package/dist/parts/components/comment-composer.d.ts +2 -0
  68. package/dist/parts/components/comment-composer.js +2 -0
  69. package/dist/parts/components/comment-layer.d.ts +2 -0
  70. package/dist/parts/components/comment-layer.js +631 -0
  71. package/dist/parts/components/comment-list.d.ts +2 -0
  72. package/dist/parts/components/comment-list.js +168 -0
  73. package/dist/parts/components/comment-panel.d.ts +2 -0
  74. package/dist/parts/components/comment-panel.js +311 -0
  75. package/dist/parts/components/comment-pin.d.ts +2 -0
  76. package/dist/parts/components/comment-pin.js +75 -0
  77. package/dist/parts/components/comment-selection-bar.d.ts +2 -0
  78. package/dist/parts/components/comment-selection-bar.js +116 -0
  79. package/dist/parts/components/comment-thread.d.ts +2 -0
  80. package/dist/parts/components/comment-thread.js +598 -0
  81. package/dist/parts/components/comments.d.ts +8 -0
  82. package/dist/parts/components/comments.js +9 -0
  83. package/dist/{connection-status-DjGBw6xX.d.ts → parts/components/connection-status.d.ts} +6 -7
  84. package/dist/{connection-status-CzuWBENf.js → parts/components/connection-status.js} +1 -1
  85. package/dist/parts/components/copy-button.d.ts +118 -0
  86. package/dist/parts/components/copy-button.js +2 -0
  87. package/dist/parts/components/device-frame.d.ts +130 -0
  88. package/dist/parts/components/device-frame.js +471 -0
  89. package/dist/parts/components/file-tree.d.ts +2 -0
  90. package/dist/parts/components/file-tree.js +2 -0
  91. package/dist/parts/components/filter-search.d.ts +47 -0
  92. package/dist/parts/components/filter-search.js +58 -0
  93. package/dist/parts/components/markdown-editor.d.ts +2 -0
  94. package/dist/parts/components/markdown-editor.js +2 -0
  95. package/dist/parts/components/markdown-renderer.d.ts +52 -0
  96. package/dist/parts/components/markdown-renderer.js +23077 -0
  97. package/dist/{markdown-Dse5ldJe.d.ts → parts/components/markdown.d.ts} +7 -7
  98. package/dist/parts/components/markdown.js +47 -0
  99. package/dist/{marker-ea-tvx-J.d.ts → parts/components/marker.d.ts} +6 -7
  100. package/dist/{marker-Di2ZG_k1.js → parts/components/marker.js} +2 -2
  101. package/dist/{message-parts-BBFUkluC.d.ts → parts/components/message-parts.d.ts} +2 -3
  102. package/dist/{message-parts-DQnfioAH.js → parts/components/message-parts.js} +6 -6
  103. package/dist/{message-CW_paC1k.d.ts → parts/components/message.d.ts} +8 -9
  104. package/dist/{message-DiyBthIq.js → parts/components/message.js} +2 -2
  105. package/dist/parts/components/patch-parsers.d.ts +2 -0
  106. package/dist/parts/components/patch-parsers.js +2 -0
  107. package/dist/{prompt-input-Cy_Ue6B5.d.ts → parts/components/prompt-input.d.ts} +53 -10
  108. package/dist/{prompt-input-BbnCb80O.js → parts/components/prompt-input.js} +66 -111
  109. package/dist/parts/components/relative-time.d.ts +73 -0
  110. package/dist/parts/components/relative-time.js +2 -0
  111. package/dist/parts/components/status.d.ts +60 -0
  112. package/dist/parts/components/status.js +48 -0
  113. package/dist/{sync-status-refELOZn.d.ts → parts/components/sync-status.d.ts} +5 -6
  114. package/dist/{sync-status-BpxYdZIJ.js → parts/components/sync-status.js} +1 -1
  115. package/dist/{tool-list-E7CA52rz.d.ts → parts/components/tool-list.d.ts} +3 -4
  116. package/dist/{tool-list-BdSr5CT4.js → parts/components/tool-list.js} +7 -38
  117. package/dist/{trace-run-COeXn46Z.d.ts → parts/components/trace-run.d.ts} +3 -4
  118. package/dist/{trace-run-BIQ17CED.js → parts/components/trace-run.js} +15 -23
  119. package/dist/{trace-V7rM3Pyd.d.ts → parts/components/trace.d.ts} +11 -12
  120. package/dist/{trace-llBCDiSW.js → parts/components/trace.js} +20 -13
  121. package/dist/parts/composables/attachments.d.ts +32 -0
  122. package/dist/parts/composables/attachments.js +2 -0
  123. package/dist/parts/composables/highlighted-code.d.ts +9 -0
  124. package/dist/{highlighted-code-Ck4zexJX.js → parts/composables/highlighted-code.js} +5 -2
  125. package/dist/parts/headless/choices-input.d.ts +2 -0
  126. package/dist/parts/headless/choices-input.js +162 -0
  127. package/dist/parts/headless/comment-visibility.d.ts +2 -0
  128. package/dist/parts/headless/comment-visibility.js +128 -0
  129. package/dist/parts/headless/comments.d.ts +2 -0
  130. package/dist/parts/headless/comments.js +2 -0
  131. package/dist/parts/headless/message-scroller.d.ts +2 -0
  132. package/dist/{message-scroller-CX6NJTdm.js → parts/headless/message-scroller.js} +2 -2
  133. package/dist/parts/playground/highlight.d.ts +5 -0
  134. package/dist/parts/playground/highlight.js +23 -0
  135. package/dist/parts/playground/paths.d.ts +4 -0
  136. package/dist/parts/playground/paths.js +7 -0
  137. package/dist/parts/playground/playground-render.d.ts +126 -0
  138. package/dist/parts/playground/playground-render.js +356 -0
  139. package/dist/parts/playground/share.d.ts +2 -0
  140. package/dist/parts/playground/share.js +92 -0
  141. package/dist/parts/playground/zip.d.ts +6 -0
  142. package/dist/parts/playground/zip.js +76 -0
  143. package/dist/parts/workspace/browser-support-notice.d.ts +76 -0
  144. package/dist/parts/workspace/browser-support-notice.js +105 -0
  145. package/dist/parts/workspace/codemirror.d.ts +16 -0
  146. package/dist/parts/workspace/codemirror.js +243 -0
  147. package/dist/parts/workspace/connect-panel.d.ts +129 -0
  148. package/dist/parts/workspace/connect-panel.js +285 -0
  149. package/dist/parts/workspace/connect-store.d.ts +26 -0
  150. package/dist/parts/workspace/connect-store.js +59 -0
  151. package/dist/parts/workspace/icons.d.ts +34 -0
  152. package/dist/parts/workspace/icons.js +46 -0
  153. package/dist/parts/workspace/playground-container.d.ts +192 -0
  154. package/dist/parts/workspace/playground-container.js +603 -0
  155. package/dist/parts/workspace/workspace-boot-status.d.ts +75 -0
  156. package/dist/parts/workspace/workspace-boot-status.js +207 -0
  157. package/dist/parts/workspace/workspace-editor.d.ts +43 -0
  158. package/dist/parts/workspace/workspace-editor.js +54 -0
  159. package/dist/parts/workspace/workspace-file-tree.d.ts +53 -0
  160. package/dist/parts/workspace/workspace-file-tree.js +68 -0
  161. package/dist/parts/workspace/workspace-preview.d.ts +72 -0
  162. package/dist/parts/workspace/workspace-preview.js +307 -0
  163. package/dist/parts/workspace/workspace-shell.d.ts +88 -0
  164. package/dist/parts/workspace/workspace-shell.js +291 -0
  165. package/dist/parts/workspace/workspace-terminal.d.ts +39 -0
  166. package/dist/parts/workspace/workspace-terminal.js +130 -0
  167. package/dist/payload-text-sjkYAwvw.js +32 -0
  168. package/dist/{pierre-code-view-T7V67hwT.js → pierre-code-view-NE35tkmR.js} +245 -102
  169. package/dist/{pierre-dark-DDWDl8g6.js → pierre-dark-CzUmjETS.js} +3 -1
  170. package/dist/{pierre-light-CWhW4NrH.js → pierre-light-Dn6E0sWv.js} +3 -1
  171. package/dist/playground.d.ts +4 -0
  172. package/dist/playground.js +4 -0
  173. package/dist/relative-time-BVmjOsYG.js +309 -0
  174. package/dist/rolldown-runtime-C9mWXvCC.js +29 -0
  175. package/dist/runtime/nuxt-plugin.js +23 -4
  176. package/dist/sankey-CAYwt82B-D4uDQoMR.js +2887 -0
  177. package/dist/share-DM4eNy4q.d.ts +37 -0
  178. package/dist/{slot-part-C7Ocxn3b.js → slot-part-Doic71uh.js} +7 -1
  179. package/dist/styles.css +2609 -620
  180. package/dist/temml-BilSAAws.js +12362 -0
  181. package/dist/theme-focus-ring.css +42 -0
  182. package/dist/theme.css +376 -0
  183. package/dist/theme.d.ts +355 -0
  184. package/dist/theme.js +265 -0
  185. package/dist/{types-CqDwuJAm.d.ts → types-Dj7vp0lZ.d.ts} +1 -1
  186. package/dist/vue-BDmSCtay.js +30779 -0
  187. package/dist/vue-DGstVdGn.js +2492 -0
  188. package/dist/workspace.d.ts +15 -0
  189. package/dist/workspace.js +12 -0
  190. package/package.json +135 -149
  191. package/dist/andromeeda-BASpqCeJ.js +0 -4
  192. package/dist/attachment.d.ts +0 -2
  193. package/dist/attachment.js +0 -2
  194. package/dist/aurora-x-DugsLcii.js +0 -4
  195. package/dist/avatar-stack.js +0 -2
  196. package/dist/ayu-dark-BT3qdi3o.js +0 -4
  197. package/dist/ayu-light-BVZyHoh9.js +0 -4
  198. package/dist/ayu-mirage-XFwUVZQZ.js +0 -4
  199. package/dist/bubble.d.ts +0 -2
  200. package/dist/bubble.js +0 -2
  201. package/dist/catppuccin-frappe-D20KODDN.js +0 -4
  202. package/dist/catppuccin-latte-eGLVHIUJ.js +0 -4
  203. package/dist/catppuccin-macchiato-bQGch4PY.js +0 -4
  204. package/dist/catppuccin-mocha-Bes8-0Mr.js +0 -4
  205. package/dist/chat-message.d.ts +0 -2
  206. package/dist/chat-message.js +0 -2
  207. package/dist/chat-session.d.ts +0 -2
  208. package/dist/chat-session.js +0 -2
  209. package/dist/chat.d.ts +0 -2
  210. package/dist/chat.js +0 -2
  211. package/dist/code-block.d.ts +0 -2
  212. package/dist/code-block.js +0 -3
  213. package/dist/code-view.d.ts +0 -2
  214. package/dist/code-view.js +0 -2
  215. package/dist/comment-layer-CBlxJ8eK.js +0 -1113
  216. package/dist/comments-ChNJkV1d.d.ts +0 -108
  217. package/dist/comments-Cq5eewsu.d.ts +0 -537
  218. package/dist/comments.d.ts +0 -2
  219. package/dist/comments.js +0 -2
  220. package/dist/config-Bux_AJzm.d.ts +0 -29
  221. package/dist/config-bHqE4JOs.js +0 -38
  222. package/dist/connection-status.d.ts +0 -2
  223. package/dist/connection-status.js +0 -2
  224. package/dist/dark-plus-BGuiqa1B.js +0 -4
  225. package/dist/dracula-0CVA2XY5.js +0 -4
  226. package/dist/dracula-soft-Dk9bpbVU.js +0 -4
  227. package/dist/error-diagnostics-B4hMpJRL.js +0 -13
  228. package/dist/everforest-dark-CRjTbhh5.js +0 -4
  229. package/dist/everforest-light-CEeYFLn8.js +0 -4
  230. package/dist/file-diff.d.ts +0 -2
  231. package/dist/file-diff.js +0 -2
  232. package/dist/file-tree.d.ts +0 -2
  233. package/dist/file-tree.js +0 -2
  234. package/dist/file-view.d.ts +0 -2
  235. package/dist/file-view.js +0 -2
  236. package/dist/github-dark-BXgKmOw_.js +0 -4
  237. package/dist/github-dark-default-DzJQXksd.js +0 -4
  238. package/dist/github-dark-dimmed-B1pEmGtS.js +0 -4
  239. package/dist/github-dark-high-contrast-BkHIa6jc.js +0 -4
  240. package/dist/github-light-BKRlUbaB.js +0 -4
  241. package/dist/github-light-default-BU3eYkzs.js +0 -4
  242. package/dist/github-light-high-contrast-B3MumDcI.js +0 -4
  243. package/dist/gruvbox-dark-hard-B0ecF443.js +0 -4
  244. package/dist/gruvbox-dark-medium-BQnpC39k.js +0 -4
  245. package/dist/gruvbox-dark-soft-DFZUgESr.js +0 -4
  246. package/dist/gruvbox-light-hard-CuB_LOJr.js +0 -4
  247. package/dist/gruvbox-light-medium-idDHgxjs.js +0 -4
  248. package/dist/gruvbox-light-soft-CfWH49MY.js +0 -4
  249. package/dist/horizon-bright-Ba6M8QSV.js +0 -4
  250. package/dist/horizon-h92C5OlZ.js +0 -4
  251. package/dist/houston-EQnPegWq.js +0 -4
  252. package/dist/kanagawa-dragon-DgDvwi3B.js +0 -4
  253. package/dist/kanagawa-lotus-BgoQro20.js +0 -4
  254. package/dist/kanagawa-wave-DgXEowHs.js +0 -4
  255. package/dist/laserwave-IxBH_3yW.js +0 -4
  256. package/dist/light-plus-S8JBx6is.js +0 -4
  257. package/dist/markdown-BoLBN0qH.js +0 -197
  258. package/dist/markdown.d.ts +0 -2
  259. package/dist/markdown.js +0 -2
  260. package/dist/marker.d.ts +0 -2
  261. package/dist/marker.js +0 -2
  262. package/dist/material-theme-D1f3HBq-.js +0 -4
  263. package/dist/material-theme-darker-ExzYhT0j.js +0 -4
  264. package/dist/material-theme-lighter-D6gH9nnA.js +0 -4
  265. package/dist/material-theme-ocean-D1w5BPAa.js +0 -4
  266. package/dist/material-theme-palenight-CkqWmVpF.js +0 -4
  267. package/dist/message-parts.d.ts +0 -2
  268. package/dist/message-parts.js +0 -2
  269. package/dist/message.d.ts +0 -2
  270. package/dist/message.js +0 -2
  271. package/dist/min-dark-npsJH98j.js +0 -4
  272. package/dist/min-light-DUk1XsVt.js +0 -4
  273. package/dist/monokai-CfFRWUNl.js +0 -4
  274. package/dist/multi-file-diff.d.ts +0 -2
  275. package/dist/multi-file-diff.js +0 -2
  276. package/dist/night-owl-BS7V-av_.js +0 -4
  277. package/dist/night-owl-light-CZtRawYE.js +0 -4
  278. package/dist/nord-BFh54Nqz.js +0 -4
  279. package/dist/one-dark-pro-zDovGosB.js +0 -4
  280. package/dist/one-light-gmHK3iK6.js +0 -4
  281. package/dist/patch-diff.d.ts +0 -2
  282. package/dist/patch-diff.js +0 -2
  283. package/dist/plastic-DtdaCjub.js +0 -4
  284. package/dist/poimandres-Hdda6aHK.js +0 -4
  285. package/dist/primitive-rail.d.ts +0 -222
  286. package/dist/primitive-rail.js +0 -348
  287. package/dist/prompt-input.d.ts +0 -2
  288. package/dist/prompt-input.js +0 -2
  289. package/dist/red-VqZFRByZ.js +0 -4
  290. package/dist/rose-pine-DiTkEueR.js +0 -4
  291. package/dist/rose-pine-dawn-tfo5y2X0.js +0 -4
  292. package/dist/rose-pine-moon-C0gON9XN.js +0 -4
  293. package/dist/runtime-type-DlCscMfw.js +0 -59
  294. package/dist/slack-dark-v8P_eXr6.js +0 -4
  295. package/dist/slack-ochin-D8SyEdKz.js +0 -4
  296. package/dist/snazzy-light-BtkQkvXb.js +0 -4
  297. package/dist/solarized-dark-B8nAdMfM.js +0 -4
  298. package/dist/solarized-light-B-3F1INj.js +0 -4
  299. package/dist/sync-status.d.ts +0 -2
  300. package/dist/sync-status.js +0 -2
  301. package/dist/synthwave-84-DcsXCF_c.js +0 -4
  302. package/dist/tokyo-night-Bvpqduda.js +0 -4
  303. package/dist/tool-list.d.ts +0 -2
  304. package/dist/tool-list.js +0 -2
  305. package/dist/trace-run.d.ts +0 -2
  306. package/dist/trace-run.js +0 -2
  307. package/dist/trace.d.ts +0 -2
  308. package/dist/trace.js +0 -2
  309. package/dist/unresolved-file.d.ts +0 -2
  310. package/dist/unresolved-file.js +0 -2
  311. package/dist/vesper-CfxmMOy3.js +0 -4
  312. package/dist/vitesse-black-D9-_1mjV.js +0 -4
  313. package/dist/vitesse-dark-DlSMLlr9.js +0 -4
  314. package/dist/vitesse-light-KRWWWztf.js +0 -4
@@ -1,5 +1,19 @@
1
1
  import "nostics";
2
+ //#region ../runtime/src/host.d.ts
3
+ declare global {
4
+ /** `wrangler types` adds the app's bindings to `Cloudflare.Env`. ViteHub reads it to type `getHostBinding()`. */
5
+ namespace Cloudflare {
6
+ interface Env {}
7
+ }
8
+ }
9
+ //#endregion
2
10
  //#region ../runtime/src/index.d.ts
11
+ declare global {
12
+ namespace ViteHub {
13
+ /** Generated declarations set `sessionResult` to the result of the app's Auth Definition. */
14
+ interface AuthRegistry {}
15
+ }
16
+ }
3
17
  interface TraceContext {
4
18
  id: string;
5
19
  parentId?: string;
@@ -2178,7 +2178,7 @@ interface FileDiffOptions<LAnnotation, Caret> extends Omit<BaseDiffOptions, 'hun
2178
2178
  hunkSeparators?: Exclude<HunkSeparators, 'custom'> | /**
2179
2179
  * @deprecated Custom hunk separator functions are deprecated and will be
2180
2180
  * removed in a future version.
2181
- */ ((hunk: HunkData, instance: FileDiff$1<LAnnotation, Caret>) => HTMLElement | DocumentFragment | null | undefined);
2181
+ */ ((hunk: HunkData, instance: FileDiff<LAnnotation, Caret>) => HTMLElement | DocumentFragment | null | undefined);
2182
2182
  disableFileHeader?: boolean;
2183
2183
  renderHeaderPrefix?: RenderHeaderPrefixCallback;
2184
2184
  renderHeaderFilenameSuffix?: RenderHeaderFilenameSuffixCallback;
@@ -2192,7 +2192,7 @@ interface FileDiffOptions<LAnnotation, Caret> extends Omit<BaseDiffOptions, 'hun
2192
2192
  disableErrorHandling?: boolean;
2193
2193
  renderAnnotation?(annotation: DiffLineAnnotation<LAnnotation>): HTMLElement | undefined;
2194
2194
  renderGutterUtility?(getHoveredRow: () => GetHoveredLineResult<'diff'> | undefined): HTMLElement | null | undefined;
2195
- onPostRender?(node: HTMLElement, instance: FileDiff$1<LAnnotation, Caret>, phase: PostRenderPhase): unknown;
2195
+ onPostRender?(node: HTMLElement, instance: FileDiff<LAnnotation, Caret>, phase: PostRenderPhase): unknown;
2196
2196
  /**
2197
2197
  * Fired for every document change of an active edit session on this
2198
2198
  * component, with the same `EditorChangeEvent` the editor reports through
@@ -2230,7 +2230,7 @@ interface HeaderCache {
2230
2230
  html: string | undefined;
2231
2231
  fileDiff: FileDiffMetadata | undefined;
2232
2232
  }
2233
- declare class FileDiff$1<LAnnotation = undefined, Caret = undefined> {
2233
+ declare class FileDiff<LAnnotation = undefined, Caret = undefined> {
2234
2234
  options: FileDiffOptions<LAnnotation, Caret>;
2235
2235
  protected workerManager?: WorkerPoolManager | undefined;
2236
2236
  protected isContainerManaged: boolean;
@@ -2574,7 +2574,7 @@ interface SyncDiffRenderViewProps<LAnnotation> extends SyncRenderViewBaseProps {
2574
2574
  externalDocument?: boolean;
2575
2575
  }
2576
2576
  type SyncRenderViewProps<EType extends EditorType, LAnnotation> = EType extends 'file' ? SyncFileRenderViewProps<LAnnotation> : SyncDiffRenderViewProps<LAnnotation>;
2577
- type EditorComponent<EType extends EditorType, LAnnotation, Caret> = EType extends 'file' ? File<LAnnotation, Caret> : FileDiff$1<LAnnotation, Caret>;
2577
+ type EditorComponent<EType extends EditorType, LAnnotation, Caret> = EType extends 'file' ? File<LAnnotation, Caret> : FileDiff<LAnnotation, Caret>;
2578
2578
  interface EditorOptions<EType extends EditorType, LAnnotation, Caret> {
2579
2579
  /** The maximum number of entries to keep in the undo stack. */
2580
2580
  historyMaxEntries?: number;
@@ -3083,7 +3083,7 @@ declare class Virtualizer {
3083
3083
  //#region ../../node_modules/.pnpm/@pierre+diffs@1.5.2_@shikijs+themes@4.5.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.d.ts
3084
3084
  //#region src/components/VirtualizedFileDiff.d.ts
3085
3085
  type LoadedPartialDiffContents = Awaited<ReturnType<NonNullable<BaseDiffOptions['loadDiffFiles']>>>;
3086
- declare class VirtualizedFileDiff<LAnnotation = undefined, Caret = undefined> extends FileDiff$1<LAnnotation, Caret> {
3086
+ declare class VirtualizedFileDiff<LAnnotation = undefined, Caret = undefined> extends FileDiff<LAnnotation, Caret> {
3087
3087
  readonly __id: string;
3088
3088
  readonly renderType = "virtualized";
3089
3089
  top: number | undefined;
@@ -3099,7 +3099,7 @@ declare class VirtualizedFileDiff<LAnnotation = undefined, Caret = undefined> ex
3099
3099
  private pendingHydratedDiff;
3100
3100
  private pendingExpansions;
3101
3101
  private pendingRender;
3102
- constructor(options: FileDiffOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView$1<LAnnotation, Caret>, metrics?: Partial<VirtualFileMetrics>, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
3102
+ constructor(options: FileDiffOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation, Caret>, metrics?: Partial<VirtualFileMetrics>, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
3103
3103
  setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;
3104
3104
  setLineAnnotations(lineAnnotations: DiffLineAnnotation<LAnnotation>[]): void;
3105
3105
  private syncLineAnnotations;
@@ -3242,7 +3242,7 @@ interface CodeViewCoordinator<LAnnotation, Caret> {
3242
3242
  hasGutterRenderer: boolean;
3243
3243
  onSnapshotChange(snapshot: CodeViewSlotSnapshot<LAnnotation, Caret> | undefined): void;
3244
3244
  }
3245
- type CodeViewScrollListener<LAnnotation, Caret> = (scrollTop: number, viewer: CodeView$1<LAnnotation, Caret>) => void;
3245
+ type CodeViewScrollListener<LAnnotation, Caret> = (scrollTop: number, viewer: CodeView<LAnnotation, Caret>) => void;
3246
3246
  type OverloadCallbackArgs<TCallback> = TCallback extends ((...args: infer TArgs) => unknown) ? TArgs : never;
3247
3247
  type CallbackReturn<TCallback> = TCallback extends ((...args: never[]) => infer TReturn) ? TReturn : never;
3248
3248
  type OverloadFileCallbackArgs<LAnnotation, Caret, TKey extends keyof FileOptions<LAnnotation, Caret>> = OverloadCallbackArgs<NonNullable<FileOptions<LAnnotation, Caret>[TKey]>>;
@@ -3336,7 +3336,7 @@ interface CodeViewOptions<LAnnotation, Caret> extends CodeViewPassThroughOptions
3336
3336
  __devOnlyValidateItemHeights?: boolean;
3337
3337
  }
3338
3338
  type CodeViewItemMap<LAnnotation, Caret> = Map<string, CodeViewContextItem<LAnnotation, Caret>>;
3339
- declare class CodeView$1<LAnnotation = undefined, Caret = undefined> {
3339
+ declare class CodeView<LAnnotation = undefined, Caret = undefined> {
3340
3340
  static __STOP: boolean;
3341
3341
  static __lastScrollPosition: number;
3342
3342
  type: 'advanced';
@@ -3697,7 +3697,7 @@ declare class VirtualizedFile<LAnnotation = undefined, Caret = undefined> extend
3697
3697
  private layoutDirty;
3698
3698
  private forceRenderOverride;
3699
3699
  private currentCollapsed;
3700
- constructor(options: FileOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView$1<LAnnotation, Caret>, metrics?: VirtualFileMetrics, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
3700
+ constructor(options: FileOptions<LAnnotation, Caret> | undefined, virtualizer: Virtualizer | CodeView<LAnnotation, Caret>, metrics?: VirtualFileMetrics, workerManager?: WorkerPoolManager, isContainerManaged?: boolean);
3701
3701
  setMetrics(metrics?: Partial<VirtualFileMetrics>, force?: boolean): void;
3702
3702
  setLineAnnotations(lineAnnotations: LineAnnotation<LAnnotation>[]): void;
3703
3703
  private syncLineAnnotations;
@@ -3786,12 +3786,12 @@ declare class UnresolvedFileHunksRenderer<LAnnotation = undefined> extends DiffH
3786
3786
  //#endregion
3787
3787
  //#region ../../node_modules/.pnpm/@pierre+diffs@1.5.2_@shikijs+themes@4.5.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/components/UnresolvedFile.d.ts
3788
3788
  //#region src/components/UnresolvedFile.d.ts
3789
- type RenderMergeConflictActions<LAnnotation> = (action: MergeConflictDiffAction, instance: UnresolvedFile$1<LAnnotation>) => HTMLElement | DocumentFragment | null | undefined;
3789
+ type RenderMergeConflictActions<LAnnotation> = (action: MergeConflictDiffAction, instance: UnresolvedFile<LAnnotation>) => HTMLElement | DocumentFragment | null | undefined;
3790
3790
  type MergeConflictActionsTypeOption<LAnnotation> = 'none' | 'default' | RenderMergeConflictActions<LAnnotation>;
3791
3791
  interface UnresolvedFileOptions<LAnnotation> extends Omit<FileDiffOptions<LAnnotation, undefined>, 'diffStyle' | 'onPostRender'> {
3792
- onPostRender?(node: HTMLElement, instance: UnresolvedFile$1<LAnnotation>, phase: PostRenderPhase): unknown;
3792
+ onPostRender?(node: HTMLElement, instance: UnresolvedFile<LAnnotation>, phase: PostRenderPhase): unknown;
3793
3793
  mergeConflictActionsType?: MergeConflictActionsTypeOption<LAnnotation>;
3794
- onMergeConflictAction?(payload: MergeConflictActionPayload, instance: UnresolvedFile$1<LAnnotation>): void;
3794
+ onMergeConflictAction?(payload: MergeConflictActionPayload, instance: UnresolvedFile<LAnnotation>): void;
3795
3795
  onMergeConflictResolve?(file: FileContents, payload: MergeConflictActionPayload): void;
3796
3796
  maxContextLines?: number;
3797
3797
  }
@@ -3818,7 +3818,7 @@ interface ResolveConflictReturn {
3818
3818
  markerRows: MergeConflictMarkerRow[];
3819
3819
  }
3820
3820
  type UnresolvedFileDataCache = GetOrComputeDiffProps;
3821
- declare class UnresolvedFile$1<LAnnotation = undefined> extends FileDiff$1<LAnnotation, undefined> {
3821
+ declare class UnresolvedFile<LAnnotation = undefined> extends FileDiff<LAnnotation, undefined> {
3822
3822
  options: UnresolvedFileOptions<LAnnotation>;
3823
3823
  readonly __id: string;
3824
3824
  readonly type = "unresolved-file";
@@ -3874,218 +3874,4 @@ declare function parseDiffFromFile(oldFile: FileContents | null, newFile: FileCo
3874
3874
  */
3875
3875
  declare function parsePatchFiles(data: string, cacheKeyPrefix?: string, throwOnError?: boolean): ParsedPatch[];
3876
3876
  //#endregion
3877
- //#region src/components/code-view.d.ts
3878
- declare const PatchDiff: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3879
- patch: {
3880
- required: true;
3881
- type: StringConstructor;
3882
- };
3883
- lineAnnotations: {
3884
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
3885
- };
3886
- options: {
3887
- type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
3888
- };
3889
- selectedLines: {
3890
- default: undefined;
3891
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
3892
- };
3893
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
3894
- [key: string]: any;
3895
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3896
- patch: {
3897
- required: true;
3898
- type: StringConstructor;
3899
- };
3900
- lineAnnotations: {
3901
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
3902
- };
3903
- options: {
3904
- type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
3905
- };
3906
- selectedLines: {
3907
- default: undefined;
3908
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
3909
- };
3910
- }>> & Readonly<{}>, {
3911
- selectedLines: SelectedLineRange | null | undefined;
3912
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3913
- declare const MultiFileDiff: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3914
- newFile: {
3915
- required: true;
3916
- type: import("vue").PropType<FileContents | null>;
3917
- };
3918
- oldFile: {
3919
- required: true;
3920
- type: import("vue").PropType<FileContents | null>;
3921
- };
3922
- lineAnnotations: {
3923
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
3924
- };
3925
- options: {
3926
- type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
3927
- };
3928
- selectedLines: {
3929
- default: undefined;
3930
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
3931
- };
3932
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
3933
- [key: string]: any;
3934
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3935
- newFile: {
3936
- required: true;
3937
- type: import("vue").PropType<FileContents | null>;
3938
- };
3939
- oldFile: {
3940
- required: true;
3941
- type: import("vue").PropType<FileContents | null>;
3942
- };
3943
- lineAnnotations: {
3944
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
3945
- };
3946
- options: {
3947
- type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
3948
- };
3949
- selectedLines: {
3950
- default: undefined;
3951
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
3952
- };
3953
- }>> & Readonly<{}>, {
3954
- selectedLines: SelectedLineRange | null | undefined;
3955
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3956
- declare const FileDiff: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3957
- fileDiff: {
3958
- required: true;
3959
- type: import("vue").PropType<FileDiffMetadata>;
3960
- };
3961
- lineAnnotations: {
3962
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
3963
- };
3964
- options: {
3965
- type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
3966
- };
3967
- selectedLines: {
3968
- default: undefined;
3969
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
3970
- };
3971
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
3972
- [key: string]: any;
3973
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
3974
- fileDiff: {
3975
- required: true;
3976
- type: import("vue").PropType<FileDiffMetadata>;
3977
- };
3978
- lineAnnotations: {
3979
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
3980
- };
3981
- options: {
3982
- type: import("vue").PropType<FileDiffOptions<unknown, unknown>>;
3983
- };
3984
- selectedLines: {
3985
- default: undefined;
3986
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
3987
- };
3988
- }>> & Readonly<{}>, {
3989
- selectedLines: SelectedLineRange | null | undefined;
3990
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3991
- declare const FileView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3992
- file: {
3993
- required: true;
3994
- type: import("vue").PropType<FileContents>;
3995
- };
3996
- lineAnnotations: {
3997
- type: import("vue").PropType<LineAnnotation<unknown>[]>;
3998
- };
3999
- options: {
4000
- type: import("vue").PropType<FileOptions<unknown, unknown>>;
4001
- };
4002
- selectedLines: {
4003
- default: undefined;
4004
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
4005
- };
4006
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4007
- [key: string]: any;
4008
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4009
- file: {
4010
- required: true;
4011
- type: import("vue").PropType<FileContents>;
4012
- };
4013
- lineAnnotations: {
4014
- type: import("vue").PropType<LineAnnotation<unknown>[]>;
4015
- };
4016
- options: {
4017
- type: import("vue").PropType<FileOptions<unknown, unknown>>;
4018
- };
4019
- selectedLines: {
4020
- default: undefined;
4021
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
4022
- };
4023
- }>> & Readonly<{}>, {
4024
- selectedLines: SelectedLineRange | null | undefined;
4025
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4026
- declare const UnresolvedFile: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4027
- file: {
4028
- required: true;
4029
- type: import("vue").PropType<FileContents>;
4030
- };
4031
- lineAnnotations: {
4032
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
4033
- };
4034
- options: {
4035
- type: import("vue").PropType<UnresolvedFileOptions<unknown>>;
4036
- };
4037
- selectedLines: {
4038
- default: undefined;
4039
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
4040
- };
4041
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4042
- [key: string]: any;
4043
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4044
- file: {
4045
- required: true;
4046
- type: import("vue").PropType<FileContents>;
4047
- };
4048
- lineAnnotations: {
4049
- type: import("vue").PropType<DiffLineAnnotation<unknown>[]>;
4050
- };
4051
- options: {
4052
- type: import("vue").PropType<UnresolvedFileOptions<unknown>>;
4053
- };
4054
- selectedLines: {
4055
- default: undefined;
4056
- type: import("vue").PropType<SelectedLineRange | null | undefined>;
4057
- };
4058
- }>> & Readonly<{}>, {
4059
- selectedLines: SelectedLineRange | null | undefined;
4060
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4061
- declare const CodeView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4062
- items: {
4063
- required: true;
4064
- type: import("vue").PropType<readonly CodeViewItem<unknown>[]>;
4065
- };
4066
- options: {
4067
- type: import("vue").PropType<CodeViewOptions<unknown, unknown>>;
4068
- };
4069
- selectedLines: {
4070
- default: undefined;
4071
- type: import("vue").PropType<CodeViewLineSelection | null | undefined>;
4072
- };
4073
- }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4074
- [key: string]: any;
4075
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
4076
- items: {
4077
- required: true;
4078
- type: import("vue").PropType<readonly CodeViewItem<unknown>[]>;
4079
- };
4080
- options: {
4081
- type: import("vue").PropType<CodeViewOptions<unknown, unknown>>;
4082
- };
4083
- selectedLines: {
4084
- default: undefined;
4085
- type: import("vue").PropType<CodeViewLineSelection | null | undefined>;
4086
- };
4087
- }>> & Readonly<{}>, {
4088
- selectedLines: CodeViewLineSelection | null | undefined;
4089
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4090
- //#endregion
4091
- export { FileContents as _, PatchDiff as a, SelectedLineRange as b, parseDiffFromFile as c, CodeViewLineSelection as d, CodeViewOptions as f, DiffLineAnnotation as g, CodeViewItem as h, MultiFileDiff as i, getSingularPatch as l, FileOptions as m, FileDiff as n, UnresolvedFile as o, FileDiffOptions as p, FileView as r, parsePatchFiles as s, CodeView as t, UnresolvedFileOptions as u, FileDiffMetadata as v, LineAnnotation as y };
3877
+ export { CodeViewLineSelection as a, FileOptions as c, FileContents as d, FileDiffMetadata as f, UnresolvedFileOptions as i, CodeViewItem as l, SelectedLineRange as m, parseDiffFromFile as n, CodeViewOptions as o, LineAnnotation as p, getSingularPatch as r, FileDiffOptions as s, parsePatchFiles as t, DiffLineAnnotation as u };
package/dist/index.d.ts CHANGED
@@ -1,58 +1,56 @@
1
- import { a as AttachmentDescription, c as AttachmentOrientation, d as AttachmentTitle, f as AttachmentTrigger, i as AttachmentContent, l as AttachmentSize, n as AttachmentAction, o as AttachmentGroup, r as AttachmentActions, s as AttachmentMedia, t as Attachment, u as AttachmentState } from "./attachment-BBndG9_P.js";
2
- import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "./avatar-stack-DXmCQhxd.js";
3
- import { a as BubbleReactions, i as BubbleGroup, n as BubbleAlign, o as BubbleVariant, r as BubbleContent, t as Bubble } from "./bubble-BJH2rfii.js";
4
- import { t as ChatMessage } from "./chat-message-mpDmZbIC.js";
5
- import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "./index-DcH0QSI5.js";
6
- import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-CqDwuJAm.js";
7
- import { t as ChatSession } from "./chat-session-D6C7VJBR.js";
8
- import { t as Chat } from "./chat-B9HlZWA2.js";
9
- import { a as CodeBlockCopyButton, c as CodeBlockLine, d as CodeBlockTitle, f as CodeBlockVariant, i as CodeBlockContent, l as CodeBlockLineVariant, n as CodeBlock, o as CodeBlockFooter, r as CodeBlockActions, s as CodeBlockHeader, t as useHighlightedCode, u as CodeBlockSize } from "./highlighted-code-Dzf6o54i.js";
10
- import { _ as FileContents, a as PatchDiff, b as SelectedLineRange, c as parseDiffFromFile, d as CodeViewLineSelection, f as CodeViewOptions, g as DiffLineAnnotation, h as CodeViewItem, i as MultiFileDiff, l as getSingularPatch, m as FileOptions, n as FileDiff, o as UnresolvedFile, p as FileDiffOptions, r as FileView, s as parsePatchFiles, t as CodeView, u as UnresolvedFileOptions, v as FileDiffMetadata, y as LineAnnotation } from "./code-view-vDM-hph-.js";
11
- import { a as CommentList, c as CommentComposer, i as CommentFilters, l as CommentComposerSubmit, n as CommentThread, o as CommentToolbar, r as CommentPin, s as CommentLayer, t as CommentReply, u as CommentComposerVariant } from "./comments-Cq5eewsu.js";
12
- import { a as UseCommentsOptions, c as useComments, i as CommentsState, l as useCommentsContext, n as CommentFilterState, o as draftPositionKey, r as CommentScope, s as provideComments, t as CommentDraft } from "./comments-ChNJkV1d.js";
13
- import { a as ConnectionStatusValue, i as ConnectionStatusState, n as ConnectionStatusIndicator, r as ConnectionStatusLabel, t as ConnectionStatus } from "./connection-status-DjGBw6xX.js";
14
- import { a as useFileTreeSelection, i as useFileTree, n as FileTreeModel, r as FileTreeOptions, t as FileTree } from "./file-tree-Ctb8hZ_g.js";
15
- import { MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, calculatePrependScrollTop, useMessageScroller } from "./headless.js";
16
- import { n as PromptInputSubmit, t as PromptInput } from "./prompt-input-Cy_Ue6B5.js";
17
- import { t as Markdown } from "./markdown-Dse5ldJe.js";
18
- import { t as MessageParts } from "./message-parts-BBFUkluC.js";
19
- import { t as ToolList } from "./tool-list-E7CA52rz.js";
20
- import { t as TraceRun } from "./trace-run-COeXn46Z.js";
21
- import { i as MarkerVariant, n as MarkerContent, r as MarkerIcon, t as Marker } from "./marker-ea-tvx-J.js";
22
- import { a as MessageFooter, i as MessageContent, n as MessageAlign, o as MessageGroup, r as MessageAvatar, s as MessageHeader, t as Message } from "./message-CW_paC1k.js";
23
- import { i as SyncStatusValue, n as SyncStatusIndicator, r as SyncStatusLabel, t as SyncStatus } from "./sync-status-refELOZn.js";
24
- import { a as TraceDescription, c as TraceLineStatus, i as TraceCollapsibleTrigger, l as TraceTitle, n as TraceCollapsible, o as TraceIcon, r as TraceCollapsibleContent, s as TraceLine, t as Trace } from "./trace-V7rM3Pyd.js";
25
- import { a as createViteHubUI, i as ViteHubUIOptions, n as ViteHubUIDefaults, o as resolveViteHubUIDefaults, r as ViteHubUIInjectionKey, s as useViteHubUI, t as ResolvedViteHubUIDefaults } from "./config-Bux_AJzm.js";
26
- import { ComputedRef, Ref } from "vue";
27
- import { FileUIPart } from "ai";
28
- //#region src/composables/attachments.d.ts
29
- export interface PendingAttachment {
30
- file: File;
31
- id: string;
32
- previewUrl?: string;
33
- }
34
- export interface UseAgentAttachmentsOptions {
35
- accept?: string;
36
- maxFiles?: number;
37
- maxSize?: number;
38
- multiple?: boolean;
39
- onReject?: (file: File, reason: "count" | "size" | "type") => void;
40
- }
41
- export interface AgentAttachments {
42
- accept: ComputedRef<string | undefined>;
43
- add: (files: FileList | Iterable<File>) => void;
44
- clear: () => void;
45
- files: Ref<PendingAttachment[]>;
46
- inputProps: ComputedRef<{
47
- accept?: string;
48
- multiple: boolean;
49
- type: "file";
50
- }>;
51
- remove: (id: string) => void;
52
- toFileParts: () => Promise<FileUIPart[]>;
53
- }
54
- export declare function fileToDataUrl(file: File): Promise<string>;
55
- export declare function fileToUIPart(file: File): Promise<FileUIPart>;
56
- export declare function useAgentAttachments(options?: UseAgentAttachmentsOptions): AgentAttachments;
1
+ import { AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind } from "./parts/components/agent-session.js";
2
+ import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger } from "./parts/components/attachment.js";
3
+ import { i as AvatarStackVariant, n as AvatarStackPerson, r as AvatarStackSize, t as AvatarStack } from "./avatar-stack-DPRFuezh.js";
4
+ import { Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant } from "./parts/components/bubble.js";
5
+ import { ChatMessage } from "./parts/components/chat-message.js";
6
+ import { n as TraceRunView, r as TraceStepView, t as TraceEventLogEntry } from "./index-BYRFQfCd.js";
7
+ import { i as ViteHubUISession, n as AgentToolInspection, r as ViteHubUIMessage, t as AgentInspectionValue } from "./types-Dj7vp0lZ.js";
8
+ import { ChatSession } from "./parts/components/chat-session.js";
9
+ import { Chat, chatActivity } from "./parts/components/chat.js";
10
+ import { CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant } from "./parts/components/code-block.js";
11
+ import { a as CodeViewLineSelection, c as FileOptions, d as FileContents, f as FileDiffMetadata, i as UnresolvedFileOptions, l as CodeViewItem, m as SelectedLineRange, n as parseDiffFromFile, o as CodeViewOptions, p as LineAnnotation, r as getSingularPatch, s as FileDiffOptions, t as parsePatchFiles, u as DiffLineAnnotation } from "./index-CNY1uNTh.js";
12
+ import { CodeView, FileDiff, FileView, MultiFileDiff, PatchDiff, UnresolvedFile } from "./parts/components/code-view.js";
13
+ import { a as CommentComposerSubmit, c as CommentMentionItemScope, i as CommentComposerSlots, n as CommentComposerFrame, o as CommentComposerVariant, r as CommentComposerSize, s as CommentMentionEmptyScope, t as CommentComposer } from "./comment-composer-fINL5bxo.js";
14
+ import { a as createCommentVisibility, i as commentLeaveMs, n as CommentVisibilityModel, r as CommentVisibilityOptions, t as CommentVisibility } from "./comment-visibility-DsVuVndP.js";
15
+ import { a as CommentThreadAction, c as UseCommentsOptions, d as provideComments, f as useComments, i as CommentScope, l as defaultCommentCan, n as CommentDraft, o as CommentsOutboxState, p as useCommentsContext, r as CommentFilterState, s as CommentsState, t as CommentCan, u as draftPositionKey } from "./comments-D8hulVPy.js";
16
+ import { a as CommentReplySlots, c as CommentThreadSlotScope, d as repliedSinceResolved, i as CommentReplySlotScope, l as CommentThreadSlots, n as CommentAttachmentUrl, o as CommentStatusSlotScope, r as CommentReply, s as CommentThread, t as CommentAttachmentLink, u as messagesSinceResolved } from "./comment-thread-DKJjmWN0.js";
17
+ import { a as CommentPanelVariant, c as CommentUpload, i as CommentPanelSlots, n as CommentGroupSlotScope, o as CommentRowSlotScope, r as CommentPanel, s as CommentRowSlots, t as CommentGroup } from "./comment-panel-CfvdRUMX.js";
18
+ import { n as CommentPlacement, t as CommentLayer } from "./comment-layer-C_sbPIR5.js";
19
+ import { n as CommentList, r as CommentToolbar, t as CommentFilters } from "./comment-list-BcSaLngS.js";
20
+ import { t as CommentPin } from "./comment-pin-DHOdRvUw.js";
21
+ import { n as CommentSelectionBarSide, t as CommentSelectionBar } from "./comment-selection-bar-CyVBNYl9.js";
22
+ import "./parts/components/comments.js";
23
+ import { ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue } from "./parts/components/connection-status.js";
24
+ import { CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, UseCopyOptions, UseCopyReturn, useCopy } from "./parts/components/copy-button.js";
25
+ import { DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize } from "./parts/components/device-frame.js";
26
+ import { a as useFileTreeSelection, i as useFileTree, n as FileTreeModel, r as FileTreeOptions, t as FileTree } from "./file-tree-DlT9RGhu.js";
27
+ import { a as ChoicesInputSource, i as ChoicesInputField, n as ChoicesInputClear, o as ChoicesInputState, r as ChoicesInputError, s as ChoicesInputStatus, t as ChoicesInput } from "./choices-input-ByXJvDn1.js";
28
+ import { FilterSearch, FilterSearchSize } from "./parts/components/filter-search.js";
29
+ import { Markdown, MarkdownValue } from "./parts/components/markdown.js";
30
+ import { Marker, MarkerContent, MarkerIcon, MarkerVariant } from "./parts/components/marker.js";
31
+ import { MessageParts } from "./parts/components/message-parts.js";
32
+ import { Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader } from "./parts/components/message.js";
33
+ import "./parts/components/patch-parsers.js";
34
+ import { PromptInput, PromptInputSubmit } from "./parts/components/prompt-input.js";
35
+ import { RelativeTime, RelativeTimeFormat, RelativeTimeValue, provideRelativeNow } from "./parts/components/relative-time.js";
36
+ import { Status, StatusSize, StatusTone } from "./parts/components/status.js";
37
+ import { SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue } from "./parts/components/sync-status.js";
38
+ import { ToolList } from "./parts/components/tool-list.js";
39
+ import { TraceRun } from "./parts/components/trace-run.js";
40
+ import { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceLineStatus, TraceTitle } from "./parts/components/trace.js";
41
+ import { AgentAttachments, PendingAttachment, UseAgentAttachmentsOptions, fileToDataUrl, fileToUIPart, useAgentAttachments } from "./parts/composables/attachments.js";
42
+ import { useHighlightedCode } from "./parts/composables/highlighted-code.js";
43
+ import { a as MessageScrollerContent, c as MessageScrollerViewport, i as MessageScrollerButton, l as calculatePrependScrollTop, n as MessageScrollPosition, o as MessageScrollerContext, r as MessageScroller, s as MessageScrollerItem, t as MessageScrollBehavior, u as useMessageScroller } from "./message-scroller-jrYN9dG9.js";
44
+ import "./headless.js";
45
+ import { t as PlaygroundFiles } from "./share-DM4eNy4q.js";
46
+ import { PlaygroundIssue, PlaygroundOpenEvent, PlaygroundPane, PlaygroundPaneSlotProps, PlaygroundPreset, PlaygroundRender, PlaygroundRenderer, PlaygroundResult } from "./parts/playground/playground-render.js";
47
+ import { a as ViteHubUIOptions, c as useViteHubUI, d as ViteHubUIComponents, i as ViteHubUIInjectionKey, l as useViteHubUIIcons, n as ViteHubUIDefaults, o as createViteHubUI, r as ViteHubUIIconOptions, s as resolveViteHubUIDefaults, t as ResolvedViteHubUIDefaults, u as ViteHubUIComponentName } from "./config-DgxBW013.js";
48
+ //#region src/ui-sdk/components.d.ts
49
+ /**
50
+ * The components that the parts render, on ui-sdk instead of Nuxt UI. Give them to `createViteHubUI({ components })`
51
+ * and load the kit style family. `UIcon` draws the icons that the parts use; to show other icons, such as your own in
52
+ * `createViteHubUI({ icons })`, pass your own `UIcon` next to these.
53
+ */
54
+ export declare const uiSdkComponents: ViteHubUIComponents;
57
55
  //#endregion
58
- export { type AgentInspectionValue, type AgentToolInspection, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger, AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant, Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant, Chat, ChatMessage, ChatSession, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant, CodeView, type CodeViewItem, type CodeViewLineSelection, type CodeViewOptions, CommentComposer, CommentComposerSubmit, CommentComposerVariant, CommentDraft, CommentFilterState, CommentFilters, CommentLayer, CommentList, CommentPin, CommentReply, CommentScope, CommentThread, CommentToolbar, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, type DiffLineAnnotation, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, type LineAnnotation, Markdown, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PromptInput, PromptInputSubmit, ResolvedViteHubUIDefaults, type SelectedLineRange, SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, type TraceEventLogEntry, TraceIcon, TraceLine, TraceLineStatus, TraceRun, type TraceRunView, type TraceStepView, TraceTitle, UnresolvedFile, type UnresolvedFileOptions, UseCommentsOptions, ViteHubUIDefaults, ViteHubUIInjectionKey, type ViteHubUIMessage, ViteHubUIOptions, type ViteHubUISession, calculatePrependScrollTop, createViteHubUI, draftPositionKey, getSingularPatch, parseDiffFromFile, parsePatchFiles, provideComments, resolveViteHubUIDefaults, useComments, useCommentsContext, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI };
56
+ export { AgentAttachments, type AgentInspectionValue, AgentSession, AgentSessionDetailsRow, AgentSessionDetailsSection, AgentSessionItem, AgentSessionSurface, AgentSessionTimeline, AgentSessionWorkEntry, AgentSessionWorkGroup, AgentSessionWorkKind, type AgentToolInspection, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentOrientation, AttachmentSize, AttachmentState, AttachmentTitle, AttachmentTrigger, AvatarStack, AvatarStackPerson, AvatarStackSize, AvatarStackVariant, Bubble, BubbleAlign, BubbleContent, BubbleGroup, BubbleReactions, BubbleVariant, Chat, ChatMessage, ChatSession, ChoicesInput, ChoicesInputClear, ChoicesInputError, ChoicesInputField, ChoicesInputSource, ChoicesInputState, ChoicesInputStatus, CodeBlock, CodeBlockActions, CodeBlockContent, CodeBlockCopyButton, CodeBlockFooter, CodeBlockHeader, CodeBlockLine, CodeBlockLineVariant, CodeBlockSize, CodeBlockTitle, CodeBlockVariant, CodeView, type CodeViewItem, type CodeViewLineSelection, type CodeViewOptions, CommentAttachmentLink, CommentAttachmentUrl, CommentCan, CommentComposer, CommentComposerFrame, CommentComposerSize, CommentComposerSlots, CommentComposerSubmit, CommentComposerVariant, CommentDraft, CommentFilterState, CommentFilters, CommentGroup, CommentGroupSlotScope, CommentLayer, CommentList, CommentMentionEmptyScope, CommentMentionItemScope, CommentPanel, CommentPanelSlots, CommentPanelVariant, CommentPin, CommentPlacement, CommentReply, CommentReplySlotScope, CommentReplySlots, CommentRowSlotScope, CommentRowSlots, CommentScope, CommentSelectionBar, CommentSelectionBarSide, CommentStatusSlotScope, CommentThread, CommentThreadAction, CommentThreadSlotScope, CommentThreadSlots, CommentToolbar, CommentUpload, CommentVisibility, CommentVisibilityModel, CommentVisibilityOptions, CommentsOutboxState, CommentsState, ConnectionStatus, ConnectionStatusIndicator, ConnectionStatusLabel, ConnectionStatusState, ConnectionStatusValue, CopyButton, CopyButtonSize, CopyButtonVariant, CopyValue, DEVICE_FRAME_BREAKPOINTS, DEVICE_FRAME_PRESETS, DeviceFrame, DeviceFrameBreakpoint, DeviceFramePreset, DeviceFrameSize, type DiffLineAnnotation, type FileContents, FileDiff, type FileDiffMetadata, type FileDiffOptions, type FileOptions, FileTree, FileTreeModel, FileTreeOptions, FileView, FilterSearch, FilterSearchSize, type LineAnnotation, Markdown, MarkdownValue, Marker, MarkerContent, MarkerIcon, MarkerVariant, Message, MessageAlign, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, MessageParts, MessageScrollBehavior, MessageScrollPosition, MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerContext, MessageScrollerItem, MessageScrollerViewport, MultiFileDiff, PatchDiff, PendingAttachment, type PlaygroundFiles, type PlaygroundIssue, type PlaygroundOpenEvent, type PlaygroundPane, type PlaygroundPaneSlotProps, type PlaygroundPreset, PlaygroundRender, type PlaygroundRenderer, type PlaygroundResult, PromptInput, PromptInputSubmit, RelativeTime, RelativeTimeFormat, RelativeTimeValue, ResolvedViteHubUIDefaults, type SelectedLineRange, Status, StatusSize, StatusTone, SyncStatus, SyncStatusIndicator, SyncStatusLabel, SyncStatusValue, ToolList, Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, type TraceEventLogEntry, TraceIcon, TraceLine, TraceLineStatus, TraceRun, type TraceRunView, type TraceStepView, TraceTitle, UnresolvedFile, type UnresolvedFileOptions, UseAgentAttachmentsOptions, UseCommentsOptions, UseCopyOptions, UseCopyReturn, type ViteHubUIComponentName, type ViteHubUIComponents, ViteHubUIDefaults, ViteHubUIIconOptions, ViteHubUIInjectionKey, type ViteHubUIMessage, ViteHubUIOptions, type ViteHubUISession, calculatePrependScrollTop, chatActivity, commentLeaveMs, createCommentVisibility, createViteHubUI, defaultCommentCan, draftPositionKey, fileToDataUrl, fileToUIPart, getSingularPatch, messagesSinceResolved, parseDiffFromFile, parsePatchFiles, provideComments, provideRelativeNow, repliedSinceResolved, resolveViteHubUIDefaults, useAgentAttachments, useComments, useCommentsContext, useCopy, useFileTree, useFileTreeSelection, useHighlightedCode, useMessageScroller, useViteHubUI, useViteHubUIIcons };